@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
@@ -8,6 +8,15 @@ import { CheckBoxRounded } from '../common/models';
8
8
  import { CheckBoxState } from './checked-state';
9
9
  import { RadioCheckBoxBase } from '../common/radio-checkbox.base';
10
10
  import * as i0 from "@angular/core";
11
+ /**
12
+ * Represents the Kendo UI CheckBox component for Angular.
13
+ * Use this component to create a styled checkbox with support for indeterminate state.
14
+ *
15
+ * @example
16
+ * ```html
17
+ * <kendo-checkbox [(checkedState)]="value"></kendo-checkbox>
18
+ * ```
19
+ */
11
20
  export declare class CheckBoxComponent extends RadioCheckBoxBase implements ControlValueAccessor, OnInit, AfterViewInit {
12
21
  protected renderer: Renderer2;
13
22
  hostElement: ElementRef;
@@ -18,31 +27,24 @@ export declare class CheckBoxComponent extends RadioCheckBoxBase implements Cont
18
27
  /**
19
28
  * Sets the checked state of the component.
20
29
  *
30
+ * Use `true`, `false`, or `'indeterminate'` to control the state.
31
+ *
21
32
  * @default false
22
33
  */
23
34
  set checkedState(value: CheckBoxState);
24
35
  get checkedState(): CheckBoxState;
25
36
  /**
26
- * The rounded property specifies the border radius of the CheckBox
37
+ * Sets the `rounded` property to specify the border radius of the CheckBox
27
38
  * ([see example](slug:appearance_checkboxdirective#toc-roundness)).
28
39
  *
29
40
  * @default 'medium'
30
- *
31
- * The possible values are:
32
- * * `small`
33
- * * `medium`
34
- * * `large`
35
- * * `none`
36
41
  */
37
42
  set rounded(rounded: CheckBoxRounded);
38
43
  get rounded(): CheckBoxRounded;
39
44
  /**
40
- * Fires each time the inner input's checked state is changed.
41
- * When the state of the component is programmatically changed to `ngModel` or `formControl`
42
- * through its API or form binding, the `checkedStateChange` event is not triggered because it
43
- * might cause a mix-up with the built-in mechanisms of the `ngModel` or `formControl` bindings.
44
- *
45
- * Used to provide a two-way binding for the `checkedState` property.
45
+ * Fires when the inner input's checked state changes.
46
+ * This event does not fire when you change the state programmatically using `ngModel` or `formControl`.
47
+ * Use this event for two-way binding with the `checkedState` property.
46
48
  */
47
49
  checkedStateChange: EventEmitter<CheckBoxState>;
48
50
  /**
@@ -6,11 +6,11 @@ import { ElementRef, Renderer2 } from '@angular/core';
6
6
  import { CheckBoxRounded, InputSize } from '../common/models';
7
7
  import * as i0 from "@angular/core";
8
8
  /**
9
- * Represents the directive that renders the [Kendo UI CheckBox]({% slug overview_checkbox %}) input component.
10
- * The directive is placed on input type="checkbox" elements.
9
+ * Renders the [Kendo UI CheckBox]({% slug overview_checkbox %}) input component.
10
+ * Apply this directive to `input type="checkbox"` HTML elements.
11
11
  *
12
12
  * @example
13
- * ```ts-no-run
13
+ * ```html
14
14
  * <input type="checkbox" kendoCheckBox />
15
15
  * ```
16
16
  */
@@ -19,26 +19,19 @@ export declare class CheckBoxDirective {
19
19
  private hostElement;
20
20
  kendoClass: boolean;
21
21
  /**
22
- * The size property specifies the width and height of the CheckBox
22
+ * Sets the `size` property to specify the width and height of the CheckBox
23
23
  * ([see example]({% slug appearance_checkboxdirective %}#toc-size)).
24
24
  *
25
- * The possible values are:
26
- * * `small`
27
- * * `medium` (default)
28
- * * `large`
29
- * * `none`
25
+ * @default 'medium'
30
26
  */
31
27
  set size(size: InputSize);
32
28
  get size(): InputSize;
33
29
  /**
34
- * The rounded property specifies the border radius of the CheckBox
30
+ * Sets the `rounded` property to specify the border radius of the CheckBox
35
31
  * ([see example](slug:appearance_checkboxdirective#toc-roundness)).
36
32
  *
37
- * The possible values are:
38
- * * `small`
39
- * * `medium` (default)
40
- * * `large`
41
- * * `none`
33
+ * @default 'medium'
34
+ *
42
35
  */
43
36
  set rounded(rounded: CheckBoxRounded);
44
37
  get rounded(): CheckBoxRounded;
@@ -3,10 +3,14 @@
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  /**
6
- * Represents the options for the `checkedState` input of the CheckBox component.
6
+ * Defines the options for the `checkedState` input of the CheckBox component.
7
+ *
8
+ * Use this type to set the checked state to `true`, `false`, or `'indeterminate'`.
7
9
  *
8
10
  * @example
9
11
  * ```html
12
+ * <kendo-checkbox [checkedState]="true"></kendo-checkbox>
13
+ * <kendo-checkbox [checkedState]="false"></kendo-checkbox>
10
14
  * <kendo-checkbox checkedState="indeterminate"></kendo-checkbox>
11
15
  * ```
12
16
  */
@@ -6,34 +6,23 @@ import * as i0 from "@angular/core";
6
6
  import * as i1 from "./checkbox/checkbox.component";
7
7
  import * as i2 from "./checkbox/checkbox.directive";
8
8
  /**
9
- * Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
10
- * definition for the CheckBox directive and CheckBoxComponent.
9
+ * Defines the [`NgModule`](link:site.data.urls.angular['ngmoduleapi']) for the CheckBox directive and CheckBoxComponent.
11
10
  *
12
- * @example
11
+ * Use this module to add CheckBox features to your NgModule-based Angular application.
13
12
  *
14
- * ```ts-no-run
15
- * // Import the CheckBox module
13
+ * @example
14
+ * ```typescript
16
15
  * import { CheckBoxModule } from '@progress/kendo-angular-inputs';
17
- *
18
- * // The browser platform with a compiler
19
- * import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
20
- *
21
16
  * import { NgModule } from '@angular/core';
22
- *
23
- * // Import the app component
17
+ * import { BrowserModule } from '@angular/platform-browser';
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, CheckBoxModule], // import CheckBox module
30
- * bootstrap: [AppComponent]
20
+ * @NgModule({
21
+ * declarations: [AppComponent],
22
+ * imports: [BrowserModule, CheckBoxModule],
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 CheckBoxModule {
@@ -13,8 +13,17 @@ import { SVGIcon } from '@progress/kendo-angular-icons';
13
13
  import { InputSize } from '../common/models';
14
14
  import * as i0 from "@angular/core";
15
15
  /**
16
- * The ColorGradient component enables smooth color transitions and provides options for selecting specific colors over the drag handle.
17
- * The ColorGradient is independently used by `kendo-colorpicker` and can be directly added to the page.
16
+ * Represents the Kendo UI ColorGradient component.
17
+ *
18
+ * The ColorGradientComponent lets you select a color by moving a drag handle over a gradient area. You can use it directly or as part of the `kendo-colorpicker`.
19
+ *
20
+ * @example
21
+ * ```html
22
+ * <kendo-colorgradient [(ngModel)]="color"></kendo-colorgradient>
23
+ * ```
24
+ *
25
+ * @remarks
26
+ * Supported children components are: {@link ColorPickerMessages}.
18
27
  */
19
28
  export declare class ColorGradientComponent implements OnInit, OnChanges, OnDestroy, ControlValueAccessor {
20
29
  private host;
@@ -53,24 +62,20 @@ export declare class ColorGradientComponent implements OnInit, OnChanges, OnDest
53
62
  */
54
63
  id: string;
55
64
  /**
56
- * Defines whether the alpha slider will be displayed.
65
+ * Shows or hides the alpha slider.
57
66
  *
58
67
  * @default true
59
68
  */
60
69
  opacity: boolean;
61
70
  /**
62
- * The size property specifies the padding of the ColorGradient internal elements.
71
+ * Sets the size of the ColorGradient internal elements.
63
72
  *
64
- * The possible values are:
65
- * * `small`
66
- * * `medium` (default)
67
- * * `large`
68
- * * `none`
73
+ * @default 'medium'
69
74
  */
70
75
  set size(size: InputSize);
71
76
  get size(): InputSize;
72
77
  /**
73
- * Sets the disabled state of the ColorGradient. To learn how to disable the component in reactive forms, refer to the article on [Forms Support](slug:formssupport_colorgradient#toc-managing-the-colorgradient-disabled-state-in-reactive-forms).
78
+ * Disables the ColorGradient. To disable it in reactive forms, see [Forms Support](slug:formssupport_colorgradient#toc-managing-the-colorgradient-disabled-state-in-reactive-forms).
74
79
  *
75
80
  * @default false
76
81
  */
@@ -82,47 +87,42 @@ export declare class ColorGradientComponent implements OnInit, OnChanges, OnDest
82
87
  */
83
88
  readonly: boolean;
84
89
  /**
85
- * Specifies whether the ColorGradient should display a 'Clear color' button.
90
+ * Shows or hides the **Clear color** button.
86
91
  *
87
92
  * @default false
88
93
  */
89
94
  clearButton: boolean;
90
95
  /**
91
- * Determines the delay time (in milliseconds) before the value is changed on handle drag. A value of 0 indicates no delay.
96
+ * Sets the delay (in milliseconds) before the value changes on handle drag.
92
97
  *
93
98
  * @default 0
94
99
  */
95
100
  delay: number;
96
101
  /**
97
- * Specifies the value of the initially selected color.
102
+ * Sets the value of the selected color.
98
103
  */
99
104
  set value(value: string);
100
105
  get value(): string;
101
106
  /**
102
- * Enables the color contrast tool. Accepts the background color that will be compared to the selected value.
103
- * The tool will calculate the contrast ratio between the two colors.
107
+ * Enables the color contrast tool that checks the contrast ratio of the selected color against a predefined background color. [See example](slug:contrasttool_colorgradient).
104
108
  */
105
109
  set contrastTool(value: string);
106
110
  get contrastTool(): string;
107
111
  /**
108
- * Specifies the [tabindex](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) of the component.
112
+ * Sets the [`tabindex`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) of the component.
109
113
  *
110
114
  * @default 0
111
115
  */
112
116
  set tabindex(value: number);
113
117
  get tabindex(): number;
114
118
  /**
115
- * Specifies the output format of the ColorGradientComponent.
116
- * The input value may be in a different format, but it will be parsed into the output `format`
117
- * after the component processes it.
119
+ * Sets the output format of the ColorGradient. The input value may be in a different format, but it will be parsed into the output format after the component processes it.
118
120
  *
119
- * The supported values are:
120
- * * (Default) `rgba`
121
- * * `hex`
121
+ * @default 'rgba'
122
122
  */
123
123
  format: OutputFormat;
124
124
  /**
125
- * Fires each time the user selects a new color.
125
+ * Fires when the user selects a new color..
126
126
  */
127
127
  valueChange: EventEmitter<string>;
128
128
  /**
@@ -138,7 +138,7 @@ export declare class ColorGradientComponent implements OnInit, OnChanges, OnDest
138
138
  */
139
139
  hsva: BehaviorSubject<HSVA>;
140
140
  /**
141
- * Indicates whether the ColorGradient or any of its content is focused.
141
+ * Returns `true` if the component or its content is focused.
142
142
  */
143
143
  get isFocused(): boolean;
144
144
  /**
@@ -146,13 +146,13 @@ export declare class ColorGradientComponent implements OnInit, OnChanges, OnDest
146
146
  */
147
147
  get alphaSliderValue(): number;
148
148
  /**
149
- * Determines the step (in pixels) when moving the gradient drag handle using the keyboard arrow keys.
149
+ * Sets the step (in pixels) for moving the gradient drag handle with the arrow keys.
150
150
  *
151
151
  * @default 5
152
152
  */
153
153
  gradientSliderStep: number;
154
154
  /**
155
- * Determines the step (in pixels) when moving the gradient drag handle using the keyboard arrow keys while holding the shift key.
155
+ * Sets the step (in pixels) for moving the gradient drag handle with `Shift+arrow keys`.
156
156
  *
157
157
  * @default 2
158
158
  */
@@ -18,38 +18,38 @@ export declare class ColorInputComponent implements AfterViewInit, OnChanges {
18
18
  private cdr;
19
19
  localizationService: LocalizationService;
20
20
  /**
21
- * The id of the hex input.
21
+ * Sets the `id` of the hex input.
22
22
  */
23
23
  focusableId: string;
24
24
  /**
25
- * The color format view.
25
+ * Sets the color format view.
26
26
  */
27
27
  formatView: string;
28
28
  /**
29
- * The size property specifies the padding of the ColorInput.
29
+ * Sets the size of the ColorInput.
30
30
  *
31
- * The possible values are:
32
- * * `small`
33
- * * `medium` (default)
34
- * * `large`
35
- * * `none`
31
+ * @default 'medium'
36
32
  */
37
33
  size: InputSize;
38
34
  /**
39
- * The inputs tabindex.
35
+ * Sets the `tabindex` of the inputs.
36
+ * @default -1
40
37
  */
41
38
  tabindex: number;
42
39
  /**
43
- * The color value that will be parsed and populate the hex & rgba inputs.
44
- * Required input property.
40
+ * Sets the color value to parse and populate the hex and RGBA inputs.
45
41
  */
46
42
  value: string;
47
43
  /**
48
- * Sets whether the alpha slider will be shown.
44
+ * Shows or hides the alpha slider.
45
+ *
46
+ * @default true
49
47
  */
50
48
  opacity: boolean;
51
49
  /**
52
- * Sets the disabled state of the ColorInput.
50
+ * Disables the ColorInput.
51
+ *
52
+ * @default false
53
53
  */
54
54
  disabled: boolean;
55
55
  /**
@@ -59,11 +59,11 @@ export declare class ColorInputComponent implements AfterViewInit, OnChanges {
59
59
  */
60
60
  readonly: boolean;
61
61
  /**
62
- * Emits a parsed rgba string color.
62
+ * Emits a parsed RGBA string color.
63
63
  */
64
64
  valueChange: EventEmitter<string>;
65
65
  /**
66
- * Emits when the user tabs out of the last focusable input.
66
+ * Fires when the user tabs out of the last focusable input.
67
67
  */
68
68
  tabOut: EventEmitter<any>;
69
69
  colorInputClass: boolean;
@@ -72,16 +72,16 @@ export declare class ColorInputComponent implements AfterViewInit, OnChanges {
72
72
  blueInput: NumericTextBoxComponent;
73
73
  toggleFormatButton: ElementRef;
74
74
  /**
75
- * The rgba inputs values.
75
+ * Holds the RGBA input values.
76
76
  */
77
77
  rgba: RGBA;
78
78
  hex: string;
79
79
  /**
80
- * Indicates whether any of the inputs are focused.
80
+ * Returns `true` if any of the inputs are focused.
81
81
  */
82
82
  private get isFocused();
83
83
  /**
84
- * Indicates whether any of the rgba inputs have value.
84
+ * Returns `true` if all RGBA inputs have values.
85
85
  */
86
86
  private get rgbaInputValid();
87
87
  /**
@@ -10,8 +10,17 @@ import { ColorPaletteService } from './services/color-palette.service';
10
10
  import { InputSize } from '../common/models';
11
11
  import * as i0 from "@angular/core";
12
12
  /**
13
- * The ColorPalette component provides a set of predefined palette presets and enables you to implement a custom color palette.
14
- * The ColorPalette is independently used by `kendo-colorpicker` and can be directly added to the page.
13
+ * Represents the Kendo UI ColorPalette component.
14
+ *
15
+ * The `ColorPaletteComponent` provides a set of predefined palette presets and lets you implement a custom color palette. You can use it directly or as part of the `kendo-colorpicker`.
16
+ *
17
+ * @example
18
+ * ```html
19
+ * <kendo-colorpalette [palette]="['#fff', '#000']" [(value)]="selectedColor"></kendo-colorpalette>
20
+ * ```
21
+ *
22
+ * @remarks
23
+ * Supported children components are: {@link ColorPickerMessages}.
15
24
  */
16
25
  export declare class ColorPaletteComponent implements OnInit, AfterViewInit, OnDestroy, OnChanges, ControlValueAccessor {
17
26
  host: ElementRef;
@@ -41,55 +50,45 @@ export declare class ColorPaletteComponent implements OnInit, AfterViewInit, OnD
41
50
  */
42
51
  id: string;
43
52
  /**
44
- * Specifies the output format of the ColorPaletteComponent.
45
- * The input value may be in a different format. However, it will be parsed into the output `format`
46
- * after the component processes it.
53
+ * Specifies the output format of the `ColorPaletteComponent`.
54
+ * The input value may be in a different format. The component parses it into the output `format`.
47
55
  *
48
- * The supported values are:
49
- * * (Default) `hex`
50
- * * `rgba`
51
- * * `name`
56
+ * @default 'hex'
52
57
  */
53
58
  format: OutputFormat;
54
59
  /**
55
- * Specifies the value of the initially selected color.
60
+ * Sets the value of the selected color.
56
61
  */
57
62
  set value(value: string);
58
63
  get value(): string;
59
64
  /**
60
- * Specifies the number of columns that will be displayed.
61
- * Defaults to `10`.
65
+ * Sets the number of columns to display.
66
+ *
67
+ * @default 10
62
68
  */
63
69
  set columns(value: number);
64
70
  get columns(): number;
65
71
  /**
66
- * The color palette that will be displayed.
67
- *
68
- * The supported values are:
69
- * * The name of the predefined palette preset (for example, `office`, `basic`, and `apex`).
70
- * * A string with comma-separated colors.
71
- * * A string array.
72
+ * Sets the color palette to display. You can use a predefined palette preset (such as `office`, `basic`, or `apex`), string with comma-separated colors, or an array of string colors.
72
73
  */
73
74
  set palette(value: string | Array<string>);
74
75
  get palette(): string | Array<string>;
75
76
  /**
76
- * The size property specifies the padding of the ColorPalette internal elements.
77
+ * Sets the size of the ColorPalette internal elements.
77
78
  *
78
- * The possible values are:
79
- * * `small`
80
- * * `medium` (default)
81
- * * `large`
82
- * * `none`
79
+ * @default 'medium'
83
80
  */
84
81
  set size(size: InputSize);
85
82
  get size(): InputSize;
86
83
  /**
87
- * Specifies the [tabindex](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) of the component.
84
+ * Sets the [`tabindex`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) of the component.
85
+ *
86
+ * @default 0
88
87
  */
89
88
  set tabindex(value: number);
90
89
  get tabindex(): number;
91
90
  /**
92
- * Sets the disabled state of the ColorPalette. To learn how to disable the component in reactive forms, refer to the article on [Forms Support](slug:formssupport_colorpalette#toc-managing-the-colorpalette-disabled-state-in-reactive-forms).
91
+ * Disables the ColorPalette. To disable it in reactive forms, see [Forms Support](slug:formssupport_colorpalette#toc-managing-the-colorpalette-disabled-state-in-reactive-forms).
93
92
  */
94
93
  disabled: boolean;
95
94
  /**
@@ -99,7 +98,7 @@ export declare class ColorPaletteComponent implements OnInit, AfterViewInit, OnD
99
98
  */
100
99
  readonly: boolean;
101
100
  /**
102
- * Specifies the size of a color cell. The default tile size depends on the `size` of the component.
101
+ * Sets the size of a color cell. The default tile size depends on the `size` of the component.
103
102
  */
104
103
  tileSize: number | TileSize;
105
104
  /**
@@ -107,11 +106,11 @@ export declare class ColorPaletteComponent implements OnInit, AfterViewInit, OnD
107
106
  */
108
107
  get tileLayout(): TileSize;
109
108
  /**
110
- * Fires each time the color selection is changed.
109
+ * Fires when the color selection changes.
111
110
  */
112
111
  selectionChange: EventEmitter<string>;
113
112
  /**
114
- * Fires each time the value is changed.
113
+ * Fires when the value changes.
115
114
  */
116
115
  valueChange: EventEmitter<string>;
117
116
  /**