@qualcomm-ui/angular-core 1.2.0 → 1.3.0
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.
|
@@ -1,4 +1,345 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Injectable, Directive, input, booleanAttribute, output, inject, computed, Injector } from '@angular/core';
|
|
3
|
+
import { BaseApiContextService, createApiContext, useTrackBindings, useMachine, normalizeProps } from '@qualcomm-ui/angular-core/machine';
|
|
4
|
+
import { DOCUMENT } from '@angular/common';
|
|
5
|
+
import { useId, useIsMounted } from '@qualcomm-ui/angular-core/common';
|
|
6
|
+
import { RenderStrategyContextService } from '@qualcomm-ui/angular-core/presence';
|
|
7
|
+
import { TreeContextService } from '@qualcomm-ui/angular-core/tree';
|
|
8
|
+
import { sideNavMachine, createSideNavApi } from '@qualcomm-ui/core/side-nav';
|
|
9
|
+
import { treeMachine, createTreeApi } from '@qualcomm-ui/core/tree';
|
|
10
|
+
import '@qualcomm-ui/utils/collection';
|
|
11
|
+
|
|
12
|
+
// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
|
|
13
|
+
// SPDX-License-Identifier: BSD-3-Clause-Clear
|
|
14
|
+
class SideNavContextService extends BaseApiContextService {
|
|
15
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: SideNavContextService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
16
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: SideNavContextService });
|
|
17
|
+
}
|
|
18
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: SideNavContextService, decorators: [{
|
|
19
|
+
type: Injectable
|
|
20
|
+
}] });
|
|
21
|
+
const [SIDE_NAV_CONTEXT, useSideNavContext, provideSideNavContext,] = createApiContext("SideNavContext", SideNavContextService);
|
|
22
|
+
|
|
23
|
+
// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
|
|
24
|
+
// SPDX-License-Identifier: BSD-3-Clause-Clear
|
|
25
|
+
class CoreSideNavHeaderActionDirective {
|
|
26
|
+
sideNavContext = useSideNavContext();
|
|
27
|
+
trackBindings = useTrackBindings(() => this.sideNavContext().getHeaderActionBindings());
|
|
28
|
+
ngOnInit() {
|
|
29
|
+
this.trackBindings();
|
|
30
|
+
}
|
|
31
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: CoreSideNavHeaderActionDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
32
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.12", type: CoreSideNavHeaderActionDirective, isStandalone: true, ngImport: i0 });
|
|
33
|
+
}
|
|
34
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: CoreSideNavHeaderActionDirective, decorators: [{
|
|
35
|
+
type: Directive
|
|
36
|
+
}] });
|
|
37
|
+
|
|
38
|
+
// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
|
|
39
|
+
// SPDX-License-Identifier: BSD-3-Clause-Clear
|
|
40
|
+
class CoreSideNavHeaderLogoDirective {
|
|
41
|
+
sideNavContext = useSideNavContext();
|
|
42
|
+
trackBindings = useTrackBindings(() => this.sideNavContext().getHeaderLogoBindings());
|
|
43
|
+
ngOnInit() {
|
|
44
|
+
this.trackBindings();
|
|
45
|
+
}
|
|
46
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: CoreSideNavHeaderLogoDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
47
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.12", type: CoreSideNavHeaderLogoDirective, isStandalone: true, ngImport: i0 });
|
|
48
|
+
}
|
|
49
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: CoreSideNavHeaderLogoDirective, decorators: [{
|
|
50
|
+
type: Directive
|
|
51
|
+
}] });
|
|
52
|
+
|
|
53
|
+
// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
|
|
54
|
+
// SPDX-License-Identifier: BSD-3-Clause-Clear
|
|
55
|
+
class CoreSideNavHeaderTitleDirective {
|
|
56
|
+
sideNavContext = useSideNavContext();
|
|
57
|
+
trackBindings = useTrackBindings(() => this.sideNavContext().getHeaderTitleBindings());
|
|
58
|
+
ngOnInit() {
|
|
59
|
+
this.trackBindings();
|
|
60
|
+
}
|
|
61
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: CoreSideNavHeaderTitleDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
62
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.12", type: CoreSideNavHeaderTitleDirective, isStandalone: true, ngImport: i0 });
|
|
63
|
+
}
|
|
64
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: CoreSideNavHeaderTitleDirective, decorators: [{
|
|
65
|
+
type: Directive
|
|
66
|
+
}] });
|
|
67
|
+
|
|
68
|
+
// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
|
|
69
|
+
// SPDX-License-Identifier: BSD-3-Clause-Clear
|
|
70
|
+
class CoreSideNavHeaderDirective {
|
|
71
|
+
sideNavContext = useSideNavContext();
|
|
72
|
+
trackBindings = useTrackBindings(() => this.sideNavContext().getHeaderBindings());
|
|
73
|
+
ngOnInit() {
|
|
74
|
+
this.trackBindings();
|
|
75
|
+
}
|
|
76
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: CoreSideNavHeaderDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
77
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.12", type: CoreSideNavHeaderDirective, isStandalone: true, ngImport: i0 });
|
|
78
|
+
}
|
|
79
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: CoreSideNavHeaderDirective, decorators: [{
|
|
80
|
+
type: Directive
|
|
81
|
+
}] });
|
|
82
|
+
|
|
83
|
+
// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
|
|
84
|
+
// SPDX-License-Identifier: BSD-3-Clause-Clear
|
|
85
|
+
class CoreSideNavRootDirective {
|
|
86
|
+
/**
|
|
87
|
+
* The tree collection data
|
|
88
|
+
* @inheritDoc
|
|
89
|
+
*/
|
|
90
|
+
collection = input(...(ngDevMode ? [undefined, { debugName: "collection" }] : []));
|
|
91
|
+
/**
|
|
92
|
+
* The initial open state of the side navigation when rendered.
|
|
93
|
+
* Use when you don't need to control the open state of the collapsible.
|
|
94
|
+
*
|
|
95
|
+
* @default true
|
|
96
|
+
*/
|
|
97
|
+
defaultOpen = input(undefined, ...(ngDevMode ? [{ debugName: "defaultOpen", transform: booleanAttribute }] : [{
|
|
98
|
+
transform: booleanAttribute,
|
|
99
|
+
}]));
|
|
100
|
+
/**
|
|
101
|
+
* The initial expanded node ids when rendered.
|
|
102
|
+
* Use when you don't need to control the expanded node value.
|
|
103
|
+
*/
|
|
104
|
+
defaultExpandedValue = input(...(ngDevMode ? [undefined, { debugName: "defaultExpandedValue" }] : []));
|
|
105
|
+
/**
|
|
106
|
+
* The initial focused node value when rendered.
|
|
107
|
+
* Use when you don't need to control the focused node value.
|
|
108
|
+
*/
|
|
109
|
+
defaultFocusedValue = input(...(ngDevMode ? [undefined, { debugName: "defaultFocusedValue" }] : []));
|
|
110
|
+
/**
|
|
111
|
+
* The initial selected node value when rendered.
|
|
112
|
+
* Use when you don't need to control the selected node value.
|
|
113
|
+
*/
|
|
114
|
+
defaultSelectedValue = input(...(ngDevMode ? [undefined, { debugName: "defaultSelectedValue" }] : []));
|
|
115
|
+
/**
|
|
116
|
+
* The document's text/writing direction.
|
|
117
|
+
*/
|
|
118
|
+
dir = input(...(ngDevMode ? [undefined, { debugName: "dir" }] : []));
|
|
119
|
+
/**
|
|
120
|
+
* Whether the side navigation collapse behavior is disabled.
|
|
121
|
+
*/
|
|
122
|
+
disabled = input(undefined, ...(ngDevMode ? [{ debugName: "disabled", transform: booleanAttribute }] : [{
|
|
123
|
+
transform: booleanAttribute,
|
|
124
|
+
}]));
|
|
125
|
+
/**
|
|
126
|
+
* The controlled expanded node ids
|
|
127
|
+
*/
|
|
128
|
+
expandedValue = input(...(ngDevMode ? [undefined, { debugName: "expandedValue" }] : []));
|
|
129
|
+
/**
|
|
130
|
+
* Whether clicking on a branch should open it or not
|
|
131
|
+
* @default true
|
|
132
|
+
*/
|
|
133
|
+
expandOnClick = input(undefined, ...(ngDevMode ? [{ debugName: "expandOnClick", transform: booleanAttribute }] : [{
|
|
134
|
+
transform: booleanAttribute,
|
|
135
|
+
}]));
|
|
136
|
+
/**
|
|
137
|
+
* The value of the focused node
|
|
138
|
+
*/
|
|
139
|
+
focusedValue = input(...(ngDevMode ? [undefined, { debugName: "focusedValue" }] : []));
|
|
140
|
+
/**
|
|
141
|
+
* A root node to correctly resolve the Document in custom environments. i.e.,
|
|
142
|
+
* Iframes, Electron.
|
|
143
|
+
*/
|
|
144
|
+
getRootNode = input(...(ngDevMode ? [undefined, { debugName: "getRootNode" }] : []));
|
|
145
|
+
/**
|
|
146
|
+
* HTML id attribute. If omitted, a unique identifier will be generated for
|
|
147
|
+
* accessibility.
|
|
148
|
+
*/
|
|
149
|
+
id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : []));
|
|
150
|
+
/**
|
|
151
|
+
* When true, the component will not be rendered in the DOM until it becomes
|
|
152
|
+
* visible or active.
|
|
153
|
+
*
|
|
154
|
+
* @default false
|
|
155
|
+
*/
|
|
156
|
+
lazyMount = input(undefined, ...(ngDevMode ? [{ debugName: "lazyMount", transform: booleanAttribute }] : [{
|
|
157
|
+
transform: booleanAttribute,
|
|
158
|
+
}]));
|
|
159
|
+
/**
|
|
160
|
+
* Function to load children for a node asynchronously.
|
|
161
|
+
* When provided, branches will wait for this promise to resolve before expanding.
|
|
162
|
+
*/
|
|
163
|
+
loadChildren = input(...(ngDevMode ? [undefined, { debugName: "loadChildren" }] : []));
|
|
164
|
+
/**
|
|
165
|
+
* The controlled open state of the side navigation
|
|
166
|
+
*/
|
|
167
|
+
open = input(undefined, ...(ngDevMode ? [{ debugName: "open", transform: booleanAttribute }] : [{
|
|
168
|
+
transform: booleanAttribute,
|
|
169
|
+
}]));
|
|
170
|
+
/**
|
|
171
|
+
* The controlled selected node value
|
|
172
|
+
*/
|
|
173
|
+
selectedValue = input(...(ngDevMode ? [undefined, { debugName: "selectedValue" }] : []));
|
|
174
|
+
/**
|
|
175
|
+
* Whether the tree supports multiple selection
|
|
176
|
+
* @option `'single'`: only one node can be selected
|
|
177
|
+
* @option `'multiple'`: multiple nodes can be selected
|
|
178
|
+
*
|
|
179
|
+
* @default 'single'
|
|
180
|
+
*/
|
|
181
|
+
selectionMode = input(...(ngDevMode ? [undefined, { debugName: "selectionMode" }] : []));
|
|
182
|
+
/**
|
|
183
|
+
* Callback function that determines whether a node should be hidden.
|
|
184
|
+
*/
|
|
185
|
+
shouldHideNode = input(...(ngDevMode ? [undefined, { debugName: "shouldHideNode" }] : []));
|
|
186
|
+
/**
|
|
187
|
+
* Whether the tree supports typeahead search
|
|
188
|
+
* @default true
|
|
189
|
+
*/
|
|
190
|
+
typeahead = input(undefined, ...(ngDevMode ? [{ debugName: "typeahead", transform: booleanAttribute }] : [{
|
|
191
|
+
transform: booleanAttribute,
|
|
192
|
+
}]));
|
|
193
|
+
/**
|
|
194
|
+
* When true, the component will be completely removed from the DOM when it
|
|
195
|
+
* becomes inactive or hidden, rather than just being hidden with CSS.
|
|
196
|
+
*
|
|
197
|
+
* @default false
|
|
198
|
+
*/
|
|
199
|
+
unmountOnExit = input(undefined, ...(ngDevMode ? [{ debugName: "unmountOnExit", transform: booleanAttribute }] : [{
|
|
200
|
+
transform: booleanAttribute,
|
|
201
|
+
}]));
|
|
202
|
+
/**
|
|
203
|
+
* Called when the tree is opened or closed
|
|
204
|
+
*/
|
|
205
|
+
expandedValueChanged = output();
|
|
206
|
+
/**
|
|
207
|
+
* Called when the focused node changes
|
|
208
|
+
*/
|
|
209
|
+
focusChanged = output();
|
|
210
|
+
/**
|
|
211
|
+
* Called when a node finishes loading children
|
|
212
|
+
*/
|
|
213
|
+
loadChildrenComplete = output();
|
|
214
|
+
/**
|
|
215
|
+
* Called when loading children fails for one or more nodes
|
|
216
|
+
*/
|
|
217
|
+
loadChildrenError = output();
|
|
218
|
+
/**
|
|
219
|
+
* Called when the selection changes
|
|
220
|
+
*/
|
|
221
|
+
selectedValueChanged = output();
|
|
222
|
+
/**
|
|
223
|
+
* Called when the side navigation opens or closes
|
|
224
|
+
*/
|
|
225
|
+
openChanged = output();
|
|
226
|
+
document = inject(DOCUMENT);
|
|
227
|
+
hostId = computed(() => useId(this, this.id()), ...(ngDevMode ? [{ debugName: "hostId" }] : []));
|
|
228
|
+
injector = inject(Injector);
|
|
229
|
+
isMounted = useIsMounted();
|
|
230
|
+
renderStrategyContextService = inject(RenderStrategyContextService);
|
|
231
|
+
sideNavContextService = inject(SideNavContextService);
|
|
232
|
+
treeContextService = inject(TreeContextService);
|
|
233
|
+
trackBindings = useTrackBindings(() => this.sideNavContextService.context().getRootBindings({
|
|
234
|
+
id: this.hostId(),
|
|
235
|
+
}));
|
|
236
|
+
ngOnInit() {
|
|
237
|
+
const sideNavMachineInstance = useMachine(sideNavMachine, computed(() => ({
|
|
238
|
+
defaultOpen: this.defaultOpen(),
|
|
239
|
+
dir: this.dir(),
|
|
240
|
+
disabled: this.disabled(),
|
|
241
|
+
getRootNode: this.getRootNode() || (() => this.document),
|
|
242
|
+
onOpenChange: (open) => {
|
|
243
|
+
if (this.isMounted()) {
|
|
244
|
+
this.openChanged.emit(open);
|
|
245
|
+
}
|
|
246
|
+
},
|
|
247
|
+
open: this.open(),
|
|
248
|
+
})), this.injector);
|
|
249
|
+
const sideNavApi = computed(() => createSideNavApi(sideNavMachineInstance, normalizeProps), ...(ngDevMode ? [{ debugName: "sideNavApi" }] : []));
|
|
250
|
+
this.sideNavContextService.init(sideNavApi);
|
|
251
|
+
const treeMachineInstance = useMachine(treeMachine, computed(() => {
|
|
252
|
+
const sideNavOpen = sideNavApi().open;
|
|
253
|
+
const userShouldHideNode = this.shouldHideNode();
|
|
254
|
+
return {
|
|
255
|
+
checkedValue: undefined,
|
|
256
|
+
collection: this.collection(),
|
|
257
|
+
defaultCheckedValue: undefined,
|
|
258
|
+
defaultExpandedValue: this.defaultExpandedValue(),
|
|
259
|
+
defaultFocusedValue: this.defaultFocusedValue(),
|
|
260
|
+
defaultSelectedValue: this.defaultSelectedValue(),
|
|
261
|
+
dir: this.dir(),
|
|
262
|
+
expandedValue: sideNavOpen ? this.expandedValue() : [],
|
|
263
|
+
expandOnClick: this.expandOnClick(),
|
|
264
|
+
focusedValue: this.focusedValue(),
|
|
265
|
+
getRootNode: this.getRootNode() || (() => this.document),
|
|
266
|
+
loadChildren: this.loadChildren(),
|
|
267
|
+
onCheckedValueChange: undefined,
|
|
268
|
+
onExpandedValueChange: (details) => {
|
|
269
|
+
if (this.isMounted()) {
|
|
270
|
+
this.expandedValueChanged.emit(details);
|
|
271
|
+
}
|
|
272
|
+
},
|
|
273
|
+
onFocusChange: (details) => {
|
|
274
|
+
if (this.isMounted()) {
|
|
275
|
+
this.focusChanged.emit(details);
|
|
276
|
+
}
|
|
277
|
+
},
|
|
278
|
+
onLoadChildrenComplete: (details) => {
|
|
279
|
+
if (this.isMounted()) {
|
|
280
|
+
this.loadChildrenComplete.emit(details);
|
|
281
|
+
}
|
|
282
|
+
},
|
|
283
|
+
onLoadChildrenError: (details) => {
|
|
284
|
+
if (this.isMounted()) {
|
|
285
|
+
this.loadChildrenError.emit(details);
|
|
286
|
+
}
|
|
287
|
+
},
|
|
288
|
+
onSelectedValueChange: (details) => {
|
|
289
|
+
if (this.isMounted()) {
|
|
290
|
+
this.selectedValueChanged.emit(details);
|
|
291
|
+
}
|
|
292
|
+
},
|
|
293
|
+
selectedValue: this.selectedValue(),
|
|
294
|
+
selectionMode: this.selectionMode(),
|
|
295
|
+
shouldHideNode: (node) => {
|
|
296
|
+
if (!sideNavOpen && node.depth > 1) {
|
|
297
|
+
return true;
|
|
298
|
+
}
|
|
299
|
+
return userShouldHideNode?.(node);
|
|
300
|
+
},
|
|
301
|
+
typeahead: this.typeahead(),
|
|
302
|
+
};
|
|
303
|
+
}), this.injector);
|
|
304
|
+
this.treeContextService.init(computed(() => createTreeApi(treeMachineInstance, normalizeProps)));
|
|
305
|
+
this.renderStrategyContextService.init(computed(() => ({
|
|
306
|
+
lazyMount: this.lazyMount(),
|
|
307
|
+
unmountOnExit: this.unmountOnExit(),
|
|
308
|
+
})));
|
|
309
|
+
this.trackBindings();
|
|
310
|
+
}
|
|
311
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: CoreSideNavRootDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
312
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.12", type: CoreSideNavRootDirective, isStandalone: true, inputs: { collection: { classPropertyName: "collection", publicName: "collection", isSignal: true, isRequired: false, transformFunction: null }, defaultOpen: { classPropertyName: "defaultOpen", publicName: "defaultOpen", isSignal: true, isRequired: false, transformFunction: null }, defaultExpandedValue: { classPropertyName: "defaultExpandedValue", publicName: "defaultExpandedValue", isSignal: true, isRequired: false, transformFunction: null }, defaultFocusedValue: { classPropertyName: "defaultFocusedValue", publicName: "defaultFocusedValue", isSignal: true, isRequired: false, transformFunction: null }, defaultSelectedValue: { classPropertyName: "defaultSelectedValue", publicName: "defaultSelectedValue", isSignal: true, isRequired: false, transformFunction: null }, dir: { classPropertyName: "dir", publicName: "dir", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, expandedValue: { classPropertyName: "expandedValue", publicName: "expandedValue", isSignal: true, isRequired: false, transformFunction: null }, expandOnClick: { classPropertyName: "expandOnClick", publicName: "expandOnClick", isSignal: true, isRequired: false, transformFunction: null }, focusedValue: { classPropertyName: "focusedValue", publicName: "focusedValue", isSignal: true, isRequired: false, transformFunction: null }, getRootNode: { classPropertyName: "getRootNode", publicName: "getRootNode", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, lazyMount: { classPropertyName: "lazyMount", publicName: "lazyMount", isSignal: true, isRequired: false, transformFunction: null }, loadChildren: { classPropertyName: "loadChildren", publicName: "loadChildren", isSignal: true, isRequired: false, transformFunction: null }, open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, selectedValue: { classPropertyName: "selectedValue", publicName: "selectedValue", isSignal: true, isRequired: false, transformFunction: null }, selectionMode: { classPropertyName: "selectionMode", publicName: "selectionMode", isSignal: true, isRequired: false, transformFunction: null }, shouldHideNode: { classPropertyName: "shouldHideNode", publicName: "shouldHideNode", isSignal: true, isRequired: false, transformFunction: null }, typeahead: { classPropertyName: "typeahead", publicName: "typeahead", isSignal: true, isRequired: false, transformFunction: null }, unmountOnExit: { classPropertyName: "unmountOnExit", publicName: "unmountOnExit", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { expandedValueChanged: "expandedValueChanged", focusChanged: "focusChanged", loadChildrenComplete: "loadChildrenComplete", loadChildrenError: "loadChildrenError", selectedValueChanged: "selectedValueChanged", openChanged: "openChanged" }, ngImport: i0 });
|
|
313
|
+
}
|
|
314
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: CoreSideNavRootDirective, decorators: [{
|
|
315
|
+
type: Directive
|
|
316
|
+
}], propDecorators: { collection: [{ type: i0.Input, args: [{ isSignal: true, alias: "collection", required: false }] }], defaultOpen: [{ type: i0.Input, args: [{ isSignal: true, alias: "defaultOpen", required: false }] }], defaultExpandedValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "defaultExpandedValue", required: false }] }], defaultFocusedValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "defaultFocusedValue", required: false }] }], defaultSelectedValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "defaultSelectedValue", required: false }] }], dir: [{ type: i0.Input, args: [{ isSignal: true, alias: "dir", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], expandedValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "expandedValue", required: false }] }], expandOnClick: [{ type: i0.Input, args: [{ isSignal: true, alias: "expandOnClick", required: false }] }], focusedValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "focusedValue", required: false }] }], getRootNode: [{ type: i0.Input, args: [{ isSignal: true, alias: "getRootNode", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], lazyMount: [{ type: i0.Input, args: [{ isSignal: true, alias: "lazyMount", required: false }] }], loadChildren: [{ type: i0.Input, args: [{ isSignal: true, alias: "loadChildren", required: false }] }], open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }], selectedValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedValue", required: false }] }], selectionMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectionMode", required: false }] }], shouldHideNode: [{ type: i0.Input, args: [{ isSignal: true, alias: "shouldHideNode", required: false }] }], typeahead: [{ type: i0.Input, args: [{ isSignal: true, alias: "typeahead", required: false }] }], unmountOnExit: [{ type: i0.Input, args: [{ isSignal: true, alias: "unmountOnExit", required: false }] }], expandedValueChanged: [{ type: i0.Output, args: ["expandedValueChanged"] }], focusChanged: [{ type: i0.Output, args: ["focusChanged"] }], loadChildrenComplete: [{ type: i0.Output, args: ["loadChildrenComplete"] }], loadChildrenError: [{ type: i0.Output, args: ["loadChildrenError"] }], selectedValueChanged: [{ type: i0.Output, args: ["selectedValueChanged"] }], openChanged: [{ type: i0.Output, args: ["openChanged"] }] } });
|
|
317
|
+
|
|
318
|
+
// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
|
|
319
|
+
// SPDX-License-Identifier: BSD-3-Clause-Clear
|
|
320
|
+
class CoreSideNavTriggerDirective {
|
|
321
|
+
/**
|
|
322
|
+
* HTML id attribute. If omitted, a unique identifier will be generated for
|
|
323
|
+
* accessibility.
|
|
324
|
+
*/
|
|
325
|
+
id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : []));
|
|
326
|
+
sideNavContext = useSideNavContext();
|
|
327
|
+
trackBindings = useTrackBindings(() => this.sideNavContext().getTriggerBindings({
|
|
328
|
+
id: useId(this, this.id()),
|
|
329
|
+
}));
|
|
330
|
+
ngOnInit() {
|
|
331
|
+
this.trackBindings();
|
|
332
|
+
}
|
|
333
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: CoreSideNavTriggerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
334
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.12", type: CoreSideNavTriggerDirective, isStandalone: true, inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
|
|
335
|
+
}
|
|
336
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: CoreSideNavTriggerDirective, decorators: [{
|
|
337
|
+
type: Directive
|
|
338
|
+
}], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }] } });
|
|
339
|
+
|
|
1
340
|
/**
|
|
2
341
|
* Generated bundle index. Do not edit.
|
|
3
342
|
*/
|
|
343
|
+
|
|
344
|
+
export { CoreSideNavHeaderActionDirective, CoreSideNavHeaderDirective, CoreSideNavHeaderLogoDirective, CoreSideNavHeaderTitleDirective, CoreSideNavRootDirective, CoreSideNavTriggerDirective, SIDE_NAV_CONTEXT, SideNavContextService, provideSideNavContext, useSideNavContext };
|
|
4
345
|
//# sourceMappingURL=qualcomm-ui-angular-core-side-nav.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"qualcomm-ui-angular-core-side-nav.mjs","sources":["../../src/side-nav/qualcomm-ui-angular-core-side-nav.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAAA;;AAEG"}
|
|
1
|
+
{"version":3,"file":"qualcomm-ui-angular-core-side-nav.mjs","sources":["../../src/side-nav/side-nav-context.service.ts","../../src/side-nav/core-side-nav-header-action.directive.ts","../../src/side-nav/core-side-nav-header-logo.directive.ts","../../src/side-nav/core-side-nav-header-title.directive.ts","../../src/side-nav/core-side-nav-header.directive.ts","../../src/side-nav/core-side-nav-root.directive.ts","../../src/side-nav/core-side-nav-trigger.directive.ts","../../src/side-nav/qualcomm-ui-angular-core-side-nav.ts"],"sourcesContent":["// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Injectable} from \"@angular/core\"\n\nimport {\n type ApiContext,\n BaseApiContextService,\n createApiContext,\n} from \"@qualcomm-ui/angular-core/machine\"\nimport type {SideNavApi} from \"@qualcomm-ui/core/side-nav\"\n\n@Injectable()\nexport class SideNavContextService extends BaseApiContextService<SideNavApi> {}\n\nexport const [\n SIDE_NAV_CONTEXT,\n useSideNavContext,\n provideSideNavContext,\n]: ApiContext<SideNavApi> = createApiContext<SideNavApi>(\n \"SideNavContext\",\n SideNavContextService,\n)\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Directive, type OnInit} from \"@angular/core\"\n\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\n\nimport {useSideNavContext} from \"./side-nav-context.service\"\n\n@Directive()\nexport class CoreSideNavHeaderActionDirective implements OnInit {\n protected readonly sideNavContext = useSideNavContext()\n\n protected readonly trackBindings = useTrackBindings(() =>\n this.sideNavContext().getHeaderActionBindings(),\n )\n\n ngOnInit() {\n this.trackBindings()\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Directive, type OnInit} from \"@angular/core\"\n\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\n\nimport {useSideNavContext} from \"./side-nav-context.service\"\n\n@Directive()\nexport class CoreSideNavHeaderLogoDirective implements OnInit {\n protected readonly sideNavContext = useSideNavContext()\n\n protected readonly trackBindings = useTrackBindings(() =>\n this.sideNavContext().getHeaderLogoBindings(),\n )\n\n ngOnInit() {\n this.trackBindings()\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Directive, type OnInit} from \"@angular/core\"\n\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\n\nimport {useSideNavContext} from \"./side-nav-context.service\"\n\n@Directive()\nexport class CoreSideNavHeaderTitleDirective implements OnInit {\n protected readonly sideNavContext = useSideNavContext()\n\n protected readonly trackBindings = useTrackBindings(() =>\n this.sideNavContext().getHeaderTitleBindings(),\n )\n\n ngOnInit() {\n this.trackBindings()\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Directive, type OnInit} from \"@angular/core\"\n\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\n\nimport {useSideNavContext} from \"./side-nav-context.service\"\n\n@Directive()\nexport class CoreSideNavHeaderDirective implements OnInit {\n protected readonly sideNavContext = useSideNavContext()\n\n protected readonly trackBindings = useTrackBindings(() =>\n this.sideNavContext().getHeaderBindings(),\n )\n\n ngOnInit() {\n this.trackBindings()\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {DOCUMENT} from \"@angular/common\"\nimport {\n booleanAttribute,\n computed,\n Directive,\n inject,\n Injector,\n input,\n type OnInit,\n output,\n} from \"@angular/core\"\n\nimport {useId, useIsMounted} from \"@qualcomm-ui/angular-core/common\"\nimport {\n normalizeProps,\n useMachine,\n useTrackBindings,\n} from \"@qualcomm-ui/angular-core/machine\"\nimport {RenderStrategyContextService} from \"@qualcomm-ui/angular-core/presence\"\nimport type {SignalifyInput} from \"@qualcomm-ui/angular-core/signals\"\nimport {TreeContextService} from \"@qualcomm-ui/angular-core/tree\"\nimport type {RenderStrategyApiProps} from \"@qualcomm-ui/core/presence\"\nimport {\n createSideNavApi,\n type SideNavApiProps,\n sideNavMachine,\n} from \"@qualcomm-ui/core/side-nav\"\nimport {\n createTreeApi,\n type ExpandedChangeDetails,\n type FocusChangeDetails,\n type LoadChildrenCompleteDetails,\n type LoadChildrenDetails,\n type LoadChildrenErrorDetails,\n type NodeState,\n type SelectionChangeDetails,\n type TreeApiProps,\n treeMachine,\n} from \"@qualcomm-ui/core/tree\"\nimport type {Booleanish} from \"@qualcomm-ui/utils/coercion\"\nimport {TreeCollection, type TreeNode} from \"@qualcomm-ui/utils/collection\"\nimport type {Direction} from \"@qualcomm-ui/utils/direction\"\nimport type {Explicit} from \"@qualcomm-ui/utils/guard\"\n\nimport {SideNavContextService} from \"./side-nav-context.service\"\n\n@Directive()\nexport class CoreSideNavRootDirective<T extends TreeNode = TreeNode>\n implements\n SignalifyInput<Omit<SideNavApiProps, \"dir\">>,\n SignalifyInput<\n Omit<\n TreeApiProps<T>,\n \"checkedValue\" | \"defaultCheckedValue\" | \"onCheckedValueChange\"\n >\n >,\n SignalifyInput<RenderStrategyApiProps>,\n OnInit\n{\n /**\n * The tree collection data\n * @inheritDoc\n */\n readonly collection = input<TreeCollection<T>>()\n\n /**\n * The initial open state of the side navigation when rendered.\n * Use when you don't need to control the open state of the collapsible.\n *\n * @default true\n */\n readonly defaultOpen = input<boolean | undefined, Booleanish>(undefined, {\n transform: booleanAttribute,\n })\n\n /**\n * The initial expanded node ids when rendered.\n * Use when you don't need to control the expanded node value.\n */\n readonly defaultExpandedValue = input<string[] | undefined>()\n\n /**\n * The initial focused node value when rendered.\n * Use when you don't need to control the focused node value.\n */\n readonly defaultFocusedValue = input<string | null | undefined>()\n\n /**\n * The initial selected node value when rendered.\n * Use when you don't need to control the selected node value.\n */\n readonly defaultSelectedValue = input<string[] | undefined>()\n\n /**\n * The document's text/writing direction.\n */\n readonly dir = input<Direction | undefined>()\n\n /**\n * Whether the side navigation collapse behavior is disabled.\n */\n readonly disabled = input<boolean | undefined, Booleanish>(undefined, {\n transform: booleanAttribute,\n })\n\n /**\n * The controlled expanded node ids\n */\n readonly expandedValue = input<string[] | undefined>()\n\n /**\n * Whether clicking on a branch should open it or not\n * @default true\n */\n readonly expandOnClick = input<boolean | undefined, Booleanish>(undefined, {\n transform: booleanAttribute,\n })\n\n /**\n * The value of the focused node\n */\n readonly focusedValue = input<string | null | undefined>()\n\n /**\n * A root node to correctly resolve the Document in custom environments. i.e.,\n * Iframes, Electron.\n */\n readonly getRootNode = input<\n (() => ShadowRoot | Document | Node) | undefined\n >()\n\n /**\n * HTML id attribute. If omitted, a unique identifier will be generated for\n * accessibility.\n */\n readonly id = input<string>()\n\n /**\n * When true, the component will not be rendered in the DOM until it becomes\n * visible or active.\n *\n * @default false\n */\n readonly lazyMount = input<boolean | undefined, Booleanish>(undefined, {\n transform: booleanAttribute,\n })\n\n /**\n * Function to load children for a node asynchronously.\n * When provided, branches will wait for this promise to resolve before expanding.\n */\n readonly loadChildren = input<\n ((details: LoadChildrenDetails<T>) => Promise<T[]>) | undefined\n >()\n\n /**\n * The controlled open state of the side navigation\n */\n readonly open = input<boolean | undefined, Booleanish>(undefined, {\n transform: booleanAttribute,\n })\n\n /**\n * The controlled selected node value\n */\n readonly selectedValue = input<string[] | undefined>()\n\n /**\n * Whether the tree supports multiple selection\n * @option `'single'`: only one node can be selected\n * @option `'multiple'`: multiple nodes can be selected\n *\n * @default 'single'\n */\n readonly selectionMode = input<\"single\" | \"multiple\" | undefined>()\n\n /**\n * Callback function that determines whether a node should be hidden.\n */\n readonly shouldHideNode =\n input<(state: NodeState<T>) => boolean | undefined>()\n\n /**\n * Whether the tree supports typeahead search\n * @default true\n */\n readonly typeahead = input<boolean | undefined, Booleanish>(undefined, {\n transform: booleanAttribute,\n })\n\n /**\n * When true, the component will be completely removed from the DOM when it\n * becomes inactive or hidden, rather than just being hidden with CSS.\n *\n * @default false\n */\n readonly unmountOnExit = input<boolean | undefined, Booleanish>(undefined, {\n transform: booleanAttribute,\n })\n\n /**\n * Called when the tree is opened or closed\n */\n readonly expandedValueChanged = output<ExpandedChangeDetails<T>>()\n\n /**\n * Called when the focused node changes\n */\n readonly focusChanged = output<FocusChangeDetails<T>>()\n\n /**\n * Called when a node finishes loading children\n */\n readonly loadChildrenComplete = output<LoadChildrenCompleteDetails<T>>()\n\n /**\n * Called when loading children fails for one or more nodes\n */\n readonly loadChildrenError = output<LoadChildrenErrorDetails<T>>()\n\n /**\n * Called when the selection changes\n */\n readonly selectedValueChanged = output<SelectionChangeDetails<T>>()\n\n /**\n * Called when the side navigation opens or closes\n */\n readonly openChanged = output<boolean>()\n\n protected readonly document = inject(DOCUMENT)\n protected readonly hostId = computed(() => useId(this, this.id()))\n readonly injector = inject(Injector)\n protected readonly isMounted = useIsMounted()\n protected readonly renderStrategyContextService = inject(\n RenderStrategyContextService,\n )\n protected readonly sideNavContextService = inject(SideNavContextService)\n protected readonly treeContextService = inject(TreeContextService)\n\n protected readonly trackBindings = useTrackBindings(() =>\n this.sideNavContextService.context().getRootBindings({\n id: this.hostId(),\n }),\n )\n\n ngOnInit() {\n const sideNavMachineInstance = useMachine(\n sideNavMachine,\n computed<Explicit<SideNavApiProps>>(() => ({\n defaultOpen: this.defaultOpen(),\n dir: this.dir(),\n disabled: this.disabled(),\n getRootNode: this.getRootNode() || (() => this.document),\n onOpenChange: (open) => {\n if (this.isMounted()) {\n this.openChanged.emit(open)\n }\n },\n open: this.open(),\n })),\n this.injector,\n )\n\n const sideNavApi = computed(() =>\n createSideNavApi(sideNavMachineInstance, normalizeProps),\n )\n\n this.sideNavContextService.init(sideNavApi)\n\n const treeMachineInstance = useMachine(\n treeMachine,\n computed<Explicit<TreeApiProps<T>>>(() => {\n const sideNavOpen = sideNavApi().open\n const userShouldHideNode = this.shouldHideNode()\n\n return {\n checkedValue: undefined,\n collection: this.collection(),\n defaultCheckedValue: undefined,\n defaultExpandedValue: this.defaultExpandedValue(),\n defaultFocusedValue: this.defaultFocusedValue(),\n defaultSelectedValue: this.defaultSelectedValue(),\n dir: this.dir(),\n expandedValue: sideNavOpen ? this.expandedValue() : [],\n expandOnClick: this.expandOnClick(),\n focusedValue: this.focusedValue(),\n getRootNode: this.getRootNode() || (() => this.document),\n loadChildren: this.loadChildren(),\n onCheckedValueChange: undefined,\n onExpandedValueChange: (details) => {\n if (this.isMounted()) {\n this.expandedValueChanged.emit(details)\n }\n },\n onFocusChange: (details) => {\n if (this.isMounted()) {\n this.focusChanged.emit(details)\n }\n },\n onLoadChildrenComplete: (details) => {\n if (this.isMounted()) {\n this.loadChildrenComplete.emit(details)\n }\n },\n onLoadChildrenError: (details) => {\n if (this.isMounted()) {\n this.loadChildrenError.emit(details)\n }\n },\n onSelectedValueChange: (details) => {\n if (this.isMounted()) {\n this.selectedValueChanged.emit(details)\n }\n },\n selectedValue: this.selectedValue(),\n selectionMode: this.selectionMode(),\n shouldHideNode: (node) => {\n if (!sideNavOpen && node.depth > 1) {\n return true\n }\n return userShouldHideNode?.(node)\n },\n typeahead: this.typeahead(),\n }\n }),\n this.injector,\n )\n\n this.treeContextService.init(\n computed(() => createTreeApi(treeMachineInstance, normalizeProps)),\n )\n\n this.renderStrategyContextService.init(\n computed<Explicit<RenderStrategyApiProps>>(() => ({\n lazyMount: this.lazyMount(),\n unmountOnExit: this.unmountOnExit(),\n })),\n )\n\n this.trackBindings()\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Directive, input, type OnInit} from \"@angular/core\"\n\nimport {useId} from \"@qualcomm-ui/angular-core/common\"\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\n\nimport {useSideNavContext} from \"./side-nav-context.service\"\n\n@Directive()\nexport class CoreSideNavTriggerDirective implements OnInit {\n /**\n * HTML id attribute. If omitted, a unique identifier will be generated for\n * accessibility.\n */\n readonly id = input<string>()\n\n protected readonly sideNavContext = useSideNavContext()\n\n protected readonly trackBindings = useTrackBindings(() =>\n this.sideNavContext().getTriggerBindings({\n id: useId(this, this.id()),\n }),\n )\n\n ngOnInit() {\n this.trackBindings()\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;AAAA;AACA;AAYM,MAAO,qBAAsB,SAAQ,qBAAiC,CAAA;wGAA/D,qBAAqB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;4GAArB,qBAAqB,EAAA,CAAA;;4FAArB,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBADjC;;AAGM,MAAM,CACX,gBAAgB,EAChB,iBAAiB,EACjB,qBAAqB,EACtB,GAA2B,gBAAgB,CAC1C,gBAAgB,EAChB,qBAAqB;;ACrBvB;AACA;MASa,gCAAgC,CAAA;IACxB,cAAc,GAAG,iBAAiB,EAAE;AAEpC,IAA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,EAAA,EAAA,SAAA,EAAA,IAAA,EAAA,CAAA,GAAA,EAAA,CAAA,CAAU;IAEV,cAAc,GAAG,iBAAiB,EAAE;AAEpC,IAAA,aAAa,GAAG,gBAAgB,CAAC,MAClD,IAAI,CAAC,cAAc,EAAE,CAAC,kBAAkB,CAAC;QACvC,EAAE,EAAE,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC;AAC3B,KAAA,CAAC,CACH;IAED,QAAQ,GAAA;QACN,IAAI,CAAC,aAAa,EAAE;IACtB;wGAjBW,2BAA2B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAA3B,2BAA2B,EAAA,YAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,EAAA,EAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;4FAA3B,2BAA2B,EAAA,UAAA,EAAA,CAAA;kBADvC;;;ACVD;;AAEG;;;;"}
|
package/package.json
CHANGED
package/side-nav/index.d.ts
CHANGED
|
@@ -1,3 +1,228 @@
|
|
|
1
|
+
import * as _qualcomm_ui_angular_core_machine from '@qualcomm-ui/angular-core/machine';
|
|
2
|
+
import { BaseApiContextService } from '@qualcomm-ui/angular-core/machine';
|
|
3
|
+
import * as _qualcomm_ui_core_side_nav from '@qualcomm-ui/core/side-nav';
|
|
4
|
+
import { SideNavApi, SideNavApiProps } from '@qualcomm-ui/core/side-nav';
|
|
5
|
+
import * as _angular_core from '@angular/core';
|
|
6
|
+
import { OnInit, Injector } from '@angular/core';
|
|
7
|
+
import { RenderStrategyContextService } from '@qualcomm-ui/angular-core/presence';
|
|
8
|
+
import { SignalifyInput } from '@qualcomm-ui/angular-core/signals';
|
|
9
|
+
import { TreeContextService } from '@qualcomm-ui/angular-core/tree';
|
|
10
|
+
import { RenderStrategyApiProps } from '@qualcomm-ui/core/presence';
|
|
11
|
+
import { TreeApiProps, LoadChildrenDetails, NodeState, ExpandedChangeDetails, FocusChangeDetails, LoadChildrenCompleteDetails, LoadChildrenErrorDetails, SelectionChangeDetails } from '@qualcomm-ui/core/tree';
|
|
12
|
+
import { Booleanish } from '@qualcomm-ui/utils/coercion';
|
|
13
|
+
import { TreeNode, TreeCollection } from '@qualcomm-ui/utils/collection';
|
|
14
|
+
import { Direction } from '@qualcomm-ui/utils/direction';
|
|
1
15
|
|
|
2
|
-
|
|
16
|
+
declare class CoreSideNavHeaderActionDirective implements OnInit {
|
|
17
|
+
protected readonly sideNavContext: () => _qualcomm_ui_core_side_nav.SideNavApi;
|
|
18
|
+
protected readonly trackBindings: ((opts?: _qualcomm_ui_angular_core_machine.TrackBindingsConfig) => void) & {
|
|
19
|
+
extendWith: (computedProps: () => _qualcomm_ui_angular_core_machine.Dict) => void;
|
|
20
|
+
setDisabled: (disabled: boolean) => void;
|
|
21
|
+
};
|
|
22
|
+
ngOnInit(): void;
|
|
23
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CoreSideNavHeaderActionDirective, never>;
|
|
24
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CoreSideNavHeaderActionDirective, never, never, {}, {}, never, never, true, never>;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
declare class CoreSideNavHeaderLogoDirective implements OnInit {
|
|
28
|
+
protected readonly sideNavContext: () => _qualcomm_ui_core_side_nav.SideNavApi;
|
|
29
|
+
protected readonly trackBindings: ((opts?: _qualcomm_ui_angular_core_machine.TrackBindingsConfig) => void) & {
|
|
30
|
+
extendWith: (computedProps: () => _qualcomm_ui_angular_core_machine.Dict) => void;
|
|
31
|
+
setDisabled: (disabled: boolean) => void;
|
|
32
|
+
};
|
|
33
|
+
ngOnInit(): void;
|
|
34
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CoreSideNavHeaderLogoDirective, never>;
|
|
35
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CoreSideNavHeaderLogoDirective, never, never, {}, {}, never, never, true, never>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
declare class CoreSideNavHeaderTitleDirective implements OnInit {
|
|
39
|
+
protected readonly sideNavContext: () => _qualcomm_ui_core_side_nav.SideNavApi;
|
|
40
|
+
protected readonly trackBindings: ((opts?: _qualcomm_ui_angular_core_machine.TrackBindingsConfig) => void) & {
|
|
41
|
+
extendWith: (computedProps: () => _qualcomm_ui_angular_core_machine.Dict) => void;
|
|
42
|
+
setDisabled: (disabled: boolean) => void;
|
|
43
|
+
};
|
|
44
|
+
ngOnInit(): void;
|
|
45
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CoreSideNavHeaderTitleDirective, never>;
|
|
46
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CoreSideNavHeaderTitleDirective, never, never, {}, {}, never, never, true, never>;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
declare class CoreSideNavHeaderDirective implements OnInit {
|
|
50
|
+
protected readonly sideNavContext: () => _qualcomm_ui_core_side_nav.SideNavApi;
|
|
51
|
+
protected readonly trackBindings: ((opts?: _qualcomm_ui_angular_core_machine.TrackBindingsConfig) => void) & {
|
|
52
|
+
extendWith: (computedProps: () => _qualcomm_ui_angular_core_machine.Dict) => void;
|
|
53
|
+
setDisabled: (disabled: boolean) => void;
|
|
54
|
+
};
|
|
55
|
+
ngOnInit(): void;
|
|
56
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CoreSideNavHeaderDirective, never>;
|
|
57
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CoreSideNavHeaderDirective, never, never, {}, {}, never, never, true, never>;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
declare class SideNavContextService extends BaseApiContextService<SideNavApi> {
|
|
61
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SideNavContextService, never>;
|
|
62
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<SideNavContextService>;
|
|
63
|
+
}
|
|
64
|
+
declare const SIDE_NAV_CONTEXT: _angular_core.InjectionToken<() => SideNavApi>;
|
|
65
|
+
declare const useSideNavContext: <Optional extends boolean = false>(opts?: _qualcomm_ui_angular_core_machine.UseContextOpts<Optional> | undefined) => Optional extends true ? (() => SideNavApi) | null : () => SideNavApi;
|
|
66
|
+
declare const provideSideNavContext: () => _angular_core.Provider[];
|
|
67
|
+
|
|
68
|
+
declare class CoreSideNavRootDirective<T extends TreeNode = TreeNode> implements SignalifyInput<Omit<SideNavApiProps, "dir">>, SignalifyInput<Omit<TreeApiProps<T>, "checkedValue" | "defaultCheckedValue" | "onCheckedValueChange">>, SignalifyInput<RenderStrategyApiProps>, OnInit {
|
|
69
|
+
/**
|
|
70
|
+
* The tree collection data
|
|
71
|
+
* @inheritDoc
|
|
72
|
+
*/
|
|
73
|
+
readonly collection: _angular_core.InputSignal<TreeCollection<T> | undefined>;
|
|
74
|
+
/**
|
|
75
|
+
* The initial open state of the side navigation when rendered.
|
|
76
|
+
* Use when you don't need to control the open state of the collapsible.
|
|
77
|
+
*
|
|
78
|
+
* @default true
|
|
79
|
+
*/
|
|
80
|
+
readonly defaultOpen: _angular_core.InputSignalWithTransform<boolean | undefined, Booleanish>;
|
|
81
|
+
/**
|
|
82
|
+
* The initial expanded node ids when rendered.
|
|
83
|
+
* Use when you don't need to control the expanded node value.
|
|
84
|
+
*/
|
|
85
|
+
readonly defaultExpandedValue: _angular_core.InputSignal<string[] | undefined>;
|
|
86
|
+
/**
|
|
87
|
+
* The initial focused node value when rendered.
|
|
88
|
+
* Use when you don't need to control the focused node value.
|
|
89
|
+
*/
|
|
90
|
+
readonly defaultFocusedValue: _angular_core.InputSignal<string | null | undefined>;
|
|
91
|
+
/**
|
|
92
|
+
* The initial selected node value when rendered.
|
|
93
|
+
* Use when you don't need to control the selected node value.
|
|
94
|
+
*/
|
|
95
|
+
readonly defaultSelectedValue: _angular_core.InputSignal<string[] | undefined>;
|
|
96
|
+
/**
|
|
97
|
+
* The document's text/writing direction.
|
|
98
|
+
*/
|
|
99
|
+
readonly dir: _angular_core.InputSignal<Direction | undefined>;
|
|
100
|
+
/**
|
|
101
|
+
* Whether the side navigation collapse behavior is disabled.
|
|
102
|
+
*/
|
|
103
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean | undefined, Booleanish>;
|
|
104
|
+
/**
|
|
105
|
+
* The controlled expanded node ids
|
|
106
|
+
*/
|
|
107
|
+
readonly expandedValue: _angular_core.InputSignal<string[] | undefined>;
|
|
108
|
+
/**
|
|
109
|
+
* Whether clicking on a branch should open it or not
|
|
110
|
+
* @default true
|
|
111
|
+
*/
|
|
112
|
+
readonly expandOnClick: _angular_core.InputSignalWithTransform<boolean | undefined, Booleanish>;
|
|
113
|
+
/**
|
|
114
|
+
* The value of the focused node
|
|
115
|
+
*/
|
|
116
|
+
readonly focusedValue: _angular_core.InputSignal<string | null | undefined>;
|
|
117
|
+
/**
|
|
118
|
+
* A root node to correctly resolve the Document in custom environments. i.e.,
|
|
119
|
+
* Iframes, Electron.
|
|
120
|
+
*/
|
|
121
|
+
readonly getRootNode: _angular_core.InputSignal<(() => ShadowRoot | Document | Node) | undefined>;
|
|
122
|
+
/**
|
|
123
|
+
* HTML id attribute. If omitted, a unique identifier will be generated for
|
|
124
|
+
* accessibility.
|
|
125
|
+
*/
|
|
126
|
+
readonly id: _angular_core.InputSignal<string | undefined>;
|
|
127
|
+
/**
|
|
128
|
+
* When true, the component will not be rendered in the DOM until it becomes
|
|
129
|
+
* visible or active.
|
|
130
|
+
*
|
|
131
|
+
* @default false
|
|
132
|
+
*/
|
|
133
|
+
readonly lazyMount: _angular_core.InputSignalWithTransform<boolean | undefined, Booleanish>;
|
|
134
|
+
/**
|
|
135
|
+
* Function to load children for a node asynchronously.
|
|
136
|
+
* When provided, branches will wait for this promise to resolve before expanding.
|
|
137
|
+
*/
|
|
138
|
+
readonly loadChildren: _angular_core.InputSignal<((details: LoadChildrenDetails<T>) => Promise<T[]>) | undefined>;
|
|
139
|
+
/**
|
|
140
|
+
* The controlled open state of the side navigation
|
|
141
|
+
*/
|
|
142
|
+
readonly open: _angular_core.InputSignalWithTransform<boolean | undefined, Booleanish>;
|
|
143
|
+
/**
|
|
144
|
+
* The controlled selected node value
|
|
145
|
+
*/
|
|
146
|
+
readonly selectedValue: _angular_core.InputSignal<string[] | undefined>;
|
|
147
|
+
/**
|
|
148
|
+
* Whether the tree supports multiple selection
|
|
149
|
+
* @option `'single'`: only one node can be selected
|
|
150
|
+
* @option `'multiple'`: multiple nodes can be selected
|
|
151
|
+
*
|
|
152
|
+
* @default 'single'
|
|
153
|
+
*/
|
|
154
|
+
readonly selectionMode: _angular_core.InputSignal<"single" | "multiple" | undefined>;
|
|
155
|
+
/**
|
|
156
|
+
* Callback function that determines whether a node should be hidden.
|
|
157
|
+
*/
|
|
158
|
+
readonly shouldHideNode: _angular_core.InputSignal<((state: NodeState<T>) => boolean | undefined) | undefined>;
|
|
159
|
+
/**
|
|
160
|
+
* Whether the tree supports typeahead search
|
|
161
|
+
* @default true
|
|
162
|
+
*/
|
|
163
|
+
readonly typeahead: _angular_core.InputSignalWithTransform<boolean | undefined, Booleanish>;
|
|
164
|
+
/**
|
|
165
|
+
* When true, the component will be completely removed from the DOM when it
|
|
166
|
+
* becomes inactive or hidden, rather than just being hidden with CSS.
|
|
167
|
+
*
|
|
168
|
+
* @default false
|
|
169
|
+
*/
|
|
170
|
+
readonly unmountOnExit: _angular_core.InputSignalWithTransform<boolean | undefined, Booleanish>;
|
|
171
|
+
/**
|
|
172
|
+
* Called when the tree is opened or closed
|
|
173
|
+
*/
|
|
174
|
+
readonly expandedValueChanged: _angular_core.OutputEmitterRef<ExpandedChangeDetails<T>>;
|
|
175
|
+
/**
|
|
176
|
+
* Called when the focused node changes
|
|
177
|
+
*/
|
|
178
|
+
readonly focusChanged: _angular_core.OutputEmitterRef<FocusChangeDetails<T>>;
|
|
179
|
+
/**
|
|
180
|
+
* Called when a node finishes loading children
|
|
181
|
+
*/
|
|
182
|
+
readonly loadChildrenComplete: _angular_core.OutputEmitterRef<LoadChildrenCompleteDetails<T>>;
|
|
183
|
+
/**
|
|
184
|
+
* Called when loading children fails for one or more nodes
|
|
185
|
+
*/
|
|
186
|
+
readonly loadChildrenError: _angular_core.OutputEmitterRef<LoadChildrenErrorDetails<T>>;
|
|
187
|
+
/**
|
|
188
|
+
* Called when the selection changes
|
|
189
|
+
*/
|
|
190
|
+
readonly selectedValueChanged: _angular_core.OutputEmitterRef<SelectionChangeDetails<T>>;
|
|
191
|
+
/**
|
|
192
|
+
* Called when the side navigation opens or closes
|
|
193
|
+
*/
|
|
194
|
+
readonly openChanged: _angular_core.OutputEmitterRef<boolean>;
|
|
195
|
+
protected readonly document: Document;
|
|
196
|
+
protected readonly hostId: _angular_core.Signal<string>;
|
|
197
|
+
readonly injector: Injector;
|
|
198
|
+
protected readonly isMounted: () => boolean;
|
|
199
|
+
protected readonly renderStrategyContextService: RenderStrategyContextService;
|
|
200
|
+
protected readonly sideNavContextService: SideNavContextService;
|
|
201
|
+
protected readonly treeContextService: TreeContextService<any>;
|
|
202
|
+
protected readonly trackBindings: ((opts?: _qualcomm_ui_angular_core_machine.TrackBindingsConfig) => void) & {
|
|
203
|
+
extendWith: (computedProps: () => _qualcomm_ui_angular_core_machine.Dict) => void;
|
|
204
|
+
setDisabled: (disabled: boolean) => void;
|
|
205
|
+
};
|
|
206
|
+
ngOnInit(): void;
|
|
207
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CoreSideNavRootDirective<any>, never>;
|
|
208
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CoreSideNavRootDirective<any>, never, never, { "collection": { "alias": "collection"; "required": false; "isSignal": true; }; "defaultOpen": { "alias": "defaultOpen"; "required": false; "isSignal": true; }; "defaultExpandedValue": { "alias": "defaultExpandedValue"; "required": false; "isSignal": true; }; "defaultFocusedValue": { "alias": "defaultFocusedValue"; "required": false; "isSignal": true; }; "defaultSelectedValue": { "alias": "defaultSelectedValue"; "required": false; "isSignal": true; }; "dir": { "alias": "dir"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "expandedValue": { "alias": "expandedValue"; "required": false; "isSignal": true; }; "expandOnClick": { "alias": "expandOnClick"; "required": false; "isSignal": true; }; "focusedValue": { "alias": "focusedValue"; "required": false; "isSignal": true; }; "getRootNode": { "alias": "getRootNode"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "lazyMount": { "alias": "lazyMount"; "required": false; "isSignal": true; }; "loadChildren": { "alias": "loadChildren"; "required": false; "isSignal": true; }; "open": { "alias": "open"; "required": false; "isSignal": true; }; "selectedValue": { "alias": "selectedValue"; "required": false; "isSignal": true; }; "selectionMode": { "alias": "selectionMode"; "required": false; "isSignal": true; }; "shouldHideNode": { "alias": "shouldHideNode"; "required": false; "isSignal": true; }; "typeahead": { "alias": "typeahead"; "required": false; "isSignal": true; }; "unmountOnExit": { "alias": "unmountOnExit"; "required": false; "isSignal": true; }; }, { "expandedValueChanged": "expandedValueChanged"; "focusChanged": "focusChanged"; "loadChildrenComplete": "loadChildrenComplete"; "loadChildrenError": "loadChildrenError"; "selectedValueChanged": "selectedValueChanged"; "openChanged": "openChanged"; }, never, never, true, never>;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
declare class CoreSideNavTriggerDirective implements OnInit {
|
|
212
|
+
/**
|
|
213
|
+
* HTML id attribute. If omitted, a unique identifier will be generated for
|
|
214
|
+
* accessibility.
|
|
215
|
+
*/
|
|
216
|
+
readonly id: _angular_core.InputSignal<string | undefined>;
|
|
217
|
+
protected readonly sideNavContext: () => _qualcomm_ui_core_side_nav.SideNavApi;
|
|
218
|
+
protected readonly trackBindings: ((opts?: _qualcomm_ui_angular_core_machine.TrackBindingsConfig) => void) & {
|
|
219
|
+
extendWith: (computedProps: () => _qualcomm_ui_angular_core_machine.Dict) => void;
|
|
220
|
+
setDisabled: (disabled: boolean) => void;
|
|
221
|
+
};
|
|
222
|
+
ngOnInit(): void;
|
|
223
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CoreSideNavTriggerDirective, never>;
|
|
224
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CoreSideNavTriggerDirective, never, never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
export { CoreSideNavHeaderActionDirective, CoreSideNavHeaderDirective, CoreSideNavHeaderLogoDirective, CoreSideNavHeaderTitleDirective, CoreSideNavRootDirective, CoreSideNavTriggerDirective, SIDE_NAV_CONTEXT, SideNavContextService, provideSideNavContext, useSideNavContext };
|
|
3
228
|
//# sourceMappingURL=index.d.ts.map
|
package/side-nav/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sources":["../../src/side-nav/core-side-nav-header-action.directive.ts","../../src/side-nav/core-side-nav-header-logo.directive.ts","../../src/side-nav/core-side-nav-header-title.directive.ts","../../src/side-nav/core-side-nav-header.directive.ts","../../src/side-nav/side-nav-context.service.ts","../../src/side-nav/core-side-nav-root.directive.ts","../../src/side-nav/core-side-nav-trigger.directive.ts"],"sourcesContent":[null,null,null,null,null,null,null],"names":[],"mappings":";;;;;;;;;;;;;;;AASA,cAAA,gCAAA,YAAA,MAAA;AAEE,6CAAiC,0BAAA,CAAA,UAAA;+CAED,iCAAA,CAAA,mBAAA;;;AAE/B;;;;AAKF;;ACXD,cAAA,8BAAA,YAAA,MAAA;AAEE,6CAAiC,0BAAA,CAAA,UAAA;+CAED,iCAAA,CAAA,mBAAA;;;AAE/B;;;;AAKF;;ACXD,cA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