@progress/kendo-angular-inputs 19.1.1-develop.2 → 19.1.2-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 (160) hide show
  1. package/checkbox/checkbox.component.d.ts +15 -13
  2. package/checkbox/checkbox.directive.d.ts +8 -15
  3. package/checkbox/checked-state.d.ts +5 -1
  4. package/checkbox.module.d.ts +9 -20
  5. package/colorpicker/color-gradient.component.d.ts +26 -26
  6. package/colorpicker/color-input.component.d.ts +18 -18
  7. package/colorpicker/color-palette.component.d.ts +28 -29
  8. package/colorpicker/colorpicker.component.d.ts +53 -69
  9. package/colorpicker/events/active-color-click-event.d.ts +10 -14
  10. package/colorpicker/events/cancel-event.d.ts +1 -1
  11. package/colorpicker/events/close-event.d.ts +1 -1
  12. package/colorpicker/events/open-event.d.ts +1 -1
  13. package/colorpicker/flatcolorpicker.component.d.ts +26 -29
  14. package/colorpicker/localization/custom-messages.component.d.ts +9 -1
  15. package/colorpicker/localization/messages.d.ts +29 -29
  16. package/colorpicker/models/palette-settings.d.ts +0 -3
  17. package/colorpicker/models/tile-size.d.ts +6 -0
  18. package/colorpicker.module.d.ts +18 -2
  19. package/common/models/fillmode.d.ts +4 -1
  20. package/common/models/rounded.d.ts +8 -2
  21. package/common/models/size.d.ts +4 -1
  22. package/common/models/type.d.ts +3 -1
  23. package/common/radio-checkbox.base.d.ts +0 -7
  24. package/directives.d.ts +216 -18
  25. package/esm2022/checkbox/checkbox.component.mjs +15 -13
  26. package/esm2022/checkbox/checkbox.directive.mjs +8 -15
  27. package/esm2022/checkbox.module.mjs +9 -20
  28. package/esm2022/colorpicker/color-gradient.component.mjs +26 -26
  29. package/esm2022/colorpicker/color-input.component.mjs +21 -21
  30. package/esm2022/colorpicker/color-palette.component.mjs +28 -29
  31. package/esm2022/colorpicker/colorpicker.component.mjs +53 -69
  32. package/esm2022/colorpicker/events/active-color-click-event.mjs +10 -14
  33. package/esm2022/colorpicker/events/cancel-event.mjs +1 -1
  34. package/esm2022/colorpicker/events/close-event.mjs +1 -1
  35. package/esm2022/colorpicker/events/open-event.mjs +1 -1
  36. package/esm2022/colorpicker/flatcolorpicker.component.mjs +26 -29
  37. package/esm2022/colorpicker/localization/custom-messages.component.mjs +9 -1
  38. package/esm2022/colorpicker/localization/messages.mjs +29 -29
  39. package/esm2022/colorpicker.module.mjs +18 -2
  40. package/esm2022/common/radio-checkbox.base.mjs +0 -7
  41. package/esm2022/directives.mjs +216 -18
  42. package/esm2022/formfield/error.component.mjs +9 -6
  43. package/esm2022/formfield/formfield.component.mjs +24 -20
  44. package/esm2022/formfield/hint.component.mjs +8 -5
  45. package/esm2022/formfield.module.mjs +9 -20
  46. package/esm2022/index.mjs +1 -0
  47. package/esm2022/inputs.module.mjs +9 -21
  48. package/esm2022/maskedtextbox/maskedtextbox.component.mjs +46 -88
  49. package/esm2022/maskedtextbox.module.mjs +9 -20
  50. package/esm2022/numerictextbox/localization/custom-messages.component.mjs +13 -1
  51. package/esm2022/numerictextbox/localization/messages.mjs +2 -2
  52. package/esm2022/numerictextbox/numerictextbox.component.mjs +57 -70
  53. package/esm2022/numerictextbox.module.mjs +9 -20
  54. package/esm2022/otp.module.mjs +44 -0
  55. package/esm2022/otpinput/localization/custom-messages.component.mjs +3 -1
  56. package/esm2022/otpinput/otpinput.component.mjs +39 -42
  57. package/esm2022/package-metadata.mjs +2 -2
  58. package/esm2022/radiobutton/radiobutton.component.mjs +15 -6
  59. package/esm2022/radiobutton/radiobutton.directive.mjs +6 -10
  60. package/esm2022/radiobutton.module.mjs +8 -18
  61. package/esm2022/rangeslider/localization/custom-messages.component.mjs +11 -1
  62. package/esm2022/rangeslider/rangeslider.component.mjs +12 -16
  63. package/esm2022/rangeslider.module.mjs +7 -18
  64. package/esm2022/rating/directives/rating-hovered-item.directive.mjs +11 -3
  65. package/esm2022/rating/directives/rating-item.directive.mjs +10 -3
  66. package/esm2022/rating/directives/rating-selected-item.directive.mjs +12 -3
  67. package/esm2022/rating/rating.component.mjs +23 -20
  68. package/esm2022/rating.module.mjs +7 -18
  69. package/esm2022/shared/input-separator.component.mjs +10 -15
  70. package/esm2022/shared/textarea.directive.mjs +5 -6
  71. package/esm2022/signature/events/close-event.mjs +1 -1
  72. package/esm2022/signature/localization/custom-messages.component.mjs +1 -1
  73. package/esm2022/signature/signature.component.mjs +52 -51
  74. package/esm2022/signature.module.mjs +7 -18
  75. package/esm2022/slider/localization/custom-messages.component.mjs +1 -1
  76. package/esm2022/slider/slider.component.mjs +18 -19
  77. package/esm2022/slider.module.mjs +7 -18
  78. package/esm2022/sliders-common/label-template.directive.mjs +9 -19
  79. package/esm2022/sliders-common/slider-base.mjs +47 -29
  80. package/esm2022/switch/events/blur-event.mjs +1 -1
  81. package/esm2022/switch/events/focus-event.mjs +1 -1
  82. package/esm2022/switch/localization/custom-messages.component.mjs +1 -1
  83. package/esm2022/switch/switch.component.mjs +32 -43
  84. package/esm2022/switch.module.mjs +7 -18
  85. package/esm2022/textarea/textarea-prefix.component.mjs +11 -13
  86. package/esm2022/textarea/textarea-suffix.component.mjs +11 -13
  87. package/esm2022/textarea/textarea.component.mjs +40 -103
  88. package/esm2022/textarea.module.mjs +7 -18
  89. package/esm2022/textbox/localization/custom-messages.component.mjs +1 -1
  90. package/esm2022/textbox/textbox-prefix.directive.mjs +9 -13
  91. package/esm2022/textbox/textbox-suffix.directive.mjs +10 -14
  92. package/esm2022/textbox/textbox.component.mjs +41 -112
  93. package/esm2022/textbox/textbox.directive.mjs +2 -2
  94. package/esm2022/textbox.module.mjs +7 -18
  95. package/fesm2022/progress-kendo-angular-inputs.mjs +1207 -1280
  96. package/formfield/error.component.d.ts +9 -6
  97. package/formfield/formfield.component.d.ts +24 -20
  98. package/formfield/hint.component.d.ts +8 -5
  99. package/formfield/models/message-align.d.ts +3 -1
  100. package/formfield/models/orientation.d.ts +3 -0
  101. package/formfield/models/show-options.d.ts +5 -7
  102. package/formfield.module.d.ts +9 -20
  103. package/index.d.ts +1 -0
  104. package/inputs.module.d.ts +9 -21
  105. package/maskedtextbox/maskedtextbox.component.d.ts +46 -88
  106. package/maskedtextbox.module.d.ts +9 -20
  107. package/numerictextbox/localization/custom-messages.component.d.ts +13 -1
  108. package/numerictextbox/localization/messages.d.ts +2 -2
  109. package/numerictextbox/numerictextbox.component.d.ts +57 -70
  110. package/numerictextbox.module.d.ts +9 -20
  111. package/otp.module.d.ts +32 -0
  112. package/otpinput/localization/custom-messages.component.d.ts +3 -1
  113. package/otpinput/models/otpinput-type.d.ts +2 -2
  114. package/otpinput/models/separator-icon.d.ts +8 -3
  115. package/otpinput/otpinput.component.d.ts +39 -42
  116. package/package.json +12 -12
  117. package/radiobutton/radiobutton.component.d.ts +15 -6
  118. package/radiobutton/radiobutton.directive.d.ts +6 -10
  119. package/radiobutton.module.d.ts +8 -18
  120. package/rangeslider/localization/custom-messages.component.d.ts +11 -1
  121. package/rangeslider/rangeslider-value.type.d.ts +2 -2
  122. package/rangeslider/rangeslider.component.d.ts +12 -16
  123. package/rangeslider.module.d.ts +7 -18
  124. package/rating/directives/rating-hovered-item.directive.d.ts +11 -3
  125. package/rating/directives/rating-item.directive.d.ts +10 -3
  126. package/rating/directives/rating-selected-item.directive.d.ts +12 -3
  127. package/rating/models/precision.d.ts +1 -2
  128. package/rating/models/selection.d.ts +1 -2
  129. package/rating/rating.component.d.ts +21 -18
  130. package/rating.module.d.ts +7 -18
  131. package/shared/input-separator.component.d.ts +10 -15
  132. package/shared/textarea.directive.d.ts +5 -6
  133. package/signature/events/close-event.d.ts +1 -1
  134. package/signature/localization/custom-messages.component.d.ts +1 -1
  135. package/signature/signature.component.d.ts +52 -51
  136. package/signature.module.d.ts +7 -18
  137. package/slider/localization/custom-messages.component.d.ts +1 -1
  138. package/slider/slider.component.d.ts +18 -19
  139. package/slider.module.d.ts +7 -18
  140. package/sliders-common/label-template.directive.d.ts +9 -19
  141. package/sliders-common/slider-base.d.ts +47 -29
  142. package/sliders-common/title-callback.d.ts +19 -3
  143. package/switch/events/blur-event.d.ts +1 -1
  144. package/switch/events/focus-event.d.ts +1 -1
  145. package/switch/localization/custom-messages.component.d.ts +1 -1
  146. package/switch/switch.component.d.ts +32 -43
  147. package/switch.module.d.ts +7 -18
  148. package/textarea/models/adornments-orientation.d.ts +3 -3
  149. package/textarea/models/flow.d.ts +3 -3
  150. package/textarea/models/resize.d.ts +6 -7
  151. package/textarea/textarea-prefix.component.d.ts +11 -13
  152. package/textarea/textarea-suffix.component.d.ts +11 -13
  153. package/textarea/textarea.component.d.ts +40 -103
  154. package/textarea.module.d.ts +7 -18
  155. package/textbox/localization/custom-messages.component.d.ts +1 -1
  156. package/textbox/textbox-prefix.directive.d.ts +9 -13
  157. package/textbox/textbox-suffix.directive.d.ts +10 -14
  158. package/textbox/textbox.component.d.ts +41 -112
  159. package/textbox/textbox.directive.d.ts +2 -2
  160. package/textbox.module.d.ts +7 -18
