@ukic/canary-web-components 3.0.0-canary.18 → 3.0.0-canary.19

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 (480) hide show
  1. package/dist/cjs/core.cjs.js +1 -1
  2. package/dist/cjs/{helpers-6f33d131.js → helpers-a5405964.js} +12 -20
  3. package/dist/cjs/helpers-a5405964.js.map +1 -0
  4. package/dist/cjs/ic-accordion.cjs.entry.js +9 -7
  5. package/dist/cjs/ic-accordion.cjs.entry.js.map +1 -1
  6. package/dist/cjs/ic-alert.cjs.entry.js +1 -1
  7. package/dist/cjs/ic-alert.cjs.entry.js.map +1 -1
  8. package/dist/cjs/ic-breadcrumb-group.cjs.entry.js +2 -2
  9. package/dist/cjs/ic-breadcrumb-group.cjs.entry.js.map +1 -1
  10. package/dist/cjs/ic-breadcrumb.cjs.entry.js +2 -2
  11. package/dist/cjs/ic-breadcrumb.cjs.entry.js.map +1 -1
  12. package/dist/cjs/ic-button_3.cjs.entry.js +8 -8
  13. package/dist/cjs/ic-button_3.cjs.entry.js.map +1 -1
  14. package/dist/cjs/ic-card-horizontal.cjs.entry.js +1 -1
  15. package/dist/cjs/ic-card-vertical.cjs.entry.js +1 -1
  16. package/dist/cjs/ic-card-vertical.cjs.entry.js.map +1 -1
  17. package/dist/cjs/ic-checkbox-group.cjs.entry.js +2 -2
  18. package/dist/cjs/ic-checkbox-group.cjs.entry.js.map +1 -1
  19. package/dist/cjs/ic-checkbox_3.cjs.entry.js +20 -37
  20. package/dist/cjs/ic-checkbox_3.cjs.entry.js.map +1 -1
  21. package/dist/cjs/ic-data-list.cjs.entry.js +2 -2
  22. package/dist/cjs/ic-data-list.cjs.entry.js.map +1 -1
  23. package/dist/cjs/ic-data-row.cjs.entry.js +2 -2
  24. package/dist/cjs/ic-data-row.cjs.entry.js.map +1 -1
  25. package/dist/cjs/ic-data-table-title-bar.cjs.entry.js +1 -1
  26. package/dist/cjs/ic-data-table.cjs.entry.js +311 -319
  27. package/dist/cjs/ic-data-table.cjs.entry.js.map +1 -1
  28. package/dist/cjs/ic-date-input.cjs.entry.js +1 -1
  29. package/dist/cjs/ic-date-picker.cjs.entry.js +1 -1
  30. package/dist/cjs/ic-dialog.cjs.entry.js +1 -1
  31. package/dist/cjs/ic-dialog.cjs.entry.js.map +1 -1
  32. package/dist/cjs/ic-footer-link.cjs.entry.js +2 -2
  33. package/dist/cjs/ic-footer-link.cjs.entry.js.map +1 -1
  34. package/dist/cjs/ic-hero.cjs.entry.js +6 -5
  35. package/dist/cjs/ic-hero.cjs.entry.js.map +1 -1
  36. package/dist/cjs/ic-horizontal-scroll.cjs.entry.js +5 -5
  37. package/dist/cjs/ic-horizontal-scroll.cjs.entry.js.map +1 -1
  38. package/dist/cjs/ic-input-component-container_3.cjs.entry.js +22 -21
  39. package/dist/cjs/ic-input-component-container_3.cjs.entry.js.map +1 -1
  40. package/dist/cjs/ic-input-label_2.cjs.entry.js +7 -7
  41. package/dist/cjs/ic-input-label_2.cjs.entry.js.map +1 -1
  42. package/dist/cjs/ic-link.cjs.entry.js +11 -21
  43. package/dist/cjs/ic-link.cjs.entry.js.map +1 -1
  44. package/dist/cjs/ic-menu-group.cjs.entry.js +1 -1
  45. package/dist/cjs/ic-menu-group.cjs.entry.js.map +1 -1
  46. package/dist/cjs/ic-navigation-group.cjs.entry.js +115 -163
  47. package/dist/cjs/ic-navigation-group.cjs.entry.js.map +1 -1
  48. package/dist/cjs/ic-navigation-item.cjs.entry.js +64 -61
  49. package/dist/cjs/ic-navigation-item.cjs.entry.js.map +1 -1
  50. package/dist/cjs/ic-navigation-menu.cjs.entry.js +4 -4
  51. package/dist/cjs/ic-navigation-menu.cjs.entry.js.map +1 -1
  52. package/dist/cjs/ic-page-header.cjs.entry.js +6 -6
  53. package/dist/cjs/ic-page-header.cjs.entry.js.map +1 -1
  54. package/dist/cjs/ic-pagination_4.cjs.entry.js +160 -231
  55. package/dist/cjs/ic-pagination_4.cjs.entry.js.map +1 -1
  56. package/dist/cjs/ic-popover-menu.cjs.entry.js +5 -5
  57. package/dist/cjs/ic-popover-menu.cjs.entry.js.map +1 -1
  58. package/dist/cjs/ic-radio-group.cjs.entry.js +4 -4
  59. package/dist/cjs/ic-radio-group.cjs.entry.js.map +1 -1
  60. package/dist/cjs/ic-radio-option.cjs.entry.js +4 -4
  61. package/dist/cjs/ic-radio-option.cjs.entry.js.map +1 -1
  62. package/dist/cjs/ic-search-bar.cjs.entry.js +49 -31
  63. package/dist/cjs/ic-search-bar.cjs.entry.js.map +1 -1
  64. package/dist/cjs/ic-section-container.cjs.entry.js +2 -2
  65. package/dist/cjs/ic-section-container.cjs.entry.js.map +1 -1
  66. package/dist/cjs/ic-side-navigation.cjs.entry.js +23 -4
  67. package/dist/cjs/ic-side-navigation.cjs.entry.js.map +1 -1
  68. package/dist/cjs/ic-skeleton.cjs.entry.js +2 -2
  69. package/dist/cjs/ic-skeleton.cjs.entry.js.map +1 -1
  70. package/dist/cjs/ic-skip-link.cjs.entry.js +2 -2
  71. package/dist/cjs/ic-skip-link.cjs.entry.js.map +1 -1
  72. package/dist/cjs/ic-status-tag.cjs.entry.js +2 -2
  73. package/dist/cjs/ic-status-tag.cjs.entry.js.map +1 -1
  74. package/dist/cjs/ic-step.cjs.entry.js +13 -13
  75. package/dist/cjs/ic-step.cjs.entry.js.map +1 -1
  76. package/dist/cjs/ic-stepper.cjs.entry.js +2 -2
  77. package/dist/cjs/ic-stepper.cjs.entry.js.map +1 -1
  78. package/dist/cjs/ic-switch.cjs.entry.js +4 -4
  79. package/dist/cjs/ic-switch.cjs.entry.js.map +1 -1
  80. package/dist/cjs/ic-tab-context.cjs.entry.js +1 -1
  81. package/dist/cjs/ic-tab-context.cjs.entry.js.map +1 -1
  82. package/dist/cjs/ic-tab-group.cjs.entry.js +2 -2
  83. package/dist/cjs/ic-tab-group.cjs.entry.js.map +1 -1
  84. package/dist/cjs/ic-tab-panel.cjs.entry.js +2 -2
  85. package/dist/cjs/ic-tab-panel.cjs.entry.js.map +1 -1
  86. package/dist/cjs/ic-theme.cjs.entry.js +1 -1
  87. package/dist/cjs/ic-theme.cjs.entry.js.map +1 -1
  88. package/dist/cjs/ic-toast-region.cjs.entry.js +1 -1
  89. package/dist/cjs/ic-toast-region.cjs.entry.js.map +1 -1
  90. package/dist/cjs/ic-toast.cjs.entry.js +3 -3
  91. package/dist/cjs/ic-toast.cjs.entry.js.map +1 -1
  92. package/dist/cjs/ic-toggle-button-group.cjs.entry.js +53 -67
  93. package/dist/cjs/ic-toggle-button-group.cjs.entry.js.map +1 -1
  94. package/dist/cjs/ic-toggle-button.cjs.entry.js +61 -63
  95. package/dist/cjs/ic-toggle-button.cjs.entry.js.map +1 -1
  96. package/dist/cjs/ic-top-navigation.cjs.entry.js +64 -62
  97. package/dist/cjs/ic-top-navigation.cjs.entry.js.map +1 -1
  98. package/dist/cjs/ic-tree-item.cjs.entry.js +1 -1
  99. package/dist/cjs/ic-tree-view.cjs.entry.js +1 -1
  100. package/dist/cjs/ic-typography.cjs.entry.js +2 -2
  101. package/dist/cjs/ic-typography.cjs.entry.js.map +1 -1
  102. package/dist/cjs/loader.cjs.js +1 -1
  103. package/dist/collection/components/ic-data-table/ic-data-table.css +3 -5
  104. package/dist/collection/components/ic-data-table/ic-data-table.js +310 -318
  105. package/dist/collection/components/ic-data-table/ic-data-table.js.map +1 -1
  106. package/dist/collection/components/ic-data-table/story-data.js +1 -0
  107. package/dist/collection/components/ic-data-table/story-data.js.map +1 -1
  108. package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.js +30 -22
  109. package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.js.map +1 -1
  110. package/dist/collection/utils/helpers.js +23 -51
  111. package/dist/collection/utils/helpers.js.map +1 -1
  112. package/dist/collection/utils/types.js.map +1 -1
  113. package/dist/components/helpers2.js +12 -20
  114. package/dist/components/helpers2.js.map +1 -1
  115. package/dist/components/ic-accordion.js +9 -7
  116. package/dist/components/ic-accordion.js.map +1 -1
  117. package/dist/components/ic-alert.js +1 -1
  118. package/dist/components/ic-alert.js.map +1 -1
  119. package/dist/components/ic-breadcrumb-group.js +2 -2
  120. package/dist/components/ic-breadcrumb-group.js.map +1 -1
  121. package/dist/components/ic-breadcrumb2.js +2 -2
  122. package/dist/components/ic-breadcrumb2.js.map +1 -1
  123. package/dist/components/ic-button2.js +3 -3
  124. package/dist/components/ic-button2.js.map +1 -1
  125. package/dist/components/ic-card-vertical.js +1 -1
  126. package/dist/components/ic-card-vertical.js.map +1 -1
  127. package/dist/components/ic-checkbox-group.js +2 -2
  128. package/dist/components/ic-checkbox-group.js.map +1 -1
  129. package/dist/components/ic-checkbox2.js +7 -12
  130. package/dist/components/ic-checkbox2.js.map +1 -1
  131. package/dist/components/ic-data-list.js +2 -2
  132. package/dist/components/ic-data-list.js.map +1 -1
  133. package/dist/components/ic-data-row.js +2 -2
  134. package/dist/components/ic-data-row.js.map +1 -1
  135. package/dist/components/ic-data-table.js +311 -319
  136. package/dist/components/ic-data-table.js.map +1 -1
  137. package/dist/components/ic-dialog.js +1 -1
  138. package/dist/components/ic-dialog.js.map +1 -1
  139. package/dist/components/ic-empty-state2.js +2 -2
  140. package/dist/components/ic-empty-state2.js.map +1 -1
  141. package/dist/components/ic-footer-link.js +2 -2
  142. package/dist/components/ic-footer-link.js.map +1 -1
  143. package/dist/components/ic-hero.js +6 -5
  144. package/dist/components/ic-hero.js.map +1 -1
  145. package/dist/components/ic-horizontal-scroll2.js +5 -5
  146. package/dist/components/ic-horizontal-scroll2.js.map +1 -1
  147. package/dist/components/ic-input-component-container2.js +3 -3
  148. package/dist/components/ic-input-component-container2.js.map +1 -1
  149. package/dist/components/ic-input-container2.js +2 -2
  150. package/dist/components/ic-input-container2.js.map +1 -1
  151. package/dist/components/ic-input-label2.js +4 -4
  152. package/dist/components/ic-input-label2.js.map +1 -1
  153. package/dist/components/ic-input-validation2.js +3 -3
  154. package/dist/components/ic-input-validation2.js.map +1 -1
  155. package/dist/components/ic-link2.js +12 -24
  156. package/dist/components/ic-link2.js.map +1 -1
  157. package/dist/components/ic-loading-indicator2.js +3 -3
  158. package/dist/components/ic-loading-indicator2.js.map +1 -1
  159. package/dist/components/ic-menu-group.js +1 -1
  160. package/dist/components/ic-menu-group.js.map +1 -1
  161. package/dist/components/ic-menu2.js +17 -16
  162. package/dist/components/ic-menu2.js.map +1 -1
  163. package/dist/components/ic-navigation-group.js +115 -163
  164. package/dist/components/ic-navigation-group.js.map +1 -1
  165. package/dist/components/ic-navigation-item.js +67 -62
  166. package/dist/components/ic-navigation-item.js.map +1 -1
  167. package/dist/components/ic-navigation-menu2.js +4 -4
  168. package/dist/components/ic-navigation-menu2.js.map +1 -1
  169. package/dist/components/ic-page-header.js +6 -6
  170. package/dist/components/ic-page-header.js.map +1 -1
  171. package/dist/components/ic-pagination-bar2.js +12 -23
  172. package/dist/components/ic-pagination-bar2.js.map +1 -1
  173. package/dist/components/ic-pagination-item2.js +1 -1
  174. package/dist/components/ic-pagination-item2.js.map +1 -1
  175. package/dist/components/ic-pagination2.js +4 -4
  176. package/dist/components/ic-pagination2.js.map +1 -1
  177. package/dist/components/ic-popover-menu.js +5 -5
  178. package/dist/components/ic-popover-menu.js.map +1 -1
  179. package/dist/components/ic-radio-group.js +4 -4
  180. package/dist/components/ic-radio-group.js.map +1 -1
  181. package/dist/components/ic-radio-option.js +4 -4
  182. package/dist/components/ic-radio-option.js.map +1 -1
  183. package/dist/components/ic-search-bar.js +50 -31
  184. package/dist/components/ic-search-bar.js.map +1 -1
  185. package/dist/components/ic-section-container2.js +2 -2
  186. package/dist/components/ic-section-container2.js.map +1 -1
  187. package/dist/components/ic-select2.js +141 -217
  188. package/dist/components/ic-select2.js.map +1 -1
  189. package/dist/components/ic-side-navigation.js +24 -4
  190. package/dist/components/ic-side-navigation.js.map +1 -1
  191. package/dist/components/ic-skeleton.js +2 -2
  192. package/dist/components/ic-skeleton.js.map +1 -1
  193. package/dist/components/ic-skip-link.js +2 -2
  194. package/dist/components/ic-skip-link.js.map +1 -1
  195. package/dist/components/ic-status-tag.js +2 -2
  196. package/dist/components/ic-status-tag.js.map +1 -1
  197. package/dist/components/ic-step.js +13 -13
  198. package/dist/components/ic-step.js.map +1 -1
  199. package/dist/components/ic-stepper.js +2 -2
  200. package/dist/components/ic-stepper.js.map +1 -1
  201. package/dist/components/ic-switch.js +4 -4
  202. package/dist/components/ic-switch.js.map +1 -1
  203. package/dist/components/ic-tab-context.js +1 -1
  204. package/dist/components/ic-tab-context.js.map +1 -1
  205. package/dist/components/ic-tab-group.js +2 -2
  206. package/dist/components/ic-tab-group.js.map +1 -1
  207. package/dist/components/ic-tab-panel.js +2 -2
  208. package/dist/components/ic-tab-panel.js.map +1 -1
  209. package/dist/components/ic-text-field2.js +16 -10
  210. package/dist/components/ic-text-field2.js.map +1 -1
  211. package/dist/components/ic-theme.js +1 -1
  212. package/dist/components/ic-theme.js.map +1 -1
  213. package/dist/components/ic-toast-region.js +1 -1
  214. package/dist/components/ic-toast-region.js.map +1 -1
  215. package/dist/components/ic-toast.js +3 -3
  216. package/dist/components/ic-toast.js.map +1 -1
  217. package/dist/components/ic-toggle-button-group.js +53 -67
  218. package/dist/components/ic-toggle-button-group.js.map +1 -1
  219. package/dist/components/ic-toggle-button.js +61 -63
  220. package/dist/components/ic-toggle-button.js.map +1 -1
  221. package/dist/components/ic-tooltip2.js +2 -2
  222. package/dist/components/ic-tooltip2.js.map +1 -1
  223. package/dist/components/ic-top-navigation.js +65 -63
  224. package/dist/components/ic-top-navigation.js.map +1 -1
  225. package/dist/components/ic-tree-view.js +1 -1
  226. package/dist/components/ic-typography2.js +2 -2
  227. package/dist/components/ic-typography2.js.map +1 -1
  228. package/dist/core/core.esm.js +1 -1
  229. package/dist/core/core.esm.js.map +1 -1
  230. package/dist/core/{p-ef07630d.entry.js → p-0c9c6c31.entry.js} +2 -2
  231. package/dist/core/{p-ef07630d.entry.js.map → p-0c9c6c31.entry.js.map} +1 -1
  232. package/dist/core/p-0e0e0942.js +2 -0
  233. package/dist/core/p-0e0e0942.js.map +1 -0
  234. package/dist/core/{p-824cbf95.entry.js → p-1673d010.entry.js} +2 -2
  235. package/dist/core/{p-824cbf95.entry.js.map → p-1673d010.entry.js.map} +1 -1
  236. package/dist/core/{p-e9683f52.entry.js → p-16e78c1d.entry.js} +2 -2
  237. package/dist/core/p-16e78c1d.entry.js.map +1 -0
  238. package/dist/core/p-17926ee3.entry.js +2 -0
  239. package/dist/core/p-17926ee3.entry.js.map +1 -0
  240. package/dist/core/{p-fbcc2a11.entry.js → p-188ba287.entry.js} +2 -2
  241. package/dist/core/{p-fbcc2a11.entry.js.map → p-188ba287.entry.js.map} +1 -1
  242. package/dist/core/{p-bff6fef6.entry.js → p-1f18bbf6.entry.js} +2 -2
  243. package/dist/core/{p-bff6fef6.entry.js.map → p-1f18bbf6.entry.js.map} +1 -1
  244. package/dist/core/{p-0e3a62cc.entry.js → p-2667c808.entry.js} +2 -2
  245. package/dist/core/{p-3800cda8.entry.js → p-28611f52.entry.js} +2 -2
  246. package/dist/core/p-28611f52.entry.js.map +1 -0
  247. package/dist/core/{p-fb1fce87.entry.js → p-29a49ea2.entry.js} +2 -2
  248. package/dist/core/{p-fb1fce87.entry.js.map → p-29a49ea2.entry.js.map} +1 -1
  249. package/dist/core/{p-bc2ca778.entry.js → p-3cb4ecef.entry.js} +2 -2
  250. package/dist/core/{p-bc2ca778.entry.js.map → p-3cb4ecef.entry.js.map} +1 -1
  251. package/dist/core/p-4444e787.entry.js +2 -0
  252. package/dist/core/{p-cd770df5.entry.js.map → p-4444e787.entry.js.map} +1 -1
  253. package/dist/core/p-4aaf10a5.entry.js +2 -0
  254. package/dist/core/p-4aaf10a5.entry.js.map +1 -0
  255. package/dist/core/{p-e7c00131.entry.js → p-578a02ff.entry.js} +2 -2
  256. package/dist/core/{p-e7c00131.entry.js.map → p-578a02ff.entry.js.map} +1 -1
  257. package/dist/core/{p-a054bb1b.entry.js → p-582da938.entry.js} +2 -2
  258. package/dist/core/{p-a054bb1b.entry.js.map → p-582da938.entry.js.map} +1 -1
  259. package/dist/core/{p-d328f6fc.entry.js → p-5926c2b2.entry.js} +2 -2
  260. package/dist/core/{p-d328f6fc.entry.js.map → p-5926c2b2.entry.js.map} +1 -1
  261. package/dist/core/p-61e78ce0.entry.js +2 -0
  262. package/dist/core/p-61e78ce0.entry.js.map +1 -0
  263. package/dist/core/{p-5744b8b3.entry.js → p-6a63a73a.entry.js} +2 -2
  264. package/dist/core/{p-5744b8b3.entry.js.map → p-6a63a73a.entry.js.map} +1 -1
  265. package/dist/core/{p-266686d0.entry.js → p-6bfff7ba.entry.js} +2 -2
  266. package/dist/core/p-6bfff7ba.entry.js.map +1 -0
  267. package/dist/core/{p-f6141c29.entry.js → p-7c3cd0b8.entry.js} +2 -2
  268. package/dist/core/p-7e4f5717.entry.js +2 -0
  269. package/dist/core/p-7e4f5717.entry.js.map +1 -0
  270. package/dist/core/{p-eb88b348.entry.js → p-7eaa223b.entry.js} +2 -2
  271. package/dist/core/{p-eb88b348.entry.js.map → p-7eaa223b.entry.js.map} +1 -1
  272. package/dist/core/{p-09f54ca3.entry.js → p-8112444e.entry.js} +2 -2
  273. package/dist/core/{p-09f54ca3.entry.js.map → p-8112444e.entry.js.map} +1 -1
  274. package/dist/core/{p-af1d6e41.entry.js → p-85a17585.entry.js} +2 -2
  275. package/dist/core/{p-1aed572a.entry.js → p-864e337f.entry.js} +2 -2
  276. package/dist/core/{p-1aed572a.entry.js.map → p-864e337f.entry.js.map} +1 -1
  277. package/dist/core/{p-fb8d27fa.entry.js → p-887b1302.entry.js} +2 -2
  278. package/dist/core/{p-fb8d27fa.entry.js.map → p-887b1302.entry.js.map} +1 -1
  279. package/dist/core/p-8d2d9e11.entry.js +2 -0
  280. package/dist/core/p-8d2d9e11.entry.js.map +1 -0
  281. package/dist/core/p-920f6480.entry.js +2 -0
  282. package/dist/core/p-920f6480.entry.js.map +1 -0
  283. package/dist/core/{p-7c096c5e.entry.js → p-9687e929.entry.js} +2 -2
  284. package/dist/core/{p-7c096c5e.entry.js.map → p-9687e929.entry.js.map} +1 -1
  285. package/dist/core/{p-33f4abc9.entry.js → p-976f4280.entry.js} +2 -2
  286. package/dist/core/{p-33f4abc9.entry.js.map → p-976f4280.entry.js.map} +1 -1
  287. package/dist/core/p-9989ec00.entry.js +2 -0
  288. package/dist/core/p-9989ec00.entry.js.map +1 -0
  289. package/dist/core/{p-93e154e0.entry.js → p-9a78f449.entry.js} +2 -2
  290. package/dist/core/{p-93e154e0.entry.js.map → p-9a78f449.entry.js.map} +1 -1
  291. package/dist/core/{p-f9a16fa8.entry.js → p-9aecbfe9.entry.js} +2 -2
  292. package/dist/core/{p-f9a16fa8.entry.js.map → p-9aecbfe9.entry.js.map} +1 -1
  293. package/dist/core/{p-45f32fea.entry.js → p-a894ddb6.entry.js} +2 -2
  294. package/dist/core/p-a894ddb6.entry.js.map +1 -0
  295. package/dist/core/p-abcaf14d.entry.js +2 -0
  296. package/dist/core/p-abcaf14d.entry.js.map +1 -0
  297. package/dist/core/p-aeeff0e5.entry.js +2 -0
  298. package/dist/core/p-aeeff0e5.entry.js.map +1 -0
  299. package/dist/core/{p-e38b20bf.entry.js → p-b92727c0.entry.js} +2 -2
  300. package/dist/core/{p-e38b20bf.entry.js.map → p-b92727c0.entry.js.map} +1 -1
  301. package/dist/core/{p-d3d48548.entry.js → p-ba5e1b21.entry.js} +2 -2
  302. package/dist/core/{p-d3d48548.entry.js.map → p-ba5e1b21.entry.js.map} +1 -1
  303. package/dist/core/{p-b9459ba2.entry.js → p-bf3b853e.entry.js} +2 -2
  304. package/dist/core/{p-b9459ba2.entry.js.map → p-bf3b853e.entry.js.map} +1 -1
  305. package/dist/core/{p-9882c572.entry.js → p-c3be8a0f.entry.js} +2 -2
  306. package/dist/core/p-c3be8a0f.entry.js.map +1 -0
  307. package/dist/core/{p-72c117b6.entry.js → p-c5ffe2cf.entry.js} +2 -2
  308. package/dist/core/{p-72c117b6.entry.js.map → p-c5ffe2cf.entry.js.map} +1 -1
  309. package/dist/core/{p-aa83f828.entry.js → p-c8d207e1.entry.js} +2 -2
  310. package/dist/core/p-ca7e1219.entry.js +2 -0
  311. package/dist/core/p-ca7e1219.entry.js.map +1 -0
  312. package/dist/core/p-d0c38d58.entry.js +2 -0
  313. package/dist/core/p-d0c38d58.entry.js.map +1 -0
  314. package/dist/core/{p-df88ff5b.entry.js → p-d4903dcd.entry.js} +2 -2
  315. package/dist/core/{p-df88ff5b.entry.js.map → p-d4903dcd.entry.js.map} +1 -1
  316. package/dist/core/{p-9ca147f3.entry.js → p-de1e04ac.entry.js} +2 -2
  317. package/dist/core/{p-9ca147f3.entry.js.map → p-de1e04ac.entry.js.map} +1 -1
  318. package/dist/core/{p-8b5022bc.entry.js → p-dee21f6d.entry.js} +2 -2
  319. package/dist/core/{p-8b5022bc.entry.js.map → p-dee21f6d.entry.js.map} +1 -1
  320. package/dist/core/{p-ad390076.entry.js → p-e003ad46.entry.js} +2 -2
  321. package/dist/core/{p-ad390076.entry.js.map → p-e003ad46.entry.js.map} +1 -1
  322. package/dist/core/{p-1be17f22.entry.js → p-e2629bfe.entry.js} +2 -2
  323. package/dist/core/{p-1be17f22.entry.js.map → p-e2629bfe.entry.js.map} +1 -1
  324. package/dist/core/p-e38dd019.entry.js +2 -0
  325. package/dist/core/p-e38dd019.entry.js.map +1 -0
  326. package/dist/core/{p-84daed4d.entry.js → p-e546d477.entry.js} +2 -2
  327. package/dist/core/p-e546d477.entry.js.map +1 -0
  328. package/dist/core/{p-5c363e21.entry.js → p-f9e78341.entry.js} +2 -2
  329. package/dist/core/{p-0a0b25c5.entry.js → p-fedfd000.entry.js} +2 -2
  330. package/dist/esm/core.js +1 -1
  331. package/dist/esm/{helpers-0bb68835.js → helpers-ef2db990.js} +13 -21
  332. package/dist/esm/helpers-ef2db990.js.map +1 -0
  333. package/dist/esm/ic-accordion.entry.js +9 -7
  334. package/dist/esm/ic-accordion.entry.js.map +1 -1
  335. package/dist/esm/ic-alert.entry.js +1 -1
  336. package/dist/esm/ic-alert.entry.js.map +1 -1
  337. package/dist/esm/ic-breadcrumb-group.entry.js +2 -2
  338. package/dist/esm/ic-breadcrumb-group.entry.js.map +1 -1
  339. package/dist/esm/ic-breadcrumb.entry.js +2 -2
  340. package/dist/esm/ic-breadcrumb.entry.js.map +1 -1
  341. package/dist/esm/ic-button_3.entry.js +8 -8
  342. package/dist/esm/ic-button_3.entry.js.map +1 -1
  343. package/dist/esm/ic-card-horizontal.entry.js +1 -1
  344. package/dist/esm/ic-card-vertical.entry.js +1 -1
  345. package/dist/esm/ic-card-vertical.entry.js.map +1 -1
  346. package/dist/esm/ic-checkbox-group.entry.js +2 -2
  347. package/dist/esm/ic-checkbox-group.entry.js.map +1 -1
  348. package/dist/esm/ic-checkbox_3.entry.js +20 -37
  349. package/dist/esm/ic-checkbox_3.entry.js.map +1 -1
  350. package/dist/esm/ic-data-list.entry.js +2 -2
  351. package/dist/esm/ic-data-list.entry.js.map +1 -1
  352. package/dist/esm/ic-data-row.entry.js +2 -2
  353. package/dist/esm/ic-data-row.entry.js.map +1 -1
  354. package/dist/esm/ic-data-table-title-bar.entry.js +1 -1
  355. package/dist/esm/ic-data-table.entry.js +311 -319
  356. package/dist/esm/ic-data-table.entry.js.map +1 -1
  357. package/dist/esm/ic-date-input.entry.js +1 -1
  358. package/dist/esm/ic-date-picker.entry.js +1 -1
  359. package/dist/esm/ic-dialog.entry.js +1 -1
  360. package/dist/esm/ic-dialog.entry.js.map +1 -1
  361. package/dist/esm/ic-footer-link.entry.js +2 -2
  362. package/dist/esm/ic-footer-link.entry.js.map +1 -1
  363. package/dist/esm/ic-hero.entry.js +6 -5
  364. package/dist/esm/ic-hero.entry.js.map +1 -1
  365. package/dist/esm/ic-horizontal-scroll.entry.js +5 -5
  366. package/dist/esm/ic-horizontal-scroll.entry.js.map +1 -1
  367. package/dist/esm/ic-input-component-container_3.entry.js +22 -21
  368. package/dist/esm/ic-input-component-container_3.entry.js.map +1 -1
  369. package/dist/esm/ic-input-label_2.entry.js +7 -7
  370. package/dist/esm/ic-input-label_2.entry.js.map +1 -1
  371. package/dist/esm/ic-link.entry.js +11 -21
  372. package/dist/esm/ic-link.entry.js.map +1 -1
  373. package/dist/esm/ic-menu-group.entry.js +1 -1
  374. package/dist/esm/ic-menu-group.entry.js.map +1 -1
  375. package/dist/esm/ic-navigation-group.entry.js +115 -163
  376. package/dist/esm/ic-navigation-group.entry.js.map +1 -1
  377. package/dist/esm/ic-navigation-item.entry.js +64 -61
  378. package/dist/esm/ic-navigation-item.entry.js.map +1 -1
  379. package/dist/esm/ic-navigation-menu.entry.js +4 -4
  380. package/dist/esm/ic-navigation-menu.entry.js.map +1 -1
  381. package/dist/esm/ic-page-header.entry.js +6 -6
  382. package/dist/esm/ic-page-header.entry.js.map +1 -1
  383. package/dist/esm/ic-pagination_4.entry.js +161 -232
  384. package/dist/esm/ic-pagination_4.entry.js.map +1 -1
  385. package/dist/esm/ic-popover-menu.entry.js +5 -5
  386. package/dist/esm/ic-popover-menu.entry.js.map +1 -1
  387. package/dist/esm/ic-radio-group.entry.js +4 -4
  388. package/dist/esm/ic-radio-group.entry.js.map +1 -1
  389. package/dist/esm/ic-radio-option.entry.js +4 -4
  390. package/dist/esm/ic-radio-option.entry.js.map +1 -1
  391. package/dist/esm/ic-search-bar.entry.js +49 -31
  392. package/dist/esm/ic-search-bar.entry.js.map +1 -1
  393. package/dist/esm/ic-section-container.entry.js +2 -2
  394. package/dist/esm/ic-section-container.entry.js.map +1 -1
  395. package/dist/esm/ic-side-navigation.entry.js +23 -4
  396. package/dist/esm/ic-side-navigation.entry.js.map +1 -1
  397. package/dist/esm/ic-skeleton.entry.js +2 -2
  398. package/dist/esm/ic-skeleton.entry.js.map +1 -1
  399. package/dist/esm/ic-skip-link.entry.js +2 -2
  400. package/dist/esm/ic-skip-link.entry.js.map +1 -1
  401. package/dist/esm/ic-status-tag.entry.js +2 -2
  402. package/dist/esm/ic-status-tag.entry.js.map +1 -1
  403. package/dist/esm/ic-step.entry.js +13 -13
  404. package/dist/esm/ic-step.entry.js.map +1 -1
  405. package/dist/esm/ic-stepper.entry.js +2 -2
  406. package/dist/esm/ic-stepper.entry.js.map +1 -1
  407. package/dist/esm/ic-switch.entry.js +4 -4
  408. package/dist/esm/ic-switch.entry.js.map +1 -1
  409. package/dist/esm/ic-tab-context.entry.js +1 -1
  410. package/dist/esm/ic-tab-context.entry.js.map +1 -1
  411. package/dist/esm/ic-tab-group.entry.js +2 -2
  412. package/dist/esm/ic-tab-group.entry.js.map +1 -1
  413. package/dist/esm/ic-tab-panel.entry.js +2 -2
  414. package/dist/esm/ic-tab-panel.entry.js.map +1 -1
  415. package/dist/esm/ic-theme.entry.js +1 -1
  416. package/dist/esm/ic-theme.entry.js.map +1 -1
  417. package/dist/esm/ic-toast-region.entry.js +1 -1
  418. package/dist/esm/ic-toast-region.entry.js.map +1 -1
  419. package/dist/esm/ic-toast.entry.js +3 -3
  420. package/dist/esm/ic-toast.entry.js.map +1 -1
  421. package/dist/esm/ic-toggle-button-group.entry.js +53 -67
  422. package/dist/esm/ic-toggle-button-group.entry.js.map +1 -1
  423. package/dist/esm/ic-toggle-button.entry.js +61 -63
  424. package/dist/esm/ic-toggle-button.entry.js.map +1 -1
  425. package/dist/esm/ic-top-navigation.entry.js +65 -63
  426. package/dist/esm/ic-top-navigation.entry.js.map +1 -1
  427. package/dist/esm/ic-tree-item.entry.js +1 -1
  428. package/dist/esm/ic-tree-view.entry.js +1 -1
  429. package/dist/esm/ic-typography.entry.js +2 -2
  430. package/dist/esm/ic-typography.entry.js.map +1 -1
  431. package/dist/esm/loader.js +1 -1
  432. package/dist/types/components/ic-data-table/ic-data-table.d.ts +15 -4
  433. package/dist/types/components/ic-pagination-bar/ic-pagination-bar.d.ts +4 -1
  434. package/dist/types/components.d.ts +8 -0
  435. package/dist/types/utils/helpers.d.ts +3 -3
  436. package/dist/types/utils/types.d.ts +2 -0
  437. package/hydrate/index.js +1085 -1214
  438. package/hydrate/index.mjs +1085 -1214
  439. package/package.json +3 -3
  440. package/dist/cjs/helpers-6f33d131.js.map +0 -1
  441. package/dist/core/p-10703715.entry.js +0 -2
  442. package/dist/core/p-10703715.entry.js.map +0 -1
  443. package/dist/core/p-266686d0.entry.js.map +0 -1
  444. package/dist/core/p-3800cda8.entry.js.map +0 -1
  445. package/dist/core/p-45f32fea.entry.js.map +0 -1
  446. package/dist/core/p-59bc9fe7.entry.js +0 -2
  447. package/dist/core/p-59bc9fe7.entry.js.map +0 -1
  448. package/dist/core/p-6724039c.entry.js +0 -2
  449. package/dist/core/p-6724039c.entry.js.map +0 -1
  450. package/dist/core/p-84daed4d.entry.js.map +0 -1
  451. package/dist/core/p-92a969b3.entry.js +0 -2
  452. package/dist/core/p-92a969b3.entry.js.map +0 -1
  453. package/dist/core/p-954959d4.entry.js +0 -2
  454. package/dist/core/p-954959d4.entry.js.map +0 -1
  455. package/dist/core/p-95868542.entry.js +0 -2
  456. package/dist/core/p-95868542.entry.js.map +0 -1
  457. package/dist/core/p-9882c572.entry.js.map +0 -1
  458. package/dist/core/p-9918c411.entry.js +0 -2
  459. package/dist/core/p-9918c411.entry.js.map +0 -1
  460. package/dist/core/p-ad45f8f8.entry.js +0 -2
  461. package/dist/core/p-ad45f8f8.entry.js.map +0 -1
  462. package/dist/core/p-b947e4ff.entry.js +0 -2
  463. package/dist/core/p-b947e4ff.entry.js.map +0 -1
  464. package/dist/core/p-c472cb32.entry.js +0 -2
  465. package/dist/core/p-c472cb32.entry.js.map +0 -1
  466. package/dist/core/p-cd770df5.entry.js +0 -2
  467. package/dist/core/p-e9683f52.entry.js.map +0 -1
  468. package/dist/core/p-ed542433.js +0 -2
  469. package/dist/core/p-ed542433.js.map +0 -1
  470. package/dist/core/p-edeb3823.entry.js +0 -2
  471. package/dist/core/p-edeb3823.entry.js.map +0 -1
  472. package/dist/core/p-fb8214a9.entry.js +0 -2
  473. package/dist/core/p-fb8214a9.entry.js.map +0 -1
  474. package/dist/esm/helpers-0bb68835.js.map +0 -1
  475. /package/dist/core/{p-0e3a62cc.entry.js.map → p-2667c808.entry.js.map} +0 -0
  476. /package/dist/core/{p-f6141c29.entry.js.map → p-7c3cd0b8.entry.js.map} +0 -0
  477. /package/dist/core/{p-af1d6e41.entry.js.map → p-85a17585.entry.js.map} +0 -0
  478. /package/dist/core/{p-aa83f828.entry.js.map → p-c8d207e1.entry.js.map} +0 -0
  479. /package/dist/core/{p-5c363e21.entry.js.map → p-f9e78341.entry.js.map} +0 -0
  480. /package/dist/core/{p-0a0b25c5.entry.js.map → p-fedfd000.entry.js.map} +0 -0
