@lrnwebcomponents/absolute-position-behavior
Advanced tools
Comparing version 2.3.3 to 2.3.7
@@ -10,10 +10,5 @@ /** | ||
* `absolute-position-behavior` | ||
* @customElement absolute-position-behavior | ||
* abstracts absolute positioning behavior to be resusable in other elements | ||
* | ||
* @microcopy - language worth noting: | ||
* - | ||
* | ||
* @demo ./demo/index.html | ||
* @customElement absolute-position-behavior | ||
*/ | ||
@@ -20,0 +15,0 @@ class AbsolutePositionBehavior extends LitElement { |
@@ -1,2 +0,2 @@ | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("lit-element/lit-element.js"),require("@polymer/iron-resizable-behavior/iron-resizable-behavior.js")):"function"==typeof define&&define.amd?define(["exports","lit-element/lit-element.js","@polymer/iron-resizable-behavior/iron-resizable-behavior.js"],e):e((t=t||self).AbsolutePositionBehavior={},t.litElement_js)}(this,function(t,e){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function i(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function a(t,e){return(a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function l(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function c(t,e,n){return(c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var o=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=u(t)););return t}(t,e);if(o){var i=Object.getOwnPropertyDescriptor(o,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function f(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}window.AbsolutePositionStateManager=window.AbsolutePositionStateManager||{},window.AbsolutePositionStateManager.requestAvailability=function(){if(!window.AbsolutePositionStateManager.instance){window.AbsolutePositionStateManager.instance=document.createElement("absolute-position-state-manager");var t=window.AbsolutePositionStateManager.instance;document.body.appendChild(t)}return window.AbsolutePositionStateManager.instance};var p=function(t){function o(){var t;return n(this,o),(t=l(this,u(o).call(this))).elements=[],t.__timeout=!1,t.__observer=new MutationObserver(function(e){return t.checkMutations(e)}),t}return s(o,e.LitElement),i(o,null,[{key:"tag",get:function(){return"absolute-position-state-manager"}},{key:"properties",get:function(){return{elements:{type:Array},__observer:{type:Object},__timeout:{type:Object}}}}]),i(o,[{key:"loadElement",value:function(t){this.elements.length<1&&(this.__observer.observe(document,{attributes:!0,childList:!0,subtree:!0,characterData:!0}),this.updateElements(),document.addEventListener("load",this.updateElements),window.addEventListener("resize",this._handleResize)),this.elements.push(t),this.positionElement(t)}},{key:"unloadElement",value:function(t){this.elements.filter(function(e){return e===t}),this.elements.length<1&&this.removeEventListeners()}},{key:"_handleResize",value:function(){this.__timeout&&clearTimeout(this.__timeout),this.__timeout=setTimeout(window.AbsolutePositionStateManager.instance.updateElements(),250)}},{key:"checkMutations",value:function(t){var e=this,n=!1;t.forEach(function(t){n||(n=n||!("attributes"===t.type&&"style"===t.attributeName&&e.elements.includes(t.target)))}),n&&this.updateElements()}},{key:"findTarget",value:function(t){for(var e="#"+t.for,n=1===document.querySelectorAll(e).length?document.querySelector(e):null,o=t.target||n,i=t;void 0!==t.for&&null===o&&null!==i&&i!==document;)11===(i=i.parentNode).nodeType&&(i=i.host),o=i?i.querySelector(e):null;return o}},{key:"removeEventListeners",value:function(){this.__observer&&this.__observer.disconnect&&this.__observer.disconnect(),document.removeEventListener("load",this.updateElements),window.removeEventListener("resize",this._handleResize)}},{key:"updateElements",value:function(){var t=this;this.elements.forEach(function(e){return t.positionElement(e)})}},{key:"positionElement",value:function(t){var e=this.findTarget(t);if(e&&t.offsetParent){var n=t.offset,o=t.offsetParent.getBoundingClientRect(),i=e.getBoundingClientRect(),r=t.getBoundingClientRect(),s=function(t){return"left"!==t&&"right"!==t},u=function(){var e=s(t.position)?"left":"top",n=s(t.position)?"right":"bottom",u=function(e){return s(t.position)?e.width:e.height},a=i[e]-u(r)/2+u(i)/2,l=o[e],c=o[n]-u(r);return t.fitToVisibleBounds?Math.max(l,Math.min(c,a))+"px":a+"px"},a=function(){return"top"===t.position?i.top-r.height-n+"px":"left"===t.position?i.left-r.width-n+"px":i[t.position]+n+"px"},l=function(t){var e=s(t)?r.height+n:r.width+n;return function(t){return"left"===t||"top"===t}(t)?i[t]-o[t]>e:o[t]-i[t]>e},c=!1!==t.fitToVisibleBounds&&!l(t.position),f={top:["bottom","left","right"],left:["right","top","bottom"],bottom:["top","right","left"],right:["left","bottom","top"]};c&&l(f[t.position][0])?t.position=f[t.position][0]:c&&l(f[t.position][1])?t.position=f[t.position][1]:c&&l(f[t.position][2])?t.position=f[t.position][2]:(t.style.position="absolute",t.style.top=s(t.position)?a():u(),t.style.left=s(t.position)?u():a(),t.__positions={self:r,parent:o,target:i})}}},{key:"disconnectedCallback",value:function(){this.removeEventListeners(),c(u(o.prototype),"disconnectedCallback",this).call(this)}}]),o}();function d(){var t=f(["\n:host {\n display: inline-block;\n}\n\n:host([hidden]) {\n display: none;\n}\n "]);return d=function(){return t},t}function h(){var t=f(["\n\n<slot></slot>"]);return h=function(){return t},t}window.customElements.define(p.tag,p);var b=function(t){function o(){var t;return n(this,o),(t=l(this,u(o).call(this))).auto=!1,t.fitToVisibleBounds=!1,t.for=null,t.offset=0,t.position="bottom",t.target=null,t.__positions={},t.__observe=!1,t.__manager=window.AbsolutePositionStateManager.requestAvailability(),t}return s(o,e.LitElement),i(o,[{key:"render",value:function(){return e.html(h())}}],[{key:"styles",get:function(){return[e.css(d())]}},{key:"properties",get:function(){return function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),o.forEach(function(e){r(t,e,n[e])})}return t}({},c(u(o),"properties",this),{auto:{type:Boolean},fitToVisibleBounds:{type:Boolean,attribute:"fit-to-visible-bounds"},for:{type:String,reflect:!0},offset:{type:Number},position:{type:String,reflect:!0},target:{type:Object},__positions:{type:Object}})}},{key:"tag",get:function(){return"absolute-position-behavior"}}]),i(o,[{key:"updated",value:function(t){var e=this;t.forEach(function(t,n){"auto"===n&&e.auto&&e.setPosition(),"auto"!==n||e.auto||e.unsetPosition(),"fitToVisibleBounds"===n&&e.updatePosition(),"for"===n&&e.updatePosition(),"offset"===n&&e.updatePosition(),"position"===n&&e.updatePosition(),"target"===n&&e.updatePosition()})}},{key:"setPosition",value:function(){this.__observe=!0,this.__manager.loadElement(this)}},{key:"unsetPosition",value:function(){this.__observe=!1,this.__manager.unloadElement(this)}},{key:"updatePosition",value:function(){!0===this.__observe&&this.__manager.positionElement(this)}},{key:"disconnectedCallback",value:function(){this.unsetPosition(),c(u(o.prototype),"disconnectedCallback",this).call(this)}}]),o}();window.customElements.define(b.tag,b),t.AbsolutePositionBehavior=b,Object.defineProperty(t,"__esModule",{value:!0})}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("lit-element/lit-element.js"),require("@polymer/iron-resizable-behavior/iron-resizable-behavior.js")):"function"==typeof define&&define.amd?define(["exports","lit-element/lit-element.js","@polymer/iron-resizable-behavior/iron-resizable-behavior.js"],t):t((e=e||self).AbsolutePositionBehavior={},e.litElement_js)}(this,function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function i(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e,t,n){return(f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var o=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=a(e)););return e}(e,t);if(o){var i=Object.getOwnPropertyDescriptor(o,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function p(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}window.AbsolutePositionStateManager=window.AbsolutePositionStateManager||{},window.AbsolutePositionStateManager.requestAvailability=function(){if(!window.AbsolutePositionStateManager.instance){window.AbsolutePositionStateManager.instance=document.createElement("absolute-position-state-manager");var e=window.AbsolutePositionStateManager.instance;document.body.appendChild(e)}return window.AbsolutePositionStateManager.instance};var b=function(e){function o(){var e;return n(this,o),(e=c(this,a(o).call(this))).elements=[],e.__timeout=!1,e.__observer=new MutationObserver(function(t){return e.checkMutations(t)}),e}return u(o,t.LitElement),i(o,null,[{key:"tag",get:function(){return"absolute-position-state-manager"}},{key:"properties",get:function(){return{elements:{type:Array},__observer:{type:Object},__timeout:{type:Object}}}}]),i(o,[{key:"loadElement",value:function(e){this.elements.length<1&&(this.__observer.observe(document,{attributes:!0,childList:!0,subtree:!0,characterData:!0}),this.updateElements(),document.addEventListener("load",this.updateElements),window.addEventListener("resize",this._handleResize)),this.elements.push(e),this.positionElement(e)}},{key:"unloadElement",value:function(e){this.elements.filter(function(t){return t===e}),this.elements.length<1&&this.removeEventListeners()}},{key:"_handleResize",value:function(){this.__timeout&&clearTimeout(this.__timeout),this.__timeout=setTimeout(window.AbsolutePositionStateManager.instance.updateElements(),250)}},{key:"checkMutations",value:function(e){var t=this,n=!1;e.forEach(function(e){n||(n=n||!("attributes"===e.type&&"style"===e.attributeName&&t.elements.includes(e.target)))}),n&&this.updateElements()}},{key:"findTarget",value:function(e){for(var t="#"+e.for,n=1===document.querySelectorAll(t).length?document.querySelector(t):null,o=e.target||n,i=e;void 0!==e.for&&null===o&&null!==i&&i!==document;)11===(i=i.parentNode).nodeType&&(i=i.host),o=i?i.querySelector(t):null;return o}},{key:"removeEventListeners",value:function(){this.__observer&&this.__observer.disconnect&&this.__observer.disconnect(),document.removeEventListener("load",this.updateElements),window.removeEventListener("resize",this._handleResize)}},{key:"updateElements",value:function(){var e=this;this.elements.forEach(function(t){return e.positionElement(t)})}},{key:"positionElement",value:function(e){var t=this.findTarget(e);if(t&&e.offsetParent){var n=e.offset,o=e.offsetParent.getBoundingClientRect(),i=t.getBoundingClientRect(),r=e.getBoundingClientRect(),s=function(e){return"left"!==e&&"right"!==e},u=function(){var t=s(e.position)?"left":"top",n=s(e.position)?"right":"bottom",u=function(t){return s(e.position)?t.width:t.height},a=i[t]-u(r)/2+u(i)/2,l=o[t],c=o[n]-u(r);return e.fitToVisibleBounds?Math.max(l,Math.min(c,a))+"px":a+"px"},a=function(){return"top"===e.position?i.top-r.height-n+"px":"left"===e.position?i.left-r.width-n+"px":i[e.position]+n+"px"},l=function(e){var t=s(e)?r.height+n:r.width+n;return function(e){return"left"===e||"top"===e}(e)?i[e]-o[e]>t:o[e]-i[e]>t},c=!1!==e.fitToVisibleBounds&&!l(e.position),f={top:["bottom","left","right"],left:["right","top","bottom"],bottom:["top","right","left"],right:["left","bottom","top"]};c&&l(f[e.position][0])?e.position=f[e.position][0]:c&&l(f[e.position][1])?e.position=f[e.position][1]:c&&l(f[e.position][2])?e.position=f[e.position][2]:(e.style.position="absolute",e.style.top=s(e.position)?a():u(),e.style.left=s(e.position)?u():a(),e.__positions={self:r,parent:o,target:i})}}},{key:"disconnectedCallback",value:function(){this.removeEventListeners(),f(a(o.prototype),"disconnectedCallback",this).call(this)}}]),o}();function d(){var e=p(["\n:host {\n display: inline-block;\n}\n\n:host([hidden]) {\n display: none;\n}\n "]);return d=function(){return e},e}function h(){var e=p(["\n\n<slot></slot>"]);return h=function(){return e},e}window.customElements.define(b.tag,b);var y=function(e){function o(){var e;return n(this,o),(e=c(this,a(o).call(this))).auto=!1,e.fitToVisibleBounds=!1,e.for=null,e.offset=0,e.position="bottom",e.target=null,e.__positions={},e.__observe=!1,e.__manager=window.AbsolutePositionStateManager.requestAvailability(),e}return u(o,t.LitElement),i(o,[{key:"render",value:function(){return t.html(h())}}],[{key:"styles",get:function(){return[t.css(d())]}},{key:"properties",get:function(){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach(function(t){r(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},f(a(o),"properties",this),{auto:{type:Boolean},fitToVisibleBounds:{type:Boolean,attribute:"fit-to-visible-bounds"},for:{type:String,reflect:!0},offset:{type:Number},position:{type:String,reflect:!0},target:{type:Object},__positions:{type:Object}})}},{key:"tag",get:function(){return"absolute-position-behavior"}}]),i(o,[{key:"updated",value:function(e){var t=this;e.forEach(function(e,n){"auto"===n&&t.auto&&t.setPosition(),"auto"!==n||t.auto||t.unsetPosition(),"fitToVisibleBounds"===n&&t.updatePosition(),"for"===n&&t.updatePosition(),"offset"===n&&t.updatePosition(),"position"===n&&t.updatePosition(),"target"===n&&t.updatePosition()})}},{key:"setPosition",value:function(){this.__observe=!0,this.__manager.loadElement(this)}},{key:"unsetPosition",value:function(){this.__observe=!1,this.__manager.unloadElement(this)}},{key:"updatePosition",value:function(){!0===this.__observe&&this.__manager.positionElement(this)}},{key:"disconnectedCallback",value:function(){this.unsetPosition(),f(a(o.prototype),"disconnectedCallback",this).call(this)}}]),o}();window.customElements.define(y.tag,y),e.AbsolutePositionBehavior=y,Object.defineProperty(e,"__esModule",{value:!0})}); | ||
//# sourceMappingURL=absolute-position-behavior.umd.js.map |
{ | ||
"version": 2, | ||
"version": "experimental", | ||
"tags": [ | ||
{ | ||
"name": "absolute-position-state-manager\nmanages state of multiple absolute-positioned elements on a page", | ||
"name": "absolute-position-state-manager", | ||
"description": "`absolute-position-state-manager`", | ||
"jsDoc": "/**\n * `absolute-position-state-manager`\n * @customElement absolute-position-state-manager\n * manages state of multiple absolute-positioned elements on a page\n *\n\n * @polymer\n */", | ||
"attributes": [ | ||
{ | ||
"name": "elements", | ||
"type": "never[]" | ||
"description": "Stores an array of all elements using manager.", | ||
"type": "array", | ||
"default": "[]" | ||
} | ||
@@ -17,74 +18,78 @@ ], | ||
"name": "elements", | ||
"type": "never[]" | ||
}, | ||
{ | ||
"name": "ancestor", | ||
"type": "any" | ||
"attribute": "elements", | ||
"description": "Stores an array of all elements using manager.", | ||
"type": "array", | ||
"default": "[]" | ||
} | ||
], | ||
"events": [], | ||
"slots": [] | ||
] | ||
}, | ||
{ | ||
"name": "absolute-position-behavior\nabstracts absolute positioning behavior to be resusable in other elements", | ||
"name": "absolute-position-behavior", | ||
"description": "`absolute-position-behavior`", | ||
"jsDoc": "/**\n * `absolute-position-behavior`\n * @customElement absolute-position-behavior\n * abstracts absolute positioning behavior to be resusable in other elements\n *\n * @microcopy - language worth noting:\n * -\n *\n\n * @demo ./demo/index.html\n */", | ||
"attributes": [], | ||
"properties": [ | ||
{ | ||
"name": "auto", | ||
"type": "boolean" | ||
"type": "boolean", | ||
"default": "false" | ||
}, | ||
{ | ||
"name": "fitToVisibleBounds", | ||
"type": "boolean" | ||
"type": "boolean", | ||
"default": "false" | ||
}, | ||
{ | ||
"name": "for", | ||
"type": "null" | ||
"name": "for" | ||
}, | ||
{ | ||
"name": "offset", | ||
"type": "number" | ||
"type": "number", | ||
"default": "0" | ||
}, | ||
{ | ||
"name": "position", | ||
"type": "string" | ||
"type": "string", | ||
"default": "\"bottom\"" | ||
}, | ||
{ | ||
"name": "target", | ||
"type": "null" | ||
"name": "target" | ||
} | ||
], | ||
"events": [], | ||
"slots": [] | ||
] | ||
}, | ||
{ | ||
"name": "absolute-position-behavior\nabstracts absolute positioning behavior to be resusable in other elements", | ||
"name": "absolute-position-behavior", | ||
"description": "`absolute-position-behavior`", | ||
"jsDoc": "/**\n * `absolute-position-behavior`\n * @customElement absolute-position-behavior\n * abstracts absolute positioning behavior to be resusable in other elements\n *\n * @microcopy - language worth noting:\n * -\n *\n\n * @demo ./demo/index.html\n */", | ||
"attributes": [ | ||
{ | ||
"name": "auto", | ||
"type": "boolean" | ||
"description": "Element is positioned from connected to disconnected?\nOtherwise setPosition and unsetPosition must be called manually.", | ||
"type": "boolean", | ||
"default": "false" | ||
}, | ||
{ | ||
"name": "fit-to-visible-bounds", | ||
"type": "boolean" | ||
"description": "If true, no parts of the tooltip will ever be shown offscreen.", | ||
"type": "boolean", | ||
"default": "false" | ||
}, | ||
{ | ||
"name": "for", | ||
"type": "null" | ||
"description": "The id of the element that the tooltip is anchored to. This element\nmust be a sibling of the tooltip. If this property is not set,\nthen the tooltip will be centered to the parent node containing it.", | ||
"type": "string" | ||
}, | ||
{ | ||
"name": "offset", | ||
"type": "number" | ||
"description": "The spacing between the top of the tooltip and the element it is\nanchored to.", | ||
"type": "number", | ||
"default": "0" | ||
}, | ||
{ | ||
"name": "position", | ||
"type": "string" | ||
"description": "Positions the tooltip to the top, right, bottom, left of its content.", | ||
"type": "string", | ||
"default": "\"bottom\"" | ||
}, | ||
{ | ||
"name": "target", | ||
"type": "null" | ||
"description": "The actual target element", | ||
"type": "object" | ||
} | ||
@@ -95,63 +100,78 @@ ], | ||
"name": "auto", | ||
"type": "boolean" | ||
"attribute": "auto", | ||
"description": "Element is positioned from connected to disconnected?\nOtherwise setPosition and unsetPosition must be called manually.", | ||
"type": "boolean", | ||
"default": "false" | ||
}, | ||
{ | ||
"name": "fitToVisibleBounds", | ||
"type": "boolean" | ||
"attribute": "fit-to-visible-bounds", | ||
"description": "If true, no parts of the tooltip will ever be shown offscreen.", | ||
"type": "boolean", | ||
"default": "false" | ||
}, | ||
{ | ||
"name": "for", | ||
"type": "null" | ||
"attribute": "for", | ||
"description": "The id of the element that the tooltip is anchored to. This element\nmust be a sibling of the tooltip. If this property is not set,\nthen the tooltip will be centered to the parent node containing it.", | ||
"type": "string" | ||
}, | ||
{ | ||
"name": "offset", | ||
"type": "number" | ||
"attribute": "offset", | ||
"description": "The spacing between the top of the tooltip and the element it is\nanchored to.", | ||
"type": "number", | ||
"default": "0" | ||
}, | ||
{ | ||
"name": "position", | ||
"type": "string" | ||
"attribute": "position", | ||
"description": "Positions the tooltip to the top, right, bottom, left of its content.", | ||
"type": "string", | ||
"default": "\"bottom\"" | ||
}, | ||
{ | ||
"name": "target", | ||
"type": "null" | ||
"attribute": "target", | ||
"description": "The actual target element", | ||
"type": "object" | ||
} | ||
], | ||
"events": [], | ||
"slots": [] | ||
] | ||
}, | ||
{ | ||
"name": "absolute-position-behavior\nabstracts absolute positioning behavior to be resusable in other elements", | ||
"name": "tag" | ||
}, | ||
{ | ||
"name": "absolute-position-behavior", | ||
"description": "`absolute-position-behavior`", | ||
"jsDoc": "/**\n * `absolute-position-behavior`\n * @customElement absolute-position-behavior\n * abstracts absolute positioning behavior to be resusable in other elements\n *\n * @microcopy - language worth noting:\n * -\n *\n\n * @demo ./demo/index.html\n */", | ||
"attributes": [], | ||
"properties": [ | ||
{ | ||
"name": "auto", | ||
"type": "boolean" | ||
"type": "boolean", | ||
"default": "false" | ||
}, | ||
{ | ||
"name": "fitToVisibleBounds", | ||
"type": "boolean" | ||
"type": "boolean", | ||
"default": "false" | ||
}, | ||
{ | ||
"name": "for", | ||
"type": "null" | ||
"name": "for" | ||
}, | ||
{ | ||
"name": "offset", | ||
"type": "number" | ||
"type": "number", | ||
"default": "0" | ||
}, | ||
{ | ||
"name": "position", | ||
"type": "string" | ||
"type": "string", | ||
"default": "\"bottom\"" | ||
}, | ||
{ | ||
"name": "target", | ||
"type": "null" | ||
"name": "target" | ||
} | ||
], | ||
"events": [], | ||
"slots": [] | ||
] | ||
} | ||
] | ||
} |
@@ -19,3 +19,3 @@ { | ||
}, | ||
"version": "2.3.3", | ||
"version": "2.3.7", | ||
"description": "Abstracting the positioning behavior from paper-tooltip to be resusable in other elements", | ||
@@ -32,3 +32,3 @@ "repository": { | ||
"start": "yarn run dev", | ||
"build": "../../node_modules/.bin/gulp && ../../node_modules/.bin/rollup -c && ../../node_modules/.bin/prettier --ignore-path ../../.prettierignore --write '**/*.{js,json}' && wca analyze \"**/*.js\" --outFile custom-elements.json", | ||
"build": "../../node_modules/.bin/gulp && ../../node_modules/.bin/rollup -c && ../../node_modules/.bin/prettier --ignore-path ../../.prettierignore --write '**/*.{js,json}' && wca analyze \"**/*.js\" --format vscode --outFile vscode-html-custom-data.json", | ||
"dev": "concurrently --kill-others \"yarn run watch\" \"yarn run serve\"", | ||
@@ -68,3 +68,3 @@ "watch": "../../node_modules/.bin/gulp dev", | ||
], | ||
"gitHead": "493ea1a015492311b17a8328eee98e4f6eb12948" | ||
"gitHead": "91924cdcaa5a89119fff3aa4c7638919d0c26ab2" | ||
} |
@@ -10,10 +10,5 @@ /** | ||
* `absolute-position-behavior` | ||
* @customElement absolute-position-behavior | ||
* abstracts absolute positioning behavior to be resusable in other elements | ||
* | ||
* @microcopy - language worth noting: | ||
* - | ||
* | ||
* @demo ./demo/index.html | ||
* @customElement absolute-position-behavior | ||
*/ | ||
@@ -20,0 +15,0 @@ class AbsolutePositionBehavior extends LitElement { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
157570
3575