@polymer/polymer
Advanced tools
Comparing version 2.6.0 to 2.6.1
{ | ||
"name": "polymer", | ||
"main": [ | ||
"lib/elements/array-selector.html", | ||
"lib/elements/custom-style.html", | ||
"lib/elements/dom-bind.html", | ||
"lib/elements/dom-if.html", | ||
"lib/elements/dom-module.html", | ||
"lib/elements/dom-repeat.html", | ||
"lib/legacy/class.html", | ||
"lib/legacy/legacy-element-mixin.html", | ||
"lib/legacy/mutable-data-behavior.html", | ||
"lib/legacy/polymer-fn.html", | ||
"lib/legacy/polymer.dom.html", | ||
"lib/legacy/templatizer-behavior.html", | ||
"lib/mixins/dir-mixin.html", | ||
"lib/mixins/disable-upgrade-mixin.html", | ||
"lib/mixins/element-mixin.html", | ||
"lib/mixins/gesture-event-listeners.html", | ||
"lib/mixins/mutable-data.html", | ||
"lib/mixins/properties-changed.html", | ||
"lib/mixins/properties-mixin.html", | ||
"lib/mixins/property-accessors.html", | ||
"lib/mixins/property-effects.html", | ||
"lib/mixins/strict-binding-parser.html", | ||
"lib/mixins/template-stamp.html", | ||
"lib/utils/array-splice.html", | ||
"lib/utils/async.html", | ||
"lib/utils/boot.html", | ||
"lib/utils/case-map.html", | ||
"lib/utils/debounce.html", | ||
"lib/utils/flattened-nodes-observer.html", | ||
"lib/utils/flush.html", | ||
"lib/utils/gestures.html", | ||
"lib/utils/html-tag.html", | ||
"lib/utils/import-href.html", | ||
"lib/utils/mixin.html", | ||
"lib/utils/path.html", | ||
"lib/utils/render-status.html", | ||
"lib/utils/resolve-url.html", | ||
"lib/utils/settings.html", | ||
"lib/utils/style-gather.html", | ||
"lib/utils/templatize.html", | ||
"lib/utils/unresolved.html", | ||
"polymer-element.html", | ||
"polymer.html" | ||
@@ -29,3 +71,4 @@ ], | ||
"test-fixture": "PolymerElements/test-fixture#3.0.0-rc.1", | ||
"iron-component-page": "PolymerElements/iron-component-page#^3.0.1" | ||
"iron-component-page": "PolymerElements/iron-component-page#^3.0.1", | ||
"perf-tester": "polymerlabs/perf-tester" | ||
}, | ||
@@ -32,0 +75,0 @@ "private": true, |
@@ -108,5 +108,6 @@ /** | ||
* @param {?string} value New attribute value | ||
* @param {?string} namespace Attribute namespace. | ||
* @return {void} | ||
*/ | ||
Polymer_PropertiesChanged.prototype.attributeChangedCallback = function(name, old, value){}; | ||
Polymer_PropertiesChanged.prototype.attributeChangedCallback = function(name, old, value, namespace){}; | ||
/** | ||
@@ -249,3 +250,3 @@ * @param {string} attribute Name of attribute to deserialize. | ||
/** | ||
* @param {Node} node Node to remove event listener from | ||
* @param {!Node} node Node to remove event listener from | ||
* @param {string} eventName Name of event | ||
@@ -977,5 +978,6 @@ * @param {function (!Event): void} handler Listener function to remove | ||
* @param {?string} value Current value of attribute. | ||
* @param {?string} namespace Attribute namespace. | ||
* @return {void} | ||
*/ | ||
Polymer_LegacyElementMixin.prototype.attributeChangedCallback = function(name, old, value){}; | ||
Polymer_LegacyElementMixin.prototype.attributeChangedCallback = function(name, old, value, namespace){}; | ||
/** | ||
@@ -1383,2 +1385,13 @@ * @override | ||
* @interface | ||
* @extends {Polymer_PropertyEffects} | ||
*/ | ||
function Polymer_StrictBindingParser(){} | ||
/** | ||
* @param {string} text Text to parse from attribute or textContent | ||
* @param {Object} templateInfo Current template metadata | ||
* @return {Array.<!BindingPart>} | ||
*/ | ||
Polymer_StrictBindingParser._parseBindings = function(text, templateInfo){}; | ||
/** | ||
* @interface | ||
* @extends {Polymer_ElementMixin} | ||
@@ -1398,3 +1411,3 @@ */ | ||
*/ | ||
Polymer_DisableUpgradeMixin.prototype.attributeChangedCallback = function(name, old, value){}; | ||
Polymer_DisableUpgradeMixin.prototype.attributeChangedCallback = function(name, old, value, namespace){}; | ||
/** | ||
@@ -1401,0 +1414,0 @@ * @override |
@@ -18,9 +18,9 @@ /** | ||
* @typedef {{ | ||
* type: !Function, | ||
* value: *, | ||
* readOnly: (boolean | undefined), | ||
* computed: (string | undefined), | ||
* reflectToAttribute: (boolean | undefined), | ||
* notify: (boolean | undefined), | ||
* observer: (string | function(*,*) | undefined) | ||
* type: !Function, | ||
* value: (* | undefined), | ||
* readOnly: (boolean | undefined), | ||
* computed: (string | undefined), | ||
* reflectToAttribute: (boolean | undefined), | ||
* notify: (boolean | undefined), | ||
* observer: (string | function(this:?, ?, ?) | undefined) | ||
* }} | ||
@@ -31,3 +31,3 @@ */ | ||
/** | ||
* @typedef {Object<string, !PolymerElementPropertiesMeta>} | ||
* @typedef {Object<string, !Function|!PolymerElementPropertiesMeta>} | ||
*/ | ||
@@ -74,5 +74,2 @@ let PolymerElementProperties; | ||
/** @type {PolymerElementProperties} */ | ||
Polymer.ElementProperties; | ||
/** | ||
@@ -115,2 +112,13 @@ * @type {(function(*,string,string,Node):*)|undefined} | ||
*/ | ||
var PolymerElement = Polymer.LegacyElementMixin(); | ||
var PolymerElement = function() {}; | ||
/** On create callback. */ | ||
PolymerElement.prototype.created = function() {}; | ||
/** On ready callback. */ | ||
PolymerElement.prototype.ready = function() {}; | ||
/** On registered callback. */ | ||
PolymerElement.prototype.registered = function() {}; | ||
/** On attached to the DOM callback. */ | ||
PolymerElement.prototype.attached = function() {}; | ||
/** On detached from the DOM callback. */ | ||
PolymerElement.prototype.detached = function() {}; |
{ | ||
"name": "@polymer/polymer", | ||
"version": "2.6.0", | ||
"version": "2.6.1", | ||
"description": "The Polymer library makes it easy to create your own web components. Give your element some markup and properties, and then use it on a site. Polymer provides features like dynamic templates and data binding to reduce the amount of boilerplate you need to write", | ||
@@ -12,3 +12,3 @@ "main": "polymer.html", | ||
"@polymer/gen-closure-declarations": "^0.4.0", | ||
"@polymer/gen-typescript-declarations": "^1.2.0", | ||
"@polymer/gen-typescript-declarations": "^1.3.0", | ||
"@webcomponents/shadycss": "^1.1.0", | ||
@@ -15,0 +15,0 @@ "@webcomponents/webcomponentsjs": "^1.1.0", |
@@ -10,13 +10,13 @@ /** | ||
interface PolymerElementPropertiesMeta { | ||
type?: Function; | ||
value?: any; | ||
readOnly?: boolean; | ||
computed?: string; | ||
reflectToAttribute?: boolean; | ||
notify?: boolean; | ||
observer?: string|((val: any, old: any) => void); | ||
type?: Function; | ||
value?: any; | ||
readOnly?: boolean; | ||
computed?: string; | ||
reflectToAttribute?: boolean; | ||
notify?: boolean; | ||
observer?: string|((val: any, old: any) => void); | ||
} | ||
type PolymerElementProperties = { | ||
[key: string]: PolymerElementPropertiesMeta | ||
[key: string]: PolymerElementPropertiesMeta|Function; | ||
}; | ||
@@ -26,9 +26,9 @@ | ||
interface PolymerInit { | ||
is: string; | ||
extends?: string; | ||
properties?: PolymerElementProperties; | ||
observers?: string[]; | ||
template?: HTMLTemplateElement|string; | ||
hostAttributes?: {[key: string]: any}; | ||
listeners?: {[key: string]: string}; | ||
is: string; | ||
extends?: string; | ||
properties?: PolymerElementProperties; | ||
observers?: string[]; | ||
template?: HTMLTemplateElement|string; | ||
hostAttributes?: {[key: string]: any}; | ||
listeners?: {[key: string]: string}; | ||
} | ||
@@ -39,61 +39,61 @@ | ||
interface StampedTemplate extends DocumentFragment { | ||
__noInsertionPoint: boolean; | ||
nodeList: Node[]; | ||
$: {[key: string]: Node}; | ||
templateInfo?: TemplateInfo; | ||
__noInsertionPoint: boolean; | ||
nodeList: Node[]; | ||
$: {[key: string]: Node}; | ||
templateInfo?: TemplateInfo; | ||
} | ||
interface NodeInfo { | ||
id: string; | ||
events: {name: string, value: string}[]; | ||
hasInsertionPoint: boolean; | ||
templateInfo: TemplateInfo; | ||
parentInfo: NodeInfo; | ||
parentIndex: number; | ||
infoIndex: number; | ||
bindings: Binding[]; | ||
id: string; | ||
events: {name: string, value: string}[]; | ||
hasInsertionPoint: boolean; | ||
templateInfo: TemplateInfo; | ||
parentInfo: NodeInfo; | ||
parentIndex: number; | ||
infoIndex: number; | ||
bindings: Binding[]; | ||
} | ||
interface TemplateInfo { | ||
nodeInfoList: NodeInfo[]; | ||
nodeList: Node[]; | ||
stripWhitespace: boolean; | ||
hasInsertionPoint?: boolean; | ||
hostProps: Object; | ||
propertyEffects: Object; | ||
nextTemplateInfo?: TemplateInfo; | ||
previousTemplateInfo?: TemplateInfo; | ||
childNodes: Node[]; | ||
wasPreBound: boolean; | ||
nodeInfoList: NodeInfo[]; | ||
nodeList: Node[]; | ||
stripWhitespace: boolean; | ||
hasInsertionPoint?: boolean; | ||
hostProps: Object; | ||
propertyEffects: Object; | ||
nextTemplateInfo?: TemplateInfo; | ||
previousTemplateInfo?: TemplateInfo; | ||
childNodes: Node[]; | ||
wasPreBound: boolean; | ||
} | ||
interface LiteralBindingPart { | ||
literal: string; | ||
compoundIndex?: number; | ||
literal: string; | ||
compoundIndex?: number; | ||
} | ||
interface MethodArg { | ||
literal: boolean; | ||
name: string; | ||
value: string|number; | ||
rootProperty?: string; | ||
structured?: boolean; | ||
wildcard?: boolean; | ||
literal: boolean; | ||
name: string; | ||
value: string|number; | ||
rootProperty?: string; | ||
structured?: boolean; | ||
wildcard?: boolean; | ||
} | ||
interface MethodSignature { | ||
methodName: string; | ||
static: boolean; | ||
args: MethodArg[]; | ||
dynamicFn?: boolean; | ||
methodName: string; | ||
static: boolean; | ||
args: MethodArg[]; | ||
dynamicFn?: boolean; | ||
} | ||
interface ExpressionBindingPart { | ||
mode: string; | ||
negate: boolean; | ||
source: string; | ||
dependencies: Array<MethodArg|string>; | ||
customEvent: boolean; | ||
signature: Object|null; | ||
event: string; | ||
mode: string; | ||
negate: boolean; | ||
source: string; | ||
dependencies: Array<MethodArg|string>; | ||
customEvent: boolean; | ||
signature: Object|null; | ||
event: string; | ||
} | ||
@@ -104,14 +104,14 @@ | ||
interface Binding { | ||
kind: string; | ||
target: string; | ||
parts: BindingPart[]; | ||
literal?: string; | ||
isCompound: boolean; | ||
listenerEvent?: string; | ||
listenerNegate?: boolean; | ||
kind: string; | ||
target: string; | ||
parts: BindingPart[]; | ||
literal?: string; | ||
isCompound: boolean; | ||
listenerEvent?: string; | ||
listenerNegate?: boolean; | ||
} | ||
interface AsyncInterface { | ||
run: (fn: Function, delay?: number) => number; | ||
cancel: (handle: number) => void; | ||
run: (fn: Function, delay?: number) => number; | ||
cancel: (handle: number) => void; | ||
} | ||
@@ -122,10 +122,10 @@ | ||
interface GestureRecognizer { | ||
reset: () => void; | ||
mousedown?: (e: MouseEvent) => void; | ||
mousemove?: (e: MouseEvent) => void; | ||
mouseup?: (e: MouseEvent) => void; | ||
touchstart?: (e: TouchEvent) => void; | ||
touchmove?: (e: TouchEvent) => void; | ||
touchend?: (e: TouchEvent) => void; | ||
click?: (e: MouseEvent) => void; | ||
reset: () => void; | ||
mousedown?: (e: MouseEvent) => void; | ||
mousemove?: (e: MouseEvent) => void; | ||
mouseup?: (e: MouseEvent) => void; | ||
touchstart?: (e: TouchEvent) => void; | ||
touchmove?: (e: TouchEvent) => void; | ||
touchend?: (e: TouchEvent) => void; | ||
click?: (e: MouseEvent) => void; | ||
} | ||
@@ -138,4 +138,4 @@ | ||
interface IdleDeadline { | ||
didTimeout: boolean; | ||
timeRemaining(): number; | ||
didTimeout: boolean; | ||
timeRemaining(): number; | ||
} | ||
@@ -142,0 +142,0 @@ |
@@ -38,3 +38,3 @@ /** | ||
interface ArraySelectorMixin { | ||
interface ArraySelectorMixin extends Polymer.ElementMixin, Polymer.PropertyEffects, Polymer.TemplateStamp, Polymer.PropertyAccessors, Polymer.PropertiesChanged, Polymer.PropertiesMixin { | ||
@@ -41,0 +41,0 @@ /** |
@@ -32,3 +32,3 @@ /** | ||
Polymer.GestureEventListeners( | ||
Polymer.Element))) { | ||
HTMLElement))) { | ||
attributeChangedCallback(): void; | ||
@@ -35,0 +35,0 @@ connectedCallback(): void; |
@@ -66,4 +66,5 @@ /** | ||
* @param value Current value of attribute. | ||
* @param namespace Attribute namespace. | ||
*/ | ||
attributeChangedCallback(name: string, old: string|null, value: string|null): void; | ||
attributeChangedCallback(name: string, old: string|null, value: string|null, namespace: string|null): void; | ||
@@ -70,0 +71,0 @@ /** |
@@ -213,4 +213,4 @@ /** | ||
readonly _targetFrameTime: number|null|undefined; | ||
connectedCallback(): void; | ||
disconnectedCallback(): void; | ||
connectedCallback(): void; | ||
@@ -217,0 +217,0 @@ /** |
@@ -96,21 +96,1 @@ /** | ||
} | ||
declare class PolymerGenerated { | ||
created(): void; | ||
_registered(): void; | ||
_applyListeners(): void; | ||
_ensureAttributes(): void; | ||
ready(): void; | ||
attached(): void; | ||
detached(): void; | ||
/** | ||
* Implements native Custom Elements `attributeChangedCallback` to | ||
* set an attribute value to a property via `_attributeToProperty`. | ||
* | ||
* @param name Name of attribute that changed | ||
* @param old Old attribute value | ||
* @param value New attribute value | ||
*/ | ||
attributeChanged(name: string, old: string|null, value: string|null): void; | ||
} |
@@ -35,3 +35,3 @@ /** | ||
interface LegacyElementMixin { | ||
interface LegacyElementMixin extends Polymer.ElementMixin, Polymer.PropertyEffects, Polymer.TemplateStamp, Polymer.PropertyAccessors, Polymer.PropertiesChanged, Polymer.PropertiesMixin, Polymer.GestureEventListeners { | ||
isAttached: boolean; | ||
@@ -67,4 +67,5 @@ _debouncers: {[key: string]: Function|null}; | ||
* @param value Current value of attribute. | ||
* @param namespace Attribute namespace. | ||
*/ | ||
attributeChangedCallback(name: string, old: string|null, value: string|null): void; | ||
attributeChangedCallback(name: string, old: string|null, value: string|null, namespace: string|null): void; | ||
@@ -71,0 +72,0 @@ /** |
@@ -51,2 +51,7 @@ /** | ||
/** | ||
* @param node Node for which to create a Polymer.dom helper object. | ||
*/ | ||
constructor(node: Node|null); | ||
/** | ||
* Returns an instance of `Polymer.FlattenedNodesObserver` that | ||
@@ -180,2 +185,3 @@ * listens for node changes on this element. | ||
readonly path: EventTarget[]; | ||
constructor(event: any); | ||
} |
@@ -47,3 +47,3 @@ /** | ||
interface DirMixin { | ||
interface DirMixin extends Polymer.PropertyAccessors, Polymer.PropertiesChanged { | ||
ready(): void; | ||
@@ -50,0 +50,0 @@ connectedCallback(): void; |
@@ -42,6 +42,6 @@ /** | ||
interface DisableUpgradeMixin { | ||
interface DisableUpgradeMixin extends Polymer.ElementMixin, Polymer.PropertyEffects, Polymer.TemplateStamp, Polymer.PropertyAccessors, Polymer.PropertiesChanged, Polymer.PropertiesMixin { | ||
_initializeProperties(): void; | ||
_enableProperties(): void; | ||
attributeChangedCallback(name: any, old: any, value: any): void; | ||
attributeChangedCallback(name: any, old: any, value: any, namespace: any): void; | ||
connectedCallback(): void; | ||
@@ -48,0 +48,0 @@ disconnectedCallback(): void; |
@@ -135,3 +135,3 @@ /** | ||
interface ElementMixin { | ||
interface ElementMixin extends Polymer.PropertyEffects, Polymer.TemplateStamp, Polymer.PropertyAccessors, Polymer.PropertiesChanged, Polymer.PropertiesMixin { | ||
_template: HTMLTemplateElement|null; | ||
@@ -138,0 +138,0 @@ _importPath: string; |
@@ -238,4 +238,5 @@ /** | ||
* @param value New attribute value | ||
* @param namespace Attribute namespace. | ||
*/ | ||
attributeChangedCallback(name: string, old: string|null, value: string|null): void; | ||
attributeChangedCallback(name: string, old: string|null, value: string|null, namespace: string|null): void; | ||
@@ -242,0 +243,0 @@ /** |
@@ -59,3 +59,3 @@ /** | ||
interface PropertiesMixin { | ||
interface PropertiesMixin extends Polymer.PropertiesChanged { | ||
@@ -62,0 +62,0 @@ /** |
@@ -65,3 +65,3 @@ /** | ||
interface PropertyAccessors { | ||
interface PropertyAccessors extends Polymer.PropertiesChanged { | ||
@@ -68,0 +68,0 @@ /** |
@@ -260,2 +260,13 @@ /** | ||
* | ||
* The default implementation uses a regular expression for best | ||
* performance. However, the regular expression uses a white-list of | ||
* allowed characters in a data-binding, which causes problems for | ||
* data-bindings that do use characters not in this white-list. | ||
* | ||
* Instead of updating the white-list with all allowed characters, | ||
* there is a StrictBindingParser (see lib/mixins/strict-binding-parser) | ||
* that uses a state machine instead. This state machine is able to handle | ||
* all characters. However, it is slightly less performant, therefore we | ||
* extracted it into a separate optional mixin. | ||
* | ||
* @param text Text to parse from attribute or textContent | ||
@@ -283,3 +294,3 @@ * @param templateInfo Current template metadata | ||
interface PropertyEffects { | ||
interface PropertyEffects extends Polymer.TemplateStamp, Polymer.PropertyAccessors, Polymer.PropertiesChanged { | ||
readonly PROPERTY_EFFECT_TYPES: any; | ||
@@ -286,0 +297,0 @@ |
@@ -256,4 +256,4 @@ /** | ||
*/ | ||
_removeEventListenerFromNode(node: Node|null, eventName: string, handler: (p0: Event) => void): void; | ||
_removeEventListenerFromNode(node: Node, eventName: string, handler: (p0: Event) => void): void; | ||
} | ||
} |
@@ -18,2 +18,3 @@ /** | ||
class Debouncer { | ||
constructor(); | ||
@@ -20,0 +21,0 @@ /** |
@@ -58,2 +58,9 @@ /** | ||
/** | ||
* @param target Node on which to listen for changes. | ||
* @param callback Function called when there are additions | ||
* or removals from the target's list of flattened nodes. | ||
*/ | ||
constructor(target: _Element|null, callback: ((p0: _Element, p1: {target: _Element, addedNodes: _Element[], removedNodes: _Element[]}) => void)|null); | ||
/** | ||
* Returns the list of flattened nodes for the given `node`. | ||
@@ -60,0 +67,0 @@ * This list consists of a node's children and, for any children |
@@ -20,2 +20,3 @@ /** | ||
value: string; | ||
constructor(string: any); | ||
@@ -22,0 +23,0 @@ /** |
@@ -17,3 +17,3 @@ /** | ||
Polymer.PropertyEffects( | ||
Polymer.Element) { | ||
Object) { | ||
@@ -80,8 +80,2 @@ /** | ||
declare namespace templateInfo { | ||
class templatizeTemplateClass { | ||
} | ||
} | ||
declare namespace Polymer { | ||
@@ -88,0 +82,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2906308
126616
228
7314