@qualcomm-ui/angular-core 1.6.0 → 2.0.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/fesm2022/qualcomm-ui-angular-core-accordion.mjs +44 -50
- package/fesm2022/qualcomm-ui-angular-core-accordion.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-avatar.mjs +24 -24
- package/fesm2022/qualcomm-ui-angular-core-avatar.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-checkbox.mjs +56 -66
- package/fesm2022/qualcomm-ui-angular-core-checkbox.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-collapsible.mjs +22 -24
- package/fesm2022/qualcomm-ui-angular-core-collapsible.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-collection.mjs +3 -3
- package/fesm2022/qualcomm-ui-angular-core-collection.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-combobox.mjs +116 -152
- package/fesm2022/qualcomm-ui-angular-core-combobox.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-dialog.mjs +64 -78
- package/fesm2022/qualcomm-ui-angular-core-dialog.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-dom.mjs +15 -15
- package/fesm2022/qualcomm-ui-angular-core-dom.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-events.mjs +4 -4
- package/fesm2022/qualcomm-ui-angular-core-events.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-highlight.mjs +9 -15
- package/fesm2022/qualcomm-ui-angular-core-highlight.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-inline-notification.mjs +32 -32
- package/fesm2022/qualcomm-ui-angular-core-inline-notification.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-input.mjs +35 -51
- package/fesm2022/qualcomm-ui-angular-core-input.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-locale.mjs +3 -3
- package/fesm2022/qualcomm-ui-angular-core-locale.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-lorem-ipsum.mjs +11 -23
- package/fesm2022/qualcomm-ui-angular-core-lorem-ipsum.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-machine.mjs +20 -20
- package/fesm2022/qualcomm-ui-angular-core-machine.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-menu.mjs +111 -127
- package/fesm2022/qualcomm-ui-angular-core-menu.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-number-input.mjs +80 -106
- package/fesm2022/qualcomm-ui-angular-core-number-input.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-observers.mjs +3 -3
- package/fesm2022/qualcomm-ui-angular-core-observers.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-pagination.mjs +46 -60
- package/fesm2022/qualcomm-ui-angular-core-pagination.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-password-input.mjs +46 -50
- package/fesm2022/qualcomm-ui-angular-core-password-input.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-popover.mjs +62 -66
- package/fesm2022/qualcomm-ui-angular-core-popover.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-portal.mjs +18 -22
- package/fesm2022/qualcomm-ui-angular-core-portal.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-presence.mjs +18 -24
- package/fesm2022/qualcomm-ui-angular-core-presence.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-progress-ring.mjs +30 -30
- package/fesm2022/qualcomm-ui-angular-core-progress-ring.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-progress.mjs +42 -54
- package/fesm2022/qualcomm-ui-angular-core-progress.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-radio.mjs +72 -80
- package/fesm2022/qualcomm-ui-angular-core-radio.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-segmented-control.mjs +32 -38
- package/fesm2022/qualcomm-ui-angular-core-segmented-control.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-select.mjs +88 -102
- package/fesm2022/qualcomm-ui-angular-core-select.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-side-nav.mjs +44 -58
- package/fesm2022/qualcomm-ui-angular-core-side-nav.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-signals.mjs +2 -2
- package/fesm2022/qualcomm-ui-angular-core-signals.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-slider.mjs +98 -102
- package/fesm2022/qualcomm-ui-angular-core-slider.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-state.mjs +5 -5
- package/fesm2022/qualcomm-ui-angular-core-state.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-switch.mjs +38 -40
- package/fesm2022/qualcomm-ui-angular-core-switch.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-tabs.mjs +51 -65
- package/fesm2022/qualcomm-ui-angular-core-tabs.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-text-area.mjs +34 -34
- package/fesm2022/qualcomm-ui-angular-core-text-area.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-text-input.mjs +37 -37
- package/fesm2022/qualcomm-ui-angular-core-text-input.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-toast.mjs +30 -30
- package/fesm2022/qualcomm-ui-angular-core-toast.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-tooltip.mjs +37 -45
- package/fesm2022/qualcomm-ui-angular-core-tooltip.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-tree.mjs +70 -78
- package/fesm2022/qualcomm-ui-angular-core-tree.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-virtual.mjs +5 -5
- package/fesm2022/qualcomm-ui-angular-core-virtual.mjs.map +1 -1
- package/package.json +57 -57
- package/{accordion/index.d.ts → types/qualcomm-ui-angular-core-accordion.d.ts} +1 -1
- package/types/qualcomm-ui-angular-core-accordion.d.ts.map +1 -0
- package/{attributes/index.d.ts → types/qualcomm-ui-angular-core-attributes.d.ts} +1 -1
- package/types/qualcomm-ui-angular-core-attributes.d.ts.map +1 -0
- package/{avatar/index.d.ts → types/qualcomm-ui-angular-core-avatar.d.ts} +1 -1
- package/types/qualcomm-ui-angular-core-avatar.d.ts.map +1 -0
- package/{checkbox/index.d.ts → types/qualcomm-ui-angular-core-checkbox.d.ts} +1 -1
- package/types/qualcomm-ui-angular-core-checkbox.d.ts.map +1 -0
- package/{collapsible/index.d.ts → types/qualcomm-ui-angular-core-collapsible.d.ts} +1 -1
- package/types/qualcomm-ui-angular-core-collapsible.d.ts.map +1 -0
- package/{collection/index.d.ts → types/qualcomm-ui-angular-core-collection.d.ts} +1 -1
- package/types/qualcomm-ui-angular-core-collection.d.ts.map +1 -0
- package/{combobox/index.d.ts → types/qualcomm-ui-angular-core-combobox.d.ts} +2 -2
- package/types/qualcomm-ui-angular-core-combobox.d.ts.map +1 -0
- package/{common/index.d.ts → types/qualcomm-ui-angular-core-common.d.ts} +1 -1
- package/types/qualcomm-ui-angular-core-common.d.ts.map +1 -0
- package/{dialog/index.d.ts → types/qualcomm-ui-angular-core-dialog.d.ts} +1 -1
- package/types/qualcomm-ui-angular-core-dialog.d.ts.map +1 -0
- package/{dom/index.d.ts → types/qualcomm-ui-angular-core-dom.d.ts} +1 -1
- package/types/qualcomm-ui-angular-core-dom.d.ts.map +1 -0
- package/{events/index.d.ts → types/qualcomm-ui-angular-core-events.d.ts} +1 -1
- package/types/qualcomm-ui-angular-core-events.d.ts.map +1 -0
- package/{forms/index.d.ts → types/qualcomm-ui-angular-core-forms.d.ts} +1 -1
- package/types/qualcomm-ui-angular-core-forms.d.ts.map +1 -0
- package/{highlight/index.d.ts → types/qualcomm-ui-angular-core-highlight.d.ts} +1 -1
- package/types/qualcomm-ui-angular-core-highlight.d.ts.map +1 -0
- package/{inline-notification/index.d.ts → types/qualcomm-ui-angular-core-inline-notification.d.ts} +1 -1
- package/types/qualcomm-ui-angular-core-inline-notification.d.ts.map +1 -0
- package/{input/index.d.ts → types/qualcomm-ui-angular-core-input.d.ts} +2 -2
- package/types/qualcomm-ui-angular-core-input.d.ts.map +1 -0
- package/{locale/index.d.ts → types/qualcomm-ui-angular-core-locale.d.ts} +1 -1
- package/types/qualcomm-ui-angular-core-locale.d.ts.map +1 -0
- package/{lorem-ipsum/index.d.ts → types/qualcomm-ui-angular-core-lorem-ipsum.d.ts} +1 -1
- package/types/qualcomm-ui-angular-core-lorem-ipsum.d.ts.map +1 -0
- package/{lucide/index.d.ts → types/qualcomm-ui-angular-core-lucide.d.ts} +1 -1
- package/types/qualcomm-ui-angular-core-lucide.d.ts.map +1 -0
- package/{machine/index.d.ts → types/qualcomm-ui-angular-core-machine.d.ts} +2 -2
- package/types/qualcomm-ui-angular-core-machine.d.ts.map +1 -0
- package/{menu/index.d.ts → types/qualcomm-ui-angular-core-menu.d.ts} +1 -1
- package/types/qualcomm-ui-angular-core-menu.d.ts.map +1 -0
- package/{number-input/index.d.ts → types/qualcomm-ui-angular-core-number-input.d.ts} +1 -1
- package/types/qualcomm-ui-angular-core-number-input.d.ts.map +1 -0
- package/{observers/index.d.ts → types/qualcomm-ui-angular-core-observers.d.ts} +1 -1
- package/types/qualcomm-ui-angular-core-observers.d.ts.map +1 -0
- package/{pagination/index.d.ts → types/qualcomm-ui-angular-core-pagination.d.ts} +1 -1
- package/types/qualcomm-ui-angular-core-pagination.d.ts.map +1 -0
- package/{password-input/index.d.ts → types/qualcomm-ui-angular-core-password-input.d.ts} +1 -1
- package/types/qualcomm-ui-angular-core-password-input.d.ts.map +1 -0
- package/{popover/index.d.ts → types/qualcomm-ui-angular-core-popover.d.ts} +1 -1
- package/types/qualcomm-ui-angular-core-popover.d.ts.map +1 -0
- package/{portal/index.d.ts → types/qualcomm-ui-angular-core-portal.d.ts} +1 -1
- package/types/qualcomm-ui-angular-core-portal.d.ts.map +1 -0
- package/{presence/index.d.ts → types/qualcomm-ui-angular-core-presence.d.ts} +1 -1
- package/types/qualcomm-ui-angular-core-presence.d.ts.map +1 -0
- package/{progress-ring/index.d.ts → types/qualcomm-ui-angular-core-progress-ring.d.ts} +1 -1
- package/types/qualcomm-ui-angular-core-progress-ring.d.ts.map +1 -0
- package/{progress/index.d.ts → types/qualcomm-ui-angular-core-progress.d.ts} +1 -1
- package/types/qualcomm-ui-angular-core-progress.d.ts.map +1 -0
- package/{radio/index.d.ts → types/qualcomm-ui-angular-core-radio.d.ts} +1 -1
- package/types/qualcomm-ui-angular-core-radio.d.ts.map +1 -0
- package/{segmented-control/index.d.ts → types/qualcomm-ui-angular-core-segmented-control.d.ts} +1 -1
- package/types/qualcomm-ui-angular-core-segmented-control.d.ts.map +1 -0
- package/{select/index.d.ts → types/qualcomm-ui-angular-core-select.d.ts} +1 -1
- package/types/qualcomm-ui-angular-core-select.d.ts.map +1 -0
- package/{side-nav/index.d.ts → types/qualcomm-ui-angular-core-side-nav.d.ts} +1 -1
- package/types/qualcomm-ui-angular-core-side-nav.d.ts.map +1 -0
- package/{signals/index.d.ts → types/qualcomm-ui-angular-core-signals.d.ts} +1 -1
- package/types/qualcomm-ui-angular-core-signals.d.ts.map +1 -0
- package/{slider/index.d.ts → types/qualcomm-ui-angular-core-slider.d.ts} +1 -1
- package/types/qualcomm-ui-angular-core-slider.d.ts.map +1 -0
- package/{state/index.d.ts → types/qualcomm-ui-angular-core-state.d.ts} +1 -1
- package/types/qualcomm-ui-angular-core-state.d.ts.map +1 -0
- package/{switch/index.d.ts → types/qualcomm-ui-angular-core-switch.d.ts} +1 -1
- package/types/qualcomm-ui-angular-core-switch.d.ts.map +1 -0
- package/{tabs/index.d.ts → types/qualcomm-ui-angular-core-tabs.d.ts} +1 -1
- package/types/qualcomm-ui-angular-core-tabs.d.ts.map +1 -0
- package/{text-area/index.d.ts → types/qualcomm-ui-angular-core-text-area.d.ts} +1 -1
- package/types/qualcomm-ui-angular-core-text-area.d.ts.map +1 -0
- package/{text-input/index.d.ts → types/qualcomm-ui-angular-core-text-input.d.ts} +1 -1
- package/types/qualcomm-ui-angular-core-text-input.d.ts.map +1 -0
- package/{toast/index.d.ts → types/qualcomm-ui-angular-core-toast.d.ts} +1 -1
- package/types/qualcomm-ui-angular-core-toast.d.ts.map +1 -0
- package/{tooltip/index.d.ts → types/qualcomm-ui-angular-core-tooltip.d.ts} +1 -1
- package/types/qualcomm-ui-angular-core-tooltip.d.ts.map +1 -0
- package/{tree/index.d.ts → types/qualcomm-ui-angular-core-tree.d.ts} +1 -1
- package/types/qualcomm-ui-angular-core-tree.d.ts.map +1 -0
- package/{virtual/index.d.ts → types/qualcomm-ui-angular-core-virtual.d.ts} +1 -1
- package/types/qualcomm-ui-angular-core-virtual.d.ts.map +1 -0
- package/types/qualcomm-ui-angular-core.d.ts +3 -0
- package/types/qualcomm-ui-angular-core.d.ts.map +1 -0
- package/accordion/index.d.ts.map +0 -1
- package/attributes/index.d.ts.map +0 -1
- package/avatar/index.d.ts.map +0 -1
- package/checkbox/index.d.ts.map +0 -1
- package/collapsible/index.d.ts.map +0 -1
- package/collection/index.d.ts.map +0 -1
- package/combobox/index.d.ts.map +0 -1
- package/common/index.d.ts.map +0 -1
- package/dialog/index.d.ts.map +0 -1
- package/dom/index.d.ts.map +0 -1
- package/events/index.d.ts.map +0 -1
- package/forms/index.d.ts.map +0 -1
- package/highlight/index.d.ts.map +0 -1
- package/index.d.ts +0 -3
- package/index.d.ts.map +0 -1
- package/inline-notification/index.d.ts.map +0 -1
- package/input/index.d.ts.map +0 -1
- package/locale/index.d.ts.map +0 -1
- package/lorem-ipsum/index.d.ts.map +0 -1
- package/lucide/index.d.ts.map +0 -1
- package/machine/index.d.ts.map +0 -1
- package/menu/index.d.ts.map +0 -1
- package/number-input/index.d.ts.map +0 -1
- package/observers/index.d.ts.map +0 -1
- package/pagination/index.d.ts.map +0 -1
- package/password-input/index.d.ts.map +0 -1
- package/popover/index.d.ts.map +0 -1
- package/portal/index.d.ts.map +0 -1
- package/presence/index.d.ts.map +0 -1
- package/progress/index.d.ts.map +0 -1
- package/progress-ring/index.d.ts.map +0 -1
- package/radio/index.d.ts.map +0 -1
- package/segmented-control/index.d.ts.map +0 -1
- package/select/index.d.ts.map +0 -1
- package/side-nav/index.d.ts.map +0 -1
- package/signals/index.d.ts.map +0 -1
- package/slider/index.d.ts.map +0 -1
- package/state/index.d.ts.map +0 -1
- package/switch/index.d.ts.map +0 -1
- package/tabs/index.d.ts.map +0 -1
- package/text-area/index.d.ts.map +0 -1
- package/text-input/index.d.ts.map +0 -1
- package/toast/index.d.ts.map +0 -1
- package/tooltip/index.d.ts.map +0 -1
- package/tree/index.d.ts.map +0 -1
- package/virtual/index.d.ts.map +0 -1
|
@@ -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-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":";;;;;;;;;;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,gBAAgB;AAC5B,SAAA,CAAA,CAAA,CAAC;AAEF;;;;AAIG;IACM,YAAY,GAAG,MAAM,EAAiB;;AAG5B,IAAA,KAAK,GAAG,MAAM,CAAgB,IAAI,iDAAC;IACnC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QAEpB,IAAI,CAAC,gBAAgB,CAAC,IAAI,CACxB,QAAQ,CAAC,OAAO;AACd,YAAA,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE;AACzB,YAAA,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE;SACpB,CAAC,CAAC,CACJ;IACH;wGA5DW,sBAAsB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAAtB,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;;;;"}
|
|
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":";;;;;;;;;;AAAA;AACA;MAwCsB,iCAAiC,CAAA;AAGrD;;;;AAIG;IACM,YAAY,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,cAAA,EAAA,CAAA,8BAAA,EAAA,CAAA,CAAU;AAEvC;;;;AAIG;IACM,QAAQ,GAAG,KAAK,CAAkC,SAAS,gFAClE,SAAS,EAAE,gBAAgB,EAAA,CAC3B;AAEF;;AAEG;IACM,IAAI,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,MAAA,EAAA,CAAA,8BAAA,EAAA,CAAA,CAAsB;AAE3C;;;AAGG;IACM,QAAQ,GAAG,KAAK,CAAkC,SAAS,gFAClE,SAAS,EAAE,gBAAgB,EAAA,CAC3B;AAEF;;;AAGG;IACM,QAAQ,GAA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AACpB,YAAA,aAAa,EAAE,eAAe;AAC/B,SAAA,CAAC;IACJ;IAEA,QAAQ,GAAA;QACN,IAAI,CAAC,aAAa,EAAE;QAEpB,IAAI,CAAC,gBAAgB,CAAC,IAAI,CACxB,QAAQ,CAAC,OAAO;AACd,YAAA,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE;AACzB,YAAA,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE;SACpB,CAAC,CAAC,CACJ;IACH;uGA5DW,sBAAsB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAAtB,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;;2FAAtB,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBADlC;;;ACtBD;;AAEG;;;;"}
|
|
@@ -9,10 +9,10 @@ import { checkboxMachine, createCheckboxApi } from '@qualcomm-ui/core/checkbox';
|
|
|
9
9
|
// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
|
|
10
10
|
// SPDX-License-Identifier: BSD-3-Clause-Clear
|
|
11
11
|
class SegmentedControlContextService extends BaseApiContextService {
|
|
12
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
13
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
12
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: SegmentedControlContextService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
13
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: SegmentedControlContextService });
|
|
14
14
|
}
|
|
15
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
15
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: SegmentedControlContextService, decorators: [{
|
|
16
16
|
type: Injectable
|
|
17
17
|
}] });
|
|
18
18
|
const [SEGMENTED_CONTROL_CONTEXT, useSegmentedControlContext, provideSegmentedControlContext,] = createApiContext("SegmentedControlContext", SegmentedControlContextService);
|
|
@@ -24,11 +24,11 @@ class CoreSegmentedControlRootDirective {
|
|
|
24
24
|
* HTML {@link https://www.w3schools.com/html/html_id.asp id attribute}. If
|
|
25
25
|
* omitted, a unique identifier will be generated for accessibility.)
|
|
26
26
|
*/
|
|
27
|
-
id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : []));
|
|
27
|
+
id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : /* istanbul ignore next */ []));
|
|
28
28
|
/**
|
|
29
29
|
* The document's text/writing direction.
|
|
30
30
|
*/
|
|
31
|
-
dir = input(...(ngDevMode ? [undefined, { debugName: "dir" }] : []));
|
|
31
|
+
dir = input(...(ngDevMode ? [undefined, { debugName: "dir" }] : /* istanbul ignore next */ []));
|
|
32
32
|
/**
|
|
33
33
|
* Function called once the value of the segmented control group changes.
|
|
34
34
|
*/
|
|
@@ -37,26 +37,22 @@ class CoreSegmentedControlRootDirective {
|
|
|
37
37
|
* Whether the group is disabled. When true, prevents user interaction and applies
|
|
38
38
|
* visual styling to indicate the disabled state..
|
|
39
39
|
*/
|
|
40
|
-
disabled = input(undefined, ...(ngDevMode ?
|
|
41
|
-
transform: booleanAttribute,
|
|
42
|
-
}]));
|
|
40
|
+
disabled = input(undefined, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
43
41
|
/**
|
|
44
42
|
* Whether the control allows multiple selections or not.
|
|
45
43
|
*/
|
|
46
|
-
multiple = input(undefined, ...(ngDevMode ?
|
|
47
|
-
transform: booleanAttribute,
|
|
48
|
-
}]));
|
|
44
|
+
multiple = input(undefined, { ...(ngDevMode ? { debugName: "multiple" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
49
45
|
/**
|
|
50
46
|
* Orientation of the segmented control group
|
|
51
47
|
*
|
|
52
48
|
* @default 'horizontal'
|
|
53
49
|
*/
|
|
54
|
-
orientation = input(...(ngDevMode ? [undefined, { debugName: "orientation" }] : []));
|
|
55
|
-
defaultValue = input(...(ngDevMode ? [undefined, { debugName: "defaultValue" }] : []));
|
|
56
|
-
name = input(...(ngDevMode ? [undefined, { debugName: "name" }] : []));
|
|
57
|
-
value = input(...(ngDevMode ? [undefined, { debugName: "value" }] : []));
|
|
50
|
+
orientation = input(...(ngDevMode ? [undefined, { debugName: "orientation" }] : /* istanbul ignore next */ []));
|
|
51
|
+
defaultValue = input(...(ngDevMode ? [undefined, { debugName: "defaultValue" }] : /* istanbul ignore next */ []));
|
|
52
|
+
name = input(...(ngDevMode ? [undefined, { debugName: "name" }] : /* istanbul ignore next */ []));
|
|
53
|
+
value = input(...(ngDevMode ? [undefined, { debugName: "value" }] : /* istanbul ignore next */ []));
|
|
58
54
|
segmentedControlContextService = inject(SegmentedControlContextService);
|
|
59
|
-
hostId = computed(() => useId(this, this.id()), ...(ngDevMode ? [{ debugName: "hostId" }] : []));
|
|
55
|
+
hostId = computed(() => useId(this, this.id()), ...(ngDevMode ? [{ debugName: "hostId" }] : /* istanbul ignore next */ []));
|
|
60
56
|
injector = inject(Injector);
|
|
61
57
|
isMounted = useIsMounted();
|
|
62
58
|
onDestroy = useOnDestroy();
|
|
@@ -84,10 +80,10 @@ class CoreSegmentedControlRootDirective {
|
|
|
84
80
|
this.segmentedControlContextService.init(computed(() => createSegmentedControlApi(machine, normalizeProps)));
|
|
85
81
|
this.trackBindings();
|
|
86
82
|
}
|
|
87
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
88
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
83
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: CoreSegmentedControlRootDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
84
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.2", type: CoreSegmentedControlRootDirective, isStandalone: true, inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, dir: { classPropertyName: "dir", publicName: "dir", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, defaultValue: { classPropertyName: "defaultValue", publicName: "defaultValue", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChanged: "valueChanged" }, ngImport: i0 });
|
|
89
85
|
}
|
|
90
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
86
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: CoreSegmentedControlRootDirective, decorators: [{
|
|
91
87
|
type: Directive
|
|
92
88
|
}], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], dir: [{ type: i0.Input, args: [{ isSignal: true, alias: "dir", required: false }] }], valueChanged: [{ type: i0.Output, args: ["valueChanged"] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], multiple: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiple", required: false }] }], orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }], defaultValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "defaultValue", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }] } });
|
|
93
89
|
|
|
@@ -98,13 +94,11 @@ class CoreSegmentedControlItemDirective {
|
|
|
98
94
|
* {@link https://www.w3schools.com/html/html_id.asp id attribute}. If
|
|
99
95
|
* omitted, a unique identifier will be generated for accessibility.)
|
|
100
96
|
*/
|
|
101
|
-
id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : []));
|
|
102
|
-
disabled = input(undefined, ...(ngDevMode ?
|
|
103
|
-
|
|
104
|
-
}]));
|
|
105
|
-
value = input.required(...(ngDevMode ? [{ debugName: "value" }] : []));
|
|
97
|
+
id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : /* istanbul ignore next */ []));
|
|
98
|
+
disabled = input(undefined, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
99
|
+
value = input.required(...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
106
100
|
onDestroy = useOnDestroy();
|
|
107
|
-
hostId = computed(() => useId(this, this.id()), ...(ngDevMode ? [{ debugName: "hostId" }] : []));
|
|
101
|
+
hostId = computed(() => useId(this, this.id()), ...(ngDevMode ? [{ debugName: "hostId" }] : /* istanbul ignore next */ []));
|
|
108
102
|
injector = inject(Injector);
|
|
109
103
|
checkboxContext = inject(CheckboxContextService);
|
|
110
104
|
context = useSegmentedControlContext();
|
|
@@ -130,10 +124,10 @@ class CoreSegmentedControlItemDirective {
|
|
|
130
124
|
this.checkboxContext.init(computed(() => createCheckboxApi(machine, normalizeProps)));
|
|
131
125
|
this.trackBindings();
|
|
132
126
|
}
|
|
133
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
134
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
127
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: CoreSegmentedControlItemDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
128
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.2", type: CoreSegmentedControlItemDirective, isStandalone: true, inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0 });
|
|
135
129
|
}
|
|
136
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
130
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: CoreSegmentedControlItemDirective, decorators: [{
|
|
137
131
|
type: Directive
|
|
138
132
|
}], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: true }] }] } });
|
|
139
133
|
|
|
@@ -144,9 +138,9 @@ class CoreSegmentedControlItemTextDirective {
|
|
|
144
138
|
* {@link https://www.w3schools.com/html/html_id.asp id attribute}. If
|
|
145
139
|
* omitted, a unique identifier will be generated for accessibility.)
|
|
146
140
|
*/
|
|
147
|
-
id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : []));
|
|
141
|
+
id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : /* istanbul ignore next */ []));
|
|
148
142
|
onDestroy = useOnDestroy();
|
|
149
|
-
hostId = computed(() => useId(this, this.id()), ...(ngDevMode ? [{ debugName: "hostId" }] : []));
|
|
143
|
+
hostId = computed(() => useId(this, this.id()), ...(ngDevMode ? [{ debugName: "hostId" }] : /* istanbul ignore next */ []));
|
|
150
144
|
context = useCheckboxContext();
|
|
151
145
|
trackBindings = useTrackBindings(() => this.context().getLabelBindings({
|
|
152
146
|
id: this.hostId(),
|
|
@@ -154,10 +148,10 @@ class CoreSegmentedControlItemTextDirective {
|
|
|
154
148
|
ngOnInit() {
|
|
155
149
|
this.trackBindings();
|
|
156
150
|
}
|
|
157
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
158
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
151
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: CoreSegmentedControlItemTextDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
152
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.2", type: CoreSegmentedControlItemTextDirective, isStandalone: true, inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
|
|
159
153
|
}
|
|
160
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
154
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: CoreSegmentedControlItemTextDirective, decorators: [{
|
|
161
155
|
type: Directive
|
|
162
156
|
}], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }] } });
|
|
163
157
|
|
|
@@ -168,9 +162,9 @@ class CoreSegmentedControlHiddenInputDirective {
|
|
|
168
162
|
* {@link https://www.w3schools.com/html/html_id.asp id attribute}. If
|
|
169
163
|
* omitted, a unique identifier will be generated for accessibility.)
|
|
170
164
|
*/
|
|
171
|
-
id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : []));
|
|
165
|
+
id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : /* istanbul ignore next */ []));
|
|
172
166
|
onDestroy = useOnDestroy();
|
|
173
|
-
hostId = computed(() => useId(this, this.id()), ...(ngDevMode ? [{ debugName: "hostId" }] : []));
|
|
167
|
+
hostId = computed(() => useId(this, this.id()), ...(ngDevMode ? [{ debugName: "hostId" }] : /* istanbul ignore next */ []));
|
|
174
168
|
context = useCheckboxContext();
|
|
175
169
|
trackBindings = useTrackBindings(() => this.context().getHiddenInputBindings({
|
|
176
170
|
id: this.hostId(),
|
|
@@ -178,10 +172,10 @@ class CoreSegmentedControlHiddenInputDirective {
|
|
|
178
172
|
ngOnInit() {
|
|
179
173
|
this.trackBindings();
|
|
180
174
|
}
|
|
181
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
182
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
175
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: CoreSegmentedControlHiddenInputDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
176
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.2", type: CoreSegmentedControlHiddenInputDirective, isStandalone: true, inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
|
|
183
177
|
}
|
|
184
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
178
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: CoreSegmentedControlHiddenInputDirective, decorators: [{
|
|
185
179
|
type: Directive
|
|
186
180
|
}], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }] } });
|
|
187
181
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"qualcomm-ui-angular-core-segmented-control.mjs","sources":["../../src/segmented-control/segmented-control-context.service.ts","../../src/segmented-control/core-segmented-control-root.directive.ts","../../src/segmented-control/core-segmented-control-item.directive.ts","../../src/segmented-control/core-segmented-control-item-text.directive.ts","../../src/segmented-control/core-segmented-control-hidden-input.directive.ts","../../src/segmented-control/qualcomm-ui-angular-core-segmented-control.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 BaseApiContextService,\n createApiContext,\n} from \"@qualcomm-ui/angular-core/machine\"\nimport type {SegmentedControlApi} from \"@qualcomm-ui/core/segmented-control\"\n\n@Injectable()\nexport class SegmentedControlContextService extends BaseApiContextService<SegmentedControlApi> {}\n\nexport const [\n SEGMENTED_CONTROL_CONTEXT,\n useSegmentedControlContext,\n provideSegmentedControlContext,\n] = createApiContext<SegmentedControlApi>(\n \"SegmentedControlContext\",\n SegmentedControlContextService,\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 Injector,\n input,\n type OnInit,\n output,\n} from \"@angular/core\"\n\nimport {\n useId,\n useIsMounted,\n useOnDestroy,\n} 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 createSegmentedControlApi,\n type SegmentedControlApiProps,\n segmentedControlMachine,\n type SegmentedControlOrientation,\n} from \"@qualcomm-ui/core/segmented-control\"\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 {SegmentedControlContextService} from \"./segmented-control-context.service\"\n\n@Directive()\nexport class CoreSegmentedControlRootDirective\n implements SignalifyInput<Omit<SegmentedControlApiProps, \"form\">>, OnInit\n{\n /**\n * HTML {@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 document's text/writing direction.\n */\n readonly dir = input<Direction | undefined>()\n\n /**\n * Function called once the value of the segmented control group changes.\n */\n readonly valueChanged = output<string[] | null | undefined>()\n\n /**\n * Whether the group is disabled. When true, prevents user interaction and applies\n * visual styling to indicate the disabled state..\n */\n readonly disabled = input<boolean | undefined, Booleanish>(undefined, {\n transform: booleanAttribute,\n })\n\n /**\n * Whether the control allows multiple selections or not.\n */\n readonly multiple = input<boolean | undefined, Booleanish>(undefined, {\n transform: booleanAttribute,\n })\n\n /**\n * Orientation of the segmented control group\n *\n * @default 'horizontal'\n */\n readonly orientation = input<SegmentedControlOrientation>()\n\n readonly defaultValue = input<string[]>()\n readonly name = input<string | undefined>()\n readonly value = input<string[] | null | undefined>()\n\n protected readonly segmentedControlContextService = inject(\n SegmentedControlContextService,\n )\n protected readonly hostId = computed(() => useId(this, this.id()))\n protected readonly injector = inject(Injector)\n protected readonly isMounted = useIsMounted()\n protected readonly onDestroy = useOnDestroy()\n\n protected readonly trackBindings = useTrackBindings(() =>\n this.segmentedControlContextService.context().getGroupBindings({\n id: this.hostId(),\n onDestroy: this.onDestroy,\n }),\n )\n\n ngOnInit() {\n const machine = useMachine(\n segmentedControlMachine,\n computed<Explicit<SegmentedControlApiProps>>(() => ({\n defaultValue: this.defaultValue(),\n dir: this.dir(),\n disabled: this.disabled(),\n form: \"\",\n id: this.hostId(),\n multiple: this.multiple(),\n name: this.name(),\n onValueChange: (event) => {\n if (this.isMounted()) {\n this.valueChanged.emit(event)\n }\n },\n orientation: this.orientation(),\n value: this.value(),\n })),\n this.injector,\n )\n\n this.segmentedControlContextService.init(\n computed(() => createSegmentedControlApi(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 {\n booleanAttribute,\n computed,\n Directive,\n inject,\n Injector,\n input,\n type OnInit,\n} from \"@angular/core\"\n\nimport {CheckboxContextService} from \"@qualcomm-ui/angular-core/checkbox\"\nimport {useId, useOnDestroy} 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 type CheckboxApiProps,\n checkboxMachine,\n createCheckboxApi,\n} from \"@qualcomm-ui/core/checkbox\"\nimport type {SegmentedControlItemApiProps} from \"@qualcomm-ui/core/segmented-control\"\nimport type {Booleanish} from \"@qualcomm-ui/utils/coercion\"\n\nimport {useSegmentedControlContext} from \"./segmented-control-context.service\"\n\n@Directive()\nexport class CoreSegmentedControlItemDirective\n implements OnInit, SignalifyInput<SegmentedControlItemApiProps>\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 readonly disabled = input<boolean | undefined, Booleanish>(undefined, {\n transform: booleanAttribute,\n })\n\n readonly value = input.required<string>()\n\n protected readonly onDestroy = useOnDestroy()\n private readonly hostId = computed(() => useId(this, this.id()))\n protected readonly injector = inject(Injector)\n\n protected readonly checkboxContext = inject(CheckboxContextService)\n\n protected readonly context = useSegmentedControlContext()\n\n protected readonly trackBindings = useTrackBindings(() => {\n const id = this.hostId()\n return {\n ...this.checkboxContext.context().getRootBindings({id}),\n ...this.context().getItemBindings({id}),\n }\n })\n\n ngOnInit() {\n const machine = useMachine(\n checkboxMachine,\n computed<CheckboxApiProps>(() => ({\n checked: this.context().value?.includes(this.value()),\n defaultChecked: this.context().defaultValue?.includes(this.value()),\n dir: this.context().dir,\n disabled: this.context().disabled || this.disabled(),\n name: this.context().getName(),\n onCheckedChange: (next) => {\n this.context().handleChange(this.value(), next)\n },\n value: this.value(),\n })),\n this.injector,\n )\n this.checkboxContext.init(\n computed(() => createCheckboxApi(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 {useCheckboxContext} from \"@qualcomm-ui/angular-core/checkbox\"\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\n@Directive()\nexport class CoreSegmentedControlItemTextDirective\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 onDestroy = useOnDestroy()\n\n private readonly hostId = computed(() => useId(this, this.id()))\n\n protected readonly context = useCheckboxContext()\n\n protected readonly trackBindings = useTrackBindings(() =>\n this.context().getLabelBindings({\n id: this.hostId(),\n }),\n )\n\n ngOnInit() {\n this.trackBindings()\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, Directive, input, type OnInit} from \"@angular/core\"\n\nimport {useCheckboxContext} from \"@qualcomm-ui/angular-core/checkbox\"\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\n@Directive()\nexport class CoreSegmentedControlHiddenInputDirective\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 onDestroy = useOnDestroy()\n\n private readonly hostId = computed(() => useId(this, this.id()))\n\n protected readonly context = useCheckboxContext()\n\n protected readonly trackBindings = useTrackBindings(() =>\n this.context().getHiddenInputBindings({\n id: this.hostId(),\n }),\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;AAWM,MAAO,8BAA+B,SAAQ,qBAA0C,CAAA;wGAAjF,8BAA8B,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;4GAA9B,8BAA8B,EAAA,CAAA;;4FAA9B,8BAA8B,EAAA,UAAA,EAAA,CAAA;kBAD1C;;AAGM,MAAM,CACX,yBAAyB,EACzB,0BAA0B,EAC1B,8BAA8B,EAC/B,GAAG,gBAAgB,CAClB,yBAAyB,EACzB,8BAA8B;;ACpBhC;AACA;MAqCa,iCAAiC,CAAA;AAG5C;;;AAGG;IACM,EAAE,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,IAAA,EAAA,CAAA,GAAA,EAAA,CAAA,CAAU;AAE7B;;AAEG;IACM,GAAG,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,KAAA,EAAA,CAAA,GAAA,EAAA,CAAA,CAAyB;A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A,SAAA,EAAA,EAAA,SAAA,EAAA,IAAA,EAAA,CAAA,GAAA,EAAA,CAAA,CAAU;IAEV,SAAS,GAAG,YAAY,EAAE;AAE5B,IAAA,MAAM,GAAG,QAAQ,CAAC,MAAM,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,kDAAC;IAE7C,OAAO,GAAG,kBAAkB,EAAE;AAE9B,IAAA,aAAa,GAAG,gBAAgB,CAAC,MAClD,IAAI,CAAC,OAAO,EAAE,CAAC,sBAAsB,CAAC;AACpC,QAAA,EAAE,EAAE,IAAI,CAAC,MAAM,EAAE;AAClB,KAAA,CAAC,CACH;IAED,QAAQ,GAAA;QACN,IAAI,CAAC,aAAa,EAAE;IACtB;wGAvBW,wCAAwC,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAAxC,wCAAwC,EAAA,YAAA,EAAA,IAAA,EAAA,MAAA,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,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;4FAAxC,wCAAwC,EAAA,UAAA,EAAA,CAAA;kBADpD;;;ACVD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"qualcomm-ui-angular-core-segmented-control.mjs","sources":["../../src/segmented-control/segmented-control-context.service.ts","../../src/segmented-control/core-segmented-control-root.directive.ts","../../src/segmented-control/core-segmented-control-item.directive.ts","../../src/segmented-control/core-segmented-control-item-text.directive.ts","../../src/segmented-control/core-segmented-control-hidden-input.directive.ts","../../src/segmented-control/qualcomm-ui-angular-core-segmented-control.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 BaseApiContextService,\n createApiContext,\n} from \"@qualcomm-ui/angular-core/machine\"\nimport type {SegmentedControlApi} from \"@qualcomm-ui/core/segmented-control\"\n\n@Injectable()\nexport class SegmentedControlContextService extends BaseApiContextService<SegmentedControlApi> {}\n\nexport const [\n SEGMENTED_CONTROL_CONTEXT,\n useSegmentedControlContext,\n provideSegmentedControlContext,\n] = createApiContext<SegmentedControlApi>(\n \"SegmentedControlContext\",\n SegmentedControlContextService,\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 Injector,\n input,\n type OnInit,\n output,\n} from \"@angular/core\"\n\nimport {\n useId,\n useIsMounted,\n useOnDestroy,\n} 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 createSegmentedControlApi,\n type SegmentedControlApiProps,\n segmentedControlMachine,\n type SegmentedControlOrientation,\n} from \"@qualcomm-ui/core/segmented-control\"\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 {SegmentedControlContextService} from \"./segmented-control-context.service\"\n\n@Directive()\nexport class CoreSegmentedControlRootDirective\n implements SignalifyInput<Omit<SegmentedControlApiProps, \"form\">>, OnInit\n{\n /**\n * HTML {@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 document's text/writing direction.\n */\n readonly dir = input<Direction | undefined>()\n\n /**\n * Function called once the value of the segmented control group changes.\n */\n readonly valueChanged = output<string[] | null | undefined>()\n\n /**\n * Whether the group is disabled. When true, prevents user interaction and applies\n * visual styling to indicate the disabled state..\n */\n readonly disabled = input<boolean | undefined, Booleanish>(undefined, {\n transform: booleanAttribute,\n })\n\n /**\n * Whether the control allows multiple selections or not.\n */\n readonly multiple = input<boolean | undefined, Booleanish>(undefined, {\n transform: booleanAttribute,\n })\n\n /**\n * Orientation of the segmented control group\n *\n * @default 'horizontal'\n */\n readonly orientation = input<SegmentedControlOrientation>()\n\n readonly defaultValue = input<string[]>()\n readonly name = input<string | undefined>()\n readonly value = input<string[] | null | undefined>()\n\n protected readonly segmentedControlContextService = inject(\n SegmentedControlContextService,\n )\n protected readonly hostId = computed(() => useId(this, this.id()))\n protected readonly injector = inject(Injector)\n protected readonly isMounted = useIsMounted()\n protected readonly onDestroy = useOnDestroy()\n\n protected readonly trackBindings = useTrackBindings(() =>\n this.segmentedControlContextService.context().getGroupBindings({\n id: this.hostId(),\n onDestroy: this.onDestroy,\n }),\n )\n\n ngOnInit() {\n const machine = useMachine(\n segmentedControlMachine,\n computed<Explicit<SegmentedControlApiProps>>(() => ({\n defaultValue: this.defaultValue(),\n dir: this.dir(),\n disabled: this.disabled(),\n form: \"\",\n id: this.hostId(),\n multiple: this.multiple(),\n name: this.name(),\n onValueChange: (event) => {\n if (this.isMounted()) {\n this.valueChanged.emit(event)\n }\n },\n orientation: this.orientation(),\n value: this.value(),\n })),\n this.injector,\n )\n\n this.segmentedControlContextService.init(\n computed(() => createSegmentedControlApi(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 {\n booleanAttribute,\n computed,\n Directive,\n inject,\n Injector,\n input,\n type OnInit,\n} from \"@angular/core\"\n\nimport {CheckboxContextService} from \"@qualcomm-ui/angular-core/checkbox\"\nimport {useId, useOnDestroy} 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 type CheckboxApiProps,\n checkboxMachine,\n createCheckboxApi,\n} from \"@qualcomm-ui/core/checkbox\"\nimport type {SegmentedControlItemApiProps} from \"@qualcomm-ui/core/segmented-control\"\nimport type {Booleanish} from \"@qualcomm-ui/utils/coercion\"\n\nimport {useSegmentedControlContext} from \"./segmented-control-context.service\"\n\n@Directive()\nexport class CoreSegmentedControlItemDirective\n implements OnInit, SignalifyInput<SegmentedControlItemApiProps>\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 readonly disabled = input<boolean | undefined, Booleanish>(undefined, {\n transform: booleanAttribute,\n })\n\n readonly value = input.required<string>()\n\n protected readonly onDestroy = useOnDestroy()\n private readonly hostId = computed(() => useId(this, this.id()))\n protected readonly injector = inject(Injector)\n\n protected readonly checkboxContext = inject(CheckboxContextService)\n\n protected readonly context = useSegmentedControlContext()\n\n protected readonly trackBindings = useTrackBindings(() => {\n const id = this.hostId()\n return {\n ...this.checkboxContext.context().getRootBindings({id}),\n ...this.context().getItemBindings({id}),\n }\n })\n\n ngOnInit() {\n const machine = useMachine(\n checkboxMachine,\n computed<CheckboxApiProps>(() => ({\n checked: this.context().value?.includes(this.value()),\n defaultChecked: this.context().defaultValue?.includes(this.value()),\n dir: this.context().dir,\n disabled: this.context().disabled || this.disabled(),\n name: this.context().getName(),\n onCheckedChange: (next) => {\n this.context().handleChange(this.value(), next)\n },\n value: this.value(),\n })),\n this.injector,\n )\n this.checkboxContext.init(\n computed(() => createCheckboxApi(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 {useCheckboxContext} from \"@qualcomm-ui/angular-core/checkbox\"\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\n@Directive()\nexport class CoreSegmentedControlItemTextDirective\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 onDestroy = useOnDestroy()\n\n private readonly hostId = computed(() => useId(this, this.id()))\n\n protected readonly context = useCheckboxContext()\n\n protected readonly trackBindings = useTrackBindings(() =>\n this.context().getLabelBindings({\n id: this.hostId(),\n }),\n )\n\n ngOnInit() {\n this.trackBindings()\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, Directive, input, type OnInit} from \"@angular/core\"\n\nimport {useCheckboxContext} from \"@qualcomm-ui/angular-core/checkbox\"\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\n@Directive()\nexport class CoreSegmentedControlHiddenInputDirective\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 onDestroy = useOnDestroy()\n\n private readonly hostId = computed(() => useId(this, this.id()))\n\n protected readonly context = useCheckboxContext()\n\n protected readonly trackBindings = useTrackBindings(() =>\n this.context().getHiddenInputBindings({\n id: this.hostId(),\n }),\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;AAWM,MAAO,8BAA+B,SAAQ,qB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