@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
@@ -12,7 +12,15 @@ import * as i0 from "@angular/core";
12
12
  /**
13
13
  * Represents the [Kendo UI Signature component for Angular]({% slug overview_signature %}).
14
14
  *
15
- * The Signature allows users to add a hand-drawn signature to forms.
15
+ * Use the Signature to let users add a hand-drawn signature to forms.
16
+ *
17
+ * @example
18
+ * ```html
19
+ * <kendo-signature [(ngModel)]="signatureValue"></kendo-signature>
20
+ * ```
21
+ *
22
+ * @remarks
23
+ * Supported children components are: {@link SignatureCustomMessagesComponent}.
16
24
  */
17
25
  export declare class SignatureComponent implements ControlValueAccessor {
18
26
  private element;
@@ -30,29 +38,34 @@ export declare class SignatureComponent implements ControlValueAccessor {
30
38
  /**
31
39
  * Sets the read-only state of the Signature.
32
40
  *
41
+ * Set to `true` to prevent editing.
42
+ *
33
43
  * @default false
34
44
  */
35
45
  readonly: boolean;
36
46
  /**
37
- * Sets the disabled state of the Signature. To disable the component in reactive forms, visit the following [article](slug:formssupport_signature#toc-managing-the-signature-disabled-state-in-reactive-forms)
47
+ * Sets the disabled state of the Signature.
48
+ *
49
+ * Set to `true` to disable the component and prevent any user interaction.
50
+ * To disable the component in reactive forms, see [Managing the Signature Disabled State in Reactive Forms](slug:formssupport_signature#toc-managing-the-signature-disabled-state-in-reactive-forms).
38
51
  *
39
52
  * @default false
40
53
  */
41
54
  disabled: boolean;
42
55
  /**
43
- * Sets the width of the signature in pixels.
56
+ * Sets the width of the Signature in pixels.
44
57
  *
45
- * The width can also be set using inline styles and CSS.
58
+ * You can also set the width using inline styles or CSS.
46
59
  */
47
60
  width: number;
48
61
  /**
49
- * The height of the signature in pixels.
62
+ * Sets the height of the Signature in pixels.
50
63
  *
51
- * The height can also be set using inline styles and CSS.
64
+ * You can also set the height using inline styles or CSS.
52
65
  */
53
66
  height: number;
54
67
  /**
55
- * Gets or sets the value of the signature.
68
+ * Gets or sets the value of the Signature.
56
69
  *
57
70
  * The value is a Base64-encoded PNG image.
58
71
  */
@@ -70,69 +83,54 @@ export declare class SignatureComponent implements ControlValueAccessor {
70
83
  set tabindex(value: number);
71
84
  get tabindex(): number;
72
85
  /**
73
- * The size property specifies the padding of the Signature internal controls
74
- * ([see example]({% slug appearance_signature %}#toc-size)).
86
+ * Sets the padding of the Signature internal controls
87
+ * ([ee example]({% slug appearance_signature %}#toc-size)).
75
88
  *
76
- * The possible values are:
77
- * * `small`
78
- * * `medium` (default)
79
- * * `large`
80
- * * `none`
89
+ * @default 'medium'
81
90
  */
82
91
  size: InputSize;
83
92
  /**
84
- * The `rounded` property specifies the border radius of the signature
93
+ * Sets the border radius of the Signature
85
94
  * ([see example](slug:appearance_signature#rounded-corners)).
86
95
  *
87
- * The possible values are:
88
- * * `small`
89
- * * `medium` (default)
90
- * * `large`
91
- * * `full` (not supported by the Signature)
92
- * * `none`
96
+ * @default 'medium'
93
97
  */
94
98
  rounded: InputRounded;
95
99
  /**
96
- * The `fillMode` property specifies the background and border styles of the signature
100
+ * Sets the background and border styles of the Signature
97
101
  * ([see example](slug:appearance_signature#toc-fill-mode)).
98
102
  *
99
- * The possible values are:
100
- * * `flat`
101
- * * `solid` (default)
102
- * * `outline`
103
- * * `none`
103
+ * @default 'solid'
104
104
  */
105
105
  fillMode: InputFillMode;
106
106
  /**
107
- * The stroke color of the signature.
107
+ * Sets the stroke color of the Signature.
108
108
  *
109
109
  * Accepts CSS color names and hex values.
110
- *
111
110
  * The default value is determined by the theme `$kendo-input-text` variable.
112
111
  */
113
112
  color: any;
114
113
  /**
115
- * The background color of the signature.
114
+ * Sets the background color of the Signature.
116
115
  *
117
116
  * Accepts CSS color names and hex values.
118
- *
119
117
  * The default value is determined by the theme `$kendo-input-bg` variable.
120
118
  */
121
119
  backgroundColor: any;
122
120
  /**
123
- * The stroke width of the signature.
121
+ * Sets the stroke width of the Signature.
124
122
  *
125
123
  * @default 1
126
124
  */
127
125
  strokeWidth: number;
128
126
  /**
129
- * A flag indicating whether to smooth out signature lines.
127
+ * When set to `true`, smooths out signature lines.
130
128
  *
131
129
  * @default false
132
130
  */
133
131
  smooth: boolean;
134
132
  /**
135
- * A flag indicating if the signature can be maximized.
133
+ * When set to `true`, allows the Signature to be maximized.
136
134
  *
137
135
  * @default true
138
136
  */
@@ -142,17 +140,17 @@ export declare class SignatureComponent implements ControlValueAccessor {
142
140
  */
143
141
  maximized: boolean;
144
142
  /**
145
- * The scale factor for the popup.
143
+ * Sets the scale factor for the popup.
146
144
  *
147
- * The Signature width and height will be multiplied by the scale when showing the popup.
145
+ * The Signature width and height are multiplied by this value when showing the popup.
148
146
  *
149
147
  * @default 3
150
148
  */
151
149
  popupScale: number;
152
150
  /**
153
- * The scale factor for the exported image.
151
+ * Sets the scale factor for the exported image.
154
152
  *
155
- * The Signature width and height will be multiplied by the scale when converting the signature to an image.
153
+ * The Signature width and height are multiplied by this value when converting the signature to an image.
156
154
  *
157
155
  * @default 2
158
156
  */
@@ -162,31 +160,33 @@ export declare class SignatureComponent implements ControlValueAccessor {
162
160
  */
163
161
  parentLocalization: LocalizationService;
164
162
  /**
165
- * A flag indicating whether the dotted line should be displayed in the background.
163
+ * When set to `true`, hides the dotted line in the background.
166
164
  *
167
165
  * @default false
168
166
  */
169
167
  hideLine: boolean;
170
168
  /**
171
- * Fires each time the signature value is changed.
169
+ * Fires when the signature value changes.
172
170
  */
173
171
  valueChange: EventEmitter<string>;
174
172
  /**
175
- * Fires each time the popup is about to open.
176
- * This event is preventable. If you cancel it, the popup will remain closed.
173
+ * Fires before the popup opens.
174
+ *
175
+ * This event is preventable. If you cancel it, the popup stays closed.
177
176
  */
178
177
  open: EventEmitter<SignatureOpenEvent>;
179
178
  /**
180
- * Fires each time the popup is about to close.
181
- * This event is preventable. If you cancel it, the popup will remain open.
179
+ * Fires before the popup closes.
180
+ *
181
+ * This event is preventable. If you cancel it, the popup stays open.
182
182
  */
183
183
  close: EventEmitter<SignatureCloseEvent>;
184
184
  /**
185
- * Fires each time Signature is focused.
185
+ * Fires when the Signature receives focus.
186
186
  */
187
187
  onFocus: EventEmitter<any>;
188
188
  /**
189
- * Fires each time the Signature is blurred.
189
+ * Fires when the Signature loses focus.
190
190
  */
191
191
  onBlur: EventEmitter<any>;
192
192
  /**
@@ -197,11 +197,11 @@ export declare class SignatureComponent implements ControlValueAccessor {
197
197
  minimizeButton: ElementRef;
198
198
  maximizeButton: ElementRef;
199
199
  /**
200
- * Indicates whether the Signature wrapper is focused.
200
+ * Indicates if the Signature wrapper is focused.
201
201
  */
202
202
  isFocused: boolean;
203
203
  /**
204
- * Indicates whether the Signature popup is open.
204
+ * Indicates if the Signature popup is open.
205
205
  */
206
206
  isOpen: boolean;
207
207
  /**
@@ -305,9 +305,10 @@ export declare class SignatureComponent implements ControlValueAccessor {
305
305
  reset(): void;
306
306
  /**
307
307
  * Toggles the popup of the Signature.
308
- * Does not trigger the `open` and `close` events of the component.
309
308
  *
310
- * @param open An optional parameter. Specifies whether the popup will be opened or closed.
309
+ * Does not trigger the `open` and `close` events.
310
+ *
311
+ * @param open Optional. Set to `true` to open or `false` to close the popup.
311
312
  */
312
313
  toggle(open?: boolean): void;
313
314
  /**
@@ -321,7 +322,7 @@ export declare class SignatureComponent implements ControlValueAccessor {
321
322
  private applyHostClasses;
322
323
  private readThemeColors;
323
324
  /**
324
- * Focuses the wrapper of the Signature.
325
+ * Focuses the Signature wrapper container.
325
326
  */
326
327
  focus(): void;
327
328
  /**
@@ -6,34 +6,23 @@ import * as i0 from "@angular/core";
6
6
  import * as i1 from "./signature/signature.component";
7
7
  import * as i2 from "./signature/localization/custom-messages.component";
8
8
  /**
9
- * Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
10
- * definition for the Signature component.
9
+ * Defines the [`NgModule`](link:site.data.urls.angular['ngmoduleapi']) for the Signature component.
10
+ *
11
+ * Use this module to add the Signature component to your NgModule-based Angular application.
11
12
  *
12
13
  * @example
13
14
  *
14
- * ```ts-no-run
15
- * // Import the Signature module
15
+ * ```typescript
16
16
  * import { SignatureModule } from '@progress/kendo-angular-inputs';
17
- *
18
- * // The browser platform with a compiler
19
- * import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
20
- *
21
17
  * import { NgModule } from '@angular/core';
22
- *
23
- * // Import the app component
24
18
  * import { AppComponent } from './app.component';
25
19
  *
26
- * // Define the app module
27
- * _@NgModule({
28
- * declarations: [AppComponent], // declare app component
29
- * imports: [BrowserModule, SignatureModule], // import Signature module
20
+ * @NgModule({
21
+ * declarations: [AppComponent],
22
+ * imports: [BrowserModule, SignatureModule],
30
23
  * bootstrap: [AppComponent]
31
24
  * })
32
25
  * export class AppModule {}
33
- *
34
- * // Compile and launch the module
35
- * platformBrowserDynamic().bootstrapModule(AppModule);
36
- *
37
26
  * ```
38
27
  */
39
28
  export declare class SignatureModule {
@@ -6,7 +6,7 @@ import { LocalizationService } from '@progress/kendo-angular-l10n';
6
6
  import { SliderMessages } from './messages';
7
7
  import * as i0 from "@angular/core";
8
8
  /**
9
- * Custom component messages override default component messages.
9
+ * Use this component to override the default Slider messages.
10
10
  */
11
11
  export declare class SliderCustomMessagesComponent extends SliderMessages {
12
12
  protected service: LocalizationService;
@@ -10,6 +10,14 @@ import { SVGIcon } from '@progress/kendo-svg-icons';
10
10
  import * as i0 from "@angular/core";
11
11
  /**
12
12
  * Represents the [Kendo UI Slider component for Angular]({% slug overview_slider %}).
13
+ *
14
+ * @example
15
+ * ```html
16
+ * <kendo-slider [min]="0" [max]="10" [smallStep]="1" [(ngModel)]="value"></kendo-slider>
17
+ * ```
18
+ *
19
+ * @remarks
20
+ * Supported children components are: {@link SliderCustomMessagesComponent}.
13
21
  */
14
22
  export declare class SliderComponent extends SliderBase implements AfterViewInit, ControlValueAccessor, OnChanges, OnDestroy {
15
23
  protected localization: LocalizationService;
@@ -23,7 +31,7 @@ export declare class SliderComponent extends SliderBase implements AfterViewInit
23
31
  */
24
32
  focusableId: string;
25
33
  /**
26
- * Changes the `title` attribute of the drag handle so that it can be localized.
34
+ * Changes the `title` attribute of the drag handle. Use this property to localize the drag handle title.
27
35
  */
28
36
  dragHandleTitle: string;
29
37
  /**
@@ -31,8 +39,9 @@ export declare class SliderComponent extends SliderBase implements AfterViewInit
31
39
  */
32
40
  incrementTitle: string;
33
41
  /**
34
- * Determines if the animation will be played on value change.
35
- * Regardless of this setting, no animation will be played during the initial rendering.
42
+ * Determines if the component animates when the value changes.
43
+ * The component does not animate during initial rendering.
44
+ * @default true
36
45
  */
37
46
  animate: boolean;
38
47
  /**
@@ -40,13 +49,15 @@ export declare class SliderComponent extends SliderBase implements AfterViewInit
40
49
  */
41
50
  decrementTitle: string;
42
51
  /**
43
- * Renders the arrow side buttons of the Slider ([see example]({% slug sidebuttons_slider %}#toc-hidden-state)).
44
- * When `showButtons` is set to `false`, the buttons are not displayed.
52
+ * Shows or hides the arrow side buttons of the Slider ([see example]({% slug sidebuttons_slider %}#toc-hidden-state)).
53
+ * When you set `showButtons` to `false`, the component does not display the buttons.
54
+ * @default true
45
55
  */
46
56
  showButtons: boolean;
47
57
  /**
48
- * The current value of the Slider when it is initially displayed.
49
- * The component can use either NgModel or the `value` binding but not both of them at the same time.
58
+ * Sets the current value of the Slider when it first appears.
59
+ * Use either `ngModel` or the `value` binding, but not both at the same time.
60
+ * @default 0
50
61
  */
51
62
  value: number;
52
63
  /**
@@ -82,18 +93,6 @@ export declare class SliderComponent extends SliderBase implements AfterViewInit
82
93
  constructor(localization: LocalizationService, injector: Injector, renderer: Renderer2, ngZone: NgZone, changeDetector: ChangeDetectorRef, hostElement: ElementRef);
83
94
  /**
84
95
  * Focuses the Slider.
85
- *
86
- * @example
87
- * ```ts-no-run
88
- * _@Component({
89
- * selector: 'my-app',
90
- * template: `
91
- * <button (click)="slider.focus()">Focus</button>
92
- * <kendo-slider #slider></kendo-slider>
93
- * `
94
- * })
95
- * class AppComponent { }
96
- * ```
97
96
  */
98
97
  focus(): void;
99
98
  /**
@@ -7,35 +7,24 @@ import * as i1 from "./slider/slider.component";
7
7
  import * as i2 from "./slider/localization/custom-messages.component";
8
8
  import * as i3 from "./sliders-common/label-template.directive";
9
9
  /**
10
- * Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
11
- * definition for the Slider component.
10
+ * Defines the [`NgModule`](link:site.data.urls.angular['ngmoduleapi']) for the Slider component.
11
+ *
12
+ * Use this module to add the Slider component to your NgModule-based Angular application.
12
13
  *
13
14
  * @example
14
15
  *
15
- * ```ts-no-run
16
- * // Import the Inputs module
16
+ * ```typescript
17
17
  * import { SliderModule } from '@progress/kendo-angular-inputs';
18
- *
19
- * // The browser platform with a compiler
20
- * import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
21
18
  * import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
22
- *
23
19
  * import { NgModule } from '@angular/core';
24
- *
25
- * // Import the app component
26
20
  * import { AppComponent } from './app.component';
27
21
  *
28
- * // Define the app module
29
- * _@NgModule({
30
- * declarations: [AppComponent], // declare app component
31
- * imports: [BrowserModule, BrowserAnimationsModule, SliderModule], // import Slider module
22
+ * @NgModule({
23
+ * declarations: [AppComponent],
24
+ * imports: [BrowserModule, BrowserAnimationsModule, SliderModule],
32
25
  * bootstrap: [AppComponent]
33
26
  * })
34
27
  * export class AppModule {}
35
- *
36
- * // Compile and launch the module
37
- * platformBrowserDynamic().bootstrapModule(AppModule);
38
- *
39
28
  * ```
40
29
  */
41
30
  export declare class SliderModule {
@@ -5,27 +5,17 @@
5
5
  import { TemplateRef } from '@angular/core';
6
6
  import * as i0 from "@angular/core";
7
7
  /**
8
- * Represents the template for the labels of the Slider.
9
- * To define the labels template, nest an `<ng-template>` tag with the `kendoSliderLabelTemplate` directive inside
10
- * the `<kendo-slider>` tag. The template context is passed to the `label` value.
8
+ * Represents the template for Slider labels.
9
+ * To define a labels template, nest an `<ng-template>` tag with the `kendoSliderLabelTemplate` directive inside
10
+ * the `<kendo-slider>` tag. The template context provides the `value`.
11
11
  *
12
12
  * @example
13
- * ```ts-no-run
14
- *
15
- * _@Component({
16
- * selector: 'my-app',
17
- * template: `
18
- * <kendo-slider [largeStep]="2">
19
- * <ng-template kendoSliderLabelTemplate let-value="value">
20
- * <b>{{value}}</b>
21
- * </ng-template>
22
- * </kendo-slider>
23
- * `
24
- * })
25
- *
26
- * class AppComponent {
27
- * }
28
- *
13
+ * ```html
14
+ * <kendo-slider [largeStep]="2">
15
+ * <ng-template kendoSliderLabelTemplate let-value="value">
16
+ * <p>{{ value }}</p>
17
+ * </ng-template>
18
+ * </kendo-slider>
29
19
  * ```
30
20
  */
31
21
  export declare class LabelTemplateDirective {
@@ -20,77 +20,95 @@ export declare abstract class SliderBase {
20
20
  protected changeDetector: ChangeDetectorRef;
21
21
  protected hostElement: ElementRef;
22
22
  /**
23
- * Defines the title of the ticks ([see example]({% slug ticks_slider %}#toc-titles)). The default title
24
- * for each tick is its Slider value. If you use a callback function, the function accepts an argument
25
- * that holds the value of the component and returns a string with the new title.
23
+ * Sets the title for the ticks.
24
+ * The default title for each tick is its Slider value.
25
+ * If you use a callback function, the function receives the component value and returns a string for the new title [see example]({% slug ticks_slider %}#toc-titles).
26
26
  */
27
27
  title: SliderTickTitleCallback;
28
28
  /**
29
- * Denotes the location of the tick marks in the Slider ([see example]({% slug ticks_slider %}#toc-placement)).
29
+ * Sets the location of the tick marks in the Slider [see example]({% slug ticks_slider %}#toc-placement).
30
30
  *
31
- * The available options are:
32
- * * `before`&mdash;The tick marks are located to the top side of the horizontal track or to the left side of a vertical track.
33
- * * `after`&mdash;The tick marks are located to the bottom side of the horizontal track or to the right side of the vertical track.
34
- * * `both`&mdash; (Default) The tick marks are located on both sides of the track.
35
- * * `none`&mdash;The tick marks are not visible. The actual elements are not added to the DOM tree.
31
+ * The options are:
32
+ * - `before` – Shows tick marks above a horizontal track or left of a vertical track.
33
+ * - `after` – Shows tick marks below a horizontal track or right of a vertical track.
34
+ * - `both` Shows tick marks on both sides of the track.
35
+ * - `none` – Hides tick marks and removes them from the DOM.
36
+ *
37
+ * @default 'both'
36
38
  */
37
39
  tickPlacement: string;
38
40
  /**
39
- * If `vertical` is set to `true`, the orientation of the Slider changes from horizontal to vertical
40
- * ([see example]({% slug orientation_slider %})).
41
+ * When `true`. renders a vertical Slider [see example]({% slug orientation_slider %}).
42
+ *
43
+ * @default false
41
44
  */
42
45
  vertical: boolean;
43
46
  /**
44
- * The minimum value of the Slider ([see example]({% slug predefinedsteps_slider %}#toc-small-steps)).
45
- * The attribute accepts both integers and floating-point numbers.
47
+ * Sets the minimum value of the Slider.
48
+ * Accepts integers and floating-point numbers [see example]({% slug predefinedsteps_slider %}#toc-small-steps).
49
+ *
50
+ * @default 0
46
51
  */
47
52
  min: number;
48
53
  /**
49
- * The maximum value of the Slider ([see example]({% slug predefinedsteps_slider %}#toc-small-steps)).
50
- * The attribute accepts both integers and floating-point numbers.
54
+ * Sets the maximum value of the Slider.
55
+ * Accepts integers and floating-point numbers [see example]({% slug predefinedsteps_slider %}#toc-small-steps).
56
+ *
57
+ * @default 10
51
58
  */
52
59
  max: number;
53
60
  /**
54
- * The step value of the Slider ([see example]({% slug predefinedsteps_slider %}#toc-small-steps)).
55
- * Accepts positive values only. Can be an integer or a floating-point number.
61
+ * Sets the step value of the Slider.
62
+ * Accepts only positive values.
63
+ * Can be an integer or a floating-point number [see example]({% slug predefinedsteps_slider %}#toc-small-steps).
64
+ *
65
+ * @default 1
56
66
  */
57
67
  smallStep: number;
58
68
  /**
59
- * Specifies that every n<sup>th</sup> tick will be large and will have a label
60
- * ([see example]({% slug predefinedsteps_slider %}#toc-large-steps)).
61
- * Accepts positive integer values only.
69
+ * Sets every n<sup>th</sup> tick as large and shows a label for it [see example]({% slug predefinedsteps_slider %}#toc-large-steps).
70
+ *
71
+ * @default null
62
72
  */
63
73
  largeStep: number;
64
74
  /**
65
- * Sets the width between each two ticks along the track ([see example]({% slug ticks_slider %}#toc-width)). The value
66
- * has to be set in pixels. If no `fixedTickWidth` is provided, the Slider automatically adjusts the tick width to
67
- * accommodate the elements within the size of the component.
75
+ * Sets the width between two ticks along the track, in pixels.
76
+ * If you do not set `fixedTickWidth`, the Slider adjusts the tick width automatically [see example]({% slug ticks_slider %}#toc-width).
77
+ *
68
78
  */
69
79
  fixedTickWidth: number;
70
80
  /**
71
- * Determines whether the Slider is disabled ([see example]({% slug disabledstate_slider %})). To learn how to disable the component in reactive forms, refer to the article on [Forms Support](slug:formssupport_slider#toc-managing-the-slider-disabled-state-in-reactive-forms).
81
+ * When `true`, disables the Slider.
82
+ * To disable the component in reactive forms, see [Forms Support](slug:formssupport_slider#toc-managing-the-slider-disabled-state-in-reactive-forms) [see example]({% slug disabledstate_slider %}).
83
+ *
84
+ * @default false
72
85
  */
73
86
  disabled: boolean;
74
87
  /**
75
- * Determines whether the Slider is in its read-only state ([see example]({% slug readonly_slider %})).
88
+ * When `true`, sets the Slider to read-only [see example]({% slug readonly_slider %}).
76
89
  *
77
90
  * @default false
78
91
  */
79
92
  readonly: boolean;
80
93
  /**
81
- * Specifies the [tabindex](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) of the Slider.
94
+ * Sets the [`tabindex`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) of the Slider.
95
+ *
96
+ * @default 0
82
97
  */
83
98
  tabindex: number;
84
99
  /**
85
- * Fires each time the user focuses the component.
100
+ * Fires when the user focuses the component.
101
+ *
86
102
  */
87
103
  onFocus: EventEmitter<any>;
88
104
  /**
89
- * Fires each time the component is blurred.
105
+ * Fires when the component is blurred.
106
+ *
90
107
  */
91
108
  onBlur: EventEmitter<any>;
92
109
  /**
93
- * Fires each time the user selects a new value.
110
+ * Fires when the user selects a new value.
111
+ *
94
112
  */
95
113
  valueChange: EventEmitter<any>;
96
114
  direction: string;
@@ -3,8 +3,24 @@
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  /**
6
- * Defines the title of the ticks ([see example]({% slug ticks_slider %}#toc-titles)). The default title
7
- * for each tick is its Slider value. If you use a callback function, the function accepts an argument
8
- * that holds the value of the component and returns a string with the new title.
6
+ * Sets the title for the ticks ([see example]({% slug ticks_slider %}#toc-titles)).
7
+ * By default, each tick uses its Slider value as the title.
8
+ * If you use a callback function, it receives the component value and returns a string for the title.
9
+ *
10
+ * @example
11
+ * ```typescript
12
+ * @Component({
13
+ * selector: "my-app",
14
+ * template: `
15
+ * <kendo-slider [title]="title"></kendo-slider>
16
+ * `,
17
+ * })
18
+ * export class AppComponent {
19
+ * // Use a callback function to capture the 'this' execution context of the class.
20
+ * public title = (value: number): string => {
21
+ * return `${this.numbers[value]}`;
22
+ * };
23
+ * }
24
+ * ```
9
25
  */
10
26
  export type SliderTickTitleCallback = (value: number) => string;
@@ -3,7 +3,7 @@
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  /**
6
- * Arguments for the `blur` event of the Switch component.
6
+ * Provides arguments for the `blur` event of the Switch component.
7
7
  */
8
8
  export declare class SwitchBlurEvent {
9
9
  /**
@@ -3,7 +3,7 @@
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  /**
6
- * Arguments for the `focus` event of the Switch component.
6
+ * Provides arguments for the `focus` event of the Switch component.
7
7
  */
8
8
  export declare class SwitchFocusEvent {
9
9
  /**
@@ -6,7 +6,7 @@ import { LocalizationService } from '@progress/kendo-angular-l10n';
6
6
  import { Messages } from './messages';
7
7
  import * as i0 from "@angular/core";
8
8
  /**
9
- * Custom component messages override default component messages.
9
+ * Overrides the default component messages with custom component messages.
10
10
  */
11
11
  export declare class SwitchCustomMessagesComponent extends Messages {
12
12
  protected service: LocalizationService;