@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
@@ -261,7 +261,7 @@ const CAutocomplete = class {
261
261
  }
262
262
  render() {
263
263
  const itemType = this.optionElementsExist ? 'option' : 'item';
264
- return (index.h(index.Host, { key: '4e964e785cc57d4a4018f727d872e8caa242af88' }, index.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) }, index.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" }, index.h("slot", { key: 'c95ecb16d1e2cbc3a3671739625fba3f13eaa3a2', name: "pre", slot: "pre" }), index.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(), index.h("slot", { key: '6a80b3856532fde8e946f66dc3cf058b8e8a4da2', onSlotchange: () => this._handleSlotChange() })), index.h("slot", { key: '695248ad48ab15409fdd861881fdf714b6b10c24', name: "post", slot: "post" })))));
264
+ return (index.h(index.Host, { key: '78ffcfd591a16d2991b1517d0500edac131b31e4' }, index.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) }, index.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" }, index.h("slot", { key: '6bc336aa7167ffb104e242db04e4a873c8d43b20', name: "pre", slot: "pre" }), index.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(), index.h("slot", { key: '994932ecf1ee214b8d96c996a268a34682a8a2bc', onSlotchange: () => this._handleSlotChange() })), index.h("slot", { key: '2e967acc2e86985103fb4ee48ef4a5ca78d91c8f', name: "post", slot: "post" })))));
265
265
  }
266
266
  static get formAssociated() { return true; }
267
267
  get el() { return index.getElement(this); }
@@ -413,7 +413,7 @@ const CButton = class {
413
413
  default: 24,
414
414
  large: 28,
415
415
  };
416
- return (index.h(index.Host, Object.assign({ key: '7f77ac07c94062c486b38caf086e3f892451c801', class: hostClasses }, hostAttributes), index.h(Tag, Object.assign({ key: '37a2304333edb9d3f41edaebc89c5bb1eb0ca680' }, attributes, linkAttributes), index.h("div", { key: '9d1afeb3f859959cc0e54486c19de9e88047ca16', class: contentClasses, ref: (el) => (this._container = el) }, index.h("div", { key: '4650eaf1d1b7dbf17c69f04ead530ba4c22afd5b', class: innerClasses }, this.loading && (index.h("div", { key: '54d911e3704befb2b6ca22178ad2e7138c603319', class: "c-button__loader" }, index.h("c-spinner", { key: 'e5441cb69c533feca29bfaa5c9f88e77f9ab0ebe', color: "var(--_c-button-loader-color)", size: spinnerSizes[this.size] }))), index.h("slot", { key: '0627278d9d5273a172736d54e1b7a920c0f7869e' })), this._containerhasDescriptionSlot && (index.h("div", { key: '3c8285d6f0569741a0ce6b69f4ee3b485c792bcb', class: descriptionSlotClasses }, index.h("slot", { key: '3a97d707d8b3e4614fdd499422eb271eb7f00675', name: "description" })))), index.h("c-ripple", { key: 'e7bfc00178c33e522ead44c13e45754f2deab22f', ref: (el) => (this._rippleElement = el) }))));
416
+ return (index.h(index.Host, Object.assign({ key: '1e7fd3d5ed864159709a2e34ec23fa62830e84b8', class: hostClasses }, hostAttributes), index.h(Tag, Object.assign({ key: '372d34c304df775577e9165ae24b88f299a38d2c' }, attributes, linkAttributes), index.h("div", { key: '3ab7cc2472bda14f499a520c4dd53a0543ead5ba', class: contentClasses, ref: (el) => (this._container = el) }, index.h("div", { key: '929fbd77601b9f58d7d0002e4213a50ae495dfd0', class: innerClasses }, this.loading && (index.h("div", { key: '90e97a37732c2903b718c11439232f563294eb7d', class: "c-button__loader" }, index.h("c-spinner", { key: '277ee152de7e3c61891c52ee51f771f85df0a5ed', color: "var(--_c-button-loader-color)", size: spinnerSizes[this.size] }))), index.h("slot", { key: '7b6a4797d7bd515f8171b8d83a3c3a5b30c3be81' })), this._containerhasDescriptionSlot && (index.h("div", { key: '479ed7791480a8ac29864b53cad7db65826eba3f', class: descriptionSlotClasses }, index.h("slot", { key: '634af8d8b67366d3e28f9eefd961c5cc68d1b34c', name: "description" })))), index.h("c-ripple", { key: '670f5e91b610d7e7d19684a725cfec20d0537eec', ref: (el) => (this._rippleElement = el) }))));
417
417
  }
