@qualcomm-ui/angular-core 1.0.0 → 1.0.1

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 (27) hide show
  1. package/esm2022/collection/use-list-collection.js.map +1 -1
  2. package/esm2022/common/use-is-destroyed.js.map +1 -1
  3. package/esm2022/common/use-is-mounted.js.map +1 -1
  4. package/esm2022/locale/locale-context.service.js.map +1 -1
  5. package/esm2022/locale/use-filter.js.map +1 -1
  6. package/esm2022/machine/q-bind.directive.js +4 -2
  7. package/esm2022/machine/q-bind.directive.js.map +1 -1
  8. package/esm2022/number-input/core-number-input-control.directive.js.map +1 -1
  9. package/esm2022/number-input/core-number-input-decrement-trigger.directive.js.map +1 -1
  10. package/esm2022/number-input/core-number-input-error-indicator.directive.js.map +1 -1
  11. package/esm2022/number-input/core-number-input-error-text.directive.js.map +1 -1
  12. package/esm2022/number-input/core-number-input-hint.directive.js.map +1 -1
  13. package/esm2022/number-input/core-number-input-increment-trigger.directive.js.map +1 -1
  14. package/esm2022/number-input/core-number-input-input-group.directive.js.map +1 -1
  15. package/esm2022/number-input/core-number-input-input.directive.js.map +1 -1
  16. package/esm2022/number-input/core-number-input-label.directive.js.map +1 -1
  17. package/esm2022/number-input/number-input-context.service.js.map +1 -1
  18. package/esm2022/number-input/number-input.validators.js.map +1 -1
  19. package/esm2022/portal/portal.directive.js.map +1 -1
  20. package/esm2022/select/core-select-error-indicator.directive.js.map +1 -1
  21. package/esm2022/select/core-select-error-text.directive.js.map +1 -1
  22. package/esm2022/select/core-select-hint.directive.js.map +1 -1
  23. package/esm2022/select/core-select-indicator.directive.js.map +1 -1
  24. package/esm2022/select/select-item-context.service.js.map +1 -1
  25. package/esm2022/text-input/core-text-input-error-indicator.directive.js.map +1 -1
  26. package/machine/q-bind.directive.d.ts.map +1 -1
  27. package/package.json +23 -22
