@ukic/canary-web-components 3.0.0-canary.34 → 3.0.0-canary.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (935) hide show
  1. package/dist/cjs/{OpenInNew-7bac24f7.js → OpenInNew-add95b7b.js} +1 -1
  2. package/dist/cjs/OpenInNew-add95b7b.js.map +1 -0
  3. package/dist/{esm/purify-6eaa9893.js → cjs/common-helpers-577fc5b0.js} +22 -2
  4. package/dist/cjs/common-helpers-577fc5b0.js.map +1 -0
  5. package/dist/cjs/core.cjs.js +1 -1
  6. package/dist/cjs/{helpers-2cc5f6db.js → helpers-cb472df9.js} +1 -128
  7. package/dist/cjs/helpers-cb472df9.js.map +1 -0
  8. package/dist/cjs/ic-badge-27f26087.js +184 -0
  9. package/dist/cjs/ic-badge-27f26087.js.map +1 -0
  10. package/dist/cjs/ic-badge.cjs.entry.js +4 -177
  11. package/dist/cjs/ic-badge.cjs.entry.js.map +1 -1
  12. package/dist/cjs/ic-button-4c329a7d.js +435 -0
  13. package/dist/cjs/ic-button-4c329a7d.js.map +1 -0
  14. package/dist/cjs/ic-button_3.cjs.entry.js +9 -887
  15. package/dist/cjs/ic-button_3.cjs.entry.js.map +1 -1
  16. package/dist/cjs/ic-calendar_2.cjs.entry.js +22 -13
  17. package/dist/cjs/ic-calendar_2.cjs.entry.js.map +1 -1
  18. package/dist/cjs/ic-card-horizontal.cjs.entry.js +10 -5
  19. package/dist/cjs/ic-card-horizontal.cjs.entry.js.map +1 -1
  20. package/dist/cjs/ic-checkbox-ac44e0a2.js +204 -0
  21. package/dist/cjs/ic-checkbox-ac44e0a2.js.map +1 -0
  22. package/dist/cjs/ic-checkbox_3.cjs.entry.js +22 -208
  23. package/dist/cjs/ic-checkbox_3.cjs.entry.js.map +1 -1
  24. package/dist/cjs/ic-chip-1ff0950a.js +133 -0
  25. package/dist/cjs/ic-chip-1ff0950a.js.map +1 -0
  26. package/dist/cjs/ic-chip.cjs.entry.js +4 -119
  27. package/dist/cjs/ic-chip.cjs.entry.js.map +1 -1
  28. package/dist/cjs/ic-data-table-title-bar.cjs.entry.js +19 -4
  29. package/dist/cjs/ic-data-table-title-bar.cjs.entry.js.map +1 -1
  30. package/dist/cjs/ic-data-table.cjs.entry.js +18 -10
  31. package/dist/cjs/ic-data-table.cjs.entry.js.map +1 -1
  32. package/dist/cjs/ic-date-picker.cjs.entry.js +2 -2
  33. package/dist/cjs/ic-input-component-container_4.cjs.entry.js +7 -228
  34. package/dist/cjs/ic-input-component-container_4.cjs.entry.js.map +1 -1
  35. package/dist/cjs/ic-input-validation-bf7afa43.js +259 -0
  36. package/dist/cjs/ic-input-validation-bf7afa43.js.map +1 -0
  37. package/dist/cjs/ic-link-c77848ab.js +111 -0
  38. package/dist/cjs/ic-link-c77848ab.js.map +1 -0
  39. package/dist/cjs/ic-link.cjs.entry.js +5 -104
  40. package/dist/cjs/ic-link.cjs.entry.js.map +1 -1
  41. package/dist/cjs/ic-loading-indicator-bbd1572c.js +233 -0
  42. package/dist/cjs/ic-loading-indicator-bbd1572c.js.map +1 -0
  43. package/dist/cjs/ic-menu-e9a1a0d3.js +987 -0
  44. package/dist/cjs/ic-menu-e9a1a0d3.js.map +1 -0
  45. package/dist/cjs/ic-menu.cjs.entry.js +6 -991
  46. package/dist/cjs/ic-menu.cjs.entry.js.map +1 -1
  47. package/dist/cjs/ic-navigation-item-59bd8957.js +243 -0
  48. package/dist/cjs/ic-navigation-item-59bd8957.js.map +1 -0
  49. package/dist/cjs/ic-navigation-item.cjs.entry.js +5 -232
  50. package/dist/cjs/ic-navigation-item.cjs.entry.js.map +1 -1
  51. package/dist/cjs/ic-page-header-3d8b3a59.js +131 -0
  52. package/dist/cjs/ic-page-header-3d8b3a59.js.map +1 -0
  53. package/dist/cjs/ic-page-header.cjs.entry.js +4 -124
  54. package/dist/cjs/ic-page-header.cjs.entry.js.map +1 -1
  55. package/dist/cjs/ic-pagination_3.cjs.entry.js +16 -0
  56. package/dist/cjs/ic-pagination_3.cjs.entry.js.map +1 -0
  57. package/dist/cjs/ic-section-container-128e2db0.js +34 -0
  58. package/dist/cjs/ic-section-container-128e2db0.js.map +1 -0
  59. package/dist/cjs/ic-section-container.cjs.entry.js +3 -27
  60. package/dist/cjs/ic-section-container.cjs.entry.js.map +1 -1
  61. package/dist/cjs/ic-select-bc8ca251.js +876 -0
  62. package/dist/cjs/ic-select-bc8ca251.js.map +1 -0
  63. package/dist/cjs/ic-skip-link-43203eea.js +60 -0
  64. package/dist/cjs/ic-skip-link-43203eea.js.map +1 -0
  65. package/dist/cjs/ic-skip-link.cjs.entry.js +3 -53
  66. package/dist/cjs/ic-skip-link.cjs.entry.js.map +1 -1
  67. package/dist/cjs/ic-status-tag-a4377a6b.js +55 -0
  68. package/dist/cjs/ic-status-tag-a4377a6b.js.map +1 -0
  69. package/dist/cjs/ic-status-tag.cjs.entry.js +4 -48
  70. package/dist/cjs/ic-status-tag.cjs.entry.js.map +1 -1
  71. package/dist/cjs/ic-table-of-contents.cjs.entry.js +14 -3
  72. package/dist/cjs/ic-table-of-contents.cjs.entry.js.map +1 -1
  73. package/dist/cjs/ic-text-field-5d7ae957.js +732 -0
  74. package/dist/cjs/ic-text-field-5d7ae957.js.map +1 -0
  75. package/dist/cjs/ic-theme.cjs.entry.js +2 -2
  76. package/dist/cjs/ic-theme.cjs.entry.js.map +1 -1
  77. package/dist/cjs/ic-time-input.cjs.entry.js +16 -6
  78. package/dist/cjs/ic-time-input.cjs.entry.js.map +1 -1
  79. package/dist/cjs/ic-time-selector.cjs.entry.js +11 -8
  80. package/dist/cjs/ic-time-selector.cjs.entry.js.map +1 -1
  81. package/dist/cjs/ic-toggle-button-ce67a1ec.js +452 -0
  82. package/dist/cjs/ic-toggle-button-ce67a1ec.js.map +1 -0
  83. package/dist/cjs/ic-toggle-button_2.cjs.entry.js +5 -445
  84. package/dist/cjs/ic-toggle-button_2.cjs.entry.js.map +1 -1
  85. package/dist/cjs/ic-tooltip-3cc80832.js +239 -0
  86. package/dist/cjs/ic-tooltip-3cc80832.js.map +1 -0
  87. package/dist/cjs/ic-top-navigation-a6c4be7b.js +237 -0
  88. package/dist/cjs/ic-top-navigation-a6c4be7b.js.map +1 -0
  89. package/dist/cjs/ic-top-navigation.cjs.entry.js +4 -227
  90. package/dist/cjs/ic-top-navigation.cjs.entry.js.map +1 -1
  91. package/dist/cjs/ic-tree-item.cjs.entry.js +5 -4
  92. package/dist/cjs/ic-tree-item.cjs.entry.js.map +1 -1
  93. package/dist/cjs/ic-tree-view.cjs.entry.js +7 -5
  94. package/dist/cjs/ic-tree-view.cjs.entry.js.map +1 -1
  95. package/dist/cjs/ic-typography-a199c128.js +198 -0
  96. package/dist/cjs/ic-typography-a199c128.js.map +1 -0
  97. package/dist/cjs/ic-typography.cjs.entry.js +4 -191
  98. package/dist/cjs/ic-typography.cjs.entry.js.map +1 -1
  99. package/dist/cjs/index-d337cd8a.js +6 -170
  100. package/dist/cjs/loader.cjs.js +1 -1
  101. package/dist/collection/collection-manifest.json +28 -76
  102. package/dist/collection/components/ic-calendar/ic-calendar.js +12 -10
  103. package/dist/collection/components/ic-calendar/ic-calendar.js.map +1 -1
  104. package/dist/collection/components/ic-calendar/ic-day-button.js +1 -0
  105. package/dist/collection/components/ic-calendar/ic-day-button.js.map +1 -1
  106. package/dist/collection/components/ic-calendar/ic-month-picker.js +1 -0
  107. package/dist/collection/components/ic-calendar/ic-month-picker.js.map +1 -1
  108. package/dist/collection/components/ic-calendar/ic-year-picker.js +1 -0
  109. package/dist/collection/components/ic-calendar/ic-year-picker.js.map +1 -1
  110. package/dist/collection/components/ic-calendar/test/a11y/ic-calendar.test.a11y.js +1 -1
  111. package/dist/collection/components/ic-calendar/test/a11y/ic-calendar.test.a11y.js.map +1 -1
  112. package/dist/collection/components/ic-card-horizontal/ic-card-horizontal.js +9 -5
  113. package/dist/collection/components/ic-card-horizontal/ic-card-horizontal.js.map +1 -1
  114. package/dist/collection/components/ic-data-table/ic-data-table.js +15 -8
  115. package/dist/collection/components/ic-data-table/ic-data-table.js.map +1 -1
  116. package/dist/collection/components/ic-data-table-title-bar/ic-data-table-title-bar.js +18 -4
  117. package/dist/collection/components/ic-data-table-title-bar/ic-data-table-title-bar.js.map +1 -1
  118. package/dist/collection/components/ic-date-input/ic-date-input.js +13 -3
  119. package/dist/collection/components/ic-date-input/ic-date-input.js.map +1 -1
  120. package/dist/collection/components/ic-date-input/test/helpers/ic-date-input.js +1 -1
  121. package/dist/collection/components/ic-date-input/test/helpers/ic-date-input.js.map +1 -1
  122. package/dist/collection/components/ic-date-picker/ic-date-picker.js +2 -2
  123. package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.js +19 -12
  124. package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.js.map +1 -1
  125. package/dist/collection/components/ic-table-of-contents/ic-table-of-contents-item.js +1 -0
  126. package/dist/collection/components/ic-table-of-contents/ic-table-of-contents-item.js.map +1 -1
  127. package/dist/collection/components/ic-table-of-contents/ic-table-of-contents.js +12 -3
  128. package/dist/collection/components/ic-table-of-contents/ic-table-of-contents.js.map +1 -1
  129. package/dist/collection/components/ic-time-input/ic-time-input.js +18 -6
  130. package/dist/collection/components/ic-time-input/ic-time-input.js.map +1 -1
  131. package/dist/collection/components/ic-time-input/test/helpers/ic-time-input.js +1 -1
  132. package/dist/collection/components/ic-time-input/test/helpers/ic-time-input.js.map +1 -1
  133. package/dist/collection/components/ic-time-selector/ic-time-selector.js +10 -8
  134. package/dist/collection/components/ic-time-selector/ic-time-selector.js.map +1 -1
  135. package/dist/collection/components/ic-tree-item/ic-tree-item.js +4 -4
  136. package/dist/collection/components/ic-tree-item/ic-tree-item.js.map +1 -1
  137. package/dist/collection/components/ic-tree-view/ic-tree-view.js +5 -3
  138. package/dist/collection/components/ic-tree-view/ic-tree-view.js.map +1 -1
  139. package/dist/collection/components/ic-tree-view/ic-tree-view.stories.js +32 -2
  140. package/dist/collection/components/ic-tree-view/ic-tree-view.stories.js.map +1 -1
  141. package/dist/components/common-helpers.js +1364 -3
  142. package/dist/components/common-helpers.js.map +1 -1
  143. package/dist/components/helpers.js +1 -116
  144. package/dist/components/helpers.js.map +1 -1
  145. package/dist/components/ic-badge.d.ts +11 -0
  146. package/dist/components/ic-badge.js +3 -3
  147. package/dist/components/ic-badge.js.map +1 -1
  148. package/dist/components/ic-button.d.ts +11 -0
  149. package/dist/components/ic-button2.js +3 -3
  150. package/dist/components/ic-button2.js.map +1 -1
  151. package/dist/components/ic-calendar2.js +12 -11
  152. package/dist/components/ic-calendar2.js.map +1 -1
  153. package/dist/components/ic-card-horizontal.js +6 -5
  154. package/dist/components/ic-card-horizontal.js.map +1 -1
  155. package/dist/components/ic-checkbox.d.ts +11 -0
  156. package/dist/components/ic-checkbox2.js +5 -5
  157. package/dist/components/ic-checkbox2.js.map +1 -1
  158. package/dist/components/ic-chip.d.ts +11 -0
  159. package/dist/components/ic-chip.js +14 -6
  160. package/dist/components/ic-chip.js.map +1 -1
  161. package/dist/components/ic-data-table-title-bar.js +18 -7
  162. package/dist/components/ic-data-table-title-bar.js.map +1 -1
  163. package/dist/components/ic-data-table.js +34 -40
  164. package/dist/components/ic-data-table.js.map +1 -1
  165. package/dist/components/ic-date-input2.js +10 -6
  166. package/dist/components/ic-date-input2.js.map +1 -1
  167. package/dist/components/ic-date-picker.js +2 -2
  168. package/dist/components/ic-empty-state.d.ts +11 -0
  169. package/dist/components/ic-empty-state2.js +3 -3
  170. package/dist/components/ic-empty-state2.js.map +1 -1
  171. package/dist/components/ic-input-component-container.d.ts +11 -0
  172. package/dist/components/ic-input-component-container2.js +5 -4
  173. package/dist/components/ic-input-component-container2.js.map +1 -1
  174. package/dist/components/ic-input-container.d.ts +11 -0
  175. package/dist/components/ic-input-container2.js +2 -2
  176. package/dist/components/ic-input-container2.js.map +1 -1
  177. package/dist/components/ic-input-label.d.ts +11 -0
  178. package/dist/components/ic-input-label2.js +3 -3
  179. package/dist/components/ic-input-label2.js.map +1 -1
  180. package/dist/components/ic-input-validation.d.ts +11 -0
  181. package/dist/components/ic-input-validation2.js +21 -4
  182. package/dist/components/ic-input-validation2.js.map +1 -1
  183. package/dist/components/ic-link.d.ts +11 -0
  184. package/dist/components/ic-link2.js +2 -2
  185. package/dist/components/ic-link2.js.map +1 -1
  186. package/dist/components/ic-loading-indicator.d.ts +11 -0
  187. package/dist/components/ic-loading-indicator2.js +5 -5
  188. package/dist/components/ic-loading-indicator2.js.map +1 -1
  189. package/dist/components/ic-menu.d.ts +11 -0
  190. package/dist/components/ic-menu2.js +10 -21
  191. package/dist/components/ic-menu2.js.map +1 -1
  192. package/dist/components/ic-navigation-item.d.ts +11 -0
  193. package/dist/components/ic-navigation-item.js +8 -4
  194. package/dist/components/ic-navigation-item.js.map +1 -1
  195. package/dist/components/ic-page-header.d.ts +11 -0
  196. package/dist/components/ic-page-header.js +9 -33
  197. package/dist/components/ic-page-header.js.map +1 -1
  198. package/dist/components/ic-pagination-bar2.js +23 -29
  199. package/dist/components/ic-pagination-bar2.js.map +1 -1
  200. package/dist/components/ic-pagination.d.ts +11 -0
  201. package/dist/components/ic-pagination2.js +34 -15
  202. package/dist/components/ic-pagination2.js.map +1 -1
  203. package/dist/components/ic-section-container.d.ts +11 -0
  204. package/dist/components/ic-section-container2.js +2 -2
  205. package/dist/components/ic-section-container2.js.map +1 -1
  206. package/dist/components/ic-select.d.ts +11 -0
  207. package/dist/components/ic-select2.js +7 -7
  208. package/dist/components/ic-select2.js.map +1 -1
  209. package/dist/components/ic-skip-link.d.ts +11 -0
  210. package/dist/components/ic-skip-link.js +2 -2
  211. package/dist/components/ic-skip-link.js.map +1 -1
  212. package/dist/components/ic-status-tag.d.ts +11 -0
  213. package/dist/components/ic-status-tag.js +2 -2
  214. package/dist/components/ic-status-tag.js.map +1 -1
  215. package/dist/components/ic-table-of-contents.js +5 -4
  216. package/dist/components/ic-table-of-contents.js.map +1 -1
  217. package/dist/components/ic-text-field.d.ts +11 -0
  218. package/dist/components/ic-text-field2.js +6 -6
  219. package/dist/components/ic-text-field2.js.map +1 -1
  220. package/dist/components/ic-theme.d.ts +11 -0
  221. package/dist/components/ic-theme.js +2 -2
  222. package/dist/components/ic-theme.js.map +1 -1
  223. package/dist/components/ic-time-input.js +15 -11
  224. package/dist/components/ic-time-input.js.map +1 -1
  225. package/dist/components/ic-time-selector.js +9 -9
  226. package/dist/components/ic-time-selector.js.map +1 -1
  227. package/dist/components/ic-toggle-button-group.d.ts +11 -0
  228. package/dist/components/ic-toggle-button-group2.js +2 -2
  229. package/dist/components/ic-toggle-button-group2.js.map +1 -1
  230. package/dist/components/ic-toggle-button.d.ts +11 -0
  231. package/dist/components/ic-toggle-button2.js +3 -3
  232. package/dist/components/ic-toggle-button2.js.map +1 -1
  233. package/dist/components/ic-tooltip.d.ts +11 -0
  234. package/dist/components/ic-tooltip2.js +3 -3
  235. package/dist/components/ic-tooltip2.js.map +1 -1
  236. package/dist/components/ic-top-navigation.d.ts +11 -0
  237. package/dist/components/ic-top-navigation.js +12 -21
  238. package/dist/components/ic-top-navigation.js.map +1 -1
  239. package/dist/components/ic-tree-item.js +4 -5
  240. package/dist/components/ic-tree-item.js.map +1 -1
  241. package/dist/components/ic-tree-view.js +5 -4
  242. package/dist/components/ic-tree-view.js.map +1 -1
  243. package/dist/components/ic-typography.d.ts +11 -0
  244. package/dist/components/ic-typography2.js +3 -3
  245. package/dist/components/ic-typography2.js.map +1 -1
  246. package/dist/components/success-icon.js +11 -0
  247. package/dist/components/success-icon.js.map +1 -0
  248. package/dist/core/core.css +1 -1
  249. package/dist/core/core.esm.js +1 -1
  250. package/dist/core/core.esm.js.map +1 -1
  251. package/dist/core/p-01b04775.js +2 -0
  252. package/dist/core/p-01b04775.js.map +1 -0
  253. package/dist/core/p-02d0a238.entry.js +2 -0
  254. package/dist/core/{p-c4b2774d.entry.js → p-0592277b.js} +2 -2
  255. package/dist/core/p-0592277b.js.map +1 -0
  256. package/dist/core/p-0664935b.js +2 -0
  257. package/dist/core/p-0664935b.js.map +1 -0
  258. package/dist/core/p-0aa06309.entry.js +2 -0
  259. package/dist/core/p-0aa06309.entry.js.map +1 -0
  260. package/dist/core/p-0c02b16c.entry.js +2 -0
  261. package/dist/core/p-1836fef6.entry.js +2 -0
  262. package/dist/core/p-1836fef6.entry.js.map +1 -0
  263. package/dist/core/{p-79ead0e7.entry.js → p-18d5e467.js} +2 -2
  264. package/dist/core/p-18d5e467.js.map +1 -0
  265. package/dist/core/p-1ddc08d0.js +2 -0
  266. package/dist/core/p-1ddc08d0.js.map +1 -0
  267. package/dist/core/{p-201b41c7.entry.js → p-22267c01.entry.js} +2 -2
  268. package/dist/core/p-27962d4d.entry.js +2 -0
  269. package/dist/core/p-384a7f60.entry.js +2 -0
  270. package/dist/core/p-3ed17bfc.entry.js +2 -0
  271. package/dist/core/p-3ed17bfc.entry.js.map +1 -0
  272. package/dist/core/p-42bacb0d.entry.js +2 -0
  273. package/dist/core/p-42bacb0d.entry.js.map +1 -0
  274. package/dist/core/p-4385552a.entry.js +2 -0
  275. package/dist/core/p-4385552a.entry.js.map +1 -0
  276. package/dist/core/{p-551a0fc1.entry.js → p-510f8257.entry.js} +2 -2
  277. package/dist/core/p-510f8257.entry.js.map +1 -0
  278. package/dist/core/{p-939025af.entry.js → p-5585895d.js} +2 -2
  279. package/dist/core/p-5585895d.js.map +1 -0
  280. package/dist/core/p-56ef5c79.js +2 -0
  281. package/dist/core/p-56ef5c79.js.map +1 -0
  282. package/dist/core/{p-7efdbab8.entry.js → p-5d5b1aa8.js} +2 -2
  283. package/dist/core/p-5d5b1aa8.js.map +1 -0
  284. package/dist/core/p-5e14ec1e.entry.js +2 -0
  285. package/dist/core/p-5e14ec1e.entry.js.map +1 -0
  286. package/dist/core/p-67a25154.entry.js +2 -0
  287. package/dist/core/p-67a25154.entry.js.map +1 -0
  288. package/dist/core/{p-ea1ea1b9.js → p-67a4f674.js} +1 -1
  289. package/dist/core/p-67a4f674.js.map +1 -0
  290. package/dist/core/p-6f45df7a.entry.js +2 -0
  291. package/dist/core/p-6f45df7a.entry.js.map +1 -0
  292. package/dist/core/{p-33509a89.entry.js → p-7843f9be.js} +2 -2
  293. package/dist/core/p-7843f9be.js.map +1 -0
  294. package/dist/core/p-7bbd1881.js +2 -0
  295. package/dist/core/p-7bbd1881.js.map +1 -0
  296. package/dist/core/{p-349d91dc.js → p-7d378ee6.js} +3 -3
  297. package/dist/core/p-7d378ee6.js.map +1 -0
  298. package/dist/core/p-7e4404fc.entry.js +2 -0
  299. package/dist/core/p-7e4404fc.entry.js.map +1 -0
  300. package/dist/core/p-84129c7e.entry.js +2 -0
  301. package/dist/core/p-84129c7e.entry.js.map +1 -0
  302. package/dist/core/p-857362bd.entry.js +2 -0
  303. package/dist/core/p-857362bd.entry.js.map +1 -0
  304. package/dist/core/p-883e677d.entry.js +2 -0
  305. package/dist/core/p-883e677d.entry.js.map +1 -0
  306. package/dist/core/p-9148bd35.js +2 -0
  307. package/dist/core/p-9148bd35.js.map +1 -0
  308. package/dist/core/p-92e447e1.entry.js +2 -0
  309. package/dist/core/p-92e447e1.entry.js.map +1 -0
  310. package/dist/core/p-964d0e32.js +2 -0
  311. package/dist/core/p-964d0e32.js.map +1 -0
  312. package/dist/core/{p-9ca147f3.entry.js → p-9b218099.js} +2 -2
  313. package/dist/core/p-9b218099.js.map +1 -0
  314. package/dist/core/p-a4cb3520.js +2 -0
  315. package/dist/core/p-a4cb3520.js.map +1 -0
  316. package/dist/core/p-a50e4bdf.entry.js +2 -0
  317. package/dist/core/p-a50e4bdf.entry.js.map +1 -0
  318. package/dist/core/p-b8325ec4.js +2 -0
  319. package/dist/core/p-b8325ec4.js.map +1 -0
  320. package/dist/core/p-c1337dbc.entry.js +2 -0
  321. package/dist/core/p-c1337dbc.entry.js.map +1 -0
  322. package/dist/core/p-c2669ec9.js +2 -0
  323. package/dist/core/p-c2669ec9.js.map +1 -0
  324. package/dist/core/p-c5ac4fcc.entry.js +2 -0
  325. package/dist/core/p-c5ac4fcc.entry.js.map +1 -0
  326. package/dist/core/{p-879c180d.entry.js → p-c5d680be.js} +2 -2
  327. package/dist/core/p-c5d680be.js.map +1 -0
  328. package/dist/core/p-cd454ff0.entry.js +2 -0
  329. package/dist/core/p-cd454ff0.entry.js.map +1 -0
  330. package/dist/core/{p-319e3d5b.entry.js → p-d107dfa8.js} +2 -2
  331. package/dist/core/p-d107dfa8.js.map +1 -0
  332. package/dist/core/p-da2a9ddc.js +2 -0
  333. package/dist/core/p-da2a9ddc.js.map +1 -0
  334. package/dist/core/p-dc3a13d5.entry.js +2 -0
  335. package/dist/core/p-dc3a13d5.entry.js.map +1 -0
  336. package/dist/core/p-f3267773.entry.js +2 -0
  337. package/dist/core/p-f3267773.entry.js.map +1 -0
  338. package/dist/core/p-f65f0065.js +2 -0
  339. package/dist/core/p-f65f0065.js.map +1 -0
  340. package/dist/core/p-fc239961.entry.js +2 -0
  341. package/dist/core/p-fc239961.entry.js.map +1 -0
  342. package/dist/core/p-fd4fd86a.entry.js +2 -0
  343. package/dist/core/p-fd4fd86a.entry.js.map +1 -0
  344. package/dist/esm/{OpenInNew-52210a9d.js → OpenInNew-6f820c13.js} +1 -1
  345. package/dist/esm/OpenInNew-6f820c13.js.map +1 -0
  346. package/dist/{cjs/purify-039f565a.js → esm/common-helpers-f2174548.js} +18 -3
  347. package/dist/esm/common-helpers-f2174548.js.map +1 -0
  348. package/dist/esm/core.js +1 -1
  349. package/dist/esm/{helpers-063369f4.js → helpers-15fb9b13.js} +2 -117
  350. package/dist/esm/helpers-15fb9b13.js.map +1 -0
  351. package/dist/esm/ic-badge-5c2b4bc7.js +182 -0
  352. package/dist/esm/ic-badge-5c2b4bc7.js.map +1 -0
  353. package/dist/esm/ic-badge.entry.js +3 -180
  354. package/dist/esm/ic-badge.entry.js.map +1 -1
  355. package/dist/esm/ic-button-2f9b4e8a.js +433 -0
  356. package/dist/esm/ic-button-2f9b4e8a.js.map +1 -0
  357. package/dist/esm/ic-button_3.entry.js +6 -888
  358. package/dist/esm/ic-button_3.entry.js.map +1 -1
  359. package/dist/esm/ic-calendar_2.entry.js +22 -13
  360. package/dist/esm/ic-calendar_2.entry.js.map +1 -1
  361. package/dist/esm/ic-card-horizontal.entry.js +10 -5
  362. package/dist/esm/ic-card-horizontal.entry.js.map +1 -1
  363. package/dist/esm/ic-checkbox-f21a3f00.js +201 -0
  364. package/dist/esm/ic-checkbox-f21a3f00.js.map +1 -0
  365. package/dist/esm/ic-checkbox_3.entry.js +17 -203
  366. package/dist/esm/ic-checkbox_3.entry.js.map +1 -1
  367. package/dist/esm/ic-chip-b44cea5b.js +131 -0
  368. package/dist/esm/ic-chip-b44cea5b.js.map +1 -0
  369. package/dist/esm/ic-chip.entry.js +3 -122
  370. package/dist/esm/ic-chip.entry.js.map +1 -1
  371. package/dist/esm/ic-data-table-title-bar.entry.js +19 -4
  372. package/dist/esm/ic-data-table-title-bar.entry.js.map +1 -1
  373. package/dist/esm/ic-data-table.entry.js +18 -10
  374. package/dist/esm/ic-data-table.entry.js.map +1 -1
  375. package/dist/esm/ic-date-picker.entry.js +2 -2
  376. package/dist/esm/ic-input-component-container_4.entry.js +3 -228
  377. package/dist/esm/ic-input-component-container_4.entry.js.map +1 -1
  378. package/dist/esm/ic-input-validation-cce3bb05.js +254 -0
  379. package/dist/esm/ic-input-validation-cce3bb05.js.map +1 -0
  380. package/dist/esm/ic-link-0f6ba1b0.js +109 -0
  381. package/dist/esm/ic-link-0f6ba1b0.js.map +1 -0
  382. package/dist/esm/ic-link.entry.js +4 -107
  383. package/dist/esm/ic-link.entry.js.map +1 -1
  384. package/dist/esm/ic-loading-indicator-7ec7c6c9.js +231 -0
  385. package/dist/esm/ic-loading-indicator-7ec7c6c9.js.map +1 -0
  386. package/dist/esm/ic-menu-c29dda8d.js +985 -0
  387. package/dist/esm/ic-menu-c29dda8d.js.map +1 -0
  388. package/dist/esm/ic-menu.entry.js +5 -994
  389. package/dist/esm/ic-menu.entry.js.map +1 -1
  390. package/dist/esm/ic-navigation-item-e775ce8c.js +241 -0
  391. package/dist/esm/ic-navigation-item-e775ce8c.js.map +1 -0
  392. package/dist/esm/ic-navigation-item.entry.js +4 -235
  393. package/dist/esm/ic-navigation-item.entry.js.map +1 -1
  394. package/dist/esm/ic-page-header-a4a552fe.js +129 -0
  395. package/dist/esm/ic-page-header-a4a552fe.js.map +1 -0
  396. package/dist/esm/ic-page-header.entry.js +3 -127
  397. package/dist/esm/ic-page-header.entry.js.map +1 -1
  398. package/dist/esm/ic-pagination_3.entry.js +6 -0
  399. package/dist/esm/ic-pagination_3.entry.js.map +1 -0
  400. package/dist/esm/ic-section-container-3b887eb7.js +32 -0
  401. package/dist/esm/ic-section-container-3b887eb7.js.map +1 -0
  402. package/dist/esm/ic-section-container.entry.js +2 -30
  403. package/dist/esm/ic-section-container.entry.js.map +1 -1
  404. package/dist/esm/ic-select-cb04ab16.js +874 -0
  405. package/dist/esm/ic-select-cb04ab16.js.map +1 -0
  406. package/dist/esm/ic-skip-link-7c9b8269.js +58 -0
  407. package/dist/esm/ic-skip-link-7c9b8269.js.map +1 -0
  408. package/dist/esm/ic-skip-link.entry.js +2 -56
  409. package/dist/esm/ic-skip-link.entry.js.map +1 -1
  410. package/dist/esm/ic-status-tag-7395532c.js +53 -0
  411. package/dist/esm/ic-status-tag-7395532c.js.map +1 -0
  412. package/dist/esm/ic-status-tag.entry.js +3 -51
  413. package/dist/esm/ic-status-tag.entry.js.map +1 -1
  414. package/dist/esm/ic-table-of-contents.entry.js +14 -3
  415. package/dist/esm/ic-table-of-contents.entry.js.map +1 -1
  416. package/dist/esm/ic-text-field-73754fc7.js +729 -0
  417. package/dist/esm/ic-text-field-73754fc7.js.map +1 -0
  418. package/dist/esm/ic-theme.entry.js +2 -2
  419. package/dist/esm/ic-theme.entry.js.map +1 -1
  420. package/dist/esm/ic-time-input.entry.js +16 -6
  421. package/dist/esm/ic-time-input.entry.js.map +1 -1
  422. package/dist/esm/ic-time-selector.entry.js +11 -8
  423. package/dist/esm/ic-time-selector.entry.js.map +1 -1
  424. package/dist/esm/ic-toggle-button-c58aaaec.js +449 -0
  425. package/dist/esm/ic-toggle-button-c58aaaec.js.map +1 -0
  426. package/dist/esm/ic-toggle-button_2.entry.js +3 -447
  427. package/dist/esm/ic-toggle-button_2.entry.js.map +1 -1
  428. package/dist/esm/ic-tooltip-3c856fa7.js +237 -0
  429. package/dist/esm/ic-tooltip-3c856fa7.js.map +1 -0
  430. package/dist/esm/ic-top-navigation-ba78648a.js +235 -0
  431. package/dist/esm/ic-top-navigation-ba78648a.js.map +1 -0
  432. package/dist/esm/ic-top-navigation.entry.js +3 -230
  433. package/dist/esm/ic-top-navigation.entry.js.map +1 -1
  434. package/dist/esm/ic-tree-item.entry.js +5 -4
  435. package/dist/esm/ic-tree-item.entry.js.map +1 -1
  436. package/dist/esm/ic-tree-view.entry.js +7 -5
  437. package/dist/esm/ic-tree-view.entry.js.map +1 -1
  438. package/dist/esm/ic-typography-9e3efc99.js +196 -0
  439. package/dist/esm/ic-typography-9e3efc99.js.map +1 -0
  440. package/dist/esm/ic-typography.entry.js +3 -194
  441. package/dist/esm/ic-typography.entry.js.map +1 -1
  442. package/dist/esm/index-a7a720e7.js +6 -170
  443. package/dist/esm/loader.js +1 -1
  444. package/dist/types/components/ic-calendar/ic-calendar.d.ts +2 -0
  445. package/dist/types/components/ic-calendar/ic-day-button.d.ts +1 -0
  446. package/dist/types/components/ic-calendar/ic-month-picker.d.ts +1 -0
  447. package/dist/types/components/ic-calendar/ic-year-picker.d.ts +1 -0
  448. package/dist/types/components/ic-card-horizontal/ic-card-horizontal.d.ts +4 -0
  449. package/dist/types/components/ic-data-table/ic-data-table.d.ts +7 -0
  450. package/dist/types/components/ic-data-table-title-bar/ic-data-table-title-bar.d.ts +4 -0
  451. package/dist/types/components/ic-date-input/ic-date-input.d.ts +7 -0
  452. package/dist/types/components/ic-pagination-bar/ic-pagination-bar.d.ts +8 -1
  453. package/dist/types/components/ic-table-of-contents/ic-table-of-contents-item.d.ts +1 -0
  454. package/dist/types/components/ic-table-of-contents/ic-table-of-contents.d.ts +9 -0
  455. package/dist/types/components/ic-time-input/ic-time-input.d.ts +9 -0
  456. package/dist/types/components/ic-time-selector/ic-time-selector.d.ts +2 -0
  457. package/dist/types/components/ic-tree-item/ic-tree-item.d.ts +1 -0
  458. package/dist/types/components/ic-tree-view/ic-tree-view.d.ts +2 -0
  459. package/dist/types/components/ic-tree-view/ic-tree-view.stories.d.ts +27 -21
  460. package/dist/types/components.d.ts +3968 -826
  461. package/dist/types/home/runner/work/ic-ui-kit/ic-ui-kit/packages/canary-web-components/.stencil/web-components/src/components/ic-badge/ic-badge.d.ts +74 -0
  462. package/dist/types/home/runner/work/ic-ui-kit/ic-ui-kit/packages/canary-web-components/.stencil/web-components/src/components/ic-badge/ic-badge.types.d.ts +4 -0
  463. package/dist/types/home/runner/work/ic-ui-kit/ic-ui-kit/packages/canary-web-components/.stencil/web-components/src/components/ic-button/ic-button.d.ts +210 -0
  464. package/dist/types/home/runner/work/ic-ui-kit/ic-ui-kit/packages/canary-web-components/.stencil/web-components/src/components/ic-button/ic-button.types.d.ts +2 -0
  465. package/dist/types/home/runner/work/ic-ui-kit/ic-ui-kit/packages/canary-web-components/.stencil/web-components/src/components/ic-checkbox/ic-checkbox.d.ts +90 -0
  466. package/dist/types/home/runner/work/ic-ui-kit/ic-ui-kit/packages/canary-web-components/.stencil/web-components/src/components/ic-chip/ic-chip.d.ts +75 -0
  467. package/dist/types/home/runner/work/ic-ui-kit/ic-ui-kit/packages/canary-web-components/.stencil/web-components/src/components/ic-empty-state/ic-empty-state.d.ts +44 -0
  468. package/dist/types/home/runner/work/ic-ui-kit/ic-ui-kit/packages/canary-web-components/.stencil/web-components/src/components/ic-empty-state/ic-empty-state.types.d.ts +1 -0
  469. package/dist/types/home/runner/work/ic-ui-kit/ic-ui-kit/packages/canary-web-components/.stencil/web-components/src/components/ic-input-component-container/ic-input-component-container.d.ts +40 -0
  470. package/dist/types/home/runner/work/ic-ui-kit/ic-ui-kit/packages/canary-web-components/.stencil/web-components/src/components/ic-input-container/ic-input-container.d.ts +11 -0
  471. package/dist/types/home/runner/work/ic-ui-kit/ic-ui-kit/packages/canary-web-components/.stencil/web-components/src/components/ic-input-label/ic-input-label.d.ts +42 -0
  472. package/dist/types/home/runner/work/ic-ui-kit/ic-ui-kit/packages/canary-web-components/.stencil/web-components/src/components/ic-input-validation/ic-input-validation.d.ts +32 -0
  473. package/dist/types/home/runner/work/ic-ui-kit/ic-ui-kit/packages/canary-web-components/.stencil/web-components/src/components/ic-link/ic-link.d.ts +55 -0
  474. package/dist/types/home/runner/work/ic-ui-kit/ic-ui-kit/packages/canary-web-components/.stencil/web-components/src/components/ic-loading-indicator/ic-loading-indicator.d.ts +83 -0
  475. package/dist/types/home/runner/work/ic-ui-kit/ic-ui-kit/packages/canary-web-components/.stencil/web-components/src/components/ic-loading-indicator/ic-loading-indicator.types.d.ts +9 -0
  476. package/dist/types/home/runner/work/ic-ui-kit/ic-ui-kit/packages/canary-web-components/.stencil/web-components/src/components/ic-menu/ic-menu.d.ts +235 -0
  477. package/dist/types/home/runner/work/ic-ui-kit/ic-ui-kit/packages/canary-web-components/.stencil/web-components/src/components/ic-menu/ic-menu.types.d.ts +12 -0
  478. package/dist/types/home/runner/work/ic-ui-kit/ic-ui-kit/packages/canary-web-components/.stencil/web-components/src/components/ic-navigation-item/ic-navigation-item.d.ts +102 -0
  479. package/dist/types/home/runner/work/ic-ui-kit/ic-ui-kit/packages/canary-web-components/.stencil/web-components/src/components/ic-page-header/ic-page-header.d.ts +61 -0
  480. package/dist/types/home/runner/work/ic-ui-kit/ic-ui-kit/packages/canary-web-components/.stencil/web-components/src/components/ic-pagination/ic-pagination.d.ts +102 -0
  481. package/dist/types/home/runner/work/ic-ui-kit/ic-ui-kit/packages/canary-web-components/.stencil/web-components/src/components/ic-pagination/ic-pagination.types.d.ts +6 -0
  482. package/dist/types/home/runner/work/ic-ui-kit/ic-ui-kit/packages/canary-web-components/.stencil/web-components/src/components/ic-search-bar/ic-search-bar.types.d.ts +5 -0
  483. package/dist/types/home/runner/work/ic-ui-kit/ic-ui-kit/packages/canary-web-components/.stencil/web-components/src/components/ic-section-container/ic-section-container.d.ts +12 -0
  484. package/dist/types/home/runner/work/ic-ui-kit/ic-ui-kit/packages/canary-web-components/.stencil/web-components/src/components/ic-select/ic-select.d.ts +282 -0
  485. package/dist/types/home/runner/work/ic-ui-kit/ic-ui-kit/packages/canary-web-components/.stencil/web-components/src/components/ic-side-navigation/ic-side-navigation.types.d.ts +13 -0
  486. package/dist/types/home/runner/work/ic-ui-kit/ic-ui-kit/packages/canary-web-components/.stencil/web-components/src/components/ic-skip-link/ic-skip-link.d.ts +38 -0
  487. package/dist/types/home/runner/work/ic-ui-kit/ic-ui-kit/packages/canary-web-components/.stencil/web-components/src/components/ic-status-tag/ic-status-tag.d.ts +35 -0
  488. package/dist/types/home/runner/work/ic-ui-kit/ic-ui-kit/packages/canary-web-components/.stencil/web-components/src/components/ic-status-tag/ic-status-tag.types.d.ts +1 -0
  489. package/dist/types/home/runner/work/ic-ui-kit/ic-ui-kit/packages/canary-web-components/.stencil/web-components/src/components/ic-text-field/ic-text-field.d.ts +262 -0
  490. package/dist/types/home/runner/work/ic-ui-kit/ic-ui-kit/packages/canary-web-components/.stencil/web-components/src/components/ic-text-field/ic-text-field.types.d.ts +8 -0
  491. package/dist/types/home/runner/work/ic-ui-kit/ic-ui-kit/packages/canary-web-components/.stencil/web-components/src/components/ic-theme/ic-theme.d.ts +28 -0
  492. package/dist/types/home/runner/work/ic-ui-kit/ic-ui-kit/packages/canary-web-components/.stencil/web-components/src/components/ic-toggle-button/ic-toggle-button.d.ts +75 -0
  493. package/dist/types/home/runner/work/ic-ui-kit/ic-ui-kit/packages/canary-web-components/.stencil/web-components/src/components/ic-toggle-button-group/ic-toggle-button-group.d.ts +92 -0
  494. package/dist/types/home/runner/work/ic-ui-kit/ic-ui-kit/packages/canary-web-components/.stencil/web-components/src/components/ic-toggle-button-group/ic-toggle-button-group.types.d.ts +7 -0
  495. package/dist/types/home/runner/work/ic-ui-kit/ic-ui-kit/packages/canary-web-components/.stencil/web-components/src/components/ic-tooltip/ic-tooltip.d.ts +82 -0
  496. package/dist/types/home/runner/work/ic-ui-kit/ic-ui-kit/packages/canary-web-components/.stencil/web-components/src/components/ic-tooltip/ic-tooltip.types.d.ts +1 -0
  497. package/dist/types/home/runner/work/ic-ui-kit/ic-ui-kit/packages/canary-web-components/.stencil/web-components/src/components/ic-top-navigation/ic-top-navigation.d.ts +102 -0
  498. package/dist/types/home/runner/work/ic-ui-kit/ic-ui-kit/packages/canary-web-components/.stencil/web-components/src/components/ic-typography/ic-typography.d.ts +83 -0
  499. package/dist/types/home/runner/work/ic-ui-kit/ic-ui-kit/packages/canary-web-components/.stencil/web-components/src/utils/helpers.d.ts +167 -0
  500. package/dist/types/home/runner/work/ic-ui-kit/ic-ui-kit/packages/canary-web-components/.stencil/web-components/src/utils/types.d.ts +98 -0
  501. package/hydrate/index.js +10692 -18156
  502. package/hydrate/index.mjs +10692 -18156
  503. package/package.json +14 -20
  504. package/dist/cjs/OpenInNew-7bac24f7.js.map +0 -1
  505. package/dist/cjs/check-icon-dd563898.js +0 -10
  506. package/dist/cjs/check-icon-dd563898.js.map +0 -1
  507. package/dist/cjs/chevron-icon-3dedd973.js +0 -10
  508. package/dist/cjs/chevron-icon-3dedd973.js.map +0 -1
  509. package/dist/cjs/close-icon-d62b369d.js +0 -12
  510. package/dist/cjs/close-icon-d62b369d.js.map +0 -1
  511. package/dist/cjs/common-helpers-944cb54d.js +0 -21
  512. package/dist/cjs/common-helpers-944cb54d.js.map +0 -1
  513. package/dist/cjs/helpers-2cc5f6db.js.map +0 -1
  514. package/dist/cjs/ic-accordion-group.cjs.entry.js +0 -137
  515. package/dist/cjs/ic-accordion-group.cjs.entry.js.map +0 -1
  516. package/dist/cjs/ic-accordion.cjs.entry.js +0 -150
  517. package/dist/cjs/ic-accordion.cjs.entry.js.map +0 -1
  518. package/dist/cjs/ic-action-chip.cjs.entry.js +0 -116
  519. package/dist/cjs/ic-action-chip.cjs.entry.js.map +0 -1
  520. package/dist/cjs/ic-alert.cjs.entry.js +0 -140
  521. package/dist/cjs/ic-alert.cjs.entry.js.map +0 -1
  522. package/dist/cjs/ic-back-to-top.cjs.entry.js +0 -168
  523. package/dist/cjs/ic-back-to-top.cjs.entry.js.map +0 -1
  524. package/dist/cjs/ic-breadcrumb-group.cjs.entry.js +0 -241
  525. package/dist/cjs/ic-breadcrumb-group.cjs.entry.js.map +0 -1
  526. package/dist/cjs/ic-breadcrumb.cjs.entry.js +0 -118
  527. package/dist/cjs/ic-breadcrumb.cjs.entry.js.map +0 -1
  528. package/dist/cjs/ic-card-vertical.cjs.entry.js +0 -171
  529. package/dist/cjs/ic-card-vertical.cjs.entry.js.map +0 -1
  530. package/dist/cjs/ic-checkbox-group.cjs.entry.js +0 -148
  531. package/dist/cjs/ic-checkbox-group.cjs.entry.js.map +0 -1
  532. package/dist/cjs/ic-classification-banner.cjs.entry.js +0 -67
  533. package/dist/cjs/ic-classification-banner.cjs.entry.js.map +0 -1
  534. package/dist/cjs/ic-data-list.cjs.entry.js +0 -38
  535. package/dist/cjs/ic-data-list.cjs.entry.js.map +0 -1
  536. package/dist/cjs/ic-data-row.cjs.entry.js +0 -88
  537. package/dist/cjs/ic-data-row.cjs.entry.js.map +0 -1
  538. package/dist/cjs/ic-dialog.cjs.entry.js +0 -388
  539. package/dist/cjs/ic-dialog.cjs.entry.js.map +0 -1
  540. package/dist/cjs/ic-divider.cjs.entry.js +0 -114
  541. package/dist/cjs/ic-divider.cjs.entry.js.map +0 -1
  542. package/dist/cjs/ic-footer-link-group.cjs.entry.js +0 -69
  543. package/dist/cjs/ic-footer-link-group.cjs.entry.js.map +0 -1
  544. package/dist/cjs/ic-footer-link.cjs.entry.js +0 -65
  545. package/dist/cjs/ic-footer-link.cjs.entry.js.map +0 -1
  546. package/dist/cjs/ic-footer.cjs.entry.js +0 -119
  547. package/dist/cjs/ic-footer.cjs.entry.js.map +0 -1
  548. package/dist/cjs/ic-hero.cjs.entry.js +0 -104
  549. package/dist/cjs/ic-hero.cjs.entry.js.map +0 -1
  550. package/dist/cjs/ic-horizontal-scroll.cjs.entry.js +0 -196
  551. package/dist/cjs/ic-horizontal-scroll.cjs.entry.js.map +0 -1
  552. package/dist/cjs/ic-layout-grid-item.cjs.entry.js +0 -70
  553. package/dist/cjs/ic-layout-grid-item.cjs.entry.js.map +0 -1
  554. package/dist/cjs/ic-layout-grid.cjs.entry.js +0 -156
  555. package/dist/cjs/ic-layout-grid.cjs.entry.js.map +0 -1
  556. package/dist/cjs/ic-menu-group.cjs.entry.js +0 -25
  557. package/dist/cjs/ic-menu-group.cjs.entry.js.map +0 -1
  558. package/dist/cjs/ic-menu-item.cjs.entry.js +0 -121
  559. package/dist/cjs/ic-menu-item.cjs.entry.js.map +0 -1
  560. package/dist/cjs/ic-navigation-button.cjs.entry.js +0 -124
  561. package/dist/cjs/ic-navigation-button.cjs.entry.js.map +0 -1
  562. package/dist/cjs/ic-navigation-group.cjs.entry.js +0 -293
  563. package/dist/cjs/ic-navigation-group.cjs.entry.js.map +0 -1
  564. package/dist/cjs/ic-navigation-menu.cjs.entry.js +0 -149
  565. package/dist/cjs/ic-navigation-menu.cjs.entry.js.map +0 -1
  566. package/dist/cjs/ic-pagination_4.cjs.entry.js +0 -1647
  567. package/dist/cjs/ic-pagination_4.cjs.entry.js.map +0 -1
  568. package/dist/cjs/ic-popover-menu.cjs.entry.js +0 -308
  569. package/dist/cjs/ic-popover-menu.cjs.entry.js.map +0 -1
  570. package/dist/cjs/ic-radio-group.cjs.entry.js +0 -264
  571. package/dist/cjs/ic-radio-group.cjs.entry.js.map +0 -1
  572. package/dist/cjs/ic-radio-option.cjs.entry.js +0 -173
  573. package/dist/cjs/ic-radio-option.cjs.entry.js.map +0 -1
  574. package/dist/cjs/ic-search-bar.cjs.entry.js +0 -606
  575. package/dist/cjs/ic-search-bar.cjs.entry.js.map +0 -1
  576. package/dist/cjs/ic-side-navigation.cjs.entry.js +0 -488
  577. package/dist/cjs/ic-side-navigation.cjs.entry.js.map +0 -1
  578. package/dist/cjs/ic-skeleton.cjs.entry.js +0 -62
  579. package/dist/cjs/ic-skeleton.cjs.entry.js.map +0 -1
  580. package/dist/cjs/ic-step.cjs.entry.js +0 -157
  581. package/dist/cjs/ic-step.cjs.entry.js.map +0 -1
  582. package/dist/cjs/ic-stepper.cjs.entry.js +0 -308
  583. package/dist/cjs/ic-stepper.cjs.entry.js.map +0 -1
  584. package/dist/cjs/ic-switch.cjs.entry.js +0 -124
  585. package/dist/cjs/ic-switch.cjs.entry.js.map +0 -1
  586. package/dist/cjs/ic-tab-context.cjs.entry.js +0 -250
  587. package/dist/cjs/ic-tab-context.cjs.entry.js.map +0 -1
  588. package/dist/cjs/ic-tab-group.cjs.entry.js +0 -40
  589. package/dist/cjs/ic-tab-group.cjs.entry.js.map +0 -1
  590. package/dist/cjs/ic-tab-panel.cjs.entry.js +0 -42
  591. package/dist/cjs/ic-tab-panel.cjs.entry.js.map +0 -1
  592. package/dist/cjs/ic-tab.cjs.entry.js +0 -112
  593. package/dist/cjs/ic-tab.cjs.entry.js.map +0 -1
  594. package/dist/cjs/ic-toast-region.cjs.entry.js +0 -59
  595. package/dist/cjs/ic-toast-region.cjs.entry.js.map +0 -1
  596. package/dist/cjs/ic-toast.cjs.entry.js +0 -239
  597. package/dist/cjs/ic-toast.cjs.entry.js.map +0 -1
  598. package/dist/cjs/purify-039f565a.js.map +0 -1
  599. package/dist/components/check-icon.js +0 -8
  600. package/dist/components/check-icon.js.map +0 -1
  601. package/dist/components/chevron-icon.js +0 -8
  602. package/dist/components/chevron-icon.js.map +0 -1
  603. package/dist/components/close-icon.js +0 -10
  604. package/dist/components/close-icon.js.map +0 -1
  605. package/dist/components/ic-accordion-group.js +0 -188
  606. package/dist/components/ic-accordion-group.js.map +0 -1
  607. package/dist/components/ic-accordion.js +0 -181
  608. package/dist/components/ic-accordion.js.map +0 -1
  609. package/dist/components/ic-action-chip.js +0 -160
  610. package/dist/components/ic-action-chip.js.map +0 -1
  611. package/dist/components/ic-alert.js +0 -192
  612. package/dist/components/ic-alert.js.map +0 -1
  613. package/dist/components/ic-back-to-top.js +0 -216
  614. package/dist/components/ic-back-to-top.js.map +0 -1
  615. package/dist/components/ic-breadcrumb-group.js +0 -278
  616. package/dist/components/ic-breadcrumb-group.js.map +0 -1
  617. package/dist/components/ic-breadcrumb.js +0 -8
  618. package/dist/components/ic-breadcrumb.js.map +0 -1
  619. package/dist/components/ic-breadcrumb2.js +0 -145
  620. package/dist/components/ic-breadcrumb2.js.map +0 -1
  621. package/dist/components/ic-card-vertical.js +0 -219
  622. package/dist/components/ic-card-vertical.js.map +0 -1
  623. package/dist/components/ic-checkbox-group.js +0 -198
  624. package/dist/components/ic-checkbox-group.js.map +0 -1
  625. package/dist/components/ic-classification-banner.js +0 -93
  626. package/dist/components/ic-classification-banner.js.map +0 -1
  627. package/dist/components/ic-data-list.js +0 -62
  628. package/dist/components/ic-data-list.js.map +0 -1
  629. package/dist/components/ic-data-row.js +0 -115
  630. package/dist/components/ic-data-row.js.map +0 -1
  631. package/dist/components/ic-dialog.js +0 -445
  632. package/dist/components/ic-dialog.js.map +0 -1
  633. package/dist/components/ic-divider.js +0 -8
  634. package/dist/components/ic-divider.js.map +0 -1
  635. package/dist/components/ic-divider2.js +0 -139
  636. package/dist/components/ic-divider2.js.map +0 -1
  637. package/dist/components/ic-footer-link-group.js +0 -101
  638. package/dist/components/ic-footer-link-group.js.map +0 -1
  639. package/dist/components/ic-footer-link.js +0 -95
  640. package/dist/components/ic-footer-link.js.map +0 -1
  641. package/dist/components/ic-footer.js +0 -155
  642. package/dist/components/ic-footer.js.map +0 -1
  643. package/dist/components/ic-hero.js +0 -145
  644. package/dist/components/ic-hero.js.map +0 -1
  645. package/dist/components/ic-horizontal-scroll.js +0 -8
  646. package/dist/components/ic-horizontal-scroll.js.map +0 -1
  647. package/dist/components/ic-horizontal-scroll2.js +0 -240
  648. package/dist/components/ic-horizontal-scroll2.js.map +0 -1
  649. package/dist/components/ic-layout-grid-item.js +0 -95
  650. package/dist/components/ic-layout-grid-item.js.map +0 -1
  651. package/dist/components/ic-layout-grid.js +0 -188
  652. package/dist/components/ic-layout-grid.js.map +0 -1
  653. package/dist/components/ic-menu-group.js +0 -47
  654. package/dist/components/ic-menu-group.js.map +0 -1
  655. package/dist/components/ic-menu-item.js +0 -8
  656. package/dist/components/ic-menu-item.js.map +0 -1
  657. package/dist/components/ic-menu-item2.js +0 -171
  658. package/dist/components/ic-menu-item2.js.map +0 -1
  659. package/dist/components/ic-navigation-button.js +0 -174
  660. package/dist/components/ic-navigation-button.js.map +0 -1
  661. package/dist/components/ic-navigation-group.js +0 -326
  662. package/dist/components/ic-navigation-group.js.map +0 -1
  663. package/dist/components/ic-navigation-menu.js +0 -8
  664. package/dist/components/ic-navigation-menu.js.map +0 -1
  665. package/dist/components/ic-navigation-menu2.js +0 -188
  666. package/dist/components/ic-navigation-menu2.js.map +0 -1
  667. package/dist/components/ic-pagination-item.js +0 -8
  668. package/dist/components/ic-pagination-item.js.map +0 -1
  669. package/dist/components/ic-pagination-item2.js +0 -107
  670. package/dist/components/ic-pagination-item2.js.map +0 -1
  671. package/dist/components/ic-popover-menu.js +0 -369
  672. package/dist/components/ic-popover-menu.js.map +0 -1
  673. package/dist/components/ic-radio-group.js +0 -317
  674. package/dist/components/ic-radio-group.js.map +0 -1
  675. package/dist/components/ic-radio-option.js +0 -209
  676. package/dist/components/ic-radio-option.js.map +0 -1
  677. package/dist/components/ic-search-bar.js +0 -719
  678. package/dist/components/ic-search-bar.js.map +0 -1
  679. package/dist/components/ic-side-navigation.js +0 -553
  680. package/dist/components/ic-side-navigation.js.map +0 -1
  681. package/dist/components/ic-skeleton.js +0 -81
  682. package/dist/components/ic-skeleton.js.map +0 -1
  683. package/dist/components/ic-step.js +0 -200
  684. package/dist/components/ic-step.js.map +0 -1
  685. package/dist/components/ic-stepper.js +0 -340
  686. package/dist/components/ic-stepper.js.map +0 -1
  687. package/dist/components/ic-switch.js +0 -166
  688. package/dist/components/ic-switch.js.map +0 -1
  689. package/dist/components/ic-tab-context.js +0 -276
  690. package/dist/components/ic-tab-context.js.map +0 -1
  691. package/dist/components/ic-tab-group.js +0 -89
  692. package/dist/components/ic-tab-group.js.map +0 -1
  693. package/dist/components/ic-tab-panel.js +0 -63
  694. package/dist/components/ic-tab-panel.js.map +0 -1
  695. package/dist/components/ic-tab.js +0 -143
  696. package/dist/components/ic-tab.js.map +0 -1
  697. package/dist/components/ic-toast-region.js +0 -76
  698. package/dist/components/ic-toast-region.js.map +0 -1
  699. package/dist/components/ic-toast.js +0 -293
  700. package/dist/components/ic-toast.js.map +0 -1
  701. package/dist/components/purify.js +0 -1363
  702. package/dist/components/purify.js.map +0 -1
  703. package/dist/core/p-08f24329.entry.js +0 -2
  704. package/dist/core/p-08f24329.entry.js.map +0 -1
  705. package/dist/core/p-0aa9ce8b.js +0 -2
  706. package/dist/core/p-0bca234b.entry.js +0 -2
  707. package/dist/core/p-0bca234b.entry.js.map +0 -1
  708. package/dist/core/p-14b8bf37.entry.js +0 -2
  709. package/dist/core/p-14b8bf37.entry.js.map +0 -1
  710. package/dist/core/p-169ad948.entry.js +0 -2
  711. package/dist/core/p-169ad948.entry.js.map +0 -1
  712. package/dist/core/p-170ddfc2.js +0 -2
  713. package/dist/core/p-1be17f22.entry.js +0 -2
  714. package/dist/core/p-1be17f22.entry.js.map +0 -1
  715. package/dist/core/p-1cc402b8.entry.js +0 -2
  716. package/dist/core/p-1cc402b8.entry.js.map +0 -1
  717. package/dist/core/p-1d166343.entry.js +0 -2
  718. package/dist/core/p-1d166343.entry.js.map +0 -1
  719. package/dist/core/p-1dbefb37.entry.js +0 -2
  720. package/dist/core/p-1dbefb37.entry.js.map +0 -1
  721. package/dist/core/p-319e3d5b.entry.js.map +0 -1
  722. package/dist/core/p-33509a89.entry.js.map +0 -1
  723. package/dist/core/p-3389625c.entry.js +0 -2
  724. package/dist/core/p-3389625c.entry.js.map +0 -1
  725. package/dist/core/p-344752cb.entry.js +0 -2
  726. package/dist/core/p-344752cb.entry.js.map +0 -1
  727. package/dist/core/p-348d7080.entry.js +0 -2
  728. package/dist/core/p-348d7080.entry.js.map +0 -1
  729. package/dist/core/p-349d91dc.js.map +0 -1
  730. package/dist/core/p-39cdf5db.entry.js +0 -2
  731. package/dist/core/p-39cdf5db.entry.js.map +0 -1
  732. package/dist/core/p-409d03b2.entry.js +0 -2
  733. package/dist/core/p-409d03b2.entry.js.map +0 -1
  734. package/dist/core/p-492991ad.entry.js +0 -2
  735. package/dist/core/p-492991ad.entry.js.map +0 -1
  736. package/dist/core/p-496b314f.entry.js +0 -2
  737. package/dist/core/p-496b314f.entry.js.map +0 -1
  738. package/dist/core/p-508b6da3.entry.js +0 -2
  739. package/dist/core/p-508b6da3.entry.js.map +0 -1
  740. package/dist/core/p-53dad961.entry.js +0 -2
  741. package/dist/core/p-53dad961.entry.js.map +0 -1
  742. package/dist/core/p-551a0fc1.entry.js.map +0 -1
  743. package/dist/core/p-5e6687a8.entry.js +0 -2
  744. package/dist/core/p-5e6687a8.entry.js.map +0 -1
  745. package/dist/core/p-60f4fe3a.entry.js +0 -2
  746. package/dist/core/p-60f4fe3a.entry.js.map +0 -1
  747. package/dist/core/p-61c92598.entry.js +0 -2
  748. package/dist/core/p-61c92598.entry.js.map +0 -1
  749. package/dist/core/p-67c3985d.entry.js +0 -2
  750. package/dist/core/p-67c3985d.entry.js.map +0 -1
  751. package/dist/core/p-691dd972.entry.js +0 -2
  752. package/dist/core/p-691dd972.entry.js.map +0 -1
  753. package/dist/core/p-6dfe0922.entry.js +0 -2
  754. package/dist/core/p-6dfe0922.entry.js.map +0 -1
  755. package/dist/core/p-770e92cd.entry.js +0 -2
  756. package/dist/core/p-770e92cd.entry.js.map +0 -1
  757. package/dist/core/p-79ead0e7.entry.js.map +0 -1
  758. package/dist/core/p-7b4b45cf.entry.js +0 -2
  759. package/dist/core/p-7b4b45cf.entry.js.map +0 -1
  760. package/dist/core/p-7c4d6b13.entry.js +0 -2
  761. package/dist/core/p-7c4d6b13.entry.js.map +0 -1
  762. package/dist/core/p-7d878ad7.entry.js +0 -2
  763. package/dist/core/p-7d878ad7.entry.js.map +0 -1
  764. package/dist/core/p-7efdbab8.entry.js.map +0 -1
  765. package/dist/core/p-879c180d.entry.js.map +0 -1
  766. package/dist/core/p-8ab37b4d.entry.js +0 -2
  767. package/dist/core/p-8ab37b4d.entry.js.map +0 -1
  768. package/dist/core/p-8d42a6e5.entry.js +0 -2
  769. package/dist/core/p-8d42a6e5.entry.js.map +0 -1
  770. package/dist/core/p-939025af.entry.js.map +0 -1
  771. package/dist/core/p-9674b63f.entry.js +0 -2
  772. package/dist/core/p-9674b63f.entry.js.map +0 -1
  773. package/dist/core/p-9ca147f3.entry.js.map +0 -1
  774. package/dist/core/p-9dea5764.entry.js +0 -2
  775. package/dist/core/p-9dea5764.entry.js.map +0 -1
  776. package/dist/core/p-a422b778.js +0 -2
  777. package/dist/core/p-a422b778.js.map +0 -1
  778. package/dist/core/p-a58cf6fd.entry.js +0 -2
  779. package/dist/core/p-a58cf6fd.entry.js.map +0 -1
  780. package/dist/core/p-a8310dfd.entry.js +0 -2
  781. package/dist/core/p-a8310dfd.entry.js.map +0 -1
  782. package/dist/core/p-a8a92e54.entry.js +0 -2
  783. package/dist/core/p-a8a92e54.entry.js.map +0 -1
  784. package/dist/core/p-b4a2f6fa.entry.js +0 -2
  785. package/dist/core/p-b4a2f6fa.entry.js.map +0 -1
  786. package/dist/core/p-b76fdade.entry.js +0 -2
  787. package/dist/core/p-b76fdade.entry.js.map +0 -1
  788. package/dist/core/p-b9459ba2.entry.js +0 -2
  789. package/dist/core/p-b9459ba2.entry.js.map +0 -1
  790. package/dist/core/p-bb3db366.entry.js +0 -2
  791. package/dist/core/p-bb3db366.entry.js.map +0 -1
  792. package/dist/core/p-bc6e5d64.entry.js +0 -2
  793. package/dist/core/p-bc6e5d64.entry.js.map +0 -1
  794. package/dist/core/p-c0a7eed7.entry.js +0 -2
  795. package/dist/core/p-c0a7eed7.entry.js.map +0 -1
  796. package/dist/core/p-c0b227d2.entry.js +0 -2
  797. package/dist/core/p-c0b227d2.entry.js.map +0 -1
  798. package/dist/core/p-c4b2774d.entry.js.map +0 -1
  799. package/dist/core/p-ca05573a.entry.js +0 -2
  800. package/dist/core/p-ca05573a.entry.js.map +0 -1
  801. package/dist/core/p-d0607a70.entry.js +0 -2
  802. package/dist/core/p-d0607a70.entry.js.map +0 -1
  803. package/dist/core/p-d376858f.entry.js +0 -2
  804. package/dist/core/p-d376858f.entry.js.map +0 -1
  805. package/dist/core/p-dbd9a403.entry.js +0 -2
  806. package/dist/core/p-dbd9a403.entry.js.map +0 -1
  807. package/dist/core/p-df064c8b.entry.js +0 -2
  808. package/dist/core/p-df064c8b.entry.js.map +0 -1
  809. package/dist/core/p-e081702e.js +0 -2
  810. package/dist/core/p-e519f607.js +0 -2
  811. package/dist/core/p-e519f607.js.map +0 -1
  812. package/dist/core/p-e5c6d01a.entry.js +0 -2
  813. package/dist/core/p-e5c6d01a.entry.js.map +0 -1
  814. package/dist/core/p-e8db8772.entry.js +0 -2
  815. package/dist/core/p-e8db8772.entry.js.map +0 -1
  816. package/dist/core/p-ea04103e.entry.js +0 -2
  817. package/dist/core/p-ea04103e.entry.js.map +0 -1
  818. package/dist/core/p-eac60693.entry.js +0 -2
  819. package/dist/core/p-eac60693.entry.js.map +0 -1
  820. package/dist/core/p-ecc7fd71.entry.js +0 -2
  821. package/dist/core/p-ecc7fd71.entry.js.map +0 -1
  822. package/dist/core/p-efe260f0.entry.js +0 -2
  823. package/dist/core/p-efe260f0.entry.js.map +0 -1
  824. package/dist/core/p-f1b57f91.entry.js +0 -2
  825. package/dist/core/p-f1b57f91.entry.js.map +0 -1
  826. package/dist/core/p-f5dc04f7.entry.js +0 -2
  827. package/dist/core/p-f5dc04f7.entry.js.map +0 -1
  828. package/dist/core/p-fb07921b.entry.js +0 -2
  829. package/dist/core/p-fb07921b.entry.js.map +0 -1
  830. package/dist/core/p-fd08156a.entry.js +0 -2
  831. package/dist/core/p-fd08156a.entry.js.map +0 -1
  832. package/dist/core/p-fe5b51bb.entry.js +0 -2
  833. package/dist/core/p-fe5b51bb.entry.js.map +0 -1
  834. package/dist/core/p-ff618439.entry.js +0 -2
  835. package/dist/core/p-ff618439.entry.js.map +0 -1
  836. package/dist/esm/OpenInNew-52210a9d.js.map +0 -1
  837. package/dist/esm/check-icon-f2346e76.js +0 -8
  838. package/dist/esm/check-icon-f2346e76.js.map +0 -1
  839. package/dist/esm/chevron-icon-875b7af2.js +0 -8
  840. package/dist/esm/chevron-icon-875b7af2.js.map +0 -1
  841. package/dist/esm/close-icon-c9e09475.js +0 -10
  842. package/dist/esm/close-icon-c9e09475.js.map +0 -1
  843. package/dist/esm/common-helpers-86c07ff1.js +0 -19
  844. package/dist/esm/common-helpers-86c07ff1.js.map +0 -1
  845. package/dist/esm/helpers-063369f4.js.map +0 -1
  846. package/dist/esm/ic-accordion-group.entry.js +0 -133
  847. package/dist/esm/ic-accordion-group.entry.js.map +0 -1
  848. package/dist/esm/ic-accordion.entry.js +0 -146
  849. package/dist/esm/ic-accordion.entry.js.map +0 -1
  850. package/dist/esm/ic-action-chip.entry.js +0 -112
  851. package/dist/esm/ic-action-chip.entry.js.map +0 -1
  852. package/dist/esm/ic-alert.entry.js +0 -136
  853. package/dist/esm/ic-alert.entry.js.map +0 -1
  854. package/dist/esm/ic-back-to-top.entry.js +0 -164
  855. package/dist/esm/ic-back-to-top.entry.js.map +0 -1
  856. package/dist/esm/ic-breadcrumb-group.entry.js +0 -237
  857. package/dist/esm/ic-breadcrumb-group.entry.js.map +0 -1
  858. package/dist/esm/ic-breadcrumb.entry.js +0 -114
  859. package/dist/esm/ic-breadcrumb.entry.js.map +0 -1
  860. package/dist/esm/ic-card-vertical.entry.js +0 -167
  861. package/dist/esm/ic-card-vertical.entry.js.map +0 -1
  862. package/dist/esm/ic-checkbox-group.entry.js +0 -144
  863. package/dist/esm/ic-checkbox-group.entry.js.map +0 -1
  864. package/dist/esm/ic-classification-banner.entry.js +0 -63
  865. package/dist/esm/ic-classification-banner.entry.js.map +0 -1
  866. package/dist/esm/ic-data-list.entry.js +0 -34
  867. package/dist/esm/ic-data-list.entry.js.map +0 -1
  868. package/dist/esm/ic-data-row.entry.js +0 -84
  869. package/dist/esm/ic-data-row.entry.js.map +0 -1
  870. package/dist/esm/ic-dialog.entry.js +0 -384
  871. package/dist/esm/ic-dialog.entry.js.map +0 -1
  872. package/dist/esm/ic-divider.entry.js +0 -110
  873. package/dist/esm/ic-divider.entry.js.map +0 -1
  874. package/dist/esm/ic-footer-link-group.entry.js +0 -65
  875. package/dist/esm/ic-footer-link-group.entry.js.map +0 -1
  876. package/dist/esm/ic-footer-link.entry.js +0 -61
  877. package/dist/esm/ic-footer-link.entry.js.map +0 -1
  878. package/dist/esm/ic-footer.entry.js +0 -115
  879. package/dist/esm/ic-footer.entry.js.map +0 -1
  880. package/dist/esm/ic-hero.entry.js +0 -100
  881. package/dist/esm/ic-hero.entry.js.map +0 -1
  882. package/dist/esm/ic-horizontal-scroll.entry.js +0 -192
  883. package/dist/esm/ic-horizontal-scroll.entry.js.map +0 -1
  884. package/dist/esm/ic-layout-grid-item.entry.js +0 -66
  885. package/dist/esm/ic-layout-grid-item.entry.js.map +0 -1
  886. package/dist/esm/ic-layout-grid.entry.js +0 -152
  887. package/dist/esm/ic-layout-grid.entry.js.map +0 -1
  888. package/dist/esm/ic-menu-group.entry.js +0 -21
  889. package/dist/esm/ic-menu-group.entry.js.map +0 -1
  890. package/dist/esm/ic-menu-item.entry.js +0 -117
  891. package/dist/esm/ic-menu-item.entry.js.map +0 -1
  892. package/dist/esm/ic-navigation-button.entry.js +0 -120
  893. package/dist/esm/ic-navigation-button.entry.js.map +0 -1
  894. package/dist/esm/ic-navigation-group.entry.js +0 -289
  895. package/dist/esm/ic-navigation-group.entry.js.map +0 -1
  896. package/dist/esm/ic-navigation-menu.entry.js +0 -145
  897. package/dist/esm/ic-navigation-menu.entry.js.map +0 -1
  898. package/dist/esm/ic-pagination_4.entry.js +0 -1640
  899. package/dist/esm/ic-pagination_4.entry.js.map +0 -1
  900. package/dist/esm/ic-popover-menu.entry.js +0 -304
  901. package/dist/esm/ic-popover-menu.entry.js.map +0 -1
  902. package/dist/esm/ic-radio-group.entry.js +0 -260
  903. package/dist/esm/ic-radio-group.entry.js.map +0 -1
  904. package/dist/esm/ic-radio-option.entry.js +0 -169
  905. package/dist/esm/ic-radio-option.entry.js.map +0 -1
  906. package/dist/esm/ic-search-bar.entry.js +0 -602
  907. package/dist/esm/ic-search-bar.entry.js.map +0 -1
  908. package/dist/esm/ic-side-navigation.entry.js +0 -484
  909. package/dist/esm/ic-side-navigation.entry.js.map +0 -1
  910. package/dist/esm/ic-skeleton.entry.js +0 -58
  911. package/dist/esm/ic-skeleton.entry.js.map +0 -1
  912. package/dist/esm/ic-step.entry.js +0 -153
  913. package/dist/esm/ic-step.entry.js.map +0 -1
  914. package/dist/esm/ic-stepper.entry.js +0 -304
  915. package/dist/esm/ic-stepper.entry.js.map +0 -1
  916. package/dist/esm/ic-switch.entry.js +0 -120
  917. package/dist/esm/ic-switch.entry.js.map +0 -1
  918. package/dist/esm/ic-tab-context.entry.js +0 -246
  919. package/dist/esm/ic-tab-context.entry.js.map +0 -1
  920. package/dist/esm/ic-tab-group.entry.js +0 -36
  921. package/dist/esm/ic-tab-group.entry.js.map +0 -1
  922. package/dist/esm/ic-tab-panel.entry.js +0 -38
  923. package/dist/esm/ic-tab-panel.entry.js.map +0 -1
  924. package/dist/esm/ic-tab.entry.js +0 -108
  925. package/dist/esm/ic-tab.entry.js.map +0 -1
  926. package/dist/esm/ic-toast-region.entry.js +0 -55
  927. package/dist/esm/ic-toast-region.entry.js.map +0 -1
  928. package/dist/esm/ic-toast.entry.js +0 -235
  929. package/dist/esm/ic-toast.entry.js.map +0 -1
  930. package/dist/esm/purify-6eaa9893.js.map +0 -1
  931. /package/dist/core/{p-0aa9ce8b.js.map → p-02d0a238.entry.js.map} +0 -0
  932. /package/dist/core/{p-170ddfc2.js.map → p-0c02b16c.entry.js.map} +0 -0
  933. /package/dist/core/{p-201b41c7.entry.js.map → p-22267c01.entry.js.map} +0 -0
  934. /package/dist/core/{p-e081702e.js.map → p-27962d4d.entry.js.map} +0 -0
  935. /package/dist/core/{p-ea1ea1b9.js.map → p-384a7f60.entry.js.map} +0 -0
