@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.
- package/README.md +232 -191
- package/THIRD_PARTY_LICENSES.md +48 -0
- package/fesm2022/aeris-ui-core-accordion.mjs +666 -273
- package/fesm2022/aeris-ui-core-accordion.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-animate-on-scroll.mjs +284 -103
- package/fesm2022/aeris-ui-core-animate-on-scroll.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-auto-complete.mjs +1301 -450
- package/fesm2022/aeris-ui-core-auto-complete.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-auto-focus.mjs +111 -61
- package/fesm2022/aeris-ui-core-auto-focus.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-avatar.mjs +383 -101
- package/fesm2022/aeris-ui-core-avatar.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-badge.mjs +562 -115
- package/fesm2022/aeris-ui-core-badge.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-block-ui.mjs +221 -101
- package/fesm2022/aeris-ui-core-block-ui.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-breadcrumb.mjs +609 -199
- package/fesm2022/aeris-ui-core-breadcrumb.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-button-forms.mjs +78 -0
- package/fesm2022/aeris-ui-core-button-forms.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-button-group.mjs +554 -36
- package/fesm2022/aeris-ui-core-button-group.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-button.mjs +911 -137
- package/fesm2022/aeris-ui-core-button.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-card.mjs +371 -101
- package/fesm2022/aeris-ui-core-card.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-carousel.mjs +835 -369
- package/fesm2022/aeris-ui-core-carousel.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-cascade-select.mjs +1294 -525
- package/fesm2022/aeris-ui-core-cascade-select.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-chart.mjs +594 -262
- package/fesm2022/aeris-ui-core-chart.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-checkbox.mjs +619 -150
- package/fesm2022/aeris-ui-core-checkbox.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-chip.mjs +1109 -121
- package/fesm2022/aeris-ui-core-chip.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-class-names.mjs +87 -65
- package/fesm2022/aeris-ui-core-class-names.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-code-block.mjs +687 -0
- package/fesm2022/aeris-ui-core-code-block.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-color-picker.mjs +2436 -1076
- package/fesm2022/aeris-ui-core-color-picker.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-command-palette.mjs +996 -0
- package/fesm2022/aeris-ui-core-command-palette.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-compare.mjs +870 -338
- package/fesm2022/aeris-ui-core-compare.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-confirm-dialog.mjs +1454 -575
- package/fesm2022/aeris-ui-core-confirm-dialog.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-confirm-popup.mjs +1499 -760
- package/fesm2022/aeris-ui-core-confirm-popup.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-context-menu.mjs +975 -449
- package/fesm2022/aeris-ui-core-context-menu.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-date-picker-aeris-date-picker-input-jAhzMzLQ.mjs +946 -0
- package/fesm2022/aeris-ui-core-date-picker-aeris-date-picker-input-jAhzMzLQ.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-date-picker.mjs +2538 -1183
- package/fesm2022/aeris-ui-core-date-picker.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-dialog.mjs +1187 -368
- package/fesm2022/aeris-ui-core-dialog.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-divider.mjs +204 -43
- package/fesm2022/aeris-ui-core-divider.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-drawer.mjs +1712 -345
- package/fesm2022/aeris-ui-core-drawer.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-dynamic-dialog.mjs +418 -254
- package/fesm2022/aeris-ui-core-dynamic-dialog.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-editor.mjs +1808 -783
- package/fesm2022/aeris-ui-core-editor.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-file-upload.mjs +1529 -536
- package/fesm2022/aeris-ui-core-file-upload.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-filter-service.mjs +258 -301
- package/fesm2022/aeris-ui-core-filter-service.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-fluid.mjs +68 -21
- package/fesm2022/aeris-ui-core-fluid.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-focus-trap.mjs +206 -182
- package/fesm2022/aeris-ui-core-focus-trap.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-form-field.mjs +688 -0
- package/fesm2022/aeris-ui-core-form-field.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-galleria.mjs +2821 -1143
- package/fesm2022/aeris-ui-core-galleria.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-glass.mjs +110 -33
- package/fesm2022/aeris-ui-core-glass.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-icon-field.mjs +426 -98
- package/fesm2022/aeris-ui-core-icon-field.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-inplace.mjs +496 -132
- package/fesm2022/aeris-ui-core-inplace.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-input-group.mjs +413 -107
- package/fesm2022/aeris-ui-core-input-group.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-input-mask.mjs +713 -257
- package/fesm2022/aeris-ui-core-input-mask.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-input-number.mjs +1095 -297
- package/fesm2022/aeris-ui-core-input-number.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-input-otp.mjs +678 -264
- package/fesm2022/aeris-ui-core-input-otp.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-input-text.mjs +703 -160
- package/fesm2022/aeris-ui-core-input-text.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-kbd.mjs +243 -0
- package/fesm2022/aeris-ui-core-kbd.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-key-filter.mjs +263 -201
- package/fesm2022/aeris-ui-core-key-filter.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-listbox.mjs +789 -0
- package/fesm2022/aeris-ui-core-listbox.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-mega-menu.mjs +662 -388
- package/fesm2022/aeris-ui-core-mega-menu.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-menu.mjs +1111 -478
- package/fesm2022/aeris-ui-core-menu.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-menubar.mjs +1081 -411
- package/fesm2022/aeris-ui-core-menubar.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-message.mjs +513 -147
- package/fesm2022/aeris-ui-core-message.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-meter-group.mjs +641 -230
- package/fesm2022/aeris-ui-core-meter-group.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-multi-select.mjs +1832 -577
- package/fesm2022/aeris-ui-core-multi-select.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-navbar.mjs +1407 -0
- package/fesm2022/aeris-ui-core-navbar.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-order-list.mjs +748 -220
- package/fesm2022/aeris-ui-core-order-list.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-organization-chart.mjs +521 -201
- package/fesm2022/aeris-ui-core-organization-chart.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-paginator.mjs +671 -127
- package/fesm2022/aeris-ui-core-paginator.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-panel.mjs +602 -210
- package/fesm2022/aeris-ui-core-panel.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-password.mjs +1046 -269
- package/fesm2022/aeris-ui-core-password.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-pick-list.mjs +1796 -703
- package/fesm2022/aeris-ui-core-pick-list.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-popover.mjs +1354 -385
- package/fesm2022/aeris-ui-core-popover.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-progress-bar.mjs +609 -182
- package/fesm2022/aeris-ui-core-progress-bar.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-progress-spinner.mjs +428 -133
- package/fesm2022/aeris-ui-core-progress-spinner.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-radio-button.mjs +502 -132
- package/fesm2022/aeris-ui-core-radio-button.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-rating.mjs +506 -231
- package/fesm2022/aeris-ui-core-rating.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-scroll-panel.mjs +457 -154
- package/fesm2022/aeris-ui-core-scroll-panel.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-scroll-top.mjs +279 -69
- package/fesm2022/aeris-ui-core-scroll-top.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-select-native.mjs +145 -0
- package/fesm2022/aeris-ui-core-select-native.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-select.mjs +1984 -668
- package/fesm2022/aeris-ui-core-select.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-sidebar.mjs +1293 -0
- package/fesm2022/aeris-ui-core-sidebar.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-skeleton.mjs +149 -45
- package/fesm2022/aeris-ui-core-skeleton.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-slider.mjs +884 -430
- package/fesm2022/aeris-ui-core-slider.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-speed-dial.mjs +882 -337
- package/fesm2022/aeris-ui-core-speed-dial.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-split-button.mjs +972 -268
- package/fesm2022/aeris-ui-core-split-button.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-splitter.mjs +831 -356
- package/fesm2022/aeris-ui-core-splitter.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-stepper.mjs +705 -256
- package/fesm2022/aeris-ui-core-stepper.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-style-class.mjs +587 -342
- package/fesm2022/aeris-ui-core-style-class.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-table.mjs +2927 -923
- package/fesm2022/aeris-ui-core-table.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tabs.mjs +855 -283
- package/fesm2022/aeris-ui-core-tabs.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-textarea.mjs +919 -221
- package/fesm2022/aeris-ui-core-textarea.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-theme-builder.mjs +1368 -1407
- package/fesm2022/aeris-ui-core-theme-builder.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-theming.mjs +132 -144
- package/fesm2022/aeris-ui-core-theming.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tiered-menu.mjs +966 -447
- package/fesm2022/aeris-ui-core-tiered-menu.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-timeline.mjs +407 -131
- package/fesm2022/aeris-ui-core-timeline.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-toast.mjs +1109 -384
- package/fesm2022/aeris-ui-core-toast.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-toggle-switch.mjs +398 -132
- package/fesm2022/aeris-ui-core-toggle-switch.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-toolbar.mjs +1340 -131
- package/fesm2022/aeris-ui-core-toolbar.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tooltip.mjs +625 -330
- package/fesm2022/aeris-ui-core-tooltip.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tree-select.mjs +1650 -627
- package/fesm2022/aeris-ui-core-tree-select.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tree-table.mjs +2442 -994
- package/fesm2022/aeris-ui-core-tree-table.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tree.mjs +1257 -670
- package/fesm2022/aeris-ui-core-tree.mjs.map +1 -1
- package/fesm2022/aeris-ui-core.mjs +1601 -312
- package/fesm2022/aeris-ui-core.mjs.map +1 -1
- package/package.json +48 -8
- package/schematics/ng-add/schema.json +1 -1
- package/schematics/runtime/schematics/ng-add/options.js +4 -4
- package/schematics/runtime/schematics/ng-add/options.js.map +1 -1
- package/schematics/runtime/schematics/ng-add/workspace.js +1 -1
- package/schematics/runtime/schematics/ng-add/workspace.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-color-derivation.js +1 -1
- package/schematics/runtime/theme-builder/aeris-contrast.js +38 -17
- package/schematics/runtime/theme-builder/aeris-contrast.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-foundation.js +13 -8
- package/schematics/runtime/theme-builder/aeris-foundation.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-semantic-tones.js +33 -23
- package/schematics/runtime/theme-builder/aeris-semantic-tones.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-theme-generator.js +8 -2
- package/schematics/runtime/theme-builder/aeris-theme-generator.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-theme-resolver.js +63 -76
- package/schematics/runtime/theme-builder/aeris-theme-resolver.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-theme-tokens.js +15 -5
- package/schematics/runtime/theme-builder/aeris-theme-tokens.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-theme-validation.js +18 -2
- package/schematics/runtime/theme-builder/aeris-theme-validation.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-theme.js +121 -34
- package/schematics/runtime/theme-builder/aeris-theme.js.map +1 -1
- package/styles/_choice-card.scss +93 -0
- package/styles/_fallback-colors.scss +10 -0
- package/styles/_icon-artwork.scss +14 -0
- package/styles/_icon-template.scss +42 -0
- package/styles/_mobile.scss +16 -0
- package/styles/_selection-icons.scss +12 -0
- package/styles/_table-pinning.scss +119 -0
- package/styles/_tokens.scss +5 -5
- package/styles/aeris.css +447 -137
- package/styles/controls.css +205 -35
- package/tools/aeris-theme.mjs +4 -4
- package/tools/aeris-theme.schema.json +18 -13
- package/types/aeris-ui-core-accordion.d.ts +167 -93
- package/types/aeris-ui-core-animate-on-scroll.d.ts +72 -31
- package/types/aeris-ui-core-auto-complete.d.ts +339 -140
- package/types/aeris-ui-core-auto-focus.d.ts +24 -16
- package/types/aeris-ui-core-avatar.d.ts +112 -42
- package/types/aeris-ui-core-badge.d.ts +160 -46
- package/types/aeris-ui-core-block-ui.d.ts +48 -27
- package/types/aeris-ui-core-breadcrumb.d.ts +163 -92
- package/types/aeris-ui-core-button-forms.d.ts +18 -0
- package/types/aeris-ui-core-button-group.d.ts +150 -16
- package/types/aeris-ui-core-button.d.ts +274 -67
- package/types/aeris-ui-core-card.d.ts +74 -37
- package/types/aeris-ui-core-carousel.d.ts +213 -117
- package/types/aeris-ui-core-cascade-select.d.ts +275 -123
- package/types/aeris-ui-core-chart.d.ts +150 -84
- package/types/aeris-ui-core-checkbox.d.ts +173 -54
- package/types/aeris-ui-core-chip.d.ts +316 -56
- package/types/aeris-ui-core-class-names.d.ts +22 -20
- package/types/aeris-ui-core-code-block.d.ts +201 -0
- package/types/aeris-ui-core-color-picker.d.ts +450 -143
- package/types/aeris-ui-core-command-palette.d.ts +267 -0
- package/types/aeris-ui-core-compare.d.ts +230 -102
- package/types/aeris-ui-core-confirm-dialog.d.ts +450 -245
- package/types/aeris-ui-core-confirm-popup.d.ts +442 -263
- package/types/aeris-ui-core-context-menu.d.ts +270 -146
- package/types/aeris-ui-core-date-picker.d.ts +594 -219
- package/types/aeris-ui-core-dialog.d.ts +301 -117
- package/types/aeris-ui-core-divider.d.ts +58 -20
- package/types/aeris-ui-core-drawer.d.ts +380 -112
- package/types/aeris-ui-core-dynamic-dialog.d.ts +162 -137
- package/types/aeris-ui-core-editor.d.ts +257 -123
- package/types/aeris-ui-core-file-upload.d.ts +385 -197
- package/types/aeris-ui-core-filter-service.d.ts +48 -52
- package/types/aeris-ui-core-fluid.d.ts +12 -9
- package/types/aeris-ui-core-focus-trap.d.ts +39 -31
- package/types/aeris-ui-core-form-field.d.ts +163 -0
- package/types/aeris-ui-core-galleria.d.ts +636 -256
- package/types/aeris-ui-core-glass.d.ts +24 -11
- package/types/aeris-ui-core-icon-field.d.ts +94 -32
- package/types/aeris-ui-core-inplace.d.ts +129 -62
- package/types/aeris-ui-core-input-group.d.ts +84 -33
- package/types/aeris-ui-core-input-mask.d.ts +201 -69
- package/types/aeris-ui-core-input-number.d.ts +291 -87
- package/types/aeris-ui-core-input-otp.d.ts +191 -81
- package/types/aeris-ui-core-input-text.d.ts +195 -60
- package/types/aeris-ui-core-kbd.d.ts +74 -0
- package/types/aeris-ui-core-key-filter.d.ts +53 -39
- package/types/aeris-ui-core-listbox.d.ts +222 -0
- package/types/aeris-ui-core-mega-menu.d.ts +181 -121
- package/types/aeris-ui-core-menu.d.ts +283 -168
- package/types/aeris-ui-core-menubar.d.ts +289 -135
- package/types/aeris-ui-core-message.d.ts +138 -60
- package/types/aeris-ui-core-meter-group.d.ts +169 -90
- package/types/aeris-ui-core-multi-select.d.ts +469 -180
- package/types/aeris-ui-core-navbar.d.ts +208 -0
- package/types/aeris-ui-core-order-list.d.ts +168 -66
- package/types/aeris-ui-core-organization-chart.d.ts +139 -77
- package/types/aeris-ui-core-paginator.d.ts +129 -38
- package/types/aeris-ui-core-panel.d.ts +149 -78
- package/types/aeris-ui-core-password.d.ts +276 -102
- package/types/aeris-ui-core-pick-list.d.ts +428 -179
- package/types/aeris-ui-core-popover.d.ts +294 -105
- package/types/aeris-ui-core-progress-bar.d.ts +163 -73
- package/types/aeris-ui-core-progress-spinner.d.ts +116 -48
- package/types/aeris-ui-core-radio-button.d.ts +146 -50
- package/types/aeris-ui-core-rating.d.ts +149 -76
- package/types/aeris-ui-core-scroll-panel.d.ts +142 -64
- package/types/aeris-ui-core-scroll-top.d.ts +73 -29
- package/types/aeris-ui-core-select-native.d.ts +40 -0
- package/types/aeris-ui-core-select.d.ts +487 -217
- package/types/aeris-ui-core-sidebar.d.ts +220 -0
- package/types/aeris-ui-core-skeleton.d.ts +39 -17
- package/types/aeris-ui-core-slider.d.ts +270 -115
- package/types/aeris-ui-core-speed-dial.d.ts +241 -111
- package/types/aeris-ui-core-split-button.d.ts +267 -113
- package/types/aeris-ui-core-splitter.d.ts +224 -106
- package/types/aeris-ui-core-stepper.d.ts +184 -91
- package/types/aeris-ui-core-style-class.d.ts +141 -71
- package/types/aeris-ui-core-table.d.ts +729 -304
- package/types/aeris-ui-core-tabs.d.ts +193 -76
- package/types/aeris-ui-core-textarea.d.ts +271 -78
- package/types/aeris-ui-core-theme-builder.d.ts +220 -463
- package/types/aeris-ui-core-theming.d.ts +42 -45
- package/types/aeris-ui-core-tiered-menu.d.ts +257 -142
- package/types/aeris-ui-core-timeline.d.ts +109 -71
- package/types/aeris-ui-core-toast.d.ts +231 -115
- package/types/aeris-ui-core-toggle-switch.d.ts +125 -51
- package/types/aeris-ui-core-toolbar.d.ts +314 -47
- package/types/aeris-ui-core-tooltip.d.ts +157 -88
- package/types/aeris-ui-core-tree-select.d.ts +394 -171
- package/types/aeris-ui-core-tree-table.d.ts +629 -288
- package/types/aeris-ui-core-tree.d.ts +294 -165
- package/types/aeris-ui-core.d.ts +338 -74
|
@@ -1,136 +1,1345 @@
|
|
|
1
|
-
import * as i0 from
|
|
2
|
-
import { Directive,
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
class
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
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
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
args: [{ selector: 'aeris-toolbar', template: `
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
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
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
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
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
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
|