@descope/web-components-ui 1.0.409 → 1.0.411

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 (155) hide show
  1. package/dist/cjs/index.cjs.js +823 -49
  2. package/dist/cjs/index.cjs.js.map +1 -1
  3. package/dist/index.esm.js +339 -40
  4. package/dist/index.esm.js.map +1 -1
  5. package/dist/umd/1012.js +148 -0
  6. package/dist/umd/{7607.js.LICENSE.txt → 1012.js.LICENSE.txt} +6 -0
  7. package/dist/umd/{7407.js → 1180.js} +5 -117
  8. package/dist/umd/{7407.js.LICENSE.txt → 1180.js.LICENSE.txt} +6 -0
  9. package/dist/umd/{8980.js → 1221.js} +5 -5
  10. package/dist/umd/{8980.js.LICENSE.txt → 1221.js.LICENSE.txt} +6 -0
  11. package/dist/umd/1437.js +6 -6
  12. package/dist/umd/{1053.js → 1497.js} +19 -19
  13. package/dist/umd/{1053.js.LICENSE.txt → 1497.js.LICENSE.txt} +6 -0
  14. package/dist/umd/2520.js +1 -0
  15. package/dist/umd/2584.js +123 -0
  16. package/dist/umd/286.js +2 -2
  17. package/dist/umd/351.js +7 -7
  18. package/dist/umd/3607.js +1 -1
  19. package/dist/umd/3607.js.LICENSE.txt +6 -0
  20. package/dist/umd/4480.js +1 -1
  21. package/dist/umd/{1414.js → 4671.js} +10 -122
  22. package/dist/umd/{1414.js.LICENSE.txt → 4671.js.LICENSE.txt} +6 -0
  23. package/dist/umd/4771.js +129 -0
  24. package/dist/umd/481.js +2 -0
  25. package/dist/umd/4834.js +4 -4
  26. package/dist/umd/5021.js +170 -0
  27. package/dist/umd/5086.js +2 -2
  28. package/dist/umd/5273.js +4 -4
  29. package/dist/umd/5412.js +2 -2
  30. package/dist/umd/5443.js +4 -116
  31. package/dist/umd/{6637.js → 6206.js} +9 -9
  32. package/dist/umd/{6637.js.LICENSE.txt → 6206.js.LICENSE.txt} +0 -6
  33. package/dist/umd/6474.js +6 -6
  34. package/dist/umd/{7607.js → 7200.js} +16 -16
  35. package/dist/umd/7824.js +4 -116
  36. package/dist/umd/7871.js +452 -0
  37. package/dist/umd/8082.js +319 -0
  38. package/dist/umd/{7212.js → 8114.js} +16 -16
  39. package/dist/umd/{7212.js.LICENSE.txt → 8114.js.LICENSE.txt} +6 -0
  40. package/dist/umd/8677.js +275 -0
  41. package/dist/umd/{9632.js.LICENSE.txt → 8677.js.LICENSE.txt} +6 -0
  42. package/dist/umd/{5026.js → 8799.js} +5 -117
  43. package/dist/umd/{5026.js.LICENSE.txt → 8799.js.LICENSE.txt} +6 -0
  44. package/dist/umd/8910.js +832 -0
  45. package/dist/umd/{2919.js.LICENSE.txt → 8910.js.LICENSE.txt} +6 -0
  46. package/dist/umd/952.js +2 -0
  47. package/dist/umd/{2566.js.LICENSE.txt → 952.js.LICENSE.txt} +0 -6
  48. package/dist/umd/{8162.js → 9547.js} +3 -3
  49. package/dist/umd/{8162.js.LICENSE.txt → 9547.js.LICENSE.txt} +6 -0
  50. package/dist/umd/DescopeDev.js +1674 -1
  51. package/dist/umd/DescopeDev.js.LICENSE.txt +92 -0
  52. package/dist/umd/boolean-fields-descope-checkbox-index-js.js +1 -1
  53. package/dist/umd/boolean-fields-descope-switch-toggle-index-js.js +1 -1
  54. package/dist/umd/button-selection-group-fields-descope-button-multi-selection-group-index-js.js +1 -1
  55. package/dist/umd/button-selection-group-fields-descope-button-selection-group-index-js.js +1 -1
  56. package/dist/umd/descope-apps-list-index-js.js +1 -1
  57. package/dist/umd/descope-avatar-index-js.js +1 -1
  58. package/dist/umd/descope-button-index-js.js +4 -116
  59. package/dist/umd/descope-combo-box-index-js.js +14 -14
  60. package/dist/umd/descope-date-field-index-js.js +1 -1
  61. package/dist/umd/descope-email-field-index-js.js +4 -4
  62. package/dist/umd/descope-grid-descope-grid-custom-column-index-js.js +4 -4
  63. package/dist/umd/descope-grid-descope-grid-custom-column-index-js.js.LICENSE.txt +0 -6
  64. package/dist/umd/descope-grid-descope-grid-item-details-column-index-js.js +19 -4
  65. package/dist/umd/descope-grid-descope-grid-item-details-column-index-js.js.LICENSE.txt +18 -0
  66. package/dist/umd/descope-grid-descope-grid-selection-column-index-js.js +1 -1
  67. package/dist/umd/descope-grid-descope-grid-selection-column-index-js.js.LICENSE.txt +0 -6
  68. package/dist/umd/descope-grid-descope-grid-text-column-index-js.js +2 -2
  69. package/dist/umd/descope-grid-descope-grid-text-column-index-js.js.LICENSE.txt +0 -6
  70. package/dist/umd/descope-grid-index-js.js +1 -1
  71. package/dist/umd/descope-hybrid-field-index-js.js +3 -3
  72. package/dist/umd/descope-multi-select-combo-box-index-js.js +1 -1
  73. package/dist/umd/descope-new-password-descope-new-password-internal-index-js.js +1 -1
  74. package/dist/umd/descope-new-password-index-js.js +2 -1
  75. package/dist/umd/descope-new-password-index-js.js.LICENSE.txt +5 -0
  76. package/dist/umd/descope-number-field-index-js.js +1 -1
  77. package/dist/umd/descope-passcode-index-js.js +1 -1
  78. package/dist/umd/descope-password-index-js.js +1 -1
  79. package/dist/umd/descope-radio-group-index-js.js +1 -1
  80. package/dist/umd/descope-scopes-list-index-js.js +1 -1
  81. package/dist/umd/descope-security-questions-setup-index-js.js +1 -1
  82. package/dist/umd/descope-security-questions-verify-index-js.js +2 -2
  83. package/dist/umd/descope-security-questions-verify-index-js.js.LICENSE.txt +6 -0
  84. package/dist/umd/descope-text-area-index-js.js +1 -1
  85. package/dist/umd/descope-text-field-index-js.js +2 -2
  86. package/dist/umd/descope-text-field-index-js.js.LICENSE.txt +6 -0
  87. package/dist/umd/descope-user-attribute-index-js.js +1 -1
  88. package/dist/umd/descope-user-auth-method-index-js.js +1 -1
  89. package/dist/umd/index.js +1 -1
  90. package/dist/umd/mapping-fields-descope-mappings-field-descope-mapping-item-index-js.js +1 -1
  91. package/dist/umd/mapping-fields-descope-mappings-field-descope-mappings-field-internal-index-js.js +1 -1
  92. package/dist/umd/mapping-fields-descope-mappings-field-index-js.js +1 -1
  93. package/dist/umd/mapping-fields-descope-saml-group-mappings-index-js.js +1 -1
  94. package/dist/umd/phone-fields-descope-phone-field-descope-phone-field-internal-index-js.js +1 -1
  95. package/dist/umd/phone-fields-descope-phone-field-index-js.js +1 -1
  96. package/dist/umd/phone-fields-descope-phone-input-box-field-descope-phone-input-box-internal-index-js.js +2 -2
  97. package/dist/umd/phone-fields-descope-phone-input-box-field-descope-phone-input-box-internal-index-js.js.LICENSE.txt +6 -0
  98. package/dist/umd/phone-fields-descope-phone-input-box-field-index-js.js +15 -15
  99. package/dist/umd/phone-fields-descope-phone-input-box-field-index-js.js.LICENSE.txt +6 -0
  100. package/package.json +1 -1
  101. package/src/components/boolean-fields/descope-checkbox/CheckboxClass.js +5 -0
  102. package/src/components/boolean-fields/descope-switch-toggle/SwitchToggleClass.js +6 -0
  103. package/src/components/button-selection-group-fields/baseButtonSelectionGroup.js +5 -0
  104. package/src/components/descope-combo-box/ComboBoxClass.js +5 -0
  105. package/src/components/descope-hybrid-field/HybridFieldClass.js +55 -0
  106. package/src/components/descope-multi-select-combo-box/MultiSelectComboBoxClass.js +5 -0
  107. package/src/components/descope-new-password/NewPasswordClass.js +5 -0
  108. package/src/components/descope-passcode/PasscodeClass.js +5 -0
  109. package/src/components/descope-password/PasswordClass.js +5 -0
  110. package/src/components/descope-security-questions-setup/SecurityQuestionsSetupClass.js +3 -0
  111. package/src/components/descope-security-questions-verify/SecurityQuestionsVerifyClass.js +24 -0
  112. package/src/components/descope-text-area/TextAreaClass.js +5 -0
  113. package/src/components/descope-text-field/textFieldMappings.js +6 -0
  114. package/src/components/mapping-fields/descope-mappings-field/MappingsFieldClass.js +3 -0
  115. package/src/components/mapping-fields/descope-mappings-field/descope-mapping-item/MappingItem.js +10 -1
  116. package/src/components/mapping-fields/descope-mappings-field/descope-mappings-field-internal/MappingsFieldInternal.js +13 -1
  117. package/src/components/mapping-fields/descope-saml-group-mappings/SamlGroupMappingsClass.js +7 -1
  118. package/src/components/phone-fields/descope-phone-field/PhoneFieldClass.js +6 -0
  119. package/src/components/phone-fields/descope-phone-input-box-field/PhoneFieldInputBoxClass.js +6 -0
  120. package/src/theme/components/buttonSelectionGroup/baseButtonSelectionGroup.js +9 -1
  121. package/src/theme/components/checkbox.js +7 -0
  122. package/src/theme/components/comboBox.js +7 -0
  123. package/src/theme/components/emailField.js +7 -0
  124. package/src/theme/components/hybridField.js +7 -0
  125. package/src/theme/components/inputWrapper.js +6 -0
  126. package/src/theme/components/multiSelectComboBox.js +7 -0
  127. package/src/theme/components/newPassword.js +7 -0
  128. package/src/theme/components/numberField.js +7 -0
  129. package/src/theme/components/passcode.js +7 -0
  130. package/src/theme/components/password.js +7 -0
  131. package/src/theme/components/phoneField.js +7 -0
  132. package/src/theme/components/phoneInputBoxField.js +7 -0
  133. package/src/theme/components/radioGroup/radioGroup.js +5 -0
  134. package/src/theme/components/samlGroupMappings.js +7 -0
  135. package/src/theme/components/switchToggle.js +7 -0
  136. package/src/theme/components/textArea.js +8 -0
  137. package/src/theme/components/textField.js +7 -0
  138. package/dist/umd/2566.js +0 -2
  139. package/dist/umd/2755.js +0 -1
  140. package/dist/umd/2919.js +0 -832
  141. package/dist/umd/3222.js +0 -282
  142. package/dist/umd/3711.js +0 -123
  143. package/dist/umd/6418.js +0 -2
  144. package/dist/umd/6726.js +0 -148
  145. package/dist/umd/8164.js +0 -319
  146. package/dist/umd/9167.js +0 -452
  147. package/dist/umd/9632.js +0 -275
  148. package/dist/umd/9895.js +0 -17
  149. /package/dist/umd/{3711.js.LICENSE.txt → 2584.js.LICENSE.txt} +0 -0
  150. /package/dist/umd/{3222.js.LICENSE.txt → 4771.js.LICENSE.txt} +0 -0
  151. /package/dist/umd/{6418.js.LICENSE.txt → 481.js.LICENSE.txt} +0 -0
  152. /package/dist/umd/{9895.js.LICENSE.txt → 5021.js.LICENSE.txt} +0 -0
  153. /package/dist/umd/{6726.js.LICENSE.txt → 7200.js.LICENSE.txt} +0 -0
  154. /package/dist/umd/{9167.js.LICENSE.txt → 7871.js.LICENSE.txt} +0 -0
  155. /package/dist/umd/{8164.js.LICENSE.txt → 8082.js.LICENSE.txt} +0 -0
