@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.
Files changed (37) hide show
  1. package/alert-banner/index.d.ts +176 -0
  2. package/alert-banner/index.d.ts.map +1 -0
  3. package/avatar/index.d.ts +8 -4
  4. package/avatar/index.d.ts.map +1 -1
  5. package/checkbox/index.d.ts +30 -6
  6. package/checkbox/index.d.ts.map +1 -1
  7. package/combobox/index.d.ts +10 -2
  8. package/combobox/index.d.ts.map +1 -1
  9. package/fesm2022/qualcomm-ui-angular-alert-banner.mjs +378 -0
  10. package/fesm2022/qualcomm-ui-angular-alert-banner.mjs.map +1 -0
  11. package/fesm2022/qualcomm-ui-angular-avatar.mjs +8 -3
  12. package/fesm2022/qualcomm-ui-angular-avatar.mjs.map +1 -1
  13. package/fesm2022/qualcomm-ui-angular-checkbox.mjs +59 -5
  14. package/fesm2022/qualcomm-ui-angular-checkbox.mjs.map +1 -1
  15. package/fesm2022/qualcomm-ui-angular-combobox.mjs +11 -2
  16. package/fesm2022/qualcomm-ui-angular-combobox.mjs.map +1 -1
  17. package/fesm2022/qualcomm-ui-angular-inline-notification.mjs +11 -6
  18. package/fesm2022/qualcomm-ui-angular-inline-notification.mjs.map +1 -1
  19. package/fesm2022/qualcomm-ui-angular-number-input.mjs +147 -6
  20. package/fesm2022/qualcomm-ui-angular-number-input.mjs.map +1 -1
  21. package/fesm2022/qualcomm-ui-angular-radio.mjs +107 -18
  22. package/fesm2022/qualcomm-ui-angular-radio.mjs.map +1 -1
  23. package/fesm2022/qualcomm-ui-angular-select.mjs +126 -16
  24. package/fesm2022/qualcomm-ui-angular-select.mjs.map +1 -1
  25. package/fesm2022/qualcomm-ui-angular-switch.mjs +59 -5
  26. package/fesm2022/qualcomm-ui-angular-switch.mjs.map +1 -1
  27. package/inline-notification/index.d.ts +8 -1
  28. package/inline-notification/index.d.ts.map +1 -1
  29. package/number-input/index.d.ts +36 -4
  30. package/number-input/index.d.ts.map +1 -1
  31. package/package.json +8 -4
  32. package/radio/index.d.ts +48 -5
  33. package/radio/index.d.ts.map +1 -1
  34. package/select/index.d.ts +34 -7
  35. package/select/index.d.ts.map +1 -1
  36. package/switch/index.d.ts +29 -5
  37. package/switch/index.d.ts.map +1 -1
@@ -3,7 +3,7 @@ import { Injectable, computed, Directive, Component, input, inject, NgModule } f
3
3
  import { BaseApiContextService, createApiContext, normalizeProps, QBindDirective } from '@qualcomm-ui/angular-core/machine';
4
4
  import * as i1 from '@qualcomm-ui/angular/transitions';
5
5
  import { QuiPreloadDirective } from '@qualcomm-ui/angular/transitions';
6
- import { CoreSwitchThumbDirective, CoreSwitchControlDirective, CoreSwitchErrorTextDirective, CoreSwitchHiddenInputDirective, CoreSwitchLabelDirective, CoreSwitchRootDirective, provideSwitchContext } from '@qualcomm-ui/angular-core/switch';
6
+ import { CoreSwitchThumbDirective, CoreSwitchControlDirective, CoreSwitchErrorTextDirective, CoreSwitchHintDirective, CoreSwitchHiddenInputDirective, CoreSwitchLabelDirective, CoreSwitchRootDirective, provideSwitchContext } from '@qualcomm-ui/angular-core/switch';
7
7
  import { CircleAlert } from 'lucide-angular';
8
8
  import * as i1$1 from '@qualcomm-ui/angular/icon';
9
9
  import { IconDirective } from '@qualcomm-ui/angular/icon';
@@ -102,6 +102,28 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
102
102
  }]
103
103
  }], ctorParameters: () => [], propDecorators: { icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }] } });
104
104
 
105
+ // Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
106
+ // SPDX-License-Identifier: BSD-3-Clause-Clear
107
+ /**
108
+ * Hint text displayed below the switch.
109
+ */
110
+ class SwitchHintDirective extends CoreSwitchHintDirective {
111
+ qdsSwitchContext = useQdsSwitchContext();
112
+ constructor() {
113
+ super();
114
+ this.trackBindings.extendWith(computed(() => this.qdsSwitchContext().getHintBindings()));
115
+ }
116
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: SwitchHintDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
117
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.16", type: SwitchHintDirective, isStandalone: false, selector: "[q-switch-hint]", usesInheritance: true, ngImport: i0 });
118
+ }
119
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: SwitchHintDirective, decorators: [{
120
+ type: Directive,
121
+ args: [{
122
+ selector: "[q-switch-hint]",
123
+ standalone: false,
124
+ }]
125
+ }], ctorParameters: () => [] });
126
+
105
127
  // Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
106
128
  // SPDX-License-Identifier: BSD-3-Clause-Clear
107
129
  class SwitchHiddenInputDirective extends CoreSwitchHiddenInputDirective {
@@ -188,6 +210,20 @@ class SwitchComponent extends SwitchRootDirective {
188
210
  * ```
189
211
  */
190
212
  errorText = input(...(ngDevMode ? [undefined, { debugName: "errorText" }] : []));
213
+ /**
214
+ * Optional hint text displayed below the switch. Hints are hidden when the
215
+ * switch is invalid.
216
+ *
217
+ * @remarks
218
+ * To customize the element, provide it using the directive instead:
219
+ *
220
+ * ```angular-html
221
+ * <label q-switch>
222
+ * <div q-switch-hint>...</div>
223
+ * </label>
224
+ * ```
225
+ */
226
+ hint = input(...(ngDevMode ? [undefined, { debugName: "hint" }] : []));
191
227
  /**
192
228
  * Optional label describing the element. Recommended. This element is
193
229
  * automatically associated with the component's input element for accessibility.
@@ -203,7 +239,7 @@ class SwitchComponent extends SwitchRootDirective {
203
239
  */
204
240
  label = input(...(ngDevMode ? [undefined, { debugName: "label" }] : []));
205
241
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: SwitchComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
206
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: SwitchComponent, isStandalone: false, selector: "[q-switch]", inputs: { errorText: { classPropertyName: "errorText", publicName: "errorText", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null } }, providers: [provideSwitchContext(), provideQdsSwitchContext()], usesInheritance: true, ngImport: i0, template: `
242
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: SwitchComponent, isStandalone: false, selector: "[q-switch]", 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: [provideSwitchContext(), provideQdsSwitchContext()], usesInheritance: true, ngImport: i0, template: `
207
243
  <ng-content select="[q-switch-hidden-input]">
208
244
  <input q-switch-hidden-input />
209
245
  </ng-content>
@@ -226,7 +262,14 @@ class SwitchComponent extends SwitchRootDirective {
226
262
  </div>
227
263
  }
228
264
  </ng-content>
229
- `, isInline: true, dependencies: [{ kind: "component", type: SwitchControlComponent, selector: "[q-switch-control]" }, { kind: "directive", type: SwitchLabelDirective, selector: "[q-switch-label]" }, { kind: "directive", type: SwitchHiddenInputDirective, selector: "[q-switch-hidden-input]" }, { kind: "directive", type: SwitchThumbDirective, selector: "[q-switch-thumb]" }, { kind: "component", type: SwitchErrorTextComponent, selector: "[q-switch-error-text]", inputs: ["icon"] }] });
265
+ <ng-content select="[q-switch-hint]">
266
+ @if (hint()) {
267
+ <div q-switch-hint>
268
+ {{ hint() }}
269
+ </div>
270
+ }
271
+ </ng-content>
272
+ `, isInline: true, dependencies: [{ kind: "component", type: SwitchControlComponent, selector: "[q-switch-control]" }, { kind: "directive", type: SwitchLabelDirective, selector: "[q-switch-label]" }, { kind: "directive", type: SwitchHiddenInputDirective, selector: "[q-switch-hidden-input]" }, { kind: "directive", type: SwitchHintDirective, selector: "[q-switch-hint]" }, { kind: "directive", type: SwitchThumbDirective, selector: "[q-switch-thumb]" }, { kind: "component", type: SwitchErrorTextComponent, selector: "[q-switch-error-text]", inputs: ["icon"] }] });
230
273
  }
231
274
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: SwitchComponent, decorators: [{
232
275
  type: Component,
@@ -257,9 +300,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
257
300
  </div>
258
301
  }
259
302
  </ng-content>
303
+ <ng-content select="[q-switch-hint]">
304
+ @if (hint()) {
305
+ <div q-switch-hint>
306
+ {{ hint() }}
307
+ </div>
308
+ }
309
+ </ng-content>
260
310
  `,
