Socket
Socket
Sign inDemoInstall

@polymer/iron-resizable-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-resizable-behavior - npm Package Compare versions

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

.github/CODEOWNERS

12

demo/src/x-app.js

@@ -1,2 +0,4 @@

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

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

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

@@ -28,3 +30,3 @@ :host {

behaviors: [
Polymer.IronResizableBehavior
IronResizableBehavior
],

@@ -69,3 +71,3 @@

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

@@ -87,4 +89,4 @@ :host {

behaviors: [
Polymer.IronResizableBehavior
IronResizableBehavior
]
});
import '../polymer/polymer.js';
/**
* `IronResizableBehavior` is a behavior that can be used in Polymer elements to
* coordinate the flow of resize events between "resizers" (elements that control the
* size or hidden state of their children) and "resizables" (elements that need to be
* notified when they are resized or un-hidden by their parents in order to take
* action on their new measurements).
*
* Elements that perform measurement should add the `IronResizableBehavior` behavior to
* their element definition and listen for the `iron-resize` event on themselves.
* This event will be fired when they become showing after having been hidden,
* when they are resized explicitly by another resizable, or when the window has been
* resized.
*
* Note, the `iron-resize` event is non-bubbling.
*
* @polymerBehavior Polymer.IronResizableBehavior
* @demo demo/index.html
**/
/**
@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.IronResizableBehavior = {
import { useShadow } from '../polymer/lib/utils/settings.js';
import { dom } from '../polymer/lib/legacy/polymer.dom.js';
export const IronResizableBehavior = {
properties: {

@@ -133,3 +109,3 @@ /**

// the case where Polymer is not using shadow roots for whatever reason:
if (!undefined.useShadow) {
if (!useShadow) {
this._fireResize();

@@ -147,3 +123,3 @@ }

_onIronRequestResizeNotifications: function(event) {
var target = /** @type {!EventTarget} */ (Polymer.dom(event).rootTarget);
var target = /** @type {!EventTarget} */ (dom(event).rootTarget);
if (target === this) {

@@ -150,0 +126,0 @@ return;

{
"name": "@polymer/iron-resizable-behavior",
"flat": true,
"version": "3.0.0-pre.6",
"version": "3.0.0-pre.7",
"description": "Coordinates the flow of resizeable elements",

@@ -22,6 +22,6 @@ "contributors": [

"dependencies": {
"@polymer/polymer": "^3.0.0-pre.6"
"@polymer/polymer": "^3.0.0-pre.7"
},
"devDependencies": {
"@polymer/iron-component-page": "^3.0.0-pre.6",
"@polymer/iron-component-page": "^3.0.0-pre.7",
"wct-browser-legacy": "0.0.1-pre.11",

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

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

import '../iron-resizable-behavior.js';
import { IronResizableBehavior } from '../iron-resizable-behavior.js';
import './x-resizer-parent.js';
import './x-resizable.js';
import { Polymer as Polymer$0 } from '../../polymer/lib/legacy/polymer-fn.js';
import { html } from '../../polymer/polymer.js';

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

*/
Polymer({
Polymer$0({

@@ -22,3 +24,3 @@ is: 'x-resizer-parent-filtered',

behaviors: [
Polymer.IronResizableBehavior
IronResizableBehavior
],

@@ -32,4 +34,4 @@

Polymer({
_template: Polymer.html`
Polymer$0({
_template: html`
<div>

@@ -43,4 +45,4 @@ <x-resizable id="resizable"></x-resizable>

Polymer({
_template: Polymer.html`
Polymer$0({
_template: html`
<!-- Normal resizable parent with child resizables -->

@@ -74,4 +76,3 @@ <x-resizer-parent id="parent">

/** @polymerBehavior */
Polymer.ObserveIronResizeBehavior = {
export const ObserveIronResizeBehavior = {
properties: {

@@ -92,4 +93,5 @@ ironResizeCount: {

};
Polymer({
_template: Polymer.html`
Polymer$0({
_template: html`
<div></div>

@@ -101,8 +103,8 @@ `,

behaviors: [
Polymer.IronResizableBehavior,
Polymer.ObserveIronResizeBehavior
IronResizableBehavior,
ObserveIronResizeBehavior
]
});
Polymer({
_template: Polymer.html`
Polymer$0({
_template: html`
<x-shadow-resizable id="childResizable1"></x-shadow-resizable>

@@ -115,5 +117,5 @@ <x-shadow-resizable id="childResizable2"></x-shadow-resizable>

behaviors: [
Polymer.IronResizableBehavior,
Polymer.ObserveIronResizeBehavior
IronResizableBehavior,
ObserveIronResizeBehavior
]
});

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

import '../iron-resizable-behavior.js';
import { IronResizableBehavior } from '../iron-resizable-behavior.js';
import { Polymer } from '../../polymer/lib/legacy/polymer-fn.js';

@@ -17,5 +18,5 @@ /**

behaviors: [
Polymer.IronResizableBehavior
IronResizableBehavior
]
});

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

import '../iron-resizable-behavior.js';
import { IronResizableBehavior } from '../iron-resizable-behavior.js';
import { Polymer } from '../../polymer/lib/legacy/polymer-fn.js';

@@ -17,5 +18,5 @@ /**

behaviors: [
Polymer.IronResizableBehavior
IronResizableBehavior
]
});

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