@aeris-ui/core 22.0.0-alpha.1 → 22.0.0-alpha.10

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 (288) hide show
  1. package/README.md +200 -191
  2. package/fesm2022/aeris-ui-core-accordion.mjs +646 -255
  3. package/fesm2022/aeris-ui-core-accordion.mjs.map +1 -1
  4. package/fesm2022/aeris-ui-core-animate-on-scroll.mjs +284 -103
  5. package/fesm2022/aeris-ui-core-animate-on-scroll.mjs.map +1 -1
  6. package/fesm2022/aeris-ui-core-auto-complete.mjs +1228 -446
  7. package/fesm2022/aeris-ui-core-auto-complete.mjs.map +1 -1
  8. package/fesm2022/aeris-ui-core-auto-focus.mjs +111 -61
  9. package/fesm2022/aeris-ui-core-auto-focus.mjs.map +1 -1
  10. package/fesm2022/aeris-ui-core-avatar.mjs +383 -101
  11. package/fesm2022/aeris-ui-core-avatar.mjs.map +1 -1
  12. package/fesm2022/aeris-ui-core-badge.mjs +562 -115
  13. package/fesm2022/aeris-ui-core-badge.mjs.map +1 -1
  14. package/fesm2022/aeris-ui-core-block-ui.mjs +209 -101
  15. package/fesm2022/aeris-ui-core-block-ui.mjs.map +1 -1
  16. package/fesm2022/aeris-ui-core-breadcrumb.mjs +581 -189
  17. package/fesm2022/aeris-ui-core-breadcrumb.mjs.map +1 -1
  18. package/fesm2022/aeris-ui-core-button-group.mjs +153 -38
  19. package/fesm2022/aeris-ui-core-button-group.mjs.map +1 -1
  20. package/fesm2022/aeris-ui-core-button.mjs +741 -139
  21. package/fesm2022/aeris-ui-core-button.mjs.map +1 -1
  22. package/fesm2022/aeris-ui-core-card.mjs +371 -101
  23. package/fesm2022/aeris-ui-core-card.mjs.map +1 -1
  24. package/fesm2022/aeris-ui-core-carousel.mjs +773 -369
  25. package/fesm2022/aeris-ui-core-carousel.mjs.map +1 -1
  26. package/fesm2022/aeris-ui-core-cascade-select.mjs +1171 -521
  27. package/fesm2022/aeris-ui-core-cascade-select.mjs.map +1 -1
  28. package/fesm2022/aeris-ui-core-chart.mjs +455 -258
  29. package/fesm2022/aeris-ui-core-chart.mjs.map +1 -1
  30. package/fesm2022/aeris-ui-core-checkbox.mjs +440 -140
  31. package/fesm2022/aeris-ui-core-checkbox.mjs.map +1 -1
  32. package/fesm2022/aeris-ui-core-chip.mjs +430 -117
  33. package/fesm2022/aeris-ui-core-chip.mjs.map +1 -1
  34. package/fesm2022/aeris-ui-core-class-names.mjs +87 -65
  35. package/fesm2022/aeris-ui-core-class-names.mjs.map +1 -1
  36. package/fesm2022/aeris-ui-core-code-block.mjs +637 -0
  37. package/fesm2022/aeris-ui-core-code-block.mjs.map +1 -0
  38. package/fesm2022/aeris-ui-core-color-picker.mjs +1340 -700
  39. package/fesm2022/aeris-ui-core-color-picker.mjs.map +1 -1
  40. package/fesm2022/aeris-ui-core-compare.mjs +823 -318
  41. package/fesm2022/aeris-ui-core-compare.mjs.map +1 -1
  42. package/fesm2022/aeris-ui-core-confirm-dialog.mjs +1404 -555
  43. package/fesm2022/aeris-ui-core-confirm-dialog.mjs.map +1 -1
  44. package/fesm2022/aeris-ui-core-confirm-popup.mjs +1471 -740
  45. package/fesm2022/aeris-ui-core-confirm-popup.mjs.map +1 -1
  46. package/fesm2022/aeris-ui-core-context-menu.mjs +918 -443
  47. package/fesm2022/aeris-ui-core-context-menu.mjs.map +1 -1
  48. package/fesm2022/aeris-ui-core-date-picker.mjs +1942 -1123
  49. package/fesm2022/aeris-ui-core-date-picker.mjs.map +1 -1
  50. package/fesm2022/aeris-ui-core-dialog.mjs +1079 -346
  51. package/fesm2022/aeris-ui-core-dialog.mjs.map +1 -1
  52. package/fesm2022/aeris-ui-core-divider.mjs +204 -43
  53. package/fesm2022/aeris-ui-core-divider.mjs.map +1 -1
  54. package/fesm2022/aeris-ui-core-drawer.mjs +1015 -322
  55. package/fesm2022/aeris-ui-core-drawer.mjs.map +1 -1
  56. package/fesm2022/aeris-ui-core-dynamic-dialog.mjs +410 -254
  57. package/fesm2022/aeris-ui-core-dynamic-dialog.mjs.map +1 -1
  58. package/fesm2022/aeris-ui-core-editor.mjs +967 -587
  59. package/fesm2022/aeris-ui-core-editor.mjs.map +1 -1
  60. package/fesm2022/aeris-ui-core-file-upload.mjs +1379 -522
  61. package/fesm2022/aeris-ui-core-file-upload.mjs.map +1 -1
  62. package/fesm2022/aeris-ui-core-filter-service.mjs +258 -301
  63. package/fesm2022/aeris-ui-core-filter-service.mjs.map +1 -1
  64. package/fesm2022/aeris-ui-core-fluid.mjs +68 -21
  65. package/fesm2022/aeris-ui-core-fluid.mjs.map +1 -1
  66. package/fesm2022/aeris-ui-core-focus-trap.mjs +206 -182
  67. package/fesm2022/aeris-ui-core-focus-trap.mjs.map +1 -1
  68. package/fesm2022/aeris-ui-core-form-field.mjs +688 -0
  69. package/fesm2022/aeris-ui-core-form-field.mjs.map +1 -0
  70. package/fesm2022/aeris-ui-core-galleria.mjs +2446 -1117
  71. package/fesm2022/aeris-ui-core-galleria.mjs.map +1 -1
  72. package/fesm2022/aeris-ui-core-glass.mjs +110 -33
  73. package/fesm2022/aeris-ui-core-glass.mjs.map +1 -1
  74. package/fesm2022/aeris-ui-core-icon-field.mjs +426 -98
  75. package/fesm2022/aeris-ui-core-icon-field.mjs.map +1 -1
  76. package/fesm2022/aeris-ui-core-inplace.mjs +452 -130
  77. package/fesm2022/aeris-ui-core-inplace.mjs.map +1 -1
  78. package/fesm2022/aeris-ui-core-input-group.mjs +413 -107
  79. package/fesm2022/aeris-ui-core-input-group.mjs.map +1 -1
  80. package/fesm2022/aeris-ui-core-input-mask.mjs +658 -255
  81. package/fesm2022/aeris-ui-core-input-mask.mjs.map +1 -1
  82. package/fesm2022/aeris-ui-core-input-number.mjs +926 -291
  83. package/fesm2022/aeris-ui-core-input-number.mjs.map +1 -1
  84. package/fesm2022/aeris-ui-core-input-otp.mjs +678 -264
  85. package/fesm2022/aeris-ui-core-input-otp.mjs.map +1 -1
  86. package/fesm2022/aeris-ui-core-input-text.mjs +625 -158
  87. package/fesm2022/aeris-ui-core-input-text.mjs.map +1 -1
  88. package/fesm2022/aeris-ui-core-key-filter.mjs +263 -201
  89. package/fesm2022/aeris-ui-core-key-filter.mjs.map +1 -1
  90. package/fesm2022/aeris-ui-core-mega-menu.mjs +613 -382
  91. package/fesm2022/aeris-ui-core-mega-menu.mjs.map +1 -1
  92. package/fesm2022/aeris-ui-core-menu.mjs +1062 -472
  93. package/fesm2022/aeris-ui-core-menu.mjs.map +1 -1
  94. package/fesm2022/aeris-ui-core-menubar.mjs +994 -393
  95. package/fesm2022/aeris-ui-core-menubar.mjs.map +1 -1
  96. package/fesm2022/aeris-ui-core-message.mjs +477 -145
  97. package/fesm2022/aeris-ui-core-message.mjs.map +1 -1
  98. package/fesm2022/aeris-ui-core-meter-group.mjs +623 -230
  99. package/fesm2022/aeris-ui-core-meter-group.mjs.map +1 -1
  100. package/fesm2022/aeris-ui-core-multi-select.mjs +1598 -561
  101. package/fesm2022/aeris-ui-core-multi-select.mjs.map +1 -1
  102. package/fesm2022/aeris-ui-core-order-list.mjs +592 -220
  103. package/fesm2022/aeris-ui-core-order-list.mjs.map +1 -1
  104. package/fesm2022/aeris-ui-core-organization-chart.mjs +485 -199
  105. package/fesm2022/aeris-ui-core-organization-chart.mjs.map +1 -1
  106. package/fesm2022/aeris-ui-core-paginator.mjs +428 -123
  107. package/fesm2022/aeris-ui-core-paginator.mjs.map +1 -1
  108. package/fesm2022/aeris-ui-core-panel.mjs +596 -196
  109. package/fesm2022/aeris-ui-core-panel.mjs.map +1 -1
  110. package/fesm2022/aeris-ui-core-password.mjs +925 -249
  111. package/fesm2022/aeris-ui-core-password.mjs.map +1 -1
  112. package/fesm2022/aeris-ui-core-pick-list.mjs +1280 -659
  113. package/fesm2022/aeris-ui-core-pick-list.mjs.map +1 -1
  114. package/fesm2022/aeris-ui-core-popover.mjs +912 -375
  115. package/fesm2022/aeris-ui-core-popover.mjs.map +1 -1
  116. package/fesm2022/aeris-ui-core-progress-bar.mjs +549 -176
  117. package/fesm2022/aeris-ui-core-progress-bar.mjs.map +1 -1
  118. package/fesm2022/aeris-ui-core-progress-spinner.mjs +410 -133
  119. package/fesm2022/aeris-ui-core-progress-spinner.mjs.map +1 -1
  120. package/fesm2022/aeris-ui-core-radio-button.mjs +394 -124
  121. package/fesm2022/aeris-ui-core-radio-button.mjs.map +1 -1
  122. package/fesm2022/aeris-ui-core-rating.mjs +506 -231
  123. package/fesm2022/aeris-ui-core-rating.mjs.map +1 -1
  124. package/fesm2022/aeris-ui-core-scroll-panel.mjs +457 -154
  125. package/fesm2022/aeris-ui-core-scroll-panel.mjs.map +1 -1
  126. package/fesm2022/aeris-ui-core-scroll-top.mjs +226 -63
  127. package/fesm2022/aeris-ui-core-scroll-top.mjs.map +1 -1
  128. package/fesm2022/aeris-ui-core-select.mjs +1845 -648
  129. package/fesm2022/aeris-ui-core-select.mjs.map +1 -1
  130. package/fesm2022/aeris-ui-core-skeleton.mjs +149 -45
  131. package/fesm2022/aeris-ui-core-skeleton.mjs.map +1 -1
  132. package/fesm2022/aeris-ui-core-slider.mjs +884 -430
  133. package/fesm2022/aeris-ui-core-slider.mjs.map +1 -1
  134. package/fesm2022/aeris-ui-core-speed-dial.mjs +861 -337
  135. package/fesm2022/aeris-ui-core-speed-dial.mjs.map +1 -1
  136. package/fesm2022/aeris-ui-core-split-button.mjs +955 -266
  137. package/fesm2022/aeris-ui-core-split-button.mjs.map +1 -1
  138. package/fesm2022/aeris-ui-core-splitter.mjs +812 -352
  139. package/fesm2022/aeris-ui-core-splitter.mjs.map +1 -1
  140. package/fesm2022/aeris-ui-core-stepper.mjs +697 -254
  141. package/fesm2022/aeris-ui-core-stepper.mjs.map +1 -1
  142. package/fesm2022/aeris-ui-core-style-class.mjs +587 -342
  143. package/fesm2022/aeris-ui-core-style-class.mjs.map +1 -1
  144. package/fesm2022/aeris-ui-core-table.mjs +2034 -869
  145. package/fesm2022/aeris-ui-core-table.mjs.map +1 -1
  146. package/fesm2022/aeris-ui-core-tabs.mjs +789 -279
  147. package/fesm2022/aeris-ui-core-tabs.mjs.map +1 -1
  148. package/fesm2022/aeris-ui-core-textarea.mjs +856 -219
  149. package/fesm2022/aeris-ui-core-textarea.mjs.map +1 -1
  150. package/fesm2022/aeris-ui-core-theme-builder.mjs +1284 -1399
  151. package/fesm2022/aeris-ui-core-theme-builder.mjs.map +1 -1
  152. package/fesm2022/aeris-ui-core-theming.mjs +132 -144
  153. package/fesm2022/aeris-ui-core-theming.mjs.map +1 -1
  154. package/fesm2022/aeris-ui-core-tiered-menu.mjs +909 -441
  155. package/fesm2022/aeris-ui-core-tiered-menu.mjs.map +1 -1
  156. package/fesm2022/aeris-ui-core-timeline.mjs +407 -131
  157. package/fesm2022/aeris-ui-core-timeline.mjs.map +1 -1
  158. package/fesm2022/aeris-ui-core-toast.mjs +1076 -384
  159. package/fesm2022/aeris-ui-core-toast.mjs.map +1 -1
  160. package/fesm2022/aeris-ui-core-toggle-switch.mjs +398 -132
  161. package/fesm2022/aeris-ui-core-toggle-switch.mjs.map +1 -1
  162. package/fesm2022/aeris-ui-core-toolbar.mjs +458 -121
  163. package/fesm2022/aeris-ui-core-toolbar.mjs.map +1 -1
  164. package/fesm2022/aeris-ui-core-tooltip.mjs +625 -330
  165. package/fesm2022/aeris-ui-core-tooltip.mjs.map +1 -1
  166. package/fesm2022/aeris-ui-core-tree-select.mjs +1453 -621
  167. package/fesm2022/aeris-ui-core-tree-select.mjs.map +1 -1
  168. package/fesm2022/aeris-ui-core-tree-table.mjs +2019 -940
  169. package/fesm2022/aeris-ui-core-tree-table.mjs.map +1 -1
  170. package/fesm2022/aeris-ui-core-tree.mjs +1107 -658
  171. package/fesm2022/aeris-ui-core-tree.mjs.map +1 -1
  172. package/fesm2022/aeris-ui-core.mjs +985 -316
  173. package/fesm2022/aeris-ui-core.mjs.map +1 -1
  174. package/package.json +20 -8
  175. package/schematics/ng-add/schema.json +1 -1
  176. package/schematics/runtime/schematics/ng-add/options.js +4 -4
  177. package/schematics/runtime/schematics/ng-add/options.js.map +1 -1
  178. package/schematics/runtime/schematics/ng-add/workspace.js +1 -1
  179. package/schematics/runtime/schematics/ng-add/workspace.js.map +1 -1
  180. package/schematics/runtime/theme-builder/aeris-contrast.js +6 -17
  181. package/schematics/runtime/theme-builder/aeris-contrast.js.map +1 -1
  182. package/schematics/runtime/theme-builder/aeris-foundation.js +10 -4
  183. package/schematics/runtime/theme-builder/aeris-foundation.js.map +1 -1
  184. package/schematics/runtime/theme-builder/aeris-semantic-tones.js +28 -5
  185. package/schematics/runtime/theme-builder/aeris-semantic-tones.js.map +1 -1
  186. package/schematics/runtime/theme-builder/aeris-theme-generator.js +2 -2
  187. package/schematics/runtime/theme-builder/aeris-theme-generator.js.map +1 -1
  188. package/schematics/runtime/theme-builder/aeris-theme-resolver.js +22 -8
  189. package/schematics/runtime/theme-builder/aeris-theme-resolver.js.map +1 -1
  190. package/schematics/runtime/theme-builder/aeris-theme-tokens.js +12 -4
  191. package/schematics/runtime/theme-builder/aeris-theme-tokens.js.map +1 -1
  192. package/schematics/runtime/theme-builder/aeris-theme-validation.js +7 -1
  193. package/schematics/runtime/theme-builder/aeris-theme-validation.js.map +1 -1
  194. package/schematics/runtime/theme-builder/aeris-theme.js +49 -33
  195. package/schematics/runtime/theme-builder/aeris-theme.js.map +1 -1
  196. package/styles/_fallback-colors.scss +10 -0
  197. package/styles/_mobile.scss +16 -0
  198. package/styles/_tokens.scss +5 -5
  199. package/styles/aeris.css +412 -125
  200. package/styles/controls.css +61 -29
  201. package/tools/aeris-theme.mjs +2 -2
  202. package/tools/aeris-theme.schema.json +5 -2
  203. package/types/aeris-ui-core-accordion.d.ts +167 -93
  204. package/types/aeris-ui-core-animate-on-scroll.d.ts +72 -31
  205. package/types/aeris-ui-core-auto-complete.d.ts +327 -140
  206. package/types/aeris-ui-core-auto-focus.d.ts +24 -16
  207. package/types/aeris-ui-core-avatar.d.ts +112 -42
  208. package/types/aeris-ui-core-badge.d.ts +160 -46
  209. package/types/aeris-ui-core-block-ui.d.ts +47 -27
  210. package/types/aeris-ui-core-breadcrumb.d.ts +163 -92
  211. package/types/aeris-ui-core-button-group.d.ts +37 -16
  212. package/types/aeris-ui-core-button.d.ts +226 -67
  213. package/types/aeris-ui-core-card.d.ts +74 -37
  214. package/types/aeris-ui-core-carousel.d.ts +201 -117
  215. package/types/aeris-ui-core-cascade-select.d.ts +257 -123
  216. package/types/aeris-ui-core-chart.d.ts +134 -84
  217. package/types/aeris-ui-core-checkbox.d.ts +139 -54
  218. package/types/aeris-ui-core-chip.d.ts +116 -51
  219. package/types/aeris-ui-core-class-names.d.ts +22 -20
  220. package/types/aeris-ui-core-code-block.d.ts +188 -0
  221. package/types/aeris-ui-core-color-picker.d.ts +348 -143
  222. package/types/aeris-ui-core-compare.d.ts +224 -102
  223. package/types/aeris-ui-core-confirm-dialog.d.ts +442 -245
  224. package/types/aeris-ui-core-confirm-popup.d.ts +442 -263
  225. package/types/aeris-ui-core-context-menu.d.ts +264 -146
  226. package/types/aeris-ui-core-date-picker.d.ts +489 -217
  227. package/types/aeris-ui-core-dialog.d.ts +288 -117
  228. package/types/aeris-ui-core-divider.d.ts +58 -20
  229. package/types/aeris-ui-core-drawer.d.ts +273 -112
  230. package/types/aeris-ui-core-dynamic-dialog.d.ts +158 -137
  231. package/types/aeris-ui-core-editor.d.ts +250 -123
  232. package/types/aeris-ui-core-file-upload.d.ts +367 -197
  233. package/types/aeris-ui-core-filter-service.d.ts +48 -52
  234. package/types/aeris-ui-core-fluid.d.ts +12 -9
  235. package/types/aeris-ui-core-focus-trap.d.ts +39 -31
  236. package/types/aeris-ui-core-form-field.d.ts +163 -0
  237. package/types/aeris-ui-core-galleria.d.ts +588 -256
  238. package/types/aeris-ui-core-glass.d.ts +24 -11
  239. package/types/aeris-ui-core-icon-field.d.ts +94 -32
  240. package/types/aeris-ui-core-inplace.d.ts +123 -62
  241. package/types/aeris-ui-core-input-group.d.ts +84 -33
  242. package/types/aeris-ui-core-input-mask.d.ts +194 -69
  243. package/types/aeris-ui-core-input-number.d.ts +272 -87
  244. package/types/aeris-ui-core-input-otp.d.ts +191 -81
  245. package/types/aeris-ui-core-input-text.d.ts +185 -60
  246. package/types/aeris-ui-core-key-filter.d.ts +53 -39
  247. package/types/aeris-ui-core-mega-menu.d.ts +175 -121
  248. package/types/aeris-ui-core-menu.d.ts +277 -168
  249. package/types/aeris-ui-core-menubar.d.ts +273 -135
  250. package/types/aeris-ui-core-message.d.ts +132 -60
  251. package/types/aeris-ui-core-meter-group.d.ts +163 -90
  252. package/types/aeris-ui-core-multi-select.d.ts +439 -180
  253. package/types/aeris-ui-core-order-list.d.ts +144 -66
  254. package/types/aeris-ui-core-organization-chart.d.ts +133 -77
  255. package/types/aeris-ui-core-paginator.d.ts +93 -38
  256. package/types/aeris-ui-core-panel.d.ts +149 -78
  257. package/types/aeris-ui-core-password.d.ts +258 -102
  258. package/types/aeris-ui-core-pick-list.d.ts +374 -179
  259. package/types/aeris-ui-core-popover.d.ts +219 -105
  260. package/types/aeris-ui-core-progress-bar.d.ts +157 -73
  261. package/types/aeris-ui-core-progress-spinner.d.ts +110 -48
  262. package/types/aeris-ui-core-radio-button.d.ts +124 -50
  263. package/types/aeris-ui-core-rating.d.ts +149 -76
  264. package/types/aeris-ui-core-scroll-panel.d.ts +142 -64
  265. package/types/aeris-ui-core-scroll-top.d.ts +66 -29
  266. package/types/aeris-ui-core-select.d.ts +475 -217
  267. package/types/aeris-ui-core-skeleton.d.ts +39 -17
  268. package/types/aeris-ui-core-slider.d.ts +270 -115
  269. package/types/aeris-ui-core-speed-dial.d.ts +241 -111
  270. package/types/aeris-ui-core-split-button.d.ts +267 -113
  271. package/types/aeris-ui-core-splitter.d.ts +225 -106
  272. package/types/aeris-ui-core-stepper.d.ts +184 -91
  273. package/types/aeris-ui-core-style-class.d.ts +141 -71
  274. package/types/aeris-ui-core-table.d.ts +596 -304
  275. package/types/aeris-ui-core-tabs.d.ts +181 -76
  276. package/types/aeris-ui-core-textarea.d.ts +261 -78
  277. package/types/aeris-ui-core-theme-builder.d.ts +472 -450
  278. package/types/aeris-ui-core-theming.d.ts +42 -45
  279. package/types/aeris-ui-core-tiered-menu.d.ts +251 -142
  280. package/types/aeris-ui-core-timeline.d.ts +109 -71
  281. package/types/aeris-ui-core-toast.d.ts +225 -115
  282. package/types/aeris-ui-core-toggle-switch.d.ts +125 -51
  283. package/types/aeris-ui-core-toolbar.d.ts +98 -41
  284. package/types/aeris-ui-core-tooltip.d.ts +157 -88
  285. package/types/aeris-ui-core-tree-select.d.ts +364 -171
  286. package/types/aeris-ui-core-tree-table.d.ts +566 -286
  287. package/types/aeris-ui-core-tree.d.ts +270 -165
  288. package/types/aeris-ui-core.d.ts +197 -72
