@polymer/iron-form-element-behavior
Advanced tools
Comparing version 3.0.0-pre.12 to 3.0.0-pre.13
@@ -1,5 +0,1 @@ | ||
import '@polymer/polymer/polymer-legacy.js'; | ||
import { IronFormElementBehavior } from '../iron-form-element-behavior.js'; | ||
import { Polymer } from '@polymer/polymer/lib/legacy/polymer-fn.js'; | ||
/** | ||
@@ -14,2 +10,6 @@ @license | ||
*/ | ||
import '../../polymer/polymer-legacy.js'; | ||
import { IronFormElementBehavior } from '../iron-form-element-behavior.js'; | ||
import { Polymer } from '../../polymer/lib/legacy/polymer-fn.js'; | ||
Polymer({ | ||
@@ -21,6 +21,4 @@ | ||
behaviors: [ | ||
IronFormElementBehavior | ||
] | ||
behaviors: [IronFormElementBehavior] | ||
}); |
@@ -1,4 +0,1 @@ | ||
import '@polymer/polymer/polymer-legacy.js'; | ||
import { Polymer } from '@polymer/polymer/lib/legacy/polymer-fn.js'; | ||
/** | ||
@@ -13,2 +10,5 @@ @license | ||
*/ | ||
import '../../polymer/polymer-legacy.js'; | ||
import { Polymer } from '../../polymer/lib/legacy/polymer-fn.js'; | ||
Polymer({ | ||
@@ -20,8 +20,3 @@ | ||
properties: { | ||
formElements: { | ||
type: Object, | ||
notify: true | ||
} | ||
}, | ||
properties: {formElements: {type: Object, notify: true}}, | ||
@@ -28,0 +23,0 @@ listeners: { |
@@ -1,4 +0,24 @@ | ||
import '@polymer/polymer/polymer-legacy.js'; | ||
import { PolymerElement } from '@polymer/polymer/polymer-element.js'; | ||
/** | ||
@license | ||
Copyright (c) 2015 The Polymer Project Authors. All rights reserved. | ||
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt | ||
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt | ||
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt | ||
Code distributed by Google as part of the polymer project is also | ||
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt | ||
*/ | ||
import '../polymer/polymer-legacy.js'; | ||
import { PolymerElement } from '../polymer/polymer-element.js'; | ||
/** | ||
Polymer.IronFormElementBehavior enables a custom element to be included | ||
in an `iron-form`. | ||
Events `iron-form-element-register` and `iron-form-element-unregister` are not | ||
fired on Polymer 2.0. | ||
@demo demo/index.html | ||
@polymerBehavior | ||
*/ | ||
export const IronFormElementBehavior = { | ||
@@ -18,17 +38,13 @@ | ||
*/ | ||
/** | ||
* The name of this element. | ||
*/ | ||
name: { | ||
type: String | ||
}, | ||
name: {type: String}, | ||
/** | ||
* The value for this element. | ||
* @type {string|number|null|undefined} | ||
*/ | ||
value: { | ||
notify: true, | ||
type: String | ||
}, | ||
value: {notify: true, type: String}, | ||
@@ -43,6 +59,3 @@ /** | ||
*/ | ||
required: { | ||
type: Boolean, | ||
value: false | ||
}, | ||
required: {type: Boolean, value: false}, | ||
@@ -52,5 +65,3 @@ /** | ||
*/ | ||
_parentForm: { | ||
type: Object | ||
} | ||
_parentForm: {type: Object} | ||
}, | ||
@@ -57,0 +68,0 @@ |
@@ -17,11 +17,13 @@ { | ||
"bower": "^1.8.0", | ||
"@polymer/iron-component-page": "3.0.0-pre.12", | ||
"@polymer/paper-styles": "3.0.0-pre.12", | ||
"wct-browser-legacy": "0.0.1-pre.11", | ||
"@webcomponents/webcomponentsjs": "^1.0.0" | ||
"webmat": "^0.2.0", | ||
"@polymer/iron-component-page": "^3.0.0-pre.13", | ||
"@polymer/paper-styles": "^3.0.0-pre.13", | ||
"wct-browser-legacy": "^0.0.1-pre.11", | ||
"@webcomponents/webcomponentsjs": "^2.0.0-0" | ||
}, | ||
"scripts": { | ||
"update-types": "bower install && gen-typescript-declarations --deleteExisting --outDir ." | ||
"update-types": "bower install && gen-typescript-declarations --deleteExisting --outDir .", | ||
"format": "webmat && npm run update-types" | ||
}, | ||
"version": "3.0.0-pre.12", | ||
"version": "3.0.0-pre.13", | ||
"resolutions": { | ||
@@ -36,4 +38,4 @@ "inherits": "2.0.3", | ||
"dependencies": { | ||
"@polymer/polymer": "3.0.0-pre.12" | ||
"@polymer/polymer": "^3.0.0-pre.13" | ||
} | ||
} |
@@ -1,5 +0,1 @@ | ||
import '@polymer/polymer/polymer-legacy.js'; | ||
import { IronFormElementBehavior } from '../iron-form-element-behavior.js'; | ||
import { Polymer } from '@polymer/polymer/lib/legacy/polymer-fn.js'; | ||
/** | ||
@@ -14,8 +10,10 @@ @license | ||
*/ | ||
import '../../polymer/polymer-legacy.js'; | ||
import { IronFormElementBehavior } from '../iron-form-element-behavior.js'; | ||
import { Polymer } from '../../polymer/lib/legacy/polymer-fn.js'; | ||
Polymer({ | ||
is: 'simple-element', | ||
extends: 'input', | ||
behaviors: [ | ||
IronFormElementBehavior | ||
] | ||
behaviors: [IronFormElementBehavior] | ||
}); |
@@ -1,4 +0,1 @@ | ||
import '@polymer/polymer/polymer-legacy.js'; | ||
import { Polymer } from '@polymer/polymer/lib/legacy/polymer-fn.js'; | ||
/** | ||
@@ -13,5 +10,5 @@ @license | ||
*/ | ||
Polymer({ | ||
is: 'simple-form', | ||
extends: 'form' | ||
}); | ||
import '../../polymer/polymer-legacy.js'; | ||
import { Polymer } from '../../polymer/lib/legacy/polymer-fn.js'; | ||
Polymer({is: 'simple-form', extends: 'form'}); |
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
22033
7
191
+ Added@polymer/polymer@3.5.2(transitive)
- Removed@polymer/polymer@3.0.0-pre.12(transitive)
- Removed@webcomponents/webcomponentsjs@1.3.3(transitive)