@progress/kendo-angular-inputs 14.4.0-develop.9 → 15.0.0-develop.1

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.
Files changed (40) hide show
  1. package/NOTICE.txt +146 -593
  2. package/esm2020/colorpicker/color-input.component.mjs +1 -1
  3. package/esm2020/index.mjs +4 -0
  4. package/esm2020/maskedtextbox/maskedtextbox.component.mjs +144 -56
  5. package/esm2020/maskedtextbox.module.mjs +30 -6
  6. package/esm2020/numerictextbox/numerictextbox.component.mjs +186 -91
  7. package/esm2020/numerictextbox.module.mjs +10 -6
  8. package/esm2020/package-metadata.mjs +2 -2
  9. package/esm2020/shared/input-separator.component.mjs +21 -3
  10. package/esm2020/shared/shared-events.directive.mjs +95 -0
  11. package/esm2020/shared-events.module.mjs +22 -0
  12. package/esm2020/textarea/models/adornments-orientation.mjs +5 -0
  13. package/esm2020/textarea/textarea-prefix.component.mjs +70 -0
  14. package/esm2020/textarea/textarea-suffix.component.mjs +33 -3
  15. package/esm2020/textarea/textarea.component.mjs +198 -131
  16. package/esm2020/textarea.module.mjs +14 -5
  17. package/esm2020/textbox/textbox-prefix.directive.mjs +17 -3
  18. package/esm2020/textbox/textbox-suffix.directive.mjs +17 -3
  19. package/esm2020/textbox/textbox.component.mjs +205 -203
  20. package/esm2020/textbox.module.mjs +9 -5
  21. package/fesm2015/progress-kendo-angular-inputs.mjs +1131 -609
  22. package/fesm2020/progress-kendo-angular-inputs.mjs +1131 -609
  23. package/index.d.ts +6 -0
  24. package/maskedtextbox/maskedtextbox.component.d.ts +37 -6
  25. package/maskedtextbox.module.d.ts +3 -1
  26. package/numerictextbox/numerictextbox.component.d.ts +38 -7
  27. package/numerictextbox.module.d.ts +3 -1
  28. package/package.json +10 -10
  29. package/shared/input-separator.component.d.ts +8 -1
  30. package/shared/shared-events.directive.d.ts +27 -0
  31. package/shared-events.module.d.ts +14 -0
  32. package/textarea/models/adornments-orientation.d.ts +12 -0
  33. package/textarea/textarea-prefix.component.d.ts +37 -0
  34. package/textarea/textarea-suffix.component.d.ts +12 -1
  35. package/textarea/textarea.component.d.ts +62 -6
  36. package/textarea.module.d.ts +9 -7
  37. package/textbox/textbox-prefix.directive.d.ts +9 -1
  38. package/textbox/textbox-suffix.directive.d.ts +9 -1
  39. package/textbox/textbox.component.d.ts +36 -9
  40. package/textbox.module.d.ts +4 -3
package/index.d.ts CHANGED
@@ -55,9 +55,15 @@ export { TextBoxSuffixTemplateDirective } from './textbox/textbox-suffix.directi
55
55
  export { TextAreaComponent } from './textarea/textarea.component';
56
56
  export { TextAreaFlow } from './textarea/models/flow';
57
57
  export { TextAreaResize } from './textarea/models/resize';
58
+ export { TextAreaPrefixComponent } from './textarea/textarea-prefix.component';
58
59
  export { TextAreaSuffixComponent } from './textarea/textarea-suffix.component';
60
+ export { TextAreaAdornmentsOrientation } from './textarea/models/adornments-orientation';
59
61
  export { InputSeparatorComponent } from './shared/input-separator.component';
60
62
  export { SharedModule } from './shared.module';
63
+ export { PrefixTemplateDirective } from '@progress/kendo-angular-common';
64
+ export { SuffixTemplateDirective } from '@progress/kendo-angular-common';
65
+ export { SeparatorComponent } from '@progress/kendo-angular-common';
66
+ export { SeparatorOrientation } from '@progress/kendo-angular-common';
61
67
  export { LocalizedColorPickerMessagesDirective } from './colorpicker/localization/localized-colorpicker-messages.directive';
62
68
  export { LocalizedNumericTextBoxMessagesDirective } from './numerictextbox/localization/localized-numerictextbox-messages.directive';
63
69
  export { LocalizedTextBoxMessagesDirective } from './textbox/localization/localized-textbox-messages.directive';
@@ -4,6 +4,7 @@
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { ElementRef, EventEmitter, OnChanges, Renderer2, SimpleChanges, NgZone, Injector, ChangeDetectorRef } from '@angular/core';
6
6
  import { AbstractControl, ControlValueAccessor, Validator } from '@angular/forms';
7
+ import { PrefixTemplateDirective, SuffixTemplateDirective } from '@progress/kendo-angular-common';
7
8
  import { MaskingService } from './masking.service';
8
9
  import { InputSize } from '../common/models';
9
10
  import { InputRounded } from '../common/models/rounded';