261
311
  }]
262
- }], propDecorators: { errorText: [{ type: i0.Input, args: [{ isSignal: true, alias: "errorText", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }] } });
312
+ }], 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 }] }] } });
263
313
 
264
314
  // Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
265
315
  // SPDX-License-Identifier: BSD-3-Clause-Clear
@@ -270,12 +320,14 @@ class SwitchModule {
270
320
  SwitchControlComponent,
271
321
  SwitchLabelDirective,
272
322
  SwitchHiddenInputDirective,
323
+ SwitchHintDirective,
273
324
  SwitchThumbDirective,
274
325
  SwitchErrorTextComponent], imports: [QBindDirective, IconDirective], exports: [SwitchComponent,
275
326
  SwitchRootDirective,
276
327
  SwitchControlComponent,
277
328
  SwitchLabelDirective,
278
329
  SwitchHiddenInputDirective,
330
+ SwitchHintDirective,
279
331
  SwitchThumbDirective,
280
332
  SwitchErrorTextComponent] });
281
333
  static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: SwitchModule });
@@ -289,6 +341,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
289
341
  SwitchControlComponent,
290
342
  SwitchLabelDirective,
291
343
  SwitchHiddenInputDirective,
344
+ SwitchHintDirective,
292
345
  SwitchThumbDirective,
293
346
  SwitchErrorTextComponent,
294
347
  ],
@@ -298,6 +351,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
298
351
  SwitchControlComponent,
299
352
  SwitchLabelDirective,
300
353
  SwitchHiddenInputDirective,
354
+ SwitchHintDirective,
301
355
  SwitchThumbDirective,
302
356
  SwitchErrorTextComponent,
303
357
  ],
@@ -309,5 +363,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
309
363
  * Generated bundle index. Do not edit.
310
364
  */
311
365
 
312
- export { QDS_SWITCH_CONTEXT, QdsSwitchContextService, SwitchComponent, SwitchControlComponent, SwitchErrorTextComponent, SwitchHiddenInputDirective, SwitchLabelDirective, SwitchModule, SwitchRootDirective, SwitchThumbDirective, provideQdsSwitchContext, useQdsSwitchContext };
366
+ export { QDS_SWITCH_CONTEXT, QdsSwitchContextService, SwitchComponent, SwitchControlComponent, SwitchErrorTextComponent, SwitchHiddenInputDirective, SwitchHintDirective, SwitchLabelDirective, SwitchModule, SwitchRootDirective, SwitchThumbDirective, provideQdsSwitchContext, useQdsSwitchContext };
313
367
  //# sourceMappingURL=qualcomm-ui-angular-switch.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"qualcomm-ui-angular-switch.mjs","sources":["../../src/switch/qds-switch-context.service.ts","../../src/switch/switch-thumb.directive.ts","../../src/switch/switch-control.component.ts","../../src/switch/switch-error-text.component.ts","../../src/switch/switch-hidden-input.directive.ts","../../src/switch/switch-label.directive.ts","../../src/switch/switch-root.directive.ts","../../src/switch/switch.component.ts","../../src/switch/switch.module.ts","../../src/switch/qualcomm-ui-angular-switch.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 {QdsSwitchApi} from \"@qualcomm-ui/qds-core/switch\"\n\n@Injectable()\nexport class QdsSwitchContextService extends BaseApiContextService<QdsSwitchApi> {}\n\nexport const [\n QDS_SWITCH_CONTEXT,\n useQdsSwitchContext,\n provideQdsSwitchContext,\n]: ApiContext<QdsSwitchApi> = createApiContext<QdsSwitchApi>(\n \"QdsSwitchContext\",\n QdsSwitchContextService,\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 {QuiPreloadDirective} from \"@qualcomm-ui/angular/transitions\"\nimport {CoreSwitchThumbDirective} from \"@qualcomm-ui/angular-core/switch\"\n\nimport {useQdsSwitchContext} from \"./qds-switch-context.service\"\n\n@Directive({\n hostDirectives: [QuiPreloadDirective],\n selector: \"[q-switch-thumb]\",\n standalone: false,\n})\nexport class SwitchThumbDirective extends CoreSwitchThumbDirective {\n protected readonly qdsSwitchContext = useQdsSwitchContext()\n\n constructor() {\n super()\n this.trackBindings.extendWith(\n computed(() => this.qdsSwitchContext().getThumbBindings()),\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 {QuiPreloadDirective} from \"@qualcomm-ui/angular/transitions\"\nimport {CoreSwitchControlDirective} from \"@qualcomm-ui/angular-core/switch\"\n\nimport {useQdsSwitchContext} from \"./qds-switch-context.service\"\n\n@Component({\n hostDirectives: [QuiPreloadDirective],\n selector: \"[q-switch-control]\",\n standalone: false,\n template: `\n <ng-content>\n <span q-switch-thumb></span>\n </ng-content>\n `,\n})\nexport class SwitchControlComponent extends CoreSwitchControlDirective {\n protected readonly qdsSwitchContext = useQdsSwitchContext()\n\n constructor() {\n super()\n this.trackBindings.extendWith(\n computed(() => this.qdsSwitchContext().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 type {LucideIconOrString} from \"@qualcomm-ui/angular-core/lucide\"\nimport {CoreSwitchErrorTextDirective} from \"@qualcomm-ui/angular-core/switch\"\n\nimport {useQdsSwitchContext} from \"./qds-switch-context.service\"\n\n@Component({\n selector: \"[q-switch-error-text]\",\n standalone: false,\n template: `\n <svg [qIcon]=\"icon()!\" />\n <ng-content />\n `,\n})\nexport class SwitchErrorTextComponent extends CoreSwitchErrorTextDirective {\n /**\n * Error indicator icon.\n *\n * @default CircleAlert\n */\n readonly icon = input<LucideIconOrString>(CircleAlert)\n\n protected readonly qdsSwitchContext = useQdsSwitchContext()\n\n constructor() {\n super()\n this.trackBindings.extendWith(\n computed(() => this.qdsSwitchContext().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 {useForbiddenFormControlWarning} from \"@qualcomm-ui/angular-core/forms\"\nimport {CoreSwitchHiddenInputDirective} from \"@qualcomm-ui/angular-core/switch\"\n\nimport {useQdsSwitchContext} from \"./qds-switch-context.service\"\n\n@Directive({\n selector: \"[q-switch-hidden-input]\",\n standalone: false,\n})\nexport class SwitchHiddenInputDirective extends CoreSwitchHiddenInputDirective {\n protected readonly qdsSwitchContext = useQdsSwitchContext()\n\n constructor() {\n super()\n this.trackBindings.extendWith(\n computed(() => this.qdsSwitchContext().getHiddenInputBindings()),\n )\n useForbiddenFormControlWarning({\n directive: \"q-switch-hidden-input\",\n rootDirective: \"q-switch\",\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 {CoreSwitchLabelDirective} from \"@qualcomm-ui/angular-core/switch\"\n\nimport {useQdsSwitchContext} from \"./qds-switch-context.service\"\n\n@Directive({\n selector: \"[q-switch-label]\",\n standalone: false,\n})\nexport class SwitchLabelDirective extends CoreSwitchLabelDirective {\n protected readonly qdsSwitchContext = useQdsSwitchContext()\n\n constructor() {\n super()\n this.trackBindings.extendWith(\n computed(() => this.qdsSwitchContext().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 {normalizeProps} from \"@qualcomm-ui/angular-core/machine\"\nimport type {SignalifyInput} from \"@qualcomm-ui/angular-core/signals\"\nimport {\n CoreSwitchRootDirective,\n provideSwitchContext,\n} from \"@qualcomm-ui/angular-core/switch\"\nimport {\n createQdsSwitchApi,\n type QdsSwitchApiProps,\n type QdsSwitchSize,\n} from \"@qualcomm-ui/qds-core/switch\"\n\nimport {\n provideQdsSwitchContext,\n QdsSwitchContextService,\n} from \"./qds-switch-context.service\"\n\n@Directive({\n providers: [provideSwitchContext(), provideQdsSwitchContext()],\n selector: \"[q-switch-root]\",\n standalone: false,\n})\nexport class SwitchRootDirective\n extends CoreSwitchRootDirective\n implements SignalifyInput<QdsSwitchApiProps>\n{\n /**\n * Size of the component and its label.\n *\n * @default \"md\"\n */\n readonly size = input<QdsSwitchSize | undefined>()\n\n readonly qdsSwitchService = inject(QdsSwitchContextService)\n\n override ngOnInit() {\n super.ngOnInit()\n\n this.qdsSwitchService.init(\n computed(() => createQdsSwitchApi({size: this.size()}, normalizeProps)),\n )\n\n this.trackBindings.extendWith(\n computed(() => this.qdsSwitchService.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 {provideSwitchContext} from \"@qualcomm-ui/angular-core/switch\"\n\nimport {provideQdsSwitchContext} from \"./qds-switch-context.service\"\nimport {SwitchRootDirective} from \"./switch-root.directive\"\n\n@Component({\n providers: [provideSwitchContext(), provideQdsSwitchContext()],\n selector: \"[q-switch]\",\n standalone: false,\n template: `\n <ng-content select=\"[q-switch-hidden-input]\">\n <input q-switch-hidden-input />\n </ng-content>\n <ng-content select=\"[q-switch-control]\">\n <div q-switch-control>\n <div q-switch-thumb></div>\n </div>\n </ng-content>\n <ng-content select=\"[q-switch-label]\">\n @if (label()) {\n <span q-switch-label>\n {{ label() }}\n </span>\n }\n </ng-content>\n <ng-content select=\"[q-switch-error-text]\">\n @if (errorText()) {\n <div q-switch-error-text>\n {{ errorText() }}\n </div>\n }\n </ng-content>\n `,\n})\nexport class SwitchComponent extends SwitchRootDirective {\n /**\n * Optional error that describes the switch when the field is invalid. This\n * element is automatically associated with the switch for accessibility.\n *\n * @remarks\n * To customize the element, provide it using the directive instead:\n *\n * ```angular-html\n * <label q-switch>\n * <div q-switch-error-text>...</div>\n * </label>\n * ```\n */\n readonly errorText = input<string>()\n\n /**\n * Optional label describing the element. Recommended. This element is\n * automatically associated with the component's input element for accessibility.\n *\n * @remarks\n * To customize the element, provide it using the directive instead:\n *\n * ```angular-html\n * <label q-switch>\n * <div q-switch-label>...</div>\n * </label>\n * ```\n */\n readonly label = 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 {SwitchControlComponent} from \"./switch-control.component\"\nimport {SwitchErrorTextComponent} from \"./switch-error-text.component\"\nimport {SwitchHiddenInputDirective} from \"./switch-hidden-input.directive\"\nimport {SwitchLabelDirective} from \"./switch-label.directive\"\nimport {SwitchRootDirective} from \"./switch-root.directive\"\nimport {SwitchThumbDirective} from \"./switch-thumb.directive\"\nimport {SwitchComponent} from \"./switch.component\"\n\n@NgModule({\n declarations: [\n SwitchComponent,\n SwitchRootDirective,\n SwitchControlComponent,\n SwitchLabelDirective,\n SwitchHiddenInputDirective,\n SwitchThumbDirective,\n SwitchErrorTextComponent,\n ],\n exports: [\n SwitchComponent,\n SwitchRootDirective,\n SwitchControlComponent,\n SwitchLabelDirective,\n SwitchHiddenInputDirective,\n SwitchThumbDirective,\n SwitchErrorTextComponent,\n ],\n imports: [QBindDirective, IconDirective],\n})\nexport class SwitchModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i2.SwitchThumbDirective","i1","i1.SwitchControlComponent","i2.SwitchLabelDirective","i3.SwitchHiddenInputDirective","i4.SwitchThumbDirective","i5.SwitchErrorTextComponent"],"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;;ACrBzB;AACA;AAcM,MAAO,oBAAqB,SAAQ,wBAAwB,CAAA;IAC7C,gBAAgB,GAAG,mBAAmB,E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AAA;;;ACpCD;;AAEG;;;;"}