@@ -1,5 +1,5 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, forceUpdate, h, Host } from '@stencil/core/internal/client';
2
- import { J as checkSlotInChildMutations, K as getLabelFromValue, L as getFilteredMenuOptions, G as getOptionsWithoutGroupTitlesCount, r as removeDisabledFalse, s as removeFormResetListener, b as inheritAttributes, q as addFormResetListener, o as onComponentRequiredPropUndefined, t as renderHiddenInput, v as getInputDescribedByText, w as hasValidationStatus, M as isMobileOrTablet, I as IC_INHERITED_ARIA, z as IcInformationStatus } from './helpers.js';
2
+ import { J as checkSlotInChildMutations, K as getLabelFromValue, L as getFilteredMenuOptions, G as getOptionsWithoutGroupTitlesCount, r as removeDisabledFalse, s as removeFormResetListener, b as inheritAttributes, q as addFormResetListener, o as onComponentRequiredPropUndefined, t as renderHiddenInput, v as getInputDescribedByText, w as hasValidationStatus, i as isSlotUsed, M as isMobileOrTablet, I as IC_INHERITED_ARIA, z as IcInformationStatus } from './helpers.js';
3
3
  import { d as defineCustomElement$9 } from './ic-button2.js';
4
4
  import { d as defineCustomElement$8 } from './ic-input-component-container2.js';
