@qualcomm-ui/angular-core 1.4.2 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/checkbox/index.d.ts +19 -1
- package/checkbox/index.d.ts.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-checkbox.mjs +26 -1
- package/fesm2022/qualcomm-ui-angular-core-checkbox.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-number-input.mjs +26 -2
- package/fesm2022/qualcomm-ui-angular-core-number-input.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-popover.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-progress-ring.mjs +1 -0
- package/fesm2022/qualcomm-ui-angular-core-progress-ring.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-progress.mjs +9 -2
- package/fesm2022/qualcomm-ui-angular-core-progress.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-radio.mjs +53 -1
- package/fesm2022/qualcomm-ui-angular-core-radio.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-switch.mjs +26 -1
- package/fesm2022/qualcomm-ui-angular-core-switch.mjs.map +1 -1
- package/number-input/index.d.ts +18 -2
- package/number-input/index.d.ts.map +1 -1
- package/package.json +2 -2
- package/popover/index.d.ts +8 -2
- package/popover/index.d.ts.map +1 -1
- package/progress/index.d.ts +5 -1
- package/progress/index.d.ts.map +1 -1
- package/progress-ring/index.d.ts.map +1 -1
- package/radio/index.d.ts +38 -1
- package/radio/index.d.ts.map +1 -1
- package/switch/index.d.ts +19 -1
- package/switch/index.d.ts.map +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"qualcomm-ui-angular-core-progress.mjs","sources":["../../src/progress/core-base-progress.directive.ts","../../src/progress/progress-context.service.ts","../../src/progress/core-progress-bar.directive.ts","../../src/progress/core-progress-error-text.directive.ts","../../src/progress/core-progress-hint.directive.ts","../../src/progress/core-progress-label.directive.ts","../../src/progress/core-progress-root.directive.ts","../../src/progress/core-progress-track.directive.ts","../../src/progress/core-progress-value-text.directive.ts","../../src/progress/qualcomm-ui-angular-core-progress.ts"],"sourcesContent":["// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {booleanAttribute, Directive, input, output} from \"@angular/core\"\n\nimport {numberAttributeOrUndefined} from \"@qualcomm-ui/angular-core/attributes\"\nimport type {SignalifyInput} from \"@qualcomm-ui/angular-core/signals\"\nimport {type ProgressApiProps} from \"@qualcomm-ui/core/progress\"\nimport type {Booleanish, NumberInput} from \"@qualcomm-ui/utils/coercion\"\nimport type {Direction} from \"@qualcomm-ui/utils/direction\"\n\n@Directive()\nexport class CoreBaseProgressDirective\n implements SignalifyInput<Omit<ProgressApiProps, \"ids\">>\n{\n /**\n * The initial value of the progress when it is first rendered. Use when you do\n * not need to control the state of the progress.\n */\n readonly defaultValue = input<number | undefined, NumberInput>(undefined, {\n transform: numberAttributeOrUndefined,\n })\n\n /**\n * The document's text/writing direction.\n *\n * @default \"ltr\"\n */\n readonly dir = input<Direction | undefined>()\n\n /**\n * If `true`, the progress is marked as invalid.\n */\n readonly invalid = input<boolean | undefined, Booleanish>(undefined, {\n transform: booleanAttribute,\n })\n\n /**\n * Maximum value\n *\n * @default 100\n */\n readonly max = input<number | undefined, NumberInput>(undefined, {\n transform: numberAttributeOrUndefined,\n })\n\n /**\n * Minimum value\n *\n * @default 0\n */\n readonly min = input<number | undefined, NumberInput>(undefined, {\n transform: numberAttributeOrUndefined,\n })\n\n /**\n * Current progress value (0-100)\n */\n readonly value = input<number | undefined, NumberInput>(undefined, {\n transform: numberAttributeOrUndefined,\n })\n\n /**\n * Callback fired when the value changes.\n */\n readonly valueChanged = output<number | undefined>()\n}\n","// 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 ProgressApi} from \"@qualcomm-ui/core/progress\"\n\n@Injectable()\nexport class ProgressContextService extends BaseApiContextService<ProgressApi> {}\n\nexport const [\n PROGRESS_CONTEXT,\n useProgressContext,\n provideProgressContext,\n]: ApiContext<ProgressApi> = createApiContext<ProgressApi>(\n \"ProgressContext\",\n ProgressContextService,\n)\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Directive, type OnInit} from \"@angular/core\"\n\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\n\nimport {useProgressContext} from \"./progress-context.service\"\n\n@Directive()\nexport class CoreProgressBarDirective implements OnInit {\n protected readonly progressContext = useProgressContext()\n\n protected readonly trackBindings = useTrackBindings(() =>\n this.progressContext().getBarBindings(),\n )\n\n ngOnInit() {\n this.trackBindings()\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, Directive, input, type OnInit} from \"@angular/core\"\n\nimport {useId, useOnDestroy} from \"@qualcomm-ui/angular-core/common\"\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\n\nimport {useProgressContext} from \"./progress-context.service\"\n\n@Directive()\nexport class CoreProgressErrorTextDirective implements OnInit {\n /**\n * {@link https://www.w3schools.com/html/html_id.asp id attribute}. If\n * omitted, a unique identifier will be generated for accessibility.\n */\n readonly id = input<string>()\n\n protected readonly progressContext = useProgressContext()\n\n protected readonly trackBindings = useTrackBindings(() => {\n return this.progressContext().getErrorTextBindings({\n id: this.hostId(),\n onDestroy: this.onDestroy,\n })\n })\n\n private readonly hostId = computed(() => useId(this, this.id()))\n\n private readonly onDestroy = useOnDestroy()\n\n ngOnInit() {\n this.trackBindings()\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, Directive, input, type OnInit} from \"@angular/core\"\n\nimport {useId, useOnDestroy} from \"@qualcomm-ui/angular-core/common\"\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\n\nimport {useProgressContext} from \"./progress-context.service\"\n\n@Directive()\nexport class CoreProgressHintDirective implements OnInit {\n /**\n * {@link https://www.w3schools.com/html/html_id.asp id attribute}. If\n * omitted, a unique identifier will be generated for accessibility.\n */\n readonly id = input<string>()\n\n protected readonly progressContext = useProgressContext()\n\n protected readonly trackBindings = useTrackBindings(() => {\n return this.progressContext().getHintBindings({\n id: this.hostId(),\n onDestroy: this.onDestroy,\n })\n })\n\n protected readonly onDestroy = useOnDestroy()\n\n private readonly hostId = computed(() => useId(this, this.id()))\n\n ngOnInit() {\n this.trackBindings()\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, Directive, input, type OnInit} from \"@angular/core\"\n\nimport {useId, useOnDestroy} from \"@qualcomm-ui/angular-core/common\"\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\n\nimport {useProgressContext} from \"./progress-context.service\"\n\n@Directive()\nexport class CoreProgressLabelDirective implements OnInit {\n /**\n * {@link https://www.w3schools.com/html/html_id.asp id attribute}. If\n * omitted, a unique identifier will be generated for accessibility.\n */\n readonly id = input<string>()\n\n protected readonly progressContext = useProgressContext()\n\n protected readonly trackBindings = useTrackBindings(() => {\n return this.progressContext().getLabelBindings({\n id: this.hostId(),\n onDestroy: this.onDestroy,\n })\n })\n\n private readonly hostId = computed(() => useId(this, this.id()))\n\n private readonly onDestroy = useOnDestroy()\n\n ngOnInit() {\n this.trackBindings()\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, Directive, inject, Injector, type OnInit} from \"@angular/core\"\n\nimport {\n normalizeProps,\n useMachine,\n useTrackBindings,\n} from \"@qualcomm-ui/angular-core/machine\"\nimport {\n createProgressApi,\n type ProgressApiProps,\n progressMachine,\n} from \"@qualcomm-ui/core/progress\"\nimport type {Explicit} from \"@qualcomm-ui/utils/guard\"\n\nimport {CoreBaseProgressDirective} from \"./core-base-progress.directive\"\nimport {ProgressContextService} from \"./progress-context.service\"\n\n@Directive()\nexport class CoreProgressRootDirective\n extends CoreBaseProgressDirective\n implements OnInit\n{\n readonly injector = inject(Injector)\n\n protected readonly progressContext = inject(ProgressContextService)\n\n protected readonly trackBindings = useTrackBindings(() =>\n this.progressContext.context().getRootBindings(),\n )\n\n ngOnInit() {\n const machine = useMachine(\n progressMachine,\n computed<Explicit<ProgressApiProps>>(() => ({\n defaultValue: this.defaultValue(),\n dir: this.dir(),\n ids: undefined,\n invalid: this.invalid(),\n max: this.max(),\n min: this.min(),\n onValueChange: (value) => this.valueChanged.emit(value),\n value: this.value(),\n })),\n this.injector,\n )\n\n this.progressContext.init(\n computed(() => createProgressApi(machine, normalizeProps)),\n )\n\n this.trackBindings()\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, Directive, input, type OnInit} from \"@angular/core\"\n\nimport {useId, useOnDestroy} from \"@qualcomm-ui/angular-core/common\"\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\n\nimport {useProgressContext} from \"./progress-context.service\"\n\n@Directive()\nexport class CoreProgressTrackDirective implements OnInit {\n /**\n * {@link https://www.w3schools.com/html/html_id.asp id attribute}. If\n * omitted, a unique identifier will be generated for accessibility.\n */\n readonly id = input<string>()\n\n protected readonly progressContext = useProgressContext()\n\n protected readonly trackBindings = useTrackBindings(() =>\n this.progressContext().getTrackBindings({\n id: this.hostId(),\n onDestroy: this.onDestroy,\n }),\n )\n\n protected readonly hostId = computed(() => useId(this, this.id()))\n\n protected readonly onDestroy = useOnDestroy()\n\n ngOnInit() {\n this.trackBindings()\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Directive, type OnInit} from \"@angular/core\"\n\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\n\nimport {useProgressContext} from \"./progress-context.service\"\n\n@Directive()\nexport class CoreProgressValueTextDirective implements OnInit {\n protected readonly progressContext = useProgressContext()\n\n protected readonly trackBindings = useTrackBindings(() =>\n this.progressContext().getValueTextBindings(),\n )\n\n ngOnInit() {\n this.trackBindings()\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAAA;AACA;MAWa,yBAAyB,CAAA;AAGpC;;;AAGG;IACM,YAAY,GAAG,KAAK,CAAkC,SAAS,gDACtE,SAAS,EAAE,0BAA0B,EAAA,CAAA,GAAA,CADmC;AACxE,YAAA,SAAS,EAAE,0BAA0B;AACtC,SAAA,CAAA,CAAA,CAAC;AAEF;;;;AAIG;IACM,GAAG,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,KAAA,EAAA,CAAA,GAAA,EAAA,CAAA,CAAyB;AAE7C;;AAEG;IACM,OAAO,GAAG,KAAK,CAAkC,SAAS,2CACjE,SAAS,EAAE,gBAAgB,EAAA,CAAA,GAAA,CADwC;AACnE,YAAA,SAAS,EAAE,gBAAgB;AAC5B,SAAA,CAAA,CAAA,CAAC;AAEF;;;;AAIG;IACM,GAAG,GAAG,KAAK,CAAkC,SAAS,uCAC7D,SAAS,EAAE,0BAA0B,EAAA,CAAA,GAAA,CAD0B;AAC/D,YAAA,SAAS,EAAE,0BAA0B;AACtC,SAAA,CAAA,CAAA,CAAC;AAEF;;;;AAIG;IACM,GAAG,GAAG,KAAK,CAAkC,SAAS,uCAC7D,SAAS,EAAE,0BAA0B,EAAA,CAAA,GAAA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AAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;4FAA1B,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBADtC;;;ACVD;AACA;MASa,8BAA8B,CAAA;IACtB,eAAe,GAAG,kBAAkB,EAAE;AAEtC,IAAA,aAAa,GAAG,gBAAgB,CAAC,MAClD,IAAI,CAAC,eAAe,EAAE,CAAC,oBAAoB,EAAE,CAC9C;IAED,QAAQ,GAAA;QACN,IAAI,CAAC,aAAa,EAAE;IACtB;wGATW,8BAA8B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAA9B,8BAA8B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;4FAA9B,8BAA8B,EAAA,UAAA,EAAA,CAAA;kBAD1C;;;ACTD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"qualcomm-ui-angular-core-progress.mjs","sources":["../../src/progress/core-base-progress.directive.ts","../../src/progress/progress-context.service.ts","../../src/progress/core-progress-bar.directive.ts","../../src/progress/core-progress-error-text.directive.ts","../../src/progress/core-progress-hint.directive.ts","../../src/progress/core-progress-label.directive.ts","../../src/progress/core-progress-root.directive.ts","../../src/progress/core-progress-track.directive.ts","../../src/progress/core-progress-value-text.directive.ts","../../src/progress/qualcomm-ui-angular-core-progress.ts"],"sourcesContent":["// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {booleanAttribute, Directive, input, output} from \"@angular/core\"\n\nimport {numberAttributeOrUndefined} from \"@qualcomm-ui/angular-core/attributes\"\nimport type {SignalifyInput} from \"@qualcomm-ui/angular-core/signals\"\nimport {type ProgressApiProps} from \"@qualcomm-ui/core/progress\"\nimport type {Booleanish, NumberInput} from \"@qualcomm-ui/utils/coercion\"\nimport type {Direction} from \"@qualcomm-ui/utils/direction\"\n\n@Directive()\nexport class CoreBaseProgressDirective\n implements SignalifyInput<Omit<ProgressApiProps, \"ids\">>\n{\n /**\n * The initial value of the progress when it is first rendered. Use when you do\n * not need to control the state of the progress.\n */\n readonly defaultValue = input<number | undefined, NumberInput>(undefined, {\n transform: numberAttributeOrUndefined,\n })\n\n /**\n * The document's text/writing direction.\n *\n * @default \"ltr\"\n */\n readonly dir = input<Direction | undefined>()\n\n /**\n * If `true`, the progress is disabled.\n */\n readonly disabled = input<boolean | undefined, Booleanish>(undefined, {\n transform: booleanAttribute,\n })\n\n /**\n * If `true`, the progress is marked as invalid.\n */\n readonly invalid = input<boolean | undefined, Booleanish>(undefined, {\n transform: booleanAttribute,\n })\n\n /**\n * Maximum value\n *\n * @default 100\n */\n readonly max = input<number | undefined, NumberInput>(undefined, {\n transform: numberAttributeOrUndefined,\n })\n\n /**\n * Minimum value\n *\n * @default 0\n */\n readonly min = input<number | undefined, NumberInput>(undefined, {\n transform: numberAttributeOrUndefined,\n })\n\n /**\n * Current progress value (0-100)\n */\n readonly value = input<number | undefined, NumberInput>(undefined, {\n transform: numberAttributeOrUndefined,\n })\n\n /**\n * Callback fired when the value changes.\n */\n readonly valueChanged = output<number | undefined>()\n}\n","// 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 ProgressApi} from \"@qualcomm-ui/core/progress\"\n\n@Injectable()\nexport class ProgressContextService extends BaseApiContextService<ProgressApi> {}\n\nexport const [\n PROGRESS_CONTEXT,\n useProgressContext,\n provideProgressContext,\n]: ApiContext<ProgressApi> = createApiContext<ProgressApi>(\n \"ProgressContext\",\n ProgressContextService,\n)\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Directive, type OnInit} from \"@angular/core\"\n\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\n\nimport {useProgressContext} from \"./progress-context.service\"\n\n@Directive()\nexport class CoreProgressBarDirective implements OnInit {\n protected readonly progressContext = useProgressContext()\n\n protected readonly trackBindings = useTrackBindings(() =>\n this.progressContext().getBarBindings(),\n )\n\n ngOnInit() {\n this.trackBindings()\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, Directive, input, type OnInit} from \"@angular/core\"\n\nimport {useId, useOnDestroy} from \"@qualcomm-ui/angular-core/common\"\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\n\nimport {useProgressContext} from \"./progress-context.service\"\n\n@Directive()\nexport class CoreProgressErrorTextDirective implements OnInit {\n /**\n * {@link https://www.w3schools.com/html/html_id.asp id attribute}. If\n * omitted, a unique identifier will be generated for accessibility.\n */\n readonly id = input<string>()\n\n protected readonly progressContext = useProgressContext()\n\n protected readonly trackBindings = useTrackBindings(() => {\n return this.progressContext().getErrorTextBindings({\n id: this.hostId(),\n onDestroy: this.onDestroy,\n })\n })\n\n private readonly hostId = computed(() => useId(this, this.id()))\n\n private readonly onDestroy = useOnDestroy()\n\n ngOnInit() {\n this.trackBindings()\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, Directive, input, type OnInit} from \"@angular/core\"\n\nimport {useId, useOnDestroy} from \"@qualcomm-ui/angular-core/common\"\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\n\nimport {useProgressContext} from \"./progress-context.service\"\n\n@Directive()\nexport class CoreProgressHintDirective implements OnInit {\n /**\n * {@link https://www.w3schools.com/html/html_id.asp id attribute}. If\n * omitted, a unique identifier will be generated for accessibility.\n */\n readonly id = input<string>()\n\n protected readonly progressContext = useProgressContext()\n\n protected readonly trackBindings = useTrackBindings(() => {\n return this.progressContext().getHintBindings({\n id: this.hostId(),\n onDestroy: this.onDestroy,\n })\n })\n\n protected readonly onDestroy = useOnDestroy()\n\n private readonly hostId = computed(() => useId(this, this.id()))\n\n ngOnInit() {\n this.trackBindings()\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, Directive, input, type OnInit} from \"@angular/core\"\n\nimport {useId, useOnDestroy} from \"@qualcomm-ui/angular-core/common\"\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\n\nimport {useProgressContext} from \"./progress-context.service\"\n\n@Directive()\nexport class CoreProgressLabelDirective implements OnInit {\n /**\n * {@link https://www.w3schools.com/html/html_id.asp id attribute}. If\n * omitted, a unique identifier will be generated for accessibility.\n */\n readonly id = input<string>()\n\n protected readonly progressContext = useProgressContext()\n\n protected readonly trackBindings = useTrackBindings(() => {\n return this.progressContext().getLabelBindings({\n id: this.hostId(),\n onDestroy: this.onDestroy,\n })\n })\n\n private readonly hostId = computed(() => useId(this, this.id()))\n\n private readonly onDestroy = useOnDestroy()\n\n ngOnInit() {\n this.trackBindings()\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, Directive, inject, Injector, type OnInit} from \"@angular/core\"\n\nimport {\n normalizeProps,\n useMachine,\n useTrackBindings,\n} from \"@qualcomm-ui/angular-core/machine\"\nimport {\n createProgressApi,\n type ProgressApiProps,\n progressMachine,\n} from \"@qualcomm-ui/core/progress\"\nimport type {Explicit} from \"@qualcomm-ui/utils/guard\"\n\nimport {CoreBaseProgressDirective} from \"./core-base-progress.directive\"\nimport {ProgressContextService} from \"./progress-context.service\"\n\n@Directive()\nexport class CoreProgressRootDirective\n extends CoreBaseProgressDirective\n implements OnInit\n{\n readonly injector = inject(Injector)\n\n protected readonly progressContext = inject(ProgressContextService)\n\n protected readonly trackBindings = useTrackBindings(() =>\n this.progressContext.context().getRootBindings(),\n )\n\n ngOnInit() {\n const machine = useMachine(\n progressMachine,\n computed<Explicit<ProgressApiProps>>(() => ({\n defaultValue: this.defaultValue(),\n dir: this.dir(),\n disabled: this.disabled(),\n ids: undefined,\n invalid: this.invalid(),\n max: this.max(),\n min: this.min(),\n onValueChange: (value) => this.valueChanged.emit(value),\n value: this.value(),\n })),\n this.injector,\n )\n\n this.progressContext.init(\n computed(() => createProgressApi(machine, normalizeProps)),\n )\n\n this.trackBindings()\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, Directive, input, type OnInit} from \"@angular/core\"\n\nimport {useId, useOnDestroy} from \"@qualcomm-ui/angular-core/common\"\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\n\nimport {useProgressContext} from \"./progress-context.service\"\n\n@Directive()\nexport class CoreProgressTrackDirective implements OnInit {\n /**\n * {@link https://www.w3schools.com/html/html_id.asp id attribute}. If\n * omitted, a unique identifier will be generated for accessibility.\n */\n readonly id = input<string>()\n\n protected readonly progressContext = useProgressContext()\n\n protected readonly trackBindings = useTrackBindings(() =>\n this.progressContext().getTrackBindings({\n id: this.hostId(),\n onDestroy: this.onDestroy,\n }),\n )\n\n protected readonly hostId = computed(() => useId(this, this.id()))\n\n protected readonly onDestroy = useOnDestroy()\n\n ngOnInit() {\n this.trackBindings()\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Directive, type OnInit} from \"@angular/core\"\n\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\n\nimport {useProgressContext} from \"./progress-context.service\"\n\n@Directive()\nexport class CoreProgressValueTextDirective implements OnInit {\n protected readonly progressContext = useProgressContext()\n\n protected readonly trackBindings = useTrackBindings(() =>\n this.progressContext().getValueTextBindings(),\n )\n\n ngOnInit() {\n this.trackBindings()\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAAA;AACA;MAWa,yBAAyB,CAAA;AAGpC;;;AAGG;IACM,YAAY,GAAG,KAAK,CAAkC,SAAS,gDACtE,SAAS,EAAE,0BAA0B,EAAA,CAAA,GAAA,CADmC;AACxE,YAAA,SAAS,EAAE,0BAA0B;AACtC,SAAA,CAAA,CAAA,CAAC;AAEF;;;;AAIG;IACM,GAAG,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,KAAA,EAAA,CAAA,GAAA,EAAA,CAAA,CAAyB;AAE7C;;AAEG;IACM,QAAQ,GAAG,KAAK,CAAkC,SAAS,4CAClE,SAAS,EAAE,gBAAgB,EAAA,CAAA,GAAA,CADyC;AACpE,YAAA,SAAS,EAAE,gBAAgB;AAC5B,SAAA,CAAA,CAAA,CAAC;AAEF;;AAEG;IACM,OAAO,GAAG,KAAK,CAAkC,SAAS,2CACjE,SAAS,EAAE,gBAAgB,EAAA,CAAA,GAAA,CADwC;AACnE,YAAA,SAAS,EAAE,gBAAgB;AAC5B,SAAA,CAAA,CAAA,CAAC;AAEF;;;;AAIG;IACM,GAAG,GAAG,KAAK,CAAkC,SAAS,uCAC7D,SAAS,EAAE,0BAA0B,EAAA,CAAA,GAAA,CAD0B;AAC/D,YAAA,SAAS,EAAE,0BAA0B;AACtC,SAAA,CAAA,CAAA,CAAC;AAEF;;;;AAIG;IACM,GAAG,GAAG,KAAK,CAAkC,SAAS,uCAC7D,SAAS,EAAE,0BAA0B,EAAA,CAAA,GAAA,CAD0B;AAC/D,YAAA,SAAS,EAAE,0BAA0B;AACtC,SAAA,CAAA,CAAA,CAAC;AAEF;;AAEG;IACM,KAAK,GAAG,KAAK,CAAkC,SAAS,yCAC/D,SAAS,EAAE,0BAA0B,EAAA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EAAA,UAAA,EAAA,IAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;4FAA1B,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBADtC;;;ACVD;AACA;MASa,8BAA8B,CAAA;IACtB,eAAe,GAAG,kBAAkB,EAAE;AAEtC,IAAA,aAAa,GAAG,gBAAgB,CAAC,MAClD,IAAI,CAAC,eAAe,EAAE,CAAC,oBAAoB,EAAE,CAC9C;IAED,QAAQ,GAAA;QACN,IAAI,CAAC,aAAa,EAAE;IACtB;wGATW,8BAA8B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAA9B,8BAA8B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;4FAA9B,8BAA8B,EAAA,UAAA,EAAA,CAAA;kBAD1C;;;ACTD;;AAEG;;;;"}
|
|
@@ -299,6 +299,31 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
299
299
|
type: Directive
|
|
300
300
|
}], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }] } });
|
|
301
301
|
|
|
302
|
+
// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
|
|
303
|
+
// SPDX-License-Identifier: BSD-3-Clause-Clear
|
|
304
|
+
class CoreRadioGroupHintDirective {
|
|
305
|
+
/**
|
|
306
|
+
* {@link https://www.w3schools.com/html/html_id.asp id attribute}. If
|
|
307
|
+
* omitted, a unique identifier will be generated for accessibility.
|
|
308
|
+
*/
|
|
309
|
+
id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : []));
|
|
310
|
+
radioContext = useRadioContext();
|
|
311
|
+
trackBindings = useTrackBindings(() => this.radioContext().getGroupHintBindings({
|
|
312
|
+
id: this.hostId(),
|
|
313
|
+
onDestroy: this.onDestroy,
|
|
314
|
+
}));
|
|
315
|
+
hostId = computed(() => useId(this, this.id()), ...(ngDevMode ? [{ debugName: "hostId" }] : []));
|
|
316
|
+
onDestroy = useOnDestroy();
|
|
317
|
+
ngOnInit() {
|
|
318
|
+
this.trackBindings();
|
|
319
|
+
}
|
|
320
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CoreRadioGroupHintDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
321
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.16", type: CoreRadioGroupHintDirective, isStandalone: true, inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
|
|
322
|
+
}
|
|
323
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CoreRadioGroupHintDirective, decorators: [{
|
|
324
|
+
type: Directive
|
|
325
|
+
}], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }] } });
|
|
326
|
+
|
|
302
327
|
// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
|
|
303
328
|
// SPDX-License-Identifier: BSD-3-Clause-Clear
|
|
304
329
|
class CoreRadioGroupItemsDirective {
|
|
@@ -474,6 +499,33 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
474
499
|
type: Directive
|
|
475
500
|
}], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }] } });
|
|
476
501
|
|
|
502
|
+
// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
|
|
503
|
+
// SPDX-License-Identifier: BSD-3-Clause-Clear
|
|
504
|
+
class CoreRadioItemHintDirective {
|
|
505
|
+
/**
|
|
506
|
+
* {@link https://www.w3schools.com/html/html_id.asp id attribute}. If
|
|
507
|
+
* omitted, a unique identifier will be generated for accessibility.
|
|
508
|
+
*/
|
|
509
|
+
id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : []));
|
|
510
|
+
radioContext = useRadioContext();
|
|
511
|
+
radioItemContext = useRadioItemContext();
|
|
512
|
+
trackBindings = useTrackBindings(() => this.radioContext().getRadioHintBindings({
|
|
513
|
+
...this.radioItemContext(),
|
|
514
|
+
id: this.hostId(),
|
|
515
|
+
onDestroy: this.onDestroy,
|
|
516
|
+
}));
|
|
517
|
+
onDestroy = useOnDestroy();
|
|
518
|
+
hostId = computed(() => useId(this, this.id()), ...(ngDevMode ? [{ debugName: "hostId" }] : []));
|
|
519
|
+
ngOnInit() {
|
|
520
|
+
this.trackBindings();
|
|
521
|
+
}
|
|
522
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CoreRadioItemHintDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
523
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.16", type: CoreRadioItemHintDirective, isStandalone: true, inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
|
|
524
|
+
}
|
|
525
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CoreRadioItemHintDirective, decorators: [{
|
|
526
|
+
type: Directive
|
|
527
|
+
}], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }] } });
|
|
528
|
+
|
|
477
529
|
// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
|
|
478
530
|
// SPDX-License-Identifier: BSD-3-Clause-Clear
|
|
479
531
|
class CoreRadioItemLabelDirective {
|
|
@@ -560,5 +612,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
560
612
|
* Generated bundle index. Do not edit.
|
|
561
613
|
*/
|
|
562
614
|
|
|
563
|
-
export { AbstractRadioFormControlDirective, CoreRadioGroupDirective, CoreRadioGroupErrorTextDirective, CoreRadioGroupItemsDirective, CoreRadioGroupLabelDirective, CoreRadioItemControlDirective, CoreRadioItemHiddenInputDirective, CoreRadioItemLabelDirective, CoreRadioRootDirective, RADIO_CONTEXT, RADIO_ITEM_CONTEXT, RadioContextService, RadioItemContextService, provideRadioContext, provideRadioItemContext, useRadioContext, useRadioItemContext };
|
|
615
|
+
export { AbstractRadioFormControlDirective, CoreRadioGroupDirective, CoreRadioGroupErrorTextDirective, CoreRadioGroupHintDirective, CoreRadioGroupItemsDirective, CoreRadioGroupLabelDirective, CoreRadioItemControlDirective, CoreRadioItemHiddenInputDirective, CoreRadioItemHintDirective, CoreRadioItemLabelDirective, CoreRadioRootDirective, RADIO_CONTEXT, RADIO_ITEM_CONTEXT, RadioContextService, RadioItemContextService, provideRadioContext, provideRadioItemContext, useRadioContext, useRadioItemContext };
|
|
564
616
|
//# sourceMappingURL=qualcomm-ui-angular-core-radio.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"qualcomm-ui-angular-core-radio.mjs","sources":["../../src/radio/abstract-radio-form-control.directive.ts","../../src/radio/radio-context.service.ts","../../src/radio/core-radio-group-error-text.directive.ts","../../src/radio/core-radio-group-items.directive.ts","../../src/radio/core-radio-group-label.directive.ts","../../src/radio/core-radio-group.directive.ts","../../src/radio/radio-item-context.service.ts","../../src/radio/core-radio-item-control.directive.ts","../../src/radio/core-radio-item-hidden-input.directive.ts","../../src/radio/core-radio-item-label.directive.ts","../../src/radio/core-radio-root.directive.ts","../../src/radio/qualcomm-ui-angular-core-radio.ts"],"sourcesContent":["// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {\n afterNextRender,\n booleanAttribute,\n computed,\n Directive,\n effect,\n inject,\n Injector,\n input,\n isDevMode,\n linkedSignal,\n type OnInit,\n output,\n runInInjectionContext,\n signal,\n} from \"@angular/core\"\nimport {takeUntilDestroyed} from \"@angular/core/rxjs-interop\"\nimport {\n type AbstractControl,\n type ControlValueAccessor,\n type FormControlStatus,\n FormGroupDirective,\n FormSubmittedEvent,\n NgControl,\n NgForm,\n NgModel,\n PristineChangeEvent,\n Validators,\n} from \"@angular/forms\"\n\nimport {useOnDestroy} from \"@qualcomm-ui/angular-core/common\"\nimport {\n allEventsSignal,\n type FormEventData,\n} from \"@qualcomm-ui/angular-core/forms\"\nimport type {Booleanish} from \"@qualcomm-ui/utils/coercion\"\n\n@Directive()\nexport abstract class AbstractRadioFormControlDirective\n implements ControlValueAccessor, OnInit\n{\n /**\n * The initial value of the radio group when rendered. Use when you don't need to\n * control the state of the radio group. This property will be ignored if you\n * opt into controlled state via form control bindings.\n */\n readonly defaultValue = input<string>()\n\n /**\n * Controls whether the input is disabled in template-driven forms. When true,\n * prevents user interaction and applies visual styling to indicate the disabled\n * state.\n */\n readonly disabled = input<boolean | undefined, Booleanish>(undefined, {\n transform: booleanAttribute,\n })\n\n /**\n * The name of the input field in a radio group. Useful for form submission.\n */\n readonly name = input<string | undefined>()\n\n /**\n * Whether the input is read-only. When true, prevents user interaction while\n * keeping the input focusable and visible.\n */\n readonly readOnly = input<boolean | undefined, Booleanish>(undefined, {\n transform: booleanAttribute,\n })\n\n /**\n * Controls whether the input is required in template-driven forms. When\n * true, the input must have a value for form validation to pass.\n */\n readonly required = input<boolean | undefined, Booleanish>(undefined, {\n transform: booleanAttribute,\n })\n\n /**\n * Event emitted when the radio is selected or deselected. This is only emitted\n * on interaction. It doesn't emit in response to programmatic or form control\n * changes.\n */\n readonly valueChanged = output<string | null>()\n\n /* the internal \"value\" state of the radio */\n protected readonly value = signal<string | null>(null)\n protected readonly onDestroy = useOnDestroy()\n protected readonly injector = inject(Injector)\n protected readonly formControlStatus = signal<FormControlStatus | undefined>(\n undefined,\n )\n protected readonly formSubmitted = signal(false)\n\n protected readonly ngControl: NgControl | null = inject(NgControl, {\n optional: true,\n self: true,\n })\n\n protected readonly formEventData = signal<FormEventData<\n string | undefined\n > | null>(null)\n\n /**\n * If the component is bound to an Angular AbstractControl, its state wins.\n * If not, fall back to the host attribute.\n */\n protected readonly isDisabled = linkedSignal(() => {\n /**\n * When the component is bound to any AbstractControl, status is guaranteed to\n * be non-undefined.\n */\n const status = this.formControlStatus()\n const disabled = this.disabled()\n if (status !== undefined) {\n return status === \"DISABLED\"\n }\n\n return !!disabled\n })\n\n readonly invalid = computed(() => {\n const formEventData = this.formEventData()\n const submitted = this.formSubmitted()\n if (!this.control) {\n return false\n }\n\n let invalid, touched, dirty\n\n if (this.isTemplateDrivenForm) {\n invalid = this.control.invalid\n touched = this.control.touched\n dirty = this.control.dirty\n } else if (formEventData) {\n invalid = formEventData.invalid\n touched = formEventData.touched\n dirty = formEventData.dirty\n } else {\n return false\n }\n\n if (submitted) {\n return invalid\n }\n\n switch (this.control.updateOn) {\n case \"submit\":\n return invalid\n case \"blur\":\n return invalid && touched\n default:\n // \"change\"\n return dirty && invalid\n }\n })\n\n readonly isRequired = linkedSignal(() => {\n const control = this.control\n const required = this.required()\n if (!control || !this.isReactiveForm) {\n return required\n }\n\n if (typeof control.hasValidator === \"function\") {\n return control.hasValidator(Validators.required)\n }\n return false\n })\n\n constructor() {\n if (this.ngControl) {\n this.ngControl.valueAccessor = this\n }\n\n afterNextRender(() => {\n const required = this.required()\n if (required && this.isReactiveForm && isDevMode()) {\n console.warn(\n \"[radio] The required attribute is not supported on reactive forms. Use Validators instead. https://angular.dev/guide/forms/form-validation#validating-input-in-reactive-forms\",\n )\n }\n })\n\n effect(() => {\n const required = this.required()\n if (this.control && this.isTemplateDrivenForm) {\n if (required) {\n this.control.addValidators(Validators.required)\n } else if (this.control.hasValidator(Validators.required)) {\n this.control.removeValidators(Validators.required)\n }\n }\n })\n }\n\n ngOnInit() {\n if (this.defaultValue() && !this.control) {\n this.value.set(this.defaultValue()!)\n }\n if (this.control) {\n const subscription = this.control.statusChanges.subscribe((status) => {\n this.formControlStatus.set(status)\n })\n this.onDestroy(() => {\n subscription.unsubscribe()\n })\n\n const parent = this.getParentForm()\n\n runInInjectionContext(this.injector, () => {\n if (this.control) {\n const formSignal = allEventsSignal<string | undefined>(this.control)\n effect(() => {\n this.formEventData.set(formSignal())\n })\n }\n\n if (parent) {\n let prevPristine = this.control?.pristine || false\n parent.form.events.pipe(takeUntilDestroyed()).subscribe((event) => {\n if (event instanceof PristineChangeEvent) {\n if (event.pristine && !prevPristine) {\n // if this event fires with pristine status and the control was\n // previously not pristine, this means that the form was reset. There\n // isn't another way to determine form resets programmatically,\n // unfortunately.\n this.formSubmitted.set(false)\n }\n prevPristine = event.pristine\n } else if (event instanceof FormSubmittedEvent) {\n this.formSubmitted.set(true)\n this.control?.markAsDirty()\n }\n })\n parent.ngSubmit.pipe(takeUntilDestroyed()).subscribe(() => {\n if (this.isReactiveForm) {\n // already accounted for in the above event subscription.\n return\n }\n this.formSubmitted.set(true)\n this.control?.markAsDirty()\n })\n }\n })\n }\n }\n\n /** `true` when used with template-driven forms (`[(ngModel)]`, `ngModel`, …). */\n get isTemplateDrivenForm(): boolean {\n return this.ngControl instanceof NgModel\n }\n\n /** `true` when used with reactive-forms (`formControl`, `formControlName`, …). */\n get isReactiveForm(): boolean {\n // Any NgControl that is *not* NgModel belongs to the reactive-forms package\n return !!this.ngControl && !this.isTemplateDrivenForm\n }\n\n /** Convenience access to the underlying AbstractControl (can be null). */\n protected get control(): AbstractControl | null {\n return this.ngControl?.control ?? null\n }\n\n /**\n * Used to subscribe to form submit events.\n */\n private getParentForm(): NgForm | FormGroupDirective | null {\n if (!this.control) {\n return null\n }\n\n // Try to find NgForm first\n try {\n const ngForm = this.injector.get(NgForm, null)\n if (ngForm) {\n return ngForm\n }\n } catch {}\n\n // Fall back to FormGroupDirective\n try {\n const formGroupDirective = this.injector.get(FormGroupDirective, null)\n if (formGroupDirective) {\n return formGroupDirective\n }\n } catch {}\n\n return null\n }\n\n /*\n * Control value accessor methods\n */\n writeValue(value: any): void {\n this.value.set(value)\n }\n\n // placeholder\n protected onChange = (_value: any) => {}\n\n registerOnChange(fn: (value: any) => void): void {\n this.onChange = (_value) => {\n fn(_value)\n this.value.set(_value)\n this.valueChanged.emit(_value)\n }\n }\n\n protected onTouched = () => {}\n registerOnTouched(fn: () => void): void {\n this.onTouched = fn\n }\n\n /**\n * NgModel never calls setDisabledState, but ReactiveForms does. Everything else\n * (writeValue, registerOnChange, registerOnTouched) is identical between Reactive\n * and Template forms.\n */\n setDisabledState(isDisabled: boolean): void {\n this.isDisabled.set(isDisabled)\n }\n}\n","// 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 {RadioApi} from \"@qualcomm-ui/core/radio\"\n\n@Injectable()\nexport class RadioContextService extends BaseApiContextService<RadioApi> {}\n\nexport const [\n RADIO_CONTEXT,\n useRadioContext,\n provideRadioContext,\n]: ApiContext<RadioApi> = createApiContext<RadioApi>(\n \"RadioContext\",\n RadioContextService,\n)\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, Directive, input, type OnInit} from \"@angular/core\"\n\nimport {useId, useOnDestroy} from \"@qualcomm-ui/angular-core/common\"\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\n\nimport {useRadioContext} from \"./radio-context.service\"\n\n@Directive()\nexport class CoreRadioGroupErrorTextDirective implements OnInit {\n /**\n * {@link https://www.w3schools.com/html/html_id.asp id attribute}. If\n * omitted, a unique identifier will be generated for accessibility.\n */\n readonly id = input<string>()\n\n protected readonly radioContext = useRadioContext()\n\n protected readonly trackBindings = useTrackBindings(() =>\n this.radioContext().getGroupErrorTextBindings({\n id: this.hostId(),\n onDestroy: this.onDestroy,\n }),\n )\n\n private readonly hostId = computed(() => useId(this, this.id()))\n\n private readonly onDestroy = useOnDestroy()\n\n ngOnInit() {\n this.trackBindings()\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Directive, type OnInit} from \"@angular/core\"\n\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\n\nimport {useRadioContext} from \"./radio-context.service\"\n\n@Directive()\nexport class CoreRadioGroupItemsDirective implements OnInit {\n protected readonly radioContext = useRadioContext()\n\n protected readonly trackBindings = useTrackBindings(() =>\n this.radioContext().getGroupItemsBindings(),\n )\n\n ngOnInit() {\n this.trackBindings()\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, Directive, input, type OnInit} from \"@angular/core\"\n\nimport {useId, useOnDestroy} from \"@qualcomm-ui/angular-core/common\"\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\nimport type {SignalifyInput} from \"@qualcomm-ui/angular-core/signals\"\n\nimport {useRadioContext} from \"./radio-context.service\"\n\n@Directive()\nexport class CoreRadioGroupLabelDirective\n implements OnInit, SignalifyInput<{id?: string}>\n{\n /**\n * {@link https://www.w3schools.com/html/html_id.asp id attribute}. If\n * omitted, a unique identifier will be generated for accessibility.)\n */\n readonly id = input<string>()\n\n protected readonly radioContext = useRadioContext()\n\n protected readonly trackBindings = useTrackBindings(() =>\n this.radioContext().getLabelBindings({\n id: this.hostId(),\n onDestroy: this.onDestroy,\n }),\n )\n\n protected readonly onDestroy = useOnDestroy()\n private readonly hostId = computed(() => useId(this, this.id()))\n\n ngOnInit() {\n this.trackBindings()\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {DOCUMENT} from \"@angular/common\"\nimport {computed, Directive, inject, input, type OnInit} from \"@angular/core\"\n\nimport {useId, useIsDestroyed} from \"@qualcomm-ui/angular-core/common\"\nimport {\n normalizeProps,\n useMachine,\n useTrackBindings,\n} from \"@qualcomm-ui/angular-core/machine\"\nimport type {SignalifyInput} from \"@qualcomm-ui/angular-core/signals\"\nimport {\n createRadioApi,\n type RadioApiProps,\n radioMachine,\n type RadioOrientation,\n} from \"@qualcomm-ui/core/radio\"\nimport type {Direction} from \"@qualcomm-ui/utils/direction\"\nimport type {Explicit} from \"@qualcomm-ui/utils/guard\"\n\nimport {AbstractRadioFormControlDirective} from \"./abstract-radio-form-control.directive\"\nimport {RadioContextService} from \"./radio-context.service\"\n\n@Directive({\n host: {\n \"(focusout)\": \"onBlur()\",\n },\n})\nexport class CoreRadioGroupDirective\n extends AbstractRadioFormControlDirective\n implements OnInit, SignalifyInput<Omit<RadioApiProps, \"form\" | \"value\">>\n{\n /**\n * The document's text/writing direction.\n *\n * @default \"ltr\"\n */\n readonly dir = input<Direction | undefined>(undefined)\n\n /**\n * {@link https://www.w3schools.com/html/html_id.asp id attribute}. If\n * omitted, a unique identifier will be generated for accessibility.)\n */\n readonly id = input<string>()\n\n /**\n * A root node to correctly resolve the Document in custom environments. i.e.,\n * Iframes, Electron.\n */\n readonly getRootNode = input<\n (() => ShadowRoot | Document | Node) | undefined\n >()\n\n /**\n * Orientation of the radio group\n *\n * @default 'vertical'\n */\n readonly orientation = input<RadioOrientation>()\n\n protected readonly radioContextService = inject(RadioContextService)\n\n protected readonly document = inject(DOCUMENT)\n\n protected readonly trackBindings = useTrackBindings(() =>\n this.radioContextService.context().getGroupBindings({\n id: this.hostId(),\n onDestroy: this.onDestroy,\n }),\n )\n\n protected readonly hostId = computed(() => useId(this, this.id()))\n\n private readonly isDestroyed = useIsDestroyed()\n\n protected onBlur() {\n if (!this.isDestroyed()) {\n this.onTouched()\n }\n }\n\n override ngOnInit() {\n super.ngOnInit()\n\n this.trackBindings()\n\n const controlName = this.ngControl?.name\n ? `${this.ngControl.name}`\n : undefined\n\n const machine = useMachine(\n radioMachine,\n computed<Explicit<RadioApiProps>>(() => ({\n defaultValue: this.defaultValue(),\n dir: this.dir(),\n disabled: this.isDisabled(),\n form: \"\",\n getRootNode: this.getRootNode() ?? (() => this.document),\n invalid: this.invalid(),\n name: this.name() || controlName,\n onValueChange: (value) => {\n this.onChange(value)\n if (!this.control) {\n this.valueChanged.emit(value)\n this.value.set(value)\n }\n if (this.control && !this.control?.touched) {\n this.onTouched()\n }\n },\n orientation: this.orientation(),\n readOnly: this.readOnly(),\n required: this.isRequired(),\n value: this.value(),\n })),\n this.injector,\n )\n\n this.radioContextService.init(\n computed(() => createRadioApi(machine, normalizeProps)),\n )\n }\n}\n","// 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 {RadioItemContext} from \"@qualcomm-ui/core/radio\"\n\n@Injectable()\nexport class RadioItemContextService extends BaseApiContextService<RadioItemContext> {}\n\nexport const [\n RADIO_ITEM_CONTEXT,\n useRadioItemContext,\n provideRadioItemContext,\n]: ApiContext<RadioItemContext> = createApiContext<RadioItemContext>(\n \"RadioItemContext\",\n RadioItemContextService,\n)\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Directive, type OnInit} from \"@angular/core\"\n\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\n\nimport {useRadioContext} from \"./radio-context.service\"\nimport {useRadioItemContext} from \"./radio-item-context.service\"\n\n@Directive()\nexport class CoreRadioItemControlDirective implements OnInit {\n protected readonly radioContext = useRadioContext()\n protected readonly radioItemContext = useRadioItemContext()\n\n protected readonly trackBindings = useTrackBindings(() =>\n this.radioContext().getRadioControlBindings({...this.radioItemContext()}),\n )\n\n ngOnInit() {\n this.trackBindings()\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, Directive, input, type OnInit} from \"@angular/core\"\n\nimport {useId, useOnDestroy} from \"@qualcomm-ui/angular-core/common\"\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\nimport type {SignalifyInput} from \"@qualcomm-ui/angular-core/signals\"\n\nimport {useRadioContext} from \"./radio-context.service\"\nimport {useRadioItemContext} from \"./radio-item-context.service\"\n\n@Directive()\nexport class CoreRadioItemHiddenInputDirective\n implements OnInit, SignalifyInput<{id?: string}>\n{\n /**\n * {@link https://www.w3schools.com/html/html_id.asp id attribute}. If\n * omitted, a unique identifier will be generated for accessibility.)\n */\n readonly id = input<string>()\n\n protected readonly radioContext = useRadioContext()\n protected readonly radioItemContext = useRadioItemContext()\n\n protected readonly trackBindings = useTrackBindings(() =>\n this.radioContext().getRadioHiddenInputBindings({\n ...this.radioItemContext(),\n id: this.hostId(),\n onDestroy: this.onDestroy,\n }),\n )\n\n protected readonly onDestroy = useOnDestroy()\n private readonly hostId = computed(() => useId(this, this.id()))\n\n ngOnInit() {\n this.trackBindings()\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, Directive, input, type OnInit} from \"@angular/core\"\n\nimport {useId, useOnDestroy} from \"@qualcomm-ui/angular-core/common\"\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\nimport type {SignalifyInput} from \"@qualcomm-ui/angular-core/signals\"\n\nimport {useRadioContext} from \"./radio-context.service\"\nimport {useRadioItemContext} from \"./radio-item-context.service\"\n\n@Directive()\nexport class CoreRadioItemLabelDirective\n implements OnInit, SignalifyInput<{id?: string}>\n{\n /**\n * {@link https://www.w3schools.com/html/html_id.asp id attribute}. If\n * omitted, a unique identifier will be generated for accessibility.)\n */\n readonly id = input<string>()\n\n protected readonly radioContext = useRadioContext()\n protected readonly radioItemContext = useRadioItemContext()\n\n protected readonly trackBindings = useTrackBindings(() =>\n this.radioContext().getRadioLabelBindings({\n ...this.radioItemContext(),\n id: this.hostId(),\n onDestroy: this.onDestroy,\n }),\n )\n\n protected readonly onDestroy = useOnDestroy()\n private readonly hostId = computed(() => useId(this, this.id()))\n\n ngOnInit() {\n this.trackBindings()\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {\n booleanAttribute,\n computed,\n Directive,\n inject,\n input,\n type OnInit,\n} from \"@angular/core\"\n\nimport {useId, useOnDestroy} from \"@qualcomm-ui/angular-core/common\"\nimport {useForbiddenFormControlWarning} from \"@qualcomm-ui/angular-core/forms\"\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\nimport type {SignalifyInput} from \"@qualcomm-ui/angular-core/signals\"\nimport type {RadioItemContext} from \"@qualcomm-ui/core/radio\"\nimport type {Booleanish} from \"@qualcomm-ui/utils/coercion\"\n\nimport {useRadioContext} from \"./radio-context.service\"\nimport {RadioItemContextService} from \"./radio-item-context.service\"\n\n@Directive()\nexport class CoreRadioRootDirective\n implements OnInit, SignalifyInput<RadioItemContext>\n{\n /**\n * Controls whether the input is disabled in template-driven forms. When true,\n * prevents user interaction and applies visual styling to indicate the disabled\n * state.\n *\n * @remarks\n * The parent `q-radio-group` `disabled` property, if set to true, will override\n * this input.\n */\n readonly disabled = input<boolean | undefined, Booleanish>(undefined, {\n transform: booleanAttribute,\n })\n\n /**\n * {@link https://www.w3schools.com/html/html_id.asp id attribute}. If\n * omitted, a unique identifier will be generated for accessibility.)\n */\n readonly id = input<string>()\n\n /**\n * The value of the radio input. This is used to identify which radio is\n * selected in a group.\n */\n readonly value = input.required<string>()\n\n protected readonly radioContext = useRadioContext()\n protected readonly radioItemContext = inject(RadioItemContextService)\n\n protected readonly trackBindings = useTrackBindings(() =>\n this.radioContext().getRadioBindings({\n disabled: this.disabled(),\n id: this.hostId(),\n onDestroy: this.onDestroy,\n value: this.value(),\n }),\n )\n\n protected readonly hostId = computed(() => useId(this, this.id()))\n\n protected readonly onDestroy = useOnDestroy()\n\n constructor() {\n useForbiddenFormControlWarning({\n directive: \"q-radio\",\n rootDirective: \"q-radio-group\",\n })\n }\n\n ngOnInit() {\n this.trackBindings()\n\n this.radioItemContext.init(\n computed(() => ({\n disabled: this.disabled(),\n value: this.value(),\n })),\n )\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;AAAA;AACA;MAwCsB,iCAAiC,CAAA;AAGrD;;;;AAIG;IACM,YAAY,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,cAAA,EAAA,CAAA,GAAA,EAAA,CAAA,CAAU;AAEvC;;;;AAIG;IACM,QAAQ,GAAG,KAAK,CAAkC,SAAS,4CAClE,SAAS,EAAE,gBAAgB,EAAA,CAAA,GAAA,CADyC;AACpE,YAAA,SAAS,EAAE,gBAAgB;AAC5B,SAAA,CAAA,CAAA,CAAC;AAEF;;AAEG;IACM,IAAI,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,MAAA,EAAA,CAAA,GAAA,EAAA,CAAA,CAAsB;AAE3C;;;AAGG;IACM,QAAQ,GAAG,KAAK,CAAkC,SAAS,4CAClE,SAAS,EAAE,gBAAgB,EAAA,CAAA,GAAA,CADyC;AACpE,YAAA,SAAS,EAAE,gBAAgB;AAC5B,SAAA,CAAA,CAAA,CAAC;AAEF;;;AAGG;IACM,QAAQ,GAAG,KAAK,CAAkC,SAAS,4CAClE,SAAS,EAAE,gBAAgB,EAAA,CAAA,GAAA,CADyC;AACpE,YAAA,SAAS,EAAE,gB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A,EAAA,UAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;4FAAtB,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBADlC;;;ACtBD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"qualcomm-ui-angular-core-radio.mjs","sources":["../../src/radio/abstract-radio-form-control.directive.ts","../../src/radio/radio-context.service.ts","../../src/radio/core-radio-group-error-text.directive.ts","../../src/radio/core-radio-group-hint.directive.ts","../../src/radio/core-radio-group-items.directive.ts","../../src/radio/core-radio-group-label.directive.ts","../../src/radio/core-radio-group.directive.ts","../../src/radio/radio-item-context.service.ts","../../src/radio/core-radio-item-control.directive.ts","../../src/radio/core-radio-item-hidden-input.directive.ts","../../src/radio/core-radio-item-hint.directive.ts","../../src/radio/core-radio-item-label.directive.ts","../../src/radio/core-radio-root.directive.ts","../../src/radio/qualcomm-ui-angular-core-radio.ts"],"sourcesContent":["// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {\n afterNextRender,\n booleanAttribute,\n computed,\n Directive,\n effect,\n inject,\n Injector,\n input,\n isDevMode,\n linkedSignal,\n type OnInit,\n output,\n runInInjectionContext,\n signal,\n} from \"@angular/core\"\nimport {takeUntilDestroyed} from \"@angular/core/rxjs-interop\"\nimport {\n type AbstractControl,\n type ControlValueAccessor,\n type FormControlStatus,\n FormGroupDirective,\n FormSubmittedEvent,\n NgControl,\n NgForm,\n NgModel,\n PristineChangeEvent,\n Validators,\n} from \"@angular/forms\"\n\nimport {useOnDestroy} from \"@qualcomm-ui/angular-core/common\"\nimport {\n allEventsSignal,\n type FormEventData,\n} from \"@qualcomm-ui/angular-core/forms\"\nimport type {Booleanish} from \"@qualcomm-ui/utils/coercion\"\n\n@Directive()\nexport abstract class AbstractRadioFormControlDirective\n implements ControlValueAccessor, OnInit\n{\n /**\n * The initial value of the radio group when rendered. Use when you don't need to\n * control the state of the radio group. This property will be ignored if you\n * opt into controlled state via form control bindings.\n */\n readonly defaultValue = input<string>()\n\n /**\n * Controls whether the input is disabled in template-driven forms. When true,\n * prevents user interaction and applies visual styling to indicate the disabled\n * state.\n */\n readonly disabled = input<boolean | undefined, Booleanish>(undefined, {\n transform: booleanAttribute,\n })\n\n /**\n * The name of the input field in a radio group. Useful for form submission.\n */\n readonly name = input<string | undefined>()\n\n /**\n * Whether the input is read-only. When true, prevents user interaction while\n * keeping the input focusable and visible.\n */\n readonly readOnly = input<boolean | undefined, Booleanish>(undefined, {\n transform: booleanAttribute,\n })\n\n /**\n * Controls whether the input is required in template-driven forms. When\n * true, the input must have a value for form validation to pass.\n */\n readonly required = input<boolean | undefined, Booleanish>(undefined, {\n transform: booleanAttribute,\n })\n\n /**\n * Event emitted when the radio is selected or deselected. This is only emitted\n * on interaction. It doesn't emit in response to programmatic or form control\n * changes.\n */\n readonly valueChanged = output<string | null>()\n\n /* the internal \"value\" state of the radio */\n protected readonly value = signal<string | null>(null)\n protected readonly onDestroy = useOnDestroy()\n protected readonly injector = inject(Injector)\n protected readonly formControlStatus = signal<FormControlStatus | undefined>(\n undefined,\n )\n protected readonly formSubmitted = signal(false)\n\n protected readonly ngControl: NgControl | null = inject(NgControl, {\n optional: true,\n self: true,\n })\n\n protected readonly formEventData = signal<FormEventData<\n string | undefined\n > | null>(null)\n\n /**\n * If the component is bound to an Angular AbstractControl, its state wins.\n * If not, fall back to the host attribute.\n */\n protected readonly isDisabled = linkedSignal(() => {\n /**\n * When the component is bound to any AbstractControl, status is guaranteed to\n * be non-undefined.\n */\n const status = this.formControlStatus()\n const disabled = this.disabled()\n if (status !== undefined) {\n return status === \"DISABLED\"\n }\n\n return !!disabled\n })\n\n readonly invalid = computed(() => {\n const formEventData = this.formEventData()\n const submitted = this.formSubmitted()\n if (!this.control) {\n return false\n }\n\n let invalid, touched, dirty\n\n if (this.isTemplateDrivenForm) {\n invalid = this.control.invalid\n touched = this.control.touched\n dirty = this.control.dirty\n } else if (formEventData) {\n invalid = formEventData.invalid\n touched = formEventData.touched\n dirty = formEventData.dirty\n } else {\n return false\n }\n\n if (submitted) {\n return invalid\n }\n\n switch (this.control.updateOn) {\n case \"submit\":\n return invalid\n case \"blur\":\n return invalid && touched\n default:\n // \"change\"\n return dirty && invalid\n }\n })\n\n readonly isRequired = linkedSignal(() => {\n const control = this.control\n const required = this.required()\n if (!control || !this.isReactiveForm) {\n return required\n }\n\n if (typeof control.hasValidator === \"function\") {\n return control.hasValidator(Validators.required)\n }\n return false\n })\n\n constructor() {\n if (this.ngControl) {\n this.ngControl.valueAccessor = this\n }\n\n afterNextRender(() => {\n const required = this.required()\n if (required && this.isReactiveForm && isDevMode()) {\n console.warn(\n \"[radio] The required attribute is not supported on reactive forms. Use Validators instead. https://angular.dev/guide/forms/form-validation#validating-input-in-reactive-forms\",\n )\n }\n })\n\n effect(() => {\n const required = this.required()\n if (this.control && this.isTemplateDrivenForm) {\n if (required) {\n this.control.addValidators(Validators.required)\n } else if (this.control.hasValidator(Validators.required)) {\n this.control.removeValidators(Validators.required)\n }\n }\n })\n }\n\n ngOnInit() {\n if (this.defaultValue() && !this.control) {\n this.value.set(this.defaultValue()!)\n }\n if (this.control) {\n const subscription = this.control.statusChanges.subscribe((status) => {\n this.formControlStatus.set(status)\n })\n this.onDestroy(() => {\n subscription.unsubscribe()\n })\n\n const parent = this.getParentForm()\n\n runInInjectionContext(this.injector, () => {\n if (this.control) {\n const formSignal = allEventsSignal<string | undefined>(this.control)\n effect(() => {\n this.formEventData.set(formSignal())\n })\n }\n\n if (parent) {\n let prevPristine = this.control?.pristine || false\n parent.form.events.pipe(takeUntilDestroyed()).subscribe((event) => {\n if (event instanceof PristineChangeEvent) {\n if (event.pristine && !prevPristine) {\n // if this event fires with pristine status and the control was\n // previously not pristine, this means that the form was reset. There\n // isn't another way to determine form resets programmatically,\n // unfortunately.\n this.formSubmitted.set(false)\n }\n prevPristine = event.pristine\n } else if (event instanceof FormSubmittedEvent) {\n this.formSubmitted.set(true)\n this.control?.markAsDirty()\n }\n })\n parent.ngSubmit.pipe(takeUntilDestroyed()).subscribe(() => {\n if (this.isReactiveForm) {\n // already accounted for in the above event subscription.\n return\n }\n this.formSubmitted.set(true)\n this.control?.markAsDirty()\n })\n }\n })\n }\n }\n\n /** `true` when used with template-driven forms (`[(ngModel)]`, `ngModel`, …). */\n get isTemplateDrivenForm(): boolean {\n return this.ngControl instanceof NgModel\n }\n\n /** `true` when used with reactive-forms (`formControl`, `formControlName`, …). */\n get isReactiveForm(): boolean {\n // Any NgControl that is *not* NgModel belongs to the reactive-forms package\n return !!this.ngControl && !this.isTemplateDrivenForm\n }\n\n /** Convenience access to the underlying AbstractControl (can be null). */\n protected get control(): AbstractControl | null {\n return this.ngControl?.control ?? null\n }\n\n /**\n * Used to subscribe to form submit events.\n */\n private getParentForm(): NgForm | FormGroupDirective | null {\n if (!this.control) {\n return null\n }\n\n // Try to find NgForm first\n try {\n const ngForm = this.injector.get(NgForm, null)\n if (ngForm) {\n return ngForm\n }\n } catch {}\n\n // Fall back to FormGroupDirective\n try {\n const formGroupDirective = this.injector.get(FormGroupDirective, null)\n if (formGroupDirective) {\n return formGroupDirective\n }\n } catch {}\n\n return null\n }\n\n /*\n * Control value accessor methods\n */\n writeValue(value: any): void {\n this.value.set(value)\n }\n\n // placeholder\n protected onChange = (_value: any) => {}\n\n registerOnChange(fn: (value: any) => void): void {\n this.onChange = (_value) => {\n fn(_value)\n this.value.set(_value)\n this.valueChanged.emit(_value)\n }\n }\n\n protected onTouched = () => {}\n registerOnTouched(fn: () => void): void {\n this.onTouched = fn\n }\n\n /**\n * NgModel never calls setDisabledState, but ReactiveForms does. Everything else\n * (writeValue, registerOnChange, registerOnTouched) is identical between Reactive\n * and Template forms.\n */\n setDisabledState(isDisabled: boolean): void {\n this.isDisabled.set(isDisabled)\n }\n}\n","// 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 {RadioApi} from \"@qualcomm-ui/core/radio\"\n\n@Injectable()\nexport class RadioContextService extends BaseApiContextService<RadioApi> {}\n\nexport const [\n RADIO_CONTEXT,\n useRadioContext,\n provideRadioContext,\n]: ApiContext<RadioApi> = createApiContext<RadioApi>(\n \"RadioContext\",\n RadioContextService,\n)\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, Directive, input, type OnInit} from \"@angular/core\"\n\nimport {useId, useOnDestroy} from \"@qualcomm-ui/angular-core/common\"\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\n\nimport {useRadioContext} from \"./radio-context.service\"\n\n@Directive()\nexport class CoreRadioGroupErrorTextDirective implements OnInit {\n /**\n * {@link https://www.w3schools.com/html/html_id.asp id attribute}. If\n * omitted, a unique identifier will be generated for accessibility.\n */\n readonly id = input<string>()\n\n protected readonly radioContext = useRadioContext()\n\n protected readonly trackBindings = useTrackBindings(() =>\n this.radioContext().getGroupErrorTextBindings({\n id: this.hostId(),\n onDestroy: this.onDestroy,\n }),\n )\n\n private readonly hostId = computed(() => useId(this, this.id()))\n\n private readonly onDestroy = useOnDestroy()\n\n ngOnInit() {\n this.trackBindings()\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, Directive, input, type OnInit} from \"@angular/core\"\n\nimport {useId, useOnDestroy} from \"@qualcomm-ui/angular-core/common\"\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\n\nimport {useRadioContext} from \"./radio-context.service\"\n\n@Directive()\nexport class CoreRadioGroupHintDirective implements OnInit {\n /**\n * {@link https://www.w3schools.com/html/html_id.asp id attribute}. If\n * omitted, a unique identifier will be generated for accessibility.\n */\n readonly id = input<string>()\n\n protected readonly radioContext = useRadioContext()\n\n protected readonly trackBindings = useTrackBindings(() =>\n this.radioContext().getGroupHintBindings({\n id: this.hostId(),\n onDestroy: this.onDestroy,\n }),\n )\n\n private readonly hostId = computed(() => useId(this, this.id()))\n\n private readonly onDestroy = useOnDestroy()\n\n ngOnInit() {\n this.trackBindings()\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Directive, type OnInit} from \"@angular/core\"\n\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\n\nimport {useRadioContext} from \"./radio-context.service\"\n\n@Directive()\nexport class CoreRadioGroupItemsDirective implements OnInit {\n protected readonly radioContext = useRadioContext()\n\n protected readonly trackBindings = useTrackBindings(() =>\n this.radioContext().getGroupItemsBindings(),\n )\n\n ngOnInit() {\n this.trackBindings()\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, Directive, input, type OnInit} from \"@angular/core\"\n\nimport {useId, useOnDestroy} from \"@qualcomm-ui/angular-core/common\"\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\nimport type {SignalifyInput} from \"@qualcomm-ui/angular-core/signals\"\n\nimport {useRadioContext} from \"./radio-context.service\"\n\n@Directive()\nexport class CoreRadioGroupLabelDirective\n implements OnInit, SignalifyInput<{id?: string}>\n{\n /**\n * {@link https://www.w3schools.com/html/html_id.asp id attribute}. If\n * omitted, a unique identifier will be generated for accessibility.)\n */\n readonly id = input<string>()\n\n protected readonly radioContext = useRadioContext()\n\n protected readonly trackBindings = useTrackBindings(() =>\n this.radioContext().getLabelBindings({\n id: this.hostId(),\n onDestroy: this.onDestroy,\n }),\n )\n\n protected readonly onDestroy = useOnDestroy()\n private readonly hostId = computed(() => useId(this, this.id()))\n\n ngOnInit() {\n this.trackBindings()\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {DOCUMENT} from \"@angular/common\"\nimport {computed, Directive, inject, input, type OnInit} from \"@angular/core\"\n\nimport {useId, useIsDestroyed} from \"@qualcomm-ui/angular-core/common\"\nimport {\n normalizeProps,\n useMachine,\n useTrackBindings,\n} from \"@qualcomm-ui/angular-core/machine\"\nimport type {SignalifyInput} from \"@qualcomm-ui/angular-core/signals\"\nimport {\n createRadioApi,\n type RadioApiProps,\n radioMachine,\n type RadioOrientation,\n} from \"@qualcomm-ui/core/radio\"\nimport type {Direction} from \"@qualcomm-ui/utils/direction\"\nimport type {Explicit} from \"@qualcomm-ui/utils/guard\"\n\nimport {AbstractRadioFormControlDirective} from \"./abstract-radio-form-control.directive\"\nimport {RadioContextService} from \"./radio-context.service\"\n\n@Directive({\n host: {\n \"(focusout)\": \"onBlur()\",\n },\n})\nexport class CoreRadioGroupDirective\n extends AbstractRadioFormControlDirective\n implements OnInit, SignalifyInput<Omit<RadioApiProps, \"form\" | \"value\">>\n{\n /**\n * The document's text/writing direction.\n *\n * @default \"ltr\"\n */\n readonly dir = input<Direction | undefined>(undefined)\n\n /**\n * {@link https://www.w3schools.com/html/html_id.asp id attribute}. If\n * omitted, a unique identifier will be generated for accessibility.)\n */\n readonly id = input<string>()\n\n /**\n * A root node to correctly resolve the Document in custom environments. i.e.,\n * Iframes, Electron.\n */\n readonly getRootNode = input<\n (() => ShadowRoot | Document | Node) | undefined\n >()\n\n /**\n * Orientation of the radio group\n *\n * @default 'vertical'\n */\n readonly orientation = input<RadioOrientation>()\n\n protected readonly radioContextService = inject(RadioContextService)\n\n protected readonly document = inject(DOCUMENT)\n\n protected readonly trackBindings = useTrackBindings(() =>\n this.radioContextService.context().getGroupBindings({\n id: this.hostId(),\n onDestroy: this.onDestroy,\n }),\n )\n\n protected readonly hostId = computed(() => useId(this, this.id()))\n\n private readonly isDestroyed = useIsDestroyed()\n\n protected onBlur() {\n if (!this.isDestroyed()) {\n this.onTouched()\n }\n }\n\n override ngOnInit() {\n super.ngOnInit()\n\n this.trackBindings()\n\n const controlName = this.ngControl?.name\n ? `${this.ngControl.name}`\n : undefined\n\n const machine = useMachine(\n radioMachine,\n computed<Explicit<RadioApiProps>>(() => ({\n defaultValue: this.defaultValue(),\n dir: this.dir(),\n disabled: this.isDisabled(),\n form: \"\",\n getRootNode: this.getRootNode() ?? (() => this.document),\n invalid: this.invalid(),\n name: this.name() || controlName,\n onValueChange: (value) => {\n this.onChange(value)\n if (!this.control) {\n this.valueChanged.emit(value)\n this.value.set(value)\n }\n if (this.control && !this.control?.touched) {\n this.onTouched()\n }\n },\n orientation: this.orientation(),\n readOnly: this.readOnly(),\n required: this.isRequired(),\n value: this.value(),\n })),\n this.injector,\n )\n\n this.radioContextService.init(\n computed(() => createRadioApi(machine, normalizeProps)),\n )\n }\n}\n","// 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 {RadioItemContext} from \"@qualcomm-ui/core/radio\"\n\n@Injectable()\nexport class RadioItemContextService extends BaseApiContextService<RadioItemContext> {}\n\nexport const [\n RADIO_ITEM_CONTEXT,\n useRadioItemContext,\n provideRadioItemContext,\n]: ApiContext<RadioItemContext> = createApiContext<RadioItemContext>(\n \"RadioItemContext\",\n RadioItemContextService,\n)\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Directive, type OnInit} from \"@angular/core\"\n\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\n\nimport {useRadioContext} from \"./radio-context.service\"\nimport {useRadioItemContext} from \"./radio-item-context.service\"\n\n@Directive()\nexport class CoreRadioItemControlDirective implements OnInit {\n protected readonly radioContext = useRadioContext()\n protected readonly radioItemContext = useRadioItemContext()\n\n protected readonly trackBindings = useTrackBindings(() =>\n this.radioContext().getRadioControlBindings({...this.radioItemContext()}),\n )\n\n ngOnInit() {\n this.trackBindings()\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, Directive, input, type OnInit} from \"@angular/core\"\n\nimport {useId, useOnDestroy} from \"@qualcomm-ui/angular-core/common\"\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\nimport type {SignalifyInput} from \"@qualcomm-ui/angular-core/signals\"\n\nimport {useRadioContext} from \"./radio-context.service\"\nimport {useRadioItemContext} from \"./radio-item-context.service\"\n\n@Directive()\nexport class CoreRadioItemHiddenInputDirective\n implements OnInit, SignalifyInput<{id?: string}>\n{\n /**\n * {@link https://www.w3schools.com/html/html_id.asp id attribute}. If\n * omitted, a unique identifier will be generated for accessibility.)\n */\n readonly id = input<string>()\n\n protected readonly radioContext = useRadioContext()\n protected readonly radioItemContext = useRadioItemContext()\n\n protected readonly trackBindings = useTrackBindings(() =>\n this.radioContext().getRadioHiddenInputBindings({\n ...this.radioItemContext(),\n id: this.hostId(),\n onDestroy: this.onDestroy,\n }),\n )\n\n protected readonly onDestroy = useOnDestroy()\n private readonly hostId = computed(() => useId(this, this.id()))\n\n ngOnInit() {\n this.trackBindings()\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, Directive, input, type OnInit} from \"@angular/core\"\n\nimport {useId, useOnDestroy} from \"@qualcomm-ui/angular-core/common\"\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\n\nimport {useRadioContext} from \"./radio-context.service\"\nimport {useRadioItemContext} from \"./radio-item-context.service\"\n\n@Directive()\nexport class CoreRadioItemHintDirective implements OnInit {\n /**\n * {@link https://www.w3schools.com/html/html_id.asp id attribute}. If\n * omitted, a unique identifier will be generated for accessibility.\n */\n readonly id = input<string>()\n\n protected readonly radioContext = useRadioContext()\n protected readonly radioItemContext = useRadioItemContext()\n\n protected readonly trackBindings = useTrackBindings(() =>\n this.radioContext().getRadioHintBindings({\n ...this.radioItemContext(),\n id: this.hostId(),\n onDestroy: this.onDestroy,\n }),\n )\n\n protected readonly onDestroy = useOnDestroy()\n private readonly hostId = computed(() => useId(this, this.id()))\n\n ngOnInit() {\n this.trackBindings()\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, Directive, input, type OnInit} from \"@angular/core\"\n\nimport {useId, useOnDestroy} from \"@qualcomm-ui/angular-core/common\"\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\nimport type {SignalifyInput} from \"@qualcomm-ui/angular-core/signals\"\n\nimport {useRadioContext} from \"./radio-context.service\"\nimport {useRadioItemContext} from \"./radio-item-context.service\"\n\n@Directive()\nexport class CoreRadioItemLabelDirective\n implements OnInit, SignalifyInput<{id?: string}>\n{\n /**\n * {@link https://www.w3schools.com/html/html_id.asp id attribute}. If\n * omitted, a unique identifier will be generated for accessibility.)\n */\n readonly id = input<string>()\n\n protected readonly radioContext = useRadioContext()\n protected readonly radioItemContext = useRadioItemContext()\n\n protected readonly trackBindings = useTrackBindings(() =>\n this.radioContext().getRadioLabelBindings({\n ...this.radioItemContext(),\n id: this.hostId(),\n onDestroy: this.onDestroy,\n }),\n )\n\n protected readonly onDestroy = useOnDestroy()\n private readonly hostId = computed(() => useId(this, this.id()))\n\n ngOnInit() {\n this.trackBindings()\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {\n booleanAttribute,\n computed,\n Directive,\n inject,\n input,\n type OnInit,\n} from \"@angular/core\"\n\nimport {useId, useOnDestroy} from \"@qualcomm-ui/angular-core/common\"\nimport {useForbiddenFormControlWarning} from \"@qualcomm-ui/angular-core/forms\"\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\nimport type {SignalifyInput} from \"@qualcomm-ui/angular-core/signals\"\nimport type {RadioItemContext} from \"@qualcomm-ui/core/radio\"\nimport type {Booleanish} from \"@qualcomm-ui/utils/coercion\"\n\nimport {useRadioContext} from \"./radio-context.service\"\nimport {RadioItemContextService} from \"./radio-item-context.service\"\n\n@Directive()\nexport class CoreRadioRootDirective\n implements OnInit, SignalifyInput<RadioItemContext>\n{\n /**\n * Controls whether the input is disabled in template-driven forms. When true,\n * prevents user interaction and applies visual styling to indicate the disabled\n * state.\n *\n * @remarks\n * The parent `q-radio-group` `disabled` property, if set to true, will override\n * this input.\n */\n readonly disabled = input<boolean | undefined, Booleanish>(undefined, {\n transform: booleanAttribute,\n })\n\n /**\n * {@link https://www.w3schools.com/html/html_id.asp id attribute}. If\n * omitted, a unique identifier will be generated for accessibility.)\n */\n readonly id = input<string>()\n\n /**\n * The value of the radio input. This is used to identify which radio is\n * selected in a group.\n */\n readonly value = input.required<string>()\n\n protected readonly radioContext = useRadioContext()\n protected readonly radioItemContext = inject(RadioItemContextService)\n\n protected readonly trackBindings = useTrackBindings(() =>\n this.radioContext().getRadioBindings({\n disabled: this.disabled(),\n id: this.hostId(),\n onDestroy: this.onDestroy,\n value: this.value(),\n }),\n )\n\n protected readonly hostId = computed(() => useId(this, this.id()))\n\n protected readonly onDestroy = useOnDestroy()\n\n constructor() {\n useForbiddenFormControlWarning({\n directive: \"q-radio\",\n rootDirective: \"q-radio-group\",\n })\n }\n\n ngOnInit() {\n this.trackBindings()\n\n this.radioItemContext.init(\n computed(() => ({\n disabled: this.disabled(),\n value: this.value(),\n })),\n )\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;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B,sBAAsB,EAAA,YAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,QAAA,EAAA,EAAA,iBAAA,EAAA,UAAA,EAAA,UAAA,EAAA,UAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,EAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,KAAA,EAAA,EAAA,iBAAA,EAAA,OAAA,EAAA,UAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;4FAAtB,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBADlC;;;ACtBD;;AAEG;;;;"}
|
|
@@ -59,6 +59,31 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
59
59
|
type: Directive
|
|
60
60
|
}], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }] } });
|
|
61
61
|
|
|
62
|
+
// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
|
|
63
|
+
// SPDX-License-Identifier: BSD-3-Clause-Clear
|
|
64
|
+
class CoreSwitchHintDirective {
|
|
65
|
+
/**
|
|
66
|
+
* {@link https://www.w3schools.com/html/html_id.asp id attribute}. If
|
|
67
|
+
* omitted, a unique identifier will be generated for accessibility.
|
|
68
|
+
*/
|
|
69
|
+
id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : []));
|
|
70
|
+
switchContext = useSwitchContext();
|
|
71
|
+
trackBindings = useTrackBindings(() => this.switchContext().getHintBindings({
|
|
72
|
+
id: this.hostId(),
|
|
73
|
+
onDestroy: this.onDestroy,
|
|
74
|
+
}));
|
|
75
|
+
hostId = computed(() => useId(this, this.id()), ...(ngDevMode ? [{ debugName: "hostId" }] : []));
|
|
76
|
+
onDestroy = useOnDestroy();
|
|
77
|
+
ngOnInit() {
|
|
78
|
+
this.trackBindings();
|
|
79
|
+
}
|
|
80
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CoreSwitchHintDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
81
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.16", type: CoreSwitchHintDirective, isStandalone: true, inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
|
|
82
|
+
}
|
|
83
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CoreSwitchHintDirective, decorators: [{
|
|
84
|
+
type: Directive
|
|
85
|
+
}], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }] } });
|
|
86
|
+
|
|
62
87
|
// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
|
|
63
88
|
// SPDX-License-Identifier: BSD-3-Clause-Clear
|
|
64
89
|
class CoreSwitchHiddenInputDirective {
|
|
@@ -207,5 +232,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
207
232
|
* Generated bundle index. Do not edit.
|
|
208
233
|
*/
|
|
209
234
|
|
|
210
|
-
export { CoreSwitchControlDirective, CoreSwitchErrorTextDirective, CoreSwitchHiddenInputDirective, CoreSwitchLabelDirective, CoreSwitchRootDirective, CoreSwitchThumbDirective, SWITCH_CONTEXT, SwitchContextService, provideSwitchContext, useSwitchContext };
|
|
235
|
+
export { CoreSwitchControlDirective, CoreSwitchErrorTextDirective, CoreSwitchHiddenInputDirective, CoreSwitchHintDirective, CoreSwitchLabelDirective, CoreSwitchRootDirective, CoreSwitchThumbDirective, SWITCH_CONTEXT, SwitchContextService, provideSwitchContext, useSwitchContext };
|
|
211
236
|
//# sourceMappingURL=qualcomm-ui-angular-core-switch.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"qualcomm-ui-angular-core-switch.mjs","sources":["../../src/switch/switch-context.service.ts","../../src/switch/core-switch-control.directive.ts","../../src/switch/core-switch-error-text.directive.ts","../../src/switch/core-switch-hidden-input.directive.ts","../../src/switch/core-switch-label.directive.ts","../../src/switch/core-switch-root.directive.ts","../../src/switch/core-switch-thumb.directive.ts","../../src/switch/qualcomm-ui-angular-core-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 {SwitchApi} from \"@qualcomm-ui/core/switch\"\n\n@Injectable()\nexport class SwitchContextService extends BaseApiContextService<SwitchApi> {}\n\nexport const [\n SWITCH_CONTEXT,\n useSwitchContext,\n provideSwitchContext,\n]: ApiContext<SwitchApi> = createApiContext<SwitchApi>(\n \"SwitchContext\",\n SwitchContextService,\n)\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Directive, type OnInit} from \"@angular/core\"\n\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\n\nimport {useSwitchContext} from \"./switch-context.service\"\n\n@Directive()\nexport class CoreSwitchControlDirective implements OnInit {\n protected readonly switchContext = useSwitchContext()\n\n protected readonly trackBindings = useTrackBindings(() =>\n this.switchContext().getControlBindings(),\n )\n\n ngOnInit() {\n this.trackBindings()\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, Directive, input, type OnInit} from \"@angular/core\"\n\nimport {useId, useOnDestroy} from \"@qualcomm-ui/angular-core/common\"\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\n\nimport {useSwitchContext} from \"./switch-context.service\"\n\n@Directive()\nexport class CoreSwitchErrorTextDirective implements OnInit {\n /**\n * {@link https://www.w3schools.com/html/html_id.asp id attribute}. If\n * omitted, a unique identifier will be generated for accessibility.\n */\n readonly id = input<string>()\n\n protected readonly switchContext = useSwitchContext()\n\n protected readonly trackBindings = useTrackBindings(() =>\n this.switchContext().getErrorTextBindings({\n id: this.hostId(),\n onDestroy: this.onDestroy,\n }),\n )\n\n private readonly hostId = computed(() => useId(this, this.id()))\n\n private readonly onDestroy = useOnDestroy()\n\n ngOnInit() {\n this.trackBindings()\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, Directive, input, type OnInit} from \"@angular/core\"\n\nimport {useId, useOnDestroy} from \"@qualcomm-ui/angular-core/common\"\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\n\nimport {useSwitchContext} from \"./switch-context.service\"\n\n@Directive()\nexport class CoreSwitchHiddenInputDirective implements OnInit {\n /**\n * {@link https://www.w3schools.com/html/html_id.asp id attribute}. If\n * omitted, a unique identifier will be generated for accessibility.\n */\n readonly id = input<string>()\n\n protected readonly switchContext = useSwitchContext()\n\n protected readonly trackBindings = useTrackBindings(() =>\n this.switchContext().getHiddenInputBindings({\n id: this.hostId(),\n onDestroy: this.onDestroy,\n }),\n )\n\n private readonly hostId = computed(() => useId(this, this.id()))\n\n private readonly onDestroy = useOnDestroy()\n\n ngOnInit() {\n this.trackBindings()\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, Directive, input, type OnInit} from \"@angular/core\"\n\nimport {useId, useOnDestroy} from \"@qualcomm-ui/angular-core/common\"\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\n\nimport {useSwitchContext} from \"./switch-context.service\"\n\n@Directive()\nexport class CoreSwitchLabelDirective implements OnInit {\n /**\n * {@link https://www.w3schools.com/html/html_id.asp id attribute}. If\n * omitted, a unique identifier will be generated for accessibility.\n */\n readonly id = input<string>()\n\n protected readonly switchContext = useSwitchContext()\n\n protected readonly trackBindings = useTrackBindings(() =>\n this.switchContext().getLabelBindings({\n id: this.hostId(),\n onDestroy: this.onDestroy,\n }),\n )\n\n private readonly hostId = computed(() => useId(this, this.id()))\n\n private readonly onDestroy = useOnDestroy()\n\n ngOnInit() {\n this.trackBindings()\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {DOCUMENT} from \"@angular/common\"\nimport {\n booleanAttribute,\n computed,\n Directive,\n inject,\n input,\n type OnInit,\n} from \"@angular/core\"\nimport {type ControlValueAccessor} from \"@angular/forms\"\n\nimport {AbstractCheckboxFormControlDirective} from \"@qualcomm-ui/angular-core/checkbox\"\nimport {useId} from \"@qualcomm-ui/angular-core/common\"\nimport {\n normalizeProps,\n useMachine,\n useTrackBindings,\n} from \"@qualcomm-ui/angular-core/machine\"\nimport type {SignalifyInput} from \"@qualcomm-ui/angular-core/signals\"\nimport {type CheckboxApiProps} from \"@qualcomm-ui/core/checkbox\"\nimport {\n createSwitchApi,\n type SwitchApiProps,\n switchMachine,\n} from \"@qualcomm-ui/core/switch\"\nimport type {Booleanish} from \"@qualcomm-ui/utils/coercion\"\nimport type {Direction} from \"@qualcomm-ui/utils/direction\"\nimport type {Explicit} from \"@qualcomm-ui/utils/guard\"\n\nimport {SwitchContextService} from \"./switch-context.service\"\n\n@Directive()\nexport class CoreSwitchRootDirective\n extends AbstractCheckboxFormControlDirective\n implements\n SignalifyInput<Omit<CheckboxApiProps, \"checked\" | \"form\" | \"ids\">>,\n ControlValueAccessor,\n OnInit\n{\n /**\n * The document's text/writing direction.\n *\n * @default \"ltr\"\n */\n readonly dir = input<Direction | undefined>(undefined)\n\n /**\n * A root node to correctly resolve the Document in custom environments. i.e.,\n * Iframes, Electron.\n */\n readonly getRootNode = input<\n (() => ShadowRoot | Document | Node) | undefined\n >()\n\n /**\n * If true and the checkbox is not checked, the checkbox will be in the\n * `indeterminate` state.\n */\n readonly indeterminate = input<boolean | undefined, Booleanish>(undefined, {\n transform: booleanAttribute,\n })\n\n /**\n * {@link https://www.w3schools.com/html/html_id.asp id attribute}. If\n * omitted, a unique identifier will be generated for accessibility.)\n */\n readonly id = input<string | undefined>(undefined)\n\n /**\n * The value of checkbox input. Useful for form submission.\n * @default \"on\"\n */\n readonly value = input<string | undefined>()\n\n protected readonly switchContextService = inject(SwitchContextService)\n protected readonly document = inject(DOCUMENT)\n\n protected readonly hostId = computed(() => useId(this, this.id()))\n protected readonly trackBindings = useTrackBindings(() =>\n this.switchContextService.context().getRootBindings({id: this.hostId()}),\n )\n\n override ngOnInit() {\n super.ngOnInit()\n\n const machine = useMachine(\n switchMachine,\n computed<Explicit<SwitchApiProps>>(() => ({\n checked: this.checked(),\n defaultChecked: this.defaultChecked(),\n dir: this.dir(),\n disabled: this.isDisabled(),\n // angular handles this automatically with ngModel and Reactive Forms\n form: undefined,\n getRootNode: this.getRootNode() || (() => this.document),\n ids: undefined,\n invalid: this.invalid(),\n name: this.name(),\n onCheckedChange: (checked) => {\n this.onChange(checked)\n if (!this.control) {\n this.checkedChanged.emit(checked)\n this.checked.set(checked)\n }\n if (this.control && !this.control?.touched) {\n this.control?.markAsTouched?.()\n }\n },\n onFocusChange: (focused) => {\n if (!focused) {\n // only trigger on blur to prevent immediate validation, which would\n // occur as soon as the user interacts with the field.\n this.onTouched()\n }\n },\n readOnly: this.readOnly(),\n required: this.isRequired(),\n value: this.value(),\n })),\n this.injector,\n )\n\n this.switchContextService.init(\n computed(() => createSwitchApi(machine, normalizeProps)),\n )\n\n this.trackBindings()\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Directive, type OnInit} from \"@angular/core\"\n\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\n\nimport {useSwitchContext} from \"./switch-context.service\"\n\n@Directive()\nexport class CoreSwitchThumbDirective implements OnInit {\n protected readonly switchContext = useSwitchContext()\n\n protected readonly trackBindings = useTrackBindings(() =>\n this.switchContext().getThumbBindings(),\n )\n\n ngOnInit() {\n this.trackBindings()\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;AAAA;AACA;AAYM,MAAO,oBAAqB,SAAQ,qBAAgC,CAAA;wGAA7D,oBAAoB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;4GAApB,oBAAoB,EAAA,CAAA;;4FAApB,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBADhC;;AAGM,MAAM,CACX,cAAc,EACd,gBAAgB,EAChB,oBAAoB,EACrB,GAA0B,gBAAgB,CACzC,eAAe,EACf,oBAAoB;;ACrBtB;AACA;MASa,0BAA0B,CAAA;IAClB,aAAa,GAAG,gBAAgB,EAAE;AAElC,IAAA,aAAa,GAAG,gBAAgB,CAAC,MAClD,IAAI,CAAC,aAAa,EAAE,CAAC,kBAAkB,EAAE,CAC1C;IAED,QAAQ,GAAA;QACN,IAAI,CAAC,aAAa,EAAE;IACtB;wGATW,0BAA0B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAA1B,0BAA0B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;4FAA1B,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBADtC;;;ACTD;AACA;MAUa,4BAA4B,CAAA;AAC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,EAAA,EAAA,iBAAA,EAAA,OAAA,EAAA,UAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;4FAAvB,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBADnC;;;AClCD;AACA;MASa,wBAAwB,CAAA;IAChB,aAAa,GAAG,gBAAgB,EAAE;AAElC,IAAA,aAAa,GAAG,gBAAgB,CAAC,MAClD,IAAI,CAAC,aAAa,EAAE,CAAC,gBAAgB,EAAE,CACxC;IAED,QAAQ,GAAA;QACN,IAAI,CAAC,aAAa,EAAE;IACtB;wGATW,wBAAwB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAAxB,wBAAwB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;4FAAxB,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBADpC;;;ACTD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"qualcomm-ui-angular-core-switch.mjs","sources":["../../src/switch/switch-context.service.ts","../../src/switch/core-switch-control.directive.ts","../../src/switch/core-switch-error-text.directive.ts","../../src/switch/core-switch-hint.directive.ts","../../src/switch/core-switch-hidden-input.directive.ts","../../src/switch/core-switch-label.directive.ts","../../src/switch/core-switch-root.directive.ts","../../src/switch/core-switch-thumb.directive.ts","../../src/switch/qualcomm-ui-angular-core-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 {SwitchApi} from \"@qualcomm-ui/core/switch\"\n\n@Injectable()\nexport class SwitchContextService extends BaseApiContextService<SwitchApi> {}\n\nexport const [\n SWITCH_CONTEXT,\n useSwitchContext,\n provideSwitchContext,\n]: ApiContext<SwitchApi> = createApiContext<SwitchApi>(\n \"SwitchContext\",\n SwitchContextService,\n)\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Directive, type OnInit} from \"@angular/core\"\n\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\n\nimport {useSwitchContext} from \"./switch-context.service\"\n\n@Directive()\nexport class CoreSwitchControlDirective implements OnInit {\n protected readonly switchContext = useSwitchContext()\n\n protected readonly trackBindings = useTrackBindings(() =>\n this.switchContext().getControlBindings(),\n )\n\n ngOnInit() {\n this.trackBindings()\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, Directive, input, type OnInit} from \"@angular/core\"\n\nimport {useId, useOnDestroy} from \"@qualcomm-ui/angular-core/common\"\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\n\nimport {useSwitchContext} from \"./switch-context.service\"\n\n@Directive()\nexport class CoreSwitchErrorTextDirective implements OnInit {\n /**\n * {@link https://www.w3schools.com/html/html_id.asp id attribute}. If\n * omitted, a unique identifier will be generated for accessibility.\n */\n readonly id = input<string>()\n\n protected readonly switchContext = useSwitchContext()\n\n protected readonly trackBindings = useTrackBindings(() =>\n this.switchContext().getErrorTextBindings({\n id: this.hostId(),\n onDestroy: this.onDestroy,\n }),\n )\n\n private readonly hostId = computed(() => useId(this, this.id()))\n\n private readonly onDestroy = useOnDestroy()\n\n ngOnInit() {\n this.trackBindings()\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, Directive, input, type OnInit} from \"@angular/core\"\n\nimport {useId, useOnDestroy} from \"@qualcomm-ui/angular-core/common\"\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\n\nimport {useSwitchContext} from \"./switch-context.service\"\n\n@Directive()\nexport class CoreSwitchHintDirective implements OnInit {\n /**\n * {@link https://www.w3schools.com/html/html_id.asp id attribute}. If\n * omitted, a unique identifier will be generated for accessibility.\n */\n readonly id = input<string>()\n\n protected readonly switchContext = useSwitchContext()\n\n protected readonly trackBindings = useTrackBindings(() =>\n this.switchContext().getHintBindings({\n id: this.hostId(),\n onDestroy: this.onDestroy,\n }),\n )\n\n private readonly hostId = computed(() => useId(this, this.id()))\n\n private readonly onDestroy = useOnDestroy()\n\n ngOnInit() {\n this.trackBindings()\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, Directive, input, type OnInit} from \"@angular/core\"\n\nimport {useId, useOnDestroy} from \"@qualcomm-ui/angular-core/common\"\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\n\nimport {useSwitchContext} from \"./switch-context.service\"\n\n@Directive()\nexport class CoreSwitchHiddenInputDirective implements OnInit {\n /**\n * {@link https://www.w3schools.com/html/html_id.asp id attribute}. If\n * omitted, a unique identifier will be generated for accessibility.\n */\n readonly id = input<string>()\n\n protected readonly switchContext = useSwitchContext()\n\n protected readonly trackBindings = useTrackBindings(() =>\n this.switchContext().getHiddenInputBindings({\n id: this.hostId(),\n onDestroy: this.onDestroy,\n }),\n )\n\n private readonly hostId = computed(() => useId(this, this.id()))\n\n private readonly onDestroy = useOnDestroy()\n\n ngOnInit() {\n this.trackBindings()\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, Directive, input, type OnInit} from \"@angular/core\"\n\nimport {useId, useOnDestroy} from \"@qualcomm-ui/angular-core/common\"\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\n\nimport {useSwitchContext} from \"./switch-context.service\"\n\n@Directive()\nexport class CoreSwitchLabelDirective implements OnInit {\n /**\n * {@link https://www.w3schools.com/html/html_id.asp id attribute}. If\n * omitted, a unique identifier will be generated for accessibility.\n */\n readonly id = input<string>()\n\n protected readonly switchContext = useSwitchContext()\n\n protected readonly trackBindings = useTrackBindings(() =>\n this.switchContext().getLabelBindings({\n id: this.hostId(),\n onDestroy: this.onDestroy,\n }),\n )\n\n private readonly hostId = computed(() => useId(this, this.id()))\n\n private readonly onDestroy = useOnDestroy()\n\n ngOnInit() {\n this.trackBindings()\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {DOCUMENT} from \"@angular/common\"\nimport {\n booleanAttribute,\n computed,\n Directive,\n inject,\n input,\n type OnInit,\n} from \"@angular/core\"\nimport {type ControlValueAccessor} from \"@angular/forms\"\n\nimport {AbstractCheckboxFormControlDirective} from \"@qualcomm-ui/angular-core/checkbox\"\nimport {useId} from \"@qualcomm-ui/angular-core/common\"\nimport {\n normalizeProps,\n useMachine,\n useTrackBindings,\n} from \"@qualcomm-ui/angular-core/machine\"\nimport type {SignalifyInput} from \"@qualcomm-ui/angular-core/signals\"\nimport {type CheckboxApiProps} from \"@qualcomm-ui/core/checkbox\"\nimport {\n createSwitchApi,\n type SwitchApiProps,\n switchMachine,\n} from \"@qualcomm-ui/core/switch\"\nimport type {Booleanish} from \"@qualcomm-ui/utils/coercion\"\nimport type {Direction} from \"@qualcomm-ui/utils/direction\"\nimport type {Explicit} from \"@qualcomm-ui/utils/guard\"\n\nimport {SwitchContextService} from \"./switch-context.service\"\n\n@Directive()\nexport class CoreSwitchRootDirective\n extends AbstractCheckboxFormControlDirective\n implements\n SignalifyInput<Omit<CheckboxApiProps, \"checked\" | \"form\" | \"ids\">>,\n ControlValueAccessor,\n OnInit\n{\n /**\n * The document's text/writing direction.\n *\n * @default \"ltr\"\n */\n readonly dir = input<Direction | undefined>(undefined)\n\n /**\n * A root node to correctly resolve the Document in custom environments. i.e.,\n * Iframes, Electron.\n */\n readonly getRootNode = input<\n (() => ShadowRoot | Document | Node) | undefined\n >()\n\n /**\n * If true and the checkbox is not checked, the checkbox will be in the\n * `indeterminate` state.\n */\n readonly indeterminate = input<boolean | undefined, Booleanish>(undefined, {\n transform: booleanAttribute,\n })\n\n /**\n * {@link https://www.w3schools.com/html/html_id.asp id attribute}. If\n * omitted, a unique identifier will be generated for accessibility.)\n */\n readonly id = input<string | undefined>(undefined)\n\n /**\n * The value of checkbox input. Useful for form submission.\n * @default \"on\"\n */\n readonly value = input<string | undefined>()\n\n protected readonly switchContextService = inject(SwitchContextService)\n protected readonly document = inject(DOCUMENT)\n\n protected readonly hostId = computed(() => useId(this, this.id()))\n protected readonly trackBindings = useTrackBindings(() =>\n this.switchContextService.context().getRootBindings({id: this.hostId()}),\n )\n\n override ngOnInit() {\n super.ngOnInit()\n\n const machine = useMachine(\n switchMachine,\n computed<Explicit<SwitchApiProps>>(() => ({\n checked: this.checked(),\n defaultChecked: this.defaultChecked(),\n dir: this.dir(),\n disabled: this.isDisabled(),\n // angular handles this automatically with ngModel and Reactive Forms\n form: undefined,\n getRootNode: this.getRootNode() || (() => this.document),\n ids: undefined,\n invalid: this.invalid(),\n name: this.name(),\n onCheckedChange: (checked) => {\n this.onChange(checked)\n if (!this.control) {\n this.checkedChanged.emit(checked)\n this.checked.set(checked)\n }\n if (this.control && !this.control?.touched) {\n this.control?.markAsTouched?.()\n }\n },\n onFocusChange: (focused) => {\n if (!focused) {\n // only trigger on blur to prevent immediate validation, which would\n // occur as soon as the user interacts with the field.\n this.onTouched()\n }\n },\n readOnly: this.readOnly(),\n required: this.isRequired(),\n value: this.value(),\n })),\n this.injector,\n )\n\n this.switchContextService.init(\n computed(() => createSwitchApi(machine, normalizeProps)),\n )\n\n this.trackBindings()\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Directive, type OnInit} from \"@angular/core\"\n\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\n\nimport {useSwitchContext} from \"./switch-context.service\"\n\n@Directive()\nexport class CoreSwitchThumbDirective implements OnInit {\n protected readonly switchContext = useSwitchContext()\n\n protected readonly trackBindings = useTrackBindings(() =>\n this.switchContext().getThumbBindings(),\n )\n\n ngOnInit() {\n this.trackBindings()\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;AAAA;AACA;AAYM,MAAO,oBAAqB,SAAQ,qBAAgC,CAAA;wGAA7D,oBAAoB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;4GAApB,oBAAoB,EAAA,CAAA;;4FAApB,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBADhC;;AAGM,MAAM,CACX,cAAc,EACd,gBAAgB,EAChB,oBAAoB,EACrB,GAA0B,gBAAgB,CACzC,eAAe,EACf,oBAAoB;;ACrBtB;AACA;MASa,0BAA0B,CAAA;IAClB,aAAa,GAAG,gBAAgB,EAAE;AAElC,IAAA,aAAa,GAAG,gBAAgB,CAAC,MAClD,IAAI,CAAC,aAAa,EAAE,CAAC,kBAAkB,EAAE,CAC1C;IAED,QAAQ,GAAA;QACN,IAAI,CAAC,aAAa,EAAE;IACtB;wGATW,0BAA0B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAA1B,0BAA0B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;4FAA1B,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBADtC;;;ACTD;AACA;MAUa,4BAA4B,CAAA;AACvC;;;AAGG;IACM,EAAE,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SA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B,EAAE;AAElC,IAAA,aAAa,GAAG,gBAAgB,CAAC,MAClD,IAAI,CAAC,aAAa,EAAE,CAAC,gBAAgB,EAAE,CACxC;IAED,QAAQ,GAAA;QACN,IAAI,CAAC,aAAa,EAAE;IACtB;wGATW,wBAAwB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAAxB,wBAAwB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;4FAAxB,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBADpC;;;ACTD;;AAEG;;;;"}
|
package/number-input/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { NumberInput, Booleanish } from '@qualcomm-ui/utils/coercion';
|
|
|
6
6
|
import * as _qualcomm_ui_angular_core_machine from '@qualcomm-ui/angular-core/machine';
|
|
7
7
|
import { BaseApiContextService } from '@qualcomm-ui/angular-core/machine';
|
|
8
8
|
import * as _qualcomm_ui_core_number_input from '@qualcomm-ui/core/number-input';
|
|
9
|
-
import { NumberInputApi, NumberInputApiProps, NumberInputMode, NumberInputIntlTranslations, NumberInputValueChangeDetails, NumberInputValueInvalidDetails } from '@qualcomm-ui/core/number-input';
|
|
9
|
+
import { NumberInputApi, NumberInputApiProps, NumberInputMode, NumberInputIntlTranslations, UnitOption, NumberInputValueChangeDetails, NumberInputValueInvalidDetails } from '@qualcomm-ui/core/number-input';
|
|
10
10
|
import { SignalifyInput } from '@qualcomm-ui/angular-core/signals';
|
|
11
11
|
import { Direction } from '@qualcomm-ui/utils/direction';
|
|
12
12
|
|
|
@@ -289,6 +289,22 @@ declare class CoreNumberInputRootDirective extends AbstractNumberInputFormContro
|
|
|
289
289
|
* their states
|
|
290
290
|
*/
|
|
291
291
|
readonly translations: _angular_core.InputSignal<NumberInputIntlTranslations | undefined>;
|
|
292
|
+
/**
|
|
293
|
+
* The controlled unit value.
|
|
294
|
+
*/
|
|
295
|
+
readonly unit: _angular_core.InputSignal<string | undefined>;
|
|
296
|
+
/**
|
|
297
|
+
* The initial unit when uncontrolled. Defaults to first option if not provided.
|
|
298
|
+
*/
|
|
299
|
+
readonly defaultUnit: _angular_core.InputSignal<string | undefined>;
|
|
300
|
+
/**
|
|
301
|
+
* Array of unit options to display in the unit selector.
|
|
302
|
+
*/
|
|
303
|
+
readonly unitOptions: _angular_core.InputSignal<UnitOption[] | undefined>;
|
|
304
|
+
/**
|
|
305
|
+
* Event emitted when the selected unit changes.
|
|
306
|
+
*/
|
|
307
|
+
readonly unitChanged: _angular_core.OutputEmitterRef<string>;
|
|
292
308
|
/**
|
|
293
309
|
* Event emitted when the checkbox is checked or unchecked. This is only emitted
|
|
294
310
|
* on interaction. It doesn't emit in response to programmatic form control
|
|
@@ -308,7 +324,7 @@ declare class CoreNumberInputRootDirective extends AbstractNumberInputFormContro
|
|
|
308
324
|
};
|
|
309
325
|
ngOnInit(): void;
|
|
310
326
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CoreNumberInputRootDirective, never>;
|
|
311
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CoreNumberInputRootDirective, never, never, { "allowMouseWheel": { "alias": "allowMouseWheel"; "required": false; "isSignal": true; }; "allowOverflow": { "alias": "allowOverflow"; "required": false; "isSignal": true; }; "clampValueOnBlur": { "alias": "clampValueOnBlur"; "required": false; "isSignal": true; }; "dir": { "alias": "dir"; "required": false; "isSignal": true; }; "focusInputOnChange": { "alias": "focusInputOnChange"; "required": false; "isSignal": true; }; "formatOptions": { "alias": "formatOptions"; "required": false; "isSignal": true; }; "getRootNode": { "alias": "getRootNode"; "required": false; "isSignal": true; }; "inputMode": { "alias": "inputMode"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "locale": { "alias": "locale"; "required": false; "isSignal": true; }; "pattern": { "alias": "pattern"; "required": false; "isSignal": true; }; "spinOnPress": { "alias": "spinOnPress"; "required": false; "isSignal": true; }; "step": { "alias": "step"; "required": false; "isSignal": true; }; "translations": { "alias": "translations"; "required": false; "isSignal": true; }; }, { "valueChanged": "valueChanged"; "valueInvalid": "valueInvalid"; }, never, never, true, never>;
|
|
327
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CoreNumberInputRootDirective, never, never, { "allowMouseWheel": { "alias": "allowMouseWheel"; "required": false; "isSignal": true; }; "allowOverflow": { "alias": "allowOverflow"; "required": false; "isSignal": true; }; "clampValueOnBlur": { "alias": "clampValueOnBlur"; "required": false; "isSignal": true; }; "dir": { "alias": "dir"; "required": false; "isSignal": true; }; "focusInputOnChange": { "alias": "focusInputOnChange"; "required": false; "isSignal": true; }; "formatOptions": { "alias": "formatOptions"; "required": false; "isSignal": true; }; "getRootNode": { "alias": "getRootNode"; "required": false; "isSignal": true; }; "inputMode": { "alias": "inputMode"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "locale": { "alias": "locale"; "required": false; "isSignal": true; }; "pattern": { "alias": "pattern"; "required": false; "isSignal": true; }; "spinOnPress": { "alias": "spinOnPress"; "required": false; "isSignal": true; }; "step": { "alias": "step"; "required": false; "isSignal": true; }; "translations": { "alias": "translations"; "required": false; "isSignal": true; }; "unit": { "alias": "unit"; "required": false; "isSignal": true; }; "defaultUnit": { "alias": "defaultUnit"; "required": false; "isSignal": true; }; "unitOptions": { "alias": "unitOptions"; "required": false; "isSignal": true; }; }, { "unitChanged": "unitChanged"; "valueChanged": "valueChanged"; "valueInvalid": "valueInvalid"; }, never, never, true, never>;
|
|
312
328
|
}
|
|
313
329
|
|
|
314
330
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sources":["../../src/number-input/abstract-number-input-form-control.directive.ts","../../src/number-input/core-number-input-control.directive.ts","../../src/number-input/core-number-input-decrement-trigger.directive.ts","../../src/number-input/core-number-input-error-indicator.directive.ts","../../src/number-input/core-number-input-error-text.directive.ts","../../src/number-input/core-number-input-hint.directive.ts","../../src/number-input/core-number-input-increment-trigger.directive.ts","../../src/number-input/core-number-input-input-group.directive.ts","../../src/number-input/core-number-input-input.directive.ts","../../src/number-input/core-number-input-label.directive.ts","../../src/number-input/number-input-context.service.ts","../../src/number-input/core-number-input-root.directive.ts","../../src/number-input/number-input.validators.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null,null,null],"names":[],"mappings":";;;;;;;;;;;;AA2CA,uBAAA,uCAAA,YAAA,oBAAA,EAAA,MAAA;AAIE;;;;AAIG;2BACkB,aAAA,CAAA,wBAAA,qBAAA,WAAA;AAIrB;;;;AAIG;uBACc,aAAA,CAAA,wBAAA,sBAAA,UAAA;AAIjB;;;AAGG;sBACa,aAAA,CAAA,wBAAA,sBAAA,UAAA;AAIhB;;AAEG;mBACU,aAAA,CAAA,WAAA;AAEb;;;AAGG;uBACc,aAAA,CAAA,wBAAA,sBAAA,UAAA;AAIjB;;;AAGG;uBACc,aAAA,CAAA,wBAAA,sBAAA,UAAA;AAKjB,8BAAwB,aAAA,CAAA,cAAA;AACxB,oCAA8B,aAAA,CAAA,cAAA;AAC9B;AACA,iCAAA,QAAA;AACA,0CAAoC,aAAA,CAAA,cAAA,CAAA,iBAAA;AAGpC,sCAAgC,aAAA,CAAA,cAAA;;AAOhC,sCAAgC,aAAA,CAAA,cAAA,CAAA,aAAA;AAIhC;;;AAGG;AACH,mCAA6B,aAAA,CAAA,cAAA;wBAcX,aAAA,CAAA,MAAA;yBAyCC,aAAA,CAAA,cAAA;;;AA0GnB;;;;;;AAsBA,6BAAA,eAAA;AAIA;;AAEG;AACH;AA2BA;AAKA;;;AAUA;AAIA;;;;AAIG;AACH;;;AAGD;;AChWD,cAAA,+BAAA,YAAA,MAAA;AAEE,iDAAqC,8BAAA,CAAA,cAAA;+CAEL,iCAAA,CAAA,mBAAA;;;AAE9B;;;;AAKH;;ACVD,cAAA,w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AAA,cACpB,iEAAqB,iCAAA,CAAA,cAAA,0DAAA,cAAA,iBAAA,cAAA;AAAA,cACrB;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sources":["../../src/number-input/abstract-number-input-form-control.directive.ts","../../src/number-input/core-number-input-control.directive.ts","../../src/number-input/core-number-input-decrement-trigger.directive.ts","../../src/number-input/core-number-input-error-indicator.directive.ts","../../src/number-input/core-number-input-error-text.directive.ts","../../src/number-input/core-number-input-hint.directive.ts","../../src/number-input/core-number-input-increment-trigger.directive.ts","../../src/number-input/core-number-input-input-group.directive.ts","../../src/number-input/core-number-input-input.directive.ts","../../src/number-input/core-number-input-label.directive.ts","../../src/number-input/number-input-context.service.ts","../../src/number-input/core-number-input-root.directive.ts","../../src/number-input/number-input.validators.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null,null,null],"names":[],"mappings":";;;;;;;;;;;;AA2CA,uBAAA,uCAAA,YAAA,oBAAA,EAAA,MAAA;AAIE;;;;AAIG;2BACkB,aAAA,CAAA,wBAAA,qBAAA,WAAA;AAIrB;;;;AAIG;uBACc,aAAA,CAAA,wBAAA,sBAAA,UAAA;AAIjB;;;AAGG;sBACa,aAAA,CAAA,wBAAA,sBAAA,UAAA;AAIhB;;AAEG;mBACU,aAAA,CAAA,WAAA;AAEb;;;AAGG;uBACc,aAAA,CAAA,wBAAA,sBAAA,UAAA;AAIjB;;;AAGG;uBACc,aAAA,CAAA,wBAAA,sBAAA,UAAA;AAKjB,8BAAwB,aAAA,CAAA,cAAA;AACxB,oCAA8B,aAAA,CAAA,cAAA;AAC9B;AACA,iCAAA,QAAA;AACA,0CAAoC,aAAA,CAAA,cAAA,CAAA,iBAAA;AAGpC,sCAAgC,aAAA,CAAA,cAAA;;AAOhC,sCAAgC,aAAA,CAAA,cAAA,CAAA,aAAA;AAIhC;;;AAGG;AACH,mCAA6B,aAAA,CAAA,cAAA;wBAcX,aAAA,CAAA,MAAA;yBAyCC,aAAA,CAAA,cAAA;;;AA0Gn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A,WAAA;AAEb;;AAEG;0BACiB,aAAA,CAAA,WAAA;AAEpB;;AAEG;0BACiB,aAAA,CAAA,WAAA,CAAA,UAAA;AAEpB;;AAEG;0BACiB,aAAA,CAAA,gBAAA;AAEpB;;;;AAIG;2BACkB,aAAA,CAAA,gBAAA,CAAA,6BAAA;AAErB;;AAEG;2BACkB,aAAA,CAAA,gBAAA,CAAA,8BAAA;AAErB,iCAAA,QAAA;AAEA;AAEA,2CAAA,yBAAA;+CAEgC,iCAAA,CAAA,mBAAA;;;AAE9B;;;;AAoFH;;AC7RD;;;AAGG;AACH,iBAAA,uBAAA,UAAA,eAAA,GAAA,gBAAA;;;;"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qualcomm-ui/angular-core",
|
|
3
3
|
"description": "Design-agnostic Angular building blocks and utilities.",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.6.0",
|
|
5
5
|
"author": "Ryan Bower",
|
|
6
6
|
"license": "BSD-3-Clause-Clear",
|
|
7
7
|
"sideEffects": false,
|
|
@@ -204,7 +204,7 @@
|
|
|
204
204
|
"@angular/forms": ">=20 <23",
|
|
205
205
|
"@angular/platform-browser": ">=20 <23",
|
|
206
206
|
"@angular/platform-browser-dynamic": ">=20 <23",
|
|
207
|
-
"@qualcomm-ui/core": "^1.
|
|
207
|
+
"@qualcomm-ui/core": "^1.4.0",
|
|
208
208
|
"@qualcomm-ui/dom": "^1.0.7",
|
|
209
209
|
"@qualcomm-ui/utils": "^1.1.0",
|
|
210
210
|
"@tanstack/virtual-core": ">=3.13.12",
|