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

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 (554) hide show
  1. package/dist/cjs/core.cjs.js +1 -1
  2. package/dist/cjs/{helpers-f4e7322b.js → helpers-274ac318.js} +30 -32
  3. package/dist/cjs/helpers-274ac318.js.map +1 -0
  4. package/dist/cjs/{helpers-a5405964.js → helpers-da852478.js} +4 -2
  5. package/dist/cjs/helpers-da852478.js.map +1 -0
  6. package/dist/cjs/ic-accordion-group.cjs.entry.js +1 -1
  7. package/dist/cjs/ic-accordion.cjs.entry.js +1 -1
  8. package/dist/cjs/ic-alert.cjs.entry.js +1 -1
  9. package/dist/cjs/ic-back-to-top.cjs.entry.js +1 -1
  10. package/dist/cjs/ic-badge.cjs.entry.js +1 -1
  11. package/dist/cjs/ic-breadcrumb-group.cjs.entry.js +1 -1
  12. package/dist/cjs/ic-breadcrumb.cjs.entry.js +1 -1
  13. package/dist/cjs/ic-button_3.cjs.entry.js +135 -142
  14. package/dist/cjs/ic-button_3.cjs.entry.js.map +1 -1
  15. package/dist/cjs/ic-card-horizontal.cjs.entry.js +1 -1
  16. package/dist/cjs/ic-card-vertical.cjs.entry.js +1 -1
  17. package/dist/cjs/ic-checkbox-group.cjs.entry.js +5 -5
  18. package/dist/cjs/ic-checkbox-group.cjs.entry.js.map +1 -1
  19. package/dist/cjs/ic-checkbox_3.cjs.entry.js +4 -4
  20. package/dist/cjs/ic-checkbox_3.cjs.entry.js.map +1 -1
  21. package/dist/cjs/ic-chip.cjs.entry.js +1 -1
  22. package/dist/cjs/ic-data-list.cjs.entry.js +2 -2
  23. package/dist/cjs/ic-data-list.cjs.entry.js.map +1 -1
  24. package/dist/cjs/ic-data-row.cjs.entry.js +3 -3
  25. package/dist/cjs/ic-data-row.cjs.entry.js.map +1 -1
  26. package/dist/cjs/ic-data-table-title-bar.cjs.entry.js +1 -1
  27. package/dist/cjs/ic-data-table.cjs.entry.js +91 -48
  28. package/dist/cjs/ic-data-table.cjs.entry.js.map +1 -1
  29. package/dist/cjs/ic-date-input.cjs.entry.js +5 -5
  30. package/dist/cjs/ic-date-input.cjs.entry.js.map +1 -1
  31. package/dist/cjs/ic-date-picker.cjs.entry.js +11 -11
  32. package/dist/cjs/ic-date-picker.cjs.entry.js.map +1 -1
  33. package/dist/cjs/ic-dialog.cjs.entry.js +2 -2
  34. package/dist/cjs/ic-dialog.cjs.entry.js.map +1 -1
  35. package/dist/cjs/ic-divider.cjs.entry.js +1 -1
  36. package/dist/cjs/ic-footer-link-group.cjs.entry.js +1 -1
  37. package/dist/cjs/ic-footer-link.cjs.entry.js +3 -3
  38. package/dist/cjs/ic-footer-link.cjs.entry.js.map +1 -1
  39. package/dist/cjs/ic-footer.cjs.entry.js +1 -1
  40. package/dist/cjs/ic-hero.cjs.entry.js +5 -5
  41. package/dist/cjs/ic-hero.cjs.entry.js.map +1 -1
  42. package/dist/cjs/ic-horizontal-scroll.cjs.entry.js +6 -6
  43. package/dist/cjs/ic-horizontal-scroll.cjs.entry.js.map +1 -1
  44. package/dist/cjs/ic-input-component-container_3.cjs.entry.js +19 -14
  45. package/dist/cjs/ic-input-component-container_3.cjs.entry.js.map +1 -1
  46. package/dist/cjs/ic-input-label_2.cjs.entry.js +36 -13
  47. package/dist/cjs/ic-input-label_2.cjs.entry.js.map +1 -1
  48. package/dist/cjs/ic-link.cjs.entry.js +2 -2
  49. package/dist/cjs/ic-link.cjs.entry.js.map +1 -1
  50. package/dist/cjs/ic-menu-group.cjs.entry.js +2 -2
  51. package/dist/cjs/ic-menu-group.cjs.entry.js.map +1 -1
  52. package/dist/cjs/ic-menu-item.cjs.entry.js +1 -1
  53. package/dist/cjs/ic-navigation-button.cjs.entry.js +31 -39
  54. package/dist/cjs/ic-navigation-button.cjs.entry.js.map +1 -1
  55. package/dist/cjs/ic-navigation-group.cjs.entry.js +7 -4
  56. package/dist/cjs/ic-navigation-group.cjs.entry.js.map +1 -1
  57. package/dist/cjs/ic-navigation-item.cjs.entry.js +2 -2
  58. package/dist/cjs/ic-navigation-item.cjs.entry.js.map +1 -1
  59. package/dist/cjs/ic-navigation-menu.cjs.entry.js +5 -5
  60. package/dist/cjs/ic-navigation-menu.cjs.entry.js.map +1 -1
  61. package/dist/cjs/ic-page-header.cjs.entry.js +7 -7
  62. package/dist/cjs/ic-page-header.cjs.entry.js.map +1 -1
  63. package/dist/cjs/ic-pagination_4.cjs.entry.js +20 -20
  64. package/dist/cjs/ic-pagination_4.cjs.entry.js.map +1 -1
  65. package/dist/cjs/ic-popover-menu.cjs.entry.js +5 -5
  66. package/dist/cjs/ic-popover-menu.cjs.entry.js.map +1 -1
  67. package/dist/cjs/ic-radio-group.cjs.entry.js +6 -6
  68. package/dist/cjs/ic-radio-group.cjs.entry.js.map +1 -1
  69. package/dist/cjs/ic-radio-option.cjs.entry.js +5 -5
  70. package/dist/cjs/ic-radio-option.cjs.entry.js.map +1 -1
  71. package/dist/cjs/ic-search-bar.cjs.entry.js +28 -12
  72. package/dist/cjs/ic-search-bar.cjs.entry.js.map +1 -1
  73. package/dist/cjs/ic-section-container.cjs.entry.js +2 -2
  74. package/dist/cjs/ic-section-container.cjs.entry.js.map +1 -1
  75. package/dist/cjs/ic-side-navigation.cjs.entry.js +16 -17
  76. package/dist/cjs/ic-side-navigation.cjs.entry.js.map +1 -1
  77. package/dist/cjs/ic-skeleton.cjs.entry.js +2 -2
  78. package/dist/cjs/ic-skeleton.cjs.entry.js.map +1 -1
  79. package/dist/cjs/ic-skip-link.cjs.entry.js +2 -2
  80. package/dist/cjs/ic-skip-link.cjs.entry.js.map +1 -1
  81. package/dist/cjs/ic-status-tag.cjs.entry.js +3 -3
  82. package/dist/cjs/ic-status-tag.cjs.entry.js.map +1 -1
  83. package/dist/cjs/ic-step.cjs.entry.js +14 -14
  84. package/dist/cjs/ic-step.cjs.entry.js.map +1 -1
  85. package/dist/cjs/ic-stepper.cjs.entry.js +3 -3
  86. package/dist/cjs/ic-stepper.cjs.entry.js.map +1 -1
  87. package/dist/cjs/ic-switch.cjs.entry.js +6 -6
  88. package/dist/cjs/ic-switch.cjs.entry.js.map +1 -1
  89. package/dist/cjs/ic-tab-context.cjs.entry.js +1 -1
  90. package/dist/cjs/ic-tab-context.cjs.entry.js.map +1 -1
  91. package/dist/cjs/ic-tab-group.cjs.entry.js +3 -3
  92. package/dist/cjs/ic-tab-group.cjs.entry.js.map +1 -1
  93. package/dist/cjs/ic-tab-panel.cjs.entry.js +2 -2
  94. package/dist/cjs/ic-tab-panel.cjs.entry.js.map +1 -1
  95. package/dist/cjs/ic-tab.cjs.entry.js +1 -1
  96. package/dist/cjs/ic-theme.cjs.entry.js +2 -2
  97. package/dist/cjs/ic-theme.cjs.entry.js.map +1 -1
  98. package/dist/cjs/ic-toast-region.cjs.entry.js +1 -1
  99. package/dist/cjs/ic-toast-region.cjs.entry.js.map +1 -1
  100. package/dist/cjs/ic-toast.cjs.entry.js +4 -4
  101. package/dist/cjs/ic-toast.cjs.entry.js.map +1 -1
  102. package/dist/cjs/ic-toggle-button-group.cjs.entry.js +3 -3
  103. package/dist/cjs/ic-toggle-button-group.cjs.entry.js.map +1 -1
  104. package/dist/cjs/ic-toggle-button.cjs.entry.js +3 -3
  105. package/dist/cjs/ic-toggle-button.cjs.entry.js.map +1 -1
  106. package/dist/cjs/ic-top-navigation.cjs.entry.js +15 -9
  107. package/dist/cjs/ic-top-navigation.cjs.entry.js.map +1 -1
  108. package/dist/cjs/ic-tree-item.cjs.entry.js +31 -33
  109. package/dist/cjs/ic-tree-item.cjs.entry.js.map +1 -1
  110. package/dist/cjs/ic-tree-view.cjs.entry.js +4 -15
  111. package/dist/cjs/ic-tree-view.cjs.entry.js.map +1 -1
  112. package/dist/cjs/ic-typography.cjs.entry.js +3 -3
  113. package/dist/cjs/ic-typography.cjs.entry.js.map +1 -1
  114. package/dist/cjs/loader.cjs.js +1 -1
  115. package/dist/collection/components/ic-data-table/ic-data-table.css +12 -6
  116. package/dist/collection/components/ic-data-table/ic-data-table.js +119 -46
  117. package/dist/collection/components/ic-data-table/ic-data-table.js.map +1 -1
  118. package/dist/collection/components/ic-data-table/ic-data-table.stories.js +15 -1
  119. package/dist/collection/components/ic-data-table/ic-data-table.stories.js.map +1 -1
  120. package/dist/collection/components/ic-data-table/ic-data-table.types.js.map +1 -1
  121. package/dist/collection/components/ic-data-table/story-data.js +121 -6
  122. package/dist/collection/components/ic-data-table/story-data.js.map +1 -1
  123. package/dist/collection/components/ic-data-table-title-bar/ic-data-table-title-bar.stories.js +5 -1
  124. package/dist/collection/components/ic-data-table-title-bar/ic-data-table-title-bar.stories.js.map +1 -1
  125. package/dist/collection/components/ic-date-input/ic-date-input.js +7 -4
  126. package/dist/collection/components/ic-date-input/ic-date-input.js.map +1 -1
  127. package/dist/collection/components/ic-date-input/ic-date-input.stories.js +13 -4
  128. package/dist/collection/components/ic-date-input/ic-date-input.stories.js.map +1 -1
  129. package/dist/collection/components/ic-date-picker/ic-date-picker.js +13 -10
  130. package/dist/collection/components/ic-date-picker/ic-date-picker.js.map +1 -1
  131. package/dist/collection/components/ic-date-picker/ic-date-picker.stories.js +9 -1
  132. package/dist/collection/components/ic-date-picker/ic-date-picker.stories.js.map +1 -1
  133. package/dist/collection/components/ic-date-picker/story-data.js +25 -0
  134. package/dist/collection/components/ic-date-picker/story-data.js.map +1 -1
  135. package/dist/collection/components/ic-tree-item/ic-tree-item.css +12 -21
  136. package/dist/collection/components/ic-tree-item/ic-tree-item.js +50 -56
  137. package/dist/collection/components/ic-tree-item/ic-tree-item.js.map +1 -1
  138. package/dist/collection/components/ic-tree-view/ic-tree-view.js +3 -36
  139. package/dist/collection/components/ic-tree-view/ic-tree-view.js.map +1 -1
  140. package/dist/collection/components/ic-tree-view/ic-tree-view.stories.js +29 -54
  141. package/dist/collection/components/ic-tree-view/ic-tree-view.stories.js.map +1 -1
  142. package/dist/collection/components/ic-tree-view/ic-tree-view.types.js.map +1 -1
  143. package/dist/collection/utils/helpers.js +3 -1
  144. package/dist/collection/utils/helpers.js.map +1 -1
  145. package/dist/components/helpers.js +29 -32
  146. package/dist/components/helpers.js.map +1 -1
  147. package/dist/components/helpers2.js +3 -1
  148. package/dist/components/helpers2.js.map +1 -1
  149. package/dist/components/ic-button2.js +3 -3
  150. package/dist/components/ic-button2.js.map +1 -1
  151. package/dist/components/ic-checkbox-group.js +4 -4
  152. package/dist/components/ic-checkbox-group.js.map +1 -1
  153. package/dist/components/ic-data-list.js +2 -2
  154. package/dist/components/ic-data-list.js.map +1 -1
  155. package/dist/components/ic-data-row.js +2 -2
  156. package/dist/components/ic-data-row.js.map +1 -1
  157. package/dist/components/ic-data-table.js +91 -47
  158. package/dist/components/ic-data-table.js.map +1 -1
  159. package/dist/components/ic-date-input2.js +4 -4
  160. package/dist/components/ic-date-input2.js.map +1 -1
  161. package/dist/components/ic-date-picker.js +10 -10
  162. package/dist/components/ic-date-picker.js.map +1 -1
  163. package/dist/components/ic-dialog.js +1 -1
  164. package/dist/components/ic-dialog.js.map +1 -1
  165. package/dist/components/ic-empty-state2.js +2 -2
  166. package/dist/components/ic-empty-state2.js.map +1 -1
  167. package/dist/components/ic-footer-link.js +2 -2
  168. package/dist/components/ic-footer-link.js.map +1 -1
  169. package/dist/components/ic-hero.js +4 -4
  170. package/dist/components/ic-hero.js.map +1 -1
  171. package/dist/components/ic-horizontal-scroll2.js +5 -5
  172. package/dist/components/ic-horizontal-scroll2.js.map +1 -1
  173. package/dist/components/ic-input-component-container2.js +3 -3
  174. package/dist/components/ic-input-component-container2.js.map +1 -1
  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-label2.js +33 -10
  178. package/dist/components/ic-input-label2.js.map +1 -1
  179. package/dist/components/ic-input-validation2.js +3 -3
  180. package/dist/components/ic-input-validation2.js.map +1 -1
  181. package/dist/components/ic-link2.js +1 -1
  182. package/dist/components/ic-link2.js.map +1 -1
  183. package/dist/components/ic-loading-indicator2.js +139 -143
  184. package/dist/components/ic-loading-indicator2.js.map +1 -1
  185. package/dist/components/ic-menu-group.js +1 -1
  186. package/dist/components/ic-menu-group.js.map +1 -1
  187. package/dist/components/ic-menu2.js +16 -9
  188. package/dist/components/ic-menu2.js.map +1 -1
  189. package/dist/components/ic-navigation-button.js +32 -41
  190. package/dist/components/ic-navigation-button.js.map +1 -1
  191. package/dist/components/ic-navigation-group.js +8 -5
  192. package/dist/components/ic-navigation-group.js.map +1 -1
  193. package/dist/components/ic-navigation-item.js +2 -2
  194. package/dist/components/ic-navigation-item.js.map +1 -1
  195. package/dist/components/ic-navigation-menu2.js +5 -5
  196. package/dist/components/ic-navigation-menu2.js.map +1 -1
  197. package/dist/components/ic-page-header.js +6 -6
  198. package/dist/components/ic-page-header.js.map +1 -1
  199. package/dist/components/ic-pagination-item2.js +1 -1
  200. package/dist/components/ic-pagination-item2.js.map +1 -1
  201. package/dist/components/ic-pagination2.js +4 -4
  202. package/dist/components/ic-pagination2.js.map +1 -1
  203. package/dist/components/ic-popover-menu.js +4 -4
  204. package/dist/components/ic-popover-menu.js.map +1 -1
  205. package/dist/components/ic-radio-group.js +5 -5
  206. package/dist/components/ic-radio-group.js.map +1 -1
  207. package/dist/components/ic-radio-option.js +4 -4
  208. package/dist/components/ic-radio-option.js.map +1 -1
  209. package/dist/components/ic-search-bar.js +31 -12
  210. package/dist/components/ic-search-bar.js.map +1 -1
  211. package/dist/components/ic-section-container2.js +2 -2
  212. package/dist/components/ic-section-container2.js.map +1 -1
  213. package/dist/components/ic-select2.js +7 -7
  214. package/dist/components/ic-select2.js.map +1 -1
  215. package/dist/components/ic-side-navigation.js +16 -17
  216. package/dist/components/ic-side-navigation.js.map +1 -1
  217. package/dist/components/ic-skeleton.js +2 -2
  218. package/dist/components/ic-skeleton.js.map +1 -1
  219. package/dist/components/ic-skip-link.js +2 -2
  220. package/dist/components/ic-skip-link.js.map +1 -1
  221. package/dist/components/ic-status-tag.js +2 -2
  222. package/dist/components/ic-status-tag.js.map +1 -1
  223. package/dist/components/ic-step.js +13 -13
  224. package/dist/components/ic-step.js.map +1 -1
  225. package/dist/components/ic-stepper.js +2 -2
  226. package/dist/components/ic-stepper.js.map +1 -1
  227. package/dist/components/ic-switch.js +5 -5
  228. package/dist/components/ic-switch.js.map +1 -1
  229. package/dist/components/ic-tab-context.js +1 -1
  230. package/dist/components/ic-tab-context.js.map +1 -1
  231. package/dist/components/ic-tab-group.js +2 -2
  232. package/dist/components/ic-tab-group.js.map +1 -1
  233. package/dist/components/ic-tab-panel.js +2 -2
  234. package/dist/components/ic-tab-panel.js.map +1 -1
  235. package/dist/components/ic-text-field2.js +7 -7
  236. package/dist/components/ic-text-field2.js.map +1 -1
  237. package/dist/components/ic-theme.js +2 -2
  238. package/dist/components/ic-theme.js.map +1 -1
  239. package/dist/components/ic-toast-region.js +1 -1
  240. package/dist/components/ic-toast-region.js.map +1 -1
  241. package/dist/components/ic-toast.js +4 -4
  242. package/dist/components/ic-toast.js.map +1 -1
  243. package/dist/components/ic-toggle-button-group.js +2 -2
  244. package/dist/components/ic-toggle-button-group.js.map +1 -1
  245. package/dist/components/ic-toggle-button.js +3 -3
  246. package/dist/components/ic-toggle-button.js.map +1 -1
  247. package/dist/components/ic-top-navigation.js +15 -9
  248. package/dist/components/ic-top-navigation.js.map +1 -1
  249. package/dist/components/ic-tree-item.js +31 -33
  250. package/dist/components/ic-tree-item.js.map +1 -1
  251. package/dist/components/ic-tree-view.js +3 -16
  252. package/dist/components/ic-tree-view.js.map +1 -1
  253. package/dist/components/ic-typography2.js +2 -2
  254. package/dist/components/ic-typography2.js.map +1 -1
  255. package/dist/core/core.css +29 -25
  256. package/dist/core/core.esm.js +1 -1
  257. package/dist/core/core.esm.js.map +1 -1
  258. package/dist/core/{p-b7d117e8.entry.js → p-09acf70a.entry.js} +2 -2
  259. package/dist/core/{p-578a02ff.entry.js → p-0bc8652d.entry.js} +2 -2
  260. package/dist/core/{p-578a02ff.entry.js.map → p-0bc8652d.entry.js.map} +1 -1
  261. package/dist/core/{p-c5ffe2cf.entry.js → p-0f86ea09.entry.js} +2 -2
  262. package/dist/core/{p-c5ffe2cf.entry.js.map → p-0f86ea09.entry.js.map} +1 -1
  263. package/dist/core/p-13f52d7b.js +2 -0
  264. package/dist/core/p-13f52d7b.js.map +1 -0
  265. package/dist/core/{p-e38dd019.entry.js → p-28b10396.entry.js} +2 -2
  266. package/dist/core/{p-1fd22368.entry.js → p-29601c16.entry.js} +2 -2
  267. package/dist/core/{p-1673d010.entry.js → p-2c27c85b.entry.js} +2 -2
  268. package/dist/core/{p-1673d010.entry.js.map → p-2c27c85b.entry.js.map} +1 -1
  269. package/dist/core/{p-976f4280.entry.js → p-301131d6.entry.js} +2 -2
  270. package/dist/core/{p-976f4280.entry.js.map → p-301131d6.entry.js.map} +1 -1
  271. package/dist/core/{p-887b1302.entry.js → p-304c6a01.entry.js} +2 -2
  272. package/dist/core/p-304c6a01.entry.js.map +1 -0
  273. package/dist/core/{p-8d2d9e11.entry.js → p-3352cb6c.entry.js} +2 -2
  274. package/dist/core/{p-8d2d9e11.entry.js.map → p-3352cb6c.entry.js.map} +1 -1
  275. package/dist/core/{p-dee21f6d.entry.js → p-3448c713.entry.js} +2 -2
  276. package/dist/core/{p-dee21f6d.entry.js.map → p-3448c713.entry.js.map} +1 -1
  277. package/dist/core/{p-e003ad46.entry.js → p-3b994e61.entry.js} +2 -2
  278. package/dist/core/{p-e003ad46.entry.js.map → p-3b994e61.entry.js.map} +1 -1
  279. package/dist/core/{p-1f18bbf6.entry.js → p-3f45c7ce.entry.js} +2 -2
  280. package/dist/core/{p-1f18bbf6.entry.js.map → p-3f45c7ce.entry.js.map} +1 -1
  281. package/dist/core/{p-f9e78341.entry.js → p-4150f333.entry.js} +2 -2
  282. package/dist/core/p-4150f333.entry.js.map +1 -0
  283. package/dist/core/{p-16e78c1d.entry.js → p-4271e7f4.entry.js} +2 -2
  284. package/dist/core/{p-16e78c1d.entry.js.map → p-4271e7f4.entry.js.map} +1 -1
  285. package/dist/core/{p-6e0f4278.entry.js → p-4d5dfb71.entry.js} +2 -2
  286. package/dist/core/{p-ba5e1b21.entry.js → p-4e2ef907.entry.js} +2 -2
  287. package/dist/core/p-4f941e4c.entry.js +2 -0
  288. package/dist/core/p-4f941e4c.entry.js.map +1 -0
  289. package/dist/core/{p-920f6480.entry.js → p-57e881b4.entry.js} +2 -2
  290. package/dist/core/{p-920f6480.entry.js.map → p-57e881b4.entry.js.map} +1 -1
  291. package/dist/core/p-5f8b09e4.entry.js +2 -0
  292. package/dist/core/p-5f8b09e4.entry.js.map +1 -0
  293. package/dist/core/{p-8ae0fd6f.entry.js → p-6938e1d9.entry.js} +2 -2
  294. package/dist/core/{p-671acf27.entry.js → p-693a568b.entry.js} +2 -2
  295. package/dist/core/{p-29a49ea2.entry.js → p-6c97db37.entry.js} +2 -2
  296. package/dist/core/{p-29a49ea2.entry.js.map → p-6c97db37.entry.js.map} +1 -1
  297. package/dist/core/{p-d4903dcd.entry.js → p-6dd73165.entry.js} +2 -2
  298. package/dist/core/{p-d4903dcd.entry.js.map → p-6dd73165.entry.js.map} +1 -1
  299. package/dist/core/{p-5926c2b2.entry.js → p-6f7e8b3e.entry.js} +2 -2
  300. package/dist/core/{p-5926c2b2.entry.js.map → p-6f7e8b3e.entry.js.map} +1 -1
  301. package/dist/core/p-7001f1c1.entry.js +2 -0
  302. package/dist/core/p-7001f1c1.entry.js.map +1 -0
  303. package/dist/core/p-704c5fee.entry.js +2 -0
  304. package/dist/core/{p-b92727c0.entry.js.map → p-704c5fee.entry.js.map} +1 -1
  305. package/dist/core/{p-a894ddb6.entry.js → p-7436d8de.entry.js} +2 -2
  306. package/dist/core/p-795afeb2.entry.js +2 -0
  307. package/dist/core/p-795afeb2.entry.js.map +1 -0
  308. package/dist/core/p-7dcdb89b.entry.js +2 -0
  309. package/dist/core/p-7dcdb89b.entry.js.map +1 -0
  310. package/dist/core/p-826a4e46.entry.js +2 -0
  311. package/dist/core/p-826a4e46.entry.js.map +1 -0
  312. package/dist/core/{p-9989ec00.entry.js → p-82941d0a.entry.js} +2 -2
  313. package/dist/core/{p-9989ec00.entry.js.map → p-82941d0a.entry.js.map} +1 -1
  314. package/dist/core/{p-7e4f5717.entry.js → p-856e0cda.entry.js} +2 -2
  315. package/dist/core/{p-7e4f5717.entry.js.map → p-856e0cda.entry.js.map} +1 -1
  316. package/dist/core/p-8e70b907.entry.js +2 -0
  317. package/dist/core/p-8e70b907.entry.js.map +1 -0
  318. package/dist/core/{p-7eaa223b.entry.js → p-91eacea5.entry.js} +2 -2
  319. package/dist/core/{p-7eaa223b.entry.js.map → p-91eacea5.entry.js.map} +1 -1
  320. package/dist/core/{p-8112444e.entry.js → p-95d3ff68.entry.js} +2 -2
  321. package/dist/core/{p-c3be8a0f.entry.js → p-961d7718.entry.js} +2 -2
  322. package/dist/core/p-961d7718.entry.js.map +1 -0
  323. package/dist/core/{p-b92e5fb3.entry.js → p-972f21fa.entry.js} +2 -2
  324. package/dist/core/{p-3cb4ecef.entry.js → p-9e051db4.entry.js} +2 -2
  325. package/dist/core/{p-3cb4ecef.entry.js.map → p-9e051db4.entry.js.map} +1 -1
  326. package/dist/core/{p-9aecbfe9.entry.js → p-9e19560f.entry.js} +2 -2
  327. package/dist/core/{p-9aecbfe9.entry.js.map → p-9e19560f.entry.js.map} +1 -1
  328. package/dist/core/p-a34c894b.entry.js +2 -0
  329. package/dist/core/p-a34c894b.entry.js.map +1 -0
  330. package/dist/core/{p-abcaf14d.entry.js → p-a6b573c0.entry.js} +2 -2
  331. package/dist/core/p-a6b573c0.entry.js.map +1 -0
  332. package/dist/core/{p-6a63a73a.entry.js → p-acc884bc.entry.js} +2 -2
  333. package/dist/core/{p-6a63a73a.entry.js.map → p-acc884bc.entry.js.map} +1 -1
  334. package/dist/core/{p-f6eaec92.entry.js → p-afff5652.entry.js} +2 -2
  335. package/dist/core/{p-864e337f.entry.js → p-b093cecd.entry.js} +2 -2
  336. package/dist/core/{p-864e337f.entry.js.map → p-b093cecd.entry.js.map} +1 -1
  337. package/dist/core/{p-e2629bfe.entry.js → p-b1b27b7e.entry.js} +2 -2
  338. package/dist/core/{p-e2629bfe.entry.js.map → p-b1b27b7e.entry.js.map} +1 -1
  339. package/dist/core/{p-fedfd000.entry.js → p-b3509380.entry.js} +2 -2
  340. package/dist/core/{p-e546d477.entry.js → p-b401ff42.entry.js} +2 -2
  341. package/dist/core/{p-9a78f449.entry.js → p-b522ce0a.entry.js} +2 -2
  342. package/dist/core/{p-9a78f449.entry.js.map → p-b522ce0a.entry.js.map} +1 -1
  343. package/dist/core/{p-2667c808.entry.js → p-b9369ce5.entry.js} +2 -2
  344. package/dist/core/p-b9369ce5.entry.js.map +1 -0
  345. package/dist/core/{p-eb74cab5.entry.js → p-c21317e5.entry.js} +2 -2
  346. package/dist/core/{p-28611f52.entry.js → p-c6bd71e5.entry.js} +2 -2
  347. package/dist/core/p-c6bd71e5.entry.js.map +1 -0
  348. package/dist/core/p-c73418dc.entry.js +2 -0
  349. package/dist/core/p-c73418dc.entry.js.map +1 -0
  350. package/dist/core/p-cd21aee7.entry.js +2 -0
  351. package/dist/core/p-cd21aee7.entry.js.map +1 -0
  352. package/dist/core/{p-de1e04ac.entry.js → p-d281c3cf.entry.js} +2 -2
  353. package/dist/core/{p-de1e04ac.entry.js.map → p-d281c3cf.entry.js.map} +1 -1
  354. package/dist/core/{p-9687e929.entry.js → p-da82bbef.entry.js} +2 -2
  355. package/dist/core/{p-9687e929.entry.js.map → p-da82bbef.entry.js.map} +1 -1
  356. package/dist/core/{p-ca7e1219.entry.js → p-e04d2e51.entry.js} +2 -2
  357. package/dist/core/p-e04d2e51.entry.js.map +1 -0
  358. package/dist/core/p-e253a857.js +2 -0
  359. package/dist/core/p-e253a857.js.map +1 -0
  360. package/dist/core/{p-4444e787.entry.js → p-e3059589.entry.js} +2 -2
  361. package/dist/core/{p-4444e787.entry.js.map → p-e3059589.entry.js.map} +1 -1
  362. package/dist/core/p-e4bff243.entry.js +2 -0
  363. package/dist/core/p-e4bff243.entry.js.map +1 -0
  364. package/dist/core/{p-85a17585.entry.js → p-ead0acc3.entry.js} +2 -2
  365. package/dist/core/{p-6bfff7ba.entry.js → p-ef444b18.entry.js} +2 -2
  366. package/dist/core/{p-6bfff7ba.entry.js.map → p-ef444b18.entry.js.map} +1 -1
  367. package/dist/core/{p-e64e27be.entry.js → p-f35563a0.entry.js} +2 -2
  368. package/dist/core/{p-bf3b853e.entry.js → p-fc5661ac.entry.js} +2 -2
  369. package/dist/core/{p-bf3b853e.entry.js.map → p-fc5661ac.entry.js.map} +1 -1
  370. package/dist/esm/core.js +1 -1
  371. package/dist/esm/{helpers-ef2db990.js → helpers-d9387cd3.js} +4 -2
  372. package/dist/esm/helpers-d9387cd3.js.map +1 -0
  373. package/dist/esm/{helpers-fc03923c.js → helpers-f094ef64.js} +30 -33
  374. package/dist/esm/helpers-f094ef64.js.map +1 -0
  375. package/dist/esm/ic-accordion-group.entry.js +1 -1
  376. package/dist/esm/ic-accordion.entry.js +1 -1
  377. package/dist/esm/ic-alert.entry.js +1 -1
  378. package/dist/esm/ic-back-to-top.entry.js +1 -1
  379. package/dist/esm/ic-badge.entry.js +1 -1
  380. package/dist/esm/ic-breadcrumb-group.entry.js +1 -1
  381. package/dist/esm/ic-breadcrumb.entry.js +1 -1
  382. package/dist/esm/ic-button_3.entry.js +135 -142
  383. package/dist/esm/ic-button_3.entry.js.map +1 -1
  384. package/dist/esm/ic-card-horizontal.entry.js +1 -1
  385. package/dist/esm/ic-card-vertical.entry.js +1 -1
  386. package/dist/esm/ic-checkbox-group.entry.js +5 -5
  387. package/dist/esm/ic-checkbox-group.entry.js.map +1 -1
  388. package/dist/esm/ic-checkbox_3.entry.js +4 -4
  389. package/dist/esm/ic-checkbox_3.entry.js.map +1 -1
  390. package/dist/esm/ic-chip.entry.js +1 -1
  391. package/dist/esm/ic-data-list.entry.js +2 -2
  392. package/dist/esm/ic-data-list.entry.js.map +1 -1
  393. package/dist/esm/ic-data-row.entry.js +3 -3
  394. package/dist/esm/ic-data-row.entry.js.map +1 -1
  395. package/dist/esm/ic-data-table-title-bar.entry.js +1 -1
  396. package/dist/esm/ic-data-table.entry.js +91 -48
  397. package/dist/esm/ic-data-table.entry.js.map +1 -1
  398. package/dist/esm/ic-date-input.entry.js +5 -5
  399. package/dist/esm/ic-date-input.entry.js.map +1 -1
  400. package/dist/esm/ic-date-picker.entry.js +11 -11
  401. package/dist/esm/ic-date-picker.entry.js.map +1 -1
  402. package/dist/esm/ic-dialog.entry.js +2 -2
  403. package/dist/esm/ic-dialog.entry.js.map +1 -1
  404. package/dist/esm/ic-divider.entry.js +1 -1
  405. package/dist/esm/ic-footer-link-group.entry.js +1 -1
  406. package/dist/esm/ic-footer-link.entry.js +3 -3
  407. package/dist/esm/ic-footer-link.entry.js.map +1 -1
  408. package/dist/esm/ic-footer.entry.js +1 -1
  409. package/dist/esm/ic-hero.entry.js +5 -5
  410. package/dist/esm/ic-hero.entry.js.map +1 -1
  411. package/dist/esm/ic-horizontal-scroll.entry.js +6 -6
  412. package/dist/esm/ic-horizontal-scroll.entry.js.map +1 -1
  413. package/dist/esm/ic-input-component-container_3.entry.js +19 -14
  414. package/dist/esm/ic-input-component-container_3.entry.js.map +1 -1
  415. package/dist/esm/ic-input-label_2.entry.js +36 -13
  416. package/dist/esm/ic-input-label_2.entry.js.map +1 -1
  417. package/dist/esm/ic-link.entry.js +2 -2
  418. package/dist/esm/ic-link.entry.js.map +1 -1
  419. package/dist/esm/ic-menu-group.entry.js +2 -2
  420. package/dist/esm/ic-menu-group.entry.js.map +1 -1
  421. package/dist/esm/ic-menu-item.entry.js +1 -1
  422. package/dist/esm/ic-navigation-button.entry.js +31 -39
  423. package/dist/esm/ic-navigation-button.entry.js.map +1 -1
  424. package/dist/esm/ic-navigation-group.entry.js +7 -4
  425. package/dist/esm/ic-navigation-group.entry.js.map +1 -1
  426. package/dist/esm/ic-navigation-item.entry.js +2 -2
  427. package/dist/esm/ic-navigation-item.entry.js.map +1 -1
  428. package/dist/esm/ic-navigation-menu.entry.js +5 -5
  429. package/dist/esm/ic-navigation-menu.entry.js.map +1 -1
  430. package/dist/esm/ic-page-header.entry.js +7 -7
  431. package/dist/esm/ic-page-header.entry.js.map +1 -1
  432. package/dist/esm/ic-pagination_4.entry.js +20 -20
  433. package/dist/esm/ic-pagination_4.entry.js.map +1 -1
  434. package/dist/esm/ic-popover-menu.entry.js +5 -5
  435. package/dist/esm/ic-popover-menu.entry.js.map +1 -1
  436. package/dist/esm/ic-radio-group.entry.js +6 -6
  437. package/dist/esm/ic-radio-group.entry.js.map +1 -1
  438. package/dist/esm/ic-radio-option.entry.js +5 -5
  439. package/dist/esm/ic-radio-option.entry.js.map +1 -1
  440. package/dist/esm/ic-search-bar.entry.js +28 -12
  441. package/dist/esm/ic-search-bar.entry.js.map +1 -1
  442. package/dist/esm/ic-section-container.entry.js +2 -2
  443. package/dist/esm/ic-section-container.entry.js.map +1 -1
  444. package/dist/esm/ic-side-navigation.entry.js +16 -17
  445. package/dist/esm/ic-side-navigation.entry.js.map +1 -1
  446. package/dist/esm/ic-skeleton.entry.js +2 -2
  447. package/dist/esm/ic-skeleton.entry.js.map +1 -1
  448. package/dist/esm/ic-skip-link.entry.js +2 -2
  449. package/dist/esm/ic-skip-link.entry.js.map +1 -1
  450. package/dist/esm/ic-status-tag.entry.js +3 -3
  451. package/dist/esm/ic-status-tag.entry.js.map +1 -1
  452. package/dist/esm/ic-step.entry.js +14 -14
  453. package/dist/esm/ic-step.entry.js.map +1 -1
  454. package/dist/esm/ic-stepper.entry.js +3 -3
  455. package/dist/esm/ic-stepper.entry.js.map +1 -1
  456. package/dist/esm/ic-switch.entry.js +6 -6
  457. package/dist/esm/ic-switch.entry.js.map +1 -1
  458. package/dist/esm/ic-tab-context.entry.js +1 -1
  459. package/dist/esm/ic-tab-context.entry.js.map +1 -1
  460. package/dist/esm/ic-tab-group.entry.js +3 -3
  461. package/dist/esm/ic-tab-group.entry.js.map +1 -1
  462. package/dist/esm/ic-tab-panel.entry.js +2 -2
  463. package/dist/esm/ic-tab-panel.entry.js.map +1 -1
  464. package/dist/esm/ic-tab.entry.js +1 -1
  465. package/dist/esm/ic-theme.entry.js +2 -2
  466. package/dist/esm/ic-theme.entry.js.map +1 -1
  467. package/dist/esm/ic-toast-region.entry.js +1 -1
  468. package/dist/esm/ic-toast-region.entry.js.map +1 -1
  469. package/dist/esm/ic-toast.entry.js +4 -4
  470. package/dist/esm/ic-toast.entry.js.map +1 -1
  471. package/dist/esm/ic-toggle-button-group.entry.js +3 -3
  472. package/dist/esm/ic-toggle-button-group.entry.js.map +1 -1
  473. package/dist/esm/ic-toggle-button.entry.js +3 -3
  474. package/dist/esm/ic-toggle-button.entry.js.map +1 -1
  475. package/dist/esm/ic-top-navigation.entry.js +15 -9
  476. package/dist/esm/ic-top-navigation.entry.js.map +1 -1
  477. package/dist/esm/ic-tree-item.entry.js +31 -33
  478. package/dist/esm/ic-tree-item.entry.js.map +1 -1
  479. package/dist/esm/ic-tree-view.entry.js +4 -15
  480. package/dist/esm/ic-tree-view.entry.js.map +1 -1
  481. package/dist/esm/ic-typography.entry.js +3 -3
  482. package/dist/esm/ic-typography.entry.js.map +1 -1
  483. package/dist/esm/loader.js +1 -1
  484. package/dist/types/components/ic-data-table/ic-data-table.d.ts +13 -1
  485. package/dist/types/components/ic-data-table/ic-data-table.stories.d.ts +44 -32
  486. package/dist/types/components/ic-data-table/ic-data-table.types.d.ts +2 -0
  487. package/dist/types/components/ic-data-table/story-data.d.ts +4 -0
  488. package/dist/types/components/ic-date-input/ic-date-input.d.ts +3 -0
  489. package/dist/types/components/ic-date-picker/ic-date-picker.d.ts +3 -0
  490. package/dist/types/components/ic-date-picker/ic-date-picker.stories.d.ts +26 -18
  491. package/dist/types/components/ic-date-picker/story-data.d.ts +3 -0
  492. package/dist/types/components/ic-tree-item/ic-tree-item.d.ts +5 -5
  493. package/dist/types/components/ic-tree-view/ic-tree-view.d.ts +0 -5
  494. package/dist/types/components/ic-tree-view/ic-tree-view.stories.d.ts +22 -22
  495. package/dist/types/components/ic-tree-view/ic-tree-view.types.d.ts +1 -0
  496. package/dist/types/components.d.ts +26 -11
  497. package/dist/types/utils/helpers.d.ts +1 -1
  498. package/hydrate/index.js +592 -506
  499. package/hydrate/index.mjs +592 -506
  500. package/package.json +4 -6
  501. package/dist/cjs/helpers-a5405964.js.map +0 -1
  502. package/dist/cjs/helpers-f4e7322b.js.map +0 -1
  503. package/dist/core/p-0c9c6c31.entry.js +0 -2
  504. package/dist/core/p-0c9c6c31.entry.js.map +0 -1
  505. package/dist/core/p-0e0e0942.js +0 -2
  506. package/dist/core/p-0e0e0942.js.map +0 -1
  507. package/dist/core/p-17926ee3.entry.js +0 -2
  508. package/dist/core/p-17926ee3.entry.js.map +0 -1
  509. package/dist/core/p-188ba287.entry.js +0 -2
  510. package/dist/core/p-188ba287.entry.js.map +0 -1
  511. package/dist/core/p-2667c808.entry.js.map +0 -1
  512. package/dist/core/p-28611f52.entry.js.map +0 -1
  513. package/dist/core/p-4aaf10a5.entry.js +0 -2
  514. package/dist/core/p-4aaf10a5.entry.js.map +0 -1
  515. package/dist/core/p-582da938.entry.js +0 -2
  516. package/dist/core/p-582da938.entry.js.map +0 -1
  517. package/dist/core/p-61e78ce0.entry.js +0 -2
  518. package/dist/core/p-61e78ce0.entry.js.map +0 -1
  519. package/dist/core/p-7c3cd0b8.entry.js +0 -2
  520. package/dist/core/p-7c3cd0b8.entry.js.map +0 -1
  521. package/dist/core/p-887b1302.entry.js.map +0 -1
  522. package/dist/core/p-abcaf14d.entry.js.map +0 -1
  523. package/dist/core/p-aeeff0e5.entry.js +0 -2
  524. package/dist/core/p-aeeff0e5.entry.js.map +0 -1
  525. package/dist/core/p-b92727c0.entry.js +0 -2
  526. package/dist/core/p-c3be8a0f.entry.js.map +0 -1
  527. package/dist/core/p-c8d207e1.entry.js +0 -2
  528. package/dist/core/p-c8d207e1.entry.js.map +0 -1
  529. package/dist/core/p-ca7e1219.entry.js.map +0 -1
  530. package/dist/core/p-d0c38d58.entry.js +0 -2
  531. package/dist/core/p-d0c38d58.entry.js.map +0 -1
  532. package/dist/core/p-ead9900a.entry.js +0 -2
  533. package/dist/core/p-ead9900a.entry.js.map +0 -1
  534. package/dist/core/p-eca2fea1.js +0 -2
  535. package/dist/core/p-eca2fea1.js.map +0 -1
  536. package/dist/core/p-f9e78341.entry.js.map +0 -1
  537. package/dist/esm/helpers-ef2db990.js.map +0 -1
  538. package/dist/esm/helpers-fc03923c.js.map +0 -1
  539. /package/dist/core/{p-b7d117e8.entry.js.map → p-09acf70a.entry.js.map} +0 -0
  540. /package/dist/core/{p-e38dd019.entry.js.map → p-28b10396.entry.js.map} +0 -0
  541. /package/dist/core/{p-1fd22368.entry.js.map → p-29601c16.entry.js.map} +0 -0
  542. /package/dist/core/{p-6e0f4278.entry.js.map → p-4d5dfb71.entry.js.map} +0 -0
  543. /package/dist/core/{p-ba5e1b21.entry.js.map → p-4e2ef907.entry.js.map} +0 -0
  544. /package/dist/core/{p-8ae0fd6f.entry.js.map → p-6938e1d9.entry.js.map} +0 -0
  545. /package/dist/core/{p-671acf27.entry.js.map → p-693a568b.entry.js.map} +0 -0
  546. /package/dist/core/{p-a894ddb6.entry.js.map → p-7436d8de.entry.js.map} +0 -0
  547. /package/dist/core/{p-8112444e.entry.js.map → p-95d3ff68.entry.js.map} +0 -0
  548. /package/dist/core/{p-b92e5fb3.entry.js.map → p-972f21fa.entry.js.map} +0 -0
  549. /package/dist/core/{p-f6eaec92.entry.js.map → p-afff5652.entry.js.map} +0 -0
  550. /package/dist/core/{p-fedfd000.entry.js.map → p-b3509380.entry.js.map} +0 -0
  551. /package/dist/core/{p-e546d477.entry.js.map → p-b401ff42.entry.js.map} +0 -0
  552. /package/dist/core/{p-eb74cab5.entry.js.map → p-c21317e5.entry.js.map} +0 -0
  553. /package/dist/core/{p-85a17585.entry.js.map → p-ead0acc3.entry.js.map} +0 -0
  554. /package/dist/core/{p-e64e27be.entry.js.map → p-f35563a0.entry.js.map} +0 -0
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-d337cd8a.js');
6
- const helpers = require('./helpers-f4e7322b.js');
6
+ const helpers = require('./helpers-274ac318.js');
7
7
  const popper = require('./popper-16968c2e.js');
