@qualcomm-ui/angular-core 1.3.3 → 1.4.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.
@@ -1,4 +1,209 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Injectable, input, computed, Directive, output, inject } from '@angular/core';
3
+ import { useId, useOnDestroy, useIsMounted } from '@qualcomm-ui/angular-core/common';
4
+ import { BaseApiContextService, createApiContext, useTrackBindings, useMachine, normalizeProps } from '@qualcomm-ui/angular-core/machine';
5
+ import { DOCUMENT } from '@angular/common';
6
+ import { AbstractInputFormControlDirective } from '@qualcomm-ui/angular-core/input';
7
+ import { textAreaMachine, createTextAreaApi } from '@qualcomm-ui/core/text-area';
8
+
9
+ // Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
10
+ // SPDX-License-Identifier: BSD-3-Clause-Clear
11
+ class TextAreaContextService extends BaseApiContextService {
12
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: TextAreaContextService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: TextAreaContextService });
14
+ }
15
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: TextAreaContextService, decorators: [{
16
+ type: Injectable
17
+ }] });
18
+ const [TEXT_AREA_CONTEXT, useTextAreaContext, provideTextAreaContext,] = createApiContext("TextAreaContext", TextAreaContextService);
19
+
20
+ // Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
21
+ // SPDX-License-Identifier: BSD-3-Clause-Clear
22
+ class CoreTextAreaInputDirective {
23
+ id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : []));
24
+ hostId = computed(() => useId(this, this.id()), ...(ngDevMode ? [{ debugName: "hostId" }] : []));
25
+ textAreaContext = useTextAreaContext();
26
+ trackBindings = useTrackBindings(() => this.textAreaContext().getInputBindings({
27
+ id: this.hostId(),
28
+ onDestroy: this.onDestroy,
29
+ }));
30
+ onDestroy = useOnDestroy();
31
+ ngOnInit() {
32
+ this.trackBindings();
33
+ }
34
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: CoreTextAreaInputDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
35
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.15", type: CoreTextAreaInputDirective, isStandalone: true, inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
36
+ }
37
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: CoreTextAreaInputDirective, decorators: [{
38
+ type: Directive
39
+ }], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }] } });
40
+
41
+ // Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
42
+ // SPDX-License-Identifier: BSD-3-Clause-Clear
43
+ class CoreTextAreaLabelDirective {
44
+ id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : []));
45
+ hostId = computed(() => useId(this, this.id()), ...(ngDevMode ? [{ debugName: "hostId" }] : []));
46
+ textAreaContext = useTextAreaContext();
47
+ trackBindings = useTrackBindings(() => this.textAreaContext().getLabelBindings({
48
+ id: this.hostId(),
49
+ onDestroy: this.onDestroy,
50
+ }));
51
+ onDestroy = useOnDestroy();
52
+ ngOnInit() {
53
+ this.trackBindings();
54
+ }
55
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: CoreTextAreaLabelDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
56
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.15", type: CoreTextAreaLabelDirective, isStandalone: true, inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
57
+ }
58
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: CoreTextAreaLabelDirective, decorators: [{
59
+ type: Directive
60
+ }], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }] } });
61
+
62
+ // Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
63
+ // SPDX-License-Identifier: BSD-3-Clause-Clear
64
+ class CoreTextAreaCounterDirective {
65
+ id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : []));
66
+ hostId = computed(() => useId(this, this.id()), ...(ngDevMode ? [{ debugName: "hostId" }] : []));
67
+ textAreaContext = useTextAreaContext();
68
+ trackBindings = useTrackBindings(() => this.textAreaContext().getCounterBindings({
69
+ id: this.hostId(),
70
+ onDestroy: this.onDestroy,
71
+ }));
72
+ onDestroy = useOnDestroy();
73
+ ngOnInit() {
74
+ this.trackBindings();
75
+ }
76
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: CoreTextAreaCounterDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
77
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.15", type: CoreTextAreaCounterDirective, isStandalone: true, inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
78
+ }
79
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: CoreTextAreaCounterDirective, decorators: [{
80
+ type: Directive
81
+ }], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }] } });
82
+
83
+ // Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
84
+ // SPDX-License-Identifier: BSD-3-Clause-Clear
85
+ class CoreTextAreaHintDirective {
86
+ id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : []));
87
+ hostId = computed(() => useId(this, this.id()), ...(ngDevMode ? [{ debugName: "hostId" }] : []));
88
+ textAreaContext = useTextAreaContext();
89
+ trackBindings = useTrackBindings(() => this.textAreaContext().getHintBindings({
90
+ id: this.hostId(),
91
+ onDestroy: this.onDestroy,
92
+ }));
93
+ onDestroy = useOnDestroy();
94
+ ngOnInit() {
95
+ this.trackBindings();
96
+ }
97
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: CoreTextAreaHintDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
98
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.15", type: CoreTextAreaHintDirective, isStandalone: true, inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
99
+ }
100
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: CoreTextAreaHintDirective, decorators: [{
101
+ type: Directive
102
+ }], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }] } });
103
+
104
+ // Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
105
+ // SPDX-License-Identifier: BSD-3-Clause-Clear
106
+ class CoreTextAreaErrorTextDirective {
107
+ id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : []));
108
+ hostId = computed(() => useId(this, this.id()), ...(ngDevMode ? [{ debugName: "hostId" }] : []));
109
+ textAreaContext = useTextAreaContext();
110
+ trackBindings = useTrackBindings(() => this.textAreaContext().getErrorTextBindings({
111
+ id: this.hostId(),
112
+ onDestroy: this.onDestroy,
113
+ }));
114
+ onDestroy = useOnDestroy();
115
+ ngOnInit() {
116
+ this.trackBindings();
117
+ }
118
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: CoreTextAreaErrorTextDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
119
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.15", type: CoreTextAreaErrorTextDirective, isStandalone: true, inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
120
+ }
121
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: CoreTextAreaErrorTextDirective, decorators: [{
122
+ type: Directive
123
+ }], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }] } });
124
+
125
+ // Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
126
+ // SPDX-License-Identifier: BSD-3-Clause-Clear
127
+ class CoreTextAreaRootDirective extends AbstractInputFormControlDirective {
128
+ /**
129
+ * The document's text/writing direction.
130
+ *
131
+ * @default "ltr"
132
+ */
133
+ dir = input(undefined, ...(ngDevMode ? [{ debugName: "dir" }] : []));
134
+ /**
135
+ * The maximum number of characters allowed in the textarea.
136
+ */
137
+ maxLength = input(undefined, ...(ngDevMode ? [{ debugName: "maxLength" }] : []));
138
+ /**
139
+ * A root node to correctly resolve the Document in custom environments. i.e.,
140
+ * Iframes, Electron.
141
+ */
142
+ getRootNode = input(...(ngDevMode ? [undefined, { debugName: "getRootNode" }] : []));
143
+ /**
144
+ * Event emitted when the input value changes. This is only emitted on
145
+ * interaction. It doesn't emit in response to programmatic form control changes.
146
+ */
147
+ valueChanged = output();
148
+ textAreaService = inject(TextAreaContextService);
149
+ document = inject(DOCUMENT);
150
+ trackBindings = useTrackBindings(() => this.textAreaService.context().getRootBindings());
151
+ isMounted = useIsMounted();
152
+ ngOnInit() {
153
+ super.ngOnInit();
154
+ const machine = useMachine(textAreaMachine, computed(() => ({
155
+ defaultValue: this.defaultValue(),
156
+ dir: this.dir(),
157
+ disabled: this.isDisabled(),
158
+ // angular handles this automatically with ngModel and Reactive Forms
159
+ form: undefined,
160
+ getRootNode: this.getRootNode() ?? (() => this.document),
161
+ ids: undefined,
162
+ invalid: this.isInvalid(),
163
+ maxLength: this.maxLength(),
164
+ name: this.name(),
165
+ onFocusChange: (focused) => {
166
+ if (!focused) {
167
+ // only trigger onTouched on blur.
168
+ this.onTouched();
169
+ }
170
+ },
171
+ onValueChange: (value) => {
172
+ if (!this.control) {
173
+ if (this.isMounted()) {
174
+ this.valueChanged.emit(value);
175
+ }
176
+ this.value.set(value);
177
+ return;
178
+ }
179
+ // ngModel is bound to the root, but change events happen on the <input>
180
+ // element and are forwarded to the machine. So we need to fire the value
181
+ // change event to keep the form in sync.
182
+ this.onChange(value);
183
+ if (!this.control?.touched) {
184
+ this.control.markAsTouched?.();
185
+ }
186
+ if (!this.control?.dirty) {
187
+ this.control.markAsDirty?.();
188
+ }
189
+ },
190
+ readOnly: this.readOnly(),
191
+ required: this.isRequired(),
192
+ value: this.value(),
193
+ })), this.injector);
194
+ this.textAreaService.init(computed(() => createTextAreaApi(machine, normalizeProps)));
195
+ this.trackBindings();
196
+ }
197
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: CoreTextAreaRootDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
198
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.15", type: CoreTextAreaRootDirective, isStandalone: true, inputs: { dir: { classPropertyName: "dir", publicName: "dir", isSignal: true, isRequired: false, transformFunction: null }, maxLength: { classPropertyName: "maxLength", publicName: "maxLength", isSignal: true, isRequired: false, transformFunction: null }, getRootNode: { classPropertyName: "getRootNode", publicName: "getRootNode", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChanged: "valueChanged" }, usesInheritance: true, ngImport: i0 });
199
+ }
200
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: CoreTextAreaRootDirective, decorators: [{
201
+ type: Directive
202
+ }], propDecorators: { dir: [{ type: i0.Input, args: [{ isSignal: true, alias: "dir", required: false }] }], maxLength: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxLength", required: false }] }], getRootNode: [{ type: i0.Input, args: [{ isSignal: true, alias: "getRootNode", required: false }] }], valueChanged: [{ type: i0.Output, args: ["valueChanged"] }] } });
203
+
1
204
  /**
2
205
  * Generated bundle index. Do not edit.
3
206
  */
207
+
208
+ export { CoreTextAreaCounterDirective, CoreTextAreaErrorTextDirective, CoreTextAreaHintDirective, CoreTextAreaInputDirective, CoreTextAreaLabelDirective, CoreTextAreaRootDirective, TEXT_AREA_CONTEXT, TextAreaContextService, provideTextAreaContext, useTextAreaContext };
4
209
  //# sourceMappingURL=qualcomm-ui-angular-core-text-area.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"qualcomm-ui-angular-core-text-area.mjs","sources":["../../src/text-area/qualcomm-ui-angular-core-text-area.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAAA;;AAEG"}
1
+ {"version":3,"file":"qualcomm-ui-angular-core-text-area.mjs","sources":["../../src/text-area/text-area-context.service.ts","../../src/text-area/core-text-area-input.directive.ts","../../src/text-area/core-text-area-label.directive.ts","../../src/text-area/core-text-area-counter.directive.ts","../../src/text-area/core-text-area-hint.directive.ts","../../src/text-area/core-text-area-error-text.directive.ts","../../src/text-area/core-text-area-root.directive.ts","../../src/text-area/qualcomm-ui-angular-core-text-area.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 {TextAreaApi} from \"@qualcomm-ui/core/text-area\"\n\n@Injectable()\nexport class TextAreaContextService extends BaseApiContextService<TextAreaApi> {}\n\nexport const [\n TEXT_AREA_CONTEXT,\n useTextAreaContext,\n provideTextAreaContext,\n]: ApiContext<TextAreaApi> = createApiContext<TextAreaApi>(\n \"TextAreaContext\",\n TextAreaContextService,\n)\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, Directive, input, type OnInit} from \"@angular/core\"\n\nimport {useId, useOnDestroy} from \"@qualcomm-ui/angular-core/common\"\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\n\nimport {useTextAreaContext} from \"./text-area-context.service.js\"\n\n@Directive()\nexport class CoreTextAreaInputDirective implements OnInit {\n readonly id = input<string>()\n\n private readonly hostId = computed(() => useId(this, this.id()))\n\n protected readonly textAreaContext = useTextAreaContext()\n\n protected readonly trackBindings = useTrackBindings(() =>\n this.textAreaContext().getInputBindings({\n id: this.hostId(),\n onDestroy: this.onDestroy,\n }),\n )\n\n private readonly onDestroy = useOnDestroy()\n\n ngOnInit() {\n this.trackBindings()\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, Directive, input, type OnInit} from \"@angular/core\"\n\nimport {useId, useOnDestroy} from \"@qualcomm-ui/angular-core/common\"\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\n\nimport {useTextAreaContext} from \"./text-area-context.service\"\n\n@Directive()\nexport class CoreTextAreaLabelDirective implements OnInit {\n readonly id = input<string>()\n\n private readonly hostId = computed(() => useId(this, this.id()))\n\n protected readonly textAreaContext = useTextAreaContext()\n\n protected readonly trackBindings = useTrackBindings(() =>\n this.textAreaContext().getLabelBindings({\n id: this.hostId(),\n onDestroy: this.onDestroy,\n }),\n )\n\n private readonly onDestroy = useOnDestroy()\n\n ngOnInit() {\n this.trackBindings()\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, Directive, input, type OnInit} from \"@angular/core\"\n\nimport {useId, useOnDestroy} from \"@qualcomm-ui/angular-core/common\"\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\n\nimport {useTextAreaContext} from \"./text-area-context.service.js\"\n\n@Directive()\nexport class CoreTextAreaCounterDirective implements OnInit {\n readonly id = input<string>()\n\n private readonly hostId = computed(() => useId(this, this.id()))\n\n protected readonly textAreaContext = useTextAreaContext()\n\n protected readonly trackBindings = useTrackBindings(() =>\n this.textAreaContext().getCounterBindings({\n id: this.hostId(),\n onDestroy: this.onDestroy,\n }),\n )\n\n private readonly onDestroy = useOnDestroy()\n\n ngOnInit() {\n this.trackBindings()\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, Directive, input, type OnInit} from \"@angular/core\"\n\nimport {useId, useOnDestroy} from \"@qualcomm-ui/angular-core/common\"\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\n\nimport {useTextAreaContext} from \"./text-area-context.service.js\"\n\n@Directive()\nexport class CoreTextAreaHintDirective implements OnInit {\n readonly id = input<string>()\n\n private readonly hostId = computed(() => useId(this, this.id()))\n\n protected readonly textAreaContext = useTextAreaContext()\n\n protected readonly trackBindings = useTrackBindings(() =>\n this.textAreaContext().getHintBindings({\n id: this.hostId(),\n onDestroy: this.onDestroy,\n }),\n )\n\n private readonly onDestroy = useOnDestroy()\n\n ngOnInit() {\n this.trackBindings()\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, Directive, input, type OnInit} from \"@angular/core\"\n\nimport {useId, useOnDestroy} from \"@qualcomm-ui/angular-core/common\"\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\n\nimport {useTextAreaContext} from \"./text-area-context.service.js\"\n\n@Directive()\nexport class CoreTextAreaErrorTextDirective implements OnInit {\n readonly id = input<string>()\n\n private readonly hostId = computed(() => useId(this, this.id()))\n\n protected readonly textAreaContext = useTextAreaContext()\n\n protected readonly trackBindings = useTrackBindings(() =>\n this.textAreaContext().getErrorTextBindings({\n id: this.hostId(),\n onDestroy: this.onDestroy,\n }),\n )\n\n private readonly onDestroy = useOnDestroy()\n\n ngOnInit() {\n this.trackBindings()\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {DOCUMENT} from \"@angular/common\"\nimport {\n computed,\n Directive,\n inject,\n input,\n type OnInit,\n output,\n} from \"@angular/core\"\n\nimport {useIsMounted} from \"@qualcomm-ui/angular-core/common\"\nimport {AbstractInputFormControlDirective} from \"@qualcomm-ui/angular-core/input\"\nimport {\n normalizeProps,\n useMachine,\n useTrackBindings,\n} from \"@qualcomm-ui/angular-core/machine\"\nimport type {SignalifyInput} from \"@qualcomm-ui/angular-core/signals\"\nimport {\n createTextAreaApi,\n type TextAreaApiProps,\n textAreaMachine,\n} from \"@qualcomm-ui/core/text-area\"\nimport type {Direction} from \"@qualcomm-ui/utils/direction\"\nimport type {Explicit} from \"@qualcomm-ui/utils/guard\"\n\nimport {TextAreaContextService} from \"./text-area-context.service\"\n\n@Directive()\nexport class CoreTextAreaRootDirective\n extends AbstractInputFormControlDirective\n implements\n OnInit,\n SignalifyInput<Omit<TextAreaApiProps, \"form\" | \"ids\" | \"value\">>\n{\n /**\n * The document's text/writing direction.\n *\n * @default \"ltr\"\n */\n readonly dir = input<Direction | undefined>(undefined)\n\n /**\n * The maximum number of characters allowed in the textarea.\n */\n readonly maxLength = input<number | undefined>(undefined)\n\n /**\n * A root node to correctly resolve the Document in custom environments. i.e.,\n * Iframes, Electron.\n */\n readonly getRootNode = input<\n (() => ShadowRoot | Document | Node) | undefined\n >()\n\n /**\n * Event emitted when the input value changes. This is only emitted on\n * interaction. It doesn't emit in response to programmatic form control changes.\n */\n readonly valueChanged = output<string>()\n\n protected readonly textAreaService = inject(TextAreaContextService)\n protected readonly document = inject(DOCUMENT)\n\n protected readonly trackBindings = useTrackBindings(() =>\n this.textAreaService.context().getRootBindings(),\n )\n\n protected readonly isMounted = useIsMounted()\n\n override ngOnInit() {\n super.ngOnInit()\n\n const machine = useMachine(\n textAreaMachine,\n computed<Explicit<TextAreaApiProps>>(() => ({\n defaultValue: this.defaultValue(),\n dir: this.dir(),\n disabled: this.isDisabled(),\n // angular handles this automatically with ngModel and Reactive Forms\n form: undefined,\n getRootNode: this.getRootNode() ?? (() => this.document),\n ids: undefined,\n invalid: this.isInvalid(),\n maxLength: this.maxLength(),\n name: this.name(),\n onFocusChange: (focused) => {\n if (!focused) {\n // only trigger onTouched on blur.\n this.onTouched()\n }\n },\n onValueChange: (value) => {\n if (!this.control) {\n if (this.isMounted()) {\n this.valueChanged.emit(value)\n }\n this.value.set(value)\n return\n }\n // ngModel is bound to the root, but change events happen on the <input>\n // element and are forwarded to the machine. So we need to fire the value\n // change event to keep the form in sync.\n this.onChange(value)\n if (!this.control?.touched) {\n this.control.markAsTouched?.()\n }\n if (!this.control?.dirty) {\n this.control.markAsDirty?.()\n }\n },\n readOnly: this.readOnly(),\n required: this.isRequired(),\n value: this.value(),\n })),\n this.injector,\n )\n\n this.textAreaService.init(\n computed(() => createTextAreaApi(machine, normalizeProps)),\n )\n\n this.trackBindings()\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAAA;AACA;AAYM,MAAO,sBAAuB,SAAQ,qBAAkC,CAAA;wGAAjE,sBAAsB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;4GAAtB,sBAAsB,EAAA,CAAA;;4FAAtB,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBADlC;;AAGM,MAAM,CACX,iBAAiB,EACjB,kBAAkB,EAClB,sBAAsB,EACvB,GAA4B,gBAAgB,CAC3C,iBAAiB,EACjB,s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A,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,SAAA,EAAA,EAAA,iBAAA,EAAA,WAAA,EAAA,UAAA,EAAA,WAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,WAAA,EAAA,EAAA,iBAAA,EAAA,aAAA,EAAA,UAAA,EAAA,aAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,OAAA,EAAA,EAAA,YAAA,EAAA,cAAA,EAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;4FAAzB,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBADrC;;;AC/BD;;AAEG;;;;"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@qualcomm-ui/angular-core",
3
3
  "description": "Design-agnostic Angular building blocks and utilities.",
4
- "version": "1.3.3",
4
+ "version": "1.4.0",
5
5
  "author": "Ryan Bower",
6
6
  "license": "BSD-3-Clause-Clear",
7
7
  "sideEffects": false,
@@ -204,7 +204,7 @@
204
204
  "@angular/forms": ">=20 <23",
205
205
  "@angular/platform-browser": ">=20 <23",
206
206
  "@angular/platform-browser-dynamic": ">=20 <23",
207
- "@qualcomm-ui/core": "^1.0.12",
207
+ "@qualcomm-ui/core": "^1.1.0",
208
208
  "@qualcomm-ui/dom": "^1.0.7",
209
209
  "@qualcomm-ui/utils": "^1.1.0",
210
210
  "@tanstack/virtual-core": ">=3.13.12",
@@ -1,3 +1,123 @@
1
+ import * as _qualcomm_ui_angular_core_machine from '@qualcomm-ui/angular-core/machine';
2
+ import { BaseApiContextService } from '@qualcomm-ui/angular-core/machine';
3
+ import * as _qualcomm_ui_core_text_area from '@qualcomm-ui/core/text-area';
4
+ import { TextAreaApi, TextAreaApiProps } from '@qualcomm-ui/core/text-area';
5
+ import * as i0 from '@angular/core';
6
+ import { OnInit } from '@angular/core';
7
+ import { AbstractInputFormControlDirective } from '@qualcomm-ui/angular-core/input';
8
+ import { SignalifyInput } from '@qualcomm-ui/angular-core/signals';
9
+ import { Direction } from '@qualcomm-ui/utils/direction';
1
10
 
2
- export { };
11
+ declare class CoreTextAreaInputDirective implements OnInit {
12
+ readonly id: i0.InputSignal<string | undefined>;
13
+ private readonly hostId;
14
+ protected readonly textAreaContext: () => _qualcomm_ui_core_text_area.TextAreaApi;
15
+ protected readonly trackBindings: ((opts?: _qualcomm_ui_angular_core_machine.TrackBindingsConfig) => void) & {
16
+ extendWith: (computedProps: () => _qualcomm_ui_angular_core_machine.Dict) => void;
17
+ setDisabled: (disabled: boolean) => void;
18
+ };
19
+ private readonly onDestroy;
20
+ ngOnInit(): void;
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<CoreTextAreaInputDirective, never>;
22
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CoreTextAreaInputDirective, never, never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
23
+ }
24
+
25
+ declare class CoreTextAreaLabelDirective implements OnInit {
26
+ readonly id: i0.InputSignal<string | undefined>;
27
+ private readonly hostId;
28
+ protected readonly textAreaContext: () => _qualcomm_ui_core_text_area.TextAreaApi;
29
+ protected readonly trackBindings: ((opts?: _qualcomm_ui_angular_core_machine.TrackBindingsConfig) => void) & {
30
+ extendWith: (computedProps: () => _qualcomm_ui_angular_core_machine.Dict) => void;
31
+ setDisabled: (disabled: boolean) => void;
32
+ };
33
+ private readonly onDestroy;
34
+ ngOnInit(): void;
35
+ static ɵfac: i0.ɵɵFactoryDeclaration<CoreTextAreaLabelDirective, never>;
36
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CoreTextAreaLabelDirective, never, never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
37
+ }
38
+
39
+ declare class CoreTextAreaCounterDirective implements OnInit {
40
+ readonly id: i0.InputSignal<string | undefined>;
41
+ private readonly hostId;
42
+ protected readonly textAreaContext: () => _qualcomm_ui_core_text_area.TextAreaApi;
43
+ protected readonly trackBindings: ((opts?: _qualcomm_ui_angular_core_machine.TrackBindingsConfig) => void) & {
44
+ extendWith: (computedProps: () => _qualcomm_ui_angular_core_machine.Dict) => void;
45
+ setDisabled: (disabled: boolean) => void;
46
+ };
47
+ private readonly onDestroy;
48
+ ngOnInit(): void;
49
+ static ɵfac: i0.ɵɵFactoryDeclaration<CoreTextAreaCounterDirective, never>;
50
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CoreTextAreaCounterDirective, never, never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
51
+ }
52
+
53
+ declare class CoreTextAreaHintDirective implements OnInit {
54
+ readonly id: i0.InputSignal<string | undefined>;
55
+ private readonly hostId;
56
+ protected readonly textAreaContext: () => _qualcomm_ui_core_text_area.TextAreaApi;
57
+ protected readonly trackBindings: ((opts?: _qualcomm_ui_angular_core_machine.TrackBindingsConfig) => void) & {
58
+ extendWith: (computedProps: () => _qualcomm_ui_angular_core_machine.Dict) => void;
59
+ setDisabled: (disabled: boolean) => void;
60
+ };
61
+ private readonly onDestroy;
62
+ ngOnInit(): void;
63
+ static ɵfac: i0.ɵɵFactoryDeclaration<CoreTextAreaHintDirective, never>;
64
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CoreTextAreaHintDirective, never, never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
65
+ }
66
+
67
+ declare class CoreTextAreaErrorTextDirective implements OnInit {
68
+ readonly id: i0.InputSignal<string | undefined>;
69
+ private readonly hostId;
70
+ protected readonly textAreaContext: () => _qualcomm_ui_core_text_area.TextAreaApi;
71
+ protected readonly trackBindings: ((opts?: _qualcomm_ui_angular_core_machine.TrackBindingsConfig) => void) & {
72
+ extendWith: (computedProps: () => _qualcomm_ui_angular_core_machine.Dict) => void;
73
+ setDisabled: (disabled: boolean) => void;
74
+ };
75
+ private readonly onDestroy;
76
+ ngOnInit(): void;
77
+ static ɵfac: i0.ɵɵFactoryDeclaration<CoreTextAreaErrorTextDirective, never>;
78
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CoreTextAreaErrorTextDirective, never, never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
79
+ }
80
+
81
+ declare class TextAreaContextService extends BaseApiContextService<TextAreaApi> {
82
+ static ɵfac: i0.ɵɵFactoryDeclaration<TextAreaContextService, never>;
83
+ static ɵprov: i0.ɵɵInjectableDeclaration<TextAreaContextService>;
84
+ }
85
+ declare const TEXT_AREA_CONTEXT: i0.InjectionToken<() => TextAreaApi>;
86
+ declare const useTextAreaContext: <Optional extends boolean = false>(opts?: _qualcomm_ui_angular_core_machine.UseContextOpts<Optional> | undefined) => Optional extends true ? (() => TextAreaApi) | null : () => TextAreaApi;
87
+ declare const provideTextAreaContext: () => i0.Provider[];
88
+
89
+ declare class CoreTextAreaRootDirective extends AbstractInputFormControlDirective implements OnInit, SignalifyInput<Omit<TextAreaApiProps, "form" | "ids" | "value">> {
90
+ /**
91
+ * The document's text/writing direction.
92
+ *
93
+ * @default "ltr"
94
+ */
95
+ readonly dir: i0.InputSignal<Direction | undefined>;
96
+ /**
97
+ * The maximum number of characters allowed in the textarea.
98
+ */
99
+ readonly maxLength: i0.InputSignal<number | undefined>;
100
+ /**
101
+ * A root node to correctly resolve the Document in custom environments. i.e.,
102
+ * Iframes, Electron.
103
+ */
104
+ readonly getRootNode: i0.InputSignal<(() => ShadowRoot | Document | Node) | undefined>;
105
+ /**
106
+ * Event emitted when the input value changes. This is only emitted on
107
+ * interaction. It doesn't emit in response to programmatic form control changes.
108
+ */
109
+ readonly valueChanged: i0.OutputEmitterRef<string>;
110
+ protected readonly textAreaService: TextAreaContextService;
111
+ protected readonly document: Document;
112
+ protected readonly trackBindings: ((opts?: _qualcomm_ui_angular_core_machine.TrackBindingsConfig) => void) & {
113
+ extendWith: (computedProps: () => _qualcomm_ui_angular_core_machine.Dict) => void;
114
+ setDisabled: (disabled: boolean) => void;
115
+ };
116
+ protected readonly isMounted: () => boolean;
117
+ ngOnInit(): void;
118
+ static ɵfac: i0.ɵɵFactoryDeclaration<CoreTextAreaRootDirective, never>;
119
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CoreTextAreaRootDirective, never, never, { "dir": { "alias": "dir"; "required": false; "isSignal": true; }; "maxLength": { "alias": "maxLength"; "required": false; "isSignal": true; }; "getRootNode": { "alias": "getRootNode"; "required": false; "isSignal": true; }; }, { "valueChanged": "valueChanged"; }, never, never, true, never>;
120
+ }
121
+
122
+ export { CoreTextAreaCounterDirective, CoreTextAreaErrorTextDirective, CoreTextAreaHintDirective, CoreTextAreaInputDirective, CoreTextAreaLabelDirective, CoreTextAreaRootDirective, TEXT_AREA_CONTEXT, TextAreaContextService, provideTextAreaContext, useTextAreaContext };
3
123
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sources":[],"sourcesContent":[],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.d.ts","sources":["../../src/text-area/core-text-area-input.directive.ts","../../src/text-area/core-text-area-label.directive.ts","../../src/text-area/core-text-area-counter.directive.ts","../../src/text-area/core-text-area-hint.directive.ts","../../src/text-area/core-text-area-error-text.directive.ts","../../src/text-area/text-area-context.service.ts","../../src/text-area/core-text-area-root.directive.ts"],"sourcesContent":[null,null,null,null,null,null,null],"names":["_angular_core"],"mappings":";;;;;;;;;;AAUA,cAAA,0BAAA,YAAA,MAAA;iBAEaA,EAAA,CAAA,WAAA;AAEX;AAEA,8CAAkC,2BAAA,CAAA,WAAA;+CAEF,iCAAA,CAAA,mBAAA;;;AAK/B;AAED;;;;AAKD;;ACpBD,cAAA,0BAAA,YAAA,MAAA;iBAEaA,EAAA,CAAA,WAAA;AAEX;AAEA,8CAAkC,2BAAA,CAAA,WAAA;+CA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