@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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { Injectable, computed, Component, input, Directive, inject, NgModule } from '@angular/core';
|
|
3
|
-
import { CoreCheckboxIndicatorDirective, CoreCheckboxControlDirective, CoreCheckboxErrorTextDirective, CoreCheckboxHiddenInputDirective, CoreCheckboxLabelDirective, CoreCheckboxRootDirective, provideCheckboxContext } from '@qualcomm-ui/angular-core/checkbox';
|
|
3
|
+
import { CoreCheckboxIndicatorDirective, CoreCheckboxControlDirective, CoreCheckboxErrorTextDirective, CoreCheckboxHintDirective, CoreCheckboxHiddenInputDirective, CoreCheckboxLabelDirective, CoreCheckboxRootDirective, provideCheckboxContext } from '@qualcomm-ui/angular-core/checkbox';
|
|
4
4
|
import { BaseApiContextService, createApiContext, normalizeProps, QBindDirective } from '@qualcomm-ui/angular-core/machine';
|
|
5
5
|
import * as i1 from '@qualcomm-ui/angular/checkmark';
|
|
6
6
|
import { CheckmarkIconComponent } from '@qualcomm-ui/angular/checkmark';
|
|
@@ -125,6 +125,28 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
125
125
|
}]
|
|
126
126
|
}], ctorParameters: () => [], propDecorators: { icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }] } });
|
|
127
127
|
|
|
128
|
+
// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
|
|
129
|
+
// SPDX-License-Identifier: BSD-3-Clause-Clear
|
|
130
|
+
/**
|
|
131
|
+
* Hint text displayed below the checkbox.
|
|
132
|
+
*/
|
|
133
|
+
class CheckboxHintDirective extends CoreCheckboxHintDirective {
|
|
134
|
+
qdsCheckboxContext = useQdsCheckboxContext();
|
|
135
|
+
constructor() {
|
|
136
|
+
super();
|
|
137
|
+
this.trackBindings.extendWith(computed(() => this.qdsCheckboxContext().getHintBindings()));
|
|
138
|
+
}
|
|
139
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CheckboxHintDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
140
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.16", type: CheckboxHintDirective, isStandalone: false, selector: "[q-checkbox-hint]", usesInheritance: true, ngImport: i0 });
|
|
141
|
+
}
|
|
142
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CheckboxHintDirective, decorators: [{
|
|
143
|
+
type: Directive,
|
|
144
|
+
args: [{
|
|
145
|
+
selector: "[q-checkbox-hint]",
|
|
146
|
+
standalone: false,
|
|
147
|
+
}]
|
|
148
|
+
}], ctorParameters: () => [] });
|
|
149
|
+
|
|
128
150
|
// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
|
|
129
151
|
// SPDX-License-Identifier: BSD-3-Clause-Clear
|
|
130
152
|
/**
|
|
@@ -221,6 +243,20 @@ class CheckboxComponent extends CheckboxRootDirective {
|
|
|
221
243
|
* ```
|
|
222
244
|
*/
|
|
223
245
|
errorText = input(...(ngDevMode ? [undefined, { debugName: "errorText" }] : []));
|
|
246
|
+
/**
|
|
247
|
+
* Optional hint text displayed below the checkbox. Hints are hidden when the
|
|
248
|
+
* checkbox is invalid.
|
|
249
|
+
*
|
|
250
|
+
* @remarks
|
|
251
|
+
* To customize the element, provide it using the directive instead:
|
|
252
|
+
*
|
|
253
|
+
* ```angular-html
|
|
254
|
+
* <label q-checkbox>
|
|
255
|
+
* <div q-checkbox-hint>...</div>
|
|
256
|
+
* </label>
|
|
257
|
+
* ```
|
|
258
|
+
*/
|
|
259
|
+
hint = input(...(ngDevMode ? [undefined, { debugName: "hint" }] : []));
|
|
224
260
|
/**
|
|
225
261
|
* Optional label describing the checkbox. This element is automatically
|
|
226
262
|
* associated with the checkbox for accessibility. If omitted, you should provide
|
|
@@ -238,7 +274,7 @@ class CheckboxComponent extends CheckboxRootDirective {
|
|
|
238
274
|
*/
|
|
239
275
|
label = input(...(ngDevMode ? [undefined, { debugName: "label" }] : []));
|
|
240
276
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CheckboxComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
241
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: CheckboxComponent, isStandalone: false, selector: "[q-checkbox]", inputs: { errorText: { classPropertyName: "errorText", publicName: "errorText", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null } }, providers: [provideCheckboxContext(), provideQdsCheckboxContext()], usesInheritance: true, ngImport: i0, template: `
|
|
277
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: CheckboxComponent, isStandalone: false, selector: "[q-checkbox]", inputs: { errorText: { classPropertyName: "errorText", publicName: "errorText", isSignal: true, isRequired: false, transformFunction: null }, hint: { classPropertyName: "hint", publicName: "hint", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null } }, providers: [provideCheckboxContext(), provideQdsCheckboxContext()], usesInheritance: true, ngImport: i0, template: `
|
|
242
278
|
<ng-content select="[q-checkbox-hidden-input]">
|
|
243
279
|
<input q-checkbox-hidden-input />
|
|
244
280
|
</ng-content>
|
|
@@ -262,7 +298,14 @@ class CheckboxComponent extends CheckboxRootDirective {
|
|
|
262
298
|
</div>
|
|
263
299
|
}
|
|
264
300
|
</ng-content>
|
|
265
|
-
|
|
301
|
+
<ng-content select="[q-checkbox-hint]">
|
|
302
|
+
@if (hint()) {
|
|
303
|
+
<div q-checkbox-hint>
|
|
304
|
+
{{ hint() }}
|
|
305
|
+
</div>
|
|
306
|
+
}
|
|
307
|
+
</ng-content>
|
|
308
|
+
`, isInline: true, dependencies: [{ kind: "component", type: CheckboxControlComponent, selector: "[q-checkbox-control]" }, { kind: "directive", type: CheckboxLabelDirective, selector: "[q-checkbox-label]" }, { kind: "directive", type: CheckboxHiddenInputDirective, selector: "input[q-checkbox-hidden-input]" }, { kind: "directive", type: CheckboxHintDirective, selector: "[q-checkbox-hint]" }, { kind: "component", type: CheckboxIndicatorComponent, selector: "[q-checkbox-indicator]" }, { kind: "component", type: CheckboxErrorTextComponent, selector: "[q-checkbox-error-text]", inputs: ["icon"] }] });
|
|
266
309
|
}
|
|
267
310
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CheckboxComponent, decorators: [{
|
|
268
311
|
type: Component,
|
|
@@ -294,9 +337,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
294
337
|
</div>
|
|
295
338
|
}
|
|
296
339
|
</ng-content>
|
|
340
|
+
<ng-content select="[q-checkbox-hint]">
|
|
341
|
+
@if (hint()) {
|
|
342
|
+
<div q-checkbox-hint>
|
|
343
|
+
{{ hint() }}
|
|
344
|
+
</div>
|
|
345
|
+
}
|
|
346
|
+
</ng-content>
|
|
297
347
|
`,
|
|
298
348
|
}]
|
|
299
|
-
}], propDecorators: { errorText: [{ type: i0.Input, args: [{ isSignal: true, alias: "errorText", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }] } });
|
|
349
|
+
}], propDecorators: { errorText: [{ type: i0.Input, args: [{ isSignal: true, alias: "errorText", required: false }] }], hint: [{ type: i0.Input, args: [{ isSignal: true, alias: "hint", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }] } });
|
|
300
350
|
|
|
301
351
|
// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
|
|
302
352
|
// SPDX-License-Identifier: BSD-3-Clause-Clear
|
|
@@ -307,12 +357,14 @@ class CheckboxModule {
|
|
|
307
357
|
CheckboxControlComponent,
|
|
308
358
|
CheckboxLabelDirective,
|
|
309
359
|
CheckboxHiddenInputDirective,
|
|
360
|
+
CheckboxHintDirective,
|
|
310
361
|
CheckboxIndicatorComponent,
|
|
311
362
|
CheckboxErrorTextComponent], imports: [QBindDirective, IconDirective, CheckmarkIconComponent], exports: [CheckboxComponent,
|
|
312
363
|
CheckboxRootDirective,
|
|
313
364
|
CheckboxControlComponent,
|
|
314
365
|
CheckboxLabelDirective,
|
|
315
366
|
CheckboxHiddenInputDirective,
|
|
367
|
+
CheckboxHintDirective,
|
|
316
368
|
CheckboxIndicatorComponent,
|
|
317
369
|
CheckboxErrorTextComponent] });
|
|
318
370
|
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CheckboxModule, imports: [CheckmarkIconComponent] });
|
|
@@ -326,6 +378,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
326
378
|
CheckboxControlComponent,
|
|
327
379
|
CheckboxLabelDirective,
|
|
328
380
|
CheckboxHiddenInputDirective,
|
|
381
|
+
CheckboxHintDirective,
|
|
329
382
|
CheckboxIndicatorComponent,
|
|
330
383
|
CheckboxErrorTextComponent,
|
|
331
384
|
],
|
|
@@ -335,6 +388,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
335
388
|
CheckboxControlComponent,
|
|
336
389
|
CheckboxLabelDirective,
|
|
337
390
|
CheckboxHiddenInputDirective,
|
|
391
|
+
CheckboxHintDirective,
|
|
338
392
|
CheckboxIndicatorComponent,
|
|
339
393
|
CheckboxErrorTextComponent,
|
|
340
394
|
],
|
|
@@ -346,5 +400,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
346
400
|
* Generated bundle index. Do not edit.
|
|
347
401
|
*/
|
|
348
402
|
|
|
349
|
-
export { CheckboxComponent, CheckboxControlComponent, CheckboxErrorTextComponent, CheckboxHiddenInputDirective, CheckboxIndicatorComponent, CheckboxLabelDirective, CheckboxModule, CheckboxRootDirective, QDS_CHECKBOX_CONTEXT, QdsCheckboxContextService, provideQdsCheckboxContext, useQdsCheckboxContext };
|
|
403
|
+
export { CheckboxComponent, CheckboxControlComponent, CheckboxErrorTextComponent, CheckboxHiddenInputDirective, CheckboxHintDirective, CheckboxIndicatorComponent, CheckboxLabelDirective, CheckboxModule, CheckboxRootDirective, QDS_CHECKBOX_CONTEXT, QdsCheckboxContextService, provideQdsCheckboxContext, useQdsCheckboxContext };
|
|
350
404
|
//# sourceMappingURL=qualcomm-ui-angular-checkbox.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"qualcomm-ui-angular-checkbox.mjs","sources":["../../src/checkbox/qds-checkbox-context.service.ts","../../src/checkbox/checkbox-indicator.component.ts","../../src/checkbox/checkbox-control.component.ts","../../src/checkbox/checkbox-error-text.component.ts","../../src/checkbox/checkbox-hidden-input.directive.ts","../../src/checkbox/checkbox-label.directive.ts","../../src/checkbox/checkbox-root.directive.ts","../../src/checkbox/checkbox.component.ts","../../src/checkbox/checkbox.module.ts","../../src/checkbox/qualcomm-ui-angular-checkbox.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 {QdsCheckboxApi} from \"@qualcomm-ui/qds-core/checkbox\"\n\n@Injectable()\nexport class QdsCheckboxContextService extends BaseApiContextService<QdsCheckboxApi> {}\n\nexport const [\n QDS_CHECKBOX_CONTEXT,\n useQdsCheckboxContext,\n provideQdsCheckboxContext,\n]: ApiContext<QdsCheckboxApi> = createApiContext<QdsCheckboxApi>(\n \"QdsCheckboxContext\",\n QdsCheckboxContextService,\n)\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Component, computed} from \"@angular/core\"\n\nimport {CoreCheckboxIndicatorDirective} from \"@qualcomm-ui/angular-core/checkbox\"\n\nimport {useQdsCheckboxContext} from \"./qds-checkbox-context.service\"\n\n/**\n * Visual indicator rendered within the control that displays the checkbox state\n * (checked, indeterminate, or unchecked).\n */\n@Component({\n selector: \"[q-checkbox-indicator]\",\n standalone: false,\n template: `\n <ng-content>\n <q-checkmark-icon\n [indeterminate]=\"checkboxContext().indeterminate\"\n [size]=\"qdsCheckboxContext().size\"\n />\n </ng-content>\n `,\n})\nexport class CheckboxIndicatorComponent extends CoreCheckboxIndicatorDirective {\n protected readonly qdsCheckboxContext = useQdsCheckboxContext()\n\n constructor() {\n super()\n this.trackBindings.extendWith(\n computed(() => this.qdsCheckboxContext().getIndicatorBindings()),\n )\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Component, computed} from \"@angular/core\"\n\nimport {CoreCheckboxControlDirective} from \"@qualcomm-ui/angular-core/checkbox\"\n\nimport {useQdsCheckboxContext} from \"./qds-checkbox-context.service\"\n\n/**\n * Visual control that wraps the checkbox indicator.\n */\n@Component({\n selector: \"[q-checkbox-control]\",\n standalone: false,\n template: `\n <ng-content>\n <div q-checkbox-indicator></div>\n </ng-content>\n `,\n})\nexport class CheckboxControlComponent extends CoreCheckboxControlDirective {\n protected readonly qdsCheckboxContext = useQdsCheckboxContext()\n\n constructor() {\n super()\n this.trackBindings.extendWith(\n computed(() => this.qdsCheckboxContext().getControlBindings()),\n )\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} from \"@angular/core\"\nimport {CircleAlert} from \"lucide-angular\"\n\nimport {CoreCheckboxErrorTextDirective} from \"@qualcomm-ui/angular-core/checkbox\"\nimport type {LucideIconOrString} from \"@qualcomm-ui/angular-core/lucide\"\n\nimport {useQdsCheckboxContext} from \"./qds-checkbox-context.service\"\n\n/**\n * Error message displayed when the checkbox is invalid.\n */\n@Component({\n selector: \"[q-checkbox-error-text]\",\n standalone: false,\n template: `\n <svg [qIcon]=\"icon()!\" />\n <ng-content />\n `,\n})\nexport class CheckboxErrorTextComponent extends CoreCheckboxErrorTextDirective {\n /**\n * Error indicator icon.\n *\n * @default CircleAlert\n */\n readonly icon = input<LucideIconOrString>(CircleAlert)\n\n protected readonly qdsCheckboxContext = useQdsCheckboxContext()\n\n constructor() {\n super()\n this.trackBindings.extendWith(\n computed(() => this.qdsCheckboxContext().getErrorTextBindings()),\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 {CoreCheckboxHiddenInputDirective} from \"@qualcomm-ui/angular-core/checkbox\"\nimport {useForbiddenFormControlWarning} from \"@qualcomm-ui/angular-core/forms\"\n\nimport {useQdsCheckboxContext} from \"./qds-checkbox-context.service\"\n\n/**\n * Hidden input element used for accessibility and form submissions. Note: do not\n * apply form control bindings like `ngModel` or `formControl` to this element.\n * Apply them to the root element instead.\n */\n@Directive({\n selector: \"input[q-checkbox-hidden-input]\",\n standalone: false,\n})\nexport class CheckboxHiddenInputDirective extends CoreCheckboxHiddenInputDirective {\n protected readonly qdsCheckboxContext = useQdsCheckboxContext()\n\n constructor() {\n super()\n useForbiddenFormControlWarning({\n directive: \"q-checkbox-hidden-input\",\n })\n this.trackBindings.extendWith(\n computed(() => this.qdsCheckboxContext().getHiddenInputBindings()),\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 {CoreCheckboxLabelDirective} from \"@qualcomm-ui/angular-core/checkbox\"\n\nimport {useQdsCheckboxContext} from \"./qds-checkbox-context.service\"\n\n/**\n * An accessible label that is automatically associated with the checkbox.\n */\n@Directive({\n selector: \"[q-checkbox-label]\",\n standalone: false,\n})\nexport class CheckboxLabelDirective extends CoreCheckboxLabelDirective {\n protected readonly qdsCheckboxContext = useQdsCheckboxContext()\n\n constructor() {\n super()\n this.trackBindings.extendWith(\n computed(() => this.qdsCheckboxContext().getLabelBindings()),\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 CoreCheckboxRootDirective,\n provideCheckboxContext,\n} from \"@qualcomm-ui/angular-core/checkbox\"\nimport {normalizeProps} from \"@qualcomm-ui/angular-core/machine\"\nimport type {SignalifyInput} from \"@qualcomm-ui/angular-core/signals\"\nimport {\n createQdsCheckboxApi,\n type QdsCheckboxApiProps,\n type QdsCheckboxSize,\n} from \"@qualcomm-ui/qds-core/checkbox\"\n\nimport {\n provideQdsCheckboxContext,\n QdsCheckboxContextService,\n} from \"./qds-checkbox-context.service\"\n\n/**\n * Groups all parts of the checkbox.\n */\n@Directive({\n providers: [provideCheckboxContext(), provideQdsCheckboxContext()],\n selector: \"[q-checkbox-root]\",\n standalone: false,\n})\nexport class CheckboxRootDirective\n extends CoreCheckboxRootDirective\n implements SignalifyInput<QdsCheckboxApiProps>\n{\n /**\n * The size of the checkbox and its elements. Governs properties like label font\n * size, control size, and indicator size.\n * @default 'md'\n */\n readonly size = input<QdsCheckboxSize | undefined>()\n\n readonly qdsCheckboxService = inject(QdsCheckboxContextService)\n\n override ngOnInit() {\n super.ngOnInit()\n\n this.qdsCheckboxService.init(\n computed(() => createQdsCheckboxApi({size: this.size()}, normalizeProps)),\n )\n\n this.trackBindings.extendWith(\n computed(() => this.qdsCheckboxService.context().getRootBindings()),\n )\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Component, input} from \"@angular/core\"\n\nimport {provideCheckboxContext} from \"@qualcomm-ui/angular-core/checkbox\"\n\nimport {CheckboxRootDirective} from \"./checkbox-root.directive\"\nimport {provideQdsCheckboxContext} from \"./qds-checkbox-context.service\"\n\n@Component({\n providers: [provideCheckboxContext(), provideQdsCheckboxContext()],\n selector: \"[q-checkbox]\",\n standalone: false,\n template: `\n <ng-content select=\"[q-checkbox-hidden-input]\">\n <input q-checkbox-hidden-input />\n </ng-content>\n\n <ng-content select=\"[q-checkbox-control]\">\n <div q-checkbox-control>\n <div q-checkbox-indicator></div>\n </div>\n </ng-content>\n <ng-content select=\"[q-checkbox-label]\">\n @if (label()) {\n <span q-checkbox-label>\n {{ label() }}\n </span>\n }\n </ng-content>\n <ng-content select=\"[q-checkbox-error-text]\">\n @if (errorText()) {\n <div q-checkbox-error-text>\n {{ errorText() }}\n </div>\n }\n </ng-content>\n `,\n})\nexport class CheckboxComponent extends CheckboxRootDirective {\n /**\n * Optional error that describes the checkbox when the field is invalid. This\n * element is automatically associated with the checkbox for accessibility.\n *\n * @remarks\n * To customize the element, provide it using the directive instead:\n *\n * ```angular-html\n * <label q-checkbox>\n * <div q-checkbox-error-text>...</div>\n * </label>\n * ```\n */\n readonly errorText = input<string>()\n\n /**\n * Optional label describing the checkbox. This element is automatically\n * associated with the checkbox for accessibility. If omitted, you should provide\n * an `aria-label` or `aria-labelledby` attribute on the `q-checkbox-hidden-input`\n * element.\n *\n * @remarks\n * To customize the element, provide it using the directive instead:\n *\n * ```angular-html\n * <label q-checkbox>\n * <div q-checkbox-label>...</div>\n * </label>\n * ```\n */\n readonly label = input<string | undefined>()\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 {CheckmarkIconComponent} from \"@qualcomm-ui/angular/checkmark\"\nimport {IconDirective} from \"@qualcomm-ui/angular/icon\"\nimport {QBindDirective} from \"@qualcomm-ui/angular-core/machine\"\n\nimport {CheckboxControlComponent} from \"./checkbox-control.component\"\nimport {CheckboxErrorTextComponent} from \"./checkbox-error-text.component\"\nimport {CheckboxHiddenInputDirective} from \"./checkbox-hidden-input.directive\"\nimport {CheckboxIndicatorComponent} from \"./checkbox-indicator.component\"\nimport {CheckboxLabelDirective} from \"./checkbox-label.directive\"\nimport {CheckboxRootDirective} from \"./checkbox-root.directive\"\nimport {CheckboxComponent} from \"./checkbox.component\"\n\n@NgModule({\n declarations: [\n CheckboxComponent,\n CheckboxRootDirective,\n CheckboxControlComponent,\n CheckboxLabelDirective,\n CheckboxHiddenInputDirective,\n CheckboxIndicatorComponent,\n CheckboxErrorTextComponent,\n ],\n exports: [\n CheckboxComponent,\n CheckboxRootDirective,\n CheckboxControlComponent,\n CheckboxLabelDirective,\n CheckboxHiddenInputDirective,\n CheckboxIndicatorComponent,\n CheckboxErrorTextComponent,\n ],\n imports: [QBindDirective, IconDirective, CheckmarkIconComponent],\n})\nexport class CheckboxModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1.CheckboxIndicatorComponent","i1","i1.CheckboxControlComponent","i2.CheckboxLabelDirective","i3.CheckboxHiddenInputDirective","i4.CheckboxIndicatorComponent","i5.CheckboxErrorTextComponent"],"mappings":";;;;;;;;;;;;AAAA;AACA;AAYM,MAAO,yBAA0B,SAAQ,qBAAqC,CAAA;wGAAvE,yBAAyB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;4GAAzB,yBAAyB,EAAA,CAAA;;4FAAzB,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBADrC;;AAGM,MAAM,CACX,oBAAo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AAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,cAAc,YAFgB,sBAAsB,CAAA,EAAA,CAAA;;4FAEpD,cAAc,EAAA,UAAA,EAAA,CAAA;kBArB1B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ,iBAAiB;wBACjB,qBAAqB;wBACrB,wBAAwB;wBACxB,sBAAsB;wBACtB,4BAA4B;wBAC5B,0BAA0B;wBAC1B,0BAA0B;AAC3B,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,iBAAiB;wBACjB,qBAAqB;wBACrB,wBAAwB;wBACxB,sBAAsB;wBACtB,4BAA4B;wBAC5B,0BAA0B;wBAC1B,0BAA0B;AAC3B,qBAAA;AACD,oBAAA,OAAO,EAAE,CAAC,cAAc,EAAE,aAAa,EAAE,sBAAsB,CAAC;AACjE,iBAAA;;;ACrCD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"qualcomm-ui-angular-checkbox.mjs","sources":["../../src/checkbox/qds-checkbox-context.service.ts","../../src/checkbox/checkbox-indicator.component.ts","../../src/checkbox/checkbox-control.component.ts","../../src/checkbox/checkbox-error-text.component.ts","../../src/checkbox/checkbox-hint.directive.ts","../../src/checkbox/checkbox-hidden-input.directive.ts","../../src/checkbox/checkbox-label.directive.ts","../../src/checkbox/checkbox-root.directive.ts","../../src/checkbox/checkbox.component.ts","../../src/checkbox/checkbox.module.ts","../../src/checkbox/qualcomm-ui-angular-checkbox.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 {QdsCheckboxApi} from \"@qualcomm-ui/qds-core/checkbox\"\n\n@Injectable()\nexport class QdsCheckboxContextService extends BaseApiContextService<QdsCheckboxApi> {}\n\nexport const [\n QDS_CHECKBOX_CONTEXT,\n useQdsCheckboxContext,\n provideQdsCheckboxContext,\n]: ApiContext<QdsCheckboxApi> = createApiContext<QdsCheckboxApi>(\n \"QdsCheckboxContext\",\n QdsCheckboxContextService,\n)\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Component, computed} from \"@angular/core\"\n\nimport {CoreCheckboxIndicatorDirective} from \"@qualcomm-ui/angular-core/checkbox\"\n\nimport {useQdsCheckboxContext} from \"./qds-checkbox-context.service\"\n\n/**\n * Visual indicator rendered within the control that displays the checkbox state\n * (checked, indeterminate, or unchecked).\n */\n@Component({\n selector: \"[q-checkbox-indicator]\",\n standalone: false,\n template: `\n <ng-content>\n <q-checkmark-icon\n [indeterminate]=\"checkboxContext().indeterminate\"\n [size]=\"qdsCheckboxContext().size\"\n />\n </ng-content>\n `,\n})\nexport class CheckboxIndicatorComponent extends CoreCheckboxIndicatorDirective {\n protected readonly qdsCheckboxContext = useQdsCheckboxContext()\n\n constructor() {\n super()\n this.trackBindings.extendWith(\n computed(() => this.qdsCheckboxContext().getIndicatorBindings()),\n )\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Component, computed} from \"@angular/core\"\n\nimport {CoreCheckboxControlDirective} from \"@qualcomm-ui/angular-core/checkbox\"\n\nimport {useQdsCheckboxContext} from \"./qds-checkbox-context.service\"\n\n/**\n * Visual control that wraps the checkbox indicator.\n */\n@Component({\n selector: \"[q-checkbox-control]\",\n standalone: false,\n template: `\n <ng-content>\n <div q-checkbox-indicator></div>\n </ng-content>\n `,\n})\nexport class CheckboxControlComponent extends CoreCheckboxControlDirective {\n protected readonly qdsCheckboxContext = useQdsCheckboxContext()\n\n constructor() {\n super()\n this.trackBindings.extendWith(\n computed(() => this.qdsCheckboxContext().getControlBindings()),\n )\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} from \"@angular/core\"\nimport {CircleAlert} from \"lucide-angular\"\n\nimport {CoreCheckboxErrorTextDirective} from \"@qualcomm-ui/angular-core/checkbox\"\nimport type {LucideIconOrString} from \"@qualcomm-ui/angular-core/lucide\"\n\nimport {useQdsCheckboxContext} from \"./qds-checkbox-context.service\"\n\n/**\n * Error message displayed when the checkbox is invalid.\n */\n@Component({\n selector: \"[q-checkbox-error-text]\",\n standalone: false,\n template: `\n <svg [qIcon]=\"icon()!\" />\n <ng-content />\n `,\n})\nexport class CheckboxErrorTextComponent extends CoreCheckboxErrorTextDirective {\n /**\n * Error indicator icon.\n *\n * @default CircleAlert\n */\n readonly icon = input<LucideIconOrString>(CircleAlert)\n\n protected readonly qdsCheckboxContext = useQdsCheckboxContext()\n\n constructor() {\n super()\n this.trackBindings.extendWith(\n computed(() => this.qdsCheckboxContext().getErrorTextBindings()),\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 {CoreCheckboxHintDirective} from \"@qualcomm-ui/angular-core/checkbox\"\n\nimport {useQdsCheckboxContext} from \"./qds-checkbox-context.service\"\n\n/**\n * Hint text displayed below the checkbox.\n */\n@Directive({\n selector: \"[q-checkbox-hint]\",\n standalone: false,\n})\nexport class CheckboxHintDirective extends CoreCheckboxHintDirective {\n protected readonly qdsCheckboxContext = useQdsCheckboxContext()\n\n constructor() {\n super()\n this.trackBindings.extendWith(\n computed(() => this.qdsCheckboxContext().getHintBindings()),\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 {CoreCheckboxHiddenInputDirective} from \"@qualcomm-ui/angular-core/checkbox\"\nimport {useForbiddenFormControlWarning} from \"@qualcomm-ui/angular-core/forms\"\n\nimport {useQdsCheckboxContext} from \"./qds-checkbox-context.service\"\n\n/**\n * Hidden input element used for accessibility and form submissions. Note: do not\n * apply form control bindings like `ngModel` or `formControl` to this element.\n * Apply them to the root element instead.\n */\n@Directive({\n selector: \"input[q-checkbox-hidden-input]\",\n standalone: false,\n})\nexport class CheckboxHiddenInputDirective extends CoreCheckboxHiddenInputDirective {\n protected readonly qdsCheckboxContext = useQdsCheckboxContext()\n\n constructor() {\n super()\n useForbiddenFormControlWarning({\n directive: \"q-checkbox-hidden-input\",\n })\n this.trackBindings.extendWith(\n computed(() => this.qdsCheckboxContext().getHiddenInputBindings()),\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 {CoreCheckboxLabelDirective} from \"@qualcomm-ui/angular-core/checkbox\"\n\nimport {useQdsCheckboxContext} from \"./qds-checkbox-context.service\"\n\n/**\n * An accessible label that is automatically associated with the checkbox.\n */\n@Directive({\n selector: \"[q-checkbox-label]\",\n standalone: false,\n})\nexport class CheckboxLabelDirective extends CoreCheckboxLabelDirective {\n protected readonly qdsCheckboxContext = useQdsCheckboxContext()\n\n constructor() {\n super()\n this.trackBindings.extendWith(\n computed(() => this.qdsCheckboxContext().getLabelBindings()),\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 CoreCheckboxRootDirective,\n provideCheckboxContext,\n} from \"@qualcomm-ui/angular-core/checkbox\"\nimport {normalizeProps} from \"@qualcomm-ui/angular-core/machine\"\nimport type {SignalifyInput} from \"@qualcomm-ui/angular-core/signals\"\nimport {\n createQdsCheckboxApi,\n type QdsCheckboxApiProps,\n type QdsCheckboxSize,\n} from \"@qualcomm-ui/qds-core/checkbox\"\n\nimport {\n provideQdsCheckboxContext,\n QdsCheckboxContextService,\n} from \"./qds-checkbox-context.service\"\n\n/**\n * Groups all parts of the checkbox.\n */\n@Directive({\n providers: [provideCheckboxContext(), provideQdsCheckboxContext()],\n selector: \"[q-checkbox-root]\",\n standalone: false,\n})\nexport class CheckboxRootDirective\n extends CoreCheckboxRootDirective\n implements SignalifyInput<QdsCheckboxApiProps>\n{\n /**\n * The size of the checkbox and its elements. Governs properties like label font\n * size, control size, and indicator size.\n * @default 'md'\n */\n readonly size = input<QdsCheckboxSize | undefined>()\n\n readonly qdsCheckboxService = inject(QdsCheckboxContextService)\n\n override ngOnInit() {\n super.ngOnInit()\n\n this.qdsCheckboxService.init(\n computed(() => createQdsCheckboxApi({size: this.size()}, normalizeProps)),\n )\n\n this.trackBindings.extendWith(\n computed(() => this.qdsCheckboxService.context().getRootBindings()),\n )\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Component, input} from \"@angular/core\"\n\nimport {provideCheckboxContext} from \"@qualcomm-ui/angular-core/checkbox\"\n\nimport {CheckboxRootDirective} from \"./checkbox-root.directive\"\nimport {provideQdsCheckboxContext} from \"./qds-checkbox-context.service\"\n\n@Component({\n providers: [provideCheckboxContext(), provideQdsCheckboxContext()],\n selector: \"[q-checkbox]\",\n standalone: false,\n template: `\n <ng-content select=\"[q-checkbox-hidden-input]\">\n <input q-checkbox-hidden-input />\n </ng-content>\n\n <ng-content select=\"[q-checkbox-control]\">\n <div q-checkbox-control>\n <div q-checkbox-indicator></div>\n </div>\n </ng-content>\n <ng-content select=\"[q-checkbox-label]\">\n @if (label()) {\n <span q-checkbox-label>\n {{ label() }}\n </span>\n }\n </ng-content>\n <ng-content select=\"[q-checkbox-error-text]\">\n @if (errorText()) {\n <div q-checkbox-error-text>\n {{ errorText() }}\n </div>\n }\n </ng-content>\n <ng-content select=\"[q-checkbox-hint]\">\n @if (hint()) {\n <div q-checkbox-hint>\n {{ hint() }}\n </div>\n }\n </ng-content>\n `,\n})\nexport class CheckboxComponent extends CheckboxRootDirective {\n /**\n * Optional error that describes the checkbox when the field is invalid. This\n * element is automatically associated with the checkbox for accessibility.\n *\n * @remarks\n * To customize the element, provide it using the directive instead:\n *\n * ```angular-html\n * <label q-checkbox>\n * <div q-checkbox-error-text>...</div>\n * </label>\n * ```\n */\n readonly errorText = input<string>()\n\n /**\n * Optional hint text displayed below the checkbox. Hints are hidden when the\n * checkbox is invalid.\n *\n * @remarks\n * To customize the element, provide it using the directive instead:\n *\n * ```angular-html\n * <label q-checkbox>\n * <div q-checkbox-hint>...</div>\n * </label>\n * ```\n */\n readonly hint = input<string>()\n\n /**\n * Optional label describing the checkbox. This element is automatically\n * associated with the checkbox for accessibility. If omitted, you should provide\n * an `aria-label` or `aria-labelledby` attribute on the `q-checkbox-hidden-input`\n * element.\n *\n * @remarks\n * To customize the element, provide it using the directive instead:\n *\n * ```angular-html\n * <label q-checkbox>\n * <div q-checkbox-label>...</div>\n * </label>\n * ```\n */\n readonly label = input<string | undefined>()\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 {CheckmarkIconComponent} from \"@qualcomm-ui/angular/checkmark\"\nimport {IconDirective} from \"@qualcomm-ui/angular/icon\"\nimport {QBindDirective} from \"@qualcomm-ui/angular-core/machine\"\n\nimport {CheckboxControlComponent} from \"./checkbox-control.component\"\nimport {CheckboxErrorTextComponent} from \"./checkbox-error-text.component\"\nimport {CheckboxHiddenInputDirective} from \"./checkbox-hidden-input.directive\"\nimport {CheckboxHintDirective} from \"./checkbox-hint.directive\"\nimport {CheckboxIndicatorComponent} from \"./checkbox-indicator.component\"\nimport {CheckboxLabelDirective} from \"./checkbox-label.directive\"\nimport {CheckboxRootDirective} from \"./checkbox-root.directive\"\nimport {CheckboxComponent} from \"./checkbox.component\"\n\n@NgModule({\n declarations: [\n CheckboxComponent,\n CheckboxRootDirective,\n CheckboxControlComponent,\n CheckboxLabelDirective,\n CheckboxHiddenInputDirective,\n CheckboxHintDirective,\n CheckboxIndicatorComponent,\n CheckboxErrorTextComponent,\n ],\n exports: [\n CheckboxComponent,\n CheckboxRootDirective,\n CheckboxControlComponent,\n CheckboxLabelDirective,\n CheckboxHiddenInputDirective,\n CheckboxHintDirective,\n CheckboxIndicatorComponent,\n CheckboxErrorTextComponent,\n ],\n imports: [QBindDirective, IconDirective, CheckmarkIconComponent],\n})\nexport class CheckboxModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1.CheckboxIndicatorComponent","i1","i1.CheckboxControlComponent","i2.CheckboxLabelDirective","i3.CheckboxHiddenInputDirective","i4.CheckboxHintDirective","i5.CheckboxIndicatorComponent","i6.CheckboxErrorTextComponent"],"mappings":";;;;;;;;;;;;AAAA;AACA;AAYM,MAAO,yBAA0B,SAAQ,qBAAqC,CAAA;wGAAvE,yBAAyB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;4GAAzB,yBAAyB,EAAA,CAAA;;4FAAzB,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBADrC;;AAGM,MAAM,CACX,oBAAoB,EACpB,qBAAqB,EACrB,yBAAyB,EAC1B,GAA+B,gBAAgB,CAC9C,oBAAoB,EACpB,yBAAyB;;ACrB3B;AACA;AAQA;;;AAGG;AAaG,MAAO,0BAA2B,SAAQ,8BAA8B,CAAA;IACzD,kBAAkB,GAAG,qBAAqB,EAAE;AAE/D,IAAA,WAAA,GAAA;AACE,QAAA,KAAK,EAAE;AACP,QAAA,IAAI,CAAC,aAAa,CAAC,UAAU,CAC3B,QAAQ,CAAC,MAAM,IAAI,CAAC,k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rB,wBAAwB;wBACxB,sBAAsB;wBACtB,4BAA4B;wBAC5B,qBAAqB;wBACrB,0BAA0B;wBAC1B,0BAA0B;AAC3B,qBAAA;AACD,oBAAA,OAAO,EAAE,CAAC,cAAc,EAAE,aAAa,EAAE,sBAAsB,CAAC;AACjE,iBAAA;;;ACxCD;;AAEG;;;;"}
|
|
@@ -485,6 +485,14 @@ class ComboboxRootDirective extends CoreComboboxRootDirective {
|
|
|
485
485
|
* {@link https://lucide.dev lucide icon}, positioned at the start of the control element.
|
|
486
486
|
*/
|
|
487
487
|
icon = input(...(ngDevMode ? [undefined, { debugName: "icon" }] : []));
|
|
488
|
+
/**
|
|
489
|
+
* Visual indicator style for selected items. Use "checkbox" for multi-select
|
|
490
|
+
* with always-visible checkboxes on the left, or "checkmark" for a checkmark
|
|
491
|
+
* icon on the right that only appears when selected.
|
|
492
|
+
*
|
|
493
|
+
* @default 'checkmark'
|
|
494
|
+
*/
|
|
495
|
+
selectionIndicator = input("checkmark", ...(ngDevMode ? [{ debugName: "selectionIndicator" }] : []));
|
|
488
496
|
/**
|
|
489
497
|
* The size of the combobox and its elements. Governs properties like font size,
|
|
490
498
|
* item padding, and icon sizes.
|
|
@@ -497,6 +505,7 @@ class ComboboxRootDirective extends CoreComboboxRootDirective {
|
|
|
497
505
|
ngOnInit() {
|
|
498
506
|
this.trackBindings.extendWith(computed(() => this.qdsComboboxService.context().getRootBindings()));
|
|
499
507
|
this.qdsComboboxService.init(computed(() => createQdsSelectApi({
|
|
508
|
+
selectionIndicator: this.selectionIndicator(),
|
|
500
509
|
size: this.size(),
|
|
501
510
|
}, normalizeProps)));
|
|
502
511
|
this.qdsInputService.init(computed(() => createQdsInputApi({
|
|
@@ -506,7 +515,7 @@ class ComboboxRootDirective extends CoreComboboxRootDirective {
|
|
|
506
515
|
super.ngOnInit();
|
|
507
516
|
}
|
|
508
517
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ComboboxRootDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
509
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.16", type: ComboboxRootDirective, isStandalone: false, selector: "[q-combobox-root]", inputs: { icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
|
|
518
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.16", type: ComboboxRootDirective, isStandalone: false, selector: "[q-combobox-root]", inputs: { icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, selectionIndicator: { classPropertyName: "selectionIndicator", publicName: "selectionIndicator", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
|
|
510
519
|
provideComboboxContext(),
|
|
511
520
|
provideQdsComboboxContext(),
|
|
512
521
|
provideQdsInputContext(),
|
|
@@ -525,7 +534,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
525
534
|
selector: "[q-combobox-root]",
|
|
526
535
|
standalone: false,
|
|
527
536
|
}]
|
|
528
|
-
}], propDecorators: { icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }] } });
|
|
537
|
+
}], propDecorators: { icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], selectionIndicator: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectionIndicator", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }] } });
|
|
529
538
|
|
|
530
539
|
// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
|
|
531
540
|
// SPDX-License-Identifier: BSD-3-Clause-Clear
|