8
8
 
9
9
  const arrowDropdown = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
@@ -372,14 +372,14 @@ const Button = class {
372
372
  : undefined;
373
373
  const hasLeftIcon = !!this.getSlottedIcon("left");
374
374
  const hasRightIcon = !!this.getSlottedIcon("right");
375
- const ButtonContent = () => this.hasRouterSlot() ? (index.h("slot", { name: "router-item" })) : (index.h(TagType, Object.assign({ class: "button", "aria-disabled": loading || disabled ? "true" : null, "aria-label": loading ? "Loading" : ariaLabel, "aria-expanded": dropdown && `${dropdownExpanded}` }, buttonAttrs, inheritedAttributes, { onFocus: onFocus, onBlur: onBlur, ref: (el) => (this.buttonEl = el), "aria-describedby": describedby, part: "button" }), loading ? (index.h("div", { class: "loading-container" }, index.h("ic-loading-indicator", { type: "linear", monochrome: monochrome, theme: theme }))) : (index.h(index.Fragment, null, (hasLeftIcon ||
375
+ const ButtonContent = () => this.hasRouterSlot() ? (index.h("slot", { name: "router-item" })) : (index.h(TagType, Object.assign({ class: "button", tabindex: 0, "aria-disabled": loading || disabled ? "true" : null, "aria-label": loading ? "Loading" : ariaLabel, "aria-expanded": dropdown && `${dropdownExpanded}` }, buttonAttrs, inheritedAttributes, { onFocus: onFocus, onBlur: onBlur, ref: (el) => (this.buttonEl = el), "aria-describedby": describedby, part: "button" }), loading ? (index.h("div", { class: "loading-container" }, index.h("ic-loading-indicator", { type: "linear", monochrome: monochrome, theme: theme }))) : (index.h(index.Fragment, null, (hasLeftIcon ||
376
376
  (!!this.getSlottedIcon("top") && !hasRightIcon)) && (index.h("div", { class: "icon-container" }, index.h("slot", { name: `${hasLeftIcon ? "left" : "top"}-icon` }))), index.h("slot", null), !dropdown
377
377
  ? hasRightIcon && (index.h("div", { class: { "icon-container": true, "right-icon": true } }, index.h("slot", { name: "right-icon" })))
378
378
  : variant !== "icon" &&
379
379
  variant !== "destructive" && (index.h("span", { class: dropdownExpanded
380
380
  ? "dropdown-expanded"
381
381
  : "arrow-dropdown", innerHTML: arrowDropdown }))))));
382
- return (index.h(index.Host, { key: '76e9eabe7c49342e8b6c931180281063d6bc01f2', class: {
382
+ return (index.h(index.Host, { key: '4e8888cdc523c32383945dbf5503a1d9129ed6e9', class: {
383
383
  "ic-button-disabled": disabled && !loading,
384
384
  "ic-button-full-width": fullWidth,
385
385
  "ic-button-loading": loading,
@@ -395,7 +395,7 @@ const Button = class {
395
395
  monochrome,
396
396
  "top-icon": helpers.isSlotUsed(this.el, "top-icon"),
397
397
  "with-badge": helpers.isSlotUsed(this.el, "badge"),
398
- }, onClick: handleClick, onKeyDown: handleKeyDown, "aria-owns": ariaOwnsId, "aria-controls": ariaControlsId, "aria-expanded": dropdown && `${dropdownExpanded}` }, hasTooltip && (index.h("ic-tooltip", { key: 'b206653b613d9d78da264c8f796a4b7b90e50db0', id: describedby, label: title || ariaLabel, target: buttonId, placement: tooltipPlacement, silent: isIconVariant() && !!ariaLabel }, index.h(ButtonContent, { key: '9e63601518bac4f1ef197262e193a8977deb6df4' }))), helpers.isSlotUsed(this.el, "badge") && index.h("slot", { key: 'da708210c9061b0f2e3a4678f61e339a446616e4', name: "badge" }), !hasTooltip && index.h(ButtonContent, { key: '43131139c83a264a25995f616aac6b7431b86156' }), describedByContent && (index.h("span", { key: '1b1b37a9c1f17d39f768d0e8cee845fc09595219', id: describedby, class: "ic-button-describedby" }, describedByContent))));
398
+ }, onClick: handleClick, onKeyDown: handleKeyDown, "aria-owns": ariaOwnsId, "aria-controls": ariaControlsId, "aria-expanded": dropdown && `${dropdownExpanded}` }, hasTooltip && (index.h("ic-tooltip", { key: 'ca33053f91d9716b014aa5fcd419e22cbdc553d8', id: describedby, label: title || ariaLabel, target: buttonId, placement: tooltipPlacement, silent: isIconVariant() && !!ariaLabel }, index.h(ButtonContent, { key: 'bdfd844921507888ab65db6e46fd3ec4410a62b3' }))), helpers.isSlotUsed(this.el, "badge") && index.h("slot", { key: '1400c01085f417f357a5523b295b022075a3480f', name: "badge" }), !hasTooltip && index.h(ButtonContent, { key: '36e6969ee4b09ac6fb8b93c3a5d5aa932f0621dc' }), describedByContent && (index.h("span", { key: 'a4a130e848f981b08d2bc953016d836bc0000b62', id: describedby, class: "ic-button-describedby" }, describedByContent))));
399
399
  }
400
400
  static get delegatesFocus() { return true; }
401
401
  get el() { return index.getElement(this); }
@@ -405,12 +405,26 @@ const Button = class {
405
405
  };
406
406
  Button.style = IcButtonStyle0;
407
407
 
408
- const icLoadingIndicatorCss = "/*! 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;--linear-border-radius:0.25rem;--inner-color:var(--ic-loading-indicator-inner-color);--outer-color:var(--ic-loading-indicator-outer-color);--label-color:var(--ic-loading-indicator-label-color);--margin:none;--linear-line-height:var(--ic-space-xs)}:host(.ic-loading-indicator-monochrome){--inner-color:var(--ic-loading-indicator-inner-color-monochrome);--outer-color:var(--ic-loading-indicator-outer-color-monochrome);--label-color:var(--ic-loading-indicator-label-color-monochrome)}.ic-loading-container{display:flex;flex-direction:column;justify-content:center;align-items:center}:host([size=\"small\"]){--circular-diameter:2.5rem;--linear-line-height:var(--ic-space-xxs)}:host([size=\"medium\"]){--circular-diameter:5rem}:host([size=\"large\"]){--circular-diameter:7.5rem}:host([size=\"icon\"]){display:inline-block;--margin:var(--ic-space-xxxs);--circular-diameter:1.25rem}:host(.ic-loading-indicator-label){--margin:0 0 var(--ic-space-xs) 0}.ic-loading-label{--ic-typography-color:var(--label-color);margin-left:var(--label-margin-left)}.ic-loading-circular-outer{height:var(--circular-diameter);width:var(--circular-diameter)}.ic-loading-circular-outer.indeterminate{animation:circular-animation 1s linear;animation-iteration-count:infinite}@keyframes circular-animation{100%{transform:rotate(360deg)}}.ic-loading-circular-outer,.ic-loading-linear-outer{margin:var(--margin)}.ic-loading-linear-outer{background-color:var(--outer-color);height:var(--linear-line-height);width:100%;border-radius:var(--linear-border-radius);overflow:hidden}.ic-loading-linear-inner{position:relative;height:100%;background-color:var(--inner-color);border-radius:var(--linear-border-radius)}.indeterminate>.ic-loading-linear-inner{animation:linear-animation 2s infinite}.determinate>.ic-loading-linear-inner{transition:width 0.5s;width:var(--linear-width)}:host(.ic-loading-indicator-full-width){--linear-border-radius:none}@keyframes linear-animation{0%{width:0%;left:-1%}25%{width:0%;left:-1%}50%{width:101%;left:-1%}75%{width:0%;left:101%}100%{width:0%;left:101%}}.ic-loading-circular-svg{position:relative;width:100%;height:100%;transform:rotate(-90deg)}.ic-loading-circular-svg circle{width:100%;height:100%;fill:none;stroke:var(--compact-step-outer-color, var(--outer-color));stroke-width:var(--circular-line-width);stroke-linecap:round}.ic-loading-circular-svg circle:nth-child(2){--circular-indeterminate:calc(\n (0.25 * var(--stroke-dasharray)) - var(--stroke-dasharray)\n );stroke-dasharray:var(--stroke-dasharray), var(--stroke-dasharray);stroke-dashoffset:var(--stroke-dashoffset, var(--circular-indeterminate));stroke:var(--compact-step-inner-color, var(--inner-color))}:host(.inner-label) .ic-loading-circular-inner{height:100%;display:grid}:host(.inner-label) .ic-loading-circular-svg,.inner-text{grid-column:1;grid-row:1}:host(.not-required.compact-step-progress-indicator) .ic-loading-circular-svg circle:nth-child(2){stroke:var(--ic-architectural-300)}.inner-text{display:flex;align-items:center;justify-content:center;width:var(--ic-space-lg);height:inherit;overflow:hidden;margin:auto;--ic-typography-color:var(\n --ic-step-indicator-text-current,\n var(--ic-status-info-default)\n )}:host(.not-required.compact-step-progress-indicator) .inner-text{--ic-typography-color:var(--ic-step-indicator-text-disabled)}:host(.ic-loading-indicator-light.not-required.compact-step-progress-indicator) .inner-text{--ic-typography-color:var(--ic-architectural-400)}@media (forced-colors: active){.indeterminate>.ic-loading-circular-inner{forced-color-adjust:none}.ic-loading-linear-outer{border:var(--ic-border-hc)}.ic-loading-linear-inner{background-color:canvastext}.ic-loading-circular-svg circle{stroke:Background}.ic-loading-circular-svg circle:nth-child(2){stroke:canvastext}:host(.not-required.compact-step-progress-indicator) .ic-loading-circular-svg circle:nth-child(2){stroke:GrayText}}";
408
+ const icLoadingIndicatorCss = "/*! 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;--linear-border-radius:0.25rem;--inner-color:var(--ic-loading-indicator-inner-color);--outer-color:var(--ic-loading-indicator-outer-color);--label-color:var(--ic-loading-indicator-label-color);--margin:none;--linear-line-height:var(--ic-space-xs)}:host(.ic-loading-indicator-monochrome){--inner-color:var(--ic-loading-indicator-inner-color-monochrome);--outer-color:var(--ic-loading-indicator-outer-color-monochrome);--label-color:var(--ic-loading-indicator-label-color-monochrome)}.ic-loading-container{display:flex;flex-direction:column;justify-content:center;align-items:center}:host([size=\"small\"]){--circular-diameter:2.5rem;--linear-line-height:var(--ic-space-xxs)}:host([size=\"medium\"]){--circular-diameter:5rem}:host([size=\"large\"]){--circular-diameter:7.5rem}:host([size=\"icon\"]){display:inline-block;--margin:var(--ic-space-xxxs);--circular-diameter:1.25rem}:host(.ic-loading-indicator-label){--margin:0 0 var(--ic-space-xs) 0}.ic-loading-label{--ic-typography-color:var(--label-color);margin-left:var(--label-margin-left)}.ic-loading-circular-outer{height:var(--circular-diameter);width:var(--circular-diameter)}.ic-loading-circular-outer.indeterminate{animation:circular-animation 1s linear;animation-iteration-count:infinite}@keyframes circular-animation{100%{transform:rotate(360deg)}}.ic-loading-circular-outer,.ic-loading-linear-outer{margin:var(--margin)}.ic-loading-linear-outer{background-color:var(--outer-color);height:var(--linear-line-height);width:100%;border-radius:var(--linear-border-radius);overflow:hidden}.ic-loading-linear-inner{position:relative;height:100%;background-color:var(--inner-color);border-radius:var(--linear-border-radius)}.indeterminate>.ic-loading-linear-inner{animation:linear-animation 2s infinite}.determinate>.ic-loading-linear-inner{transition:width 0.5s;width:var(--linear-width)}:host(.ic-loading-indicator-full-width){--linear-border-radius:none}@keyframes linear-animation{0%{width:0%;left:-1%}25%{width:0%;left:-1%}50%{width:101%;left:-1%}75%{width:0%;left:101%}100%{width:0%;left:101%}}.ic-loading-circular-svg{position:relative;width:100%;height:100%;transform:rotate(-90deg)}.ic-loading-circular-svg circle{width:100%;height:100%;fill:none;stroke:var(--compact-step-outer-color, var(--outer-color));stroke-width:var(--circular-line-width);stroke-linecap:round}.ic-loading-circular-svg circle:nth-child(2){--circular-indeterminate:calc(\n (0.25 * var(--stroke-dasharray)) - var(--stroke-dasharray)\n );stroke-dasharray:var(--stroke-dasharray), var(--stroke-dasharray);stroke-dashoffset:var(--stroke-dashoffset, var(--circular-indeterminate));stroke:var(--compact-step-inner-color, var(--inner-color))}.inner-label{height:100%;display:grid}.inner-label .ic-loading-circular-svg,.inner-text{grid-column:1;grid-row:1}:host(.not-required.compact-step-progress-indicator) .ic-loading-circular-svg circle:nth-child(2){stroke:var(--ic-architectural-300)}.inner-text{display:flex;align-items:center;justify-content:center;width:var(--ic-space-lg);height:inherit;overflow:hidden;margin:auto;--ic-typography-color:var(\n --ic-step-indicator-text-current,\n var(--ic-status-info-default)\n )}:host(.not-required.compact-step-progress-indicator) .inner-text{--ic-typography-color:var(--ic-step-indicator-text-disabled)}:host(.ic-loading-indicator-light.not-required.compact-step-progress-indicator) .inner-text{--ic-typography-color:var(--ic-architectural-400)}@media (forced-colors: active){.indeterminate>.ic-loading-circular-inner{forced-color-adjust:none}.ic-loading-linear-outer{border:var(--ic-border-hc)}.ic-loading-linear-inner{background-color:canvastext}.ic-loading-circular-svg circle{stroke:Background}.ic-loading-circular-svg circle:nth-child(2){stroke:canvastext}:host(.not-required.compact-step-progress-indicator) .ic-loading-circular-svg circle:nth-child(2){stroke:GrayText}}";
409
409
  const IcLoadingIndicatorStyle0 = icLoadingIndicatorCss;
410
410
 
411
+ const LOADING_INDICATOR_WIDTHS = {
412
+ large: 120,
413
+ medium: 80,
414
+ small: 40,
415
+ icon: 20,
416
+ };
411
417
  const LoadingIndicator = class {
412
418
  constructor(hostRef) {
413
419
  index.registerInstance(this, hostRef);
420
+ this.labelList = [];
421
+ this.circularDiameter = 0;
422
+ this.circularLineWidth = 0;
423
+ this.circularDimensions = {
424
+ x: 0,
425
+ y: 0,
426
+ r: 0,
427
+ };
414
428
  this.clipInnerElement = false;
415
429
  /**
416
430
  * The description that will be set as the aria-label of the loading indicator when not using a visible label.
@@ -442,190 +456,169 @@ const LoadingIndicator = class {
442
456
  * The size of the loading indicator.
443
457
  */
444
458
  this.size = "medium";
445
- /**
446
- * The type of indicator, either linear or circular.
447
- */
448
- this.type = "circular";
449
459
  /**
450
460
  * 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.
451
461
  */
452
462
  this.theme = "inherit";
453
- this.updateCircularProgressMeter = () => {
454
- if (!this.indeterminate && this.circularMeter) {
455
- this.circularMeter.style.setProperty("--progress-value", String(this.progress));
456
- }
457
- };
458
- this.getLabel = (labelIndex, setLabel) => {
459
- return new Promise(() => {
460
- this.interval = setInterval(() => {
461
- if (labelIndex < this.labelList.length - 1) {
462
- labelIndex++;
463
- }
464
- else {
465
- labelIndex = 0;
466
- }
467
- setLabel(this.labelList[labelIndex]);
468
- }, this.labelDuration);
469
- });
470
- };
463
+ /**
464
+ * The type of indicator, either linear or circular.
465
+ */
466
+ this.type = "circular";
467
+ this.getLabel = (labelIndex) => new Promise(() => {
468
+ this.interval = setInterval(() => {
469
+ if (labelIndex < this.labelList.length - 1) {
470
+ labelIndex++;
471
+ }
472
+ else {
473
+ labelIndex = 0;
474
+ }
475
+ this.indicatorLabel = this.labelList[labelIndex];
476
+ }, this.labelDuration);
477
+ });
471
478
  this.getLabelVariant = () => {
472
- var _a;
473
- let variant = "h4";
474
- const width = (_a = this.outerElement) === null || _a === void 0 ? void 0 : _a.offsetWidth;
475
- if (this.size === "small" ||
476
- (width && this.type === "circular" && width < 60)) {
477
- variant = "label";
479
+ const width = this.type === "circular" ? this.calculateWidth() : 0;
480
+ if (this.size === "small" || (width && width < 60)) {
481
+ return "label";
478
482
  }
479
- else if (this.size === "large" ||
480
- (width && this.type === "circular" && width >= 120)) {
481
- variant = "h2";
483
+ else if (this.size === "large" || width >= 120) {
484
+ return "h2";
482
485
  }
483
- return variant;
486
+ return "h4";
484
487
  };
485
- // Sets the circular indicator line width - accounting for the circle size being altered using the CSS custom property
486
- this.setCircleLineWidth = () => {
487
- const compactStepCircularLineWidth = this.el.classList.contains("compact-step-progress-indicator")
488
- ? 40
489
- : 0;
490
- const toastDismissTimerCircularLineWidth = this.el.classList.contains("toast-dismiss-timer")
491
- ? 20
492
- : 0;
488
+ this.calculateWidth = () => {
489
+ var _a, _b, _c;
490
+ if ((_a = this.outerElement) === null || _a === void 0 ? void 0 : _a.offsetWidth)
491
+ return this.outerElement.offsetWidth;
493
492
  if (this.outerElement) {
494
- const { offsetWidth: width } = this.outerElement;
495
- if (width ||
496
- compactStepCircularLineWidth ||
497
- toastDismissTimerCircularLineWidth) {
498
- this.circularLineWidth =
499
- (compactStepCircularLineWidth ||
500
- toastDismissTimerCircularLineWidth ||
501
- width) * 0.1;
502
- this.circularDiameter =
503
- compactStepCircularLineWidth ||
504
- toastDismissTimerCircularLineWidth ||
505
- width;
506
- this.outerElement.style.setProperty("--circular-line-width", `${this.circularLineWidth}px`);
493
+ const { width } = window.getComputedStyle(this.outerElement);
494
+ if (width) {
495
+ // Regex to check the units of the css string
496
+ if (((_b = width.match(/\D+$/)) === null || _b === void 0 ? void 0 : _b[0]) !== "%")
497
+ return parseFloat(width);
498
+ const parentWidth = (_c = this.outerElement.parentElement) === null || _c === void 0 ? void 0 : _c.offsetWidth;
499
+ if (parentWidth)
500
+ return parentWidth * (parseFloat(width) / 100);
507
501
  }
508
502
  }
503
+ return LOADING_INDICATOR_WIDTHS[this.size];
509
504
  };
510
505
  this.setLinearDeterminateWidth = () => {
511
- const max = this.max;
512
- const min = this.min;
513
- if (!this.innerElement)
514
- return;
515
506
  // Ensure progress cannot be out of bounds
516
- if (this.progress) {
517
- const progress = Math.min(max, Math.max(min, this.progress));
518
- const proportion = (progress - min) / (max - min);
519
- this.clipInnerElement = proportion > 0.5;
520
- if (this.clipInnerElement) {
521
- this.innerElement.classList.remove("clip");
522
- }
523
- else {
524
- this.innerElement.classList.add("clip");
525
- }
526
- this.innerElement.style.setProperty("--linear-width", `${proportion * 100}%`);
507
+ if (!this.innerElement || !this.progress)
508
+ return;
509
+ const progress = Math.min(this.max, Math.max(this.min, this.progress));
510
+ const proportion = (progress - this.min) / (this.max - this.min);
511
+ this.clipInnerElement = proportion > 0.5;
512
+ if (this.clipInnerElement) {
513
+ this.innerElement.classList.remove("clip");
527
514
  }
528
- };
529
- this.calcOuterClass = () => {
530
- let cls = `ic-loading-${this.type}-outer`;
531
- cls += this.indeterminate ? " indeterminate" : " determinate";
532
- return cls;
515
+ else {
516
+ this.innerElement.classList.add("clip");
517
+ }
518
+ this.innerElement.style.setProperty("--linear-width", `${proportion * 100}%`);
533
519
  };
534
520
  this.updateLabel = () => {
535
- if (this.label !== undefined) {
536
- if (typeof this.label === "string") {
537
- this.indicatorLabel = this.label;
538
- }
539
- else {
540
- this.labelList = this.label;
541
- const labelIndex = 0;
542
- this.indicatorLabel = this.labelList[labelIndex];
543
- if (this.labelList.length > 1) {
544
- this.getLabel(labelIndex, (label) => {
545
- this.indicatorLabel = label;
546
- });
547
- }
548
- }
521
+ if (!this.label)
522
+ return;
523
+ if (typeof this.label === "string") {
524
+ this.indicatorLabel = this.label;
549
525
  }
550
- };
551
- this.setCircleXY = () => {
552
- if (this.circularDiameter > 0) {
553
- const r = this.circularDiameter / 2;
554
- const x = r;
555
- const y = r;
556
- const nextRadius = r - this.circularLineWidth / 2;
557
- this.setDashSteps(nextRadius);
558
- return { x, y, r: nextRadius };
526
+ else {
527
+ this.labelList = this.label;
528
+ this.indicatorLabel = this.labelList[0];
529
+ if (this.labelList.length > 1) {
530
+ this.getLabel(0);
531
+ }
559
532
  }
560
- return { x: 0, y: 0, r: 0 };
561
533
  };
562
- this.setDashSteps = (radius) => {
563
- const dashArray = 2 * Math.PI * radius;
564
- if (this.circularMeter) {
565
- this.circularMeter.style.setProperty("--stroke-dasharray", `${dashArray}px`);
566
- if (!this.indeterminate && this.progress) {
567
- const min = this.min;
568
- const max = this.max;
569
- const progress = Math.min(Math.max(this.progress, min), max);
570
- const proportion = -1 - (progress - min) / (max - min);
571
- this.circularMeter.style.setProperty("--circular-steps-max", String(this.max));
572
- this.circularMeter.style.setProperty("--stroke-dashoffset", `${proportion * dashArray}px`);
573
- }
534
+ this.setCircleDimensions = () => {
535
+ let dashOffset = undefined;
536
+ if (this.circularDiameter <= 0)
537
+ return;
538
+ const r = this.circularDiameter / 2;
539
+ const nextRadius = r - this.circularLineWidth / 2;
540
+ const dashArray = 2 * Math.PI * nextRadius;
541
+ if (this.progress) {
542
+ const progress = Math.min(Math.max(this.progress, this.min), this.max);
543
+ dashOffset = `${(-1 - (progress - this.min) / (this.max - this.min)) * dashArray}px`;
574
544
  }
545
+ this.circularDimensions = {
546
+ x: r,
547
+ y: r,
548
+ r: nextRadius,
549
+ dashArray: `${dashArray}px`,
550
+ dashOffset,
551
+ };
575
552
  };
576
553
  }
577
554
  watchPropHandler() {
578
555
  this.updateLabel();
579
556
  }
557
+ minMaxChangeHandler() {
558
+ if (this.type === "circular")
559
+ this.setCircleDimensions();
560
+ }
580
561
  watchProgressHandler() {
562
+ if (this.type === "linear") {
563
+ this.setLinearDeterminateWidth();
564
+ }
565
+ else {
566
+ this.setCircleDimensions();
567
+ }
568
+ }
569
+ setIndicatorDimensions() {
581
570
  if (this.type === "circular") {
582
- this.updateCircularProgressMeter();
571
+ // Sets the circular indicator line width - accounting for the circle size being altered using the CSS custom property
572
+ const diameter = this.calculateWidth();
573
+ if (this.outerElement && diameter !== this.circularDiameter) {
574
+ this.circularLineWidth = diameter * 0.1;
575
+ this.circularDiameter = diameter;
576
+ this.outerElement.style.setProperty("--circular-line-width", `${this.circularLineWidth}px`);
577
+ this.setCircleDimensions();
578
+ }
579
+ }
580
+ else {
581
+ this.setLinearDeterminateWidth();
583
582
  }
584
583
  }
585
584
  disconnectedCallback() {
586
585
  clearInterval(this.interval);
587
586
  }
588
587
  componentWillLoad() {
589
- this.indeterminate = this.progress === undefined;
590
588
  this.updateLabel();
591
589
  this.el.setAttribute("exportparts", "ic-loading-container");
592
590
  }
593
591
  componentDidLoad() {
594
- var _a;
595
- if (this.type === "circular") {
596
- this.setCircleLineWidth();
597
- this.circularMeter = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(".ic-loading-circular-svg circle:nth-child(2)");
598
- this.updateCircularProgressMeter();
599
- }
600
- if (Number(this.progress) >= 0 && this.type === "linear") {
601
- this.setLinearDeterminateWidth();
602
- }
603
- }
604
- componentWillUpdate() {
605
- this.indeterminate = this.progress === undefined;
606
- }
607
- componentDidUpdate() {
608
- if (Number(this.progress) >= 0 && this.type === "linear") {
609
- this.setLinearDeterminateWidth();
610
- }
592
+ this.setIndicatorDimensions();
611
593
  }
612
594
  render() {
613
- const { theme, label, description, size, fullWidth, innerLabel, monochrome, } = this;
614
- const { x, y, r } = this.setCircleXY();
615
- return (index.h(index.Host, { key: '0031fe76c51b9cfcdb3916451bd2b56f6aac8721', class: {
595
+ const { theme, label, description, size, fullWidth, innerLabel, monochrome, type, progress, min, max, circularDiameter, indicatorLabel, circularDimensions, } = this;
596
+ const { x, y, r, dashArray, dashOffset } = circularDimensions;
597
+ return (index.h(index.Host, { key: '7f78047511c580f116c21d00e76a19dee3319d60', class: {
616
598
  [`ic-theme-${theme}`]: theme !== "inherit",
599
+ "ic-loading-indicator-full-width": fullWidth,
617
600
  "ic-loading-indicator-label": !!label,
618
- "ic-loading-indicator-full-width": !!fullWidth,
601
+ "ic-loading-indicator-monochrome": monochrome,
602
+ } }, index.h("div", { key: 'eec896daa35399c26a11873674ba4bc4fd099ddc', class: "ic-loading-container", part: "ic-loading-container" }, index.h("div", { key: 'b3ab1935e9fe5d50cd6513acd7a8eabb31fadf98', ref: (el) => (this.outerElement = el), class: {
603
+ [`ic-loading-${type}-outer`]: true,
604
+ [progress === undefined ? "indeterminate" : "determinate"]: true,
605
+ }, role: "progressbar", "aria-labelledby": label && size !== "icon" && "ic-loading-label", "aria-label": description, "aria-valuenow": progress, "aria-valuemin": min, "aria-valuemax": max }, index.h("div", { key: '2f6e1f2e1a88b752cdda2a6b2834441e8546eb9b', ref: (el) => (this.innerElement = el), class: {
606
+ [`ic-loading-${type}-inner`]: true,
619
607
  "inner-label": !!innerLabel,
620
- "ic-loading-indicator-monochrome": !!monochrome,
621
- } }, index.h("div", { key: 'f0d87cb81fe19c7923cab83352692a820f864353', class: "ic-loading-container", part: "ic-loading-container" }, index.h("div", { key: 'eed9c9ec0fa7677a73d97f84f2f0c4254ae895f9', ref: (el) => (this.outerElement = el), class: this.calcOuterClass(), role: "progressbar", "aria-labelledby": this.label && this.size !== "icon" && "ic-loading-label", "aria-label": description, "aria-valuenow": this.progress, "aria-valuemin": this.min, "aria-valuemax": this.max }, index.h("div", { key: 'e6f08d5b7d7f7d3531f26773d82bdaab8b746de6', ref: (el) => (this.innerElement = el), class: `ic-loading-${this.type}-inner` }, this.innerLabel &&
622
- this.innerLabel !== undefined &&
623
- this.size === "small" && (index.h("ic-typography", { key: 'e5e16b071e7886eeaeddbe5d4ba9982d2dd835ac', variant: "subtitle-small", class: "inner-text" }, this.innerLabel)), this.type === "circular" && (index.h("svg", { key: '242ce0f64c6b81f0495ce74844d42952d60889b1', class: "ic-loading-circular-svg", viewBox: `0 0 ${this.circularDiameter || 0} ${this.circularDiameter || 0}` }, index.h("circle", { key: '89efba17cfc44471af357fac9fad70a80ee8f9c2', cx: `${x}`, cy: `${y}`, r: `${r}` }), index.h("circle", { key: '47a39e6acf845c27e2817d563559fc332c9be3db', cx: `${x}`, cy: `${y}`, r: `${r}` }))))), label && size !== "icon" && (index.h("ic-typography", { key: '383cf6d17daaaaa8275b8b381e6a65334f8b832e', id: "ic-loading-label", class: "ic-loading-label", role: "status", variant: this.getLabelVariant() }, index.h("p", { key: 'b0009c0c194d3ebdf8b8bca21fcee5db1919ac1a' }, this.indicatorLabel))))));
608
+ } }, innerLabel && size === "small" && (index.h("ic-typography", { key: 'c0d18d282c7090aa2bf478c3beee03e6c2b2f61d', variant: "subtitle-small", class: "inner-text" }, innerLabel)), type === "circular" && (index.h("svg", { key: 'a5827dba8cff99684667dfa1147186ad0bd3f7a1', class: "ic-loading-circular-svg", viewBox: `0 0 ${circularDiameter} ${circularDiameter}` }, index.h("circle", { key: 'c53d2155e9aea468427178f5a41e0a24b02565fa', cx: x, cy: y, r: r }), index.h("circle", { key: 'c5b6aea5b936b056a8103c0dacb81822348b20d1', style: {
609
+ "--circular-steps-max": progress ? `${max}` : undefined,
610
+ "--progress-value": progress !== undefined ? `${progress}` : undefined,
611
+ "--stroke-dasharray": dashArray,
612
+ "--stroke-dashoffset": dashOffset,
613
+ }, cx: x, cy: y, r: r }))))), label && size !== "icon" && (index.h("ic-typography", { key: 'e586d3c31d518a77bf93f90504318e3a5baeeb64', id: "ic-loading-label", class: "ic-loading-label", role: "status", variant: this.getLabelVariant() }, index.h("p", { key: 'd1c0b977ef4441ae45f4122a7a0ee03b33b4421b' }, indicatorLabel))))));
624
614
  }
625
615
  get el() { return index.getElement(this); }
626
616
  static get watchers() { return {
627
617
  "label": ["watchPropHandler"],
628
- "progress": ["watchProgressHandler"]
618
+ "max": ["minMaxChangeHandler"],
619
+ "min": ["minMaxChangeHandler"],
620
+ "progress": ["watchProgressHandler"],
621
+ "type": ["setIndicatorDimensions"]
629
622
  }; }
630
623
  };
631
624
  LoadingIndicator.style = IcLoadingIndicatorStyle0;