418
418
  get hostElement() { return index.getElement(this); }
419
419
  };
@@ -607,7 +607,7 @@ const CCheckbox = class {
607
607
  'c-checkbox__label--indeterminate': this.indeterminate,
608
608
  };
609
609
  const slotHasContent = !!this.el.childNodes.length;
610
- return (index.h(index.Host, { key: '37a29669106062862504ac3a7ba3136b647dc782' }, index.h("div", { key: '57f94dfa9e4dc4824c636b83078cafa07ddb7e57', class: wrapperClasses }, index.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) })), index.h("label", { key: '13018b4864a12f1feb2c581ad36f1d49aedc5187', class: labelClasses, htmlFor: "checkbox" }, index.h("div", { key: 'cf55a92618d6465b0a43daa630eeb78b25f22bb9', class: "ripple", ref: (el) => (this._container = el) }, index.h("svg", { key: '9f5340efb2b322a088c1c40fc631b87bba0c5c2e', viewBox: "0 0 100 100" }, !this.indeterminate && this.checked && (index.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 && (index.h("path", { key: 'e3e052055f0af88db6c6ceefed4ec5e26d693a4f', class: "path", d: "M20 56 h60 v-8 h-60 z" }))), index.h("c-ripple", { key: '1a7b5ae4bb1585a9234c9935d2b2909ac2a360c6', ref: (el) => (this._rippleElement = el) })), (!!this.label || slotHasContent) && (index.h("div", { key: 'b6c36d355ddbe3e720433b974aeab194782ba0df', class: "c-checkbox__label-content" }, !!this.label ? this.label : index.h("slot", null), this.required && index.h("span", { key: '788a37acbe1c8856c513e4ebbcebf4ed6288f14c', class: "required" }, "\u00A0*"))))), !this.hideDetails && (index.h("c-message", { key: 'd35b6c31b8381d265d3b0370ae4defc22fbbe4d3', hint: this.hint, inputId: this._id, valid: this.valid, validation: this.validation }))));
610
+ return (index.h(index.Host, { key: 'e39e3e681c8b1267e58182872f704cb048e14daa' }, index.h("div", { key: '83a582b3231bfafc6f3deabe3b5cad87c1dac99c', class: wrapperClasses }, index.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) })), index.h("label", { key: 'ef2eb908f56cab3de39a53270a95cea892db99ec', class: labelClasses, htmlFor: "checkbox" }, index.h("div", { key: 'f260766abb707826ac5498301a2966d6f714c66f', class: "ripple", ref: (el) => (this._container = el) }, index.h("svg", { key: '8d43f917054de11772dd246871947a2291086d4a', viewBox: "0 0 100 100" }, !this.indeterminate && this.checked && (index.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 && (index.h("path", { key: 'd88bb390971e37d265a2ac5676cf890ebca09729', class: "path", d: "M20 56 h60 v-8 h-60 z" }))), index.h("c-ripple", { key: '67101de46a7627092f9280756fe8b310a95e2635', ref: (el) => (this._rippleElement = el) })), (!!this.label || slotHasContent) && (index.h("div", { key: '186fa5f1b2aeb8750a72e4be36c8182b1fe8b903', class: "c-checkbox__label-content" }, !!this.label ? this.label : index.h("slot", null), this.required && index.h("span", { key: '6b9f54993ec9bcc98780bf36401ce6aaf887e78e', class: "required" }, "\u00A0*"))))), !this.hideDetails && (index.h("c-message", { key: '1a73cca7a518fcd65370f67b09ba6ae257e0eb15', hint: this.hint, inputId: this._id, valid: this.valid, validation: this.validation }))));
611
611
  }
612
612
  static get formAssociated() { return true; }
613
613
  get el() { return index.getElement(this); }
@@ -915,10 +915,10 @@ const CDropdown = class {
915
915
  this._dialog.style.maxHeight = 42 * (this.itemsPerPage + 0.5) + 60 + 'px';
916
916
  this._list.style.maxHeight = 42 * (this.itemsPerPage + 0.5) + 'px';
917
917
  }