@@ -32,7 +32,17 @@ const DEFAULT_SIZE = 'medium';
32
32
  const DEFAULT_ROUNDED = 'medium';
33
33
  const DEFAULT_FILL_MODE = 'solid';
34
34
  /**
35
- * Represents the [Kendo UI TextArea component for Angular]({% slug overview_textarea %}).
35
+ * Represents the Kendo UI TextArea component for Angular.
36
+ *
37
+ * Use this component to let users enter and edit multi-line text.
38
+ *
39
+ * @example
40
+ * ```html
41
+ * <kendo-textarea [(ngModel)]="value" [rows]="5" [cols]="30"></kendo-textarea>
42
+ * ```
43
+ *
44
+ * @remarks
45
+ * Supported children components are: {@link TextAreaPrefixComponent}, {@link TextAreaSuffixComponent}.
36
46
  */
37
47
  export class TextAreaComponent extends TextFieldsBase {
38
48
  localizationService;
@@ -54,12 +64,7 @@ export class TextAreaComponent extends TextFieldsBase {
54
64
  }
55
65
  _flow = 'vertical';
56
66
  /**
57
- * Specifies the flow direction of the TextArea sections. This property is useful when adornments are used, in order to specify
58
- * their position in relation to the textarea element.
59
- *
60
- * The possible values are:
61
- * * `vertical`(Default) &mdash;TextArea sections are placed from top to bottom.
62
- * * `horizontal`&mdash;TextArea sections are placed from left to right in `ltr`, and from right to left in `rtl` mode.
67
+ * Specifies the flow direction of the TextArea sections. Use this property to set the position of adornments relative to the text area.
63
68
  */
64
69
  set flow(flow) {
65
70
  this._flow = flow;
@@ -74,7 +79,7 @@ export class TextAreaComponent extends TextFieldsBase {
74
79
  return this._flow;
75
80
  }
76
81
  /**
77
- * Sets the HTML attributes of the inner focusable input element. Attributes which are essential for certain component functionalities cannot be changed.
82
+ * Sets the HTML attributes of the inner focusable input element. Some attributes are required for component functionality and cannot be changed.
78
83
  */
79
84
  set inputAttributes(attributes) {
80
85
  if (isObjectPresent(this.parsedAttributes)) {
@@ -90,12 +95,8 @@ export class TextAreaComponent extends TextFieldsBase {
90
95
  return this._inputAttributes;
91
96
  }
92
97
  /**
93
- * Specifies the orientation of the TextArea adornments. This property is used in order to specify
94
- * the adornments' position relative to themselves.
98
+ * Specifies the orientation of the TextArea adornments. Use this property to set the position of adornments relative to each other.
95
99
  *
96
- * The possible values are:
97
- * * `horizontal`(Default) &mdash;TextArea adornments are placed from left to right in `ltr`, and from right to left in `rtl` mode.
98
- * * `vertical`&mdash;TextArea adornments are placed from top to bottom.
99
100
  */
100
101
  set adornmentsOrientation(orientation) {
101
102
  this._adornmentsOrientation = orientation;
@@ -110,19 +111,20 @@ export class TextAreaComponent extends TextFieldsBase {
110
111
  return this._adornmentsOrientation;
111
112
  }
112
113
  /**
113
- * Specifies the visible height of the textarea element in lines.
114
+ * Sets the visible height of the text area in lines.
114
115
  */
115
116
  rows;
116
117
  /**
117
- * Specifies the visible width of the textarea element (in average character width).
118
+ * Sets the visible width of the text area in average character width.
118
119
  */
119
120
  cols;
120
121
  /**
121
- * Specifies the maximum number of characters that the user can enter in the TextArea component.
122
+ * Sets the maximum number of characters allowed in the text area.
122
123
  */
123
124
  maxlength;
124
125
  /**
125
- * Specifies the [tabindex](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) of the component.
126
+ * Sets the [`tabindex`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) of the component.
127
+ * @default 0
126
128
  */
127
129
  tabindex = 0;
128
130
  /**
@@ -135,26 +137,15 @@ export class TextAreaComponent extends TextFieldsBase {
135
137
  return this.tabindex;
136
138
  }
137
139
  /**
138
- * Configures the resize behavior of the TextArea.
140
+ * Sets the resize behavior of the TextArea.
139
141
  *
140
- * The possible values are:
141
- * * `vertical`(Default)&mdash;The TextArea component can be resized only vertically.
142
- * * `horizontal`&mdash;The TextArea component can be resized only horizontally.
143
- * * `both`&mdash;The TextArea component can be resized in both (horizontal and vertical) directions.
144
- * * `auto`&mdash;Specifies whether the TextArea component will adjust its height automatically, based on the content.
145
- * * `none`&mdash;The TextArea cannot be resized.
146
142
  *
143
+ * @default 'vertical'
147
144
  */
148
145
  resizable = 'vertical';
149
146
  /**
150
- * The size property specifies the padding of the internal textarea element
151
- * ([see example]({% slug appearance_textarea %}#toc-size)).
152
- *
153
- * The possible values are:
154
- * * `small`
155
- * * `medium` (default)
156
- * * `large`
157
- * * `none`
147
+ * Sets the size of the TextArea. Controls the padding of the text area element ([see example]({% slug appearance_textarea %}#toc-size)).
148
+ * @default 'medium'
158
149
  */
159
150
  set size(size) {
160
151
  const newSize = size ? size : DEFAULT_SIZE;
@@ -165,14 +156,8 @@ export class TextAreaComponent extends TextFieldsBase {
165
156
  return this._size;
166
157
  }
167
158
  /**
168
- * The `rounded` property specifies the border radius of the TextArea
169
- * ([see example](slug:appearance_textarea#toc-roundness)).
170
- *
171
- * The possible values are:
172
- * * `small`
173
- * * `medium` (default)
174
- * * `large`
175
- * * `none`
159
+ * Sets the border radius of the TextArea ([see example](slug:appearance_textarea#toc-roundness)).
160
+ * @default 'medium'
176
161
  */
177
162
  set rounded(rounded) {
178
163
  const newRounded = rounded ? rounded : DEFAULT_ROUNDED;
@@ -183,14 +168,8 @@ export class TextAreaComponent extends TextFieldsBase {
183
168
  return this._rounded;
184
169
  }
185
170
  /**
186
- * The `fillMode` property specifies the background and border styles of the TextArea
187
- * ([see example](slug:appearance_textarea#toc-fill-mode)).
188
- *
189
- * The possible values are:
190
- * * `flat`
191
- * * `solid` (default)
192
- * * `outline`
193
- * * `none`
171
+ * Sets the background and border styles of the TextArea ([see example](slug:appearance_textarea#toc-fill-mode)).
172
+ * @default 'solid'
194
173
  */
195
174
  set fillMode(fillMode) {
196
175
  const newFillMode = fillMode ? fillMode : DEFAULT_FILL_MODE;
@@ -201,65 +180,35 @@ export class TextAreaComponent extends TextFieldsBase {
201
180
  return this._fillMode;
202
181
  }
203
182
  /**
204
- * Specifies whether the prefix separator of the TextArea is rendered.
205
- * If a prefix template is not declared, the separator will not be rendered, regardless of the parameter value.
183
+ * Shows the prefix separator in the TextArea.
184
+ * The separator is rendered only if a prefix template is declared.
206
185
  *
207
186
  * @default false
208
187
  */
209
188
  showPrefixSeparator = false;
210
189
  /**
211
- * Specifies whether the suffix separator of the TextArea is rendered.
212
- * If a suffix template is not declared, the separator will not be rendered, regardless of the parameter value.
190
+ * Shows the suffix separator in the TextArea.
191
+ * The separator is rendered only if a suffix template is declared.
213
192
  *
214
193
  * @default false
215
194
  */
216
195
  showSuffixSeparator = false;
217
196
  /**
218
- * Fires each time the user focuses the TextArea component.
197
+ * Fires when the TextArea is focused.
219
198
  *
220
- * > To wire the event programmatically, use the `onFocus` property.
221
- *
222
- * @example
223
- * ```ts
224
- * _@Component({
225
- * selector: 'my-app',
226
- * template: `
227
- * <kendo-textarea (focus)="handleFocus()"></kendo-textarea>
228
- * `
229
- * })
230
- * class AppComponent {
231
- * public handleFocus(): void {
232
- * console.log('Component is focused.');
233
- * }
234
- * }
235
- * ```
199
+ * Use the `onFocus` property to subscribe to this event.
236
200
  */
237
201
  onFocus = new EventEmitter();
238
202
  /**
239
- * Fires each time the TextArea component gets blurred.
240
- *
241
- * > To wire the event programmatically, use the `onBlur` property.
203
+ * Fires when the TextArea gets blurred.
242
204
  *
243
- * @example
244
- * ```ts
245
- * _@Component({
246
- * selector: 'my-app',
247
- * template: `
248
- * <kendo-textarea (blur)="handleBlur()"></kendo-textarea>
249
- * `
250
- * })
251
- * class AppComponent {
252
- * public handleBlur(): void {
253
- * console.log('Component is blurred');
254
- * }
255
- * }
256
- * ```
205
+ * Use the `onBlur` property to subscribe to this event.
257
206
  */
258
207
  onBlur = new EventEmitter();
259
208
  /**
260
- * Fires each time the value is changed or the component is blurred
261
- * ([see example](slug:events_textarea)).
262
- * When the component value is changed programmatically or via its form control binding, the valueChange event is not emitted.
209
+ * Fires when the value changes or the TextArea is blurred ([see example](slug:events_textarea)).
210
+ *
211
+ * The event does not fire when the value changes programmatically or through form control binding.
263
212
  */
264
213
  valueChange = new EventEmitter();
265
214
  initialHeight;
@@ -474,19 +423,7 @@ export class TextAreaComponent extends TextFieldsBase {
474
423
  }
475
424
  };
476
425
  /**
477
- * Focuses the TextArea component.
478
- *
479
- * @example
480
- * ```ts
481
- * _@Component({
482
- * selector: 'my-app',
483
- * template: `
484
- * <button (click)="textarea.focus()">Focus the textarea</button>
485
- * <kendo-textarea #textarea></kendo-textarea>
486
- * `
487
- * })
488
- * class AppComponent { }
489
- * ```
426
+ * Focuses the TextArea.
490
427
  */
491
428
  focus() {
492
429
  if (!this.input) {
@@ -498,7 +435,7 @@ export class TextAreaComponent extends TextFieldsBase {
498
435
  this.focusChangedProgrammatically = false;
499
436
  }
500
437
  /**
501
- * Blurs the TextArea component.
438
+ * Blurs the TextArea.
502
439
  */
503
440
  blur() {
504
441
  this.focusChangedProgrammatically = true;
@@ -13,34 +13,23 @@ import * as i4 from "./textarea/textarea-suffix.component";
13
13
  import * as i5 from "@progress/kendo-angular-common";
14
14
  //IMPORTANT: NgModule export kept for backwards compatibility
15
15
  /**
16
- * Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
17
- * definition for the TextArea component.
16
+ * Defines the [`NgModule`](link:site.data.urls.angular['ngmoduleapi']) for the TextArea component.
17
+ *
18
+ * Use this module to add the TextArea component to your NgModule-based Angular application.
18
19
  *
19
20
  * @example
20
21
  *
21
- * ```ts-no-run
22
- * // Import the TextArea module
22
+ * ```typescript
23
23
  * import { TextAreaModule } from '@progress/kendo-angular-inputs';
24
- *
25
- * // The browser platform with a compiler
26
- * import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
27
- *
28
24
  * import { NgModule } from '@angular/core';
29
- *
30
- * // Import the app component
31
25
  * import { AppComponent } from './app.component';
32
26
  *
33
- * // Define the app module
34
- * _@NgModule({
35
- * declarations: [AppComponent], // declare app component
36
- * imports: [BrowserModule, TextAreaModule], // import TextArea module
27
+ * @NgModule({
28
+ * declarations: [AppComponent],
29
+ * imports: [BrowserModule, TextAreaModule],
37
30
  * bootstrap: [AppComponent]
38
31
  * })
39
32
  * export class AppModule {}
40
- *
41
- * // Compile and launch the module
42
- * platformBrowserDynamic().bootstrapModule(AppModule);
43
- *
44
33
  * ```
45
34
  */
46
35
  export class TextAreaModule {
@@ -8,7 +8,7 @@ import { TextBoxMessages } from './messages';
8
8
  import * as i0 from "@angular/core";
9
9
  import * as i1 from "@progress/kendo-angular-l10n";
10
10
  /**
11
- * Custom component messages override default component messages.
11
+ * Overrides the default messages of the TextBox component.
12
12
  */
13
13
  export class TextBoxCustomMessagesComponent extends TextBoxMessages {
14
14
  service;
@@ -5,26 +5,22 @@
5
5
  import { Directive, Input, Optional, TemplateRef } from '@angular/core';
6
6
  import * as i0 from "@angular/core";
7
7
  /**
8
- * Specifies the adornments in the prefix container ([see examples](slug:adornments_textbox#toc-prefix-adornments)).
8
+ * Represents a template for prefix adornments in the TextBox component ([see examples](slug:adornments_textbox#toc-prefix-adornments)).
9
+ *
9
10
  * @example
10
- * ```ts-no-run
11
- * _@Component({
12
- * selector: 'my-app',
13
- * template: `
14
- * <kendo-textbox>
15
- * <ng-template kendoTextBoxPrefixTemplate>
16
- * <button kendoButton look="clear" icon="image"></button>
17
- * </ng-template>
11
+ * ```html
12
+ * <kendo-textbox>
13
+ * <ng-template kendoTextBoxPrefixTemplate>
14
+ * <button kendoButton icon="image"></button>
15
+ * </ng-template>
18
16
  * </kendo-textbox>
19
- * `
20
- * })
21
- * class AppComponent {}
17
+
22
18
  * ```
23
19
  */
24
20
  export class TextBoxPrefixTemplateDirective {
25
21
  templateRef;
26
22
  /**
27
- * Sets the `showSeparator` attribute of the `kendoTextBoxPrefixTemplate`.
23
+ * Determines whether a separator is shown after the prefix template.
28
24
  *
29
25
  * @default false
30
26
  */
@@ -5,25 +5,21 @@
5
5
  import { Directive, Input, Optional, TemplateRef } from '@angular/core';
6
6
  import * as i0 from "@angular/core";
7
7
  /**
8
- * Specifies the adornments in the suffix container ([see examples](slug:adornments_textbox#toc-suffix-adornments)).
9
- * ```ts-no-run
10
- * _@Component({
11
- * selector: 'my-app',
12
- * template: `
13
- * <kendo-textbox>
14
- * <ng-template kendoTextBoxSuffixTemplate>
15
- * <button kendoButton look="clear" icon="image"></button>
16
- * </ng-template>
17
- * </kendo-textbox>
18
- * `
19
- * })
20
- * class AppComponent {}
8
+ * Represents a template for suffix adornments in the TextBox component ([see examples](slug:adornments_textbox#toc-suffix-adornments)).
9
+ *
10
+ * @example
11
+ * ```html
12
+ * <kendo-textbox>
13
+ * <ng-template kendoTextBoxSuffixTemplate>
14
+ * <button kendoButton icon="image"></button>
15
+ * </ng-template>
16
+ * </kendo-textbox>
21
17
  * ```
22
18
  */
23
19
  export class TextBoxSuffixTemplateDirective {
24
20
  templateRef;
25
21
  /**
26
- * Sets the `showSeparator` attribute of the `kendoTextBoxSuffixTemplate`.
22
+ * Determines whether a separator is shown before the suffix template.
27
23
  *
28
24
  * @default false
29
25
  */
@@ -27,6 +27,18 @@ const DEFAULT_SIZE = 'medium';
27
27
  const DEFAULT_ROUNDED = 'medium';
28
28
  const DEFAULT_FILL_MODE = 'solid';
29
29
  const iconsMap = { checkIcon, exclamationCircleIcon, xIcon };
30
+ /**
31
+ * Represents the Kendo UI TextBox component for Angular.
32
+ * Use this component to create styled and feature-rich text input fields.
33
+ *
34
+ * @example
35
+ * ```html
36
+ * <kendo-textbox placeholder="Enter text"></kendo-textbox>
37
+ * ```
38
+ *
39
+ * @remarks
40
+ * Supported children components are: {@link TextBoxCustomMessagesComponent}.
41
+ */
30
42
  export class TextBoxComponent {
31
43
  localizationService;
32
44
  ngZone;
@@ -44,23 +56,21 @@ export class TextBoxComponent {
44
56
  title;
45
57
  /**
46
58
  * Sets the `type` attribute of the `input` element of the TextBox.
59
+ * @default 'text'
47
60
  */
48
61
  type = 'text';
49
62
  /**
50
- * Sets the disabled state of the TextBox. To learn how to disable the component in reactive forms, refer to the article on [Forms Support](slug:formssupport_textbox#toc-managing-the-textbox-disabled-state-in-reactive-forms).
51
- *
63
+ * Sets the disabled state of the TextBox. To disable the component in reactive forms, see [Forms Support](slug:formssupport_textbox#toc-managing-the-textbox-disabled-state-in-reactive-forms).
52
64
  * @default false
53
65
  */
54
66
  disabled = false;
55
67
  /**
56
68
  * Sets the read-only state of the component.
57
- *
58
69
  * @default false
59
70
  */
60
71
  readonly = false;
61
72
  /**
62
73
  * Specifies the `tabindex` of the TextBox.
63
- *
64
74
  * @default 0
65
75
  */
66
76
  tabindex = 0;
@@ -69,74 +79,54 @@ export class TextBoxComponent {
69
79
  */
70
80
  value = null;
71
81
  /**
72
- * Determines whether the whole value will be selected when the TextBox is clicked. Defaults to `false`.
73
- *
82
+ * Highlights the whole value when you click the TextBox.
74
83
  * @default false
75
84
  */
76
85
  selectOnFocus = false;
77
86
  /**
78
- * Specifies when the Success icon will be shown ([see example]({% slug validation_textbox %})).
79
- *
80
- * The possible values are:
81
- *
82
- * `boolean`&mdash;The Success icon is displayed, if the condition given by the developer is met.
83
- *
84
- * `initial`&mdash;The Success icon will be displayed when the component state is neither `invalid` nor `touched` or `dirty`.
87
+ * Specifies when to show the Success icon ([see example]({% slug validation_textbox %})).
85
88
  *
86
89
  * @default false
87
90
  */
88
91
  showSuccessIcon = false;
89
92
  /**
90
- * Specifies when the Error icon will be shown ([see example]({% slug validation_textbox %})).
91
- *
92
- * The possible values are:
93
- *
94
- * * `initial`&mdash;The Error icon will be displayed when the component state is
95
- * `invalid` and `touched` or `dirty`.
96
- * * `boolean`&mdash;The Error icon is displayed, if the condition given by the developer is met.
93
+ * Specifies when to show the Error icon ([see example]({% slug validation_textbox %})).
97
94
  *
98
95
  * @default false
99
96
  */
100
97
  showErrorIcon = false;
101
98
  /**
102
- * Specifies whether a Clear button will be rendered.
103
- *
99
+ * Shows a **Clear** button in the TextBox.
104
100
  * @default false
105
101
  */
106
102
  clearButton = false;
107
103
  /**
108
- * Sets a custom icon that will be rendered instead of the default one for a valid user input.
104
+ * Sets a custom icon for valid user input.
109
105
  */
110
106
  successIcon;
111
107
  /**
112
- * Sets a custom SVG icon that will be rendered instead of the default one for a valid user input.
108
+ * Sets a custom SVG icon for valid user input.
113
109
  */
114
110
  successSvgIcon;
115
111
  /**
116
- * Sets a custom icon that will be rendered instead of the default one for invalid user input.
112
+ * Sets a custom icon for invalid user input.
117
113
  */
118
114
  errorIcon;
119
115
  /**
120
- * Sets a custom SVG icon that will be rendered instead of the default one for invalid user input.
116
+ * Sets a custom SVG icon for invalid user input.
121
117
  */
122
118
  errorSvgIcon;
123
119
  /**
124
- * Sets a custom icon that will be rendered instead of the default one.
120
+ * Sets a custom icon for the **Clear** button.
125
121
  */
126
122
  clearButtonIcon;
127
123
  /**
128
- * Sets a custom SVG icon that will be rendered instead of the default one.
124
+ * Sets a custom SVG icon for the **Clear** button.
129
125
  */
130
126
  clearButtonSvgIcon;
131
127
  /**
132
- * The size property specifies the padding of the TextBox internal input element
133
- * ([see example]({% slug appearance_textbox %}#toc-size)).
134
- *
135
- * The possible values are:
136
- * * `small`
137
- * * `medium` (default)
138
- * * `large`
139
- * * `none`
128
+ * Sets the padding of the TextBox internal input element ([see example]({% slug appearance_textbox %}#toc-size)).
129
+ * @default 'medium'
140
130
  */
141
131
  set size(size) {
142
132
  const newSize = size ? size : DEFAULT_SIZE;
@@ -147,15 +137,8 @@ export class TextBoxComponent {
147
137
  return this._size;
148
138
  }
149
139
  /**
150
- * The `rounded` property specifies the border radius of the TextBox
151
- * ([see example](slug:appearance_textbox#toc-roundness)).
152
- *
153
- * The possible values are:
154
- * * `small`
155
- * * `medium` (default)
156
- * * `large`
157
- * * `full`
158
- * * `none`
140
+ * Sets the border radius of the TextBox ([see example](slug:appearance_textbox#toc-roundness)).
141
+ * @default 'medium'
159
142
  */
160
143
  set rounded(rounded) {
161
144
  const newRounded = rounded ? rounded : DEFAULT_ROUNDED;
@@ -166,14 +149,8 @@ export class TextBoxComponent {
166
149
  return this._rounded;
167
150
  }
168
151
  /**
169
- * The `fillMode` property specifies the background and border styles of the TextBox
170
- * ([see example]({% slug appearance_textbox %}#toc-fill-mode)).
171
- *
172
- * The possible values are:
173
- * * `flat`
174
- * * `solid` (default)
175
- * * `outline`
176
- * * `none`
152
+ * Sets the background and border styles of the TextBox ([see example]({% slug appearance_textbox %}#toc-fill-mode)).
153
+ * @default 'solid'
177
154
  */
178
155
  set fillMode(fillMode) {
179
156
  const newFillMode = fillMode ? fillMode : DEFAULT_FILL_MODE;
@@ -193,15 +170,15 @@ export class TextBoxComponent {
193
170
  return this.tabindex;
194
171
  }
195
172
  /**
196
- * The hint, which is displayed when the component is empty.
173
+ * Sets the placeholder text displayed when the component is empty.
197
174
  */
198
175
  placeholder;
199
176
  /**
200
- * Specifies the maximum length of the TextBox value.
177
+ * Sets the maximum length of the TextBox value.
201
178
  */
202
179
  maxlength;
203
180
  /**
204
- * Sets the HTML attributes of the inner focusable input element. Attributes which are essential for certain component functionalities cannot be changed.
181
+ * Sets the HTML attributes of the inner focusable input element. You cannot change attributes that are essential for component functionality.
205
182
  */
206
183
  set inputAttributes(attributes) {
207
184
  if (isObjectPresent(this.parsedAttributes)) {
@@ -217,66 +194,30 @@ export class TextBoxComponent {
217
194
  return this._inputAttributes;
218
195
  }
219
196
  /**
220
- * Fires each time the value is changed&mdash;
221
- * when the component is blurred or the value is cleared through the **Clear** button
222
- * ([see example](slug:events_textbox)).
223
- * When the value of the component is programmatically changed to `ngModel` or `formControl`
224
- * through its API or form binding, the `valueChange` event is not triggered because it
225
- * might cause a mix-up with the built-in `valueChange` mechanisms of the `ngModel` or `formControl` bindings.
197
+ * Fires when the value changes—when the component is blurred or the value is cleared through the **Clear** button ([see example](slug:events_textbox)).
198
+ * Does not fire when you change the value programmatically through `ngModel` or `formControl`.
226
199
  */
227
200
  valueChange = new EventEmitter();
228
201
  /**
229
- * Fires each time the user focuses the `input` element.
202
+ * Fires when the user focuses the `input` element.
230
203
  */
231
204
  inputFocus = new EventEmitter();
232
205
  /**
233
- * Fires each time the `input` element gets blurred.
206
+ * Fires when the `input` element is blurred.
234
207
  */
235
208
  inputBlur = new EventEmitter();
236
209
  /**
237
- * Fires each time the user focuses the TextBox component.
238
- *
239
- * > To wire the event programmatically, use the `onFocus` property.
210
+ * Fires when the user focuses the TextBox component.
240
211
  *
241
- * @example
242
- * ```ts-no-run
243
- * _@Component({
244
- * selector: 'my-app',
245
- * template: `
246
- * <kendo-textbox (focus)="handleFocus()"></kendo-textbox>
247
- * `
248
- * })
249
- * class AppComponent {
250
- * public handleFocus(): void {
251
- * console.log('Component is focused.');
252
- * }
253
- * }
254
- * ```
255
212
  */
256
213
  onFocus = new EventEmitter();
257
214
  /**
258
- * Fires each time the TextBox component gets blurred.
215
+ * Fires when the TextBox component is blurred.
259
216
  *
260
- * > To wire the event programmatically, use the `onBlur` property.
261
- *
262
- * @example
263
- * ```ts-no-run
264
- * _@Component({
265
- * selector: 'my-app',
266
- * template: `
267
- * <kendo-textbox (blur)="handleBlur()"></kendo-textbox>
268
- * `
269
- * })
270
- * class AppComponent {
271
- * public handleBlur(): void {
272
- * console.log('Component is blurred');
273
- * }
274
- * }
275
- * ```
276
217
  */
277
218
  onBlur = new EventEmitter();
278
219
  /**
279
- * Represents the visible `input` element of the TextBox.
220
+ * Gets a reference to the visible `input` element of the TextBox.
280
221
  */
281
222
  input;
282
223
  /**
@@ -385,18 +326,6 @@ export class TextBoxComponent {
385
326
  }
386
327
  /**
387
328
  * Focuses the TextBox.
388
- *
389
- * @example
390
- * ```ts-no-run
391
- * _@Component({
392
- * selector: 'my-app',
393
- * template: `
394
- * <button (click)="input.focus()">Focus the input</button>
395
- * <kendo-textbox #input></kendo-textbox>
396
- * `
397
- * })
398
- * class AppComponent { }
399
- * ```
400
329
  */
401
330
  focus() {
402
331
  if (!this.input) {
@@ -408,7 +337,7 @@ export class TextBoxComponent {
408
337
  this.focusChangedProgrammatically = false;
409
338
  }
410
339
  /**
411
- * Blurs the TextBox.
340
+ * Removes focus from the TextBox.
412
341
  */
413
342
  blur() {
414
343
  this.focusChangedProgrammatically = true;
@@ -7,10 +7,10 @@ import { KendoInput } from '@progress/kendo-angular-common';
7
7
  import * as i0 from "@angular/core";
8
8
  /**
9
9
  * Represents the [Kendo UI TextBox directive]({% slug overview_textbox %}) for the Inputs components for Angular.
10
- * Used to style the textbox of any `input` element.
10
+ * Use this directive to style the textbox of any `input` element.
11
11
  *
12
12
  * @example
13
- * ```ts-no-run
13
+ * ```html
14
14
  * <input kendoTextBox />
15
15
  * <input kendoTextBox type="email" />
16
16
  * <input kendoTextBox type="password" />