@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
@@ -5,27 +5,17 @@
5
5
  import { Directive, TemplateRef, Optional } 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 class LabelTemplateDirective {
@@ -24,77 +24,95 @@ export class SliderBase {
24
24
  changeDetector;
25
25
  hostElement;
26
26
  /**
27
- * Defines the title of the ticks ([see example]({% slug ticks_slider %}#toc-titles)). The default title
28
- * for each tick is its Slider value. If you use a callback function, the function accepts an argument
29
- * that holds the value of the component and returns a string with the new title.
27
+ * Sets the title for the ticks.
28
+ * The default title for each tick is its Slider value.
29
+ * 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).
30
30
  */
31
31
  title = identity;
32
32
  /**
33
- * Denotes the location of the tick marks in the Slider ([see example]({% slug ticks_slider %}#toc-placement)).
33
+ * Sets the location of the tick marks in the Slider [see example]({% slug ticks_slider %}#toc-placement).
34
34
  *
35
- * The available options are:
36
- * * `before`&mdash;The tick marks are located to the top side of the horizontal track or to the left side of a vertical track.
37
- * * `after`&mdash;The tick marks are located to the bottom side of the horizontal track or to the right side of the vertical track.
38
- * * `both`&mdash; (Default) The tick marks are located on both sides of the track.
39
- * * `none`&mdash;The tick marks are not visible. The actual elements are not added to the DOM tree.
35
+ * The options are:
36
+ * - `before` – Shows tick marks above a horizontal track or left of a vertical track.
37
+ * - `after` – Shows tick marks below a horizontal track or right of a vertical track.
38
+ * - `both` Shows tick marks on both sides of the track.
39
+ * - `none` – Hides tick marks and removes them from the DOM.
40
+ *
41
+ * @default 'both'
40
42
  */
41
43
  tickPlacement = 'both';
42
44
  /**
43
- * If `vertical` is set to `true`, the orientation of the Slider changes from horizontal to vertical
44
- * ([see example]({% slug orientation_slider %})).
45
+ * When `true`. renders a vertical Slider [see example]({% slug orientation_slider %}).
46
+ *
47
+ * @default false
45
48
  */
46
49
  vertical = false;
47
50
  /**
48
- * The minimum value of the Slider ([see example]({% slug predefinedsteps_slider %}#toc-small-steps)).
49
- * The attribute accepts both integers and floating-point numbers.
51
+ * Sets the minimum value of the Slider.
52
+ * Accepts integers and floating-point numbers [see example]({% slug predefinedsteps_slider %}#toc-small-steps).
53
+ *
54
+ * @default 0
50
55
  */
51
56
  min = 0;
52
57
  /**
53
- * The maximum value of the Slider ([see example]({% slug predefinedsteps_slider %}#toc-small-steps)).
54
- * The attribute accepts both integers and floating-point numbers.
58
+ * Sets the maximum value of the Slider.
59
+ * Accepts integers and floating-point numbers [see example]({% slug predefinedsteps_slider %}#toc-small-steps).
60
+ *
61
+ * @default 10
55
62
  */
56
63
  max = 10;
57
64
  /**
58
- * The step value of the Slider ([see example]({% slug predefinedsteps_slider %}#toc-small-steps)).
59
- * Accepts positive values only. Can be an integer or a floating-point number.
65
+ * Sets the step value of the Slider.
66
+ * Accepts only positive values.
67
+ * Can be an integer or a floating-point number [see example]({% slug predefinedsteps_slider %}#toc-small-steps).
68
+ *
69
+ * @default 1
60
70
  */
61
71
  smallStep = 1;
62
72
  /**
63
- * Specifies that every n<sup>th</sup> tick will be large and will have a label
64
- * ([see example]({% slug predefinedsteps_slider %}#toc-large-steps)).
65
- * Accepts positive integer values only.
73
+ * Sets every n<sup>th</sup> tick as large and shows a label for it [see example]({% slug predefinedsteps_slider %}#toc-large-steps).
74
+ *
75
+ * @default null
66
76
  */
67
77
  largeStep = null;
68
78
  /**
69
- * Sets the width between each two ticks along the track ([see example]({% slug ticks_slider %}#toc-width)). The value
70
- * has to be set in pixels. If no `fixedTickWidth` is provided, the Slider automatically adjusts the tick width to
71
- * accommodate the elements within the size of the component.
79
+ * Sets the width between two ticks along the track, in pixels.
80
+ * If you do not set `fixedTickWidth`, the Slider adjusts the tick width automatically [see example]({% slug ticks_slider %}#toc-width).
81
+ *
72
82
  */
73
83
  fixedTickWidth;
74
84
  /**
75
- * 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).
85
+ * When `true`, disables the Slider.
86
+ * 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 %}).
87
+ *
88
+ * @default false
76
89
  */
77
90
  disabled = false;
78
91
  /**
79
- * Determines whether the Slider is in its read-only state ([see example]({% slug readonly_slider %})).
92
+ * When `true`, sets the Slider to read-only [see example]({% slug readonly_slider %}).
80
93
  *
81
94
  * @default false
82
95
  */
83
96
  readonly = false;
84
97
  /**
85
- * Specifies the [tabindex](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) of the Slider.
98
+ * Sets the [`tabindex`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) of the Slider.
99
+ *
100
+ * @default 0
86
101
  */
87
102
  tabindex = 0;
88
103
  /**
89
- * Fires each time the user focuses the component.
104
+ * Fires when the user focuses the component.
105
+ *
90
106
  */
91
107
  onFocus = new EventEmitter();
92
108
  /**
93
- * Fires each time the component is blurred.
109
+ * Fires when the component is blurred.
110
+ *
94
111
  */
95
112
  onBlur = new EventEmitter();
96
113
  /**
97
- * Fires each time the user selects a new value.
114
+ * Fires when the user selects a new value.
115
+ *
98
116
  */
99
117
  valueChange = new EventEmitter();
100
118
  direction;
@@ -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 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 class SwitchFocusEvent {
9
9
  /**
@@ -8,7 +8,7 @@ import { Messages } 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 component messages with custom component messages.
12
12
  */
13
13
  export class SwitchCustomMessagesComponent extends Messages {
14
14
  service;
@@ -19,6 +19,14 @@ const DEFAULT_THUMB_ROUNDED = 'full';
19
19
  const DEFAULT_TRACK_ROUNDED = 'full';
20
20
  /**
21
21
  * Represents the [Kendo UI Switch component for Angular]({% slug overview_switch %}).
22
+ *
23
+ * @example
24
+ * ```html
25
+ * <kendo-switch [(ngModel)]="checked"></kendo-switch>`
26
+ * ```
27
+ *
28
+ * @remarks
29
+ * Supported children components are: {@link SwitchCustomMessagesComponent}.
22
30
  */
23
31
  export class SwitchComponent {
24
32
  renderer;
@@ -37,17 +45,19 @@ export class SwitchComponent {
37
45
  return `k-${guid()}`;
38
46
  }
39
47
  /**
40
- * Sets the **On** label ([see example]({% slug labels_switch %})).
41
- * Takes precedence over the [custom messages component]({% slug api_inputs_switchcustommessagescomponent %}).
48
+ * Set the **On** label.
49
+ * This label takes precedence over the [custom messages component]({% slug api_inputs_switchcustommessagescomponent %}).
50
+ * [See example]({% slug labels_switch %}).
42
51
  */
43
52
  onLabel;
44
53
  /**
45
- * Sets the **Off** label ([see example]({% slug labels_switch %})).
46
- * Takes precedence over the [custom messages component]({% slug api_inputs_switchcustommessagescomponent %}).
54
+ * Set the **Off** label.
55
+ * This label takes precedence over the [custom messages component]({% slug api_inputs_switchcustommessagescomponent %}).
56
+ * [See example]({% slug labels_switch %}).
47
57
  */
48
58
  offLabel;
49
59
  /**
50
- * Sets the value of the Switch when it is initially displayed.
60
+ * Sets the value of the Switch when it first appears.
51
61
  */
52
62
  set checked(value) {
53
63
  this.setHostClasses(value);
@@ -57,27 +67,27 @@ export class SwitchComponent {
57
67
  return this._checked;
58
68
  }
59
69
  /**
60
- * Determines whether the Switch is disabled ([see example]({% slug disabled_switch %})). To learn how to disable the component in reactive forms, refer to the article on [Forms Support](slug:formssupport_switch#toc-managing-the-switch-disabled-state-in-reactive-forms).
70
+ * When `true`, disables the Switch.
71
+ * [See example]({% slug disabled_switch %}).
72
+ * To disable the component in reactive forms, see [Forms Support](slug:formssupport_switch#toc-managing-the-switch-disabled-state-in-reactive-forms).
73
+ * @default false
61
74
  */
62
75
  disabled = false;
63
76
  /**
64
- * Determines whether the Switch is in its read-only state ([see example]({% slug readonly_switch %})).
65
- *
77
+ * When `true`, sets the Switch to read-only.
78
+ * [See example]({% slug readonly_switch %}).
66
79
  * @default false
67
80
  */
68
81
  readonly = false;
69
82
  /**
70
- * Specifies the [tabindex](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) of the Switch.
83
+ * Set the [`tabindex`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) of the Switch.
84
+ * @default 0
71
85
  */
72
86
  tabindex = 0;
73
87
  /**
74
- * Specifies the width and height of the Switch.
88
+ * Sets the size of the Switch.
75
89
  *
76
- * The possible values are:
77
- * * `small`
78
- * * `medium` (default)
79
- * * `large`
80
- * * `none`
90
+ * @default "medium"
81
91
  */
82
92
  set size(size) {
83
93
  const newSize = size ? size : DEFAULT_SIZE;
@@ -88,14 +98,9 @@ export class SwitchComponent {
88
98
  return this._size;
89
99
  }
90
100
  /**
91
- * Specifies the border radius of the Switch thumb.
101
+ * Sets the border radius of the Switch.
92
102
  *
93
- * The possible values are:
94
- * * `full` (default)
95
- * * `small`
96
- * * `medium`
97
- * * `large`
98
- * * `none`
103
+ * @default "full"
99
104
  */
100
105
  set thumbRounded(thumbRounded) {
101
106
  const newThumbRounded = thumbRounded ? thumbRounded : DEFAULT_THUMB_ROUNDED;
@@ -106,14 +111,9 @@ export class SwitchComponent {
106
111
  return this._thumbRounded;
107
112
  }
108
113
  /**
109
- * Specifies the border radius of the Switch track.
114
+ * Sets the border radius of the Switch track.
110
115
  *
111
- * The possible values are:
112
- * * `full` (default)
113
- * * `small`
114
- * * `medium`
115
- * * `large`
116
- * * `none`
116
+ * @default "full"
117
117
  */
118
118
  set trackRounded(trackRounded) {
119
119
  const newTrackRounded = trackRounded ? trackRounded : DEFAULT_TRACK_ROUNDED;
@@ -133,15 +133,15 @@ export class SwitchComponent {
133
133
  return this.tabindex;
134
134
  }
135
135
  /**
136
- * Fires each time the Switch component is focused as a result of user interaction.
136
+ * Fires when the user focuses the Switch.
137
137
  */
138
138
  onFocus = new EventEmitter();
139
139
  /**
140
- * Fires each time the Switch component is blurred as a result of user interaction.
140
+ * Fires when the user blurs the Switch.
141
141
  */
142
142
  onBlur = new EventEmitter();
143
143
  /**
144
- * Fires each time the user selects a new value.
144
+ * Fires when the value of the Switch changes.
145
145
  */
146
146
  valueChange = new EventEmitter();
147
147
  direction;
@@ -247,17 +247,6 @@ export class SwitchComponent {
247
247
  /**
248
248
  * Focuses the Switch.
249
249
  *
250
- * @example
251
- * ```ts-no-run
252
- * _@Component({
253
- * selector: 'my-app',
254
- * template: `
255
- * <button (click)="switch.focus()">Focus</button>
256
- * <kendo-switch #switch></kendo-switch>
257
- * `
258
- * })
259
- * class AppComponent { }
260
- * ```
261
250
  */
262
251
  focus() {
263
252
  if (!this.hostElement) {
@@ -10,34 +10,23 @@ import * as i1 from "./switch/switch.component";
10
10
  import * as i2 from "./switch/localization/custom-messages.component";
11
11
  //IMPORTANT: NgModule export kept for backwards compatibility
12
12
  /**
13
- * Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
14
- * definition for the Switch component.
13
+ * Defines the [`NgModule`](link:site.data.urls.angular['ngmoduleapi']) for the Switch component.
14
+ *
15
+ * Use this module to add the Switch component to your NgModule-based Angular application.
15
16
  *
16
17
  * @example
17
18
  *
18
- * ```ts-no-run
19
- * // Import the Switch module
19
+ * ```typescript
20
20
  * import { SwitchModule } from '@progress/kendo-angular-inputs';
21
- *
22
- * // The browser platform with a compiler
23
- * import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
24
- *
25
21
  * import { NgModule } from '@angular/core';
26
- *
27
- * // Import the app component
28
22
  * import { AppComponent } from './app.component';
29
23
  *
30
- * // Define the app module
31
- * _@NgModule({
32
- * declarations: [AppComponent], // declare app component
33
- * imports: [BrowserModule, SwitchModule], // import Switch module
24
+ * @NgModule({
25
+ * declarations: [AppComponent],
26
+ * imports: [BrowserModule, SwitchModule],
34
27
  * bootstrap: [AppComponent]
35
28
  * })
36
29
  * export class AppModule {}
37
- *
38
- * // Compile and launch the module
39
- * platformBrowserDynamic().bootstrapModule(AppModule);
40
- *
41
30
  * ```
42
31
  */
43
32
  export class SwitchModule {
@@ -5,19 +5,17 @@
5
5
  import { Component, HostBinding, Input } from '@angular/core';
6
6
  import * as i0 from "@angular/core";
7
7
  /**
8
- * Specifies the adornments in the prefix container ([see example]({% slug textarea_adornments %})).
9
- * ```ts-no-run
10
- * _@Component({
11
- * selector: 'my-app',
12
- * template: `
13
- * <kendo-textarea>
14
- * <kendo-textarea-prefix>
15
- * <button kendoButton look="clear" icon="image"></button>
16
- * </kendo-textarea-prefix>
17
- * </kendo-textarea>
18
- * `
19
- * })
20
- * class AppComponent {}
8
+ * Represents the prefix adornments container for the TextArea component.
9
+ *
10
+ * Nest the `<kendo-textarea-prefix>` component inside `<kendo-textarea>` to add elements before the input.
11
+ *
12
+ * @example
13
+ * ```html
14
+ * <kendo-textarea>
15
+ * <kendo-textarea-prefix>
16
+ * <button kendoButton look="clear" icon="image"></button>
17
+ * </kendo-textarea-prefix>
18
+ * </kendo-textarea>
21
19
  * ```
22
20
  */
23
21
  export class TextAreaPrefixComponent {
@@ -5,19 +5,17 @@
5
5
  import { Component, HostBinding, Input } from '@angular/core';
6
6
  import * as i0 from "@angular/core";
7
7
  /**
8
- * Specifies the adornments in the suffix container ([see example]({% slug textarea_adornments %})).
9
- * ```ts-no-run
10
- * _@Component({
11
- * selector: 'my-app',
12
- * template: `
13
- * <kendo-textarea>
14
- * <kendo-textarea-suffix>
15
- * <button kendoButton look="clear" icon="image"></button>
16
- * </kendo-textarea-suffix>
17
- * </kendo-textarea>
18
- * `
19
- * })
20
- * class AppComponent {}
8
+ * Represents the suffix adornments container for the TextArea component.
9
+ *
10
+ * Nest the `<kendo-textarea-suffix>` component inside `<kendo-textarea>` to add elements after the input.
11
+ *
12
+ * @example
13
+ * ```html
14
+ * <kendo-textarea>
15
+ * <kendo-textarea-suffix>
16
+ * <button kendoButton look="clear" icon="image"></button>
17
+ * </kendo-textarea-suffix>
18
+ * </kendo-textarea>
21
19
  * ```
22
20
  */
23
21
  export class TextAreaSuffixComponent {