@qualcomm-ui/angular-core 1.0.1 → 1.0.2
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/README.md +9 -0
- package/checkbox/core-checkbox-root.directive.d.ts +1 -1
- package/checkbox/core-checkbox-root.directive.d.ts.map +1 -1
- package/esm2022/checkbox/core-checkbox-root.directive.js.map +1 -1
- package/esm2022/number-input/core-number-input-root.directive.js +3 -1
- package/esm2022/number-input/core-number-input-root.directive.js.map +1 -1
- package/esm2022/password-input/core-password-input-root.directive.js +1 -1
- package/esm2022/password-input/core-password-input-root.directive.js.map +1 -1
- package/esm2022/popover/core-popover-root.directive.js.map +1 -1
- package/esm2022/radio/core-radio-group.directive.js +3 -1
- package/esm2022/radio/core-radio-group.directive.js.map +1 -1
- package/esm2022/switch/core-switch-root.directive.js.map +1 -1
- package/esm2022/tabs/core-tabs-root.directive.js +3 -1
- package/esm2022/tabs/core-tabs-root.directive.js.map +1 -1
- package/esm2022/text-input/core-text-input-root.directive.js +1 -1
- package/esm2022/text-input/core-text-input-root.directive.js.map +1 -1
- package/number-input/core-number-input-root.directive.d.ts +1 -0
- package/number-input/core-number-input-root.directive.d.ts.map +1 -1
- package/package.json +18 -19
- package/password-input/core-password-input-root.directive.d.ts +1 -1
- package/password-input/core-password-input-root.directive.d.ts.map +1 -1
- package/popover/core-popover-root.directive.d.ts +1 -1
- package/popover/core-popover-root.directive.d.ts.map +1 -1
- package/radio/core-radio-group.directive.d.ts +1 -0
- package/radio/core-radio-group.directive.d.ts.map +1 -1
- package/switch/core-switch-root.directive.d.ts +1 -1
- package/switch/core-switch-root.directive.d.ts.map +1 -1
- package/tabs/core-tabs-root.directive.d.ts +1 -0
- package/tabs/core-tabs-root.directive.d.ts.map +1 -1
- package/text-input/core-text-input-root.directive.d.ts +1 -1
- package/text-input/core-text-input-root.directive.d.ts.map +1 -1
package/README.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# @qualcomm-ui/angular-core
|
|
2
|
+
|
|
3
|
+
Design-agnostic Angular building blocks and utilities.
|
|
4
|
+
|
|
5
|
+
This package provides low-level Angular primitives that power the QUI component library. For comprehensive documentation and usage guides, visit the [Angular documentation](https://angular-next.qui.qualcomm.com/).
|
|
6
|
+
|
|
7
|
+
## License
|
|
8
|
+
|
|
9
|
+
Licensed under the [BSD-3-Clause-Clear License](https://spdx.org/licenses/BSD-3-Clause-Clear.html).
|
|
@@ -35,7 +35,7 @@ export declare class CoreCheckboxRootDirective extends AbstractCheckboxFormContr
|
|
|
35
35
|
*/
|
|
36
36
|
readonly value: import("@angular/core").InputSignal<string | undefined>;
|
|
37
37
|
protected readonly checkboxContextService: CheckboxContextService;
|
|
38
|
-
protected document: Document;
|
|
38
|
+
protected readonly document: Document;
|
|
39
39
|
protected readonly hostId: import("@angular/core").Signal<string>;
|
|
40
40
|
protected readonly trackBindings: ((opts?: import("dist/machine").TrackBindingsConfig) => void) & {
|
|
41
41
|
extendWith: (computedProps: () => import("dist/machine").Dict) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core-checkbox-root.directive.d.ts","sourceRoot":"","sources":["../../../src/checkbox/core-checkbox-root.directive.ts"],"names":[],"mappings":"AAIA,OAAO,EAML,KAAK,MAAM,EACZ,MAAM,eAAe,CAAA;AACtB,OAAO,EAAC,KAAK,oBAAoB,EAAC,MAAM,gBAAgB,CAAA;AAQxD,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,mCAAmC,CAAA;AACrE,OAAO,EACL,KAAK,gBAAgB,EAGtB,MAAM,4BAA4B,CAAA;AACnC,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,6BAA6B,CAAA;AAC3D,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,8BAA8B,CAAA;AAG3D,OAAO,EAAC,oCAAoC,EAAC,MAAM,4CAA4C,CAAA;AAC/F,OAAO,EAAC,sBAAsB,EAAC,MAAM,4BAA4B,CAAA;;AAEjE,qBACa,yBACX,SAAQ,oCACR,YACE,cAAc,CAAC,IAAI,CAAC,gBAAgB,EAAE,SAAS,GAAG,MAAM,GAAG,KAAK,CAAC,CAAC,EAClE,oBAAoB,EACpB,MAAM;IAER;;;;OAIG;IACH,QAAQ,CAAC,GAAG,6DAA0C;IAEtD;;;OAGG;IACH,QAAQ,CAAC,WAAW,6CACX,UAAU,GAAG,QAAQ,GAAG,IAAI,eAClC;IAEH;;;OAGG;IACH,QAAQ,CAAC,aAAa,oFAEpB;IAEF;;;OAGG;IACH,QAAQ,CAAC,EAAE,0DAAuC;IAElD;;;OAGG;IACH,QAAQ,CAAC,KAAK,0DAA8B;IAE5C,SAAS,CAAC,QAAQ,CAAC,sBAAsB,yBAAiC;IAC1E,SAAS,CAAC,QAAQ,WAAmB;
|
|
1
|
+
{"version":3,"file":"core-checkbox-root.directive.d.ts","sourceRoot":"","sources":["../../../src/checkbox/core-checkbox-root.directive.ts"],"names":[],"mappings":"AAIA,OAAO,EAML,KAAK,MAAM,EACZ,MAAM,eAAe,CAAA;AACtB,OAAO,EAAC,KAAK,oBAAoB,EAAC,MAAM,gBAAgB,CAAA;AAQxD,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,mCAAmC,CAAA;AACrE,OAAO,EACL,KAAK,gBAAgB,EAGtB,MAAM,4BAA4B,CAAA;AACnC,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,6BAA6B,CAAA;AAC3D,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,8BAA8B,CAAA;AAG3D,OAAO,EAAC,oCAAoC,EAAC,MAAM,4CAA4C,CAAA;AAC/F,OAAO,EAAC,sBAAsB,EAAC,MAAM,4BAA4B,CAAA;;AAEjE,qBACa,yBACX,SAAQ,oCACR,YACE,cAAc,CAAC,IAAI,CAAC,gBAAgB,EAAE,SAAS,GAAG,MAAM,GAAG,KAAK,CAAC,CAAC,EAClE,oBAAoB,EACpB,MAAM;IAER;;;;OAIG;IACH,QAAQ,CAAC,GAAG,6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;;OAGG;IACM,WAAW,GAAG,KAAK,iEAEzB,CAAA;IAEH;;;OAGG;IACM,aAAa,GAAG,KAAK,CAAkC,SAAS,iDACvE,SAAS,EAAE,gBAAgB,OAD8C;YACzE,SAAS,EAAE,gBAAgB;SAC5B,GAAC,CAAA;IAEF;;;OAGG;IACM,EAAE,GAAG,KAAK,CAAqB,SAAS,8CAAC,CAAA;IAElD;;;OAGG;IACM,KAAK,GAAG,KAAK,2DAAsB,CAAA;IAEzB,sBAAsB,GAAG,MAAM,CAAC,sBAAsB,CAAC,CAAA;
|
|
1
|
+
{"version":3,"file":"core-checkbox-root.directive.js","sourceRoot":"","sources":["../../../src/checkbox/core-checkbox-root.directive.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,8CAA8C;AAE9C,OAAO,EAAC,QAAQ,EAAC,MAAM,iBAAiB,CAAA;AACxC,OAAO,EACL,gBAAgB,EAChB,QAAQ,EACR,SAAS,EACT,MAAM,EACN,KAAK,GAEN,MAAM,eAAe,CAAA;AACtB,OAAO,EAA2B,MAAM,gBAAgB,CAAA;AAExD,OAAO,EAAC,KAAK,EAAC,MAAM,kCAAkC,CAAA;AACtD,OAAO,EACL,cAAc,EACd,UAAU,EACV,gBAAgB,GACjB,MAAM,mCAAmC,CAAA;AAE1C,OAAO,EAEL,eAAe,EACf,iBAAiB,GAClB,MAAM,4BAA4B,CAAA;AAKnC,OAAO,EAAC,oCAAoC,EAAC,MAAM,4CAA4C,CAAA;AAC/F,OAAO,EAAC,sBAAsB,EAAC,MAAM,4BAA4B,CAAA;;AAGjE,MAAM,OAAO,yBACX,SAAQ,oCAAoC;IAM5C;;;;OAIG;IACM,GAAG,GAAG,KAAK,CAAwB,SAAS,+CAAC,CAAA;IAEtD;;;OAGG;IACM,WAAW,GAAG,KAAK,iEAEzB,CAAA;IAEH;;;OAGG;IACM,aAAa,GAAG,KAAK,CAAkC,SAAS,iDACvE,SAAS,EAAE,gBAAgB,OAD8C;YACzE,SAAS,EAAE,gBAA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AI,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;oBAClB,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;oBACjC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAA;gBAC3B,CAAC;gBACD,IAAI,IAAI,CAAC,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,CAAC;oBAC3C,IAAI,CAAC,SAAS,EAAE,CAAA;gBAClB,CAAC;YACH,CAAC;YACD,aAAa,EAAE,CAAC,OAAO,EAAE,EAAE;gBACzB,IAAI,CAAC,OAAO,EAAE,CAAC;oBACb,kCAAkC;oBAClC,IAAI,CAAC,SAAS,EAAE,CAAA;gBAClB,CAAC;YACH,CAAC;YACD,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE;YACzB,QAAQ,EAAE,IAAI,CAAC,UAAU,EAAE;YAC3B,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE;SACpB,CAAC,CAAC,EACH,IAAI,CAAC,QAAQ,CACd,CAAA;QAED,IAAI,CAAC,sBAAsB,CAAC,IAAI,CAC9B,QAAQ,CAAC,GAAG,EAAE,CAAC,iBAAiB,CAAC,OAAO,EAAE,cAAc,CAAC,CAAC,CAC3D,CAAA;QAED,IAAI,CAAC,aAAa,EAAE,CAAA;IACtB,CAAC;wGA/FU,yBAAyB;4FAAzB,yBAAyB;;4FAAzB,yBAAyB;kBADrC,SAAS","sourcesContent":["// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {DOCUMENT} from \"@angular/common\"\nimport {\n booleanAttribute,\n computed,\n Directive,\n inject,\n input,\n type OnInit,\n} from \"@angular/core\"\nimport {type ControlValueAccessor} from \"@angular/forms\"\n\nimport {useId} from \"@qualcomm-ui/angular-core/common\"\nimport {\n normalizeProps,\n useMachine,\n useTrackBindings,\n} from \"@qualcomm-ui/angular-core/machine\"\nimport type {SignalifyInput} from \"@qualcomm-ui/angular-core/signals\"\nimport {\n type CheckboxApiProps,\n checkboxMachine,\n createCheckboxApi,\n} from \"@qualcomm-ui/core/checkbox\"\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 {AbstractCheckboxFormControlDirective} from \"./abstract-checkbox-form-control.directive\"\nimport {CheckboxContextService} from \"./checkbox-context.service\"\n\n@Directive()\nexport class CoreCheckboxRootDirective\n extends AbstractCheckboxFormControlDirective\n implements\n SignalifyInput<Omit<CheckboxApiProps, \"checked\" | \"form\" | \"ids\">>,\n ControlValueAccessor,\n OnInit\n{\n /**\n * The document's text/writing direction.\n *\n * @default \"ltr\"\n */\n readonly dir = input<Direction | undefined>(undefined)\n\n /**\n * A root node to correctly resolve the Document in custom environments. i.e.,\n * Iframes, Electron.\n */\n readonly getRootNode = input<\n (() => ShadowRoot | Document | Node) | undefined\n >()\n\n /**\n * If true and the checkbox is not checked, the checkbox will be in the\n * `indeterminate` state.\n */\n readonly indeterminate = input<boolean | undefined, Booleanish>(undefined, {\n transform: booleanAttribute,\n })\n\n /**\n * {@link https://www.w3schools.com/html/html_id.asp id attribute}. If\n * omitted, a unique identifier will be generated for accessibility.)\n */\n readonly id = input<string | undefined>(undefined)\n\n /**\n * The value of checkbox input. Useful for form submission.\n * @default \"on\"\n */\n readonly value = input<string | undefined>()\n\n protected readonly checkboxContextService = inject(CheckboxContextService)\n protected readonly document = inject(DOCUMENT)\n\n protected readonly hostId = computed(() => useId(this, this.id()))\n protected readonly trackBindings = useTrackBindings(() =>\n this.checkboxContextService.context().getRootBindings({id: this.hostId()}),\n )\n\n override ngOnInit() {\n super.ngOnInit()\n\n const machine = useMachine(\n checkboxMachine,\n computed<Explicit<CheckboxApiProps>>(() => ({\n checked: this.checked(),\n defaultChecked: this.defaultChecked(),\n dir: this.dir(),\n disabled: this.isDisabled(),\n // angular handles this automatically with ngModel and Reactive Forms\n form: undefined,\n getRootNode: this.getRootNode() || (() => this.document),\n ids: undefined,\n indeterminate: this.indeterminate(),\n invalid: this.invalid(),\n name: this.name(),\n onCheckedChange: (checked) => {\n this.onChange(checked)\n if (!this.control) {\n this.checkedChanged.emit(checked)\n this.checked.set(checked)\n }\n if (this.control && !this.control?.touched) {\n this.onTouched()\n }\n },\n onFocusChange: (focused) => {\n if (!focused) {\n // only trigger onTouched on blur.\n this.onTouched()\n }\n },\n readOnly: this.readOnly(),\n required: this.isRequired(),\n value: this.value(),\n })),\n this.injector,\n )\n\n this.checkboxContextService.init(\n computed(() => createCheckboxApi(machine, normalizeProps)),\n )\n\n this.trackBindings()\n }\n}\n"]}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
|
|
2
2
|
// SPDX-License-Identifier: BSD-3-Clause-Clear
|
|
3
|
+
import { DOCUMENT } from "@angular/common";
|
|
3
4
|
import { booleanAttribute, computed, Directive, inject, input, output, } from "@angular/core";
|
|
4
5
|
import { numberAttributeOrUndefined } from "@qualcomm-ui/angular-core/attributes";
|
|
5
6
|
import { useIsMounted } from "@qualcomm-ui/angular-core/common";
|
|
@@ -114,6 +115,7 @@ export class CoreNumberInputRootDirective extends AbstractNumberInputFormControl
|
|
|
114
115
|
* Function invoked when the value overflows or underflows the min/max range
|
|
115
116
|
*/
|
|
116
117
|
valueInvalid = output();
|
|
118
|
+
document = inject(DOCUMENT);
|
|
117
119
|
isMounted = useIsMounted();
|
|
118
120
|
numberInputContext = inject(NumberInputContextService);
|
|
119
121
|
trackBindings = useTrackBindings(() => {
|
|
@@ -135,7 +137,7 @@ export class CoreNumberInputRootDirective extends AbstractNumberInputFormControl
|
|
|
135
137
|
// angular handles this automatically with ngModel and Reactive Forms
|
|
136
138
|
form: undefined,
|
|
137
139
|
formatOptions: this.formatOptions(),
|
|
138
|
-
getRootNode: this.getRootNode(),
|
|
140
|
+
getRootNode: this.getRootNode() ?? (() => this.document),
|
|
139
141
|
ids: undefined,
|
|
140
142
|
inputMode: this.inputMode(),
|
|
141
143
|
invalid: this.isInvalid(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core-number-input-root.directive.js","sourceRoot":"","sources":["../../../src/number-input/core-number-input-root.directive.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,8CAA8C;AAE9C,OAAO,EACL,gBAAgB,EAChB,QAAQ,EACR,SAAS,EACT,MAAM,EACN,KAAK,EAEL,MAAM,GACP,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAC,0BAA0B,EAAC,MAAM,sCAAsC,CAAA;AAC/E,OAAO,EAAC,YAAY,EAAC,MAAM,kCAAkC,CAAA;AAC7D,OAAO,EACL,cAAc,EACd,UAAU,EACV,gBAAgB,GACjB,MAAM,mCAAmC,CAAA;AAE1C,OAAO,EACL,oBAAoB,EAGpB,kBAAkB,GAInB,MAAM,gCAAgC,CAAA;AAGvC,OAAO,EAAe,MAAM,0BAA0B,CAAA;AAEtD,OAAO,EAAC,uCAAuC,EAAC,MAAM,gDAAgD,CAAA;AACtG,OAAO,EAAC,yBAAyB,EAAC,MAAM,gCAAgC,CAAA;;AAGxE,MAAM,OAAO,4BACX,SAAQ,uCAAuC;IAQ/C;;OAEG;IACM,eAAe,GAAG,KAAK,CAAkC,SAAS,mDACzE,SAAS,EAAE,gBAAgB,OADgD;YAC3E,SAAS,EAAE,gBAAgB;SAC5B,GAAC,CAAA;IAEF;;;OAGG;IACM,aAAa,GAAG,KAAK,CAAkC,SAAS,iDACvE,SAAS,EAAE,gBAAgB,OAD8C;YACzE,SAAS,EAAE,gBAAgB;SAC5B,GAAC,CAAA;IAEF;;;OAGG;IACM,gBAAgB,GAAG,KAAK,CAC/B,SAAS,oDAEP,SAAS,EAAE,gBAAgB,OAD7B;YACE,SAAS,EAAE,gBAAgB;SAC5B,GACF,CAAA;IAED;;;;OAIG;IACM,GAAG,GAA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,CAAC,EACF,IAAI,CAAC,QAAQ,CACd,CAAA;QAED,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAC1B,QAAQ,CAAC,GAAG,EAAE,CAAC,oBAAoB,CAAC,OAAO,EAAE,cAAc,CAAC,CAAC,CAC9D,CAAA;QAED,IAAI,CAAC,aAAa,EAAE,CAAA;IACtB,CAAC;wGA3NU,4BAA4B;4FAA5B,4BAA4B;;4FAA5B,4BAA4B;kBADxC,SAAS","sourcesContent":["// 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 output,\n} from \"@angular/core\"\n\nimport {numberAttributeOrUndefined} from \"@qualcomm-ui/angular-core/attributes\"\nimport {useIsMounted} 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 createNumberInputApi,\n type NumberInputApiProps,\n type NumberInputIntlTranslations,\n numberInputMachine,\n type NumberInputMode,\n type NumberInputValueChangeDetails,\n type NumberInputValueInvalidDetails,\n} from \"@qualcomm-ui/core/number-input\"\nimport type {Booleanish, NumberInput} from \"@qualcomm-ui/utils/coercion\"\nimport type {Direction} from \"@qualcomm-ui/utils/direction\"\nimport {type Explicit} from \"@qualcomm-ui/utils/guard\"\n\nimport {AbstractNumberInputFormControlDirective} from \"./abstract-number-input-form-control.directive\"\nimport {NumberInputContextService} from \"./number-input-context.service\"\n\n@Directive()\nexport class CoreNumberInputRootDirective\n extends AbstractNumberInputFormControlDirective\n implements\n OnInit,\n Omit<\n SignalifyInput<NumberInputApiProps>,\n \"defaultValue\" | \"form\" | \"ids\" | \"value\"\n >\n{\n /**\n * Whether to allow mouse wheel to change the value\n */\n readonly allowMouseWheel = input<boolean | undefined, Booleanish>(undefined, {\n transform: booleanAttribute,\n })\n\n /**\n * Whether to allow the value to overflow the min/max range\n * @default true\n */\n readonly allowOverflow = input<boolean | undefined, Booleanish>(undefined, {\n transform: booleanAttribute,\n })\n\n /**\n * Whether to clamp the value when the input loses focus (blur)\n * @default true\n */\n readonly clampValueOnBlur = input<boolean | undefined, Booleanish>(\n undefined,\n {\n transform: booleanAttribute,\n },\n )\n\n /**\n * The document's text/writing direction.\n *\n * @default \"ltr\"\n */\n readonly dir = input<Direction | undefined>(undefined)\n\n /**\n * Whether to focus the input when the value changes\n *\n * @default true\n */\n readonly focusInputOnChange = input<boolean | undefined, Booleanish>(\n undefined,\n {\n transform: booleanAttribute,\n },\n )\n\n /**\n * The options to pass to the `Intl.NumberFormat` constructor\n */\n readonly formatOptions = input<Intl.NumberFormatOptions | undefined>()\n\n /**\n * A root node to correctly resolve the Document in custom environments. i.e.,\n * Iframes, Electron.\n */\n readonly getRootNode = input<\n (() => ShadowRoot | Document | Node) | undefined\n >()\n\n /**\n * Hints at the type of data that might be entered by the user. It also determines\n * the type of keyboard shown to the user on mobile devices\n * @default \"decimal\"\n */\n readonly inputMode = input<NumberInputMode | undefined>()\n\n /**\n * The maximum value of the number input\n * @default Number.MAX_SAFE_INTEGER\n */\n readonly max = input<number | undefined, NumberInput>(undefined, {\n transform: numberAttributeOrUndefined,\n })\n\n /**\n * The minimum value of the number input\n * @default Number.MIN_SAFE_INTEGER\n */\n readonly min = input<number | undefined, NumberInput>(undefined, {\n transform: numberAttributeOrUndefined,\n })\n\n /**\n * The current locale. Based on the BCP 47 definition.\n *\n * @default 'en-US'\n */\n readonly locale = input<string | undefined>()\n\n /**\n * The pattern used to check the <input> element's value against\n *\n * @default \"[0-9]*(.[0-9]+)?\"\n */\n readonly pattern = input<string | undefined>()\n\n /**\n * Whether to spin the value when the increment/decrement button is pressed\n * @default true\n */\n readonly spinOnPress = input<boolean | undefined, Booleanish>(undefined, {\n transform: booleanAttribute,\n })\n\n /**\n * Amount to increment/decrement the value when using stepper buttons or arrow keys.\n * @default 1\n */\n readonly step = input<number | undefined, NumberInput>(undefined, {\n transform: numberAttributeOrUndefined,\n })\n\n /**\n * Specifies the localized strings that identify the accessibility elements and\n * their states\n */\n readonly translations = input<NumberInputIntlTranslations | undefined>()\n\n /**\n * Event emitted when the checkbox is checked or unchecked. This is only emitted\n * on interaction. It doesn't emit in response to programmatic form control\n * changes.\n */\n readonly valueChanged = output<NumberInputValueChangeDetails>()\n\n /**\n * Function invoked when the value overflows or underflows the min/max range\n */\n readonly valueInvalid = output<NumberInputValueInvalidDetails>()\n\n protected readonly isMounted = useIsMounted()\n\n protected readonly numberInputContext = inject(NumberInputContextService)\n\n protected readonly trackBindings = useTrackBindings(() => {\n return this.numberInputContext.context().getRootBindings()\n })\n\n override ngOnInit() {\n super.ngOnInit()\n\n const machine = useMachine(\n numberInputMachine,\n computed<Explicit<NumberInputApiProps>>(() => {\n return {\n allowMouseWheel: this.allowMouseWheel(),\n allowOverflow: this.allowOverflow(),\n clampValueOnBlur: this.clampValueOnBlur(),\n defaultValue: this.defaultValue()\n ? `${this.defaultValue() ?? \"\"}`\n : \"\",\n dir: this.dir(),\n disabled: this.isDisabled(),\n focusInputOnChange: this.focusInputOnChange(),\n // angular handles this automatically with ngModel and Reactive Forms\n form: undefined,\n formatOptions: this.formatOptions(),\n getRootNode: this.getRootNode(),\n ids: undefined,\n inputMode: this.inputMode(),\n invalid: this.isInvalid(),\n locale: this.locale(),\n max: this.max(),\n min: this.min(),\n name: this.name(),\n onFocusChange: (details) => {\n if (!details.focused) {\n // only trigger onTouched on blur.\n this.onTouched()\n }\n },\n onValueChange: (details) => {\n this.stringValue.set(details.value)\n if (!this.control) {\n if (this.isMounted()) {\n this.valueChanged.emit(details)\n }\n this.value.set(details.valueAsNumber)\n return\n }\n // ngModel is bound to the root, but change events happen on the <input>\n // element and are forwarded to the machine. So we need to fire the\n // value change event to keep the form in sync.\n this.onChange(details.valueAsNumber)\n if (!this.control?.touched) {\n this.control.markAsTouched?.()\n }\n if (!this.control?.dirty) {\n this.control.markAsDirty?.()\n }\n },\n onValueInvalid: (details) => {\n this.valueInvalid.emit(details)\n },\n pattern: this.pattern(),\n readOnly: this.readOnly(),\n required: this.isRequired(),\n spinOnPress: this.spinOnPress(),\n step: this.step(),\n translations: this.translations(),\n value: this.stringValue(),\n }\n }),\n this.injector,\n )\n\n this.numberInputContext.init(\n computed(() => createNumberInputApi(machine, normalizeProps)),\n )\n\n this.trackBindings()\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"core-number-input-root.directive.js","sourceRoot":"","sources":["../../../src/number-input/core-number-input-root.directive.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,8CAA8C;AAE9C,OAAO,EAAC,QAAQ,EAAC,MAAM,iBAAiB,CAAA;AACxC,OAAO,EACL,gBAAgB,EAChB,QAAQ,EACR,SAAS,EACT,MAAM,EACN,KAAK,EAEL,MAAM,GACP,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAC,0BAA0B,EAAC,MAAM,sCAAsC,CAAA;AAC/E,OAAO,EAAC,YAAY,EAAC,MAAM,kCAAkC,CAAA;AAC7D,OAAO,EACL,cAAc,EACd,UAAU,EACV,gBAAgB,GACjB,MAAM,mCAAmC,CAAA;AAE1C,OAAO,EACL,oBAAoB,EAGpB,kBAAkB,GAInB,MAAM,gCAAgC,CAAA;AAGvC,OAAO,EAAe,MAAM,0BAA0B,CAAA;AAEtD,OAAO,EAAC,uCAAuC,EAAC,MAAM,gDAAgD,CAAA;AACtG,OAAO,EAAC,yBAAyB,EAAC,MAAM,gCAAgC,CAAA;;AAGxE,MAAM,OAAO,4BACX,SAAQ,uCAAuC;IAQ/C;;OAEG;IACM,eAAe,GAAG,KAAK,CAAkC,SAAS,mDACzE,SAAS,EAAE,gBAAgB,OADgD;YAC3E,SAAS,EAAE,gBAAgB;SAC5B,GAAC,CAAA;IAEF;;;OAGG;IACM,aAAa,GAAG,KAAK,CAAkC,SAAS,iDACvE,SAAS,EAAE,gBAAg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O,EAAE,IAAI,CAAC,OAAO,EAAE;gBACvB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE;gBACzB,QAAQ,EAAE,IAAI,CAAC,UAAU,EAAE;gBAC3B,WAAW,EAAE,IAAI,CAAC,WAAW,EAAE;gBAC/B,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE;gBACjB,YAAY,EAAE,IAAI,CAAC,YAAY,EAAE;gBACjC,KAAK,EAAE,IAAI,CAAC,WAAW,EAAE;aAC1B,CAAA;QACH,CAAC,CAAC,EACF,IAAI,CAAC,QAAQ,CACd,CAAA;QAED,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAC1B,QAAQ,CAAC,GAAG,EAAE,CAAC,oBAAoB,CAAC,OAAO,EAAE,cAAc,CAAC,CAAC,CAC9D,CAAA;QAED,IAAI,CAAC,aAAa,EAAE,CAAA;IACtB,CAAC;wGA7NU,4BAA4B;4FAA5B,4BAA4B;;4FAA5B,4BAA4B;kBADxC,SAAS","sourcesContent":["// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {DOCUMENT} from \"@angular/common\"\nimport {\n booleanAttribute,\n computed,\n Directive,\n inject,\n input,\n type OnInit,\n output,\n} from \"@angular/core\"\n\nimport {numberAttributeOrUndefined} from \"@qualcomm-ui/angular-core/attributes\"\nimport {useIsMounted} 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 createNumberInputApi,\n type NumberInputApiProps,\n type NumberInputIntlTranslations,\n numberInputMachine,\n type NumberInputMode,\n type NumberInputValueChangeDetails,\n type NumberInputValueInvalidDetails,\n} from \"@qualcomm-ui/core/number-input\"\nimport type {Booleanish, NumberInput} from \"@qualcomm-ui/utils/coercion\"\nimport type {Direction} from \"@qualcomm-ui/utils/direction\"\nimport {type Explicit} from \"@qualcomm-ui/utils/guard\"\n\nimport {AbstractNumberInputFormControlDirective} from \"./abstract-number-input-form-control.directive\"\nimport {NumberInputContextService} from \"./number-input-context.service\"\n\n@Directive()\nexport class CoreNumberInputRootDirective\n extends AbstractNumberInputFormControlDirective\n implements\n OnInit,\n Omit<\n SignalifyInput<NumberInputApiProps>,\n \"defaultValue\" | \"form\" | \"ids\" | \"value\"\n >\n{\n /**\n * Whether to allow mouse wheel to change the value\n */\n readonly allowMouseWheel = input<boolean | undefined, Booleanish>(undefined, {\n transform: booleanAttribute,\n })\n\n /**\n * Whether to allow the value to overflow the min/max range\n * @default true\n */\n readonly allowOverflow = input<boolean | undefined, Booleanish>(undefined, {\n transform: booleanAttribute,\n })\n\n /**\n * Whether to clamp the value when the input loses focus (blur)\n * @default true\n */\n readonly clampValueOnBlur = input<boolean | undefined, Booleanish>(\n undefined,\n {\n transform: booleanAttribute,\n },\n )\n\n /**\n * The document's text/writing direction.\n *\n * @default \"ltr\"\n */\n readonly dir = input<Direction | undefined>(undefined)\n\n /**\n * Whether to focus the input when the value changes\n *\n * @default true\n */\n readonly focusInputOnChange = input<boolean | undefined, Booleanish>(\n undefined,\n {\n transform: booleanAttribute,\n },\n )\n\n /**\n * The options to pass to the `Intl.NumberFormat` constructor\n */\n readonly formatOptions = input<Intl.NumberFormatOptions | undefined>()\n\n /**\n * A root node to correctly resolve the Document in custom environments. i.e.,\n * Iframes, Electron.\n */\n readonly getRootNode = input<\n (() => ShadowRoot | Document | Node) | undefined\n >()\n\n /**\n * Hints at the type of data that might be entered by the user. It also determines\n * the type of keyboard shown to the user on mobile devices\n * @default \"decimal\"\n */\n readonly inputMode = input<NumberInputMode | undefined>()\n\n /**\n * The maximum value of the number input\n * @default Number.MAX_SAFE_INTEGER\n */\n readonly max = input<number | undefined, NumberInput>(undefined, {\n transform: numberAttributeOrUndefined,\n })\n\n /**\n * The minimum value of the number input\n * @default Number.MIN_SAFE_INTEGER\n */\n readonly min = input<number | undefined, NumberInput>(undefined, {\n transform: numberAttributeOrUndefined,\n })\n\n /**\n * The current locale. Based on the BCP 47 definition.\n *\n * @default 'en-US'\n */\n readonly locale = input<string | undefined>()\n\n /**\n * The pattern used to check the <input> element's value against\n *\n * @default \"[0-9]*(.[0-9]+)?\"\n */\n readonly pattern = input<string | undefined>()\n\n /**\n * Whether to spin the value when the increment/decrement button is pressed\n * @default true\n */\n readonly spinOnPress = input<boolean | undefined, Booleanish>(undefined, {\n transform: booleanAttribute,\n })\n\n /**\n * Amount to increment/decrement the value when using stepper buttons or arrow keys.\n * @default 1\n */\n readonly step = input<number | undefined, NumberInput>(undefined, {\n transform: numberAttributeOrUndefined,\n })\n\n /**\n * Specifies the localized strings that identify the accessibility elements and\n * their states\n */\n readonly translations = input<NumberInputIntlTranslations | undefined>()\n\n /**\n * Event emitted when the checkbox is checked or unchecked. This is only emitted\n * on interaction. It doesn't emit in response to programmatic form control\n * changes.\n */\n readonly valueChanged = output<NumberInputValueChangeDetails>()\n\n /**\n * Function invoked when the value overflows or underflows the min/max range\n */\n readonly valueInvalid = output<NumberInputValueInvalidDetails>()\n\n protected readonly document = inject(DOCUMENT)\n\n protected readonly isMounted = useIsMounted()\n\n protected readonly numberInputContext = inject(NumberInputContextService)\n\n protected readonly trackBindings = useTrackBindings(() => {\n return this.numberInputContext.context().getRootBindings()\n })\n\n override ngOnInit() {\n super.ngOnInit()\n\n const machine = useMachine(\n numberInputMachine,\n computed<Explicit<NumberInputApiProps>>(() => {\n return {\n allowMouseWheel: this.allowMouseWheel(),\n allowOverflow: this.allowOverflow(),\n clampValueOnBlur: this.clampValueOnBlur(),\n defaultValue: this.defaultValue()\n ? `${this.defaultValue() ?? \"\"}`\n : \"\",\n dir: this.dir(),\n disabled: this.isDisabled(),\n focusInputOnChange: this.focusInputOnChange(),\n // angular handles this automatically with ngModel and Reactive Forms\n form: undefined,\n formatOptions: this.formatOptions(),\n getRootNode: this.getRootNode() ?? (() => this.document),\n ids: undefined,\n inputMode: this.inputMode(),\n invalid: this.isInvalid(),\n locale: this.locale(),\n max: this.max(),\n min: this.min(),\n name: this.name(),\n onFocusChange: (details) => {\n if (!details.focused) {\n // only trigger onTouched on blur.\n this.onTouched()\n }\n },\n onValueChange: (details) => {\n this.stringValue.set(details.value)\n if (!this.control) {\n if (this.isMounted()) {\n this.valueChanged.emit(details)\n }\n this.value.set(details.valueAsNumber)\n return\n }\n // ngModel is bound to the root, but change events happen on the <input>\n // element and are forwarded to the machine. So we need to fire the\n // value change event to keep the form in sync.\n this.onChange(details.valueAsNumber)\n if (!this.control?.touched) {\n this.control.markAsTouched?.()\n }\n if (!this.control?.dirty) {\n this.control.markAsDirty?.()\n }\n },\n onValueInvalid: (details) => {\n this.valueInvalid.emit(details)\n },\n pattern: this.pattern(),\n readOnly: this.readOnly(),\n required: this.isRequired(),\n spinOnPress: this.spinOnPress(),\n step: this.step(),\n translations: this.translations(),\n value: this.stringValue(),\n }\n }),\n this.injector,\n )\n\n this.numberInputContext.init(\n computed(() => createNumberInputApi(machine, normalizeProps)),\n )\n\n this.trackBindings()\n }\n}\n"]}
|
|
@@ -68,7 +68,7 @@ export class CorePasswordInputRootDirective extends AbstractInputFormControlDire
|
|
|
68
68
|
disabled: this.isDisabled(),
|
|
69
69
|
// angular handles this automatically with ngModel and Reactive Forms
|
|
70
70
|
form: undefined,
|
|
71
|
-
getRootNode: this.getRootNode(),
|
|
71
|
+
getRootNode: this.getRootNode() ?? (() => this.document),
|
|
72
72
|
ids: undefined,
|
|
73
73
|
invalid: this.isInvalid(),
|
|
74
74
|
name: this.name(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core-password-input-root.directive.js","sourceRoot":"","sources":["../../../src/password-input/core-password-input-root.directive.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,8CAA8C;AAE9C,OAAO,EAAC,QAAQ,EAAC,MAAM,iBAAiB,CAAA;AACxC,OAAO,EACL,gBAAgB,EAChB,QAAQ,EACR,SAAS,EACT,MAAM,EACN,KAAK,EAEL,MAAM,GACP,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAC,YAAY,EAAC,MAAM,kCAAkC,CAAA;AAC7D,OAAO,EAAC,iCAAiC,EAAC,MAAM,iCAAiC,CAAA;AACjF,OAAO,EACL,cAAc,EACd,UAAU,EACV,gBAAgB,GACjB,MAAM,mCAAmC,CAAA;AAE1C,OAAO,EACL,sBAAsB,EAGtB,oBAAoB,GACrB,MAAM,kCAAkC,CAAA;AAKzC,OAAO,EAAC,2BAA2B,EAAC,MAAM,kCAAkC,CAAA;;AAG5E,MAAM,OAAO,8BACX,SAAQ,iCAAiC;IAKzC;;;;;OAKG;IACM,YAAY,GAAG,KAAK,kEAE1B,CAAA;IAEH;;OAEG;IACM,cAAc,GAAG,KAAK,CAAkC,SAAS,kDACxE,SAAS,EAAE,gBAAgB,OAD+C;YAC1E,SAAS,EAAE,gBAAgB;SAC5B,GAAC,CAAA;IAEF;;;;OAIG;IACM,GAAG,GAAG,KAAK,CAAwB,SAAS,+CAAC,CAAA;IAEtD;;;OAGG;IACM,WAAW,GAAG,KAAK,iEAEzB,CAAA;IAEH;;OAEG;IACM,YAAY,GAAG,KAAK,kEAA6C,CAAA;IAE1E;;OAEG;IACM,OAAO,GAAG,KAAK,CAAkC,SAAS,2CACjE,SAAS,EAAE,gBAAgB,OADwC;YACnE,SAAS,EAAE,gBAAgB;SAC5B,GAAC,CAAA;IAEF;;;OAGG;IACM,YAAY,GAAG,MAAM,EAAU,CAAA;IAExC;;OAEG;IACM,cAAc,GAAG,MAAM,EAAW,CAAA;
|
|
1
|
+
{"version":3,"file":"core-password-input-root.directive.js","sourceRoot":"","sources":["../../../src/password-input/core-password-input-root.directive.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,8CAA8C;AAE9C,OAAO,EAAC,QAAQ,EAAC,MAAM,iBAAiB,CAAA;AACxC,OAAO,EACL,gBAAgB,EAChB,QAAQ,EACR,SAAS,EACT,MAAM,EACN,K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BAC3B,IAAI,CAAC,OAAO,CAAC,aAAa,EAAE,EAAE,CAAA;gBAChC,CAAC;gBACD,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,KAAK,EAAE,CAAC;oBACzB,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,EAAE,CAAA;gBAC9B,CAAC;YACH,CAAC;YACD,eAAe,EAAE,CAAC,KAAK,EAAE,EAAE;gBACzB,IAAI,IAAI,CAAC,SAAS,EAAE,EAAE,CAAC;oBACrB,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;gBACjC,CAAC;YACH,CAAC;YACD,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE;YACzB,QAAQ,EAAE,IAAI,CAAC,UAAU,EAAE;YAC3B,YAAY,EAAE,IAAI,CAAC,YAAY,EAAE;YACjC,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE;YACnB,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE;SACxB,CAAC,CAAC,EACH,IAAI,CAAC,QAAQ,CACd,CAAA;QAED,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAC5B,QAAQ,CAAC,GAAG,EAAE,CAAC,sBAAsB,CAAC,OAAO,EAAE,cAAc,CAAC,CAAC,CAChE,CAAA;QAED,IAAI,CAAC,aAAa,EAAE,CAAA;IACtB,CAAC;wGApIU,8BAA8B;4FAA9B,8BAA8B;;4FAA9B,8BAA8B;kBAD1C,SAAS","sourcesContent":["// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {DOCUMENT} from \"@angular/common\"\nimport {\n booleanAttribute,\n computed,\n Directive,\n inject,\n input,\n type OnInit,\n output,\n} from \"@angular/core\"\n\nimport {useIsMounted} from \"@qualcomm-ui/angular-core/common\"\nimport {AbstractInputFormControlDirective} from \"@qualcomm-ui/angular-core/input\"\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 createPasswordInputApi,\n type PasswordInputApiProps,\n type PasswordInputIntlTranslations,\n passwordInputMachine,\n} from \"@qualcomm-ui/core/password-input\"\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 {PasswordInputContextService} from \"./password-input-context.service\"\n\n@Directive()\nexport class CorePasswordInputRootDirective\n extends AbstractInputFormControlDirective\n implements\n Omit<SignalifyInput<PasswordInputApiProps>, \"form\" | \"ids\" | \"value\">,\n OnInit\n{\n /**\n * The {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Attributes/autocomplete autocomplete}\n * attribute for the password input.\n *\n * @default \"current-password\"\n */\n readonly autoComplete = input<\n \"current-password\" | \"new-password\" | undefined\n >()\n\n /**\n * The default visibility of the password input.\n */\n readonly defaultVisible = input<boolean | undefined, Booleanish>(undefined, {\n transform: booleanAttribute,\n })\n\n /**\n * The document's text/writing direction.\n *\n * @default \"ltr\"\n */\n readonly dir = input<Direction | undefined>(undefined)\n\n /**\n * A root node to correctly resolve the Document in custom environments. i.e.,\n * Iframes, Electron.\n */\n readonly getRootNode = input<\n (() => ShadowRoot | Document | Node) | undefined\n >()\n\n /**\n * Localized messages to use for element labels.\n */\n readonly translations = input<PasswordInputIntlTranslations | undefined>()\n\n /**\n * Whether the password input is visible.\n */\n readonly visible = input<boolean | undefined, Booleanish>(undefined, {\n transform: booleanAttribute,\n })\n\n /**\n * Event emitted when the input value changes. This is only emitted on\n * interaction. It doesn't emit in response to programmatic form control changes.\n */\n readonly valueChanged = output<string>()\n\n /**\n * Function called when the visibility changes.\n */\n readonly visibleChanged = output<boolean>()\n\n protected readonly document = inject(DOCUMENT)\n\n protected readonly isMounted = useIsMounted()\n\n protected readonly passwordInputService = inject(PasswordInputContextService)\n\n protected readonly trackBindings = useTrackBindings(() => {\n return this.passwordInputService.context().getRootBindings()\n })\n\n override ngOnInit() {\n super.ngOnInit()\n\n const machine = useMachine(\n passwordInputMachine,\n computed<Explicit<PasswordInputApiProps>>(() => ({\n autoComplete: this.autoComplete(),\n defaultValue: this.defaultValue(),\n defaultVisible: this.defaultVisible(),\n dir: this.dir(),\n disabled: this.isDisabled(),\n // angular handles this automatically with ngModel and Reactive Forms\n form: undefined,\n getRootNode: this.getRootNode() ?? (() => this.document),\n ids: undefined,\n invalid: this.isInvalid(),\n name: this.name(),\n onFocusChange: (focused) => {\n if (!focused) {\n // only trigger onTouched on blur.\n this.onTouched()\n }\n },\n onValueChange: (value) => {\n if (!this.control) {\n if (this.isMounted()) {\n this.valueChanged.emit(value)\n }\n this.value.set(value)\n return\n }\n // ngModel is bound to the root, but change events happen on the <input>\n // element and are forwarded to the machine. So we need to fire the value\n // change event to keep the form in sync.\n this.onChange(value)\n if (!this.control?.touched) {\n this.control.markAsTouched?.()\n }\n if (!this.control?.dirty) {\n this.control.markAsDirty?.()\n }\n },\n onVisibleChange: (value) => {\n if (this.isMounted()) {\n this.visibleChanged.emit(value)\n }\n },\n readOnly: this.readOnly(),\n required: this.isRequired(),\n translations: this.translations(),\n value: this.value(),\n visible: this.visible(),\n })),\n this.injector,\n )\n\n this.passwordInputService.init(\n computed(() => createPasswordInputApi(machine, normalizeProps)),\n )\n\n this.trackBindings()\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core-popover-root.directive.js","sourceRoot":"","sources":["../../../src/popover/core-popover-root.directive.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,8CAA8C;AAE9C,OAAO,EAAC,QAAQ,EAAC,MAAM,iBAAiB,CAAA;AACxC,OAAO,EACL,gBAAgB,EAChB,QAAQ,EACR,YAAY,EACZ,SAAS,EACT,MAAM,EACN,QAAQ,EACR,KAAK,EAEL,MAAM,GACP,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAC,YAAY,EA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CAAC,CAAC,EACF,IAAI,CAAC,QAAQ,CACd,CAAA;QAED,IAAI,CAAC,cAAc,CAAC,IAAI,CACtB,QAAQ,CAAC,GAAG,EAAE,CAAC,gBAAgB,CAAC,OAAO,EAAE,cAAc,CAAC,CAAC,CAC1D,CAAA;QAED,IAAI,CAAC,aAAa,EAAE,CAAA;IACtB,CAAC;wGA7LU,wBAAwB;4FAAxB,wBAAwB,y7DAsHW,eAAe;;4FAtHlD,wBAAwB;kBADpC,SAAS;krDAuHsC,eAAe,QAAE;4BAC7D,WAAW,EAAE,IAAI;yBAClB","sourcesContent":["// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {DOCUMENT} from \"@angular/common\"\nimport {\n booleanAttribute,\n computed,\n contentChild,\n Directive,\n inject,\n Injector,\n input,\n type OnInit,\n output,\n} from \"@angular/core\"\n\nimport {useIsMounted} from \"@qualcomm-ui/angular-core/common\"\nimport {\n normalizeProps,\n useMachine,\n useTrackBindings,\n} from \"@qualcomm-ui/angular-core/machine\"\nimport {PortalDirective} from \"@qualcomm-ui/angular-core/portal\"\nimport type {SignalifyInput} from \"@qualcomm-ui/angular-core/signals\"\nimport {\n createPopoverApi,\n type PopoverApiProps,\n popoverMachine,\n} from \"@qualcomm-ui/core/popover\"\nimport type {LayerDismissEvent} from \"@qualcomm-ui/dom/dismissable\"\nimport type {PositioningOptions} from \"@qualcomm-ui/dom/floating-ui\"\nimport type {\n FocusOutsideEvent,\n InteractOutsideEvent,\n PointerDownOutsideEvent,\n} from \"@qualcomm-ui/dom/interact-outside\"\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 {PopoverContextService} from \"./popover-context.service\"\n\n@Directive()\nexport class CorePopoverRootDirective\n implements SignalifyInput<Omit<PopoverApiProps, \"ids\" | \"portalled\">>, OnInit\n{\n /**\n * Whether to automatically set focus on the first focusable\n * content within the popover when opened.\n *\n * @default true\n */\n readonly autoFocus = input<PopoverApiProps[\"autoFocus\"]>()\n\n /**\n * Whether to close the popover when the escape key is pressed.\n *\n * @default true\n */\n readonly closeOnEscape = input<boolean | undefined>()\n\n /**\n * Whether to close the popover when the user clicks outside the popover.\n *\n * @default true\n */\n readonly closeOnInteractOutside = input<boolean | undefined>()\n\n /**\n * The initial open state of the popover when rendered.\n * Use when you don't need to control the open state of the popover.\n */\n readonly defaultOpen = input<boolean | undefined>()\n\n /**\n * The document's text/writing direction.\n *\n * @default \"ltr\"\n */\n readonly dir = input<Direction | undefined>()\n\n /**\n * A root node to correctly resolve the Document in custom environments. i.e.,\n * Iframes, Electron.\n */\n readonly getRootNode = input<() => ShadowRoot | Document | Node>()\n\n /**\n * The element to focus on when the popover is opened.\n */\n readonly initialFocusEl = input<(() => HTMLElement | null) | undefined>()\n\n /**\n * Whether the popover should be modal. When set to `true`:\n * - interaction with outside elements will be disabled\n * - only popover content will be visible to screen readers\n * - scrolling is blocked\n * - focus is trapped within the popover\n *\n * @default false\n */\n readonly modal = input<boolean | undefined>()\n\n /**\n * The controlled open state of the popover\n */\n readonly open = input<boolean | undefined>()\n\n /**\n * The persistent elements that:\n * - should not have pointer-events disabled\n * - should not trigger the dismiss event\n */\n readonly persistentElements = input<Array<() => Element | null> | undefined>()\n\n /**\n * The options used to position the popover content.\n *\n * @inheritDoc\n */\n readonly positioning = input<PositioningOptions>()\n\n /**\n * On close, restore focus to the element that triggered the open event.\n *\n * @default true\n */\n readonly restoreFocus = input<boolean | undefined, Booleanish>(undefined, {\n transform: booleanAttribute,\n })\n\n /**\n * Fired when the popover opens or closes.\n */\n readonly openChanged = output<{open: boolean}>()\n\n /**\n * Function called when the escape key is pressed\n */\n readonly escapeKeyDown = output<KeyboardEvent>()\n\n /**\n * Function called when the focus is moved outside the component\n */\n readonly focusOutside = output<FocusOutsideEvent>()\n\n /**\n * Function called when an interaction happens outside the component\n */\n readonly interactOutside = output<InteractOutsideEvent>()\n\n /**\n * Function called when the pointer is pressed down outside the component\n */\n readonly pointerDownOutside = output<PointerDownOutsideEvent>()\n\n /**\n * Function called when this layer is closed due to a parent layer being closed\n */\n readonly requestDismissed = output<LayerDismissEvent>()\n\n protected readonly portalChild = contentChild(PortalDirective, {\n descendants: true,\n })\n protected document = inject(DOCUMENT)\n protected readonly injector = inject(Injector)\n protected readonly isMounted = useIsMounted()\n protected readonly popoverContext = inject(PopoverContextService)\n protected readonly trackBindings = useTrackBindings(() =>\n this.popoverContext.context().getRootBindings(),\n )\n\n ngOnInit() {\n const machine = useMachine(\n popoverMachine,\n computed<Explicit<PopoverApiProps>>(() => {\n const portal = this.portalChild()\n return {\n autoFocus: this.autoFocus(),\n closeOnEscape: this.closeOnEscape(),\n closeOnInteractOutside: this.closeOnInteractOutside(),\n defaultOpen: this.defaultOpen(),\n dir: this.dir(),\n getRootNode: this.getRootNode() || (() => this.document),\n ids: undefined,\n initialFocusEl: this.initialFocusEl(),\n modal: this.modal(),\n onEscapeKeyDown: (event) => {\n if (this.isMounted()) {\n this.escapeKeyDown.emit(event)\n }\n },\n onFocusOutside: (event) => {\n if (this.isMounted()) {\n this.focusOutside.emit(event)\n }\n },\n onInteractOutside: (event) => {\n if (this.isMounted()) {\n this.interactOutside.emit(event)\n }\n },\n onOpenChange: (open) => {\n if (this.isMounted()) {\n this.openChanged.emit({open})\n }\n },\n onPointerDownOutside: (event) => {\n if (this.isMounted()) {\n this.pointerDownOutside.emit(event)\n }\n },\n onRequestDismiss: (event) => {\n if (this.isMounted()) {\n this.requestDismissed.emit(event)\n }\n },\n open: this.open(),\n persistentElements: this.persistentElements(),\n portalled: portal && !portal.disabled(),\n positioning: this.positioning(),\n restoreFocus: this.restoreFocus(),\n }\n }),\n this.injector,\n )\n\n this.popoverContext.init(\n computed(() => createPopoverApi(machine, normalizeProps)),\n )\n\n this.trackBindings()\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"core-popover-root.directive.js","sourceRoot":"","sources":["../../../src/popover/core-popover-root.directive.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,8CAA8C;AAE9C,OAAO,EAAC,QAAQ,EAAC,MAAM,iBAAiB,CAAA;AACxC,OAAO,EACL,gBAAgB,EAChB,QAAQ,EACR,YAAY,EACZ,SAAS,EACT,MAAM,EACN,QAAQ,EACR,KAAK,EAEL,MAAM,GACP,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAC,YAAY,EAAC,MAAM,kCAAkC,CAAA;AAC7D,OAAO,EACL,cAAc,EACd,UAAU,EACV,gBAAgB,GACjB,MAAM,mCAAmC,CAAA;AAC1C,OAAO,EAAC,eAAe,EAAC,MAAM,kCAAkC,CAAA;AAEhE,OAAO,EACL,gBAAgB,EAEhB,cAAc,GACf,MAAM,2BAA2B,CAAA;AAYlC,OAAO,EAAC,qBAAqB,EAAC,MAAM,2BAA2B,CAAA;;AAG/D,MAAM,OAAO,wBAAwB;IAGnC;;;;;OAKG;IACM,SAAS,GAAG,KAAK,+DAAgC,CAAA;IAE1D;;;;OAIG;IACM,aAAa,GAAG,KAAK,mEAAuB,CAAA;IAErD;;;;OAIG;IACM,sBAAsB,GAAG,KAAK,4EAAuB,CAAA;IAE9D;;;OAGG;IACM,WAAW,GAAG,KAAK,iEAAuB,CAAA;IAEnD;;;;OAIG;IACM,GAAG,GAAG,KAAK,yDAAyB,CAAA;IAE7C;;;OAGG;IACM,WAAW,GAAG,KAAK,iEAAsC,CAAA;IAElE;;OAEG;IACM,cAAc,GAAG,KAAK,oEAA0C,CAAA;IAEzE;;;;;;;;OAQG;IACM,KAAK,GAAG,KAAK,2DAAuB,CAAA;IAE7C;;OAEG;IACM,IAAI,GAAG,KAAK,0DAAuB,CAAA;IAE5C;;;;OAIG;IACM,kBAAkB,GAAG,KAAK,wEAA2C,CAAA;IAE9E;;;;OAIG;IACM,WAAW,GAAG,KAAK,iEAAsB,CAAA;IAElD;;;;OAIG;IACM,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AC,IAAI,CAAC,KAAK,CAAC,CAAA;oBACnC,CAAC;gBACH,CAAC;gBACD,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE;gBACjB,kBAAkB,EAAE,IAAI,CAAC,kBAAkB,EAAE;gBAC7C,SAAS,EAAE,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE;gBACvC,WAAW,EAAE,IAAI,CAAC,WAAW,EAAE;gBAC/B,YAAY,EAAE,IAAI,CAAC,YAAY,EAAE;aAClC,CAAA;QACH,CAAC,CAAC,EACF,IAAI,CAAC,QAAQ,CACd,CAAA;QAED,IAAI,CAAC,cAAc,CAAC,IAAI,CACtB,QAAQ,CAAC,GAAG,EAAE,CAAC,gBAAgB,CAAC,OAAO,EAAE,cAAc,CAAC,CAAC,CAC1D,CAAA;QAED,IAAI,CAAC,aAAa,EAAE,CAAA;IACtB,CAAC;wGA7LU,wBAAwB;4FAAxB,wBAAwB,y7DAsHW,eAAe;;4FAtHlD,wBAAwB;kBADpC,SAAS;krDAuHsC,eAAe,QAAE;4BAC7D,WAAW,EAAE,IAAI;yBAClB","sourcesContent":["// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {DOCUMENT} from \"@angular/common\"\nimport {\n booleanAttribute,\n computed,\n contentChild,\n Directive,\n inject,\n Injector,\n input,\n type OnInit,\n output,\n} from \"@angular/core\"\n\nimport {useIsMounted} from \"@qualcomm-ui/angular-core/common\"\nimport {\n normalizeProps,\n useMachine,\n useTrackBindings,\n} from \"@qualcomm-ui/angular-core/machine\"\nimport {PortalDirective} from \"@qualcomm-ui/angular-core/portal\"\nimport type {SignalifyInput} from \"@qualcomm-ui/angular-core/signals\"\nimport {\n createPopoverApi,\n type PopoverApiProps,\n popoverMachine,\n} from \"@qualcomm-ui/core/popover\"\nimport type {LayerDismissEvent} from \"@qualcomm-ui/dom/dismissable\"\nimport type {PositioningOptions} from \"@qualcomm-ui/dom/floating-ui\"\nimport type {\n FocusOutsideEvent,\n InteractOutsideEvent,\n PointerDownOutsideEvent,\n} from \"@qualcomm-ui/dom/interact-outside\"\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 {PopoverContextService} from \"./popover-context.service\"\n\n@Directive()\nexport class CorePopoverRootDirective\n implements SignalifyInput<Omit<PopoverApiProps, \"ids\" | \"portalled\">>, OnInit\n{\n /**\n * Whether to automatically set focus on the first focusable\n * content within the popover when opened.\n *\n * @default true\n */\n readonly autoFocus = input<PopoverApiProps[\"autoFocus\"]>()\n\n /**\n * Whether to close the popover when the escape key is pressed.\n *\n * @default true\n */\n readonly closeOnEscape = input<boolean | undefined>()\n\n /**\n * Whether to close the popover when the user clicks outside the popover.\n *\n * @default true\n */\n readonly closeOnInteractOutside = input<boolean | undefined>()\n\n /**\n * The initial open state of the popover when rendered.\n * Use when you don't need to control the open state of the popover.\n */\n readonly defaultOpen = input<boolean | undefined>()\n\n /**\n * The document's text/writing direction.\n *\n * @default \"ltr\"\n */\n readonly dir = input<Direction | undefined>()\n\n /**\n * A root node to correctly resolve the Document in custom environments. i.e.,\n * Iframes, Electron.\n */\n readonly getRootNode = input<() => ShadowRoot | Document | Node>()\n\n /**\n * The element to focus on when the popover is opened.\n */\n readonly initialFocusEl = input<(() => HTMLElement | null) | undefined>()\n\n /**\n * Whether the popover should be modal. When set to `true`:\n * - interaction with outside elements will be disabled\n * - only popover content will be visible to screen readers\n * - scrolling is blocked\n * - focus is trapped within the popover\n *\n * @default false\n */\n readonly modal = input<boolean | undefined>()\n\n /**\n * The controlled open state of the popover\n */\n readonly open = input<boolean | undefined>()\n\n /**\n * The persistent elements that:\n * - should not have pointer-events disabled\n * - should not trigger the dismiss event\n */\n readonly persistentElements = input<Array<() => Element | null> | undefined>()\n\n /**\n * The options used to position the popover content.\n *\n * @inheritDoc\n */\n readonly positioning = input<PositioningOptions>()\n\n /**\n * On close, restore focus to the element that triggered the open event.\n *\n * @default true\n */\n readonly restoreFocus = input<boolean | undefined, Booleanish>(undefined, {\n transform: booleanAttribute,\n })\n\n /**\n * Fired when the popover opens or closes.\n */\n readonly openChanged = output<{open: boolean}>()\n\n /**\n * Function called when the escape key is pressed\n */\n readonly escapeKeyDown = output<KeyboardEvent>()\n\n /**\n * Function called when the focus is moved outside the component\n */\n readonly focusOutside = output<FocusOutsideEvent>()\n\n /**\n * Function called when an interaction happens outside the component\n */\n readonly interactOutside = output<InteractOutsideEvent>()\n\n /**\n * Function called when the pointer is pressed down outside the component\n */\n readonly pointerDownOutside = output<PointerDownOutsideEvent>()\n\n /**\n * Function called when this layer is closed due to a parent layer being closed\n */\n readonly requestDismissed = output<LayerDismissEvent>()\n\n protected readonly portalChild = contentChild(PortalDirective, {\n descendants: true,\n })\n protected readonly document = inject(DOCUMENT)\n protected readonly injector = inject(Injector)\n protected readonly isMounted = useIsMounted()\n protected readonly popoverContext = inject(PopoverContextService)\n protected readonly trackBindings = useTrackBindings(() =>\n this.popoverContext.context().getRootBindings(),\n )\n\n ngOnInit() {\n const machine = useMachine(\n popoverMachine,\n computed<Explicit<PopoverApiProps>>(() => {\n const portal = this.portalChild()\n return {\n autoFocus: this.autoFocus(),\n closeOnEscape: this.closeOnEscape(),\n closeOnInteractOutside: this.closeOnInteractOutside(),\n defaultOpen: this.defaultOpen(),\n dir: this.dir(),\n getRootNode: this.getRootNode() || (() => this.document),\n ids: undefined,\n initialFocusEl: this.initialFocusEl(),\n modal: this.modal(),\n onEscapeKeyDown: (event) => {\n if (this.isMounted()) {\n this.escapeKeyDown.emit(event)\n }\n },\n onFocusOutside: (event) => {\n if (this.isMounted()) {\n this.focusOutside.emit(event)\n }\n },\n onInteractOutside: (event) => {\n if (this.isMounted()) {\n this.interactOutside.emit(event)\n }\n },\n onOpenChange: (open) => {\n if (this.isMounted()) {\n this.openChanged.emit({open})\n }\n },\n onPointerDownOutside: (event) => {\n if (this.isMounted()) {\n this.pointerDownOutside.emit(event)\n }\n },\n onRequestDismiss: (event) => {\n if (this.isMounted()) {\n this.requestDismissed.emit(event)\n }\n },\n open: this.open(),\n persistentElements: this.persistentElements(),\n portalled: portal && !portal.disabled(),\n positioning: this.positioning(),\n restoreFocus: this.restoreFocus(),\n }\n }),\n this.injector,\n )\n\n this.popoverContext.init(\n computed(() => createPopoverApi(machine, normalizeProps)),\n )\n\n this.trackBindings()\n }\n}\n"]}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
|
|
2
2
|
// SPDX-License-Identifier: BSD-3-Clause-Clear
|
|
3
|
+
import { DOCUMENT } from "@angular/common";
|
|
3
4
|
import { computed, Directive, inject, input } from "@angular/core";
|
|
4
5
|
import { useId, useIsDestroyed } from "@qualcomm-ui/angular-core/common";
|
|
5
6
|
import { normalizeProps, useMachine, useTrackBindings, } from "@qualcomm-ui/angular-core/machine";
|
|
@@ -31,6 +32,7 @@ export class CoreRadioGroupDirective extends AbstractRadioFormControlDirective {
|
|
|
31
32
|
*/
|
|
32
33
|
orientation = input(...(ngDevMode ? [undefined, { debugName: "orientation" }] : []));
|
|
33
34
|
radioContextService = inject(RadioContextService);
|
|
35
|
+
document = inject(DOCUMENT);
|
|
34
36
|
trackBindings = useTrackBindings(() => this.radioContextService.context().getGroupBindings({
|
|
35
37
|
id: this.hostId(),
|
|
36
38
|
onDestroy: this.onDestroy,
|
|
@@ -53,7 +55,7 @@ export class CoreRadioGroupDirective extends AbstractRadioFormControlDirective {
|
|
|
53
55
|
dir: this.dir(),
|
|
54
56
|
disabled: this.isDisabled(),
|
|
55
57
|
form: "",
|
|
56
|
-
getRootNode: this.getRootNode(),
|
|
58
|
+
getRootNode: this.getRootNode() ?? (() => this.document),
|
|
57
59
|
invalid: this.invalid(),
|
|
58
60
|
name: this.name() || controlName,
|
|
59
61
|
onValueChange: (value) => {
|
|
@@ -1 +1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-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"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core-switch-root.directive.js","sourceRoot":"","sources":["../../../src/switch/core-switch-root.directive.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,8CAA8C;AAE9C,OAAO,EAAC,QAAQ,EAAC,MAAM,iBAAiB,CAAA;AACxC,OAAO,EACL,gBAAgB,EAChB,QAAQ,EACR,SAAS,EACT,MAAM,EACN,KAAK,GAEN,MAAM,eAAe,CAAA;AACtB,OAAO,EAA2B,MAAM,gBAAgB,CAAA;AAExD,OAAO,EAAC,oCAAoC,EAAC,MAAM,oCAAoC,CAAA;AACvF,OAAO,EAAC,KAAK,EAAC,MAAM,kCAAkC,CAAA;AACtD,OAAO,EACL,cAAc,EACd,UAAU,EACV,gBAAgB,GACjB,MAAM,mCAAmC,CAAA;AAE1C,OAAO,EAAuB,MAAM,4BAA4B,CAAA;AAChE,OAAO,EACL,eAAe,EAEf,aAAa,GACd,MAAM,0BAA0B,CAAA;AAKjC,OAAO,EAAC,oBAAoB,EAAC,MAAM,0BAA0B,CAAA;;AAG7D,MAAM,OAAO,uBACX,SAAQ,oCAAoC;IAM5C;;;;OAIG;IACM,GAAG,GAAG,KAAK,CAAwB,SAAS,+CAAC,CAAA;IAEtD;;;OAGG;IACM,WAAW,GAAG,KAAK,iEAEzB,CAAA;IAEH;;;OAGG;IACM,aAAa,GAAG,KAAK,CAAkC,SAAS,iDACvE,SAAS,EAAE,gBAAgB,OAD8C;YACzE,SAAS,EAAE,gBAAgB;SAC5B,GAAC,CAAA;IAEF;;;OAGG;IACM,EAAE,GAAG,KAAK,CAAqB,SAAS,8CAAC,CAAA;IAElD;;;OAGG;IACM,KAAK,GAAG,KAAK,2DAAsB,CAAA;IAEzB,oBAAoB,GAAG,MAAM,CAAC,oBAAoB,CAAC,CAAA;
|
|
1
|
+
{"version":3,"file":"core-switch-root.directive.js","sourceRoot":"","sources":["../../../src/switch/core-switch-root.directive.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,8CAA8C;AAE9C,OAAO,EAAC,QAAQ,EAAC,MAAM,iBAAiB,CAAA;AACxC,OAAO,EACL,gBAAgB,EAChB,QAAQ,EACR,SAAS,EACT,MAAM,EACN,KAAK,GAEN,MAAM,eAAe,CAAA;AACtB,OAAO,EAA2B,MAAM,gBAAgB,CAAA;AAExD,OAAO,EAAC,oCAAoC,EAAC,MAAM,oCAAoC,CAAA;AACvF,OAAO,EAAC,KAAK,EAAC,MAAM,kCAAkC,CAAA;AACtD,OAAO,EACL,cAAc,EACd,UAAU,EACV,gBAAgB,GACjB,MAAM,mCAAmC,CAAA;AAE1C,OAAO,EAAuB,MAAM,4BAA4B,CAAA;AAChE,OAAO,EACL,eAAe,EAEf,aAAa,GACd,MAAM,0BAA0B,CAAA;AAKjC,OAAO,EAAC,oBAAoB,EAAC,MAAM,0BAA0B,CAAA;;AAG7D,MAAM,OAAO,uBACX,SAAQ,oCAAoC;IAM5C;;;;OAIG;IACM,GAAG,GAAG,KAAK,CAAwB,SAAS,+CAAC,CAAA;IAEtD;;;OAGG;IACM,WAAW,GAAG,KAAK,iEAEzB,CAAA;IAEH;;;OAG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AAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAA;gBACtB,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;oBAClB,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;oBACjC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAA;gBAC3B,CAAC;gBACD,IAAI,IAAI,CAAC,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,CAAC;oBAC3C,IAAI,CAAC,OAAO,EAAE,aAAa,EAAE,EAAE,CAAA;gBACjC,CAAC;YACH,CAAC;YACD,aAAa,EAAE,CAAC,OAAO,EAAE,EAAE;gBACzB,IAAI,CAAC,OAAO,EAAE,CAAC;oBACb,oEAAoE;oBACpE,sDAAsD;oBACtD,IAAI,CAAC,SAAS,EAAE,CAAA;gBAClB,CAAC;YACH,CAAC;YACD,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE;YACzB,QAAQ,EAAE,IAAI,CAAC,UAAU,EAAE;YAC3B,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE;SACpB,CAAC,CAAC,EACH,IAAI,CAAC,QAAQ,CACd,CAAA;QAED,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAC5B,QAAQ,CAAC,GAAG,EAAE,CAAC,eAAe,CAAC,OAAO,EAAE,cAAc,CAAC,CAAC,CACzD,CAAA;QAED,IAAI,CAAC,aAAa,EAAE,CAAA;IACtB,CAAC;wGA/FU,uBAAuB;4FAAvB,uBAAuB;;4FAAvB,uBAAuB;kBADnC,SAAS","sourcesContent":["// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {DOCUMENT} from \"@angular/common\"\nimport {\n booleanAttribute,\n computed,\n Directive,\n inject,\n input,\n type OnInit,\n} from \"@angular/core\"\nimport {type ControlValueAccessor} from \"@angular/forms\"\n\nimport {AbstractCheckboxFormControlDirective} from \"@qualcomm-ui/angular-core/checkbox\"\nimport {useId} from \"@qualcomm-ui/angular-core/common\"\nimport {\n normalizeProps,\n useMachine,\n useTrackBindings,\n} from \"@qualcomm-ui/angular-core/machine\"\nimport type {SignalifyInput} from \"@qualcomm-ui/angular-core/signals\"\nimport {type CheckboxApiProps} from \"@qualcomm-ui/core/checkbox\"\nimport {\n createSwitchApi,\n type SwitchApiProps,\n switchMachine,\n} from \"@qualcomm-ui/core/switch\"\nimport type {Booleanish} from \"@qualcomm-ui/utils/coercion\"\nimport type {Direction} from \"@qualcomm-ui/utils/direction\"\nimport type {Explicit} from \"@qualcomm-ui/utils/guard\"\n\nimport {SwitchContextService} from \"./switch-context.service\"\n\n@Directive()\nexport class CoreSwitchRootDirective\n extends AbstractCheckboxFormControlDirective\n implements\n SignalifyInput<Omit<CheckboxApiProps, \"checked\" | \"form\" | \"ids\">>,\n ControlValueAccessor,\n OnInit\n{\n /**\n * The document's text/writing direction.\n *\n * @default \"ltr\"\n */\n readonly dir = input<Direction | undefined>(undefined)\n\n /**\n * A root node to correctly resolve the Document in custom environments. i.e.,\n * Iframes, Electron.\n */\n readonly getRootNode = input<\n (() => ShadowRoot | Document | Node) | undefined\n >()\n\n /**\n * If true and the checkbox is not checked, the checkbox will be in the\n * `indeterminate` state.\n */\n readonly indeterminate = input<boolean | undefined, Booleanish>(undefined, {\n transform: booleanAttribute,\n })\n\n /**\n * {@link https://www.w3schools.com/html/html_id.asp id attribute}. If\n * omitted, a unique identifier will be generated for accessibility.)\n */\n readonly id = input<string | undefined>(undefined)\n\n /**\n * The value of checkbox input. Useful for form submission.\n * @default \"on\"\n */\n readonly value = input<string | undefined>()\n\n protected readonly switchContextService = inject(SwitchContextService)\n protected readonly document = inject(DOCUMENT)\n\n protected readonly hostId = computed(() => useId(this, this.id()))\n protected readonly trackBindings = useTrackBindings(() =>\n this.switchContextService.context().getRootBindings({id: this.hostId()}),\n )\n\n override ngOnInit() {\n super.ngOnInit()\n\n const machine = useMachine(\n switchMachine,\n computed<Explicit<SwitchApiProps>>(() => ({\n checked: this.checked(),\n defaultChecked: this.defaultChecked(),\n dir: this.dir(),\n disabled: this.isDisabled(),\n // angular handles this automatically with ngModel and Reactive Forms\n form: undefined,\n getRootNode: this.getRootNode() || (() => this.document),\n ids: undefined,\n invalid: this.invalid(),\n name: this.name(),\n onCheckedChange: (checked) => {\n this.onChange(checked)\n if (!this.control) {\n this.checkedChanged.emit(checked)\n this.checked.set(checked)\n }\n if (this.control && !this.control?.touched) {\n this.control?.markAsTouched?.()\n }\n },\n onFocusChange: (focused) => {\n if (!focused) {\n // only trigger on blur to prevent immediate validation, which would\n // occur as soon as the user interacts with the field.\n this.onTouched()\n }\n },\n readOnly: this.readOnly(),\n required: this.isRequired(),\n value: this.value(),\n })),\n this.injector,\n )\n\n this.switchContextService.init(\n computed(() => createSwitchApi(machine, normalizeProps)),\n )\n\n this.trackBindings()\n }\n}\n"]}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
|
|
2
2
|
// SPDX-License-Identifier: BSD-3-Clause-Clear
|
|
3
|
+
import { DOCUMENT } from "@angular/common";
|
|
3
4
|
import { booleanAttribute, computed, Directive, inject, Injector, input, output, } from "@angular/core";
|
|
4
5
|
import { useIsMounted, useOnDestroy } from "@qualcomm-ui/angular-core/common";
|
|
5
6
|
import { normalizeProps, useMachine, useTrackBindings, } from "@qualcomm-ui/angular-core/machine";
|
|
@@ -97,6 +98,7 @@ export class CoreTabsRootDirective {
|
|
|
97
98
|
* Callback to be called when the selected/active tab changes
|
|
98
99
|
*/
|
|
99
100
|
valueChanged = output();
|
|
101
|
+
document = inject(DOCUMENT);
|
|
100
102
|
injector = inject(Injector);
|
|
101
103
|
onDestroy = useOnDestroy();
|
|
102
104
|
isMounted = useIsMounted();
|
|
@@ -112,7 +114,7 @@ export class CoreTabsRootDirective {
|
|
|
112
114
|
defaultValue: this.defaultValue(),
|
|
113
115
|
deselectable: this.deselectable(),
|
|
114
116
|
dir: this.dir(),
|
|
115
|
-
getRootNode: this.getRootNode(),
|
|
117
|
+
getRootNode: this.getRootNode() ?? (() => this.document),
|
|
116
118
|
loopFocus: this.loopFocus(),
|
|
117
119
|
onFocusChange: (value) => {
|
|
118
120
|
if (this.isMounted()) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core-tabs-root.directive.js","sourceRoot":"","sources":["../../../src/tabs/core-tabs-root.directive.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,8CAA8C;AAE9C,OAAO,EACL,gBAAgB,EAChB,QAAQ,EACR,SAAS,EACT,MAAM,EACN,QAAQ,EACR,KAAK,EAEL,MAAM,GACP,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAC,YAAY,EAAE,YAAY,EAAC,MAAM,kCAAkC,CAAA;AAC3E,OAAO,EACL,cAAc,EACd,UAAU,EACV,gBAAgB,GACjB,MAAM,mCAAmC,CAAA;AAC1C,OAAO,EAAC,4BAA4B,EAAC,MAAM,oCAAoC,CAAA;AAG/E,OAAO,EACL,aAAa,EAIb,WAAW,GAEZ,MAAM,wBAAwB,CAAA;AAK/B,OAAO,EAAC,kBAAkB,EAAC,MAAM,wBAAwB,CAAA;;AAGzD,MAAM,OAAO,qBAAqB;IAGhC;;;;;;OAMG;IACM,cAAc,GAAG,KAAK,oEAAkC,CAAA;IAEjE;;;;;OAKG;IACM,SAAS,GAAG,KAAK,CAAkC,SAAS,6CACnE,SAAS,EAAE,gBAAgB,OAD0C;YACrE,SAAS,EAAE,gBAAgB;SAC5B,GAAC,CAAA;IAEF;;;OAGG;IACM,YAAY,GAAG,KAAK,kEAA6B,CAAA;IAE1D;;OAEG;IACM,YAAY,GAAG,KAAK,CAAkC,SAAS,gDACtE,SAAS,EAAE,gBAAgB,OAD6C;YACxE,SAAS,EAAE,gBAAgB;SAC5B,GAAC,CAAA;IAEF;;;;OAIG;IACM,GAAG,GAAG,KAAK,CAAwB,SAAS,+CAAC,CAAA;IAEtD;;;OAGG;IACM,WAAW,GAAG,KAAK,iEAEzB,CAAA;IAEH;;;;;OAKG;IACM,SAAS,GAAG,KAAK,CAAkC,SAAS,6CACnE,SAAS,EAAE,gBAAgB,OAD0C;YACrE,SAAS,EAAE,gBAAgB;SAC5B,GAAC,CAAA;IAEF;;;OAGG;IACM,SAAS,GAAG,KAAK,CAAkC,SAAS,6CACnE,SAAS,EAAE,gBAAgB,OAD0C;YACrE,SAAS,EAAE,gBAAgB;SAC5B,GAAC,CAAA;IAEF;;;;;;OAMG;IACM,WAAW,GAAG,KAAK,iEAA+B,CAAA;IAE3D;;;OAGG;IACM,YAAY,GAAG,KAAK,kEAAgC,CAAA;IAE7D;;;;;OAKG;IACM,aAAa,GAAG,KAAK,CAAkC,SAAS,iDACvE,SAAS,EAAE,gBAAgB,OAD8C;YACzE,SAAS,EAAE,gBAAgB;SAC5B,GAAC,CAAA;IAEF;;OAEG;IACM,KAAK,GAAG,KAAK,2DAA6B,CAAA;IAEnD;;OAEG;IACM,YAAY,GAAG,MAAM,EAAU,CAAA;IAExC;;OAEG;IACM,YAAY,GAAG,MAAM,EAAU,CAAA;IAErB,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAA;IAC3B,SAAS,GAAG,YAAY,EAAE,CAAA;
|
|
1
|
+
{"version":3,"file":"core-tabs-root.directive.js","sourceRoot":"","sources":["../../../src/tabs/core-tabs-root.directive.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,8CAA8C;AAE9C,OAAO,EAAC,QAAQ,EAAC,MAAM,iBAAiB,CAAA;AACxC,OAAO,EACL,gBAAgB,EAChB,QAAQ,EACR,SAAS,EACT,MAAM,EACN,QAAQ,EACR,KAAK,EAEL,MAAM,GACP,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAC,YAAY,EAAE,YAAY,EAAC,MAAM,kCAAkC,CAAA;AAC3E,OAAO,EACL,cAAc,EACd,UAAU,EACV,gBAAgB,GACjB,MAAM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AAI,IAAI,CAAC,SAAS,EAAE,EAAE,CAAC;oBACrB,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;gBAC/B,CAAC;YACH,CAAC;YACD,WAAW,EAAE,IAAI,CAAC,WAAW,EAAE;YAC/B,YAAY,EAAE,IAAI,CAAC,YAAY,EAAE;YACjC,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE;SACpB,CAAC,CAAC,EACH,IAAI,CAAC,QAAQ,CACd,CAAA;QAED,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,EAAE,CAAC,aAAa,CAAC,OAAO,EAAE,cAAc,CAAC,CAAC,CAAC,CAAA;QAEzE,IAAI,CAAC,iBAAiB,CAAC,IAAI,CACzB,QAAQ,CAAmC,GAAG,EAAE,CAAC,CAAC;YAChD,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE;YAC3B,aAAa,EAAE,IAAI,CAAC,aAAa,EAAE;SACpC,CAAC,CAAC,CACJ,CAAA;QAED,IAAI,CAAC,aAAa,EAAE,CAAA;IACtB,CAAC;wGA/JU,qBAAqB;4FAArB,qBAAqB;;4FAArB,qBAAqB;kBADjC,SAAS","sourcesContent":["// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {DOCUMENT} from \"@angular/common\"\nimport {\n booleanAttribute,\n computed,\n Directive,\n inject,\n Injector,\n input,\n type OnInit,\n output,\n} from \"@angular/core\"\n\nimport {useIsMounted, useOnDestroy} from \"@qualcomm-ui/angular-core/common\"\nimport {\n normalizeProps,\n useMachine,\n useTrackBindings,\n} from \"@qualcomm-ui/angular-core/machine\"\nimport {RenderStrategyContextService} from \"@qualcomm-ui/angular-core/presence\"\nimport type {SignalifyInput} from \"@qualcomm-ui/angular-core/signals\"\nimport type {RenderStrategyApiProps} from \"@qualcomm-ui/core/presence\"\nimport {\n createTabsApi,\n type IntlTranslations,\n type TabsActivationMode,\n type TabsApiProps,\n tabsMachine,\n type TabsOrientation,\n} from \"@qualcomm-ui/core/tabs\"\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 {TabsContextService} from \"./tabs-context.service\"\n\n@Directive()\nexport class CoreTabsRootDirective\n implements OnInit, SignalifyInput<TabsApiProps & RenderStrategyApiProps>\n{\n /**\n * The activation mode of the tabs.\n * @option `'automatic'`: Tabs are activated when receiving focus\n * @option `'manual'`: Tabs are activated when clicked or the enter key is pressed.\n *\n * @default \"automatic\"\n */\n readonly activationMode = input<TabsActivationMode | undefined>()\n\n /**\n * Determines whether tabs act as a standalone composite widget (true) or as a\n * non-focusable component within another widget (false).\n *\n * @default true\n */\n readonly composite = input<boolean | undefined, Booleanish>(undefined, {\n transform: booleanAttribute,\n })\n\n /**\n * The initial selected tab value when rendered.\n * Use when you don't need to control the selected tab value.\n */\n readonly defaultValue = input<string | null | undefined>()\n\n /**\n * Whether the active tab can be deselected when clicking on it.\n */\n readonly deselectable = input<boolean | undefined, Booleanish>(undefined, {\n transform: booleanAttribute,\n })\n\n /**\n * The document's text/writing direction.\n *\n * @default \"ltr\"\n */\n readonly dir = input<Direction | undefined>(undefined)\n\n /**\n * A root node to correctly resolve the Document in custom environments. i.e.,\n * Iframes, Electron.\n */\n readonly getRootNode = input<\n (() => ShadowRoot | Document | Node) | undefined\n >()\n\n /**\n * When true, the component will not be rendered in the DOM until it becomes\n * visible or active.\n *\n * @default false\n */\n readonly lazyMount = input<boolean | undefined, Booleanish>(undefined, {\n transform: booleanAttribute,\n })\n\n /**\n * Whether the keyboard navigation will loop from last tab to first, and vice versa.\n * @default true\n */\n readonly loopFocus = input<boolean | undefined, Booleanish>(undefined, {\n transform: booleanAttribute,\n })\n\n /**\n * The orientation of the tabs. Can be `horizontal` or `vertical`\n * @option `'horizontal'`: only left and right arrow key navigation will work.\n * @option `'vertical'`: only up and down arrow key navigation will work.\n *\n * @default \"horizontal\"\n */\n readonly orientation = input<TabsOrientation | undefined>()\n\n /**\n * Specifies the localized strings that identifies the accessibility elements and\n * their states\n */\n readonly translations = input<IntlTranslations | undefined>()\n\n /**\n * When true, the component will be completely removed from the DOM when it\n * becomes inactive or hidden, rather than just being hidden with CSS.\n *\n * @default false\n */\n readonly unmountOnExit = input<boolean | undefined, Booleanish>(undefined, {\n transform: booleanAttribute,\n })\n\n /**\n * The controlled selected tab value\n */\n readonly value = input<string | null | undefined>()\n\n /**\n * Callback to be called when the focused tab changes\n */\n readonly focusChanged = output<string>()\n\n /**\n * Callback to be called when the selected/active tab changes\n */\n readonly valueChanged = output<string>()\n\n protected readonly document = inject(DOCUMENT)\n protected readonly injector = inject(Injector)\n protected readonly onDestroy = useOnDestroy()\n\n protected readonly isMounted = useIsMounted()\n protected readonly renderStrategyApi = inject(RenderStrategyContextService)\n\n protected readonly tabsApi = inject(TabsContextService)\n\n protected readonly trackBindings = useTrackBindings(() => {\n return this.tabsApi.context().getRootBindings()\n })\n\n ngOnInit() {\n const machine = useMachine(\n tabsMachine,\n computed<Explicit<TabsApiProps>>(() => ({\n activationMode: this.activationMode(),\n composite: this.composite(),\n defaultValue: this.defaultValue(),\n deselectable: this.deselectable(),\n dir: this.dir(),\n getRootNode: this.getRootNode() ?? (() => this.document),\n loopFocus: this.loopFocus(),\n onFocusChange: (value) => {\n if (this.isMounted()) {\n this.focusChanged.emit(value)\n }\n },\n onValueChange: (value) => {\n if (this.isMounted()) {\n this.valueChanged.emit(value)\n }\n },\n orientation: this.orientation(),\n translations: this.translations(),\n value: this.value(),\n })),\n this.injector,\n )\n\n this.tabsApi.init(computed(() => createTabsApi(machine, normalizeProps)))\n\n this.renderStrategyApi.init(\n computed<Explicit<RenderStrategyApiProps>>(() => ({\n lazyMount: this.lazyMount(),\n unmountOnExit: this.unmountOnExit(),\n })),\n )\n\n this.trackBindings()\n }\n}\n"]}
|
|
@@ -37,7 +37,7 @@ export class CoreTextInputRootDirective extends AbstractInputFormControlDirectiv
|
|
|
37
37
|
disabled: this.isDisabled(),
|
|
38
38
|
// angular handles this automatically with ngModel and Reactive Forms
|
|
39
39
|
form: undefined,
|
|
40
|
-
getRootNode: this.getRootNode(),
|
|
40
|
+
getRootNode: this.getRootNode() ?? (() => this.document),
|
|
41
41
|
ids: undefined,
|
|
42
42
|
invalid: this.isInvalid(),
|
|
43
43
|
name: this.name(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core-text-input-root.directive.js","sourceRoot":"","sources":["../../../src/text-input/core-text-input-root.directive.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,8CAA8C;AAE9C,OAAO,EAAC,QAAQ,EAAC,MAAM,iBAAiB,CAAA;AACxC,OAAO,EACL,QAAQ,EACR,SAAS,EACT,MAAM,EACN,KAAK,EAEL,MAAM,GACP,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAC,YAAY,EAAC,MAAM,kCAAkC,CAAA;AAC7D,OAAO,EAAC,iCAAiC,EAAC,MAAM,iCAAiC,CAAA;AACjF,OAAO,EACL,cAAc,EACd,UAAU,EACV,gBAAgB,GACjB,MAAM,mCAAmC,CAAA;AAE1C,OAAO,EACL,kBAAkB,EAElB,gBAAgB,GACjB,MAAM,8BAA8B,CAAA;AAIrC,OAAO,EAAC,uBAAuB,EAAC,MAAM,8BAA8B,CAAA;;AAGpE,MAAM,OAAO,0BACX,SAAQ,iCAAiC;IAKzC;;;;OAIG;IACM,GAAG,GAAG,KAAK,CAAwB,SAAS,+CAAC,CAAA;IAEtD;;;OAGG;IACM,WAAW,GAAG,KAAK,iEAEzB,CAAA;IAEH;;;OAGG;IACM,YAAY,GAAG,MAAM,EAAU,CAAA;IAErB,gBAAgB,GAAG,MAAM,CAAC,uBAAuB,CAAC,CAAA;
|
|
1
|
+
{"version":3,"file":"core-text-input-root.directive.js","sourceRoot":"","sources":["../../../src/text-input/core-text-input-root.directive.ts"],"names":[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ACd,CAAA;QAED,IAAI,CAAC,gBAAgB,CAAC,IAAI,CACxB,QAAQ,CAAC,GAAG,EAAE,CAAC,kBAAkB,CAAC,OAAO,EAAE,cAAc,CAAC,CAAC,CAC5D,CAAA;QAED,IAAI,CAAC,aAAa,EAAE,CAAA;IACtB,CAAC;wGAxFU,0BAA0B;4FAA1B,0BAA0B;;4FAA1B,0BAA0B;kBADtC,SAAS","sourcesContent":["// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {DOCUMENT} from \"@angular/common\"\nimport {\n computed,\n Directive,\n inject,\n input,\n type OnInit,\n output,\n} from \"@angular/core\"\n\nimport {useIsMounted} from \"@qualcomm-ui/angular-core/common\"\nimport {AbstractInputFormControlDirective} from \"@qualcomm-ui/angular-core/input\"\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 createTextInputApi,\n type TextInputApiProps,\n textInputMachine,\n} from \"@qualcomm-ui/core/text-input\"\nimport type {Direction} from \"@qualcomm-ui/utils/direction\"\nimport type {Explicit} from \"@qualcomm-ui/utils/guard\"\n\nimport {TextInputContextService} from \"./text-input-context.service\"\n\n@Directive()\nexport class CoreTextInputRootDirective\n extends AbstractInputFormControlDirective\n implements\n OnInit,\n SignalifyInput<Omit<TextInputApiProps, \"form\" | \"ids\" | \"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 * 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 * Event emitted when the input value changes. This is only emitted on\n * interaction. It doesn't emit in response to programmatic form control changes.\n */\n readonly valueChanged = output<string>()\n\n protected readonly textInputService = inject(TextInputContextService)\n protected readonly document = inject(DOCUMENT)\n\n protected readonly trackBindings = useTrackBindings(() =>\n this.textInputService.context().getRootBindings(),\n )\n\n protected readonly isMounted = useIsMounted()\n\n override ngOnInit() {\n super.ngOnInit()\n\n const machine = useMachine(\n textInputMachine,\n computed<Explicit<TextInputApiProps>>(() => ({\n defaultValue: this.defaultValue(),\n dir: this.dir(),\n disabled: this.isDisabled(),\n // angular handles this automatically with ngModel and Reactive Forms\n form: undefined,\n getRootNode: this.getRootNode() ?? (() => this.document),\n ids: undefined,\n invalid: this.isInvalid(),\n name: this.name(),\n onFocusChange: (focused) => {\n if (!focused) {\n // only trigger onTouched on blur.\n this.onTouched()\n }\n },\n onValueChange: (value) => {\n if (!this.control) {\n if (this.isMounted()) {\n this.valueChanged.emit(value)\n }\n this.value.set(value)\n return\n }\n // ngModel is bound to the root, but change events happen on the <input>\n // element and are forwarded to the machine. So we need to fire the value\n // change event to keep the form in sync.\n this.onChange(value)\n if (!this.control?.touched) {\n this.control.markAsTouched?.()\n }\n if (!this.control?.dirty) {\n this.control.markAsDirty?.()\n }\n },\n readOnly: this.readOnly(),\n required: this.isRequired(),\n value: this.value(),\n })),\n this.injector,\n )\n\n this.textInputService.init(\n computed(() => createTextInputApi(machine, normalizeProps)),\n )\n\n this.trackBindings()\n }\n}\n"]}
|
|
@@ -95,6 +95,7 @@ export declare class CoreNumberInputRootDirective extends AbstractNumberInputFor
|
|
|
95
95
|
* Function invoked when the value overflows or underflows the min/max range
|
|
96
96
|
*/
|
|
97
97
|
readonly valueInvalid: import("@angular/core").OutputEmitterRef<NumberInputValueInvalidDetails>;
|
|
98
|
+
protected readonly document: Document;
|
|
98
99
|
protected readonly isMounted: () => boolean;
|
|
99
100
|
protected readonly numberInputContext: NumberInputContextService;
|
|
100
101
|
protected readonly trackBindings: ((opts?: import("dist/machine").TrackBindingsConfig) => void) & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core-number-input-root.directive.d.ts","sourceRoot":"","sources":["../../../src/number-input/core-number-input-root.directive.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"core-number-input-root.directive.d.ts","sourceRoot":"","sources":["../../../src/number-input/core-number-input-root.directive.ts"],"names":[],"mappings":"AAIA,OAAO,EAML,KAAK,MAAM,EAEZ,MAAM,eAAe,CAAA;AAStB,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,mCAAmC,CAAA;AACrE,OAAO,EAEL,KAAK,mBAAmB,EACxB,KAAK,2BAA2B,EAEhC,KAAK,eAAe,EACpB,KAAK,6BAA6B,EAClC,KAAK,8BAA8B,EACpC,MAAM,gCAAgC,CAAA;AACvC,OAAO,KAAK,EAAC,UAAU,EAAE,WAAW,EAAC,MAAM,6BAA6B,CAAA;AACxE,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,8BAA8B,CAAA;AAG3D,OAAO,EAAC,uCAAuC,EAAC,MAAM,gDAAgD,CAAA;AACtG,OAAO,EAAC,yBAAyB,EAAC,MAAM,gCAAgC,CAAA;;AAExE,qBACa,4BACX,SAAQ,uCACR,YACE,MAAM,EACN,IAAI,CACF,cAAc,CAAC,mBAAmB,CAAC,EACnC,cAAc,GAAG,MAAM,GAAG,KAAK,GAAG,OAAO,CAC1C;IAEH;;OAEG;IACH,QAAQ,CAAC,eAAe,oFAEtB;IAEF;;;OAGG;IACH,QAAQ,CAAC,aAAa,oFAEpB;IAEF;;;OAGG;IACH,QAAQ,CAAC,gBAAgB,oFAKxB;IAED;;;;OAIG;IACH,QAAQ,CAAC,GAAG,6DAA0C;IAEtD;;;;OAIG;IACH,QAAQ,CAAC,kBAAkB,oFAK1B;IAED;;OAEG;IACH,QAAQ,CAAC,aAAa,4EAAgD;IAEtE;;;OAGG;IACH,QAAQ,CAAC,WAAW,6CACX,UAAU,GAAG,QAAQ,GAAG,IAAI,eAClC;IAEH;;;;OAIG;IACH,QAAQ,CAAC,SAAS,mEAAuC;IAEzD;;;OAGG;IACH,QAAQ,CAAC,GAAG,oFAEV;IAEF;;;OAGG;IACH,QAAQ,CAAC,GAAG,oFAEV;IAEF;;;;OAIG;IACH,QAAQ,CAAC,MAAM,0DAA8B;IAE7C;;;;OAIG;IACH,QAAQ,CAAC,OAAO,0DAA8B;IAE9C;;;OAGG;IACH,QAAQ,CAAC,WAAW,oFAElB;IAEF;;;OAGG;IACH,QAAQ,CAAC,IAAI,oFAEX;IAEF;;;OAGG;IACH,QAAQ,CAAC,YAAY,+EAAmD;IAExE;;;;OAIG;IACH,QAAQ,CAAC,YAAY,0EAA0C;IAE/D;;OAEG;IACH,QAAQ,CAAC,YAAY,2EAA2C;IAEhE,SAAS,CAAC,QAAQ,CAAC,QAAQ,WAAmB;IAE9C,SAAS,CAAC,QAAQ,CAAC,SAAS,gBAAiB;IAE7C,SAAS,CAAC,QAAQ,CAAC,kBAAkB,4BAAoC;IAEzE,SAAS,CAAC,QAAQ,CAAC,aAAa;;;MAE9B;IAEO,QAAQ;yCApJN,4BAA4B;2CAA5B,4BAA4B;CA8NxC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qualcomm-ui/angular-core",
|
|
3
|
-
"description": "
|
|
4
|
-
"version": "1.0.
|
|
3
|
+
"description": "Design-agnostic Angular building blocks and utilities.",
|
|
4
|
+
"version": "1.0.2",
|
|
5
5
|
"author": "Ryan Bower",
|
|
6
6
|
"license": "BSD-3-Clause-Clear",
|
|
7
7
|
"sideEffects": false,
|
|
@@ -32,14 +32,14 @@
|
|
|
32
32
|
"types": "./checkbox/qualcomm-ui-angular-core-checkbox.d.ts",
|
|
33
33
|
"default": "./esm2022/checkbox/qualcomm-ui-angular-core-checkbox.js"
|
|
34
34
|
},
|
|
35
|
-
"./collection": {
|
|
36
|
-
"types": "./collection/qualcomm-ui-angular-core-collection.d.ts",
|
|
37
|
-
"default": "./esm2022/collection/qualcomm-ui-angular-core-collection.js"
|
|
38
|
-
},
|
|
39
35
|
"./collapsible": {
|
|
40
36
|
"types": "./collapsible/qualcomm-ui-angular-core-collapsible.d.ts",
|
|
41
37
|
"default": "./esm2022/collapsible/qualcomm-ui-angular-core-collapsible.js"
|
|
42
38
|
},
|
|
39
|
+
"./collection": {
|
|
40
|
+
"types": "./collection/qualcomm-ui-angular-core-collection.d.ts",
|
|
41
|
+
"default": "./esm2022/collection/qualcomm-ui-angular-core-collection.js"
|
|
42
|
+
},
|
|
43
43
|
"./combobox": {
|
|
44
44
|
"types": "./combobox/qualcomm-ui-angular-core-combobox.d.ts",
|
|
45
45
|
"default": "./esm2022/combobox/qualcomm-ui-angular-core-combobox.js"
|
|
@@ -132,14 +132,14 @@
|
|
|
132
132
|
"types": "./progress-ring/qualcomm-ui-angular-core-progress-ring.d.ts",
|
|
133
133
|
"default": "./esm2022/progress-ring/qualcomm-ui-angular-core-progress-ring.js"
|
|
134
134
|
},
|
|
135
|
-
"./segmented-control": {
|
|
136
|
-
"types": "./segmented-control/qualcomm-ui-angular-core-segmented-control.d.ts",
|
|
137
|
-
"default": "./esm2022/segmented-control/qualcomm-ui-angular-core-segmented-control.js"
|
|
138
|
-
},
|
|
139
135
|
"./radio": {
|
|
140
136
|
"types": "./radio/qualcomm-ui-angular-core-radio.d.ts",
|
|
141
137
|
"default": "./esm2022/radio/qualcomm-ui-angular-core-radio.js"
|
|
142
138
|
},
|
|
139
|
+
"./segmented-control": {
|
|
140
|
+
"types": "./segmented-control/qualcomm-ui-angular-core-segmented-control.d.ts",
|
|
141
|
+
"default": "./esm2022/segmented-control/qualcomm-ui-angular-core-segmented-control.js"
|
|
142
|
+
},
|
|
143
143
|
"./select": {
|
|
144
144
|
"types": "./select/qualcomm-ui-angular-core-select.d.ts",
|
|
145
145
|
"default": "./esm2022/select/qualcomm-ui-angular-core-select.js"
|
|
@@ -185,16 +185,15 @@
|
|
|
185
185
|
"tslib": "^2.3.0"
|
|
186
186
|
},
|
|
187
187
|
"peerDependencies": {
|
|
188
|
-
"@angular/
|
|
189
|
-
"@angular/
|
|
190
|
-
"@angular/
|
|
191
|
-
"@angular/
|
|
192
|
-
"@angular/
|
|
193
|
-
"@angular/
|
|
194
|
-
"@angular/platform-browser": ">=
|
|
195
|
-
"@angular/platform-browser-dynamic": ">=18.2.12 <21",
|
|
188
|
+
"@angular/cdk": ">=20 <22",
|
|
189
|
+
"@angular/common": ">=20 <22",
|
|
190
|
+
"@angular/compiler": ">=20 <22",
|
|
191
|
+
"@angular/core": ">=20 <22",
|
|
192
|
+
"@angular/forms": ">=20 <22",
|
|
193
|
+
"@angular/platform-browser": ">=20 <22",
|
|
194
|
+
"@angular/platform-browser-dynamic": ">=20 <22",
|
|
196
195
|
"@qualcomm-ui/core": "^1.0.3",
|
|
197
|
-
"@qualcomm-ui/dom": "^1.0.
|
|
196
|
+
"@qualcomm-ui/dom": "^1.0.4",
|
|
198
197
|
"@qualcomm-ui/utils": "^1.0.2",
|
|
199
198
|
"@tanstack/virtual-core": ">=3.13.12",
|
|
200
199
|
"lucide-angular": ">=0.487.0 <1",
|
|
@@ -46,7 +46,7 @@ export declare class CorePasswordInputRootDirective extends AbstractInputFormCon
|
|
|
46
46
|
* Function called when the visibility changes.
|
|
47
47
|
*/
|
|
48
48
|
readonly visibleChanged: import("@angular/core").OutputEmitterRef<boolean>;
|
|
49
|
-
protected document: Document;
|
|
49
|
+
protected readonly document: Document;
|
|
50
50
|
protected readonly isMounted: () => boolean;
|
|
51
51
|
protected readonly passwordInputService: PasswordInputContextService;
|
|
52
52
|
protected readonly trackBindings: ((opts?: import("dist/machine").TrackBindingsConfig) => void) & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core-password-input-root.directive.d.ts","sourceRoot":"","sources":["../../../src/password-input/core-password-input-root.directive.ts"],"names":[],"mappings":"AAIA,OAAO,EAML,KAAK,MAAM,EAEZ,MAAM,eAAe,CAAA;AAGtB,OAAO,EAAC,iCAAiC,EAAC,MAAM,iCAAiC,CAAA;AAMjF,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,mCAAmC,CAAA;AACrE,OAAO,EAEL,KAAK,qBAAqB,EAC1B,KAAK,6BAA6B,EAEnC,MAAM,kCAAkC,CAAA;AACzC,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,6BAA6B,CAAA;AAC3D,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,8BAA8B,CAAA;AAG3D,OAAO,EAAC,2BAA2B,EAAC,MAAM,kCAAkC,CAAA;;AAE5E,qBACa,8BACX,SAAQ,iCACR,YACE,IAAI,CAAC,cAAc,CAAC,qBAAqB,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,OAAO,CAAC,EACrE,MAAM;IAER;;;;;OAKG;IACH,QAAQ,CAAC,YAAY,uFAElB;IAEH;;OAEG;IACH,QAAQ,CAAC,cAAc,oFAErB;IAEF;;;;OAIG;IACH,QAAQ,CAAC,GAAG,6DAA0C;IAEtD;;;OAGG;IACH,QAAQ,CAAC,WAAW,6CACX,UAAU,GAAG,QAAQ,GAAG,IAAI,eAClC;IAEH;;OAEG;IACH,QAAQ,CAAC,YAAY,iFAAqD;IAE1E;;OAEG;IACH,QAAQ,CAAC,OAAO,oFAEd;IAEF;;;OAGG;IACH,QAAQ,CAAC,YAAY,mDAAmB;IAExC;;OAEG;IACH,QAAQ,CAAC,cAAc,oDAAoB;IAE3C,SAAS,CAAC,QAAQ,WAAmB;
|
|
1
|
+
{"version":3,"file":"core-password-input-root.directive.d.ts","sourceRoot":"","sources":["../../../src/password-input/core-password-input-root.directive.ts"],"names":[],"mappings":"AAIA,OAAO,EAML,KAAK,MAAM,EAEZ,MAAM,eAAe,CAAA;AAGtB,OAAO,EAAC,iCAAiC,EAAC,MAAM,iCAAiC,CAAA;AAMjF,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,mCAAmC,CAAA;AACrE,OAAO,EAEL,KAAK,qBAAqB,EAC1B,KAAK,6BAA6B,EAEnC,MAAM,kCAAkC,CAAA;AACzC,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,6BAA6B,CAAA;AAC3D,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,8BAA8B,CAAA;AAG3D,OAAO,EAAC,2BAA2B,EAAC,MAAM,kCAAkC,CAAA;;AAE5E,qBACa,8BACX,SAAQ,iCACR,YACE,IAAI,CAAC,cAAc,CAAC,qBAAqB,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,OAAO,CAAC,EACrE,MAAM;IAER;;;;;OAKG;IACH,QAAQ,CAAC,YAAY,uFAElB;IAEH;;OAEG;IACH,QAAQ,CAAC,cAAc,oFAErB;IAEF;;;;OAIG;IACH,QAAQ,CAAC,GAAG,6DAA0C;IAEtD;;;OAGG;IACH,QAAQ,CAAC,WAAW,6CACX,UAAU,GAAG,QAAQ,GAAG,IAAI,eAClC;IAEH;;OAEG;IACH,QAAQ,CAAC,YAAY,iFAAqD;IAE1E;;OAEG;IACH,QAAQ,CAAC,OAAO,oFAEd;IAEF;;;OAGG;IACH,QAAQ,CAAC,YAAY,mDAAmB;IAExC;;OAEG;IACH,QAAQ,CAAC,cAAc,oDAAoB;IAE3C,SAAS,CAAC,QAAQ,CAAC,QAAQ,WAAmB;IAE9C,SAAS,CAAC,QAAQ,CAAC,SAAS,gBAAiB;IAE7C,SAAS,CAAC,QAAQ,CAAC,oBAAoB,8BAAsC;IAE7E,SAAS,CAAC,QAAQ,CAAC,aAAa;;;MAE9B;IAEO,QAAQ;yCAvEN,8BAA8B;2CAA9B,8BAA8B;CAqI1C"}
|
|
@@ -108,7 +108,7 @@ export declare class CorePopoverRootDirective implements SignalifyInput<Omit<Pop
|
|
|
108
108
|
*/
|
|
109
109
|
readonly requestDismissed: import("@angular/core").OutputEmitterRef<LayerDismissEvent>;
|
|
110
110
|
protected readonly portalChild: import("@angular/core").Signal<PortalDirective | undefined>;
|
|
111
|
-
protected document: Document;
|
|
111
|
+
protected readonly document: Document;
|
|
112
112
|
protected readonly injector: Injector;
|
|
113
113
|
protected readonly isMounted: () => boolean;
|
|
114
114
|
protected readonly popoverContext: PopoverContextService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core-popover-root.directive.d.ts","sourceRoot":"","sources":["../../../src/popover/core-popover-root.directive.ts"],"names":[],"mappings":"AAIA,OAAO,EAML,QAAQ,EAER,KAAK,MAAM,EAEZ,MAAM,eAAe,CAAA;AAQtB,OAAO,EAAC,eAAe,EAAC,MAAM,kCAAkC,CAAA;AAChE,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,mCAAmC,CAAA;AACrE,OAAO,EAEL,KAAK,eAAe,EAErB,MAAM,2BAA2B,CAAA;AAClC,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,8BAA8B,CAAA;AACnE,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,8BAA8B,CAAA;AACpE,OAAO,KAAK,EACV,iBAAiB,EACjB,oBAAoB,EACpB,uBAAuB,EACxB,MAAM,mCAAmC,CAAA;AAC1C,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,6BAA6B,CAAA;AAC3D,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,8BAA8B,CAAA;AAG3D,OAAO,EAAC,qBAAqB,EAAC,MAAM,2BAA2B,CAAA;;AAE/D,qBACa,wBACX,YAAW,cAAc,CAAC,IAAI,CAAC,eAAe,EAAE,KAAK,GAAG,WAAW,CAAC,CAAC,EAAE,MAAM;IAE7E;;;;;OAKG;IACH,QAAQ,CAAC,SAAS,2DAAwC;IAE1D;;;;OAIG;IACH,QAAQ,CAAC,aAAa,2DAA+B;IAErD;;;;OAIG;IACH,QAAQ,CAAC,sBAAsB,2DAA+B;IAE9D;;;OAGG;IACH,QAAQ,CAAC,WAAW,2DAA+B;IAEnD;;;;OAIG;IACH,QAAQ,CAAC,GAAG,6DAAiC;IAE7C;;;OAGG;IACH,QAAQ,CAAC,WAAW,6CAAe,UAAU,GAAG,QAAQ,GAAG,IAAI,eAAG;IAElE;;OAEG;IACH,QAAQ,CAAC,cAAc,6CAAgB,WAAW,GAAG,IAA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QAAQ,CAAC,WAAW,8DAE5B;IACF,SAAS,CAAC,QAAQ,CAAC,QAAQ,WAAmB;IAC9C,SAAS,CAAC,QAAQ,CAAC,QAAQ,WAAmB;IAC9C,SAAS,CAAC,QAAQ,CAAC,SAAS,gBAAiB;IAC7C,SAAS,CAAC,QAAQ,CAAC,cAAc,wBAAgC;IACjE,SAAS,CAAC,QAAQ,CAAC,aAAa;;;MAE/B;IAED,QAAQ;yCAjIG,wBAAwB;2CAAxB,wBAAwB;CA8LpC"}
|
|
@@ -29,6 +29,7 @@ export declare class CoreRadioGroupDirective extends AbstractRadioFormControlDir
|
|
|
29
29
|
*/
|
|
30
30
|
readonly orientation: import("@angular/core").InputSignal<RadioOrientation | undefined>;
|
|
31
31
|
protected readonly radioContextService: RadioContextService;
|
|
32
|
+
protected readonly document: Document;
|
|
32
33
|
protected readonly trackBindings: ((opts?: import("dist/machine").TrackBindingsConfig) => void) & {
|
|
33
34
|
extendWith: (computedProps: () => import("dist/machine").Dict) => void;
|
|
34
35
|
setDisabled: (disabled: boolean) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core-radio-group.directive.d.ts","sourceRoot":"","sources":["../../../src/radio/core-radio-group.directive.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"core-radio-group.directive.d.ts","sourceRoot":"","sources":["../../../src/radio/core-radio-group.directive.ts"],"names":[],"mappings":"AAIA,OAAO,EAAqC,KAAK,MAAM,EAAC,MAAM,eAAe,CAAA;AAQ7E,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,mCAAmC,CAAA;AACrE,OAAO,EAEL,KAAK,aAAa,EAElB,KAAK,gBAAgB,EACtB,MAAM,yBAAyB,CAAA;AAChC,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,8BAA8B,CAAA;AAG3D,OAAO,EAAC,iCAAiC,EAAC,MAAM,yCAAyC,CAAA;AACzF,OAAO,EAAC,mBAAmB,EAAC,MAAM,yBAAyB,CAAA;;AAE3D,qBAKa,uBACX,SAAQ,iCACR,YAAW,MAAM,EAAE,cAAc,CAAC,IAAI,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC;IAExE;;;;OAIG;IACH,QAAQ,CAAC,GAAG,6DAA0C;IAEtD;;;OAGG;IACH,QAAQ,CAAC,EAAE,0DAAkB;IAE7B;;;OAGG;IACH,QAAQ,CAAC,WAAW,6CACX,UAAU,GAAG,QAAQ,GAAG,IAAI,eAClC;IAEH;;;;OAIG;IACH,QAAQ,CAAC,WAAW,oEAA4B;IAEhD,SAAS,CAAC,QAAQ,CAAC,mBAAmB,sBAA8B;IAEpE,SAAS,CAAC,QAAQ,CAAC,QAAQ,WAAmB;IAE9C,SAAS,CAAC,QAAQ,CAAC,aAAa;;;MAK/B;IAED,SAAS,CAAC,QAAQ,CAAC,MAAM,yCAAyC;IAElE,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAmB;IAE/C,SAAS,CAAC,MAAM;IAMP,QAAQ;yCArDN,uBAAuB;2CAAvB,uBAAuB;CA8FnC"}
|
|
@@ -35,7 +35,7 @@ export declare class CoreSwitchRootDirective extends AbstractCheckboxFormControl
|
|
|
35
35
|
*/
|
|
36
36
|
readonly value: import("@angular/core").InputSignal<string | undefined>;
|
|
37
37
|
protected readonly switchContextService: SwitchContextService;
|
|
38
|
-
protected document: Document;
|
|
38
|
+
protected readonly document: Document;
|
|
39
39
|
protected readonly hostId: import("@angular/core").Signal<string>;
|
|
40
40
|
protected readonly trackBindings: ((opts?: import("dist/machine").TrackBindingsConfig) => void) & {
|
|
41
41
|
extendWith: (computedProps: () => import("dist/machine").Dict) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core-switch-root.directive.d.ts","sourceRoot":"","sources":["../../../src/switch/core-switch-root.directive.ts"],"names":[],"mappings":"AAIA,OAAO,EAML,KAAK,MAAM,EACZ,MAAM,eAAe,CAAA;AACtB,OAAO,EAAC,KAAK,oBAAoB,EAAC,MAA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A;AAMhE,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,6BAA6B,CAAA;AAC3D,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,8BAA8B,CAAA;AAG3D,OAAO,EAAC,oBAAoB,EAAC,MAAM,0BAA0B,CAAA;;AAE7D,qBACa,uBACX,SAAQ,oCACR,YACE,cAAc,CAAC,IAAI,CAAC,gBAAgB,EAAE,SAAS,GAAG,MAAM,GAAG,KAAK,CAAC,CAAC,EAClE,oBAAoB,EACpB,MAAM;IAER;;;;OAIG;IACH,QAAQ,CAAC,GAAG,6DAA0C;IAEtD;;;OAGG;IACH,QAAQ,CAAC,WAAW,6CACX,UAAU,GAAG,QAAQ,GAAG,IAAI,eAClC;IAEH;;;OAGG;IACH,QAAQ,CAAC,aAAa,oFAEpB;IAEF;;;OAGG;IACH,QAAQ,CAAC,EAAE,0DAAuC;IAElD;;;OAGG;IACH,QAAQ,CAAC,KAAK,0DAA8B;IAE5C,SAAS,CAAC,QAAQ,CAAC,oBAAoB,uBAA+B;IACtE,SAAS,CAAC,QAAQ,CAAC,QAAQ,WAAmB;IAE9C,SAAS,CAAC,QAAQ,CAAC,MAAM,yCAAyC;IAClE,SAAS,CAAC,QAAQ,CAAC,aAAa;;;MAE/B;IAEQ,QAAQ;yCAlDN,uBAAuB;2CAAvB,uBAAuB;CAgGnC"}
|
|
@@ -87,6 +87,7 @@ export declare class CoreTabsRootDirective implements OnInit, SignalifyInput<Tab
|
|
|
87
87
|
* Callback to be called when the selected/active tab changes
|
|
88
88
|
*/
|
|
89
89
|
readonly valueChanged: import("@angular/core").OutputEmitterRef<string>;
|
|
90
|
+
protected readonly document: Document;
|
|
90
91
|
protected readonly injector: Injector;
|
|
91
92
|
protected readonly onDestroy: (callback: () => void) => void;
|
|
92
93
|
protected readonly isMounted: () => boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core-tabs-root.directive.d.ts","sourceRoot":"","sources":["../../../src/tabs/core-tabs-root.directive.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Y,oEAAwC;IAE7D;;;;;OAKG;IACH,QAAQ,CAAC,aAAa,oFAEpB;IAEF;;OAEG;IACH,QAAQ,CAAC,KAAK,iEAAqC;IAEnD;;OAEG;IACH,QAAQ,CAAC,YAAY,mDAAmB;IAExC;;OAEG;IACH,QAAQ,CAAC,YAAY,mDAAmB;IAExC,SAAS,CAAC,QAAQ,CAAC,QAAQ,WAAmB;IAC9C,SAAS,CAAC,QAAQ,CAAC,QAAQ,WAAmB;IAC9C,SAAS,CAAC,QAAQ,CAAC,SAAS,iCAAiB;IAE7C,SAAS,CAAC,QAAQ,CAAC,SAAS,gBAAiB;IAC7C,SAAS,CAAC,QAAQ,CAAC,iBAAiB,+BAAuC;IAE3E,SAAS,CAAC,QAAQ,CAAC,OAAO,qBAA6B;IAEvD,SAAS,CAAC,QAAQ,CAAC,aAAa;;;MAE9B;IAEF,QAAQ;yCAzHG,qBAAqB;2CAArB,qBAAqB;CAgKjC"}
|
|
@@ -23,7 +23,7 @@ export declare class CoreTextInputRootDirective extends AbstractInputFormControl
|
|
|
23
23
|
*/
|
|
24
24
|
readonly valueChanged: import("@angular/core").OutputEmitterRef<string>;
|
|
25
25
|
protected readonly textInputService: TextInputContextService;
|
|
26
|
-
protected document: Document;
|
|
26
|
+
protected readonly document: Document;
|
|
27
27
|
protected readonly trackBindings: ((opts?: import("dist/machine").TrackBindingsConfig) => void) & {
|
|
28
28
|
extendWith: (computedProps: () => import("dist/machine").Dict) => void;
|
|
29
29
|
setDisabled: (disabled: boolean) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core-text-input-root.directive.d.ts","sourceRoot":"","sources":["../../../src/text-input/core-text-input-root.directive.ts"],"names":[],"mappings":"AAIA,OAAO,EAKL,KAAK,MAAM,EAEZ,MAAM,eAAe,CAAA;AAGtB,OAAO,EAAC,iCAAiC,EAAC,MAAM,iCAAiC,CAAA;AAMjF,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,mCAAmC,CAAA;AACrE,OAAO,EAEL,KAAK,iBAAiB,EAEvB,MAAM,8BAA8B,CAAA;AACrC,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,8BAA8B,CAAA;AAG3D,OAAO,EAAC,uBAAuB,EAAC,MAAM,8BAA8B,CAAA;;AAEpE,qBACa,0BACX,SAAQ,iCACR,YACE,MAAM,EACN,cAAc,CAAC,IAAI,CAAC,iBAAiB,EAAE,MAAM,GAAG,KAAK,GAAG,OAAO,CAAC,CAAC;IAEnE;;;;OAIG;IACH,QAAQ,CAAC,GAAG,6DAA0C;IAEtD;;;OAGG;IACH,QAAQ,CAAC,WAAW,6CACX,UAAU,GAAG,QAAQ,GAAG,IAAI,eAClC;IAEH;;;OAGG;IACH,QAAQ,CAAC,YAAY,mDAAmB;IAExC,SAAS,CAAC,QAAQ,CAAC,gBAAgB,0BAAkC;IACrE,SAAS,CAAC,QAAQ,WAAmB;
|
|
1
|
+
{"version":3,"file":"core-text-input-root.directive.d.ts","sourceRoot":"","sources":["../../../src/text-input/core-text-input-root.directive.ts"],"names":[],"mappings":"AAIA,OAAO,EAKL,KAAK,MAAM,EAEZ,MAAM,eAAe,CAAA;AAGtB,OAAO,EAAC,iCAAiC,EAAC,MAAM,iCAAiC,CAAA;AAMjF,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,mCAAmC,CAAA;AACrE,OAAO,EAEL,KAAK,iBAAiB,EAEvB,MAAM,8BAA8B,CAAA;AACrC,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,8BAA8B,CAAA;AAG3D,OAAO,EAAC,uBAAuB,EAAC,MAAM,8BAA8B,CAAA;;AAEpE,qBACa,0BACX,SAAQ,iCACR,YACE,MAAM,EACN,cAAc,CAAC,IAAI,CAAC,iBAAiB,EAAE,MAAM,GAAG,KAAK,GAAG,OAAO,CAAC,CAAC;IAEnE;;;;OAIG;IACH,QAAQ,CAAC,GAAG,6DAA0C;IAEtD;;;OAGG;IACH,QAAQ,CAAC,WAAW,6CACX,UAAU,GA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