@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
|
@@ -0,0 +1,996 @@
|
|
|
1
|
+
import { DOCUMENT, NgTemplateOutlet } from "@angular/common";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import { Component, Directive, TemplateRef, afterRenderEffect, booleanAttribute, computed, contentChild, effect, inject, input, linkedSignal, model, output, viewChild, viewChildren } from "@angular/core";
|
|
4
|
+
import * as i1 from "@aeris-ui/core/dialog";
|
|
5
|
+
import { AerisDialogModule } from "@aeris-ui/core/dialog";
|
|
6
|
+
import { AerisInputTextDirective } from "@aeris-ui/core/input-text";
|
|
7
|
+
import { AerisIconFieldComponent, AerisIconStartDirective } from "@aeris-ui/core/icon-field";
|
|
8
|
+
import { boundarySelectValue, filterSelectOptions, groupSelectOptions, nextEnabledSelectValue, ɵAerisIcon } from "@aeris-ui/core";
|
|
9
|
+
var AerisCommandPaletteItemTemplate = class AerisCommandPaletteItemTemplate {
|
|
10
|
+
template = inject(TemplateRef);
|
|
11
|
+
static ngTemplateContextGuard(_directive, context) {
|
|
12
|
+
return true;
|
|
13
|
+
}
|
|
14
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
15
|
+
minVersion: "12.0.0",
|
|
16
|
+
version: "22.2.3",
|
|
17
|
+
ngImport: i0,
|
|
18
|
+
type: AerisCommandPaletteItemTemplate,
|
|
19
|
+
deps: [],
|
|
20
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
21
|
+
});
|
|
22
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
23
|
+
minVersion: "14.0.0",
|
|
24
|
+
version: "22.2.3",
|
|
25
|
+
type: AerisCommandPaletteItemTemplate,
|
|
26
|
+
isStandalone: true,
|
|
27
|
+
selector: "ng-template[aerisCommandPaletteItem]",
|
|
28
|
+
ngImport: i0
|
|
29
|
+
});
|
|
30
|
+
};
|
|
31
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
32
|
+
minVersion: "12.0.0",
|
|
33
|
+
version: "22.2.3",
|
|
34
|
+
ngImport: i0,
|
|
35
|
+
type: AerisCommandPaletteItemTemplate,
|
|
36
|
+
decorators: [{
|
|
37
|
+
type: Directive,
|
|
38
|
+
args: [{ selector: "ng-template[aerisCommandPaletteItem]" }]
|
|
39
|
+
}]
|
|
40
|
+
});
|
|
41
|
+
var AerisCommandPaletteGroupTemplate = class AerisCommandPaletteGroupTemplate {
|
|
42
|
+
template = inject(TemplateRef);
|
|
43
|
+
static ngTemplateContextGuard(_directive, context) {
|
|
44
|
+
return true;
|
|
45
|
+
}
|
|
46
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
47
|
+
minVersion: "12.0.0",
|
|
48
|
+
version: "22.2.3",
|
|
49
|
+
ngImport: i0,
|
|
50
|
+
type: AerisCommandPaletteGroupTemplate,
|
|
51
|
+
deps: [],
|
|
52
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
53
|
+
});
|
|
54
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
55
|
+
minVersion: "14.0.0",
|
|
56
|
+
version: "22.2.3",
|
|
57
|
+
type: AerisCommandPaletteGroupTemplate,
|
|
58
|
+
isStandalone: true,
|
|
59
|
+
selector: "ng-template[aerisCommandPaletteGroup]",
|
|
60
|
+
ngImport: i0
|
|
61
|
+
});
|
|
62
|
+
};
|
|
63
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
64
|
+
minVersion: "12.0.0",
|
|
65
|
+
version: "22.2.3",
|
|
66
|
+
ngImport: i0,
|
|
67
|
+
type: AerisCommandPaletteGroupTemplate,
|
|
68
|
+
decorators: [{
|
|
69
|
+
type: Directive,
|
|
70
|
+
args: [{ selector: "ng-template[aerisCommandPaletteGroup]" }]
|
|
71
|
+
}]
|
|
72
|
+
});
|
|
73
|
+
var AerisCommandPaletteEmptyTemplate = class AerisCommandPaletteEmptyTemplate {
|
|
74
|
+
template = inject(TemplateRef);
|
|
75
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
76
|
+
minVersion: "12.0.0",
|
|
77
|
+
version: "22.2.3",
|
|
78
|
+
ngImport: i0,
|
|
79
|
+
type: AerisCommandPaletteEmptyTemplate,
|
|
80
|
+
deps: [],
|
|
81
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
82
|
+
});
|
|
83
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
84
|
+
minVersion: "14.0.0",
|
|
85
|
+
version: "22.2.3",
|
|
86
|
+
type: AerisCommandPaletteEmptyTemplate,
|
|
87
|
+
isStandalone: true,
|
|
88
|
+
selector: "ng-template[aerisCommandPaletteEmpty]",
|
|
89
|
+
ngImport: i0
|
|
90
|
+
});
|
|
91
|
+
};
|
|
92
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
93
|
+
minVersion: "12.0.0",
|
|
94
|
+
version: "22.2.3",
|
|
95
|
+
ngImport: i0,
|
|
96
|
+
type: AerisCommandPaletteEmptyTemplate,
|
|
97
|
+
decorators: [{
|
|
98
|
+
type: Directive,
|
|
99
|
+
args: [{ selector: "ng-template[aerisCommandPaletteEmpty]" }]
|
|
100
|
+
}]
|
|
101
|
+
});
|
|
102
|
+
var AerisCommandPaletteLoadingTemplate = class AerisCommandPaletteLoadingTemplate {
|
|
103
|
+
template = inject(TemplateRef);
|
|
104
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
105
|
+
minVersion: "12.0.0",
|
|
106
|
+
version: "22.2.3",
|
|
107
|
+
ngImport: i0,
|
|
108
|
+
type: AerisCommandPaletteLoadingTemplate,
|
|
109
|
+
deps: [],
|
|
110
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
111
|
+
});
|
|
112
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
113
|
+
minVersion: "14.0.0",
|
|
114
|
+
version: "22.2.3",
|
|
115
|
+
type: AerisCommandPaletteLoadingTemplate,
|
|
116
|
+
isStandalone: true,
|
|
117
|
+
selector: "ng-template[aerisCommandPaletteLoading]",
|
|
118
|
+
ngImport: i0
|
|
119
|
+
});
|
|
120
|
+
};
|
|
121
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
122
|
+
minVersion: "12.0.0",
|
|
123
|
+
version: "22.2.3",
|
|
124
|
+
ngImport: i0,
|
|
125
|
+
type: AerisCommandPaletteLoadingTemplate,
|
|
126
|
+
decorators: [{
|
|
127
|
+
type: Directive,
|
|
128
|
+
args: [{ selector: "ng-template[aerisCommandPaletteLoading]" }]
|
|
129
|
+
}]
|
|
130
|
+
});
|
|
131
|
+
var AerisCommandPaletteFooterTemplate = class AerisCommandPaletteFooterTemplate {
|
|
132
|
+
template = inject(TemplateRef);
|
|
133
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
134
|
+
minVersion: "12.0.0",
|
|
135
|
+
version: "22.2.3",
|
|
136
|
+
ngImport: i0,
|
|
137
|
+
type: AerisCommandPaletteFooterTemplate,
|
|
138
|
+
deps: [],
|
|
139
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
140
|
+
});
|
|
141
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
142
|
+
minVersion: "14.0.0",
|
|
143
|
+
version: "22.2.3",
|
|
144
|
+
type: AerisCommandPaletteFooterTemplate,
|
|
145
|
+
isStandalone: true,
|
|
146
|
+
selector: "ng-template[aerisCommandPaletteFooter]",
|
|
147
|
+
ngImport: i0
|
|
148
|
+
});
|
|
149
|
+
};
|
|
150
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
151
|
+
minVersion: "12.0.0",
|
|
152
|
+
version: "22.2.3",
|
|
153
|
+
ngImport: i0,
|
|
154
|
+
type: AerisCommandPaletteFooterTemplate,
|
|
155
|
+
decorators: [{
|
|
156
|
+
type: Directive,
|
|
157
|
+
args: [{ selector: "ng-template[aerisCommandPaletteFooter]" }]
|
|
158
|
+
}]
|
|
159
|
+
});
|
|
160
|
+
let nextCommandPaletteId = 0;
|
|
161
|
+
var AerisCommandPaletteComponent = class AerisCommandPaletteComponent {
|
|
162
|
+
commands = input([], ...ngDevMode ? [{ debugName: "commands" }] : /* istanbul ignore next */ []);
|
|
163
|
+
open = model(false, ...ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []);
|
|
164
|
+
query = model("", ...ngDevMode ? [{ debugName: "query" }] : /* istanbul ignore next */ []);
|
|
165
|
+
inline = input(false, {
|
|
166
|
+
...ngDevMode ? { debugName: "inline" } : /* istanbul ignore next */ {},
|
|
167
|
+
transform: booleanAttribute
|
|
168
|
+
});
|
|
169
|
+
filter = input(true, {
|
|
170
|
+
...ngDevMode ? { debugName: "filter" } : /* istanbul ignore next */ {},
|
|
171
|
+
transform: booleanAttribute
|
|
172
|
+
});
|
|
173
|
+
loading = input(false, {
|
|
174
|
+
...ngDevMode ? { debugName: "loading" } : /* istanbul ignore next */ {},
|
|
175
|
+
transform: booleanAttribute
|
|
176
|
+
});
|
|
177
|
+
closeOnExecute = input(true, {
|
|
178
|
+
...ngDevMode ? { debugName: "closeOnExecute" } : /* istanbul ignore next */ {},
|
|
179
|
+
transform: booleanAttribute
|
|
180
|
+
});
|
|
181
|
+
title = input("Commands", ...ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []);
|
|
182
|
+
searchAriaLabel = input("Search commands", ...ngDevMode ? [{ debugName: "searchAriaLabel" }] : /* istanbul ignore next */ []);
|
|
183
|
+
resultsAriaLabel = input("Command results", ...ngDevMode ? [{ debugName: "resultsAriaLabel" }] : /* istanbul ignore next */ []);
|
|
184
|
+
placeholder = input("Search commands…", ...ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []);
|
|
185
|
+
emptyMessage = input("No commands found", ...ngDevMode ? [{ debugName: "emptyMessage" }] : /* istanbul ignore next */ []);
|
|
186
|
+
loadingMessage = input("Loading commands", ...ngDevMode ? [{ debugName: "loadingMessage" }] : /* istanbul ignore next */ []);
|
|
187
|
+
resultsLabel = input("results", ...ngDevMode ? [{ debugName: "resultsLabel" }] : /* istanbul ignore next */ []);
|
|
188
|
+
helpText = input("Use arrow keys to navigate and Enter to run.", ...ngDevMode ? [{ debugName: "helpText" }] : /* istanbul ignore next */ []);
|
|
189
|
+
closeAriaLabel = input("Close command palette", ...ngDevMode ? [{ debugName: "closeAriaLabel" }] : /* istanbul ignore next */ []);
|
|
190
|
+
width = input("38rem", ...ngDevMode ? [{ debugName: "width" }] : /* istanbul ignore next */ []);
|
|
191
|
+
appendTo = input(...ngDevMode ? [void 0, { debugName: "appendTo" }] : /* istanbul ignore next */ []);
|
|
192
|
+
autoFocus = input(true, {
|
|
193
|
+
...ngDevMode ? { debugName: "autoFocus" } : /* istanbul ignore next */ {},
|
|
194
|
+
transform: booleanAttribute
|
|
195
|
+
});
|
|
196
|
+
restoreFocus = input(true, {
|
|
197
|
+
...ngDevMode ? { debugName: "restoreFocus" } : /* istanbul ignore next */ {},
|
|
198
|
+
transform: booleanAttribute
|
|
199
|
+
});
|
|
200
|
+
closeOnBackdropClick = input(true, {
|
|
201
|
+
...ngDevMode ? { debugName: "closeOnBackdropClick" } : /* istanbul ignore next */ {},
|
|
202
|
+
transform: booleanAttribute
|
|
203
|
+
});
|
|
204
|
+
backdropBlur = input(true, {
|
|
205
|
+
...ngDevMode ? { debugName: "backdropBlur" } : /* istanbul ignore next */ {},
|
|
206
|
+
transform: booleanAttribute
|
|
207
|
+
});
|
|
208
|
+
backdropBlurAmount = input("", ...ngDevMode ? [{ debugName: "backdropBlurAmount" }] : /* istanbul ignore next */ []);
|
|
209
|
+
shortcut = input(null, ...ngDevMode ? [{ debugName: "shortcut" }] : /* istanbul ignore next */ []);
|
|
210
|
+
executed = output();
|
|
211
|
+
opened = output();
|
|
212
|
+
closed = output();
|
|
213
|
+
document = inject(DOCUMENT);
|
|
214
|
+
id = `aeris-command-palette-${nextCommandPaletteId++}`;
|
|
215
|
+
initialFocus = `#${this.id}-input`;
|
|
216
|
+
searchInput = viewChild("searchInput", ...ngDevMode ? [{ debugName: "searchInput" }] : /* istanbul ignore next */ []);
|
|
217
|
+
results = viewChild("results", ...ngDevMode ? [{ debugName: "results" }] : /* istanbul ignore next */ []);
|
|
218
|
+
optionElements = viewChildren("optionElement", ...ngDevMode ? [{ debugName: "optionElements" }] : /* istanbul ignore next */ []);
|
|
219
|
+
itemTemplate = contentChild(AerisCommandPaletteItemTemplate, ...ngDevMode ? [{ debugName: "itemTemplate" }] : /* istanbul ignore next */ []);
|
|
220
|
+
groupTemplate = contentChild(AerisCommandPaletteGroupTemplate, ...ngDevMode ? [{ debugName: "groupTemplate" }] : /* istanbul ignore next */ []);
|
|
221
|
+
emptyTemplate = contentChild(AerisCommandPaletteEmptyTemplate, ...ngDevMode ? [{ debugName: "emptyTemplate" }] : /* istanbul ignore next */ []);
|
|
222
|
+
loadingTemplate = contentChild(AerisCommandPaletteLoadingTemplate, ...ngDevMode ? [{ debugName: "loadingTemplate" }] : /* istanbul ignore next */ []);
|
|
223
|
+
footerTemplate = contentChild(AerisCommandPaletteFooterTemplate, ...ngDevMode ? [{ debugName: "footerTemplate" }] : /* istanbul ignore next */ []);
|
|
224
|
+
commandMap = computed(() => new Map(this.commands().map((command) => [command.id, command])), ...ngDevMode ? [{ debugName: "commandMap" }] : /* istanbul ignore next */ []);
|
|
225
|
+
filteredOptions = computed(() => {
|
|
226
|
+
const options = this.commands().map((command) => ({
|
|
227
|
+
value: command.id,
|
|
228
|
+
label: command.label,
|
|
229
|
+
description: [command.description ?? "", ...command.keywords ?? []].join(" "),
|
|
230
|
+
group: command.group,
|
|
231
|
+
disabled: command.disabled
|
|
232
|
+
}));
|
|
233
|
+
return filterSelectOptions(options, this.filter() ? this.query() : "", [
|
|
234
|
+
"label",
|
|
235
|
+
"description",
|
|
236
|
+
"group"
|
|
237
|
+
], "contains");
|
|
238
|
+
}, ...ngDevMode ? [{ debugName: "filteredOptions" }] : /* istanbul ignore next */ []);
|
|
239
|
+
optionGroups = computed(() => groupSelectOptions(this.filteredOptions()), ...ngDevMode ? [{ debugName: "optionGroups" }] : /* istanbul ignore next */ []);
|
|
240
|
+
orderedOptions = computed(() => this.optionGroups().flatMap((group) => group.options), ...ngDevMode ? [{ debugName: "orderedOptions" }] : /* istanbul ignore next */ []);
|
|
241
|
+
active = linkedSignal(() => boundarySelectValue(this.orderedOptions(), "start"), ...ngDevMode ? [{ debugName: "active" }] : /* istanbul ignore next */ []);
|
|
242
|
+
groups = computed(() => {
|
|
243
|
+
const active = this.active();
|
|
244
|
+
const commands = this.commandMap();
|
|
245
|
+
let index = 0;
|
|
246
|
+
return this.optionGroups().map((group, groupIndex) => ({
|
|
247
|
+
label: group.label,
|
|
248
|
+
id: `${this.id}-group-${groupIndex}`,
|
|
249
|
+
context: {
|
|
250
|
+
$implicit: group.label ?? "",
|
|
251
|
+
group: group.label ?? ""
|
|
252
|
+
},
|
|
253
|
+
items: group.options.flatMap((option) => {
|
|
254
|
+
const command = commands.get(option.value);
|
|
255
|
+
return command ? [{
|
|
256
|
+
command,
|
|
257
|
+
id: `${this.id}-option-${index++}`,
|
|
258
|
+
active: !this.loading() && command.id === active,
|
|
259
|
+
context: {
|
|
260
|
+
$implicit: command,
|
|
261
|
+
command,
|
|
262
|
+
active: !this.loading() && command.id === active
|
|
263
|
+
}
|
|
264
|
+
}] : [];
|
|
265
|
+
})
|
|
266
|
+
}));
|
|
267
|
+
}, ...ngDevMode ? [{ debugName: "groups" }] : /* istanbul ignore next */ []);
|
|
268
|
+
activeDescendant = computed(() => this.groups().flatMap((group) => group.items).find((item) => item.active)?.id ?? null, ...ngDevMode ? [{ debugName: "activeDescendant" }] : /* istanbul ignore next */ []);
|
|
269
|
+
status = computed(() => this.loading() ? this.loadingMessage() : !this.filteredOptions().length ? this.emptyMessage() : `${this.filteredOptions().length} ${this.resultsLabel()}`, ...ngDevMode ? [{ debugName: "status" }] : /* istanbul ignore next */ []);
|
|
270
|
+
constructor() {
|
|
271
|
+
afterRenderEffect(() => this.revealActive());
|
|
272
|
+
effect((onCleanup) => {
|
|
273
|
+
const results = this.results()?.nativeElement;
|
|
274
|
+
if (!results || typeof ResizeObserver === "undefined") return;
|
|
275
|
+
const observer = new ResizeObserver(() => this.revealActive());
|
|
276
|
+
observer.observe(results);
|
|
277
|
+
onCleanup(() => observer.disconnect());
|
|
278
|
+
});
|
|
279
|
+
effect((onCleanup) => {
|
|
280
|
+
const shortcut = this.shortcut();
|
|
281
|
+
if (!shortcut || this.inline() || shortcut.key.length !== 1) return;
|
|
282
|
+
const listener = (event) => {
|
|
283
|
+
if (event.defaultPrevented || event.isComposing || event.repeat || event.key.toLocaleLowerCase() !== shortcut.key.toLocaleLowerCase()) return;
|
|
284
|
+
if (!(shortcut.modifier === "mod" ? event.ctrlKey !== event.metaKey : shortcut.modifier === "ctrl" ? event.ctrlKey && !event.metaKey : event.metaKey && !event.ctrlKey) || event.shiftKey !== !!shortcut.shift || event.altKey !== !!shortcut.alt) return;
|
|
285
|
+
if (event.composedPath().some((target) => target instanceof HTMLElement && target.matches("input,textarea,select,[contenteditable]:not([contenteditable=\"false\"]),[role=\"textbox\"],[role=\"combobox\"]"))) return;
|
|
286
|
+
event.preventDefault();
|
|
287
|
+
this.show();
|
|
288
|
+
};
|
|
289
|
+
this.document.addEventListener("keydown", listener);
|
|
290
|
+
onCleanup(() => this.document.removeEventListener("keydown", listener));
|
|
291
|
+
});
|
|
292
|
+
}
|
|
293
|
+
show() {
|
|
294
|
+
if (!this.inline()) this.open.set(true);
|
|
295
|
+
}
|
|
296
|
+
hide() {
|
|
297
|
+
this.open.set(false);
|
|
298
|
+
}
|
|
299
|
+
focus(options) {
|
|
300
|
+
this.searchInput()?.nativeElement.focus(options);
|
|
301
|
+
}
|
|
302
|
+
updateQuery(event) {
|
|
303
|
+
this.query.set(event.target.value);
|
|
304
|
+
}
|
|
305
|
+
keepSearchFocus(event) {
|
|
306
|
+
if (event.pointerType === "mouse") event.preventDefault();
|
|
307
|
+
}
|
|
308
|
+
hover(event, id) {
|
|
309
|
+
if (event.pointerType !== "mouse" || this.loading() || this.active() === id) return;
|
|
310
|
+
const option = this.orderedOptions().find((option) => option.value === id);
|
|
311
|
+
if (option && !option.disabled) this.active.set(id);
|
|
312
|
+
}
|
|
313
|
+
execute(originalEvent, id) {
|
|
314
|
+
if (this.loading() || !this.filteredOptions().some((option) => option.value === id && !option.disabled)) return;
|
|
315
|
+
const command = this.commandMap().get(id);
|
|
316
|
+
if (!command) return;
|
|
317
|
+
this.active.set(id);
|
|
318
|
+
if (this.closeOnExecute() && !this.inline()) this.hide();
|
|
319
|
+
this.executed.emit({
|
|
320
|
+
originalEvent,
|
|
321
|
+
command,
|
|
322
|
+
query: this.query()
|
|
323
|
+
});
|
|
324
|
+
}
|
|
325
|
+
onKeydown(event) {
|
|
326
|
+
if (event.isComposing) {
|
|
327
|
+
event.stopPropagation();
|
|
328
|
+
return;
|
|
329
|
+
}
|
|
330
|
+
if (event.key === "Enter") {
|
|
331
|
+
event.preventDefault();
|
|
332
|
+
const active = this.active();
|
|
333
|
+
if (!event.repeat && !event.ctrlKey && !event.metaKey && !event.altKey && !this.loading() && active !== null) this.execute(event, active);
|
|
334
|
+
return;
|
|
335
|
+
}
|
|
336
|
+
if (event.ctrlKey || event.metaKey || event.altKey || this.loading()) return;
|
|
337
|
+
let next;
|
|
338
|
+
switch (event.key) {
|
|
339
|
+
case "ArrowDown":
|
|
340
|
+
next = nextEnabledSelectValue(this.orderedOptions(), this.active(), 1);
|
|
341
|
+
break;
|
|
342
|
+
case "ArrowUp":
|
|
343
|
+
next = nextEnabledSelectValue(this.orderedOptions(), this.active(), -1);
|
|
344
|
+
break;
|
|
345
|
+
case "Home":
|
|
346
|
+
if (!event.shiftKey) next = boundarySelectValue(this.orderedOptions(), "start");
|
|
347
|
+
break;
|
|
348
|
+
case "End": if (!event.shiftKey) next = boundarySelectValue(this.orderedOptions(), "end");
|
|
349
|
+
}
|
|
350
|
+
if (next !== void 0) {
|
|
351
|
+
event.preventDefault();
|
|
352
|
+
this.active.set(next);
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
revealActive() {
|
|
356
|
+
const results = this.results()?.nativeElement;
|
|
357
|
+
if (!results) return;
|
|
358
|
+
const activeId = this.activeDescendant();
|
|
359
|
+
const option = this.optionElements().find((element) => element.nativeElement.id === activeId)?.nativeElement;
|
|
360
|
+
if (!option) return;
|
|
361
|
+
if (option.offsetTop < results.scrollTop) results.scrollTop = option.offsetTop;
|
|
362
|
+
else if (option.offsetTop + option.offsetHeight > results.scrollTop + results.clientHeight) results.scrollTop = option.offsetTop + option.offsetHeight - results.clientHeight;
|
|
363
|
+
}
|
|
364
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
365
|
+
minVersion: "12.0.0",
|
|
366
|
+
version: "22.2.3",
|
|
367
|
+
ngImport: i0,
|
|
368
|
+
type: AerisCommandPaletteComponent,
|
|
369
|
+
deps: [],
|
|
370
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
371
|
+
});
|
|
372
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
373
|
+
minVersion: "17.0.0",
|
|
374
|
+
version: "22.2.3",
|
|
375
|
+
type: AerisCommandPaletteComponent,
|
|
376
|
+
isStandalone: true,
|
|
377
|
+
selector: "aeris-command-palette",
|
|
378
|
+
inputs: {
|
|
379
|
+
commands: {
|
|
380
|
+
classPropertyName: "commands",
|
|
381
|
+
publicName: "commands",
|
|
382
|
+
isSignal: true,
|
|
383
|
+
isRequired: false,
|
|
384
|
+
transformFunction: null
|
|
385
|
+
},
|
|
386
|
+
open: {
|
|
387
|
+
classPropertyName: "open",
|
|
388
|
+
publicName: "open",
|
|
389
|
+
isSignal: true,
|
|
390
|
+
isRequired: false,
|
|
391
|
+
transformFunction: null
|
|
392
|
+
},
|
|
393
|
+
query: {
|
|
394
|
+
classPropertyName: "query",
|
|
395
|
+
publicName: "query",
|
|
396
|
+
isSignal: true,
|
|
397
|
+
isRequired: false,
|
|
398
|
+
transformFunction: null
|
|
399
|
+
},
|
|
400
|
+
inline: {
|
|
401
|
+
classPropertyName: "inline",
|
|
402
|
+
publicName: "inline",
|
|
403
|
+
isSignal: true,
|
|
404
|
+
isRequired: false,
|
|
405
|
+
transformFunction: null
|
|
406
|
+
},
|
|
407
|
+
filter: {
|
|
408
|
+
classPropertyName: "filter",
|
|
409
|
+
publicName: "filter",
|
|
410
|
+
isSignal: true,
|
|
411
|
+
isRequired: false,
|
|
412
|
+
transformFunction: null
|
|
413
|
+
},
|
|
414
|
+
loading: {
|
|
415
|
+
classPropertyName: "loading",
|
|
416
|
+
publicName: "loading",
|
|
417
|
+
isSignal: true,
|
|
418
|
+
isRequired: false,
|
|
419
|
+
transformFunction: null
|
|
420
|
+
},
|
|
421
|
+
closeOnExecute: {
|
|
422
|
+
classPropertyName: "closeOnExecute",
|
|
423
|
+
publicName: "closeOnExecute",
|
|
424
|
+
isSignal: true,
|
|
425
|
+
isRequired: false,
|
|
426
|
+
transformFunction: null
|
|
427
|
+
},
|
|
428
|
+
title: {
|
|
429
|
+
classPropertyName: "title",
|
|
430
|
+
publicName: "title",
|
|
431
|
+
isSignal: true,
|
|
432
|
+
isRequired: false,
|
|
433
|
+
transformFunction: null
|
|
434
|
+
},
|
|
435
|
+
searchAriaLabel: {
|
|
436
|
+
classPropertyName: "searchAriaLabel",
|
|
437
|
+
publicName: "searchAriaLabel",
|
|
438
|
+
isSignal: true,
|
|
439
|
+
isRequired: false,
|
|
440
|
+
transformFunction: null
|
|
441
|
+
},
|
|
442
|
+
resultsAriaLabel: {
|
|
443
|
+
classPropertyName: "resultsAriaLabel",
|
|
444
|
+
publicName: "resultsAriaLabel",
|
|
445
|
+
isSignal: true,
|
|
446
|
+
isRequired: false,
|
|
447
|
+
transformFunction: null
|
|
448
|
+
},
|
|
449
|
+
placeholder: {
|
|
450
|
+
classPropertyName: "placeholder",
|
|
451
|
+
publicName: "placeholder",
|
|
452
|
+
isSignal: true,
|
|
453
|
+
isRequired: false,
|
|
454
|
+
transformFunction: null
|
|
455
|
+
},
|
|
456
|
+
emptyMessage: {
|
|
457
|
+
classPropertyName: "emptyMessage",
|
|
458
|
+
publicName: "emptyMessage",
|
|
459
|
+
isSignal: true,
|
|
460
|
+
isRequired: false,
|
|
461
|
+
transformFunction: null
|
|
462
|
+
},
|
|
463
|
+
loadingMessage: {
|
|
464
|
+
classPropertyName: "loadingMessage",
|
|
465
|
+
publicName: "loadingMessage",
|
|
466
|
+
isSignal: true,
|
|
467
|
+
isRequired: false,
|
|
468
|
+
transformFunction: null
|
|
469
|
+
},
|
|
470
|
+
resultsLabel: {
|
|
471
|
+
classPropertyName: "resultsLabel",
|
|
472
|
+
publicName: "resultsLabel",
|
|
473
|
+
isSignal: true,
|
|
474
|
+
isRequired: false,
|
|
475
|
+
transformFunction: null
|
|
476
|
+
},
|
|
477
|
+
helpText: {
|
|
478
|
+
classPropertyName: "helpText",
|
|
479
|
+
publicName: "helpText",
|
|
480
|
+
isSignal: true,
|
|
481
|
+
isRequired: false,
|
|
482
|
+
transformFunction: null
|
|
483
|
+
},
|
|
484
|
+
closeAriaLabel: {
|
|
485
|
+
classPropertyName: "closeAriaLabel",
|
|
486
|
+
publicName: "closeAriaLabel",
|
|
487
|
+
isSignal: true,
|
|
488
|
+
isRequired: false,
|
|
489
|
+
transformFunction: null
|
|
490
|
+
},
|
|
491
|
+
width: {
|
|
492
|
+
classPropertyName: "width",
|
|
493
|
+
publicName: "width",
|
|
494
|
+
isSignal: true,
|
|
495
|
+
isRequired: false,
|
|
496
|
+
transformFunction: null
|
|
497
|
+
},
|
|
498
|
+
appendTo: {
|
|
499
|
+
classPropertyName: "appendTo",
|
|
500
|
+
publicName: "appendTo",
|
|
501
|
+
isSignal: true,
|
|
502
|
+
isRequired: false,
|
|
503
|
+
transformFunction: null
|
|
504
|
+
},
|
|
505
|
+
autoFocus: {
|
|
506
|
+
classPropertyName: "autoFocus",
|
|
507
|
+
publicName: "autoFocus",
|
|
508
|
+
isSignal: true,
|
|
509
|
+
isRequired: false,
|
|
510
|
+
transformFunction: null
|
|
511
|
+
},
|
|
512
|
+
restoreFocus: {
|
|
513
|
+
classPropertyName: "restoreFocus",
|
|
514
|
+
publicName: "restoreFocus",
|
|
515
|
+
isSignal: true,
|
|
516
|
+
isRequired: false,
|
|
517
|
+
transformFunction: null
|
|
518
|
+
},
|
|
519
|
+
closeOnBackdropClick: {
|
|
520
|
+
classPropertyName: "closeOnBackdropClick",
|
|
521
|
+
publicName: "closeOnBackdropClick",
|
|
522
|
+
isSignal: true,
|
|
523
|
+
isRequired: false,
|
|
524
|
+
transformFunction: null
|
|
525
|
+
},
|
|
526
|
+
backdropBlur: {
|
|
527
|
+
classPropertyName: "backdropBlur",
|
|
528
|
+
publicName: "backdropBlur",
|
|
529
|
+
isSignal: true,
|
|
530
|
+
isRequired: false,
|
|
531
|
+
transformFunction: null
|
|
532
|
+
},
|
|
533
|
+
backdropBlurAmount: {
|
|
534
|
+
classPropertyName: "backdropBlurAmount",
|
|
535
|
+
publicName: "backdropBlurAmount",
|
|
536
|
+
isSignal: true,
|
|
537
|
+
isRequired: false,
|
|
538
|
+
transformFunction: null
|
|
539
|
+
},
|
|
540
|
+
shortcut: {
|
|
541
|
+
classPropertyName: "shortcut",
|
|
542
|
+
publicName: "shortcut",
|
|
543
|
+
isSignal: true,
|
|
544
|
+
isRequired: false,
|
|
545
|
+
transformFunction: null
|
|
546
|
+
}
|
|
547
|
+
},
|
|
548
|
+
outputs: {
|
|
549
|
+
open: "openChange",
|
|
550
|
+
query: "queryChange",
|
|
551
|
+
executed: "executed",
|
|
552
|
+
opened: "opened",
|
|
553
|
+
closed: "closed"
|
|
554
|
+
},
|
|
555
|
+
queries: [
|
|
556
|
+
{
|
|
557
|
+
propertyName: "itemTemplate",
|
|
558
|
+
first: true,
|
|
559
|
+
predicate: AerisCommandPaletteItemTemplate,
|
|
560
|
+
descendants: true,
|
|
561
|
+
isSignal: true
|
|
562
|
+
},
|
|
563
|
+
{
|
|
564
|
+
propertyName: "groupTemplate",
|
|
565
|
+
first: true,
|
|
566
|
+
predicate: AerisCommandPaletteGroupTemplate,
|
|
567
|
+
descendants: true,
|
|
568
|
+
isSignal: true
|
|
569
|
+
},
|
|
570
|
+
{
|
|
571
|
+
propertyName: "emptyTemplate",
|
|
572
|
+
first: true,
|
|
573
|
+
predicate: AerisCommandPaletteEmptyTemplate,
|
|
574
|
+
descendants: true,
|
|
575
|
+
isSignal: true
|
|
576
|
+
},
|
|
577
|
+
{
|
|
578
|
+
propertyName: "loadingTemplate",
|
|
579
|
+
first: true,
|
|
580
|
+
predicate: AerisCommandPaletteLoadingTemplate,
|
|
581
|
+
descendants: true,
|
|
582
|
+
isSignal: true
|
|
583
|
+
},
|
|
584
|
+
{
|
|
585
|
+
propertyName: "footerTemplate",
|
|
586
|
+
first: true,
|
|
587
|
+
predicate: AerisCommandPaletteFooterTemplate,
|
|
588
|
+
descendants: true,
|
|
589
|
+
isSignal: true
|
|
590
|
+
}
|
|
591
|
+
],
|
|
592
|
+
viewQueries: [
|
|
593
|
+
{
|
|
594
|
+
propertyName: "searchInput",
|
|
595
|
+
first: true,
|
|
596
|
+
predicate: ["searchInput"],
|
|
597
|
+
descendants: true,
|
|
598
|
+
isSignal: true
|
|
599
|
+
},
|
|
600
|
+
{
|
|
601
|
+
propertyName: "results",
|
|
602
|
+
first: true,
|
|
603
|
+
predicate: ["results"],
|
|
604
|
+
descendants: true,
|
|
605
|
+
isSignal: true
|
|
606
|
+
},
|
|
607
|
+
{
|
|
608
|
+
propertyName: "optionElements",
|
|
609
|
+
predicate: ["optionElement"],
|
|
610
|
+
descendants: true,
|
|
611
|
+
isSignal: true
|
|
612
|
+
}
|
|
613
|
+
],
|
|
614
|
+
ngImport: i0,
|
|
615
|
+
template: "<ng-template #searchArtwork>\n <svg\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <circle cx=\"11\" cy=\"11\" r=\"8\" />\n <path d=\"m21 21-4.3-4.3\" />\n </svg>\n</ng-template>\n<ng-template #content>\n <div class=\"aeris-command-palette\" [attr.data-inline]=\"inline() || null\">\n <div class=\"aeris-command-palette__search\">\n <aeris-icon-field fluid>\n <span\n aerisIconStart\n class=\"aeris-command-palette__search-icon\"\n aerisInternalIcon=\"search\"\n [aerisInternalIconFallback]=\"searchArtwork\"\n ></span>\n <input\n #searchInput\n aerisInputText\n fluid\n type=\"text\"\n role=\"combobox\"\n autocomplete=\"off\"\n spellcheck=\"false\"\n [id]=\"id + '-input'\"\n [placeholder]=\"placeholder()\"\n [value]=\"query()\"\n [attr.aria-label]=\"searchAriaLabel()\"\n aria-autocomplete=\"list\"\n [attr.aria-expanded]=\"inline() || open()\"\n [attr.aria-controls]=\"id + '-results'\"\n [attr.aria-activedescendant]=\"activeDescendant()\"\n (focus)=\"revealActive()\"\n (input)=\"updateQuery($event)\"\n (keydown)=\"onKeydown($event)\"\n />\n </aeris-icon-field>\n </div>\n <div\n #results\n class=\"aeris-command-palette__results\"\n role=\"listbox\"\n [id]=\"id + '-results'\"\n [attr.aria-label]=\"resultsAriaLabel()\"\n [attr.aria-busy]=\"loading() || null\"\n >\n @for (group of groups(); track group.label) {\n <div\n [attr.role]=\"group.label ? 'group' : 'presentation'\"\n [attr.aria-labelledby]=\"group.label ? group.id : null\"\n >\n @if (group.label) {\n <div class=\"aeris-command-palette__group\" [id]=\"group.id\">\n @if (groupTemplate(); as custom) {\n <ng-container\n [ngTemplateOutlet]=\"custom.template\"\n [ngTemplateOutletContext]=\"group.context\"\n />\n } @else {\n {{ group.label }}\n }\n </div>\n }\n @for (item of group.items; track item.command.id) {\n <div\n #optionElement\n class=\"aeris-command-palette__option\"\n role=\"option\"\n [id]=\"item.id\"\n [attr.aria-label]=\"item.command.label\"\n [attr.aria-selected]=\"item.active\"\n [attr.aria-disabled]=\"item.command.disabled || loading() || null\"\n [attr.aria-describedby]=\"item.command.description ? item.id + '-description' : null\"\n [attr.data-active]=\"item.active || null\"\n [attr.data-disabled]=\"item.command.disabled || loading() || null\"\n (pointerdown)=\"keepSearchFocus($event)\"\n (pointermove)=\"hover($event, item.command.id)\"\n (click)=\"execute($event, item.command.id)\"\n >\n @if (itemTemplate(); as custom) {\n <ng-container\n [ngTemplateOutlet]=\"custom.template\"\n [ngTemplateOutletContext]=\"item.context\"\n />\n @if (item.command.description) {\n <span class=\"aeris-command-palette__sr-only\" [id]=\"item.id + '-description'\">{{\n item.command.description\n }}</span>\n }\n } @else {\n <span class=\"aeris-command-palette__copy\"\n ><span>{{ item.command.label }}</span>\n @if (item.command.description) {\n <small [id]=\"item.id + '-description'\">{{ item.command.description }}</small>\n }\n </span>\n @if (item.command.shortcut) {\n <kbd class=\"aeris-command-palette__shortcut\">{{ item.command.shortcut }}</kbd>\n }\n }\n </div>\n }\n </div>\n }\n </div>\n @if (loading()) {\n <div class=\"aeris-command-palette__message\">\n @if (loadingTemplate(); as custom) {\n <ng-container [ngTemplateOutlet]=\"custom.template\" />\n } @else {\n {{ loadingMessage() }}\n }\n </div>\n } @else if (!groups().length) {\n <div class=\"aeris-command-palette__message\">\n @if (emptyTemplate(); as custom) {\n <ng-container [ngTemplateOutlet]=\"custom.template\" />\n } @else {\n {{ emptyMessage() }}\n }\n </div>\n }\n @if (footerTemplate() || helpText()) {\n <div class=\"aeris-command-palette__footer\">\n @if (footerTemplate(); as custom) {\n <ng-container [ngTemplateOutlet]=\"custom.template\" />\n } @else {\n {{ helpText() }}\n }\n </div>\n }\n <span\n class=\"aeris-command-palette__sr-only\"\n role=\"status\"\n aria-live=\"polite\"\n aria-atomic=\"true\"\n >{{ status() }}</span\n >\n </div>\n</ng-template>\n@if (inline()) {\n <ng-container [ngTemplateOutlet]=\"content\" />\n} @else {\n <aeris-dialog\n class=\"aeris-command-palette-dialog\"\n style=\"--aeris-dialog-body-padding: 0px\"\n [visible]=\"open()\"\n (visibleChange)=\"open.set($event)\"\n [header]=\"title()\"\n [ariaLabel]=\"title()\"\n [closeAriaLabel]=\"closeAriaLabel()\"\n [width]=\"width()\"\n position=\"top\"\n [appendTo]=\"appendTo()\"\n [initialFocus]=\"initialFocus\"\n [autoFocus]=\"autoFocus()\"\n [restoreFocus]=\"restoreFocus()\"\n [closeOnBackdropClick]=\"closeOnBackdropClick()\"\n [backdropBlur]=\"backdropBlur()\"\n [backdropBlurAmount]=\"backdropBlurAmount()\"\n (opened)=\"opened.emit()\"\n (closed)=\"closed.emit()\"\n >\n @if (open()) {\n <ng-container [ngTemplateOutlet]=\"content\" />\n }\n </aeris-dialog>\n}\n",
|
|
616
|
+
styles: [":host{display:contents;font:inherit}.aeris-command-palette{--_aeris-command-palette-chrome-height: 16rem;min-inline-size:0;color:var(--aeris-text, #111);background:var(--aeris-command-palette-background, var(--aeris-surface, #fff));font-size:var(--aeris-item-font-size, .875rem)}.aeris-command-palette[data-inline]{--_aeris-command-palette-chrome-height: 8rem;border:1px solid var(--aeris-border, #efefef);border-radius:var(--aeris-radius-surface, .75rem);overflow:hidden}.aeris-command-palette__search{padding:var(--aeris-command-palette-padding, .75rem)}.aeris-command-palette__search-icon{color:var(--aeris-text-2, #454545)}svg{inline-size:var(--aeris-icon-size, 1rem);block-size:var(--aeris-icon-size, 1rem)}.aeris-command-palette__results{position:relative;overflow:auto;scrollbar-width:thin;max-block-size:min(var(--aeris-command-palette-list-height, 20rem),max(3rem,100dvh - var(--_aeris-command-palette-chrome-height) - var(--aeris-safe-area-top, 0px) - var(--aeris-safe-area-bottom, 0px)));padding:.35rem}.aeris-command-palette__group{padding:var(--aeris-item-padding-y, .5rem) var(--aeris-item-padding-x, .75rem);font-size:var(--aeris-font-size-sm, .75rem);font-weight:var(--aeris-font-weight-bold, 700);letter-spacing:.055em;text-transform:uppercase;color:var(--aeris-text-2, #454545);overflow-wrap:anywhere}.aeris-command-palette__option{display:flex;align-items:center;gap:.75rem;box-sizing:border-box;min-block-size:var(--aeris-item-height, 2.5rem);padding:var(--aeris-item-padding-y, .5rem) var(--aeris-item-padding-x, .75rem);border-radius:var(--aeris-radius-item, .4375rem);cursor:pointer;overflow-wrap:anywhere;transition:background-color var(--aeris-motion-fast, .1s)}.aeris-command-palette__option[data-active]{background:var(--aeris-command-palette-active-background, var(--aeris-interactive-hover, var(--aeris-surface-2, #f3f3f3)))}.aeris-command-palette__option[data-disabled]{cursor:not-allowed;opacity:var(--aeris-disabled-opacity, .5)}.aeris-command-palette__copy{display:grid;gap:.125rem;min-inline-size:0}.aeris-command-palette__copy small{font-size:var(--aeris-font-size-md, .8125rem);color:var(--aeris-text-2, #454545)}.aeris-command-palette__shortcut{margin-inline-start:auto;flex:0 1 auto;min-inline-size:0;font:inherit;font-size:var(--aeris-font-size-sm, .75rem);color:var(--aeris-text-2, #454545);text-align:end}.aeris-command-palette__message{padding:var(--aeris-surface-padding, 1.25rem);color:var(--aeris-text-2, #454545);overflow-wrap:anywhere}.aeris-command-palette__footer{padding:.75rem;color:var(--aeris-text-2, #454545);font-size:var(--aeris-font-size-sm, .75rem);overflow-wrap:anywhere}.aeris-command-palette__sr-only{position:absolute;inline-size:1px;block-size:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}@media(prefers-reduced-motion:reduce){.aeris-command-palette__option{transition:none}}\n"],
|
|
617
|
+
dependencies: [
|
|
618
|
+
{
|
|
619
|
+
kind: "directive",
|
|
620
|
+
type: NgTemplateOutlet,
|
|
621
|
+
selector: "[ngTemplateOutlet]",
|
|
622
|
+
inputs: [
|
|
623
|
+
"ngTemplateOutletContext",
|
|
624
|
+
"ngTemplateOutlet",
|
|
625
|
+
"ngTemplateOutletInjector"
|
|
626
|
+
]
|
|
627
|
+
},
|
|
628
|
+
{
|
|
629
|
+
kind: "component",
|
|
630
|
+
type: i1.AerisDialog,
|
|
631
|
+
selector: "aeris-dialog",
|
|
632
|
+
inputs: [
|
|
633
|
+
"closeIconTemplate",
|
|
634
|
+
"maximizeIconTemplate",
|
|
635
|
+
"visible",
|
|
636
|
+
"maximized",
|
|
637
|
+
"header",
|
|
638
|
+
"appendTo",
|
|
639
|
+
"role",
|
|
640
|
+
"modal",
|
|
641
|
+
"backdrop",
|
|
642
|
+
"backdropBlur",
|
|
643
|
+
"backdropBlurAmount",
|
|
644
|
+
"closeOnBackdropClick",
|
|
645
|
+
"closeOnEscape",
|
|
646
|
+
"closable",
|
|
647
|
+
"maximizable",
|
|
648
|
+
"draggable",
|
|
649
|
+
"resizable",
|
|
650
|
+
"blockScroll",
|
|
651
|
+
"focusTrap",
|
|
652
|
+
"restoreFocus",
|
|
653
|
+
"autoFocus",
|
|
654
|
+
"initialFocus",
|
|
655
|
+
"position",
|
|
656
|
+
"size",
|
|
657
|
+
"width",
|
|
658
|
+
"minWidth",
|
|
659
|
+
"maxWidth",
|
|
660
|
+
"height",
|
|
661
|
+
"maxHeight",
|
|
662
|
+
"mobileWidth",
|
|
663
|
+
"footerLayout",
|
|
664
|
+
"closeAriaLabel",
|
|
665
|
+
"ariaLabel",
|
|
666
|
+
"ariaLabelledBy",
|
|
667
|
+
"ariaDescribedBy"
|
|
668
|
+
],
|
|
669
|
+
outputs: [
|
|
670
|
+
"visibleChange",
|
|
671
|
+
"maximizedChange",
|
|
672
|
+
"opened",
|
|
673
|
+
"closed"
|
|
674
|
+
]
|
|
675
|
+
},
|
|
676
|
+
{
|
|
677
|
+
kind: "directive",
|
|
678
|
+
type: AerisInputTextDirective,
|
|
679
|
+
selector: "input[aerisInputText]",
|
|
680
|
+
inputs: [
|
|
681
|
+
"size",
|
|
682
|
+
"appearance",
|
|
683
|
+
"invalid",
|
|
684
|
+
"touched",
|
|
685
|
+
"fluid"
|
|
686
|
+
]
|
|
687
|
+
},
|
|
688
|
+
{
|
|
689
|
+
kind: "component",
|
|
690
|
+
type: AerisIconFieldComponent,
|
|
691
|
+
selector: "aeris-icon-field",
|
|
692
|
+
inputs: [
|
|
693
|
+
"iconPosition",
|
|
694
|
+
"size",
|
|
695
|
+
"appearance",
|
|
696
|
+
"density",
|
|
697
|
+
"invalid",
|
|
698
|
+
"touched",
|
|
699
|
+
"disabled",
|
|
700
|
+
"readonly",
|
|
701
|
+
"fluid"
|
|
702
|
+
]
|
|
703
|
+
},
|
|
704
|
+
{
|
|
705
|
+
kind: "directive",
|
|
706
|
+
type: AerisIconStartDirective,
|
|
707
|
+
selector: "[aerisIconStart]",
|
|
708
|
+
inputs: ["decorative"]
|
|
709
|
+
},
|
|
710
|
+
{
|
|
711
|
+
kind: "component",
|
|
712
|
+
type: ɵAerisIcon,
|
|
713
|
+
selector: "span[aerisInternalIcon]",
|
|
714
|
+
inputs: ["aerisInternalIcon", "aerisInternalIconFallback"]
|
|
715
|
+
}
|
|
716
|
+
]
|
|
717
|
+
});
|
|
718
|
+
};
|
|
719
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
720
|
+
minVersion: "12.0.0",
|
|
721
|
+
version: "22.2.3",
|
|
722
|
+
ngImport: i0,
|
|
723
|
+
type: AerisCommandPaletteComponent,
|
|
724
|
+
decorators: [{
|
|
725
|
+
type: Component,
|
|
726
|
+
args: [{
|
|
727
|
+
selector: "aeris-command-palette",
|
|
728
|
+
imports: [
|
|
729
|
+
NgTemplateOutlet,
|
|
730
|
+
AerisDialogModule,
|
|
731
|
+
AerisInputTextDirective,
|
|
732
|
+
AerisIconFieldComponent,
|
|
733
|
+
AerisIconStartDirective,
|
|
734
|
+
ɵAerisIcon
|
|
735
|
+
],
|
|
736
|
+
template: "<ng-template #searchArtwork>\n <svg\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <circle cx=\"11\" cy=\"11\" r=\"8\" />\n <path d=\"m21 21-4.3-4.3\" />\n </svg>\n</ng-template>\n<ng-template #content>\n <div class=\"aeris-command-palette\" [attr.data-inline]=\"inline() || null\">\n <div class=\"aeris-command-palette__search\">\n <aeris-icon-field fluid>\n <span\n aerisIconStart\n class=\"aeris-command-palette__search-icon\"\n aerisInternalIcon=\"search\"\n [aerisInternalIconFallback]=\"searchArtwork\"\n ></span>\n <input\n #searchInput\n aerisInputText\n fluid\n type=\"text\"\n role=\"combobox\"\n autocomplete=\"off\"\n spellcheck=\"false\"\n [id]=\"id + '-input'\"\n [placeholder]=\"placeholder()\"\n [value]=\"query()\"\n [attr.aria-label]=\"searchAriaLabel()\"\n aria-autocomplete=\"list\"\n [attr.aria-expanded]=\"inline() || open()\"\n [attr.aria-controls]=\"id + '-results'\"\n [attr.aria-activedescendant]=\"activeDescendant()\"\n (focus)=\"revealActive()\"\n (input)=\"updateQuery($event)\"\n (keydown)=\"onKeydown($event)\"\n />\n </aeris-icon-field>\n </div>\n <div\n #results\n class=\"aeris-command-palette__results\"\n role=\"listbox\"\n [id]=\"id + '-results'\"\n [attr.aria-label]=\"resultsAriaLabel()\"\n [attr.aria-busy]=\"loading() || null\"\n >\n @for (group of groups(); track group.label) {\n <div\n [attr.role]=\"group.label ? 'group' : 'presentation'\"\n [attr.aria-labelledby]=\"group.label ? group.id : null\"\n >\n @if (group.label) {\n <div class=\"aeris-command-palette__group\" [id]=\"group.id\">\n @if (groupTemplate(); as custom) {\n <ng-container\n [ngTemplateOutlet]=\"custom.template\"\n [ngTemplateOutletContext]=\"group.context\"\n />\n } @else {\n {{ group.label }}\n }\n </div>\n }\n @for (item of group.items; track item.command.id) {\n <div\n #optionElement\n class=\"aeris-command-palette__option\"\n role=\"option\"\n [id]=\"item.id\"\n [attr.aria-label]=\"item.command.label\"\n [attr.aria-selected]=\"item.active\"\n [attr.aria-disabled]=\"item.command.disabled || loading() || null\"\n [attr.aria-describedby]=\"item.command.description ? item.id + '-description' : null\"\n [attr.data-active]=\"item.active || null\"\n [attr.data-disabled]=\"item.command.disabled || loading() || null\"\n (pointerdown)=\"keepSearchFocus($event)\"\n (pointermove)=\"hover($event, item.command.id)\"\n (click)=\"execute($event, item.command.id)\"\n >\n @if (itemTemplate(); as custom) {\n <ng-container\n [ngTemplateOutlet]=\"custom.template\"\n [ngTemplateOutletContext]=\"item.context\"\n />\n @if (item.command.description) {\n <span class=\"aeris-command-palette__sr-only\" [id]=\"item.id + '-description'\">{{\n item.command.description\n }}</span>\n }\n } @else {\n <span class=\"aeris-command-palette__copy\"\n ><span>{{ item.command.label }}</span>\n @if (item.command.description) {\n <small [id]=\"item.id + '-description'\">{{ item.command.description }}</small>\n }\n </span>\n @if (item.command.shortcut) {\n <kbd class=\"aeris-command-palette__shortcut\">{{ item.command.shortcut }}</kbd>\n }\n }\n </div>\n }\n </div>\n }\n </div>\n @if (loading()) {\n <div class=\"aeris-command-palette__message\">\n @if (loadingTemplate(); as custom) {\n <ng-container [ngTemplateOutlet]=\"custom.template\" />\n } @else {\n {{ loadingMessage() }}\n }\n </div>\n } @else if (!groups().length) {\n <div class=\"aeris-command-palette__message\">\n @if (emptyTemplate(); as custom) {\n <ng-container [ngTemplateOutlet]=\"custom.template\" />\n } @else {\n {{ emptyMessage() }}\n }\n </div>\n }\n @if (footerTemplate() || helpText()) {\n <div class=\"aeris-command-palette__footer\">\n @if (footerTemplate(); as custom) {\n <ng-container [ngTemplateOutlet]=\"custom.template\" />\n } @else {\n {{ helpText() }}\n }\n </div>\n }\n <span\n class=\"aeris-command-palette__sr-only\"\n role=\"status\"\n aria-live=\"polite\"\n aria-atomic=\"true\"\n >{{ status() }}</span\n >\n </div>\n</ng-template>\n@if (inline()) {\n <ng-container [ngTemplateOutlet]=\"content\" />\n} @else {\n <aeris-dialog\n class=\"aeris-command-palette-dialog\"\n style=\"--aeris-dialog-body-padding: 0px\"\n [visible]=\"open()\"\n (visibleChange)=\"open.set($event)\"\n [header]=\"title()\"\n [ariaLabel]=\"title()\"\n [closeAriaLabel]=\"closeAriaLabel()\"\n [width]=\"width()\"\n position=\"top\"\n [appendTo]=\"appendTo()\"\n [initialFocus]=\"initialFocus\"\n [autoFocus]=\"autoFocus()\"\n [restoreFocus]=\"restoreFocus()\"\n [closeOnBackdropClick]=\"closeOnBackdropClick()\"\n [backdropBlur]=\"backdropBlur()\"\n [backdropBlurAmount]=\"backdropBlurAmount()\"\n (opened)=\"opened.emit()\"\n (closed)=\"closed.emit()\"\n >\n @if (open()) {\n <ng-container [ngTemplateOutlet]=\"content\" />\n }\n </aeris-dialog>\n}\n",
|
|
737
|
+
styles: [":host{display:contents;font:inherit}.aeris-command-palette{--_aeris-command-palette-chrome-height: 16rem;min-inline-size:0;color:var(--aeris-text, #111);background:var(--aeris-command-palette-background, var(--aeris-surface, #fff));font-size:var(--aeris-item-font-size, .875rem)}.aeris-command-palette[data-inline]{--_aeris-command-palette-chrome-height: 8rem;border:1px solid var(--aeris-border, #efefef);border-radius:var(--aeris-radius-surface, .75rem);overflow:hidden}.aeris-command-palette__search{padding:var(--aeris-command-palette-padding, .75rem)}.aeris-command-palette__search-icon{color:var(--aeris-text-2, #454545)}svg{inline-size:var(--aeris-icon-size, 1rem);block-size:var(--aeris-icon-size, 1rem)}.aeris-command-palette__results{position:relative;overflow:auto;scrollbar-width:thin;max-block-size:min(var(--aeris-command-palette-list-height, 20rem),max(3rem,100dvh - var(--_aeris-command-palette-chrome-height) - var(--aeris-safe-area-top, 0px) - var(--aeris-safe-area-bottom, 0px)));padding:.35rem}.aeris-command-palette__group{padding:var(--aeris-item-padding-y, .5rem) var(--aeris-item-padding-x, .75rem);font-size:var(--aeris-font-size-sm, .75rem);font-weight:var(--aeris-font-weight-bold, 700);letter-spacing:.055em;text-transform:uppercase;color:var(--aeris-text-2, #454545);overflow-wrap:anywhere}.aeris-command-palette__option{display:flex;align-items:center;gap:.75rem;box-sizing:border-box;min-block-size:var(--aeris-item-height, 2.5rem);padding:var(--aeris-item-padding-y, .5rem) var(--aeris-item-padding-x, .75rem);border-radius:var(--aeris-radius-item, .4375rem);cursor:pointer;overflow-wrap:anywhere;transition:background-color var(--aeris-motion-fast, .1s)}.aeris-command-palette__option[data-active]{background:var(--aeris-command-palette-active-background, var(--aeris-interactive-hover, var(--aeris-surface-2, #f3f3f3)))}.aeris-command-palette__option[data-disabled]{cursor:not-allowed;opacity:var(--aeris-disabled-opacity, .5)}.aeris-command-palette__copy{display:grid;gap:.125rem;min-inline-size:0}.aeris-command-palette__copy small{font-size:var(--aeris-font-size-md, .8125rem);color:var(--aeris-text-2, #454545)}.aeris-command-palette__shortcut{margin-inline-start:auto;flex:0 1 auto;min-inline-size:0;font:inherit;font-size:var(--aeris-font-size-sm, .75rem);color:var(--aeris-text-2, #454545);text-align:end}.aeris-command-palette__message{padding:var(--aeris-surface-padding, 1.25rem);color:var(--aeris-text-2, #454545);overflow-wrap:anywhere}.aeris-command-palette__footer{padding:.75rem;color:var(--aeris-text-2, #454545);font-size:var(--aeris-font-size-sm, .75rem);overflow-wrap:anywhere}.aeris-command-palette__sr-only{position:absolute;inline-size:1px;block-size:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}@media(prefers-reduced-motion:reduce){.aeris-command-palette__option{transition:none}}\n"]
|
|
738
|
+
}]
|
|
739
|
+
}],
|
|
740
|
+
ctorParameters: () => [],
|
|
741
|
+
propDecorators: {
|
|
742
|
+
commands: [{
|
|
743
|
+
type: i0.Input,
|
|
744
|
+
args: [{
|
|
745
|
+
isSignal: true,
|
|
746
|
+
alias: "commands",
|
|
747
|
+
required: false
|
|
748
|
+
}]
|
|
749
|
+
}],
|
|
750
|
+
open: [{
|
|
751
|
+
type: i0.Input,
|
|
752
|
+
args: [{
|
|
753
|
+
isSignal: true,
|
|
754
|
+
alias: "open",
|
|
755
|
+
required: false
|
|
756
|
+
}]
|
|
757
|
+
}, {
|
|
758
|
+
type: i0.Output,
|
|
759
|
+
args: ["openChange"]
|
|
760
|
+
}],
|
|
761
|
+
query: [{
|
|
762
|
+
type: i0.Input,
|
|
763
|
+
args: [{
|
|
764
|
+
isSignal: true,
|
|
765
|
+
alias: "query",
|
|
766
|
+
required: false
|
|
767
|
+
}]
|
|
768
|
+
}, {
|
|
769
|
+
type: i0.Output,
|
|
770
|
+
args: ["queryChange"]
|
|
771
|
+
}],
|
|
772
|
+
inline: [{
|
|
773
|
+
type: i0.Input,
|
|
774
|
+
args: [{
|
|
775
|
+
isSignal: true,
|
|
776
|
+
alias: "inline",
|
|
777
|
+
required: false
|
|
778
|
+
}]
|
|
779
|
+
}],
|
|
780
|
+
filter: [{
|
|
781
|
+
type: i0.Input,
|
|
782
|
+
args: [{
|
|
783
|
+
isSignal: true,
|
|
784
|
+
alias: "filter",
|
|
785
|
+
required: false
|
|
786
|
+
}]
|
|
787
|
+
}],
|
|
788
|
+
loading: [{
|
|
789
|
+
type: i0.Input,
|
|
790
|
+
args: [{
|
|
791
|
+
isSignal: true,
|
|
792
|
+
alias: "loading",
|
|
793
|
+
required: false
|
|
794
|
+
}]
|
|
795
|
+
}],
|
|
796
|
+
closeOnExecute: [{
|
|
797
|
+
type: i0.Input,
|
|
798
|
+
args: [{
|
|
799
|
+
isSignal: true,
|
|
800
|
+
alias: "closeOnExecute",
|
|
801
|
+
required: false
|
|
802
|
+
}]
|
|
803
|
+
}],
|
|
804
|
+
title: [{
|
|
805
|
+
type: i0.Input,
|
|
806
|
+
args: [{
|
|
807
|
+
isSignal: true,
|
|
808
|
+
alias: "title",
|
|
809
|
+
required: false
|
|
810
|
+
}]
|
|
811
|
+
}],
|
|
812
|
+
searchAriaLabel: [{
|
|
813
|
+
type: i0.Input,
|
|
814
|
+
args: [{
|
|
815
|
+
isSignal: true,
|
|
816
|
+
alias: "searchAriaLabel",
|
|
817
|
+
required: false
|
|
818
|
+
}]
|
|
819
|
+
}],
|
|
820
|
+
resultsAriaLabel: [{
|
|
821
|
+
type: i0.Input,
|
|
822
|
+
args: [{
|
|
823
|
+
isSignal: true,
|
|
824
|
+
alias: "resultsAriaLabel",
|
|
825
|
+
required: false
|
|
826
|
+
}]
|
|
827
|
+
}],
|
|
828
|
+
placeholder: [{
|
|
829
|
+
type: i0.Input,
|
|
830
|
+
args: [{
|
|
831
|
+
isSignal: true,
|
|
832
|
+
alias: "placeholder",
|
|
833
|
+
required: false
|
|
834
|
+
}]
|
|
835
|
+
}],
|
|
836
|
+
emptyMessage: [{
|
|
837
|
+
type: i0.Input,
|
|
838
|
+
args: [{
|
|
839
|
+
isSignal: true,
|
|
840
|
+
alias: "emptyMessage",
|
|
841
|
+
required: false
|
|
842
|
+
}]
|
|
843
|
+
}],
|
|
844
|
+
loadingMessage: [{
|
|
845
|
+
type: i0.Input,
|
|
846
|
+
args: [{
|
|
847
|
+
isSignal: true,
|
|
848
|
+
alias: "loadingMessage",
|
|
849
|
+
required: false
|
|
850
|
+
}]
|
|
851
|
+
}],
|
|
852
|
+
resultsLabel: [{
|
|
853
|
+
type: i0.Input,
|
|
854
|
+
args: [{
|
|
855
|
+
isSignal: true,
|
|
856
|
+
alias: "resultsLabel",
|
|
857
|
+
required: false
|
|
858
|
+
}]
|
|
859
|
+
}],
|
|
860
|
+
helpText: [{
|
|
861
|
+
type: i0.Input,
|
|
862
|
+
args: [{
|
|
863
|
+
isSignal: true,
|
|
864
|
+
alias: "helpText",
|
|
865
|
+
required: false
|
|
866
|
+
}]
|
|
867
|
+
}],
|
|
868
|
+
closeAriaLabel: [{
|
|
869
|
+
type: i0.Input,
|
|
870
|
+
args: [{
|
|
871
|
+
isSignal: true,
|
|
872
|
+
alias: "closeAriaLabel",
|
|
873
|
+
required: false
|
|
874
|
+
}]
|
|
875
|
+
}],
|
|
876
|
+
width: [{
|
|
877
|
+
type: i0.Input,
|
|
878
|
+
args: [{
|
|
879
|
+
isSignal: true,
|
|
880
|
+
alias: "width",
|
|
881
|
+
required: false
|
|
882
|
+
}]
|
|
883
|
+
}],
|
|
884
|
+
appendTo: [{
|
|
885
|
+
type: i0.Input,
|
|
886
|
+
args: [{
|
|
887
|
+
isSignal: true,
|
|
888
|
+
alias: "appendTo",
|
|
889
|
+
required: false
|
|
890
|
+
}]
|
|
891
|
+
}],
|
|
892
|
+
autoFocus: [{
|
|
893
|
+
type: i0.Input,
|
|
894
|
+
args: [{
|
|
895
|
+
isSignal: true,
|
|
896
|
+
alias: "autoFocus",
|
|
897
|
+
required: false
|
|
898
|
+
}]
|
|
899
|
+
}],
|
|
900
|
+
restoreFocus: [{
|
|
901
|
+
type: i0.Input,
|
|
902
|
+
args: [{
|
|
903
|
+
isSignal: true,
|
|
904
|
+
alias: "restoreFocus",
|
|
905
|
+
required: false
|
|
906
|
+
}]
|
|
907
|
+
}],
|
|
908
|
+
closeOnBackdropClick: [{
|
|
909
|
+
type: i0.Input,
|
|
910
|
+
args: [{
|
|
911
|
+
isSignal: true,
|
|
912
|
+
alias: "closeOnBackdropClick",
|
|
913
|
+
required: false
|
|
914
|
+
}]
|
|
915
|
+
}],
|
|
916
|
+
backdropBlur: [{
|
|
917
|
+
type: i0.Input,
|
|
918
|
+
args: [{
|
|
919
|
+
isSignal: true,
|
|
920
|
+
alias: "backdropBlur",
|
|
921
|
+
required: false
|
|
922
|
+
}]
|
|
923
|
+
}],
|
|
924
|
+
backdropBlurAmount: [{
|
|
925
|
+
type: i0.Input,
|
|
926
|
+
args: [{
|
|
927
|
+
isSignal: true,
|
|
928
|
+
alias: "backdropBlurAmount",
|
|
929
|
+
required: false
|
|
930
|
+
}]
|
|
931
|
+
}],
|
|
932
|
+
shortcut: [{
|
|
933
|
+
type: i0.Input,
|
|
934
|
+
args: [{
|
|
935
|
+
isSignal: true,
|
|
936
|
+
alias: "shortcut",
|
|
937
|
+
required: false
|
|
938
|
+
}]
|
|
939
|
+
}],
|
|
940
|
+
executed: [{
|
|
941
|
+
type: i0.Output,
|
|
942
|
+
args: ["executed"]
|
|
943
|
+
}],
|
|
944
|
+
opened: [{
|
|
945
|
+
type: i0.Output,
|
|
946
|
+
args: ["opened"]
|
|
947
|
+
}],
|
|
948
|
+
closed: [{
|
|
949
|
+
type: i0.Output,
|
|
950
|
+
args: ["closed"]
|
|
951
|
+
}],
|
|
952
|
+
searchInput: [{
|
|
953
|
+
type: i0.ViewChild,
|
|
954
|
+
args: ["searchInput", { isSignal: true }]
|
|
955
|
+
}],
|
|
956
|
+
results: [{
|
|
957
|
+
type: i0.ViewChild,
|
|
958
|
+
args: ["results", { isSignal: true }]
|
|
959
|
+
}],
|
|
960
|
+
optionElements: [{
|
|
961
|
+
type: i0.ViewChildren,
|
|
962
|
+
args: ["optionElement", { isSignal: true }]
|
|
963
|
+
}],
|
|
964
|
+
itemTemplate: [{
|
|
965
|
+
type: i0.ContentChild,
|
|
966
|
+
args: [i0.forwardRef(() => AerisCommandPaletteItemTemplate), { isSignal: true }]
|
|
967
|
+
}],
|
|
968
|
+
groupTemplate: [{
|
|
969
|
+
type: i0.ContentChild,
|
|
970
|
+
args: [i0.forwardRef(() => AerisCommandPaletteGroupTemplate), { isSignal: true }]
|
|
971
|
+
}],
|
|
972
|
+
emptyTemplate: [{
|
|
973
|
+
type: i0.ContentChild,
|
|
974
|
+
args: [i0.forwardRef(() => AerisCommandPaletteEmptyTemplate), { isSignal: true }]
|
|
975
|
+
}],
|
|
976
|
+
loadingTemplate: [{
|
|
977
|
+
type: i0.ContentChild,
|
|
978
|
+
args: [i0.forwardRef(() => AerisCommandPaletteLoadingTemplate), { isSignal: true }]
|
|
979
|
+
}],
|
|
980
|
+
footerTemplate: [{
|
|
981
|
+
type: i0.ContentChild,
|
|
982
|
+
args: [i0.forwardRef(() => AerisCommandPaletteFooterTemplate), { isSignal: true }]
|
|
983
|
+
}]
|
|
984
|
+
}
|
|
985
|
+
});
|
|
986
|
+
const AerisCommandPalette = [
|
|
987
|
+
AerisCommandPaletteComponent,
|
|
988
|
+
AerisCommandPaletteItemTemplate,
|
|
989
|
+
AerisCommandPaletteGroupTemplate,
|
|
990
|
+
AerisCommandPaletteEmptyTemplate,
|
|
991
|
+
AerisCommandPaletteLoadingTemplate,
|
|
992
|
+
AerisCommandPaletteFooterTemplate
|
|
993
|
+
];
|
|
994
|
+
export { AerisCommandPalette, AerisCommandPaletteComponent, AerisCommandPaletteEmptyTemplate, AerisCommandPaletteFooterTemplate, AerisCommandPaletteGroupTemplate, AerisCommandPaletteItemTemplate, AerisCommandPaletteLoadingTemplate };
|
|
995
|
+
|
|
996
|
+
//# sourceMappingURL=aeris-ui-core-command-palette.mjs.map
|