@tectra-ng/ui 0.1.3 → 0.1.5
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/accordion/README.md +61 -0
- package/breadcrumb/README.md +57 -0
- package/carousel/README.md +53 -0
- package/fesm2022/tectra-ng-ui-accordion.mjs +980 -0
- package/fesm2022/tectra-ng-ui-accordion.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-autocomplete.mjs +2 -2
- package/fesm2022/tectra-ng-ui-autocomplete.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-breadcrumb.mjs +382 -0
- package/fesm2022/tectra-ng-ui-breadcrumb.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-carousel.mjs +939 -0
- package/fesm2022/tectra-ng-ui-carousel.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-cascade-select.mjs +2 -2
- package/fesm2022/tectra-ng-ui-cascade-select.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-chips-input.mjs +2 -2
- package/fesm2022/tectra-ng-ui-chips-input.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-color-picker.mjs +2 -2
- package/fesm2022/tectra-ng-ui-color-picker.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-field.mjs +1 -1
- package/fesm2022/tectra-ng-ui-field.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-file-upload.mjs +1452 -0
- package/fesm2022/tectra-ng-ui-file-upload.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-galleria.mjs +1140 -0
- package/fesm2022/tectra-ng-ui-galleria.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-image.mjs +759 -0
- package/fesm2022/tectra-ng-ui-image.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-input-group.mjs +2 -2
- package/fesm2022/tectra-ng-ui-input-group.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-input.mjs +2 -2
- package/fesm2022/tectra-ng-ui-input.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-listbox.mjs +2 -2
- package/fesm2022/tectra-ng-ui-listbox.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-menubar.mjs +742 -0
- package/fesm2022/tectra-ng-ui-menubar.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-multiselect.mjs +2 -2
- package/fesm2022/tectra-ng-ui-multiselect.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-panel-menu.mjs +610 -0
- package/fesm2022/tectra-ng-ui-panel-menu.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-scroll-panel.mjs +319 -0
- package/fesm2022/tectra-ng-ui-scroll-panel.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-select.mjs +2 -2
- package/fesm2022/tectra-ng-ui-select.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-splitter.mjs +750 -0
- package/fesm2022/tectra-ng-ui-splitter.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-stepper.mjs +1166 -0
- package/fesm2022/tectra-ng-ui-stepper.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-table.mjs +194 -50
- package/fesm2022/tectra-ng-ui-table.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-tabs.mjs +1218 -0
- package/fesm2022/tectra-ng-ui-tabs.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-textarea.mjs +4 -1
- package/fesm2022/tectra-ng-ui-textarea.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-toolbar.mjs +348 -0
- package/fesm2022/tectra-ng-ui-toolbar.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-tree-select.mjs +2 -2
- package/fesm2022/tectra-ng-ui-tree-select.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-tree-table.mjs +80 -2
- package/fesm2022/tectra-ng-ui-tree-table.mjs.map +1 -1
- package/field/README.md +1 -1
- package/file-upload/README.md +85 -0
- package/galleria/README.md +62 -0
- package/image/README.md +54 -0
- package/menubar/README.md +51 -0
- package/package.json +56 -4
- package/panel-menu/README.md +45 -0
- package/scroll-panel/README.md +35 -0
- package/splitter/README.md +62 -0
- package/stepper/README.md +66 -0
- package/table/README.md +1 -1
- package/tabs/README.md +69 -0
- package/toolbar/README.md +35 -0
- package/types/tectra-ng-ui-accordion.d.ts +304 -0
- package/types/tectra-ng-ui-accordion.d.ts.map +1 -0
- package/types/tectra-ng-ui-breadcrumb.d.ts +157 -0
- package/types/tectra-ng-ui-breadcrumb.d.ts.map +1 -0
- package/types/tectra-ng-ui-carousel.d.ts +263 -0
- package/types/tectra-ng-ui-carousel.d.ts.map +1 -0
- package/types/tectra-ng-ui-file-upload.d.ts +527 -0
- package/types/tectra-ng-ui-file-upload.d.ts.map +1 -0
- package/types/tectra-ng-ui-galleria.d.ts +407 -0
- package/types/tectra-ng-ui-galleria.d.ts.map +1 -0
- package/types/tectra-ng-ui-image.d.ts +259 -0
- package/types/tectra-ng-ui-image.d.ts.map +1 -0
- package/types/tectra-ng-ui-menubar.d.ts +201 -0
- package/types/tectra-ng-ui-menubar.d.ts.map +1 -0
- package/types/tectra-ng-ui-panel-menu.d.ts +244 -0
- package/types/tectra-ng-ui-panel-menu.d.ts.map +1 -0
- package/types/tectra-ng-ui-scroll-panel.d.ts +94 -0
- package/types/tectra-ng-ui-scroll-panel.d.ts.map +1 -0
- package/types/tectra-ng-ui-splitter.d.ts +226 -0
- package/types/tectra-ng-ui-splitter.d.ts.map +1 -0
- package/types/tectra-ng-ui-stepper.d.ts +446 -0
- package/types/tectra-ng-ui-stepper.d.ts.map +1 -0
- package/types/tectra-ng-ui-table.d.ts +2 -4
- package/types/tectra-ng-ui-table.d.ts.map +1 -1
- package/types/tectra-ng-ui-tabs.d.ts +420 -0
- package/types/tectra-ng-ui-tabs.d.ts.map +1 -0
- package/types/tectra-ng-ui-textarea.d.ts +1 -0
- package/types/tectra-ng-ui-textarea.d.ts.map +1 -1
- package/types/tectra-ng-ui-toolbar.d.ts +85 -0
- package/types/tectra-ng-ui-toolbar.d.ts.map +1 -0
- package/types/tectra-ng-ui-tree-table.d.ts.map +1 -1
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
import { TxMenuItem, TxMenuItemContext, TxMenuItemEvent } from "@tectra-ng/ui/menu";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import { TemplateRef } from "@angular/core";
|
|
4
|
+
import { TxPassThroughOptions } from "@tectra-ng/core/config";
|
|
5
|
+
import { TectraDeepPartial } from "@tectra-ng/themes";
|
|
6
|
+
export type TxMenubarPart = 'root' | 'start' | 'end' | 'list' | 'item' | 'icon' | 'label' | 'badge' | 'submenuIcon' | 'separator' | 'submenu' | 'mobileButton';
|
|
7
|
+
export interface TxMenubarEntry {
|
|
8
|
+
item: TxMenuItem;
|
|
9
|
+
key: string;
|
|
10
|
+
id: string;
|
|
11
|
+
level: number;
|
|
12
|
+
children: TxMenubarEntry[];
|
|
13
|
+
}
|
|
14
|
+
export declare class TxMenubarItemTemplate {
|
|
15
|
+
readonly template: TemplateRef<TxMenuItemContext<unknown>>;
|
|
16
|
+
static ngTemplateContextGuard(_directive: TxMenubarItemTemplate, context: unknown): context is TxMenuItemContext;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TxMenubarItemTemplate, never>;
|
|
18
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TxMenubarItemTemplate, "ng-template[txMenubarItem]", never, {}, {}, never, never, true, never>;
|
|
19
|
+
}
|
|
20
|
+
export declare class TxMenubar {
|
|
21
|
+
private readonly host;
|
|
22
|
+
private readonly document;
|
|
23
|
+
private readonly overlay;
|
|
24
|
+
private readonly viewContainerRef;
|
|
25
|
+
private readonly typeahead;
|
|
26
|
+
private readonly baseId;
|
|
27
|
+
private submenu;
|
|
28
|
+
private stopWatchingOutside;
|
|
29
|
+
readonly model: import("@angular/core").InputSignal<TxMenuItem<unknown>[]>;
|
|
30
|
+
readonly autoDisplay: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
31
|
+
readonly breakpoint: import("@angular/core").InputSignal<string>;
|
|
32
|
+
readonly ariaLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
33
|
+
readonly ariaLabelledBy: import("@angular/core").InputSignal<string | undefined>;
|
|
34
|
+
readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<{
|
|
35
|
+
root: {
|
|
36
|
+
background: string;
|
|
37
|
+
borderColor: string;
|
|
38
|
+
borderRadius: string;
|
|
39
|
+
color: string;
|
|
40
|
+
gap: string;
|
|
41
|
+
padding: string;
|
|
42
|
+
fontSize: string;
|
|
43
|
+
transitionDuration: string;
|
|
44
|
+
};
|
|
45
|
+
item: {
|
|
46
|
+
padding: string;
|
|
47
|
+
gap: string;
|
|
48
|
+
borderRadius: string;
|
|
49
|
+
color: string;
|
|
50
|
+
fontWeight: string;
|
|
51
|
+
focusBackground: string;
|
|
52
|
+
focusColor: string;
|
|
53
|
+
activeBackground: string;
|
|
54
|
+
activeColor: string;
|
|
55
|
+
disabledOpacity: string;
|
|
56
|
+
focusRingWidth: string;
|
|
57
|
+
focusRingColor: string;
|
|
58
|
+
focusRingOffset: string;
|
|
59
|
+
icon: {
|
|
60
|
+
size: string;
|
|
61
|
+
color: string;
|
|
62
|
+
focusColor: string;
|
|
63
|
+
activeColor: string;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
submenuIcon: {
|
|
67
|
+
size: string;
|
|
68
|
+
color: string;
|
|
69
|
+
focusColor: string;
|
|
70
|
+
};
|
|
71
|
+
mobileButton: {
|
|
72
|
+
size: string;
|
|
73
|
+
borderRadius: string;
|
|
74
|
+
color: string;
|
|
75
|
+
hoverColor: string;
|
|
76
|
+
hoverBackground: string;
|
|
77
|
+
};
|
|
78
|
+
mobile: {
|
|
79
|
+
padding: string;
|
|
80
|
+
gap: string;
|
|
81
|
+
background: string;
|
|
82
|
+
borderColor: string;
|
|
83
|
+
borderRadius: string;
|
|
84
|
+
shadow: string;
|
|
85
|
+
indent: string;
|
|
86
|
+
offset: string;
|
|
87
|
+
expandDuration: string;
|
|
88
|
+
expandEasing: string;
|
|
89
|
+
};
|
|
90
|
+
}> | undefined>;
|
|
91
|
+
readonly pt: import("@angular/core").InputSignal<Partial<Record<TxMenubarPart, import("@tectra-ng/core/config").TxPassThroughValue<TxMenubar>>> | undefined>;
|
|
92
|
+
readonly ptOptions: import("@angular/core").InputSignal<TxPassThroughOptions | undefined>;
|
|
93
|
+
readonly unstyled: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
94
|
+
readonly itemClick: import("@angular/core").OutputEmitterRef<TxMenuItemEvent<unknown>>;
|
|
95
|
+
readonly focused: import("@angular/core").OutputEmitterRef<FocusEvent>;
|
|
96
|
+
readonly blurred: import("@angular/core").OutputEmitterRef<FocusEvent>;
|
|
97
|
+
protected readonly itemTemplate: import("@angular/core").Signal<TxMenubarItemTemplate | undefined>;
|
|
98
|
+
private readonly submenuTemplate;
|
|
99
|
+
readonly listId: string;
|
|
100
|
+
readonly translations: import("@angular/core").Signal<import("@tectra-ng/core/config").TxTranslations>;
|
|
101
|
+
readonly isUnstyled: import("@angular/core").Signal<boolean>;
|
|
102
|
+
readonly passThrough: import("@angular/core").Signal<Partial<Record<TxMenubarPart, import("@tectra-ng/core/config").TxPassThroughPart>>>;
|
|
103
|
+
readonly hostStyle: import("@angular/core").Signal<{
|
|
104
|
+
[x: string]: string;
|
|
105
|
+
}>;
|
|
106
|
+
readonly submenuPt: import("@angular/core").Signal<{
|
|
107
|
+
root: import("@tectra-ng/core/config").TxPassThroughPart | undefined;
|
|
108
|
+
}>;
|
|
109
|
+
readonly entries: import("@angular/core").Signal<TxMenubarEntry[]>;
|
|
110
|
+
readonly openKey: import("@angular/core").WritableSignal<string | null>;
|
|
111
|
+
readonly focusKey: import("@angular/core").WritableSignal<string | null>;
|
|
112
|
+
readonly mobile: import("@angular/core").WritableSignal<boolean>;
|
|
113
|
+
readonly mobileOpen: import("@angular/core").WritableSignal<boolean>;
|
|
114
|
+
readonly expanded: import("@angular/core").WritableSignal<ReadonlySet<string>>;
|
|
115
|
+
readonly firstKey: import("@angular/core").Signal<string | null>;
|
|
116
|
+
constructor();
|
|
117
|
+
hasChildren(entry: TxMenubarEntry): boolean;
|
|
118
|
+
tabIndex(entry: TxMenubarEntry): number;
|
|
119
|
+
isExpanded(entry: TxMenubarEntry): boolean;
|
|
120
|
+
context(entry: TxMenubarEntry): TxMenuItemContext;
|
|
121
|
+
childItems(entry: TxMenubarEntry): TxMenuItem[];
|
|
122
|
+
toggleMobile(): void;
|
|
123
|
+
onItemClick(entry: TxMenubarEntry, event: MouseEvent): void;
|
|
124
|
+
onItemEnter(entry: TxMenubarEntry): void;
|
|
125
|
+
onItemFocus(entry: TxMenubarEntry): void;
|
|
126
|
+
onKeydown(event: KeyboardEvent): void;
|
|
127
|
+
onSubmenuKeydown(event: KeyboardEvent): void;
|
|
128
|
+
onSubmenuLeave(): void;
|
|
129
|
+
onSubmenuSelected(event: TxMenuItemEvent): void;
|
|
130
|
+
closeSubmenu(): void;
|
|
131
|
+
onFocusIn(event: FocusEvent): void;
|
|
132
|
+
onFocusOut(event: FocusEvent): void;
|
|
133
|
+
private select;
|
|
134
|
+
private toggleExpanded;
|
|
135
|
+
private isSibling;
|
|
136
|
+
private openSubmenu;
|
|
137
|
+
private watchOutside;
|
|
138
|
+
private moveRoot;
|
|
139
|
+
private onMobileKeydown;
|
|
140
|
+
private search;
|
|
141
|
+
private visibleMobileEntries;
|
|
142
|
+
private navigable;
|
|
143
|
+
private focusEntry;
|
|
144
|
+
private elementOf;
|
|
145
|
+
private entryOf;
|
|
146
|
+
private findEntry;
|
|
147
|
+
private build;
|
|
148
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TxMenubar, never>;
|
|
149
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TxMenubar, "tx-menubar", never, {
|
|
150
|
+
"model": {
|
|
151
|
+
"alias": "model";
|
|
152
|
+
"required": false;
|
|
153
|
+
"isSignal": true;
|
|
154
|
+
};
|
|
155
|
+
"autoDisplay": {
|
|
156
|
+
"alias": "autoDisplay";
|
|
157
|
+
"required": false;
|
|
158
|
+
"isSignal": true;
|
|
159
|
+
};
|
|
160
|
+
"breakpoint": {
|
|
161
|
+
"alias": "breakpoint";
|
|
162
|
+
"required": false;
|
|
163
|
+
"isSignal": true;
|
|
164
|
+
};
|
|
165
|
+
"ariaLabel": {
|
|
166
|
+
"alias": "ariaLabel";
|
|
167
|
+
"required": false;
|
|
168
|
+
"isSignal": true;
|
|
169
|
+
};
|
|
170
|
+
"ariaLabelledBy": {
|
|
171
|
+
"alias": "ariaLabelledBy";
|
|
172
|
+
"required": false;
|
|
173
|
+
"isSignal": true;
|
|
174
|
+
};
|
|
175
|
+
"dt": {
|
|
176
|
+
"alias": "dt";
|
|
177
|
+
"required": false;
|
|
178
|
+
"isSignal": true;
|
|
179
|
+
};
|
|
180
|
+
"pt": {
|
|
181
|
+
"alias": "pt";
|
|
182
|
+
"required": false;
|
|
183
|
+
"isSignal": true;
|
|
184
|
+
};
|
|
185
|
+
"ptOptions": {
|
|
186
|
+
"alias": "ptOptions";
|
|
187
|
+
"required": false;
|
|
188
|
+
"isSignal": true;
|
|
189
|
+
};
|
|
190
|
+
"unstyled": {
|
|
191
|
+
"alias": "unstyled";
|
|
192
|
+
"required": false;
|
|
193
|
+
"isSignal": true;
|
|
194
|
+
};
|
|
195
|
+
}, {
|
|
196
|
+
"itemClick": "itemClick";
|
|
197
|
+
"focused": "focused";
|
|
198
|
+
"blurred": "blurred";
|
|
199
|
+
}, ["itemTemplate"], ["[txMenubarStart]", "[txMenubarEnd]"], true, never>;
|
|
200
|
+
}
|
|
201
|
+
//# sourceMappingURL=tectra-ng-ui-menubar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tectra-ng-ui-menubar.d.ts","names":[],"sources":["../../../../packages/ui/menubar/src/menubar.types.ts","../../../../packages/ui/menubar/src/menubar.component.ts"],"mappings":";;;;;YAEY;iBAcK;EACf,MAAM;EACN;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A;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;;IAAA;IAAA;IAAA"}
|
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
import { IsActiveMatchOptions } from "@angular/router";
|
|
2
|
+
import { TxMenuItem, TxMenuItemEvent } from "@tectra-ng/ui/menu";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import { TemplateRef } from "@angular/core";
|
|
5
|
+
import { TxPassThroughOptions } from "@tectra-ng/core/config";
|
|
6
|
+
import { TectraDeepPartial } from "@tectra-ng/themes";
|
|
7
|
+
export type TxPanelMenuVariant = 'panel' | 'sidebar';
|
|
8
|
+
export type TxPanelMenuExpandedKeys = Record<string, boolean>;
|
|
9
|
+
export type TxPanelMenuPart = 'root' | 'panel' | 'header' | 'section' | 'tree' | 'item' | 'icon' | 'label' | 'badge' | 'lock' | 'submenuIcon' | 'separator';
|
|
10
|
+
export interface TxPanelMenuItem<TData = unknown> extends Omit<TxMenuItem<TData>, 'items'> {
|
|
11
|
+
items?: TxPanelMenuItem<TData>[];
|
|
12
|
+
expanded?: boolean;
|
|
13
|
+
routerLinkActiveOptions?: {
|
|
14
|
+
exact: boolean;
|
|
15
|
+
} | Partial<IsActiveMatchOptions>;
|
|
16
|
+
}
|
|
17
|
+
export type TxPanelMenuItemEvent<TData = unknown> = TxMenuItemEvent<TData>;
|
|
18
|
+
export interface TxPanelMenuItemContext<TData = unknown> {
|
|
19
|
+
$implicit: TxPanelMenuItem<TData>;
|
|
20
|
+
item: TxPanelMenuItem<TData>;
|
|
21
|
+
level: number;
|
|
22
|
+
active: boolean;
|
|
23
|
+
expanded: boolean;
|
|
24
|
+
hasSubmenu: boolean;
|
|
25
|
+
}
|
|
26
|
+
export declare class TxPanelMenuItemTemplate {
|
|
27
|
+
readonly template: TemplateRef<TxPanelMenuItemContext<unknown>>;
|
|
28
|
+
static ngTemplateContextGuard(_directive: TxPanelMenuItemTemplate, context: unknown): context is TxPanelMenuItemContext;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TxPanelMenuItemTemplate, never>;
|
|
30
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TxPanelMenuItemTemplate, "ng-template[txPanelMenuItem]", never, {}, {}, never, never, true, never>;
|
|
31
|
+
}
|
|
32
|
+
export interface TxPanelMenuNode {
|
|
33
|
+
item: TxPanelMenuItem;
|
|
34
|
+
key: string;
|
|
35
|
+
id: string;
|
|
36
|
+
level: number;
|
|
37
|
+
ancestors: string[];
|
|
38
|
+
parent: TxPanelMenuNode | null;
|
|
39
|
+
children: TxPanelMenuNode[];
|
|
40
|
+
separator: boolean;
|
|
41
|
+
}
|
|
42
|
+
interface TxPanelMenuBlock {
|
|
43
|
+
node: TxPanelMenuNode;
|
|
44
|
+
tree: TxPanelMenuNode[];
|
|
45
|
+
titled: boolean;
|
|
46
|
+
}
|
|
47
|
+
type TxPanelMenuLink = 'router' | 'url' | 'none';
|
|
48
|
+
export declare class TxPanelMenu {
|
|
49
|
+
private readonly router;
|
|
50
|
+
private readonly host;
|
|
51
|
+
private readonly txIconRegistry;
|
|
52
|
+
private readonly baseId;
|
|
53
|
+
readonly model: import("@angular/core").InputSignal<TxPanelMenuItem<unknown>[]>;
|
|
54
|
+
readonly variant: import("@angular/core").InputSignal<TxPanelMenuVariant>;
|
|
55
|
+
readonly multiple: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
56
|
+
readonly expandedKeys: import("@angular/core").ModelSignal<TxPanelMenuExpandedKeys>;
|
|
57
|
+
readonly badgeMax: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
58
|
+
readonly ariaLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
59
|
+
readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<{
|
|
60
|
+
root: {
|
|
61
|
+
gap: string;
|
|
62
|
+
transitionDuration: string;
|
|
63
|
+
expandDuration: string;
|
|
64
|
+
expandEasing: string;
|
|
65
|
+
fontSize: string;
|
|
66
|
+
lineHeight: string;
|
|
67
|
+
};
|
|
68
|
+
panel: {
|
|
69
|
+
background: string;
|
|
70
|
+
borderColor: string;
|
|
71
|
+
borderWidth: string;
|
|
72
|
+
color: string;
|
|
73
|
+
padding: string;
|
|
74
|
+
borderRadius: string;
|
|
75
|
+
};
|
|
76
|
+
list: {
|
|
77
|
+
gap: string;
|
|
78
|
+
};
|
|
79
|
+
item: {
|
|
80
|
+
padding: string;
|
|
81
|
+
gap: string;
|
|
82
|
+
borderRadius: string;
|
|
83
|
+
color: string;
|
|
84
|
+
fontWeight: string;
|
|
85
|
+
focusBackground: string;
|
|
86
|
+
focusColor: string;
|
|
87
|
+
activeBackground: string;
|
|
88
|
+
activeColor: string;
|
|
89
|
+
disabledOpacity: string;
|
|
90
|
+
focusRingWidth: string;
|
|
91
|
+
focusRingColor: string;
|
|
92
|
+
focusRingOffset: string;
|
|
93
|
+
};
|
|
94
|
+
icon: {
|
|
95
|
+
size: string;
|
|
96
|
+
color: string;
|
|
97
|
+
focusColor: string;
|
|
98
|
+
};
|
|
99
|
+
submenu: {
|
|
100
|
+
indent: string;
|
|
101
|
+
};
|
|
102
|
+
submenuIcon: {
|
|
103
|
+
size: string;
|
|
104
|
+
color: string;
|
|
105
|
+
focusColor: string;
|
|
106
|
+
};
|
|
107
|
+
separator: {
|
|
108
|
+
color: string;
|
|
109
|
+
margin: string;
|
|
110
|
+
};
|
|
111
|
+
sidebar: {
|
|
112
|
+
sectionPadding: string;
|
|
113
|
+
sectionFontSize: string;
|
|
114
|
+
sectionFontWeight: string;
|
|
115
|
+
sectionColor: string;
|
|
116
|
+
itemMargin: string;
|
|
117
|
+
itemPadding: string;
|
|
118
|
+
itemBadgePaddingEnd: string;
|
|
119
|
+
itemBorderRadius: string;
|
|
120
|
+
itemFontWeight: string;
|
|
121
|
+
itemColor: string;
|
|
122
|
+
itemHoverBackground: string;
|
|
123
|
+
itemHoverColor: string;
|
|
124
|
+
iconSize: string;
|
|
125
|
+
iconGap: string;
|
|
126
|
+
iconColor: string;
|
|
127
|
+
activeBackground: string;
|
|
128
|
+
activeColor: string;
|
|
129
|
+
activeHoverBackground: string;
|
|
130
|
+
activeFontWeight: string;
|
|
131
|
+
indent1: string;
|
|
132
|
+
indent2: string;
|
|
133
|
+
indent3: string;
|
|
134
|
+
indentStep: string;
|
|
135
|
+
togglerSize: string;
|
|
136
|
+
disabledOpacity: string;
|
|
137
|
+
focusShadow: string;
|
|
138
|
+
badgeSize: string;
|
|
139
|
+
badgePadding: string;
|
|
140
|
+
badgeGap: string;
|
|
141
|
+
badgeFontSize: string;
|
|
142
|
+
badgeFontWeight: string;
|
|
143
|
+
badgeBackground: string;
|
|
144
|
+
badgeColor: string;
|
|
145
|
+
lockSize: string;
|
|
146
|
+
lockGap: string;
|
|
147
|
+
lockColor: string;
|
|
148
|
+
};
|
|
149
|
+
}> | undefined>;
|
|
150
|
+
readonly pt: import("@angular/core").InputSignal<Partial<Record<TxPanelMenuPart, import("@tectra-ng/core/config").TxPassThroughValue<TxPanelMenu>>> | undefined>;
|
|
151
|
+
readonly ptOptions: import("@angular/core").InputSignal<TxPassThroughOptions | undefined>;
|
|
152
|
+
readonly unstyled: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
153
|
+
readonly itemClick: import("@angular/core").OutputEmitterRef<TxPanelMenuItemEvent>;
|
|
154
|
+
protected readonly itemTemplate: import("@angular/core").Signal<TxPanelMenuItemTemplate | undefined>;
|
|
155
|
+
protected readonly focusKey: import("@angular/core").WritableSignal<string | null>;
|
|
156
|
+
readonly isUnstyled: import("@angular/core").Signal<boolean>;
|
|
157
|
+
readonly passThrough: import("@angular/core").Signal<Partial<Record<TxPanelMenuPart, import("@tectra-ng/core/config").TxPassThroughPart>>>;
|
|
158
|
+
readonly hostStyle: import("@angular/core").Signal<{
|
|
159
|
+
[x: string]: string;
|
|
160
|
+
}>;
|
|
161
|
+
readonly nodes: import("@angular/core").Signal<TxPanelMenuNode[]>;
|
|
162
|
+
protected readonly blocks: import("@angular/core").Signal<TxPanelMenuBlock[]>;
|
|
163
|
+
private readonly url;
|
|
164
|
+
readonly activeKeys: import("@angular/core").Signal<Set<string>>;
|
|
165
|
+
private readonly activeAncestors;
|
|
166
|
+
constructor();
|
|
167
|
+
isExpanded(node: TxPanelMenuNode): boolean;
|
|
168
|
+
isActive(node: TxPanelMenuNode): boolean;
|
|
169
|
+
toggle(node: TxPanelMenuNode): void;
|
|
170
|
+
protected linkKind(node: TxPanelMenuNode): TxPanelMenuLink;
|
|
171
|
+
protected href(item: TxPanelMenuItem): string;
|
|
172
|
+
protected routerCommands(item: TxPanelMenuItem): readonly unknown[] | string;
|
|
173
|
+
protected iconName(icon: string | undefined): string | null;
|
|
174
|
+
protected badgeText(item: TxPanelMenuItem): string;
|
|
175
|
+
protected ariaLevel(node: TxPanelMenuNode): number;
|
|
176
|
+
protected context(node: TxPanelMenuNode): TxPanelMenuItemContext;
|
|
177
|
+
protected tabKey(tree: TxPanelMenuNode[]): string | null;
|
|
178
|
+
protected onItemClick(node: TxPanelMenuNode, event: Event): void;
|
|
179
|
+
protected onHeaderKeydown(event: KeyboardEvent): void;
|
|
180
|
+
protected onTreeKeydown(event: KeyboardEvent, tree: TxPanelMenuNode[]): void;
|
|
181
|
+
private focusNode;
|
|
182
|
+
private visible;
|
|
183
|
+
private currentTree;
|
|
184
|
+
private matches;
|
|
185
|
+
private build;
|
|
186
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TxPanelMenu, never>;
|
|
187
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TxPanelMenu, "tx-panel-menu", never, {
|
|
188
|
+
"model": {
|
|
189
|
+
"alias": "model";
|
|
190
|
+
"required": false;
|
|
191
|
+
"isSignal": true;
|
|
192
|
+
};
|
|
193
|
+
"variant": {
|
|
194
|
+
"alias": "variant";
|
|
195
|
+
"required": false;
|
|
196
|
+
"isSignal": true;
|
|
197
|
+
};
|
|
198
|
+
"multiple": {
|
|
199
|
+
"alias": "multiple";
|
|
200
|
+
"required": false;
|
|
201
|
+
"isSignal": true;
|
|
202
|
+
};
|
|
203
|
+
"expandedKeys": {
|
|
204
|
+
"alias": "expandedKeys";
|
|
205
|
+
"required": false;
|
|
206
|
+
"isSignal": true;
|
|
207
|
+
};
|
|
208
|
+
"badgeMax": {
|
|
209
|
+
"alias": "badgeMax";
|
|
210
|
+
"required": false;
|
|
211
|
+
"isSignal": true;
|
|
212
|
+
};
|
|
213
|
+
"ariaLabel": {
|
|
214
|
+
"alias": "ariaLabel";
|
|
215
|
+
"required": false;
|
|
216
|
+
"isSignal": true;
|
|
217
|
+
};
|
|
218
|
+
"dt": {
|
|
219
|
+
"alias": "dt";
|
|
220
|
+
"required": false;
|
|
221
|
+
"isSignal": true;
|
|
222
|
+
};
|
|
223
|
+
"pt": {
|
|
224
|
+
"alias": "pt";
|
|
225
|
+
"required": false;
|
|
226
|
+
"isSignal": true;
|
|
227
|
+
};
|
|
228
|
+
"ptOptions": {
|
|
229
|
+
"alias": "ptOptions";
|
|
230
|
+
"required": false;
|
|
231
|
+
"isSignal": true;
|
|
232
|
+
};
|
|
233
|
+
"unstyled": {
|
|
234
|
+
"alias": "unstyled";
|
|
235
|
+
"required": false;
|
|
236
|
+
"isSignal": true;
|
|
237
|
+
};
|
|
238
|
+
}, {
|
|
239
|
+
"expandedKeys": "expandedKeysChange";
|
|
240
|
+
"itemClick": "itemClick";
|
|
241
|
+
}, ["itemTemplate"], never, true, never>;
|
|
242
|
+
}
|
|
243
|
+
export {};
|
|
244
|
+
//# sourceMappingURL=tectra-ng-ui-panel-menu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tectra-ng-ui-panel-menu.d.ts","names":[],"sources":["../../../../packages/ui/panel-menu/src/panel-menu.types.ts","../../../../packages/ui/panel-menu/src/panel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,MAAM,kBAAkB;YAWhC,OAAO,MAAM;YAMb,YAAY,MAAM,iBAAiB,OAAO;YAc1C,gBAAgB,OAAO;YA0BvB,cAAc,OAAO,eAAe,MAAM;UAkD5C;UAKA;UAMA;UAMA;UAYA;SA/SG,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAW;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;;IAAA;IAAA"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { TxPassThroughOptions } from "@tectra-ng/core/config";
|
|
2
|
+
import { TectraDeepPartial } from "@tectra-ng/themes";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export type TxScrollPanelPart = 'root' | 'content' | 'barX' | 'barY';
|
|
5
|
+
export type TxScrollPanelAxis = 'x' | 'y';
|
|
6
|
+
export interface TxScrollPanelBar {
|
|
7
|
+
visible: boolean;
|
|
8
|
+
length: number;
|
|
9
|
+
offset: number;
|
|
10
|
+
value: number;
|
|
11
|
+
}
|
|
12
|
+
export declare class TxScrollPanel {
|
|
13
|
+
private document;
|
|
14
|
+
private destroyRef;
|
|
15
|
+
readonly step: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
16
|
+
readonly ariaLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
17
|
+
readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<{
|
|
18
|
+
root: {
|
|
19
|
+
transitionDuration: string;
|
|
20
|
+
focusRingWidth: string;
|
|
21
|
+
focusRingColor: string;
|
|
22
|
+
focusRingOffset: string;
|
|
23
|
+
};
|
|
24
|
+
bar: {
|
|
25
|
+
size: string;
|
|
26
|
+
borderRadius: string;
|
|
27
|
+
background: string;
|
|
28
|
+
focusRingWidth: string;
|
|
29
|
+
focusRingColor: string;
|
|
30
|
+
focusRingOffset: string;
|
|
31
|
+
};
|
|
32
|
+
}> | undefined>;
|
|
33
|
+
readonly pt: import("@angular/core").InputSignal<Partial<Record<TxScrollPanelPart, import("@tectra-ng/core/config").TxPassThroughValue<TxScrollPanel>>> | undefined>;
|
|
34
|
+
readonly ptOptions: import("@angular/core").InputSignal<TxPassThroughOptions | undefined>;
|
|
35
|
+
readonly unstyled: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
36
|
+
readonly isUnstyled: import("@angular/core").Signal<boolean>;
|
|
37
|
+
readonly passThrough: import("@angular/core").Signal<Partial<Record<TxScrollPanelPart, import("@tectra-ng/core/config").TxPassThroughPart>>>;
|
|
38
|
+
private readonly content;
|
|
39
|
+
private readonly inner;
|
|
40
|
+
protected readonly contentId: string;
|
|
41
|
+
protected readonly barX: import("@angular/core").WritableSignal<TxScrollPanelBar>;
|
|
42
|
+
protected readonly barY: import("@angular/core").WritableSignal<TxScrollPanelBar>;
|
|
43
|
+
protected readonly grabbed: import("@angular/core").WritableSignal<TxScrollPanelAxis | null>;
|
|
44
|
+
readonly hostStyle: import("@angular/core").Signal<{
|
|
45
|
+
[x: string]: string;
|
|
46
|
+
}>;
|
|
47
|
+
private grab;
|
|
48
|
+
constructor();
|
|
49
|
+
refresh(): void;
|
|
50
|
+
scrollTop(value: number): void;
|
|
51
|
+
scrollLeft(value: number): void;
|
|
52
|
+
protected onGrab(event: PointerEvent, axis: TxScrollPanelAxis): void;
|
|
53
|
+
protected onDrag(event: PointerEvent): void;
|
|
54
|
+
protected onRelease(event: PointerEvent): void;
|
|
55
|
+
protected onBarKeyDown(event: KeyboardEvent, axis: TxScrollPanelAxis): void;
|
|
56
|
+
private measure;
|
|
57
|
+
private trackLength;
|
|
58
|
+
private barThickness;
|
|
59
|
+
private isRtl;
|
|
60
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TxScrollPanel, never>;
|
|
61
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TxScrollPanel, "tx-scroll-panel", never, {
|
|
62
|
+
"step": {
|
|
63
|
+
"alias": "step";
|
|
64
|
+
"required": false;
|
|
65
|
+
"isSignal": true;
|
|
66
|
+
};
|
|
67
|
+
"ariaLabel": {
|
|
68
|
+
"alias": "ariaLabel";
|
|
69
|
+
"required": false;
|
|
70
|
+
"isSignal": true;
|
|
71
|
+
};
|
|
72
|
+
"dt": {
|
|
73
|
+
"alias": "dt";
|
|
74
|
+
"required": false;
|
|
75
|
+
"isSignal": true;
|
|
76
|
+
};
|
|
77
|
+
"pt": {
|
|
78
|
+
"alias": "pt";
|
|
79
|
+
"required": false;
|
|
80
|
+
"isSignal": true;
|
|
81
|
+
};
|
|
82
|
+
"ptOptions": {
|
|
83
|
+
"alias": "ptOptions";
|
|
84
|
+
"required": false;
|
|
85
|
+
"isSignal": true;
|
|
86
|
+
};
|
|
87
|
+
"unstyled": {
|
|
88
|
+
"alias": "unstyled";
|
|
89
|
+
"required": false;
|
|
90
|
+
"isSignal": true;
|
|
91
|
+
};
|
|
92
|
+
}, {}, never, ["*"], true, never>;
|
|
93
|
+
}
|
|
94
|
+
//# sourceMappingURL=tectra-ng-ui-scroll-panel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tectra-ng-ui-scroll-panel.d.ts","names":[],"sources":["../../../../packages/ui/scroll-panel/src/scroll-panel.types.ts","../../../../packages/ui/scroll-panel/src/scroll-panel.component.ts"],"mappings":";;;YAAY;YAEA;iBAEK;EACf;EACA;EACA;EACA;;qBCmCW;UACH;UACA;WAEC,8BAAI;WACJ,mCAAS;WACT,4BAAE,YAAA;;;;;;;;;;;;;;;;WACF,4BAAE,YAAA,QAAA,OAAA,oDAAA,mBAAA;WACF,mCAAS,YAAA;WACT,kCAAQ;WAER,oCAAU;WACV,qCAAW,OAAA,QAAA,OAAA,oDAAA;mBACH;mBACA;qBAEE;qBACA,8BAAI,eAAA;qBACJ,8BAAI,eAAA;qBACJ,iCAAO,eAAA;WACjB,mCAAS;;;UAEV;;EAeR;EAiBA,UAAU;EAMV,WAAW;YAQD,OAAO,OAAO,cAAc,MAAM;YAqBlC,OAAO,OAAO;YAad,UAAU,OAAO;YAYjB,aAAa,OAAO,eAAe,MAAM;UA4B3C;UAOA;UAOA;UAMA;SAlKG,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAa;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA"}
|