@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
|
@@ -26,12 +26,12 @@ class TextInputClearTriggerDirective extends CoreTextInputClearTriggerDirective
|
|
|
26
26
|
super();
|
|
27
27
|
this.trackBindings.extendWith(computed(() => this.clearTriggerContext.getRootBindings()));
|
|
28
28
|
}
|
|
29
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
30
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
29
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: TextInputClearTriggerDirective, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
30
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.2", type: TextInputClearTriggerDirective, isStandalone: false, selector: "[q-text-input-clear-trigger]", providers: [provideIcons({ X })], usesInheritance: true, hostDirectives: [{ directive: i1$1.QuiPreloadDirective }], ngImport: i0, template: `
|
|
31
31
|
<svg qIcon="X" [q-bind]="clearTriggerContext.getIconBindings()"></svg>
|
|
32
32
|
`, isInline: true, dependencies: [{ kind: "directive", type: i2.QBindDirective, selector: "[q-bind]", inputs: ["q-bind", "q-bind-options"] }, { kind: "directive", type: i1.IconDirective, selector: "svg[qIcon]", inputs: ["qIcon", "size", "viewBox", "xmlns", "height", "width"] }] });
|
|
33
33
|
}
|
|
34
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
34
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: TextInputClearTriggerDirective, decorators: [{
|
|
35
35
|
type: Component,
|
|
36
36
|
args: [{
|
|
37
37
|
hostDirectives: [QuiPreloadDirective],
|
|
@@ -55,20 +55,20 @@ class TextInputErrorIndicatorDirective extends CoreTextInputErrorIndicatorDirect
|
|
|
55
55
|
*
|
|
56
56
|
* @default CircleAlert
|
|
57
57
|
*/
|
|
58
|
-
icon = input(CircleAlert, ...(ngDevMode ? [{ debugName: "icon" }] : []));
|
|
58
|
+
icon = input(CircleAlert, ...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
|
|
59
59
|
inputErrorIndicatorContext = useInputErrorIndicator();
|
|
60
60
|
constructor() {
|
|
61
61
|
super();
|
|
62
62
|
this.trackBindings.extendWith(() => this.inputErrorIndicatorContext.getBindings());
|
|
63
63
|
}
|
|
64
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
65
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
64
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: TextInputErrorIndicatorDirective, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
65
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.2", type: TextInputErrorIndicatorDirective, isStandalone: false, selector: "[q-text-input-error-indicator]", inputs: { icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0, template: `
|
|
66
66
|
<ng-content>
|
|
67
67
|
<svg [qIcon]="icon()"></svg>
|
|
68
68
|
</ng-content>
|
|
69
69
|
`, isInline: true, dependencies: [{ kind: "directive", type: i1.IconDirective, selector: "svg[qIcon]", inputs: ["qIcon", "size", "viewBox", "xmlns", "height", "width"] }] });
|
|
70
70
|
}
|
|
71
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
71
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: TextInputErrorIndicatorDirective, decorators: [{
|
|
72
72
|
type: Component,
|
|
73
73
|
args: [{
|
|
74
74
|
selector: "[q-text-input-error-indicator]",
|
|
@@ -90,21 +90,21 @@ class TextInputErrorTextDirective extends CoreTextInputErrorTextDirective {
|
|
|
90
90
|
/**
|
|
91
91
|
* Optional error indicator icon.
|
|
92
92
|
*/
|
|
93
|
-
icon = input(...(ngDevMode ? [undefined, { debugName: "icon" }] : []));
|
|
93
|
+
icon = input(...(ngDevMode ? [undefined, { debugName: "icon" }] : /* istanbul ignore next */ []));
|
|
94
94
|
errorTextContext = useInputErrorText();
|
|
95
95
|
constructor() {
|
|
96
96
|
super();
|
|
97
97
|
this.trackBindings.extendWith(() => this.errorTextContext.getBindings());
|
|
98
98
|
}
|
|
99
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
100
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
99
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: TextInputErrorTextDirective, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
100
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.2", type: TextInputErrorTextDirective, isStandalone: false, selector: "[q-text-input-error-text]", inputs: { icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0, template: `
|
|
101
101
|
@if (icon()) {
|
|
102
102
|
<svg [qIcon]="icon()!" />
|
|
103
103
|
}
|
|
104
104
|
<ng-content />
|
|
105
105
|
`, isInline: true, dependencies: [{ kind: "directive", type: i1.IconDirective, selector: "svg[qIcon]", inputs: ["qIcon", "size", "viewBox", "xmlns", "height", "width"] }] });
|
|
106
106
|
}
|
|
107
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
107
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: TextInputErrorTextDirective, decorators: [{
|
|
108
108
|
type: Component,
|
|
109
109
|
args: [{
|
|
110
110
|
selector: "[q-text-input-error-text]",
|
|
@@ -129,10 +129,10 @@ class TextInputHintDirective extends CoreTextInputHintDirective {
|
|
|
129
129
|
super();
|
|
130
130
|
this.trackBindings.extendWith(() => this.hintContext.getBindings());
|
|
131
131
|
}
|
|
132
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
133
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
132
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: TextInputHintDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
133
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.2", type: TextInputHintDirective, isStandalone: false, selector: "[q-text-input-hint]", usesInheritance: true, ngImport: i0 });
|
|
134
134
|
}
|
|
135
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
135
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: TextInputHintDirective, decorators: [{
|
|
136
136
|
type: Directive,
|
|
137
137
|
args: [{
|
|
138
138
|
selector: "[q-text-input-hint]",
|
|
@@ -151,8 +151,8 @@ class TextInputInputGroupDirective extends CoreTextInputInputGroupDirective {
|
|
|
151
151
|
super();
|
|
152
152
|
this.trackBindings.extendWith(() => this.inputGroupContext().getBindings());
|
|
153
153
|
}
|
|
154
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
155
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
154
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: TextInputInputGroupDirective, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
155
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.2", type: TextInputInputGroupDirective, isStandalone: false, selector: "[q-text-input-input-group]", usesInheritance: true, ngImport: i0, template: `
|
|
156
156
|
<ng-content select="[q-input-start-icon]">
|
|
157
157
|
@if (inputGroupContext().startIcon) {
|
|
158
158
|
<div q-input-start-icon [icon]="inputGroupContext().startIcon"></div>
|
|
@@ -166,7 +166,7 @@ class TextInputInputGroupDirective extends CoreTextInputInputGroupDirective {
|
|
|
166
166
|
</ng-content>
|
|
167
167
|
`, isInline: true, dependencies: [{ kind: "component", type: i1$2.InputStartIconComponent, selector: "[q-input-start-icon]", inputs: ["icon"] }, { kind: "component", type: i1$2.InputEndIconComponent, selector: "[q-input-end-icon]", inputs: ["icon"] }] });
|
|
168
168
|
}
|
|
169
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
169
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: TextInputInputGroupDirective, decorators: [{
|
|
170
170
|
type: Component,
|
|
171
171
|
args: [{
|
|
172
172
|
selector: "[q-text-input-input-group]",
|
|
@@ -203,10 +203,10 @@ class TextInputInputDirective extends CoreTextInputInputDirective {
|
|
|
203
203
|
});
|
|
204
204
|
this.trackBindings.extendWith(() => this.inputContext.getBindings());
|
|
205
205
|
}
|
|
206
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
207
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
206
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: TextInputInputDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
207
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.2", type: TextInputInputDirective, isStandalone: false, selector: "[q-text-input-input]", usesInheritance: true, ngImport: i0 });
|
|
208
208
|
}
|
|
209
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
209
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: TextInputInputDirective, decorators: [{
|
|
210
210
|
type: Directive,
|
|
211
211
|
args: [{
|
|
212
212
|
selector: "[q-text-input-input]",
|
|
@@ -225,8 +225,8 @@ class TextInputLabelDirective extends CoreTextInputLabelDirective {
|
|
|
225
225
|
super();
|
|
226
226
|
this.trackBindings.extendWith(computed(() => this.qdsInputContext().getLabelBindings()));
|
|
227
227
|
}
|
|
228
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
229
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
228
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: TextInputLabelDirective, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
229
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.2", type: TextInputLabelDirective, isStandalone: false, selector: "[q-text-input-label]", providers: [provideIcons({ Asterisk })], usesInheritance: true, ngImport: i0, template: `
|
|
230
230
|
<ng-content />
|
|
231
231
|
@if (textInputContext().required) {
|
|
232
232
|
<svg
|
|
@@ -237,7 +237,7 @@ class TextInputLabelDirective extends CoreTextInputLabelDirective {
|
|
|
237
237
|
}
|
|
238
238
|
`, isInline: true, dependencies: [{ kind: "directive", type: i2.QBindDirective, selector: "[q-bind]", inputs: ["q-bind", "q-bind-options"] }, { kind: "directive", type: i1.IconDirective, selector: "svg[qIcon]", inputs: ["qIcon", "size", "viewBox", "xmlns", "height", "width"] }] });
|
|
239
239
|
}
|
|
240
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
240
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: TextInputLabelDirective, decorators: [{
|
|
241
241
|
type: Component,
|
|
242
242
|
args: [{
|
|
243
243
|
providers: [provideIcons({ Asterisk })],
|
|
@@ -275,14 +275,14 @@ class TextInputRootDirective extends CoreTextInputRootDirective {
|
|
|
275
275
|
* </div>
|
|
276
276
|
* ```
|
|
277
277
|
*/
|
|
278
|
-
endIcon = input(...(ngDevMode ? [undefined, { debugName: "endIcon" }] : []));
|
|
278
|
+
endIcon = input(...(ngDevMode ? [undefined, { debugName: "endIcon" }] : /* istanbul ignore next */ []));
|
|
279
279
|
/**
|
|
280
280
|
* The size of the input field and its elements. Governs properties like font
|
|
281
281
|
* size, item padding, and icon sizes.
|
|
282
282
|
*
|
|
283
283
|
* @default 'md'
|
|
284
284
|
*/
|
|
285
|
-
size = input(...(ngDevMode ? [undefined, { debugName: "size" }] : []));
|
|
285
|
+
size = input(...(ngDevMode ? [undefined, { debugName: "size" }] : /* istanbul ignore next */ []));
|
|
286
286
|
/**
|
|
287
287
|
* {@link https://lucide.dev lucide-angular} icon, positioned before
|
|
288
288
|
* the input.
|
|
@@ -296,7 +296,7 @@ class TextInputRootDirective extends CoreTextInputRootDirective {
|
|
|
296
296
|
* </div>
|
|
297
297
|
* ```
|
|
298
298
|
*/
|
|
299
|
-
startIcon = input(...(ngDevMode ? [undefined, { debugName: "startIcon" }] : []));
|
|
299
|
+
startIcon = input(...(ngDevMode ? [undefined, { debugName: "startIcon" }] : /* istanbul ignore next */ []));
|
|
300
300
|
qdsInputService = inject(QdsInputContextService);
|
|
301
301
|
trackBindings = useTrackBindings(() => mergeProps(this.textInputService.context().getRootBindings(), this.qdsInputService.context().getRootBindings()));
|
|
302
302
|
ngOnInit() {
|
|
@@ -305,14 +305,14 @@ class TextInputRootDirective extends CoreTextInputRootDirective {
|
|
|
305
305
|
endIcon: this.endIcon(),
|
|
306
306
|
size: this.size(),
|
|
307
307
|
startIcon: this.startIcon(),
|
|
308
|
-
}, normalizeProps), ...(ngDevMode ? [{ debugName: "inputApi" }] : []));
|
|
308
|
+
}, normalizeProps), ...(ngDevMode ? [{ debugName: "inputApi" }] : /* istanbul ignore next */ []));
|
|
309
309
|
this.qdsInputService.init(inputApi);
|
|
310
310
|
this.trackBindings();
|
|
311
311
|
}
|
|
312
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
313
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
312
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: TextInputRootDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
313
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.2", type: TextInputRootDirective, isStandalone: false, selector: "[q-text-input-root]", inputs: { 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: [provideTextInputContext(), provideQdsInputContext()], usesInheritance: true, ngImport: i0 });
|
|
314
314
|
}
|
|
315
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
315
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: TextInputRootDirective, decorators: [{
|
|
316
316
|
type: Directive,
|
|
317
317
|
args: [{
|
|
318
318
|
providers: [provideTextInputContext(), provideQdsInputContext()],
|
|
@@ -330,9 +330,7 @@ class TextInputComponent extends TextInputRootDirective {
|
|
|
330
330
|
*
|
|
331
331
|
* @default true
|
|
332
332
|
*/
|
|
333
|
-
clearable = input(true, ...(ngDevMode ?
|
|
334
|
-
transform: booleanAttribute,
|
|
335
|
-
}]));
|
|
333
|
+
clearable = input(true, { ...(ngDevMode ? { debugName: "clearable" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
336
334
|
/**
|
|
337
335
|
* Optional error that describes the element when {@link invalid} is true.
|
|
338
336
|
*
|
|
@@ -343,7 +341,7 @@ class TextInputComponent extends TextInputRootDirective {
|
|
|
343
341
|
* <div q-text-input-error-text>...</div>
|
|
344
342
|
* ```
|
|
345
343
|
*/
|
|
346
|
-
errorText = input(...(ngDevMode ? [undefined, { debugName: "errorText" }] : []));
|
|
344
|
+
errorText = input(...(ngDevMode ? [undefined, { debugName: "errorText" }] : /* istanbul ignore next */ []));
|
|
347
345
|
/**
|
|
348
346
|
* Optional hint describing the element. This element is automatically
|
|
349
347
|
* associated with the component's input element for accessibility.
|
|
@@ -355,7 +353,7 @@ class TextInputComponent extends TextInputRootDirective {
|
|
|
355
353
|
* <div q-text-input-hint>...</div>
|
|
356
354
|
* ```
|
|
357
355
|
*/
|
|
358
|
-
hint = input(...(ngDevMode ? [undefined, { debugName: "hint" }] : []));
|
|
356
|
+
hint = input(...(ngDevMode ? [undefined, { debugName: "hint" }] : /* istanbul ignore next */ []));
|
|
359
357
|
/**
|
|
360
358
|
* Optional label describing the element. Recommended. This element is
|
|
361
359
|
* automatically associated with the component's input element for
|
|
@@ -368,14 +366,14 @@ class TextInputComponent extends TextInputRootDirective {
|
|
|
368
366
|
* <div q-text-input-label>...</div>
|
|
369
367
|
* ```
|
|
370
368
|
*/
|
|
371
|
-
label = input(...(ngDevMode ? [undefined, { debugName: "label" }] : []));
|
|
369
|
+
label = input(...(ngDevMode ? [undefined, { debugName: "label" }] : /* istanbul ignore next */ []));
|
|
372
370
|
/**
|
|
373
371
|
* HTML {@link https://www.w3schools.com/tags/att_input_placeholder.asp placeholder} attribute,
|
|
374
372
|
* passed to the internal input element.
|
|
375
373
|
*/
|
|
376
|
-
placeholder = input("", ...(ngDevMode ? [{ debugName: "placeholder" }] : []));
|
|
377
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
378
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
374
|
+
placeholder = input("", ...(ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []));
|
|
375
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: TextInputComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
376
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.2", type: TextInputComponent, isStandalone: false, selector: "q-text-input:not([q-text-input-root])", inputs: { clearable: { classPropertyName: "clearable", publicName: "clearable", 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 }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
|
|
379
377
|
provideTextInputContext(),
|
|
380
378
|
provideQdsInputContext(),
|
|
381
379
|
provideIcons({ AlertCircle }),
|
|
@@ -415,7 +413,7 @@ class TextInputComponent extends TextInputRootDirective {
|
|
|
415
413
|
</ng-content>
|
|
416
414
|
`, isInline: true, dependencies: [{ kind: "component", type: TextInputClearTriggerDirective, selector: "[q-text-input-clear-trigger]" }, { kind: "component", type: TextInputErrorTextDirective, selector: "[q-text-input-error-text]", inputs: ["icon"] }, { kind: "directive", type: TextInputHintDirective, selector: "[q-text-input-hint]" }, { kind: "directive", type: TextInputInputDirective, selector: "[q-text-input-input]" }, { kind: "component", type: TextInputInputGroupDirective, selector: "[q-text-input-input-group]" }, { kind: "component", type: TextInputLabelDirective, selector: "[q-text-input-label]" }, { kind: "component", type: TextInputErrorIndicatorDirective, selector: "[q-text-input-error-indicator]", inputs: ["icon"] }] });
|
|
417
415
|
}
|
|
418
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
416
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: TextInputComponent, decorators: [{
|
|
419
417
|
type: Component,
|
|
420
418
|
args: [{
|
|
421
419
|
providers: [
|
|
@@ -466,8 +464,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
466
464
|
// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
|
|
467
465
|
// SPDX-License-Identifier: BSD-3-Clause-Clear
|
|
468
466
|
class TextInputModule {
|
|
469
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
470
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
467
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: TextInputModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
468
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.2", ngImport: i0, type: TextInputModule, declarations: [TextInputComponent,
|
|
471
469
|
TextInputClearTriggerDirective,
|
|
472
470
|
TextInputRootDirective,
|
|
473
471
|
TextInputErrorTextDirective,
|
|
@@ -487,10 +485,10 @@ class TextInputModule {
|
|
|
487
485
|
TextInputInputGroupDirective,
|
|
488
486
|
TextInputLabelDirective,
|
|
489
487
|
TextInputErrorIndicatorDirective] });
|
|
490
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
488
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: TextInputModule, imports: [InputStartIconComponent,
|
|
491
489
|
InputEndIconComponent] });
|
|
492
490
|
}
|
|
493
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
491
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: TextInputModule, decorators: [{
|
|
494
492
|
type: NgModule,
|
|
495
493
|
args: [{
|
|
496
494
|
declarations: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"qualcomm-ui-angular-text-input.mjs","sources":["../../src/text-input/text-input-clear-trigger.directive.ts","../../src/text-input/text-input-error-indicator.directive.ts","../../src/text-input/text-input-error-text.directive.ts","../../src/text-input/text-input-hint.directive.ts","../../src/text-input/text-input-input-group.directive.ts","../../src/text-input/text-input-input.directive.ts","../../src/text-input/text-input-label.directive.ts","../../src/text-input/text-input-root.directive.ts","../../src/text-input/text-input.component.ts","../../src/text-input/text-input.module.ts","../../src/text-input/qualcomm-ui-angular-text-input.ts"],"sourcesContent":["// 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 {useInputClearTrigger} from \"@qualcomm-ui/angular/input\"\nimport {QuiPreloadDirective} from \"@qualcomm-ui/angular/transitions\"\nimport {provideIcons} from \"@qualcomm-ui/angular-core/lucide\"\nimport {CoreTextInputClearTriggerDirective} from \"@qualcomm-ui/angular-core/text-input\"\n\n/**\n * Button that clears the input value.\n */\n@Component({\n hostDirectives: [QuiPreloadDirective],\n providers: [provideIcons({X})],\n selector: \"[q-text-input-clear-trigger]\",\n standalone: false,\n template: `\n <svg qIcon=\"X\" [q-bind]=\"clearTriggerContext.getIconBindings()\"></svg>\n `,\n})\nexport class TextInputClearTriggerDirective extends CoreTextInputClearTriggerDirective {\n protected readonly clearTriggerContext = useInputClearTrigger()\n\n constructor() {\n super()\n this.trackBindings.extendWith(\n computed(() => this.clearTriggerContext.getRootBindings()),\n )\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Component, input} from \"@angular/core\"\nimport {CircleAlert} from \"lucide-angular\"\n\nimport {useInputErrorIndicator} from \"@qualcomm-ui/angular/input\"\nimport type {LucideIconOrString} from \"@qualcomm-ui/angular-core/lucide\"\nimport {CoreTextInputErrorIndicatorDirective} from \"@qualcomm-ui/angular-core/text-input\"\n\n/**\n * Visual indicator displayed when the input is invalid.\n */\n@Component({\n selector: \"[q-text-input-error-indicator]\",\n standalone: false,\n template: `\n <ng-content>\n <svg [qIcon]=\"icon()\"></svg>\n </ng-content>\n `,\n})\nexport class TextInputErrorIndicatorDirective extends CoreTextInputErrorIndicatorDirective {\n /**\n * lucide-angular icon\n *\n * @default CircleAlert\n */\n readonly icon = input<LucideIconOrString>(CircleAlert)\n\n protected readonly inputErrorIndicatorContext = useInputErrorIndicator()\n\n constructor() {\n super()\n this.trackBindings.extendWith(() =>\n this.inputErrorIndicatorContext.getBindings(),\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 {useInputErrorText} from \"@qualcomm-ui/angular/input\"\nimport type {LucideIcon} from \"@qualcomm-ui/angular-core/lucide\"\nimport {CoreTextInputErrorTextDirective} from \"@qualcomm-ui/angular-core/text-input\"\n\n/**\n * Error message displayed when the input is invalid.\n */\n@Component({\n selector: \"[q-text-input-error-text]\",\n standalone: false,\n template: `\n @if (icon()) {\n <svg [qIcon]=\"icon()!\" />\n }\n <ng-content />\n `,\n})\nexport class TextInputErrorTextDirective extends CoreTextInputErrorTextDirective {\n /**\n * Optional error indicator icon.\n */\n readonly icon = input<LucideIcon | string>()\n\n protected readonly errorTextContext = useInputErrorText()\n\n constructor() {\n super()\n this.trackBindings.extendWith(() => this.errorTextContext.getBindings())\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Directive} from \"@angular/core\"\n\nimport {useInputHint} from \"@qualcomm-ui/angular/input\"\nimport {CoreTextInputHintDirective} from \"@qualcomm-ui/angular-core/text-input\"\n\n/**\n * Helper text displayed below the input.\n */\n@Directive({\n selector: \"[q-text-input-hint]\",\n standalone: false,\n})\nexport class TextInputHintDirective extends CoreTextInputHintDirective {\n protected readonly hintContext = useInputHint()\n\n constructor() {\n super()\n this.trackBindings.extendWith(() => this.hintContext.getBindings())\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Component} from \"@angular/core\"\n\nimport {useInputGroup} from \"@qualcomm-ui/angular/input\"\nimport {CoreTextInputInputGroupDirective} from \"@qualcomm-ui/angular-core/text-input\"\n\n/**\n * Container that wraps the input element and optional icons.\n */\n@Component({\n selector: \"[q-text-input-input-group]\",\n standalone: false,\n template: `\n <ng-content select=\"[q-input-start-icon]\">\n @if (inputGroupContext().startIcon) {\n <div q-input-start-icon [icon]=\"inputGroupContext().startIcon\"></div>\n }\n </ng-content>\n <ng-content />\n <ng-content select=\"[q-input-end-icon]\">\n @if (inputGroupContext().endIcon) {\n <div q-input-end-icon [icon]=\"inputGroupContext().endIcon\"></div>\n }\n </ng-content>\n `,\n})\nexport class TextInputInputGroupDirective extends CoreTextInputInputGroupDirective {\n protected readonly inputGroupContext = useInputGroup()\n\n constructor() {\n super()\n this.trackBindings.extendWith(() => this.inputGroupContext().getBindings())\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Directive} from \"@angular/core\"\n\nimport {useInputInput} from \"@qualcomm-ui/angular/input\"\nimport {useForbiddenFormControlWarning} from \"@qualcomm-ui/angular-core/forms\"\nimport {CoreTextInputInputDirective} from \"@qualcomm-ui/angular-core/text-input\"\n\n/**\n * The text input element. Note: do not apply form control bindings like `ngModel`\n * or `formControl` to this element. Apply them to the root element instead.\n */\n@Directive({\n selector: \"[q-text-input-input]\",\n standalone: false,\n})\nexport class TextInputInputDirective extends CoreTextInputInputDirective {\n protected readonly inputContext = useInputInput()\n\n constructor() {\n super()\n useForbiddenFormControlWarning({\n directive: \"q-text-input-input\",\n rootDirective: \"q-text-input\",\n })\n this.trackBindings.extendWith(() => this.inputContext.getBindings())\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 {Asterisk} from \"lucide-angular\"\n\nimport {useQdsInputContext} from \"@qualcomm-ui/angular/input\"\nimport {provideIcons} from \"@qualcomm-ui/angular-core/lucide\"\nimport {CoreTextInputLabelDirective} from \"@qualcomm-ui/angular-core/text-input\"\n\n/**\n * An accessible label that is automatically associated with the input.\n */\n@Component({\n providers: [provideIcons({Asterisk})],\n selector: \"[q-text-input-label]\",\n standalone: false,\n template: `\n <ng-content />\n @if (textInputContext().required) {\n <svg\n qIcon=\"Asterisk\"\n size=\"xs\"\n [q-bind]=\"qdsInputContext().getRequiredIndicatorBindings()\"\n ></svg>\n }\n `,\n})\nexport class TextInputLabelDirective extends CoreTextInputLabelDirective {\n protected readonly qdsInputContext = useQdsInputContext()\n\n constructor() {\n super()\n this.trackBindings.extendWith(\n computed(() => this.qdsInputContext().getLabelBindings()),\n )\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, Directive, inject, input, type OnInit} from \"@angular/core\"\n\nimport {\n provideQdsInputContext,\n type QdsAngularInputApiProps,\n QdsInputContextService,\n} from \"@qualcomm-ui/angular/input\"\nimport type {LucideIcon} 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 CoreTextInputRootDirective,\n provideTextInputContext,\n} from \"@qualcomm-ui/angular-core/text-input\"\nimport {createQdsInputApi, type QdsInputSize} from \"@qualcomm-ui/qds-core/input\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\n/**\n * Groups all parts of the text input.\n */\n@Directive({\n providers: [provideTextInputContext(), provideQdsInputContext()],\n selector: \"[q-text-input-root]\",\n standalone: false,\n})\nexport class TextInputRootDirective\n extends CoreTextInputRootDirective\n implements SignalifyInput<QdsAngularInputApiProps>, OnInit\n{\n /**\n * {@link https://lucide.dev lucide-angular} icon, positioned after\n * the input.\n *\n * @remarks\n * To customize the element, provide it using the directive instead:\n *\n * ```angular-html\n * <div q-text-input-input-group>\n * <div q-input-end-icon [icon]=\"...\"></div>\n * </div>\n * ```\n */\n readonly endIcon = input<LucideIcon | string | undefined>()\n\n /**\n * The size of the input field and its elements. Governs properties like font\n * size, item padding, and icon sizes.\n *\n * @default 'md'\n */\n readonly size = input<QdsInputSize>()\n\n /**\n * {@link https://lucide.dev lucide-angular} icon, positioned before\n * the input.\n *\n * @remarks\n * To customize the element, provide it using the directive instead:\n *\n * ```angular-html\n * <div q-text-input-input-group>\n * <div q-input-start-icon [icon]=\"...\"></div>\n * </div>\n * ```\n */\n readonly startIcon = input<LucideIcon | string | undefined>()\n\n protected readonly qdsInputService = inject(QdsInputContextService)\n\n protected override readonly trackBindings = useTrackBindings(() =>\n mergeProps(\n this.textInputService.context().getRootBindings(),\n this.qdsInputService.context().getRootBindings(),\n ),\n )\n\n override ngOnInit() {\n super.ngOnInit()\n\n const inputApi = computed(() =>\n createQdsInputApi(\n {\n endIcon: this.endIcon(),\n size: this.size(),\n startIcon: this.startIcon(),\n },\n normalizeProps,\n ),\n )\n\n this.qdsInputService.init(inputApi)\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 {booleanAttribute, Component, input} from \"@angular/core\"\nimport {AlertCircle} from \"lucide-angular\"\n\nimport {provideQdsInputContext} from \"@qualcomm-ui/angular/input\"\nimport {provideIcons} from \"@qualcomm-ui/angular-core/lucide\"\nimport {provideTextInputContext} from \"@qualcomm-ui/angular-core/text-input\"\nimport type {Booleanish} from \"@qualcomm-ui/utils/coercion\"\n\nimport {TextInputRootDirective} from \"./text-input-root.directive\"\n\n@Component({\n providers: [\n provideTextInputContext(),\n provideQdsInputContext(),\n provideIcons({AlertCircle}),\n ],\n selector: \"q-text-input:not([q-text-input-root])\",\n standalone: false,\n template: `\n <ng-content select=\"[q-text-input-label]\">\n @if (label()) {\n <label q-text-input-label>{{ label() }}</label>\n }\n </ng-content>\n <div q-text-input-input-group>\n <input q-text-input-input [placeholder]=\"placeholder()\" />\n\n <ng-content select=\"[q-text-input-clear-trigger]\">\n @if (clearable()) {\n <button q-text-input-clear-trigger></button>\n }\n </ng-content>\n\n <ng-content select=\"[q-text-input-error-indicator]\">\n <span q-text-input-error-indicator></span>\n </ng-content>\n </div>\n <ng-content select=\"[q-text-input-hint]\">\n @if (hint()) {\n <span q-text-input-hint>\n {{ hint() }}\n </span>\n }\n </ng-content>\n\n <ng-content select=\"[q-text-input-error-text]\">\n @if (errorText()) {\n <div q-text-input-error-text>\n {{ errorText() }}\n </div>\n }\n </ng-content>\n `,\n})\nexport class TextInputComponent extends TextInputRootDirective {\n /**\n * When `true`, renders a clear button that resets the input value on click.\n * The button only appears when the input has a value.\n *\n * @default true\n */\n readonly clearable = input<boolean | undefined, Booleanish>(true, {\n transform: booleanAttribute,\n })\n\n /**\n * Optional error that describes the element when {@link invalid} is true.\n *\n * @remarks\n * To customize the element, provide it using the directive instead:\n *\n * ```angular-html\n * <div q-text-input-error-text>...</div>\n * ```\n */\n readonly errorText = input<string | undefined | null>()\n\n /**\n * Optional hint describing the element. This element is automatically\n * associated with the component's input element for accessibility.\n *\n * @remarks\n * To customize the element, provide it using the directive instead:\n *\n * ```angular-html\n * <div q-text-input-hint>...</div>\n * ```\n */\n readonly hint = input<string | undefined | null>()\n\n /**\n * Optional label describing the element. Recommended. This element is\n * automatically associated with the component's input element for\n * accessibility.\n *\n * @remarks\n * To customize the element, provide it using the directive instead:\n *\n * ```angular-html\n * <div q-text-input-label>...</div>\n * ```\n */\n readonly label = input<string | undefined>()\n\n /**\n * HTML {@link https://www.w3schools.com/tags/att_input_placeholder.asp placeholder} attribute,\n * passed to the internal input element.\n */\n readonly placeholder = 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 {\n InputEndIconComponent,\n InputStartIconComponent,\n} from \"@qualcomm-ui/angular/input\"\nimport {QBindDirective} from \"@qualcomm-ui/angular-core/machine\"\n\nimport {TextInputClearTriggerDirective} from \"./text-input-clear-trigger.directive\"\nimport {TextInputErrorIndicatorDirective} from \"./text-input-error-indicator.directive\"\nimport {TextInputErrorTextDirective} from \"./text-input-error-text.directive\"\nimport {TextInputHintDirective} from \"./text-input-hint.directive\"\nimport {TextInputInputGroupDirective} from \"./text-input-input-group.directive\"\nimport {TextInputInputDirective} from \"./text-input-input.directive\"\nimport {TextInputLabelDirective} from \"./text-input-label.directive\"\nimport {TextInputRootDirective} from \"./text-input-root.directive\"\nimport {TextInputComponent} from \"./text-input.component\"\n\n@NgModule({\n declarations: [\n TextInputComponent,\n TextInputClearTriggerDirective,\n TextInputRootDirective,\n TextInputErrorTextDirective,\n TextInputHintDirective,\n TextInputInputDirective,\n TextInputInputGroupDirective,\n TextInputLabelDirective,\n TextInputErrorIndicatorDirective,\n ],\n exports: [\n TextInputComponent,\n TextInputClearTriggerDirective,\n TextInputRootDirective,\n TextInputErrorTextDirective,\n TextInputHintDirective,\n TextInputInputDirective,\n TextInputInputGroupDirective,\n TextInputLabelDirective,\n TextInputErrorIndicatorDirective,\n ],\n imports: [\n QBindDirective,\n IconDirective,\n InputStartIconComponent,\n InputEndIconComponent,\n ],\n})\nexport class TextInputModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1","i3","i2","i1.TextInputClearTriggerDirective","i2.TextInputErrorTextDirective","i3.TextInputHintDirective","i4.TextInputInputDirective","i5.TextInputInputGroupDirective","i6.TextInputLabelDirective","i7.TextInputErrorIndicatorDirective"],"mappings":";;;;;;;;;;;;;;;;;AAAA;AACA;AAUA;;AAEG;AAUG,MAAO,8BAA+B,SAAQ,kCAAkC,CAAA;IACjE,mBAAmB,GAAG,oBAAoB,EAAE;AAE/D,IAAA,WAAA,GAAA;AACE,QAAA,KAAK,EAAE;AACP,QAAA,IAAI,CAAC,aAAa,CAAC,UAAU,CAC3B,QAAQ,CAAC,MAAM,IAAI,CAAC,mBAAmB,CAAC,eAAe,EAAE,CAAC,CAC3D;IACH;wGARW,8BAA8B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAA9B,8BAA8B,EAAA,YAAA,EAAA,KAAA,EAAA,QAAA,EAAA,8BAAA,EAAA,SAAA,EAP9B,CAAC,YAAY,CAAC,EAAC,CAAC,EAAC,CAAC,CAAC,EAAA,eAAA,EAAA,IAAA,EAAA,cAAA,EAAA,CAAA,EAAA,SAAA,EAAAA,IAAA,CAAA,mBAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAGpB;;AAET,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,cAAA,EAAA,QAAA,EAAA,UAAA,EAAA,MAAA,EAAA,CAAA,QAAA,EAAA,gBAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAAC,EAAA,CAAA,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Ae,iBA5BxB,kBAAkB;YAClB,8BAA8B;YAC9B,sBAAsB;YACtB,2BAA2B;YAC3B,sBAAsB;YACtB,uBAAuB;YACvB,4BAA4B;YAC5B,uBAAuB;AACvB,YAAA,gCAAgC,aAchC,cAAc;YACd,aAAa;YACb,uBAAuB;AACvB,YAAA,qBAAqB,aAdrB,kBAAkB;YAClB,8BAA8B;YAC9B,sBAAsB;YACtB,2BAA2B;YAC3B,sBAAsB;YACtB,uBAAuB;YACvB,4BAA4B;YAC5B,uBAAuB;YACvB,gCAAgC,CAAA,EAAA,CAAA;AASvB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,eAAe,YAJxB,uBAAuB;YACvB,qBAAqB,CAAA,EAAA,CAAA;;4FAGZ,eAAe,EAAA,UAAA,EAAA,CAAA;kBA9B3B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ,kBAAkB;wBAClB,8BAA8B;wBAC9B,sBAAsB;wBACtB,2BAA2B;wBAC3B,sBAAsB;wBACtB,uBAAuB;wBACvB,4BAA4B;wBAC5B,uBAAuB;wBACvB,gCAAgC;AACjC,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,kBAAkB;wBAClB,8BAA8B;wBAC9B,sBAAsB;wBACtB,2BAA2B;wBAC3B,sBAAsB;wBACtB,uBAAuB;wBACvB,4BAA4B;wBAC5B,uBAAuB;wBACvB,gCAAgC;AACjC,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,cAAc;wBACd,aAAa;wBACb,uBAAuB;wBACvB,qBAAqB;AACtB,qBAAA;AACF,iBAAA;;;ACnDD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"qualcomm-ui-angular-text-input.mjs","sources":["../../src/text-input/text-input-clear-trigger.directive.ts","../../src/text-input/text-input-error-indicator.directive.ts","../../src/text-input/text-input-error-text.directive.ts","../../src/text-input/text-input-hint.directive.ts","../../src/text-input/text-input-input-group.directive.ts","../../src/text-input/text-input-input.directive.ts","../../src/text-input/text-input-label.directive.ts","../../src/text-input/text-input-root.directive.ts","../../src/text-input/text-input.component.ts","../../src/text-input/text-input.module.ts","../../src/text-input/qualcomm-ui-angular-text-input.ts"],"sourcesContent":["// 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 {useInputClearTrigger} from \"@qualcomm-ui/angular/input\"\nimport {QuiPreloadDirective} from \"@qualcomm-ui/angular/transitions\"\nimport {provideIcons} from \"@qualcomm-ui/angular-core/lucide\"\nimport {CoreTextInputClearTriggerDirective} from \"@qualcomm-ui/angular-core/text-input\"\n\n/**\n * Button that clears the input value.\n */\n@Component({\n hostDirectives: [QuiPreloadDirective],\n providers: [provideIcons({X})],\n selector: \"[q-text-input-clear-trigger]\",\n standalone: false,\n template: `\n <svg qIcon=\"X\" [q-bind]=\"clearTriggerContext.getIconBindings()\"></svg>\n `,\n})\nexport class TextInputClearTriggerDirective extends CoreTextInputClearTriggerDirective {\n protected readonly clearTriggerContext = useInputClearTrigger()\n\n constructor() {\n super()\n this.trackBindings.extendWith(\n computed(() => this.clearTriggerContext.getRootBindings()),\n )\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Component, input} from \"@angular/core\"\nimport {CircleAlert} from \"lucide-angular\"\n\nimport {useInputErrorIndicator} from \"@qualcomm-ui/angular/input\"\nimport type {LucideIconOrString} from \"@qualcomm-ui/angular-core/lucide\"\nimport {CoreTextInputErrorIndicatorDirective} from \"@qualcomm-ui/angular-core/text-input\"\n\n/**\n * Visual indicator displayed when the input is invalid.\n */\n@Component({\n selector: \"[q-text-input-error-indicator]\",\n standalone: false,\n template: `\n <ng-content>\n <svg [qIcon]=\"icon()\"></svg>\n </ng-content>\n `,\n})\nexport class TextInputErrorIndicatorDirective extends CoreTextInputErrorIndicatorDirective {\n /**\n * lucide-angular icon\n *\n * @default CircleAlert\n */\n readonly icon = input<LucideIconOrString>(CircleAlert)\n\n protected readonly inputErrorIndicatorContext = useInputErrorIndicator()\n\n constructor() {\n super()\n this.trackBindings.extendWith(() =>\n this.inputErrorIndicatorContext.getBindings(),\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 {useInputErrorText} from \"@qualcomm-ui/angular/input\"\nimport type {LucideIcon} from \"@qualcomm-ui/angular-core/lucide\"\nimport {CoreTextInputErrorTextDirective} from \"@qualcomm-ui/angular-core/text-input\"\n\n/**\n * Error message displayed when the input is invalid.\n */\n@Component({\n selector: \"[q-text-input-error-text]\",\n standalone: false,\n template: `\n @if (icon()) {\n <svg [qIcon]=\"icon()!\" />\n }\n <ng-content />\n `,\n})\nexport class TextInputErrorTextDirective extends CoreTextInputErrorTextDirective {\n /**\n * Optional error indicator icon.\n */\n readonly icon = input<LucideIcon | string>()\n\n protected readonly errorTextContext = useInputErrorText()\n\n constructor() {\n super()\n this.trackBindings.extendWith(() => this.errorTextContext.getBindings())\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Directive} from \"@angular/core\"\n\nimport {useInputHint} from \"@qualcomm-ui/angular/input\"\nimport {CoreTextInputHintDirective} from \"@qualcomm-ui/angular-core/text-input\"\n\n/**\n * Helper text displayed below the input.\n */\n@Directive({\n selector: \"[q-text-input-hint]\",\n standalone: false,\n})\nexport class TextInputHintDirective extends CoreTextInputHintDirective {\n protected readonly hintContext = useInputHint()\n\n constructor() {\n super()\n this.trackBindings.extendWith(() => this.hintContext.getBindings())\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Component} from \"@angular/core\"\n\nimport {useInputGroup} from \"@qualcomm-ui/angular/input\"\nimport {CoreTextInputInputGroupDirective} from \"@qualcomm-ui/angular-core/text-input\"\n\n/**\n * Container that wraps the input element and optional icons.\n */\n@Component({\n selector: \"[q-text-input-input-group]\",\n standalone: false,\n template: `\n <ng-content select=\"[q-input-start-icon]\">\n @if (inputGroupContext().startIcon) {\n <div q-input-start-icon [icon]=\"inputGroupContext().startIcon\"></div>\n }\n </ng-content>\n <ng-content />\n <ng-content select=\"[q-input-end-icon]\">\n @if (inputGroupContext().endIcon) {\n <div q-input-end-icon [icon]=\"inputGroupContext().endIcon\"></div>\n }\n </ng-content>\n `,\n})\nexport class TextInputInputGroupDirective extends CoreTextInputInputGroupDirective {\n protected readonly inputGroupContext = useInputGroup()\n\n constructor() {\n super()\n this.trackBindings.extendWith(() => this.inputGroupContext().getBindings())\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Directive} from \"@angular/core\"\n\nimport {useInputInput} from \"@qualcomm-ui/angular/input\"\nimport {useForbiddenFormControlWarning} from \"@qualcomm-ui/angular-core/forms\"\nimport {CoreTextInputInputDirective} from \"@qualcomm-ui/angular-core/text-input\"\n\n/**\n * The text input element. Note: do not apply form control bindings like `ngModel`\n * or `formControl` to this element. Apply them to the root element instead.\n */\n@Directive({\n selector: \"[q-text-input-input]\",\n standalone: false,\n})\nexport class TextInputInputDirective extends CoreTextInputInputDirective {\n protected readonly inputContext = useInputInput()\n\n constructor() {\n super()\n useForbiddenFormControlWarning({\n directive: \"q-text-input-input\",\n rootDirective: \"q-text-input\",\n })\n this.trackBindings.extendWith(() => this.inputContext.getBindings())\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 {Asterisk} from \"lucide-angular\"\n\nimport {useQdsInputContext} from \"@qualcomm-ui/angular/input\"\nimport {provideIcons} from \"@qualcomm-ui/angular-core/lucide\"\nimport {CoreTextInputLabelDirective} from \"@qualcomm-ui/angular-core/text-input\"\n\n/**\n * An accessible label that is automatically associated with the input.\n */\n@Component({\n providers: [provideIcons({Asterisk})],\n selector: \"[q-text-input-label]\",\n standalone: false,\n template: `\n <ng-content />\n @if (textInputContext().required) {\n <svg\n qIcon=\"Asterisk\"\n size=\"xs\"\n [q-bind]=\"qdsInputContext().getRequiredIndicatorBindings()\"\n ></svg>\n }\n `,\n})\nexport class TextInputLabelDirective extends CoreTextInputLabelDirective {\n protected readonly qdsInputContext = useQdsInputContext()\n\n constructor() {\n super()\n this.trackBindings.extendWith(\n computed(() => this.qdsInputContext().getLabelBindings()),\n )\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, Directive, inject, input, type OnInit} from \"@angular/core\"\n\nimport {\n provideQdsInputContext,\n type QdsAngularInputApiProps,\n QdsInputContextService,\n} from \"@qualcomm-ui/angular/input\"\nimport type {LucideIcon} 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 CoreTextInputRootDirective,\n provideTextInputContext,\n} from \"@qualcomm-ui/angular-core/text-input\"\nimport {createQdsInputApi, type QdsInputSize} from \"@qualcomm-ui/qds-core/input\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\n/**\n * Groups all parts of the text input.\n */\n@Directive({\n providers: [provideTextInputContext(), provideQdsInputContext()],\n selector: \"[q-text-input-root]\",\n standalone: false,\n})\nexport class TextInputRootDirective\n extends CoreTextInputRootDirective\n implements SignalifyInput<QdsAngularInputApiProps>, OnInit\n{\n /**\n * {@link https://lucide.dev lucide-angular} icon, positioned after\n * the input.\n *\n * @remarks\n * To customize the element, provide it using the directive instead:\n *\n * ```angular-html\n * <div q-text-input-input-group>\n * <div q-input-end-icon [icon]=\"...\"></div>\n * </div>\n * ```\n */\n readonly endIcon = input<LucideIcon | string | undefined>()\n\n /**\n * The size of the input field and its elements. Governs properties like font\n * size, item padding, and icon sizes.\n *\n * @default 'md'\n */\n readonly size = input<QdsInputSize>()\n\n /**\n * {@link https://lucide.dev lucide-angular} icon, positioned before\n * the input.\n *\n * @remarks\n * To customize the element, provide it using the directive instead:\n *\n * ```angular-html\n * <div q-text-input-input-group>\n * <div q-input-start-icon [icon]=\"...\"></div>\n * </div>\n * ```\n */\n readonly startIcon = input<LucideIcon | string | undefined>()\n\n protected readonly qdsInputService = inject(QdsInputContextService)\n\n protected override readonly trackBindings = useTrackBindings(() =>\n mergeProps(\n this.textInputService.context().getRootBindings(),\n this.qdsInputService.context().getRootBindings(),\n ),\n )\n\n override ngOnInit() {\n super.ngOnInit()\n\n const inputApi = computed(() =>\n createQdsInputApi(\n {\n endIcon: this.endIcon(),\n size: this.size(),\n startIcon: this.startIcon(),\n },\n normalizeProps,\n ),\n )\n\n this.qdsInputService.init(inputApi)\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 {booleanAttribute, Component, input} from \"@angular/core\"\nimport {AlertCircle} from \"lucide-angular\"\n\nimport {provideQdsInputContext} from \"@qualcomm-ui/angular/input\"\nimport {provideIcons} from \"@qualcomm-ui/angular-core/lucide\"\nimport {provideTextInputContext} from \"@qualcomm-ui/angular-core/text-input\"\nimport type {Booleanish} from \"@qualcomm-ui/utils/coercion\"\n\nimport {TextInputRootDirective} from \"./text-input-root.directive\"\n\n@Component({\n providers: [\n provideTextInputContext(),\n provideQdsInputContext(),\n provideIcons({AlertCircle}),\n ],\n selector: \"q-text-input:not([q-text-input-root])\",\n standalone: false,\n template: `\n <ng-content select=\"[q-text-input-label]\">\n @if (label()) {\n <label q-text-input-label>{{ label() }}</label>\n }\n </ng-content>\n <div q-text-input-input-group>\n <input q-text-input-input [placeholder]=\"placeholder()\" />\n\n <ng-content select=\"[q-text-input-clear-trigger]\">\n @if (clearable()) {\n <button q-text-input-clear-trigger></button>\n }\n </ng-content>\n\n <ng-content select=\"[q-text-input-error-indicator]\">\n <span q-text-input-error-indicator></span>\n </ng-content>\n </div>\n <ng-content select=\"[q-text-input-hint]\">\n @if (hint()) {\n <span q-text-input-hint>\n {{ hint() }}\n </span>\n }\n </ng-content>\n\n <ng-content select=\"[q-text-input-error-text]\">\n @if (errorText()) {\n <div q-text-input-error-text>\n {{ errorText() }}\n </div>\n }\n </ng-content>\n `,\n})\nexport class TextInputComponent extends TextInputRootDirective {\n /**\n * When `true`, renders a clear button that resets the input value on click.\n * The button only appears when the input has a value.\n *\n * @default true\n */\n readonly clearable = input<boolean | undefined, Booleanish>(true, {\n transform: booleanAttribute,\n })\n\n /**\n * Optional error that describes the element when {@link invalid} is true.\n *\n * @remarks\n * To customize the element, provide it using the directive instead:\n *\n * ```angular-html\n * <div q-text-input-error-text>...</div>\n * ```\n */\n readonly errorText = input<string | undefined | null>()\n\n /**\n * Optional hint describing the element. This element is automatically\n * associated with the component's input element for accessibility.\n *\n * @remarks\n * To customize the element, provide it using the directive instead:\n *\n * ```angular-html\n * <div q-text-input-hint>...</div>\n * ```\n */\n readonly hint = input<string | undefined | null>()\n\n /**\n * Optional label describing the element. Recommended. This element is\n * automatically associated with the component's input element for\n * accessibility.\n *\n * @remarks\n * To customize the element, provide it using the directive instead:\n *\n * ```angular-html\n * <div q-text-input-label>...</div>\n * ```\n */\n readonly label = input<string | undefined>()\n\n /**\n * HTML {@link https://www.w3schools.com/tags/att_input_placeholder.asp placeholder} attribute,\n * passed to the internal input element.\n */\n readonly placeholder = 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 {\n InputEndIconComponent,\n InputStartIconComponent,\n} from \"@qualcomm-ui/angular/input\"\nimport {QBindDirective} from \"@qualcomm-ui/angular-core/machine\"\n\nimport {TextInputClearTriggerDirective} from \"./text-input-clear-trigger.directive\"\nimport {TextInputErrorIndicatorDirective} from \"./text-input-error-indicator.directive\"\nimport {TextInputErrorTextDirective} from \"./text-input-error-text.directive\"\nimport {TextInputHintDirective} from \"./text-input-hint.directive\"\nimport {TextInputInputGroupDirective} from \"./text-input-input-group.directive\"\nimport {TextInputInputDirective} from \"./text-input-input.directive\"\nimport {TextInputLabelDirective} from \"./text-input-label.directive\"\nimport {TextInputRootDirective} from \"./text-input-root.directive\"\nimport {TextInputComponent} from \"./text-input.component\"\n\n@NgModule({\n declarations: [\n TextInputComponent,\n TextInputClearTriggerDirective,\n TextInputRootDirective,\n TextInputErrorTextDirective,\n TextInputHintDirective,\n TextInputInputDirective,\n TextInputInputGroupDirective,\n TextInputLabelDirective,\n TextInputErrorIndicatorDirective,\n ],\n exports: [\n TextInputComponent,\n TextInputClearTriggerDirective,\n TextInputRootDirective,\n TextInputErrorTextDirective,\n TextInputHintDirective,\n TextInputInputDirective,\n TextInputInputGroupDirective,\n TextInputLabelDirective,\n TextInputErrorIndicatorDirective,\n ],\n imports: [\n QBindDirective,\n IconDirective,\n InputStartIconComponent,\n InputEndIconComponent,\n ],\n})\nexport class TextInputModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1","i3","i2","i1.TextInputClearTriggerDirective","i2.TextInputErrorTextDirective","i3.TextInputHintDirective","i4.TextInputInputDirective","i5.TextInputInputGroupDirective","i6.TextInputLabelDirective","i7.TextInputErrorIndicatorDirective"],"mappings":";;;;;;;;;;;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AAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,eAAe,YAJxB,uBAAuB;YACvB,qBAAqB,CAAA,EAAA,CAAA;;2FAGZ,eAAe,EAAA,UAAA,EAAA,CAAA;kBA9B3B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ,kBAAkB;wBAClB,8BAA8B;wBAC9B,sBAAsB;wBACtB,2BAA2B;wBAC3B,sBAAsB;wBACtB,uBAAuB;wBACvB,4BAA4B;wBAC5B,uBAAuB;wBACvB,gCAAgC;AACjC,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,kBAAkB;wBAClB,8BAA8B;wBAC9B,sBAAsB;wBACtB,2BAA2B;wBAC3B,sBAAsB;wBACtB,uBAAuB;wBACvB,4BAA4B;wBAC5B,uBAAuB;wBACvB,gCAAgC;AACjC,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,cAAc;wBACd,aAAa;wBACb,uBAAuB;wBACvB,qBAAqB;AACtB,qBAAA;AACF,iBAAA;;;ACnDD;;AAEG;;;;"}
|
|
@@ -88,8 +88,8 @@ class QdsThemeService {
|
|
|
88
88
|
response = inject(Response, { optional: true });
|
|
89
89
|
renderer = inject(Renderer2, { optional: true });
|
|
90
90
|
isCsr = useCsrCheck();
|
|
91
|
-
theme = signal(inject(THEME_COOKIE), ...(ngDevMode ? [{ debugName: "theme" }] : []));
|
|
92
|
-
brand = signal(inject(BRAND_COOKIE), ...(ngDevMode ? [{ debugName: "brand" }] : []));
|
|
91
|
+
theme = signal(inject(THEME_COOKIE), ...(ngDevMode ? [{ debugName: "theme" }] : /* istanbul ignore next */ []));
|
|
92
|
+
brand = signal(inject(BRAND_COOKIE), ...(ngDevMode ? [{ debugName: "brand" }] : /* istanbul ignore next */ []));
|
|
93
93
|
themeOpts = inject(QDS_THEME_OPTIONS);
|
|
94
94
|
get themeOptions() {
|
|
95
95
|
const opts = this.themeOpts;
|
|
@@ -179,10 +179,10 @@ class QdsThemeService {
|
|
|
179
179
|
appendSetCookieHeader(name, value) {
|
|
180
180
|
this.response.headers.append("Set-Cookie", `${name}=${value}; Path=/; Max-Age=${60 * 60 * 24 * 365}; SameSite=Lax`);
|
|
181
181
|
}
|
|
182
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
183
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
182
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: QdsThemeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
183
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: QdsThemeService, providedIn: "root" });
|
|
184
184
|
}
|
|
185
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
185
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: QdsThemeService, decorators: [{
|
|
186
186
|
type: Injectable,
|
|
187
187
|
args: [{ providedIn: "root" }]
|
|
188
188
|
}], ctorParameters: () => [] });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"qualcomm-ui-angular-theme.mjs","sources":["../../src/theme/qds-theme-providers.ts","../../src/theme/qds-theme.service.ts","../../src/theme/qualcomm-ui-angular-theme.ts"],"sourcesContent":["// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {inject, InjectionToken, type Provider, REQUEST} from \"@angular/core\"\n\nimport type {Brand, QdsThemeProviderOptions, Theme} from \"./qds-theme.types\"\n\nexport const THEME_COOKIE_NAME = \"app-qds-theme\"\nexport const BRAND_COOKIE_NAME = \"app-qds-brand\"\n\n/**\n * Concrete values are provided at bootstrap, but we attach a\n * factory so injection works even if the caller forgets to register them,\n * falling back to the light theme / first brand.\n */\nexport const THEME_COOKIE = new InjectionToken<Theme>(\"THEME_COOKIE\")\n\nexport const BRAND_COOKIE = new InjectionToken<Brand>(\"BRAND_COOKIE\")\n\n/**\n * Reads the cookie in both the browser (document.cookie) and during SSR\n * (Fetch Request.headers) and makes it available through THEME_COOKIE.\n */\nfunction provideThemeCookie(opts?: QdsThemeProviderOptions): Provider {\n return {\n provide: THEME_COOKIE,\n useFactory: () => {\n return (\n opts?.themeOverride ||\n readCookie<Theme>(THEME_COOKIE_NAME) ||\n opts?.defaultTheme ||\n \"dark\"\n )\n },\n }\n}\n\n/**\n * Same helper for the brand cookie.\n */\nfunction provideBrandCookie(opts?: QdsThemeProviderOptions): Provider {\n return {\n provide: BRAND_COOKIE,\n useFactory: () => {\n return (\n opts?.brandOverride ||\n readCookie<Brand>(BRAND_COOKIE_NAME) ||\n opts?.defaultBrand ||\n \"qualcomm\"\n )\n },\n }\n}\n\nexport const QDS_THEME_OPTIONS = new InjectionToken<\n Partial<QdsThemeProviderOptions>\n>(\"QDS_THEME_OPTIONS\")\n\nfunction provideQdsThemeOptions(opts?: QdsThemeProviderOptions): Provider {\n return {\n provide: QDS_THEME_OPTIONS,\n useValue: opts || {\n skipAttributes: false,\n },\n }\n}\n\nexport function provideQdsTheme(opts?: QdsThemeProviderOptions) {\n return [\n provideQdsThemeOptions(opts),\n provideThemeCookie(opts),\n provideBrandCookie(opts),\n ]\n}\n\nexport function readCookie<T extends string>(name: string): string | undefined {\n // Browser path\n // eslint-disable-next-line no-restricted-globals\n if (typeof document !== \"undefined\") {\n // eslint-disable-next-line no-restricted-globals\n const match = document.cookie.match(new RegExp(`(?:^|; )${name}=([^;]*)`))\n return match?.[1] || undefined\n }\n\n // Server path – Fetch Request is registered in the injector\n const request = inject(REQUEST, {optional: true})\n if (request) {\n const cookieHeader = request.headers.get(\"cookie\") ?? \"\"\n const match = cookieHeader.match(new RegExp(`(?:^|; )${name}=([^;]*)`))\n return match?.[1] as T | undefined\n }\n\n return undefined\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {DOCUMENT} from \"@angular/common\"\nimport {\n effect,\n inject,\n Injectable,\n Renderer2,\n signal,\n type WritableSignal,\n} from \"@angular/core\"\n\nimport {useCsrCheck} from \"@qualcomm-ui/angular-core/common\"\n\nimport {\n BRAND_COOKIE,\n BRAND_COOKIE_NAME,\n QDS_THEME_OPTIONS,\n readCookie,\n THEME_COOKIE,\n THEME_COOKIE_NAME,\n} from \"./qds-theme-providers\"\nimport type {Brand, QdsThemeProviderOptions, Theme} from \"./qds-theme.types\"\n\n/**\n * A service that provides access to the current theme and brand, and ensures that\n * the application's root element is in sync with the selected brand/theme.\n */\n@Injectable({providedIn: \"root\"})\nexport class QdsThemeService {\n private readonly document = inject(DOCUMENT)\n private readonly response = inject(Response, {optional: true})\n private readonly renderer = inject(Renderer2, {optional: true})\n protected readonly isCsr = useCsrCheck()\n\n readonly theme: WritableSignal<Theme> = signal(inject(THEME_COOKIE))\n readonly brand: WritableSignal<Brand> = signal(inject(BRAND_COOKIE))\n\n private readonly themeOpts: QdsThemeProviderOptions =\n inject(QDS_THEME_OPTIONS)\n\n get themeOptions(): Required<\n Omit<\n QdsThemeProviderOptions,\n \"brandOverride\" | \"themeOverride\" | \"defaultTheme\" | \"defaultBrand\"\n >\n > {\n const opts = this.themeOpts\n const rootElement = opts.rootElement || this.document.documentElement\n return {\n rootElement,\n skipAttributes:\n typeof opts.skipAttributes === \"object\"\n ? {\n brand: opts.skipAttributes.brand || false,\n theme: opts.skipAttributes.theme || false,\n }\n : opts.skipAttributes || false,\n skipColorSchemeStyle: opts.skipColorSchemeStyle || false,\n }\n }\n\n get rootElement(): HTMLElement {\n const elementOrFn = this.themeOptions.rootElement\n return typeof elementOrFn === \"function\" ? elementOrFn() : elementOrFn\n }\n\n get skipBrandAttribute(): boolean {\n const skipAttributes = this.themeOptions.skipAttributes\n return typeof skipAttributes === \"object\"\n ? skipAttributes.brand || false\n : skipAttributes || false\n }\n\n get skipThemeAttribute(): boolean {\n const skipAttributes = this.themeOptions.skipAttributes\n return typeof skipAttributes === \"object\"\n ? skipAttributes.theme || false\n : skipAttributes || false\n }\n\n constructor() {\n effect(() => {\n const theme = this.theme()\n const brand = this.brand()\n this.syncAttributes(theme, brand)\n this.syncCookie(theme, brand)\n })\n\n const theme = readCookie(THEME_COOKIE_NAME) || this.themeOpts?.defaultTheme\n if (theme === \"dark\" || theme === \"light\") {\n this.theme.set(theme)\n this.syncAttributes(theme, this.brand())\n }\n }\n\n toggleTheme(): void {\n this.theme.update((theme) => (theme === \"dark\" ? \"light\" : \"dark\"))\n }\n\n private syncAttributes(theme: Theme, brand: Brand): void {\n if (!this.skipBrandAttribute) {\n this.updateAttribute(\"data-brand\", brand)\n }\n if (!this.skipThemeAttribute) {\n this.updateAttribute(\"data-theme\", theme)\n }\n if (!this.themeOptions.skipColorSchemeStyle) {\n this.updateColorScheme(theme)\n }\n }\n\n private syncCookie(theme: Theme, brand: Brand): void {\n if (this.isCsr()) {\n const maxAge = 60 * 60 * 24 * 365 // 1 year\n\n this.document.cookie = `${THEME_COOKIE_NAME}=${theme}; Path=/; Max-Age=${maxAge}; SameSite=Lax`\n this.document.cookie = `${BRAND_COOKIE_NAME}=${brand}; Path=/; Max-Age=${maxAge}; SameSite=Lax`\n } else if (this.response) {\n // Persist cookies by appending headers to the Fetch Response\n this.appendSetCookieHeader(THEME_COOKIE_NAME, theme)\n this.appendSetCookieHeader(BRAND_COOKIE_NAME, brand)\n }\n }\n\n private updateAttribute(name: string, value: string): void {\n if (this.renderer) {\n this.renderer.setAttribute(this.rootElement, name, value)\n } else {\n this.rootElement?.setAttribute?.(name, value)\n }\n }\n\n private updateColorScheme(theme: Theme): void {\n if (this.renderer) {\n this.renderer.setStyle(this.rootElement, \"color-scheme\", theme)\n } else {\n this.rootElement?.style?.setProperty?.(\"color-scheme\", theme)\n }\n }\n\n private appendSetCookieHeader(name: string, value: string): void {\n this.response!.headers.append(\n \"Set-Cookie\",\n `${name}=${value}; Path=/; Max-Age=${60 * 60 * 24 * 365}; SameSite=Lax`,\n )\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAAA;AACA;AAMO,MAAM,iBAAiB,GAAG;AAC1B,MAAM,iBAAiB,GAAG;AAEjC;;;;AAIG;MACU,YAAY,GAAG,IAAI,cAAc,CAAQ,cAAc;MAEvD,YAAY,GAAG,IAAI,cAAc,CAAQ,cAAc;AAEpE;;;AAGG;AACH,SAAS,kBAAkB,CAAC,IAA8B,EAAA;IACxD,OAAO;AACL,QAAA,OAAO,EAAE,YAAY;QACrB,UAAU,EAAE,MAAK;YACf,QACE,IAAI,EAAE,aAAa;gBACnB,UAAU,CAAQ,iBAAiB,CAAC;AACpC,gBAAA,IAAI,EAAE,YAAY;AAClB,gBAAA,MAAM;QAEV,CAAC;KACF;AACH;AAEA;;AAEG;AACH,SAAS,kBAAkB,CAAC,IAA8B,EAAA;IACxD,OAAO;AACL,QAAA,OAAO,EAAE,YAAY;QACrB,UAAU,EAAE,MAAK;YACf,QACE,IAAI,EAAE,aAAa;gBACnB,UAAU,CAAQ,iBAAiB,CAAC;AACpC,gBAAA,IAAI,EAAE,YAAY;AAClB,gBAAA,UAAU;QAEd,CAAC;KACF;AACH;MAEa,iBAAiB,GAAG,IAAI,cAAc,CAEjD,mBAAmB;AAErB,SAAS,sBAAsB,CAAC,IAA8B,EAAA;IAC5D,OAAO;AACL,QAAA,OAAO,EAAE,iBAAiB;QAC1B,QAAQ,EAAE,IAAI,IAAI;AAChB,YAAA,cAAc,EAAE,KAAK;AACtB,SAAA;KACF;AACH;AAEM,SAAU,eAAe,CAAC,IAA8B,EAAA;IAC5D,OAAO;QACL,sBAAsB,CAAC,IAAI,CAAC;QAC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A,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;AAAf,IAAA,OAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,eAAe,cADH,MAAM,EAAA,CAAA;;4FAClB,eAAe,EAAA,UAAA,EAAA,CAAA;kBAD3B,UAAU;mBAAC,EAAC,UAAU,EAAE,MAAM,EAAC;;;AC7BhC;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"qualcomm-ui-angular-theme.mjs","sources":["../../src/theme/qds-theme-providers.ts","../../src/theme/qds-theme.service.ts","../../src/theme/qualcomm-ui-angular-theme.ts"],"sourcesContent":["// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {inject, InjectionToken, type Provider, REQUEST} from \"@angular/core\"\n\nimport type {Brand, QdsThemeProviderOptions, Theme} from \"./qds-theme.types\"\n\nexport const THEME_COOKIE_NAME = \"app-qds-theme\"\nexport const BRAND_COOKIE_NAME = \"app-qds-brand\"\n\n/**\n * Concrete values are provided at bootstrap, but we attach a\n * factory so injection works even if the caller forgets to register them,\n * falling back to the light theme / first brand.\n */\nexport const THEME_COOKIE = new InjectionToken<Theme>(\"THEME_COOKIE\")\n\nexport const BRAND_COOKIE = new InjectionToken<Brand>(\"BRAND_COOKIE\")\n\n/**\n * Reads the cookie in both the browser (document.cookie) and during SSR\n * (Fetch Request.headers) and makes it available through THEME_COOKIE.\n */\nfunction provideThemeCookie(opts?: QdsThemeProviderOptions): Provider {\n return {\n provide: THEME_COOKIE,\n useFactory: () => {\n return (\n opts?.themeOverride ||\n readCookie<Theme>(THEME_COOKIE_NAME) ||\n opts?.defaultTheme ||\n \"dark\"\n )\n },\n }\n}\n\n/**\n * Same helper for the brand cookie.\n */\nfunction provideBrandCookie(opts?: QdsThemeProviderOptions): Provider {\n return {\n provide: BRAND_COOKIE,\n useFactory: () => {\n return (\n opts?.brandOverride ||\n readCookie<Brand>(BRAND_COOKIE_NAME) ||\n opts?.defaultBrand ||\n \"qualcomm\"\n )\n },\n }\n}\n\nexport const QDS_THEME_OPTIONS = new InjectionToken<\n Partial<QdsThemeProviderOptions>\n>(\"QDS_THEME_OPTIONS\")\n\nfunction provideQdsThemeOptions(opts?: QdsThemeProviderOptions): Provider {\n return {\n provide: QDS_THEME_OPTIONS,\n useValue: opts || {\n skipAttributes: false,\n },\n }\n}\n\nexport function provideQdsTheme(opts?: QdsThemeProviderOptions) {\n return [\n provideQdsThemeOptions(opts),\n provideThemeCookie(opts),\n provideBrandCookie(opts),\n ]\n}\n\nexport function readCookie<T extends string>(name: string): string | undefined {\n // Browser path\n // eslint-disable-next-line no-restricted-globals\n if (typeof document !== \"undefined\") {\n // eslint-disable-next-line no-restricted-globals\n const match = document.cookie.match(new RegExp(`(?:^|; )${name}=([^;]*)`))\n return match?.[1] || undefined\n }\n\n // Server path – Fetch Request is registered in the injector\n const request = inject(REQUEST, {optional: true})\n if (request) {\n const cookieHeader = request.headers.get(\"cookie\") ?? \"\"\n const match = cookieHeader.match(new RegExp(`(?:^|; )${name}=([^;]*)`))\n return match?.[1] as T | undefined\n }\n\n return undefined\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {DOCUMENT} from \"@angular/common\"\nimport {\n effect,\n inject,\n Injectable,\n Renderer2,\n signal,\n type WritableSignal,\n} from \"@angular/core\"\n\nimport {useCsrCheck} from \"@qualcomm-ui/angular-core/common\"\n\nimport {\n BRAND_COOKIE,\n BRAND_COOKIE_NAME,\n QDS_THEME_OPTIONS,\n readCookie,\n THEME_COOKIE,\n THEME_COOKIE_NAME,\n} from \"./qds-theme-providers\"\nimport type {Brand, QdsThemeProviderOptions, Theme} from \"./qds-theme.types\"\n\n/**\n * A service that provides access to the current theme and brand, and ensures that\n * the application's root element is in sync with the selected brand/theme.\n */\n@Injectable({providedIn: \"root\"})\nexport class QdsThemeService {\n private readonly document = inject(DOCUMENT)\n private readonly response = inject(Response, {optional: true})\n private readonly renderer = inject(Renderer2, {optional: true})\n protected readonly isCsr = useCsrCheck()\n\n readonly theme: WritableSignal<Theme> = signal(inject(THEME_COOKIE))\n readonly brand: WritableSignal<Brand> = signal(inject(BRAND_COOKIE))\n\n private readonly themeOpts: QdsThemeProviderOptions =\n inject(QDS_THEME_OPTIONS)\n\n get themeOptions(): Required<\n Omit<\n QdsThemeProviderOptions,\n \"brandOverride\" | \"themeOverride\" | \"defaultTheme\" | \"defaultBrand\"\n >\n > {\n const opts = this.themeOpts\n const rootElement = opts.rootElement || this.document.documentElement\n return {\n rootElement,\n skipAttributes:\n typeof opts.skipAttributes === \"object\"\n ? {\n brand: opts.skipAttributes.brand || false,\n theme: opts.skipAttributes.theme || false,\n }\n : opts.skipAttributes || false,\n skipColorSchemeStyle: opts.skipColorSchemeStyle || false,\n }\n }\n\n get rootElement(): HTMLElement {\n const elementOrFn = this.themeOptions.rootElement\n return typeof elementOrFn === \"function\" ? elementOrFn() : elementOrFn\n }\n\n get skipBrandAttribute(): boolean {\n const skipAttributes = this.themeOptions.skipAttributes\n return typeof skipAttributes === \"object\"\n ? skipAttributes.brand || false\n : skipAttributes || false\n }\n\n get skipThemeAttribute(): boolean {\n const skipAttributes = this.themeOptions.skipAttributes\n return typeof skipAttributes === \"object\"\n ? skipAttributes.theme || false\n : skipAttributes || false\n }\n\n constructor() {\n effect(() => {\n const theme = this.theme()\n const brand = this.brand()\n this.syncAttributes(theme, brand)\n this.syncCookie(theme, brand)\n })\n\n const theme = readCookie(THEME_COOKIE_NAME) || this.themeOpts?.defaultTheme\n if (theme === \"dark\" || theme === \"light\") {\n this.theme.set(theme)\n this.syncAttributes(theme, this.brand())\n }\n }\n\n toggleTheme(): void {\n this.theme.update((theme) => (theme === \"dark\" ? \"light\" : \"dark\"))\n }\n\n private syncAttributes(theme: Theme, brand: Brand): void {\n if (!this.skipBrandAttribute) {\n this.updateAttribute(\"data-brand\", brand)\n }\n if (!this.skipThemeAttribute) {\n this.updateAttribute(\"data-theme\", theme)\n }\n if (!this.themeOptions.skipColorSchemeStyle) {\n this.updateColorScheme(theme)\n }\n }\n\n private syncCookie(theme: Theme, brand: Brand): void {\n if (this.isCsr()) {\n const maxAge = 60 * 60 * 24 * 365 // 1 year\n\n this.document.cookie = `${THEME_COOKIE_NAME}=${theme}; Path=/; Max-Age=${maxAge}; SameSite=Lax`\n this.document.cookie = `${BRAND_COOKIE_NAME}=${brand}; Path=/; Max-Age=${maxAge}; SameSite=Lax`\n } else if (this.response) {\n // Persist cookies by appending headers to the Fetch Response\n this.appendSetCookieHeader(THEME_COOKIE_NAME, theme)\n this.appendSetCookieHeader(BRAND_COOKIE_NAME, brand)\n }\n }\n\n private updateAttribute(name: string, value: string): void {\n if (this.renderer) {\n this.renderer.setAttribute(this.rootElement, name, value)\n } else {\n this.rootElement?.setAttribute?.(name, value)\n }\n }\n\n private updateColorScheme(theme: Theme): void {\n if (this.renderer) {\n this.renderer.setStyle(this.rootElement, \"color-scheme\", theme)\n } else {\n this.rootElement?.style?.setProperty?.(\"color-scheme\", theme)\n }\n }\n\n private appendSetCookieHeader(name: string, value: string): void {\n this.response!.headers.append(\n \"Set-Cookie\",\n `${name}=${value}; Path=/; Max-Age=${60 * 60 * 24 * 365}; SameSite=Lax`,\n )\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAAA;AACA;AAMO,MAAM,iBAAiB,GAAG;AAC1B,MAAM,iBAAiB,GAAG;AAEjC;;;;AAIG;MACU,YAAY,GAAG,IAAI,cAAc,CAAQ,cAAc;MAEvD,YAAY,GAAG,IAAI,cAAc,CAAQ,cAAc;AAEpE;;;AAGG;AACH,SAAS,kBAAkB,CAAC,IAA8B,EAAA;IACxD,OAAO;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