1
+ {"version":3,"file":"qualcomm-ui-angular-switch.mjs","sources":["../../src/switch/qds-switch-context.service.ts","../../src/switch/switch-thumb.directive.ts","../../src/switch/switch-control.component.ts","../../src/switch/switch-error-text.component.ts","../../src/switch/switch-hint.directive.ts","../../src/switch/switch-hidden-input.directive.ts","../../src/switch/switch-label.directive.ts","../../src/switch/switch-root.directive.ts","../../src/switch/switch.component.ts","../../src/switch/switch.module.ts","../../src/switch/qualcomm-ui-angular-switch.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 {QdsSwitchApi} from \"@qualcomm-ui/qds-core/switch\"\n\n@Injectable()\nexport class QdsSwitchContextService extends BaseApiContextService<QdsSwitchApi> {}\n\nexport const [\n QDS_SWITCH_CONTEXT,\n useQdsSwitchContext,\n provideQdsSwitchContext,\n]: ApiContext<QdsSwitchApi> = createApiContext<QdsSwitchApi>(\n \"QdsSwitchContext\",\n QdsSwitchContextService,\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 {QuiPreloadDirective} from \"@qualcomm-ui/angular/transitions\"\nimport {CoreSwitchThumbDirective} from \"@qualcomm-ui/angular-core/switch\"\n\nimport {useQdsSwitchContext} from \"./qds-switch-context.service\"\n\n@Directive({\n hostDirectives: [QuiPreloadDirective],\n selector: \"[q-switch-thumb]\",\n standalone: false,\n})\nexport class SwitchThumbDirective extends CoreSwitchThumbDirective {\n protected readonly qdsSwitchContext = useQdsSwitchContext()\n\n constructor() {\n super()\n this.trackBindings.extendWith(\n computed(() => this.qdsSwitchContext().getThumbBindings()),\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 {QuiPreloadDirective} from \"@qualcomm-ui/angular/transitions\"\nimport {CoreSwitchControlDirective} from \"@qualcomm-ui/angular-core/switch\"\n\nimport {useQdsSwitchContext} from \"./qds-switch-context.service\"\n\n@Component({\n hostDirectives: [QuiPreloadDirective],\n selector: \"[q-switch-control]\",\n standalone: false,\n template: `\n <ng-content>\n <span q-switch-thumb></span>\n </ng-content>\n `,\n})\nexport class SwitchControlComponent extends CoreSwitchControlDirective {\n protected readonly qdsSwitchContext = useQdsSwitchContext()\n\n constructor() {\n super()\n this.trackBindings.extendWith(\n computed(() => this.qdsSwitchContext().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 type {LucideIconOrString} from \"@qualcomm-ui/angular-core/lucide\"\nimport {CoreSwitchErrorTextDirective} from \"@qualcomm-ui/angular-core/switch\"\n\nimport {useQdsSwitchContext} from \"./qds-switch-context.service\"\n\n@Component({\n selector: \"[q-switch-error-text]\",\n standalone: false,\n template: `\n <svg [qIcon]=\"icon()!\" />\n <ng-content />\n `,\n})\nexport class SwitchErrorTextComponent extends CoreSwitchErrorTextDirective {\n /**\n * Error indicator icon.\n *\n * @default CircleAlert\n */\n readonly icon = input<LucideIconOrString>(CircleAlert)\n\n protected readonly qdsSwitchContext = useQdsSwitchContext()\n\n constructor() {\n super()\n this.trackBindings.extendWith(\n computed(() => this.qdsSwitchContext().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 {CoreSwitchHintDirective} from \"@qualcomm-ui/angular-core/switch\"\n\nimport {useQdsSwitchContext} from \"./qds-switch-context.service\"\n\n/**\n * Hint text displayed below the switch.\n */\n@Directive({\n selector: \"[q-switch-hint]\",\n standalone: false,\n})\nexport class SwitchHintDirective extends CoreSwitchHintDirective {\n protected readonly qdsSwitchContext = useQdsSwitchContext()\n\n constructor() {\n super()\n this.trackBindings.extendWith(\n computed(() => this.qdsSwitchContext().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 {useForbiddenFormControlWarning} from \"@qualcomm-ui/angular-core/forms\"\nimport {CoreSwitchHiddenInputDirective} from \"@qualcomm-ui/angular-core/switch\"\n\nimport {useQdsSwitchContext} from \"./qds-switch-context.service\"\n\n@Directive({\n selector: \"[q-switch-hidden-input]\",\n standalone: false,\n})\nexport class SwitchHiddenInputDirective extends CoreSwitchHiddenInputDirective {\n protected readonly qdsSwitchContext = useQdsSwitchContext()\n\n constructor() {\n super()\n this.trackBindings.extendWith(\n computed(() => this.qdsSwitchContext().getHiddenInputBindings()),\n )\n useForbiddenFormControlWarning({\n directive: \"q-switch-hidden-input\",\n rootDirective: \"q-switch\",\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 {CoreSwitchLabelDirective} from \"@qualcomm-ui/angular-core/switch\"\n\nimport {useQdsSwitchContext} from \"./qds-switch-context.service\"\n\n@Directive({\n selector: \"[q-switch-label]\",\n standalone: false,\n})\nexport class SwitchLabelDirective extends CoreSwitchLabelDirective {\n protected readonly qdsSwitchContext = useQdsSwitchContext()\n\n constructor() {\n super()\n this.trackBindings.extendWith(\n computed(() => this.qdsSwitchContext().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 {normalizeProps} from \"@qualcomm-ui/angular-core/machine\"\nimport type {SignalifyInput} from \"@qualcomm-ui/angular-core/signals\"\nimport {\n CoreSwitchRootDirective,\n provideSwitchContext,\n} from \"@qualcomm-ui/angular-core/switch\"\nimport {\n createQdsSwitchApi,\n type QdsSwitchApiProps,\n type QdsSwitchSize,\n} from \"@qualcomm-ui/qds-core/switch\"\n\nimport {\n provideQdsSwitchContext,\n QdsSwitchContextService,\n} from \"./qds-switch-context.service\"\n\n@Directive({\n providers: [provideSwitchContext(), provideQdsSwitchContext()],\n selector: \"[q-switch-root]\",\n standalone: false,\n})\nexport class SwitchRootDirective\n extends CoreSwitchRootDirective\n implements SignalifyInput<QdsSwitchApiProps>\n{\n /**\n * Size of the component and its label.\n *\n * @default \"md\"\n */\n readonly size = input<QdsSwitchSize | undefined>()\n\n readonly qdsSwitchService = inject(QdsSwitchContextService)\n\n override ngOnInit() {\n super.ngOnInit()\n\n this.qdsSwitchService.init(\n computed(() => createQdsSwitchApi({size: this.size()}, normalizeProps)),\n )\n\n this.trackBindings.extendWith(\n computed(() => this.qdsSwitchService.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 {provideSwitchContext} from \"@qualcomm-ui/angular-core/switch\"\n\nimport {provideQdsSwitchContext} from \"./qds-switch-context.service\"\nimport {SwitchRootDirective} from \"./switch-root.directive\"\n\n@Component({\n providers: [provideSwitchContext(), provideQdsSwitchContext()],\n selector: \"[q-switch]\",\n standalone: false,\n template: `\n <ng-content select=\"[q-switch-hidden-input]\">\n <input q-switch-hidden-input />\n </ng-content>\n <ng-content select=\"[q-switch-control]\">\n <div q-switch-control>\n <div q-switch-thumb></div>\n </div>\n </ng-content>\n <ng-content select=\"[q-switch-label]\">\n @if (label()) {\n <span q-switch-label>\n {{ label() }}\n </span>\n }\n </ng-content>\n <ng-content select=\"[q-switch-error-text]\">\n @if (errorText()) {\n <div q-switch-error-text>\n {{ errorText() }}\n </div>\n }\n </ng-content>\n <ng-content select=\"[q-switch-hint]\">\n @if (hint()) {\n <div q-switch-hint>\n {{ hint() }}\n </div>\n }\n </ng-content>\n `,\n})\nexport class SwitchComponent extends SwitchRootDirective {\n /**\n * Optional error that describes the switch when the field is invalid. This\n * element is automatically associated with the switch for accessibility.\n *\n * @remarks\n * To customize the element, provide it using the directive instead:\n *\n * ```angular-html\n * <label q-switch>\n * <div q-switch-error-text>...</div>\n * </label>\n * ```\n */\n readonly errorText = input<string>()\n\n /**\n * Optional hint text displayed below the switch. Hints are hidden when the\n * switch is invalid.\n *\n * @remarks\n * To customize the element, provide it using the directive instead:\n *\n * ```angular-html\n * <label q-switch>\n * <div q-switch-hint>...</div>\n * </label>\n * ```\n */\n readonly hint = input<string>()\n\n /**\n * Optional label describing the element. Recommended. This element is\n * automatically associated with the component's input element for accessibility.\n *\n * @remarks\n * To customize the element, provide it using the directive instead:\n *\n * ```angular-html\n * <label q-switch>\n * <div q-switch-label>...</div>\n * </label>\n * ```\n */\n readonly label = 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 {SwitchControlComponent} from \"./switch-control.component\"\nimport {SwitchErrorTextComponent} from \"./switch-error-text.component\"\nimport {SwitchHiddenInputDirective} from \"./switch-hidden-input.directive\"\nimport {SwitchHintDirective} from \"./switch-hint.directive\"\nimport {SwitchLabelDirective} from \"./switch-label.directive\"\nimport {SwitchRootDirective} from \"./switch-root.directive\"\nimport {SwitchThumbDirective} from \"./switch-thumb.directive\"\nimport {SwitchComponent} from \"./switch.component\"\n\n@NgModule({\n declarations: [\n SwitchComponent,\n SwitchRootDirective,\n SwitchControlComponent,\n SwitchLabelDirective,\n SwitchHiddenInputDirective,\n SwitchHintDirective,\n SwitchThumbDirective,\n SwitchErrorTextComponent,\n ],\n exports: [\n SwitchComponent,\n SwitchRootDirective,\n SwitchControlComponent,\n SwitchLabelDirective,\n SwitchHiddenInputDirective,\n SwitchHintDirective,\n SwitchThumbDirective,\n SwitchErrorTextComponent,\n ],\n imports: [QBindDirective, IconDirective],\n})\nexport class SwitchModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i2.SwitchThumbDirective","i1","i1.SwitchControlComponent","i2.SwitchLabelDirective","i3.SwitchHiddenInputDirective","i4.SwitchHintDirective","i5.SwitchThumbDirective","i6.SwitchErrorTextComponent"],"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;;ACrBzB;AACA;AAcM,MAAO,oBAAqB,SAAQ,wBAAwB,CAAA;IAC7C,gBAAgB,GAAG,mBAAmB,EAAE;AAE3D,IAAA,WAAA,GAAA;AACE,QAAA,KAAK,EAAE;AACP,QAAA,IAAI,CAAC,aAAa,CAAC,UAAU,CAC3B,QAAQ,CAAC,MAAM,IAAI,CAAC,gBAAgB,EAAE,CAAC,gBAAgB,EAAE,CAAC,CAC3D;IACH;wGARW,oBAAoB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,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A,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,YAAY,iBArBrB,eAAe;YACf,mBAAmB;YACnB,sBAAsB;YACtB,oBAAoB;YACpB,0BAA0B;YAC1B,mBAAmB;YACnB,oBAAoB;AACpB,YAAA,wBAAwB,CAAA,EAAA,OAAA,EAAA,CAYhB,cAAc,EAAE,aAAa,aATrC,eAAe;YACf,mBAAmB;YACnB,sBAAsB;YACtB,oBAAoB;YACpB,0BAA0B;YAC1B,mBAAmB;YACnB,oBAAoB;YACpB,wBAAwB,CAAA,EAAA,CAAA;yGAIf,YAAY,EAAA,CAAA;;4FAAZ,YAAY,EAAA,UAAA,EAAA,CAAA;kBAvBxB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ,eAAe;wBACf,mBAAmB;wBACnB,sBAAsB;wBACtB,oBAAoB;wBACpB,0BAA0B;wBAC1B,mBAAmB;wBACnB,oBAAoB;wBACpB,wBAAwB;AACzB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,eAAe;wBACf,mBAAmB;wBACnB,sBAAsB;wBACtB,oBAAoB;wBACpB,0BAA0B;wBAC1B,mBAAmB;wBACnB,oBAAoB;wBACpB,wBAAwB;AACzB,qBAAA;AACD,oBAAA,OAAO,EAAE,CAAC,cAAc,EAAE,aAAa,CAAC;AACzC,iBAAA;;;ACvCD;;AAEG;;;;"}
@@ -35,13 +35,20 @@ declare class InlineNotificationDescriptionDirective extends CoreInlineNotificat
35
35
  }
