@ukic/canary-web-components 3.0.0-canary.1 → 3.0.0-canary.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (646) hide show
  1. package/dist/cjs/core.cjs.js +1 -1
  2. package/dist/cjs/{helpers-33b42cd6.js → helpers-36cdc6cb.js} +24 -1
  3. package/dist/cjs/helpers-36cdc6cb.js.map +1 -0
  4. package/dist/cjs/{helpers-6817cfbb.js → helpers-a67ad3a4.js} +15 -129
  5. package/dist/cjs/helpers-a67ad3a4.js.map +1 -0
  6. package/dist/cjs/ic-accordion-group.cjs.entry.js +1 -1
  7. package/dist/cjs/ic-accordion.cjs.entry.js +2 -2
  8. package/dist/cjs/ic-accordion.cjs.entry.js.map +1 -1
  9. package/dist/cjs/ic-alert.cjs.entry.js +2 -2
  10. package/dist/cjs/ic-alert.cjs.entry.js.map +1 -1
  11. package/dist/cjs/ic-back-to-top.cjs.entry.js +1 -1
  12. package/dist/cjs/ic-badge.cjs.entry.js +2 -2
  13. package/dist/cjs/ic-badge.cjs.entry.js.map +1 -1
  14. package/dist/cjs/ic-breadcrumb-group.cjs.entry.js +1 -1
  15. package/dist/cjs/ic-breadcrumb.cjs.entry.js +2 -2
  16. package/dist/cjs/ic-breadcrumb.cjs.entry.js.map +1 -1
  17. package/dist/cjs/ic-button_3.cjs.entry.js +17 -16
  18. package/dist/cjs/ic-button_3.cjs.entry.js.map +1 -1
  19. package/dist/cjs/ic-card-horizontal.cjs.entry.js +2 -2
  20. package/dist/cjs/ic-card-horizontal.cjs.entry.js.map +1 -1
  21. package/dist/cjs/ic-card-vertical.cjs.entry.js +2 -2
  22. package/dist/cjs/ic-card-vertical.cjs.entry.js.map +1 -1
  23. package/dist/cjs/ic-checkbox-group.cjs.entry.js +3 -3
  24. package/dist/cjs/ic-checkbox-group.cjs.entry.js.map +1 -1
  25. package/dist/cjs/ic-checkbox.cjs.entry.js +3 -3
  26. package/dist/cjs/ic-checkbox.cjs.entry.js.map +1 -1
  27. package/dist/cjs/ic-chip.cjs.entry.js +21 -14
  28. package/dist/cjs/ic-chip.cjs.entry.js.map +1 -1
  29. package/dist/cjs/ic-classification-banner.cjs.entry.js +1 -1
  30. package/dist/cjs/ic-classification-banner.cjs.entry.js.map +1 -1
  31. package/dist/cjs/ic-data-row.cjs.entry.js +1 -1
  32. package/dist/cjs/ic-data-table-title-bar.cjs.entry.js +2 -2
  33. package/dist/cjs/ic-data-table-title-bar.cjs.entry.js.map +1 -1
  34. package/dist/cjs/ic-data-table.cjs.entry.js +31 -8
  35. package/dist/cjs/ic-data-table.cjs.entry.js.map +1 -1
  36. package/dist/cjs/ic-date-input.cjs.entry.js +11 -10
  37. package/dist/cjs/ic-date-input.cjs.entry.js.map +1 -1
  38. package/dist/cjs/ic-date-picker.cjs.entry.js +4 -2
  39. package/dist/cjs/ic-date-picker.cjs.entry.js.map +1 -1
  40. package/dist/cjs/ic-dialog.cjs.entry.js +1 -1
  41. package/dist/cjs/ic-divider.cjs.entry.js +2 -2
  42. package/dist/cjs/ic-divider.cjs.entry.js.map +1 -1
  43. package/dist/cjs/ic-empty-state_2.cjs.entry.js +24 -17
  44. package/dist/cjs/ic-empty-state_2.cjs.entry.js.map +1 -1
  45. package/dist/cjs/ic-footer-link-group.cjs.entry.js +2 -2
  46. package/dist/cjs/ic-footer-link-group.cjs.entry.js.map +1 -1
  47. package/dist/cjs/ic-footer-link.cjs.entry.js +2 -2
  48. package/dist/cjs/ic-footer-link.cjs.entry.js.map +1 -1
  49. package/dist/cjs/ic-footer.cjs.entry.js +2 -2
  50. package/dist/cjs/ic-footer.cjs.entry.js.map +1 -1
  51. package/dist/cjs/ic-hero.cjs.entry.js +1 -1
  52. package/dist/cjs/ic-horizontal-scroll.cjs.entry.js +2 -2
  53. package/dist/cjs/ic-horizontal-scroll.cjs.entry.js.map +1 -1
  54. package/dist/cjs/ic-input-component-container_3.cjs.entry.js +1012 -0
  55. package/dist/cjs/ic-input-component-container_3.cjs.entry.js.map +1 -0
  56. package/dist/cjs/ic-input-label_2.cjs.entry.js +86 -0
  57. package/dist/cjs/ic-input-label_2.cjs.entry.js.map +1 -0
  58. package/dist/cjs/ic-link.cjs.entry.js +2 -2
  59. package/dist/cjs/ic-link.cjs.entry.js.map +1 -1
  60. package/dist/cjs/ic-menu-group.cjs.entry.js +2 -2
  61. package/dist/cjs/ic-menu-group.cjs.entry.js.map +1 -1
  62. package/dist/cjs/ic-menu-item.cjs.entry.js +2 -2
  63. package/dist/cjs/ic-menu-item.cjs.entry.js.map +1 -1
  64. package/dist/cjs/ic-navigation-button.cjs.entry.js +1 -1
  65. package/dist/cjs/ic-navigation-group.cjs.entry.js +2 -2
  66. package/dist/cjs/ic-navigation-group.cjs.entry.js.map +1 -1
  67. package/dist/cjs/ic-navigation-item.cjs.entry.js +2 -2
  68. package/dist/cjs/ic-navigation-item.cjs.entry.js.map +1 -1
  69. package/dist/cjs/ic-navigation-menu.cjs.entry.js +2 -2
  70. package/dist/cjs/ic-navigation-menu.cjs.entry.js.map +1 -1
  71. package/dist/cjs/ic-page-header.cjs.entry.js +5 -5
  72. package/dist/cjs/ic-page-header.cjs.entry.js.map +1 -1
  73. package/dist/cjs/ic-pagination_4.cjs.entry.js +151 -41
  74. package/dist/cjs/ic-pagination_4.cjs.entry.js.map +1 -1
  75. package/dist/cjs/ic-popover-menu.cjs.entry.js +27 -21
  76. package/dist/cjs/ic-popover-menu.cjs.entry.js.map +1 -1
  77. package/dist/cjs/ic-radio-group.cjs.entry.js +20 -10
  78. package/dist/cjs/ic-radio-group.cjs.entry.js.map +1 -1
  79. package/dist/cjs/ic-radio-option.cjs.entry.js +27 -22
  80. package/dist/cjs/ic-radio-option.cjs.entry.js.map +1 -1
  81. package/dist/cjs/ic-search-bar.cjs.entry.js +12 -25
  82. package/dist/cjs/ic-search-bar.cjs.entry.js.map +1 -1
  83. package/dist/cjs/ic-side-navigation.cjs.entry.js +2 -2
  84. package/dist/cjs/ic-side-navigation.cjs.entry.js.map +1 -1
  85. package/dist/cjs/ic-skeleton.cjs.entry.js +4 -4
  86. package/dist/cjs/ic-skeleton.cjs.entry.js.map +1 -1
  87. package/dist/cjs/ic-status-tag.cjs.entry.js +2 -2
  88. package/dist/cjs/ic-status-tag.cjs.entry.js.map +1 -1
  89. package/dist/cjs/ic-step.cjs.entry.js +4 -5
  90. package/dist/cjs/ic-step.cjs.entry.js.map +1 -1
  91. package/dist/cjs/ic-stepper.cjs.entry.js +12 -2
  92. package/dist/cjs/ic-stepper.cjs.entry.js.map +1 -1
  93. package/dist/cjs/ic-switch.cjs.entry.js +7 -4
  94. package/dist/cjs/ic-switch.cjs.entry.js.map +1 -1
  95. package/dist/cjs/ic-tab-context.cjs.entry.js +58 -122
  96. package/dist/cjs/ic-tab-context.cjs.entry.js.map +1 -1
  97. package/dist/cjs/ic-tab-group.cjs.entry.js +1 -1
  98. package/dist/cjs/ic-tab-panel.cjs.entry.js +2 -2
  99. package/dist/cjs/ic-tab-panel.cjs.entry.js.map +1 -1
  100. package/dist/cjs/ic-tab.cjs.entry.js +6 -7
  101. package/dist/cjs/ic-tab.cjs.entry.js.map +1 -1
  102. package/dist/cjs/ic-theme.cjs.entry.js +1 -1
  103. package/dist/cjs/ic-toast.cjs.entry.js +3 -3
  104. package/dist/cjs/ic-toast.cjs.entry.js.map +1 -1
  105. package/dist/cjs/ic-toggle-button.cjs.entry.js +2 -2
  106. package/dist/cjs/ic-toggle-button.cjs.entry.js.map +1 -1
  107. package/dist/cjs/ic-top-navigation.cjs.entry.js +2 -2
  108. package/dist/cjs/ic-top-navigation.cjs.entry.js.map +1 -1
  109. package/dist/cjs/ic-tree-item.cjs.entry.js +5 -3
  110. package/dist/cjs/ic-tree-item.cjs.entry.js.map +1 -1
  111. package/dist/cjs/ic-tree-view.cjs.entry.js +10 -2
  112. package/dist/cjs/ic-tree-view.cjs.entry.js.map +1 -1
  113. package/dist/cjs/ic-typography.cjs.entry.js +5 -3
  114. package/dist/cjs/ic-typography.cjs.entry.js.map +1 -1
  115. package/dist/cjs/index-4cf27b16.js +4 -12
  116. package/dist/cjs/loader.cjs.js +1 -1
  117. package/dist/collection/collection-manifest.json +0 -2
  118. package/dist/collection/components/ic-card-horizontal/ic-card-horizontal.css +8 -8
  119. package/dist/collection/components/ic-data-table/ic-data-table.css +20 -4
  120. package/dist/collection/components/ic-data-table/ic-data-table.js +35 -12
  121. package/dist/collection/components/ic-data-table/ic-data-table.js.map +1 -1
  122. package/dist/collection/components/ic-data-table/story-data.js +46 -5
  123. package/dist/collection/components/ic-data-table/story-data.js.map +1 -1
  124. package/dist/collection/components/ic-data-table-title-bar/ic-data-table-title-bar.css +3 -3
  125. package/dist/collection/components/ic-date-input/ic-date-input.css +3 -3
  126. package/dist/collection/components/ic-date-input/ic-date-input.js +27 -8
  127. package/dist/collection/components/ic-date-input/ic-date-input.js.map +1 -1
  128. package/dist/collection/components/ic-date-picker/ic-date-picker.css +6 -6
  129. package/dist/collection/components/ic-date-picker/ic-date-picker.js +20 -0
  130. package/dist/collection/components/ic-date-picker/ic-date-picker.js.map +1 -1
  131. package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.js +72 -21
  132. package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.js.map +1 -1
  133. package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.types.js +2 -0
  134. package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.types.js.map +1 -0
  135. package/dist/collection/components/ic-pagination-bar/test/basic/ic-pagination-bar.spec.js +20 -2
  136. package/dist/collection/components/ic-pagination-bar/test/basic/ic-pagination-bar.spec.js.map +1 -1
  137. package/dist/collection/components/ic-tree-item/ic-tree-item.css +13 -2
  138. package/dist/collection/components/ic-tree-item/ic-tree-item.js +23 -3
  139. package/dist/collection/components/ic-tree-item/ic-tree-item.js.map +1 -1
  140. package/dist/collection/components/ic-tree-view/ic-tree-view.js +29 -1
  141. package/dist/collection/components/ic-tree-view/ic-tree-view.js.map +1 -1
  142. package/dist/collection/utils/helpers.js +1 -1
  143. package/dist/collection/utils/helpers.js.map +1 -1
  144. package/dist/collection/utils/types.js.map +1 -1
  145. package/dist/components/helpers.js +22 -1
  146. package/dist/components/helpers.js.map +1 -1
  147. package/dist/components/helpers2.js +14 -121
  148. package/dist/components/helpers2.js.map +1 -1
  149. package/dist/components/ic-accordion.js +1 -1
  150. package/dist/components/ic-accordion.js.map +1 -1
  151. package/dist/components/ic-alert.js +1 -1
  152. package/dist/components/ic-alert.js.map +1 -1
  153. package/dist/components/ic-badge.js +1 -1
  154. package/dist/components/ic-badge.js.map +1 -1
  155. package/dist/components/ic-breadcrumb2.js +1 -1
  156. package/dist/components/ic-breadcrumb2.js.map +1 -1
  157. package/dist/components/ic-button2.js +6 -7
  158. package/dist/components/ic-button2.js.map +1 -1
  159. package/dist/components/ic-card-horizontal.js +1 -1
  160. package/dist/components/ic-card-horizontal.js.map +1 -1
  161. package/dist/components/ic-card-vertical.js +1 -1
  162. package/dist/components/ic-card-vertical.js.map +1 -1
  163. package/dist/components/ic-checkbox-group.js +2 -2
  164. package/dist/components/ic-checkbox-group.js.map +1 -1
  165. package/dist/components/ic-checkbox.js +2 -2
  166. package/dist/components/ic-checkbox.js.map +1 -1
  167. package/dist/components/ic-chip.js +23 -14
  168. package/dist/components/ic-chip.js.map +1 -1
  169. package/dist/components/ic-classification-banner.js +1 -1
  170. package/dist/components/ic-classification-banner.js.map +1 -1
  171. package/dist/components/ic-data-table-title-bar.js +1 -1
  172. package/dist/components/ic-data-table-title-bar.js.map +1 -1
  173. package/dist/components/ic-data-table.js +31 -8
  174. package/dist/components/ic-data-table.js.map +1 -1
  175. package/dist/components/ic-date-input2.js +12 -10
  176. package/dist/components/ic-date-input2.js.map +1 -1
  177. package/dist/components/ic-date-picker.js +5 -2
  178. package/dist/components/ic-date-picker.js.map +1 -1
  179. package/dist/components/ic-divider2.js +1 -1
  180. package/dist/components/ic-divider2.js.map +1 -1
  181. package/dist/components/ic-footer-link-group.js +1 -1
  182. package/dist/components/ic-footer-link-group.js.map +1 -1
  183. package/dist/components/ic-footer-link.js +1 -1
  184. package/dist/components/ic-footer-link.js.map +1 -1
  185. package/dist/components/ic-footer.js +2 -2
  186. package/dist/components/ic-footer.js.map +1 -1
  187. package/dist/components/ic-horizontal-scroll2.js +2 -2
  188. package/dist/components/ic-horizontal-scroll2.js.map +1 -1
  189. package/dist/components/ic-input-component-container2.js +1 -1
  190. package/dist/components/ic-input-component-container2.js.map +1 -1
  191. package/dist/components/ic-input-label2.js +10 -6
  192. package/dist/components/ic-input-label2.js.map +1 -1
  193. package/dist/components/ic-input-validation2.js +1 -1
  194. package/dist/components/ic-input-validation2.js.map +1 -1
  195. package/dist/components/ic-link2.js +1 -1
  196. package/dist/components/ic-link2.js.map +1 -1
  197. package/dist/components/ic-loading-indicator2.js +11 -9
  198. package/dist/components/ic-loading-indicator2.js.map +1 -1
  199. package/dist/components/ic-menu-group.js +1 -1
  200. package/dist/components/ic-menu-group.js.map +1 -1
  201. package/dist/components/ic-menu-item2.js +1 -1
  202. package/dist/components/ic-menu-item2.js.map +1 -1
  203. package/dist/components/ic-menu2.js +450 -167
  204. package/dist/components/ic-menu2.js.map +1 -1
  205. package/dist/components/ic-navigation-group.js +2 -2
  206. package/dist/components/ic-navigation-group.js.map +1 -1
  207. package/dist/components/ic-navigation-item.js +2 -2
  208. package/dist/components/ic-navigation-item.js.map +1 -1
  209. package/dist/components/ic-navigation-menu2.js +2 -2
  210. package/dist/components/ic-navigation-menu2.js.map +1 -1
  211. package/dist/components/ic-page-header.js +4 -4
  212. package/dist/components/ic-page-header.js.map +1 -1
  213. package/dist/components/ic-pagination-bar2.js +27 -17
  214. package/dist/components/ic-pagination-bar2.js.map +1 -1
  215. package/dist/components/ic-pagination-item2.js +2 -2
  216. package/dist/components/ic-pagination-item2.js.map +1 -1
  217. package/dist/components/ic-popover-menu.js +30 -22
  218. package/dist/components/ic-popover-menu.js.map +1 -1
  219. package/dist/components/ic-radio-group.js +19 -9
  220. package/dist/components/ic-radio-group.js.map +1 -1
  221. package/dist/components/ic-radio-option.js +27 -22
  222. package/dist/components/ic-radio-option.js.map +1 -1
  223. package/dist/components/ic-search-bar.js +12 -25
  224. package/dist/components/ic-search-bar.js.map +1 -1
  225. package/dist/components/ic-select2.js +149 -38
  226. package/dist/components/ic-select2.js.map +1 -1
  227. package/dist/components/ic-side-navigation.js +2 -2
  228. package/dist/components/ic-side-navigation.js.map +1 -1
  229. package/dist/components/ic-skeleton.js +5 -5
  230. package/dist/components/ic-skeleton.js.map +1 -1
  231. package/dist/components/ic-status-tag.js +1 -1
  232. package/dist/components/ic-status-tag.js.map +1 -1
  233. package/dist/components/ic-step.js +4 -4
  234. package/dist/components/ic-step.js.map +1 -1
  235. package/dist/components/ic-stepper.js +14 -3
  236. package/dist/components/ic-stepper.js.map +1 -1
  237. package/dist/components/ic-switch.js +7 -3
  238. package/dist/components/ic-switch.js.map +1 -1
  239. package/dist/components/ic-tab-context.js +58 -122
  240. package/dist/components/ic-tab-context.js.map +1 -1
  241. package/dist/components/ic-tab-panel.js +1 -1
  242. package/dist/components/ic-tab-panel.js.map +1 -1
  243. package/dist/components/ic-tab.js +5 -6
  244. package/dist/components/ic-tab.js.map +1 -1
  245. package/dist/components/ic-text-field2.js +3 -3
  246. package/dist/components/ic-text-field2.js.map +1 -1
  247. package/dist/components/ic-theme.js +1 -1
  248. package/dist/components/ic-toast.js +3 -3
  249. package/dist/components/ic-toast.js.map +1 -1
  250. package/dist/components/ic-toggle-button.js +1 -1
  251. package/dist/components/ic-toggle-button.js.map +1 -1
  252. package/dist/components/ic-tooltip2.js +1 -1
  253. package/dist/components/ic-tooltip2.js.map +1 -1
  254. package/dist/components/ic-top-navigation.js +2 -2
  255. package/dist/components/ic-top-navigation.js.map +1 -1
  256. package/dist/components/ic-tree-item.js +5 -2
  257. package/dist/components/ic-tree-item.js.map +1 -1
  258. package/dist/components/ic-tree-view.js +12 -2
  259. package/dist/components/ic-tree-view.js.map +1 -1
  260. package/dist/components/ic-typography2.js +4 -2
  261. package/dist/components/ic-typography2.js.map +1 -1
  262. package/dist/core/core.css +661 -37
  263. package/dist/core/core.esm.js +1 -1
  264. package/dist/core/core.esm.js.map +1 -1
  265. package/dist/core/{p-c033e7d6.entry.js → p-036d251b.entry.js} +2 -2
  266. package/dist/core/{p-9397b15b.js → p-043cf5de.js} +2 -2
  267. package/dist/core/p-043cf5de.js.map +1 -0
  268. package/dist/core/p-044689ef.entry.js +2 -0
  269. package/dist/core/p-044689ef.entry.js.map +1 -0
  270. package/dist/core/p-095da817.entry.js +2 -0
  271. package/dist/core/p-095da817.entry.js.map +1 -0
  272. package/dist/core/{p-cb6cebdd.entry.js → p-13d2db9b.entry.js} +2 -2
  273. package/dist/core/{p-cb6cebdd.entry.js.map → p-13d2db9b.entry.js.map} +1 -1
  274. package/dist/core/p-13e01a1e.entry.js +2 -0
  275. package/dist/core/p-13e01a1e.entry.js.map +1 -0
  276. package/dist/core/p-1ae71507.entry.js +2 -0
  277. package/dist/core/p-1ae71507.entry.js.map +1 -0
  278. package/dist/core/p-2200ca85.entry.js +2 -0
  279. package/dist/core/p-2200ca85.entry.js.map +1 -0
  280. package/dist/core/p-2257f5e8.entry.js +2 -0
  281. package/dist/core/p-2257f5e8.entry.js.map +1 -0
  282. package/dist/core/{p-897b8d16.entry.js → p-24d03bbd.entry.js} +2 -2
  283. package/dist/core/{p-a78cf2cb.entry.js → p-266098ee.entry.js} +2 -2
  284. package/dist/core/{p-5f313e1a.entry.js → p-26613dbd.entry.js} +2 -2
  285. package/dist/core/{p-5f313e1a.entry.js.map → p-26613dbd.entry.js.map} +1 -1
  286. package/dist/core/p-283a2274.entry.js +2 -0
  287. package/dist/core/p-283a2274.entry.js.map +1 -0
  288. package/dist/core/{p-77a32de5.entry.js → p-2a3bd99a.entry.js} +2 -2
  289. package/dist/core/p-42f88966.entry.js +2 -0
  290. package/dist/core/p-42f88966.entry.js.map +1 -0
  291. package/dist/core/p-44ee5375.entry.js +2 -0
  292. package/dist/core/p-44ee5375.entry.js.map +1 -0
  293. package/dist/core/p-48a78218.entry.js +2 -0
  294. package/dist/core/p-48a78218.entry.js.map +1 -0
  295. package/dist/core/p-4e316ae5.entry.js +2 -0
  296. package/dist/core/p-4e316ae5.entry.js.map +1 -0
  297. package/dist/core/p-50dd2744.entry.js +2 -0
  298. package/dist/core/p-50dd2744.entry.js.map +1 -0
  299. package/dist/core/{p-bf670360.entry.js → p-51ea45cb.entry.js} +2 -2
  300. package/dist/core/{p-bf670360.entry.js.map → p-51ea45cb.entry.js.map} +1 -1
  301. package/dist/core/p-5458d818.entry.js +2 -0
  302. package/dist/core/p-5458d818.entry.js.map +1 -0
  303. package/dist/core/{p-202bc922.entry.js → p-5ad1a7fb.entry.js} +2 -2
  304. package/dist/core/p-5b061abc.entry.js +2 -0
  305. package/dist/core/p-5b061abc.entry.js.map +1 -0
  306. package/dist/core/{p-f98b1afc.entry.js → p-6727166b.entry.js} +2 -2
  307. package/dist/core/{p-f98b1afc.entry.js.map → p-6727166b.entry.js.map} +1 -1
  308. package/dist/core/p-6dc00a8f.entry.js +2 -0
  309. package/dist/core/p-6dc00a8f.entry.js.map +1 -0
  310. package/dist/core/p-6dffaac0.entry.js +2 -0
  311. package/dist/core/p-6dffaac0.entry.js.map +1 -0
  312. package/dist/core/p-6fd89ed5.entry.js +2 -0
  313. package/dist/core/p-6fd89ed5.entry.js.map +1 -0
  314. package/dist/core/p-7aa6b76e.entry.js +2 -0
  315. package/dist/core/p-7aa6b76e.entry.js.map +1 -0
  316. package/dist/core/{p-e5d99316.entry.js → p-7b90f0ae.entry.js} +2 -2
  317. package/dist/core/{p-5f5403e2.entry.js → p-7e1603cc.entry.js} +2 -2
  318. package/dist/core/p-7e1603cc.entry.js.map +1 -0
  319. package/dist/core/{p-30b046b2.entry.js → p-7e5b0fff.entry.js} +2 -2
  320. package/dist/core/{p-d8563643.entry.js → p-80b296cd.entry.js} +2 -2
  321. package/dist/core/p-80b296cd.entry.js.map +1 -0
  322. package/dist/core/{p-73b40c79.entry.js → p-82aa8136.entry.js} +2 -2
  323. package/dist/core/{p-73b40c79.entry.js.map → p-82aa8136.entry.js.map} +1 -1
  324. package/dist/core/p-83b4efe2.entry.js +2 -0
  325. package/dist/core/p-83b4efe2.entry.js.map +1 -0
  326. package/dist/core/p-83e4d955.entry.js +2 -0
  327. package/dist/core/p-83e4d955.entry.js.map +1 -0
  328. package/dist/core/p-86b608b5.entry.js +2 -0
  329. package/dist/core/p-86b608b5.entry.js.map +1 -0
  330. package/dist/core/p-878df16f.entry.js +2 -0
  331. package/dist/core/p-878df16f.entry.js.map +1 -0
  332. package/dist/core/p-89be0a21.js +2 -0
  333. package/dist/core/p-89be0a21.js.map +1 -0
  334. package/dist/core/{p-306def43.entry.js → p-8bec76d1.entry.js} +2 -2
  335. package/dist/core/p-8bec76d1.entry.js.map +1 -0
  336. package/dist/core/p-94141606.entry.js +2 -0
  337. package/dist/core/p-94141606.entry.js.map +1 -0
  338. package/dist/core/{p-108a9029.entry.js → p-94416b6b.entry.js} +2 -2
  339. package/dist/core/p-94416b6b.entry.js.map +1 -0
  340. package/dist/core/{p-f743b0eb.entry.js → p-a4439688.entry.js} +2 -2
  341. package/dist/core/{p-f743b0eb.entry.js.map → p-a4439688.entry.js.map} +1 -1
  342. package/dist/core/p-a8106c56.entry.js +2 -0
  343. package/dist/core/p-a8106c56.entry.js.map +1 -0
  344. package/dist/core/p-affd7f55.entry.js +2 -0
  345. package/dist/core/p-affd7f55.entry.js.map +1 -0
  346. package/dist/core/{p-c21d0db8.entry.js → p-b3d93bc1.entry.js} +2 -2
  347. package/dist/core/p-b3d93bc1.entry.js.map +1 -0
  348. package/dist/core/p-bac2beeb.entry.js +2 -0
  349. package/dist/core/p-bac2beeb.entry.js.map +1 -0
  350. package/dist/core/p-c29b2b48.entry.js +2 -0
  351. package/dist/core/p-c29b2b48.entry.js.map +1 -0
  352. package/dist/core/p-c40c57ee.entry.js +2 -0
  353. package/dist/core/p-c40c57ee.entry.js.map +1 -0
  354. package/dist/core/p-c6a62d1b.entry.js +2 -0
  355. package/dist/core/p-c6a62d1b.entry.js.map +1 -0
  356. package/dist/core/{p-266341f5.entry.js → p-cc22644d.entry.js} +2 -2
  357. package/dist/core/{p-266341f5.entry.js.map → p-cc22644d.entry.js.map} +1 -1
  358. package/dist/core/p-cfd81370.entry.js +2 -0
  359. package/dist/core/p-cfd81370.entry.js.map +1 -0
  360. package/dist/core/p-d53fb899.entry.js +2 -0
  361. package/dist/core/p-d53fb899.entry.js.map +1 -0
  362. package/dist/core/p-d5e9cf81.entry.js +2 -0
  363. package/dist/core/p-d5e9cf81.entry.js.map +1 -0
  364. package/dist/core/{p-505250cf.entry.js → p-d7632baf.entry.js} +2 -2
  365. package/dist/core/p-dcccd9c1.entry.js +2 -0
  366. package/dist/core/{p-aee8d45b.entry.js.map → p-dcccd9c1.entry.js.map} +1 -1
  367. package/dist/core/p-edfd0946.entry.js +2 -0
  368. package/dist/core/p-edfd0946.entry.js.map +1 -0
  369. package/dist/core/p-f1842a68.entry.js +2 -0
  370. package/dist/core/p-f1842a68.entry.js.map +1 -0
  371. package/dist/core/{p-f1072c28.entry.js → p-f64abdff.entry.js} +2 -2
  372. package/dist/core/p-f64abdff.entry.js.map +1 -0
  373. package/dist/core/p-f8c1d7e8.entry.js +2 -0
  374. package/dist/core/p-f8c1d7e8.entry.js.map +1 -0
  375. package/dist/core/{p-d03374fc.entry.js → p-fbb5c8f2.entry.js} +2 -2
  376. package/dist/core/p-fc2f336d.entry.js +2 -0
  377. package/dist/core/p-fc2f336d.entry.js.map +1 -0
  378. package/dist/esm/core.js +1 -1
  379. package/dist/esm/{helpers-5bd2012a.js → helpers-a7b13f5a.js} +15 -122
  380. package/dist/esm/helpers-a7b13f5a.js.map +1 -0
  381. package/dist/esm/{helpers-dab8ddfe.js → helpers-c326255f.js} +23 -2
  382. package/dist/esm/helpers-c326255f.js.map +1 -0
  383. package/dist/esm/ic-accordion-group.entry.js +1 -1
  384. package/dist/esm/ic-accordion.entry.js +2 -2
  385. package/dist/esm/ic-accordion.entry.js.map +1 -1
  386. package/dist/esm/ic-alert.entry.js +2 -2
  387. package/dist/esm/ic-alert.entry.js.map +1 -1
  388. package/dist/esm/ic-back-to-top.entry.js +1 -1
  389. package/dist/esm/ic-badge.entry.js +2 -2
  390. package/dist/esm/ic-badge.entry.js.map +1 -1
  391. package/dist/esm/ic-breadcrumb-group.entry.js +1 -1
  392. package/dist/esm/ic-breadcrumb.entry.js +2 -2
  393. package/dist/esm/ic-breadcrumb.entry.js.map +1 -1
  394. package/dist/esm/ic-button_3.entry.js +17 -16
  395. package/dist/esm/ic-button_3.entry.js.map +1 -1
  396. package/dist/esm/ic-card-horizontal.entry.js +2 -2
  397. package/dist/esm/ic-card-horizontal.entry.js.map +1 -1
  398. package/dist/esm/ic-card-vertical.entry.js +2 -2
  399. package/dist/esm/ic-card-vertical.entry.js.map +1 -1
  400. package/dist/esm/ic-checkbox-group.entry.js +3 -3
  401. package/dist/esm/ic-checkbox-group.entry.js.map +1 -1
  402. package/dist/esm/ic-checkbox.entry.js +3 -3
  403. package/dist/esm/ic-checkbox.entry.js.map +1 -1
  404. package/dist/esm/ic-chip.entry.js +22 -15
  405. package/dist/esm/ic-chip.entry.js.map +1 -1
  406. package/dist/esm/ic-classification-banner.entry.js +1 -1
  407. package/dist/esm/ic-classification-banner.entry.js.map +1 -1
  408. package/dist/esm/ic-data-row.entry.js +1 -1
  409. package/dist/esm/ic-data-table-title-bar.entry.js +2 -2
  410. package/dist/esm/ic-data-table-title-bar.entry.js.map +1 -1
  411. package/dist/esm/ic-data-table.entry.js +31 -8
  412. package/dist/esm/ic-data-table.entry.js.map +1 -1
  413. package/dist/esm/ic-date-input.entry.js +11 -10
  414. package/dist/esm/ic-date-input.entry.js.map +1 -1
  415. package/dist/esm/ic-date-picker.entry.js +4 -2
  416. package/dist/esm/ic-date-picker.entry.js.map +1 -1
  417. package/dist/esm/ic-dialog.entry.js +1 -1
  418. package/dist/esm/ic-divider.entry.js +2 -2
  419. package/dist/esm/ic-divider.entry.js.map +1 -1
  420. package/dist/esm/ic-empty-state_2.entry.js +24 -17
  421. package/dist/esm/ic-empty-state_2.entry.js.map +1 -1
  422. package/dist/esm/ic-footer-link-group.entry.js +2 -2
  423. package/dist/esm/ic-footer-link-group.entry.js.map +1 -1
  424. package/dist/esm/ic-footer-link.entry.js +2 -2
  425. package/dist/esm/ic-footer-link.entry.js.map +1 -1
  426. package/dist/esm/ic-footer.entry.js +2 -2
  427. package/dist/esm/ic-footer.entry.js.map +1 -1
  428. package/dist/esm/ic-hero.entry.js +1 -1
  429. package/dist/esm/ic-horizontal-scroll.entry.js +2 -2
  430. package/dist/esm/ic-horizontal-scroll.entry.js.map +1 -1
  431. package/dist/{collection/components/ic-menu-with-multi/ic-menu.js → esm/ic-input-component-container_3.entry.js} +157 -727
  432. package/dist/esm/ic-input-component-container_3.entry.js.map +1 -0
  433. package/dist/esm/ic-input-label_2.entry.js +81 -0
  434. package/dist/esm/ic-input-label_2.entry.js.map +1 -0
  435. package/dist/esm/ic-link.entry.js +2 -2
  436. package/dist/esm/ic-link.entry.js.map +1 -1
  437. package/dist/esm/ic-menu-group.entry.js +2 -2
  438. package/dist/esm/ic-menu-group.entry.js.map +1 -1
  439. package/dist/esm/ic-menu-item.entry.js +2 -2
  440. package/dist/esm/ic-menu-item.entry.js.map +1 -1
  441. package/dist/esm/ic-navigation-button.entry.js +1 -1
  442. package/dist/esm/ic-navigation-group.entry.js +2 -2
  443. package/dist/esm/ic-navigation-group.entry.js.map +1 -1
  444. package/dist/esm/ic-navigation-item.entry.js +2 -2
  445. package/dist/esm/ic-navigation-item.entry.js.map +1 -1
  446. package/dist/esm/ic-navigation-menu.entry.js +2 -2
  447. package/dist/esm/ic-navigation-menu.entry.js.map +1 -1
  448. package/dist/esm/ic-page-header.entry.js +5 -5
  449. package/dist/esm/ic-page-header.entry.js.map +1 -1
  450. package/dist/esm/ic-pagination_4.entry.js +151 -41
  451. package/dist/esm/ic-pagination_4.entry.js.map +1 -1
  452. package/dist/esm/ic-popover-menu.entry.js +27 -21
  453. package/dist/esm/ic-popover-menu.entry.js.map +1 -1
  454. package/dist/esm/ic-radio-group.entry.js +20 -10
  455. package/dist/esm/ic-radio-group.entry.js.map +1 -1
  456. package/dist/esm/ic-radio-option.entry.js +27 -22
  457. package/dist/esm/ic-radio-option.entry.js.map +1 -1
  458. package/dist/esm/ic-search-bar.entry.js +12 -25
  459. package/dist/esm/ic-search-bar.entry.js.map +1 -1
  460. package/dist/esm/ic-side-navigation.entry.js +2 -2
  461. package/dist/esm/ic-side-navigation.entry.js.map +1 -1
  462. package/dist/esm/ic-skeleton.entry.js +4 -4
  463. package/dist/esm/ic-skeleton.entry.js.map +1 -1
  464. package/dist/esm/ic-status-tag.entry.js +2 -2
  465. package/dist/esm/ic-status-tag.entry.js.map +1 -1
  466. package/dist/esm/ic-step.entry.js +4 -5
  467. package/dist/esm/ic-step.entry.js.map +1 -1
  468. package/dist/esm/ic-stepper.entry.js +12 -2
  469. package/dist/esm/ic-stepper.entry.js.map +1 -1
  470. package/dist/esm/ic-switch.entry.js +7 -4
  471. package/dist/esm/ic-switch.entry.js.map +1 -1
  472. package/dist/esm/ic-tab-context.entry.js +58 -122
  473. package/dist/esm/ic-tab-context.entry.js.map +1 -1
  474. package/dist/esm/ic-tab-group.entry.js +1 -1
  475. package/dist/esm/ic-tab-panel.entry.js +2 -2
  476. package/dist/esm/ic-tab-panel.entry.js.map +1 -1
  477. package/dist/esm/ic-tab.entry.js +6 -7
  478. package/dist/esm/ic-tab.entry.js.map +1 -1
  479. package/dist/esm/ic-theme.entry.js +1 -1
  480. package/dist/esm/ic-toast.entry.js +3 -3
  481. package/dist/esm/ic-toast.entry.js.map +1 -1
  482. package/dist/esm/ic-toggle-button.entry.js +2 -2
  483. package/dist/esm/ic-toggle-button.entry.js.map +1 -1
  484. package/dist/esm/ic-top-navigation.entry.js +2 -2
  485. package/dist/esm/ic-top-navigation.entry.js.map +1 -1
  486. package/dist/esm/ic-tree-item.entry.js +5 -3
  487. package/dist/esm/ic-tree-item.entry.js.map +1 -1
  488. package/dist/esm/ic-tree-view.entry.js +10 -2
  489. package/dist/esm/ic-tree-view.entry.js.map +1 -1
  490. package/dist/esm/ic-typography.entry.js +5 -3
  491. package/dist/esm/ic-typography.entry.js.map +1 -1
  492. package/dist/esm/index-93509377.js +4 -12
  493. package/dist/esm/loader.js +1 -1
  494. package/dist/types/components/ic-data-table/ic-data-table.d.ts +4 -0
  495. package/dist/types/components/ic-data-table/story-data.d.ts +15 -0
  496. package/dist/types/components/ic-date-input/ic-date-input.d.ts +4 -0
  497. package/dist/types/components/ic-date-picker/ic-date-picker.d.ts +4 -0
  498. package/dist/types/components/ic-pagination-bar/ic-pagination-bar.d.ts +14 -5
  499. package/dist/types/components/ic-pagination-bar/ic-pagination-bar.types.d.ts +4 -0
  500. package/dist/types/components/ic-tree-item/ic-tree-item.d.ts +5 -1
  501. package/dist/types/components/ic-tree-view/ic-tree-view.d.ts +5 -0
  502. package/dist/types/components.d.ts +63 -472
  503. package/dist/types/utils/helpers.d.ts +1 -1
  504. package/dist/types/utils/types.d.ts +1 -0
  505. package/hydrate/index.js +3695 -6960
  506. package/package.json +3 -3
  507. package/dist/cjs/helpers-33b42cd6.js.map +0 -1
  508. package/dist/cjs/helpers-6817cfbb.js.map +0 -1
  509. package/dist/cjs/ic-input-component-container_4.cjs.entry.js +0 -156
  510. package/dist/cjs/ic-input-component-container_4.cjs.entry.js.map +0 -1
  511. package/dist/cjs/ic-menu-with-multi.cjs.entry.js +0 -2738
  512. package/dist/cjs/ic-menu-with-multi.cjs.entry.js.map +0 -1
  513. package/dist/cjs/ic-menu.cjs.entry.js +0 -658
  514. package/dist/cjs/ic-menu.cjs.entry.js.map +0 -1
  515. package/dist/cjs/ic-select-with-multi.cjs.entry.js +0 -788
  516. package/dist/cjs/ic-select-with-multi.cjs.entry.js.map +0 -1
  517. package/dist/collection/components/ic-menu-with-multi/ic-menu.css +0 -712
  518. package/dist/collection/components/ic-menu-with-multi/ic-menu.js.map +0 -1
  519. package/dist/collection/components/ic-menu-with-multi/test/basic/ic-menu.spec.js +0 -1057
  520. package/dist/collection/components/ic-menu-with-multi/test/basic/ic-menu.spec.js.map +0 -1
  521. package/dist/collection/components/ic-select-with-multi/assets/Check.svg +0 -3
  522. package/dist/collection/components/ic-select-with-multi/assets/Clear.svg +0 -3
  523. package/dist/collection/components/ic-select-with-multi/assets/Expand.svg +0 -3
  524. package/dist/collection/components/ic-select-with-multi/ic-select.css +0 -695
  525. package/dist/collection/components/ic-select-with-multi/ic-select.js +0 -1520
  526. package/dist/collection/components/ic-select-with-multi/ic-select.js.map +0 -1
  527. package/dist/collection/components/ic-select-with-multi/story-data.js +0 -216
  528. package/dist/collection/components/ic-select-with-multi/story-data.js.map +0 -1
  529. package/dist/collection/components/ic-select-with-multi/test/basic/ic-select.spec.js +0 -1518
  530. package/dist/collection/components/ic-select-with-multi/test/basic/ic-select.spec.js.map +0 -1
  531. package/dist/components/ic-menu-with-multi.d.ts +0 -11
  532. package/dist/components/ic-menu-with-multi.js +0 -8
  533. package/dist/components/ic-menu-with-multi.js.map +0 -1
  534. package/dist/components/ic-menu3.js +0 -2803
  535. package/dist/components/ic-menu3.js.map +0 -1
  536. package/dist/components/ic-select-with-multi.d.ts +0 -11
  537. package/dist/components/ic-select-with-multi.js +0 -906
  538. package/dist/components/ic-select-with-multi.js.map +0 -1
  539. package/dist/core/p-06eeb7f2.entry.js +0 -2
  540. package/dist/core/p-06eeb7f2.entry.js.map +0 -1
  541. package/dist/core/p-0922c552.entry.js +0 -2
  542. package/dist/core/p-0922c552.entry.js.map +0 -1
  543. package/dist/core/p-0bc0e852.entry.js +0 -2
  544. package/dist/core/p-0bc0e852.entry.js.map +0 -1
  545. package/dist/core/p-108a9029.entry.js.map +0 -1
  546. package/dist/core/p-13100d3c.entry.js +0 -2
  547. package/dist/core/p-13100d3c.entry.js.map +0 -1
  548. package/dist/core/p-1769df1d.entry.js +0 -2
  549. package/dist/core/p-1769df1d.entry.js.map +0 -1
  550. package/dist/core/p-297e99cf.js +0 -2
  551. package/dist/core/p-297e99cf.js.map +0 -1
  552. package/dist/core/p-306def43.entry.js.map +0 -1
  553. package/dist/core/p-3778cc5e.entry.js +0 -2
  554. package/dist/core/p-3778cc5e.entry.js.map +0 -1
  555. package/dist/core/p-383a5a76.entry.js +0 -2
  556. package/dist/core/p-383a5a76.entry.js.map +0 -1
  557. package/dist/core/p-3a0510e2.entry.js +0 -2
  558. package/dist/core/p-3a0510e2.entry.js.map +0 -1
  559. package/dist/core/p-3ace51f5.entry.js +0 -2
  560. package/dist/core/p-3ace51f5.entry.js.map +0 -1
  561. package/dist/core/p-3f0391c1.entry.js +0 -2
  562. package/dist/core/p-3f0391c1.entry.js.map +0 -1
  563. package/dist/core/p-41fecc61.entry.js +0 -2
  564. package/dist/core/p-41fecc61.entry.js.map +0 -1
  565. package/dist/core/p-46cb94a2.entry.js +0 -2
  566. package/dist/core/p-46cb94a2.entry.js.map +0 -1
  567. package/dist/core/p-4e67f127.entry.js +0 -2
  568. package/dist/core/p-4e67f127.entry.js.map +0 -1
  569. package/dist/core/p-50e48f4d.entry.js +0 -2
  570. package/dist/core/p-50e48f4d.entry.js.map +0 -1
  571. package/dist/core/p-56e7459a.entry.js +0 -2
  572. package/dist/core/p-56e7459a.entry.js.map +0 -1
  573. package/dist/core/p-59028160.entry.js +0 -2
  574. package/dist/core/p-59028160.entry.js.map +0 -1
  575. package/dist/core/p-5e6fd734.entry.js +0 -2
  576. package/dist/core/p-5e6fd734.entry.js.map +0 -1
  577. package/dist/core/p-5f5403e2.entry.js.map +0 -1
  578. package/dist/core/p-710c6a42.entry.js +0 -2
  579. package/dist/core/p-710c6a42.entry.js.map +0 -1
  580. package/dist/core/p-7a9de008.entry.js +0 -2
  581. package/dist/core/p-7a9de008.entry.js.map +0 -1
  582. package/dist/core/p-801414e2.entry.js +0 -2
  583. package/dist/core/p-801414e2.entry.js.map +0 -1
  584. package/dist/core/p-82ba744d.entry.js +0 -2
  585. package/dist/core/p-82ba744d.entry.js.map +0 -1
  586. package/dist/core/p-9397b15b.js.map +0 -1
  587. package/dist/core/p-9af6adb1.entry.js +0 -2
  588. package/dist/core/p-9af6adb1.entry.js.map +0 -1
  589. package/dist/core/p-9b54feca.entry.js +0 -2
  590. package/dist/core/p-9b54feca.entry.js.map +0 -1
  591. package/dist/core/p-a57cd616.entry.js +0 -2
  592. package/dist/core/p-a57cd616.entry.js.map +0 -1
  593. package/dist/core/p-a5eaed1a.entry.js +0 -2
  594. package/dist/core/p-a5eaed1a.entry.js.map +0 -1
  595. package/dist/core/p-a91340b4.entry.js +0 -2
  596. package/dist/core/p-a91340b4.entry.js.map +0 -1
  597. package/dist/core/p-aee8d45b.entry.js +0 -2
  598. package/dist/core/p-badd4c8d.entry.js +0 -2
  599. package/dist/core/p-badd4c8d.entry.js.map +0 -1
  600. package/dist/core/p-c07af2d8.entry.js +0 -2
  601. package/dist/core/p-c07af2d8.entry.js.map +0 -1
  602. package/dist/core/p-c21d0db8.entry.js.map +0 -1
  603. package/dist/core/p-c678f73d.entry.js +0 -2
  604. package/dist/core/p-c678f73d.entry.js.map +0 -1
  605. package/dist/core/p-c6ae9bad.entry.js +0 -2
  606. package/dist/core/p-c6ae9bad.entry.js.map +0 -1
  607. package/dist/core/p-c6c1e08e.entry.js +0 -2
  608. package/dist/core/p-c6c1e08e.entry.js.map +0 -1
  609. package/dist/core/p-d16f364a.entry.js +0 -2
  610. package/dist/core/p-d16f364a.entry.js.map +0 -1
  611. package/dist/core/p-d239c33b.entry.js +0 -2
  612. package/dist/core/p-d239c33b.entry.js.map +0 -1
  613. package/dist/core/p-d8563643.entry.js.map +0 -1
  614. package/dist/core/p-da40757f.entry.js +0 -2
  615. package/dist/core/p-da40757f.entry.js.map +0 -1
  616. package/dist/core/p-de052137.entry.js +0 -2
  617. package/dist/core/p-de052137.entry.js.map +0 -1
  618. package/dist/core/p-e89bb650.entry.js +0 -2
  619. package/dist/core/p-e89bb650.entry.js.map +0 -1
  620. package/dist/core/p-f1072c28.entry.js.map +0 -1
  621. package/dist/core/p-f37df214.entry.js +0 -2
  622. package/dist/core/p-f37df214.entry.js.map +0 -1
  623. package/dist/core/p-fe13f1ba.entry.js +0 -2
  624. package/dist/core/p-fe13f1ba.entry.js.map +0 -1
  625. package/dist/esm/helpers-5bd2012a.js.map +0 -1
  626. package/dist/esm/helpers-dab8ddfe.js.map +0 -1
  627. package/dist/esm/ic-input-component-container_4.entry.js +0 -149
  628. package/dist/esm/ic-input-component-container_4.entry.js.map +0 -1
  629. package/dist/esm/ic-menu-with-multi.entry.js +0 -2734
  630. package/dist/esm/ic-menu-with-multi.entry.js.map +0 -1
  631. package/dist/esm/ic-menu.entry.js +0 -654
  632. package/dist/esm/ic-menu.entry.js.map +0 -1
  633. package/dist/esm/ic-select-with-multi.entry.js +0 -784
  634. package/dist/esm/ic-select-with-multi.entry.js.map +0 -1
  635. package/dist/types/components/ic-menu-with-multi/ic-menu.d.ts +0 -214
  636. package/dist/types/components/ic-select-with-multi/ic-select.d.ts +0 -259
  637. package/dist/types/components/ic-select-with-multi/story-data.d.ts +0 -32
  638. /package/dist/core/{p-c033e7d6.entry.js.map → p-036d251b.entry.js.map} +0 -0
  639. /package/dist/core/{p-897b8d16.entry.js.map → p-24d03bbd.entry.js.map} +0 -0
  640. /package/dist/core/{p-a78cf2cb.entry.js.map → p-266098ee.entry.js.map} +0 -0
  641. /package/dist/core/{p-77a32de5.entry.js.map → p-2a3bd99a.entry.js.map} +0 -0
  642. /package/dist/core/{p-202bc922.entry.js.map → p-5ad1a7fb.entry.js.map} +0 -0
  643. /package/dist/core/{p-e5d99316.entry.js.map → p-7b90f0ae.entry.js.map} +0 -0
  644. /package/dist/core/{p-30b046b2.entry.js.map → p-7e5b0fff.entry.js.map} +0 -0
  645. /package/dist/core/{p-505250cf.entry.js.map → p-d7632baf.entry.js.map} +0 -0
  646. /package/dist/core/{p-d03374fc.entry.js.map → p-fbb5c8f2.entry.js.map} +0 -0
