Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@polymer/iron-checked-element-behavior

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@polymer/iron-checked-element-behavior - npm Package Compare versions

Comparing version 3.0.0-pre.12 to 3.0.0-pre.13

24

demo/simple-checkbox.js

@@ -1,6 +0,1 @@

import '@polymer/polymer/polymer-legacy.js';
import '@polymer/paper-button/paper-button.js';
import { IronCheckedElementBehavior } from '../iron-checked-element-behavior.js';
import { Polymer } from '@polymer/polymer/lib/legacy/polymer-fn.js';
import { html } from '@polymer/polymer/lib/utils/html-tag.js';
/**

@@ -15,2 +10,8 @@ @license

*/
import '../../polymer/polymer-legacy.js';
import '../../paper-button/paper-button.js';
import { IronCheckedElementBehavior } from '../iron-checked-element-behavior.js';
import { Polymer } from '../../polymer/lib/legacy/polymer-fn.js';
import { html } from '../../polymer/lib/utils/html-tag.js';
Polymer({

@@ -39,14 +40,5 @@ _template: html`

is: 'simple-checkbox',
behaviors: [IronCheckedElementBehavior],
properties: {label: {type: String, value: 'not validated'}},
behaviors: [
IronCheckedElementBehavior
],
properties: {
label: {
type: String,
value: 'not validated'
}
},
_onCheckTap: function() {

@@ -53,0 +45,0 @@ this.checked = this.$.checkbox.checked;

@@ -1,5 +0,24 @@

import '@polymer/polymer/polymer-legacy.js';
import { IronValidatableBehavior } from '@polymer/iron-validatable-behavior/iron-validatable-behavior.js';
import { IronFormElementBehavior } from '@polymer/iron-form-element-behavior/iron-form-element-behavior.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 { IronValidatableBehavior } from '../iron-validatable-behavior/iron-validatable-behavior.js';
import { IronFormElementBehavior } from '../iron-form-element-behavior/iron-form-element-behavior.js';
/**
* Use `Polymer.IronCheckedElementBehavior` to implement a custom element
* that has a `checked` property, which can be used for validation if the
* element is also `required`. Element instances implementing this behavior
* will also be registered for use in an `iron-form` element.
*
* @demo demo/index.html
* @polymerBehavior Polymer.IronCheckedElementBehavior
*/
export const IronCheckedElementBehaviorImpl = {

@@ -29,19 +48,9 @@

*/
toggles: {
type: Boolean,
value: true,
reflectToAttribute: true
},
toggles: {type: Boolean, value: true, reflectToAttribute: true},
/* Overriden from Polymer.IronFormElementBehavior */
value: {
type: String,
value: 'on',
observer: '_valueChanged'
}
value: {type: String, value: 'on', observer: '_valueChanged'}
},
observers: [
'_requiredChanged(required)'
],
observers: ['_requiredChanged(required)'],

@@ -56,3 +65,4 @@ created: function() {

/**
* Returns false if the element is required and not checked, and true otherwise.
* Returns false if the element is required and not checked, and true
* otherwise.
* @param {*=} _value Ignored.

@@ -94,2 +104,3 @@ * @return {boolean} true if `required` is false or if `checked` is true.

/** @polymerBehavior Polymer.IronCheckedElementBehavior */
export const IronCheckedElementBehavior = [

@@ -96,0 +107,0 @@ IronFormElementBehavior,

@@ -19,12 +19,14 @@ {

"bower": "^1.8.0",
"@polymer/paper-styles": "3.0.0-pre.12",
"@polymer/paper-button": "3.0.0-pre.12",
"@polymer/iron-component-page": "3.0.0-pre.12",
"wct-browser-legacy": "0.0.1-pre.11",
"@webcomponents/webcomponentsjs": "^1.0.0"
"webmat": "^0.2.0",
"@polymer/paper-styles": "^3.0.0-pre.13",
"@polymer/paper-button": "^3.0.0-pre.13",
"@polymer/iron-component-page": "^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": {

@@ -59,6 +61,6 @@ "inherits": "2.0.3",

"dependencies": {
"@polymer/polymer": "3.0.0-pre.12",
"@polymer/iron-validatable-behavior": "3.0.0-pre.12",
"@polymer/iron-form-element-behavior": "3.0.0-pre.12"
"@polymer/polymer": "^3.0.0-pre.13",
"@polymer/iron-validatable-behavior": "^3.0.0-pre.13",
"@polymer/iron-form-element-behavior": "^3.0.0-pre.13"
}
}

@@ -1,5 +0,1 @@

import '@polymer/polymer/polymer-legacy.js';
import { IronCheckedElementBehavior } from '../iron-checked-element-behavior.js';
import { Polymer } from '@polymer/polymer/lib/legacy/polymer-fn.js';
/**

@@ -14,2 +10,6 @@ @license

*/
import '../../polymer/polymer-legacy.js';
import { IronCheckedElementBehavior } from '../iron-checked-element-behavior.js';
import { Polymer } from '../../polymer/lib/legacy/polymer-fn.js';
Polymer({

@@ -19,6 +19,4 @@

behaviors: [
IronCheckedElementBehavior
]
behaviors: [IronCheckedElementBehavior]
});

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc