@cscfi/csc-ui 3.0.1 → 3.0.2

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 (121) hide show
  1. package/dist/cjs/c-autocomplete_34.cjs.entry.js +16 -15
  2. package/dist/cjs/c-autocomplete_34.cjs.entry.js.map +1 -1
  3. package/dist/cjs/c-slider.cjs.entry.js +1 -1
  4. package/dist/cjs/c-slider.cjs.entry.js.map +1 -1
  5. package/dist/cjs/c-slider.entry.cjs.js.map +1 -1
  6. package/dist/cjs/c-swiper-tab.cjs.entry.js +1 -1
  7. package/dist/cjs/c-swiper-tab.cjs.entry.js.map +1 -1
  8. package/dist/cjs/c-swiper-tab.entry.cjs.js.map +1 -1
  9. package/dist/cjs/c-swiper.cjs.entry.js +1 -1
  10. package/dist/cjs/c-swiper.cjs.entry.js.map +1 -1
  11. package/dist/cjs/c-swiper.entry.cjs.js.map +1 -1
  12. package/dist/cjs/c-tab-buttons.cjs.entry.js +1 -1
  13. package/dist/cjs/c-tab-buttons.cjs.entry.js.map +1 -1
  14. package/dist/cjs/c-tab-buttons.entry.cjs.js.map +1 -1
  15. package/dist/cjs/c-tab.cjs.entry.js +1 -1
  16. package/dist/cjs/c-tab.cjs.entry.js.map +1 -1
  17. package/dist/cjs/c-tab.entry.cjs.js.map +1 -1
  18. package/dist/cjs/csc-ui.cjs.js +1 -1
  19. package/dist/cjs/loader.cjs.js +1 -1
  20. package/dist/collection/components/c-autocomplete/c-autocomplete.js +5 -2
  21. package/dist/collection/components/c-autocomplete/c-autocomplete.js.map +1 -1
  22. package/dist/collection/components/c-button/c-button.js +5 -2
  23. package/dist/collection/components/c-button/c-button.js.map +1 -1
  24. package/dist/collection/components/c-checkbox/c-checkbox.js +9 -3
  25. package/dist/collection/components/c-checkbox/c-checkbox.js.map +1 -1
  26. package/dist/collection/components/c-dropdown/c-dropdown.js +6 -3
  27. package/dist/collection/components/c-dropdown/c-dropdown.js.map +1 -1
  28. package/dist/collection/components/c-input/c-input.js +10 -4
  29. package/dist/collection/components/c-input/c-input.js.map +1 -1
  30. package/dist/collection/components/c-otp-input/c-otp-input.js +31 -4
  31. package/dist/collection/components/c-otp-input/c-otp-input.js.map +1 -1
  32. package/dist/collection/components/c-radio-group/c-radio-group.js +5 -2
  33. package/dist/collection/components/c-radio-group/c-radio-group.js.map +1 -1
  34. package/dist/collection/components/c-select/c-select.js +6 -3
  35. package/dist/collection/components/c-select/c-select.js.map +1 -1
  36. package/dist/collection/components/c-slider/c-slider.js +13 -4
  37. package/dist/collection/components/c-slider/c-slider.js.map +1 -1
  38. package/dist/collection/components/c-swiper/c-swiper.js +5 -2
  39. package/dist/collection/components/c-swiper/c-swiper.js.map +1 -1
  40. package/dist/collection/components/c-swiper-tab/c-swiper-tab.js +5 -2
  41. package/dist/collection/components/c-swiper-tab/c-swiper-tab.js.map +1 -1
  42. package/dist/collection/components/c-switch/c-switch.js +5 -2
  43. package/dist/collection/components/c-switch/c-switch.js.map +1 -1
  44. package/dist/collection/components/c-tab/c-tab.js +5 -2
  45. package/dist/collection/components/c-tab/c-tab.js.map +1 -1
  46. package/dist/collection/components/c-tab-buttons/c-tab-buttons.js +5 -2
  47. package/dist/collection/components/c-tab-buttons/c-tab-buttons.js.map +1 -1
  48. package/dist/collection/components/c-text-field/c-text-field.js +13 -4
  49. package/dist/collection/components/c-text-field/c-text-field.js.map +1 -1
  50. package/dist/components/c-autocomplete.js +3 -3
  51. package/dist/components/c-autocomplete.js.map +1 -1
  52. package/dist/components/c-button.js +1 -1
  53. package/dist/components/c-button.js.map +1 -1
  54. package/dist/components/c-checkbox.js +1 -1
  55. package/dist/components/c-data-table.js +1 -1
  56. package/dist/components/c-dropdown.js +1 -1
  57. package/dist/components/c-input.js +1 -1
  58. package/dist/components/c-otp-input.js +5 -3
  59. package/dist/components/c-otp-input.js.map +1 -1
  60. package/dist/components/c-radio-group.js +1 -1
  61. package/dist/components/c-radio-group.js.map +1 -1
  62. package/dist/components/c-select.js +4 -4
  63. package/dist/components/c-select.js.map +1 -1
  64. package/dist/components/c-slider.js +1 -1
  65. package/dist/components/c-slider.js.map +1 -1
  66. package/dist/components/c-swiper-tab.js +1 -1
  67. package/dist/components/c-swiper-tab.js.map +1 -1
  68. package/dist/components/c-swiper.js +1 -1
  69. package/dist/components/c-swiper.js.map +1 -1
  70. package/dist/components/c-switch.js +1 -1
  71. package/dist/components/c-switch.js.map +1 -1
  72. package/dist/components/c-tab-buttons.js +1 -1
  73. package/dist/components/c-tab-buttons.js.map +1 -1
  74. package/dist/components/c-tab.js +1 -1
  75. package/dist/components/c-tab.js.map +1 -1
  76. package/dist/components/c-text-field.js +2 -2
  77. package/dist/components/c-text-field.js.map +1 -1
  78. package/dist/components/{p-DeeeJrXJ.js → p-BkP7vhXP.js} +3 -3
  79. package/dist/components/{p-DeeeJrXJ.js.map → p-BkP7vhXP.js.map} +1 -1
  80. package/dist/components/{p-DIuWEWhF.js → p-BylTQ7VG.js} +4 -4
  81. package/dist/components/{p-DIuWEWhF.js.map → p-BylTQ7VG.js.map} +1 -1
  82. package/dist/components/{p-Cv2W5q7M.js → p-CFPfmHLA.js} +4 -4
  83. package/dist/components/{p-Cv2W5q7M.js.map → p-CFPfmHLA.js.map} +1 -1
  84. package/dist/csc-ui/c-slider.entry.esm.js.map +1 -1
  85. package/dist/csc-ui/c-swiper-tab.entry.esm.js.map +1 -1
  86. package/dist/csc-ui/c-swiper.entry.esm.js.map +1 -1
  87. package/dist/csc-ui/c-tab-buttons.entry.esm.js.map +1 -1
  88. package/dist/csc-ui/c-tab.entry.esm.js.map +1 -1
  89. package/dist/csc-ui/csc-ui.esm.js +1 -1
  90. package/dist/csc-ui/{p-ee61b0f5.entry.js → p-1af49cd8.entry.js} +2 -2
  91. package/dist/csc-ui/{p-ee61b0f5.entry.js.map → p-1af49cd8.entry.js.map} +1 -1
  92. package/dist/csc-ui/{p-fb91bce3.entry.js → p-49bd4d5d.entry.js} +2 -2
  93. package/dist/csc-ui/p-49bd4d5d.entry.js.map +1 -0
  94. package/dist/csc-ui/{p-97f3194f.entry.js → p-7574f00f.entry.js} +2 -2
  95. package/dist/csc-ui/{p-97f3194f.entry.js.map → p-7574f00f.entry.js.map} +1 -1
  96. package/dist/csc-ui/{p-7b8caa28.entry.js → p-a8ea6c44.entry.js} +2 -2
  97. package/dist/csc-ui/{p-7b8caa28.entry.js.map → p-a8ea6c44.entry.js.map} +1 -1
  98. package/dist/csc-ui/{p-42f25668.entry.js → p-aea7f08c.entry.js} +2 -2
  99. package/dist/csc-ui/p-aea7f08c.entry.js.map +1 -0
  100. package/dist/csc-ui/{p-3ffb48e3.entry.js → p-ea1bcd6c.entry.js} +2 -2
  101. package/dist/csc-ui/{p-3ffb48e3.entry.js.map → p-ea1bcd6c.entry.js.map} +1 -1
  102. package/dist/esm/c-autocomplete_34.entry.js +16 -15
  103. package/dist/esm/c-autocomplete_34.entry.js.map +1 -1
  104. package/dist/esm/c-slider.entry.js +1 -1
  105. package/dist/esm/c-slider.entry.js.map +1 -1
  106. package/dist/esm/c-swiper-tab.entry.js +1 -1
  107. package/dist/esm/c-swiper-tab.entry.js.map +1 -1
  108. package/dist/esm/c-swiper.entry.js +1 -1
  109. package/dist/esm/c-swiper.entry.js.map +1 -1
  110. package/dist/esm/c-tab-buttons.entry.js +1 -1
  111. package/dist/esm/c-tab-buttons.entry.js.map +1 -1
  112. package/dist/esm/c-tab.entry.js +1 -1
  113. package/dist/esm/c-tab.entry.js.map +1 -1
  114. package/dist/esm/csc-ui.js +1 -1
  115. package/dist/esm/loader.js +1 -1
  116. package/dist/types/components/c-otp-input/c-otp-input.d.ts +1 -0
  117. package/dist/types/components.d.ts +52 -0
  118. package/package.json +1 -1
  119. package/vscode-data.json +4 -0
  120. package/dist/csc-ui/p-42f25668.entry.js.map +0 -1
  121. package/dist/csc-ui/p-fb91bce3.entry.js.map +0 -1
@@ -1,2 +1,2 @@
1
- import{r as e,c as r,h as t,H as a,g as c}from"./p-gSzSMY-c.js";const i="html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host(c-swiper-tab){--_c-swiper-tab-background-color-active:var(--c-swiper-tab-background-color-active, var(--c-primary-600));--_c-swiper-tab-background-color-disabled:var(--c-swiper-tab-background-color-disabled, var(--c-tertiary-100));--_c-swiper-tab-background-color:var(--c-swiper-tab-background-color, var(--c-primary-200));--_c-swiper-tab-hover-color:var(--c-swiper-tab-hover-color, var(--c-primary-100));--_c-swiper-tab-text-color-active:var(--c-swiper-tab-text-color-active, var(--c-white));--_c-swiper-tab-text-color-disabled:var(--c-swiper-tab-text-color-disabled, var(--c-tertiary-600));--_c-swiper-tab-text-color:var(--c-swiper-tab-text-color, var(--c-primary-600));border-radius:8px;width:100%;height:100%;outline:none;text-decoration:none;user-select:none;display:grid;align-content:stretch;padding:4px;background-color:transparent;border:none}:host(:focus){outline:2px var(--_c-swiper-tab-background-color-active) solid;outline-offset:-2px}@supports selector(:focus-visible){:host(:focus){outline:none}}:host(:focus-visible){outline:2px var(--_c-swiper-tab-background-color-active) solid;outline-offset:-2px}.c-swiper-tab{height:100%}.c-swiper-tab:hover:not(.c-swiper-tab--active):not(.c-swiper-tab--disabled) .c-swiper-tab__content{background-color:var(--_c-swiper-tab-hover-color)}.c-swiper-tab__content{border-radius:6px;background-color:var(--_c-swiper-tab-background-color);color:var(--_c-swiper-tab-text-color);cursor:pointer;transition:background-color 0.2s ease-in-out;display:grid;gap:4px;grid-template-columns:1fr;line-height:1.5;padding:16px;align-content:start;position:relative;overflow:hidden;height:100%}.c-swiper-tab__header{line-height:38px;font-size:24px;display:grid;grid-template-columns:1fr auto;gap:16px}.c-swiper-tab__description{align-items:start;opacity:0.67}.c-swiper-tab--disabled .c-swiper-tab__content{background:var(--_c-swiper-tab-background-color-disabled);color:var(--_c-swiper-tab-text-color-disabled);cursor:default !important;pointer-events:none}.c-swiper-tab--active .c-swiper-tab__content{background-color:var(--_c-swiper-tab-background-color-active);color:var(--_c-swiper-tab-text-color-active);pointer-events:none}.c-swiper-tab--active .c-swiper-tab__content:hover{background-color:var(--_c-swiper-tab-background-color-active)}.c-swiper-tab svg{fill:currentColor;height:38px;width:38px}";const o=class{constructor(t){e(this,t);this.changeValue=r(this,"changeValue",7);this.disabled=false;this.active=false}onTabClick(e){if(this.active||this.disabled)return;this._rippleElement.createRipple(e,this._container);this.changeValue.emit(this.value)}render(){const e={"c-swiper-tab":true,"c-swiper-tab--active":!this.disabled&&this.active,"c-swiper-tab--disabled":this.disabled};const r={"aria-selected":this.active?"true":"false","aria-setsize":this.setsize,"aria-posinset":this.position,tabindex:this.active?0:-1};return t(a,Object.assign({key:"4afde3e9c189b8e27d097fe7d5f6b84afe251e69"},r,{role:"tab"}),t("div",{key:"ee90e5a063b726d4355b228cc32d7bfc2a425504",id:this.hostId,class:e},t("div",{key:"bcdd03e10c37e11d56d77f4f5902af4c3c443924",class:"c-swiper-tab__content",ref:e=>this._container=e},t("div",{key:"723365f1c29f8dce05581b83b2edcb3ac434053c",class:"c-swiper-tab__header"},this.label,t("slot",{key:"3ade7de8942affdb0c8b7fe28e3742fa0ebe0166",name:"icon"})),t("div",{key:"a082462dc82b6b1c8bde549b78e3bc2c3c3c77cc",class:"c-swiper-tab__description"},t("slot",{key:"0ad1e34a24d0b54c7305cc732fb488460e481938"})),t("c-ripple",{key:"5256d5754768a9dbf22e009ff65a2fcf42a8149f",ref:e=>this._rippleElement=e}))))}get el(){return c(this)}};o.style=i;export{o as c_swiper_tab};
2
- //# sourceMappingURL=p-3ffb48e3.entry.js.map
1
+ import{r as e,c as r,h as t,H as a,g as c}from"./p-gSzSMY-c.js";const i="html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host(c-swiper-tab){--_c-swiper-tab-background-color-active:var(--c-swiper-tab-background-color-active, var(--c-primary-600));--_c-swiper-tab-background-color-disabled:var(--c-swiper-tab-background-color-disabled, var(--c-tertiary-100));--_c-swiper-tab-background-color:var(--c-swiper-tab-background-color, var(--c-primary-200));--_c-swiper-tab-hover-color:var(--c-swiper-tab-hover-color, var(--c-primary-100));--_c-swiper-tab-text-color-active:var(--c-swiper-tab-text-color-active, var(--c-white));--_c-swiper-tab-text-color-disabled:var(--c-swiper-tab-text-color-disabled, var(--c-tertiary-600));--_c-swiper-tab-text-color:var(--c-swiper-tab-text-color, var(--c-primary-600));border-radius:8px;width:100%;height:100%;outline:none;text-decoration:none;user-select:none;display:grid;align-content:stretch;padding:4px;background-color:transparent;border:none}:host(:focus){outline:2px var(--_c-swiper-tab-background-color-active) solid;outline-offset:-2px}@supports selector(:focus-visible){:host(:focus){outline:none}}:host(:focus-visible){outline:2px var(--_c-swiper-tab-background-color-active) solid;outline-offset:-2px}.c-swiper-tab{height:100%}.c-swiper-tab:hover:not(.c-swiper-tab--active):not(.c-swiper-tab--disabled) .c-swiper-tab__content{background-color:var(--_c-swiper-tab-hover-color)}.c-swiper-tab__content{border-radius:6px;background-color:var(--_c-swiper-tab-background-color);color:var(--_c-swiper-tab-text-color);cursor:pointer;transition:background-color 0.2s ease-in-out;display:grid;gap:4px;grid-template-columns:1fr;line-height:1.5;padding:16px;align-content:start;position:relative;overflow:hidden;height:100%}.c-swiper-tab__header{line-height:38px;font-size:24px;display:grid;grid-template-columns:1fr auto;gap:16px}.c-swiper-tab__description{align-items:start;opacity:0.67}.c-swiper-tab--disabled .c-swiper-tab__content{background:var(--_c-swiper-tab-background-color-disabled);color:var(--_c-swiper-tab-text-color-disabled);cursor:default !important;pointer-events:none}.c-swiper-tab--active .c-swiper-tab__content{background-color:var(--_c-swiper-tab-background-color-active);color:var(--_c-swiper-tab-text-color-active);pointer-events:none}.c-swiper-tab--active .c-swiper-tab__content:hover{background-color:var(--_c-swiper-tab-background-color-active)}.c-swiper-tab svg{fill:currentColor;height:38px;width:38px}";const o=class{constructor(t){e(this,t);this.changeValue=r(this,"changeValue",7);this.disabled=false;this.active=false}onTabClick(e){if(this.active||this.disabled)return;this._rippleElement.createRipple(e,this._container);this.changeValue.emit(this.value)}render(){const e={"c-swiper-tab":true,"c-swiper-tab--active":!this.disabled&&this.active,"c-swiper-tab--disabled":this.disabled};const r={"aria-selected":this.active?"true":"false","aria-setsize":this.setsize,"aria-posinset":this.position,tabindex:this.active?0:-1};return t(a,Object.assign({key:"4efa9db2257434ca390bf54318ee0247b3ff1231"},r,{role:"tab"}),t("div",{key:"be6c8a12571b9d6a7e35011bc5f1a71cb8168d70",id:this.hostId,class:e},t("div",{key:"57acf3e10944e0dd12efe9611aed718df87295fa",class:"c-swiper-tab__content",ref:e=>this._container=e},t("div",{key:"145084b7ed4104f166a105c9aea6eaa01dca8747",class:"c-swiper-tab__header"},this.label,t("slot",{key:"b307970179d9b7944794a2fa984f85ac7e4b3c16",name:"icon"})),t("div",{key:"801f4bc82a31c0d39884cad3ef105e17535c522c",class:"c-swiper-tab__description"},t("slot",{key:"90928fc05fed8fd5b47d35644735b9018a54aa66"})),t("c-ripple",{key:"6efa92d7c9b36c580d3e051ce84a8770c8ff3cec",ref:e=>this._rippleElement=e}))))}get el(){return c(this)}};o.style=i;export{o as c_swiper_tab};
2
+ //# sourceMappingURL=p-ea1bcd6c.entry.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["cSwiperTabCss","CSwiperTab","constructor","hostRef","this","disabled","active","onTabClick","event","_rippleElement","createRipple","_container","changeValue","emit","value","render","classes","a11y","setsize","position","tabindex","h","Host","Object","assign","key","role","id","hostId","class","ref","el","label","name"],"sources":["src/components/c-swiper-tab/c-swiper-tab.scss?tag=c-swiper-tab&encapsulation=shadow","src/components/c-swiper-tab/c-swiper-tab.tsx"],"sourcesContent":[":host(c-swiper-tab) {\n /**\n * @prop --c-swiper-tab-background-color-active: Swiper active background color\n * @prop --c-swiper-tab-background-color-disabled: Swiper disabled background color\n * @prop --c-swiper-tab-background-color: Swiper background color\n * @prop --c-swiper-tab-hover-color: Swiper hover color\n * @prop --c-swiper-tab-text-color-active: Swiper active text color\n * @prop --c-swiper-tab-text-color-disabled: Swiper disabled text color\n * @prop --c-swiper-tab-text-color: Swiper text color\n */\n --_c-swiper-tab-background-color-active: var(--c-swiper-tab-background-color-active, var(--c-primary-600));\n --_c-swiper-tab-background-color-disabled: var(--c-swiper-tab-background-color-disabled, var(--c-tertiary-100));\n --_c-swiper-tab-background-color: var(--c-swiper-tab-background-color, var(--c-primary-200));\n --_c-swiper-tab-hover-color: var(--c-swiper-tab-hover-color, var(--c-primary-100));\n --_c-swiper-tab-text-color-active: var(--c-swiper-tab-text-color-active, var(--c-white));\n --_c-swiper-tab-text-color-disabled: var(--c-swiper-tab-text-color-disabled, var(--c-tertiary-600));\n --_c-swiper-tab-text-color: var(--c-swiper-tab-text-color, var(--c-primary-600));\n\n border-radius: 8px;\n width: 100%;\n height: 100%;\n outline: none;\n text-decoration: none;\n user-select: none;\n display: grid;\n align-content: stretch;\n padding: 4px;\n background-color: transparent;\n border: none;\n}\n\n:host(:focus) {\n outline: 2px var(--_c-swiper-tab-background-color-active) solid;\n outline-offset: -2px;\n}\n\n@supports selector(:focus-visible) {\n :host(:focus) {\n outline: none;\n }\n}\n\n:host(:focus-visible) {\n outline: 2px var(--_c-swiper-tab-background-color-active) solid;\n outline-offset: -2px;\n}\n\n.c-swiper-tab {\n $this: &;\n\n height: 100%;\n\n &:hover:not(#{$this}--active):not(#{$this}--disabled) {\n #{$this}__content {\n background-color: var(--_c-swiper-tab-hover-color);\n }\n }\n\n &__content {\n border-radius: 6px;\n background-color: var(--_c-swiper-tab-background-color);\n color: var(--_c-swiper-tab-text-color);\n cursor: pointer;\n transition: background-color 0.2s ease-in-out;\n display: grid;\n gap: 4px;\n grid-template-columns: 1fr;\n line-height: 1.5;\n padding: 16px;\n align-content: start;\n position: relative;\n overflow: hidden;\n height: 100%;\n }\n\n &__header {\n line-height: 38px;\n font-size: 24px;\n display: grid;\n grid-template-columns: 1fr auto;\n gap: 16px;\n }\n\n &__description {\n align-items: start;\n opacity: 0.67;\n }\n\n &--disabled {\n #{$this}__content {\n background: var(--_c-swiper-tab-background-color-disabled);\n color: var(--_c-swiper-tab-text-color-disabled);\n cursor: default !important;\n pointer-events: none;\n }\n }\n\n &--active {\n #{$this}__content {\n background-color: var(--_c-swiper-tab-background-color-active);\n color: var(--_c-swiper-tab-text-color-active);\n pointer-events: none;\n\n &:hover {\n background-color: var(--_c-swiper-tab-background-color-active);\n }\n }\n }\n\n svg {\n fill: currentColor;\n height: 38px;\n width: 38px;\n }\n}\n","import {\n Component,\n Prop,\n h,\n Host,\n Event,\n Element,\n EventEmitter,\n Listen,\n} from '@stencil/core';\n\n/**\n * @parent c-swiper\n */\n@Component({\n tag: 'c-swiper-tab',\n styleUrl: 'c-swiper-tab.scss',\n shadow: true,\n})\nexport class CSwiperTab {\n @Element() el: HTMLCSwiperTabElement;\n\n /**\n * Disable button\n */\n @Prop() disabled = false;\n\n /**\n * Mark as active\n */\n @Prop() active = false;\n\n /**\n * Label of the button\n */\n @Prop() label: string;\n\n /**\n * Id of the button\n */\n @Prop({ attribute: 'id' }) hostId: string;\n\n /**\n * Size of the set\n * @private\n */\n @Prop() setsize: number;\n\n /**\n * Position in the set\n * @private\n */\n @Prop() position: number;\n\n /**\n * Value of the button\n */\n @Prop() value: number | string;\n\n /**\n * Emit value change to the parent\n * @private\n */\n @Event({\n bubbles: true,\n composed: true,\n cancelable: true,\n })\n changeValue: EventEmitter<number | string>;\n\n private _container?: HTMLDivElement;\n\n private _rippleElement: HTMLCRippleElement;\n\n @Listen('click', { passive: true })\n onTabClick(event) {\n if (this.active || this.disabled) return;\n\n this._rippleElement.createRipple(event, this._container);\n\n this.changeValue.emit(this.value);\n }\n\n render() {\n const classes = {\n 'c-swiper-tab': true,\n 'c-swiper-tab--active': !this.disabled && this.active,\n 'c-swiper-tab--disabled': this.disabled,\n };\n\n const a11y = {\n 'aria-selected': this.active ? 'true' : 'false',\n 'aria-setsize': this.setsize,\n 'aria-posinset': this.position,\n tabindex: this.active ? 0 : -1,\n };\n\n return (\n <Host {...a11y} role=\"tab\">\n <div id={this.hostId} class={classes}>\n <div\n class=\"c-swiper-tab__content\"\n ref={(el) => (this._container = el as HTMLDivElement)}\n >\n <div class=\"c-swiper-tab__header\">\n {this.label}\n <slot name=\"icon\"></slot>\n </div>\n\n <div class=\"c-swiper-tab__description\">\n <slot></slot>\n </div>\n\n <c-ripple ref={(el) => (this._rippleElement = el)}></c-ripple>\n </div>\n </div>\n </Host>\n );\n }\n}\n"],"mappings":"gEAAA,MAAMA,EAAgB,g+E,MCmBTC,EAAU,MALvB,WAAAC,CAAAC,G,mDAWUC,KAAQC,SAAG,MAKXD,KAAME,OAAG,KAyFlB,CA5CC,UAAAC,CAAWC,GACT,GAAIJ,KAAKE,QAAUF,KAAKC,SAAU,OAElCD,KAAKK,eAAeC,aAAaF,EAAOJ,KAAKO,YAE7CP,KAAKQ,YAAYC,KAAKT,KAAKU,M,CAG7B,MAAAC,GACE,MAAMC,EAAU,CACd,eAAgB,KAChB,wBAAyBZ,KAAKC,UAAYD,KAAKE,OAC/C,yBAA0BF,KAAKC,UAGjC,MAAMY,EAAO,CACX,gBAAiBb,KAAKE,OAAS,OAAS,QACxC,eAAgBF,KAAKc,QACrB,gBAAiBd,KAAKe,SACtBC,SAAUhB,KAAKE,OAAS,GAAI,GAG9B,OACEe,EAACC,EAAIC,OAAAC,OAAA,CAAAC,IAAA,4CAAKR,EAAM,CAAAS,KAAK,QACnBL,EAAK,OAAAI,IAAA,2CAAAE,GAAIvB,KAAKwB,OAAQC,MAAOb,GAC3BK,EAAA,OAAAI,IAAA,2CACEI,MAAM,wBACNC,IAAMC,GAAQ3B,KAAKO,WAAaoB,GAEhCV,EAAK,OAAAI,IAAA,2CAAAI,MAAM,wBACRzB,KAAK4B,MACNX,EAAA,QAAAI,IAAA,2CAAMQ,KAAK,UAGbZ,EAAK,OAAAI,IAAA,2CAAAI,MAAM,6BACTR,EAAA,QAAAI,IAAA,8CAGFJ,EAAA,YAAAI,IAAA,2CAAUK,IAAMC,GAAQ3B,KAAKK,eAAiBsB,M","ignoreList":[]}
1
+ {"version":3,"names":["cSwiperTabCss","CSwiperTab","constructor","hostRef","this","disabled","active","onTabClick","event","_rippleElement","createRipple","_container","changeValue","emit","value","render","classes","a11y","setsize","position","tabindex","h","Host","Object","assign","key","role","id","hostId","class","ref","el","label","name"],"sources":["src/components/c-swiper-tab/c-swiper-tab.scss?tag=c-swiper-tab&encapsulation=shadow","src/components/c-swiper-tab/c-swiper-tab.tsx"],"sourcesContent":[":host(c-swiper-tab) {\n /**\n * @prop --c-swiper-tab-background-color-active: Swiper active background color\n * @prop --c-swiper-tab-background-color-disabled: Swiper disabled background color\n * @prop --c-swiper-tab-background-color: Swiper background color\n * @prop --c-swiper-tab-hover-color: Swiper hover color\n * @prop --c-swiper-tab-text-color-active: Swiper active text color\n * @prop --c-swiper-tab-text-color-disabled: Swiper disabled text color\n * @prop --c-swiper-tab-text-color: Swiper text color\n */\n --_c-swiper-tab-background-color-active: var(--c-swiper-tab-background-color-active, var(--c-primary-600));\n --_c-swiper-tab-background-color-disabled: var(--c-swiper-tab-background-color-disabled, var(--c-tertiary-100));\n --_c-swiper-tab-background-color: var(--c-swiper-tab-background-color, var(--c-primary-200));\n --_c-swiper-tab-hover-color: var(--c-swiper-tab-hover-color, var(--c-primary-100));\n --_c-swiper-tab-text-color-active: var(--c-swiper-tab-text-color-active, var(--c-white));\n --_c-swiper-tab-text-color-disabled: var(--c-swiper-tab-text-color-disabled, var(--c-tertiary-600));\n --_c-swiper-tab-text-color: var(--c-swiper-tab-text-color, var(--c-primary-600));\n\n border-radius: 8px;\n width: 100%;\n height: 100%;\n outline: none;\n text-decoration: none;\n user-select: none;\n display: grid;\n align-content: stretch;\n padding: 4px;\n background-color: transparent;\n border: none;\n}\n\n:host(:focus) {\n outline: 2px var(--_c-swiper-tab-background-color-active) solid;\n outline-offset: -2px;\n}\n\n@supports selector(:focus-visible) {\n :host(:focus) {\n outline: none;\n }\n}\n\n:host(:focus-visible) {\n outline: 2px var(--_c-swiper-tab-background-color-active) solid;\n outline-offset: -2px;\n}\n\n.c-swiper-tab {\n $this: &;\n\n height: 100%;\n\n &:hover:not(#{$this}--active):not(#{$this}--disabled) {\n #{$this}__content {\n background-color: var(--_c-swiper-tab-hover-color);\n }\n }\n\n &__content {\n border-radius: 6px;\n background-color: var(--_c-swiper-tab-background-color);\n color: var(--_c-swiper-tab-text-color);\n cursor: pointer;\n transition: background-color 0.2s ease-in-out;\n display: grid;\n gap: 4px;\n grid-template-columns: 1fr;\n line-height: 1.5;\n padding: 16px;\n align-content: start;\n position: relative;\n overflow: hidden;\n height: 100%;\n }\n\n &__header {\n line-height: 38px;\n font-size: 24px;\n display: grid;\n grid-template-columns: 1fr auto;\n gap: 16px;\n }\n\n &__description {\n align-items: start;\n opacity: 0.67;\n }\n\n &--disabled {\n #{$this}__content {\n background: var(--_c-swiper-tab-background-color-disabled);\n color: var(--_c-swiper-tab-text-color-disabled);\n cursor: default !important;\n pointer-events: none;\n }\n }\n\n &--active {\n #{$this}__content {\n background-color: var(--_c-swiper-tab-background-color-active);\n color: var(--_c-swiper-tab-text-color-active);\n pointer-events: none;\n\n &:hover {\n background-color: var(--_c-swiper-tab-background-color-active);\n }\n }\n }\n\n svg {\n fill: currentColor;\n height: 38px;\n width: 38px;\n }\n}\n","import {\n Component,\n Prop,\n h,\n Host,\n Event,\n Element,\n EventEmitter,\n Listen,\n} from '@stencil/core';\n\n/**\n * @parent c-swiper\n */\n@Component({\n tag: 'c-swiper-tab',\n styleUrl: 'c-swiper-tab.scss',\n shadow: true,\n})\nexport class CSwiperTab {\n @Element() el: HTMLCSwiperTabElement;\n\n /**\n * Disable button\n */\n @Prop() disabled = false;\n\n /**\n * Mark as active\n */\n @Prop() active = false;\n\n /**\n * Label of the button\n */\n @Prop() label: string;\n\n /**\n * Id of the button\n * @name id\n */\n @Prop({ attribute: 'id' }) hostId: string;\n\n /**\n * Size of the set\n * @private\n */\n @Prop() setsize: number;\n\n /**\n * Position in the set\n * @private\n */\n @Prop() position: number;\n\n /**\n * Value of the button\n */\n @Prop() value: number | string;\n\n /**\n * Emit value change to the parent\n * @private\n */\n @Event({\n bubbles: true,\n composed: true,\n cancelable: true,\n })\n changeValue: EventEmitter<number | string>;\n\n private _container?: HTMLDivElement;\n\n private _rippleElement: HTMLCRippleElement;\n\n @Listen('click', { passive: true })\n onTabClick(event) {\n if (this.active || this.disabled) return;\n\n this._rippleElement.createRipple(event, this._container);\n\n this.changeValue.emit(this.value);\n }\n\n render() {\n const classes = {\n 'c-swiper-tab': true,\n 'c-swiper-tab--active': !this.disabled && this.active,\n 'c-swiper-tab--disabled': this.disabled,\n };\n\n const a11y = {\n 'aria-selected': this.active ? 'true' : 'false',\n 'aria-setsize': this.setsize,\n 'aria-posinset': this.position,\n tabindex: this.active ? 0 : -1,\n };\n\n return (\n <Host {...a11y} role=\"tab\">\n <div id={this.hostId} class={classes}>\n <div\n class=\"c-swiper-tab__content\"\n ref={(el) => (this._container = el as HTMLDivElement)}\n >\n <div class=\"c-swiper-tab__header\">\n {this.label}\n <slot name=\"icon\"></slot>\n </div>\n\n <div class=\"c-swiper-tab__description\">\n <slot></slot>\n </div>\n\n <c-ripple ref={(el) => (this._rippleElement = el)}></c-ripple>\n </div>\n </div>\n </Host>\n );\n }\n}\n"],"mappings":"gEAAA,MAAMA,EAAgB,g+E,MCmBTC,EAAU,MALvB,WAAAC,CAAAC,G,mDAWUC,KAAQC,SAAG,MAKXD,KAAME,OAAG,KA0FlB,CA5CC,UAAAC,CAAWC,GACT,GAAIJ,KAAKE,QAAUF,KAAKC,SAAU,OAElCD,KAAKK,eAAeC,aAAaF,EAAOJ,KAAKO,YAE7CP,KAAKQ,YAAYC,KAAKT,KAAKU,M,CAG7B,MAAAC,GACE,MAAMC,EAAU,CACd,eAAgB,KAChB,wBAAyBZ,KAAKC,UAAYD,KAAKE,OAC/C,yBAA0BF,KAAKC,UAGjC,MAAMY,EAAO,CACX,gBAAiBb,KAAKE,OAAS,OAAS,QACxC,eAAgBF,KAAKc,QACrB,gBAAiBd,KAAKe,SACtBC,SAAUhB,KAAKE,OAAS,GAAI,GAG9B,OACEe,EAACC,EAAIC,OAAAC,OAAA,CAAAC,IAAA,4CAAKR,EAAM,CAAAS,KAAK,QACnBL,EAAK,OAAAI,IAAA,2CAAAE,GAAIvB,KAAKwB,OAAQC,MAAOb,GAC3BK,EAAA,OAAAI,IAAA,2CACEI,MAAM,wBACNC,IAAMC,GAAQ3B,KAAKO,WAAaoB,GAEhCV,EAAK,OAAAI,IAAA,2CAAAI,MAAM,wBACRzB,KAAK4B,MACNX,EAAA,QAAAI,IAAA,2CAAMQ,KAAK,UAGbZ,EAAK,OAAAI,IAAA,2CAAAI,MAAM,6BACTR,EAAA,QAAAI,IAAA,8CAGFJ,EAAA,YAAAI,IAAA,2CAAUK,IAAMC,GAAQ3B,KAAKK,eAAiBsB,M","ignoreList":[]}
@@ -259,7 +259,7 @@ const CAutocomplete = class {
259
259
  }