@@ -1,1647 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-d337cd8a.js');
6
- const helpers = require('./helpers-2cc5f6db.js');
7
-
8
- const paginationNextPrevious = `<svg width="8" height="10" viewBox="0 0 8 10" fill="none" xmlns="http://www.w3.org/2000/svg">
9
- <path d="M2.08748 0L0.912476 1.175L4.72914 5L0.912476 8.825L2.08748 10L7.08748 5L2.08748 0Z" fill="currentColor"/>
10
- </svg>
11
- `;
12
-
13
- const paginationFirstLast = `<svg width="12" height="10" viewBox="0 0 12 10" fill="none" xmlns="http://www.w3.org/2000/svg">
14
- <path d="M11.1709 8.825L7.34589 5L11.1709 1.175L9.99589 0L4.99589 5L9.99589 10L11.1709 8.825ZM0.829224 0H2.49589V10H0.829224V0Z" fill="currentColour"/>
15
- </svg>`;
16
-
17
- const icPaginationCss = "/*! 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{box-sizing:border-box;width:100%;display:flex;justify-content:center}nav{width:100%;display:flex;flex-flow:row wrap;justify-content:flex-start;align-items:center}ic-button{cursor:pointer}ic-button.next-previous{--icon-width:var(--ic-space-xs);--icon-height:calc(var(--ic-space-xs) + var(--ic-space-xxxs));padding:0 var(--ic-space-xxs) 0 var(--ic-space-xxxs)}ic-button.first-last{--icon-width:calc(var(--ic-space-sm) + var(--ic-space-xxxs));--icon-height:calc(var(--ic-space-xs) + var(--ic-space-xxxs))}ic-button.first-last::part(button),ic-button.next-previous::part(button){color:var(--ic-pagination-chevron)}:host(.ic-pagination-monochrome) ic-button.first-last::part(button),:host(.ic-pagination-monochrome) ic-button.next-previous::part(button){color:var(--ic-pagination-chevron-monochrome)}ic-button.ic-button-disabled.first-last::part(button),ic-button.ic-button-disabled.next-previous::part(button),:host(.ic-pagination-monochrome) ic-button.ic-button-disabled.first-last::part(button),:host(.ic-pagination-monochrome) ic-button.ic-button-disabled.next-previous::part(button){color:var(--ic-pagination-chevron-disabled)}.disabled{color:var(--ic-color-text-disabled-mid);pointer-events:none;cursor:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.hide-current-page{display:none}.sr-only{position:absolute;left:-9999px}.sr-only:dir(rtl){right:-9999px}";
18
- const IcPaginationStyle0 = icPaginationCss;
19
-
20
- const Pagination = class {
21
- constructor(hostRef) {
22
- index.registerInstance(this, hostRef);
23
- this.icPageChange = index.createEvent(this, "icPageChange", 7);
24
- this.endEllipsis = false;
25
- this.endItems = [];
26
- this.midItems = [];
27
- this.startEllipsis = false;
28
- this.startItems = [];
29
- /**
30
- * The accessible label of the pagination component to provide context for screen reader users.
31
- */
32
- this.accessibleLabel = "Pagination Navigation";
33
- /**
34
- * The number of pages displayed adjacent to the current page when using 'complex' type pagination. Accepted values are 0, 1 & 2.
35
- */
36
- this.adjacentPageCount = 1;
37
- /**
38
- * The number of pages displayed as boundary items to the current page when using 'complex' type pagination. Accepted values are 0, 1 & 2.
39
- */
40
- this.boundaryPageCount = 1;
41
- /**
42
- * The default page to display.
43
- */
44
- this.defaultPage = 1;
45
- /**
46
- * If `true`, the pagination will not allow interaction.
47
- */
48
- this.disabled = false;
49
- /**
50
- * If `true`, the current page of the simple pagination will not be displayed.
51
- */
52
- this.hideCurrentPage = false;
53
- /**
54
- * If `true`, the first and last page buttons will not be displayed.
55
- */
56
- this.hideFirstAndLastPageButton = false;
57
- /**
58
- * The label for the pagination item (applicable when simple pagination is being used).
59
- */
60
- this.label = "Page";
61
- /**
62
- * If `true`, the pagination will display as black in the light theme, and white in dark theme.
63
- */
64
- this.monochrome = false;
65
- /**
66
- * Sets the theme color to the dark or light theme color. "inherit" will set the color based on the system settings or ic-theme component.
67
- */
68
- this.theme = "inherit";
69
- /**
70
- * The type of pagination to be used.
71
- */
72
- this.type = "simple";
73
- /**
74
- * The current page displayed by the pagination.
75
- */
76
- this.currentPage = this.defaultPage;
77
- this.handleClickFirst = () => {
78
- this.currentPage = 1;
79
- this.icPageChange.emit({ value: this.currentPage });
80
- };
81
- this.handleClickPrevious = () => {
82
- this.currentPage--;
83
- this.icPageChange.emit({ value: this.currentPage });
84
- };
85
- this.handleClickNext = () => {
86
- this.currentPage++;
87
- this.icPageChange.emit({ value: this.currentPage });
88
- };
89
- this.handleClickLast = () => {
90
- this.currentPage = this.pages;
91
- this.icPageChange.emit({ value: this.currentPage });
92
- };
93
- // button rendering abstracted from component render methods for clarity
94
- this.firstButton = () => {
95
- return (index.h("ic-button", { id: "first-page-button", "aria-label": "Go to first page", theme: this.theme, onClick: this.handleClickFirst, class: "page-button first-last", disabled: this.currentPage === 1 || this.disabled, variant: "icon-tertiary", monochrome: this.theme == "light" || this.theme == "dark", innerHTML: paginationFirstLast }));
96
- };
97
- this.previousButton = () => {
98
- return (index.h("ic-button", { id: "previous-page-button", "aria-label": "Go to previous page", theme: this.theme, onClick: this.handleClickPrevious, class: "page-button next-previous flip", disabled: this.currentPage === 1 || this.disabled, variant: "icon-tertiary", monochrome: this.theme == "light" || this.theme == "dark", innerHTML: paginationNextPrevious }));
99
- };
100
- this.nextButton = () => {
101
- return (index.h("ic-button", { id: "next-page-button", "aria-label": "Go to next page", theme: this.theme, onClick: this.handleClickNext, class: "page-button next-previous", disabled: this.currentPage === this.pages || this.disabled, variant: "icon-tertiary", monochrome: this.theme == "light" || this.theme == "dark", innerHTML: paginationNextPrevious }));
102
- };
103
- this.lastButton = () => {
104
- return (index.h("ic-button", { id: "last-page-button", "aria-label": "Go to last page", theme: this.theme, onClick: this.handleClickLast, class: "page-button first-last flip", disabled: this.currentPage === this.pages || this.disabled, variant: "icon-tertiary", monochrome: this.theme == "light" || this.theme == "dark", innerHTML: paginationFirstLast }));
105
- };
106
- this.renderStartEllipsis = () => {
107
- return (index.h("ic-pagination-item", { theme: this.theme, monochrome: this.monochrome, type: "ellipsis", id: "start-ellipsis", disabled: this.disabled }));
108
- };
109
- this.renderEndEllipsis = () => {
110
- return (index.h("ic-pagination-item", { theme: this.theme, monochrome: this.monochrome, type: "ellipsis", id: "end-ellipsis", disabled: this.disabled }));
111
- };
112
- this.renderStartItems = () => {
113
- return this.startItems.map((page) => {
114
- return (index.h("ic-pagination-item", { theme: this.theme, monochrome: this.monochrome, selected: page === this.currentPage, id: `pagination-item-${page}`, type: "page", page: page, disabled: this.disabled }));
115
- });
116
- };
117
- this.renderEndItems = () => {
118
- return this.endItems.map((page) => {
119
- return (index.h("ic-pagination-item", { theme: this.theme, monochrome: this.monochrome, selected: page === this.currentPage, id: `pagination-item-${page}`, type: "page", page: page, disabled: this.disabled }));
120
- });
121
- };
122
- this.renderMiddleItems = () => {
123
- return this.midItems.map((page) => {
124
- return (index.h("ic-pagination-item", { theme: this.theme, monochrome: this.monochrome, selected: page === this.currentPage, id: `pagination-item-${page}`, type: "page", page: page, disabled: this.disabled }));
125
- });
126
- };
127
- }
128
- watchAdjacentPageCountHandler() {
129
- if (this.adjacentPageCount > 2) {
130
- this.adjacentPageCount = 2;
131
- }
132
- }
133
- watchBoundaryPageCountHandler() {
134
- if (this.boundaryPageCount > 2) {
135
- this.boundaryPageCount = 2;
136
- }
137
- }
138
- watchDisabledHandler() {
139
- helpers.removeDisabledFalse(this.disabled, this.el);
140
- }
141
- watchNumberPagesHandler() {
142
- this.watchPageChangeHandler();
143
- }
144
- watchTypeHandler() {
145
- this.watchPageChangeHandler();
146
- }
147
- watchPageChangeHandler() {
148
- if (this.type === "simple") {
149
- return;
150
- }
151
- this.startEllipsis = false;
152
- this.endEllipsis = false;
153
- this.startItems = [];
154
- this.endItems = [];
155
- this.midItems = [];
156
- const startItems = [];
157
- let startItemCount = 0;
158
- const endItems = [];
159
- let endStart = this.pages;
160
- const midItems = [];
161
- let midStart;
162
- let midEnd;
163
- let startEllipsis = false;
164
- let endEllipsis = false;
165
- if (this.pages <=
166
- this.boundaryPageCount * 2 + this.adjacentPageCount * 2 + 3) {
167
- this.startEllipsis = false;
168
- this.endEllipsis = false;
169
- for (let i = 1; i <= this.pages; i++) {
170
- startItems.push(i);
171
- }
172
- this.startItems = startItems;
173
- return;
174
- }
175
- startItemCount = this.boundaryPageCount === 0 ? 1 : this.boundaryPageCount;
176
- endStart =
177
- this.boundaryPageCount === 0
178
- ? this.pages
179
- : this.pages - this.boundaryPageCount + 1;
180
- if (this.currentPage <=
181
- this.adjacentPageCount + this.boundaryPageCount + 2) {
182
- startEllipsis = false;
183
- endEllipsis = true;
184
- let numItems = 2 * this.adjacentPageCount + 1;
185
- if (this.boundaryPageCount === 0) {
186
- numItems--;
187
- }
188
- midStart = startItemCount + 1;
189
- midEnd = midStart + numItems;
190
- }
191
- else {
192
- startEllipsis = true;
193
- if (this.currentPage >
194
- this.pages - (this.adjacentPageCount + this.boundaryPageCount + 2)) {
195
- let numItems = 2 * this.adjacentPageCount + 1;
196
- if (this.boundaryPageCount === 0) {
197
- numItems--;
198
- }
199
- midEnd =
200
- this.boundaryPageCount === 0
201
- ? this.pages - 1
202
- : this.pages - this.boundaryPageCount;
203
- midStart = midEnd - numItems;
204
- }
205
- else {
206
- endEllipsis = true;
207
- midStart = this.currentPage - this.adjacentPageCount;
208
- midEnd = this.currentPage + this.adjacentPageCount;
209
- }
210
- }
211
- //create array of start items
212
- if (this.boundaryPageCount > 0 ||
213
- (this.boundaryPageCount === 0 && startEllipsis === false)) {
214
- for (let i = 1; i <= startItemCount; i++) {
215
- startItems.push(i);
216
- }
217
- }
218
- //create array of end items
219
- if (this.boundaryPageCount > 0 ||
220
- (this.boundaryPageCount === 0 && endEllipsis === false)) {
221
- for (let i = endStart; i <= this.pages; i++) {
222
- endItems.push(i);
223
- }
224
- }
225
- //create array of mid items
226
- for (let i = midStart; i <= midEnd; i++) {
227
- midItems.push(i);
228
- }
229
- this.startEllipsis = startEllipsis;
230
- this.endEllipsis = endEllipsis;
231
- this.startItems = startItems;
232
- this.endItems = endItems;
233
- this.midItems = midItems;
234
- }
235
- componentWillLoad() {
236
- this.watchPageChangeHandler();
237
- this.watchBoundaryPageCountHandler();
238
- this.watchAdjacentPageCountHandler();
239
- helpers.removeDisabledFalse(this.disabled, this.el);
240
- }
241
- componentDidLoad() {
242
- helpers.onComponentRequiredPropUndefined([{ prop: this.pages, propName: "pages" }], "Pagination");
243
- }
244
- paginationItemClickHandler(ev) {
245
- const page = ev.detail.page;
246
- this.currentPage = page;
247
- this.icPageChange.emit({ value: this.currentPage });
248
- }
249
- /**
250
- * Sets the currently displayed page.
251
- * @param {number} page The page number to set as the current page
252
- */
253
- async setCurrentPage(page) {
254
- if (typeof page === "number" && page > 0 && page <= this.pages) {
255
- this.currentPage = page;
256
- }
257
- else {
258
- console.error("Current page must be a number greater than zero but less than or equal to the total number of pages");
259
- }
260
- }
261
- render() {
262
- const { type, currentPage, hideCurrentPage, disabled, hideFirstAndLastPageButton, label, theme, monochrome, } = this;
263
- return (index.h(index.Host, { key: '206014fa2aa2c61bb9535e4de4fa5bf756bd318c', class: {
264
- [`ic-theme-${theme}`]: theme !== "inherit",
265
- ["ic-pagination-monochrome"]: !!monochrome,
266
- } }, type === "simple" && (index.h("nav", { key: '8544b88d593c806867e0bd49cb0624a684dec271', class: {
267
- ["disabled"]: !!disabled,
268
- }, role: "navigation", "aria-label": this.accessibleLabel }, hideFirstAndLastPageButton ? null : this.firstButton(), this.previousButton(), index.h("ic-pagination-item", { key: '5331aca30709281171cf19f17c2f05a0d0cdf168', theme: this.theme, monochrome: this.monochrome, type: "simple-current", page: currentPage, label: label, class: { ["hide-current-page"]: !!hideCurrentPage }, disabled: disabled }), this.nextButton(), hideFirstAndLastPageButton ? null : this.lastButton())), type === "complex" && (index.h("nav", { key: '6b7acef9da08b590b941a7ce142ce448dbf79ff2', class: {
269
- ["disabled"]: !!disabled,
270
- }, role: "navigation", "aria-label": this.accessibleLabel }, hideFirstAndLastPageButton ? null : this.firstButton(), this.previousButton(), this.renderStartItems(), this.startEllipsis && this.renderStartEllipsis(), this.renderMiddleItems(), this.endEllipsis && this.renderEndEllipsis(), this.renderEndItems(), this.nextButton(), hideFirstAndLastPageButton ? null : this.lastButton())), type === "complex" && (index.h("span", { key: 'e60f3fb36b78e7970f14836295efbd3a1f481885', class: "sr-only", "aria-live": "polite" }, "Page ", this.currentPage))));
271
- }
272
- get el() { return index.getElement(this); }
273
- static get watchers() { return {
274
- "adjacentPageCount": ["watchAdjacentPageCountHandler"],
275
- "boundaryPageCount": ["watchBoundaryPageCountHandler"],
276
- "disabled": ["watchDisabledHandler"],
277
- "pages": ["watchNumberPagesHandler"],
278
- "type": ["watchTypeHandler"],
279
- "currentPage": ["watchPageChangeHandler"]
280
- }; }
281
- };
282
- Pagination.style = IcPaginationStyle0;
283
-
284
- const icPaginationItemCss = "/*! 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}a{text-align:center}.item-container{display:flex;justify-content:center;align-items:center;width:calc(var(--ic-space-xl) + var(--ic-space-sm));height:var(--ic-space-xl);margin:var(--ic-space-xxs) var(--ic-space-xxxs);cursor:pointer;text-decoration:none}button{background:none;border:none;outline:inherit;position:relative}.ellipsis{pointer-events:none;--ic-typography-color:var(--ic-pagination-ellipsis)}.monochrome .ellipsis{--ic-typography-color:var(--ic-pagination-ellipsis-monochrome)}.item-container:focus{box-shadow:var(--ic-border-focus);outline:var(--ic-hc-focus-outline);border-radius:var(--ic-border-radius);transition:var(--ic-easing-transition-fast)}.page{--ic-typography-color:var(--ic-pagination-page-number)}.monochrome .page{--ic-typography-color:var(--ic-pagination-page-number-monochrome)}.simple-current{min-width:calc(var(--ic-space-xxl) + var(--ic-space-md));height:var(--ic-space-lg);cursor:default}.item-container.page:hover:not(.selected):not(:focus){border-radius:var(--ic-border-radius);background-color:var(--ic-pagination-hover)}.item-container.page:active:not(.selected):not(:focus){background-color:var(--ic-pagination-pressed)}.monochrome .item-container.page:hover:not(.selected):not(:focus){background-color:var(--ic-pagination-hover-monochrome)}.monochrome .item-container.page:active:not(.selected):not(:focus){background-color:var(--ic-pagination-pressed-monochrome)}.selected{pointer-events:none;outline:none}.selected::after{content:\"\";height:var(--ic-space-xxs);width:100%;position:absolute;bottom:0;background-color:var(--ic-pagination-selected-banner)}.monochrome .selected::after{background-color:var(--ic-pagination-selected-banner-monochrome)}.page-selected{--ic-typography-color:var(--ic-pagination-text)}.item-container.page.light:hover:not(.selected):not(:focus){background-color:var(--ic-action-light-bg-hover)}.item-container.page.light:active:not(.selected):not(:focus){background-color:var(--ic-action-light-bg-pressed)}ic-typography.light,ic-typography.page-selected.light{--ic-typography-color:var(--ic-architectural-white)}.selected.light::after{content:\"\";height:var(--ic-space-xxs);width:100%;position:absolute;bottom:0;background-color:var(--ic-action-monochrome)}.item-container.page.dark:hover:not(.selected):not(:focus){background-color:var(--ic-action-dark-bg-hover)}.item-container.page.dark:active:not(.selected):not(:focus){background-color:var(--ic-action-dark-bg-pressed)}ic-typography.dark{--ic-typography-color:var(--ic-color-text-primary)}.selected.dark::after{content:\"\";height:var(--ic-space-xxs);width:100%;position:absolute;bottom:0;background-color:var(--ic-action-monochrome-dark)}.disabled{--ic-typography-color:var(--ic-pagination-text-disabled);pointer-events:none;cursor:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.disabled.page ic-typography{--ic-typography-color:var(--ic-pagination-page-number-disabled)}.disabled.ellipsis{--ic-typography-color:var(--ic-pagination-ellipsis-disabled)}.monochrome .disabled.page{--ic-typography-color:var(--ic-pagination-page-number-monochrome-disabled)}.monochrome .disabled.ellipsis{--ic-typography-color:var(--ic-pagination-ellipsis-monochrome-disabled)}@media (forced-colors: active){.selected::after{background-color:Highlight}.selected.light::after{background-color:Highlight}.selected.dark::after{background-color:Highlight}.disabled{--ic-typography-color:GrayText}}";
285
- const IcPaginationItemStyle0 = icPaginationItemCss;
286
-
287
- const PaginationItem = class {
288
- constructor(hostRef) {
289
- index.registerInstance(this, hostRef);
290
- this.paginationItemClick = index.createEvent(this, "paginationItemClick", 7);
291
- /**
292
- * If `true`, the pagination item will be disabled.
293
- */
294
- this.disabled = false;
295
- /**
296
- * The label for the pagination item (applicable when simple pagination is being used).
297
- */
298
- this.label = "Page";
299
- /**
300
- * If `true`, the pagination item will display as black in the light theme, and white in dark theme.
301
- */
302
- this.monochrome = false;
303
- /**
304
- * If `true`, the pagination item will be selected.
305
- */
306
- this.selected = false;
307
- /**
308
- * Sets the theme color to the dark or light theme color. "inherit" will set the color based on the system settings or ic-theme component.
309
- */
310
- this.theme = "inherit";
311
- this.handleClick = () => {
312
- this.paginationItemClick.emit({ page: this.page || null });
313
- };
314
- }
315
- watchDisabledHandler() {
316
- helpers.removeDisabledFalse(this.disabled, this.el);
317
- }
318
- watchLabelHandler() {
319
- this.capitalizedLabel = helpers.capitalize(this.label);
320
- }
321
- componentWillLoad() {
322
- this.watchLabelHandler();
323
- helpers.removeDisabledFalse(this.disabled, this.el);
324
- }
325
- render() {
326
- const { page, selected, type, disabled, label, capitalizedLabel, monochrome, } = this;
327
- return (index.h("a", { key: 'c067a0e35e2a92dff8d7f24d135a06a686d74a7d', class: { ["monochrome"]: !!monochrome } }, type === "ellipsis" ? (index.h("div", { class: {
328
- ["item-container"]: true,
329
- ["ellipsis"]: true,
330
- ["disabled"]: !!disabled,
331
- } }, index.h("ic-typography", { variant: "label" }, "..."))) : type === "page" ? (index.h("button", { disabled: disabled, onClick: this.handleClick, tabindex: selected ? "-1" : "0", role: "button", "aria-current": selected && "page", "aria-label": selected ? `${label}: ${page}` : `Go to ${label} ${page}`, class: {
332
- ["selected"]: !disabled && selected,
333
- ["disabled"]: !!disabled,
334
- ["item-container"]: true,
335
- ["page"]: type === "page",
336
- } }, index.h("ic-typography", { variant: "label", class: {
337
- ["page-selected"]: selected,
338
- ["disabled"]: !!disabled,
339
- } }, page))) : (index.h("ic-typography", { "aria-live": "polite", class: {
340
- [`simple-current`]: true,
341
- ["disabled"]: !!disabled,
342
- }, variant: "label" }, capitalizedLabel, " ", page))));
343
- }
344
- get el() { return index.getElement(this); }
345
- static get watchers() { return {
346
- "disabled": ["watchDisabledHandler"],
347
- "label": ["watchLabelHandler"]
348
- }; }
349
- };
350
- PaginationItem.style = IcPaginationItemStyle0;
351
-
352
- const Expand = `<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
353
- <path d="M7 9.5L12 14.5L17 9.5H7Z" fill="currentColor" />
354
- </svg>
355
- `;
356
-
357
- const Clear = `<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
358
- <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" />
359
- </svg>
360
- `;
361
-
362
- const icSelectCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host{display:block;position:relative;--ic-input-label-helpertext-padding:var(--ic-space-xs);--menu-max-height:100px;--border-color:var(--ic-select-field-border);--border-color-hover:var(--ic-select-field-border-hover);--border-color-pressed:var(--ic-select-field-border-pressed);--border-color-disabled:var(--ic-select-field-border-disabled);--border-color-error:var(--ic-select-field-border-error);--border-color-error-hover:var(--ic-select-field-border-error-hover);--border-color-error-pressed:var(--ic-select-field-border-error-pressed);--border-color-success:var(--ic-select-field-border-success);--border-color-success-hover:var(--ic-select-field-border-success-hover);--border-color-success-pressed:var(--ic-select-field-border-success-pressed);--border-color-warning:var(--ic-select-field-border-warning);--border-color-warning-hover:var(--ic-select-field-border-warning-hover);--border-color-warning-pressed:var(--ic-select-field-border-warning-pressed);--ic-input-label-text-color:var(--ic-select-field-label);--ic-input-label-helper-text-color:var(\n --ic-select-input-field-label-subtitle\n );--ic-input-validation-status-text-color:var(--ic-select-state-text);--ic-input-validation-error:var(--ic-select-state-icon-error);--ic-input-validation-warning-icon-color:var(--ic-select-state-icon-warning);--ic-input-validation-success-icon-color:var(--ic-select-state-icon-success);--menu-item-text-color:var(--ic-select-list-option-text);--menu-bg-color:var(--ic-select-list-option-background);--menu-border-color:var(--ic-select-dropdown-list-border)}:host(.ic-select-disabled){--ic-input-label-text-color:var(--ic-select-field-label-disabled);--ic-input-label-helper-text-color:var(\n --ic-select-input-field-label-subtitle-disabled\n )}:host(.ic-select-full-width){width:100%}ic-input-component-container.menu-open{--border-color:var(--ic-select-field-border-pressed)}ic-input-validation .status-icon,ic-input-validation .statustext{visibility:visible}ic-input-validation.menu-open .status-icon,ic-input-validation.menu-open .statustext{visibility:hidden;transition:visibility 0s}ic-input-label{margin-bottom:var(--ic-space-xs)}select{border:0;border-radius:var(--ic-border-radius);background-color:var(--ic-select-field-background);color:var(--ic-select-content-text);line-height:1.5rem;letter-spacing:0.005rem;width:100%;height:100%;padding-left:0.375rem;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-repeat:no-repeat;background-position:right 0.375rem center;background-image:var(--ic-select-mobile-dropdown-icon);caret-color:var(--ic-select-input-field-text-cursor)}select option,.select-option-selected{color:var(--ic-select-list-option-text)}select:disabled{color:var(--ic-select-content-text-disabled);background-image:var(--ic-select-mobile-dropdown-icon-disabled)}select:focus{border:0;outline:0}select:not([disabled]){cursor:pointer}.select-container{width:100%;display:flex;align-items:center;position:relative}.select-input{width:100%;height:100%;padding:0 0.375rem;display:flex;cursor:pointer;align-items:center;justify-content:space-between;background:none;border:none;background-color:var(--ic-select-field-background);color:var(--ic-select-content-text)}.select-input:focus{outline:none}.select-input[disabled]{pointer-events:none}:host(.ic-select-searchable) .select-input{cursor:auto}.select-input.with-clear-button{padding-right:0}.value-text{max-width:calc(100% - (var(--ic-space-lg) + var(--ic-space-xxs)));box-sizing:border-box;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;margin-bottom:0 !important}.value-text.with-clear-button{padding-right:calc(var(--ic-space-xl) + var(--ic-space-xs))}.searchable-select-container{align-items:center;display:flex;width:100%;position:relative}.expand-icon{height:var(--ic-space-lg);padding-left:var(--ic-space-xxs);color:var(--ic-select-expand-icon-color)}.expand-icon>svg{display:inline-block;width:var(--ic-space-lg);height:var(--ic-space-lg)}:host(.ic-select-disabled) .expand-icon,:host(.ic-select-disabled) .expand-icon>svg>path{color:var(--ic-select-disabled-expand-icon-color)}:host(.ic-select-searchable) .expand-icon{padding-left:0;height:2.25rem}:host(.ic-select-searchable) .expand-icon>svg{height:2.25rem;padding:0 calc(var(--ic-space-xxxs) + var(--ic-space-xxs)) 0\n var(--ic-space-xxs)}:host(.ic-select-searchable:not(.ic-select-disabled)) .expand-icon>svg{cursor:pointer}.expand-icon-open{color:var(--ic-select-expand-icon-color)}.expand-icon-open,:host(.ic-select-searchable) .expand-icon-open{transform:rotateX(180deg)}.placeholder{color:var(--ic-select-content-placeholder-text)}:host(.ic-select-disabled.ic-select-searchable) .select-input::-moz-placeholder{color:var(--ic-select-content-text-disabled)}:host(.ic-select-disabled) .value-text,:host(.ic-select-disabled) .select-input,:host(.ic-select-disabled) .placeholder,:host(.ic-select-disabled.ic-select-searchable) .select-input::placeholder{color:var(--ic-select-content-text-disabled)}.select-input-end{display:flex;align-items:center}.clear-button-container{display:flex;align-items:center}.divider{width:var(--ic-space-1px);background-color:var(--ic-select-content-divider);margin:var(--ic-space-xxs) 0;border-radius:var(--ic-space-1px);height:var(--ic-space-lg)}:host(.ic-select-small) .divider{height:var(--ic-space-md)}:host(.ic-select-large) .divider{height:var(--ic-space-xl)}.clear-button{color:var(--ic-select-clear-button);position:absolute;right:calc(var(--ic-space-xl) + var(--ic-space-xxs) - var(--ic-space-1px));border-radius:var(--ic-border-radius);transition:box-shadow var(--ic-easing-transition),\n border-radius var(--ic-easing-transition)}.clear-button:focus,.clear-button:active{background-color:var(--ic-color-focus-inner);box-shadow:inset 0 0 0 0.125rem var(--ic-color-focus-outer);border-radius:0.25rem}.clear-button:focus,.clear-button:active *{fill:var(--ic-atoms-input-clear-button-focus)}.clear-button.searchable{position:static}.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)}::slotted([slot=\"icon\"]){fill:var(--ic-select-content-placeholder-text)}.has-value ::slotted([slot=\"icon\"]){fill:var(--ic-select-content-text)}.readonly ::slotted([slot=\"icon\"]){padding:0.375rem;margin-bottom:0.75rem}@media (forced-colors: active){.has-value ::slotted([slot=\"icon\"]){fill:currentcolor}}";
363
- const IcSelectStyle0 = icSelectCss;
364
-
365
- let inputIds$1 = 0;
366
- const MUTABLE_ATTRIBUTES$1 = [...helpers.IC_INHERITED_ARIA, "tabindex", "title"];
367
- const Select = class {
368
- constructor(hostRef) {
369
- index.registerInstance(this, hostRef);
370
- this.icBlur = index.createEvent(this, "icBlur", 7);
371
- this.icChange = index.createEvent(this, "icChange", 7);
372
- this.icClear = index.createEvent(this, "icClear", 7);
373
- this.icClose = index.createEvent(this, "icClose", 7);
374
- this.icFocus = index.createEvent(this, "icFocus", 7);
375
- this.icInput = index.createEvent(this, "icInput", 7);
376
- this.icOpen = index.createEvent(this, "icOpen", 7);
377
- this.icOptionSelect = index.createEvent(this, "icOptionSelect", 7);
378
- this.icOptionDeselect = index.createEvent(this, "icOptionDeselect", 7);
379
- this.icRetryLoad = index.createEvent(this, "icRetryLoad", 7);
380
- this.blurredBecauseButtonPressed = false;
381
- this.hasSetDefaultValue = false;
382
- this.hasTimedOut = false;
383
- this.inheritedAttributes = {};
384
- this.initialOptionsEmpty = false;
385
- this.inputId = `ic-select-input-${inputIds$1++}`;
386
- this.menuId = `${this.inputId}-menu`;
387
- this.retryButtonClick = false;
388
- this.searchableMenuItemSelected = false;
389
- this.ungroupedOptions = [];
390
- this.hostMutationObserver = null;
391
- this.clearButtonFocused = false;
392
- this.noOptions = null;
393
- this.open = false;
394
- this.pressedCharacters = "";
395
- this.searchableSelectInputValue = null;
396
- /**
397
- * If `true`, the disabled state will be set.
398
- */
399
- this.disabled = false;
400
- /**
401
- * If `true`, the built in filtering will be disabled for a searchable variant. For example, if options will already be filtered from external source.
402
- */
403
- this.disableAutoFiltering = false;
404
- /**
405
- * The text displayed when there are no options in the option list.
406
- */
407
- this.emptyOptionListText = "No results found";
408
- /**
409
- * If `true`, the select will fill the width of the container.
410
- */
411
- this.fullWidth = false;
412
- /**
413
- * The helper text that will be displayed for additional field guidance.
414
- */
415
- this.helperText = "";
416
- /**
417
- * If `true`, the label will be hidden and the required label value will be applied as an aria-label.
418
- */
419
- this.hideLabel = false;
420
- /**
421
- * If `true`, descriptions of options will be included when filtering options in a searchable select. Only applies to built in filtering.
422
- */
423
- this.includeDescriptionsInSearch = false;
424
- /**
425
- * If `true`, group titles of grouped options will be included when filtering options in a searchable select. Only applies to built in filtering.
426
- */
427
- this.includeGroupTitlesInSearch = false;
428
- /**
429
- * The message displayed when external loading times out.
430
- */
431
- this.loadingErrorLabel = "Loading Error";
432
- /**
433
- * The message displayed whilst the options are being loaded externally.
434
- */
435
- this.loadingLabel = "Loading...";
436
- /**
437
- * If `true`, multiple options can be selected.
438
- */
439
- this.multiple = false;
440
- /**
441
- * The name of the control, which is submitted with the form data.
442
- */
443
- this.name = this.inputId;
444
- /**
445
- * The placeholder value to be displayed.
446
- */
447
- this.placeholder = "Select an option";
448
- /**
449
- * If `true`, the readonly state will be set.
450
- */
451
- this.readonly = false;
452
- /**
453
- * If `true`, the select will require a value.
454
- */
455
- this.required = false;
456
- /**
457
- * If `true`, a searchable variant of the select will be displayed which can be typed in to filter options. This functionality is only available on the single-select variant of the select component.
458
- */
459
- this.searchable = false;
460
- /**
461
- * Whether the search string of the searchable select should match the start of or anywhere in the options. Only applies to built in filtering.
462
- */
463
- this.searchMatchPosition = "anywhere";
464
- /**
465
- * If `true`, the icOptionSelect event will be fired on enter instead of ArrowUp and ArrowDown on the single select.
466
- */
467
- this.selectOnEnter = false;
468
- /**
469
- * If `true`, a button which clears the select input when clicked will be displayed. The button will always appear on the searchable select.
470
- */
471
- this.showClearButton = false;
472
- /**
473
- * The size of the select.
474
- */
475
- this.size = "medium";
476
- /**
477
- * Sets the theme color to the dark or light theme color. "inherit" will set the color based on the system settings or ic-theme component.
478
- */
479
- this.theme = "inherit";
480
- /**
481
- * The value of the `aria-live` attribute on the validation message.
482
- */
483
- this.validationAriaLive = "polite";
484
- /**
485
- * The validation status - e.g. 'error' | 'warning' | 'success'.
486
- */
487
- this.validationStatus = "";
488
- /**
489
- * The text to display as the validation message.
490
- */
491
- this.validationText = "";
492
- /**
493
- * If `true`, the loading state will be triggered when fetching options asynchronously.
494
- */
495
- this.loading = false;
496
- /**
497
- * The possible selection options.
498
- */
499
- this.options = [];
500
- this.filteredOptions = this.options;
501
- this.uniqueOptions = this.options;
502
- /**
503
- * The amount of time, in milliseconds, to wait to trigger the `icInput` event after each keystroke.
504
- */
505
- this.debounce = 0;
506
- this.currDebounce = this.debounce;
507
- /**
508
- * The value of the select, reflected by the value of the currently selected option.
509
- * For the searchable variant, the value is also reflected by the user input.
510
- * For the multi-select variant, the value must be an array of option values.
511
- */
512
- this.value = null;
513
- this.initialValue = this.value;
514
- this.inputValueToFilter = this.value;
515
- // triggered when attributes of host element change
516
- this.hostMutationCallback = (mutationList) => {
517
- let forceComponentUpdate = false;
518
- mutationList.forEach(({ attributeName, type, addedNodes, removedNodes }) => {
519
- if (attributeName) {
520
- const attribute = this.el.getAttribute(attributeName);
521
- if (attribute && MUTABLE_ATTRIBUTES$1.includes(attributeName)) {
522
- this.inheritedAttributes[attributeName] = attribute;
523
- forceComponentUpdate = true;
524
- }
525
- }
526
- else if (type === "childList") {
527
- forceComponentUpdate = helpers.checkSlotInChildMutations(addedNodes, removedNodes, "icon");
528
- }
529
- });
530
- if (forceComponentUpdate) {
531
- index.forceUpdate(this);
532
- }
533
- };
534
- this.handleRetry = (ev) => {
535
- var _a;
536
- if (ev.detail.keyPressed)
537
- (_a = this.searchableSelectElement) === null || _a === void 0 ? void 0 : _a.focus();
538
- this.blurredBecauseButtonPressed = true;
539
- this.retryButtonClick = true;
540
- this.hasSetDefaultValue = true;
541
- this.icRetryLoad.emit({
542
- value: this.searchable
543
- ? this.searchableSelectInputValue
544
- : this.hiddenInputValue,
545
- });
546
- };
547
- this.emitIcChange = (value) => {
548
- // If "Select all" button clicked, replace value with new value (array of all option values)
549
- if (this.multiple && !Array.isArray(value) && value !== null) {
550
- // Update selected options - adds / removes them, in order of option list
551
- // Create new array if value prop is undefined
552
- if (this.value) {
553
- let valueArray = this.value.slice();
554
- if (this.value.includes(value)) {
555
- valueArray.splice(valueArray.indexOf(value), 1);
556
- }
557
- else {
558
- valueArray.push(value);
559
- valueArray = this.getValueSortedByOptions(valueArray);
560
- }
561
- this.value = valueArray.length === 0 ? null : valueArray;
562
- }
563
- else {
564
- this.value = [value];
565
- }
566
- }
567
- else {
568
- this.value = value;
569
- }
570
- this.icChange.emit({ value: this.multiple ? this.value : value });
571
- };
572
- this.emitIcInput = (value) => {
573
- clearTimeout(this.debounceIcInput);
574
- this.debounceIcInput = window.setTimeout(() => this.icInput.emit({ value }), this.currDebounce);
575
- };
576
- this.setOptions = () => {
577
- if (!this.hasTimedOut && this.options !== this.noOptions) {
578
- this.loading = false;
579
- clearTimeout(this.timeoutTimer);
580
- if (this.options.length > 0) {
581
- this.setOptionsValuesFromLabels();
582
- this.uniqueOptions = this.deduplicateOptions(this.options);
583
- }
584
- else {
585
- this.noOptions = [{ label: this.emptyOptionListText, value: "" }];
586
- this.uniqueOptions = this.noOptions;
587
- }
588
- this.filteredOptions = this.uniqueOptions;
589
- if (this.isExternalFiltering()) {
590
- // When searchable select
591
- this.noOptions = null;
592
- this.updateSearchableSelectResultAriaLive();
593
- this.setDefaultValue();
594
- }
595
- else if (this.initialOptionsEmpty) {
596
- this.setDefaultValue();
597
- this.initialOptionsEmpty = false;
598
- }
599
- }
600
- else if (!this.searchable) {
601
- this.options = this.noOptions || [];
602
- }
603
- };
604
- /**
605
- * Processes the provided array of IcMenuOptions, removing duplicates and reporting them with a console.warn
606
- * @param options array of IcMenuOptions
607
- * @returns a new options object, with all entries possessing a duplicate 'value' field removed
608
- */
609
- this.deduplicateOptions = (options) => {
610
- const uniqueValues = [];
611
- const dedupedOptions = [];
612
- options.forEach((option) => {
613
- if (option.children) {
614
- //If an option has children, we will loop through them
615
- const dedupedChildren = [];
616
- option.children.forEach((child) => {
617
- if (uniqueValues.includes(child.value)) {
618
- console.warn(`ic-select with label ${this.label} was populated with duplicate option (value: ${child.value}) which has been removed.`);
619
- }
620
- else {
621
- uniqueValues.push(child.value);
622
- dedupedChildren.push(child);
623
- }
624
- });
625
- // construct a modified option, inserting the deduplicated children alongside the original information
626
- dedupedOptions.push(Object.assign(Object.assign({}, option), { children: dedupedChildren }));
627
- }
628
- else {
629
- // If an option does not have children, assess to see if it's value has been included already
630
- if (uniqueValues.includes(option.value)) {
631
- console.warn(`ic-select with label ${this.label} was populated with duplicate option (value: ${option.value}) which has been removed.`);
632
- }
633
- else {
634
- uniqueValues.push(option.value);
635
- dedupedOptions.push(option);
636
- }
637
- }
638
- });
639
- return dedupedOptions;
640
- };
641
- /**
642
- * Loop through options array and for all options with no value, infer it from the label
643
- */
644
- this.setOptionsValuesFromLabels = () => {
645
- if (this.options.length > 0) {
646
- this.options.map((option) => {
647
- if (!option.value) {
648
- option.value = option.label;
649
- }
650
- });
651
- }
652
- };
653
- this.setUngroupedOptions = (event) => {
654
- this.ungroupedOptions = event.detail.options;
655
- };
656
- this.setTextColor = () => {
657
- if (this.nativeSelectElement) {
658
- this.nativeSelectElement.className =
659
- this.nativeSelectElement.selectedIndex === 0
660
- ? "placeholder"
661
- : "select-option-selected";
662
- }
663
- };
664
- this.setMenuChange = (open) => {
665
- if (this.open !== open) {
666
- this.open = open;
667
- }
668
- };
669
- this.getLabelFromValue = (value) => helpers.getLabelFromValue(value, this.uniqueOptions);
670
- this.getMultipleOptionsString = (selectedValues) => selectedValues === null || selectedValues === void 0 ? void 0 : selectedValues.map((value) => this.getLabelFromValue(value)).filter((label) => !!label).join(", ");
671
- this.getFilteredChildMenuOptions = (option) => (Object.assign(Object.assign({}, option), { children: option.children &&
672
- helpers.getFilteredMenuOptions(option.children, this.searchable && !!this.includeDescriptionsInSearch, this.searchable
673
- ? this.searchableSelectInputValue || ""
674
- : this.pressedCharacters, this.searchable ? this.searchMatchPosition : "start") }));
675
- // (For multi-select) get value array, i.e. selected option values, in order they appear in option list
676
- this.getValueSortedByOptions = (value) => {
677
- const valueArray = value;
678
- const valuesFromAllOptions = this.ungroupedOptions.map((option) => option.value);
679
- valueArray.sort((a, b) => valuesFromAllOptions.indexOf(a) - valuesFromAllOptions.indexOf(b));
680
- return valueArray;
681
- };
682
- this.handleNativeSelectChange = () => {
683
- if (this.nativeSelectElement) {
684
- this.icOptionSelect.emit({ value: this.nativeSelectElement.value });
685
- this.emitIcChange(this.nativeSelectElement.value);
686
- }
687
- this.setTextColor();
688
- };
689
- // Handle option select for when a custom input box and menu is rendered
690
- // (rather than native <select> - rendered when viewed on a mobile / tablet screen)
691
- this.handleCustomSelectChange = (event) => {
692
- var _a, _b;
693
- const { value, label, optionId } = event.detail;
694
- if (label === this.emptyOptionListText) {
695
- (_a = this.searchableSelectElement) === null || _a === void 0 ? void 0 : _a.focus();
696
- return;
697
- }
698
- if (this.searchable) {
699
- this.value = value || null;
700
- this.searchableMenuItemSelected = true;
701
- // After editing the input, if selecting the same option as before, set the input value to label again
702
- if (this.value === this.currValue) {
703
- this.searchableSelectInputValue =
704
- this.getLabelFromValue(this.value) || null;
705
- }
706
- this.inputValueToFilter = null;
707
- this.hiddenInputValue =
708
- this.getValueFromLabel(this.searchableSelectInputValue) || null;
709
- }
710
- if (value) {
711
- if (this.multiple && ((_b = this.value) === null || _b === void 0 ? void 0 : _b.includes(value))) {
712
- this.icOptionDeselect.emit({ value });
713
- }
714
- else {
715
- this.icOptionSelect.emit({ value });
716
- }
717
- }
718
- this.ariaActiveDescendant = optionId;
719
- this.emitIcChange(value || null);
720
- };
721
- this.handleSelectAllChange = ({ detail, }) => {
722
- const allValues = this.ungroupedOptions
723
- .filter((option) => !option.disabled)
724
- .map((option) => option.value);
725
- if (detail.select) {
726
- // Only emit icOptionSelect for all values that are newly selected
727
- const unselectedValues = this.value
728
- ? allValues.filter((value) => this.value && !this.value.includes(value))
729
- : allValues;
730
- unselectedValues.forEach((value) => this.icOptionSelect.emit({ value }));
731
- }
732
- else {
733
- // Only emit icOptionDeselect for values that were selected
734
- this.value.forEach((value) => this.icOptionDeselect.emit({ value }));
735
- }
736
- this.emitIcChange(detail.select ? allValues : null);
737
- };
738
- this.handleMenuChange = (event) => {
739
- this.open = event.detail.open;
740
- this.pressedCharacters = "";
741
- if (this.searchable)
742
- this.handleFocusIndicatorDisplay();
743
- };
744
- // clears the debounce delay when navigating the menu with arrow keys etc
745
- // to prevent delay in change event, which should only occur when typing in input
746
- this.handleMenuKeyPress = (ev) => {
747
- ev.cancelBubble = true;
748
- if (!this.multiple) {
749
- this.handleCharacterKeyDown(ev.detail.key);
750
- }
751
- };
752
- this.handleFocusIndicatorDisplay = () => {
753
- var _a;
754
- const focusIndicator = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(".focus-indicator");
755
- if (focusIndicator) {
756
- if (this.open) {
757
- focusIndicator.classList.add("focus-indicator-enabled");
758
- }
759
- else {
760
- focusIndicator.classList.remove("focus-indicator-enabled");
761
- }
762
- }
763
- };
764
- this.handleMouseDown = (event) => {
765
- if (!this.open) {
766
- event.preventDefault();
767
- }
768
- };
769
- this.isExternalFiltering = () => this.searchable && !!this.disableAutoFiltering;
770
- this.handleClick = (event) => {
771
- var _a, _b;
772
- if (!this.open && this.menu) {
773
- if (this.isExternalFiltering()) {
774
- this.menu.options = this.filteredOptions;
775
- }
776
- else if (!this.hasTimedOut &&
777
- !this.loading &&
778
- !((_a = this.noOptions) === null || _a === void 0 ? void 0 : _a.length) &&
779
- (!this.searchable || this.searchableMenuItemSelected)) {
780
- this.noOptions = null;
781
- this.menu.options = this.uniqueOptions;
782
- }
783
- }
784
- if (event.detail !== 0) {
785
- (_b = this.menu) === null || _b === void 0 ? void 0 : _b.handleClickOpen();
786
- }
787
- };
788
- this.handleExpandIconMouseDown = (event) => {
789
- var _a;
790
- if (!this.disabled) {
791
- event.preventDefault();
792
- (_a = this.searchableSelectElement) === null || _a === void 0 ? void 0 : _a.focus();
793
- this.handleClick(event);
794
- }
795
- };
796
- this.handleClear = (event) => {
797
- var _a, _b;
798
- event.stopPropagation();
799
- this.hasTimedOut = false;
800
- clearTimeout(this.timeoutTimer);
801
- this.clearInput();
802
- this.emitIcChange(null);
803
- this.icClear.emit();
804
- if (this.searchable) {
805
- this.hiddenInputValue = null;
806
- (_a = this.searchableSelectElement) === null || _a === void 0 ? void 0 : _a.focus();
807
- }
808
- else {
809
- (_b = this.customSelectElement) === null || _b === void 0 ? void 0 : _b.focus();
810
- }
811
- };
812
- this.handleCharacterKeyDown = (key) => {
813
- // Only close menu when space is pressed if not being used alongside character keys to quickly select options
814
- if (this.open && key === " " && this.pressedCharacters.length === 0) {
815
- this.setMenuChange(false);
816
- }
817
- if (key.length !== 1 || this.searchable) {
818
- this.pressedCharacters = "";
819
- return;
820
- }
821
- window.clearTimeout(this.characterKeyPressTimer);
822
- this.characterKeyPressTimer = window.setTimeout(() => (this.pressedCharacters = ""), 1000);
823
- if (key !== " " || !!this.pressedCharacters) {
824
- this.pressedCharacters += key;
825
- this.handleFilter();
826
- if (!this.noOptions) {
827
- this.emitIcChange(this.filteredOptions[0].value);
828
- }
829
- }
830
- };
831
- this.handleNativeSelectKeyDown = (event) => {
832
- if ((event.key !== "Escape" && event.key !== "Tab") || this.open) {
833
- event.cancelBubble = true;
834
- }
835
- this.handleCharacterKeyDown(event.key);
836
- };
837
- this.handleKeyDown = (event) => {
838
- var _a;
839
- if ((event.key !== "Escape" && event.key !== "Tab") || this.open) {
840
- event.cancelBubble = true;
841
- }
842
- const isArrowKey = event.key === "ArrowDown" || event.key === "ArrowUp";
843
- if (this.menu && !this.open) {
844
- if (this.isExternalFiltering() && (event.key === "Enter" || isArrowKey)) {
845
- this.menu.options = this.filteredOptions;
846
- }
847
- else if (!this.hasTimedOut) {
848
- this.noOptions = null;
849
- this.menu.options = this.uniqueOptions;
850
- }
851
- }
852
- if (this.open && event.key === "Enter") {
853
- this.setMenuChange(false);
854
- }
855
- else {
856
- if (!isArrowKey || this.noOptions === null) {
857
- if (event.key !== " " || this.pressedCharacters.length <= 0) {
858
- // Keyboard events get passed onto ic-menu except in the case of ctrl-a on a searchable select
859
- const isCtrlA = event.key === "a" &&
860
- ((helpers.isMacDevice() && event.metaKey) ||
861
- (!helpers.isMacDevice() && event.ctrlKey));
862
- if (!(this.searchable && isCtrlA)) {
863
- (_a = this.menu) === null || _a === void 0 ? void 0 : _a.handleKeyboardOpen(event);
864
- }
865
- }
866
- if (!this.multiple) {
867
- this.handleCharacterKeyDown(event.key);
868
- }
869
- }
870
- }
871
- };
872
- this.handleClearButtonFocus = () => {
873
- this.clearButtonFocused = true;
874
- };
875
- this.handleClearButtonBlur = (ev) => {
876
- var _a;
877
- const retryButton = (_a = this.menu) === null || _a === void 0 ? void 0 : _a.querySelector("#retry-button");
878
- if ((!this.searchableSelectElement ||
879
- ev.relatedTarget !== this.searchableSelectElement) &&
880
- (!retryButton || ev.relatedTarget !== retryButton)) {
881
- this.setMenuChange(false);
882
- this.handleFocusIndicatorDisplay();
883
- }
884
- this.clearButtonFocused = false;
885
- };
886
- this.handleFilter = () => {
887
- var _a;
888
- const options = this.deduplicateOptions(this.searchable ? [...this.uniqueOptions] : this.ungroupedOptions);
889
- const isGrouped = options.some((option) => !!option.children);
890
- let newFilteredOptions = [];
891
- let menuOptionsFiltered;
892
- if (this.searchable) {
893
- menuOptionsFiltered = helpers.getFilteredMenuOptions(options, !!this.includeDescriptionsInSearch, this.inputValueToFilter || "", this.searchMatchPosition);
894
- this.searchableMenuItemSelected = false;
895
- }
896
- else {
897
- menuOptionsFiltered = helpers.getFilteredMenuOptions(options, false, this.pressedCharacters, "start");
898
- }
899
- if (!isGrouped &&
900
- ((_a = menuOptionsFiltered[0]) === null || _a === void 0 ? void 0 : _a.label) !== this.emptyOptionListText) {
901
- newFilteredOptions = menuOptionsFiltered;
902
- }
903
- else if (isGrouped) {
904
- newFilteredOptions = options.map((option) => this.includeGroupTitlesInSearch &&
905
- menuOptionsFiltered.indexOf(option) !== -1
906
- ? option
907
- : this.getFilteredChildMenuOptions(option));
908
- }
909
- if (newFilteredOptions.length > 0 &&
910
- (!isGrouped ||
911
- newFilteredOptions.some(({ children }) => children && children.length > 0))) {
912
- this.noOptions = null;
913
- this.filteredOptions = newFilteredOptions;
914
- }
915
- else {
916
- this.noOptions = [{ label: this.emptyOptionListText, value: "" }];
917
- this.filteredOptions = this.noOptions;
918
- }
919
- };
920
- /**
921
- * Put the select component into loading state.
922
- * Replace options with the loading message. If timeout is enabled, set the timeout and once passed, replace options with the loading error message
923
- */
924
- this.triggerLoading = () => {
925
- this.hasTimedOut = false;
926
- this.noOptions = [{ label: this.loadingLabel, value: "", loading: true }];
927
- if (this.filteredOptions !== this.noOptions && this.searchable) {
928
- this.filteredOptions = this.noOptions;
929
- }
930
- else if (this.uniqueOptions !== this.noOptions && !this.searchable) {
931
- this.uniqueOptions = this.noOptions;
932
- }
933
- if (this.timeout) {
934
- this.timeoutTimer = window.setTimeout(() => {
935
- this.loading = false;
936
- this.hasTimedOut = true;
937
- this.noOptions = [
938
- { label: this.loadingErrorLabel, value: "", timedOut: true },
939
- ];
940
- this.filteredOptions = this.noOptions;
941
- if (!this.searchable)
942
- this.uniqueOptions = this.noOptions;
943
- }, this.timeout);
944
- }
945
- };
946
- this.getValueFromLabel = (label) => { var _a; return label && ((_a = this.uniqueOptions.find((option) => option.label === label)) === null || _a === void 0 ? void 0 : _a.value); };
947
- this.handleSearchableSelectInput = (event) => {
948
- this.searchableSelectInputValue = event.target.value;
949
- this.emitIcInput(this.searchableSelectInputValue);
950
- // De-select previous selection when input is edited
951
- // Only emit icChange once when editing input
952
- if (this.value != null) {
953
- this.emitIcChange(null);
954
- }
955
- this.hiddenInputValue = null;
956
- this.inputValueToFilter = this.searchableSelectInputValue;
957
- this.setMenuChange(true);
958
- if (!this.disableAutoFiltering) {
959
- this.handleFilter();
960
- clearTimeout(this.debounceAria);
961
- window.setTimeout(() => {
962
- this.updateSearchableSelectResultAriaLive();
963
- }, 800);
964
- }
965
- };
966
- this.updateSearchableSelectResultAriaLive = () => {
967
- var _a;
968
- const searchableSelectResultsStatusEl = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(".searchable-select-results-status");
969
- if (searchableSelectResultsStatusEl) {
970
- searchableSelectResultsStatusEl.innerText =
971
- this.noOptions !== null ? this.emptyOptionListText : "";
972
- }
973
- };
974
- this.updateMultiSelectedCountAriaLive = () => {
975
- var _a, _b;
976
- const multiSelectSelectedCountEl = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(".multi-select-selected-count");
977
- const selectedCount = `${(_b = this.currValue) === null || _b === void 0 ? void 0 : _b.length} of ${helpers.getOptionsWithoutGroupTitlesCount(this.options)} selected`;
978
- if (multiSelectSelectedCountEl &&
979
- multiSelectSelectedCountEl.innerText !== selectedCount) {
980
- multiSelectSelectedCountEl.innerText = selectedCount;
981
- }
982
- };
983
- this.getDefaultValue = (value) => this.getLabelFromValue(value) || null;
984
- this.setDefaultValue = () => {
985
- if (!this.hasSetDefaultValue && this.currValue) {
986
- this.searchableSelectInputValue = this.searchable
987
- ? this.getDefaultValue(this.currValue)
988
- : null;
989
- this.initialValue = this.currValue;
990
- this.hasSetDefaultValue = true;
991
- }
992
- };
993
- this.onFocus = () => {
994
- this.icFocus.emit();
995
- };
996
- this.onBlur = ({ relatedTarget }) => {
997
- var _a;
998
- const target = relatedTarget;
999
- if (target !== null &&
1000
- ((target.tagName === "UL" && target.className.includes("menu")) ||
1001
- (target.tagName === "LI" && target.className.includes("option")))) {
1002
- return;
1003
- }
1004
- const retryButton = (_a = this.menu) === null || _a === void 0 ? void 0 : _a.querySelector("#retry-button");
1005
- if (this.searchable &&
1006
- !!this.menu &&
1007
- target !== this.menu &&
1008
- !Array.from(this.menu.querySelectorAll("[role='option']")).includes(target) &&
1009
- (!this.clearButton || target !== this.clearButton) &&
1010
- (!retryButton || target !== retryButton)) {
1011
- if (!this.retryButtonClick) {
1012
- this.setMenuChange(false);
1013
- // Clear input field on blur when searchable if no option is selected
1014
- if (!this.value) {
1015
- this.clearInput();
1016
- }
1017
- }
1018
- this.handleFocusIndicatorDisplay();
1019
- }
1020
- this.retryButtonClick = false;
1021
- this.icBlur.emit();
1022
- };
1023
- this.onTimeoutBlur = (ev) => {
1024
- if (ev.detail.ev.relatedTarget !==
1025
- this.searchableSelectElement &&
1026
- !this.blurredBecauseButtonPressed) {
1027
- this.setMenuChange(false);
1028
- this.handleFocusIndicatorDisplay();
1029
- this.icBlur.emit();
1030
- }
1031
- this.blurredBecauseButtonPressed = false;
1032
- };
1033
- this.handleFormReset = () => {
1034
- this.value = this.initialValue;
1035
- if (this.searchable) {
1036
- this.searchableSelectInputValue = this.getDefaultValue(this.value);
1037
- this.hiddenInputValue = this.value;
1038
- }
1039
- };
1040
- this.clearInput = () => {
1041
- var _a;
1042
- this.noOptions = null;
1043
- if (this.searchable) {
1044
- (_a = this.searchableSelectElement) === null || _a === void 0 ? void 0 : _a.setAttribute("value", "");
1045
- this.searchableSelectInputValue = null;
1046
- this.filteredOptions = this.uniqueOptions;
1047
- }
1048
- };
1049
- this.renderNativeOption = (option) => (index.h("option", { value: option.value, disabled: option.disabled, selected: option.value === this.currValue }, option.label));
1050
- }
1051
- watchDisabledHandler() {
1052
- helpers.removeDisabledFalse(this.disabled, this.el);
1053
- }
1054
- loadingHandler(newValue) {
1055
- newValue ? this.triggerLoading() : this.setOptions();
1056
- }
1057
- watchOptionsHandler() {
1058
- this.setOptions();
1059
- }
1060
- debounceChangedHandler(newValue) {
1061
- if (this.currDebounce !== newValue) {
1062
- this.currDebounce = newValue;
1063
- }
1064
- }
1065
- valueChangedHandler() {
1066
- if (this.value !== this.currValue) {
1067
- if (this.value && this.multiple) {
1068
- this.currValue = this.getMultipleOptionsString(this.value)
1069
- ? this.getValueSortedByOptions(this.value)
1070
- : null;
1071
- this.updateMultiSelectedCountAriaLive();
1072
- }
1073
- else {
1074
- this.currValue = this.getLabelFromValue(this.value)
1075
- ? this.value
1076
- : null;
1077
- }
1078
- }
1079
- if (this.searchable && this.value) {
1080
- // Only set if value not null - prevents whole input value being cleared when edited
1081
- this.searchableSelectInputValue =
1082
- this.getLabelFromValue(String(this.currValue)) || null;
1083
- }
1084
- }
1085
- openChangedHandler() {
1086
- this.open ? this.icOpen.emit() : this.icClose.emit();
1087
- }
1088
- disconnectedCallback() {
1089
- var _a;
1090
- helpers.removeFormResetListener(this.el, this.handleFormReset);
1091
- (_a = this.hostMutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
1092
- }
1093
- componentWillLoad() {
1094
- const valueInOptions = this.multiple
1095
- ? this.getMultipleOptionsString(this.value)
1096
- : this.getLabelFromValue(this.value);
1097
- this.currValue = valueInOptions ? this.value : null;
1098
- this.inheritedAttributes = helpers.inheritAttributes(this.el, MUTABLE_ATTRIBUTES$1);
1099
- helpers.removeDisabledFalse(this.disabled, this.el);
1100
- this.setOptionsValuesFromLabels();
1101
- helpers.addFormResetListener(this.el, this.handleFormReset);
1102
- if (!this.options.length) {
1103
- this.initialOptionsEmpty = true;
1104
- this.noOptions = [{ label: this.emptyOptionListText, value: "" }];
1105
- this.uniqueOptions = this.noOptions;
1106
- this.filteredOptions = this.noOptions;
1107
- }
1108
- else {
1109
- this.setDefaultValue();
1110
- this.uniqueOptions = this.deduplicateOptions(this.options);
1111
- }
1112
- }
1113
- componentDidLoad() {
1114
- helpers.onComponentRequiredPropUndefined([{ prop: this.label, propName: "label" }], "Select");
1115
- if (this.loading) {
1116
- this.triggerLoading();
1117
- }
1118
- if (this.searchable) {
1119
- this.hiddenInputValue = this.currValue;
1120
- }
1121
- this.hostMutationObserver = new MutationObserver(this.hostMutationCallback);
1122
- this.hostMutationObserver.observe(this.el, {
1123
- attributes: true,
1124
- childList: true,
1125
- });
1126
- }
1127
- componentDidRender() {
1128
- if (this.nativeSelectElement && !this.disabled) {
1129
- this.setTextColor();
1130
- }
1131
- }
1132
- /**
1133
- * Sets focus on the input box.
1134
- */
1135
- async setFocus() {
1136
- if (this.nativeSelectElement) {
1137
- this.nativeSelectElement.focus();
1138
- }
1139
- else if (this.customSelectElement) {
1140
- this.customSelectElement.focus();
1141
- }
1142
- else if (this.searchableSelectElement) {
1143
- this.searchableSelectElement.focus();
1144
- }
1145
- }
1146
- render() {
1147
- var _a, _b, _c, _d;
1148
- const { size, disabled, fullWidth, helperText, hideLabel, label, menuId, multiple, name, options, placeholder, readonly, required, searchable, showClearButton, validationAriaLive, validationStatus, validationText, currValue, theme, hiddenInputValue, open, inputId, searchableSelectInputValue, loading, value, emptyOptionListText, uniqueOptions, selectOnEnter, form, inheritedAttributes, ariaActiveDescendant, hasTimedOut, filteredOptions, clearButtonFocused, } = this;
1149
- // HTML inputs only accept 'string' for their value
1150
- // Does not cause errors when it is a multi-select - sets value correctly, to a comma-separated string
1151
- helpers.renderHiddenInput(this.el, searchable ? hiddenInputValue : currValue, name || inputId, disabled);
1152
- const invalid = `${validationStatus === helpers.IcInformationStatus.Error}`;
1153
- const showValidation = helpers.hasValidationStatus(validationStatus, !!disabled);
1154
- const describedBy = helpers.getInputDescribedByText(this.el, inputId, helperText !== "", showValidation).trim();
1155
- const valueLabelString = multiple
1156
- ? this.getMultipleOptionsString(currValue)
1157
- : this.getLabelFromValue(currValue);
1158
- const isClearable = !disabled &&
1159
- (searchable
1160
- ? !!searchableSelectInputValue
1161
- : !!currValue && !loading && showClearButton);
1162
- return (index.h(index.Host, { key: 'beb04e2fdc2db5765b24622f4d31bfdf36c61ba6', class: {
1163
- "ic-select-disabled": disabled,
1164
- "ic-select-searchable": searchable,
1165
- [`ic-select-${size}`]: size !== "medium",
1166
- "ic-select-full-width": fullWidth,
1167
- [`ic-theme-${theme}`]: theme !== "inherit",
1168
- }, onBlur: this.onBlur }, index.h("ic-input-container", { key: 'e85323a8778251dca9d78ccc76906c7523a8f02a', readonly: readonly }, !hideLabel && (index.h("ic-input-label", { key: '9bd3a6662c29157c323beee7355ec0983a0a83e9', for: inputId, label: label, helperText: helperText, required: required, disabled: disabled, readonly: readonly }, index.h("slot", { key: 'ba0fc93028a2ff25112730a950381a25bee23b54', name: "helper-text", slot: "helper-text" }))), index.h("ic-input-component-container", { key: 'c7d54f4d61bcb41cfbb3c4af1600a783e696121f', ref: (el) => (this.anchorEl = el), class: { "menu-open": open }, size: size, fullWidth: fullWidth, disabled: disabled, readonly: readonly, validationStatus: validationStatus }, helpers.isSlotUsed(this.el, "icon") &&
1169
- !disabled &&
1170
- (!readonly || !!value) && (index.h("span", { key: '891b11b3008d52ac3db2197c372b21a12a9f431e', slot: "left-icon", class: {
1171
- readonly,
1172
- "has-value": !!value,
1173
- } }, index.h("slot", { key: '9fc291a9f0b756bf31331260ea3c313cdecf8fa2', name: "icon" }))), readonly ? (index.h("ic-typography", null, index.h("p", null, valueLabelString))) : helpers.isMobileOrTablet() && !multiple ? (index.h("select", Object.assign({ ref: (el) => (this.nativeSelectElement = el), disabled: disabled, onChange: this.handleNativeSelectChange, required: required, id: inputId, "aria-label": label, "aria-describedby": describedBy, "aria-invalid": invalid, onBlur: this.onBlur, onFocus: this.onFocus, onKeyDown: this.handleNativeSelectKeyDown, form: form }, inheritedAttributes), index.h("option", { value: "", selected: true, disabled: !showClearButton }, placeholder), options.map((option) => option.children ? (index.h("optgroup", { label: option.label }, option.children.map((child) => this.renderNativeOption(child)))) : (this.renderNativeOption(option))))) : searchable ? (index.h("div", { class: "searchable-select-container" }, index.h("input", { class: {
1174
- "value-text": true,
1175
- "select-input": true,
1176
- "with-clear-button": !!searchableSelectInputValue,
1177
- }, role: "combobox", autocomplete: "off", "aria-label": label, "aria-describedby": describedBy, "aria-activedescendant": ariaActiveDescendant, "aria-autocomplete": "list", "aria-expanded": `${open}`, "aria-invalid": invalid, "aria-required": `${required}`, "aria-controls": menuId, ref: (el) => (this.searchableSelectElement = el), id: inputId, value: searchableSelectInputValue || undefined, placeholder: placeholder, disabled: disabled, onInput: this.handleSearchableSelectInput, onClick: this.handleClick, onKeyDown: this.handleKeyDown, onFocus: this.onFocus, onBlur: this.onBlur, form: form }), isClearable && (index.h("div", { class: "clear-button-container" }, index.h("ic-button", { id: "clear-button", ref: (el) => (this.clearButton = el), "aria-label": searchableSelectInputValue &&
1178
- (currValue === null || loading)
1179
- ? "Clear input"
1180
- : "Clear selection", class: "clear-button", innerHTML: Clear, onClick: this.handleClear, onFocus: this.handleClearButtonFocus, onBlur: this.handleClearButtonBlur, size: size, variant: "icon-tertiary", theme: clearButtonFocused ? "light" : "dark" }), index.h("div", { class: "divider" }))), index.h("span", { onMouseDown: this.handleExpandIconMouseDown, class: {
1181
- "expand-icon": true,
1182
- "expand-icon-open": open,
1183
- }, 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", { role: "combobox", class: "select-input", ref: (el) => (this.customSelectElement = el), id: inputId, "aria-label": `${label}, ${(multiple && currValue
1184
- ? `${currValue.length} of ${helpers.getOptionsWithoutGroupTitlesCount(options)} selected, ${valueLabelString}`
1185
- : valueLabelString) || placeholder}`, "aria-describedby": describedBy, "aria-invalid": invalid, "aria-haspopup": "listbox", "aria-expanded": `${open}`, "aria-owns": menuId, "aria-controls": menuId, "aria-required": `${required}`, disabled: disabled, onBlur: this.onBlur, onFocus: this.onFocus, onClick: this.handleClick, onMouseDown: this.handleMouseDown, onKeyDown: this.handleKeyDown }, index.h("ic-typography", { variant: "body", class: {
1186
- "value-text": true,
1187
- "with-clear-button": isClearable,
1188
- placeholder: !loading && multiple
1189
- ? !value || value.length < 1
1190
- : !this.getLabelFromValue(currValue),
1191
- } }, valueLabelString || placeholder), index.h("div", { class: "select-input-end" }, isClearable && index.h("div", { class: "divider" }), index.h("span", { class: {
1192
- "expand-icon": true,
1193
- "expand-icon-open": open,
1194
- }, innerHTML: Expand, "aria-hidden": "true" }))), isClearable && (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-tertiary", theme: clearButtonFocused ? "light" : "dark" }))))), (!helpers.isMobileOrTablet() || multiple) && (index.h("ic-menu", { key: 'b56cf5adc26838ad0f873aa16df8da7fd7b83d22', class: {
1195
- "no-results": loading ||
1196
- hasTimedOut ||
1197
- (searchable &&
1198
- ((_b = (_a = this.filteredOptions) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.label) === emptyOptionListText) ||
1199
- (!searchable &&
1200
- ((_d = (_c = this.uniqueOptions) === null || _c === void 0 ? void 0 : _c[0]) === null || _d === void 0 ? void 0 : _d.label) === emptyOptionListText),
1201
- }, ref: (el) => (this.menu = el), inputEl: searchable
1202
- ? this.searchableSelectElement
1203
- : this.customSelectElement, inputLabel: label, anchorEl: this.anchorEl, size: size, menuId: menuId, open: open, options: searchable ? filteredOptions : uniqueOptions, value: multiple ? currValue : currValue, fullWidth: fullWidth, selectOnEnter: selectOnEnter, onMenuStateChange: this.handleMenuChange, onMenuOptionSelect: this.handleCustomSelectChange, onMenuOptionSelectAll: this.handleSelectAllChange, onMenuKeyPress: this.handleMenuKeyPress, onUngroupedOptionsSet: this.setUngroupedOptions, onRetryButtonClicked: this.handleRetry, parentEl: this.el, onTimeoutBlur: this.onTimeoutBlur, activationType: searchable || multiple || selectOnEnter ? "manual" : "automatic", closeOnSelect: !multiple, multiSelect: multiple ? true : false, searchableSelect: searchable ? true : false })), multiple && (index.h("div", { key: 'c4e7606e119c8658e590716ff02dcaf45f30ae89', "aria-live": "polite", role: "status", class: "multi-select-selected-count" })), index.h("ic-input-validation", { key: 'b74ff136f8b758c400d9c0262a227f2286b301d5', class: {
1204
- "menu-open": open,
1205
- }, ariaLiveMode: validationAriaLive, status: showValidation ? validationStatus : "", message: showValidation ? validationText : "", for: inputId }))));
1206
- }
1207
- static get delegatesFocus() { return true; }
1208
- get el() { return index.getElement(this); }
1209
- static get watchers() { return {
1210
- "disabled": ["watchDisabledHandler"],
1211
- "loading": ["loadingHandler"],
1212
- "options": ["watchOptionsHandler"],
1213
- "debounce": ["debounceChangedHandler"],
1214
- "value": ["valueChangedHandler"],
1215
- "open": ["openChangedHandler"]
1216
- }; }
1217
- };
1218
- Select.style = IcSelectStyle0;
1219
-
1220
- const icTextFieldCss = "/*! 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;--ic-input-label-helpertext-padding:var(--ic-space-xs);--border-color:var(--ic-text-field-border-neutral);--border-color-hover:var(--ic-text-field-border-neutral-hover);--border-color-pressed:var(--ic-text-field-border-neutral-pressed);--border-color-disabled:var(--ic-text-field-border-disabled);--border-color-error:var(--ic-text-field-border-error);--border-color-error-hover:var(--ic-text-field-border-error-hover);--border-color-error-pressed:var(--ic-text-field-border-error-pressed);--border-color-success:var(--ic-text-field-border-success);--border-color-success-hover:var(--ic-text-field-border-success-hover);--border-color-success-pressed:var(--ic-text-field-border-success-pressed);--border-color-warning:var(--ic-text-field-border-warning);--border-color-warning-hover:var(--ic-text-field-border-warning-hover);--border-color-warning-pressed:var(--ic-text-field-border-warning-pressed);--ic-input-label-text-color:var(--ic-text-field-label);--ic-input-label-helper-text-color:var(--ic-text-field-subtitle);--ic-input-validation-status-text-color:var(--ic-text-field-state-text);--ic-input-validation-error:var(--ic-text-field-state-icon-error);--ic-input-validation-warning-icon-color:var(\n --ic-text-field-state-icon-warning\n );--ic-input-validation-success-icon-color:var(\n --ic-text-field-state-icon-success\n );--ic-input-component-container-success-icon-inline-color:var(\n --ic-text-field-state-icon-success\n )}:host(.ic-text-field-disabled){--ic-input-label-text-color:var(--ic-text-field-label-disabled);--ic-input-label-helper-text-color:var(--ic-text-field-subtitle-disabled);--text-field-placeholder-color:var(\n --ic-text-field-text-area-placeholder-text-disabled\n )}:host(.ic-text-field-full-width){width:100%}::-moz-placeholder{color:var(\n --text-field-placeholder-color,\n var(--ic-text-field-placeholder-text)\n );opacity:1}::placeholder{color:var(\n --text-field-placeholder-color,\n var(--ic-text-field-placeholder-text)\n );opacity:1}input,textarea{border:0;border-radius:var(--ic-border-radius);color:var(--text-field-text-color, var(--ic-text-field-text));background-color:var(--input-bg-color, var(--ic-text-field-background));line-height:1.5rem;letter-spacing:0.005rem;width:100%;padding-right:var(--ic-space-xs);padding-left:var(--ic-space-xs);caret-color:var(\n --text-field-typing-cursor,\n var(--ic-text-field-typing-cursor)\n )}textarea{min-height:var(--ic-space-lg);resize:vertical;padding-top:0.375rem}input:focus,textarea:focus{border:0;outline:0}input:disabled,textarea:disabled{color:var(\n --text-field-disabled-text-color,\n var(--ic-text-field-text-disabled)\n )}input.readonly,textarea.readonly{color:var(--ic-text-field-read-only-input-text-internal);background:transparent}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=\"number\"]{-moz-appearance:textfield}textarea.no-resize{resize:none}.char-count-text{--ic-typography-color:var(--ic-text-field-character-limit);padding-right:var(--ic-space-xxxs)}:host(.ic-text-field-disabled) .char-count-text{--ic-typography-color:var(--ic-text-field-character-limit-disabled)}.no-left-pad{padding-left:0}::slotted([slot=\"icon\"]){fill:var(--ic-text-field-text-disabled)}.has-value ::slotted([slot=\"icon\"]){fill:var(--ic-text-field-input-internal-icon)}.char-count{margin-right:calc(-1 * var(--ic-space-xxxs))}.remaining-char-count-desc{position:absolute;left:-9999px}.show-validation{margin-top:var(--ic-space-xs)}input[type=\"search\"]::-webkit-search-cancel-button,input[type=\"search\"]::-webkit-search-decoration,input[type=\"search\"]::-webkit-search-results-button,input[type=\"search\"]::-webkit-search-results-decoration{display:none}input[type=\"search\"].truncate-value{width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}@media (forced-colors: active){input.readonly,textarea.readonly{color:canvastext}.has-value ::slotted([slot=\"icon\"]){fill:currentcolor}}";
1221
- const IcTextFieldStyle0 = icTextFieldCss;
1222
-
1223
- let inputIds = 0;
1224
- const MUTABLE_ATTRIBUTES = [...helpers.IC_INHERITED_ARIA, "title"];
1225
- const TextField = class {
1226
- constructor(hostRef) {
1227
- index.registerInstance(this, hostRef);
1228
- this.getValidationText = index.createEvent(this, "getValidationText", 7);
1229
- this.icBlur = index.createEvent(this, "icBlur", 7);
1230
- this.icChange = index.createEvent(this, "icChange", 7);
1231
- this.icFocus = index.createEvent(this, "icFocus", 7);
1232
- this.icInput = index.createEvent(this, "icInput", 7);
1233
- this.icKeydown = index.createEvent(this, "icKeydown", 7);
1234
- this.icScroll = index.createEvent(this, "icScroll", 7);
1235
- this.inheritedAttributes = {};
1236
- this.hostMutationObserver = null;
1237
- this.numChars = 0;
1238
- this.maxCharactersReached = false;
1239
- this.maxCharactersWarning = false;
1240
- this.minCharactersUnattained = false;
1241
- this.maxValueExceeded = false;
1242
- this.minValueUnattained = false;
1243
- this.isFocussed = false;
1244
- /**
1245
- * The automatic capitalisation of the text value as it is entered/edited by the user.
1246
- * Available options: "off", "none", "on", "sentences", "words", "characters".
1247
- */
1248
- this.autocapitalize = "off";
1249
- /**
1250
- * The state of autocompletion the browser can apply on the text value.
1251
- */
1252
- this.autocomplete = "off";
1253
- /**
1254
- * The state of autocorrection the browser can apply when the user is entering/editing the text value.
1255
- */
1256
- this.autocorrect = "off";
1257
- /**
1258
- * If `true`, the form control will have input focus when the page loads.
1259
- */
1260
- this.autofocus = false;
1261
- /**
1262
- * If `true`, the disabled state will be set.
1263
- */
1264
- this.disabled = false;
1265
- /**
1266
- * Specify whether the text field fills the full width of the container.
1267
- * If `true`, this overrides the --input-width CSS variable.
1268
- */
1269
- this.fullWidth = false;
1270
- /**
1271
- * The helper text that will be displayed for additional field guidance.
1272
- */
1273
- this.helperText = "";
1274
- /**
1275
- * If `true`, the character count which is displayed when `maxCharacters` is set will be visually hidden.
1276
- */
1277
- this.hideCharCount = false;
1278
- /**
1279
- * If `true`, the label will be hidden and the required label value will be applied as an aria-label.
1280
- */
1281
- this.hideLabel = false;
1282
- /**
1283
- * @internal If `true`, the hidden form input will stop rendering for form submission.
1284
- */
1285
- this.hiddenInput = true;
1286
- /**
1287
- * The ID for the input.
1288
- */
1289
- this.inputId = `ic-text-field-input-${inputIds++}`;
1290
- /**
1291
- * A hint to the browser for which keyboard to display.
1292
- * Possible values: `"none"`, `"text"`, `"tel"`, `"url"`,
1293
- * `"email"`, `"numeric"`, `"decimal"`, and `"search"`.
1294
- */
1295
- this.inputmode = "text";
1296
- /**
1297
- * The count of characters in the field. Will display a warning if the bound is reached. (NOTE: If the value of the text field has been set using the `value` prop, it will be truncated to this number of characters)
1298
- */
1299
- this.maxCharacters = 0;
1300
- /**
1301
- * The text to display as the warning message when the maximum number of characters (the `maxCharacters` prop value) is reached.
1302
- */
1303
- // prettier-ignore
1304
- this.maxCharactersMessage = `Maximum input is ${this.maxCharacters} characters`;
1305
- /**
1306
- * The text to display as the error message when the maximum value (the `max` prop value) has been exceeded.
1307
- */
1308
- this.maxMessage = `Maximum value of ${this.max} exceeded`;
1309
- /**
1310
- * The minimum number of characters that can be entered in the field.
1311
- */
1312
- this.minCharacters = 0;
1313
- /**
1314
- * The text to display as the error message when the minimum number of characters (the `minCharacters` prop value) has not been met.
1315
- */
1316
- // prettier-ignore
1317
- this.minCharactersMessage = `Minimum input is ${this.minCharacters} characters`;
1318
- /**
1319
- * The text to display as the error message when the minimum value (the `min` prop value) has not been met.
1320
- */
1321
- this.minMessage = `Minimum value of ${this.min} not met`;
1322
- /**
1323
- * The name of the control, which is submitted with the form data.
1324
- */
1325
- this.name = this.inputId;
1326
- /**
1327
- * The placeholder value to be displayed.
1328
- */
1329
- this.placeholder = "";
1330
- /**
1331
- * If `true`, the read only state will be set.
1332
- */
1333
- this.readonly = false;
1334
- /**
1335
- * If `true`, the input will require a value.
1336
- */
1337
- this.required = false;
1338
- /**
1339
- * If `true`, the multiline text area will be resizeable.
1340
- */
1341
- this.resize = false;
1342
- /**
1343
- * The number of rows to transform the text field into a text area with a specific height.
1344
- */
1345
- this.rows = 1;
1346
- /**
1347
- * The size of the text field component.
1348
- */
1349
- this.size = "medium";
1350
- /**
1351
- * If `true`, the value of the text field will have its spelling and grammar checked.
1352
- */
1353
- this.spellcheck = false;
1354
- /**
1355
- * Sets the theme color to the dark or light theme color. "inherit" will set the color based on the system settings or ic-theme component.
1356
- */
1357
- this.theme = "inherit";
1358
- /**
1359
- * @internal If `true`, an ellipsis will be displayed at the end of the value if the value is longer than the container.
1360
- */
1361
- this.truncateValue = false;
1362
- /**
1363
- * The type of control to display. The default type is text.
1364
- */
1365
- this.type = "text";
1366
- /**
1367
- * The value of the `aria-live` attribute on the validation message. When set to "default", the `aria-live` value will be handled automatically, e.g. "assertive" for `validation-status="error"`.
1368
- */
1369
- this.validationAriaLive = "default";
1370
- /**
1371
- * If `true`, the icon in input control will be displayed - only applies when validationStatus ='success'.
1372
- */
1373
- this.validationInline = false;
1374
- /**
1375
- * @internal If `true`, the validation will display inline.
1376
- */
1377
- this.validationInlineInternal = false;
1378
- /**
1379
- * The validation state - e.g. 'error' | 'warning' | 'success'.
1380
- */
1381
- this.validationStatus = "";
1382
- /**
1383
- * The text to display as the validation message.
1384
- */
1385
- this.validationText = "";
1386
- /**
1387
- * The amount of time, in milliseconds, to wait to trigger the `icChange` event after each keystroke.
1388
- */
1389
- this.debounce = 0;
1390
- /**
1391
- * The value of the text field.
1392
- */
1393
- this.value = "";
1394
- this.initialValue = this.value;
1395
- this.checkChildHydration = () => {
1396
- var _a, _b;
1397
- if (this.hideLabel ||
1398
- ((_b = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector("ic-typography")) === null || _b === void 0 ? void 0 : _b.classList.contains("hydrated"))) {
1399
- this.setFocus();
1400
- clearInterval(this.interval);
1401
- }
1402
- };
1403
- this.getNumberOfCharacters = (value) => value !== null && value !== undefined ? value.length : 0;
1404
- this.getMaxValueExceeded = (value) => {
1405
- this.numChars = this.getNumberOfCharacters(value);
1406
- if (this.type === "number") {
1407
- this.minValueUnattained = !!value && Number(value) < Number(this.min);
1408
- this.maxValueExceeded = Number(value) > Number(this.max);
1409
- }
1410
- };
1411
- this.getMaxCharactersReached = (value) => {
1412
- this.numChars = this.getNumberOfCharacters(value);
1413
- this.maxCharactersReached =
1414
- this.maxCharacters > 0 && this.numChars >= this.maxCharacters;
1415
- if (this.maxCharactersWarning && !this.maxCharactersReached) {
1416
- this.maxCharactersWarning = false;
1417
- }
1418
- };
1419
- this.onInput = (ev) => {
1420
- this.value = ev.target.value;
1421
- this.icInput.emit({ value: this.value });
1422
- };
1423
- this.onBlur = (ev) => {
1424
- const target = ev.target;
1425
- target.removeEventListener("wheel", this.onWheel);
1426
- const { value } = target;
1427
- this.numChars = value.length;
1428
- this.minCharactersUnattained =
1429
- this.minCharacters > 0 && this.numChars < this.minCharacters;
1430
- this.icBlur.emit({ value });
1431
- this.isFocussed = false;
1432
- };
1433
- this.onFocus = (ev) => {
1434
- const target = ev.target;
1435
- target.addEventListener("wheel", this.onWheel);
1436
- this.icFocus.emit({ value: target.value });
1437
- this.isFocussed = true;
1438
- };
1439
- this.onTextAreaScroll = () => {
1440
- this.icScroll.emit();
1441
- };
1442
- this.onWheel = (ev) => {
1443
- const target = ev.target;
1444
- if (target.type === "number") {
1445
- target.blur();
1446
- setTimeout(() => {
1447
- target.focus();
1448
- }, 0);
1449
- }
1450
- };
1451
- this.hasStatus = (status) => status !== "" && !this.disabled;
1452
- this.handleFormReset = () => {
1453
- this.value = this.initialValue;
1454
- };
1455
- this.showValidationMargin = () => {
1456
- const maxNumChars = this.readonly ? 0 : this.maxCharacters;
1457
- const emptyString = helpers.isEmptyString(this.validationStatus) ||
1458
- helpers.isEmptyString(this.validationText);
1459
- const valueOutsideRange = this.minValueUnattained || this.maxValueExceeded;
1460
- const charsOutsideRange = maxNumChars > 0 || this.minCharactersUnattained;
1461
- return ((!emptyString || valueOutsideRange || charsOutsideRange) &&
1462
- !this.validationInlineInternal);
1463
- };
1464
- // triggered when attributes of host element change
1465
- this.hostMutationCallback = (mutationList) => {
1466
- let forceComponentUpdate = false;
1467
- mutationList.forEach(({ attributeName, type, addedNodes, removedNodes }) => {
1468
- if (attributeName && MUTABLE_ATTRIBUTES.includes(attributeName)) {
1469
- const attribute = this.el.getAttribute(attributeName);
1470
- if (attribute) {
1471
- this.inheritedAttributes[attributeName] = attribute;
1472
- }
1473
- forceComponentUpdate = true;
1474
- }
1475
- else if (type === "childList") {
1476
- forceComponentUpdate = helpers.checkSlotInChildMutations(addedNodes, removedNodes, "icon");
1477
- }
1478
- });
1479
- if (forceComponentUpdate) {
1480
- index.forceUpdate(this);
1481
- }
1482
- };
1483
- }
1484
- watchDisabledHandler() {
1485
- helpers.removeDisabledFalse(this.disabled, this.el);
1486
- }
1487
- debounceChanged() {
1488
- this.icChange = helpers.debounceEvent(this.icChange, this.debounce);
1489
- }
1490
- watchValueHandler(newValue) {
1491
- let value;
1492
- if (this.maxCharacters > 0) {
1493
- value = newValue.substring(0, this.maxCharacters);
1494
- if (value.length < newValue.length) {
1495
- this.maxCharactersWarning = true;
1496
- }
1497
- this.value = value;
1498
- }
1499
- else {
1500
- value = newValue;
1501
- }
1502
- if (this.inputEl && this.inputEl.value !== value) {
1503
- this.inputEl.value = value;
1504
- }
1505
- this.getMaxValueExceeded(value);
1506
- this.getMaxCharactersReached(value);
1507
- this.icChange.emit({ value });
1508
- }
1509
- connectedCallback() {
1510
- this.debounceChanged();
1511
- }
1512
- disconnectedCallback() {
1513
- var _a;
1514
- helpers.removeFormResetListener(this.el, this.handleFormReset);
1515
- (_a = this.hostMutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
1516
- }
1517
- componentWillLoad() {
1518
- if (this.value !== this.initialValue) {
1519
- this.watchValueHandler(this.value);
1520
- }
1521
- else if (this.maxCharacters > 0) {
1522
- this.value = this.value.substring(0, this.maxCharacters);
1523
- }
1524
- this.getMaxValueExceeded(this.value);
1525
- this.getMaxCharactersReached(this.value);
1526
- this.inheritedAttributes = helpers.inheritAttributes(this.el, MUTABLE_ATTRIBUTES);
1527
- if (this.readonly) {
1528
- this.maxValueExceeded = false;
1529
- this.minValueUnattained = false;
1530
- }
1531
- helpers.addFormResetListener(this.el, this.handleFormReset);
1532
- helpers.removeDisabledFalse(this.disabled, this.el);
1533
- }
1534
- componentDidLoad() {
1535
- helpers.onComponentRequiredPropUndefined([{ prop: this.label, propName: "label" }], "Text Field");
1536
- if (this.validationInlineInternal) {
1537
- this.getValidationText.emit({ value: this.validationText });
1538
- }
1539
- this.hostMutationObserver = new MutationObserver(this.hostMutationCallback);
1540
- this.hostMutationObserver.observe(this.el, {
1541
- attributes: true,
1542
- childList: true,
1543
- });
1544
- if (this.autofocus && !this.disabled && !this.readonly) {
1545
- this.interval = setInterval(this.checkChildHydration, 50);
1546
- }
1547
- }
1548
- handleKeyDown(ev) {
1549
- var _a, _b;
1550
- this.icKeydown.emit({
1551
- event: ev,
1552
- cursorPosition: (_a = this.inputEl.selectionStart) !== null && _a !== void 0 ? _a : 0,
1553
- selectionEnd: (_b = this.inputEl.selectionEnd) !== null && _b !== void 0 ? _b : 0,
1554
- });
1555
- if (!ev.ctrlKey && !helpers.IGNORED_KEYBOARD_CHARACTERS.includes(ev.key)) {
1556
- this.maxCharactersWarning = this.maxCharactersReached;
1557
- }
1558
- }
1559
- /**
1560
- * Sets focus on the native `input`.
1561
- */
1562
- async setFocus() {
1563
- var _a;
1564
- (_a = this.inputEl) === null || _a === void 0 ? void 0 : _a.focus();
1565
- }
1566
- render() {
1567
- const { inputId, name, label, required, size, placeholder, helperText, hideCharCount, rows, resize, disabled, value, min, max, numChars, readonly, maxCharacters, maxCharactersMessage, maxCharactersWarning, maxCharactersReached, maxMessage, minCharacters, minCharactersMessage, minCharactersUnattained, minMessage, minValueUnattained, maxValueExceeded, validationAriaLive, validationStatus, validationText, validationInline, validationInlineInternal, spellcheck, inputmode, fullWidth, truncateValue, hiddenInput, theme, hideLabel, type, autocapitalize, ariaActiveDescendant, inheritedAttributes, ariaExpanded, ariaOwns, autocomplete, role, isFocussed, } = this;
1568
- const el = this.el;
1569
- const disabledMode = readonly || disabled;
1570
- const currentStatus = maxValueExceeded ||
1571
- minValueUnattained ||
1572
- minCharactersUnattained ||
1573
- maxCharactersWarning
1574
- ? maxCharactersWarning
1575
- ? helpers.IcInformationStatus.Warning
1576
- : helpers.IcInformationStatus.Error
1577
- : validationStatus;
1578
- const currentValidationText = maxCharactersWarning
1579
- ? maxCharactersMessage
1580
- : maxValueExceeded
1581
- ? maxMessage
1582
- : minValueUnattained
1583
- ? minMessage
1584
- : minCharactersUnattained
1585
- ? minCharactersMessage
1586
- : validationText;
1587
- const maxNumChars = readonly ? 0 : maxCharacters;
1588
- const messageAriaLive = validationAriaLive === "default"
1589
- ? maxCharactersWarning ||
1590
- maxValueExceeded ||
1591
- minValueUnattained ||
1592
- currentStatus === helpers.IcInformationStatus.Error
1593
- ? "assertive"
1594
- : "polite"
1595
- : validationAriaLive;
1596
- const showStatusText = this.hasStatus(currentStatus) &&
1597
- !(currentStatus == helpers.IcInformationStatus.Success && validationInline) &&
1598
- !validationInlineInternal;
1599
- const multiline = rows > 1;
1600
- const hiddenCharCountDescId = maxCharacters > 0 ? `${inputId}-char-count-desc` : "";
1601
- const charsRemaining = maxNumChars - numChars;
1602
- const remainingCharCountDescId = maxCharacters > 0 ? `${inputId}-remaining-char-count-desc` : "";
1603
- const remainingCharCountDesc = `${charsRemaining} character${charsRemaining === 1 ? "" : "s"} remaining.`;
1604
- const describedBy = `${helpers.getInputDescribedByText(this.el, inputId, helperText !== "", showStatusText)} ${hiddenCharCountDescId} ${numChars > 0 ? remainingCharCountDescId : ""}`.trim();
1605
- const disabledText = disabledMode && !readonly;
1606
- const showLeftIcon = !!this.el.querySelector(`[slot="icon"]`) && !disabledText;
1607
- const invalid = `${currentStatus === helpers.IcInformationStatus.Error}`;
1608
- hiddenInput
1609
- ? helpers.renderHiddenInput(this.el, value, name, disabledMode)
1610
- : helpers.removeHiddenInput(this.el);
1611
- return (index.h(index.Host, { key: '4a38a5d8bd42f37b2ab1e9f3af485695b6185a8a', class: {
1612
- "ic-text-field-full-width": fullWidth,
1613
- "ic-text-field-disabled": disabledMode,
1614
- [`ic-theme-${theme}`]: theme !== "inherit",
1615
- } }, index.h("ic-input-container", { key: 'a7da6f94bac334322b00b223cfb3462d026fbba1', readonly: readonly, disabled: disabledMode }, !hideLabel && (index.h("ic-input-label", { key: '97a5cc41a79cfc56c3e8e309154cbcc015bbadad', for: inputId, label: label, helperText: helperText, required: required, disabled: disabledText, readonly: readonly }, index.h("slot", { key: 'd9994cb1bb7218712bbed976057a3ca8d9ad3c2b', name: "helper-text", slot: "helper-text" }))), index.h("ic-input-component-container", { key: '0d3a988b563b2f9f2033b52a75f4fd5e27056ba8', size: size, validationStatus: currentStatus, multiLine: multiline, disabled: disabledMode, readonly: readonly, validationInline: validationInline, fullWidth: fullWidth }, showLeftIcon && (index.h("span", { key: '319fa22903ab0b2c2315377abb9f9e7bad15f221', class: {
1616
- readonly,
1617
- "has-value": this.getNumberOfCharacters(value) > 0,
1618
- }, slot: "left-icon" }, index.h("slot", { key: '1224a807133d300df0a6070c998260ece29e8c80', name: "icon" }))), !multiline ? (index.h("input", Object.assign({ id: inputId, name: name, ref: (el) => (this.inputEl = el), type: type, min: min, max: max, value: value, class: {
1619
- "no-left-pad": !showLeftIcon && readonly,
1620
- readonly,
1621
- "truncate-value": truncateValue,
1622
- }, placeholder: placeholder ? placeholder : "", required: required, disabled: disabledMode, readonly: readonly, onInput: this.onInput, onBlur: this.onBlur, onFocus: this.onFocus, "aria-label": label, "aria-describedby": describedBy, "aria-invalid": invalid, "aria-activedescendant": ariaActiveDescendant, "aria-expanded": ariaExpanded, "aria-owns": ariaOwns, autocomplete: autocomplete, autocapitalize: autocapitalize, spellcheck: spellcheck, inputmode: inputmode, role: role || undefined, maxlength: maxCharactersReached ? maxCharacters : undefined, minlength: minCharactersUnattained ? minCharacters : undefined }, inheritedAttributes))) : (index.h("textarea", Object.assign({ id: inputId, class: {
1623
- "no-resize": resize === false || !!readonly,
1624
- "no-left-pad": !showLeftIcon && !!readonly,
1625
- readonly: !!readonly,
1626
- }, name: name, ref: (el) => (this.inputEl = el), value: value, rows: rows, required: required, disabled: disabledMode, placeholder: placeholder, readonly: readonly, onInput: this.onInput, onBlur: this.onBlur, onFocus: this.onFocus, onScroll: this.onTextAreaScroll, "aria-label": label, "aria-describedby": describedBy, "aria-invalid": invalid, autocomplete: autocomplete, autocapitalize: autocapitalize, spellcheck: spellcheck, inputmode: inputmode, maxlength: maxCharactersReached ? maxCharacters : undefined, minlength: minCharactersUnattained ? minCharacters : undefined }, inheritedAttributes))), helpers.isSlotUsed(el, "clear-button") && (index.h("slot", { key: 'e50c8194546e08898e7ef0ed4dd940a881ffd5c4', name: "clear-button" })), helpers.isSlotUsed(el, "search-submit-button") && (index.h("slot", { key: 'e2ba7a0f555593f767ff1c93c4c58b71967da1a7', name: "search-submit-button" }))), helpers.isSlotUsed(el, "menu") && index.h("slot", { key: '7b22fe423951f0f38c5419ff3c35e9f32a72735d', name: "menu" }), index.h("ic-input-validation", { key: '85aec8ebd4633fa36585e3253e1cc8107c374495', class: { "show-validation": this.showValidationMargin() }, status: this.hasStatus(currentStatus) === false ||
1627
- (currentStatus === helpers.IcInformationStatus.Success &&
1628
- validationInline) ||
1629
- validationInlineInternal
1630
- ? ""
1631
- : currentStatus, message: showStatusText ? currentValidationText : "", ariaLiveMode: messageAriaLive, for: inputId, fullWidth: fullWidth }, !readonly && maxNumChars > 0 && (index.h("div", { key: 'f857927758c96f735592e7af679dba91c333fbf1', slot: "validation-message-adornment" }, !hideCharCount && (index.h("ic-typography", { key: 'eed01e87433155c8311c5ef958145d484c65264a', variant: "caption", class: "char-count-text" }, index.h("span", { key: '1752a0a453ed7dd28b909029f847330ffbff406c', class: "char-count" }, numChars, "/", maxNumChars))), index.h("span", { key: 'cd708a611a6133a7cf3b892d8f83cbf592791907', class: "remaining-char-count-desc", "aria-live": "polite", hidden: !isFocussed, id: remainingCharCountDescId }, remainingCharCountDesc), index.h("span", { key: 'ebe5600dece8662d9966667308e79872793b098c', hidden: true, id: hiddenCharCountDescId }, "Field can contain a maximum of ", maxNumChars, " characters.")))))));
1632
- }
1633
- get el() { return index.getElement(this); }
1634
- static get watchers() { return {
1635
- "disabled": ["watchDisabledHandler"],
1636
- "debounce": ["debounceChanged"],
1637
- "value": ["watchValueHandler"]
1638
- }; }
1639
- };
1640
- TextField.style = IcTextFieldStyle0;
1641
-
1642
- exports.ic_pagination = Pagination;
1643
- exports.ic_pagination_item = PaginationItem;
1644
- exports.ic_select = Select;
1645
- exports.ic_text_field = TextField;
1646
-
1647
- //# sourceMappingURL=ic-pagination_4.cjs.entry.js.map