@@ -1 +1 @@
1
- {"version":3,"file":"use-list-collection.js","sourceRoot":"","sources":["../../../src/collection/use-list-coll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AAE,IAAI,MAAM,EAAE,CAAC;YAC3B,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,UAAkB,EAAE,MAAc,EAAE,IAAO,EAAE,EAAE,CACrE,MAAM,CAAC,UAAU,EAAE,UAAU,EAAE,EAAE,IAAI,CAAC,CACvC,CAAA;QACH,CAAC;QAED,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;YAClB,MAAM,GAAG,IAAI,cAAc,CAAC;gBAC1B,GAAG,iBAAiB;gBACpB,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC;aACpC,CAAC,CAAA;QACJ,CAAC;QAED,OAAO,MAAM,CAAA;IACf,CAAC,sDAAC,CAAA;IAEF,OAAO;QACL,UAAU;QACV,UAAU;QACV,KAAK,EAAE,GAAG,EAAE;YACV,cAAc,CAAC,GAAG,CAChB,IAAI,cAAc,CAAC;gBACjB,GAAG,iBAAiB;gBACpB,KAAK,EAAE,YAAY,CAAC,SAAS,CAAC,IAAI,EAAE;aACrC,CAAC,CACH,CAAA;QACH,CAAC;KACF,CAAA;AACH,CAAC","sourcesContent":["// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\r\n// SPDX-License-Identifier: BSD-3-Clause-Clear\r\n\r\nimport {\r\n computed,\r\n linkedSignal,\r\n type Signal,\r\n type WritableSignal,\r\n} from \"@angular/core\"\r\n\r\nimport {useFilter} from \"@qualcomm-ui/angular-core/locale\"\r\nimport {accessSignal} from \"@qualcomm-ui/angular-core/signals\"\r\nimport {\r\n ListCollection,\r\n type ListCollectionOptions,\r\n} from \"@qualcomm-ui/utils/collection\"\r\nimport type {FilterReturn} from \"@qualcomm-ui/utils/i18n\"\r\n\r\nexport interface UseListCollectionProps<T>\r\n extends Omit<ListCollectionOptions<T>, \"items\"> {\r\n /**\r\n * Filter strategy for the items. Use one of the predefined options, or pass as a\r\n * function for full control.\r\n *\r\n * @option `contains` - Checks if string contains substring using locale-aware exact matching\r\n * @option `endsWith` - Checks if string ends with substring using locale-aware exact matching\r\n * @option `startsWith` - Checks if string starts with substring using locale-aware exact matching\r\n * @option `fuzzyContains` - Checks if string contains substring within Levenshtein distance threshold\r\n */\r\n filter:\r\n | keyof FilterReturn\r\n | ((itemText: string, filterText: string, item: T) => boolean)\r\n /**\r\n * Optional filter text which will filter the items.\r\n */\r\n filterText?: Signal<string>\r\n /**\r\n * The items to use in the collection, prior to filtering.\r\n */\r\n items: Signal<T[]> | T[]\r\n limit?: number\r\n}\r\n\r\n/**\r\n * @returns an object containing the mutable collection and filterText\r\n */\r\nexport function useListCollection<T>(\r\n props: UseListCollectionProps<T>,\r\n): UseListCollectionReturn<T> {\r\n const {\r\n filter: filterProp,\r\n filterText: filterTextProp,\r\n items: itemsProp,\r\n limit,\r\n ...collectionOptions\r\n } = props\r\n\r\n let filterFn: Signal<\r\n ((itemText: string, filterText: string, item: T) => boolean) | undefined\r\n >\r\n if (typeof filterProp === \"string\") {\r\n const hook = useFilter({sensitivity: \"base\"})\r\n filterFn = computed(() => hook()[filterProp])\r\n } else {\r\n filterFn = computed(() => filterProp)\r\n }\r\n\r\n const baseCollection = linkedSignal(\r\n () =>\r\n new ListCollection({\r\n ...collectionOptions,\r\n items: accessSignal(itemsProp) ?? [],\r\n }),\r\n )\r\n const filterText = linkedSignal<string>(() => filterTextProp?.() || \"\")\r\n\r\n const collection = computed(() => {\r\n let result = baseCollection()\r\n const filter = filterFn()\r\n\r\n if (filterText() && filter) {\r\n result = result.filter((itemString: string, _index: number, item: T) =>\r\n filter(itemString, filterText(), item),\r\n )\r\n }\r\n\r\n if (limit != null) {\r\n result = new ListCollection({\r\n ...collectionOptions,\r\n items: result.items.slice(0, limit),\r\n })\r\n }\r\n\r\n return result\r\n })\r\n\r\n return {\r\n collection,\r\n filterText,\r\n reset: () => {\r\n baseCollection.set(\r\n new ListCollection({\r\n ...collectionOptions,\r\n items: accessSignal(itemsProp) ?? [],\r\n }),\r\n )\r\n },\r\n }\r\n}\r\n\r\nexport interface UseListCollectionReturn<T> {\r\n /**\r\n * The filtered collection. Pass this as input to your select/combobox.\r\n */\r\n collection: Signal<ListCollection<T>>\r\n /**\r\n * Mutable filter text which will filter the items when set. This may also be\r\n * passed as an input property to this hook.\r\n */\r\n filterText: WritableSignal<string>\r\n /**\r\n * Helper function to reset the collection to its initial state.\r\n */\r\n reset: () => void\r\n}\r\n"]}
1
+ {"version":3,"file":"use-list-collection.js","sourceRoot":"","sources":["../../../src/collection/use-list-collection.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,8CAA8C;AAE9C,OAAO,EACL,QAAQ,EACR,YAAY,GAGb,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAC,SAAS,EAAC,MAAM,kCAAkC,CAAA;AAC1D,OAAO,EAAC,YAAY,EAAC,MAAM,mCAAmC,CAAA;AAC9D,OAAO,EACL,cAAc,GAEf,MAAM,+BAA+B,CAAA;AA4BtC;;GAEG;AACH,MAAM,UAAU,iBAAiB,CAC/B,KAAgC;IAEhC,MAAM,EACJ,MAAM,EAAE,UAAU,EAClB,UAAU,EAAE,cAAc,EAC1B,KAAK,EAAE,SAAS,EAChB,KAAK,EACL,GAAG,iBAAiB,EACrB,GAAG,KAAK,CAAA;IAET,IAAI,QAEH,CAAA;IACD,IAAI,OAAO,UAAU,KAAK,QAAQ,EAAE,CAAC;QACnC,MAAM,IAAI,GAAG,SAAS,CAAC,EAAC,WAAW,EAAE,MAAM,EAAC,CAAC,CAAA;QAC7C,QAAQ,GAAG,QAAQ,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,CAAC,UAAU,CAAC,CAAC,CAAA;IAC/C,CAAC;SAAM,CAAC;QACN,QAAQ,GAAG,QAAQ,CAAC,GAAG,EAAE,CAAC,UAAU,CAAC,CAAA;IACvC,CAAC;IAED,MAAM,cAAc,GAAG,YAAY,CACjC,GAAG,EAAE,CACH,IAAI,cAAc,CAAC;QACjB,GAAG,iBAAiB;QACpB,KAAK,EAAE,YAAY,CAAC,SAAS,CAAC,IAAI,EAAE;KACrC,CAAC,0DACL,CAAA;IACD,MAAM,UAAU,GAAG,YAAY,CAAS,GAAG,EAAE,CAAC,cAAc,EAAE,EAAE,IAAI,EAAE,sDAAC,CAAA;IAEvE,MAAM,UAAU,GAAG,QAAQ,CAAC,GAAG,EAAE;QAC/B,IAAI,MAAM,GAAG,cAAc,EAAE,CAAA;QAC7B,MAAM,MAAM,GAAG,QAAQ,EAAE,CAAA;QAEzB,IAAI,UAAU,EAAE,IAAI,MAAM,EAAE,CAAC;YAC3B,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,UAAkB,EAAE,MAAc,EAAE,IAAO,EAAE,EAAE,CACrE,MAAM,CAAC,UAAU,EAAE,UAAU,EAAE,EAAE,IAAI,CAAC,CACvC,CAAA;QACH,CAAC;QAED,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;YAClB,MAAM,GAAG,IAAI,cAAc,CAAC;gBAC1B,GAAG,iBAAiB;gBACpB,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC;aACpC,CAAC,CAAA;QACJ,CAAC;QAED,OAAO,MAAM,CAAA;IACf,CAAC,sDAAC,CAAA;IAEF,OAAO;QACL,UAAU;QACV,UAAU;QACV,KAAK,EAAE,GAAG,EAAE;YACV,cAAc,CAAC,GAAG,CAChB,IAAI,cAAc,CAAC;gBACjB,GAAG,iBAAiB;gBACpB,KAAK,EAAE,YAAY,CAAC,SAAS,CAAC,IAAI,EAAE;aACrC,CAAC,CACH,CAAA;QACH,CAAC;KACF,CAAA;AACH,CAAC","sourcesContent":["// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {\n computed,\n linkedSignal,\n type Signal,\n type WritableSignal,\n} from \"@angular/core\"\n\nimport {useFilter} from \"@qualcomm-ui/angular-core/locale\"\nimport {accessSignal} from \"@qualcomm-ui/angular-core/signals\"\nimport {\n ListCollection,\n type ListCollectionOptions,\n} from \"@qualcomm-ui/utils/collection\"\nimport type {FilterReturn} from \"@qualcomm-ui/utils/i18n\"\n\nexport interface UseListCollectionProps<T>\n extends Omit<ListCollectionOptions<T>, \"items\"> {\n /**\n * Filter strategy for the items. Use one of the predefined options, or pass as a\n * function for full control.\n *\n * @option `contains` - Checks if string contains substring using locale-aware exact matching\n * @option `endsWith` - Checks if string ends with substring using locale-aware exact matching\n * @option `startsWith` - Checks if string starts with substring using locale-aware exact matching\n * @option `fuzzyContains` - Checks if string contains substring within Levenshtein distance threshold\n */\n filter:\n | keyof FilterReturn\n | ((itemText: string, filterText: string, item: T) => boolean)\n /**\n * Optional filter text which will filter the items.\n */\n filterText?: Signal<string>\n /**\n * The items to use in the collection, prior to filtering.\n */\n items: Signal<T[]> | T[]\n limit?: number\n}\n\n/**\n * @returns an object containing the mutable collection and filterText\n */\nexport function useListCollection<T>(\n props: UseListCollectionProps<T>,\n): UseListCollectionReturn<T> {\n const {\n filter: filterProp,\n filterText: filterTextProp,\n items: itemsProp,\n limit,\n ...collectionOptions\n } = props\n\n let filterFn: Signal<\n ((itemText: string, filterText: string, item: T) => boolean) | undefined\n >\n if (typeof filterProp === \"string\") {\n const hook = useFilter({sensitivity: \"base\"})\n filterFn = computed(() => hook()[filterProp])\n } else {\n filterFn = computed(() => filterProp)\n }\n\n const baseCollection = linkedSignal(\n () =>\n new ListCollection({\n ...collectionOptions,\n items: accessSignal(itemsProp) ?? [],\n }),\n )\n const filterText = linkedSignal<string>(() => filterTextProp?.() || \"\")\n\n const collection = computed(() => {\n let result = baseCollection()\n const filter = filterFn()\n\n if (filterText() && filter) {\n result = result.filter((itemString: string, _index: number, item: T) =>\n filter(itemString, filterText(), item),\n )\n }\n\n if (limit != null) {\n result = new ListCollection({\n ...collectionOptions,\n items: result.items.slice(0, limit),\n })\n }\n\n return result\n })\n\n return {\n collection,\n filterText,\n reset: () => {\n baseCollection.set(\n new ListCollection({\n ...collectionOptions,\n items: accessSignal(itemsProp) ?? [],\n }),\n )\n },\n }\n}\n\nexport interface UseListCollectionReturn<T> {\n /**\n * The filtered collection. Pass this as input to your select/combobox.\n */\n collection: Signal<ListCollection<T>>\n /**\n * Mutable filter text which will filter the items when set. This may also be\n * passed as an input property to this hook.\n */\n filterText: WritableSignal<string>\n /**\n * Helper function to reset the collection to its initial state.\n */\n reset: () => void\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"use-is-destroyed.js","sourceRoot":"","sources":["../../../src/common/use-is-destroyed.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,8CAA8C;AAE9C,OAAO,EAAC,UAAU,EAAE,MAAM,EAAC,MAAM,eAAe,CAAA;AAEhD;;;;;GAKG;AACH,MAAM,UAAU,cAAc;IAC5B,MAAM,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC,CAAA;IACrC,IAAI,SAAS,GAAG,KAAK,CAAA;IACrB,UAAU,CAAC,SAAS,CAAC,GAAG,EAAE;QACxB,SAAS,GAAG,IAAI,CAAA;IAClB,CAAC,CAAC,CAAA;IACF,OAAO,GAAG,EAAE;QACV,OAAO,SAAS,CAAA;IAClB,CAAC,CAAA;AACH,CAAC","sourcesContent":["// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\r\n// SPDX-License-Identifier: BSD-3-Clause-Clear\r\n\r\nimport {DestroyRef, inject} from \"@angular/core\"\r\n\r\n/**\r\n * Creates a utility that provides a check for whether a component has been\r\n * destroyed.\r\n *\r\n * @returns A single method for checking the destroy status of the component.\r\n */\r\nexport function useIsDestroyed(): () => boolean {\r\n const destroyRef = inject(DestroyRef)\r\n let destroyed = false\r\n destroyRef.onDestroy(() => {\r\n destroyed = true\r\n })\r\n return () => {\r\n return destroyed\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"use-is-destroyed.js","sourceRoot":"","sources":["../../../src/common/use-is-destroyed.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,8CAA8C;AAE9C,OAAO,EAAC,UAAU,EAAE,MAAM,EAAC,MAAM,eAAe,CAAA;AAEhD;;;;;GAKG;AACH,MAAM,UAAU,cAAc;IAC5B,MAAM,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC,CAAA;IACrC,IAAI,SAAS,GAAG,KAAK,CAAA;IACrB,UAAU,CAAC,SAAS,CAAC,GAAG,EAAE;QACxB,SAAS,GAAG,IAAI,CAAA;IAClB,CAAC,CAAC,CAAA;IACF,OAAO,GAAG,EAAE;QACV,OAAO,SAAS,CAAA;IAClB,CAAC,CAAA;AACH,CAAC","sourcesContent":["// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {DestroyRef, inject} from \"@angular/core\"\n\n/**\n * Creates a utility that provides a check for whether a component has been\n * destroyed.\n *\n * @returns A single method for checking the destroy status of the component.\n */\nexport function useIsDestroyed(): () => boolean {\n const destroyRef = inject(DestroyRef)\n let destroyed = false\n destroyRef.onDestroy(() => {\n destroyed = true\n })\n return () => {\n return destroyed\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"use-is-mounted.js","sourceRoot":"","sources":["../../../src/common/use-is-mounted.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,8CAA8C;AAE9C,OAAO,EAAC,cAAc,EAAC,MAAM,oBAAoB,CAAA;AAEjD;;;;GAIG;AACH,MAAM,UAAU,YAAY;IAC1B,MAAM,WAAW,GAAG,cAAc,EAAE,CAAA;IACpC,OAAO,GAAG,EAAE;QACV,OAAO,CAAC,WAAW,EAAE,CAAA;IACvB,CAAC,CAAA;AACH,CAAC","sourcesContent":["// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\r\n// SPDX-License-Identifier: BSD-3-Clause-Clear\r\n\r\nimport {useIsDestroyed} from \"./use-is-destroyed\"\r\n\r\n/**\r\n * Creates a utility that provides a check for whether a component is still mounted.\r\n *\r\n * @returns A single method for checking the status of the component.\r\n */\r\nexport function useIsMounted(): () => boolean {\r\n const isDestroyed = useIsDestroyed()\r\n return () => {\r\n return !isDestroyed()\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"use-is-mounted.js","sourceRoot":"","sources":["../../../src/common/use-is-mounted.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,8CAA8C;AAE9C,OAAO,EAAC,cAAc,EAAC,MAAM,oBAAoB,CAAA;AAEjD;;;;GAIG;AACH,MAAM,UAAU,YAAY;IAC1B,MAAM,WAAW,GAAG,cAAc,EAAE,CAAA;IACpC,OAAO,GAAG,EAAE;QACV,OAAO,CAAC,WAAW,EAAE,CAAA;IACvB,CAAC,CAAA;AACH,CAAC","sourcesContent":["// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {useIsDestroyed} from \"./use-is-destroyed\"\n\n/**\n * Creates a utility that provides a check for whether a component is still mounted.\n *\n * @returns A single method for checking the status of the component.\n */\nexport function useIsMounted(): () => boolean {\n const isDestroyed = useIsDestroyed()\n return () => {\n return !isDestroyed()\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"locale-context.service.js","sourceRoot":"","sources":["../../../src/locale/locale-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,oBAAqB,SAAQ,qBAA6B;wGAA1D,oBAAoB;4GAApB,oBAAoB;;4FAApB,oBAAoB;kBADhC,UAAU;;AAGX,MAAM,CAAC,MAAM,CACX,cAAc,EACd,gBAAgB,EAChB,oBAAoB,EACrB,GAAuB,gBAAgB,CACtC,eAAe,EACf,oBAAoB,EACpB,EAAC,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAC,CAC9B,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 {Locale} from \"@qualcomm-ui/utils/direction\"\r\n\r\n@Injectable()\r\nexport class LocaleContextService extends BaseApiContextService<Locale> {}\r\n\r\nexport const [\r\n LOCALE_CONTEXT,\r\n useLocaleContext,\r\n provideLocaleContext,\r\n]: ApiContext<Locale> = createApiContext<Locale>(\r\n \"LocaleContext\",\r\n LocaleContextService,\r\n {dir: \"ltr\", locale: \"en-US\"},\r\n)\r\n"]}
1
+ {"version":3,"file":"locale-context.service.js","sourceRoot":"","sources":["../../../src/locale/locale-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,oBAAqB,SAAQ,qBAA6B;wGAA1D,oBAAoB;4GAApB,oBAAoB;;4FAApB,oBAAoB;kBADhC,UAAU;;AAGX,MAAM,CAAC,MAAM,CACX,cAAc,EACd,gBAAgB,EAChB,oBAAoB,EACrB,GAAuB,gBAAgB,CACtC,eAAe,EACf,oBAAoB,EACpB,EAAC,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAC,CAC9B,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 {Locale} from \"@qualcomm-ui/utils/direction\"\n\n@Injectable()\nexport class LocaleContextService extends BaseApiContextService<Locale> {}\n\nexport const [\n LOCALE_CONTEXT,\n useLocaleContext,\n provideLocaleContext,\n]: ApiContext<Locale> = createApiContext<Locale>(\n \"LocaleContext\",\n LocaleContextService,\n {dir: \"ltr\", locale: \"en-US\"},\n)\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"use-filter.js","sourceRoot":"","sources":["../../../src/locale/use-filter.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,8CAA8C;AAE9C,OAAO,EAAC,QAAQ,EAAE,MAAM,EAAc,MAAM,eAAe,CAAA;AAE3D,OAAO,EACL,YAAY,GAGb,MAAM,yBAAyB,CAAA;AAEhC,OAAO,EAAC,oBAAoB,EAAC,MAAM,0BAA0B,CAAA;AAK7D,MAAM,UAAU,SAAS,CAAC,KAAqB;IAC7C,MAAM,GAAG,GAAG,MAAM,CAAC,oBAAoB,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC,CAAA;IAC1D,OAAO,QAAQ,CAAC,GAAG,EAAE;QACnB,MAAM,aAAa,GAAG,GAAG,EAAE,OAAO,EAAE,EAAE,CAAA;QACtC,OAAO,YAAY,CAAC;YAClB,GAAG,KAAK;YACR,MAAM,EAAE,KAAK,CAAC,MAAM,IAAI,aAAa,EAAE,MAAM,IAAI,OAAO;SACzD,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;AACJ,CAAC","sourcesContent":["// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\r\n// SPDX-License-Identifier: BSD-3-Clause-Clear\r\n\r\nimport {computed, inject, type Signal} from \"@angular/core\"\r\n\r\nimport {\r\n createFilter,\r\n type FilterOptions,\r\n type FilterReturn,\r\n} from \"@qualcomm-ui/utils/i18n\"\r\n\r\nimport {LocaleContextService} from \"./locale-context.service\"\r\n\r\nexport interface UseFilterProps extends FilterOptions {}\r\nexport interface UseFilterReturn extends FilterReturn {}\r\n\r\nexport function useFilter(props: UseFilterProps): Signal<UseFilterReturn> {\r\n const env = inject(LocaleContextService, {optional: true})\r\n return computed(() => {\r\n const localeContext = env?.context?.()\r\n return createFilter({\r\n ...props,\r\n locale: props.locale ?? localeContext?.locale ?? \"en-US\",\r\n })\r\n })\r\n}\r\n"]}
1
+ {"version":3,"file":"use-filter.js","sourceRoot":"","sources":["../../../src/locale/use-filter.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,8CAA8C;AAE9C,OAAO,EAAC,QAAQ,EAAE,MAAM,EAAc,MAAM,eAAe,CAAA;AAE3D,OAAO,EACL,YAAY,GAGb,MAAM,yBAAyB,CAAA;AAEhC,OAAO,EAAC,oBAAoB,EAAC,MAAM,0BAA0B,CAAA;AAK7D,MAAM,UAAU,SAAS,CAAC,KAAqB;IAC7C,MAAM,GAAG,GAAG,MAAM,CAAC,oBAAoB,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC,CAAA;IAC1D,OAAO,QAAQ,CAAC,GAAG,EAAE;QACnB,MAAM,aAAa,GAAG,GAAG,EAAE,OAAO,EAAE,EAAE,CAAA;QACtC,OAAO,YAAY,CAAC;YAClB,GAAG,KAAK;YACR,MAAM,EAAE,KAAK,CAAC,MAAM,IAAI,aAAa,EAAE,MAAM,IAAI,OAAO;SACzD,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;AACJ,CAAC","sourcesContent":["// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, inject, type Signal} from \"@angular/core\"\n\nimport {\n createFilter,\n type FilterOptions,\n type FilterReturn,\n} from \"@qualcomm-ui/utils/i18n\"\n\nimport {LocaleContextService} from \"./locale-context.service\"\n\nexport interface UseFilterProps extends FilterOptions {}\nexport interface UseFilterReturn extends FilterReturn {}\n\nexport function useFilter(props: UseFilterProps): Signal<UseFilterReturn> {\n const env = inject(LocaleContextService, {optional: true})\n return computed(() => {\n const localeContext = env?.context?.()\n return createFilter({\n ...props,\n locale: props.locale ?? localeContext?.locale ?? \"en-US\",\n })\n })\n}\n"]}
@@ -56,8 +56,10 @@ export class QBindDirective {
56
56
  }
57
57
  addClass(names) {
58
58
  const el = this.elementRef.nativeElement;
59
- for (const name of names.split(",")) {
60
- this.renderer.addClass(el, name);
59
+ for (const className of names.split(" ")) {
60
+ for (const name of className.split(",")) {
61
+ this.renderer.addClass(el, name);
62
+ }
61
63
  }
62
64
  }
63
65
  removeStyle(style) {
@@ -1 +1 @@
1
- {"version":3,"file":"q-bind.directive.js","sourceRoot":"","sources":["../../../src/machine/q-bind.directive.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,8CAA8C;AAE9C,OAAO,EACL,QAAQ,EACR,SAAS,EACT,MAAM,EACN,UAAU,EACV,MAAM,EACN,QAAQ,EACR,KAAK,EAEL,SAAS,EACT,mBAAmB,EACnB,qBAAqB,GACtB,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAC,OAAO,EAAC,MAAM,0BAA0B,CAAA;AAChD,OAAO,EAAC,QAAQ,EAAE,QAAQ,EAAC,MAAM,0BAA0B,CAAA;;AAW3D;;;;;;;;;;;;;GAaG;AAIH,MAAM,OAAO,cAAc;IAChB,IAAI,GAAG,KAAK,CAAC,QAAQ,uCAAoB,KAAK,EAAE,QAAQ,OAAhB,EAAC,KAAK,EAAE,QAAQ,EAAC,GAAC,CAAA;IAE1D,WAAW,GAAG,KAAK,CAAgB,EAAE,+CAAG,KAAK,EAAE,gBAAgB,OAAxB,EAAC,KAAK,EAAE,gBAAgB,EAAC,GAAC,CAAA;IAEzD,UAAU,GAAG,MAAM,CAAC,CAAA,UAAuB,CAAA,CAAC,CAAA;IAC5C,QAAQ,GAAG,MAAM,CAAC,SAAS,CAAC,CAAA;IAC5B,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAA;IAC3B,SAAS,GAAG,IAAI,GAAG,EAAwB,CAAA;IACpD,IAAI,GAAS,EAAE,CAAA;IAEd,YAAY,GAAG,QAAQ,CAAC,GAAG,EAAE;QACpC,MAAM,IAA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C,YAAY,CAAC,EAAE,EAAE,IAAI,EAAE,EAAE,CAAC,CAAA;YAC1C,CAAC;iBAAM,CAAC;gBACN,IAAI,CAAC,QAAQ,CAAC,eAAe,CAAC,EAAE,EAAE,IAAI,CAAC,CAAA;YACzC,CAAC;QACH,CAAC;IACH,CAAC;wGA7JU,cAAc;4FAAd,cAAc;;4FAAd,cAAc;kBAH1B,SAAS;mBAAC;oBACT,QAAQ,EAAE,UAAU;iBACrB","sourcesContent":["// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {\n computed,\n Directive,\n effect,\n ElementRef,\n inject,\n Injector,\n input,\n type OnDestroy,\n Renderer2,\n RendererStyleFlags2,\n runInInjectionContext,\n} from \"@angular/core\"\n\nimport {isEqual} from \"@qualcomm-ui/utils/equal\"\nimport {isNumber, isString} from \"@qualcomm-ui/utils/guard\"\n\nimport type {Dict, StyleObject} from \"./normalize-props\"\n\nexport interface NgBindOptions {\n /**\n * This list of properties will not be spread onto the target element.\n */\n omittedProps?: string[]\n}\n\n/**\n * A directive similar to Vue's `v-bind` that spreads an object's properties onto\n * the host element. For the best performance, use a stable reference to a signal\n * instead of an object literal in the template. Converts callbacks from `on*`\n * syntax to their corresponding Angular event callbacks. Does not account for\n * input/output properties due to Angular limitations.\n *\n * @example\n * <!-- bad: new object every time -->\n * <div [q-bind]=\"{class: 'a', onClick: click}\"></div>\n *\n * <!-- good: stable reference -->\n * <div [q-bind]=\"buttonProps\"></div>\n */\n@Directive({\n selector: \"[q-bind]\",\n})\nexport class QBindDirective implements OnDestroy {\n readonly bind = input.required<Dict | undefined>({alias: \"q-bind\"})\n\n readonly bindOptions = input<NgBindOptions>({}, {alias: \"q-bind-options\"})\n\n private readonly elementRef = inject(ElementRef<HTMLElement>)\n private readonly renderer = inject(Renderer2)\n private readonly injector = inject(Injector)\n private readonly listeners = new Map<string, VoidFunction>()\n private prev: Dict = {}\n\n readonly omittedProps = computed(() => {\n const opts = this.bindOptions()\n return new Set(Array.from(opts.omittedProps || []))\n })\n\n constructor() {\n runInInjectionContext(this.injector, () => {\n effect(() => {\n const next = this.bind()\n if (!isEqual(next, this.prev)) {\n this.handleAttrs(this.prev, next || {})\n this.prev = {...next}\n }\n })\n })\n }\n\n ngOnDestroy(): void {\n this.listeners.forEach((unlisten) => unlisten())\n this.listeners.clear()\n }\n\n private removeClass(names?: string): void {\n if (!names) {\n return\n }\n\n const el = this.elementRef.nativeElement\n for (const name of names.split(\",\")) {\n this.renderer.removeClass(el, name)\n }\n }\n\n private addClass(names: string): void {\n const el = this.elementRef.nativeElement\n for (const name of names.split(\",\")) {\n this.renderer.addClass(el, name)\n }\n }\n\n private removeStyle(style?: StyleObject): void {\n if (!style) {\n return\n }\n\n const el = this.elementRef.nativeElement\n for (const name of Object.keys(style)) {\n this.renderer.removeStyle(el, name, RendererStyleFlags2.DashCase)\n }\n }\n\n private addStyle(style: StyleObject): void {\n const el = this.elementRef.nativeElement\n for (const [name, value] of Object.entries(style)) {\n this.renderer.setStyle(el, name, value, RendererStyleFlags2.DashCase)\n }\n }\n\n private addEventListener(name: string, callback: EventListener): void {\n const eventName = name.substring(2)\n\n this.listeners.get(name)?.()\n const unlisten = this.renderer.listen(\n this.elementRef.nativeElement,\n eventName,\n callback,\n )\n this.listeners.set(name, unlisten)\n }\n\n private handleAttrs(prevProps: Dict, nextProps: Dict): void {\n const el = this.elementRef.nativeElement\n\n for (const [name, value] of Object.entries(prevProps)) {\n if (name in nextProps || this.omittedProps().has(name)) {\n continue\n }\n\n if (name.startsWith(\"on\")) {\n this.listeners.get(name)?.()\n this.listeners.delete(name)\n continue\n }\n\n switch (name) {\n case \"class\":\n this.removeClass(value as string)\n continue\n case \"style\":\n this.removeStyle(value as StyleObject)\n continue\n case \"value\":\n this.renderer.setProperty(el, \"value\", undefined)\n continue\n case \"textContent\":\n this.renderer.setProperty(el, \"textContent\", \"\")\n continue\n case \"checked\":\n this.renderer.setProperty(el, \"checked\", false)\n continue\n }\n this.renderer.removeAttribute(el, name)\n }\n\n for (const [name, value] of Object.entries(nextProps)) {\n if (name in prevProps && isEqual(value, prevProps[name])) {\n continue\n }\n\n if (name.startsWith(\"on\")) {\n const prevHandler = prevProps[name]\n if (isEqual(prevHandler, value)) {\n continue\n }\n\n this.addEventListener(name, value as EventListener)\n continue\n }\n\n switch (name) {\n case \"class\":\n this.removeClass(prevProps[name] as string)\n this.addClass(value as string)\n continue\n case \"style\":\n this.removeStyle(prevProps[name] as StyleObject)\n this.addStyle(value as StyleObject)\n continue\n case \"value\":\n case \"checked\":\n case \"textContent\":\n this.renderer.setProperty(el, name, value)\n continue\n }\n\n if (isString(value) || isNumber(value)) {\n this.renderer.setAttribute(el, name, `${value}`)\n continue\n }\n\n if (value === true) {\n this.renderer.setAttribute(el, name, \"\")\n } else {\n this.renderer.removeAttribute(el, name)\n }\n }\n }\n}\n"]}
1
+ {"version":3,"file":"q-bind.directive.js","sourceRoot":"","sources":["../../../src/machine/q-bind.directive.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,8CAA8C;AAE9C,OAAO,EACL,QAAQ,EACR,SAAS,EACT,MAAM,EACN,UAAU,EACV,MAAM,EACN,QAAQ,EACR,KAAK,EAEL,SAAS,EACT,mBAAmB,EACnB,qBAAqB,GACtB,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAC,OAAO,EAAC,MAAM,0BAA0B,CAAA;AAChD,OAAO,EAAC,QAAQ,EAAE,QAAQ,EAAC,MAAM,0BAA0B,CAAA;;AAW3D;;;;;;;;;;;;;GAaG;AAIH,MAAM,OAAO,cAAc;IAChB,IAAI,GAAG,KAAK,CAAC,QAAQ,uCAAoB,KAAK,EAAE,QAAQ,OAAhB,EAAC,KAAK,EAAE,QAAQ,EAAC,GAAC,CAAA;IAE1D,WAAW,GAAG,KAAK,CAAgB,EAAE,+CAAG,KAAK,EAAE,gBAAgB,OAAxB,EAAC,KAAK,EAAE,gBAAgB,EAAC,GAA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K,aAAa;oBAChB,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,EAAE,EAAE,IAAI,EAAE,KAAK,CAAC,CAAA;oBAC1C,SAAQ;YACZ,CAAC;YAED,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;gBACvC,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC,EAAE,EAAE,IAAI,EAAE,GAAG,KAAK,EAAE,CAAC,CAAA;gBAChD,SAAQ;YACV,CAAC;YAED,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;gBACnB,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC,EAAE,EAAE,IAAI,EAAE,EAAE,CAAC,CAAA;YAC1C,CAAC;iBAAM,CAAC;gBACN,IAAI,CAAC,QAAQ,CAAC,eAAe,CAAC,EAAE,EAAE,IAAI,CAAC,CAAA;YACzC,CAAC;QACH,CAAC;IACH,CAAC;wGA/JU,cAAc;4FAAd,cAAc;;4FAAd,cAAc;kBAH1B,SAAS;mBAAC;oBACT,QAAQ,EAAE,UAAU;iBACrB","sourcesContent":["// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {\n computed,\n Directive,\n effect,\n ElementRef,\n inject,\n Injector,\n input,\n type OnDestroy,\n Renderer2,\n RendererStyleFlags2,\n runInInjectionContext,\n} from \"@angular/core\"\n\nimport {isEqual} from \"@qualcomm-ui/utils/equal\"\nimport {isNumber, isString} from \"@qualcomm-ui/utils/guard\"\n\nimport type {Dict, StyleObject} from \"./normalize-props\"\n\nexport interface NgBindOptions {\n /**\n * This list of properties will not be spread onto the target element.\n */\n omittedProps?: string[]\n}\n\n/**\n * A directive similar to Vue's `v-bind` that spreads an object's properties onto\n * the host element. For the best performance, use a stable reference to a signal\n * instead of an object literal in the template. Converts callbacks from `on*`\n * syntax to their corresponding Angular event callbacks. Does not account for\n * input/output properties due to Angular limitations.\n *\n * @example\n * <!-- bad: new object every time -->\n * <div [q-bind]=\"{class: 'a', onClick: click}\"></div>\n *\n * <!-- good: stable reference -->\n * <div [q-bind]=\"buttonProps\"></div>\n */\n@Directive({\n selector: \"[q-bind]\",\n})\nexport class QBindDirective implements OnDestroy {\n readonly bind = input.required<Dict | undefined>({alias: \"q-bind\"})\n\n readonly bindOptions = input<NgBindOptions>({}, {alias: \"q-bind-options\"})\n\n private readonly elementRef = inject(ElementRef<HTMLElement>)\n private readonly renderer = inject(Renderer2)\n private readonly injector = inject(Injector)\n private readonly listeners = new Map<string, VoidFunction>()\n private prev: Dict = {}\n\n readonly omittedProps = computed(() => {\n const opts = this.bindOptions()\n return new Set(Array.from(opts.omittedProps || []))\n })\n\n constructor() {\n runInInjectionContext(this.injector, () => {\n effect(() => {\n const next = this.bind()\n if (!isEqual(next, this.prev)) {\n this.handleAttrs(this.prev, next || {})\n this.prev = {...next}\n }\n })\n })\n }\n\n ngOnDestroy(): void {\n this.listeners.forEach((unlisten) => unlisten())\n this.listeners.clear()\n }\n\n private removeClass(names?: string): void {\n if (!names) {\n return\n }\n\n const el = this.elementRef.nativeElement\n for (const name of names.split(\",\")) {\n this.renderer.removeClass(el, name)\n }\n }\n\n private addClass(names: string): void {\n const el = this.elementRef.nativeElement\n for (const className of names.split(\" \")) {\n for (const name of className.split(\",\")) {\n this.renderer.addClass(el, name)\n }\n }\n }\n\n private removeStyle(style?: StyleObject): void {\n if (!style) {\n return\n }\n\n const el = this.elementRef.nativeElement\n for (const name of Object.keys(style)) {\n this.renderer.removeStyle(el, name, RendererStyleFlags2.DashCase)\n }\n }\n\n private addStyle(style: StyleObject): void {\n const el = this.elementRef.nativeElement\n for (const [name, value] of Object.entries(style)) {\n this.renderer.setStyle(el, name, value, RendererStyleFlags2.DashCase)\n }\n }\n\n private addEventListener(name: string, callback: EventListener): void {\n const eventName = name.substring(2)\n\n this.listeners.get(name)?.()\n const unlisten = this.renderer.listen(\n this.elementRef.nativeElement,\n eventName,\n callback,\n )\n this.listeners.set(name, unlisten)\n }\n\n private handleAttrs(prevProps: Dict, nextProps: Dict): void {\n const el = this.elementRef.nativeElement\n\n for (const [name, value] of Object.entries(prevProps)) {\n if (name in nextProps || this.omittedProps().has(name)) {\n continue\n }\n\n if (name.startsWith(\"on\")) {\n this.listeners.get(name)?.()\n this.listeners.delete(name)\n continue\n }\n\n switch (name) {\n case \"class\":\n this.removeClass(value as string)\n continue\n case \"style\":\n this.removeStyle(value as StyleObject)\n continue\n case \"value\":\n this.renderer.setProperty(el, \"value\", undefined)\n continue\n case \"textContent\":\n this.renderer.setProperty(el, \"textContent\", \"\")\n continue\n case \"checked\":\n this.renderer.setProperty(el, \"checked\", false)\n continue\n }\n this.renderer.removeAttribute(el, name)\n }\n\n for (const [name, value] of Object.entries(nextProps)) {\n if (name in prevProps && isEqual(value, prevProps[name])) {\n continue\n }\n\n if (name.startsWith(\"on\")) {\n const prevHandler = prevProps[name]\n if (isEqual(prevHandler, value)) {\n continue\n }\n\n this.addEventListener(name, value as EventListener)\n continue\n }\n\n switch (name) {\n case \"class\":\n this.removeClass(prevProps[name] as string)\n this.addClass(value as string)\n continue\n case \"style\":\n this.removeStyle(prevProps[name] as StyleObject)\n this.addStyle(value as StyleObject)\n continue\n case \"value\":\n case \"checked\":\n case \"textContent\":\n this.renderer.setProperty(el, name, value)\n continue\n }\n\n if (isString(value) || isNumber(value)) {\n this.renderer.setAttribute(el, name, `${value}`)\n continue\n }\n\n if (value === true) {\n this.renderer.setAttribute(el, name, \"\")\n } else {\n this.renderer.removeAttribute(el, name)\n }\n }\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"core-number-input-control.directive.js","sourceRoot":"","sources":["../../../src/number-input/core-number-input-control.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,qBAAqB,EAAC,MAAM,gCAAgC,CAAA;;AAGpE,MAAM,OAAO,+BAA+B;IACvB,kBAAkB,GAAG,qBAAqB,EAAE,CAAA;IAE5C,aAAa,GAAG,gBAAgB,CAAC,GAAG,EAAE;QACvD,OAAO,IAAI,CAAC,kBAAkB,EAAE,CAAC,kBAAkB,EAAE,CAAA;IACvD,CAAC,CAAC,CAAA;IAEF,QAAQ;QACN,IAAI,CAAC,aAAa,EAAE,CAAA;IACtB,CAAC;wGATU,+BAA+B;4FAA/B,+BAA+B;;4FAA/B,+BAA+B;kBAD3C,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 {useNumberInputContext} from \"./number-input-context.service\"\r\n\r\n@Directive()\r\nexport class CoreNumberInputControlDirective implements OnInit {\r\n protected readonly numberInputContext = useNumberInputContext()\r\n\r\n protected readonly trackBindings = useTrackBindings(() => {\r\n return this.numberInputContext().getControlBindings()\r\n })\r\n\r\n ngOnInit() {\r\n this.trackBindings()\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"core-number-input-control.directive.js","sourceRoot":"","sources":["../../../src/number-input/core-number-input-control.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,qBAAqB,EAAC,MAAM,gCAAgC,CAAA;;AAGpE,MAAM,OAAO,+BAA+B;IACvB,kBAAkB,GAAG,qBAAqB,EAAE,CAAA;IAE5C,aAAa,GAAG,gBAAgB,CAAC,GAAG,EAAE;QACvD,OAAO,IAAI,CAAC,kBAAkB,EAAE,CAAC,kBAAkB,EAAE,CAAA;IACvD,CAAC,CAAC,CAAA;IAEF,QAAQ;QACN,IAAI,CAAC,aAAa,EAAE,CAAA;IACtB,CAAC;wGATU,+BAA+B;4FAA/B,+BAA+B;;4FAA/B,+BAA+B;kBAD3C,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 {useNumberInputContext} from \"./number-input-context.service\"\n\n@Directive()\nexport class CoreNumberInputControlDirective implements OnInit {\n protected readonly numberInputContext = useNumberInputContext()\n\n protected readonly trackBindings = useTrackBindings(() => {\n return this.numberInputContext().getControlBindings()\n })\n\n ngOnInit() {\n this.trackBindings()\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"core-number-input-decrement-trigger.directive.js","sourceRoot":"","sources":["../../../src/number-input/core-number-input-decrement-trigger.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,qBAAqB,EAAC,MAAM,gCAAgC,CAAA;;AAGpE,MAAM,OAAO,wCAAwC;IAC1C,EAAE,GAAG,KAAK,wDAAU,CAAA;IAEV,kBAAkB,GAAG,qBAAqB,EAAE,CAAA;IAE5C,aAAa,GAAG,gBAAgB,CAAC,GAAG,EAAE;QACvD,OAAO,IAAI,CAAC,kBAAkB,EAAE,CAAC,2BAA2B,CAAC;YAC3D,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;wGAlBU,wCAAwC;4FAAxC,wCAAwC;;4FAAxC,wCAAwC;kBADpD,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 {useNumberInputContext} from \"./number-input-context.service\"\r\n\r\n@Directive()\r\nexport class CoreNumberInputDecrementTriggerDirective implements OnInit {\r\n readonly id = input<string>()\r\n\r\n protected readonly numberInputContext = useNumberInputContext()\r\n\r\n protected readonly trackBindings = useTrackBindings(() => {\r\n return this.numberInputContext().getDecrementTriggerBindings({\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-number-input-decrement-trigger.directive.js","sourceRoot":"","sources":["../../../src/number-input/core-number-input-decrement-trigger.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,qBAAqB,EAAC,MAAM,gCAAgC,CAAA;;AAGpE,MAAM,OAAO,wCAAwC;IAC1C,EAAE,GAAG,KAAK,wDAAU,CAAA;IAEV,kBAAkB,GAAG,qBAAqB,EAAE,CAAA;IAE5C,aAAa,GAAG,gBAAgB,CAAC,GAAG,EAAE;QACvD,OAAO,IAAI,CAAC,kBAAkB,EAAE,CAAC,2BAA2B,CAAC;YAC3D,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;wGAlBU,wCAAwC;4FAAxC,wCAAwC;;4FAAxC,wCAAwC;kBADpD,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 {useNumberInputContext} from \"./number-input-context.service\"\n\n@Directive()\nexport class CoreNumberInputDecrementTriggerDirective implements OnInit {\n readonly id = input<string>()\n\n protected readonly numberInputContext = useNumberInputContext()\n\n protected readonly trackBindings = useTrackBindings(() => {\n return this.numberInputContext().getDecrementTriggerBindings({\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-number-input-error-indicator.directive.js","sourceRoot":"","sources":["../../../src/number-input/core-number-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,qBAAqB,EAAC,MAAM,gCAAgC,CAAA;;AAGpE,MAAM,OAAO,sCAAsC;IAC9B,kBAAkB,GAAG,qBAAqB,EAAE,CAAA;IAE5C,aAAa,GAAG,gBAAgB,CAAC,GAAG,EAAE;QACvD,OAAO,IAAI,CAAC,kBAAkB,EAAE,CAAC,yBAAyB,EAAE,CAAA;IAC9D,CAAC,CAAC,CAAA;IAEF,QAAQ;QACN,IAAI,CAAC,aAAa,EAAE,CAAA;IACtB,CAAC;wGATU,sCAAsC;4FAAtC,sCAAsC;;4FAAtC,sCAAsC;kBADlD,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 {useNumberInputContext} from \"./number-input-context.service\"\r\n\r\n@Directive()\r\nexport class CoreNumberInputErrorIndicatorDirective implements OnInit {\r\n protected readonly numberInputContext = useNumberInputContext()\r\n\r\n protected readonly trackBindings = useTrackBindings(() => {\r\n return this.numberInputContext().getErrorIndicatorBindings()\r\n })\r\n\r\n ngOnInit() {\r\n this.trackBindings()\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"core-number-input-error-indicator.directive.js","sourceRoot":"","sources":["../../../src/number-input/core-number-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,qBAAqB,EAAC,MAAM,gCAAgC,CAAA;;AAGpE,MAAM,OAAO,sCAAsC;IAC9B,kBAAkB,GAAG,qBAAqB,EAAE,CAAA;IAE5C,aAAa,GAAG,gBAAgB,CAAC,GAAG,EAAE;QACvD,OAAO,IAAI,CAAC,kBAAkB,EAAE,CAAC,yBAAyB,EAAE,CAAA;IAC9D,CAAC,CAAC,CAAA;IAEF,QAAQ;QACN,IAAI,CAAC,aAAa,EAAE,CAAA;IACtB,CAAC;wGATU,sCAAsC;4FAAtC,sCAAsC;;4FAAtC,sCAAsC;kBADlD,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 {useNumberInputContext} from \"./number-input-context.service\"\n\n@Directive()\nexport class CoreNumberInputErrorIndicatorDirective implements OnInit {\n protected readonly numberInputContext = useNumberInputContext()\n\n protected readonly trackBindings = useTrackBindings(() => {\n return this.numberInputContext().getErrorIndicatorBindings()\n })\n\n ngOnInit() {\n this.trackBindings()\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"core-number-input-error-text.directive.js","sourceRoot":"","sources":["../../../src/number-input/core-number-input-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,qBAAqB,EAAC,MAAM,gCAAgC,CAAA;;AAGpE,MAAM,OAAO,iCAAiC;IACnC,EAAE,GAAG,KAAK,wDAAU,CAAA;IAEV,kBAAkB,GAAG,qBAAqB,EAAE,CAAA;IAE5C,aAAa,GAAG,gBAAgB,CAAC,GAAG,EAAE;QACvD,OAAO,IAAI,CAAC,kBAAkB,EAAE,CAAC,oBAAoB,CAAC;YACpD,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;wGAlBU,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 {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 {useNumberInputContext} from \"./number-input-context.service\"\r\n\r\n@Directive()\r\nexport class CoreNumberInputErrorTextDirective implements OnInit {\r\n readonly id = input<string>()\r\n\r\n protected readonly numberInputContext = useNumberInputContext()\r\n\r\n protected readonly trackBindings = useTrackBindings(() => {\r\n return this.numberInputContext().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-number-input-error-text.directive.js","sourceRoot":"","sources":["../../../src/number-input/core-number-input-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,qBAAqB,EAAC,MAAM,gCAAgC,CAAA;;AAGpE,MAAM,OAAO,iCAAiC;IACnC,EAAE,GAAG,KAAK,wDAAU,CAAA;IAEV,kBAAkB,GAAG,qBAAqB,EAAE,CAAA;IAE5C,aAAa,GAAG,gBAAgB,CAAC,GAAG,EAAE;QACvD,OAAO,IAAI,CAAC,kBAAkB,EAAE,CAAC,oBAAoB,CAAC;YACpD,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;wGAlBU,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 {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 {useNumberInputContext} from \"./number-input-context.service\"\n\n@Directive()\nexport class CoreNumberInputErrorTextDirective implements OnInit {\n readonly id = input<string>()\n\n protected readonly numberInputContext = useNumberInputContext()\n\n protected readonly trackBindings = useTrackBindings(() => {\n return this.numberInputContext().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-number-input-hint.directive.js","sourceRoot":"","sources":["../../../src/number-input/core-number-input-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,qBAAqB,EAAC,MAAM,gCAAgC,CAAA;;AAGpE,MAAM,OAAO,4BAA4B;IAC9B,EAAE,GAAG,KAAK,wDAAU,CAAA;IAEV,kBAAkB,GAAG,qBAAqB,EAAE,CAAA;IAE5C,aAAa,GAAG,gBAAgB,CAAC,GAAG,EAAE;QACvD,OAAO,IAAI,CAAC,kBAAkB,EAAE,CAAC,eAAe,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;wGAlBU,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 {useNumberInputContext} from \"./number-input-context.service\"\r\n\r\n@Directive()\r\nexport class CoreNumberInputHintDirective implements OnInit {\r\n readonly id = input<string>()\r\n\r\n protected readonly numberInputContext = useNumberInputContext()\r\n\r\n protected readonly trackBindings = useTrackBindings(() => {\r\n return this.numberInputContext().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-number-input-hint.directive.js","sourceRoot":"","sources":["../../../src/number-input/core-number-input-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,qBAAqB,EAAC,MAAM,gCAAgC,CAAA;;AAGpE,MAAM,OAAO,4BAA4B;IAC9B,EAAE,GAAG,KAAK,wDAAU,CAAA;IAEV,kBAAkB,GAAG,qBAAqB,EAAE,CAAA;IAE5C,aAAa,GAAG,gBAAgB,CAAC,GAAG,EAAE;QACvD,OAAO,IAAI,CAAC,kBAAkB,EAAE,CAAC,eAAe,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;wGAlBU,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 {useNumberInputContext} from \"./number-input-context.service\"\n\n@Directive()\nexport class CoreNumberInputHintDirective implements OnInit {\n readonly id = input<string>()\n\n protected readonly numberInputContext = useNumberInputContext()\n\n protected readonly trackBindings = useTrackBindings(() => {\n return this.numberInputContext().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-number-input-increment-trigger.directive.js","sourceRoot":"","sources":["../../../src/number-input/core-number-input-increment-trigger.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,qBAAqB,EAAC,MAAM,gCAAgC,CAAA;;AAGpE,MAAM,OAAO,wCAAwC;IAC1C,EAAE,GAAG,KAAK,wDAAU,CAAA;IAEV,kBAAkB,GAAG,qBAAqB,EAAE,CAAA;IAE5C,aAAa,GAAG,gBAAgB,CAAC,GAAG,EAAE;QACvD,OAAO,IAAI,CAAC,kBAAkB,EAAE,CAAC,2BAA2B,CAAC;YAC3D,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;wGAlBU,wCAAwC;4FAAxC,wCAAwC;;4FAAxC,wCAAwC;kBADpD,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 {useNumberInputContext} from \"./number-input-context.service\"\r\n\r\n@Directive()\r\nexport class CoreNumberInputIncrementTriggerDirective implements OnInit {\r\n readonly id = input<string>()\r\n\r\n protected readonly numberInputContext = useNumberInputContext()\r\n\r\n protected readonly trackBindings = useTrackBindings(() => {\r\n return this.numberInputContext().getIncrementTriggerBindings({\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-number-input-increment-trigger.directive.js","sourceRoot":"","sources":["../../../src/number-input/core-number-input-increment-trigger.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,qBAAqB,EAAC,MAAM,gCAAgC,CAAA;;AAGpE,MAAM,OAAO,wCAAwC;IAC1C,EAAE,GAAG,KAAK,wDAAU,CAAA;IAEV,kBAAkB,GAAG,qBAAqB,EAAE,CAAA;IAE5C,aAAa,GAAG,gBAAgB,CAAC,GAAG,EAAE;QACvD,OAAO,IAAI,CAAC,kBAAkB,EAAE,CAAC,2BAA2B,CAAC;YAC3D,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;wGAlBU,wCAAwC;4FAAxC,wCAAwC;;4FAAxC,wCAAwC;kBADpD,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 {useNumberInputContext} from \"./number-input-context.service\"\n\n@Directive()\nexport class CoreNumberInputIncrementTriggerDirective implements OnInit {\n readonly id = input<string>()\n\n protected readonly numberInputContext = useNumberInputContext()\n\n protected readonly trackBindings = useTrackBindings(() => {\n return this.numberInputContext().getIncrementTriggerBindings({\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-number-input-input-group.directive.js","sourceRoot":"","sources":["../../../src/number-input/core-number-input-input-group.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,qBAAqB,EAAC,MAAM,gCAAgC,CAAA;;AAGpE,MAAM,OAAO,kCAAkC;IAC1B,kBAAkB,GAAG,qBAAqB,EAAE,CAAA;IAE5C,aAAa,GAAG,gBAAgB,CAAC,GAAG,EAAE;QACvD,OAAO,IAAI,CAAC,kBAAkB,EAAE,CAAC,qBAAqB,EAAE,CAAA;IAC1D,CAAC,CAAC,CAAA;IAEF,QAAQ;QACN,IAAI,CAAC,aAAa,EAAE,CAAA;IACtB,CAAC;wGATU,kCAAkC;4FAAlC,kCAAkC;;4FAAlC,kCAAkC;kBAD9C,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 {useNumberInputContext} from \"./number-input-context.service\"\r\n\r\n@Directive()\r\nexport class CoreNumberInputInputGroupDirective implements OnInit {\r\n protected readonly numberInputContext = useNumberInputContext()\r\n\r\n protected readonly trackBindings = useTrackBindings(() => {\r\n return this.numberInputContext().getInputGroupBindings()\r\n })\r\n\r\n ngOnInit() {\r\n this.trackBindings()\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"core-number-input-input-group.directive.js","sourceRoot":"","sources":["../../../src/number-input/core-number-input-input-group.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,qBAAqB,EAAC,MAAM,gCAAgC,CAAA;;AAGpE,MAAM,OAAO,kCAAkC;IAC1B,kBAAkB,GAAG,qBAAqB,EAAE,CAAA;IAE5C,aAAa,GAAG,gBAAgB,CAAC,GAAG,EAAE;QACvD,OAAO,IAAI,CAAC,kBAAkB,EAAE,CAAC,qBAAqB,EAAE,CAAA;IAC1D,CAAC,CAAC,CAAA;IAEF,QAAQ;QACN,IAAI,CAAC,aAAa,EAAE,CAAA;IACtB,CAAC;wGATU,kCAAkC;4FAAlC,kCAAkC;;4FAAlC,kCAAkC;kBAD9C,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 {useNumberInputContext} from \"./number-input-context.service\"\n\n@Directive()\nexport class CoreNumberInputInputGroupDirective implements OnInit {\n protected readonly numberInputContext = useNumberInputContext()\n\n protected readonly trackBindings = useTrackBindings(() => {\n return this.numberInputContext().getInputGroupBindings()\n })\n\n ngOnInit() {\n this.trackBindings()\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"core-number-input-input.directive.js","sourceRoot":"","sources":["../../../src/number-input/core-number-input-input.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,qBAAqB,EAAC,MAAM,gCAAgC,CAAA;;AAGpE,MAAM,OAAO,6BAA6B;IAC/B,EAAE,GAAG,KAAK,wDAAU,CAAA;IAEV,kBAAkB,GAAG,qBAAqB,EAAE,CAAA;IAE5C,aAAa,GAAG,gBAAgB,CAAC,GAAG,EAAE;QACvD,OAAO,IAAI,CAAC,kBAAkB,EAAE,CAAC,gBAAgB,CAAC;YAChD,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;wGAlBU,6BAA6B;4FAA7B,6BAA6B;;4FAA7B,6BAA6B;kBADzC,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 {useNumberInputContext} from \"./number-input-context.service\"\r\n\r\n@Directive()\r\nexport class CoreNumberInputInputDirective implements OnInit {\r\n readonly id = input<string>()\r\n\r\n protected readonly numberInputContext = useNumberInputContext()\r\n\r\n protected readonly trackBindings = useTrackBindings(() => {\r\n return this.numberInputContext().getInputBindings({\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-number-input-input.directive.js","sourceRoot":"","sources":["../../../src/number-input/core-number-input-input.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,qBAAqB,EAAC,MAAM,gCAAgC,CAAA;;AAGpE,MAAM,OAAO,6BAA6B;IAC/B,EAAE,GAAG,KAAK,wDAAU,CAAA;IAEV,kBAAkB,GAAG,qBAAqB,EAAE,CAAA;IAE5C,aAAa,GAAG,gBAAgB,CAAC,GAAG,EAAE;QACvD,OAAO,IAAI,CAAC,kBAAkB,EAAE,CAAC,gBAAgB,CAAC;YAChD,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;wGAlBU,6BAA6B;4FAA7B,6BAA6B;;4FAA7B,6BAA6B;kBADzC,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 {useNumberInputContext} from \"./number-input-context.service\"\n\n@Directive()\nexport class CoreNumberInputInputDirective implements OnInit {\n readonly id = input<string>()\n\n protected readonly numberInputContext = useNumberInputContext()\n\n protected readonly trackBindings = useTrackBindings(() => {\n return this.numberInputContext().getInputBindings({\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-number-input-label.directive.js","sourceRoot":"","sources":["../../../src/number-input/core-number-input-label.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,qBAAqB,EAAC,MAAM,gCAAgC,CAAA;;AAGpE,MAAM,OAAO,6BAA6B;IAC/B,EAAE,GAAG,KAAK,wDAAU,CAAA;IAEV,kBAAkB,GAAG,qBAAqB,EAAE,CAAA;IAE5C,aAAa,GAAG,gBAAgB,CAAC,GAAG,EAAE;QACvD,OAAO,IAAI,CAAC,kBAAkB,EAAE,CAAC,gBAAgB,CAAC;YAChD,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;wGAlBU,6BAA6B;4FAA7B,6BAA6B;;4FAA7B,6BAA6B;kBADzC,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 {useNumberInputContext} from \"./number-input-context.service\"\r\n\r\n@Directive()\r\nexport class CoreNumberInputLabelDirective implements OnInit {\r\n readonly id = input<string>()\r\n\r\n protected readonly numberInputContext = useNumberInputContext()\r\n\r\n protected readonly trackBindings = useTrackBindings(() => {\r\n return this.numberInputContext().getLabelBindings({\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-number-input-label.directive.js","sourceRoot":"","sources":["../../../src/number-input/core-number-input-label.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,qBAAqB,EAAC,MAAM,gCAAgC,CAAA;;AAGpE,MAAM,OAAO,6BAA6B;IAC/B,EAAE,GAAG,KAAK,wDAAU,CAAA;IAEV,kBAAkB,GAAG,qBAAqB,EAAE,CAAA;IAE5C,aAAa,GAAG,gBAAgB,CAAC,GAAG,EAAE;QACvD,OAAO,IAAI,CAAC,kBAAkB,EAAE,CAAC,gBAAgB,CAAC;YAChD,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;wGAlBU,6BAA6B;4FAA7B,6BAA6B;;4FAA7B,6BAA6B;kBADzC,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 {useNumberInputContext} from \"./number-input-context.service\"\n\n@Directive()\nexport class CoreNumberInputLabelDirective implements OnInit {\n readonly id = input<string>()\n\n protected readonly numberInputContext = useNumberInputContext()\n\n protected readonly trackBindings = useTrackBindings(() => {\n return this.numberInputContext().getLabelBindings({\n id: this.hostId(),\n onDestroy: this.onDestroy,\n })\n })\n\n private readonly hostId = computed(() => useId(this, this.id()))\n\n private readonly onDestroy = useOnDestroy()\n\n ngOnInit() {\n this.trackBindings()\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"number-input-context.service.js","sourceRoot":"","sources":["../../../src/number-input/number-input-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,yBAA0B,SAAQ,qBAAqC;wGAAvE,yBAAyB;4GAAzB,yBAAyB;;4FAAzB,yBAAyB;kBADrC,UAAU;;AAGX,MAAM,CAAC,MAAM,CACX,oBAAoB,EACpB,qBAAqB,EACrB,yBAAyB,EAC1B,GAA+B,gBAAgB,CAC9C,oBAAoB,EACpB,yBAAyB,CAC1B,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 {NumberInputApi} from \"@qualcomm-ui/core/number-input\"\r\n\r\n@Injectable()\r\nexport class NumberInputContextService extends BaseApiContextService<NumberInputApi> {}\r\n\r\nexport const [\r\n NUMBER_INPUT_CONTEXT,\r\n useNumberInputContext,\r\n provideNumberInputContext,\r\n]: ApiContext<NumberInputApi> = createApiContext<NumberInputApi>(\r\n \"NumberInputContext\",\r\n NumberInputContextService,\r\n)\r\n"]}
1
+ {"version":3,"file":"number-input-context.service.js","sourceRoot":"","sources":["../../../src/number-input/number-input-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,yBAA0B,SAAQ,qBAAqC;wGAAvE,yBAAyB;4GAAzB,yBAAyB;;4FAAzB,yBAAyB;kBADrC,UAAU;;AAGX,MAAM,CAAC,MAAM,CACX,oBAAoB,EACpB,qBAAqB,EACrB,yBAAyB,EAC1B,GAA+B,gBAAgB,CAC9C,oBAAoB,EACpB,yBAAyB,CAC1B,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 {NumberInputApi} from \"@qualcomm-ui/core/number-input\"\n\n@Injectable()\nexport class NumberInputContextService extends BaseApiContextService<NumberInputApi> {}\n\nexport const [\n NUMBER_INPUT_CONTEXT,\n useNumberInputContext,\n provideNumberInputContext,\n]: ApiContext<NumberInputApi> = createApiContext<NumberInputApi>(\n \"NumberInputContext\",\n NumberInputContextService,\n)\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"number-input.validators.js","sourceRoot":"","sources":["../../../src/number-input/number-input.validators.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,8CAA8C;AAI9C;;;GAGG;AACH,MAAM,UAAU,uBAAuB,CACrC,OAAwB;IAExB,IACE,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;QAC3B,OAAO,CAAC,KAAK,KAAK,IAAI;QACtB,OAAO,CAAC,KAAK,KAAK,SAAS,EAC3B,CAAC;QACD,OAAO,EAAC,QAAQ,EAAE,EAAC,KAAK,EAAE,OAAO,CAAC,KAAK,EAAC,EAAC,CAAA;IAC3C,CAAC;IACD,OAAO,IAAI,CAAA;AACb,CAAC","sourcesContent":["// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\r\n// SPDX-License-Identifier: BSD-3-Clause-Clear\r\n\r\nimport type {AbstractControl, ValidationErrors} from \"@angular/forms\"\r\n\r\n/**\r\n * Validator that requires a number value. Will fail if the value is `NaN`, `null`,\r\n * or `undefined`.\r\n */\r\nexport function requiredNumberValidator(\r\n control: AbstractControl,\r\n): ValidationErrors | null {\r\n if (\r\n Number.isNaN(control.value) ||\r\n control.value === null ||\r\n control.value === undefined\r\n ) {\r\n return {required: {value: control.value}}\r\n }\r\n return null\r\n}\r\n"]}
1
+ {"version":3,"file":"number-input.validators.js","sourceRoot":"","sources":["../../../src/number-input/number-input.validators.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,8CAA8C;AAI9C;;;GAGG;AACH,MAAM,UAAU,uBAAuB,CACrC,OAAwB;IAExB,IACE,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;QAC3B,OAAO,CAAC,KAAK,KAAK,IAAI;QACtB,OAAO,CAAC,KAAK,KAAK,SAAS,EAC3B,CAAC;QACD,OAAO,EAAC,QAAQ,EAAE,EAAC,KAAK,EAAE,OAAO,CAAC,KAAK,EAAC,EAAC,CAAA;IAC3C,CAAC;IACD,OAAO,IAAI,CAAA;AACb,CAAC","sourcesContent":["// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport type {AbstractControl, ValidationErrors} from \"@angular/forms\"\n\n/**\n * Validator that requires a number value. Will fail if the value is `NaN`, `null`,\n * or `undefined`.\n */\nexport function requiredNumberValidator(\n control: AbstractControl,\n): ValidationErrors | null {\n if (\n Number.isNaN(control.value) ||\n control.value === null ||\n control.value === undefined\n ) {\n return {required: {value: control.value}}\n }\n return null\n}\n"]}
@@ -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,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,MAA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AC,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,GAAC,CAAA;IACO,SAAS,GAAG,KAAK,CAA+C,IAAI,qDAAC,CAAA;IAE3D,SAAS,GAAG,YAAY,EAAE,CAAA;IAC5B,cAAc,GAAG,MAAM,CAAwB,IAAI,0DAAC,CAAA;IAC7D,MAAM,GAA2B,I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cesContent":["// 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 +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-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"]}
@@ -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"}
package/package.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "@qualcomm-ui/angular-core",
3
3
  "description": "An empty package.json used to trick ng-packagr",
4
- "version": "1.0.0",
4
+ "version": "1.0.1",
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,17 +20,13 @@
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",
@@ -39,6 +36,10 @@
39
36
  "types": "./collection/qualcomm-ui-angular-core-collection.d.ts",
40
37
  "default": "./esm2022/collection/qualcomm-ui-angular-core-collection.js"
41
38
  },
39
+ "./collapsible": {
40
+ "types": "./collapsible/qualcomm-ui-angular-core-collapsible.d.ts",
41
+ "default": "./esm2022/collapsible/qualcomm-ui-angular-core-collapsible.js"
42
+ },
42
43
  "./combobox": {
43
44
  "types": "./combobox/qualcomm-ui-angular-core-combobox.d.ts",
44
45
  "default": "./esm2022/combobox/qualcomm-ui-angular-core-combobox.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"
@@ -131,14 +132,14 @@
131
132
  "types": "./progress-ring/qualcomm-ui-angular-core-progress-ring.d.ts",
132
133
  "default": "./esm2022/progress-ring/qualcomm-ui-angular-core-progress-ring.js"
133
134
  },
134
- "./radio": {
135
- "types": "./radio/qualcomm-ui-angular-core-radio.d.ts",
136
- "default": "./esm2022/radio/qualcomm-ui-angular-core-radio.js"
137
- },
138
135
  "./segmented-control": {
139
136
  "types": "./segmented-control/qualcomm-ui-angular-core-segmented-control.d.ts",
140
137
  "default": "./esm2022/segmented-control/qualcomm-ui-angular-core-segmented-control.js"
141
138
  },
139
+ "./radio": {
140
+ "types": "./radio/qualcomm-ui-angular-core-radio.d.ts",
141
+ "default": "./esm2022/radio/qualcomm-ui-angular-core-radio.js"
142
+ },
142
143
  "./select": {
143
144
  "types": "./select/qualcomm-ui-angular-core-select.d.ts",
144
145
  "default": "./esm2022/select/qualcomm-ui-angular-core-select.js"
@@ -192,17 +193,17 @@
192
193
  "@angular/forms": ">=18.2.12 <21",
193
194
  "@angular/platform-browser": ">=18.2.12 <21",
194
195
  "@angular/platform-browser-dynamic": ">=18.2.12 <21",
195
- "@qualcomm-ui/core": "^1",
196
- "@qualcomm-ui/dom": "^1",
197
- "@qualcomm-ui/utils": "^1",
196
+ "@qualcomm-ui/core": "^1.0.3",
197
+ "@qualcomm-ui/dom": "^1.0.2",
198
+ "@qualcomm-ui/utils": "^1.0.2",
198
199
  "@tanstack/virtual-core": ">=3.13.12",
199
200
  "lucide-angular": ">=0.487.0 <1",
200
201
  "typescript": ">=5.2.0 <6"
201
202
  },
202
203
  "private": false,
203
- "types": "./index.d.ts",
204
- "main": "./esm2022/qui-angular-core.mjs",
205
204
  "publishConfig": {
206
205
  "access": "public"
207
- }
206
+ },
207
+ "types": "./index.d.ts",
208
+ "main": "./esm2022/qui-angular-core.mjs"
208
209
  }