Socket
Socket
Sign inDemoInstall

@polymer/iron-behaviors

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-behaviors - npm Package Compare versions

Comparing version 3.0.0-pre.4 to 3.0.0-pre.6

13

demo/simple-button.js

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

import { html } from '../../polymer/polymer.js';
import { IronButtonState } from '../iron-button-state.js';
import { IronControlState } from '../iron-control-state.js';
import { Polymer } from '../../polymer/lib/legacy/polymer-fn.js';
import '../../polymer/polymer.js';
import '../iron-button-state.js';
import '../iron-control-state.js';

@@ -16,3 +15,3 @@ /**

Polymer({
_template: html`
_template: Polymer.html`
<style>

@@ -59,4 +58,4 @@ :host {

behaviors: [
IronControlState,
IronButtonState
Polymer.IronControlState,
Polymer.IronButtonState
],

@@ -63,0 +62,0 @@

import '../polymer/polymer.js';
import { IronA11yKeysBehavior } from '../iron-a11y-keys-behavior/iron-a11y-keys-behavior.js';
import '../iron-a11y-keys-behavior/iron-a11y-keys-behavior.js';
import './iron-control-state.js';
import { dom } from '../polymer/lib/legacy/polymer.dom.js';
export const IronButtonStateImpl = {
/**
* @demo demo/index.html
* @polymerBehavior Polymer.IronButtonState
*/
/**
@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
*/
Polymer.IronButtonStateImpl = {

@@ -137,3 +149,3 @@ properties: {

var keyboardEvent = event.detail.keyboardEvent;
var target = dom(keyboardEvent).localTarget;
var target = Polymer.dom(keyboardEvent).localTarget;

@@ -155,3 +167,3 @@ // Ignore the event if this is coming from a focused light child, since that

var keyboardEvent = event.detail.keyboardEvent;
var target = dom(keyboardEvent).localTarget;
var target = Polymer.dom(keyboardEvent).localTarget;

@@ -217,5 +229,6 @@ // Ignore the event if this is coming from a focused light child, since that

export const IronButtonState = [
IronA11yKeysBehavior,
IronButtonStateImpl
/** @polymerBehavior */
Polymer.IronButtonState = [
Polymer.IronA11yKeysBehavior,
Polymer.IronButtonStateImpl
];
import '../polymer/polymer.js';
import { Element } from '../polymer/polymer-element.js';
import { dom } from '../polymer/lib/legacy/polymer.dom.js';
export const IronControlState = {
/**
* @demo demo/index.html
* @polymerBehavior
*/
/**
@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
*/
Polymer.IronControlState = {

@@ -45,3 +56,3 @@ properties: {

value: function() {
return !this.shadowRoot && !Element;
return !this.shadowRoot && !Polymer.Element;
}

@@ -62,3 +73,3 @@ }

// In Polymer 2.0, the library takes care of retargeting events.
if (Element) {
if (Polymer.Element) {
this._setFocused(event.type === 'focus');

@@ -76,3 +87,3 @@ return;

} else if (this.__handleEventRetargeting) {
var target = /** @type {Node} */(dom(event).localTarget);
var target = /** @type {Node} */(Polymer.dom(event).localTarget);
if (!this.isLightDescendant(target)) {

@@ -79,0 +90,0 @@ this.fire(event.type, {sourceEvent: event}, {

{
"name": "@polymer/iron-behaviors",
"flat": true,
"version": "3.0.0-pre.4",
"version": "3.0.0-pre.6",
"description": "Provides a set of behaviors for the iron elements",

@@ -15,11 +15,11 @@ "contributors": [

"dependencies": {
"@polymer/polymer": "^3.0.0-pre.4",
"@polymer/iron-a11y-keys-behavior": "^3.0.0-pre.4"
"@polymer/polymer": "^3.0.0-pre.6",
"@polymer/iron-a11y-keys-behavior": "^3.0.0-pre.6"
},
"devDependencies": {
"@polymer/paper-styles": "^3.0.0-pre.4",
"@polymer/paper-input": "^3.0.0-pre.4",
"@polymer/iron-test-helpers": "^3.0.0-pre.4",
"@polymer/iron-component-page": "^3.0.0-pre.4",
"wct-browser-legacy": "0.0.1-pre.10",
"@polymer/paper-styles": "^3.0.0-pre.6",
"@polymer/paper-input": "^3.0.0-pre.6",
"@polymer/iron-test-helpers": "^3.0.0-pre.6",
"@polymer/iron-component-page": "^3.0.0-pre.6",
"wct-browser-legacy": "0.0.1-pre.11",
"@webcomponents/webcomponentsjs": "^1.0.0"

@@ -26,0 +26,0 @@ },

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

import { html } from '../../polymer/polymer.js';
import { IronControlState } from '../iron-control-state.js';
import { IronButtonState } from '../iron-button-state.js';
import { Polymer } from '../../polymer/lib/legacy/polymer-fn.js';
import '../../polymer/polymer.js';
import '../iron-control-state.js';
import '../iron-button-state.js';

@@ -20,3 +19,3 @@ /**

behaviors: [
IronControlState
Polymer.IronControlState
]

@@ -31,4 +30,4 @@

behaviors: [
IronControlState,
IronButtonState
Polymer.IronControlState,
Polymer.IronButtonState
],

@@ -43,3 +42,3 @@

Polymer({
_template: html`
_template: Polymer.html`
<input id="input">

@@ -51,3 +50,3 @@ `,

behaviors: [
IronControlState
Polymer.IronControlState
]

@@ -57,3 +56,3 @@ });

Polymer({
_template: html`
_template: Polymer.html`
<slot></slot>

@@ -65,5 +64,5 @@ `,

behaviors: [
IronControlState,
IronButtonState
Polymer.IronControlState,
Polymer.IronButtonState
]
});

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