Our original Web Component library.
Polymer.htmlLiteral
tagged template literal function to safely include non-<template>
variables in Polymer.html
templates.
// Example
const title = Polymer.htmlLiteral`World!`;
class LiteralElement extends Polymer.Element {
static get template() {
return Polymer.html`<span>Hello ${title}</span>`
}
}
Polymer.html
stringsPolymer.ResolveUrl.resolveUrl()
by again allowing urls beginning with #
and /
to be treated as absolute URLs.
new URL()
this.slice()
and Array.prototype.slice()
Update types (commit)
Update JSDocs to use
Fix type declarations inadvertedtly referencing Polymer.Element. (#5084) (commit)
Use class syntax in
Add hash/abs URL resolution tests. (commit)
Update types. (commit)
Add comments about resolveUrl idiosyncrasies. (commit)
Revert "Move absolute url logic to element-mixin" (commit)
Added Polymer.version to polymer-externs (#5079) (commit)
Avoid tracking parentNode since it's unncessary (commit)
Update types. (commit)
Fix nit. (commit)
Avoid comment constructor for IE support. (commit)
Disallow non-templates as interpolations in Polymer.html (#5023) (commit)
Exclude index.html from type generation. (#5076) (commit)
update types (commit)
[element-mixin] Do not create property accessors unless a property effect exists (commit)
Use containers for testing again (#5070) (commit)
Invoke JS compiler rename for properties (commit)
Add package-lock.json back (commit)
fix test. (commit)
Enhance robustness by replacing slot with a comment (commit)
Avoid use of element accessors on doc frag to fix IE/Edge. (commit)
Fix linter errors (commit)
Fix issue with observers being called twice (commit)
Revert package-lock change (commit)
[ci-skip] Update changelog (2.4.0) (commit)
Add package-lock.json to .gitignore (commit)
Update types (commit)
Add comments re: instanceProps (commit)
Change if-condition to check for arguments.length (commit)
Delete package-lock.json (commit)
[ci skip] Fix test case name (commit)
Fix issue where el.splice could not clear full array (commit)
Make owner optional as well. (commit)
Update package-lock.json (commit)
Update typescript types again, after fixing jsdoc. (commit)
Fix lint warnings. (commit)
Update typescript types. (commit)
Ensure path notifications from templatized instances don't throw. Fixes #3422 (commit)
Allow templatizer to be used without owner or host prop forwarding. Fixes #4458 (commit)
Templatize: remove slots when hiding children (commit)
Clarify API docs for PropertyAccessors mixin (commit)
<style include>
and/or throw an exception if a <style>
was not a direct child of the template.class XFoo extends Polymer.Element {
static get properties() {
return {
prop: {
type: String,
observer: function (newProp, oldProp) {
return this.prop2Changed(newProp, oldProp);
}
}
};
}
}
Polymer.passiveTouchGestures
, don't set passive on touchend
events, allowing tap
and up
gestures to prevent click
.[ci skip] commit new version in lib/utils/boot.html when using npm version (commit)
change PolymerElement extern to var (commit)
update node devDependencies (commit)
fix lint error (commit)
Fix :dir selectors with nested custom elements (commit)
Update test to be more descriptive (commit)
Annotate Polymer function with @global. (#4967) (commit)
make PASSIVE_TOUCH take an argument (commit)
Do not set touchend listeners to passive (commit)
Add some @function annotations to APIs that are defined by assignment. (commit)
add return jsdoc to void functions (commit)
Update CONTRIBUTING.md (commit)
Fix typo. (commit)
Comment reworded based on feedback. (commit)
Semantic issue (proposal) plus minor fixes (commit)
Depend on webcomponents and shadycss with shady-unscoped support (commit)
Also clarify delay
units. Fixes #4707 (commit)
Ensure re-sort/filter always happens after array item set. Fixes #3626 (commit)
Clarify docs on target-framerate. Fixes #4897 (commit)
move test after (commit)
test more permutations (commit)
Fix missing comma in Path.translate
JSDoc (commit)
fix(bower): standardized version tagging (#4921) (commit)
Minor fixes (update URLs) (commit)
add license headers (commit)
Prep for processing of shady-unscoped
moving to ShadyCSS (commit)
Implement type change in Polymer.ElementMixin (commit)
instance.$.foo should only give Elements (commit)
Annotate DomApi with @memberof Polymer (commit)
Clarify all elements between changes must apply mixing. Fixes #4914 (commit)
add safari 11 to sauce testing (commit)
Fix tests on Firefox. (commit)
Update externs again. (commit)
Update externs. (commit)
Lint fixes (commit)
Allow style elements to be separate in the element template. (commit)
Lint fix. (commit)
Add support for styles with a shady-unscoped
attribute (commit)
[ci skip] Update CHANGELOG (commit)
[ci skip] version script did not work as expected (commit)
adding test case for 4696 4706 (commit)
Support property observers which are direct function references in addition to strings. Provides better static analysis and refactoring support in multiple tools. Alleviates the need for property reflection with Closure-compiler renaming. (commit)
removing package-lock.json from PR (commit)
implementing the code review suggestions (commit)
Updating deserialize function (use of ternary operation). Fixes #4696 (commit)
Updating deserialize function. Fixes #4696 (commit)
:dir
selector to handle a few more complicated use cases
other-custom-element:dir()
:dir()
in a shadowroot should behave like *:dir()
dir
attribute is set between inside of a shadowroot<style include>
attribute valuePolymer.Settings.passiveTouchGestures
, don't set passive
on touchend
events, allowing tap
and up
gestures to prevent click
.make PASSIVE_TOUCH take an argument (commit)
Handle more dir cases (commit)
Make :dir
more robust (commit)
Do not set touchend listeners to passive (commit)
Add comments on modified transforms (commit)
Fix :dir() bare selector in native shadowdom (commit)
Fix :dir selector when element uses CSS Custom Property Shim (commit)
Add a load-bearing escape into the comment regex (commit)
Polymer 1: Allow arbitrary whitespace in CSS imports (commit)
fix license issues (commit)
Fix tests on Firefox. (commit)
[ci skip] update changelog (commit)
Add support for styles with a shady-unscoped
attribute (commit)
Skip tests of ::shadow and /deep/ under native Shadow DOM (commit)
:dir()
css selector now supported
:dir()
selector allows for writing text-orientation specific styling. More information on MDN
:dir()
requires the application to set the dir
attribute on <html>
, and all elements will use the same direction.html *
, html:not([foo]) .bar
) are now supported correctly.:dir()
css selector now supported
:dir()
selector allows for writing text-orientation specific styling. More information on MDN
:dir()
can be used by using Polymer.DirMixin
for elements extending Polymer.Element
, or automatically when using legacy Polymer({})
calls.:dir()
requires the application to set the dir
attribute on <html>
, and all elements will use the same direction.dir
attribute in HTML or at ready()
, but these elements must from then on be handled manually.[ci skip] Autoupdate version when releasing (commit)
add edge 15, use chrome stable (commit)
super it and put back takeRecords (commit)
more feedback (commit)
Address feedback (commit)
add some description of the dir mixin (commit)
Fix linting (commit)
Always do the :dir transform (commit)
Clean up closure externs (commit)
remove bogus semicolon (commit)
Declare Polymer.Templatizer directly, for Closure. (#4870) (commit)
First draft of a :dir
aware element mixin (commit)
[ci-skip] Update CHANGELOG (commit)
Prepare for release 2.1.1 (commit)
Move @externs before @license because Closure likes that. (commit)
just move the style instead (commit)
Copy
Fix typos and jsdoc (#4846) (commit)
[ci skip] update changelog (commit)
Fix shady dom style querySelector (commit)
Fix linter error (commit)
Exclude script and style tags for parsing bindings (commit)
Special-case undefined textarea.value same as input. Fixes #4630 (commit)