@qualcomm-ui/angular 1.19.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/qualcomm-ui-angular-accordion.mjs +45 -47
- package/fesm2022/qualcomm-ui-angular-accordion.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-action-group.mjs +3 -3
- package/fesm2022/qualcomm-ui-angular-action-group.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-alert-banner.mjs +38 -40
- package/fesm2022/qualcomm-ui-angular-alert-banner.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-avatar.mjs +24 -24
- package/fesm2022/qualcomm-ui-angular-avatar.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-badge.mjs +35 -47
- package/fesm2022/qualcomm-ui-angular-badge.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-breadcrumbs.mjs +29 -31
- package/fesm2022/qualcomm-ui-angular-breadcrumbs.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-button.mjs +48 -54
- package/fesm2022/qualcomm-ui-angular-button.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-checkbox-group.mjs +10 -10
- package/fesm2022/qualcomm-ui-angular-checkbox-group.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-checkbox.mjs +36 -36
- package/fesm2022/qualcomm-ui-angular-checkbox.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-checkmark.mjs +5 -7
- package/fesm2022/qualcomm-ui-angular-checkmark.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-collapsible.mjs +13 -13
- package/fesm2022/qualcomm-ui-angular-collapsible.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-combobox.mjs +97 -107
- package/fesm2022/qualcomm-ui-angular-combobox.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-dialog.mjs +57 -61
- package/fesm2022/qualcomm-ui-angular-dialog.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-divider.mjs +6 -6
- package/fesm2022/qualcomm-ui-angular-divider.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-drawer.mjs +53 -53
- package/fesm2022/qualcomm-ui-angular-drawer.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-field-group.mjs +28 -32
- package/fesm2022/qualcomm-ui-angular-field-group.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-header-bar.mjs +52 -54
- package/fesm2022/qualcomm-ui-angular-header-bar.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-icon.mjs +19 -21
- package/fesm2022/qualcomm-ui-angular-icon.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-inline-icon-button.mjs +7 -7
- package/fesm2022/qualcomm-ui-angular-inline-icon-button.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-inline-notification.mjs +35 -37
- package/fesm2022/qualcomm-ui-angular-inline-notification.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-input.mjs +18 -18
- package/fesm2022/qualcomm-ui-angular-input.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-kbd.mjs +3 -3
- package/fesm2022/qualcomm-ui-angular-kbd.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-link.mjs +10 -12
- package/fesm2022/qualcomm-ui-angular-link.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-menu.mjs +68 -68
- package/fesm2022/qualcomm-ui-angular-menu.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-number-input.mjs +54 -54
- package/fesm2022/qualcomm-ui-angular-number-input.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-pagination.mjs +42 -42
- package/fesm2022/qualcomm-ui-angular-pagination.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-password-input.mjs +48 -50
- package/fesm2022/qualcomm-ui-angular-password-input.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-popover.mjs +48 -52
- package/fesm2022/qualcomm-ui-angular-popover.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-progress-ring.mjs +43 -43
- package/fesm2022/qualcomm-ui-angular-progress-ring.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-progress.mjs +42 -42
- package/fesm2022/qualcomm-ui-angular-progress.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-radio.mjs +47 -49
- package/fesm2022/qualcomm-ui-angular-radio.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-segmented-control.mjs +28 -28
- package/fesm2022/qualcomm-ui-angular-segmented-control.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-select.mjs +76 -82
- package/fesm2022/qualcomm-ui-angular-select.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-side-nav.mjs +103 -105
- package/fesm2022/qualcomm-ui-angular-side-nav.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-slider.mjs +85 -99
- package/fesm2022/qualcomm-ui-angular-slider.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-switch-group.mjs +10 -10
- package/fesm2022/qualcomm-ui-angular-switch-group.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-switch.mjs +36 -36
- package/fesm2022/qualcomm-ui-angular-switch.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-table.mjs +136 -170
- package/fesm2022/qualcomm-ui-angular-table.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-tabs.mjs +37 -39
- package/fesm2022/qualcomm-ui-angular-tabs.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-tag.mjs +14 -16
- package/fesm2022/qualcomm-ui-angular-tag.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-text-area.mjs +41 -47
- package/fesm2022/qualcomm-ui-angular-text-area.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-text-input.mjs +42 -44
- package/fesm2022/qualcomm-ui-angular-text-input.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-theme.mjs +5 -5
- package/fesm2022/qualcomm-ui-angular-theme.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-toast.mjs +43 -43
- package/fesm2022/qualcomm-ui-angular-toast.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-tooltip.mjs +33 -37
- package/fesm2022/qualcomm-ui-angular-tooltip.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-transitions.mjs +4 -4
- package/fesm2022/qualcomm-ui-angular-transitions.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-tree.mjs +79 -79
- package/fesm2022/qualcomm-ui-angular-tree.mjs.map +1 -1
- package/package.json +64 -64
- package/{accordion/index.d.ts → types/qualcomm-ui-angular-accordion.d.ts} +1 -1
- package/types/qualcomm-ui-angular-accordion.d.ts.map +1 -0
- package/{action-group/index.d.ts → types/qualcomm-ui-angular-action-group.d.ts} +1 -1
- package/types/qualcomm-ui-angular-action-group.d.ts.map +1 -0
- package/{alert-banner/index.d.ts → types/qualcomm-ui-angular-alert-banner.d.ts} +1 -1
- package/types/qualcomm-ui-angular-alert-banner.d.ts.map +1 -0
- package/{avatar/index.d.ts → types/qualcomm-ui-angular-avatar.d.ts} +1 -1
- package/types/qualcomm-ui-angular-avatar.d.ts.map +1 -0
- package/{badge/index.d.ts → types/qualcomm-ui-angular-badge.d.ts} +1 -1
- package/types/qualcomm-ui-angular-badge.d.ts.map +1 -0
- package/{breadcrumbs/index.d.ts → types/qualcomm-ui-angular-breadcrumbs.d.ts} +1 -1
- package/types/qualcomm-ui-angular-breadcrumbs.d.ts.map +1 -0
- package/{button/index.d.ts → types/qualcomm-ui-angular-button.d.ts} +1 -1
- package/types/qualcomm-ui-angular-button.d.ts.map +1 -0
- package/{checkbox-group/index.d.ts → types/qualcomm-ui-angular-checkbox-group.d.ts} +1 -1
- package/types/qualcomm-ui-angular-checkbox-group.d.ts.map +1 -0
- package/{checkbox/index.d.ts → types/qualcomm-ui-angular-checkbox.d.ts} +1 -1
- package/types/qualcomm-ui-angular-checkbox.d.ts.map +1 -0
- package/{checkmark/index.d.ts → types/qualcomm-ui-angular-checkmark.d.ts} +1 -1
- package/types/qualcomm-ui-angular-checkmark.d.ts.map +1 -0
- package/{collapsible/index.d.ts → types/qualcomm-ui-angular-collapsible.d.ts} +1 -1
- package/types/qualcomm-ui-angular-collapsible.d.ts.map +1 -0
- package/{combobox/index.d.ts → types/qualcomm-ui-angular-combobox.d.ts} +1 -1
- package/types/qualcomm-ui-angular-combobox.d.ts.map +1 -0
- package/{dialog/index.d.ts → types/qualcomm-ui-angular-dialog.d.ts} +1 -1
- package/types/qualcomm-ui-angular-dialog.d.ts.map +1 -0
- package/{divider/index.d.ts → types/qualcomm-ui-angular-divider.d.ts} +1 -1
- package/types/qualcomm-ui-angular-divider.d.ts.map +1 -0
- package/{drawer/index.d.ts → types/qualcomm-ui-angular-drawer.d.ts} +1 -1
- package/types/qualcomm-ui-angular-drawer.d.ts.map +1 -0
- package/{field-group/index.d.ts → types/qualcomm-ui-angular-field-group.d.ts} +1 -1
- package/types/qualcomm-ui-angular-field-group.d.ts.map +1 -0
- package/types/qualcomm-ui-angular-footer.d.ts +3 -0
- package/types/qualcomm-ui-angular-footer.d.ts.map +1 -0
- package/{header-bar/index.d.ts → types/qualcomm-ui-angular-header-bar.d.ts} +1 -1
- package/types/qualcomm-ui-angular-header-bar.d.ts.map +1 -0
- package/types/qualcomm-ui-angular-header.d.ts +3 -0
- package/types/qualcomm-ui-angular-header.d.ts.map +1 -0
- package/{icon/index.d.ts → types/qualcomm-ui-angular-icon.d.ts} +2 -2
- package/types/qualcomm-ui-angular-icon.d.ts.map +1 -0
- package/{inline-icon-button/index.d.ts → types/qualcomm-ui-angular-inline-icon-button.d.ts} +1 -1
- package/types/qualcomm-ui-angular-inline-icon-button.d.ts.map +1 -0
- package/{inline-notification/index.d.ts → types/qualcomm-ui-angular-inline-notification.d.ts} +1 -1
- package/types/qualcomm-ui-angular-inline-notification.d.ts.map +1 -0
- package/{input/index.d.ts → types/qualcomm-ui-angular-input.d.ts} +2 -2
- package/types/qualcomm-ui-angular-input.d.ts.map +1 -0
- package/{kbd/index.d.ts → types/qualcomm-ui-angular-kbd.d.ts} +1 -1
- package/types/qualcomm-ui-angular-kbd.d.ts.map +1 -0
- package/{link/index.d.ts → types/qualcomm-ui-angular-link.d.ts} +1 -1
- package/types/qualcomm-ui-angular-link.d.ts.map +1 -0
- package/{menu/index.d.ts → types/qualcomm-ui-angular-menu.d.ts} +1 -1
- package/types/qualcomm-ui-angular-menu.d.ts.map +1 -0
- package/{number-input/index.d.ts → types/qualcomm-ui-angular-number-input.d.ts} +1 -1
- package/types/qualcomm-ui-angular-number-input.d.ts.map +1 -0
- package/{pagination/index.d.ts → types/qualcomm-ui-angular-pagination.d.ts} +1 -1
- package/types/qualcomm-ui-angular-pagination.d.ts.map +1 -0
- package/{password-input/index.d.ts → types/qualcomm-ui-angular-password-input.d.ts} +1 -1
- package/types/qualcomm-ui-angular-password-input.d.ts.map +1 -0
- package/{popover/index.d.ts → types/qualcomm-ui-angular-popover.d.ts} +1 -1
- package/types/qualcomm-ui-angular-popover.d.ts.map +1 -0
- package/{progress-ring/index.d.ts → types/qualcomm-ui-angular-progress-ring.d.ts} +1 -1
- package/types/qualcomm-ui-angular-progress-ring.d.ts.map +1 -0
- package/{progress/index.d.ts → types/qualcomm-ui-angular-progress.d.ts} +1 -1
- package/types/qualcomm-ui-angular-progress.d.ts.map +1 -0
- package/{radio/index.d.ts → types/qualcomm-ui-angular-radio.d.ts} +1 -1
- package/types/qualcomm-ui-angular-radio.d.ts.map +1 -0
- package/{segmented-control/index.d.ts → types/qualcomm-ui-angular-segmented-control.d.ts} +1 -1
- package/types/qualcomm-ui-angular-segmented-control.d.ts.map +1 -0
- package/{select/index.d.ts → types/qualcomm-ui-angular-select.d.ts} +1 -1
- package/types/qualcomm-ui-angular-select.d.ts.map +1 -0
- package/{side-nav/index.d.ts → types/qualcomm-ui-angular-side-nav.d.ts} +1 -1
- package/types/qualcomm-ui-angular-side-nav.d.ts.map +1 -0
- package/{slider/index.d.ts → types/qualcomm-ui-angular-slider.d.ts} +1 -1
- package/types/qualcomm-ui-angular-slider.d.ts.map +1 -0
- package/{switch-group/index.d.ts → types/qualcomm-ui-angular-switch-group.d.ts} +1 -1
- package/types/qualcomm-ui-angular-switch-group.d.ts.map +1 -0
- package/{switch/index.d.ts → types/qualcomm-ui-angular-switch.d.ts} +1 -1
- package/types/qualcomm-ui-angular-switch.d.ts.map +1 -0
- package/{table/index.d.ts → types/qualcomm-ui-angular-table.d.ts} +1 -1
- package/types/qualcomm-ui-angular-table.d.ts.map +1 -0
- package/{tabs/index.d.ts → types/qualcomm-ui-angular-tabs.d.ts} +1 -1
- package/types/qualcomm-ui-angular-tabs.d.ts.map +1 -0
- package/{tag/index.d.ts → types/qualcomm-ui-angular-tag.d.ts} +1 -1
- package/types/qualcomm-ui-angular-tag.d.ts.map +1 -0
- package/{text-area/index.d.ts → types/qualcomm-ui-angular-text-area.d.ts} +1 -1
- package/types/qualcomm-ui-angular-text-area.d.ts.map +1 -0
- package/{text-input/index.d.ts → types/qualcomm-ui-angular-text-input.d.ts} +1 -1
- package/types/qualcomm-ui-angular-text-input.d.ts.map +1 -0
- package/{theme/index.d.ts → types/qualcomm-ui-angular-theme.d.ts} +1 -1
- package/types/qualcomm-ui-angular-theme.d.ts.map +1 -0
- package/{toast/index.d.ts → types/qualcomm-ui-angular-toast.d.ts} +2 -2
- package/types/qualcomm-ui-angular-toast.d.ts.map +1 -0
- package/{tooltip/index.d.ts → types/qualcomm-ui-angular-tooltip.d.ts} +1 -1
- package/types/qualcomm-ui-angular-tooltip.d.ts.map +1 -0
- package/{transitions/index.d.ts → types/qualcomm-ui-angular-transitions.d.ts} +1 -1
- package/types/qualcomm-ui-angular-transitions.d.ts.map +1 -0
- package/{tree/index.d.ts → types/qualcomm-ui-angular-tree.d.ts} +1 -1
- package/types/qualcomm-ui-angular-tree.d.ts.map +1 -0
- package/types/qualcomm-ui-angular.d.ts +3 -0
- package/types/qualcomm-ui-angular.d.ts.map +1 -0
- package/accordion/index.d.ts.map +0 -1
- package/action-group/index.d.ts.map +0 -1
- package/alert-banner/index.d.ts.map +0 -1
- package/avatar/index.d.ts.map +0 -1
- package/badge/index.d.ts.map +0 -1
- package/breadcrumbs/index.d.ts.map +0 -1
- package/button/index.d.ts.map +0 -1
- package/checkbox/index.d.ts.map +0 -1
- package/checkbox-group/index.d.ts.map +0 -1
- package/checkmark/index.d.ts.map +0 -1
- package/collapsible/index.d.ts.map +0 -1
- package/combobox/index.d.ts.map +0 -1
- package/dialog/index.d.ts.map +0 -1
- package/divider/index.d.ts.map +0 -1
- package/drawer/index.d.ts.map +0 -1
- package/field-group/index.d.ts.map +0 -1
- package/footer/index.d.ts +0 -3
- package/footer/index.d.ts.map +0 -1
- package/header/index.d.ts +0 -3
- package/header/index.d.ts.map +0 -1
- package/header-bar/index.d.ts.map +0 -1
- package/icon/index.d.ts.map +0 -1
- package/index.d.ts +0 -3
- package/index.d.ts.map +0 -1
- package/inline-icon-button/index.d.ts.map +0 -1
- package/inline-notification/index.d.ts.map +0 -1
- package/input/index.d.ts.map +0 -1
- package/kbd/index.d.ts.map +0 -1
- package/link/index.d.ts.map +0 -1
- package/menu/index.d.ts.map +0 -1
- package/number-input/index.d.ts.map +0 -1
- package/pagination/index.d.ts.map +0 -1
- package/password-input/index.d.ts.map +0 -1
- package/popover/index.d.ts.map +0 -1
- package/progress/index.d.ts.map +0 -1
- package/progress-ring/index.d.ts.map +0 -1
- package/radio/index.d.ts.map +0 -1
- package/segmented-control/index.d.ts.map +0 -1
- package/select/index.d.ts.map +0 -1
- package/side-nav/index.d.ts.map +0 -1
- package/slider/index.d.ts.map +0 -1
- package/switch/index.d.ts.map +0 -1
- package/switch-group/index.d.ts.map +0 -1
- package/table/index.d.ts.map +0 -1
- package/tabs/index.d.ts.map +0 -1
- package/tag/index.d.ts.map +0 -1
- package/text-area/index.d.ts.map +0 -1
- package/text-input/index.d.ts.map +0 -1
- package/theme/index.d.ts.map +0 -1
- package/toast/index.d.ts.map +0 -1
- package/tooltip/index.d.ts.map +0 -1
- package/transitions/index.d.ts.map +0 -1
- package/tree/index.d.ts.map +0 -1
|
@@ -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,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;4GAAnC,mCAAmC,EAAA,CAAA;;4FAAnC,mCAAmC,EAAA,UAAA,EAAA,CAAA;kBAD/C;;AAGM,MAAM,CACX,+BAA+B,EAC/B,+BAA+B,EAC/B,mCAAmC,EACpC,GAAmC,gBAAgB,CAClD,8BAA8B,EAC9B,mCAAmC;;ACrBrC;AACA;AAYM,MAAO,iCAAkC,SAAQ,qCAAqC,CAAA;IACvE,UAAU,GAAG,+BAA+B,EAAE;AAEjE,IAAA,WAAA,GAAA;AACE,QAAA,KAAK,EAAE;AACP,QAAA,IAAI,CAAC,aAAa,CAAC,UAAU,CAC3B,QAAQ,CAAC,MAAM,IAAI,CAAC,UAAU,EAAE,CAAC,iBAAiB,EAAE,CAAC,CACtD;IACH;wGARW,iCAAiC,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAAjC,iCAAiC,EAAA,YAAA,EAAA,KAAA,EAAA,QAAA,EAAA,gCAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;4FAAjC,iCAAiC,EAAA,UAAA,EAAA,CAAA;kBAJ7C,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,gCAAgC;AAC1C,oBAAA,UAAU,EAAE,KAAK;AAClB,iBAAA;;;ACZD;AACA;AAwBM,MAAO,sCAAuC,SAAQ,2CAA2C,CAAA;IAClF,mBAAmB,GAAG,sBAAsB,C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2B;wBAC3B,+BAA+B;wBAC/B,iCAAiC;wBACjC,sCAAsC;wBACtC,sCAAsC;wBACtC,+BAA+B;wBAC/B,gCAAgC;AACjC,qBAAA;AACD,oBAAA,OAAO,EAAE,CAAC,aAAa,EAAE,cAAc,EAAE,kBAAkB,CAAC;AAC7D,iBAAA;;;ACrCD;;AAEG;;;;"}
|
|
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;uGAArF,mCAAmC,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;2GAAnC,mCAAmC,EAAA,CAAA;;2FAAnC,mCAAmC,EAAA,UAAA,EAAA,CAAA;kBAD/C;;AAGM,MAAM,CACX,+BAA+B,EAC/B,+BAA+B,EAC/B,mCAAmC,EACpC,GAAmC,gBAAgB,CAClD,8BAA8B,EAC9B,mCAAmC;;ACrBrC;AACA;AAYM,MAAO,iCAAkC,SAAQ,qCAAqC,CAAA;IACvE,UAAU,GAAG,+BAA+B,EAAE;AAEjE,IAAA,WAAA,GAAA;AACE,QAAA,KAAK,EAAE;AACP,QAAA,IAAI,CAAC,aAAa,CAAC,UAAU,CAC3B,QAAQ,CAAC,MAAM,IAAI,CAAC,UAAU,EAAE,CAAC,iBAAiB,EAAE,CAAC,CACtD;IACH;uGARW,iCAAiC,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAAjC,iCAAiC,EAAA,YAAA,EAAA,KAAA,EAAA,QAAA,EAAA,gCAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAAjC,iCAAiC,EAAA,UAAA,EAAA,CAAA;kBAJ7C,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,gCAAgC;AAC1C,oBAAA,UAAU,EAAE,KAAK;AAClB,iBAAA;;;ACZD;AACA;AAwBM,M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BAC3B,+BAA+B;wBAC/B,iCAAiC;wBACjC,sCAAsC;wBACtC,sCAAsC;wBACtC,+BAA+B;wBAC/B,gCAAgC;AACjC,qBAAA;AACD,oBAAA,OAAO,EAAE,CAAC,aAAa,EAAE,cAAc,EAAE,kBAAkB,CAAC;AAC7D,iBAAA;;;ACrCD;;AAEG;;;;"}
|
|
@@ -10,10 +10,10 @@ import { mergeProps } from '@qualcomm-ui/utils/merge-props';
|
|
|
10
10
|
// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
|
|
11
11
|
// SPDX-License-Identifier: BSD-3-Clause-Clear
|
|
12
12
|
class QdsInputContextService extends BaseApiContextService {
|
|
13
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
14
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
13
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: QdsInputContextService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
14
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: QdsInputContextService });
|
|
15
15
|
}
|
|
16
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
16
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: QdsInputContextService, decorators: [{
|
|
17
17
|
type: Injectable
|
|
18
18
|
}] });
|
|
19
19
|
const [QDS_INPUT_CONTEXT, useQdsInputContext, provideQdsInputContext,] = createApiContext("QdsInputContext", QdsInputContextService);
|
|
@@ -30,7 +30,7 @@ class ErrorTextComponent {
|
|
|
30
30
|
/**
|
|
31
31
|
* Error indicator icon.
|
|
32
32
|
*/
|
|
33
|
-
icon = input(...(ngDevMode ? [undefined, { debugName: "icon" }] : []));
|
|
33
|
+
icon = input(...(ngDevMode ? [undefined, { debugName: "icon" }] : /* istanbul ignore next */ []));
|
|
34
34
|
inputClasses = inputClasses;
|
|
35
35
|
qdsInputContext = useQdsInputContext({ optional: true });
|
|
36
36
|
trackBindings = useTrackBindings(() => {
|
|
@@ -40,15 +40,15 @@ class ErrorTextComponent {
|
|
|
40
40
|
ngOnInit() {
|
|
41
41
|
this.trackBindings();
|
|
42
42
|
}
|
|
43
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
44
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
43
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: ErrorTextComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
44
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.2", type: ErrorTextComponent, isStandalone: true, selector: "[q-error-text]", inputs: { icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "inputClasses.errorText" } }, ngImport: i0, template: `
|
|
45
45
|
@if (icon()) {
|
|
46
46
|
<svg size="xs" [qIcon]="icon()!" />
|
|
47
47
|
}
|
|
48
48
|
<ng-content />
|
|
49
49
|
`, isInline: true, dependencies: [{ kind: "directive", type: IconDirective, selector: "svg[qIcon]", inputs: ["qIcon", "size", "viewBox", "xmlns", "height", "width"] }] });
|
|
50
50
|
}
|
|
51
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
51
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: ErrorTextComponent, decorators: [{
|
|
52
52
|
type: Component,
|
|
53
53
|
args: [{
|
|
54
54
|
host: {
|
|
@@ -82,10 +82,10 @@ class HintDirective {
|
|
|
82
82
|
ngOnInit() {
|
|
83
83
|
this.trackBindings();
|
|
84
84
|
}
|
|
85
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
86
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
85
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: HintDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
86
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.2", type: HintDirective, isStandalone: true, selector: "[q-hint]", host: { properties: { "class": "inputClasses.hint" } }, ngImport: i0 });
|
|
87
87
|
}
|
|
88
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
88
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: HintDirective, decorators: [{
|
|
89
89
|
type: Directive,
|
|
90
90
|
args: [{
|
|
91
91
|
host: {
|
|
@@ -98,7 +98,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
98
98
|
// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
|
|
99
99
|
// SPDX-License-Identifier: BSD-3-Clause-Clear
|
|
100
100
|
class InputEndIconComponent {
|
|
101
|
-
icon = input(...(ngDevMode ? [undefined, { debugName: "icon" }] : []));
|
|
101
|
+
icon = input(...(ngDevMode ? [undefined, { debugName: "icon" }] : /* istanbul ignore next */ []));
|
|
102
102
|
context = useQdsInputContext({ optional: true });
|
|
103
103
|
trackBindings = useTrackBindings(() => {
|
|
104
104
|
const context = this.context?.();
|
|
@@ -107,8 +107,8 @@ class InputEndIconComponent {
|
|
|
107
107
|
ngOnInit() {
|
|
108
108
|
this.trackBindings();
|
|
109
109
|
}
|
|
110
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
111
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
110
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: InputEndIconComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
111
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.2", type: InputEndIconComponent, isStandalone: true, selector: "[q-input-end-icon]", inputs: { icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
112
112
|
<ng-content>
|
|
113
113
|
@if (icon()) {
|
|
114
114
|
<svg [qIcon]="icon()!"></svg>
|
|
@@ -116,7 +116,7 @@ class InputEndIconComponent {
|
|
|
116
116
|
</ng-content>
|
|
117
117
|
`, isInline: true, dependencies: [{ kind: "directive", type: IconDirective, selector: "svg[qIcon]", inputs: ["qIcon", "size", "viewBox", "xmlns", "height", "width"] }] });
|
|
118
118
|
}
|
|
119
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
119
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: InputEndIconComponent, decorators: [{
|
|
120
120
|
type: Component,
|
|
121
121
|
args: [{
|
|
122
122
|
imports: [IconDirective],
|
|
@@ -135,7 +135,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
135
135
|
// SPDX-License-Identifier: BSD-3-Clause-Clear
|
|
136
136
|
class InputStartIconComponent {
|
|
137
137
|
inputClasses = inputClasses;
|
|
138
|
-
icon = input(...(ngDevMode ? [undefined, { debugName: "icon" }] : []));
|
|
138
|
+
icon = input(...(ngDevMode ? [undefined, { debugName: "icon" }] : /* istanbul ignore next */ []));
|
|
139
139
|
context = useQdsInputContext({ optional: true });
|
|
140
140
|
trackBindings = useTrackBindings(() => {
|
|
141
141
|
const context = this.context?.();
|
|
@@ -144,8 +144,8 @@ class InputStartIconComponent {
|
|
|
144
144
|
ngOnInit() {
|
|
145
145
|
this.trackBindings();
|
|
146
146
|
}
|
|
147
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
148
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
147
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: InputStartIconComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
148
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.2", type: InputStartIconComponent, isStandalone: true, selector: "[q-input-start-icon]", inputs: { icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
149
149
|
<ng-content>
|
|
150
150
|
@if (icon()) {
|
|
151
151
|
<svg [qIcon]="icon()!"></svg>
|
|
@@ -153,7 +153,7 @@ class InputStartIconComponent {
|
|
|
153
153
|
</ng-content>
|
|
154
154
|
`, isInline: true, dependencies: [{ kind: "directive", type: IconDirective, selector: "svg[qIcon]", inputs: ["qIcon", "size", "viewBox", "xmlns", "height", "width"] }] });
|
|
155
155
|
}
|
|
156
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
156
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: InputStartIconComponent, decorators: [{
|
|
157
157
|
type: Component,
|
|
158
158
|
args: [{
|
|
159
159
|
imports: [IconDirective],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"qualcomm-ui-angular-input.mjs","sources":["../../src/input/qds-input-context.service.ts","../../src/input/error-text.component.ts","../../src/input/hint.directive.ts","../../src/input/input-end-icon.component.ts","../../src/input/input-start-icon.component.ts","../../src/input/use-input-bindings.ts","../../src/input/qualcomm-ui-angular-input.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 type {LucideIconOrString} from \"@qualcomm-ui/angular-core/lucide\"\nimport {\n type ApiContext,\n BaseApiContextService,\n createApiContext,\n} from \"@qualcomm-ui/angular-core/machine\"\nimport type {QdsInputApi, QdsInputApiProps} from \"@qualcomm-ui/qds-core/input\"\n\nexport interface QdsAngularInputApiProps\n extends QdsInputApiProps<LucideIconOrString> {}\n\nexport interface QdsAngularInputApi extends QdsInputApi<LucideIconOrString> {}\n\n@Injectable()\nexport class QdsInputContextService extends BaseApiContextService<\n QdsInputApi<LucideIconOrString>\n> {}\n\nexport const [\n QDS_INPUT_CONTEXT,\n useQdsInputContext,\n provideQdsInputContext,\n]: ApiContext<QdsInputApi<LucideIconOrString>> = createApiContext<\n QdsInputApi<LucideIconOrString>\n>(\"QdsInputContext\", QdsInputContextService)\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Component, input, type OnInit} from \"@angular/core\"\n\nimport {IconDirective} from \"@qualcomm-ui/angular/icon\"\nimport {type LucideIcon} from \"@qualcomm-ui/angular-core/lucide\"\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\nimport {inputClasses} from \"@qualcomm-ui/qds-core/input\"\n\nimport {useQdsInputContext} from \"./qds-input-context.service\"\n\n/**\n * Simple error text directive. Not bound to any form or component context.\n *\n * @remarks if using a specific input component, use that component's error\n * text directive instead of this one.\n */\n@Component({\n host: {\n \"[class]\": \"inputClasses.errorText\",\n },\n imports: [IconDirective],\n selector: \"[q-error-text]\",\n template: `\n @if (icon()) {\n <svg size=\"xs\" [qIcon]=\"icon()!\" />\n }\n <ng-content />\n `,\n})\nexport class ErrorTextComponent implements OnInit {\n /**\n * Error indicator icon.\n */\n readonly icon = input<LucideIcon | string>()\n\n protected inputClasses = inputClasses\n\n protected qdsInputContext = useQdsInputContext({optional: true})\n\n protected trackBindings = useTrackBindings(() => {\n const context = this.qdsInputContext?.()\n return context?.getErrorTextBindings?.() || {}\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 {Directive, type OnInit} from \"@angular/core\"\n\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\nimport {inputClasses} from \"@qualcomm-ui/qds-core/input\"\n\nimport {useQdsInputContext} from \"./qds-input-context.service\"\n\n/**\n * Simple hint directive that applies hint styles. Not bound to any form or component context.\n * @remarks if using a specific input component, use that component's hint directive instead of\n * this one.\n */\n@Directive({\n host: {\n \"[class]\": \"inputClasses.hint\",\n },\n selector: \"[q-hint]\",\n})\nexport class HintDirective implements OnInit {\n protected inputClasses = inputClasses\n\n protected qdsInputContext = useQdsInputContext({optional: true})\n\n protected trackBindings = useTrackBindings(() => {\n const context = this.qdsInputContext?.()\n return context?.getHintBindings?.() || {}\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 {Component, input, type OnInit} from \"@angular/core\"\n\nimport {IconDirective} from \"@qualcomm-ui/angular/icon\"\nimport type {LucideIcon} from \"@qualcomm-ui/angular-core/lucide\"\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\n\nimport {useQdsInputContext} from \"./qds-input-context.service\"\n\n@Component({\n imports: [IconDirective],\n selector: \"[q-input-end-icon]\",\n template: `\n <ng-content>\n @if (icon()) {\n <svg [qIcon]=\"icon()!\"></svg>\n }\n </ng-content>\n `,\n})\nexport class InputEndIconComponent implements OnInit {\n readonly icon = input<LucideIcon | string>()\n\n context = useQdsInputContext({optional: true})\n\n trackBindings = useTrackBindings(() => {\n const context = this.context?.()\n return context?.getEndIconBindings?.() || {}\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 {Component, input, type OnInit} from \"@angular/core\"\n\nimport {IconDirective} from \"@qualcomm-ui/angular/icon\"\nimport type {LucideIcon} from \"@qualcomm-ui/angular-core/lucide\"\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\nimport {inputClasses} from \"@qualcomm-ui/qds-core/input\"\n\nimport {useQdsInputContext} from \"./qds-input-context.service\"\n\n@Component({\n imports: [IconDirective],\n selector: \"[q-input-start-icon]\",\n template: `\n <ng-content>\n @if (icon()) {\n <svg [qIcon]=\"icon()!\"></svg>\n }\n </ng-content>\n `,\n})\nexport class InputStartIconComponent implements OnInit {\n readonly inputClasses = inputClasses\n\n readonly icon = input<LucideIcon | string>()\n\n context = useQdsInputContext({optional: true})\n\n trackBindings = useTrackBindings(() => {\n const context = this.context?.()\n return context?.getStartIconBindings?.() || {}\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, type Signal} from \"@angular/core\"\n\nimport {useInlineIconButtonApi} from \"@qualcomm-ui/angular/inline-icon-button\"\nimport type {LucideIconOrString} from \"@qualcomm-ui/angular-core/lucide\"\nimport type {\n QdsInlineIconButtonIconBindings,\n QdsInlineIconButtonRootBindings,\n} from \"@qualcomm-ui/qds-core/inline-icon-button\"\nimport type {\n QdsInputClearTriggerBindings,\n QdsInputErrorIndicatorBindings,\n QdsInputErrorTextBindings,\n QdsInputGroupBindings,\n QdsInputHintBindings,\n QdsInputInputBindings,\n} from \"@qualcomm-ui/qds-core/input\"\nimport {type MergeProps, mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nimport {useQdsInputContext} from \"./qds-input-context.service\"\n\nexport interface UseInputInputReturn {\n getBindings: Signal<QdsInputInputBindings>\n}\n\n/**\n * A composable function that provides bindings for implementing the input on\n * input components. It assumes that it is used within the context of the\n * useQdsInputContext hook.\n */\nexport function useInputInput(): UseInputInputReturn {\n const qdsContext = useQdsInputContext()\n return {\n getBindings: computed(() => qdsContext().getInputBindings()),\n }\n}\n\nexport interface UseInputClearTriggerReturn {\n getIconBindings: Signal<QdsInlineIconButtonIconBindings>\n getRootBindings: Signal<\n MergeProps<[QdsInlineIconButtonRootBindings, QdsInputClearTriggerBindings]>\n >\n}\n\n/**\n * A composable function that provides bindings for implementing a clear trigger on\n * input components. It assumes that it is used within the context of the\n * useQdsInputContext hook.\n */\nexport function useInputClearTrigger(): UseInputClearTriggerReturn {\n const qdsContext = useQdsInputContext()\n const buttonApi = useInlineIconButtonApi({\n emphasis: \"neutral\",\n size: computed(() => qdsContext().size),\n variant: \"scale\",\n })\n\n return {\n getIconBindings: computed(() => buttonApi().getIconBindings()),\n getRootBindings: computed(() =>\n mergeProps(\n buttonApi().getRootBindings(),\n qdsContext().getClearTriggerBindings(),\n ),\n ),\n }\n}\n\nexport interface UseInputErrorIndicatorReturn {\n getBindings: Signal<QdsInputErrorIndicatorBindings>\n}\n\n/**\n * A composable function that provides bindings for implementing error indicators\n * on input components. It assumes that it is used within the context of the\n * useQdsInputContext hook.\n */\nexport function useInputErrorIndicator(): UseInputErrorIndicatorReturn {\n const qdsContext = useQdsInputContext()\n return {\n getBindings: computed(() => qdsContext().getErrorIndicatorBindings()),\n }\n}\n\nexport interface UseInputErrorTextReturn {\n getBindings: Signal<QdsInputErrorTextBindings>\n}\n\n/**\n * A composable function that provides bindings for implementing error text on\n * input components. It assumes that it is used within the context of the\n * useQdsInputContext hook.\n */\nexport function useInputErrorText(): UseInputErrorTextReturn {\n const qdsContext = useQdsInputContext()\n return {\n getBindings: computed(() => qdsContext().getErrorTextBindings()),\n }\n}\n\nexport interface UseInputGroupReturn\n extends Signal<{\n endIcon?: LucideIconOrString\n getBindings: () => QdsInputGroupBindings\n startIcon?: LucideIconOrString\n }> {}\n\n/**\n * A composable function that provides bindings for implementing the input group on\n * input components. It assumes that it is used within the context of the\n * useQdsInputContext hook.\n */\nexport function useInputGroup(): UseInputGroupReturn {\n const qdsContext = useQdsInputContext()\n return computed(() => ({\n endIcon: qdsContext().endIcon,\n getBindings: () => qdsContext().getGroupBindings(),\n startIcon: qdsContext().startIcon,\n }))\n}\n\nexport interface UseInputHintReturn {\n getBindings: Signal<QdsInputHintBindings>\n}\n\n/**\n * A composable function that provides bindings for implementing a hint on\n * input components. It assumes that it is used within the context of the\n * useQdsInputContext hook.\n */\nexport function useInputHint(): UseInputHintReturn {\n const qdsContext = useQdsInputContext()\n return {\n getBindings: computed(() => qdsContext().getHintBindings()),\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAAA;AACA;AAkBM,MAAO,sBAAuB,SAAQ,qBAE3C,CAAA;wGAFY,sBAAsB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;4GAAtB,sBAAsB,EAAA,CAAA;;4FAAtB,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBADlC;;AAKM,MAAM,CACX,iBAAiB,EACjB,kBAAkB,EAClB,sBAAsB,EACvB,GAAgD,gBAAgB,CAE/D,iBAAiB,EAAE,sBAAsB;;AC7B3C;AACA;AAWA;;;;;AAKG;MAcU,kBAAkB,CAAA;AAC7B;;AAEG;IACM,IAAI,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,MAAA,EAAA,CAAA,GAAA,EAAA,CAAA,CAAuB;IAElC,YAAY,GAAG,YAAY;IAE3B,eAAe,GAAG,kBAAkB,CAAC,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC;AAEtD,IAAA,aAAa,GAAG,gBAAgB,CAAC,MAAK;AAC9C,QAAA,MAAM,OAAO,GAAG,IAAI,CAAC,eAAe,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,CAAC,OAAO;AACrB,QAAA,OAAO,EAAE,UAAU,EAAE,CAAC,OAAO;QAC7B,WAAW,EAAE,MAAM,UAAU,EAAE,CAAC,gBAAgB,EAAE;AAClD,QAAA,SAAS,EAAE,UAAU,EAAE,CAAC,SAAS;AAClC,KAAA,CAAC,CAAC;AACL;AAMA;;;;AAIG;SACa,YAAY,GAAA;AAC1B,IAAA,MAAM,UAAU,GAAG,kBAAkB,EAAE;IACvC,OAAO;QACL,WAAW,EAAE,QAAQ,CAAC,MAAM,UAAU,EAAE,CAAC,eAAe,EAAE,CAAC;KAC5D;AACH;;ACzIA;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"qualcomm-ui-angular-input.mjs","sources":["../../src/input/qds-input-context.service.ts","../../src/input/error-text.component.ts","../../src/input/hint.directive.ts","../../src/input/input-end-icon.component.ts","../../src/input/input-start-icon.component.ts","../../src/input/use-input-bindings.ts","../../src/input/qualcomm-ui-angular-input.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 type {LucideIconOrString} from \"@qualcomm-ui/angular-core/lucide\"\nimport {\n type ApiContext,\n BaseApiContextService,\n createApiContext,\n} from \"@qualcomm-ui/angular-core/machine\"\nimport type {QdsInputApi, QdsInputApiProps} from \"@qualcomm-ui/qds-core/input\"\n\nexport interface QdsAngularInputApiProps\n extends QdsInputApiProps<LucideIconOrString> {}\n\nexport interface QdsAngularInputApi extends QdsInputApi<LucideIconOrString> {}\n\n@Injectable()\nexport class QdsInputContextService extends BaseApiContextService<\n QdsInputApi<LucideIconOrString>\n> {}\n\nexport const [\n QDS_INPUT_CONTEXT,\n useQdsInputContext,\n provideQdsInputContext,\n]: ApiContext<QdsInputApi<LucideIconOrString>> = createApiContext<\n QdsInputApi<LucideIconOrString>\n>(\"QdsInputContext\", QdsInputContextService)\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Component, input, type OnInit} from \"@angular/core\"\n\nimport {IconDirective} from \"@qualcomm-ui/angular/icon\"\nimport {type LucideIcon} from \"@qualcomm-ui/angular-core/lucide\"\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\nimport {inputClasses} from \"@qualcomm-ui/qds-core/input\"\n\nimport {useQdsInputContext} from \"./qds-input-context.service\"\n\n/**\n * Simple error text directive. Not bound to any form or component context.\n *\n * @remarks if using a specific input component, use that component's error\n * text directive instead of this one.\n */\n@Component({\n host: {\n \"[class]\": \"inputClasses.errorText\",\n },\n imports: [IconDirective],\n selector: \"[q-error-text]\",\n template: `\n @if (icon()) {\n <svg size=\"xs\" [qIcon]=\"icon()!\" />\n }\n <ng-content />\n `,\n})\nexport class ErrorTextComponent implements OnInit {\n /**\n * Error indicator icon.\n */\n readonly icon = input<LucideIcon | string>()\n\n protected inputClasses = inputClasses\n\n protected qdsInputContext = useQdsInputContext({optional: true})\n\n protected trackBindings = useTrackBindings(() => {\n const context = this.qdsInputContext?.()\n return context?.getErrorTextBindings?.() || {}\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 {Directive, type OnInit} from \"@angular/core\"\n\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\nimport {inputClasses} from \"@qualcomm-ui/qds-core/input\"\n\nimport {useQdsInputContext} from \"./qds-input-context.service\"\n\n/**\n * Simple hint directive that applies hint styles. Not bound to any form or component context.\n * @remarks if using a specific input component, use that component's hint directive instead of\n * this one.\n */\n@Directive({\n host: {\n \"[class]\": \"inputClasses.hint\",\n },\n selector: \"[q-hint]\",\n})\nexport class HintDirective implements OnInit {\n protected inputClasses = inputClasses\n\n protected qdsInputContext = useQdsInputContext({optional: true})\n\n protected trackBindings = useTrackBindings(() => {\n const context = this.qdsInputContext?.()\n return context?.getHintBindings?.() || {}\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 {Component, input, type OnInit} from \"@angular/core\"\n\nimport {IconDirective} from \"@qualcomm-ui/angular/icon\"\nimport type {LucideIcon} from \"@qualcomm-ui/angular-core/lucide\"\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\n\nimport {useQdsInputContext} from \"./qds-input-context.service\"\n\n@Component({\n imports: [IconDirective],\n selector: \"[q-input-end-icon]\",\n template: `\n <ng-content>\n @if (icon()) {\n <svg [qIcon]=\"icon()!\"></svg>\n }\n </ng-content>\n `,\n})\nexport class InputEndIconComponent implements OnInit {\n readonly icon = input<LucideIcon | string>()\n\n context = useQdsInputContext({optional: true})\n\n trackBindings = useTrackBindings(() => {\n const context = this.context?.()\n return context?.getEndIconBindings?.() || {}\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 {Component, input, type OnInit} from \"@angular/core\"\n\nimport {IconDirective} from \"@qualcomm-ui/angular/icon\"\nimport type {LucideIcon} from \"@qualcomm-ui/angular-core/lucide\"\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\nimport {inputClasses} from \"@qualcomm-ui/qds-core/input\"\n\nimport {useQdsInputContext} from \"./qds-input-context.service\"\n\n@Component({\n imports: [IconDirective],\n selector: \"[q-input-start-icon]\",\n template: `\n <ng-content>\n @if (icon()) {\n <svg [qIcon]=\"icon()!\"></svg>\n }\n </ng-content>\n `,\n})\nexport class InputStartIconComponent implements OnInit {\n readonly inputClasses = inputClasses\n\n readonly icon = input<LucideIcon | string>()\n\n context = useQdsInputContext({optional: true})\n\n trackBindings = useTrackBindings(() => {\n const context = this.context?.()\n return context?.getStartIconBindings?.() || {}\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, type Signal} from \"@angular/core\"\n\nimport {useInlineIconButtonApi} from \"@qualcomm-ui/angular/inline-icon-button\"\nimport type {LucideIconOrString} from \"@qualcomm-ui/angular-core/lucide\"\nimport type {\n QdsInlineIconButtonIconBindings,\n QdsInlineIconButtonRootBindings,\n} from \"@qualcomm-ui/qds-core/inline-icon-button\"\nimport type {\n QdsInputClearTriggerBindings,\n QdsInputErrorIndicatorBindings,\n QdsInputErrorTextBindings,\n QdsInputGroupBindings,\n QdsInputHintBindings,\n QdsInputInputBindings,\n} from \"@qualcomm-ui/qds-core/input\"\nimport {type MergeProps, mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nimport {useQdsInputContext} from \"./qds-input-context.service\"\n\nexport interface UseInputInputReturn {\n getBindings: Signal<QdsInputInputBindings>\n}\n\n/**\n * A composable function that provides bindings for implementing the input on\n * input components. It assumes that it is used within the context of the\n * useQdsInputContext hook.\n */\nexport function useInputInput(): UseInputInputReturn {\n const qdsContext = useQdsInputContext()\n return {\n getBindings: computed(() => qdsContext().getInputBindings()),\n }\n}\n\nexport interface UseInputClearTriggerReturn {\n getIconBindings: Signal<QdsInlineIconButtonIconBindings>\n getRootBindings: Signal<\n MergeProps<[QdsInlineIconButtonRootBindings, QdsInputClearTriggerBindings]>\n >\n}\n\n/**\n * A composable function that provides bindings for implementing a clear trigger on\n * input components. It assumes that it is used within the context of the\n * useQdsInputContext hook.\n */\nexport function useInputClearTrigger(): UseInputClearTriggerReturn {\n const qdsContext = useQdsInputContext()\n const buttonApi = useInlineIconButtonApi({\n emphasis: \"neutral\",\n size: computed(() => qdsContext().size),\n variant: \"scale\",\n })\n\n return {\n getIconBindings: computed(() => buttonApi().getIconBindings()),\n getRootBindings: computed(() =>\n mergeProps(\n buttonApi().getRootBindings(),\n qdsContext().getClearTriggerBindings(),\n ),\n ),\n }\n}\n\nexport interface UseInputErrorIndicatorReturn {\n getBindings: Signal<QdsInputErrorIndicatorBindings>\n}\n\n/**\n * A composable function that provides bindings for implementing error indicators\n * on input components. It assumes that it is used within the context of the\n * useQdsInputContext hook.\n */\nexport function useInputErrorIndicator(): UseInputErrorIndicatorReturn {\n const qdsContext = useQdsInputContext()\n return {\n getBindings: computed(() => qdsContext().getErrorIndicatorBindings()),\n }\n}\n\nexport interface UseInputErrorTextReturn {\n getBindings: Signal<QdsInputErrorTextBindings>\n}\n\n/**\n * A composable function that provides bindings for implementing error text on\n * input components. It assumes that it is used within the context of the\n * useQdsInputContext hook.\n */\nexport function useInputErrorText(): UseInputErrorTextReturn {\n const qdsContext = useQdsInputContext()\n return {\n getBindings: computed(() => qdsContext().getErrorTextBindings()),\n }\n}\n\nexport interface UseInputGroupReturn\n extends Signal<{\n endIcon?: LucideIconOrString\n getBindings: () => QdsInputGroupBindings\n startIcon?: LucideIconOrString\n }> {}\n\n/**\n * A composable function that provides bindings for implementing the input group on\n * input components. It assumes that it is used within the context of the\n * useQdsInputContext hook.\n */\nexport function useInputGroup(): UseInputGroupReturn {\n const qdsContext = useQdsInputContext()\n return computed(() => ({\n endIcon: qdsContext().endIcon,\n getBindings: () => qdsContext().getGroupBindings(),\n startIcon: qdsContext().startIcon,\n }))\n}\n\nexport interface UseInputHintReturn {\n getBindings: Signal<QdsInputHintBindings>\n}\n\n/**\n * A composable function that provides bindings for implementing a hint on\n * input components. It assumes that it is used within the context of the\n * useQdsInputContext hook.\n */\nexport function useInputHint(): UseInputHintReturn {\n const qdsContext = useQdsInputContext()\n return {\n getBindings: computed(() => qdsContext().getHintBindings()),\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAAA;AACA;AAkBM,MAAO,sBAAuB,SAAQ,qBAE3C,CAAA;uGAFY,sBAAsB,EAAA,IAAA,EAAA,IAA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M,SAAS,EAAE,CAAC,eAAe,EAAE,CAAC;QAC9D,eAAe,EAAE,QAAQ,CAAC,MACxB,UAAU,CACR,SAAS,EAAE,CAAC,eAAe,EAAE,EAC7B,UAAU,EAAE,CAAC,uBAAuB,EAAE,CACvC,CACF;KACF;AACH;AAMA;;;;AAIG;SACa,sBAAsB,GAAA;AACpC,IAAA,MAAM,UAAU,GAAG,kBAAkB,EAAE;IACvC,OAAO;QACL,WAAW,EAAE,QAAQ,CAAC,MAAM,UAAU,EAAE,CAAC,yBAAyB,EAAE,CAAC;KACtE;AACH;AAMA;;;;AAIG;SACa,iBAAiB,GAAA;AAC/B,IAAA,MAAM,UAAU,GAAG,kBAAkB,EAAE;IACvC,OAAO;QACL,WAAW,EAAE,QAAQ,CAAC,MAAM,UAAU,EAAE,CAAC,oBAAoB,EAAE,CAAC;KACjE;AACH;AASA;;;;AAIG;SACa,aAAa,GAAA;AAC3B,IAAA,MAAM,UAAU,GAAG,kBAAkB,EAAE;AACvC,IAAA,OAAO,QAAQ,CAAC,OAAO;AACrB,QAAA,OAAO,EAAE,UAAU,EAAE,CAAC,OAAO;QAC7B,WAAW,EAAE,MAAM,UAAU,EAAE,CAAC,gBAAgB,EAAE;AAClD,QAAA,SAAS,EAAE,UAAU,EAAE,CAAC,SAAS;AAClC,KAAA,CAAC,CAAC;AACL;AAMA;;;;AAIG;SACa,YAAY,GAAA;AAC1B,IAAA,MAAM,UAAU,GAAG,kBAAkB,EAAE;IACvC,OAAO;QACL,WAAW,EAAE,QAAQ,CAAC,MAAM,UAAU,EAAE,CAAC,eAAe,EAAE,CAAC;KAC5D;AACH;;ACzIA;;AAEG;;;;"}
|
|
@@ -10,10 +10,10 @@ class KbdDirective {
|
|
|
10
10
|
ngOnInit() {
|
|
11
11
|
this.trackBindings();
|
|
12
12
|
}
|
|
13
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
14
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
13
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: KbdDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
14
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.2", type: KbdDirective, isStandalone: true, selector: "[q-kbd]", ngImport: i0 });
|
|
15
15
|
}
|
|
16
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
16
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: KbdDirective, decorators: [{
|
|
17
17
|
type: Directive,
|
|
18
18
|
args: [{
|
|
19
19
|
selector: "[q-kbd]",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"qualcomm-ui-angular-kbd.mjs","sources":["../../src/kbd/kbd.directive.ts","../../src/kbd/qualcomm-ui-angular-kbd.ts"],"sourcesContent":["// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Directive, type OnInit} from \"@angular/core\"\n\nimport {\n normalizeProps,\n useTrackBindings,\n} from \"@qualcomm-ui/angular-core/machine\"\nimport {getQdsKbdBindings} from \"@qualcomm-ui/qds-core/kbd\"\n\n@Directive({\n selector: \"[q-kbd]\",\n})\nexport class KbdDirective implements OnInit {\n protected readonly trackBindings = useTrackBindings(() =>\n getQdsKbdBindings(normalizeProps),\n )\n\n ngOnInit() {\n this.trackBindings()\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAAA;AACA;MAaa,YAAY,CAAA;IACJ,aAAa,GAAG,gBAAgB,CAAC,MAClD,iBAAiB,CAAC,cAAc,CAAC,CAClC;IAED,QAAQ,GAAA;QACN,IAAI,CAAC,aAAa,EAAE;IACtB;
|
|
1
|
+
{"version":3,"file":"qualcomm-ui-angular-kbd.mjs","sources":["../../src/kbd/kbd.directive.ts","../../src/kbd/qualcomm-ui-angular-kbd.ts"],"sourcesContent":["// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Directive, type OnInit} from \"@angular/core\"\n\nimport {\n normalizeProps,\n useTrackBindings,\n} from \"@qualcomm-ui/angular-core/machine\"\nimport {getQdsKbdBindings} from \"@qualcomm-ui/qds-core/kbd\"\n\n@Directive({\n selector: \"[q-kbd]\",\n})\nexport class KbdDirective implements OnInit {\n protected readonly trackBindings = useTrackBindings(() =>\n getQdsKbdBindings(normalizeProps),\n )\n\n ngOnInit() {\n this.trackBindings()\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAAA;AACA;MAaa,YAAY,CAAA;IACJ,aAAa,GAAG,gBAAgB,CAAC,MAClD,iBAAiB,CAAC,cAAc,CAAC,CAClC;IAED,QAAQ,GAAA;QACN,IAAI,CAAC,aAAa,EAAE;IACtB;uGAPW,YAAY,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAAZ,YAAY,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAAZ,YAAY,EAAA,UAAA,EAAA,CAAA;kBAHxB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,SAAS;AACpB,iBAAA;;;ACbD;;AAEG;;;;"}
|
|
@@ -14,20 +14,18 @@ class LinkDirective {
|
|
|
14
14
|
*
|
|
15
15
|
* @default "ltr"
|
|
16
16
|
*/
|
|
17
|
-
dir = input(undefined, ...(ngDevMode ? [{ debugName: "dir" }] : []));
|
|
17
|
+
dir = input(undefined, ...(ngDevMode ? [{ debugName: "dir" }] : /* istanbul ignore next */ []));
|
|
18
18
|
/**
|
|
19
19
|
* Controls whether the link is interactive. When `true`, pointer/focus
|
|
20
20
|
* events are blocked, and the link is visually dimmed.
|
|
21
21
|
*/
|
|
22
|
-
disabled = input(undefined, ...(ngDevMode ?
|
|
23
|
-
transform: booleanAttribute,
|
|
24
|
-
}]));
|
|
22
|
+
disabled = input(undefined, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
25
23
|
/**
|
|
26
24
|
* The color of the link.
|
|
27
25
|
*
|
|
28
26
|
* @default 'default'
|
|
29
27
|
*/
|
|
30
|
-
emphasis = input(...(ngDevMode ? [undefined, { debugName: "emphasis" }] : []));
|
|
28
|
+
emphasis = input(...(ngDevMode ? [undefined, { debugName: "emphasis" }] : /* istanbul ignore next */ []));
|
|
31
29
|
/**
|
|
32
30
|
* {@link https://lucide.dev/icons lucide-angular} icon, positioned after the label.
|
|
33
31
|
*
|
|
@@ -37,14 +35,14 @@ class LinkDirective {
|
|
|
37
35
|
* <svg q-end-icon icon="..."></svg>
|
|
38
36
|
* ```
|
|
39
37
|
*/
|
|
40
|
-
endIcon = input(...(ngDevMode ? [undefined, { debugName: "endIcon" }] : []));
|
|
38
|
+
endIcon = input(...(ngDevMode ? [undefined, { debugName: "endIcon" }] : /* istanbul ignore next */ []));
|
|
41
39
|
/**
|
|
42
40
|
* The size of the link and its elements. Governs properties like font size,
|
|
43
41
|
* item padding, and icon sizes.
|
|
44
42
|
*
|
|
45
43
|
* @default 'md'
|
|
46
44
|
*/
|
|
47
|
-
size = input(...(ngDevMode ? [undefined, { debugName: "size" }] : []));
|
|
45
|
+
size = input(...(ngDevMode ? [undefined, { debugName: "size" }] : /* istanbul ignore next */ []));
|
|
48
46
|
/**
|
|
49
47
|
* {@link https://lucide.dev/icons lucide-angular} icon, positioned before the label.
|
|
50
48
|
*
|
|
@@ -54,19 +52,19 @@ class LinkDirective {
|
|
|
54
52
|
* <svg q-start-icon icon="..."></svg>
|
|
55
53
|
* ```
|
|
56
54
|
*/
|
|
57
|
-
startIcon = input(...(ngDevMode ? [undefined, { debugName: "startIcon" }] : []));
|
|
55
|
+
startIcon = input(...(ngDevMode ? [undefined, { debugName: "startIcon" }] : /* istanbul ignore next */ []));
|
|
58
56
|
qdsLinkApi = computed(() => createQdsLinkApi({
|
|
59
57
|
dir: this.dir(),
|
|
60
58
|
disabled: this.disabled(),
|
|
61
59
|
emphasis: this.emphasis(),
|
|
62
60
|
size: this.size(),
|
|
63
|
-
}, normalizeProps), ...(ngDevMode ? [{ debugName: "qdsLinkApi" }] : []));
|
|
61
|
+
}, normalizeProps), ...(ngDevMode ? [{ debugName: "qdsLinkApi" }] : /* istanbul ignore next */ []));
|
|
64
62
|
trackBindings = useTrackBindings(() => this.qdsLinkApi().getRootBindings());
|
|
65
63
|
ngOnInit() {
|
|
66
64
|
this.trackBindings();
|
|
67
65
|
}
|
|
68
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
69
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
66
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: LinkDirective, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
67
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.2", type: LinkDirective, isStandalone: true, selector: "[q-link]", inputs: { dir: { classPropertyName: "dir", publicName: "dir", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, emphasis: { classPropertyName: "emphasis", publicName: "emphasis", isSignal: true, isRequired: false, transformFunction: null }, endIcon: { classPropertyName: "endIcon", publicName: "endIcon", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, startIcon: { classPropertyName: "startIcon", publicName: "startIcon", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
|
|
70
68
|
{
|
|
71
69
|
provide: START_ICON_CONTEXT_TOKEN,
|
|
72
70
|
useFactory: () => {
|
|
@@ -101,7 +99,7 @@ class LinkDirective {
|
|
|
101
99
|
</ng-content>
|
|
102
100
|
`, isInline: true, dependencies: [{ kind: "directive", type: EndIconDirective, selector: "div[q-end-icon],span[q-end-icon],svg[q-end-icon]", inputs: ["icon"] }, { kind: "directive", type: StartIconDirective, selector: "div[q-start-icon],span[q-start-icon],svg[q-start-icon]", inputs: ["icon"] }] });
|
|
103
101
|
}
|
|
104
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
102
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: LinkDirective, decorators: [{
|
|
105
103
|
type: Component,
|
|
106
104
|
args: [{
|
|
107
105
|
hostDirectives: [QuiPreloadDirective],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"qualcomm-ui-angular-link.mjs","sources":["../../src/link/link.directive.ts","../../src/link/qualcomm-ui-angular-link.ts"],"sourcesContent":["// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {\n booleanAttribute,\n Component,\n computed,\n inject,\n input,\n type OnInit,\n} from \"@angular/core\"\n\nimport {\n END_ICON_CONTEXT_TOKEN,\n EndIconDirective,\n type IconTokenContext,\n START_ICON_CONTEXT_TOKEN,\n StartIconDirective,\n} from \"@qualcomm-ui/angular/icon\"\nimport {QuiPreloadDirective} from \"@qualcomm-ui/angular/transitions\"\nimport type {LucideIconOrString} from \"@qualcomm-ui/angular-core/lucide\"\nimport {\n normalizeProps,\n useTrackBindings,\n} from \"@qualcomm-ui/angular-core/machine\"\nimport type {SignalifyInput} from \"@qualcomm-ui/angular-core/signals\"\nimport {\n createQdsLinkApi,\n type QdsLinkApiProps,\n type QdsLinkEmphasis,\n type QdsLinkSize,\n} from \"@qualcomm-ui/qds-core/link\"\nimport type {Booleanish} from \"@qualcomm-ui/utils/coercion\"\nimport type {Direction} from \"@qualcomm-ui/utils/direction\"\nimport type {Explicit} from \"@qualcomm-ui/utils/guard\"\n\n@Component({\n hostDirectives: [QuiPreloadDirective],\n imports: [EndIconDirective, StartIconDirective],\n providers: [\n {\n provide: START_ICON_CONTEXT_TOKEN,\n useFactory: (): IconTokenContext => {\n const linkDirective = inject(LinkDirective)\n return {\n getBindings: computed(() =>\n linkDirective.qdsLinkApi().getStartIconBindings(),\n ),\n }\n },\n },\n {\n provide: END_ICON_CONTEXT_TOKEN,\n useFactory: (): IconTokenContext => {\n const linkDirective = inject(LinkDirective)\n return {\n getBindings: computed(() =>\n linkDirective.qdsLinkApi().getEndIconBindings(),\n ),\n }\n },\n },\n ],\n selector: \"[q-link]\",\n template: `\n <ng-content select=\"[q-start-icon]\">\n @if (startIcon()) {\n <svg q-start-icon [icon]=\"startIcon()!\"></svg>\n }\n </ng-content>\n\n <ng-content />\n\n <ng-content select=\"[q-end-icon]\">\n @if (endIcon()) {\n <svg q-end-icon [icon]=\"endIcon()!\"></svg>\n }\n </ng-content>\n `,\n})\nexport class LinkDirective implements SignalifyInput<QdsLinkApiProps>, OnInit {\n /**\n * The document's text/writing direction.\n *\n * @default \"ltr\"\n */\n readonly dir = input<Direction | undefined>(undefined)\n\n /**\n * Controls whether the link is interactive. When `true`, pointer/focus\n * events are blocked, and the link is visually dimmed.\n */\n readonly disabled = input<boolean | undefined, Booleanish>(undefined, {\n transform: booleanAttribute,\n })\n\n /**\n * The color of the link.\n *\n * @default 'default'\n */\n readonly emphasis = input<QdsLinkEmphasis>()\n\n /**\n * {@link https://lucide.dev/icons lucide-angular} icon, positioned after the label.\n *\n * @remarks\n * To customize the element, provide it using the directive instead:\n * ```angular-html\n * <svg q-end-icon icon=\"...\"></svg>\n * ```\n */\n readonly endIcon = input<LucideIconOrString>()\n\n /**\n * The size of the link and its elements. Governs properties like font size,\n * item padding, and icon sizes.\n *\n * @default 'md'\n */\n readonly size = input<QdsLinkSize>()\n\n /**\n * {@link https://lucide.dev/icons lucide-angular} icon, positioned before the label.\n *\n * @remarks\n * To customize the element, provide it using the directive instead:\n * ```angular-html\n * <svg q-start-icon icon=\"...\"></svg>\n * ```\n */\n readonly startIcon = input<LucideIconOrString>()\n\n readonly qdsLinkApi = computed(() =>\n createQdsLinkApi(\n {\n dir: this.dir(),\n disabled: this.disabled(),\n emphasis: this.emphasis(),\n size: this.size(),\n } satisfies Explicit<QdsLinkApiProps>,\n normalizeProps,\n ),\n )\n\n protected readonly trackBindings = useTrackBindings(() =>\n this.qdsLinkApi().getRootBindings(),\n )\n\n ngOnInit() {\n this.trackBindings()\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAAA;AACA;MA+Ea,aAAa,CAAA;AACxB;;;;AAIG;AACM,IAAA,GAAG,GAAG,KAAK,CAAwB,SAAS
|
|
1
|
+
{"version":3,"file":"qualcomm-ui-angular-link.mjs","sources":["../../src/link/link.directive.ts","../../src/link/qualcomm-ui-angular-link.ts"],"sourcesContent":["// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {\n booleanAttribute,\n Component,\n computed,\n inject,\n input,\n type OnInit,\n} from \"@angular/core\"\n\nimport {\n END_ICON_CONTEXT_TOKEN,\n EndIconDirective,\n type IconTokenContext,\n START_ICON_CONTEXT_TOKEN,\n StartIconDirective,\n} from \"@qualcomm-ui/angular/icon\"\nimport {QuiPreloadDirective} from \"@qualcomm-ui/angular/transitions\"\nimport type {LucideIconOrString} from \"@qualcomm-ui/angular-core/lucide\"\nimport {\n normalizeProps,\n useTrackBindings,\n} from \"@qualcomm-ui/angular-core/machine\"\nimport type {SignalifyInput} from \"@qualcomm-ui/angular-core/signals\"\nimport {\n createQdsLinkApi,\n type QdsLinkApiProps,\n type QdsLinkEmphasis,\n type QdsLinkSize,\n} from \"@qualcomm-ui/qds-core/link\"\nimport type {Booleanish} from \"@qualcomm-ui/utils/coercion\"\nimport type {Direction} from \"@qualcomm-ui/utils/direction\"\nimport type {Explicit} from \"@qualcomm-ui/utils/guard\"\n\n@Component({\n hostDirectives: [QuiPreloadDirective],\n imports: [EndIconDirective, StartIconDirective],\n providers: [\n {\n provide: START_ICON_CONTEXT_TOKEN,\n useFactory: (): IconTokenContext => {\n const linkDirective = inject(LinkDirective)\n return {\n getBindings: computed(() =>\n linkDirective.qdsLinkApi().getStartIconBindings(),\n ),\n }\n },\n },\n {\n provide: END_ICON_CONTEXT_TOKEN,\n useFactory: (): IconTokenContext => {\n const linkDirective = inject(LinkDirective)\n return {\n getBindings: computed(() =>\n linkDirective.qdsLinkApi().getEndIconBindings(),\n ),\n }\n },\n },\n ],\n selector: \"[q-link]\",\n template: `\n <ng-content select=\"[q-start-icon]\">\n @if (startIcon()) {\n <svg q-start-icon [icon]=\"startIcon()!\"></svg>\n }\n </ng-content>\n\n <ng-content />\n\n <ng-content select=\"[q-end-icon]\">\n @if (endIcon()) {\n <svg q-end-icon [icon]=\"endIcon()!\"></svg>\n }\n </ng-content>\n `,\n})\nexport class LinkDirective implements SignalifyInput<QdsLinkApiProps>, OnInit {\n /**\n * The document's text/writing direction.\n *\n * @default \"ltr\"\n */\n readonly dir = input<Direction | undefined>(undefined)\n\n /**\n * Controls whether the link is interactive. When `true`, pointer/focus\n * events are blocked, and the link is visually dimmed.\n */\n readonly disabled = input<boolean | undefined, Booleanish>(undefined, {\n transform: booleanAttribute,\n })\n\n /**\n * The color of the link.\n *\n * @default 'default'\n */\n readonly emphasis = input<QdsLinkEmphasis>()\n\n /**\n * {@link https://lucide.dev/icons lucide-angular} icon, positioned after the label.\n *\n * @remarks\n * To customize the element, provide it using the directive instead:\n * ```angular-html\n * <svg q-end-icon icon=\"...\"></svg>\n * ```\n */\n readonly endIcon = input<LucideIconOrString>()\n\n /**\n * The size of the link and its elements. Governs properties like font size,\n * item padding, and icon sizes.\n *\n * @default 'md'\n */\n readonly size = input<QdsLinkSize>()\n\n /**\n * {@link https://lucide.dev/icons lucide-angular} icon, positioned before the label.\n *\n * @remarks\n * To customize the element, provide it using the directive instead:\n * ```angular-html\n * <svg q-start-icon icon=\"...\"></svg>\n * ```\n */\n readonly startIcon = input<LucideIconOrString>()\n\n readonly qdsLinkApi = computed(() =>\n createQdsLinkApi(\n {\n dir: this.dir(),\n disabled: this.disabled(),\n emphasis: this.emphasis(),\n size: this.size(),\n } satisfies Explicit<QdsLinkApiProps>,\n normalizeProps,\n ),\n )\n\n protected readonly trackBindings = useTrackBindings(() =>\n this.qdsLinkApi().getRootBindings(),\n )\n\n ngOnInit() {\n this.trackBindings()\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAAA;AACA;MA+Ea,aAAa,CAAA;AACxB;;;;AAIG;AACM,IAAA,GAAG,GAAG,KAAK,CAAwB,SAAS,0EAAC;AAEtD;;;AAGG;IACM,QAAQ,GAAG,KAAK,CAAkC,SAAS,gFAClE,SAAS,EAAE,gBAAgB,EAAA,CAC3B;AAEF;;;;AAIG;IACM,QAAQ,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,UAAA,EAAA,CAAA,8BAAA,EAAA,CAAA,CAAmB;AAE5C;;;;;;;;AAQG;IACM,OAAO,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,SAAA,EAAA,CAAA,8BAAA,EAAA,CAAA,CAAsB;AAE9C;;;;;AAKG;IACM,IAAI,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,MAAA,EAAA,CAAA,8BAAA,EAAA,CAAA,CAAe;AAEpC;;;;;;;;AAQG;IACM,SAAS,GAAG,KA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