@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,6 +1,146 @@
|
|
|
1
|
-
import { DOCUMENT } from "@angular/common";
|
|
1
|
+
import { DOCUMENT, NgComponentOutlet, NgTemplateOutlet } from "@angular/common";
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
import { DestroyRef, Directive, ElementRef, InjectionToken, Renderer2, effect, inject, input, output } from "@angular/core";
|
|
3
|
+
import { Component, DestroyRef, Directive, ElementRef, InjectionToken, Renderer2, afterNextRender, computed, effect, inject, input, output, signal } from "@angular/core";
|
|
4
|
+
const AERIS_ICONS = new InjectionToken("AERIS_ICONS");
|
|
5
|
+
function provideAerisIcons(icons) {
|
|
6
|
+
const overrides = { ...icons };
|
|
7
|
+
return {
|
|
8
|
+
provide: AERIS_ICONS,
|
|
9
|
+
useFactory: () => ({
|
|
10
|
+
...inject(AERIS_ICONS, {
|
|
11
|
+
optional: true,
|
|
12
|
+
skipSelf: true
|
|
13
|
+
}),
|
|
14
|
+
...overrides
|
|
15
|
+
})
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
var ɵAerisIcon = class ɵAerisIcon {
|
|
19
|
+
aerisInternalIcon = input.required(...ngDevMode ? [{ debugName: "aerisInternalIcon" }] : /* istanbul ignore next */ []);
|
|
20
|
+
aerisInternalIconFallback = input(...ngDevMode ? [void 0, { debugName: "aerisInternalIconFallback" }] : /* istanbul ignore next */ []);
|
|
21
|
+
icons = inject(AERIS_ICONS, { optional: true });
|
|
22
|
+
component = computed(() => {
|
|
23
|
+
const name = this.aerisInternalIcon();
|
|
24
|
+
return name ? this.icons?.[name] ?? null : null;
|
|
25
|
+
}, ...ngDevMode ? [{ debugName: "component" }] : /* istanbul ignore next */ []);
|
|
26
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
27
|
+
minVersion: "12.0.0",
|
|
28
|
+
version: "22.2.3",
|
|
29
|
+
ngImport: i0,
|
|
30
|
+
type: ɵAerisIcon,
|
|
31
|
+
deps: [],
|
|
32
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
33
|
+
});
|
|
34
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
35
|
+
minVersion: "17.0.0",
|
|
36
|
+
version: "22.2.3",
|
|
37
|
+
type: ɵAerisIcon,
|
|
38
|
+
isStandalone: true,
|
|
39
|
+
selector: "span[aerisInternalIcon]",
|
|
40
|
+
inputs: {
|
|
41
|
+
aerisInternalIcon: {
|
|
42
|
+
classPropertyName: "aerisInternalIcon",
|
|
43
|
+
publicName: "aerisInternalIcon",
|
|
44
|
+
isSignal: true,
|
|
45
|
+
isRequired: true,
|
|
46
|
+
transformFunction: null
|
|
47
|
+
},
|
|
48
|
+
aerisInternalIconFallback: {
|
|
49
|
+
classPropertyName: "aerisInternalIconFallback",
|
|
50
|
+
publicName: "aerisInternalIconFallback",
|
|
51
|
+
isSignal: true,
|
|
52
|
+
isRequired: false,
|
|
53
|
+
transformFunction: null
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
host: {
|
|
57
|
+
attributes: { "aria-hidden": "true" },
|
|
58
|
+
properties: {
|
|
59
|
+
"attr.data-aeris-global-icon": "component() ? aerisInternalIcon() : null",
|
|
60
|
+
"attr.data-aeris-custom-icon": "component() ? \"\" : null"
|
|
61
|
+
},
|
|
62
|
+
classAttribute: "aeris-internal-icon"
|
|
63
|
+
},
|
|
64
|
+
ngImport: i0,
|
|
65
|
+
template: `
|
|
66
|
+
@if (component(); as icon) {
|
|
67
|
+
<ng-container [ngComponentOutlet]="icon" />
|
|
68
|
+
} @else if (aerisInternalIconFallback(); as fallback) {
|
|
69
|
+
<ng-container [ngTemplateOutlet]="fallback" />
|
|
70
|
+
}
|
|
71
|
+
`,
|
|
72
|
+
isInline: true,
|
|
73
|
+
styles: [":host(.aeris-internal-icon[data-aeris-global-icon][data-aeris-custom-icon]){display:inline-flex;align-items:center;justify-content:center;line-height:0;pointer-events:none;background:transparent;border:0;box-shadow:none;-webkit-mask:none;mask:none}:host([data-aeris-global-icon][data-aeris-custom-icon]):before,:host([data-aeris-global-icon][data-aeris-custom-icon]):after{display:none}\n"],
|
|
74
|
+
dependencies: [{
|
|
75
|
+
kind: "directive",
|
|
76
|
+
type: NgComponentOutlet,
|
|
77
|
+
selector: "[ngComponentOutlet]",
|
|
78
|
+
inputs: [
|
|
79
|
+
"ngComponentOutlet",
|
|
80
|
+
"ngComponentOutletInputs",
|
|
81
|
+
"ngComponentOutletInjector",
|
|
82
|
+
"ngComponentOutletEnvironmentInjector",
|
|
83
|
+
"ngComponentOutletContent",
|
|
84
|
+
"ngComponentOutletNgModule"
|
|
85
|
+
],
|
|
86
|
+
exportAs: ["ngComponentOutlet"]
|
|
87
|
+
}, {
|
|
88
|
+
kind: "directive",
|
|
89
|
+
type: NgTemplateOutlet,
|
|
90
|
+
selector: "[ngTemplateOutlet]",
|
|
91
|
+
inputs: [
|
|
92
|
+
"ngTemplateOutletContext",
|
|
93
|
+
"ngTemplateOutlet",
|
|
94
|
+
"ngTemplateOutletInjector"
|
|
95
|
+
]
|
|
96
|
+
}]
|
|
97
|
+
});
|
|
98
|
+
};
|
|
99
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
100
|
+
minVersion: "12.0.0",
|
|
101
|
+
version: "22.2.3",
|
|
102
|
+
ngImport: i0,
|
|
103
|
+
type: ɵAerisIcon,
|
|
104
|
+
decorators: [{
|
|
105
|
+
type: Component,
|
|
106
|
+
args: [{
|
|
107
|
+
selector: "span[aerisInternalIcon]",
|
|
108
|
+
imports: [NgComponentOutlet, NgTemplateOutlet],
|
|
109
|
+
template: `
|
|
110
|
+
@if (component(); as icon) {
|
|
111
|
+
<ng-container [ngComponentOutlet]="icon" />
|
|
112
|
+
} @else if (aerisInternalIconFallback(); as fallback) {
|
|
113
|
+
<ng-container [ngTemplateOutlet]="fallback" />
|
|
114
|
+
}
|
|
115
|
+
`,
|
|
116
|
+
host: {
|
|
117
|
+
class: "aeris-internal-icon",
|
|
118
|
+
"aria-hidden": "true",
|
|
119
|
+
"[attr.data-aeris-global-icon]": "component() ? aerisInternalIcon() : null",
|
|
120
|
+
"[attr.data-aeris-custom-icon]": "component() ? \"\" : null"
|
|
121
|
+
},
|
|
122
|
+
styles: [":host(.aeris-internal-icon[data-aeris-global-icon][data-aeris-custom-icon]){display:inline-flex;align-items:center;justify-content:center;line-height:0;pointer-events:none;background:transparent;border:0;box-shadow:none;-webkit-mask:none;mask:none}:host([data-aeris-global-icon][data-aeris-custom-icon]):before,:host([data-aeris-global-icon][data-aeris-custom-icon]):after{display:none}\n"]
|
|
123
|
+
}]
|
|
124
|
+
}],
|
|
125
|
+
propDecorators: {
|
|
126
|
+
aerisInternalIcon: [{
|
|
127
|
+
type: i0.Input,
|
|
128
|
+
args: [{
|
|
129
|
+
isSignal: true,
|
|
130
|
+
alias: "aerisInternalIcon",
|
|
131
|
+
required: true
|
|
132
|
+
}]
|
|
133
|
+
}],
|
|
134
|
+
aerisInternalIconFallback: [{
|
|
135
|
+
type: i0.Input,
|
|
136
|
+
args: [{
|
|
137
|
+
isSignal: true,
|
|
138
|
+
alias: "aerisInternalIconFallback",
|
|
139
|
+
required: false
|
|
140
|
+
}]
|
|
141
|
+
}]
|
|
142
|
+
}
|
|
143
|
+
});
|
|
4
144
|
function aerisInternalDisplayInvalid(invalid, touched) {
|
|
5
145
|
return invalid && (touched ?? true);
|
|
6
146
|
}
|
|
@@ -104,7 +244,7 @@ function placementCandidates(preferred, preserveAxis) {
|
|
|
104
244
|
}
|
|
105
245
|
function rawPosition(placement, options) {
|
|
106
246
|
if (placement === "top" || placement === "bottom") return {
|
|
107
|
-
x: aligned(options.target.left, options.target.width, options.width, options.alignment),
|
|
247
|
+
x: aligned(options.target.left, options.target.width, options.width, options.direction === "rtl" && options.alignment !== "center" ? options.alignment === "start" ? "end" : "start" : options.alignment),
|
|
108
248
|
y: placement === "bottom" ? options.target.bottom + options.offset : options.target.top - options.height - options.offset
|
|
109
249
|
};
|
|
110
250
|
return {
|
|
@@ -278,6 +418,10 @@ var ɵAerisAppendTo = class ɵAerisAppendTo {
|
|
|
278
418
|
restoringToOrigin = false;
|
|
279
419
|
unconstrainedPanelWidth = 0;
|
|
280
420
|
unconstrainedPanelHeight = 0;
|
|
421
|
+
targetOverride = signal(void 0, ...ngDevMode ? [{ debugName: "targetOverride" }] : /* istanbul ignore next */ []);
|
|
422
|
+
setTarget(target) {
|
|
423
|
+
this.targetOverride.set(target);
|
|
424
|
+
}
|
|
281
425
|
aerisInternalAppendTo = input(...ngDevMode ? [void 0, { debugName: "aerisInternalAppendTo" }] : /* istanbul ignore next */ []);
|
|
282
426
|
aerisInternalAppendToDefault = input("self", ...ngDevMode ? [{ debugName: "aerisInternalAppendToDefault" }] : /* istanbul ignore next */ []);
|
|
283
427
|
aerisInternalAppendToAnchor = input(null, ...ngDevMode ? [{ debugName: "aerisInternalAppendToAnchor" }] : /* istanbul ignore next */ []);
|
|
@@ -291,7 +435,12 @@ var ɵAerisAppendTo = class ɵAerisAppendTo {
|
|
|
291
435
|
aerisInternalAppendToOutside = output();
|
|
292
436
|
constructor() {
|
|
293
437
|
effect((onCleanup) => {
|
|
294
|
-
const
|
|
438
|
+
const dismiss = this.aerisInternalAppendToDismiss();
|
|
439
|
+
if (dismiss) {
|
|
440
|
+
ɵregisterAerisOverlay(this.document, this.element, dismiss);
|
|
441
|
+
onCleanup(() => ɵunregisterAerisOverlay(this.document, this.element));
|
|
442
|
+
}
|
|
443
|
+
const target = aerisInternalResolveAppendTo(this.targetOverride() ?? this.aerisInternalAppendTo() ?? this.defaultAppendTo ?? this.aerisInternalAppendToDefault(), this.document);
|
|
295
444
|
const anchor = this.aerisInternalAppendToAnchor();
|
|
296
445
|
const automaticallyPortaled = this.aerisInternalAppendTo() === void 0 && target === "self" && !!anchor && this.hasClippingAncestor(anchor);
|
|
297
446
|
const effectiveTarget = automaticallyPortaled ? this.document.body : target;
|
|
@@ -305,8 +454,6 @@ var ɵAerisAppendTo = class ɵAerisAppendTo {
|
|
|
305
454
|
const positioningTarget = effectiveTarget === "self" ? this.element.parentElement : effectiveTarget;
|
|
306
455
|
if (!positioningTarget) return;
|
|
307
456
|
const inheritedStyles = this.preserveInheritedStyles();
|
|
308
|
-
const dismiss = this.aerisInternalAppendToDismiss();
|
|
309
|
-
if (dismiss) ɵregisterAerisOverlay(this.document, this.element, dismiss);
|
|
310
457
|
const stopViewport = !anchor && effectiveTarget === this.document.body ? aerisInternalObserveViewport(this.element, this.document) : () => void 0;
|
|
311
458
|
const positioningStyles = this.preserveInlineStyles([
|
|
312
459
|
"position",
|
|
@@ -357,7 +504,6 @@ var ɵAerisAppendTo = class ɵAerisAppendTo {
|
|
|
357
504
|
if (anchor && view) this.positionConnectedOverlay(anchor, positioningTarget, view);
|
|
358
505
|
onCleanup(() => {
|
|
359
506
|
stopViewport();
|
|
360
|
-
if (dismiss) ɵunregisterAerisOverlay(this.document, this.element);
|
|
361
507
|
view?.removeEventListener("resize", reposition);
|
|
362
508
|
visualViewport?.removeEventListener("resize", reposition);
|
|
363
509
|
visualViewport?.removeEventListener("scroll", reposition);
|
|
@@ -386,6 +532,9 @@ var ɵAerisAppendTo = class ɵAerisAppendTo {
|
|
|
386
532
|
ɵunregisterAerisOverlay(this.document, this.element);
|
|
387
533
|
this.restoreToOrigin();
|
|
388
534
|
}
|
|
535
|
+
isTopmost() {
|
|
536
|
+
return ɵisTopmostAerisOverlay(this.document, this.element);
|
|
537
|
+
}
|
|
389
538
|
schedulePosition(anchor, target) {
|
|
390
539
|
if (!anchor || this.frame !== null) return;
|
|
391
540
|
const view = this.document.defaultView;
|
|
@@ -604,7 +753,7 @@ var ɵAerisAppendTo = class ɵAerisAppendTo {
|
|
|
604
753
|
}
|
|
605
754
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
606
755
|
minVersion: "12.0.0",
|
|
607
|
-
version: "22.2.
|
|
756
|
+
version: "22.2.3",
|
|
608
757
|
ngImport: i0,
|
|
609
758
|
type: ɵAerisAppendTo,
|
|
610
759
|
deps: [],
|
|
@@ -612,7 +761,7 @@ var ɵAerisAppendTo = class ɵAerisAppendTo {
|
|
|
612
761
|
});
|
|
613
762
|
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
614
763
|
minVersion: "17.1.0",
|
|
615
|
-
version: "22.2.
|
|
764
|
+
version: "22.2.3",
|
|
616
765
|
type: ɵAerisAppendTo,
|
|
617
766
|
isStandalone: true,
|
|
618
767
|
selector: "[aerisInternalAppendTo]",
|
|
@@ -694,7 +843,7 @@ var ɵAerisAppendTo = class ɵAerisAppendTo {
|
|
|
694
843
|
};
|
|
695
844
|
i0.ɵɵngDeclareClassMetadata({
|
|
696
845
|
minVersion: "12.0.0",
|
|
697
|
-
version: "22.2.
|
|
846
|
+
version: "22.2.3",
|
|
698
847
|
ngImport: i0,
|
|
699
848
|
type: ɵAerisAppendTo,
|
|
700
849
|
decorators: [{
|
|
@@ -875,6 +1024,166 @@ function selectPanelPixels(value) {
|
|
|
875
1024
|
if (!Number.isFinite(amount)) return 288;
|
|
876
1025
|
return normalized.endsWith("rem") ? amount * 16 : amount;
|
|
877
1026
|
}
|
|
1027
|
+
function aerisInternalLocalDate(year, monthIndex, day) {
|
|
1028
|
+
if (year < 0 || year >= 100) return new Date(year, monthIndex, day);
|
|
1029
|
+
const result = /* @__PURE__ */ new Date(0);
|
|
1030
|
+
result.setFullYear(year, monthIndex, day);
|
|
1031
|
+
result.setHours(0, 0, 0, 0);
|
|
1032
|
+
return result;
|
|
1033
|
+
}
|
|
1034
|
+
function aerisInternalDateAtMidnight(date) {
|
|
1035
|
+
return aerisInternalLocalDate(date.getFullYear(), date.getMonth(), date.getDate());
|
|
1036
|
+
}
|
|
1037
|
+
function aerisInternalReadDate(date) {
|
|
1038
|
+
return {
|
|
1039
|
+
year: date.getFullYear(),
|
|
1040
|
+
month: date.getMonth() + 1,
|
|
1041
|
+
day: date.getDate()
|
|
1042
|
+
};
|
|
1043
|
+
}
|
|
1044
|
+
function aerisInternalReadTime(date) {
|
|
1045
|
+
return {
|
|
1046
|
+
hours: date.getHours(),
|
|
1047
|
+
minutes: date.getMinutes(),
|
|
1048
|
+
seconds: date.getSeconds()
|
|
1049
|
+
};
|
|
1050
|
+
}
|
|
1051
|
+
function aerisInternalDaysInMonth(year, month) {
|
|
1052
|
+
if (!Number.isInteger(year) || !Number.isInteger(month) || month < 1 || month > 12) return 0;
|
|
1053
|
+
if (month === 2) return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0) ? 29 : 28;
|
|
1054
|
+
return [
|
|
1055
|
+
4,
|
|
1056
|
+
6,
|
|
1057
|
+
9,
|
|
1058
|
+
11
|
|
1059
|
+
].includes(month) ? 30 : 31;
|
|
1060
|
+
}
|
|
1061
|
+
function validPart(value, minimum, maximum) {
|
|
1062
|
+
return value === null || Number.isInteger(value) && value >= minimum && value <= maximum;
|
|
1063
|
+
}
|
|
1064
|
+
function aerisInternalResolveDateDraft(draft) {
|
|
1065
|
+
const { year, month, day } = draft;
|
|
1066
|
+
if (year === null && month === null && day === null) return {
|
|
1067
|
+
state: "empty",
|
|
1068
|
+
value: null
|
|
1069
|
+
};
|
|
1070
|
+
if (!validPart(year, 1, 9999) || !validPart(month, 1, 12) || !validPart(day, 1, 31)) return {
|
|
1071
|
+
state: "invalid",
|
|
1072
|
+
value: null
|
|
1073
|
+
};
|
|
1074
|
+
if (year === null || month === null || day === null) return {
|
|
1075
|
+
state: "incomplete",
|
|
1076
|
+
value: null
|
|
1077
|
+
};
|
|
1078
|
+
if (day > aerisInternalDaysInMonth(year, month)) return {
|
|
1079
|
+
state: "invalid",
|
|
1080
|
+
value: null
|
|
1081
|
+
};
|
|
1082
|
+
return {
|
|
1083
|
+
state: "complete",
|
|
1084
|
+
value: {
|
|
1085
|
+
year,
|
|
1086
|
+
month,
|
|
1087
|
+
day
|
|
1088
|
+
}
|
|
1089
|
+
};
|
|
1090
|
+
}
|
|
1091
|
+
function aerisInternalResolveTimeDraft(draft) {
|
|
1092
|
+
const { hours, minutes, seconds } = draft;
|
|
1093
|
+
if (hours === null && minutes === null && seconds === null) return {
|
|
1094
|
+
state: "empty",
|
|
1095
|
+
value: null
|
|
1096
|
+
};
|
|
1097
|
+
if (!validPart(hours, 0, 23) || !validPart(minutes, 0, 59) || !validPart(seconds, 0, 59)) return {
|
|
1098
|
+
state: "invalid",
|
|
1099
|
+
value: null
|
|
1100
|
+
};
|
|
1101
|
+
if (hours === null || minutes === null || seconds === null) return {
|
|
1102
|
+
state: "incomplete",
|
|
1103
|
+
value: null
|
|
1104
|
+
};
|
|
1105
|
+
return {
|
|
1106
|
+
state: "complete",
|
|
1107
|
+
value: {
|
|
1108
|
+
hours,
|
|
1109
|
+
minutes,
|
|
1110
|
+
seconds
|
|
1111
|
+
}
|
|
1112
|
+
};
|
|
1113
|
+
}
|
|
1114
|
+
function aerisInternalFormatDateParts(parts) {
|
|
1115
|
+
return `${parts.year < 0 ? String(parts.year) : String(parts.year).padStart(4, "0")}-${String(parts.month).padStart(2, "0")}-${String(parts.day).padStart(2, "0")}`;
|
|
1116
|
+
}
|
|
1117
|
+
function aerisInternalFormatTimeParts(parts, showSeconds = false) {
|
|
1118
|
+
const time = `${String(parts.hours).padStart(2, "0")}:${String(parts.minutes).padStart(2, "0")}`;
|
|
1119
|
+
return showSeconds ? `${time}:${String(parts.seconds).padStart(2, "0")}` : time;
|
|
1120
|
+
}
|
|
1121
|
+
function aerisInternalParseDateParts(value) {
|
|
1122
|
+
const match = /^(\d{4})-(\d{2})-(\d{2})$/.exec(value.trim());
|
|
1123
|
+
if (!match) return null;
|
|
1124
|
+
return aerisInternalResolveDateDraft({
|
|
1125
|
+
year: Number(match[1]),
|
|
1126
|
+
month: Number(match[2]),
|
|
1127
|
+
day: Number(match[3])
|
|
1128
|
+
}).value;
|
|
1129
|
+
}
|
|
1130
|
+
function aerisInternalParseTimeParts(value) {
|
|
1131
|
+
const match = /^(\d{2}):(\d{2})(?::(\d{2}))?$/.exec(value.trim());
|
|
1132
|
+
if (!match) return null;
|
|
1133
|
+
return aerisInternalResolveTimeDraft({
|
|
1134
|
+
hours: Number(match[1]),
|
|
1135
|
+
minutes: Number(match[2]),
|
|
1136
|
+
seconds: Number(match[3] ?? 0)
|
|
1137
|
+
}).value;
|
|
1138
|
+
}
|
|
1139
|
+
function aerisInternalDateFromParts(date, time) {
|
|
1140
|
+
if (!aerisInternalResolveDateDraft(date).value || time && !aerisInternalResolveTimeDraft(time).value) return null;
|
|
1141
|
+
const result = aerisInternalLocalDate(date.year, date.month - 1, date.day);
|
|
1142
|
+
if (time) result.setHours(time.hours, time.minutes, time.seconds, 0);
|
|
1143
|
+
return result.getFullYear() === date.year && result.getMonth() === date.month - 1 && result.getDate() === date.day && (!time || result.getHours() === time.hours && result.getMinutes() === time.minutes && result.getSeconds() === time.seconds) ? result : null;
|
|
1144
|
+
}
|
|
1145
|
+
function aerisInternalToTwelveHour(hours) {
|
|
1146
|
+
return hours % 12 || 12;
|
|
1147
|
+
}
|
|
1148
|
+
function aerisInternalFromTwelveHour(hour, period) {
|
|
1149
|
+
return (hour === 12 ? 0 : hour) + (period === "PM" ? 12 : 0);
|
|
1150
|
+
}
|
|
1151
|
+
function aerisInternalCalendarDayIndex(date) {
|
|
1152
|
+
const utc = /* @__PURE__ */ new Date(0);
|
|
1153
|
+
utc.setUTCFullYear(date.getFullYear(), date.getMonth(), date.getDate());
|
|
1154
|
+
return utc.getTime() / 864e5;
|
|
1155
|
+
}
|
|
1156
|
+
function aerisInternalLocaleFirstDay(locale) {
|
|
1157
|
+
try {
|
|
1158
|
+
const value = new Intl.Locale(locale);
|
|
1159
|
+
return ((value.getWeekInfo?.() ?? value.weekInfo)?.firstDay ?? 7) % 7;
|
|
1160
|
+
} catch {
|
|
1161
|
+
return 0;
|
|
1162
|
+
}
|
|
1163
|
+
}
|
|
1164
|
+
function aerisInternalDateTimeLayout(locale, kind, hourCycle = "24", showSeconds = false) {
|
|
1165
|
+
const formatter = new Intl.DateTimeFormat(locale, {
|
|
1166
|
+
calendar: "gregory",
|
|
1167
|
+
timeZone: "UTC",
|
|
1168
|
+
...kind === "date" ? {
|
|
1169
|
+
year: "numeric",
|
|
1170
|
+
month: "2-digit",
|
|
1171
|
+
day: "2-digit"
|
|
1172
|
+
} : {
|
|
1173
|
+
hour: "2-digit",
|
|
1174
|
+
minute: "2-digit",
|
|
1175
|
+
second: showSeconds ? "2-digit" : void 0,
|
|
1176
|
+
hourCycle: hourCycle === "12" ? "h12" : "h23"
|
|
1177
|
+
}
|
|
1178
|
+
});
|
|
1179
|
+
const layout = [];
|
|
1180
|
+
for (const part of formatter.formatToParts(new Date(Date.UTC(2006, 10, 22, 13, 14, 15)))) if (part.type === "literal") layout.push({
|
|
1181
|
+
type: "literal",
|
|
1182
|
+
value: part.value
|
|
1183
|
+
});
|
|
1184
|
+
else if (part.type === "year" || part.type === "month" || part.type === "day" || part.type === "hour" || part.type === "minute" || part.type === "second" || part.type === "dayPeriod") layout.push({ type: part.type });
|
|
1185
|
+
return layout;
|
|
1186
|
+
}
|
|
878
1187
|
const BASE_FOCUSABLE_SELECTORS = [
|
|
879
1188
|
"a[href]",
|
|
880
1189
|
"area[href]",
|
|
@@ -1023,7 +1332,318 @@ function aerisInternalListenForColumnResize(document, move, end) {
|
|
|
1023
1332
|
document.removeEventListener("pointercancel", end);
|
|
1024
1333
|
};
|
|
1025
1334
|
}
|
|
1026
|
-
|
|
1027
|
-
|
|
1335
|
+
var ɵAerisCellEditor = class ɵAerisCellEditor {
|
|
1336
|
+
element = inject(ElementRef).nativeElement;
|
|
1337
|
+
destroyRef = inject(DestroyRef);
|
|
1338
|
+
aerisInternalCellEditor = input.required(...ngDevMode ? [{ debugName: "aerisInternalCellEditor" }] : /* istanbul ignore next */ []);
|
|
1339
|
+
timer = null;
|
|
1340
|
+
constructor() {
|
|
1341
|
+
afterNextRender(() => {
|
|
1342
|
+
(aerisInternalFocusableElements(this.element, { checkComputedVisibility: true })[0] ?? this.element).focus({ preventScroll: true });
|
|
1343
|
+
const document = this.element.ownerDocument;
|
|
1344
|
+
const leave = (event) => {
|
|
1345
|
+
if (this.owns(event.target)) return;
|
|
1346
|
+
this.scheduleCommit(event);
|
|
1347
|
+
};
|
|
1348
|
+
document.addEventListener("pointerdown", leave, true);
|
|
1349
|
+
document.addEventListener("focusin", leave);
|
|
1350
|
+
this.destroyRef.onDestroy(() => {
|
|
1351
|
+
document.removeEventListener("pointerdown", leave, true);
|
|
1352
|
+
document.removeEventListener("focusin", leave);
|
|
1353
|
+
});
|
|
1354
|
+
});
|
|
1355
|
+
this.destroyRef.onDestroy(() => {
|
|
1356
|
+
if (this.timer !== null) clearTimeout(this.timer);
|
|
1357
|
+
});
|
|
1358
|
+
}
|
|
1359
|
+
handleKeydown(event) {
|
|
1360
|
+
if (event.defaultPrevented || event.isComposing) return;
|
|
1361
|
+
if (this.element.querySelector("[aria-expanded=\"true\"][aria-controls]")) return;
|
|
1362
|
+
if (event.key === "Enter") {
|
|
1363
|
+
if (event.target.closest("textarea,[contenteditable=\"true\"],button")) return;
|
|
1364
|
+
event.preventDefault();
|
|
1365
|
+
event.stopPropagation();
|
|
1366
|
+
this.aerisInternalCellEditor().commit(event);
|
|
1367
|
+
return;
|
|
1368
|
+
}
|
|
1369
|
+
if (event.key !== "Escape") return;
|
|
1370
|
+
event.preventDefault();
|
|
1371
|
+
event.stopPropagation();
|
|
1372
|
+
this.aerisInternalCellEditor().cancel(event);
|
|
1373
|
+
}
|
|
1374
|
+
handleFocusOut(event) {
|
|
1375
|
+
if (this.owns(event.relatedTarget)) return;
|
|
1376
|
+
if (!event.relatedTarget && this.element.querySelector("[aria-expanded=\"true\"][aria-controls]")) return;
|
|
1377
|
+
this.scheduleCommit(event);
|
|
1378
|
+
}
|
|
1379
|
+
scheduleCommit(event) {
|
|
1380
|
+
const editor = this.aerisInternalCellEditor();
|
|
1381
|
+
if (this.timer !== null) clearTimeout(this.timer);
|
|
1382
|
+
this.timer = setTimeout(() => {
|
|
1383
|
+
this.timer = null;
|
|
1384
|
+
if (this.destroyRef.destroyed || this.aerisInternalCellEditor() !== editor) return;
|
|
1385
|
+
if (event.type !== "pointerdown" && this.owns(this.element.ownerDocument.activeElement)) return;
|
|
1386
|
+
editor.commit(event);
|
|
1387
|
+
}, 0);
|
|
1388
|
+
}
|
|
1389
|
+
owns(target) {
|
|
1390
|
+
if (!(target instanceof Node)) return false;
|
|
1391
|
+
const roots = [this.element];
|
|
1392
|
+
const visited = /* @__PURE__ */ new Set();
|
|
1393
|
+
for (const root of roots) {
|
|
1394
|
+
if (visited.has(root)) continue;
|
|
1395
|
+
visited.add(root);
|
|
1396
|
+
if (root.contains(target)) return true;
|
|
1397
|
+
for (const controller of [root, ...root.querySelectorAll("[aria-controls], [aria-owns]")]) {
|
|
1398
|
+
const ids = `${controller.getAttribute("aria-controls") ?? ""} ${controller.getAttribute("aria-owns") ?? ""}`;
|
|
1399
|
+
for (const id of ids.split(/\s+/).filter(Boolean)) {
|
|
1400
|
+
const panel = this.element.ownerDocument.getElementById(id);
|
|
1401
|
+
if (panel && !visited.has(panel)) roots.push(panel);
|
|
1402
|
+
}
|
|
1403
|
+
}
|
|
1404
|
+
}
|
|
1405
|
+
return false;
|
|
1406
|
+
}
|
|
1407
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1408
|
+
minVersion: "12.0.0",
|
|
1409
|
+
version: "22.2.3",
|
|
1410
|
+
ngImport: i0,
|
|
1411
|
+
type: ɵAerisCellEditor,
|
|
1412
|
+
deps: [],
|
|
1413
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
1414
|
+
});
|
|
1415
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
1416
|
+
minVersion: "17.1.0",
|
|
1417
|
+
version: "22.2.3",
|
|
1418
|
+
type: ɵAerisCellEditor,
|
|
1419
|
+
isStandalone: true,
|
|
1420
|
+
selector: "[aerisInternalCellEditor]",
|
|
1421
|
+
inputs: { aerisInternalCellEditor: {
|
|
1422
|
+
classPropertyName: "aerisInternalCellEditor",
|
|
1423
|
+
publicName: "aerisInternalCellEditor",
|
|
1424
|
+
isSignal: true,
|
|
1425
|
+
isRequired: true,
|
|
1426
|
+
transformFunction: null
|
|
1427
|
+
} },
|
|
1428
|
+
host: {
|
|
1429
|
+
attributes: { "tabindex": "-1" },
|
|
1430
|
+
listeners: {
|
|
1431
|
+
"keydown": "handleKeydown($event)",
|
|
1432
|
+
"focusout": "handleFocusOut($event)",
|
|
1433
|
+
"click": "$event.stopPropagation()",
|
|
1434
|
+
"dblclick": "$event.stopPropagation()"
|
|
1435
|
+
},
|
|
1436
|
+
classAttribute: "aeris-cell-editor"
|
|
1437
|
+
},
|
|
1438
|
+
ngImport: i0
|
|
1439
|
+
});
|
|
1440
|
+
};
|
|
1441
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
1442
|
+
minVersion: "12.0.0",
|
|
1443
|
+
version: "22.2.3",
|
|
1444
|
+
ngImport: i0,
|
|
1445
|
+
type: ɵAerisCellEditor,
|
|
1446
|
+
decorators: [{
|
|
1447
|
+
type: Directive,
|
|
1448
|
+
args: [{
|
|
1449
|
+
selector: "[aerisInternalCellEditor]",
|
|
1450
|
+
host: {
|
|
1451
|
+
class: "aeris-cell-editor",
|
|
1452
|
+
tabindex: "-1",
|
|
1453
|
+
"(keydown)": "handleKeydown($event)",
|
|
1454
|
+
"(focusout)": "handleFocusOut($event)",
|
|
1455
|
+
"(click)": "$event.stopPropagation()",
|
|
1456
|
+
"(dblclick)": "$event.stopPropagation()"
|
|
1457
|
+
}
|
|
1458
|
+
}]
|
|
1459
|
+
}],
|
|
1460
|
+
ctorParameters: () => [],
|
|
1461
|
+
propDecorators: { aerisInternalCellEditor: [{
|
|
1462
|
+
type: i0.Input,
|
|
1463
|
+
args: [{
|
|
1464
|
+
isSignal: true,
|
|
1465
|
+
alias: "aerisInternalCellEditor",
|
|
1466
|
+
required: true
|
|
1467
|
+
}]
|
|
1468
|
+
}] }
|
|
1469
|
+
});
|
|
1470
|
+
function aerisInternalOrderPinnedColumns(columns) {
|
|
1471
|
+
if (!columns.some((column) => column.pinned)) return columns;
|
|
1472
|
+
return [
|
|
1473
|
+
...columns.filter((column) => column.pinned === "start"),
|
|
1474
|
+
...columns.filter((column) => !column.pinned),
|
|
1475
|
+
...columns.filter((column) => column.pinned === "end")
|
|
1476
|
+
];
|
|
1477
|
+
}
|
|
1478
|
+
function aerisInternalPinnedRowSides(pins) {
|
|
1479
|
+
const result = /* @__PURE__ */ new Map();
|
|
1480
|
+
for (const key of pins.bottom) if (key.trim()) result.set(key, "bottom");
|
|
1481
|
+
for (const key of pins.top) if (key.trim()) result.set(key, "top");
|
|
1482
|
+
return result;
|
|
1483
|
+
}
|
|
1484
|
+
function aerisInternalOrderPinnedRows(rows, sides, key) {
|
|
1485
|
+
if (!sides.size) return rows;
|
|
1486
|
+
const top = [], middle = [], bottom = [];
|
|
1487
|
+
for (const row of rows) {
|
|
1488
|
+
const side = sides.get(key(row));
|
|
1489
|
+
(side === "top" ? top : side === "bottom" ? bottom : middle).push(row);
|
|
1490
|
+
}
|
|
1491
|
+
return [
|
|
1492
|
+
...top,
|
|
1493
|
+
...middle,
|
|
1494
|
+
...bottom
|
|
1495
|
+
];
|
|
1496
|
+
}
|
|
1497
|
+
var ɵAerisTablePinning = class ɵAerisTablePinning {
|
|
1498
|
+
aerisInternalTablePinning = input(true, ...ngDevMode ? [{ debugName: "aerisInternalTablePinning" }] : /* istanbul ignore next */ []);
|
|
1499
|
+
viewport = inject(ElementRef).nativeElement;
|
|
1500
|
+
destroyRef = inject(DestroyRef);
|
|
1501
|
+
scheduler = aerisInternalCreateFrameScheduler(() => this.measure());
|
|
1502
|
+
resizeObserver = null;
|
|
1503
|
+
observed = /* @__PURE__ */ new Set();
|
|
1504
|
+
started = false;
|
|
1505
|
+
constructor() {
|
|
1506
|
+
effect(() => {
|
|
1507
|
+
this.aerisInternalTablePinning();
|
|
1508
|
+
if (this.started) this.scheduler.schedule();
|
|
1509
|
+
});
|
|
1510
|
+
afterNextRender(() => {
|
|
1511
|
+
this.started = true;
|
|
1512
|
+
if (typeof ResizeObserver !== "undefined") this.resizeObserver = new ResizeObserver(() => this.scheduler.schedule());
|
|
1513
|
+
const mutations = new MutationObserver(() => this.scheduler.schedule());
|
|
1514
|
+
mutations.observe(this.viewport, {
|
|
1515
|
+
childList: true,
|
|
1516
|
+
subtree: true,
|
|
1517
|
+
attributes: true,
|
|
1518
|
+
attributeFilter: ["data-pinned-column", "data-pinned-row"]
|
|
1519
|
+
});
|
|
1520
|
+
this.measure();
|
|
1521
|
+
this.destroyRef.onDestroy(() => mutations.disconnect());
|
|
1522
|
+
});
|
|
1523
|
+
this.destroyRef.onDestroy(() => {
|
|
1524
|
+
this.resizeObserver?.disconnect();
|
|
1525
|
+
this.observed.clear();
|
|
1526
|
+
this.scheduler.cancel();
|
|
1527
|
+
});
|
|
1528
|
+
}
|
|
1529
|
+
measure() {
|
|
1530
|
+
if (this.destroyRef.destroyed) return;
|
|
1531
|
+
const table = this.viewport.querySelector("table");
|
|
1532
|
+
if (!table) return;
|
|
1533
|
+
const headers = Array.from(table.tHead?.rows ?? []);
|
|
1534
|
+
const headerCells = Array.from(headers[0]?.cells ?? []);
|
|
1535
|
+
const pinnedRows = Array.from(table.tBodies[0]?.rows ?? []).filter((row) => row.hasAttribute("data-pinned-row"));
|
|
1536
|
+
const wanted = /* @__PURE__ */ new Set([
|
|
1537
|
+
this.viewport,
|
|
1538
|
+
table,
|
|
1539
|
+
...headers,
|
|
1540
|
+
...headerCells,
|
|
1541
|
+
...pinnedRows
|
|
1542
|
+
]);
|
|
1543
|
+
for (const element of this.observed) if (!wanted.has(element)) {
|
|
1544
|
+
this.resizeObserver?.unobserve(element);
|
|
1545
|
+
this.observed.delete(element);
|
|
1546
|
+
}
|
|
1547
|
+
for (const element of wanted) if (!this.observed.has(element)) {
|
|
1548
|
+
this.observed.add(element);
|
|
1549
|
+
this.resizeObserver?.observe(element);
|
|
1550
|
+
}
|
|
1551
|
+
const stacked = getComputedStyle(table).display === "block";
|
|
1552
|
+
let headerHeight = 0;
|
|
1553
|
+
for (const header of headers) {
|
|
1554
|
+
header.style.setProperty("--aeris-table-header-offset", `${headerHeight}px`);
|
|
1555
|
+
headerHeight += header.getBoundingClientRect().height;
|
|
1556
|
+
}
|
|
1557
|
+
const headerDisabled = stacked || headerHeight > Math.max(0, this.viewport.clientHeight - 44);
|
|
1558
|
+
this.viewport.toggleAttribute("data-pin-header-disabled", headerDisabled);
|
|
1559
|
+
if (!this.aerisInternalTablePinning() || headerDisabled) headerHeight = 0;
|
|
1560
|
+
const offsets = /* @__PURE__ */ new Map();
|
|
1561
|
+
let start = 0, end = 0;
|
|
1562
|
+
for (const cell of headerCells) if (cell.dataset["pinnedColumn"] === "start") {
|
|
1563
|
+
offsets.set(cell.dataset["field"] ?? "", {
|
|
1564
|
+
side: "start",
|
|
1565
|
+
offset: start
|
|
1566
|
+
});
|
|
1567
|
+
start += cell.getBoundingClientRect().width;
|
|
1568
|
+
}
|
|
1569
|
+
for (const cell of [...headerCells].reverse()) if (cell.dataset["pinnedColumn"] === "end") {
|
|
1570
|
+
offsets.set(cell.dataset["field"] ?? "", {
|
|
1571
|
+
side: "end",
|
|
1572
|
+
offset: end
|
|
1573
|
+
});
|
|
1574
|
+
end += cell.getBoundingClientRect().width;
|
|
1575
|
+
}
|
|
1576
|
+
const inlineDisabled = stacked || start + end > Math.max(0, this.viewport.clientWidth - 44);
|
|
1577
|
+
this.viewport.toggleAttribute("data-pin-inline-disabled", inlineDisabled);
|
|
1578
|
+
for (const cell of table.querySelectorAll(":scope > thead > tr > th[data-pinned-column], :scope > tbody > tr > td[data-pinned-column]")) {
|
|
1579
|
+
const pin = offsets.get(cell.dataset["field"] ?? "");
|
|
1580
|
+
cell.style.setProperty("--aeris-table-pin-start", pin?.side === "start" ? `${pin.offset}px` : "auto");
|
|
1581
|
+
cell.style.setProperty("--aeris-table-pin-end", pin?.side === "end" ? `${pin.offset}px` : "auto");
|
|
1582
|
+
}
|
|
1583
|
+
let top = 0, bottom = 0;
|
|
1584
|
+
for (const row of pinnedRows) if (row.dataset["pinnedRow"] === "top") {
|
|
1585
|
+
row.style.setProperty("--aeris-table-row-offset", `${headerHeight + top}px`);
|
|
1586
|
+
top += row.getBoundingClientRect().height;
|
|
1587
|
+
}
|
|
1588
|
+
for (const row of [...pinnedRows].reverse()) if (row.dataset["pinnedRow"] === "bottom") {
|
|
1589
|
+
row.style.setProperty("--aeris-table-row-offset", `${bottom}px`);
|
|
1590
|
+
bottom += row.getBoundingClientRect().height;
|
|
1591
|
+
}
|
|
1592
|
+
const blockDisabled = stacked || top + bottom > Math.max(0, this.viewport.clientHeight - headerHeight - 44);
|
|
1593
|
+
this.viewport.toggleAttribute("data-pin-block-disabled", blockDisabled);
|
|
1594
|
+
this.viewport.style.scrollPaddingBlockStart = `${headerHeight + (blockDisabled ? 0 : top)}px`;
|
|
1595
|
+
this.viewport.style.scrollPaddingBlockEnd = `${blockDisabled ? 0 : bottom}px`;
|
|
1596
|
+
this.viewport.style.scrollPaddingInlineStart = `${inlineDisabled ? 0 : start}px`;
|
|
1597
|
+
this.viewport.style.scrollPaddingInlineEnd = `${inlineDisabled ? 0 : end}px`;
|
|
1598
|
+
}
|
|
1599
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1600
|
+
minVersion: "12.0.0",
|
|
1601
|
+
version: "22.2.3",
|
|
1602
|
+
ngImport: i0,
|
|
1603
|
+
type: ɵAerisTablePinning,
|
|
1604
|
+
deps: [],
|
|
1605
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
1606
|
+
});
|
|
1607
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
1608
|
+
minVersion: "17.1.0",
|
|
1609
|
+
version: "22.2.3",
|
|
1610
|
+
type: ɵAerisTablePinning,
|
|
1611
|
+
isStandalone: true,
|
|
1612
|
+
selector: "[aerisInternalTablePinning]",
|
|
1613
|
+
inputs: { aerisInternalTablePinning: {
|
|
1614
|
+
classPropertyName: "aerisInternalTablePinning",
|
|
1615
|
+
publicName: "aerisInternalTablePinning",
|
|
1616
|
+
isSignal: true,
|
|
1617
|
+
isRequired: false,
|
|
1618
|
+
transformFunction: null
|
|
1619
|
+
} },
|
|
1620
|
+
host: { properties: { "attr.data-sticky-header": "aerisInternalTablePinning()" } },
|
|
1621
|
+
ngImport: i0
|
|
1622
|
+
});
|
|
1623
|
+
};
|
|
1624
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
1625
|
+
minVersion: "12.0.0",
|
|
1626
|
+
version: "22.2.3",
|
|
1627
|
+
ngImport: i0,
|
|
1628
|
+
type: ɵAerisTablePinning,
|
|
1629
|
+
decorators: [{
|
|
1630
|
+
type: Directive,
|
|
1631
|
+
args: [{
|
|
1632
|
+
selector: "[aerisInternalTablePinning]",
|
|
1633
|
+
host: { "[attr.data-sticky-header]": "aerisInternalTablePinning()" }
|
|
1634
|
+
}]
|
|
1635
|
+
}],
|
|
1636
|
+
ctorParameters: () => [],
|
|
1637
|
+
propDecorators: { aerisInternalTablePinning: [{
|
|
1638
|
+
type: i0.Input,
|
|
1639
|
+
args: [{
|
|
1640
|
+
isSignal: true,
|
|
1641
|
+
alias: "aerisInternalTablePinning",
|
|
1642
|
+
required: false
|
|
1643
|
+
}]
|
|
1644
|
+
}] }
|
|
1645
|
+
});
|
|
1646
|
+
const AERIS_UI_VERSION = "22.0.0-alpha.11";
|
|
1647
|
+
export { AERIS_OVERLAY_APPEND_TO, AERIS_UI_VERSION, aerisInternalApplyMeasuredColumnWidths, aerisInternalCalendarDayIndex, aerisInternalClampColumnResizeDelta, aerisInternalClampOverlayPoint, aerisInternalColumnResizeDirection, aerisInternalColumnSeparatorValues, aerisInternalColumnWidthPixels, aerisInternalCreateFrameScheduler, aerisInternalDateAtMidnight, aerisInternalDateFromParts, aerisInternalDateTimeLayout, aerisInternalDaysInMonth, aerisInternalFocusInitialElement, aerisInternalFocusableElements, aerisInternalFormatDateParts, aerisInternalFormatTimeParts, aerisInternalFromTwelveHour, aerisInternalIsFocusable, aerisInternalListenForColumnResize, aerisInternalLocalDate, aerisInternalLocaleFirstDay, aerisInternalMeasureColumnWidths, aerisInternalObserveViewport, aerisInternalOrderPinnedColumns, aerisInternalOrderPinnedRows, aerisInternalParseDateParts, aerisInternalParseTimeParts, aerisInternalPinnedRowSides, aerisInternalPixelWidth, aerisInternalPositionAnchoredOverlay, aerisInternalReadDate, aerisInternalReadTime, aerisInternalResolveDateDraft, aerisInternalSetColumnPairWidths, aerisInternalToTwelveHour, aerisInternalTrapTabFocus, aerisInternalViewportBounds, boundarySelectValue, dismissTopAerisOverlay, filterSelectOptions, groupSelectOptions, nextEnabledSelectValue, provideAerisIcons, selectVirtualRange, ɵAerisAppendTo, ɵAerisCellEditor, ɵAerisIcon, ɵAerisTablePinning, aerisInternalDisplayInvalid as ɵaerisDisplayInvalid, aerisInternalResolveAppendTo as ɵaerisResolveAppendTo, ɵisTopmostAerisOverlay, ɵlockAerisDocumentScroll, ɵregisterAerisOverlay, ɵunlockAerisDocumentScroll, ɵunregisterAerisOverlay };
|
|
1028
1648
|
|
|
1029
1649
|
//# sourceMappingURL=aeris-ui-core.mjs.map
|