@ukic/web-components 3.4.0 → 3.5.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 (477) hide show
  1. package/dist/cjs/core.cjs.js +1 -1
  2. package/dist/cjs/{helpers-fc4016d2.js → helpers-931fd72e.js} +30 -32
  3. package/dist/cjs/helpers-931fd72e.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 +1 -1
  7. package/dist/cjs/ic-back-to-top.cjs.entry.js +1 -1
  8. package/dist/cjs/ic-badge.cjs.entry.js +1 -1
  9. package/dist/cjs/ic-breadcrumb-group.cjs.entry.js +1 -1
  10. package/dist/cjs/ic-breadcrumb.cjs.entry.js +1 -1
  11. package/dist/cjs/ic-button_3.cjs.entry.js +135 -142
  12. package/dist/cjs/ic-button_3.cjs.entry.js.map +1 -1
  13. package/dist/cjs/ic-card-vertical.cjs.entry.js +1 -1
  14. package/dist/cjs/ic-checkbox-group.cjs.entry.js +5 -5
  15. package/dist/cjs/ic-checkbox-group.cjs.entry.js.map +1 -1
  16. package/dist/cjs/ic-checkbox.cjs.entry.js +1 -1
  17. package/dist/cjs/ic-chip.cjs.entry.js +1 -1
  18. package/dist/cjs/ic-data-list.cjs.entry.js +2 -2
  19. package/dist/cjs/ic-data-row.cjs.entry.js +3 -3
  20. package/dist/cjs/ic-dialog.cjs.entry.js +2 -2
  21. package/dist/cjs/ic-divider.cjs.entry.js +1 -1
  22. package/dist/cjs/ic-empty-state.cjs.entry.js +3 -3
  23. package/dist/cjs/ic-footer-link-group.cjs.entry.js +1 -1
  24. package/dist/cjs/ic-footer-link.cjs.entry.js +3 -3
  25. package/dist/cjs/ic-footer.cjs.entry.js +1 -1
  26. package/dist/cjs/ic-hero.cjs.entry.js +5 -5
  27. package/dist/cjs/ic-horizontal-scroll.cjs.entry.js +6 -6
  28. package/dist/cjs/ic-input-component-container_3.cjs.entry.js +19 -14
  29. package/dist/cjs/ic-input-component-container_3.cjs.entry.js.map +1 -1
  30. package/dist/cjs/ic-input-label_2.cjs.entry.js +36 -13
  31. package/dist/cjs/ic-input-label_2.cjs.entry.js.map +1 -1
  32. package/dist/cjs/ic-link.cjs.entry.js +2 -2
  33. package/dist/cjs/ic-menu-group.cjs.entry.js +2 -2
  34. package/dist/cjs/ic-menu-item.cjs.entry.js +1 -1
  35. package/dist/cjs/ic-navigation-button.cjs.entry.js +31 -39
  36. package/dist/cjs/ic-navigation-button.cjs.entry.js.map +1 -1
  37. package/dist/cjs/ic-navigation-group.cjs.entry.js +7 -4
  38. package/dist/cjs/ic-navigation-group.cjs.entry.js.map +1 -1
  39. package/dist/cjs/ic-navigation-item.cjs.entry.js +2 -2
  40. package/dist/cjs/ic-navigation-item.cjs.entry.js.map +1 -1
  41. package/dist/cjs/ic-navigation-menu.cjs.entry.js +5 -5
  42. package/dist/cjs/ic-page-header.cjs.entry.js +7 -7
  43. package/dist/cjs/ic-pagination-item.cjs.entry.js +2 -2
  44. package/dist/cjs/ic-pagination.cjs.entry.js +5 -5
  45. package/dist/cjs/ic-popover-menu.cjs.entry.js +5 -5
  46. package/dist/cjs/ic-radio-group.cjs.entry.js +6 -6
  47. package/dist/cjs/ic-radio-group.cjs.entry.js.map +1 -1
  48. package/dist/cjs/ic-radio-option.cjs.entry.js +5 -5
  49. package/dist/cjs/ic-search-bar.cjs.entry.js +28 -12
  50. package/dist/cjs/ic-search-bar.cjs.entry.js.map +1 -1
  51. package/dist/cjs/ic-section-container.cjs.entry.js +2 -2
  52. package/dist/cjs/ic-select.cjs.entry.js +8 -8
  53. package/dist/cjs/ic-select.cjs.entry.js.map +1 -1
  54. package/dist/cjs/ic-side-navigation.cjs.entry.js +16 -17
  55. package/dist/cjs/ic-side-navigation.cjs.entry.js.map +1 -1
  56. package/dist/cjs/ic-skeleton.cjs.entry.js +2 -2
  57. package/dist/cjs/ic-skip-link.cjs.entry.js +2 -2
  58. package/dist/cjs/ic-status-tag.cjs.entry.js +3 -3
  59. package/dist/cjs/ic-step.cjs.entry.js +14 -14
  60. package/dist/cjs/ic-stepper.cjs.entry.js +3 -3
  61. package/dist/cjs/ic-switch.cjs.entry.js +6 -6
  62. package/dist/cjs/ic-switch.cjs.entry.js.map +1 -1
  63. package/dist/cjs/ic-tab-context.cjs.entry.js +1 -1
  64. package/dist/cjs/ic-tab-group.cjs.entry.js +3 -3
  65. package/dist/cjs/ic-tab-panel.cjs.entry.js +2 -2
  66. package/dist/cjs/ic-tab.cjs.entry.js +1 -1
  67. package/dist/cjs/ic-text-field.cjs.entry.js +8 -8
  68. package/dist/cjs/ic-text-field.cjs.entry.js.map +1 -1
  69. package/dist/cjs/ic-theme.cjs.entry.js +2 -2
  70. package/dist/cjs/ic-toast-region.cjs.entry.js +1 -1
  71. package/dist/cjs/ic-toast.cjs.entry.js +4 -4
  72. package/dist/cjs/ic-toggle-button-group.cjs.entry.js +3 -3
  73. package/dist/cjs/ic-toggle-button.cjs.entry.js +3 -3
  74. package/dist/cjs/ic-top-navigation.cjs.entry.js +15 -9
  75. package/dist/cjs/ic-top-navigation.cjs.entry.js.map +1 -1
  76. package/dist/cjs/ic-typography.cjs.entry.js +3 -3
  77. package/dist/cjs/loader.cjs.js +1 -1
  78. package/dist/collection/ag-theme-icds.css +24 -4
  79. package/dist/collection/components/ic-button/ic-button.js +3 -3
  80. package/dist/collection/components/ic-button/ic-button.js.map +1 -1
  81. package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.css +10 -2
  82. package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.js +6 -3
  83. package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.js.map +1 -1
  84. package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.stories.js +22 -0
  85. package/dist/collection/components/ic-data-list/ic-data-list.js +2 -2
  86. package/dist/collection/components/ic-data-row/ic-data-row.js +2 -2
  87. package/dist/collection/components/ic-dialog/ic-dialog.js +1 -1
  88. package/dist/collection/components/ic-empty-state/ic-empty-state.js +2 -2
  89. package/dist/collection/components/ic-footer-link/ic-footer-link.js +2 -2
  90. package/dist/collection/components/ic-hero/ic-hero.js +4 -4
  91. package/dist/collection/components/ic-horizontal-scroll/ic-horizontal-scroll.js +5 -5
  92. package/dist/collection/components/ic-input-component-container/ic-input-component-container.js +3 -3
  93. package/dist/collection/components/ic-input-container/ic-input-container.js +2 -2
  94. package/dist/collection/components/ic-input-label/ic-input-label.css +2 -1
  95. package/dist/collection/components/ic-input-label/ic-input-label.js +31 -8
  96. package/dist/collection/components/ic-input-label/ic-input-label.js.map +1 -1
  97. package/dist/collection/components/ic-input-validation/ic-input-validation.js +3 -3
  98. package/dist/collection/components/ic-link/ic-link.js +1 -1
  99. package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.css +3 -3
  100. package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.js +210 -211
  101. package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.js.map +1 -1
  102. package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.stories.js +1 -1
  103. package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.types.js.map +1 -1
  104. package/dist/collection/components/ic-menu/ic-menu.js +56 -10
  105. package/dist/collection/components/ic-menu/ic-menu.js.map +1 -1
  106. package/dist/collection/components/ic-menu-group/ic-menu-group.js +1 -1
  107. package/dist/collection/components/ic-navigation-button/ic-navigation-button.js +38 -47
  108. package/dist/collection/components/ic-navigation-button/ic-navigation-button.js.map +1 -1
  109. package/dist/collection/components/ic-navigation-group/ic-navigation-group.js +26 -4
  110. package/dist/collection/components/ic-navigation-group/ic-navigation-group.js.map +1 -1
  111. package/dist/collection/components/ic-navigation-item/ic-navigation-item.css +6 -4
  112. package/dist/collection/components/ic-navigation-menu/ic-navigation-menu.js +4 -4
  113. package/dist/collection/components/ic-page-header/ic-page-header.js +6 -6
  114. package/dist/collection/components/ic-pagination/ic-pagination.js +4 -4
  115. package/dist/collection/components/ic-pagination-item/ic-pagination-item.js +1 -1
  116. package/dist/collection/components/ic-popover-menu/ic-popover-menu.js +4 -4
  117. package/dist/collection/components/ic-radio-group/ic-radio-group.css +10 -2
  118. package/dist/collection/components/ic-radio-group/ic-radio-group.js +7 -4
  119. package/dist/collection/components/ic-radio-group/ic-radio-group.js.map +1 -1
  120. package/dist/collection/components/ic-radio-group/ic-radio-group.stories.js +22 -0
  121. package/dist/collection/components/ic-radio-option/ic-radio-option.js +4 -4
  122. package/dist/collection/components/ic-search-bar/ic-search-bar.js +53 -11
  123. package/dist/collection/components/ic-search-bar/ic-search-bar.js.map +1 -1
  124. package/dist/collection/components/ic-search-bar/ic-search-bar.stories.js +20 -10
  125. package/dist/collection/components/ic-section-container/ic-section-container.js +2 -2
  126. package/dist/collection/components/ic-select/ic-select.js +8 -7
  127. package/dist/collection/components/ic-select/ic-select.js.map +1 -1
  128. package/dist/collection/components/ic-select/ic-select_(multi).stories.js +21 -13
  129. package/dist/collection/components/ic-select/ic-select_(searchable).stories.js +21 -13
  130. package/dist/collection/components/ic-select/ic-select_(single).stories.js +17 -9
  131. package/dist/collection/components/ic-side-navigation/ic-side-navigation.js +15 -16
  132. package/dist/collection/components/ic-side-navigation/ic-side-navigation.js.map +1 -1
  133. package/dist/collection/components/ic-side-navigation/ic-side-navigation.stories.js +143 -0
  134. package/dist/collection/components/ic-skeleton/ic-skeleton.js +2 -2
  135. package/dist/collection/components/ic-skip-link/ic-skip-link.js +2 -2
  136. package/dist/collection/components/ic-status-tag/ic-status-tag.js +2 -2
  137. package/dist/collection/components/ic-step/ic-step.js +13 -13
  138. package/dist/collection/components/ic-stepper/ic-stepper.js +2 -2
  139. package/dist/collection/components/ic-switch/ic-switch.css +1 -4
  140. package/dist/collection/components/ic-switch/ic-switch.js +5 -4
  141. package/dist/collection/components/ic-switch/ic-switch.js.map +1 -1
  142. package/dist/collection/components/ic-switch/ic-switch.stories.js +8 -1
  143. package/dist/collection/components/ic-tab-context/ic-tab-context.js +1 -1
  144. package/dist/collection/components/ic-tab-group/ic-tab-group.js +2 -2
  145. package/dist/collection/components/ic-tab-panel/ic-tab-panel.js +2 -2
  146. package/dist/collection/components/ic-text-field/ic-text-field.js +8 -7
  147. package/dist/collection/components/ic-text-field/ic-text-field.js.map +1 -1
  148. package/dist/collection/components/ic-text-field/ic-text-field.stories.js +12 -1
  149. package/dist/collection/components/ic-theme/ic-theme.js +1 -1
  150. package/dist/collection/components/ic-toast/ic-toast.js +3 -3
  151. package/dist/collection/components/ic-toast-region/ic-toast-region.js +1 -1
  152. package/dist/collection/components/ic-toggle-button/ic-toggle-button.js +2 -2
  153. package/dist/collection/components/ic-toggle-button-group/ic-toggle-button-group.js +2 -2
  154. package/dist/collection/components/ic-top-navigation/ic-top-navigation.css +1 -0
  155. package/dist/collection/components/ic-top-navigation/ic-top-navigation.js +13 -7
  156. package/dist/collection/components/ic-top-navigation/ic-top-navigation.js.map +1 -1
  157. package/dist/collection/components/ic-typography/ic-typography.js +2 -2
  158. package/dist/collection/utils/constants.js +1 -1
  159. package/dist/collection/utils/constants.js.map +1 -1
  160. package/dist/collection/utils/helpers.js +27 -30
  161. package/dist/collection/utils/helpers.js.map +1 -1
  162. package/dist/components/helpers.js +29 -32
  163. package/dist/components/helpers.js.map +1 -1
  164. package/dist/components/ic-button2.js +3 -3
  165. package/dist/components/ic-button2.js.map +1 -1
  166. package/dist/components/ic-checkbox-group.js +4 -4
  167. package/dist/components/ic-checkbox-group.js.map +1 -1
  168. package/dist/components/ic-data-list.js +2 -2
  169. package/dist/components/ic-data-row.js +2 -2
  170. package/dist/components/ic-dialog.js +1 -1
  171. package/dist/components/ic-empty-state.js +2 -2
  172. package/dist/components/ic-footer-link.js +2 -2
  173. package/dist/components/ic-hero.js +4 -4
  174. package/dist/components/ic-horizontal-scroll2.js +5 -5
  175. package/dist/components/ic-input-component-container2.js +3 -3
  176. package/dist/components/ic-input-container2.js +2 -2
  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-link2.js +1 -1
  181. package/dist/components/ic-loading-indicator2.js +139 -143
  182. package/dist/components/ic-loading-indicator2.js.map +1 -1
  183. package/dist/components/ic-menu-group.js +1 -1
  184. package/dist/components/ic-menu2.js +16 -9
  185. package/dist/components/ic-menu2.js.map +1 -1
  186. package/dist/components/ic-navigation-button.js +32 -41
  187. package/dist/components/ic-navigation-button.js.map +1 -1
  188. package/dist/components/ic-navigation-group.js +8 -5
  189. package/dist/components/ic-navigation-group.js.map +1 -1
  190. package/dist/components/ic-navigation-item.js +2 -2
  191. package/dist/components/ic-navigation-item.js.map +1 -1
  192. package/dist/components/ic-navigation-menu2.js +5 -5
  193. package/dist/components/ic-page-header.js +6 -6
  194. package/dist/components/ic-pagination-item2.js +2 -2
  195. package/dist/components/ic-pagination.js +4 -4
  196. package/dist/components/ic-popover-menu.js +4 -4
  197. package/dist/components/ic-radio-group.js +5 -5
  198. package/dist/components/ic-radio-group.js.map +1 -1
  199. package/dist/components/ic-radio-option.js +4 -4
  200. package/dist/components/ic-radio-option.js.map +1 -1
  201. package/dist/components/ic-search-bar.js +31 -12
  202. package/dist/components/ic-search-bar.js.map +1 -1
  203. package/dist/components/ic-section-container2.js +2 -2
  204. package/dist/components/ic-select.js +8 -8
  205. package/dist/components/ic-select.js.map +1 -1
  206. package/dist/components/ic-side-navigation.js +16 -17
  207. package/dist/components/ic-side-navigation.js.map +1 -1
  208. package/dist/components/ic-skeleton.js +2 -2
  209. package/dist/components/ic-skip-link.js +2 -2
  210. package/dist/components/ic-status-tag.js +2 -2
  211. package/dist/components/ic-step.js +13 -13
  212. package/dist/components/ic-stepper.js +2 -2
  213. package/dist/components/ic-switch.js +5 -5
  214. package/dist/components/ic-switch.js.map +1 -1
  215. package/dist/components/ic-tab-context.js +1 -1
  216. package/dist/components/ic-tab-group.js +2 -2
  217. package/dist/components/ic-tab-panel.js +2 -2
  218. package/dist/components/ic-tab-panel.js.map +1 -1
  219. package/dist/components/ic-text-field.js +8 -8
  220. package/dist/components/ic-text-field.js.map +1 -1
  221. package/dist/components/ic-theme.js +2 -2
  222. package/dist/components/ic-toast-region.js +1 -1
  223. package/dist/components/ic-toast.js +4 -4
  224. package/dist/components/ic-toggle-button-group.js +2 -2
  225. package/dist/components/ic-toggle-button.js +3 -3
  226. package/dist/components/ic-top-navigation.js +15 -9
  227. package/dist/components/ic-top-navigation.js.map +1 -1
  228. package/dist/components/ic-typography2.js +2 -2
  229. package/dist/core/ag-theme-icds.css +24 -4
  230. package/dist/core/core.css +29 -25
  231. package/dist/core/core.esm.js +1 -1
  232. package/dist/core/core.esm.js.map +1 -1
  233. package/dist/core/{p-7deaf128.entry.js → p-0f3a56bb.entry.js} +2 -2
  234. package/dist/core/p-0f3a56bb.entry.js.map +1 -0
  235. package/dist/core/{p-c5ffe2cf.entry.js → p-0f86ea09.entry.js} +2 -2
  236. package/dist/core/p-1228fd8c.entry.js +2 -0
  237. package/dist/core/{p-887e00bb.entry.js.map → p-1228fd8c.entry.js.map} +1 -1
  238. package/dist/core/{p-aad2abbf.entry.js → p-1286b234.entry.js} +2 -2
  239. package/dist/core/p-1286b234.entry.js.map +1 -0
  240. package/dist/core/{p-d82b27df.entry.js → p-13e65198.entry.js} +2 -2
  241. package/dist/core/{p-9a6dc8b1.entry.js → p-20a6dc40.entry.js} +2 -2
  242. package/dist/core/{p-4e48a671.entry.js → p-21ed856c.entry.js} +2 -2
  243. package/dist/core/{p-a140bcaa.entry.js → p-226406d6.entry.js} +2 -2
  244. package/dist/core/{p-7d2c07e2.entry.js → p-24bb2265.entry.js} +2 -2
  245. package/dist/core/{p-5eb2ac90.entry.js → p-2b342b23.entry.js} +2 -2
  246. package/dist/core/{p-8958c60f.entry.js → p-334672c1.entry.js} +2 -2
  247. package/dist/core/{p-dee21f6d.entry.js → p-3448c713.entry.js} +2 -2
  248. package/dist/core/{p-6cd0b010.entry.js → p-37900547.entry.js} +2 -2
  249. package/dist/core/{p-7d352865.entry.js → p-3abaa877.entry.js} +2 -2
  250. package/dist/core/p-3abaa877.entry.js.map +1 -0
  251. package/dist/core/{p-ef36181d.entry.js → p-3afc2870.entry.js} +2 -2
  252. package/dist/core/{p-aad10013.entry.js → p-3d7d2ff4.entry.js} +2 -2
  253. package/dist/core/p-41bb4db1.entry.js +2 -0
  254. package/dist/core/p-41bb4db1.entry.js.map +1 -0
  255. package/dist/core/{p-6eea869b.entry.js → p-44902a33.entry.js} +2 -2
  256. package/dist/core/{p-628c32b8.entry.js → p-476eac8c.entry.js} +2 -2
  257. package/dist/core/{p-56e0de32.entry.js → p-49ca3f54.entry.js} +2 -2
  258. package/dist/core/{p-56fb0298.entry.js → p-4dfc41e7.entry.js} +2 -2
  259. package/dist/core/{p-23536595.entry.js → p-5026eeaf.entry.js} +2 -2
  260. package/dist/core/{p-4a2acb2e.entry.js → p-54ea7120.entry.js} +2 -2
  261. package/dist/core/{p-a17499ff.entry.js → p-5b2bf9bb.entry.js} +2 -2
  262. package/dist/core/{p-ef4b752c.entry.js → p-5d9b23ce.entry.js} +2 -2
  263. package/dist/core/{p-4dc97b03.entry.js → p-5f9d1977.entry.js} +2 -2
  264. package/dist/core/p-5f9d1977.entry.js.map +1 -0
  265. package/dist/core/{p-e38fddbb.entry.js → p-6c10e1a2.entry.js} +2 -2
  266. package/dist/core/{p-51b49429.entry.js → p-6cb81f35.entry.js} +2 -2
  267. package/dist/core/{p-d4903dcd.entry.js → p-6dd73165.entry.js} +2 -2
  268. package/dist/core/{p-fc4f7180.entry.js → p-7ead8535.entry.js} +2 -2
  269. package/dist/core/{p-c8cf1ad5.entry.js → p-831e884c.entry.js} +2 -2
  270. package/dist/core/{p-fa38ad2e.entry.js → p-85f735ed.entry.js} +2 -2
  271. package/dist/core/p-89f493f3.entry.js +2 -0
  272. package/dist/core/p-89f493f3.entry.js.map +1 -0
  273. package/dist/core/{p-dfc8cba6.entry.js → p-8da025b5.entry.js} +2 -2
  274. package/dist/core/p-990c37aa.entry.js +2 -0
  275. package/dist/core/p-990c37aa.entry.js.map +1 -0
  276. package/dist/core/{p-803f2eb8.entry.js → p-9e039aba.entry.js} +2 -2
  277. package/dist/core/{p-3cb4ecef.entry.js → p-9e051db4.entry.js} +2 -2
  278. package/dist/core/{p-1d172032.entry.js → p-9edc5973.entry.js} +2 -2
  279. package/dist/core/{p-2c371198.entry.js → p-a14025cc.entry.js} +2 -2
  280. package/dist/core/p-a7286727.entry.js +2 -0
  281. package/dist/core/p-a7286727.entry.js.map +1 -0
  282. package/dist/core/{p-cfa9ed7d.entry.js → p-ab4e8b4a.entry.js} +2 -2
  283. package/dist/core/{p-dcce0dfd.entry.js → p-ab7a5536.entry.js} +2 -2
  284. package/dist/core/{p-26dfc4db.entry.js → p-ac73cfb8.entry.js} +2 -2
  285. package/dist/core/{p-1d254b71.entry.js → p-ad374f0b.entry.js} +2 -2
  286. package/dist/core/{p-513628ef.entry.js → p-b08bb522.entry.js} +2 -2
  287. package/dist/core/{p-e2629bfe.entry.js → p-b1b27b7e.entry.js} +2 -2
  288. package/dist/core/p-b40ecf16.js +2 -0
  289. package/dist/core/p-b40ecf16.js.map +1 -0
  290. package/dist/core/{p-5aec3757.entry.js → p-b59007a3.entry.js} +2 -2
  291. package/dist/core/{p-87fa5add.entry.js → p-b811c7a1.entry.js} +2 -2
  292. package/dist/core/p-b811c7a1.entry.js.map +1 -0
  293. package/dist/core/p-bae2df5e.entry.js +2 -0
  294. package/dist/core/p-bae2df5e.entry.js.map +1 -0
  295. package/dist/core/{p-d8ce39ac.entry.js → p-c8555360.entry.js} +2 -2
  296. package/dist/core/{p-60aad45d.entry.js → p-ced2e6ca.entry.js} +2 -2
  297. package/dist/core/{p-de1e04ac.entry.js → p-d281c3cf.entry.js} +2 -2
  298. package/dist/core/p-d32c377d.entry.js +2 -0
  299. package/dist/core/p-d32c377d.entry.js.map +1 -0
  300. package/dist/core/p-d4a77f80.entry.js +2 -0
  301. package/dist/core/p-d4a77f80.entry.js.map +1 -0
  302. package/dist/core/{p-9c47521d.entry.js → p-d7476f6d.entry.js} +2 -2
  303. package/dist/core/{p-8c77dd65.entry.js → p-e107d1dd.entry.js} +2 -2
  304. package/dist/core/p-e506ec91.entry.js +2 -0
  305. package/dist/core/p-e506ec91.entry.js.map +1 -0
  306. package/dist/core/{p-bf3b853e.entry.js → p-fc5661ac.entry.js} +2 -2
  307. package/dist/core/p-fca45edb.entry.js +2 -0
  308. package/dist/core/p-fca45edb.entry.js.map +1 -0
  309. package/dist/esm/core.js +1 -1
  310. package/dist/esm/{helpers-f2ffaa7c.js → helpers-91abc444.js} +30 -33
  311. package/dist/esm/helpers-91abc444.js.map +1 -0
  312. package/dist/esm/ic-accordion-group.entry.js +1 -1
  313. package/dist/esm/ic-accordion.entry.js +1 -1
  314. package/dist/esm/ic-alert.entry.js +1 -1
  315. package/dist/esm/ic-back-to-top.entry.js +1 -1
  316. package/dist/esm/ic-badge.entry.js +1 -1
  317. package/dist/esm/ic-breadcrumb-group.entry.js +1 -1
  318. package/dist/esm/ic-breadcrumb.entry.js +1 -1
  319. package/dist/esm/ic-button_3.entry.js +135 -142
  320. package/dist/esm/ic-button_3.entry.js.map +1 -1
  321. package/dist/esm/ic-card-vertical.entry.js +1 -1
  322. package/dist/esm/ic-checkbox-group.entry.js +5 -5
  323. package/dist/esm/ic-checkbox-group.entry.js.map +1 -1
  324. package/dist/esm/ic-checkbox.entry.js +1 -1
  325. package/dist/esm/ic-chip.entry.js +1 -1
  326. package/dist/esm/ic-data-list.entry.js +2 -2
  327. package/dist/esm/ic-data-row.entry.js +3 -3
  328. package/dist/esm/ic-dialog.entry.js +2 -2
  329. package/dist/esm/ic-divider.entry.js +1 -1
  330. package/dist/esm/ic-empty-state.entry.js +3 -3
  331. package/dist/esm/ic-footer-link-group.entry.js +1 -1
  332. package/dist/esm/ic-footer-link.entry.js +3 -3
  333. package/dist/esm/ic-footer.entry.js +1 -1
  334. package/dist/esm/ic-hero.entry.js +5 -5
  335. package/dist/esm/ic-horizontal-scroll.entry.js +6 -6
  336. package/dist/esm/ic-input-component-container_3.entry.js +19 -14
  337. package/dist/esm/ic-input-component-container_3.entry.js.map +1 -1
  338. package/dist/esm/ic-input-label_2.entry.js +36 -13
  339. package/dist/esm/ic-input-label_2.entry.js.map +1 -1
  340. package/dist/esm/ic-link.entry.js +2 -2
  341. package/dist/esm/ic-menu-group.entry.js +2 -2
  342. package/dist/esm/ic-menu-item.entry.js +1 -1
  343. package/dist/esm/ic-navigation-button.entry.js +31 -39
  344. package/dist/esm/ic-navigation-button.entry.js.map +1 -1
  345. package/dist/esm/ic-navigation-group.entry.js +7 -4
  346. package/dist/esm/ic-navigation-group.entry.js.map +1 -1
  347. package/dist/esm/ic-navigation-item.entry.js +2 -2
  348. package/dist/esm/ic-navigation-item.entry.js.map +1 -1
  349. package/dist/esm/ic-navigation-menu.entry.js +5 -5
  350. package/dist/esm/ic-page-header.entry.js +7 -7
  351. package/dist/esm/ic-pagination-item.entry.js +2 -2
  352. package/dist/esm/ic-pagination.entry.js +5 -5
  353. package/dist/esm/ic-popover-menu.entry.js +5 -5
  354. package/dist/esm/ic-radio-group.entry.js +6 -6
  355. package/dist/esm/ic-radio-group.entry.js.map +1 -1
  356. package/dist/esm/ic-radio-option.entry.js +5 -5
  357. package/dist/esm/ic-search-bar.entry.js +28 -12
  358. package/dist/esm/ic-search-bar.entry.js.map +1 -1
  359. package/dist/esm/ic-section-container.entry.js +2 -2
  360. package/dist/esm/ic-select.entry.js +8 -8
  361. package/dist/esm/ic-select.entry.js.map +1 -1
  362. package/dist/esm/ic-side-navigation.entry.js +16 -17
  363. package/dist/esm/ic-side-navigation.entry.js.map +1 -1
  364. package/dist/esm/ic-skeleton.entry.js +2 -2
  365. package/dist/esm/ic-skip-link.entry.js +2 -2
  366. package/dist/esm/ic-status-tag.entry.js +3 -3
  367. package/dist/esm/ic-step.entry.js +14 -14
  368. package/dist/esm/ic-stepper.entry.js +3 -3
  369. package/dist/esm/ic-switch.entry.js +6 -6
  370. package/dist/esm/ic-switch.entry.js.map +1 -1
  371. package/dist/esm/ic-tab-context.entry.js +1 -1
  372. package/dist/esm/ic-tab-group.entry.js +3 -3
  373. package/dist/esm/ic-tab-panel.entry.js +2 -2
  374. package/dist/esm/ic-tab.entry.js +1 -1
  375. package/dist/esm/ic-text-field.entry.js +8 -8
  376. package/dist/esm/ic-text-field.entry.js.map +1 -1
  377. package/dist/esm/ic-theme.entry.js +2 -2
  378. package/dist/esm/ic-toast-region.entry.js +1 -1
  379. package/dist/esm/ic-toast.entry.js +4 -4
  380. package/dist/esm/ic-toggle-button-group.entry.js +3 -3
  381. package/dist/esm/ic-toggle-button.entry.js +3 -3
  382. package/dist/esm/ic-top-navigation.entry.js +15 -9
  383. package/dist/esm/ic-top-navigation.entry.js.map +1 -1
  384. package/dist/esm/ic-typography.entry.js +3 -3
  385. package/dist/esm/loader.js +1 -1
  386. package/dist/types/components/ic-checkbox-group/ic-checkbox-group.d.ts +3 -0
  387. package/dist/types/components/ic-input-label/ic-input-label.d.ts +2 -0
  388. package/dist/types/components/ic-loading-indicator/ic-loading-indicator.d.ts +28 -32
  389. package/dist/types/components/ic-loading-indicator/ic-loading-indicator.types.d.ts +2 -0
  390. package/dist/types/components/ic-menu/ic-menu.d.ts +7 -0
  391. package/dist/types/components/ic-navigation-button/ic-navigation-button.d.ts +8 -5
  392. package/dist/types/components/ic-navigation-group/ic-navigation-group.d.ts +4 -1
  393. package/dist/types/components/ic-radio-group/ic-radio-group.d.ts +3 -0
  394. package/dist/types/components/ic-search-bar/ic-search-bar.d.ts +11 -0
  395. package/dist/types/components/ic-select/ic-select.d.ts +1 -0
  396. package/dist/types/components/ic-switch/ic-switch.d.ts +1 -0
  397. package/dist/types/components/ic-text-field/ic-text-field.d.ts +1 -0
  398. package/dist/types/components/ic-top-navigation/ic-top-navigation.d.ts +1 -0
  399. package/dist/types/components.d.ts +33 -13
  400. package/dist/types/utils/constants.d.ts +1 -1
  401. package/dist/types/utils/helpers.d.ts +1 -1
  402. package/hydrate/index.js +445 -396
  403. package/hydrate/index.mjs +445 -396
  404. package/package.json +3 -5
  405. package/vscode-data.json +8 -0
  406. package/dist/cjs/helpers-fc4016d2.js.map +0 -1
  407. package/dist/core/p-0fb68b4f.entry.js +0 -2
  408. package/dist/core/p-0fb68b4f.entry.js.map +0 -1
  409. package/dist/core/p-15b7adaf.entry.js +0 -2
  410. package/dist/core/p-15b7adaf.entry.js.map +0 -1
  411. package/dist/core/p-3676ac4e.entry.js +0 -2
  412. package/dist/core/p-3676ac4e.entry.js.map +0 -1
  413. package/dist/core/p-432aeae0.entry.js +0 -2
  414. package/dist/core/p-432aeae0.entry.js.map +0 -1
  415. package/dist/core/p-4dc97b03.entry.js.map +0 -1
  416. package/dist/core/p-554845c4.entry.js +0 -2
  417. package/dist/core/p-554845c4.entry.js.map +0 -1
  418. package/dist/core/p-59b48450.entry.js +0 -2
  419. package/dist/core/p-59b48450.entry.js.map +0 -1
  420. package/dist/core/p-7d352865.entry.js.map +0 -1
  421. package/dist/core/p-7deaf128.entry.js.map +0 -1
  422. package/dist/core/p-8242c24f.js +0 -2
  423. package/dist/core/p-8242c24f.js.map +0 -1
  424. package/dist/core/p-87fa5add.entry.js.map +0 -1
  425. package/dist/core/p-887e00bb.entry.js +0 -2
  426. package/dist/core/p-aad2abbf.entry.js.map +0 -1
  427. package/dist/core/p-bdcc79dd.entry.js +0 -2
  428. package/dist/core/p-bdcc79dd.entry.js.map +0 -1
  429. package/dist/core/p-c59fd23e.entry.js +0 -2
  430. package/dist/core/p-c59fd23e.entry.js.map +0 -1
  431. package/dist/core/p-eca6e215.entry.js +0 -2
  432. package/dist/core/p-eca6e215.entry.js.map +0 -1
  433. package/dist/esm/helpers-f2ffaa7c.js.map +0 -1
  434. /package/dist/core/{p-c5ffe2cf.entry.js.map → p-0f86ea09.entry.js.map} +0 -0
  435. /package/dist/core/{p-d82b27df.entry.js.map → p-13e65198.entry.js.map} +0 -0
  436. /package/dist/core/{p-9a6dc8b1.entry.js.map → p-20a6dc40.entry.js.map} +0 -0
  437. /package/dist/core/{p-4e48a671.entry.js.map → p-21ed856c.entry.js.map} +0 -0
  438. /package/dist/core/{p-a140bcaa.entry.js.map → p-226406d6.entry.js.map} +0 -0
  439. /package/dist/core/{p-7d2c07e2.entry.js.map → p-24bb2265.entry.js.map} +0 -0
  440. /package/dist/core/{p-5eb2ac90.entry.js.map → p-2b342b23.entry.js.map} +0 -0
  441. /package/dist/core/{p-8958c60f.entry.js.map → p-334672c1.entry.js.map} +0 -0
  442. /package/dist/core/{p-dee21f6d.entry.js.map → p-3448c713.entry.js.map} +0 -0
  443. /package/dist/core/{p-6cd0b010.entry.js.map → p-37900547.entry.js.map} +0 -0
  444. /package/dist/core/{p-ef36181d.entry.js.map → p-3afc2870.entry.js.map} +0 -0
  445. /package/dist/core/{p-aad10013.entry.js.map → p-3d7d2ff4.entry.js.map} +0 -0
  446. /package/dist/core/{p-6eea869b.entry.js.map → p-44902a33.entry.js.map} +0 -0
  447. /package/dist/core/{p-628c32b8.entry.js.map → p-476eac8c.entry.js.map} +0 -0
  448. /package/dist/core/{p-56e0de32.entry.js.map → p-49ca3f54.entry.js.map} +0 -0
  449. /package/dist/core/{p-56fb0298.entry.js.map → p-4dfc41e7.entry.js.map} +0 -0
  450. /package/dist/core/{p-23536595.entry.js.map → p-5026eeaf.entry.js.map} +0 -0
  451. /package/dist/core/{p-4a2acb2e.entry.js.map → p-54ea7120.entry.js.map} +0 -0
  452. /package/dist/core/{p-a17499ff.entry.js.map → p-5b2bf9bb.entry.js.map} +0 -0
  453. /package/dist/core/{p-ef4b752c.entry.js.map → p-5d9b23ce.entry.js.map} +0 -0
  454. /package/dist/core/{p-e38fddbb.entry.js.map → p-6c10e1a2.entry.js.map} +0 -0
  455. /package/dist/core/{p-51b49429.entry.js.map → p-6cb81f35.entry.js.map} +0 -0
  456. /package/dist/core/{p-d4903dcd.entry.js.map → p-6dd73165.entry.js.map} +0 -0
  457. /package/dist/core/{p-fc4f7180.entry.js.map → p-7ead8535.entry.js.map} +0 -0
  458. /package/dist/core/{p-c8cf1ad5.entry.js.map → p-831e884c.entry.js.map} +0 -0
  459. /package/dist/core/{p-fa38ad2e.entry.js.map → p-85f735ed.entry.js.map} +0 -0
  460. /package/dist/core/{p-dfc8cba6.entry.js.map → p-8da025b5.entry.js.map} +0 -0
  461. /package/dist/core/{p-803f2eb8.entry.js.map → p-9e039aba.entry.js.map} +0 -0
  462. /package/dist/core/{p-3cb4ecef.entry.js.map → p-9e051db4.entry.js.map} +0 -0
  463. /package/dist/core/{p-1d172032.entry.js.map → p-9edc5973.entry.js.map} +0 -0
  464. /package/dist/core/{p-2c371198.entry.js.map → p-a14025cc.entry.js.map} +0 -0
  465. /package/dist/core/{p-cfa9ed7d.entry.js.map → p-ab4e8b4a.entry.js.map} +0 -0
  466. /package/dist/core/{p-dcce0dfd.entry.js.map → p-ab7a5536.entry.js.map} +0 -0
  467. /package/dist/core/{p-26dfc4db.entry.js.map → p-ac73cfb8.entry.js.map} +0 -0
  468. /package/dist/core/{p-1d254b71.entry.js.map → p-ad374f0b.entry.js.map} +0 -0
  469. /package/dist/core/{p-513628ef.entry.js.map → p-b08bb522.entry.js.map} +0 -0
  470. /package/dist/core/{p-e2629bfe.entry.js.map → p-b1b27b7e.entry.js.map} +0 -0
  471. /package/dist/core/{p-5aec3757.entry.js.map → p-b59007a3.entry.js.map} +0 -0
  472. /package/dist/core/{p-d8ce39ac.entry.js.map → p-c8555360.entry.js.map} +0 -0
  473. /package/dist/core/{p-60aad45d.entry.js.map → p-ced2e6ca.entry.js.map} +0 -0
  474. /package/dist/core/{p-de1e04ac.entry.js.map → p-d281c3cf.entry.js.map} +0 -0
  475. /package/dist/core/{p-9c47521d.entry.js.map → p-d7476f6d.entry.js.map} +0 -0
  476. /package/dist/core/{p-8c77dd65.entry.js.map → p-e107d1dd.entry.js.map} +0 -0
  477. /package/dist/core/{p-bf3b853e.entry.js.map → p-fc5661ac.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,161 @@ 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];
