@qualcomm-ui/angular 1.20.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 +79 -85
- 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-segmented-control.mjs","sources":["../../src/segmented-control/qds-segmented-control-context.service.ts","../../src/segmented-control/segmented-control-hidden-input.directive.ts","../../src/segmented-control/segmented-control-item-root.directive.ts","../../src/segmented-control/segmented-control-item-text.directive.ts","../../src/segmented-control/segmented-control-item.component.ts","../../src/segmented-control/segmented-control.directive.ts","../../src/segmented-control/segmented-control.module.ts","../../src/segmented-control/qualcomm-ui-angular-segmented-control.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 {QdsSegmentedControlApi} from \"@qualcomm-ui/qds-core/segmented-control\"\n\n@Injectable()\nexport class QdsSegmentedControlContextService extends BaseApiContextService<QdsSegmentedControlApi> {}\n\nexport const [\n QDS_SEGMENTED_CONTROL_CONTEXT,\n useQdsSegmentedControlContext,\n provideQdsSegmentedControlContext,\n]: ApiContext<QdsSegmentedControlApi> =\n createApiContext<QdsSegmentedControlApi>(\n \"QdsSegmentedControlContext\",\n QdsSegmentedControlContextService,\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 {CoreSegmentedControlHiddenInputDirective} from \"@qualcomm-ui/angular-core/segmented-control\"\n\nimport {useQdsSegmentedControlContext} from \"./qds-segmented-control-context.service\"\n\n/**\n * The segmented control item hidden input.\n */\n@Directive({\n selector: \"[q-segmented-control-hidden-input]\",\n standalone: false,\n})\nexport class SegmentedControlHiddenInputDirective extends CoreSegmentedControlHiddenInputDirective {\n protected readonly qdsSegmentedControlContext =\n useQdsSegmentedControlContext()\n\n constructor() {\n super()\n this.trackBindings.extendWith(\n computed(() =>\n this.qdsSegmentedControlContext().getItemHiddenInputBindings(),\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 {QuiPreloadDirective} from \"@qualcomm-ui/angular/transitions\"\nimport {provideCheckboxContext} from \"@qualcomm-ui/angular-core/checkbox\"\nimport {CoreSegmentedControlItemDirective} from \"@qualcomm-ui/angular-core/segmented-control\"\n\nimport {useQdsSegmentedControlContext} from \"./qds-segmented-control-context.service\"\n\n@Directive({\n hostDirectives: [QuiPreloadDirective],\n providers: [provideCheckboxContext()],\n selector: \"[q-segmented-control-item-root]\",\n standalone: false,\n})\nexport class SegmentedControlItemRootDirective extends CoreSegmentedControlItemDirective {\n protected readonly qdsSegmentedControlContext =\n useQdsSegmentedControlContext()\n\n override ngOnInit() {\n super.ngOnInit()\n\n this.trackBindings.extendWith(\n computed(() => this.qdsSegmentedControlContext().getItemBindings()),\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 {CoreSegmentedControlItemTextDirective} from \"@qualcomm-ui/angular-core/segmented-control\"\n\nimport {useQdsSegmentedControlContext} from \"./qds-segmented-control-context.service\"\n\n/**\n * The text of the segmented control item.\n */\n@Directive({\n selector: \"[q-segmented-control-item-text]\",\n standalone: false,\n})\nexport class SegmentedControlItemTextDirective extends CoreSegmentedControlItemTextDirective {\n protected readonly qdsSegmentedControlContext =\n useQdsSegmentedControlContext()\n\n constructor() {\n super()\n this.trackBindings.extendWith(\n computed(() => this.qdsSegmentedControlContext().getItemTextBindings()),\n )\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Component, input} from \"@angular/core\"\n\nimport {provideCheckboxContext} from \"@qualcomm-ui/angular-core/checkbox\"\nimport type {LucideIcon} from \"@qualcomm-ui/angular-core/lucide\"\n\nimport {SegmentedControlItemRootDirective} from \"./segmented-control-item-root.directive\"\n\n@Component({\n providers: [provideCheckboxContext()],\n selector: \"[q-segmented-control-item]\",\n standalone: false,\n template: `\n <ng-content select=\"[q-segmented-control-item-icon]\">\n @if (icon()) {\n <svg [qIcon]=\"icon()!\"></svg>\n }\n </ng-content>\n <ng-content select=\"[q-segmented-control-item-text]\">\n @if (text()) {\n <span q-segmented-control-item-text>{{ text() }}</span>\n }\n </ng-content>\n <ng-content select=\"[q-segmented-control-hidden-input]\">\n <input q-segmented-control-hidden-input />\n </ng-content>\n `,\n})\nexport class SegmentedControlItemComponent extends SegmentedControlItemRootDirective {\n readonly text = input<string>()\n readonly icon = input<LucideIcon | string>()\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, Directive, inject, input} from \"@angular/core\"\n\nimport {normalizeProps} from \"@qualcomm-ui/angular-core/machine\"\nimport {\n CoreSegmentedControlRootDirective,\n provideSegmentedControlContext,\n} from \"@qualcomm-ui/angular-core/segmented-control\"\nimport type {SignalifyInput} from \"@qualcomm-ui/angular-core/signals\"\nimport {\n createQdsSegmentedControlApi,\n type QdsSegmentedControlApiProps,\n type QdsSegmentedControlLayout,\n type QdsSegmentedControlSize,\n type QdsSegmentedControlVariant,\n} from \"@qualcomm-ui/qds-core/segmented-control\"\n\nimport {\n provideQdsSegmentedControlContext,\n QdsSegmentedControlContextService,\n} from \"./qds-segmented-control-context.service\"\n\n@Directive({\n providers: [\n provideSegmentedControlContext(),\n provideQdsSegmentedControlContext(),\n ],\n selector: \"[q-segmented-control]\",\n standalone: false,\n})\nexport class SegmentedControlDirective\n extends CoreSegmentedControlRootDirective\n implements SignalifyInput<QdsSegmentedControlApiProps>\n{\n /**\n * Governs the width and height of the segmented control as well as the font size\n * of its content.\n */\n readonly size = input<QdsSegmentedControlSize | undefined>()\n\n /**\n * The style variant of the segmented control.\n */\n readonly variant = input<QdsSegmentedControlVariant | undefined>()\n\n /**\n * The style variant of the segmented control.\n */\n readonly layout = input<QdsSegmentedControlLayout | undefined>()\n\n protected readonly qdsSegmentedControlService = inject(\n QdsSegmentedControlContextService,\n )\n\n constructor() {\n super()\n this.trackBindings.extendWith(\n computed(() =>\n this.qdsSegmentedControlService.context().getGroupBindings(),\n ),\n )\n }\n\n override ngOnInit() {\n super.ngOnInit()\n\n const qdsSegmentedControlApi = computed(() =>\n createQdsSegmentedControlApi(\n {\n layout: this.layout(),\n size: this.size(),\n variant: this.variant(),\n },\n normalizeProps,\n ),\n )\n\n this.qdsSegmentedControlService.init(qdsSegmentedControlApi)\n }\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\"\n\nimport {SegmentedControlHiddenInputDirective} from \"./segmented-control-hidden-input.directive\"\nimport {SegmentedControlItemRootDirective} from \"./segmented-control-item-root.directive\"\nimport {SegmentedControlItemTextDirective} from \"./segmented-control-item-text.directive\"\nimport {SegmentedControlItemComponent} from \"./segmented-control-item.component\"\nimport {SegmentedControlDirective} from \"./segmented-control.directive\"\n\n@NgModule({\n declarations: [\n SegmentedControlDirective,\n SegmentedControlItemComponent,\n SegmentedControlItemRootDirective,\n SegmentedControlItemTextDirective,\n SegmentedControlHiddenInputDirective,\n ],\n exports: [\n SegmentedControlDirective,\n SegmentedControlItemComponent,\n SegmentedControlItemRootDirective,\n SegmentedControlItemTextDirective,\n SegmentedControlHiddenInputDirective,\n ],\n imports: [IconDirective],\n})\nexport class SegmentedControlModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1","i2.SegmentedControlItemTextDirective","i3.SegmentedControlHiddenInputDirective"],"mappings":";;;;;;;;;;;AAAA;AACA;AAYM,MAAO,iCAAkC,SAAQ,qBAA6C,CAAA;wGAAvF,iCAAiC,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;4GAAjC,iCAAiC,EAAA,CAAA;;4FAAjC,iCAAiC,EAAA,UAAA,EAAA,CAAA;kBAD7C;;AAGM,MAAM,CACX,6BAA6B,EAC7B,6BAA6B,EAC7B,iCAAiC,EAClC,GACC,gBAAgB,CACd,4BAA4B,EAC5B,iCAAiC;;ACtBrC;AACA;AAQA;;AAEG;AAKG,MAAO,oCAAqC,SAAQ,wCAAwC,CAAA;IAC7E,0BAA0B,GAC3C,6BAA6B,EAAE;AAEjC,IAAA,WAAA,GAAA;AACE,QAAA,KAAK,EAAE;AACP,QAAA,IAAI,CAAC,aAAa,CAAC,UAAU,CAC3B,QAAQ,CAAC,MACP,IAAI,CAAC,0BAA0B,EAAE,CAAC,0BAA0B,EAAE,CAC/D,CACF;IACH;wGAXW,oCAAoC,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAApC,oCAAoC,EAAA,YAAA,EAAA,KAAA,EAAA,QAAA,EAAA,oCAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;4FAApC,oCAAoC,EAAA,UAAA,EAAA,CAAA;kBAJhD,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,oCAAoC;AAC9C,oBAAA,UAAU,EAAE,KAAK;AAClB,iBAAA;;;ACfD;AACA;AAgBM,MAAO,iCAAkC,SAAQ,iCAAiC,CAAA;IACnE,0BAA0B,GAC3C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CAAA;yGAI3B,sBAAsB,EAAA,CAAA;;4FAAtB,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBAjBlC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ,yBAAyB;wBACzB,6BAA6B;wBAC7B,iCAAiC;wBACjC,iCAAiC;wBACjC,oCAAoC;AACrC,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,yBAAyB;wBACzB,6BAA6B;wBAC7B,iCAAiC;wBACjC,iCAAiC;wBACjC,oCAAoC;AACrC,qBAAA;oBACD,OAAO,EAAE,CAAC,aAAa,CAAC;AACzB,iBAAA;;;AC7BD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"qualcomm-ui-angular-segmented-control.mjs","sources":["../../src/segmented-control/qds-segmented-control-context.service.ts","../../src/segmented-control/segmented-control-hidden-input.directive.ts","../../src/segmented-control/segmented-control-item-root.directive.ts","../../src/segmented-control/segmented-control-item-text.directive.ts","../../src/segmented-control/segmented-control-item.component.ts","../../src/segmented-control/segmented-control.directive.ts","../../src/segmented-control/segmented-control.module.ts","../../src/segmented-control/qualcomm-ui-angular-segmented-control.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 {QdsSegmentedControlApi} from \"@qualcomm-ui/qds-core/segmented-control\"\n\n@Injectable()\nexport class QdsSegmentedControlContextService extends BaseApiContextService<QdsSegmentedControlApi> {}\n\nexport const [\n QDS_SEGMENTED_CONTROL_CONTEXT,\n useQdsSegmentedControlContext,\n provideQdsSegmentedControlContext,\n]: ApiContext<QdsSegmentedControlApi> =\n createApiContext<QdsSegmentedControlApi>(\n \"QdsSegmentedControlContext\",\n QdsSegmentedControlContextService,\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 {CoreSegmentedControlHiddenInputDirective} from \"@qualcomm-ui/angular-core/segmented-control\"\n\nimport {useQdsSegmentedControlContext} from \"./qds-segmented-control-context.service\"\n\n/**\n * The segmented control item hidden input.\n */\n@Directive({\n selector: \"[q-segmented-control-hidden-input]\",\n standalone: false,\n})\nexport class SegmentedControlHiddenInputDirective extends CoreSegmentedControlHiddenInputDirective {\n protected readonly qdsSegmentedControlContext =\n useQdsSegmentedControlContext()\n\n constructor() {\n super()\n this.trackBindings.extendWith(\n computed(() =>\n this.qdsSegmentedControlContext().getItemHiddenInputBindings(),\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 {QuiPreloadDirective} from \"@qualcomm-ui/angular/transitions\"\nimport {provideCheckboxContext} from \"@qualcomm-ui/angular-core/checkbox\"\nimport {CoreSegmentedControlItemDirective} from \"@qualcomm-ui/angular-core/segmented-control\"\n\nimport {useQdsSegmentedControlContext} from \"./qds-segmented-control-context.service\"\n\n@Directive({\n hostDirectives: [QuiPreloadDirective],\n providers: [provideCheckboxContext()],\n selector: \"[q-segmented-control-item-root]\",\n standalone: false,\n})\nexport class SegmentedControlItemRootDirective extends CoreSegmentedControlItemDirective {\n protected readonly qdsSegmentedControlContext =\n useQdsSegmentedControlContext()\n\n override ngOnInit() {\n super.ngOnInit()\n\n this.trackBindings.extendWith(\n computed(() => this.qdsSegmentedControlContext().getItemBindings()),\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 {CoreSegmentedControlItemTextDirective} from \"@qualcomm-ui/angular-core/segmented-control\"\n\nimport {useQdsSegmentedControlContext} from \"./qds-segmented-control-context.service\"\n\n/**\n * The text of the segmented control item.\n */\n@Directive({\n selector: \"[q-segmented-control-item-text]\",\n standalone: false,\n})\nexport class SegmentedControlItemTextDirective extends CoreSegmentedControlItemTextDirective {\n protected readonly qdsSegmentedControlContext =\n useQdsSegmentedControlContext()\n\n constructor() {\n super()\n this.trackBindings.extendWith(\n computed(() => this.qdsSegmentedControlContext().getItemTextBindings()),\n )\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Component, input} from \"@angular/core\"\n\nimport {provideCheckboxContext} from \"@qualcomm-ui/angular-core/checkbox\"\nimport type {LucideIcon} from \"@qualcomm-ui/angular-core/lucide\"\n\nimport {SegmentedControlItemRootDirective} from \"./segmented-control-item-root.directive\"\n\n@Component({\n providers: [provideCheckboxContext()],\n selector: \"[q-segmented-control-item]\",\n standalone: false,\n template: `\n <ng-content select=\"[q-segmented-control-item-icon]\">\n @if (icon()) {\n <svg [qIcon]=\"icon()!\"></svg>\n }\n </ng-content>\n <ng-content select=\"[q-segmented-control-item-text]\">\n @if (text()) {\n <span q-segmented-control-item-text>{{ text() }}</span>\n }\n </ng-content>\n <ng-content select=\"[q-segmented-control-hidden-input]\">\n <input q-segmented-control-hidden-input />\n </ng-content>\n `,\n})\nexport class SegmentedControlItemComponent extends SegmentedControlItemRootDirective {\n readonly text = input<string>()\n readonly icon = input<LucideIcon | string>()\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, Directive, inject, input} from \"@angular/core\"\n\nimport {normalizeProps} from \"@qualcomm-ui/angular-core/machine\"\nimport {\n CoreSegmentedControlRootDirective,\n provideSegmentedControlContext,\n} from \"@qualcomm-ui/angular-core/segmented-control\"\nimport type {SignalifyInput} from \"@qualcomm-ui/angular-core/signals\"\nimport {\n createQdsSegmentedControlApi,\n type QdsSegmentedControlApiProps,\n type QdsSegmentedControlLayout,\n type QdsSegmentedControlSize,\n type QdsSegmentedControlVariant,\n} from \"@qualcomm-ui/qds-core/segmented-control\"\n\nimport {\n provideQdsSegmentedControlContext,\n QdsSegmentedControlContextService,\n} from \"./qds-segmented-control-context.service\"\n\n@Directive({\n providers: [\n provideSegmentedControlContext(),\n provideQdsSegmentedControlContext(),\n ],\n selector: \"[q-segmented-control]\",\n standalone: false,\n})\nexport class SegmentedControlDirective\n extends CoreSegmentedControlRootDirective\n implements SignalifyInput<QdsSegmentedControlApiProps>\n{\n /**\n * Governs the width and height of the segmented control as well as the font size\n * of its content.\n */\n readonly size = input<QdsSegmentedControlSize | undefined>()\n\n /**\n * The style variant of the segmented control.\n */\n readonly variant = input<QdsSegmentedControlVariant | undefined>()\n\n /**\n * The style variant of the segmented control.\n */\n readonly layout = input<QdsSegmentedControlLayout | undefined>()\n\n protected readonly qdsSegmentedControlService = inject(\n QdsSegmentedControlContextService,\n )\n\n constructor() {\n super()\n this.trackBindings.extendWith(\n computed(() =>\n this.qdsSegmentedControlService.context().getGroupBindings(),\n ),\n )\n }\n\n override ngOnInit() {\n super.ngOnInit()\n\n const qdsSegmentedControlApi = computed(() =>\n createQdsSegmentedControlApi(\n {\n layout: this.layout(),\n size: this.size(),\n variant: this.variant(),\n },\n normalizeProps,\n ),\n )\n\n this.qdsSegmentedControlService.init(qdsSegmentedControlApi)\n }\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\"\n\nimport {SegmentedControlHiddenInputDirective} from \"./segmented-control-hidden-input.directive\"\nimport {SegmentedControlItemRootDirective} from \"./segmented-control-item-root.directive\"\nimport {SegmentedControlItemTextDirective} from \"./segmented-control-item-text.directive\"\nimport {SegmentedControlItemComponent} from \"./segmented-control-item.component\"\nimport {SegmentedControlDirective} from \"./segmented-control.directive\"\n\n@NgModule({\n declarations: [\n SegmentedControlDirective,\n SegmentedControlItemComponent,\n SegmentedControlItemRootDirective,\n SegmentedControlItemTextDirective,\n SegmentedControlHiddenInputDirective,\n ],\n exports: [\n SegmentedControlDirective,\n SegmentedControlItemComponent,\n SegmentedControlItemRootDirective,\n SegmentedControlItemTextDirective,\n SegmentedControlHiddenInputDirective,\n ],\n imports: [IconDirective],\n})\nexport class SegmentedControlModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1","i2.SegmentedControlItemTextDirective","i3.SegmentedControlHiddenInputDirective"],"mappings":";;;;;;;;;;;AAAA;AACA;AAYM,MAAO,iCAAkC,SAAQ,qBAA6C,CAAA;uGAAvF,iCAAiC,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;2GAAjC,iCAAiC,EAAA,CAAA;;2FAAjC,iCAAiC,EAAA,UAAA,EAAA,CAAA;kBAD7C;;AAGM,MAAM,CACX,6BAA6B,EAC7B,6BAA6B,EAC7B,iCAAiC,EAClC,GACC,gBAAgB,CACd,4BAA4B,EAC5B,iCAAiC;;ACtBrC;AACA;AAQA;;AAEG;AAKG,MAAO,oCAAqC,SAAQ,wCAAwC,CAAA;IAC7E,0BAA0B,GAC3C,6BAA6B,EAAE;AAEjC,IAAA,WAAA,GAAA;AACE,QAAA,KAAK,EAAE;AACP,QAAA,IAAI,CAAC,aAAa,CAAC,UAAU,CAC3B,QAAQ,CAAC,MACP,IAAI,CAAC,0BAA0B,EAAE,CAAC,0BAA0B,EAAE,CAC/D,CACF;IACH;uGAXW,oCAAoC,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAApC,oCAAoC,EAAA,YAAA,EAAA,KAAA,EAAA,QAAA,EAAA,oCAAA,EAAA,eAAA,EAAA,IAAA,EAAA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,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,sBAAsB,iBAf/B,yBAAyB;YACzB,6BAA6B;YAC7B,iCAAiC;YACjC,iCAAiC;YACjC,oCAAoC,CAAA,EAAA,OAAA,EAAA,CAS5B,aAAa,CAAA,EAAA,OAAA,EAAA,CANrB,yBAAyB;YACzB,6BAA6B;YAC7B,iCAAiC;YACjC,iCAAiC;YACjC,oCAAoC,CAAA,EAAA,CAAA;wGAI3B,sBAAsB,EAAA,CAAA;;2FAAtB,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBAjBlC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ,yBAAyB;wBACzB,6BAA6B;wBAC7B,iCAAiC;wBACjC,iCAAiC;wBACjC,oCAAoC;AACrC,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,yBAAyB;wBACzB,6BAA6B;wBAC7B,iCAAiC;wBACjC,iCAAiC;wBACjC,oCAAoC;AACrC,qBAAA;oBACD,OAAO,EAAE,CAAC,aAAa,CAAC;AACzB,iBAAA;;;AC7BD;;AAEG;;;;"}
|
|
@@ -23,10 +23,10 @@ import { PortalDirective } from '@qualcomm-ui/angular-core/portal';
|
|
|
23
23
|
// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
|
|
24
24
|
// SPDX-License-Identifier: BSD-3-Clause-Clear
|
|
25
25
|
class QdsSelectContextService extends BaseApiContextService {
|
|
26
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
27
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
26
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: QdsSelectContextService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
27
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: QdsSelectContextService });
|
|
28
28
|
}
|
|
29
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
29
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: QdsSelectContextService, decorators: [{
|
|
30
30
|
type: Injectable
|
|
31
31
|
}] });
|
|
32
32
|
const [QDS_SELECT_CONTEXT, useQdsSelectContext, provideQdsSelectContext,] = createApiContext("QdsSelectContext", QdsSelectContextService);
|
|
@@ -40,12 +40,12 @@ class SelectClearTriggerDirective extends CoreSelectClearTriggerDirective {
|
|
|
40
40
|
super();
|
|
41
41
|
this.trackBindings.extendWith(computed(() => mergeProps(this.clearTriggerContext.getRootBindings(), this.qdsSelectContext().getClearTriggerBindings())));
|
|
42
42
|
}
|
|
43
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
44
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
43
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: SelectClearTriggerDirective, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
44
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.2", type: SelectClearTriggerDirective, isStandalone: false, selector: "[q-select-clear-trigger]", providers: [provideIcons({ X })], usesInheritance: true, ngImport: i0, template: `
|
|
45
45
|
<svg qIcon="X" [q-bind]="clearTriggerContext.getIconBindings()"></svg>
|
|
46
46
|
`, isInline: true, dependencies: [{ kind: "directive", type: i1.IconDirective, selector: "svg[qIcon]", inputs: ["qIcon", "size", "viewBox", "xmlns", "height", "width"] }, { kind: "directive", type: i2.QBindDirective, selector: "[q-bind]", inputs: ["q-bind", "q-bind-options"] }] });
|
|
47
47
|
}
|
|
48
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
48
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: SelectClearTriggerDirective, decorators: [{
|
|
49
49
|
type: Component,
|
|
50
50
|
args: [{
|
|
51
51
|
providers: [provideIcons({ X })],
|
|
@@ -65,10 +65,10 @@ class SelectContentDirective extends CoreSelectContentDirective {
|
|
|
65
65
|
super();
|
|
66
66
|
this.trackBindings.extendWith(computed(() => this.qdsSelectContext().getContentBindings()));
|
|
67
67
|
}
|
|
68
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
69
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
68
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: SelectContentDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
69
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.2", type: SelectContentDirective, isStandalone: false, selector: "[q-select-content]", usesInheritance: true, ngImport: i0 });
|
|
70
70
|
}
|
|
71
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
71
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: SelectContentDirective, decorators: [{
|
|
72
72
|
type: Directive,
|
|
73
73
|
args: [{
|
|
74
74
|
selector: "[q-select-content]",
|
|
@@ -90,10 +90,10 @@ class SelectContextDirective extends ApiContextDirective {
|
|
|
90
90
|
static ngTemplateContextGuard(dir, ctx) {
|
|
91
91
|
return true;
|
|
92
92
|
}
|
|
93
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
94
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
93
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: SelectContextDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
94
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.2", type: SelectContextDirective, isStandalone: false, selector: "[selectContext]", usesInheritance: true, ngImport: i0 });
|
|
95
95
|
}
|
|
96
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
96
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: SelectContextDirective, decorators: [{
|
|
97
97
|
type: Directive,
|
|
98
98
|
args: [{
|
|
99
99
|
selector: "[selectContext]",
|
|
@@ -109,20 +109,20 @@ class SelectErrorIndicatorDirective extends CoreSelectErrorIndicatorDirective {
|
|
|
109
109
|
*
|
|
110
110
|
* @default CircleAlert
|
|
111
111
|
*/
|
|
112
|
-
icon = input(CircleAlert, ...(ngDevMode ? [{ debugName: "icon" }] : []));
|
|
112
|
+
icon = input(CircleAlert, ...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
|
|
113
113
|
inputErrorIndicatorContext = useInputErrorIndicator();
|
|
114
114
|
constructor() {
|
|
115
115
|
super();
|
|
116
116
|
this.trackBindings.extendWith(() => this.inputErrorIndicatorContext.getBindings());
|
|
117
117
|
}
|
|
118
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
119
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
118
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: SelectErrorIndicatorDirective, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
119
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.2", type: SelectErrorIndicatorDirective, isStandalone: false, selector: "[q-select-error-indicator]", inputs: { icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0, template: `
|
|
120
120
|
<ng-content>
|
|
121
121
|
<svg [qIcon]="icon()"></svg>
|
|
122
122
|
</ng-content>
|
|
123
123
|
`, isInline: true, dependencies: [{ kind: "directive", type: i1.IconDirective, selector: "svg[qIcon]", inputs: ["qIcon", "size", "viewBox", "xmlns", "height", "width"] }] });
|
|
124
124
|
}
|
|
125
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
125
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: SelectErrorIndicatorDirective, decorators: [{
|
|
126
126
|
type: Component,
|
|
127
127
|
args: [{
|
|
128
128
|
selector: "[q-select-error-indicator]",
|
|
@@ -141,21 +141,21 @@ class SelectErrorTextDirective extends CoreSelectErrorTextDirective {
|
|
|
141
141
|
/**
|
|
142
142
|
* Optional error indicator icon.
|
|
143
143
|
*/
|
|
144
|
-
icon = input(...(ngDevMode ? [undefined, { debugName: "icon" }] : []));
|
|
144
|
+
icon = input(...(ngDevMode ? [undefined, { debugName: "icon" }] : /* istanbul ignore next */ []));
|
|
145
145
|
errorTextContext = useInputErrorText();
|
|
146
146
|
constructor() {
|
|
147
147
|
super();
|
|
148
148
|
this.trackBindings.extendWith(() => this.errorTextContext.getBindings());
|
|
149
149
|
}
|
|
150
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
151
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
150
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: SelectErrorTextDirective, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
151
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.2", type: SelectErrorTextDirective, isStandalone: false, selector: "[q-select-error-text]", inputs: { icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0, template: `
|
|
152
152
|
@if (icon()) {
|
|
153
153
|
<svg [qIcon]="icon()!" />
|
|
154
154
|
}
|
|
155
155
|
<ng-content />
|
|
156
156
|
`, isInline: true, dependencies: [{ kind: "directive", type: i1.IconDirective, selector: "svg[qIcon]", inputs: ["qIcon", "size", "viewBox", "xmlns", "height", "width"] }] });
|
|
157
157
|
}
|
|
158
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
158
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: SelectErrorTextDirective, decorators: [{
|
|
159
159
|
type: Component,
|
|
160
160
|
args: [{
|
|
161
161
|
selector: "[q-select-error-text]",
|
|
@@ -177,8 +177,8 @@ class SelectHiddenSelectDirective extends CoreSelectHiddenSelectDirective {
|
|
|
177
177
|
super();
|
|
178
178
|
this.trackBindings.extendWith(computed(() => this.qdsSelectContext().getHiddenSelectBindings()));
|
|
179
179
|
}
|
|
180
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
181
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
180
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: SelectHiddenSelectDirective, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
181
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.2", type: SelectHiddenSelectDirective, isStandalone: false, selector: "select[q-select-hidden-select]", usesInheritance: true, ngImport: i0, template: `
|
|
182
182
|
@if (selectContext().empty) {
|
|
183
183
|
<option value=""></option>
|
|
184
184
|
}
|
|
@@ -189,7 +189,7 @@ class SelectHiddenSelectDirective extends CoreSelectHiddenSelectDirective {
|
|
|
189
189
|
}
|
|
190
190
|
`, isInline: true });
|
|
191
191
|
}
|
|
192
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
192
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: SelectHiddenSelectDirective, decorators: [{
|
|
193
193
|
type: Component,
|
|
194
194
|
args: [{
|
|
195
195
|
selector: "select[q-select-hidden-select]",
|
|
@@ -215,10 +215,10 @@ class SelectHintDirective extends CoreSelectHintDirective {
|
|
|
215
215
|
super();
|
|
216
216
|
this.trackBindings.extendWith(() => this.hintContext.getBindings());
|
|
217
217
|
}
|
|
218
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
219
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
218
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: SelectHintDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
219
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.2", type: SelectHintDirective, isStandalone: false, selector: "[q-select-hint]", usesInheritance: true, ngImport: i0 });
|
|
220
220
|
}
|
|
221
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
221
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: SelectHintDirective, decorators: [{
|
|
222
222
|
type: Directive,
|
|
223
223
|
args: [{
|
|
224
224
|
selector: "[q-select-hint]",
|
|
@@ -234,7 +234,7 @@ class SelectIndicatorDirective {
|
|
|
234
234
|
*
|
|
235
235
|
* @default ChevronDown
|
|
236
236
|
*/
|
|
237
|
-
icon = input(ChevronDown, ...(ngDevMode ? [{ debugName: "icon" }] : []));
|
|
237
|
+
icon = input(ChevronDown, ...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
|
|
238
238
|
qdsSelectContext = useQdsSelectContext();
|
|
239
239
|
selectContext = useSelectContext();
|
|
240
240
|
inlineIconButtonApi = useInlineIconButtonApi({
|
|
@@ -246,12 +246,12 @@ class SelectIndicatorDirective {
|
|
|
246
246
|
ngOnInit() {
|
|
247
247
|
this.trackBindings();
|
|
248
248
|
}
|
|
249
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
250
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
249
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: SelectIndicatorDirective, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
250
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.2", type: SelectIndicatorDirective, isStandalone: false, selector: "[q-select-indicator]", inputs: { icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
251
251
|
<svg [q-bind]="inlineIconButtonApi().getIconBindings()" [qIcon]="icon()" />
|
|
252
252
|
`, isInline: true, dependencies: [{ kind: "directive", type: i1.IconDirective, selector: "svg[qIcon]", inputs: ["qIcon", "size", "viewBox", "xmlns", "height", "width"] }, { kind: "directive", type: i2.QBindDirective, selector: "[q-bind]", inputs: ["q-bind", "q-bind-options"] }] });
|
|
253
253
|
}
|
|
254
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
254
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: SelectIndicatorDirective, decorators: [{
|
|
255
255
|
type: Component,
|
|
256
256
|
args: [{
|
|
257
257
|
selector: "[q-select-indicator]",
|
|
@@ -283,12 +283,12 @@ class SelectItemCheckboxComponent {
|
|
|
283
283
|
ngOnInit() {
|
|
284
284
|
this.trackBindings();
|
|
285
285
|
}
|
|
286
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
287
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
286
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: SelectItemCheckboxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
287
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.2", type: SelectItemCheckboxComponent, isStandalone: false, selector: "[q-select-item-checkbox]", ngImport: i0, template: `
|
|
288
288
|
<q-checkmark-icon />
|
|
289
289
|
`, isInline: true, dependencies: [{ kind: "component", type: i1$1.CheckmarkIconComponent, selector: "q-checkmark-icon", inputs: ["indeterminate", "size"] }] });
|
|
290
290
|
}
|
|
291
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
291
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: SelectItemCheckboxComponent, decorators: [{
|
|
292
292
|
type: Component,
|
|
293
293
|
args: [{
|
|
294
294
|
selector: "[q-select-item-checkbox]",
|
|
@@ -307,14 +307,14 @@ class SelectItemIndicatorDirective extends CoreSelectItemIndicatorDirective {
|
|
|
307
307
|
super();
|
|
308
308
|
this.trackBindings.extendWith(computed(() => this.qdsContext().getItemIndicatorBindings()));
|
|
309
309
|
}
|
|
310
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
311
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
310
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: SelectItemIndicatorDirective, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
311
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.2", type: SelectItemIndicatorDirective, isStandalone: false, selector: "[q-select-item-indicator]", providers: [provideIcons({ Check })], usesInheritance: true, ngImport: i0, template: `
|
|
312
312
|
<ng-content>
|
|
313
313
|
<svg qIcon="Check"></svg>
|
|
314
314
|
</ng-content>
|
|
315
315
|
`, isInline: true, dependencies: [{ kind: "directive", type: i1.IconDirective, selector: "svg[qIcon]", inputs: ["qIcon", "size", "viewBox", "xmlns", "height", "width"] }] });
|
|
316
316
|
}
|
|
317
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
317
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: SelectItemIndicatorDirective, decorators: [{
|
|
318
318
|
type: Component,
|
|
319
319
|
args: [{
|
|
320
320
|
providers: [provideIcons({ Check })],
|
|
@@ -336,10 +336,10 @@ class SelectItemTextDirective extends CoreSelectItemTextDirective {
|
|
|
336
336
|
super();
|
|
337
337
|
this.trackBindings.extendWith(computed(() => this.qdsSelectContext().getItemTextBindings()));
|
|
338
338
|
}
|
|
339
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
340
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
339
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: SelectItemTextDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
340
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.2", type: SelectItemTextDirective, isStandalone: false, selector: "[q-select-item-text]", usesInheritance: true, ngImport: i0 });
|
|
341
341
|
}
|
|
342
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
342
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: SelectItemTextDirective, decorators: [{
|
|
343
343
|
type: Directive,
|
|
344
344
|
args: [{
|
|
345
345
|
selector: "[q-select-item-text]",
|
|
@@ -355,10 +355,10 @@ class SelectItemDirective extends CoreSelectItemDirective {
|
|
|
355
355
|
super();
|
|
356
356
|
this.trackBindings.extendWith(computed(() => this.qdsSelectContext().getItemBindings()));
|
|
357
357
|
}
|
|
358
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
359
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
358
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: SelectItemDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
359
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.2", type: SelectItemDirective, isStandalone: false, selector: "[q-select-item]", providers: [provideSelectItemContext()], usesInheritance: true, ngImport: i0 });
|
|
360
360
|
}
|
|
361
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
361
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: SelectItemDirective, decorators: [{
|
|
362
362
|
type: Directive,
|
|
363
363
|
args: [{
|
|
364
364
|
providers: [provideSelectItemContext()],
|
|
@@ -372,8 +372,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
372
372
|
class SelectItemsComponent {
|
|
373
373
|
selectContext = useSelectContext();
|
|
374
374
|
qdsSelectContext = useQdsSelectContext();
|
|
375
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
376
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
375
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: SelectItemsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
376
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.2", type: SelectItemsComponent, isStandalone: false, selector: "q-select-items", ngImport: i0, template: `
|
|
377
377
|
@for (
|
|
378
378
|
item of selectContext().collection.items;
|
|
379
379
|
track selectContext().collection.getItemValue(item)
|
|
@@ -398,7 +398,7 @@ class SelectItemsComponent {
|
|
|
398
398
|
}
|
|
399
399
|
`, isInline: true, styles: [":host{display:contents}\n"], dependencies: [{ kind: "directive", type: SelectItemDirective, selector: "[q-select-item]" }, { kind: "directive", type: SelectItemTextDirective, selector: "[q-select-item-text]" }, { kind: "component", type: SelectItemCheckboxComponent, selector: "[q-select-item-checkbox]" }, { kind: "component", type: SelectItemIndicatorDirective, selector: "[q-select-item-indicator]" }] });
|
|
400
400
|
}
|
|
401
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
401
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: SelectItemsComponent, decorators: [{
|
|
402
402
|
type: Component,
|
|
403
403
|
args: [{ selector: "q-select-items", standalone: false, template: `
|
|
404
404
|
@for (
|
|
@@ -435,8 +435,8 @@ class SelectLabelDirective extends CoreSelectLabelDirective {
|
|
|
435
435
|
super();
|
|
436
436
|
this.trackBindings.extendWith(computed(() => this.qdsSelectContext().getLabelBindings()));
|
|
437
437
|
}
|
|
438
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
439
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
438
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: SelectLabelDirective, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
439
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.2", type: SelectLabelDirective, isStandalone: false, selector: "[q-select-label]", providers: [provideIcons({ Asterisk })], usesInheritance: true, ngImport: i0, template: `
|
|
440
440
|
<ng-content />
|
|
441
441
|
@if (selectContext().required) {
|
|
442
442
|
<svg
|
|
@@ -447,7 +447,7 @@ class SelectLabelDirective extends CoreSelectLabelDirective {
|
|
|
447
447
|
}
|
|
448
448
|
`, isInline: true, dependencies: [{ kind: "directive", type: i1.IconDirective, selector: "svg[qIcon]", inputs: ["qIcon", "size", "viewBox", "xmlns", "height", "width"] }, { kind: "directive", type: i2.QBindDirective, selector: "[q-bind]", inputs: ["q-bind", "q-bind-options"] }] });
|
|
449
449
|
}
|
|
450
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
450
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: SelectLabelDirective, decorators: [{
|
|
451
451
|
type: Component,
|
|
452
452
|
args: [{
|
|
453
453
|
providers: [provideIcons({ Asterisk })],
|
|
@@ -474,10 +474,10 @@ class SelectPositionerDirective extends CoreSelectPositionerDirective {
|
|
|
474
474
|
super();
|
|
475
475
|
this.trackBindings.extendWith(computed(() => this.qdsContext().getPositionerBindings()));
|
|
476
476
|
}
|
|
477
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
478
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
477
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: SelectPositionerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
478
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.2", type: SelectPositionerDirective, isStandalone: false, selector: "[q-select-positioner]", usesInheritance: true, ngImport: i0 });
|
|
479
479
|
}
|
|
480
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
480
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: SelectPositionerDirective, decorators: [{
|
|
481
481
|
type: Directive,
|
|
482
482
|
args: [{
|
|
483
483
|
selector: "[q-select-positioner]",
|
|
@@ -491,7 +491,7 @@ class SelectRootDirective extends CoreSelectRootDirective {
|
|
|
491
491
|
/**
|
|
492
492
|
* {@link https://lucide.dev lucide icon}, positioned at the start of the trigger element.
|
|
493
493
|
*/
|
|
494
|
-
icon = input(...(ngDevMode ? [undefined, { debugName: "icon" }] : []));
|
|
494
|
+
icon = input(...(ngDevMode ? [undefined, { debugName: "icon" }] : /* istanbul ignore next */ []));
|
|
495
495
|
/**
|
|
496
496
|
* Visual indicator style for selected items. Use "checkbox" for multi-select
|
|
497
497
|
* with always-visible checkboxes on the left, or "checkmark" for a checkmark
|
|
@@ -499,14 +499,14 @@ class SelectRootDirective extends CoreSelectRootDirective {
|
|
|
499
499
|
*
|
|
500
500
|
* @default 'checkmark'
|
|
501
501
|
*/
|
|
502
|
-
selectionIndicator = input("checkmark", ...(ngDevMode ? [{ debugName: "selectionIndicator" }] : []));
|
|
502
|
+
selectionIndicator = input("checkmark", ...(ngDevMode ? [{ debugName: "selectionIndicator" }] : /* istanbul ignore next */ []));
|
|
503
503
|
/**
|
|
504
504
|
* The size of the select and its elements. Governs properties like font size,
|
|
505
505
|
* item padding, and icon sizes.
|
|
506
506
|
*
|
|
507
507
|
* @default 'md'
|
|
508
508
|
*/
|
|
509
|
-
size = input("md", ...(ngDevMode ? [{ debugName: "size" }] : []));
|
|
509
|
+
size = input("md", ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
510
510
|
qdsSelectService = inject(QdsSelectContextService);
|
|
511
511
|
qdsInputService = inject(QdsInputContextService);
|
|
512
512
|
ngOnInit() {
|
|
@@ -521,14 +521,14 @@ class SelectRootDirective extends CoreSelectRootDirective {
|
|
|
521
521
|
}, normalizeProps)));
|
|
522
522
|
super.ngOnInit();
|
|
523
523
|
}
|
|
524
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
525
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
524
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: SelectRootDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
525
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.2", type: SelectRootDirective, isStandalone: false, selector: "[q-select-root]", inputs: { icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, selectionIndicator: { classPropertyName: "selectionIndicator", publicName: "selectionIndicator", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
|
|
526
526
|
provideSelectContext(),
|
|
527
527
|
provideQdsSelectContext(),
|
|
528
528
|
provideQdsInputContext(),
|
|
529
529
|
], usesInheritance: true, ngImport: i0 });
|
|
530
530
|
}
|
|
531
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
531
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: SelectRootDirective, decorators: [{
|
|
532
532
|
type: Directive,
|
|
533
533
|
args: [{
|
|
534
534
|
providers: [
|
|
@@ -550,8 +550,8 @@ class SelectControlDirective extends CoreSelectControlDirective {
|
|
|
550
550
|
super();
|
|
551
551
|
this.trackBindings.extendWith(computed(() => this.qdsSelectContext().getControlBindings()));
|
|
552
552
|
}
|
|
553
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
554
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
553
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: SelectControlDirective, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
554
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.2", type: SelectControlDirective, isStandalone: false, selector: "[q-select-control]", usesInheritance: true, ngImport: i0, template: `
|
|
555
555
|
@if (qdsInputContext().startIcon) {
|
|
556
556
|
<svg
|
|
557
557
|
[q-bind]="qdsSelectContext().getIconBindings()"
|
|
@@ -561,7 +561,7 @@ class SelectControlDirective extends CoreSelectControlDirective {
|
|
|
561
561
|
<ng-content />
|
|
562
562
|
`, isInline: true, dependencies: [{ kind: "directive", type: i1.IconDirective, selector: "svg[qIcon]", inputs: ["qIcon", "size", "viewBox", "xmlns", "height", "width"] }, { kind: "directive", type: i2.QBindDirective, selector: "[q-bind]", inputs: ["q-bind", "q-bind-options"] }] });
|
|
563
563
|
}
|
|
564
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
564
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: SelectControlDirective, decorators: [{
|
|
565
565
|
type: Component,
|
|
566
566
|
args: [{
|
|
567
567
|
selector: "[q-select-control]",
|
|
@@ -586,8 +586,8 @@ class SelectValueTextDirective extends CoreSelectValueTextDirective {
|
|
|
586
586
|
super();
|
|
587
587
|
this.trackBindings.extendWith(computed(() => this.qdsSelectContext().getValueTextBindings()));
|
|
588
588
|
}
|
|
589
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
590
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
589
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: SelectValueTextDirective, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
590
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.2", type: SelectValueTextDirective, isStandalone: false, selector: "[q-select-value-text]", usesInheritance: true, ngImport: i0, template: `
|
|
591
591
|
@if (!value().length) {
|
|
592
592
|
{{ placeholder() }}
|
|
593
593
|
} @else if (!selectContext().multiple) {
|
|
@@ -606,7 +606,7 @@ class SelectValueTextDirective extends CoreSelectValueTextDirective {
|
|
|
606
606
|
}
|
|
607
607
|
`, isInline: true, dependencies: [{ kind: "component", type: i1$2.TagDirective, selector: "span[q-tag], button[q-tag]", inputs: ["disabled", "endIcon", "emphasis", "radius", "size", "startIcon", "variant"], outputs: ["dismiss"] }] });
|
|
608
608
|
}
|
|
609
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
609
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: SelectValueTextDirective, decorators: [{
|
|
610
610
|
type: Component,
|
|
611
611
|
args: [{
|
|
612
612
|
selector: "[q-select-value-text]",
|
|
@@ -640,24 +640,18 @@ class SelectComponent extends SelectRootDirective {
|
|
|
640
640
|
* ARIA label applied to the control element. Use this if you omit the {@link
|
|
641
641
|
* label}
|
|
642
642
|
*/
|
|
643
|
-
ariaLabel = input(undefined, ...(ngDevMode ?
|
|
644
|
-
alias: "aria-label",
|
|
645
|
-
}]));
|
|
643
|
+
ariaLabel = input(undefined, { ...(ngDevMode ? { debugName: "ariaLabel" } : /* istanbul ignore next */ {}), alias: "aria-label" });
|
|
646
644
|
/**
|
|
647
645
|
* When `true`, renders a clear button that resets the input value on click.
|
|
648
646
|
* The button only appears when the input has a value.
|
|
649
647
|
*
|
|
650
648
|
* @default true
|
|
651
649
|
*/
|
|
652
|
-
clearable = input(true, ...(ngDevMode ?
|
|
653
|
-
transform: booleanAttribute,
|
|
654
|
-
}]));
|
|
650
|
+
clearable = input(true, { ...(ngDevMode ? { debugName: "clearable" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
655
651
|
/**
|
|
656
652
|
* Set to true to disable portalling behavior for the select dropdown content.
|
|
657
653
|
*/
|
|
658
|
-
disablePortal = input(undefined, ...(ngDevMode ?
|
|
659
|
-
transform: booleanAttribute,
|
|
660
|
-
}]));
|
|
654
|
+
disablePortal = input(undefined, { ...(ngDevMode ? { debugName: "disablePortal" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
661
655
|
/**
|
|
662
656
|
* Optional error that describes the element when {@link invalid} is true.
|
|
663
657
|
*
|
|
@@ -668,7 +662,7 @@ class SelectComponent extends SelectRootDirective {
|
|
|
668
662
|
* <div q-select-error-text>...</div>
|
|
669
663
|
* ```
|
|
670
664
|
*/
|
|
671
|
-
errorText = input(...(ngDevMode ? [undefined, { debugName: "errorText" }] : []));
|
|
665
|
+
errorText = input(...(ngDevMode ? [undefined, { debugName: "errorText" }] : /* istanbul ignore next */ []));
|
|
672
666
|
/**
|
|
673
667
|
* Optional hint describing the element. This element is automatically
|
|
674
668
|
* associated with the component's input element for accessibility.
|
|
@@ -680,7 +674,7 @@ class SelectComponent extends SelectRootDirective {
|
|
|
680
674
|
* <div q-select-hint>...</div>
|
|
681
675
|
* ```
|
|
682
676
|
*/
|
|
683
|
-
hint = input(...(ngDevMode ? [undefined, { debugName: "hint" }] : []));
|
|
677
|
+
hint = input(...(ngDevMode ? [undefined, { debugName: "hint" }] : /* istanbul ignore next */ []));
|
|
684
678
|
/**
|
|
685
679
|
* Optional label describing the element. Recommended. This element is
|
|
686
680
|
* automatically associated with the component's input element for
|
|
@@ -693,9 +687,9 @@ class SelectComponent extends SelectRootDirective {
|
|
|
693
687
|
* <div q-select-label>...</div>
|
|
694
688
|
* ```
|
|
695
689
|
*/
|
|
696
|
-
label = input(...(ngDevMode ? [undefined, { debugName: "label" }] : []));
|
|
697
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
698
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
690
|
+
label = input(...(ngDevMode ? [undefined, { debugName: "label" }] : /* istanbul ignore next */ []));
|
|
691
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: SelectComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
692
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.2", type: SelectComponent, isStandalone: false, selector: "q-select", inputs: { ariaLabel: { classPropertyName: "ariaLabel", publicName: "aria-label", isSignal: true, isRequired: false, transformFunction: null }, clearable: { classPropertyName: "clearable", publicName: "clearable", isSignal: true, isRequired: false, transformFunction: null }, disablePortal: { classPropertyName: "disablePortal", publicName: "disablePortal", isSignal: true, isRequired: false, transformFunction: null }, errorText: { classPropertyName: "errorText", publicName: "errorText", isSignal: true, isRequired: false, transformFunction: null }, hint: { classPropertyName: "hint", publicName: "hint", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
|
|
699
693
|
provideSelectContext(),
|
|
700
694
|
provideQdsSelectContext(),
|
|
701
695
|
provideQdsInputContext(),
|
|
@@ -773,7 +767,7 @@ class SelectComponent extends SelectRootDirective {
|
|
|
773
767
|
</ng-template>
|
|
774
768
|
`, isInline: true, dependencies: [{ kind: "directive", type: i1$3.PortalDirective, selector: "[qPortal]", inputs: ["disabled", "container"] }, { kind: "component", type: SelectClearTriggerDirective, selector: "[q-select-clear-trigger]" }, { kind: "directive", type: SelectContentDirective, selector: "[q-select-content]" }, { kind: "component", type: SelectHiddenSelectDirective, selector: "select[q-select-hidden-select]" }, { kind: "directive", type: SelectItemDirective, selector: "[q-select-item]" }, { kind: "directive", type: SelectItemTextDirective, selector: "[q-select-item-text]" }, { kind: "component", type: SelectItemCheckboxComponent, selector: "[q-select-item-checkbox]" }, { kind: "component", type: SelectItemIndicatorDirective, selector: "[q-select-item-indicator]" }, { kind: "component", type: SelectLabelDirective, selector: "[q-select-label]" }, { kind: "directive", type: SelectPositionerDirective, selector: "[q-select-positioner]" }, { kind: "component", type: SelectControlDirective, selector: "[q-select-control]" }, { kind: "component", type: SelectValueTextDirective, selector: "[q-select-value-text]" }, { kind: "component", type: SelectErrorTextDirective, selector: "[q-select-error-text]", inputs: ["icon"] }, { kind: "component", type: SelectErrorIndicatorDirective, selector: "[q-select-error-indicator]", inputs: ["icon"] }, { kind: "directive", type: SelectHintDirective, selector: "[q-select-hint]" }, { kind: "component", type: SelectIndicatorDirective, selector: "[q-select-indicator]", inputs: ["icon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
775
769
|
}
|
|
776
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
770
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: SelectComponent, decorators: [{
|
|
777
771
|
type: Component,
|
|
778
772
|
args: [{
|
|
779
773
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
@@ -863,8 +857,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
863
857
|
// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
|
|
864
858
|
// SPDX-License-Identifier: BSD-3-Clause-Clear
|
|
865
859
|
class SelectModule {
|
|
866
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
867
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
860
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: SelectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
861
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.2", ngImport: i0, type: SelectModule, declarations: [SelectComponent,
|
|
868
862
|
SelectRootDirective,
|
|
869
863
|
SelectClearTriggerDirective,
|
|
870
864
|
SelectContentDirective,
|
|
@@ -905,10 +899,10 @@ class SelectModule {
|
|
|
905
899
|
SelectHintDirective,
|
|
906
900
|
SelectIndicatorDirective,
|
|
907
901
|
SelectItemsComponent] });
|
|
908
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
902
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: SelectModule, imports: [CheckmarkIconComponent,
|
|
909
903
|
TagDirective] });
|
|
910
904
|
}
|
|
911
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
905
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: SelectModule, decorators: [{
|
|
912
906
|
type: NgModule,
|
|
913
907
|
args: [{
|
|
914
908
|
declarations: [
|