260
260
  render() {
261
261
  const itemType = this.optionElementsExist ? 'option' : 'item';
262
- return (h(Host, { key: '4e964e785cc57d4a4018f727d872e8caa242af88' }, h("c-dropdown", { key: '5ed682365f737a4d53e1099ab00651cfe02150ec', ref: (el) => (this._dropdownElement = el), id: `${this._id}-dropdown`, index: this.currentIndex, "items-per-page": this.itemsPerPage, "dropdown-item-type": itemType, items: this._items, parent: this.el, type: "autocomplete", onKeyDown: (event) => this._handleKeyDown(event) }, h("c-input", { key: '9d1a138ddacdfba8e2580d6fa69fc543db7e2ca6', slot: "default", ref: (el) => (this._cInputElement = el), active: this.dropdownVisible, disabled: this.disabled, "hide-details": this.hideDetails, hint: this.hint, id: this.hostId, "input-id": this._inputId, label: this.label, name: this.name, placeholder: this.placeholder, required: this.required, shadow: this.shadow, valid: this.valid, validate: this.validate, "validate-on-blur": this.validateOnBlur, validation: this.validation, value: this.query, variant: "select" }, h("slot", { key: 'c95ecb16d1e2cbc3a3671739625fba3f13eaa3a2', name: "pre", slot: "pre" }), h("div", { key: '9169e5d144bcd10159dbf91df256a10f792345c3', class: "c-input__content" }, this._renderInputElement(), this.loading && this._renderLoader(), !this.loading && this.value && this._renderReset(), !this.loading && !this.value && this._renderChevron(), h("slot", { key: '6a80b3856532fde8e946f66dc3cf058b8e8a4da2', onSlotchange: () => this._handleSlotChange() })), h("slot", { key: '695248ad48ab15409fdd861881fdf714b6b10c24', name: "post", slot: "post" })))));
262
+ return (h(Host, { key: '78ffcfd591a16d2991b1517d0500edac131b31e4' }, h("c-dropdown", { key: '7bb4696ca59c247ad154887f9dac664bca78b762', ref: (el) => (this._dropdownElement = el), id: `${this._id}-dropdown`, index: this.currentIndex, "items-per-page": this.itemsPerPage, "dropdown-item-type": itemType, items: this._items, parent: this.el, type: "autocomplete", onKeyDown: (event) => this._handleKeyDown(event) }, h("c-input", { key: '02bd0f888b2f6436479da3ed0f03720971ccb419', slot: "default", ref: (el) => (this._cInputElement = el), active: this.dropdownVisible, disabled: this.disabled, "hide-details": this.hideDetails, hint: this.hint, id: this.hostId, "input-id": this._inputId, label: this.label, name: this.name, placeholder: this.placeholder, required: this.required, shadow: this.shadow, valid: this.valid, validate: this.validate, "validate-on-blur": this.validateOnBlur, validation: this.validation, value: this.query, variant: "select" }, h("slot", { key: '6bc336aa7167ffb104e242db04e4a873c8d43b20', name: "pre", slot: "pre" }), h("div", { key: 'a495b0508898a4687e300dcdff4cefe3213543b1', class: "c-input__content" }, this._renderInputElement(), this.loading && this._renderLoader(), !this.loading && this.value && this._renderReset(), !this.loading && !this.value && this._renderChevron(), h("slot", { key: '994932ecf1ee214b8d96c996a268a34682a8a2bc', onSlotchange: () => this._handleSlotChange() })), h("slot", { key: '2e967acc2e86985103fb4ee48ef4a5ca78d91c8f', name: "post", slot: "post" })))));
263
263
  }