36
36
 
37
37
  declare class InlineNotificationIconDirective extends CoreInlineNotificationIconDirective {
38
+ /**
39
+ * Override the icon displayed in the notification. When this input is omitted,
40
+ * the icon is determined by the emphasis prop.
41
+ */
42
+ readonly icon: i0.InputSignal<readonly (readonly [string, {
43
+ [key: string]: string | number;
44
+ }])[] | undefined>;
38
45
  protected readonly qdsContext: () => _qualcomm_ui_qds_core_inline_notification.QdsNotificationApi;
39
46
  protected readonly resolvedIcon: i0.Signal<readonly (readonly [string, {
40
47
  [key: string]: string | number;
41
48
  }])[] | undefined>;
42
49
  constructor();
43
50
  static ɵfac: i0.ɵɵFactoryDeclaration<InlineNotificationIconDirective, never>;
44
- static ɵcmp: i0.ɵɵComponentDeclaration<InlineNotificationIconDirective, "[q-inline-notification-icon]", never, {}, {}, never, ["*"], false, never>;
51
+ static ɵcmp: i0.ɵɵComponentDeclaration<InlineNotificationIconDirective, "[q-inline-notification-icon]", never, { "icon": { "alias": "icon"; "required": false; "isSignal": true; }; }, {}, never, ["*"], false, never>;
45
52
  }
46
53
 