99
94
  };
100
95
  this.setLinearDeterminateWidth = () => {
101
- const max = this.max;
102
- const min = this.min;
103
- if (!this.innerElement)
104
- return;
105
96
  // 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}%`);
97
+ if (!this.innerElement || !this.progress)
98
+ return;
99
+ const progress = Math.min(this.max, Math.max(this.min, this.progress));
100
+ const proportion = (progress - this.min) / (this.max - this.min);
101
+ this.clipInnerElement = proportion > 0.5;
102
+ if (this.clipInnerElement) {
103
+ this.innerElement.classList.remove("clip");
117
104
  }
118
- };
119
- this.calcOuterClass = () => {
120
- let cls = `ic-loading-${this.type}-outer`;
121
- cls += this.indeterminate ? " indeterminate" : " determinate";
122
- return cls;
105
+ else {
106
+ this.innerElement.classList.add("clip");
107
+ }
108
+ this.innerElement.style.setProperty("--linear-width", `${proportion * 100}%`);
123
109
  };
124
110
  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
- }
111
+ if (!this.label)
112
+ return;
113
+ if (typeof this.label === "string") {
114
+ this.indicatorLabel = this.label;
139
115
  }
140
- };
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 };
116
+ else {
117
+ this.labelList = this.label;
118
+ this.indicatorLabel = this.labelList[0];
119
+ if (this.labelList.length > 1) {
120
+ this.getLabel(0);
121
+ }
149
122
  }