264
264
  static get formAssociated() { return true; }
265
265
  get el() { return getElement(this); }
@@ -411,7 +411,7 @@ const CButton = class {
411
411
  default: 24,
412
412
  large: 28,
413
413
  };
414
- return (h(Host, Object.assign({ key: '7f77ac07c94062c486b38caf086e3f892451c801', class: hostClasses }, hostAttributes), h(Tag, Object.assign({ key: '37a2304333edb9d3f41edaebc89c5bb1eb0ca680' }, attributes, linkAttributes), h("div", { key: '9d1afeb3f859959cc0e54486c19de9e88047ca16', class: contentClasses, ref: (el) => (this._container = el) }, h("div", { key: '4650eaf1d1b7dbf17c69f04ead530ba4c22afd5b', class: innerClasses }, this.loading && (h("div", { key: '54d911e3704befb2b6ca22178ad2e7138c603319', class: "c-button__loader" }, h("c-spinner", { key: 'e5441cb69c533feca29bfaa5c9f88e77f9ab0ebe', color: "var(--_c-button-loader-color)", size: spinnerSizes[this.size] }))), h("slot", { key: '0627278d9d5273a172736d54e1b7a920c0f7869e' })), this._containerhasDescriptionSlot && (h("div", { key: '3c8285d6f0569741a0ce6b69f4ee3b485c792bcb', class: descriptionSlotClasses }, h("slot", { key: '3a97d707d8b3e4614fdd499422eb271eb7f00675', name: "description" })))), h("c-ripple", { key: 'e7bfc00178c33e522ead44c13e45754f2deab22f', ref: (el) => (this._rippleElement = el) }))));
414
+ return (h(Host, Object.assign({ key: '1e7fd3d5ed864159709a2e34ec23fa62830e84b8', class: hostClasses }, hostAttributes), h(Tag, Object.assign({ key: '372d34c304df775577e9165ae24b88f299a38d2c' }, attributes, linkAttributes), h("div", { key: '3ab7cc2472bda14f499a520c4dd53a0543ead5ba', class: contentClasses, ref: (el) => (this._container = el) }, h("div", { key: '929fbd77601b9f58d7d0002e4213a50ae495dfd0', class: innerClasses }, this.loading && (h("div", { key: '90e97a37732c2903b718c11439232f563294eb7d', class: "c-button__loader" }, h("c-spinner", { key: '277ee152de7e3c61891c52ee51f771f85df0a5ed', color: "var(--_c-button-loader-color)", size: spinnerSizes[this.size] }))), h("slot", { key: '7b6a4797d7bd515f8171b8d83a3c3a5b30c3be81' })), this._containerhasDescriptionSlot && (h("div", { key: '479ed7791480a8ac29864b53cad7db65826eba3f', class: descriptionSlotClasses }, h("slot", { key: '634af8d8b67366d3e28f9eefd961c5cc68d1b34c', name: "description" })))), h("c-ripple", { key: '670f5e91b610d7e7d19684a725cfec20d0537eec', ref: (el) => (this._rippleElement = el) }))));
415
415
  }
