@descope/web-components-ui 1.0.384 → 1.0.386

Sign up to get free protection for your applications and to get access to all the features.
Files changed (154) hide show
  1. package/dist/cjs/index.cjs.js +1 -0
  2. package/dist/cjs/index.cjs.js.map +1 -1
  3. package/dist/index.esm.js +1 -0
  4. package/dist/index.esm.js.map +1 -1
  5. package/dist/umd/1033.js +2 -0
  6. package/dist/umd/{9423.js → 1053.js} +15 -15
  7. package/dist/umd/1414.js +352 -0
  8. package/dist/umd/{9314.js → 1437.js} +10 -10
  9. package/dist/umd/1672.js +1 -0
  10. package/dist/umd/{3830.js → 2566.js} +2 -2
  11. package/dist/umd/{7856.js → 2838.js} +2 -2
  12. package/dist/umd/286.js +148 -0
  13. package/dist/umd/{5135.js → 2919.js} +8 -8
  14. package/dist/umd/3222.js +282 -0
  15. package/dist/umd/{7056.js → 351.js} +10 -10
  16. package/dist/umd/3607.js +2 -0
  17. package/dist/umd/3711.js +123 -0
  18. package/dist/umd/4619.js +1 -0
  19. package/dist/umd/{3951.js → 4834.js} +8 -8
  20. package/dist/umd/{1612.js → 5026.js} +7 -7
  21. package/dist/umd/{7284.js → 5086.js} +8 -8
  22. package/dist/umd/{8191.js → 5273.js} +6 -6
  23. package/dist/umd/5412.js +109 -0
  24. package/dist/umd/{4024.js → 5443.js} +7 -7
  25. package/dist/umd/5459.js +1 -0
  26. package/dist/umd/{6594.js → 6418.js} +2 -2
  27. package/dist/umd/{1438.js → 6474.js} +16 -16
  28. package/dist/umd/650.js +1 -0
  29. package/dist/umd/6637.js +73 -0
  30. package/dist/umd/6726.js +148 -0
  31. package/dist/umd/{63.js → 7212.js} +9 -9
  32. package/dist/umd/{9562.js → 7407.js} +7 -7
  33. package/dist/umd/{7541.js → 7607.js} +11 -11
  34. package/dist/umd/{4052.js → 7824.js} +7 -7
  35. package/dist/umd/{4525.js → 8162.js} +3 -3
  36. package/dist/umd/8164.js +319 -0
  37. package/dist/umd/{5977.js → 8980.js} +10 -10
  38. package/dist/umd/{8137.js → 9167.js} +10 -10
  39. package/dist/umd/{5778.js → 9632.js} +10 -10
  40. package/dist/umd/9878.js +1 -0
  41. package/dist/umd/9895.js +17 -0
  42. package/dist/umd/DescopeDev.js +1 -1
  43. package/dist/umd/boolean-fields-descope-boolean-field-internal-index-js.js +1 -1
  44. package/dist/umd/boolean-fields-descope-checkbox-index-js.js +1 -1
  45. package/dist/umd/boolean-fields-descope-switch-toggle-index-js.js +1 -1
  46. package/dist/umd/button-selection-group-fields-descope-button-multi-selection-group-index-js.js +1 -1
  47. package/dist/umd/button-selection-group-fields-descope-button-multi-selection-group-internal-index-js.js +1 -1
  48. package/dist/umd/button-selection-group-fields-descope-button-selection-group-index-js.js +1 -1
  49. package/dist/umd/button-selection-group-fields-descope-button-selection-group-internal-index-js.js +1 -1
  50. package/dist/umd/button-selection-group-fields-descope-button-selection-group-item-index-js.js +1 -1
  51. package/dist/umd/descope-apps-list-index-js.js +1 -1
  52. package/dist/umd/descope-avatar-index-js.js +1 -1
  53. package/dist/umd/descope-badge-index-js.js +1 -1
  54. package/dist/umd/descope-button-index-js.js +6 -6
  55. package/dist/umd/descope-code-snippet-index-js.js +1 -1
  56. package/dist/umd/descope-combo-box-index-js.js +7 -7
  57. package/dist/umd/descope-container-index-js.js +1 -1
  58. package/dist/umd/descope-date-field-descope-calendar-index-js.js +1 -1
  59. package/dist/umd/descope-date-field-index-js.js +1 -1
  60. package/dist/umd/descope-divider-index-js.js +1 -1
  61. package/dist/umd/descope-email-field-index-js.js +4 -4
  62. package/dist/umd/descope-enriched-text-index-js.js +1 -1
  63. package/dist/umd/descope-grid-descope-grid-custom-column-index-js.js +4 -4
  64. package/dist/umd/descope-grid-descope-grid-item-details-column-index-js.js +4 -4
  65. package/dist/umd/descope-grid-descope-grid-selection-column-index-js.js +1 -1
  66. package/dist/umd/descope-grid-descope-grid-text-column-index-js.js +4 -4
  67. package/dist/umd/descope-grid-index-js.js +1 -1
  68. package/dist/umd/descope-icon-index-js.js +1 -1
  69. package/dist/umd/descope-image-index-js.js +1 -1
  70. package/dist/umd/descope-link-index-js.js +1 -1
  71. package/dist/umd/descope-list-index-js.js +1 -1
  72. package/dist/umd/descope-loader-linear-index-js.js +1 -1
  73. package/dist/umd/descope-loader-radial-index-js.js +1 -1
  74. package/dist/umd/descope-logo-index-js.js +1 -1
  75. package/dist/umd/descope-modal-index-js.js +1 -1
  76. package/dist/umd/descope-multi-select-combo-box-index-js.js +1 -1
  77. package/dist/umd/descope-new-password-descope-new-password-internal-index-js.js +1 -1
  78. package/dist/umd/descope-new-password-index-js.js +1 -1
  79. package/dist/umd/descope-notification-descope-notification-card-index-js.js +1 -1
  80. package/dist/umd/descope-notification-index-js.js +1 -1
  81. package/dist/umd/descope-notp-image-index-js.js +1 -1
  82. package/dist/umd/descope-number-field-index-js.js +1 -1
  83. package/dist/umd/descope-passcode-descope-passcode-internal-index-js.js +1 -1
  84. package/dist/umd/descope-passcode-index-js.js +1 -1
  85. package/dist/umd/descope-password-index-js.js +1 -1
  86. package/dist/umd/descope-policy-validation-index-js.js +1 -1
  87. package/dist/umd/descope-radio-group-index-js.js +1 -1
  88. package/dist/umd/descope-recaptcha-index-js.js +1 -1
  89. package/dist/umd/descope-text-area-index-js.js +1 -1
  90. package/dist/umd/descope-text-field-index-js.js +2 -2
  91. package/dist/umd/descope-text-index-js.js +1 -1
  92. package/dist/umd/descope-totp-image-index-js.js +1 -1
  93. package/dist/umd/descope-upload-file-index-js.js +1 -1
  94. package/dist/umd/descope-user-attribute-index-js.js +1 -1
  95. package/dist/umd/descope-user-auth-method-index-js.js +1 -1
  96. package/dist/umd/index.js +1 -1
  97. package/dist/umd/mapping-fields-descope-mappings-field-descope-mapping-item-index-js.js +1 -1
  98. package/dist/umd/mapping-fields-descope-mappings-field-descope-mappings-field-internal-index-js.js +1 -1
  99. package/dist/umd/mapping-fields-descope-mappings-field-index-js.js +1 -1
  100. package/dist/umd/mapping-fields-descope-saml-group-mappings-descope-saml-group-mappings-internal-index-js.js +1 -1
  101. package/dist/umd/mapping-fields-descope-saml-group-mappings-index-js.js +1 -1
  102. package/dist/umd/phone-fields-descope-phone-field-descope-phone-field-internal-index-js.js +1 -1
  103. package/dist/umd/phone-fields-descope-phone-field-index-js.js +1 -1
  104. package/dist/umd/phone-fields-descope-phone-input-box-field-descope-phone-input-box-internal-index-js.js +2 -2
  105. package/dist/umd/phone-fields-descope-phone-input-box-field-index-js.js +1 -1
  106. package/package.json +1 -1
  107. package/dist/umd/1224.js +0 -2
  108. package/dist/umd/2773.js +0 -148
  109. package/dist/umd/3227.js +0 -17
  110. package/dist/umd/3966.js +0 -319
  111. package/dist/umd/4392.js +0 -1
  112. package/dist/umd/4569.js +0 -1
  113. package/dist/umd/4978.js +0 -1
  114. package/dist/umd/5517.js +0 -2
  115. package/dist/umd/5806.js +0 -109
  116. package/dist/umd/5910.js +0 -1
  117. package/dist/umd/602.js +0 -282
  118. package/dist/umd/637.js +0 -1
  119. package/dist/umd/6770.js +0 -148
  120. package/dist/umd/7911.js +0 -73
  121. package/dist/umd/8060.js +0 -352
  122. package/dist/umd/8655.js +0 -123
  123. /package/dist/umd/{1224.js.LICENSE.txt → 1033.js.LICENSE.txt} +0 -0
  124. /package/dist/umd/{9423.js.LICENSE.txt → 1053.js.LICENSE.txt} +0 -0
  125. /package/dist/umd/{8060.js.LICENSE.txt → 1414.js.LICENSE.txt} +0 -0
  126. /package/dist/umd/{1612.js.LICENSE.txt → 1437.js.LICENSE.txt} +0 -0
  127. /package/dist/umd/{3830.js.LICENSE.txt → 2566.js.LICENSE.txt} +0 -0
  128. /package/dist/umd/{7856.js.LICENSE.txt → 2838.js.LICENSE.txt} +0 -0
  129. /package/dist/umd/{4024.js.LICENSE.txt → 286.js.LICENSE.txt} +0 -0
  130. /package/dist/umd/{5135.js.LICENSE.txt → 2919.js.LICENSE.txt} +0 -0
  131. /package/dist/umd/{3227.js.LICENSE.txt → 3222.js.LICENSE.txt} +0 -0
  132. /package/dist/umd/{4052.js.LICENSE.txt → 351.js.LICENSE.txt} +0 -0
  133. /package/dist/umd/{5517.js.LICENSE.txt → 3607.js.LICENSE.txt} +0 -0
  134. /package/dist/umd/{8655.js.LICENSE.txt → 3711.js.LICENSE.txt} +0 -0
  135. /package/dist/umd/{3951.js.LICENSE.txt → 4834.js.LICENSE.txt} +0 -0
  136. /package/dist/umd/{4525.js.LICENSE.txt → 5026.js.LICENSE.txt} +0 -0
  137. /package/dist/umd/{6770.js.LICENSE.txt → 5086.js.LICENSE.txt} +0 -0
  138. /package/dist/umd/{7056.js.LICENSE.txt → 5273.js.LICENSE.txt} +0 -0
  139. /package/dist/umd/{5806.js.LICENSE.txt → 5412.js.LICENSE.txt} +0 -0
  140. /package/dist/umd/{7284.js.LICENSE.txt → 5443.js.LICENSE.txt} +0 -0
  141. /package/dist/umd/{6594.js.LICENSE.txt → 6418.js.LICENSE.txt} +0 -0
  142. /package/dist/umd/{1438.js.LICENSE.txt → 6474.js.LICENSE.txt} +0 -0
  143. /package/dist/umd/{7911.js.LICENSE.txt → 6637.js.LICENSE.txt} +0 -0
  144. /package/dist/umd/{2773.js.LICENSE.txt → 6726.js.LICENSE.txt} +0 -0
  145. /package/dist/umd/{63.js.LICENSE.txt → 7212.js.LICENSE.txt} +0 -0
  146. /package/dist/umd/{8191.js.LICENSE.txt → 7407.js.LICENSE.txt} +0 -0
  147. /package/dist/umd/{7541.js.LICENSE.txt → 7607.js.LICENSE.txt} +0 -0
  148. /package/dist/umd/{9314.js.LICENSE.txt → 7824.js.LICENSE.txt} +0 -0
  149. /package/dist/umd/{9562.js.LICENSE.txt → 8162.js.LICENSE.txt} +0 -0
  150. /package/dist/umd/{3966.js.LICENSE.txt → 8164.js.LICENSE.txt} +0 -0
  151. /package/dist/umd/{5977.js.LICENSE.txt → 8980.js.LICENSE.txt} +0 -0
  152. /package/dist/umd/{8137.js.LICENSE.txt → 9167.js.LICENSE.txt} +0 -0
  153. /package/dist/umd/{5778.js.LICENSE.txt → 9632.js.LICENSE.txt} +0 -0
  154. /package/dist/umd/{602.js.LICENSE.txt → 9895.js.LICENSE.txt} +0 -0
