@ukic/canary-web-components 3.0.0-canary.2 → 3.0.0-canary.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (592) 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 +10 -10
  7. package/dist/cjs/ic-accordion-group.cjs.entry.js.map +1 -1
  8. package/dist/cjs/ic-accordion.cjs.entry.js +5 -5
  9. package/dist/cjs/ic-accordion.cjs.entry.js.map +1 -1
  10. package/dist/cjs/ic-alert.cjs.entry.js +7 -5
  11. package/dist/cjs/ic-alert.cjs.entry.js.map +1 -1
  12. package/dist/cjs/ic-back-to-top.cjs.entry.js +1 -1
  13. package/dist/cjs/ic-badge.cjs.entry.js +1 -1
  14. package/dist/cjs/ic-breadcrumb-group.cjs.entry.js +1 -1
  15. package/dist/cjs/ic-breadcrumb.cjs.entry.js +1 -1
  16. package/dist/cjs/ic-button_3.cjs.entry.js +2 -2
  17. package/dist/cjs/ic-button_3.cjs.entry.js.map +1 -1
  18. package/dist/cjs/ic-card-horizontal.cjs.entry.js +21 -26
  19. package/dist/cjs/ic-card-horizontal.cjs.entry.js.map +1 -1
  20. package/dist/cjs/ic-card-vertical.cjs.entry.js +22 -24
  21. package/dist/cjs/ic-card-vertical.cjs.entry.js.map +1 -1
  22. package/dist/cjs/ic-checkbox-group.cjs.entry.js +17 -6
  23. package/dist/cjs/ic-checkbox-group.cjs.entry.js.map +1 -1
  24. package/dist/cjs/ic-checkbox.cjs.entry.js +6 -4
  25. package/dist/cjs/ic-checkbox.cjs.entry.js.map +1 -1
  26. package/dist/cjs/ic-chip.cjs.entry.js +1 -1
  27. package/dist/cjs/ic-classification-banner.cjs.entry.js +1 -1
  28. package/dist/cjs/ic-classification-banner.cjs.entry.js.map +1 -1
  29. package/dist/cjs/ic-data-row.cjs.entry.js +1 -1
  30. package/dist/cjs/ic-data-table-title-bar.cjs.entry.js +1 -1
  31. package/dist/cjs/ic-data-table.cjs.entry.js +86 -10
  32. package/dist/cjs/ic-data-table.cjs.entry.js.map +1 -1
  33. package/dist/cjs/ic-date-input.cjs.entry.js +13 -11
  34. package/dist/cjs/ic-date-input.cjs.entry.js.map +1 -1
  35. package/dist/cjs/ic-date-picker.cjs.entry.js +4 -2
  36. package/dist/cjs/ic-date-picker.cjs.entry.js.map +1 -1
  37. package/dist/cjs/ic-dialog.cjs.entry.js +4 -2
  38. package/dist/cjs/ic-dialog.cjs.entry.js.map +1 -1
  39. package/dist/cjs/ic-divider.cjs.entry.js +71 -7
  40. package/dist/cjs/ic-divider.cjs.entry.js.map +1 -1
  41. package/dist/cjs/ic-empty-state_2.cjs.entry.js +31 -16
  42. package/dist/cjs/ic-empty-state_2.cjs.entry.js.map +1 -1
  43. package/dist/cjs/ic-footer-link-group.cjs.entry.js +2 -2
  44. package/dist/cjs/ic-footer-link-group.cjs.entry.js.map +1 -1
  45. package/dist/cjs/ic-footer-link.cjs.entry.js +2 -2
  46. package/dist/cjs/ic-footer-link.cjs.entry.js.map +1 -1
  47. package/dist/cjs/ic-footer.cjs.entry.js +2 -2
  48. package/dist/cjs/ic-footer.cjs.entry.js.map +1 -1
  49. package/dist/cjs/ic-hero.cjs.entry.js +2 -2
  50. package/dist/cjs/ic-hero.cjs.entry.js.map +1 -1
  51. package/dist/cjs/ic-horizontal-scroll.cjs.entry.js +4 -3
  52. package/dist/cjs/ic-horizontal-scroll.cjs.entry.js.map +1 -1
  53. package/dist/cjs/ic-input-component-container_3.cjs.entry.js +1013 -0
  54. package/dist/cjs/ic-input-component-container_3.cjs.entry.js.map +1 -0
  55. package/dist/cjs/ic-input-label_2.cjs.entry.js +86 -0
  56. package/dist/cjs/ic-input-label_2.cjs.entry.js.map +1 -0
  57. package/dist/cjs/ic-link.cjs.entry.js +1 -1
  58. package/dist/cjs/ic-menu-group.cjs.entry.js +3 -3
  59. package/dist/cjs/ic-menu-group.cjs.entry.js.map +1 -1
  60. package/dist/cjs/ic-menu-item.cjs.entry.js +11 -11
  61. package/dist/cjs/ic-menu-item.cjs.entry.js.map +1 -1
  62. package/dist/cjs/ic-navigation-button.cjs.entry.js +1 -1
  63. package/dist/cjs/ic-navigation-group.cjs.entry.js +5 -4
  64. package/dist/cjs/ic-navigation-group.cjs.entry.js.map +1 -1
  65. package/dist/cjs/ic-navigation-item.cjs.entry.js +29 -2
  66. package/dist/cjs/ic-navigation-item.cjs.entry.js.map +1 -1
  67. package/dist/cjs/ic-navigation-menu.cjs.entry.js +1 -1
  68. package/dist/cjs/ic-page-header.cjs.entry.js +5 -5
  69. package/dist/cjs/ic-page-header.cjs.entry.js.map +1 -1
  70. package/dist/cjs/ic-pagination_4.cjs.entry.js +191 -62
  71. package/dist/cjs/ic-pagination_4.cjs.entry.js.map +1 -1
  72. package/dist/cjs/ic-popover-menu.cjs.entry.js +11 -11
  73. package/dist/cjs/ic-popover-menu.cjs.entry.js.map +1 -1
  74. package/dist/cjs/ic-radio-group.cjs.entry.js +15 -6
  75. package/dist/cjs/ic-radio-group.cjs.entry.js.map +1 -1
  76. package/dist/cjs/ic-radio-option.cjs.entry.js +31 -22
  77. package/dist/cjs/ic-radio-option.cjs.entry.js.map +1 -1
  78. package/dist/cjs/ic-search-bar.cjs.entry.js +12 -9
  79. package/dist/cjs/ic-search-bar.cjs.entry.js.map +1 -1
  80. package/dist/cjs/ic-side-navigation.cjs.entry.js +4 -3
  81. package/dist/cjs/ic-side-navigation.cjs.entry.js.map +1 -1
  82. package/dist/cjs/ic-status-tag.cjs.entry.js +1 -1
  83. package/dist/cjs/ic-step.cjs.entry.js +1 -1
  84. package/dist/cjs/ic-stepper.cjs.entry.js +1 -1
  85. package/dist/cjs/ic-switch.cjs.entry.js +7 -4
  86. package/dist/cjs/ic-switch.cjs.entry.js.map +1 -1
  87. package/dist/cjs/ic-tab-context.cjs.entry.js +2 -1
  88. package/dist/cjs/ic-tab-context.cjs.entry.js.map +1 -1
  89. package/dist/cjs/ic-tab-group.cjs.entry.js +1 -1
  90. package/dist/cjs/ic-tab-panel.cjs.entry.js +1 -1
  91. package/dist/cjs/ic-tab.cjs.entry.js +1 -1
  92. package/dist/cjs/ic-theme.cjs.entry.js +1 -1
  93. package/dist/cjs/ic-toast.cjs.entry.js +3 -3
  94. package/dist/cjs/ic-toast.cjs.entry.js.map +1 -1
  95. package/dist/cjs/ic-toggle-button-group.cjs.entry.js +1 -1
  96. package/dist/cjs/ic-toggle-button-group.cjs.entry.js.map +1 -1
  97. package/dist/cjs/ic-toggle-button.cjs.entry.js +1 -1
  98. package/dist/cjs/ic-top-navigation.cjs.entry.js +1 -1
  99. package/dist/cjs/ic-tree-item.cjs.entry.js +10 -6
  100. package/dist/cjs/ic-tree-item.cjs.entry.js.map +1 -1
  101. package/dist/cjs/ic-tree-view.cjs.entry.js +19 -11
  102. package/dist/cjs/ic-tree-view.cjs.entry.js.map +1 -1
  103. package/dist/cjs/ic-typography.cjs.entry.js +1 -1
  104. package/dist/cjs/index-4cf27b16.js +4 -12
  105. package/dist/cjs/loader.cjs.js +1 -1
  106. package/dist/collection/collection-manifest.json +0 -2
  107. package/dist/collection/components/ic-card-horizontal/ic-card-horizontal.css +18 -21
  108. package/dist/collection/components/ic-card-horizontal/ic-card-horizontal.js +44 -25
  109. package/dist/collection/components/ic-card-horizontal/ic-card-horizontal.js.map +1 -1
  110. package/dist/collection/components/ic-data-table/ic-data-table.css +20 -0
  111. package/dist/collection/components/ic-data-table/ic-data-table.js +106 -10
  112. package/dist/collection/components/ic-data-table/ic-data-table.js.map +1 -1
  113. package/dist/collection/components/ic-data-table/story-data.js +7 -0
  114. package/dist/collection/components/ic-data-table/story-data.js.map +1 -1
  115. package/dist/collection/components/ic-data-table/test/basic/ic-data-table.spec.js +17 -0
  116. package/dist/collection/components/ic-data-table/test/basic/ic-data-table.spec.js.map +1 -1
  117. package/dist/collection/components/ic-date-input/ic-date-input.css +8 -0
  118. package/dist/collection/components/ic-date-input/ic-date-input.js +29 -9
  119. package/dist/collection/components/ic-date-input/ic-date-input.js.map +1 -1
  120. package/dist/collection/components/ic-date-picker/ic-date-picker.css +1 -0
  121. package/dist/collection/components/ic-date-picker/ic-date-picker.js +20 -0
  122. package/dist/collection/components/ic-date-picker/ic-date-picker.js.map +1 -1
  123. package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.css +8 -7
  124. package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.js +87 -36
  125. package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.js.map +1 -1
  126. package/dist/collection/components/ic-tree-item/ic-tree-item.css +25 -21
  127. package/dist/collection/components/ic-tree-item/ic-tree-item.js +51 -32
  128. package/dist/collection/components/ic-tree-item/ic-tree-item.js.map +1 -1
  129. package/dist/collection/components/ic-tree-view/ic-tree-view.css +8 -9
  130. package/dist/collection/components/ic-tree-view/ic-tree-view.js +51 -23
  131. package/dist/collection/components/ic-tree-view/ic-tree-view.js.map +1 -1
  132. package/dist/collection/utils/helpers.js +1 -1
  133. package/dist/collection/utils/helpers.js.map +1 -1
  134. package/dist/collection/utils/types.js.map +1 -1
  135. package/dist/components/helpers.js +22 -1
  136. package/dist/components/helpers.js.map +1 -1
  137. package/dist/components/helpers2.js +14 -121
  138. package/dist/components/helpers2.js.map +1 -1
  139. package/dist/components/ic-accordion-group.js +11 -11
  140. package/dist/components/ic-accordion-group.js.map +1 -1
  141. package/dist/components/ic-accordion.js +5 -5
  142. package/dist/components/ic-accordion.js.map +1 -1
  143. package/dist/components/ic-alert.js +8 -5
  144. package/dist/components/ic-alert.js.map +1 -1
  145. package/dist/components/ic-card-horizontal.js +22 -26
  146. package/dist/components/ic-card-horizontal.js.map +1 -1
  147. package/dist/components/ic-card-vertical.js +23 -24
  148. package/dist/components/ic-card-vertical.js.map +1 -1
  149. package/dist/components/ic-checkbox-group.js +19 -6
  150. package/dist/components/ic-checkbox-group.js.map +1 -1
  151. package/dist/components/ic-checkbox.js +6 -3
  152. package/dist/components/ic-checkbox.js.map +1 -1
  153. package/dist/components/ic-classification-banner.js +1 -1
  154. package/dist/components/ic-classification-banner.js.map +1 -1
  155. package/dist/components/ic-data-table.js +88 -10
  156. package/dist/components/ic-data-table.js.map +1 -1
  157. package/dist/components/ic-date-input2.js +14 -11
  158. package/dist/components/ic-date-input2.js.map +1 -1
  159. package/dist/components/ic-date-picker.js +5 -2
  160. package/dist/components/ic-date-picker.js.map +1 -1
  161. package/dist/components/ic-dialog.js +4 -1
  162. package/dist/components/ic-dialog.js.map +1 -1
  163. package/dist/components/ic-divider2.js +86 -9
  164. package/dist/components/ic-divider2.js.map +1 -1
  165. package/dist/components/ic-footer-link-group.js +1 -1
  166. package/dist/components/ic-footer-link-group.js.map +1 -1
  167. package/dist/components/ic-footer-link.js +1 -1
  168. package/dist/components/ic-footer-link.js.map +1 -1
  169. package/dist/components/ic-footer.js +2 -2
  170. package/dist/components/ic-footer.js.map +1 -1
  171. package/dist/components/ic-hero.js +1 -1
  172. package/dist/components/ic-hero.js.map +1 -1
  173. package/dist/components/ic-horizontal-scroll2.js +4 -3
  174. package/dist/components/ic-horizontal-scroll2.js.map +1 -1
  175. package/dist/components/ic-input-component-container2.js +1 -1
  176. package/dist/components/ic-input-component-container2.js.map +1 -1
  177. package/dist/components/ic-input-label2.js +10 -6
  178. package/dist/components/ic-input-label2.js.map +1 -1
  179. package/dist/components/ic-input-validation2.js +1 -1
  180. package/dist/components/ic-input-validation2.js.map +1 -1
  181. package/dist/components/ic-loading-indicator2.js +1 -1
  182. package/dist/components/ic-loading-indicator2.js.map +1 -1
  183. package/dist/components/ic-menu-group.js +2 -2
  184. package/dist/components/ic-menu-group.js.map +1 -1
  185. package/dist/components/ic-menu-item2.js +11 -11
  186. package/dist/components/ic-menu-item2.js.map +1 -1
  187. package/dist/components/ic-menu2.js +453 -169
  188. package/dist/components/ic-menu2.js.map +1 -1
  189. package/dist/components/ic-navigation-group.js +5 -4
  190. package/dist/components/ic-navigation-group.js.map +1 -1
  191. package/dist/components/ic-navigation-item.js +31 -3
  192. package/dist/components/ic-navigation-item.js.map +1 -1
  193. package/dist/components/ic-navigation-menu2.js +1 -1
  194. package/dist/components/ic-page-header.js +4 -4
  195. package/dist/components/ic-page-header.js.map +1 -1
  196. package/dist/components/ic-pagination-bar2.js +34 -17
  197. package/dist/components/ic-pagination-bar2.js.map +1 -1
  198. package/dist/components/ic-pagination-item2.js +10 -12
  199. package/dist/components/ic-pagination-item2.js.map +1 -1
  200. package/dist/components/ic-pagination2.js +38 -15
  201. package/dist/components/ic-pagination2.js.map +1 -1
  202. package/dist/components/ic-popover-menu.js +12 -11
  203. package/dist/components/ic-popover-menu.js.map +1 -1
  204. package/dist/components/ic-radio-group.js +17 -6
  205. package/dist/components/ic-radio-group.js.map +1 -1
  206. package/dist/components/ic-radio-option.js +32 -22
  207. package/dist/components/ic-radio-option.js.map +1 -1
  208. package/dist/components/ic-search-bar.js +13 -9
  209. package/dist/components/ic-search-bar.js.map +1 -1
  210. package/dist/components/ic-select2.js +148 -37
  211. package/dist/components/ic-select2.js.map +1 -1
  212. package/dist/components/ic-side-navigation.js +4 -3
  213. package/dist/components/ic-side-navigation.js.map +1 -1
  214. package/dist/components/ic-stepper.js +1 -1
  215. package/dist/components/ic-switch.js +7 -3
  216. package/dist/components/ic-switch.js.map +1 -1
  217. package/dist/components/ic-tab-context.js +2 -1
  218. package/dist/components/ic-tab-context.js.map +1 -1
  219. package/dist/components/ic-text-field2.js +2 -2
  220. package/dist/components/ic-text-field2.js.map +1 -1
  221. package/dist/components/ic-theme.js +1 -1
  222. package/dist/components/ic-toast.js +3 -3
  223. package/dist/components/ic-toast.js.map +1 -1
  224. package/dist/components/ic-toggle-button-group.js +1 -1
  225. package/dist/components/ic-toggle-button-group.js.map +1 -1
  226. package/dist/components/ic-top-navigation.js +1 -1
  227. package/dist/components/ic-tree-item.js +11 -6
  228. package/dist/components/ic-tree-item.js.map +1 -1
  229. package/dist/components/ic-tree-view.js +24 -14
  230. package/dist/components/ic-tree-view.js.map +1 -1
  231. package/dist/core/core.css +692 -10
  232. package/dist/core/core.esm.js +1 -1
  233. package/dist/core/core.esm.js.map +1 -1
  234. package/dist/core/p-00ff3a06.entry.js +2 -0
  235. package/dist/core/p-00ff3a06.entry.js.map +1 -0
  236. package/dist/core/{p-7e1603cc.entry.js → p-01ab3a15.entry.js} +2 -2
  237. package/dist/core/p-01ab3a15.entry.js.map +1 -0
  238. package/dist/core/{p-c033e7d6.entry.js → p-036d251b.entry.js} +2 -2
  239. package/dist/core/{p-9397b15b.js → p-043cf5de.js} +2 -2
  240. package/dist/core/p-043cf5de.js.map +1 -0
  241. package/dist/core/{p-d2e7a256.entry.js → p-13d2db9b.entry.js} +2 -2
  242. package/dist/core/p-1d24a02a.entry.js +2 -0
  243. package/dist/core/{p-7c80d79c.entry.js.map → p-1d24a02a.entry.js.map} +1 -1
  244. package/dist/core/p-235b461f.entry.js +2 -0
  245. package/dist/core/p-235b461f.entry.js.map +1 -0
  246. package/dist/core/{p-897b8d16.entry.js → p-24d03bbd.entry.js} +2 -2
  247. package/dist/core/{p-bb1252fa.entry.js → p-26613dbd.entry.js} +2 -2
  248. package/dist/core/p-2873f871.entry.js +2 -0
  249. package/dist/core/p-2873f871.entry.js.map +1 -0
  250. package/dist/core/{p-77a32de5.entry.js → p-2a3bd99a.entry.js} +2 -2
  251. package/dist/core/p-2f4bec06.entry.js +2 -0
  252. package/dist/core/p-2f4bec06.entry.js.map +1 -0
  253. package/dist/core/p-350074d4.entry.js +2 -0
  254. package/dist/core/p-350074d4.entry.js.map +1 -0
  255. package/dist/core/{p-5cfb5821.entry.js → p-39101ffc.entry.js} +2 -2
  256. package/dist/core/{p-5cfb5821.entry.js.map → p-39101ffc.entry.js.map} +1 -1
  257. package/dist/core/p-3b0fae40.entry.js +2 -0
  258. package/dist/core/p-3b0fae40.entry.js.map +1 -0
  259. package/dist/core/p-42f1b9cc.entry.js +2 -0
  260. package/dist/core/p-42f1b9cc.entry.js.map +1 -0
  261. package/dist/core/p-50dd2744.entry.js +2 -0
  262. package/dist/core/p-50dd2744.entry.js.map +1 -0
  263. package/dist/core/p-53228014.entry.js +2 -0
  264. package/dist/core/p-53228014.entry.js.map +1 -0
  265. package/dist/core/p-574355c9.entry.js +2 -0
  266. package/dist/core/p-574355c9.entry.js.map +1 -0
  267. package/dist/core/p-5af1273f.entry.js +2 -0
  268. package/dist/core/p-5af1273f.entry.js.map +1 -0
  269. package/dist/core/p-5eecd3fc.entry.js +2 -0
  270. package/dist/core/p-5eecd3fc.entry.js.map +1 -0
  271. package/dist/core/{p-4e28ef60.entry.js → p-606ad46f.entry.js} +2 -2
  272. package/dist/core/p-606ad46f.entry.js.map +1 -0
  273. package/dist/core/{p-4dcc37e7.entry.js → p-620b758c.entry.js} +2 -2
  274. package/dist/core/p-637035c3.entry.js +2 -0
  275. package/dist/core/p-637035c3.entry.js.map +1 -0
  276. package/dist/core/{p-6beffd0e.entry.js → p-6727166b.entry.js} +2 -2
  277. package/dist/core/{p-8ca2e329.entry.js → p-6dc00a8f.entry.js} +2 -2
  278. package/dist/core/{p-aeb6016c.entry.js → p-6dffaac0.entry.js} +2 -2
  279. package/dist/core/{p-aeb6016c.entry.js.map → p-6dffaac0.entry.js.map} +1 -1
  280. package/dist/core/p-72210cd4.entry.js +2 -0
  281. package/dist/core/p-72210cd4.entry.js.map +1 -0
  282. package/dist/core/{p-d5ca3bcb.entry.js → p-7aa6b76e.entry.js} +2 -2
  283. package/dist/core/{p-e5d99316.entry.js → p-7b90f0ae.entry.js} +2 -2
  284. package/dist/core/p-7c3c080a.entry.js +2 -0
  285. package/dist/core/p-7c3c080a.entry.js.map +1 -0
  286. package/dist/core/p-7c663d4a.entry.js +2 -0
  287. package/dist/core/p-7c663d4a.entry.js.map +1 -0
  288. package/dist/core/p-7c6710f8.entry.js +2 -0
  289. package/dist/core/p-7c6710f8.entry.js.map +1 -0
  290. package/dist/core/{p-50019ede.entry.js → p-80b296cd.entry.js} +2 -2
  291. package/dist/core/{p-b0751bd9.entry.js → p-80dee118.entry.js} +2 -2
  292. package/dist/core/p-80dee118.entry.js.map +1 -0
  293. package/dist/core/{p-eb65e556.entry.js → p-82aa8136.entry.js} +2 -2
  294. package/dist/core/{p-2e49fb22.entry.js → p-83b4efe2.entry.js} +2 -2
  295. package/dist/core/p-83e4d955.entry.js +2 -0
  296. package/dist/core/p-83e4d955.entry.js.map +1 -0
  297. package/dist/core/p-85d51975.entry.js +2 -0
  298. package/dist/core/p-85d51975.entry.js.map +1 -0
  299. package/dist/core/{p-5accf0bb.entry.js → p-878df16f.entry.js} +2 -2
  300. package/dist/core/{p-1fe35de1.entry.js → p-8bec76d1.entry.js} +2 -2
  301. package/dist/core/p-8ffdd236.entry.js +2 -0
  302. package/dist/core/p-8ffdd236.entry.js.map +1 -0
  303. package/dist/core/p-97953d8b.entry.js +2 -0
  304. package/dist/core/p-97953d8b.entry.js.map +1 -0
  305. package/dist/core/p-9a62c3b8.entry.js +2 -0
  306. package/dist/core/p-9a62c3b8.entry.js.map +1 -0
  307. package/dist/core/p-a22d335b.entry.js +2 -0
  308. package/dist/core/p-a22d335b.entry.js.map +1 -0
  309. package/dist/core/p-a22e5356.entry.js +2 -0
  310. package/dist/core/p-a22e5356.entry.js.map +1 -0
  311. package/dist/core/p-b03218df.entry.js +2 -0
  312. package/dist/core/p-b03218df.entry.js.map +1 -0
  313. package/dist/core/{p-486d8d43.entry.js → p-b3d93bc1.entry.js} +2 -2
  314. package/dist/core/p-c1feb2b2.entry.js +2 -0
  315. package/dist/core/p-c1feb2b2.entry.js.map +1 -0
  316. package/dist/core/{p-ed4cde5a.entry.js → p-c40c57ee.entry.js} +2 -2
  317. package/dist/core/p-c883b5c1.entry.js +2 -0
  318. package/dist/core/p-c883b5c1.entry.js.map +1 -0
  319. package/dist/core/{p-0ab10600.entry.js → p-cc22644d.entry.js} +2 -2
  320. package/dist/core/{p-505250cf.entry.js → p-d7632baf.entry.js} +2 -2
  321. package/dist/core/p-dcbfc485.entry.js +2 -0
  322. package/dist/core/p-dcbfc485.entry.js.map +1 -0
  323. package/dist/core/{p-44ee5375.entry.js → p-e3e0cf46.entry.js} +2 -2
  324. package/dist/core/p-e3e0cf46.entry.js.map +1 -0
  325. package/dist/core/p-e6a330e4.js +2 -0
  326. package/dist/core/p-e6a330e4.js.map +1 -0
  327. package/dist/core/{p-1109636a.entry.js → p-e7b6d9c5.entry.js} +2 -2
  328. package/dist/core/{p-1109636a.entry.js.map → p-e7b6d9c5.entry.js.map} +1 -1
  329. package/dist/core/p-ea3e2419.entry.js +2 -0
  330. package/dist/core/p-ea3e2419.entry.js.map +1 -0
  331. package/dist/core/p-f32ab3de.entry.js +2 -0
  332. package/dist/core/p-f32ab3de.entry.js.map +1 -0
  333. package/dist/core/p-f3f9acbb.entry.js +2 -0
  334. package/dist/core/p-f3f9acbb.entry.js.map +1 -0
  335. package/dist/core/{p-d03374fc.entry.js → p-fbb5c8f2.entry.js} +2 -2
  336. package/dist/esm/core.js +1 -1
  337. package/dist/esm/{helpers-5bd2012a.js → helpers-1e2516ae.js} +15 -122
  338. package/dist/esm/helpers-1e2516ae.js.map +1 -0
  339. package/dist/esm/{helpers-dab8ddfe.js → helpers-c326255f.js} +23 -2
  340. package/dist/esm/helpers-c326255f.js.map +1 -0
  341. package/dist/esm/ic-accordion-group.entry.js +10 -10
  342. package/dist/esm/ic-accordion-group.entry.js.map +1 -1
  343. package/dist/esm/ic-accordion.entry.js +5 -5
  344. package/dist/esm/ic-accordion.entry.js.map +1 -1
  345. package/dist/esm/ic-alert.entry.js +7 -5
  346. package/dist/esm/ic-alert.entry.js.map +1 -1
  347. package/dist/esm/ic-back-to-top.entry.js +1 -1
  348. package/dist/esm/ic-badge.entry.js +1 -1
  349. package/dist/esm/ic-breadcrumb-group.entry.js +1 -1
  350. package/dist/esm/ic-breadcrumb.entry.js +1 -1
  351. package/dist/esm/ic-button_3.entry.js +2 -2
  352. package/dist/esm/ic-button_3.entry.js.map +1 -1
  353. package/dist/esm/ic-card-horizontal.entry.js +22 -27
  354. package/dist/esm/ic-card-horizontal.entry.js.map +1 -1
  355. package/dist/esm/ic-card-vertical.entry.js +23 -25
  356. package/dist/esm/ic-card-vertical.entry.js.map +1 -1
  357. package/dist/esm/ic-checkbox-group.entry.js +17 -6
  358. package/dist/esm/ic-checkbox-group.entry.js.map +1 -1
  359. package/dist/esm/ic-checkbox.entry.js +6 -4
  360. package/dist/esm/ic-checkbox.entry.js.map +1 -1
  361. package/dist/esm/ic-chip.entry.js +1 -1
  362. package/dist/esm/ic-classification-banner.entry.js +1 -1
  363. package/dist/esm/ic-classification-banner.entry.js.map +1 -1
  364. package/dist/esm/ic-data-row.entry.js +1 -1
  365. package/dist/esm/ic-data-table-title-bar.entry.js +1 -1
  366. package/dist/esm/ic-data-table.entry.js +86 -10
  367. package/dist/esm/ic-data-table.entry.js.map +1 -1
  368. package/dist/esm/ic-date-input.entry.js +13 -11
  369. package/dist/esm/ic-date-input.entry.js.map +1 -1
  370. package/dist/esm/ic-date-picker.entry.js +4 -2
  371. package/dist/esm/ic-date-picker.entry.js.map +1 -1
  372. package/dist/esm/ic-dialog.entry.js +4 -2
  373. package/dist/esm/ic-dialog.entry.js.map +1 -1
  374. package/dist/esm/ic-divider.entry.js +72 -8
  375. package/dist/esm/ic-divider.entry.js.map +1 -1
  376. package/dist/esm/ic-empty-state_2.entry.js +31 -16
  377. package/dist/esm/ic-empty-state_2.entry.js.map +1 -1
  378. package/dist/esm/ic-footer-link-group.entry.js +2 -2
  379. package/dist/esm/ic-footer-link-group.entry.js.map +1 -1
  380. package/dist/esm/ic-footer-link.entry.js +2 -2
  381. package/dist/esm/ic-footer-link.entry.js.map +1 -1
  382. package/dist/esm/ic-footer.entry.js +2 -2
  383. package/dist/esm/ic-footer.entry.js.map +1 -1
  384. package/dist/esm/ic-hero.entry.js +2 -2
  385. package/dist/esm/ic-hero.entry.js.map +1 -1
  386. package/dist/esm/ic-horizontal-scroll.entry.js +4 -3
  387. package/dist/esm/ic-horizontal-scroll.entry.js.map +1 -1
  388. package/dist/{collection/components/ic-menu-with-multi/ic-menu.js → esm/ic-input-component-container_3.entry.js} +160 -729
  389. package/dist/esm/ic-input-component-container_3.entry.js.map +1 -0
  390. package/dist/esm/ic-input-label_2.entry.js +81 -0
  391. package/dist/esm/ic-input-label_2.entry.js.map +1 -0
  392. package/dist/esm/ic-link.entry.js +1 -1
  393. package/dist/esm/ic-menu-group.entry.js +3 -3
  394. package/dist/esm/ic-menu-group.entry.js.map +1 -1
  395. package/dist/esm/ic-menu-item.entry.js +11 -11
  396. package/dist/esm/ic-menu-item.entry.js.map +1 -1
  397. package/dist/esm/ic-navigation-button.entry.js +1 -1
  398. package/dist/esm/ic-navigation-group.entry.js +5 -4
  399. package/dist/esm/ic-navigation-group.entry.js.map +1 -1
  400. package/dist/esm/ic-navigation-item.entry.js +30 -3
  401. package/dist/esm/ic-navigation-item.entry.js.map +1 -1
  402. package/dist/esm/ic-navigation-menu.entry.js +1 -1
  403. package/dist/esm/ic-page-header.entry.js +5 -5
  404. package/dist/esm/ic-page-header.entry.js.map +1 -1
  405. package/dist/esm/ic-pagination_4.entry.js +191 -62
  406. package/dist/esm/ic-pagination_4.entry.js.map +1 -1
  407. package/dist/esm/ic-popover-menu.entry.js +11 -11
  408. package/dist/esm/ic-popover-menu.entry.js.map +1 -1
  409. package/dist/esm/ic-radio-group.entry.js +15 -6
  410. package/dist/esm/ic-radio-group.entry.js.map +1 -1
  411. package/dist/esm/ic-radio-option.entry.js +31 -22
  412. package/dist/esm/ic-radio-option.entry.js.map +1 -1
  413. package/dist/esm/ic-search-bar.entry.js +12 -9
  414. package/dist/esm/ic-search-bar.entry.js.map +1 -1
  415. package/dist/esm/ic-side-navigation.entry.js +4 -3
  416. package/dist/esm/ic-side-navigation.entry.js.map +1 -1
  417. package/dist/esm/ic-status-tag.entry.js +1 -1
  418. package/dist/esm/ic-step.entry.js +1 -1
  419. package/dist/esm/ic-stepper.entry.js +1 -1
  420. package/dist/esm/ic-switch.entry.js +7 -4
  421. package/dist/esm/ic-switch.entry.js.map +1 -1
  422. package/dist/esm/ic-tab-context.entry.js +2 -1
  423. package/dist/esm/ic-tab-context.entry.js.map +1 -1
  424. package/dist/esm/ic-tab-group.entry.js +1 -1
  425. package/dist/esm/ic-tab-panel.entry.js +1 -1
  426. package/dist/esm/ic-tab.entry.js +1 -1
  427. package/dist/esm/ic-theme.entry.js +1 -1
  428. package/dist/esm/ic-toast.entry.js +3 -3
  429. package/dist/esm/ic-toast.entry.js.map +1 -1
  430. package/dist/esm/ic-toggle-button-group.entry.js +1 -1
  431. package/dist/esm/ic-toggle-button-group.entry.js.map +1 -1
  432. package/dist/esm/ic-toggle-button.entry.js +1 -1
  433. package/dist/esm/ic-top-navigation.entry.js +1 -1
  434. package/dist/esm/ic-tree-item.entry.js +10 -6
  435. package/dist/esm/ic-tree-item.entry.js.map +1 -1
  436. package/dist/esm/ic-tree-view.entry.js +19 -11
  437. package/dist/esm/ic-tree-view.entry.js.map +1 -1
  438. package/dist/esm/ic-typography.entry.js +1 -1
  439. package/dist/esm/index-93509377.js +4 -12
  440. package/dist/esm/loader.js +1 -1
  441. package/dist/types/components/ic-card-horizontal/ic-card-horizontal.d.ts +6 -2
  442. package/dist/types/components/ic-data-table/ic-data-table.d.ts +13 -0
  443. package/dist/types/components/ic-data-table/story-data.d.ts +1 -0
  444. package/dist/types/components/ic-date-input/ic-date-input.d.ts +4 -0
  445. package/dist/types/components/ic-date-picker/ic-date-picker.d.ts +4 -0
  446. package/dist/types/components/ic-pagination-bar/ic-pagination-bar.d.ts +15 -6
  447. package/dist/types/components/ic-tree-item/ic-tree-item.d.ts +11 -6
  448. package/dist/types/components/ic-tree-view/ic-tree-view.d.ts +10 -4
  449. package/dist/types/components.d.ts +94 -484
  450. package/dist/types/utils/helpers.d.ts +1 -1
  451. package/dist/types/utils/types.d.ts +4 -1
  452. package/hydrate/index.js +3373 -6380
  453. package/package.json +3 -3
  454. package/dist/cjs/helpers-33b42cd6.js.map +0 -1
  455. package/dist/cjs/helpers-6817cfbb.js.map +0 -1
  456. package/dist/cjs/ic-input-component-container_4.cjs.entry.js +0 -156
  457. package/dist/cjs/ic-input-component-container_4.cjs.entry.js.map +0 -1
  458. package/dist/cjs/ic-menu-with-multi.cjs.entry.js +0 -2738
  459. package/dist/cjs/ic-menu-with-multi.cjs.entry.js.map +0 -1
  460. package/dist/cjs/ic-menu.cjs.entry.js +0 -658
  461. package/dist/cjs/ic-menu.cjs.entry.js.map +0 -1
  462. package/dist/cjs/ic-select-with-multi.cjs.entry.js +0 -788
  463. package/dist/cjs/ic-select-with-multi.cjs.entry.js.map +0 -1
  464. package/dist/collection/components/ic-menu-with-multi/ic-menu.css +0 -712
  465. package/dist/collection/components/ic-menu-with-multi/ic-menu.js.map +0 -1
  466. package/dist/collection/components/ic-menu-with-multi/test/basic/ic-menu.spec.js +0 -1057
  467. package/dist/collection/components/ic-menu-with-multi/test/basic/ic-menu.spec.js.map +0 -1
  468. package/dist/collection/components/ic-select-with-multi/assets/Check.svg +0 -3
  469. package/dist/collection/components/ic-select-with-multi/assets/Clear.svg +0 -3
  470. package/dist/collection/components/ic-select-with-multi/assets/Expand.svg +0 -3
  471. package/dist/collection/components/ic-select-with-multi/ic-select.css +0 -695
  472. package/dist/collection/components/ic-select-with-multi/ic-select.js +0 -1520
  473. package/dist/collection/components/ic-select-with-multi/ic-select.js.map +0 -1
  474. package/dist/collection/components/ic-select-with-multi/story-data.js +0 -216
  475. package/dist/collection/components/ic-select-with-multi/story-data.js.map +0 -1
  476. package/dist/collection/components/ic-select-with-multi/test/basic/ic-select.spec.js +0 -1518
  477. package/dist/collection/components/ic-select-with-multi/test/basic/ic-select.spec.js.map +0 -1
  478. package/dist/components/ic-menu-with-multi.d.ts +0 -11
  479. package/dist/components/ic-menu-with-multi.js +0 -8
  480. package/dist/components/ic-menu-with-multi.js.map +0 -1
  481. package/dist/components/ic-menu3.js +0 -2803
  482. package/dist/components/ic-menu3.js.map +0 -1
  483. package/dist/components/ic-select-with-multi.d.ts +0 -11
  484. package/dist/components/ic-select-with-multi.js +0 -906
  485. package/dist/components/ic-select-with-multi.js.map +0 -1
  486. package/dist/core/p-0894cab1.entry.js +0 -2
  487. package/dist/core/p-0894cab1.entry.js.map +0 -1
  488. package/dist/core/p-130a05cf.entry.js +0 -2
  489. package/dist/core/p-130a05cf.entry.js.map +0 -1
  490. package/dist/core/p-1e2aa8a6.entry.js +0 -2
  491. package/dist/core/p-1e2aa8a6.entry.js.map +0 -1
  492. package/dist/core/p-202bc922.entry.js +0 -2
  493. package/dist/core/p-202bc922.entry.js.map +0 -1
  494. package/dist/core/p-28323849.entry.js +0 -2
  495. package/dist/core/p-28323849.entry.js.map +0 -1
  496. package/dist/core/p-297e99cf.js +0 -2
  497. package/dist/core/p-297e99cf.js.map +0 -1
  498. package/dist/core/p-2ff4e283.entry.js +0 -2
  499. package/dist/core/p-2ff4e283.entry.js.map +0 -1
  500. package/dist/core/p-30b046b2.entry.js +0 -2
  501. package/dist/core/p-30b046b2.entry.js.map +0 -1
  502. package/dist/core/p-3db785f0.entry.js +0 -2
  503. package/dist/core/p-3db785f0.entry.js.map +0 -1
  504. package/dist/core/p-42883e4c.entry.js +0 -2
  505. package/dist/core/p-42883e4c.entry.js.map +0 -1
  506. package/dist/core/p-42e0f3bd.entry.js +0 -2
  507. package/dist/core/p-42e0f3bd.entry.js.map +0 -1
  508. package/dist/core/p-44ee5375.entry.js.map +0 -1
  509. package/dist/core/p-4e28ef60.entry.js.map +0 -1
  510. package/dist/core/p-53e00a8a.entry.js +0 -2
  511. package/dist/core/p-53e00a8a.entry.js.map +0 -1
  512. package/dist/core/p-59028160.entry.js +0 -2
  513. package/dist/core/p-59028160.entry.js.map +0 -1
  514. package/dist/core/p-5b7dfe57.entry.js +0 -2
  515. package/dist/core/p-5b7dfe57.entry.js.map +0 -1
  516. package/dist/core/p-603fea14.entry.js +0 -2
  517. package/dist/core/p-603fea14.entry.js.map +0 -1
  518. package/dist/core/p-64933069.entry.js +0 -2
  519. package/dist/core/p-64933069.entry.js.map +0 -1
  520. package/dist/core/p-7c268030.entry.js +0 -2
  521. package/dist/core/p-7c268030.entry.js.map +0 -1
  522. package/dist/core/p-7c78f6c6.entry.js +0 -2
  523. package/dist/core/p-7c78f6c6.entry.js.map +0 -1
  524. package/dist/core/p-7c80d79c.entry.js +0 -2
  525. package/dist/core/p-7e1603cc.entry.js.map +0 -1
  526. package/dist/core/p-8df49808.entry.js +0 -2
  527. package/dist/core/p-8df49808.entry.js.map +0 -1
  528. package/dist/core/p-8f12659d.entry.js +0 -2
  529. package/dist/core/p-8f12659d.entry.js.map +0 -1
  530. package/dist/core/p-903ee57e.entry.js +0 -2
  531. package/dist/core/p-903ee57e.entry.js.map +0 -1
  532. package/dist/core/p-92e3ccb9.entry.js +0 -2
  533. package/dist/core/p-92e3ccb9.entry.js.map +0 -1
  534. package/dist/core/p-9397b15b.js.map +0 -1
  535. package/dist/core/p-9b54feca.entry.js +0 -2
  536. package/dist/core/p-9b54feca.entry.js.map +0 -1
  537. package/dist/core/p-a78cf2cb.entry.js +0 -2
  538. package/dist/core/p-a78cf2cb.entry.js.map +0 -1
  539. package/dist/core/p-a9151d0b.entry.js +0 -2
  540. package/dist/core/p-a9151d0b.entry.js.map +0 -1
  541. package/dist/core/p-acc76b80.entry.js +0 -2
  542. package/dist/core/p-acc76b80.entry.js.map +0 -1
  543. package/dist/core/p-b0751bd9.entry.js.map +0 -1
  544. package/dist/core/p-c1698936.entry.js +0 -2
  545. package/dist/core/p-c1698936.entry.js.map +0 -1
  546. package/dist/core/p-c1e90c85.entry.js +0 -2
  547. package/dist/core/p-c1e90c85.entry.js.map +0 -1
  548. package/dist/core/p-cb63e656.entry.js +0 -2
  549. package/dist/core/p-cb63e656.entry.js.map +0 -1
  550. package/dist/core/p-d3c0bffb.entry.js +0 -2
  551. package/dist/core/p-d3c0bffb.entry.js.map +0 -1
  552. package/dist/core/p-da3e8c54.entry.js +0 -2
  553. package/dist/core/p-da3e8c54.entry.js.map +0 -1
  554. package/dist/core/p-ec53b435.entry.js +0 -2
  555. package/dist/core/p-ec53b435.entry.js.map +0 -1
  556. package/dist/core/p-f9810621.entry.js +0 -2
  557. package/dist/core/p-f9810621.entry.js.map +0 -1
  558. package/dist/core/p-fb7b99dd.entry.js +0 -2
  559. package/dist/core/p-fb7b99dd.entry.js.map +0 -1
  560. package/dist/esm/helpers-5bd2012a.js.map +0 -1
  561. package/dist/esm/helpers-dab8ddfe.js.map +0 -1
  562. package/dist/esm/ic-input-component-container_4.entry.js +0 -149
  563. package/dist/esm/ic-input-component-container_4.entry.js.map +0 -1
  564. package/dist/esm/ic-menu-with-multi.entry.js +0 -2734
  565. package/dist/esm/ic-menu-with-multi.entry.js.map +0 -1
  566. package/dist/esm/ic-menu.entry.js +0 -654
  567. package/dist/esm/ic-menu.entry.js.map +0 -1
  568. package/dist/esm/ic-select-with-multi.entry.js +0 -784
  569. package/dist/esm/ic-select-with-multi.entry.js.map +0 -1
  570. package/dist/types/components/ic-menu-with-multi/ic-menu.d.ts +0 -214
  571. package/dist/types/components/ic-select-with-multi/ic-select.d.ts +0 -259
  572. package/dist/types/components/ic-select-with-multi/story-data.d.ts +0 -32
  573. /package/dist/core/{p-c033e7d6.entry.js.map → p-036d251b.entry.js.map} +0 -0
  574. /package/dist/core/{p-d2e7a256.entry.js.map → p-13d2db9b.entry.js.map} +0 -0
  575. /package/dist/core/{p-897b8d16.entry.js.map → p-24d03bbd.entry.js.map} +0 -0
  576. /package/dist/core/{p-bb1252fa.entry.js.map → p-26613dbd.entry.js.map} +0 -0
  577. /package/dist/core/{p-77a32de5.entry.js.map → p-2a3bd99a.entry.js.map} +0 -0
  578. /package/dist/core/{p-4dcc37e7.entry.js.map → p-620b758c.entry.js.map} +0 -0
  579. /package/dist/core/{p-6beffd0e.entry.js.map → p-6727166b.entry.js.map} +0 -0
  580. /package/dist/core/{p-8ca2e329.entry.js.map → p-6dc00a8f.entry.js.map} +0 -0
  581. /package/dist/core/{p-d5ca3bcb.entry.js.map → p-7aa6b76e.entry.js.map} +0 -0
  582. /package/dist/core/{p-e5d99316.entry.js.map → p-7b90f0ae.entry.js.map} +0 -0
  583. /package/dist/core/{p-50019ede.entry.js.map → p-80b296cd.entry.js.map} +0 -0
  584. /package/dist/core/{p-eb65e556.entry.js.map → p-82aa8136.entry.js.map} +0 -0
  585. /package/dist/core/{p-2e49fb22.entry.js.map → p-83b4efe2.entry.js.map} +0 -0
  586. /package/dist/core/{p-5accf0bb.entry.js.map → p-878df16f.entry.js.map} +0 -0
  587. /package/dist/core/{p-1fe35de1.entry.js.map → p-8bec76d1.entry.js.map} +0 -0
  588. /package/dist/core/{p-486d8d43.entry.js.map → p-b3d93bc1.entry.js.map} +0 -0
  589. /package/dist/core/{p-ed4cde5a.entry.js.map → p-c40c57ee.entry.js.map} +0 -0
  590. /package/dist/core/{p-0ab10600.entry.js.map → p-cc22644d.entry.js.map} +0 -0
  591. /package/dist/core/{p-505250cf.entry.js.map → p-d7632baf.entry.js.map} +0 -0
  592. /package/dist/core/{p-d03374fc.entry.js.map → p-fbb5c8f2.entry.js.map} +0 -0
