@qualcomm-ui/angular 1.17.0 → 1.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/checkbox/index.d.ts +1 -0
- package/checkbox/index.d.ts.map +1 -1
- package/checkbox-group/index.d.ts +32 -0
- package/checkbox-group/index.d.ts.map +1 -0
- package/fesm2022/qualcomm-ui-angular-checkbox-group.mjs +87 -0
- package/fesm2022/qualcomm-ui-angular-checkbox-group.mjs.map +1 -0
- package/fesm2022/qualcomm-ui-angular-checkbox.mjs +3 -1
- package/fesm2022/qualcomm-ui-angular-checkbox.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-field-group.mjs +219 -0
- package/fesm2022/qualcomm-ui-angular-field-group.mjs.map +1 -0
- package/fesm2022/qualcomm-ui-angular-inline-notification.mjs +1 -1
- package/fesm2022/qualcomm-ui-angular-inline-notification.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-progress-ring.mjs +23 -5
- package/fesm2022/qualcomm-ui-angular-progress-ring.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-switch-group.mjs +87 -0
- package/fesm2022/qualcomm-ui-angular-switch-group.mjs.map +1 -0
- package/fesm2022/qualcomm-ui-angular-switch.mjs +3 -1
- package/fesm2022/qualcomm-ui-angular-switch.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-toast.mjs +1 -1
- package/fesm2022/qualcomm-ui-angular-toast.mjs.map +1 -1
- package/field-group/index.d.ts +123 -0
- package/field-group/index.d.ts.map +1 -0
- package/package.json +16 -4
- package/progress-ring/index.d.ts +11 -1
- package/progress-ring/index.d.ts.map +1 -1
- package/switch/index.d.ts +1 -0
- package/switch/index.d.ts.map +1 -1
- package/switch-group/index.d.ts +32 -0
- package/switch-group/index.d.ts.map +1 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"qualcomm-ui-angular-inline-notification.mjs","sources":["../../src/inline-notification/qds-inline-notification-context.service.ts","../../src/inline-notification/inline-notification-action.directive.ts","../../src/inline-notification/inline-notification-close-button.directive.ts","../../src/inline-notification/inline-notification-description.directive.ts","../../src/inline-notification/inline-notification-icon.directive.ts","../../src/inline-notification/inline-notification-label.directive.ts","../../src/inline-notification/inline-notification-root.directive.ts","../../src/inline-notification/inline-notification.directive.ts","../../src/inline-notification/inline-notification.module.ts","../../src/inline-notification/qualcomm-ui-angular-inline-notification.ts"],"sourcesContent":["// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Injectable} from \"@angular/core\"\n\nimport {\n type ApiContext,\n BaseApiContextService,\n createApiContext,\n} from \"@qualcomm-ui/angular-core/machine\"\nimport type {QdsNotificationApi} from \"@qualcomm-ui/qds-core/inline-notification\"\n\n@Injectable()\nexport class QdsInlineNotificationContextService extends BaseApiContextService<QdsNotificationApi> {}\n\nexport const [\n QDS_INLINE_NOTIFICATION_CONTEXT,\n useQdsInlineNotificationContext,\n provideQdsInlineNotificationContext,\n]: ApiContext<QdsNotificationApi> = createApiContext<QdsNotificationApi>(\n \"QdsInlineNotificationContext\",\n QdsInlineNotificationContextService,\n)\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, Directive} from \"@angular/core\"\n\nimport {CoreInlineNotificationActionDirective} from \"@qualcomm-ui/angular-core/inline-notification\"\n\nimport {useQdsInlineNotificationContext} from \"./qds-inline-notification-context.service\"\n\n@Directive({\n selector: \"[q-inline-notification-action]\",\n standalone: false,\n})\nexport class InlineNotificationActionDirective extends CoreInlineNotificationActionDirective {\n protected readonly qdsContext = useQdsInlineNotificationContext()\n\n constructor() {\n super()\n this.trackBindings.extendWith(\n computed(() => this.qdsContext().getActionBindings()),\n )\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Component, computed} from \"@angular/core\"\nimport {X} from \"lucide-angular\"\n\nimport {useInlineIconButtonApi} from \"@qualcomm-ui/angular/inline-icon-button\"\nimport {QuiPreloadDirective} from \"@qualcomm-ui/angular/transitions\"\nimport {CoreInlineNotificationCloseTriggerDirective} from \"@qualcomm-ui/angular-core/inline-notification\"\nimport {provideIcons} from \"@qualcomm-ui/angular-core/lucide\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nimport {useQdsInlineNotificationContext} from \"./qds-inline-notification-context.service\"\n\n@Component({\n hostDirectives: [QuiPreloadDirective],\n providers: [provideIcons({X})],\n selector: \"[q-inline-notification-close-button]\",\n standalone: false,\n template: `\n <ng-content>\n <svg qIcon=\"X\" [q-bind]=\"inlineIconButtonApi().getIconBindings()\"></svg>\n </ng-content>\n `,\n})\nexport class InlineNotificationCloseButtonDirective extends CoreInlineNotificationCloseTriggerDirective {\n protected readonly inlineIconButtonApi = useInlineIconButtonApi({\n emphasis: \"neutral\",\n size: \"md\",\n variant: \"fixed\",\n })\n protected readonly qdsContext = useQdsInlineNotificationContext()\n\n constructor() {\n super()\n this.trackBindings.extendWith(\n computed(() =>\n mergeProps(\n this.qdsContext().getCloseButtonBindings(),\n this.inlineIconButtonApi().getRootBindings(),\n ),\n ),\n )\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, Directive} from \"@angular/core\"\n\nimport {CoreInlineNotificationDescriptionDirective} from \"@qualcomm-ui/angular-core/inline-notification\"\n\nimport {useQdsInlineNotificationContext} from \"./qds-inline-notification-context.service\"\n\n@Directive({\n selector: \"[q-inline-notification-description]\",\n standalone: false,\n})\nexport class InlineNotificationDescriptionDirective extends CoreInlineNotificationDescriptionDirective {\n protected readonly qdsContext = useQdsInlineNotificationContext()\n\n constructor() {\n super()\n this.trackBindings.extendWith(\n computed(() => this.qdsContext().getDescriptionBindings()),\n )\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Component, computed, input} from \"@angular/core\"\nimport {\n BellRing,\n CircleAlert,\n CircleCheck,\n Info,\n TriangleAlert,\n} from \"lucide-angular\"\n\nimport {CoreInlineNotificationIconDirective} from \"@qualcomm-ui/angular-core/inline-notification\"\nimport type {LucideIcon} from \"@qualcomm-ui/angular-core/lucide\"\nimport type {QdsNotificationEmphasis} from \"@qualcomm-ui/qds-core/inline-notification\"\n\nimport {useQdsInlineNotificationContext} from \"./qds-inline-notification-context.service\"\n\nconst icons: Partial<Record<QdsNotificationEmphasis, LucideIcon>> = {\n danger: CircleAlert,\n info: Info,\n neutral: BellRing,\n success: CircleCheck,\n warning: TriangleAlert,\n}\n\n@Component({\n selector: \"[q-inline-notification-icon]\",\n standalone: false,\n template: `\n @if (qdsContext().emphasis === \"loading\") {\n <div q-progress-ring></div>\n } @else if (resolvedIcon()) {\n <svg size=\"lg\" [qIcon]=\"resolvedIcon()!\"></svg>\n } @else {\n <ng-content />\n }\n `,\n})\nexport class InlineNotificationIconDirective extends CoreInlineNotificationIconDirective {\n /**\n * Override the icon displayed in the notification. When this input is omitted,\n * the icon is determined by the emphasis prop.\n */\n readonly icon = input<LucideIcon>()\n\n protected readonly qdsContext = useQdsInlineNotificationContext()\n\n protected readonly resolvedIcon = computed(() => {\n return this.icon() || icons[this.qdsContext().emphasis]\n })\n\n constructor() {\n super()\n this.trackBindings.extendWith(\n computed(() => this.qdsContext().getIconBindings()),\n )\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, Directive} from \"@angular/core\"\n\nimport {CoreInlineNotificationLabelDirective} from \"@qualcomm-ui/angular-core/inline-notification\"\n\nimport {useQdsInlineNotificationContext} from \"./qds-inline-notification-context.service\"\n\n@Directive({\n selector: \"[q-inline-notification-label]\",\n standalone: false,\n})\nexport class InlineNotificationLabelDirective extends CoreInlineNotificationLabelDirective {\n protected readonly qdsContext = useQdsInlineNotificationContext()\n\n constructor() {\n super()\n this.trackBindings.extendWith(\n computed(() => this.qdsContext().getHeadingBindings()),\n )\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, Directive, inject, input, type OnInit} from \"@angular/core\"\n\nimport {\n CoreInlineNotificationRootDirective,\n provideInlineNotificationContext,\n} from \"@qualcomm-ui/angular-core/inline-notification\"\nimport {normalizeProps} from \"@qualcomm-ui/angular-core/machine\"\nimport type {SignalifyInput} from \"@qualcomm-ui/angular-core/signals\"\nimport {\n createQdsInlineNotificationApi,\n type QdsNotificationApiProps,\n type QdsNotificationEmphasis,\n type QdsNotificationOrientation,\n} from \"@qualcomm-ui/qds-core/inline-notification\"\n\nimport {\n provideQdsInlineNotificationContext,\n QdsInlineNotificationContextService,\n} from \"./qds-inline-notification-context.service\"\n\n@Directive({\n providers: [\n provideInlineNotificationContext(),\n provideQdsInlineNotificationContext(),\n ],\n selector: \"[q-inline-notification-root]\",\n standalone: false,\n})\nexport class InlineNotificationRootDirective\n extends CoreInlineNotificationRootDirective\n implements SignalifyInput<QdsNotificationApiProps>, OnInit\n{\n /**\n * Governs the color of the notification and its icon.\n *\n * @default 'info'\n */\n readonly emphasis = input<QdsNotificationEmphasis>()\n\n /**\n * The layout of the notification's elements.\n * @option `'horizontal'`: The icon, title, description, link, and close button are displayed inline.\n * @option `'vertical'`: The icon, title, and close button are placed on the first line, while the description, and link are stacked vertically and aligned with the title.\n *\n * @default 'horizontal'\n */\n readonly orientation = input<QdsNotificationOrientation>()\n\n protected readonly qdsInlineNotificationService = inject(\n QdsInlineNotificationContextService,\n )\n\n constructor() {\n super()\n this.trackBindings.extendWith(\n computed(() =>\n this.qdsInlineNotificationService.context().getRootBindings(),\n ),\n )\n }\n\n override ngOnInit() {\n super.ngOnInit()\n\n this.qdsInlineNotificationService.init(\n computed(() =>\n createQdsInlineNotificationApi(\n {emphasis: this.emphasis(), orientation: this.orientation()},\n normalizeProps,\n ),\n ),\n )\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {booleanAttribute, Component, input} from \"@angular/core\"\n\nimport {provideInlineNotificationContext} from \"@qualcomm-ui/angular-core/inline-notification\"\nimport type {Booleanish} from \"@qualcomm-ui/utils/coercion\"\n\nimport {InlineNotificationRootDirective} from \"./inline-notification-root.directive\"\nimport {provideQdsInlineNotificationContext} from \"./qds-inline-notification-context.service\"\n\n@Component({\n providers: [\n provideInlineNotificationContext(),\n provideQdsInlineNotificationContext(),\n ],\n selector: \"[q-inline-notification]\",\n standalone: false,\n template: `\n <ng-content select=\"[q-inline-notification-icon]\">\n <div q-inline-notification-icon></div>\n </ng-content>\n\n <ng-content select=\"[q-inline-notification-label]\">\n @if (label()) {\n <div q-inline-notification-label>{{ label() }}</div>\n }\n </ng-content>\n\n <ng-content select=\"[q-inline-notification-description]\">\n @if (description()) {\n <div q-inline-notification-description>{{ description() }}</div>\n }\n </ng-content>\n\n <ng-content select=\"[q-inline-notification-action]\" />\n\n <ng-content select=\"[q-inline-notification-close-button]\">\n @if (dismissable()) {\n <button q-inline-notification-close-button></button>\n }\n </ng-content>\n `,\n})\nexport class InlineNotificationDirective extends InlineNotificationRootDirective {\n /**\n * Optional description text for the notification.\n *\n * @remarks\n * To customize the element, provide it using the directive instead:\n * ```angular-html\n * <div q-inline-notification-description>...</div>\n * ```\n */\n readonly description = input<string>()\n\n /**\n * When `true`, renders a close button that dismisses the notification on click.\n *\n * @remarks\n * To customize the close button, provide it using the directive instead:\n * ```angular-html\n * <button q-inline-notification-close-button>...</button>\n * ```\n *\n * @default false\n */\n readonly dismissable = input<boolean | undefined, Booleanish>(undefined, {\n transform: booleanAttribute,\n })\n\n /**\n * Optional heading text for the notification.\n *\n * @remarks\n * To customize the element, provide it using the directive instead:\n * ```angular-html\n * <div q-inline-notification-label>...</div>\n * ```\n */\n readonly label = input<string>()\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {NgModule} from \"@angular/core\"\n\nimport {IconDirective} from \"@qualcomm-ui/angular/icon\"\nimport {ProgressRingModule} from \"@qualcomm-ui/angular/progress-ring\"\nimport {QBindDirective} from \"@qualcomm-ui/angular-core/machine\"\n\nimport {InlineNotificationActionDirective} from \"./inline-notification-action.directive\"\nimport {InlineNotificationCloseButtonDirective} from \"./inline-notification-close-button.directive\"\nimport {InlineNotificationDescriptionDirective} from \"./inline-notification-description.directive\"\nimport {InlineNotificationIconDirective} from \"./inline-notification-icon.directive\"\nimport {InlineNotificationLabelDirective} from \"./inline-notification-label.directive\"\nimport {InlineNotificationRootDirective} from \"./inline-notification-root.directive\"\nimport {InlineNotificationDirective} from \"./inline-notification.directive\"\n\n@NgModule({\n declarations: [\n InlineNotificationDirective,\n InlineNotificationRootDirective,\n InlineNotificationActionDirective,\n InlineNotificationCloseButtonDirective,\n InlineNotificationDescriptionDirective,\n InlineNotificationIconDirective,\n InlineNotificationLabelDirective,\n ],\n exports: [\n InlineNotificationDirective,\n InlineNotificationRootDirective,\n InlineNotificationActionDirective,\n InlineNotificationCloseButtonDirective,\n InlineNotificationDescriptionDirective,\n InlineNotificationIconDirective,\n InlineNotificationLabelDirective,\n ],\n imports: [IconDirective, QBindDirective, ProgressRingModule],\n})\nexport class InlineNotificationModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1","i2","i1.InlineNotificationCloseButtonDirective","i2.InlineNotificationDescriptionDirective","i3.InlineNotificationIconDirective","i4.InlineNotificationLabelDirective"],"mappings":";;;;;;;;;;;;;;;;;AAAA;AACA;AAYM,MAAO,mCAAoC,SAAQ,qBAAyC,CAAA;wGAArF,mCAAmC,EAAA,IAAA,EAAA,IAAA,EAAA,M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ular-inline-notification.mjs","sources":["../../src/inline-notification/qds-inline-notification-context.service.ts","../../src/inline-notification/inline-notification-action.directive.ts","../../src/inline-notification/inline-notification-close-button.directive.ts","../../src/inline-notification/inline-notification-description.directive.ts","../../src/inline-notification/inline-notification-icon.directive.ts","../../src/inline-notification/inline-notification-label.directive.ts","../../src/inline-notification/inline-notification-root.directive.ts","../../src/inline-notification/inline-notification.directive.ts","../../src/inline-notification/inline-notification.module.ts","../../src/inline-notification/qualcomm-ui-angular-inline-notification.ts"],"sourcesContent":["// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Injectable} from \"@angular/core\"\n\nimport {\n type ApiContext,\n BaseApiContextService,\n createApiContext,\n} from \"@qualcomm-ui/angular-core/machine\"\nimport type {QdsNotificationApi} from \"@qualcomm-ui/qds-core/inline-notification\"\n\n@Injectable()\nexport class QdsInlineNotificationContextService extends BaseApiContextService<QdsNotificationApi> {}\n\nexport const [\n QDS_INLINE_NOTIFICATION_CONTEXT,\n useQdsInlineNotificationContext,\n provideQdsInlineNotificationContext,\n]: ApiContext<QdsNotificationApi> = createApiContext<QdsNotificationApi>(\n \"QdsInlineNotificationContext\",\n QdsInlineNotificationContextService,\n)\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, Directive} from \"@angular/core\"\n\nimport {CoreInlineNotificationActionDirective} from \"@qualcomm-ui/angular-core/inline-notification\"\n\nimport {useQdsInlineNotificationContext} from \"./qds-inline-notification-context.service\"\n\n@Directive({\n selector: \"[q-inline-notification-action]\",\n standalone: false,\n})\nexport class InlineNotificationActionDirective extends CoreInlineNotificationActionDirective {\n protected readonly qdsContext = useQdsInlineNotificationContext()\n\n constructor() {\n super()\n this.trackBindings.extendWith(\n computed(() => this.qdsContext().getActionBindings()),\n )\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Component, computed} from \"@angular/core\"\nimport {X} from \"lucide-angular\"\n\nimport {useInlineIconButtonApi} from \"@qualcomm-ui/angular/inline-icon-button\"\nimport {QuiPreloadDirective} from \"@qualcomm-ui/angular/transitions\"\nimport {CoreInlineNotificationCloseTriggerDirective} from \"@qualcomm-ui/angular-core/inline-notification\"\nimport {provideIcons} from \"@qualcomm-ui/angular-core/lucide\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nimport {useQdsInlineNotificationContext} from \"./qds-inline-notification-context.service\"\n\n@Component({\n hostDirectives: [QuiPreloadDirective],\n providers: [provideIcons({X})],\n selector: \"[q-inline-notification-close-button]\",\n standalone: false,\n template: `\n <ng-content>\n <svg qIcon=\"X\" [q-bind]=\"inlineIconButtonApi().getIconBindings()\"></svg>\n </ng-content>\n `,\n})\nexport class InlineNotificationCloseButtonDirective extends CoreInlineNotificationCloseTriggerDirective {\n protected readonly inlineIconButtonApi = useInlineIconButtonApi({\n emphasis: \"neutral\",\n size: \"md\",\n variant: \"fixed\",\n })\n protected readonly qdsContext = useQdsInlineNotificationContext()\n\n constructor() {\n super()\n this.trackBindings.extendWith(\n computed(() =>\n mergeProps(\n this.qdsContext().getCloseButtonBindings(),\n this.inlineIconButtonApi().getRootBindings(),\n ),\n ),\n )\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, Directive} from \"@angular/core\"\n\nimport {CoreInlineNotificationDescriptionDirective} from \"@qualcomm-ui/angular-core/inline-notification\"\n\nimport {useQdsInlineNotificationContext} from \"./qds-inline-notification-context.service\"\n\n@Directive({\n selector: \"[q-inline-notification-description]\",\n standalone: false,\n})\nexport class InlineNotificationDescriptionDirective extends CoreInlineNotificationDescriptionDirective {\n protected readonly qdsContext = useQdsInlineNotificationContext()\n\n constructor() {\n super()\n this.trackBindings.extendWith(\n computed(() => this.qdsContext().getDescriptionBindings()),\n )\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Component, computed, input} from \"@angular/core\"\nimport {\n BellRing,\n CircleAlert,\n CircleCheck,\n Info,\n TriangleAlert,\n} from \"lucide-angular\"\n\nimport {CoreInlineNotificationIconDirective} from \"@qualcomm-ui/angular-core/inline-notification\"\nimport type {LucideIcon} from \"@qualcomm-ui/angular-core/lucide\"\nimport type {QdsNotificationEmphasis} from \"@qualcomm-ui/qds-core/inline-notification\"\n\nimport {useQdsInlineNotificationContext} from \"./qds-inline-notification-context.service\"\n\nconst icons: Partial<Record<QdsNotificationEmphasis, LucideIcon>> = {\n danger: CircleAlert,\n info: Info,\n neutral: BellRing,\n success: CircleCheck,\n warning: TriangleAlert,\n}\n\n@Component({\n selector: \"[q-inline-notification-icon]\",\n standalone: false,\n template: `\n @if (qdsContext().emphasis === \"loading\") {\n <div q-progress-ring></div>\n } @else if (resolvedIcon()) {\n <svg size=\"lg\" [qIcon]=\"resolvedIcon()!\"></svg>\n } @else {\n <ng-content />\n }\n `,\n})\nexport class InlineNotificationIconDirective extends CoreInlineNotificationIconDirective {\n /**\n * Override the icon displayed in the notification. When this input is omitted,\n * the icon is determined by the emphasis prop.\n */\n readonly icon = input<LucideIcon>()\n\n protected readonly qdsContext = useQdsInlineNotificationContext()\n\n protected readonly resolvedIcon = computed(() => {\n return this.icon() || icons[this.qdsContext().emphasis]\n })\n\n constructor() {\n super()\n this.trackBindings.extendWith(\n computed(() => this.qdsContext().getIconBindings()),\n )\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, Directive} from \"@angular/core\"\n\nimport {CoreInlineNotificationLabelDirective} from \"@qualcomm-ui/angular-core/inline-notification\"\n\nimport {useQdsInlineNotificationContext} from \"./qds-inline-notification-context.service\"\n\n@Directive({\n selector: \"[q-inline-notification-label]\",\n standalone: false,\n})\nexport class InlineNotificationLabelDirective extends CoreInlineNotificationLabelDirective {\n protected readonly qdsContext = useQdsInlineNotificationContext()\n\n constructor() {\n super()\n this.trackBindings.extendWith(\n computed(() => this.qdsContext().getHeadingBindings()),\n )\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, Directive, inject, input, type OnInit} from \"@angular/core\"\n\nimport {\n CoreInlineNotificationRootDirective,\n provideInlineNotificationContext,\n} from \"@qualcomm-ui/angular-core/inline-notification\"\nimport {normalizeProps} from \"@qualcomm-ui/angular-core/machine\"\nimport type {SignalifyInput} from \"@qualcomm-ui/angular-core/signals\"\nimport {\n createQdsInlineNotificationApi,\n type QdsNotificationApiProps,\n type QdsNotificationEmphasis,\n type QdsNotificationOrientation,\n} from \"@qualcomm-ui/qds-core/inline-notification\"\n\nimport {\n provideQdsInlineNotificationContext,\n QdsInlineNotificationContextService,\n} from \"./qds-inline-notification-context.service\"\n\n@Directive({\n providers: [\n provideInlineNotificationContext(),\n provideQdsInlineNotificationContext(),\n ],\n selector: \"[q-inline-notification-root]\",\n standalone: false,\n})\nexport class InlineNotificationRootDirective\n extends CoreInlineNotificationRootDirective\n implements SignalifyInput<QdsNotificationApiProps>, OnInit\n{\n /**\n * Governs the color of the notification and its icon.\n *\n * @default 'info'\n */\n readonly emphasis = input<QdsNotificationEmphasis>()\n\n /**\n * The layout of the notification's elements.\n * @option `'horizontal'`: The icon, title, description, link, and close button are displayed inline.\n * @option `'vertical'`: The icon, title, and close button are placed on the first line, while the description, and link are stacked vertically and aligned with the title.\n *\n * @default 'horizontal'\n */\n readonly orientation = input<QdsNotificationOrientation>()\n\n protected readonly qdsInlineNotificationService = inject(\n QdsInlineNotificationContextService,\n )\n\n constructor() {\n super()\n this.trackBindings.extendWith(\n computed(() =>\n this.qdsInlineNotificationService.context().getRootBindings(),\n ),\n )\n }\n\n override ngOnInit() {\n super.ngOnInit()\n\n this.qdsInlineNotificationService.init(\n computed(() =>\n createQdsInlineNotificationApi(\n {emphasis: this.emphasis(), orientation: this.orientation()},\n normalizeProps,\n ),\n ),\n )\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {booleanAttribute, Component, input} from \"@angular/core\"\n\nimport {provideInlineNotificationContext} from \"@qualcomm-ui/angular-core/inline-notification\"\nimport type {Booleanish} from \"@qualcomm-ui/utils/coercion\"\n\nimport {InlineNotificationRootDirective} from \"./inline-notification-root.directive\"\nimport {provideQdsInlineNotificationContext} from \"./qds-inline-notification-context.service\"\n\n@Component({\n providers: [\n provideInlineNotificationContext(),\n provideQdsInlineNotificationContext(),\n ],\n selector: \"[q-inline-notification]\",\n standalone: false,\n template: `\n <ng-content select=\"[q-inline-notification-icon]\">\n <div q-inline-notification-icon></div>\n </ng-content>\n\n <ng-content select=\"[q-inline-notification-label]\">\n @if (label()) {\n <div q-inline-notification-label>{{ label() }}</div>\n }\n </ng-content>\n\n <ng-content select=\"[q-inline-notification-description]\">\n @if (description()) {\n <div q-inline-notification-description>{{ description() }}</div>\n }\n </ng-content>\n\n <ng-content select=\"[q-inline-notification-action]\" />\n\n <ng-content select=\"[q-inline-notification-close-button]\">\n @if (dismissable()) {\n <button q-inline-notification-close-button></button>\n }\n </ng-content>\n `,\n})\nexport class InlineNotificationDirective extends InlineNotificationRootDirective {\n /**\n * Optional description text for the notification.\n *\n * @remarks\n * To customize the element, provide it using the directive instead:\n * ```angular-html\n * <div q-inline-notification-description>...</div>\n * ```\n */\n readonly description = input<string>()\n\n /**\n * When `true`, renders a close button that dismisses the notification on click.\n *\n * @remarks\n * To customize the close button, provide it using the directive instead:\n * ```angular-html\n * <button q-inline-notification-close-button>...</button>\n * ```\n *\n * @default false\n */\n readonly dismissable = input<boolean | undefined, Booleanish>(undefined, {\n transform: booleanAttribute,\n })\n\n /**\n * Optional heading text for the notification.\n *\n * @remarks\n * To customize the element, provide it using the directive instead:\n * ```angular-html\n * <div q-inline-notification-label>...</div>\n * ```\n */\n readonly label = input<string>()\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {NgModule} from \"@angular/core\"\n\nimport {IconDirective} from \"@qualcomm-ui/angular/icon\"\nimport {ProgressRingModule} from \"@qualcomm-ui/angular/progress-ring\"\nimport {QBindDirective} from \"@qualcomm-ui/angular-core/machine\"\n\nimport {InlineNotificationActionDirective} from \"./inline-notification-action.directive\"\nimport {InlineNotificationCloseButtonDirective} from \"./inline-notification-close-button.directive\"\nimport {InlineNotificationDescriptionDirective} from \"./inline-notification-description.directive\"\nimport {InlineNotificationIconDirective} from \"./inline-notification-icon.directive\"\nimport {InlineNotificationLabelDirective} from \"./inline-notification-label.directive\"\nimport {InlineNotificationRootDirective} from \"./inline-notification-root.directive\"\nimport {InlineNotificationDirective} from \"./inline-notification.directive\"\n\n@NgModule({\n declarations: [\n InlineNotificationDirective,\n InlineNotificationRootDirective,\n InlineNotificationActionDirective,\n InlineNotificationCloseButtonDirective,\n InlineNotificationDescriptionDirective,\n InlineNotificationIconDirective,\n InlineNotificationLabelDirective,\n ],\n exports: [\n InlineNotificationDirective,\n InlineNotificationRootDirective,\n InlineNotificationActionDirective,\n InlineNotificationCloseButtonDirective,\n InlineNotificationDescriptionDirective,\n InlineNotificationIconDirective,\n InlineNotificationLabelDirective,\n ],\n imports: [IconDirective, QBindDirective, ProgressRingModule],\n})\nexport class InlineNotificationModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1","i2","i1.InlineNotificationCloseButtonDirective","i2.InlineNotificationDescriptionDirective","i3.InlineNotificationIconDirective","i4.InlineNotificationLabelDirective"],"mappings":";;;;;;;;;;;;;;;;;AAAA;AACA;AAYM,MAAO,mCAAoC,SAAQ,qBAAyC,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AAA;;;ACrCD;;AAEG;;;;"}
|
|
@@ -254,10 +254,24 @@ class ProgressRingDirective extends ProgressRingRootDirective {
|
|
|
254
254
|
* ```
|
|
255
255
|
*/
|
|
256
256
|
label = input(...(ngDevMode ? [undefined, { debugName: "label" }] : []));
|
|
257
|
+
/**
|
|
258
|
+
* Optional value text displayed inside the progress ring.
|
|
259
|
+
*
|
|
260
|
+
* @remarks
|
|
261
|
+
* To customize the element, provide it using the directive instead:
|
|
262
|
+
* ```angular-html
|
|
263
|
+
* <div q-progress-ring-value-text>...</div>
|
|
264
|
+
* ```
|
|
265
|
+
*/
|
|
266
|
+
valueText = input(...(ngDevMode ? [undefined, { debugName: "valueText" }] : []));
|
|
257
267
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ProgressRingDirective, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
258
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: ProgressRingDirective, isStandalone: false, selector: "[q-progress-ring]", inputs: { errorText: { classPropertyName: "errorText", publicName: "errorText", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null } }, providers: [provideProgressRingContext(), provideQdsProgressRingContext()], usesInheritance: true, ngImport: i0, template: `
|
|
268
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: ProgressRingDirective, isStandalone: false, selector: "[q-progress-ring]", inputs: { errorText: { classPropertyName: "errorText", publicName: "errorText", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, valueText: { classPropertyName: "valueText", publicName: "valueText", isSignal: true, isRequired: false, transformFunction: null } }, providers: [provideProgressRingContext(), provideQdsProgressRingContext()], usesInheritance: true, ngImport: i0, template: `
|
|
259
269
|
<div q-progress-ring-circle-container>
|
|
260
|
-
<ng-content select="[q-progress-ring-value-text]"
|
|
270
|
+
<ng-content select="[q-progress-ring-value-text]">
|
|
271
|
+
@if (valueText()) {
|
|
272
|
+
<div q-progress-ring-value-text>{{ valueText() }}</div>
|
|
273
|
+
}
|
|
274
|
+
</ng-content>
|
|
261
275
|
<ng-content select="[q-progress-ring-circle]">
|
|
262
276
|
<svg q-progress-ring-circle></svg>
|
|
263
277
|
</ng-content>
|
|
@@ -272,7 +286,7 @@ class ProgressRingDirective extends ProgressRingRootDirective {
|
|
|
272
286
|
<ng-content select="[q-progress-ring-error-text]">
|
|
273
287
|
<div q-progress-ring-error-text>{{ errorText() }}</div>
|
|
274
288
|
</ng-content>
|
|
275
|
-
`, isInline: true, dependencies: [{ kind: "component", type: ProgressRingCircleDirective, selector: "svg[q-progress-ring-circle]" }, { kind: "directive", type: ProgressRingCircleContainerDirective, selector: "[q-progress-ring-circle-container]" }, { kind: "directive", type: ProgressRingErrorTextDirective, selector: "[q-progress-ring-error-text]" }, { kind: "directive", type: ProgressRingLabelDirective, selector: "[q-progress-ring-label]" }] });
|
|
289
|
+
`, isInline: true, dependencies: [{ kind: "component", type: ProgressRingCircleDirective, selector: "svg[q-progress-ring-circle]" }, { kind: "directive", type: ProgressRingCircleContainerDirective, selector: "[q-progress-ring-circle-container]" }, { kind: "directive", type: ProgressRingErrorTextDirective, selector: "[q-progress-ring-error-text]" }, { kind: "directive", type: ProgressRingLabelDirective, selector: "[q-progress-ring-label]" }, { kind: "directive", type: ProgressRingValueTextDirective, selector: "[q-progress-ring-value-text]" }] });
|
|
276
290
|
}
|
|
277
291
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ProgressRingDirective, decorators: [{
|
|
278
292
|
type: Component,
|
|
@@ -282,7 +296,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
282
296
|
standalone: false,
|
|
283
297
|
template: `
|
|
284
298
|
<div q-progress-ring-circle-container>
|
|
285
|
-
<ng-content select="[q-progress-ring-value-text]"
|
|
299
|
+
<ng-content select="[q-progress-ring-value-text]">
|
|
300
|
+
@if (valueText()) {
|
|
301
|
+
<div q-progress-ring-value-text>{{ valueText() }}</div>
|
|
302
|
+
}
|
|
303
|
+
</ng-content>
|
|
286
304
|
<ng-content select="[q-progress-ring-circle]">
|
|
287
305
|
<svg q-progress-ring-circle></svg>
|
|
288
306
|
</ng-content>
|
|
@@ -299,7 +317,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
299
317
|
</ng-content>
|
|
300
318
|
`,
|
|
301
319
|
}]
|
|
302
|
-
}], propDecorators: { errorText: [{ type: i0.Input, args: [{ isSignal: true, alias: "errorText", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }] } });
|
|
320
|
+
}], propDecorators: { errorText: [{ type: i0.Input, args: [{ isSignal: true, alias: "errorText", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], valueText: [{ type: i0.Input, args: [{ isSignal: true, alias: "valueText", required: false }] }] } });
|
|
303
321
|
|
|
304
322
|
// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
|
|
305
323
|
// SPDX-License-Identifier: BSD-3-Clause-Clear
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"qualcomm-ui-angular-progress-ring.mjs","sources":["../../src/progress-ring/qds-progress-ring-context.service.ts","../../src/progress-ring/progress-ring-bar.directive.ts","../../src/progress-ring/progress-ring-circle-container.directive.ts","../../src/progress-ring/progress-ring-track.directive.ts","../../src/progress-ring/progress-ring-circle.directive.ts","../../src/progress-ring/progress-ring-context.directive.ts","../../src/progress-ring/progress-ring-error-text.directive.ts","../../src/progress-ring/progress-ring-label.directive.ts","../../src/progress-ring/progress-ring-root.directive.ts","../../src/progress-ring/progress-ring-value-text.directive.ts","../../src/progress-ring/progress-ring.directive.ts","../../src/progress-ring/progress-ring.module.ts","../../src/progress-ring/qualcomm-ui-angular-progress-ring.ts"],"sourcesContent":["// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Injectable} from \"@angular/core\"\n\nimport {\n type ApiContext,\n BaseApiContextService,\n createApiContext,\n} from \"@qualcomm-ui/angular-core/machine\"\nimport type {QdsProgressRingApi} from \"@qualcomm-ui/qds-core/progress-ring\"\n\n@Injectable()\nexport class QdsProgressRingContextService extends BaseApiContextService<QdsProgressRingApi> {}\n\nexport const [\n QDS_PROGRESS_RING_CONTEXT,\n useQdsProgressRingContext,\n provideQdsProgressRingContext,\n]: ApiContext<QdsProgressRingApi> = createApiContext<QdsProgressRingApi>(\n \"QdsProgressRingContext\",\n QdsProgressRingContextService,\n)\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, Directive} from \"@angular/core\"\n\nimport {QuiPreloadDirective} from \"@qualcomm-ui/angular/transitions\"\nimport {CoreProgressRingBarDirective} from \"@qualcomm-ui/angular-core/progress-ring\"\n\nimport {useQdsProgressRingContext} from \"./qds-progress-ring-context.service\"\n\n@Directive({\n hostDirectives: [QuiPreloadDirective],\n selector: \"circle[q-progress-ring-bar]\",\n standalone: false,\n})\nexport class ProgressRingBarDirective extends CoreProgressRingBarDirective {\n protected readonly qdsContext = useQdsProgressRingContext()\n\n constructor() {\n super()\n this.trackBindings.extendWith(\n computed(() => this.qdsContext().getBarBindings()),\n )\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Directive, type OnInit} from \"@angular/core\"\n\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\n\nimport {useQdsProgressRingContext} from \"./qds-progress-ring-context.service\"\n\n@Directive({\n selector: \"[q-progress-ring-circle-container]\",\n standalone: false,\n})\nexport class ProgressRingCircleContainerDirective implements OnInit {\n protected readonly qdsContext = useQdsProgressRingContext()\n\n protected readonly trackBindings = useTrackBindings(() =>\n this.qdsContext().getCircleContainerBindings(),\n )\n\n ngOnInit() {\n this.trackBindings()\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, Directive} from \"@angular/core\"\n\nimport {CoreProgressRingTrackDirective} from \"@qualcomm-ui/angular-core/progress-ring\"\n\nimport {useQdsProgressRingContext} from \"./qds-progress-ring-context.service\"\n\n@Directive({\n selector: \"circle[q-progress-ring-track]\",\n standalone: false,\n})\nexport class ProgressRingTrackDirective extends CoreProgressRingTrackDirective {\n protected readonly qdsContext = useQdsProgressRingContext()\n\n constructor() {\n super()\n this.trackBindings.extendWith(\n computed(() => this.qdsContext().getTrackBindings()),\n )\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Component, computed} from \"@angular/core\"\n\nimport {CoreProgressRingCircleDirective} from \"@qualcomm-ui/angular-core/progress-ring\"\n\nimport {useQdsProgressRingContext} from \"./qds-progress-ring-context.service\"\n\n@Component({\n selector: \"svg[q-progress-ring-circle]\",\n standalone: false,\n template: `\n <ng-content>\n <svg:circle q-progress-ring-track />\n <svg:circle q-progress-ring-bar />\n </ng-content>\n `,\n})\nexport class ProgressRingCircleDirective extends CoreProgressRingCircleDirective {\n protected readonly qdsContext = useQdsProgressRingContext()\n\n constructor() {\n super()\n this.trackBindings.extendWith(\n computed(() => this.qdsContext().getCircleBindings()),\n )\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Directive, inject} from \"@angular/core\"\n\nimport {ApiContextDirective} from \"@qualcomm-ui/angular-core/machine\"\nimport {ProgressRingContextService} from \"@qualcomm-ui/angular-core/progress-ring\"\nimport type {ProgressApi} from \"@qualcomm-ui/core/progress\"\n\n@Directive({\n selector: \"[progressRingContext]\",\n standalone: false,\n})\nexport class ProgressRingContextDirective extends ApiContextDirective<ProgressApi> {\n constructor() {\n const contextService = inject(ProgressRingContextService)\n super(contextService, \"progressRingContext\")\n }\n\n /**\n * Type guard for the context, provides intellisense for the context in the\n * template.\n */\n static ngTemplateContextGuard(\n dir: ProgressRingContextDirective,\n ctx: unknown,\n ): ctx is {$implicit: ProgressApi} {\n return true\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, Directive} from \"@angular/core\"\n\nimport {CoreProgressRingErrorTextDirective} from \"@qualcomm-ui/angular-core/progress-ring\"\n\nimport {useQdsProgressRingContext} from \"./qds-progress-ring-context.service\"\n\n@Directive({\n selector: \"[q-progress-ring-error-text]\",\n standalone: false,\n})\nexport class ProgressRingErrorTextDirective extends CoreProgressRingErrorTextDirective {\n protected readonly qdsContext = useQdsProgressRingContext()\n\n constructor() {\n super()\n this.trackBindings.extendWith(\n computed(() => this.qdsContext().getErrorTextBindings()),\n )\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, Directive} from \"@angular/core\"\n\nimport {CoreProgressRingLabelDirective} from \"@qualcomm-ui/angular-core/progress-ring\"\n\nimport {useQdsProgressRingContext} from \"./qds-progress-ring-context.service\"\n\n@Directive({\n selector: \"[q-progress-ring-label]\",\n standalone: false,\n})\nexport class ProgressRingLabelDirective extends CoreProgressRingLabelDirective {\n protected readonly qdsContext = useQdsProgressRingContext()\n\n constructor() {\n super()\n this.trackBindings.extendWith(\n computed(() => this.qdsContext().getLabelBindings()),\n )\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, Directive, inject, input} from \"@angular/core\"\n\nimport {normalizeProps} from \"@qualcomm-ui/angular-core/machine\"\nimport {\n CoreProgressRingRootDirective,\n provideProgressRingContext,\n} from \"@qualcomm-ui/angular-core/progress-ring\"\nimport type {SignalifyInput} from \"@qualcomm-ui/angular-core/signals\"\nimport {\n createQdsProgressRingApi,\n type QdsProgressRingApiProps,\n type QdsProgressRingEmphasis,\n type QdsProgressRingSize,\n} from \"@qualcomm-ui/qds-core/progress-ring\"\nimport type {Explicit} from \"@qualcomm-ui/utils/guard\"\n\nimport {\n provideQdsProgressRingContext,\n QdsProgressRingContextService,\n} from \"./qds-progress-ring-context.service\"\n\n@Directive({\n providers: [provideProgressRingContext(), provideQdsProgressRingContext()],\n selector: \"[q-progress-ring-root]\",\n standalone: false,\n})\nexport class ProgressRingRootDirective\n extends CoreProgressRingRootDirective\n implements SignalifyInput<QdsProgressRingApiProps>\n{\n /**\n * Governs the color of the progress circle.\n *\n * @default 'primary'\n */\n readonly emphasis = input<QdsProgressRingEmphasis>()\n\n /**\n * Governs the height of the progress circle and track.\n *\n * @default 'md'\n */\n readonly size = input<QdsProgressRingSize>()\n\n /**\n * The thickness of the progress ring in pixels. If supplied as a number, it\n * will be used as the pixel value.\n *\n * The default value varies based on the {@link size} of the progress circle.\n */\n readonly thickness = input<string | number | undefined>()\n\n protected readonly qdsProgressRingService = inject(\n QdsProgressRingContextService,\n )\n\n constructor() {\n super()\n this.trackBindings.extendWith(\n computed(() => this.qdsProgressRingService.context().getRootBindings()),\n )\n\n this.qdsProgressRingService.init(\n computed(() =>\n createQdsProgressRingApi(\n {\n emphasis: this.emphasis(),\n size: this.size(),\n thickness: this.thickness(),\n } satisfies Explicit<QdsProgressRingApiProps>,\n normalizeProps,\n ),\n ),\n )\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, Directive} from \"@angular/core\"\n\nimport {CoreProgressRingValueTextDirective} from \"@qualcomm-ui/angular-core/progress-ring\"\n\nimport {useQdsProgressRingContext} from \"./qds-progress-ring-context.service\"\n\n@Directive({\n selector: \"[q-progress-ring-value-text]\",\n standalone: false,\n})\nexport class ProgressRingValueTextDirective extends CoreProgressRingValueTextDirective {\n protected readonly qdsContext = useQdsProgressRingContext()\n\n constructor() {\n super()\n this.trackBindings.extendWith(\n computed(() => this.qdsContext().getValueTextBindings()),\n )\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Component, input} from \"@angular/core\"\n\nimport {provideProgressRingContext} from \"@qualcomm-ui/angular-core/progress-ring\"\n\nimport {ProgressRingRootDirective} from \"./progress-ring-root.directive\"\nimport {provideQdsProgressRingContext} from \"./qds-progress-ring-context.service\"\n\n@Component({\n providers: [provideProgressRingContext(), provideQdsProgressRingContext()],\n selector: \"[q-progress-ring]\",\n standalone: false,\n template: `\n <div q-progress-ring-circle-container>\n <ng-content select=\"[q-progress-ring-value-text]\" />\n <ng-content select=\"[q-progress-ring-circle]\">\n <svg q-progress-ring-circle></svg>\n </ng-content>\n </div>\n\n <ng-content select=\"[q-progress-ring-label]\">\n @if (label()) {\n <div q-progress-ring-label>{{ label() }}</div>\n }\n </ng-content>\n\n <ng-content select=\"[q-progress-ring-error-text]\">\n <div q-progress-ring-error-text>{{ errorText() }}</div>\n </ng-content>\n `,\n})\nexport class ProgressRingDirective extends ProgressRingRootDirective {\n /**\n * Error text rendered below the progress ring when {@link invalid} is true.\n *\n * @remarks\n * To customize the element, provide it using the directive instead:\n * ```angular-html\n * <div q-progress-ring-error-text>...</div>\n * ```\n */\n readonly errorText = input<string>()\n\n /**\n * Accessible label for the progress ring, rendered below the circle.\n *\n * @remarks\n * To customize the element, provide it using the directive instead:\n * ```angular-html\n * <div q-progress-ring-label>...</div>\n * ```\n */\n readonly label = input<string>()\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {NgModule} from \"@angular/core\"\n\nimport {ProgressRingBarDirective} from \"./progress-ring-bar.directive\"\nimport {ProgressRingCircleContainerDirective} from \"./progress-ring-circle-container.directive\"\nimport {ProgressRingCircleDirective} from \"./progress-ring-circle.directive\"\nimport {ProgressRingContextDirective} from \"./progress-ring-context.directive\"\nimport {ProgressRingErrorTextDirective} from \"./progress-ring-error-text.directive\"\nimport {ProgressRingLabelDirective} from \"./progress-ring-label.directive\"\nimport {ProgressRingRootDirective} from \"./progress-ring-root.directive\"\nimport {ProgressRingTrackDirective} from \"./progress-ring-track.directive\"\nimport {ProgressRingValueTextDirective} from \"./progress-ring-value-text.directive\"\nimport {ProgressRingDirective} from \"./progress-ring.directive\"\n\n@NgModule({\n declarations: [\n ProgressRingDirective,\n ProgressRingRootDirective,\n ProgressRingBarDirective,\n ProgressRingCircleDirective,\n ProgressRingCircleContainerDirective,\n ProgressRingContextDirective,\n ProgressRingErrorTextDirective,\n ProgressRingLabelDirective,\n ProgressRingTrackDirective,\n ProgressRingValueTextDirective,\n ],\n exports: [\n ProgressRingDirective,\n ProgressRingRootDirective,\n ProgressRingBarDirective,\n ProgressRingCircleDirective,\n ProgressRingCircleContainerDirective,\n ProgressRingContextDirective,\n ProgressRingErrorTextDirective,\n ProgressRingLabelDirective,\n ProgressRingTrackDirective,\n ProgressRingValueTextDirective,\n ],\n})\nexport class ProgressRingModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1.ProgressRingBarDirective","i2.ProgressRingTrackDirective","i1.ProgressRingCircleDirective","i2.ProgressRingCircleContainerDirective","i3.ProgressRingErrorTextDirective","i4.ProgressRingLabelDirective"],"mappings":";;;;;;;;AAAA;AACA;AAYM,MAAO,6BAA8B,SAAQ,qBAAyC,CAAA;wGAA/E,6BAA6B,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAA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kBAAkB,EAAA,CAAA;;4FAAlB,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBA1B9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ,qBAAqB;wBACrB,yBAAyB;wBACzB,wBAAwB;wBACxB,2BAA2B;wBAC3B,oCAAoC;wBACpC,4BAA4B;wBAC5B,8BAA8B;wBAC9B,0BAA0B;wBAC1B,0BAA0B;wBAC1B,8BAA8B;AAC/B,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,qBAAqB;wBACrB,yBAAyB;wBACzB,wBAAwB;wBACxB,2BAA2B;wBAC3B,oCAAoC;wBACpC,4BAA4B;wBAC5B,8BAA8B;wBAC9B,0BAA0B;wBAC1B,0BAA0B;wBAC1B,8BAA8B;AAC/B,qBAAA;AACF,iBAAA;;;ACzCD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"qualcomm-ui-angular-progress-ring.mjs","sources":["../../src/progress-ring/qds-progress-ring-context.service.ts","../../src/progress-ring/progress-ring-bar.directive.ts","../../src/progress-ring/progress-ring-circle-container.directive.ts","../../src/progress-ring/progress-ring-track.directive.ts","../../src/progress-ring/progress-ring-circle.directive.ts","../../src/progress-ring/progress-ring-context.directive.ts","../../src/progress-ring/progress-ring-error-text.directive.ts","../../src/progress-ring/progress-ring-label.directive.ts","../../src/progress-ring/progress-ring-root.directive.ts","../../src/progress-ring/progress-ring-value-text.directive.ts","../../src/progress-ring/progress-ring.directive.ts","../../src/progress-ring/progress-ring.module.ts","../../src/progress-ring/qualcomm-ui-angular-progress-ring.ts"],"sourcesContent":["// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Injectable} from \"@angular/core\"\n\nimport {\n type ApiContext,\n BaseApiContextService,\n createApiContext,\n} from \"@qualcomm-ui/angular-core/machine\"\nimport type {QdsProgressRingApi} from \"@qualcomm-ui/qds-core/progress-ring\"\n\n@Injectable()\nexport class QdsProgressRingContextService extends BaseApiContextService<QdsProgressRingApi> {}\n\nexport const [\n QDS_PROGRESS_RING_CONTEXT,\n useQdsProgressRingContext,\n provideQdsProgressRingContext,\n]: ApiContext<QdsProgressRingApi> = createApiContext<QdsProgressRingApi>(\n \"QdsProgressRingContext\",\n QdsProgressRingContextService,\n)\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, Directive} from \"@angular/core\"\n\nimport {QuiPreloadDirective} from \"@qualcomm-ui/angular/transitions\"\nimport {CoreProgressRingBarDirective} from \"@qualcomm-ui/angular-core/progress-ring\"\n\nimport {useQdsProgressRingContext} from \"./qds-progress-ring-context.service\"\n\n@Directive({\n hostDirectives: [QuiPreloadDirective],\n selector: \"circle[q-progress-ring-bar]\",\n standalone: false,\n})\nexport class ProgressRingBarDirective extends CoreProgressRingBarDirective {\n protected readonly qdsContext = useQdsProgressRingContext()\n\n constructor() {\n super()\n this.trackBindings.extendWith(\n computed(() => this.qdsContext().getBarBindings()),\n )\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Directive, type OnInit} from \"@angular/core\"\n\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\n\nimport {useQdsProgressRingContext} from \"./qds-progress-ring-context.service\"\n\n@Directive({\n selector: \"[q-progress-ring-circle-container]\",\n standalone: false,\n})\nexport class ProgressRingCircleContainerDirective implements OnInit {\n protected readonly qdsContext = useQdsProgressRingContext()\n\n protected readonly trackBindings = useTrackBindings(() =>\n this.qdsContext().getCircleContainerBindings(),\n )\n\n ngOnInit() {\n this.trackBindings()\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, Directive} from \"@angular/core\"\n\nimport {CoreProgressRingTrackDirective} from \"@qualcomm-ui/angular-core/progress-ring\"\n\nimport {useQdsProgressRingContext} from \"./qds-progress-ring-context.service\"\n\n@Directive({\n selector: \"circle[q-progress-ring-track]\",\n standalone: false,\n})\nexport class ProgressRingTrackDirective extends CoreProgressRingTrackDirective {\n protected readonly qdsContext = useQdsProgressRingContext()\n\n constructor() {\n super()\n this.trackBindings.extendWith(\n computed(() => this.qdsContext().getTrackBindings()),\n )\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Component, computed} from \"@angular/core\"\n\nimport {CoreProgressRingCircleDirective} from \"@qualcomm-ui/angular-core/progress-ring\"\n\nimport {useQdsProgressRingContext} from \"./qds-progress-ring-context.service\"\n\n@Component({\n selector: \"svg[q-progress-ring-circle]\",\n standalone: false,\n template: `\n <ng-content>\n <svg:circle q-progress-ring-track />\n <svg:circle q-progress-ring-bar />\n </ng-content>\n `,\n})\nexport class ProgressRingCircleDirective extends CoreProgressRingCircleDirective {\n protected readonly qdsContext = useQdsProgressRingContext()\n\n constructor() {\n super()\n this.trackBindings.extendWith(\n computed(() => this.qdsContext().getCircleBindings()),\n )\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Directive, inject} from \"@angular/core\"\n\nimport {ApiContextDirective} from \"@qualcomm-ui/angular-core/machine\"\nimport {ProgressRingContextService} from \"@qualcomm-ui/angular-core/progress-ring\"\nimport type {ProgressApi} from \"@qualcomm-ui/core/progress\"\n\n@Directive({\n selector: \"[progressRingContext]\",\n standalone: false,\n})\nexport class ProgressRingContextDirective extends ApiContextDirective<ProgressApi> {\n constructor() {\n const contextService = inject(ProgressRingContextService)\n super(contextService, \"progressRingContext\")\n }\n\n /**\n * Type guard for the context, provides intellisense for the context in the\n * template.\n */\n static ngTemplateContextGuard(\n dir: ProgressRingContextDirective,\n ctx: unknown,\n ): ctx is {$implicit: ProgressApi} {\n return true\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, Directive} from \"@angular/core\"\n\nimport {CoreProgressRingErrorTextDirective} from \"@qualcomm-ui/angular-core/progress-ring\"\n\nimport {useQdsProgressRingContext} from \"./qds-progress-ring-context.service\"\n\n@Directive({\n selector: \"[q-progress-ring-error-text]\",\n standalone: false,\n})\nexport class ProgressRingErrorTextDirective extends CoreProgressRingErrorTextDirective {\n protected readonly qdsContext = useQdsProgressRingContext()\n\n constructor() {\n super()\n this.trackBindings.extendWith(\n computed(() => this.qdsContext().getErrorTextBindings()),\n )\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, Directive} from \"@angular/core\"\n\nimport {CoreProgressRingLabelDirective} from \"@qualcomm-ui/angular-core/progress-ring\"\n\nimport {useQdsProgressRingContext} from \"./qds-progress-ring-context.service\"\n\n@Directive({\n selector: \"[q-progress-ring-label]\",\n standalone: false,\n})\nexport class ProgressRingLabelDirective extends CoreProgressRingLabelDirective {\n protected readonly qdsContext = useQdsProgressRingContext()\n\n constructor() {\n super()\n this.trackBindings.extendWith(\n computed(() => this.qdsContext().getLabelBindings()),\n )\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, Directive, inject, input} from \"@angular/core\"\n\nimport {normalizeProps} from \"@qualcomm-ui/angular-core/machine\"\nimport {\n CoreProgressRingRootDirective,\n provideProgressRingContext,\n} from \"@qualcomm-ui/angular-core/progress-ring\"\nimport type {SignalifyInput} from \"@qualcomm-ui/angular-core/signals\"\nimport {\n createQdsProgressRingApi,\n type QdsProgressRingApiProps,\n type QdsProgressRingEmphasis,\n type QdsProgressRingSize,\n} from \"@qualcomm-ui/qds-core/progress-ring\"\nimport type {Explicit} from \"@qualcomm-ui/utils/guard\"\n\nimport {\n provideQdsProgressRingContext,\n QdsProgressRingContextService,\n} from \"./qds-progress-ring-context.service\"\n\n@Directive({\n providers: [provideProgressRingContext(), provideQdsProgressRingContext()],\n selector: \"[q-progress-ring-root]\",\n standalone: false,\n})\nexport class ProgressRingRootDirective\n extends CoreProgressRingRootDirective\n implements SignalifyInput<QdsProgressRingApiProps>\n{\n /**\n * Governs the color of the progress circle.\n *\n * @default 'primary'\n */\n readonly emphasis = input<QdsProgressRingEmphasis>()\n\n /**\n * Governs the height of the progress circle and track.\n *\n * @default 'md'\n */\n readonly size = input<QdsProgressRingSize>()\n\n /**\n * The thickness of the progress ring in pixels. If supplied as a number, it\n * will be used as the pixel value.\n *\n * The default value varies based on the {@link size} of the progress circle.\n */\n readonly thickness = input<string | number | undefined>()\n\n protected readonly qdsProgressRingService = inject(\n QdsProgressRingContextService,\n )\n\n constructor() {\n super()\n this.trackBindings.extendWith(\n computed(() => this.qdsProgressRingService.context().getRootBindings()),\n )\n\n this.qdsProgressRingService.init(\n computed(() =>\n createQdsProgressRingApi(\n {\n emphasis: this.emphasis(),\n size: this.size(),\n thickness: this.thickness(),\n } satisfies Explicit<QdsProgressRingApiProps>,\n normalizeProps,\n ),\n ),\n )\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, Directive} from \"@angular/core\"\n\nimport {CoreProgressRingValueTextDirective} from \"@qualcomm-ui/angular-core/progress-ring\"\n\nimport {useQdsProgressRingContext} from \"./qds-progress-ring-context.service\"\n\n@Directive({\n selector: \"[q-progress-ring-value-text]\",\n standalone: false,\n})\nexport class ProgressRingValueTextDirective extends CoreProgressRingValueTextDirective {\n protected readonly qdsContext = useQdsProgressRingContext()\n\n constructor() {\n super()\n this.trackBindings.extendWith(\n computed(() => this.qdsContext().getValueTextBindings()),\n )\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Component, input} from \"@angular/core\"\n\nimport {provideProgressRingContext} from \"@qualcomm-ui/angular-core/progress-ring\"\n\nimport {ProgressRingRootDirective} from \"./progress-ring-root.directive\"\nimport {provideQdsProgressRingContext} from \"./qds-progress-ring-context.service\"\n\n@Component({\n providers: [provideProgressRingContext(), provideQdsProgressRingContext()],\n selector: \"[q-progress-ring]\",\n standalone: false,\n template: `\n <div q-progress-ring-circle-container>\n <ng-content select=\"[q-progress-ring-value-text]\">\n @if (valueText()) {\n <div q-progress-ring-value-text>{{ valueText() }}</div>\n }\n </ng-content>\n <ng-content select=\"[q-progress-ring-circle]\">\n <svg q-progress-ring-circle></svg>\n </ng-content>\n </div>\n\n <ng-content select=\"[q-progress-ring-label]\">\n @if (label()) {\n <div q-progress-ring-label>{{ label() }}</div>\n }\n </ng-content>\n\n <ng-content select=\"[q-progress-ring-error-text]\">\n <div q-progress-ring-error-text>{{ errorText() }}</div>\n </ng-content>\n `,\n})\nexport class ProgressRingDirective extends ProgressRingRootDirective {\n /**\n * Error text rendered below the progress ring when {@link invalid} is true.\n *\n * @remarks\n * To customize the element, provide it using the directive instead:\n * ```angular-html\n * <div q-progress-ring-error-text>...</div>\n * ```\n */\n readonly errorText = input<string>()\n\n /**\n * Accessible label for the progress ring, rendered below the circle.\n *\n * @remarks\n * To customize the element, provide it using the directive instead:\n * ```angular-html\n * <div q-progress-ring-label>...</div>\n * ```\n */\n readonly label = input<string>()\n\n /**\n * Optional value text displayed inside the progress ring.\n *\n * @remarks\n * To customize the element, provide it using the directive instead:\n * ```angular-html\n * <div q-progress-ring-value-text>...</div>\n * ```\n */\n readonly valueText = input<string>()\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {NgModule} from \"@angular/core\"\n\nimport {ProgressRingBarDirective} from \"./progress-ring-bar.directive\"\nimport {ProgressRingCircleContainerDirective} from \"./progress-ring-circle-container.directive\"\nimport {ProgressRingCircleDirective} from \"./progress-ring-circle.directive\"\nimport {ProgressRingContextDirective} from \"./progress-ring-context.directive\"\nimport {ProgressRingErrorTextDirective} from \"./progress-ring-error-text.directive\"\nimport {ProgressRingLabelDirective} from \"./progress-ring-label.directive\"\nimport {ProgressRingRootDirective} from \"./progress-ring-root.directive\"\nimport {ProgressRingTrackDirective} from \"./progress-ring-track.directive\"\nimport {ProgressRingValueTextDirective} from \"./progress-ring-value-text.directive\"\nimport {ProgressRingDirective} from \"./progress-ring.directive\"\n\n@NgModule({\n declarations: [\n ProgressRingDirective,\n ProgressRingRootDirective,\n ProgressRingBarDirective,\n ProgressRingCircleDirective,\n ProgressRingCircleContainerDirective,\n ProgressRingContextDirective,\n ProgressRingErrorTextDirective,\n ProgressRingLabelDirective,\n ProgressRingTrackDirective,\n ProgressRingValueTextDirective,\n ],\n exports: [\n ProgressRingDirective,\n ProgressRingRootDirective,\n ProgressRingBarDirective,\n ProgressRingCircleDirective,\n ProgressRingCircleContainerDirective,\n ProgressRingContextDirective,\n ProgressRingErrorTextDirective,\n ProgressRingLabelDirective,\n ProgressRingTrackDirective,\n ProgressRingValueTextDirective,\n ],\n})\nexport class ProgressRingModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1.ProgressRingBarDirective","i2.ProgressRingTrackDirective","i1.ProgressRingCircleDirective","i2.ProgressRingCircleContainerDirective","i3.ProgressRingErrorTextDirective","i4.ProgressRingLabelDirective","i5.ProgressRingValueTextDirective"],"mappings":";;;;;;;;AAAA;AACA;AAYM,MAAO,6BAA8B,SAAQ,qBAAyC,CAAA;wGAA/E,6BAA6B,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;4GAA7B,6BAA6B,EAAA,CAAA;;4FAA7B,6BAA6B,EAAA,UAAA,EAAA,CAAA;kBADzC;;AA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AAwB;YACxB,2BAA2B;YAC3B,oCAAoC;YACpC,4BAA4B;YAC5B,8BAA8B;YAC9B,0BAA0B;YAC1B,0BAA0B;AAC1B,YAAA,8BAA8B,aAG9B,qBAAqB;YACrB,yBAAyB;YACzB,wBAAwB;YACxB,2BAA2B;YAC3B,oCAAoC;YACpC,4BAA4B;YAC5B,8BAA8B;YAC9B,0BAA0B;YAC1B,0BAA0B;YAC1B,8BAA8B,CAAA,EAAA,CAAA;yGAGrB,kBAAkB,EAAA,CAAA;;4FAAlB,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBA1B9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ,qBAAqB;wBACrB,yBAAyB;wBACzB,wBAAwB;wBACxB,2BAA2B;wBAC3B,oCAAoC;wBACpC,4BAA4B;wBAC5B,8BAA8B;wBAC9B,0BAA0B;wBAC1B,0BAA0B;wBAC1B,8BAA8B;AAC/B,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,qBAAqB;wBACrB,yBAAyB;wBACzB,wBAAwB;wBACxB,2BAA2B;wBAC3B,oCAAoC;wBACpC,4BAA4B;wBAC5B,8BAA8B;wBAC9B,0BAA0B;wBAC1B,0BAA0B;wBAC1B,8BAA8B;AAC/B,qBAAA;AACF,iBAAA;;;ACzCD;;AAEG;;;;"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { input, Component, NgModule } from '@angular/core';
|
|
3
|
+
import * as i1 from '@qualcomm-ui/angular/field-group';
|
|
4
|
+
import { FieldGroupRootDirective, provideQdsFieldGroupContext, FieldGroupModule } from '@qualcomm-ui/angular/field-group';
|
|
5
|
+
|
|
6
|
+
// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
|
|
7
|
+
// SPDX-License-Identifier: BSD-3-Clause-Clear
|
|
8
|
+
/**
|
|
9
|
+
* Groups multiple switches with a label, hint, and error text.
|
|
10
|
+
*/
|
|
11
|
+
class SwitchGroupComponent extends FieldGroupRootDirective {
|
|
12
|
+
/**
|
|
13
|
+
* Error message displayed when invalid.
|
|
14
|
+
*/
|
|
15
|
+
errorText = input(...(ngDevMode ? [undefined, { debugName: "errorText" }] : []));
|
|
16
|
+
/**
|
|
17
|
+
* Helper text displayed below items. Hidden when invalid.
|
|
18
|
+
*/
|
|
19
|
+
hint = input(...(ngDevMode ? [undefined, { debugName: "hint" }] : []));
|
|
20
|
+
/**
|
|
21
|
+
* Group label text.
|
|
22
|
+
*/
|
|
23
|
+
label = input(...(ngDevMode ? [undefined, { debugName: "label" }] : []));
|
|
24
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: SwitchGroupComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
25
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: SwitchGroupComponent, isStandalone: false, selector: "[q-switch-group]", inputs: { errorText: { classPropertyName: "errorText", publicName: "errorText", isSignal: true, isRequired: false, transformFunction: null }, hint: { classPropertyName: "hint", publicName: "hint", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null } }, providers: [provideQdsFieldGroupContext()], usesInheritance: true, ngImport: i0, template: `
|
|
26
|
+
@if (label()) {
|
|
27
|
+
<legend q-field-group-label>{{ label() }}</legend>
|
|
28
|
+
}
|
|
29
|
+
<div q-field-group-items>
|
|
30
|
+
<ng-content />
|
|
31
|
+
</div>
|
|
32
|
+
@if (hint() && !invalid()) {
|
|
33
|
+
<div q-field-group-hint>{{ hint() }}</div>
|
|
34
|
+
}
|
|
35
|
+
@if (errorText() && invalid()) {
|
|
36
|
+
<q-field-group-error-text>{{ errorText() }}</q-field-group-error-text>
|
|
37
|
+
}
|
|
38
|
+
`, isInline: true, dependencies: [{ kind: "component", type: i1.FieldGroupErrorTextComponent, selector: "q-field-group-error-text", inputs: ["icon"] }, { kind: "directive", type: i1.FieldGroupHintDirective, selector: "[q-field-group-hint]" }, { kind: "directive", type: i1.FieldGroupItemsDirective, selector: "[q-field-group-items]" }, { kind: "directive", type: i1.FieldGroupLabelDirective, selector: "[q-field-group-label]" }] });
|
|
39
|
+
}
|
|
40
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: SwitchGroupComponent, decorators: [{
|
|
41
|
+
type: Component,
|
|
42
|
+
args: [{
|
|
43
|
+
providers: [provideQdsFieldGroupContext()],
|
|
44
|
+
selector: "[q-switch-group]",
|
|
45
|
+
standalone: false,
|
|
46
|
+
template: `
|
|
47
|
+
@if (label()) {
|
|
48
|
+
<legend q-field-group-label>{{ label() }}</legend>
|
|
49
|
+
}
|
|
50
|
+
<div q-field-group-items>
|
|
51
|
+
<ng-content />
|
|
52
|
+
</div>
|
|
53
|
+
@if (hint() && !invalid()) {
|
|
54
|
+
<div q-field-group-hint>{{ hint() }}</div>
|
|
55
|
+
}
|
|
56
|
+
@if (errorText() && invalid()) {
|
|
57
|
+
<q-field-group-error-text>{{ errorText() }}</q-field-group-error-text>
|
|
58
|
+
}
|
|
59
|
+
`,
|
|
60
|
+
}]
|
|
61
|
+
}], propDecorators: { errorText: [{ type: i0.Input, args: [{ isSignal: true, alias: "errorText", required: false }] }], hint: [{ type: i0.Input, args: [{ isSignal: true, alias: "hint", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }] } });
|
|
62
|
+
|
|
63
|
+
// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
|
|
64
|
+
// SPDX-License-Identifier: BSD-3-Clause-Clear
|
|
65
|
+
class SwitchGroupModule {
|
|
66
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: SwitchGroupModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
67
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: SwitchGroupModule, declarations: [SwitchGroupComponent], imports: [FieldGroupModule], exports: [SwitchGroupComponent] });
|
|
68
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: SwitchGroupModule, imports: [FieldGroupModule] });
|
|
69
|
+
}
|
|
70
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: SwitchGroupModule, decorators: [{
|
|
71
|
+
type: NgModule,
|
|
72
|
+
args: [{
|
|
73
|
+
declarations: [SwitchGroupComponent],
|
|
74
|
+
exports: [SwitchGroupComponent],
|
|
75
|
+
imports: [FieldGroupModule],
|
|
76
|
+
}]
|
|
77
|
+
}] });
|
|
78
|
+
|
|
79
|
+
// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
|
|
80
|
+
// SPDX-License-Identifier: BSD-3-Clause-Clear
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Generated bundle index. Do not edit.
|
|
84
|
+
*/
|
|
85
|
+
|
|
86
|
+
export { SwitchGroupComponent, SwitchGroupModule };
|
|
87
|
+
//# sourceMappingURL=qualcomm-ui-angular-switch-group.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"qualcomm-ui-angular-switch-group.mjs","sources":["../../src/switch-group/switch-group.component.ts","../../src/switch-group/switch-group.module.ts","../../src/switch-group/index.ts","../../src/switch-group/qualcomm-ui-angular-switch-group.ts"],"sourcesContent":["// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Component, input} from \"@angular/core\"\n\nimport {\n FieldGroupRootDirective,\n provideQdsFieldGroupContext,\n} from \"@qualcomm-ui/angular/field-group\"\n\n/**\n * Groups multiple switches with a label, hint, and error text.\n */\n@Component({\n providers: [provideQdsFieldGroupContext()],\n selector: \"[q-switch-group]\",\n standalone: false,\n template: `\n @if (label()) {\n <legend q-field-group-label>{{ label() }}</legend>\n }\n <div q-field-group-items>\n <ng-content />\n </div>\n @if (hint() && !invalid()) {\n <div q-field-group-hint>{{ hint() }}</div>\n }\n @if (errorText() && invalid()) {\n <q-field-group-error-text>{{ errorText() }}</q-field-group-error-text>\n }\n `,\n})\nexport class SwitchGroupComponent extends FieldGroupRootDirective {\n /**\n * Error message displayed when invalid.\n */\n readonly errorText = input<string>()\n\n /**\n * Helper text displayed below items. Hidden when invalid.\n */\n readonly hint = input<string>()\n\n /**\n * Group label text.\n */\n readonly label = input<string>()\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {NgModule} from \"@angular/core\"\n\nimport {FieldGroupModule} from \"@qualcomm-ui/angular/field-group\"\n\nimport {SwitchGroupComponent} from \"./switch-group.component\"\n\n@NgModule({\n declarations: [SwitchGroupComponent],\n exports: [SwitchGroupComponent],\n imports: [FieldGroupModule],\n})\nexport class SwitchGroupModule {}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nexport * from \"./switch-group.component\"\nexport * from \"./switch-group.module\"\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAAA;AACA;AASA;;AAEG;AAoBG,MAAO,oBAAqB,SAAQ,uBAAuB,CAAA;AAC/D;;AAEG;IACM,SAAS,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,WAAA,EAAA,CAAA,GAAA,EAAA,CAAA,CAAU;AAEpC;;AAEG;IACM,IAAI,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,MAAA,EAAA,CAAA,GAAA,EAAA,CAAA,CAAU;AAE/B;;AA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,YAAY,EAAE,CAAC,oBAAoB,CAAC;oBACpC,OAAO,EAAE,CAAC,oBAAoB,CAAC;oBAC/B,OAAO,EAAE,CAAC,gBAAgB,CAAC;AAC5B,iBAAA;;;ACbD;AACA;;ACDA;;AAEG;;;;"}
|
|
@@ -8,6 +8,7 @@ import { CircleAlert } from 'lucide-angular';
|
|
|
8
8
|
import * as i1$1 from '@qualcomm-ui/angular/icon';
|
|
9
9
|
import { IconDirective } from '@qualcomm-ui/angular/icon';
|
|
10
10
|
import { useForbiddenFormControlWarning } from '@qualcomm-ui/angular-core/forms';
|
|
11
|
+
import { useQdsFieldGroupContext } from '@qualcomm-ui/angular/field-group';
|
|
11
12
|
import { createQdsSwitchApi } from '@qualcomm-ui/qds-core/switch';
|
|
12
13
|
|
|
13
14
|
// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
|
|
@@ -176,9 +177,10 @@ class SwitchRootDirective extends CoreSwitchRootDirective {
|
|
|
176
177
|
*/
|
|
177
178
|
size = input(...(ngDevMode ? [undefined, { debugName: "size" }] : []));
|
|
178
179
|
qdsSwitchService = inject(QdsSwitchContextService);
|
|
180
|
+
fieldGroupContext = useQdsFieldGroupContext({ optional: true });
|
|
179
181
|
ngOnInit() {
|
|
180
182
|
super.ngOnInit();
|
|
181
|
-
this.qdsSwitchService.init(computed(() => createQdsSwitchApi({ size: this.size() }, normalizeProps)));
|
|
183
|
+
this.qdsSwitchService.init(computed(() => createQdsSwitchApi({ size: this.size() ?? this.fieldGroupContext?.().size }, normalizeProps)));
|
|
182
184
|
this.trackBindings.extendWith(computed(() => this.qdsSwitchService.context().getRootBindings()));
|
|
183
185
|
}
|
|
184
186
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: SwitchRootDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"qualcomm-ui-angular-switch.mjs","sources":["../../src/switch/qds-switch-context.service.ts","../../src/switch/switch-thumb.directive.ts","../../src/switch/switch-control.component.ts","../../src/switch/switch-error-text.component.ts","../../src/switch/switch-hint.directive.ts","../../src/switch/switch-hidden-input.directive.ts","../../src/switch/switch-label.directive.ts","../../src/switch/switch-root.directive.ts","../../src/switch/switch.component.ts","../../src/switch/switch.module.ts","../../src/switch/qualcomm-ui-angular-switch.ts"],"sourcesContent":["// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Injectable} from \"@angular/core\"\n\nimport {\n type ApiContext,\n BaseApiContextService,\n createApiContext,\n} from \"@qualcomm-ui/angular-core/machine\"\nimport type {QdsSwitchApi} from \"@qualcomm-ui/qds-core/switch\"\n\n@Injectable()\nexport class QdsSwitchContextService extends BaseApiContextService<QdsSwitchApi> {}\n\nexport const [\n QDS_SWITCH_CONTEXT,\n useQdsSwitchContext,\n provideQdsSwitchContext,\n]: ApiContext<QdsSwitchApi> = createApiContext<QdsSwitchApi>(\n \"QdsSwitchContext\",\n QdsSwitchContextService,\n)\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, Directive} from \"@angular/core\"\n\nimport {QuiPreloadDirective} from \"@qualcomm-ui/angular/transitions\"\nimport {CoreSwitchThumbDirective} from \"@qualcomm-ui/angular-core/switch\"\n\nimport {useQdsSwitchContext} from \"./qds-switch-context.service\"\n\n@Directive({\n hostDirectives: [QuiPreloadDirective],\n selector: \"[q-switch-thumb]\",\n standalone: false,\n})\nexport class SwitchThumbDirective extends CoreSwitchThumbDirective {\n protected readonly qdsSwitchContext = useQdsSwitchContext()\n\n constructor() {\n super()\n this.trackBindings.extendWith(\n computed(() => this.qdsSwitchContext().getThumbBindings()),\n )\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Component, computed} from \"@angular/core\"\n\nimport {QuiPreloadDirective} from \"@qualcomm-ui/angular/transitions\"\nimport {CoreSwitchControlDirective} from \"@qualcomm-ui/angular-core/switch\"\n\nimport {useQdsSwitchContext} from \"./qds-switch-context.service\"\n\n@Component({\n hostDirectives: [QuiPreloadDirective],\n selector: \"[q-switch-control]\",\n standalone: false,\n template: `\n <ng-content>\n <span q-switch-thumb></span>\n </ng-content>\n `,\n})\nexport class SwitchControlComponent extends CoreSwitchControlDirective {\n protected readonly qdsSwitchContext = useQdsSwitchContext()\n\n constructor() {\n super()\n this.trackBindings.extendWith(\n computed(() => this.qdsSwitchContext().getControlBindings()),\n )\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Component, computed, input} from \"@angular/core\"\nimport {CircleAlert} from \"lucide-angular\"\n\nimport type {LucideIconOrString} from \"@qualcomm-ui/angular-core/lucide\"\nimport {CoreSwitchErrorTextDirective} from \"@qualcomm-ui/angular-core/switch\"\n\nimport {useQdsSwitchContext} from \"./qds-switch-context.service\"\n\n@Component({\n selector: \"[q-switch-error-text]\",\n standalone: false,\n template: `\n <svg [qIcon]=\"icon()!\" />\n <ng-content />\n `,\n})\nexport class SwitchErrorTextComponent extends CoreSwitchErrorTextDirective {\n /**\n * Error indicator icon.\n *\n * @default CircleAlert\n */\n readonly icon = input<LucideIconOrString>(CircleAlert)\n\n protected readonly qdsSwitchContext = useQdsSwitchContext()\n\n constructor() {\n super()\n this.trackBindings.extendWith(\n computed(() => this.qdsSwitchContext().getErrorTextBindings()),\n )\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, Directive} from \"@angular/core\"\n\nimport {CoreSwitchHintDirective} from \"@qualcomm-ui/angular-core/switch\"\n\nimport {useQdsSwitchContext} from \"./qds-switch-context.service\"\n\n/**\n * Hint text displayed below the switch.\n */\n@Directive({\n selector: \"[q-switch-hint]\",\n standalone: false,\n})\nexport class SwitchHintDirective extends CoreSwitchHintDirective {\n protected readonly qdsSwitchContext = useQdsSwitchContext()\n\n constructor() {\n super()\n this.trackBindings.extendWith(\n computed(() => this.qdsSwitchContext().getHintBindings()),\n )\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, Directive} from \"@angular/core\"\n\nimport {useForbiddenFormControlWarning} from \"@qualcomm-ui/angular-core/forms\"\nimport {CoreSwitchHiddenInputDirective} from \"@qualcomm-ui/angular-core/switch\"\n\nimport {useQdsSwitchContext} from \"./qds-switch-context.service\"\n\n@Directive({\n selector: \"[q-switch-hidden-input]\",\n standalone: false,\n})\nexport class SwitchHiddenInputDirective extends CoreSwitchHiddenInputDirective {\n protected readonly qdsSwitchContext = useQdsSwitchContext()\n\n constructor() {\n super()\n this.trackBindings.extendWith(\n computed(() => this.qdsSwitchContext().getHiddenInputBindings()),\n )\n useForbiddenFormControlWarning({\n directive: \"q-switch-hidden-input\",\n rootDirective: \"q-switch\",\n })\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, Directive} from \"@angular/core\"\n\nimport {CoreSwitchLabelDirective} from \"@qualcomm-ui/angular-core/switch\"\n\nimport {useQdsSwitchContext} from \"./qds-switch-context.service\"\n\n@Directive({\n selector: \"[q-switch-label]\",\n standalone: false,\n})\nexport class SwitchLabelDirective extends CoreSwitchLabelDirective {\n protected readonly qdsSwitchContext = useQdsSwitchContext()\n\n constructor() {\n super()\n this.trackBindings.extendWith(\n computed(() => this.qdsSwitchContext().getLabelBindings()),\n )\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, Directive, inject, input} from \"@angular/core\"\n\nimport {normalizeProps} from \"@qualcomm-ui/angular-core/machine\"\nimport type {SignalifyInput} from \"@qualcomm-ui/angular-core/signals\"\nimport {\n CoreSwitchRootDirective,\n provideSwitchContext,\n} from \"@qualcomm-ui/angular-core/switch\"\nimport {\n createQdsSwitchApi,\n type QdsSwitchApiProps,\n type QdsSwitchSize,\n} from \"@qualcomm-ui/qds-core/switch\"\n\nimport {\n provideQdsSwitchContext,\n QdsSwitchContextService,\n} from \"./qds-switch-context.service\"\n\n@Directive({\n providers: [provideSwitchContext(), provideQdsSwitchContext()],\n selector: \"[q-switch-root]\",\n standalone: false,\n})\nexport class SwitchRootDirective\n extends CoreSwitchRootDirective\n implements SignalifyInput<QdsSwitchApiProps>\n{\n /**\n * Size of the component and its label.\n *\n * @default \"md\"\n */\n readonly size = input<QdsSwitchSize | undefined>()\n\n readonly qdsSwitchService = inject(QdsSwitchContextService)\n\n override ngOnInit() {\n super.ngOnInit()\n\n this.qdsSwitchService.init(\n computed(() => createQdsSwitchApi({size: this.size()}, normalizeProps)),\n )\n\n this.trackBindings.extendWith(\n computed(() => this.qdsSwitchService.context().getRootBindings()),\n )\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Component, input} from \"@angular/core\"\n\nimport {provideSwitchContext} from \"@qualcomm-ui/angular-core/switch\"\n\nimport {provideQdsSwitchContext} from \"./qds-switch-context.service\"\nimport {SwitchRootDirective} from \"./switch-root.directive\"\n\n@Component({\n providers: [provideSwitchContext(), provideQdsSwitchContext()],\n selector: \"[q-switch]\",\n standalone: false,\n template: `\n <ng-content select=\"[q-switch-hidden-input]\">\n <input q-switch-hidden-input />\n </ng-content>\n <ng-content select=\"[q-switch-control]\">\n <div q-switch-control>\n <div q-switch-thumb></div>\n </div>\n </ng-content>\n <ng-content select=\"[q-switch-label]\">\n @if (label()) {\n <span q-switch-label>\n {{ label() }}\n </span>\n }\n </ng-content>\n <ng-content select=\"[q-switch-error-text]\">\n @if (errorText()) {\n <div q-switch-error-text>\n {{ errorText() }}\n </div>\n }\n </ng-content>\n <ng-content select=\"[q-switch-hint]\">\n @if (hint()) {\n <div q-switch-hint>\n {{ hint() }}\n </div>\n }\n </ng-content>\n `,\n})\nexport class SwitchComponent extends SwitchRootDirective {\n /**\n * Optional error that describes the switch when the field is invalid. This\n * element is automatically associated with the switch for accessibility.\n *\n * @remarks\n * To customize the element, provide it using the directive instead:\n *\n * ```angular-html\n * <label q-switch>\n * <div q-switch-error-text>...</div>\n * </label>\n * ```\n */\n readonly errorText = input<string>()\n\n /**\n * Optional hint text displayed below the switch. Hints are hidden when the\n * switch is invalid.\n *\n * @remarks\n * To customize the element, provide it using the directive instead:\n *\n * ```angular-html\n * <label q-switch>\n * <div q-switch-hint>...</div>\n * </label>\n * ```\n */\n readonly hint = input<string>()\n\n /**\n * Optional label describing the element. Recommended. This element is\n * automatically associated with the component's input element for accessibility.\n *\n * @remarks\n * To customize the element, provide it using the directive instead:\n *\n * ```angular-html\n * <label q-switch>\n * <div q-switch-label>...</div>\n * </label>\n * ```\n */\n readonly label = input<string>()\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {NgModule} from \"@angular/core\"\n\nimport {IconDirective} from \"@qualcomm-ui/angular/icon\"\nimport {QBindDirective} from \"@qualcomm-ui/angular-core/machine\"\n\nimport {SwitchControlComponent} from \"./switch-control.component\"\nimport {SwitchErrorTextComponent} from \"./switch-error-text.component\"\nimport {SwitchHiddenInputDirective} from \"./switch-hidden-input.directive\"\nimport {SwitchHintDirective} from \"./switch-hint.directive\"\nimport {SwitchLabelDirective} from \"./switch-label.directive\"\nimport {SwitchRootDirective} from \"./switch-root.directive\"\nimport {SwitchThumbDirective} from \"./switch-thumb.directive\"\nimport {SwitchComponent} from \"./switch.component\"\n\n@NgModule({\n declarations: [\n SwitchComponent,\n SwitchRootDirective,\n SwitchControlComponent,\n SwitchLabelDirective,\n SwitchHiddenInputDirective,\n SwitchHintDirective,\n SwitchThumbDirective,\n SwitchErrorTextComponent,\n ],\n exports: [\n SwitchComponent,\n SwitchRootDirective,\n SwitchControlComponent,\n SwitchLabelDirective,\n SwitchHiddenInputDirective,\n SwitchHintDirective,\n SwitchThumbDirective,\n SwitchErrorTextComponent,\n ],\n imports: [QBindDirective, IconDirective],\n})\nexport class SwitchModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i2.SwitchThumbDirective","i1","i1.SwitchControlComponent","i2.SwitchLabelDirective","i3.SwitchHiddenInputDirective","i4.SwitchHintDirective","i5.SwitchThumbDirective","i6.SwitchErrorTextComponent"],"mappings":";;;;;;;;;;;;AAAA;AACA;AAYM,MAAO,uBAAwB,SAAQ,qBAAmC,CAAA;wGAAnE,uBAAuB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;4GAAvB,uBAAuB,EAAA,CAAA;;4FAAvB,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBADnC;;AAGM,MAAM,CACX,kBAAkB,EAClB,mBAAmB,EACnB,uBAAuB,EACxB,GAA6B,gBAAgB,CAC5C,kBAAkB,EAClB,uBAAuB;;ACrBzB;AACA;AAcM,MAAO,oBAAqB,SAAQ,wBAAwB,CAAA;IAC7C,gBAAgB,GAAG,mBAAmB,EAAE;AAE3D,IAAA,WAAA,GAAA;AACE,QAAA,KAAK,EAAE;AACP,QAAA,IAAI,CAAC,aAAa,CAAC,UAAU,CAC3B,QAAQ,CAAC,MAAM,IAAI,CAAC,gBAAgB,EAAE,CAAC,gBAAgB,EAAE,CAAC,CAC3D;IACH;wGARW,oBAAoB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAApB,oBAAoB,EAAA,YAAA,EAAA,KAAA,EAAA,QAAA,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AAY,iBArBrB,eAAe;YACf,mBAAmB;YACnB,sBAAsB;YACtB,oBAAoB;YACpB,0BAA0B;YAC1B,mBAAmB;YACnB,oBAAoB;AACpB,YAAA,wBAAwB,CAAA,EAAA,OAAA,EAAA,CAYhB,cAAc,EAAE,aAAa,aATrC,eAAe;YACf,mBAAmB;YACnB,sBAAsB;YACtB,oBAAoB;YACpB,0BAA0B;YAC1B,mBAAmB;YACnB,oBAAoB;YACpB,wBAAwB,CAAA,EAAA,CAAA;yGAIf,YAAY,EAAA,CAAA;;4FAAZ,YAAY,EAAA,UAAA,EAAA,CAAA;kBAvBxB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ,eAAe;wBACf,mBAAmB;wBACnB,sBAAsB;wBACtB,oBAAoB;wBACpB,0BAA0B;wBAC1B,mBAAmB;wBACnB,oBAAoB;wBACpB,wBAAwB;AACzB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,eAAe;wBACf,mBAAmB;wBACnB,sBAAsB;wBACtB,oBAAoB;wBACpB,0BAA0B;wBAC1B,mBAAmB;wBACnB,oBAAoB;wBACpB,wBAAwB;AACzB,qBAAA;AACD,oBAAA,OAAO,EAAE,CAAC,cAAc,EAAE,aAAa,CAAC;AACzC,iBAAA;;;ACvCD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"qualcomm-ui-angular-switch.mjs","sources":["../../src/switch/qds-switch-context.service.ts","../../src/switch/switch-thumb.directive.ts","../../src/switch/switch-control.component.ts","../../src/switch/switch-error-text.component.ts","../../src/switch/switch-hint.directive.ts","../../src/switch/switch-hidden-input.directive.ts","../../src/switch/switch-label.directive.ts","../../src/switch/switch-root.directive.ts","../../src/switch/switch.component.ts","../../src/switch/switch.module.ts","../../src/switch/qualcomm-ui-angular-switch.ts"],"sourcesContent":["// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Injectable} from \"@angular/core\"\n\nimport {\n type ApiContext,\n BaseApiContextService,\n createApiContext,\n} from \"@qualcomm-ui/angular-core/machine\"\nimport type {QdsSwitchApi} from \"@qualcomm-ui/qds-core/switch\"\n\n@Injectable()\nexport class QdsSwitchContextService extends BaseApiContextService<QdsSwitchApi> {}\n\nexport const [\n QDS_SWITCH_CONTEXT,\n useQdsSwitchContext,\n provideQdsSwitchContext,\n]: ApiContext<QdsSwitchApi> = createApiContext<QdsSwitchApi>(\n \"QdsSwitchContext\",\n QdsSwitchContextService,\n)\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, Directive} from \"@angular/core\"\n\nimport {QuiPreloadDirective} from \"@qualcomm-ui/angular/transitions\"\nimport {CoreSwitchThumbDirective} from \"@qualcomm-ui/angular-core/switch\"\n\nimport {useQdsSwitchContext} from \"./qds-switch-context.service\"\n\n@Directive({\n hostDirectives: [QuiPreloadDirective],\n selector: \"[q-switch-thumb]\",\n standalone: false,\n})\nexport class SwitchThumbDirective extends CoreSwitchThumbDirective {\n protected readonly qdsSwitchContext = useQdsSwitchContext()\n\n constructor() {\n super()\n this.trackBindings.extendWith(\n computed(() => this.qdsSwitchContext().getThumbBindings()),\n )\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Component, computed} from \"@angular/core\"\n\nimport {QuiPreloadDirective} from \"@qualcomm-ui/angular/transitions\"\nimport {CoreSwitchControlDirective} from \"@qualcomm-ui/angular-core/switch\"\n\nimport {useQdsSwitchContext} from \"./qds-switch-context.service\"\n\n@Component({\n hostDirectives: [QuiPreloadDirective],\n selector: \"[q-switch-control]\",\n standalone: false,\n template: `\n <ng-content>\n <span q-switch-thumb></span>\n </ng-content>\n `,\n})\nexport class SwitchControlComponent extends CoreSwitchControlDirective {\n protected readonly qdsSwitchContext = useQdsSwitchContext()\n\n constructor() {\n super()\n this.trackBindings.extendWith(\n computed(() => this.qdsSwitchContext().getControlBindings()),\n )\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Component, computed, input} from \"@angular/core\"\nimport {CircleAlert} from \"lucide-angular\"\n\nimport type {LucideIconOrString} from \"@qualcomm-ui/angular-core/lucide\"\nimport {CoreSwitchErrorTextDirective} from \"@qualcomm-ui/angular-core/switch\"\n\nimport {useQdsSwitchContext} from \"./qds-switch-context.service\"\n\n@Component({\n selector: \"[q-switch-error-text]\",\n standalone: false,\n template: `\n <svg [qIcon]=\"icon()!\" />\n <ng-content />\n `,\n})\nexport class SwitchErrorTextComponent extends CoreSwitchErrorTextDirective {\n /**\n * Error indicator icon.\n *\n * @default CircleAlert\n */\n readonly icon = input<LucideIconOrString>(CircleAlert)\n\n protected readonly qdsSwitchContext = useQdsSwitchContext()\n\n constructor() {\n super()\n this.trackBindings.extendWith(\n computed(() => this.qdsSwitchContext().getErrorTextBindings()),\n )\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, Directive} from \"@angular/core\"\n\nimport {CoreSwitchHintDirective} from \"@qualcomm-ui/angular-core/switch\"\n\nimport {useQdsSwitchContext} from \"./qds-switch-context.service\"\n\n/**\n * Hint text displayed below the switch.\n */\n@Directive({\n selector: \"[q-switch-hint]\",\n standalone: false,\n})\nexport class SwitchHintDirective extends CoreSwitchHintDirective {\n protected readonly qdsSwitchContext = useQdsSwitchContext()\n\n constructor() {\n super()\n this.trackBindings.extendWith(\n computed(() => this.qdsSwitchContext().getHintBindings()),\n )\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, Directive} from \"@angular/core\"\n\nimport {useForbiddenFormControlWarning} from \"@qualcomm-ui/angular-core/forms\"\nimport {CoreSwitchHiddenInputDirective} from \"@qualcomm-ui/angular-core/switch\"\n\nimport {useQdsSwitchContext} from \"./qds-switch-context.service\"\n\n@Directive({\n selector: \"[q-switch-hidden-input]\",\n standalone: false,\n})\nexport class SwitchHiddenInputDirective extends CoreSwitchHiddenInputDirective {\n protected readonly qdsSwitchContext = useQdsSwitchContext()\n\n constructor() {\n super()\n this.trackBindings.extendWith(\n computed(() => this.qdsSwitchContext().getHiddenInputBindings()),\n )\n useForbiddenFormControlWarning({\n directive: \"q-switch-hidden-input\",\n rootDirective: \"q-switch\",\n })\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, Directive} from \"@angular/core\"\n\nimport {CoreSwitchLabelDirective} from \"@qualcomm-ui/angular-core/switch\"\n\nimport {useQdsSwitchContext} from \"./qds-switch-context.service\"\n\n@Directive({\n selector: \"[q-switch-label]\",\n standalone: false,\n})\nexport class SwitchLabelDirective extends CoreSwitchLabelDirective {\n protected readonly qdsSwitchContext = useQdsSwitchContext()\n\n constructor() {\n super()\n this.trackBindings.extendWith(\n computed(() => this.qdsSwitchContext().getLabelBindings()),\n )\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, Directive, inject, input} from \"@angular/core\"\n\nimport {useQdsFieldGroupContext} from \"@qualcomm-ui/angular/field-group\"\nimport {normalizeProps} from \"@qualcomm-ui/angular-core/machine\"\nimport type {SignalifyInput} from \"@qualcomm-ui/angular-core/signals\"\nimport {\n CoreSwitchRootDirective,\n provideSwitchContext,\n} from \"@qualcomm-ui/angular-core/switch\"\nimport {\n createQdsSwitchApi,\n type QdsSwitchApiProps,\n type QdsSwitchSize,\n} from \"@qualcomm-ui/qds-core/switch\"\n\nimport {\n provideQdsSwitchContext,\n QdsSwitchContextService,\n} from \"./qds-switch-context.service\"\n\n@Directive({\n providers: [provideSwitchContext(), provideQdsSwitchContext()],\n selector: \"[q-switch-root]\",\n standalone: false,\n})\nexport class SwitchRootDirective\n extends CoreSwitchRootDirective\n implements SignalifyInput<QdsSwitchApiProps>\n{\n /**\n * Size of the component and its label.\n *\n * @default \"md\"\n */\n readonly size = input<QdsSwitchSize | undefined>()\n\n readonly qdsSwitchService = inject(QdsSwitchContextService)\n\n private readonly fieldGroupContext = useQdsFieldGroupContext({optional: true})\n\n override ngOnInit() {\n super.ngOnInit()\n\n this.qdsSwitchService.init(\n computed(() =>\n createQdsSwitchApi(\n {size: this.size() ?? this.fieldGroupContext?.().size},\n normalizeProps,\n ),\n ),\n )\n\n this.trackBindings.extendWith(\n computed(() => this.qdsSwitchService.context().getRootBindings()),\n )\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Component, input} from \"@angular/core\"\n\nimport {provideSwitchContext} from \"@qualcomm-ui/angular-core/switch\"\n\nimport {provideQdsSwitchContext} from \"./qds-switch-context.service\"\nimport {SwitchRootDirective} from \"./switch-root.directive\"\n\n@Component({\n providers: [provideSwitchContext(), provideQdsSwitchContext()],\n selector: \"[q-switch]\",\n standalone: false,\n template: `\n <ng-content select=\"[q-switch-hidden-input]\">\n <input q-switch-hidden-input />\n </ng-content>\n <ng-content select=\"[q-switch-control]\">\n <div q-switch-control>\n <div q-switch-thumb></div>\n </div>\n </ng-content>\n <ng-content select=\"[q-switch-label]\">\n @if (label()) {\n <span q-switch-label>\n {{ label() }}\n </span>\n }\n </ng-content>\n <ng-content select=\"[q-switch-error-text]\">\n @if (errorText()) {\n <div q-switch-error-text>\n {{ errorText() }}\n </div>\n }\n </ng-content>\n <ng-content select=\"[q-switch-hint]\">\n @if (hint()) {\n <div q-switch-hint>\n {{ hint() }}\n </div>\n }\n </ng-content>\n `,\n})\nexport class SwitchComponent extends SwitchRootDirective {\n /**\n * Optional error that describes the switch when the field is invalid. This\n * element is automatically associated with the switch for accessibility.\n *\n * @remarks\n * To customize the element, provide it using the directive instead:\n *\n * ```angular-html\n * <label q-switch>\n * <div q-switch-error-text>...</div>\n * </label>\n * ```\n */\n readonly errorText = input<string>()\n\n /**\n * Optional hint text displayed below the switch. Hints are hidden when the\n * switch is invalid.\n *\n * @remarks\n * To customize the element, provide it using the directive instead:\n *\n * ```angular-html\n * <label q-switch>\n * <div q-switch-hint>...</div>\n * </label>\n * ```\n */\n readonly hint = input<string>()\n\n /**\n * Optional label describing the element. Recommended. This element is\n * automatically associated with the component's input element for accessibility.\n *\n * @remarks\n * To customize the element, provide it using the directive instead:\n *\n * ```angular-html\n * <label q-switch>\n * <div q-switch-label>...</div>\n * </label>\n * ```\n */\n readonly label = input<string>()\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {NgModule} from \"@angular/core\"\n\nimport {IconDirective} from \"@qualcomm-ui/angular/icon\"\nimport {QBindDirective} from \"@qualcomm-ui/angular-core/machine\"\n\nimport {SwitchControlComponent} from \"./switch-control.component\"\nimport {SwitchErrorTextComponent} from \"./switch-error-text.component\"\nimport {SwitchHiddenInputDirective} from \"./switch-hidden-input.directive\"\nimport {SwitchHintDirective} from \"./switch-hint.directive\"\nimport {SwitchLabelDirective} from \"./switch-label.directive\"\nimport {SwitchRootDirective} from \"./switch-root.directive\"\nimport {SwitchThumbDirective} from \"./switch-thumb.directive\"\nimport {SwitchComponent} from \"./switch.component\"\n\n@NgModule({\n declarations: [\n SwitchComponent,\n SwitchRootDirective,\n SwitchControlComponent,\n SwitchLabelDirective,\n SwitchHiddenInputDirective,\n SwitchHintDirective,\n SwitchThumbDirective,\n SwitchErrorTextComponent,\n ],\n exports: [\n SwitchComponent,\n SwitchRootDirective,\n SwitchControlComponent,\n SwitchLabelDirective,\n SwitchHiddenInputDirective,\n SwitchHintDirective,\n SwitchThumbDirective,\n SwitchErrorTextComponent,\n ],\n imports: [QBindDirective, IconDirective],\n})\nexport class SwitchModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i2.SwitchThumbDirective","i1","i1.SwitchControlComponent","i2.SwitchLabelDirective","i3.SwitchHiddenInputDirective","i4.SwitchHintDirective","i5.SwitchThumbDirective","i6.SwitchErrorTextComponent"],"mappings":";;;;;;;;;;;;;AAAA;AACA;AAYM,MAAO,uBAAwB,SAAQ,qBAAmC,CAAA;wGAAnE,uBAAuB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;4GAAvB,uBAAuB,EAAA,CAAA;;4FAAvB,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBADnC;;AAGM,MAAM,CACX,kBAAkB,EAClB,mBAAmB,EACnB,uBAAuB,EACxB,GAA6B,gBAAgB,CAC5C,kBAAkB,EAClB,uBAAuB;;ACrBzB;AACA;AAcM,MAAO,oBAAqB,SAAQ,wBAAwB,CAAA;IAC7C,gBAAgB,GAAG,mBAAmB,EAAE;AAE3D,IAAA,WAAA,GAAA;AACE,QAAA,KAAK,EAAE;AACP,QAAA,IAAI,CAAC,aAAa,CAAC,UAAU,CAC3B,QAAQ,CAAC,MAAM,IAAI,CAAC,gBAAgB,EAAE,CAAC,gBAAgB,EAAE,CAAC,CAC3D;IACH;wGARW,oBAAoB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAApB,oBAAoB,EAAA,YAAA,EAAA,KAAA,EAAA,QAAA,EAAA,kBAAA,EAAA,eAAA,EAAA,IAAA,EAAA,cAAA,EAAA,CAAA,EAAA,SAAA,EAAA,EAAA,CAAA,mBAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;4FAApB,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBALhC,SAAS;AAAC,YAAA,IA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,oBAAoB;AACpB,YAAA,wBAAwB,CAAA,EAAA,OAAA,EAAA,CAYhB,cAAc,EAAE,aAAa,aATrC,eAAe;YACf,mBAAmB;YACnB,sBAAsB;YACtB,oBAAoB;YACpB,0BAA0B;YAC1B,mBAAmB;YACnB,oBAAoB;YACpB,wBAAwB,CAAA,EAAA,CAAA;yGAIf,YAAY,EAAA,CAAA;;4FAAZ,YAAY,EAAA,UAAA,EAAA,CAAA;kBAvBxB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ,eAAe;wBACf,mBAAmB;wBACnB,sBAAsB;wBACtB,oBAAoB;wBACpB,0BAA0B;wBAC1B,mBAAmB;wBACnB,oBAAoB;wBACpB,wBAAwB;AACzB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,eAAe;wBACf,mBAAmB;wBACnB,sBAAsB;wBACtB,oBAAoB;wBACpB,0BAA0B;wBAC1B,mBAAmB;wBACnB,oBAAoB;wBACpB,wBAAwB;AACzB,qBAAA;AACD,oBAAA,OAAO,EAAE,CAAC,cAAc,EAAE,aAAa,CAAC;AACzC,iBAAA;;;ACvCD;;AAEG;;;;"}
|
|
@@ -162,7 +162,7 @@ class ToastIconDirective {
|
|
|
162
162
|
<svg size="lg" [qIcon]="icon()!" />
|
|
163
163
|
}
|
|
164
164
|
</ng-content>
|
|
165
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i1.IconDirective, selector: "svg[qIcon]", inputs: ["qIcon", "size", "viewBox", "xmlns", "height", "width"] }, { kind: "component", type: i2$1.ProgressRingDirective, selector: "[q-progress-ring]", inputs: ["errorText", "label"] }] });
|
|
165
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i1.IconDirective, selector: "svg[qIcon]", inputs: ["qIcon", "size", "viewBox", "xmlns", "height", "width"] }, { kind: "component", type: i2$1.ProgressRingDirective, selector: "[q-progress-ring]", inputs: ["errorText", "label", "valueText"] }] });
|
|
166
166
|
}
|
|
167
167
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ToastIconDirective, decorators: [{
|
|
168
168
|
type: Component,
|