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

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 (318) hide show
  1. package/README.md +232 -191
  2. package/THIRD_PARTY_LICENSES.md +48 -0
  3. package/fesm2022/aeris-ui-core-accordion.mjs +666 -273
  4. package/fesm2022/aeris-ui-core-accordion.mjs.map +1 -1
  5. package/fesm2022/aeris-ui-core-animate-on-scroll.mjs +284 -103
  6. package/fesm2022/aeris-ui-core-animate-on-scroll.mjs.map +1 -1
  7. package/fesm2022/aeris-ui-core-auto-complete.mjs +1301 -450
  8. package/fesm2022/aeris-ui-core-auto-complete.mjs.map +1 -1
  9. package/fesm2022/aeris-ui-core-auto-focus.mjs +111 -61
  10. package/fesm2022/aeris-ui-core-auto-focus.mjs.map +1 -1
  11. package/fesm2022/aeris-ui-core-avatar.mjs +383 -101
  12. package/fesm2022/aeris-ui-core-avatar.mjs.map +1 -1
  13. package/fesm2022/aeris-ui-core-badge.mjs +562 -115
  14. package/fesm2022/aeris-ui-core-badge.mjs.map +1 -1
  15. package/fesm2022/aeris-ui-core-block-ui.mjs +221 -101
  16. package/fesm2022/aeris-ui-core-block-ui.mjs.map +1 -1
  17. package/fesm2022/aeris-ui-core-breadcrumb.mjs +609 -199
  18. package/fesm2022/aeris-ui-core-breadcrumb.mjs.map +1 -1
  19. package/fesm2022/aeris-ui-core-button-forms.mjs +78 -0
  20. package/fesm2022/aeris-ui-core-button-forms.mjs.map +1 -0
  21. package/fesm2022/aeris-ui-core-button-group.mjs +554 -36
  22. package/fesm2022/aeris-ui-core-button-group.mjs.map +1 -1
  23. package/fesm2022/aeris-ui-core-button.mjs +911 -137
  24. package/fesm2022/aeris-ui-core-button.mjs.map +1 -1
  25. package/fesm2022/aeris-ui-core-card.mjs +371 -101
  26. package/fesm2022/aeris-ui-core-card.mjs.map +1 -1
  27. package/fesm2022/aeris-ui-core-carousel.mjs +835 -369
  28. package/fesm2022/aeris-ui-core-carousel.mjs.map +1 -1
  29. package/fesm2022/aeris-ui-core-cascade-select.mjs +1294 -525
  30. package/fesm2022/aeris-ui-core-cascade-select.mjs.map +1 -1
  31. package/fesm2022/aeris-ui-core-chart.mjs +594 -262
  32. package/fesm2022/aeris-ui-core-chart.mjs.map +1 -1
  33. package/fesm2022/aeris-ui-core-checkbox.mjs +619 -150
  34. package/fesm2022/aeris-ui-core-checkbox.mjs.map +1 -1
  35. package/fesm2022/aeris-ui-core-chip.mjs +1109 -121
  36. package/fesm2022/aeris-ui-core-chip.mjs.map +1 -1
  37. package/fesm2022/aeris-ui-core-class-names.mjs +87 -65
  38. package/fesm2022/aeris-ui-core-class-names.mjs.map +1 -1
  39. package/fesm2022/aeris-ui-core-code-block.mjs +687 -0
  40. package/fesm2022/aeris-ui-core-code-block.mjs.map +1 -0
  41. package/fesm2022/aeris-ui-core-color-picker.mjs +2436 -1076
  42. package/fesm2022/aeris-ui-core-color-picker.mjs.map +1 -1
  43. package/fesm2022/aeris-ui-core-command-palette.mjs +996 -0
  44. package/fesm2022/aeris-ui-core-command-palette.mjs.map +1 -0
  45. package/fesm2022/aeris-ui-core-compare.mjs +870 -338
  46. package/fesm2022/aeris-ui-core-compare.mjs.map +1 -1
  47. package/fesm2022/aeris-ui-core-confirm-dialog.mjs +1454 -575
  48. package/fesm2022/aeris-ui-core-confirm-dialog.mjs.map +1 -1
  49. package/fesm2022/aeris-ui-core-confirm-popup.mjs +1499 -760
  50. package/fesm2022/aeris-ui-core-confirm-popup.mjs.map +1 -1
  51. package/fesm2022/aeris-ui-core-context-menu.mjs +975 -449
  52. package/fesm2022/aeris-ui-core-context-menu.mjs.map +1 -1
  53. package/fesm2022/aeris-ui-core-date-picker-aeris-date-picker-input-jAhzMzLQ.mjs +946 -0
  54. package/fesm2022/aeris-ui-core-date-picker-aeris-date-picker-input-jAhzMzLQ.mjs.map +1 -0
  55. package/fesm2022/aeris-ui-core-date-picker.mjs +2538 -1183
  56. package/fesm2022/aeris-ui-core-date-picker.mjs.map +1 -1
  57. package/fesm2022/aeris-ui-core-dialog.mjs +1187 -368
  58. package/fesm2022/aeris-ui-core-dialog.mjs.map +1 -1
  59. package/fesm2022/aeris-ui-core-divider.mjs +204 -43
  60. package/fesm2022/aeris-ui-core-divider.mjs.map +1 -1
  61. package/fesm2022/aeris-ui-core-drawer.mjs +1712 -345
  62. package/fesm2022/aeris-ui-core-drawer.mjs.map +1 -1
  63. package/fesm2022/aeris-ui-core-dynamic-dialog.mjs +418 -254
  64. package/fesm2022/aeris-ui-core-dynamic-dialog.mjs.map +1 -1
  65. package/fesm2022/aeris-ui-core-editor.mjs +1808 -783
  66. package/fesm2022/aeris-ui-core-editor.mjs.map +1 -1
  67. package/fesm2022/aeris-ui-core-file-upload.mjs +1529 -536
  68. package/fesm2022/aeris-ui-core-file-upload.mjs.map +1 -1
  69. package/fesm2022/aeris-ui-core-filter-service.mjs +258 -301
  70. package/fesm2022/aeris-ui-core-filter-service.mjs.map +1 -1
  71. package/fesm2022/aeris-ui-core-fluid.mjs +68 -21
  72. package/fesm2022/aeris-ui-core-fluid.mjs.map +1 -1
  73. package/fesm2022/aeris-ui-core-focus-trap.mjs +206 -182
  74. package/fesm2022/aeris-ui-core-focus-trap.mjs.map +1 -1
  75. package/fesm2022/aeris-ui-core-form-field.mjs +688 -0
  76. package/fesm2022/aeris-ui-core-form-field.mjs.map +1 -0
  77. package/fesm2022/aeris-ui-core-galleria.mjs +2821 -1143
  78. package/fesm2022/aeris-ui-core-galleria.mjs.map +1 -1
  79. package/fesm2022/aeris-ui-core-glass.mjs +110 -33
  80. package/fesm2022/aeris-ui-core-glass.mjs.map +1 -1
  81. package/fesm2022/aeris-ui-core-icon-field.mjs +426 -98
  82. package/fesm2022/aeris-ui-core-icon-field.mjs.map +1 -1
  83. package/fesm2022/aeris-ui-core-inplace.mjs +496 -132
  84. package/fesm2022/aeris-ui-core-inplace.mjs.map +1 -1
  85. package/fesm2022/aeris-ui-core-input-group.mjs +413 -107
  86. package/fesm2022/aeris-ui-core-input-group.mjs.map +1 -1
  87. package/fesm2022/aeris-ui-core-input-mask.mjs +713 -257
  88. package/fesm2022/aeris-ui-core-input-mask.mjs.map +1 -1
  89. package/fesm2022/aeris-ui-core-input-number.mjs +1095 -297
  90. package/fesm2022/aeris-ui-core-input-number.mjs.map +1 -1
  91. package/fesm2022/aeris-ui-core-input-otp.mjs +678 -264
  92. package/fesm2022/aeris-ui-core-input-otp.mjs.map +1 -1
  93. package/fesm2022/aeris-ui-core-input-text.mjs +703 -160
  94. package/fesm2022/aeris-ui-core-input-text.mjs.map +1 -1
  95. package/fesm2022/aeris-ui-core-kbd.mjs +243 -0
  96. package/fesm2022/aeris-ui-core-kbd.mjs.map +1 -0
  97. package/fesm2022/aeris-ui-core-key-filter.mjs +263 -201
  98. package/fesm2022/aeris-ui-core-key-filter.mjs.map +1 -1
  99. package/fesm2022/aeris-ui-core-listbox.mjs +789 -0
  100. package/fesm2022/aeris-ui-core-listbox.mjs.map +1 -0
  101. package/fesm2022/aeris-ui-core-mega-menu.mjs +662 -388
  102. package/fesm2022/aeris-ui-core-mega-menu.mjs.map +1 -1
  103. package/fesm2022/aeris-ui-core-menu.mjs +1111 -478
  104. package/fesm2022/aeris-ui-core-menu.mjs.map +1 -1
  105. package/fesm2022/aeris-ui-core-menubar.mjs +1081 -411
  106. package/fesm2022/aeris-ui-core-menubar.mjs.map +1 -1
  107. package/fesm2022/aeris-ui-core-message.mjs +513 -147
  108. package/fesm2022/aeris-ui-core-message.mjs.map +1 -1
  109. package/fesm2022/aeris-ui-core-meter-group.mjs +641 -230
  110. package/fesm2022/aeris-ui-core-meter-group.mjs.map +1 -1
  111. package/fesm2022/aeris-ui-core-multi-select.mjs +1832 -577
  112. package/fesm2022/aeris-ui-core-multi-select.mjs.map +1 -1
  113. package/fesm2022/aeris-ui-core-navbar.mjs +1407 -0
  114. package/fesm2022/aeris-ui-core-navbar.mjs.map +1 -0
  115. package/fesm2022/aeris-ui-core-order-list.mjs +748 -220
  116. package/fesm2022/aeris-ui-core-order-list.mjs.map +1 -1
  117. package/fesm2022/aeris-ui-core-organization-chart.mjs +521 -201
  118. package/fesm2022/aeris-ui-core-organization-chart.mjs.map +1 -1
  119. package/fesm2022/aeris-ui-core-paginator.mjs +671 -127
  120. package/fesm2022/aeris-ui-core-paginator.mjs.map +1 -1
  121. package/fesm2022/aeris-ui-core-panel.mjs +602 -210
  122. package/fesm2022/aeris-ui-core-panel.mjs.map +1 -1
  123. package/fesm2022/aeris-ui-core-password.mjs +1046 -269
  124. package/fesm2022/aeris-ui-core-password.mjs.map +1 -1
  125. package/fesm2022/aeris-ui-core-pick-list.mjs +1796 -703
  126. package/fesm2022/aeris-ui-core-pick-list.mjs.map +1 -1
  127. package/fesm2022/aeris-ui-core-popover.mjs +1354 -385
  128. package/fesm2022/aeris-ui-core-popover.mjs.map +1 -1
  129. package/fesm2022/aeris-ui-core-progress-bar.mjs +609 -182
  130. package/fesm2022/aeris-ui-core-progress-bar.mjs.map +1 -1
  131. package/fesm2022/aeris-ui-core-progress-spinner.mjs +428 -133
  132. package/fesm2022/aeris-ui-core-progress-spinner.mjs.map +1 -1
  133. package/fesm2022/aeris-ui-core-radio-button.mjs +502 -132
  134. package/fesm2022/aeris-ui-core-radio-button.mjs.map +1 -1
  135. package/fesm2022/aeris-ui-core-rating.mjs +506 -231
  136. package/fesm2022/aeris-ui-core-rating.mjs.map +1 -1
  137. package/fesm2022/aeris-ui-core-scroll-panel.mjs +457 -154
  138. package/fesm2022/aeris-ui-core-scroll-panel.mjs.map +1 -1
  139. package/fesm2022/aeris-ui-core-scroll-top.mjs +279 -69
  140. package/fesm2022/aeris-ui-core-scroll-top.mjs.map +1 -1
  141. package/fesm2022/aeris-ui-core-select-native.mjs +145 -0
  142. package/fesm2022/aeris-ui-core-select-native.mjs.map +1 -0
  143. package/fesm2022/aeris-ui-core-select.mjs +1984 -668
  144. package/fesm2022/aeris-ui-core-select.mjs.map +1 -1
  145. package/fesm2022/aeris-ui-core-sidebar.mjs +1293 -0
  146. package/fesm2022/aeris-ui-core-sidebar.mjs.map +1 -0
  147. package/fesm2022/aeris-ui-core-skeleton.mjs +149 -45
  148. package/fesm2022/aeris-ui-core-skeleton.mjs.map +1 -1
  149. package/fesm2022/aeris-ui-core-slider.mjs +884 -430
  150. package/fesm2022/aeris-ui-core-slider.mjs.map +1 -1
  151. package/fesm2022/aeris-ui-core-speed-dial.mjs +882 -337
  152. package/fesm2022/aeris-ui-core-speed-dial.mjs.map +1 -1
  153. package/fesm2022/aeris-ui-core-split-button.mjs +972 -268
  154. package/fesm2022/aeris-ui-core-split-button.mjs.map +1 -1
  155. package/fesm2022/aeris-ui-core-splitter.mjs +831 -356
  156. package/fesm2022/aeris-ui-core-splitter.mjs.map +1 -1
  157. package/fesm2022/aeris-ui-core-stepper.mjs +705 -256
  158. package/fesm2022/aeris-ui-core-stepper.mjs.map +1 -1
  159. package/fesm2022/aeris-ui-core-style-class.mjs +587 -342
  160. package/fesm2022/aeris-ui-core-style-class.mjs.map +1 -1
  161. package/fesm2022/aeris-ui-core-table.mjs +2927 -923
  162. package/fesm2022/aeris-ui-core-table.mjs.map +1 -1
  163. package/fesm2022/aeris-ui-core-tabs.mjs +855 -283
  164. package/fesm2022/aeris-ui-core-tabs.mjs.map +1 -1
  165. package/fesm2022/aeris-ui-core-textarea.mjs +919 -221
  166. package/fesm2022/aeris-ui-core-textarea.mjs.map +1 -1
  167. package/fesm2022/aeris-ui-core-theme-builder.mjs +1368 -1407
  168. package/fesm2022/aeris-ui-core-theme-builder.mjs.map +1 -1
  169. package/fesm2022/aeris-ui-core-theming.mjs +132 -144
  170. package/fesm2022/aeris-ui-core-theming.mjs.map +1 -1
  171. package/fesm2022/aeris-ui-core-tiered-menu.mjs +966 -447
  172. package/fesm2022/aeris-ui-core-tiered-menu.mjs.map +1 -1
  173. package/fesm2022/aeris-ui-core-timeline.mjs +407 -131
  174. package/fesm2022/aeris-ui-core-timeline.mjs.map +1 -1
  175. package/fesm2022/aeris-ui-core-toast.mjs +1109 -384
  176. package/fesm2022/aeris-ui-core-toast.mjs.map +1 -1
  177. package/fesm2022/aeris-ui-core-toggle-switch.mjs +398 -132
  178. package/fesm2022/aeris-ui-core-toggle-switch.mjs.map +1 -1
  179. package/fesm2022/aeris-ui-core-toolbar.mjs +1340 -131
  180. package/fesm2022/aeris-ui-core-toolbar.mjs.map +1 -1
  181. package/fesm2022/aeris-ui-core-tooltip.mjs +625 -330
  182. package/fesm2022/aeris-ui-core-tooltip.mjs.map +1 -1
  183. package/fesm2022/aeris-ui-core-tree-select.mjs +1650 -627
  184. package/fesm2022/aeris-ui-core-tree-select.mjs.map +1 -1
  185. package/fesm2022/aeris-ui-core-tree-table.mjs +2442 -994
  186. package/fesm2022/aeris-ui-core-tree-table.mjs.map +1 -1
  187. package/fesm2022/aeris-ui-core-tree.mjs +1257 -670
  188. package/fesm2022/aeris-ui-core-tree.mjs.map +1 -1
  189. package/fesm2022/aeris-ui-core.mjs +1601 -312
  190. package/fesm2022/aeris-ui-core.mjs.map +1 -1
  191. package/package.json +48 -8
  192. package/schematics/ng-add/schema.json +1 -1
  193. package/schematics/runtime/schematics/ng-add/options.js +4 -4
  194. package/schematics/runtime/schematics/ng-add/options.js.map +1 -1
  195. package/schematics/runtime/schematics/ng-add/workspace.js +1 -1
  196. package/schematics/runtime/schematics/ng-add/workspace.js.map +1 -1
  197. package/schematics/runtime/theme-builder/aeris-color-derivation.js +1 -1
  198. package/schematics/runtime/theme-builder/aeris-contrast.js +38 -17
  199. package/schematics/runtime/theme-builder/aeris-contrast.js.map +1 -1
  200. package/schematics/runtime/theme-builder/aeris-foundation.js +13 -8
  201. package/schematics/runtime/theme-builder/aeris-foundation.js.map +1 -1
  202. package/schematics/runtime/theme-builder/aeris-semantic-tones.js +33 -23
  203. package/schematics/runtime/theme-builder/aeris-semantic-tones.js.map +1 -1
  204. package/schematics/runtime/theme-builder/aeris-theme-generator.js +8 -2
  205. package/schematics/runtime/theme-builder/aeris-theme-generator.js.map +1 -1
  206. package/schematics/runtime/theme-builder/aeris-theme-resolver.js +63 -76
  207. package/schematics/runtime/theme-builder/aeris-theme-resolver.js.map +1 -1
  208. package/schematics/runtime/theme-builder/aeris-theme-tokens.js +15 -5
  209. package/schematics/runtime/theme-builder/aeris-theme-tokens.js.map +1 -1
  210. package/schematics/runtime/theme-builder/aeris-theme-validation.js +18 -2
  211. package/schematics/runtime/theme-builder/aeris-theme-validation.js.map +1 -1
  212. package/schematics/runtime/theme-builder/aeris-theme.js +121 -34
  213. package/schematics/runtime/theme-builder/aeris-theme.js.map +1 -1
  214. package/styles/_choice-card.scss +93 -0
  215. package/styles/_fallback-colors.scss +10 -0
  216. package/styles/_icon-artwork.scss +14 -0
  217. package/styles/_icon-template.scss +42 -0
  218. package/styles/_mobile.scss +16 -0
  219. package/styles/_selection-icons.scss +12 -0
  220. package/styles/_table-pinning.scss +119 -0
  221. package/styles/_tokens.scss +5 -5
  222. package/styles/aeris.css +447 -137
  223. package/styles/controls.css +205 -35
  224. package/tools/aeris-theme.mjs +4 -4
  225. package/tools/aeris-theme.schema.json +18 -13
  226. package/types/aeris-ui-core-accordion.d.ts +167 -93
  227. package/types/aeris-ui-core-animate-on-scroll.d.ts +72 -31
  228. package/types/aeris-ui-core-auto-complete.d.ts +339 -140
  229. package/types/aeris-ui-core-auto-focus.d.ts +24 -16
  230. package/types/aeris-ui-core-avatar.d.ts +112 -42
  231. package/types/aeris-ui-core-badge.d.ts +160 -46
  232. package/types/aeris-ui-core-block-ui.d.ts +48 -27
  233. package/types/aeris-ui-core-breadcrumb.d.ts +163 -92
  234. package/types/aeris-ui-core-button-forms.d.ts +18 -0
  235. package/types/aeris-ui-core-button-group.d.ts +150 -16
  236. package/types/aeris-ui-core-button.d.ts +274 -67
  237. package/types/aeris-ui-core-card.d.ts +74 -37
  238. package/types/aeris-ui-core-carousel.d.ts +213 -117
  239. package/types/aeris-ui-core-cascade-select.d.ts +275 -123
  240. package/types/aeris-ui-core-chart.d.ts +150 -84
  241. package/types/aeris-ui-core-checkbox.d.ts +173 -54
  242. package/types/aeris-ui-core-chip.d.ts +316 -56
  243. package/types/aeris-ui-core-class-names.d.ts +22 -20
  244. package/types/aeris-ui-core-code-block.d.ts +201 -0
  245. package/types/aeris-ui-core-color-picker.d.ts +450 -143
  246. package/types/aeris-ui-core-command-palette.d.ts +267 -0
  247. package/types/aeris-ui-core-compare.d.ts +230 -102
  248. package/types/aeris-ui-core-confirm-dialog.d.ts +450 -245
  249. package/types/aeris-ui-core-confirm-popup.d.ts +442 -263
  250. package/types/aeris-ui-core-context-menu.d.ts +270 -146
  251. package/types/aeris-ui-core-date-picker.d.ts +594 -219
  252. package/types/aeris-ui-core-dialog.d.ts +301 -117
  253. package/types/aeris-ui-core-divider.d.ts +58 -20
  254. package/types/aeris-ui-core-drawer.d.ts +380 -112
  255. package/types/aeris-ui-core-dynamic-dialog.d.ts +162 -137
  256. package/types/aeris-ui-core-editor.d.ts +257 -123
  257. package/types/aeris-ui-core-file-upload.d.ts +385 -197
  258. package/types/aeris-ui-core-filter-service.d.ts +48 -52
  259. package/types/aeris-ui-core-fluid.d.ts +12 -9
  260. package/types/aeris-ui-core-focus-trap.d.ts +39 -31
  261. package/types/aeris-ui-core-form-field.d.ts +163 -0
  262. package/types/aeris-ui-core-galleria.d.ts +636 -256
  263. package/types/aeris-ui-core-glass.d.ts +24 -11
  264. package/types/aeris-ui-core-icon-field.d.ts +94 -32
  265. package/types/aeris-ui-core-inplace.d.ts +129 -62
  266. package/types/aeris-ui-core-input-group.d.ts +84 -33
  267. package/types/aeris-ui-core-input-mask.d.ts +201 -69
  268. package/types/aeris-ui-core-input-number.d.ts +291 -87
  269. package/types/aeris-ui-core-input-otp.d.ts +191 -81
  270. package/types/aeris-ui-core-input-text.d.ts +195 -60
  271. package/types/aeris-ui-core-kbd.d.ts +74 -0
  272. package/types/aeris-ui-core-key-filter.d.ts +53 -39
  273. package/types/aeris-ui-core-listbox.d.ts +222 -0
  274. package/types/aeris-ui-core-mega-menu.d.ts +181 -121
  275. package/types/aeris-ui-core-menu.d.ts +283 -168
  276. package/types/aeris-ui-core-menubar.d.ts +289 -135
  277. package/types/aeris-ui-core-message.d.ts +138 -60
  278. package/types/aeris-ui-core-meter-group.d.ts +169 -90
  279. package/types/aeris-ui-core-multi-select.d.ts +469 -180
  280. package/types/aeris-ui-core-navbar.d.ts +208 -0
  281. package/types/aeris-ui-core-order-list.d.ts +168 -66
  282. package/types/aeris-ui-core-organization-chart.d.ts +139 -77
  283. package/types/aeris-ui-core-paginator.d.ts +129 -38
  284. package/types/aeris-ui-core-panel.d.ts +149 -78
  285. package/types/aeris-ui-core-password.d.ts +276 -102
  286. package/types/aeris-ui-core-pick-list.d.ts +428 -179
  287. package/types/aeris-ui-core-popover.d.ts +294 -105
  288. package/types/aeris-ui-core-progress-bar.d.ts +163 -73
  289. package/types/aeris-ui-core-progress-spinner.d.ts +116 -48
  290. package/types/aeris-ui-core-radio-button.d.ts +146 -50
  291. package/types/aeris-ui-core-rating.d.ts +149 -76
  292. package/types/aeris-ui-core-scroll-panel.d.ts +142 -64
  293. package/types/aeris-ui-core-scroll-top.d.ts +73 -29
  294. package/types/aeris-ui-core-select-native.d.ts +40 -0
  295. package/types/aeris-ui-core-select.d.ts +487 -217
  296. package/types/aeris-ui-core-sidebar.d.ts +220 -0
  297. package/types/aeris-ui-core-skeleton.d.ts +39 -17
  298. package/types/aeris-ui-core-slider.d.ts +270 -115
  299. package/types/aeris-ui-core-speed-dial.d.ts +241 -111
  300. package/types/aeris-ui-core-split-button.d.ts +267 -113
  301. package/types/aeris-ui-core-splitter.d.ts +224 -106
  302. package/types/aeris-ui-core-stepper.d.ts +184 -91
  303. package/types/aeris-ui-core-style-class.d.ts +141 -71
  304. package/types/aeris-ui-core-table.d.ts +729 -304
  305. package/types/aeris-ui-core-tabs.d.ts +193 -76
  306. package/types/aeris-ui-core-textarea.d.ts +271 -78
  307. package/types/aeris-ui-core-theme-builder.d.ts +220 -463
  308. package/types/aeris-ui-core-theming.d.ts +42 -45
  309. package/types/aeris-ui-core-tiered-menu.d.ts +257 -142
  310. package/types/aeris-ui-core-timeline.d.ts +109 -71
  311. package/types/aeris-ui-core-toast.d.ts +231 -115
  312. package/types/aeris-ui-core-toggle-switch.d.ts +125 -51
  313. package/types/aeris-ui-core-toolbar.d.ts +314 -47
  314. package/types/aeris-ui-core-tooltip.d.ts +157 -88
  315. package/types/aeris-ui-core-tree-select.d.ts +394 -171
  316. package/types/aeris-ui-core-tree-table.d.ts +629 -288
  317. package/types/aeris-ui-core-tree.d.ts +294 -165
  318. package/types/aeris-ui-core.d.ts +338 -74