@@ -34,7 +35,7 @@ import * as i0 from "@angular/core";
34
35
  export declare class MaskedTextBoxComponent implements ControlValueAccessor, OnChanges, Validator {
35
36
  private service;
36
37
  private renderer;
37
- private hostElement;
38
+ hostElement: ElementRef;
38
39
  private ngZone;
39
40
  private injector;
40
41
  private changeDetector;
@@ -143,7 +144,7 @@ export declare class MaskedTextBoxComponent implements ControlValueAccessor, OnC
143
144
  set tabIndex(tabIndex: number);
144
145
  get tabIndex(): number;
145
146
  /**
146
- * Fires each time the user focuses the `input` element.
147
+ * Fires each time the user focuses the MaskedTextBox component.
147
148
  *
148
149
  * > To wire the event programmatically, use the `onFocus` property.
149
150
  *
@@ -164,7 +165,7 @@ export declare class MaskedTextBoxComponent implements ControlValueAccessor, OnC
164
165
  */
165
166
  onFocus: EventEmitter<any>;
166
167
  /**
167
- * Fires each time the `input` element gets blurred.
168
+ * Fires each time the MaskedTextBox component gets blurred.
168
169
  *
169
170
  * > To wire the event programmatically, use the `onBlur` property.
170
171
  *
@@ -184,6 +185,14 @@ export declare class MaskedTextBoxComponent implements ControlValueAccessor, OnC
184
185
  * ```
185
186
  */
186
187
  onBlur: EventEmitter<any>;
188
+ /**
189
+ * Fires each time the user focuses the `input` element.
190
+ */
191
+ inputFocus: EventEmitter<any>;
192
+ /**
193
+ * Fires each time the `input` element gets blurred.
194
+ */
195
+ inputBlur: EventEmitter<any>;
187
196
  /**
188
197
  * Fires each time the value changes.
189
198
  */
@@ -195,6 +204,14 @@ export declare class MaskedTextBoxComponent implements ControlValueAccessor, OnC
195
204
  * Represents the `ElementRef` of the visible `input` element.
196
205
  */
197
206
  input: ElementRef;
207
+ /**
208
+ * @hidden
209
+ */
210
+ suffixTemplate: SuffixTemplateDirective;
211
+ /**
212
+ * @hidden
213
+ */
214
+ prefixTemplate: PrefixTemplateDirective;
198
215
  protected isFocused: boolean;
199
216
  private maskedValue;
200
217
  private focusClick;
@@ -218,6 +235,10 @@ export declare class MaskedTextBoxComponent implements ControlValueAccessor, OnC
218
235
  * @hidden
219
236
  */
220
237
  handleFocus: () => void;
238
+ /**
239
+ * @hidden
240
+ */
241
+ handleInputFocus: () => void;
221
242
  /**
222
243
  * @hidden
223
244
  */
@@ -226,6 +247,10 @@ export declare class MaskedTextBoxComponent implements ControlValueAccessor, OnC
226
247
  * @hidden
227
248
  */
228
249
  handleBlur: () => void;
250
+ /**
251
+ * @hidden
252
+ */
253
+ handleInputBlur: () => void;
229
254
  /**
230
255
  * @hidden
231
256
  */
@@ -306,10 +331,16 @@ export declare class MaskedTextBoxComponent implements ControlValueAccessor, OnC
306
331
  private setSelection;
307
332
  private get emptyMask();
308
333
  private setFocusSelection;
309
- private get focused();
310
- private set focused(value);
334
+ /**
335
+ * @hidden
336
+ */
337
+ get focused(): boolean;
338
+ /**
339
+ * @hidden
340
+ */
341
+ set focused(value: boolean);
311
342
  private normalizeValue;
312
343
  private handleClasses;
313
344
  static ɵfac: i0.ɵɵFactoryDeclaration<MaskedTextBoxComponent, [null, null, null, null, null, null, { optional: true; }]>;
314
- static ɵcmp: i0.ɵɵComponentDeclaration<MaskedTextBoxComponent, "kendo-maskedtextbox", ["kendoMaskedTextBox"], { "focusableId": "focusableId"; "disabled": "disabled"; "readonly": "readonly"; "title": "title"; "size": "size"; "rounded": "rounded"; "fillMode": "fillMode"; "mask": "mask"; "value": "value"; "rules": "rules"; "prompt": "prompt"; "promptPlaceholder": "promptPlaceholder"; "includeLiterals": "includeLiterals"; "maskOnFocus": "maskOnFocus"; "maskValidation": "maskValidation"; "tabindex": "tabindex"; "tabIndex": "tabIndex"; }, { "onFocus": "focus"; "onBlur": "blur"; "valueChange": "valueChange"; }, never, never>;
345
+ static ɵcmp: i0.ɵɵComponentDeclaration<MaskedTextBoxComponent, "kendo-maskedtextbox", ["kendoMaskedTextBox"], { "focusableId": "focusableId"; "disabled": "disabled"; "readonly": "readonly"; "title": "title"; "size": "size"; "rounded": "rounded"; "fillMode": "fillMode"; "mask": "mask"; "value": "value"; "rules": "rules"; "prompt": "prompt"; "promptPlaceholder": "promptPlaceholder"; "includeLiterals": "includeLiterals"; "maskOnFocus": "maskOnFocus"; "maskValidation": "maskValidation"; "tabindex": "tabindex"; "tabIndex": "tabIndex"; }, { "onFocus": "focus"; "onBlur": "blur"; "inputFocus": "inputFocus"; "inputBlur": "inputBlur"; "valueChange": "valueChange"; }, ["suffixTemplate", "prefixTemplate"], never>;
315
346
  }