@@ -1,906 +0,0 @@
1
- import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
2
- import { y as getLabelFromValue, z as getFilteredMenuOptions, x as getOptionsWithoutGroupTitlesCount, j as removeFormResetListener, A as inheritAttributes, r as removeDisabledFalse, k as addFormResetListener, o as onComponentRequiredPropUndefined, n as renderHiddenInput, h as getInputDescribedByText, B as hasValidationStatus, C as isMobileOrTablet, I as IcThemeForegroundEnum, D as IC_INHERITED_ARIA, m as IcInformationStatus } from './helpers2.js';
3
- import { d as defineCustomElement$a } from './ic-button2.js';
4
- import { d as defineCustomElement$9 } from './ic-input-component-container2.js';
5
- import { d as defineCustomElement$8 } from './ic-input-container2.js';
6
- import { d as defineCustomElement$7 } from './ic-input-label2.js';
7
- import { d as defineCustomElement$6 } from './ic-input-validation2.js';
8
- import { d as defineCustomElement$5 } from './ic-loading-indicator2.js';
9
- import { d as defineCustomElement$4 } from './ic-menu3.js';
10
- import { d as defineCustomElement$3 } from './ic-tooltip2.js';
11
- import { d as defineCustomElement$2 } from './ic-typography2.js';
12
-
13
- const Expand = `<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
14
- <path d="M7 9.5L12 14.5L17 9.5H7Z" fill="currentColor" />
15
- </svg>
16
- `;
17
-
18
- const Clear = `<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
19
- <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" />
20
- </svg>
21
- `;
22
-
23
- 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-pressed);color:var(--ic-action-dark-pressed)}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-text-primary);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-text-primary)}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-text-tertiary)}.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-color-focus-inner);box-shadow:inset 0 0 0 0.125rem var(--ic-color-focus-outer);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)}";
24
-
25
- let inputIds = 0;
26
- const Select = /*@__PURE__*/ proxyCustomElement(class Select extends HTMLElement {
27
- constructor() {
28
- super();
29
- this.__registerHost();
30
- this.__attachShadow();
31
- this.icBlur = createEvent(this, "icBlur", 7);
32
- this.icChange = createEvent(this, "icChange", 7);
33
- this.icClear = createEvent(this, "icClear", 7);
34
- this.icFocus = createEvent(this, "icFocus", 7);
35
- this.icInput = createEvent(this, "icInput", 7);
36
- this.icOptionSelect = createEvent(this, "icOptionSelect", 7);
37
- this.icOptionDeselect = createEvent(this, "icOptionDeselect", 7);
38
- this.icRetryLoad = createEvent(this, "icRetryLoad", 7);
39
- this.hasSetDefaultValue = false;
40
- this.inheritedAttributes = {};
41
- this.initialOptionsEmpty = false;
42
- this.inputId = `ic-select-input-${inputIds++}`;
43
- this.menuId = `${this.inputId}-menu`;
44
- this.searchableMenuItemSelected = false;
45
- this.ungroupedOptions = [];
46
- this.handleRetry = (ev) => {
47
- var _a;
48
- if (ev.detail.keyPressed)
49
- (_a = this.searchableSelectElement) === null || _a === void 0 ? void 0 : _a.focus();
50
- this.blurredBecauseButtonPressed = true;
51
- this.retryButtonClick = true;
52
- this.hasSetDefaultValue = true;
53
- this.icRetryLoad.emit({ value: this.hiddenInputValue });
54
- };
55
- this.emitIcChange = (value) => {
56
- if (!this.searchable) {
57
- // If "Select all" button clicked, replace value with new value (array of all option values)
58
- if (this.multiple && !Array.isArray(value) && value !== null) {
59
- this.handleMultipleSelectChange(value);
60
- }
61
- else {
62
- this.value = value;
63
- }
64
- }
65
- clearTimeout(this.debounceIcChange);
66
- this.debounceIcChange = window.setTimeout(() => {
67
- const valueToEmit = this.multiple ? this.value : value;
68
- this.icChange.emit({ value: valueToEmit });
69
- }, this.currDebounce);
70
- };
71
- this.emitImmediateIcChange = (value) => {
72
- this.value = value;
73
- clearTimeout(this.debounceIcChange);
74
- this.icChange.emit({ value });
75
- };
76
- /**
77
- * Processes the provided array of IcMenuOptions, removing duplicates and reporting them with a console.warn
78
- * @param options array of IcMenuOptions
79
- * @returns a new options object, with all entries possessing a duplicate 'value' field removed
80
- */
81
- this.deduplicateOptions = (options) => {
82
- const uniqueValues = [];
83
- const dedupedOptions = [];
84
- let dedupedChildren;
85
- options.forEach((option) => {
86
- if (option.children) {
87
- //If an option has children, we will loop through them
88
- dedupedChildren = [];
89
- option.children.forEach((child) => {
90
- if (uniqueValues.includes(child.value)) {
91
- console.warn(`ic-select with label ${this.label} was populated with duplicate option (value: ${child.value}) which has been removed.`);
92
- }
93
- else {
94
- uniqueValues.push(child.value);
95
- dedupedChildren.push(child);
96
- }
97
- });
98
- // construct a modified option, inserting the deduplicated children alongside the original information
99
- const modifiedParent = Object.assign(Object.assign({}, option), { children: dedupedChildren });
100
- dedupedOptions.push(modifiedParent);
101
- }
102
- else {
103
- // If an option does not have children, assess to see if it's value has been included already
104
- if (uniqueValues.includes(option.value)) {
105
- console.warn(`ic-select with label ${this.label} was populated with duplicate option (value: ${option.value}) which has been removed.`);
106
- }
107
- else {
108
- uniqueValues.push(option.value);
109
- dedupedOptions.push(option);
110
- }
111
- }
112
- });
113
- return dedupedOptions;
114
- };
115
- /**
116
- * Loop through options array and for all options with no value, infer it from the label
117
- */
118
- this.setOptionsValuesFromLabels = () => {
119
- if (this.options.length > 0 && this.options.map) {
120
- this.options.map((option) => {
121
- if (!option.value) {
122
- option.value = option.label;
123
- }
124
- });
125
- }
126
- };
127
- this.setUngroupedOptions = (event) => {
128
- this.ungroupedOptions = event.detail.options;
129
- };
130
- this.setTextColor = () => {
131
- if (this.nativeSelectElement.selectedIndex === 0) {
132
- this.nativeSelectElement.className = "placeholder";
133
- }
134
- else {
135
- this.nativeSelectElement.className = "select-option-selected";
136
- }
137
- };
138
- this.setMenuChange = (open) => {
139
- if (this.open !== open) {
140
- this.open = open;
141
- }
142
- };
143
- this.getLabelFromValue = (value) => {
144
- return getLabelFromValue(value, this.uniqueOptions);
145
- };
146
- this.getMultipleOptionsString = (selectedValues) => {
147
- const selectedLabels = selectedValues === null || selectedValues === void 0 ? void 0 : selectedValues.map((value) => this.getLabelFromValue(value));
148
- return selectedLabels === null || selectedLabels === void 0 ? void 0 : selectedLabels.join(", ");
149
- };
150
- this.getFilteredChildMenuOptions = (option) => {
151
- let children = option.children;
152
- if (this.searchable) {
153
- children = getFilteredMenuOptions(option.children, this.includeDescriptionsInSearch, this.searchableSelectInputValue, this.searchMatchPosition);
154
- }
155
- else {
156
- children = getFilteredMenuOptions(option.children, false, this.pressedCharacters, "start");
157
- }
158
- const newOption = Object.assign({}, option);
159
- newOption.children = children;
160
- return newOption;
161
- };
162
- // (For multi-select) get value array, i.e. selected option values, in order they appear in option list
163
- this.getValueSortedByOptions = (value) => {
164
- const valueArray = value;
165
- const valuesFromAllOptions = this.ungroupedOptions.map((option) => option.value);
166
- valueArray.sort((a, b) => valuesFromAllOptions.indexOf(a) - valuesFromAllOptions.indexOf(b));
167
- return valueArray;
168
- };
169
- this.handleNativeSelectChange = () => {
170
- this.icOptionSelect.emit({ value: this.nativeSelectElement.value });
171
- this.emitImmediateIcChange(this.nativeSelectElement.value);
172
- this.setTextColor();
173
- };
174
- // Handle option select for when a custom input box and menu is rendered
175
- // (rather than native <select> - rendered when viewed on a mobile / tablet screen)
176
- this.handleCustomSelectChange = (event) => {
177
- var _a;
178
- const value = event.detail.value;
179
- if (this.searchable && event.detail.label === this.emptyOptionListText) {
180
- this.searchableSelectElement.focus();
181
- return;
182
- }
183
- if (this.searchable) {
184
- this.value = value;
185
- this.searchableMenuItemSelected = true;
186
- // After editing the input, if selecting the same option as before, set the input value to label again
187
- if (this.value === this.currValue) {
188
- this.searchableSelectInputValue = this.getLabelFromValue(this.value);
189
- }
190
- this.inputValueToFilter = null;
191
- this.hiddenInputValue = this.getValueFromLabel(this.searchableSelectInputValue);
192
- }
193
- if (this.multiple && ((_a = this.value) === null || _a === void 0 ? void 0 : _a.includes(value))) {
194
- this.icOptionDeselect.emit({ value });
195
- }
196
- else {
197
- this.icOptionSelect.emit({ value });
198
- }
199
- this.ariaActiveDescendant = event.detail.optionId;
200
- this.emitIcChange(value);
201
- };
202
- // Update selected options - adds / removes them, in order of option list
203
- // Create new array if value prop is undefined
204
- this.handleMultipleSelectChange = (value) => {
205
- if (this.value) {
206
- let valueArray = this.value.slice();
207
- if (this.value.includes(value)) {
208
- const valueIndex = valueArray.indexOf(value);
209
- valueArray.splice(valueIndex, 1);
210
- }
211
- else {
212
- valueArray.push(value);
213
- valueArray = this.getValueSortedByOptions(valueArray);
214
- }
215
- this.value = valueArray.length === 0 ? null : valueArray;
216
- }
217
- else {
218
- const valueArray = [];
219
- valueArray.push(value);
220
- this.value = valueArray;
221
- }
222
- };
223
- this.handleSelectAllChange = (event) => {
224
- const selectAllOptions = event.detail.select;
225
- const allEnabledOptions = this.ungroupedOptions.filter((option) => !option.disabled);
226
- const allValues = allEnabledOptions.map((option) => option.value);
227
- let newValue;
228
- if (selectAllOptions) {
229
- let unselectedValues;
230
- // Only emit icOptionSelect for all values that are newly selected
231
- if (this.value) {
232
- unselectedValues = allValues.filter((value) => this.value && !this.value.includes(value));
233
- }
234
- else {
235
- unselectedValues = allValues;
236
- }
237
- unselectedValues.forEach((value) => this.icOptionSelect.emit({ value }));
238
- newValue = allValues;
239
- }
240
- else {
241
- // Only emit icOptionDeselect for values that were selected
242
- this.value.forEach((value) => this.icOptionDeselect.emit({ value }));
243
- newValue = null;
244
- }
245
- this.emitIcChange(newValue);
246
- };
247
- this.handleMenuChange = (event) => {
248
- this.open = event.detail.open;
249
- this.pressedCharacters = "";
250
- this.searchable && this.handleFocusIndicatorDisplay();
251
- };
252
- // clears the debounce delay when navigating the menu with arrow keys etc
253
- // to prevent delay in change event, which should only occur when typing in input
254
- this.handleMenuKeyPress = (ev) => {
255
- ev.cancelBubble = true;
256
- if (!this.multiple) {
257
- this.handleCharacterKeyDown(ev.detail.key);
258
- }
259
- };
260
- this.handleFocusIndicatorDisplay = () => {
261
- const focusIndicator = this.el.shadowRoot.querySelector(".focus-indicator");
262
- if (this.open) {
263
- focusIndicator.classList.add("focus-indicator-enabled");
264
- }
265
- else {
266
- focusIndicator.classList.remove("focus-indicator-enabled");
267
- }
268
- };
269
- this.handleMouseDown = (event) => {
270
- if (!this.open) {
271
- event.preventDefault();
272
- }
273
- };
274
- this.isExternalFiltering = () => this.searchable && this.disableAutoFiltering;
275
- this.handleClick = (event) => {
276
- var _a;
277
- if (!this.open) {
278
- if (this.isExternalFiltering()) {
279
- this.menu.options = this.filteredOptions;
280
- }
281
- else if (!this.hasTimedOut &&
282
- !this.loading &&
283
- !((_a = this.noOptions) === null || _a === void 0 ? void 0 : _a.length) &&
284
- (!this.searchable || this.searchableMenuItemSelected)) {
285
- this.noOptions = null;
286
- this.menu.options = this.uniqueOptions;
287
- }
288
- }
289
- if (event.detail !== 0) {
290
- this.menu.handleClickOpen();
291
- }
292
- };
293
- this.handleExpandIconMouseDown = (event) => {
294
- if (!this.disabled) {
295
- event.preventDefault();
296
- this.searchableSelectElement.focus();
297
- this.handleClick(event);
298
- }
299
- };
300
- this.handleClear = (event) => {
301
- event.stopPropagation();
302
- this.hasTimedOut = false;
303
- clearTimeout(this.timeoutTimer);
304
- this.noOptions = null;
305
- this.emitImmediateIcChange(null);
306
- this.icClear.emit();
307
- if (this.searchable) {
308
- this.searchableSelectElement.value = null;
309
- this.searchableSelectInputValue = null;
310
- this.filteredOptions = this.uniqueOptions;
311
- this.hiddenInputValue = null;
312
- this.searchableSelectElement.focus();
313
- }
314
- else {
315
- this.customSelectElement.focus();
316
- }
317
- };
318
- this.handleCharacterKeyDown = (key) => {
319
- // Only close menu when space is pressed if not being used alongside character keys to quickly select options
320
- if (this.open &&
321
- key === " " &&
322
- this.pressedCharacters.length === 0 &&
323
- !this.hasTimedOut &&
324
- !this.loading) {
325
- this.setMenuChange(false);
326
- }
327
- if (key.length === 1 && !this.searchable) {
328
- window.clearTimeout(this.characterKeyPressTimer);
329
- this.characterKeyPressTimer = window.setTimeout(() => (this.pressedCharacters = ""), 1000);
330
- if (!(key === " " && !this.pressedCharacters)) {
331
- this.pressedCharacters += key;
332
- this.handleFilter();
333
- if (!this.noOptions) {
334
- this.emitImmediateIcChange(this.filteredOptions[0].value);
335
- }
336
- }
337
- }
338
- else {
339
- this.pressedCharacters = "";
340
- }
341
- };
342
- this.handleNativeSelectKeyDown = (event) => {
343
- if ((event.key !== "Escape" && event.key !== "Tab") || this.open) {
344
- event.cancelBubble = true;
345
- }
346
- this.handleCharacterKeyDown(event.key);
347
- };
348
- this.handleKeyDown = (event) => {
349
- if ((event.key !== "Escape" && event.key !== "Tab") || this.open) {
350
- event.cancelBubble = true;
351
- }
352
- const isArrowKey = event.key === "ArrowDown" || event.key === "ArrowUp";
353
- if (!this.open) {
354
- if (this.isExternalFiltering() && (event.key === "Enter" || isArrowKey)) {
355
- this.menu.options = this.filteredOptions;
356
- }
357
- else {
358
- if (!this.hasTimedOut) {
359
- this.noOptions = null;
360
- this.menu.options = this.uniqueOptions;
361
- }
362
- }
363
- }
364
- if (this.open && event.key === "Enter") {
365
- this.setMenuChange(false);
366
- }
367
- else {
368
- if (!(isArrowKey && this.noOptions !== null)) {
369
- if (!(event.key === " " && this.pressedCharacters.length > 0)) {
370
- // Keyboard events get passed onto ic-menu
371
- this.menu.handleKeyboardOpen(event);
372
- }
373
- if (!this.multiple) {
374
- this.handleCharacterKeyDown(event.key);
375
- }
376
- }
377
- }
378
- };
379
- this.handleClearButtonFocus = () => {
380
- this.clearButtonFocused = true;
381
- };
382
- this.handleClearButtonBlur = (ev) => {
383
- var _a;
384
- const retryButton = (_a = this.menu) === null || _a === void 0 ? void 0 : _a.querySelector("#retry-button");
385
- if (!(this.searchableSelectElement &&
386
- ev.relatedTarget === this.searchableSelectElement) &&
387
- !(retryButton && ev.relatedTarget === retryButton)) {
388
- this.setMenuChange(false);
389
- this.handleFocusIndicatorDisplay();
390
- }
391
- this.clearButtonFocused = false;
392
- };
393
- this.handleFilter = () => {
394
- var _a;
395
- const options = this.deduplicateOptions(this.searchable ? [...this.uniqueOptions] : this.ungroupedOptions);
396
- let isGrouped = false;
397
- let newFilteredOptions = [];
398
- options.map((option) => {
399
- if (option.children)
400
- isGrouped = true;
401
- });
402
- let menuOptionsFiltered;
403
- if (this.searchable) {
404
- menuOptionsFiltered = getFilteredMenuOptions(options, this.includeDescriptionsInSearch, this.inputValueToFilter, this.searchMatchPosition);
405
- this.searchableMenuItemSelected = false;
406
- }
407
- else {
408
- menuOptionsFiltered = getFilteredMenuOptions(options, false, this.pressedCharacters, "start");
409
- }
410
- if (!isGrouped &&
411
- ((_a = menuOptionsFiltered[0]) === null || _a === void 0 ? void 0 : _a.label) !== this.emptyOptionListText) {
412
- newFilteredOptions = menuOptionsFiltered;
413
- }
414
- else if (isGrouped) {
415
- options.map((option) => {
416
- if (this.includeGroupTitlesInSearch) {
417
- if (menuOptionsFiltered.indexOf(option) !== -1) {
418
- newFilteredOptions.push(option);
419
- }
420
- else {
421
- newFilteredOptions.push(this.getFilteredChildMenuOptions(option));
422
- }
423
- }
424
- else {
425
- newFilteredOptions.push(this.getFilteredChildMenuOptions(option));
426
- }
427
- });
428
- }
429
- let noChildOptionsWhenFiltered = false;
430
- if (isGrouped) {
431
- noChildOptionsWhenFiltered = true;
432
- newFilteredOptions.map((option) => {
433
- if (option.children.length > 0) {
434
- noChildOptionsWhenFiltered = false;
435
- }
436
- });
437
- }
438
- if (newFilteredOptions.length > 0 && !noChildOptionsWhenFiltered) {
439
- this.noOptions = null;
440
- this.filteredOptions = newFilteredOptions;
441
- }
442
- else {
443
- this.noOptions = [{ label: this.emptyOptionListText, value: "" }];
444
- this.filteredOptions = this.noOptions;
445
- }
446
- };
447
- /**
448
- * Put the select component into loading state.
449
- * Replace options with the loading message. If timeout is enabled, set the timeout and once passed, replace options with the loading error message
450
- */
451
- this.triggerLoading = () => {
452
- this.hasTimedOut = false;
453
- this.noOptions = [{ label: this.loadingLabel, value: "", loading: true }];
454
- if (this.filteredOptions !== this.noOptions && this.searchable) {
455
- this.filteredOptions = this.noOptions;
456
- }
457
- else if (this.uniqueOptions !== this.noOptions && !this.searchable) {
458
- this.uniqueOptions = this.noOptions;
459
- }
460
- if (this.timeout) {
461
- this.timeoutTimer = window.setTimeout(() => {
462
- this.loading = false;
463
- this.hasTimedOut = true;
464
- this.noOptions = [
465
- { label: this.loadingErrorLabel, value: "", timedOut: true },
466
- ];
467
- this.filteredOptions = this.noOptions;
468
- if (!this.searchable)
469
- this.uniqueOptions = this.noOptions;
470
- }, this.timeout);
471
- }
472
- };
473
- this.getValueFromLabel = (label) => {
474
- var _a;
475
- return (_a = this.uniqueOptions.find((option) => option.label === label)) === null || _a === void 0 ? void 0 : _a.value;
476
- };
477
- this.handleSearchableSelectInput = (event) => {
478
- this.searchableSelectInputValue = event.target.value;
479
- this.icInput.emit({ value: this.searchableSelectInputValue });
480
- this.emitIcChange(this.searchableSelectInputValue);
481
- this.hiddenInputValue = this.searchableSelectInputValue;
482
- this.inputValueToFilter = this.searchableSelectInputValue;
483
- this.setMenuChange(true);
484
- if (!this.disableAutoFiltering) {
485
- this.handleFilter();
486
- this.debounceAriaLiveUpdate();
487
- }
488
- };
489
- this.updateSearchableSelectResultAriaLive = () => {
490
- const searchableSelectResultsStatusEl = this.el.shadowRoot.querySelector(".searchable-select-results-status");
491
- if (searchableSelectResultsStatusEl) {
492
- if (this.noOptions !== null) {
493
- searchableSelectResultsStatusEl.innerText = this.emptyOptionListText;
494
- }
495
- else {
496
- searchableSelectResultsStatusEl.innerText = "";
497
- }
498
- }
499
- };
500
- this.updateMultiSelectedCountAriaLive = () => {
501
- var _a;
502
- const multiSelectSelectedCountEl = this.el.shadowRoot.querySelector(".multi-select-selected-count");
503
- const selectedCount = `${(_a = this.currValue) === null || _a === void 0 ? void 0 : _a.length} of ${getOptionsWithoutGroupTitlesCount(this.options)} selected`;
504
- if (multiSelectSelectedCountEl &&
505
- multiSelectSelectedCountEl.innerText !== selectedCount) {
506
- multiSelectSelectedCountEl.innerText = selectedCount;
507
- }
508
- };
509
- this.getDefaultValue = (value) => this.getLabelFromValue(value) || value || null;
510
- this.setDefaultValue = () => {
511
- if (!this.hasSetDefaultValue && this.currValue) {
512
- this.searchableSelectInputValue =
513
- this.searchable && this.getDefaultValue(this.currValue);
514
- this.initialValue = this.currValue;
515
- this.hasSetDefaultValue = true;
516
- }
517
- };
518
- this.onFocus = () => {
519
- this.icFocus.emit();
520
- };
521
- this.onBlur = (event) => {
522
- var _a;
523
- const target = event.relatedTarget;
524
- if (target !== null &&
525
- target.tagName === "UL" &&
526
- target.className.includes("menu")) {
527
- return;
528
- }
529
- const retryButton = (_a = this.menu) === null || _a === void 0 ? void 0 : _a.querySelector("#retry-button");
530
- const isSearchableAndNoFocusedInternalElements = this.searchable &&
531
- event.relatedTarget !== this.menu &&
532
- !Array.from(this.menu.querySelectorAll("[role='option']")).includes(event.relatedTarget) &&
533
- !(this.clearButton && event.relatedTarget === this.clearButton) &&
534
- !(retryButton && event.relatedTarget === retryButton);
535
- if (isSearchableAndNoFocusedInternalElements) {
536
- if (!this.retryButtonClick) {
537
- this.setMenuChange(false);
538
- }
539
- this.handleFocusIndicatorDisplay();
540
- }
541
- this.retryButtonClick = false;
542
- this.icBlur.emit();
543
- };
544
- this.onTimeoutBlur = (ev) => {
545
- if (ev.detail.ev.relatedTarget !==
546
- this.searchableSelectElement &&
547
- !this.blurredBecauseButtonPressed) {
548
- this.setMenuChange(false);
549
- this.handleFocusIndicatorDisplay();
550
- this.icBlur.emit();
551
- }
552
- this.blurredBecauseButtonPressed = false;
553
- };
554
- this.handleFormReset = () => {
555
- this.value = this.initialValue;
556
- if (this.searchable) {
557
- this.searchableSelectInputValue = this.getDefaultValue(this.value);
558
- this.hiddenInputValue = this.value;
559
- }
560
- };
561
- this.ariaActiveDescendant = undefined;
562
- this.clearButtonFocused = false;
563
- this.debounceIcChange = undefined;
564
- this.hiddenInputValue = undefined;
565
- this.noOptions = null;
566
- this.open = false;
567
- this.pressedCharacters = "";
568
- this.searchableSelectInputValue = null;
569
- this.disabled = false;
570
- this.disableAutoFiltering = false;
571
- this.emptyOptionListText = "No results found";
572
- this.form = undefined;
573
- this.fullWidth = false;
574
- this.helperText = "";
575
- this.hideLabel = false;
576
- this.includeDescriptionsInSearch = false;
577
- this.includeGroupTitlesInSearch = false;
578
- this.label = undefined;
579
- this.loadingErrorLabel = "Loading Error";
580
- this.loadingLabel = "Loading...";
581
- this.multiple = false;
582
- this.name = this.inputId;
583
- this.placeholder = "Select an option";
584
- this.readonly = false;
585
- this.required = false;
586
- this.searchable = false;
587
- this.searchMatchPosition = "anywhere";
588
- this.selectOnEnter = false;
589
- this.showClearButton = false;
590
- this.size = "medium";
591
- this.timeout = undefined;
592
- this.validationStatus = "";
593
- this.validationText = "";
594
- this.loading = false;
595
- this.options = [];
596
- this.filteredOptions = this.options;
597
- this.uniqueOptions = this.options;
598
- this.debounce = 0;
599
- this.currDebounce = this.debounce;
600
- this.value = undefined;
601
- this.initialValue = this.value;
602
- this.inputValueToFilter = this.value;
603
- this.currValue = this.value;
604
- }
605
- loadingHandler(newValue) {
606
- newValue && this.triggerLoading();
607
- }
608
- watchOptionsHandler() {
609
- if (!this.hasTimedOut && this.options !== this.noOptions) {
610
- this.loading = false;
611
- clearTimeout(this.timeoutTimer);
612
- if (this.isExternalFiltering()) {
613
- // When searchable select
614
- if (this.options.length > 0) {
615
- this.setOptionsValuesFromLabels();
616
- this.noOptions = null;
617
- this.uniqueOptions = this.deduplicateOptions(this.options);
618
- this.filteredOptions = this.uniqueOptions;
619
- }
620
- else {
621
- this.noOptions = [{ label: this.emptyOptionListText, value: "" }];
622
- this.uniqueOptions = this.noOptions;
623
- this.filteredOptions = this.noOptions;
624
- }
625
- this.updateSearchableSelectResultAriaLive();
626
- this.setDefaultValue();
627
- }
628
- else {
629
- this.setOptionsValuesFromLabels();
630
- this.uniqueOptions = this.deduplicateOptions(this.options);
631
- this.filteredOptions = this.uniqueOptions;
632
- if (this.initialOptionsEmpty) {
633
- this.setDefaultValue();
634
- this.initialOptionsEmpty = false;
635
- }
636
- }
637
- }
638
- else {
639
- if (!this.searchable)
640
- this.options = this.noOptions;
641
- }
642
- }
643
- debounceChangedHandler(newValue) {
644
- this.updateOnChangeDebounce(newValue);
645
- }
646
- valueChangedHandler() {
647
- if (this.value !== this.currValue) {
648
- if (this.value && this.multiple) {
649
- this.currValue = this.getValueSortedByOptions(this.value);
650
- this.updateMultiSelectedCountAriaLive();
651
- }
652
- else {
653
- this.currValue = this.value;
654
- }
655
- }
656
- if (this.searchable) {
657
- this.searchableSelectInputValue =
658
- this.getLabelFromValue(this.currValue) ||
659
- this.currValue;
660
- }
661
- }
662
- disconnectedCallback() {
663
- removeFormResetListener(this.el, this.handleFormReset);
664
- }
665
- componentWillLoad() {
666
- this.inheritedAttributes = inheritAttributes(this.el, [
667
- ...IC_INHERITED_ARIA,
668
- "tabindex",
669
- "title",
670
- ]);
671
- removeDisabledFalse(this.disabled, this.el);
672
- this.setOptionsValuesFromLabels();
673
- addFormResetListener(this.el, this.handleFormReset);
674
- if (!this.options.length) {
675
- this.initialOptionsEmpty = true;
676
- this.noOptions = [{ label: this.emptyOptionListText, value: "" }];
677
- this.uniqueOptions = this.noOptions;
678
- this.filteredOptions = this.noOptions;
679
- }
680
- else {
681
- this.setDefaultValue();
682
- this.uniqueOptions = this.deduplicateOptions(this.options);
683
- }
684
- }
685
- componentDidLoad() {
686
- onComponentRequiredPropUndefined([{ prop: this.label, propName: "label" }], "Select");
687
- if (this.loading) {
688
- this.triggerLoading();
689
- }
690
- this.hiddenInputValue = this.searchable && this.currValue;
691
- }
692
- componentDidRender() {
693
- if (this.nativeSelectElement && !this.disabled) {
694
- this.setTextColor();
695
- }
696
- }
697
- /**
698
- * Sets focus on the input box.
699
- */
700
- async setFocus() {
701
- if (this.nativeSelectElement) {
702
- this.nativeSelectElement.focus();
703
- }
704
- else if (this.customSelectElement) {
705
- this.customSelectElement.focus();
706
- }
707
- else if (this.searchableSelectElement) {
708
- this.searchableSelectElement.focus();
709
- }
710
- }
711
- updateOnChangeDebounce(newValue) {
712
- if (this.currDebounce !== newValue) {
713
- this.currDebounce = newValue;
714
- }
715
- }
716
- debounceAriaLiveUpdate() {
717
- clearTimeout(this.debounceAria);
718
- window.setTimeout(() => {
719
- this.updateSearchableSelectResultAriaLive();
720
- }, 800);
721
- }
722
- render() {
723
- const { size, disabled, fullWidth, helperText, hideLabel, label, menuId, multiple, name, options, placeholder, readonly, required, searchable, showClearButton, validationStatus, validationText, currValue, } = this;
724
- // HTML inputs only accept 'string' for their value
725
- // Does not cause errors when it is a multi-select - sets value correctly, to a comma-separated string
726
- renderHiddenInput(true, this.el, name, this.searchable ? this.hiddenInputValue : currValue, disabled);
727
- const invalid = validationStatus === IcInformationStatus.Error ? "true" : "false";
728
- const describedBy = getInputDescribedByText(this.inputId, helperText !== "", hasValidationStatus(this.validationStatus, this.disabled)).trim();
729
- const optionsSelectedCount = `${currValue === null || currValue === void 0 ? void 0 : currValue.length} of ${getOptionsWithoutGroupTitlesCount(this.options)} selected`;
730
- return (h(Host, { class: {
731
- ["ic-select-disabled"]: disabled,
732
- ["ic-select-searchable"]: searchable,
733
- [`ic-select-${size}`]: size !== "medium",
734
- ["ic-select-full-width"]: fullWidth,
735
- }, onBlur: this.onBlur }, h("ic-input-container", { readonly: readonly }, !hideLabel && (h("ic-input-label", { for: this.inputId, label: label, helperText: helperText, required: required, disabled: disabled, readonly: readonly })), 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 ? (h("ic-typography", null, h("p", null, multiple
736
- ? this.getMultipleOptionsString(currValue)
737
- : this.getLabelFromValue(currValue)))) : 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) => {
738
- if (option.children) {
739
- return (h("optgroup", { label: option.label }, option.children.map((option) => (h("option", { value: option.value, disabled: option.disabled, selected: option.value === currValue }, option.label)))));
740
- }
741
- else {
742
- return (h("option", { value: option.value, disabled: option.disabled, selected: option.value === currValue }, option.label));
743
- }
744
- }))) : searchable ? (h("div", { class: "searchable-select-container" }, h("input", { class: {
745
- "select-input": true,
746
- "with-clear-button": !!this.searchableSelectInputValue,
747
- }, 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 &&
748
- (showClearButton || searchable) && (h("div", { class: "clear-button-container" }, h("ic-button", { id: "clear-button", ref: (el) => (this.clearButton = el), "aria-label": this.searchableSelectInputValue && currValue === null
749
- ? "Clear input"
750
- : "Clear selection", class: "clear-button", innerHTML: Clear, onClick: this.handleClear, onFocus: this.handleClearButtonFocus, onBlur: this.handleClearButtonBlur, size: size, variant: "icon", appearance: this.clearButtonFocused
751
- ? IcThemeForegroundEnum.Light
752
- : IcThemeForegroundEnum.Dark }), h("div", { class: "divider" }))), h("span", { onMouseDown: this.handleExpandIconMouseDown, class: {
753
- "expand-icon": true,
754
- "expand-icon-open": this.open,
755
- }, 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
756
- ? `${optionsSelectedCount}, ${this.getMultipleOptionsString(currValue)}`
757
- : this.getLabelFromValue(currValue)) ||
758
- 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: {
759
- "value-text": true,
760
- "with-clear-button": currValue && showClearButton,
761
- placeholder: !this.value || (multiple && this.value.length < 1),
762
- } }, h("p", null, (multiple
763
- ? this.getMultipleOptionsString(currValue)
764
- : this.getLabelFromValue(currValue)) ||
765
- placeholder)), h("div", { class: "select-input-end" }, currValue && showClearButton && (h("div", { class: "divider" })), h("span", { class: {
766
- "expand-icon": true,
767
- "expand-icon-open": this.open,
768
- }, innerHTML: Expand, "aria-hidden": "true" }))), currValue && showClearButton && (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
769
- ? IcThemeForegroundEnum.Light
770
- : IcThemeForegroundEnum.Dark }))))), (!isMobileOrTablet() || multiple) && (h("ic-menu-with-multi", { class: {
771
- "no-results": this.loading ||
772
- this.hasTimedOut ||
773
- (this.noOptions !== null &&
774
- this.noOptions[0] &&
775
- this.noOptions[0].label === this.emptyOptionListText),
776
- }, ref: (el) => (this.menu = el), inputEl: searchable
777
- ? this.searchableSelectElement
778
- : 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
779
- ? "manual"
780
- : "automatic", closeOnSelect: !multiple })), this.multiple && (h("div", { "aria-live": "polite", role: "status", class: "multi-select-selected-count" })), hasValidationStatus(this.validationStatus, this.disabled) && (h("ic-input-validation", { class: { "menu-open": this.open }, ariaLiveMode: "polite", status: validationStatus, message: validationText, for: this.inputId })))));
781
- }
782
- static get delegatesFocus() { return true; }
783
- get el() { return this; }
784
- static get watchers() { return {
785
- "loading": ["loadingHandler"],
786
- "options": ["watchOptionsHandler"],
787
- "debounce": ["debounceChangedHandler"],
788
- "value": ["valueChangedHandler"]
789
- }; }
790
- static get style() { return icSelectCss; }
791
- }, [17, "ic-select-with-multi", {
792
- "disabled": [516],
793
- "disableAutoFiltering": [4, "disable-auto-filtering"],
794
- "emptyOptionListText": [1, "empty-option-list-text"],
795
- "form": [1],
796
- "fullWidth": [4, "full-width"],
797
- "helperText": [1, "helper-text"],
798
- "hideLabel": [4, "hide-label"],
799
- "includeDescriptionsInSearch": [4, "include-descriptions-in-search"],
800
- "includeGroupTitlesInSearch": [4, "include-group-titles-in-search"],
801
- "label": [1],
802
- "loadingErrorLabel": [1, "loading-error-label"],
803
- "loadingLabel": [1, "loading-label"],
804
- "multiple": [4],
805
- "name": [1],
806
- "placeholder": [1],
807
- "readonly": [4],
808
- "required": [4],
809
- "searchable": [4],
810
- "searchMatchPosition": [1, "search-match-position"],
811
- "selectOnEnter": [4, "select-on-enter"],
812
- "showClearButton": [4, "show-clear-button"],
813
- "size": [1],
814
- "timeout": [2],
815
- "validationStatus": [1, "validation-status"],
816
- "validationText": [1, "validation-text"],
817
- "loading": [1028],
818
- "options": [16],
819
- "debounce": [2],
820
- "value": [1025],
821
- "ariaActiveDescendant": [32],
822
- "clearButtonFocused": [32],
823
- "debounceIcChange": [32],
824
- "hiddenInputValue": [32],
825
- "noOptions": [32],
826
- "open": [32],
827
- "pressedCharacters": [32],
828
- "searchableSelectInputValue": [32],
829
- "filteredOptions": [32],
830
- "uniqueOptions": [32],
831
- "currDebounce": [32],
832
- "initialValue": [32],
833
- "inputValueToFilter": [32],
834
- "currValue": [32],
835
- "setFocus": [64]
836
- }, undefined, {
837
- "loading": ["loadingHandler"],
838
- "options": ["watchOptionsHandler"],
839
- "debounce": ["debounceChangedHandler"],
840
- "value": ["valueChangedHandler"]
841
- }]);
842
- function defineCustomElement$1() {
843
- if (typeof customElements === "undefined") {
844
- return;
845
- }
846
- const components = ["ic-select-with-multi", "ic-button", "ic-input-component-container", "ic-input-container", "ic-input-label", "ic-input-validation", "ic-loading-indicator", "ic-menu-with-multi", "ic-tooltip", "ic-typography"];
847
- components.forEach(tagName => { switch (tagName) {
848
- case "ic-select-with-multi":
849
- if (!customElements.get(tagName)) {
850
- customElements.define(tagName, Select);
851
- }
852
- break;
853
- case "ic-button":
854
- if (!customElements.get(tagName)) {
855
- defineCustomElement$a();
856
- }
857
- break;
858
- case "ic-input-component-container":
859
- if (!customElements.get(tagName)) {
860
- defineCustomElement$9();
861
- }
862
- break;
863
- case "ic-input-container":
864
- if (!customElements.get(tagName)) {
865
- defineCustomElement$8();
866
- }
867
- break;
868
- case "ic-input-label":
869
- if (!customElements.get(tagName)) {
870
- defineCustomElement$7();
871
- }
872
- break;
873
- case "ic-input-validation":
874
- if (!customElements.get(tagName)) {
875
- defineCustomElement$6();
876
- }
877
- break;
878
- case "ic-loading-indicator":
879
- if (!customElements.get(tagName)) {
880
- defineCustomElement$5();
881
- }
882
- break;
883
- case "ic-menu-with-multi":
884
- if (!customElements.get(tagName)) {
885
- defineCustomElement$4();
886
- }
887
- break;
888
- case "ic-tooltip":
889
- if (!customElements.get(tagName)) {
890
- defineCustomElement$3();
891
- }
892
- break;
893
- case "ic-typography":
894
- if (!customElements.get(tagName)) {
895
- defineCustomElement$2();
896
- }
897
- break;
898
- } });
899
- }
900
-
901
- const IcSelectWithMulti = Select;
902
- const defineCustomElement = defineCustomElement$1;
903
-
904
- export { IcSelectWithMulti, defineCustomElement };
905
-
906
- //# sourceMappingURL=ic-select-with-multi.js.map