package/dist/umd/5910.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_descope_web_components_ui=self.webpackChunk_descope_web_components_ui||[]).push([[5910],{95910:()=>{!function(){const e=new WeakMap,t=new WeakMap,a=new WeakMap,r=new WeakMap,i=new WeakMap,n=new WeakMap,o=new WeakMap,s=new WeakMap,l=new WeakMap,c=new WeakMap,d=new WeakMap,u=new WeakMap,m=new WeakMap,h=new WeakMap,f=new WeakMap,p={ariaAtomic:"aria-atomic",ariaAutoComplete:"aria-autocomplete",ariaBusy:"aria-busy",ariaChecked:"aria-checked",ariaColCount:"aria-colcount",ariaColIndex:"aria-colindex",ariaColIndexText:"aria-colindextext",ariaColSpan:"aria-colspan",ariaCurrent:"aria-current",ariaDisabled:"aria-disabled",ariaExpanded:"aria-expanded",ariaHasPopup:"aria-haspopup",ariaHidden:"aria-hidden",ariaInvalid:"aria-invalid",ariaKeyShortcuts:"aria-keyshortcuts",ariaLabel:"aria-label",ariaLevel:"aria-level",ariaLive:"aria-live",ariaModal:"aria-modal",ariaMultiLine:"aria-multiline",ariaMultiSelectable:"aria-multiselectable",ariaOrientation:"aria-orientation",ariaPlaceholder:"aria-placeholder",ariaPosInSet:"aria-posinset",ariaPressed:"aria-pressed",ariaReadOnly:"aria-readonly",ariaRelevant:"aria-relevant",ariaRequired:"aria-required",ariaRoleDescription:"aria-roledescription",ariaRowCount:"aria-rowcount",ariaRowIndex:"aria-rowindex",ariaRowIndexText:"aria-rowindextext",ariaRowSpan:"aria-rowspan",ariaSelected:"aria-selected",ariaSetSize:"aria-setsize",ariaSort:"aria-sort",ariaValueMax:"aria-valuemax",ariaValueMin:"aria-valuemin",ariaValueNow:"aria-valuenow",ariaValueText:"aria-valuetext",role:"role"};function g(e){const t=r.get(e),{form:a}=t;L(e,a,t),x(e,t.labels)}const y=(e,t=!1)=>{const a=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>r.has(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});let i=a.nextNode();const n=!t||e.disabled;for(;i;)i.formDisabledCallback&&n&&A(i,e.disabled),i=a.nextNode()},b={attributes:!0,attributeFilter:["disabled","name"]},w=W()?new MutationObserver((e=>{for(const t of e){const e=t.target;if("disabled"===t.attributeName&&(e.constructor.formAssociated?A(e,e.hasAttribute("disabled")):"fieldset"===e.localName&&y(e)),"name"===t.attributeName&&e.constructor.formAssociated){const t=r.get(e),a=l.get(e);t.setFormValue(a)}}})):{};function v(e){e.forEach((e=>{const{addedNodes:t,removedNodes:i}=e,n=Array.from(t),l=Array.from(i);n.forEach((e=>{if(r.has(e)&&e.constructor.formAssociated&&g(e),c.has(e)){const t=c.get(e);Object.keys(p).filter((e=>null!==t[e])).forEach((a=>{e.setAttribute(p[a],t[a])})),c.delete(e)}if(f.has(e)){const t=f.get(e);e.setAttribute("internals-valid",t.validity.valid.toString()),e.setAttribute("internals-invalid",(!t.validity.valid).toString()),e.setAttribute("aria-invalid",(!t.validity.valid).toString()),f.delete(e)}if("form"===e.localName){const t=s.get(e),a=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>!r.has(e)||!e.constructor.formAssociated||t&&t.has(e)?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT});let i=a.nextNode();for(;i;)g(i),i=a.nextNode()}"fieldset"===e.localName&&(w.observe?.(e,b),y(e,!0))})),l.forEach((e=>{const t=r.get(e);t&&a.get(t)&&T(t),o.has(e)&&o.get(e).disconnect()}))}))}function E(e){e.forEach((e=>{const{removedNodes:t}=e;t.forEach((t=>{const a=m.get(e.target);r.has(t)&&R(t),a.disconnect()}))}))}!W()||new MutationObserver(v);const M={childList:!0,subtree:!0},A=(e,t)=>{e.toggleAttribute("internals-disabled",t),t?e.setAttribute("aria-disabled","true"):e.removeAttribute("aria-disabled"),e.formDisabledCallback&&e.formDisabledCallback.apply(e,[t])},T=e=>{a.get(e).forEach((e=>{e.remove()})),a.set(e,[])},k=(e,t)=>{const r=document.createElement("input");return r.type="hidden",r.name=e.getAttribute("name"),e.after(r),a.get(t).push(r),r},x=(e,t)=>{if(t.length){Array.from(t).forEach((t=>t.addEventListener("click",e.click.bind(e))));let a=t[0].id;t[0].id||(a=`${t[0].htmlFor}_Label`,t[0].id=a),e.setAttribute("aria-labelledby",a)}},F=e=>{const t=Array.from(e.elements).filter((e=>!e.tagName.includes("-")&&e.validity)).map((e=>e.validity.valid)),a=s.get(e)||[],i=[...t,...Array.from(a).filter((e=>e.isConnected)).map((e=>r.get(e).validity.valid))].includes(!1);e.toggleAttribute("internals-invalid",i),e.toggleAttribute("internals-valid",!i)},I=e=>{F(N(e.target))},C=e=>{F(N(e.target))},S=e=>{const t=s.get(e.target);t&&t.size&&t.forEach((e=>{e.constructor.formAssociated&&e.formResetCallback&&e.formResetCallback.apply(e)}))},L=(e,t,a)=>{if(t){const i=s.get(t);if(i)i.add(e);else{const a=new Set;a.add(e),s.set(t,a),(e=>{const t=["button[type=submit]","input[type=submit]","button:not([type])"].map((e=>`${e}:not([disabled])`)).map((t=>`${t}:not([form])${e.id?`,${t}[form='${e.id}']`:""}`)).join(",");e.addEventListener("click",(a=>{if(a.target.closest(t)){const t=s.get(e);if(e.noValidate)return;t.size&&Array.from(t).reverse().map((e=>r.get(e).reportValidity())).includes(!1)&&a.preventDefault()}}))})(t),t.addEventListener("reset",S),t.addEventListener("input",I),t.addEventListener("change",C)}n.set(t,{ref:e,internals:a}),e.constructor.formAssociated&&e.formAssociatedCallback&&setTimeout((()=>{e.formAssociatedCallback.apply(e,[t])}),0),F(t)}},N=e=>{let t=e.parentNode;return t&&"FORM"!==t.tagName&&(t=N(t)),t},V=(e,t,a=DOMException)=>{if(!e.constructor.formAssociated)throw new a(t)},O=(e,t,a)=>{const i=s.get(e);return i&&i.size&&i.forEach((e=>{r.get(e)[a]()||(t=!1)})),t},R=e=>{if(e.constructor.formAssociated){const t=r.get(e),{labels:a,form:i}=t;x(e,a),L(e,i,t)}};function W(){return"undefined"!=typeof MutationObserver}class D{constructor(){this.badInput=!1,this.customError=!1,this.patternMismatch=!1,this.rangeOverflow=!1,this.rangeUnderflow=!1,this.stepMismatch=!1,this.tooLong=!1,this.tooShort=!1,this.typeMismatch=!1,this.valid=!0,this.valueMissing=!1,Object.seal(this)}}const H=new WeakMap;function P(e,t){e.toggleAttribute(t,!0),e.part&&e.part.add(t)}class $ extends Set{static get isPolyfilled(){return!0}constructor(e){if(super(),!e||!e.tagName||-1===e.tagName.indexOf("-"))throw new TypeError("Illegal constructor");H.set(this,e)}add(e){if(!/^--/.test(e)||"string"!=typeof e)throw new DOMException(`Failed to execute 'add' on 'CustomStateSet': The specified value ${e} must start with '--'.`);const t=super.add(e),a=H.get(this),r=`state${e}`;return a.isConnected?P(a,r):setTimeout((()=>{P(a,r)})),t}clear(){for(let[e]of this.entries())this.delete(e);super.clear()}delete(e){const t=super.delete(e),a=H.get(this);return a.isConnected?(a.toggleAttribute(`state${e}`,!1),a.part&&a.part.remove(`state${e}`)):setTimeout((()=>{a.toggleAttribute(`state${e}`,!1),a.part&&a.part.remove(`state${e}`)})),t}}function _(e,t,a,r){if("a"===a&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===a?r:"a"===a?r.call(e):r?r.value:t.get(e)}var j;class z{constructor(e){j.set(this,void 0),function(e,t,a,r,i){if("function"==typeof t||!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");t.set(e,a)}(this,j,e);for(let t=0;t<e.length;t++){let a=e[t];this[t]=a,a.hasAttribute("name")&&(this[a.getAttribute("name")]=a)}Object.freeze(this)}get length(){return _(this,j,"f").length}[(j=new WeakMap,Symbol.iterator)](){return _(this,j,"f")[Symbol.iterator]()}item(e){return null==this[e]?null:this[e]}namedItem(e){return null==this[e]?null:this[e]}}class q{static get isPolyfilled(){return!0}constructor(i){if(!i||!i.tagName||-1===i.tagName.indexOf("-"))throw new TypeError("Illegal constructor");const n=i.getRootNode(),o=new D;this.states=new $(i),e.set(this,i),t.set(this,o),r.set(i,this),((e,t)=>{for(let a in p){t[a]=null;let r=null;const i=p[a];Object.defineProperty(t,a,{get:()=>r,set(a){r=a,e.isConnected?e.setAttribute(i,a):c.set(e,t)}})}})(i,this),((e,t)=>{a.set(t,[]),w.observe?.(e,b)})(i,this),Object.seal(this),n instanceof DocumentFragment&&(e=>{const t=new MutationObserver(E);t.observe?.(e,{childList:!0}),m.set(e,t)})(n)}checkValidity(){const a=e.get(this);if(V(a,"Failed to execute 'checkValidity' on 'ElementInternals': The target element is not a form-associated custom element."),!this.willValidate)return!0;const r=t.get(this);if(!r.valid){const e=new Event("invalid",{bubbles:!1,cancelable:!0,composed:!1});a.dispatchEvent(e)}return r.valid}get form(){const t=e.get(this);let a;return V(t,"Failed to read the 'form' property from 'ElementInternals': The target element is not a form-associated custom element."),!0===t.constructor.formAssociated&&(a=N(t)),a}get labels(){const t=e.get(this);V(t,"Failed to read the 'labels' property from 'ElementInternals': The target element is not a form-associated custom element.");const a=t.getAttribute("id"),r=t.getRootNode();return r&&a?r.querySelectorAll(`[for="${a}"]`):[]}reportValidity(){const t=e.get(this);if(V(t,"Failed to execute 'reportValidity' on 'ElementInternals': The target element is not a form-associated custom element."),!this.willValidate)return!0;const a=this.checkValidity(),r=u.get(this);if(r&&!t.constructor.formAssociated)throw new DOMException("Failed to execute 'reportValidity' on 'ElementInternals': The target element is not a form-associated custom element.");return!a&&r&&(t.focus(),r.focus()),a}setFormValue(t){const a=e.get(this);V(a,"Failed to execute 'setFormValue' on 'ElementInternals': The target element is not a form-associated custom element."),T(this),null==t||t instanceof FormData?null!=t&&t instanceof FormData&&Array.from(t).reverse().forEach((([e,t])=>{if("string"==typeof t){const r=k(a,this);r.name=e,r.value=t}})):a.getAttribute("name")&&(k(a,this).value=t),l.set(a,t)}setValidity(a,r,n){const o=e.get(this);if(V(o,"Failed to execute 'setValidity' on 'ElementInternals': The target element is not a form-associated custom element."),!a)throw new TypeError("Failed to execute 'setValidity' on 'ElementInternals': 1 argument required, but only 0 present.");u.set(this,n);const s=t.get(this),l={};for(const e in a)l[e]=a[e];var c;0===Object.keys(l).length&&((c=s).badInput=!1,c.customError=!1,c.patternMismatch=!1,c.rangeOverflow=!1,c.rangeUnderflow=!1,c.stepMismatch=!1,c.tooLong=!1,c.tooShort=!1,c.typeMismatch=!1,c.valid=!0,c.valueMissing=!1);const d={...s,...l};delete d.valid;const{valid:m}=((e,t,a)=>(e.valid=(e=>{let t=!0;for(let a in e)"valid"!==a&&!1!==e[a]&&(t=!1);return t})(t),Object.keys(t).forEach((a=>e[a]=t[a])),a&&F(a),e))(s,d,this.form);if(!m&&!r)throw new DOMException("Failed to execute 'setValidity' on 'ElementInternals': The second argument should not be empty if one or more flags in the first argument are true.");i.set(this,m?"":r),o.isConnected?(o.toggleAttribute("internals-invalid",!m),o.toggleAttribute("internals-valid",m),o.setAttribute("aria-invalid",`${!m}`)):f.set(o,this)}get shadowRoot(){const t=e.get(this);return d.get(t)||null}get validationMessage(){const t=e.get(this);return V(t,"Failed to read the 'validationMessage' property from 'ElementInternals': The target element is not a form-associated custom element."),i.get(this)}get validity(){const a=e.get(this);return V(a,"Failed to read the 'validity' property from 'ElementInternals': The target element is not a form-associated custom element."),t.get(this)}get willValidate(){const t=e.get(this);return V(t,"Failed to read the 'willValidate' property from 'ElementInternals': The target element is not a form-associated custom element."),!(t.disabled||t.hasAttribute("disabled")||t.hasAttribute("readonly"))}}if(function(){if("undefined"==typeof window||!window.ElementInternals||!HTMLElement.prototype.attachInternals)return!1;class e extends HTMLElement{constructor(){super(),this.internals=this.attachInternals()}}const t=`element-internals-feature-detection-${Math.random().toString(36).replace(/[^a-z]+/g,"")}`;customElements.define(t,e);const a=new e;return["shadowRoot","form","willValidate","validity","validationMessage","labels","setFormValue","setValidity","checkValidity","reportValidity"].every((e=>e in a.internals))}()){if("undefined"!=typeof window&&!window.CustomStateSet){window.CustomStateSet=$;const K=HTMLElement.prototype.attachInternals;HTMLElement.prototype.attachInternals=function(...e){const t=K.call(this,e);return t.states=new $(this),t}}}else{if("undefined"!=typeof window&&(window.ElementInternals=q),"undefined"!=typeof CustomElementRegistry){const U=CustomElementRegistry.prototype.define;CustomElementRegistry.prototype.define=function(e,t,a){if(t.formAssociated){const e=t.prototype.connectedCallback;t.prototype.connectedCallback=function(){h.has(this)||(h.set(this,!0),this.hasAttribute("disabled")&&A(this,!0)),null!=e&&e.apply(this),R(this)}}U.call(this,e,t,a)}}if("undefined"!=typeof HTMLElement&&(HTMLElement.prototype.attachInternals=function(){if(!this.tagName)return{};if(-1===this.tagName.indexOf("-"))throw new Error("Failed to execute 'attachInternals' on 'HTMLElement': Unable to attach ElementInternals to non-custom elements.");if(r.has(this))throw new DOMException("DOMException: Failed to execute 'attachInternals' on 'HTMLElement': ElementInternals for the specified element was already attached.");return new q(this)}),"undefined"!=typeof Element){function B(...e){const t=G.apply(this,e);if(d.set(this,t),W()){const e=new MutationObserver(v);window.ShadyDOM?e.observe(this,M):e.observe(t,M),o.set(this,e)}return t}const G=Element.prototype.attachShadow;Element.prototype.attachShadow=B}W()&&"undefined"!=typeof document&&new MutationObserver(v).observe(document.documentElement,M),"undefined"!=typeof HTMLFormElement&&function(){const e=HTMLFormElement.prototype.checkValidity;HTMLFormElement.prototype.checkValidity=function(...t){let a=e.apply(this,t);return O(this,a,"checkValidity")};const t=HTMLFormElement.prototype.reportValidity;HTMLFormElement.prototype.reportValidity=function(...e){let a=t.apply(this,e);return O(this,a,"reportValidity")};const{get:a}=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get(...e){const t=a.call(this,...e),r=Array.from(s.get(this)||[]);if(0===r.length)return t;const i=Array.from(t).concat(r).sort(((e,t)=>e.compareDocumentPosition?2&e.compareDocumentPosition(t)?1:-1:0));return new z(i)}})}(),"undefined"==typeof window||window.CustomStateSet||(window.CustomStateSet=$)}}()}}]);
package/dist/umd/602.js DELETED
@@ -1,282 +0,0 @@
1
- /*! For license information please see 602.js.LICENSE.txt */
2
- "use strict";(self.webpackChunk_descope_web_components_ui=self.webpackChunk_descope_web_components_ui||[]).push([[602],{41370:(e,t,r)=>{r.d(t,{B:()=>a});var s=r(91014),i=r(21360),o=r(58298);const a=(0,s.o)((e=>class extends((0,i.W)((0,o.N)(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)}}))},95229:(e,t,r)=>{r.d(t,{f:()=>s});const s=(0,r(91014).o)((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()}}))},39107:(e,t,r)=>{r.d(t,{o:()=>d});var s=r(63726);const i=new Map;function o(e){return i.has(e)||i.set(e,new WeakMap),i.get(e)}function a(e,t){e&&e.removeAttribute(t)}function n(e,t){if(!e||!t)return;const r=o(t);if(r.has(e))return;const i=(0,s.hK)(e.getAttribute(t));r.set(e,new Set(i))}function l(e,t,r={newId:null,oldId:null,fromUser:!1}){if(!e||!t)return;const{newId:i,oldId:l,fromUser:d}=r,h=o(t),u=h.get(e);if(!d&&u)return l&&u.delete(l),void(i&&u.add(i));d&&(u?i||h.delete(e):n(e,t),a(e,t)),(0,s.x_)(e,t,l);const c=i||(0,s.dV)(u);c&&(0,s.$2)(e,t,c)}class d{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){var t;this.__target&&(e?(n(t=this.__target,"aria-labelledby"),a(t,"aria-labelledby"),this.__target.setAttribute("aria-label",e)):this.__label&&(function(e,t){if(!e)return;const r=o(t),i=r.get(e);i&&0!==i.size?(0,s.$2)(e,t,(0,s.dV)(i)):e.removeAttribute(t),r.delete(e)}(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(e,t,r){l(this.__target,"aria-labelledby",{newId:e,oldId:t,fromUser:r})}__setErrorIdToAriaAttribute(e,t){l(this.__target,"aria-describedby",{newId:e,oldId:t,fromUser:!1})}__setHelperIdToAriaAttribute(e,t){l(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")))}}},21360:(e,t,r)=>{r.d(t,{W:()=>o});var s=r(91014),i=r(3550);const o=(0,s.o)((e=>class extends e{get _keyboardActive(){return(0,i.LQ)()}ready(){this.addEventListener("focusin",(e=>{this._shouldSetFocus(e)&&this._setFocused(!0)})),this.addEventListener("focusout",(e=>{this._shouldRemoveFocus(e)&&this._setFocused(!1)})),super.ready()}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}_setFocused(e){this.toggleAttribute("focused",e),this.toggleAttribute("focus-ring",e&&this._keyboardActive)}_shouldSetFocus(e){return!0}_shouldRemoveFocus(e){return!0}}))},3550:(e,t,r)=>{r.d(t,{GF:()=>d,GO:()=>c,Gf:()=>i,LQ:()=>o,Qw:()=>h});let s=!1;function i(){let e=document.activeElement||document.body;for(;e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function o(){return s}function a(e){const t=e.style;if("hidden"===t.visibility||"none"===t.display)return!0;const r=window.getComputedStyle(e);return"hidden"===r.visibility||"none"===r.display}function n(e,t){const r=Math.max(e.tabIndex,0),s=Math.max(t.tabIndex,0);return 0===r||0===s?s>r:r>s}function l(e){const t=e.length;if(t<2)return e;const r=Math.ceil(t/2);return function(e,t){const r=[];for(;e.length>0&&t.length>0;)n(e[0],t[0])?r.push(t.shift()):r.push(e.shift());return r.concat(e,t)}(l(e.slice(0,r)),l(e.slice(r)))}function d(e){return null===e.offsetParent&&0===e.clientWidth&&0===e.clientHeight||a(e)}function h(e){return e.getRootNode().activeElement===e}function u(e,t){if(e.nodeType!==Node.ELEMENT_NODE||a(e))return!1;const r=e,s=function(e){if(!function(e){return!e.matches('[tabindex="-1"]')&&(e.matches("input, select, textarea, button, object")?e.matches(":not([disabled])"):e.matches("a[href], area[href], iframe, [tabindex], [contentEditable]"))}(e))return-1;const t=e.getAttribute("tabindex")||0;return Number(t)}(r);let i=s>0;s>=0&&t.push(r);let o=[];return o="slot"===r.localName?r.assignedNodes({flatten:!0}):(r.shadowRoot||r).children,[...o].forEach((e=>{i=u(e,t)||i})),i}function c(e){const t=[];return u(e,t)?l(t):t}window.addEventListener("keydown",(()=>{s=!0}),{capture:!0}),window.addEventListener("mousedown",(()=>{s=!1}),{capture:!0})},52628:(e,t,r)=>{r.d(t,{L:()=>s});const s=(0,r(91014).o)((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){}}))},58298:(e,t,r)=>{r.d(t,{N:()=>i});var s=r(95229);const i=e=>class extends((0,s.f)(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)}}},86328:(e,t,r)=>{r.d(t,{A:()=>s});const s=(0,r(91014).o)((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)}}))},22604:(e,t,r)=>{r.d(t,{v:()=>i});var s=r(78591);class i extends s.n{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)}}},17412:(e,t,r)=>{r.d(t,{f:()=>h});var s=r(39107),i=r(16155),o=r(22604);class a extends o.v{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)}}class n extends o.v{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)}}var l=r(26821),d=r(34524);const h=e=>class extends((0,d.n)((0,l.h)((0,i.k)(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.o(this),this._helperController=new n(this),this._errorController=new a(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)}))}}},56326:(e,t,r)=>{r.d(t,{J:()=>s});const s=(0,r(91014).o)((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}}))},26821:(e,t,r)=>{r.d(t,{h:()=>n});var s=r(91014),i=r(16155),o=r(22604);class a extends o.v{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)}}const n=(0,s.o)((e=>class extends((0,i.k)(e)){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new a(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)}}))},46729:(e,t,r)=>{r.d(t,{v:()=>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)}}},34524:(e,t,r)=>{r.d(t,{n:()=>s});const s=(0,r(91014).o)((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}}))},82982:(e,t,r)=>{r.d(t,{_:()=>s}),r(51195),r(79098),r(29849),r(34173);const s=r(46570).iv`
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
- `},1251:(e,t,r)=>{r.d(t,{l:()=>i}),r(51195),r(29416),r(29849),r(34173);var s=r(46570);const i=s.iv`
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.hC)("",i,{moduleId:"lumo-required-field"})},34173:(e,t,r)=>{r(24407);var s=r(46570),i=r(32463);const o=s.iv`
171
- :host {
172
- /* prettier-ignore */
173
- --lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
174
-
175
- /* Font sizes */
176
- --lumo-font-size-xxs: 0.75rem;
177
- --lumo-font-size-xs: 0.8125rem;
178
- --lumo-font-size-s: 0.875rem;
179
- --lumo-font-size-m: 1rem;
180
- --lumo-font-size-l: 1.125rem;
181
- --lumo-font-size-xl: 1.375rem;
182
- --lumo-font-size-xxl: 1.75rem;
183
- --lumo-font-size-xxxl: 2.5rem;
184
-
185
- /* Line heights */
186
- --lumo-line-height-xs: 1.25;
187
- --lumo-line-height-s: 1.375;
188
- --lumo-line-height-m: 1.625;
189
- }
190
- `,a=s.iv`
191
- body,
192
- :host {
193
- font-family: var(--lumo-font-family);
194
- font-size: var(--lumo-font-size-m);
195
- line-height: var(--lumo-line-height-m);
196
- -webkit-text-size-adjust: 100%;
197
- -webkit-font-smoothing: antialiased;
198
- -moz-osx-font-smoothing: grayscale;
199
- }
200
-
201
- small,
202
- [theme~='font-size-s'] {
203
- font-size: var(--lumo-font-size-s);
204
- line-height: var(--lumo-line-height-s);
205
- }
206
-
207
- [theme~='font-size-xs'] {
208
- font-size: var(--lumo-font-size-xs);
209
- line-height: var(--lumo-line-height-xs);
210
- }
211
-
212
- :where(h1, h2, h3, h4, h5, h6) {
213
- font-weight: 600;
214
- line-height: var(--lumo-line-height-xs);
215
- margin-block: 0;
216
- }
217
-
218
- :where(h1) {
219
- font-size: var(--lumo-font-size-xxxl);
220
- }
221
-
222
- :where(h2) {
223
- font-size: var(--lumo-font-size-xxl);
224
- }
225
-
226
- :where(h3) {
227
- font-size: var(--lumo-font-size-xl);
228
- }
229
-
230
- :where(h4) {
231
- font-size: var(--lumo-font-size-l);
232
- }
233
-
234
- :where(h5) {
235
- font-size: var(--lumo-font-size-m);
236
- }
237
-
238
- :where(h6) {
239
- font-size: var(--lumo-font-size-xs);
240
- text-transform: uppercase;
241
- letter-spacing: 0.03em;
242
- }
243
-
244
- p,
245
- blockquote {
246
- margin-top: 0.5em;
247
- margin-bottom: 0.75em;
248
- }
249
-
250
- a {
251
- text-decoration: none;
252
- }
253
-
254
- a:where(:any-link):hover {
255
- text-decoration: underline;
256
- }
257
-
258
- hr {
259
- display: block;
260
- align-self: stretch;
261
- height: 1px;
262
- border: 0;
263
- padding: 0;
264
- margin: var(--lumo-space-s) calc(var(--lumo-border-radius-m) / 2);
265
- background-color: var(--lumo-contrast-10pct);
266
- }
267
-
268
- blockquote {
269
- border-left: 2px solid var(--lumo-contrast-30pct);
270
- }
271
-
272
- b,
273
- strong {
274
- font-weight: 600;
275
- }
276
-
277
- /* RTL specific styles */
278
- blockquote[dir='rtl'] {
279
- border-left: none;
280
- border-right: 2px solid var(--lumo-contrast-30pct);
281
- }
282
- `;(0,s.hC)("",a,{moduleId:"lumo-typography"}),(0,i.K)("typography-props",o)}}]);