918
- return (index.h(index.Host, { key: '92df10119e813e084e34d04b430d64e7bbf027ab' }, index.h("slot", { key: '57c0cc3863d1d898d0653418bc931e22c75322b2', name: "default" }), index.h("div", { key: 'c786bd8c35a6230a1274d68067be65b9f633f844', class: "dummy", ref: (el) => (this._dummyElement = el) }), index.h("dialog", { key: '4d0e6173342a3875b9f891af1b8997598b5865ab', tabindex: "-1", ref: (el) => (this._dialog = el), class: { mobile: this._isMobile }, onCancel: () => this.close() }, index.h("div", { key: '3566b957c7ddd6ac817a001280444c92a36433ad', onClick: (event) => event.stopPropagation() }, index.h("div", { key: '8a5cd1f5b9ad5324e6c7a06b2c0c1be1506f125e', id: 'announce-' + this.hostId, class: "visuallyhidden", "aria-live": "polite", "aria-atomic": "true" }, this.statusText), index.h("div", { key: '888ebb8537cfca0e848cdcf8550346e2705d9889', class: "input-top-wrapper" }, index.h("slot", { key: 'bc5e880cb6232f90955bc12d92971895c55bcfc4', name: "input-top" })), index.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), index.h("div", { key: '1a7079dbee8a8ae2a68673bdaf3312e1a6c843b5', class: {
918
+ return (index.h(index.Host, { key: 'b58ae0fe3d90bd8e263d984c8adfcd7ba69542b2' }, index.h("slot", { key: '90e86251b83b8de59558cfb60ac3df1cf2eb5854', name: "default" }), index.h("div", { key: '4b379e54ce1cb488198afc6840d51966141f9755', class: "dummy", ref: (el) => (this._dummyElement = el) }), index.h("dialog", { key: '6a1dd0a47539925e47795ab76d37f51501850531', tabindex: "-1", ref: (el) => (this._dialog = el), class: { mobile: this._isMobile }, onCancel: () => this.close() }, index.h("div", { key: 'eeb468dd141e5ac7a93c70b7cac582fdcd9709af', onClick: (event) => event.stopPropagation() }, index.h("div", { key: '11ac444328a818e98b37d4a6bdc65ad7d19b327d', id: 'announce-' + this.hostId, class: "visuallyhidden", "aria-live": "polite", "aria-atomic": "true" }, this.statusText), index.h("div", { key: '640c66fc88bb98cdb62dc3af65158efde0dbdf5e', class: "input-top-wrapper" }, index.h("slot", { key: '2e703c88def55ef621585e27195a214383a6c12f', name: "input-top" })), index.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), index.h("div", { key: 'f9ec6613e04c8e21edf653575bf7f5f3d6dd8e4a', class: {
919
919
  active: this._openedOnTop,
920
920
  'input-bottom-wrapper': true,
921
- } }, index.h("slot", { key: 'e9bd11ae8c5b84962f4c0365ad674af4a6e12651', name: "input-bottom" }))))));
921
+ } }, index.h("slot", { key: '2929820c1e7111840188de878064e894301996f4', name: "input-bottom" }))))));
922
922
  }
923
923
  get el() { return index.getElement(this); }