package/dist/umd/4834.js CHANGED
@@ -1,5 +1,5 @@
1
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`
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}})()},64802:(t,e,o)=>{o.d(e,{q:()=>c});var i=o(85251),n=o(97552),a=o(81510),r=o(27111),s=o(35717);let l;(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(){(0,n.r)()};const d=new Set,c=t=>class extends((0,s.v)(t)){static finalize(){super.finalize();const{is:t}=this;t&&!d.has(t)&&(window.Vaadin.registrations.push(this),d.add(t),window.Vaadin.developmentModeCallback&&(l=r.aq.debounce(l,a.g8,(()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()})),(0,r.Oy)(l)))}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`
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(63033),a=o(86161),r=o(38240),s=o(53794),l=o(38735),d=o(64802),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`
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)},41745:(t,e,o)=>{o(56830);var i=o(6052),n=o(96287);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)},97552:(t,e,o)=>{o.d(e,{r:()=>i});const i=function(){}},18504:(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},38240:(t,e,o)=>{o.d(e,{Qk:()=>i.Qk,qb:()=>i.qb});var i=o(18504)}}]);
@@ -0,0 +1,170 @@
1
+ /*! For license information please see 5021.js.LICENSE.txt */
2
+ "use strict";(self.webpackChunk_descope_web_components_ui=self.webpackChunk_descope_web_components_ui||[]).push([[5021],{94834:(e,t,r)=>{r.d(t,{Cp:()=>h,K8:()=>d,Pg:()=>n});var s=r(55938);const i=new Map;function a(e){return i.has(e)||i.set(e,new WeakMap),i.get(e)}function o(e,t){e&&e.removeAttribute(t)}function l(e,t){if(!e||!t)return;const r=a(t);if(r.has(e))return;const i=(0,s.Z4)(e.getAttribute(t));r.set(e,new Set(i))}function n(e,t){if(!e||!t)return;const r=a(t),i=r.get(e);i&&0!==i.size?(0,s.iA)(e,t,(0,s.sz)(i)):e.removeAttribute(t),r.delete(e)}function d(e,t,r={newId:null,oldId:null,fromUser:!1}){if(!e||!t)return;const{newId:i,oldId:n,fromUser:d}=r,h=a(t),u=h.get(e);if(!d&&u)return n&&u.delete(n),void(i&&u.add(i));d&&(u?i||h.delete(e):l(e,t),o(e,t)),(0,s.Wr)(e,t,n);const _=i||(0,s.sz)(u);_&&(0,s.iA)(e,t,_)}function h(e,t){l(e,t),o(e,t)}},12689:(e,t,r)=>{r.d(t,{v:()=>o});var s=r(85297),i=r(98751),a=r(1886);const o=(0,s.y)((e=>class extends((0,i.y)((0,a.l)(e))){static get properties(){return{autofocus:{type:Boolean},focusElement:{type:Object,readOnly:!0,observer:"_focusElementChanged"},_lastTabIndex:{value:0}}}constructor(){super(),this._boundOnBlur=this._onBlur.bind(this),this._boundOnFocus=this._onFocus.bind(this)}ready(){super.ready(),this.autofocus&&!this.disabled&&requestAnimationFrame((()=>{this.focus(),this.setAttribute("focus-ring","")}))}focus(){this.focusElement&&!this.disabled&&this.focusElement.focus()}blur(){this.focusElement&&this.focusElement.blur()}click(){this.focusElement&&!this.disabled&&this.focusElement.click()}_focusElementChanged(e,t){e?(e.disabled=this.disabled,this._addFocusListeners(e),this.__forwardTabIndex(this.tabindex)):t&&this._removeFocusListeners(t)}_addFocusListeners(e){e.addEventListener("blur",this._boundOnBlur),e.addEventListener("focus",this._boundOnFocus)}_removeFocusListeners(e){e.removeEventListener("blur",this._boundOnBlur),e.removeEventListener("focus",this._boundOnFocus)}_onFocus(e){e.stopPropagation(),this.dispatchEvent(new Event("focus"))}_onBlur(e){e.stopPropagation(),this.dispatchEvent(new Event("blur"))}_shouldSetFocus(e){return e.target===this.focusElement}_shouldRemoveFocus(e){return e.target===this.focusElement}_disabledChanged(e,t){super._disabledChanged(e,t),this.focusElement&&(this.focusElement.disabled=e),e&&this.blur()}_tabindexChanged(e){this.__forwardTabIndex(e)}__forwardTabIndex(e){void 0!==e&&this.focusElement&&(this.focusElement.tabIndex=e,-1!==e&&(this.tabindex=void 0)),this.disabled&&e&&(-1!==e&&(this._lastTabIndex=e),this.tabindex=void 0)}}))},50063:(e,t,r)=>{r.d(t,{i:()=>s});const s=(0,r(85297).y)((e=>class extends e{static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0}}}_disabledChanged(e){this._setAriaDisabled(e)}_setAriaDisabled(e){e?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}click(){this.disabled||super.click()}}))},70446:(e,t,r)=>{r.d(t,{G:()=>i});var s=r(94834);class i{constructor(e){this.host=e,this.__required=!1}setTarget(e){this.__target=e,this.__setAriaRequiredAttribute(this.__required),this.__setLabelIdToAriaAttribute(this.__labelId,this.__labelId),null!=this.__labelIdFromUser&&this.__setLabelIdToAriaAttribute(this.__labelIdFromUser,this.__labelIdFromUser,!0),this.__setErrorIdToAriaAttribute(this.__errorId),this.__setHelperIdToAriaAttribute(this.__helperId),this.setAriaLabel(this.__label)}setRequired(e){this.__setAriaRequiredAttribute(e),this.__required=e}setAriaLabel(e){this.__setAriaLabelToAttribute(e),this.__label=e}setLabelId(e,t=!1){const r=t?this.__labelIdFromUser:this.__labelId;this.__setLabelIdToAriaAttribute(e,r,t),t?this.__labelIdFromUser=e:this.__labelId=e}setErrorId(e){this.__setErrorIdToAriaAttribute(e,this.__errorId),this.__errorId=e}setHelperId(e){this.__setHelperIdToAriaAttribute(e,this.__helperId),this.__helperId=e}__setAriaLabelToAttribute(e){this.__target&&(e?((0,s.Cp)(this.__target,"aria-labelledby"),this.__target.setAttribute("aria-label",e)):this.__label&&((0,s.Pg)(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(e,t,r){(0,s.K8)(this.__target,"aria-labelledby",{newId:e,oldId:t,fromUser:r})}__setErrorIdToAriaAttribute(e,t){(0,s.K8)(this.__target,"aria-describedby",{newId:e,oldId:t,fromUser:!1})}__setHelperIdToAriaAttribute(e,t){(0,s.K8)(this.__target,"aria-describedby",{newId:e,oldId:t,fromUser:!1})}__setAriaRequiredAttribute(e){this.__target&&(["input","textarea"].includes(this.__target.localName)||(e?this.__target.setAttribute("aria-required","true"):this.__target.removeAttribute("aria-required")))}}},67766:(e,t,r)=>{r.d(t,{f:()=>s});const s=(0,r(85297).y)((e=>class extends e{ready(){super.ready(),this.addEventListener("keydown",(e=>{this._onKeyDown(e)})),this.addEventListener("keyup",(e=>{this._onKeyUp(e)}))}_onKeyDown(e){switch(e.key){case"Enter":this._onEnter(e);break;case"Escape":this._onEscape(e)}}_onKeyUp(e){}_onEnter(e){}_onEscape(e){}}))},1886:(e,t,r)=>{r.d(t,{l:()=>i});var s=r(50063);const i=e=>class extends((0,s.i)(e)){static get properties(){return{tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(e,t){super._disabledChanged(e,t),e?(void 0!==this.tabindex&&(this._lastTabIndex=this.tabindex),this.tabindex=-1):t&&(this.tabindex=this._lastTabIndex)}_tabindexChanged(e){this.disabled&&-1!==e&&(this._lastTabIndex=e,this.tabindex=-1)}}},19279:(e,t,r)=>{r.d(t,{q:()=>s});const s=(0,r(85297).y)((e=>class extends e{static get properties(){return{stateTarget:{type:Object,observer:"_stateTargetChanged"}}}static get delegateAttrs(){return[]}static get delegateProps(){return[]}ready(){super.ready(),this._createDelegateAttrsObserver(),this._createDelegatePropsObserver()}_stateTargetChanged(e){e&&(this._ensureAttrsDelegated(),this._ensurePropsDelegated())}_createDelegateAttrsObserver(){this._createMethodObserver(`_delegateAttrsChanged(${this.constructor.delegateAttrs.join(", ")})`)}_createDelegatePropsObserver(){this._createMethodObserver(`_delegatePropsChanged(${this.constructor.delegateProps.join(", ")})`)}_ensureAttrsDelegated(){this.constructor.delegateAttrs.forEach((e=>{this._delegateAttribute(e,this[e])}))}_ensurePropsDelegated(){this.constructor.delegateProps.forEach((e=>{this._delegateProperty(e,this[e])}))}_delegateAttrsChanged(...e){this.constructor.delegateAttrs.forEach(((t,r)=>{this._delegateAttribute(t,e[r])}))}_delegatePropsChanged(...e){this.constructor.delegateProps.forEach(((t,r)=>{this._delegateProperty(t,e[r])}))}_delegateAttribute(e,t){this.stateTarget&&("invalid"===e&&this._delegateAttribute("aria-invalid",!!t&&"true"),"boolean"==typeof t?this.stateTarget.toggleAttribute(e,t):t?this.stateTarget.setAttribute(e,t):this.stateTarget.removeAttribute(e))}_delegateProperty(e,t){this.stateTarget&&(this.stateTarget[e]=t)}}))},85399:(e,t,r)=>{r.d(t,{J:()=>i});var s=r(32065);class i extends s.r{constructor(e,t,r,s={}){super(e,t,r,{...s,useUniqueId:!0})}initCustomNode(e){this.__updateNodeId(e),this.__notifyChange(e)}teardownNode(e){const t=this.getSlotChild();t&&t!==this.defaultNode?this.__notifyChange(t):(this.restoreDefaultNode(),this.updateDefaultNode(this.node))}attachDefaultNode(){const e=super.attachDefaultNode();return e&&this.__updateNodeId(e),e}restoreDefaultNode(){}updateDefaultNode(e){this.__notifyChange(e)}observeNode(e){this.__nodeObserver&&this.__nodeObserver.disconnect(),this.__nodeObserver=new MutationObserver((e=>{e.forEach((e=>{const t=e.target,r=t===this.node;"attributes"===e.type?r&&this.__updateNodeId(t):(r||t.parentElement===this.node)&&this.__notifyChange(this.node)}))})),this.__nodeObserver.observe(e,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0,characterData:!0})}__hasContent(e){return!!e&&(e.nodeType===Node.ELEMENT_NODE&&(customElements.get(e.localName)||e.children.length>0)||e.textContent&&""!==e.textContent.trim())}__notifyChange(e){this.dispatchEvent(new CustomEvent("slot-content-changed",{detail:{hasContent:this.__hasContent(e),node:e}}))}__updateNodeId(e){const t=!this.nodes||e===this.nodes[0];e.nodeType!==Node.ELEMENT_NODE||this.multiple&&!t||e.id||(e.id=this.defaultId)}}},64066:(e,t,r)=>{r.d(t,{F:()=>i});var s=r(85399);class i extends s.J{constructor(e){super(e,"error-message","div")}setErrorMessage(e){this.errorMessage=e,this.updateDefaultNode(this.node)}setInvalid(e){this.invalid=e,this.updateDefaultNode(this.node)}initAddedNode(e){e!==this.defaultNode&&this.initCustomNode(e)}initNode(e){this.updateDefaultNode(e)}initCustomNode(e){e.textContent&&!this.errorMessage&&(this.errorMessage=e.textContent.trim()),super.initCustomNode(e)}restoreDefaultNode(){this.attachDefaultNode()}updateDefaultNode(e){const{errorMessage:t,invalid:r}=this,s=Boolean(r&&t&&""!==t.trim());e&&(e.textContent=s?t:"",e.hidden=!s,s?e.setAttribute("role","alert"):e.removeAttribute("role")),super.updateDefaultNode(e)}}},79179:(e,t,r)=>{r.d(t,{Y:()=>d});var s=r(70446),i=r(988),a=r(64066),o=r(50524),l=r(20245),n=r(63853);const d=e=>class extends((0,n.u)((0,l.U)((0,i.w)(e)))){static get properties(){return{ariaTarget:{type:Object,observer:"_ariaTargetChanged"},errorMessage:{type:String,observer:"_errorMessageChanged"},helperText:{type:String,observer:"_helperTextChanged"},accessibleName:{type:String,observer:"_accessibleNameChanged"},accessibleNameRef:{type:String,observer:"_accessibleNameRefChanged"}}}static get observers(){return["_invalidChanged(invalid)","_requiredChanged(required)"]}constructor(){super(),this._fieldAriaController=new s.G(this),this._helperController=new o.T(this),this._errorController=new a.F(this),this._errorController.addEventListener("slot-content-changed",(e=>{this.toggleAttribute("has-error-message",e.detail.hasContent)})),this._labelController.addEventListener("slot-content-changed",(e=>{const{hasContent:t,node:r}=e.detail;this.__labelChanged(t,r)})),this._helperController.addEventListener("slot-content-changed",(e=>{const{hasContent:t,node:r}=e.detail;this.toggleAttribute("has-helper",t),this.__helperChanged(t,r)}))}get _errorNode(){return this._errorController.node}get _helperNode(){return this._helperController.node}ready(){super.ready(),this.addController(this._fieldAriaController),this.addController(this._helperController),this.addController(this._errorController)}__helperChanged(e,t){e?this._fieldAriaController.setHelperId(t.id):this._fieldAriaController.setHelperId(null)}_accessibleNameChanged(e){this._fieldAriaController.setAriaLabel(e)}_accessibleNameRefChanged(e){this._fieldAriaController.setLabelId(e,!0)}__labelChanged(e,t){e?this._fieldAriaController.setLabelId(t.id):this._fieldAriaController.setLabelId(null)}_errorMessageChanged(e){this._errorController.setErrorMessage(e)}_helperTextChanged(e){this._helperController.setHelperText(e)}_ariaTargetChanged(e){e&&this._fieldAriaController.setTarget(e)}_requiredChanged(e){this._fieldAriaController.setRequired(e)}_invalidChanged(e){this._errorController.setInvalid(e),setTimeout((()=>{if(e){const e=this._errorNode;this._fieldAriaController.setErrorId(e&&e.id)}else this._fieldAriaController.setErrorId(null)}))}}},50524:(e,t,r)=>{r.d(t,{T:()=>i});var s=r(85399);class i extends s.J{constructor(e){super(e,"helper",null)}setHelperText(e){this.helperText=e,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{helperText:e}=this;if(e&&""!==e.trim()){this.tagName="div";const e=this.attachDefaultNode();this.observeNode(e)}}updateDefaultNode(e){e&&(e.textContent=this.helperText),super.updateDefaultNode(e)}initCustomNode(e){super.initCustomNode(e),this.observeNode(e)}}},85731:(e,t,r)=>{r.d(t,{g:()=>s});const s=(0,r(85297).y)((e=>class extends e{static get properties(){return{inputElement:{type:Object,readOnly:!0,observer:"_inputElementChanged"},type:{type:String,readOnly:!0},value:{type:String,value:"",observer:"_valueChanged",notify:!0,sync:!0},_hasInputValue:{type:Boolean,value:!1,observer:"_hasInputValueChanged"}}}constructor(){super(),this._boundOnInput=this.__onInput.bind(this),this._boundOnChange=this._onChange.bind(this)}get _hasValue(){return null!=this.value&&""!==this.value}get _inputElementValueProperty(){return"value"}get _inputElementValue(){return this.inputElement?this.inputElement[this._inputElementValueProperty]:void 0}set _inputElementValue(e){this.inputElement&&(this.inputElement[this._inputElementValueProperty]=e)}clear(){this._hasInputValue=!1,this.value="",this._inputElementValue=""}_addInputListeners(e){e.addEventListener("input",this._boundOnInput),e.addEventListener("change",this._boundOnChange)}_removeInputListeners(e){e.removeEventListener("input",this._boundOnInput),e.removeEventListener("change",this._boundOnChange)}_forwardInputValue(e){this.inputElement&&(this._inputElementValue=null!=e?e:"")}_inputElementChanged(e,t){e?this._addInputListeners(e):t&&this._removeInputListeners(t)}_hasInputValueChanged(e,t){(e||t)&&this.dispatchEvent(new CustomEvent("has-input-value-changed"))}__onInput(e){this._setHasInputValue(e),this._onInput(e)}_onInput(e){const t=e.composedPath()[0];this.__userInput=e.isTrusted,this.value=t.value,this.__userInput=!1}_onChange(e){}_toggleHasValue(e){this.toggleAttribute("has-value",e)}_valueChanged(e,t){this._toggleHasValue(this._hasValue),""===e&&void 0===t||this.__userInput||this._forwardInputValue(e)}_setHasInputValue(e){const t=e.composedPath()[0];this._hasInputValue=t.value.length>0}}))},67242:(e,t,r)=>{r.d(t,{t:()=>i});var s=r(85399);class i extends s.J{constructor(e){super(e,"label","label")}setLabel(e){this.label=e,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{label:e}=this;if(e&&""!==e.trim()){const e=this.attachDefaultNode();this.observeNode(e)}}updateDefaultNode(e){e&&(e.textContent=this.label),super.updateDefaultNode(e)}initCustomNode(e){super.initCustomNode(e),this.observeNode(e)}}},20245:(e,t,r)=>{r.d(t,{U:()=>o});var s=r(85297),i=r(988),a=r(67242);const o=(0,s.y)((e=>class extends((0,i.w)(e)){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new a.t(this),this._labelController.addEventListener("slot-content-changed",(e=>{this.toggleAttribute("has-label",e.detail.hasContent)}))}get _labelId(){const e=this._labelNode;return e&&e.id}get _labelNode(){return this._labelController.node}ready(){super.ready(),this.addController(this._labelController)}_labelChanged(e){this._labelController.setLabel(e)}}))},3550:(e,t,r)=>{r.d(t,{q:()=>s});class s{constructor(e,t){this.input=e,this.__preventDuplicateLabelClick=this.__preventDuplicateLabelClick.bind(this),t.addEventListener("slot-content-changed",(e=>{this.__initLabel(e.detail.node)})),this.__initLabel(t.node)}__initLabel(e){e&&(e.addEventListener("click",this.__preventDuplicateLabelClick),this.input&&e.setAttribute("for",this.input.id))}__preventDuplicateLabelClick(){const e=t=>{t.stopImmediatePropagation(),this.input.removeEventListener("click",e)};this.input.addEventListener("click",e)}}},63853:(e,t,r)=>{r.d(t,{u:()=>s});const s=(0,r(85297).y)((e=>class extends e{static get properties(){return{invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},required:{type:Boolean,reflectToAttribute:!0}}}validate(){const e=this.checkValidity();return this._setInvalid(!e),this.dispatchEvent(new CustomEvent("validated",{detail:{valid:e}})),e}checkValidity(){return!this.required||!!this.value}_setInvalid(e){this._shouldSetInvalid(e)&&(this.invalid=e)}_shouldSetInvalid(e){return!0}}))},61137:(e,t,r)=>{r.d(t,{d:()=>s}),r(92541),r(66206),r(23395),r(41745);const s=r(6052).AH`
3
+ :host {
4
+ --_helper-spacing: var(--vaadin-input-field-helper-spacing, 0.4em);
5
+ }
6
+
7
+ :host([has-helper]) [part='helper-text']::before {
8
+ content: '';
9
+ display: block;
10
+ height: var(--_helper-spacing);
11
+ }
12
+
13
+ [part='helper-text'] {
14
+ display: block;
15
+ color: var(--vaadin-input-field-helper-color, var(--lumo-secondary-text-color));
16
+ font-size: var(--vaadin-input-field-helper-font-size, var(--lumo-font-size-xs));
17
+ line-height: var(--lumo-line-height-xs);
18
+ font-weight: var(--vaadin-input-field-helper-font-weight, 400);
19
+ margin-left: calc(var(--lumo-border-radius-m) / 4);
20
+ transition: color 0.2s;
21
+ }
22
+
23
+ :host(:hover:not([readonly])) [part='helper-text'] {
24
+ color: var(--lumo-body-text-color);
25
+ }
26
+
27
+ :host([disabled]) [part='helper-text'] {
28
+ color: var(--lumo-disabled-text-color);
29
+ -webkit-text-fill-color: var(--lumo-disabled-text-color);
30
+ }
31
+
32
+ :host([has-helper][theme~='helper-above-field']) [part='helper-text']::before {
33
+ display: none;
34
+ }
35
+
36
+ :host([has-helper][theme~='helper-above-field']) [part='helper-text']::after {
37
+ content: '';
38
+ display: block;
39
+ height: var(--_helper-spacing);
40
+ }
41
+
42
+ :host([has-helper][theme~='helper-above-field']) [part='label'] {
43
+ order: 0;
44
+ padding-bottom: var(--_helper-spacing);
45
+ }
46
+
47
+ :host([has-helper][theme~='helper-above-field']) [part='helper-text'] {
48
+ order: 1;
49
+ }
50
+
51
+ :host([has-helper][theme~='helper-above-field']) [part='label'] + * {
52
+ order: 2;
53
+ }
54
+
55
+ :host([has-helper][theme~='helper-above-field']) [part='error-message'] {
56
+ order: 3;
57
+ }
58
+ `},48593:(e,t,r)=>{r.d(t,{Q:()=>i}),r(92541),r(1159),r(23395),r(41745);var s=r(6052);const i=s.AH`
59
+ [part='label'] {
60
+ align-self: flex-start;
61
+ color: var(--vaadin-input-field-label-color, var(--lumo-secondary-text-color));
62
+ font-weight: var(--vaadin-input-field-label-font-weight, 500);
63
+ font-size: var(--vaadin-input-field-label-font-size, var(--lumo-font-size-s));
64
+ margin-left: calc(var(--lumo-border-radius-m) / 4);
65
+ transition: color 0.2s;
66
+ line-height: 1;
67
+ padding-right: 1em;
68
+ padding-bottom: 0.5em;
69
+ /* As a workaround for diacritics being cut off, add a top padding and a
70
+ negative margin to compensate */
71
+ padding-top: 0.25em;
72
+ margin-top: -0.25em;
73
+ overflow: hidden;
74
+ white-space: nowrap;
75
+ text-overflow: ellipsis;
76
+ position: relative;
77
+ max-width: 100%;
78
+ box-sizing: border-box;
79
+ }
80
+
81
+ :host([focused]:not([readonly])) [part='label'] {
82
+ color: var(--vaadin-input-field-focused-label-color, var(--lumo-primary-text-color));
83
+ }
84
+
85
+ :host(:hover:not([readonly]):not([focused])) [part='label'] {
86
+ color: var(--vaadin-input-field-hovered-label-color, var(--lumo-body-text-color));
87
+ }
88
+
89
+ /* Touch device adjustment */
90
+ @media (pointer: coarse) {
91
+ :host(:hover:not([readonly]):not([focused])) [part='label'] {
92
+ color: var(--vaadin-input-field-label-color, var(--lumo-secondary-text-color));
93
+ }
94
+ }
95
+
96
+ :host([has-label])::before {
97
+ margin-top: calc(var(--lumo-font-size-s) * 1.5);
98
+ }
99
+
100
+ :host([has-label][theme~='small'])::before {
101
+ margin-top: calc(var(--lumo-font-size-xs) * 1.5);
102
+ }
103
+
104
+ :host([has-label]) {
105
+ padding-top: var(--lumo-space-m);
106
+ }
107
+
108
+ :host([has-label]) ::slotted([slot='tooltip']) {
109
+ --vaadin-tooltip-offset-bottom: calc((var(--lumo-space-m) - var(--lumo-space-xs)) * -1);
110
+ }
111
+
112
+ :host([required]) [part='required-indicator']::after {
113
+ content: var(--lumo-required-field-indicator, '\\2022');
114
+ transition: opacity 0.2s;
115
+ color: var(--lumo-required-field-indicator-color, var(--lumo-primary-text-color));
116
+ position: absolute;
117
+ right: 0;
118
+ width: 1em;
119
+ text-align: center;
120
+ }
121
+
122
+ :host([invalid]) [part='required-indicator']::after {
123
+ color: var(--lumo-required-field-indicator-color, var(--lumo-error-text-color));
124
+ }
125
+
126
+ [part='error-message'] {
127
+ margin-left: calc(var(--lumo-border-radius-m) / 4);
128
+ font-size: var(--vaadin-input-field-error-font-size, var(--lumo-font-size-xs));
129
+ line-height: var(--lumo-line-height-xs);
130
+ font-weight: var(--vaadin-input-field-error-font-weight, 400);
131
+ color: var(--vaadin-input-field-error-color, var(--lumo-error-text-color));
132
+ will-change: max-height;
133
+ transition: 0.4s max-height;
134
+ max-height: 5em;
135
+ }
136
+
137
+ :host([has-error-message]) [part='error-message']::before,
138
+ :host([has-error-message]) [part='error-message']::after {
139
+ content: '';
140
+ display: block;
141
+ height: 0.4em;
142
+ }
143
+
144
+ :host(:not([invalid])) [part='error-message'] {
145
+ max-height: 0;
146
+ overflow: hidden;
147
+ }
148
+
149
+ /* RTL specific styles */
150
+
151
+ :host([dir='rtl']) [part='label'] {
152
+ margin-left: 0;
153
+ margin-right: calc(var(--lumo-border-radius-m) / 4);
154
+ }
155
+
156
+ :host([dir='rtl']) [part='label'] {
157
+ padding-left: 1em;
158
+ padding-right: 0;
159
+ }
160
+
161
+ :host([dir='rtl']) [part='required-indicator']::after {
162
+ right: auto;
163
+ left: 0;
164
+ }
165
+
166
+ :host([dir='rtl']) [part='error-message'] {
167
+ margin-left: 0;
168
+ margin-right: calc(var(--lumo-border-radius-m) / 4);
169
+ }
170
+ `;(0,s.SF)("",i,{moduleId:"lumo-required-field"})}}]);
package/dist/umd/5086.js CHANGED
@@ -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(63033),r=o(988),s=o(38735),n=o(64802),d=o(1033),l=o(12689),c=o(10666),u=o(15408),h=o(20245),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`
135
135
  :host {
136
136
  display: inline-block;
137
137
  }
