@descope/web-components-ui 1.0.419 → 1.0.421

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.
Files changed (236) hide show
  1. package/README.md +1 -0
  2. package/dist/cjs/index.cjs.js +1439 -1353
  3. package/dist/cjs/index.cjs.js.map +1 -1
  4. package/dist/index.d.ts +0 -2
  5. package/dist/index.esm.js +1983 -1091
  6. package/dist/index.esm.js.map +1 -1
  7. package/dist/umd/1172.js +240 -0
  8. package/dist/umd/{8162.js → 1396.js} +3 -3
  9. package/dist/umd/1402.js +1 -0
  10. package/dist/umd/1484.js +148 -0
  11. package/dist/umd/{5026.js → 189.js} +5 -117
  12. package/dist/umd/{6637.js → 201.js} +5 -5
  13. package/dist/umd/{1053.js → 2159.js} +13 -13
  14. package/dist/umd/2540.js +1 -0
  15. package/dist/umd/2570.js +338 -0
  16. package/dist/umd/2666.js +148 -0
  17. package/dist/umd/3110.js +275 -0
  18. package/dist/umd/{9167.js → 3191.js} +66 -12
  19. package/dist/umd/3437.js +2 -0
  20. package/dist/umd/{6418.js → 3638.js} +2 -2
  21. package/dist/umd/{7212.js → 404.js} +8 -8
  22. package/dist/umd/4114.js +124 -0
  23. package/dist/umd/{7607.js → 4127.js} +9 -9
  24. package/dist/umd/4187.js +2 -0
  25. package/dist/umd/4218.js +129 -0
  26. package/dist/umd/4455.js +422 -0
  27. package/dist/umd/4480.js +1 -1
  28. package/dist/umd/{5086.js → 4554.js} +5 -5
  29. package/dist/umd/{4834.js → 4574.js} +5 -5
  30. package/dist/umd/4619.js +1 -1
  31. package/dist/umd/4902.js +170 -0
  32. package/dist/umd/{5273.js → 507.js} +5 -5
  33. package/dist/umd/5096.js +109 -0
  34. package/dist/umd/5318.js +1 -0
  35. package/dist/umd/5414.js +2 -0
  36. package/dist/umd/5414.js.LICENSE.txt +1 -0
  37. package/dist/umd/{8164.js → 5563.js} +5 -5
  38. package/dist/umd/{7824.js → 7097.js} +5 -117
  39. package/dist/umd/7150.js +2 -0
  40. package/dist/umd/7150.js.LICENSE.txt +485 -0
  41. package/dist/umd/731.js +832 -0
  42. package/dist/umd/742.js +2 -0
  43. package/dist/umd/{351.js → 7979.js} +10 -10
  44. package/dist/umd/8823.js +1 -0
  45. package/dist/umd/{6474.js → 9030.js} +12 -12
  46. package/dist/umd/9243.js +202 -0
  47. package/dist/umd/9243.js.LICENSE.txt +51 -0
  48. package/dist/umd/{5443.js → 9478.js} +5 -117
  49. package/dist/umd/DescopeDev.js +1 -2
  50. package/dist/umd/boolean-fields-descope-checkbox-index-js.js +1 -1
  51. package/dist/umd/boolean-fields-descope-switch-toggle-index-js.js +1 -1
  52. package/dist/umd/button-selection-group-fields-descope-button-multi-selection-group-index-js.js +1 -1
  53. package/dist/umd/button-selection-group-fields-descope-button-selection-group-index-js.js +1 -1
  54. package/dist/umd/button-selection-group-fields-descope-button-selection-group-item-index-js.js +1 -1
  55. package/dist/umd/descope-alert-index-js.js +1 -1
  56. package/dist/umd/descope-apps-list-index-js.js +1 -1
  57. package/dist/umd/descope-avatar.js +1 -0
  58. package/dist/umd/descope-button-index-js.js +4 -116
  59. package/dist/umd/descope-code-snippet-index-js.js +1 -1
  60. package/dist/umd/descope-combo-box-index-js.js +5 -5
  61. package/dist/umd/descope-date-field-descope-calendar-index-js.js +1 -1
  62. package/dist/umd/descope-date-field-index-js.js +1 -1
  63. package/dist/umd/descope-divider-index-js.js +1 -1
  64. package/dist/umd/descope-email-field-index-js.js +4 -4
  65. package/dist/umd/descope-enriched-text-index-js.js +1 -1
  66. package/dist/umd/descope-grid-descope-grid-custom-column-index-js.js +4 -4
  67. package/dist/umd/descope-grid-descope-grid-item-details-column-index-js.js +19 -4
  68. package/dist/umd/descope-grid-descope-grid-item-details-column-index-js.js.LICENSE.txt +12 -0
  69. package/dist/umd/descope-grid-descope-grid-selection-column-index-js.js +1 -1
  70. package/dist/umd/descope-grid-descope-grid-text-column-index-js.js +4 -4
  71. package/dist/umd/descope-grid-index-js.js +1 -1
  72. package/dist/umd/descope-hybrid-field-index-js.js +3 -3
  73. package/dist/umd/descope-icon-index-js.js +1 -1
  74. package/dist/umd/descope-link-index-js.js +1 -1
  75. package/dist/umd/descope-modal-index-js.js +1 -1
  76. package/dist/umd/descope-multi-select-combo-box-index-js.js +1 -1
  77. package/dist/umd/descope-new-password-index-js.js +1 -1
  78. package/dist/umd/descope-notification-descope-notification-card-index-js.js +1 -1
  79. package/dist/umd/descope-notification-index-js.js +1 -1
  80. package/dist/umd/descope-number-field-index-js.js +1 -1
  81. package/dist/umd/descope-passcode-descope-passcode-internal-index-js.js +1 -1
  82. package/dist/umd/descope-passcode-index-js.js +1 -1
  83. package/dist/umd/descope-password-index-js.js +1 -1
  84. package/dist/umd/descope-radio-group-index-js.js +1 -1
  85. package/dist/umd/descope-scopes-list-index-js.js +1 -1
  86. package/dist/umd/descope-security-questions-setup-index-js.js +1 -1
  87. package/dist/umd/descope-security-questions-verify-index-js.js +2 -2
  88. package/dist/umd/descope-text-area-index-js.js +1 -1
  89. package/dist/umd/descope-text-field-index-js.js +2 -2
  90. package/dist/umd/descope-text.js +1 -0
  91. package/dist/umd/descope-third-party-app-logo-index-js.js +1 -1
  92. package/dist/umd/descope-upload-file-index-js.js +1 -1
  93. package/dist/umd/descope-user-attribute-index-js.js +1 -1
  94. package/dist/umd/descope-user-auth-method-index-js.js +1 -1
  95. package/dist/umd/index.js +1 -1
  96. package/dist/umd/mapping-fields-descope-mappings-field-index-js.js +1 -1
  97. package/dist/umd/mapping-fields-descope-saml-group-mappings-index-js.js +1 -1
  98. package/dist/umd/phone-fields-descope-phone-field-descope-phone-field-internal-index-js.js +1 -1
  99. package/dist/umd/phone-fields-descope-phone-field-index-js.js +1 -1
  100. package/dist/umd/phone-fields-descope-phone-input-box-field-descope-phone-input-box-internal-index-js.js +2 -2
  101. package/dist/umd/phone-fields-descope-phone-input-box-field-index-js.js +7 -7
  102. package/node_modules/common/.eslintrc.json +18 -0
  103. package/node_modules/common/README.md +7 -0
  104. package/node_modules/common/package.json +34 -0
  105. package/node_modules/common/project.json +7 -0
  106. package/node_modules/common/src/baseClasses/baseClasses/createBaseClass.js +66 -0
  107. package/node_modules/common/src/baseClasses/baseClasses/createBaseInputClass.js +14 -0
  108. package/node_modules/common/src/baseClasses/baseClasses/createCssVarImageClass.js +55 -0
  109. package/node_modules/common/src/baseClasses/index.js +3 -0
  110. package/node_modules/common/src/componentsHelpers/index.js +95 -0
  111. package/node_modules/common/src/componentsMixins/helpers/mixinsHelpers.js +10 -0
  112. package/node_modules/common/src/componentsMixins/index.js +1 -0
  113. package/node_modules/common/src/componentsMixins/mixins/activableMixin.js +14 -0
  114. package/node_modules/common/src/componentsMixins/mixins/changeMixin.js +22 -0
  115. package/node_modules/common/src/componentsMixins/mixins/componentNameValidationMixin.js +23 -0
  116. package/node_modules/common/src/componentsMixins/mixins/componentsContextMixin.js +12 -0
  117. package/node_modules/common/src/componentsMixins/mixins/createDynamicDataMixin.js +100 -0
  118. package/node_modules/common/src/componentsMixins/mixins/createProxy.js +58 -0
  119. package/node_modules/common/src/componentsMixins/mixins/createStyleMixin/helpers.js +106 -0
  120. package/node_modules/common/src/componentsMixins/mixins/createStyleMixin/index.js +167 -0
  121. package/node_modules/common/src/componentsMixins/mixins/draggableMixin.js +62 -0
  122. package/node_modules/common/src/componentsMixins/mixins/externalInputHelpers.js +93 -0
  123. package/node_modules/common/src/componentsMixins/mixins/externalInputMixin.js +170 -0
  124. package/node_modules/common/src/componentsMixins/mixins/hoverableMixin.js +13 -0
  125. package/node_modules/common/src/componentsMixins/mixins/index.js +14 -0
  126. package/node_modules/common/src/componentsMixins/mixins/inputEventsDispatchingMixin.js +76 -0
  127. package/node_modules/common/src/componentsMixins/mixins/inputValidationMixin.js +210 -0
  128. package/node_modules/common/src/componentsMixins/mixins/lifecycleEventsMixin.js +23 -0
  129. package/node_modules/common/src/componentsMixins/mixins/normalizeBooleanAttributesMixin.js +57 -0
  130. package/node_modules/common/src/componentsMixins/mixins/portalMixin.js +112 -0
  131. package/node_modules/common/src/componentsMixins/mixins/proxyInputMixin.js +242 -0
  132. package/node_modules/common/src/constants.js +4 -0
  133. package/node_modules/common/src/icons/errorMessageIconBase64.js +1 -0
  134. package/node_modules/common/src/sbControls.js +302 -0
  135. package/node_modules/common/src/themeHelpers/colorsHelpers.js +94 -0
  136. package/node_modules/common/src/themeHelpers/index.js +176 -0
  137. package/node_modules/common/src/utils/index.js +68 -0
  138. package/node_modules/descope-avatar/e2e/descope-avatar.spec.ts +54 -0
  139. package/node_modules/descope-avatar/package.json +34 -0
  140. package/node_modules/descope-avatar/project.json +7 -0
  141. package/{src/components/descope-avatar → node_modules/descope-avatar/src/component}/AvatarClass.js +4 -4
  142. package/{src/theme/components/avatar.js → node_modules/descope-avatar/src/theme.js} +3 -3
  143. package/node_modules/descope-avatar/stories/avatar.jpeg +0 -0
  144. package/node_modules/descope-avatar/stories/descope-avatar.stories.js +32 -0
  145. package/node_modules/descope-text/e2e/descope-text.spec.ts +35 -0
  146. package/node_modules/descope-text/package.json +31 -0
  147. package/node_modules/descope-text/project.json +7 -0
  148. package/{src/components/descope-text → node_modules/descope-text/src/component}/TextClass.js +4 -4
  149. package/{src/theme/components/text.js → node_modules/descope-text/src/theme.js} +3 -3
  150. package/node_modules/descope-text/stories/descope-text.stories.js +55 -0
  151. package/node_modules/theme-globals/package.json +16 -0
  152. package/node_modules/theme-globals/project.json +7 -0
  153. package/node_modules/theme-globals/src/index.js +180 -0
  154. package/package.json +54 -43
  155. package/src/components/descope-apps-list/AppsListClass.js +1 -1
  156. package/src/components/descope-apps-list/index.js +2 -2
  157. package/src/components/descope-divider/DividerClass.js +1 -1
  158. package/src/components/descope-divider/index.js +1 -1
  159. package/src/components/descope-link/LinkClass.js +1 -1
  160. package/src/components/descope-link/index.js +1 -1
  161. package/src/components/descope-security-questions-verify/SecurityQuestionsVerifyClass.js +1 -1
  162. package/src/components/descope-security-questions-verify/index.js +1 -1
  163. package/src/components/descope-user-attribute/UserAttributeClass.js +1 -1
  164. package/src/components/descope-user-attribute/index.js +1 -1
  165. package/src/components/descope-user-auth-method/UserAuthMethodClass.js +1 -1
  166. package/src/components/descope-user-auth-method/index.js +1 -1
  167. package/src/components/mapping-fields/descope-mappings-field/MappingsFieldClass.js +1 -1
  168. package/src/components/mapping-fields/descope-mappings-field/index.js +1 -1
  169. package/src/helpers/themeHelpers/index.js +1 -1
  170. package/src/index.cjs.js +2 -2
  171. package/src/index.d.ts +0 -2
  172. package/src/index.js +2 -2
  173. package/src/index.umd.js +3 -1
  174. package/src/mixins/createStyleMixin/index.js +1 -1
  175. package/src/theme/components/alert.js +1 -1
  176. package/src/theme/components/comboBox.js +2 -2
  177. package/src/theme/components/enrichedText.js +1 -1
  178. package/src/theme/components/index.js +2 -2
  179. package/dist/umd/1033.js +0 -2
  180. package/dist/umd/1414.js +0 -352
  181. package/dist/umd/1437.js +0 -422
  182. package/dist/umd/1672.js +0 -1
  183. package/dist/umd/2566.js +0 -2
  184. package/dist/umd/2838.js +0 -2
  185. package/dist/umd/2838.js.LICENSE.txt +0 -1
  186. package/dist/umd/286.js +0 -148
  187. package/dist/umd/2919.js +0 -832
  188. package/dist/umd/3222.js +0 -282
  189. package/dist/umd/3607.js +0 -2
  190. package/dist/umd/3711.js +0 -123
  191. package/dist/umd/5412.js +0 -109
  192. package/dist/umd/650.js +0 -1
  193. package/dist/umd/6726.js +0 -148
  194. package/dist/umd/7407.js +0 -450
  195. package/dist/umd/8980.js +0 -143
  196. package/dist/umd/8980.js.LICENSE.txt +0 -29
  197. package/dist/umd/9632.js +0 -275
  198. package/dist/umd/9878.js +0 -1
  199. package/dist/umd/9895.js +0 -17
  200. package/dist/umd/DescopeDev.js.LICENSE.txt +0 -1
  201. package/dist/umd/bcdfe87ae253c2cf789c9a737f8d8c22.woff +0 -0
  202. package/dist/umd/descope-avatar-index-js.js +0 -1
  203. package/dist/umd/descope-text-index-js.js +0 -1
  204. /package/dist/umd/{1414.js.LICENSE.txt → 1172.js.LICENSE.txt} +0 -0
  205. /package/dist/umd/{1437.js.LICENSE.txt → 1396.js.LICENSE.txt} +0 -0
  206. /package/dist/umd/{6726.js.LICENSE.txt → 1484.js.LICENSE.txt} +0 -0
  207. /package/dist/umd/{286.js.LICENSE.txt → 189.js.LICENSE.txt} +0 -0
  208. /package/dist/umd/{6637.js.LICENSE.txt → 201.js.LICENSE.txt} +0 -0
  209. /package/dist/umd/{1053.js.LICENSE.txt → 2159.js.LICENSE.txt} +0 -0
  210. /package/dist/umd/{351.js.LICENSE.txt → 2570.js.LICENSE.txt} +0 -0
  211. /package/dist/umd/{5026.js.LICENSE.txt → 2666.js.LICENSE.txt} +0 -0
  212. /package/dist/umd/{9632.js.LICENSE.txt → 3110.js.LICENSE.txt} +0 -0
  213. /package/dist/umd/{9167.js.LICENSE.txt → 3191.js.LICENSE.txt} +0 -0
  214. /package/dist/umd/{1033.js.LICENSE.txt → 3437.js.LICENSE.txt} +0 -0
  215. /package/dist/umd/{6418.js.LICENSE.txt → 3638.js.LICENSE.txt} +0 -0
  216. /package/dist/umd/{7212.js.LICENSE.txt → 404.js.LICENSE.txt} +0 -0
  217. /package/dist/umd/{3711.js.LICENSE.txt → 4114.js.LICENSE.txt} +0 -0
  218. /package/dist/umd/{7607.js.LICENSE.txt → 4127.js.LICENSE.txt} +0 -0
  219. /package/dist/umd/{3607.js.LICENSE.txt → 4187.js.LICENSE.txt} +0 -0
  220. /package/dist/umd/{3222.js.LICENSE.txt → 4218.js.LICENSE.txt} +0 -0
  221. /package/dist/umd/{5086.js.LICENSE.txt → 4455.js.LICENSE.txt} +0 -0
  222. /package/dist/umd/{5273.js.LICENSE.txt → 4554.js.LICENSE.txt} +0 -0
  223. /package/dist/umd/{4834.js.LICENSE.txt → 4574.js.LICENSE.txt} +0 -0
  224. /package/dist/umd/{9895.js.LICENSE.txt → 4902.js.LICENSE.txt} +0 -0
  225. /package/dist/umd/{5443.js.LICENSE.txt → 507.js.LICENSE.txt} +0 -0
  226. /package/dist/umd/{5412.js.LICENSE.txt → 5096.js.LICENSE.txt} +0 -0
  227. /package/dist/umd/{8164.js.LICENSE.txt → 5563.js.LICENSE.txt} +0 -0
  228. /package/dist/umd/{7407.js.LICENSE.txt → 7097.js.LICENSE.txt} +0 -0
  229. /package/dist/umd/{2919.js.LICENSE.txt → 731.js.LICENSE.txt} +0 -0
  230. /package/dist/umd/{2566.js.LICENSE.txt → 742.js.LICENSE.txt} +0 -0
  231. /package/dist/umd/{7824.js.LICENSE.txt → 7979.js.LICENSE.txt} +0 -0
  232. /package/dist/umd/{6474.js.LICENSE.txt → 9030.js.LICENSE.txt} +0 -0
  233. /package/dist/umd/{8162.js.LICENSE.txt → 9478.js.LICENSE.txt} +0 -0
  234. /package/{src/helpers → node_modules/common/src}/themeHelpers/componentsThemeManager.js +0 -0
  235. /package/{src/components/descope-avatar → node_modules/descope-avatar/src/component}/index.js +0 -0
  236. /package/{src/components/descope-text → node_modules/descope-text/src/component}/index.js +0 -0