@@ -1,788 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-4cf27b16.js');
6
- const helpers = require('./helpers-6817cfbb.js');
7
-
8
- const Expand = `<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
9
- <path d="M7 9.5L12 14.5L17 9.5H7Z" fill="currentColor" />
10
- </svg>
11
- `;
12
-
13
- const Clear = `<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
14
- <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" />
15
- </svg>
16
- `;
17
-
18
- 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;--menu-max-height:100px}:host(.ic-select-full-width){width:100%}ic-input-component-container:hover{--border-color:var(--ic-action-dark-hover)}ic-input-component-container:active{--border-color:var(--ic-action-dark-active);color:var(--ic-action-dark-active)}ic-input-component-container.menu-open{--border-color:var(--ic-architectural-400);color:var(--ic-action-dark)}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) !important}select{border:0;border-radius:var(--ic-border-radius);background-color:var(--ic-architectural-white);color:var(--ic-color-primary-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:url(\"data:image/svg+xml;utf8,<svg fill='black' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>\")}select option,.select-option-selected{color:var(--ic-color-primary-text)}select:disabled{color:var(--ic-architectural-200);background-image:url(\"data:image/svg+xml;utf8,<svg fill='grey' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>\")}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}.select-input:focus{outline:var(--ic-hc-focus-outline)}:host(:not(.ic-select-disabled)) ic-input-component-container:hover .select-input{background-color:var(--ic-architectural-white)}.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}.value-text.with-clear-button{padding-right:calc(var(--ic-space-xl) + var(--ic-space-xs))}.value-text p{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;margin-bottom:0 !important}.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-action-dark)}.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-architectural-200)}:host(.ic-select-searchable) .expand-icon{padding-left:0;height:2.25rem}:host(.ic-select-searchable) .expand-icon>svg{height:2.25rem;padding:0 0.375rem}:host(.ic-select-searchable:not(.ic-select-disabled)) .expand-icon>svg{cursor:pointer}.expand-icon-open{color:var(--ic-action-dark)}.expand-icon-open,:host(.ic-select-searchable) .expand-icon-open{transform:rotateX(180deg)}:host(.ic-select-disabled) .value-text,.placeholder{color:var(--ic-color-tertiary-text)}.select-input-end{display:flex;align-items:center}.clear-button-container{display:flex}.divider{width:var(--ic-space-1px);background-color:var(--ic-architectural-400);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{position:absolute;right:calc(var(--ic-space-xl) + var(--ic-space-xxs));border-radius:var(--ic-border-radius);transition:box-shadow var(--ic-easing-transition),\n border-radius var(--ic-easing-transition)}.clear-button:focus{background-color:var(--ic-focus-blue);box-shadow:inset 0 0 0 0.125rem var(--ic-focus-glow);border-radius:0.25rem}.clear-button:focus *{fill:white}.clear-button.searchable{position:static}.searchable-select-results-status,.multi-select-selected-count{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)}";
19
-
20
- let inputIds = 0;
21
- const Select = class {
22
- constructor(hostRef) {
23
- index.registerInstance(this, hostRef);
24
- this.icBlur = index.createEvent(this, "icBlur", 7);
25
- this.icChange = index.createEvent(this, "icChange", 7);
26
- this.icClear = index.createEvent(this, "icClear", 7);
27
- this.icFocus = index.createEvent(this, "icFocus", 7);
28
- this.icInput = index.createEvent(this, "icInput", 7);
29
- this.icOptionSelect = index.createEvent(this, "icOptionSelect", 7);
30
- this.icOptionDeselect = index.createEvent(this, "icOptionDeselect", 7);
31
- this.icRetryLoad = index.createEvent(this, "icRetryLoad", 7);
32
- this.hasSetDefaultValue = false;
33
- this.inheritedAttributes = {};
34
- this.initialOptionsEmpty = false;
35
- this.inputId = `ic-select-input-${inputIds++}`;
36
- this.menuId = `${this.inputId}-menu`;
37
- this.searchableMenuItemSelected = false;
38
- this.ungroupedOptions = [];
39
- this.handleRetry = (ev) => {
40
- var _a;
41
- if (ev.detail.keyPressed)
42
- (_a = this.searchableSelectElement) === null || _a === void 0 ? void 0 : _a.focus();
43
- this.blurredBecauseButtonPressed = true;
44
- this.retryButtonClick = true;
45
- this.hasSetDefaultValue = true;
46
- this.icRetryLoad.emit({ value: this.hiddenInputValue });
47
- };
48
- this.emitIcChange = (value) => {
49
- if (!this.searchable) {
50
- // If "Select all" button clicked, replace value with new value (array of all option values)
51
- if (this.multiple && !Array.isArray(value) && value !== null) {
52
- this.handleMultipleSelectChange(value);
53
- }
54
- else {
55
- this.value = value;
56
- }
57
- }
58
- clearTimeout(this.debounceIcChange);
59
- this.debounceIcChange = window.setTimeout(() => {
60
- const valueToEmit = this.multiple ? this.value : value;
61
- this.icChange.emit({ value: valueToEmit });
62
- }, this.currDebounce);
63
- };
64
- this.emitImmediateIcChange = (value) => {
65
- this.value = value;
66
- clearTimeout(this.debounceIcChange);
67
- this.icChange.emit({ value });
68
- };
69
- /**
70
- * Processes the provided array of IcMenuOptions, removing duplicates and reporting them with a console.warn
71
- * @param options array of IcMenuOptions
72
- * @returns a new options object, with all entries possessing a duplicate 'value' field removed
73
- */
74
- this.deduplicateOptions = (options) => {
75
- const uniqueValues = [];
76
- const dedupedOptions = [];
77
- let dedupedChildren;
78
- options.forEach((option) => {
79
- if (option.children) {
80
- //If an option has children, we will loop through them
81
- dedupedChildren = [];
82
- option.children.forEach((child) => {
83
- if (uniqueValues.includes(child.value)) {
84
- console.warn(`ic-select with label ${this.label} was populated with duplicate option (value: ${child.value}) which has been removed.`);
85
- }
86
- else {
87
- uniqueValues.push(child.value);
88
- dedupedChildren.push(child);
89
- }
90
- });
91
- // construct a modified option, inserting the deduplicated children alongside the original information
92
- const modifiedParent = Object.assign(Object.assign({}, option), { children: dedupedChildren });
93
- dedupedOptions.push(modifiedParent);
94
- }
95
- else {
96
- // If an option does not have children, assess to see if it's value has been included already
97
- if (uniqueValues.includes(option.value)) {
98
- console.warn(`ic-select with label ${this.label} was populated with duplicate option (value: ${option.value}) which has been removed.`);
99
- }
100
- else {
101
- uniqueValues.push(option.value);
102
- dedupedOptions.push(option);
103
- }
104
- }
105
- });
106
- return dedupedOptions;
107
- };
108
- /**
109
- * Loop through options array and for all options with no value, infer it from the label
110
- */
111
- this.setOptionsValuesFromLabels = () => {
112
- if (this.options.length > 0 && this.options.map) {
113
- this.options.map((option) => {
114
- if (!option.value) {
115
- option.value = option.label;
116
- }
117
- });
118
- }
119
- };
120
- this.setUngroupedOptions = (event) => {
121
- this.ungroupedOptions = event.detail.options;
122
- };
123
- this.setTextColor = () => {
124
- if (this.nativeSelectElement.selectedIndex === 0) {
125
- this.nativeSelectElement.className = "placeholder";
126
- }
127
- else {
128
- this.nativeSelectElement.className = "select-option-selected";
129
- }
130
- };
131
- this.setMenuChange = (open) => {
132
- if (this.open !== open) {
133
- this.open = open;
134
- }
135
- };
136
- this.getLabelFromValue = (value) => {
137
- return helpers.getLabelFromValue(value, this.uniqueOptions);
138
- };
139
- this.getMultipleOptionsString = (selectedValues) => {
140
- const selectedLabels = selectedValues === null || selectedValues === void 0 ? void 0 : selectedValues.map((value) => this.getLabelFromValue(value));
141
- return selectedLabels === null || selectedLabels === void 0 ? void 0 : selectedLabels.join(", ");
142
- };
143
- this.getFilteredChildMenuOptions = (option) => {
144
- let children = option.children;
145
- if (this.searchable) {
146
- children = helpers.getFilteredMenuOptions(option.children, this.includeDescriptionsInSearch, this.searchableSelectInputValue, this.searchMatchPosition);
147
- }
148
- else {
149
- children = helpers.getFilteredMenuOptions(option.children, false, this.pressedCharacters, "start");
150
- }
151
- const newOption = Object.assign({}, option);
152
- newOption.children = children;
153
- return newOption;
154
- };
155
- // (For multi-select) get value array, i.e. selected option values, in order they appear in option list
156
- this.getValueSortedByOptions = (value) => {
157
- const valueArray = value;
158
- const valuesFromAllOptions = this.ungroupedOptions.map((option) => option.value);
159
- valueArray.sort((a, b) => valuesFromAllOptions.indexOf(a) - valuesFromAllOptions.indexOf(b));
160
- return valueArray;
161
- };
162
- this.handleNativeSelectChange = () => {
163
- this.icOptionSelect.emit({ value: this.nativeSelectElement.value });
164
- this.emitImmediateIcChange(this.nativeSelectElement.value);
165
- this.setTextColor();
166
- };
167
- // Handle option select for when a custom input box and menu is rendered
168
- // (rather than native <select> - rendered when viewed on a mobile / tablet screen)
169
- this.handleCustomSelectChange = (event) => {
170
- var _a;
171
- const value = event.detail.value;
172
- if (this.searchable && event.detail.label === this.emptyOptionListText) {
173
- this.searchableSelectElement.focus();
174
- return;
175
- }
176
- if (this.searchable) {
177
- this.value = value;
178
- this.searchableMenuItemSelected = true;
179
- // After editing the input, if selecting the same option as before, set the input value to label again
180
- if (this.value === this.currValue) {
181
- this.searchableSelectInputValue = this.getLabelFromValue(this.value);
182
- }
183
- this.inputValueToFilter = null;
184
- this.hiddenInputValue = this.getValueFromLabel(this.searchableSelectInputValue);
185
- }
186
- if (this.multiple && ((_a = this.value) === null || _a === void 0 ? void 0 : _a.includes(value))) {
187
- this.icOptionDeselect.emit({ value });
188
- }
189
- else {
190
- this.icOptionSelect.emit({ value });
191
- }
192
- this.ariaActiveDescendant = event.detail.optionId;
193
- this.emitIcChange(value);
194
- };
195
- // Update selected options - adds / removes them, in order of option list
196
- // Create new array if value prop is undefined
197
- this.handleMultipleSelectChange = (value) => {
198
- if (this.value) {
199
- let valueArray = this.value.slice();
200
- if (this.value.includes(value)) {
201
- const valueIndex = valueArray.indexOf(value);
202
- valueArray.splice(valueIndex, 1);
203
- }
204
- else {
205
- valueArray.push(value);
206
- valueArray = this.getValueSortedByOptions(valueArray);
207
- }
208
- this.value = valueArray.length === 0 ? null : valueArray;
209
- }
210
- else {
211
- const valueArray = [];
212
- valueArray.push(value);
213
- this.value = valueArray;
214
- }
215
- };
216
- this.handleSelectAllChange = (event) => {
217
- const selectAllOptions = event.detail.select;
218
- const allEnabledOptions = this.ungroupedOptions.filter((option) => !option.disabled);
219
- const allValues = allEnabledOptions.map((option) => option.value);
220
- let newValue;
221
- if (selectAllOptions) {
222
- let unselectedValues;
223
- // Only emit icOptionSelect for all values that are newly selected
224
- if (this.value) {
225
- unselectedValues = allValues.filter((value) => this.value && !this.value.includes(value));
226
- }
227
- else {
228
- unselectedValues = allValues;
229
- }
230
- unselectedValues.forEach((value) => this.icOptionSelect.emit({ value }));
231
- newValue = allValues;
232
- }
233
- else {
234
- // Only emit icOptionDeselect for values that were selected
235
- this.value.forEach((value) => this.icOptionDeselect.emit({ value }));
236
- newValue = null;
237
- }
238
- this.emitIcChange(newValue);
239
- };
240
- this.handleMenuChange = (event) => {
241
- this.open = event.detail.open;
242
- this.pressedCharacters = "";
243
- this.searchable && this.handleFocusIndicatorDisplay();
244
- };
245
- // clears the debounce delay when navigating the menu with arrow keys etc
246
- // to prevent delay in change event, which should only occur when typing in input
247
- this.handleMenuKeyPress = (ev) => {
248
- ev.cancelBubble = true;
249
- if (!this.multiple) {
250
- this.handleCharacterKeyDown(ev.detail.key);
251
- }
252
- };
253
- this.handleFocusIndicatorDisplay = () => {
254
- const focusIndicator = this.el.shadowRoot.querySelector(".focus-indicator");
255
- if (this.open) {
256
- focusIndicator.classList.add("focus-indicator-enabled");
257
- }
258
- else {
259
- focusIndicator.classList.remove("focus-indicator-enabled");
260
- }
261
- };
262
- this.handleMouseDown = (event) => {
263
- if (!this.open) {
264
- event.preventDefault();
265
- }
266
- };
267
- this.isExternalFiltering = () => this.searchable && this.disableAutoFiltering;
268
- this.handleClick = (event) => {
269
- var _a;
270
- if (!this.open) {
271
- if (this.isExternalFiltering()) {
272
- this.menu.options = this.filteredOptions;
273
- }
274
- else if (!this.hasTimedOut &&
275
- !this.loading &&
276
- !((_a = this.noOptions) === null || _a === void 0 ? void 0 : _a.length) &&
277
- (!this.searchable || this.searchableMenuItemSelected)) {
278
- this.noOptions = null;
279
- this.menu.options = this.uniqueOptions;
280
- }
281
- }
282
- if (event.detail !== 0) {
283
- this.menu.handleClickOpen();
284
- }
285
- };
286
- this.handleExpandIconMouseDown = (event) => {
287
- if (!this.disabled) {
288
- event.preventDefault();
289
- this.searchableSelectElement.focus();
290
- this.handleClick(event);
291
- }
292
- };
293
- this.handleClear = (event) => {
294
- event.stopPropagation();
295
- this.hasTimedOut = false;
296
- clearTimeout(this.timeoutTimer);
297
- this.noOptions = null;
298
- this.emitImmediateIcChange(null);
299
- this.icClear.emit();
300
- if (this.searchable) {
301
- this.searchableSelectElement.value = null;
302
- this.searchableSelectInputValue = null;
303
- this.filteredOptions = this.uniqueOptions;
304
- this.hiddenInputValue = null;
305
- this.searchableSelectElement.focus();
306
- }
307
- else {
308
- this.customSelectElement.focus();
309
- }
310
- };
311
- this.handleCharacterKeyDown = (key) => {
312
- // Only close menu when space is pressed if not being used alongside character keys to quickly select options
313
- if (this.open &&
314
- key === " " &&
315
- this.pressedCharacters.length === 0 &&
316
- !this.hasTimedOut &&
317
- !this.loading) {
318
- this.setMenuChange(false);
319
- }
320
- if (key.length === 1 && !this.searchable) {
321
- window.clearTimeout(this.characterKeyPressTimer);
322
- this.characterKeyPressTimer = window.setTimeout(() => (this.pressedCharacters = ""), 1000);
323
- if (!(key === " " && !this.pressedCharacters)) {
324
- this.pressedCharacters += key;
325
- this.handleFilter();
326
- if (!this.noOptions) {
327
- this.emitImmediateIcChange(this.filteredOptions[0].value);
328
- }
329
- }
330
- }
331
- else {
332
- this.pressedCharacters = "";
333
- }
334
- };
335
- this.handleNativeSelectKeyDown = (event) => {
336
- if ((event.key !== "Escape" && event.key !== "Tab") || this.open) {
337
- event.cancelBubble = true;
338
- }
339
- this.handleCharacterKeyDown(event.key);
340
- };
341
- this.handleKeyDown = (event) => {
342
- if ((event.key !== "Escape" && event.key !== "Tab") || this.open) {
343
- event.cancelBubble = true;
344
- }
345
- const isArrowKey = event.key === "ArrowDown" || event.key === "ArrowUp";
346
- if (!this.open) {
347
- if (this.isExternalFiltering() && (event.key === "Enter" || isArrowKey)) {
348
- this.menu.options = this.filteredOptions;
349
- }
350
- else {
351
- if (!this.hasTimedOut) {
352
- this.noOptions = null;
353
- this.menu.options = this.uniqueOptions;
354
- }
355
- }
356
- }
357
- if (this.open && event.key === "Enter") {
358
- this.setMenuChange(false);
359
- }
360
- else {
361
- if (!(isArrowKey && this.noOptions !== null)) {
362
- if (!(event.key === " " && this.pressedCharacters.length > 0)) {
363
- // Keyboard events get passed onto ic-menu
364
- this.menu.handleKeyboardOpen(event);
365
- }
366
- if (!this.multiple) {
367
- this.handleCharacterKeyDown(event.key);
368
- }
369
- }
370
- }
371
- };
372
- this.handleClearButtonFocus = () => {
373
- this.clearButtonFocused = true;
374
- };
375
- this.handleClearButtonBlur = (ev) => {
376
- var _a;
377
- const retryButton = (_a = this.menu) === null || _a === void 0 ? void 0 : _a.querySelector("#retry-button");
378
- if (!(this.searchableSelectElement &&
379
- ev.relatedTarget === this.searchableSelectElement) &&
380
- !(retryButton && ev.relatedTarget === retryButton)) {
381
- this.setMenuChange(false);
382
- this.handleFocusIndicatorDisplay();
383
- }
384
- this.clearButtonFocused = false;
385
- };
386
- this.handleFilter = () => {
387
- var _a;
388
- const options = this.deduplicateOptions(this.searchable ? [...this.uniqueOptions] : this.ungroupedOptions);
389
- let isGrouped = false;
390
- let newFilteredOptions = [];
391
- options.map((option) => {
392
- if (option.children)
393
- isGrouped = true;
394
- });
395
- let menuOptionsFiltered;
396
- if (this.searchable) {
397
- menuOptionsFiltered = helpers.getFilteredMenuOptions(options, this.includeDescriptionsInSearch, this.inputValueToFilter, this.searchMatchPosition);
398
- this.searchableMenuItemSelected = false;
399
- }
400
- else {
401
- menuOptionsFiltered = helpers.getFilteredMenuOptions(options, false, this.pressedCharacters, "start");
402
- }
403
- if (!isGrouped &&
404
- ((_a = menuOptionsFiltered[0]) === null || _a === void 0 ? void 0 : _a.label) !== this.emptyOptionListText) {
405
- newFilteredOptions = menuOptionsFiltered;
406
- }
407
- else if (isGrouped) {
408
- options.map((option) => {
409
- if (this.includeGroupTitlesInSearch) {
410
- if (menuOptionsFiltered.indexOf(option) !== -1) {
411
- newFilteredOptions.push(option);
412
- }
413
- else {
414
- newFilteredOptions.push(this.getFilteredChildMenuOptions(option));
415
- }
416
- }
417
- else {
418
- newFilteredOptions.push(this.getFilteredChildMenuOptions(option));
419
- }
420
- });
421
- }
422
- let noChildOptionsWhenFiltered = false;
423
- if (isGrouped) {
424
- noChildOptionsWhenFiltered = true;
425
- newFilteredOptions.map((option) => {
426
- if (option.children.length > 0) {
427
- noChildOptionsWhenFiltered = false;
428
- }
429
- });
430
- }
431
- if (newFilteredOptions.length > 0 && !noChildOptionsWhenFiltered) {
432
- this.noOptions = null;
433
- this.filteredOptions = newFilteredOptions;
434
- }
435
- else {
436
- this.noOptions = [{ label: this.emptyOptionListText, value: "" }];
437
- this.filteredOptions = this.noOptions;
438
- }
439
- };
440
- /**
441
- * Put the select component into loading state.
442
- * Replace options with the loading message. If timeout is enabled, set the timeout and once passed, replace options with the loading error message
443
- */
444
- this.triggerLoading = () => {
445
- this.hasTimedOut = false;
446
- this.noOptions = [{ label: this.loadingLabel, value: "", loading: true }];
447
- if (this.filteredOptions !== this.noOptions && this.searchable) {
448
- this.filteredOptions = this.noOptions;
449
- }
450
- else if (this.uniqueOptions !== this.noOptions && !this.searchable) {
451
- this.uniqueOptions = this.noOptions;
452
- }
453
- if (this.timeout) {
454
- this.timeoutTimer = window.setTimeout(() => {
455
- this.loading = false;
456
- this.hasTimedOut = true;
457
- this.noOptions = [
458
- { label: this.loadingErrorLabel, value: "", timedOut: true },
459
- ];
460
- this.filteredOptions = this.noOptions;
461
- if (!this.searchable)
462
- this.uniqueOptions = this.noOptions;
463
- }, this.timeout);
464
- }
465
- };
466
- this.getValueFromLabel = (label) => {
467
- var _a;
468
- return (_a = this.uniqueOptions.find((option) => option.label === label)) === null || _a === void 0 ? void 0 : _a.value;
469
- };
470
- this.handleSearchableSelectInput = (event) => {
471
- this.searchableSelectInputValue = event.target.value;
472
- this.icInput.emit({ value: this.searchableSelectInputValue });
473
- this.emitIcChange(this.searchableSelectInputValue);
474
- this.hiddenInputValue = this.searchableSelectInputValue;
475
- this.inputValueToFilter = this.searchableSelectInputValue;
476
- this.setMenuChange(true);
477
- if (!this.disableAutoFiltering) {
478
- this.handleFilter();
479
- this.debounceAriaLiveUpdate();
480
- }
481
- };
482
- this.updateSearchableSelectResultAriaLive = () => {
483
- const searchableSelectResultsStatusEl = this.el.shadowRoot.querySelector(".searchable-select-results-status");
484
- if (searchableSelectResultsStatusEl) {
485
- if (this.noOptions !== null) {
486
- searchableSelectResultsStatusEl.innerText = this.emptyOptionListText;
487
- }
488
- else {
489
- searchableSelectResultsStatusEl.innerText = "";
490
- }
491
- }
492
- };
493
- this.updateMultiSelectedCountAriaLive = () => {
494
- var _a;
495
- const multiSelectSelectedCountEl = this.el.shadowRoot.querySelector(".multi-select-selected-count");
496
- const selectedCount = `${(_a = this.currValue) === null || _a === void 0 ? void 0 : _a.length} of ${helpers.getOptionsWithoutGroupTitlesCount(this.options)} selected`;
497
- if (multiSelectSelectedCountEl &&
498
- multiSelectSelectedCountEl.innerText !== selectedCount) {
499
- multiSelectSelectedCountEl.innerText = selectedCount;
500
- }
501
- };
502
- this.getDefaultValue = (value) => this.getLabelFromValue(value) || value || null;
503
- this.setDefaultValue = () => {
504
- if (!this.hasSetDefaultValue && this.currValue) {
505
- this.searchableSelectInputValue =
506
- this.searchable && this.getDefaultValue(this.currValue);
507
- this.initialValue = this.currValue;
508
- this.hasSetDefaultValue = true;
509
- }
510
- };
511
- this.onFocus = () => {
512
- this.icFocus.emit();
513
- };
514
- this.onBlur = (event) => {
515
- var _a;
516
- const target = event.relatedTarget;
517
- if (target !== null &&
518
- target.tagName === "UL" &&
519
- target.className.includes("menu")) {
520
- return;
521
- }
522
- const retryButton = (_a = this.menu) === null || _a === void 0 ? void 0 : _a.querySelector("#retry-button");
523
- const isSearchableAndNoFocusedInternalElements = this.searchable &&
524
- event.relatedTarget !== this.menu &&
525
- !Array.from(this.menu.querySelectorAll("[role='option']")).includes(event.relatedTarget) &&
526
- !(this.clearButton && event.relatedTarget === this.clearButton) &&
527
- !(retryButton && event.relatedTarget === retryButton);
528
- if (isSearchableAndNoFocusedInternalElements) {
529
- if (!this.retryButtonClick) {
530
- this.setMenuChange(false);
531
- }
532
- this.handleFocusIndicatorDisplay();
533
- }
534
- this.retryButtonClick = false;
535
- this.icBlur.emit();
536
- };
537
- this.onTimeoutBlur = (ev) => {
538
- if (ev.detail.ev.relatedTarget !==
539
- this.searchableSelectElement &&
540
- !this.blurredBecauseButtonPressed) {
541
- this.setMenuChange(false);
542
- this.handleFocusIndicatorDisplay();
543
- this.icBlur.emit();
544
- }
545
- this.blurredBecauseButtonPressed = false;
546
- };
547
- this.handleFormReset = () => {
548
- this.value = this.initialValue;
549
- if (this.searchable) {
550
- this.searchableSelectInputValue = this.getDefaultValue(this.value);
551
- this.hiddenInputValue = this.value;
552
- }
553
- };
554
- this.ariaActiveDescendant = undefined;
555
- this.clearButtonFocused = false;
556
- this.debounceIcChange = undefined;
557
- this.hiddenInputValue = undefined;
558
- this.noOptions = null;
559
- this.open = false;
560
- this.pressedCharacters = "";
561
- this.searchableSelectInputValue = null;
562
- this.disabled = false;
563
- this.disableAutoFiltering = false;
564
- this.emptyOptionListText = "No results found";
565
- this.form = undefined;
566
- this.fullWidth = false;
567
- this.helperText = "";
568
- this.hideLabel = false;
569
- this.includeDescriptionsInSearch = false;
570
- this.includeGroupTitlesInSearch = false;
571
- this.label = undefined;
572
- this.loadingErrorLabel = "Loading Error";
573
- this.loadingLabel = "Loading...";
574
- this.multiple = false;
575
- this.name = this.inputId;
576
- this.placeholder = "Select an option";
577
- this.readonly = false;
578
- this.required = false;
579
- this.searchable = false;
580
- this.searchMatchPosition = "anywhere";
581
- this.selectOnEnter = false;
582
- this.showClearButton = false;
583
- this.size = "medium";
584
- this.timeout = undefined;
585
- this.validationStatus = "";
586
- this.validationText = "";
587
- this.loading = false;
588
- this.options = [];
589
- this.filteredOptions = this.options;
590
- this.uniqueOptions = this.options;
591
- this.debounce = 0;
592
- this.currDebounce = this.debounce;
593
- this.value = undefined;
594
- this.initialValue = this.value;
595
- this.inputValueToFilter = this.value;
596
- this.currValue = this.value;
597
- }
598
- loadingHandler(newValue) {
599
- newValue && this.triggerLoading();
600
- }
601
- watchOptionsHandler() {
602
- if (!this.hasTimedOut && this.options !== this.noOptions) {
603
- this.loading = false;
604
- clearTimeout(this.timeoutTimer);
605
- if (this.isExternalFiltering()) {
606
- // When searchable select
607
- if (this.options.length > 0) {
608
- this.setOptionsValuesFromLabels();
609
- this.noOptions = null;
610
- this.uniqueOptions = this.deduplicateOptions(this.options);
611
- this.filteredOptions = this.uniqueOptions;
612
- }
613
- else {
614
- this.noOptions = [{ label: this.emptyOptionListText, value: "" }];
615
- this.uniqueOptions = this.noOptions;
616
- this.filteredOptions = this.noOptions;
617
- }
618
- this.updateSearchableSelectResultAriaLive();
619
- this.setDefaultValue();
620
- }
621
- else {
622
- this.setOptionsValuesFromLabels();
623
- this.uniqueOptions = this.deduplicateOptions(this.options);
624
- this.filteredOptions = this.uniqueOptions;
625
- if (this.initialOptionsEmpty) {
626
- this.setDefaultValue();
627
- this.initialOptionsEmpty = false;
628
- }
629
- }
630
- }
631
- else {
632
- if (!this.searchable)
633
- this.options = this.noOptions;
634
- }
635
- }
636
- debounceChangedHandler(newValue) {
637
- this.updateOnChangeDebounce(newValue);
638
- }
639
- valueChangedHandler() {
640
- if (this.value !== this.currValue) {
641
- if (this.value && this.multiple) {
642
- this.currValue = this.getValueSortedByOptions(this.value);
643
- this.updateMultiSelectedCountAriaLive();
644
- }
645
- else {
646
- this.currValue = this.value;
647
- }
648
- }
649
- if (this.searchable) {
650
- this.searchableSelectInputValue =
651
- this.getLabelFromValue(this.currValue) ||
652
- this.currValue;
653
- }
654
- }
655
- disconnectedCallback() {
656
- helpers.removeFormResetListener(this.el, this.handleFormReset);
657
- }
658
- componentWillLoad() {
659
- this.inheritedAttributes = helpers.inheritAttributes(this.el, [
660
- ...helpers.IC_INHERITED_ARIA,
661
- "tabindex",
662
- "title",
663
- ]);
664
- helpers.removeDisabledFalse(this.disabled, this.el);
665
- this.setOptionsValuesFromLabels();
666
- helpers.addFormResetListener(this.el, this.handleFormReset);
667
- if (!this.options.length) {
668
- this.initialOptionsEmpty = true;
669
- this.noOptions = [{ label: this.emptyOptionListText, value: "" }];
670
- this.uniqueOptions = this.noOptions;
671
- this.filteredOptions = this.noOptions;
672
- }
673
- else {
674
- this.setDefaultValue();
675
- this.uniqueOptions = this.deduplicateOptions(this.options);
676
- }
677
- }
678
- componentDidLoad() {
679
- helpers.onComponentRequiredPropUndefined([{ prop: this.label, propName: "label" }], "Select");
680
- if (this.loading) {
681
- this.triggerLoading();
682
- }
683
- this.hiddenInputValue = this.searchable && this.currValue;
684
- }
685
- componentDidRender() {
686
- if (this.nativeSelectElement && !this.disabled) {
687
- this.setTextColor();
688
- }
689
- }
690
- /**
691
- * Sets focus on the input box.
692
- */
693
- async setFocus() {
694
- if (this.nativeSelectElement) {
695
- this.nativeSelectElement.focus();
696
- }
697
- else if (this.customSelectElement) {
698
- this.customSelectElement.focus();
699
- }
700
- else if (this.searchableSelectElement) {
701
- this.searchableSelectElement.focus();
702
- }
703
- }
704
- updateOnChangeDebounce(newValue) {
705
- if (this.currDebounce !== newValue) {
706
- this.currDebounce = newValue;
707
- }
708
- }
709
- debounceAriaLiveUpdate() {
710
- clearTimeout(this.debounceAria);
711
- window.setTimeout(() => {
712
- this.updateSearchableSelectResultAriaLive();
713
- }, 800);
714
- }
715
- render() {
716
- const { size, disabled, fullWidth, helperText, hideLabel, label, menuId, multiple, name, options, placeholder, readonly, required, searchable, showClearButton, validationStatus, validationText, currValue, } = this;
717
- // HTML inputs only accept 'string' for their value
718
- // Does not cause errors when it is a multi-select - sets value correctly, to a comma-separated string
719
- helpers.renderHiddenInput(true, this.el, name, this.searchable ? this.hiddenInputValue : currValue, disabled);
720
- const invalid = validationStatus === helpers.IcInformationStatus.Error ? "true" : "false";
721
- const describedBy = helpers.getInputDescribedByText(this.inputId, helperText !== "", helpers.hasValidationStatus(this.validationStatus, this.disabled)).trim();
722
- const optionsSelectedCount = `${currValue === null || currValue === void 0 ? void 0 : currValue.length} of ${helpers.getOptionsWithoutGroupTitlesCount(this.options)} selected`;
723
- return (index.h(index.Host, { class: {
724
- ["ic-select-disabled"]: disabled,
725
- ["ic-select-searchable"]: searchable,
726
- [`ic-select-${size}`]: size !== "medium",
727
- ["ic-select-full-width"]: fullWidth,
728
- }, onBlur: this.onBlur }, index.h("ic-input-container", { readonly: readonly }, !hideLabel && (index.h("ic-input-label", { for: this.inputId, label: label, helperText: helperText, required: required, disabled: disabled, readonly: readonly })), index.h("ic-input-component-container", { ref: (el) => (this.anchorEl = el), class: { "menu-open": this.open }, size: size, fullWidth: fullWidth, disabled: disabled, readonly: readonly, validationStatus: validationStatus }, readonly ? (index.h("ic-typography", null, index.h("p", null, multiple
729
- ? this.getMultipleOptionsString(currValue)
730
- : this.getLabelFromValue(currValue)))) : helpers.isMobileOrTablet() && !multiple ? (index.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), index.h("option", { value: "", selected: true, disabled: !showClearButton }, placeholder), options.map((option) => {
731
- if (option.children) {
732
- return (index.h("optgroup", { label: option.label }, option.children.map((option) => (index.h("option", { value: option.value, disabled: option.disabled, selected: option.value === currValue }, option.label)))));
733
- }
734
- else {
735
- return (index.h("option", { value: option.value, disabled: option.disabled, selected: option.value === currValue }, option.label));
736
- }
737
- }))) : searchable ? (index.h("div", { class: "searchable-select-container" }, index.h("input", { class: {
738
- "select-input": true,
739
- "with-clear-button": !!this.searchableSelectInputValue,
740
- }, role: "combobox", autocomplete: "off", "aria-label": label, "aria-describedby": describedBy, "aria-activedescendant": this.ariaActiveDescendant, "aria-autocomplete": "list", "aria-expanded": this.open ? "true" : "false", "aria-invalid": invalid, "aria-required": required ? "true" : "false", "aria-controls": menuId, ref: (el) => (this.searchableSelectElement = el), id: this.inputId, value: this.searchableSelectInputValue, placeholder: placeholder, disabled: disabled, onInput: this.handleSearchableSelectInput, onClick: this.handleClick, onKeyDown: this.handleKeyDown, onFocus: this.onFocus, onBlur: this.onBlur, form: this.form }), this.searchableSelectInputValue &&
741
- (showClearButton || searchable) && (index.h("div", { class: "clear-button-container" }, index.h("ic-button", { id: "clear-button", ref: (el) => (this.clearButton = el), "aria-label": this.searchableSelectInputValue && currValue === null
742
- ? "Clear input"
743
- : "Clear selection", class: "clear-button", innerHTML: Clear, onClick: this.handleClear, onFocus: this.handleClearButtonFocus, onBlur: this.handleClearButtonBlur, size: size, variant: "icon", appearance: this.clearButtonFocused
744
- ? helpers.IcThemeForegroundEnum.Light
745
- : helpers.IcThemeForegroundEnum.Dark }), index.h("div", { class: "divider" }))), index.h("span", { onMouseDown: this.handleExpandIconMouseDown, class: {
746
- "expand-icon": true,
747
- "expand-icon-open": this.open,
748
- }, innerHTML: Expand, "aria-hidden": "true" }), index.h("div", { "aria-live": "polite", role: "status", class: "searchable-select-results-status" }))) : (index.h("div", { class: "select-container" }, index.h("button", { class: "select-input", ref: (el) => (this.customSelectElement = el), id: this.inputId, "aria-label": `${label}, ${(multiple && currValue
749
- ? `${optionsSelectedCount}, ${this.getMultipleOptionsString(currValue)}`
750
- : this.getLabelFromValue(currValue)) ||
751
- 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 }, index.h("ic-typography", { variant: "body", class: {
752
- "value-text": true,
753
- "with-clear-button": currValue && showClearButton,
754
- placeholder: !this.value || (multiple && this.value.length < 1),
755
- } }, index.h("p", null, (multiple
756
- ? this.getMultipleOptionsString(currValue)
757
- : this.getLabelFromValue(currValue)) ||
758
- placeholder)), index.h("div", { class: "select-input-end" }, currValue && showClearButton && (index.h("div", { class: "divider" })), index.h("span", { class: {
759
- "expand-icon": true,
760
- "expand-icon-open": this.open,
761
- }, innerHTML: Expand, "aria-hidden": "true" }))), currValue && showClearButton && (index.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", appearance: this.clearButtonFocused
762
- ? helpers.IcThemeForegroundEnum.Light
763
- : helpers.IcThemeForegroundEnum.Dark }))))), (!helpers.isMobileOrTablet() || multiple) && (index.h("ic-menu-with-multi", { class: {
764
- "no-results": this.loading ||
765
- this.hasTimedOut ||
766
- (this.noOptions !== null &&
767
- this.noOptions[0] &&
768
- this.noOptions[0].label === this.emptyOptionListText),
769
- }, ref: (el) => (this.menu = el), inputEl: searchable
770
- ? this.searchableSelectElement
771
- : 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
772
- ? "manual"
773
- : "automatic", closeOnSelect: !multiple })), this.multiple && (index.h("div", { "aria-live": "polite", role: "status", class: "multi-select-selected-count" })), helpers.hasValidationStatus(this.validationStatus, this.disabled) && (index.h("ic-input-validation", { class: { "menu-open": this.open }, ariaLiveMode: "polite", status: validationStatus, message: validationText, for: this.inputId })))));
774
- }
775
- static get delegatesFocus() { return true; }
776
- get el() { return index.getElement(this); }
777
- static get watchers() { return {
778
- "loading": ["loadingHandler"],
779
- "options": ["watchOptionsHandler"],
780
- "debounce": ["debounceChangedHandler"],
781
- "value": ["valueChangedHandler"]
782
- }; }
783
- };
784
- Select.style = icSelectCss;
785
-
786
- exports.ic_select_with_multi = Select;
787
-
788
- //# sourceMappingURL=ic-select-with-multi.cjs.entry.js.map