@@ -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(50063),x=o(98751),k=o(67766),w=o(82607),B=o(58074),R=o(78065),C=o(79179);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
  }
package/dist/umd/5273.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*! For license information please see 5273.js.LICENSE.txt */
2
- "use strict";(self.webpackChunk_descope_web_components_ui=self.webpackChunk_descope_web_components_ui||[]).push([[5273],{85980:(e,t,a)=>{var o=a(33791),r=a(38735),i=a(31846),n=a(58074),s=a(6052),c=a(1033),l=a(12689),d=a(10666),h=a(15408),u=a(49711),p=a(3550);const v=e=>class extends((0,u.U)((0,d.f)((0,l.v)((0,c.e)(e))))){static get properties(){return{indeterminate:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0},name:{type:String,value:""},tabindex:{type:Number,value:0,reflectToAttribute:!0}}}static get delegateProps(){return[...super.delegateProps,"indeterminate"]}static get delegateAttrs(){return[...super.delegateAttrs,"name"]}constructor(){super(),this._setType("checkbox"),this.value="on"}ready(){super.ready(),this.addController(new h.f(this,(e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e}))),this.addController(new p.q(this.inputElement,this._labelController))}_shouldSetActive(e){return"a"!==e.target.localName&&super._shouldSetActive(e)}_toggleChecked(e){this.indeterminate&&(this.indeterminate=!1),super._toggleChecked(e)}},b=s.AH`
2
+ "use strict";(self.webpackChunk_descope_web_components_ui=self.webpackChunk_descope_web_components_ui||[]).push([[5273],{85980:(e,t,a)=>{var o=a(63033),r=a(38735),i=a(64802),n=a(58074),s=a(6052),c=a(1033),l=a(12689),d=a(10666),h=a(15408),u=a(20245),p=a(3550);const v=e=>class extends((0,u.U)((0,d.f)((0,l.v)((0,c.e)(e))))){static get properties(){return{indeterminate:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0},name:{type:String,value:""},tabindex:{type:Number,value:0,reflectToAttribute:!0}}}static get delegateProps(){return[...super.delegateProps,"indeterminate"]}static get delegateAttrs(){return[...super.delegateAttrs,"name"]}constructor(){super(),this._setType("checkbox"),this.value="on"}ready(){super.ready(),this.addController(new h.f(this,(e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e}))),this.addController(new p.q(this.inputElement,this._labelController))}_shouldSetActive(e){return"a"!==e.target.localName&&super._shouldSetActive(e)}_toggleChecked(e){this.indeterminate&&(this.indeterminate=!1),super._toggleChecked(e)}},b=s.AH`
3
3
  :host {
4
4
  display: inline-block;
5
5
  }
@@ -84,7 +84,7 @@
84
84
  <slot name="label"></slot>
85
85
  </div>
86
86
  <slot name="tooltip"></slot>
87
- `}ready(){super.ready(),this._tooltipController=new n.I(this),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController)}}(0,r.X)(m)},8967:(e,t,a)=>{a(92541),a(72815),a(66206),a(1159),a(23395),a(41745);var o=a(6052);(0,o.SF)("vaadin-checkbox",o.AH`
87
+ `}ready(){super.ready(),this._tooltipController=new n.I(this),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController)}}(0,r.X)(m)},8967:(e,t,a)=>{a(92541),a(35842),a(66206),a(1159),a(23395),a(41745);var o=a(6052);(0,o.SF)("vaadin-checkbox",o.AH`
88
88
  :host {
89
89
  color: var(--vaadin-checkbox-label-color, var(--lumo-body-text-color));
90
90
  font-size: var(--vaadin-checkbox-label-font-size, var(--lumo-font-size-m));
@@ -241,7 +241,7 @@
241
241
  transform: scale(0);
242
242
  opacity: 0.4;
243
243
  }
244
- `,{moduleId:"lumo-checkbox"})},25140:(e,t,a)=>{a(8967),a(85980)},94494:(e,t,a)=>{a(25140),a(85980)},10666:(e,t,a)=>{a.d(t,{f:()=>s});var o=a(85297),r=a(50063),i=(a(90075),a(19279)),n=a(85731);const s=(0,o.y)((e=>class extends((0,i.q)((0,r.i)((0,n.g)(e)))){static get properties(){return{checked:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0}}}static get delegateProps(){return[...super.delegateProps,"checked"]}_onChange(e){const t=e.target;this._toggleChecked(t.checked)}_toggleChecked(e){this.checked=e}}))},53430:(e,t,a)=>{a.d(t,{a:()=>r});var o=a(32318);const r=e=>class extends((0,o.R)(e)){static get properties(){return{autocomplete:{type:String},autocorrect:{type:String},autocapitalize:{type:String,reflectToAttribute:!0}}}static get delegateAttrs(){return[...super.delegateAttrs,"autocapitalize","autocomplete","autocorrect"]}get __data(){return this.__dataValue||{}}set __data(e){this.__dataValue=e}_inputElementChanged(e){super._inputElementChanged(e),e&&(e.value&&e.value!==this.value&&(console.warn(`Please define value on the <${this.localName}> component!`),e.value=""),this.value&&(e.value=this.value))}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate()}_onInput(e){super._onInput(e),this.invalid&&this.validate()}_valueChanged(e,t){super._valueChanged(e,t),void 0!==t&&this.invalid&&this.validate()}}},34068:(e,t,a)=>{a.d(t,{A:()=>p}),a(9077);var o=a(33791),r=a(38735),i=a(31846),n=a(58074),s=a(89385),c=a(6052),l=a(15408),d=a(53430),h=a(3550);const u=e=>class extends((0,d.a)(e)){static get properties(){return{maxlength:{type:Number},minlength:{type:Number},pattern:{type:String}}}static get delegateAttrs(){return[...super.delegateAttrs,"maxlength","minlength","pattern"]}static get constraints(){return[...super.constraints,"maxlength","minlength","pattern"]}constructor(){super(),this._setType("text")}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new l.f(this,(e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e}))),this.addController(new h.q(this.inputElement,this._labelController))}};(0,c.SF)("vaadin-text-field",s.k,{moduleId:"vaadin-text-field-styles"});class p extends(u((0,c.cp)((0,i.q)(o.Pu)))){static get is(){return"vaadin-text-field"}static get template(){return o.qy`
244
+ `,{moduleId:"lumo-checkbox"})},25140:(e,t,a)=>{a(8967),a(85980)},94494:(e,t,a)=>{a(25140),a(85980)},10666:(e,t,a)=>{a.d(t,{f:()=>s});var o=a(85297),r=a(50063),i=(a(90075),a(19279)),n=a(85731);const s=(0,o.y)((e=>class extends((0,i.q)((0,r.i)((0,n.g)(e)))){static get properties(){return{checked:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0}}}static get delegateProps(){return[...super.delegateProps,"checked"]}_onChange(e){const t=e.target;this._toggleChecked(t.checked)}_toggleChecked(e){this.checked=e}}))},53430:(e,t,a)=>{a.d(t,{a:()=>r});var o=a(35707);const r=e=>class extends((0,o.R)(e)){static get properties(){return{autocomplete:{type:String},autocorrect:{type:String},autocapitalize:{type:String,reflectToAttribute:!0}}}static get delegateAttrs(){return[...super.delegateAttrs,"autocapitalize","autocomplete","autocorrect"]}get __data(){return this.__dataValue||{}}set __data(e){this.__dataValue=e}_inputElementChanged(e){super._inputElementChanged(e),e&&(e.value&&e.value!==this.value&&(console.warn(`Please define value on the <${this.localName}> component!`),e.value=""),this.value&&(e.value=this.value))}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate()}_onInput(e){super._onInput(e),this.invalid&&this.validate()}_valueChanged(e,t){super._valueChanged(e,t),void 0!==t&&this.invalid&&this.validate()}}},36587:(e,t,a)=>{a.d(t,{$:()=>n});var o=a(15408),r=a(53430),i=a(3550);const n=e=>class extends((0,r.a)(e)){static get properties(){return{maxlength:{type:Number},minlength:{type:Number},pattern:{type:String}}}static get delegateAttrs(){return[...super.delegateAttrs,"maxlength","minlength","pattern"]}static get constraints(){return[...super.constraints,"maxlength","minlength","pattern"]}constructor(){super(),this._setType("text")}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new o.f(this,(e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e}))),this.addController(new i.q(this.inputElement,this._labelController))}}},48575:(e,t,a)=>{a.d(t,{A:()=>d}),a(28991);var o=a(63033),r=a(38735),i=a(64802),n=a(58074),s=a(98736),c=a(6052),l=a(36587);(0,c.SF)("vaadin-text-field",s.k,{moduleId:"vaadin-text-field-styles"});class d extends((0,l.$)((0,c.cp)((0,i.q)(o.Pu)))){static get is(){return"vaadin-text-field"}static get template(){return o.qy`
245
245
  <style>
246
246
  [part='input-field'] {
247
247
  flex-grow: 0;
@@ -276,4 +276,4 @@
276
276
  </div>
277
277
  </div>
278
278
  <slot name="tooltip"></slot>
279
- `}static get properties(){return{maxlength:{type:Number},minlength:{type:Number}}}ready(){super.ready(),this._tooltipController=new n.I(this),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController)}}(0,r.X)(p)},70297:(e,t,a)=>{a(37451);var o=a(90500);(0,a(6052).SF)("vaadin-text-field",o.k,{moduleId:"lumo-text-field-styles"}),a(34068)},39542:(e,t,a)=>{a(70297),a(34068)}}]);
279
+ `}static get properties(){return{maxlength:{type:Number},minlength:{type:Number}}}ready(){super.ready(),this._tooltipController=new n.I(this),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController)}}(0,r.X)(d)},97017:(e,t,a)=>{a(37451);var o=a(90500);(0,a(6052).SF)("vaadin-text-field",o.k,{moduleId:"lumo-text-field-styles"})},68898:(e,t,a)=>{a(97017),a(48575)},39542:(e,t,a)=>{a(68898),a(48575)}}]);
package/dist/umd/5412.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*! For license information please see 5412.js.LICENSE.txt */
2
- "use strict";(self.webpackChunk_descope_web_components_ui=self.webpackChunk_descope_web_components_ui||[]).push([[5412],{15408:(e,t,n)=>{n.d(t,{f:()=>s});var i=n(32065);class s extends i.r{constructor(e,t){super(e,"input","input",{initializer:(e,n)=>{n.value&&(e.value=n.value),n.type&&e.setAttribute("type",n.type),e.id=this.defaultId,"function"==typeof t&&t(e)},useUniqueId:!0})}}},53430:(e,t,n)=>{n.d(t,{a:()=>s});var i=n(32318);const s=e=>class extends((0,i.R)(e)){static get properties(){return{autocomplete:{type:String},autocorrect:{type:String},autocapitalize:{type:String,reflectToAttribute:!0}}}static get delegateAttrs(){return[...super.delegateAttrs,"autocapitalize","autocomplete","autocorrect"]}get __data(){return this.__dataValue||{}}set __data(e){this.__dataValue=e}_inputElementChanged(e){super._inputElementChanged(e),e&&(e.value&&e.value!==this.value&&(console.warn(`Please define value on the <${this.localName}> component!`),e.value=""),this.value&&(e.value=this.value))}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate()}_onInput(e){super._onInput(e),this.invalid&&this.validate()}_valueChanged(e,t){super._valueChanged(e,t),void 0!==t&&this.invalid&&this.validate()}}},35412:(e,t,n)=>{n(37451),n(66206);var i=n(97902),s=n(90500),a=n(6052);const r=a.AH`
2
+ "use strict";(self.webpackChunk_descope_web_components_ui=self.webpackChunk_descope_web_components_ui||[]).push([[5412],{15408:(e,t,n)=>{n.d(t,{f:()=>s});var i=n(32065);class s extends i.r{constructor(e,t){super(e,"input","input",{initializer:(e,n)=>{n.value&&(e.value=n.value),n.type&&e.setAttribute("type",n.type),e.id=this.defaultId,"function"==typeof t&&t(e)},useUniqueId:!0})}}},53430:(e,t,n)=>{n.d(t,{a:()=>s});var i=n(35707);const s=e=>class extends((0,i.R)(e)){static get properties(){return{autocomplete:{type:String},autocorrect:{type:String},autocapitalize:{type:String,reflectToAttribute:!0}}}static get delegateAttrs(){return[...super.delegateAttrs,"autocapitalize","autocomplete","autocorrect"]}get __data(){return this.__dataValue||{}}set __data(e){this.__dataValue=e}_inputElementChanged(e){super._inputElementChanged(e),e&&(e.value&&e.value!==this.value&&(console.warn(`Please define value on the <${this.localName}> component!`),e.value=""),this.value&&(e.value=this.value))}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate()}_onInput(e){super._onInput(e),this.invalid&&this.validate()}_valueChanged(e,t){super._valueChanged(e,t),void 0!==t&&this.invalid&&this.validate()}}},35412:(e,t,n)=>{n(37451),n(66206);var i=n(97902),s=n(90500),a=n(6052);const r=a.AH`
3
3
  :host([step-buttons-visible]:not([theme~='align-right'])) ::slotted(input) {
4
4
  text-align: center;
5
5
  }
@@ -35,7 +35,7 @@
35
35
  :host([dir='rtl']:not([theme~='align-right'])) ::slotted(input) {
36
36
  --_lumo-text-field-overflow-mask-image: linear-gradient(to left, transparent, #000 1.25em);
37
37
  }
38
- `;(0,a.SF)("vaadin-number-field",[s.k,i.p,r],{moduleId:"lumo-number-field"}),n(9077);var l=n(33791),o=n(38735),u=n(31846),h=n(58074),p=n(89385),d=n(15408),c=n(53430),m=n(3550);const _=e=>class extends((0,c.a)(e)){static get properties(){return{min:{type:Number},max:{type:Number},step:{type:Number},stepButtonsVisible:{type:Boolean,value:!1,reflectToAttribute:!0}}}static get observers(){return["_stepChanged(step, inputElement)"]}static get delegateProps(){return[...super.delegateProps,"min","max"]}static get constraints(){return[...super.constraints,"min","max","step"]}constructor(){super(),this._setType("number"),this.__onWheel=this.__onWheel.bind(this)}get slotStyles(){const e=this.localName;return[`\n ${e} input[type="number"]::-webkit-outer-spin-button,\n ${e} input[type="number"]::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n\n ${e} input[type="number"] {\n -moz-appearance: textfield;\n }\n\n ${e}[dir='rtl'] input[type="number"]::placeholder {\n direction: rtl;\n }\n\n ${e}[dir='rtl']:not([step-buttons-visible]) input[type="number"]::placeholder {\n text-align: left;\n }\n `]}get clearElement(){return this.$.clearButton}get __hasUnparsableValue(){return this.inputElement.validity.badInput}ready(){super.ready(),this.addController(new d.f(this,(e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e}))),this.addController(new m.q(this.inputElement,this._labelController))}checkValidity(){return this.inputElement?this.inputElement.checkValidity():!this.invalid}_addInputListeners(e){super._addInputListeners(e),e.addEventListener("wheel",this.__onWheel)}_removeInputListeners(e){super._removeInputListeners(e),e.removeEventListener("wheel",this.__onWheel)}__onWheel(e){this.hasAttribute("focused")&&e.preventDefault()}_onDecreaseButtonTouchend(e){e.cancelable&&(e.preventDefault(),this._decreaseValue())}_onIncreaseButtonTouchend(e){e.cancelable&&(e.preventDefault(),this._increaseValue())}_onDecreaseButtonClick(){this._decreaseValue()}_onIncreaseButtonClick(){this._increaseValue()}_decreaseValue(){this._incrementValue(-1)}_increaseValue(){this._incrementValue(1)}_incrementValue(e){if(this.disabled||this.readonly)return;const t=this.step||1;let n=parseFloat(this.value);this.value?n<this.min?(e=0,n=this.min):n>this.max&&(e=0,n=this.max):0===this.min&&e<0||0===this.max&&e>0||0===this.max&&0===this.min?(e=0,n=0):(null==this.max||this.max>=0)&&(null==this.min||this.min<=0)?n=0:this.min>0?(n=this.min,this.max<0&&e<0&&(n=this.max),e=0):this.max<0&&(n=this.max,e<0?e=0:this._getIncrement(1,n-t)>this.max?n-=2*t:n-=t);const i=this._getIncrement(e,n);this.value&&0!==e&&!this._incrementIsInsideTheLimits(e,n)||(this.inputElement.value=String(parseFloat(i)),this.inputElement.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.__commitValueChange())}_getIncrement(e,t){let n=this.step||1,i=this.min||0;const s=Math.max(this._getMultiplier(t),this._getMultiplier(n),this._getMultiplier(i));n*=s,i*=s;const a=((t=Math.round(t*s))-i)%n;return e>0?(t-a+n)/s:e<0?(t-(a||n))/s:t/s}_getDecimalCount(e){const t=String(e),n=t.indexOf(".");return-1===n?1:t.length-n-1}_getMultiplier(e){if(!isNaN(e))return 10**this._getDecimalCount(e)}_incrementIsInsideTheLimits(e,t){return e<0?null==this.min||this._getIncrement(e,t)>=this.min:e>0?null==this.max||this._getIncrement(e,t)<=this.max:this._getIncrement(e,t)<=this.max&&this._getIncrement(e,t)>=this.min}_isButtonEnabled(e){const t=e*(this.step||1),n=parseFloat(this.value);return!this.value||!this.disabled&&this._incrementIsInsideTheLimits(t,n)}_stepChanged(e,t){t&&(t.step=e||"any")}_valueChanged(e,t){e&&isNaN(parseFloat(e))?this.value="":"string"!=typeof this.value&&(this.value=String(this.value)),super._valueChanged(this.value,t),this.__keepCommittedValue||(this.__committedValue=this.value,this.__committedUnparsableValueStatus=!1)}_onKeyDown(e){"ArrowUp"===e.key?(e.preventDefault(),this._increaseValue()):"ArrowDown"===e.key&&(e.preventDefault(),this._decreaseValue()),super._onKeyDown(e)}_setHasInputValue(e){const t=e.composedPath()[0];this._hasInputValue=t.value.length>0||this.__hasUnparsableValue}_onInput(e){this.__keepCommittedValue=!0,super._onInput(e),this.__keepCommittedValue=!1}_onChange(e){e.stopPropagation()}_onClearAction(e){super._onClearAction(e),this.__commitValueChange()}_setFocused(e){super._setFocused(e),e||this.__commitValueChange()}_onEnter(e){super._onEnter(e),this.__commitValueChange()}__commitValueChange(){this.__committedValue!==this.value?(this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))):this.__committedUnparsableValueStatus!==this.__hasUnparsableValue&&(this.validate(),this.dispatchEvent(new CustomEvent("unparsable-change"))),this.__committedValue=this.value,this.__committedUnparsableValueStatus=this.__hasUnparsableValue}},v=n(16684).AH`
38
+ `;(0,a.SF)("vaadin-number-field",[s.k,i.p,r],{moduleId:"lumo-number-field"}),n(28991);var l=n(63033),o=n(38735),u=n(64802),h=n(58074),p=n(98736),d=n(15408),c=n(53430),m=n(3550);const _=e=>class extends((0,c.a)(e)){static get properties(){return{min:{type:Number},max:{type:Number},step:{type:Number},stepButtonsVisible:{type:Boolean,value:!1,reflectToAttribute:!0}}}static get observers(){return["_stepChanged(step, inputElement)"]}static get delegateProps(){return[...super.delegateProps,"min","max"]}static get constraints(){return[...super.constraints,"min","max","step"]}constructor(){super(),this._setType("number"),this.__onWheel=this.__onWheel.bind(this)}get slotStyles(){const e=this.localName;return[`\n ${e} input[type="number"]::-webkit-outer-spin-button,\n ${e} input[type="number"]::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n\n ${e} input[type="number"] {\n -moz-appearance: textfield;\n }\n\n ${e}[dir='rtl'] input[type="number"]::placeholder {\n direction: rtl;\n }\n\n ${e}[dir='rtl']:not([step-buttons-visible]) input[type="number"]::placeholder {\n text-align: left;\n }\n `]}get clearElement(){return this.$.clearButton}get __hasUnparsableValue(){return this.inputElement.validity.badInput}ready(){super.ready(),this.addController(new d.f(this,(e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e}))),this.addController(new m.q(this.inputElement,this._labelController))}checkValidity(){return this.inputElement?this.inputElement.checkValidity():!this.invalid}_addInputListeners(e){super._addInputListeners(e),e.addEventListener("wheel",this.__onWheel)}_removeInputListeners(e){super._removeInputListeners(e),e.removeEventListener("wheel",this.__onWheel)}__onWheel(e){this.hasAttribute("focused")&&e.preventDefault()}_onDecreaseButtonTouchend(e){e.cancelable&&(e.preventDefault(),this._decreaseValue())}_onIncreaseButtonTouchend(e){e.cancelable&&(e.preventDefault(),this._increaseValue())}_onDecreaseButtonClick(){this._decreaseValue()}_onIncreaseButtonClick(){this._increaseValue()}_decreaseValue(){this._incrementValue(-1)}_increaseValue(){this._incrementValue(1)}_incrementValue(e){if(this.disabled||this.readonly)return;const t=this.step||1;let n=parseFloat(this.value);this.value?n<this.min?(e=0,n=this.min):n>this.max&&(e=0,n=this.max):0===this.min&&e<0||0===this.max&&e>0||0===this.max&&0===this.min?(e=0,n=0):(null==this.max||this.max>=0)&&(null==this.min||this.min<=0)?n=0:this.min>0?(n=this.min,this.max<0&&e<0&&(n=this.max),e=0):this.max<0&&(n=this.max,e<0?e=0:this._getIncrement(1,n-t)>this.max?n-=2*t:n-=t);const i=this._getIncrement(e,n);this.value&&0!==e&&!this._incrementIsInsideTheLimits(e,n)||(this.inputElement.value=String(parseFloat(i)),this.inputElement.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.__commitValueChange())}_getIncrement(e,t){let n=this.step||1,i=this.min||0;const s=Math.max(this._getMultiplier(t),this._getMultiplier(n),this._getMultiplier(i));n*=s,i*=s;const a=((t=Math.round(t*s))-i)%n;return e>0?(t-a+n)/s:e<0?(t-(a||n))/s:t/s}_getDecimalCount(e){const t=String(e),n=t.indexOf(".");return-1===n?1:t.length-n-1}_getMultiplier(e){if(!isNaN(e))return 10**this._getDecimalCount(e)}_incrementIsInsideTheLimits(e,t){return e<0?null==this.min||this._getIncrement(e,t)>=this.min:e>0?null==this.max||this._getIncrement(e,t)<=this.max:this._getIncrement(e,t)<=this.max&&this._getIncrement(e,t)>=this.min}_isButtonEnabled(e){const t=e*(this.step||1),n=parseFloat(this.value);return!this.value||!this.disabled&&this._incrementIsInsideTheLimits(t,n)}_stepChanged(e,t){t&&(t.step=e||"any")}_valueChanged(e,t){e&&isNaN(parseFloat(e))?this.value="":"string"!=typeof this.value&&(this.value=String(this.value)),super._valueChanged(this.value,t),this.__keepCommittedValue||(this.__committedValue=this.value,this.__committedUnparsableValueStatus=!1)}_onKeyDown(e){"ArrowUp"===e.key?(e.preventDefault(),this._increaseValue()):"ArrowDown"===e.key&&(e.preventDefault(),this._decreaseValue()),super._onKeyDown(e)}_setHasInputValue(e){const t=e.composedPath()[0];this._hasInputValue=t.value.length>0||this.__hasUnparsableValue}_onInput(e){this.__keepCommittedValue=!0,super._onInput(e),this.__keepCommittedValue=!1}_onChange(e){e.stopPropagation()}_onClearAction(e){super._onClearAction(e),this.__commitValueChange()}_setFocused(e){super._setFocused(e),e||this.__commitValueChange()}_onEnter(e){super._onEnter(e),this.__commitValueChange()}__commitValueChange(){this.__committedValue!==this.value?(this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))):this.__committedUnparsableValueStatus!==this.__hasUnparsableValue&&(this.validate(),this.dispatchEvent(new CustomEvent("unparsable-change"))),this.__committedValue=this.value,this.__committedUnparsableValueStatus=this.__hasUnparsableValue}},v=n(86161).AH`
39
39
  :host([readonly]) [part$='button'] {
40
40
  pointer-events: none;
41
41
  }
package/dist/umd/5443.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*! For license information please see 5443.js.LICENSE.txt */
2
- "use strict";(self.webpackChunk_descope_web_components_ui=self.webpackChunk_descope_web_components_ui||[]).push([[5443,7824],{50063:(t,e,o)=>{o.d(e,{i:()=>r});const r=(0,o(85297).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()}}))},98751:(t,e,o)=>{o.d(e,{y:()=>a});var r=o(85297),i=o(90075);const a=(0,r.y)((t=>class extends t{get _keyboardActive(){return(0,i.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}}))},90075:(t,e,o)=>{o.d(e,{Qj:()=>c,aJ:()=>a,dw:()=>i,iq:()=>h,n8:()=>u});let r=!1;function i(){let t=document.activeElement||document.body;for(;t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function a(){return r}function n(t){const e=t.style;if("hidden"===e.visibility||"none"===e.display)return!0;const o=window.getComputedStyle(t);return"hidden"===o.visibility||"none"===o.display}function s(t,e){const o=Math.max(t.tabIndex,0),r=Math.max(e.tabIndex,0);return 0===o||0===r?r>o:o>r}function l(t){const e=t.length;if(e<2)return t;const o=Math.ceil(e/2);return function(t,e){const o=[];for(;t.length>0&&e.length>0;)s(t[0],e[0])?o.push(e.shift()):o.push(t.shift());return o.concat(t,e)}(l(t.slice(0,o)),l(t.slice(o)))}function u(t){return null===t.offsetParent&&0===t.clientWidth&&0===t.clientHeight||n(t)}function c(t){return t.getRootNode().activeElement===t}function d(t,e){if(t.nodeType!==Node.ELEMENT_NODE||n(t))return!1;const o=t,r=function(t){if(!function(t){return!t.matches('[tabindex="-1"]')&&(t.matches("input, select, textarea, button, object")?t.matches(":not([disabled])"):t.matches("a[href], area[href], iframe, [tabindex], [contentEditable]"))}(t))return-1;const e=t.getAttribute("tabindex")||0;return Number(e)}(o);let i=r>0;r>=0&&e.push(o);let a=[];return a="slot"===o.localName?o.assignedNodes({flatten:!0}):(o.shadowRoot||o).children,[...a].forEach((t=>{i=d(t,e)||i})),i}function h(t){const e=[];return d(t,e)?l(e):e}window.addEventListener("keydown",(()=>{r=!0}),{capture:!0}),window.addEventListener("mousedown",(()=>{r=!1}),{capture:!0})},67766:(t,e,o)=>{o.d(e,{f:()=>r});const r=(0,o(85297).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){}}))},1886:(t,e,o)=>{o.d(e,{l:()=>i});var r=o(50063);const i=t=>class extends((0,r.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)}}},86292:(t,e,o)=>{o.d(e,{$:()=>b});var r=o(33791),i=o(988),a=o(38735),n=o(31846),s=o(58074),l=o(6052);const u=o(16684).AH`
2
+ "use strict";(self.webpackChunk_descope_web_components_ui=self.webpackChunk_descope_web_components_ui||[]).push([[5443,7824],{50063:(t,e,o)=>{o.d(e,{i:()=>r});const r=(0,o(85297).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()}}))},67766:(t,e,o)=>{o.d(e,{f:()=>r});const r=(0,o(85297).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){}}))},1886:(t,e,o)=>{o.d(e,{l:()=>a});var r=o(50063);const a=t=>class extends((0,r.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)}}},86292:(t,e,o)=>{o.d(e,{$:()=>b});var r=o(63033),a=o(988),i=o(38735),n=o(64802),s=o(58074),l=o(6052);const d=o(86161).AH`
3
3
  :host {
4
4
  display: inline-block;
5
5
  position: relative;
@@ -59,7 +59,7 @@
59
59
  outline-color: GrayText;
60
60
  }
61
61
  }
62
- `;var c=o(1033),d=o(98751),h=o(1886);const m=t=>class extends((0,c.e)((0,h.l)((0,d.y)(t)))){static get properties(){return{tabindex:{type:Number,value:0,reflectToAttribute:!0}}}get _activeKeys(){return["Enter"," "]}ready(){super.ready(),this.hasAttribute("role")||this.setAttribute("role","button")}_onKeyDown(t){super._onKeyDown(t),t.altKey||t.shiftKey||t.ctrlKey||t.metaKey||this._activeKeys.includes(t.key)&&(t.preventDefault(),this.click())}};(0,l.SF)("vaadin-button",u,{moduleId:"vaadin-button-styles"});class b extends(m((0,n.q)((0,l.cp)((0,i.w)(r.Pu))))){static get is(){return"vaadin-button"}static get template(){return r.qy`
62
+ `;var c=o(1033),u=o(98751),h=o(1886);const m=t=>class extends((0,c.e)((0,h.l)((0,u.y)(t)))){static get properties(){return{tabindex:{type:Number,value:0,reflectToAttribute:!0}}}get _activeKeys(){return["Enter"," "]}ready(){super.ready(),this.hasAttribute("role")||this.setAttribute("role","button")}_onKeyDown(t){super._onKeyDown(t),t.altKey||t.shiftKey||t.ctrlKey||t.metaKey||this._activeKeys.includes(t.key)&&(t.preventDefault(),this.click())}};(0,l.SF)("vaadin-button",d,{moduleId:"vaadin-button-styles"});class b extends(m((0,n.q)((0,l.cp)((0,a.w)(r.Pu))))){static get is(){return"vaadin-button"}static get template(){return r.qy`
63
63
  <div class="vaadin-button-container">
64
64
  <span part="prefix" aria-hidden="true">
65
65
  <slot name="prefix"></slot>
@@ -72,7 +72,7 @@
72
72
  </span>
73
73
  </div>
74
74
  <slot name="tooltip"></slot>
75
- `}ready(){super.ready(),this._tooltipController=new s.I(this),this.addController(this._tooltipController)}}(0,a.X)(b)},83961:(t,e,o)=>{o.d(e,{x:()=>i}),o(92541),o(66206),o(1159),o(23395),o(41745);var r=o(6052);const i=r.AH`
75
+ `}ready(){super.ready(),this._tooltipController=new s.I(this),this.addController(this._tooltipController)}}(0,i.X)(b)},83961:(t,e,o)=>{o.d(e,{x:()=>a}),o(92541),o(66206),o(1159),o(23395),o(41745);var r=o(6052);const a=r.AH`
76
76
  :host {
77
77
  /* Sizing */
78
78
  --lumo-button-size: var(--lumo-size-m);
@@ -335,116 +335,4 @@
335
335
  margin-left: 0;
336
336
  margin-right: 0;
337
337
  }
338
- `;(0,r.SF)("vaadin-button",i,{moduleId:"lumo-button"})},97745:(t,e,o)=>{o(83961),o(86292)},41745:(t,e,o)=>{o(56830);var r=o(6052),i=o(35543);const a=r.AH`
339
- :host {
340
- /* prettier-ignore */
341
- --lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
342
-
343
- /* Font sizes */
344
- --lumo-font-size-xxs: 0.75rem;
345
- --lumo-font-size-xs: 0.8125rem;
346
- --lumo-font-size-s: 0.875rem;
347
- --lumo-font-size-m: 1rem;
348
- --lumo-font-size-l: 1.125rem;
349
- --lumo-font-size-xl: 1.375rem;
350
- --lumo-font-size-xxl: 1.75rem;
351
- --lumo-font-size-xxxl: 2.5rem;
352
-
353
- /* Line heights */
354
- --lumo-line-height-xs: 1.25;
355
- --lumo-line-height-s: 1.375;
356
- --lumo-line-height-m: 1.625;
357
- }
358
- `,n=r.AH`
359
- body,
360
- :host {
361
- font-family: var(--lumo-font-family);
362
- font-size: var(--lumo-font-size-m);
363
- line-height: var(--lumo-line-height-m);
364
- -webkit-text-size-adjust: 100%;
365
- -webkit-font-smoothing: antialiased;
366
- -moz-osx-font-smoothing: grayscale;
367
- }
368
-
369
- small,
370
- [theme~='font-size-s'] {
371
- font-size: var(--lumo-font-size-s);
372
- line-height: var(--lumo-line-height-s);
373
- }
374
-
375
- [theme~='font-size-xs'] {
376
- font-size: var(--lumo-font-size-xs);
377
- line-height: var(--lumo-line-height-xs);
378
- }
379
-
380
- :where(h1, h2, h3, h4, h5, h6) {
381
- font-weight: 600;
382
- line-height: var(--lumo-line-height-xs);
383
- margin-block: 0;
384
- }
385
-
386
- :where(h1) {
387
- font-size: var(--lumo-font-size-xxxl);
388
- }
389
-
390
- :where(h2) {
391
- font-size: var(--lumo-font-size-xxl);
392
- }
393
-
394
- :where(h3) {
395
- font-size: var(--lumo-font-size-xl);
396
- }
397
-
398
- :where(h4) {
399
- font-size: var(--lumo-font-size-l);
400
- }
401
-
402
- :where(h5) {
403
- font-size: var(--lumo-font-size-m);
404
- }
405
-
406
- :where(h6) {
407
- font-size: var(--lumo-font-size-xs);
408
- text-transform: uppercase;
409
- letter-spacing: 0.03em;
410
- }
411
-
412
- p,
413
- blockquote {
414
- margin-top: 0.5em;
415
- margin-bottom: 0.75em;
416
- }
417
-
418
- a {
419
- text-decoration: none;
420
- }
421
-
422
- a:where(:any-link):hover {
423
- text-decoration: underline;
424
- }
425
-
426
- hr {
427
- display: block;
428
- align-self: stretch;
429
- height: 1px;
430
- border: 0;
431
- padding: 0;
432
- margin: var(--lumo-space-s) calc(var(--lumo-border-radius-m) / 2);
433
- background-color: var(--lumo-contrast-10pct);
434
- }
435
-
436
- blockquote {
437
- border-left: 2px solid var(--lumo-contrast-30pct);
438
- }
439
-
440
- b,
441
- strong {
442
- font-weight: 600;
443
- }
444
-
445
- /* RTL specific styles */
446
- blockquote[dir='rtl'] {
447
- border-left: none;
448
- border-right: 2px solid var(--lumo-contrast-30pct);
449
- }
450
- `;(0,r.SF)("",n,{moduleId:"lumo-typography"}),(0,i.q)("typography-props",a)}}]);
338
+ `;(0,r.SF)("vaadin-button",a,{moduleId:"lumo-button"})},97745:(t,e,o)=>{o(83961),o(86292)}}]);
@@ -1,15 +1,10 @@
1
- /*! For license information please see 6637.js.LICENSE.txt */
2
- "use strict";(self.webpackChunk_descope_web_components_ui=self.webpackChunk_descope_web_components_ui||[]).push([[6637],{27984:(t,e,s)=>{s.d(e,{U:()=>o});var i=s(85297);const n=new ResizeObserver((t=>{setTimeout((()=>{t.forEach((t=>{t.target.resizables?t.target.resizables.forEach((e=>{e._onResize(t.contentRect)})):t.target._onResize(t.contentRect)}))}))})),o=(0,i.y)((t=>class extends t{get _observeParent(){return!1}connectedCallback(){if(super.connectedCallback(),n.observe(this),this._observeParent){const t=this.parentNode instanceof ShadowRoot?this.parentNode.host:this.parentNode;t.resizables||(t.resizables=new Set,n.observe(t)),t.resizables.add(this),this.__parent=t}}disconnectedCallback(){super.disconnectedCallback(),n.unobserve(this);const t=this.__parent;if(this._observeParent&&t){const e=t.resizables;e&&(e.delete(this),0===e.size&&n.unobserve(t)),this.__parent=null}}_onResize(t){}}))},34629:(t,e,s)=>{s.d(e,{io:()=>h,ml:()=>_,lW:()=>u,Qo:()=>p});var i=s(16684),n=s(96805);const o=t=>(...e)=>({_$litDirective$:t,values:e});class r{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,s){this._$Ct=t,this._$AM=e,this._$Ci=s}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}var a=s(36752);class c extends r{constructor(t){if(super(t),this.et=a.s6,2!==t.type)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===a.s6||null==t)return this.vt=void 0,this.et=t;if(t===a.c0)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.vt;this.et=t;const e=[t];return e.raw=e,this.vt={_$litType$:this.constructor.resultType,strings:e,values:[]}}}c.directiveName="unsafeHTML",c.resultType=1,o(c);class l extends c{}l.directiveName="unsafeSVG",l.resultType=2;const d=o(l);function h(t){let e=i.s6;if(t){const s=t.cloneNode(!0);s.removeAttribute("id"),e=i.JW`${d(s.outerHTML)}`}return e}function _(t){let e=null==t||""===t?i.s6:t;return function(t){return(0,n.qb)(t,n.Qk.SVG)||t===i.s6}(e)||(console.error("[vaadin-icon] Invalid svg passed, please use Lit svg literal."),e=i.s6),e}function u(t,e){const s=_(t);(0,i.XX)(s,e)}function p(t){return i.JW`${d(t)}`}},71367:(t,e,s)=>{s.d(e,{k:()=>_});var i=s(33791),n=s(38735),o=s(31846),r=s(34629);const a={},c=new Set;function l(t,e){return(t||"").replace(`${e}:`,"")}function d(t){if(t)return t.split(":")[0]||"vaadin"}function h(t,e){t._icons=[...t.querySelectorAll("[id]")].reduce(((t,s)=>(t[l(s.id,e)]=s,t)),{})}class _ extends((0,o.q)(i.Pu)){static get template(){return null}static get is(){return"vaadin-iconset"}static get properties(){return{name:{type:String,observer:"__nameChanged"},size:{type:Number,value:24}}}static get attachedIcons(){return c}static getIconset(t){return a[t]}static getIconSvg(t,e){const s=e||d(t),i=this.getIconset(s);if(!t||!i)return{svg:(0,r.io)(null)};const n=l(t,s),o=i._icons[n];return{preserveAspectRatio:o?o.getAttribute("preserveAspectRatio"):null,svg:(0,r.io)(o),size:i.size,viewBox:o?o.getAttribute("viewBox"):null}}static register(t,e,s){if(!a[t]){const i=document.createElement("vaadin-iconset");i.appendChild(s.content.cloneNode(!0)),a[t]=i,h(i,t),i.size=e,i.name=t,i.__nameChanged(t)}}connectedCallback(){super.connectedCallback(),this.style.display="none";const{name:t}=this;a[t]=this,h(this,t),this.__updateIcons(t)}__updateIcons(t){c.forEach((e=>{t===d(e.icon)&&e._applyIcon()}))}__nameChanged(t,e){e&&(a[t]=a[e],delete a[e]),t&&this.__updateIcons(t)}}(0,n.X)(_)},56637:(t,e,s)=>{s(66206);var i=s(6052);(0,i.SF)("vaadin-icon",i.AH`
3
- :host {
4
- width: var(--lumo-icon-size-m);
5
- height: var(--lumo-icon-size-m);
6
- }
7
- `,{moduleId:"lumo-icon"});var n=s(33791),o=s(988),r=s(38735),a=s(31846),c=s(51939),l=s(58074),d=s(85297),h=s(27984),_=s(53794);const u=!CSS.supports("container-type: inline-size")||!!_.nr&&!function(){const t=document.createElement("style");t.textContent="\n .vaadin-icon-test-element {\n container-type: size;\n height: 2px;\n visibility: hidden;\n position: fixed;\n }\n\n .vaadin-icon-test-element::before {\n content: '';\n display: block;\n height: 100cqh;\n ";const e=document.createElement("div");e.classList.add("vaadin-icon-test-element"),document.body.append(t,e);const{height:s}=getComputedStyle(e,"::before");return t.remove(),e.remove(),"2px"===s}();u&&(0,i.SF)("vaadin-icon",i.AH`
1
+ /*! For license information please see 6206.js.LICENSE.txt */
2
+ "use strict";(self.webpackChunk_descope_web_components_ui=self.webpackChunk_descope_web_components_ui||[]).push([[6206],{27984:(t,e,s)=>{s.d(e,{U:()=>o});var i=s(85297);const n=new ResizeObserver((t=>{setTimeout((()=>{t.forEach((t=>{t.target.resizables?t.target.resizables.forEach((e=>{e._onResize(t.contentRect)})):t.target._onResize(t.contentRect)}))}))})),o=(0,i.y)((t=>class extends t{get _observeParent(){return!1}connectedCallback(){if(super.connectedCallback(),n.observe(this),this._observeParent){const t=this.parentNode instanceof ShadowRoot?this.parentNode.host:this.parentNode;t.resizables||(t.resizables=new Set,n.observe(t)),t.resizables.add(this),this.__parent=t}}disconnectedCallback(){super.disconnectedCallback(),n.unobserve(this);const t=this.__parent;if(this._observeParent&&t){const e=t.resizables;e&&(e.delete(this),0===e.size&&n.unobserve(t)),this.__parent=null}}_onResize(t){}}))},53275:(t,e,s)=>{s.d(e,{Z:()=>a});var i=s(85297),n=s(27984),o=s(6052);const r=(0,s(63999).g)();r&&(0,o.SF)("vaadin-icon",o.AH`
8
3
  :host::after,
9
4
  :host::before {
10
5
  font-size: var(--_vaadin-font-icon-size);
11
6
  }
12
- `,"vaadin-icon-font-size-mixin-styles");const p=(0,d.y)((t=>u?class extends((0,h.U)(t)){static get observers(){return["__iconFontSizeMixinfontChanged(iconClass, char, ligature)"]}ready(){super.ready(),this.__updateFontIconSize()}__iconFontSizeMixinfontChanged(t,e,s){this.__updateFontIconSize()}_onResize(){this.__updateFontIconSize()}__updateFontIconSize(){if(this.char||this.iconClass||this.ligature){const{paddingTop:t,paddingBottom:e,height:s}=getComputedStyle(this),i=parseFloat(s)-parseFloat(t)-parseFloat(e);this.style.setProperty("--_vaadin-font-icon-size",`${i}px`)}}}:t));var g=s(34629),v=s(71367);const f=new Map;class b extends((0,i.cp)((0,a.q)((0,o.w)((0,c.C)(p(n.Pu)))))){static get template(){return n.qy`
7
+ `,"vaadin-icon-font-size-mixin-styles");const a=(0,i.y)((t=>r?class extends((0,n.U)(t)){static get observers(){return["__iconFontSizeMixinfontChanged(iconClass, char, ligature)"]}ready(){super.ready(),this.__updateFontIconSize()}__iconFontSizeMixinfontChanged(t,e,s){this.__updateFontIconSize()}_onResize(){this.__updateFontIconSize()}__updateFontIconSize(){if(this.char||this.iconClass||this.ligature){const{paddingTop:t,paddingBottom:e,height:s}=getComputedStyle(this),i=parseFloat(s)-parseFloat(t)-parseFloat(e);this.style.setProperty("--_vaadin-font-icon-size",`${i}px`)}}}:t))},63999:(t,e,s)=>{s.d(e,{g:()=>n});var i=s(53794);function n(){return!CSS.supports("container-type: inline-size")||!!i.nr&&!function(){const t=document.createElement("style");t.textContent="\n .vaadin-icon-test-element {\n container-type: size;\n height: 2px;\n visibility: hidden;\n position: fixed;\n }\n\n .vaadin-icon-test-element::before {\n content: '';\n display: block;\n height: 100cqh;\n ";const e=document.createElement("div");e.classList.add("vaadin-icon-test-element"),document.body.append(t,e);const{height:s}=getComputedStyle(e,"::before");return t.remove(),e.remove(),"2px"===s}()}},80888:(t,e,s)=>{s.d(e,{Qo:()=>l,io:()=>r,lW:()=>c,ml:()=>a});var i=s(86161),n=s(38240),o=s(58503);function r(t){let e=i.s6;if(t){const s=t.cloneNode(!0);s.removeAttribute("id"),e=i.JW`${(0,o.T)(s.outerHTML)}`}return e}function a(t){let e=null==t||""===t?i.s6:t;return function(t){return(0,n.qb)(t,n.Qk.SVG)||t===i.s6}(e)||(console.error("[vaadin-icon] Invalid svg passed, please use Lit svg literal."),e=i.s6),e}function c(t,e){const s=a(t);(0,i.XX)(s,e)}function l(t){return i.JW`${(0,o.T)(t)}`}},96271:(t,e,s)=>{var i=s(63033),n=s(988),o=s(38735),r=s(64802),a=s(51939),c=s(58074),l=s(6052),d=s(53275),h=s(80888),_=s(71367);const u=new Map;class p extends((0,l.cp)((0,r.q)((0,n.w)((0,a.C)((0,d.Z)(i.Pu)))))){static get template(){return i.qy`
13
8
  <style>
14
9
  :host {
15
10
  display: inline-flex;
@@ -70,4 +65,9 @@
70
65
  </svg>
71
66
 
72
67
  <slot name="tooltip"></slot>
73
- `}static get is(){return"vaadin-icon"}static get properties(){return{icon:{type:String,reflectToAttribute:!0,observer:"__iconChanged"},svg:{type:Object},src:{type:String},symbol:{type:String},iconClass:{type:String,reflectToAttribute:!0},char:{type:String},ligature:{type:String},fontFamily:{type:String,observer:"__fontFamilyChanged"},size:{type:Number,value:24},__defaultPAR:{type:String,value:"xMidYMid meet"},__preserveAspectRatio:String,__useRef:Object,__svgElement:String,__viewBox:String,__fill:String,__stroke:String,__strokeWidth:String,__strokeLinecap:String,__strokeLinejoin:String}}static get observers(){return["__svgChanged(svg, __svgElement)","__fontChanged(iconClass, char, ligature)","__srcChanged(src, symbol)"]}static get observedAttributes(){return[...super.observedAttributes,"class"]}constructor(){super(),this.__fetch=fetch.bind(window)}get slotStyles(){return[`\n ${this.localName}[icon-class] {\n display: inline-flex;\n vertical-align: middle;\n font-size: inherit;\n }\n `]}get __iconClasses(){return this.iconClass?this.iconClass.split(" "):[]}ready(){super.ready(),this.__svgElement=this.shadowRoot.querySelector("#svg-group"),this._tooltipController=new l.I(this),this.addController(this._tooltipController)}connectedCallback(){super.connectedCallback(),v.k.attachedIcons.add(this)}disconnectedCallback(){super.disconnectedCallback(),v.k.attachedIcons.delete(this)}_applyIcon(){const{preserveAspectRatio:t,svg:e,size:s,viewBox:i}=v.k.getIconSvg(this.icon);i&&(this.__viewBox=i),t&&(this.__preserveAspectRatio=t),s&&s!==this.size&&(this.size=s),this.svg=e}__iconChanged(t){t?this._applyIcon():this.svg=(0,g.ml)(null)}async __srcChanged(t,e){if(t)if(this.icon="",t.startsWith("data:")||!e&&!t.includes("#"))try{f.has(t)||f.set(t,this.__fetch(t,{mode:"cors"}).then((t=>{if(!t.ok)throw new Error("Error loading icon");return t.text()})));const s=await f.get(t);b.__domParser||(b.__domParser=new DOMParser);const i=b.__domParser.parseFromString(s,"text/html").querySelector("svg");if(!i)throw new Error(`SVG element not found on path: ${t}`);this.svg=(0,g.Qo)(i.innerHTML),e&&(this.__useRef=`#${e}`),this.__viewBox=i.getAttribute("viewBox"),this.__fill=i.getAttribute("fill"),this.__stroke=i.getAttribute("stroke"),this.__strokeWidth=i.getAttribute("stroke-width"),this.__strokeLinecap=i.getAttribute("stroke-linecap"),this.__strokeLinejoin=i.getAttribute("stroke-linejoin")}catch(t){console.error(t),this.svg=null}else{const[s,i]=t.split("#");this.__useRef=`${s}#${e||i}`}else this.svg=null}__svgChanged(t,e){e&&(0,g.lW)(t,e)}__computePAR(t,e){return e||t}__computeVisibility(t){return t?"visible":"hidden"}__computeViewBox(t,e){return e||`0 0 ${t} ${t}`}__fontChanged(t,e,s){this.classList.remove(...this.__addedIconClasses||[]),t&&(this.__addedIconClasses=[...this.__iconClasses],this.classList.add(...this.__addedIconClasses)),e?this.setAttribute("font-icon-content",e.length>1?String.fromCodePoint(parseInt(e,16)):e):s?this.setAttribute("font-icon-content",s):this.removeAttribute("font-icon-content"),(t||e||s)&&!this.icon&&(this.icon="")}attributeChangedCallback(t,e,s){super.attributeChangedCallback(t,e,s),"class"===t&&this.__iconClasses.some((t=>!this.classList.contains(t)))&&this.classList.add(...this.__iconClasses)}__fontFamilyChanged(t){this.style.fontFamily=`'${t}'`}}(0,r.X)(b)},96805:(t,e,s)=>{s.d(e,{Qk:()=>o,qb:()=>r});var i=s(36752);const{D:n}=i.ge,o={HTML:1,SVG:2},r=(t,e)=>void 0===e?void 0!==t?._$litType$:t?._$litType$===e}}]);
68
+ `}static get is(){return"vaadin-icon"}static get properties(){return{icon:{type:String,reflectToAttribute:!0,observer:"__iconChanged"},svg:{type:Object},src:{type:String},symbol:{type:String},iconClass:{type:String,reflectToAttribute:!0},char:{type:String},ligature:{type:String},fontFamily:{type:String,observer:"__fontFamilyChanged"},size:{type:Number,value:24},__defaultPAR:{type:String,value:"xMidYMid meet"},__preserveAspectRatio:String,__useRef:Object,__svgElement:String,__viewBox:String,__fill:String,__stroke:String,__strokeWidth:String,__strokeLinecap:String,__strokeLinejoin:String}}static get observers(){return["__svgChanged(svg, __svgElement)","__fontChanged(iconClass, char, ligature)","__srcChanged(src, symbol)"]}static get observedAttributes(){return[...super.observedAttributes,"class"]}constructor(){super(),this.__fetch=fetch.bind(window)}get slotStyles(){return[`\n ${this.localName}[icon-class] {\n display: inline-flex;\n vertical-align: middle;\n font-size: inherit;\n }\n `]}get __iconClasses(){return this.iconClass?this.iconClass.split(" "):[]}ready(){super.ready(),this.__svgElement=this.shadowRoot.querySelector("#svg-group"),this._tooltipController=new c.I(this),this.addController(this._tooltipController)}connectedCallback(){super.connectedCallback(),_.k.attachedIcons.add(this)}disconnectedCallback(){super.disconnectedCallback(),_.k.attachedIcons.delete(this)}_applyIcon(){const{preserveAspectRatio:t,svg:e,size:s,viewBox:i}=_.k.getIconSvg(this.icon);i&&(this.__viewBox=i),t&&(this.__preserveAspectRatio=t),s&&s!==this.size&&(this.size=s),this.svg=e}__iconChanged(t){t?this._applyIcon():this.svg=(0,h.ml)(null)}async __srcChanged(t,e){if(t)if(this.icon="",t.startsWith("data:")||!e&&!t.includes("#"))try{u.has(t)||u.set(t,this.__fetch(t,{mode:"cors"}).then((t=>{if(!t.ok)throw new Error("Error loading icon");return t.text()})));const s=await u.get(t);p.__domParser||(p.__domParser=new DOMParser);const i=p.__domParser.parseFromString(s,"text/html").querySelector("svg");if(!i)throw new Error(`SVG element not found on path: ${t}`);this.svg=(0,h.Qo)(i.innerHTML),e&&(this.__useRef=`#${e}`),this.__viewBox=i.getAttribute("viewBox"),this.__fill=i.getAttribute("fill"),this.__stroke=i.getAttribute("stroke"),this.__strokeWidth=i.getAttribute("stroke-width"),this.__strokeLinecap=i.getAttribute("stroke-linecap"),this.__strokeLinejoin=i.getAttribute("stroke-linejoin")}catch(t){console.error(t),this.svg=null}else{const[s,i]=t.split("#");this.__useRef=`${s}#${e||i}`}else this.svg=null}__svgChanged(t,e){e&&(0,h.lW)(t,e)}__computePAR(t,e){return e||t}__computeVisibility(t){return t?"visible":"hidden"}__computeViewBox(t,e){return e||`0 0 ${t} ${t}`}__fontChanged(t,e,s){this.classList.remove(...this.__addedIconClasses||[]),t&&(this.__addedIconClasses=[...this.__iconClasses],this.classList.add(...this.__addedIconClasses)),e?this.setAttribute("font-icon-content",e.length>1?String.fromCodePoint(parseInt(e,16)):e):s?this.setAttribute("font-icon-content",s):this.removeAttribute("font-icon-content"),(t||e||s)&&!this.icon&&(this.icon="")}attributeChangedCallback(t,e,s){super.attributeChangedCallback(t,e,s),"class"===t&&this.__iconClasses.some((t=>!this.classList.contains(t)))&&this.classList.add(...this.__iconClasses)}__fontFamilyChanged(t){this.style.fontFamily=`'${t}'`}}(0,o.X)(p)},71367:(t,e,s)=>{s.d(e,{k:()=>_});var i=s(63033),n=s(38735),o=s(64802),r=s(80888);const a={},c=new Set;function l(t,e){return(t||"").replace(`${e}:`,"")}function d(t){if(t)return t.split(":")[0]||"vaadin"}function h(t,e){t._icons=[...t.querySelectorAll("[id]")].reduce(((t,s)=>(t[l(s.id,e)]=s,t)),{})}class _ extends((0,o.q)(i.Pu)){static get template(){return null}static get is(){return"vaadin-iconset"}static get properties(){return{name:{type:String,observer:"__nameChanged"},size:{type:Number,value:24}}}static get attachedIcons(){return c}static getIconset(t){return a[t]}static getIconSvg(t,e){const s=e||d(t),i=this.getIconset(s);if(!t||!i)return{svg:(0,r.io)(null)};const n=l(t,s),o=i._icons[n];return{preserveAspectRatio:o?o.getAttribute("preserveAspectRatio"):null,svg:(0,r.io)(o),size:i.size,viewBox:o?o.getAttribute("viewBox"):null}}static register(t,e,s){if(!a[t]){const i=document.createElement("vaadin-iconset");i.appendChild(s.content.cloneNode(!0)),a[t]=i,h(i,t),i.size=e,i.name=t,i.__nameChanged(t)}}connectedCallback(){super.connectedCallback(),this.style.display="none";const{name:t}=this;a[t]=this,h(this,t),this.__updateIcons(t)}__updateIcons(t){c.forEach((e=>{t===d(e.icon)&&e._applyIcon()}))}__nameChanged(t,e){e&&(a[t]=a[e],delete a[e]),t&&this.__updateIcons(t)}}(0,n.X)(_)},38775:(t,e,s)=>{s(66206);var i=s(6052);(0,i.SF)("vaadin-icon",i.AH`
69
+ :host {
70
+ width: var(--lumo-icon-size-m);
71
+ height: var(--lumo-icon-size-m);
72
+ }
73
+ `,{moduleId:"lumo-icon"})},79172:(t,e,s)=>{s(38775),s(96271)},96206:(t,e,s)=>{s(79172),s(80888),s(96271)},7804:(t,e,s)=>{s.d(e,{OA:()=>i,WL:()=>o,u$:()=>n});const i={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},n=t=>(...e)=>({_$litDirective$:t,values:e});class o{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,s){this._$Ct=t,this._$AM=e,this._$Ci=s}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}},40068:(t,e,s)=>{s.d(e,{D:()=>o});var i=s(36752),n=s(7804);class o extends n.WL{constructor(t){if(super(t),this.et=i.s6,t.type!==n.OA.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===i.s6||null==t)return this.vt=void 0,this.et=t;if(t===i.c0)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.vt;this.et=t;const e=[t];return e.raw=e,this.vt={_$litType$:this.constructor.resultType,strings:e,values:[]}}}o.directiveName="unsafeHTML",o.resultType=1,(0,n.u$)(o)},1487:(t,e,s)=>{s.d(e,{T:()=>r});var i=s(7804),n=s(40068);class o extends n.D{}o.directiveName="unsafeSVG",o.resultType=2;const r=(0,i.u$)(o)},38240:(t,e,s)=>{s.d(e,{Qk:()=>i.Qk,qb:()=>i.qb});var i=s(18504)},58503:(t,e,s)=>{s.d(e,{T:()=>i.T});var i=s(1487)}}]);