@ukic/web-components 3.4.0 → 3.6.0

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 (542) hide show
  1. package/dist/cjs/core.cjs.js +1 -1
  2. package/dist/cjs/{helpers-fc4016d2.js → helpers-8217daf4.js} +42 -32
  3. package/dist/cjs/helpers-8217daf4.js.map +1 -0
  4. package/dist/cjs/ic-accordion-group.cjs.entry.js +1 -1
  5. package/dist/cjs/ic-accordion.cjs.entry.js +1 -1
  6. package/dist/cjs/ic-alert.cjs.entry.js +8 -8
  7. package/dist/cjs/ic-alert.cjs.entry.js.map +1 -1
  8. package/dist/cjs/ic-back-to-top.cjs.entry.js +1 -1
  9. package/dist/cjs/ic-badge.cjs.entry.js +13 -4
  10. package/dist/cjs/ic-badge.cjs.entry.js.map +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 +143 -148
  14. package/dist/cjs/ic-button_3.cjs.entry.js.map +1 -1
  15. package/dist/cjs/ic-card-vertical.cjs.entry.js +1 -1
  16. package/dist/cjs/ic-checkbox-group.cjs.entry.js +5 -5
  17. package/dist/cjs/ic-checkbox-group.cjs.entry.js.map +1 -1
  18. package/dist/cjs/ic-checkbox.cjs.entry.js +9 -8
  19. package/dist/cjs/ic-checkbox.cjs.entry.js.map +1 -1
  20. package/dist/cjs/ic-chip.cjs.entry.js +1 -1
  21. package/dist/cjs/ic-data-list.cjs.entry.js +2 -2
  22. package/dist/cjs/ic-data-row.cjs.entry.js +3 -3
  23. package/dist/cjs/ic-dialog.cjs.entry.js +3 -3
  24. package/dist/cjs/ic-dialog.cjs.entry.js.map +1 -1
  25. package/dist/cjs/ic-divider.cjs.entry.js +1 -1
  26. package/dist/cjs/ic-empty-state.cjs.entry.js +3 -3
  27. package/dist/cjs/ic-footer-link-group.cjs.entry.js +1 -1
  28. package/dist/cjs/ic-footer-link.cjs.entry.js +4 -4
  29. package/dist/cjs/ic-footer-link.cjs.entry.js.map +1 -1
  30. package/dist/cjs/ic-footer.cjs.entry.js +1 -1
  31. package/dist/cjs/ic-hero.cjs.entry.js +5 -5
  32. package/dist/cjs/ic-horizontal-scroll.cjs.entry.js +6 -6
  33. package/dist/cjs/ic-input-component-container_3.cjs.entry.js +19 -14
  34. package/dist/cjs/ic-input-component-container_3.cjs.entry.js.map +1 -1
  35. package/dist/cjs/ic-input-label_2.cjs.entry.js +36 -13
  36. package/dist/cjs/ic-input-label_2.cjs.entry.js.map +1 -1
  37. package/dist/cjs/ic-link.cjs.entry.js +3 -3
  38. package/dist/cjs/ic-link.cjs.entry.js.map +1 -1
  39. package/dist/cjs/ic-menu-group.cjs.entry.js +2 -2
  40. package/dist/cjs/ic-menu-item.cjs.entry.js +1 -1
  41. package/dist/cjs/ic-navigation-button.cjs.entry.js +40 -40
  42. package/dist/cjs/ic-navigation-button.cjs.entry.js.map +1 -1
  43. package/dist/cjs/ic-navigation-group.cjs.entry.js +7 -4
  44. package/dist/cjs/ic-navigation-group.cjs.entry.js.map +1 -1
  45. package/dist/cjs/ic-navigation-item.cjs.entry.js +5 -8
  46. package/dist/cjs/ic-navigation-item.cjs.entry.js.map +1 -1
  47. package/dist/cjs/ic-navigation-menu.cjs.entry.js +5 -5
  48. package/dist/cjs/ic-page-header.cjs.entry.js +7 -7
  49. package/dist/cjs/ic-pagination-item.cjs.entry.js +2 -2
  50. package/dist/cjs/ic-pagination.cjs.entry.js +5 -5
  51. package/dist/cjs/ic-popover-menu.cjs.entry.js +16 -11
  52. package/dist/cjs/ic-popover-menu.cjs.entry.js.map +1 -1
  53. package/dist/cjs/ic-radio-group.cjs.entry.js +6 -6
  54. package/dist/cjs/ic-radio-group.cjs.entry.js.map +1 -1
  55. package/dist/cjs/ic-radio-option.cjs.entry.js +5 -5
  56. package/dist/cjs/ic-search-bar.cjs.entry.js +29 -13
  57. package/dist/cjs/ic-search-bar.cjs.entry.js.map +1 -1
  58. package/dist/cjs/ic-section-container.cjs.entry.js +2 -2
  59. package/dist/cjs/ic-select.cjs.entry.js +9 -9
  60. package/dist/cjs/ic-select.cjs.entry.js.map +1 -1
  61. package/dist/cjs/ic-side-navigation.cjs.entry.js +16 -17
  62. package/dist/cjs/ic-side-navigation.cjs.entry.js.map +1 -1
  63. package/dist/cjs/ic-skeleton.cjs.entry.js +2 -2
  64. package/dist/cjs/ic-skip-link.cjs.entry.js +2 -2
  65. package/dist/cjs/ic-status-tag.cjs.entry.js +3 -3
  66. package/dist/cjs/ic-step.cjs.entry.js +14 -14
  67. package/dist/cjs/ic-stepper.cjs.entry.js +3 -3
  68. package/dist/cjs/ic-switch.cjs.entry.js +6 -6
  69. package/dist/cjs/ic-switch.cjs.entry.js.map +1 -1
  70. package/dist/cjs/ic-tab-context.cjs.entry.js +1 -1
  71. package/dist/cjs/ic-tab-group.cjs.entry.js +3 -3
  72. package/dist/cjs/ic-tab-panel.cjs.entry.js +2 -2
  73. package/dist/cjs/ic-tab.cjs.entry.js +1 -1
  74. package/dist/cjs/ic-text-field.cjs.entry.js +9 -9
  75. package/dist/cjs/ic-text-field.cjs.entry.js.map +1 -1
  76. package/dist/cjs/ic-theme.cjs.entry.js +2 -2
  77. package/dist/cjs/ic-toast-region.cjs.entry.js +1 -1
  78. package/dist/cjs/ic-toast.cjs.entry.js +4 -4
  79. package/dist/cjs/ic-toggle-button-group.cjs.entry.js +3 -3
  80. package/dist/cjs/ic-toggle-button.cjs.entry.js +3 -3
  81. package/dist/cjs/ic-top-navigation.cjs.entry.js +15 -9
  82. package/dist/cjs/ic-top-navigation.cjs.entry.js.map +1 -1
  83. package/dist/cjs/ic-typography.cjs.entry.js +3 -3
  84. package/dist/cjs/loader.cjs.js +1 -1
  85. package/dist/collection/ag-theme-icds.css +24 -4
  86. package/dist/collection/components/ic-alert/ic-alert.js +7 -7
  87. package/dist/collection/components/ic-alert/ic-alert.js.map +1 -1
  88. package/dist/collection/components/ic-badge/ic-badge.js +12 -3
  89. package/dist/collection/components/ic-badge/ic-badge.js.map +1 -1
  90. package/dist/collection/components/ic-button/ic-button.css +8 -0
  91. package/dist/collection/components/ic-button/ic-button.js +3 -3
  92. package/dist/collection/components/ic-button/ic-button.js.map +1 -1
  93. package/dist/collection/components/ic-button/ic-button.stories.js +13 -5
  94. package/dist/collection/components/ic-checkbox/ic-checkbox.css +4 -1
  95. package/dist/collection/components/ic-checkbox/ic-checkbox.js +7 -6
  96. package/dist/collection/components/ic-checkbox/ic-checkbox.js.map +1 -1
  97. package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.css +21 -2
  98. package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.js +6 -3
  99. package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.js.map +1 -1
  100. package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.stories.js +22 -0
  101. package/dist/collection/components/ic-data-list/ic-data-list.js +2 -2
  102. package/dist/collection/components/ic-data-row/ic-data-row.js +2 -2
  103. package/dist/collection/components/ic-dialog/ic-dialog.js +2 -2
  104. package/dist/collection/components/ic-dialog/ic-dialog.js.map +1 -1
  105. package/dist/collection/components/ic-dialog/ic-dialog.stories.js +39 -30
  106. package/dist/collection/components/ic-divider/ic-divider.stories.js +3 -3
  107. package/dist/collection/components/ic-empty-state/ic-empty-state.js +2 -2
  108. package/dist/collection/components/ic-footer/ic-footer.stories.js +1 -1
  109. package/dist/collection/components/ic-footer-link/ic-footer-link.css +1 -1
  110. package/dist/collection/components/ic-footer-link/ic-footer-link.js +2 -2
  111. package/dist/collection/components/ic-hero/ic-hero.js +4 -4
  112. package/dist/collection/components/ic-horizontal-scroll/ic-horizontal-scroll.js +5 -5
  113. package/dist/collection/components/ic-input-component-container/ic-input-component-container.js +3 -3
  114. package/dist/collection/components/ic-input-container/ic-input-container.js +2 -2
  115. package/dist/collection/components/ic-input-label/ic-input-label.css +3 -2
  116. package/dist/collection/components/ic-input-label/ic-input-label.js +31 -8
  117. package/dist/collection/components/ic-input-label/ic-input-label.js.map +1 -1
  118. package/dist/collection/components/ic-input-validation/ic-input-validation.js +3 -3
  119. package/dist/collection/components/ic-link/ic-link.css +6 -2
  120. package/dist/collection/components/ic-link/ic-link.js +1 -1
  121. package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.css +3 -3
  122. package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.js +208 -214
  123. package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.js.map +1 -1
  124. package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.stories.js +5 -5
  125. package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.types.js.map +1 -1
  126. package/dist/collection/components/ic-menu/ic-menu.js +56 -10
  127. package/dist/collection/components/ic-menu/ic-menu.js.map +1 -1
  128. package/dist/collection/components/ic-menu-group/ic-menu-group.js +1 -1
  129. package/dist/collection/components/ic-navigation-button/ic-navigation-button.css +8 -0
  130. package/dist/collection/components/ic-navigation-button/ic-navigation-button.js +53 -47
  131. package/dist/collection/components/ic-navigation-button/ic-navigation-button.js.map +1 -1
  132. package/dist/collection/components/ic-navigation-group/ic-navigation-group.js +26 -4
  133. package/dist/collection/components/ic-navigation-group/ic-navigation-group.js.map +1 -1
  134. package/dist/collection/components/ic-navigation-item/ic-navigation-item.css +7 -6
  135. package/dist/collection/components/ic-navigation-item/ic-navigation-item.js +3 -6
  136. package/dist/collection/components/ic-navigation-item/ic-navigation-item.js.map +1 -1
  137. package/dist/collection/components/ic-navigation-menu/ic-navigation-menu.js +4 -4
  138. package/dist/collection/components/ic-page-header/ic-page-header.js +6 -6
  139. package/dist/collection/components/ic-pagination/ic-pagination.js +4 -4
  140. package/dist/collection/components/ic-pagination-item/ic-pagination-item.js +1 -1
  141. package/dist/collection/components/ic-popover-menu/ic-popover-menu.css +0 -1
  142. package/dist/collection/components/ic-popover-menu/ic-popover-menu.js +57 -11
  143. package/dist/collection/components/ic-popover-menu/ic-popover-menu.js.map +1 -1
  144. package/dist/collection/components/ic-radio-group/ic-radio-group.css +10 -2
  145. package/dist/collection/components/ic-radio-group/ic-radio-group.js +7 -4
  146. package/dist/collection/components/ic-radio-group/ic-radio-group.js.map +1 -1
  147. package/dist/collection/components/ic-radio-group/ic-radio-group.stories.js +22 -0
  148. package/dist/collection/components/ic-radio-option/ic-radio-option.js +4 -4
  149. package/dist/collection/components/ic-search-bar/ic-search-bar.css +1 -1
  150. package/dist/collection/components/ic-search-bar/ic-search-bar.js +53 -11
  151. package/dist/collection/components/ic-search-bar/ic-search-bar.js.map +1 -1
  152. package/dist/collection/components/ic-search-bar/ic-search-bar.stories.js +20 -10
  153. package/dist/collection/components/ic-section-container/ic-section-container.js +2 -2
  154. package/dist/collection/components/ic-select/ic-select.css +2 -2
  155. package/dist/collection/components/ic-select/ic-select.js +8 -7
  156. package/dist/collection/components/ic-select/ic-select.js.map +1 -1
  157. package/dist/collection/components/ic-select/ic-select_(multi).stories.js +21 -13
  158. package/dist/collection/components/ic-select/ic-select_(searchable).stories.js +21 -13
  159. package/dist/collection/components/ic-select/ic-select_(single).stories.js +17 -9
  160. package/dist/collection/components/ic-side-navigation/ic-side-navigation.js +15 -16
  161. package/dist/collection/components/ic-side-navigation/ic-side-navigation.js.map +1 -1
  162. package/dist/collection/components/ic-side-navigation/ic-side-navigation.stories.js +143 -0
  163. package/dist/collection/components/ic-skeleton/ic-skeleton.js +2 -2
  164. package/dist/collection/components/ic-skip-link/ic-skip-link.js +2 -2
  165. package/dist/collection/components/ic-status-tag/ic-status-tag.js +2 -2
  166. package/dist/collection/components/ic-step/ic-step.js +13 -13
  167. package/dist/collection/components/ic-stepper/ic-stepper.js +2 -2
  168. package/dist/collection/components/ic-switch/ic-switch.css +5 -11
  169. package/dist/collection/components/ic-switch/ic-switch.js +5 -4
  170. package/dist/collection/components/ic-switch/ic-switch.js.map +1 -1
  171. package/dist/collection/components/ic-switch/ic-switch.stories.js +8 -1
  172. package/dist/collection/components/ic-tab-context/ic-tab-context.js +1 -1
  173. package/dist/collection/components/ic-tab-group/ic-tab-group.js +2 -2
  174. package/dist/collection/components/ic-tab-panel/ic-tab-panel.js +2 -2
  175. package/dist/collection/components/ic-text-field/ic-text-field.css +1 -1
  176. package/dist/collection/components/ic-text-field/ic-text-field.js +8 -7
  177. package/dist/collection/components/ic-text-field/ic-text-field.js.map +1 -1
  178. package/dist/collection/components/ic-text-field/ic-text-field.stories.js +12 -1
  179. package/dist/collection/components/ic-theme/ic-theme.js +1 -1
  180. package/dist/collection/components/ic-toast/ic-toast.js +3 -3
  181. package/dist/collection/components/ic-toast-region/ic-toast-region.js +1 -1
  182. package/dist/collection/components/ic-toggle-button/ic-toggle-button.js +2 -2
  183. package/dist/collection/components/ic-toggle-button-group/ic-toggle-button-group.js +2 -2
  184. package/dist/collection/components/ic-tooltip/ic-tooltip.js +11 -2
  185. package/dist/collection/components/ic-tooltip/ic-tooltip.js.map +1 -1
  186. package/dist/collection/components/ic-tooltip/ic-tooltip.stories.js +33 -0
  187. package/dist/collection/components/ic-top-navigation/ic-top-navigation.css +1 -0
  188. package/dist/collection/components/ic-top-navigation/ic-top-navigation.js +13 -7
  189. package/dist/collection/components/ic-top-navigation/ic-top-navigation.js.map +1 -1
  190. package/dist/collection/components/ic-top-navigation/ic-top-navigation.stories.js +19 -2
  191. package/dist/collection/components/ic-typography/ic-typography.js +2 -2
  192. package/dist/collection/patterns/z-index.stories.js +2 -1
  193. package/dist/collection/utils/constants.js +1 -1
  194. package/dist/collection/utils/constants.js.map +1 -1
  195. package/dist/collection/utils/helpers.js +39 -30
  196. package/dist/collection/utils/helpers.js.map +1 -1
  197. package/dist/components/helpers.js +41 -32
  198. package/dist/components/helpers.js.map +1 -1
  199. package/dist/components/ic-alert.js +7 -7
  200. package/dist/components/ic-alert.js.map +1 -1
  201. package/dist/components/ic-badge.js +12 -3
  202. package/dist/components/ic-badge.js.map +1 -1
  203. package/dist/components/ic-button2.js +4 -4
  204. package/dist/components/ic-button2.js.map +1 -1
  205. package/dist/components/ic-checkbox-group.js +4 -4
  206. package/dist/components/ic-checkbox-group.js.map +1 -1
  207. package/dist/components/ic-checkbox.js +8 -7
  208. package/dist/components/ic-checkbox.js.map +1 -1
  209. package/dist/components/ic-data-list.js +2 -2
  210. package/dist/components/ic-data-row.js +2 -2
  211. package/dist/components/ic-dialog.js +2 -2
  212. package/dist/components/ic-dialog.js.map +1 -1
  213. package/dist/components/ic-empty-state.js +2 -2
  214. package/dist/components/ic-footer-link.js +3 -3
  215. package/dist/components/ic-footer-link.js.map +1 -1
  216. package/dist/components/ic-hero.js +4 -4
  217. package/dist/components/ic-horizontal-scroll2.js +5 -5
  218. package/dist/components/ic-input-component-container2.js +3 -3
  219. package/dist/components/ic-input-container2.js +2 -2
  220. package/dist/components/ic-input-label2.js +33 -10
  221. package/dist/components/ic-input-label2.js.map +1 -1
  222. package/dist/components/ic-input-validation2.js +3 -3
  223. package/dist/components/ic-link2.js +2 -2
  224. package/dist/components/ic-link2.js.map +1 -1
  225. package/dist/components/ic-loading-indicator2.js +136 -145
  226. package/dist/components/ic-loading-indicator2.js.map +1 -1
  227. package/dist/components/ic-menu-group.js +1 -1
  228. package/dist/components/ic-menu2.js +16 -9
  229. package/dist/components/ic-menu2.js.map +1 -1
  230. package/dist/components/ic-navigation-button.js +43 -43
  231. package/dist/components/ic-navigation-button.js.map +1 -1
  232. package/dist/components/ic-navigation-group.js +8 -5
  233. package/dist/components/ic-navigation-group.js.map +1 -1
  234. package/dist/components/ic-navigation-item.js +5 -8
  235. package/dist/components/ic-navigation-item.js.map +1 -1
  236. package/dist/components/ic-navigation-menu2.js +5 -5
  237. package/dist/components/ic-page-header.js +6 -6
  238. package/dist/components/ic-pagination-item2.js +2 -2
  239. package/dist/components/ic-pagination.js +4 -4
  240. package/dist/components/ic-popover-menu.js +18 -11
  241. package/dist/components/ic-popover-menu.js.map +1 -1
  242. package/dist/components/ic-radio-group.js +5 -5
  243. package/dist/components/ic-radio-group.js.map +1 -1
  244. package/dist/components/ic-radio-option.js +4 -4
  245. package/dist/components/ic-search-bar.js +32 -13
  246. package/dist/components/ic-search-bar.js.map +1 -1
  247. package/dist/components/ic-section-container2.js +2 -2
  248. package/dist/components/ic-select.js +9 -9
  249. package/dist/components/ic-select.js.map +1 -1
  250. package/dist/components/ic-side-navigation.js +16 -17
  251. package/dist/components/ic-side-navigation.js.map +1 -1
  252. package/dist/components/ic-skeleton.js +2 -2
  253. package/dist/components/ic-skip-link.js +2 -2
  254. package/dist/components/ic-status-tag.js +2 -2
  255. package/dist/components/ic-step.js +13 -13
  256. package/dist/components/ic-stepper.js +2 -2
  257. package/dist/components/ic-switch.js +5 -5
  258. package/dist/components/ic-switch.js.map +1 -1
  259. package/dist/components/ic-tab-context.js +1 -1
  260. package/dist/components/ic-tab-group.js +2 -2
  261. package/dist/components/ic-tab-panel.js +2 -2
  262. package/dist/components/ic-text-field.js +9 -9
  263. package/dist/components/ic-text-field.js.map +1 -1
  264. package/dist/components/ic-theme.js +2 -2
  265. package/dist/components/ic-toast-region.js +1 -1
  266. package/dist/components/ic-toast.js +4 -4
  267. package/dist/components/ic-toggle-button-group.js +2 -2
  268. package/dist/components/ic-toggle-button.js +3 -3
  269. package/dist/components/ic-tooltip2.js +12 -4
  270. package/dist/components/ic-tooltip2.js.map +1 -1
  271. package/dist/components/ic-top-navigation.js +15 -9
  272. package/dist/components/ic-top-navigation.js.map +1 -1
  273. package/dist/components/ic-typography2.js +2 -2
  274. package/dist/core/ag-theme-icds.css +24 -4
  275. package/dist/core/core.css +67 -49
  276. package/dist/core/core.esm.js +1 -1
  277. package/dist/core/core.esm.js.map +1 -1
  278. package/dist/core/{p-2c371198.entry.js → p-0179fbd3.entry.js} +2 -2
  279. package/dist/core/{p-d8ce39ac.entry.js → p-0549305b.entry.js} +2 -2
  280. package/dist/core/p-056be0df.entry.js +2 -0
  281. package/dist/core/p-056be0df.entry.js.map +1 -0
  282. package/dist/core/{p-56fb0298.entry.js → p-06b0d0f6.entry.js} +2 -2
  283. package/dist/core/{p-fa38ad2e.entry.js → p-06e80441.entry.js} +2 -2
  284. package/dist/core/{p-aad2abbf.entry.js → p-08567369.entry.js} +2 -2
  285. package/dist/core/p-08567369.entry.js.map +1 -0
  286. package/dist/core/{p-c5ffe2cf.entry.js → p-0f86ea09.entry.js} +2 -2
  287. package/dist/core/{p-56e0de32.entry.js → p-29468171.entry.js} +2 -2
  288. package/dist/core/{p-9c47521d.entry.js → p-2ec0d11c.entry.js} +2 -2
  289. package/dist/core/{p-9a6dc8b1.entry.js → p-3194e46c.entry.js} +2 -2
  290. package/dist/core/{p-dee21f6d.entry.js → p-3448c713.entry.js} +2 -2
  291. package/dist/core/p-421b5f2d.entry.js +2 -0
  292. package/dist/core/p-421b5f2d.entry.js.map +1 -0
  293. package/dist/core/{p-cfa9ed7d.entry.js → p-4301e11e.entry.js} +2 -2
  294. package/dist/core/{p-1d254b71.entry.js → p-43b98687.entry.js} +2 -2
  295. package/dist/core/{p-1d254b71.entry.js.map → p-43b98687.entry.js.map} +1 -1
  296. package/dist/core/{p-87fa5add.entry.js → p-4935b899.entry.js} +2 -2
  297. package/dist/core/p-4935b899.entry.js.map +1 -0
  298. package/dist/core/p-4b8bfb59.entry.js +2 -0
  299. package/dist/core/p-4b8bfb59.entry.js.map +1 -0
  300. package/dist/core/{p-a17499ff.entry.js → p-4cd83bfe.entry.js} +2 -2
  301. package/dist/core/{p-6eea869b.entry.js → p-50d13439.entry.js} +2 -2
  302. package/dist/core/p-554c555f.entry.js +2 -0
  303. package/dist/core/p-554c555f.entry.js.map +1 -0
  304. package/dist/core/p-57309502.entry.js +2 -0
  305. package/dist/core/p-57309502.entry.js.map +1 -0
  306. package/dist/core/{p-d82b27df.entry.js → p-5fb58cc8.entry.js} +2 -2
  307. package/dist/core/p-627f7172.entry.js +2 -0
  308. package/dist/core/p-627f7172.entry.js.map +1 -0
  309. package/dist/core/{p-d4903dcd.entry.js → p-6dd73165.entry.js} +2 -2
  310. package/dist/core/p-70abcb2b.js +2 -0
  311. package/dist/core/p-70abcb2b.js.map +1 -0
  312. package/dist/core/p-773ded36.entry.js +2 -0
  313. package/dist/core/p-773ded36.entry.js.map +1 -0
  314. package/dist/core/{p-c8cf1ad5.entry.js → p-77750efc.entry.js} +2 -2
  315. package/dist/core/p-7b9e10a0.entry.js +2 -0
  316. package/dist/core/p-7b9e10a0.entry.js.map +1 -0
  317. package/dist/core/{p-26dfc4db.entry.js → p-7cada631.entry.js} +2 -2
  318. package/dist/core/p-7cada631.entry.js.map +1 -0
  319. package/dist/core/{p-51b49429.entry.js → p-8a5b0fb0.entry.js} +2 -2
  320. package/dist/core/{p-60aad45d.entry.js → p-91f6884a.entry.js} +2 -2
  321. package/dist/core/{p-60aad45d.entry.js.map → p-91f6884a.entry.js.map} +1 -1
  322. package/dist/core/p-939adcae.entry.js +2 -0
  323. package/dist/core/p-939adcae.entry.js.map +1 -0
  324. package/dist/core/{p-628c32b8.entry.js → p-948086f4.entry.js} +2 -2
  325. package/dist/core/{p-5eb2ac90.entry.js → p-97f67617.entry.js} +2 -2
  326. package/dist/core/{p-5aec3757.entry.js → p-98869fe7.entry.js} +2 -2
  327. package/dist/core/{p-8958c60f.entry.js → p-9caa9e7b.entry.js} +2 -2
  328. package/dist/core/{p-aad10013.entry.js → p-9d5e4b62.entry.js} +2 -2
  329. package/dist/core/{p-3cb4ecef.entry.js → p-9e051db4.entry.js} +2 -2
  330. package/dist/core/{p-e38fddbb.entry.js → p-9ed5f11d.entry.js} +2 -2
  331. package/dist/core/p-9ed5f11d.entry.js.map +1 -0
  332. package/dist/core/{p-dcce0dfd.entry.js → p-a2ae5d9e.entry.js} +2 -2
  333. package/dist/core/p-a591ef38.entry.js +2 -0
  334. package/dist/core/p-a591ef38.entry.js.map +1 -0
  335. package/dist/core/p-ae2ea264.entry.js +2 -0
  336. package/dist/core/{p-887e00bb.entry.js.map → p-ae2ea264.entry.js.map} +1 -1
  337. package/dist/core/{p-ef36181d.entry.js → p-afde0edc.entry.js} +2 -2
  338. package/dist/core/{p-e2629bfe.entry.js → p-b1b27b7e.entry.js} +2 -2
  339. package/dist/core/p-b730963a.entry.js +2 -0
  340. package/dist/core/p-b730963a.entry.js.map +1 -0
  341. package/dist/core/{p-6cd0b010.entry.js → p-b83cca09.entry.js} +2 -2
  342. package/dist/core/{p-ef4b752c.entry.js → p-ba89fa16.entry.js} +2 -2
  343. package/dist/core/{p-dfc8cba6.entry.js → p-bb21268f.entry.js} +2 -2
  344. package/dist/core/p-bb21268f.entry.js.map +1 -0
  345. package/dist/core/{p-a140bcaa.entry.js → p-c100724d.entry.js} +2 -2
  346. package/dist/core/p-cd42b7c0.entry.js +2 -0
  347. package/dist/core/p-cd42b7c0.entry.js.map +1 -0
  348. package/dist/core/{p-8c77dd65.entry.js → p-cd8dab55.entry.js} +2 -2
  349. package/dist/core/{p-513628ef.entry.js → p-ce916f35.entry.js} +2 -2
  350. package/dist/core/{p-de1e04ac.entry.js → p-d281c3cf.entry.js} +2 -2
  351. package/dist/core/p-d7c8f10d.entry.js +2 -0
  352. package/dist/core/p-d7c8f10d.entry.js.map +1 -0
  353. package/dist/core/{p-fc4f7180.entry.js → p-e29ba8bd.entry.js} +2 -2
  354. package/dist/core/{p-7d2c07e2.entry.js → p-ec1657fc.entry.js} +2 -2
  355. package/dist/core/{p-4a2acb2e.entry.js → p-f4ee5fbb.entry.js} +2 -2
  356. package/dist/core/p-f9491692.entry.js +2 -0
  357. package/dist/core/p-f9491692.entry.js.map +1 -0
  358. package/dist/core/{p-23536595.entry.js → p-fb6e6ac4.entry.js} +2 -2
  359. package/dist/core/{p-bf3b853e.entry.js → p-fc5661ac.entry.js} +2 -2
  360. package/dist/core/{p-1d172032.entry.js → p-ff47772c.entry.js} +2 -2
  361. package/dist/esm/core.js +1 -1
  362. package/dist/esm/{helpers-f2ffaa7c.js → helpers-f5ff3b42.js} +42 -33
  363. package/dist/esm/helpers-f5ff3b42.js.map +1 -0
  364. package/dist/esm/ic-accordion-group.entry.js +1 -1
  365. package/dist/esm/ic-accordion.entry.js +1 -1
  366. package/dist/esm/ic-alert.entry.js +8 -8
  367. package/dist/esm/ic-alert.entry.js.map +1 -1
  368. package/dist/esm/ic-back-to-top.entry.js +1 -1
  369. package/dist/esm/ic-badge.entry.js +13 -4
  370. package/dist/esm/ic-badge.entry.js.map +1 -1
  371. package/dist/esm/ic-breadcrumb-group.entry.js +1 -1
  372. package/dist/esm/ic-breadcrumb.entry.js +1 -1
  373. package/dist/esm/ic-button_3.entry.js +143 -148
  374. package/dist/esm/ic-button_3.entry.js.map +1 -1
  375. package/dist/esm/ic-card-vertical.entry.js +1 -1
  376. package/dist/esm/ic-checkbox-group.entry.js +5 -5
  377. package/dist/esm/ic-checkbox-group.entry.js.map +1 -1
  378. package/dist/esm/ic-checkbox.entry.js +9 -8
  379. package/dist/esm/ic-checkbox.entry.js.map +1 -1
  380. package/dist/esm/ic-chip.entry.js +1 -1
  381. package/dist/esm/ic-data-list.entry.js +2 -2
  382. package/dist/esm/ic-data-row.entry.js +3 -3
  383. package/dist/esm/ic-dialog.entry.js +3 -3
  384. package/dist/esm/ic-dialog.entry.js.map +1 -1
  385. package/dist/esm/ic-divider.entry.js +1 -1
  386. package/dist/esm/ic-empty-state.entry.js +3 -3
  387. package/dist/esm/ic-footer-link-group.entry.js +1 -1
  388. package/dist/esm/ic-footer-link.entry.js +4 -4
  389. package/dist/esm/ic-footer-link.entry.js.map +1 -1
  390. package/dist/esm/ic-footer.entry.js +1 -1
  391. package/dist/esm/ic-hero.entry.js +5 -5
  392. package/dist/esm/ic-horizontal-scroll.entry.js +6 -6
  393. package/dist/esm/ic-input-component-container_3.entry.js +19 -14
  394. package/dist/esm/ic-input-component-container_3.entry.js.map +1 -1
  395. package/dist/esm/ic-input-label_2.entry.js +36 -13
  396. package/dist/esm/ic-input-label_2.entry.js.map +1 -1
  397. package/dist/esm/ic-link.entry.js +3 -3
  398. package/dist/esm/ic-link.entry.js.map +1 -1
  399. package/dist/esm/ic-menu-group.entry.js +2 -2
  400. package/dist/esm/ic-menu-item.entry.js +1 -1
  401. package/dist/esm/ic-navigation-button.entry.js +40 -40
  402. package/dist/esm/ic-navigation-button.entry.js.map +1 -1
  403. package/dist/esm/ic-navigation-group.entry.js +7 -4
  404. package/dist/esm/ic-navigation-group.entry.js.map +1 -1
  405. package/dist/esm/ic-navigation-item.entry.js +5 -8
  406. package/dist/esm/ic-navigation-item.entry.js.map +1 -1
  407. package/dist/esm/ic-navigation-menu.entry.js +5 -5
  408. package/dist/esm/ic-page-header.entry.js +7 -7
  409. package/dist/esm/ic-pagination-item.entry.js +2 -2
  410. package/dist/esm/ic-pagination.entry.js +5 -5
  411. package/dist/esm/ic-popover-menu.entry.js +16 -11
  412. package/dist/esm/ic-popover-menu.entry.js.map +1 -1
  413. package/dist/esm/ic-radio-group.entry.js +6 -6
  414. package/dist/esm/ic-radio-group.entry.js.map +1 -1
  415. package/dist/esm/ic-radio-option.entry.js +5 -5
  416. package/dist/esm/ic-search-bar.entry.js +29 -13
  417. package/dist/esm/ic-search-bar.entry.js.map +1 -1
  418. package/dist/esm/ic-section-container.entry.js +2 -2
  419. package/dist/esm/ic-select.entry.js +9 -9
  420. package/dist/esm/ic-select.entry.js.map +1 -1
  421. package/dist/esm/ic-side-navigation.entry.js +16 -17
  422. package/dist/esm/ic-side-navigation.entry.js.map +1 -1
  423. package/dist/esm/ic-skeleton.entry.js +2 -2
  424. package/dist/esm/ic-skip-link.entry.js +2 -2
  425. package/dist/esm/ic-status-tag.entry.js +3 -3
  426. package/dist/esm/ic-step.entry.js +14 -14
  427. package/dist/esm/ic-stepper.entry.js +3 -3
  428. package/dist/esm/ic-switch.entry.js +6 -6
  429. package/dist/esm/ic-switch.entry.js.map +1 -1
  430. package/dist/esm/ic-tab-context.entry.js +1 -1
  431. package/dist/esm/ic-tab-group.entry.js +3 -3
  432. package/dist/esm/ic-tab-panel.entry.js +2 -2
  433. package/dist/esm/ic-tab.entry.js +1 -1
  434. package/dist/esm/ic-text-field.entry.js +9 -9
  435. package/dist/esm/ic-text-field.entry.js.map +1 -1
  436. package/dist/esm/ic-theme.entry.js +2 -2
  437. package/dist/esm/ic-toast-region.entry.js +1 -1
  438. package/dist/esm/ic-toast.entry.js +4 -4
  439. package/dist/esm/ic-toggle-button-group.entry.js +3 -3
  440. package/dist/esm/ic-toggle-button.entry.js +3 -3
  441. package/dist/esm/ic-top-navigation.entry.js +15 -9
  442. package/dist/esm/ic-top-navigation.entry.js.map +1 -1
  443. package/dist/esm/ic-typography.entry.js +3 -3
  444. package/dist/esm/loader.js +1 -1
  445. package/dist/types/components/ic-badge/ic-badge.d.ts +1 -0
  446. package/dist/types/components/ic-checkbox-group/ic-checkbox-group.d.ts +3 -0
  447. package/dist/types/components/ic-input-label/ic-input-label.d.ts +2 -0
  448. package/dist/types/components/ic-loading-indicator/ic-loading-indicator.d.ts +29 -33
  449. package/dist/types/components/ic-loading-indicator/ic-loading-indicator.types.d.ts +2 -0
  450. package/dist/types/components/ic-menu/ic-menu.d.ts +7 -0
  451. package/dist/types/components/ic-navigation-button/ic-navigation-button.d.ts +13 -5
  452. package/dist/types/components/ic-navigation-group/ic-navigation-group.d.ts +4 -1
  453. package/dist/types/components/ic-popover-menu/ic-popover-menu.d.ts +7 -0
  454. package/dist/types/components/ic-radio-group/ic-radio-group.d.ts +3 -0
  455. package/dist/types/components/ic-search-bar/ic-search-bar.d.ts +11 -0
  456. package/dist/types/components/ic-select/ic-select.d.ts +1 -0
  457. package/dist/types/components/ic-switch/ic-switch.d.ts +1 -0
  458. package/dist/types/components/ic-text-field/ic-text-field.d.ts +1 -0
  459. package/dist/types/components/ic-tooltip/ic-tooltip.d.ts +1 -0
  460. package/dist/types/components/ic-top-navigation/ic-top-navigation.d.ts +1 -0
  461. package/dist/types/components.d.ts +37 -13
  462. package/dist/types/utils/constants.d.ts +1 -1
  463. package/dist/types/utils/helpers.d.ts +3 -2
  464. package/hydrate/index.js +525 -439
  465. package/hydrate/index.mjs +525 -439
  466. package/package.json +3 -5
  467. package/vscode-data.json +8 -0
  468. package/dist/cjs/helpers-fc4016d2.js.map +0 -1
  469. package/dist/core/p-0fb68b4f.entry.js +0 -2
  470. package/dist/core/p-0fb68b4f.entry.js.map +0 -1
  471. package/dist/core/p-15b7adaf.entry.js +0 -2
  472. package/dist/core/p-15b7adaf.entry.js.map +0 -1
  473. package/dist/core/p-26dfc4db.entry.js.map +0 -1
  474. package/dist/core/p-3676ac4e.entry.js +0 -2
  475. package/dist/core/p-3676ac4e.entry.js.map +0 -1
  476. package/dist/core/p-432aeae0.entry.js +0 -2
  477. package/dist/core/p-432aeae0.entry.js.map +0 -1
  478. package/dist/core/p-4dc97b03.entry.js +0 -2
  479. package/dist/core/p-4dc97b03.entry.js.map +0 -1
  480. package/dist/core/p-4e48a671.entry.js +0 -2
  481. package/dist/core/p-4e48a671.entry.js.map +0 -1
  482. package/dist/core/p-554845c4.entry.js +0 -2
  483. package/dist/core/p-554845c4.entry.js.map +0 -1
  484. package/dist/core/p-59b48450.entry.js +0 -2
  485. package/dist/core/p-59b48450.entry.js.map +0 -1
  486. package/dist/core/p-7d352865.entry.js +0 -2
  487. package/dist/core/p-7d352865.entry.js.map +0 -1
  488. package/dist/core/p-7deaf128.entry.js +0 -2
  489. package/dist/core/p-7deaf128.entry.js.map +0 -1
  490. package/dist/core/p-803f2eb8.entry.js +0 -2
  491. package/dist/core/p-803f2eb8.entry.js.map +0 -1
  492. package/dist/core/p-8242c24f.js +0 -2
  493. package/dist/core/p-8242c24f.js.map +0 -1
  494. package/dist/core/p-87fa5add.entry.js.map +0 -1
  495. package/dist/core/p-887e00bb.entry.js +0 -2
  496. package/dist/core/p-aad2abbf.entry.js.map +0 -1
  497. package/dist/core/p-bdcc79dd.entry.js +0 -2
  498. package/dist/core/p-bdcc79dd.entry.js.map +0 -1
  499. package/dist/core/p-c59fd23e.entry.js +0 -2
  500. package/dist/core/p-c59fd23e.entry.js.map +0 -1
  501. package/dist/core/p-dfc8cba6.entry.js.map +0 -1
  502. package/dist/core/p-e38fddbb.entry.js.map +0 -1
  503. package/dist/core/p-eca6e215.entry.js +0 -2
  504. package/dist/core/p-eca6e215.entry.js.map +0 -1
  505. package/dist/esm/helpers-f2ffaa7c.js.map +0 -1
  506. /package/dist/core/{p-2c371198.entry.js.map → p-0179fbd3.entry.js.map} +0 -0
  507. /package/dist/core/{p-d8ce39ac.entry.js.map → p-0549305b.entry.js.map} +0 -0
  508. /package/dist/core/{p-56fb0298.entry.js.map → p-06b0d0f6.entry.js.map} +0 -0
  509. /package/dist/core/{p-fa38ad2e.entry.js.map → p-06e80441.entry.js.map} +0 -0
  510. /package/dist/core/{p-c5ffe2cf.entry.js.map → p-0f86ea09.entry.js.map} +0 -0
  511. /package/dist/core/{p-56e0de32.entry.js.map → p-29468171.entry.js.map} +0 -0
  512. /package/dist/core/{p-9c47521d.entry.js.map → p-2ec0d11c.entry.js.map} +0 -0
  513. /package/dist/core/{p-9a6dc8b1.entry.js.map → p-3194e46c.entry.js.map} +0 -0
  514. /package/dist/core/{p-dee21f6d.entry.js.map → p-3448c713.entry.js.map} +0 -0
  515. /package/dist/core/{p-cfa9ed7d.entry.js.map → p-4301e11e.entry.js.map} +0 -0
  516. /package/dist/core/{p-a17499ff.entry.js.map → p-4cd83bfe.entry.js.map} +0 -0
  517. /package/dist/core/{p-6eea869b.entry.js.map → p-50d13439.entry.js.map} +0 -0
  518. /package/dist/core/{p-d82b27df.entry.js.map → p-5fb58cc8.entry.js.map} +0 -0
  519. /package/dist/core/{p-d4903dcd.entry.js.map → p-6dd73165.entry.js.map} +0 -0
  520. /package/dist/core/{p-c8cf1ad5.entry.js.map → p-77750efc.entry.js.map} +0 -0
  521. /package/dist/core/{p-51b49429.entry.js.map → p-8a5b0fb0.entry.js.map} +0 -0
  522. /package/dist/core/{p-628c32b8.entry.js.map → p-948086f4.entry.js.map} +0 -0
  523. /package/dist/core/{p-5eb2ac90.entry.js.map → p-97f67617.entry.js.map} +0 -0
  524. /package/dist/core/{p-5aec3757.entry.js.map → p-98869fe7.entry.js.map} +0 -0
  525. /package/dist/core/{p-8958c60f.entry.js.map → p-9caa9e7b.entry.js.map} +0 -0
  526. /package/dist/core/{p-aad10013.entry.js.map → p-9d5e4b62.entry.js.map} +0 -0
  527. /package/dist/core/{p-3cb4ecef.entry.js.map → p-9e051db4.entry.js.map} +0 -0
  528. /package/dist/core/{p-dcce0dfd.entry.js.map → p-a2ae5d9e.entry.js.map} +0 -0
  529. /package/dist/core/{p-ef36181d.entry.js.map → p-afde0edc.entry.js.map} +0 -0
  530. /package/dist/core/{p-e2629bfe.entry.js.map → p-b1b27b7e.entry.js.map} +0 -0
  531. /package/dist/core/{p-6cd0b010.entry.js.map → p-b83cca09.entry.js.map} +0 -0
  532. /package/dist/core/{p-ef4b752c.entry.js.map → p-ba89fa16.entry.js.map} +0 -0
  533. /package/dist/core/{p-a140bcaa.entry.js.map → p-c100724d.entry.js.map} +0 -0
  534. /package/dist/core/{p-8c77dd65.entry.js.map → p-cd8dab55.entry.js.map} +0 -0
  535. /package/dist/core/{p-513628ef.entry.js.map → p-ce916f35.entry.js.map} +0 -0
  536. /package/dist/core/{p-de1e04ac.entry.js.map → p-d281c3cf.entry.js.map} +0 -0
  537. /package/dist/core/{p-fc4f7180.entry.js.map → p-e29ba8bd.entry.js.map} +0 -0
  538. /package/dist/core/{p-7d2c07e2.entry.js.map → p-ec1657fc.entry.js.map} +0 -0
  539. /package/dist/core/{p-4a2acb2e.entry.js.map → p-f4ee5fbb.entry.js.map} +0 -0
  540. /package/dist/core/{p-23536595.entry.js.map → p-fb6e6ac4.entry.js.map} +0 -0
  541. /package/dist/core/{p-bf3b853e.entry.js.map → p-fc5661ac.entry.js.map} +0 -0
  542. /package/dist/core/{p-1d172032.entry.js.map → p-ff47772c.entry.js.map} +0 -0
