@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
@@ -13,6 +13,18 @@ import { LocalizationService } from '@progress/kendo-angular-l10n';
13
13
  import { SVGIcon } from '@progress/kendo-angular-icons';
14
14
  import { InputSize, InputRounded, InputFillMode, InputType } from '../common/models';
15
15
  import * as i0 from "@angular/core";
16
+ /**
17
+ * Represents the Kendo UI TextBox component for Angular.
18
+ * Use this component to create styled and feature-rich text input fields.
19
+ *
20
+ * @example
21
+ * ```html
22
+ * <kendo-textbox placeholder="Enter text"></kendo-textbox>
23
+ * ```
24
+ *
25
+ * @remarks
26
+ * Supported children components are: {@link TextBoxCustomMessagesComponent}.
27
+ */
16
28
  export declare class TextBoxComponent implements ControlValueAccessor {
17
29
  private localizationService;
18
30
  private ngZone;
@@ -30,23 +42,21 @@ export declare class TextBoxComponent implements ControlValueAccessor {
30
42
  title: string;
31
43
  /**
32
44
  * Sets the `type` attribute of the `input` element of the TextBox.
45
+ * @default 'text'
33
46
  */
34
47
  type: InputType;
35
48
  /**
36
- * 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).
37
- *
49
+ * 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).
38
50
  * @default false
39
51
  */
40
52
  disabled: boolean;
41
53
  /**
42
54
  * Sets the read-only state of the component.
43
- *
44
55
  * @default false
45
56
  */
46
57
  readonly: boolean;
47
58
  /**
48
59
  * Specifies the `tabindex` of the TextBox.
49
- *
50
60
  * @default 0
51
61
  */
52
62
  tabindex: number;
@@ -55,99 +65,66 @@ export declare class TextBoxComponent implements ControlValueAccessor {
55
65
  */
56
66
  value: string;
57
67
  /**
58
- * Determines whether the whole value will be selected when the TextBox is clicked. Defaults to `false`.
59
- *
68
+ * Highlights the whole value when you click the TextBox.
60
69
  * @default false
61
70
  */
62
71
  selectOnFocus: boolean;
63
72
  /**
64
- * Specifies when the Success icon will be shown ([see example]({% slug validation_textbox %})).
65
- *
66
- * The possible values are:
67
- *
68
- * `boolean`&mdash;The Success icon is displayed, if the condition given by the developer is met.
69
- *
70
- * `initial`&mdash;The Success icon will be displayed when the component state is neither `invalid` nor `touched` or `dirty`.
73
+ * Specifies when to show the Success icon ([see example]({% slug validation_textbox %})).
71
74
  *
72
75
  * @default false
73
76
  */
74
77
  showSuccessIcon: IconShowOptions;
75
78
  /**
76
- * Specifies when the Error icon will be shown ([see example]({% slug validation_textbox %})).
77
- *
78
- * The possible values are:
79
- *
80
- * * `initial`&mdash;The Error icon will be displayed when the component state is
81
- * `invalid` and `touched` or `dirty`.
82
- * * `boolean`&mdash;The Error icon is displayed, if the condition given by the developer is met.
79
+ * Specifies when to show the Error icon ([see example]({% slug validation_textbox %})).
83
80
  *
84
81
  * @default false
85
82
  */
86
83
  showErrorIcon: IconShowOptions;
87
84
  /**
88
- * Specifies whether a Clear button will be rendered.
89
- *
85
+ * Shows a **Clear** button in the TextBox.
90
86
  * @default false
91
87
  */
92
88
  clearButton: boolean;
93
89
  /**
94
- * Sets a custom icon that will be rendered instead of the default one for a valid user input.
90
+ * Sets a custom icon for valid user input.
95
91
  */
96
92
  successIcon: string;
97
93
  /**
98
- * Sets a custom SVG icon that will be rendered instead of the default one for a valid user input.
94
+ * Sets a custom SVG icon for valid user input.
99
95
  */
100
96
  successSvgIcon: SVGIcon;
101
97
  /**
102
- * Sets a custom icon that will be rendered instead of the default one for invalid user input.
98
+ * Sets a custom icon for invalid user input.
103
99
  */
104
100
  errorIcon: string;
105
101
  /**
106
- * Sets a custom SVG icon that will be rendered instead of the default one for invalid user input.
102
+ * Sets a custom SVG icon for invalid user input.
107
103
  */
108
104
  errorSvgIcon: SVGIcon;
109
105
  /**
110
- * Sets a custom icon that will be rendered instead of the default one.
106
+ * Sets a custom icon for the **Clear** button.
111
107
  */
112
108
  clearButtonIcon: string;
113
109
  /**
114
- * Sets a custom SVG icon that will be rendered instead of the default one.
110
+ * Sets a custom SVG icon for the **Clear** button.
115
111
  */
116
112
  clearButtonSvgIcon: SVGIcon;
117
113
  /**
118
- * The size property specifies the padding of the TextBox internal input element
119
- * ([see example]({% slug appearance_textbox %}#toc-size)).
120
- *
121
- * The possible values are:
122
- * * `small`
123
- * * `medium` (default)
124
- * * `large`
125
- * * `none`
114
+ * Sets the padding of the TextBox internal input element ([see example]({% slug appearance_textbox %}#toc-size)).
115
+ * @default 'medium'
126
116
  */
127
117
  set size(size: InputSize);
128
118
  get size(): InputSize;
129
119
  /**
130
- * The `rounded` property specifies the border radius of the TextBox
131
- * ([see example](slug:appearance_textbox#toc-roundness)).
132
- *
133
- * The possible values are:
134
- * * `small`
135
- * * `medium` (default)
136
- * * `large`
137
- * * `full`
138
- * * `none`
120
+ * Sets the border radius of the TextBox ([see example](slug:appearance_textbox#toc-roundness)).
121
+ * @default 'medium'
139
122
  */
140
123
  set rounded(rounded: InputRounded);
141
124
  get rounded(): InputRounded;
142
125
  /**
143
- * The `fillMode` property specifies the background and border styles of the TextBox
144
- * ([see example]({% slug appearance_textbox %}#toc-fill-mode)).
145
- *
146
- * The possible values are:
147
- * * `flat`
148
- * * `solid` (default)
149
- * * `outline`
150
- * * `none`
126
+ * Sets the background and border styles of the TextBox ([see example]({% slug appearance_textbox %}#toc-fill-mode)).
127
+ * @default 'solid'
151
128
  */
152
129
  set fillMode(fillMode: InputFillMode);
153
130
  get fillMode(): InputFillMode;
@@ -157,15 +134,15 @@ export declare class TextBoxComponent implements ControlValueAccessor {
157
134
  set tabIndex(tabIndex: number);
158
135
  get tabIndex(): number;
159
136
  /**
160
- * The hint, which is displayed when the component is empty.
137
+ * Sets the placeholder text displayed when the component is empty.
161
138
  */
162
139
  placeholder: string;
163
140
  /**
164
- * Specifies the maximum length of the TextBox value.
141
+ * Sets the maximum length of the TextBox value.
165
142
  */
166
143
  maxlength: number;
167
144
  /**
168
- * Sets the HTML attributes of the inner focusable input element. Attributes which are essential for certain component functionalities cannot be changed.
145
+ * Sets the HTML attributes of the inner focusable input element. You cannot change attributes that are essential for component functionality.
169
146
  */
170
147
  set inputAttributes(attributes: {
171
148
  [key: string]: string;
@@ -174,66 +151,30 @@ export declare class TextBoxComponent implements ControlValueAccessor {
174
151
  [key: string]: string;
175
152
  };
176
153
  /**
177
- * Fires each time the value is changed&mdash;
178
- * when the component is blurred or the value is cleared through the **Clear** button
179
- * ([see example](slug:events_textbox)).
180
- * When the value of the component is programmatically changed to `ngModel` or `formControl`
181
- * through its API or form binding, the `valueChange` event is not triggered because it
182
- * might cause a mix-up with the built-in `valueChange` mechanisms of the `ngModel` or `formControl` bindings.
154
+ * Fires when the value changes—when the component is blurred or the value is cleared through the **Clear** button ([see example](slug:events_textbox)).
155
+ * Does not fire when you change the value programmatically through `ngModel` or `formControl`.
183
156
  */
184
157
  valueChange: EventEmitter<any>;
185
158
  /**
186
- * Fires each time the user focuses the `input` element.
159
+ * Fires when the user focuses the `input` element.
187
160
  */
188
161
  inputFocus: EventEmitter<any>;
189
162
  /**
190
- * Fires each time the `input` element gets blurred.
163
+ * Fires when the `input` element is blurred.
191
164
  */
192
165
  inputBlur: EventEmitter<any>;
193
166
  /**
194
- * Fires each time the user focuses the TextBox component.
195
- *
196
- * > To wire the event programmatically, use the `onFocus` property.
167
+ * Fires when the user focuses the TextBox component.
197
168
  *
198
- * @example
199
- * ```ts-no-run
200
- * _@Component({
201
- * selector: 'my-app',
202
- * template: `
203
- * <kendo-textbox (focus)="handleFocus()"></kendo-textbox>
204
- * `
205
- * })
206
- * class AppComponent {
207
- * public handleFocus(): void {
208
- * console.log('Component is focused.');
209
- * }
210
- * }
211
- * ```
212
169
  */
213
170
  onFocus: EventEmitter<any>;
214
171
  /**
215
- * Fires each time the TextBox component gets blurred.
172
+ * Fires when the TextBox component is blurred.
216
173
  *
217
- * > To wire the event programmatically, use the `onBlur` property.
218
- *
219
- * @example
220
- * ```ts-no-run
221
- * _@Component({
222
- * selector: 'my-app',
223
- * template: `
224
- * <kendo-textbox (blur)="handleBlur()"></kendo-textbox>
225
- * `
226
- * })
227
- * class AppComponent {
228
- * public handleBlur(): void {
229
- * console.log('Component is blurred');
230
- * }
231
- * }
232
- * ```
233
174
  */
234
175
  onBlur: EventEmitter<any>;
235
176
  /**
236
- * Represents the visible `input` element of the TextBox.
177
+ * Gets a reference to the visible `input` element of the TextBox.
237
178
  */
238
179
  input: ElementRef;
239
180
  /**
@@ -293,22 +234,10 @@ export declare class TextBoxComponent implements ControlValueAccessor {
293
234
  svgIcon(name: string): SVGIcon;
294
235
  /**
295
236
  * Focuses the TextBox.
296
- *
297
- * @example
298
- * ```ts-no-run
299
- * _@Component({
300
- * selector: 'my-app',
301
- * template: `
302
- * <button (click)="input.focus()">Focus the input</button>
303
- * <kendo-textbox #input></kendo-textbox>
304
- * `
305
- * })
306
- * class AppComponent { }
307
- * ```
308
237
  */
309
238
  focus(): void;
310
239
  /**
311
- * Blurs the TextBox.
240
+ * Removes focus from the TextBox.
312
241
  */
313
242
  blur(): void;
314
243
  /**
@@ -6,10 +6,10 @@ import { AfterViewInit, ElementRef, EventEmitter, OnDestroy, Renderer2, NgZone }
6
6
  import * as i0 from "@angular/core";
7
7
  /**
8
8
  * Represents the [Kendo UI TextBox directive]({% slug overview_textbox %}) for the Inputs components for Angular.
9
- * Used to style the textbox of any `input` element.
9
+ * Use this directive to style the textbox of any `input` element.
10
10
  *
11
11
  * @example
12
- * ```ts-no-run
12
+ * ```html
13
13
  * <input kendoTextBox />
14
14
  * <input kendoTextBox type="email" />
15
15
  * <input kendoTextBox type="password" />
@@ -11,34 +11,23 @@ import * as i5 from "./textbox/textbox-prefix.directive";
11
11
  import * as i6 from "./textbox/localization/custom-messages.component";
12
12
  import * as i7 from "@progress/kendo-angular-common";
13
13
  /**
14
- * Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
15
- * definition for the TextBox directive.
14
+ * Defines the [`NgModule`](link:site.data.urls.angular['ngmoduleapi']) for the TextBox directive.
15
+ *
16
+ * Use this module to add the TextBox directive to your NgModule-based Angular application.
16
17
  *
17
18
  * @example
18
19
  *
19
- * ```ts-no-run
20
- * // Import the TextBox module
20
+ * ```typescript
21
21
  * import { TextBoxModule } from '@progress/kendo-angular-inputs';
22
- *
23
- * // The browser platform with a compiler
24
- * import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
25
- *
26
22
  * import { NgModule } from '@angular/core';
27
- *
28
- * // Import the app component
29
23
  * import { AppComponent } from './app.component';
30
24
  *
31
- * // Define the app module
32
- * _@NgModule({
33
- * declarations: [AppComponent], // declare app component
34
- * imports: [BrowserModule, TextBoxModule], // import TextBox module
25
+ * @NgModule({
26
+ * declarations: [AppComponent],
27
+ * imports: [BrowserModule, TextBoxModule],
35
28
  * bootstrap: [AppComponent]
36
29
  * })
37
30
  * export class AppModule {}
38
- *
39
- * // Compile and launch the module
40
- * platformBrowserDynamic().bootstrapModule(AppModule);
41
- *
42
31
  * ```
43
32
  */
44
33
  export declare class TextBoxModule {