150
- return { x: 0, y: 0, r: 0 };
151
123
  };
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`);
163
- }
124
+ this.setCircleDimensions = () => {
125
+ let dashOffset = undefined;
126
+ if (this.circularDiameter <= 0)
127
+ return;
128
+ const r = this.circularDiameter / 2;
129
+ const nextRadius = r - this.circularLineWidth / 2;
130
+ const dashArray = 2 * Math.PI * nextRadius;
131
+ if (this.progress) {
132
+ const progress = Math.min(Math.max(this.progress, this.min), this.max);
133
+ dashOffset = `${(-1 - (progress - this.min) / (this.max - this.min)) * dashArray}px`;
164
134
  }
135
+ this.circularDimensions = {
136
+ x: r,
137
+ y: r,
138
+ r: nextRadius,
139
+ dashArray: `${dashArray}px`,
140
+ dashOffset,
141
+ };
165
142
  };
166
143
  }
167
144
  watchPropHandler() {
168
145
  this.updateLabel();
169
146
  }
147
+ minMaxChangeHandler() {
148
+ if (this.type === "circular")
149
+ this.setCircleDimensions();
150
+ }
170
151
  watchProgressHandler() {
152
+ if (this.type === "linear") {
153
+ this.setLinearDeterminateWidth();
154
+ }
155
+ else {
156
+ this.setCircleDimensions();
157
+ }
158
+ }
159
+ setIndicatorDimensions() {
171
160
  if (this.type === "circular") {
172
- this.updateCircularProgressMeter();
161
+ // Sets the circular indicator line width - accounting for the circle size being altered using the CSS custom property
162
+ const diameter = this.calculateWidth();
163
+ if (this.outerElement && diameter !== this.circularDiameter) {
164
+ this.circularLineWidth = diameter * 0.1;
165
+ this.circularDiameter = diameter;
166
+ this.outerElement.style.setProperty("--circular-line-width", `${this.circularLineWidth}px`);
167
+ this.setCircleDimensions();
168
+ }
169
+ }
170
+ else {
171
+ this.setLinearDeterminateWidth();
173
172
  }
174
173
  }
175
174
  disconnectedCallback() {
176
175
  clearInterval(this.interval);
177
176
  }
178
177
  componentWillLoad() {
179
- this.indeterminate = this.progress === undefined;
180
178
  this.updateLabel();
181
179
  this.el.setAttribute("exportparts", "ic-loading-container");
182
180
  }
183
181
  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
- }
182
+ this.setIndicatorDimensions();
201
183
  }
202
184
  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: {
185
+ const { theme, label, description, size, fullWidth, innerLabel, monochrome, type, progress, min, max, circularDiameter, indicatorLabel, circularDimensions, } = this;
186
+ const { x, y, r, dashArray, dashOffset } = circularDimensions;
187
+ return (h(Host, { key: '7f78047511c580f116c21d00e76a19dee3319d60', class: {
206
188
  [`ic-theme-${theme}`]: theme !== "inherit",
189
+ "ic-loading-indicator-full-width": fullWidth,
207
190
  "ic-loading-indicator-label": !!label,
208
- "ic-loading-indicator-full-width": !!fullWidth,
191
+ "ic-loading-indicator-monochrome": monochrome,
192
+ } }, h("div", { key: 'eec896daa35399c26a11873674ba4bc4fd099ddc', class: "ic-loading-container", part: "ic-loading-container" }, h("div", { key: 'b3ab1935e9fe5d50cd6513acd7a8eabb31fadf98', ref: (el) => (this.outerElement = el), class: {
193
+ [`ic-loading-${type}-outer`]: true,
194
+ [progress === undefined ? "indeterminate" : "determinate"]: true,
195
+ }, 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: '2f6e1f2e1a88b752cdda2a6b2834441e8546eb9b', ref: (el) => (this.innerElement = el), class: {
196
+ [`ic-loading-${type}-inner`]: true,
209
197
  "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))))));
198
+ } }, innerLabel && size === "small" && (h("ic-typography", { key: 'c0d18d282c7090aa2bf478c3beee03e6c2b2f61d', variant: "subtitle-small", class: "inner-text" }, innerLabel)), type === "circular" && (h("svg", { key: 'a5827dba8cff99684667dfa1147186ad0bd3f7a1', class: "ic-loading-circular-svg", viewBox: `0 0 ${circularDiameter} ${circularDiameter}` }, h("circle", { key: 'c53d2155e9aea468427178f5a41e0a24b02565fa', cx: x, cy: y, r: r }), h("circle", { key: 'c5b6aea5b936b056a8103c0dacb81822348b20d1', style: {
199
+ "--circular-steps-max": progress ? `${max}` : undefined,
200
+ "--progress-value": progress !== undefined ? `${progress}` : undefined,
201
+ "--stroke-dasharray": dashArray,
202
+ "--stroke-dashoffset": dashOffset,
203
+ }, cx: x, cy: y, r: r }))))), label && size !== "icon" && (h("ic-typography", { key: 'e586d3c31d518a77bf93f90504318e3a5baeeb64', id: "ic-loading-label", class: "ic-loading-label", role: "status", variant: this.getLabelVariant() }, h("p", { key: 'd1c0b977ef4441ae45f4122a7a0ee03b33b4421b' }, indicatorLabel))))));
214
204
  }
215
205
  static get is() { return "ic-loading-indicator"; }
216
206
  static get encapsulation() { return "shadow"; }
@@ -231,11 +221,11 @@ export class LoadingIndicator {
231
221
  "mutable": false,
232
222
  "complexType": {
233
223
  "original": "string",
234
- "resolved": "string | undefined",
224
+ "resolved": "string",
235
225
  "references": {}
236
226
  },
237
227
  "required": false,
238
- "optional": true,
228
+ "optional": false,
239
229
  "docs": {
240
230
  "tags": [],
241
231
  "text": "The description that will be set as the aria-label of the loading indicator when not using a visible label."
@@ -251,11 +241,11 @@ export class LoadingIndicator {
251
241
  "mutable": false,
252
242
  "complexType": {
253
243
  "original": "boolean",
254
- "resolved": "boolean | undefined",
244
+ "resolved": "boolean",
255
245
  "references": {}
256
246
  },
257
247
  "required": false,
258
- "optional": true,
248
+ "optional": false,
259
249
  "docs": {
260
250
  "tags": [],
261
251
  "text": "If `true`, when linear, the full-width variant (i.e. without a border radius) will be displayed."
@@ -288,16 +278,35 @@ export class LoadingIndicator {
288
278
  "attribute": "inner-label",
289
279
  "reflect": false
290
280
  },
281
+ "label": {
282
+ "type": "string",
283
+ "mutable": false,
284
+ "complexType": {
285
+ "original": "string | string[]",
286
+ "resolved": "string | string[] | undefined",
287
+ "references": {}
288
+ },
289
+ "required": false,
290
+ "optional": true,
291
+ "docs": {
292
+ "tags": [],
293
+ "text": "The label to be displayed beneath the loading indicator.\nDisplay a changing label by supplying an array of messages."
294
+ },
295
+ "getter": false,
296
+ "setter": false,
297
+ "attribute": "label",
298
+ "reflect": false
299
+ },
291
300
  "labelDuration": {
292
301
  "type": "number",
293
302
  "mutable": false,
294
303
  "complexType": {
295
304
  "original": "number",
296
- "resolved": "number | undefined",
305
+ "resolved": "number",
297
306
  "references": {}
298
307
  },
299
308
  "required": false,
300
- "optional": true,
309
+ "optional": false,
301
310
  "docs": {
302
311
  "tags": [],
303
312
  "text": "The time in milliseconds before the label changes."
@@ -313,11 +322,11 @@ export class LoadingIndicator {
313
322
  "mutable": false,
314
323
  "complexType": {
315
324
  "original": "number",
316
- "resolved": "number | undefined",
325
+ "resolved": "number",
317
326
  "references": {}
318
327
  },
319
328
  "required": false,
320
- "optional": true,
329
+ "optional": false,
321
330
  "docs": {
322
331
  "tags": [],
323
332
  "text": "The maximum value that the progress value can take.\nUsed to calculate the proportional width of the progress bar."
@@ -333,11 +342,11 @@ export class LoadingIndicator {
333
342
  "mutable": false,
334
343
  "complexType": {
335
344
  "original": "number",
336
- "resolved": "number | undefined",
345
+ "resolved": "number",
337
346
  "references": {}
338
347
  },
339
348
  "required": false,
340
- "optional": true,
349
+ "optional": false,
341
350
  "docs": {
342
351
  "tags": [],
343
352
  "text": "The minimum value that the progress value can take.\nUsed to calculate the proportional width of the progress bar."
@@ -353,11 +362,11 @@ export class LoadingIndicator {
353
362
  "mutable": false,
354
363
  "complexType": {
355
364
  "original": "boolean",
356
- "resolved": "boolean | undefined",
365
+ "resolved": "boolean",
357
366
  "references": {}
358
367
  },
359
368
  "required": false,
360
- "optional": true,
369
+ "optional": false,
361
370
  "docs": {
362
371
  "tags": [],
363
372
  "text": "If `true`, the element will display as black and white."
@@ -368,121 +377,102 @@ export class LoadingIndicator {
368
377
  "reflect": false,
369
378
  "defaultValue": "false"
370
379
  },
371
- "size": {
372
- "type": "string",
380
+ "progress": {
381
+ "type": "number",
373
382
  "mutable": false,
374
383
  "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
- }
384
+ "original": "number",
385
+ "resolved": "number | undefined",
386
+ "references": {}
384
387
  },
385
388
  "required": false,
386
389
  "optional": true,
387
390
  "docs": {
388
391
  "tags": [],
389
- "text": "The size of the loading indicator."
392
+ "text": "The current amount of progress made.\nIf not provided, component acts as an indeterminate loading indicator."
390
393
  },
391
394
  "getter": false,
392
395
  "setter": false,
393
- "attribute": "size",
394
- "reflect": true,
395
- "defaultValue": "\"medium\""
396
+ "attribute": "progress",
397
+ "reflect": false
396
398
  },
397
- "type": {
399
+ "size": {
398
400
  "type": "string",
399
401
  "mutable": false,
400
402
  "complexType": {
401
- "original": "IcLoadingTypes",
402
- "resolved": "\"circular\" | \"linear\" | undefined",
403
+ "original": "IcLoadingSizes",
404
+ "resolved": "\"icon\" | \"large\" | \"medium\" | \"small\"",
403
405
  "references": {
404
- "IcLoadingTypes": {
406
+ "IcLoadingSizes": {
405
407
  "location": "import",
406
408
  "path": "./ic-loading-indicator.types",
407
- "id": "src/components/ic-loading-indicator/ic-loading-indicator.types.tsx::IcLoadingTypes"
409
+ "id": "src/components/ic-loading-indicator/ic-loading-indicator.types.tsx::IcLoadingSizes"
408
410
  }
409
411
  }
410
412
  },
411
413
  "required": false,
412
- "optional": true,
414
+ "optional": false,
413
415
  "docs": {
414
416
  "tags": [],
415
- "text": "The type of indicator, either linear or circular."
417
+ "text": "The size of the loading indicator."
416
418
  },
417
419
  "getter": false,
418
420
  "setter": false,
419
- "attribute": "type",
421
+ "attribute": "size",
420
422
  "reflect": true,
421
- "defaultValue": "\"circular\""
423
+ "defaultValue": "\"medium\""
422
424
  },
423
- "label": {
425
+ "theme": {
424
426
  "type": "string",
425
427
  "mutable": false,
426
428
  "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": {}
429
+ "original": "IcThemeMode",
430
+ "resolved": "\"dark\" | \"inherit\" | \"light\"",
431
+ "references": {
432
+ "IcThemeMode": {
433
+ "location": "import",
434
+ "path": "../../utils/types",
435
+ "id": "src/utils/types.ts::IcThemeMode"
436
+ }
437
+ }
449
438
  },
450
439
  "required": false,
451
- "optional": true,
440
+ "optional": false,
452
441
  "docs": {
453
442
  "tags": [],
454
- "text": "The current amount of progress made.\nIf not provided, component acts as an indeterminate loading indicator."
443
+ "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
444
  },
456
445
  "getter": false,
457
446
  "setter": false,
458
- "attribute": "progress",
459
- "reflect": false
447
+ "attribute": "theme",
448
+ "reflect": false,
449
+ "defaultValue": "\"inherit\""
460
450
  },
461
- "theme": {
451
+ "type": {
462
452
  "type": "string",
463
453
  "mutable": false,
464
454
  "complexType": {
465
- "original": "IcThemeMode",
466
- "resolved": "\"dark\" | \"inherit\" | \"light\" | undefined",
455
+ "original": "IcLoadingTypes",
456
+ "resolved": "\"circular\" | \"linear\"",
467
457
  "references": {
468
- "IcThemeMode": {
458
+ "IcLoadingTypes": {
469
459
  "location": "import",
470
- "path": "../../utils/types",
471
- "id": "src/utils/types.ts::IcThemeMode"
460
+ "path": "./ic-loading-indicator.types",
461
+ "id": "src/components/ic-loading-indicator/ic-loading-indicator.types.tsx::IcLoadingTypes"
472
462
  }
473
463
  }
474
464
  },
475
465
  "required": false,
476
- "optional": true,
466
+ "optional": false,
477
467
  "docs": {
478
468
  "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."
469
+ "text": "The type of indicator, either linear or circular."
480
470
  },
481
471
  "getter": false,
482
472
  "setter": false,
483
- "attribute": "theme",
484
- "reflect": false,
485
- "defaultValue": "\"inherit\""
473
+ "attribute": "type",
474
+ "reflect": true,
475
+ "defaultValue": "\"circular\""
486
476
  }
487
477
  };
488
478
  }
@@ -490,7 +480,7 @@ export class LoadingIndicator {
490
480
  return {
491
481
  "circularDiameter": {},
492
482
  "circularLineWidth": {},
493
- "indeterminate": {},
483
+ "circularDimensions": {},
494
484
  "indicatorLabel": {},
495
485
  "clipInnerElement": {}
496
486
  };
@@ -500,9 +490,18 @@ export class LoadingIndicator {
500
490
  return [{
501
491
  "propName": "label",
502
492
  "methodName": "watchPropHandler"
493
+ }, {
494
+ "propName": "max",
495
+ "methodName": "minMaxChangeHandler"
496
+ }, {
497
+ "propName": "min",
498
+ "methodName": "minMaxChangeHandler"
503
499
  }, {
504
500
  "propName": "progress",
505
501
  "methodName": "watchProgressHandler"
502
+ }, {
503
+ "propName": "type",
504
+ "methodName": "setIndicatorDimensions"
506
505
  }];
507
506
  }
508
507
  }