924
924
  static get watchers() { return {
@@ -1200,9 +1200,9 @@ const CInput = class {
1200
1200
  filled: !!this.value,
1201
1201
  [`c-input--${this.variant}`]: true,
1202
1202
  };
1203
- return (index.h(index.Host, { key: 'b6624ca672771b2895324a6b23c757448a3a8ffe', disabled: this.disabled }, index.h("div", { key: '292666c02f719b0e0ac9e016de1d26c8a12c1c3b', id: 'announce-' + this.inputId, class: "visuallyhidden", "aria-live": "polite", "aria-atomic": "true" }, this.statusText), index.h("div", { key: 'f6526adf723bfc8b6e8e70aff2f47f2a7e8739a1', class: containerClasses }, index.h("div", { key: '32f9f6a671e0de6bd1b34de2bb625fa6bc43bf97', class: "c-input__control" }, index.h("div", { key: 'e5284b34d8f4b1dadaac501cda49120447b31a64', class: "c-input__slot", onClick: () => this._onFocus() }, this._renderBorders(), index.h("div", { key: 'b60af14b1edff9dad7f627cbac6c4e23e541dab5', class: "c-input__field", style: {
1203
+ return (index.h(index.Host, { key: 'f8c8304a7e5f6a0877f25f2b7b05abaf1eb23179', disabled: this.disabled }, index.h("div", { key: 'b212f0ba4c1000bf0b2bfe1aca234805711f57ab', id: 'announce-' + this.inputId, class: "visuallyhidden", "aria-live": "polite", "aria-atomic": "true" }, this.statusText), index.h("div", { key: 'a1b0297c42dbf3e703c230295475f127a3a7e28d', class: containerClasses }, index.h("div", { key: '00264009b65a422c2bd15f43faf9d42663319fec', class: "c-input__control" }, index.h("div", { key: '547508cab3a12ed1bf6a08227e94d534f35d9ade', class: "c-input__slot", onClick: () => this._onFocus() }, this._renderBorders(), index.h("div", { key: '94972f5043b342ebe707b6e414312e8bfc755ef7', class: "c-input__field", style: {
1204
1204
  '--_c-input-label-position': this.preSlotWidth + 'px',
1205
- } }, index.h("slot", { key: '417dc75d7897a851eb599fb01e176c6962acddd3', name: "pre" }), this._renderLabel(), index.h("slot", { key: '2356ed382379fe4abae95758cc8c451d7f10d856' }))), this.variant === 'select' && index.h("slot", { key: 'b9513b7657c709ee3399577f7b46387cb1a72e49', name: "dropdown" }), !this.hideDetails && (index.h("c-message", { key: '852e7b9629c813bce34910f90dae007856b7700f', hint: this.hint, inputId: this.inputId, valid: this.valid, validation: this.validation }))))));
1205
+ } }, index.h("slot", { key: 'ec60946cb3fca05831d61f26884a17a6608e2cb1', name: "pre" }), this._renderLabel(), index.h("slot", { key: '8444580d01b12ccf10f1c7adec7dc22dab33b19f' }))), this.variant === 'select' && index.h("slot", { key: '5617c313953ec9a336ef09635e916ee7b75a1687', name: "dropdown" }), !this.hideDetails && (index.h("c-message", { key: '3958358864da3d8d858d45c2f63ac7dbbb53f654', hint: this.hint, inputId: this.inputId, valid: this.valid, validation: this.validation }))))));
1206
1206
  }
1207
1207
  get el() { return index.getElement(this); }
1208
1208
  static get watchers() { return {
@@ -1353,6 +1353,7 @@ const COtpInput = class {
1353
1353
  this.internals = hostRef.$hostElement$.attachInternals();
1354
1354
  hostRef.$hostElement$["s-ei"] = this.internals;
1355
1355
  }
1356
+ this.hasAutofocus = false;
1356
1357
  this.hideDetails = false;
1357
1358
  this.hint = '';
1358
1359
  this.length = 6;
@@ -1474,7 +1475,7 @@ const COtpInput = class {
1474
1475
  this.internals.setFormValue(value);
1475
1476
  }
1476
1477
  _renderInput(index$1) {
1477
- return (index.h("input", { id: `${this.id}--input-${index$1 + 1}`, ref: (el) => (this._inputs[index$1] = el), "aria-label": `Enter code - digit number - ${index$1 + 1} of ${this.length}`, type: "tel", maxlength: "1", onFocus: () => this._onFocus(index$1), onInput: (event) => this._onInput(event), onKeyDown: (event) => this._onKeyDown(event), onPaste: (event) => index$1 === 0 && this._onPaste(event) }));
1478
+ return (index.h("input", { id: `${this.id}--input-${index$1 + 1}`, ref: (el) => (this._inputs[index$1] = el), "aria-label": `Enter code - digit number - ${index$1 + 1} of ${this.length}`, type: "tel", maxlength: "1", autofocus: this.hasAutofocus && index$1 === 0, onFocus: () => this._onFocus(index$1), onInput: (event) => this._onInput(event), onKeyDown: (event) => this._onKeyDown(event), onPaste: (event) => index$1 === 0 && this._onPaste(event) }));
1478
1479
  }
1479
1480
  componentWillLoad() {
1480
1481
  COtpInput._uniqueId += 1;
@@ -1488,9 +1489,9 @@ const COtpInput = class {
1488
1489
  'c-otp-input': true,
1489
1490
  'c-otp-input--hide-details': this.hideDetails,
1490
1491
  };
1491
- return (index.h(index.Host, { key: 'c8a77d8b1eb8abf05ad1b0f0964a3cca5a9545c4', id: this.id, style: { '--_c-otp-input-count': this.length.toString() }, class: { error: !this.valid } }, index.h("div", { key: 'a235bd878dd4005b16d077bf7b00282a14965843', id: 'announce-' + this.id, class: "visuallyhidden", "aria-live": "polite", "aria-atomic": "true" }, this.statusText), index.h("div", { key: '9a5ca7da977a872c52921688b8008e0ac3402e4e', class: classes }, new Array(this.length)
1492
+ return (index.h(index.Host, { key: '667f455d92cfed29614a171844fffbddbdd095ac', id: this.id, style: { '--_c-otp-input-count': this.length.toString() }, class: { error: !this.valid } }, index.h("div", { key: '34bb64a4946079e47805559d8023426f4b318994', id: 'announce-' + this.id, class: "visuallyhidden", "aria-live": "polite", "aria-atomic": "true" }, this.statusText), index.h("div", { key: 'a16170f26b38296f58d276a0efb66139af80c193', class: classes }, new Array(this.length)
1492
1493
  .fill(0)
1493
- .map((_, index) => this._renderInput(index)), index.h("c-message", { key: '3ace42251418e57e94e121ee7d1df8a9ff8ffc70', hint: this.hint, inputId: this.elementId, valid: this.valid, validation: this.validation }))));
1494
+ .map((_, index) => this._renderInput(index)), index.h("c-message", { key: 'ae559a3af5bc1b935f2d612d876434673ee2c77f', hint: this.hint, inputId: this.elementId, valid: this.valid, validation: this.validation }))));
1494
1495
  }
1495
1496
  static get formAssociated() { return true; }
1496
1497
  static get watchers() { return {
@@ -1645,7 +1646,7 @@ const CRadioGroup = class {
1645
1646
  'c-radio-group--inline': this.inline,
1646
1647
  'c-radio-group--error': !this.valid,
1647
1648
  };
1648
- return (index.h("div", { key: 'b9307dcda1f9a764107ec9041d485bdf6f4e25f1', class: wrapperClasses, role: "radiogroup", "aria-labelledby": "c-radio-group__label" }, (!!this.label || slotHasContent) && (index.h("label", { key: '915a272107a61a8aa44e2575f2da3fff65514fba', class: "c-radio-group__label" }, !!this.label && this.label, index.h("slot", { key: 'c434d15ddc77453ae6e663dee6a45991a4a53e8a', onSlotchange: this._handleSlotChange }), this.required && index.h("span", { key: '90958839a85e457db8596a7b283880a04fda5994', class: "required" }, "\u00A0*"))), index.h("div", { key: '9967403ca3254499104d35df5b42879ed7cf2f9e', class: "c-radio-group__items" }, this.items.map((item, index) => this._getRadioButton(item, index))), !this.hideDetails && (index.h("c-message", { key: '05055978230c1f51732bafef0c98a93669542957', hint: this.hint, inputId: this._id, valid: this.valid, validation: this.validation }))));
1649
+ return (index.h("div", { key: '76d6e3dfc23cad82e1433f013224fb53cf73e135', class: wrapperClasses, role: "radiogroup", "aria-labelledby": "c-radio-group__label" }, (!!this.label || slotHasContent) && (index.h("label", { key: '98c0741b64d70823cb6f289e26e5563a299ffe50', class: "c-radio-group__label" }, !!this.label && this.label, index.h("slot", { key: 'df39b5c2db389320642e537268726deb63a04d28', onSlotchange: this._handleSlotChange }), this.required && index.h("span", { key: '84702ed228ddac533b049d3177ea7d6befdc0584', class: "required" }, "\u00A0*"))), index.h("div", { key: '26de4abc56e6b046746e5fc16d8dd87300423f84', class: "c-radio-group__items" }, this.items.map((item, index) => this._getRadioButton(item, index))), !this.hideDetails && (index.h("c-message", { key: 'e773aa806a21c5ff2800b5ac7360ce1eb7f53cd0', hint: this.hint, inputId: this._id, valid: this.valid, validation: this.validation }))));
1649
1650
  }
1650
1651
  static get formAssociated() { return true; }
1651
1652
  get el() { return index.getElement(this); }
@@ -2016,12 +2017,12 @@ const CSelect = class {
2016
2017
  }
2017
2018
  render() {
2018
2019
  const itemType = this.optionElementsExist ? 'option' : 'item';
2019
- return (index.h(index.Host, { key: 'f73f4248afc6f000880238ebf86034ebfae65839' }, index.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" }, index.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() }, index.h("slot", { key: 'bb065adf9605506f6e5c0ecad1fc9dac4e9fd431', name: "pre", slot: "pre" }), index.h("div", { key: '617b97cf925a23b884c840874312d722bea7ed82', class: "c-input__content" }, this._renderInputElement(), this.loading && this._renderLoader(), !this.loading &&
2020
+ return (index.h(index.Host, { key: '9bc83df1678ea67de11c256f76f56eb48470da46' }, index.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" }, index.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() }, index.h("slot", { key: '030b0dbf8bc3ac77a26e001aef455c6dd5e673bc', name: "pre", slot: "pre" }), index.h("div", { key: 'f466d49c3e689bb2756649b070f42a0bef5c37a4', class: "c-input__content" }, this._renderInputElement(), this.loading && this._renderLoader(), !this.loading &&
2020
2021
  this.value &&
2021
2022
  this.clearable &&
2022
2023
  this._renderReset(), !this.loading &&
2023
2024
  (!this.value || !this.clearable) &&
2024
- this._renderChevron(), index.h("slot", { key: '46ea937c8ec1f4f5cd6600ecef802e350578b7e9', onSlotchange: () => this._onSlotChange() })), index.h("slot", { key: '68c8c1de215cf32088d7d83a82d3b014614c5387', name: "post", slot: "post" })))));
2025
+ this._renderChevron(), index.h("slot", { key: '7aabcdbe7c9040da0432b2a3c04405d20d54eb16', onSlotchange: () => this._onSlotChange() })), index.h("slot", { key: 'a540b11f410c55f0cd6dfa75947356b10e7f6253', name: "post", slot: "post" })))));
2025
2026
  }