5
5
  import { d as defineCustomElement$7 } from './ic-input-container2.js';
@@ -40,11 +40,14 @@ const Select = /*@__PURE__*/ proxyCustomElement(class Select extends HTMLElement
40
40
  this.icOptionSelect = createEvent(this, "icOptionSelect", 7);
41
41
  this.icOptionDeselect = createEvent(this, "icOptionDeselect", 7);
42
42
  this.icRetryLoad = createEvent(this, "icRetryLoad", 7);
43
+ this.blurredBecauseButtonPressed = false;
43
44
  this.hasSetDefaultValue = false;
45
+ this.hasTimedOut = false;
44
46
  this.inheritedAttributes = {};
45
47
  this.initialOptionsEmpty = false;
46
48
  this.inputId = `ic-select-input-${inputIds++}`;
47
49
  this.menuId = `${this.inputId}-menu`;
50
+ this.retryButtonClick = false;
48
51
  this.searchableMenuItemSelected = false;
49
52
  this.ungroupedOptions = [];
50
53
  this.hostMutationObserver = null;
@@ -160,6 +163,12 @@ const Select = /*@__PURE__*/ proxyCustomElement(class Select extends HTMLElement
160
163
  */
161
164
  this.debounce = 0;
162
165
  this.currDebounce = this.debounce;
166
+ /**
167
+ * The value of the select, reflected by the value of the currently selected option.
168
+ * For the searchable variant, the value is also reflected by the user input.
169
+ * For the multi-select variant, the value must be an array of option values.
170
+ */
171
+ this.value = null;
163
172
  this.initialValue = this.value;
164
173
  this.inputValueToFilter = this.value;
165
174
  // triggered when attributes of host element change
@@ -197,13 +206,27 @@ const Select = /*@__PURE__*/ proxyCustomElement(class Select extends HTMLElement
197
206
  this.emitIcChange = (value) => {
198
207
  // If "Select all" button clicked, replace value with new value (array of all option values)
199
208
  if (this.multiple && !Array.isArray(value) && value !== null) {
200
- this.handleMultipleSelectChange(String(value));
209
+ // Update selected options - adds / removes them, in order of option list
210
+ // Create new array if value prop is undefined
211
+ if (this.value) {
212
+ let valueArray = this.value.slice();
213
+ if (this.value.includes(value)) {
214
+ valueArray.splice(valueArray.indexOf(value), 1);
215
+ }
216
+ else {
217
+ valueArray.push(value);
218
+ valueArray = this.getValueSortedByOptions(valueArray);
219
+ }
220
+ this.value = valueArray.length === 0 ? null : valueArray;
221
+ }
222
+ else {
223
+ this.value = [value];
224
+ }
201
225
  }
202
226
  else {
203
227
  this.value = value;
204
228
  }
205
- const valueToEmit = this.multiple ? this.value : value;
206
- this.icChange.emit({ value: valueToEmit || null });
229
+ this.icChange.emit({ value: this.multiple ? this.value : value });
207
230
  };
208
231
  this.emitIcInput = (value) => {
209
232
  clearTimeout(this.debounceIcInput);
@@ -216,30 +239,25 @@ const Select = /*@__PURE__*/ proxyCustomElement(class Select extends HTMLElement
216
239
  if (this.options.length > 0) {
217
240
  this.setOptionsValuesFromLabels();
218
241
  this.uniqueOptions = this.deduplicateOptions(this.options);
219
- this.filteredOptions = this.uniqueOptions;
220
242
  }
221
243
  else {
222
244
  this.noOptions = [{ label: this.emptyOptionListText, value: "" }];
223
245
  this.uniqueOptions = this.noOptions;
224
- this.filteredOptions = this.noOptions;
225
246
  }
247
+ this.filteredOptions = this.uniqueOptions;
226
248
  if (this.isExternalFiltering()) {
227
249
  // When searchable select
228
250
  this.noOptions = null;
229
251
  this.updateSearchableSelectResultAriaLive();
230
252
  this.setDefaultValue();
231
253
  }
232
- else {
233
- if (this.initialOptionsEmpty) {
234
- this.setDefaultValue();
235
- this.initialOptionsEmpty = false;
236
- }
254
+ else if (this.initialOptionsEmpty) {
255
+ this.setDefaultValue();
256
+ this.initialOptionsEmpty = false;
237
257
  }
238
258
  }
239
- else {
240
- if (!this.searchable) {
241
- this.options = this.noOptions || [];
242
- }
259
+ else if (!this.searchable) {
260
+ this.options = this.noOptions || [];
243
261
  }
244
262
  };
245
263
  /**
@@ -250,11 +268,10 @@ const Select = /*@__PURE__*/ proxyCustomElement(class Select extends HTMLElement
250
268
  this.deduplicateOptions = (options) => {
251
269
  const uniqueValues = [];
252
270
  const dedupedOptions = [];
253
- let dedupedChildren;
254
271
  options.forEach((option) => {
255
272
  if (option.children) {
256
273
  //If an option has children, we will loop through them
257
- dedupedChildren = [];
274
+ const dedupedChildren = [];
258
275
  option.children.forEach((child) => {
259
276
  if (uniqueValues.includes(child.value)) {
260
277
  console.warn(`ic-select with label ${this.label} was populated with duplicate option (value: ${child.value}) which has been removed.`);
@@ -265,8 +282,7 @@ const Select = /*@__PURE__*/ proxyCustomElement(class Select extends HTMLElement
265
282
  }
266
283
  });
267
284
  // construct a modified option, inserting the deduplicated children alongside the original information
268
- const modifiedParent = Object.assign(Object.assign({}, option), { children: dedupedChildren });
269
- dedupedOptions.push(modifiedParent);
285
+ dedupedOptions.push(Object.assign(Object.assign({}, option), { children: dedupedChildren }));
270
286
  }
271
287
  else {
272
288
  // If an option does not have children, assess to see if it's value has been included already
@@ -298,12 +314,10 @@ const Select = /*@__PURE__*/ proxyCustomElement(class Select extends HTMLElement
298
314
  };
299
315
  this.setTextColor = () => {
300
316
  if (this.nativeSelectElement) {
301
- if (this.nativeSelectElement.selectedIndex === 0) {
302
- this.nativeSelectElement.className = "placeholder";
303
- }
304
- else {
305
- this.nativeSelectElement.className = "select-option-selected";
306
- }
317
+ this.nativeSelectElement.className =
318
+ this.nativeSelectElement.selectedIndex === 0
319
+ ? "placeholder"
320
+ : "select-option-selected";
307
321
  }
308
322
  };
309
323
  this.setMenuChange = (open) => {
@@ -311,27 +325,12 @@ const Select = /*@__PURE__*/ proxyCustomElement(class Select extends HTMLElement
311
325
  this.open = open;
312
326
  }
313
327
  };
314
- this.getLabelFromValue = (value) => {
315
- return getLabelFromValue(value, this.uniqueOptions);
316
- };
317
- this.getMultipleOptionsString = (selectedValues) => {
318
- const selectedLabels = selectedValues === null || selectedValues === void 0 ? void 0 : selectedValues.map((value) => this.getLabelFromValue(value)).filter((label) => !!label);
319
- return selectedLabels === null || selectedLabels === void 0 ? void 0 : selectedLabels.join(", ");
320
- };
321
- this.getFilteredChildMenuOptions = (option) => {
322
- let children = option.children;
323
- if (option.children) {
324
- if (this.searchable) {
325
- children = getFilteredMenuOptions(option.children, !!this.includeDescriptionsInSearch, this.searchableSelectInputValue || "", this.searchMatchPosition);
326
- }
327
- else {
328
- children = getFilteredMenuOptions(option.children, false, this.pressedCharacters, "start");
329
- }
330
- }
331
- const newOption = Object.assign({}, option);
332
- newOption.children = children;
333
- return newOption;
334
- };
328
+ this.getLabelFromValue = (value) => getLabelFromValue(value, this.uniqueOptions);
329
+ this.getMultipleOptionsString = (selectedValues) => selectedValues === null || selectedValues === void 0 ? void 0 : selectedValues.map((value) => this.getLabelFromValue(value)).filter((label) => !!label).join(", ");
330
+ this.getFilteredChildMenuOptions = (option) => (Object.assign(Object.assign({}, option), { children: option.children &&
331
+ getFilteredMenuOptions(option.children, this.searchable && !!this.includeDescriptionsInSearch, this.searchable
332
+ ? this.searchableSelectInputValue || ""
333
+ : this.pressedCharacters, this.searchable ? this.searchMatchPosition : "start") }));
335
334
  // (For multi-select) get value array, i.e. selected option values, in order they appear in option list
336
335
  this.getValueSortedByOptions = (value) => {
337
336
  const valueArray = value;
@@ -350,13 +349,13 @@ const Select = /*@__PURE__*/ proxyCustomElement(class Select extends HTMLElement
350
349
  // (rather than native <select> - rendered when viewed on a mobile / tablet screen)
351
350
  this.handleCustomSelectChange = (event) => {
352
351
  var _a, _b;
353
- const value = event.detail.value;
354
- if (event.detail.label === this.emptyOptionListText) {
352
+ const { value, label, optionId } = event.detail;
353
+ if (label === this.emptyOptionListText) {
355
354
  (_a = this.searchableSelectElement) === null || _a === void 0 ? void 0 : _a.focus();
356
355
  return;
357
356
  }
358
357
  if (this.searchable) {
359
- this.value = value;
358
+ this.value = value || null;
360
359
  this.searchableMenuItemSelected = true;
361
360
  // After editing the input, if selecting the same option as before, set the input value to label again
362
361
  if (this.value === this.currValue) {
@@ -367,64 +366,39 @@ const Select = /*@__PURE__*/ proxyCustomElement(class Select extends HTMLElement
367
366
  this.hiddenInputValue =
368
367
  this.getValueFromLabel(this.searchableSelectInputValue) || null;
369
368
  }
370
- if (this.multiple && ((_b = this.value) === null || _b === void 0 ? void 0 : _b.includes(value))) {
371
- this.icOptionDeselect.emit({ value });
372
- }
373
- else {
374
- this.icOptionSelect.emit({ value });
375
- }
376
- this.ariaActiveDescendant = event.detail.optionId;
377
- this.emitIcChange(value);
378
- };
379
- // Update selected options - adds / removes them, in order of option list
380
- // Create new array if value prop is undefined
381
- this.handleMultipleSelectChange = (value) => {
382
- if (this.value) {
383
- let valueArray = this.value.slice();
384
- if (this.value.includes(value)) {
385
- const valueIndex = valueArray.indexOf(value);
386
- valueArray.splice(valueIndex, 1);
369
+ if (value) {
370
+ if (this.multiple && ((_b = this.value) === null || _b === void 0 ? void 0 : _b.includes(value))) {
371
+ this.icOptionDeselect.emit({ value });
387
372
  }
388
373
  else {
389
- valueArray.push(value);
390
- valueArray = this.getValueSortedByOptions(valueArray);
374
+ this.icOptionSelect.emit({ value });
391
375
  }
392
- this.value = valueArray.length === 0 ? null : valueArray;
393
- }
394
- else {
395
- const valueArray = [];
396
- valueArray.push(value);
397
- this.value = valueArray;
398
376
  }
377
+ this.ariaActiveDescendant = optionId;
378
+ this.emitIcChange(value || null);
399
379
  };
400
- this.handleSelectAllChange = (event) => {
401
- const selectAllOptions = event.detail.select;
402
- const allEnabledOptions = this.ungroupedOptions.filter((option) => !option.disabled);
403
- const allValues = allEnabledOptions.map((option) => option.value);
404
- let newValue;
405
- if (selectAllOptions) {
406
- let unselectedValues;
380
+ this.handleSelectAllChange = ({ detail, }) => {
381
+ const allValues = this.ungroupedOptions
382
+ .filter((option) => !option.disabled)
383
+ .map((option) => option.value);
384
+ if (detail.select) {
407
385
  // Only emit icOptionSelect for all values that are newly selected
408
- if (this.value) {
409
- unselectedValues = allValues.filter((value) => this.value && !this.value.includes(value));
410
- }
411
- else {
412
- unselectedValues = allValues;
413
- }
386
+ const unselectedValues = this.value
387
+ ? allValues.filter((value) => this.value && !this.value.includes(value))
388
+ : allValues;
414
389
  unselectedValues.forEach((value) => this.icOptionSelect.emit({ value }));
415
- newValue = allValues;
416
390
  }
417
391
  else {
418
392
  // Only emit icOptionDeselect for values that were selected
419
393
  this.value.forEach((value) => this.icOptionDeselect.emit({ value }));
420
- newValue = null;
421
394
  }
422
- this.emitIcChange(newValue);
395
+ this.emitIcChange(detail.select ? allValues : null);
423
396
  };
424
397
  this.handleMenuChange = (event) => {
425
398
  this.open = event.detail.open;
426
399
  this.pressedCharacters = "";
427
- this.searchable && this.handleFocusIndicatorDisplay();
400
+ if (this.searchable)
401
+ this.handleFocusIndicatorDisplay();
428
402
  };
429
403
  // clears the debounce delay when navigating the menu with arrow keys etc
430
404
  // to prevent delay in change event, which should only occur when typing in input
@@ -499,19 +473,18 @@ const Select = /*@__PURE__*/ proxyCustomElement(class Select extends HTMLElement
499
473
  if (this.open && key === " " && this.pressedCharacters.length === 0) {
500
474
  this.setMenuChange(false);
501
475
  }
502
- if (key.length === 1 && !this.searchable) {
503
- window.clearTimeout(this.characterKeyPressTimer);
504
- this.characterKeyPressTimer = window.setTimeout(() => (this.pressedCharacters = ""), 1000);
505
- if (!(key === " " && !this.pressedCharacters)) {
506
- this.pressedCharacters += key;
507
- this.handleFilter();
508
- if (!this.noOptions) {
509
- this.emitIcChange(this.filteredOptions[0].value);
510
- }
511
- }
512
- }
513
- else {
476
+ if (key.length !== 1 || this.searchable) {
514
477
  this.pressedCharacters = "";
478
+ return;
479
+ }
480
+ window.clearTimeout(this.characterKeyPressTimer);
481
+ this.characterKeyPressTimer = window.setTimeout(() => (this.pressedCharacters = ""), 1000);
482
+ if (key !== " " || !!this.pressedCharacters) {
483
+ this.pressedCharacters += key;
484
+ this.handleFilter();
485
+ if (!this.noOptions) {
486
+ this.emitIcChange(this.filteredOptions[0].value);
487
+ }
515
488
  }
516
489
  };
517
490
  this.handleNativeSelectKeyDown = (event) => {
@@ -530,19 +503,17 @@ const Select = /*@__PURE__*/ proxyCustomElement(class Select extends HTMLElement
530
503
  if (this.isExternalFiltering() && (event.key === "Enter" || isArrowKey)) {
531
504
  this.menu.options = this.filteredOptions;
532
505
  }
533
- else {
534
- if (!this.hasTimedOut) {
535
- this.noOptions = null;
536
- this.menu.options = this.uniqueOptions;
537
- }
506
+ else if (!this.hasTimedOut) {
507
+ this.noOptions = null;
508
+ this.menu.options = this.uniqueOptions;
538
509
  }
539
510
  }
540
511
  if (this.open && event.key === "Enter") {
541
512
  this.setMenuChange(false);
542
513
  }
543
514
  else {
544
- if (!(isArrowKey && this.noOptions !== null)) {
545
- if (!(event.key === " " && this.pressedCharacters.length > 0)) {
515
+ if (!isArrowKey || this.noOptions === null) {
516
+ if (event.key !== " " || this.pressedCharacters.length <= 0) {
546
517
  // Keyboard events get passed onto ic-menu
547
518
  (_a = this.menu) === null || _a === void 0 ? void 0 : _a.handleKeyboardOpen(event);
548
519
  }
@@ -558,9 +529,9 @@ const Select = /*@__PURE__*/ proxyCustomElement(class Select extends HTMLElement
558
529
  this.handleClearButtonBlur = (ev) => {
559
530
  var _a;
560
531
  const retryButton = (_a = this.menu) === null || _a === void 0 ? void 0 : _a.querySelector("#retry-button");
561
- if (!(this.searchableSelectElement &&
562
- ev.relatedTarget === this.searchableSelectElement) &&
563
- !(retryButton && ev.relatedTarget === retryButton)) {
532
+ if ((!this.searchableSelectElement ||
533
+ ev.relatedTarget !== this.searchableSelectElement) &&
534
+ (!retryButton || ev.relatedTarget !== retryButton)) {
564
535
  this.setMenuChange(false);
565
536
  this.handleFocusIndicatorDisplay();
566
537
  }
@@ -569,12 +540,8 @@ const Select = /*@__PURE__*/ proxyCustomElement(class Select extends HTMLElement
569
540
  this.handleFilter = () => {
570
541
  var _a;
571
542
  const options = this.deduplicateOptions(this.searchable ? [...this.uniqueOptions] : this.ungroupedOptions);
572
- let isGrouped = false;
543
+ const isGrouped = options.some((option) => !!option.children);
573
544
  let newFilteredOptions = [];
574
- options.map((option) => {
575
- if (option.children)
576
- isGrouped = true;
577
- });
578
545
  let menuOptionsFiltered;
579
546
  if (this.searchable) {
580
547
  menuOptionsFiltered = getFilteredMenuOptions(options, !!this.includeDescriptionsInSearch, this.inputValueToFilter || "", this.searchMatchPosition);
@@ -588,30 +555,14 @@ const Select = /*@__PURE__*/ proxyCustomElement(class Select extends HTMLElement
588
555
  newFilteredOptions = menuOptionsFiltered;
589
556
  }
590
557
  else if (isGrouped) {
591
- options.map((option) => {
592
- if (this.includeGroupTitlesInSearch) {
593
- if (menuOptionsFiltered.indexOf(option) !== -1) {
594
- newFilteredOptions.push(option);
595
- }
596
- else {
597
- newFilteredOptions.push(this.getFilteredChildMenuOptions(option));
598
- }
599
- }
600
- else {
601
- newFilteredOptions.push(this.getFilteredChildMenuOptions(option));
602
- }
603
- });
604
- }
605
- let noChildOptionsWhenFiltered = false;
606
- if (isGrouped) {
607
- noChildOptionsWhenFiltered = true;
608
- newFilteredOptions.map((option) => {
609
- if (option.children && option.children.length > 0) {
610
- noChildOptionsWhenFiltered = false;
611
- }
612
- });
613
- }
614
- if (newFilteredOptions.length > 0 && !noChildOptionsWhenFiltered) {
558
+ newFilteredOptions = options.map((option) => this.includeGroupTitlesInSearch &&
559
+ menuOptionsFiltered.indexOf(option) !== -1
560
+ ? option
561
+ : this.getFilteredChildMenuOptions(option));
562
+ }
563
+ if (newFilteredOptions.length > 0 &&
564
+ (!isGrouped ||
565
+ newFilteredOptions.some(({ children }) => children && children.length > 0))) {
615
566
  this.noOptions = null;
616
567
  this.filteredOptions = newFilteredOptions;
617
568
  }
@@ -646,11 +597,7 @@ const Select = /*@__PURE__*/ proxyCustomElement(class Select extends HTMLElement
646
597
  }, this.timeout);
647
598
  }
648
599
  };
649
- this.getValueFromLabel = (label) => {
650
- var _a;
651
- return (label &&
652
- ((_a = this.uniqueOptions.find((option) => option.label === label)) === null || _a === void 0 ? void 0 : _a.value));
653
- };
600
+ this.getValueFromLabel = (label) => { var _a; return label && ((_a = this.uniqueOptions.find((option) => option.label === label)) === null || _a === void 0 ? void 0 : _a.value); };
654
601
  this.handleSearchableSelectInput = (event) => {
655
602
  this.searchableSelectInputValue = event.target.value;
656
603
  this.emitIcInput(this.searchableSelectInputValue);
@@ -664,19 +611,18 @@ const Select = /*@__PURE__*/ proxyCustomElement(class Select extends HTMLElement
664
611
  this.setMenuChange(true);
665
612
  if (!this.disableAutoFiltering) {
666
613
  this.handleFilter();
667
- this.debounceAriaLiveUpdate();
614
+ clearTimeout(this.debounceAria);
615
+ window.setTimeout(() => {
616
+ this.updateSearchableSelectResultAriaLive();
617
+ }, 800);
668
618
  }
669
619
  };
670
620
  this.updateSearchableSelectResultAriaLive = () => {
671
621
  var _a;
672
622
  const searchableSelectResultsStatusEl = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(".searchable-select-results-status");
673
623
  if (searchableSelectResultsStatusEl) {
674
- if (this.noOptions !== null) {
675
- searchableSelectResultsStatusEl.innerText = this.emptyOptionListText;
676
- }
677
- else {
678
- searchableSelectResultsStatusEl.innerText = "";
679
- }
624
+ searchableSelectResultsStatusEl.innerText =
625
+ this.noOptions !== null ? this.emptyOptionListText : "";
680
626
  }
681
627
  };
682
628
  this.updateMultiSelectedCountAriaLive = () => {
@@ -710,13 +656,12 @@ const Select = /*@__PURE__*/ proxyCustomElement(class Select extends HTMLElement
710
656
  return;
711
657
  }
712
658
  const retryButton = (_a = this.menu) === null || _a === void 0 ? void 0 : _a.querySelector("#retry-button");
713
- const isSearchableAndNoFocusedInternalElements = this.searchable &&
659
+ if (this.searchable &&
714
660
  !!this.menu &&
715
661
  target !== this.menu &&
716
662
  !Array.from(this.menu.querySelectorAll("[role='option']")).includes(target) &&
717
- !(this.clearButton && target === this.clearButton) &&
718
- !(retryButton && target === retryButton);
719
- if (isSearchableAndNoFocusedInternalElements) {
663
+ (!this.clearButton || target !== this.clearButton) &&
664
+ (!retryButton || target !== retryButton)) {
720
665
  if (!this.retryButtonClick) {
721
666
  this.setMenuChange(false);
722
667
  // Clear input field on blur when searchable if no option is selected
@@ -755,6 +700,7 @@ const Select = /*@__PURE__*/ proxyCustomElement(class Select extends HTMLElement
755
700
  this.filteredOptions = this.uniqueOptions;
756
701
  }
757
702
  };
703
+ this.renderNativeOption = (option) => (h("option", { value: option.value, disabled: option.disabled, selected: option.value === this.currValue }, option.label));
758
704
  }
759
705
  watchDisabledHandler() {
760
706
  removeDisabledFalse(this.disabled, this.el);
@@ -766,7 +712,9 @@ const Select = /*@__PURE__*/ proxyCustomElement(class Select extends HTMLElement
766
712
  this.setOptions();
767
713
  }
768
714
  debounceChangedHandler(newValue) {
769
- this.updateOnChangeDebounce(newValue);
715
+ if (this.currDebounce !== newValue) {
716
+ this.currDebounce = newValue;
717
+ }
770
718
  }
771
719
  valueChangedHandler() {
772
720
  if (this.value !== this.currValue) {
@@ -849,83 +797,59 @@ const Select = /*@__PURE__*/ proxyCustomElement(class Select extends HTMLElement
849
797
  this.searchableSelectElement.focus();
850
798
  }
851
799
  }
852
- updateOnChangeDebounce(newValue) {
853
- if (this.currDebounce !== newValue) {
854
- this.currDebounce = newValue;
855
- }
856
- }
857
- debounceAriaLiveUpdate() {
858
- clearTimeout(this.debounceAria);
859
- window.setTimeout(() => {
860
- this.updateSearchableSelectResultAriaLive();
861
- }, 800);
862
- }
863
800
  render() {
864
- const { size, disabled, fullWidth, helperText, hideLabel, label, menuId, multiple, name, options, placeholder, readonly, required, searchable, showClearButton, validationStatus, validationText, currValue, theme, } = this;
801
+ var _a;
802
+ const { size, disabled, fullWidth, helperText, hideLabel, label, menuId, multiple, name, options, placeholder, readonly, required, searchable, showClearButton, validationStatus, validationText, currValue, theme, hiddenInputValue, open, inputId, searchableSelectInputValue, loading, value, emptyOptionListText, uniqueOptions, selectOnEnter, form, inheritedAttributes, ariaActiveDescendant, hasTimedOut, noOptions, filteredOptions, clearButtonFocused, } = this;
865
803
  // HTML inputs only accept 'string' for their value
866
804
  // Does not cause errors when it is a multi-select - sets value correctly, to a comma-separated string
867
- renderHiddenInput(this.el, this.searchable ? this.hiddenInputValue : currValue, name || this.inputId, disabled);
805
+ renderHiddenInput(this.el, searchable ? hiddenInputValue : currValue, name || inputId, disabled);
868
806
  const invalid = `${validationStatus === IcInformationStatus.Error}`;
869
- const describedBy = getInputDescribedByText(this.inputId, helperText !== "", hasValidationStatus(this.validationStatus, !!this.disabled)).trim();
870
- let showLeftIcon = !!this.el.querySelector(`[slot="icon"]`);
871
- if (showLeftIcon && (disabled || (readonly && !this.value))) {
872
- showLeftIcon = false;
873
- }
874
- const optionsSelectedCount = `${currValue === null || currValue === void 0 ? void 0 : currValue.length} of ${getOptionsWithoutGroupTitlesCount(this.options)} selected`;
807
+ const describedBy = getInputDescribedByText(inputId, helperText !== "", hasValidationStatus(validationStatus, !!disabled)).trim();
875
808
  const valueLabelString = multiple
876
809
  ? this.getMultipleOptionsString(currValue)
877
810
  : this.getLabelFromValue(currValue);
878
811
  const isClearable = !disabled &&
879
812
  (searchable
880
- ? this.searchableSelectInputValue
881
- : currValue && !this.loading && showClearButton);
882
- return (h(Host, { key: '456f6fa40aca4f93fba6e0c43c57cc171c358ede', class: {
883
- "ic-select-disabled": !!disabled,
884
- "ic-select-searchable": !!searchable,
813
+ ? !!searchableSelectInputValue
814
+ : !!currValue && !loading && showClearButton);
815
+ return (h(Host, { key: 'd128625d13fdd5c5ee1710116f071f42c9f9820f', class: {
816
+ "ic-select-disabled": disabled,
817
+ "ic-select-searchable": searchable,
885
818
  [`ic-select-${size}`]: size !== "medium",
886
- "ic-select-full-width": !!fullWidth,
819
+ "ic-select-full-width": fullWidth,
887
820
  [`ic-theme-${theme}`]: theme !== "inherit",
888
- }, onBlur: this.onBlur }, h("ic-input-container", { key: 'f97234577ffc014d5da69a0ebbf8abac0a97e034', readonly: readonly }, !hideLabel && (h("ic-input-label", { key: 'a6a1bf8152904b7a845de920bd9717c76ea47f2e', for: this.inputId, label: label, helperText: helperText, required: required, disabled: disabled, readonly: readonly })), h("ic-input-component-container", { key: '6515fb2dca1c45d6388123ea2d75f5de57f1bc36', ref: (el) => (this.anchorEl = el), class: { "menu-open": this.open }, size: size, fullWidth: fullWidth, disabled: disabled, readonly: readonly, validationStatus: validationStatus }, showLeftIcon && (h("span", { key: '0f70c956b1be70903d518c3dc787fc3980a0c205', slot: "left-icon", class: {
889
- ["readonly"]: !!readonly,
890
- ["has-value"]: !!this.value,
891
- } }, h("slot", { key: '7e602e257167e4397fc131b118da86b0e3d38583', name: "icon" }))), readonly ? (h("ic-typography", null, h("p", null, valueLabelString))) : isMobileOrTablet() && !multiple ? (h("select", Object.assign({ ref: (el) => (this.nativeSelectElement = el), disabled: disabled, onChange: this.handleNativeSelectChange, required: required, id: this.inputId, "aria-label": label, "aria-describedby": describedBy, "aria-invalid": invalid, onBlur: this.onBlur, onFocus: this.onFocus, onKeyDown: this.handleNativeSelectKeyDown, form: this.form }, this.inheritedAttributes), h("option", { value: "", selected: true, disabled: !showClearButton }, placeholder), options.map((option) => {
892
- if (option.children) {
893
- return (h("optgroup", { label: option.label }, option.children.map((option) => (h("option", { value: option.value, disabled: option.disabled, selected: option.value === currValue }, option.label)))));
894
- }
895
- else {
896
- return (h("option", { value: option.value, disabled: option.disabled, selected: option.value === currValue }, option.label));
897
- }
898
- }))) : searchable ? (h("div", { class: "searchable-select-container" }, h("input", { class: {
821
+ }, onBlur: this.onBlur }, h("ic-input-container", { key: 'd3d0381138d095fb6c2c673d543b9b61710c064b', readonly: readonly }, !hideLabel && (h("ic-input-label", { key: '9cc4c487e780d00eed4bc4e4e3c3cbb66aab2a14', for: inputId, label: label, helperText: helperText, required: required, disabled: disabled, readonly: readonly })), h("ic-input-component-container", { key: 'cc15c6396b6edcd506e2caa93871ec529f6f25a4', ref: (el) => (this.anchorEl = el), class: { "menu-open": open }, size: size, fullWidth: fullWidth, disabled: disabled, readonly: readonly, validationStatus: validationStatus }, isSlotUsed(this.el, "icon") &&
822
+ !disabled &&
823
+ (!readonly || !!value) && (h("span", { key: '21933fa4367b40e02fc41692a35f612f0c6c17d5', slot: "left-icon", class: {
824
+ readonly,
825
+ "has-value": !!value,
826
+ } }, h("slot", { key: 'ad5ca4da28e3fb74526668811a042d7efdfad10c', name: "icon" }))), readonly ? (h("ic-typography", null, h("p", null, valueLabelString))) : isMobileOrTablet() && !multiple ? (h("select", Object.assign({ ref: (el) => (this.nativeSelectElement = el), disabled: disabled, onChange: this.handleNativeSelectChange, required: required, id: inputId, "aria-label": label, "aria-describedby": describedBy, "aria-invalid": invalid, onBlur: this.onBlur, onFocus: this.onFocus, onKeyDown: this.handleNativeSelectKeyDown, form: form }, inheritedAttributes), h("option", { value: "", selected: true, disabled: !showClearButton }, placeholder), options.map((option) => option.children ? (h("optgroup", { label: option.label }, option.children.map((child) => this.renderNativeOption(child)))) : (this.renderNativeOption(option))))) : searchable ? (h("div", { class: "searchable-select-container" }, h("input", { class: {
899
827
  "select-input": true,
900
- "with-clear-button": !!this.searchableSelectInputValue,
901
- }, role: "combobox", autocomplete: "off", "aria-label": label, "aria-describedby": describedBy, "aria-activedescendant": this.ariaActiveDescendant, "aria-autocomplete": "list", "aria-expanded": `${this.open}`, "aria-invalid": invalid, "aria-required": `${required}`, "aria-controls": menuId, ref: (el) => (this.searchableSelectElement = el), id: this.inputId, value: this.searchableSelectInputValue || undefined, placeholder: placeholder, disabled: disabled, onInput: this.handleSearchableSelectInput, onClick: this.handleClick, onKeyDown: this.handleKeyDown, onFocus: this.onFocus, onBlur: this.onBlur, form: this.form }), isClearable && (h("div", { class: "clear-button-container" }, h("ic-button", { id: "clear-button", ref: (el) => (this.clearButton = el), "aria-label": this.searchableSelectInputValue &&
902
- (currValue === null || this.loading)
828
+ "with-clear-button": !!searchableSelectInputValue,
829
+ }, role: "combobox", autocomplete: "off", "aria-label": label, "aria-describedby": describedBy, "aria-activedescendant": ariaActiveDescendant, "aria-autocomplete": "list", "aria-expanded": `${open}`, "aria-invalid": invalid, "aria-required": `${required}`, "aria-controls": menuId, ref: (el) => (this.searchableSelectElement = el), id: inputId, value: searchableSelectInputValue || undefined, placeholder: placeholder, disabled: disabled, onInput: this.handleSearchableSelectInput, onClick: this.handleClick, onKeyDown: this.handleKeyDown, onFocus: this.onFocus, onBlur: this.onBlur, form: form }), isClearable && (h("div", { class: "clear-button-container" }, h("ic-button", { id: "clear-button", ref: (el) => (this.clearButton = el), "aria-label": searchableSelectInputValue &&
830
+ (currValue === null || loading)
903
831
  ? "Clear input"
904
- : "Clear selection", class: "clear-button", innerHTML: Clear, onClick: this.handleClear, onFocus: this.handleClearButtonFocus, onBlur: this.handleClearButtonBlur, size: size, variant: "icon", theme: this.clearButtonFocused ? "light" : "dark" }), h("div", { class: "divider" }))), h("span", { onMouseDown: this.handleExpandIconMouseDown, class: {
832
+ : "Clear selection", class: "clear-button", innerHTML: Clear, onClick: this.handleClear, onFocus: this.handleClearButtonFocus, onBlur: this.handleClearButtonBlur, size: size, variant: "icon", theme: clearButtonFocused ? "light" : "dark" }), h("div", { class: "divider" }))), h("span", { onMouseDown: this.handleExpandIconMouseDown, class: {
905
833
  "expand-icon": true,
906
- "expand-icon-open": this.open,
907
- }, innerHTML: Expand, "aria-hidden": "true" }), h("div", { "aria-live": "polite", role: "status", class: "searchable-select-results-status" }))) : (h("div", { class: "select-container" }, h("button", { class: "select-input", ref: (el) => (this.customSelectElement = el), id: this.inputId, "aria-label": `${label}, ${(multiple && currValue
908
- ? `${optionsSelectedCount}, ${valueLabelString}`
909
- : valueLabelString) || placeholder}${required ? ", required" : ""}`, "aria-describedby": describedBy, "aria-invalid": invalid, "aria-haspopup": "listbox", "aria-expanded": this.open ? "true" : "false", "aria-owns": menuId, "aria-controls": menuId, disabled: disabled, onBlur: this.onBlur, onFocus: this.onFocus, onClick: this.handleClick, onMouseDown: this.handleMouseDown, onKeyDown: this.handleKeyDown }, h("ic-typography", { variant: "body", class: {
834
+ "expand-icon-open": open,
835
+ }, innerHTML: Expand, "aria-hidden": "true" }), h("div", { "aria-live": "polite", role: "status", class: "searchable-select-results-status" }))) : (h("div", { class: "select-container" }, h("button", { class: "select-input", ref: (el) => (this.customSelectElement = el), id: inputId, "aria-label": `${label}, ${(multiple && currValue
836
+ ? `${currValue.length} of ${getOptionsWithoutGroupTitlesCount(options)} selected, ${valueLabelString}`
837
+ : valueLabelString) || placeholder}${required ? ", required" : ""}`, "aria-describedby": describedBy, "aria-invalid": invalid, "aria-haspopup": "listbox", "aria-expanded": `${open}`, "aria-owns": menuId, "aria-controls": menuId, disabled: disabled, onBlur: this.onBlur, onFocus: this.onFocus, onClick: this.handleClick, onMouseDown: this.handleMouseDown, onKeyDown: this.handleKeyDown }, h("ic-typography", { variant: "body", class: {
910
838
  "value-text": true,
911
- "with-clear-button": !!isClearable,
912
- placeholder: !this.loading && multiple
913
- ? !this.value || this.value.length < 1
839
+ "with-clear-button": isClearable,
840
+ placeholder: !loading && multiple
841
+ ? !value || value.length < 1
914
842
  : !this.getLabelFromValue(currValue),
915
843
  } }, valueLabelString || placeholder), h("div", { class: "select-input-end" }, isClearable && h("div", { class: "divider" }), h("span", { class: {
916
844
  "expand-icon": true,
917
- "expand-icon-open": this.open,
918
- }, innerHTML: Expand, "aria-hidden": "true" }))), isClearable && (h("ic-button", { id: "clear-button", "aria-label": "Clear selection", class: "clear-button", innerHTML: Clear, onClick: this.handleClear, onFocus: this.handleClearButtonFocus, onBlur: this.handleClearButtonBlur, size: size, variant: "icon", theme: this.clearButtonFocused ? "light" : "dark" }))))), (!isMobileOrTablet() || multiple) && (h("ic-menu", { key: 'f54e79314035d2c04a47292eb9e8e2ecd4421545', class: {
919
- "no-results": this.loading ||
920
- this.hasTimedOut ||
921
- (this.noOptions !== null &&
922
- this.noOptions[0] &&
923
- this.noOptions[0].label === this.emptyOptionListText),
924
- }, ref: (el) => (this.menu = el), inputEl: (searchable
845
+ "expand-icon-open": open,
846
+ }, innerHTML: Expand, "aria-hidden": "true" }))), isClearable && (h("ic-button", { id: "clear-button", "aria-label": "Clear selection", class: "clear-button", innerHTML: Clear, onClick: this.handleClear, onFocus: this.handleClearButtonFocus, onBlur: this.handleClearButtonBlur, size: size, variant: "icon", theme: clearButtonFocused ? "light" : "dark" }))))), (!isMobileOrTablet() || multiple) && (h("ic-menu", { key: '341d478ae904d5bd2a4c6fa54fb29802d2851f3e', class: {
847
+ "no-results": loading ||
848
+ hasTimedOut ||
849
+ ((_a = noOptions === null || noOptions === void 0 ? void 0 : noOptions[0]) === null || _a === void 0 ? void 0 : _a.label) === emptyOptionListText,
850
+ }, ref: (el) => (this.menu = el), inputEl: searchable
925
851
  ? this.searchableSelectElement
926
- : this.customSelectElement), inputLabel: label, anchorEl: this.anchorEl, size: size, menuId: menuId, open: this.open, options: searchable ? this.filteredOptions : this.uniqueOptions, value: multiple ? currValue : currValue, fullWidth: fullWidth, selectOnEnter: this.selectOnEnter, onMenuStateChange: this.handleMenuChange, onMenuOptionSelect: this.handleCustomSelectChange, onMenuOptionSelectAll: this.handleSelectAllChange, onMenuKeyPress: this.handleMenuKeyPress, onUngroupedOptionsSet: this.setUngroupedOptions, onRetryButtonClicked: this.handleRetry, parentEl: this.el, onTimeoutBlur: this.onTimeoutBlur, activationType: this.searchable || multiple || this.selectOnEnter
927
- ? "manual"
928
- : "automatic", closeOnSelect: !multiple })), this.multiple && (h("div", { key: 'b1a65d56087d6603846cdd9cfc8c086e49597001', "aria-live": "polite", role: "status", class: "multi-select-selected-count" })), hasValidationStatus(this.validationStatus, !!this.disabled) && (h("ic-input-validation", { key: 'e5553be7be57e5ae847bcd1a4d2525b18c4d1429', class: { "menu-open": this.open }, ariaLiveMode: "polite", status: validationStatus, message: validationText || "", for: this.inputId })))));
852
+ : this.customSelectElement, inputLabel: label, anchorEl: this.anchorEl, size: size, menuId: menuId, open: open, options: searchable ? filteredOptions : uniqueOptions, value: multiple ? currValue : currValue, fullWidth: fullWidth, selectOnEnter: selectOnEnter, onMenuStateChange: this.handleMenuChange, onMenuOptionSelect: this.handleCustomSelectChange, onMenuOptionSelectAll: this.handleSelectAllChange, onMenuKeyPress: this.handleMenuKeyPress, onUngroupedOptionsSet: this.setUngroupedOptions, onRetryButtonClicked: this.handleRetry, parentEl: this.el, onTimeoutBlur: this.onTimeoutBlur, activationType: searchable || multiple || selectOnEnter ? "manual" : "automatic", closeOnSelect: !multiple })), multiple && (h("div", { key: '8fb9874132ab430dc90eba61264424fcf200b944', "aria-live": "polite", role: "status", class: "multi-select-selected-count" })), hasValidationStatus(validationStatus, disabled) && (h("ic-input-validation", { key: '872afd5e8f621258c64756d06061a266a4e09745', class: { "menu-open": open }, ariaLiveMode: "polite", status: validationStatus, message: validationText, for: inputId })))));
929
853
  }
930
854
  static get delegatesFocus() { return true; }
931
855
  get el() { return this; }