@descope/web-components-ui 1.100.0 → 1.102.0
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/dist/cjs/index.cjs.js +1913 -1637
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/index.esm.js +1864 -1587
- package/dist/index.esm.js.map +1 -1
- package/dist/umd/1995.js +22 -7
- package/dist/umd/1995.js.LICENSE.txt +6 -0
- package/dist/umd/1995.js.map +1 -1
- package/dist/umd/6063.js +18 -0
- package/dist/umd/6063.js.map +1 -0
- package/dist/umd/6818.js +3 -0
- package/dist/umd/6818.js.map +1 -0
- package/dist/umd/{189.js → 8248.js} +4 -4
- package/dist/umd/8248.js.map +1 -0
- package/dist/umd/8961.js +1 -1
- package/dist/umd/8961.js.map +1 -1
- package/dist/umd/8968.js +432 -0
- package/dist/umd/8968.js.map +1 -0
- package/dist/umd/8983.js +324 -7
- package/dist/umd/8983.js.map +1 -1
- package/dist/umd/{384.js → 9117.js} +9 -121
- package/dist/umd/9117.js.map +1 -0
- package/dist/umd/9275.js +18 -0
- package/dist/umd/9275.js.LICENSE.txt +23 -0
- package/dist/umd/9275.js.map +1 -0
- package/dist/umd/DescopeDev.js +1 -1
- package/dist/umd/DescopeDev.js.map +1 -1
- package/dist/umd/button-selection-group-fields-descope-button-multi-selection-group-index-js.js +1 -1
- package/dist/umd/button-selection-group-fields-descope-button-multi-selection-group-index-js.js.map +1 -1
- package/dist/umd/button-selection-group-fields-descope-button-selection-group-index-js.js +1 -1
- package/dist/umd/button-selection-group-fields-descope-button-selection-group-index-js.js.map +1 -1
- package/dist/umd/button-selection-group-fields-descope-button-selection-group-item-index-js.js +338 -1
- package/dist/umd/button-selection-group-fields-descope-button-selection-group-item-index-js.js.LICENSE.txt +5 -0
- package/dist/umd/button-selection-group-fields-descope-button-selection-group-item-index-js.js.map +1 -1
- package/dist/umd/descope-apps-list-index-js.js +1 -1
- package/dist/umd/descope-apps-list-index-js.js.map +1 -1
- package/dist/umd/descope-button.js +4 -4
- package/dist/umd/descope-button.js.LICENSE.txt +0 -6
- package/dist/umd/descope-button.js.map +1 -1
- package/dist/umd/descope-collapsible-container.js +1 -1
- package/dist/umd/descope-collapsible-container.js.map +1 -1
- package/dist/umd/descope-divider-index-js.js +1 -1
- package/dist/umd/descope-divider-index-js.js.map +1 -1
- package/dist/umd/descope-grid-descope-grid-custom-column-index-js.js +321 -4
- package/dist/umd/descope-grid-descope-grid-custom-column-index-js.js.LICENSE.txt +6 -0
- 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 +322 -5
- package/dist/umd/descope-grid-descope-grid-item-details-column-index-js.js.map +1 -1
- package/dist/umd/descope-grid-descope-grid-text-column-index-js.js +321 -4
- package/dist/umd/descope-grid-descope-grid-text-column-index-js.js.LICENSE.txt +6 -0
- package/dist/umd/descope-grid-descope-grid-text-column-index-js.js.map +1 -1
- package/dist/umd/descope-hybrid-field-index-js.js +1 -1
- package/dist/umd/descope-hybrid-field-index-js.js.map +1 -1
- package/dist/umd/descope-link-index-js.js +1 -1
- package/dist/umd/descope-link-index-js.js.map +1 -1
- package/dist/umd/descope-recovery-codes.js +2 -0
- package/dist/umd/descope-recovery-codes.js.map +1 -0
- package/dist/umd/descope-security-questions-verify-index-js.js +1 -1
- package/dist/umd/descope-security-questions-verify-index-js.js.map +1 -1
- package/dist/umd/descope-text.js +1 -1
- package/dist/umd/descope-text.js.map +1 -1
- package/dist/umd/descope-timer-button.js +338 -1
- package/dist/umd/descope-timer-button.js.LICENSE.txt +5 -0
- package/dist/umd/descope-timer-button.js.map +1 -1
- package/dist/umd/descope-upload-file-index-js.js +338 -1
- package/dist/umd/descope-upload-file-index-js.js.LICENSE.txt +5 -0
- package/dist/umd/descope-upload-file-index-js.js.map +1 -1
- package/dist/umd/descope-user-attribute-index-js.js +338 -1
- package/dist/umd/descope-user-attribute-index-js.js.map +1 -1
- package/dist/umd/descope-user-auth-method-index-js.js +338 -1
- package/dist/umd/descope-user-auth-method-index-js.js.map +1 -1
- package/dist/umd/index.js +1 -1
- package/dist/umd/index.js.map +1 -1
- package/dist/umd/mapping-fields-descope-mappings-field-index-js.js +1 -1
- package/dist/umd/mapping-fields-descope-mappings-field-index-js.js.map +1 -1
- package/dist/umd/mapping-fields-descope-saml-group-mappings-index-js.js +1 -1
- package/dist/umd/mapping-fields-descope-saml-group-mappings-index-js.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-descope-phone-input-box-internal-index-js.js.map +1 -1
- package/dist/umd/phone-fields-descope-phone-input-box-field-index-js.js +1 -1
- package/dist/umd/phone-fields-descope-phone-input-box-field-index-js.js.map +1 -1
- package/package.json +15 -14
- package/src/components/phone-fields/descope-phone-input-box-field/descope-phone-input-box-internal/PhoneFieldInternalInputBox.js +1 -1
- package/src/theme/components/index.js +2 -0
- package/dist/umd/189.js.map +0 -1
- package/dist/umd/2894.js +0 -339
- package/dist/umd/2894.js.map +0 -1
- package/dist/umd/3792.js +0 -339
- package/dist/umd/3792.js.map +0 -1
- package/dist/umd/384.js.map +0 -1
- package/dist/umd/513.js +0 -339
- package/dist/umd/513.js.map +0 -1
- package/dist/umd/6227.js +0 -320
- package/dist/umd/6227.js.map +0 -1
- package/dist/umd/6649.js +0 -339
- package/dist/umd/6649.js.LICENSE.txt +0 -11
- package/dist/umd/6649.js.map +0 -1
- package/dist/umd/9030.js +0 -339
- package/dist/umd/9030.js.LICENSE.txt +0 -11
- package/dist/umd/9030.js.map +0 -1
- package/dist/umd/9380.js +0 -130
- package/dist/umd/9380.js.map +0 -1
- /package/dist/umd/{189.js.LICENSE.txt → 6063.js.LICENSE.txt} +0 -0
- /package/dist/umd/{6227.js.LICENSE.txt → 6818.js.LICENSE.txt} +0 -0
- /package/dist/umd/{9380.js.LICENSE.txt → 8248.js.LICENSE.txt} +0 -0
- /package/dist/umd/{2894.js.LICENSE.txt → 8968.js.LICENSE.txt} +0 -0
- /package/dist/umd/{3792.js.LICENSE.txt → 9117.js.LICENSE.txt} +0 -0
- /package/dist/umd/{384.js.LICENSE.txt → descope-user-attribute-index-js.js.LICENSE.txt} +0 -0
- /package/dist/umd/{513.js.LICENSE.txt → descope-user-auth-method-index-js.js.LICENSE.txt} +0 -0
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"9117.js","mappings":";uMAMA,MAAMA,EAAiBC,GAAWA,EAAOC,KAAKC,UAAUC,WAElDC,EAAgBJ,GAAWA,EAAOC,KAAKC,UAAUG,UAI1CC,EAAYP,EAAc,YAE1BQ,EAAWR,EAAc,YAAyB,cAJzBE,KAAKC,UAAUM,QAMxCC,EAAYV,EAAc,YAG1BW,EAASN,EAAa,WAAcA,EAAa,UAAYF,UAAUS,eAAiB,EAIxFC,EAFWR,EAAa,aAEJM,EAEpBG,EAAWd,EAAc,mCAEzBe,EAAU,MACrB,IAEE,OADAC,SAASC,YAAY,eACd,CACT,CAAE,MAAOC,GACP,OAAO,CACT,CACD,EAPsB,mCCxBvB,eAAe,iBAAkBC,EAAA,EAAS,CAAEC,SAAU,kDCS/C,SAASC,EAAiBC,GAC3BC,OAAOC,QAAUD,OAAOC,OAAOC,yBACjCF,OAAOC,OAAOC,yBAAyBH,GAIrCA,EAAUI,cAAc,aAC1BC,QAAQC,KACN,+BAA+BN,EAAUO,yHAG/C,6ECnBA,MAAMC,EAAgB,IAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoGzB,QAAe,wBAAyB,CAACX,EAAA,EAASW,GAAgB,CAAEV,SAAU,0EC7FvE,MAAMW,EAAsBC,GACjC,eAAiC,OAAaA,IAC5C,qBAAWC,GACT,MAAO,CAILC,YAAa,CACXC,KAAMC,QAMRC,eAAgB,CAC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AAMC,OACNuE,MAAO,IAGb,CAEA,oBAAWnE,GACT,MAAO,CACL,yBACA,4CACA,6DAEJ,CAGA,KAAAC,GACEC,MAAMD,QAENE,KAAKkF,gBAAgBrE,aAAa,OAAQ,WAE1C,OAAiBb,KACnB,CAGA,gBAAA8J,CAAiBxB,EAAU5I,EAAgBE,GACzCI,KAAKK,EAAE7B,QAAQuL,cAAc,CAAEtH,MAAOzC,KAAMsI,WAAU5I,iBAAgBE,kBACxE,CAGA,cAAAoK,CAAe7I,GACbnB,KAAKK,EAAE7B,QAAQ2C,OAASA,CAC1B,CAGA,iBAAA8I,CAAkBJ,EAAWtK,GACvBsK,GAAatK,EACfS,KAAKK,EAAE7B,QAAQqC,aAAa,aAAcgJ,GAAatK,GAEvDS,KAAKK,EAAE7B,QAAQ4F,gBAAgB,aAEnC,GAGF,OAAoBwF,sHCjKpB,QAAe,iBAAkB,IAAe,CAAEnL,SAAU,0BAmE5D,MAAMyL,WAAgB,QAAa,SAAc,OAAS,SACxD,mBAAW1F,GACT,OAAO,IAAI;;;;;;;KAQb,CAEA,aAAWD,GACT,MAAO,gBACT,CAGA,KAAAzE,GACEC,MAAMD,SAEN,OAAiBE,KACnB,GAqCF,OAAoBkK","sources":["webpack://@descope/web-components-ui/../../../node_modules/@vaadin/component-base/src/browser-utils.js","webpack://@descope/web-components-ui/../../../node_modules/@vaadin/overlay/theme/lumo/vaadin-overlay-styles.js","webpack://@descope/web-components-ui/../../../node_modules/@vaadin/component-base/src/templates.js","webpack://@descope/web-components-ui/../../../node_modules/@vaadin/dialog/theme/lumo/vaadin-dialog-styles.js","webpack://@descope/web-components-ui/../../../node_modules/@vaadin/dialog/src/vaadin-dialog-overlay-mixin.js","webpack://@descope/web-components-ui/../../../node_modules/@vaadin/dialog/src/vaadin-dialog-styles.js","webpack://@descope/web-components-ui/../../../node_modules/@vaadin/dialog/src/vaadin-dialog-overlay.js","webpack://@descope/web-components-ui/../../../node_modules/@vaadin/dialog/src/vaadin-dialog-base-mixin.js","webpack://@descope/web-components-ui/../../../node_modules/@vaadin/dialog/src/vaadin-dialog-utils.js","webpack://@descope/web-components-ui/../../../node_modules/@vaadin/dialog/src/vaadin-dialog-draggable-mixin.js","webpack://@descope/web-components-ui/../../../node_modules/@vaadin/dialog/src/vaadin-dialog-renderer-mixin.js","webpack://@descope/web-components-ui/../../../node_modules/@vaadin/dialog/src/vaadin-dialog-resizable-mixin.js","webpack://@descope/web-components-ui/../../../node_modules/@vaadin/dialog/src/vaadin-dialog.js","webpack://@descope/web-components-ui/../../../node_modules/@vaadin/overlay/src/vaadin-overlay.js"],"sourcesContent":["/**\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 */\n\nconst testUserAgent = (regexp) => regexp.test(navigator.userAgent);\n\nconst testPlatform = (regexp) => regexp.test(navigator.platform);\n\nconst testVendor = (regexp) => regexp.test(navigator.vendor);\n\nexport const isAndroid = testUserAgent(/Android/u);\n\nexport const isChrome = testUserAgent(/Chrome/u) && testVendor(/Google Inc/u);\n\nexport const isFirefox = testUserAgent(/Firefox/u);\n\n// IPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.\nexport const isIPad = testPlatform(/^iPad/u) || (testPlatform(/^Mac/u) && navigator.maxTouchPoints > 1);\n\nexport const isIPhone = testPlatform(/^iPhone/u);\n\nexport const isIOS = isIPhone || isIPad;\n\nexport const isSafari = testUserAgent(/^((?!chrome|android).)*safari/iu);\n\nexport const isTouch = (() => {\n try {\n document.createEvent('TouchEvent');\n return true;\n } catch (e) {\n return false;\n }\n})();\n","import { overlay } from '@vaadin/vaadin-lumo-styles/mixins/overlay.js';\nimport { registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';\n\nregisterStyles('vaadin-overlay', overlay, { moduleId: 'lumo-vaadin-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 */\n\n/**\n * Passes the component to the template renderer callback if the template renderer is imported.\n * Otherwise, if there is a template, it warns that the template renderer needs to be imported.\n *\n * @param {HTMLElement} component\n */\nexport function processTemplates(component) {\n if (window.Vaadin && window.Vaadin.templateRendererCallback) {\n window.Vaadin.templateRendererCallback(component);\n return;\n }\n\n if (component.querySelector('template')) {\n console.warn(\n `WARNING: <template> inside <${component.localName}> is no longer supported. Import @vaadin/polymer-legacy-adapter/template-renderer.js to enable compatibility.`,\n );\n }\n}\n","import '@vaadin/vaadin-lumo-styles/spacing.js';\nimport { overlay } from '@vaadin/vaadin-lumo-styles/mixins/overlay.js';\nimport { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';\n\nconst dialogOverlay = css`\n /* Optical centering */\n :host::before,\n :host::after {\n content: '';\n flex-basis: 0;\n flex-grow: 1;\n }\n\n :host::after {\n flex-grow: 1.1;\n }\n\n [part='overlay'] {\n border-radius: var(--lumo-border-radius-l);\n box-shadow: 0 0 0 1px var(--lumo-shade-5pct), var(--lumo-box-shadow-xl);\n background-image: none;\n outline: none;\n -webkit-tap-highlight-color: transparent;\n }\n\n [part='content'] {\n padding: var(--lumo-space-l);\n }\n\n :host(:is([has-header], [has-title])) [part='header'] + [part='content'] {\n padding-top: 0;\n }\n\n [part='header'],\n [part='header-content'],\n [part='footer'] {\n gap: var(--lumo-space-xs) var(--lumo-space-s);\n line-height: var(--lumo-line-height-s);\n }\n\n [part='header'] {\n padding: var(--lumo-space-m);\n background-color: var(--lumo-base-color);\n border-radius: var(--lumo-border-radius-l) var(--lumo-border-radius-l) 0 0; /* Needed for Safari */\n }\n\n [part='footer'] {\n padding: var(--lumo-space-s) var(--lumo-space-m);\n background-color: var(--lumo-contrast-5pct);\n border-radius: 0 0 var(--lumo-border-radius-l) var(--lumo-border-radius-l); /* Needed for Safari */\n }\n\n [part='title'] {\n font-size: var(--lumo-font-size-xl);\n font-weight: 600;\n color: var(--lumo-header-text-color);\n margin-inline-start: calc(var(--lumo-space-l) - var(--lumo-space-m));\n }\n\n /* No padding */\n :host([theme~='no-padding']) [part='content'] {\n padding: 0 !important;\n }\n\n @media (min-height: 320px) {\n :host([overflow~='top']) [part='header'] {\n box-shadow: 0 1px 0 0 var(--lumo-contrast-10pct);\n }\n }\n\n /* Animations */\n\n :host([opening]),\n :host([closing]) {\n animation: 0.25s lumo-overlay-dummy-animation;\n }\n\n :host([opening]) [part='overlay'] {\n animation: 0.12s 0.05s vaadin-dialog-enter cubic-bezier(0.215, 0.61, 0.355, 1) both;\n }\n\n @keyframes vaadin-dialog-enter {\n 0% {\n opacity: 0;\n transform: scale(0.95);\n }\n }\n\n :host([closing]) [part='overlay'] {\n animation: 0.1s 0.03s vaadin-dialog-exit cubic-bezier(0.55, 0.055, 0.675, 0.19) both;\n }\n\n :host([closing]) [part='backdrop'] {\n animation-delay: 0.05s;\n }\n\n @keyframes vaadin-dialog-exit {\n 100% {\n opacity: 0;\n transform: scale(1.02);\n }\n }\n`;\n\nregisterStyles('vaadin-dialog-overlay', [overlay, dialogOverlay], { moduleId: 'lumo-dialog' });\n\nexport { dialogOverlay };\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 { OverlayMixin } from '@vaadin/overlay/src/vaadin-overlay-mixin.js';\n\n/**\n * @polymerMixin\n * @mixes OverlayMixin\n */\nexport const DialogOverlayMixin = (superClass) =>\n class DialogOverlayMixin extends OverlayMixin(superClass) {\n static get properties() {\n return {\n /**\n * String used for rendering a dialog title.\n */\n headerTitle: {\n type: String,\n },\n\n /**\n * Custom function for rendering the dialog header.\n */\n headerRenderer: {\n type: Object,\n },\n\n /**\n * Custom function for rendering the dialog footer.\n */\n footerRenderer: {\n type: Object,\n },\n };\n }\n\n static get observers() {\n return [\n '_headerFooterRendererChange(headerRenderer, footerRenderer, opened)',\n '_headerTitleChanged(headerTitle, opened)',\n ];\n }\n\n /** @protected */\n ready() {\n super.ready();\n\n // Update overflow attribute on resize\n this.__resizeObserver = new ResizeObserver(() => {\n this.__updateOverflow();\n });\n this.__resizeObserver.observe(this.$.resizerContainer);\n\n // Update overflow attribute on scroll\n this.$.content.addEventListener('scroll', () => {\n this.__updateOverflow();\n });\n }\n\n /** @private */\n __createContainer(slot) {\n const container = document.createElement('div');\n container.setAttribute('slot', slot);\n return container;\n }\n\n /** @private */\n __clearContainer(container) {\n container.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 container._$litPart$;\n }\n\n /** @private */\n __initContainer(container, slot) {\n if (container) {\n // Reset existing container in case if a new renderer is set.\n this.__clearContainer(container);\n } else {\n // Create the container, but wait to append it until requestContentUpdate is called.\n container = this.__createContainer(slot);\n }\n return container;\n }\n\n /** @private */\n _headerFooterRendererChange(headerRenderer, footerRenderer, opened) {\n const headerRendererChanged = this.__oldHeaderRenderer !== headerRenderer;\n this.__oldHeaderRenderer = headerRenderer;\n\n const footerRendererChanged = this.__oldFooterRenderer !== footerRenderer;\n this.__oldFooterRenderer = footerRenderer;\n\n const openedChanged = this._oldOpenedFooterHeader !== opened;\n this._oldOpenedFooterHeader = opened;\n\n // Set attributes here to update styles before detecting content overflow\n this.toggleAttribute('has-header', !!headerRenderer);\n this.toggleAttribute('has-footer', !!footerRenderer);\n\n if (headerRendererChanged) {\n if (headerRenderer) {\n this.headerContainer = this.__initContainer(this.headerContainer, 'header-content');\n } else if (this.headerContainer) {\n this.headerContainer.remove();\n this.headerContainer = null;\n this.__updateOverflow();\n }\n }\n\n if (footerRendererChanged) {\n if (footerRenderer) {\n this.footerContainer = this.__initContainer(this.footerContainer, 'footer');\n } else if (this.footerContainer) {\n this.footerContainer.remove();\n this.footerContainer = null;\n this.__updateOverflow();\n }\n }\n\n if (\n (headerRenderer && (headerRendererChanged || openedChanged)) ||\n (footerRenderer && (footerRendererChanged || openedChanged))\n ) {\n if (opened) {\n this.requestContentUpdate();\n }\n }\n }\n\n /** @private */\n _headerTitleChanged(headerTitle, opened) {\n this.toggleAttribute('has-title', !!headerTitle);\n\n if (opened && (headerTitle || this._oldHeaderTitle)) {\n this.requestContentUpdate();\n }\n this._oldHeaderTitle = headerTitle;\n }\n\n /** @private */\n _headerTitleRenderer() {\n if (this.headerTitle) {\n if (!this.headerTitleElement) {\n this.headerTitleElement = document.createElement('h2');\n this.headerTitleElement.setAttribute('slot', 'title');\n this.headerTitleElement.classList.add('draggable');\n }\n this.appendChild(this.headerTitleElement);\n this.headerTitleElement.textContent = this.headerTitle;\n } else if (this.headerTitleElement) {\n this.headerTitleElement.remove();\n this.headerTitleElement = null;\n }\n }\n\n /**\n * @override\n */\n requestContentUpdate() {\n super.requestContentUpdate();\n\n if (this.headerContainer) {\n // If a new renderer has been set, make sure to reattach the container\n if (!this.headerContainer.parentElement) {\n this.appendChild(this.headerContainer);\n }\n\n if (this.headerRenderer) {\n // Only call header renderer after the container has been initialized\n this.headerRenderer.call(this.owner, this.headerContainer, this.owner);\n }\n }\n\n if (this.footerContainer) {\n // If a new renderer has been set, make sure to reattach the container\n if (!this.footerContainer.parentElement) {\n this.appendChild(this.footerContainer);\n }\n\n if (this.footerRenderer) {\n // Only call header renderer after the container has been initialized\n this.footerRenderer.call(this.owner, this.footerContainer, this.owner);\n }\n }\n\n this._headerTitleRenderer();\n\n this.__updateOverflow();\n }\n\n /**\n * Updates the coordinates of the overlay.\n * @param {!DialogOverlayBoundsParam} bounds\n */\n setBounds(bounds) {\n const overlay = this.$.overlay;\n const parsedBounds = { ...bounds };\n\n if (overlay.style.position !== 'absolute') {\n overlay.style.position = 'absolute';\n this.setAttribute('has-bounds-set', '');\n }\n\n Object.keys(parsedBounds).forEach((arg) => {\n if (typeof parsedBounds[arg] === 'number') {\n parsedBounds[arg] = `${parsedBounds[arg]}px`;\n }\n });\n\n Object.assign(overlay.style, parsedBounds);\n }\n\n /**\n * Retrieves the coordinates of the overlay.\n * @return {!DialogOverlayBounds}\n */\n getBounds() {\n const overlayBounds = this.$.overlay.getBoundingClientRect();\n const containerBounds = this.getBoundingClientRect();\n const top = overlayBounds.top - containerBounds.top;\n const left = overlayBounds.left - containerBounds.left;\n const width = overlayBounds.width;\n const height = overlayBounds.height;\n return { top, left, width, height };\n }\n\n /** @private */\n __updateOverflow() {\n let overflow = '';\n\n // Only set \"overflow\" attribute if the dialog has a header, title or footer.\n // Check for state attributes as extending components might not use renderers.\n if (this.hasAttribute('has-header') || this.hasAttribute('has-footer') || this.headerTitle) {\n const content = this.$.content;\n\n if (content.scrollTop > 0) {\n overflow += ' top';\n }\n\n if (content.scrollTop < content.scrollHeight - content.clientHeight) {\n overflow += ' bottom';\n }\n }\n\n const value = overflow.trim();\n if (value.length > 0 && this.getAttribute('overflow') !== value) {\n this.setAttribute('overflow', value);\n } else if (value.length === 0 && this.hasAttribute('overflow')) {\n this.removeAttribute('overflow');\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 { css } from 'lit';\n\nexport const dialogOverlay = css`\n [part='header'],\n [part='header-content'],\n [part='footer'] {\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n flex: none;\n pointer-events: none;\n z-index: 1;\n }\n\n [part='header'] {\n flex-wrap: nowrap;\n }\n\n ::slotted([slot='header-content']),\n ::slotted([slot='title']),\n ::slotted([slot='footer']) {\n display: contents;\n pointer-events: auto;\n }\n\n ::slotted([slot='title']) {\n font: inherit !important;\n overflow-wrap: anywhere;\n }\n\n [part='header-content'] {\n flex: 1;\n }\n\n :host([has-title]) [part='header-content'],\n [part='footer'] {\n justify-content: flex-end;\n }\n\n :host(:not([has-title]):not([has-header])) [part='header'],\n :host(:not([has-header])) [part='header-content'],\n :host(:not([has-title])) [part='title'],\n :host(:not([has-footer])) [part='footer'] {\n display: none !important;\n }\n\n :host(:is([has-title], [has-header], [has-footer])) [part='content'] {\n height: auto;\n }\n\n @media (min-height: 320px) {\n :host(:is([has-title], [has-header], [has-footer])) .resizer-container {\n overflow: hidden;\n display: flex;\n flex-direction: column;\n }\n\n :host(:is([has-title], [has-header], [has-footer])) [part='content'] {\n flex: 1;\n overflow: auto;\n }\n }\n\n /*\n NOTE(platosha): Make some min-width to prevent collapsing of the content\n taking the parent width, e. g., <vaadin-grid> and such.\n */\n [part='content'] {\n min-width: 12em; /* matches the default <vaadin-text-field> width */\n }\n\n :host([has-bounds-set]) [part='overlay'] {\n max-width: none;\n }\n\n @media (forced-colors: active) {\n [part='overlay'] {\n outline: 3px solid !important;\n }\n }\n`;\n\nexport const resizableOverlay = css`\n [part='overlay'] {\n position: relative;\n overflow: visible;\n max-height: 100%;\n display: flex;\n }\n\n [part='content'] {\n box-sizing: border-box;\n height: 100%;\n }\n\n .resizer-container {\n overflow: auto;\n flex-grow: 1;\n border-radius: inherit; /* prevent child elements being drawn outside part=overlay */\n }\n\n [part='overlay'][style] .resizer-container {\n min-height: 100%;\n width: 100%;\n }\n\n :host(:not([resizable])) .resizer {\n display: none;\n }\n\n :host([resizable]) [part='title'] {\n cursor: move;\n -webkit-user-select: none;\n user-select: none;\n }\n\n .resizer {\n position: absolute;\n height: 16px;\n width: 16px;\n }\n\n .resizer.edge {\n height: 8px;\n width: 8px;\n inset: -4px;\n }\n\n .resizer.edge.n {\n width: auto;\n bottom: auto;\n cursor: ns-resize;\n }\n\n .resizer.ne {\n top: -4px;\n right: -4px;\n cursor: nesw-resize;\n }\n\n .resizer.edge.e {\n height: auto;\n left: auto;\n cursor: ew-resize;\n }\n\n .resizer.se {\n bottom: -4px;\n right: -4px;\n cursor: nwse-resize;\n }\n\n .resizer.edge.s {\n width: auto;\n top: auto;\n cursor: ns-resize;\n }\n\n .resizer.sw {\n bottom: -4px;\n left: -4px;\n cursor: nesw-resize;\n }\n\n .resizer.edge.w {\n height: auto;\n right: auto;\n cursor: ew-resize;\n }\n\n .resizer.nw {\n top: -4px;\n left: -4px;\n cursor: nwse-resize;\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 { html, PolymerElement } from '@polymer/polymer/polymer-element.js';\nimport { defineCustomElement } from '@vaadin/component-base/src/define.js';\nimport { DirMixin } from '@vaadin/component-base/src/dir-mixin.js';\nimport { overlayStyles } from '@vaadin/overlay/src/vaadin-overlay-styles.js';\nimport { registerStyles, ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';\nimport { DialogOverlayMixin } from './vaadin-dialog-overlay-mixin.js';\nimport { dialogOverlay, resizableOverlay } from './vaadin-dialog-styles.js';\n\nregisterStyles('vaadin-dialog-overlay', [overlayStyles, dialogOverlay, resizableOverlay], {\n moduleId: 'vaadin-dialog-overlay-styles',\n});\n\n/**\n * An element used internally by `<vaadin-dialog>`. Not intended to be used separately.\n *\n * @customElement\n * @extends HTMLElement\n * @mixes DialogOverlayMixin\n * @mixes DirMixin\n * @mixes ThemableMixin\n * @private\n */\nexport class DialogOverlay extends DialogOverlayMixin(DirMixin(ThemableMixin(PolymerElement))) {\n static get is() {\n return 'vaadin-dialog-overlay';\n }\n\n static get template() {\n return html`\n <div id=\"backdrop\" part=\"backdrop\" hidden$=\"[[!withBackdrop]]\"></div>\n <div part=\"overlay\" id=\"overlay\" tabindex=\"0\">\n <section id=\"resizerContainer\" class=\"resizer-container\">\n <header part=\"header\">\n <div part=\"title\"><slot name=\"title\"></slot></div>\n <div part=\"header-content\"><slot name=\"header-content\"></slot></div>\n </header>\n <div part=\"content\" id=\"content\"><slot></slot></div>\n <footer part=\"footer\"><slot name=\"footer\"></slot></footer>\n </section>\n </div>\n `;\n }\n}\n\ndefineCustomElement(DialogOverlay);\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 * @polymerMixin\n */\nexport const DialogBaseMixin = (superClass) =>\n class DialogBaseMixin extends superClass {\n static get properties() {\n return {\n /**\n * True if the overlay is currently displayed.\n * @type {boolean}\n */\n opened: {\n type: Boolean,\n value: false,\n notify: true,\n },\n\n /**\n * Set to true to disable closing dialog on outside click\n * @attr {boolean} no-close-on-outside-click\n * @type {boolean}\n */\n noCloseOnOutsideClick: {\n type: Boolean,\n value: false,\n },\n\n /**\n * Set to true to disable closing dialog on Escape press\n * @attr {boolean} no-close-on-esc\n * @type {boolean}\n */\n noCloseOnEsc: {\n type: Boolean,\n value: false,\n },\n\n /**\n * Set to true to remove backdrop and allow click events on background elements.\n * @type {boolean}\n */\n modeless: {\n type: Boolean,\n value: false,\n },\n };\n }\n\n /** @protected */\n ready() {\n super.ready();\n\n const overlay = this.$.overlay;\n\n overlay.addEventListener('vaadin-overlay-outside-click', this._handleOutsideClick.bind(this));\n overlay.addEventListener('vaadin-overlay-escape-press', this._handleEscPress.bind(this));\n\n this._overlayElement = overlay;\n }\n\n /** @protected */\n connectedCallback() {\n super.connectedCallback();\n // Restore opened state if overlay was opened when disconnecting\n if (this.__restoreOpened) {\n this.opened = true;\n }\n }\n\n /** @protected */\n disconnectedCallback() {\n super.disconnectedCallback();\n // Automatically close the overlay when dialog is removed from DOM\n // Using a timeout to avoid toggling opened state, and dispatching change\n // events, when just moving the dialog in the DOM\n setTimeout(() => {\n if (!this.isConnected) {\n this.__restoreOpened = this.opened;\n this.opened = false;\n }\n });\n }\n\n /** @protected */\n _onOverlayOpened(e) {\n if (e.detail.value === false) {\n this.opened = false;\n }\n }\n\n /**\n * Close the dialog if `noCloseOnOutsideClick` isn't set to true\n * @private\n */\n _handleOutsideClick(e) {\n if (this.noCloseOnOutsideClick) {\n e.preventDefault();\n }\n }\n\n /**\n * Close the dialog if `noCloseOnEsc` isn't set to true\n * @private\n */\n _handleEscPress(e) {\n if (this.noCloseOnEsc) {\n e.preventDefault();\n }\n }\n\n /** @private */\n _bringOverlayToFront() {\n if (this.modeless) {\n this._overlayElement.bringToFront();\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 */\n\n/**\n * Checks if the argument is a touch event and if so, returns a first touch.\n * Otherwise, if the mouse event was passed, returns it as is.\n * @param {!MouseEvent | !TouchEvent} e\n * @return {!MouseEvent | !Touch}\n * @protected\n */\nexport function getMouseOrFirstTouchEvent(e) {\n return e.touches ? e.touches[0] : e;\n}\n\n/**\n * Checks whether a mouse or touch event is in window.\n * @param {!MouseEvent | !TouchEvent} e\n * @return {boolean}\n * @protected\n */\nexport function eventInWindow(e) {\n return e.clientX >= 0 && e.clientX <= window.innerWidth && e.clientY >= 0 && e.clientY <= window.innerHeight;\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 { isTouch } from '@vaadin/component-base/src/browser-utils.js';\nimport { eventInWindow, getMouseOrFirstTouchEvent } from './vaadin-dialog-utils.js';\n\n/**\n * @polymerMixin\n */\nexport const DialogDraggableMixin = (superClass) =>\n class VaadinDialogDraggableMixin extends superClass {\n static get properties() {\n return {\n /**\n * Set to true to enable repositioning the dialog by clicking and dragging.\n *\n * By default, only the overlay area can be used to drag the element. But,\n * a child element can be marked as a draggable area by adding a\n * \"`draggable`\" class to it, this will by default make all of its children draggable also.\n * If you want a child element to be draggable\n * but still have its children non-draggable (by default), mark it with\n * \"`draggable-leaf-only`\" class name.\n *\n * @type {boolean}\n */\n draggable: {\n type: Boolean,\n value: false,\n reflectToAttribute: true,\n },\n\n /** @private */\n _touchDevice: {\n type: Boolean,\n value: isTouch,\n },\n\n /* TODO: Expose as a public property (check naming) */\n __dragHandleClassName: {\n type: String,\n },\n };\n }\n\n /** @protected */\n async ready() {\n super.ready();\n this._originalBounds = {};\n this._originalMouseCoords = {};\n this._startDrag = this._startDrag.bind(this);\n this._drag = this._drag.bind(this);\n this._stopDrag = this._stopDrag.bind(this);\n\n // Wait for overlay render\n await new Promise(requestAnimationFrame);\n this.$.overlay.$.overlay.addEventListener('mousedown', this._startDrag);\n this.$.overlay.$.overlay.addEventListener('touchstart', this._startDrag);\n }\n\n /** @private */\n _startDrag(e) {\n // Don't initiate when there's more than 1 touch (pinch zoom)\n if (e.type === 'touchstart' && e.touches.length > 1) {\n return;\n }\n\n if (this.draggable && (e.button === 0 || e.touches)) {\n const resizerContainer = this.$.overlay.$.resizerContainer;\n const isResizerContainer = e.target === resizerContainer;\n const isResizerContainerScrollbar =\n e.offsetX > resizerContainer.clientWidth || e.offsetY > resizerContainer.clientHeight;\n const isContentPart = e.target === this.$.overlay.$.content;\n\n const isDraggable = e.composedPath().some((node, index) => {\n if (!node.classList) {\n return false;\n }\n\n const isDraggableNode = node.classList.contains(this.__dragHandleClassName || 'draggable');\n const isDraggableLeafOnly = node.classList.contains('draggable-leaf-only');\n const isLeafNode = index === 0;\n return (isDraggableLeafOnly && isLeafNode) || (isDraggableNode && (!isDraggableLeafOnly || isLeafNode));\n });\n\n if ((isResizerContainer && !isResizerContainerScrollbar) || isContentPart || isDraggable) {\n if (!isDraggable) {\n e.preventDefault();\n }\n this._originalBounds = this.$.overlay.getBounds();\n const event = getMouseOrFirstTouchEvent(e);\n this._originalMouseCoords = { top: event.pageY, left: event.pageX };\n window.addEventListener('mouseup', this._stopDrag);\n window.addEventListener('touchend', this._stopDrag);\n window.addEventListener('mousemove', this._drag);\n window.addEventListener('touchmove', this._drag);\n if (this.$.overlay.$.overlay.style.position !== 'absolute') {\n this.$.overlay.setBounds(this._originalBounds);\n }\n }\n }\n }\n\n /** @private */\n _drag(e) {\n const event = getMouseOrFirstTouchEvent(e);\n if (eventInWindow(event)) {\n const top = this._originalBounds.top + (event.pageY - this._originalMouseCoords.top);\n const left = this._originalBounds.left + (event.pageX - this._originalMouseCoords.left);\n this.$.overlay.setBounds({ top, left });\n }\n }\n\n /** @private */\n _stopDrag() {\n window.removeEventListener('mouseup', this._stopDrag);\n window.removeEventListener('touchend', this._stopDrag);\n window.removeEventListener('mousemove', this._drag);\n window.removeEventListener('touchmove', this._drag);\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 * @polymerMixin\n */\nexport const DialogRendererMixin = (superClass) =>\n class DialogRendererMixin extends superClass {\n static get properties() {\n return {\n /**\n * Custom function for rendering the content of the dialog.\n * Receives two arguments:\n *\n * - `root` The root container DOM element. Append your content to it.\n * - `dialog` The reference to the `<vaadin-dialog>` element.\n * @type {DialogRenderer | undefined}\n */\n renderer: {\n type: Object,\n },\n\n /**\n * String used for rendering a dialog title.\n *\n * If both `headerTitle` and `headerRenderer` are defined, the title\n * and the elements created by the renderer will be placed next to\n * each other, with the title coming first.\n *\n * When `headerTitle` is set, the attribute `has-title` is added to the overlay element.\n * @attr {string} header-title\n */\n headerTitle: String,\n\n /**\n * Custom function for rendering the dialog header.\n * Receives two arguments:\n *\n * - `root` The root container DOM element. Append your content to it.\n * - `dialog` The reference to the `<vaadin-dialog>` element.\n *\n * If both `headerTitle` and `headerRenderer` are defined, the title\n * and the elements created by the renderer will be placed next to\n * each other, with the title coming first.\n *\n * When `headerRenderer` is set, the attribute `has-header` is added to the overlay element.\n * @type {DialogRenderer | undefined}\n */\n headerRenderer: {\n type: Object,\n },\n\n /**\n * Custom function for rendering the dialog footer.\n * Receives two arguments:\n *\n * - `root` The root container DOM element. Append your content to it.\n * - `dialog` The reference to the `<vaadin-dialog>` element.\n *\n * When `footerRenderer` is set, the attribute `has-footer` is added to the overlay element.\n * @type {DialogRenderer | undefined}\n */\n footerRenderer: {\n type: Object,\n },\n };\n }\n\n /**\n * Requests an update for the content of the dialog.\n * While performing the update, it invokes the renderer passed in the `renderer` property,\n * as well as `headerRender` and `footerRenderer` properties, if these are defined.\n *\n * It is not guaranteed that the update happens immediately (synchronously) after it is requested.\n */\n requestContentUpdate() {\n if (this._overlayElement) {\n this._overlayElement.requestContentUpdate();\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 { eventInWindow, getMouseOrFirstTouchEvent } from './vaadin-dialog-utils.js';\n/**\n * @polymerMixin\n */\nexport const DialogResizableMixin = (superClass) =>\n class VaadinDialogResizableMixin extends superClass {\n static get properties() {\n return {\n /**\n * Set to true to enable resizing the dialog by dragging the corners and edges.\n * @type {boolean}\n */\n resizable: {\n type: Boolean,\n value: false,\n reflectToAttribute: true,\n },\n };\n }\n\n /** @protected */\n async ready() {\n super.ready();\n this._originalBounds = {};\n this._originalMouseCoords = {};\n this._resizeListeners = { start: {}, resize: {}, stop: {} };\n\n // Wait for overlay render\n await new Promise(requestAnimationFrame);\n this._addResizeListeners();\n }\n\n /** @private */\n _addResizeListeners() {\n // Note: edge controls added before corners\n ['n', 'e', 's', 'w', 'nw', 'ne', 'se', 'sw'].forEach((direction) => {\n const resizer = document.createElement('div');\n this._resizeListeners.start[direction] = (e) => this._startResize(e, direction);\n this._resizeListeners.resize[direction] = (e) => this._resize(e, direction);\n this._resizeListeners.stop[direction] = () => this._stopResize(direction);\n if (direction.length === 1) {\n resizer.classList.add('edge');\n }\n resizer.classList.add('resizer');\n resizer.classList.add(direction);\n resizer.addEventListener('mousedown', this._resizeListeners.start[direction]);\n resizer.addEventListener('touchstart', this._resizeListeners.start[direction]);\n this.$.overlay.$.resizerContainer.appendChild(resizer);\n });\n }\n\n /**\n * @param {!MouseEvent | !TouchEvent} e\n * @param {!DialogResizableDirection} direction\n * @protected\n */\n _startResize(e, direction) {\n // Don't initiate when there's more than 1 touch (pinch zoom)\n if (e.type === 'touchstart' && e.touches.length > 1) {\n return;\n }\n\n if (e.button === 0 || e.touches) {\n e.preventDefault();\n\n this._originalBounds = this.$.overlay.getBounds();\n const event = getMouseOrFirstTouchEvent(e);\n this._originalMouseCoords = { top: event.pageY, left: event.pageX };\n window.addEventListener('mousemove', this._resizeListeners.resize[direction]);\n window.addEventListener('touchmove', this._resizeListeners.resize[direction]);\n window.addEventListener('mouseup', this._resizeListeners.stop[direction]);\n window.addEventListener('touchend', this._resizeListeners.stop[direction]);\n if (this.$.overlay.$.overlay.style.position !== 'absolute') {\n this.$.overlay.setBounds(this._originalBounds);\n }\n }\n }\n\n /**\n * @param {!MouseEvent | !TouchEvent} e\n * @param {!DialogResizableDirection} resizer\n * @protected\n */\n _resize(e, resizer) {\n const event = getMouseOrFirstTouchEvent(e);\n if (eventInWindow(event)) {\n const minimumSize = 40;\n resizer.split('').forEach((direction) => {\n switch (direction) {\n case 'n': {\n const height = this._originalBounds.height - (event.pageY - this._originalMouseCoords.top);\n const top = this._originalBounds.top + (event.pageY - this._originalMouseCoords.top);\n if (height > minimumSize) {\n this.$.overlay.setBounds({ top, height });\n }\n break;\n }\n case 'e': {\n const width = this._originalBounds.width + (event.pageX - this._originalMouseCoords.left);\n if (width > minimumSize) {\n this.$.overlay.setBounds({ width });\n }\n break;\n }\n case 's': {\n const height = this._originalBounds.height + (event.pageY - this._originalMouseCoords.top);\n if (height > minimumSize) {\n this.$.overlay.setBounds({ height });\n }\n break;\n }\n case 'w': {\n const width = this._originalBounds.width - (event.pageX - this._originalMouseCoords.left);\n const left = this._originalBounds.left + (event.pageX - this._originalMouseCoords.left);\n if (width > minimumSize) {\n this.$.overlay.setBounds({ left, width });\n }\n break;\n }\n default:\n break;\n }\n });\n }\n }\n\n /**\n * @param {!DialogResizableDirection} direction\n * @protected\n */\n _stopResize(direction) {\n window.removeEventListener('mousemove', this._resizeListeners.resize[direction]);\n window.removeEventListener('touchmove', this._resizeListeners.resize[direction]);\n window.removeEventListener('mouseup', this._resizeListeners.stop[direction]);\n window.removeEventListener('touchend', this._resizeListeners.stop[direction]);\n this.dispatchEvent(new CustomEvent('resize', { detail: this._getResizeDimensions() }));\n }\n\n /**\n * @return {!DialogResizeDimensions}\n * @protected\n */\n _getResizeDimensions() {\n const scrollPosition = this.$.overlay.$.resizerContainer.scrollTop;\n const { width, height } = getComputedStyle(this.$.overlay.$.overlay);\n const content = this.$.overlay.$.content;\n content.setAttribute(\n 'style',\n 'position: absolute; top: 0; right: 0; bottom: 0; left: 0; box-sizing: content-box; height: auto;',\n );\n const { width: contentWidth, height: contentHeight } = getComputedStyle(content);\n content.removeAttribute('style');\n this.$.overlay.$.resizerContainer.scrollTop = scrollPosition;\n return { width, height, contentWidth, contentHeight };\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 './vaadin-dialog-overlay.js';\nimport { html, PolymerElement } from '@polymer/polymer/polymer-element.js';\nimport { defineCustomElement } from '@vaadin/component-base/src/define.js';\nimport { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';\nimport { OverlayClassMixin } from '@vaadin/component-base/src/overlay-class-mixin.js';\nimport { processTemplates } from '@vaadin/component-base/src/templates.js';\nimport { ThemePropertyMixin } from '@vaadin/vaadin-themable-mixin/vaadin-theme-property-mixin.js';\nimport { DialogBaseMixin } from './vaadin-dialog-base-mixin.js';\nimport { DialogDraggableMixin } from './vaadin-dialog-draggable-mixin.js';\nimport { DialogRendererMixin } from './vaadin-dialog-renderer-mixin.js';\nimport { DialogResizableMixin } from './vaadin-dialog-resizable-mixin.js';\n\nexport { DialogOverlay } from './vaadin-dialog-overlay.js';\n\n/**\n * `<vaadin-dialog>` is a Web Component for creating customized modal dialogs.\n *\n * ### Rendering\n *\n * The content of the dialog can be populated by using the renderer callback function.\n *\n * The renderer function provides `root`, `dialog` arguments.\n * Generate DOM content, append it to the `root` element and control the state\n * of the host element by accessing `dialog`. Before generating new content,\n * users are able to check if there is already content in `root` for reusing it.\n *\n * ```html\n * <vaadin-dialog id=\"dialog\"></vaadin-dialog>\n * ```\n * ```js\n * const dialog = document.querySelector('#dialog');\n * dialog.renderer = function(root, dialog) {\n * root.textContent = \"Sample dialog\";\n * };\n * ```\n *\n * Renderer is called on the opening of the dialog.\n * DOM generated during the renderer call can be reused\n * in the next renderer call and will be provided with the `root` argument.\n * On first call it will be empty.\n *\n * ### Styling\n *\n * `<vaadin-dialog>` uses `<vaadin-dialog-overlay>` internal\n * themable component as the actual visible dialog overlay.\n *\n * See [`<vaadin-overlay>`](#/elements/vaadin-overlay) documentation.\n * for `<vaadin-dialog-overlay>` parts.\n *\n * In addition to `<vaadin-overlay>` parts, the following parts are available for styling:\n *\n * Part name | Description\n * -----------------|-------------------------------------------\n * `header` | Element wrapping title and header content\n * `header-content` | Element wrapping the header content slot\n * `title` | Element wrapping the title slot\n * `footer` | Element wrapping the footer slot\n *\n * The following state attributes are available for styling:\n *\n * Attribute | Description\n * -----------------|--------------------------------------------\n * `has-title` | Set when the element has a title\n * `has-header` | Set when the element has header renderer\n * `has-footer` | Set when the element has footer renderer\n * `overflow` | Set to `top`, `bottom`, none or both\n *\n * Note: the `theme` attribute value set on `<vaadin-dialog>` is\n * propagated to the internal `<vaadin-dialog-overlay>` component.\n *\n * See [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.\n *\n * @fires {CustomEvent} resize - Fired when the dialog resize is finished.\n * @fires {CustomEvent} opened-changed - Fired when the `opened` property changes.\n *\n * @customElement\n * @extends HTMLElement\n * @mixes ThemePropertyMixin\n * @mixes ElementMixin\n * @mixes DialogBaseMixin\n * @mixes DialogDraggableMixin\n * @mixes DialogRendererMixin\n * @mixes DialogResizableMixin\n * @mixes OverlayClassMixin\n */\nclass Dialog extends DialogDraggableMixin(\n DialogResizableMixin(\n DialogRendererMixin(DialogBaseMixin(OverlayClassMixin(ThemePropertyMixin(ElementMixin(PolymerElement))))),\n ),\n) {\n static get template() {\n return html`\n <style>\n :host {\n display: none !important;\n }\n </style>\n\n <vaadin-dialog-overlay\n id=\"overlay\"\n header-title=\"[[headerTitle]]\"\n on-opened-changed=\"_onOverlayOpened\"\n on-mousedown=\"_bringOverlayToFront\"\n on-touchstart=\"_bringOverlayToFront\"\n theme$=\"[[_theme]]\"\n modeless=\"[[modeless]]\"\n with-backdrop=\"[[!modeless]]\"\n resizable$=\"[[resizable]]\"\n restore-focus-on-close\n focus-trap\n ></vaadin-dialog-overlay>\n `;\n }\n\n static get is() {\n return 'vaadin-dialog';\n }\n\n static get properties() {\n return {\n /**\n * Set the `aria-label` attribute for assistive technologies like\n * screen readers. An empty string value for this property (the\n * default) means that the `aria-label` attribute is not present.\n */\n ariaLabel: {\n type: String,\n value: '',\n },\n };\n }\n\n static get observers() {\n return [\n '_openedChanged(opened)',\n '_ariaLabelChanged(ariaLabel, headerTitle)',\n '_rendererChanged(renderer, headerRenderer, footerRenderer)',\n ];\n }\n\n /** @protected */\n ready() {\n super.ready();\n\n this._overlayElement.setAttribute('role', 'dialog');\n\n processTemplates(this);\n }\n\n /** @private */\n _rendererChanged(renderer, headerRenderer, footerRenderer) {\n this.$.overlay.setProperties({ owner: this, renderer, headerRenderer, footerRenderer });\n }\n\n /** @private */\n _openedChanged(opened) {\n this.$.overlay.opened = opened;\n }\n\n /** @private */\n _ariaLabelChanged(ariaLabel, headerTitle) {\n if (ariaLabel || headerTitle) {\n this.$.overlay.setAttribute('aria-label', ariaLabel || headerTitle);\n } else {\n this.$.overlay.removeAttribute('aria-label');\n }\n }\n}\n\ndefineCustomElement(Dialog);\n\nexport { Dialog };\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 { html, PolymerElement } from '@polymer/polymer/polymer-element.js';\nimport { defineCustomElement } from '@vaadin/component-base/src/define.js';\nimport { DirMixin } from '@vaadin/component-base/src/dir-mixin.js';\nimport { processTemplates } from '@vaadin/component-base/src/templates.js';\nimport { registerStyles, ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';\nimport { OverlayMixin } from './vaadin-overlay-mixin.js';\nimport { overlayStyles } from './vaadin-overlay-styles.js';\n\nregisterStyles('vaadin-overlay', overlayStyles, { moduleId: 'vaadin-overlay-styles' });\n\n/**\n * `<vaadin-overlay>` is a Web Component for creating overlays. The content of the overlay\n * can be populated imperatively by using `renderer` callback function.\n *\n * ### Rendering\n *\n * The renderer function provides `root`, `owner`, `model` arguments when applicable.\n * Generate DOM content by using `model` object properties if needed, append it to the `root`\n * element and control the state of the host element by accessing `owner`. Before generating new\n * content, users are able to check if there is already content in `root` for reusing it.\n *\n * ```html\n * <vaadin-overlay id=\"overlay\"></vaadin-overlay>\n * ```\n * ```js\n * const overlay = document.querySelector('#overlay');\n * overlay.renderer = function(root) {\n * root.textContent = \"Overlay content\";\n * };\n * ```\n *\n * Renderer is called on the opening of the overlay and each time the related model is updated.\n * DOM generated during the renderer call can be reused\n * in the next renderer call and will be provided with the `root` argument.\n * On first call it will be empty.\n *\n * ### Styling\n *\n * The following Shadow DOM parts are available for styling:\n *\n * Part name | Description\n * -----------|---------------------------------------------------------|\n * `backdrop` | Backdrop of the overlay\n * `overlay` | Container for position/sizing/alignment of the content\n * `content` | Content of the overlay\n *\n * The following state attributes are available for styling:\n *\n * Attribute | Description | Part\n * ---|---|---\n * `opening` | Applied just after the overlay is attached to the DOM. You can apply a CSS @keyframe animation for this state. | `:host`\n * `closing` | Applied just before the overlay is detached from the DOM. You can apply a CSS @keyframe animation for this state. | `:host`\n *\n * The following custom CSS properties are available for styling:\n *\n * Custom CSS property | Description | Default value\n * ---|---|---\n * `--vaadin-overlay-viewport-bottom` | Bottom offset of the visible viewport area | `0` or detected offset\n *\n * See [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.\n *\n * @fires {CustomEvent} opened-changed - Fired when the `opened` property changes.\n * @fires {CustomEvent} vaadin-overlay-open - Fired after the overlay is opened.\n * @fires {CustomEvent} vaadin-overlay-close - Fired when the opened overlay is about to be closed. Calling `preventDefault()` on the event cancels the closing.\n * @fires {CustomEvent} vaadin-overlay-closing - Fired when the overlay starts to close. Closing the overlay can be asynchronous depending on the animation.\n * @fires {CustomEvent} vaadin-overlay-closed - Fired after the overlay is closed.\n * @fires {CustomEvent} vaadin-overlay-outside-click - Fired before the overlay is closed on outside click. Calling `preventDefault()` on the event cancels the closing.\n * @fires {CustomEvent} vaadin-overlay-escape-press - Fired before the overlay is closed on Escape key press. Calling `preventDefault()` on the event cancels the closing.\n *\n * @customElement\n * @extends HTMLElement\n * @mixes ThemableMixin\n * @mixes DirMixin\n * @mixes OverlayMixin\n */\nclass Overlay extends OverlayMixin(ThemableMixin(DirMixin(PolymerElement))) {\n static get template() {\n return html`\n <div id=\"backdrop\" part=\"backdrop\" hidden$=\"[[!withBackdrop]]\"></div>\n <div part=\"overlay\" id=\"overlay\" tabindex=\"0\">\n <div part=\"content\" id=\"content\">\n <slot></slot>\n </div>\n </div>\n `;\n }\n\n static get is() {\n return 'vaadin-overlay';\n }\n\n /** @protected */\n ready() {\n super.ready();\n\n processTemplates(this);\n }\n\n /**\n * @event vaadin-overlay-open\n * Fired after the overlay is opened.\n */\n\n /**\n * @event vaadin-overlay-close\n * Fired when the opened overlay is about to be closed.\n * Calling `preventDefault()` on the event cancels the closing.\n */\n\n /**\n * @event vaadin-overlay-closing\n * Fired when the overlay starts to close.\n * Closing the overlay can be asynchronous depending on the animation.\n */\n\n /**\n * @event vaadin-overlay-closed\n * Fired after the overlay is closed.\n */\n\n /**\n * @event vaadin-overlay-escape-press\n * Fired before the overlay is closed on Escape key press.\n * Calling `preventDefault()` on the event cancels the closing.\n */\n\n /**\n * @event vaadin-overlay-outside-click\n * Fired before the overlay is closed on outside click.\n * Calling `preventDefault()` on the event cancels the closing.\n */\n}\n\ndefineCustomElement(Overlay);\n\nexport { Overlay };\n"],"names":["testUserAgent","regexp","test","navigator","userAgent","testPlatform","platform","isAndroid","isChrome","vendor","isFirefox","isIPad","maxTouchPoints","isIOS","isSafari","isTouch","document","createEvent","e","overlay","moduleId","processTemplates","component","window","Vaadin","templateRendererCallback","querySelector","console","warn","localName","dialogOverlay","DialogOverlayMixin","superClass","properties","headerTitle","type","String","headerRenderer","Object","footerRenderer","observers","ready","super","this","__resizeObserver","ResizeObserver","__updateOverflow","observe","$","resizerContainer","content","addEventListener","__createContainer","slot","container","createElement","setAttribute","__clearContainer","innerHTML","_$litPart$","__initContainer","_headerFooterRendererChange","opened","headerRendererChanged","__oldHeaderRenderer","footerRendererChanged","__oldFooterRenderer","openedChanged","_oldOpenedFooterHeader","toggleAttribute","headerContainer","remove","footerContainer","requestContentUpdate","_headerTitleChanged","_oldHeaderTitle","_headerTitleRenderer","headerTitleElement","classList","add","appendChild","textContent","parentElement","call","owner","setBounds","bounds","parsedBounds","style","position","keys","forEach","arg","assign","getBounds","overlayBounds","getBoundingClientRect","containerBounds","top","left","width","height","overflow","hasAttribute","scrollTop","scrollHeight","clientHeight","value","trim","length","getAttribute","removeAttribute","resizableOverlay","DialogOverlay","is","template","DialogBaseMixin","Boolean","notify","noCloseOnOutsideClick","noCloseOnEsc","modeless","_handleOutsideClick","bind","_handleEscPress","_overlayElement","connectedCallback","__restoreOpened","disconnectedCallback","setTimeout","isConnected","_onOverlayOpened","detail","preventDefault","_bringOverlayToFront","bringToFront","getMouseOrFirstTouchEvent","touches","eventInWindow","clientX","innerWidth","clientY","innerHeight","DialogDraggableMixin","draggable","reflectToAttribute","_touchDevice","__dragHandleClassName","_originalBounds","_originalMouseCoords","_startDrag","_drag","_stopDrag","Promise","requestAnimationFrame","button","isResizerContainer","target","isResizerContainerScrollbar","offsetX","clientWidth","offsetY","isContentPart","isDraggable","composedPath","some","node","index","isDraggableNode","contains","isDraggableLeafOnly","isLeafNode","event","pageY","pageX","removeEventListener","DialogRendererMixin","renderer","DialogResizableMixin","resizable","_resizeListeners","start","resize","stop","_addResizeListeners","direction","resizer","_startResize","_resize","_stopResize","minimumSize","split","dispatchEvent","CustomEvent","_getResizeDimensions","scrollPosition","getComputedStyle","contentWidth","contentHeight","Dialog","ariaLabel","_rendererChanged","setProperties","_openedChanged","_ariaLabelChanged","Overlay"],"sourceRoot":""}
|
package/dist/umd/9275.js
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
/*! For license information please see 9275.js.LICENSE.txt */
|
2
|
+
"use strict";(self.webpackChunk_descope_web_components_ui=self.webpackChunk_descope_web_components_ui||[]).push([[9275],{1508:(t,e,s)=>{function i(t){const e=[];for(;t;){if(t.nodeType===Node.DOCUMENT_NODE){e.push(t);break}t.nodeType!==Node.DOCUMENT_FRAGMENT_NODE?t=t.assignedSlot?t.assignedSlot:t.parentNode:(e.push(t),t=t.host)}return e}function o(t){const e=[];let s;return"slot"===t.localName?s=t.assignedElements():(e.push(t),s=[...t.children]),s.forEach((t=>e.push(...o(t)))),e}function n(t,e){return e?e.closest(t)||n(t,e.getRootNode().host):null}function d(t){return t?new Set(t.split(" ")):new Set}function h(t){return t?[...t].join(" "):""}function a(t,e,s){const i=d(t.getAttribute(e));i.add(s),t.setAttribute(e,h(i))}function l(t,e,s){const i=d(t.getAttribute(e));i.delete(s),0!==i.size?t.setAttribute(e,h(i)):t.removeAttribute(e)}function r(t){return t.nodeType===Node.TEXT_NODE&&""===t.textContent.trim()}s.d(e,{Dy:()=>i,J$:()=>o,Wr:()=>l,Z4:()=>d,ZA:()=>r,el:()=>n,iA:()=>a,sz:()=>h})},5745:(t,e,s)=>{s.d(e,{i:()=>i});const i=(0,s(98741).y)((t=>class extends t{static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0}}}_disabledChanged(t){this._setAriaDisabled(t)}_setAriaDisabled(t){t?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}click(){this.disabled||super.click()}}))},7888:(t,e,s)=>{s.d(e,{f:()=>i});const i=(0,s(98741).y)((t=>class extends t{ready(){super.ready(),this.addEventListener("keydown",(t=>{this._onKeyDown(t)})),this.addEventListener("keyup",(t=>{this._onKeyUp(t)}))}_onKeyDown(t){switch(t.key){case"Enter":this._onEnter(t);break;case"Escape":this._onEscape(t)}}_onKeyUp(t){}_onEnter(t){}_onEscape(t){}}))},11707:(t,e,s)=>{s.d(e,{I:()=>o});let i=0;function o(){return i++}},36176:(t,e,s)=>{s.d(e,{l:()=>o});var i=s(5745);const o=t=>class extends((0,i.i)(t)){static get properties(){return{tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(t,e){super._disabledChanged(t,e),t?(void 0!==this.tabindex&&(this._lastTabIndex=this.tabindex),this.tabindex=-1):e&&(this.tabindex=this._lastTabIndex)}_tabindexChanged(t){this.disabled&&-1!==t&&(this._lastTabIndex=t,this.tabindex=-1)}}},42068:(t,e,s)=>{s(88660);var i=s(87550),o=s(36411);const n=i.AH`
|
3
|
+
:host {
|
4
|
+
--lumo-size-xs: 1.625rem;
|
5
|
+
--lumo-size-s: 1.875rem;
|
6
|
+
--lumo-size-m: 2.25rem;
|
7
|
+
--lumo-size-l: 2.75rem;
|
8
|
+
--lumo-size-xl: 3.5rem;
|
9
|
+
|
10
|
+
/* Icons */
|
11
|
+
--lumo-icon-size-s: 1.25em;
|
12
|
+
--lumo-icon-size-m: 1.5em;
|
13
|
+
--lumo-icon-size-l: 2.25em;
|
14
|
+
/* For backwards compatibility */
|
15
|
+
--lumo-icon-size: var(--lumo-icon-size-m);
|
16
|
+
}
|
17
|
+
`;(0,o.q)("sizing-props",n)},44099:(t,e,s)=>{s.d(e,{r:()=>d});var i=s(1508),o=s(65641),n=s(11707);class d extends EventTarget{static generateId(t,e){return`${e||"default"}-${t.localName}-${(0,n.I)()}`}constructor(t,e,s,i={}){super();const{initializer:o,multiple:n,observe:d,useUniqueId:h}=i;this.host=t,this.slotName=e,this.tagName=s,this.observe="boolean"!=typeof d||d,this.multiple="boolean"==typeof n&&n,this.slotInitializer=o,n&&(this.nodes=[]),h&&(this.defaultId=this.constructor.generateId(t,e))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){let t=this.getSlotChild();t?(this.node=t,this.initAddedNode(t)):(t=this.attachDefaultNode(),this.initNode(t))}initMultiple(){const t=this.getSlotChildren();if(0===t.length){const t=this.attachDefaultNode();t&&(this.nodes=[t],this.initNode(t))}else this.nodes=t,t.forEach((t=>{this.initAddedNode(t)}))}attachDefaultNode(){const{host:t,slotName:e,tagName:s}=this;let i=this.defaultNode;return!i&&s&&(i=document.createElement(s),i instanceof Element&&(""!==e&&i.setAttribute("slot",e),this.defaultNode=i)),i&&(this.node=i,t.appendChild(i)),i}getSlotChildren(){const{slotName:t}=this;return Array.from(this.host.childNodes).filter((e=>e.nodeType===Node.ELEMENT_NODE&&e.slot===t||e.nodeType===Node.TEXT_NODE&&e.textContent.trim()&&""===t))}getSlotChild(){return this.getSlotChildren()[0]}initNode(t){const{slotInitializer:e}=this;e&&e(t,this.host)}initCustomNode(t){}teardownNode(t){}initAddedNode(t){t!==this.defaultNode&&(this.initCustomNode(t),this.initNode(t))}observeSlot(){const{slotName:t}=this,e=""===t?"slot:not([name])":`slot[name=${t}]`,s=this.host.shadowRoot.querySelector(e);this.__slotObserver=new o.P(s,(({addedNodes:t,removedNodes:e})=>{const s=this.multiple?this.nodes:[this.node],o=t.filter((t=>!(0,i.ZA)(t)&&!s.includes(t)));e.length&&(this.nodes=s.filter((t=>!e.includes(t))),e.forEach((t=>{this.teardownNode(t)}))),o&&o.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...s,...o].filter((t=>t!==this.defaultNode)),o.forEach((t=>{this.initAddedNode(t)}))):(this.node&&this.node.remove(),this.node=o[0],this.initAddedNode(this.node)))}))}}},53149:(t,e,s)=>{s.d(e,{y:()=>n});var i=s(98741),o=s(30025);const n=(0,i.y)((t=>class extends t{get _keyboardActive(){return(0,o.aJ)()}ready(){this.addEventListener("focusin",(t=>{this._shouldSetFocus(t)&&this._setFocused(!0)})),this.addEventListener("focusout",(t=>{this._shouldRemoveFocus(t)&&this._setFocused(!1)})),super.ready()}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}_setFocused(t){this.toggleAttribute("focused",t),this.toggleAttribute("focus-ring",t&&this._keyboardActive)}_shouldSetFocus(t){return!0}_shouldRemoveFocus(t){return!0}}))},65641:(t,e,s)=>{s.d(e,{P:()=>i});class i{constructor(t,e){this.slot=t,this.callback=e,this._storedNodes=[],this._connected=!1,this._scheduled=!1,this._boundSchedule=()=>{this._schedule()},this.connect(),this._schedule()}connect(){this.slot.addEventListener("slotchange",this._boundSchedule),this._connected=!0}disconnect(){this.slot.removeEventListener("slotchange",this._boundSchedule),this._connected=!1}_schedule(){this._scheduled||(this._scheduled=!0,queueMicrotask((()=>{this.flush()})))}flush(){this._connected&&(this._scheduled=!1,this._processNodes())}_processNodes(){const t=this.slot.assignedNodes({flatten:!0});let e=[];const s=[],i=[];t.length&&(e=t.filter((t=>!this._storedNodes.includes(t)))),this._storedNodes.length&&this._storedNodes.forEach(((e,o)=>{const n=t.indexOf(e);-1===n?s.push(e):n!==o&&i.push(e)})),(e.length||s.length||i.length)&&this.callback({addedNodes:e,movedNodes:i,removedNodes:s}),this._storedNodes=t}}},81488:(t,e,s)=>{s.d(e,{I:()=>o});var i=s(44099);class o extends i.r{constructor(t){super(t,"tooltip"),this.setTarget(t)}initCustomNode(t){t.target=this.target,void 0!==this.ariaTarget&&(t.ariaTarget=this.ariaTarget),void 0!==this.context&&(t.context=this.context),void 0!==this.manual&&(t.manual=this.manual),void 0!==this.opened&&(t.opened=this.opened),void 0!==this.position&&(t._position=this.position),void 0!==this.shouldShow&&(t.shouldShow=this.shouldShow),this.__notifyChange()}teardownNode(){this.__notifyChange()}setAriaTarget(t){this.ariaTarget=t;const e=this.node;e&&(e.ariaTarget=t)}setContext(t){this.context=t;const e=this.node;e&&(e.context=t)}setManual(t){this.manual=t;const e=this.node;e&&(e.manual=t)}setOpened(t){this.opened=t;const e=this.node;e&&(e.opened=t)}setPosition(t){this.position=t;const e=this.node;e&&(e._position=t)}setShouldShow(t){this.shouldShow=t;const e=this.node;e&&(e.shouldShow=t)}setTarget(t){this.target=t;const e=this.node;e&&(e.target=t)}__notifyChange(){this.dispatchEvent(new CustomEvent("tooltip-changed",{detail:{node:this.node}}))}}}}]);
|
18
|
+
//# sourceMappingURL=9275.js.map
|
@@ -0,0 +1,23 @@
|
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
4
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
5
|
+
*/
|
6
|
+
|
7
|
+
/**
|
8
|
+
* @license
|
9
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
10
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
11
|
+
*/
|
12
|
+
|
13
|
+
/**
|
14
|
+
* @license
|
15
|
+
* Copyright (c) 2022 - 2023 Vaadin Ltd.
|
16
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
17
|
+
*/
|
18
|
+
|
19
|
+
/**
|
20
|
+
* @license
|
21
|
+
* Copyright (c) 2023 Vaadin Ltd.
|
22
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
23
|
+
*/
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"9275.js","mappings":";wIAgBO,SAASA,EAAqBC,GACnC,MAAMC,EAAS,GAEf,KAAOD,GAAM,CACX,GAAIA,EAAKE,WAAaC,KAAKC,cAAe,CACxCH,EAAOI,KAAKL,GACZ,KACF,CAEIA,EAAKE,WAAaC,KAAKG,uBAOzBN,EADEA,EAAKO,aACAP,EAAKO,aAIPP,EAAKQ,YAVVP,EAAOI,KAAKL,GACZA,EAAOA,EAAKS,KAUhB,CAEA,OAAOR,CACT,CAUO,SAASS,EAAqBV,GACnC,MAAMC,EAAS,GACf,IAAIU,EAQJ,MAPuB,SAAnBX,EAAKY,UACPD,EAAWX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AAK4G,OAASA,EAEd,MAAMJ,EAAcxG,KAAKnD,KACrB2J,IACFA,EAAYI,OAASA,EAEzB,CAMA,SAAAS,CAAUR,GACR7G,KAAK6G,OAASA,EAEd,MAAML,EAAcxG,KAAKnD,KACrB2J,IACFA,EAAYK,OAASA,EAEzB,CAQA,WAAAS,CAAYR,GACV9G,KAAK8G,SAAWA,EAEhB,MAAMN,EAAcxG,KAAKnD,KACrB2J,IACFA,EAAYO,UAAYD,EAE5B,CAOA,aAAAS,CAAcP,GACZhH,KAAKgH,WAAaA,EAElB,MAAMR,EAAcxG,KAAKnD,KACrB2J,IACFA,EAAYQ,WAAaA,EAE7B,CAMA,SAAAT,CAAUE,GACRzG,KAAKyG,OAASA,EAEd,MAAMD,EAAcxG,KAAKnD,KACrB2J,IACFA,EAAYC,OAASA,EAEzB,CAGA,cAAAQ,GACEjH,KAAKwH,cAAc,IAAIC,YAAY,kBAAmB,CAAEC,OAAQ,CAAE7K,KAAMmD,KAAKnD,QAC/E","sources":["webpack://@descope/web-components-ui/../../../node_modules/@vaadin/component-base/src/dom-utils.js","webpack://@descope/web-components-ui/../../../node_modules/@vaadin/a11y-base/src/disabled-mixin.js","webpack://@descope/web-components-ui/../../../node_modules/@vaadin/a11y-base/src/keyboard-mixin.js","webpack://@descope/web-components-ui/../../../node_modules/@vaadin/component-base/src/unique-id-utils.js","webpack://@descope/web-components-ui/../../../node_modules/@vaadin/a11y-base/src/tabindex-mixin.js","webpack://@descope/web-components-ui/../../../node_modules/@vaadin/vaadin-lumo-styles/sizing.js","webpack://@descope/web-components-ui/../../../node_modules/@vaadin/component-base/src/slot-controller.js","webpack://@descope/web-components-ui/../../../node_modules/@vaadin/a11y-base/src/focus-mixin.js","webpack://@descope/web-components-ui/../../../node_modules/@vaadin/component-base/src/slot-observer.js","webpack://@descope/web-components-ui/../../../node_modules/@vaadin/component-base/src/tooltip-controller.js"],"sourcesContent":["/**\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 */\n\n/**\n * Returns an array of ancestor root nodes for the given node.\n *\n * A root node is either a document node or a document fragment node (Shadow Root).\n * The array is collected by a bottom-up DOM traversing that starts with the given node\n * and involves both the light DOM and ancestor shadow DOM trees.\n *\n * @param {Node} node\n * @return {Node[]}\n */\nexport function getAncestorRootNodes(node) {\n const result = [];\n\n while (node) {\n if (node.nodeType === Node.DOCUMENT_NODE) {\n result.push(node);\n break;\n }\n\n if (node.nodeType === Node.DOCUMENT_FRAGMENT_NODE) {\n result.push(node);\n node = node.host;\n continue;\n }\n\n if (node.assignedSlot) {\n node = node.assignedSlot;\n continue;\n }\n\n node = node.parentNode;\n }\n\n return result;\n}\n\n/**\n * Returns the list of flattened elements for the given `node`.\n * This list consists of a node's children and, for any children that are\n * `<slot>` elements, the expanded flattened list of `assignedElements`.\n *\n * @param {Node} node\n * @return {Element[]}\n */\nexport function getFlattenedElements(node) {\n const result = [];\n let elements;\n if (node.localName === 'slot') {\n elements = node.assignedElements();\n } else {\n result.push(node);\n elements = [...node.children];\n }\n elements.forEach((elem) => result.push(...getFlattenedElements(elem)));\n return result;\n}\n\n/**\n * Traverses the given node and its parents, including those that are across\n * the shadow root boundaries, until it finds a node that matches the selector.\n *\n * @param {string} selector The CSS selector to match against\n * @param {Node} node The starting node for the traversal\n * @return {Node | null} The closest matching element, or null if no match is found\n */\nexport function getClosestElement(selector, node) {\n if (!node) {\n return null;\n }\n\n return node.closest(selector) || getClosestElement(selector, node.getRootNode().host);\n}\n\n/**\n * Takes a string with values separated by space and returns a set the values\n *\n * @param {string} value\n * @return {Set<string>}\n */\nexport function deserializeAttributeValue(value) {\n if (!value) {\n return new Set();\n }\n\n return new Set(value.split(' '));\n}\n\n/**\n * Takes a set of string values and returns a string with values separated by space\n *\n * @param {Set<string>} values\n * @return {string}\n */\nexport function serializeAttributeValue(values) {\n return values ? [...values].join(' ') : '';\n}\n\n/**\n * Adds a value to an attribute containing space-delimited values.\n *\n * @param {HTMLElement} element\n * @param {string} attr\n * @param {string} value\n */\nexport function addValueToAttribute(element, attr, value) {\n const values = deserializeAttributeValue(element.getAttribute(attr));\n values.add(value);\n element.setAttribute(attr, serializeAttributeValue(values));\n}\n\n/**\n * Removes a value from an attribute containing space-delimited values.\n * If the value is the last one, the whole attribute is removed.\n *\n * @param {HTMLElement} element\n * @param {string} attr\n * @param {string} value\n */\nexport function removeValueFromAttribute(element, attr, value) {\n const values = deserializeAttributeValue(element.getAttribute(attr));\n values.delete(value);\n if (values.size === 0) {\n element.removeAttribute(attr);\n return;\n }\n element.setAttribute(attr, serializeAttributeValue(values));\n}\n\n/**\n * Returns true if the given node is an empty text node, false otherwise.\n *\n * @param {Node} node\n * @return {boolean}\n */\nexport function isEmptyTextNode(node) {\n return node.nodeType === Node.TEXT_NODE && node.textContent.trim() === '';\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 { dedupingMixin } from '@polymer/polymer/lib/utils/mixin.js';\n\n/**\n * A mixin to provide disabled property for field components.\n *\n * @polymerMixin\n */\nexport const DisabledMixin = dedupingMixin(\n (superclass) =>\n class DisabledMixinClass extends superclass {\n static get properties() {\n return {\n /**\n * If true, the user cannot interact with this element.\n */\n disabled: {\n type: Boolean,\n value: false,\n observer: '_disabledChanged',\n reflectToAttribute: true,\n },\n };\n }\n\n /**\n * @param {boolean} disabled\n * @protected\n */\n _disabledChanged(disabled) {\n this._setAriaDisabled(disabled);\n }\n\n /**\n * @param {boolean} disabled\n * @protected\n */\n _setAriaDisabled(disabled) {\n if (disabled) {\n this.setAttribute('aria-disabled', 'true');\n } else {\n this.removeAttribute('aria-disabled');\n }\n }\n\n /**\n * Overrides the default element `click` method in order to prevent\n * firing the `click` event when the element is disabled.\n * @protected\n * @override\n */\n click() {\n if (!this.disabled) {\n super.click();\n }\n }\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 { dedupingMixin } from '@polymer/polymer/lib/utils/mixin.js';\n\n/**\n * A mixin that manages keyboard handling.\n * The mixin subscribes to the keyboard events while an actual implementation\n * for the event handlers is left to the client (a component or another mixin).\n *\n * @polymerMixin\n */\nexport const KeyboardMixin = dedupingMixin(\n (superclass) =>\n class KeyboardMixinClass extends superclass {\n /** @protected */\n ready() {\n super.ready();\n\n this.addEventListener('keydown', (event) => {\n this._onKeyDown(event);\n });\n\n this.addEventListener('keyup', (event) => {\n this._onKeyUp(event);\n });\n }\n\n /**\n * A handler for the `keydown` event. By default, it calls\n * separate methods for handling \"Enter\" and \"Escape\" keys.\n * Override the method to implement your own behavior.\n *\n * @param {KeyboardEvent} event\n * @protected\n */\n _onKeyDown(event) {\n switch (event.key) {\n case 'Enter':\n this._onEnter(event);\n break;\n case 'Escape':\n this._onEscape(event);\n break;\n default:\n break;\n }\n }\n\n /**\n * A handler for the `keyup` event. By default, it does nothing.\n * Override the method to implement your own behavior.\n *\n * @param {KeyboardEvent} _event\n * @protected\n */\n _onKeyUp(_event) {\n // To be implemented.\n }\n\n /**\n * A handler for the \"Enter\" key. By default, it does nothing.\n * Override the method to implement your own behavior.\n *\n * @param {KeyboardEvent} _event\n * @protected\n */\n _onEnter(_event) {\n // To be implemented.\n }\n\n /**\n * A handler for the \"Escape\" key. By default, it does nothing.\n * Override the method to implement your own behavior.\n *\n * @param {KeyboardEvent} _event\n * @protected\n */\n _onEscape(_event) {\n // To be implemented.\n }\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 */\n\nlet uniqueId = 0;\n\n/**\n * Resets the unique id counter.\n *\n * @return {void}\n */\nexport function resetUniqueId() {\n uniqueId = 0;\n}\n\n/**\n * Returns a unique integer id.\n *\n * @return {number}\n */\nexport function generateUniqueId() {\n // eslint-disable-next-line no-plusplus\n return uniqueId++;\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 { DisabledMixin } from './disabled-mixin.js';\n\n/**\n * A mixin to toggle the `tabindex` attribute.\n *\n * The attribute is set to -1 whenever the user disables the element\n * and restored with the last known value once the element is enabled.\n *\n * @polymerMixin\n * @mixes DisabledMixin\n */\nexport const TabindexMixin = (superclass) =>\n class TabindexMixinClass extends DisabledMixin(superclass) {\n static get properties() {\n return {\n /**\n * Indicates whether the element can be focused and where it participates in sequential keyboard navigation.\n *\n * @protected\n */\n tabindex: {\n type: Number,\n reflectToAttribute: true,\n observer: '_tabindexChanged',\n },\n\n /**\n * Stores the last known tabindex since the element has been disabled.\n *\n * @protected\n */\n _lastTabIndex: {\n type: Number,\n },\n };\n }\n\n /**\n * When the element gets disabled, the observer saves the last known tabindex\n * and makes the element not focusable by setting tabindex to -1.\n * As soon as the element gets enabled, the observer restores the last known tabindex\n * so that the element can be focusable again.\n *\n * @protected\n * @override\n */\n _disabledChanged(disabled, oldDisabled) {\n super._disabledChanged(disabled, oldDisabled);\n\n if (disabled) {\n if (this.tabindex !== undefined) {\n this._lastTabIndex = this.tabindex;\n }\n this.tabindex = -1;\n } else if (oldDisabled) {\n this.tabindex = this._lastTabIndex;\n }\n }\n\n /**\n * When the user has changed tabindex while the element is disabled,\n * the observer reverts tabindex to -1 and rather saves the new tabindex value to apply it later.\n * The new value will be applied as soon as the element becomes enabled.\n *\n * @protected\n */\n _tabindexChanged(tabindex) {\n if (this.disabled && tabindex !== -1) {\n this._lastTabIndex = tabindex;\n this.tabindex = -1;\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 './version.js';\nimport { css } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';\nimport { addLumoGlobalStyles } from './global.js';\n\nconst sizing = css`\n :host {\n --lumo-size-xs: 1.625rem;\n --lumo-size-s: 1.875rem;\n --lumo-size-m: 2.25rem;\n --lumo-size-l: 2.75rem;\n --lumo-size-xl: 3.5rem;\n\n /* Icons */\n --lumo-icon-size-s: 1.25em;\n --lumo-icon-size-m: 1.5em;\n --lumo-icon-size-l: 2.25em;\n /* For backwards compatibility */\n --lumo-icon-size: var(--lumo-icon-size-m);\n }\n`;\n\naddLumoGlobalStyles('sizing-props', sizing);\n\nexport { sizing };\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 { isEmptyTextNode } from './dom-utils.js';\nimport { SlotObserver } from './slot-observer.js';\nimport { generateUniqueId } from './unique-id-utils.js';\n\n/**\n * A controller for providing content to slot element and observing changes.\n */\nexport class SlotController extends EventTarget {\n /**\n * Ensure that every instance has unique ID.\n *\n * @param {HTMLElement} host\n * @param {string} slotName\n * @return {string}\n * @protected\n */\n static generateId(host, slotName) {\n const prefix = slotName || 'default';\n return `${prefix}-${host.localName}-${generateUniqueId()}`;\n }\n\n constructor(host, slotName, tagName, config = {}) {\n super();\n\n const { initializer, multiple, observe, useUniqueId } = config;\n\n this.host = host;\n this.slotName = slotName;\n this.tagName = tagName;\n this.observe = typeof observe === 'boolean' ? observe : true;\n this.multiple = typeof multiple === 'boolean' ? multiple : false;\n this.slotInitializer = initializer;\n\n if (multiple) {\n this.nodes = [];\n }\n\n // Only generate the default ID if requested by the controller.\n if (useUniqueId) {\n this.defaultId = this.constructor.generateId(host, slotName);\n }\n }\n\n hostConnected() {\n if (!this.initialized) {\n if (this.multiple) {\n this.initMultiple();\n } else {\n this.initSingle();\n }\n\n if (this.observe) {\n this.observeSlot();\n }\n\n this.initialized = true;\n }\n }\n\n /** @protected */\n initSingle() {\n let node = this.getSlotChild();\n\n if (!node) {\n node = this.attachDefaultNode();\n this.initNode(node);\n } else {\n this.node = node;\n this.initAddedNode(node);\n }\n }\n\n /** @protected */\n initMultiple() {\n const children = this.getSlotChildren();\n\n if (children.length === 0) {\n const defaultNode = this.attachDefaultNode();\n if (defaultNode) {\n this.nodes = [defaultNode];\n this.initNode(defaultNode);\n }\n } else {\n this.nodes = children;\n children.forEach((node) => {\n this.initAddedNode(node);\n });\n }\n }\n\n /**\n * Create and attach default node using the provided tag name, if any.\n * @return {Node | undefined}\n * @protected\n */\n attachDefaultNode() {\n const { host, slotName, tagName } = this;\n\n // Check if the node was created previously and if so, reuse it.\n let node = this.defaultNode;\n\n // Tag name is optional, sometimes we don't init default content.\n if (!node && tagName) {\n node = document.createElement(tagName);\n if (node instanceof Element) {\n if (slotName !== '') {\n node.setAttribute('slot', slotName);\n }\n this.defaultNode = node;\n }\n }\n\n if (node) {\n this.node = node;\n host.appendChild(node);\n }\n\n return node;\n }\n\n /**\n * Return the list of nodes matching the slot managed by the controller.\n * @return {Node}\n */\n getSlotChildren() {\n const { slotName } = this;\n return Array.from(this.host.childNodes).filter((node) => {\n // Either an element (any slot) or a text node (only un-named slot).\n return (\n (node.nodeType === Node.ELEMENT_NODE && node.slot === slotName) ||\n (node.nodeType === Node.TEXT_NODE && node.textContent.trim() && slotName === '')\n );\n });\n }\n\n /**\n * Return a reference to the node managed by the controller.\n * @return {Node}\n */\n getSlotChild() {\n return this.getSlotChildren()[0];\n }\n\n /**\n * Run `slotInitializer` for the node managed by the controller.\n *\n * @param {Node} node\n * @protected\n */\n initNode(node) {\n const { slotInitializer } = this;\n // Don't try to bind `this` to initializer (normally it's arrow function).\n // Instead, pass the host as a first argument to access component's state.\n if (slotInitializer) {\n slotInitializer(node, this.host);\n }\n }\n\n /**\n * Override to initialize the newly added custom node.\n *\n * @param {Node} _node\n * @protected\n */\n initCustomNode(_node) {}\n\n /**\n * Override to teardown slotted node when it's removed.\n *\n * @param {Node} _node\n * @protected\n */\n teardownNode(_node) {}\n\n /**\n * Run both `initCustomNode` and `initNode` for a custom slotted node.\n *\n * @param {Node} node\n * @protected\n */\n initAddedNode(node) {\n if (node !== this.defaultNode) {\n this.initCustomNode(node);\n this.initNode(node);\n }\n }\n\n /**\n * Setup the observer to manage slot content changes.\n * @protected\n */\n observeSlot() {\n const { slotName } = this;\n const selector = slotName === '' ? 'slot:not([name])' : `slot[name=${slotName}]`;\n const slot = this.host.shadowRoot.querySelector(selector);\n\n this.__slotObserver = new SlotObserver(slot, ({ addedNodes, removedNodes }) => {\n const current = this.multiple ? this.nodes : [this.node];\n\n // Calling `slot.assignedNodes()` includes whitespace text nodes in case of default slot:\n // unlike comment nodes, they are not filtered out. So we need to manually ignore them.\n const newNodes = addedNodes.filter((node) => !isEmptyTextNode(node) && !current.includes(node));\n\n if (removedNodes.length) {\n this.nodes = current.filter((node) => !removedNodes.includes(node));\n\n removedNodes.forEach((node) => {\n this.teardownNode(node);\n });\n }\n\n if (newNodes && newNodes.length > 0) {\n if (this.multiple) {\n // Remove default node if exists\n if (this.defaultNode) {\n this.defaultNode.remove();\n }\n this.nodes = [...current, ...newNodes].filter((node) => node !== this.defaultNode);\n newNodes.forEach((node) => {\n this.initAddedNode(node);\n });\n } else {\n // Remove previous node if exists\n if (this.node) {\n this.node.remove();\n }\n this.node = newNodes[0];\n this.initAddedNode(this.node);\n }\n }\n });\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 { dedupingMixin } from '@polymer/polymer/lib/utils/mixin.js';\nimport { isKeyboardActive } from './focus-utils.js';\n\n/**\n * A mixin to handle `focused` and `focus-ring` attributes based on focus.\n *\n * @polymerMixin\n */\nexport const FocusMixin = dedupingMixin(\n (superclass) =>\n class FocusMixinClass extends superclass {\n /**\n * @protected\n * @return {boolean}\n */\n get _keyboardActive() {\n return isKeyboardActive();\n }\n\n /** @protected */\n ready() {\n this.addEventListener('focusin', (e) => {\n if (this._shouldSetFocus(e)) {\n this._setFocused(true);\n }\n });\n\n this.addEventListener('focusout', (e) => {\n if (this._shouldRemoveFocus(e)) {\n this._setFocused(false);\n }\n });\n\n // In super.ready() other 'focusin' and 'focusout' listeners might be\n // added, so we call it after our own ones to ensure they execute first.\n // Issue to watch out: when incorrect, <vaadin-combo-box> refocuses the\n // input field on iOS after \"Done\" is pressed.\n super.ready();\n }\n\n /** @protected */\n disconnectedCallback() {\n super.disconnectedCallback();\n\n // In non-Chrome browsers, blur does not fire on the element when it is disconnected.\n // reproducible in `<vaadin-date-picker>` when closing on `Cancel` or `Today` click.\n if (this.hasAttribute('focused')) {\n this._setFocused(false);\n }\n }\n\n /**\n * Override to change how focused and focus-ring attributes are set.\n *\n * @param {boolean} focused\n * @protected\n */\n _setFocused(focused) {\n this.toggleAttribute('focused', focused);\n\n // Focus-ring is true when the element was focused from the keyboard.\n // Focus Ring [A11ycasts]: https://youtu.be/ilj2P5-5CjI\n this.toggleAttribute('focus-ring', focused && this._keyboardActive);\n }\n\n /**\n * Override to define if the field receives focus based on the event.\n *\n * @param {FocusEvent} _event\n * @return {boolean}\n * @protected\n */\n _shouldSetFocus(_event) {\n return true;\n }\n\n /**\n * Override to define if the field loses focus based on the event.\n *\n * @param {FocusEvent} _event\n * @return {boolean}\n * @protected\n */\n _shouldRemoveFocus(_event) {\n return true;\n }\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 helper for observing slot changes.\n */\nexport class SlotObserver {\n constructor(slot, callback) {\n /** @type HTMLSlotElement */\n this.slot = slot;\n\n /** @type Function */\n this.callback = callback;\n\n /** @type {Node[]} */\n this._storedNodes = [];\n\n this._connected = false;\n this._scheduled = false;\n\n this._boundSchedule = () => {\n this._schedule();\n };\n\n this.connect();\n this._schedule();\n }\n\n /**\n * Activates an observer. This method is automatically called when\n * a `SlotObserver` is created. It should only be called to re-activate\n * an observer that has been deactivated via the `disconnect` method.\n */\n connect() {\n this.slot.addEventListener('slotchange', this._boundSchedule);\n this._connected = true;\n }\n\n /**\n * Deactivates the observer. After calling this method the observer callback\n * will not be called when changes to slotted nodes occur. The `connect` method\n * may be subsequently called to reactivate the observer.\n */\n disconnect() {\n this.slot.removeEventListener('slotchange', this._boundSchedule);\n this._connected = false;\n }\n\n /** @private */\n _schedule() {\n if (!this._scheduled) {\n this._scheduled = true;\n\n queueMicrotask(() => {\n this.flush();\n });\n }\n }\n\n /**\n * Run the observer callback synchronously.\n */\n flush() {\n if (!this._connected) {\n return;\n }\n\n this._scheduled = false;\n\n this._processNodes();\n }\n\n /** @private */\n _processNodes() {\n const currentNodes = this.slot.assignedNodes({ flatten: true });\n\n let addedNodes = [];\n const removedNodes = [];\n const movedNodes = [];\n\n if (currentNodes.length) {\n addedNodes = currentNodes.filter((node) => !this._storedNodes.includes(node));\n }\n\n if (this._storedNodes.length) {\n this._storedNodes.forEach((node, index) => {\n const idx = currentNodes.indexOf(node);\n if (idx === -1) {\n removedNodes.push(node);\n } else if (idx !== index) {\n movedNodes.push(node);\n }\n });\n }\n\n if (addedNodes.length || removedNodes.length || movedNodes.length) {\n this.callback({ addedNodes, movedNodes, removedNodes });\n }\n\n this._storedNodes = currentNodes;\n }\n}\n","/**\n * @license\n * Copyright (c) 2022 - 2023 Vaadin Ltd.\n * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/\n */\nimport { SlotController } from './slot-controller.js';\n\n/**\n * A controller that manages the slotted tooltip element.\n */\nexport class TooltipController extends SlotController {\n constructor(host) {\n // Do not provide slot factory to create tooltip lazily.\n super(host, 'tooltip');\n\n this.setTarget(host);\n }\n\n /**\n * Override to initialize the newly added custom tooltip.\n *\n * @param {Node} tooltipNode\n * @protected\n * @override\n */\n initCustomNode(tooltipNode) {\n tooltipNode.target = this.target;\n\n if (this.ariaTarget !== undefined) {\n tooltipNode.ariaTarget = this.ariaTarget;\n }\n\n if (this.context !== undefined) {\n tooltipNode.context = this.context;\n }\n\n if (this.manual !== undefined) {\n tooltipNode.manual = this.manual;\n }\n\n if (this.opened !== undefined) {\n tooltipNode.opened = this.opened;\n }\n\n if (this.position !== undefined) {\n tooltipNode._position = this.position;\n }\n\n if (this.shouldShow !== undefined) {\n tooltipNode.shouldShow = this.shouldShow;\n }\n\n this.__notifyChange();\n }\n\n /**\n * Override to notify the host when the tooltip is removed.\n *\n * @param {Node} tooltipNode\n * @protected\n * @override\n */\n teardownNode() {\n this.__notifyChange();\n }\n\n /**\n * Set an HTML element for linking with the tooltip overlay\n * via `aria-describedby` attribute used by screen readers.\n * @param {HTMLElement} ariaTarget\n */\n setAriaTarget(ariaTarget) {\n this.ariaTarget = ariaTarget;\n\n const tooltipNode = this.node;\n if (tooltipNode) {\n tooltipNode.ariaTarget = ariaTarget;\n }\n }\n\n /**\n * Set a context object to be used by generator.\n * @param {object} context\n */\n setContext(context) {\n this.context = context;\n\n const tooltipNode = this.node;\n if (tooltipNode) {\n tooltipNode.context = context;\n }\n }\n\n /**\n * Toggle manual state on the slotted tooltip.\n * @param {boolean} manual\n */\n setManual(manual) {\n this.manual = manual;\n\n const tooltipNode = this.node;\n if (tooltipNode) {\n tooltipNode.manual = manual;\n }\n }\n\n /**\n * Toggle opened state on the slotted tooltip.\n * @param {boolean} opened\n */\n setOpened(opened) {\n this.opened = opened;\n\n const tooltipNode = this.node;\n if (tooltipNode) {\n tooltipNode.opened = opened;\n }\n }\n\n /**\n * Set default position for the slotted tooltip.\n * This can be overridden by setting the position\n * using corresponding property or attribute.\n * @param {string} position\n */\n setPosition(position) {\n this.position = position;\n\n const tooltipNode = this.node;\n if (tooltipNode) {\n tooltipNode._position = position;\n }\n }\n\n /**\n * Set function used to detect whether to show\n * the tooltip based on a condition.\n * @param {Function} shouldShow\n */\n setShouldShow(shouldShow) {\n this.shouldShow = shouldShow;\n\n const tooltipNode = this.node;\n if (tooltipNode) {\n tooltipNode.shouldShow = shouldShow;\n }\n }\n\n /**\n * Set an HTML element to attach the tooltip to.\n * @param {HTMLElement} target\n */\n setTarget(target) {\n this.target = target;\n\n const tooltipNode = this.node;\n if (tooltipNode) {\n tooltipNode.target = target;\n }\n }\n\n /** @private */\n __notifyChange() {\n this.dispatchEvent(new CustomEvent('tooltip-changed', { detail: { node: this.node } }));\n }\n}\n"],"names":["getAncestorRootNodes","node","result","nodeType","Node","DOCUMENT_NODE","push","DOCUMENT_FRAGMENT_NODE","assignedSlot","parentNode","host","getFlattenedElements","elements","localName","assignedElements","children","forEach","elem","getClosestElement","selector","closest","getRootNode","deserializeAttributeValue","value","Set","split","serializeAttributeValue","values","join","addValueToAttribute","element","attr","getAttribute","add","setAttribute","removeValueFromAttribute","delete","size","removeAttribute","isEmptyTextNode","TEXT_NODE","textContent","trim","DisabledMixin","superclass","properties","disabled","type","Boolean","observer","reflectToAttribute","_disabledChanged","this","_setAriaDisabled","click","super","KeyboardMixin","ready","addEventListener","event","_onKeyDown","_onKeyUp","key","_onEnter","_onEscape","_event","uniqueId","generateUniqueId","TabindexMixin","tabindex","Number","_lastTabIndex","oldDisabled","undefined","_tabindexChanged","sizing","SlotController","EventTarget","generateId","slotName","constructor","tagName","config","initializer","multiple","observe","useUniqueId","slotInitializer","nodes","defaultId","hostConnected","initialized","initMultiple","initSingle","observeSlot","getSlotChild","initAddedNode","attachDefaultNode","initNode","getSlotChildren","length","defaultNode","document","createElement","Element","appendChild","Array","from","childNodes","filter","ELEMENT_NODE","slot","initCustomNode","_node","teardownNode","shadowRoot","querySelector","__slotObserver","addedNodes","removedNodes","current","newNodes","includes","remove","FocusMixin","_keyboardActive","e","_shouldSetFocus","_setFocused","_shouldRemoveFocus","disconnectedCallback","hasAttribute","focused","toggleAttribute","SlotObserver","callback","_storedNodes","_connected","_scheduled","_boundSchedule","_schedule","connect","disconnect","removeEventListener","queueMicrotask","flush","_processNodes","currentNodes","assignedNodes","flatten","movedNodes","index","idx","indexOf","TooltipController","setTarget","tooltipNode","target","ariaTarget","context","manual","opened","position","_position","shouldShow","__notifyChange","setAriaTarget","setContext","setManual","setOpened","setPosition","setShouldShow","dispatchEvent","CustomEvent","detail"],"sourceRoot":""}
|