@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,210 +1,322 @@
1
- import * as i0 from '@angular/core';
2
- import { model, input, numberAttribute, booleanAttribute, output, signal, computed, viewChild, contentChild, forwardRef, Component } from '@angular/core';
3
- import { NgTemplateOutlet } from '@angular/common';
4
- import { NG_VALUE_ACCESSOR } from '@angular/forms';
5
-
1
+ import * as i0 from "@angular/core";
2
+ import { Component, booleanAttribute, computed, contentChild, forwardRef, input, model, numberAttribute, output, signal, viewChild } from "@angular/core";
3
+ import { NgTemplateOutlet } from "@angular/common";
4
+ import { NG_VALUE_ACCESSOR } from "@angular/forms";
6
5
  let ratingId = 0;
7
- class AerisRating {
8
- starPath = 'M12 2.9 14.8 8.6 21.1 9.5 16.5 14 17.6 20.3 12 17.3 6.4 20.3 7.5 14 2.9 9.5 9.2 8.6 12 2.9Z';
9
- value = model(0, /* @ts-ignore */
10
- ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
11
- max = input(5, { ...(ngDevMode ? { debugName: "max" } : /* istanbul ignore next */ {}), transform: numberAttribute });
12
- allowHalf = input(false, { ...(ngDevMode ? { debugName: "allowHalf" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
13
- allowClear = input(true, { ...(ngDevMode ? { debugName: "allowClear" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
14
- disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
15
- required = input(false, { ...(ngDevMode ? { debugName: "required" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
16
- size = input('md', /* @ts-ignore */
17
- ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
18
- showValue = input(false, { ...(ngDevMode ? { debugName: "showValue" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
19
- name = input('', /* @ts-ignore */
20
- ...(ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []));
21
- inputId = input('', /* @ts-ignore */
22
- ...(ngDevMode ? [{ debugName: "inputId" }] : /* istanbul ignore next */ []));
23
- ariaLabel = input('Rating', /* @ts-ignore */
24
- ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
25
- ariaLabelledby = input('', /* @ts-ignore */
26
- ...(ngDevMode ? [{ debugName: "ariaLabelledby" }] : /* istanbul ignore next */ []));
27
- ariaDescribedby = input('', /* @ts-ignore */
28
- ...(ngDevMode ? [{ debugName: "ariaDescribedby" }] : /* istanbul ignore next */ []));
29
- valueText = input(null, /* @ts-ignore */
30
- ...(ngDevMode ? [{ debugName: "valueText" }] : /* istanbul ignore next */ []));
31
- valueInput = output();
32
- changed = output();
33
- focused = output();
34
- blurred = output();
35
- touch = output();
36
- formDisabled = signal(false, /* @ts-ignore */
37
- ...(ngDevMode ? [{ debugName: "formDisabled" }] : /* istanbul ignore next */ []));
38
- previewValue = signal(null, /* @ts-ignore */
39
- ...(ngDevMode ? [{ debugName: "previewValue" }] : /* istanbul ignore next */ []));
40
- focusedState = signal(false, /* @ts-ignore */
41
- ...(ngDevMode ? [{ debugName: "focusedState" }] : /* istanbul ignore next */ []));
42
- effectiveDisabled = computed(() => this.disabled() || this.formDisabled(), /* @ts-ignore */
43
- ...(ngDevMode ? [{ debugName: "effectiveDisabled" }] : /* istanbul ignore next */ []));
44
- maxStars = computed(() => Math.max(1, Math.floor(this.max())), /* @ts-ignore */
45
- ...(ngDevMode ? [{ debugName: "maxStars" }] : /* istanbul ignore next */ []));
46
- effectiveStep = computed(() => (this.allowHalf() ? 0.5 : 1), /* @ts-ignore */
47
- ...(ngDevMode ? [{ debugName: "effectiveStep" }] : /* istanbul ignore next */ []));
48
- normalizedValue = computed(() => this.normalizeValue(this.value()), /* @ts-ignore */
49
- ...(ngDevMode ? [{ debugName: "normalizedValue" }] : /* istanbul ignore next */ []));
50
- visualValue = computed(() => this.previewValue() ?? this.normalizedValue(), /* @ts-ignore */
51
- ...(ngDevMode ? [{ debugName: "visualValue" }] : /* istanbul ignore next */ []));
52
- visualFillWidth = computed(() => this.fillWidth(this.visualValue()), /* @ts-ignore */
53
- ...(ngDevMode ? [{ debugName: "visualFillWidth" }] : /* istanbul ignore next */ []));
54
- formattedValue = computed(() => this.valueText()?.(this.normalizedValue(), this.maxStars()) ??
55
- `${this.normalizedValue()} of ${this.maxStars()}`, /* @ts-ignore */
56
- ...(ngDevMode ? [{ debugName: "formattedValue" }] : /* istanbul ignore next */ []));
57
- stars = computed(() => Array.from({ length: this.maxStars() }, (_, index) => index + 1), /* @ts-ignore */
58
- ...(ngDevMode ? [{ debugName: "stars" }] : /* istanbul ignore next */ []));
59
- control = viewChild('ratingControl', /* @ts-ignore */
60
- ...(ngDevMode ? [{ debugName: "control" }] : /* istanbul ignore next */ []));
61
- activeIconTemplate = contentChild('activeIcon', /* @ts-ignore */
62
- ...(ngDevMode ? [{ debugName: "activeIconTemplate" }] : /* istanbul ignore next */ []));
63
- inactiveIconTemplate = contentChild('inactiveIcon', /* @ts-ignore */
64
- ...(ngDevMode ? [{ debugName: "inactiveIconTemplate" }] : /* istanbul ignore next */ []));
65
- generatedId = `aeris-rating-${++ratingId}`;
66
- resolvedInputId = computed(() => this.inputId() || this.generatedId, /* @ts-ignore */
67
- ...(ngDevMode ? [{ debugName: "resolvedInputId" }] : /* istanbul ignore next */ []));
68
- onChange = () => undefined;
69
- onTouched = () => undefined;
70
- writeValue(value) {
71
- this.value.set(this.coerceValue(value));
72
- }
73
- registerOnChange(callback) {
74
- this.onChange = callback;
75
- }
76
- registerOnTouched(callback) {
77
- this.onTouched = callback;
78
- }
79
- setDisabledState(disabled) {
80
- this.formDisabled.set(disabled);
81
- }
82
- focus(options) {
83
- this.control()?.nativeElement.focus(options);
84
- }
85
- reset() {
86
- this.setValue(0);
87
- }
88
- clear() {
89
- if (!this.allowClear() || this.effectiveDisabled())
90
- return;
91
- this.setValue(0);
92
- this.focus();
93
- }
94
- handlePointer(event) {
95
- if (this.effectiveDisabled())
96
- return;
97
- event.preventDefault();
98
- const next = this.valueFromPointer(event);
99
- const value = this.allowClear() && next === this.normalizedValue() ? 0 : next;
100
- if (this.setValue(value)) {
101
- this.changed.emit({ originalEvent: event, value: this.normalizedValue() });
102
- }
103
- this.focus();
104
- }
105
- handlePointerPreview(event) {
106
- if (this.effectiveDisabled())
107
- return;
108
- this.previewValue.set(this.valueFromPointer(event));
109
- }
110
- clearPreview() {
111
- this.previewValue.set(null);
112
- }
113
- iconContext(item, active) {
114
- return {
115
- $implicit: item,
116
- index: item - 1,
117
- active,
118
- value: this.normalizedValue(),
119
- max: this.maxStars(),
120
- };
121
- }
122
- handleKeydown(event) {
123
- if (this.effectiveDisabled())
124
- return;
125
- let next = null;
126
- if (event.key === 'ArrowRight' || event.key === 'ArrowUp') {
127
- next = this.normalizedValue() + this.effectiveStep();
128
- }
129
- else if (event.key === 'ArrowLeft' || event.key === 'ArrowDown') {
130
- next = this.normalizedValue() - this.effectiveStep();
131
- }
132
- else if (event.key === 'Home') {
133
- next = this.allowClear() ? 0 : this.effectiveStep();
134
- }
135
- else if (event.key === 'End') {
136
- next = this.maxStars();
137
- }
138
- else if (event.key === 'Backspace' || event.key === 'Delete') {
139
- if (this.allowClear())
140
- next = 0;
141
- }
142
- if (next === null)
143
- return;
144
- event.preventDefault();
145
- if (this.setValue(next)) {
146
- this.changed.emit({ originalEvent: event, value: this.normalizedValue() });
147
- }
148
- }
149
- handleFocus(event) {
150
- this.focusedState.set(true);
151
- this.focused.emit(event);
152
- }
153
- handleBlur(event) {
154
- this.focusedState.set(false);
155
- this.previewValue.set(null);
156
- this.onTouched();
157
- this.touch.emit();
158
- this.blurred.emit(event);
159
- }
160
- valueFromPointer(event) {
161
- const target = event.currentTarget;
162
- const rect = target.getBoundingClientRect();
163
- const ratio = Math.min(1, Math.max(0, (event.clientX - rect.left) / Math.max(1, rect.width)));
164
- const raw = ratio * this.maxStars();
165
- if (this.allowHalf()) {
166
- return this.normalizeValue(raw);
167
- }
168
- return this.normalizeValue(Math.ceil(raw));
169
- }
170
- setValue(value) {
171
- const next = this.normalizeValue(value);
172
- if (next === this.normalizedValue())
173
- return false;
174
- this.value.set(next);
175
- this.valueInput.emit(next);
176
- this.onChange(next);
177
- return true;
178
- }
179
- fillWidth(value) {
180
- const normalized = Math.min(this.maxStars(), Math.max(0, value));
181
- if (normalized <= 0)
182
- return '0px';
183
- const fullStars = Math.floor(normalized);
184
- const partialStar = Number((normalized - fullStars).toFixed(1));
185
- const starUnits = partialStar > 0 ? fullStars + partialStar : fullStars;
186
- const gapUnits = partialStar > 0 ? fullStars : Math.max(0, fullStars - 1);
187
- return `calc(${starUnits} * var(--_star-size) + ${gapUnits} * var(--_gap))`;
188
- }
189
- normalizeValue(value) {
190
- const min = this.allowClear() ? 0 : this.effectiveStep();
191
- const max = this.maxStars();
192
- const clamped = Math.min(max, Math.max(min, this.coerceValue(value)));
193
- const step = this.effectiveStep();
194
- return Number((Math.round(clamped / step) * step).toFixed(1));
195
- }
196
- coerceValue(value) {
197
- const number = Number(value);
198
- return Number.isFinite(number) ? number : 0;
199
- }
200
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisRating, deps: [], target: i0.ɵɵFactoryTarget.Component });
201
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: AerisRating, isStandalone: true, selector: "aeris-rating", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, allowHalf: { classPropertyName: "allowHalf", publicName: "allowHalf", isSignal: true, isRequired: false, transformFunction: null }, allowClear: { classPropertyName: "allowClear", publicName: "allowClear", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", 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 }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, inputId: { classPropertyName: "inputId", publicName: "inputId", 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 }, ariaDescribedby: { classPropertyName: "ariaDescribedby", publicName: "ariaDescribedby", isSignal: true, isRequired: false, transformFunction: null }, valueText: { classPropertyName: "valueText", publicName: "valueText", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", valueInput: "valueInput", changed: "changed", focused: "focused", blurred: "blurred", touch: "touch" }, host: { properties: { "attr.data-disabled": "effectiveDisabled() || null" } }, providers: [
202
- {
203
- provide: NG_VALUE_ACCESSOR,
204
- useExisting: forwardRef(() => AerisRating),
205
- multi: true,
206
- },
207
- ], queries: [{ propertyName: "activeIconTemplate", first: true, predicate: ["activeIcon"], descendants: true, isSignal: true }, { propertyName: "inactiveIconTemplate", first: true, predicate: ["inactiveIcon"], descendants: true, isSignal: true }], viewQueries: [{ propertyName: "control", first: true, predicate: ["ratingControl"], descendants: true, isSignal: true }], ngImport: i0, template: `
6
+ var AerisRating = class AerisRating {
7
+ starPath = "M12 2.9 14.8 8.6 21.1 9.5 16.5 14 17.6 20.3 12 17.3 6.4 20.3 7.5 14 2.9 9.5 9.2 8.6 12 2.9Z";
8
+ value = model(0, ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
9
+ max = input(5, {
10
+ ...ngDevMode ? { debugName: "max" } : /* istanbul ignore next */ {},
11
+ transform: numberAttribute
12
+ });
13
+ allowHalf = input(false, {
14
+ ...ngDevMode ? { debugName: "allowHalf" } : /* istanbul ignore next */ {},
15
+ transform: booleanAttribute
16
+ });
17
+ allowClear = input(true, {
18
+ ...ngDevMode ? { debugName: "allowClear" } : /* istanbul ignore next */ {},
19
+ transform: booleanAttribute
20
+ });
21
+ disabled = input(false, {
22
+ ...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
23
+ transform: booleanAttribute
24
+ });
25
+ required = input(false, {
26
+ ...ngDevMode ? { debugName: "required" } : /* istanbul ignore next */ {},
27
+ transform: booleanAttribute
28
+ });
29
+ size = input("md", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
30
+ showValue = input(false, {
31
+ ...ngDevMode ? { debugName: "showValue" } : /* istanbul ignore next */ {},
32
+ transform: booleanAttribute
33
+ });
34
+ name = input("", ...ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []);
35
+ inputId = input("", ...ngDevMode ? [{ debugName: "inputId" }] : /* istanbul ignore next */ []);
36
+ ariaLabel = input("Rating", ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
37
+ ariaLabelledBy = input("", ...ngDevMode ? [{ debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []);
38
+ ariaDescribedBy = input("", ...ngDevMode ? [{ debugName: "ariaDescribedBy" }] : /* istanbul ignore next */ []);
39
+ valueText = input(null, ...ngDevMode ? [{ debugName: "valueText" }] : /* istanbul ignore next */ []);
40
+ changed = output();
41
+ focused = output();
42
+ blurred = output();
43
+ touch = output();
44
+ formDisabled = signal(false, ...ngDevMode ? [{ debugName: "formDisabled" }] : /* istanbul ignore next */ []);
45
+ previewValue = signal(null, ...ngDevMode ? [{ debugName: "previewValue" }] : /* istanbul ignore next */ []);
46
+ focusedState = signal(false, ...ngDevMode ? [{ debugName: "focusedState" }] : /* istanbul ignore next */ []);
47
+ effectiveDisabled = computed(() => this.disabled() || this.formDisabled(), ...ngDevMode ? [{ debugName: "effectiveDisabled" }] : /* istanbul ignore next */ []);
48
+ maxStars = computed(() => Math.max(1, Math.floor(this.max())), ...ngDevMode ? [{ debugName: "maxStars" }] : /* istanbul ignore next */ []);
49
+ effectiveStep = computed(() => this.allowHalf() ? .5 : 1, ...ngDevMode ? [{ debugName: "effectiveStep" }] : /* istanbul ignore next */ []);
50
+ normalizedValue = computed(() => this.normalizeValue(this.value()), ...ngDevMode ? [{ debugName: "normalizedValue" }] : /* istanbul ignore next */ []);
51
+ visualValue = computed(() => this.previewValue() ?? this.normalizedValue(), ...ngDevMode ? [{ debugName: "visualValue" }] : /* istanbul ignore next */ []);
52
+ visualFillWidth = computed(() => this.fillWidth(this.visualValue()), ...ngDevMode ? [{ debugName: "visualFillWidth" }] : /* istanbul ignore next */ []);
53
+ formattedValue = computed(() => this.valueText()?.(this.normalizedValue(), this.maxStars()) ?? `${this.normalizedValue()} of ${this.maxStars()}`, ...ngDevMode ? [{ debugName: "formattedValue" }] : /* istanbul ignore next */ []);
54
+ stars = computed(() => Array.from({ length: this.maxStars() }, (_, index) => index + 1), ...ngDevMode ? [{ debugName: "stars" }] : /* istanbul ignore next */ []);
55
+ control = viewChild("ratingControl", ...ngDevMode ? [{ debugName: "control" }] : /* istanbul ignore next */ []);
56
+ activeIconTemplate = contentChild("activeIcon", ...ngDevMode ? [{ debugName: "activeIconTemplate" }] : /* istanbul ignore next */ []);
57
+ inactiveIconTemplate = contentChild("inactiveIcon", ...ngDevMode ? [{ debugName: "inactiveIconTemplate" }] : /* istanbul ignore next */ []);
58
+ generatedId = `aeris-rating-${++ratingId}`;
59
+ resolvedInputId = computed(() => this.inputId() || this.generatedId, ...ngDevMode ? [{ debugName: "resolvedInputId" }] : /* istanbul ignore next */ []);
60
+ onChange = () => void 0;
61
+ onTouched = () => void 0;
62
+ writeValue(value) {
63
+ this.value.set(this.coerceValue(value));
64
+ }
65
+ registerOnChange(callback) {
66
+ this.onChange = callback;
67
+ }
68
+ registerOnTouched(callback) {
69
+ this.onTouched = callback;
70
+ }
71
+ setDisabledState(disabled) {
72
+ this.formDisabled.set(disabled);
73
+ }
74
+ focus(options) {
75
+ this.control()?.nativeElement.focus(options);
76
+ }
77
+ reset() {
78
+ this.setValue(0);
79
+ }
80
+ clear() {
81
+ if (!this.allowClear() || this.effectiveDisabled()) return;
82
+ this.setValue(0);
83
+ this.focus();
84
+ }
85
+ handlePointer(event) {
86
+ if (this.effectiveDisabled()) return;
87
+ event.preventDefault();
88
+ const next = this.valueFromPointer(event);
89
+ const value = this.allowClear() && next === this.normalizedValue() ? 0 : next;
90
+ if (this.setValue(value)) this.changed.emit({
91
+ originalEvent: event,
92
+ value: this.normalizedValue()
93
+ });
94
+ this.focus();
95
+ }
96
+ handlePointerPreview(event) {
97
+ if (this.effectiveDisabled()) return;
98
+ this.previewValue.set(this.valueFromPointer(event));
99
+ }
100
+ clearPreview() {
101
+ this.previewValue.set(null);
102
+ }
103
+ iconContext(item, active) {
104
+ return {
105
+ $implicit: item,
106
+ index: item - 1,
107
+ active,
108
+ value: this.normalizedValue(),
109
+ max: this.maxStars()
110
+ };
111
+ }
112
+ handleKeydown(event) {
113
+ if (this.effectiveDisabled()) return;
114
+ let next = null;
115
+ if (event.key === "ArrowRight" || event.key === "ArrowUp") next = this.normalizedValue() + this.effectiveStep();
116
+ else if (event.key === "ArrowLeft" || event.key === "ArrowDown") next = this.normalizedValue() - this.effectiveStep();
117
+ else if (event.key === "Home") next = this.allowClear() ? 0 : this.effectiveStep();
118
+ else if (event.key === "End") next = this.maxStars();
119
+ else if (event.key === "Backspace" || event.key === "Delete") {
120
+ if (this.allowClear()) next = 0;
121
+ }
122
+ if (next === null) return;
123
+ event.preventDefault();
124
+ if (this.setValue(next)) this.changed.emit({
125
+ originalEvent: event,
126
+ value: this.normalizedValue()
127
+ });
128
+ }
129
+ handleFocus(event) {
130
+ this.focusedState.set(true);
131
+ this.focused.emit(event);
132
+ }
133
+ handleBlur(event) {
134
+ this.focusedState.set(false);
135
+ this.previewValue.set(null);
136
+ this.onTouched();
137
+ this.touch.emit();
138
+ this.blurred.emit(event);
139
+ }
140
+ valueFromPointer(event) {
141
+ const rect = event.currentTarget.getBoundingClientRect();
142
+ const raw = Math.min(1, Math.max(0, (event.clientX - rect.left) / Math.max(1, rect.width))) * this.maxStars();
143
+ if (this.allowHalf()) return this.normalizeValue(raw);
144
+ return this.normalizeValue(Math.ceil(raw));
145
+ }
146
+ setValue(value) {
147
+ const next = this.normalizeValue(value);
148
+ if (next === this.normalizedValue()) return false;
149
+ this.value.set(next);
150
+ this.onChange(next);
151
+ return true;
152
+ }
153
+ fillWidth(value) {
154
+ const normalized = Math.min(this.maxStars(), Math.max(0, value));
155
+ if (normalized <= 0) return "0px";
156
+ const fullStars = Math.floor(normalized);
157
+ const partialStar = Number((normalized - fullStars).toFixed(1));
158
+ return `calc(${partialStar > 0 ? fullStars + partialStar : fullStars} * var(--_star-size) + ${partialStar > 0 ? fullStars : Math.max(0, fullStars - 1)} * var(--_gap))`;
159
+ }
160
+ normalizeValue(value) {
161
+ const min = this.allowClear() ? 0 : this.effectiveStep();
162
+ const max = this.maxStars();
163
+ const clamped = Math.min(max, Math.max(min, this.coerceValue(value)));
164
+ const step = this.effectiveStep();
165
+ return Number((Math.round(clamped / step) * step).toFixed(1));
166
+ }
167
+ coerceValue(value) {
168
+ const number = Number(value);
169
+ return Number.isFinite(number) ? number : 0;
170
+ }
171
+ static ɵfac = i0.ɵɵngDeclareFactory({
172
+ minVersion: "12.0.0",
173
+ version: "22.2.2",
174
+ ngImport: i0,
175
+ type: AerisRating,
176
+ deps: [],
177
+ target: i0.ɵɵFactoryTarget.Component
178
+ });
179
+ static ɵcmp = i0.ɵɵngDeclareComponent({
180
+ minVersion: "17.0.0",
181
+ version: "22.2.2",
182
+ type: AerisRating,
183
+ isStandalone: true,
184
+ selector: "aeris-rating",
185
+ inputs: {
186
+ value: {
187
+ classPropertyName: "value",
188
+ publicName: "value",
189
+ isSignal: true,
190
+ isRequired: false,
191
+ transformFunction: null
192
+ },
193
+ max: {
194
+ classPropertyName: "max",
195
+ publicName: "max",
196
+ isSignal: true,
197
+ isRequired: false,
198
+ transformFunction: null
199
+ },
200
+ allowHalf: {
201
+ classPropertyName: "allowHalf",
202
+ publicName: "allowHalf",
203
+ isSignal: true,
204
+ isRequired: false,
205
+ transformFunction: null
206
+ },
207
+ allowClear: {
208
+ classPropertyName: "allowClear",
209
+ publicName: "allowClear",
210
+ isSignal: true,
211
+ isRequired: false,
212
+ transformFunction: null
213
+ },
214
+ disabled: {
215
+ classPropertyName: "disabled",
216
+ publicName: "disabled",
217
+ isSignal: true,
218
+ isRequired: false,
219
+ transformFunction: null
220
+ },
221
+ required: {
222
+ classPropertyName: "required",
223
+ publicName: "required",
224
+ isSignal: true,
225
+ isRequired: false,
226
+ transformFunction: null
227
+ },
228
+ size: {
229
+ classPropertyName: "size",
230
+ publicName: "size",
231
+ isSignal: true,
232
+ isRequired: false,
233
+ transformFunction: null
234
+ },
235
+ showValue: {
236
+ classPropertyName: "showValue",
237
+ publicName: "showValue",
238
+ isSignal: true,
239
+ isRequired: false,
240
+ transformFunction: null
241
+ },
242
+ name: {
243
+ classPropertyName: "name",
244
+ publicName: "name",
245
+ isSignal: true,
246
+ isRequired: false,
247
+ transformFunction: null
248
+ },
249
+ inputId: {
250
+ classPropertyName: "inputId",
251
+ publicName: "inputId",
252
+ isSignal: true,
253
+ isRequired: false,
254
+ transformFunction: null
255
+ },
256
+ ariaLabel: {
257
+ classPropertyName: "ariaLabel",
258
+ publicName: "ariaLabel",
259
+ isSignal: true,
260
+ isRequired: false,
261
+ transformFunction: null
262
+ },
263
+ ariaLabelledBy: {
264
+ classPropertyName: "ariaLabelledBy",
265
+ publicName: "ariaLabelledBy",
266
+ isSignal: true,
267
+ isRequired: false,
268
+ transformFunction: null
269
+ },
270
+ ariaDescribedBy: {
271
+ classPropertyName: "ariaDescribedBy",
272
+ publicName: "ariaDescribedBy",
273
+ isSignal: true,
274
+ isRequired: false,
275
+ transformFunction: null
276
+ },
277
+ valueText: {
278
+ classPropertyName: "valueText",
279
+ publicName: "valueText",
280
+ isSignal: true,
281
+ isRequired: false,
282
+ transformFunction: null
283
+ }
284
+ },
285
+ outputs: {
286
+ value: "valueChange",
287
+ changed: "changed",
288
+ focused: "focused",
289
+ blurred: "blurred",
290
+ touch: "touch"
291
+ },
292
+ host: { properties: { "attr.data-disabled": "effectiveDisabled() || null" } },
293
+ providers: [{
294
+ provide: NG_VALUE_ACCESSOR,
295
+ useExisting: forwardRef(() => AerisRating),
296
+ multi: true
297
+ }],
298
+ queries: [{
299
+ propertyName: "activeIconTemplate",
300
+ first: true,
301
+ predicate: ["activeIcon"],
302
+ descendants: true,
303
+ isSignal: true
304
+ }, {
305
+ propertyName: "inactiveIconTemplate",
306
+ first: true,
307
+ predicate: ["inactiveIcon"],
308
+ descendants: true,
309
+ isSignal: true
310
+ }],
311
+ viewQueries: [{
312
+ propertyName: "control",
313
+ first: true,
314
+ predicate: ["ratingControl"],
315
+ descendants: true,
316
+ isSignal: true
317
+ }],
318
+ ngImport: i0,
319
+ template: `
208
320
  <div
209
321
  class="aeris-rating"
210
322
  [attr.data-size]="size()"
@@ -224,8 +336,8 @@ class AerisRating {
224
336
  role="slider"
225
337
  [id]="resolvedInputId()"
226
338
  [attr.aria-label]="ariaLabel()"
227
- [attr.aria-labelledby]="ariaLabelledby() || null"
228
- [attr.aria-describedby]="ariaDescribedby() || null"
339
+ [attr.aria-labelledby]="ariaLabelledBy() || null"
340
+ [attr.aria-describedby]="ariaDescribedBy() || null"
229
341
  [attr.aria-valuemin]="allowClear() ? 0 : effectiveStep()"
230
342
  [attr.aria-valuemax]="maxStars()"
231
343
  [attr.aria-valuenow]="normalizedValue()"
@@ -283,11 +395,32 @@ class AerisRating {
283
395
  </span>
284
396
  }
285
397
  </div>
286
- `, isInline: true, styles: [":host{display:inline-block;color:var(--aeris-rating-text, var(--aeris-text, #222222));font:inherit}.aeris-rating{--_star-size: 1.5rem;--_gap: .25rem;display:inline-flex;align-items:center;gap:.625rem}.aeris-rating[data-size=xs]{--_star-size: 1rem;--_gap: .125rem}.aeris-rating[data-size=sm]{--_star-size: 1.25rem;--_gap: .1875rem}.aeris-rating[data-size=lg]{--_star-size: 1.875rem;--_gap: .3125rem}.aeris-rating__control{position:relative;display:block;width:calc(var(--aeris-rating-max) * var(--_star-size) + (var(--aeris-rating-max) - 1) * var(--_gap));min-width:0;padding:0;border:0;border-radius:.5rem;background:transparent;color:inherit;cursor:pointer;touch-action:manipulation}.aeris-rating__control:focus{outline:0}.aeris-rating__control:focus-visible{outline:0;box-shadow:none}.aeris-rating__control:focus-visible .aeris-rating__stars{filter:drop-shadow(0 0 .18rem var(--aeris-rating-focus, var(--aeris-focus, #536437)))}.aeris-rating__stars{position:relative;display:block;color:var(--aeris-rating-empty, var(--aeris-surface-3, #e5e5df))}.aeris-rating__layer,.aeris-rating__layer-inner{display:flex;gap:var(--_gap)}.aeris-rating__layer--empty{clip-path:inset(0 0 0 var(--aeris-rating-progress))}.aeris-rating__layer--active{position:absolute;inset:0 auto 0 0;z-index:1;width:var(--aeris-rating-progress);color:var(--aeris-rating-active, var(--aeris-primary, #879566));overflow:hidden;pointer-events:none}.aeris-rating__layer-inner{width:calc(var(--aeris-rating-max) * var(--_star-size) + (var(--aeris-rating-max) - 1) * var(--_gap))}.aeris-rating__star{width:var(--_star-size);height:var(--_star-size);display:grid;place-items:center;flex:0 0 auto;font-size:var(--_star-size);line-height:1}.aeris-rating__star svg{width:100%;height:100%;display:block;fill:currentColor}.aeris-rating__value{color:var(--aeris-rating-value-text, var(--aeris-text-2, #555555));font-size:.8125rem;font-weight:650;font-variant-numeric:tabular-nums}.aeris-rating[data-disabled]{opacity:var(--aeris-disabled-opacity, .52)}.aeris-rating[data-disabled] .aeris-rating__control,.aeris-rating__control:disabled{cursor:not-allowed}@media(prefers-reduced-motion:reduce){.aeris-rating__control{transition:none}}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
287
- }
288
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisRating, decorators: [{
289
- type: Component,
290
- args: [{ selector: 'aeris-rating', imports: [NgTemplateOutlet], template: `
398
+ `,
399
+ isInline: true,
400
+ styles: [":host{display:inline-block;color:var(--aeris-rating-text, var(--aeris-text, #111111));font:inherit}.aeris-rating{--_star-size: 1.5rem;--_gap: .25rem;display:inline-flex;align-items:center;gap:.625rem}.aeris-rating[data-size=xs]{--_star-size: 1rem;--_gap: .125rem}.aeris-rating[data-size=sm]{--_star-size: 1.25rem;--_gap: .1875rem}.aeris-rating[data-size=lg]{--_star-size: 1.875rem;--_gap: .3125rem}.aeris-rating__control{position:relative;display:block;width:calc(var(--aeris-rating-max) * var(--_star-size) + (var(--aeris-rating-max) - 1) * var(--_gap));min-width:0;padding:0;border:0;border-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .4375rem));background:transparent;color:inherit;cursor:pointer;touch-action:manipulation}.aeris-rating__control:focus{outline:0}.aeris-rating__control:focus-visible{outline:0;box-shadow:none}.aeris-rating__control:focus-visible .aeris-rating__stars{filter:drop-shadow(0 0 .18rem var(--aeris-rating-focus, var(--aeris-focus, #111111)))}.aeris-rating__stars{position:relative;display:block;color:var(--aeris-rating-empty, var(--aeris-surface-3, #e5e5df));transition:filter var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease)}.aeris-rating__layer,.aeris-rating__layer-inner{display:flex;gap:var(--_gap)}.aeris-rating__layer--empty{clip-path:inset(0 0 0 var(--aeris-rating-progress));transition:clip-path var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease)}.aeris-rating__layer--active{position:absolute;inset:0 auto 0 0;z-index:1;width:var(--aeris-rating-progress);color:var(--aeris-rating-active, var(--aeris-primary, #111111));overflow:hidden;pointer-events:none;transition:width var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease)}.aeris-rating__layer-inner{width:calc(var(--aeris-rating-max) * var(--_star-size) + (var(--aeris-rating-max) - 1) * var(--_gap))}.aeris-rating__star{width:var(--_star-size);height:var(--_star-size);display:grid;place-items:center;flex:0 0 auto;font-size:var(--_star-size);line-height:1}.aeris-rating__star svg{width:100%;height:100%;display:block;fill:currentColor}.aeris-rating__value{color:var(--aeris-rating-value-text, var(--aeris-text-2, #454545));font-size:var(--aeris-font-size-md, .8125rem);font-weight:var(--aeris-font-weight-bold, 700);font-variant-numeric:tabular-nums}.aeris-rating[data-disabled]{opacity:var(--aeris-disabled-opacity, .52)}.aeris-rating[data-disabled] .aeris-rating__control,.aeris-rating__control:disabled{cursor:not-allowed}@media(prefers-reduced-motion:reduce){.aeris-rating__stars,.aeris-rating__layer--empty,.aeris-rating__layer--active{transition:none}}\n"],
401
+ dependencies: [{
402
+ kind: "directive",
403
+ type: NgTemplateOutlet,
404
+ selector: "[ngTemplateOutlet]",
405
+ inputs: [
406
+ "ngTemplateOutletContext",
407
+ "ngTemplateOutlet",
408
+ "ngTemplateOutletInjector"
409
+ ]
410
+ }]
411
+ });
412
+ };
413
+ i0.ɵɵngDeclareClassMetadata({
414
+ minVersion: "12.0.0",
415
+ version: "22.2.2",
416
+ ngImport: i0,
417
+ type: AerisRating,
418
+ decorators: [{
419
+ type: Component,
420
+ args: [{
421
+ selector: "aeris-rating",
422
+ imports: [NgTemplateOutlet],
423
+ template: `
291
424
  <div
292
425
  class="aeris-rating"
293
426
  [attr.data-size]="size()"
@@ -307,8 +440,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
307
440
  role="slider"
308
441
  [id]="resolvedInputId()"
309
442
  [attr.aria-label]="ariaLabel()"
310
- [attr.aria-labelledby]="ariaLabelledby() || null"
311
- [attr.aria-describedby]="ariaDescribedby() || null"
443
+ [attr.aria-labelledby]="ariaLabelledBy() || null"
444
+ [attr.aria-describedby]="ariaDescribedBy() || null"
312
445
  [attr.aria-valuemin]="allowClear() ? 0 : effectiveStep()"
313
446
  [attr.aria-valuemax]="maxStars()"
314
447
  [attr.aria-valuenow]="normalizedValue()"
@@ -366,20 +499,162 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
366
499
  </span>
367
500
  }
368
501
  </div>
369
- `, providers: [
370
- {
371
- provide: NG_VALUE_ACCESSOR,
372
- useExisting: forwardRef(() => AerisRating),
373
- multi: true,
374
- },
375
- ], host: {
376
- '[attr.data-disabled]': 'effectiveDisabled() || null',
377
- }, styles: [":host{display:inline-block;color:var(--aeris-rating-text, var(--aeris-text, #222222));font:inherit}.aeris-rating{--_star-size: 1.5rem;--_gap: .25rem;display:inline-flex;align-items:center;gap:.625rem}.aeris-rating[data-size=xs]{--_star-size: 1rem;--_gap: .125rem}.aeris-rating[data-size=sm]{--_star-size: 1.25rem;--_gap: .1875rem}.aeris-rating[data-size=lg]{--_star-size: 1.875rem;--_gap: .3125rem}.aeris-rating__control{position:relative;display:block;width:calc(var(--aeris-rating-max) * var(--_star-size) + (var(--aeris-rating-max) - 1) * var(--_gap));min-width:0;padding:0;border:0;border-radius:.5rem;background:transparent;color:inherit;cursor:pointer;touch-action:manipulation}.aeris-rating__control:focus{outline:0}.aeris-rating__control:focus-visible{outline:0;box-shadow:none}.aeris-rating__control:focus-visible .aeris-rating__stars{filter:drop-shadow(0 0 .18rem var(--aeris-rating-focus, var(--aeris-focus, #536437)))}.aeris-rating__stars{position:relative;display:block;color:var(--aeris-rating-empty, var(--aeris-surface-3, #e5e5df))}.aeris-rating__layer,.aeris-rating__layer-inner{display:flex;gap:var(--_gap)}.aeris-rating__layer--empty{clip-path:inset(0 0 0 var(--aeris-rating-progress))}.aeris-rating__layer--active{position:absolute;inset:0 auto 0 0;z-index:1;width:var(--aeris-rating-progress);color:var(--aeris-rating-active, var(--aeris-primary, #879566));overflow:hidden;pointer-events:none}.aeris-rating__layer-inner{width:calc(var(--aeris-rating-max) * var(--_star-size) + (var(--aeris-rating-max) - 1) * var(--_gap))}.aeris-rating__star{width:var(--_star-size);height:var(--_star-size);display:grid;place-items:center;flex:0 0 auto;font-size:var(--_star-size);line-height:1}.aeris-rating__star svg{width:100%;height:100%;display:block;fill:currentColor}.aeris-rating__value{color:var(--aeris-rating-value-text, var(--aeris-text-2, #555555));font-size:.8125rem;font-weight:650;font-variant-numeric:tabular-nums}.aeris-rating[data-disabled]{opacity:var(--aeris-disabled-opacity, .52)}.aeris-rating[data-disabled] .aeris-rating__control,.aeris-rating__control:disabled{cursor:not-allowed}@media(prefers-reduced-motion:reduce){.aeris-rating__control{transition:none}}\n"] }]
378
- }], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], allowHalf: [{ type: i0.Input, args: [{ isSignal: true, alias: "allowHalf", required: false }] }], allowClear: [{ type: i0.Input, args: [{ isSignal: true, alias: "allowClear", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], showValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "showValue", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], inputId: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputId", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], ariaLabelledby: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelledby", required: false }] }], ariaDescribedby: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaDescribedby", required: false }] }], valueText: [{ type: i0.Input, args: [{ isSignal: true, alias: "valueText", required: false }] }], valueInput: [{ type: i0.Output, args: ["valueInput"] }], changed: [{ type: i0.Output, args: ["changed"] }], focused: [{ type: i0.Output, args: ["focused"] }], blurred: [{ type: i0.Output, args: ["blurred"] }], touch: [{ type: i0.Output, args: ["touch"] }], control: [{ type: i0.ViewChild, args: ['ratingControl', { isSignal: true }] }], activeIconTemplate: [{ type: i0.ContentChild, args: ['activeIcon', { isSignal: true }] }], inactiveIconTemplate: [{ type: i0.ContentChild, args: ['inactiveIcon', { isSignal: true }] }] } });
379
-
380
- /**
381
- * Generated bundle index. Do not edit.
382
- */
383
-
502
+ `,
503
+ providers: [{
504
+ provide: NG_VALUE_ACCESSOR,
505
+ useExisting: forwardRef(() => AerisRating),
506
+ multi: true
507
+ }],
508
+ host: { "[attr.data-disabled]": "effectiveDisabled() || null" },
509
+ styles: [":host{display:inline-block;color:var(--aeris-rating-text, var(--aeris-text, #111111));font:inherit}.aeris-rating{--_star-size: 1.5rem;--_gap: .25rem;display:inline-flex;align-items:center;gap:.625rem}.aeris-rating[data-size=xs]{--_star-size: 1rem;--_gap: .125rem}.aeris-rating[data-size=sm]{--_star-size: 1.25rem;--_gap: .1875rem}.aeris-rating[data-size=lg]{--_star-size: 1.875rem;--_gap: .3125rem}.aeris-rating__control{position:relative;display:block;width:calc(var(--aeris-rating-max) * var(--_star-size) + (var(--aeris-rating-max) - 1) * var(--_gap));min-width:0;padding:0;border:0;border-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .4375rem));background:transparent;color:inherit;cursor:pointer;touch-action:manipulation}.aeris-rating__control:focus{outline:0}.aeris-rating__control:focus-visible{outline:0;box-shadow:none}.aeris-rating__control:focus-visible .aeris-rating__stars{filter:drop-shadow(0 0 .18rem var(--aeris-rating-focus, var(--aeris-focus, #111111)))}.aeris-rating__stars{position:relative;display:block;color:var(--aeris-rating-empty, var(--aeris-surface-3, #e5e5df));transition:filter var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease)}.aeris-rating__layer,.aeris-rating__layer-inner{display:flex;gap:var(--_gap)}.aeris-rating__layer--empty{clip-path:inset(0 0 0 var(--aeris-rating-progress));transition:clip-path var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease)}.aeris-rating__layer--active{position:absolute;inset:0 auto 0 0;z-index:1;width:var(--aeris-rating-progress);color:var(--aeris-rating-active, var(--aeris-primary, #111111));overflow:hidden;pointer-events:none;transition:width var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease)}.aeris-rating__layer-inner{width:calc(var(--aeris-rating-max) * var(--_star-size) + (var(--aeris-rating-max) - 1) * var(--_gap))}.aeris-rating__star{width:var(--_star-size);height:var(--_star-size);display:grid;place-items:center;flex:0 0 auto;font-size:var(--_star-size);line-height:1}.aeris-rating__star svg{width:100%;height:100%;display:block;fill:currentColor}.aeris-rating__value{color:var(--aeris-rating-value-text, var(--aeris-text-2, #454545));font-size:var(--aeris-font-size-md, .8125rem);font-weight:var(--aeris-font-weight-bold, 700);font-variant-numeric:tabular-nums}.aeris-rating[data-disabled]{opacity:var(--aeris-disabled-opacity, .52)}.aeris-rating[data-disabled] .aeris-rating__control,.aeris-rating__control:disabled{cursor:not-allowed}@media(prefers-reduced-motion:reduce){.aeris-rating__stars,.aeris-rating__layer--empty,.aeris-rating__layer--active{transition:none}}\n"]
510
+ }]
511
+ }],
512
+ propDecorators: {
513
+ value: [{
514
+ type: i0.Input,
515
+ args: [{
516
+ isSignal: true,
517
+ alias: "value",
518
+ required: false
519
+ }]
520
+ }, {
521
+ type: i0.Output,
522
+ args: ["valueChange"]
523
+ }],
524
+ max: [{
525
+ type: i0.Input,
526
+ args: [{
527
+ isSignal: true,
528
+ alias: "max",
529
+ required: false
530
+ }]
531
+ }],
532
+ allowHalf: [{
533
+ type: i0.Input,
534
+ args: [{
535
+ isSignal: true,
536
+ alias: "allowHalf",
537
+ required: false
538
+ }]
539
+ }],
540
+ allowClear: [{
541
+ type: i0.Input,
542
+ args: [{
543
+ isSignal: true,
544
+ alias: "allowClear",
545
+ required: false
546
+ }]
547
+ }],
548
+ disabled: [{
549
+ type: i0.Input,
550
+ args: [{
551
+ isSignal: true,
552
+ alias: "disabled",
553
+ required: false
554
+ }]
555
+ }],
556
+ required: [{
557
+ type: i0.Input,
558
+ args: [{
559
+ isSignal: true,
560
+ alias: "required",
561
+ required: false
562
+ }]
563
+ }],
564
+ size: [{
565
+ type: i0.Input,
566
+ args: [{
567
+ isSignal: true,
568
+ alias: "size",
569
+ required: false
570
+ }]
571
+ }],
572
+ showValue: [{
573
+ type: i0.Input,
574
+ args: [{
575
+ isSignal: true,
576
+ alias: "showValue",
577
+ required: false
578
+ }]
579
+ }],
580
+ name: [{
581
+ type: i0.Input,
582
+ args: [{
583
+ isSignal: true,
584
+ alias: "name",
585
+ required: false
586
+ }]
587
+ }],
588
+ inputId: [{
589
+ type: i0.Input,
590
+ args: [{
591
+ isSignal: true,
592
+ alias: "inputId",
593
+ required: false
594
+ }]
595
+ }],
596
+ ariaLabel: [{
597
+ type: i0.Input,
598
+ args: [{
599
+ isSignal: true,
600
+ alias: "ariaLabel",
601
+ required: false
602
+ }]
603
+ }],
604
+ ariaLabelledBy: [{
605
+ type: i0.Input,
606
+ args: [{
607
+ isSignal: true,
608
+ alias: "ariaLabelledBy",
609
+ required: false
610
+ }]
611
+ }],
612
+ ariaDescribedBy: [{
613
+ type: i0.Input,
614
+ args: [{
615
+ isSignal: true,
616
+ alias: "ariaDescribedBy",
617
+ required: false
618
+ }]
619
+ }],
620
+ valueText: [{
621
+ type: i0.Input,
622
+ args: [{
623
+ isSignal: true,
624
+ alias: "valueText",
625
+ required: false
626
+ }]
627
+ }],
628
+ changed: [{
629
+ type: i0.Output,
630
+ args: ["changed"]
631
+ }],
632
+ focused: [{
633
+ type: i0.Output,
634
+ args: ["focused"]
635
+ }],
636
+ blurred: [{
637
+ type: i0.Output,
638
+ args: ["blurred"]
639
+ }],
640
+ touch: [{
641
+ type: i0.Output,
642
+ args: ["touch"]
643
+ }],
644
+ control: [{
645
+ type: i0.ViewChild,
646
+ args: ["ratingControl", { isSignal: true }]
647
+ }],
648
+ activeIconTemplate: [{
649
+ type: i0.ContentChild,
650
+ args: ["activeIcon", { isSignal: true }]
651
+ }],
652
+ inactiveIconTemplate: [{
653
+ type: i0.ContentChild,
654
+ args: ["inactiveIcon", { isSignal: true }]
655
+ }]
656
+ }
657
+ });
384
658
  export { AerisRating };
385
- //# sourceMappingURL=aeris-ui-core-rating.mjs.map
659
+
660
+ //# sourceMappingURL=aeris-ui-core-rating.mjs.map