@descope/web-components-ui 1.0.412 → 1.0.414-1

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 (128) hide show
  1. package/dist/cjs/index.cjs.js +108 -975
  2. package/dist/cjs/index.cjs.js.map +1 -1
  3. package/dist/index.esm.js +100 -493
  4. package/dist/index.esm.js.map +1 -1
  5. package/dist/umd/{1497.js → 1053.js} +19 -19
  6. package/dist/umd/{1497.js.LICENSE.txt → 1053.js.LICENSE.txt} +0 -6
  7. package/dist/umd/{4671.js → 1414.js} +122 -10
  8. package/dist/umd/{4671.js.LICENSE.txt → 1414.js.LICENSE.txt} +0 -6
  9. package/dist/umd/1437.js +6 -6
  10. package/dist/umd/2566.js +2 -0
  11. package/dist/umd/{952.js.LICENSE.txt → 2566.js.LICENSE.txt} +6 -0
  12. package/dist/umd/286.js +2 -2
  13. package/dist/umd/2919.js +832 -0
  14. package/dist/umd/{8910.js.LICENSE.txt → 2919.js.LICENSE.txt} +0 -6
  15. package/dist/umd/3222.js +282 -0
  16. package/dist/umd/351.js +7 -7
  17. package/dist/umd/3607.js +1 -1
  18. package/dist/umd/3607.js.LICENSE.txt +0 -6
  19. package/dist/umd/3711.js +123 -0
  20. package/dist/umd/4619.js +1 -1
  21. package/dist/umd/4834.js +4 -4
  22. package/dist/umd/{8799.js → 5026.js} +117 -5
  23. package/dist/umd/{8799.js.LICENSE.txt → 5026.js.LICENSE.txt} +0 -6
  24. package/dist/umd/5086.js +2 -2
  25. package/dist/umd/5273.js +4 -4
  26. package/dist/umd/5412.js +2 -2
  27. package/dist/umd/5443.js +116 -4
  28. package/dist/umd/5459.js +1 -0
  29. package/dist/umd/6418.js +2 -0
  30. package/dist/umd/6474.js +6 -6
  31. package/dist/umd/{6206.js → 6637.js} +9 -9
  32. package/dist/umd/{6206.js.LICENSE.txt → 6637.js.LICENSE.txt} +6 -0
  33. package/dist/umd/6726.js +148 -0
  34. package/dist/umd/{8114.js → 7212.js} +16 -16
  35. package/dist/umd/{1012.js.LICENSE.txt → 7212.js.LICENSE.txt} +0 -6
  36. package/dist/umd/{1180.js → 7407.js} +117 -5
  37. package/dist/umd/{9547.js.LICENSE.txt → 7407.js.LICENSE.txt} +0 -6
  38. package/dist/umd/{7200.js → 7607.js} +16 -16
  39. package/dist/umd/{8114.js.LICENSE.txt → 7607.js.LICENSE.txt} +0 -6
  40. package/dist/umd/7824.js +116 -4
  41. package/dist/umd/{9547.js → 8162.js} +3 -3
  42. package/dist/umd/{1180.js.LICENSE.txt → 8162.js.LICENSE.txt} +0 -6
  43. package/dist/umd/8164.js +319 -0
  44. package/dist/umd/{1221.js → 8980.js} +5 -5
  45. package/dist/umd/{1221.js.LICENSE.txt → 8980.js.LICENSE.txt} +0 -6
  46. package/dist/umd/9167.js +452 -0
  47. package/dist/umd/9632.js +275 -0
  48. package/dist/umd/9632.js.LICENSE.txt +23 -0
  49. package/dist/umd/9895.js +17 -0
  50. package/dist/umd/DescopeDev.js +1 -1674
  51. package/dist/umd/DescopeDev.js.LICENSE.txt +0 -92
  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 +116 -4
  59. package/dist/umd/descope-combo-box-index-js.js +14 -14
  60. package/dist/umd/descope-date-field-descope-calendar-index-js.js +1 -1
  61. package/dist/umd/descope-date-field-index-js.js +1 -1
  62. package/dist/umd/descope-email-field-index-js.js +4 -4
  63. package/dist/umd/descope-grid-descope-grid-custom-column-index-js.js +4 -4
  64. package/dist/umd/descope-grid-descope-grid-custom-column-index-js.js.LICENSE.txt +6 -0
  65. package/dist/umd/descope-grid-descope-grid-item-details-column-index-js.js +4 -19
  66. package/dist/umd/descope-grid-descope-grid-item-details-column-index-js.js.LICENSE.txt +0 -18
  67. package/dist/umd/descope-grid-descope-grid-selection-column-index-js.js +1 -1
  68. package/dist/umd/descope-grid-descope-grid-selection-column-index-js.js.LICENSE.txt +6 -0
  69. package/dist/umd/descope-grid-descope-grid-text-column-index-js.js +2 -2
  70. package/dist/umd/descope-grid-descope-grid-text-column-index-js.js.LICENSE.txt +6 -0
  71. package/dist/umd/descope-grid-index-js.js +1 -1
  72. package/dist/umd/descope-hybrid-field-index-js.js +3 -3
  73. package/dist/umd/descope-multi-select-combo-box-index-js.js +1 -1
  74. package/dist/umd/descope-new-password-descope-new-password-internal-index-js.js +1 -1
  75. package/dist/umd/descope-new-password-index-js.js +1 -2
  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-policy-validation-index-js.js +1 -1
  80. package/dist/umd/descope-radio-group-index-js.js +1 -1
  81. package/dist/umd/descope-recaptcha-index-js.js +1 -1
  82. package/dist/umd/descope-scopes-list-index-js.js +1 -1
  83. package/dist/umd/descope-security-questions-setup-index-js.js +1 -1
  84. package/dist/umd/descope-security-questions-verify-index-js.js +2 -2
  85. package/dist/umd/descope-security-questions-verify-index-js.js.LICENSE.txt +0 -6
  86. package/dist/umd/descope-text-area-index-js.js +1 -1
  87. package/dist/umd/descope-text-field-index-js.js +2 -2
  88. package/dist/umd/descope-text-field-index-js.js.LICENSE.txt +0 -6
  89. package/dist/umd/descope-upload-file-index-js.js +1 -1
  90. package/dist/umd/descope-user-attribute-index-js.js +1 -1
  91. package/dist/umd/descope-user-auth-method-index-js.js +1 -1
  92. package/dist/umd/index.js +1 -1
  93. package/dist/umd/mapping-fields-descope-mappings-field-descope-mapping-item-index-js.js +1 -1
  94. package/dist/umd/mapping-fields-descope-mappings-field-descope-mappings-field-internal-index-js.js +1 -1
  95. package/dist/umd/mapping-fields-descope-mappings-field-index-js.js +1 -1
  96. package/dist/umd/mapping-fields-descope-saml-group-mappings-index-js.js +1 -1
  97. package/dist/umd/phone-fields-descope-phone-field-descope-phone-field-internal-index-js.js +1 -1
  98. package/dist/umd/phone-fields-descope-phone-field-index-js.js +1 -1
  99. package/dist/umd/phone-fields-descope-phone-input-box-field-descope-phone-input-box-internal-index-js.js +2 -2
  100. package/dist/umd/phone-fields-descope-phone-input-box-field-descope-phone-input-box-internal-index-js.js.LICENSE.txt +0 -6
  101. package/dist/umd/phone-fields-descope-phone-input-box-field-index-js.js +15 -15
  102. package/dist/umd/phone-fields-descope-phone-input-box-field-index-js.js.LICENSE.txt +0 -6
  103. package/package.json +2 -2
  104. package/src/components/descope-grid/helpers.js +1 -1
  105. package/src/components/descope-hybrid-field/HybridFieldClass.js +2 -2
  106. package/src/components/descope-policy-validation/PolicyValidationClass.js +2 -2
  107. package/src/components/descope-upload-file/UploadFileClass.js +3 -3
  108. package/dist/umd/1012.js +0 -148
  109. package/dist/umd/2520.js +0 -1
  110. package/dist/umd/2584.js +0 -123
  111. package/dist/umd/4480.js +0 -1
  112. package/dist/umd/4771.js +0 -129
  113. package/dist/umd/481.js +0 -2
  114. package/dist/umd/5021.js +0 -170
  115. package/dist/umd/7871.js +0 -452
  116. package/dist/umd/8082.js +0 -319
  117. package/dist/umd/8677.js +0 -275
  118. package/dist/umd/8677.js.LICENSE.txt +0 -29
  119. package/dist/umd/8910.js +0 -832
  120. package/dist/umd/952.js +0 -2
  121. package/dist/umd/descope-new-password-index-js.js.LICENSE.txt +0 -5
  122. /package/dist/umd/{4771.js.LICENSE.txt → 3222.js.LICENSE.txt} +0 -0
  123. /package/dist/umd/{2584.js.LICENSE.txt → 3711.js.LICENSE.txt} +0 -0
  124. /package/dist/umd/{481.js.LICENSE.txt → 6418.js.LICENSE.txt} +0 -0
  125. /package/dist/umd/{7200.js.LICENSE.txt → 6726.js.LICENSE.txt} +0 -0
  126. /package/dist/umd/{8082.js.LICENSE.txt → 8164.js.LICENSE.txt} +0 -0
  127. /package/dist/umd/{7871.js.LICENSE.txt → 9167.js.LICENSE.txt} +0 -0
  128. /package/dist/umd/{5021.js.LICENSE.txt → 9895.js.LICENSE.txt} +0 -0