47
54
  declare class InlineNotificationLabelDirective extends CoreInlineNotificationLabelDirective {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sources":["../../src/inline-notification/inline-notification-action.directive.ts","../../src/inline-notification/inline-notification-close-button.directive.ts","../../src/inline-notification/inline-notification-description.directive.ts","../../src/inline-notification/inline-notification-icon.directive.ts","../../src/inline-notification/inline-notification-label.directive.ts","../../src/inline-notification/qds-inline-notification-context.service.ts","../../src/inline-notification/inline-notification-root.directive.ts","../../src/inline-notification/inline-notification.directive.ts","../../src/inline-notification/inline-notification.module.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null],"names":["_angular_core"],"mappings":";;;;;;;;;;;;;;AASA,cAAA,iCAAA,SAAA,qCAAA;AAKE,yCAA6B,yCAAA,CAAA,kBAAA;;;;AAQ9B;;ACRD,cAAA,sCAAA,SAAA,2CAAA;AAYE,4CAAsCA,EAAA,QAAA,wCAAA,CAAA,sBAAA;AAKtC,yCAA6B,yCAAA,CAAA,kBAAA;;;;AAa9B;;ACnCD,cAAA,sCAAA,SAAA,0CAAA;AAKE,yCAA6B,yCAAA,CAAA,kBAAA;;;;AAQ9B;;ACFD,cAAA,+BAAA,SAAA,mCAAA;AAcE,yCAA6B,yCAAA,CAAA,kBAAA;qCAEEA,EAAA,CAAA,MAAA;;AAE7B;;;;AAQH;;ACrCD,cAAA,gCAAA,SAAA,oCAAA;AAKE,yCAA6B,yCAAA,CAAA,kBAAA;;;;AAQ9B;;ACVD,cAAA,mCAAA,SAAA,qBAAA,CAAA,kBAAA;;;AACqG;AAErG,cAAA,+BAAA,EACiCA,EAAA,CAAA,cAAA,OAAA,kBAAA;AAAA,cAC/B,2EAA+B,iCAAA,CAAA,cAAA,0DAAA,kBAAA,iBAAA,kBAAA;AAAA,cAC/B;;ACKF,cAAA,+BAAA,SAAA,mCAAA,YAAA,cAAA,CAAA,uBAAA,GAAA,MAAA;AAYE;;;;AAIG;uBACcA,EAAA,CAAA,WAAA,CAAA,uBAAA;AAEjB;;;;;;AAMG;0BACiBA,EAAA,CAAA,WAAA,CAAA,0BAAA;AAEpB,qDAAA,mCAAA;;;;;AAyBD;;ACjED,cAAA,2BAAA,SAAA,+BAAA;AAkCE;;;;;;;;AAQG;0BACiBA,EAAA,CAAA,WAAA;AAEpB;;;;;;;;;;AAUG;0BACiBA,EAAA,CAAA,wBAAA,sBAAA,UAAA;AAIpB;;;;;;;;AAQG;oBACWA,EAAA,CAAA,WAAA;;;AACf;;AChED,cAAA,wBAAA;;;;AAqBwC;;;;"}