416
416
  get hostElement() { return getElement(this); }
417
417
  };
@@ -605,7 +605,7 @@ const CCheckbox = class {
605
605
  'c-checkbox__label--indeterminate': this.indeterminate,
606
606
  };
607
607
  const slotHasContent = !!this.el.childNodes.length;
608
- return (h(Host, { key: '37a29669106062862504ac3a7ba3136b647dc782' }, h("div", { key: '57f94dfa9e4dc4824c636b83078cafa07ddb7e57', class: wrapperClasses }, h("input", Object.assign({ key: '7f500b76cdf5a670421b6fd40389bbebe54986c1', class: "visuallyhidden", id: "checkbox" }, (!!this.hostName ? { name: this.hostName } : {}), { type: "checkbox", "aria-checked": this.checked.toString(), "aria-disabled": this.disabled.toString(), checked: this.checked ? true : undefined, disabled: this.disabled, onChange: (event) => this._toggleState(event) })), h("label", { key: '13018b4864a12f1feb2c581ad36f1d49aedc5187', class: labelClasses, htmlFor: "checkbox" }, h("div", { key: 'cf55a92618d6465b0a43daa630eeb78b25f22bb9', class: "ripple", ref: (el) => (this._container = el) }, h("svg", { key: '9f5340efb2b322a088c1c40fc631b87bba0c5c2e', viewBox: "0 0 100 100" }, !this.indeterminate && this.checked && (h("path", { key: 'a8747aeb960e6e4348295f0dfb1d3c40e0804330', class: "path", d: "M 12 52 l 24 24 l 47 -47 l -3 -3 l -44 44 l -21 -21 l -3 3" })), this.indeterminate && (h("path", { key: 'e3e052055f0af88db6c6ceefed4ec5e26d693a4f', class: "path", d: "M20 56 h60 v-8 h-60 z" }))), h("c-ripple", { key: '1a7b5ae4bb1585a9234c9935d2b2909ac2a360c6', ref: (el) => (this._rippleElement = el) })), (!!this.label || slotHasContent) && (h("div", { key: 'b6c36d355ddbe3e720433b974aeab194782ba0df', class: "c-checkbox__label-content" }, !!this.label ? this.label : h("slot", null), this.required && h("span", { key: '788a37acbe1c8856c513e4ebbcebf4ed6288f14c', class: "required" }, "\u00A0*"))))), !this.hideDetails && (h("c-message", { key: 'd35b6c31b8381d265d3b0370ae4defc22fbbe4d3', hint: this.hint, inputId: this._id, valid: this.valid, validation: this.validation }))));
608
+ return (h(Host, { key: 'e39e3e681c8b1267e58182872f704cb048e14daa' }, h("div", { key: '83a582b3231bfafc6f3deabe3b5cad87c1dac99c', class: wrapperClasses }, h("input", Object.assign({ key: '9b20de6459795c6b8f41d1aa31212fa8dc071bf6', class: "visuallyhidden", id: "checkbox" }, (!!this.hostName ? { name: this.hostName } : {}), { type: "checkbox", "aria-checked": this.checked.toString(), "aria-disabled": this.disabled.toString(), checked: this.checked ? true : undefined, disabled: this.disabled, onChange: (event) => this._toggleState(event) })), h("label", { key: 'ef2eb908f56cab3de39a53270a95cea892db99ec', class: labelClasses, htmlFor: "checkbox" }, h("div", { key: 'f260766abb707826ac5498301a2966d6f714c66f', class: "ripple", ref: (el) => (this._container = el) }, h("svg", { key: '8d43f917054de11772dd246871947a2291086d4a', viewBox: "0 0 100 100" }, !this.indeterminate && this.checked && (h("path", { key: '448595e010c4292f113b58837f6dca92522b6acd', class: "path", d: "M 12 52 l 24 24 l 47 -47 l -3 -3 l -44 44 l -21 -21 l -3 3" })), this.indeterminate && (h("path", { key: 'd88bb390971e37d265a2ac5676cf890ebca09729', class: "path", d: "M20 56 h60 v-8 h-60 z" }))), h("c-ripple", { key: '67101de46a7627092f9280756fe8b310a95e2635', ref: (el) => (this._rippleElement = el) })), (!!this.label || slotHasContent) && (h("div", { key: '186fa5f1b2aeb8750a72e4be36c8182b1fe8b903', class: "c-checkbox__label-content" }, !!this.label ? this.label : h("slot", null), this.required && h("span", { key: '6b9f54993ec9bcc98780bf36401ce6aaf887e78e', class: "required" }, "\u00A0*"))))), !this.hideDetails && (h("c-message", { key: '1a73cca7a518fcd65370f67b09ba6ae257e0eb15', hint: this.hint, inputId: this._id, valid: this.valid, validation: this.validation }))));
609
609
  }
