@edsis/ui 0.0.2 → 0.0.3
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/empty/README.md +1 -1
- package/fesm2022/edsis-ui-accordion.mjs +15 -15
- package/fesm2022/edsis-ui-alert-dialog.mjs +27 -27
- package/fesm2022/edsis-ui-alert.mjs +12 -12
- package/fesm2022/edsis-ui-aspect-ratio.mjs +3 -3
- package/fesm2022/edsis-ui-avatar.mjs +18 -18
- package/fesm2022/edsis-ui-badge.mjs +3 -3
- package/fesm2022/edsis-ui-breadcrumb.mjs +21 -21
- package/fesm2022/edsis-ui-button-group.mjs +9 -9
- package/fesm2022/edsis-ui-button.mjs +3 -3
- package/fesm2022/edsis-ui-calendar.mjs +3 -3
- package/fesm2022/edsis-ui-card.mjs +21 -21
- package/fesm2022/edsis-ui-carousel.mjs +18 -18
- package/fesm2022/edsis-ui-chart.mjs +80 -78
- package/fesm2022/edsis-ui-chart.mjs.map +1 -1
- package/fesm2022/edsis-ui-checkbox.mjs +3 -3
- package/fesm2022/edsis-ui-collapsible.mjs +12 -12
- package/fesm2022/edsis-ui-combobox.mjs +3 -3
- package/fesm2022/edsis-ui-command.mjs +41 -35
- package/fesm2022/edsis-ui-command.mjs.map +1 -1
- package/fesm2022/edsis-ui-composer.mjs +21 -21
- package/fesm2022/edsis-ui-context-menu.mjs +13 -7
- package/fesm2022/edsis-ui-context-menu.mjs.map +1 -1
- package/fesm2022/edsis-ui-date-picker.mjs +3 -3
- package/fesm2022/edsis-ui-dialog.mjs +27 -23
- package/fesm2022/edsis-ui-dialog.mjs.map +1 -1
- package/fesm2022/edsis-ui-dropdown-menu.mjs +58 -46
- package/fesm2022/edsis-ui-dropdown-menu.mjs.map +1 -1
- package/fesm2022/edsis-ui-editor.mjs +22 -20
- package/fesm2022/edsis-ui-editor.mjs.map +1 -1
- package/fesm2022/edsis-ui-empty.mjs +18 -18
- package/fesm2022/edsis-ui-form.mjs +38 -38
- package/fesm2022/edsis-ui-form.mjs.map +1 -1
- package/fesm2022/edsis-ui-hover-card.mjs +34 -13
- package/fesm2022/edsis-ui-hover-card.mjs.map +1 -1
- package/fesm2022/edsis-ui-input-group.mjs +18 -18
- package/fesm2022/edsis-ui-input-otp.mjs +15 -15
- package/fesm2022/edsis-ui-input.mjs +3 -3
- package/fesm2022/edsis-ui-item.mjs +30 -30
- package/fesm2022/edsis-ui-kanban.mjs +27 -27
- package/fesm2022/edsis-ui-kbd.mjs +6 -6
- package/fesm2022/edsis-ui-label.mjs +3 -3
- package/fesm2022/edsis-ui-layout-services.mjs +6 -0
- package/fesm2022/edsis-ui-layout-services.mjs.map +1 -0
- package/fesm2022/edsis-ui-layout-types.mjs +6 -0
- package/fesm2022/edsis-ui-layout-types.mjs.map +1 -0
- package/fesm2022/edsis-ui-layout.mjs +572 -0
- package/fesm2022/edsis-ui-layout.mjs.map +1 -0
- package/fesm2022/edsis-ui-menubar.mjs +22 -16
- package/fesm2022/edsis-ui-menubar.mjs.map +1 -1
- package/fesm2022/edsis-ui-native-select.mjs +9 -9
- package/fesm2022/edsis-ui-nav-service.mjs +343 -0
- package/fesm2022/edsis-ui-nav-service.mjs.map +1 -0
- package/fesm2022/edsis-ui-nav.mjs +2340 -0
- package/fesm2022/edsis-ui-nav.mjs.map +1 -0
- package/fesm2022/edsis-ui-navigation-menu.mjs +30 -24
- package/fesm2022/edsis-ui-navigation-menu.mjs.map +1 -1
- package/fesm2022/edsis-ui-page.mjs +397 -0
- package/fesm2022/edsis-ui-page.mjs.map +1 -0
- package/fesm2022/edsis-ui-pagination.mjs +3 -3
- package/fesm2022/edsis-ui-pillbox.mjs +16 -16
- package/fesm2022/edsis-ui-pillbox.mjs.map +1 -1
- package/fesm2022/edsis-ui-popover.mjs +16 -10
- package/fesm2022/edsis-ui-popover.mjs.map +1 -1
- package/fesm2022/edsis-ui-progress.mjs +3 -3
- package/fesm2022/edsis-ui-radio.mjs +6 -6
- package/fesm2022/edsis-ui-resizable.mjs +12 -12
- package/fesm2022/edsis-ui-scroll-area.mjs +3 -3
- package/fesm2022/edsis-ui-select.mjs +6 -6
- package/fesm2022/edsis-ui-separator.mjs +3 -3
- package/fesm2022/edsis-ui-sheet.mjs +27 -23
- package/fesm2022/edsis-ui-sheet.mjs.map +1 -1
- package/fesm2022/edsis-ui-skeleton.mjs +3 -3
- package/fesm2022/edsis-ui-slider.mjs +6 -6
- package/fesm2022/edsis-ui-spinner.mjs +3 -3
- package/fesm2022/edsis-ui-switch.mjs +3 -3
- package/fesm2022/edsis-ui-table.mjs +24 -24
- package/fesm2022/edsis-ui-tabs.mjs +18 -18
- package/fesm2022/edsis-ui-textarea.mjs +3 -3
- package/fesm2022/edsis-ui-theme.mjs +209 -0
- package/fesm2022/edsis-ui-theme.mjs.map +1 -0
- package/fesm2022/edsis-ui-timeline.mjs +18 -18
- package/fesm2022/edsis-ui-toast.mjs +3 -3
- package/fesm2022/edsis-ui-toggle-group.mjs +9 -9
- package/fesm2022/edsis-ui-toggle.mjs +3 -3
- package/fesm2022/edsis-ui-tooltip.mjs +12 -12
- package/layout/README.md +454 -0
- package/nav/README.md +96 -0
- package/package.json +31 -2
- package/page/README.md +46 -0
- package/types/edsis-ui-command.d.ts +4 -1
- package/types/edsis-ui-context-menu.d.ts +2 -1
- package/types/edsis-ui-dropdown-menu.d.ts +5 -2
- package/types/edsis-ui-editor.d.ts +1 -0
- package/types/edsis-ui-hover-card.d.ts +3 -1
- package/types/edsis-ui-layout-services.d.ts +1 -0
- package/types/edsis-ui-layout-types.d.ts +1 -0
- package/types/edsis-ui-layout.d.ts +153 -0
- package/types/edsis-ui-menubar.d.ts +2 -0
- package/types/edsis-ui-nav-service.d.ts +138 -0
- package/types/edsis-ui-nav.d.ts +205 -0
- package/types/edsis-ui-navigation-menu.d.ts +2 -0
- package/types/edsis-ui-page.d.ts +137 -0
- package/types/edsis-ui-popover.d.ts +2 -1
- package/types/edsis-ui-theme.d.ts +71 -0
|
@@ -11,6 +11,7 @@ declare abstract class CommandContextBase {
|
|
|
11
11
|
abstract focusFirst(): void;
|
|
12
12
|
abstract hasVisibleItems(): boolean;
|
|
13
13
|
abstract activateOnly(item: CommandItemComponent): void;
|
|
14
|
+
abstract activeDescendantId(): string | null;
|
|
14
15
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CommandContextBase, never>;
|
|
15
16
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CommandContextBase, never, never, {}, {}, never, never, true, never>;
|
|
16
17
|
}
|
|
@@ -18,7 +19,6 @@ declare class CommandComponent extends CommandContextBase {
|
|
|
18
19
|
readonly query: _angular_core.ModelSignal<string>;
|
|
19
20
|
readonly class: _angular_core.InputSignal<string>;
|
|
20
21
|
private readonly items;
|
|
21
|
-
private readonly activeIndex;
|
|
22
22
|
protected readonly classes: _angular_core.Signal<string>;
|
|
23
23
|
matches(text: string): boolean;
|
|
24
24
|
registerItem(item: CommandItemComponent): void;
|
|
@@ -29,8 +29,10 @@ declare class CommandComponent extends CommandContextBase {
|
|
|
29
29
|
focusFirst(): void;
|
|
30
30
|
hasVisibleItems(): boolean;
|
|
31
31
|
activateOnly(item: CommandItemComponent): void;
|
|
32
|
+
activeDescendantId(): string | null;
|
|
32
33
|
/** Returns the first visible item's text if any. Used when user hits Enter with no active. */
|
|
33
34
|
getActive(): CommandItemComponent | null;
|
|
35
|
+
private setActiveItem;
|
|
34
36
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CommandComponent, never>;
|
|
35
37
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CommandComponent, "ui-command", never, { "query": { "alias": "query"; "required": false; "isSignal": true; }; "class": { "alias": "class"; "required": false; "isSignal": true; }; }, { "query": "queryChange"; }, never, ["*"], true, never>;
|
|
36
38
|
}
|
|
@@ -74,6 +76,7 @@ declare class CommandSeparatorComponent {
|
|
|
74
76
|
declare class CommandItemComponent {
|
|
75
77
|
protected readonly ctx: CommandComponent;
|
|
76
78
|
private readonly el;
|
|
79
|
+
readonly itemId: string;
|
|
77
80
|
readonly value: _angular_core.InputSignal<string>;
|
|
78
81
|
readonly disabled: _angular_core.InputSignal<boolean>;
|
|
79
82
|
readonly class: _angular_core.InputSignal<string>;
|
|
@@ -24,10 +24,11 @@ declare class ContextMenuTriggerDirective {
|
|
|
24
24
|
readonly openedChange: _angular_core.OutputEmitterRef<boolean>;
|
|
25
25
|
private overlayRef;
|
|
26
26
|
readonly isOpen: _angular_core.WritableSignal<boolean>;
|
|
27
|
+
constructor();
|
|
27
28
|
protected onContextMenu(event: MouseEvent): void;
|
|
28
29
|
protected onKeyDown(event: KeyboardEvent): void;
|
|
29
30
|
openAt(x: number, y: number): void;
|
|
30
|
-
close(): void;
|
|
31
|
+
close(emitOpenedChange?: boolean): void;
|
|
31
32
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ContextMenuTriggerDirective, never>;
|
|
32
33
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ContextMenuTriggerDirective, "[uiContextMenuTrigger]", ["uiContextMenuTrigger"], { "uiContextMenuTrigger": { "alias": "uiContextMenuTrigger"; "required": true; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "openedChange": "openedChange"; }, never, never, true, never>;
|
|
33
34
|
}
|
|
@@ -8,7 +8,7 @@ declare abstract class MenuFocusableItem {
|
|
|
8
8
|
readonly inset: _angular_core.InputSignal<boolean>;
|
|
9
9
|
readonly class: _angular_core.InputSignal<string>;
|
|
10
10
|
readonly variant: _angular_core.InputSignal<MenuItemVariant>;
|
|
11
|
-
readonly selected: _angular_core.OutputEmitterRef<
|
|
11
|
+
readonly selected: _angular_core.OutputEmitterRef<KeyboardEvent | MouseEvent>;
|
|
12
12
|
get disabled(): boolean;
|
|
13
13
|
focus(): void;
|
|
14
14
|
getLabel(): string;
|
|
@@ -123,11 +123,14 @@ declare class MenuTriggerDirective {
|
|
|
123
123
|
readonly openedChange: _angular_core.OutputEmitterRef<boolean>;
|
|
124
124
|
private overlayRef;
|
|
125
125
|
readonly isOpen: _angular_core.WritableSignal<boolean>;
|
|
126
|
+
constructor();
|
|
126
127
|
toggle(): void;
|
|
127
128
|
protected openAndFocus(e: KeyboardEvent): void;
|
|
128
129
|
protected openForSide(e: KeyboardEvent, side: MenuSide): void;
|
|
129
130
|
open(): void;
|
|
130
|
-
close(
|
|
131
|
+
close(options?: {
|
|
132
|
+
restoreFocus?: boolean;
|
|
133
|
+
}): void;
|
|
131
134
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MenuTriggerDirective, never>;
|
|
132
135
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<MenuTriggerDirective, "[uiMenuTrigger]", ["uiMenuTrigger"], { "uiMenuTrigger": { "alias": "uiMenuTrigger"; "required": true; "isSignal": true; }; "side": { "alias": "side"; "required": false; "isSignal": true; }; "align": { "alias": "align"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "openedChange": "openedChange"; }, never, never, true, never>;
|
|
133
136
|
}
|
|
@@ -89,6 +89,7 @@ declare class EditorContentComponent implements AfterViewInit, OnDestroy, Contro
|
|
|
89
89
|
private readonly el;
|
|
90
90
|
private readonly editor;
|
|
91
91
|
private readonly document;
|
|
92
|
+
private readonly sanitizer;
|
|
92
93
|
readonly placeholder: _angular_core.InputSignal<string>;
|
|
93
94
|
readonly ariaLabel: _angular_core.InputSignal<string>;
|
|
94
95
|
readonly disabledInput: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
@@ -49,13 +49,15 @@ declare class HoverCardTriggerDirective {
|
|
|
49
49
|
private isContentHovered;
|
|
50
50
|
private isTriggerFocused;
|
|
51
51
|
private isContentFocused;
|
|
52
|
+
constructor();
|
|
52
53
|
handleTriggerPointerEnter(): void;
|
|
53
54
|
handleTriggerPointerLeave(event: PointerEvent): void;
|
|
54
55
|
handleTriggerFocusIn(): void;
|
|
55
56
|
handleTriggerFocusOut(event: FocusEvent): void;
|
|
56
57
|
open(): void;
|
|
57
|
-
close(): void;
|
|
58
|
+
close(emitOpenedChange?: boolean): void;
|
|
58
59
|
private bindOverlayInteractions;
|
|
60
|
+
private unbindOverlayInteractions;
|
|
59
61
|
private readonly onContentPointerEnter;
|
|
60
62
|
private readonly onContentPointerLeave;
|
|
61
63
|
private readonly onContentFocusIn;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { LayoutService } from '@edsis/ui/layout';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { UI_LAYOUT_APPEARANCE_STORAGE_KEY, UI_LAYOUT_DEFAULT_STYLE, UI_LAYOUT_DEFAULT_SURFACE, UI_LAYOUT_DEFAULT_TYPE, UI_LAYOUT_DEFAULT_WIDTH, UI_LAYOUT_STYLES, UI_LAYOUT_STYLE_STORAGE_KEY, UI_LAYOUT_SURFACES, UI_LAYOUT_SURFACE_STORAGE_KEY, UI_LAYOUT_TYPES, UI_LAYOUT_TYPE_STORAGE_KEY, UI_LAYOUT_WIDTHS, UI_LAYOUT_WIDTH_STORAGE_KEY, UiLayoutContextValue, UiLayoutStyle, UiLayoutSurface, UiLayoutType, UiLayoutWidth, isUiLayoutStyle, isUiLayoutSurface, isUiLayoutType, isUiLayoutWidth } from '@edsis/ui/layout';
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { Signal } from '@angular/core';
|
|
3
|
+
import { UiNavComponent } from '@edsis/ui/nav';
|
|
4
|
+
|
|
5
|
+
declare const UI_LAYOUT_TYPES: readonly ["vertical", "horizontal", "empty"];
|
|
6
|
+
declare const UI_LAYOUT_SURFACES: readonly ["flat", "grid", "honeycome", "line-vertical", "line-horizontal"];
|
|
7
|
+
declare const UI_LAYOUT_STYLES: readonly ["flat", "border-rail"];
|
|
8
|
+
declare const UI_LAYOUT_WIDTHS: readonly ["full", "wide", "container"];
|
|
9
|
+
type UiLayoutType = (typeof UI_LAYOUT_TYPES)[number];
|
|
10
|
+
type UiLayoutSurface = (typeof UI_LAYOUT_SURFACES)[number];
|
|
11
|
+
type UiLayoutStyle = (typeof UI_LAYOUT_STYLES)[number];
|
|
12
|
+
type UiLayoutWidth = (typeof UI_LAYOUT_WIDTHS)[number];
|
|
13
|
+
declare const UI_LAYOUT_DEFAULT_SURFACE: UiLayoutSurface;
|
|
14
|
+
declare const UI_LAYOUT_DEFAULT_TYPE: UiLayoutType;
|
|
15
|
+
declare const UI_LAYOUT_DEFAULT_STYLE: UiLayoutStyle;
|
|
16
|
+
declare const UI_LAYOUT_DEFAULT_WIDTH: UiLayoutWidth;
|
|
17
|
+
declare const UI_LAYOUT_SURFACE_STORAGE_KEY = "layout-surface";
|
|
18
|
+
declare const UI_LAYOUT_APPEARANCE_STORAGE_KEY = "layout-appearance";
|
|
19
|
+
declare const UI_LAYOUT_TYPE_STORAGE_KEY = "layout-type";
|
|
20
|
+
declare const UI_LAYOUT_STYLE_STORAGE_KEY = "layout-style";
|
|
21
|
+
declare const UI_LAYOUT_WIDTH_STORAGE_KEY = "layout-width";
|
|
22
|
+
interface UiLayoutContextValue {
|
|
23
|
+
surface: Signal<UiLayoutSurface>;
|
|
24
|
+
type: Signal<UiLayoutType>;
|
|
25
|
+
appearance: Signal<UiLayoutStyle>;
|
|
26
|
+
style: Signal<UiLayoutStyle>;
|
|
27
|
+
width: Signal<UiLayoutWidth>;
|
|
28
|
+
}
|
|
29
|
+
declare function isUiLayoutSurface(value: string | null): value is UiLayoutSurface;
|
|
30
|
+
declare function isUiLayoutType(value: string | null): value is UiLayoutType;
|
|
31
|
+
declare function isUiLayoutStyle(value: string | null): value is UiLayoutStyle;
|
|
32
|
+
declare function isUiLayoutWidth(value: string | null): value is UiLayoutWidth;
|
|
33
|
+
|
|
34
|
+
declare class LayoutService {
|
|
35
|
+
private readonly platformId;
|
|
36
|
+
private readonly surfaceState;
|
|
37
|
+
private readonly typeState;
|
|
38
|
+
private readonly styleState;
|
|
39
|
+
private readonly widthState;
|
|
40
|
+
readonly surface: _angular_core.Signal<"flat" | "grid" | "honeycome" | "line-vertical" | "line-horizontal">;
|
|
41
|
+
readonly type: _angular_core.Signal<"vertical" | "horizontal" | "empty">;
|
|
42
|
+
readonly appearance: _angular_core.Signal<"flat" | "border-rail">;
|
|
43
|
+
readonly style: _angular_core.Signal<"flat" | "border-rail">;
|
|
44
|
+
readonly width: _angular_core.Signal<"full" | "wide" | "container">;
|
|
45
|
+
registerDefaults(defaults: {
|
|
46
|
+
surface?: UiLayoutSurface;
|
|
47
|
+
appearance?: UiLayoutStyle;
|
|
48
|
+
type?: UiLayoutType;
|
|
49
|
+
width?: UiLayoutWidth;
|
|
50
|
+
}): this;
|
|
51
|
+
registerSurface(surface: UiLayoutSurface): void;
|
|
52
|
+
registerType(type: UiLayoutType): void;
|
|
53
|
+
registerAppearance(appearance: UiLayoutStyle): void;
|
|
54
|
+
registerStyle(style: UiLayoutStyle): void;
|
|
55
|
+
registerWidth(width: UiLayoutWidth): void;
|
|
56
|
+
setSurface(surface: UiLayoutSurface): void;
|
|
57
|
+
setType(type: UiLayoutType): void;
|
|
58
|
+
setAppearance(appearance: UiLayoutStyle): void;
|
|
59
|
+
setStyle(style: UiLayoutStyle): void;
|
|
60
|
+
setWidth(width: UiLayoutWidth): void;
|
|
61
|
+
getStoredSurface(): UiLayoutSurface;
|
|
62
|
+
getStoredType(): UiLayoutType;
|
|
63
|
+
getStoredAppearance(): UiLayoutStyle;
|
|
64
|
+
getStoredStyle(): UiLayoutStyle;
|
|
65
|
+
getStoredWidth(): UiLayoutWidth;
|
|
66
|
+
private readStorage;
|
|
67
|
+
private removeStorage;
|
|
68
|
+
private writeStorage;
|
|
69
|
+
private getStorage;
|
|
70
|
+
private readStoredAppearance;
|
|
71
|
+
private getStoredAppearanceOrDefault;
|
|
72
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<LayoutService, never>;
|
|
73
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<LayoutService>;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
declare class UiLayoutComponent {
|
|
77
|
+
protected readonly layout: LayoutService;
|
|
78
|
+
readonly surface: _angular_core.InputSignal<"flat" | "grid" | "honeycome" | "line-vertical" | "line-horizontal" | null>;
|
|
79
|
+
readonly appearance: _angular_core.InputSignal<"flat" | "border-rail" | null>;
|
|
80
|
+
readonly layoutStyleAttribute: _angular_core.InputSignal<"flat" | "border-rail" | null>;
|
|
81
|
+
readonly width: _angular_core.InputSignal<"full" | "wide" | "container" | null>;
|
|
82
|
+
readonly class: _angular_core.InputSignal<string>;
|
|
83
|
+
protected readonly appearanceInput: _angular_core.Signal<"flat" | "border-rail" | null>;
|
|
84
|
+
protected readonly resolvedSurface: _angular_core.Signal<"flat" | "grid" | "honeycome" | "line-vertical" | "line-horizontal">;
|
|
85
|
+
protected readonly resolvedAppearance: _angular_core.Signal<"flat" | "border-rail">;
|
|
86
|
+
protected readonly resolvedStyle: _angular_core.Signal<"flat" | "border-rail">;
|
|
87
|
+
protected readonly resolvedWidth: _angular_core.Signal<"full" | "wide" | "container">;
|
|
88
|
+
protected readonly isBorderRail: _angular_core.Signal<boolean>;
|
|
89
|
+
protected readonly showsHorizontalInsetRails: _angular_core.Signal<boolean>;
|
|
90
|
+
protected readonly railPaddingClasses: _angular_core.Signal<string>;
|
|
91
|
+
protected readonly railAnchorClasses: _angular_core.Signal<string>;
|
|
92
|
+
protected readonly contentShellClasses: _angular_core.Signal<string>;
|
|
93
|
+
protected readonly hostClasses: _angular_core.Signal<string>;
|
|
94
|
+
protected readonly frameClasses: _angular_core.Signal<string>;
|
|
95
|
+
constructor();
|
|
96
|
+
private surfaceClasses;
|
|
97
|
+
private widthClasses;
|
|
98
|
+
private frameWidthClasses;
|
|
99
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiLayoutComponent, never>;
|
|
100
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiLayoutComponent, "ui-layout", never, { "surface": { "alias": "surface"; "required": false; "isSignal": true; }; "appearance": { "alias": "appearance"; "required": false; "isSignal": true; }; "layoutStyleAttribute": { "alias": "layout-style"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "class": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
declare class UiLayoutVerticalComponent {
|
|
104
|
+
private readonly layout;
|
|
105
|
+
readonly class: _angular_core.InputSignal<string>;
|
|
106
|
+
protected readonly classes: _angular_core.Signal<string>;
|
|
107
|
+
constructor();
|
|
108
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiLayoutVerticalComponent, never>;
|
|
109
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiLayoutVerticalComponent, "ui-layout-vertical", never, { "class": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
declare class UiLayoutHorizontalComponent {
|
|
113
|
+
private readonly layout;
|
|
114
|
+
readonly class: _angular_core.InputSignal<string>;
|
|
115
|
+
protected readonly classes: _angular_core.Signal<string>;
|
|
116
|
+
constructor();
|
|
117
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiLayoutHorizontalComponent, never>;
|
|
118
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiLayoutHorizontalComponent, "ui-layout-horizontal", never, { "class": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
declare class UiLayoutEmptyComponent {
|
|
122
|
+
private readonly layout;
|
|
123
|
+
readonly class: _angular_core.InputSignal<string>;
|
|
124
|
+
protected readonly classes: _angular_core.Signal<string>;
|
|
125
|
+
constructor();
|
|
126
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiLayoutEmptyComponent, never>;
|
|
127
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiLayoutEmptyComponent, "ui-layout-empty", never, { "class": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
declare class UiLayoutNavComponent {
|
|
131
|
+
protected readonly layout: LayoutService;
|
|
132
|
+
protected readonly projectedNav: _angular_core.Signal<UiNavComponent | undefined>;
|
|
133
|
+
readonly ariaLabel: _angular_core.InputSignal<string>;
|
|
134
|
+
readonly railOffset: _angular_core.InputSignal<string | null>;
|
|
135
|
+
readonly class: _angular_core.InputSignal<string>;
|
|
136
|
+
protected readonly showsVerticalRail: _angular_core.Signal<boolean>;
|
|
137
|
+
protected readonly resolvedRailOffset: _angular_core.Signal<string>;
|
|
138
|
+
protected readonly railTransform: _angular_core.Signal<string>;
|
|
139
|
+
protected readonly classes: _angular_core.Signal<string>;
|
|
140
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiLayoutNavComponent, never>;
|
|
141
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiLayoutNavComponent, "ui-layout-nav", never, { "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "railOffset": { "alias": "railOffset"; "required": false; "isSignal": true; }; "class": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, ["projectedNav"], ["*"], true, never>;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
declare class UiLayoutContentComponent {
|
|
145
|
+
protected readonly layout: LayoutService;
|
|
146
|
+
readonly class: _angular_core.InputSignal<string>;
|
|
147
|
+
protected readonly classes: _angular_core.Signal<string>;
|
|
148
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiLayoutContentComponent, never>;
|
|
149
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiLayoutContentComponent, "ui-layout-content", never, { "class": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
export { LayoutService, UI_LAYOUT_APPEARANCE_STORAGE_KEY, UI_LAYOUT_DEFAULT_STYLE, UI_LAYOUT_DEFAULT_SURFACE, UI_LAYOUT_DEFAULT_TYPE, UI_LAYOUT_DEFAULT_WIDTH, UI_LAYOUT_STYLES, UI_LAYOUT_STYLE_STORAGE_KEY, UI_LAYOUT_SURFACES, UI_LAYOUT_SURFACE_STORAGE_KEY, UI_LAYOUT_TYPES, UI_LAYOUT_TYPE_STORAGE_KEY, UI_LAYOUT_WIDTHS, UI_LAYOUT_WIDTH_STORAGE_KEY, UiLayoutComponent, UiLayoutContentComponent, UiLayoutEmptyComponent, UiLayoutHorizontalComponent, UiLayoutNavComponent, UiLayoutVerticalComponent, isUiLayoutStyle, isUiLayoutSurface, isUiLayoutType, isUiLayoutWidth };
|
|
153
|
+
export type { UiLayoutContextValue, UiLayoutStyle, UiLayoutSurface, UiLayoutType, UiLayoutWidth };
|
|
@@ -45,12 +45,14 @@ declare class MenubarTriggerDirective {
|
|
|
45
45
|
private readonly menubar;
|
|
46
46
|
private readonly destroyRef;
|
|
47
47
|
private overlayRef;
|
|
48
|
+
constructor();
|
|
48
49
|
toggle(): void;
|
|
49
50
|
open(options?: {
|
|
50
51
|
focusFirstItem?: boolean;
|
|
51
52
|
}): void;
|
|
52
53
|
close(options?: {
|
|
53
54
|
restoreFocus?: boolean;
|
|
55
|
+
emitOpenedChange?: boolean;
|
|
54
56
|
}): void;
|
|
55
57
|
focus(): void;
|
|
56
58
|
containsTarget(target: EventTarget | null): boolean;
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Signal } from '@angular/core';
|
|
3
|
+
import { UrlTree, Params, QueryParamsHandling, IsActiveMatchOptions } from '@angular/router';
|
|
4
|
+
|
|
5
|
+
type UiNavOrientation = 'vertical' | 'horizontal';
|
|
6
|
+
type UiNavVerticalAppearance = 'sidebar' | 'dockbar';
|
|
7
|
+
type UiNavHorizontalAppearance = 'navbar' | 'flyout';
|
|
8
|
+
type UiNavAppearance = UiNavVerticalAppearance | UiNavHorizontalAppearance;
|
|
9
|
+
type UiNavPosition = 'left' | 'right';
|
|
10
|
+
type UiNavDockbarMode = 'drawer' | 'sticky';
|
|
11
|
+
type UiNavLink = string | readonly unknown[] | UrlTree;
|
|
12
|
+
interface UiNavItem {
|
|
13
|
+
readonly id?: string;
|
|
14
|
+
readonly title?: string;
|
|
15
|
+
readonly subtitle?: string;
|
|
16
|
+
readonly active?: boolean;
|
|
17
|
+
readonly disabled?: boolean;
|
|
18
|
+
readonly tooltip?: string;
|
|
19
|
+
readonly classes?: {
|
|
20
|
+
readonly title?: string;
|
|
21
|
+
readonly subtitle?: string;
|
|
22
|
+
readonly icon?: string;
|
|
23
|
+
readonly wrapper?: string;
|
|
24
|
+
};
|
|
25
|
+
readonly icon?: string;
|
|
26
|
+
readonly link?: UiNavLink;
|
|
27
|
+
readonly href?: string;
|
|
28
|
+
readonly fragment?: string;
|
|
29
|
+
readonly preserveFragment?: boolean;
|
|
30
|
+
readonly queryParams?: Params | null;
|
|
31
|
+
readonly queryParamsHandling?: QueryParamsHandling | null;
|
|
32
|
+
readonly externalLink?: boolean;
|
|
33
|
+
readonly target?: '_blank' | '_self' | '_parent' | '_top' | string;
|
|
34
|
+
readonly rel?: string;
|
|
35
|
+
readonly exactMatch?: boolean;
|
|
36
|
+
readonly isActiveMatchOptions?: IsActiveMatchOptions;
|
|
37
|
+
readonly children?: readonly UiNavItem[];
|
|
38
|
+
}
|
|
39
|
+
interface UiNavNormalizedItem extends Omit<UiNavItem, 'children'> {
|
|
40
|
+
readonly key: string;
|
|
41
|
+
readonly stateId: string;
|
|
42
|
+
readonly panelId: string;
|
|
43
|
+
readonly type: 'item' | 'group' | 'collapsible' | 'mega' | 'divider' | 'spacer';
|
|
44
|
+
readonly source: UiNavItem;
|
|
45
|
+
readonly children: readonly UiNavNormalizedItem[];
|
|
46
|
+
}
|
|
47
|
+
interface UiNavRegisterInput {
|
|
48
|
+
readonly id: string;
|
|
49
|
+
readonly orientation: UiNavOrientation;
|
|
50
|
+
readonly appearance?: UiNavAppearance | null;
|
|
51
|
+
readonly position?: UiNavPosition | null;
|
|
52
|
+
readonly collapsed?: boolean | null;
|
|
53
|
+
readonly dockbarMode?: UiNavDockbarMode | null;
|
|
54
|
+
}
|
|
55
|
+
interface UiNavState {
|
|
56
|
+
readonly id: string;
|
|
57
|
+
readonly orientation: UiNavOrientation;
|
|
58
|
+
readonly appearance: UiNavAppearance;
|
|
59
|
+
readonly position: UiNavPosition;
|
|
60
|
+
readonly collapsed: boolean;
|
|
61
|
+
readonly dockbarMode: UiNavDockbarMode;
|
|
62
|
+
}
|
|
63
|
+
interface UiNavIconContext {
|
|
64
|
+
readonly $implicit: string;
|
|
65
|
+
readonly icon: string;
|
|
66
|
+
readonly item: UiNavItem;
|
|
67
|
+
readonly active: boolean;
|
|
68
|
+
readonly orientation: UiNavOrientation;
|
|
69
|
+
readonly level: number;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
declare class NavService {
|
|
73
|
+
private readonly documentRef;
|
|
74
|
+
private readonly router;
|
|
75
|
+
private readonly routerUrl;
|
|
76
|
+
private readonly states;
|
|
77
|
+
private readonly openPanelKeys;
|
|
78
|
+
private readonly drawerOpenState;
|
|
79
|
+
readonly openPanelKey: Signal<string | null>;
|
|
80
|
+
readonly exactMatchOptions: IsActiveMatchOptions;
|
|
81
|
+
readonly subsetMatchOptions: IsActiveMatchOptions;
|
|
82
|
+
constructor();
|
|
83
|
+
register(input: UiNavRegisterInput): UiNavState;
|
|
84
|
+
unregister(id: string): void;
|
|
85
|
+
state(id: string): Signal<UiNavState | null>;
|
|
86
|
+
currentState(id: string): UiNavState | null;
|
|
87
|
+
currentPanelKey(id: string): string | null;
|
|
88
|
+
update(id: string, patch: Partial<UiNavRegisterInput>): UiNavState;
|
|
89
|
+
setAppearance(id: string, appearance: UiNavAppearance): UiNavState;
|
|
90
|
+
setPosition(id: string, position: UiNavPosition): UiNavState;
|
|
91
|
+
setCollapsed(id: string, collapsed: boolean): UiNavState;
|
|
92
|
+
toggleCollapsed(id: string): UiNavState;
|
|
93
|
+
setDockbarMode(id: string, mode: UiNavDockbarMode): UiNavState;
|
|
94
|
+
isRouterItem(item: UiNavNormalizedItem): boolean;
|
|
95
|
+
hrefFor(item: UiNavNormalizedItem): string | null;
|
|
96
|
+
relFor(item: UiNavNormalizedItem): string | null;
|
|
97
|
+
routerLinkActiveOptions(item: UiNavNormalizedItem): IsActiveMatchOptions;
|
|
98
|
+
itemRole(orientation: UiNavOrientation, level: number): 'menuitem' | null;
|
|
99
|
+
compactLabel(item: UiNavNormalizedItem, compact: boolean): string | null;
|
|
100
|
+
titleFor(item: UiNavNormalizedItem, compact: boolean): string | null;
|
|
101
|
+
compactFallback(item: UiNavNormalizedItem): string;
|
|
102
|
+
iconContext(item: UiNavNormalizedItem, active: boolean, level: number, orientation: UiNavOrientation): UiNavIconContext;
|
|
103
|
+
isItemActive(item: UiNavNormalizedItem, activeIds: ReadonlySet<string>, explicitActiveUrl: string | null): boolean;
|
|
104
|
+
isPanelOpen(navIdOrItem: string | UiNavNormalizedItem, item?: UiNavNormalizedItem): boolean;
|
|
105
|
+
openPanel(navIdOrItem: string | UiNavNormalizedItem, item?: UiNavNormalizedItem): void;
|
|
106
|
+
togglePanel(navIdOrItem: string | UiNavNormalizedItem, item?: UiNavNormalizedItem): void;
|
|
107
|
+
closePanel(id?: string): void;
|
|
108
|
+
isDrawerOpen(id: string): boolean;
|
|
109
|
+
openDrawer(id: string): void;
|
|
110
|
+
toggleDrawer(id: string): void;
|
|
111
|
+
closeDrawer(id: string): void;
|
|
112
|
+
private matchesActiveUrl;
|
|
113
|
+
private resolveState;
|
|
114
|
+
private resolveAppearance;
|
|
115
|
+
private resolvePosition;
|
|
116
|
+
private resolveCollapsed;
|
|
117
|
+
private resolveDockbarMode;
|
|
118
|
+
private persistState;
|
|
119
|
+
private readOrientationAppearance;
|
|
120
|
+
private ensureAppearanceDefaults;
|
|
121
|
+
private storage;
|
|
122
|
+
private readStorage;
|
|
123
|
+
private writeStorage;
|
|
124
|
+
private instanceStorageKey;
|
|
125
|
+
private normalizeId;
|
|
126
|
+
private withoutKey;
|
|
127
|
+
private resolvePanelArgs;
|
|
128
|
+
private isAppearanceForOrientation;
|
|
129
|
+
private isVerticalAppearance;
|
|
130
|
+
private isHorizontalAppearance;
|
|
131
|
+
private isPosition;
|
|
132
|
+
private isDockbarMode;
|
|
133
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NavService, never>;
|
|
134
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NavService>;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export { NavService };
|
|
138
|
+
export type { UiNavAppearance, UiNavDockbarMode, UiNavHorizontalAppearance, UiNavIconContext, UiNavItem, UiNavLink, UiNavNormalizedItem, UiNavOrientation, UiNavPosition, UiNavRegisterInput, UiNavState, UiNavVerticalAppearance };
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
import * as _edsis_ui_nav from '@edsis/ui/nav';
|
|
2
|
+
import * as _angular_core from '@angular/core';
|
|
3
|
+
import { TemplateRef, Signal } from '@angular/core';
|
|
4
|
+
import { UrlTree, Params, QueryParamsHandling, IsActiveMatchOptions } from '@angular/router';
|
|
5
|
+
|
|
6
|
+
type UiNavOrientation = 'vertical' | 'horizontal';
|
|
7
|
+
type UiNavVerticalAppearance = 'sidebar' | 'dockbar';
|
|
8
|
+
type UiNavHorizontalAppearance = 'navbar' | 'flyout';
|
|
9
|
+
type UiNavAppearance = UiNavVerticalAppearance | UiNavHorizontalAppearance;
|
|
10
|
+
type UiNavCollapseTree = 'stairs' | 'straight';
|
|
11
|
+
type UiNavPosition = 'left' | 'right';
|
|
12
|
+
type UiNavDockbarMode = 'drawer' | 'sticky';
|
|
13
|
+
interface UiNavRegisterInput {
|
|
14
|
+
readonly id: string;
|
|
15
|
+
readonly orientation: UiNavOrientation;
|
|
16
|
+
readonly appearance?: UiNavAppearance | null;
|
|
17
|
+
readonly position?: UiNavPosition | null;
|
|
18
|
+
readonly collapsed?: boolean | null;
|
|
19
|
+
readonly dockbarMode?: UiNavDockbarMode | null;
|
|
20
|
+
}
|
|
21
|
+
interface UiNavState {
|
|
22
|
+
readonly id: string;
|
|
23
|
+
readonly orientation: UiNavOrientation;
|
|
24
|
+
readonly appearance: UiNavAppearance;
|
|
25
|
+
readonly position: UiNavPosition;
|
|
26
|
+
readonly collapsed: boolean;
|
|
27
|
+
readonly dockbarMode: UiNavDockbarMode;
|
|
28
|
+
}
|
|
29
|
+
type UiNavItemType = 'item' | 'basic' | 'aside' | 'group' | 'collapsible' | 'collapsable' | 'mega' | 'divider' | 'spacer';
|
|
30
|
+
type UiNavNormalizedItemType = 'item' | 'group' | 'collapsible' | 'mega' | 'divider' | 'spacer';
|
|
31
|
+
type UiNavLink = string | readonly unknown[] | UrlTree;
|
|
32
|
+
interface UiNavItemClasses {
|
|
33
|
+
readonly title?: string;
|
|
34
|
+
readonly subtitle?: string;
|
|
35
|
+
readonly icon?: string;
|
|
36
|
+
readonly wrapper?: string;
|
|
37
|
+
}
|
|
38
|
+
interface UiNavItemBadge {
|
|
39
|
+
readonly title?: string;
|
|
40
|
+
readonly classes?: string;
|
|
41
|
+
}
|
|
42
|
+
type UiNavVisibilityHandler = (item: UiNavItem) => boolean;
|
|
43
|
+
type UiNavActionHandler = (item: UiNavItem) => void;
|
|
44
|
+
interface UiNavItem {
|
|
45
|
+
readonly id?: string;
|
|
46
|
+
readonly type?: UiNavItemType;
|
|
47
|
+
readonly title?: string;
|
|
48
|
+
readonly subtitle?: string;
|
|
49
|
+
readonly active?: boolean;
|
|
50
|
+
readonly disabled?: boolean;
|
|
51
|
+
readonly tooltip?: string;
|
|
52
|
+
readonly classes?: UiNavItemClasses;
|
|
53
|
+
readonly icon?: string;
|
|
54
|
+
readonly badge?: UiNavItemBadge;
|
|
55
|
+
readonly meta?: Record<string, unknown>;
|
|
56
|
+
readonly isHidden?: UiNavVisibilityHandler;
|
|
57
|
+
readonly link?: UiNavLink;
|
|
58
|
+
readonly href?: string;
|
|
59
|
+
readonly fragment?: string;
|
|
60
|
+
readonly preserveFragment?: boolean;
|
|
61
|
+
readonly queryParams?: Params | null;
|
|
62
|
+
readonly queryParamsHandling?: QueryParamsHandling | null;
|
|
63
|
+
readonly externalLink?: boolean;
|
|
64
|
+
readonly target?: '_blank' | '_self' | '_parent' | '_top' | string;
|
|
65
|
+
readonly rel?: string;
|
|
66
|
+
readonly exactMatch?: boolean;
|
|
67
|
+
readonly isActiveMatchOptions?: IsActiveMatchOptions;
|
|
68
|
+
readonly action?: UiNavActionHandler;
|
|
69
|
+
readonly columns?: number;
|
|
70
|
+
readonly children?: readonly UiNavItem[];
|
|
71
|
+
}
|
|
72
|
+
interface UiNavNormalizedItem extends Omit<UiNavItem, 'children' | 'type'> {
|
|
73
|
+
readonly key: string;
|
|
74
|
+
readonly stateId: string;
|
|
75
|
+
readonly panelId: string;
|
|
76
|
+
readonly type: UiNavNormalizedItemType;
|
|
77
|
+
readonly source: UiNavItem;
|
|
78
|
+
readonly children: readonly UiNavNormalizedItem[];
|
|
79
|
+
}
|
|
80
|
+
interface UiNavSelection {
|
|
81
|
+
readonly item: UiNavItem;
|
|
82
|
+
readonly key: string;
|
|
83
|
+
readonly type: UiNavNormalizedItemType;
|
|
84
|
+
readonly link?: UiNavLink;
|
|
85
|
+
readonly external: boolean;
|
|
86
|
+
}
|
|
87
|
+
interface UiNavIconContext {
|
|
88
|
+
readonly $implicit: string;
|
|
89
|
+
readonly icon: string;
|
|
90
|
+
readonly item: UiNavItem;
|
|
91
|
+
readonly active: boolean;
|
|
92
|
+
readonly orientation: UiNavOrientation;
|
|
93
|
+
readonly level: number;
|
|
94
|
+
}
|
|
95
|
+
declare function normalizeUiNavItems(items: readonly UiNavItem[]): readonly UiNavNormalizedItem[];
|
|
96
|
+
|
|
97
|
+
declare class NavIconDirective {
|
|
98
|
+
readonly template: TemplateRef<UiNavIconContext>;
|
|
99
|
+
static ngTemplateContextGuard(_directive: NavIconDirective, context: unknown): context is UiNavIconContext;
|
|
100
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NavIconDirective, never>;
|
|
101
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<NavIconDirective, "ng-template[uiNavIcon]", never, {}, {}, never, never, true, never>;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
declare class UiNavFooterComponent {
|
|
105
|
+
private readonly shell;
|
|
106
|
+
readonly class: _angular_core.InputSignal<string>;
|
|
107
|
+
protected readonly isHorizontal: _angular_core.Signal<boolean>;
|
|
108
|
+
protected readonly hostClasses: _angular_core.Signal<string>;
|
|
109
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiNavFooterComponent, never>;
|
|
110
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiNavFooterComponent, "ui-nav-footer", never, { "class": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
declare class UiNavHeaderComponent {
|
|
114
|
+
private readonly shell;
|
|
115
|
+
readonly toggle: _angular_core.InputSignal<boolean>;
|
|
116
|
+
readonly class: _angular_core.InputSignal<string>;
|
|
117
|
+
protected readonly collapsed: _angular_core.Signal<boolean>;
|
|
118
|
+
protected readonly displayCollapsed: _angular_core.Signal<boolean>;
|
|
119
|
+
protected readonly isHorizontal: _angular_core.Signal<boolean>;
|
|
120
|
+
protected readonly showToggle: _angular_core.Signal<boolean>;
|
|
121
|
+
protected readonly toggleAriaLabel: _angular_core.Signal<"Expand navigation" | "Collapse navigation">;
|
|
122
|
+
protected readonly toggleIconName: _angular_core.Signal<"left_panel_open" | "left_panel_close">;
|
|
123
|
+
protected readonly contentClasses: _angular_core.Signal<"min-w-0" | "min-w-0 flex-1">;
|
|
124
|
+
protected readonly hostClasses: _angular_core.Signal<string>;
|
|
125
|
+
protected toggleCollapsed(): void;
|
|
126
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiNavHeaderComponent, never>;
|
|
127
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiNavHeaderComponent, "ui-nav-header", never, { "toggle": { "alias": "toggle"; "required": false; "isSignal": true; }; "class": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
interface UiNavShellContext {
|
|
131
|
+
readonly state: Signal<UiNavState>;
|
|
132
|
+
readonly displayState: Signal<UiNavState>;
|
|
133
|
+
readonly collapseEnabled: Signal<boolean>;
|
|
134
|
+
toggleCollapsed(): void;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
declare class UiNavComponent implements UiNavShellContext {
|
|
138
|
+
readonly navId: _angular_core.InputSignal<string>;
|
|
139
|
+
readonly data: _angular_core.InputSignal<readonly UiNavItem[]>;
|
|
140
|
+
readonly items: _angular_core.InputSignal<readonly UiNavItem[]>;
|
|
141
|
+
readonly orientation: _angular_core.InputSignal<UiNavOrientation>;
|
|
142
|
+
readonly appearance: _angular_core.InputSignal<UiNavAppearance | null>;
|
|
143
|
+
readonly position: _angular_core.InputSignal<UiNavPosition | null>;
|
|
144
|
+
readonly collapsed: _angular_core.InputSignal<boolean | null>;
|
|
145
|
+
readonly dockbarMode: _angular_core.InputSignal<UiNavDockbarMode | null>;
|
|
146
|
+
readonly ariaLabel: _angular_core.InputSignal<string>;
|
|
147
|
+
readonly compact: _angular_core.InputSignal<boolean>;
|
|
148
|
+
readonly previewExpanded: _angular_core.InputSignal<boolean>;
|
|
149
|
+
readonly sidebarCollapse: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
150
|
+
readonly collapseTree: _angular_core.InputSignal<UiNavCollapseTree>;
|
|
151
|
+
readonly class: _angular_core.InputSignal<string>;
|
|
152
|
+
readonly itemClass: _angular_core.InputSignal<string>;
|
|
153
|
+
readonly activeIds: _angular_core.InputSignal<ReadonlySet<string> | readonly string[] | null>;
|
|
154
|
+
readonly activeUrl: _angular_core.InputSignal<string | null>;
|
|
155
|
+
readonly openedIds: _angular_core.ModelSignal<readonly string[]>;
|
|
156
|
+
readonly itemSelected: _angular_core.OutputEmitterRef<UiNavSelection>;
|
|
157
|
+
private readonly hoverPreviewExpanded;
|
|
158
|
+
private readonly controller;
|
|
159
|
+
protected readonly headerSlot: _angular_core.Signal<UiNavHeaderComponent | undefined>;
|
|
160
|
+
protected readonly footerSlot: _angular_core.Signal<UiNavFooterComponent | undefined>;
|
|
161
|
+
protected readonly iconTemplate: _angular_core.Signal<NavIconDirective | undefined>;
|
|
162
|
+
protected readonly normalizedItems: _angular_core.Signal<readonly _edsis_ui_nav.UiNavNormalizedItem[]>;
|
|
163
|
+
protected readonly resolvedState: _angular_core.Signal<_edsis_ui_nav.UiNavState>;
|
|
164
|
+
protected readonly activeIdSet: _angular_core.Signal<ReadonlySet<string>>;
|
|
165
|
+
readonly previewRailExpanded: _angular_core.Signal<boolean>;
|
|
166
|
+
readonly previewRailOffset: _angular_core.Signal<"15rem" | "0px">;
|
|
167
|
+
readonly displayState: _angular_core.Signal<_edsis_ui_nav.UiNavState>;
|
|
168
|
+
readonly collapseEnabled: _angular_core.Signal<boolean>;
|
|
169
|
+
protected readonly shellClasses: _angular_core.Signal<string>;
|
|
170
|
+
readonly state: _angular_core.Signal<_edsis_ui_nav.UiNavState>;
|
|
171
|
+
protected readonly hostClasses: _angular_core.Signal<string>;
|
|
172
|
+
toggleCollapsed(): void;
|
|
173
|
+
protected setHoverPreview(value: boolean): void;
|
|
174
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiNavComponent, never>;
|
|
175
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiNavComponent, "ui-nav", never, { "navId": { "alias": "id"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; "items": { "alias": "items"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "appearance": { "alias": "appearance"; "required": false; "isSignal": true; }; "position": { "alias": "position"; "required": false; "isSignal": true; }; "collapsed": { "alias": "collapsed"; "required": false; "isSignal": true; }; "dockbarMode": { "alias": "dockbarMode"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "compact": { "alias": "compact"; "required": false; "isSignal": true; }; "previewExpanded": { "alias": "previewExpanded"; "required": false; "isSignal": true; }; "sidebarCollapse": { "alias": "nav-sidebar-collapse"; "required": false; "isSignal": true; }; "collapseTree": { "alias": "collapse-tree"; "required": false; "isSignal": true; }; "class": { "alias": "class"; "required": false; "isSignal": true; }; "itemClass": { "alias": "itemClass"; "required": false; "isSignal": true; }; "activeIds": { "alias": "activeIds"; "required": false; "isSignal": true; }; "activeUrl": { "alias": "activeUrl"; "required": false; "isSignal": true; }; "openedIds": { "alias": "openedIds"; "required": false; "isSignal": true; }; }, { "openedIds": "openedIdsChange"; "itemSelected": "itemSelected"; }, ["headerSlot", "footerSlot", "iconTemplate"], ["ui-nav-header", "ui-nav-footer"], true, never>;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
declare class UiNavCollapseRootDirective {
|
|
179
|
+
private readonly shell;
|
|
180
|
+
protected readonly collapseEnabled: _angular_core.Signal<boolean>;
|
|
181
|
+
protected readonly displayCollapsed: _angular_core.Signal<boolean>;
|
|
182
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiNavCollapseRootDirective, never>;
|
|
183
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<UiNavCollapseRootDirective, "[uiNavCollapseRoot]", never, {}, {}, never, never, true, never>;
|
|
184
|
+
}
|
|
185
|
+
declare class UiNavCollapseExpandedDirective {
|
|
186
|
+
private readonly shell;
|
|
187
|
+
private readonly templateRef;
|
|
188
|
+
private readonly viewContainer;
|
|
189
|
+
private hasView;
|
|
190
|
+
private readonly shouldRender;
|
|
191
|
+
constructor();
|
|
192
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiNavCollapseExpandedDirective, never>;
|
|
193
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<UiNavCollapseExpandedDirective, "[uiNavCollapseExpanded]", never, {}, {}, never, never, true, never>;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
declare class UiNavMainComponent {
|
|
197
|
+
readonly class: _angular_core.InputSignal<string>;
|
|
198
|
+
readonly orientation: _angular_core.InputSignal<UiNavOrientation>;
|
|
199
|
+
protected readonly hostClasses: _angular_core.Signal<string>;
|
|
200
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiNavMainComponent, never>;
|
|
201
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiNavMainComponent, "ui-nav-main", never, { "class": { "alias": "class"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
export { NavIconDirective, UiNavCollapseExpandedDirective, UiNavCollapseRootDirective, UiNavComponent, UiNavFooterComponent, UiNavHeaderComponent, UiNavMainComponent, normalizeUiNavItems };
|
|
205
|
+
export type { UiNavActionHandler, UiNavAppearance, UiNavCollapseTree, UiNavDockbarMode, UiNavHorizontalAppearance, UiNavIconContext, UiNavItem, UiNavItemBadge, UiNavItemClasses, UiNavItemType, UiNavLink, UiNavNormalizedItem, UiNavNormalizedItemType, UiNavOrientation, UiNavPosition, UiNavRegisterInput, UiNavSelection, UiNavState, UiNavVerticalAppearance, UiNavVisibilityHandler };
|
|
@@ -63,6 +63,7 @@ declare class NavigationMenuTriggerDirective extends NavigationMenuRootItem {
|
|
|
63
63
|
private readonly navigationMenu;
|
|
64
64
|
private readonly destroyRef;
|
|
65
65
|
private overlayRef;
|
|
66
|
+
constructor();
|
|
66
67
|
protected readonly classes: _angular_core.Signal<string>;
|
|
67
68
|
toggle(): void;
|
|
68
69
|
open(options?: {
|
|
@@ -70,6 +71,7 @@ declare class NavigationMenuTriggerDirective extends NavigationMenuRootItem {
|
|
|
70
71
|
}): void;
|
|
71
72
|
close(options?: {
|
|
72
73
|
restoreFocus?: boolean;
|
|
74
|
+
emitOpenedChange?: boolean;
|
|
73
75
|
}): void;
|
|
74
76
|
protected tabIndex(): number;
|
|
75
77
|
protected openFromKeyboard(event: KeyboardEvent, focusFirstItem: boolean): void;
|