@ukic/web-components 3.21.0 → 3.22.0

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 (437) hide show
  1. package/dist/cjs/core.cjs.js +1 -1
  2. package/dist/cjs/{helpers-3a796e7a.js → helpers-81cd6930.js} +3 -16
  3. package/dist/cjs/helpers-81cd6930.js.map +1 -0
  4. package/dist/cjs/ic-accordion-group.cjs.entry.js +1 -1
  5. package/dist/cjs/ic-accordion.cjs.entry.js +1 -1
  6. package/dist/cjs/ic-action-chip.cjs.entry.js +7 -3
  7. package/dist/cjs/ic-action-chip.cjs.entry.js.map +1 -1
  8. package/dist/cjs/ic-alert.cjs.entry.js +1 -1
  9. package/dist/cjs/ic-back-to-top.cjs.entry.js +1 -1
  10. package/dist/cjs/ic-badge.cjs.entry.js +1 -1
  11. package/dist/cjs/ic-breadcrumb-group.cjs.entry.js +1 -1
  12. package/dist/cjs/ic-breadcrumb.cjs.entry.js +1 -1
  13. package/dist/cjs/ic-button_3.cjs.entry.js +1 -1
  14. package/dist/cjs/ic-button_3.cjs.entry.js.map +1 -1
  15. package/dist/cjs/ic-card-horizontal.cjs.entry.js +1 -1
  16. package/dist/cjs/ic-card-vertical.cjs.entry.js +1 -1
  17. package/dist/cjs/ic-checkbox-group.cjs.entry.js +1 -1
  18. package/dist/cjs/ic-checkbox.cjs.entry.js +5 -5
  19. package/dist/cjs/ic-checkbox.cjs.entry.js.map +1 -1
  20. package/dist/cjs/ic-chip.cjs.entry.js +7 -3
  21. package/dist/cjs/ic-chip.cjs.entry.js.map +1 -1
  22. package/dist/cjs/ic-classification-banner.cjs.entry.js +13 -5
  23. package/dist/cjs/ic-classification-banner.cjs.entry.js.map +1 -1
  24. package/dist/cjs/ic-data-row.cjs.entry.js +1 -1
  25. package/dist/cjs/ic-dialog.cjs.entry.js +1 -1
  26. package/dist/cjs/ic-divider.cjs.entry.js +1 -1
  27. package/dist/cjs/ic-empty-state.cjs.entry.js +1 -1
  28. package/dist/cjs/ic-footer-link-group.cjs.entry.js +1 -1
  29. package/dist/cjs/ic-footer-link.cjs.entry.js +1 -1
  30. package/dist/cjs/ic-footer.cjs.entry.js +1 -1
  31. package/dist/cjs/ic-hero.cjs.entry.js +1 -1
  32. package/dist/cjs/ic-horizontal-scroll.cjs.entry.js +1 -1
  33. package/dist/cjs/ic-input-component-container_3.cjs.entry.js +212 -80
  34. package/dist/cjs/ic-input-component-container_3.cjs.entry.js.map +1 -1
  35. package/dist/cjs/ic-input-label_2.cjs.entry.js +1 -1
  36. package/dist/cjs/ic-link.cjs.entry.js +1 -1
  37. package/dist/cjs/ic-menu-group.cjs.entry.js +1 -1
  38. package/dist/cjs/ic-menu-item.cjs.entry.js +1 -1
  39. package/dist/cjs/ic-navigation-button.cjs.entry.js +1 -1
  40. package/dist/cjs/ic-navigation-group.cjs.entry.js +1 -1
  41. package/dist/cjs/ic-navigation-group.cjs.entry.js.map +1 -1
  42. package/dist/cjs/ic-navigation-item.cjs.entry.js +1 -1
  43. package/dist/cjs/ic-navigation-menu.cjs.entry.js +1 -1
  44. package/dist/cjs/ic-page-header.cjs.entry.js +1 -1
  45. package/dist/cjs/ic-pagination-bar.cjs.entry.js +389 -0
  46. package/dist/cjs/ic-pagination-bar.cjs.entry.js.map +1 -0
  47. package/dist/cjs/ic-pagination-item.cjs.entry.js +1 -1
  48. package/dist/cjs/ic-pagination_3.cjs.entry.js +1412 -0
  49. package/dist/cjs/ic-pagination_3.cjs.entry.js.map +1 -0
  50. package/dist/cjs/ic-popover-menu.cjs.entry.js +5 -5
  51. package/dist/cjs/ic-radio-group.cjs.entry.js +1 -1
  52. package/dist/cjs/ic-radio-option.cjs.entry.js +1 -1
  53. package/dist/cjs/ic-search-bar.cjs.entry.js +11 -11
  54. package/dist/cjs/ic-search-bar.cjs.entry.js.map +1 -1
  55. package/dist/cjs/ic-section-container.cjs.entry.js +2 -2
  56. package/dist/cjs/ic-side-navigation.cjs.entry.js +18 -9
  57. package/dist/cjs/ic-side-navigation.cjs.entry.js.map +1 -1
  58. package/dist/cjs/ic-skeleton.cjs.entry.js +2 -2
  59. package/dist/cjs/ic-skip-link.cjs.entry.js +2 -2
  60. package/dist/cjs/ic-status-tag.cjs.entry.js +3 -3
  61. package/dist/cjs/ic-step.cjs.entry.js +14 -14
  62. package/dist/cjs/ic-stepper.cjs.entry.js +3 -3
  63. package/dist/cjs/ic-stepper.cjs.entry.js.map +1 -1
  64. package/dist/cjs/ic-switch.cjs.entry.js +5 -5
  65. package/dist/cjs/ic-tab-context.cjs.entry.js +1 -2
  66. package/dist/cjs/ic-tab-context.cjs.entry.js.map +1 -1
  67. package/dist/cjs/ic-tab-group.cjs.entry.js +3 -3
  68. package/dist/cjs/ic-tab-panel.cjs.entry.js +2 -2
  69. package/dist/cjs/ic-tab.cjs.entry.js +1 -1
  70. package/dist/cjs/ic-theme.cjs.entry.js +2 -2
  71. package/dist/cjs/ic-toast-region.cjs.entry.js +1 -1
  72. package/dist/cjs/ic-toast.cjs.entry.js +8 -7
  73. package/dist/cjs/ic-toast.cjs.entry.js.map +1 -1
  74. package/dist/cjs/ic-toggle-button-group.cjs.entry.js +3 -3
  75. package/dist/cjs/ic-toggle-button.cjs.entry.js +3 -3
  76. package/dist/cjs/ic-top-navigation.cjs.entry.js +1 -1
  77. package/dist/cjs/ic-typography.cjs.entry.js +1 -1
  78. package/dist/cjs/index-d337cd8a.js +12 -16
  79. package/dist/cjs/loader.cjs.js +1 -1
  80. package/dist/collection/collection-manifest.json +2 -1
  81. package/dist/collection/components/ic-action-chip/ic-action-chip.css +15 -2
  82. package/dist/collection/components/ic-action-chip/ic-action-chip.js +5 -1
  83. package/dist/collection/components/ic-action-chip/ic-action-chip.js.map +1 -1
  84. package/dist/collection/components/ic-checkbox/ic-checkbox.js +4 -5
  85. package/dist/collection/components/ic-checkbox/ic-checkbox.js.map +1 -1
  86. package/dist/collection/components/ic-chip/ic-chip.css +15 -3
  87. package/dist/collection/components/ic-chip/ic-chip.js +5 -1
  88. package/dist/collection/components/ic-chip/ic-chip.js.map +1 -1
  89. package/dist/collection/components/ic-classification-banner/ic-classification-banner.js +33 -5
  90. package/dist/collection/components/ic-classification-banner/ic-classification-banner.js.map +1 -1
  91. package/dist/collection/components/ic-classification-banner/ic-classification-banner.stories.js +32 -0
  92. package/dist/collection/components/ic-menu/ic-menu.css +6 -1
  93. package/dist/collection/components/ic-menu/ic-menu.js +184 -53
  94. package/dist/collection/components/ic-menu/ic-menu.js.map +1 -1
  95. package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.css +104 -0
  96. package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.js +895 -0
  97. package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.js.map +1 -0
  98. package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.stories.js +215 -0
  99. package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.types.js +2 -0
  100. package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.types.js.map +1 -0
  101. package/dist/collection/components/ic-popover-menu/ic-popover-menu.js +4 -4
  102. package/dist/collection/components/ic-search-bar/ic-search-bar.js +10 -11
  103. package/dist/collection/components/ic-search-bar/ic-search-bar.js.map +1 -1
  104. package/dist/collection/components/ic-section-container/ic-section-container.js +2 -2
  105. package/dist/collection/components/ic-select/ic-select.css +1 -2
  106. package/dist/collection/components/ic-select/ic-select.js +414 -589
  107. package/dist/collection/components/ic-select/ic-select.js.map +1 -1
  108. package/dist/collection/components/ic-select/ic-select.types.js +2 -0
  109. package/dist/collection/components/ic-select/ic-select.types.js.map +1 -0
  110. package/dist/collection/components/ic-select/ic-select_(searchable).stories.js +26 -21
  111. package/dist/collection/components/ic-side-navigation/ic-side-navigation.js +18 -9
  112. package/dist/collection/components/ic-side-navigation/ic-side-navigation.js.map +1 -1
  113. package/dist/collection/components/ic-skeleton/ic-skeleton.js +2 -2
  114. package/dist/collection/components/ic-skip-link/ic-skip-link.js +2 -2
  115. package/dist/collection/components/ic-status-tag/ic-status-tag.js +2 -2
  116. package/dist/collection/components/ic-step/ic-step.js +13 -13
  117. package/dist/collection/components/ic-stepper/ic-stepper.js +2 -2
  118. package/dist/collection/components/ic-stepper/ic-stepper.js.map +1 -1
  119. package/dist/collection/components/ic-switch/ic-switch.js +4 -4
  120. package/dist/collection/components/ic-tab-context/ic-tab-context.js +1 -2
  121. package/dist/collection/components/ic-tab-context/ic-tab-context.js.map +1 -1
  122. package/dist/collection/components/ic-tab-group/ic-tab-group.js +2 -2
  123. package/dist/collection/components/ic-tab-panel/ic-tab-panel.js +2 -2
  124. package/dist/collection/components/ic-theme/ic-theme.js +1 -1
  125. package/dist/collection/components/ic-toast/ic-toast.js +7 -6
  126. package/dist/collection/components/ic-toast/ic-toast.js.map +1 -1
  127. package/dist/collection/components/ic-toast-region/ic-toast-region.js +1 -1
  128. package/dist/collection/components/ic-toggle-button/ic-toggle-button.js +2 -2
  129. package/dist/collection/components/ic-toggle-button-group/ic-toggle-button-group.js +2 -2
  130. package/dist/collection/utils/helpers.js +2 -15
  131. package/dist/collection/utils/helpers.js.map +1 -1
  132. package/dist/components/helpers.js +3 -16
  133. package/dist/components/helpers.js.map +1 -1
  134. package/dist/components/ic-action-chip.js +6 -2
  135. package/dist/components/ic-action-chip.js.map +1 -1
  136. package/dist/components/ic-card-vertical.js.map +1 -1
  137. package/dist/components/ic-checkbox.js +4 -4
  138. package/dist/components/ic-checkbox.js.map +1 -1
  139. package/dist/components/ic-chip.js +6 -2
  140. package/dist/components/ic-chip.js.map +1 -1
  141. package/dist/components/ic-classification-banner.js +14 -5
  142. package/dist/components/ic-classification-banner.js.map +1 -1
  143. package/dist/components/ic-menu2.js +213 -79
  144. package/dist/components/ic-menu2.js.map +1 -1
  145. package/dist/components/ic-pagination-bar.d.ts +11 -0
  146. package/dist/components/ic-pagination-bar.js +523 -0
  147. package/dist/components/ic-pagination-bar.js.map +1 -0
  148. package/dist/components/ic-pagination.js +1 -375
  149. package/dist/components/ic-pagination.js.map +1 -1
  150. package/dist/{esm/ic-pagination.entry.js → components/ic-pagination2.js} +82 -11
  151. package/dist/components/ic-pagination2.js.map +1 -0
  152. package/dist/components/ic-popover-menu.js +4 -4
  153. package/dist/components/ic-popover-menu.js.map +1 -1
  154. package/dist/components/ic-radio-group.js.map +1 -1
  155. package/dist/components/ic-radio-option.js.map +1 -1
  156. package/dist/components/ic-search-bar.js +11 -11
  157. package/dist/components/ic-search-bar.js.map +1 -1
  158. package/dist/components/ic-section-container2.js +2 -2
  159. package/dist/components/ic-select.js +1 -994
  160. package/dist/components/ic-select.js.map +1 -1
  161. package/dist/components/ic-select2.js +804 -0
  162. package/dist/components/ic-select2.js.map +1 -0
  163. package/dist/components/ic-side-navigation.js +18 -9
  164. package/dist/components/ic-side-navigation.js.map +1 -1
  165. package/dist/components/ic-skeleton.js +2 -2
  166. package/dist/components/ic-skip-link.js +2 -2
  167. package/dist/components/ic-status-tag.js +2 -2
  168. package/dist/components/ic-step.js +13 -13
  169. package/dist/components/ic-stepper.js +2 -2
  170. package/dist/components/ic-stepper.js.map +1 -1
  171. package/dist/components/ic-switch.js +4 -4
  172. package/dist/components/ic-switch.js.map +1 -1
  173. package/dist/components/ic-tab-context.js +1 -2
  174. package/dist/components/ic-tab-context.js.map +1 -1
  175. package/dist/components/ic-tab-group.js +2 -2
  176. package/dist/components/ic-tab-panel.js +2 -2
  177. package/dist/components/ic-tab-panel.js.map +1 -1
  178. package/dist/components/ic-text-field.js +1 -528
  179. package/dist/components/ic-text-field.js.map +1 -1
  180. package/dist/{esm/ic-text-field.entry.js → components/ic-text-field2.js} +114 -11
  181. package/dist/components/ic-text-field2.js.map +1 -0
  182. package/dist/components/ic-theme.js +1 -1
  183. package/dist/components/ic-toast-region.js +1 -1
  184. package/dist/components/ic-toast.js +7 -6
  185. package/dist/components/ic-toast.js.map +1 -1
  186. package/dist/components/ic-toggle-button-group.js +2 -2
  187. package/dist/components/ic-toggle-button.js +2 -2
  188. package/dist/core/core.esm.js +1 -1
  189. package/dist/core/core.esm.js.map +1 -1
  190. package/dist/core/{p-0a24c536.entry.js → p-05fd2707.entry.js} +2 -2
  191. package/dist/core/{p-85e15d01.entry.js → p-09505807.entry.js} +2 -2
  192. package/dist/core/{p-96bc7d24.entry.js → p-09caf7ed.entry.js} +2 -2
  193. package/dist/core/p-09caf7ed.entry.js.map +1 -0
  194. package/dist/core/{p-9057a186.entry.js → p-0b728f50.entry.js} +2 -2
  195. package/dist/core/{p-9057a186.entry.js.map → p-0b728f50.entry.js.map} +1 -1
  196. package/dist/core/p-0fb7f915.entry.js +2 -0
  197. package/dist/core/p-0fb7f915.entry.js.map +1 -0
  198. package/dist/core/{p-41a5da12.entry.js → p-1b81ec88.entry.js} +2 -2
  199. package/dist/core/{p-99951365.entry.js → p-2691cc80.entry.js} +2 -2
  200. package/dist/core/{p-94916588.entry.js → p-2a124daf.entry.js} +2 -2
  201. package/dist/core/{p-04c77b2d.entry.js → p-2b87c592.entry.js} +2 -2
  202. package/dist/core/{p-4aa56990.entry.js → p-2bd80913.entry.js} +2 -2
  203. package/dist/core/{p-aed1c7e7.entry.js → p-347cc084.entry.js} +2 -2
  204. package/dist/core/p-393af2bc.entry.js +2 -0
  205. package/dist/core/p-393af2bc.entry.js.map +1 -0
  206. package/dist/core/{p-a3dea729.entry.js → p-3aed13ba.entry.js} +2 -2
  207. package/dist/core/{p-8da90b72.entry.js → p-46fd555f.entry.js} +2 -2
  208. package/dist/core/{p-43cc0f1d.entry.js → p-48a628f0.entry.js} +2 -2
  209. package/dist/core/{p-9a4e067f.entry.js → p-4f56acff.entry.js} +2 -2
  210. package/dist/core/{p-3021290f.entry.js → p-506d428a.entry.js} +2 -2
  211. package/dist/core/{p-a1b2f483.entry.js → p-50dca790.entry.js} +2 -2
  212. package/dist/core/p-53ab3c0f.entry.js +2 -0
  213. package/dist/core/p-53ab3c0f.entry.js.map +1 -0
  214. package/dist/core/{p-feef7c2c.entry.js → p-56de4f4b.entry.js} +2 -2
  215. package/dist/core/{p-b4e322fe.entry.js → p-5900cb65.entry.js} +2 -2
  216. package/dist/core/{p-78a54069.entry.js → p-5976de6e.entry.js} +2 -2
  217. package/dist/core/{p-2af89564.entry.js → p-61d79fc6.entry.js} +2 -2
  218. package/dist/core/{p-2af89564.entry.js.map → p-61d79fc6.entry.js.map} +1 -1
  219. package/dist/core/p-659d048d.entry.js +2 -0
  220. package/dist/core/{p-1edf2689.entry.js → p-67de1290.entry.js} +2 -2
  221. package/dist/core/p-6b4ec95f.entry.js +3 -0
  222. package/dist/core/p-6b4ec95f.entry.js.map +1 -0
  223. package/dist/core/{p-f700b759.entry.js → p-73043f57.entry.js} +2 -2
  224. package/dist/core/{p-7b8e5926.entry.js → p-735d3096.entry.js} +2 -2
  225. package/dist/core/{p-07075461.entry.js → p-7b538fd1.entry.js} +2 -2
  226. package/dist/core/{p-cfd43558.entry.js → p-80d85403.entry.js} +2 -2
  227. package/dist/core/{p-7f279c8a.entry.js → p-83578f1d.entry.js} +2 -2
  228. package/dist/core/{p-7f279c8a.entry.js.map → p-83578f1d.entry.js.map} +1 -1
  229. package/dist/core/{p-b8c0c142.entry.js → p-880f7548.entry.js} +2 -2
  230. package/dist/core/p-880f7548.entry.js.map +1 -0
  231. package/dist/core/{p-79949920.entry.js → p-8a833e82.entry.js} +2 -2
  232. package/dist/core/{p-0aba9e31.entry.js → p-90678e67.entry.js} +2 -2
  233. package/dist/core/{p-a851eb65.entry.js → p-9502fb86.entry.js} +2 -2
  234. package/dist/core/{p-2ca7f050.entry.js → p-99433296.entry.js} +2 -2
  235. package/dist/core/p-99433296.entry.js.map +1 -0
  236. package/dist/core/{p-f6de08fb.entry.js → p-9c2b2cb9.entry.js} +2 -2
  237. package/dist/core/{p-949d08d3.entry.js → p-9cb83a2e.entry.js} +2 -2
  238. package/dist/core/{p-f0ecb80b.entry.js → p-a08d6b46.entry.js} +2 -2
  239. package/dist/core/p-a321feee.entry.js +2 -0
  240. package/dist/core/p-a321feee.entry.js.map +1 -0
  241. package/dist/core/{p-208f470f.entry.js → p-a780a34b.entry.js} +2 -2
  242. package/dist/core/{p-387b7bca.entry.js → p-aad03a3c.entry.js} +2 -2
  243. package/dist/core/{p-ec14c783.entry.js → p-aaf4e367.entry.js} +2 -2
  244. package/dist/core/{p-707ae6e9.entry.js → p-b52c44eb.entry.js} +2 -2
  245. package/dist/core/{p-716e7eaf.entry.js → p-b777f0a1.entry.js} +2 -2
  246. package/dist/core/p-b777f0a1.entry.js.map +1 -0
  247. package/dist/core/p-b77b1e1f.js +2 -0
  248. package/dist/core/p-b77b1e1f.js.map +1 -0
  249. package/dist/core/{p-780babc0.entry.js → p-b997ad5e.entry.js} +2 -2
  250. package/dist/core/{p-a0af1b0a.entry.js → p-bb7652cd.entry.js} +2 -2
  251. package/dist/core/{p-ded4cd76.entry.js → p-cbca04bb.entry.js} +2 -2
  252. package/dist/core/{p-99687bce.entry.js → p-cc64e5ef.entry.js} +2 -2
  253. package/dist/core/{p-812c5e61.entry.js → p-cfbacca1.entry.js} +2 -2
  254. package/dist/core/{p-0da2caa2.entry.js → p-daec7e69.entry.js} +2 -2
  255. package/dist/core/{p-1590fd69.entry.js → p-e7767c0d.entry.js} +2 -2
  256. package/dist/core/p-e938eb31.entry.js +2 -0
  257. package/dist/core/p-e938eb31.entry.js.map +1 -0
  258. package/dist/core/{p-dce11b9d.entry.js → p-ea7a3d30.entry.js} +2 -2
  259. package/dist/core/{p-880afd4b.entry.js → p-ebd688b9.entry.js} +2 -2
  260. package/dist/core/p-ebd688b9.entry.js.map +1 -0
  261. package/dist/core/{p-a674b13b.entry.js → p-ef70ea50.entry.js} +2 -2
  262. package/dist/core/{p-d25d0aad.entry.js → p-f64996f1.entry.js} +2 -2
  263. package/dist/core/{p-db17a793.entry.js → p-f661ba76.entry.js} +2 -2
  264. package/dist/core/{p-a03bb31c.entry.js → p-f84ac9c6.entry.js} +2 -2
  265. package/dist/core/{p-f3406b42.entry.js → p-fb9376f0.entry.js} +2 -2
  266. package/dist/esm/core.js +1 -1
  267. package/dist/esm/{helpers-0f85537f.js → helpers-66681c73.js} +4 -17
  268. package/dist/esm/helpers-66681c73.js.map +1 -0
  269. package/dist/esm/ic-accordion-group.entry.js +1 -1
  270. package/dist/esm/ic-accordion.entry.js +1 -1
  271. package/dist/esm/ic-action-chip.entry.js +7 -3
  272. package/dist/esm/ic-action-chip.entry.js.map +1 -1
  273. package/dist/esm/ic-alert.entry.js +1 -1
  274. package/dist/esm/ic-back-to-top.entry.js +1 -1
  275. package/dist/esm/ic-badge.entry.js +1 -1
  276. package/dist/esm/ic-breadcrumb-group.entry.js +1 -1
  277. package/dist/esm/ic-breadcrumb.entry.js +1 -1
  278. package/dist/esm/ic-button_3.entry.js +1 -1
  279. package/dist/esm/ic-button_3.entry.js.map +1 -1
  280. package/dist/esm/ic-card-horizontal.entry.js +1 -1
  281. package/dist/esm/ic-card-vertical.entry.js +1 -1
  282. package/dist/esm/ic-checkbox-group.entry.js +1 -1
  283. package/dist/esm/ic-checkbox.entry.js +5 -5
  284. package/dist/esm/ic-checkbox.entry.js.map +1 -1
  285. package/dist/esm/ic-chip.entry.js +7 -3
  286. package/dist/esm/ic-chip.entry.js.map +1 -1
  287. package/dist/esm/ic-classification-banner.entry.js +13 -5
  288. package/dist/esm/ic-classification-banner.entry.js.map +1 -1
  289. package/dist/esm/ic-data-row.entry.js +1 -1
  290. package/dist/esm/ic-dialog.entry.js +1 -1
  291. package/dist/esm/ic-divider.entry.js +1 -1
  292. package/dist/esm/ic-empty-state.entry.js +1 -1
  293. package/dist/esm/ic-footer-link-group.entry.js +1 -1
  294. package/dist/esm/ic-footer-link.entry.js +1 -1
  295. package/dist/esm/ic-footer.entry.js +1 -1
  296. package/dist/esm/ic-hero.entry.js +1 -1
  297. package/dist/esm/ic-horizontal-scroll.entry.js +1 -1
  298. package/dist/esm/ic-input-component-container_3.entry.js +212 -80
  299. package/dist/esm/ic-input-component-container_3.entry.js.map +1 -1
  300. package/dist/esm/ic-input-label_2.entry.js +1 -1
  301. package/dist/esm/ic-link.entry.js +1 -1
  302. package/dist/esm/ic-menu-group.entry.js +1 -1
  303. package/dist/esm/ic-menu-item.entry.js +1 -1
  304. package/dist/esm/ic-navigation-button.entry.js +1 -1
  305. package/dist/esm/ic-navigation-group.entry.js +1 -1
  306. package/dist/esm/ic-navigation-group.entry.js.map +1 -1
  307. package/dist/esm/ic-navigation-item.entry.js +1 -1
  308. package/dist/esm/ic-navigation-menu.entry.js +1 -1
  309. package/dist/esm/ic-page-header.entry.js +1 -1
  310. package/dist/esm/ic-pagination-bar.entry.js +385 -0
  311. package/dist/esm/ic-pagination-bar.entry.js.map +1 -0
  312. package/dist/esm/ic-pagination-item.entry.js +1 -1
  313. package/dist/esm/ic-pagination_3.entry.js +1406 -0
  314. package/dist/esm/ic-pagination_3.entry.js.map +1 -0
  315. package/dist/esm/ic-popover-menu.entry.js +5 -5
  316. package/dist/esm/ic-radio-group.entry.js +1 -1
  317. package/dist/esm/ic-radio-option.entry.js +1 -1
  318. package/dist/esm/ic-search-bar.entry.js +11 -11
  319. package/dist/esm/ic-search-bar.entry.js.map +1 -1
  320. package/dist/esm/ic-section-container.entry.js +2 -2
  321. package/dist/esm/ic-side-navigation.entry.js +18 -9
  322. package/dist/esm/ic-side-navigation.entry.js.map +1 -1
  323. package/dist/esm/ic-skeleton.entry.js +2 -2
  324. package/dist/esm/ic-skip-link.entry.js +2 -2
  325. package/dist/esm/ic-status-tag.entry.js +3 -3
  326. package/dist/esm/ic-step.entry.js +14 -14
  327. package/dist/esm/ic-stepper.entry.js +3 -3
  328. package/dist/esm/ic-stepper.entry.js.map +1 -1
  329. package/dist/esm/ic-switch.entry.js +5 -5
  330. package/dist/esm/ic-tab-context.entry.js +1 -2
  331. package/dist/esm/ic-tab-context.entry.js.map +1 -1
  332. package/dist/esm/ic-tab-group.entry.js +3 -3
  333. package/dist/esm/ic-tab-panel.entry.js +2 -2
  334. package/dist/esm/ic-tab.entry.js +1 -1
  335. package/dist/esm/ic-theme.entry.js +2 -2
  336. package/dist/esm/ic-toast-region.entry.js +1 -1
  337. package/dist/esm/ic-toast.entry.js +8 -7
  338. package/dist/esm/ic-toast.entry.js.map +1 -1
  339. package/dist/esm/ic-toggle-button-group.entry.js +3 -3
  340. package/dist/esm/ic-toggle-button.entry.js +3 -3
  341. package/dist/esm/ic-top-navigation.entry.js +1 -1
  342. package/dist/esm/ic-typography.entry.js +1 -1
  343. package/dist/esm/index-a7a720e7.js +12 -16
  344. package/dist/esm/loader.js +1 -1
  345. package/dist/types/components/ic-classification-banner/ic-classification-banner.d.ts +4 -0
  346. package/dist/types/components/ic-menu/ic-menu.d.ts +11 -1
  347. package/dist/types/components/ic-pagination-bar/ic-pagination-bar.d.ts +162 -0
  348. package/dist/types/components/ic-pagination-bar/ic-pagination-bar.types.d.ts +8 -0
  349. package/dist/types/components/ic-select/ic-select.d.ts +53 -80
  350. package/dist/types/components/ic-select/ic-select.types.d.ts +43 -0
  351. package/dist/types/components/ic-side-navigation/ic-side-navigation.d.ts +3 -2
  352. package/dist/types/components.d.ts +234 -5
  353. package/dist/types/utils/helpers.d.ts +2 -4
  354. package/hydrate/index.js +1141 -771
  355. package/hydrate/index.mjs +1141 -771
  356. package/package.json +2 -2
  357. package/vscode-data.json +131 -0
  358. package/dist/cjs/helpers-3a796e7a.js.map +0 -1
  359. package/dist/cjs/ic-pagination.cjs.entry.js +0 -312
  360. package/dist/cjs/ic-pagination.cjs.entry.js.map +0 -1
  361. package/dist/cjs/ic-select.cjs.entry.js +0 -879
  362. package/dist/cjs/ic-select.cjs.entry.js.map +0 -1
  363. package/dist/cjs/ic-text-field.cjs.entry.js +0 -433
  364. package/dist/cjs/ic-text-field.cjs.entry.js.map +0 -1
  365. package/dist/core/p-0d7fd892.entry.js +0 -2
  366. package/dist/core/p-29b61bb5.entry.js +0 -3
  367. package/dist/core/p-29b61bb5.entry.js.map +0 -1
  368. package/dist/core/p-2ca7f050.entry.js.map +0 -1
  369. package/dist/core/p-4aadabc8.entry.js +0 -2
  370. package/dist/core/p-4aadabc8.entry.js.map +0 -1
  371. package/dist/core/p-716e7eaf.entry.js.map +0 -1
  372. package/dist/core/p-808e1ef5.entry.js +0 -2
  373. package/dist/core/p-808e1ef5.entry.js.map +0 -1
  374. package/dist/core/p-880afd4b.entry.js.map +0 -1
  375. package/dist/core/p-8fe4e0ad.entry.js +0 -2
  376. package/dist/core/p-8fe4e0ad.entry.js.map +0 -1
  377. package/dist/core/p-96bc7d24.entry.js.map +0 -1
  378. package/dist/core/p-b8c0c142.entry.js.map +0 -1
  379. package/dist/core/p-c5b9519d.entry.js +0 -2
  380. package/dist/core/p-c5b9519d.entry.js.map +0 -1
  381. package/dist/core/p-d1730d4d.entry.js +0 -2
  382. package/dist/core/p-d1730d4d.entry.js.map +0 -1
  383. package/dist/core/p-dbc8bf0c.js +0 -2
  384. package/dist/core/p-dbc8bf0c.js.map +0 -1
  385. package/dist/core/p-fdb587ab.entry.js +0 -2
  386. package/dist/core/p-fdb587ab.entry.js.map +0 -1
  387. package/dist/esm/helpers-0f85537f.js.map +0 -1
  388. package/dist/esm/ic-pagination.entry.js.map +0 -1
  389. package/dist/esm/ic-select.entry.js +0 -875
  390. package/dist/esm/ic-select.entry.js.map +0 -1
  391. package/dist/esm/ic-text-field.entry.js.map +0 -1
  392. /package/dist/core/{p-0a24c536.entry.js.map → p-05fd2707.entry.js.map} +0 -0
  393. /package/dist/core/{p-85e15d01.entry.js.map → p-09505807.entry.js.map} +0 -0
  394. /package/dist/core/{p-41a5da12.entry.js.map → p-1b81ec88.entry.js.map} +0 -0
  395. /package/dist/core/{p-99951365.entry.js.map → p-2691cc80.entry.js.map} +0 -0
  396. /package/dist/core/{p-94916588.entry.js.map → p-2a124daf.entry.js.map} +0 -0
  397. /package/dist/core/{p-04c77b2d.entry.js.map → p-2b87c592.entry.js.map} +0 -0
  398. /package/dist/core/{p-4aa56990.entry.js.map → p-2bd80913.entry.js.map} +0 -0
  399. /package/dist/core/{p-aed1c7e7.entry.js.map → p-347cc084.entry.js.map} +0 -0
  400. /package/dist/core/{p-a3dea729.entry.js.map → p-3aed13ba.entry.js.map} +0 -0
  401. /package/dist/core/{p-8da90b72.entry.js.map → p-46fd555f.entry.js.map} +0 -0
  402. /package/dist/core/{p-43cc0f1d.entry.js.map → p-48a628f0.entry.js.map} +0 -0
  403. /package/dist/core/{p-9a4e067f.entry.js.map → p-4f56acff.entry.js.map} +0 -0
  404. /package/dist/core/{p-3021290f.entry.js.map → p-506d428a.entry.js.map} +0 -0
  405. /package/dist/core/{p-a1b2f483.entry.js.map → p-50dca790.entry.js.map} +0 -0
  406. /package/dist/core/{p-feef7c2c.entry.js.map → p-56de4f4b.entry.js.map} +0 -0
  407. /package/dist/core/{p-b4e322fe.entry.js.map → p-5900cb65.entry.js.map} +0 -0
  408. /package/dist/core/{p-78a54069.entry.js.map → p-5976de6e.entry.js.map} +0 -0
  409. /package/dist/core/{p-0d7fd892.entry.js.map → p-659d048d.entry.js.map} +0 -0
  410. /package/dist/core/{p-1edf2689.entry.js.map → p-67de1290.entry.js.map} +0 -0
  411. /package/dist/core/{p-f700b759.entry.js.map → p-73043f57.entry.js.map} +0 -0
  412. /package/dist/core/{p-7b8e5926.entry.js.map → p-735d3096.entry.js.map} +0 -0
  413. /package/dist/core/{p-07075461.entry.js.map → p-7b538fd1.entry.js.map} +0 -0
  414. /package/dist/core/{p-cfd43558.entry.js.map → p-80d85403.entry.js.map} +0 -0
  415. /package/dist/core/{p-79949920.entry.js.map → p-8a833e82.entry.js.map} +0 -0
  416. /package/dist/core/{p-0aba9e31.entry.js.map → p-90678e67.entry.js.map} +0 -0
  417. /package/dist/core/{p-a851eb65.entry.js.map → p-9502fb86.entry.js.map} +0 -0
  418. /package/dist/core/{p-f6de08fb.entry.js.map → p-9c2b2cb9.entry.js.map} +0 -0
  419. /package/dist/core/{p-949d08d3.entry.js.map → p-9cb83a2e.entry.js.map} +0 -0
  420. /package/dist/core/{p-f0ecb80b.entry.js.map → p-a08d6b46.entry.js.map} +0 -0
  421. /package/dist/core/{p-208f470f.entry.js.map → p-a780a34b.entry.js.map} +0 -0
  422. /package/dist/core/{p-387b7bca.entry.js.map → p-aad03a3c.entry.js.map} +0 -0
  423. /package/dist/core/{p-ec14c783.entry.js.map → p-aaf4e367.entry.js.map} +0 -0
  424. /package/dist/core/{p-707ae6e9.entry.js.map → p-b52c44eb.entry.js.map} +0 -0
  425. /package/dist/core/{p-780babc0.entry.js.map → p-b997ad5e.entry.js.map} +0 -0
  426. /package/dist/core/{p-a0af1b0a.entry.js.map → p-bb7652cd.entry.js.map} +0 -0
  427. /package/dist/core/{p-ded4cd76.entry.js.map → p-cbca04bb.entry.js.map} +0 -0
  428. /package/dist/core/{p-99687bce.entry.js.map → p-cc64e5ef.entry.js.map} +0 -0
  429. /package/dist/core/{p-812c5e61.entry.js.map → p-cfbacca1.entry.js.map} +0 -0
  430. /package/dist/core/{p-0da2caa2.entry.js.map → p-daec7e69.entry.js.map} +0 -0
  431. /package/dist/core/{p-1590fd69.entry.js.map → p-e7767c0d.entry.js.map} +0 -0
  432. /package/dist/core/{p-dce11b9d.entry.js.map → p-ea7a3d30.entry.js.map} +0 -0
  433. /package/dist/core/{p-a674b13b.entry.js.map → p-ef70ea50.entry.js.map} +0 -0
  434. /package/dist/core/{p-d25d0aad.entry.js.map → p-f64996f1.entry.js.map} +0 -0
  435. /package/dist/core/{p-db17a793.entry.js.map → p-f661ba76.entry.js.map} +0 -0
  436. /package/dist/core/{p-a03bb31c.entry.js.map → p-f84ac9c6.entry.js.map} +0 -0
  437. /package/dist/core/{p-f3406b42.entry.js.map → p-fb9376f0.entry.js.map} +0 -0