2026
2027
  static get formAssociated() { return true; }
2027
2028
  get el() { return index.getElement(this); }
@@ -2358,7 +2359,7 @@ const CSwitch = class {
2358
2359
  'c-switch__slider--disabled': !!this.hostDisabled,
2359
2360
  'c-switch__slider--loading': !!this.loading,
2360
2361
  };
2361
- return (index.h("label", { key: '158201987e2b1ceb2e2a37d40855a1ee81f1f913', class: classes, htmlFor: this.hostId }, index.h("div", { key: '5b0da0c8968d8619945ac5940f4487f31c707dcc', class: "c-switch__input" }, index.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() }), index.h("span", { key: '0efc9e37f2dcdff078190cbc63f0d63239caec1a', class: sliderClasses }, index.h("c-spinner", { key: '0876dde5277abe4513e231903226d20e5cde09a4', size: 14, width: 2, color: "#fff" }))), this.hasLabel ? (index.h("div", { class: "c-switch__label" }, index.h("slot", null), this.required && index.h("span", { class: "required" }, "\u00A0*"))) : null));
2362
+ return (index.h("label", { key: 'bb0e1127380905e000dd9308fb2e1db1ef1eb769', class: classes, htmlFor: this.hostId }, index.h("div", { key: 'd1bd4e59d70d7178c29fc56eefa2056f590116cc', class: "c-switch__input" }, index.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() }), index.h("span", { key: '0be767406ea95b4bf265affd5aacd12c23dd1883', class: sliderClasses }, index.h("c-spinner", { key: '27e38878935c667e009c83b80870bf95d9f9c9cd', size: 14, width: 2, color: "#fff" }))), this.hasLabel ? (index.h("div", { class: "c-switch__label" }, index.h("slot", null), this.required && index.h("span", { class: "required" }, "\u00A0*"))) : null));
2362
2363
  }
