@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.
- package/checkbox/checkbox.component.d.ts +15 -13
- package/checkbox/checkbox.directive.d.ts +8 -15
- package/checkbox/checked-state.d.ts +5 -1
- package/checkbox.module.d.ts +9 -20
- package/colorpicker/color-gradient.component.d.ts +26 -26
- package/colorpicker/color-input.component.d.ts +18 -18
- package/colorpicker/color-palette.component.d.ts +28 -29
- package/colorpicker/colorpicker.component.d.ts +53 -69
- package/colorpicker/events/active-color-click-event.d.ts +10 -14
- package/colorpicker/events/cancel-event.d.ts +1 -1
- package/colorpicker/events/close-event.d.ts +1 -1
- package/colorpicker/events/open-event.d.ts +1 -1
- package/colorpicker/flatcolorpicker.component.d.ts +26 -29
- package/colorpicker/localization/custom-messages.component.d.ts +9 -1
- package/colorpicker/localization/messages.d.ts +29 -29
- package/colorpicker/models/palette-settings.d.ts +0 -3
- package/colorpicker/models/tile-size.d.ts +6 -0
- package/colorpicker.module.d.ts +18 -2
- package/common/models/fillmode.d.ts +4 -1
- package/common/models/rounded.d.ts +8 -2
- package/common/models/size.d.ts +4 -1
- package/common/models/type.d.ts +3 -1
- package/common/radio-checkbox.base.d.ts +0 -7
- package/directives.d.ts +216 -18
- package/esm2022/checkbox/checkbox.component.mjs +15 -13
- package/esm2022/checkbox/checkbox.directive.mjs +8 -15
- package/esm2022/checkbox.module.mjs +9 -20
- package/esm2022/colorpicker/color-gradient.component.mjs +26 -26
- package/esm2022/colorpicker/color-input.component.mjs +21 -21
- package/esm2022/colorpicker/color-palette.component.mjs +28 -29
- package/esm2022/colorpicker/colorpicker.component.mjs +53 -69
- package/esm2022/colorpicker/events/active-color-click-event.mjs +10 -14
- package/esm2022/colorpicker/events/cancel-event.mjs +1 -1
- package/esm2022/colorpicker/events/close-event.mjs +1 -1
- package/esm2022/colorpicker/events/open-event.mjs +1 -1
- package/esm2022/colorpicker/flatcolorpicker.component.mjs +26 -29
- package/esm2022/colorpicker/localization/custom-messages.component.mjs +9 -1
- package/esm2022/colorpicker/localization/messages.mjs +29 -29
- package/esm2022/colorpicker.module.mjs +18 -2
- package/esm2022/common/radio-checkbox.base.mjs +0 -7
- package/esm2022/directives.mjs +216 -18
- package/esm2022/formfield/error.component.mjs +9 -6
- package/esm2022/formfield/formfield.component.mjs +24 -20
- package/esm2022/formfield/hint.component.mjs +8 -5
- package/esm2022/formfield.module.mjs +9 -20
- package/esm2022/index.mjs +1 -0
- package/esm2022/inputs.module.mjs +9 -21
- package/esm2022/maskedtextbox/maskedtextbox.component.mjs +46 -88
- package/esm2022/maskedtextbox.module.mjs +9 -20
- package/esm2022/numerictextbox/localization/custom-messages.component.mjs +13 -1
- package/esm2022/numerictextbox/localization/messages.mjs +2 -2
- package/esm2022/numerictextbox/numerictextbox.component.mjs +57 -70
- package/esm2022/numerictextbox.module.mjs +9 -20
- package/esm2022/otp.module.mjs +44 -0
- package/esm2022/otpinput/localization/custom-messages.component.mjs +3 -1
- package/esm2022/otpinput/otpinput.component.mjs +39 -42
- package/esm2022/package-metadata.mjs +2 -2
- package/esm2022/radiobutton/radiobutton.component.mjs +15 -6
- package/esm2022/radiobutton/radiobutton.directive.mjs +6 -10
- package/esm2022/radiobutton.module.mjs +8 -18
- package/esm2022/rangeslider/localization/custom-messages.component.mjs +11 -1
- package/esm2022/rangeslider/rangeslider.component.mjs +12 -16
- package/esm2022/rangeslider.module.mjs +7 -18
- package/esm2022/rating/directives/rating-hovered-item.directive.mjs +11 -3
- package/esm2022/rating/directives/rating-item.directive.mjs +10 -3
- package/esm2022/rating/directives/rating-selected-item.directive.mjs +12 -3
- package/esm2022/rating/rating.component.mjs +23 -20
- package/esm2022/rating.module.mjs +7 -18
- package/esm2022/shared/input-separator.component.mjs +10 -15
- package/esm2022/shared/textarea.directive.mjs +5 -6
- package/esm2022/signature/events/close-event.mjs +1 -1
- package/esm2022/signature/localization/custom-messages.component.mjs +1 -1
- package/esm2022/signature/signature.component.mjs +52 -51
- package/esm2022/signature.module.mjs +7 -18
- package/esm2022/slider/localization/custom-messages.component.mjs +1 -1
- package/esm2022/slider/slider.component.mjs +18 -19
- package/esm2022/slider.module.mjs +7 -18
- package/esm2022/sliders-common/label-template.directive.mjs +9 -19
- package/esm2022/sliders-common/slider-base.mjs +47 -29
- package/esm2022/switch/events/blur-event.mjs +1 -1
- package/esm2022/switch/events/focus-event.mjs +1 -1
- package/esm2022/switch/localization/custom-messages.component.mjs +1 -1
- package/esm2022/switch/switch.component.mjs +32 -43
- package/esm2022/switch.module.mjs +7 -18
- package/esm2022/textarea/textarea-prefix.component.mjs +11 -13
- package/esm2022/textarea/textarea-suffix.component.mjs +11 -13
- package/esm2022/textarea/textarea.component.mjs +40 -103
- package/esm2022/textarea.module.mjs +7 -18
- package/esm2022/textbox/localization/custom-messages.component.mjs +1 -1
- package/esm2022/textbox/textbox-prefix.directive.mjs +9 -13
- package/esm2022/textbox/textbox-suffix.directive.mjs +10 -14
- package/esm2022/textbox/textbox.component.mjs +41 -112
- package/esm2022/textbox/textbox.directive.mjs +2 -2
- package/esm2022/textbox.module.mjs +7 -18
- package/fesm2022/progress-kendo-angular-inputs.mjs +1207 -1280
- package/formfield/error.component.d.ts +9 -6
- package/formfield/formfield.component.d.ts +24 -20
- package/formfield/hint.component.d.ts +8 -5
- package/formfield/models/message-align.d.ts +3 -1
- package/formfield/models/orientation.d.ts +3 -0
- package/formfield/models/show-options.d.ts +5 -7
- package/formfield.module.d.ts +9 -20
- package/index.d.ts +1 -0
- package/inputs.module.d.ts +9 -21
- package/maskedtextbox/maskedtextbox.component.d.ts +46 -88
- package/maskedtextbox.module.d.ts +9 -20
- package/numerictextbox/localization/custom-messages.component.d.ts +13 -1
- package/numerictextbox/localization/messages.d.ts +2 -2
- package/numerictextbox/numerictextbox.component.d.ts +57 -70
- package/numerictextbox.module.d.ts +9 -20
- package/otp.module.d.ts +32 -0
- package/otpinput/localization/custom-messages.component.d.ts +3 -1
- package/otpinput/models/otpinput-type.d.ts +2 -2
- package/otpinput/models/separator-icon.d.ts +8 -3
- package/otpinput/otpinput.component.d.ts +39 -42
- package/package.json +12 -12
- package/radiobutton/radiobutton.component.d.ts +15 -6
- package/radiobutton/radiobutton.directive.d.ts +6 -10
- package/radiobutton.module.d.ts +8 -18
- package/rangeslider/localization/custom-messages.component.d.ts +11 -1
- package/rangeslider/rangeslider-value.type.d.ts +2 -2
- package/rangeslider/rangeslider.component.d.ts +12 -16
- package/rangeslider.module.d.ts +7 -18
- package/rating/directives/rating-hovered-item.directive.d.ts +11 -3
- package/rating/directives/rating-item.directive.d.ts +10 -3
- package/rating/directives/rating-selected-item.directive.d.ts +12 -3
- package/rating/models/precision.d.ts +1 -2
- package/rating/models/selection.d.ts +1 -2
- package/rating/rating.component.d.ts +21 -18
- package/rating.module.d.ts +7 -18
- package/shared/input-separator.component.d.ts +10 -15
- package/shared/textarea.directive.d.ts +5 -6
- package/signature/events/close-event.d.ts +1 -1
- package/signature/localization/custom-messages.component.d.ts +1 -1
- package/signature/signature.component.d.ts +52 -51
- package/signature.module.d.ts +7 -18
- package/slider/localization/custom-messages.component.d.ts +1 -1
- package/slider/slider.component.d.ts +18 -19
- package/slider.module.d.ts +7 -18
- package/sliders-common/label-template.directive.d.ts +9 -19
- package/sliders-common/slider-base.d.ts +47 -29
- package/sliders-common/title-callback.d.ts +19 -3
- package/switch/events/blur-event.d.ts +1 -1
- package/switch/events/focus-event.d.ts +1 -1
- package/switch/localization/custom-messages.component.d.ts +1 -1
- package/switch/switch.component.d.ts +32 -43
- package/switch.module.d.ts +7 -18
- package/textarea/models/adornments-orientation.d.ts +3 -3
- package/textarea/models/flow.d.ts +3 -3
- package/textarea/models/resize.d.ts +6 -7
- package/textarea/textarea-prefix.component.d.ts +11 -13
- package/textarea/textarea-suffix.component.d.ts +11 -13
- package/textarea/textarea.component.d.ts +40 -103
- package/textarea.module.d.ts +7 -18
- package/textbox/localization/custom-messages.component.d.ts +1 -1
- package/textbox/textbox-prefix.directive.d.ts +9 -13
- package/textbox/textbox-suffix.directive.d.ts +10 -14
- package/textbox/textbox.component.d.ts +41 -112
- package/textbox/textbox.directive.d.ts +2 -2
- 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
|
-
*
|
|
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
|
|
41
|
-
*
|
|
42
|
-
*
|
|
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
|
-
*
|
|
10
|
-
*
|
|
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
|
-
* ```
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
38
|
-
*
|
|
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
|
-
*
|
|
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
|
*/
|
package/checkbox.module.d.ts
CHANGED
|
@@ -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
|
-
*
|
|
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
|
-
*
|
|
11
|
+
* Use this module to add CheckBox features to your NgModule-based Angular application.
|
|
13
12
|
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
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
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
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
|
-
*
|
|
17
|
-
*
|
|
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
|
-
*
|
|
65
|
+
* Shows or hides the alpha slider.
|
|
57
66
|
*
|
|
58
67
|
* @default true
|
|
59
68
|
*/
|
|
60
69
|
opacity: boolean;
|
|
61
70
|
/**
|
|
62
|
-
*
|
|
71
|
+
* Sets the size of the ColorGradient internal elements.
|
|
63
72
|
*
|
|
64
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
90
|
+
* Shows or hides the **Clear color** button.
|
|
86
91
|
*
|
|
87
92
|
* @default false
|
|
88
93
|
*/
|
|
89
94
|
clearButton: boolean;
|
|
90
95
|
/**
|
|
91
|
-
*
|
|
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
|
-
*
|
|
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
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
120
|
-
* * (Default) `rgba`
|
|
121
|
-
* * `hex`
|
|
121
|
+
* @default 'rgba'
|
|
122
122
|
*/
|
|
123
123
|
format: OutputFormat;
|
|
124
124
|
/**
|
|
125
|
-
* Fires
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
21
|
+
* Sets the `id` of the hex input.
|
|
22
22
|
*/
|
|
23
23
|
focusableId: string;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* Sets the color format view.
|
|
26
26
|
*/
|
|
27
27
|
formatView: string;
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* Sets the size of the ColorInput.
|
|
30
30
|
*
|
|
31
|
-
*
|
|
32
|
-
* * `small`
|
|
33
|
-
* * `medium` (default)
|
|
34
|
-
* * `large`
|
|
35
|
-
* * `none`
|
|
31
|
+
* @default 'medium'
|
|
36
32
|
*/
|
|
37
33
|
size: InputSize;
|
|
38
34
|
/**
|
|
39
|
-
*
|
|
35
|
+
* Sets the `tabindex` of the inputs.
|
|
36
|
+
* @default -1
|
|
40
37
|
*/
|
|
41
38
|
tabindex: number;
|
|
42
39
|
/**
|
|
43
|
-
*
|
|
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
|
-
*
|
|
44
|
+
* Shows or hides the alpha slider.
|
|
45
|
+
*
|
|
46
|
+
* @default true
|
|
49
47
|
*/
|
|
50
48
|
opacity: boolean;
|
|
51
49
|
/**
|
|
52
|
-
*
|
|
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
|
|
62
|
+
* Emits a parsed RGBA string color.
|
|
63
63
|
*/
|
|
64
64
|
valueChange: EventEmitter<string>;
|
|
65
65
|
/**
|
|
66
|
-
*
|
|
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
|
-
*
|
|
75
|
+
* Holds the RGBA input values.
|
|
76
76
|
*/
|
|
77
77
|
rgba: RGBA;
|
|
78
78
|
hex: string;
|
|
79
79
|
/**
|
|
80
|
-
*
|
|
80
|
+
* Returns `true` if any of the inputs are focused.
|
|
81
81
|
*/
|
|
82
82
|
private get isFocused();
|
|
83
83
|
/**
|
|
84
|
-
*
|
|
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
|
-
*
|
|
14
|
-
*
|
|
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.
|
|
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
|
-
*
|
|
49
|
-
* * (Default) `hex`
|
|
50
|
-
* * `rgba`
|
|
51
|
-
* * `name`
|
|
56
|
+
* @default 'hex'
|
|
52
57
|
*/
|
|
53
58
|
format: OutputFormat;
|
|
54
59
|
/**
|
|
55
|
-
*
|
|
60
|
+
* Sets the value of the selected color.
|
|
56
61
|
*/
|
|
57
62
|
set value(value: string);
|
|
58
63
|
get value(): string;
|
|
59
64
|
/**
|
|
60
|
-
*
|
|
61
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
77
|
+
* Sets the size of the ColorPalette internal elements.
|
|
77
78
|
*
|
|
78
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
|
109
|
+
* Fires when the color selection changes.
|
|
111
110
|
*/
|
|
112
111
|
selectionChange: EventEmitter<string>;
|
|
113
112
|
/**
|
|
114
|
-
* Fires
|
|
113
|
+
* Fires when the value changes.
|
|
115
114
|
*/
|
|
116
115
|
valueChange: EventEmitter<string>;
|
|
117
116
|
/**
|