@@ -1,147 +1,349 @@
1
- import { NgTemplateOutlet } from '@angular/common';
2
- import * as i0 from '@angular/core';
3
- import { inject, TemplateRef, Directive, contentChild, input, numberAttribute, booleanAttribute, computed, Component } from '@angular/core';
4
-
5
- class AerisProgressBarValueTemplate {
6
- template = inject(TemplateRef);
7
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisProgressBarValueTemplate, deps: [], target: i0.ɵɵFactoryTarget.Directive });
8
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.6", type: AerisProgressBarValueTemplate, isStandalone: true, selector: "ng-template[aerisProgressBarValue]", ngImport: i0 });
9
- }
10
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisProgressBarValueTemplate, decorators: [{
11
- type: Directive,
12
- args: [{ selector: 'ng-template[aerisProgressBarValue]' }]
13
- }] });
14
- class AerisProgressBarStepTemplate {
15
- template = inject(TemplateRef);
16
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisProgressBarStepTemplate, deps: [], target: i0.ɵɵFactoryTarget.Directive });
17
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.6", type: AerisProgressBarStepTemplate, isStandalone: true, selector: "ng-template[aerisProgressBarStep]", ngImport: i0 });
18
- }
19
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisProgressBarStepTemplate, decorators: [{
20
- type: Directive,
21
- args: [{ selector: 'ng-template[aerisProgressBarStep]' }]
22
- }] });
1
+ import { NgTemplateOutlet } from "@angular/common";
2
+ import * as i0 from "@angular/core";
3
+ import { Component, Directive, TemplateRef, booleanAttribute, computed, contentChild, inject, input, numberAttribute } from "@angular/core";
4
+ var AerisProgressBarValueTemplate = class AerisProgressBarValueTemplate {
5
+ template = inject(TemplateRef);
6
+ static ɵfac = i0.ɵɵngDeclareFactory({
7
+ minVersion: "12.0.0",
8
+ version: "22.2.2",
9
+ ngImport: i0,
10
+ type: AerisProgressBarValueTemplate,
11
+ deps: [],
12
+ target: i0.ɵɵFactoryTarget.Directive
13
+ });
14
+ static ɵdir = i0.ɵɵngDeclareDirective({
15
+ minVersion: "14.0.0",
16
+ version: "22.2.2",
17
+ type: AerisProgressBarValueTemplate,
18
+ isStandalone: true,
19
+ selector: "ng-template[aerisProgressBarValue]",
20
+ ngImport: i0
21
+ });
22
+ };
23
+ i0.ɵɵngDeclareClassMetadata({
24
+ minVersion: "12.0.0",
25
+ version: "22.2.2",
26
+ ngImport: i0,
27
+ type: AerisProgressBarValueTemplate,
28
+ decorators: [{
29
+ type: Directive,
30
+ args: [{ selector: "ng-template[aerisProgressBarValue]" }]
31
+ }]
32
+ });
33
+ var AerisProgressBarStepTemplate = class AerisProgressBarStepTemplate {
34
+ template = inject(TemplateRef);
35
+ static ɵfac = i0.ɵɵngDeclareFactory({
36
+ minVersion: "12.0.0",
37
+ version: "22.2.2",
38
+ ngImport: i0,
39
+ type: AerisProgressBarStepTemplate,
40
+ deps: [],
41
+ target: i0.ɵɵFactoryTarget.Directive
42
+ });
43
+ static ɵdir = i0.ɵɵngDeclareDirective({
44
+ minVersion: "14.0.0",
45
+ version: "22.2.2",
46
+ type: AerisProgressBarStepTemplate,
47
+ isStandalone: true,
48
+ selector: "ng-template[aerisProgressBarStep]",
49
+ ngImport: i0
50
+ });
51
+ };
52
+ i0.ɵɵngDeclareClassMetadata({
53
+ minVersion: "12.0.0",
54
+ version: "22.2.2",
55
+ ngImport: i0,
56
+ type: AerisProgressBarStepTemplate,
57
+ decorators: [{
58
+ type: Directive,
59
+ args: [{ selector: "ng-template[aerisProgressBarStep]" }]
60
+ }]
61
+ });
23
62
  let nextProgressBarId = 0;