@@ -1,136 +1,1345 @@
1
- import * as i0 from '@angular/core';
2
- import { Directive, input, booleanAttribute, ViewEncapsulation, Component } from '@angular/core';
3
-
4
- class AerisToolbarStart {
5
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisToolbarStart, deps: [], target: i0.ɵɵFactoryTarget.Directive });
6
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.6", type: AerisToolbarStart, isStandalone: true, selector: "[aerisToolbarStart]", host: { classAttribute: "aeris-toolbar__section aeris-toolbar__section--start" }, ngImport: i0 });
7
- }
8
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisToolbarStart, decorators: [{
9
- type: Directive,
10
- args: [{
11
- selector: '[aerisToolbarStart]',
12
- host: { class: 'aeris-toolbar__section aeris-toolbar__section--start' },
13
- }]
14
- }] });
15
- class AerisToolbarCenter {
16
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisToolbarCenter, deps: [], target: i0.ɵɵFactoryTarget.Directive });
17
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.6", type: AerisToolbarCenter, isStandalone: true, selector: "[aerisToolbarCenter]", host: { classAttribute: "aeris-toolbar__section aeris-toolbar__section--center" }, ngImport: i0 });
18
- }
19
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisToolbarCenter, decorators: [{
20
- type: Directive,
21
- args: [{
22
- selector: '[aerisToolbarCenter]',
23
- host: { class: 'aeris-toolbar__section aeris-toolbar__section--center' },
24
- }]
25
- }] });
26
- class AerisToolbarEnd {
27
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisToolbarEnd, deps: [], target: i0.ɵɵFactoryTarget.Directive });
28
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.6", type: AerisToolbarEnd, isStandalone: true, selector: "[aerisToolbarEnd]", host: { classAttribute: "aeris-toolbar__section aeris-toolbar__section--end" }, ngImport: i0 });
29
- }
30
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisToolbarEnd, decorators: [{
31
- type: Directive,
32
- args: [{
33
- selector: '[aerisToolbarEnd]',
34
- host: { class: 'aeris-toolbar__section aeris-toolbar__section--end' },
35
- }]
36
- }] });
37
- class AerisToolbarGroup {
38
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisToolbarGroup, deps: [], target: i0.ɵɵFactoryTarget.Directive });
39
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.6", type: AerisToolbarGroup, isStandalone: true, selector: "[aerisToolbarGroup]", host: { classAttribute: "aeris-toolbar__group" }, ngImport: i0 });
40
- }
41
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisToolbarGroup, decorators: [{
42
- type: Directive,
43
- args: [{
44
- selector: '[aerisToolbarGroup]',
45
- host: { class: 'aeris-toolbar__group' },
46
- }]
47
- }] });
48
- class AerisToolbarSpacer {
49
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisToolbarSpacer, deps: [], target: i0.ɵɵFactoryTarget.Directive });
50
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.6", type: AerisToolbarSpacer, isStandalone: true, selector: "[aerisToolbarSpacer]", host: { attributes: { "aria-hidden": "true" }, classAttribute: "aeris-toolbar__spacer" }, ngImport: i0 });
51
- }
52
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisToolbarSpacer, decorators: [{
53
- type: Directive,
54
- args: [{
55
- selector: '[aerisToolbarSpacer]',
56
- host: {
57
- class: 'aeris-toolbar__spacer',
58
- 'aria-hidden': 'true',
59
- },
60
- }]
61
- }] });
62
- class AerisToolbar {
63
- id = input('', /* @ts-ignore */
64
- ...(ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []));
65
- variant = input('outlined', /* @ts-ignore */
66
- ...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
67
- size = input('md', /* @ts-ignore */
68
- ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
69
- orientation = input('horizontal', /* @ts-ignore */
70
- ...(ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []));
71
- align = input('center', /* @ts-ignore */
72
- ...(ngDevMode ? [{ debugName: "align" }] : /* istanbul ignore next */ []));
73
- wrap = input(true, { ...(ngDevMode ? { debugName: "wrap" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
74
- fluid = input(true, { ...(ngDevMode ? { debugName: "fluid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
75
- disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
76
- role = input('toolbar', /* @ts-ignore */
77
- ...(ngDevMode ? [{ debugName: "role" }] : /* istanbul ignore next */ []));
78
- ariaLabel = input('', /* @ts-ignore */
79
- ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
80
- ariaLabelledBy = input('', /* @ts-ignore */
81
- ...(ngDevMode ? [{ debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []));
82
- ariaDescribedBy = input('', /* @ts-ignore */
83
- ...(ngDevMode ? [{ debugName: "ariaDescribedBy" }] : /* istanbul ignore next */ []));
84
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisToolbar, deps: [], target: i0.ɵɵFactoryTarget.Component });
85
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.6", type: AerisToolbar, isStandalone: true, selector: "aeris-toolbar", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, align: { classPropertyName: "align", publicName: "align", isSignal: true, isRequired: false, transformFunction: null }, wrap: { classPropertyName: "wrap", publicName: "wrap", isSignal: true, isRequired: false, transformFunction: null }, fluid: { classPropertyName: "fluid", publicName: "fluid", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, role: { classPropertyName: "role", publicName: "role", 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 } }, host: { properties: { "attr.id": "id() || null", "attr.role": "role()", "attr.aria-label": "ariaLabel() || null", "attr.aria-labelledby": "ariaLabelledBy() || null", "attr.aria-describedby": "ariaDescribedBy() || null", "attr.aria-orientation": "role() === \"toolbar\" ? orientation() : null", "attr.aria-disabled": "disabled() || null", "attr.inert": "disabled() ? \"\" : null", "attr.data-variant": "variant()", "attr.data-size": "size()", "attr.data-orientation": "orientation()", "attr.data-align": "align()", "attr.data-wrap": "wrap()", "attr.data-fluid": "fluid() || null", "attr.data-disabled": "disabled() || null" }, classAttribute: "aeris-toolbar" }, ngImport: i0, template: `
86
- <div class="aeris-toolbar__content">
87
- <ng-content select="[aerisToolbarStart]" />
88
- <ng-content select="[aerisToolbarCenter]" />
89
- <ng-content select="[aerisToolbarEnd]" />
90
- <ng-content />
1
+ import * as i0 from "@angular/core";
2
+ import { Component, DestroyRef, Directive, ElementRef, HostAttributeToken, ViewEncapsulation, afterNextRender, afterRenderEffect, booleanAttribute, computed, contentChildren, inject, input, model, signal, viewChild } from "@angular/core";
3
+ import * as i1 from "@aeris-ui/core";
4
+ import { aerisInternalCreateFrameScheduler, ɵAerisAppendTo } from "@aeris-ui/core";
5
+ var AerisToolbarContainer = class AerisToolbarContainer {
6
+ static ɵfac = i0.ɵɵngDeclareFactory({
7
+ minVersion: "12.0.0",
8
+ version: "22.2.3",
9
+ ngImport: i0,
10
+ type: AerisToolbarContainer,
11
+ deps: [],
12
+ target: i0.ɵɵFactoryTarget.Directive
13
+ });
14
+ static ɵdir = i0.ɵɵngDeclareDirective({
15
+ minVersion: "14.0.0",
16
+ version: "22.2.3",
17
+ type: AerisToolbarContainer,
18
+ isStandalone: true,
19
+ selector: "[aerisToolbarContainer]",
20
+ host: { classAttribute: "aeris-toolbar-container" },
21
+ ngImport: i0
22
+ });
23
+ };
24
+ i0.ɵɵngDeclareClassMetadata({
25
+ minVersion: "12.0.0",
26
+ version: "22.2.3",
27
+ ngImport: i0,
28
+ type: AerisToolbarContainer,
29
+ decorators: [{
30
+ type: Directive,
31
+ args: [{
32
+ selector: "[aerisToolbarContainer]",
33
+ host: { class: "aeris-toolbar-container" }
34
+ }]
35
+ }]
36
+ });
37
+ var AerisToolbarLabel = class AerisToolbarLabel {
38
+ static ɵfac = i0.ɵɵngDeclareFactory({
39
+ minVersion: "12.0.0",
40
+ version: "22.2.3",
41
+ ngImport: i0,
42
+ type: AerisToolbarLabel,
43
+ deps: [],
44
+ target: i0.ɵɵFactoryTarget.Directive
45
+ });
46
+ static ɵdir = i0.ɵɵngDeclareDirective({
47
+ minVersion: "14.0.0",
48
+ version: "22.2.3",
49
+ type: AerisToolbarLabel,
50
+ isStandalone: true,
51
+ selector: "[aerisToolbarLabel]",
52
+ host: { classAttribute: "aeris-toolbar__label" },
53
+ ngImport: i0
54
+ });
55
+ };
56
+ i0.ɵɵngDeclareClassMetadata({
57
+ minVersion: "12.0.0",
58
+ version: "22.2.3",
59
+ ngImport: i0,
60
+ type: AerisToolbarLabel,
61
+ decorators: [{
62
+ type: Directive,
63
+ args: [{
64
+ selector: "[aerisToolbarLabel]",
65
+ host: { class: "aeris-toolbar__label" }
66
+ }]
67
+ }]
68
+ });
69
+ var AerisToolbarStart = class AerisToolbarStart {
70
+ static ɵfac = i0.ɵɵngDeclareFactory({
71
+ minVersion: "12.0.0",
72
+ version: "22.2.3",
73
+ ngImport: i0,
74
+ type: AerisToolbarStart,
75
+ deps: [],
76
+ target: i0.ɵɵFactoryTarget.Directive
77
+ });
78
+ static ɵdir = i0.ɵɵngDeclareDirective({
79
+ minVersion: "14.0.0",
80
+ version: "22.2.3",
81
+ type: AerisToolbarStart,
82
+ isStandalone: true,
83
+ selector: "[aerisToolbarStart]",
84
+ host: { classAttribute: "aeris-toolbar__section aeris-toolbar__section--start" },
85
+ ngImport: i0
86
+ });
87
+ };
88
+ i0.ɵɵngDeclareClassMetadata({
89
+ minVersion: "12.0.0",
90
+ version: "22.2.3",
91
+ ngImport: i0,
92
+ type: AerisToolbarStart,
93
+ decorators: [{
94
+ type: Directive,
95
+ args: [{
96
+ selector: "[aerisToolbarStart]",
97
+ host: { class: "aeris-toolbar__section aeris-toolbar__section--start" }
98
+ }]
99
+ }]
100
+ });
101
+ var AerisToolbarCenter = class AerisToolbarCenter {
102
+ static ɵfac = i0.ɵɵngDeclareFactory({
103
+ minVersion: "12.0.0",
104
+ version: "22.2.3",
105
+ ngImport: i0,
106
+ type: AerisToolbarCenter,
107
+ deps: [],
108
+ target: i0.ɵɵFactoryTarget.Directive
109
+ });
110
+ static ɵdir = i0.ɵɵngDeclareDirective({
111
+ minVersion: "14.0.0",
112
+ version: "22.2.3",
113
+ type: AerisToolbarCenter,
114
+ isStandalone: true,
115
+ selector: "[aerisToolbarCenter]",
116
+ host: { classAttribute: "aeris-toolbar__section aeris-toolbar__section--center" },
117
+ ngImport: i0
118
+ });
119
+ };
120
+ i0.ɵɵngDeclareClassMetadata({
121
+ minVersion: "12.0.0",
122
+ version: "22.2.3",
123
+ ngImport: i0,
124
+ type: AerisToolbarCenter,
125
+ decorators: [{
126
+ type: Directive,
127
+ args: [{
128
+ selector: "[aerisToolbarCenter]",
129
+ host: { class: "aeris-toolbar__section aeris-toolbar__section--center" }
130
+ }]
131
+ }]
132
+ });
133
+ var AerisToolbarEnd = class AerisToolbarEnd {
134
+ static ɵfac = i0.ɵɵngDeclareFactory({
135
+ minVersion: "12.0.0",
136
+ version: "22.2.3",
137
+ ngImport: i0,
138
+ type: AerisToolbarEnd,
139
+ deps: [],
140
+ target: i0.ɵɵFactoryTarget.Directive
141
+ });
142
+ static ɵdir = i0.ɵɵngDeclareDirective({
143
+ minVersion: "14.0.0",
144
+ version: "22.2.3",
145
+ type: AerisToolbarEnd,
146
+ isStandalone: true,
147
+ selector: "[aerisToolbarEnd]",
148
+ host: { classAttribute: "aeris-toolbar__section aeris-toolbar__section--end" },
149
+ ngImport: i0
150
+ });
151
+ };
152
+ i0.ɵɵngDeclareClassMetadata({
153
+ minVersion: "12.0.0",
154
+ version: "22.2.3",
155
+ ngImport: i0,
156
+ type: AerisToolbarEnd,
157
+ decorators: [{
158
+ type: Directive,
159
+ args: [{
160
+ selector: "[aerisToolbarEnd]",
161
+ host: { class: "aeris-toolbar__section aeris-toolbar__section--end" }
162
+ }]
163
+ }]
164
+ });
165
+ var AerisToolbarGroup = class AerisToolbarGroup {
166
+ toolbar = inject(AerisToolbar);
167
+ ariaLabel = input(inject(new HostAttributeToken("aria-label"), { optional: true }) ?? "", ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
168
+ ariaLabelledBy = input("", ...ngDevMode ? [{ debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []);
169
+ attached = input(false, {
170
+ ...ngDevMode ? { debugName: "attached" } : /* istanbul ignore next */ {},
171
+ transform: booleanAttribute
172
+ });
173
+ disabled = input(false, {
174
+ ...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
175
+ transform: booleanAttribute
176
+ });
177
+ selectionMode = input("none", ...ngDevMode ? [{ debugName: "selectionMode" }] : /* istanbul ignore next */ []);
178
+ value = model(null, ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
179
+ allowEmpty = input(false, {
180
+ ...ngDevMode ? { debugName: "allowEmpty" } : /* istanbul ignore next */ {},
181
+ transform: booleanAttribute
182
+ });
183
+ isPressed(key) {
184
+ if (key === null) return false;
185
+ const value = this.value();
186
+ return this.selectionMode() === "single" ? value === key : this.selectionMode() === "multiple" && Array.isArray(value) && value.includes(key);
187
+ }
188
+ activate(key) {
189
+ if (this.disabled() || key === null || this.selectionMode() === "none") return;
190
+ if (this.selectionMode() === "single") {
191
+ if (this.value() !== key) this.value.set(key);
192
+ else if (this.allowEmpty()) this.value.set(null);
193
+ } else {
194
+ const value = this.value();
195
+ const values = Array.isArray(value) ? value : [];
196
+ this.value.set(values.includes(key) ? values.filter((item) => item !== key) : [...values, key]);
197
+ }
198
+ }
199
+ static ɵfac = i0.ɵɵngDeclareFactory({
200
+ minVersion: "12.0.0",
201
+ version: "22.2.3",
202
+ ngImport: i0,
203
+ type: AerisToolbarGroup,
204
+ deps: [],
205
+ target: i0.ɵɵFactoryTarget.Directive
206
+ });
207
+ static ɵdir = i0.ɵɵngDeclareDirective({
208
+ minVersion: "17.1.0",
209
+ version: "22.2.3",
210
+ type: AerisToolbarGroup,
211
+ isStandalone: true,
212
+ selector: "[aerisToolbarGroup]",
213
+ inputs: {
214
+ ariaLabel: {
215
+ classPropertyName: "ariaLabel",
216
+ publicName: "ariaLabel",
217
+ isSignal: true,
218
+ isRequired: false,
219
+ transformFunction: null
220
+ },
221
+ ariaLabelledBy: {
222
+ classPropertyName: "ariaLabelledBy",
223
+ publicName: "ariaLabelledBy",
224
+ isSignal: true,
225
+ isRequired: false,
226
+ transformFunction: null
227
+ },
228
+ attached: {
229
+ classPropertyName: "attached",
230
+ publicName: "attached",
231
+ isSignal: true,
232
+ isRequired: false,
233
+ transformFunction: null
234
+ },
235
+ disabled: {
236
+ classPropertyName: "disabled",
237
+ publicName: "disabled",
238
+ isSignal: true,
239
+ isRequired: false,
240
+ transformFunction: null
241
+ },
242
+ selectionMode: {
243
+ classPropertyName: "selectionMode",
244
+ publicName: "selectionMode",
245
+ isSignal: true,
246
+ isRequired: false,
247
+ transformFunction: null
248
+ },
249
+ value: {
250
+ classPropertyName: "value",
251
+ publicName: "value",
252
+ isSignal: true,
253
+ isRequired: false,
254
+ transformFunction: null
255
+ },
256
+ allowEmpty: {
257
+ classPropertyName: "allowEmpty",
258
+ publicName: "allowEmpty",
259
+ isSignal: true,
260
+ isRequired: false,
261
+ transformFunction: null
262
+ }
263
+ },
264
+ outputs: { value: "valueChange" },
265
+ host: {
266
+ attributes: { "role": "group" },
267
+ properties: {
268
+ "attr.aria-label": "ariaLabel() || null",
269
+ "attr.aria-labelledby": "ariaLabelledBy() || null",
270
+ "attr.aria-disabled": "disabled() || null",
271
+ "attr.data-attached": "attached() || null",
272
+ "attr.data-selection": "selectionMode()"
273
+ },
274
+ classAttribute: "aeris-toolbar__group"
275
+ },
276
+ ngImport: i0
277
+ });
278
+ };
279
+ i0.ɵɵngDeclareClassMetadata({
280
+ minVersion: "12.0.0",
281
+ version: "22.2.3",
282
+ ngImport: i0,
283
+ type: AerisToolbarGroup,
284
+ decorators: [{
285
+ type: Directive,
286
+ args: [{
287
+ selector: "[aerisToolbarGroup]",
288
+ host: {
289
+ class: "aeris-toolbar__group",
290
+ role: "group",
291
+ "[attr.aria-label]": "ariaLabel() || null",
292
+ "[attr.aria-labelledby]": "ariaLabelledBy() || null",
293
+ "[attr.aria-disabled]": "disabled() || null",
294
+ "[attr.data-attached]": "attached() || null",
295
+ "[attr.data-selection]": "selectionMode()"
296
+ }
297
+ }]
298
+ }],
299
+ propDecorators: {
300
+ ariaLabel: [{
301
+ type: i0.Input,
302
+ args: [{
303
+ isSignal: true,
304
+ alias: "ariaLabel",
305
+ required: false
306
+ }]
307
+ }],
308
+ ariaLabelledBy: [{
309
+ type: i0.Input,
310
+ args: [{
311
+ isSignal: true,
312
+ alias: "ariaLabelledBy",
313
+ required: false
314
+ }]
315
+ }],
316
+ attached: [{
317
+ type: i0.Input,
318
+ args: [{
319
+ isSignal: true,
320
+ alias: "attached",
321
+ required: false
322
+ }]
323
+ }],
324
+ disabled: [{
325
+ type: i0.Input,
326
+ args: [{
327
+ isSignal: true,
328
+ alias: "disabled",
329
+ required: false
330
+ }]
331
+ }],
332
+ selectionMode: [{
333
+ type: i0.Input,
334
+ args: [{
335
+ isSignal: true,
336
+ alias: "selectionMode",
337
+ required: false
338
+ }]
339
+ }],
340
+ value: [{
341
+ type: i0.Input,
342
+ args: [{
343
+ isSignal: true,
344
+ alias: "value",
345
+ required: false
346
+ }]
347
+ }, {
348
+ type: i0.Output,
349
+ args: ["valueChange"]
350
+ }],
351
+ allowEmpty: [{
352
+ type: i0.Input,
353
+ args: [{
354
+ isSignal: true,
355
+ alias: "allowEmpty",
356
+ required: false
357
+ }]
358
+ }]
359
+ }
360
+ });
361
+ var AerisToolbarSeparator = class AerisToolbarSeparator {
362
+ toolbar = inject(AerisToolbar);
363
+ static ɵfac = i0.ɵɵngDeclareFactory({
364
+ minVersion: "12.0.0",
365
+ version: "22.2.3",
366
+ ngImport: i0,
367
+ type: AerisToolbarSeparator,
368
+ deps: [],
369
+ target: i0.ɵɵFactoryTarget.Directive
370
+ });
371
+ static ɵdir = i0.ɵɵngDeclareDirective({
372
+ minVersion: "14.0.0",
373
+ version: "22.2.3",
374
+ type: AerisToolbarSeparator,
375
+ isStandalone: true,
376
+ selector: "[aerisToolbarSeparator]",
377
+ host: {
378
+ attributes: { "role": "separator" },
379
+ properties: { "attr.aria-orientation": "toolbar.orientation() === \"horizontal\" ? \"vertical\" : \"horizontal\"" },
380
+ classAttribute: "aeris-toolbar__separator"
381
+ },
382
+ ngImport: i0
383
+ });
384
+ };
385
+ i0.ɵɵngDeclareClassMetadata({
386
+ minVersion: "12.0.0",
387
+ version: "22.2.3",
388
+ ngImport: i0,
389
+ type: AerisToolbarSeparator,
390
+ decorators: [{
391
+ type: Directive,
392
+ args: [{
393
+ selector: "[aerisToolbarSeparator]",
394
+ host: {
395
+ class: "aeris-toolbar__separator",
396
+ role: "separator",
397
+ "[attr.aria-orientation]": "toolbar.orientation() === \"horizontal\" ? \"vertical\" : \"horizontal\""
398
+ }
399
+ }]
400
+ }]
401
+ });
402
+ var AerisToolbarSpacer = class AerisToolbarSpacer {
403
+ static ɵfac = i0.ɵɵngDeclareFactory({
404
+ minVersion: "12.0.0",
405
+ version: "22.2.3",
406
+ ngImport: i0,
407
+ type: AerisToolbarSpacer,
408
+ deps: [],
409
+ target: i0.ɵɵFactoryTarget.Directive
410
+ });
411
+ static ɵdir = i0.ɵɵngDeclareDirective({
412
+ minVersion: "14.0.0",
413
+ version: "22.2.3",
414
+ type: AerisToolbarSpacer,
415
+ isStandalone: true,
416
+ selector: "[aerisToolbarSpacer]",
417
+ host: {
418
+ attributes: { "aria-hidden": "true" },
419
+ classAttribute: "aeris-toolbar__spacer"
420
+ },
421
+ ngImport: i0
422
+ });
423
+ };
424
+ i0.ɵɵngDeclareClassMetadata({
425
+ minVersion: "12.0.0",
426
+ version: "22.2.3",
427
+ ngImport: i0,
428
+ type: AerisToolbarSpacer,
429
+ decorators: [{
430
+ type: Directive,
431
+ args: [{
432
+ selector: "[aerisToolbarSpacer]",
433
+ host: {
434
+ class: "aeris-toolbar__spacer",
435
+ "aria-hidden": "true"
436
+ }
437
+ }]
438
+ }]
439
+ });
440
+ var AerisToolbar = class AerisToolbar {
441
+ id = input("", ...ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []);
442
+ variant = input("plain", ...ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []);
443
+ attached = input(false, {
444
+ ...ngDevMode ? { debugName: "attached" } : /* istanbul ignore next */ {},
445
+ transform: booleanAttribute
446
+ });
447
+ size = input("md", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
448
+ orientation = input("horizontal", ...ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []);
449
+ align = input("center", ...ngDevMode ? [{ debugName: "align" }] : /* istanbul ignore next */ []);
450
+ wrap = input(false, {
451
+ ...ngDevMode ? { debugName: "wrap" } : /* istanbul ignore next */ {},
452
+ transform: booleanAttribute
453
+ });
454
+ fluid = input(false, {
455
+ ...ngDevMode ? { debugName: "fluid" } : /* istanbul ignore next */ {},
456
+ transform: booleanAttribute
457
+ });
458
+ disabled = input(false, {
459
+ ...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
460
+ transform: booleanAttribute
461
+ });
462
+ role = input("toolbar", ...ngDevMode ? [{ debugName: "role" }] : /* istanbul ignore next */ []);
463
+ ariaLabel = input("", ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
464
+ ariaLabelledBy = input("", ...ngDevMode ? [{ debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []);
465
+ ariaDescribedBy = input("", ...ngDevMode ? [{ debugName: "ariaDescribedBy" }] : /* istanbul ignore next */ []);
466
+ floating = input(false, {
467
+ ...ngDevMode ? { debugName: "floating" } : /* istanbul ignore next */ {},
468
+ transform: booleanAttribute
469
+ });
470
+ visible = input(true, {
471
+ ...ngDevMode ? { debugName: "visible" } : /* istanbul ignore next */ {},
472
+ transform: booleanAttribute
473
+ });
474
+ position = input("bottom", ...ngDevMode ? [{ debugName: "position" }] : /* istanbul ignore next */ []);
475
+ floatingScope = input("viewport", ...ngDevMode ? [{ debugName: "floatingScope" }] : /* istanbul ignore next */ []);
476
+ restoreFocusTo = input(null, ...ngDevMode ? [{ debugName: "restoreFocusTo" }] : /* istanbul ignore next */ []);
477
+ element = inject(ElementRef);
478
+ portal = inject(ɵAerisAppendTo);
479
+ previouslyVisible = false;
480
+ focusWithin = false;
481
+ returnFocusTarget = null;
482
+ viewport = viewChild("viewport", ...ngDevMode ? [{ debugName: "viewport" }] : /* istanbul ignore next */ []);
483
+ content = viewChild("content", ...ngDevMode ? [{ debugName: "content" }] : /* istanbul ignore next */ []);
484
+ items = contentChildren(AerisToolbarItem, {
485
+ ...ngDevMode ? { debugName: "items" } : /* istanbul ignore next */ {},
486
+ descendants: true
487
+ });
488
+ active = signal(null, ...ngDevMode ? [{ debugName: "active" }] : /* istanbul ignore next */ []);
489
+ enabledItems = computed(() => this.items().filter((item) => item.toolbar === this && !item.effectiveDisabled()), ...ngDevMode ? [{ debugName: "enabledItems" }] : /* istanbul ignore next */ []);
490
+ tabStop = computed(() => {
491
+ const items = this.enabledItems();
492
+ const active = this.active();
493
+ return (active && items.includes(active) ? active : null) ?? items[0] ?? null;
494
+ }, ...ngDevMode ? [{ debugName: "tabStop" }] : /* istanbul ignore next */ []);
495
+ canScrollStart = signal(false, ...ngDevMode ? [{ debugName: "canScrollStart" }] : /* istanbul ignore next */ []);
496
+ canScrollEnd = signal(false, ...ngDevMode ? [{ debugName: "canScrollEnd" }] : /* istanbul ignore next */ []);
497
+ overflowFrame = aerisInternalCreateFrameScheduler(() => this.readOverflow());
498
+ dragging = signal(false, ...ngDevMode ? [{ debugName: "dragging" }] : /* istanbul ignore next */ []);
499
+ drag = null;
500
+ suppressClick = false;
501
+ constructor() {
502
+ this.portal.setTarget("self");
503
+ afterRenderEffect(() => this.portal.setTarget(this.floating() && this.floatingScope() === "viewport" ? "body" : "self"));
504
+ const destroyRef = inject(DestroyRef);
505
+ afterNextRender(() => {
506
+ const viewport = this.viewport()?.nativeElement;
507
+ const content = this.content()?.nativeElement;
508
+ if (!viewport || !content) return;
509
+ const observer = typeof ResizeObserver === "undefined" ? null : new ResizeObserver(() => this.scheduleOverflow());
510
+ observer?.observe(viewport);
511
+ observer?.observe(content);
512
+ this.readOverflow();
513
+ const cancelDragClick = (event) => {
514
+ if (!this.suppressClick || event.detail === 0) return;
515
+ this.suppressClick = false;
516
+ event.preventDefault();
517
+ event.stopImmediatePropagation();
518
+ };
519
+ viewport.addEventListener("click", cancelDragClick, true);
520
+ destroyRef.onDestroy(() => {
521
+ observer?.disconnect();
522
+ viewport.removeEventListener("click", cancelDragClick, true);
523
+ });
524
+ });
525
+ afterRenderEffect(() => {
526
+ this.orientation();
527
+ this.wrap();
528
+ this.items();
529
+ this.scheduleOverflow();
530
+ });
531
+ afterRenderEffect(() => {
532
+ const visible = this.visible();
533
+ const host = this.element.nativeElement;
534
+ const document = host.ownerDocument;
535
+ if (visible === this.previouslyVisible) return;
536
+ this.previouslyVisible = visible;
537
+ if (visible) {
538
+ const active = document.activeElement;
539
+ this.returnFocusTarget = active instanceof HTMLElement && !host.contains(active) ? active : null;
540
+ this.scheduleOverflow();
541
+ } else if (this.focusWithin && (host.contains(document.activeElement) || document.activeElement === document.body)) {
542
+ const target = this.restoreFocusTo() ?? this.returnFocusTarget;
543
+ if (target?.isConnected && !target.closest("[hidden], [inert]")) target.focus({ preventScroll: true });
544
+ this.focusWithin = false;
545
+ }
546
+ });
547
+ destroyRef.onDestroy(() => this.overflowFrame.cancel());
548
+ }
549
+ rememberFocus() {
550
+ this.focusWithin = true;
551
+ }
552
+ trackFocusExit(event) {
553
+ if (event.relatedTarget instanceof Node && !this.element.nativeElement.contains(event.relatedTarget)) this.focusWithin = false;
554
+ }
555
+ scheduleOverflow() {
556
+ this.overflowFrame.schedule();
557
+ }
558
+ startDrag(event) {
559
+ this.suppressClick = false;
560
+ const viewport = this.viewport()?.nativeElement;
561
+ if (!viewport || this.disabled() || this.drag || event.pointerType !== "mouse" || event.button !== 0) return;
562
+ const target = event.target;
563
+ if (target instanceof Element && target.closest(".aeris-toolbar__viewport") !== viewport) return;
564
+ if (target instanceof Element && target.closest("button:not([aerisToolbarItem]), a, input, textarea, select, [contenteditable]:not([contenteditable=\"false\"]), [role=\"slider\"], [role=\"spinbutton\"], [draggable=\"true\"]")) return;
565
+ const vertical = this.orientation() === "vertical";
566
+ if ((vertical ? viewport.scrollHeight - viewport.clientHeight : viewport.scrollWidth - viewport.clientWidth) <= 1) return;
567
+ this.drag = {
568
+ id: event.pointerId,
569
+ start: vertical ? event.clientY : event.clientX,
570
+ scroll: vertical ? viewport.scrollTop : viewport.scrollLeft,
571
+ vertical,
572
+ moved: false
573
+ };
574
+ event.preventDefault();
575
+ }
576
+ moveDrag(event) {
577
+ const drag = this.drag;
578
+ const viewport = this.viewport()?.nativeElement;
579
+ if (!drag || !viewport || drag.id !== event.pointerId) return;
580
+ const position = drag.vertical ? event.clientY : event.clientX;
581
+ const distance = position - drag.start;
582
+ if (!drag.moved && Math.abs(distance) < 6) return;
583
+ if (!drag.moved) {
584
+ drag.moved = true;
585
+ this.dragging.set(true);
586
+ viewport.setPointerCapture?.(event.pointerId);
587
+ }
588
+ event.preventDefault();
589
+ if (drag.vertical) viewport.scrollTop = drag.scroll - distance;
590
+ else viewport.scrollLeft = drag.scroll - distance;
591
+ drag.start = position;
592
+ drag.scroll = drag.vertical ? viewport.scrollTop : viewport.scrollLeft;
593
+ }
594
+ endDrag(event) {
595
+ if (this.drag?.id !== event.pointerId) return;
596
+ this.suppressClick = this.drag.moved;
597
+ this.drag = null;
598
+ this.dragging.set(false);
599
+ const viewport = this.viewport()?.nativeElement;
600
+ if (viewport?.hasPointerCapture?.(event.pointerId)) viewport.releasePointerCapture(event.pointerId);
601
+ }
602
+ leaveDrag(event) {
603
+ if (!this.drag?.moved) this.endDrag(event);
604
+ }
605
+ readOverflow() {
606
+ const viewport = this.viewport()?.nativeElement;
607
+ if (!viewport || this.wrap()) {
608
+ this.canScrollStart.set(false);
609
+ this.canScrollEnd.set(false);
610
+ return;
611
+ }
612
+ const vertical = this.orientation() === "vertical";
613
+ const offset = vertical ? viewport.scrollTop : Math.abs(viewport.scrollLeft);
614
+ const maximum = vertical ? viewport.scrollHeight - viewport.clientHeight : viewport.scrollWidth - viewport.clientWidth;
615
+ this.canScrollStart.set(offset > 1);
616
+ this.canScrollEnd.set(maximum - offset > 1);
617
+ }
618
+ focus(options) {
619
+ if (!this.visible() || this.disabled()) return;
620
+ this.tabStop()?.focus(options);
621
+ }
622
+ focusItem(item) {
623
+ this.active.set(item);
624
+ }
625
+ revealItem(item, direction = 1) {
626
+ const viewport = this.viewport()?.nativeElement;
627
+ if (!viewport || this.wrap()) return;
628
+ const vertical = this.orientation() === "vertical";
629
+ const bounds = item.element.nativeElement.getBoundingClientRect();
630
+ const frame = viewport.getBoundingClientRect();
631
+ const available = Math.max(0, vertical ? frame.height - bounds.height : frame.width - bounds.width);
632
+ const items = this.items().filter((candidate) => candidate.toolbar === this && !candidate.element.nativeElement.closest("[hidden], [inert], [aria-hidden=\"true\"]"));
633
+ const index = items.indexOf(item);
634
+ const before = index > 0;
635
+ const after = index >= 0 && index < items.length - 1;
636
+ const leading = before ? Math.min(direction < 0 ? 48 : 32, available / 2) : 0;
637
+ const trailing = after ? Math.min(direction < 0 ? 32 : 48, available - leading) : 0;
638
+ const rtl = !vertical && this.element.nativeElement.ownerDocument.defaultView?.getComputedStyle(this.element.nativeElement).direction === "rtl";
639
+ const start = (vertical ? frame.top : frame.left) + (rtl ? trailing : leading);
640
+ const end = (vertical ? frame.bottom : frame.right) - (rtl ? leading : trailing);
641
+ const itemStart = vertical ? bounds.top : bounds.left;
642
+ const itemEnd = vertical ? bounds.bottom : bounds.right;
643
+ const distance = itemStart < start ? itemStart - start : itemEnd > end ? itemEnd - end : 0;
644
+ if (vertical) viewport.scrollTop += distance;
645
+ else viewport.scrollLeft += distance;
646
+ }
647
+ navigate(event, item) {
648
+ if (this.role() !== "toolbar" || event.defaultPrevented || event.altKey || event.ctrlKey || event.metaKey || event.shiftKey || item.expanded()) return;
649
+ const vertical = this.orientation() === "vertical";
650
+ if (item.menu() && !vertical && event.key === "ArrowDown") {
651
+ event.preventDefault();
652
+ item.element.nativeElement.click();
653
+ return;
654
+ }
655
+ const rtl = this.element.nativeElement.ownerDocument.defaultView?.getComputedStyle(this.element.nativeElement).direction === "rtl";
656
+ let delta = 0;
657
+ if (event.key === (vertical ? "ArrowDown" : "ArrowRight")) delta = vertical || !rtl ? 1 : -1;
658
+ if (event.key === (vertical ? "ArrowUp" : "ArrowLeft")) delta = vertical || !rtl ? -1 : 1;
659
+ if (!delta && event.key !== "Home" && event.key !== "End") return;
660
+ const items = this.enabledItems().filter((candidate) => !candidate.element.nativeElement.closest("[hidden], [inert], [aria-hidden=\"true\"]"));
661
+ if (!items.length || item.effectiveDisabled()) return;
662
+ event.preventDefault();
663
+ const next = items[event.key === "Home" ? 0 : event.key === "End" ? items.length - 1 : (items.indexOf(item) + delta + items.length) % items.length];
664
+ if (!next) return;
665
+ this.active.set(next);
666
+ next.focus({ preventScroll: true });
667
+ this.revealItem(next, delta || (event.key === "Home" ? -1 : 1));
668
+ }
669
+ static ɵfac = i0.ɵɵngDeclareFactory({
670
+ minVersion: "12.0.0",
671
+ version: "22.2.3",
672
+ ngImport: i0,
673
+ type: AerisToolbar,
674
+ deps: [],
675
+ target: i0.ɵɵFactoryTarget.Component
676
+ });
677
+ static ɵcmp = i0.ɵɵngDeclareComponent({
678
+ minVersion: "17.2.0",
679
+ version: "22.2.3",
680
+ type: AerisToolbar,
681
+ isStandalone: true,
682
+ selector: "aeris-toolbar",
683
+ inputs: {
684
+ id: {
685
+ classPropertyName: "id",
686
+ publicName: "id",
687
+ isSignal: true,
688
+ isRequired: false,
689
+ transformFunction: null
690
+ },
691
+ variant: {
692
+ classPropertyName: "variant",
693
+ publicName: "variant",
694
+ isSignal: true,
695
+ isRequired: false,
696
+ transformFunction: null
697
+ },
698
+ attached: {
699
+ classPropertyName: "attached",
700
+ publicName: "attached",
701
+ isSignal: true,
702
+ isRequired: false,
703
+ transformFunction: null
704
+ },
705
+ size: {
706
+ classPropertyName: "size",
707
+ publicName: "size",
708
+ isSignal: true,
709
+ isRequired: false,
710
+ transformFunction: null
711
+ },
712
+ orientation: {
713
+ classPropertyName: "orientation",
714
+ publicName: "orientation",
715
+ isSignal: true,
716
+ isRequired: false,
717
+ transformFunction: null
718
+ },
719
+ align: {
720
+ classPropertyName: "align",
721
+ publicName: "align",
722
+ isSignal: true,
723
+ isRequired: false,
724
+ transformFunction: null
725
+ },
726
+ wrap: {
727
+ classPropertyName: "wrap",
728
+ publicName: "wrap",
729
+ isSignal: true,
730
+ isRequired: false,
731
+ transformFunction: null
732
+ },
733
+ fluid: {
734
+ classPropertyName: "fluid",
735
+ publicName: "fluid",
736
+ isSignal: true,
737
+ isRequired: false,
738
+ transformFunction: null
739
+ },
740
+ disabled: {
741
+ classPropertyName: "disabled",
742
+ publicName: "disabled",
743
+ isSignal: true,
744
+ isRequired: false,
745
+ transformFunction: null
746
+ },
747
+ role: {
748
+ classPropertyName: "role",
749
+ publicName: "role",
750
+ isSignal: true,
751
+ isRequired: false,
752
+ transformFunction: null
753
+ },
754
+ ariaLabel: {
755
+ classPropertyName: "ariaLabel",
756
+ publicName: "ariaLabel",
757
+ isSignal: true,
758
+ isRequired: false,
759
+ transformFunction: null
760
+ },
761
+ ariaLabelledBy: {
762
+ classPropertyName: "ariaLabelledBy",
763
+ publicName: "ariaLabelledBy",
764
+ isSignal: true,
765
+ isRequired: false,
766
+ transformFunction: null
767
+ },
768
+ ariaDescribedBy: {
769
+ classPropertyName: "ariaDescribedBy",
770
+ publicName: "ariaDescribedBy",
771
+ isSignal: true,
772
+ isRequired: false,
773
+ transformFunction: null
774
+ },
775
+ floating: {
776
+ classPropertyName: "floating",
777
+ publicName: "floating",
778
+ isSignal: true,
779
+ isRequired: false,
780
+ transformFunction: null
781
+ },
782
+ visible: {
783
+ classPropertyName: "visible",
784
+ publicName: "visible",
785
+ isSignal: true,
786
+ isRequired: false,
787
+ transformFunction: null
788
+ },
789
+ position: {
790
+ classPropertyName: "position",
791
+ publicName: "position",
792
+ isSignal: true,
793
+ isRequired: false,
794
+ transformFunction: null
795
+ },
796
+ floatingScope: {
797
+ classPropertyName: "floatingScope",
798
+ publicName: "floatingScope",
799
+ isSignal: true,
800
+ isRequired: false,
801
+ transformFunction: null
802
+ },
803
+ restoreFocusTo: {
804
+ classPropertyName: "restoreFocusTo",
805
+ publicName: "restoreFocusTo",
806
+ isSignal: true,
807
+ isRequired: false,
808
+ transformFunction: null
809
+ }
810
+ },
811
+ host: {
812
+ listeners: {
813
+ "focusin": "rememberFocus()",
814
+ "focusout": "trackFocusExit($event)"
815
+ },
816
+ properties: {
817
+ "attr.id": "id() || null",
818
+ "attr.role": "role()",
819
+ "attr.aria-label": "ariaLabel() || null",
820
+ "attr.aria-labelledby": "ariaLabelledBy() || null",
821
+ "attr.aria-describedby": "ariaDescribedBy() || null",
822
+ "attr.aria-orientation": "role() === \"toolbar\" ? orientation() : null",
823
+ "attr.aria-disabled": "disabled() || null",
824
+ "attr.inert": "disabled() || !visible() ? \"\" : null",
825
+ "attr.aria-hidden": "!visible() ? \"true\" : null",
826
+ "attr.data-visible": "visible()",
827
+ "attr.data-floating": "floating() || null",
828
+ "attr.data-floating-scope": "floatingScope()",
829
+ "attr.data-position": "position()",
830
+ "attr.data-variant": "variant()",
831
+ "attr.data-size": "size()",
832
+ "attr.data-orientation": "orientation()",
833
+ "attr.data-align": "align()",
834
+ "attr.data-wrap": "wrap()",
835
+ "attr.data-fluid": "fluid() || null",
836
+ "attr.data-disabled": "disabled() || null",
837
+ "attr.data-attached": "attached() || null",
838
+ "attr.data-scroll-start": "canScrollStart() || null",
839
+ "attr.data-scroll-end": "canScrollEnd() || null"
840
+ },
841
+ classAttribute: "aeris-toolbar"
842
+ },
843
+ queries: [{
844
+ propertyName: "items",
845
+ predicate: AerisToolbarItem,
846
+ descendants: true,
847
+ isSignal: true
848
+ }],
849
+ viewQueries: [{
850
+ propertyName: "viewport",
851
+ first: true,
852
+ predicate: ["viewport"],
853
+ descendants: true,
854
+ isSignal: true
855
+ }, {
856
+ propertyName: "content",
857
+ first: true,
858
+ predicate: ["content"],
859
+ descendants: true,
860
+ isSignal: true
861
+ }],
862
+ hostDirectives: [{ directive: i1.ɵAerisAppendTo }],
863
+ ngImport: i0,
864
+ template: `
865
+ <div
866
+ #viewport
867
+ class="aeris-toolbar__viewport"
868
+ [attr.data-dragging]="dragging() || null"
869
+ (scroll)="scheduleOverflow()"
870
+ (pointerdown)="startDrag($event)"
871
+ (pointermove)="moveDrag($event)"
872
+ (pointerup)="endDrag($event)"
873
+ (pointercancel)="endDrag($event)"
874
+ (pointerleave)="leaveDrag($event)"
875
+ (lostpointercapture)="endDrag($event)"
876
+ >
877
+ <div #content class="aeris-toolbar__content">
878
+ <ng-content />
879
+ </div>
91
880
  </div>
92
- `, isInline: true, styles: ["aeris-toolbar{display:block;min-inline-size:0}.aeris-toolbar{--_padding-block: var(--aeris-toolbar-padding-block, .75rem);--_padding-inline: var(--aeris-toolbar-padding-inline, .875rem);--_gap: var(--aeris-toolbar-gap, .75rem);--_section-gap: var(--aeris-toolbar-section-gap, .5rem);border:var(--aeris-toolbar-border-width, 1px) solid var(--aeris-toolbar-border, var(--aeris-border, #deddd7));border-radius:var(--aeris-toolbar-radius, var(--aeris-radius-lg, 1.125rem));background:var(--aeris-toolbar-background, var(--aeris-surface, #fff));color:var(--aeris-toolbar-color, var(--aeris-text, #222222));box-shadow:var(--aeris-toolbar-shadow, none)}.aeris-toolbar[data-fluid=true]{inline-size:100%}.aeris-toolbar[data-size=sm]{--_padding-block: var(--aeris-toolbar-padding-block-sm, .5625rem);--_padding-inline: var(--aeris-toolbar-padding-inline-sm, .625rem);--_gap: var(--aeris-toolbar-gap-sm, .5rem);--_section-gap: var(--aeris-toolbar-section-gap-sm, .375rem)}.aeris-toolbar[data-size=lg]{--_padding-block: var(--aeris-toolbar-padding-block-lg, 1rem);--_padding-inline: var(--aeris-toolbar-padding-inline-lg, 1.125rem);--_gap: var(--aeris-toolbar-gap-lg, 1rem);--_section-gap: var(--aeris-toolbar-section-gap-lg, .625rem)}.aeris-toolbar[data-variant=filled]{border-color:var(--aeris-toolbar-filled-border, transparent);background:var(--aeris-toolbar-filled-background, color-mix(in srgb, var(--aeris-surface-2, #f2f0ec) 76%, var(--aeris-surface, #fff)))}.aeris-toolbar[data-variant=elevated]{border-color:var(--aeris-toolbar-elevated-border, transparent);box-shadow:var(--aeris-toolbar-elevated-shadow, 0 .75rem 2rem color-mix(in srgb, var(--aeris-text, #222222) 10%, transparent))}.aeris-toolbar[data-variant=plain]{border-color:transparent;border-radius:0;background:transparent;box-shadow:none}.aeris-toolbar__content{display:flex;align-items:center;gap:var(--_gap);min-block-size:var(--aeris-toolbar-min-height, 3.25rem);min-inline-size:0;padding:var(--_padding-block) var(--_padding-inline)}.aeris-toolbar[data-wrap=true] .aeris-toolbar__content{flex-wrap:wrap}.aeris-toolbar[data-wrap=false] .aeris-toolbar__content{flex-wrap:nowrap;overflow-x:auto;scrollbar-color:var(--aeris-border-strong, #c7c9c0) transparent;scrollbar-width:thin}.aeris-toolbar[data-wrap=false] .aeris-toolbar__content::-webkit-scrollbar{width:.75rem;height:.75rem}.aeris-toolbar[data-wrap=false] .aeris-toolbar__content::-webkit-scrollbar-track,.aeris-toolbar[data-wrap=false] .aeris-toolbar__content::-webkit-scrollbar-corner{background:transparent}.aeris-toolbar[data-wrap=false] .aeris-toolbar__content::-webkit-scrollbar-thumb{border:3px solid transparent;border-radius:var(--aeris-radius-pill, 999px);background:var(--aeris-border-strong, #c7c9c0);background-clip:content-box}.aeris-toolbar[data-align=start] .aeris-toolbar__content{align-items:flex-start}.aeris-toolbar[data-align=end] .aeris-toolbar__content{align-items:flex-end}.aeris-toolbar[data-align=stretch] .aeris-toolbar__content{align-items:stretch}.aeris-toolbar__section,.aeris-toolbar__group{display:inline-flex;align-items:center;gap:var(--_section-gap);min-inline-size:0}.aeris-toolbar__section{flex-wrap:wrap}.aeris-toolbar[data-wrap=false] .aeris-toolbar__section{flex-wrap:nowrap}.aeris-toolbar__section--start{flex:1 1 0;justify-content:flex-start}.aeris-toolbar__section--center{flex:0 1 auto;justify-content:center}.aeris-toolbar__section--end{flex:1 1 0;justify-content:flex-end}.aeris-toolbar__group{flex:0 0 auto}.aeris-toolbar__spacer{flex:1 1 auto;min-inline-size:var(--aeris-toolbar-spacer-min-size, 1rem)}.aeris-toolbar[data-orientation=vertical]{inline-size:max-content;max-inline-size:100%}.aeris-toolbar[data-orientation=vertical] .aeris-toolbar__content,.aeris-toolbar[data-orientation=vertical] .aeris-toolbar__section,.aeris-toolbar[data-orientation=vertical] .aeris-toolbar__group{align-items:stretch;flex-direction:column}.aeris-toolbar[data-orientation=vertical] .aeris-toolbar__section{flex:0 0 auto;justify-content:flex-start}.aeris-toolbar[data-orientation=vertical] .aeris-toolbar__spacer{min-block-size:var(--aeris-toolbar-spacer-min-size, 1rem);min-inline-size:0}.aeris-toolbar[data-disabled=true]{opacity:var(--aeris-toolbar-disabled-opacity, .62)}@media(max-width:42rem){.aeris-toolbar[data-orientation=horizontal][data-wrap=true] .aeris-toolbar__section{flex:1 1 100%;justify-content:flex-start}.aeris-toolbar[data-orientation=horizontal][data-wrap=true] .aeris-toolbar__section--center{justify-content:center}.aeris-toolbar[data-orientation=horizontal][data-wrap=true] .aeris-toolbar__section--end{justify-content:flex-start}}\n"], encapsulation: i0.ViewEncapsulation.None });
93
- }
94
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisToolbar, decorators: [{
95
- type: Component,
96
- args: [{ selector: 'aeris-toolbar', template: `
97
- <div class="aeris-toolbar__content">
98
- <ng-content select="[aerisToolbarStart]" />
99
- <ng-content select="[aerisToolbarCenter]" />
100
- <ng-content select="[aerisToolbarEnd]" />
101
- <ng-content />
881
+ <span class="aeris-toolbar__fade aeris-toolbar__fade--start" aria-hidden="true"></span>
882
+ <span class="aeris-toolbar__fade aeris-toolbar__fade--end" aria-hidden="true"></span>
883
+ `,
884
+ isInline: true,
885
+ styles: [".aeris-toolbar{--_padding-block: var(--aeris-toolbar-padding-block, var(--aeris-overlay-padding, .375rem));--_padding-inline: var(--aeris-toolbar-padding-inline, var(--aeris-overlay-padding, .375rem));--_gap: var(--aeris-toolbar-gap, .625rem);--_section-gap: var(--aeris-toolbar-section-gap, .25rem);--_item-size: var(--aeris-toolbar-item-size, var(--aeris-control-height-sm, 2.25rem));--_item-min-size: max(var(--_item-size), var(--_touch-target, 0px), calc(1.25em + .75rem + 2px) );--_surface: var(--aeris-toolbar-background, var(--aeris-surface, #fff));--_shape-radius: var(--aeris-radius-control, .5rem);--_radius: var(--aeris-toolbar-radius, var(--_shape-radius));position:relative;display:inline-flex;box-sizing:border-box;min-inline-size:0;max-inline-size:100%;inline-size:fit-content;border:var(--aeris-toolbar-border-width, 1px) solid transparent;border-radius:var(--_radius);background:transparent;color:var(--aeris-toolbar-color, var(--aeris-text, #111));font-size:var(--aeris-toolbar-font-size, var(--aeris-body-font-size, .875rem));box-shadow:var(--aeris-toolbar-shadow, none)}.aeris-toolbar[data-fluid=true]{inline-size:100%}.aeris-toolbar[data-wrap=true]{--_shape-radius: calc( min( var(--aeris-toolbar-item-radius, var(--aeris-radius-control, .5rem)), var(--_item-min-size) / 2 ) + min(var(--_padding-block), var(--_padding-inline)) + var(--aeris-toolbar-border-width, 1px) )}.aeris-toolbar-container{position:relative;isolation:isolate;min-inline-size:0}.aeris-toolbar[data-visible=false]{display:none}.aeris-toolbar[data-floating]{--_radius: var(--aeris-toolbar-floating-radius, var(--_shape-radius));--_floating-offset: var(--aeris-toolbar-floating-offset, 1rem);--_floating-entry: .5rem;position:fixed;inset:auto;margin:0;left:calc(var(--_aeris-viewport-left, 0px) + var(--_aeris-viewport-width, 100vw) / 2);bottom:calc(var(--_aeris-viewport-bottom, 0px) + var(--_floating-offset) + env(safe-area-inset-bottom,0px));max-inline-size:max(0px,var(--_aeris-viewport-width, 100vw) - 2 * (var(--_floating-offset) + max(env(safe-area-inset-left,0px),env(safe-area-inset-right,0px))));max-block-size:max(0px,var(--_aeris-viewport-height, 100dvh) - 2 * var(--_floating-offset) - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));border-color:var(--aeris-toolbar-border, var(--aeris-border));background:var(--_surface);box-shadow:var(--aeris-toolbar-floating-shadow, var(--aeris-shadow-md));z-index:var(--aeris-toolbar-floating-z-index, 1000);transform:translate(-50%);opacity:1;translate:0;transition:opacity var(--aeris-motion-duration-normal, .18s) ease,translate var(--aeris-motion-duration-normal, .18s) var(--aeris-motion-ease-out, ease-out),display var(--aeris-motion-duration-normal, .18s) allow-discrete}.aeris-toolbar[data-floating][data-position=top]{--_floating-entry: -.5rem;top:calc(var(--_aeris-viewport-top, 0px) + var(--_floating-offset) + env(safe-area-inset-top,0px));bottom:auto}.aeris-toolbar[data-floating]>.aeris-toolbar__viewport{min-block-size:0;max-block-size:inherit}.aeris-toolbar[data-floating][data-floating-scope=container]{position:absolute;left:50%;bottom:var(--_floating-offset);max-inline-size:max(0px,100% - 2 * var(--_floating-offset));max-block-size:max(0px,100% - 2 * var(--_floating-offset));transition:opacity var(--aeris-motion-duration-normal, .18s) ease,translate var(--aeris-motion-duration-normal, .18s) var(--aeris-motion-ease-out, ease-out),visibility 0s}.aeris-toolbar[data-floating][data-floating-scope=container][data-position=top]{top:var(--_floating-offset);bottom:auto}.aeris-toolbar[data-floating][data-visible=false]{opacity:0;translate:0 var(--_floating-entry);pointer-events:none}.aeris-toolbar[data-floating][data-floating-scope=container][data-visible=false]{display:inline-flex;visibility:hidden;transition-delay:0s,0s,var(--aeris-motion-duration-normal, .18s)}@starting-style{.aeris-toolbar[data-floating]{opacity:0;translate:0 var(--_floating-entry)}}.aeris-toolbar[data-attached],.aeris-toolbar[data-variant=outlined],.aeris-toolbar[data-variant=filled],.aeris-toolbar[data-variant=elevated]{border-color:var(--aeris-toolbar-border, var(--aeris-border));background:var(--_surface)}.aeris-toolbar[data-variant=filled]{--_surface: var(--aeris-toolbar-filled-background, var(--aeris-surface-2, #f5f5f5))}.aeris-toolbar[data-variant=elevated]{box-shadow:var(--aeris-toolbar-elevated-shadow, var(--aeris-shadow-md))}.aeris-toolbar[data-size=sm]{--_item-size: var( --aeris-toolbar-item-size, calc(var(--aeris-control-height-sm, 2.25rem) - .25rem) );--_padding-block: var(--aeris-toolbar-padding-block-sm, .25rem);--_padding-inline: var(--aeris-toolbar-padding-inline-sm, .25rem);--_gap: var(--aeris-toolbar-gap-sm, .5rem);--_section-gap: var(--aeris-toolbar-section-gap-sm, .125rem)}.aeris-toolbar[data-size=lg]{--_item-size: var(--aeris-toolbar-item-size, var(--aeris-control-height, 2.625rem));--_padding-block: var(--aeris-toolbar-padding-block-lg, .5rem);--_padding-inline: var(--aeris-toolbar-padding-inline-lg, .5rem);--_gap: var(--aeris-toolbar-gap-lg, .75rem);--_section-gap: var(--aeris-toolbar-section-gap-lg, .375rem)}.aeris-toolbar__viewport{min-inline-size:0;max-inline-size:100%;flex:1 1 auto;overflow:auto;border-radius:inherit;overscroll-behavior-inline:contain;scrollbar-width:none;max-block-size:var(--aeris-toolbar-max-height, none)}.aeris-toolbar__viewport::-webkit-scrollbar{display:none}.aeris-toolbar__viewport[data-dragging],.aeris-toolbar__viewport[data-dragging] *{cursor:grabbing;-webkit-user-select:none;user-select:none}.aeris-toolbar__content{box-sizing:border-box;display:flex;align-items:center;inline-size:max-content;min-inline-size:100%;min-block-size:var(--aeris-toolbar-min-height, auto);gap:var(--_gap);padding:var(--_padding-block) var(--_padding-inline)}.aeris-toolbar[data-wrap=true] .aeris-toolbar__content{inline-size:100%;flex-wrap:wrap}.aeris-toolbar[data-align=start] .aeris-toolbar__content{align-items:flex-start}.aeris-toolbar[data-align=end] .aeris-toolbar__content{align-items:flex-end}.aeris-toolbar[data-align=stretch] .aeris-toolbar__content{align-items:stretch}.aeris-toolbar__section,.aeris-toolbar__group{display:inline-flex;align-items:center;gap:var(--_section-gap);min-inline-size:0;flex:0 0 auto}.aeris-toolbar[data-wrap=true] .aeris-toolbar__section{flex-wrap:wrap}.aeris-toolbar__section--start{flex:1 1 auto;justify-content:flex-start}.aeris-toolbar__section--center{justify-content:center}.aeris-toolbar__section--end{margin-inline-start:auto;justify-content:flex-end}.aeris-toolbar__spacer{flex:1 1 auto;min-inline-size:var(--aeris-toolbar-spacer-min-size, 1rem)}.aeris-toolbar__separator{display:block;flex:0 0 auto;inline-size:1px;block-size:calc(var(--_item-size) - .75rem);background:var(--aeris-toolbar-separator-color, var(--aeris-border))}.aeris-toolbar__item{appearance:none;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-block-size:var(--_item-min-size);min-inline-size:var(--_item-min-size);gap:var(--aeris-toolbar-item-gap, .5rem);margin:0;padding:.375rem var(--aeris-toolbar-item-padding, .625rem);border:1px solid transparent;border-radius:var(--aeris-toolbar-item-radius, var(--aeris-radius-control, .5rem));background:transparent;color:inherit;font:inherit;font-weight:500;line-height:1.25;white-space:nowrap;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;transition:background-color var(--aeris-motion-normal, .15s) ease,color var(--aeris-motion-normal, .15s) ease,box-shadow var(--aeris-motion-normal, .15s) ease}.aeris-toolbar__item[data-icon-only]{padding-inline:0;inline-size:var(--_item-size)}.aeris-toolbar__item :is(svg,[data-aeris-icon]){display:block;flex:0 0 auto;inline-size:var(--aeris-toolbar-icon-size, var(--aeris-icon-size, 1rem));block-size:var(--aeris-toolbar-icon-size, var(--aeris-icon-size, 1rem))}@media(hover:hover)and (pointer:fine){.aeris-toolbar__item:enabled:hover{background:var(--aeris-toolbar-item-hover-background, color-mix(in srgb, var(--aeris-text, #111) 7%, transparent))}}.aeris-toolbar__item:enabled:active,.aeris-toolbar__item[data-pressed],.aeris-toolbar__item[aria-expanded=true]{background:var(--aeris-toolbar-item-pressed-background, var(--aeris-surface-3, #e9e9e9));color:var(--aeris-toolbar-item-pressed-color, var(--aeris-text, #111));box-shadow:inset 0 0 0 1px var(--aeris-border)}.aeris-toolbar__item:focus-visible{outline:var(--aeris-focus-ring-width, 3px) solid var(--aeris-focus-ring-color);outline-offset:calc(-1 * var(--aeris-focus-ring-width, 3px))}.aeris-toolbar__item:disabled{opacity:.45;cursor:not-allowed}.aeris-toolbar[data-disabled=true]{opacity:var(--aeris-toolbar-disabled-opacity, .62)}.aeris-toolbar__group[data-attached]{gap:0;border:1px solid var(--aeris-toolbar-border, var(--aeris-border));border-radius:var(--aeris-radius-control, .5rem);overflow:hidden}.aeris-toolbar__group[data-attached]>.aeris-toolbar__item{border-radius:0;border:0}.aeris-toolbar__group[data-attached]>.aeris-toolbar__item+.aeris-toolbar__item{border-inline-start:1px solid var(--aeris-border)}.aeris-toolbar[data-orientation=vertical] .aeris-toolbar__content,.aeris-toolbar[data-orientation=vertical] .aeris-toolbar__section,.aeris-toolbar[data-orientation=vertical] .aeris-toolbar__group{flex-direction:column;align-items:stretch}.aeris-toolbar[data-orientation=vertical]{flex-shrink:0}.aeris-toolbar[data-orientation=vertical] .aeris-toolbar__item[data-icon-only]{align-self:center}.aeris-toolbar[data-orientation=vertical] .aeris-toolbar__content{inline-size:100%}.aeris-toolbar[data-orientation=vertical] .aeris-toolbar__section{flex:0 0 auto;margin-inline-start:0}.aeris-toolbar[data-orientation=vertical] .aeris-toolbar__separator{block-size:1px;inline-size:calc(var(--_item-size) - .75rem);align-self:center}.aeris-toolbar[data-orientation=vertical] .aeris-toolbar__spacer{min-inline-size:0;min-block-size:var(--aeris-toolbar-spacer-min-size, 1rem)}.aeris-toolbar[data-orientation=vertical] .aeris-toolbar__group[data-attached]>.aeris-toolbar__item+.aeris-toolbar__item{border-inline-start:0;border-block-start:1px solid var(--aeris-border)}.aeris-toolbar__fade{position:absolute;inset:0;pointer-events:none;opacity:0;border-radius:max(0px,var(--_radius) - var(--aeris-toolbar-border-width, 1px));background:linear-gradient(var(--_fade-direction),var(--_surface),color-mix(in srgb,var(--_surface) 80%,transparent) .5rem,transparent 1.75rem)}.aeris-toolbar__fade--start{--_fade-direction: to right}.aeris-toolbar__fade--end{--_fade-direction: to left}.aeris-toolbar:dir(rtl)>.aeris-toolbar__fade--start{--_fade-direction: to left}.aeris-toolbar:dir(rtl)>.aeris-toolbar__fade--end{--_fade-direction: to right}.aeris-toolbar[data-scroll-start]>.aeris-toolbar__fade--start,.aeris-toolbar[data-scroll-end]>.aeris-toolbar__fade--end{opacity:1}.aeris-toolbar[data-orientation=vertical]>.aeris-toolbar__fade--start{--_fade-direction: to bottom}.aeris-toolbar[data-orientation=vertical]>.aeris-toolbar__fade--end{--_fade-direction: to top}@media(pointer:coarse){.aeris-toolbar{--_touch-target: 2.75rem}}@media(prefers-reduced-motion:reduce){.aeris-toolbar__item,.aeris-toolbar[data-floating]{transition:none}}@media(max-width:40rem){.aeris-toolbar__label{position:absolute;inline-size:1px;block-size:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}}\n"],
886
+ encapsulation: i0.ViewEncapsulation.None
887
+ });
888
+ };
889
+ i0.ɵɵngDeclareClassMetadata({
890
+ minVersion: "12.0.0",
891
+ version: "22.2.3",
892
+ ngImport: i0,
893
+ type: AerisToolbar,
894
+ decorators: [{
895
+ type: Component,
896
+ args: [{
897
+ selector: "aeris-toolbar",
898
+ hostDirectives: [ɵAerisAppendTo],
899
+ template: `
900
+ <div
901
+ #viewport
902
+ class="aeris-toolbar__viewport"
903
+ [attr.data-dragging]="dragging() || null"
904
+ (scroll)="scheduleOverflow()"
905
+ (pointerdown)="startDrag($event)"
906
+ (pointermove)="moveDrag($event)"
907
+ (pointerup)="endDrag($event)"
908
+ (pointercancel)="endDrag($event)"
909
+ (pointerleave)="leaveDrag($event)"
910
+ (lostpointercapture)="endDrag($event)"
911
+ >
912
+ <div #content class="aeris-toolbar__content">
913
+ <ng-content />
914
+ </div>
102
915
  </div>
103
- `, encapsulation: ViewEncapsulation.None, host: {
104
- class: 'aeris-toolbar',
105
- '[attr.id]': 'id() || null',
106
- '[attr.role]': 'role()',
107
- '[attr.aria-label]': 'ariaLabel() || null',
108
- '[attr.aria-labelledby]': 'ariaLabelledBy() || null',
109
- '[attr.aria-describedby]': 'ariaDescribedBy() || null',
110
- '[attr.aria-orientation]': 'role() === "toolbar" ? orientation() : null',
111
- '[attr.aria-disabled]': 'disabled() || null',
112
- '[attr.inert]': 'disabled() ? "" : null',
113
- '[attr.data-variant]': 'variant()',
114
- '[attr.data-size]': 'size()',
115
- '[attr.data-orientation]': 'orientation()',
116
- '[attr.data-align]': 'align()',
117
- '[attr.data-wrap]': 'wrap()',
118
- '[attr.data-fluid]': 'fluid() || null',
119
- '[attr.data-disabled]': 'disabled() || null',
120
- }, styles: ["aeris-toolbar{display:block;min-inline-size:0}.aeris-toolbar{--_padding-block: var(--aeris-toolbar-padding-block, .75rem);--_padding-inline: var(--aeris-toolbar-padding-inline, .875rem);--_gap: var(--aeris-toolbar-gap, .75rem);--_section-gap: var(--aeris-toolbar-section-gap, .5rem);border:var(--aeris-toolbar-border-width, 1px) solid var(--aeris-toolbar-border, var(--aeris-border, #deddd7));border-radius:var(--aeris-toolbar-radius, var(--aeris-radius-lg, 1.125rem));background:var(--aeris-toolbar-background, var(--aeris-surface, #fff));color:var(--aeris-toolbar-color, var(--aeris-text, #222222));box-shadow:var(--aeris-toolbar-shadow, none)}.aeris-toolbar[data-fluid=true]{inline-size:100%}.aeris-toolbar[data-size=sm]{--_padding-block: var(--aeris-toolbar-padding-block-sm, .5625rem);--_padding-inline: var(--aeris-toolbar-padding-inline-sm, .625rem);--_gap: var(--aeris-toolbar-gap-sm, .5rem);--_section-gap: var(--aeris-toolbar-section-gap-sm, .375rem)}.aeris-toolbar[data-size=lg]{--_padding-block: var(--aeris-toolbar-padding-block-lg, 1rem);--_padding-inline: var(--aeris-toolbar-padding-inline-lg, 1.125rem);--_gap: var(--aeris-toolbar-gap-lg, 1rem);--_section-gap: var(--aeris-toolbar-section-gap-lg, .625rem)}.aeris-toolbar[data-variant=filled]{border-color:var(--aeris-toolbar-filled-border, transparent);background:var(--aeris-toolbar-filled-background, color-mix(in srgb, var(--aeris-surface-2, #f2f0ec) 76%, var(--aeris-surface, #fff)))}.aeris-toolbar[data-variant=elevated]{border-color:var(--aeris-toolbar-elevated-border, transparent);box-shadow:var(--aeris-toolbar-elevated-shadow, 0 .75rem 2rem color-mix(in srgb, var(--aeris-text, #222222) 10%, transparent))}.aeris-toolbar[data-variant=plain]{border-color:transparent;border-radius:0;background:transparent;box-shadow:none}.aeris-toolbar__content{display:flex;align-items:center;gap:var(--_gap);min-block-size:var(--aeris-toolbar-min-height, 3.25rem);min-inline-size:0;padding:var(--_padding-block) var(--_padding-inline)}.aeris-toolbar[data-wrap=true] .aeris-toolbar__content{flex-wrap:wrap}.aeris-toolbar[data-wrap=false] .aeris-toolbar__content{flex-wrap:nowrap;overflow-x:auto;scrollbar-color:var(--aeris-border-strong, #c7c9c0) transparent;scrollbar-width:thin}.aeris-toolbar[data-wrap=false] .aeris-toolbar__content::-webkit-scrollbar{width:.75rem;height:.75rem}.aeris-toolbar[data-wrap=false] .aeris-toolbar__content::-webkit-scrollbar-track,.aeris-toolbar[data-wrap=false] .aeris-toolbar__content::-webkit-scrollbar-corner{background:transparent}.aeris-toolbar[data-wrap=false] .aeris-toolbar__content::-webkit-scrollbar-thumb{border:3px solid transparent;border-radius:var(--aeris-radius-pill, 999px);background:var(--aeris-border-strong, #c7c9c0);background-clip:content-box}.aeris-toolbar[data-align=start] .aeris-toolbar__content{align-items:flex-start}.aeris-toolbar[data-align=end] .aeris-toolbar__content{align-items:flex-end}.aeris-toolbar[data-align=stretch] .aeris-toolbar__content{align-items:stretch}.aeris-toolbar__section,.aeris-toolbar__group{display:inline-flex;align-items:center;gap:var(--_section-gap);min-inline-size:0}.aeris-toolbar__section{flex-wrap:wrap}.aeris-toolbar[data-wrap=false] .aeris-toolbar__section{flex-wrap:nowrap}.aeris-toolbar__section--start{flex:1 1 0;justify-content:flex-start}.aeris-toolbar__section--center{flex:0 1 auto;justify-content:center}.aeris-toolbar__section--end{flex:1 1 0;justify-content:flex-end}.aeris-toolbar__group{flex:0 0 auto}.aeris-toolbar__spacer{flex:1 1 auto;min-inline-size:var(--aeris-toolbar-spacer-min-size, 1rem)}.aeris-toolbar[data-orientation=vertical]{inline-size:max-content;max-inline-size:100%}.aeris-toolbar[data-orientation=vertical] .aeris-toolbar__content,.aeris-toolbar[data-orientation=vertical] .aeris-toolbar__section,.aeris-toolbar[data-orientation=vertical] .aeris-toolbar__group{align-items:stretch;flex-direction:column}.aeris-toolbar[data-orientation=vertical] .aeris-toolbar__section{flex:0 0 auto;justify-content:flex-start}.aeris-toolbar[data-orientation=vertical] .aeris-toolbar__spacer{min-block-size:var(--aeris-toolbar-spacer-min-size, 1rem);min-inline-size:0}.aeris-toolbar[data-disabled=true]{opacity:var(--aeris-toolbar-disabled-opacity, .62)}@media(max-width:42rem){.aeris-toolbar[data-orientation=horizontal][data-wrap=true] .aeris-toolbar__section{flex:1 1 100%;justify-content:flex-start}.aeris-toolbar[data-orientation=horizontal][data-wrap=true] .aeris-toolbar__section--center{justify-content:center}.aeris-toolbar[data-orientation=horizontal][data-wrap=true] .aeris-toolbar__section--end{justify-content:flex-start}}\n"] }]
121
- }], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }], align: [{ type: i0.Input, args: [{ isSignal: true, alias: "align", required: false }] }], wrap: [{ type: i0.Input, args: [{ isSignal: true, alias: "wrap", required: false }] }], fluid: [{ type: i0.Input, args: [{ isSignal: true, alias: "fluid", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], role: [{ type: i0.Input, args: [{ isSignal: true, alias: "role", 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 }] }] } });
916
+ <span class="aeris-toolbar__fade aeris-toolbar__fade--start" aria-hidden="true"></span>
917
+ <span class="aeris-toolbar__fade aeris-toolbar__fade--end" aria-hidden="true"></span>
918
+ `,
919
+ encapsulation: ViewEncapsulation.None,
920
+ host: {
921
+ class: "aeris-toolbar",
922
+ "[attr.id]": "id() || null",
923
+ "[attr.role]": "role()",
924
+ "[attr.aria-label]": "ariaLabel() || null",
925
+ "[attr.aria-labelledby]": "ariaLabelledBy() || null",
926
+ "[attr.aria-describedby]": "ariaDescribedBy() || null",
927
+ "[attr.aria-orientation]": "role() === \"toolbar\" ? orientation() : null",
928
+ "[attr.aria-disabled]": "disabled() || null",
929
+ "[attr.inert]": "disabled() || !visible() ? \"\" : null",
930
+ "[attr.aria-hidden]": "!visible() ? \"true\" : null",
931
+ "[attr.data-visible]": "visible()",
932
+ "[attr.data-floating]": "floating() || null",
933
+ "[attr.data-floating-scope]": "floatingScope()",
934
+ "[attr.data-position]": "position()",
935
+ "[attr.data-variant]": "variant()",
936
+ "[attr.data-size]": "size()",
937
+ "[attr.data-orientation]": "orientation()",
938
+ "[attr.data-align]": "align()",
939
+ "[attr.data-wrap]": "wrap()",
940
+ "[attr.data-fluid]": "fluid() || null",
941
+ "[attr.data-disabled]": "disabled() || null",
942
+ "[attr.data-attached]": "attached() || null",
943
+ "[attr.data-scroll-start]": "canScrollStart() || null",
944
+ "[attr.data-scroll-end]": "canScrollEnd() || null",
945
+ "(focusin)": "rememberFocus()",
946
+ "(focusout)": "trackFocusExit($event)"
947
+ },
948
+ styles: [".aeris-toolbar{--_padding-block: var(--aeris-toolbar-padding-block, var(--aeris-overlay-padding, .375rem));--_padding-inline: var(--aeris-toolbar-padding-inline, var(--aeris-overlay-padding, .375rem));--_gap: var(--aeris-toolbar-gap, .625rem);--_section-gap: var(--aeris-toolbar-section-gap, .25rem);--_item-size: var(--aeris-toolbar-item-size, var(--aeris-control-height-sm, 2.25rem));--_item-min-size: max(var(--_item-size), var(--_touch-target, 0px), calc(1.25em + .75rem + 2px) );--_surface: var(--aeris-toolbar-background, var(--aeris-surface, #fff));--_shape-radius: var(--aeris-radius-control, .5rem);--_radius: var(--aeris-toolbar-radius, var(--_shape-radius));position:relative;display:inline-flex;box-sizing:border-box;min-inline-size:0;max-inline-size:100%;inline-size:fit-content;border:var(--aeris-toolbar-border-width, 1px) solid transparent;border-radius:var(--_radius);background:transparent;color:var(--aeris-toolbar-color, var(--aeris-text, #111));font-size:var(--aeris-toolbar-font-size, var(--aeris-body-font-size, .875rem));box-shadow:var(--aeris-toolbar-shadow, none)}.aeris-toolbar[data-fluid=true]{inline-size:100%}.aeris-toolbar[data-wrap=true]{--_shape-radius: calc( min( var(--aeris-toolbar-item-radius, var(--aeris-radius-control, .5rem)), var(--_item-min-size) / 2 ) + min(var(--_padding-block), var(--_padding-inline)) + var(--aeris-toolbar-border-width, 1px) )}.aeris-toolbar-container{position:relative;isolation:isolate;min-inline-size:0}.aeris-toolbar[data-visible=false]{display:none}.aeris-toolbar[data-floating]{--_radius: var(--aeris-toolbar-floating-radius, var(--_shape-radius));--_floating-offset: var(--aeris-toolbar-floating-offset, 1rem);--_floating-entry: .5rem;position:fixed;inset:auto;margin:0;left:calc(var(--_aeris-viewport-left, 0px) + var(--_aeris-viewport-width, 100vw) / 2);bottom:calc(var(--_aeris-viewport-bottom, 0px) + var(--_floating-offset) + env(safe-area-inset-bottom,0px));max-inline-size:max(0px,var(--_aeris-viewport-width, 100vw) - 2 * (var(--_floating-offset) + max(env(safe-area-inset-left,0px),env(safe-area-inset-right,0px))));max-block-size:max(0px,var(--_aeris-viewport-height, 100dvh) - 2 * var(--_floating-offset) - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));border-color:var(--aeris-toolbar-border, var(--aeris-border));background:var(--_surface);box-shadow:var(--aeris-toolbar-floating-shadow, var(--aeris-shadow-md));z-index:var(--aeris-toolbar-floating-z-index, 1000);transform:translate(-50%);opacity:1;translate:0;transition:opacity var(--aeris-motion-duration-normal, .18s) ease,translate var(--aeris-motion-duration-normal, .18s) var(--aeris-motion-ease-out, ease-out),display var(--aeris-motion-duration-normal, .18s) allow-discrete}.aeris-toolbar[data-floating][data-position=top]{--_floating-entry: -.5rem;top:calc(var(--_aeris-viewport-top, 0px) + var(--_floating-offset) + env(safe-area-inset-top,0px));bottom:auto}.aeris-toolbar[data-floating]>.aeris-toolbar__viewport{min-block-size:0;max-block-size:inherit}.aeris-toolbar[data-floating][data-floating-scope=container]{position:absolute;left:50%;bottom:var(--_floating-offset);max-inline-size:max(0px,100% - 2 * var(--_floating-offset));max-block-size:max(0px,100% - 2 * var(--_floating-offset));transition:opacity var(--aeris-motion-duration-normal, .18s) ease,translate var(--aeris-motion-duration-normal, .18s) var(--aeris-motion-ease-out, ease-out),visibility 0s}.aeris-toolbar[data-floating][data-floating-scope=container][data-position=top]{top:var(--_floating-offset);bottom:auto}.aeris-toolbar[data-floating][data-visible=false]{opacity:0;translate:0 var(--_floating-entry);pointer-events:none}.aeris-toolbar[data-floating][data-floating-scope=container][data-visible=false]{display:inline-flex;visibility:hidden;transition-delay:0s,0s,var(--aeris-motion-duration-normal, .18s)}@starting-style{.aeris-toolbar[data-floating]{opacity:0;translate:0 var(--_floating-entry)}}.aeris-toolbar[data-attached],.aeris-toolbar[data-variant=outlined],.aeris-toolbar[data-variant=filled],.aeris-toolbar[data-variant=elevated]{border-color:var(--aeris-toolbar-border, var(--aeris-border));background:var(--_surface)}.aeris-toolbar[data-variant=filled]{--_surface: var(--aeris-toolbar-filled-background, var(--aeris-surface-2, #f5f5f5))}.aeris-toolbar[data-variant=elevated]{box-shadow:var(--aeris-toolbar-elevated-shadow, var(--aeris-shadow-md))}.aeris-toolbar[data-size=sm]{--_item-size: var( --aeris-toolbar-item-size, calc(var(--aeris-control-height-sm, 2.25rem) - .25rem) );--_padding-block: var(--aeris-toolbar-padding-block-sm, .25rem);--_padding-inline: var(--aeris-toolbar-padding-inline-sm, .25rem);--_gap: var(--aeris-toolbar-gap-sm, .5rem);--_section-gap: var(--aeris-toolbar-section-gap-sm, .125rem)}.aeris-toolbar[data-size=lg]{--_item-size: var(--aeris-toolbar-item-size, var(--aeris-control-height, 2.625rem));--_padding-block: var(--aeris-toolbar-padding-block-lg, .5rem);--_padding-inline: var(--aeris-toolbar-padding-inline-lg, .5rem);--_gap: var(--aeris-toolbar-gap-lg, .75rem);--_section-gap: var(--aeris-toolbar-section-gap-lg, .375rem)}.aeris-toolbar__viewport{min-inline-size:0;max-inline-size:100%;flex:1 1 auto;overflow:auto;border-radius:inherit;overscroll-behavior-inline:contain;scrollbar-width:none;max-block-size:var(--aeris-toolbar-max-height, none)}.aeris-toolbar__viewport::-webkit-scrollbar{display:none}.aeris-toolbar__viewport[data-dragging],.aeris-toolbar__viewport[data-dragging] *{cursor:grabbing;-webkit-user-select:none;user-select:none}.aeris-toolbar__content{box-sizing:border-box;display:flex;align-items:center;inline-size:max-content;min-inline-size:100%;min-block-size:var(--aeris-toolbar-min-height, auto);gap:var(--_gap);padding:var(--_padding-block) var(--_padding-inline)}.aeris-toolbar[data-wrap=true] .aeris-toolbar__content{inline-size:100%;flex-wrap:wrap}.aeris-toolbar[data-align=start] .aeris-toolbar__content{align-items:flex-start}.aeris-toolbar[data-align=end] .aeris-toolbar__content{align-items:flex-end}.aeris-toolbar[data-align=stretch] .aeris-toolbar__content{align-items:stretch}.aeris-toolbar__section,.aeris-toolbar__group{display:inline-flex;align-items:center;gap:var(--_section-gap);min-inline-size:0;flex:0 0 auto}.aeris-toolbar[data-wrap=true] .aeris-toolbar__section{flex-wrap:wrap}.aeris-toolbar__section--start{flex:1 1 auto;justify-content:flex-start}.aeris-toolbar__section--center{justify-content:center}.aeris-toolbar__section--end{margin-inline-start:auto;justify-content:flex-end}.aeris-toolbar__spacer{flex:1 1 auto;min-inline-size:var(--aeris-toolbar-spacer-min-size, 1rem)}.aeris-toolbar__separator{display:block;flex:0 0 auto;inline-size:1px;block-size:calc(var(--_item-size) - .75rem);background:var(--aeris-toolbar-separator-color, var(--aeris-border))}.aeris-toolbar__item{appearance:none;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-block-size:var(--_item-min-size);min-inline-size:var(--_item-min-size);gap:var(--aeris-toolbar-item-gap, .5rem);margin:0;padding:.375rem var(--aeris-toolbar-item-padding, .625rem);border:1px solid transparent;border-radius:var(--aeris-toolbar-item-radius, var(--aeris-radius-control, .5rem));background:transparent;color:inherit;font:inherit;font-weight:500;line-height:1.25;white-space:nowrap;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;transition:background-color var(--aeris-motion-normal, .15s) ease,color var(--aeris-motion-normal, .15s) ease,box-shadow var(--aeris-motion-normal, .15s) ease}.aeris-toolbar__item[data-icon-only]{padding-inline:0;inline-size:var(--_item-size)}.aeris-toolbar__item :is(svg,[data-aeris-icon]){display:block;flex:0 0 auto;inline-size:var(--aeris-toolbar-icon-size, var(--aeris-icon-size, 1rem));block-size:var(--aeris-toolbar-icon-size, var(--aeris-icon-size, 1rem))}@media(hover:hover)and (pointer:fine){.aeris-toolbar__item:enabled:hover{background:var(--aeris-toolbar-item-hover-background, color-mix(in srgb, var(--aeris-text, #111) 7%, transparent))}}.aeris-toolbar__item:enabled:active,.aeris-toolbar__item[data-pressed],.aeris-toolbar__item[aria-expanded=true]{background:var(--aeris-toolbar-item-pressed-background, var(--aeris-surface-3, #e9e9e9));color:var(--aeris-toolbar-item-pressed-color, var(--aeris-text, #111));box-shadow:inset 0 0 0 1px var(--aeris-border)}.aeris-toolbar__item:focus-visible{outline:var(--aeris-focus-ring-width, 3px) solid var(--aeris-focus-ring-color);outline-offset:calc(-1 * var(--aeris-focus-ring-width, 3px))}.aeris-toolbar__item:disabled{opacity:.45;cursor:not-allowed}.aeris-toolbar[data-disabled=true]{opacity:var(--aeris-toolbar-disabled-opacity, .62)}.aeris-toolbar__group[data-attached]{gap:0;border:1px solid var(--aeris-toolbar-border, var(--aeris-border));border-radius:var(--aeris-radius-control, .5rem);overflow:hidden}.aeris-toolbar__group[data-attached]>.aeris-toolbar__item{border-radius:0;border:0}.aeris-toolbar__group[data-attached]>.aeris-toolbar__item+.aeris-toolbar__item{border-inline-start:1px solid var(--aeris-border)}.aeris-toolbar[data-orientation=vertical] .aeris-toolbar__content,.aeris-toolbar[data-orientation=vertical] .aeris-toolbar__section,.aeris-toolbar[data-orientation=vertical] .aeris-toolbar__group{flex-direction:column;align-items:stretch}.aeris-toolbar[data-orientation=vertical]{flex-shrink:0}.aeris-toolbar[data-orientation=vertical] .aeris-toolbar__item[data-icon-only]{align-self:center}.aeris-toolbar[data-orientation=vertical] .aeris-toolbar__content{inline-size:100%}.aeris-toolbar[data-orientation=vertical] .aeris-toolbar__section{flex:0 0 auto;margin-inline-start:0}.aeris-toolbar[data-orientation=vertical] .aeris-toolbar__separator{block-size:1px;inline-size:calc(var(--_item-size) - .75rem);align-self:center}.aeris-toolbar[data-orientation=vertical] .aeris-toolbar__spacer{min-inline-size:0;min-block-size:var(--aeris-toolbar-spacer-min-size, 1rem)}.aeris-toolbar[data-orientation=vertical] .aeris-toolbar__group[data-attached]>.aeris-toolbar__item+.aeris-toolbar__item{border-inline-start:0;border-block-start:1px solid var(--aeris-border)}.aeris-toolbar__fade{position:absolute;inset:0;pointer-events:none;opacity:0;border-radius:max(0px,var(--_radius) - var(--aeris-toolbar-border-width, 1px));background:linear-gradient(var(--_fade-direction),var(--_surface),color-mix(in srgb,var(--_surface) 80%,transparent) .5rem,transparent 1.75rem)}.aeris-toolbar__fade--start{--_fade-direction: to right}.aeris-toolbar__fade--end{--_fade-direction: to left}.aeris-toolbar:dir(rtl)>.aeris-toolbar__fade--start{--_fade-direction: to left}.aeris-toolbar:dir(rtl)>.aeris-toolbar__fade--end{--_fade-direction: to right}.aeris-toolbar[data-scroll-start]>.aeris-toolbar__fade--start,.aeris-toolbar[data-scroll-end]>.aeris-toolbar__fade--end{opacity:1}.aeris-toolbar[data-orientation=vertical]>.aeris-toolbar__fade--start{--_fade-direction: to bottom}.aeris-toolbar[data-orientation=vertical]>.aeris-toolbar__fade--end{--_fade-direction: to top}@media(pointer:coarse){.aeris-toolbar{--_touch-target: 2.75rem}}@media(prefers-reduced-motion:reduce){.aeris-toolbar__item,.aeris-toolbar[data-floating]{transition:none}}@media(max-width:40rem){.aeris-toolbar__label{position:absolute;inline-size:1px;block-size:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}}\n"]
949
+ }]
950
+ }],
951
+ ctorParameters: () => [],
952
+ propDecorators: {
953
+ id: [{
954
+ type: i0.Input,
955
+ args: [{
956
+ isSignal: true,
957
+ alias: "id",
958
+ required: false
959
+ }]
960
+ }],
961
+ variant: [{
962
+ type: i0.Input,
963
+ args: [{
964
+ isSignal: true,
965
+ alias: "variant",
966
+ required: false
967
+ }]
968
+ }],
969
+ attached: [{
970
+ type: i0.Input,
971
+ args: [{
972
+ isSignal: true,
973
+ alias: "attached",
974
+ required: false
975
+ }]
976
+ }],
977
+ size: [{
978
+ type: i0.Input,
979
+ args: [{
980
+ isSignal: true,
981
+ alias: "size",
982
+ required: false
983
+ }]
984
+ }],
985
+ orientation: [{
986
+ type: i0.Input,
987
+ args: [{
988
+ isSignal: true,
989
+ alias: "orientation",
990
+ required: false
991
+ }]
992
+ }],
993
+ align: [{
994
+ type: i0.Input,
995
+ args: [{
996
+ isSignal: true,
997
+ alias: "align",
998
+ required: false
999
+ }]
1000
+ }],
1001
+ wrap: [{
1002
+ type: i0.Input,
1003
+ args: [{
1004
+ isSignal: true,
1005
+ alias: "wrap",
1006
+ required: false
1007
+ }]
1008
+ }],
1009
+ fluid: [{
1010
+ type: i0.Input,
1011
+ args: [{
1012
+ isSignal: true,
1013
+ alias: "fluid",
1014
+ required: false
1015
+ }]
1016
+ }],
1017
+ disabled: [{
1018
+ type: i0.Input,
1019
+ args: [{
1020
+ isSignal: true,
1021
+ alias: "disabled",
1022
+ required: false
1023
+ }]
1024
+ }],
1025
+ role: [{
1026
+ type: i0.Input,
1027
+ args: [{
1028
+ isSignal: true,
1029
+ alias: "role",
1030
+ required: false
1031
+ }]
1032
+ }],
1033
+ ariaLabel: [{
1034
+ type: i0.Input,
1035
+ args: [{
1036
+ isSignal: true,
1037
+ alias: "ariaLabel",
1038
+ required: false
1039
+ }]
1040
+ }],
1041
+ ariaLabelledBy: [{
1042
+ type: i0.Input,
1043
+ args: [{
1044
+ isSignal: true,
1045
+ alias: "ariaLabelledBy",
1046
+ required: false
1047
+ }]
1048
+ }],
1049
+ ariaDescribedBy: [{
1050
+ type: i0.Input,
1051
+ args: [{
1052
+ isSignal: true,
1053
+ alias: "ariaDescribedBy",
1054
+ required: false
1055
+ }]
1056
+ }],
1057
+ floating: [{
1058
+ type: i0.Input,
1059
+ args: [{
1060
+ isSignal: true,
1061
+ alias: "floating",
1062
+ required: false
1063
+ }]
1064
+ }],
1065
+ visible: [{
1066
+ type: i0.Input,
1067
+ args: [{
1068
+ isSignal: true,
1069
+ alias: "visible",
1070
+ required: false
1071
+ }]
1072
+ }],
1073
+ position: [{
1074
+ type: i0.Input,
1075
+ args: [{
1076
+ isSignal: true,
1077
+ alias: "position",
1078
+ required: false
1079
+ }]
1080
+ }],
1081
+ floatingScope: [{
1082
+ type: i0.Input,
1083
+ args: [{
1084
+ isSignal: true,
1085
+ alias: "floatingScope",
1086
+ required: false
1087
+ }]
1088
+ }],
1089
+ restoreFocusTo: [{
1090
+ type: i0.Input,
1091
+ args: [{
1092
+ isSignal: true,
1093
+ alias: "restoreFocusTo",
1094
+ required: false
1095
+ }]
1096
+ }],
1097
+ viewport: [{
1098
+ type: i0.ViewChild,
1099
+ args: ["viewport", { isSignal: true }]
1100
+ }],
1101
+ content: [{
1102
+ type: i0.ViewChild,
1103
+ args: ["content", { isSignal: true }]
1104
+ }],
1105
+ items: [{
1106
+ type: i0.ContentChildren,
1107
+ args: [i0.forwardRef(() => AerisToolbarItem), {
1108
+ descendants: true,
1109
+ isSignal: true
1110
+ }]
1111
+ }]
1112
+ }
1113
+ });
1114
+ var AerisToolbarItem = class AerisToolbarItem {
1115
+ toolbar = inject(AerisToolbar);
1116
+ element = inject(ElementRef);
1117
+ parentGroup = inject(AerisToolbarGroup, { optional: true });
1118
+ group = this.parentGroup?.toolbar === this.toolbar ? this.parentGroup : null;
1119
+ disabled = input(false, {
1120
+ ...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
1121
+ transform: booleanAttribute
1122
+ });
1123
+ iconOnly = input(false, {
1124
+ ...ngDevMode ? { debugName: "iconOnly" } : /* istanbul ignore next */ {},
1125
+ transform: booleanAttribute
1126
+ });
1127
+ pressed = model(null, ...ngDevMode ? [{ debugName: "pressed" }] : /* istanbul ignore next */ []);
1128
+ value = input(null, ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
1129
+ menu = input(false, {
1130
+ ...ngDevMode ? { debugName: "menu" } : /* istanbul ignore next */ {},
1131
+ transform: booleanAttribute
1132
+ });
1133
+ expanded = input(false, {
1134
+ ...ngDevMode ? { debugName: "expanded" } : /* istanbul ignore next */ {},
1135
+ transform: booleanAttribute
1136
+ });
1137
+ ariaControls = input("", ...ngDevMode ? [{ debugName: "ariaControls" }] : /* istanbul ignore next */ []);
1138
+ effectiveDisabled = computed(() => this.disabled() || this.toolbar.disabled() || (this.group?.disabled() ?? false), ...ngDevMode ? [{ debugName: "effectiveDisabled" }] : /* istanbul ignore next */ []);
1139
+ toggleable = computed(() => (this.group?.selectionMode() ?? "none") !== "none" || this.pressed() !== null, ...ngDevMode ? [{ debugName: "toggleable" }] : /* istanbul ignore next */ []);
1140
+ selected = computed(() => this.group && this.group.selectionMode() !== "none" ? this.group.isPressed(this.value()) : this.pressed() === true, ...ngDevMode ? [{ debugName: "selected" }] : /* istanbul ignore next */ []);
1141
+ activate(event) {
1142
+ if (this.effectiveDisabled()) {
1143
+ event.preventDefault();
1144
+ event.stopImmediatePropagation();
1145
+ return;
1146
+ }
1147
+ if (event.detail > 0) this.focus({ preventScroll: true });
1148
+ this.toolbar.revealItem(this);
1149
+ if (this.group && this.group.selectionMode() !== "none") this.group.activate(this.value());
1150
+ else if (this.pressed() !== null) this.pressed.set(!this.pressed());
1151
+ }
1152
+ focus(options) {
1153
+ this.element.nativeElement.focus(options);
1154
+ }
1155
+ static ɵfac = i0.ɵɵngDeclareFactory({
1156
+ minVersion: "12.0.0",
1157
+ version: "22.2.3",
1158
+ ngImport: i0,
1159
+ type: AerisToolbarItem,
1160
+ deps: [],
1161
+ target: i0.ɵɵFactoryTarget.Directive
1162
+ });
1163
+ static ɵdir = i0.ɵɵngDeclareDirective({
1164
+ minVersion: "17.1.0",
1165
+ version: "22.2.3",
1166
+ type: AerisToolbarItem,
1167
+ isStandalone: true,
1168
+ selector: "button[aerisToolbarItem]",
1169
+ inputs: {
1170
+ disabled: {
1171
+ classPropertyName: "disabled",
1172
+ publicName: "disabled",
1173
+ isSignal: true,
1174
+ isRequired: false,
1175
+ transformFunction: null
1176
+ },
1177
+ iconOnly: {
1178
+ classPropertyName: "iconOnly",
1179
+ publicName: "iconOnly",
1180
+ isSignal: true,
1181
+ isRequired: false,
1182
+ transformFunction: null
1183
+ },
1184
+ pressed: {
1185
+ classPropertyName: "pressed",
1186
+ publicName: "pressed",
1187
+ isSignal: true,
1188
+ isRequired: false,
1189
+ transformFunction: null
1190
+ },
1191
+ value: {
1192
+ classPropertyName: "value",
1193
+ publicName: "value",
1194
+ isSignal: true,
1195
+ isRequired: false,
1196
+ transformFunction: null
1197
+ },
1198
+ menu: {
1199
+ classPropertyName: "menu",
1200
+ publicName: "menu",
1201
+ isSignal: true,
1202
+ isRequired: false,
1203
+ transformFunction: null
1204
+ },
1205
+ expanded: {
1206
+ classPropertyName: "expanded",
1207
+ publicName: "expanded",
1208
+ isSignal: true,
1209
+ isRequired: false,
1210
+ transformFunction: null
1211
+ },
1212
+ ariaControls: {
1213
+ classPropertyName: "ariaControls",
1214
+ publicName: "ariaControls",
1215
+ isSignal: true,
1216
+ isRequired: false,
1217
+ transformFunction: null
1218
+ }
1219
+ },
1220
+ outputs: { pressed: "pressedChange" },
1221
+ host: {
1222
+ attributes: { "type": "button" },
1223
+ listeners: {
1224
+ "click": "activate($event)",
1225
+ "keydown": "toolbar.navigate($event, this)",
1226
+ "focus": "toolbar.focusItem(this)"
1227
+ },
1228
+ properties: {
1229
+ "disabled": "effectiveDisabled()",
1230
+ "attr.tabindex": "toolbar.role() === \"toolbar\" ? toolbar.tabStop() === this ? 0 : -1 : null",
1231
+ "attr.aria-pressed": "toggleable() ? selected() : null",
1232
+ "attr.aria-haspopup": "menu() ? \"menu\" : null",
1233
+ "attr.aria-expanded": "menu() ? expanded() : null",
1234
+ "attr.aria-controls": "ariaControls() || null",
1235
+ "attr.data-pressed": "selected() || null",
1236
+ "attr.data-icon-only": "iconOnly() || null"
1237
+ },
1238
+ classAttribute: "aeris-toolbar__item"
1239
+ },
1240
+ ngImport: i0
1241
+ });
1242
+ };
1243
+ i0.ɵɵngDeclareClassMetadata({
1244
+ minVersion: "12.0.0",
1245
+ version: "22.2.3",
1246
+ ngImport: i0,
1247
+ type: AerisToolbarItem,
1248
+ decorators: [{
1249
+ type: Directive,
1250
+ args: [{
1251
+ selector: "button[aerisToolbarItem]",
1252
+ host: {
1253
+ class: "aeris-toolbar__item",
1254
+ type: "button",
1255
+ "[disabled]": "effectiveDisabled()",
1256
+ "[attr.tabindex]": "toolbar.role() === \"toolbar\" ? toolbar.tabStop() === this ? 0 : -1 : null",
1257
+ "[attr.aria-pressed]": "toggleable() ? selected() : null",
1258
+ "[attr.aria-haspopup]": "menu() ? \"menu\" : null",
1259
+ "[attr.aria-expanded]": "menu() ? expanded() : null",
1260
+ "[attr.aria-controls]": "ariaControls() || null",
1261
+ "[attr.data-pressed]": "selected() || null",
1262
+ "[attr.data-icon-only]": "iconOnly() || null",
1263
+ "(click)": "activate($event)",
1264
+ "(keydown)": "toolbar.navigate($event, this)",
1265
+ "(focus)": "toolbar.focusItem(this)"
1266
+ }
1267
+ }]
1268
+ }],
1269
+ propDecorators: {
1270
+ disabled: [{
1271
+ type: i0.Input,
1272
+ args: [{
1273
+ isSignal: true,
1274
+ alias: "disabled",
1275
+ required: false
1276
+ }]
1277
+ }],
1278
+ iconOnly: [{
1279
+ type: i0.Input,
1280
+ args: [{
1281
+ isSignal: true,
1282
+ alias: "iconOnly",
1283
+ required: false
1284
+ }]
1285
+ }],
1286
+ pressed: [{
1287
+ type: i0.Input,
1288
+ args: [{
1289
+ isSignal: true,
1290
+ alias: "pressed",
1291
+ required: false
1292
+ }]
1293
+ }, {
1294
+ type: i0.Output,
1295
+ args: ["pressedChange"]
1296
+ }],
1297
+ value: [{
1298
+ type: i0.Input,
1299
+ args: [{
1300
+ isSignal: true,
1301
+ alias: "value",
1302
+ required: false
1303
+ }]
1304
+ }],
1305
+ menu: [{
1306
+ type: i0.Input,
1307
+ args: [{
1308
+ isSignal: true,
1309
+ alias: "menu",
1310
+ required: false
1311
+ }]
1312
+ }],
1313
+ expanded: [{
1314
+ type: i0.Input,
1315
+ args: [{
1316
+ isSignal: true,
1317
+ alias: "expanded",
1318
+ required: false
1319
+ }]
1320
+ }],
1321
+ ariaControls: [{
1322
+ type: i0.Input,
1323
+ args: [{
1324
+ isSignal: true,
1325
+ alias: "ariaControls",
1326
+ required: false
1327
+ }]
1328
+ }]
1329
+ }
1330
+ });
122
1331
  const AerisToolbarModule = [
123
- AerisToolbar,
124
- AerisToolbarStart,
125
- AerisToolbarCenter,
126
- AerisToolbarEnd,
127
- AerisToolbarGroup,
128
- AerisToolbarSpacer,
1332
+ AerisToolbar,
1333
+ AerisToolbarContainer,
1334
+ AerisToolbarLabel,
1335
+ AerisToolbarStart,
1336
+ AerisToolbarCenter,
1337
+ AerisToolbarEnd,
1338
+ AerisToolbarGroup,
1339
+ AerisToolbarSpacer,
1340
+ AerisToolbarSeparator,
1341
+ AerisToolbarItem
129
1342
  ];
1343
+ export { AerisToolbar, AerisToolbarCenter, AerisToolbarContainer, AerisToolbarEnd, AerisToolbarGroup, AerisToolbarItem, AerisToolbarLabel, AerisToolbarModule, AerisToolbarSeparator, AerisToolbarSpacer, AerisToolbarStart };
130
1344
 
131
- /**
132
- * Generated bundle index. Do not edit.
133
- */
134
-
135
- export { AerisToolbar, AerisToolbarCenter, AerisToolbarEnd, AerisToolbarGroup, AerisToolbarModule, AerisToolbarSpacer, AerisToolbarStart };
136
- //# sourceMappingURL=aeris-ui-core-toolbar.mjs.map
1345
+ //# sourceMappingURL=aeris-ui-core-toolbar.mjs.map