@aeris-ui/core 22.0.0-alpha.10 → 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 +35 -3
- package/THIRD_PARTY_LICENSES.md +48 -0
- package/fesm2022/aeris-ui-core-accordion.mjs +34 -32
- package/fesm2022/aeris-ui-core-accordion.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-animate-on-scroll.mjs +3 -3
- package/fesm2022/aeris-ui-core-auto-complete.mjs +119 -50
- package/fesm2022/aeris-ui-core-auto-complete.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-auto-focus.mjs +3 -3
- package/fesm2022/aeris-ui-core-avatar.mjs +6 -6
- package/fesm2022/aeris-ui-core-badge.mjs +6 -6
- package/fesm2022/aeris-ui-core-block-ui.mjs +18 -6
- package/fesm2022/aeris-ui-core-block-ui.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-breadcrumb.mjs +42 -24
- 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 +417 -14
- package/fesm2022/aeris-ui-core-button-group.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-button.mjs +191 -19
- package/fesm2022/aeris-ui-core-button.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-card.mjs +18 -18
- package/fesm2022/aeris-ui-core-carousel.mjs +81 -19
- package/fesm2022/aeris-ui-core-carousel.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-cascade-select.mjs +165 -46
- package/fesm2022/aeris-ui-core-cascade-select.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-chart.mjs +171 -36
- package/fesm2022/aeris-ui-core-chart.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-checkbox.mjs +191 -22
- package/fesm2022/aeris-ui-core-checkbox.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-chip.mjs +702 -27
- package/fesm2022/aeris-ui-core-chip.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-class-names.mjs +3 -3
- package/fesm2022/aeris-ui-core-code-block.mjs +57 -7
- package/fesm2022/aeris-ui-core-code-block.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-color-picker.mjs +1223 -503
- 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 +61 -34
- package/fesm2022/aeris-ui-core-compare.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-confirm-dialog.mjs +68 -38
- package/fesm2022/aeris-ui-core-confirm-dialog.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-confirm-popup.mjs +46 -38
- package/fesm2022/aeris-ui-core-confirm-popup.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-context-menu.mjs +94 -43
- 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 +1186 -650
- package/fesm2022/aeris-ui-core-date-picker.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-dialog.mjs +157 -71
- package/fesm2022/aeris-ui-core-dialog.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-divider.mjs +3 -3
- package/fesm2022/aeris-ui-core-drawer.mjs +751 -77
- package/fesm2022/aeris-ui-core-drawer.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-dynamic-dialog.mjs +14 -6
- package/fesm2022/aeris-ui-core-dynamic-dialog.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-editor.mjs +847 -202
- package/fesm2022/aeris-ui-core-editor.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-file-upload.mjs +204 -68
- package/fesm2022/aeris-ui-core-file-upload.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-filter-service.mjs +3 -3
- package/fesm2022/aeris-ui-core-fluid.mjs +5 -5
- package/fesm2022/aeris-ui-core-fluid.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-focus-trap.mjs +3 -3
- package/fesm2022/aeris-ui-core-form-field.mjs +15 -15
- package/fesm2022/aeris-ui-core-galleria.mjs +472 -123
- package/fesm2022/aeris-ui-core-galleria.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-glass.mjs +3 -3
- package/fesm2022/aeris-ui-core-icon-field.mjs +12 -12
- package/fesm2022/aeris-ui-core-inplace.mjs +56 -14
- package/fesm2022/aeris-ui-core-inplace.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-input-group.mjs +17 -17
- package/fesm2022/aeris-ui-core-input-group.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-input-mask.mjs +61 -8
- package/fesm2022/aeris-ui-core-input-mask.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-input-number.mjs +191 -28
- package/fesm2022/aeris-ui-core-input-number.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-input-otp.mjs +6 -6
- package/fesm2022/aeris-ui-core-input-text.mjs +102 -26
- 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 +3 -3
- 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 +59 -16
- package/fesm2022/aeris-ui-core-mega-menu.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-menu.mjs +95 -52
- package/fesm2022/aeris-ui-core-menu.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-menubar.mjs +103 -34
- package/fesm2022/aeris-ui-core-menubar.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-message.mjs +48 -14
- package/fesm2022/aeris-ui-core-message.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-meter-group.mjs +33 -15
- package/fesm2022/aeris-ui-core-meter-group.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-multi-select.mjs +283 -65
- 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 +191 -35
- package/fesm2022/aeris-ui-core-order-list.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-organization-chart.mjs +48 -14
- package/fesm2022/aeris-ui-core-organization-chart.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-paginator.mjs +300 -61
- package/fesm2022/aeris-ui-core-paginator.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-panel.mjs +21 -29
- package/fesm2022/aeris-ui-core-panel.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-password.mjs +166 -65
- package/fesm2022/aeris-ui-core-password.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-pick-list.mjs +528 -56
- package/fesm2022/aeris-ui-core-pick-list.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-popover.mjs +504 -72
- package/fesm2022/aeris-ui-core-popover.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-progress-bar.mjs +75 -21
- package/fesm2022/aeris-ui-core-progress-bar.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-progress-spinner.mjs +24 -6
- package/fesm2022/aeris-ui-core-progress-spinner.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-radio-button.mjs +119 -19
- package/fesm2022/aeris-ui-core-radio-button.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-rating.mjs +6 -6
- package/fesm2022/aeris-ui-core-rating.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-scroll-panel.mjs +3 -3
- package/fesm2022/aeris-ui-core-scroll-top.mjs +59 -12
- 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 +206 -87
- 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 +3 -3
- package/fesm2022/aeris-ui-core-slider.mjs +3 -3
- package/fesm2022/aeris-ui-core-speed-dial.mjs +34 -13
- package/fesm2022/aeris-ui-core-speed-dial.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-split-button.mjs +26 -11
- package/fesm2022/aeris-ui-core-split-button.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-splitter.mjs +35 -20
- package/fesm2022/aeris-ui-core-splitter.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-stepper.mjs +23 -17
- package/fesm2022/aeris-ui-core-stepper.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-style-class.mjs +3 -3
- package/fesm2022/aeris-ui-core-table.mjs +945 -106
- package/fesm2022/aeris-ui-core-table.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tabs.mjs +81 -19
- package/fesm2022/aeris-ui-core-tabs.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-textarea.mjs +89 -28
- package/fesm2022/aeris-ui-core-textarea.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-theme-builder.mjs +202 -126
- package/fesm2022/aeris-ui-core-theme-builder.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-theming.mjs +8 -8
- package/fesm2022/aeris-ui-core-theming.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tiered-menu.mjs +94 -43
- package/fesm2022/aeris-ui-core-tiered-menu.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-timeline.mjs +17 -17
- package/fesm2022/aeris-ui-core-timeline.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-toast.mjs +51 -18
- package/fesm2022/aeris-ui-core-toast.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-toggle-switch.mjs +3 -3
- package/fesm2022/aeris-ui-core-toolbar.mjs +916 -44
- package/fesm2022/aeris-ui-core-toolbar.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tooltip.mjs +6 -6
- package/fesm2022/aeris-ui-core-tree-select.mjs +252 -61
- package/fesm2022/aeris-ui-core-tree-select.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tree-table.mjs +493 -124
- package/fesm2022/aeris-ui-core-tree-table.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tree.mjs +165 -27
- package/fesm2022/aeris-ui-core-tree.mjs.map +1 -1
- package/fesm2022/aeris-ui-core.mjs +632 -12
- package/fesm2022/aeris-ui-core.mjs.map +1 -1
- package/package.json +29 -1
- package/schematics/runtime/theme-builder/aeris-color-derivation.js +1 -1
- package/schematics/runtime/theme-builder/aeris-contrast.js +32 -0
- package/schematics/runtime/theme-builder/aeris-contrast.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-foundation.js +8 -9
- package/schematics/runtime/theme-builder/aeris-foundation.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-semantic-tones.js +8 -21
- package/schematics/runtime/theme-builder/aeris-semantic-tones.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-theme-generator.js +6 -0
- package/schematics/runtime/theme-builder/aeris-theme-generator.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-theme-resolver.js +64 -91
- package/schematics/runtime/theme-builder/aeris-theme-resolver.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-theme-tokens.js +7 -5
- package/schematics/runtime/theme-builder/aeris-theme-tokens.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-theme-validation.js +11 -1
- package/schematics/runtime/theme-builder/aeris-theme-validation.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-theme.js +81 -10
- package/schematics/runtime/theme-builder/aeris-theme.js.map +1 -1
- package/styles/_choice-card.scss +93 -0
- package/styles/_icon-artwork.scss +14 -0
- package/styles/_icon-template.scss +42 -0
- package/styles/_selection-icons.scss +12 -0
- package/styles/_table-pinning.scss +119 -0
- package/styles/aeris.css +35 -12
- package/styles/controls.css +149 -11
- package/tools/aeris-theme.mjs +3 -3
- package/tools/aeris-theme.schema.json +13 -11
- package/types/aeris-ui-core-auto-complete.d.ts +12 -0
- package/types/aeris-ui-core-block-ui.d.ts +1 -0
- package/types/aeris-ui-core-button-forms.d.ts +18 -0
- package/types/aeris-ui-core-button-group.d.ts +116 -3
- package/types/aeris-ui-core-button.d.ts +52 -4
- package/types/aeris-ui-core-carousel.d.ts +12 -0
- package/types/aeris-ui-core-cascade-select.d.ts +18 -0
- package/types/aeris-ui-core-chart.d.ts +26 -10
- package/types/aeris-ui-core-checkbox.d.ts +36 -2
- package/types/aeris-ui-core-chip.d.ts +196 -1
- package/types/aeris-ui-core-code-block.d.ts +13 -0
- package/types/aeris-ui-core-color-picker.d.ts +117 -15
- package/types/aeris-ui-core-command-palette.d.ts +267 -0
- package/types/aeris-ui-core-compare.d.ts +6 -0
- package/types/aeris-ui-core-confirm-dialog.d.ts +9 -1
- package/types/aeris-ui-core-context-menu.d.ts +6 -0
- package/types/aeris-ui-core-date-picker.d.ts +123 -20
- package/types/aeris-ui-core-dialog.d.ts +15 -2
- package/types/aeris-ui-core-drawer.d.ts +111 -4
- package/types/aeris-ui-core-dynamic-dialog.d.ts +6 -2
- package/types/aeris-ui-core-editor.d.ts +8 -1
- package/types/aeris-ui-core-file-upload.d.ts +18 -0
- package/types/aeris-ui-core-galleria.d.ts +48 -0
- package/types/aeris-ui-core-inplace.d.ts +6 -0
- package/types/aeris-ui-core-input-mask.d.ts +8 -1
- package/types/aeris-ui-core-input-number.d.ts +20 -1
- package/types/aeris-ui-core-input-text.d.ts +11 -1
- package/types/aeris-ui-core-kbd.d.ts +74 -0
- package/types/aeris-ui-core-listbox.d.ts +222 -0
- package/types/aeris-ui-core-mega-menu.d.ts +6 -0
- package/types/aeris-ui-core-menu.d.ts +6 -0
- package/types/aeris-ui-core-menubar.d.ts +16 -0
- package/types/aeris-ui-core-message.d.ts +6 -0
- package/types/aeris-ui-core-meter-group.d.ts +6 -0
- package/types/aeris-ui-core-multi-select.d.ts +30 -0
- package/types/aeris-ui-core-navbar.d.ts +208 -0
- package/types/aeris-ui-core-order-list.d.ts +24 -0
- package/types/aeris-ui-core-organization-chart.d.ts +6 -0
- package/types/aeris-ui-core-paginator.d.ts +37 -1
- package/types/aeris-ui-core-password.d.ts +18 -0
- package/types/aeris-ui-core-pick-list.d.ts +54 -0
- package/types/aeris-ui-core-popover.d.ts +80 -5
- package/types/aeris-ui-core-progress-bar.d.ts +6 -0
- package/types/aeris-ui-core-progress-spinner.d.ts +6 -0
- package/types/aeris-ui-core-radio-button.d.ts +24 -2
- package/types/aeris-ui-core-rating.d.ts +1 -1
- package/types/aeris-ui-core-scroll-top.d.ts +7 -0
- package/types/aeris-ui-core-select-native.d.ts +40 -0
- package/types/aeris-ui-core-select.d.ts +12 -0
- package/types/aeris-ui-core-sidebar.d.ts +220 -0
- package/types/aeris-ui-core-splitter.d.ts +3 -4
- package/types/aeris-ui-core-table.d.ts +144 -11
- package/types/aeris-ui-core-tabs.d.ts +12 -0
- package/types/aeris-ui-core-textarea.d.ts +11 -1
- package/types/aeris-ui-core-theme-builder.d.ts +31 -296
- package/types/aeris-ui-core-tiered-menu.d.ts +6 -0
- package/types/aeris-ui-core-toast.d.ts +6 -0
- package/types/aeris-ui-core-toolbar.d.ts +213 -3
- package/types/aeris-ui-core-tree-select.d.ts +30 -0
- package/types/aeris-ui-core-tree-table.d.ts +75 -14
- package/types/aeris-ui-core-tree.d.ts +24 -0
- package/types/aeris-ui-core.d.ts +142 -3
|
@@ -1,9 +1,75 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
import { Component, Directive, ViewEncapsulation, booleanAttribute, input } 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
|
+
});
|
|
3
69
|
var AerisToolbarStart = class AerisToolbarStart {
|
|
4
70
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
5
71
|
minVersion: "12.0.0",
|
|
6
|
-
version: "22.2.
|
|
72
|
+
version: "22.2.3",
|
|
7
73
|
ngImport: i0,
|
|
8
74
|
type: AerisToolbarStart,
|
|
9
75
|
deps: [],
|
|
@@ -11,7 +77,7 @@ var AerisToolbarStart = class AerisToolbarStart {
|
|
|
11
77
|
});
|
|
12
78
|
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
13
79
|
minVersion: "14.0.0",
|
|
14
|
-
version: "22.2.
|
|
80
|
+
version: "22.2.3",
|
|
15
81
|
type: AerisToolbarStart,
|
|
16
82
|
isStandalone: true,
|
|
17
83
|
selector: "[aerisToolbarStart]",
|
|
@@ -21,7 +87,7 @@ var AerisToolbarStart = class AerisToolbarStart {
|
|
|
21
87
|
};
|
|
22
88
|
i0.ɵɵngDeclareClassMetadata({
|
|
23
89
|
minVersion: "12.0.0",
|
|
24
|
-
version: "22.2.
|
|
90
|
+
version: "22.2.3",
|
|
25
91
|
ngImport: i0,
|
|
26
92
|
type: AerisToolbarStart,
|
|
27
93
|
decorators: [{
|
|
@@ -35,7 +101,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
35
101
|
var AerisToolbarCenter = class AerisToolbarCenter {
|
|
36
102
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
37
103
|
minVersion: "12.0.0",
|
|
38
|
-
version: "22.2.
|
|
104
|
+
version: "22.2.3",
|
|
39
105
|
ngImport: i0,
|
|
40
106
|
type: AerisToolbarCenter,
|
|
41
107
|
deps: [],
|
|
@@ -43,7 +109,7 @@ var AerisToolbarCenter = class AerisToolbarCenter {
|
|
|
43
109
|
});
|
|
44
110
|
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
45
111
|
minVersion: "14.0.0",
|
|
46
|
-
version: "22.2.
|
|
112
|
+
version: "22.2.3",
|
|
47
113
|
type: AerisToolbarCenter,
|
|
48
114
|
isStandalone: true,
|
|
49
115
|
selector: "[aerisToolbarCenter]",
|
|
@@ -53,7 +119,7 @@ var AerisToolbarCenter = class AerisToolbarCenter {
|
|
|
53
119
|
};
|
|
54
120
|
i0.ɵɵngDeclareClassMetadata({
|
|
55
121
|
minVersion: "12.0.0",
|
|
56
|
-
version: "22.2.
|
|
122
|
+
version: "22.2.3",
|
|
57
123
|
ngImport: i0,
|
|
58
124
|
type: AerisToolbarCenter,
|
|
59
125
|
decorators: [{
|
|
@@ -67,7 +133,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
67
133
|
var AerisToolbarEnd = class AerisToolbarEnd {
|
|
68
134
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
69
135
|
minVersion: "12.0.0",
|
|
70
|
-
version: "22.2.
|
|
136
|
+
version: "22.2.3",
|
|
71
137
|
ngImport: i0,
|
|
72
138
|
type: AerisToolbarEnd,
|
|
73
139
|
deps: [],
|
|
@@ -75,7 +141,7 @@ var AerisToolbarEnd = class AerisToolbarEnd {
|
|
|
75
141
|
});
|
|
76
142
|
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
77
143
|
minVersion: "14.0.0",
|
|
78
|
-
version: "22.2.
|
|
144
|
+
version: "22.2.3",
|
|
79
145
|
type: AerisToolbarEnd,
|
|
80
146
|
isStandalone: true,
|
|
81
147
|
selector: "[aerisToolbarEnd]",
|
|
@@ -85,7 +151,7 @@ var AerisToolbarEnd = class AerisToolbarEnd {
|
|
|
85
151
|
};
|
|
86
152
|
i0.ɵɵngDeclareClassMetadata({
|
|
87
153
|
minVersion: "12.0.0",
|
|
88
|
-
version: "22.2.
|
|
154
|
+
version: "22.2.3",
|
|
89
155
|
ngImport: i0,
|
|
90
156
|
type: AerisToolbarEnd,
|
|
91
157
|
decorators: [{
|
|
@@ -97,41 +163,246 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
97
163
|
}]
|
|
98
164
|
});
|
|
99
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
|
+
}
|
|
100
199
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
101
200
|
minVersion: "12.0.0",
|
|
102
|
-
version: "22.2.
|
|
201
|
+
version: "22.2.3",
|
|
103
202
|
ngImport: i0,
|
|
104
203
|
type: AerisToolbarGroup,
|
|
105
204
|
deps: [],
|
|
106
205
|
target: i0.ɵɵFactoryTarget.Directive
|
|
107
206
|
});
|
|
108
207
|
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
109
|
-
minVersion: "
|
|
110
|
-
version: "22.2.
|
|
208
|
+
minVersion: "17.1.0",
|
|
209
|
+
version: "22.2.3",
|
|
111
210
|
type: AerisToolbarGroup,
|
|
112
211
|
isStandalone: true,
|
|
113
212
|
selector: "[aerisToolbarGroup]",
|
|
114
|
-
|
|
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
|
+
},
|
|
115
276
|
ngImport: i0
|
|
116
277
|
});
|
|
117
278
|
};
|
|
118
279
|
i0.ɵɵngDeclareClassMetadata({
|
|
119
280
|
minVersion: "12.0.0",
|
|
120
|
-
version: "22.2.
|
|
281
|
+
version: "22.2.3",
|
|
121
282
|
ngImport: i0,
|
|
122
283
|
type: AerisToolbarGroup,
|
|
123
284
|
decorators: [{
|
|
124
285
|
type: Directive,
|
|
125
286
|
args: [{
|
|
126
287
|
selector: "[aerisToolbarGroup]",
|
|
127
|
-
host: {
|
|
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
|
+
}
|
|
128
399
|
}]
|
|
129
400
|
}]
|
|
130
401
|
});
|
|
131
402
|
var AerisToolbarSpacer = class AerisToolbarSpacer {
|
|
132
403
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
133
404
|
minVersion: "12.0.0",
|
|
134
|
-
version: "22.2.
|
|
405
|
+
version: "22.2.3",
|
|
135
406
|
ngImport: i0,
|
|
136
407
|
type: AerisToolbarSpacer,
|
|
137
408
|
deps: [],
|
|
@@ -139,7 +410,7 @@ var AerisToolbarSpacer = class AerisToolbarSpacer {
|
|
|
139
410
|
});
|
|
140
411
|
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
141
412
|
minVersion: "14.0.0",
|
|
142
|
-
version: "22.2.
|
|
413
|
+
version: "22.2.3",
|
|
143
414
|
type: AerisToolbarSpacer,
|
|
144
415
|
isStandalone: true,
|
|
145
416
|
selector: "[aerisToolbarSpacer]",
|
|
@@ -152,7 +423,7 @@ var AerisToolbarSpacer = class AerisToolbarSpacer {
|
|
|
152
423
|
};
|
|
153
424
|
i0.ɵɵngDeclareClassMetadata({
|
|
154
425
|
minVersion: "12.0.0",
|
|
155
|
-
version: "22.2.
|
|
426
|
+
version: "22.2.3",
|
|
156
427
|
ngImport: i0,
|
|
157
428
|
type: AerisToolbarSpacer,
|
|
158
429
|
decorators: [{
|
|
@@ -168,15 +439,19 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
168
439
|
});
|
|
169
440
|
var AerisToolbar = class AerisToolbar {
|
|
170
441
|
id = input("", ...ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []);
|
|
171
|
-
variant = input("
|
|
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
|
+
});
|
|
172
447
|
size = input("md", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
|
|
173
448
|
orientation = input("horizontal", ...ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []);
|
|
174
449
|
align = input("center", ...ngDevMode ? [{ debugName: "align" }] : /* istanbul ignore next */ []);
|
|
175
|
-
wrap = input(
|
|
450
|
+
wrap = input(false, {
|
|
176
451
|
...ngDevMode ? { debugName: "wrap" } : /* istanbul ignore next */ {},
|
|
177
452
|
transform: booleanAttribute
|
|
178
453
|
});
|
|
179
|
-
fluid = input(
|
|
454
|
+
fluid = input(false, {
|
|
180
455
|
...ngDevMode ? { debugName: "fluid" } : /* istanbul ignore next */ {},
|
|
181
456
|
transform: booleanAttribute
|
|
182
457
|
});
|
|
@@ -188,17 +463,220 @@ var AerisToolbar = class AerisToolbar {
|
|
|
188
463
|
ariaLabel = input("", ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
|
|
189
464
|
ariaLabelledBy = input("", ...ngDevMode ? [{ debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []);
|
|
190
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
|
+
}
|
|
191
669
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
192
670
|
minVersion: "12.0.0",
|
|
193
|
-
version: "22.2.
|
|
671
|
+
version: "22.2.3",
|
|
194
672
|
ngImport: i0,
|
|
195
673
|
type: AerisToolbar,
|
|
196
674
|
deps: [],
|
|
197
675
|
target: i0.ɵɵFactoryTarget.Component
|
|
198
676
|
});
|
|
199
677
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
200
|
-
minVersion: "17.
|
|
201
|
-
version: "22.2.
|
|
678
|
+
minVersion: "17.2.0",
|
|
679
|
+
version: "22.2.3",
|
|
202
680
|
type: AerisToolbar,
|
|
203
681
|
isStandalone: true,
|
|
204
682
|
selector: "aeris-toolbar",
|
|
@@ -217,6 +695,13 @@ var AerisToolbar = class AerisToolbar {
|
|
|
217
695
|
isRequired: false,
|
|
218
696
|
transformFunction: null
|
|
219
697
|
},
|
|
698
|
+
attached: {
|
|
699
|
+
classPropertyName: "attached",
|
|
700
|
+
publicName: "attached",
|
|
701
|
+
isSignal: true,
|
|
702
|
+
isRequired: false,
|
|
703
|
+
transformFunction: null
|
|
704
|
+
},
|
|
220
705
|
size: {
|
|
221
706
|
classPropertyName: "size",
|
|
222
707
|
publicName: "size",
|
|
@@ -286,9 +771,48 @@ var AerisToolbar = class AerisToolbar {
|
|
|
286
771
|
isSignal: true,
|
|
287
772
|
isRequired: false,
|
|
288
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
|
|
289
809
|
}
|
|
290
810
|
},
|
|
291
811
|
host: {
|
|
812
|
+
listeners: {
|
|
813
|
+
"focusin": "rememberFocus()",
|
|
814
|
+
"focusout": "trackFocusExit($event)"
|
|
815
|
+
},
|
|
292
816
|
properties: {
|
|
293
817
|
"attr.id": "id() || null",
|
|
294
818
|
"attr.role": "role()",
|
|
@@ -297,47 +821,100 @@ var AerisToolbar = class AerisToolbar {
|
|
|
297
821
|
"attr.aria-describedby": "ariaDescribedBy() || null",
|
|
298
822
|
"attr.aria-orientation": "role() === \"toolbar\" ? orientation() : null",
|
|
299
823
|
"attr.aria-disabled": "disabled() || null",
|
|
300
|
-
"attr.inert": "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()",
|
|
301
830
|
"attr.data-variant": "variant()",
|
|
302
831
|
"attr.data-size": "size()",
|
|
303
832
|
"attr.data-orientation": "orientation()",
|
|
304
833
|
"attr.data-align": "align()",
|
|
305
834
|
"attr.data-wrap": "wrap()",
|
|
306
835
|
"attr.data-fluid": "fluid() || null",
|
|
307
|
-
"attr.data-disabled": "disabled() || 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"
|
|
308
840
|
},
|
|
309
841
|
classAttribute: "aeris-toolbar"
|
|
310
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 }],
|
|
311
863
|
ngImport: i0,
|
|
312
864
|
template: `
|
|
313
|
-
<div
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
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>
|
|
318
880
|
</div>
|
|
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>
|
|
319
883
|
`,
|
|
320
884
|
isInline: true,
|
|
321
|
-
styles: ["aeris-toolbar{display:block;min-inline-size:0}.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, var(--aeris-density-gap, .5rem));--_section-gap: var(--aeris-toolbar-section-gap, var(--aeris-density-gap, .5rem));border:var(--aeris-toolbar-border-width, 1px) solid var(--aeris-toolbar-border, var(--aeris-border));border-radius:var(--aeris-toolbar-radius, var(--aeris-radius-surface, var(--aeris-radius-lg, .75rem)));background:var(--aeris-toolbar-background, var(--aeris-surface, #fff));color:var(--aeris-toolbar-color, var(--aeris-text, #111111));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-size=sm]{--_padding-block: var( --aeris-toolbar-padding-block-sm, calc(var(--aeris-overlay-padding, .375rem) * .75) );--_padding-inline: var( --aeris-toolbar-padding-inline-sm, calc(var(--aeris-overlay-padding, .375rem) * .75) );--_gap: var(--aeris-toolbar-gap-sm, calc(var(--aeris-density-gap, .5rem) * .75));--_section-gap: var( --aeris-toolbar-section-gap-sm, calc(var(--aeris-density-gap, .5rem) * .75) )}.aeris-toolbar[data-size=lg]{--_padding-block: var( --aeris-toolbar-padding-block-lg, calc(var(--aeris-overlay-padding, .375rem) * 1.25) );--_padding-inline: var( --aeris-toolbar-padding-inline-lg, calc(var(--aeris-overlay-padding, .375rem) * 1.25) );--_gap: var(--aeris-toolbar-gap-lg, calc(var(--aeris-density-gap, .5rem) * 1.25));--_section-gap: var( --aeris-toolbar-section-gap-lg, calc(var(--aeris-density-gap, .5rem) * 1.25) )}.aeris-toolbar[data-variant=filled]{border-color:var(--aeris-toolbar-filled-border, transparent);background:var(--aeris-toolbar-filled-background, color-mix(in srgb, var(--aeris-surface-2, #f3f3f3) 76%, var(--aeris-surface, #fff)))}.aeris-toolbar[data-variant=elevated]{border-color:var(--aeris-toolbar-elevated-border, transparent);box-shadow:var(--aeris-toolbar-elevated-shadow, 0 .75rem 2rem color-mix(in srgb, var(--aeris-text, #111111) 10%, transparent))}.aeris-toolbar[data-variant=plain]{border-color:transparent;border-radius:0;background:transparent;box-shadow:none}.aeris-toolbar__content{display:flex;align-items:center;gap:var(--_gap);box-sizing:border-box;min-block-size:var(--aeris-toolbar-min-height, var(--aeris-control-height, 2.625rem));min-inline-size:0;padding:var(--_padding-block) var(--_padding-inline)}.aeris-toolbar[data-wrap=true] .aeris-toolbar__content{flex-wrap:wrap}.aeris-toolbar[data-wrap=false] .aeris-toolbar__content{flex-wrap:nowrap;overflow-x:auto;scrollbar-color:var(--aeris-border, #efefef) transparent;scrollbar-width:thin}.aeris-toolbar[data-wrap=false] .aeris-toolbar__content::-webkit-scrollbar{width:.75rem;height:.75rem}.aeris-toolbar[data-wrap=false] .aeris-toolbar__content::-webkit-scrollbar-track,.aeris-toolbar[data-wrap=false] .aeris-toolbar__content::-webkit-scrollbar-corner{background:transparent}.aeris-toolbar[data-wrap=false] .aeris-toolbar__content::-webkit-scrollbar-thumb{border:3px solid transparent;border-radius:var(--aeris-radius-pill, 999px);background:var(--aeris-border, #efefef);background-clip:content-box}.aeris-toolbar[data-align=start] .aeris-toolbar__content{align-items:flex-start}.aeris-toolbar[data-align=end] .aeris-toolbar__content{align-items:flex-end}.aeris-toolbar[data-align=stretch] .aeris-toolbar__content{align-items:stretch}.aeris-toolbar__section,.aeris-toolbar__group{display:inline-flex;align-items:center;gap:var(--_section-gap);min-inline-size:0}.aeris-toolbar__section{flex-wrap:wrap}.aeris-toolbar[data-wrap=false] .aeris-toolbar__section{flex-wrap:nowrap}.aeris-toolbar__section--start{flex:1 1 0;justify-content:flex-start}.aeris-toolbar__section--center{flex:0 1 auto;justify-content:center}.aeris-toolbar__section--end{flex:1 1 0;justify-content:flex-end}.aeris-toolbar__group{flex:0 0 auto}.aeris-toolbar__spacer{flex:1 1 auto;min-inline-size:var(--aeris-toolbar-spacer-min-size, 1rem)}.aeris-toolbar[data-orientation=vertical]{inline-size:max-content;max-inline-size:100%}.aeris-toolbar[data-orientation=vertical] .aeris-toolbar__content,.aeris-toolbar[data-orientation=vertical] .aeris-toolbar__section,.aeris-toolbar[data-orientation=vertical] .aeris-toolbar__group{align-items:stretch;flex-direction:column}.aeris-toolbar[data-orientation=vertical] .aeris-toolbar__section{flex:0 0 auto;justify-content:flex-start}.aeris-toolbar[data-orientation=vertical] .aeris-toolbar__spacer{min-block-size:var(--aeris-toolbar-spacer-min-size, 1rem);min-inline-size:0}.aeris-toolbar[data-disabled=true]{opacity:var(--aeris-toolbar-disabled-opacity, .62)}@media(max-width:42rem){.aeris-toolbar[data-orientation=horizontal][data-wrap=true] .aeris-toolbar__section{flex:1 1 100%;justify-content:flex-start}.aeris-toolbar[data-orientation=horizontal][data-wrap=true] .aeris-toolbar__section--center{justify-content:center}.aeris-toolbar[data-orientation=horizontal][data-wrap=true] .aeris-toolbar__section--end{justify-content:flex-start}}\n"],
|
|
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"],
|
|
322
886
|
encapsulation: i0.ViewEncapsulation.None
|
|
323
887
|
});
|
|
324
888
|
};
|
|
325
889
|
i0.ɵɵngDeclareClassMetadata({
|
|
326
890
|
minVersion: "12.0.0",
|
|
327
|
-
version: "22.2.
|
|
891
|
+
version: "22.2.3",
|
|
328
892
|
ngImport: i0,
|
|
329
893
|
type: AerisToolbar,
|
|
330
894
|
decorators: [{
|
|
331
895
|
type: Component,
|
|
332
896
|
args: [{
|
|
333
897
|
selector: "aeris-toolbar",
|
|
898
|
+
hostDirectives: [ɵAerisAppendTo],
|
|
334
899
|
template: `
|
|
335
|
-
<div
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
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>
|
|
340
915
|
</div>
|
|
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>
|
|
341
918
|
`,
|
|
342
919
|
encapsulation: ViewEncapsulation.None,
|
|
343
920
|
host: {
|
|
@@ -349,18 +926,29 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
349
926
|
"[attr.aria-describedby]": "ariaDescribedBy() || null",
|
|
350
927
|
"[attr.aria-orientation]": "role() === \"toolbar\" ? orientation() : null",
|
|
351
928
|
"[attr.aria-disabled]": "disabled() || null",
|
|
352
|
-
"[attr.inert]": "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()",
|
|
353
935
|
"[attr.data-variant]": "variant()",
|
|
354
936
|
"[attr.data-size]": "size()",
|
|
355
937
|
"[attr.data-orientation]": "orientation()",
|
|
356
938
|
"[attr.data-align]": "align()",
|
|
357
939
|
"[attr.data-wrap]": "wrap()",
|
|
358
940
|
"[attr.data-fluid]": "fluid() || null",
|
|
359
|
-
"[attr.data-disabled]": "disabled() || 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)"
|
|
360
947
|
},
|
|
361
|
-
styles: ["aeris-toolbar{display:block;min-inline-size:0}.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, var(--aeris-density-gap, .5rem));--_section-gap: var(--aeris-toolbar-section-gap, var(--aeris-density-gap, .5rem));border:var(--aeris-toolbar-border-width, 1px) solid var(--aeris-toolbar-border, var(--aeris-border));border-radius:var(--aeris-toolbar-radius, var(--aeris-radius-surface, var(--aeris-radius-lg, .75rem)));background:var(--aeris-toolbar-background, var(--aeris-surface, #fff));color:var(--aeris-toolbar-color, var(--aeris-text, #111111));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-size=sm]{--_padding-block: var( --aeris-toolbar-padding-block-sm, calc(var(--aeris-overlay-padding, .375rem) * .75) );--_padding-inline: var( --aeris-toolbar-padding-inline-sm, calc(var(--aeris-overlay-padding, .375rem) * .75) );--_gap: var(--aeris-toolbar-gap-sm, calc(var(--aeris-density-gap, .5rem) * .75));--_section-gap: var( --aeris-toolbar-section-gap-sm, calc(var(--aeris-density-gap, .5rem) * .75) )}.aeris-toolbar[data-size=lg]{--_padding-block: var( --aeris-toolbar-padding-block-lg, calc(var(--aeris-overlay-padding, .375rem) * 1.25) );--_padding-inline: var( --aeris-toolbar-padding-inline-lg, calc(var(--aeris-overlay-padding, .375rem) * 1.25) );--_gap: var(--aeris-toolbar-gap-lg, calc(var(--aeris-density-gap, .5rem) * 1.25));--_section-gap: var( --aeris-toolbar-section-gap-lg, calc(var(--aeris-density-gap, .5rem) * 1.25) )}.aeris-toolbar[data-variant=filled]{border-color:var(--aeris-toolbar-filled-border, transparent);background:var(--aeris-toolbar-filled-background, color-mix(in srgb, var(--aeris-surface-2, #f3f3f3) 76%, var(--aeris-surface, #fff)))}.aeris-toolbar[data-variant=elevated]{border-color:var(--aeris-toolbar-elevated-border, transparent);box-shadow:var(--aeris-toolbar-elevated-shadow, 0 .75rem 2rem color-mix(in srgb, var(--aeris-text, #111111) 10%, transparent))}.aeris-toolbar[data-variant=plain]{border-color:transparent;border-radius:0;background:transparent;box-shadow:none}.aeris-toolbar__content{display:flex;align-items:center;gap:var(--_gap);box-sizing:border-box;min-block-size:var(--aeris-toolbar-min-height, var(--aeris-control-height, 2.625rem));min-inline-size:0;padding:var(--_padding-block) var(--_padding-inline)}.aeris-toolbar[data-wrap=true] .aeris-toolbar__content{flex-wrap:wrap}.aeris-toolbar[data-wrap=false] .aeris-toolbar__content{flex-wrap:nowrap;overflow-x:auto;scrollbar-color:var(--aeris-border, #efefef) transparent;scrollbar-width:thin}.aeris-toolbar[data-wrap=false] .aeris-toolbar__content::-webkit-scrollbar{width:.75rem;height:.75rem}.aeris-toolbar[data-wrap=false] .aeris-toolbar__content::-webkit-scrollbar-track,.aeris-toolbar[data-wrap=false] .aeris-toolbar__content::-webkit-scrollbar-corner{background:transparent}.aeris-toolbar[data-wrap=false] .aeris-toolbar__content::-webkit-scrollbar-thumb{border:3px solid transparent;border-radius:var(--aeris-radius-pill, 999px);background:var(--aeris-border, #efefef);background-clip:content-box}.aeris-toolbar[data-align=start] .aeris-toolbar__content{align-items:flex-start}.aeris-toolbar[data-align=end] .aeris-toolbar__content{align-items:flex-end}.aeris-toolbar[data-align=stretch] .aeris-toolbar__content{align-items:stretch}.aeris-toolbar__section,.aeris-toolbar__group{display:inline-flex;align-items:center;gap:var(--_section-gap);min-inline-size:0}.aeris-toolbar__section{flex-wrap:wrap}.aeris-toolbar[data-wrap=false] .aeris-toolbar__section{flex-wrap:nowrap}.aeris-toolbar__section--start{flex:1 1 0;justify-content:flex-start}.aeris-toolbar__section--center{flex:0 1 auto;justify-content:center}.aeris-toolbar__section--end{flex:1 1 0;justify-content:flex-end}.aeris-toolbar__group{flex:0 0 auto}.aeris-toolbar__spacer{flex:1 1 auto;min-inline-size:var(--aeris-toolbar-spacer-min-size, 1rem)}.aeris-toolbar[data-orientation=vertical]{inline-size:max-content;max-inline-size:100%}.aeris-toolbar[data-orientation=vertical] .aeris-toolbar__content,.aeris-toolbar[data-orientation=vertical] .aeris-toolbar__section,.aeris-toolbar[data-orientation=vertical] .aeris-toolbar__group{align-items:stretch;flex-direction:column}.aeris-toolbar[data-orientation=vertical] .aeris-toolbar__section{flex:0 0 auto;justify-content:flex-start}.aeris-toolbar[data-orientation=vertical] .aeris-toolbar__spacer{min-block-size:var(--aeris-toolbar-spacer-min-size, 1rem);min-inline-size:0}.aeris-toolbar[data-disabled=true]{opacity:var(--aeris-toolbar-disabled-opacity, .62)}@media(max-width:42rem){.aeris-toolbar[data-orientation=horizontal][data-wrap=true] .aeris-toolbar__section{flex:1 1 100%;justify-content:flex-start}.aeris-toolbar[data-orientation=horizontal][data-wrap=true] .aeris-toolbar__section--center{justify-content:center}.aeris-toolbar[data-orientation=horizontal][data-wrap=true] .aeris-toolbar__section--end{justify-content:flex-start}}\n"]
|
|
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"]
|
|
362
949
|
}]
|
|
363
950
|
}],
|
|
951
|
+
ctorParameters: () => [],
|
|
364
952
|
propDecorators: {
|
|
365
953
|
id: [{
|
|
366
954
|
type: i0.Input,
|
|
@@ -378,6 +966,14 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
378
966
|
required: false
|
|
379
967
|
}]
|
|
380
968
|
}],
|
|
969
|
+
attached: [{
|
|
970
|
+
type: i0.Input,
|
|
971
|
+
args: [{
|
|
972
|
+
isSignal: true,
|
|
973
|
+
alias: "attached",
|
|
974
|
+
required: false
|
|
975
|
+
}]
|
|
976
|
+
}],
|
|
381
977
|
size: [{
|
|
382
978
|
type: i0.Input,
|
|
383
979
|
args: [{
|
|
@@ -457,17 +1053,293 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
457
1053
|
alias: "ariaDescribedBy",
|
|
458
1054
|
required: false
|
|
459
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
|
+
}]
|
|
460
1328
|
}]
|
|
461
1329
|
}
|
|
462
1330
|
});
|
|
463
1331
|
const AerisToolbarModule = [
|
|
464
1332
|
AerisToolbar,
|
|
1333
|
+
AerisToolbarContainer,
|
|
1334
|
+
AerisToolbarLabel,
|
|
465
1335
|
AerisToolbarStart,
|
|
466
1336
|
AerisToolbarCenter,
|
|
467
1337
|
AerisToolbarEnd,
|
|
468
1338
|
AerisToolbarGroup,
|
|
469
|
-
AerisToolbarSpacer
|
|
1339
|
+
AerisToolbarSpacer,
|
|
1340
|
+
AerisToolbarSeparator,
|
|
1341
|
+
AerisToolbarItem
|
|
470
1342
|
];
|
|
471
|
-
export { AerisToolbar, AerisToolbarCenter, AerisToolbarEnd, AerisToolbarGroup, AerisToolbarModule, AerisToolbarSpacer, AerisToolbarStart };
|
|
1343
|
+
export { AerisToolbar, AerisToolbarCenter, AerisToolbarContainer, AerisToolbarEnd, AerisToolbarGroup, AerisToolbarItem, AerisToolbarLabel, AerisToolbarModule, AerisToolbarSeparator, AerisToolbarSpacer, AerisToolbarStart };
|
|
472
1344
|
|
|
473
1345
|
//# sourceMappingURL=aeris-ui-core-toolbar.mjs.map
|