@@ -0,0 +1,422 @@
1
+ /*! For license information please see 4455.js.LICENSE.txt */
2
+ "use strict";(self.webpackChunk_descope_web_components_ui=self.webpackChunk_descope_web_components_ui||[]).push([[4455],{51919:(e,t,o)=>{o.d(t,{Qj:()=>h,aJ:()=>s,dw:()=>i,iq:()=>u,n8:()=>d});let r=!1;function i(){let e=document.activeElement||document.body;for(;e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function s(){return r}function n(e){const t=e.style;if("hidden"===t.visibility||"none"===t.display)return!0;const o=window.getComputedStyle(e);return"hidden"===o.visibility||"none"===o.display}function a(e,t){const o=Math.max(e.tabIndex,0),r=Math.max(t.tabIndex,0);return 0===o||0===r?r>o:o>r}function l(e){const t=e.length;if(t<2)return e;const o=Math.ceil(t/2);return function(e,t){const o=[];for(;e.length>0&&t.length>0;)a(e[0],t[0])?o.push(t.shift()):o.push(e.shift());return o.concat(e,t)}(l(e.slice(0,o)),l(e.slice(o)))}function d(e){return null===e.offsetParent&&0===e.clientWidth&&0===e.clientHeight||n(e)}function h(e){return e.getRootNode().activeElement===e}function c(e,t){if(e.nodeType!==Node.ELEMENT_NODE||n(e))return!1;const o=e,r=function(e){if(!function(e){return!e.matches('[tabindex="-1"]')&&(e.matches("input, select, textarea, button, object")?e.matches(":not([disabled])"):e.matches("a[href], area[href], iframe, [tabindex], [contentEditable]"))}(e))return-1;const t=e.getAttribute("tabindex")||0;return Number(t)}(o);let i=r>0;r>=0&&t.push(o);let s=[];return s="slot"===o.localName?o.assignedNodes({flatten:!0}):(o.shadowRoot||o).children,[...s].forEach((e=>{i=c(e,t)||i})),i}function u(e){const t=[];return c(e,t)?l(t):t}window.addEventListener("keydown",(()=>{r=!0}),{capture:!0}),window.addEventListener("mousedown",(()=>{r=!1}),{capture:!0})},14310:(e,t,o)=>{o.d(t,{CI:()=>c,H8:()=>n,gm:()=>a,m0:()=>s,nr:()=>h,un:()=>d});const r=e=>e.test(navigator.userAgent),i=e=>e.test(navigator.platform),s=r(/Android/u),n=r(/Chrome/u)&&/Google Inc/u.test(navigator.vendor),a=r(/Firefox/u),l=i(/^iPad/u)||i(/^Mac/u)&&navigator.maxTouchPoints>1,d=i(/^iPhone/u)||l,h=r(/^((?!chrome|android).)*safari/iu),c=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}})()},56096:(e,t,o)=>{o.d(t,{w:()=>r});const r=(0,o(75035).y)((e=>"function"==typeof e.prototype.addController?e:class extends e{constructor(){super(),this.__controllers=new Set}connectedCallback(){super.connectedCallback(),this.__controllers.forEach((e=>{e.hostConnected&&e.hostConnected()}))}disconnectedCallback(){super.disconnectedCallback(),this.__controllers.forEach((e=>{e.hostDisconnected&&e.hostDisconnected()}))}addController(e){this.__controllers.add(e),void 0!==this.$&&this.isConnected&&e.hostConnected&&e.hostConnected()}removeController(e){this.__controllers.delete(e)}}))},15685:(e,t,o)=>{function r(e){window.Vaadin&&window.Vaadin.templateRendererCallback?window.Vaadin.templateRendererCallback(e):e.querySelector("template")&&console.warn(`WARNING: <template> inside <${e.localName}> is no longer supported. Import @vaadin/polymer-legacy-adapter/template-renderer.js to enable compatibility.`)}o.d(t,{h:()=>r})},75032:(e,t,o)=>{o(77347),o(19155);var r=o(22401),i=o(57224);const s=i.AH`
3
+ /* Optical centering */
4
+ :host::before,
5
+ :host::after {
6
+ content: '';
7
+ flex-basis: 0;
8
+ flex-grow: 1;
9
+ }
10
+
11
+ :host::after {
12
+ flex-grow: 1.1;
13
+ }
14
+
15
+ [part='overlay'] {
16
+ border-radius: var(--lumo-border-radius-l);
17
+ box-shadow: 0 0 0 1px var(--lumo-shade-5pct), var(--lumo-box-shadow-xl);
18
+ background-image: none;
19
+ outline: none;
20
+ -webkit-tap-highlight-color: transparent;
21
+ }
22
+
23
+ [part='content'] {
24
+ padding: var(--lumo-space-l);
25
+ }
26
+
27
+ :host(:is([has-header], [has-title])) [part='header'] + [part='content'] {
28
+ padding-top: 0;
29
+ }
30
+
31
+ [part='header'],
32
+ [part='header-content'],
33
+ [part='footer'] {
34
+ gap: var(--lumo-space-xs) var(--lumo-space-s);
35
+ line-height: var(--lumo-line-height-s);
36
+ }
37
+
38
+ [part='header'] {
39
+ padding: var(--lumo-space-m);
40
+ background-color: var(--lumo-base-color);
41
+ border-radius: var(--lumo-border-radius-l) var(--lumo-border-radius-l) 0 0; /* Needed for Safari */
42
+ }
43
+
44
+ [part='footer'] {
45
+ padding: var(--lumo-space-s) var(--lumo-space-m);
46
+ background-color: var(--lumo-contrast-5pct);
47
+ border-radius: 0 0 var(--lumo-border-radius-l) var(--lumo-border-radius-l); /* Needed for Safari */
48
+ }
49
+
50
+ [part='title'] {
51
+ font-size: var(--lumo-font-size-xl);
52
+ font-weight: 600;
53
+ color: var(--lumo-header-text-color);
54
+ margin-inline-start: calc(var(--lumo-space-l) - var(--lumo-space-m));
55
+ }
56
+
57
+ /* No padding */
58
+ :host([theme~='no-padding']) [part='content'] {
59
+ padding: 0 !important;
60
+ }
61
+
62
+ @media (min-height: 320px) {
63
+ :host([overflow~='top']) [part='header'] {
64
+ box-shadow: 0 1px 0 0 var(--lumo-contrast-10pct);
65
+ }
66
+ }
67
+
68
+ /* Animations */
69
+
70
+ :host([opening]),
71
+ :host([closing]) {
72
+ animation: 0.25s lumo-overlay-dummy-animation;
73
+ }
74
+
75
+ :host([opening]) [part='overlay'] {
76
+ animation: 0.12s 0.05s vaadin-dialog-enter cubic-bezier(0.215, 0.61, 0.355, 1) both;
77
+ }
78
+
79
+ @keyframes vaadin-dialog-enter {
80
+ 0% {
81
+ opacity: 0;
82
+ transform: scale(0.95);
83
+ }
84
+ }
85
+
86
+ :host([closing]) [part='overlay'] {
87
+ animation: 0.1s 0.03s vaadin-dialog-exit cubic-bezier(0.55, 0.055, 0.675, 0.19) both;
88
+ }
89
+
90
+ :host([closing]) [part='backdrop'] {
91
+ animation-delay: 0.05s;
92
+ }
93
+
94
+ @keyframes vaadin-dialog-exit {
95
+ 100% {
96
+ opacity: 0;
97
+ transform: scale(1.02);
98
+ }
99
+ }
100
+ `;(0,i.SF)("vaadin-dialog-overlay",[r.L,s],{moduleId:"lumo-dialog"});var n=o(98633),a=o(65211),l=o(38785),d=o(31146),h=o(6019);const c=e=>class extends((0,h.c)(e)){static get properties(){return{headerTitle:{type:String},headerRenderer:{type:Object},footerRenderer:{type:Object}}}static get observers(){return["_headerFooterRendererChange(headerRenderer, footerRenderer, opened)","_headerTitleChanged(headerTitle, opened)"]}ready(){super.ready(),this.__resizeObserver=new ResizeObserver((()=>{this.__updateOverflow()})),this.__resizeObserver.observe(this.$.resizerContainer),this.$.content.addEventListener("scroll",(()=>{this.__updateOverflow()}))}__createContainer(e){const t=document.createElement("div");return t.setAttribute("slot",e),t}__clearContainer(e){e.innerHTML="",delete e._$litPart$}__initContainer(e,t){return e?this.__clearContainer(e):e=this.__createContainer(t),e}_headerFooterRendererChange(e,t,o){const r=this.__oldHeaderRenderer!==e;this.__oldHeaderRenderer=e;const i=this.__oldFooterRenderer!==t;this.__oldFooterRenderer=t;const s=this._oldOpenedFooterHeader!==o;this._oldOpenedFooterHeader=o,this.toggleAttribute("has-header",!!e),this.toggleAttribute("has-footer",!!t),r&&(e?this.headerContainer=this.__initContainer(this.headerContainer,"header-content"):this.headerContainer&&(this.headerContainer.remove(),this.headerContainer=null,this.__updateOverflow())),i&&(t?this.footerContainer=this.__initContainer(this.footerContainer,"footer"):this.footerContainer&&(this.footerContainer.remove(),this.footerContainer=null,this.__updateOverflow())),(e&&(r||s)||t&&(i||s))&&o&&this.requestContentUpdate()}_headerTitleChanged(e,t){this.toggleAttribute("has-title",!!e),t&&(e||this._oldHeaderTitle)&&this.requestContentUpdate(),this._oldHeaderTitle=e}_headerTitleRenderer(){this.headerTitle?(this.headerTitleElement||(this.headerTitleElement=document.createElement("h2"),this.headerTitleElement.setAttribute("slot","title"),this.headerTitleElement.classList.add("draggable")),this.appendChild(this.headerTitleElement),this.headerTitleElement.textContent=this.headerTitle):this.headerTitleElement&&(this.headerTitleElement.remove(),this.headerTitleElement=null)}requestContentUpdate(){super.requestContentUpdate(),this.headerContainer&&(this.headerContainer.parentElement||this.appendChild(this.headerContainer),this.headerRenderer&&this.headerRenderer.call(this.owner,this.headerContainer,this.owner)),this.footerContainer&&(this.footerContainer.parentElement||this.appendChild(this.footerContainer),this.footerRenderer&&this.footerRenderer.call(this.owner,this.footerContainer,this.owner)),this._headerTitleRenderer(),this.__updateOverflow()}setBounds(e){const t=this.$.overlay,o={...e};"absolute"!==t.style.position&&(t.style.position="absolute",this.setAttribute("has-bounds-set","")),Object.keys(o).forEach((e=>{"number"==typeof o[e]&&(o[e]=`${o[e]}px`)})),Object.assign(t.style,o)}getBounds(){const e=this.$.overlay.getBoundingClientRect(),t=this.getBoundingClientRect();return{top:e.top-t.top,left:e.left-t.left,width:e.width,height:e.height}}__updateOverflow(){let e="";if(this.hasAttribute("has-header")||this.hasAttribute("has-footer")||this.headerTitle){const t=this.$.content;t.scrollTop>0&&(e+=" top"),t.scrollTop<t.scrollHeight-t.clientHeight&&(e+=" bottom")}const t=e.trim();t.length>0&&this.getAttribute("overflow")!==t?this.setAttribute("overflow",t):0===t.length&&this.hasAttribute("overflow")&&this.removeAttribute("overflow")}};var u=o(44720);const p=u.AH`
101
+ [part='header'],
102
+ [part='header-content'],
103
+ [part='footer'] {
104
+ display: flex;
105
+ align-items: center;
106
+ flex-wrap: wrap;
107
+ flex: none;
108
+ pointer-events: none;
109
+ z-index: 1;
110
+ }
111
+
112
+ [part='header'] {
113
+ flex-wrap: nowrap;
114
+ }
115
+
116
+ ::slotted([slot='header-content']),
117
+ ::slotted([slot='title']),
118
+ ::slotted([slot='footer']) {
119
+ display: contents;
120
+ pointer-events: auto;
121
+ }
122
+
123
+ ::slotted([slot='title']) {
124
+ font: inherit !important;
125
+ overflow-wrap: anywhere;
126
+ }
127
+
128
+ [part='header-content'] {
129
+ flex: 1;
130
+ }
131
+
132
+ :host([has-title]) [part='header-content'],
133
+ [part='footer'] {
134
+ justify-content: flex-end;
135
+ }
136
+
137
+ :host(:not([has-title]):not([has-header])) [part='header'],
138
+ :host(:not([has-header])) [part='header-content'],
139
+ :host(:not([has-title])) [part='title'],
140
+ :host(:not([has-footer])) [part='footer'] {
141
+ display: none !important;
142
+ }
143
+
144
+ :host(:is([has-title], [has-header], [has-footer])) [part='content'] {
145
+ height: auto;
146
+ }
147
+
148
+ @media (min-height: 320px) {
149
+ :host(:is([has-title], [has-header], [has-footer])) .resizer-container {
150
+ overflow: hidden;
151
+ display: flex;
152
+ flex-direction: column;
153
+ }
154
+
155
+ :host(:is([has-title], [has-header], [has-footer])) [part='content'] {
156
+ flex: 1;
157
+ overflow: auto;
158
+ }
159
+ }
160
+
161
+ /*
162
+ NOTE(platosha): Make some min-width to prevent collapsing of the content
163
+ taking the parent width, e. g., <vaadin-grid> and such.
164
+ */
165
+ [part='content'] {
166
+ min-width: 12em; /* matches the default <vaadin-text-field> width */
167
+ }
168
+
169
+ :host([has-bounds-set]) [part='overlay'] {
170
+ max-width: none;
171
+ }
172
+
173
+ @media (forced-colors: active) {
174
+ [part='overlay'] {
175
+ outline: 3px solid !important;
176
+ }
177
+ }
178
+ `,v=u.AH`
179
+ [part='overlay'] {
180
+ position: relative;
181
+ overflow: visible;
182
+ max-height: 100%;
183
+ display: flex;
184
+ }
185
+
186
+ [part='content'] {
187
+ box-sizing: border-box;
188
+ height: 100%;
189
+ }
190
+
191
+ .resizer-container {
192
+ overflow: auto;
193
+ flex-grow: 1;
194
+ border-radius: inherit; /* prevent child elements being drawn outside part=overlay */
195
+ }
196
+
197
+ [part='overlay'][style] .resizer-container {
198
+ min-height: 100%;
199
+ width: 100%;
200
+ }
201
+
202
+ :host(:not([resizable])) .resizer {
203
+ display: none;
204
+ }
205
+
206
+ :host([resizable]) [part='title'] {
207
+ cursor: move;
208
+ -webkit-user-select: none;
209
+ user-select: none;
210
+ }
211
+
212
+ .resizer {
213
+ position: absolute;
214
+ height: 16px;
215
+ width: 16px;
216
+ }
217
+
218
+ .resizer.edge {
219
+ height: 8px;
220
+ width: 8px;
221
+ inset: -4px;
222
+ }
223
+
224
+ .resizer.edge.n {
225
+ width: auto;
226
+ bottom: auto;
227
+ cursor: ns-resize;
228
+ }
229
+
230
+ .resizer.ne {
231
+ top: -4px;
232
+ right: -4px;
233
+ cursor: nesw-resize;
234
+ }
235
+
236
+ .resizer.edge.e {
237
+ height: auto;
238
+ left: auto;
239
+ cursor: ew-resize;
240
+ }
241
+
242
+ .resizer.se {
243
+ bottom: -4px;
244
+ right: -4px;
245
+ cursor: nwse-resize;
246
+ }
247
+
248
+ .resizer.edge.s {
249
+ width: auto;
250
+ top: auto;
251
+ cursor: ns-resize;
252
+ }
253
+
254
+ .resizer.sw {
255
+ bottom: -4px;
256
+ left: -4px;
257
+ cursor: nesw-resize;
258
+ }
259
+
260
+ .resizer.edge.w {
261
+ height: auto;
262
+ right: auto;
263
+ cursor: ew-resize;
264
+ }
265
+
266
+ .resizer.nw {
267
+ top: -4px;
268
+ left: -4px;
269
+ cursor: nwse-resize;
270
+ }
271
+ `;(0,i.SF)("vaadin-dialog-overlay",[d.B,p,v],{moduleId:"vaadin-dialog-overlay-styles"});class m extends(c((0,l.v)((0,i.cp)(n.Pu)))){static get is(){return"vaadin-dialog-overlay"}static get template(){return n.qy`
272
+ <div id="backdrop" part="backdrop" hidden$="[[!withBackdrop]]"></div>
273
+ <div part="overlay" id="overlay" tabindex="0">
274
+ <section id="resizerContainer" class="resizer-container">
275
+ <header part="header">
276
+ <div part="title"><slot name="title"></slot></div>
277
+ <div part="header-content"><slot name="header-content"></slot></div>
278
+ </header>
279
+ <div part="content" id="content"><slot></slot></div>
280
+ <footer part="footer"><slot name="footer"></slot></footer>
281
+ </section>
282
+ </div>
283
+ `}}(0,a.X)(m);var g=o(27150),f=o(54243),y=o(15685),_=o(82543);const b=e=>class extends e{static get properties(){return{opened:{type:Boolean,value:!1,notify:!0},noCloseOnOutsideClick:{type:Boolean,value:!1},noCloseOnEsc:{type:Boolean,value:!1},modeless:{type:Boolean,value:!1}}}ready(){super.ready();const e=this.$.overlay;e.addEventListener("vaadin-overlay-outside-click",this._handleOutsideClick.bind(this)),e.addEventListener("vaadin-overlay-escape-press",this._handleEscPress.bind(this)),this._overlayElement=e}connectedCallback(){super.connectedCallback(),this.__restoreOpened&&(this.opened=!0)}disconnectedCallback(){super.disconnectedCallback(),setTimeout((()=>{this.isConnected||(this.__restoreOpened=this.opened,this.opened=!1)}))}_onOverlayOpened(e){!1===e.detail.value&&(this.opened=!1)}_handleOutsideClick(e){this.noCloseOnOutsideClick&&e.preventDefault()}_handleEscPress(e){this.noCloseOnEsc&&e.preventDefault()}_bringOverlayToFront(){this.modeless&&this._overlayElement.bringToFront()}};var w=o(14310);function z(e){return e.touches?e.touches[0]:e}function C(e){return e.clientX>=0&&e.clientX<=window.innerWidth&&e.clientY>=0&&e.clientY<=window.innerHeight}const x=e=>class extends e{static get properties(){return{draggable:{type:Boolean,value:!1,reflectToAttribute:!0},_touchDevice:{type:Boolean,value:w.CI},__dragHandleClassName:{type:String}}}async ready(){super.ready(),this._originalBounds={},this._originalMouseCoords={},this._startDrag=this._startDrag.bind(this),this._drag=this._drag.bind(this),this._stopDrag=this._stopDrag.bind(this),await new Promise(requestAnimationFrame),this.$.overlay.$.overlay.addEventListener("mousedown",this._startDrag),this.$.overlay.$.overlay.addEventListener("touchstart",this._startDrag)}_startDrag(e){if(!("touchstart"===e.type&&e.touches.length>1)&&this.draggable&&(0===e.button||e.touches)){const t=this.$.overlay.$.resizerContainer,o=e.target===t,r=e.offsetX>t.clientWidth||e.offsetY>t.clientHeight,i=e.target===this.$.overlay.$.content,s=e.composedPath().some(((e,t)=>{if(!e.classList)return!1;const o=e.classList.contains(this.__dragHandleClassName||"draggable"),r=e.classList.contains("draggable-leaf-only"),i=0===t;return r&&i||o&&(!r||i)}));if(o&&!r||i||s){s||e.preventDefault(),this._originalBounds=this.$.overlay.getBounds();const t=z(e);this._originalMouseCoords={top:t.pageY,left:t.pageX},window.addEventListener("mouseup",this._stopDrag),window.addEventListener("touchend",this._stopDrag),window.addEventListener("mousemove",this._drag),window.addEventListener("touchmove",this._drag),"absolute"!==this.$.overlay.$.overlay.style.position&&this.$.overlay.setBounds(this._originalBounds)}}}_drag(e){const t=z(e);if(C(t)){const e=this._originalBounds.top+(t.pageY-this._originalMouseCoords.top),o=this._originalBounds.left+(t.pageX-this._originalMouseCoords.left);this.$.overlay.setBounds({top:e,left:o})}}_stopDrag(){window.removeEventListener("mouseup",this._stopDrag),window.removeEventListener("touchend",this._stopDrag),window.removeEventListener("mousemove",this._drag),window.removeEventListener("touchmove",this._drag)}},E=e=>class extends e{static get properties(){return{renderer:{type:Object},headerTitle:String,headerRenderer:{type:Object},footerRenderer:{type:Object}}}requestContentUpdate(){this._overlayElement&&this._overlayElement.requestContentUpdate()}},L=e=>class extends e{static get properties(){return{resizable:{type:Boolean,value:!1,reflectToAttribute:!0}}}async ready(){super.ready(),this._originalBounds={},this._originalMouseCoords={},this._resizeListeners={start:{},resize:{},stop:{}},await new Promise(requestAnimationFrame),this._addResizeListeners()}_addResizeListeners(){["n","e","s","w","nw","ne","se","sw"].forEach((e=>{const t=document.createElement("div");this._resizeListeners.start[e]=t=>this._startResize(t,e),this._resizeListeners.resize[e]=t=>this._resize(t,e),this._resizeListeners.stop[e]=()=>this._stopResize(e),1===e.length&&t.classList.add("edge"),t.classList.add("resizer"),t.classList.add(e),t.addEventListener("mousedown",this._resizeListeners.start[e]),t.addEventListener("touchstart",this._resizeListeners.start[e]),this.$.overlay.$.resizerContainer.appendChild(t)}))}_startResize(e,t){if(!("touchstart"===e.type&&e.touches.length>1)&&(0===e.button||e.touches)){e.preventDefault(),this._originalBounds=this.$.overlay.getBounds();const o=z(e);this._originalMouseCoords={top:o.pageY,left:o.pageX},window.addEventListener("mousemove",this._resizeListeners.resize[t]),window.addEventListener("touchmove",this._resizeListeners.resize[t]),window.addEventListener("mouseup",this._resizeListeners.stop[t]),window.addEventListener("touchend",this._resizeListeners.stop[t]),"absolute"!==this.$.overlay.$.overlay.style.position&&this.$.overlay.setBounds(this._originalBounds)}}_resize(e,t){const o=z(e);if(C(o)){const e=40;t.split("").forEach((t=>{switch(t){case"n":{const t=this._originalBounds.height-(o.pageY-this._originalMouseCoords.top),r=this._originalBounds.top+(o.pageY-this._originalMouseCoords.top);t>e&&this.$.overlay.setBounds({top:r,height:t});break}case"e":{const t=this._originalBounds.width+(o.pageX-this._originalMouseCoords.left);t>e&&this.$.overlay.setBounds({width:t});break}case"s":{const t=this._originalBounds.height+(o.pageY-this._originalMouseCoords.top);t>e&&this.$.overlay.setBounds({height:t});break}case"w":{const t=this._originalBounds.width-(o.pageX-this._originalMouseCoords.left),r=this._originalBounds.left+(o.pageX-this._originalMouseCoords.left);t>e&&this.$.overlay.setBounds({left:r,width:t});break}}}))}}_stopResize(e){window.removeEventListener("mousemove",this._resizeListeners.resize[e]),window.removeEventListener("touchmove",this._resizeListeners.resize[e]),window.removeEventListener("mouseup",this._resizeListeners.stop[e]),window.removeEventListener("touchend",this._resizeListeners.stop[e]),this.dispatchEvent(new CustomEvent("resize",{detail:this._getResizeDimensions()}))}_getResizeDimensions(){const e=this.$.overlay.$.resizerContainer.scrollTop,{width:t,height:o}=getComputedStyle(this.$.overlay.$.overlay),r=this.$.overlay.$.content;r.setAttribute("style","position: absolute; top: 0; right: 0; bottom: 0; left: 0; box-sizing: content-box; height: auto;");const{width:i,height:s}=getComputedStyle(r);return r.removeAttribute("style"),this.$.overlay.$.resizerContainer.scrollTop=e,{width:t,height:o,contentWidth:i,contentHeight:s}}};class k extends(x(L(E(b((0,f.i)((0,_._)((0,g.q)(n.Pu)))))))){static get template(){return n.qy`
284
+ <style>
285
+ :host {
286
+ display: none !important;
287
+ }
288
+ </style>
289
+
290
+ <vaadin-dialog-overlay
291
+ id="overlay"
292
+ header-title="[[headerTitle]]"
293
+ on-opened-changed="_onOverlayOpened"
294
+ on-mousedown="_bringOverlayToFront"
295
+ on-touchstart="_bringOverlayToFront"
296
+ theme$="[[_theme]]"
297
+ modeless="[[modeless]]"
298
+ with-backdrop="[[!modeless]]"
299
+ resizable$="[[resizable]]"
300
+ restore-focus-on-close
301
+ focus-trap
302
+ ></vaadin-dialog-overlay>
303
+ `}static get is(){return"vaadin-dialog"}static get properties(){return{ariaLabel:{type:String,value:""}}}static get observers(){return["_openedChanged(opened)","_ariaLabelChanged(ariaLabel, headerTitle)","_rendererChanged(renderer, headerRenderer, footerRenderer)"]}ready(){super.ready(),this._overlayElement.setAttribute("role","dialog"),(0,y.h)(this)}_rendererChanged(e,t,o){this.$.overlay.setProperties({owner:this,renderer:e,headerRenderer:t,footerRenderer:o})}_openedChanged(e){this.$.overlay.opened=e}_ariaLabelChanged(e,t){e||t?this.$.overlay.setAttribute("aria-label",e||t):this.$.overlay.removeAttribute("aria-label")}}(0,a.X)(k)},10535:(e,t,o)=>{o.d(t,{h:()=>h});var r=o(98633),i=o(65211),s=o(38785),n=o(15685),a=o(57224),l=o(6019),d=o(31146);(0,a.SF)("vaadin-overlay",d.B,{moduleId:"vaadin-overlay-styles"});class h extends((0,l.c)((0,a.cp)((0,s.v)(r.Pu)))){static get template(){return r.qy`
304
+ <div id="backdrop" part="backdrop" hidden$="[[!withBackdrop]]"></div>
305
+ <div part="overlay" id="overlay" tabindex="0">
306
+ <div part="content" id="content">
307
+ <slot></slot>
308
+ </div>
309
+ </div>
310
+ `}static get is(){return"vaadin-overlay"}ready(){super.ready(),(0,n.h)(this)}}(0,i.X)(h)},77347:(e,t,o)=>{var r=o(22401);(0,o(57224).SF)("vaadin-overlay",r.L,{moduleId:"lumo-vaadin-overlay"}),o(10535)},52301:(e,t,o)=>{o(48202);var r=o(57224),i=o(46131);const s=r.AH`
311
+ :host {
312
+ /* prettier-ignore */
313
+ --lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
314
+
315
+ /* Font sizes */
316
+ --lumo-font-size-xxs: 0.75rem;
317
+ --lumo-font-size-xs: 0.8125rem;
318
+ --lumo-font-size-s: 0.875rem;
319
+ --lumo-font-size-m: 1rem;
320
+ --lumo-font-size-l: 1.125rem;
321
+ --lumo-font-size-xl: 1.375rem;
322
+ --lumo-font-size-xxl: 1.75rem;
323
+ --lumo-font-size-xxxl: 2.5rem;
324
+
325
+ /* Line heights */
326
+ --lumo-line-height-xs: 1.25;
327
+ --lumo-line-height-s: 1.375;
328
+ --lumo-line-height-m: 1.625;
329
+ }
330
+ `,n=r.AH`
331
+ body,
332
+ :host {
333
+ font-family: var(--lumo-font-family);
334
+ font-size: var(--lumo-font-size-m);
335
+ line-height: var(--lumo-line-height-m);
336
+ -webkit-text-size-adjust: 100%;
337
+ -webkit-font-smoothing: antialiased;
338
+ -moz-osx-font-smoothing: grayscale;
339
+ }
340
+
341
+ small,
342
+ [theme~='font-size-s'] {
343
+ font-size: var(--lumo-font-size-s);
344
+ line-height: var(--lumo-line-height-s);
345
+ }
346
+
347
+ [theme~='font-size-xs'] {
348
+ font-size: var(--lumo-font-size-xs);
349
+ line-height: var(--lumo-line-height-xs);
350
+ }
351
+
352
+ :where(h1, h2, h3, h4, h5, h6) {
353
+ font-weight: 600;
354
+ line-height: var(--lumo-line-height-xs);
355
+ margin-block: 0;
356
+ }
357
+
358
+ :where(h1) {
359
+ font-size: var(--lumo-font-size-xxxl);
360
+ }
361
+
362
+ :where(h2) {
363
+ font-size: var(--lumo-font-size-xxl);
364
+ }
365
+
366
+ :where(h3) {
367
+ font-size: var(--lumo-font-size-xl);
368
+ }
369
+
370
+ :where(h4) {
371
+ font-size: var(--lumo-font-size-l);
372
+ }
373
+
374
+ :where(h5) {
375
+ font-size: var(--lumo-font-size-m);
376
+ }
377
+
378
+ :where(h6) {
379
+ font-size: var(--lumo-font-size-xs);
380
+ text-transform: uppercase;
381
+ letter-spacing: 0.03em;
382
+ }
383
+
384
+ p,
385
+ blockquote {
386
+ margin-top: 0.5em;
387
+ margin-bottom: 0.75em;
388
+ }
389
+
390
+ a {
391
+ text-decoration: none;
392
+ }
393
+
394
+ a:where(:any-link):hover {
395
+ text-decoration: underline;
396
+ }
397
+
398
+ hr {
399
+ display: block;
400
+ align-self: stretch;
401
+ height: 1px;
402
+ border: 0;
403
+ padding: 0;
404
+ margin: var(--lumo-space-s) calc(var(--lumo-border-radius-m) / 2);
405
+ background-color: var(--lumo-contrast-10pct);
406
+ }
407
+
408
+ blockquote {
409
+ border-left: 2px solid var(--lumo-contrast-30pct);
410
+ }
411
+
412
+ b,
413
+ strong {
414
+ font-weight: 600;
415
+ }
416
+
417
+ /* RTL specific styles */
418
+ blockquote[dir='rtl'] {
419
+ border-left: none;
420
+ border-right: 2px solid var(--lumo-contrast-30pct);
421
+ }
422
+ `;(0,r.SF)("",n,{moduleId:"lumo-typography"}),(0,i.q)("typography-props",s)}}]);
package/dist/umd/4480.js CHANGED
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_descope_web_components_ui=self.webpackChunk_descope_web_components_ui||[]).push([[4480],{78313:(e,t,r)=>{r.d(t,{C:()=>v,T:()=>l});var o=r(7138),n=r(14944),a=r(33177),i=r(94619);const l=(0,n.xE)("combo-box"),{host:s,inputField:d,inputElement:p,placeholder:c,toggle:u,clearButton:b,label:h,requiredIndicator:m,helperText:y,errorMessage:g}={host:{selector:()=>":host"},inputField:{selector:"::part(input-field)"},inputElement:{selector:"input"},placeholder:{selector:"> input:placeholder-shown"},toggle:{selector:"::part(toggle-button)"},clearButton:{selector:"::part(clear-button)"},label:{selector:"::part(label)"},requiredIndicator:{selector:"[required]::part(required-indicator)::after"},helperText:{selector:"::part(helper-text)"},errorMessage:{selector:"::part(error-message)"}},v=(0,o.Zz)((0,i.RF)({mappings:{hostWidth:{...s,property:"width"},hostDirection:{...s,property:"direction"},fontSize:[{},s],fontFamily:[h,c,d,y,g],labelFontSize:{...h,property:"font-size"},labelFontWeight:{...h,property:"font-weight"},labelTextColor:[{...h,property:"color"},{...m,property:"color"}],errorMessageTextColor:{...g,property:"color"},errorMessageIcon:{...g,property:"background-image"},errorMessageIconSize:{...g,property:"background-size"},errorMessageIconPadding:{...g,property:"padding-inline-start"},errorMessageIconRepeat:{...g,property:"background-repeat"},errorMessageIconPosition:{...g,property:"background-position"},inputHeight:{...d,property:"height"},inputBackgroundColor:{...d,property:"background-color"},inputBorderColor:{...d,property:"border-color"},inputBorderWidth:{...d,property:"border-width"},inputBorderStyle:{...d,property:"border-style"},inputBorderRadius:{...d,property:"border-radius"},labelRequiredIndicator:{...m,property:"content"},inputValueTextColor:{...d,property:"color"},inputPlaceholderTextColor:{...c,property:"color"},inputDropdownButtonCursor:[{...u,property:"cursor"},{...b,property:"cursor"}],inputDropdownButtonColor:[{...u,property:"color"},{...b,property:"color"}],inputDropdownButtonSize:[{...u,property:"font-size"},{...b,property:"font-size"}],inputDropdownButtonOffset:[{...u,property:"margin-right"},{...u,property:"margin-left"}],inputOutlineColor:{...d,property:"outline-color"},inputOutlineWidth:{...d,property:"outline-width"},inputOutlineStyle:{...d,property:"outline-style"},inputOutlineOffset:{...d,property:"outline-offset"},inputHorizontalPadding:[{...p,property:"padding-left"},{...p,property:"padding-right"}],labelPosition:{...h,property:"position"},labelTopPosition:{...h,property:"top"},labelHorizontalPosition:[{...h,property:"left"},{...h,property:"right"}],inputTransformY:{...h,property:"transform"},inputTransition:{...h,property:"transition"},marginInlineStart:{...h,property:"margin-inline-start"},placeholderOpacity:{...c,property:"opacity"},inputVerticalAlignment:{...d,property:"align-items"},valueInputHeight:{...p,property:"height"},valueInputMarginBottom:{...p,property:"margin-bottom"},overlayBackground:{property:()=>v.cssVarList.overlay.backgroundColor},overlayTextColor:{property:()=>v.cssVarList.overlay.textColor},overlayBorder:{property:()=>v.cssVarList.overlay.border},overlayFontSize:{property:()=>v.cssVarList.overlay.fontSize},overlayFontFamily:{property:()=>v.cssVarList.overlay.fontFamily},overlayCursor:{property:()=>v.cssVarList.overlay.cursor},overlayItemBoxShadow:{property:()=>v.cssVarList.overlay.itemBoxShadow},overlayItemPaddingInlineStart:{property:()=>v.cssVarList.overlay.itemPaddingInlineStart},overlayItemPaddingInlineEnd:{property:()=>v.cssVarList.overlay.itemPaddingInlineEnd}}}),i.VO,(0,i.mA)({name:"overlay",selector:"",mappings:{backgroundColor:[{selector:"vaadin-combo-box-scroller"},{selector:"vaadin-combo-box-overlay::part(overlay)"}],minHeight:{selector:"vaadin-combo-box-overlay"},margin:{selector:"vaadin-combo-box-overlay"},cursor:{selector:"vaadin-combo-box-item"},fontFamily:{selector:"vaadin-combo-box-item"},textColor:{selector:"vaadin-combo-box-item",property:"color"},fontSize:{selector:"vaadin-combo-box-item"},itemBoxShadow:{selector:"vaadin-combo-box-item",property:"box-shadow"},itemPaddingInlineStart:{selector:"vaadin-combo-box-item",property:"padding-inline-start"},itemPaddingInlineEnd:{selector:"vaadin-combo-box-item",property:"padding-inline-end"},loaderTop:{selector:"vaadin-combo-box-overlay::part(loader)",property:"top"},loaderLeft:{selector:"vaadin-combo-box-overlay::part(loader)",property:"left"},loaderRight:{selector:"vaadin-combo-box-overlay::part(loader)",property:"right"},loaderMargin:{selector:"vaadin-combo-box-overlay::part(loader)",property:"margin"},loaderWidth:{selector:"vaadin-combo-box-overlay::part(loader)",property:"width"},loaderHeight:{selector:"vaadin-combo-box-overlay::part(loader)",property:"height"},loaderBorder:{selector:"vaadin-combo-box-overlay::part(loader)",property:"border"},loaderBorderColor:{selector:"vaadin-combo-box-overlay::part(loader)",property:"border-color"},loaderBorderRadius:{selector:"vaadin-combo-box-overlay::part(loader)",property:"border-radius"},contentHeight:{selector:"vaadin-combo-box-overlay::part(content)",property:"height"},contentOpacity:{selector:"vaadin-combo-box-overlay::part(content)",property:"opacity"}},forward:{include:!1,attributes:["size"]}}),(0,i.OZ)({proxyProps:["selectionStart"],inputEvent:"selected-item-changed"}),i.tQ,(e=>class extends e{static get observedAttributes(){return["label-type"]}#e=({displayName:e,value:t,label:r})=>`<span data-name="${r}" data-id="${t}">${e||r}</span>`;#t;get defaultValue(){return this.getAttribute("default-value")}get renderItem(){return this.#e}set renderItem(e){this.#e=e,this.renderItems()}set renderer(e){this.baseElement.renderer=e}get loading(){return"true"===this.getAttribute("loading")}set loading(e){e?this.setAttribute("loading","true"):this.removeAttribute("loading")}get data(){if(this.#t)return this.#t;const e=this.getAttribute("data");if(e)try{const t=JSON.parse(e);if(this.isValidDataType(t))return t}catch(e){console.error('could not parse data string from attribute "data" -',e.message)}return[]}set data(e){this.isValidDataType(e)&&(this.#t=e,this.renderItems())}isValidDataType(e){const t=Array.isArray(e);return t||console.error("data must be an array, received:",e),t}getItemsTemplate(){return this.data?.reduce?.(((e,t)=>e+(this.renderItem?.(t||{})||"")),"")}renderItems(){if(this.#t||this.getAttribute("data")){const e=this.getItemsTemplate();this.innerHTML=e}}handleSelectedItem(){const{selectedItem:e}=this.baseElement,t=e?.["data-id"];e&&Array.from(this.children).includes(e)||(t&&(this.value=t),this.value||this.setDefaultValue())}customValueTransformFn(e){return e}setComboBoxDescriptor(){const e=Object.getOwnPropertyDescriptor(this.inputElement.constructor.prototype,"value"),t=this;Object.defineProperties(this.inputElement,{value:{...e,set(r){if(!t.baseElement.items?.length&&!t.allowCustomValue)return;const o=t.customValueTransformFn(r)||"";o!==this.value&&e.set.call(this,o)}}})}#r(){const e=Array.from(this.children);e.forEach((e=>{Object.defineProperty(e,"data-name",{value:e.getAttribute("data-name"),configurable:!0,writable:!0}),Object.defineProperty(e,"data-id",{value:e.getAttribute("data-id"),configurable:!0,writable:!0})})),this.baseElement.items=e,setTimeout((()=>{this.handleSelectedItem()}),0)}#o(){const e=this.baseElement.shadowRoot.querySelector("vaadin-combo-box-overlay");e._attachOverlay=()=>{e.bringToFront()},e._detachOverlay=()=>{},e._enterModalState=()=>{}}#n(){this.baseElement.renderer=(e,t,r)=>{e.innerHTML=r.item.outerHTML}}init(){super.init?.(),this.getValidity=function(){return!this.value&&this.isRequired?{valueMissing:!0}:{}},this.setComboBoxDescriptor(),this.#o(),this.#n(),(0,n.mx)(this,this.renderItems.bind(this),{includeAttrs:["data"]}),(0,n.Ge)(this,this.#r.bind(this)),this.setDefaultValue(),this.baseElement.addEventListener("selected-item-changed",(()=>{this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0}))}))}onLabelClick(){this.isReadOnly||this.isDisabled||(this.focus(),this.setAttribute("opened","true"))}attributeChangedCallback(e,t,r){super.attributeChangedCallback?.(e,t,r),t!==r&&"label-type"===e&&("floating"===r?this.addEventListener("click",this.onLabelClick):this.removeEventListener("click",this.onLabelClick))}setDefaultValue(){this.defaultValue&&(this.value=this.defaultValue)}#a(e){return this.baseElement.items?.find((t=>t["data-id"]===e))}#i(e,t){e===this.value&&t!==this.baseElement.selectedItem&&this.baseElement.addEventListener("selected-item-changed",(e=>{e.stopImmediatePropagation()}),{once:!0,capture:!0})}set value(e){const t=this.#a(e);this.#i(e,t),e&&t?this.baseElement.selectedItem=t:!t&&this.allowCustomValue?this.baseElement.value=e:this.baseElement.selectedItem=void 0}get value(){return(this.baseElement.selectedItem?.["data-id"]||this.allowCustomValue)&&this.baseElement.__data.value||""}get allowCustomValue(){return"true"===this.getAttribute("allow-custom-value")}}))((0,i.tz)({slots:["","prefix"],wrappedEleName:"vaadin-combo-box",style:()=>`\n\t\t:host {\n\t\t\tdisplay: inline-flex;\n\t\t\tbox-sizing: border-box;\n\t\t\t-webkit-mask-image: none;\n\t\t}\n\t\t${(0,a.cy)(v.cssVarList)}\n\t\t${(0,a.fu)("vaadin-combo-box")}\n\t\t${(0,a.lS)("vaadin-combo-box")}\n\t\t${(0,a.I4)("vaadin-combo-box")}\n\n\t\tvaadin-combo-box {\n\t\t\tpadding: 0;\n\t\t\twidth: 100%;\n\t\t}\n\t\tvaadin-combo-box::before {\n\t\t\theight: initial;\n\t\t}\n\t\tvaadin-combo-box [slot="input"] {\n\t\t\t-webkit-mask-image: none;\n\t\t\tmin-height: 0;\n\t\t\tbox-sizing: border-box;\n\t\t}\n\n\t\tvaadin-combo-box::part(input-field) {\n\t\t\tpadding: 0;\n\t\t\tbox-shadow: none;\n\t\t}\n\n vaadin-combo-box::part(toggle-button),\n vaadin-combo-box::part(clear-button) {\n align-self: center;\n }\n\n vaadin-combo-box[hide-toggle-button="true"]::part(toggle-button) {\n display: none;\n }\n\n vaadin-combo-box[label-type="floating"]:not([focused])[readonly] > input:placeholder-shown {\n opacity: 0;\n }\n vaadin-combo-box[label-type="floating"]:not([focused])[disabled] > input:placeholder-shown {\n opacity: 0;\n }\n\n ${(0,a.$J)("vaadin-combo-box")}\n ${(0,a.Kl)()}\n\t\t`,excludeAttrsSync:["tabindex","size","data","loading"],componentName:l,includeForwardProps:["items","renderer","selectedItem"]}))},4480:(e,t,r)=>{r.r(t),r.d(t,{ComboBoxClass:()=>o.C}),r(31111);var o=r(78313);customElements.define(o.T,o.C)},33177:(e,t,r)=>{r.d(t,{$J:()=>u,I4:()=>i,Kl:()=>b,LJ:()=>c,Qv:()=>a,X6:()=>s,cy:()=>o,fu:()=>d,kG:()=>p,lS:()=>l,zm:()=>n});const o=e=>`\n :host {\n padding: calc(var(${e.inputOutlineWidth}) + var(${e.inputOutlineOffset}))\n }\n`,n=e=>`\n ${e} {\n margin: 0;\n padding: 0;\n width: 100%;\n height: 100%;\n box-sizing: border-box;\n }\n`,a=e=>`\n ${e}::part(input-field) {\n overflow: hidden;\n padding: 0;\n box-shadow: none;\n }\n`,i=e=>`\n ${e} > label,\n ${e}::part(label),\n ${e}::part(required-indicator) {\n cursor: pointer;\n }\n`,l=(e,t="input")=>`\n ${e}[disabled] > ${t}:placeholder-shown,\n\t${e}[readonly] > ${t}:placeholder-shown {\n\t\topacity: 1;\n\t}\n`,s=()=>"\n :host {\n --vaadin-field-default-width: auto;\n box-sizing: border-box;\n }\n",d=e=>`\n ${e}::part(input-field)::after {\n opacity: 0;\n }\n`,p=e=>`\n ${e}::part(input-field)::after {\n background: none;\n }\n`,c=(e,t)=>`\n ${n(e)}\n ${i(e)}\n ${l(e)}\n ${a(e)}\n ${((e,t)=>`\n ${e} input:-webkit-autofill,\n ${e} input:-webkit-autofill::first-line,\n ${e} input:-webkit-autofill:hover,\n ${e} input:-webkit-autofill:active,\n ${e} input:-webkit-autofill:focus {\n -webkit-text-fill-color: var(${t.inputValueTextColor});\n box-shadow: 0 0 0 var(${t.inputHeight}) var(${t.inputBackgroundColor}) inset;\n }\n`)(e,t)}\n ${p(e)}\n ${(e=>`\n ${e}::before {\n\t\theight: unset;\n\t}\n`)(e)}\n ${(e=>`\n ${e} > input {\n -webkit-mask-image: none;\n min-height: 0;\n box-sizing: border-box;\n }\n`)(e)}\n ${(e=>`\n ${e}::part(input-field)::after {\n border: none;\n }\n`)(e)}\n`,u=e=>`\n :host ::part(error-message) {\n direction: ltr;\n }\n :host([required]) ::part(required-indicator) {\n width: 1em;\n display: inline-flex;\n }\n :host([required]) ::part(required-indicator)::after {\n position: static;\n }\n :host([has-label]) ::part(label) {\n padding-right: 0;\n padding-bottom: 0;\n display: flex;\n width: 100%;\n }\n ${e} [slot="label"] {\n max-width: calc(100% - 1em);\n overflow: hidden;\n text-overflow: ellipsis;\n padding-bottom: 0.5em;\n }\n`,b=()=>'\n :host([label-type="floating"]) {\n position: relative;\n }\n :host([label-type="floating"][has-label]) [slot="label"] {\n padding: 0;\n }\n :host([label-type="floating"][has-label]) > ::part(label) {\n z-index: 1;\n padding: 0;\n width: auto;\n }\n '}}]);
1
+ "use strict";(self.webpackChunk_descope_web_components_ui=self.webpackChunk_descope_web_components_ui||[]).push([[4480],{78313:(e,t,r)=>{r.d(t,{C:()=>v,T:()=>l});var o=r(7138),n=r(14944),a=r(33177),i=r(94619);const l=(0,n.xE)("combo-box"),{host:s,inputField:d,inputElement:p,placeholder:c,toggle:u,clearButton:b,label:h,requiredIndicator:m,helperText:y,errorMessage:g}={host:{selector:()=>":host"},inputField:{selector:"::part(input-field)"},inputElement:{selector:"input"},placeholder:{selector:"> input:placeholder-shown"},toggle:{selector:"::part(toggle-button)"},clearButton:{selector:"::part(clear-button)"},label:{selector:"::part(label)"},requiredIndicator:{selector:"[required]::part(required-indicator)::after"},helperText:{selector:"::part(helper-text)"},errorMessage:{selector:"::part(error-message)"}},v=(0,o.Zz)((0,i.RF)({mappings:{hostWidth:{...s,property:"width"},hostDirection:{...s,property:"direction"},fontSize:[{},s],fontFamily:[h,c,d,y,g],labelFontSize:{...h,property:"font-size"},labelFontWeight:{...h,property:"font-weight"},labelTextColor:[{...h,property:"color"},{...m,property:"color"}],errorMessageTextColor:{...g,property:"color"},errorMessageIcon:{...g,property:"background-image"},errorMessageIconSize:{...g,property:"background-size"},errorMessageIconPadding:{...g,property:"padding-inline-start"},errorMessageIconRepeat:{...g,property:"background-repeat"},errorMessageIconPosition:{...g,property:"background-position"},inputHeight:{...d,property:"height"},inputBackgroundColor:{...d,property:"background-color"},inputBorderColor:{...d,property:"border-color"},inputBorderWidth:{...d,property:"border-width"},inputBorderStyle:{...d,property:"border-style"},inputBorderRadius:{...d,property:"border-radius"},labelRequiredIndicator:{...m,property:"content"},inputValueTextColor:{...d,property:"color"},inputPlaceholderTextColor:{...c,property:"color"},inputDropdownButtonCursor:[{...u,property:"cursor"},{...b,property:"cursor"}],inputDropdownButtonColor:[{...u,property:"color"},{...b,property:"color"}],inputDropdownButtonSize:[{...u,property:"font-size"},{...b,property:"font-size"}],inputDropdownButtonOffset:[{...u,property:"margin-right"},{...u,property:"margin-left"}],inputOutlineColor:{...d,property:"outline-color"},inputOutlineWidth:{...d,property:"outline-width"},inputOutlineStyle:{...d,property:"outline-style"},inputOutlineOffset:{...d,property:"outline-offset"},inputHorizontalPadding:[{...p,property:"padding-left"},{...p,property:"padding-right"}],labelPosition:{...h,property:"position"},labelTopPosition:{...h,property:"top"},labelHorizontalPosition:[{...h,property:"left"},{...h,property:"right"}],inputTransformY:{...h,property:"transform"},inputTransition:{...h,property:"transition"},marginInlineStart:{...h,property:"margin-inline-start"},placeholderOpacity:{...c,property:"opacity"},inputVerticalAlignment:{...d,property:"align-items"},valueInputHeight:{...p,property:"height"},valueInputMarginBottom:{...p,property:"margin-bottom"},overlayBackground:{property:()=>v.cssVarList.overlay.backgroundColor},overlayTextColor:{property:()=>v.cssVarList.overlay.textColor},overlayBorder:{property:()=>v.cssVarList.overlay.border},overlayFontSize:{property:()=>v.cssVarList.overlay.fontSize},overlayFontFamily:{property:()=>v.cssVarList.overlay.fontFamily},overlayCursor:{property:()=>v.cssVarList.overlay.cursor},overlayItemBoxShadow:{property:()=>v.cssVarList.overlay.itemBoxShadow},overlayItemPaddingInlineStart:{property:()=>v.cssVarList.overlay.itemPaddingInlineStart},overlayItemPaddingInlineEnd:{property:()=>v.cssVarList.overlay.itemPaddingInlineEnd}}}),i.VO,(0,i.mA)({name:"overlay",selector:"",mappings:{backgroundColor:[{selector:"vaadin-combo-box-scroller"},{selector:"vaadin-combo-box-overlay::part(overlay)"}],minHeight:{selector:"vaadin-combo-box-overlay"},margin:{selector:"vaadin-combo-box-overlay"},cursor:{selector:"vaadin-combo-box-item"},fontFamily:{selector:"vaadin-combo-box-item"},textColor:{selector:"vaadin-combo-box-item",property:"color"},fontSize:{selector:"vaadin-combo-box-item"},itemBoxShadow:{selector:"vaadin-combo-box-item",property:"box-shadow"},itemPaddingInlineStart:{selector:"vaadin-combo-box-item",property:"padding-inline-start"},itemPaddingInlineEnd:{selector:"vaadin-combo-box-item",property:"padding-inline-end"},loaderTop:{selector:"vaadin-combo-box-overlay::part(loader)",property:"top"},loaderLeft:{selector:"vaadin-combo-box-overlay::part(loader)",property:"left"},loaderRight:{selector:"vaadin-combo-box-overlay::part(loader)",property:"right"},loaderMargin:{selector:"vaadin-combo-box-overlay::part(loader)",property:"margin"},loaderWidth:{selector:"vaadin-combo-box-overlay::part(loader)",property:"width"},loaderHeight:{selector:"vaadin-combo-box-overlay::part(loader)",property:"height"},loaderBorder:{selector:"vaadin-combo-box-overlay::part(loader)",property:"border"},loaderBorderColor:{selector:"vaadin-combo-box-overlay::part(loader)",property:"border-color"},loaderBorderRadius:{selector:"vaadin-combo-box-overlay::part(loader)",property:"border-radius"},contentHeight:{selector:"vaadin-combo-box-overlay::part(content)",property:"height"},contentOpacity:{selector:"vaadin-combo-box-overlay::part(content)",property:"opacity"}},forward:{include:!1,attributes:["size"]}}),(0,i.OZ)({proxyProps:["selectionStart"],inputEvent:"selected-item-changed"}),i.tQ,(e=>class extends e{static get observedAttributes(){return["label-type"]}#e=({displayName:e,value:t,label:r})=>`<span data-name="${r}" data-id="${t}">${e||r}</span>`;#t;get defaultValue(){return this.getAttribute("default-value")}get renderItem(){return this.#e}set renderItem(e){this.#e=e,this.renderItems()}set renderer(e){this.baseElement.renderer=e}get loading(){return"true"===this.getAttribute("loading")}set loading(e){e?this.setAttribute("loading","true"):this.removeAttribute("loading")}get data(){if(this.#t)return this.#t;const e=this.getAttribute("data");if(e)try{const t=JSON.parse(e);if(this.isValidDataType(t))return t}catch(e){console.error('could not parse data string from attribute "data" -',e.message)}return[]}set data(e){this.isValidDataType(e)&&(this.#t=e,this.renderItems())}isValidDataType(e){const t=Array.isArray(e);return t||console.error("data must be an array, received:",e),t}getItemsTemplate(){return this.data?.reduce?.(((e,t)=>e+(this.renderItem?.(t||{})||"")),"")}renderItems(){if(this.#t||this.getAttribute("data")){const e=this.getItemsTemplate();this.innerHTML=e}}handleSelectedItem(){const{selectedItem:e}=this.baseElement,t=e?.["data-id"];e&&Array.from(this.children).includes(e)||(t&&(this.value=t),this.value||this.setDefaultValue())}customValueTransformFn(e){return e}setComboBoxDescriptor(){const e=Object.getOwnPropertyDescriptor(this.inputElement.constructor.prototype,"value"),t=this;Object.defineProperties(this.inputElement,{value:{...e,set(r){if(!t.baseElement.items?.length&&!t.allowCustomValue)return;const o=t.customValueTransformFn(r)||"";o!==this.value&&e.set.call(this,o)}}})}#r(){const e=Array.from(this.children);e.forEach((e=>{Object.defineProperty(e,"data-name",{value:e.getAttribute("data-name"),configurable:!0,writable:!0}),Object.defineProperty(e,"data-id",{value:e.getAttribute("data-id"),configurable:!0,writable:!0})})),this.baseElement.items=e,setTimeout((()=>{this.handleSelectedItem()}),0)}#o(){const e=this.baseElement.shadowRoot.querySelector("vaadin-combo-box-overlay");e._attachOverlay=()=>{e.bringToFront()},e._detachOverlay=()=>{},e._enterModalState=()=>{}}#n(){this.baseElement.renderer=(e,t,r)=>{e.innerHTML=r.item.outerHTML}}init(){super.init?.(),this.getValidity=function(){return!this.value&&this.isRequired?{valueMissing:!0}:{}},this.setComboBoxDescriptor(),this.#o(),this.#n(),(0,n.mx)(this,this.renderItems.bind(this),{includeAttrs:["data"]}),(0,n.Ge)(this,this.#r.bind(this)),this.setDefaultValue(),this.baseElement.addEventListener("selected-item-changed",(()=>{this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0}))}))}onLabelClick(){this.isReadOnly||this.isDisabled||(this.focus(),this.setAttribute("opened","true"))}attributeChangedCallback(e,t,r){super.attributeChangedCallback?.(e,t,r),t!==r&&"label-type"===e&&("floating"===r?this.addEventListener("click",this.onLabelClick):this.removeEventListener("click",this.onLabelClick))}setDefaultValue(){this.defaultValue&&(this.value=this.defaultValue)}#a(e){return this.baseElement.items?.find((t=>t["data-id"]===e))}#i(e,t){e===this.value&&t!==this.baseElement.selectedItem&&this.baseElement.addEventListener("selected-item-changed",(e=>{e.stopImmediatePropagation()}),{once:!0,capture:!0})}set value(e){const t=this.#a(e);this.#i(e,t),e&&t?this.baseElement.selectedItem=t:!t&&this.allowCustomValue?this.baseElement.value=e:this.baseElement.selectedItem=void 0}get value(){return(this.baseElement.selectedItem?.["data-id"]||this.allowCustomValue)&&this.baseElement.__data.value||""}get allowCustomValue(){return"true"===this.getAttribute("allow-custom-value")}}))((0,i.tz)({slots:["","prefix"],wrappedEleName:"vaadin-combo-box",style:()=>`\n\t\t:host {\n\t\t\tdisplay: inline-flex;\n\t\t\tbox-sizing: border-box;\n\t\t\t-webkit-mask-image: none;\n\t\t}\n\t\t${(0,a.cy)(v.cssVarList)}\n\t\t${(0,a.fu)("vaadin-combo-box")}\n\t\t${(0,a.lS)("vaadin-combo-box")}\n\t\t${(0,a.I4)("vaadin-combo-box")}\n\n\t\tvaadin-combo-box {\n\t\t\tpadding: 0;\n\t\t\twidth: 100%;\n\t\t}\n\t\tvaadin-combo-box::before {\n\t\t\theight: initial;\n\t\t}\n\t\tvaadin-combo-box [slot="input"] {\n\t\t\t-webkit-mask-image: none;\n\t\t\tmin-height: 0;\n\t\t\tbox-sizing: border-box;\n\t\t}\n\n\t\tvaadin-combo-box::part(input-field) {\n\t\t\tpadding: 0;\n\t\t\tbox-shadow: none;\n\t\t}\n\n vaadin-combo-box::part(toggle-button),\n vaadin-combo-box::part(clear-button) {\n align-self: center;\n }\n\n vaadin-combo-box[hide-toggle-button="true"]::part(toggle-button) {\n display: none;\n }\n\n vaadin-combo-box[label-type="floating"]:not([focused])[readonly] > input:placeholder-shown {\n opacity: 0;\n }\n vaadin-combo-box[label-type="floating"]:not([focused])[disabled] > input:placeholder-shown {\n opacity: 0;\n }\n\n ${(0,a.$J)("vaadin-combo-box")}\n ${(0,a.Kl)()}\n\t\t`,excludeAttrsSync:["tabindex","size","data","loading"],componentName:l,includeForwardProps:["items","renderer","selectedItem"]}))},4480:(e,t,r)=>{r.r(t),r.d(t,{ComboBoxClass:()=>o.C}),r(91011);var o=r(78313);customElements.define(o.T,o.C)},33177:(e,t,r)=>{r.d(t,{$J:()=>u,I4:()=>i,Kl:()=>b,LJ:()=>c,Qv:()=>a,X6:()=>s,cy:()=>o,fu:()=>d,kG:()=>p,lS:()=>l,zm:()=>n});const o=e=>`\n :host {\n padding: calc(var(${e.inputOutlineWidth}) + var(${e.inputOutlineOffset}))\n }\n`,n=e=>`\n ${e} {\n margin: 0;\n padding: 0;\n width: 100%;\n height: 100%;\n box-sizing: border-box;\n }\n`,a=e=>`\n ${e}::part(input-field) {\n overflow: hidden;\n padding: 0;\n box-shadow: none;\n }\n`,i=e=>`\n ${e} > label,\n ${e}::part(label),\n ${e}::part(required-indicator) {\n cursor: pointer;\n }\n`,l=(e,t="input")=>`\n ${e}[disabled] > ${t}:placeholder-shown,\n\t${e}[readonly] > ${t}:placeholder-shown {\n\t\topacity: 1;\n\t}\n`,s=()=>"\n :host {\n --vaadin-field-default-width: auto;\n box-sizing: border-box;\n }\n",d=e=>`\n ${e}::part(input-field)::after {\n opacity: 0;\n }\n`,p=e=>`\n ${e}::part(input-field)::after {\n background: none;\n }\n`,c=(e,t)=>`\n ${n(e)}\n ${i(e)}\n ${l(e)}\n ${a(e)}\n ${((e,t)=>`\n ${e} input:-webkit-autofill,\n ${e} input:-webkit-autofill::first-line,\n ${e} input:-webkit-autofill:hover,\n ${e} input:-webkit-autofill:active,\n ${e} input:-webkit-autofill:focus {\n -webkit-text-fill-color: var(${t.inputValueTextColor});\n box-shadow: 0 0 0 var(${t.inputHeight}) var(${t.inputBackgroundColor}) inset;\n }\n`)(e,t)}\n ${p(e)}\n ${(e=>`\n ${e}::before {\n\t\theight: unset;\n\t}\n`)(e)}\n ${(e=>`\n ${e} > input {\n -webkit-mask-image: none;\n min-height: 0;\n box-sizing: border-box;\n }\n`)(e)}\n ${(e=>`\n ${e}::part(input-field)::after {\n border: none;\n }\n`)(e)}\n`,u=e=>`\n :host ::part(error-message) {\n direction: ltr;\n }\n :host([required]) ::part(required-indicator) {\n width: 1em;\n display: inline-flex;\n }\n :host([required]) ::part(required-indicator)::after {\n position: static;\n }\n :host([has-label]) ::part(label) {\n padding-right: 0;\n padding-bottom: 0;\n display: flex;\n width: 100%;\n }\n ${e} [slot="label"] {\n max-width: calc(100% - 1em);\n overflow: hidden;\n text-overflow: ellipsis;\n padding-bottom: 0.5em;\n }\n`,b=()=>'\n :host([label-type="floating"]) {\n position: relative;\n }\n :host([label-type="floating"][has-label]) [slot="label"] {\n padding: 0;\n }\n :host([label-type="floating"][has-label]) > ::part(label) {\n z-index: 1;\n padding: 0;\n width: auto;\n }\n '}}]);
@@ -1,5 +1,5 @@
1
- /*! For license information please see 5086.js.LICENSE.txt */
2
- "use strict";(self.webpackChunk_descope_web_components_ui=self.webpackChunk_descope_web_components_ui||[]).push([[5086],{10666:(t,e,o)=>{o.d(e,{f:()=>n});var a=o(85297),i=o(50063),r=(o(90075),o(19279)),s=o(85731);const n=(0,a.y)((t=>class extends((0,r.q)((0,i.i)((0,s.g)(t)))){static get properties(){return{checked:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0}}}static get delegateProps(){return[...super.delegateProps,"checked"]}_onChange(t){const e=t.target;this._toggleChecked(e.checked)}_toggleChecked(t){this.checked=t}}))},15408:(t,e,o)=>{o.d(e,{f:()=>i});var a=o(32065);class i extends a.r{constructor(t,e){super(t,"input","input",{initializer:(t,o)=>{o.value&&(t.value=o.value),o.type&&t.setAttribute("type",o.type),t.id=this.defaultId,"function"==typeof e&&e(t)},useUniqueId:!0})}}},5086:(t,e,o)=>{o(92541),o(66206),o(1159),o(23395),o(41745);var a=o(6052);(0,a.SF)("vaadin-radio-button",a.AH`
1
+ /*! For license information please see 4554.js.LICENSE.txt */
2
+ "use strict";(self.webpackChunk_descope_web_components_ui=self.webpackChunk_descope_web_components_ui||[]).push([[4554],{24510:(t,e,o)=>{o.d(e,{f:()=>n});var a=o(75035),i=o(74075),r=(o(51919),o(97539)),s=o(98695);const n=(0,a.y)((t=>class extends((0,r.q)((0,i.i)((0,s.g)(t)))){static get properties(){return{checked:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0}}}static get delegateProps(){return[...super.delegateProps,"checked"]}_onChange(t){const e=t.target;this._toggleChecked(e.checked)}_toggleChecked(t){this.checked=t}}))},21860:(t,e,o)=>{o.d(e,{f:()=>i});var a=o(95925);class i extends a.r{constructor(t,e){super(t,"input","input",{initializer:(t,o)=>{o.value&&(t.value=o.value),o.type&&t.setAttribute("type",o.type),t.id=this.defaultId,"function"==typeof e&&e(t)},useUniqueId:!0})}}},4554:(t,e,o)=>{o(44497),o(4082),o(19155),o(40999),o(52301);var a=o(57224);(0,a.SF)("vaadin-radio-button",a.AH`
3
3
  :host {
4
4
  color: var(--vaadin-radio-button-label-color, var(--lumo-body-text-color));
5
5
  font-size: var(--vaadin-radio-button-label-font-size, var(--lumo-font-size-m));
@@ -131,7 +131,7 @@
131
131
  :host([dir='rtl'][has-label]) ::slotted(label) {
132
132
  padding: var(--lumo-space-xs) var(--lumo-space-xs) var(--lumo-space-xs) var(--lumo-space-s);
133
133
  }
134
- `,{moduleId:"lumo-radio-button"});var i=o(33791),r=o(988),s=o(38735),n=o(31846),d=o(1033),l=o(12689),c=o(10666),u=o(15408),h=o(49711),p=o(3550);const v=t=>class extends((0,h.U)((0,c.f)((0,l.v)((0,d.e)(t))))){static get properties(){return{name:{type:String,value:""},tabindex:{type:Number,value:0,reflectToAttribute:!0}}}static get delegateAttrs(){return[...super.delegateAttrs,"name"]}constructor(){super(),this._setType("radio"),this.value="on"}ready(){super.ready(),this.addController(new u.f(this,(t=>{this._setInputElement(t),this._setFocusElement(t),this.stateTarget=t,this.ariaTarget=t}))),this.addController(new p.q(this.inputElement,this._labelController))}},_=a.AH`
134
+ `,{moduleId:"lumo-radio-button"});var i=o(98633),r=o(56096),s=o(65211),n=o(27150),d=o(63437),l=o(3205),c=o(24510),u=o(21860),h=o(68515),p=o(19074);const v=t=>class extends((0,h.U)((0,c.f)((0,l.v)((0,d.e)(t))))){static get properties(){return{name:{type:String,value:""},tabindex:{type:Number,value:0,reflectToAttribute:!0}}}static get delegateAttrs(){return[...super.delegateAttrs,"name"]}constructor(){super(),this._setType("radio"),this.value="on"}ready(){super.ready(),this.addController(new u.f(this,(t=>{this._setInputElement(t),this._setFocusElement(t),this.stateTarget=t,this.ariaTarget=t}))),this.addController(new p.q(this.inputElement,this._labelController))}},_=a.AH`
135
135
  :host {
136
136
  display: inline-block;
137
137
  }
@@ -207,7 +207,7 @@
207
207
  <slot name="input"></slot>
208
208
  <slot name="label"></slot>
209
209
  </div>
210
- `}}(0,s.X)(b);var g=o(61137),m=o(48593);const f=a.AH`
210
+ `}}(0,s.X)(b);var g=o(71005),m=o(4749);const f=a.AH`
211
211
  :host {
212
212
  color: var(--lumo-body-text-color);
213
213
  font-size: var(--lumo-font-size-m);
@@ -250,7 +250,7 @@
250
250
  color: var(--lumo-secondary-text-color);
251
251
  }
252
252
  }
253
- `;(0,a.SF)("vaadin-radio-group",[m.Q,g.d,f],{moduleId:"lumo-radio-group"});var y=o(50063),x=o(98751),k=o(67766),w=o(82607),B=o(58074),R=o(78065),C=o(39550);const z=t=>class extends((0,C.Y)((0,x.y)((0,y.i)((0,k.f)(t))))){static get properties(){return{value:{type:String,notify:!0,value:"",observer:"__valueChanged"},readonly:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__readonlyChanged"},_fieldName:{type:String}}}constructor(){super(),this.__registerRadioButton=this.__registerRadioButton.bind(this),this.__unregisterRadioButton=this.__unregisterRadioButton.bind(this),this.__onRadioButtonCheckedChange=this.__onRadioButtonCheckedChange.bind(this),this._tooltipController=new B.I(this),this._tooltipController.addEventListener("tooltip-changed",(t=>{const e=t.detail.node;if(e&&e.isConnected){const t=this.__radioButtons.map((t=>t.inputElement));this._tooltipController.setAriaTarget(t)}else this._tooltipController.setAriaTarget([])}))}get __radioButtons(){return this.__filterRadioButtons([...this.children])}get __selectedRadioButton(){return this.__radioButtons.find((t=>t.checked))}get isHorizontalRTL(){return this.__isRTL&&"vertical"!==this._theme}ready(){super.ready(),this.ariaTarget=this,this.setAttribute("role","radiogroup"),this._fieldName=`${this.localName}-${(0,R.I)()}`;const t=this.shadowRoot.querySelector("slot:not([name])");this._observer=new w.P(t,(({addedNodes:t,removedNodes:e})=>{this.__filterRadioButtons(t).reverse().forEach(this.__registerRadioButton),this.__filterRadioButtons(e).forEach(this.__unregisterRadioButton);const o=this.__radioButtons.map((t=>t.inputElement));this._tooltipController.setAriaTarget(o)})),this.addController(this._tooltipController)}__filterRadioButtons(t){return t.filter((t=>t.nodeType===Node.ELEMENT_NODE&&"vaadin-radio-button"===t.localName))}_onKeyDown(t){super._onKeyDown(t);const e=t.composedPath().find((t=>t.nodeType===Node.ELEMENT_NODE&&"vaadin-radio-button"===t.localName));["ArrowLeft","ArrowUp"].includes(t.key)&&(t.preventDefault(),this.__selectNextRadioButton(e)),["ArrowRight","ArrowDown"].includes(t.key)&&(t.preventDefault(),this.__selectPrevRadioButton(e))}_invalidChanged(t){super._invalidChanged(t),t?this.setAttribute("aria-invalid","true"):this.removeAttribute("aria-invalid")}__selectNextRadioButton(t){const e=this.__radioButtons.indexOf(t);this.__selectIncRadioButton(e,this.isHorizontalRTL?1:-1)}__selectPrevRadioButton(t){const e=this.__radioButtons.indexOf(t);this.__selectIncRadioButton(e,this.isHorizontalRTL?-1:1)}__selectIncRadioButton(t,e){const o=(this.__radioButtons.length+t+e)%this.__radioButtons.length,a=this.__radioButtons[o];a.disabled?this.__selectIncRadioButton(o,e):(a.focusElement.focus(),a.focusElement.click())}__registerRadioButton(t){t.name=this._fieldName,t.addEventListener("checked-changed",this.__onRadioButtonCheckedChange),(this.disabled||this.readonly)&&(t.disabled=!0),t.checked&&this.__selectRadioButton(t)}__unregisterRadioButton(t){t.removeEventListener("checked-changed",this.__onRadioButtonCheckedChange),t.value===this.value&&this.__selectRadioButton(null)}__onRadioButtonCheckedChange(t){t.target.checked&&this.__selectRadioButton(t.target)}__valueChanged(t,e){if(void 0!==e||""!==t){if(t){const e=this.__radioButtons.find((e=>e.value===t));e?(this.__selectRadioButton(e),this.toggleAttribute("has-value",!0)):console.warn(`The radio button with the value "${t}" was not found.`)}else this.__selectRadioButton(null),this.removeAttribute("has-value");void 0!==e&&this.validate()}}__readonlyChanged(t,e){(t||void 0!==e)&&e!==t&&this.__updateRadioButtonsDisabledProperty()}_disabledChanged(t,e){super._disabledChanged(t,e),(t||void 0!==e)&&e!==t&&this.__updateRadioButtonsDisabledProperty()}_shouldRemoveFocus(t){return!this.contains(t.relatedTarget)}_setFocused(t){super._setFocused(t),!t&&document.hasFocus()&&this.validate()}__selectRadioButton(t){this.value=t?t.value:"",this.__radioButtons.forEach((e=>{e.checked=e===t})),this.readonly&&this.__updateRadioButtonsDisabledProperty()}__updateRadioButtonsDisabledProperty(){this.__radioButtons.forEach((t=>{this.readonly?t.disabled=t!==this.__selectedRadioButton:t.disabled=this.disabled}))}},E=a.AH`
253
+ `;(0,a.SF)("vaadin-radio-group",[m.Q,g.d,f],{moduleId:"lumo-radio-group"});var y=o(74075),x=o(73595),k=o(79258),w=o(98475),B=o(83798),R=o(99309),C=o(12850);const z=t=>class extends((0,C.Y)((0,x.y)((0,y.i)((0,k.f)(t))))){static get properties(){return{value:{type:String,notify:!0,value:"",observer:"__valueChanged"},readonly:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__readonlyChanged"},_fieldName:{type:String}}}constructor(){super(),this.__registerRadioButton=this.__registerRadioButton.bind(this),this.__unregisterRadioButton=this.__unregisterRadioButton.bind(this),this.__onRadioButtonCheckedChange=this.__onRadioButtonCheckedChange.bind(this),this._tooltipController=new B.I(this),this._tooltipController.addEventListener("tooltip-changed",(t=>{const e=t.detail.node;if(e&&e.isConnected){const t=this.__radioButtons.map((t=>t.inputElement));this._tooltipController.setAriaTarget(t)}else this._tooltipController.setAriaTarget([])}))}get __radioButtons(){return this.__filterRadioButtons([...this.children])}get __selectedRadioButton(){return this.__radioButtons.find((t=>t.checked))}get isHorizontalRTL(){return this.__isRTL&&"vertical"!==this._theme}ready(){super.ready(),this.ariaTarget=this,this.setAttribute("role","radiogroup"),this._fieldName=`${this.localName}-${(0,R.I)()}`;const t=this.shadowRoot.querySelector("slot:not([name])");this._observer=new w.P(t,(({addedNodes:t,removedNodes:e})=>{this.__filterRadioButtons(t).reverse().forEach(this.__registerRadioButton),this.__filterRadioButtons(e).forEach(this.__unregisterRadioButton);const o=this.__radioButtons.map((t=>t.inputElement));this._tooltipController.setAriaTarget(o)})),this.addController(this._tooltipController)}__filterRadioButtons(t){return t.filter((t=>t.nodeType===Node.ELEMENT_NODE&&"vaadin-radio-button"===t.localName))}_onKeyDown(t){super._onKeyDown(t);const e=t.composedPath().find((t=>t.nodeType===Node.ELEMENT_NODE&&"vaadin-radio-button"===t.localName));["ArrowLeft","ArrowUp"].includes(t.key)&&(t.preventDefault(),this.__selectNextRadioButton(e)),["ArrowRight","ArrowDown"].includes(t.key)&&(t.preventDefault(),this.__selectPrevRadioButton(e))}_invalidChanged(t){super._invalidChanged(t),t?this.setAttribute("aria-invalid","true"):this.removeAttribute("aria-invalid")}__selectNextRadioButton(t){const e=this.__radioButtons.indexOf(t);this.__selectIncRadioButton(e,this.isHorizontalRTL?1:-1)}__selectPrevRadioButton(t){const e=this.__radioButtons.indexOf(t);this.__selectIncRadioButton(e,this.isHorizontalRTL?-1:1)}__selectIncRadioButton(t,e){const o=(this.__radioButtons.length+t+e)%this.__radioButtons.length,a=this.__radioButtons[o];a.disabled?this.__selectIncRadioButton(o,e):(a.focusElement.focus(),a.focusElement.click())}__registerRadioButton(t){t.name=this._fieldName,t.addEventListener("checked-changed",this.__onRadioButtonCheckedChange),(this.disabled||this.readonly)&&(t.disabled=!0),t.checked&&this.__selectRadioButton(t)}__unregisterRadioButton(t){t.removeEventListener("checked-changed",this.__onRadioButtonCheckedChange),t.value===this.value&&this.__selectRadioButton(null)}__onRadioButtonCheckedChange(t){t.target.checked&&this.__selectRadioButton(t.target)}__valueChanged(t,e){if(void 0!==e||""!==t){if(t){const e=this.__radioButtons.find((e=>e.value===t));e?(this.__selectRadioButton(e),this.toggleAttribute("has-value",!0)):console.warn(`The radio button with the value "${t}" was not found.`)}else this.__selectRadioButton(null),this.removeAttribute("has-value");void 0!==e&&this.validate()}}__readonlyChanged(t,e){(t||void 0!==e)&&e!==t&&this.__updateRadioButtonsDisabledProperty()}_disabledChanged(t,e){super._disabledChanged(t,e),(t||void 0!==e)&&e!==t&&this.__updateRadioButtonsDisabledProperty()}_shouldRemoveFocus(t){return!this.contains(t.relatedTarget)}_setFocused(t){super._setFocused(t),!t&&document.hasFocus()&&this.validate()}__selectRadioButton(t){this.value=t?t.value:"",this.__radioButtons.forEach((e=>{e.checked=e===t})),this.readonly&&this.__updateRadioButtonsDisabledProperty()}__updateRadioButtonsDisabledProperty(){this.__radioButtons.forEach((t=>{this.readonly?t.disabled=t!==this.__selectedRadioButton:t.disabled=this.disabled}))}},E=a.AH`
254
254
  :host {
255
255
  display: inline-flex;
256
256
  }
@@ -1,5 +1,5 @@
1
- /*! For license information please see 4834.js.LICENSE.txt */
2
- "use strict";(self.webpackChunk_descope_web_components_ui=self.webpackChunk_descope_web_components_ui||[]).push([[4834],{53794:(t,e,o)=>{o.d(e,{CI:()=>m,H8:()=>r,gm:()=>s,m0:()=>a,nr:()=>c,un:()=>d});const i=t=>t.test(navigator.userAgent),n=t=>t.test(navigator.platform),a=i(/Android/u),r=i(/Chrome/u)&&/Google Inc/u.test(navigator.vendor),s=i(/Firefox/u),l=n(/^iPad/u)||n(/^Mac/u)&&navigator.maxTouchPoints>1,d=n(/^iPhone/u)||l,c=i(/^((?!chrome|android).)*safari/iu),m=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(t){return!1}})()},31846:(t,e,o)=>{o.d(e,{q:()=>d});var i=o(85251),n=o(81510),a=o(27111),r=o(35717);let s;(0,i.DH)(!1),window.Vaadin||(window.Vaadin={}),window.Vaadin.registrations||(window.Vaadin.registrations=[]),window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={}),window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){};const l=new Set,d=t=>class extends((0,r.v)(t)){static finalize(){super.finalize();const{is:t}=this;t&&!l.has(t)&&(window.Vaadin.registrations.push(this),l.add(t),window.Vaadin.developmentModeCallback&&(s=a.aq.debounce(s,n.g8,(()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()})),(0,a.Oy)(s)))}constructor(){super(),null===document.doctype&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}}},55231:(t,e,o)=>{o.d(e,{i:()=>i});const i=t=>class extends t{static get properties(){return{overlayClass:{type:String},_overlayElement:{type:Object}}}static get observers(){return["__updateOverlayClassNames(overlayClass, _overlayElement)"]}__updateOverlayClassNames(t,e){if(!e)return;if(void 0===t)return;const{classList:o}=e;if(this.__initialClasses||(this.__initialClasses=new Set(o)),Array.isArray(this.__previousClasses)){const t=this.__previousClasses.filter((t=>!this.__initialClasses.has(t)));t.length>0&&o.remove(...t)}const i="string"==typeof t?t.split(" "):[];i.length>0&&o.add(...i),this.__previousClasses=i}}},80521:(t,e,o)=>{function i(t){window.Vaadin&&window.Vaadin.templateRendererCallback?window.Vaadin.templateRendererCallback(t):t.querySelector("template")&&console.warn(`WARNING: <template> inside <${t.localName}> is no longer supported. Import @vaadin/polymer-legacy-adapter/template-renderer.js to enable compatibility.`)}o.d(e,{h:()=>i})},74834:(t,e,o)=>{o(92541),o(1159),o(23395),o(41745);var i=o(6052);(0,i.SF)("vaadin-notification-card",i.AH`
1
+ /*! For license information please see 4574.js.LICENSE.txt */
2
+ "use strict";(self.webpackChunk_descope_web_components_ui=self.webpackChunk_descope_web_components_ui||[]).push([[4574],{14310:(t,e,o)=>{o.d(e,{CI:()=>m,H8:()=>r,gm:()=>s,m0:()=>a,nr:()=>c,un:()=>d});const i=t=>t.test(navigator.userAgent),n=t=>t.test(navigator.platform),a=i(/Android/u),r=i(/Chrome/u)&&/Google Inc/u.test(navigator.vendor),s=i(/Firefox/u),l=n(/^iPad/u)||n(/^Mac/u)&&navigator.maxTouchPoints>1,d=n(/^iPhone/u)||l,c=i(/^((?!chrome|android).)*safari/iu),m=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(t){return!1}})()},54243:(t,e,o)=>{o.d(e,{i:()=>i});const i=t=>class extends t{static get properties(){return{overlayClass:{type:String},_overlayElement:{type:Object}}}static get observers(){return["__updateOverlayClassNames(overlayClass, _overlayElement)"]}__updateOverlayClassNames(t,e){if(!e)return;if(void 0===t)return;const{classList:o}=e;if(this.__initialClasses||(this.__initialClasses=new Set(o)),Array.isArray(this.__previousClasses)){const t=this.__previousClasses.filter((t=>!this.__initialClasses.has(t)));t.length>0&&o.remove(...t)}const i="string"==typeof t?t.split(" ").filter(Boolean):[];i.length>0&&o.add(...i),this.__previousClasses=i}}},15685:(t,e,o)=>{function i(t){window.Vaadin&&window.Vaadin.templateRendererCallback?window.Vaadin.templateRendererCallback(t):t.querySelector("template")&&console.warn(`WARNING: <template> inside <${t.localName}> is no longer supported. Import @vaadin/polymer-legacy-adapter/template-renderer.js to enable compatibility.`)}o.d(e,{h:()=>i})},94574:(t,e,o)=>{o(44497),o(19155),o(40999),o(52301);var i=o(57224);(0,i.SF)("vaadin-notification-card",i.AH`
3
3
  :host {
4
4
  position: relative;
5
5
  margin: var(--lumo-space-s);
@@ -189,7 +189,7 @@
189
189
  --vaadin-button-primary-background: var(--lumo-shade-50pct);
190
190
  --vaadin-button-primary-text-color: var(--lumo-primary-contrast-color);
191
191
  }
192
- `,{moduleId:"lumo-notification-card"});var n=o(33791),a=o(16684),r=o(96805),s=o(53794),l=o(38735),d=o(31846),c=o(55231),m=o(80521),u=o(3843);class h extends((0,i.cp)((0,d.q)(n.Pu))){static get template(){return n.qy`
192
+ `,{moduleId:"lumo-notification-card"});var n=o(98633),a=o(44720),r=o(15273),s=o(14310),l=o(65211),d=o(27150),c=o(54243),m=o(15685),u=o(82543);class h extends((0,i.cp)((0,d.q)(n.Pu))){static get template(){return n.qy`
193
193
  <style>
194
194
  :host {
195
195
  position: fixed;
@@ -285,7 +285,7 @@
285
285
  }
286
286
  </style>
287
287
  <vaadin-notification-card theme$="[[_theme]]"> </vaadin-notification-card>
288
- `}static get is(){return"vaadin-notification"}static get properties(){return{duration:{type:Number,value:5e3},opened:{type:Boolean,value:!1,notify:!0,observer:"_openedChanged"},position:{type:String,value:"bottom-start",observer:"_positionChanged"},renderer:Function}}static get observers(){return["_durationChanged(duration, opened)","_rendererChanged(renderer, opened, _overlayElement)"]}static show(t,e){return(0,r.qb)(t)?v._createAndShowNotification((e=>{(0,a.XX)(t,e)}),e):v._createAndShowNotification((e=>{e.innerText=t}),e)}static _createAndShowNotification(t,e){const o=document.createElement(v.is);return e&&Number.isFinite(e.duration)&&(o.duration=e.duration),e&&e.position&&(o.position=e.position),e&&e.theme&&o.setAttribute("theme",e.theme),o.renderer=t,document.body.appendChild(o),o.opened=!0,o.addEventListener("opened-changed",(t=>{t.detail.value||o.remove()})),o}get _container(){return v._container||(v._container=document.createElement("vaadin-notification-container"),document.body.appendChild(v._container)),v._container}get _card(){return this._overlayElement}ready(){super.ready(),this._overlayElement=this.shadowRoot.querySelector("vaadin-notification-card"),(0,m.h)(this)}disconnectedCallback(){super.disconnectedCallback(),queueMicrotask((()=>{this.isConnected||(this.opened=!1)}))}requestContentUpdate(){this.renderer&&this.renderer(this._card,this)}_rendererChanged(t,e,o){if(!o)return;const i=this._oldRenderer!==t;this._oldRenderer=t,i&&(o.innerHTML="",delete o._$litPart$),e&&(this._didAnimateNotificationAppend||this._animatedAppendNotificationCard(),this.requestContentUpdate())}open(){this.opened=!0}close(){this.opened=!1}_openedChanged(t){t?(this._container.opened=!0,this._animatedAppendNotificationCard()):this._card&&this._closeNotificationCard()}_animatedAppendNotificationCard(){if(this._card){this._card.setAttribute("opening",""),this._appendNotificationCard();const t=()=>{this._card.removeEventListener("animationend",t),this._card.removeAttribute("opening")};this._card.addEventListener("animationend",t),this._didAnimateNotificationAppend=!0}else this._didAnimateNotificationAppend=!1}_appendNotificationCard(){this._card&&(this._container.shadowRoot.querySelector(`slot[name="${this.position}"]`)?(this._card.slot=this.position,this._container.firstElementChild&&/top/u.test(this.position)?this._container.insertBefore(this._card,this._container.firstElementChild):this._container.appendChild(this._card)):console.warn(`Invalid alignment parameter provided: position=${this.position}`))}_removeNotificationCard(){this._card.parentNode&&this._card.parentNode.removeChild(this._card),this._card.removeAttribute("closing"),this._container.opened=Boolean(this._container.firstElementChild)}_closeNotificationCard(){this._durationTimeoutId&&clearTimeout(this._durationTimeoutId),this._animatedRemoveNotificationCard()}_animatedRemoveNotificationCard(){this._card.setAttribute("closing","");const t=getComputedStyle(this._card).getPropertyValue("animation-name");if(t&&"none"!==t){const t=()=>{this._removeNotificationCard(),this._card.removeEventListener("animationend",t)};this._card.addEventListener("animationend",t)}else this._removeNotificationCard()}_positionChanged(){this.opened&&this._animatedAppendNotificationCard()}_durationChanged(t,e){e&&(clearTimeout(this._durationTimeoutId),t>0&&(this._durationTimeoutId=setTimeout((()=>this.close()),t)))}}(0,l.X)(h),(0,l.X)(p),(0,l.X)(v)},41745:(t,e,o)=>{o(56830);var i=o(6052),n=o(35543);const a=i.AH`
288
+ `}static get is(){return"vaadin-notification"}static get properties(){return{duration:{type:Number,value:5e3},opened:{type:Boolean,value:!1,notify:!0,observer:"_openedChanged"},position:{type:String,value:"bottom-start",observer:"_positionChanged"},renderer:Function}}static get observers(){return["_durationChanged(duration, opened)","_rendererChanged(renderer, opened, _overlayElement)"]}static show(t,e){return(0,r.qb)(t)?v._createAndShowNotification((e=>{(0,a.XX)(t,e)}),e):v._createAndShowNotification((e=>{e.innerText=t}),e)}static _createAndShowNotification(t,e){const o=document.createElement(v.is);return e&&Number.isFinite(e.duration)&&(o.duration=e.duration),e&&e.position&&(o.position=e.position),e&&e.theme&&o.setAttribute("theme",e.theme),o.renderer=t,document.body.appendChild(o),o.opened=!0,o.addEventListener("opened-changed",(t=>{t.detail.value||o.remove()})),o}get _container(){return v._container||(v._container=document.createElement("vaadin-notification-container"),document.body.appendChild(v._container)),v._container}get _card(){return this._overlayElement}ready(){super.ready(),this._overlayElement=this.shadowRoot.querySelector("vaadin-notification-card"),(0,m.h)(this)}disconnectedCallback(){super.disconnectedCallback(),queueMicrotask((()=>{this.isConnected||(this.opened=!1)}))}requestContentUpdate(){this.renderer&&this.renderer(this._card,this)}_rendererChanged(t,e,o){if(!o)return;const i=this._oldRenderer!==t;this._oldRenderer=t,i&&(o.innerHTML="",delete o._$litPart$),e&&(this._didAnimateNotificationAppend||this._animatedAppendNotificationCard(),this.requestContentUpdate())}open(){this.opened=!0}close(){this.opened=!1}_openedChanged(t){t?(this._container.opened=!0,this._animatedAppendNotificationCard()):this._card&&this._closeNotificationCard()}_animatedAppendNotificationCard(){if(this._card){this._card.setAttribute("opening",""),this._appendNotificationCard();const t=()=>{this._card.removeEventListener("animationend",t),this._card.removeAttribute("opening")};this._card.addEventListener("animationend",t),this._didAnimateNotificationAppend=!0}else this._didAnimateNotificationAppend=!1}_appendNotificationCard(){this._card&&(this._container.shadowRoot.querySelector(`slot[name="${this.position}"]`)?(this._card.slot=this.position,this._container.firstElementChild&&/top/u.test(this.position)?this._container.insertBefore(this._card,this._container.firstElementChild):this._container.appendChild(this._card)):console.warn(`Invalid alignment parameter provided: position=${this.position}`))}_removeNotificationCard(){this._card.parentNode&&this._card.parentNode.removeChild(this._card),this._card.removeAttribute("closing"),this._container.opened=Boolean(this._container.firstElementChild)}_closeNotificationCard(){this._durationTimeoutId&&clearTimeout(this._durationTimeoutId),this._animatedRemoveNotificationCard()}_animatedRemoveNotificationCard(){this._card.setAttribute("closing","");const t=getComputedStyle(this._card).getPropertyValue("animation-name");if(t&&"none"!==t){const t=()=>{this._removeNotificationCard(),this._card.removeEventListener("animationend",t)};this._card.addEventListener("animationend",t)}else this._removeNotificationCard()}_positionChanged(){this.opened&&this._animatedAppendNotificationCard()}_durationChanged(t,e){e&&(clearTimeout(this._durationTimeoutId),t>0&&(this._durationTimeoutId=setTimeout((()=>this.close()),t)))}}(0,l.X)(h),(0,l.X)(p),(0,l.X)(v)},52301:(t,e,o)=>{o(48202);var i=o(57224),n=o(46131);const a=i.AH`
289
289
  :host {
290
290
  /* prettier-ignore */
291
291
  --lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
@@ -397,4 +397,4 @@
397
397
  border-left: none;
398
398
  border-right: 2px solid var(--lumo-contrast-30pct);
399
399
  }
400
- `;(0,i.SF)("",r,{moduleId:"lumo-typography"}),(0,n.q)("typography-props",a)},96805:(t,e,o)=>{o.d(e,{Qk:()=>a,qb:()=>r});var i=o(36752);const{D:n}=i.ge,a={HTML:1,SVG:2},r=(t,e)=>void 0===e?void 0!==t?._$litType$:t?._$litType$===e}}]);
400
+ `;(0,i.SF)("",r,{moduleId:"lumo-typography"}),(0,n.q)("typography-props",a)},15273:(t,e,o)=>{o.d(e,{Qk:()=>a,qb:()=>r});var i=o(6452);const{I:n}=i.ge,a={HTML:1,SVG:2,MATHML:3},r=(t,e)=>void 0===e?void 0!==t?._$litType$:t?._$litType$===e}}]);