2363
2364
  static get formAssociated() { return true; }
2364
2365
  get host() { return index.getElement(this); }
@@ -2536,7 +2537,7 @@ const CTextField = class {
2536
2537
  return (index.h("svg", { class: classes, viewBox: "0 0 24 24", onClick: this._togglePasswordVisibility }, index.h("path", { d: this.passwordIcon })));
2537
2538
  }
2538
2539
  render() {
2539
- return (index.h(index.Host, { key: '94acae2ed651abada766891dcf3fd4cffbc662f6' }, index.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 }, index.h("slot", { key: '5ce4fd49467b80ba7c92791ada92c8537e033f6d', name: "pre", slot: "pre" }), this._renderInputElement(), this._renderPasswordToggle(), this._renderDateToggle(), index.h("slot", { key: '5540ce57f5b1248c35f63602ba59f7c34e185476', name: "post" }))));
2540
+ return (index.h(index.Host, { key: '394c89bca0bc12e2e32aa6083fa1400ff547868a' }, index.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 }, index.h("slot", { key: 'f07c1c4ee4d4281c29d6e2313318c6749e09095b', name: "pre", slot: "pre" }), this._renderInputElement(), this._renderPasswordToggle(), this._renderDateToggle(), index.h("slot", { key: '0ffc4fd22f26234c4b624ec459d373ca669b430d', name: "post" }))));
2540
2541
  }
2541
2542
  static get formAssociated() { return true; }
2542
2543
  get hiddenEl() { return index.getElement(this); }