@descope/web-components-ui 2.2.24 → 2.2.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/umd/1408.js +2 -2
- package/dist/umd/1453.js +177 -0
- package/dist/umd/{1995.js.LICENSE.txt → 1453.js.LICENSE.txt} +6 -0
- package/dist/umd/1453.js.map +1 -0
- package/dist/umd/1899.js +2 -2
- package/dist/umd/2562.js +3 -0
- package/dist/umd/2562.js.map +1 -0
- package/dist/umd/3620.js +3 -3
- package/dist/umd/4518.js +3 -3
- package/dist/umd/4550.js +2 -2
- package/dist/umd/4623.js +1 -1
- package/dist/umd/4914.js +1 -1
- package/dist/umd/4914.js.map +1 -1
- package/dist/umd/5260.js +2 -2
- package/dist/umd/5263.js +498 -0
- package/dist/umd/5263.js.LICENSE.txt +17 -0
- package/dist/umd/5263.js.map +1 -0
- package/dist/umd/5648.js +1 -1
- package/dist/umd/5966.js +125 -0
- package/dist/umd/5966.js.map +1 -0
- package/dist/umd/6477.js +3 -3
- package/dist/umd/7291.js +2 -2
- package/dist/umd/7387.js +144 -0
- package/dist/umd/{6419.js.LICENSE.txt → 7387.js.LICENSE.txt} +8 -2
- package/dist/umd/7387.js.map +1 -0
- package/dist/umd/7774.js +3 -3
- package/dist/umd/7939.js +1 -1
- package/dist/umd/8202.js +82 -0
- package/dist/umd/{descope-apps-list.js.LICENSE.txt → 8202.js.LICENSE.txt} +0 -6
- package/dist/umd/8202.js.map +1 -0
- package/dist/umd/8983.js +1 -1
- package/dist/umd/9117.js +3 -3
- package/dist/umd/9970.js +1 -1
- package/dist/umd/button-selection-group-fields-descope-button-selection-group-item-index-js.js +1 -1
- package/dist/umd/descope-apps-list.js +1 -17
- package/dist/umd/descope-apps-list.js.map +1 -1
- package/dist/umd/descope-avatar.js +161 -2
- package/dist/umd/descope-avatar.js.LICENSE.txt +6 -0
- package/dist/umd/descope-avatar.js.map +1 -1
- package/dist/umd/descope-button.js +1 -1
- package/dist/umd/descope-combo-box.js +2 -2
- package/dist/umd/descope-date-field-index-js.js +1 -1
- package/dist/umd/descope-email-field-index-js.js +1 -1
- package/dist/umd/descope-grid-descope-grid-custom-column-index-js.js +1 -1
- package/dist/umd/descope-grid-descope-grid-custom-column-index-js.js.map +1 -1
- package/dist/umd/descope-grid-descope-grid-item-details-column-index-js.js +1 -1
- package/dist/umd/descope-grid-descope-grid-item-details-column-index-js.js.map +1 -1
- package/dist/umd/descope-grid-descope-grid-selection-column-index-js.js +1 -1
- package/dist/umd/descope-grid-descope-grid-selection-column-index-js.js.map +1 -1
- package/dist/umd/descope-grid-descope-grid-text-column-index-js.js +1 -1
- package/dist/umd/descope-grid-descope-grid-text-column-index-js.js.map +1 -1
- package/dist/umd/descope-outbound-app-button.js +1 -1
- package/dist/umd/descope-outbound-apps.js +1 -338
- package/dist/umd/descope-outbound-apps.js.map +1 -1
- package/dist/umd/descope-passcode-index-js.js +1 -1
- package/dist/umd/descope-security-questions-verify-index-js.js +1 -1
- package/dist/umd/descope-text-field-index-js.js +1 -1
- package/dist/umd/descope-timer-button.js +1 -1
- package/dist/umd/descope-tooltip.js +2 -1
- package/dist/umd/descope-tooltip.js.LICENSE.txt +11 -0
- package/dist/umd/descope-tooltip.js.map +1 -1
- package/dist/umd/descope-upload-file-index-js.js +1 -1
- package/dist/umd/descope-user-attribute-index-js.js +1 -1
- package/dist/umd/descope-user-auth-method-index-js.js +1 -1
- package/dist/umd/index.js +1 -1
- package/dist/umd/index.js.map +1 -1
- package/dist/umd/phone-fields-descope-phone-input-box-field-descope-phone-input-box-internal-index-js.js +1 -1
- package/dist/umd/phone-fields-descope-phone-input-box-field-index-js.js +1 -1
- package/package.json +29 -29
- package/dist/umd/1519.js +0 -203
- package/dist/umd/1519.js.LICENSE.txt +0 -51
- package/dist/umd/1519.js.map +0 -1
- package/dist/umd/1995.js +0 -241
- package/dist/umd/1995.js.map +0 -1
- package/dist/umd/6419.js +0 -82
- package/dist/umd/6419.js.map +0 -1
- package/dist/umd/676.js +0 -3
- package/dist/umd/676.js.map +0 -1
- package/dist/umd/8618.js +0 -125
- package/dist/umd/8618.js.map +0 -1
- package/dist/umd/descope-outbound-apps.js.LICENSE.txt +0 -5
- /package/dist/umd/{676.js.LICENSE.txt → 2562.js.LICENSE.txt} +0 -0
- /package/dist/umd/{8618.js.LICENSE.txt → 5966.js.LICENSE.txt} +0 -0
package/dist/umd/8618.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"8618.js","mappings":";yJAOO,MAAMA,E,SAAgB,EAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6DCOhC,IAAIC,EAAa,IAAIC,QAGjBC,EAAoB,IAAID,QAGxBE,EAAY,CAAC,EAGbC,EAAY,EAMhB,MAAMC,EAAaC,GAASA,GAAQA,EAAKC,WAAaC,KAAKC,aAKrDC,EAAW,IAAIC,KACnBC,QAAQC,MAAM,UAAUF,EAAKG,KAAK,oCA0KvBC,EAAa,CAACC,EAAgBC,EAAaC,SAASC,KAAMC,EAAa,sBAClF,MAAMC,EAAUC,MAAMC,KAAKD,MAAME,QAAQR,GAAkBA,EAAiB,CAACA,IAO7E,OALIC,GAEFI,EAAQI,QAAQH,MAAMC,KAAKN,EAAWS,iBAAiB,iBApI5B,EAACV,EAAgBC,EAAYG,EAAYO,KACtE,MAAMN,EApCe,EAACO,EAAQP,IACzBhB,EAAUuB,GAKRP,EACJQ,IAAKC,IACJ,IAAKzB,EAAUyB,GAEb,OADApB,EAASoB,EAAQ,0BACV,KAGT,IAAIxB,EAAOwB,EACX,KAAOxB,GAAQA,IAASsB,GAAQ,CAC9B,GAAIA,EAAOG,SAASzB,GAClB,OAAOwB,EAETxB,EAAOA,EAAK0B,cAAcC,IAC5B,CAGA,OADAvB,EAASoB,EAAQ,0BAA2BF,GACrC,OAERM,OAAQC,GAAMC,QAAQD,KAtBvBzB,EAASkB,E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M3B,OAAQ+B,EAAIC,EAAGD,IACnCH,EAAWD,EAAME,QAErB,CAfMI,CAAST,EACX,EACF,EACF,CAcA,SAASI,EAAWM,GAClB,MAAMC,EAAUD,EAAK,GACfvM,EAAWuM,EAAK,GAChBpQ,EAAOoQ,EAAK,GAClB,IACEvM,EAASyM,MAAMD,EAASrQ,EAC1B,CAAE,MAAMuQ,GACNjD,WAAW,KACT,MAAMiD,GAEV,CACF,CAqDO,SAASC,EAAgBH,EAASxM,EAAU7D,GAC5CwP,GACHG,IAEFD,EAAiB5O,KAAK,CAACuP,EAASxM,EAAU7D,GAC5C,C","sources":["webpack://@descope/web-components-ui/../../../node_modules/@vaadin/overlay/src/vaadin-overlay-styles.js","webpack://@descope/web-components-ui/../../../node_modules/@vaadin/a11y-base/src/aria-hidden.js","webpack://@descope/web-components-ui/../../../node_modules/@vaadin/a11y-base/src/aria-modal-controller.js","webpack://@descope/web-components-ui/../../../node_modules/@vaadin/overlay/src/vaadin-overlay-focus-mixin.js","webpack://@descope/web-components-ui/../../../node_modules/@vaadin/overlay/src/vaadin-overlay-stack-mixin.js","webpack://@descope/web-components-ui/../../../node_modules/@vaadin/overlay/src/vaadin-overlay-mixin.js","webpack://@descope/web-components-ui/../../../node_modules/@vaadin/vaadin-lumo-styles/mixins/overlay.js","webpack://@descope/web-components-ui/../../../node_modules/@vaadin/a11y-base/src/focus-restoration-controller.js","webpack://@descope/web-components-ui/../../../node_modules/@vaadin/component-base/src/overlay-class-mixin.js","webpack://@descope/web-components-ui/../../../node_modules/@vaadin/a11y-base/src/focus-trap-controller.js","webpack://@descope/web-components-ui/../../../node_modules/@polymer/polymer/lib/utils/render-status.js"],"sourcesContent":["/**\n * @license\n * Copyright (c) 2017 - 2023 Vaadin Ltd.\n * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/\n */\nimport { css } from 'lit';\n\nexport const overlayStyles = css`\n :host {\n z-index: 200;\n position: fixed;\n\n /* Despite of what the names say, <vaadin-overlay> is just a container\n for position/sizing/alignment. The actual overlay is the overlay part. */\n\n /* Default position constraints: the entire viewport. Note: themes can\n override this to introduce gaps between the overlay and the viewport. */\n inset: 0;\n bottom: var(--vaadin-overlay-viewport-bottom);\n\n /* Use flexbox alignment for the overlay part. */\n display: flex;\n flex-direction: column; /* makes dropdowns sizing easier */\n /* Align to center by default. */\n align-items: center;\n justify-content: center;\n\n /* Allow centering when max-width/max-height applies. */\n margin: auto;\n\n /* The host is not clickable, only the overlay part is. */\n pointer-events: none;\n\n /* Remove tap highlight on touch devices. */\n -webkit-tap-highlight-color: transparent;\n\n /* CSS API for host */\n --vaadin-overlay-viewport-bottom: 0;\n }\n\n :host([hidden]),\n :host(:not([opened]):not([closing])),\n :host(:not([opened]):not([closing])) [part='overlay'] {\n display: none !important;\n }\n\n [part='overlay'] {\n -webkit-overflow-scrolling: touch;\n overflow: auto;\n pointer-events: auto;\n\n /* Prevent overflowing the host */\n max-width: 100%;\n box-sizing: border-box;\n\n -webkit-tap-highlight-color: initial; /* reenable tap highlight inside */\n }\n\n [part='backdrop'] {\n z-index: -1;\n content: '';\n background: rgba(0, 0, 0, 0.5);\n position: fixed;\n inset: 0;\n pointer-events: auto;\n }\n`;\n","/**\n * @license\n * Copyright (c) 2017 Anton Korzunov\n * SPDX-License-Identifier: MIT\n */\n\n/**\n * @fileoverview\n *\n * This module includes JS code copied from the `aria-hidden` package:\n * https://github.com/theKashey/aria-hidden/blob/master/src/index.ts\n */\n\n/** @type {WeakMap<Element, number>} */\nlet counterMap = new WeakMap();\n\n/** @type {WeakMap<Element, boolean>} */\nlet uncontrolledNodes = new WeakMap();\n\n/** @type {Record<string, WeakMap<Element, number>>} */\nlet markerMap = {};\n\n/** @type {number} */\nlet lockCount = 0;\n\n/**\n * @param {?Node} node\n * @return {boolean}\n */\nconst isElement = (node) => node && node.nodeType === Node.ELEMENT_NODE;\n\n/**\n * @param {...unknown} args\n */\nconst logError = (...args) => {\n console.error(`Error: ${args.join(' ')}. Skip setting aria-hidden.`);\n};\n\n/**\n * @param {HTMLElement} parent\n * @param {Element[]} targets\n * @return {Element[]}\n */\nconst correctTargets = (parent, targets) => {\n if (!isElement(parent)) {\n logError(parent, 'is not a valid element');\n return [];\n }\n\n return targets\n .map((target) => {\n if (!isElement(target)) {\n logError(target, 'is not a valid element');\n return null;\n }\n\n let node = target;\n while (node && node !== parent) {\n if (parent.contains(node)) {\n return target;\n }\n node = node.getRootNode().host;\n }\n\n logError(target, 'is not contained inside', parent);\n return null;\n })\n .filter((x) => Boolean(x));\n};\n\n/**\n * Marks everything except given node(or nodes) as aria-hidden\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param {HTMLElement} [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @param {String} [controlAttribute] - html Attribute to control\n * @return {Function}\n */\nconst applyAttributeToOthers = (originalTarget, parentNode, markerName, controlAttribute) => {\n const targets = correctTargets(parentNode, Array.isArray(originalTarget) ? originalTarget : [originalTarget]);\n\n if (!markerMap[markerName]) {\n markerMap[markerName] = new WeakMap();\n }\n\n const markerCounter = markerMap[markerName];\n\n /** @type {Element[]} */\n const hiddenNodes = [];\n\n /** @type {Set<Node>} */\n const elementsToKeep = new Set();\n\n /** @type {Set<Node>} */\n const elementsToStop = new Set(targets);\n\n /**\n * @param {?Node} el\n */\n const keep = (el) => {\n if (!el || elementsToKeep.has(el)) {\n return;\n }\n\n elementsToKeep.add(el);\n\n const slot = el.assignedSlot;\n if (slot) {\n keep(slot);\n }\n\n keep(el.parentNode || el.host);\n };\n\n targets.forEach(keep);\n\n /**\n * @param {?Node} el\n */\n const deep = (parent) => {\n if (!parent || elementsToStop.has(parent)) {\n return;\n }\n\n const root = parent.shadowRoot;\n const children = root ? [...parent.children, ...root.children] : [...parent.children];\n children.forEach((node) => {\n // Skip elements that don't need to be hidden\n if (['template', 'script', 'style'].includes(node.localName)) {\n return;\n }\n\n if (elementsToKeep.has(node)) {\n deep(node);\n } else {\n const attr = node.getAttribute(controlAttribute);\n const alreadyHidden = attr !== null && attr !== 'false';\n const counterValue = (counterMap.get(node) || 0) + 1;\n const markerValue = (markerCounter.get(node) || 0) + 1;\n\n counterMap.set(node, counterValue);\n markerCounter.set(node, markerValue);\n hiddenNodes.push(node);\n\n if (counterValue === 1 && alreadyHidden) {\n uncontrolledNodes.set(node, true);\n }\n\n if (markerValue === 1) {\n node.setAttribute(markerName, 'true');\n }\n\n if (!alreadyHidden) {\n node.setAttribute(controlAttribute, 'true');\n }\n }\n });\n };\n\n deep(parentNode);\n\n elementsToKeep.clear();\n\n lockCount += 1;\n\n return () => {\n hiddenNodes.forEach((node) => {\n const counterValue = counterMap.get(node) - 1;\n const markerValue = markerCounter.get(node) - 1;\n\n counterMap.set(node, counterValue);\n markerCounter.set(node, markerValue);\n\n if (!counterValue) {\n if (uncontrolledNodes.has(node)) {\n uncontrolledNodes.delete(node);\n } else {\n node.removeAttribute(controlAttribute);\n }\n }\n\n if (!markerValue) {\n node.removeAttribute(markerName);\n }\n });\n\n lockCount -= 1;\n\n if (!lockCount) {\n // clear\n counterMap = new WeakMap();\n counterMap = new WeakMap();\n uncontrolledNodes = new WeakMap();\n markerMap = {};\n }\n };\n};\n\n/**\n * Marks everything except given node(or nodes) as aria-hidden\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param {HTMLElement} [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @return {Function} undo command\n */\nexport const hideOthers = (originalTarget, parentNode = document.body, markerName = 'data-aria-hidden') => {\n const targets = Array.from(Array.isArray(originalTarget) ? originalTarget : [originalTarget]);\n\n if (parentNode) {\n // We should not hide ariaLive elements - https://github.com/theKashey/aria-hidden/issues/10\n targets.push(...Array.from(parentNode.querySelectorAll('[aria-live]')));\n }\n\n return applyAttributeToOthers(targets, parentNode, markerName, 'aria-hidden');\n};\n\n/**\n * Marks everything except given node(or nodes) as inert\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param {HTMLElement} [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @return {Function} undo command\n */\nexport const inertOthers = (originalTarget, parentNode = document.body, markerName = 'data-inert-ed') => {\n return applyAttributeToOthers(originalTarget, parentNode, markerName, 'inert');\n};\n\n/**\n * @return if current browser supports inert\n */\nexport const supportsInert = 'inert' in HTMLElement.prototype;\n\n/**\n * Automatic function to \"suppress\" DOM elements - _hide_ or _inert_ in the best possible way\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param {HTMLElement} [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @return {Function} undo command\n */\nexport const suppressOthers = (originalTarget, parentNode, markerName) =>\n (supportsInert ? inertOthers : hideOthers)(originalTarget, parentNode, markerName);\n","/**\n * @license\n * Copyright (c) 2021 - 2023 Vaadin Ltd.\n * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/\n */\nimport { hideOthers } from './aria-hidden.js';\n\n/**\n * A controller for handling modal state on the elements with `dialog` and `alertdialog` role.\n * See https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-modal\n *\n * Note, the actual `role` and `aria-modal` attributes are supposed to be handled by the\n * consumer web component. This is done in to ensure the controller only does one thing.\n */\nexport class AriaModalController {\n /**\n * @param {HTMLElement} host\n */\n constructor(host, callback) {\n /**\n * The controller host element.\n *\n * @type {HTMLElement}\n */\n this.host = host;\n\n /**\n * The callback used to detect which element\n * to use as a target. Defaults to the host.\n *\n * @type {Function}\n */\n this.callback = typeof callback === 'function' ? callback : () => host;\n }\n\n /**\n * Make the controller host modal by hiding other elements from screen readers\n * using `aria-hidden` attribute (can be replaced with `inert` in the future).\n *\n * The method name is chosen to align with the one provided by native `<dialog>`:\n * https://developer.mozilla.org/en-US/docs/Web/API/HTMLDialogElement/showModal\n */\n showModal() {\n const targets = this.callback();\n this.__showOthers = hideOthers(targets);\n }\n\n /**\n * Remove `aria-hidden` from other elements unless there are any other\n * controller hosts on the page activated by using `showModal()` call.\n */\n close() {\n if (this.__showOthers) {\n this.__showOthers();\n this.__showOthers = null;\n }\n }\n}\n","/**\n * @license\n * Copyright (c) 2017 - 2023 Vaadin Ltd.\n * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/\n */\nimport { AriaModalController } from '@vaadin/a11y-base/src/aria-modal-controller.js';\nimport { FocusRestorationController } from '@vaadin/a11y-base/src/focus-restoration-controller.js';\nimport { FocusTrapController } from '@vaadin/a11y-base/src/focus-trap-controller.js';\nimport { getDeepActiveElement, isKeyboardActive } from '@vaadin/a11y-base/src/focus-utils.js';\nimport { ControllerMixin } from '@vaadin/component-base/src/controller-mixin.js';\n\n/**\n * @polymerMixin\n * @mixes ControllerMixin\n */\nexport const OverlayFocusMixin = (superClass) =>\n class OverlayFocusMixin extends ControllerMixin(superClass) {\n static get properties() {\n return {\n /**\n * When true, opening the overlay moves focus to the first focusable child,\n * or to the overlay part with tabindex if there are no focusable children.\n * @attr {boolean} focus-trap\n */\n focusTrap: {\n type: Boolean,\n value: false,\n },\n\n /**\n * Set to true to enable restoring of focus when overlay is closed.\n * @attr {boolean} restore-focus-on-close\n */\n restoreFocusOnClose: {\n type: Boolean,\n value: false,\n },\n\n /**\n * Set to specify the element which should be focused on overlay close,\n * if `restoreFocusOnClose` is set to true.\n * @type {HTMLElement}\n */\n restoreFocusNode: {\n type: HTMLElement,\n },\n };\n }\n\n constructor() {\n super();\n\n this.__ariaModalController = new AriaModalController(this);\n this.__focusTrapController = new FocusTrapController(this);\n this.__focusRestorationController = new FocusRestorationController();\n }\n\n /** @protected */\n ready() {\n super.ready();\n\n this.addController(this.__ariaModalController);\n this.addController(this.__focusTrapController);\n this.addController(this.__focusRestorationController);\n }\n\n /**\n * Release focus and restore focus after the overlay is closed.\n *\n * @protected\n */\n _resetFocus() {\n if (this.focusTrap) {\n this.__ariaModalController.close();\n this.__focusTrapController.releaseFocus();\n }\n\n if (this.restoreFocusOnClose && this._shouldRestoreFocus()) {\n const preventScroll = !isKeyboardActive();\n this.__focusRestorationController.restoreFocus({ preventScroll });\n }\n }\n\n /**\n * Save the previously focused node when the overlay starts to open.\n *\n * @protected\n */\n _saveFocus() {\n if (this.restoreFocusOnClose) {\n this.__focusRestorationController.saveFocus(this.restoreFocusNode);\n }\n }\n\n /**\n * Trap focus within the overlay after opening has completed.\n *\n * @protected\n */\n _trapFocus() {\n if (this.focusTrap) {\n this.__ariaModalController.showModal();\n this.__focusTrapController.trapFocus(this.$.overlay);\n }\n }\n\n /**\n * Returns true if focus is still inside the overlay or on the body element,\n * otherwise false.\n *\n * Focus shouldn't be restored if it's been moved elsewhere by another\n * component or as a result of a user interaction e.g. the user clicked\n * on a button outside the overlay while the overlay was open.\n *\n * @protected\n * @return {boolean}\n */\n _shouldRestoreFocus() {\n const activeElement = getDeepActiveElement();\n return activeElement === document.body || this._deepContains(activeElement);\n }\n\n /**\n * Returns true if the overlay contains the given node,\n * including those within shadow DOM trees.\n *\n * @param {Node} node\n * @return {boolean}\n * @protected\n */\n _deepContains(node) {\n if (this.contains(node)) {\n return true;\n }\n let n = node;\n const doc = node.ownerDocument;\n // Walk from node to `this` or `document`\n while (n && n !== doc && n !== this) {\n n = n.parentNode || n.host;\n }\n return n === this;\n }\n };\n","/**\n * @license\n * Copyright (c) 2017 - 2023 Vaadin Ltd.\n * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/\n */\n\n/**\n * Returns all attached overlays in visual stacking order.\n * @private\n */\nconst getAttachedInstances = () =>\n Array.from(document.body.children)\n .filter((el) => el instanceof HTMLElement && el._hasOverlayStackMixin && !el.hasAttribute('closing'))\n .sort((a, b) => a.__zIndex - b.__zIndex || 0);\n\n/**\n * Returns true if the overlay is the last one in the opened overlays stack.\n * @param {HTMLElement} overlay\n * @return {boolean}\n * @protected\n */\nexport const isLastOverlay = (overlay) => overlay === getAttachedInstances().pop();\n\n/**\n * @polymerMixin\n */\nexport const OverlayStackMixin = (superClass) =>\n class OverlayStackMixin extends superClass {\n constructor() {\n super();\n\n this._hasOverlayStackMixin = true;\n }\n\n /**\n * Returns true if this is the last one in the opened overlays stack.\n *\n * @return {boolean}\n * @protected\n */\n get _last() {\n return isLastOverlay(this);\n }\n\n /**\n * Brings the overlay as visually the frontmost one.\n */\n bringToFront() {\n let zIndex = '';\n const frontmost = getAttachedInstances()\n .filter((o) => o !== this)\n .pop();\n if (frontmost) {\n const frontmostZIndex = frontmost.__zIndex;\n zIndex = frontmostZIndex + 1;\n }\n this.style.zIndex = zIndex;\n this.__zIndex = zIndex || parseFloat(getComputedStyle(this).zIndex);\n }\n\n /** @protected */\n _enterModalState() {\n if (document.body.style.pointerEvents !== 'none') {\n // Set body pointer-events to 'none' to disable mouse interactions with\n // other document nodes.\n this._previousDocumentPointerEvents = document.body.style.pointerEvents;\n document.body.style.pointerEvents = 'none';\n }\n\n // Disable pointer events in other attached overlays\n getAttachedInstances().forEach((el) => {\n if (el !== this) {\n el.$.overlay.style.pointerEvents = 'none';\n }\n });\n }\n\n /** @protected */\n _exitModalState() {\n if (this._previousDocumentPointerEvents !== undefined) {\n // Restore body pointer-events\n document.body.style.pointerEvents = this._previousDocumentPointerEvents;\n delete this._previousDocumentPointerEvents;\n }\n\n // Restore pointer events in the previous overlay(s)\n const instances = getAttachedInstances();\n\n let el;\n // Use instances.pop() to ensure the reverse order\n while ((el = instances.pop())) {\n if (el === this) {\n // Skip the current instance\n continue;\n }\n el.$.overlay.style.removeProperty('pointer-events');\n if (!el.modeless) {\n // Stop after the last modal\n break;\n }\n }\n }\n };\n","/**\n * @license\n * Copyright (c) 2017 - 2023 Vaadin Ltd.\n * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/\n */\nimport { afterNextRender } from '@polymer/polymer/lib/utils/render-status.js';\nimport { isIOS } from '@vaadin/component-base/src/browser-utils.js';\nimport { OverlayFocusMixin } from './vaadin-overlay-focus-mixin.js';\nimport { OverlayStackMixin } from './vaadin-overlay-stack-mixin.js';\n\n/**\n * @polymerMixin\n * @mixes OverlayFocusMixin\n * @mixes OverlayStackMixin\n */\nexport const OverlayMixin = (superClass) =>\n class OverlayMixin extends OverlayFocusMixin(OverlayStackMixin(superClass)) {\n static get properties() {\n return {\n /**\n * When true, the overlay is visible and attached to body.\n */\n opened: {\n type: Boolean,\n notify: true,\n observer: '_openedChanged',\n reflectToAttribute: true,\n },\n\n /**\n * Owner element passed with renderer function\n * @type {HTMLElement}\n */\n owner: {\n type: Object,\n },\n\n /**\n * Object with properties that is passed to `renderer` function\n */\n model: {\n type: Object,\n },\n\n /**\n * Custom function for rendering the content of the overlay.\n * Receives three arguments:\n *\n * - `root` The root container DOM element. Append your content to it.\n * - `owner` The host element of the renderer function.\n * - `model` The object with the properties related with rendering.\n * @type {OverlayRenderer | null | undefined}\n */\n renderer: {\n type: Object,\n },\n\n /**\n * When true the overlay won't disable the main content, showing\n * it doesn't change the functionality of the user interface.\n * @type {boolean}\n */\n modeless: {\n type: Boolean,\n value: false,\n reflectToAttribute: true,\n observer: '_modelessChanged',\n },\n\n /**\n * When set to true, the overlay is hidden. This also closes the overlay\n * immediately in case there is a closing animation in progress.\n * @type {boolean}\n */\n hidden: {\n type: Boolean,\n reflectToAttribute: true,\n observer: '_hiddenChanged',\n },\n\n /**\n * When true the overlay has backdrop on top of content when opened.\n * @type {boolean}\n */\n withBackdrop: {\n type: Boolean,\n value: false,\n reflectToAttribute: true,\n },\n };\n }\n\n static get observers() {\n return ['_rendererOrDataChanged(renderer, owner, model, opened)'];\n }\n\n constructor() {\n super();\n\n this._boundMouseDownListener = this._mouseDownListener.bind(this);\n this._boundMouseUpListener = this._mouseUpListener.bind(this);\n this._boundOutsideClickListener = this._outsideClickListener.bind(this);\n this._boundKeydownListener = this._keydownListener.bind(this);\n\n /* c8 ignore next 3 */\n if (isIOS) {\n this._boundIosResizeListener = () => this._detectIosNavbar();\n }\n }\n\n /** @protected */\n ready() {\n super.ready();\n\n // Need to add dummy click listeners to this and the backdrop or else\n // the document click event listener (_outsideClickListener) may never\n // get invoked on iOS Safari (reproducible in <vaadin-dialog>\n // and <vaadin-context-menu>).\n this.addEventListener('click', () => {});\n this.$.backdrop.addEventListener('click', () => {});\n\n this.addEventListener('mouseup', () => {\n // In Chrome, focus moves to body on overlay content mousedown\n // See https://github.com/vaadin/flow-components/issues/5507\n if (document.activeElement === document.body && this.$.overlay.getAttribute('tabindex') === '0') {\n this.$.overlay.focus();\n }\n });\n }\n\n /** @protected */\n connectedCallback() {\n super.connectedCallback();\n\n /* c8 ignore next 3 */\n if (this._boundIosResizeListener) {\n this._detectIosNavbar();\n window.addEventListener('resize', this._boundIosResizeListener);\n }\n }\n\n /** @protected */\n disconnectedCallback() {\n super.disconnectedCallback();\n\n /* c8 ignore next 3 */\n if (this._boundIosResizeListener) {\n window.removeEventListener('resize', this._boundIosResizeListener);\n }\n }\n\n /**\n * Requests an update for the content of the overlay.\n * While performing the update, it invokes the renderer passed in the `renderer` property.\n *\n * It is not guaranteed that the update happens immediately (synchronously) after it is requested.\n */\n requestContentUpdate() {\n if (this.renderer) {\n this.renderer.call(this.owner, this, this.owner, this.model);\n }\n }\n\n /**\n * @param {Event=} sourceEvent\n */\n close(sourceEvent) {\n const evt = new CustomEvent('vaadin-overlay-close', {\n bubbles: true,\n cancelable: true,\n detail: { sourceEvent },\n });\n this.dispatchEvent(evt);\n if (!evt.defaultPrevented) {\n this.opened = false;\n }\n }\n\n /** @private */\n _detectIosNavbar() {\n /* c8 ignore next 15 */\n if (!this.opened) {\n return;\n }\n\n const innerHeight = window.innerHeight;\n const innerWidth = window.innerWidth;\n\n const landscape = innerWidth > innerHeight;\n\n const clientHeight = document.documentElement.clientHeight;\n\n if (landscape && clientHeight > innerHeight) {\n this.style.setProperty('--vaadin-overlay-viewport-bottom', `${clientHeight - innerHeight}px`);\n } else {\n this.style.setProperty('--vaadin-overlay-viewport-bottom', '0');\n }\n }\n\n /** @private */\n _addGlobalListeners() {\n document.addEventListener('mousedown', this._boundMouseDownListener);\n document.addEventListener('mouseup', this._boundMouseUpListener);\n // Firefox leaks click to document on contextmenu even if prevented\n // https://bugzilla.mozilla.org/show_bug.cgi?id=990614\n document.documentElement.addEventListener('click', this._boundOutsideClickListener, true);\n }\n\n /** @private */\n _removeGlobalListeners() {\n document.removeEventListener('mousedown', this._boundMouseDownListener);\n document.removeEventListener('mouseup', this._boundMouseUpListener);\n document.documentElement.removeEventListener('click', this._boundOutsideClickListener, true);\n }\n\n /** @private */\n _rendererOrDataChanged(renderer, owner, model, opened) {\n const ownerOrModelChanged = this._oldOwner !== owner || this._oldModel !== model;\n this._oldModel = model;\n this._oldOwner = owner;\n\n const rendererChanged = this._oldRenderer !== renderer;\n const hasOldRenderer = this._oldRenderer !== undefined;\n this._oldRenderer = renderer;\n\n const openedChanged = this._oldOpened !== opened;\n this._oldOpened = opened;\n\n if (rendererChanged && hasOldRenderer) {\n this.innerHTML = '';\n // Whenever a Lit-based renderer is used, it assigns a Lit part to the node it was rendered into.\n // When clearing the rendered content, this part needs to be manually disposed of.\n // Otherwise, using a Lit-based renderer on the same node will throw an exception or render nothing afterward.\n delete this._$litPart$;\n }\n\n if (opened && renderer && (rendererChanged || openedChanged || ownerOrModelChanged)) {\n this.requestContentUpdate();\n }\n }\n\n /** @private */\n _modelessChanged(modeless) {\n if (!modeless) {\n if (this.opened) {\n this._addGlobalListeners();\n this._enterModalState();\n }\n } else {\n this._removeGlobalListeners();\n this._exitModalState();\n }\n }\n\n /** @private */\n _openedChanged(opened, wasOpened) {\n if (opened) {\n this._saveFocus();\n\n this._animatedOpening();\n\n afterNextRender(this, () => {\n this._trapFocus();\n\n const evt = new CustomEvent('vaadin-overlay-open', { bubbles: true });\n this.dispatchEvent(evt);\n });\n\n document.addEventListener('keydown', this._boundKeydownListener);\n\n if (!this.modeless) {\n this._addGlobalListeners();\n }\n } else if (wasOpened) {\n this._resetFocus();\n\n this._animatedClosing();\n\n document.removeEventListener('keydown', this._boundKeydownListener);\n\n if (!this.modeless) {\n this._removeGlobalListeners();\n }\n }\n }\n\n /** @private */\n _hiddenChanged(hidden) {\n if (hidden && this.hasAttribute('closing')) {\n this._flushAnimation('closing');\n }\n }\n\n /**\n * @return {boolean}\n * @private\n */\n _shouldAnimate() {\n const style = getComputedStyle(this);\n const name = style.getPropertyValue('animation-name');\n const hidden = style.getPropertyValue('display') === 'none';\n return !hidden && name && name !== 'none';\n }\n\n /**\n * @param {string} type\n * @param {Function} callback\n * @private\n */\n _enqueueAnimation(type, callback) {\n const handler = `__${type}Handler`;\n const listener = (event) => {\n if (event && event.target !== this) {\n return;\n }\n callback();\n this.removeEventListener('animationend', listener);\n delete this[handler];\n };\n this[handler] = listener;\n this.addEventListener('animationend', listener);\n }\n\n /**\n * @param {string} type\n * @protected\n */\n _flushAnimation(type) {\n const handler = `__${type}Handler`;\n if (typeof this[handler] === 'function') {\n this[handler]();\n }\n }\n\n /** @private */\n _animatedOpening() {\n if (this.parentNode === document.body && this.hasAttribute('closing')) {\n this._flushAnimation('closing');\n }\n this._attachOverlay();\n if (!this.modeless) {\n this._enterModalState();\n }\n this.setAttribute('opening', '');\n\n if (this._shouldAnimate()) {\n this._enqueueAnimation('opening', () => {\n this._finishOpening();\n });\n } else {\n this._finishOpening();\n }\n }\n\n /** @private */\n _attachOverlay() {\n this._placeholder = document.createComment('vaadin-overlay-placeholder');\n this.parentNode.insertBefore(this._placeholder, this);\n document.body.appendChild(this);\n this.bringToFront();\n }\n\n /** @private */\n _finishOpening() {\n this.removeAttribute('opening');\n }\n\n /** @private */\n _finishClosing() {\n this._detachOverlay();\n this.$.overlay.style.removeProperty('pointer-events');\n this.removeAttribute('closing');\n this.dispatchEvent(new CustomEvent('vaadin-overlay-closed'));\n }\n\n /** @private */\n _animatedClosing() {\n if (this.hasAttribute('opening')) {\n this._flushAnimation('opening');\n }\n if (this._placeholder) {\n this._exitModalState();\n this.setAttribute('closing', '');\n this.dispatchEvent(new CustomEvent('vaadin-overlay-closing'));\n\n if (this._shouldAnimate()) {\n this._enqueueAnimation('closing', () => {\n this._finishClosing();\n });\n } else {\n this._finishClosing();\n }\n }\n }\n\n /** @private */\n _detachOverlay() {\n this._placeholder.parentNode.insertBefore(this, this._placeholder);\n this._placeholder.parentNode.removeChild(this._placeholder);\n }\n\n /** @private */\n _mouseDownListener(event) {\n this._mouseDownInside = event.composedPath().indexOf(this.$.overlay) >= 0;\n }\n\n /** @private */\n _mouseUpListener(event) {\n this._mouseUpInside = event.composedPath().indexOf(this.$.overlay) >= 0;\n }\n\n /**\n * Whether to close the overlay on outside click or not.\n * Override this method to customize the closing logic.\n *\n * @param {Event} _event\n * @return {boolean}\n * @protected\n */\n _shouldCloseOnOutsideClick(_event) {\n return this._last;\n }\n\n /**\n * Outside click listener used in capture phase to close the overlay before\n * propagating the event to the listener on the element that triggered it.\n * Otherwise, calling `open()` would result in closing and re-opening.\n *\n * @private\n */\n _outsideClickListener(event) {\n if (event.composedPath().includes(this.$.overlay) || this._mouseDownInside || this._mouseUpInside) {\n this._mouseDownInside = false;\n this._mouseUpInside = false;\n return;\n }\n\n if (!this._shouldCloseOnOutsideClick(event)) {\n return;\n }\n\n const evt = new CustomEvent('vaadin-overlay-outside-click', {\n bubbles: true,\n cancelable: true,\n detail: { sourceEvent: event },\n });\n this.dispatchEvent(evt);\n\n if (this.opened && !evt.defaultPrevented) {\n this.close(event);\n }\n }\n\n /**\n * Listener used to close whe overlay on Escape press, if it is the last one.\n * @private\n */\n _keydownListener(event) {\n if (!this._last) {\n return;\n }\n\n // Only close modeless overlay on Esc press when it contains focus\n if (this.modeless && !event.composedPath().includes(this.$.overlay)) {\n return;\n }\n\n if (event.key === 'Escape') {\n const evt = new CustomEvent('vaadin-overlay-escape-press', {\n bubbles: true,\n cancelable: true,\n detail: { sourceEvent: event },\n });\n this.dispatchEvent(evt);\n\n if (this.opened && !evt.defaultPrevented) {\n this.close(event);\n }\n }\n }\n };\n","/**\n * @license\n * Copyright (c) 2017 - 2023 Vaadin Ltd.\n * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/\n */\nimport '../color.js';\nimport '../spacing.js';\nimport '../style.js';\nimport '../typography.js';\nimport { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';\n\nconst overlay = css`\n :host {\n top: var(--lumo-space-m);\n right: var(--lumo-space-m);\n bottom: var(--lumo-space-m);\n left: var(--lumo-space-m);\n /* Workaround for Edge issue (only on Surface), where an overflowing vaadin-list-box inside vaadin-select-overlay makes the overlay transparent */\n /* stylelint-disable-next-line */\n outline: 0px solid transparent;\n }\n\n [part='overlay'] {\n background-color: var(--lumo-base-color);\n background-image: linear-gradient(var(--lumo-tint-5pct), var(--lumo-tint-5pct));\n border-radius: var(--lumo-border-radius-m);\n box-shadow: 0 0 0 1px var(--lumo-shade-5pct), var(--lumo-box-shadow-m);\n color: var(--lumo-body-text-color);\n font-family: var(--lumo-font-family);\n font-size: var(--lumo-font-size-m);\n font-weight: 400;\n line-height: var(--lumo-line-height-m);\n letter-spacing: 0;\n text-transform: none;\n -webkit-text-size-adjust: 100%;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n\n [part='content'] {\n padding: var(--lumo-space-xs);\n }\n\n [part='backdrop'] {\n background-color: var(--lumo-shade-20pct);\n animation: 0.2s lumo-overlay-backdrop-enter both;\n will-change: opacity;\n }\n\n @keyframes lumo-overlay-backdrop-enter {\n 0% {\n opacity: 0;\n }\n }\n\n :host([closing]) [part='backdrop'] {\n animation: 0.2s lumo-overlay-backdrop-exit both;\n }\n\n @keyframes lumo-overlay-backdrop-exit {\n 100% {\n opacity: 0;\n }\n }\n\n @keyframes lumo-overlay-dummy-animation {\n 0% {\n opacity: 1;\n }\n\n 100% {\n opacity: 1;\n }\n }\n`;\n\nregisterStyles('', overlay, { moduleId: 'lumo-overlay' });\n\nexport { overlay };\n","/**\n * @license\n * Copyright (c) 2021 - 2023 Vaadin Ltd.\n * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/\n */\nimport { getDeepActiveElement } from './focus-utils.js';\n\n/**\n * A controller for saving a focused node and restoring focus to it later.\n */\nexport class FocusRestorationController {\n /**\n * Saves the given node as a target for restoring focus to\n * when `restoreFocus()` is called. If no node is provided,\n * the currently focused node in the DOM is saved as a target.\n *\n * @param {Node | null | undefined} focusNode\n */\n saveFocus(focusNode) {\n this.focusNode = focusNode || getDeepActiveElement();\n }\n\n /**\n * Restores focus to the target node that was saved previously with `saveFocus()`.\n */\n restoreFocus(options) {\n const focusNode = this.focusNode;\n if (!focusNode) {\n return;\n }\n\n const preventScroll = options ? options.preventScroll : false;\n\n if (getDeepActiveElement() === document.body) {\n // In Firefox and Safari, focusing the node synchronously\n // doesn't work as expected when the overlay is closing on outside click.\n // These browsers force focus to move to the body element and retain it\n // there until the next event loop iteration.\n setTimeout(() => focusNode.focus({ preventScroll }));\n } else {\n focusNode.focus({ preventScroll });\n }\n\n this.focusNode = null;\n }\n}\n","/**\n * @license\n * Copyright (c) 2023 Vaadin Ltd.\n * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/\n */\n\n/**\n * A mixin that forwards CSS class names to the internal overlay element\n * by setting the `overlayClass` property or `overlay-class` attribute.\n *\n * @polymerMixin\n */\nexport const OverlayClassMixin = (superclass) =>\n class OverlayClassMixinClass extends superclass {\n static get properties() {\n return {\n /**\n * A space-delimited list of CSS class names to set on the overlay element.\n * This property does not affect other CSS class names set manually via JS.\n *\n * Note, if the CSS class name was set with this property, clearing it will\n * remove it from the overlay, even if the same class name was also added\n * manually, e.g. by using `classList.add()` in the `renderer` function.\n *\n * @attr {string} overlay-class\n */\n overlayClass: {\n type: String,\n },\n\n /**\n * An overlay element on which CSS class names are set.\n *\n * @protected\n */\n _overlayElement: {\n type: Object,\n },\n };\n }\n\n static get observers() {\n return ['__updateOverlayClassNames(overlayClass, _overlayElement)'];\n }\n\n /** @private */\n __updateOverlayClassNames(overlayClass, overlayElement) {\n if (!overlayElement) {\n return;\n }\n\n // Overlay is set but overlayClass is not set\n if (overlayClass === undefined) {\n return;\n }\n\n const { classList } = overlayElement;\n\n if (!this.__initialClasses) {\n this.__initialClasses = new Set(classList);\n }\n\n if (Array.isArray(this.__previousClasses)) {\n // Remove old classes that no longer apply\n const classesToRemove = this.__previousClasses.filter((name) => !this.__initialClasses.has(name));\n if (classesToRemove.length > 0) {\n classList.remove(...classesToRemove);\n }\n }\n\n // Add new classes based on the overlayClass\n const classesToAdd = typeof overlayClass === 'string' ? overlayClass.split(' ').filter(Boolean) : [];\n if (classesToAdd.length > 0) {\n classList.add(...classesToAdd);\n }\n\n this.__previousClasses = classesToAdd;\n }\n };\n","/**\n * @license\n * Copyright (c) 2021 - 2023 Vaadin Ltd.\n * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/\n */\nimport { getFocusableElements, isElementFocused } from './focus-utils.js';\n\nconst instances = [];\n\n/**\n * A controller for trapping focus within a DOM node.\n */\nexport class FocusTrapController {\n /**\n * @param {HTMLElement} host\n */\n constructor(host) {\n /**\n * The controller host element.\n *\n * @type {HTMLElement}\n */\n this.host = host;\n\n /**\n * A node for trapping focus in.\n *\n * @type {HTMLElement | null}\n * @private\n */\n this.__trapNode = null;\n\n this.__onKeyDown = this.__onKeyDown.bind(this);\n }\n\n /**\n * An array of tab-ordered focusable elements inside the trap node.\n *\n * @return {HTMLElement[]}\n * @private\n */\n get __focusableElements() {\n return getFocusableElements(this.__trapNode);\n }\n\n /**\n * The index of the element inside the trap node that currently has focus.\n *\n * @return {HTMLElement | undefined}\n * @private\n */\n get __focusedElementIndex() {\n const focusableElements = this.__focusableElements;\n return focusableElements.indexOf(focusableElements.filter(isElementFocused).pop());\n }\n\n hostConnected() {\n document.addEventListener('keydown', this.__onKeyDown);\n }\n\n hostDisconnected() {\n document.removeEventListener('keydown', this.__onKeyDown);\n }\n\n /**\n * Activates a focus trap for a DOM node that will prevent focus from escaping the node.\n * The trap can be deactivated with the `.releaseFocus()` method.\n *\n * If focus is initially outside the trap, the method will move focus inside,\n * on the first focusable element of the trap in the tab order.\n * The first focusable element can be the trap node itself if it is focusable\n * and comes first in the tab order.\n *\n * If there are no focusable elements, the method will throw an exception\n * and the trap will not be set.\n *\n * @param {HTMLElement} trapNode\n */\n trapFocus(trapNode) {\n this.__trapNode = trapNode;\n\n if (this.__focusableElements.length === 0) {\n this.__trapNode = null;\n throw new Error('The trap node should have at least one focusable descendant or be focusable itself.');\n }\n\n instances.push(this);\n\n if (this.__focusedElementIndex === -1) {\n this.__focusableElements[0].focus();\n }\n }\n\n /**\n * Deactivates the focus trap set with the `.trapFocus()` method\n * so that it becomes possible to tab outside the trap node.\n */\n releaseFocus() {\n this.__trapNode = null;\n\n instances.pop();\n }\n\n /**\n * A `keydown` event handler that manages tabbing navigation when the trap is enabled.\n *\n * - Moves focus to the next focusable element of the trap on `Tab` press.\n * When no next element to focus, the method moves focus to the first focusable element.\n * - Moves focus to the prev focusable element of the trap on `Shift+Tab` press.\n * When no prev element to focus, the method moves focus to the last focusable element.\n *\n * @param {KeyboardEvent} event\n * @private\n */\n __onKeyDown(event) {\n if (!this.__trapNode) {\n return;\n }\n\n // Only handle events for the last instance\n if (this !== Array.from(instances).pop()) {\n return;\n }\n\n if (event.key === 'Tab') {\n event.preventDefault();\n\n const backward = event.shiftKey;\n this.__focusNextElement(backward);\n }\n }\n\n /**\n * - Moves focus to the next focusable element if `backward === false`.\n * When no next element to focus, the method moves focus to the first focusable element.\n * - Moves focus to the prev focusable element if `backward === true`.\n * When no prev element to focus the method moves focus to the last focusable element.\n *\n * If no focusable elements, the method returns immediately.\n *\n * @param {boolean} backward\n * @private\n */\n __focusNextElement(backward = false) {\n const focusableElements = this.__focusableElements;\n const step = backward ? -1 : 1;\n const currentIndex = this.__focusedElementIndex;\n const nextIndex = (focusableElements.length + currentIndex + step) % focusableElements.length;\n const element = focusableElements[nextIndex];\n element.focus();\n if (element.localName === 'input') {\n element.select();\n }\n }\n}\n","/**\n@license\nCopyright (c) 2017 The Polymer Project Authors. All rights reserved.\nThis code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt\nThe complete set of authors may be found at http://polymer.github.io/AUTHORS.txt\nThe complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt\nCode distributed by Google as part of the polymer project is also\nsubject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt\n*/\n\n/**\n * Module for scheduling flushable pre-render and post-render tasks.\n *\n * @summary Module for scheduling flushable pre-render and post-render tasks.\n */\n\nimport './boot.js';\n\nlet scheduled = false;\nlet beforeRenderQueue = [];\nlet afterRenderQueue = [];\n\nfunction schedule() {\n scheduled = true;\n // before next render\n requestAnimationFrame(function() {\n scheduled = false;\n flushQueue(beforeRenderQueue);\n // after the render\n setTimeout(function() {\n runQueue(afterRenderQueue);\n });\n });\n}\n\nfunction flushQueue(queue) {\n while (queue.length) {\n callMethod(queue.shift());\n }\n}\n\nfunction runQueue(queue) {\n for (let i=0, l=queue.length; i < l; i++) {\n callMethod(queue.shift());\n }\n}\n\nfunction callMethod(info) {\n const context = info[0];\n const callback = info[1];\n const args = info[2];\n try {\n callback.apply(context, args);\n } catch(e) {\n setTimeout(() => {\n throw e;\n });\n }\n}\n\n/**\n * Flushes all `beforeNextRender` tasks, followed by all `afterNextRender`\n * tasks.\n *\n * @return {void}\n */\nexport function flush() {\n while (beforeRenderQueue.length || afterRenderQueue.length) {\n flushQueue(beforeRenderQueue);\n flushQueue(afterRenderQueue);\n }\n scheduled = false;\n}\n\n\n/**\n * Enqueues a callback which will be run before the next render, at\n * `requestAnimationFrame` timing.\n *\n * This method is useful for enqueuing work that requires DOM measurement,\n * since measurement may not be reliable in custom element callbacks before\n * the first render, as well as for batching measurement tasks in general.\n *\n * Tasks in this queue may be flushed by calling `flush()`.\n *\n * @param {*} context Context object the callback function will be bound to\n * @param {function(...*):void} callback Callback function\n * @param {!Array=} args An array of arguments to call the callback function with\n * @return {void}\n */\nexport function beforeNextRender(context, callback, args) {\n if (!scheduled) {\n schedule();\n }\n beforeRenderQueue.push([context, callback, args]);\n}\n\n/**\n * Enqueues a callback which will be run after the next render, equivalent\n * to one task (`setTimeout`) after the next `requestAnimationFrame`.\n *\n * This method is useful for tuning the first-render performance of an\n * element or application by deferring non-critical work until after the\n * first paint. Typical non-render-critical work may include adding UI\n * event listeners and aria attributes.\n *\n * @param {*} context Context object the callback function will be bound to\n * @param {function(...*):void} callback Callback function\n * @param {!Array=} args An array of arguments to call the callback function with\n * @return {void}\n */\nexport function afterNextRender(context, callback, args) {\n if (!scheduled) {\n schedule();\n }\n afterRenderQueue.push([context, callback, args]);\n}\n\n"],"names":["overlayStyles","counterMap","WeakMap","uncontrolledNodes","markerMap","lockCount","isElement","node","nodeType","Node","ELEMENT_NODE","logError","args","console","error","join","hideOthers","originalTarget","parentNode","document","body","markerName","targets","Array","from","isArray","push","querySelectorAll","controlAttribute","parent","map","target","contains","getRootNode","host","filter","x","Boolean","correctTargets","markerCounter","hiddenNodes","elementsToKeep","Set","elementsToStop","keep","el","has","add","slot","assignedSlot","forEach","deep","root","shadowRoot","children","includes","localName","attr","getAttribute","alreadyHidden","counterValue","get","markerValue","set","setAttribute","clear","delete","removeAttribute","applyAttributeToOthers","HTMLElement","prototype","AriaModalController","constructor","callback","this","showModal","__showOthers","close","OverlayFocusMixin","superClass","properties","focusTrap","type","value","restoreFocusOnClose","restoreFocusNode","super","__ariaModalController","__focusTrapController","__focusRestorationController","ready","addController","_resetFocus","releaseFocus","_shouldRestoreFocus","preventScroll","restoreFocus","_saveFocus","saveFocus","_trapFocus","trapFocus","$","overlay","activeElement","_deepContains","n","doc","ownerDocument","getAttachedInstances","_hasOverlayStackMixin","hasAttribute","sort","a","b","__zIndex","OverlayStackMixin","_last","pop","bringToFront","zIndex","frontmost","o","style","parseFloat","getComputedStyle","_enterModalState","pointerEvents","_previousDocumentPointerEvents","_exitModalState","undefined","instances","removeProperty","modeless","OverlayMixin","opened","notify","observer","reflectToAttribute","owner","Object","model","renderer","hidden","withBackdrop","observers","_boundMouseDownListener","_mouseDownListener","bind","_boundMouseUpListener","_mouseUpListener","_boundOutsideClickListener","_outsideClickListener","_boundKeydownListener","_keydownListener","_boundIosResizeListener","_detectIosNavbar","addEventListener","backdrop","focus","connectedCallback","window","disconnectedCallback","removeEventListener","requestContentUpdate","call","sourceEvent","evt","CustomEvent","bubbles","cancelable","detail","dispatchEvent","defaultPrevented","innerHeight","landscape","innerWidth","clientHeight","documentElement","setProperty","_addGlobalListeners","_removeGlobalListeners","_rendererOrDataChanged","ownerOrModelChanged","_oldOwner","_oldModel","rendererChanged","_oldRenderer","hasOldRenderer","openedChanged","_oldOpened","innerHTML","_$litPart$","_modelessChanged","_openedChanged","wasOpened","_animatedOpening","_animatedClosing","_hiddenChanged","_flushAnimation","_shouldAnimate","name","getPropertyValue","_enqueueAnimation","handler","listener","event","_attachOverlay","_finishOpening","_placeholder","createComment","insertBefore","appendChild","_finishClosing","_detachOverlay","removeChild","_mouseDownInside","composedPath","indexOf","_mouseUpInside","_shouldCloseOnOutsideClick","_event","key","moduleId","FocusRestorationController","focusNode","options","setTimeout","OverlayClassMixin","superclass","overlayClass","String","_overlayElement","__updateOverlayClassNames","overlayElement","classList","__initialClasses","__previousClasses","classesToRemove","length","remove","classesToAdd","split","FocusTrapController","__trapNode","__onKeyDown","__focusableElements","__focusedElementIndex","focusableElements","hostConnected","hostDisconnected","trapNode","Error","preventDefault","backward","shiftKey","__focusNextElement","step","currentIndex","element","select","scheduled","beforeRenderQueue","afterRenderQueue","schedule","requestAnimationFrame","queue","callMethod","shift","flushQueue","i","l","runQueue","info","context","apply","e","afterNextRender"],"sourceRoot":""}
|
|
File without changes
|
|
File without changes
|