@@ -1,6 +1,20 @@
1
1
  import { h, Host } from "@stencil/core";
2
+ const LOADING_INDICATOR_WIDTHS = {
3
+ large: 120,
4
+ medium: 80,
5
+ small: 40,
6
+ icon: 20,
7
+ };
2
8
  export class LoadingIndicator {
3
9
  constructor() {
10
+ this.labelList = [];
11
+ this.circularDiameter = 0;
12
+ this.circularLineWidth = 0;
13
+ this.circularDimensions = {
14
+ x: 0,
15
+ y: 0,
16
+ r: 0,
17
+ };
4
18
  this.clipInnerElement = false;
5
19
  /**
6
20
  * The description that will be set as the aria-label of the loading indicator when not using a visible label.
@@ -32,185 +46,156 @@ export class LoadingIndicator {
32
46
  * The size of the loading indicator.
33
47
  */
34
48
  this.size = "medium";
35
- /**
36
- * The type of indicator, either linear or circular.
37
- */
38
- this.type = "circular";
39
49
  /**
40
50
  * 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.
41
51
  */
42
52
  this.theme = "inherit";
43
- this.updateCircularProgressMeter = () => {
44
- if (!this.indeterminate && this.circularMeter) {
45
- this.circularMeter.style.setProperty("--progress-value", String(this.progress));
46
- }
47
- };
48
- this.getLabel = (labelIndex, setLabel) => {
49
- return new Promise(() => {
50
- this.interval = setInterval(() => {
51
- if (labelIndex < this.labelList.length - 1) {
52
- labelIndex++;
53
- }
54
- else {
55
- labelIndex = 0;
56
- }
57
- setLabel(this.labelList[labelIndex]);
58
- }, this.labelDuration);
59
- });
60
- };
53
+ /**
54
+ * The type of indicator, either linear or circular.
55
+ */
56
+ this.type = "circular";
57
+ this.getLabel = (labelIndex) => new Promise(() => {
58
+ this.interval = setInterval(() => {
59
+ if (labelIndex < this.labelList.length - 1) {
60
+ labelIndex++;
61
+ }
62
+ else {
63
+ labelIndex = 0;
64
+ }
65
+ this.indicatorLabel = this.labelList[labelIndex];
66
+ }, this.labelDuration);
67
+ });
61
68
  this.getLabelVariant = () => {
62
- var _a;
63
- let variant = "h4";
64
- const width = (_a = this.outerElement) === null || _a === void 0 ? void 0 : _a.offsetWidth;
65
- if (this.size === "small" ||
66
- (width && this.type === "circular" && width < 60)) {
67
- variant = "label";
69
+ const width = this.type === "circular" ? this.calculateWidth() : 0;
70
+ if (this.size === "small" || (width && width < 60)) {
71
+ return "label";
68
72
  }
69
- else if (this.size === "large" ||
70
- (width && this.type === "circular" && width >= 120)) {
71
- variant = "h2";
73
+ else if (this.size === "large" || width >= 120) {
74
+ return "h2";
72
75
  }
73
- return variant;
76
+ return "h4";
74
77
  };
75
- // Sets the circular indicator line width - accounting for the circle size being altered using the CSS custom property
76
- this.setCircleLineWidth = () => {
77
- const compactStepCircularLineWidth = this.el.classList.contains("compact-step-progress-indicator")
78
- ? 40
79
- : 0;
80
- const toastDismissTimerCircularLineWidth = this.el.classList.contains("toast-dismiss-timer")
81
- ? 20
82
- : 0;
78
+ this.calculateWidth = () => {
79
+ var _a, _b, _c;
80
+ if ((_a = this.outerElement) === null || _a === void 0 ? void 0 : _a.offsetWidth)
81
+ return this.outerElement.offsetWidth;
83
82
  if (this.outerElement) {
84
- const { offsetWidth: width } = this.outerElement;
85
- if (width ||
86
- compactStepCircularLineWidth ||
87
- toastDismissTimerCircularLineWidth) {
88
- this.circularLineWidth =
89
- (compactStepCircularLineWidth ||
90
- toastDismissTimerCircularLineWidth ||
91
- width) * 0.1;
92
- this.circularDiameter =
93
- compactStepCircularLineWidth ||
94
- toastDismissTimerCircularLineWidth ||
95
- width;
96
- this.outerElement.style.setProperty("--circular-line-width", `${this.circularLineWidth}px`);
83
+ const { width } = window.getComputedStyle(this.outerElement);
84
+ if (width) {
85
+ // Regex to check the units of the css string
86
+ if (((_b = width.match(/\D+$/)) === null || _b === void 0 ? void 0 : _b[0]) !== "%")
87
+ return parseFloat(width);
88
+ const parentWidth = (_c = this.outerElement.parentElement) === null || _c === void 0 ? void 0 : _c.offsetWidth;
89
+ if (parentWidth)
90
+ return parentWidth * (parseFloat(width) / 100);
97
91
  }
98
92
  }
93
+ return LOADING_INDICATOR_WIDTHS[this.size];
94
+ };
95
+ this.calculateProportion = (progress) => {
96
+ const minProgress = Math.min(this.max, Math.max(this.min, progress));
97
+ return (minProgress - this.min) / (this.max - this.min);
99
98
  };
100
99
  this.setLinearDeterminateWidth = () => {
101
- const max = this.max;
102
- const min = this.min;
103
- if (!this.innerElement)
104
- return;
105
100
  // Ensure progress cannot be out of bounds
106
- if (this.progress) {
107
- const progress = Math.min(max, Math.max(min, this.progress));
108
- const proportion = (progress - min) / (max - min);
109
- this.clipInnerElement = proportion > 0.5;
110
- if (this.clipInnerElement) {
111
- this.innerElement.classList.remove("clip");
112
- }
113
- else {
114
- this.innerElement.classList.add("clip");
115
- }
116
- this.innerElement.style.setProperty("--linear-width", `${proportion * 100}%`);
101
+ if (!this.innerElement || !this.progress)
102
+ return;
103
+ const proportion = this.calculateProportion(this.progress);
104
+ this.clipInnerElement = proportion > 0.5;
105
+ if (this.clipInnerElement) {
106
+ this.innerElement.classList.remove("clip");
117
107
  }
118
- };
119
- this.calcOuterClass = () => {
120
- let cls = `ic-loading-${this.type}-outer`;
121
- cls += this.indeterminate ? " indeterminate" : " determinate";
122
- return cls;
123
- };
124
- this.updateLabel = () => {
125
- if (this.label !== undefined) {
126
- if (typeof this.label === "string") {
127
- this.indicatorLabel = this.label;
128
- }
129
- else {
130
- this.labelList = this.label;
131
- const labelIndex = 0;
132
- this.indicatorLabel = this.labelList[labelIndex];
133
- if (this.labelList.length > 1) {
134
- this.getLabel(labelIndex, (label) => {
135
- this.indicatorLabel = label;
136
- });
137
- }
138
- }
108
+ else {
109
+ this.innerElement.classList.add("clip");
139
110
  }
111
+ this.innerElement.style.setProperty("--linear-width", `${proportion * 100}%`);
140
112
  };
141
- this.setCircleXY = () => {
142
- if (this.circularDiameter > 0) {
143
- const r = this.circularDiameter / 2;
144
- const x = r;
145
- const y = r;
146
- const nextRadius = r - this.circularLineWidth / 2;
147
- this.setDashSteps(nextRadius);
148
- return { x, y, r: nextRadius };
113
+ this.updateLabel = () => {
114
+ if (!this.label)
115
+ return;
116
+ if (typeof this.label === "string") {
117
+ this.indicatorLabel = this.label;
149
118
  }
150
- return { x: 0, y: 0, r: 0 };
151
- };
152
- this.setDashSteps = (radius) => {
153
- const dashArray = 2 * Math.PI * radius;
154
- if (this.circularMeter) {
155
- this.circularMeter.style.setProperty("--stroke-dasharray", `${dashArray}px`);
156
- if (!this.indeterminate && this.progress) {
157
- const min = this.min;
158
- const max = this.max;
159
- const progress = Math.min(Math.max(this.progress, min), max);
160
- const proportion = -1 - (progress - min) / (max - min);
161
- this.circularMeter.style.setProperty("--circular-steps-max", String(this.max));
162
- this.circularMeter.style.setProperty("--stroke-dashoffset", `${proportion * dashArray}px`);
119
+ else {
120
+ this.labelList = this.label;
121
+ this.indicatorLabel = this.labelList[0];
122
+ if (this.labelList.length > 1) {
123
+ this.getLabel(0);
163
124
  }
164
125
  }
165
126
  };
127
+ this.setCircleDimensions = () => {
128
+ if (this.circularDiameter <= 0)
129
+ return;
130
+ const r = this.circularDiameter / 2;
131
+ const nextRadius = r - this.circularLineWidth / 2;
132
+ const dashArray = 2 * Math.PI * nextRadius;
133
+ this.circularDimensions = {
134
+ x: r,
135
+ y: r,
136
+ r: nextRadius,
137
+ dashArray: `${dashArray}px`,
138
+ dashOffset: this.progress
139
+ ? `${(-1 - this.calculateProportion(this.progress)) * dashArray}px`
140
+ : undefined,
141
+ };
142
+ };
166
143
  }
167
144
  watchPropHandler() {
168
145
  this.updateLabel();
169
146
  }
170
- watchProgressHandler() {
147
+ handleProgressChange() {
148
+ if (this.type === "linear") {
149
+ this.setLinearDeterminateWidth();
150
+ }
151
+ else {
152
+ this.setCircleDimensions();
153
+ }
154
+ }
155
+ setIndicatorDimensions() {
171
156
  if (this.type === "circular") {
172
- this.updateCircularProgressMeter();
157
+ // Sets the circular indicator line width - accounting for the circle size being altered using the CSS custom property
158
+ const diameter = this.calculateWidth();
159
+ if (this.outerElement && diameter !== this.circularDiameter) {
160
+ this.circularLineWidth = diameter * 0.1;
161
+ this.circularDiameter = diameter;
162
+ this.outerElement.style.setProperty("--circular-line-width", `${this.circularLineWidth}px`);
163
+ }
164
+ this.setCircleDimensions();
165
+ }
166
+ else {
167
+ this.setLinearDeterminateWidth();
173
168
  }
174
169
  }
175
170
  disconnectedCallback() {
176
171
  clearInterval(this.interval);
177
172
  }
178
173
  componentWillLoad() {
179
- this.indeterminate = this.progress === undefined;
180
174
  this.updateLabel();
181
175
  this.el.setAttribute("exportparts", "ic-loading-container");
182
176
  }
183
177
  componentDidLoad() {
184
- var _a;
185
- if (this.type === "circular") {
186
- this.setCircleLineWidth();
187
- this.circularMeter = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(".ic-loading-circular-svg circle:nth-child(2)");
188
- this.updateCircularProgressMeter();
189
- }
190
- if (Number(this.progress) >= 0 && this.type === "linear") {
191
- this.setLinearDeterminateWidth();
192
- }
193
- }
194
- componentWillUpdate() {
195
- this.indeterminate = this.progress === undefined;
196
- }
197
- componentDidUpdate() {
198
- if (Number(this.progress) >= 0 && this.type === "linear") {
199
- this.setLinearDeterminateWidth();
200
- }
178
+ this.setIndicatorDimensions();
201
179
  }
202
180
  render() {
203
- const { theme, label, description, size, fullWidth, innerLabel, monochrome, } = this;
204
- const { x, y, r } = this.setCircleXY();
205
- return (h(Host, { key: '0031fe76c51b9cfcdb3916451bd2b56f6aac8721', class: {
181
+ const { circularDiameter, circularDimensions: { x, y, r, dashArray, dashOffset }, description, fullWidth, indicatorLabel, innerLabel, label, max, min, monochrome, progress, size, theme, type, } = this;
182
+ return (h(Host, { key: '8ee440b25dde3874c36eb6c70f3eaac1bf7649d1', class: {
206
183
  [`ic-theme-${theme}`]: theme !== "inherit",
184
+ "ic-loading-indicator-full-width": fullWidth,
207
185
  "ic-loading-indicator-label": !!label,
208
- "ic-loading-indicator-full-width": !!fullWidth,
186
+ "ic-loading-indicator-monochrome": monochrome,
187
+ } }, h("div", { key: '3d06914b8253b77c9df58d5c94a44442ea3f2d16', class: "ic-loading-container", part: "ic-loading-container" }, h("div", { key: '43a11cf45e813b5560721472c431452a761593fb', ref: (el) => (this.outerElement = el), class: {
188
+ [`ic-loading-${type}-outer`]: true,
189
+ [progress === undefined ? "indeterminate" : "determinate"]: true,
190
+ }, role: "progressbar", "aria-labelledby": label && size !== "icon" && "ic-loading-label", "aria-label": description, "aria-valuenow": progress, "aria-valuemin": min, "aria-valuemax": max }, h("div", { key: 'a95cd8ed7e58821c8ac4001c8926d202719e63f7', ref: (el) => (this.innerElement = el), class: {
191
+ [`ic-loading-${type}-inner`]: true,
209
192
  "inner-label": !!innerLabel,
210
- "ic-loading-indicator-monochrome": !!monochrome,
211
- } }, h("div", { key: 'f0d87cb81fe19c7923cab83352692a820f864353', class: "ic-loading-container", part: "ic-loading-container" }, 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 }, h("div", { key: 'e6f08d5b7d7f7d3531f26773d82bdaab8b746de6', ref: (el) => (this.innerElement = el), class: `ic-loading-${this.type}-inner` }, this.innerLabel &&
212
- this.innerLabel !== undefined &&
213
- this.size === "small" && (h("ic-typography", { key: 'e5e16b071e7886eeaeddbe5d4ba9982d2dd835ac', variant: "subtitle-small", class: "inner-text" }, this.innerLabel)), this.type === "circular" && (h("svg", { key: '242ce0f64c6b81f0495ce74844d42952d60889b1', class: "ic-loading-circular-svg", viewBox: `0 0 ${this.circularDiameter || 0} ${this.circularDiameter || 0}` }, h("circle", { key: '89efba17cfc44471af357fac9fad70a80ee8f9c2', cx: `${x}`, cy: `${y}`, r: `${r}` }), h("circle", { key: '47a39e6acf845c27e2817d563559fc332c9be3db', cx: `${x}`, cy: `${y}`, r: `${r}` }))))), label && size !== "icon" && (h("ic-typography", { key: '383cf6d17daaaaa8275b8b381e6a65334f8b832e', id: "ic-loading-label", class: "ic-loading-label", role: "status", variant: this.getLabelVariant() }, h("p", { key: 'b0009c0c194d3ebdf8b8bca21fcee5db1919ac1a' }, this.indicatorLabel))))));
193
+ } }, innerLabel && size === "small" && (h("ic-typography", { key: '04b25f8cba789f316ba2db771b4a7d30eac7fe10', variant: "subtitle-small", class: "inner-text" }, innerLabel)), type === "circular" && (h("svg", { key: 'ff98da2b3f382ad698855d7ce1b0a553dbfadae3', class: "ic-loading-circular-svg", viewBox: `0 0 ${circularDiameter} ${circularDiameter}` }, h("circle", { key: 'b53c7477ae972370739b908141776337f277fc48', cx: x, cy: y, r: r }), h("circle", { key: 'b652351de6695c077a1f276710e0fe558ff393e4', style: {
194
+ "--circular-steps-max": progress ? `${max}` : undefined,
195
+ "--progress-value": progress !== undefined ? `${progress}` : undefined,
196
+ "--stroke-dasharray": dashArray,
197
+ "--stroke-dashoffset": dashOffset,
198
+ }, cx: x, cy: y, r: r }))))), label && size !== "icon" && (h("ic-typography", { key: 'b070b1975f52606aa8df8f8575859a12ab4e7982', id: "ic-loading-label", class: "ic-loading-label", role: "alert", variant: this.getLabelVariant() }, h("p", { key: 'b654d871fff4ad30b2fa7bfff7b2756f0b7475ed' }, indicatorLabel))))));
214
199
  }
215
200
  static get is() { return "ic-loading-indicator"; }
216
201
  static get encapsulation() { return "shadow"; }
@@ -231,11 +216,11 @@ export class LoadingIndicator {
231
216
  "mutable": false,
232
217
  "complexType": {
233
218
  "original": "string",
234
- "resolved": "string | undefined",
219
+ "resolved": "string",
235
220
  "references": {}
236
221
  },
237
222
  "required": false,
238
- "optional": true,
223
+ "optional": false,
239
224
  "docs": {
240
225
  "tags": [],
241
226
  "text": "The description that will be set as the aria-label of the loading indicator when not using a visible label."
@@ -251,11 +236,11 @@ export class LoadingIndicator {
251
236
  "mutable": false,
252
237
  "complexType": {
253
238
  "original": "boolean",
254
- "resolved": "boolean | undefined",
239
+ "resolved": "boolean",
255
240
  "references": {}
256
241
  },
257
242
  "required": false,
258
- "optional": true,
243
+ "optional": false,
259
244
  "docs": {
260
245
  "tags": [],
261
246
  "text": "If `true`, when linear, the full-width variant (i.e. without a border radius) will be displayed."
@@ -288,16 +273,35 @@ export class LoadingIndicator {
288
273
  "attribute": "inner-label",
289
274
  "reflect": false
290
275
  },
276
+ "label": {
277
+ "type": "string",
278
+ "mutable": false,
279
+ "complexType": {
280
+ "original": "string | string[]",
281
+ "resolved": "string | string[] | undefined",
282
+ "references": {}
283
+ },
284
+ "required": false,
285
+ "optional": true,
286
+ "docs": {
287
+ "tags": [],
288
+ "text": "The label to be displayed beneath the loading indicator.\nDisplay a changing label by supplying an array of messages."
289
+ },
290
+ "getter": false,
291
+ "setter": false,
292
+ "attribute": "label",
293
+ "reflect": false
294
+ },
291
295
  "labelDuration": {
292
296
  "type": "number",
293
297
  "mutable": false,
294
298
  "complexType": {
295
299
  "original": "number",
296
- "resolved": "number | undefined",
300
+ "resolved": "number",
297
301
  "references": {}
298
302
  },
299
303
  "required": false,
300
- "optional": true,
304
+ "optional": false,
301
305
  "docs": {
302
306
  "tags": [],
303
307
  "text": "The time in milliseconds before the label changes."
@@ -313,11 +317,11 @@ export class LoadingIndicator {
313
317
  "mutable": false,
314
318
  "complexType": {
315
319
  "original": "number",
316
- "resolved": "number | undefined",
320
+ "resolved": "number",
317
321
  "references": {}
318
322
  },
319
323
  "required": false,
320
- "optional": true,
324
+ "optional": false,
321
325
  "docs": {
322
326
  "tags": [],
323
327
  "text": "The maximum value that the progress value can take.\nUsed to calculate the proportional width of the progress bar."
@@ -333,11 +337,11 @@ export class LoadingIndicator {
333
337
  "mutable": false,
334
338
  "complexType": {
335
339
  "original": "number",
336
- "resolved": "number | undefined",
340
+ "resolved": "number",
337
341
  "references": {}
338
342
  },
339
343
  "required": false,
340
- "optional": true,
344
+ "optional": false,
341
345
  "docs": {
342
346
  "tags": [],
343
347
  "text": "The minimum value that the progress value can take.\nUsed to calculate the proportional width of the progress bar."
@@ -353,11 +357,11 @@ export class LoadingIndicator {
353
357
  "mutable": false,
354
358
  "complexType": {
355
359
  "original": "boolean",
356
- "resolved": "boolean | undefined",
360
+ "resolved": "boolean",
357
361
  "references": {}
358
362
  },
359
363
  "required": false,
360
- "optional": true,
364
+ "optional": false,
361
365
  "docs": {
362
366
  "tags": [],
363
367
  "text": "If `true`, the element will display as black and white."
@@ -368,121 +372,102 @@ export class LoadingIndicator {
368
372
  "reflect": false,
369
373
  "defaultValue": "false"
370
374
  },
371
- "size": {
372
- "type": "string",
375
+ "progress": {
376
+ "type": "number",
373
377
  "mutable": false,
374
378
  "complexType": {
375
- "original": "IcLoadingSizes",
376
- "resolved": "\"icon\" | \"large\" | \"medium\" | \"small\" | undefined",
377
- "references": {
378
- "IcLoadingSizes": {
379
- "location": "import",
380
- "path": "./ic-loading-indicator.types",
381
- "id": "src/components/ic-loading-indicator/ic-loading-indicator.types.tsx::IcLoadingSizes"
382
- }
383
- }
379
+ "original": "number",
380
+ "resolved": "number | undefined",
381
+ "references": {}
384
382
  },
385
383
  "required": false,
386
384
  "optional": true,
387
385
  "docs": {
388
386
  "tags": [],
389
- "text": "The size of the loading indicator."
387
+ "text": "The current amount of progress made.\nIf not provided, component acts as an indeterminate loading indicator."
390
388
  },
391
389
  "getter": false,
392
390
  "setter": false,
393
- "attribute": "size",
394
- "reflect": true,
395
- "defaultValue": "\"medium\""
391
+ "attribute": "progress",
392
+ "reflect": false
396
393
  },
397
- "type": {
394
+ "size": {
398
395
  "type": "string",
399
396
  "mutable": false,
400
397
  "complexType": {
401
- "original": "IcLoadingTypes",
402
- "resolved": "\"circular\" | \"linear\" | undefined",
398
+ "original": "IcLoadingSizes",
399
+ "resolved": "\"icon\" | \"large\" | \"medium\" | \"small\"",
403
400
  "references": {
404
- "IcLoadingTypes": {
401
+ "IcLoadingSizes": {
405
402
  "location": "import",
406
403
  "path": "./ic-loading-indicator.types",
407
- "id": "src/components/ic-loading-indicator/ic-loading-indicator.types.tsx::IcLoadingTypes"
404
+ "id": "src/components/ic-loading-indicator/ic-loading-indicator.types.tsx::IcLoadingSizes"
408
405
  }
409
406
  }
410
407
  },
411
408
  "required": false,
412
- "optional": true,
409
+ "optional": false,
413
410
  "docs": {
414
411
  "tags": [],
415
- "text": "The type of indicator, either linear or circular."
412
+ "text": "The size of the loading indicator."
416
413
  },
417
414
  "getter": false,
418
415
  "setter": false,
419
- "attribute": "type",
416
+ "attribute": "size",
420
417
  "reflect": true,
421
- "defaultValue": "\"circular\""
418
+ "defaultValue": "\"medium\""
422
419
  },
423
- "label": {
420
+ "theme": {
424
421
  "type": "string",
425
422
  "mutable": false,
426
423
  "complexType": {
427
- "original": "string | string[]",
428
- "resolved": "string | string[] | undefined",
429
- "references": {}
430
- },
431
- "required": false,
432
- "optional": true,
433
- "docs": {
434
- "tags": [],
435
- "text": "The label to be displayed beneath the loading indicator.\nDisplay a changing label by supplying an array of messages."
436
- },
437
- "getter": false,
438
- "setter": false,
439
- "attribute": "label",
440
- "reflect": false
441
- },
442
- "progress": {
443
- "type": "number",
444
- "mutable": false,
445
- "complexType": {
446
- "original": "number",
447
- "resolved": "number | undefined",
448
- "references": {}
424
+ "original": "IcThemeMode",
425
+ "resolved": "\"dark\" | \"inherit\" | \"light\"",
426
+ "references": {
427
+ "IcThemeMode": {
428
+ "location": "import",
429
+ "path": "../../utils/types",
430
+ "id": "src/utils/types.ts::IcThemeMode"
431
+ }
432
+ }
449
433
  },
450
434
  "required": false,
451
- "optional": true,
435
+ "optional": false,
452
436
  "docs": {
453
437
  "tags": [],
454
- "text": "The current amount of progress made.\nIf not provided, component acts as an indeterminate loading indicator."
438
+ "text": "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."
455
439
  },
456
440
  "getter": false,
457
441
  "setter": false,
458
- "attribute": "progress",
459
- "reflect": false
442
+ "attribute": "theme",
443
+ "reflect": false,
444
+ "defaultValue": "\"inherit\""
460
445
  },
461
- "theme": {
446
+ "type": {
462
447
  "type": "string",
463
448
  "mutable": false,
464
449
  "complexType": {
465
- "original": "IcThemeMode",
466
- "resolved": "\"dark\" | \"inherit\" | \"light\" | undefined",
450
+ "original": "IcLoadingTypes",
451
+ "resolved": "\"circular\" | \"linear\"",
467
452
  "references": {
468
- "IcThemeMode": {
453
+ "IcLoadingTypes": {
469
454
  "location": "import",
470
- "path": "../../utils/types",
471
- "id": "src/utils/types.ts::IcThemeMode"
455
+ "path": "./ic-loading-indicator.types",
456
+ "id": "src/components/ic-loading-indicator/ic-loading-indicator.types.tsx::IcLoadingTypes"
472
457
  }
473
458
  }
474
459
  },
475
460
  "required": false,
476
- "optional": true,
461
+ "optional": false,
477
462
  "docs": {
478
463
  "tags": [],
479
- "text": "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."
464
+ "text": "The type of indicator, either linear or circular."
480
465
  },
481
466
  "getter": false,
482
467
  "setter": false,
483
- "attribute": "theme",
484
- "reflect": false,
485
- "defaultValue": "\"inherit\""
468
+ "attribute": "type",
469
+ "reflect": true,
470
+ "defaultValue": "\"circular\""
486
471
  }
487
472
  };
488
473
  }
@@ -490,7 +475,7 @@ export class LoadingIndicator {
490
475
  return {
491
476
  "circularDiameter": {},
492
477
  "circularLineWidth": {},
493
- "indeterminate": {},
478
+ "circularDimensions": {},
494
479
  "indicatorLabel": {},
495
480
  "clipInnerElement": {}
496
481
  };
@@ -500,9 +485,18 @@ export class LoadingIndicator {
500
485
  return [{
501
486
  "propName": "label",
502
487
  "methodName": "watchPropHandler"
488
+ }, {
489
+ "propName": "max",
490
+ "methodName": "handleProgressChange"
491
+ }, {
492
+ "propName": "min",
493
+ "methodName": "handleProgressChange"
503
494
  }, {
504
495
  "propName": "progress",
505
- "methodName": "watchProgressHandler"
496
+ "methodName": "handleProgressChange"
497
+ }, {
498
+ "propName": "type",
499
+ "methodName": "setIndicatorDimensions"
506
500
  }];
507
501
  }
508
502
  }