610
610
  static get formAssociated() { return true; }
611
611
  get el() { return getElement(this); }
@@ -913,10 +913,10 @@ const CDropdown = class {
913
913
  this._dialog.style.maxHeight = 42 * (this.itemsPerPage + 0.5) + 60 + 'px';
914
914
  this._list.style.maxHeight = 42 * (this.itemsPerPage + 0.5) + 'px';
915
915
  }
916
- return (h(Host, { key: '92df10119e813e084e34d04b430d64e7bbf027ab' }, h("slot", { key: '57c0cc3863d1d898d0653418bc931e22c75322b2', name: "default" }), h("div", { key: 'c786bd8c35a6230a1274d68067be65b9f633f844', class: "dummy", ref: (el) => (this._dummyElement = el) }), h("dialog", { key: '4d0e6173342a3875b9f891af1b8997598b5865ab', tabindex: "-1", ref: (el) => (this._dialog = el), class: { mobile: this._isMobile }, onCancel: () => this.close() }, h("div", { key: '3566b957c7ddd6ac817a001280444c92a36433ad', onClick: (event) => event.stopPropagation() }, h("div", { key: '8a5cd1f5b9ad5324e6c7a06b2c0c1be1506f125e', id: 'announce-' + this.hostId, class: "visuallyhidden", "aria-live": "polite", "aria-atomic": "true" }, this.statusText), h("div", { key: '888ebb8537cfca0e848cdcf8550346e2705d9889', class: "input-top-wrapper" }, h("slot", { key: 'bc5e880cb6232f90955bc12d92971895c55bcfc4', name: "input-top" })), h("ul", { key: '3285e8593a88daf4de7bde8ca24940fe150eea5f', ref: (el) => (this._list = el), id: `${this.hostId}--results`, role: "listbox", "aria-expanded": this.isOpen.toString(), class: { active: this.isOpen, mobile: this._isMobile }, tabindex: "-1" }, this.renderedList), h("div", { key: '1a7079dbee8a8ae2a68673bdaf3312e1a6c843b5', class: {
916
+ return (h(Host, { key: 'b58ae0fe3d90bd8e263d984c8adfcd7ba69542b2' }, h("slot", { key: '90e86251b83b8de59558cfb60ac3df1cf2eb5854', name: "default" }), h("div", { key: '4b379e54ce1cb488198afc6840d51966141f9755', class: "dummy", ref: (el) => (this._dummyElement = el) }), h("dialog", { key: '6a1dd0a47539925e47795ab76d37f51501850531', tabindex: "-1", ref: (el) => (this._dialog = el), class: { mobile: this._isMobile }, onCancel: () => this.close() }, h("div", { key: 'eeb468dd141e5ac7a93c70b7cac582fdcd9709af', onClick: (event) => event.stopPropagation() }, h("div", { key: '11ac444328a818e98b37d4a6bdc65ad7d19b327d', id: 'announce-' + this.hostId, class: "visuallyhidden", "aria-live": "polite", "aria-atomic": "true" }, this.statusText), h("div", { key: '640c66fc88bb98cdb62dc3af65158efde0dbdf5e', class: "input-top-wrapper" }, h("slot", { key: '2e703c88def55ef621585e27195a214383a6c12f', name: "input-top" })), h("ul", { key: '65851489643b542324542640957607e3a32a0b0d', ref: (el) => (this._list = el), id: `${this.hostId}--results`, role: "listbox", "aria-expanded": this.isOpen.toString(), class: { active: this.isOpen, mobile: this._isMobile }, tabindex: "-1" }, this.renderedList), h("div", { key: 'f9ec6613e04c8e21edf653575bf7f5f3d6dd8e4a', class: {
917
917
  active: this._openedOnTop,
918
918
  'input-bottom-wrapper': true,
919
- } }, h("slot", { key: 'e9bd11ae8c5b84962f4c0365ad674af4a6e12651', name: "input-bottom" }))))));
919
+ } }, h("slot", { key: '2929820c1e7111840188de878064e894301996f4', name: "input-bottom" }))))));
920
920
  }
921
921
  get el() { return getElement(this); }