package/dist/umd/5021.js DELETED
@@ -1,170 +0,0 @@
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/7871.js DELETED
@@ -1,452 +0,0 @@
1
- /*! For license information please see 7871.js.LICENSE.txt */
2
- "use strict";(self.webpackChunk_descope_web_components_ui=self.webpackChunk_descope_web_components_ui||[]).push([[7871],{87514:(t,e,o)=>{o.d(e,{A:()=>n});const n=o.p+"bcdfe87ae253c2cf789c9a737f8d8c22.woff"},53794:(t,e,o)=>{o.d(e,{CI:()=>c,H8:()=>r,gm:()=>s,m0:()=>i,nr:()=>u,un:()=>d});const n=t=>t.test(navigator.userAgent),a=t=>t.test(navigator.platform),i=n(/Android/u),r=n(/Chrome/u)&&/Google Inc/u.test(navigator.vendor),s=n(/Firefox/u),l=a(/^iPad/u)||a(/^Mac/u)&&navigator.maxTouchPoints>1,d=a(/^iPhone/u)||l,u=n(/^((?!chrome|android).)*safari/iu),c=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(t){return!1}})()},51939:(t,e,o)=>{o.d(e,{C:()=>i});var n=o(85297);const a=new WeakMap,i=(0,n.y)((t=>class extends t{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const t=this.getRootNode(),e=function(t){return a.has(t)||a.set(t,new Set),a.get(t)}(t);this.slotStyles.forEach((o=>{e.has(o)||(function(t,e){const o=document.createElement("style");o.textContent=t,e===document?document.head.appendChild(o):e.insertBefore(o,e.firstChild)}(o,t),e.add(o))}))}}))},53235:(t,e,o)=>{o.d(e,{n:()=>r});var n=o(67766),a=o(53794),i=o(85731);const r=t=>class extends((0,i.g)((0,n.f)(t))){static get properties(){return{clearButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1}}}get clearElement(){return console.warn(`Please implement the 'clearElement' property in <${this.localName}>`),null}ready(){super.ready(),this.clearElement&&(this.clearElement.addEventListener("mousedown",(t=>this._onClearButtonMouseDown(t))),this.clearElement.addEventListener("click",(t=>this._onClearButtonClick(t))))}_onClearButtonClick(t){t.preventDefault(),this._onClearAction()}_onClearButtonMouseDown(t){t.preventDefault(),a.CI||this.inputElement.focus()}_onEscape(t){super._onEscape(t),this.clearButtonVisible&&this.value&&(t.stopPropagation(),this._onClearAction())}_onClearAction(){this._inputElementValue="",this.inputElement.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.inputElement.dispatchEvent(new Event("change",{bubbles:!0}))}}},3410:(t,e,o)=>{o.d(e,{U:()=>s});var n=o(85297),a=o(19279),i=o(85731),r=o(63853);const s=(0,n.y)((t=>class extends((0,a.q)((0,r.u)((0,i.g)(t)))){static get constraints(){return["required"]}static get delegateAttrs(){return[...super.delegateAttrs,"required"]}ready(){super.ready(),this._createConstraintsObserver()}checkValidity(){return this.inputElement&&this._hasValidConstraints(this.constructor.constraints.map((t=>this[t])))?this.inputElement.checkValidity():!this.invalid}_hasValidConstraints(t){return t.some((t=>this.__isValidConstraint(t)))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`)}_constraintsChanged(t,...e){if(!t)return;const o=this._hasValidConstraints(e),n=this.__previousHasConstraints&&!o;(this._hasValue||this.invalid)&&o?this.validate():n&&this._setInvalid(!1),this.__previousHasConstraints=o}_onChange(t){t.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:t},bubbles:t.bubbles,cancelable:t.cancelable}))}__isValidConstraint(t){return Boolean(t)||0===t}}))},35707:(t,e,o)=>{o.d(e,{R:()=>c});var n=o(12689),a=o(67766),i=o(81510),r=o(27111),s=o(51939),l=o(53235),d=o(79179),u=o(3410);const c=t=>class extends((0,s.C)((0,n.v)((0,u.U)((0,d.Y)((0,l.n)((0,a.f)(t))))))){static get properties(){return{allowedCharPattern:{type:String,observer:"_allowedCharPatternChanged"},autoselect:{type:Boolean,value:!1},name:{type:String,reflectToAttribute:!0},placeholder:{type:String,reflectToAttribute:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},title:{type:String,reflectToAttribute:!0}}}static get delegateAttrs(){return[...super.delegateAttrs,"name","type","placeholder","readonly","invalid","title"]}constructor(){super(),this._boundOnPaste=this._onPaste.bind(this),this._boundOnDrop=this._onDrop.bind(this),this._boundOnBeforeInput=this._onBeforeInput.bind(this)}get slotStyles(){return["\n :is(input[slot='input'], textarea[slot='textarea'])::placeholder {\n font: inherit;\n color: inherit;\n }\n "]}_onFocus(t){super._onFocus(t),this.autoselect&&this.inputElement&&this.inputElement.select()}_onChange(t){t.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:t},bubbles:t.bubbles,cancelable:t.cancelable}))}_addInputListeners(t){super._addInputListeners(t),t.addEventListener("paste",this._boundOnPaste),t.addEventListener("drop",this._boundOnDrop),t.addEventListener("beforeinput",this._boundOnBeforeInput)}_removeInputListeners(t){super._removeInputListeners(t),t.removeEventListener("paste",this._boundOnPaste),t.removeEventListener("drop",this._boundOnDrop),t.removeEventListener("beforeinput",this._boundOnBeforeInput)}_onKeyDown(t){super._onKeyDown(t),this.allowedCharPattern&&!this.__shouldAcceptKey(t)&&(t.preventDefault(),this._markInputPrevented())}_markInputPrevented(){this.setAttribute("input-prevented",""),this._preventInputDebouncer=r.aq.debounce(this._preventInputDebouncer,i.EV.after(200),(()=>{this.removeAttribute("input-prevented")}))}__shouldAcceptKey(t){return t.metaKey||t.ctrlKey||!t.key||1!==t.key.length||this.__allowedCharRegExp.test(t.key)}_onPaste(t){if(this.allowedCharPattern){const e=t.clipboardData.getData("text");this.__allowedTextRegExp.test(e)||(t.preventDefault(),this._markInputPrevented())}}_onDrop(t){if(this.allowedCharPattern){const e=t.dataTransfer.getData("text");this.__allowedTextRegExp.test(e)||(t.preventDefault(),this._markInputPrevented())}}_onBeforeInput(t){this.allowedCharPattern&&t.data&&!this.__allowedTextRegExp.test(t.data)&&(t.preventDefault(),this._markInputPrevented())}_allowedCharPatternChanged(t){if(t)try{this.__allowedCharRegExp=new RegExp(`^${t}$`,"u"),this.__allowedTextRegExp=new RegExp(`^${t}*$`,"u")}catch(t){console.error(t)}}}},76931:(t,e,o)=>{o.d(e,{m:()=>n});const n=o(86161).AH`
3
- [part='clear-button'] {
4
- display: none;
5
- cursor: default;
6
- }
7
-
8
- [part='clear-button']::before {
9
- content: '\\2715';
10
- }
11
-
12
- :host([clear-button-visible][has-value]:not([disabled]):not([readonly])) [part='clear-button'] {
13
- display: block;
14
- }
15
- `},72157:(t,e,o)=>{o.d(e,{O:()=>n});const n=o(86161).AH`
16
- :host {
17
- display: inline-flex;
18
- outline: none;
19
- }
20
-
21
- :host::before {
22
- content: '\\2003';
23
- width: 0;
24
- display: inline-block;
25
- /* Size and position this element on the same vertical position as the input-field element
26
- to make vertical align for the host element work as expected */
27
- }
28
-
29
- :host([hidden]) {
30
- display: none !important;
31
- }
32
-
33
- :host(:not([has-label])) [part='label'] {
34
- display: none;
35
- }
36
-
37
- @media (forced-colors: active) {
38
- :host(:not([readonly])) [part='input-field'] {
39
- outline: 1px solid;
40
- outline-offset: -1px;
41
- }
42
- :host([focused]) [part='input-field'] {
43
- outline-width: 2px;
44
- }
45
- :host([disabled]) [part='input-field'] {
46
- outline-color: GrayText;
47
- }
48
- }
49
- `},7700:(t,e,o)=>{o.d(e,{e:()=>n});const n=o(86161).AH`
50
- [class$='container'] {
51
- display: flex;
52
- flex-direction: column;
53
- min-width: 100%;
54
- max-width: 100%;
55
- width: var(--vaadin-field-default-width, 12em);
56
- }
57
- `},98736:(t,e,o)=>{o.d(e,{k:()=>r});var n=o(76931),a=o(72157),i=o(7700);const r=[a.O,i.e,n.m]},19563:(t,e,o)=>{o.d(e,{Z:()=>n});const n=t=>class extends t{static get properties(){return{disabled:{type:Boolean,reflectToAttribute:!0},readonly:{type:Boolean,reflectToAttribute:!0},invalid:{type:Boolean,reflectToAttribute:!0}}}ready(){super.ready(),this.addEventListener("pointerdown",(t=>{t.target===this&&t.preventDefault()})),this.addEventListener("click",(t=>{t.target===this&&this.shadowRoot.querySelector("slot:not([name])").assignedNodes({flatten:!0}).forEach((t=>t.focus&&t.focus()))}))}}},39618:(t,e,o)=>{o.d(e,{w:()=>n});const n=o(86161).AH`
58
- :host {
59
- display: flex;
60
- align-items: center;
61
- flex: 0 1 auto;
62
- border-radius:
63
- /* See https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius */
64
- var(--vaadin-input-field-top-start-radius, var(--__border-radius))
65
- var(--vaadin-input-field-top-end-radius, var(--__border-radius))
66
- var(--vaadin-input-field-bottom-end-radius, var(--__border-radius))
67
- var(--vaadin-input-field-bottom-start-radius, var(--__border-radius));
68
- --_border-radius: var(--vaadin-input-field-border-radius, 0);
69
- --_input-border-width: var(--vaadin-input-field-border-width, 0);
70
- --_input-border-color: var(--vaadin-input-field-border-color, transparent);
71
- box-shadow: inset 0 0 0 var(--_input-border-width, 0) var(--_input-border-color);
72
- }
73
-
74
- :host([dir='rtl']) {
75
- border-radius:
76
- /* Don't use logical props, see https://github.com/vaadin/vaadin-time-picker/issues/145 */
77
- var(--vaadin-input-field-top-end-radius, var(--_border-radius))
78
- var(--vaadin-input-field-top-start-radius, var(--_border-radius))
79
- var(--vaadin-input-field-bottom-start-radius, var(--_border-radius))
80
- var(--vaadin-input-field-bottom-end-radius, var(--_border-radius));
81
- }
82
-
83
- :host([hidden]) {
84
- display: none !important;
85
- }
86
-
87
- /* Reset the native input styles */
88
- ::slotted(input) {
89
- -webkit-appearance: none;
90
- -moz-appearance: none;
91
- flex: auto;
92
- white-space: nowrap;
93
- overflow: hidden;
94
- width: 100%;
95
- height: 100%;
96
- outline: none;
97
- margin: 0;
98
- padding: 0;
99
- border: 0;
100
- border-radius: 0;
101
- min-width: 0;
102
- font: inherit;
103
- line-height: normal;
104
- color: inherit;
105
- background-color: transparent;
106
- /* Disable default invalid style in Firefox */
107
- box-shadow: none;
108
- }
109
-
110
- ::slotted(*) {
111
- flex: none;
112
- }
113
-
114
- ::slotted(:is(input, textarea))::placeholder {
115
- /* Use ::slotted(input:placeholder-shown) in themes to style the placeholder. */
116
- /* because ::slotted(...)::placeholder does not work in Safari. */
117
- font: inherit;
118
- color: inherit;
119
- /* Override default opacity in Firefox */
120
- opacity: 1;
121
- }
122
- `},28991:(t,e,o)=>{o.d(e,{A:()=>d});var n=o(63033),a=o(38735),i=o(35717),r=o(6052),s=o(19563),l=o(39618);(0,r.SF)("vaadin-input-container",l.w,{moduleId:"vaadin-input-container-styles"});class d extends((0,s.Z)((0,r.cp)((0,i.v)(n.Pu)))){static get is(){return"vaadin-input-container"}static get template(){return n.qy`
123
- <slot name="prefix"></slot>
124
- <slot></slot>
125
- <slot name="suffix"></slot>
126
- `}}(0,a.X)(d)},37451:(t,e,o)=>{o(92541),o(66206),o(23395),o(41745);var n=o(6052);(0,n.SF)("vaadin-input-container",n.AH`
127
- :host {
128
- background: var(--_background);
129
- padding: 0 calc(0.375em + var(--_input-container-radius) / 4 - 1px);
130
- font-weight: 500;
131
- line-height: 1;
132
- position: relative;
133
- cursor: text;
134
- box-sizing: border-box;
135
- border-radius:
136
- /* See https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius#syntax */
137
- var(--vaadin-input-field-top-start-radius, var(--_input-container-radius))
138
- var(--vaadin-input-field-top-end-radius, var(--_input-container-radius))
139
- var(--vaadin-input-field-bottom-end-radius, var(--_input-container-radius))
140
- var(--vaadin-input-field-bottom-start-radius, var(--_input-container-radius));
141
- /* Fallback */
142
- --_input-container-radius: var(--vaadin-input-field-border-radius, var(--lumo-border-radius-m));
143
- /* Default values */
144
- --_background: var(--vaadin-input-field-background, var(--lumo-contrast-10pct));
145
- --_hover-highlight: var(--vaadin-input-field-hover-highlight, var(--lumo-contrast-50pct));
146
- --_input-border-color: var(--vaadin-input-field-border-color, var(--lumo-contrast-50pct));
147
- --_icon-color: var(--vaadin-input-field-icon-color, var(--lumo-contrast-60pct));
148
- --_icon-size: var(--vaadin-input-field-icon-size, var(--lumo-icon-size-m));
149
- --_invalid-background: var(--vaadin-input-field-invalid-background, var(--lumo-error-color-10pct));
150
- --_invalid-hover-highlight: var(--vaadin-input-field-invalid-hover-highlight, var(--lumo-error-color-50pct));
151
- }
152
-
153
- :host([dir='rtl']) {
154
- border-radius:
155
- /* Don't use logical props, see https://github.com/vaadin/vaadin-time-picker/issues/145 */
156
- var(--vaadin-input-field-top-end-radius, var(--_input-container-radius))
157
- var(--vaadin-input-field-top-start-radius, var(--_input-container-radius))
158
- var(--vaadin-input-field-bottom-start-radius, var(--_input-container-radius))
159
- var(--vaadin-input-field-bottom-end-radius, var(--_input-container-radius));
160
- }
161
-
162
- /* Used for hover and activation effects */
163
- :host::after {
164
- content: '';
165
- position: absolute;
166
- inset: 0;
167
- border-radius: inherit;
168
- pointer-events: none;
169
- background: var(--_hover-highlight);
170
- opacity: 0;
171
- transition: transform 0.15s, opacity 0.2s;
172
- transform-origin: 100% 0;
173
- }
174
-
175
- ::slotted(:not([slot$='fix'])) {
176
- cursor: inherit;
177
- min-height: var(--lumo-text-field-size, var(--lumo-size-m));
178
- padding: 0 0.25em;
179
- --_lumo-text-field-overflow-mask-image: linear-gradient(to left, transparent, #000 1.25em);
180
- -webkit-mask-image: var(--_lumo-text-field-overflow-mask-image);
181
- mask-image: var(--_lumo-text-field-overflow-mask-image);
182
- }
183
-
184
- /* Read-only */
185
- :host([readonly]) {
186
- color: var(--lumo-secondary-text-color);
187
- background-color: transparent;
188
- cursor: default;
189
- }
190
-
191
- :host([readonly])::after {
192
- background-color: transparent;
193
- opacity: 1;
194
- border: var(--vaadin-input-field-readonly-border, 1px dashed var(--lumo-contrast-30pct));
195
- }
196
-
197
- /* Disabled */
198
- :host([disabled]) {
199
- background-color: var(--lumo-contrast-5pct);
200
- }
201
-
202
- :host([disabled]) ::slotted(*) {
203
- color: var(--lumo-disabled-text-color);
204
- -webkit-text-fill-color: var(--lumo-disabled-text-color);
205
- }
206
-
207
- /* Invalid */
208
- :host([invalid]) {
209
- background: var(--_invalid-background);
210
- }
211
-
212
- :host([invalid])::after {
213
- background: var(--_invalid-hover-highlight);
214
- }
215
-
216
- /* Slotted icons */
217
- ::slotted(vaadin-icon) {
218
- color: var(--_icon-color);
219
- width: var(--_icon-size);
220
- height: var(--_icon-size);
221
- }
222
-
223
- /* Vaadin icons are based on a 16x16 grid (unlike Lumo and Material icons with 24x24), so they look too big by default */
224
- ::slotted(vaadin-icon[icon^='vaadin:']) {
225
- padding: 0.25em;
226
- box-sizing: border-box !important;
227
- }
228
-
229
- /* Text align */
230
- :host([dir='rtl']) ::slotted(:not([slot$='fix'])) {
231
- --_lumo-text-field-overflow-mask-image: linear-gradient(to right, transparent, #000 1.25em);
232
- }
233
-
234
- @-moz-document url-prefix() {
235
- :host([dir='rtl']) ::slotted(:not([slot$='fix'])) {
236
- mask-image: var(--_lumo-text-field-overflow-mask-image);
237
- }
238
- }
239
-
240
- :host([theme~='align-left']) ::slotted(:not([slot$='fix'])) {
241
- text-align: start;
242
- --_lumo-text-field-overflow-mask-image: none;
243
- }
244
-
245
- :host([theme~='align-center']) ::slotted(:not([slot$='fix'])) {
246
- text-align: center;
247
- --_lumo-text-field-overflow-mask-image: none;
248
- }
249
-
250
- :host([theme~='align-right']) ::slotted(:not([slot$='fix'])) {
251
- text-align: end;
252
- --_lumo-text-field-overflow-mask-image: none;
253
- }
254
-
255
- @-moz-document url-prefix() {
256
- /* Firefox is smart enough to align overflowing text to right */
257
- :host([theme~='align-right']) ::slotted(:not([slot$='fix'])) {
258
- --_lumo-text-field-overflow-mask-image: linear-gradient(to right, transparent 0.25em, #000 1.5em);
259
- }
260
- }
261
-
262
- @-moz-document url-prefix() {
263
- /* Firefox is smart enough to align overflowing text to right */
264
- :host([theme~='align-left']) ::slotted(:not([slot$='fix'])) {
265
- --_lumo-text-field-overflow-mask-image: linear-gradient(to left, transparent 0.25em, #000 1.5em);
266
- }
267
- }
268
-
269
- /* RTL specific styles */
270
- :host([dir='rtl'])::after {
271
- transform-origin: 0% 0;
272
- }
273
-
274
- :host([theme~='align-left'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
275
- --_lumo-text-field-overflow-mask-image: none;
276
- }
277
-
278
- :host([theme~='align-center'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
279
- --_lumo-text-field-overflow-mask-image: none;
280
- }
281
-
282
- :host([theme~='align-right'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
283
- --_lumo-text-field-overflow-mask-image: none;
284
- }
285
-
286
- @-moz-document url-prefix() {
287
- /* Firefox is smart enough to align overflowing text to right */
288
- :host([theme~='align-right'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
289
- --_lumo-text-field-overflow-mask-image: linear-gradient(to right, transparent 0.25em, #000 1.5em);
290
- }
291
- }
292
-
293
- @-moz-document url-prefix() {
294
- /* Firefox is smart enough to align overflowing text to right */
295
- :host([theme~='align-left'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
296
- --_lumo-text-field-overflow-mask-image: linear-gradient(to left, transparent 0.25em, #000 1.5em);
297
- }
298
- }
299
- `,{moduleId:"lumo-input-container"})},35842:(t,e,o)=>{o(56830);var n=o(6052),a=o(96287),i=o(87514);const r=(0,n.iz)(`\n @font-face {\n font-family: 'lumo-icons';\n src: url('${i.A}') format('woff'),\n url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAABEgAAsAAAAAIjQAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAAQwAAAFZAIUuKY21hcAAAAYgAAAD4AAADrsCU8d5nbHlmAAACgAAAC2cAABeAWri7U2hlYWQAAA3oAAAAMAAAADZa/6SsaGhlYQAADhgAAAAdAAAAJAbpA35obXR4AAAOOAAAABAAAACspBAAAGxvY2EAAA5IAAAAWAAAAFh57oA4bWF4cAAADqAAAAAfAAAAIAFKAXBuYW1lAAAOwAAAATEAAAIuUUJZCHBvc3QAAA/0AAABKwAAAelm8SzVeJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBmg4gCACY7BUgAeJxjYGS+yDiBgZWBgamKaQ8DA0MPhGZ8wGDIyAQUZWBlZsAKAtJcUxgcXjG+0mIO+p/FEMUcxDANKMwIkgMABn8MLQB4nO3SWW6DMABF0UtwCEnIPM/zhLK8LqhfXRybSP14XUYtHV9hGYQwQBNIo3cUIPkhQeM7rib1ekqnXg981XuC1qvy84lzojleh3puxL0hPjGjRU473teloEefAUNGjJkwZcacBUtWrNmwZceeA0dOnLlw5cadB09elPGhGf+j0NTI/65KfXerT6JhqKnpRKtgOpuqaTrtKjPUlqHmhto21I7pL6i6hlqY3q7qGWrfUAeGOjTUkaGODXViqFNDnRnq3FAXhro01JWhrg11Y6hbQ90Z6t5QD4Z6NNSToZ4N9WKoV0O9GerdUB+G+jTUl6GWRvkL24BkEXictVh9bFvVFb/nxvbz+7Rf/N6zHcd2bCfP+Wic1Z9N0jpNHCD9SNqqoVBgbQoMjY+pjA4hNnWa2pV1rHSIif0DGkyT2k10Kmu1Cag6huj4ZpqYBHSqJsTEJgZCG3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dfGWFU5u9WpjzfeV5PBIBMfp7aAwQ4FLPrIkbKWqDHn+67pDRK4s4lzbsEux5qHvcIIMb/nueSMyTKkE3jWFdNLHLjW2PPmMa1Hxn3GjGW/wjT0HtOG09JU4WxLk9LH2ISuiv9twJn9y8fh9uIXI+BknAAAAHicbY7ZboMwEEW5CVBCSLrv+76kfJRjTwHFsdGAG+Xvy5JUfehIHp0rnxmNN/D6ir3/a4YBhvARIMQOIowQY4wEE0yxiz3s4wCHOMIxTnCKM5zjApe4wjVucIs73OMBj3jCM17wije84wMzfHqJ0EVmUkmmJo77oOmrHvfIRZbXsTCZplTZldlgb3TYGVHProwFs11t1A57tcON2rErR3PBqcwF1/6ctI6k0GSU4JHMSS6WghdJQ99sTbfuN7QLJ9vQ37dNrgyktnIxlDYLJNuqitpRbYWKFNuyDT6pog6oOYKHtKakeakqKjHXpPwlGRcsC+OqxLIiJpXqoqqDMreG2l5bv9Ri3TRX+c23DZna9WFFgmXuO6Ps1Jm/w6ErW8N3FbHn/QC444j0AA==) format('woff');\n font-weight: normal;\n font-style: normal;\n }\n\n html {\n --lumo-icons-align-center: '\\ea01';\n --lumo-icons-align-left: '\\ea02';\n --lumo-icons-align-right: '\\ea03';\n --lumo-icons-angle-down: '\\ea04';\n --lumo-icons-angle-left: '\\ea05';\n --lumo-icons-angle-right: '\\ea06';\n --lumo-icons-angle-up: '\\ea07';\n --lumo-icons-arrow-down: '\\ea08';\n --lumo-icons-arrow-left: '\\ea09';\n --lumo-icons-arrow-right: '\\ea0a';\n --lumo-icons-arrow-up: '\\ea0b';\n --lumo-icons-bar-chart: '\\ea0c';\n --lumo-icons-bell: '\\ea0d';\n --lumo-icons-calendar: '\\ea0e';\n --lumo-icons-checkmark: '\\ea0f';\n --lumo-icons-chevron-down: '\\ea10';\n --lumo-icons-chevron-left: '\\ea11';\n --lumo-icons-chevron-right: '\\ea12';\n --lumo-icons-chevron-up: '\\ea13';\n --lumo-icons-clock: '\\ea14';\n --lumo-icons-cog: '\\ea15';\n --lumo-icons-cross: '\\ea16';\n --lumo-icons-download: '\\ea17';\n --lumo-icons-dropdown: '\\ea18';\n --lumo-icons-edit: '\\ea19';\n --lumo-icons-error: '\\ea1a';\n --lumo-icons-eye: '\\ea1b';\n --lumo-icons-eye-disabled: '\\ea1c';\n --lumo-icons-menu: '\\ea1d';\n --lumo-icons-minus: '\\ea1e';\n --lumo-icons-ordered-list: '\\ea1f';\n --lumo-icons-phone: '\\ea20';\n --lumo-icons-photo: '\\ea21';\n --lumo-icons-play: '\\ea22';\n --lumo-icons-plus: '\\ea23';\n --lumo-icons-redo: '\\ea24';\n --lumo-icons-reload: '\\ea25';\n --lumo-icons-search: '\\ea26';\n --lumo-icons-undo: '\\ea27';\n --lumo-icons-unordered-list: '\\ea28';\n --lumo-icons-upload: '\\ea29';\n --lumo-icons-user: '\\ea2a';\n }\n`);(0,a.q)("font-icons",r)},97902:(t,e,o)=>{o.d(e,{p:()=>a}),o(92541),o(35842),o(66206),o(23395);var n=o(6052);const a=n.AH`
300
- [part$='button'] {
301
- flex: none;
302
- width: 1em;
303
- height: 1em;
304
- line-height: 1;
305
- font-size: var(--lumo-icon-size-m);
306
- text-align: center;
307
- color: var(--lumo-contrast-60pct);
308
- transition: 0.2s color;
309
- cursor: var(--lumo-clickable-cursor);
310
- }
311
-
312
- [part$='button']:hover {
313
- color: var(--lumo-contrast-90pct);
314
- }
315
-
316
- :host([disabled]) [part$='button'],
317
- :host([readonly]) [part$='button'] {
318
- color: var(--lumo-contrast-20pct);
319
- cursor: default;
320
- }
321
-
322
- [part$='button']::before {
323
- font-family: 'lumo-icons';
324
- display: block;
325
- }
326
- `;(0,n.SF)("",a,{moduleId:"lumo-field-button"})},90500:(t,e,o)=>{o.d(e,{k:()=>l}),o(92541),o(35842),o(66206),o(1159),o(23395),o(41745);var n=o(6052),a=o(97902),i=o(61137),r=o(48593);const s=n.AH`
327
- :host {
328
- --lumo-text-field-size: var(--lumo-size-m);
329
- color: var(--vaadin-input-field-value-color, var(--lumo-body-text-color));
330
- font-size: var(--vaadin-input-field-value-font-size, var(--lumo-font-size-m));
331
- font-weight: var(--vaadin-input-field-value-font-weight, 400);
332
- font-family: var(--lumo-font-family);
333
- -webkit-font-smoothing: antialiased;
334
- -moz-osx-font-smoothing: grayscale;
335
- -webkit-tap-highlight-color: transparent;
336
- padding: var(--lumo-space-xs) 0;
337
- --_focus-ring-color: var(--vaadin-focus-ring-color, var(--lumo-primary-color-50pct));
338
- --_focus-ring-width: var(--vaadin-focus-ring-width, 2px);
339
- --_input-height: var(--vaadin-input-field-height, var(--lumo-text-field-size));
340
- }
341
-
342
- :host::before {
343
- height: var(--_input-height);
344
- box-sizing: border-box;
345
- display: inline-flex;
346
- align-items: center;
347
- }
348
-
349
- :host([focused]) [part='input-field'] ::slotted(:is(input, textarea)) {
350
- -webkit-mask-image: none;
351
- mask-image: none;
352
- }
353
-
354
- ::slotted(:is(input, textarea):placeholder-shown) {
355
- color: var(--vaadin-input-field-placeholder-color, var(--lumo-secondary-text-color));
356
- }
357
-
358
- /* Hover */
359
- :host(:hover:not([readonly]):not([focused])) [part='input-field']::after {
360
- opacity: var(--vaadin-input-field-hover-highlight-opacity, 0.1);
361
- }
362
-
363
- /* Touch device adjustment */
364
- @media (pointer: coarse) {
365
- :host(:hover:not([readonly]):not([focused])) [part='input-field']::after {
366
- opacity: 0;
367
- }
368
-
369
- :host(:active:not([readonly]):not([focused])) [part='input-field']::after {
370
- opacity: 0.2;
371
- }
372
- }
373
-
374
- /* Trigger when not focusing using the keyboard */
375
- :host([focused]:not([focus-ring]):not([readonly])) [part='input-field']::after {
376
- transform: scaleX(0);
377
- transition-duration: 0.15s, 1s;
378
- }
379
-
380
- /* Focus-ring */
381
- :host([focus-ring]) [part='input-field'] {
382
- box-shadow: 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color);
383
- }
384
-
385
- /* Read-only and disabled */
386
- :host(:is([readonly], [disabled])) ::slotted(:is(input, textarea):placeholder-shown) {
387
- opacity: 0;
388
- }
389
-
390
- /* Read-only style */
391
- :host([readonly]) {
392
- --vaadin-input-field-border-color: transparent;
393
- }
394
-
395
- /* Disabled style */
396
- :host([disabled]) {
397
- pointer-events: none;
398
- --vaadin-input-field-border-color: var(--lumo-contrast-20pct);
399
- }
400
-
401
- :host([disabled]) [part='label'],
402
- :host([disabled]) [part='input-field'] ::slotted(*) {
403
- color: var(--lumo-disabled-text-color);
404
- -webkit-text-fill-color: var(--lumo-disabled-text-color);
405
- }
406
-
407
- /* Invalid style */
408
- :host([invalid]) {
409
- --vaadin-input-field-border-color: var(--lumo-error-color);
410
- }
411
-
412
- :host([invalid][focus-ring]) [part='input-field'] {
413
- box-shadow: 0 0 0 2px var(--lumo-error-color-50pct);
414
- }
415
-
416
- :host([input-prevented]) [part='input-field'] {
417
- animation: shake 0.15s infinite;
418
- }
419
-
420
- @keyframes shake {
421
- 25% {
422
- transform: translateX(4px);
423
- }
424
- 75% {
425
- transform: translateX(-4px);
426
- }
427
- }
428
-
429
- /* Small theme */
430
- :host([theme~='small']) {
431
- font-size: var(--lumo-font-size-s);
432
- --lumo-text-field-size: var(--lumo-size-s);
433
- }
434
-
435
- :host([theme~='small']) [part='label'] {
436
- font-size: var(--lumo-font-size-xs);
437
- }
438
-
439
- :host([theme~='small']) [part='error-message'] {
440
- font-size: var(--lumo-font-size-xxs);
441
- }
442
-
443
- /* Slotted content */
444
- [part='input-field'] ::slotted(:not(vaadin-icon):not(input):not(textarea)) {
445
- color: var(--lumo-secondary-text-color);
446
- font-weight: 400;
447
- }
448
-
449
- [part='clear-button']::before {
450
- content: var(--lumo-icons-cross);
451
- }
452
- `,l=[r.Q,a.p,i.d,s];(0,n.SF)("",l,{moduleId:"lumo-input-field-shared-styles"})}}]);