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.6 to 3.0.0-pre.7

.github/CODEOWNERS

13

demo/simple-button.js

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

import '../../polymer/polymer.js';
import '../iron-button-state.js';
import '../iron-control-state.js';
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';

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

"dependencies": {
"@polymer/polymer": "^3.0.0-pre.6",
"@polymer/iron-a11y-keys-behavior": "^3.0.0-pre.6"
"@polymer/polymer": "^3.0.0-pre.7",
"@polymer/iron-a11y-keys-behavior": "^3.0.0-pre.7"
},
"devDependencies": {
"@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",
"@polymer/paper-styles": "^3.0.0-pre.7",
"@polymer/paper-input": "^3.0.0-pre.7",
"@polymer/iron-test-helpers": "^3.0.0-pre.7",
"@polymer/iron-component-page": "^3.0.0-pre.7",
"wct-browser-legacy": "0.0.1-pre.11",

@@ -25,0 +25,0 @@ "@webcomponents/webcomponentsjs": "^1.0.0"

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

import '../../polymer/polymer.js';
import '../iron-control-state.js';
import '../iron-button-state.js';
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';

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

behaviors: [
Polymer.IronControlState
IronControlState
]

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

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

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

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

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

behaviors: [
Polymer.IronControlState
IronControlState
]

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

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

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

behaviors: [
Polymer.IronControlState,
Polymer.IronButtonState
IronControlState,
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