@qualcomm-ui/angular 1.15.1 → 1.17.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/alert-banner/index.d.ts +176 -0
- package/alert-banner/index.d.ts.map +1 -0
- package/avatar/index.d.ts +8 -4
- package/avatar/index.d.ts.map +1 -1
- package/checkbox/index.d.ts +30 -6
- package/checkbox/index.d.ts.map +1 -1
- package/combobox/index.d.ts +10 -2
- package/combobox/index.d.ts.map +1 -1
- package/fesm2022/qualcomm-ui-angular-alert-banner.mjs +378 -0
- package/fesm2022/qualcomm-ui-angular-alert-banner.mjs.map +1 -0
- package/fesm2022/qualcomm-ui-angular-avatar.mjs +8 -3
- package/fesm2022/qualcomm-ui-angular-avatar.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-checkbox.mjs +59 -5
- package/fesm2022/qualcomm-ui-angular-checkbox.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-combobox.mjs +11 -2
- package/fesm2022/qualcomm-ui-angular-combobox.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-inline-notification.mjs +11 -6
- package/fesm2022/qualcomm-ui-angular-inline-notification.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-number-input.mjs +147 -6
- package/fesm2022/qualcomm-ui-angular-number-input.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-radio.mjs +107 -18
- package/fesm2022/qualcomm-ui-angular-radio.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-select.mjs +126 -16
- package/fesm2022/qualcomm-ui-angular-select.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-switch.mjs +59 -5
- package/fesm2022/qualcomm-ui-angular-switch.mjs.map +1 -1
- package/inline-notification/index.d.ts +8 -1
- package/inline-notification/index.d.ts.map +1 -1
- package/number-input/index.d.ts +36 -4
- package/number-input/index.d.ts.map +1 -1
- package/package.json +8 -4
- package/radio/index.d.ts +48 -5
- package/radio/index.d.ts.map +1 -1
- package/select/index.d.ts +34 -7
- package/select/index.d.ts.map +1 -1
- package/switch/index.d.ts +29 -5
- package/switch/index.d.ts.map +1 -1
|
@@ -0,0 +1,378 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Injectable, Directive, computed, Component, input, output, inject, booleanAttribute, NgModule } from '@angular/core';
|
|
3
|
+
import * as i3 from '@qualcomm-ui/angular-core/machine';
|
|
4
|
+
import { BaseApiContextService, createApiContext, useTrackBindings, normalizeProps, QBindDirective } from '@qualcomm-ui/angular-core/machine';
|
|
5
|
+
import { X, TriangleAlert, CircleCheck, BellRing, Info, CircleAlert } from 'lucide-angular';
|
|
6
|
+
import { useInlineIconButtonApi } from '@qualcomm-ui/angular/inline-icon-button';
|
|
7
|
+
import * as i1 from '@qualcomm-ui/angular/transitions';
|
|
8
|
+
import { QuiPreloadDirective } from '@qualcomm-ui/angular/transitions';
|
|
9
|
+
import { provideIcons } from '@qualcomm-ui/angular-core/lucide';
|
|
10
|
+
import { mergeProps } from '@qualcomm-ui/utils/merge-props';
|
|
11
|
+
import * as i2 from '@qualcomm-ui/angular/icon';
|
|
12
|
+
import { IconDirective } from '@qualcomm-ui/angular/icon';
|
|
13
|
+
import { createQdsAlertBannerApi } from '@qualcomm-ui/qds-core/alert-banner';
|
|
14
|
+
|
|
15
|
+
// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
|
|
16
|
+
// SPDX-License-Identifier: BSD-3-Clause-Clear
|
|
17
|
+
class QdsAlertBannerContextService extends BaseApiContextService {
|
|
18
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: QdsAlertBannerContextService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
19
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: QdsAlertBannerContextService });
|
|
20
|
+
}
|
|
21
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: QdsAlertBannerContextService, decorators: [{
|
|
22
|
+
type: Injectable
|
|
23
|
+
}] });
|
|
24
|
+
const [QDS_ALERT_BANNER_CONTEXT, useQdsAlertBannerContext, provideQdsAlertBannerContext,] = createApiContext("QdsAlertBannerContext", QdsAlertBannerContextService);
|
|
25
|
+
|
|
26
|
+
// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
|
|
27
|
+
// SPDX-License-Identifier: BSD-3-Clause-Clear
|
|
28
|
+
class AlertBannerActionDirective {
|
|
29
|
+
qdsContext = useQdsAlertBannerContext();
|
|
30
|
+
trackBindings = useTrackBindings(() => this.qdsContext().getActionBindings());
|
|
31
|
+
ngOnInit() {
|
|
32
|
+
this.trackBindings();
|
|
33
|
+
}
|
|
34
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AlertBannerActionDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
35
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.16", type: AlertBannerActionDirective, isStandalone: false, selector: "[q-alert-banner-action]", ngImport: i0 });
|
|
36
|
+
}
|
|
37
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AlertBannerActionDirective, decorators: [{
|
|
38
|
+
type: Directive,
|
|
39
|
+
args: [{
|
|
40
|
+
selector: "[q-alert-banner-action]",
|
|
41
|
+
standalone: false,
|
|
42
|
+
}]
|
|
43
|
+
}] });
|
|
44
|
+
|
|
45
|
+
// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
|
|
46
|
+
// SPDX-License-Identifier: BSD-3-Clause-Clear
|
|
47
|
+
class AlertBannerCloseButtonDirective {
|
|
48
|
+
qdsContext = useQdsAlertBannerContext();
|
|
49
|
+
buttonEmphasis = computed(() => {
|
|
50
|
+
const context = this.qdsContext();
|
|
51
|
+
if (context.variant === "strong") {
|
|
52
|
+
return context.emphasis === "warning"
|
|
53
|
+
? "persistent-black"
|
|
54
|
+
: "persistent-white";
|
|
55
|
+
}
|
|
56
|
+
return undefined;
|
|
57
|
+
}, ...(ngDevMode ? [{ debugName: "buttonEmphasis" }] : []));
|
|
58
|
+
inlineIconButtonApi = useInlineIconButtonApi({
|
|
59
|
+
emphasis: this.buttonEmphasis,
|
|
60
|
+
size: "md",
|
|
61
|
+
variant: "fixed",
|
|
62
|
+
});
|
|
63
|
+
trackBindings = useTrackBindings(() => mergeProps({ onclick: () => this.qdsContext().onClose?.() }, this.qdsContext().getCloseButtonBindings(), this.inlineIconButtonApi().getRootBindings()));
|
|
64
|
+
ngOnInit() {
|
|
65
|
+
this.trackBindings();
|
|
66
|
+
}
|
|
67
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AlertBannerCloseButtonDirective, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
68
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: AlertBannerCloseButtonDirective, isStandalone: false, selector: "[q-alert-banner-close-button]", providers: [provideIcons({ X })], hostDirectives: [{ directive: i1.QuiPreloadDirective }], ngImport: i0, template: `
|
|
69
|
+
<ng-content>
|
|
70
|
+
<svg qIcon="X" [q-bind]="inlineIconButtonApi().getIconBindings()"></svg>
|
|
71
|
+
</ng-content>
|
|
72
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i2.IconDirective, selector: "svg[qIcon]", inputs: ["qIcon", "size", "viewBox", "xmlns", "height", "width"] }, { kind: "directive", type: i3.QBindDirective, selector: "[q-bind]", inputs: ["q-bind", "q-bind-options"] }] });
|
|
73
|
+
}
|
|
74
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AlertBannerCloseButtonDirective, decorators: [{
|
|
75
|
+
type: Component,
|
|
76
|
+
args: [{
|
|
77
|
+
hostDirectives: [QuiPreloadDirective],
|
|
78
|
+
providers: [provideIcons({ X })],
|
|
79
|
+
selector: "[q-alert-banner-close-button]",
|
|
80
|
+
standalone: false,
|
|
81
|
+
template: `
|
|
82
|
+
<ng-content>
|
|
83
|
+
<svg qIcon="X" [q-bind]="inlineIconButtonApi().getIconBindings()"></svg>
|
|
84
|
+
</ng-content>
|
|
85
|
+
`,
|
|
86
|
+
}]
|
|
87
|
+
}] });
|
|
88
|
+
|
|
89
|
+
// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
|
|
90
|
+
// SPDX-License-Identifier: BSD-3-Clause-Clear
|
|
91
|
+
class AlertBannerDescriptionDirective {
|
|
92
|
+
qdsContext = useQdsAlertBannerContext();
|
|
93
|
+
trackBindings = useTrackBindings(() => this.qdsContext().getDescriptionBindings());
|
|
94
|
+
ngOnInit() {
|
|
95
|
+
this.trackBindings();
|
|
96
|
+
}
|
|
97
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AlertBannerDescriptionDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
98
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.16", type: AlertBannerDescriptionDirective, isStandalone: false, selector: "[q-alert-banner-description]", ngImport: i0 });
|
|
99
|
+
}
|
|
100
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AlertBannerDescriptionDirective, decorators: [{
|
|
101
|
+
type: Directive,
|
|
102
|
+
args: [{
|
|
103
|
+
selector: "[q-alert-banner-description]",
|
|
104
|
+
standalone: false,
|
|
105
|
+
}]
|
|
106
|
+
}] });
|
|
107
|
+
|
|
108
|
+
// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
|
|
109
|
+
// SPDX-License-Identifier: BSD-3-Clause-Clear
|
|
110
|
+
class AlertBannerHeadingDirective {
|
|
111
|
+
qdsContext = useQdsAlertBannerContext();
|
|
112
|
+
trackBindings = useTrackBindings(() => this.qdsContext().getHeadingBindings());
|
|
113
|
+
ngOnInit() {
|
|
114
|
+
this.trackBindings();
|
|
115
|
+
}
|
|
116
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AlertBannerHeadingDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
117
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.16", type: AlertBannerHeadingDirective, isStandalone: false, selector: "[q-alert-banner-heading]", ngImport: i0 });
|
|
118
|
+
}
|
|
119
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AlertBannerHeadingDirective, decorators: [{
|
|
120
|
+
type: Directive,
|
|
121
|
+
args: [{
|
|
122
|
+
selector: "[q-alert-banner-heading]",
|
|
123
|
+
standalone: false,
|
|
124
|
+
}]
|
|
125
|
+
}] });
|
|
126
|
+
|
|
127
|
+
// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
|
|
128
|
+
// SPDX-License-Identifier: BSD-3-Clause-Clear
|
|
129
|
+
const icons = {
|
|
130
|
+
danger: CircleAlert,
|
|
131
|
+
info: Info,
|
|
132
|
+
neutral: BellRing,
|
|
133
|
+
success: CircleCheck,
|
|
134
|
+
warning: TriangleAlert,
|
|
135
|
+
};
|
|
136
|
+
class AlertBannerIconDirective {
|
|
137
|
+
/**
|
|
138
|
+
* Override the icon displayed in the banner. When this prop is omitted,
|
|
139
|
+
* the icon is determined by the emphasis prop.
|
|
140
|
+
*/
|
|
141
|
+
icon = input(...(ngDevMode ? [undefined, { debugName: "icon" }] : []));
|
|
142
|
+
qdsContext = useQdsAlertBannerContext();
|
|
143
|
+
resolvedIcon = computed(() => {
|
|
144
|
+
return this.icon() || icons[this.qdsContext().emphasis];
|
|
145
|
+
}, ...(ngDevMode ? [{ debugName: "resolvedIcon" }] : []));
|
|
146
|
+
trackBindings = useTrackBindings(() => this.qdsContext().getIconBindings());
|
|
147
|
+
ngOnInit() {
|
|
148
|
+
this.trackBindings();
|
|
149
|
+
}
|
|
150
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AlertBannerIconDirective, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
151
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: AlertBannerIconDirective, isStandalone: false, selector: "[q-alert-banner-icon]", inputs: { icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
152
|
+
@if (resolvedIcon()) {
|
|
153
|
+
<svg size="lg" [qIcon]="resolvedIcon()!"></svg>
|
|
154
|
+
} @else {
|
|
155
|
+
<ng-content />
|
|
156
|
+
}
|
|
157
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i2.IconDirective, selector: "svg[qIcon]", inputs: ["qIcon", "size", "viewBox", "xmlns", "height", "width"] }] });
|
|
158
|
+
}
|
|
159
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AlertBannerIconDirective, decorators: [{
|
|
160
|
+
type: Component,
|
|
161
|
+
args: [{
|
|
162
|
+
selector: "[q-alert-banner-icon]",
|
|
163
|
+
standalone: false,
|
|
164
|
+
template: `
|
|
165
|
+
@if (resolvedIcon()) {
|
|
166
|
+
<svg size="lg" [qIcon]="resolvedIcon()!"></svg>
|
|
167
|
+
} @else {
|
|
168
|
+
<ng-content />
|
|
169
|
+
}
|
|
170
|
+
`,
|
|
171
|
+
}]
|
|
172
|
+
}], propDecorators: { icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }] } });
|
|
173
|
+
|
|
174
|
+
// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
|
|
175
|
+
// SPDX-License-Identifier: BSD-3-Clause-Clear
|
|
176
|
+
class AlertBannerRootDirective {
|
|
177
|
+
/**
|
|
178
|
+
* Accessible label for the close button.
|
|
179
|
+
*
|
|
180
|
+
* @default 'Close'
|
|
181
|
+
*/
|
|
182
|
+
closeButtonAriaLabel = input(...(ngDevMode ? [undefined, { debugName: "closeButtonAriaLabel" }] : []));
|
|
183
|
+
/**
|
|
184
|
+
* The document's text/writing direction.
|
|
185
|
+
*
|
|
186
|
+
* @default "ltr"
|
|
187
|
+
*/
|
|
188
|
+
dir = input(...(ngDevMode ? [undefined, { debugName: "dir" }] : []));
|
|
189
|
+
/**
|
|
190
|
+
* Governs the color of the banner and its icon.
|
|
191
|
+
*
|
|
192
|
+
* @default 'info'
|
|
193
|
+
*/
|
|
194
|
+
emphasis = input(...(ngDevMode ? [undefined, { debugName: "emphasis" }] : []));
|
|
195
|
+
/**
|
|
196
|
+
* The visual style of the banner.
|
|
197
|
+
*
|
|
198
|
+
* @default 'strong'
|
|
199
|
+
*/
|
|
200
|
+
variant = input(...(ngDevMode ? [undefined, { debugName: "variant" }] : []));
|
|
201
|
+
/**
|
|
202
|
+
* Event emitted when the close button is clicked.
|
|
203
|
+
*/
|
|
204
|
+
closed = output();
|
|
205
|
+
qdsAlertBannerService = inject(QdsAlertBannerContextService);
|
|
206
|
+
trackBindings = useTrackBindings(() => this.qdsAlertBannerService.context().getRootBindings());
|
|
207
|
+
ngOnInit() {
|
|
208
|
+
this.qdsAlertBannerService.init(computed(() => ({
|
|
209
|
+
...createQdsAlertBannerApi({
|
|
210
|
+
closeButtonAriaLabel: this.closeButtonAriaLabel(),
|
|
211
|
+
dir: this.dir(),
|
|
212
|
+
emphasis: this.emphasis(),
|
|
213
|
+
variant: this.variant(),
|
|
214
|
+
}, normalizeProps),
|
|
215
|
+
onClose: () => this.closed.emit(),
|
|
216
|
+
})));
|
|
217
|
+
this.trackBindings();
|
|
218
|
+
}
|
|
219
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AlertBannerRootDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
220
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.16", type: AlertBannerRootDirective, isStandalone: false, selector: "[q-alert-banner-root]", inputs: { closeButtonAriaLabel: { classPropertyName: "closeButtonAriaLabel", publicName: "closeButtonAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, dir: { classPropertyName: "dir", publicName: "dir", isSignal: true, isRequired: false, transformFunction: null }, emphasis: { classPropertyName: "emphasis", publicName: "emphasis", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { closed: "closed" }, providers: [provideQdsAlertBannerContext()], ngImport: i0 });
|
|
221
|
+
}
|
|
222
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AlertBannerRootDirective, decorators: [{
|
|
223
|
+
type: Directive,
|
|
224
|
+
args: [{
|
|
225
|
+
providers: [provideQdsAlertBannerContext()],
|
|
226
|
+
selector: "[q-alert-banner-root]",
|
|
227
|
+
standalone: false,
|
|
228
|
+
}]
|
|
229
|
+
}], propDecorators: { closeButtonAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeButtonAriaLabel", required: false }] }], dir: [{ type: i0.Input, args: [{ isSignal: true, alias: "dir", required: false }] }], emphasis: [{ type: i0.Input, args: [{ isSignal: true, alias: "emphasis", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], closed: [{ type: i0.Output, args: ["closed"] }] } });
|
|
230
|
+
|
|
231
|
+
// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
|
|
232
|
+
// SPDX-License-Identifier: BSD-3-Clause-Clear
|
|
233
|
+
class AlertBannerDirective extends AlertBannerRootDirective {
|
|
234
|
+
/**
|
|
235
|
+
* Optional description text for the banner.
|
|
236
|
+
*
|
|
237
|
+
* @remarks
|
|
238
|
+
* To customize the element, provide it using the directive instead:
|
|
239
|
+
* ```angular-html
|
|
240
|
+
* <div q-alert-banner-description>...</div>
|
|
241
|
+
* ```
|
|
242
|
+
*/
|
|
243
|
+
description = input(...(ngDevMode ? [undefined, { debugName: "description" }] : []));
|
|
244
|
+
/**
|
|
245
|
+
* When `true`, renders a close button that calls `closed` when clicked.
|
|
246
|
+
*
|
|
247
|
+
* @remarks
|
|
248
|
+
* To customize the close button, provide it using the directive instead:
|
|
249
|
+
* ```angular-html
|
|
250
|
+
* <button q-alert-banner-close-button>...</button>
|
|
251
|
+
* ```
|
|
252
|
+
*
|
|
253
|
+
* @default false
|
|
254
|
+
*/
|
|
255
|
+
dismissable = input(undefined, ...(ngDevMode ? [{ debugName: "dismissable", transform: booleanAttribute }] : [{
|
|
256
|
+
transform: booleanAttribute,
|
|
257
|
+
}]));
|
|
258
|
+
/**
|
|
259
|
+
* Optional heading text for the banner.
|
|
260
|
+
*
|
|
261
|
+
* @remarks
|
|
262
|
+
* To customize the element, provide it using the directive instead:
|
|
263
|
+
* ```angular-html
|
|
264
|
+
* <div q-alert-banner-heading>...</div>
|
|
265
|
+
* ```
|
|
266
|
+
*/
|
|
267
|
+
heading = input(...(ngDevMode ? [undefined, { debugName: "heading" }] : []));
|
|
268
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AlertBannerDirective, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
269
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: AlertBannerDirective, isStandalone: false, selector: "[q-alert-banner]", inputs: { description: { classPropertyName: "description", publicName: "description", isSignal: true, isRequired: false, transformFunction: null }, dismissable: { classPropertyName: "dismissable", publicName: "dismissable", isSignal: true, isRequired: false, transformFunction: null }, heading: { classPropertyName: "heading", publicName: "heading", isSignal: true, isRequired: false, transformFunction: null } }, providers: [provideQdsAlertBannerContext()], usesInheritance: true, ngImport: i0, template: `
|
|
270
|
+
<ng-content select="[q-alert-banner-icon]">
|
|
271
|
+
<span q-alert-banner-icon></span>
|
|
272
|
+
</ng-content>
|
|
273
|
+
|
|
274
|
+
<ng-content select="[q-alert-banner-heading]">
|
|
275
|
+
@if (heading()) {
|
|
276
|
+
<div q-alert-banner-heading>{{ heading() }}</div>
|
|
277
|
+
}
|
|
278
|
+
</ng-content>
|
|
279
|
+
|
|
280
|
+
<ng-content select="[q-alert-banner-description]">
|
|
281
|
+
@if (description()) {
|
|
282
|
+
<div q-alert-banner-description>{{ description() }}</div>
|
|
283
|
+
}
|
|
284
|
+
</ng-content>
|
|
285
|
+
|
|
286
|
+
<ng-content select="[q-alert-banner-action]" />
|
|
287
|
+
|
|
288
|
+
<ng-content select="[q-alert-banner-close-button]">
|
|
289
|
+
@if (dismissable()) {
|
|
290
|
+
<button q-alert-banner-close-button></button>
|
|
291
|
+
}
|
|
292
|
+
</ng-content>
|
|
293
|
+
`, isInline: true, dependencies: [{ kind: "component", type: AlertBannerCloseButtonDirective, selector: "[q-alert-banner-close-button]" }, { kind: "directive", type: AlertBannerDescriptionDirective, selector: "[q-alert-banner-description]" }, { kind: "directive", type: AlertBannerHeadingDirective, selector: "[q-alert-banner-heading]" }, { kind: "component", type: AlertBannerIconDirective, selector: "[q-alert-banner-icon]", inputs: ["icon"] }] });
|
|
294
|
+
}
|
|
295
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AlertBannerDirective, decorators: [{
|
|
296
|
+
type: Component,
|
|
297
|
+
args: [{
|
|
298
|
+
providers: [provideQdsAlertBannerContext()],
|
|
299
|
+
selector: "[q-alert-banner]",
|
|
300
|
+
standalone: false,
|
|
301
|
+
template: `
|
|
302
|
+
<ng-content select="[q-alert-banner-icon]">
|
|
303
|
+
<span q-alert-banner-icon></span>
|
|
304
|
+
</ng-content>
|
|
305
|
+
|
|
306
|
+
<ng-content select="[q-alert-banner-heading]">
|
|
307
|
+
@if (heading()) {
|
|
308
|
+
<div q-alert-banner-heading>{{ heading() }}</div>
|
|
309
|
+
}
|
|
310
|
+
</ng-content>
|
|
311
|
+
|
|
312
|
+
<ng-content select="[q-alert-banner-description]">
|
|
313
|
+
@if (description()) {
|
|
314
|
+
<div q-alert-banner-description>{{ description() }}</div>
|
|
315
|
+
}
|
|
316
|
+
</ng-content>
|
|
317
|
+
|
|
318
|
+
<ng-content select="[q-alert-banner-action]" />
|
|
319
|
+
|
|
320
|
+
<ng-content select="[q-alert-banner-close-button]">
|
|
321
|
+
@if (dismissable()) {
|
|
322
|
+
<button q-alert-banner-close-button></button>
|
|
323
|
+
}
|
|
324
|
+
</ng-content>
|
|
325
|
+
`,
|
|
326
|
+
}]
|
|
327
|
+
}], propDecorators: { description: [{ type: i0.Input, args: [{ isSignal: true, alias: "description", required: false }] }], dismissable: [{ type: i0.Input, args: [{ isSignal: true, alias: "dismissable", required: false }] }], heading: [{ type: i0.Input, args: [{ isSignal: true, alias: "heading", required: false }] }] } });
|
|
328
|
+
|
|
329
|
+
// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
|
|
330
|
+
// SPDX-License-Identifier: BSD-3-Clause-Clear
|
|
331
|
+
class AlertBannerModule {
|
|
332
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AlertBannerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
333
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: AlertBannerModule, declarations: [AlertBannerDirective,
|
|
334
|
+
AlertBannerRootDirective,
|
|
335
|
+
AlertBannerActionDirective,
|
|
336
|
+
AlertBannerCloseButtonDirective,
|
|
337
|
+
AlertBannerDescriptionDirective,
|
|
338
|
+
AlertBannerHeadingDirective,
|
|
339
|
+
AlertBannerIconDirective], imports: [IconDirective, QBindDirective], exports: [AlertBannerDirective,
|
|
340
|
+
AlertBannerRootDirective,
|
|
341
|
+
AlertBannerActionDirective,
|
|
342
|
+
AlertBannerCloseButtonDirective,
|
|
343
|
+
AlertBannerDescriptionDirective,
|
|
344
|
+
AlertBannerHeadingDirective,
|
|
345
|
+
AlertBannerIconDirective] });
|
|
346
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AlertBannerModule });
|
|
347
|
+
}
|
|
348
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AlertBannerModule, decorators: [{
|
|
349
|
+
type: NgModule,
|
|
350
|
+
args: [{
|
|
351
|
+
declarations: [
|
|
352
|
+
AlertBannerDirective,
|
|
353
|
+
AlertBannerRootDirective,
|
|
354
|
+
AlertBannerActionDirective,
|
|
355
|
+
AlertBannerCloseButtonDirective,
|
|
356
|
+
AlertBannerDescriptionDirective,
|
|
357
|
+
AlertBannerHeadingDirective,
|
|
358
|
+
AlertBannerIconDirective,
|
|
359
|
+
],
|
|
360
|
+
exports: [
|
|
361
|
+
AlertBannerDirective,
|
|
362
|
+
AlertBannerRootDirective,
|
|
363
|
+
AlertBannerActionDirective,
|
|
364
|
+
AlertBannerCloseButtonDirective,
|
|
365
|
+
AlertBannerDescriptionDirective,
|
|
366
|
+
AlertBannerHeadingDirective,
|
|
367
|
+
AlertBannerIconDirective,
|
|
368
|
+
],
|
|
369
|
+
imports: [IconDirective, QBindDirective],
|
|
370
|
+
}]
|
|
371
|
+
}] });
|
|
372
|
+
|
|
373
|
+
/**
|
|
374
|
+
* Generated bundle index. Do not edit.
|
|
375
|
+
*/
|
|
376
|
+
|
|
377
|
+
export { AlertBannerActionDirective, AlertBannerCloseButtonDirective, AlertBannerDescriptionDirective, AlertBannerDirective, AlertBannerHeadingDirective, AlertBannerIconDirective, AlertBannerModule, AlertBannerRootDirective, QDS_ALERT_BANNER_CONTEXT, QdsAlertBannerContextService, provideQdsAlertBannerContext, useQdsAlertBannerContext };
|
|
378
|
+
//# sourceMappingURL=qualcomm-ui-angular-alert-banner.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"qualcomm-ui-angular-alert-banner.mjs","sources":["../../src/alert-banner/qds-alert-banner-context.service.ts","../../src/alert-banner/alert-banner-action.directive.ts","../../src/alert-banner/alert-banner-close-button.directive.ts","../../src/alert-banner/alert-banner-description.directive.ts","../../src/alert-banner/alert-banner-heading.directive.ts","../../src/alert-banner/alert-banner-icon.directive.ts","../../src/alert-banner/alert-banner-root.directive.ts","../../src/alert-banner/alert-banner.directive.ts","../../src/alert-banner/alert-banner.module.ts","../../src/alert-banner/qualcomm-ui-angular-alert-banner.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 {QdsAlertBannerApi} from \"@qualcomm-ui/qds-core/alert-banner\"\n\nexport interface QdsAlertBannerContextValue extends QdsAlertBannerApi {\n onClose?: () => void\n}\n\n@Injectable()\nexport class QdsAlertBannerContextService extends BaseApiContextService<QdsAlertBannerContextValue> {}\n\nexport const [\n QDS_ALERT_BANNER_CONTEXT,\n useQdsAlertBannerContext,\n provideQdsAlertBannerContext,\n]: ApiContext<QdsAlertBannerContextValue> =\n createApiContext<QdsAlertBannerContextValue>(\n \"QdsAlertBannerContext\",\n QdsAlertBannerContextService,\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 {useQdsAlertBannerContext} from \"./qds-alert-banner-context.service\"\n\n@Directive({\n selector: \"[q-alert-banner-action]\",\n standalone: false,\n})\nexport class AlertBannerActionDirective implements OnInit {\n protected readonly qdsContext = useQdsAlertBannerContext()\n\n protected readonly trackBindings = useTrackBindings(() =>\n this.qdsContext().getActionBindings(),\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 {Component, computed, type OnInit} from \"@angular/core\"\nimport {X} from \"lucide-angular\"\n\nimport {useInlineIconButtonApi} from \"@qualcomm-ui/angular/inline-icon-button\"\nimport {QuiPreloadDirective} from \"@qualcomm-ui/angular/transitions\"\nimport {provideIcons} from \"@qualcomm-ui/angular-core/lucide\"\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nimport {useQdsAlertBannerContext} from \"./qds-alert-banner-context.service\"\n\n@Component({\n hostDirectives: [QuiPreloadDirective],\n providers: [provideIcons({X})],\n selector: \"[q-alert-banner-close-button]\",\n standalone: false,\n template: `\n <ng-content>\n <svg qIcon=\"X\" [q-bind]=\"inlineIconButtonApi().getIconBindings()\"></svg>\n </ng-content>\n `,\n})\nexport class AlertBannerCloseButtonDirective implements OnInit {\n protected readonly qdsContext = useQdsAlertBannerContext()\n\n protected readonly buttonEmphasis = computed(() => {\n const context = this.qdsContext()\n if (context.variant === \"strong\") {\n return context.emphasis === \"warning\"\n ? \"persistent-black\"\n : \"persistent-white\"\n }\n return undefined\n })\n\n protected readonly inlineIconButtonApi = useInlineIconButtonApi({\n emphasis: this.buttonEmphasis,\n size: \"md\",\n variant: \"fixed\",\n })\n\n protected readonly trackBindings = useTrackBindings(() =>\n mergeProps(\n {onclick: () => this.qdsContext().onClose?.()},\n this.qdsContext().getCloseButtonBindings(),\n this.inlineIconButtonApi().getRootBindings(),\n ),\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 {useQdsAlertBannerContext} from \"./qds-alert-banner-context.service\"\n\n@Directive({\n selector: \"[q-alert-banner-description]\",\n standalone: false,\n})\nexport class AlertBannerDescriptionDirective implements OnInit {\n protected readonly qdsContext = useQdsAlertBannerContext()\n\n protected readonly trackBindings = useTrackBindings(() =>\n this.qdsContext().getDescriptionBindings(),\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 {useQdsAlertBannerContext} from \"./qds-alert-banner-context.service\"\n\n@Directive({\n selector: \"[q-alert-banner-heading]\",\n standalone: false,\n})\nexport class AlertBannerHeadingDirective implements OnInit {\n protected readonly qdsContext = useQdsAlertBannerContext()\n\n protected readonly trackBindings = useTrackBindings(() =>\n this.qdsContext().getHeadingBindings(),\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 {Component, computed, input, type OnInit} from \"@angular/core\"\nimport {\n BellRing,\n CircleAlert,\n CircleCheck,\n Info,\n TriangleAlert,\n} from \"lucide-angular\"\n\nimport type {LucideIcon} from \"@qualcomm-ui/angular-core/lucide\"\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\nimport type {QdsAlertBannerEmphasis} from \"@qualcomm-ui/qds-core/alert-banner\"\n\nimport {useQdsAlertBannerContext} from \"./qds-alert-banner-context.service\"\n\nconst icons: Record<QdsAlertBannerEmphasis, LucideIcon> = {\n danger: CircleAlert,\n info: Info,\n neutral: BellRing,\n success: CircleCheck,\n warning: TriangleAlert,\n}\n\n@Component({\n selector: \"[q-alert-banner-icon]\",\n standalone: false,\n template: `\n @if (resolvedIcon()) {\n <svg size=\"lg\" [qIcon]=\"resolvedIcon()!\"></svg>\n } @else {\n <ng-content />\n }\n `,\n})\nexport class AlertBannerIconDirective implements OnInit {\n /**\n * Override the icon displayed in the banner. When this prop is omitted,\n * the icon is determined by the emphasis prop.\n */\n readonly icon = input<LucideIcon>()\n\n protected readonly qdsContext = useQdsAlertBannerContext()\n\n protected readonly resolvedIcon = computed(() => {\n return this.icon() || icons[this.qdsContext().emphasis]\n })\n\n protected readonly trackBindings = useTrackBindings(() =>\n this.qdsContext().getIconBindings(),\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 {\n computed,\n Directive,\n inject,\n input,\n type OnInit,\n output,\n} from \"@angular/core\"\n\nimport {\n normalizeProps,\n useTrackBindings,\n} from \"@qualcomm-ui/angular-core/machine\"\nimport type {SignalifyInput} from \"@qualcomm-ui/angular-core/signals\"\nimport {\n createQdsAlertBannerApi,\n type QdsAlertBannerApiProps,\n type QdsAlertBannerEmphasis,\n type QdsAlertBannerVariant,\n} from \"@qualcomm-ui/qds-core/alert-banner\"\nimport type {Direction} from \"@qualcomm-ui/utils/direction\"\n\nimport {\n provideQdsAlertBannerContext,\n QdsAlertBannerContextService,\n type QdsAlertBannerContextValue,\n} from \"./qds-alert-banner-context.service\"\n\n@Directive({\n providers: [provideQdsAlertBannerContext()],\n selector: \"[q-alert-banner-root]\",\n standalone: false,\n})\nexport class AlertBannerRootDirective\n implements SignalifyInput<QdsAlertBannerApiProps>, OnInit\n{\n /**\n * Accessible label for the close button.\n *\n * @default 'Close'\n */\n readonly closeButtonAriaLabel = input<string>()\n\n /**\n * The document's text/writing direction.\n *\n * @default \"ltr\"\n */\n readonly dir = input<Direction>()\n\n /**\n * Governs the color of the banner and its icon.\n *\n * @default 'info'\n */\n readonly emphasis = input<QdsAlertBannerEmphasis>()\n\n /**\n * The visual style of the banner.\n *\n * @default 'strong'\n */\n readonly variant = input<QdsAlertBannerVariant>()\n\n /**\n * Event emitted when the close button is clicked.\n */\n readonly closed = output<void>()\n\n protected readonly qdsAlertBannerService = inject(\n QdsAlertBannerContextService,\n )\n\n protected readonly trackBindings = useTrackBindings(() =>\n this.qdsAlertBannerService.context().getRootBindings(),\n )\n\n ngOnInit() {\n this.qdsAlertBannerService.init(\n computed<QdsAlertBannerContextValue>(() => ({\n ...createQdsAlertBannerApi(\n {\n closeButtonAriaLabel: this.closeButtonAriaLabel(),\n dir: this.dir(),\n emphasis: this.emphasis(),\n variant: this.variant(),\n },\n normalizeProps,\n ),\n onClose: () => this.closed.emit(),\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 {booleanAttribute, Component, input} from \"@angular/core\"\n\nimport type {Booleanish} from \"@qualcomm-ui/utils/coercion\"\n\nimport {AlertBannerRootDirective} from \"./alert-banner-root.directive\"\nimport {provideQdsAlertBannerContext} from \"./qds-alert-banner-context.service\"\n\n@Component({\n providers: [provideQdsAlertBannerContext()],\n selector: \"[q-alert-banner]\",\n standalone: false,\n template: `\n <ng-content select=\"[q-alert-banner-icon]\">\n <span q-alert-banner-icon></span>\n </ng-content>\n\n <ng-content select=\"[q-alert-banner-heading]\">\n @if (heading()) {\n <div q-alert-banner-heading>{{ heading() }}</div>\n }\n </ng-content>\n\n <ng-content select=\"[q-alert-banner-description]\">\n @if (description()) {\n <div q-alert-banner-description>{{ description() }}</div>\n }\n </ng-content>\n\n <ng-content select=\"[q-alert-banner-action]\" />\n\n <ng-content select=\"[q-alert-banner-close-button]\">\n @if (dismissable()) {\n <button q-alert-banner-close-button></button>\n }\n </ng-content>\n `,\n})\nexport class AlertBannerDirective extends AlertBannerRootDirective {\n /**\n * Optional description text for the banner.\n *\n * @remarks\n * To customize the element, provide it using the directive instead:\n * ```angular-html\n * <div q-alert-banner-description>...</div>\n * ```\n */\n readonly description = input<string>()\n\n /**\n * When `true`, renders a close button that calls `closed` when clicked.\n *\n * @remarks\n * To customize the close button, provide it using the directive instead:\n * ```angular-html\n * <button q-alert-banner-close-button>...</button>\n * ```\n *\n * @default false\n */\n readonly dismissable = input<boolean | undefined, Booleanish>(undefined, {\n transform: booleanAttribute,\n })\n\n /**\n * Optional heading text for the banner.\n *\n * @remarks\n * To customize the element, provide it using the directive instead:\n * ```angular-html\n * <div q-alert-banner-heading>...</div>\n * ```\n */\n readonly heading = input<string>()\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {NgModule} from \"@angular/core\"\n\nimport {IconDirective} from \"@qualcomm-ui/angular/icon\"\nimport {QBindDirective} from \"@qualcomm-ui/angular-core/machine\"\n\nimport {AlertBannerActionDirective} from \"./alert-banner-action.directive\"\nimport {AlertBannerCloseButtonDirective} from \"./alert-banner-close-button.directive\"\nimport {AlertBannerDescriptionDirective} from \"./alert-banner-description.directive\"\nimport {AlertBannerHeadingDirective} from \"./alert-banner-heading.directive\"\nimport {AlertBannerIconDirective} from \"./alert-banner-icon.directive\"\nimport {AlertBannerRootDirective} from \"./alert-banner-root.directive\"\nimport {AlertBannerDirective} from \"./alert-banner.directive\"\n\n@NgModule({\n declarations: [\n AlertBannerDirective,\n AlertBannerRootDirective,\n AlertBannerActionDirective,\n AlertBannerCloseButtonDirective,\n AlertBannerDescriptionDirective,\n AlertBannerHeadingDirective,\n AlertBannerIconDirective,\n ],\n exports: [\n AlertBannerDirective,\n AlertBannerRootDirective,\n AlertBannerActionDirective,\n AlertBannerCloseButtonDirective,\n AlertBannerDescriptionDirective,\n AlertBannerHeadingDirective,\n AlertBannerIconDirective,\n ],\n imports: [IconDirective, QBindDirective],\n})\nexport class AlertBannerModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1","i1.AlertBannerCloseButtonDirective","i2.AlertBannerDescriptionDirective","i3.AlertBannerHeadingDirective","i4.AlertBannerIconDirective"],"mappings":";;;;;;;;;;;;;;AAAA;AACA;AAgBM,MAAO,4BAA6B,SAAQ,qBAAiD,CAAA;wGAAtF,4BAA4B,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;4GAA5B,4BAA4B,EAAA,CAAA;;4FAA5B,4BAA4B,EAAA,UAAA,EAAA,CAAA;kBADxC;;AAGM,MAAM,CACX,wBAAwB,EACxB,wBAAwB,EACxB,4BAA4B,EAC7B,GACC,gBAAgB,CACd,uBAAuB,EACvB,4BAA4B;;AC1BhC;AACA;MAYa,0BAA0B,CAAA;IAClB,UAAU,GAAG,wBAAwB,EAAE;AAEvC,IAAA,aAAa,GAAG,gBAAgB,CAAC,MAClD,IAAI,CAAC,UAAU,EAAE,CAAC,iBAAiB,EAAE,CACtC;IAED,QAAQ,GAAA;QACN,IAAI,CAAC,aAAa,EAAE;IACtB;wGATW,0BAA0B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAA1B,0BAA0B,EAAA,YAAA,EAAA,KAAA,EAAA,QAAA,EAAA,yBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;4FAA1B,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBAJtC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,yBAAyB;AACnC,oBAAA,UAAU,EAAE,KAAK;AAClB,iBAAA;;;ACZD;AACA;MAwBa,+BAA+B,CAAA;IACvB,UAAU,GAAG,wBAAwB,EAAE;AAEvC,IAAA,cAAc,GAAG,QAAQ,CA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A+B;YAC/B,+BAA+B;YAC/B,2BAA2B;YAC3B,wBAAwB,CAAA,EAAA,CAAA;yGAIf,iBAAiB,EAAA,CAAA;;4FAAjB,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBArB7B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ,oBAAoB;wBACpB,wBAAwB;wBACxB,0BAA0B;wBAC1B,+BAA+B;wBAC/B,+BAA+B;wBAC/B,2BAA2B;wBAC3B,wBAAwB;AACzB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,oBAAoB;wBACpB,wBAAwB;wBACxB,0BAA0B;wBAC1B,+BAA+B;wBAC/B,+BAA+B;wBAC/B,2BAA2B;wBAC3B,wBAAwB;AACzB,qBAAA;AACD,oBAAA,OAAO,EAAE,CAAC,aAAa,EAAE,cAAc,CAAC;AACzC,iBAAA;;;ACpCD;;AAEG;;;;"}
|
|
@@ -75,6 +75,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
75
75
|
// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
|
|
76
76
|
// SPDX-License-Identifier: BSD-3-Clause-Clear
|
|
77
77
|
class AvatarDirective extends CoreAvatarRootDirective {
|
|
78
|
+
/**
|
|
79
|
+
* Governs the color of the avatar.
|
|
80
|
+
*/
|
|
81
|
+
emphasis = input(...(ngDevMode ? [undefined, { debugName: "emphasis" }] : []));
|
|
78
82
|
/**
|
|
79
83
|
* Governs the width and height of the avatar as well as the font size of its
|
|
80
84
|
* content.
|
|
@@ -85,7 +89,7 @@ class AvatarDirective extends CoreAvatarRootDirective {
|
|
|
85
89
|
*/
|
|
86
90
|
status = input(...(ngDevMode ? [undefined, { debugName: "status" }] : []));
|
|
87
91
|
/**
|
|
88
|
-
*
|
|
92
|
+
* @deprecated use {@link emphasis} instead
|
|
89
93
|
*/
|
|
90
94
|
variant = input(...(ngDevMode ? [undefined, { debugName: "variant" }] : []));
|
|
91
95
|
qdsAvatarService = inject(QdsAvatarContextService);
|
|
@@ -96,6 +100,7 @@ class AvatarDirective extends CoreAvatarRootDirective {
|
|
|
96
100
|
ngOnInit() {
|
|
97
101
|
super.ngOnInit();
|
|
98
102
|
const qdsAvatarApi = computed(() => createQdsAvatarApi({
|
|
103
|
+
emphasis: this.emphasis(),
|
|
99
104
|
size: this.size(),
|
|
100
105
|
status: this.status(),
|
|
101
106
|
variant: this.variant(),
|
|
@@ -103,7 +108,7 @@ class AvatarDirective extends CoreAvatarRootDirective {
|
|
|
103
108
|
this.qdsAvatarService.init(qdsAvatarApi);
|
|
104
109
|
}
|
|
105
110
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AvatarDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
106
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.16", type: AvatarDirective, isStandalone: false, selector: "[q-avatar]", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, status: { classPropertyName: "status", publicName: "status", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null } }, providers: [provideAvatarContext(), provideQdsAvatarContext()], usesInheritance: true, ngImport: i0 });
|
|
111
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.16", type: AvatarDirective, isStandalone: false, selector: "[q-avatar]", inputs: { emphasis: { classPropertyName: "emphasis", publicName: "emphasis", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, status: { classPropertyName: "status", publicName: "status", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null } }, providers: [provideAvatarContext(), provideQdsAvatarContext()], usesInheritance: true, ngImport: i0 });
|
|
107
112
|
}
|
|
108
113
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AvatarDirective, decorators: [{
|
|
109
114
|
type: Directive,
|
|
@@ -112,7 +117,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
112
117
|
selector: "[q-avatar]",
|
|
113
118
|
standalone: false,
|
|
114
119
|
}]
|
|
115
|
-
}], ctorParameters: () => [], propDecorators: { size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], status: [{ type: i0.Input, args: [{ isSignal: true, alias: "status", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }] } });
|
|
120
|
+
}], ctorParameters: () => [], propDecorators: { emphasis: [{ type: i0.Input, args: [{ isSignal: true, alias: "emphasis", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], status: [{ type: i0.Input, args: [{ isSignal: true, alias: "status", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }] } });
|
|
116
121
|
|
|
117
122
|
// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
|
|
118
123
|
// SPDX-License-Identifier: BSD-3-Clause-Clear
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"qualcomm-ui-angular-avatar.mjs","sources":["../../src/avatar/qds-avatar-context.service.ts","../../src/avatar/avatar-content.directive.ts","../../src/avatar/avatar-image.directive.ts","../../src/avatar/avatar-status.directive.ts","../../src/avatar/avatar.directive.ts","../../src/avatar/avatar.module.ts","../../src/avatar/qualcomm-ui-angular-avatar.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 {QdsAvatarApi} from \"@qualcomm-ui/qds-core/avatar\"\n\n@Injectable()\nexport class QdsAvatarContextService extends BaseApiContextService<QdsAvatarApi> {}\n\nexport const [\n QDS_AVATAR_CONTEXT,\n useQdsAvatarContext,\n provideQdsAvatarContext,\n]: ApiContext<QdsAvatarApi> = createApiContext<QdsAvatarApi>(\n \"QdsAvatarContext\",\n QdsAvatarContextService,\n)\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, Directive} from \"@angular/core\"\n\nimport {CoreAvatarContentDirective} from \"@qualcomm-ui/angular-core/avatar\"\n\nimport {useQdsAvatarContext} from \"./qds-avatar-context.service\"\n\n@Directive({\n selector: \"[q-avatar-content]\",\n standalone: false,\n})\nexport class AvatarContentDirective extends CoreAvatarContentDirective {\n readonly qdsContext = useQdsAvatarContext()\n\n constructor() {\n super()\n this.trackBindings.extendWith(\n computed(() => this.qdsContext().getContentBindings()),\n )\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, Directive} from \"@angular/core\"\n\nimport {CoreAvatarImageDirective} from \"@qualcomm-ui/angular-core/avatar\"\n\nimport {useQdsAvatarContext} from \"./qds-avatar-context.service\"\n\n@Directive({\n selector: \"[q-avatar-image]\",\n standalone: false,\n})\nexport class AvatarImageDirective extends CoreAvatarImageDirective {\n protected readonly qdsContext = useQdsAvatarContext()\n\n constructor() {\n super()\n this.trackBindings.extendWith(\n computed(() => this.qdsContext().getImageBindings()),\n )\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, Directive} from \"@angular/core\"\n\nimport {CoreAvatarStatusDirective} from \"@qualcomm-ui/angular-core/avatar\"\n\nimport {useQdsAvatarContext} from \"./qds-avatar-context.service\"\n\n@Directive({\n selector: \"[q-avatar-status]\",\n standalone: false,\n})\nexport class AvatarStatusDirective extends CoreAvatarStatusDirective {\n protected readonly qdsContext = useQdsAvatarContext()\n\n constructor() {\n super()\n this.trackBindings.extendWith(\n computed(() => this.qdsContext().getStatusBindings()),\n )\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, Directive, inject, input} from \"@angular/core\"\n\nimport {\n CoreAvatarRootDirective,\n provideAvatarContext,\n} from \"@qualcomm-ui/angular-core/avatar\"\nimport {normalizeProps} from \"@qualcomm-ui/angular-core/machine\"\nimport type {SignalifyInput} from \"@qualcomm-ui/angular-core/signals\"\nimport {\n createQdsAvatarApi,\n type QdsAvatarApiProps,\n type QdsAvatarSize,\n type QdsAvatarStatus,\n type QdsAvatarVariant,\n} from \"@qualcomm-ui/qds-core/avatar\"\n\nimport {\n provideQdsAvatarContext,\n QdsAvatarContextService,\n} from \"./qds-avatar-context.service\"\n\n@Directive({\n providers: [provideAvatarContext(), provideQdsAvatarContext()],\n selector: \"[q-avatar]\",\n standalone: false,\n})\nexport class AvatarDirective\n extends CoreAvatarRootDirective\n implements SignalifyInput<QdsAvatarApiProps>\n{\n /**\n * Governs the width and height of the avatar as well as the font size of its\n * content.\n */\n readonly size = input<QdsAvatarSize | undefined>()\n\n /**\n * Optional status for the avatar, renders a dot indicator next to the avatar.\n */\n readonly status = input<QdsAvatarStatus | undefined>()\n\n /**\n * The style variant of the avatar.\n */\n readonly variant = input<QdsAvatarVariant | undefined>()\n\n protected readonly qdsAvatarService = inject(QdsAvatarContextService)\n\n constructor() {\n super()\n this.trackBindings.extendWith(\n computed(() => this.qdsAvatarService.context().getRootBindings()),\n )\n }\n\n override ngOnInit() {\n super.ngOnInit()\n\n const qdsAvatarApi = computed(() =>\n createQdsAvatarApi(\n {\n size: this.size(),\n status: this.status(),\n variant: this.variant(),\n },\n normalizeProps,\n ),\n )\n\n this.qdsAvatarService.init(qdsAvatarApi)\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {NgModule} from \"@angular/core\"\n\nimport {AvatarContentDirective} from \"./avatar-content.directive\"\nimport {AvatarImageDirective} from \"./avatar-image.directive\"\nimport {AvatarStatusDirective} from \"./avatar-status.directive\"\nimport {AvatarDirective} from \"./avatar.directive\"\n\n@NgModule({\n declarations: [\n AvatarDirective,\n AvatarContentDirective,\n AvatarImageDirective,\n AvatarStatusDirective,\n ],\n exports: [\n AvatarDirective,\n AvatarContentDirective,\n AvatarImageDirective,\n AvatarStatusDirective,\n ],\n})\nexport class AvatarModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAAA;AACA;AAYM,MAAO,uBAAwB,SAAQ,qBAAmC,CAAA;wGAAnE,uBAAuB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;4GAAvB,uBAAuB,EAAA,CAAA;;4FAAvB,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBADnC;;AAGM,MAAM,CACX,kBAAkB,EAClB,mBAAmB,EACnB,uBAAuB,EACxB,GAA6B,gBAAgB,CAC5C,kBAAkB,EAClB,uBAAuB,CACxB;;ACtBD;AACA;AAYM,MAAO,sBAAuB,SAAQ,0BAA0B,CAAA;IAC3D,UAAU,GAAG,mBAAmB,EAAE;AAE3C,IAAA,WAAA,GAAA;AACE,QAAA,KAAK,EAAE;AACP,QAAA,IAAI,CAAC,aAAa,CAAC,UAAU,CAC3B,QAAQ,CAAC,MAAM,IAAI,CAAC,UAAU,EAAE,CAAC,kBAAkB,EAAE,CAAC,CACvD;IACH;wGARW,sBAAsB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAAtB,s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qBAAqB,CAAA,EAAA,CAAA;yGAGZ,YAAY,EAAA,CAAA;;4FAAZ,YAAY,EAAA,UAAA,EAAA,CAAA;kBAdxB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ,eAAe;wBACf,sBAAsB;wBACtB,oBAAoB;wBACpB,qBAAqB;AACtB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,eAAe;wBACf,sBAAsB;wBACtB,oBAAoB;wBACpB,qBAAqB;AACtB,qBAAA;AACF,iBAAA;;;ACvBD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"qualcomm-ui-angular-avatar.mjs","sources":["../../src/avatar/qds-avatar-context.service.ts","../../src/avatar/avatar-content.directive.ts","../../src/avatar/avatar-image.directive.ts","../../src/avatar/avatar-status.directive.ts","../../src/avatar/avatar.directive.ts","../../src/avatar/avatar.module.ts","../../src/avatar/qualcomm-ui-angular-avatar.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 {QdsAvatarApi} from \"@qualcomm-ui/qds-core/avatar\"\n\n@Injectable()\nexport class QdsAvatarContextService extends BaseApiContextService<QdsAvatarApi> {}\n\nexport const [\n QDS_AVATAR_CONTEXT,\n useQdsAvatarContext,\n provideQdsAvatarContext,\n]: ApiContext<QdsAvatarApi> = createApiContext<QdsAvatarApi>(\n \"QdsAvatarContext\",\n QdsAvatarContextService,\n)\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, Directive} from \"@angular/core\"\n\nimport {CoreAvatarContentDirective} from \"@qualcomm-ui/angular-core/avatar\"\n\nimport {useQdsAvatarContext} from \"./qds-avatar-context.service\"\n\n@Directive({\n selector: \"[q-avatar-content]\",\n standalone: false,\n})\nexport class AvatarContentDirective extends CoreAvatarContentDirective {\n readonly qdsContext = useQdsAvatarContext()\n\n constructor() {\n super()\n this.trackBindings.extendWith(\n computed(() => this.qdsContext().getContentBindings()),\n )\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, Directive} from \"@angular/core\"\n\nimport {CoreAvatarImageDirective} from \"@qualcomm-ui/angular-core/avatar\"\n\nimport {useQdsAvatarContext} from \"./qds-avatar-context.service\"\n\n@Directive({\n selector: \"[q-avatar-image]\",\n standalone: false,\n})\nexport class AvatarImageDirective extends CoreAvatarImageDirective {\n protected readonly qdsContext = useQdsAvatarContext()\n\n constructor() {\n super()\n this.trackBindings.extendWith(\n computed(() => this.qdsContext().getImageBindings()),\n )\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, Directive} from \"@angular/core\"\n\nimport {CoreAvatarStatusDirective} from \"@qualcomm-ui/angular-core/avatar\"\n\nimport {useQdsAvatarContext} from \"./qds-avatar-context.service\"\n\n@Directive({\n selector: \"[q-avatar-status]\",\n standalone: false,\n})\nexport class AvatarStatusDirective extends CoreAvatarStatusDirective {\n protected readonly qdsContext = useQdsAvatarContext()\n\n constructor() {\n super()\n this.trackBindings.extendWith(\n computed(() => this.qdsContext().getStatusBindings()),\n )\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, Directive, inject, input} from \"@angular/core\"\n\nimport {\n CoreAvatarRootDirective,\n provideAvatarContext,\n} from \"@qualcomm-ui/angular-core/avatar\"\nimport {normalizeProps} from \"@qualcomm-ui/angular-core/machine\"\nimport type {SignalifyInput} from \"@qualcomm-ui/angular-core/signals\"\nimport {\n createQdsAvatarApi,\n type QdsAvatarApiProps,\n type QdsAvatarEmphasis,\n type QdsAvatarSize,\n type QdsAvatarStatus,\n type QdsAvatarVariant,\n} from \"@qualcomm-ui/qds-core/avatar\"\n\nimport {\n provideQdsAvatarContext,\n QdsAvatarContextService,\n} from \"./qds-avatar-context.service\"\n\n@Directive({\n providers: [provideAvatarContext(), provideQdsAvatarContext()],\n selector: \"[q-avatar]\",\n standalone: false,\n})\nexport class AvatarDirective\n extends CoreAvatarRootDirective\n implements SignalifyInput<QdsAvatarApiProps>\n{\n /**\n * Governs the color of the avatar.\n */\n readonly emphasis = input<QdsAvatarEmphasis | undefined>()\n\n /**\n * Governs the width and height of the avatar as well as the font size of its\n * content.\n */\n readonly size = input<QdsAvatarSize | undefined>()\n\n /**\n * Optional status for the avatar, renders a dot indicator next to the avatar.\n */\n readonly status = input<QdsAvatarStatus | undefined>()\n\n /**\n * @deprecated use {@link emphasis} instead\n */\n readonly variant = input<QdsAvatarVariant | undefined>()\n\n protected readonly qdsAvatarService = inject(QdsAvatarContextService)\n\n constructor() {\n super()\n this.trackBindings.extendWith(\n computed(() => this.qdsAvatarService.context().getRootBindings()),\n )\n }\n\n override ngOnInit() {\n super.ngOnInit()\n\n const qdsAvatarApi = computed(() =>\n createQdsAvatarApi(\n {\n emphasis: this.emphasis(),\n size: this.size(),\n status: this.status(),\n variant: this.variant(),\n },\n normalizeProps,\n ),\n )\n\n this.qdsAvatarService.init(qdsAvatarApi)\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {NgModule} from \"@angular/core\"\n\nimport {AvatarContentDirective} from \"./avatar-content.directive\"\nimport {AvatarImageDirective} from \"./avatar-image.directive\"\nimport {AvatarStatusDirective} from \"./avatar-status.directive\"\nimport {AvatarDirective} from \"./avatar.directive\"\n\n@NgModule({\n declarations: [\n AvatarDirective,\n AvatarContentDirective,\n AvatarImageDirective,\n AvatarStatusDirective,\n ],\n exports: [\n AvatarDirective,\n AvatarContentDirective,\n AvatarImageDirective,\n AvatarStatusDirective,\n ],\n})\nexport class AvatarModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAAA;AACA;AAYM,MAAO,uBAAwB,SAAQ,qBAAmC,CAAA;wGAAnE,uBAAuB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;4GAAvB,uBAAuB,EAAA,CAAA;;4FAAvB,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBADnC;;AAGM,MAAM,CACX,kBAAkB,EAClB,mBAAmB,EACnB,uBAAuB,EACxB,GAA6B,gBAAgB,CAC5C,kBAAkB,EAClB,uBAAuB,CACxB;;ACtBD;AACA;AAYM,MAAO,sBAAuB,SAAQ,0BAA0B,CAAA;IAC3D,UAAU,GAAG,mBAAmB,EAAE;AAE3C,IAAA,WAAA,GAAA;AACE,QAAA,KAAK,EAAE;AACP,QAAA,IAAI,CAAC,aAAa,CAAC,UAAU,CAC3B,QAAQ,CAAC,MAAM,IAAI,CAAC,UAAU,EAAE,CAAC,kBAAkB,EAAE,CAAC,CACvD;IACH;wGARW,sBAAsB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAAtB,sBAAsB,EAAA,YAAA,EAAA,KAAA,EAAA,QAAA,EAAA,oBAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;4FAAtB,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBAJlC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,oBAAoB;AAC9B,oBAAA,UAAU,EAAE,KAAK;AAClB,iBAAA;;;ACZD;AACA;AAYM,MAAO,oBAAqB,SAAQ,wBAAwB,CAAA;IAC7C,UAAU,GAAG,mB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