1
+ {"version":3,"file":"index.d.ts","sources":["../../src/inline-notification/inline-notification-action.directive.ts","../../src/inline-notification/inline-notification-close-button.directive.ts","../../src/inline-notification/inline-notification-description.directive.ts","../../src/inline-notification/inline-notification-icon.directive.ts","../../src/inline-notification/inline-notification-label.directive.ts","../../src/inline-notification/qds-inline-notification-context.service.ts","../../src/inline-notification/inline-notification-root.directive.ts","../../src/inline-notification/inline-notification.directive.ts","../../src/inline-notification/inline-notification.module.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null],"names":["_angular_core"],"mappings":";;;;;;;;;;;;;;AASA,cAAA,iCAAA,SAAA,qCAAA;AAKE,yCAA6B,yCAAA,CAAA,kBAAA;;;;AAQ9B;;ACRD,cAAA,sCAAA,SAAA,2CAAA;AAYE,4CAAsCA,EAAA,QAAA,wCAAA,CAAA,sBAAA;AAKtC,yCAA6B,yCAAA,CAAA,kBAAA;;;;AAa9B;;ACnCD,cAAA,sCAAA,SAAA,0CAAA;AAKE,yCAA6B,yCAAA,CAAA,kBAAA;;;;AAQ9B;;ACID,cAAA,+BAAA,SAAA,mCAAA;AAcE;;;AAGG;AACH,mBAAaA,EAAA,CAAA,WAAA;;AAAsB;AAEnC,yCAA6B,yCAAA,CAAA,kBAAA;qCAEEA,EAAA,CAAA,MAAA;;AAE7B;;;;AAQH;;ACjDD,cAAA,gCAAA,SAAA,oCAAA;AAKE,yCAA6B,yCAAA,CAAA,kBAAA;;;;AAQ9B;;ACVD,cAAA,mCAAA,SAAA,qBAAA,CAAA,kBAAA;;;AACqG;AAErG,cAAA,+BAAA,EACiCA,EAAA,CAAA,cAAA,OAAA,kBAAA;AAAA,cAC/B,2EAA+B,iCAAA,CAAA,cAAA,0DAAA,kBAAA,iBAAA,kBAAA;AAAA,cAC/B;;ACKF,cAAA,+BAAA,SAAA,mCAAA,YAAA,cAAA,CAAA,uBAAA,GAAA,MAAA;AAYE;;;;AAIG;uBACcA,EAAA,CAAA,WAAA,CAAA,uBAAA;AAEjB;;;;;;AAMG;0BACiBA,EAAA,CAAA,WAAA,CAAA,0BAAA;AAEpB,qDAAA,mCAAA;;;;;AAyBD;;ACjED,cAAA,2BAAA,SAAA,+BAAA;AAkCE;;;;;;;;AAQG;0BACiBA,EAAA,CAAA,WAAA;AAEpB;;;;;;;;;;AAUG;0BACiBA,EAAA,CAAA,wBAAA,sBAAA,UAAA;AAIpB;;;;;;;;AAQG;oBACWA,EAAA,CAAA,WAAA;;;AACf;;AChED,cAAA,wBAAA;;;;AAqBwC;;;;"}
@@ -1,3 +1,5 @@
1
+ import * as _qualcomm_ui_core_number_input from '@qualcomm-ui/core/number-input';
2
+ export { UnitOption } from '@qualcomm-ui/core/number-input';
1
3
  import * as _qualcomm_ui_qds_core_number_input from '@qualcomm-ui/qds-core/number-input';
2
4
  import { QdsNumberInputApi, QdsNumberInputApiProps } from '@qualcomm-ui/qds-core/number-input';
3
5
  import { CoreNumberInputControlDirective, CoreNumberInputDecrementTriggerDirective, CoreNumberInputErrorIndicatorDirective, CoreNumberInputErrorTextDirective, CoreNumberInputHintDirective, CoreNumberInputIncrementTriggerDirective, CoreNumberInputInputGroupDirective, CoreNumberInputInputDirective, CoreNumberInputLabelDirective, CoreNumberInputRootDirective } from '@qualcomm-ui/angular-core/number-input';
@@ -14,7 +16,14 @@ import { QdsInputSize } from '@qualcomm-ui/qds-core/input';
14
16
  import { SignalifyInput } from '@qualcomm-ui/angular-core/signals';
15
17
  import * as _qualcomm_ui_angular_core_machine from '@qualcomm-ui/angular-core/machine';
16
18
  import { BaseApiContextService } from '@qualcomm-ui/angular-core/machine';
17
- import * as i13 from '@qualcomm-ui/angular/icon';
19
+ import * as _qualcomm_ui_utils_direction from '@qualcomm-ui/utils/direction';
20
+ import * as _qualcomm_ui_utils_attributes from '@qualcomm-ui/utils/attributes';
21
+ import * as _qualcomm_ui_core_menu from '@qualcomm-ui/core/menu';
22
+ import * as i16 from '@qualcomm-ui/angular/menu';
23
+ import { QdsMenuContextService } from '@qualcomm-ui/angular/menu';
24
+ import { CoreMenuRootDirective } from '@qualcomm-ui/angular-core/menu';
25
+ import * as i14 from '@qualcomm-ui/angular/icon';
26
+ import * as i17 from '@qualcomm-ui/angular-core/portal';
18
27
 
19
28
  /**
20
29
  * @remarks
@@ -84,7 +93,7 @@ declare class NumberInputInputGroupDirective extends CoreNumberInputInputGroupDi
84
93
  protected inputGroupContext: _qualcomm_ui_angular_input.UseInputGroupReturn;
85
94
  constructor();
86
95
  static ɵfac: i0.ɵɵFactoryDeclaration<NumberInputInputGroupDirective, never>;
87
- static ɵcmp: i0.ɵɵComponentDeclaration<NumberInputInputGroupDirective, "[q-number-input-input-group]", never, {}, {}, never, ["[q-input-start-icon]", "*", "[q-input-end-icon]"], false, never>;
96
+ static ɵcmp: i0.ɵɵComponentDeclaration<NumberInputInputGroupDirective, "[q-number-input-input-group]", never, {}, {}, never, ["q-number-input-unit-select", "[q-input-start-icon]", "*", "[q-input-end-icon]"], false, never>;
88
97
  }
89
98
 
90
99
  declare class NumberInputInputDirective extends CoreNumberInputInputDirective {
@@ -157,6 +166,29 @@ declare class NumberInputRootDirective extends CoreNumberInputRootDirective impl
157
166
  static ɵdir: i0.ɵɵDirectiveDeclaration<NumberInputRootDirective, "[q-number-input-root]", never, { "endIcon": { "alias": "endIcon"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "startIcon": { "alias": "startIcon"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
158
167
  }
159
168
 
169
+ declare class NumberInputUnitSelectComponent extends CoreMenuRootDirective implements OnInit {
170
+ protected readonly numberInputContext: () => _qualcomm_ui_core_number_input.NumberInputApi;
171
+ protected readonly qdsNumberInputContext: () => _qualcomm_ui_qds_core_number_input.QdsNumberInputApi;
172
+ protected readonly qdsMenuService: QdsMenuContextService;
173
+ protected readonly menuContext: () => _qualcomm_ui_core_menu.MenuApi;
174
+ protected readonly unitSelectBindings: i0.Signal<{
175
+ className: "qui-number-input__unit-select";
176
+ "data-size": _qualcomm_ui_qds_core_input.QdsInputSize;
177
+ "data-disabled": _qualcomm_ui_utils_attributes.BooleanDataAttr;
178
+ "data-part": "unit-select";
179
+ "data-readonly": _qualcomm_ui_utils_attributes.BooleanDataAttr;
180
+ disabled: boolean | undefined;
181
+ type: "button";
182
+ dir: _qualcomm_ui_utils_direction.Direction;
183
+ "data-scope": "number-input";
184
+ }>;
185
+ protected readonly selectedLabel: i0.Signal<string>;
186
+ protected onUnitChange(value: string | undefined): void;
187
+ ngOnInit(): void;
188
+ static ɵfac: i0.ɵɵFactoryDeclaration<NumberInputUnitSelectComponent, never>;
189
+ static ɵcmp: i0.ɵɵComponentDeclaration<NumberInputUnitSelectComponent, "q-number-input-unit-select", never, {}, {}, never, never, false, never>;
190
+ }
191
+
160
192
  declare class NumberInputComponent extends NumberInputRootDirective {
161
193
  /**
162
194
  * Optional error that describes the element when {@link invalid} is true.
@@ -208,9 +240,9 @@ declare class NumberInputComponent extends NumberInputRootDirective {
208
240
 
209
241
  declare class NumberInputModule {
210
242
  static ɵfac: i0.ɵɵFactoryDeclaration<NumberInputModule, never>;
211
- static ɵmod: i0.ɵɵNgModuleDeclaration<NumberInputModule, [typeof NumberInputControlDirective, typeof NumberInputErrorTextDirective, typeof NumberInputHintDirective, typeof NumberInputInputDirective, typeof NumberInputInputGroupDirective, typeof NumberInputLabelDirective, typeof NumberInputErrorIndicatorDirective, typeof NumberInputRootDirective, typeof NumberInputDecrementTriggerDirective, typeof NumberInputIncrementTriggerDirective, typeof NumberInputComponent], [typeof _qualcomm_ui_angular_core_machine.QBindDirective, typeof i13.IconDirective, typeof _qualcomm_ui_angular_input.InputStartIconComponent, typeof _qualcomm_ui_angular_input.InputEndIconComponent], [typeof NumberInputControlDirective, typeof NumberInputErrorTextDirective, typeof NumberInputHintDirective, typeof NumberInputInputDirective, typeof NumberInputInputGroupDirective, typeof NumberInputLabelDirective, typeof NumberInputErrorIndicatorDirective, typeof NumberInputRootDirective, typeof NumberInputDecrementTriggerDirective, typeof NumberInputIncrementTriggerDirective, typeof NumberInputComponent]>;
243
+ static ɵmod: i0.ɵɵNgModuleDeclaration<NumberInputModule, [typeof NumberInputControlDirective, typeof NumberInputErrorTextDirective, typeof NumberInputHintDirective, typeof NumberInputInputDirective, typeof NumberInputInputGroupDirective, typeof NumberInputLabelDirective, typeof NumberInputErrorIndicatorDirective, typeof NumberInputRootDirective, typeof NumberInputDecrementTriggerDirective, typeof NumberInputIncrementTriggerDirective, typeof NumberInputUnitSelectComponent, typeof NumberInputComponent], [typeof _qualcomm_ui_angular_core_machine.QBindDirective, typeof i14.IconDirective, typeof _qualcomm_ui_angular_input.InputStartIconComponent, typeof _qualcomm_ui_angular_input.InputEndIconComponent, typeof i16.MenuModule, typeof i17.PortalDirective], [typeof NumberInputControlDirective, typeof NumberInputErrorTextDirective, typeof NumberInputHintDirective, typeof NumberInputInputDirective, typeof NumberInputInputGroupDirective, typeof NumberInputLabelDirective, typeof NumberInputErrorIndicatorDirective, typeof NumberInputRootDirective, typeof NumberInputDecrementTriggerDirective, typeof NumberInputIncrementTriggerDirective, typeof NumberInputUnitSelectComponent, typeof NumberInputComponent]>;
212
244
  static ɵinj: i0.ɵɵInjectorDeclaration<NumberInputModule>;
213
245
  }
214
246
 
215
- export { NumberInputComponent, NumberInputControlDirective, NumberInputDecrementTriggerDirective, NumberInputErrorIndicatorDirective, NumberInputErrorTextDirective, NumberInputHintDirective, NumberInputIncrementTriggerDirective, NumberInputInputDirective, NumberInputInputGroupDirective, NumberInputLabelDirective, NumberInputModule, NumberInputRootDirective, QDS_NUMBER_INPUT_CONTEXT, QdsNumberInputContextService, provideQdsNumberInputContext, useQdsNumberInputContext };
247
+ export { NumberInputComponent, NumberInputControlDirective, NumberInputDecrementTriggerDirective, NumberInputErrorIndicatorDirective, NumberInputErrorTextDirective, NumberInputHintDirective, NumberInputIncrementTriggerDirective, NumberInputInputDirective, NumberInputInputGroupDirective, NumberInputLabelDirective, NumberInputModule, NumberInputRootDirective, NumberInputUnitSelectComponent, QDS_NUMBER_INPUT_CONTEXT, QdsNumberInputContextService, provideQdsNumberInputContext, useQdsNumberInputContext };
216
248
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sources":["../../src/number-input/number-input-control.directive.ts","../../src/number-input/number-input-decrement-trigger.directive.ts","../../src/number-input/number-input-error-indicator.directive.ts","../../src/number-input/number-input-error-text.directive.ts","../../src/number-input/number-input-hint.directive.ts","../../src/number-input/number-input-increment-trigger.directive.ts","../../src/number-input/number-input-input-group.directive.ts","../../src/number-input/number-input-input.directive.ts","../../src/number-input/number-input-label.directive.ts","../../src/number-input/qds-number-input-context.service.ts","../../src/number-input/number-input-root.directive.ts","../../src/number-input/number-input.component.ts","../../src/number-input/number-input.module.ts"],"sourcesContent":[null,null,null,null,null,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;AAAA,cACxB;;ACUF,cAAA,wBAAA,SAAA,4BAAA,YAAA,cAAA,CAAA,sBAAA,GAAA,cAAA,CAAA,uBAAA,GAAA,MAAA;AAgBE;;;;;;;;;;;;AAYG;AACH,sBAAgBA,EAAA,CAAA,WAAA;;AAA2C;AAE3D;;;;;AAKG;mBACUA,EAAA,CAAA,WAAA,CAAA,YAAA;AAEb;;;;;;;;;;;;AAYG;AACH,wBAAkBA,EAAA,CAAA,WAAA;;AAA2C;;;;;;;AAkC9D;;ACvGD,cAAA,oBAAA,SAAA,wBAAA;AA2CE;;;;;;;;;;AAUG;wBACeA,EAAA,CAAA,WAAA;AAElB;;;;;;;;;;;AAWG;mBACUA,EAAA,CAAA,WAAA;AAEb;;;;;;;;;;;;AAYG;oBACWA,EAAA,CAAA,WAAA;AAEd;;;AAGG;0BACiBA,EAAA,CAAA,WAAA;;;AACrB;;AC7ED,cAAA,iBAAA;;;;AAkCiC;;;;"}
1
+ {"version":3,"file":"index.d.ts","sources":["../../src/number-input/number-input-control.directive.ts","../../src/number-input/number-input-decrement-trigger.directive.ts","../../src/number-input/number-input-error-indicator.directive.ts","../../src/number-input/number-input-error-text.directive.ts","../../src/number-input/number-input-hint.directive.ts","../../src/number-input/number-input-increment-trigger.directive.ts","../../src/number-input/number-input-input-group.directive.ts","../../src/number-input/number-input-input.directive.ts","../../src/number-input/number-input-label.directive.ts","../../src/number-input/qds-number-input-context.service.ts","../../src/number-input/number-input-root.directive.ts","../../src/number-input/number-input-unit-select.component.ts","../../src/number-input/number-input.component.ts","../../src/number-input/number-input.module.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null,null,null,null],"names":["_angular_core"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AASA;;;;;;;;;;;AAWG;AACH,cAAA,2BAAA,SAAA,+BAAA;AAcE,oDAAwC,kCAAA,CAAA,iBAAA;;;;AAQzC;;AC7BD,cAAA,oCAAA,SAAA,wCAAA;AAeE,oDAAwC,kCAAA,C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A,CAAA,YAAA;AAEb;;;;;;;;;;;;AAYG;AACH,wBAAkBA,EAAA,CAAA,WAAA;;AAA2C;;;;;;;AAkC9D;;ACzFD,cAAA,8BAAA,SAAA,qBAAA,YAAA,MAAA;AAwDE,iDAAqC,8BAAA,CAAA,cAAA;AACrC,oDAAwC,kCAAA,CAAA,iBAAA;AACxC,uCAAA,qBAAA;AACA,0CAA8B,sBAAA,CAAA,OAAA;2CAEOA,EAAA,CAAA,MAAA;;;;;;;;;;AAGlC;AAEH,sCAAgCA,EAAA,CAAA,MAAA;;;;;AAwBjC;;ACxGD,cAAA,oBAAA,SAAA,wBAAA;AA8CE;;;;;;;;;;AAUG;wBACeA,EAAA,CAAA,WAAA;AAElB;;;;;;;;;;;AAWG;mBACUA,EAAA,CAAA,WAAA;AAEb;;;;;;;;;;;;AAYG;oBACWA,EAAA,CAAA,WAAA;AAEd;;;AAGG;0BACiBA,EAAA,CAAA,WAAA;;;AACrB;;AC7ED,cAAA,iBAAA;;;;AAsCiC;;;;"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@qualcomm-ui/angular",
3
3
  "description": "QUI Angular Components",
4
- "version": "1.15.1",
4
+ "version": "1.17.0",
5
5
  "author": "Ryan Bower",
6
6
  "license": "BSD-3-Clause-Clear",
7
7
  "repository": "https://github.com/qualcomm/qualcomm-ui",
@@ -25,6 +25,10 @@
25
25
  "types": "./action-group/index.d.ts",
26
26
  "default": "./fesm2022/qualcomm-ui-angular-action-group.mjs"
27
27
  },
28
+ "./alert-banner": {
29
+ "types": "./alert-banner/index.d.ts",
30
+ "default": "./fesm2022/qualcomm-ui-angular-alert-banner.mjs"
31
+ },
28
32
  "./avatar": {
29
33
  "types": "./avatar/index.d.ts",
30
34
  "default": "./fesm2022/qualcomm-ui-angular-avatar.mjs"
@@ -209,9 +213,9 @@
209
213
  "@angular/forms": ">=20 <23",
210
214
  "@angular/platform-browser": ">=20 <23",
211
215
  "@angular/platform-browser-dynamic": ">=20 <23",
212
- "@qualcomm-ui/angular-core": "^1.4.2",
213
- "@qualcomm-ui/core": "^1.2.1",
214
- "@qualcomm-ui/qds-core": "^1.15.1",
216
+ "@qualcomm-ui/angular-core": "^1.5.0",
217
+ "@qualcomm-ui/core": "^1.3.0",
218
+ "@qualcomm-ui/qds-core": "^1.17.0",
215
219
  "@qualcomm-ui/utils": "^1.1.0",
216
220
  "@tanstack/virtual-core": ">=3.13.12",
217
221
  "lucide-angular": ">=0.487.0 <1",
package/radio/index.d.ts CHANGED
@@ -3,11 +3,11 @@ import { BaseApiContextService } from '@qualcomm-ui/angular-core/machine';
3
3
  import * as i0 from '@angular/core';
4
4
  import * as _qualcomm_ui_qds_core_radio from '@qualcomm-ui/qds-core/radio';
5
5
  import { QdsRadioApi, QdsRadioApiProps, QdsRadioSize } from '@qualcomm-ui/qds-core/radio';
6
- import { CoreRadioItemControlDirective, CoreRadioGroupErrorTextDirective, CoreRadioGroupItemsDirective, CoreRadioGroupLabelDirective, CoreRadioGroupDirective, CoreRadioItemHiddenInputDirective, CoreRadioItemLabelDirective, CoreRadioRootDirective } from '@qualcomm-ui/angular-core/radio';
6
+ import { CoreRadioItemControlDirective, CoreRadioGroupErrorTextDirective, CoreRadioGroupHintDirective, CoreRadioGroupItemsDirective, CoreRadioGroupLabelDirective, CoreRadioGroupDirective, CoreRadioItemHiddenInputDirective, CoreRadioItemHintDirective, CoreRadioItemLabelDirective, CoreRadioRootDirective } from '@qualcomm-ui/angular-core/radio';
7
7
  import { LucideIconOrString } from '@qualcomm-ui/angular-core/lucide';
8
8
  import { SignalifyInput } from '@qualcomm-ui/angular-core/signals';
9
9
  import { Booleanish } from '@qualcomm-ui/utils/coercion';
10
- import * as i11 from '@qualcomm-ui/angular/icon';
10
+ import * as i13 from '@qualcomm-ui/angular/icon';
11
11
 
12
12
  declare class QdsRadioContextService extends BaseApiContextService<QdsRadioApi> {
13
13
  static ɵfac: i0.ɵɵFactoryDeclaration<QdsRadioContextService, never>;
@@ -37,6 +37,16 @@ declare class RadioGroupErrorTextComponent extends CoreRadioGroupErrorTextDirect
37
37
  static ɵcmp: i0.ɵɵComponentDeclaration<RadioGroupErrorTextComponent, "[q-radio-group-error-text]", never, { "icon": { "alias": "icon"; "required": false; "isSignal": true; }; }, {}, never, ["*"], false, never>;
38
38
  }
39
39
 
40
+ /**
41
+ * Hint text displayed below the radio group.
42
+ */
43
+ declare class RadioGroupHintDirective extends CoreRadioGroupHintDirective {
44
+ protected readonly qdsRadioContext: () => _qualcomm_ui_qds_core_radio.QdsRadioApi;
45
+ constructor();
46
+ static ɵfac: i0.ɵɵFactoryDeclaration<RadioGroupHintDirective, never>;
47
+ static ɵdir: i0.ɵɵDirectiveDeclaration<RadioGroupHintDirective, "[q-radio-group-hint]", never, {}, {}, never, never, false, never>;
48
+ }
49
+
40
50
  declare class RadioGroupItemsDirective extends CoreRadioGroupItemsDirective {
41
51
  protected readonly qdsRadioContext: () => _qualcomm_ui_qds_core_radio.QdsRadioApi;
42
52
  constructor();
@@ -76,6 +86,16 @@ declare class RadioHiddenInputDirective extends CoreRadioItemHiddenInputDirectiv
76
86
  static ɵdir: i0.ɵɵDirectiveDeclaration<RadioHiddenInputDirective, "input[q-radio-hidden-input]", never, {}, {}, never, never, false, never>;
77
87
  }
78
88
 
89
+ /**
90
+ * Hint text displayed below the radio.
91
+ */
92
+ declare class RadioHintDirective extends CoreRadioItemHintDirective {
93
+ protected readonly qdsRadioContext: () => _qualcomm_ui_qds_core_radio.QdsRadioApi;
94
+ constructor();
95
+ static ɵfac: i0.ɵɵFactoryDeclaration<RadioHintDirective, never>;
96
+ static ɵdir: i0.ɵɵDirectiveDeclaration<RadioHintDirective, "[q-radio-hint]", never, {}, {}, never, never, false, never>;
97
+ }
98
+
79
99
  declare class RadioLabelDirective extends CoreRadioItemLabelDirective {
80
100
  protected readonly qdsRadioContext: () => _qualcomm_ui_qds_core_radio.QdsRadioApi;
81
101
  constructor();
@@ -98,20 +118,43 @@ declare class RadioRootDirective extends CoreRadioRootDirective implements Signa
98
118
  }
99
119
 
100
120
  declare class RadioComponent extends RadioRootDirective {
121
+ /**
122
+ * Optional hint text displayed below the radio. Hints are hidden when the
123
+ * radio is invalid.
124
+ *
125
+ * @remarks
126
+ * To customize the element, provide it using the directive instead:
127
+ *
128
+ * ```angular-html
129
+ * <label q-radio>
130
+ * <div q-radio-hint>...</div>
131
+ * </label>
132
+ * ```
133
+ */
134
+ readonly hint: i0.InputSignal<string | undefined>;
101
135
  /**
102
136
  * Optional label describing the element. Recommended. This element is
103
137
  * automatically associated with the component's input element for accessibility.
138
+ *
139
+ * @remarks
140
+ * To customize the element, provide it using the directive instead:
141
+ *
142
+ * ```angular-html
143
+ * <label q-radio>
144
+ * <div q-radio-label>...</div>
145
+ * </label>
146
+ * ```
104
147
  */
105
148
  readonly label: i0.InputSignal<string | undefined>;
106
149
  static ɵfac: i0.ɵɵFactoryDeclaration<RadioComponent, never>;
107
- static ɵcmp: i0.ɵɵComponentDeclaration<RadioComponent, "[q-radio]", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; }, {}, never, ["[q-radio-hidden-input]", "[q-radio-control]", "[q-radio-label]"], false, never>;
150
+ static ɵcmp: i0.ɵɵComponentDeclaration<RadioComponent, "[q-radio]", never, { "hint": { "alias": "hint"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; }, {}, never, ["[q-radio-hidden-input]", "[q-radio-control]", "[q-radio-label]", "[q-radio-hint]"], false, never>;
108
151
  }
109
152
 
110
153
  declare class RadioModule {
111
154
  static ɵfac: i0.ɵɵFactoryDeclaration<RadioModule, never>;
112
- static ɵmod: i0.ɵɵNgModuleDeclaration<RadioModule, [typeof RadioComponent, typeof RadioGroupErrorTextComponent, typeof RadioGroupDirective, typeof RadioGroupLabelDirective, typeof RadioGroupItemsDirective, typeof RadioHiddenInputDirective, typeof RadioLabelDirective, typeof RadioControlDirective, typeof RadioRootDirective], [typeof _qualcomm_ui_angular_core_machine.QBindDirective, typeof i11.IconDirective], [typeof RadioComponent, typeof RadioGroupErrorTextComponent, typeof RadioGroupDirective, typeof RadioGroupLabelDirective, typeof RadioGroupItemsDirective, typeof RadioHiddenInputDirective, typeof RadioLabelDirective, typeof RadioControlDirective, typeof RadioRootDirective]>;
155
+ static ɵmod: i0.ɵɵNgModuleDeclaration<RadioModule, [typeof RadioComponent, typeof RadioControlDirective, typeof RadioGroupDirective, typeof RadioGroupErrorTextComponent, typeof RadioGroupHintDirective, typeof RadioGroupItemsDirective, typeof RadioGroupLabelDirective, typeof RadioHiddenInputDirective, typeof RadioHintDirective, typeof RadioLabelDirective, typeof RadioRootDirective], [typeof _qualcomm_ui_angular_core_machine.QBindDirective, typeof i13.IconDirective], [typeof RadioComponent, typeof RadioControlDirective, typeof RadioGroupDirective, typeof RadioGroupErrorTextComponent, typeof RadioGroupHintDirective, typeof RadioGroupItemsDirective, typeof RadioGroupLabelDirective, typeof RadioHiddenInputDirective, typeof RadioHintDirective, typeof RadioLabelDirective, typeof RadioRootDirective]>;
113
156
  static ɵinj: i0.ɵɵInjectorDeclaration<RadioModule>;
114
157
  }
115
158
 
116
- export { QDS_RADIO_CONTEXT, QdsRadioContextService, RadioComponent, RadioControlDirective, RadioGroupDirective, RadioGroupErrorTextComponent, RadioGroupItemsDirective, RadioGroupLabelDirective, RadioHiddenInputDirective, RadioLabelDirective, RadioModule, RadioRootDirective, provideQdsRadioContext, useQdsRadioContext };
159
+ export { QDS_RADIO_CONTEXT, QdsRadioContextService, RadioComponent, RadioControlDirective, RadioGroupDirective, RadioGroupErrorTextComponent, RadioGroupHintDirective, RadioGroupItemsDirective, RadioGroupLabelDirective, RadioHiddenInputDirective, RadioHintDirective, RadioLabelDirective, RadioModule, RadioRootDirective, provideQdsRadioContext, useQdsRadioContext };
117
160
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sources":["../../src/radio/qds-radio-context.service.ts","../../src/radio/radio-control.directive.ts","../../src/radio/radio-group/radio-group-error-text.component.ts","../../src/radio/radio-group/radio-group-items.directive.ts","../../src/radio/radio-group/radio-group-label.directive.ts","../../src/radio/radio-group/radio-group-root.directive.ts","../../src/radio/radio-hidden-input.directive.ts","../../src/radio/radio-label.directive.ts","../../src/radio/radio-root.directive.ts","../../src/radio/radio.component.ts","../../src/radio/radio.module.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null],"names":["_angular_core"],"mappings":";;;;;;;;;;;AAYA,cAAA,sBAAA,SAAA,qBAAA,CAAA,WAAA;;;AACiF;AAEjF,cAAA,iBAAA,EACmBA,EAAA,CAAA,cAAA,OAAA,WAAA;AAAA,cACjB,8DAAkB,iCAAA,CAAA,cAAA,0DAAA,WAAA,iBAAA,WAAA;AAAA,cAClB;;ACTF,cAAA,qBAAA,SAAA,6BAAA;AAKE,8CAAkC,2BAAA,CAAA,WAAA;;;;AAQnC;;ACXD,cAAA,4BAAA,SAAA,gCAAA;AASE;;;;AAIG;mBACUA,EAAA,CAAA,WAAA,CAAA,kBAAA;AAEb,8CAAkC,2BAAA,CAAA,WAAA;;;;AAQnC;;AC1BD,cAAA,wBAAA,SAAA,4BAAA;AAKE,8CAAkC,2BAAA,CAAA,WAAA;;;;AAQnC;;ACbD,cAAA,wBAAA,SAAA,4BAAA;AAKE,8CAAkC,2BAAA,CAAA,WAAA;;;;AAQnC;;ACOD,cAAA,mBAAA,SAAA,uBAAA,YAAA,cAAA,CAAA,gBAAA;AASE;;;AAGG;uBACcA,EAAA,CAAA,wBAAA,sBAAA,UAAA;AAIjB;;;;AAIG;mBACUA,EAAA,CAAA,WAAA,CAAA,YAAA;;;;;AAoBd;;AC9DD,cAAA,yBAAA,SAAA,iCAAA;AAKE,8CAAkC,2BAAA,CAAA,WAAA;;;;AAQnC;;ACbD,cAAA,mBAAA,SAAA,2BAAA;AAKE,8CAAkC,2BAAA,CAAA,WAAA;;;;AAQnC;;ACCD,cAAA,kBAAA,SAAA,sBAAA,YAAA,cAAA,CAAA,gBAAA;AAcE;;;;AAIG;mBACUA,EAAA,CAAA,WAAA,CAAA,YAAA;2CAEiB,2BAAA,CAAA,WAAA;;;;;AAsB/B;;ACxDD,cAAA,cAAA,SAAA,kBAAA;AAqBE;;;AAGG;oBACWA,EAAA,CAAA,WAAA;;;AACf;;AChBD,cAAA,WAAA;;;;AAyB2B;;;;"}
1
+ {"version":3,"file":"index.d.ts","sources":["../../src/radio/qds-radio-context.service.ts","../../src/radio/radio-control.directive.ts","../../src/radio/radio-group/radio-group-error-text.component.ts","../../src/radio/radio-group/radio-group-hint.directive.ts","../../src/radio/radio-group/radio-group-items.directive.ts","../../src/radio/radio-group/radio-group-label.directive.ts","../../src/radio/radio-group/radio-group-root.directive.ts","../../src/radio/radio-hidden-input.directive.ts","../../src/radio/radio-hint.directive.ts","../../src/radio/radio-label.directive.ts","../../src/radio/radio-root.directive.ts","../../src/radio/radio.component.ts","../../src/radio/radio.module.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null,null,null],"names":["_angular_core"],"mappings":";;;;;;;;;;;AAYA,cAAA,sBAAA,SAAA,qBAAA,CAAA,WAAA;;;AACiF;AAEjF,cAAA,iBAAA,EACmBA,EAAA,CAAA,cAAA,OAAA,WAAA;AAAA,cACjB,8DAAkB,iCAAA,CAAA,cAAA,0DAAA,WAAA,iBAAA,WAAA;AAAA,cAClB;;ACTF,cAAA,qBAAA,SAAA,6BAAA;AAKE,8CAAkC,2BAAA,CAAA,WAAA;;;;AAQnC;;ACXD,cAAA,4BAAA,SAAA,gCAAA;AASE;;;;AAIG;mBACUA,EAAA,CAAA,WAAA,CAAA,kBAAA;AAEb,8CAAkC,2BAAA,CAAA,WAAA;;;;AAQnC;;AC1BD;;AAEG;AACH,cAAA,uBAAA,SAAA,2BAAA;AAKE,8CAAkC,2BAAA,CAAA,WAAA;;;;AAQnC;;AChBD,cAAA,wBAAA,SAAA,4BAAA;AAKE,8CAAkC,2BAAA,CAAA,WAAA;;;;AAQnC;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