@qualcomm-ui/angular-core 1.0.0 → 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.
Files changed (57) hide show
  1. package/README.md +9 -0
  2. package/checkbox/core-checkbox-root.directive.d.ts +1 -1
  3. package/checkbox/core-checkbox-root.directive.d.ts.map +1 -1
  4. package/esm2022/checkbox/core-checkbox-root.directive.js.map +1 -1
  5. package/esm2022/collection/use-list-collection.js.map +1 -1
  6. package/esm2022/common/use-is-destroyed.js.map +1 -1
  7. package/esm2022/common/use-is-mounted.js.map +1 -1
  8. package/esm2022/locale/locale-context.service.js.map +1 -1
  9. package/esm2022/locale/use-filter.js.map +1 -1
  10. package/esm2022/machine/q-bind.directive.js +4 -2
  11. package/esm2022/machine/q-bind.directive.js.map +1 -1
  12. package/esm2022/number-input/core-number-input-control.directive.js.map +1 -1
  13. package/esm2022/number-input/core-number-input-decrement-trigger.directive.js.map +1 -1
  14. package/esm2022/number-input/core-number-input-error-indicator.directive.js.map +1 -1
  15. package/esm2022/number-input/core-number-input-error-text.directive.js.map +1 -1
  16. package/esm2022/number-input/core-number-input-hint.directive.js.map +1 -1
  17. package/esm2022/number-input/core-number-input-increment-trigger.directive.js.map +1 -1
  18. package/esm2022/number-input/core-number-input-input-group.directive.js.map +1 -1
  19. package/esm2022/number-input/core-number-input-input.directive.js.map +1 -1
  20. package/esm2022/number-input/core-number-input-label.directive.js.map +1 -1
  21. package/esm2022/number-input/core-number-input-root.directive.js +3 -1
  22. package/esm2022/number-input/core-number-input-root.directive.js.map +1 -1
  23. package/esm2022/number-input/number-input-context.service.js.map +1 -1
  24. package/esm2022/number-input/number-input.validators.js.map +1 -1
  25. package/esm2022/password-input/core-password-input-root.directive.js +1 -1
  26. package/esm2022/password-input/core-password-input-root.directive.js.map +1 -1
  27. package/esm2022/popover/core-popover-root.directive.js.map +1 -1
  28. package/esm2022/portal/portal.directive.js.map +1 -1
  29. package/esm2022/radio/core-radio-group.directive.js +3 -1
  30. package/esm2022/radio/core-radio-group.directive.js.map +1 -1
  31. package/esm2022/select/core-select-error-indicator.directive.js.map +1 -1
  32. package/esm2022/select/core-select-error-text.directive.js.map +1 -1
  33. package/esm2022/select/core-select-hint.directive.js.map +1 -1
  34. package/esm2022/select/core-select-indicator.directive.js.map +1 -1
  35. package/esm2022/select/select-item-context.service.js.map +1 -1
  36. package/esm2022/switch/core-switch-root.directive.js.map +1 -1
  37. package/esm2022/tabs/core-tabs-root.directive.js +3 -1
  38. package/esm2022/tabs/core-tabs-root.directive.js.map +1 -1
  39. package/esm2022/text-input/core-text-input-error-indicator.directive.js.map +1 -1
  40. package/esm2022/text-input/core-text-input-root.directive.js +1 -1
  41. package/esm2022/text-input/core-text-input-root.directive.js.map +1 -1
  42. package/machine/q-bind.directive.d.ts.map +1 -1
  43. package/number-input/core-number-input-root.directive.d.ts +1 -0
  44. package/number-input/core-number-input-root.directive.d.ts.map +1 -1
  45. package/package.json +27 -27
  46. package/password-input/core-password-input-root.directive.d.ts +1 -1
  47. package/password-input/core-password-input-root.directive.d.ts.map +1 -1
  48. package/popover/core-popover-root.directive.d.ts +1 -1
  49. package/popover/core-popover-root.directive.d.ts.map +1 -1
  50. package/radio/core-radio-group.directive.d.ts +1 -0
  51. package/radio/core-radio-group.directive.d.ts.map +1 -1
  52. package/switch/core-switch-root.directive.d.ts +1 -1
  53. package/switch/core-switch-root.directive.d.ts.map +1 -1
  54. package/tabs/core-tabs-root.directive.d.ts +1 -0
  55. package/tabs/core-tabs-root.directive.d.ts.map +1 -1
  56. package/text-input/core-text-input-root.directive.d.ts +1 -1
  57. package/text-input/core-text-input-root.directive.d.ts.map +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"portal.directive.js","sourceRoot":"","sources":["../../../src/portal/portal.directive.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,8CAA8C;AAE9C,OAAO,EAAC,eAAe,EAAE,cAAc,EAAC,MAAM,qBAAqB,CAAA;AACnE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AAE;QAClD,MAAM,aAAa,GAAG,IAAI,CAAC,SAAS,EAAE,CAAA;QACtC,MAAM,gBAAgB,GAAG,IAAI,CAAC,aAAa,EAAE,SAAS,CAAA;QAEtD,IAAI,aAAa,EAAE,CAAC;YAClB,OAAO,IAAI,CAAC,aAAa,CAAC,aAAa,CAAC,CAAA;QAC1C,CAAC;QACD,IAAI,gBAAgB,EAAE,CAAC;YACrB,OAAO,IAAI,CAAC,aAAa,CAAC,gBAAgB,CAAC,CAAA;QAC7C,CAAC;QACD,OAAO,IAAI,CAAA;IACb,CAAC,4DAAC,CAAA;IAEM,aAAa,CAAC,OAAqD;QACzE,IAAI,OAAO,YAAY,UAAU,EAAE,CAAC;YAClC,OAAO,OAAO,CAAC,aAAa,CAAA;QAC9B,CAAC;QACD,OAAO,OAAO,IAAI,IAAI,CAAA;IACxB,CAAC;wGAnHU,eAAe;4FAAf,eAAe;;4FAAf,eAAe;kBAJ3B,SAAS;mBAAC;oBACT,QAAQ,EAAE,WAAW;oBACrB,UAAU,EAAE,IAAI;iBACjB","sourcesContent":["// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\r\n// SPDX-License-Identifier: BSD-3-Clause-Clear\r\n\r\nimport {DomPortalOutlet, TemplatePortal} from \"@angular/cdk/portal\"\r\nimport {DOCUMENT} from \"@angular/common\"\r\nimport {\r\n type AfterViewInit,\r\n ApplicationRef,\r\n booleanAttribute,\r\n computed,\r\n Directive,\r\n effect,\r\n ElementRef,\r\n inject,\r\n Injector,\r\n input,\r\n type OnInit,\r\n signal,\r\n TemplateRef,\r\n untracked,\r\n ViewContainerRef,\r\n} from \"@angular/core\"\r\n\r\nimport {useCsrCheck, useOnDestroy} from \"@qualcomm-ui/angular-core/common\"\r\nimport type {Booleanish} from \"@qualcomm-ui/utils/coercion\"\r\n\r\nimport {PortalContextService} from \"./portal-context.service\"\r\n\r\n@Directive({\r\n selector: \"[qPortal]\",\r\n standalone: true,\r\n})\r\nexport class PortalDirective implements OnInit, AfterViewInit {\r\n readonly disabled = input<boolean | undefined, Booleanish>(undefined, {\r\n transform: booleanAttribute,\r\n })\r\n readonly container = input<ElementRef<HTMLElement> | HTMLElement | null>(null)\r\n\r\n protected readonly onDestroy = useOnDestroy()\r\n private readonly templatePortal = signal<TemplatePortal | null>(null)\r\n private outlet: DomPortalOutlet | null = null\r\n private readonly appRef = inject(ApplicationRef)\r\n private readonly vcr = inject(ViewContainerRef)\r\n private readonly document = inject(DOCUMENT)\r\n private readonly templateRef = inject(TemplateRef)\r\n private readonly isBrowser = useCsrCheck()\r\n private readonly injector = inject(Injector)\r\n private readonly portalContext = inject(PortalContextService, {\r\n optional: true,\r\n })\r\n private attachedToSelf: boolean = false\r\n\r\n constructor() {\r\n effect(() => {\r\n const disabled = this.disabled()\r\n this.container()\r\n const portal = this.templatePortal()\r\n\r\n untracked(() => {\r\n if (!this.isBrowser() || !portal) {\r\n return\r\n }\r\n\r\n if (disabled) {\r\n if (this.outlet?.hasAttached()) {\r\n this.outlet.detach()\r\n }\r\n this.vcr.clear()\r\n this.vcr.createEmbeddedView(this.templateRef)\r\n return\r\n }\r\n\r\n this.vcr.clear()\r\n\r\n if (this.outlet?.hasAttached()) {\r\n this.outlet.detach()\r\n }\r\n\r\n const resolvedContainer = this.resolveContainer()\r\n const host = resolvedContainer ?? this.document.body\r\n this.outlet = new DomPortalOutlet(host, this.appRef, this.injector)\r\n this.outlet.attach(portal)\r\n })\r\n })\r\n\r\n this.onDestroy(() => {\r\n if (this.outlet && this.outlet.hasAttached()) {\r\n this.outlet.detach()\r\n }\r\n const portal = this.templatePortal()\r\n if (portal?.isAttached) {\r\n portal?.detach()\r\n }\r\n })\r\n }\r\n\r\n ngOnInit() {\r\n this.tryAttach()\r\n }\r\n\r\n ngAfterViewInit() {\r\n this.tryAttach()\r\n }\r\n\r\n private tryAttach() {\r\n const disabled = this.disabled()\r\n\r\n if (!this.isBrowser() || this.templatePortal()) {\r\n return\r\n }\r\n\r\n if (disabled && !this.attachedToSelf) {\r\n this.vcr.createEmbeddedView(this.templateRef)\r\n this.attachedToSelf = true\r\n return\r\n }\r\n\r\n const portal = new TemplatePortal(this.templateRef, this.vcr)\r\n this.templatePortal.set(portal)\r\n const host = this.resolveContainer() ?? this.document.body\r\n\r\n if (this.outlet?.hasAttached()) {\r\n this.outlet.detach()\r\n }\r\n\r\n this.outlet = new DomPortalOutlet(host, this.appRef, this.injector)\r\n this.outlet.attach(portal)\r\n }\r\n\r\n protected readonly resolveContainer = computed(() => {\r\n const containerProp = this.container()\r\n const containerContext = this.portalContext?.container\r\n\r\n if (containerProp) {\r\n return this.accessElement(containerProp)\r\n }\r\n if (containerContext) {\r\n return this.accessElement(containerContext)\r\n }\r\n return null\r\n })\r\n\r\n private accessElement(element: ElementRef<HTMLElement> | HTMLElement | null) {\r\n if (element instanceof ElementRef) {\r\n return element.nativeElement\r\n }\r\n return element || null\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"portal.directive.js","sourceRoot":"","sources":["../../../src/portal/portal.directive.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,8CAA8C;AAE9C,OAAO,EAAC,eAAe,EAAE,cAAc,EAAC,MAAM,qBAAqB,CAAA;AACnE,OAAO,EAAC,QAAQ,EAAC,MAAM,iBAAiB,CAAA;AACxC,OAAO,EAEL,cAAc,EACd,gBAAgB,EAChB,QAAQ,EACR,SAAS,EACT,MAAM,EACN,UAAU,EACV,MAAM,EACN,QAAQ,EACR,KAAK,EAEL,MAAM,EACN,WAAW,EACX,SAAS,EACT,gBAAgB,GACjB,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAC,WAAW,EAAE,YAAY,EAAC,MAAM,kCAAkC,CAAA;AAG1E,OAAO,EAAC,oBAAoB,EAAC,MAAM,0BAA0B,CAAA;;AAM7D,MAAM,OAAO,eAAe;IACjB,QAAQ,GAAG,KAAK,CAAkC,SAAS,4CAClE,SAAS,EAAE,gBAAgB,OADyC;YACpE,SAAS,EAAE,gBAAgB;SAC5B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;QACD,OAAO,OAAO,IAAI,IAAI,CAAA;IACxB,CAAC;wGAnHU,eAAe;4FAAf,eAAe;;4FAAf,eAAe;kBAJ3B,SAAS;mBAAC;oBACT,QAAQ,EAAE,WAAW;oBACrB,UAAU,EAAE,IAAI;iBACjB","sourcesContent":["// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {DomPortalOutlet, TemplatePortal} from \"@angular/cdk/portal\"\nimport {DOCUMENT} from \"@angular/common\"\nimport {\n type AfterViewInit,\n ApplicationRef,\n booleanAttribute,\n computed,\n Directive,\n effect,\n ElementRef,\n inject,\n Injector,\n input,\n type OnInit,\n signal,\n TemplateRef,\n untracked,\n ViewContainerRef,\n} from \"@angular/core\"\n\nimport {useCsrCheck, useOnDestroy} from \"@qualcomm-ui/angular-core/common\"\nimport type {Booleanish} from \"@qualcomm-ui/utils/coercion\"\n\nimport {PortalContextService} from \"./portal-context.service\"\n\n@Directive({\n selector: \"[qPortal]\",\n standalone: true,\n})\nexport class PortalDirective implements OnInit, AfterViewInit {\n readonly disabled = input<boolean | undefined, Booleanish>(undefined, {\n transform: booleanAttribute,\n })\n readonly container = input<ElementRef<HTMLElement> | HTMLElement | null>(null)\n\n protected readonly onDestroy = useOnDestroy()\n private readonly templatePortal = signal<TemplatePortal | null>(null)\n private outlet: DomPortalOutlet | null = null\n private readonly appRef = inject(ApplicationRef)\n private readonly vcr = inject(ViewContainerRef)\n private readonly document = inject(DOCUMENT)\n private readonly templateRef = inject(TemplateRef)\n private readonly isBrowser = useCsrCheck()\n private readonly injector = inject(Injector)\n private readonly portalContext = inject(PortalContextService, {\n optional: true,\n })\n private attachedToSelf: boolean = false\n\n constructor() {\n effect(() => {\n const disabled = this.disabled()\n this.container()\n const portal = this.templatePortal()\n\n untracked(() => {\n if (!this.isBrowser() || !portal) {\n return\n }\n\n if (disabled) {\n if (this.outlet?.hasAttached()) {\n this.outlet.detach()\n }\n this.vcr.clear()\n this.vcr.createEmbeddedView(this.templateRef)\n return\n }\n\n this.vcr.clear()\n\n if (this.outlet?.hasAttached()) {\n this.outlet.detach()\n }\n\n const resolvedContainer = this.resolveContainer()\n const host = resolvedContainer ?? this.document.body\n this.outlet = new DomPortalOutlet(host, this.appRef, this.injector)\n this.outlet.attach(portal)\n })\n })\n\n this.onDestroy(() => {\n if (this.outlet && this.outlet.hasAttached()) {\n this.outlet.detach()\n }\n const portal = this.templatePortal()\n if (portal?.isAttached) {\n portal?.detach()\n }\n })\n }\n\n ngOnInit() {\n this.tryAttach()\n }\n\n ngAfterViewInit() {\n this.tryAttach()\n }\n\n private tryAttach() {\n const disabled = this.disabled()\n\n if (!this.isBrowser() || this.templatePortal()) {\n return\n }\n\n if (disabled && !this.attachedToSelf) {\n this.vcr.createEmbeddedView(this.templateRef)\n this.attachedToSelf = true\n return\n }\n\n const portal = new TemplatePortal(this.templateRef, this.vcr)\n this.templatePortal.set(portal)\n const host = this.resolveContainer() ?? this.document.body\n\n if (this.outlet?.hasAttached()) {\n this.outlet.detach()\n }\n\n this.outlet = new DomPortalOutlet(host, this.appRef, this.injector)\n this.outlet.attach(portal)\n }\n\n protected readonly resolveContainer = computed(() => {\n const containerProp = this.container()\n const containerContext = this.portalContext?.container\n\n if (containerProp) {\n return this.accessElement(containerProp)\n }\n if (containerContext) {\n return this.accessElement(containerContext)\n }\n return null\n })\n\n private accessElement(element: ElementRef<HTMLElement> | HTMLElement | null) {\n if (element instanceof ElementRef) {\n return element.nativeElement\n }\n return element || null\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 @@
1
- {"version":3,"file":"core-radio-group.directive.js","sourceRoot":"","sources":["../../../src/radio/core-radio-group.directive.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,8CAA8C;AAE9C,OAAO,EAAC,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,EAAc,MAAM,eAAe,CAAA;AAE7E,OAAO,EAAC,KAAK,EAAE,cAAc,EAAC,MAAM,kCAAkC,CAAA;AACtE,OAAO,EACL,cAAc,EACd,UAAU,EACV,gBAAgB,GACjB,MAAM,mCAAmC,CAAA;AAE1C,OAAO,EACL,cAAc,EAEd,YAAY,GAEb,MAAM,yBAAyB,CAAA;AAIhC,OAAO,EAAC,iCAAiC,EAAC,MAAM,yCAAyC,CAAA;AACzF,OAAO,EAAC,mBAAmB,EAAC,MAAM,yBAAyB,CAAA;;AAO3D,MAAM,OAAO,uBACX,SAAQ,iCAAiC;IAGzC;;;;OAIG;IACM,GAAG,GAAG,KAAK,CAAwB,SAAS,+CAAC,CAAA;IAEtD;;;OAGG;IACM,EAAE,GAAG,KAAK,wDAAU,CAAA;IAE7B;;;OAGG;IACM,WAAW,GAAG,KAAK,iEAEzB,CAAA;IAEH;;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,EAAE,EAAE;gBACvB,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAA;gBACpB,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;oBAClB,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;oBAC7B,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,CAAA;gBACvB,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,WAAW,EAAE,IAAI,CAAC,WAAW,EAAE;YAC/B,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,mBAAmB,CAAC,IAAI,CAC3B,QAAQ,CAAC,GAAG,EAAE,CAAC,cAAc,CAAC,OAAO,EAAE,cAAc,CAAC,CAAC,CACxD,CAAA;IACH,CAAC;wGA3FU,uBAAuB;4FAAvB,uBAAuB;;4FAAvB,uBAAuB;kBALnC,SAAS;mBAAC;oBACT,IAAI,EAAE;wBACJ,YAAY,EAAE,UAAU;qBACzB;iBACF","sourcesContent":["// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\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 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(),\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
+ {"version":3,"file":"core-radio-group.directive.js","sourceRoot":"","sources":["../../../src/radio/core-radio-group.directive.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,8CAA8C;AAE9C,OAAO,EAAC,QAAQ,EAAC,MAAM,iBAAiB,CAAA;AACxC,OAAO,EAAC,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,EAAc,MAAM,eAAe,CAAA;AAE7E,OAAO,EAAC,KAAK,EAAE,cAAc,EAAC,MAAM,kCAAkC,CAAA;AACtE,OAAO,EACL,cAAc,EACd,UAAU,EACV,gBAAgB,GACjB,MAAM,mCAAmC,CAAA;AAE1C,OAAO,EACL,cAAc,EAEd,YAAY,GAEb,MAAM,yBAAyB,CAAA;AAIhC,OAAO,EAAC,iCAAiC,EAAC,MAAM,yCAAyC,CAAA;AACzF,OAAO,EAAC,mBAAmB,EAAC,MAAM,yBAAyB,CAAA;;AAO3D,MAAM,OAAO,uBACX,SAAQ,iCAAiC;IAGzC;;;;OAIG;IACM,GAAG,GAAG,KAAK,CAAwB,SAAS,+CAAC,CAAA;IAEtD;;;OAGG;IACM,EAAE,GAAG,KAAK,wDAAU,CAAA;IAE7B;;;OAGG;IACM,WAAW,GAAG,KAAK,iEAEzB,CAAA;IAEH;;;;OAIG;IACM,WAAW,GAAG,KAAK,iEAAoB,CAAA;IAE7B,mBAAmB,GAAG,MAAM,CAAC,mBAAmB,CAAC,CAAA;IAEjD,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAA;IAE3B,aAAa,GAAG,gBAAgB,CAAC,GAAG,EAAE,CACvD,IAAI,CAAC,mBAAmB,CAAC,OAAO,EAAE,CAAC,gBAAgB,CAAC;QAClD,EAAE,E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AAA;oBAC7B,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,CAAA;gBACvB,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,WAAW,EAAE,IAAI,CAAC,WAAW,EAAE;YAC/B,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,mBAAmB,CAAC,IAAI,CAC3B,QAAQ,CAAC,GAAG,EAAE,CAAC,cAAc,CAAC,OAAO,EAAE,cAAc,CAAC,CAAC,CACxD,CAAA;IACH,CAAC;wGA7FU,uBAAuB;4FAAvB,uBAAuB;;4FAAvB,uBAAuB;kBALnC,SAAS;mBAAC;oBACT,IAAI,EAAE;wBACJ,YAAY,EAAE,UAAU;qBACzB;iBACF","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 {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-select-error-indicator.directive.js","sourceRoot":"","sources":["../../../src/select/core-select-error-indicator.directive.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,8CAA8C;AAE9C,OAAO,EAAC,SAAS,EAAc,MAAM,eAAe,CAAA;AAEpD,OAAO,EAAC,gBAAgB,EAAC,MAAM,mCAAmC,CAAA;AAElE,OAAO,EAAC,gBAAgB,EAAC,MAAM,0BAA0B,CAAA;;AAGzD,MAAM,OAAO,iCAAiC;IACzB,aAAa,GAAG,gBAAgB,EAAE,CAAA;IAElC,aAAa,GAAG,gBAAgB,CAAC,GAAG,EAAE;QACvD,OAAO,IAAI,CAAC,aAAa,EAAE,CAAC,yBAAyB,EAAE,CAAA;IACzD,CAAC,CAAC,CAAA;IAEF,QAAQ;QACN,IAAI,CAAC,aAAa,EAAE,CAAA;IACtB,CAAC;wGATU,iCAAiC;4FAAjC,iCAAiC;;4FAAjC,iCAAiC;kBAD7C,SAAS","sourcesContent":["// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\r\n// SPDX-License-Identifier: BSD-3-Clause-Clear\r\n\r\nimport {Directive, type OnInit} from \"@angular/core\"\r\n\r\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\r\n\r\nimport {useSelectContext} from \"./select-context.service\"\r\n\r\n@Directive()\r\nexport class CoreSelectErrorIndicatorDirective implements OnInit {\r\n protected readonly selectContext = useSelectContext()\r\n\r\n protected readonly trackBindings = useTrackBindings(() => {\r\n return this.selectContext().getErrorIndicatorBindings()\r\n })\r\n\r\n ngOnInit() {\r\n this.trackBindings()\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"core-select-error-indicator.directive.js","sourceRoot":"","sources":["../../../src/select/core-select-error-indicator.directive.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,8CAA8C;AAE9C,OAAO,EAAC,SAAS,EAAc,MAAM,eAAe,CAAA;AAEpD,OAAO,EAAC,gBAAgB,EAAC,MAAM,mCAAmC,CAAA;AAElE,OAAO,EAAC,gBAAgB,EAAC,MAAM,0BAA0B,CAAA;;AAGzD,MAAM,OAAO,iCAAiC;IACzB,aAAa,GAAG,gBAAgB,EAAE,CAAA;IAElC,aAAa,GAAG,gBAAgB,CAAC,GAAG,EAAE;QACvD,OAAO,IAAI,CAAC,aAAa,EAAE,CAAC,yBAAyB,EAAE,CAAA;IACzD,CAAC,CAAC,CAAA;IAEF,QAAQ;QACN,IAAI,CAAC,aAAa,EAAE,CAAA;IACtB,CAAC;wGATU,iCAAiC;4FAAjC,iCAAiC;;4FAAjC,iCAAiC;kBAD7C,SAAS","sourcesContent":["// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Directive, type OnInit} from \"@angular/core\"\n\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\n\nimport {useSelectContext} from \"./select-context.service\"\n\n@Directive()\nexport class CoreSelectErrorIndicatorDirective implements OnInit {\n protected readonly selectContext = useSelectContext()\n\n protected readonly trackBindings = useTrackBindings(() => {\n return this.selectContext().getErrorIndicatorBindings()\n })\n\n ngOnInit() {\n this.trackBindings()\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"core-select-error-text.directive.js","sourceRoot":"","sources":["../../../src/select/core-select-error-text.directive.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,8CAA8C;AAE9C,OAAO,EAAC,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAc,MAAM,eAAe,CAAA;AAErE,OAAO,EAAC,KAAK,EAAE,YAAY,EAAC,MAAM,kCAAkC,CAAA;AACpE,OAAO,EAAC,gBAAgB,EAAC,MAAM,mCAAmC,CAAA;AAElE,OAAO,EAAC,gBAAgB,EAAC,MAAM,0BAA0B,CAAA;;AAGzD,MAAM,OAAO,4BAA4B;IACvC;;;OAGG;IACM,EAAE,GAAG,KAAK,wDAAU,CAAA;IAEV,aAAa,GAAG,gBAAgB,EAAE,CAAA;IAElC,aAAa,GAAG,gBAAgB,CAAC,GAAG,EAAE;QACvD,OAAO,IAAI,CAAC,aAAa,EAAE,CAAC,oBAAoB,CAAC;YAC/C,EAAE,EAAE,IAAI,CAAC,MAAM,EAAE;YACjB,SAAS,EAAE,IAAI,CAAC,SAAS;SAC1B,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;IAEe,MAAM,GAAG,QAAQ,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,kDAAC,CAAA;IAE/C,SAAS,GAAG,YAAY,EAAE,CAAA;IAE3C,QAAQ;QACN,IAAI,CAAC,aAAa,EAAE,CAAA;IACtB,CAAC;wGAtBU,4BAA4B;4FAA5B,4BAA4B;;4FAA5B,4BAA4B;kBADxC,SAAS","sourcesContent":["// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\r\n// SPDX-License-Identifier: BSD-3-Clause-Clear\r\n\r\nimport {computed, Directive, input, type OnInit} from \"@angular/core\"\r\n\r\nimport {useId, useOnDestroy} from \"@qualcomm-ui/angular-core/common\"\r\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\r\n\r\nimport {useSelectContext} from \"./select-context.service\"\r\n\r\n@Directive()\r\nexport class CoreSelectErrorTextDirective implements OnInit {\r\n /**\r\n * {@link https://www.w3schools.com/html/html_id.asp id attribute}. If\r\n * omitted, a unique identifier will be generated for accessibility.\r\n */\r\n readonly id = input<string>()\r\n\r\n protected readonly selectContext = useSelectContext()\r\n\r\n protected readonly trackBindings = useTrackBindings(() => {\r\n return this.selectContext().getErrorTextBindings({\r\n id: this.hostId(),\r\n onDestroy: this.onDestroy,\r\n })\r\n })\r\n\r\n private readonly hostId = computed(() => useId(this, this.id()))\r\n\r\n private readonly onDestroy = useOnDestroy()\r\n\r\n ngOnInit() {\r\n this.trackBindings()\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"core-select-error-text.directive.js","sourceRoot":"","sources":["../../../src/select/core-select-error-text.directive.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,8CAA8C;AAE9C,OAAO,EAAC,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAc,MAAM,eAAe,CAAA;AAErE,OAAO,EAAC,KAAK,EAAE,YAAY,EAAC,MAAM,kCAAkC,CAAA;AACpE,OAAO,EAAC,gBAAgB,EAAC,MAAM,mCAAmC,CAAA;AAElE,OAAO,EAAC,gBAAgB,EAAC,MAAM,0BAA0B,CAAA;;AAGzD,MAAM,OAAO,4BAA4B;IACvC;;;OAGG;IACM,EAAE,GAAG,KAAK,wDAAU,CAAA;IAEV,aAAa,GAAG,gBAAgB,EAAE,CAAA;IAElC,aAAa,GAAG,gBAAgB,CAAC,GAAG,EAAE;QACvD,OAAO,IAAI,CAAC,aAAa,EAAE,CAAC,oBAAoB,CAAC;YAC/C,EAAE,EAAE,IAAI,CAAC,MAAM,EAAE;YACjB,SAAS,EAAE,IAAI,CAAC,SAAS;SAC1B,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;IAEe,MAAM,GAAG,QAAQ,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,kDAAC,CAAA;IAE/C,SAAS,GAAG,YAAY,EAAE,CAAA;IAE3C,QAAQ;QACN,IAAI,CAAC,aAAa,EAAE,CAAA;IACtB,CAAC;wGAtBU,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 {computed, Directive, input, type OnInit} from \"@angular/core\"\n\nimport {useId, useOnDestroy} from \"@qualcomm-ui/angular-core/common\"\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\n\nimport {useSelectContext} from \"./select-context.service\"\n\n@Directive()\nexport class CoreSelectErrorTextDirective implements OnInit {\n /**\n * {@link https://www.w3schools.com/html/html_id.asp id attribute}. If\n * omitted, a unique identifier will be generated for accessibility.\n */\n readonly id = input<string>()\n\n protected readonly selectContext = useSelectContext()\n\n protected readonly trackBindings = useTrackBindings(() => {\n return this.selectContext().getErrorTextBindings({\n id: this.hostId(),\n onDestroy: this.onDestroy,\n })\n })\n\n private readonly hostId = computed(() => useId(this, this.id()))\n\n private readonly onDestroy = useOnDestroy()\n\n ngOnInit() {\n this.trackBindings()\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"core-select-hint.directive.js","sourceRoot":"","sources":["../../../src/select/core-select-hint.directive.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,8CAA8C;AAE9C,OAAO,EAAC,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAc,MAAM,eAAe,CAAA;AAErE,OAAO,EAAC,KAAK,EAAE,YAAY,EAAC,MAAM,kCAAkC,CAAA;AACpE,OAAO,EAAC,gBAAgB,EAAC,MAAM,mCAAmC,CAAA;AAElE,OAAO,EAAC,gBAAgB,EAAC,MAAM,0BAA0B,CAAA;;AAGzD,MAAM,OAAO,uBAAuB;IAClC;;;OAGG;IACM,EAAE,GAAG,KAAK,wDAAU,CAAA;IAEV,aAAa,GAAG,gBAAgB,EAAE,CAAA;IAElC,aAAa,GAAG,gBAAgB,CAAC,GAAG,EAAE;QACvD,OAAO,IAAI,CAAC,aAAa,EAAE,CAAC,eAAe,CAAC;YAC1C,EAAE,EAAE,IAAI,CAAC,MAAM,EAAE;YACjB,SAAS,EAAE,IAAI,CAAC,SAAS;SAC1B,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;IAEe,MAAM,GAAG,QAAQ,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,kDAAC,CAAA;IAE/C,SAAS,GAAG,YAAY,EAAE,CAAA;IAE3C,QAAQ;QACN,IAAI,CAAC,aAAa,EAAE,CAAA;IACtB,CAAC;wGAtBU,uBAAuB;4FAAvB,uBAAuB;;4FAAvB,uBAAuB;kBADnC,SAAS","sourcesContent":["// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\r\n// SPDX-License-Identifier: BSD-3-Clause-Clear\r\n\r\nimport {computed, Directive, input, type OnInit} from \"@angular/core\"\r\n\r\nimport {useId, useOnDestroy} from \"@qualcomm-ui/angular-core/common\"\r\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\r\n\r\nimport {useSelectContext} from \"./select-context.service\"\r\n\r\n@Directive()\r\nexport class CoreSelectHintDirective implements OnInit {\r\n /**\r\n * {@link https://www.w3schools.com/html/html_id.asp id attribute}. If\r\n * omitted, a unique identifier will be generated for accessibility.\r\n */\r\n readonly id = input<string>()\r\n\r\n protected readonly selectContext = useSelectContext()\r\n\r\n protected readonly trackBindings = useTrackBindings(() => {\r\n return this.selectContext().getHintBindings({\r\n id: this.hostId(),\r\n onDestroy: this.onDestroy,\r\n })\r\n })\r\n\r\n private readonly hostId = computed(() => useId(this, this.id()))\r\n\r\n private readonly onDestroy = useOnDestroy()\r\n\r\n ngOnInit() {\r\n this.trackBindings()\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"core-select-hint.directive.js","sourceRoot":"","sources":["../../../src/select/core-select-hint.directive.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,8CAA8C;AAE9C,OAAO,EAAC,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAc,MAAM,eAAe,CAAA;AAErE,OAAO,EAAC,KAAK,EAAE,YAAY,EAAC,MAAM,kCAAkC,CAAA;AACpE,OAAO,EAAC,gBAAgB,EAAC,MAAM,mCAAmC,CAAA;AAElE,OAAO,EAAC,gBAAgB,EAAC,MAAM,0BAA0B,CAAA;;AAGzD,MAAM,OAAO,uBAAuB;IAClC;;;OAGG;IACM,EAAE,GAAG,KAAK,wDAAU,CAAA;IAEV,aAAa,GAAG,gBAAgB,EAAE,CAAA;IAElC,aAAa,GAAG,gBAAgB,CAAC,GAAG,EAAE;QACvD,OAAO,IAAI,CAAC,aAAa,EAAE,CAAC,eAAe,CAAC;YAC1C,EAAE,EAAE,IAAI,CAAC,MAAM,EAAE;YACjB,SAAS,EAAE,IAAI,CAAC,SAAS;SAC1B,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;IAEe,MAAM,GAAG,QAAQ,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,kDAAC,CAAA;IAE/C,SAAS,GAAG,YAAY,EAAE,CAAA;IAE3C,QAAQ;QACN,IAAI,CAAC,aAAa,EAAE,CAAA;IACtB,CAAC;wGAtBU,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 {computed, Directive, input, type OnInit} from \"@angular/core\"\n\nimport {useId, useOnDestroy} from \"@qualcomm-ui/angular-core/common\"\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\n\nimport {useSelectContext} from \"./select-context.service\"\n\n@Directive()\nexport class CoreSelectHintDirective implements OnInit {\n /**\n * {@link https://www.w3schools.com/html/html_id.asp id attribute}. If\n * omitted, a unique identifier will be generated for accessibility.\n */\n readonly id = input<string>()\n\n protected readonly selectContext = useSelectContext()\n\n protected readonly trackBindings = useTrackBindings(() => {\n return this.selectContext().getHintBindings({\n id: this.hostId(),\n onDestroy: this.onDestroy,\n })\n })\n\n private readonly hostId = computed(() => useId(this, this.id()))\n\n private readonly onDestroy = useOnDestroy()\n\n ngOnInit() {\n this.trackBindings()\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"core-select-indicator.directive.js","sourceRoot":"","sources":["../../../src/select/core-select-indicator.directive.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,8CAA8C;AAE9C,OAAO,EAAC,SAAS,EAAc,MAAM,eAAe,CAAA;AAEpD,OAAO,EAAC,gBAAgB,EAAC,MAAM,mCAAmC,CAAA;AAElE,OAAO,EAAC,gBAAgB,EAAC,MAAM,0BAA0B,CAAA;;AAGzD,MAAM,OAAO,4BAA4B;IACpB,aAAa,GAAG,gBAAgB,EAAE,CAAA;IAElC,aAAa,GAAG,gBAAgB,CAAC,GAAG,EAAE;QACvD,OAAO,IAAI,CAAC,aAAa,EAAE,CAAC,oBAAoB,EAAE,CAAA;IACpD,CAAC,CAAC,CAAA;IAEF,QAAQ;QACN,IAAI,CAAC,aAAa,EAAE,CAAA;IACtB,CAAC;wGATU,4BAA4B;4FAA5B,4BAA4B;;4FAA5B,4BAA4B;kBADxC,SAAS","sourcesContent":["// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\r\n// SPDX-License-Identifier: BSD-3-Clause-Clear\r\n\r\nimport {Directive, type OnInit} from \"@angular/core\"\r\n\r\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\r\n\r\nimport {useSelectContext} from \"./select-context.service\"\r\n\r\n@Directive()\r\nexport class CoreSelectIndicatorDirective implements OnInit {\r\n protected readonly selectContext = useSelectContext()\r\n\r\n protected readonly trackBindings = useTrackBindings(() => {\r\n return this.selectContext().getIndicatorBindings()\r\n })\r\n\r\n ngOnInit() {\r\n this.trackBindings()\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"core-select-indicator.directive.js","sourceRoot":"","sources":["../../../src/select/core-select-indicator.directive.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,8CAA8C;AAE9C,OAAO,EAAC,SAAS,EAAc,MAAM,eAAe,CAAA;AAEpD,OAAO,EAAC,gBAAgB,EAAC,MAAM,mCAAmC,CAAA;AAElE,OAAO,EAAC,gBAAgB,EAAC,MAAM,0BAA0B,CAAA;;AAGzD,MAAM,OAAO,4BAA4B;IACpB,aAAa,GAAG,gBAAgB,EAAE,CAAA;IAElC,aAAa,GAAG,gBAAgB,CAAC,GAAG,EAAE;QACvD,OAAO,IAAI,CAAC,aAAa,EAAE,CAAC,oBAAoB,EAAE,CAAA;IACpD,CAAC,CAAC,CAAA;IAEF,QAAQ;QACN,IAAI,CAAC,aAAa,EAAE,CAAA;IACtB,CAAC;wGATU,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 {Directive, type OnInit} from \"@angular/core\"\n\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\n\nimport {useSelectContext} from \"./select-context.service\"\n\n@Directive()\nexport class CoreSelectIndicatorDirective implements OnInit {\n protected readonly selectContext = useSelectContext()\n\n protected readonly trackBindings = useTrackBindings(() => {\n return this.selectContext().getIndicatorBindings()\n })\n\n ngOnInit() {\n this.trackBindings()\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"select-item-context.service.js","sourceRoot":"","sources":["../../../src/select/select-item-context.service.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,8CAA8C;AAE9C,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAA;AAExC,OAAO,EAEL,qBAAqB,EACrB,gBAAgB,GACjB,MAAM,mCAAmC,CAAA;;AAI1C,MAAM,OAAO,wBAAyB,SAAQ,qBAAgC;wGAAjE,wBAAwB;4GAAxB,wBAAwB;;4FAAxB,wBAAwB;kBADpC,UAAU;;AAGX,MAAM,CAAC,MAAM,CACX,mBAAmB,EACnB,oBAAoB,EACpB,wBAAwB,EACzB,GAA0B,gBAAgB,CACzC,mBAAmB,EACnB,wBAAwB,CACzB,CAAA","sourcesContent":["// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\r\n// SPDX-License-Identifier: BSD-3-Clause-Clear\r\n\r\nimport {Injectable} from \"@angular/core\"\r\n\r\nimport {\r\n type ApiContext,\r\n BaseApiContextService,\r\n createApiContext,\r\n} from \"@qualcomm-ui/angular-core/machine\"\r\nimport type {ItemState} from \"@qualcomm-ui/core/select\"\r\n\r\n@Injectable()\r\nexport class SelectItemContextService extends BaseApiContextService<ItemState> {}\r\n\r\nexport const [\r\n SELECT_ITEM_CONTEXT,\r\n useSelectItemContext,\r\n provideSelectItemContext,\r\n]: ApiContext<ItemState> = createApiContext<ItemState>(\r\n \"SelectItemContext\",\r\n SelectItemContextService,\r\n)\r\n"]}
1
+ {"version":3,"file":"select-item-context.service.js","sourceRoot":"","sources":["../../../src/select/select-item-context.service.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,8CAA8C;AAE9C,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAA;AAExC,OAAO,EAEL,qBAAqB,EACrB,gBAAgB,GACjB,MAAM,mCAAmC,CAAA;;AAI1C,MAAM,OAAO,wBAAyB,SAAQ,qBAAgC;wGAAjE,wBAAwB;4GAAxB,wBAAwB;;4FAAxB,wBAAwB;kBADpC,UAAU;;AAGX,MAAM,CAAC,MAAM,CACX,mBAAmB,EACnB,oBAAoB,EACpB,wBAAwB,EACzB,GAA0B,gBAAgB,CACzC,mBAAmB,EACnB,wBAAwB,CACzB,CAAA","sourcesContent":["// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Injectable} from \"@angular/core\"\n\nimport {\n type ApiContext,\n BaseApiContextService,\n createApiContext,\n} from \"@qualcomm-ui/angular-core/machine\"\nimport type {ItemState} from \"@qualcomm-ui/core/select\"\n\n@Injectable()\nexport class SelectItemContextService extends BaseApiContextService<ItemState> {}\n\nexport const [\n SELECT_ITEM_CONTEXT,\n useSelectItemContext,\n provideSelectItemContext,\n]: ApiContext<ItemState> = createApiContext<ItemState>(\n \"SelectItemContext\",\n SelectItemContextService,\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;IAC5D,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAA;IAElB,MAAM,GAAG,QAAQ,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,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E;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 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
+ {"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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,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,MA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CAAC,KAAK,EAAE,EAAE;gBACvB,IAAI,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;wGA7JU,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 {\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 injector = inject(Injector)\n protected readonly onDestroy = useOnDestroy()\n protected readonly isMounted = useIsMounted()\n\n protected readonly renderStrategyApi = inject(RenderStrategyContextService)\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(),\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"]}
1
+ {"version":3,"file":"core-tabs-root.directive.js","sourceRoot":"","sources":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ACf,WAAW,EAAE,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC;YACxD,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE;YAC3B,aAAa,EAAE,CAAC,KAAK,EAAE,EAAE;gBACvB,IAAI,IAAI,CAAC,SAAS,EAAE,EAAE,CAAC;oBACrB,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;gBAC/B,CAAC;YACH,CAAC;YACD,aAAa,EAAE,CAAC,KAAK,EAAE,EAAE;gBACvB,IAAI,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"]}
@@ -1 +1 @@
1
- {"version":3,"file":"core-text-input-error-indicator.directive.js","sourceRoot":"","sources":["../../../src/text-input/core-text-input-error-indicator.directive.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,8CAA8C;AAE9C,OAAO,EAAC,SAAS,EAAc,MAAM,eAAe,CAAA;AAEpD,OAAO,EAAC,gBAAgB,EAAC,MAAM,mCAAmC,CAAA;AAElE,OAAO,EAAC,mBAAmB,EAAC,MAAM,8BAA8B,CAAA;;AAGhE,MAAM,OAAO,oCAAoC;IAC5B,gBAAgB,GAAG,mBAAmB,EAAE,CAAA;IAExC,aAAa,GAAG,gBAAgB,CAAC,GAAG,EAAE;QACvD,OAAO,IAAI,CAAC,gBAAgB,EAAE,CAAC,yBAAyB,EAAE,CAAA;IAC5D,CAAC,CAAC,CAAA;IAEF,QAAQ;QACN,IAAI,CAAC,aAAa,EAAE,CAAA;IACtB,CAAC;wGATU,oCAAoC;4FAApC,oCAAoC;;4FAApC,oCAAoC;kBADhD,SAAS","sourcesContent":["// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\r\n// SPDX-License-Identifier: BSD-3-Clause-Clear\r\n\r\nimport {Directive, type OnInit} from \"@angular/core\"\r\n\r\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\r\n\r\nimport {useTextInputContext} from \"./text-input-context.service\"\r\n\r\n@Directive()\r\nexport class CoreTextInputErrorIndicatorDirective implements OnInit {\r\n protected readonly textInputContext = useTextInputContext()\r\n\r\n protected readonly trackBindings = useTrackBindings(() => {\r\n return this.textInputContext().getErrorIndicatorBindings()\r\n })\r\n\r\n ngOnInit() {\r\n this.trackBindings()\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"core-text-input-error-indicator.directive.js","sourceRoot":"","sources":["../../../src/text-input/core-text-input-error-indicator.directive.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,8CAA8C;AAE9C,OAAO,EAAC,SAAS,EAAc,MAAM,eAAe,CAAA;AAEpD,OAAO,EAAC,gBAAgB,EAAC,MAAM,mCAAmC,CAAA;AAElE,OAAO,EAAC,mBAAmB,EAAC,MAAM,8BAA8B,CAAA;;AAGhE,MAAM,OAAO,oCAAoC;IAC5B,gBAAgB,GAAG,mBAAmB,EAAE,CAAA;IAExC,aAAa,GAAG,gBAAgB,CAAC,GAAG,EAAE;QACvD,OAAO,IAAI,CAAC,gBAAgB,EAAE,CAAC,yBAAyB,EAAE,CAAA;IAC5D,CAAC,CAAC,CAAA;IAEF,QAAQ;QACN,IAAI,CAAC,aAAa,EAAE,CAAA;IACtB,CAAC;wGATU,oCAAoC;4FAApC,oCAAoC;;4FAApC,oCAAoC;kBADhD,SAAS","sourcesContent":["// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Directive, type OnInit} from \"@angular/core\"\n\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\n\nimport {useTextInputContext} from \"./text-input-context.service\"\n\n@Directive()\nexport class CoreTextInputErrorIndicatorDirective implements OnInit {\n protected readonly textInputContext = useTextInputContext()\n\n protected readonly trackBindings = useTrackBindings(() => {\n return this.textInputContext().getErrorIndicatorBindings()\n })\n\n ngOnInit() {\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;IAC3D,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAA;IAElB,aAAa,GAAG,gBAAgB,CAAC,GAAG,EAAE,CACvD,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE,CAAC,eAAe,EAAE,CAClD,CAAA;IAEkB,SAAS,GAAG,YAAY,EAAE,CAAA;IAEpC,QAAQ;QACf,KAAK,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gBAC9B,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,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 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(),\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"]}
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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E,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"]}
@@ -1 +1 @@
1
- {"version":3,"file":"q-bind.directive.d.ts","sourceRoot":"","sources":["../../../src/machine/q-bind.directive.ts"],"names":[],"mappings":"AAGA,OAAO,EAQL,KAAK,SAAS,EAIf,MAAM,eAAe,CAAA;AAKtB,OAAO,KAAK,EAAC,IAAI,EAAc,MAAM,mBAAmB,CAAA;;AAExD,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,EAAE,CAAA;CACxB;AAED;;;;;;;;;;;;;GAaG;AACH,qBAGa,cAAe,YAAW,SAAS;IAC9C,QAAQ,CAAC,IAAI,wDAAsD;IAEnE,QAAQ,CAAC,WAAW,qDAAsD;IAE1E,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAkC;IAC7D,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAoB;IAC7C,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAmB;IAC5C,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAkC;IAC5D,OAAO,CAAC,IAAI,CAAW;IAEvB,QAAQ,CAAC,YAAY,8CAGnB;;IAcF,WAAW,IAAI,IAAI;IAKnB,OAAO,CAAC,WAAW;IAWnB,OAAO,CAAC,QAAQ;IAOhB,OAAO,CAAC,WAAW;IAWnB,OAAO,CAAC,QAAQ;IAOhB,OAAO,CAAC,gBAAgB;IAYxB,OAAO,CAAC,WAAW;yCAjFR,cAAc;2CAAd,cAAc;CA8J1B"}
1
+ {"version":3,"file":"q-bind.directive.d.ts","sourceRoot":"","sources":["../../../src/machine/q-bind.directive.ts"],"names":[],"mappings":"AAGA,OAAO,EAQL,KAAK,SAAS,EAIf,MAAM,eAAe,CAAA;AAKtB,OAAO,KAAK,EAAC,IAAI,EAAc,MAAM,mBAAmB,CAAA;;AAExD,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,EAAE,CAAA;CACxB;AAED;;;;;;;;;;;;;GAaG;AACH,qBAGa,cAAe,YAAW,SAAS;IAC9C,QAAQ,CAAC,IAAI,wDAAsD;IAEnE,QAAQ,CAAC,WAAW,qDAAsD;IAE1E,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAkC;IAC7D,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAoB;IAC7C,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAmB;IAC5C,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAkC;IAC5D,OAAO,CAAC,IAAI,CAAW;IAEvB,QAAQ,CAAC,YAAY,8CAGnB;;IAcF,WAAW,IAAI,IAAI;IAKnB,OAAO,CAAC,WAAW;IAWnB,OAAO,CAAC,QAAQ;IAShB,OAAO,CAAC,WAAW;IAWnB,OAAO,CAAC,QAAQ;IAOhB,OAAO,CAAC,gBAAgB;IAYxB,OAAO,CAAC,WAAW;yCAnFR,cAAc;2CAAd,cAAc;CAgK1B"}
@@ -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":"AAGA,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,SAAS,gBAAiB;IAE7C,SAAS,CAAC,QAAQ,CAAC,kBAAkB,4BAAoC;IAEzE,SAAS,CAAC,QAAQ,CAAC,aAAa;;;MAE9B;IAEO,QAAQ;yCAlJN,4BAA4B;2CAA5B,4BAA4B;CA4NxC"}
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,8BAA8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4BAAoC;IAEzE,SAAS,CAAC,QAAQ,CAAC,aAAa;;;MAE9B;IAEO,QAAQ;yCApJN,4BAA4B;2CAA5B,4BAA4B;CA8NxC"}
package/package.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "@qualcomm-ui/angular-core",
3
- "description": "An empty package.json used to trick ng-packagr",
4
- "version": "1.0.0",
3
+ "description": "Design-agnostic Angular building blocks and utilities.",
4
+ "version": "1.0.2",
5
5
  "author": "Ryan Bower",
6
+ "license": "BSD-3-Clause-Clear",
6
7
  "sideEffects": false,
7
8
  "type": "module",
8
9
  "module": "esm2022/qualcomm-ui-angular-core.js",
@@ -19,22 +20,22 @@
19
20
  "types": "./accordion/qualcomm-ui-angular-core-accordion.d.ts",
20
21
  "default": "./esm2022/accordion/qualcomm-ui-angular-core-accordion.js"
21
22
  },
22
- "./avatar": {
23
- "types": "./avatar/qualcomm-ui-angular-core-avatar.d.ts",
24
- "default": "./esm2022/avatar/qualcomm-ui-angular-core-avatar.js"
25
- },
26
23
  "./attributes": {
27
24
  "types": "./attributes/qualcomm-ui-angular-core-attributes.d.ts",
28
25
  "default": "./esm2022/attributes/qualcomm-ui-angular-core-attributes.js"
29
26
  },
30
- "./collapsible": {
31
- "types": "./collapsible/qualcomm-ui-angular-core-collapsible.d.ts",
32
- "default": "./esm2022/collapsible/qualcomm-ui-angular-core-collapsible.js"
27
+ "./avatar": {
28
+ "types": "./avatar/qualcomm-ui-angular-core-avatar.d.ts",
29
+ "default": "./esm2022/avatar/qualcomm-ui-angular-core-avatar.js"
33
30
  },
34
31
  "./checkbox": {
35
32
  "types": "./checkbox/qualcomm-ui-angular-core-checkbox.d.ts",
36
33
  "default": "./esm2022/checkbox/qualcomm-ui-angular-core-checkbox.js"
37
34
  },
35
+ "./collapsible": {
36
+ "types": "./collapsible/qualcomm-ui-angular-core-collapsible.d.ts",
37
+ "default": "./esm2022/collapsible/qualcomm-ui-angular-core-collapsible.js"
38
+ },
38
39
  "./collection": {
39
40
  "types": "./collection/qualcomm-ui-angular-core-collection.d.ts",
40
41
  "default": "./esm2022/collection/qualcomm-ui-angular-core-collection.js"
@@ -51,14 +52,14 @@
51
52
  "types": "./dialog/qualcomm-ui-angular-core-dialog.d.ts",
52
53
  "default": "./esm2022/dialog/qualcomm-ui-angular-core-dialog.js"
53
54
  },
54
- "./events": {
55
- "types": "./events/qualcomm-ui-angular-core-events.d.ts",
56
- "default": "./esm2022/events/qualcomm-ui-angular-core-events.js"
57
- },
58
55
  "./dom": {
59
56
  "types": "./dom/qualcomm-ui-angular-core-dom.d.ts",
60
57
  "default": "./esm2022/dom/qualcomm-ui-angular-core-dom.js"
61
58
  },
59
+ "./events": {
60
+ "types": "./events/qualcomm-ui-angular-core-events.d.ts",
61
+ "default": "./esm2022/events/qualcomm-ui-angular-core-events.js"
62
+ },
62
63
  "./forms": {
63
64
  "types": "./forms/qualcomm-ui-angular-core-forms.d.ts",
64
65
  "default": "./esm2022/forms/qualcomm-ui-angular-core-forms.js"
@@ -184,25 +185,24 @@
184
185
  "tslib": "^2.3.0"
185
186
  },
186
187
  "peerDependencies": {
187
- "@angular/animations": ">=18.2.12 <21",
188
- "@angular/cdk": ">=18.2.14 <21",
189
- "@angular/common": ">=18.2.12 <21",
190
- "@angular/compiler": ">=18.2.12 <21",
191
- "@angular/core": ">=18.2.12 <21",
192
- "@angular/forms": ">=18.2.12 <21",
193
- "@angular/platform-browser": ">=18.2.12 <21",
194
- "@angular/platform-browser-dynamic": ">=18.2.12 <21",
195
- "@qualcomm-ui/core": "^1",
196
- "@qualcomm-ui/dom": "^1",
197
- "@qualcomm-ui/utils": "^1",
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",
195
+ "@qualcomm-ui/core": "^1.0.3",
196
+ "@qualcomm-ui/dom": "^1.0.4",
197
+ "@qualcomm-ui/utils": "^1.0.2",
198
198
  "@tanstack/virtual-core": ">=3.13.12",
199
199
  "lucide-angular": ">=0.487.0 <1",
200
200
  "typescript": ">=5.2.0 <6"
201
201
  },
202
202
  "private": false,
203
- "types": "./index.d.ts",
204
- "main": "./esm2022/qui-angular-core.mjs",
205
203
  "publishConfig": {
206
204
  "access": "public"
207
- }
205
+ },
206
+ "types": "./index.d.ts",
207
+ "main": "./esm2022/qui-angular-core.mjs"
208
208
  }
@@ -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;IAErC,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"}
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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AC,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":"AAGA,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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,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,MAAM,gBAAgB,CAAA;AAExD,OAAO,EAAC,oCAAoC,EAAC,MAAM,oCAAoC,CAAA;AAOvF,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,mCAAmC,CAAA;AACrE,OAAO,EAAC,KAAK,gBAAgB,EAAC,MAAM,4BAA4B,CAAA;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,IA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,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.ts"],"names":[],"mappings":"AAGA,OAAO,EAKL,QAAQ,EAER,KAAK,MAAM,EAEZ,MAAM,eAAe,CAAA;AAQtB,OAAO,EAAC,4BAA4B,EAAC,MAAM,oCAAoC,CAAA;AAC/E,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,mCAAmC,CAAA;AACrE,OAAO,KAAK,EAAC,sBAAsB,EAAC,MAAM,4BAA4B,CAAA;AACtE,OAAO,EAEL,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,YAAY,EAEjB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;;OAMG;IACH,QAAQ,CAAC,WAAW,mEAAuC;IAE3D;;;OAGG;IACH,QAAQ,CAAC,YAAY,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;IAErC,SAAS,CAAC,QAAQ,CAAC,aAAa;;;MAE/B;IAED,SAAS,CAAC,QAAQ,CAAC,SAAS,gBAAiB;IAEpC,QAAQ;yCApCN,0BAA0B;2CAA1B,0BAA0B;CAyFtC"}
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,MA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