@@ -0,0 +1,804 @@
1
+ import { proxyCustomElement, HTMLElement, createEvent, forceUpdate, h, Host } from '@stencil/core/internal/client';
2
+ import { T as checkSlotInChildMutations, r as removeDisabledFalse, t as removeFormResetListener, s as addFormResetListener, w as getInputDescribedByText, u as renderHiddenInput, i as isSlotUsed, U as isMobileOrTablet, A as IcInformationStatus } from './helpers.js';
3
+ import { I as IC_INHERITED_ARIA } from './constants.js';
4
+ import { d as defineCustomElement$9 } from './ic-button2.js';
5
+ import { d as defineCustomElement$8 } from './ic-input-component-container2.js';
6
+ import { d as defineCustomElement$7 } from './ic-input-container2.js';
7
+ import { d as defineCustomElement$6 } from './ic-input-label2.js';
8
+ import { d as defineCustomElement$5 } from './ic-input-validation2.js';
9
+ import { d as defineCustomElement$4 } from './ic-loading-indicator2.js';
10
+ import { d as defineCustomElement$3 } from './ic-menu2.js';
11
+ import { d as defineCustomElement$2 } from './ic-tooltip2.js';
12
+ import { d as defineCustomElement$1 } from './ic-typography2.js';
13
+
14
+ const Expand = `<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
15
+ <path d="M7 9.5L12 14.5L17 9.5H7Z" fill="currentColor" />
16
+ </svg>
17
+ `;
18
+
19
+ const Clear = `<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
20
+ <path d="M12.6666 4.27334L11.7266 3.33334L7.99998 7.06001L4.27331 3.33334L3.33331 4.27334L7.05998 8.00001L3.33331 11.7267L4.27331 12.6667L7.99998 8.94001L11.7266 12.6667L12.6666 11.7267L8.93998 8.00001L12.6666 4.27334Z" fill="currentColor" />
21
+ </svg>
22
+ `;
23
+
24
+ const icSelectCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host{display:block;position:relative;--ic-input-label-helpertext-padding:var(--ic-space-xs);--menu-max-height:100px;--border-color:var(--ic-select-field-border);--border-color-hover:var(--ic-select-field-border-hover);--border-color-pressed:var(--ic-select-field-border-pressed);--border-color-disabled:var(--ic-select-field-border-disabled);--border-color-error:var(--ic-select-field-border-error);--border-color-error-hover:var(--ic-select-field-border-error-hover);--border-color-error-pressed:var(--ic-select-field-border-error-pressed);--border-color-success:var(--ic-select-field-border-success);--border-color-success-hover:var(--ic-select-field-border-success-hover);--border-color-success-pressed:var(--ic-select-field-border-success-pressed);--border-color-warning:var(--ic-select-field-border-warning);--border-color-warning-hover:var(--ic-select-field-border-warning-hover);--border-color-warning-pressed:var(--ic-select-field-border-warning-pressed);--ic-input-label-text-color:var(--ic-select-field-label);--ic-input-label-helper-text-color:var(\n --ic-select-input-field-label-subtitle\n );--ic-input-validation-status-text-color:var(--ic-select-state-text);--ic-input-validation-error:var(--ic-select-state-icon-error);--ic-input-validation-warning-icon-color:var(--ic-select-state-icon-warning);--ic-input-validation-success-icon-color:var(--ic-select-state-icon-success);--menu-item-text-color:var(--ic-select-list-option-text);--menu-bg-color:var(--ic-select-list-option-background);--menu-border-color:var(--ic-select-dropdown-list-border)}:host(.ic-select-disabled){--ic-input-label-text-color:var(--ic-select-field-label-disabled);--ic-input-label-helper-text-color:var(\n --ic-select-input-field-label-subtitle-disabled\n )}:host(.ic-select-full-width){width:100%}ic-input-component-container.menu-open{--border-color:var(--ic-select-field-border-pressed)}ic-input-validation .status-icon,ic-input-validation .statustext{visibility:visible}ic-input-validation.menu-open .status-icon,ic-input-validation.menu-open .statustext{visibility:hidden;transition:visibility 0s}ic-input-label{margin-bottom:var(--ic-space-xs)}select{border:0;border-radius:var(--ic-border-radius);background-color:var(--ic-select-field-background);color:var(--ic-select-content-text);line-height:1.5rem;letter-spacing:0.005rem;width:100%;height:100%;padding-left:0.375rem;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-repeat:no-repeat;background-position:right 0.375rem center;background-image:var(--ic-select-mobile-dropdown-icon);caret-color:var(--ic-select-input-field-text-cursor)}select option,.select-option-selected{color:var(--ic-select-list-option-text)}select:disabled{color:var(--ic-select-content-text-disabled);background-image:var(--ic-select-mobile-dropdown-icon-disabled)}select:focus{border:0;outline:0}select:not([disabled]){cursor:pointer}.select-container{width:100%;display:flex;align-items:center;position:relative}.select-input{width:100%;height:100%;padding:0 0.375rem;display:flex;cursor:pointer;align-items:center;justify-content:space-between;background:none;border:none;background-color:var(--ic-select-field-background);color:var(--ic-select-content-text)}.select-input:focus{outline:none}.select-input[disabled]{pointer-events:none}:host(.ic-select-searchable) .select-input{cursor:auto}.select-input.with-clear-button{padding-right:0}.value-text{max-width:calc(100% - (var(--ic-space-lg) + var(--ic-space-xxs)));box-sizing:border-box;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;margin-bottom:0 !important}.value-text.with-clear-button{padding-right:calc(var(--ic-space-xl) + var(--ic-space-xs))}.searchable-select-container{align-items:center;display:flex;width:100%;position:relative}.expand-icon{height:var(--ic-space-lg);padding-left:var(--ic-space-xxs);color:var(--ic-select-expand-icon-color)}.expand-icon>svg{display:inline-block;width:var(--ic-space-lg);height:var(--ic-space-lg)}:host(.ic-select-disabled) .expand-icon,:host(.ic-select-disabled) .expand-icon>svg>path{color:var(--ic-select-disabled-expand-icon-color)}:host(.ic-select-searchable) .expand-icon{padding-left:0;height:2.25rem}:host(.ic-select-searchable) .expand-icon>svg{height:2.25rem;padding:0 calc(var(--ic-space-xxxs) + var(--ic-space-xxs)) 0\n var(--ic-space-xxs)}:host(.ic-select-searchable:not(.ic-select-disabled)) .expand-icon>svg{cursor:pointer}.expand-icon-open{color:var(--ic-select-expand-icon-color)}.expand-icon-open,:host(.ic-select-searchable) .expand-icon-open{transform:rotateX(180deg)}.placeholder{color:var(--ic-select-content-placeholder-text)}:host(.ic-select-disabled.ic-select-searchable) .select-input::-moz-placeholder{color:var(--ic-select-content-text-disabled)}:host(.ic-select-disabled) .value-text,:host(.ic-select-disabled) .select-input,:host(.ic-select-disabled) .placeholder,:host(.ic-select-disabled.ic-select-searchable) .select-input::placeholder{color:var(--ic-select-content-text-disabled)}.select-input-end{display:flex;align-items:center}.clear-button-container{display:flex;align-items:center}.divider{width:var(--ic-space-1px);background-color:var(--ic-select-content-divider);margin:var(--ic-space-xxs) 0;border-radius:var(--ic-space-1px);height:var(--ic-space-lg)}:host(.ic-select-small) .divider{height:var(--ic-space-md)}:host(.ic-select-large) .divider{height:var(--ic-space-xl)}.clear-button{color:var(--ic-select-clear-button);position:absolute;right:calc(var(--ic-space-xl) + var(--ic-space-xxs) - var(--ic-space-1px));border-radius:var(--ic-border-radius);transition:box-shadow var(--ic-easing-transition),\n border-radius var(--ic-easing-transition)}.clear-button:focus,.clear-button:active{background-color:var(--ic-color-focus-inner);box-shadow:inset 0 0 0 0.125rem var(--ic-color-focus-outer);border-radius:0.25rem}.clear-button:focus,.clear-button:active *{fill:var(--ic-atoms-input-clear-button-focus)}.clear-button.searchable{position:static}.aria-live-hidden-text{border:0;clip:rect(0, 0, 0, 0, 0);height:var(--ic-space-1px);overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:var(--ic-space-1px)}::slotted([slot=\"icon\"]){fill:var(--ic-select-content-placeholder-text)}.has-value ::slotted([slot=\"icon\"]){fill:var(--ic-select-content-text)}.readonly ::slotted([slot=\"icon\"]){padding:0.375rem;margin-bottom:0.75rem}@media (forced-colors: active){.has-value ::slotted([slot=\"icon\"]){fill:currentcolor}}@media (prefers-reduced-motion: reduce){.clear-button,ic-input-validation.menu-open .status-icon,ic-input-validation.menu-open .statustext{transition:none}}";
25
+ const IcSelectStyle0 = icSelectCss;
26
+
27
+ var __rest = (undefined && undefined.__rest) || function (s, e) {
28
+ var t = {};
29
+ for (var p in s)
30
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
31
+ t[p] = s[p];
32
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
33
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
34
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
35
+ t[p[i]] = s[p[i]];
36
+ }
37
+ return t;
38
+ };
39
+ let inputIds = 0;
40
+ const MUTABLE_ATTRIBUTES = [...IC_INHERITED_ARIA, "tabindex", "title"];
41
+ const Select = /*@__PURE__*/ proxyCustomElement(class Select extends HTMLElement {
42
+ constructor() {
43
+ super();
44
+ this.__registerHost();
45
+ this.__attachShadow();
46
+ this.icBlur = createEvent(this, "icBlur", 7);
47
+ this.icChange = createEvent(this, "icChange", 7);
48
+ this.icClear = createEvent(this, "icClear", 7);
49
+ this.icClose = createEvent(this, "icClose", 7);
50
+ this.icFocus = createEvent(this, "icFocus", 7);
51
+ this.icInput = createEvent(this, "icInput", 7);
52
+ this.icOpen = createEvent(this, "icOpen", 7);
53
+ this.icOptionSelect = createEvent(this, "icOptionSelect", 7);
54
+ this.icOptionDeselect = createEvent(this, "icOptionDeselect", 7);
55
+ this.icRetryLoad = createEvent(this, "icRetryLoad", 7);
56
+ this.inputId = `ic-select-input-${inputIds++}`;
57
+ this.menuId = `${this.inputId}-menu`;
58
+ this.inheritedAttributes = {};
59
+ this.hostMutationObserver = null;
60
+ this.timeoutTimer = null;
61
+ this.hasTimedOut = false;
62
+ this.initialRender = true;
63
+ this.pressedCharacters = "";
64
+ this.hasError = false;
65
+ this.searchableSelectInputValue = "";
66
+ this.selectButtonAriaLiveText = "";
67
+ this.selectInputAriaLiveText = "";
68
+ /**
69
+ * If `true`, the disabled state will be set.
70
+ */
71
+ this.disabled = false;
72
+ /**
73
+ * If `true`, the built in filtering will be disabled for a searchable variant. For example, if options will already be filtered from external source.
74
+ */
75
+ this.disableAutoFiltering = false;
76
+ /**
77
+ * The text displayed when there are no options in the option list.
78
+ */
79
+ this.emptyOptionListText = "No results found";
80
+ /**
81
+ * If `true`, the select will fill the width of the container.
82
+ */
83
+ this.fullWidth = false;
84
+ /**
85
+ * The helper text that will be displayed for additional field guidance.
86
+ */
87
+ this.helperText = "";
88
+ /**
89
+ * If `true`, the label will be hidden and the required label value will be applied as an aria-label.
90
+ */
91
+ this.hideLabel = false;
92
+ /**
93
+ * If `true`, descriptions of options will be included when filtering options in a searchable select. Only applies to built in filtering.
94
+ */
95
+ this.includeDescriptionsInSearch = false;
96
+ /**
97
+ * If `true`, group titles of grouped options will be included when filtering options in a searchable select. Only applies to built in filtering.
98
+ */
99
+ this.includeGroupTitlesInSearch = false;
100
+ /**
101
+ * The message displayed when external loading times out.
102
+ */
103
+ this.loadingErrorLabel = "Loading Error";
104
+ /**
105
+ * The message displayed whilst the options are being loaded externally.
106
+ */
107
+ this.loadingLabel = "Loading...";
108
+ /**
109
+ * If `true`, multiple options can be selected.
110
+ */
111
+ this.multiple = false;
112
+ /**
113
+ * The name of the control, which is submitted with the form data.
114
+ */
115
+ this.name = this.inputId;
116
+ /**
117
+ * The placeholder value to be displayed.
118
+ */
119
+ this.placeholder = "Select an option";
120
+ /**
121
+ * If `true`, the readonly state will be set.
122
+ */
123
+ this.readonly = false;
124
+ /**
125
+ * If `true`, the select will require a value.
126
+ */
127
+ this.required = false;
128
+ /**
129
+ * If `true`, a searchable variant of the select will be displayed which can be typed in to filter options. This functionality is only available on the single-select variant of the select component.
130
+ */
131
+ this.searchable = false;
132
+ /**
133
+ * Whether the search string of the searchable select should match the start of or anywhere in the options. Only applies to built in filtering.
134
+ */
135
+ this.searchMatchPosition = "anywhere";
136
+ /**
137
+ * If `true`, the icOptionSelect event will be fired on enter instead of ArrowUp and ArrowDown on the single select.
138
+ */
139
+ this.selectOnEnter = false;
140
+ /**
141
+ * If `true`, a button which clears the select input when clicked will be displayed. The button will always appear on the searchable select.
142
+ */
143
+ this.showClearButton = false;
144
+ /**
145
+ * The size of the select.
146
+ */
147
+ this.size = "medium";
148
+ /**
149
+ * Sets the theme color to the dark or light theme color. "inherit" will set the color based on the system settings or ic-theme component.
150
+ */
151
+ this.theme = "inherit";
152
+ /**
153
+ * The value of the `aria-live` attribute on the validation message.
154
+ */
155
+ this.validationAriaLive = "polite";
156
+ /**
157
+ * The validation status - e.g. 'error' | 'warning' | 'success'.
158
+ */
159
+ this.validationStatus = "";
160
+ /**
161
+ * The text to display as the validation message.
162
+ */
163
+ this.validationText = "";
164
+ /**
165
+ * If `true` and on a mobile or tablet device, the native select element will be used instead of the custom select component for better usability.
166
+ */
167
+ this.useNativeSelectOnMobile = true;
168
+ /**
169
+ * If `true`, the loading state will be triggered when fetching options asynchronously.
170
+ */
171
+ this.loading = false;
172
+ /**
173
+ * The possible selection options.
174
+ */
175
+ this.options = [];
176
+ this.flatOptions = [];
177
+ /**
178
+ * The amount of time, in milliseconds, to wait to trigger the `icInput` event after each keystroke.
179
+ */
180
+ this.debounce = 0;
181
+ this.currDebounce = this.debounce;
182
+ /**
183
+ * The value of the select, reflected by the value of the currently selected option.
184
+ * For the searchable variant, the value is also reflected by the user input.
185
+ * For the multi-select variant, the value must be an array of option values.
186
+ */
187
+ this.value = null;
188
+ this.initialValue = this.value;
189
+ this.open = false;
190
+ this.getValidatedValue = (value) => {
191
+ const validValues = this.flatOptions.map((opt) => opt.value);
192
+ if (validValues.length === 0)
193
+ return value;
194
+ if (this.multiple) {
195
+ if (!value)
196
+ return null;
197
+ const arr = Array.isArray(value) ? value : [value]; // Ensure value is an array
198
+ const filtered = validValues.filter((v) => arr.includes(v)); // Keep only valid values
199
+ return filtered.length > 0 ? filtered : null;
200
+ }
201
+ else {
202
+ return validValues.includes(value) ? value : null;
203
+ }
204
+ };
205
+ this.getFilteredOptions = (searchString, searchMatchPosition, includeDescriptionsInSearch, includeGroupTitlesInSearch) => {
206
+ const search = searchString.toLowerCase();
207
+ const match = (text, method) => method === "anywhere" ? text.includes(search) : text.startsWith(search);
208
+ return this.unflattenOptions(this.flatOptions.filter((option) => {
209
+ var _a, _b, _c, _d;
210
+ const label = option.label.toLowerCase();
211
+ const group = (_b = (_a = option.group) === null || _a === void 0 ? void 0 : _a.toLowerCase()) !== null && _b !== void 0 ? _b : "";
212
+ const description = (_d = (_c = option.description) === null || _c === void 0 ? void 0 : _c.toLowerCase()) !== null && _d !== void 0 ? _d : "";
213
+ return (match(label, searchMatchPosition) ||
214
+ (includeDescriptionsInSearch &&
215
+ match(description, searchMatchPosition)) ||
216
+ (includeGroupTitlesInSearch && match(group, searchMatchPosition)));
217
+ }));
218
+ };
219
+ this.getOptions = () => {
220
+ const options = this.searchable &&
221
+ !this.disableAutoFiltering &&
222
+ this.searchableSelectInputValue
223
+ ? this.getFilteredOptions(this.searchableSelectInputValue, this.searchMatchPosition, this.includeDescriptionsInSearch, this.includeGroupTitlesInSearch)
224
+ : this.unflattenOptions(this.flatOptions);
225
+ if (this.hasTimedOut)
226
+ return [{ label: this.loadingErrorLabel, value: "", timedOut: true }];
227
+ if (this.loading)
228
+ return [{ label: this.loadingLabel, value: "", loading: true }];
229
+ if (options.length > 0)
230
+ return options;
231
+ return [{ label: this.emptyOptionListText, value: "" }];
232
+ };
233
+ this.getFlatOptions = (options) => options.flatMap((item) => ("children" in item && item.children
234
+ ? [...item.children.map((child) => (Object.assign({ group: item.label }, child)))]
235
+ : [item]));
236
+ this.unflattenOptions = (flatOptions) => {
237
+ const groupMap = new Map();
238
+ const result = [];
239
+ for (const option of flatOptions) {
240
+ if (option.group) {
241
+ let group = groupMap.get(option.group);
242
+ if (!group) {
243
+ group = { label: option.group, children: [] };
244
+ groupMap.set(option.group, group);
245
+ result.push(group);
246
+ }
247
+ const rest = __rest(option, ["group"]);
248
+ group.children.push(rest);
249
+ }
250
+ else {
251
+ result.push(option);
252
+ }
253
+ }
254
+ return result;
255
+ };
256
+ this.getLabelFromValue = (value) => { var _a, _b; return (_b = (_a = this.flatOptions.find((option) => option.value === value)) === null || _a === void 0 ? void 0 : _a.label) !== null && _b !== void 0 ? _b : ""; };
257
+ // Construct the string that will be shown in the select input or button
258
+ this.getLabelString = () => {
259
+ if (Array.isArray(this.value)) {
260
+ return this.value.map(this.getLabelFromValue).filter(Boolean).join(", ");
261
+ }
262
+ return (this.getLabelFromValue(this.value) ||
263
+ (this.searchable ? "" : this.placeholder));
264
+ };
265
+ this.handleClick = (event) => {
266
+ var _a;
267
+ if (event.detail !== 0) {
268
+ (_a = this.menu) === null || _a === void 0 ? void 0 : _a.handleClickOpen();
269
+ }
270
+ };
271
+ this.handleExpandIconMouseDown = (event) => {
272
+ var _a;
273
+ if (!this.disabled) {
274
+ event.preventDefault();
275
+ (_a = this.searchableSelectElement) === null || _a === void 0 ? void 0 : _a.focus();
276
+ this.handleClick(event);
277
+ }
278
+ };
279
+ this.handleBlur = ({ relatedTarget }) => {
280
+ var _a, _b;
281
+ const target = relatedTarget;
282
+ if (this.el.contains(target) ||
283
+ ((_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.contains(target)) ||
284
+ ((_b = this.menu) === null || _b === void 0 ? void 0 : _b.contains(target)) ||
285
+ target === this.clearButton) {
286
+ return;
287
+ }
288
+ this.open = false;
289
+ this.handleFocusIndicatorDisplay();
290
+ if (this.searchable) {
291
+ this.searchableSelectInputValue = "";
292
+ }
293
+ this.icBlur.emit();
294
+ };
295
+ this.handleTimeoutBlur = (event) => {
296
+ this.handleBlur(event.detail.ev);
297
+ };
298
+ this.handleFocus = () => {
299
+ this.icFocus.emit();
300
+ };
301
+ this.handleClear = () => {
302
+ this.clearTimer();
303
+ this.loading = false;
304
+ this.value = null;
305
+ this.searchableSelectInputValue = "";
306
+ this.icClear.emit();
307
+ this.setFocus();
308
+ };
309
+ this.setTextColor = () => {
310
+ if (this.nativeSelectElement) {
311
+ this.nativeSelectElement.className =
312
+ this.nativeSelectElement.selectedIndex === 0
313
+ ? "placeholder"
314
+ : "select-option-selected";
315
+ }
316
+ };
317
+ this.handleNativeSelectChange = () => {
318
+ if (this.nativeSelectElement) {
319
+ this.icOptionSelect.emit({ value: this.nativeSelectElement.value });
320
+ this.icChange.emit({ value: this.nativeSelectElement.value });
321
+ }
322
+ this.setTextColor();
323
+ };
324
+ this.handleFocusIndicatorDisplay = () => {
325
+ var _a;
326
+ const focusIndicator = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(".focus-indicator");
327
+ if (focusIndicator) {
328
+ if (this.open) {
329
+ focusIndicator.classList.add("focus-indicator-enabled");
330
+ }
331
+ else {
332
+ focusIndicator.classList.remove("focus-indicator-enabled");
333
+ }
334
+ }
335
+ };
336
+ this.handleKeyDown = (event) => {
337
+ var _a, _b;
338
+ if (!(event.key === " " && this.pressedCharacters.length > 0)) {
339
+ if (this.open) {
340
+ (_a = this.menu) === null || _a === void 0 ? void 0 : _a.handleMenuKeyDown(event);
341
+ }
342
+ else {
343
+ (_b = this.menu) === null || _b === void 0 ? void 0 : _b.handleKeyboardOpen(event);
344
+ }
345
+ }
346
+ if (!this.multiple &&
347
+ !this.searchable &&
348
+ !this.selectOnEnter &&
349
+ /^[a-zA-Z0-9 ]$/.test(event.key)) {
350
+ this.handleCharacterKeyDown(event.key);
351
+ }
352
+ };
353
+ this.handleCharacterKeyDown = (key) => {
354
+ // Only close menu when space is pressed if not being used alongside character keys to quickly select options
355
+ if (this.open && key === " " && this.pressedCharacters.length === 0) {
356
+ this.open = false;
357
+ }
358
+ if (key.length !== 1 || this.searchable) {
359
+ this.pressedCharacters = "";
360
+ return;
361
+ }
362
+ window.clearTimeout(this.characterKeyPressTimer);
363
+ this.characterKeyPressTimer = window.setTimeout(() => (this.pressedCharacters = ""), 1000);
364
+ if (key !== " " || !!this.pressedCharacters) {
365
+ this.pressedCharacters += key;
366
+ const filteredOptions = this.getFilteredOptions(this.pressedCharacters, "start", false, false);
367
+ if (filteredOptions.length > 0) {
368
+ const firstOption = filteredOptions[0];
369
+ if ("children" in firstOption) {
370
+ this.value = firstOption.children[0].value;
371
+ }
372
+ else {
373
+ this.value = firstOption.value;
374
+ }
375
+ }
376
+ }
377
+ };
378
+ this.handleNativeSelectKeyDown = (event) => {
379
+ this.handleKeyDown(event);
380
+ };
381
+ this.handleSelectChange = (event) => {
382
+ const { value } = event.detail;
383
+ if (!value || this.getLabelFromValue(value) === this.emptyOptionListText) {
384
+ this.value = null;
385
+ return;
386
+ }
387
+ if (this.multiple) {
388
+ let valueArray = Array.isArray(this.value) ? [...this.value] : [];
389
+ const index = valueArray.indexOf(value);
390
+ if (index > -1) {
391
+ valueArray.splice(index, 1);
392
+ this.icOptionDeselect.emit({ value });
393
+ }
394
+ else {
395
+ this.icOptionSelect.emit({ value });
396
+ valueArray.push(value);
397
+ valueArray = this.getValidatedValue(valueArray);
398
+ }
399
+ this.value = valueArray.length ? valueArray : null;
400
+ }
401
+ else {
402
+ this.icOptionSelect.emit({ value });
403
+ this.value = value;
404
+ if (this.searchable)
405
+ this.searchableSelectInputValue = "";
406
+ }
407
+ };
408
+ this.handleSelectAllChange = ({ detail, }) => {
409
+ const allSelectableValues = this.flatOptions
410
+ .filter((option) => !option.disabled)
411
+ .map((option) => option.value);
412
+ if (detail.select) {
413
+ allSelectableValues
414
+ .filter((value) => { var _a; return !((_a = this.value) !== null && _a !== void 0 ? _a : []).includes(value); })
415
+ .forEach((value) => {
416
+ this.icOptionSelect.emit({ value });
417
+ });
418
+ this.value = allSelectableValues;
419
+ }
420
+ else {
421
+ this.value.forEach((value) => this.icOptionDeselect.emit({ value }));
422
+ this.value = null;
423
+ }
424
+ };
425
+ this.handleFormReset = () => {
426
+ this.value = this.initialValue;
427
+ this.searchableSelectInputValue = "";
428
+ if (this.searchable) {
429
+ this.hiddenInputValue = this.initialValue;
430
+ }
431
+ };
432
+ this.handleRetry = () => {
433
+ this.clearTimer();
434
+ this.hasTimedOut = false;
435
+ this.hasError = false;
436
+ this.loading = true;
437
+ this.icRetryLoad.emit({
438
+ value: this.searchable
439
+ ? this.searchableSelectInputValue
440
+ : this.hiddenInputValue,
441
+ });
442
+ this.setFocus();
443
+ };
444
+ this.handleSearchableSelectInput = (event) => {
445
+ var _a;
446
+ this.updateSearchableSelectResultAriaLive();
447
+ if (!this.multiple) {
448
+ this.value = null;
449
+ }
450
+ this.searchableSelectInputValue =
451
+ (_a = event.target.value) !== null && _a !== void 0 ? _a : "";
452
+ this.open = true;
453
+ clearTimeout(this.debounceIcInput);
454
+ this.debounceIcInput = window.setTimeout(() => this.icInput.emit({ value: this.searchableSelectInputValue }), this.currDebounce);
455
+ };
456
+ this.hostMutationCallback = (mutationList) => {
457
+ let forceComponentUpdate = false;
458
+ mutationList.forEach(({ attributeName, type, addedNodes, removedNodes }) => {
459
+ if (attributeName) {
460
+ const attribute = this.el.getAttribute(attributeName);
461
+ if (attribute && MUTABLE_ATTRIBUTES.includes(attributeName)) {
462
+ this.inheritedAttributes[attributeName] = attribute;
463
+ forceComponentUpdate = true;
464
+ }
465
+ }
466
+ else if (type === "childList") {
467
+ forceComponentUpdate = checkSlotInChildMutations(addedNodes, removedNodes, "icon");
468
+ }
469
+ });
470
+ if (forceComponentUpdate) {
471
+ forceUpdate(this);
472
+ }
473
+ };
474
+ this.updateSelectButtonAriaLive = () => {
475
+ const value_label = this.getLabelFromValue(this.value);
476
+ this.selectButtonAriaLiveText = this.multiple
477
+ ? `${this.value ? this.value.length : 0} of ${this.flatOptions.length} selected`
478
+ : this.value
479
+ ? value_label !== null && value_label !== void 0 ? value_label : `${value_label} selected`
480
+ : "";
481
+ };
482
+ this.updateSearchableSelectResultAriaLive = () => {
483
+ var _a, _b;
484
+ this.selectInputAriaLiveText =
485
+ ((_b = (_a = this.getOptions()) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.label) == this.emptyOptionListText
486
+ ? this.emptyOptionListText
487
+ : "";
488
+ };
489
+ this.updateAriaActiveDescendant = (event) => {
490
+ this.ariaActiveDescendant = event.detail.optionId;
491
+ };
492
+ this.handleMenuChange = (event) => {
493
+ this.open = event.detail.open;
494
+ this.pressedCharacters = "";
495
+ };
496
+ this.getDeduplicatedOptions = (flatOptions) => {
497
+ const seen = new Set();
498
+ return flatOptions.filter((option) => {
499
+ if (option.value && seen.has(option.value)) {
500
+ console.warn(`ic-select with label ${this.label} was populated with duplicate option (value: ${option.value}) which has been removed.`);
501
+ return false;
502
+ }
503
+ if (option.value)
504
+ seen.add(option.value);
505
+ return true;
506
+ });
507
+ };
508
+ this.renderNativeOption = (option) => (h("option", { value: option.value, disabled: option.disabled, selected: option.value === this.value }, option.label));
509
+ }
510
+ watchDisabledHandler() {
511
+ removeDisabledFalse(this.disabled, this.el);
512
+ }
513
+ loadingHandler(newValue) {
514
+ this.hasTimedOut = false;
515
+ if (newValue) {
516
+ this.hasError = false;
517
+ if (this.timeout) {
518
+ if (this.timeoutTimer) {
519
+ this.clearTimer();
520
+ }
521
+ this.timeoutTimer = window.setTimeout(() => {
522
+ this.loading = false;
523
+ this.hasTimedOut = true;
524
+ forceUpdate(this);
525
+ }, this.timeout);
526
+ }
527
+ }
528
+ else {
529
+ if (this.timeoutTimer) {
530
+ this.clearTimer();
531
+ }
532
+ }
533
+ }
534
+ clearTimer() {
535
+ if (this.timeoutTimer) {
536
+ clearTimeout(this.timeoutTimer);
537
+ this.timeoutTimer = null;
538
+ }
539
+ }
540
+ optionsChangedHandler() {
541
+ const flat = this.getFlatOptions(this.options)
542
+ .filter((option) => option.value != null || option.label != null) // filter out options missing both value and label
543
+ .map((option) => {
544
+ var _a, _b;
545
+ return (Object.assign(Object.assign({}, option), { value: (_a = option.value) !== null && _a !== void 0 ? _a : option.label, label: (_b = option.label) !== null && _b !== void 0 ? _b : option.value }));
546
+ });
547
+ this.flatOptions = this.getDeduplicatedOptions(flat);
548
+ if (!this.initialRender)
549
+ this.loading = false;
550
+ this.clearTimer();
551
+ this.updateSelectButtonAriaLive();
552
+ }
553
+ debounceChangedHandler(newValue) {
554
+ if (this.currDebounce !== newValue) {
555
+ this.currDebounce = newValue;
556
+ }
557
+ }
558
+ valueChangedHandler(newValue) {
559
+ const validated = this.getValidatedValue(newValue);
560
+ const isEqual = Array.isArray(validated) && Array.isArray(this.value)
561
+ ? validated.length === this.value.length &&
562
+ validated.every((v, i) => v === this.value[i])
563
+ : validated === this.value;
564
+ if (!isEqual) {
565
+ this.value = validated;
566
+ return;
567
+ }
568
+ this.updateSelectButtonAriaLive();
569
+ this.icChange.emit({ value: this.value });
570
+ }
571
+ openChangedHandler() {
572
+ this.open ? this.icOpen.emit() : this.icClose.emit();
573
+ if (!this.open) {
574
+ this.ariaActiveDescendant = undefined;
575
+ }
576
+ this.handleFocusIndicatorDisplay();
577
+ }
578
+ /**
579
+ * Sets focus on the select component.
580
+ */
581
+ async setFocus() {
582
+ if (this.nativeSelectElement) {
583
+ this.nativeSelectElement.focus();
584
+ }
585
+ else if (this.selectElement) {
586
+ this.selectElement.focus();
587
+ }
588
+ else if (this.searchableSelectElement) {
589
+ this.searchableSelectElement.focus();
590
+ }
591
+ }
592
+ componentDidRender() {
593
+ if (this.nativeSelectElement && !this.disabled) {
594
+ this.setTextColor();
595
+ }
596
+ this.initialRender = false;
597
+ }
598
+ disconnectedCallback() {
599
+ var _a;
600
+ removeFormResetListener(this.el, this.handleFormReset);
601
+ (_a = this.hostMutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
602
+ this.clearTimer();
603
+ }
604
+ componentDidLoad() {
605
+ forceUpdate(this);
606
+ this.hostMutationObserver = new MutationObserver(this.hostMutationCallback);
607
+ this.hostMutationObserver.observe(this.el, {
608
+ attributes: true,
609
+ childList: true,
610
+ });
611
+ }
612
+ componentWillLoad() {
613
+ this.optionsChangedHandler();
614
+ this.value = this.getValidatedValue(this.value);
615
+ this.initialValue = this.value;
616
+ if (this.loading)
617
+ this.loadingHandler(true);
618
+ addFormResetListener(this.el, this.handleFormReset);
619
+ }
620
+ render() {
621
+ const { disabled, searchable, size, fullWidth, theme, readonly, hideLabel, inputId, label, helperText, required, value, options, menuId, multiple, validationStatus, open, showClearButton, selectOnEnter, loading, searchableSelectInputValue, validationText, validationAriaLive, form, ariaActiveDescendant, placeholder, name, inheritedAttributes, selectInputAriaLiveText, selectButtonAriaLiveText, } = this;
622
+ const hasValue = !!value;
623
+ const hasInput = !!searchableSelectInputValue;
624
+ const isClearable = !disabled &&
625
+ ((searchable && (hasInput || hasValue)) ||
626
+ (!searchable && hasValue && !loading && showClearButton));
627
+ const showValidation = !!validationStatus && !disabled;
628
+ const invalid = validationStatus === IcInformationStatus.Error;
629
+ const describedBy = getInputDescribedByText(this.el, inputId, helperText !== "", showValidation).trim();
630
+ const menuOptions = this.getOptions();
631
+ const noOptions = disabled ||
632
+ (menuOptions.length === 1 &&
633
+ (menuOptions[0].label === this.emptyOptionListText ||
634
+ "loading" in menuOptions[0] ||
635
+ "timedOut" in menuOptions[0]));
636
+ renderHiddenInput(this.el, value, name || inputId, disabled);
637
+ const ClearButton = () => (h("ic-button", { key: '983b6bfae4f3a9d439f23fe022652605d91f0a1e', ref: (el) => (this.clearButton = el), id: "clear-button", "aria-label": this.searchable ? "Clear input" : "Clear selection", class: "clear-button", innerHTML: Clear, onClick: this.handleClear, onBlur: this.handleBlur, size: size, variant: "icon-tertiary" }));
638
+ const NativeSelect = () => (h("select", Object.assign({ key: '2fb628398e722cff8c3759229af969600e553485', ref: (el) => (this.nativeSelectElement = el), disabled: disabled, onChange: this.handleNativeSelectChange, required: required, id: inputId, "aria-label": label, "aria-describedby": describedBy, "aria-invalid": invalid ? "true" : "false", onBlur: this.handleBlur, onFocus: this.handleFocus, onKeyDown: this.handleNativeSelectKeyDown, form: form }, inheritedAttributes), h("option", { key: '5fb827fef7ab7c597a2361ac4d019f9e07adb55f', value: "", selected: true, disabled: !showClearButton }, placeholder), options.map((option) => "children" in option ? (h("optgroup", { label: option.label }, option.children.map((child) => this.renderNativeOption(child)))) : (this.renderNativeOption(option)))));
639
+ const SelectButton = () => (h("div", { key: '47ad04d6da391fcb88a8b6a6a841dec93f53cd74', class: "select-container" }, h("button", { key: '7ee23a4f16c4aca4b287391ac5bf5f6ee4441b07', class: "select-input", role: "combobox", ref: (el) => (this.selectElement = el), id: inputId, "aria-label": `${label}, ${(multiple && value
640
+ ? `${value.length} of ${this.flatOptions.length} selected, ${this.getLabelString()}`
641
+ : this.getLabelString()) || placeholder}`, onClick: this.handleClick, "aria-describedby": describedBy, "aria-invalid": invalid ? "true" : "false", "aria-haspopup": "listbox", "aria-expanded": `${open}`, "aria-controls": menuId, "aria-required": `${required}`, disabled: disabled, onKeyDown: this.handleKeyDown, onFocus: this.handleFocus, onBlur: this.handleBlur, "aria-activedescendant": ariaActiveDescendant }, h("ic-typography", { key: '438cce7c257e37d0a0aef5247d28d31586725a1e', variant: "body", class: {
642
+ "value-text": true,
643
+ "with-clear-button": !!isClearable,
644
+ placeholder: !value,
645
+ } }, this.getLabelString()), h("div", { key: '8926d05851401339717c159651b802fb41e53096', class: "select-input-end" }, isClearable && h("div", { key: '5c94e4ba98ad972001890d639b00c82887e0fb5d', class: "divider" }), h("span", { key: '23569f5196d66f2b4a834d44006f6a05446598cd', class: {
646
+ "expand-icon": true,
647
+ "expand-icon-open": open,
648
+ }, innerHTML: Expand, "aria-hidden": "true" }))), isClearable && h(ClearButton, { key: 'e4165cb01b0bdc1681e3d9490007182b934f40ea' }), h("div", { key: '6208229358ee8ba7a007a08f5e551d494015a347', "aria-live": "polite", "aria-atomic": "true", class: "aria-live-hidden-text" }, selectButtonAriaLiveText)));
649
+ const SelectInput = () => (h("div", { key: 'af39791c29e8d792c16fed1fffe08db8f621fcac', class: "searchable-select-container" }, h("input", { key: '366bd3c57ad76f130d73ab2390c557b9e8fe98c8', class: {
650
+ "value-text": true,
651
+ "select-input": true,
652
+ "with-clear-button": !!searchableSelectInputValue,
653
+ }, role: "combobox", autocomplete: "off", "aria-label": label, "aria-describedby": describedBy, "aria-activedescendant": ariaActiveDescendant, "aria-autocomplete": "list", "aria-expanded": `${open}`, "aria-invalid": invalid ? "true" : "false", "aria-required": `${required}`, "aria-controls": menuId, ref: (el) => (this.searchableSelectElement = el), id: inputId, value: multiple
654
+ ? ""
655
+ : value
656
+ ? this.getLabelString()
657
+ : searchableSelectInputValue || undefined, disabled: disabled, placeholder: placeholder, onInput: this.handleSearchableSelectInput, onClick: this.handleClick, onBlur: this.handleBlur, onFocus: this.handleFocus, onKeyDown: this.handleKeyDown, form: form }), isClearable && (h("div", { key: 'e9260358a6c8ac3683d1de3015064665d32d907f', class: "clear-button-container" }, h(ClearButton, { key: '0c05ed1cf92ac8fde61ba55192a8a1511338239e' }), h("div", { key: 'e44933edcc7c79459f1ecd551eec43a86fd53b11', class: "divider" }))), h("span", { key: '36e7fe34e7d438caab2967fae27bfe4fb2e49041', onMouseDown: this.handleExpandIconMouseDown, class: {
658
+ "expand-icon": true,
659
+ "expand-icon-open": open,
660
+ }, innerHTML: Expand, "aria-hidden": "true" }), h("div", { key: 'c3e06f04e62b273b8a7a6f9df0aa27bf71060ed4', "aria-live": "polite", role: "status", class: "aria-live-hidden-text" }, selectInputAriaLiveText)));
661
+ const ReadOnly = () => (h("ic-typography", { key: '979d342f453fdb2ed79a6cf231d9a40275662a44' }, h("p", { key: '221530958da8731657b5ad4d455041dc3934718f' }, this.getLabelString() === placeholder ? "" : this.getLabelString())));
662
+ return (h(Host, { key: 'efbdccb0f0b7e86142cd530d52a86f7ce95d6c1c', class: {
663
+ "ic-select-disabled": disabled,
664
+ "ic-select-searchable": searchable,
665
+ [`ic-select-${size}`]: size !== "medium",
666
+ "ic-select-full-width": fullWidth,
667
+ [`ic-theme-${theme}`]: theme !== "inherit",
668
+ } }, h("ic-input-container", { key: '48fe83c1c79ec578f94a2d8af4b8b452570a421f', readonly: readonly }, !hideLabel && (h("ic-input-label", { key: '8410dabe6d0d62c7c1459991631807cfa6546735', for: inputId, label: label, helperText: helperText, required: required, disabled: disabled, readonly: readonly }, h("slot", { key: '77ce0ab9ca879ecf515de633ff27ba8e2320cf2c', name: "helper-text", slot: "helper-text" }))), h("ic-input-component-container", { key: '699375a82eb49f5eb351cf95b4822b4cad7bcc1a', ref: (el) => (this.anchorEl = el), class: { "menu-open": open }, size: size, fullWidth: fullWidth, disabled: disabled, readonly: readonly, validationStatus: validationStatus }, isSlotUsed(this.el, "icon") &&
669
+ !disabled &&
670
+ (!readonly || !!value) && (h("span", { key: 'fcfec6b75fdb0eb41950460af3c6d7dc5ad43657', slot: "left-icon", class: {
671
+ readonly,
672
+ "has-value": !!value,
673
+ } }, h("slot", { key: '08d321011ba86b6d50bf3c8c85bf16595c8df657', name: "icon" }))), isMobileOrTablet() && this.useNativeSelectOnMobile && !multiple ? (h(NativeSelect, null)) : readonly ? (h(ReadOnly, null)) : !searchable ? (h(SelectButton, null)) : (h(SelectInput, null))), !(isMobileOrTablet() &&
674
+ this.useNativeSelectOnMobile &&
675
+ !multiple) && (h("ic-menu", { key: '3fc0ee9172a93e744174e2f2b7a16c4f327a82c9', ref: (el) => (this.menu = el), class: { "no-results": noOptions }, inputEl: searchable ? this.searchableSelectElement : this.selectElement, allowMenuFocus: false, inputLabel: label, anchorEl: this.anchorEl, size: size, menuId: menuId, open: open, options: this.getOptions(), value: multiple ? value : value, fullWidth: fullWidth, selectOnEnter: selectOnEnter, onMenuStateChange: this.handleMenuChange, onMenuOptionSelect: this.handleSelectChange, onMenuOptionSelectAll: this.handleSelectAllChange, onTimeoutBlur: this.handleTimeoutBlur, onMenuOptionId: this.updateAriaActiveDescendant, onClick: this.setFocus, parentEl: this.el, activationType: searchable || multiple || selectOnEnter ? "manual" : "automatic", onRetryButtonClicked: this.handleRetry, closeOnSelect: !multiple, multiSelect: multiple, searchableSelect: searchable })), h("ic-input-validation", { key: '6b8bd66f22d67776d418e0aac1b41d2f03f3c9cd', class: {
676
+ "menu-open": open,
677
+ }, ariaLiveMode: validationAriaLive, status: showValidation ? validationStatus : "", message: showValidation ? validationText : "", for: inputId }))));
678
+ }
679
+ static get delegatesFocus() { return true; }
680
+ get el() { return this; }
681
+ static get watchers() { return {
682
+ "disabled": ["watchDisabledHandler"],
683
+ "loading": ["loadingHandler"],
684
+ "options": ["optionsChangedHandler"],
685
+ "debounce": ["debounceChangedHandler"],
686
+ "value": ["valueChangedHandler"],
687
+ "open": ["openChangedHandler"]
688
+ }; }
689
+ static get style() { return IcSelectStyle0; }
690
+ }, [17, "ic-select", {
691
+ "disabled": [516],
692
+ "disableAutoFiltering": [4, "disable-auto-filtering"],
693
+ "emptyOptionListText": [1, "empty-option-list-text"],
694
+ "form": [1],
695
+ "fullWidth": [4, "full-width"],
696
+ "helperText": [1, "helper-text"],
697
+ "hideLabel": [4, "hide-label"],
698
+ "includeDescriptionsInSearch": [4, "include-descriptions-in-search"],
699
+ "includeGroupTitlesInSearch": [4, "include-group-titles-in-search"],
700
+ "label": [1],
701
+ "loadingErrorLabel": [1, "loading-error-label"],
702
+ "loadingLabel": [1, "loading-label"],
703
+ "multiple": [4],
704
+ "name": [1],
705
+ "placeholder": [1],
706
+ "readonly": [4],
707
+ "required": [4],
708
+ "searchable": [4],
709
+ "searchMatchPosition": [1, "search-match-position"],
710
+ "selectOnEnter": [4, "select-on-enter"],
711
+ "showClearButton": [4, "show-clear-button"],
712
+ "size": [1],
713
+ "timeout": [2],
714
+ "theme": [1],
715
+ "validationAriaLive": [1, "validation-aria-live"],
716
+ "validationStatus": [1, "validation-status"],
717
+ "validationText": [1, "validation-text"],
718
+ "useNativeSelectOnMobile": [4, "use-native-select-on-mobile"],
719
+ "loading": [1028],
720
+ "options": [16],
721
+ "debounce": [2],
722
+ "value": [1025],
723
+ "ariaActiveDescendant": [32],
724
+ "debounceIcInput": [32],
725
+ "hiddenInputValue": [32],
726
+ "hasError": [32],
727
+ "searchableSelectInputValue": [32],
728
+ "selectButtonAriaLiveText": [32],
729
+ "selectInputAriaLiveText": [32],
730
+ "flatOptions": [32],
731
+ "currDebounce": [32],
732
+ "initialValue": [32],
733
+ "open": [32],
734
+ "setFocus": [64]
735
+ }, undefined, {
736
+ "disabled": ["watchDisabledHandler"],
737
+ "loading": ["loadingHandler"],
738
+ "options": ["optionsChangedHandler"],
739
+ "debounce": ["debounceChangedHandler"],
740
+ "value": ["valueChangedHandler"],
741
+ "open": ["openChangedHandler"]
742
+ }]);
743
+ function defineCustomElement() {
744
+ if (typeof customElements === "undefined") {
745
+ return;
746
+ }
747
+ const components = ["ic-select", "ic-button", "ic-input-component-container", "ic-input-container", "ic-input-label", "ic-input-validation", "ic-loading-indicator", "ic-menu", "ic-tooltip", "ic-typography"];
748
+ components.forEach(tagName => { switch (tagName) {
749
+ case "ic-select":
750
+ if (!customElements.get(tagName)) {
751
+ customElements.define(tagName, Select);
752
+ }
753
+ break;
754
+ case "ic-button":
755
+ if (!customElements.get(tagName)) {
756
+ defineCustomElement$9();
757
+ }
758
+ break;
759
+ case "ic-input-component-container":
760
+ if (!customElements.get(tagName)) {
761
+ defineCustomElement$8();
762
+ }
763
+ break;
764
+ case "ic-input-container":
765
+ if (!customElements.get(tagName)) {
766
+ defineCustomElement$7();
767
+ }
768
+ break;
769
+ case "ic-input-label":
770
+ if (!customElements.get(tagName)) {
771
+ defineCustomElement$6();
772
+ }
773
+ break;
774
+ case "ic-input-validation":
775
+ if (!customElements.get(tagName)) {
776
+ defineCustomElement$5();
777
+ }
778
+ break;
779
+ case "ic-loading-indicator":
780
+ if (!customElements.get(tagName)) {
781
+ defineCustomElement$4();
782
+ }
783
+ break;
784
+ case "ic-menu":
785
+ if (!customElements.get(tagName)) {
786
+ defineCustomElement$3();
787
+ }
788
+ break;
789
+ case "ic-tooltip":
790
+ if (!customElements.get(tagName)) {
791
+ defineCustomElement$2();
792
+ }
793
+ break;
794
+ case "ic-typography":
795
+ if (!customElements.get(tagName)) {
796
+ defineCustomElement$1();
797
+ }
798
+ break;
799
+ } });
800
+ }
801
+
802
+ export { Select as S, defineCustomElement as d };
803
+
804
+ //# sourceMappingURL=ic-select2.js.map