@@ -6,6 +6,8 @@ import * as i0 from "@angular/core";
6
6
  import * as i1 from "./maskedtextbox/maskedtextbox.component";
7
7
  import * as i2 from "@angular/common";
8
8
  import * as i3 from "@progress/kendo-angular-common";
9
+ import * as i4 from "./shared.module";
10
+ import * as i5 from "./shared-events.module";
9
11
  /**
10
12
  * Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
11
13
  * definition for the MaskedTextBox component.
@@ -39,6 +41,6 @@ import * as i3 from "@progress/kendo-angular-common";
39
41
  */
40
42
  export declare class MaskedTextBoxModule {
41
43
  static ɵfac: i0.ɵɵFactoryDeclaration<MaskedTextBoxModule, never>;
42
- static ɵmod: i0.ɵɵNgModuleDeclaration<MaskedTextBoxModule, [typeof i1.MaskedTextBoxComponent], [typeof i2.CommonModule, typeof i3.EventsModule], [typeof i1.MaskedTextBoxComponent]>;
44
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MaskedTextBoxModule, [typeof i1.MaskedTextBoxComponent], [typeof i2.CommonModule, typeof i3.EventsModule, typeof i4.SharedModule, typeof i3.AdornmentsModule, typeof i5.SharedEventsModule], [typeof i1.MaskedTextBoxComponent, typeof i3.AdornmentsModule]>;
43
45
  static ɵinj: i0.ɵɵInjectorDeclaration<MaskedTextBoxModule>;
44
46
  }
@@ -3,6 +3,7 @@
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { ElementRef, EventEmitter, OnChanges, OnDestroy, Renderer2, NgZone, ChangeDetectorRef, Injector } from '@angular/core';
6
+ import { SuffixTemplateDirective, PrefixTemplateDirective } from '@progress/kendo-angular-common';
6
7
  import { ControlValueAccessor, AbstractControl, NgControl, Validator } from '@angular/forms';
7
8
  import { IntlService, NumberFormatOptions } from '@progress/kendo-angular-intl';
8
9
  import { LocalizationService } from '@progress/kendo-angular-l10n';
@@ -21,7 +22,7 @@ export declare class NumericTextBoxComponent implements ControlValueAccessor, On
21
22
  private injector;
22
23
  private ngZone;
23
24
  private changeDetector;
24
- private hostElement;
25
+ hostElement: ElementRef;
25
26
  /**
26
27
  * @hidden
27
28
  */
@@ -154,17 +155,33 @@ export declare class NumericTextBoxComponent implements ControlValueAccessor, On
154
155
  */
155
156
  valueChange: EventEmitter<any>;
156
157
  /**
157
- * Fires each time the user focuses the `input` element ([see example]({% slug overview_numerictextbox %}#toc-events)).
158
+ * Fires each time the user focuses the NumericTextBox element ([see example]({% slug overview_numerictextbox %}#toc-events)).
158
159
  */
159
160
  onFocus: EventEmitter<any>;
160
161
  /**
161
- * Fires each time the `input` element gets blurred ([see example]({% slug overview_numerictextbox %}#toc-events)).
162
+ * Fires each time the NumericTextBox component gets blurred. ([see example]({% slug overview_numerictextbox %}#toc-events)).
162
163
  */
163
164
  onBlur: EventEmitter<any>;
165
+ /**
166
+ * Fires each time the user focuses the `input` element.
167
+ */
168
+ inputFocus: EventEmitter<any>;
169
+ /**
170
+ * Fires each time the `input` element gets blurred.
171
+ */
172
+ inputBlur: EventEmitter<any>;
164
173
  /**
165
174
  * @hidden
166
175
  */
167
176
  numericInput: ElementRef;
177
+ /**
178
+ * @hidden
179
+ */
180
+ suffixTemplate: SuffixTemplateDirective;
181
+ /**
182
+ * @hidden
183
+ */
184
+ prefixTemplate: PrefixTemplateDirective;
168
185
  direction: string;
169
186
  /**
170
187
  * @hidden
@@ -301,11 +318,19 @@ export declare class NumericTextBoxComponent implements ControlValueAccessor, On
301
318
  /**
302
319
  * @hidden
303
320
  */
304
- handleFocus: () => void;
321
+ handleInputFocus: () => void;
322
+ /**
323
+ * @hidden
324
+ */
325
+ handleFocus(): void;
305
326
  /**
306
327
  * @hidden
307
328
  */
308
329
  handleBlur: () => void;
330
+ /**
331
+ * @hidden
332
+ */
333
+ handleInputBlur: () => void;
309
334
  /**
310
335
  * @hidden
311
336
  */
@@ -326,11 +351,17 @@ export declare class NumericTextBoxComponent implements ControlValueAccessor, On
326
351
  * @hidden
327
352
  */
328
353
  get isControlInvalid(): boolean;
354
+ /**
355
+ * @hidden
356
+ */
357
+ get focused(): boolean;
358
+ /**
359
+ * @hidden
360
+ */
361
+ set focused(value: boolean);
329
362
  private get decimalSeparator();