922
922
  static get watchers() { return {
@@ -1198,9 +1198,9 @@ const CInput = class {
1198
1198
  filled: !!this.value,
1199
1199
  [`c-input--${this.variant}`]: true,
1200
1200
  };
1201
- return (h(Host, { key: 'b6624ca672771b2895324a6b23c757448a3a8ffe', disabled: this.disabled }, h("div", { key: '292666c02f719b0e0ac9e016de1d26c8a12c1c3b', id: 'announce-' + this.inputId, class: "visuallyhidden", "aria-live": "polite", "aria-atomic": "true" }, this.statusText), h("div", { key: 'f6526adf723bfc8b6e8e70aff2f47f2a7e8739a1', class: containerClasses }, h("div", { key: '32f9f6a671e0de6bd1b34de2bb625fa6bc43bf97', class: "c-input__control" }, h("div", { key: 'e5284b34d8f4b1dadaac501cda49120447b31a64', class: "c-input__slot", onClick: () => this._onFocus() }, this._renderBorders(), h("div", { key: 'b60af14b1edff9dad7f627cbac6c4e23e541dab5', class: "c-input__field", style: {
1201
+ return (h(Host, { key: 'f8c8304a7e5f6a0877f25f2b7b05abaf1eb23179', disabled: this.disabled }, h("div", { key: 'b212f0ba4c1000bf0b2bfe1aca234805711f57ab', id: 'announce-' + this.inputId, class: "visuallyhidden", "aria-live": "polite", "aria-atomic": "true" }, this.statusText), h("div", { key: 'a1b0297c42dbf3e703c230295475f127a3a7e28d', class: containerClasses }, h("div", { key: '00264009b65a422c2bd15f43faf9d42663319fec', class: "c-input__control" }, h("div", { key: '547508cab3a12ed1bf6a08227e94d534f35d9ade', class: "c-input__slot", onClick: () => this._onFocus() }, this._renderBorders(), h("div", { key: '94972f5043b342ebe707b6e414312e8bfc755ef7', class: "c-input__field", style: {
1202
1202
  '--_c-input-label-position': this.preSlotWidth + 'px',
1203
- } }, h("slot", { key: '417dc75d7897a851eb599fb01e176c6962acddd3', name: "pre" }), this._renderLabel(), h("slot", { key: '2356ed382379fe4abae95758cc8c451d7f10d856' }))), this.variant === 'select' && h("slot", { key: 'b9513b7657c709ee3399577f7b46387cb1a72e49', name: "dropdown" }), !this.hideDetails && (h("c-message", { key: '852e7b9629c813bce34910f90dae007856b7700f', hint: this.hint, inputId: this.inputId, valid: this.valid, validation: this.validation }))))));
1203
+ } }, h("slot", { key: 'ec60946cb3fca05831d61f26884a17a6608e2cb1', name: "pre" }), this._renderLabel(), h("slot", { key: '8444580d01b12ccf10f1c7adec7dc22dab33b19f' }))), this.variant === 'select' && h("slot", { key: '5617c313953ec9a336ef09635e916ee7b75a1687', name: "dropdown" }), !this.hideDetails && (h("c-message", { key: '3958358864da3d8d858d45c2f63ac7dbbb53f654', hint: this.hint, inputId: this.inputId, valid: this.valid, validation: this.validation }))))));
1204
1204
  }
1205
1205
  get el() { return getElement(this); }
1206
1206
  static get watchers() { return {
@@ -1351,6 +1351,7 @@ const COtpInput = class {
1351
1351
  this.internals = hostRef.$hostElement$.attachInternals();
1352
1352
  hostRef.$hostElement$["s-ei"] = this.internals;
1353
1353
  }
1354
+ this.hasAutofocus = false;
1354
1355
  this.hideDetails = false;
1355
1356
  this.hint = '';
1356
1357
  this.length = 6;
@@ -1472,7 +1473,7 @@ const COtpInput = class {
1472
1473
  this.internals.setFormValue(value);
1473
1474
  }
1474
1475
  _renderInput(index) {
1475
- return (h("input", { id: `${this.id}--input-${index + 1}`, ref: (el) => (this._inputs[index] = el), "aria-label": `Enter code - digit number - ${index + 1} of ${this.length}`, type: "tel", maxlength: "1", onFocus: () => this._onFocus(index), onInput: (event) => this._onInput(event), onKeyDown: (event) => this._onKeyDown(event), onPaste: (event) => index === 0 && this._onPaste(event) }));
1476
+ return (h("input", { id: `${this.id}--input-${index + 1}`, ref: (el) => (this._inputs[index] = el), "aria-label": `Enter code - digit number - ${index + 1} of ${this.length}`, type: "tel", maxlength: "1", autofocus: this.hasAutofocus && index === 0, onFocus: () => this._onFocus(index), onInput: (event) => this._onInput(event), onKeyDown: (event) => this._onKeyDown(event), onPaste: (event) => index === 0 && this._onPaste(event) }));
1476
1477
  }
1477
1478
  componentWillLoad() {
1478
1479
  COtpInput._uniqueId += 1;
@@ -1486,9 +1487,9 @@ const COtpInput = class {
1486
1487
  'c-otp-input': true,
1487
1488
  'c-otp-input--hide-details': this.hideDetails,
1488
1489
  };
1489
- return (h(Host, { key: 'c8a77d8b1eb8abf05ad1b0f0964a3cca5a9545c4', id: this.id, style: { '--_c-otp-input-count': this.length.toString() }, class: { error: !this.valid } }, h("div", { key: 'a235bd878dd4005b16d077bf7b00282a14965843', id: 'announce-' + this.id, class: "visuallyhidden", "aria-live": "polite", "aria-atomic": "true" }, this.statusText), h("div", { key: '9a5ca7da977a872c52921688b8008e0ac3402e4e', class: classes }, new Array(this.length)
1490
+ return (h(Host, { key: '667f455d92cfed29614a171844fffbddbdd095ac', id: this.id, style: { '--_c-otp-input-count': this.length.toString() }, class: { error: !this.valid } }, h("div", { key: '34bb64a4946079e47805559d8023426f4b318994', id: 'announce-' + this.id, class: "visuallyhidden", "aria-live": "polite", "aria-atomic": "true" }, this.statusText), h("div", { key: 'a16170f26b38296f58d276a0efb66139af80c193', class: classes }, new Array(this.length)
1490
1491
  .fill(0)
1491
- .map((_, index) => this._renderInput(index)), h("c-message", { key: '3ace42251418e57e94e121ee7d1df8a9ff8ffc70', hint: this.hint, inputId: this.elementId, valid: this.valid, validation: this.validation }))));
1492
+ .map((_, index) => this._renderInput(index)), h("c-message", { key: 'ae559a3af5bc1b935f2d612d876434673ee2c77f', hint: this.hint, inputId: this.elementId, valid: this.valid, validation: this.validation }))));
1492
1493
  }
1493
1494
  static get formAssociated() { return true; }
1494
1495
  static get watchers() { return {
@@ -1643,7 +1644,7 @@ const CRadioGroup = class {
1643
1644
  'c-radio-group--inline': this.inline,
1644
1645
  'c-radio-group--error': !this.valid,
1645
1646
  };
1646
- return (h("div", { key: 'b9307dcda1f9a764107ec9041d485bdf6f4e25f1', class: wrapperClasses, role: "radiogroup", "aria-labelledby": "c-radio-group__label" }, (!!this.label || slotHasContent) && (h("label", { key: '915a272107a61a8aa44e2575f2da3fff65514fba', class: "c-radio-group__label" }, !!this.label && this.label, h("slot", { key: 'c434d15ddc77453ae6e663dee6a45991a4a53e8a', onSlotchange: this._handleSlotChange }), this.required && h("span", { key: '90958839a85e457db8596a7b283880a04fda5994', class: "required" }, "\u00A0*"))), h("div", { key: '9967403ca3254499104d35df5b42879ed7cf2f9e', class: "c-radio-group__items" }, this.items.map((item, index) => this._getRadioButton(item, index))), !this.hideDetails && (h("c-message", { key: '05055978230c1f51732bafef0c98a93669542957', hint: this.hint, inputId: this._id, valid: this.valid, validation: this.validation }))));
1647
+ return (h("div", { key: '76d6e3dfc23cad82e1433f013224fb53cf73e135', class: wrapperClasses, role: "radiogroup", "aria-labelledby": "c-radio-group__label" }, (!!this.label || slotHasContent) && (h("label", { key: '98c0741b64d70823cb6f289e26e5563a299ffe50', class: "c-radio-group__label" }, !!this.label && this.label, h("slot", { key: 'df39b5c2db389320642e537268726deb63a04d28', onSlotchange: this._handleSlotChange }), this.required && h("span", { key: '84702ed228ddac533b049d3177ea7d6befdc0584', class: "required" }, "\u00A0*"))), h("div", { key: '26de4abc56e6b046746e5fc16d8dd87300423f84', class: "c-radio-group__items" }, this.items.map((item, index) => this._getRadioButton(item, index))), !this.hideDetails && (h("c-message", { key: 'e773aa806a21c5ff2800b5ac7360ce1eb7f53cd0', hint: this.hint, inputId: this._id, valid: this.valid, validation: this.validation }))));
1647
1648
  }
1648
1649
  static get formAssociated() { return true; }
1649
1650
  get el() { return getElement(this); }
@@ -2014,12 +2015,12 @@ const CSelect = class {
2014
2015
  }
2015
2016
  render() {
2016
2017
  const itemType = this.optionElementsExist ? 'option' : 'item';
2017
- return (h(Host, { key: 'f73f4248afc6f000880238ebf86034ebfae65839' }, h("c-dropdown", { key: 'edb3aeb8658f17605e66197bc3bfbfec633842f4', ref: (el) => (this._dropdownElement = el), id: `${this._id}-dropdown`, index: this.currentIndex, "items-per-page": this.itemsPerPage, "dropdown-item-type": itemType, items: this._items, parent: this.el, type: "select" }, h("c-input", { key: '2704b7f00ac4e6d94ef1dcafb6746a61c7db77f0', slot: "default", ref: (el) => (this._cInputElement = el), active: this.dropdownVisible, disabled: this.disabled, "hide-details": this.hideDetails, hint: this.hint, id: this.hostId, "input-id": this._inputId, label: this.label, name: this.name, placeholder: this.placeholder, required: this.required, shadow: this.shadow, valid: this.valid, validate: this.validate, "validate-on-blur": this.validateOnBlur, validation: this.validation, value: this.value, variant: "select", onClick: () => !this.disabled && this._dropdownElement.open() }, h("slot", { key: 'bb065adf9605506f6e5c0ecad1fc9dac4e9fd431', name: "pre", slot: "pre" }), h("div", { key: '617b97cf925a23b884c840874312d722bea7ed82', class: "c-input__content" }, this._renderInputElement(), this.loading && this._renderLoader(), !this.loading &&
2018
+ return (h(Host, { key: '9bc83df1678ea67de11c256f76f56eb48470da46' }, h("c-dropdown", { key: 'a0588bda28ba00f62b2d7d328465930c4b5c72d1', ref: (el) => (this._dropdownElement = el), id: `${this._id}-dropdown`, index: this.currentIndex, "items-per-page": this.itemsPerPage, "dropdown-item-type": itemType, items: this._items, parent: this.el, type: "select" }, h("c-input", { key: '655330cc6b4f77573a8bad7a4cb62e1b4cb48f95', slot: "default", ref: (el) => (this._cInputElement = el), active: this.dropdownVisible, disabled: this.disabled, "hide-details": this.hideDetails, hint: this.hint, id: this.hostId, "input-id": this._inputId, label: this.label, name: this.name, placeholder: this.placeholder, required: this.required, shadow: this.shadow, valid: this.valid, validate: this.validate, "validate-on-blur": this.validateOnBlur, validation: this.validation, value: this.value, variant: "select", onClick: () => !this.disabled && this._dropdownElement.open() }, h("slot", { key: '030b0dbf8bc3ac77a26e001aef455c6dd5e673bc', name: "pre", slot: "pre" }), h("div", { key: 'f466d49c3e689bb2756649b070f42a0bef5c37a4', class: "c-input__content" }, this._renderInputElement(), this.loading && this._renderLoader(), !this.loading &&
2018
2019
  this.value &&
2019
2020
  this.clearable &&
2020
2021
  this._renderReset(), !this.loading &&
2021
2022
  (!this.value || !this.clearable) &&
2022
- this._renderChevron(), h("slot", { key: '46ea937c8ec1f4f5cd6600ecef802e350578b7e9', onSlotchange: () => this._onSlotChange() })), h("slot", { key: '68c8c1de215cf32088d7d83a82d3b014614c5387', name: "post", slot: "post" })))));
2023
+ this._renderChevron(), h("slot", { key: '7aabcdbe7c9040da0432b2a3c04405d20d54eb16', onSlotchange: () => this._onSlotChange() })), h("slot", { key: 'a540b11f410c55f0cd6dfa75947356b10e7f6253', name: "post", slot: "post" })))));
2023
2024
  }
2024
2025
  static get formAssociated() { return true; }
2025
2026
  get el() { return getElement(this); }
@@ -2356,7 +2357,7 @@ const CSwitch = class {
2356
2357
  'c-switch__slider--disabled': !!this.hostDisabled,
2357
2358
  'c-switch__slider--loading': !!this.loading,
2358
2359
  };
2359
- return (h("label", { key: '158201987e2b1ceb2e2a37d40855a1ee81f1f913', class: classes, htmlFor: this.hostId }, h("div", { key: '5b0da0c8968d8619945ac5940f4487f31c707dcc', class: "c-switch__input" }, h("input", { key: '6b4d0e9d2bd48a324b94e5aac5519f7f33c83b59', id: this.hostId, "aria-checked": this.checked.toString(), type: "checkbox", role: "switch", disabled: this.hostDisabled, checked: this.checked ? true : undefined, onChange: () => this._toggleState() }), h("span", { key: '0efc9e37f2dcdff078190cbc63f0d63239caec1a', class: sliderClasses }, h("c-spinner", { key: '0876dde5277abe4513e231903226d20e5cde09a4', size: 14, width: 2, color: "#fff" }))), this.hasLabel ? (h("div", { class: "c-switch__label" }, h("slot", null), this.required && h("span", { class: "required" }, "\u00A0*"))) : null));
2360
+ return (h("label", { key: 'bb0e1127380905e000dd9308fb2e1db1ef1eb769', class: classes, htmlFor: this.hostId }, h("div", { key: 'd1bd4e59d70d7178c29fc56eefa2056f590116cc', class: "c-switch__input" }, h("input", { key: 'c25aa86f6d6dd975c92628a96991a0ce43a80d0d', id: this.hostId, "aria-checked": this.checked.toString(), type: "checkbox", role: "switch", disabled: this.hostDisabled, checked: this.checked ? true : undefined, onChange: () => this._toggleState() }), h("span", { key: '0be767406ea95b4bf265affd5aacd12c23dd1883', class: sliderClasses }, h("c-spinner", { key: '27e38878935c667e009c83b80870bf95d9f9c9cd', size: 14, width: 2, color: "#fff" }))), this.hasLabel ? (h("div", { class: "c-switch__label" }, h("slot", null), this.required && h("span", { class: "required" }, "\u00A0*"))) : null));
2360
2361
  }
2361
2362
  static get formAssociated() { return true; }
2362
2363
  get host() { return getElement(this); }
@@ -2534,7 +2535,7 @@ const CTextField = class {
2534
2535
  return (h("svg", { class: classes, viewBox: "0 0 24 24", onClick: this._togglePasswordVisibility }, h("path", { d: this.passwordIcon })));
2535
2536
  }
2536
2537
  render() {
2537
- return (h(Host, { key: '94acae2ed651abada766891dcf3fd4cffbc662f6' }, h("c-input", { key: '1191d7b80901b537424e2faeaa9f3106d4232c61', autofocus: this.automaticFocus, disabled: this.disabled, "hide-details": this.hideDetails, hint: this.hint, id: this.hostId, "input-id": this._inputId, label: this.label, name: this.name, placeholder: this.placeholder, readonly: this.readonly, required: this.required, rows: this.rows, shadow: this.shadow, type: this.type, valid: this.valid, validate: this.validate, "validate-on-blur": this.validateOnBlur, validation: this.validation, value: this.value }, h("slot", { key: '5ce4fd49467b80ba7c92791ada92c8537e033f6d', name: "pre", slot: "pre" }), this._renderInputElement(), this._renderPasswordToggle(), this._renderDateToggle(), h("slot", { key: '5540ce57f5b1248c35f63602ba59f7c34e185476', name: "post" }))));
2538
+ return (h(Host, { key: '394c89bca0bc12e2e32aa6083fa1400ff547868a' }, h("c-input", { key: '4e256c06a911dd3e4713e3e488eb44234338a46b', autofocus: this.automaticFocus, disabled: this.disabled, "hide-details": this.hideDetails, hint: this.hint, id: this.hostId, "input-id": this._inputId, label: this.label, name: this.name, placeholder: this.placeholder, readonly: this.readonly, required: this.required, rows: this.rows, shadow: this.shadow, type: this.type, valid: this.valid, validate: this.validate, "validate-on-blur": this.validateOnBlur, validation: this.validation, value: this.value }, h("slot", { key: 'f07c1c4ee4d4281c29d6e2313318c6749e09095b', name: "pre", slot: "pre" }), this._renderInputElement(), this._renderPasswordToggle(), this._renderDateToggle(), h("slot", { key: '0ffc4fd22f26234c4b624ec459d373ca669b430d', name: "post" }))));
2538
2539
  }
2539
2540
  static get formAssociated() { return true; }
2540
2541
  get hiddenEl() { return getElement(this); }