24
- class AerisProgressBar {
25
- valueTemplate = contentChild(AerisProgressBarValueTemplate, /* @ts-ignore */
26
- ...(ngDevMode ? [{ debugName: "valueTemplate" }] : /* istanbul ignore next */ []));
27
- stepTemplate = contentChild(AerisProgressBarStepTemplate, /* @ts-ignore */
28
- ...(ngDevMode ? [{ debugName: "stepTemplate" }] : /* istanbul ignore next */ []));
29
- id = input(`aeris-progress-bar-${++nextProgressBarId}`, /* @ts-ignore */
30
- ...(ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []));
31
- value = input(0, { ...(ngDevMode ? { debugName: "value" } : /* istanbul ignore next */ {}), transform: numberAttribute });
32
- min = input(0, { ...(ngDevMode ? { debugName: "min" } : /* istanbul ignore next */ {}), transform: numberAttribute });
33
- max = input(100, { ...(ngDevMode ? { debugName: "max" } : /* istanbul ignore next */ {}), transform: numberAttribute });
34
- mode = input('determinate', /* @ts-ignore */
35
- ...(ngDevMode ? [{ debugName: "mode" }] : /* istanbul ignore next */ []));
36
- severity = input('primary', /* @ts-ignore */
37
- ...(ngDevMode ? [{ debugName: "severity" }] : /* istanbul ignore next */ []));
38
- size = input('md', /* @ts-ignore */
39
- ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
40
- showValue = input(true, { ...(ngDevMode ? { debugName: "showValue" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
41
- striped = input(false, { ...(ngDevMode ? { debugName: "striped" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
42
- animated = input(false, { ...(ngDevMode ? { debugName: "animated" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
43
- rounded = input(true, { ...(ngDevMode ? { debugName: "rounded" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
44
- ariaLabel = input('', /* @ts-ignore */
45
- ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
46
- ariaLabelledBy = input('', /* @ts-ignore */
47
- ...(ngDevMode ? [{ debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []));
48
- ariaValueText = input('', /* @ts-ignore */
49
- ...(ngDevMode ? [{ debugName: "ariaValueText" }] : /* istanbul ignore next */ []));
50
- steps = input([], /* @ts-ignore */
51
- ...(ngDevMode ? [{ debugName: "steps" }] : /* istanbul ignore next */ []));
52
- activeStep = input(null, /* @ts-ignore */
53
- ...(ngDevMode ? [{ debugName: "activeStep" }] : /* istanbul ignore next */ []));
54
- valueFormatter = input(null, /* @ts-ignore */
55
- ...(ngDevMode ? [{ debugName: "valueFormatter" }] : /* istanbul ignore next */ []));
56
- normalizedMin = computed(() => {
57
- const min = this.min();
58
- return Number.isFinite(min) ? min : 0;
59
- }, /* @ts-ignore */
60
- ...(ngDevMode ? [{ debugName: "normalizedMin" }] : /* istanbul ignore next */ []));
61
- normalizedMax = computed(() => {
62
- const min = this.normalizedMin();
63
- const max = this.max();
64
- return Number.isFinite(max) && max > min ? max : min + 100;
65
- }, /* @ts-ignore */
66
- ...(ngDevMode ? [{ debugName: "normalizedMax" }] : /* istanbul ignore next */ []));
67
- clampedValue = computed(() => {
68
- const value = this.value();
69
- return this.clamp(Number.isFinite(value) ? value : this.normalizedMin(), this.normalizedMin(), this.normalizedMax());
70
- }, /* @ts-ignore */
71
- ...(ngDevMode ? [{ debugName: "clampedValue" }] : /* istanbul ignore next */ []));
72
- percent = computed(() => {
73
- const min = this.normalizedMin();
74
- const max = this.normalizedMax();
75
- const range = max - min;
76
- if (range <= 0)
77
- return 0;
78
- return Math.round(((this.clampedValue() - min) / range) * 1000) / 10;
79
- }, /* @ts-ignore */
80
- ...(ngDevMode ? [{ debugName: "percent" }] : /* istanbul ignore next */ []));
81
- percentStyle = computed(() => `${this.percent()}%`, /* @ts-ignore */
82
- ...(ngDevMode ? [{ debugName: "percentStyle" }] : /* istanbul ignore next */ []));
83
- valueContext = computed(() => ({
84
- $implicit: this.clampedValue(),
85
- value: this.clampedValue(),
86
- min: this.normalizedMin(),
87
- max: this.normalizedMax(),
88
- percent: this.percent(),
89
- }), /* @ts-ignore */
90
- ...(ngDevMode ? [{ debugName: "valueContext" }] : /* istanbul ignore next */ []));
91
- valueText = computed(() => {
92
- const formatter = this.valueFormatter();
93
- if (formatter)
94
- return formatter(this.valueContext());
95
- return `${Math.round(this.percent())}%`;
96
- }, /* @ts-ignore */
97
- ...(ngDevMode ? [{ debugName: "valueText" }] : /* istanbul ignore next */ []));
98
- resolvedAriaValueText = computed(() => {
99
- if (this.mode() !== 'determinate')
100
- return this.ariaValueText() || null;
101
- return this.ariaValueText() || this.valueText();
102
- }, /* @ts-ignore */
103
- ...(ngDevMode ? [{ debugName: "resolvedAriaValueText" }] : /* istanbul ignore next */ []));
104
- stepViews = computed(() => {
105
- const steps = this.steps();
106
- if (steps.length === 0)
107
- return [];
108
- const activeStep = this.activeStep();
109
- const denominator = Math.max(1, steps.length - 1);
110
- return steps.map((step, index) => {
111
- const fallbackPercent = steps.length === 1 ? 100 : (index / denominator) * 100;
112
- const stepPercent = this.stepPercent(step.value, fallbackPercent);
113
- const active = activeStep === null ? this.percent() >= stepPercent : activeStep === index;
114
- const complete = activeStep === null ? this.percent() >= stepPercent : index <= activeStep;
115
- return {
116
- step,
117
- index,
118
- active,
119
- complete,
120
- percent: `${stepPercent}%`,
121
- context: {
122
- $implicit: step,
123
- step,
124
- index,
125
- active,
126
- complete,
127
- percent: stepPercent,
128
- },
129
- };
130
- });
131
- }, /* @ts-ignore */
132
- ...(ngDevMode ? [{ debugName: "stepViews" }] : /* istanbul ignore next */ []));
133
- stepPercent(value, fallback) {
134
- if (value === undefined || !Number.isFinite(value))
135
- return this.clamp(fallback, 0, 100);
136
- const min = this.normalizedMin();
137
- const max = this.normalizedMax();
138
- return this.clamp(((value - min) / (max - min)) * 100, 0, 100);
139
- }
140
- clamp(value, min, max) {
141
- return Math.min(Math.max(value, min), max);
142
- }
143
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisProgressBar, deps: [], target: i0.ɵɵFactoryTarget.Component });
144
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: AerisProgressBar, isStandalone: true, selector: "aeris-progress-bar", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null }, severity: { classPropertyName: "severity", publicName: "severity", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, showValue: { classPropertyName: "showValue", publicName: "showValue", isSignal: true, isRequired: false, transformFunction: null }, striped: { classPropertyName: "striped", publicName: "striped", isSignal: true, isRequired: false, transformFunction: null }, animated: { classPropertyName: "animated", publicName: "animated", isSignal: true, isRequired: false, transformFunction: null }, rounded: { classPropertyName: "rounded", publicName: "rounded", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "ariaLabelledBy", isSignal: true, isRequired: false, transformFunction: null }, ariaValueText: { classPropertyName: "ariaValueText", publicName: "ariaValueText", isSignal: true, isRequired: false, transformFunction: null }, steps: { classPropertyName: "steps", publicName: "steps", isSignal: true, isRequired: false, transformFunction: null }, activeStep: { classPropertyName: "activeStep", publicName: "activeStep", isSignal: true, isRequired: false, transformFunction: null }, valueFormatter: { classPropertyName: "valueFormatter", publicName: "valueFormatter", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "progressbar" }, properties: { "attr.id": "id()", "attr.aria-valuemin": "mode() === \"determinate\" ? min() : null", "attr.aria-valuemax": "mode() === \"determinate\" ? max() : null", "attr.aria-valuenow": "mode() === \"determinate\" ? clampedValue() : null", "attr.aria-valuetext": "resolvedAriaValueText()", "attr.aria-label": "ariaLabel() || null", "attr.aria-labelledby": "ariaLabelledBy() || null", "attr.data-mode": "mode()", "attr.data-severity": "severity()", "attr.data-size": "size()", "attr.data-striped": "striped() || null", "attr.data-animated": "animated() || null", "attr.data-rounded": "rounded() || null", "style.--aeris-progress-bar-value": "percentStyle()" }, classAttribute: "aeris-progress-bar" }, queries: [{ propertyName: "valueTemplate", first: true, predicate: AerisProgressBarValueTemplate, descendants: true, isSignal: true }, { propertyName: "stepTemplate", first: true, predicate: AerisProgressBarStepTemplate, descendants: true, isSignal: true }], ngImport: i0, template: `
63
+ var AerisProgressBar = class AerisProgressBar {
64
+ valueTemplate = contentChild(AerisProgressBarValueTemplate, ...ngDevMode ? [{ debugName: "valueTemplate" }] : /* istanbul ignore next */ []);
65
+ stepTemplate = contentChild(AerisProgressBarStepTemplate, ...ngDevMode ? [{ debugName: "stepTemplate" }] : /* istanbul ignore next */ []);
66
+ id = input(`aeris-progress-bar-${++nextProgressBarId}`, ...ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []);
67
+ value = input(0, {
68
+ ...ngDevMode ? { debugName: "value" } : /* istanbul ignore next */ {},
69
+ transform: numberAttribute
70
+ });
71
+ min = input(0, {
72
+ ...ngDevMode ? { debugName: "min" } : /* istanbul ignore next */ {},
73
+ transform: numberAttribute
74
+ });
75
+ max = input(100, {
76
+ ...ngDevMode ? { debugName: "max" } : /* istanbul ignore next */ {},
77
+ transform: numberAttribute
78
+ });
79
+ mode = input("determinate", ...ngDevMode ? [{ debugName: "mode" }] : /* istanbul ignore next */ []);
80
+ severity = input("primary", ...ngDevMode ? [{ debugName: "severity" }] : /* istanbul ignore next */ []);
81
+ size = input("md", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
82
+ showValue = input(true, {
83
+ ...ngDevMode ? { debugName: "showValue" } : /* istanbul ignore next */ {},
84
+ transform: booleanAttribute
85
+ });
86
+ striped = input(false, {
87
+ ...ngDevMode ? { debugName: "striped" } : /* istanbul ignore next */ {},
88
+ transform: booleanAttribute
89
+ });
90
+ animated = input(false, {
91
+ ...ngDevMode ? { debugName: "animated" } : /* istanbul ignore next */ {},
92
+ transform: booleanAttribute
93
+ });
94
+ rounded = input(true, {
95
+ ...ngDevMode ? { debugName: "rounded" } : /* istanbul ignore next */ {},
96
+ transform: booleanAttribute
97
+ });
98
+ ariaLabel = input("", ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
99
+ ariaLabelledBy = input("", ...ngDevMode ? [{ debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []);
100
+ ariaValueText = input("", ...ngDevMode ? [{ debugName: "ariaValueText" }] : /* istanbul ignore next */ []);
101
+ steps = input([], ...ngDevMode ? [{ debugName: "steps" }] : /* istanbul ignore next */ []);
102
+ activeStep = input(null, ...ngDevMode ? [{ debugName: "activeStep" }] : /* istanbul ignore next */ []);
103
+ valueFormatter = input(null, ...ngDevMode ? [{ debugName: "valueFormatter" }] : /* istanbul ignore next */ []);
104
+ normalizedMin = computed(() => {
105
+ const min = this.min();
106
+ return Number.isFinite(min) ? min : 0;
107
+ }, ...ngDevMode ? [{ debugName: "normalizedMin" }] : /* istanbul ignore next */ []);
108
+ normalizedMax = computed(() => {
109
+ const min = this.normalizedMin();
110
+ const max = this.max();
111
+ return Number.isFinite(max) && max > min ? max : min + 100;
112
+ }, ...ngDevMode ? [{ debugName: "normalizedMax" }] : /* istanbul ignore next */ []);
113
+ clampedValue = computed(() => {
114
+ const value = this.value();
115
+ return this.clamp(Number.isFinite(value) ? value : this.normalizedMin(), this.normalizedMin(), this.normalizedMax());
116
+ }, ...ngDevMode ? [{ debugName: "clampedValue" }] : /* istanbul ignore next */ []);
117
+ percent = computed(() => {
118
+ const min = this.normalizedMin();
119
+ const range = this.normalizedMax() - min;
120
+ if (range <= 0) return 0;
121
+ return Math.round((this.clampedValue() - min) / range * 1e3) / 10;
122
+ }, ...ngDevMode ? [{ debugName: "percent" }] : /* istanbul ignore next */ []);
123
+ percentStyle = computed(() => `${this.percent()}%`, ...ngDevMode ? [{ debugName: "percentStyle" }] : /* istanbul ignore next */ []);
124
+ valueContext = computed(() => ({
125
+ $implicit: this.clampedValue(),
126
+ value: this.clampedValue(),
127
+ min: this.normalizedMin(),
128
+ max: this.normalizedMax(),
129
+ percent: this.percent()
130
+ }), ...ngDevMode ? [{ debugName: "valueContext" }] : /* istanbul ignore next */ []);
131
+ valueText = computed(() => {
132
+ const formatter = this.valueFormatter();
133
+ if (formatter) return formatter(this.valueContext());
134
+ return `${Math.round(this.percent())}%`;
135
+ }, ...ngDevMode ? [{ debugName: "valueText" }] : /* istanbul ignore next */ []);
136
+ resolvedAriaValueText = computed(() => {
137
+ if (this.mode() !== "determinate") return this.ariaValueText() || null;
138
+ return this.ariaValueText() || this.valueText();
139
+ }, ...ngDevMode ? [{ debugName: "resolvedAriaValueText" }] : /* istanbul ignore next */ []);
140
+ stepViews = computed(() => {
141
+ const steps = this.steps();
142
+ if (steps.length === 0) return [];
143
+ const activeStep = this.activeStep();
144
+ const denominator = Math.max(1, steps.length - 1);
145
+ return steps.map((step, index) => {
146
+ const fallbackPercent = steps.length === 1 ? 100 : index / denominator * 100;
147
+ const stepPercent = this.stepPercent(step.value, fallbackPercent);
148
+ const active = activeStep === null ? this.percent() >= stepPercent : activeStep === index;
149
+ const complete = activeStep === null ? this.percent() >= stepPercent : index <= activeStep;
150
+ return {
151
+ step,
152
+ index,
153
+ active,
154
+ complete,
155
+ percentValue: stepPercent,
156
+ percent: `${stepPercent}%`,
157
+ context: {
158
+ $implicit: step,
159
+ step,
160
+ index,
161
+ active,
162
+ complete,
163
+ percent: stepPercent
164
+ }
165
+ };
166
+ });
167
+ }, ...ngDevMode ? [{ debugName: "stepViews" }] : /* istanbul ignore next */ []);
168
+ stepPercent(value, fallback) {
169
+ if (value === void 0 || !Number.isFinite(value)) return this.clamp(fallback, 0, 100);
170
+ const min = this.normalizedMin();
171
+ const max = this.normalizedMax();
172
+ return this.clamp((value - min) / (max - min) * 100, 0, 100);
173
+ }
174
+ clamp(value, min, max) {
175
+ return Math.min(Math.max(value, min), max);
176
+ }
177
+ static ɵfac = i0.ɵɵngDeclareFactory({
178
+ minVersion: "12.0.0",
179
+ version: "22.2.2",
180
+ ngImport: i0,
181
+ type: AerisProgressBar,
182
+ deps: [],
183
+ target: i0.ɵɵFactoryTarget.Component
184
+ });
185
+ static ɵcmp = i0.ɵɵngDeclareComponent({
186
+ minVersion: "17.0.0",
187
+ version: "22.2.2",
188
+ type: AerisProgressBar,
189
+ isStandalone: true,
190
+ selector: "aeris-progress-bar",
191
+ inputs: {
192
+ id: {
193
+ classPropertyName: "id",
194
+ publicName: "id",
195
+ isSignal: true,
196
+ isRequired: false,
197
+ transformFunction: null
198
+ },
199
+ value: {
200
+ classPropertyName: "value",
201
+ publicName: "value",
202
+ isSignal: true,
203
+ isRequired: false,
204
+ transformFunction: null
205
+ },
206
+ min: {
207
+ classPropertyName: "min",
208
+ publicName: "min",
209
+ isSignal: true,
210
+ isRequired: false,
211
+ transformFunction: null
212
+ },
213
+ max: {
214
+ classPropertyName: "max",
215
+ publicName: "max",
216
+ isSignal: true,
217
+ isRequired: false,
218
+ transformFunction: null
219
+ },
220
+ mode: {
221
+ classPropertyName: "mode",
222
+ publicName: "mode",
223
+ isSignal: true,
224
+ isRequired: false,
225
+ transformFunction: null
226
+ },
227
+ severity: {
228
+ classPropertyName: "severity",
229
+ publicName: "severity",
230
+ isSignal: true,
231
+ isRequired: false,
232
+ transformFunction: null
233
+ },
234
+ size: {
235
+ classPropertyName: "size",
236
+ publicName: "size",
237
+ isSignal: true,
238
+ isRequired: false,
239
+ transformFunction: null
240
+ },
241
+ showValue: {
242
+ classPropertyName: "showValue",
243
+ publicName: "showValue",
244
+ isSignal: true,
245
+ isRequired: false,
246
+ transformFunction: null
247
+ },
248
+ striped: {
249
+ classPropertyName: "striped",
250
+ publicName: "striped",
251
+ isSignal: true,
252
+ isRequired: false,
253
+ transformFunction: null
254
+ },
255
+ animated: {
256
+ classPropertyName: "animated",
257
+ publicName: "animated",
258
+ isSignal: true,
259
+ isRequired: false,
260
+ transformFunction: null
261
+ },
262
+ rounded: {
263
+ classPropertyName: "rounded",
264
+ publicName: "rounded",
265
+ isSignal: true,
266
+ isRequired: false,
267
+ transformFunction: null
268
+ },
269
+ ariaLabel: {
270
+ classPropertyName: "ariaLabel",
271
+ publicName: "ariaLabel",
272
+ isSignal: true,
273
+ isRequired: false,
274
+ transformFunction: null
275
+ },
276
+ ariaLabelledBy: {
277
+ classPropertyName: "ariaLabelledBy",
278
+ publicName: "ariaLabelledBy",
279
+ isSignal: true,
280
+ isRequired: false,
281
+ transformFunction: null
282
+ },
283
+ ariaValueText: {
284
+ classPropertyName: "ariaValueText",
285
+ publicName: "ariaValueText",
286
+ isSignal: true,
287
+ isRequired: false,
288
+ transformFunction: null
289
+ },
290
+ steps: {
291
+ classPropertyName: "steps",
292
+ publicName: "steps",
293
+ isSignal: true,
294
+ isRequired: false,
295
+ transformFunction: null
296
+ },
297
+ activeStep: {
298
+ classPropertyName: "activeStep",
299
+ publicName: "activeStep",
300
+ isSignal: true,
301
+ isRequired: false,
302
+ transformFunction: null
303
+ },
304
+ valueFormatter: {
305
+ classPropertyName: "valueFormatter",
306
+ publicName: "valueFormatter",
307
+ isSignal: true,
308
+ isRequired: false,
309
+ transformFunction: null
310
+ }
311
+ },
312
+ host: {
313
+ attributes: { "role": "progressbar" },
314
+ properties: {
315
+ "attr.id": "id()",
316
+ "attr.aria-valuemin": "mode() === \"determinate\" ? min() : null",
317
+ "attr.aria-valuemax": "mode() === \"determinate\" ? max() : null",
318
+ "attr.aria-valuenow": "mode() === \"determinate\" ? clampedValue() : null",
319
+ "attr.aria-valuetext": "resolvedAriaValueText()",
320
+ "attr.aria-label": "ariaLabel() || null",
321
+ "attr.aria-labelledby": "ariaLabelledBy() || null",
322
+ "attr.data-mode": "mode()",
323
+ "attr.data-severity": "severity()",
324
+ "attr.data-size": "size()",
325
+ "attr.data-striped": "striped() || null",
326
+ "attr.data-animated": "animated() || null",
327
+ "attr.data-rounded": "rounded() || null",
328
+ "style.--aeris-progress-bar-value": "percentStyle()"
329
+ },
330
+ classAttribute: "aeris-progress-bar"
331
+ },
332
+ queries: [{
333
+ propertyName: "valueTemplate",
334
+ first: true,
335
+ predicate: AerisProgressBarValueTemplate,
336
+ descendants: true,
337
+ isSignal: true
338
+ }, {
339
+ propertyName: "stepTemplate",
340
+ first: true,
341
+ predicate: AerisProgressBarStepTemplate,
342
+ descendants: true,
343
+ isSignal: true
344
+ }],
345
+ ngImport: i0,
346
+ template: `
145
347
  <div class="aeris-progress-bar__track">
146
348
  <span class="aeris-progress-bar__fill" [style.inline-size.%]="mode() === 'determinate' ? percent() : null"></span>
147
349
  @if (showValue() && mode() === 'determinate') {
@@ -165,6 +367,8 @@ class AerisProgressBar {
165
367
  class="aeris-progress-bar__step"
166
368
  [attr.data-active]="item.active || null"
167
369
  [attr.data-complete]="item.complete || null"
370
+ [attr.data-edge-start]="item.percentValue === 0 || null"
371
+ [attr.data-edge-end]="item.percentValue === 100 || null"
168
372
  [style.--aeris-progress-bar-step-position]="item.percent"
169
373
  >
170
374
  <span class="aeris-progress-bar__step-marker"></span>
@@ -182,11 +386,32 @@ class AerisProgressBar {
182
386
  }
183
387
  </ol>
184
388
  }
185
- `, isInline: true, styles: [":host{--_accent: var(--aeris-primary, #879566);--_on-accent: var(--aeris-on-primary, #17200f);--_height: var(--aeris-progress-bar-height, .875rem);display:grid;gap:var(--aeris-progress-bar-gap, .75rem);min-inline-size:0;color:var(--aeris-progress-bar-text, var(--aeris-text, #222222))}:host([data-size=sm]){--_height: var(--aeris-progress-bar-sm-height, .5rem)}:host([data-size=lg]){--_height: var(--aeris-progress-bar-lg-height, 1.25rem)}:host([data-severity=secondary]){--_accent: var(--aeris-surface-3, var(--aeris-border-strong, #c7c9c0));--_on-accent: var(--aeris-text, #222222)}:host([data-severity=success]){--_accent: var(--aeris-success, #6f8a68);--_on-accent: #fff}:host([data-severity=info]){--_accent: var(--aeris-info, #6b8793);--_on-accent: #fff}:host([data-severity=warning]){--_accent: var(--aeris-warning, #c38600);--_on-accent: var(--aeris-on-warning, #211600)}:host([data-severity=danger]){--_accent: var(--aeris-danger, #c81e2a);--_on-accent: #fff}:host([data-severity=neutral]){--_accent: var(--aeris-text-3, #6f7667);--_on-accent: #fff}:host([data-severity=contrast]){--_accent: var(--aeris-text, #222222);--_on-accent: var(--aeris-surface, #fff)}.aeris-progress-bar__track{position:relative;min-inline-size:0;block-size:var(--_height);overflow:hidden;border-radius:var(--aeris-progress-bar-radius, 999px);background:var(--aeris-progress-bar-track, color-mix(in srgb, var(--_accent) 14%, var(--aeris-surface-2, #f2f0ec)));box-shadow:inset 0 0 0 1px var(--aeris-progress-bar-track-border, color-mix(in srgb, var(--_accent) 12%, transparent))}:host([data-rounded=false]) .aeris-progress-bar__track{border-radius:var(--aeris-radius-sm, .4375rem)}.aeris-progress-bar__fill{position:absolute;inset-block:0;inset-inline-start:0;inline-size:0%;min-inline-size:0;border-radius:inherit;background:var(--aeris-progress-bar-fill, var(--_accent));transition:inline-size .18s ease}:host([data-striped=true]) .aeris-progress-bar__fill{background:linear-gradient(45deg,color-mix(in srgb,#fff 22%,transparent) 25%,transparent 25%,transparent 50%,color-mix(in srgb,#fff 22%,transparent) 50%,color-mix(in srgb,#fff 22%,transparent) 75%,transparent 75%,transparent),var(--aeris-progress-bar-fill, var(--_accent));background-size:1.2rem 1.2rem}:host([data-striped=true][data-animated=true]) .aeris-progress-bar__fill{animation:aeris-progress-bar-stripes .9s linear infinite}:host([data-mode=indeterminate]) .aeris-progress-bar__fill{inline-size:42%;min-inline-size:42%;animation:aeris-progress-bar-indeterminate 1.25s ease-in-out infinite}.aeris-progress-bar__value{position:absolute;inset:0;z-index:1;display:inline-grid;place-items:center;padding-inline:.5rem;color:var(--aeris-progress-bar-value-text, var(--_on-accent));font-size:var(--aeris-progress-bar-value-font-size, .75rem);font-weight:800;line-height:1;text-shadow:0 1px 1px rgba(0,0,0,.14)}:host([data-size=sm]) .aeris-progress-bar__value{display:none}.aeris-progress-bar__steps{position:relative;display:block;min-block-size:2rem;margin:0;padding:0;list-style:none}.aeris-progress-bar__step{position:absolute;inset-block-start:0;inset-inline-start:var(--aeris-progress-bar-step-position);display:grid;justify-items:center;gap:.35rem;max-inline-size:8rem;color:var(--aeris-progress-bar-step-text, var(--aeris-text-3, #6f7667));font-size:.75rem;font-weight:700;text-align:center;transform:translate(-50%)}.aeris-progress-bar__step-marker{inline-size:var(--aeris-progress-bar-step-marker-size, .75rem);block-size:var(--aeris-progress-bar-step-marker-size, .75rem);border:2px solid var(--aeris-progress-bar-step-border, var(--aeris-border-strong, #c7c9c0));border-radius:999px;background:var(--aeris-progress-bar-step-background, var(--aeris-surface, #fff));box-shadow:0 0 0 2px var(--aeris-progress-bar-step-ring, var(--aeris-surface, #fff))}.aeris-progress-bar__step[data-complete=true]{color:var(--aeris-progress-bar-step-complete-text, var(--aeris-text, #222222))}.aeris-progress-bar__step[data-complete=true] .aeris-progress-bar__step-marker{border-color:var(--_accent);background:var(--_accent)}.aeris-progress-bar__step[data-active=true] .aeris-progress-bar__step-marker{box-shadow:0 0 0 2px var(--aeris-progress-bar-step-ring, var(--aeris-surface, #fff)),0 0 0 5px color-mix(in srgb,var(--_accent) 22%,transparent)}@keyframes aeris-progress-bar-indeterminate{0%{transform:translate(-115%)}55%{transform:translate(80%)}to{transform:translate(245%)}}@keyframes aeris-progress-bar-stripes{0%{background-position:0 0}to{background-position:1.2rem 0}}@media(max-width:36rem){.aeris-progress-bar__steps{min-block-size:3rem}.aeris-progress-bar__step-label{max-inline-size:4.5rem}}@media(prefers-reduced-motion:reduce){.aeris-progress-bar__fill{transition:none;animation:none!important}}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
186
- }
187
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisProgressBar, decorators: [{
188
- type: Component,
189
- args: [{ selector: 'aeris-progress-bar', imports: [NgTemplateOutlet], template: `
389
+ `,
390
+ isInline: true,
391
+ styles: [":host{--_accent: var(--aeris-primary, #111111);--_on-accent: var(--aeris-on-primary, #ffffff);--_height: var(--aeris-progress-bar-height, .875rem);display:grid;gap:var(--aeris-progress-bar-gap, .75rem);min-inline-size:0;color:var(--aeris-progress-bar-text, var(--aeris-text, #111111))}:host([data-size=sm]){--_height: var(--aeris-progress-bar-sm-height, .5rem)}:host([data-size=lg]){--_height: var(--aeris-progress-bar-lg-height, 1.25rem)}:host([data-severity=secondary]){--_accent: var(--aeris-surface-3, var(--aeris-border, #efefef));--_on-accent: var(--aeris-text, #111111)}:host([data-severity=success]){--_accent: var(--aeris-success, #6f8a68);--_on-accent: #fff}:host([data-severity=info]){--_accent: var(--aeris-info, #6b8793);--_on-accent: #fff}:host([data-severity=warning]){--_accent: var(--aeris-warning, #c38600);--_on-accent: var(--aeris-on-warning, #211600)}:host([data-severity=danger]){--_accent: var(--aeris-danger, #c81e2a);--_on-accent: #fff}:host([data-severity=neutral]){--_accent: var(--aeris-text-3, #6f7667);--_on-accent: #fff}:host([data-severity=contrast]){--_accent: var(--aeris-text, #111111);--_on-accent: var(--aeris-surface, #fff)}.aeris-progress-bar__track{position:relative;min-inline-size:0;block-size:var(--_height);overflow:hidden;border-radius:var(--aeris-progress-bar-radius, 999px);background:var(--aeris-progress-bar-track, color-mix(in srgb, var(--_accent) 14%, var(--aeris-surface-2, #f3f3f3)));box-shadow:inset 0 0 0 1px var(--aeris-progress-bar-track-border, color-mix(in srgb, var(--_accent) 12%, transparent))}:host([data-rounded=false]) .aeris-progress-bar__track{border-radius:var(--aeris-radius-sm, .4375rem)}.aeris-progress-bar__fill{position:absolute;inset-block:0;inset-inline-start:0;inline-size:0%;min-inline-size:0;border-radius:inherit;background:var(--aeris-progress-bar-fill, var(--_accent));transition:inline-size var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease)}:host([data-striped=true]) .aeris-progress-bar__fill{background:linear-gradient(45deg,color-mix(in srgb,#fff 22%,transparent) 25%,transparent 25%,transparent 50%,color-mix(in srgb,#fff 22%,transparent) 50%,color-mix(in srgb,#fff 22%,transparent) 75%,transparent 75%,transparent),var(--aeris-progress-bar-fill, var(--_accent));background-size:1.2rem 1.2rem}:host([data-striped=true][data-animated=true]) .aeris-progress-bar__fill{animation:aeris-progress-bar-stripes .9s linear infinite}:host([data-mode=indeterminate]) .aeris-progress-bar__fill{inline-size:42%;min-inline-size:42%;animation:aeris-progress-bar-indeterminate 1.25s ease-in-out infinite}.aeris-progress-bar__value{position:absolute;inset:0;z-index:1;display:inline-grid;place-items:center;padding-inline:.5rem;color:var(--aeris-progress-bar-value-text, var(--_on-accent));font-size:var(--aeris-progress-bar-value-font-size, .75rem);font-weight:var(--aeris-font-weight-bold, 700);line-height:1;text-shadow:0 1px 1px rgba(0,0,0,.14)}:host([data-size=sm]) .aeris-progress-bar__value{display:none}.aeris-progress-bar__steps{position:relative;display:block;min-block-size:2rem;margin:0;padding:0;list-style:none}.aeris-progress-bar__step{position:absolute;inset-block-start:0;inset-inline-start:var(--aeris-progress-bar-step-position);display:grid;justify-items:center;gap:.35rem;inline-size:max-content;max-inline-size:min(8rem,40vw);color:var(--aeris-progress-bar-step-text, var(--aeris-text-3, #6f7667));font-size:var(--aeris-font-size-sm, .75rem);font-weight:var(--aeris-font-weight-bold, 700);text-align:center;transform:translate(-50%)}.aeris-progress-bar__step[data-edge-start=true]{justify-items:start;text-align:start;transform:none}.aeris-progress-bar__step[data-edge-end=true]{justify-items:end;text-align:end;transform:translate(-100%)}.aeris-progress-bar__step-label{max-inline-size:inherit;overflow-wrap:normal;word-break:normal}:host-context([dir=rtl]) .aeris-progress-bar__step{transform:translate(50%)}:host-context([dir=rtl]) .aeris-progress-bar__step[data-edge-start=true]{transform:none}:host-context([dir=rtl]) .aeris-progress-bar__step[data-edge-end=true]{transform:translate(100%)}.aeris-progress-bar__step-marker{inline-size:var(--aeris-progress-bar-step-marker-size, .75rem);block-size:var(--aeris-progress-bar-step-marker-size, .75rem);border:2px solid var(--aeris-progress-bar-step-border, var(--aeris-border, #efefef));border-radius:var(--aeris-radius-pill, 999px);background:var(--aeris-progress-bar-step-background, var(--aeris-surface, #fff));box-shadow:0 0 0 2px var(--aeris-progress-bar-step-ring, var(--aeris-surface, #fff))}.aeris-progress-bar__step[data-complete=true]{color:var(--aeris-progress-bar-step-complete-text, var(--aeris-text, #111111))}.aeris-progress-bar__step[data-complete=true] .aeris-progress-bar__step-marker{border-color:var(--_accent);background:var(--_accent)}.aeris-progress-bar__step[data-active=true] .aeris-progress-bar__step-marker{box-shadow:0 0 0 2px var(--aeris-progress-bar-step-ring, var(--aeris-surface, #fff)),0 0 0 5px color-mix(in srgb,var(--_accent) 22%,transparent)}@keyframes aeris-progress-bar-indeterminate{0%{transform:translate(-115%)}55%{transform:translate(80%)}to{transform:translate(245%)}}@keyframes aeris-progress-bar-stripes{0%{background-position:0 0}to{background-position:1.2rem 0}}@media(max-width:36rem){.aeris-progress-bar__steps{min-block-size:3rem}.aeris-progress-bar__step-label{max-inline-size:4.5rem}}@media(prefers-reduced-motion:reduce){.aeris-progress-bar__fill{transition:none;animation:none!important}}\n"],
392
+ dependencies: [{
393
+ kind: "directive",
394
+ type: NgTemplateOutlet,
395
+ selector: "[ngTemplateOutlet]",
396
+ inputs: [
397
+ "ngTemplateOutletContext",
398
+ "ngTemplateOutlet",
399
+ "ngTemplateOutletInjector"
400
+ ]
401
+ }]
402
+ });
403
+ };
404
+ i0.ɵɵngDeclareClassMetadata({
405
+ minVersion: "12.0.0",
406
+ version: "22.2.2",
407
+ ngImport: i0,
408
+ type: AerisProgressBar,
409
+ decorators: [{
410
+ type: Component,
411
+ args: [{
412
+ selector: "aeris-progress-bar",
413
+ imports: [NgTemplateOutlet],
414
+ template: `
190
415
  <div class="aeris-progress-bar__track">
191
416
  <span class="aeris-progress-bar__fill" [style.inline-size.%]="mode() === 'determinate' ? percent() : null"></span>
192
417
  @if (showValue() && mode() === 'determinate') {
@@ -210,6 +435,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
210
435
  class="aeris-progress-bar__step"
211
436
  [attr.data-active]="item.active || null"
212
437
  [attr.data-complete]="item.complete || null"
438
+ [attr.data-edge-start]="item.percentValue === 0 || null"
439
+ [attr.data-edge-end]="item.percentValue === 100 || null"
213
440
  [style.--aeris-progress-bar-step-position]="item.percent"
214
441
  >
215
442
  <span class="aeris-progress-bar__step-marker"></span>
@@ -227,34 +454,180 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
227
454
  }
228
455
  </ol>
229
456
  }
230
- `, host: {
231
- class: 'aeris-progress-bar',
232
- '[attr.id]': 'id()',
233
- role: 'progressbar',
234
- '[attr.aria-valuemin]': 'mode() === "determinate" ? min() : null',
235
- '[attr.aria-valuemax]': 'mode() === "determinate" ? max() : null',
236
- '[attr.aria-valuenow]': 'mode() === "determinate" ? clampedValue() : null',
237
- '[attr.aria-valuetext]': 'resolvedAriaValueText()',
238
- '[attr.aria-label]': 'ariaLabel() || null',
239
- '[attr.aria-labelledby]': 'ariaLabelledBy() || null',
240
- '[attr.data-mode]': 'mode()',
241
- '[attr.data-severity]': 'severity()',
242
- '[attr.data-size]': 'size()',
243
- '[attr.data-striped]': 'striped() || null',
244
- '[attr.data-animated]': 'animated() || null',
245
- '[attr.data-rounded]': 'rounded() || null',
246
- '[style.--aeris-progress-bar-value]': 'percentStyle()',
247
- }, styles: [":host{--_accent: var(--aeris-primary, #879566);--_on-accent: var(--aeris-on-primary, #17200f);--_height: var(--aeris-progress-bar-height, .875rem);display:grid;gap:var(--aeris-progress-bar-gap, .75rem);min-inline-size:0;color:var(--aeris-progress-bar-text, var(--aeris-text, #222222))}:host([data-size=sm]){--_height: var(--aeris-progress-bar-sm-height, .5rem)}:host([data-size=lg]){--_height: var(--aeris-progress-bar-lg-height, 1.25rem)}:host([data-severity=secondary]){--_accent: var(--aeris-surface-3, var(--aeris-border-strong, #c7c9c0));--_on-accent: var(--aeris-text, #222222)}:host([data-severity=success]){--_accent: var(--aeris-success, #6f8a68);--_on-accent: #fff}:host([data-severity=info]){--_accent: var(--aeris-info, #6b8793);--_on-accent: #fff}:host([data-severity=warning]){--_accent: var(--aeris-warning, #c38600);--_on-accent: var(--aeris-on-warning, #211600)}:host([data-severity=danger]){--_accent: var(--aeris-danger, #c81e2a);--_on-accent: #fff}:host([data-severity=neutral]){--_accent: var(--aeris-text-3, #6f7667);--_on-accent: #fff}:host([data-severity=contrast]){--_accent: var(--aeris-text, #222222);--_on-accent: var(--aeris-surface, #fff)}.aeris-progress-bar__track{position:relative;min-inline-size:0;block-size:var(--_height);overflow:hidden;border-radius:var(--aeris-progress-bar-radius, 999px);background:var(--aeris-progress-bar-track, color-mix(in srgb, var(--_accent) 14%, var(--aeris-surface-2, #f2f0ec)));box-shadow:inset 0 0 0 1px var(--aeris-progress-bar-track-border, color-mix(in srgb, var(--_accent) 12%, transparent))}:host([data-rounded=false]) .aeris-progress-bar__track{border-radius:var(--aeris-radius-sm, .4375rem)}.aeris-progress-bar__fill{position:absolute;inset-block:0;inset-inline-start:0;inline-size:0%;min-inline-size:0;border-radius:inherit;background:var(--aeris-progress-bar-fill, var(--_accent));transition:inline-size .18s ease}:host([data-striped=true]) .aeris-progress-bar__fill{background:linear-gradient(45deg,color-mix(in srgb,#fff 22%,transparent) 25%,transparent 25%,transparent 50%,color-mix(in srgb,#fff 22%,transparent) 50%,color-mix(in srgb,#fff 22%,transparent) 75%,transparent 75%,transparent),var(--aeris-progress-bar-fill, var(--_accent));background-size:1.2rem 1.2rem}:host([data-striped=true][data-animated=true]) .aeris-progress-bar__fill{animation:aeris-progress-bar-stripes .9s linear infinite}:host([data-mode=indeterminate]) .aeris-progress-bar__fill{inline-size:42%;min-inline-size:42%;animation:aeris-progress-bar-indeterminate 1.25s ease-in-out infinite}.aeris-progress-bar__value{position:absolute;inset:0;z-index:1;display:inline-grid;place-items:center;padding-inline:.5rem;color:var(--aeris-progress-bar-value-text, var(--_on-accent));font-size:var(--aeris-progress-bar-value-font-size, .75rem);font-weight:800;line-height:1;text-shadow:0 1px 1px rgba(0,0,0,.14)}:host([data-size=sm]) .aeris-progress-bar__value{display:none}.aeris-progress-bar__steps{position:relative;display:block;min-block-size:2rem;margin:0;padding:0;list-style:none}.aeris-progress-bar__step{position:absolute;inset-block-start:0;inset-inline-start:var(--aeris-progress-bar-step-position);display:grid;justify-items:center;gap:.35rem;max-inline-size:8rem;color:var(--aeris-progress-bar-step-text, var(--aeris-text-3, #6f7667));font-size:.75rem;font-weight:700;text-align:center;transform:translate(-50%)}.aeris-progress-bar__step-marker{inline-size:var(--aeris-progress-bar-step-marker-size, .75rem);block-size:var(--aeris-progress-bar-step-marker-size, .75rem);border:2px solid var(--aeris-progress-bar-step-border, var(--aeris-border-strong, #c7c9c0));border-radius:999px;background:var(--aeris-progress-bar-step-background, var(--aeris-surface, #fff));box-shadow:0 0 0 2px var(--aeris-progress-bar-step-ring, var(--aeris-surface, #fff))}.aeris-progress-bar__step[data-complete=true]{color:var(--aeris-progress-bar-step-complete-text, var(--aeris-text, #222222))}.aeris-progress-bar__step[data-complete=true] .aeris-progress-bar__step-marker{border-color:var(--_accent);background:var(--_accent)}.aeris-progress-bar__step[data-active=true] .aeris-progress-bar__step-marker{box-shadow:0 0 0 2px var(--aeris-progress-bar-step-ring, var(--aeris-surface, #fff)),0 0 0 5px color-mix(in srgb,var(--_accent) 22%,transparent)}@keyframes aeris-progress-bar-indeterminate{0%{transform:translate(-115%)}55%{transform:translate(80%)}to{transform:translate(245%)}}@keyframes aeris-progress-bar-stripes{0%{background-position:0 0}to{background-position:1.2rem 0}}@media(max-width:36rem){.aeris-progress-bar__steps{min-block-size:3rem}.aeris-progress-bar__step-label{max-inline-size:4.5rem}}@media(prefers-reduced-motion:reduce){.aeris-progress-bar__fill{transition:none;animation:none!important}}\n"] }]
248
- }], propDecorators: { valueTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => AerisProgressBarValueTemplate), { isSignal: true }] }], stepTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => AerisProgressBarStepTemplate), { isSignal: true }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], min: [{ type: i0.Input, args: [{ isSignal: true, alias: "min", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], mode: [{ type: i0.Input, args: [{ isSignal: true, alias: "mode", required: false }] }], severity: [{ type: i0.Input, args: [{ isSignal: true, alias: "severity", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], showValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "showValue", required: false }] }], striped: [{ type: i0.Input, args: [{ isSignal: true, alias: "striped", required: false }] }], animated: [{ type: i0.Input, args: [{ isSignal: true, alias: "animated", required: false }] }], rounded: [{ type: i0.Input, args: [{ isSignal: true, alias: "rounded", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], ariaLabelledBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelledBy", required: false }] }], ariaValueText: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaValueText", required: false }] }], steps: [{ type: i0.Input, args: [{ isSignal: true, alias: "steps", required: false }] }], activeStep: [{ type: i0.Input, args: [{ isSignal: true, alias: "activeStep", required: false }] }], valueFormatter: [{ type: i0.Input, args: [{ isSignal: true, alias: "valueFormatter", required: false }] }] } });
457
+ `,
458
+ host: {
459
+ class: "aeris-progress-bar",
460
+ "[attr.id]": "id()",
461
+ role: "progressbar",
462
+ "[attr.aria-valuemin]": "mode() === \"determinate\" ? min() : null",
463
+ "[attr.aria-valuemax]": "mode() === \"determinate\" ? max() : null",
464
+ "[attr.aria-valuenow]": "mode() === \"determinate\" ? clampedValue() : null",
465
+ "[attr.aria-valuetext]": "resolvedAriaValueText()",
466
+ "[attr.aria-label]": "ariaLabel() || null",
467
+ "[attr.aria-labelledby]": "ariaLabelledBy() || null",
468
+ "[attr.data-mode]": "mode()",
469
+ "[attr.data-severity]": "severity()",
470
+ "[attr.data-size]": "size()",
471
+ "[attr.data-striped]": "striped() || null",
472
+ "[attr.data-animated]": "animated() || null",
473
+ "[attr.data-rounded]": "rounded() || null",
474
+ "[style.--aeris-progress-bar-value]": "percentStyle()"
475
+ },
476
+ styles: [":host{--_accent: var(--aeris-primary, #111111);--_on-accent: var(--aeris-on-primary, #ffffff);--_height: var(--aeris-progress-bar-height, .875rem);display:grid;gap:var(--aeris-progress-bar-gap, .75rem);min-inline-size:0;color:var(--aeris-progress-bar-text, var(--aeris-text, #111111))}:host([data-size=sm]){--_height: var(--aeris-progress-bar-sm-height, .5rem)}:host([data-size=lg]){--_height: var(--aeris-progress-bar-lg-height, 1.25rem)}:host([data-severity=secondary]){--_accent: var(--aeris-surface-3, var(--aeris-border, #efefef));--_on-accent: var(--aeris-text, #111111)}:host([data-severity=success]){--_accent: var(--aeris-success, #6f8a68);--_on-accent: #fff}:host([data-severity=info]){--_accent: var(--aeris-info, #6b8793);--_on-accent: #fff}:host([data-severity=warning]){--_accent: var(--aeris-warning, #c38600);--_on-accent: var(--aeris-on-warning, #211600)}:host([data-severity=danger]){--_accent: var(--aeris-danger, #c81e2a);--_on-accent: #fff}:host([data-severity=neutral]){--_accent: var(--aeris-text-3, #6f7667);--_on-accent: #fff}:host([data-severity=contrast]){--_accent: var(--aeris-text, #111111);--_on-accent: var(--aeris-surface, #fff)}.aeris-progress-bar__track{position:relative;min-inline-size:0;block-size:var(--_height);overflow:hidden;border-radius:var(--aeris-progress-bar-radius, 999px);background:var(--aeris-progress-bar-track, color-mix(in srgb, var(--_accent) 14%, var(--aeris-surface-2, #f3f3f3)));box-shadow:inset 0 0 0 1px var(--aeris-progress-bar-track-border, color-mix(in srgb, var(--_accent) 12%, transparent))}:host([data-rounded=false]) .aeris-progress-bar__track{border-radius:var(--aeris-radius-sm, .4375rem)}.aeris-progress-bar__fill{position:absolute;inset-block:0;inset-inline-start:0;inline-size:0%;min-inline-size:0;border-radius:inherit;background:var(--aeris-progress-bar-fill, var(--_accent));transition:inline-size var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease)}:host([data-striped=true]) .aeris-progress-bar__fill{background:linear-gradient(45deg,color-mix(in srgb,#fff 22%,transparent) 25%,transparent 25%,transparent 50%,color-mix(in srgb,#fff 22%,transparent) 50%,color-mix(in srgb,#fff 22%,transparent) 75%,transparent 75%,transparent),var(--aeris-progress-bar-fill, var(--_accent));background-size:1.2rem 1.2rem}:host([data-striped=true][data-animated=true]) .aeris-progress-bar__fill{animation:aeris-progress-bar-stripes .9s linear infinite}:host([data-mode=indeterminate]) .aeris-progress-bar__fill{inline-size:42%;min-inline-size:42%;animation:aeris-progress-bar-indeterminate 1.25s ease-in-out infinite}.aeris-progress-bar__value{position:absolute;inset:0;z-index:1;display:inline-grid;place-items:center;padding-inline:.5rem;color:var(--aeris-progress-bar-value-text, var(--_on-accent));font-size:var(--aeris-progress-bar-value-font-size, .75rem);font-weight:var(--aeris-font-weight-bold, 700);line-height:1;text-shadow:0 1px 1px rgba(0,0,0,.14)}:host([data-size=sm]) .aeris-progress-bar__value{display:none}.aeris-progress-bar__steps{position:relative;display:block;min-block-size:2rem;margin:0;padding:0;list-style:none}.aeris-progress-bar__step{position:absolute;inset-block-start:0;inset-inline-start:var(--aeris-progress-bar-step-position);display:grid;justify-items:center;gap:.35rem;inline-size:max-content;max-inline-size:min(8rem,40vw);color:var(--aeris-progress-bar-step-text, var(--aeris-text-3, #6f7667));font-size:var(--aeris-font-size-sm, .75rem);font-weight:var(--aeris-font-weight-bold, 700);text-align:center;transform:translate(-50%)}.aeris-progress-bar__step[data-edge-start=true]{justify-items:start;text-align:start;transform:none}.aeris-progress-bar__step[data-edge-end=true]{justify-items:end;text-align:end;transform:translate(-100%)}.aeris-progress-bar__step-label{max-inline-size:inherit;overflow-wrap:normal;word-break:normal}:host-context([dir=rtl]) .aeris-progress-bar__step{transform:translate(50%)}:host-context([dir=rtl]) .aeris-progress-bar__step[data-edge-start=true]{transform:none}:host-context([dir=rtl]) .aeris-progress-bar__step[data-edge-end=true]{transform:translate(100%)}.aeris-progress-bar__step-marker{inline-size:var(--aeris-progress-bar-step-marker-size, .75rem);block-size:var(--aeris-progress-bar-step-marker-size, .75rem);border:2px solid var(--aeris-progress-bar-step-border, var(--aeris-border, #efefef));border-radius:var(--aeris-radius-pill, 999px);background:var(--aeris-progress-bar-step-background, var(--aeris-surface, #fff));box-shadow:0 0 0 2px var(--aeris-progress-bar-step-ring, var(--aeris-surface, #fff))}.aeris-progress-bar__step[data-complete=true]{color:var(--aeris-progress-bar-step-complete-text, var(--aeris-text, #111111))}.aeris-progress-bar__step[data-complete=true] .aeris-progress-bar__step-marker{border-color:var(--_accent);background:var(--_accent)}.aeris-progress-bar__step[data-active=true] .aeris-progress-bar__step-marker{box-shadow:0 0 0 2px var(--aeris-progress-bar-step-ring, var(--aeris-surface, #fff)),0 0 0 5px color-mix(in srgb,var(--_accent) 22%,transparent)}@keyframes aeris-progress-bar-indeterminate{0%{transform:translate(-115%)}55%{transform:translate(80%)}to{transform:translate(245%)}}@keyframes aeris-progress-bar-stripes{0%{background-position:0 0}to{background-position:1.2rem 0}}@media(max-width:36rem){.aeris-progress-bar__steps{min-block-size:3rem}.aeris-progress-bar__step-label{max-inline-size:4.5rem}}@media(prefers-reduced-motion:reduce){.aeris-progress-bar__fill{transition:none;animation:none!important}}\n"]
477
+ }]
478
+ }],
479
+ propDecorators: {
480
+ valueTemplate: [{
481
+ type: i0.ContentChild,
482
+ args: [i0.forwardRef(() => AerisProgressBarValueTemplate), { isSignal: true }]
483
+ }],
484
+ stepTemplate: [{
485
+ type: i0.ContentChild,
486
+ args: [i0.forwardRef(() => AerisProgressBarStepTemplate), { isSignal: true }]
487
+ }],
488
+ id: [{
489
+ type: i0.Input,
490
+ args: [{
491
+ isSignal: true,
492
+ alias: "id",
493
+ required: false
494
+ }]
495
+ }],
496
+ value: [{
497
+ type: i0.Input,
498
+ args: [{
499
+ isSignal: true,
500
+ alias: "value",
501
+ required: false
502
+ }]
503
+ }],
504
+ min: [{
505
+ type: i0.Input,
506
+ args: [{
507
+ isSignal: true,
508
+ alias: "min",
509
+ required: false
510
+ }]
511
+ }],
512
+ max: [{
513
+ type: i0.Input,
514
+ args: [{
515
+ isSignal: true,
516
+ alias: "max",
517
+ required: false
518
+ }]
519
+ }],
520
+ mode: [{
521
+ type: i0.Input,
522
+ args: [{
523
+ isSignal: true,
524
+ alias: "mode",
525
+ required: false
526
+ }]
527
+ }],
528
+ severity: [{
529
+ type: i0.Input,
530
+ args: [{
531
+ isSignal: true,
532
+ alias: "severity",
533
+ required: false
534
+ }]
535
+ }],
536
+ size: [{
537
+ type: i0.Input,
538
+ args: [{
539
+ isSignal: true,
540
+ alias: "size",
541
+ required: false
542
+ }]
543
+ }],
544
+ showValue: [{
545
+ type: i0.Input,
546
+ args: [{
547
+ isSignal: true,
548
+ alias: "showValue",
549
+ required: false
550
+ }]
551
+ }],
552
+ striped: [{
553
+ type: i0.Input,
554
+ args: [{
555
+ isSignal: true,
556
+ alias: "striped",
557
+ required: false
558
+ }]
559
+ }],
560
+ animated: [{
561
+ type: i0.Input,
562
+ args: [{
563
+ isSignal: true,
564
+ alias: "animated",
565
+ required: false
566
+ }]
567
+ }],
568
+ rounded: [{
569
+ type: i0.Input,
570
+ args: [{
571
+ isSignal: true,
572
+ alias: "rounded",
573
+ required: false
574
+ }]
575
+ }],
576
+ ariaLabel: [{
577
+ type: i0.Input,
578
+ args: [{
579
+ isSignal: true,
580
+ alias: "ariaLabel",
581
+ required: false
582
+ }]
583
+ }],
584
+ ariaLabelledBy: [{
585
+ type: i0.Input,
586
+ args: [{
587
+ isSignal: true,
588
+ alias: "ariaLabelledBy",
589
+ required: false
590
+ }]
591
+ }],
592
+ ariaValueText: [{
593
+ type: i0.Input,
594
+ args: [{
595
+ isSignal: true,
596
+ alias: "ariaValueText",
597
+ required: false
598
+ }]
599
+ }],
600
+ steps: [{
601
+ type: i0.Input,
602
+ args: [{
603
+ isSignal: true,
604
+ alias: "steps",
605
+ required: false
606
+ }]
607
+ }],
608
+ activeStep: [{
609
+ type: i0.Input,
610
+ args: [{
611
+ isSignal: true,
612
+ alias: "activeStep",
613
+ required: false
614
+ }]
615
+ }],
616
+ valueFormatter: [{
617
+ type: i0.Input,
618
+ args: [{
619
+ isSignal: true,
620
+ alias: "valueFormatter",
621
+ required: false
622
+ }]
623
+ }]
624
+ }
625
+ });
249
626
  const AerisProgressBarModule = [
250
- AerisProgressBar,
251
- AerisProgressBarValueTemplate,
252
- AerisProgressBarStepTemplate,
627
+ AerisProgressBar,
628
+ AerisProgressBarValueTemplate,
629
+ AerisProgressBarStepTemplate
253
630
  ];
254
-
255
- /**
256
- * Generated bundle index. Do not edit.
257
- */
258
-
259
631
  export { AerisProgressBar, AerisProgressBarModule, AerisProgressBarStepTemplate, AerisProgressBarValueTemplate };
260
- //# sourceMappingURL=aeris-ui-core-progress-bar.mjs.map
632
+
633
+ //# sourceMappingURL=aeris-ui-core-progress-bar.mjs.map