330
363
  private get elementValue();
331
364
  private set elementValue(value);
332
- private get focused();
333
- private set focused(value);
334
365
  private get hasDecimals();
335
366
  private get isDisabled();
336
367
  private arrowPress;
@@ -360,5 +391,5 @@ export declare class NumericTextBoxComponent implements ControlValueAccessor, On
360
391
  private adjustSignificantChars;
361
392
  private handleClasses;
362
393
  static ɵfac: i0.ɵɵFactoryDeclaration<NumericTextBoxComponent, never>;
363
- static ɵcmp: i0.ɵɵComponentDeclaration<NumericTextBoxComponent, "kendo-numerictextbox", ["kendoNumericTextBox"], { "focusableId": "focusableId"; "disabled": "disabled"; "readonly": "readonly"; "title": "title"; "autoCorrect": "autoCorrect"; "format": "format"; "max": "max"; "min": "min"; "decimals": "decimals"; "placeholder": "placeholder"; "step": "step"; "spinners": "spinners"; "rangeValidation": "rangeValidation"; "tabindex": "tabindex"; "tabIndex": "tabIndex"; "changeValueOnScroll": "changeValueOnScroll"; "selectOnFocus": "selectOnFocus"; "value": "value"; "maxlength": "maxlength"; "size": "size"; "rounded": "rounded"; "fillMode": "fillMode"; }, { "valueChange": "valueChange"; "onFocus": "focus"; "onBlur": "blur"; }, never, never>;
394
+ static ɵcmp: i0.ɵɵComponentDeclaration<NumericTextBoxComponent, "kendo-numerictextbox", ["kendoNumericTextBox"], { "focusableId": "focusableId"; "disabled": "disabled"; "readonly": "readonly"; "title": "title"; "autoCorrect": "autoCorrect"; "format": "format"; "max": "max"; "min": "min"; "decimals": "decimals"; "placeholder": "placeholder"; "step": "step"; "spinners": "spinners"; "rangeValidation": "rangeValidation"; "tabindex": "tabindex"; "tabIndex": "tabIndex"; "changeValueOnScroll": "changeValueOnScroll"; "selectOnFocus": "selectOnFocus"; "value": "value"; "maxlength": "maxlength"; "size": "size"; "rounded": "rounded"; "fillMode": "fillMode"; }, { "valueChange": "valueChange"; "onFocus": "focus"; "onBlur": "blur"; "inputFocus": "inputFocus"; "inputBlur": "inputBlur"; }, ["suffixTemplate", "prefixTemplate"], never>;
364
395
  }
@@ -9,6 +9,8 @@ import * as i3 from "./numerictextbox/localization/custom-messages.component";
9
9
  import * as i4 from "@angular/common";
10
10
  import * as i5 from "@progress/kendo-angular-common";
11
11
  import * as i6 from "@progress/kendo-angular-icons";
12
+ import * as i7 from "./shared.module";
13
+ import * as i8 from "./shared-events.module";
12
14
  /**
13
15
  * Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
14
16
  * definition for the NumericTextBox component.
@@ -42,6 +44,6 @@ import * as i6 from "@progress/kendo-angular-icons";
42
44
  */
43
45
  export declare class NumericTextBoxModule {
44
46
  static ɵfac: i0.ɵɵFactoryDeclaration<NumericTextBoxModule, never>;
45
- static ɵmod: i0.ɵɵNgModuleDeclaration<NumericTextBoxModule, [typeof i1.LocalizedNumericTextBoxMessagesDirective, typeof i2.NumericTextBoxComponent, typeof i3.NumericTextBoxCustomMessagesComponent], [typeof i4.CommonModule, typeof i5.EventsModule, typeof i6.IconsModule], [typeof i2.NumericTextBoxComponent, typeof i3.NumericTextBoxCustomMessagesComponent]>;
47
+ static ɵmod: i0.ɵɵNgModuleDeclaration<NumericTextBoxModule, [typeof i1.LocalizedNumericTextBoxMessagesDirective, typeof i2.NumericTextBoxComponent, typeof i3.NumericTextBoxCustomMessagesComponent], [typeof i4.CommonModule, typeof i5.EventsModule, typeof i6.IconsModule, typeof i7.SharedModule, typeof i5.AdornmentsModule, typeof i8.SharedEventsModule], [typeof i2.NumericTextBoxComponent, typeof i3.NumericTextBoxCustomMessagesComponent, typeof i5.AdornmentsModule]>;
46
48
  static ɵinj: i0.ɵɵInjectorDeclaration<NumericTextBoxModule>;
47
49
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-inputs",
3
- "version": "14.4.0-develop.9",
3
+ "version": "15.0.0-develop.1",
4
4
  "description": "Kendo UI for Angular Inputs Package - Everything you need to build professional form functionality (Checkbox, ColorGradient, ColorPalette, ColorPicker, FlatColorPicker, FormField, MaskedTextBox, NumericTextBox, RadioButton, RangeSlider, Slider, Switch, TextArea, and TextBox Components)",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "Progress",
@@ -34,19 +34,19 @@
34
34
  "@angular/platform-browser": "13 - 17",
35
35
  "@progress/kendo-drawing": "^1.19.0",
36
36
  "@progress/kendo-licensing": "^1.0.2",
37
- "@progress/kendo-angular-buttons": "14.4.0-develop.9",
38
- "@progress/kendo-angular-common": "14.4.0-develop.9",
39
- "@progress/kendo-angular-dialog": "14.4.0-develop.9",
40
- "@progress/kendo-angular-intl": "14.4.0-develop.9",
41
- "@progress/kendo-angular-l10n": "14.4.0-develop.9",
42
- "@progress/kendo-angular-popup": "14.4.0-develop.9",
43
- "@progress/kendo-angular-icons": "14.4.0-develop.9",
37
+ "@progress/kendo-angular-buttons": "15.0.0-develop.1",
38
+ "@progress/kendo-angular-common": "15.0.0-develop.1",
39
+ "@progress/kendo-angular-dialog": "15.0.0-develop.1",
40
+ "@progress/kendo-angular-intl": "15.0.0-develop.1",
41
+ "@progress/kendo-angular-l10n": "15.0.0-develop.1",
42
+ "@progress/kendo-angular-popup": "15.0.0-develop.1",
43
+ "@progress/kendo-angular-icons": "15.0.0-develop.1",
44
44
  "rxjs": "^6.5.3 || ^7.0.0",
45
- "@progress/kendo-angular-upload": "14.4.0-develop.9"
45
+ "@progress/kendo-angular-upload": "15.0.0-develop.1"
46
46
  },
