@qualcomm-ui/angular-core 1.4.1 → 1.5.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.
- package/checkbox/index.d.ts +19 -1
- package/checkbox/index.d.ts.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-accordion.mjs +27 -27
- package/fesm2022/qualcomm-ui-angular-core-avatar.mjs +15 -15
- package/fesm2022/qualcomm-ui-angular-core-checkbox.mjs +50 -25
- package/fesm2022/qualcomm-ui-angular-core-checkbox.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-collapsible.mjs +12 -12
- package/fesm2022/qualcomm-ui-angular-core-combobox.mjs +60 -60
- package/fesm2022/qualcomm-ui-angular-core-dialog.mjs +33 -33
- package/fesm2022/qualcomm-ui-angular-core-dom.mjs +12 -12
- package/fesm2022/qualcomm-ui-angular-core-events.mjs +3 -3
- package/fesm2022/qualcomm-ui-angular-core-highlight.mjs +3 -3
- package/fesm2022/qualcomm-ui-angular-core-inline-notification.mjs +21 -21
- package/fesm2022/qualcomm-ui-angular-core-input.mjs +9 -9
- package/fesm2022/qualcomm-ui-angular-core-locale.mjs +3 -3
- package/fesm2022/qualcomm-ui-angular-core-lorem-ipsum.mjs +3 -3
- package/fesm2022/qualcomm-ui-angular-core-machine.mjs +9 -9
- package/fesm2022/qualcomm-ui-angular-core-menu.mjs +69 -69
- package/fesm2022/qualcomm-ui-angular-core-number-input.mjs +61 -37
- package/fesm2022/qualcomm-ui-angular-core-number-input.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-observers.mjs +3 -3
- package/fesm2022/qualcomm-ui-angular-core-pagination.mjs +27 -27
- package/fesm2022/qualcomm-ui-angular-core-password-input.mjs +30 -30
- package/fesm2022/qualcomm-ui-angular-core-popover.mjs +33 -33
- package/fesm2022/qualcomm-ui-angular-core-popover.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-portal.mjs +9 -9
- package/fesm2022/qualcomm-ui-angular-core-presence.mjs +9 -9
- package/fesm2022/qualcomm-ui-angular-core-progress-ring.mjs +24 -24
- package/fesm2022/qualcomm-ui-angular-core-progress.mjs +27 -27
- package/fesm2022/qualcomm-ui-angular-core-radio.mjs +86 -34
- package/fesm2022/qualcomm-ui-angular-core-radio.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-segmented-control.mjs +15 -15
- package/fesm2022/qualcomm-ui-angular-core-select.mjs +51 -51
- package/fesm2022/qualcomm-ui-angular-core-side-nav.mjs +21 -21
- package/fesm2022/qualcomm-ui-angular-core-signals.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-slider.mjs +51 -51
- package/fesm2022/qualcomm-ui-angular-core-switch.mjs +47 -22
- package/fesm2022/qualcomm-ui-angular-core-switch.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-tabs.mjs +27 -27
- package/fesm2022/qualcomm-ui-angular-core-text-area.mjs +21 -21
- package/fesm2022/qualcomm-ui-angular-core-text-input.mjs +27 -27
- package/fesm2022/qualcomm-ui-angular-core-toast.mjs +24 -24
- package/fesm2022/qualcomm-ui-angular-core-tooltip.mjs +21 -21
- package/fesm2022/qualcomm-ui-angular-core-tree.mjs +48 -48
- package/fesm2022/qualcomm-ui-angular-core-virtual.mjs.map +1 -1
- package/number-input/index.d.ts +18 -2
- package/number-input/index.d.ts.map +1 -1
- package/package.json +2 -2
- package/popover/index.d.ts +8 -2
- package/popover/index.d.ts.map +1 -1
- package/radio/index.d.ts +38 -1
- package/radio/index.d.ts.map +1 -1
- package/signals/index.d.ts +2 -2
- package/switch/index.d.ts +19 -1
- package/switch/index.d.ts.map +1 -1
|
@@ -9,10 +9,10 @@ import { checkboxMachine, createCheckboxApi } from '@qualcomm-ui/core/checkbox';
|
|
|
9
9
|
// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
|
|
10
10
|
// SPDX-License-Identifier: BSD-3-Clause-Clear
|
|
11
11
|
class SegmentedControlContextService extends BaseApiContextService {
|
|
12
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
13
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
12
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: SegmentedControlContextService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
13
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: SegmentedControlContextService });
|
|
14
14
|
}
|
|
15
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
15
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: SegmentedControlContextService, decorators: [{
|
|
16
16
|
type: Injectable
|
|
17
17
|
}] });
|
|
18
18
|
const [SEGMENTED_CONTROL_CONTEXT, useSegmentedControlContext, provideSegmentedControlContext,] = createApiContext("SegmentedControlContext", SegmentedControlContextService);
|
|
@@ -84,10 +84,10 @@ class CoreSegmentedControlRootDirective {
|
|
|
84
84
|
this.segmentedControlContextService.init(computed(() => createSegmentedControlApi(machine, normalizeProps)));
|
|
85
85
|
this.trackBindings();
|
|
86
86
|
}
|
|
87
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
88
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.
|
|
87
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CoreSegmentedControlRootDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
88
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.16", type: CoreSegmentedControlRootDirective, isStandalone: true, inputs: { id: { classPropertyName: "id", publicName: "id", 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 }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, defaultValue: { classPropertyName: "defaultValue", publicName: "defaultValue", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChanged: "valueChanged" }, ngImport: i0 });
|
|
89
89
|
}
|
|
90
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
90
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CoreSegmentedControlRootDirective, decorators: [{
|
|
91
91
|
type: Directive
|
|
92
92
|
}], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], dir: [{ type: i0.Input, args: [{ isSignal: true, alias: "dir", required: false }] }], valueChanged: [{ type: i0.Output, args: ["valueChanged"] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], multiple: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiple", required: false }] }], orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }], defaultValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "defaultValue", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }] } });
|
|
93
93
|
|
|
@@ -130,10 +130,10 @@ class CoreSegmentedControlItemDirective {
|
|
|
130
130
|
this.checkboxContext.init(computed(() => createCheckboxApi(machine, normalizeProps)));
|
|
131
131
|
this.trackBindings();
|
|
132
132
|
}
|
|
133
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
134
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.
|
|
133
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CoreSegmentedControlItemDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
134
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.16", type: CoreSegmentedControlItemDirective, isStandalone: true, inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0 });
|
|
135
135
|
}
|
|
136
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
136
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CoreSegmentedControlItemDirective, decorators: [{
|
|
137
137
|
type: Directive
|
|
138
138
|
}], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: true }] }] } });
|
|
139
139
|
|
|
@@ -154,10 +154,10 @@ class CoreSegmentedControlItemTextDirective {
|
|
|
154
154
|
ngOnInit() {
|
|
155
155
|
this.trackBindings();
|
|
156
156
|
}
|
|
157
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
158
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.
|
|
157
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CoreSegmentedControlItemTextDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
158
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.16", type: CoreSegmentedControlItemTextDirective, isStandalone: true, inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
|
|
159
159
|
}
|
|
160
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
160
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CoreSegmentedControlItemTextDirective, decorators: [{
|
|
161
161
|
type: Directive
|
|
162
162
|
}], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }] } });
|
|
163
163
|
|
|
@@ -178,10 +178,10 @@ class CoreSegmentedControlHiddenInputDirective {
|
|
|
178
178
|
ngOnInit() {
|
|
179
179
|
this.trackBindings();
|
|
180
180
|
}
|
|
181
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
182
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.
|
|
181
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CoreSegmentedControlHiddenInputDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
182
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.16", type: CoreSegmentedControlHiddenInputDirective, isStandalone: true, inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
|
|
183
183
|
}
|
|
184
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
184
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CoreSegmentedControlHiddenInputDirective, decorators: [{
|
|
185
185
|
type: Directive
|
|
186
186
|
}], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }] } });
|
|
187
187
|
|
|
@@ -9,10 +9,10 @@ import { AbstractListCollectionFormControlDirective } from '@qualcomm-ui/angular
|
|
|
9
9
|
// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
|
|
10
10
|
// SPDX-License-Identifier: BSD-3-Clause-Clear
|
|
11
11
|
class SelectContextService extends BaseApiContextService {
|
|
12
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
13
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
12
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: SelectContextService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
13
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: SelectContextService });
|
|
14
14
|
}
|
|
15
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
15
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: SelectContextService, decorators: [{
|
|
16
16
|
type: Injectable
|
|
17
17
|
}] });
|
|
18
18
|
const [SELECT_CONTEXT, useSelectContext, provideSelectContext,] = createApiContext("SelectContext", SelectContextService);
|
|
@@ -35,10 +35,10 @@ class CoreSelectClearTriggerDirective {
|
|
|
35
35
|
ngOnInit() {
|
|
36
36
|
this.trackBindings();
|
|
37
37
|
}
|
|
38
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
39
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.
|
|
38
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CoreSelectClearTriggerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
39
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.16", type: CoreSelectClearTriggerDirective, isStandalone: true, inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
|
|
40
40
|
}
|
|
41
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
41
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CoreSelectClearTriggerDirective, decorators: [{
|
|
42
42
|
type: Directive
|
|
43
43
|
}], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }] } });
|
|
44
44
|
|
|
@@ -60,10 +60,10 @@ class CoreSelectContentDirective {
|
|
|
60
60
|
ngOnInit() {
|
|
61
61
|
this.trackBindings();
|
|
62
62
|
}
|
|
63
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
64
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.
|
|
63
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CoreSelectContentDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
64
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.16", type: CoreSelectContentDirective, isStandalone: true, inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
|
|
65
65
|
}
|
|
66
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
66
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CoreSelectContentDirective, decorators: [{
|
|
67
67
|
type: Directive
|
|
68
68
|
}], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }] } });
|
|
69
69
|
|
|
@@ -85,10 +85,10 @@ class CoreSelectControlDirective {
|
|
|
85
85
|
ngOnInit() {
|
|
86
86
|
this.trackBindings();
|
|
87
87
|
}
|
|
88
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
89
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.
|
|
88
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CoreSelectControlDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
89
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.16", type: CoreSelectControlDirective, isStandalone: true, inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
|
|
90
90
|
}
|
|
91
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
91
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CoreSelectControlDirective, decorators: [{
|
|
92
92
|
type: Directive
|
|
93
93
|
}], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }] } });
|
|
94
94
|
|
|
@@ -102,10 +102,10 @@ class CoreSelectErrorIndicatorDirective {
|
|
|
102
102
|
ngOnInit() {
|
|
103
103
|
this.trackBindings();
|
|
104
104
|
}
|
|
105
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
106
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.
|
|
105
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CoreSelectErrorIndicatorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
106
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.16", type: CoreSelectErrorIndicatorDirective, isStandalone: true, ngImport: i0 });
|
|
107
107
|
}
|
|
108
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
108
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CoreSelectErrorIndicatorDirective, decorators: [{
|
|
109
109
|
type: Directive
|
|
110
110
|
}] });
|
|
111
111
|
|
|
@@ -129,10 +129,10 @@ class CoreSelectErrorTextDirective {
|
|
|
129
129
|
ngOnInit() {
|
|
130
130
|
this.trackBindings();
|
|
131
131
|
}
|
|
132
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
133
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.
|
|
132
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CoreSelectErrorTextDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
133
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.16", type: CoreSelectErrorTextDirective, isStandalone: true, inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
|
|
134
134
|
}
|
|
135
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
135
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CoreSelectErrorTextDirective, decorators: [{
|
|
136
136
|
type: Directive
|
|
137
137
|
}], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }] } });
|
|
138
138
|
|
|
@@ -154,10 +154,10 @@ class CoreSelectHiddenSelectDirective {
|
|
|
154
154
|
ngOnInit() {
|
|
155
155
|
this.trackBindings();
|
|
156
156
|
}
|
|
157
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
158
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.
|
|
157
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CoreSelectHiddenSelectDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
158
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.16", type: CoreSelectHiddenSelectDirective, isStandalone: true, inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
|
|
159
159
|
}
|
|
160
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
160
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CoreSelectHiddenSelectDirective, decorators: [{
|
|
161
161
|
type: Directive
|
|
162
162
|
}], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }] } });
|
|
163
163
|
|
|
@@ -181,10 +181,10 @@ class CoreSelectHintDirective {
|
|
|
181
181
|
ngOnInit() {
|
|
182
182
|
this.trackBindings();
|
|
183
183
|
}
|
|
184
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
185
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.
|
|
184
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CoreSelectHintDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
185
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.16", type: CoreSelectHintDirective, isStandalone: true, inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
|
|
186
186
|
}
|
|
187
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
187
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CoreSelectHintDirective, decorators: [{
|
|
188
188
|
type: Directive
|
|
189
189
|
}], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }] } });
|
|
190
190
|
|
|
@@ -198,20 +198,20 @@ class CoreSelectIndicatorDirective {
|
|
|
198
198
|
ngOnInit() {
|
|
199
199
|
this.trackBindings();
|
|
200
200
|
}
|
|
201
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
202
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.
|
|
201
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CoreSelectIndicatorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
202
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.16", type: CoreSelectIndicatorDirective, isStandalone: true, ngImport: i0 });
|
|
203
203
|
}
|
|
204
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
204
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CoreSelectIndicatorDirective, decorators: [{
|
|
205
205
|
type: Directive
|
|
206
206
|
}] });
|
|
207
207
|
|
|
208
208
|
// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
|
|
209
209
|
// SPDX-License-Identifier: BSD-3-Clause-Clear
|
|
210
210
|
class SelectItemContextService extends BaseApiContextService {
|
|
211
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
212
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
211
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: SelectItemContextService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
212
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: SelectItemContextService });
|
|
213
213
|
}
|
|
214
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
214
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: SelectItemContextService, decorators: [{
|
|
215
215
|
type: Injectable
|
|
216
216
|
}] });
|
|
217
217
|
const [SELECT_ITEM_CONTEXT, useSelectItemContext, provideSelectItemContext,] = createApiContext("SelectItemContext", SelectItemContextService);
|
|
@@ -225,10 +225,10 @@ class CoreSelectItemIndicatorDirective {
|
|
|
225
225
|
ngOnInit() {
|
|
226
226
|
this.trackBindings();
|
|
227
227
|
}
|
|
228
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
229
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.
|
|
228
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CoreSelectItemIndicatorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
229
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.16", type: CoreSelectItemIndicatorDirective, isStandalone: true, ngImport: i0 });
|
|
230
230
|
}
|
|
231
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
231
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CoreSelectItemIndicatorDirective, decorators: [{
|
|
232
232
|
type: Directive
|
|
233
233
|
}] });
|
|
234
234
|
|
|
@@ -241,10 +241,10 @@ class CoreSelectItemTextDirective {
|
|
|
241
241
|
ngOnInit() {
|
|
242
242
|
this.trackBindings();
|
|
243
243
|
}
|
|
244
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
245
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.
|
|
244
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CoreSelectItemTextDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
245
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.16", type: CoreSelectItemTextDirective, isStandalone: true, ngImport: i0 });
|
|
246
246
|
}
|
|
247
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
247
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CoreSelectItemTextDirective, decorators: [{
|
|
248
248
|
type: Directive
|
|
249
249
|
}] });
|
|
250
250
|
|
|
@@ -271,10 +271,10 @@ class CoreSelectItemDirective {
|
|
|
271
271
|
})));
|
|
272
272
|
this.trackBindings();
|
|
273
273
|
}
|
|
274
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
275
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.
|
|
274
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CoreSelectItemDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
275
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.16", type: CoreSelectItemDirective, isStandalone: true, inputs: { item: { classPropertyName: "item", publicName: "item", isSignal: true, isRequired: false, transformFunction: null }, persistFocus: { classPropertyName: "persistFocus", publicName: "persistFocus", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
|
|
276
276
|
}
|
|
277
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
277
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CoreSelectItemDirective, decorators: [{
|
|
278
278
|
type: Directive
|
|
279
279
|
}], propDecorators: { item: [{ type: i0.Input, args: [{ isSignal: true, alias: "item", required: false }] }], persistFocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "persistFocus", required: false }] }] } });
|
|
280
280
|
|
|
@@ -296,10 +296,10 @@ class CoreSelectLabelDirective {
|
|
|
296
296
|
ngOnInit() {
|
|
297
297
|
this.trackBindings();
|
|
298
298
|
}
|
|
299
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
300
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.
|
|
299
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CoreSelectLabelDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
300
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.16", type: CoreSelectLabelDirective, isStandalone: true, inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
|
|
301
301
|
}
|
|
302
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
302
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CoreSelectLabelDirective, decorators: [{
|
|
303
303
|
type: Directive
|
|
304
304
|
}], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }] } });
|
|
305
305
|
|
|
@@ -321,10 +321,10 @@ class CoreSelectPositionerDirective {
|
|
|
321
321
|
ngOnInit() {
|
|
322
322
|
this.trackBindings();
|
|
323
323
|
}
|
|
324
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
325
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.
|
|
324
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CoreSelectPositionerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
325
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.16", type: CoreSelectPositionerDirective, isStandalone: true, inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
|
|
326
326
|
}
|
|
327
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
327
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CoreSelectPositionerDirective, decorators: [{
|
|
328
328
|
type: Directive
|
|
329
329
|
}], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }] } });
|
|
330
330
|
|
|
@@ -544,10 +544,10 @@ class CoreSelectRootDirective extends AbstractListCollectionFormControlDirective
|
|
|
544
544
|
this.selectContext.init(computed(() => createSelectApi(machine, normalizeProps)));
|
|
545
545
|
this.trackBindings();
|
|
546
546
|
}
|
|
547
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
548
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.
|
|
547
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CoreSelectRootDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
548
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.16", type: CoreSelectRootDirective, isStandalone: true, inputs: { closeOnSelect: { classPropertyName: "closeOnSelect", publicName: "closeOnSelect", isSignal: true, isRequired: false, transformFunction: null }, defaultHighlightedValue: { classPropertyName: "defaultHighlightedValue", publicName: "defaultHighlightedValue", isSignal: true, isRequired: false, transformFunction: null }, defaultOpen: { classPropertyName: "defaultOpen", publicName: "defaultOpen", isSignal: true, isRequired: false, transformFunction: null }, deselectable: { classPropertyName: "deselectable", publicName: "deselectable", isSignal: true, isRequired: false, transformFunction: null }, dir: { classPropertyName: "dir", publicName: "dir", isSignal: true, isRequired: false, transformFunction: null }, getRootNode: { classPropertyName: "getRootNode", publicName: "getRootNode", isSignal: true, isRequired: false, transformFunction: null }, highlightedValue: { classPropertyName: "highlightedValue", publicName: "highlightedValue", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, loopFocus: { classPropertyName: "loopFocus", publicName: "loopFocus", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, positioning: { classPropertyName: "positioning", publicName: "positioning", isSignal: true, isRequired: false, transformFunction: null }, scrollToIndexFn: { classPropertyName: "scrollToIndexFn", publicName: "scrollToIndexFn", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { focusOutside: "focusOutside", highlightChanged: "highlightChanged", interactOutside: "interactOutside", openChanged: "openChanged", pointerDownOutside: "pointerDownOutside", selected: "selected", valueChanged: "valueChanged" }, usesInheritance: true, ngImport: i0 });
|
|
549
549
|
}
|
|
550
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
550
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CoreSelectRootDirective, decorators: [{
|
|
551
551
|
type: Directive
|
|
552
552
|
}], propDecorators: { closeOnSelect: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnSelect", required: false }] }], defaultHighlightedValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "defaultHighlightedValue", required: false }] }], defaultOpen: [{ type: i0.Input, args: [{ isSignal: true, alias: "defaultOpen", required: false }] }], deselectable: [{ type: i0.Input, args: [{ isSignal: true, alias: "deselectable", required: false }] }], dir: [{ type: i0.Input, args: [{ isSignal: true, alias: "dir", required: false }] }], getRootNode: [{ type: i0.Input, args: [{ isSignal: true, alias: "getRootNode", required: false }] }], highlightedValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "highlightedValue", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], loopFocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "loopFocus", required: false }] }], multiple: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiple", required: false }] }], open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], positioning: [{ type: i0.Input, args: [{ isSignal: true, alias: "positioning", required: false }] }], scrollToIndexFn: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollToIndexFn", required: false }] }], focusOutside: [{ type: i0.Output, args: ["focusOutside"] }], highlightChanged: [{ type: i0.Output, args: ["highlightChanged"] }], interactOutside: [{ type: i0.Output, args: ["interactOutside"] }], openChanged: [{ type: i0.Output, args: ["openChanged"] }], pointerDownOutside: [{ type: i0.Output, args: ["pointerDownOutside"] }], selected: [{ type: i0.Output, args: ["selected"] }], valueChanged: [{ type: i0.Output, args: ["valueChanged"] }] } });
|
|
553
553
|
|
|
@@ -563,10 +563,10 @@ class CoreSelectValueTextDirective {
|
|
|
563
563
|
ngOnInit() {
|
|
564
564
|
this.trackBindings();
|
|
565
565
|
}
|
|
566
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
567
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.
|
|
566
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CoreSelectValueTextDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
567
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.16", type: CoreSelectValueTextDirective, isStandalone: true, ngImport: i0 });
|
|
568
568
|
}
|
|
569
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
569
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CoreSelectValueTextDirective, decorators: [{
|
|
570
570
|
type: Directive
|
|
571
571
|
}] });
|
|
572
572
|
|
|
@@ -12,10 +12,10 @@ import '@qualcomm-ui/utils/collection';
|
|
|
12
12
|
// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
|
|
13
13
|
// SPDX-License-Identifier: BSD-3-Clause-Clear
|
|
14
14
|
class SideNavContextService extends BaseApiContextService {
|
|
15
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
16
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
15
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: SideNavContextService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
16
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: SideNavContextService });
|
|
17
17
|
}
|
|
18
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
18
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: SideNavContextService, decorators: [{
|
|
19
19
|
type: Injectable
|
|
20
20
|
}] });
|
|
21
21
|
const [SIDE_NAV_CONTEXT, useSideNavContext, provideSideNavContext,] = createApiContext("SideNavContext", SideNavContextService);
|
|
@@ -28,10 +28,10 @@ class CoreSideNavHeaderActionDirective {
|
|
|
28
28
|
ngOnInit() {
|
|
29
29
|
this.trackBindings();
|
|
30
30
|
}
|
|
31
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
32
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.
|
|
31
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CoreSideNavHeaderActionDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
32
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.16", type: CoreSideNavHeaderActionDirective, isStandalone: true, ngImport: i0 });
|
|
33
33
|
}
|
|
34
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
34
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CoreSideNavHeaderActionDirective, decorators: [{
|
|
35
35
|
type: Directive
|
|
36
36
|
}] });
|
|
37
37
|
|
|
@@ -43,10 +43,10 @@ class CoreSideNavHeaderLogoDirective {
|
|
|
43
43
|
ngOnInit() {
|
|
44
44
|
this.trackBindings();
|
|
45
45
|
}
|
|
46
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
47
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.
|
|
46
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CoreSideNavHeaderLogoDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
47
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.16", type: CoreSideNavHeaderLogoDirective, isStandalone: true, ngImport: i0 });
|
|
48
48
|
}
|
|
49
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
49
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CoreSideNavHeaderLogoDirective, decorators: [{
|
|
50
50
|
type: Directive
|
|
51
51
|
}] });
|
|
52
52
|
|
|
@@ -58,10 +58,10 @@ class CoreSideNavHeaderTitleDirective {
|
|
|
58
58
|
ngOnInit() {
|
|
59
59
|
this.trackBindings();
|
|
60
60
|
}
|
|
61
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
62
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.
|
|
61
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CoreSideNavHeaderTitleDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
62
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.16", type: CoreSideNavHeaderTitleDirective, isStandalone: true, ngImport: i0 });
|
|
63
63
|
}
|
|
64
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
64
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CoreSideNavHeaderTitleDirective, decorators: [{
|
|
65
65
|
type: Directive
|
|
66
66
|
}] });
|
|
67
67
|
|
|
@@ -73,10 +73,10 @@ class CoreSideNavHeaderDirective {
|
|
|
73
73
|
ngOnInit() {
|
|
74
74
|
this.trackBindings();
|
|
75
75
|
}
|
|
76
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
77
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.
|
|
76
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CoreSideNavHeaderDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
77
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.16", type: CoreSideNavHeaderDirective, isStandalone: true, ngImport: i0 });
|
|
78
78
|
}
|
|
79
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
79
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CoreSideNavHeaderDirective, decorators: [{
|
|
80
80
|
type: Directive
|
|
81
81
|
}] });
|
|
82
82
|
|
|
@@ -308,10 +308,10 @@ class CoreSideNavRootDirective {
|
|
|
308
308
|
})));
|
|
309
309
|
this.trackBindings();
|
|
310
310
|
}
|
|
311
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
312
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.
|
|
311
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CoreSideNavRootDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
312
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.16", 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
313
|
}
|
|
314
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
314
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CoreSideNavRootDirective, decorators: [{
|
|
315
315
|
type: Directive
|
|
316
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
317
|
|
|
@@ -330,10 +330,10 @@ class CoreSideNavTriggerDirective {
|
|
|
330
330
|
ngOnInit() {
|
|
331
331
|
this.trackBindings();
|
|
332
332
|
}
|
|
333
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
334
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.
|
|
333
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CoreSideNavTriggerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
334
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.16", type: CoreSideNavTriggerDirective, isStandalone: true, inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
|
|
335
335
|
}
|
|
336
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
336
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CoreSideNavTriggerDirective, decorators: [{
|
|
337
337
|
type: Directive
|
|
338
338
|
}], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }] } });
|
|
339
339
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"qualcomm-ui-angular-core-signals.mjs","sources":["../../src/signals/access-signal.ts","../../src/signals/host-binding.ts","../../src/signals/signalify-object.ts","../../src/signals/qualcomm-ui-angular-core-signals.ts"],"sourcesContent":["// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {isSignal} from \"@angular/core\"\n\nimport type {MaybeSignal} from \"./signals.types\"\n\n/**\n * Accesses the value of a signal if the provided input is a signal; otherwise,\n * returns the input directly.\n *\n * @param {T | Signal<T>} maybeSignal - The input which can either be a signal or a direct value of type T.\n * @return {T} The resolved value of the signal if the input is a signal, or the input value itself if it is not a signal.\n */\nexport function accessSignal<T>(maybeSignal: MaybeSignal<T>): T {\n if (!maybeSignal) {\n return maybeSignal as unknown as T\n }\n return isSignal(maybeSignal) ? maybeSignal() : maybeSignal\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {\n assertInInjectionContext,\n effect,\n ElementRef,\n type HostBinding,\n inject,\n Injector,\n Renderer2,\n RendererStyleFlags2,\n runInInjectionContext,\n type Signal,\n type WritableSignal,\n} from \"@angular/core\"\n\n/**\n * `assertInjector` extends `assertInInjectionContext` with an optional `Injector`\n * After assertion, `assertInjector` runs the `runner` function with the guaranteed\n * `Injector` whether it is the default `Injector` within the current **Injection\n * Context** or the custom `Injector` that was passed in.\n *\n * @template {() => any} Runner - Runner is a function that can return anything\n * @param {Function} fn - the Function to pass in `assertInInjectionContext`\n * @param {Injector | undefined | null} injector - the optional \"custom\" Injector\n * @param {Runner} runner - the runner fn\n * @returns {ReturnType<Runner>} result - returns the result of the Runner\n *\n * @example\n * ```ts\n * function injectValue(injector?: Injector) {\n * return assertInjector(injectValue, injector, () => 'value');\n * }\n *\n * injectValue(); // string\n * ```\n */\nexport function assertInjector<Runner extends () => any>(\n fn: Function,\n injector: Injector | undefined | null,\n runner: Runner,\n): ReturnType<Runner>\n\n/**\n * `assertInjector` extends `assertInInjectionContext` with an optional `Injector`\n * After assertion, `assertInjector` returns a guaranteed `Injector` whether it is\n * the default `Injector` within the current **Injection Context** or the custom\n * `Injector` that was passed in.\n *\n * @param {Function} fn - the Function to pass in `assertInInjectionContext`\n * @param {Injector | undefined | null} injector - the optional \"custom\" Injector\n * @returns Injector\n */\nexport function assertInjector(\n fn: Function,\n injector: Injector | undefined | null,\n): Injector\nexport function assertInjector(\n fn: Function,\n injector: Injector | undefined | null,\n runner?: () => any,\n) {\n if (!injector) {\n assertInInjectionContext(fn)\n }\n const assertedInjector = injector ?? inject(Injector)\n\n if (!runner) {\n return assertedInjector\n }\n return runInInjectionContext(assertedInjector, runner)\n}\n\n/**\n * `hostBinding` takes a `hostPropertyName` to attach a data property, a class, a\n * style or an attribute (as `@HostBinding` would) to the host. The update is\n * applied based on the update of the provided signal.\n *\n * @param hostPropertyName - the same property that is bound to a data property, a class, a style or an attribute as `@HostBinding`.\n * @param signal - the signal on which to react to changes to update the host, and the one that will be returned as it is\n * @returns {Signal | WritableSignal}\n *\n * @example\n * ```ts\n * export class MyComponent {\n * readonly background = hostBinding('style.background', signal('blue'));\n *\n * constructor() {\n * setTimeout(() => this.background.set('red'), 3000);\n * }\n * }\n * ```\n *\n * TODO: verify with SSR\n */\nexport function hostBinding<T, S extends Signal<T> | WritableSignal<T>>(\n hostPropertyName: Required<HostBinding>[\"hostPropertyName\"],\n signal: S,\n injector?: Injector,\n): S {\n injector = assertInjector(hostBinding, injector)\n\n runInInjectionContext(injector, () => {\n const renderer = inject(Renderer2)\n const element: HTMLElement = inject(ElementRef).nativeElement\n\n effect(() => {\n let prevClasses: string[] = []\n const value = signal()\n const [binding, property, unit] = hostPropertyName.split(\".\")\n\n switch (binding) {\n case \"style\":\n renderer.setStyle(\n element,\n property,\n `${value}${unit ?? \"\"}`,\n property.startsWith(\"--\")\n ? RendererStyleFlags2.DashCase\n : undefined,\n )\n break\n case \"attr\":\n if (value == null) {\n renderer.removeAttribute(element, property)\n } else {\n renderer.setAttribute(element, property, String(value))\n }\n break\n case \"class\":\n if (!property) {\n if (prevClasses.length) {\n prevClasses.forEach((k) => renderer.removeClass(element, k))\n }\n prevClasses =\n typeof value === \"string\" ? value.split(\" \").filter(Boolean) : []\n prevClasses.forEach((k) => renderer.addClass(element, k))\n } else {\n if (value) {\n renderer.addClass(element, property)\n } else {\n renderer.removeClass(element, property)\n }\n }\n break\n default:\n renderer.setProperty(element, binding, value)\n }\n })\n })\n\n return signal\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, signal, type Signal, untracked} from \"@angular/core\"\n\n/**\n * Converts an object's function properties to computed signals.\n */\nexport function signalifyObject<T extends Record<string, any>>(\n someObject: T,\n): T {\n const objectSignal = signal<T>(someObject)\n\n return new Proxy(objectSignal, {\n apply() {\n return objectSignal()\n },\n get(target: any, property: any): any {\n if (target[property]) {\n return target[property]\n }\n const untrackedObject: any = untracked(objectSignal)\n const maybeFn = untrackedObject[property]\n if (typeof maybeFn === \"function\") {\n Object.defineProperty(target, property, {\n configurable: true,\n enumerable: true,\n value: toComputed(objectSignal, maybeFn),\n })\n return target[property]\n }\n return (target[property] = untrackedObject[property])\n },\n getOwnPropertyDescriptor() {\n return {\n configurable: true,\n enumerable: true,\n }\n },\n has(_, prop: string) {\n return !!untracked(objectSignal)[prop]\n },\n ownKeys() {\n return Reflect.ownKeys(untracked(objectSignal))\n },\n })\n}\n\n/**\n * Since we cannot automatically detect the parameters of accessors, we will wrap\n * all accessors in a cached function. This function will wrap a computed value that\n * returns its result based on the given parameters.\n */\nfunction toComputed(signal: Signal<any>, fn: Function) {\n const hasArgs = fn.length > 0\n if (!hasArgs) {\n return computed(() => {\n void signal()\n return fn()\n })\n }\n\n const computedCache: Record<string, Signal<unknown>> = {}\n\n return (...argsArray: any[]) => {\n const serializedArgs = serializeArgs(...argsArray)\n if (computedCache.hasOwnProperty(serializedArgs)) {\n return computedCache[serializedArgs]?.()\n }\n const computedSignal = computed(() => {\n void signal()\n return fn(...argsArray)\n })\n\n computedCache[serializedArgs] = computedSignal\n\n return computedSignal()\n }\n}\n\nfunction serializeArgs(...args: any[]) {\n return JSON.stringify(args)\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;AAAA;AACA;AAMA;;;;;;AAMG;AACG,SAAU,YAAY,CAAI,WAA2B,EAAA;IACzD,IAAI,CAAC,WAAW,EAAE;AAChB,QAAA,OAAO,WAA2B;IACpC;AACA,IAAA,OAAO,QAAQ,CAAC,WAAW,CAAC,GAAG,WAAW,EAAE,GAAG,WAAW;AAC5D;;ACnBA;AACA;SAyDgB,cAAc,CAC5B,EAAY,EACZ,QAAqC,EACrC,MAAkB,EAAA;IAElB,IAAI,CAAC,QAAQ,EAAE;QACb,wBAAwB,CAAC,EAAE,CAAC;IAC9B;IACA,MAAM,gBAAgB,GAAG,QAAQ,IAAI,MAAM,CAAC,QAAQ,CAAC;IAErD,IAAI,CAAC,MAAM,EAAE;AACX,QAAA,OAAO,gBAAgB;IACzB;AACA,IAAA,OAAO,qBAAqB,CAAC,gBAAgB,EAAE,MAAM,CAAC;AACxD;AAEA;;;;;;;;;;;;;;;;;;;;;AAqBG;SACa,WAAW,CACzB,gBAA2D,EAC3D,MAAS,EACT,QAAmB,EAAA;AAEnB,IAAA,QAAQ,GAAG,cAAc,CAAC,WAAW,EAAE,QAAQ,CAAC;AAEhD,IAAA,qBAAqB,CAAC,QAAQ,EAAE,MAAK;AACnC,QAAA,MAAM,QAAQ,GAAG,MAAM,CAAC,SA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.mjs","sources":["../../src/signals/access-signal.ts","../../src/signals/host-binding.ts","../../src/signals/signalify-object.ts","../../src/signals/qualcomm-ui-angular-core-signals.ts"],"sourcesContent":["// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {isSignal} from \"@angular/core\"\n\nimport type {MaybeSignal} from \"./signals.types\"\n\n/**\n * Accesses the value of a signal if the provided input is a signal; otherwise,\n * returns the input directly.\n *\n * @param {T | Signal<T>} maybeSignal - The input which can either be a signal or a direct value of type T.\n * @return {T} The resolved value of the signal if the input is a signal, or the input value itself if it is not a signal.\n */\nexport function accessSignal<T>(maybeSignal: MaybeSignal<T>): T {\n if (!maybeSignal) {\n return maybeSignal as unknown as T\n }\n return isSignal(maybeSignal) ? maybeSignal() : maybeSignal\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {\n assertInInjectionContext,\n effect,\n ElementRef,\n type HostBinding,\n inject,\n Injector,\n Renderer2,\n RendererStyleFlags2,\n runInInjectionContext,\n type Signal,\n type WritableSignal,\n} from \"@angular/core\"\n\n/**\n * `assertInjector` extends `assertInInjectionContext` with an optional `Injector`\n * After assertion, `assertInjector` runs the `runner` function with the guaranteed\n * `Injector` whether it is the default `Injector` within the current **Injection\n * Context** or the custom `Injector` that was passed in.\n *\n * @template {() => any} Runner - Runner is a function that can return anything\n * @param {Function} fn - the Function to pass in `assertInInjectionContext`\n * @param {Injector | undefined | null} injector - the optional \"custom\" Injector\n * @param {Runner} runner - the runner fn\n * @returns {ReturnType<Runner>} result - returns the result of the Runner\n *\n * @example\n * ```ts\n * function injectValue(injector?: Injector) {\n * return assertInjector(injectValue, injector, () => 'value');\n * }\n *\n * injectValue(); // string\n * ```\n */\nexport function assertInjector<Runner extends () => any>(\n fn: (...args: unknown[]) => any,\n injector: Injector | undefined | null,\n runner: Runner,\n): ReturnType<Runner>\n\n/**\n * `assertInjector` extends `assertInInjectionContext` with an optional `Injector`\n * After assertion, `assertInjector` returns a guaranteed `Injector` whether it is\n * the default `Injector` within the current **Injection Context** or the custom\n * `Injector` that was passed in.\n *\n * @param {Function} fn - the Function to pass in `assertInInjectionContext`\n * @param {Injector | undefined | null} injector - the optional \"custom\" Injector\n * @returns Injector\n */\nexport function assertInjector(\n fn: (...args: any[]) => unknown,\n injector: Injector | undefined | null,\n): Injector\nexport function assertInjector(\n fn: (...args: unknown[]) => unknown,\n injector: Injector | undefined | null,\n runner?: () => any,\n) {\n if (!injector) {\n assertInInjectionContext(fn)\n }\n const assertedInjector = injector ?? inject(Injector)\n\n if (!runner) {\n return assertedInjector\n }\n return runInInjectionContext(assertedInjector, runner)\n}\n\n/**\n * `hostBinding` takes a `hostPropertyName` to attach a data property, a class, a\n * style or an attribute (as `@HostBinding` would) to the host. The update is\n * applied based on the update of the provided signal.\n *\n * @param hostPropertyName - the same property that is bound to a data property, a class, a style or an attribute as `@HostBinding`.\n * @param signal - the signal on which to react to changes to update the host, and the one that will be returned as it is\n * @returns {Signal | WritableSignal}\n *\n * @example\n * ```ts\n * export class MyComponent {\n * readonly background = hostBinding('style.background', signal('blue'));\n *\n * constructor() {\n * setTimeout(() => this.background.set('red'), 3000);\n * }\n * }\n * ```\n *\n * TODO: verify with SSR\n */\nexport function hostBinding<T, S extends Signal<T> | WritableSignal<T>>(\n hostPropertyName: Required<HostBinding>[\"hostPropertyName\"],\n signal: S,\n injector?: Injector,\n): S {\n injector = assertInjector(hostBinding, injector)\n\n runInInjectionContext(injector, () => {\n const renderer = inject(Renderer2)\n const element: HTMLElement = inject(ElementRef).nativeElement\n\n effect(() => {\n let prevClasses: string[] = []\n const value = signal()\n const [binding, property, unit] = hostPropertyName.split(\".\")\n\n switch (binding) {\n case \"style\":\n renderer.setStyle(\n element,\n property,\n `${value as string}${unit ?? \"\"}`,\n property.startsWith(\"--\")\n ? RendererStyleFlags2.DashCase\n : undefined,\n )\n break\n case \"attr\":\n if (value == null) {\n renderer.removeAttribute(element, property)\n } else {\n renderer.setAttribute(element, property, String(value))\n }\n break\n case \"class\":\n if (!property) {\n if (prevClasses.length) {\n prevClasses.forEach((k) => renderer.removeClass(element, k))\n }\n prevClasses =\n typeof value === \"string\" ? value.split(\" \").filter(Boolean) : []\n prevClasses.forEach((k) => renderer.addClass(element, k))\n } else {\n if (value) {\n renderer.addClass(element, property)\n } else {\n renderer.removeClass(element, property)\n }\n }\n break\n default:\n renderer.setProperty(element, binding, value)\n }\n })\n })\n\n return signal\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, signal, type Signal, untracked} from \"@angular/core\"\n\n/**\n * Converts an object's function properties to computed signals.\n */\nexport function signalifyObject<T extends Record<string, any>>(\n someObject: T,\n): T {\n const objectSignal = signal<T>(someObject)\n\n return new Proxy(objectSignal, {\n apply() {\n return objectSignal()\n },\n get(target: any, property: any): any {\n if (target[property]) {\n return target[property]\n }\n const untrackedObject: any = untracked(objectSignal)\n const maybeFn = untrackedObject[property]\n if (typeof maybeFn === \"function\") {\n Object.defineProperty(target, property, {\n configurable: true,\n enumerable: true,\n value: toComputed(objectSignal, maybeFn),\n })\n return target[property]\n }\n return (target[property] = untrackedObject[property])\n },\n getOwnPropertyDescriptor() {\n return {\n configurable: true,\n enumerable: true,\n }\n },\n has(_, prop: string) {\n return !!untracked(objectSignal)[prop]\n },\n ownKeys() {\n return Reflect.ownKeys(untracked(objectSignal))\n },\n })\n}\n\n/**\n * Since we cannot automatically detect the parameters of accessors, we will wrap\n * all accessors in a cached function. This function will wrap a computed value that\n * returns its result based on the given parameters.\n */\nfunction toComputed(signal: Signal<any>, fn: (...args: unknown[]) => unknown) {\n const hasArgs = fn.length > 0\n if (!hasArgs) {\n return computed(() => {\n void signal()\n return fn()\n })\n }\n\n const computedCache: Record<string, Signal<unknown>> = {}\n\n return (...argsArray: any[]) => {\n const serializedArgs = serializeArgs(...argsArray)\n if (computedCache.hasOwnProperty(serializedArgs)) {\n return computedCache[serializedArgs]?.()\n }\n const computedSignal = computed(() => {\n void signal()\n return fn(...argsArray)\n })\n\n computedCache[serializedArgs] = computedSignal\n\n return computedSignal()\n }\n}\n\nfunction serializeArgs(...args: any[]) {\n return JSON.stringify(args)\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;AAAA;AACA;AAMA;;;;;;AAMG;AACG,SAAU,YAAY,CAAI,WAA2B,EAAA;IACzD,IAAI,CAAC,WAAW,EAAE;AAChB,QAAA,OAAO,WAA2B;IACpC;AACA,IAAA,OAAO,QAAQ,CAAC,WAAW,CAAC,GAAG,WAAW,EAAE,GAAG,WAAW;AAC5D;;ACnBA;AACA;SAyDgB,cAAc,CAC5B,EAAmC,EACnC,QAAqC,EACrC,MAAkB,EAAA;IAElB,IAAI,CAAC,QAAQ,EAAE;QACb,wBAAwB,CAAC,EAAE,CAAC;IAC9B;IACA,MAAM,gBAAgB,GAAG,QAAQ,IAAI,MAAM,CAAC,QAAQ,CAAC;IAErD,IAAI,CAAC,MAAM,EAAE;AACX,QAAA,OAAO,gBAAgB;IACzB;AACA,IAAA,OAAO,qBAAqB,CAAC,gBAAgB,EAAE,MAAM,CAAC;AACxD;AAEA;;;;;;;;;;;;;;;;;;;;;AAqBG;SACa,WAAW,CACzB,gBAA2D,EAC3D,MAAS,EACT,QAAmB,EAAA;AAEnB,IAAA,QAAQ,GAAG,cAAc,CAAC,WAAW,EAAE,QAAQ,CAAC;AAEhD,IAAA,qBAAqB,CAAC,QAAQ,EAAE,MAAK;AACnC,QAAA,MAAM,QAAQ,GAAG,MAAM,CAAC,SAAS,CAAC;QAClC,MAAM,OAAO,GAAgB,MAAM,CAAC,UAAU,CAAC,CAAC,aAAa;QAE7D,MAAM,CAAC,MAAK;YACV,IAAI,WAAW,GAAa,EAAE;AAC9B,YAAA,MAAM,KAAK,GAAG,MAAM,EAAE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