Socket
Socket
Sign inDemoInstall

@polymer/iron-selector

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

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

26

iron-multi-selectable.js
import '../polymer/polymer.js';
import { IronSelectableBehavior } from './iron-selectable.js';
export const IronMultiSelectableBehaviorImpl = {
import './iron-selectable.js';
/**
* @polymerBehavior Polymer.IronMultiSelectableBehavior
*/
/**
@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.IronMultiSelectableBehaviorImpl = {
properties: {

@@ -74,3 +85,3 @@

if (!this.multi) {
IronSelectableBehavior._updateAttrForSelected.apply(this);
Polymer.IronSelectableBehavior._updateAttrForSelected.apply(this);
} else if (this.selectedItems && this.selectedItems.length > 0) {

@@ -150,5 +161,6 @@ this.selectedValues = this.selectedItems.map(function(selectedItem) {

export const IronMultiSelectableBehavior = [
IronSelectableBehavior,
IronMultiSelectableBehaviorImpl
/** @polymerBehavior */
Polymer.IronMultiSelectableBehavior = [
Polymer.IronSelectableBehavior,
Polymer.IronMultiSelectableBehaviorImpl
];
import '../polymer/polymer.js';
import { IronSelection } from './iron-selection.js';
import { dom } from '../polymer/lib/legacy/polymer.dom.js';
import { dashToCamelCase } from '../polymer/lib/utils/case-map.js';
import './iron-selection.js';
/**
* @polymerBehavior Polymer.IronSelectableBehavior
*/
/**
@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.IronSelectableBehavior = {
export const IronSelectableBehavior = {
/**

@@ -154,3 +163,3 @@ * Fired when iron-selector is activated (selected or deselected).

this._bindFilterItem = this._filterItem.bind(this);
this._selection = new IronSelection(this._applySelection.bind(this));
this._selection = new Polymer.IronSelection(this._applySelection.bind(this));
},

@@ -165,3 +174,3 @@

if (this._observer) {
dom(this).unobserveNodes(this._observer);
Polymer.dom(this).unobserveNodes(this._observer);
}

@@ -271,3 +280,3 @@ this._removeListener(this.activateEvent);

_updateItems: function() {
var nodes = dom(this).queryDistributedElements(this.selectable || '*');
var nodes = Polymer.dom(this).queryDistributedElements(this.selectable || '*');
nodes = Array.prototype.filter.call(nodes, this._bindFilterItem);

@@ -344,3 +353,3 @@ this._setItems(nodes);

}
var propValue = item[dashToCamelCase(this.attrForSelected)];
var propValue = item[Polymer.CaseMap.dashToCamelCase(this.attrForSelected)];
return propValue != undefined ? propValue : item.getAttribute(this.attrForSelected);

@@ -366,3 +375,3 @@ },

_observeItems: function(node) {
return dom(node).observeNodes(function(mutation) {
return Polymer.dom(node).observeNodes(function(mutation) {
this._updateItems();

@@ -369,0 +378,0 @@ this._updateSelected();

import '../polymer/polymer.js';
export const IronSelection = function(selectCallback) {
/**
* @param {!Function} selectCallback
* @constructor
* @suppress {missingProvide}
*/
/**
@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.IronSelection = function(selectCallback) {
this.selection = [];

@@ -8,3 +22,3 @@ this.selectCallback = selectCallback;

IronSelection.prototype = {
Polymer.IronSelection.prototype = {

@@ -11,0 +25,0 @@ /**

import '../polymer/polymer.js';
import { IronMultiSelectableBehavior } from './iron-multi-selectable.js';
import { Polymer } from '../polymer/lib/legacy/polymer-fn.js';
import './iron-multi-selectable.js';
/**

@@ -79,5 +78,5 @@ `iron-selector` is an element which can be used to manage a list of elements

behaviors: [
IronMultiSelectableBehavior
Polymer.IronMultiSelectableBehavior
]
});
{
"name": "@polymer/iron-selector",
"flat": true,
"version": "3.0.0-pre.4",
"version": "3.0.0-pre.6",
"description": "Manages a set of elements that can be selected",

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

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

@@ -31,0 +31,0 @@ },

@@ -1,3 +0,2 @@

import { html } from '../../polymer/polymer.js';
import { Polymer } from '../../polymer/lib/legacy/polymer-fn.js';
import '../../polymer/polymer.js';
/**

@@ -13,3 +12,3 @@ @license

Polymer({
_template: html`
_template: Polymer.html`
<div>{{someAttr}}</div>

@@ -16,0 +15,0 @@ `,

import '../iron-selector.js';
import { Polymer } from '../../polymer/lib/legacy/polymer-fn.js';
import { html } from '../../polymer/polymer.js';

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

Polymer({
_template: html`
_template: Polymer.html`
<iron-selector id="selector" selected="{{selected}}" selectable="[[selectable]]" attr-for-selected="id">

@@ -18,0 +16,0 @@ <slot></slot>

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

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