47
47
  "dependencies": {
48
48
  "tslib": "^2.3.1",
49
- "@progress/kendo-angular-schematics": "14.4.0-develop.9",
49
+ "@progress/kendo-angular-schematics": "15.0.0-develop.1",
50
50
  "@progress/kendo-common": "^0.2.2",
51
51
  "@progress/kendo-draggable": "^3.0.0",
52
52
  "@progress/kendo-inputs-common": "^3.1.0"
@@ -2,6 +2,7 @@
2
2
  * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
+ import { SeparatorOrientation } from '@progress/kendo-angular-common';
5
6
  import * as i0 from "@angular/core";
6
7
  /**
7
8
  * Specifies a separator in the content of components like the TextArea and the TextBox. ([see examples]({% slug adornments_textbox %}#toc-separator)).
@@ -22,7 +23,13 @@ import * as i0 from "@angular/core";
22
23
  * ```
23
24
  */
24
25
  export declare class InputSeparatorComponent {
26
+ /**
27
+ * Specifies the orientation of the separator.
28
+ */
29
+ orientation: SeparatorOrientation;
30
+ get vertical(): boolean;
31
+ get horizontal(): boolean;
25
32
  hostClass: boolean;
26
33
  static ɵfac: i0.ɵɵFactoryDeclaration<InputSeparatorComponent, never>;
27
- static ɵcmp: i0.ɵɵComponentDeclaration<InputSeparatorComponent, "kendo-input-separator, kendo-textbox-separator", never, {}, {}, never, never>;
34
+ static ɵcmp: i0.ɵɵComponentDeclaration<InputSeparatorComponent, "kendo-input-separator, kendo-textbox-separator", never, { "orientation": "orientation"; }, {}, never, never>;
28
35
  }
@@ -0,0 +1,27 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { AfterViewInit, ChangeDetectorRef, EventEmitter, NgZone, OnDestroy, Renderer2 } from '@angular/core';
6
+ import { Subscription } from 'rxjs';
7
+ import * as i0 from "@angular/core";
8
+ /**
9
+ * @hidden
10
+ */
11
+ export declare class SharedInputEventsDirective implements AfterViewInit, OnDestroy {
12
+ private ngZone;
13
+ protected renderer: Renderer2;
14
+ cdr: ChangeDetectorRef;
15
+ hostElement: any;
16
+ clearButtonClicked: boolean;
17
+ isFocused: boolean;
18
+ isFocusedChange: EventEmitter<boolean>;
19
+ onFocus: EventEmitter<any>;
20
+ handleBlur: EventEmitter<any>;
21
+ protected subscriptions: Subscription;
22
+ constructor(ngZone: NgZone, renderer: Renderer2, cdr: ChangeDetectorRef);
23
+ ngAfterViewInit(): void;
24
+ ngOnDestroy(): void;
25
+ static ɵfac: i0.ɵɵFactoryDeclaration<SharedInputEventsDirective, never>;
26
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SharedInputEventsDirective, "[kendoInputSharedEvents]", never, { "hostElement": "hostElement"; "clearButtonClicked": "clearButtonClicked"; "isFocused": "isFocused"; }, { "isFocusedChange": "isFocusedChange"; "onFocus": "onFocus"; "handleBlur": "handleBlur"; }, never>;
27
+ }
@@ -0,0 +1,14 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import * as i0 from "@angular/core";
6
+ import * as i1 from "./shared/shared-events.directive";
7
+ /**
8
+ * @hidden
9
+ */
10
+ export declare class SharedEventsModule {
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<SharedEventsModule, never>;
12
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SharedEventsModule, [typeof i1.SharedInputEventsDirective], never, [typeof i1.SharedInputEventsDirective]>;
13
+ static ɵinj: i0.ɵɵInjectorDeclaration<SharedEventsModule>;
14
+ }
@@ -0,0 +1,12 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ /**
6
+ * Specifies the orientation of the TextArea adornments.
7
+ *
8
+ * The possible values are:
9
+ * * `horizontal`(Default) &mdash;TextArea adornments are placed from left to right in `ltr`, and from right to left in `rtl` mode.
10
+ * * `vertical`&mdash;TextArea adornments are placed from top to bottom.
11
+ */
12
+ export declare type TextAreaAdornmentsOrientation = 'horizontal' | 'vertical';
@@ -0,0 +1,37 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import * as i0 from "@angular/core";
6
+ /**
7
+ * Specifies the adornments in the prefix container ([see example]({% slug textarea_adornments %})).
8
+ * ```ts-no-run
9
+ * _@Component({
10
+ * selector: 'my-app',
11
+ * template: `
12
+ * <kendo-textarea>
13
+ * <kendo-textarea-prefix>
14
+ * <button kendoButton look="clear" icon="image"></button>
15
+ * </kendo-textarea-prefix>
16
+ * </kendo-textarea>
17
+ * `
18
+ * })
19
+ * class AppComponent {}
20
+ * ```
21
+ */
22
+ export declare class TextAreaPrefixComponent {
23
+ /**
24
+ * @hidden
25
+ */
26
+ flow: string;
27
+ /**
28
+ * @hidden
29
+ */
30
+ orientation: string;
31
+ hostClass: boolean;
32
+ get verticalOrientation(): boolean;
33
+ get horizontalOrientation(): boolean;
34
+ get alignItems(): boolean;
35
+ static ɵfac: i0.ɵɵFactoryDeclaration<TextAreaPrefixComponent, never>;
36
+ static ɵcmp: i0.ɵɵComponentDeclaration<TextAreaPrefixComponent, "kendo-textarea-prefix", ["kendoTextAreaPrefix"], { "flow": "flow"; "orientation": "orientation"; }, {}, never, ["*"]>;
37
+ }
@@ -20,7 +20,18 @@ import * as i0 from "@angular/core";
20
20
  * ```
21
21
  */
22
22
  export declare class TextAreaSuffixComponent {
23
+ /**
24
+ * @hidden
25
+ */
26
+ flow: string;
27
+ /**
28
+ * @hidden
29
+ */
30
+ orientation: string;
23
31
  hostClass: boolean;
32
+ get verticalOrientation(): boolean;
33
+ get horizontalOrientation(): boolean;
34
+ get alignItems(): boolean;
24
35
  static ɵfac: i0.ɵɵFactoryDeclaration<TextAreaSuffixComponent, never>;
25
- static ɵcmp: i0.ɵɵComponentDeclaration<TextAreaSuffixComponent, "kendo-textarea-suffix", ["kendoTextAreaSuffix"], {}, {}, never, ["*"]>;
36
+ static ɵcmp: i0.ɵɵComponentDeclaration<TextAreaSuffixComponent, "kendo-textarea-suffix", ["kendoTextAreaSuffix"], { "flow": "flow"; "orientation": "orientation"; }, {}, never, ["*"]>;
26
37
  }
@@ -4,11 +4,15 @@
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { ElementRef, EventEmitter, NgZone, Renderer2, ChangeDetectorRef, Injector } from '@angular/core';
6
6
  import { ControlValueAccessor } from '@angular/forms';
7
+ import { SeparatorOrientation } from '@progress/kendo-angular-common';
7
8
  import { LocalizationService } from '@progress/kendo-angular-l10n';
8
9
  import { TextFieldsBase } from '../text-fields-common/text-fields-base';
9
10
  import { TextAreaFlow } from './models/flow';
10
11
  import { TextAreaResize } from './models/resize';
11
12
  import { InputRounded, InputFillMode, InputSize } from '../common/models';
13
+ import { TextAreaAdornmentsOrientation } from './models/adornments-orientation';
14
+ import { TextAreaPrefixComponent } from './textarea-prefix.component';
15
+ import { TextAreaSuffixComponent } from './textarea-suffix.component';
12
16
  import * as i0 from "@angular/core";
13
17
  /**
14
18
  * Represents the [Kendo UI TextArea component for Angular]({% slug overview_textarea %}).
@@ -19,7 +23,7 @@ export declare class TextAreaComponent extends TextFieldsBase implements Control
19
23
  protected changeDetector: ChangeDetectorRef;
20
24
  protected renderer: Renderer2;
21
25
  protected injector: Injector;
22
- protected hostElement: ElementRef;
26
+ hostElement: ElementRef;
23
27
  /**
24
28
  * @hidden
25
29
  */
@@ -27,6 +31,7 @@ export declare class TextAreaComponent extends TextFieldsBase implements Control
27
31
  hostClasses: boolean;
28
32
  get flowCol(): boolean;
29
33
  get flowRow(): boolean;
34
+ private _flow;
30
35
  /**
31
36
  * Specifies the flow direction of the TextArea sections. This property is useful when adornments are used, in order to specify
32
37
  * their position in relation to the textarea element.
@@ -35,7 +40,18 @@ export declare class TextAreaComponent extends TextFieldsBase implements Control
35
40
  * * `vertical`(Default) &mdash;TextArea sections are placed from top to bottom.
36
41
  * * `horizontal`&mdash;TextArea sections are placed from left to right in `ltr`, and from right to left in `rtl` mode.
37
42
  */
38
- flow: TextAreaFlow;
43
+ set flow(flow: TextAreaFlow);
44
+ get flow(): TextAreaFlow;
45
+ /**
46
+ * Specifies the orientation of the TextArea adornments. This property is used in order to specify
47
+ * the adornments' position relative to themselves.
48
+ *
49
+ * The possible values are:
50
+ * * `horizontal`(Default) &mdash;TextArea adornments are placed from left to right in `ltr`, and from right to left in `rtl` mode.
51
+ * * `vertical`&mdash;TextArea adornments are placed from top to bottom.
52
+ */
53
+ set adornmentsOrientation(orientation: TextAreaAdornmentsOrientation);
54
+ get adornmentsOrientation(): TextAreaAdornmentsOrientation;
39
55
  /**
40
56
  * Specifies the visible height of the textarea element in lines.
41
57
  */
@@ -105,6 +121,20 @@ export declare class TextAreaComponent extends TextFieldsBase implements Control
105
121
  */
106
122
  set fillMode(fillMode: InputFillMode);
107
123
  get fillMode(): InputFillMode;
124
+ /**
125
+ * Specifies whether the prefix separator of the TextArea is rendered.
126
+ * If a prefix template is not declared, the separator will not be rendered, regardless of the parameter value.
127
+ *
128
+ * @default false
129
+ */
130
+ showPrefixSeparator: boolean;
131
+ /**
132
+ * Specifies whether the suffix separator of the TextArea is rendered.
133
+ * If a suffix template is not declared, the separator will not be rendered, regardless of the parameter value.
134
+ *
135
+ * @default false
136
+ */
137
+ showSuffixSeparator: boolean;
108
138
  /**
109
139
  * Fires each time the user focuses the TextArea component.
110
140
  *
@@ -158,10 +188,19 @@ export declare class TextAreaComponent extends TextFieldsBase implements Control
158
188
  private _size;
159
189
  private _rounded;
160
190
  private _fillMode;
191
+ private _adornmentsOrientation;
161
192
  constructor(localizationService: LocalizationService, ngZone: NgZone, changeDetector: ChangeDetectorRef, renderer: Renderer2, injector: Injector, hostElement: ElementRef);
162
193
  ngAfterViewInit(): void;
163
194
  ngOnInit(): void;
164
195
  ngOnChanges(changes: any): void;
196
+ /**
197
+ * @hidden
198
+ */
199
+ prefix: TextAreaPrefixComponent;
200
+ /**
201
+ * @hidden
202
+ */
203
+ suffix: TextAreaSuffixComponent;
165
204
  /**
166
205
  * @hidden
167
206
  */
@@ -184,6 +223,18 @@ export declare class TextAreaComponent extends TextFieldsBase implements Control
184
223
  * @hidden
185
224
  */
186
225
  get isControlInvalid(): boolean;
226
+ /**
227
+ * @hidden
228
+ */
229
+ get separatorOrientation(): SeparatorOrientation;
230
+ /**
231
+ * @hidden
232
+ */
233
+ get isFocused(): boolean;
234
+ /**
235
+ * @hidden
236
+ */
237
+ set isFocused(value: boolean);
187
238
  /**
188
239
  * @hidden
189
240
  */
@@ -213,13 +264,18 @@ export declare class TextAreaComponent extends TextFieldsBase implements Control
213
264
  */
214
265
  blur(): void;
215
266
  private resize;
216
- private get isFocused();
217
- private set isFocused(value);
218
- private handleBlur;
267
+ /**
268
+ * @hidden
269
+ */
270
+ handleFocus(): void;
271
+ /**
272
+ * @hidden
273
+ */
274
+ handleBlur(): void;
219
275
  private setSelection;
220
276
  private selectAll;
221
277
  private handleClasses;
222
278
  private handleFlow;
223
279
  static ɵfac: i0.ɵɵFactoryDeclaration<TextAreaComponent, never>;
224
- static ɵcmp: i0.ɵɵComponentDeclaration<TextAreaComponent, "kendo-textarea", ["kendoTextArea"], { "focusableId": "focusableId"; "flow": "flow"; "rows": "rows"; "cols": "cols"; "maxlength": "maxlength"; "tabindex": "tabindex"; "tabIndex": "tabIndex"; "resizable": "resizable"; "size": "size"; "rounded": "rounded"; "fillMode": "fillMode"; }, { "onFocus": "focus"; "onBlur": "blur"; "valueChange": "valueChange"; }, never, ["kendo-textarea-suffix"]>;
280
+ static ɵcmp: i0.ɵɵComponentDeclaration<TextAreaComponent, "kendo-textarea", ["kendoTextArea"], { "focusableId": "focusableId"; "flow": "flow"; "adornmentsOrientation": "adornmentsOrientation"; "rows": "rows"; "cols": "cols"; "maxlength": "maxlength"; "tabindex": "tabindex"; "tabIndex": "tabIndex"; "resizable": "resizable"; "size": "size"; "rounded": "rounded"; "fillMode": "fillMode"; "showPrefixSeparator": "showPrefixSeparator"; "showSuffixSeparator": "showSuffixSeparator"; }, { "onFocus": "focus"; "onBlur": "blur"; "valueChange": "valueChange"; }, ["prefix", "suffix"], ["kendo-textarea-prefix", "kendo-textarea-suffix"]>;
225
281
  }
@@ -4,12 +4,14 @@
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import * as i0 from "@angular/core";
6
6
  import * as i1 from "./textarea/textarea.component";
7
- import * as i2 from "./textarea/textarea-suffix.component";
8
- import * as i3 from "@angular/common";
9
- import * as i4 from "@progress/kendo-angular-common";
10
- import * as i5 from "./shared.module";
11
- import * as i6 from "./shared/input-separator.component";
12
- import * as i7 from "./shared/textarea.directive";
7
+ import * as i2 from "./textarea/textarea-prefix.component";
8
+ import * as i3 from "./textarea/textarea-suffix.component";
9
+ import * as i4 from "@angular/common";
10
+ import * as i5 from "@progress/kendo-angular-common";
11
+ import * as i6 from "./shared.module";
12
+ import * as i7 from "./shared-events.module";
13
+ import * as i8 from "./shared/input-separator.component";
14
+ import * as i9 from "./shared/textarea.directive";
13
15
  /**
14
16
  * Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
15
17
  * definition for the TextArea component.
@@ -43,6 +45,6 @@ import * as i7 from "./shared/textarea.directive";
43
45
  */
44
46
  export declare class TextAreaModule {
45
47
  static ɵfac: i0.ɵɵFactoryDeclaration<TextAreaModule, never>;
46
- static ɵmod: i0.ɵɵNgModuleDeclaration<TextAreaModule, [typeof i1.TextAreaComponent, typeof i2.TextAreaSuffixComponent], [typeof i3.CommonModule, typeof i4.EventsModule, typeof i5.SharedModule], [typeof i1.TextAreaComponent, typeof i4.EventsModule, typeof i2.TextAreaSuffixComponent, typeof i6.InputSeparatorComponent, typeof i7.TextAreaDirective]>;
48
+ static ɵmod: i0.ɵɵNgModuleDeclaration<TextAreaModule, [typeof i1.TextAreaComponent, typeof i2.TextAreaPrefixComponent, typeof i3.TextAreaSuffixComponent], [typeof i4.CommonModule, typeof i5.EventsModule, typeof i6.SharedModule, typeof i5.AdornmentsModule, typeof i7.SharedEventsModule], [typeof i1.TextAreaComponent, typeof i5.EventsModule, typeof i2.TextAreaPrefixComponent, typeof i3.TextAreaSuffixComponent, typeof i5.AdornmentsModule, typeof i8.InputSeparatorComponent, typeof i9.TextAreaDirective]>;
47
49
  static ɵinj: i0.ɵɵInjectorDeclaration<TextAreaModule>;
48
50
  }
@@ -23,7 +23,15 @@ import * as i0 from "@angular/core";
23
23
  */
24
24
  export declare class TextBoxPrefixTemplateDirective {
25
25
  templateRef: TemplateRef<any>;
26
+ /**
27
+ * Sets the `showSeparator` attribute of the `kendoTextBoxPrefixTemplate`.
28
+ *
29
+ * @default false
30
+ */
31
+ set showSeparator(value: boolean);
32
+ get showSeparator(): boolean;
33
+ private _showSeparator;
26
34
  constructor(templateRef: TemplateRef<any>);
27
35
  static ɵfac: i0.ɵɵFactoryDeclaration<TextBoxPrefixTemplateDirective, [{ optional: true; }]>;
28
- static ɵdir: i0.ɵɵDirectiveDeclaration<TextBoxPrefixTemplateDirective, "[kendoTextBoxPrefixTemplate]", never, {}, {}, never>;
36
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TextBoxPrefixTemplateDirective, "[kendoTextBoxPrefixTemplate]", never, { "showSeparator": "showSeparator"; }, {}, never>;
29
37
  }
@@ -22,7 +22,15 @@ import * as i0 from "@angular/core";
22
22
  */
23
23
  export declare class TextBoxSuffixTemplateDirective {
24
24
  templateRef: TemplateRef<any>;
25
+ /**
26
+ * Sets the `showSeparator` attribute of the `kendoTextBoxSuffixTemplate`.
27
+ *
28
+ * @default false
29
+ */
30
+ set showSeparator(value: boolean);
31
+ get showSeparator(): boolean;
32
+ private _showSeparator;
25
33
  constructor(templateRef: TemplateRef<any>);
26
34
  static ɵfac: i0.ɵɵFactoryDeclaration<TextBoxSuffixTemplateDirective, [{ optional: true; }]>;
27
- static ɵdir: i0.ɵɵDirectiveDeclaration<TextBoxSuffixTemplateDirective, "[kendoTextBoxSuffixTemplate]", never, {}, {}, never>;
35
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TextBoxSuffixTemplateDirective, "[kendoTextBoxSuffixTemplate]", never, { "showSeparator": "showSeparator"; }, {}, never>;
28
36
  }