@progress/kendo-angular-inputs 10.1.1-dev.202210121020 → 10.1.1-dev.202210181135

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 (29) hide show
  1. package/bundles/kendo-angular-inputs.umd.js +1 -1
  2. package/colorpicker/color-gradient-numeric-label.directive.d.ts +20 -0
  3. package/colorpicker/color-gradient.component.d.ts +48 -5
  4. package/colorpicker/color-input.component.d.ts +14 -3
  5. package/colorpicker/color-palette.component.d.ts +16 -0
  6. package/colorpicker/colorpicker.component.d.ts +8 -2
  7. package/colorpicker/constants.d.ts +4 -0
  8. package/colorpicker/flatcolorpicker-actions.component.d.ts +4 -1
  9. package/colorpicker/flatcolorpicker-header.component.d.ts +4 -1
  10. package/colorpicker/flatcolorpicker.component.d.ts +40 -3
  11. package/colorpicker/localization/messages.d.ts +17 -1
  12. package/colorpicker/models/gradient-settings.d.ts +12 -0
  13. package/colorpicker.module.d.ts +14 -13
  14. package/esm2015/colorpicker/color-gradient-numeric-label.directive.js +29 -0
  15. package/esm2015/colorpicker/color-gradient.component.js +181 -34
  16. package/esm2015/colorpicker/color-input.component.js +71 -10
  17. package/esm2015/colorpicker/color-palette.component.js +49 -11
  18. package/esm2015/colorpicker/colorpicker.component.js +69 -11
  19. package/esm2015/colorpicker/constants.js +4 -0
  20. package/esm2015/colorpicker/flatcolorpicker-actions.component.js +20 -5
  21. package/esm2015/colorpicker/flatcolorpicker-header.component.js +36 -14
  22. package/esm2015/colorpicker/flatcolorpicker.component.js +206 -49
  23. package/esm2015/colorpicker/localization/messages.js +9 -1
  24. package/esm2015/colorpicker.module.js +4 -1
  25. package/esm2015/main.js +1 -0
  26. package/esm2015/package-metadata.js +1 -1
  27. package/fesm2015/kendo-angular-inputs.js +686 -153
  28. package/main.d.ts +1 -0
  29. package/package.json +1 -1
@@ -0,0 +1,20 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { OnInit } from '@angular/core';
6
+ import { LocalizationService } from '@progress/kendo-angular-l10n';
7
+ import { NumericTextBoxComponent } from './../numerictextbox/numerictextbox.component';
8
+ import * as i0 from "@angular/core";
9
+ /**
10
+ * @hidden
11
+ */
12
+ export declare class NumericLabelDirective implements OnInit {
13
+ private host;
14
+ kendoAdditionalNumericLabel: 'red' | 'green' | 'blue' | 'alpha';
15
+ localizationService: LocalizationService;
16
+ constructor(host: NumericTextBoxComponent);
17
+ ngOnInit(): void;
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<NumericLabelDirective, never>;
19
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NumericLabelDirective, "[kendoAdditionalNumericLabel]", never, { "kendoAdditionalNumericLabel": "kendoAdditionalNumericLabel"; "localizationService": "localizationService"; }, {}, never>;
20
+ }
@@ -2,7 +2,7 @@
2
2
  * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
- import { ElementRef, Renderer2, NgZone, EventEmitter, SimpleChanges, OnChanges, OnDestroy, ChangeDetectorRef } from '@angular/core';
5
+ import { ElementRef, Renderer2, NgZone, EventEmitter, SimpleChanges, OnChanges, OnDestroy, ChangeDetectorRef, Injector, OnInit } from '@angular/core';
6
6
  import { ControlValueAccessor } from '@angular/forms';
7
7
  import { BehaviorSubject } from 'rxjs';
8
8
  import { LocalizationService } from '@progress/kendo-angular-l10n';
@@ -14,18 +14,34 @@ import * as i0 from "@angular/core";
14
14
  * The ColorGradient component enables smooth color transitions and provides options for selecting specific colors over the drag handle.
15
15
  * The ColorGradient is independently used by `kendo-colorpicker` and can be directly added to the page.
16
16
  */
17
- export declare class ColorGradientComponent implements OnChanges, OnDestroy, ControlValueAccessor {
17
+ export declare class ColorGradientComponent implements OnInit, OnChanges, OnDestroy, ControlValueAccessor {
18
18
  private host;
19
19
  private ngZone;
20
20
  private renderer;
21
21
  private cdr;
22
22
  private localizationService;
23
+ private injector;
23
24
  hostClasses: boolean;
24
25
  get readonlyAttribute(): boolean;
25
26
  get disabledClass(): boolean;
26
27
  get gradientId(): string;
27
28
  direction: string;
28
- get hostTabindex(): number;
29
+ get hostTabindex(): string;
30
+ ariaRole: string;
31
+ get isControlInvalid(): string;
32
+ get isDisabled(): string | undefined;
33
+ /**
34
+ * @hidden
35
+ */
36
+ enterHandler(event: any): void;
37
+ /**
38
+ * @hidden
39
+ */
40
+ escapeHandler(event: any): void;
41
+ /**
42
+ * @hidden
43
+ */
44
+ focusHandler(ev: any): void;
29
45
  /**
30
46
  * @hidden
31
47
  */
@@ -112,11 +128,27 @@ export declare class ColorGradientComponent implements OnChanges, OnDestroy, Con
112
128
  * @hidden
113
129
  */
114
130
  get alphaSliderValue(): number;
131
+ /**
132
+ * Determines the step (in pixels) when moving the gradient drag handle using the keyboard arrow keys.
133
+ *
134
+ * @default 5
135
+ */
136
+ gradientSliderStep: number;
137
+ /**
138
+ * Determines the step (in pixels) when moving the gradient drag handle using the keyboard arrow keys while holding the shift key.
139
+ *
140
+ * @default 2
141
+ */
142
+ gradientSliderSmallStep: number;
115
143
  gradientDragHandle: ElementRef;
116
144
  inputs: ColorInputComponent;
117
145
  private alphaSlider;
118
146
  private gradientWrapper;
119
147
  private hsvRectangle;
148
+ /**
149
+ * @hidden
150
+ */
151
+ internalNavigation: boolean;
120
152
  private _value;
121
153
  private _tabindex;
122
154
  private _contrastTool;
@@ -126,12 +158,23 @@ export declare class ColorGradientComponent implements OnChanges, OnDestroy, Con
126
158
  private updateValues;
127
159
  private changeRequestsSubscription;
128
160
  private dynamicRTLSubscription;
161
+ private hsvHandleCoordinates;
129
162
  get gradientRect(): ClientRect;
163
+ /**
164
+ * @hidden
165
+ */
166
+ get hsvSliderValueText(): string;
130
167
  /**
131
168
  * @hidden
132
169
  */
133
170
  get contrastToolVisible(): boolean;
134
- constructor(host: ElementRef, ngZone: NgZone, renderer: Renderer2, cdr: ChangeDetectorRef, localizationService: LocalizationService);
171
+ /**
172
+ * @hidden
173
+ */
174
+ get innerTabIndex(): number;
175
+ private control;
176
+ constructor(host: ElementRef, ngZone: NgZone, renderer: Renderer2, cdr: ChangeDetectorRef, localizationService: LocalizationService, injector: Injector);
177
+ ngOnInit(): void;
135
178
  ngAfterViewInit(): void;
136
179
  ngOnChanges(changes: SimpleChanges): void;
137
180
  ngOnDestroy(): void;
@@ -229,5 +272,5 @@ export declare class ColorGradientComponent implements OnChanges, OnDestroy, Con
229
272
  private subscribeChanges;
230
273
  private unsubscribeChanges;
231
274
  static ɵfac: i0.ɵɵFactoryDeclaration<ColorGradientComponent, never>;
232
- static ɵcmp: i0.ɵɵComponentDeclaration<ColorGradientComponent, "kendo-colorgradient", ["kendoColorGradient"], { "id": "id"; "opacity": "opacity"; "disabled": "disabled"; "readonly": "readonly"; "clearButton": "clearButton"; "delay": "delay"; "value": "value"; "contrastTool": "contrastTool"; "tabindex": "tabindex"; "format": "format"; }, { "valueChange": "valueChange"; }, never, never>;
275
+ static ɵcmp: i0.ɵɵComponentDeclaration<ColorGradientComponent, "kendo-colorgradient", ["kendoColorGradient"], { "id": "id"; "opacity": "opacity"; "disabled": "disabled"; "readonly": "readonly"; "clearButton": "clearButton"; "delay": "delay"; "value": "value"; "contrastTool": "contrastTool"; "tabindex": "tabindex"; "format": "format"; "gradientSliderStep": "gradientSliderStep"; "gradientSliderSmallStep": "gradientSliderSmallStep"; }, { "valueChange": "valueChange"; }, never, never>;
233
276
  }
@@ -13,7 +13,7 @@ import * as i0 from "@angular/core";
13
13
  export declare class ColorInputComponent implements AfterViewInit, OnChanges {
14
14
  private host;
15
15
  private renderer;
16
- private localizationService;
16
+ localizationService: LocalizationService;
17
17
  /**
18
18
  * The id of the hex input.
19
19
  */
@@ -22,6 +22,10 @@ export declare class ColorInputComponent implements AfterViewInit, OnChanges {
22
22
  * The color format view.
23
23
  */
24
24
  formatView: string;
25
+ /**
26
+ * The inputs tabindex.
27
+ */
28
+ tabindex: number;
25
29
  /**
26
30
  * The color value that will be parsed and populate the hex & rgba inputs.
27
31
  * Required input property.
@@ -43,10 +47,14 @@ export declare class ColorInputComponent implements AfterViewInit, OnChanges {
43
47
  * Emits a parsed rgba string color.
44
48
  */
45
49
  valueChange: EventEmitter<string>;
50
+ /**
51
+ * Emits when the user tabs out of the last focusable input.
52
+ */
53
+ tabOut: EventEmitter<any>;
46
54
  colorInputClass: boolean;
47
55
  opacityInput: NumericTextBoxComponent;
48
56
  hexInput: ElementRef;
49
- blueInput: ElementRef;
57
+ blueInput: NumericTextBoxComponent;
50
58
  toggleFormatButton: ElementRef;
51
59
  /**
52
60
  * The rgba inputs values.
@@ -71,8 +79,11 @@ export declare class ColorInputComponent implements AfterViewInit, OnChanges {
71
79
  handleHexValueChange(hex: string): void;
72
80
  handleRgbaInputBlur(): void;
73
81
  handleHexInputBlur(): void;
82
+ focusLast(): void;
83
+ onTab(): void;
74
84
  private toggleFormatView;
75
85
  private initDomEvents;
86
+ private lastInput;
76
87
  static ɵfac: i0.ɵɵFactoryDeclaration<ColorInputComponent, never>;
77
- static ɵcmp: i0.ɵɵComponentDeclaration<ColorInputComponent, "kendo-colorinput", never, { "focusableId": "focusableId"; "formatView": "formatView"; "value": "value"; "opacity": "opacity"; "disabled": "disabled"; "readonly": "readonly"; }, { "valueChange": "valueChange"; }, never, never>;
88
+ static ɵcmp: i0.ɵɵComponentDeclaration<ColorInputComponent, "kendo-colorinput", never, { "focusableId": "focusableId"; "formatView": "formatView"; "tabindex": "tabindex"; "value": "value"; "opacity": "opacity"; "disabled": "disabled"; "readonly": "readonly"; }, { "valueChange": "valueChange"; "tabOut": "tabOut"; }, never, never>;
78
89
  }
@@ -23,6 +23,14 @@ export declare class ColorPaletteComponent implements OnInit, AfterViewInit, OnD
23
23
  * @hidden
24
24
  */
25
25
  direction: string;
26
+ /**
27
+ * @hidden
28
+ */
29
+ role: string;
30
+ /**
31
+ * @hidden
32
+ */
33
+ get activeDescendant(): string;
26
34
  /**
27
35
  * @hidden
28
36
  */
@@ -157,6 +165,10 @@ export declare class ColorPaletteComponent implements OnInit, AfterViewInit, OnD
157
165
  * @hidden
158
166
  */
159
167
  handleKeydown(event: any): void;
168
+ /**
169
+ * @hidden
170
+ */
171
+ handleFocus(): void;
160
172
  /**
161
173
  * @hidden
162
174
  */
@@ -181,6 +193,10 @@ export declare class ColorPaletteComponent implements OnInit, AfterViewInit, OnD
181
193
  * @hidden
182
194
  */
183
195
  setDisabledState(isDisabled: boolean): void;
196
+ /**
197
+ * @hidden
198
+ */
199
+ focus(): void;
184
200
  /**
185
201
  * @hidden
186
202
  * Used by the FloatingLabel to determine if the component is empty.
@@ -2,7 +2,7 @@
2
2
  * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
- import { EventEmitter, ElementRef, OnDestroy, ViewContainerRef, ChangeDetectorRef, NgZone, OnChanges, OnInit, AfterViewInit, Renderer2 } from '@angular/core';
5
+ import { EventEmitter, ElementRef, OnDestroy, ViewContainerRef, ChangeDetectorRef, NgZone, OnChanges, OnInit, AfterViewInit, Renderer2, Injector } from '@angular/core';
6
6
  import { ControlValueAccessor } from '@angular/forms';
7
7
  import { PopupService } from '@progress/kendo-angular-popup';
8
8
  import { LocalizationService } from '@progress/kendo-angular-l10n';
@@ -23,6 +23,7 @@ export declare class ColorPickerComponent implements OnInit, AfterViewInit, OnCh
23
23
  private localizationService;
24
24
  private ngZone;
25
25
  private renderer;
26
+ private injector;
26
27
  hostClasses: boolean;
27
28
  get focusedClass(): boolean;
28
29
  get disabledClass(): boolean;
@@ -31,6 +32,8 @@ export declare class ColorPickerComponent implements OnInit, AfterViewInit, OnCh
31
32
  get hostTabindex(): number;
32
33
  direction: string;
33
34
  role: string;
35
+ hasPopup: string;
36
+ get isControlInvalid(): string;
34
37
  /**
35
38
  * @hidden
36
39
  */
@@ -257,7 +260,10 @@ export declare class ColorPickerComponent implements OnInit, AfterViewInit, OnCh
257
260
  private _fillMode;
258
261
  private dynamicRTLSubscription;
259
262
  private subscriptions;
260
- constructor(host: ElementRef, popupService: PopupService, cdr: ChangeDetectorRef, localizationService: LocalizationService, ngZone: NgZone, renderer: Renderer2);
263
+ private popupSubs;
264
+ private colorPickerId;
265
+ private control;
266
+ constructor(host: ElementRef, popupService: PopupService, cdr: ChangeDetectorRef, localizationService: LocalizationService, ngZone: NgZone, renderer: Renderer2, injector: Injector);
261
267
  ngOnInit(): void;
262
268
  ngAfterViewInit(): void;
263
269
  ngOnChanges(changes: any): void;
@@ -15,6 +15,10 @@ export declare const DEFAULT_GRADIENT_BACKGROUND_COLOR: string;
15
15
  * @hidden
16
16
  */
17
17
  export declare const DRAGHANDLE_MOVE_SPEED = 5;
18
+ /**
19
+ * @hidden
20
+ */
21
+ export declare const DRAGHANDLE_MOVE_SPEED_SMALL_STEP = 2;
18
22
  /**
19
23
  * @hidden
20
24
  */
@@ -11,11 +11,14 @@ import * as i0 from "@angular/core";
11
11
  export declare class FlatColorPickerActionButtonsComponent {
12
12
  localizationService: LocalizationService;
13
13
  hostClasses: boolean;
14
+ innerTabIndex: number;
14
15
  actionButtonClick: EventEmitter<any>;
16
+ tabOut: EventEmitter<any>;
17
+ firstButton: ElementRef;
15
18
  lastButton: ElementRef;
16
19
  constructor(localizationService: LocalizationService);
17
20
  getText(text: string): string;
18
21
  onActionButtonClick(type: string, ev: any): void;
19
22
  static ɵfac: i0.ɵɵFactoryDeclaration<FlatColorPickerActionButtonsComponent, never>;
20
- static ɵcmp: i0.ɵɵComponentDeclaration<FlatColorPickerActionButtonsComponent, "[kendoFlatColorPickerActionButtons]", never, {}, { "actionButtonClick": "actionButtonClick"; }, never, never>;
23
+ static ɵcmp: i0.ɵɵComponentDeclaration<FlatColorPickerActionButtonsComponent, "[kendoFlatColorPickerActionButtons]", never, { "innerTabIndex": "innerTabIndex"; }, { "actionButtonClick": "actionButtonClick"; "tabOut": "tabOut"; }, never, never>;
21
24
  }
@@ -16,11 +16,13 @@ export declare class FlatColorPickerHeaderComponent {
16
16
  activeView: ColorPickerView;
17
17
  views: Array<ColorPickerView>;
18
18
  preview: boolean;
19
+ innerTabIndex: number;
19
20
  value: string;
20
21
  selection: string;
21
22
  viewChange: EventEmitter<ColorPickerView>;
22
23
  valuePaneClick: EventEmitter<any>;
23
24
  clearButtonClick: EventEmitter<any>;
25
+ tabOut: EventEmitter<any>;
24
26
  viewButtonsCollection: QueryList<ElementRef>;
25
27
  clearButtonElement: ElementRef;
26
28
  constructor(localizationService: LocalizationService);
@@ -28,6 +30,7 @@ export declare class FlatColorPickerHeaderComponent {
28
30
  get viewButtons(): boolean;
29
31
  getViewButtonIcon(view: string): string;
30
32
  getText(text: string): string;
33
+ onHeaderTabOut(ev: any, index: number): void;
31
34
  static ɵfac: i0.ɵɵFactoryDeclaration<FlatColorPickerHeaderComponent, never>;
32
- static ɵcmp: i0.ɵɵComponentDeclaration<FlatColorPickerHeaderComponent, "[kendoFlatColorPickerHeader]", never, { "clearButton": "clearButton"; "activeView": "activeView"; "views": "views"; "preview": "preview"; "value": "value"; "selection": "selection"; }, { "viewChange": "viewChange"; "valuePaneClick": "valuePaneClick"; "clearButtonClick": "clearButtonClick"; }, never, never>;
35
+ static ɵcmp: i0.ɵɵComponentDeclaration<FlatColorPickerHeaderComponent, "[kendoFlatColorPickerHeader]", never, { "clearButton": "clearButton"; "activeView": "activeView"; "views": "views"; "preview": "preview"; "innerTabIndex": "innerTabIndex"; "value": "value"; "selection": "selection"; }, { "viewChange": "viewChange"; "valuePaneClick": "valuePaneClick"; "clearButtonClick": "clearButtonClick"; "tabOut": "tabOut"; }, never, never>;
33
36
  }
@@ -2,7 +2,7 @@
2
2
  * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
- import { ElementRef, EventEmitter, NgZone, ChangeDetectorRef, OnInit, AfterViewInit, OnDestroy, Renderer2, SimpleChanges } from "@angular/core";
5
+ import { ElementRef, EventEmitter, NgZone, ChangeDetectorRef, OnInit, AfterViewInit, OnDestroy, Renderer2, SimpleChanges, Injector } from "@angular/core";
6
6
  import { ControlValueAccessor } from '@angular/forms';
7
7
  import { LocalizationService } from '@progress/kendo-angular-l10n';
8
8
  import { FlatColorPickerService } from './services/flatcolorpicker.service';
@@ -26,11 +26,27 @@ export declare class FlatColorPickerComponent implements OnInit, AfterViewInit,
26
26
  private cdr;
27
27
  private renderer;
28
28
  private ngZone;
29
+ private injector;
29
30
  hostClasses: boolean;
30
31
  get disabledClass(): boolean;
31
32
  get ariaReadonly(): boolean;
32
33
  direction: string;
33
- get hostTabindex(): number;
34
+ get hostTabindex(): string;
35
+ ariaRole: string;
36
+ get isControlInvalid(): string;
37
+ get isDisabled(): string | undefined;
38
+ /**
39
+ * @hidden
40
+ */
41
+ enterHandler(event: any): void;
42
+ /**
43
+ * @hidden
44
+ */
45
+ escapeHandler(): void;
46
+ /**
47
+ * @hidden
48
+ */
49
+ focusHandler(ev: any): void;
34
50
  /**
35
51
  * Sets the read-only state of the FlatColorPicker.
36
52
  *
@@ -131,7 +147,9 @@ export declare class FlatColorPickerComponent implements OnInit, AfterViewInit,
131
147
  */
132
148
  actionButtonClick: EventEmitter<any>;
133
149
  header: FlatColorPickerHeaderComponent;
150
+ headerElement: ElementRef;
134
151
  gradient: ColorGradientComponent;
152
+ gradientElement: ElementRef;
135
153
  palette: ColorPaletteComponent;
136
154
  footer: FlatColorPickerActionButtonsComponent;
137
155
  /**
@@ -145,11 +163,29 @@ export declare class FlatColorPickerComponent implements OnInit, AfterViewInit,
145
163
  private _paletteSettings;
146
164
  private dynamicRTLSubscription;
147
165
  private subscriptions;
148
- constructor(host: ElementRef, service: FlatColorPickerService, localizationService: LocalizationService, cdr: ChangeDetectorRef, renderer: Renderer2, ngZone: NgZone);
166
+ private internalNavigation;
167
+ private control;
168
+ /**
169
+ * @hidden
170
+ */
171
+ get innerTabIndex(): number;
172
+ /**
173
+ * @hidden
174
+ */
175
+ get firstFocusable(): any;
176
+ /**
177
+ * @hidden
178
+ */
179
+ get lastFocusable(): any;
180
+ constructor(host: ElementRef, service: FlatColorPickerService, localizationService: LocalizationService, cdr: ChangeDetectorRef, renderer: Renderer2, ngZone: NgZone, injector: Injector);
149
181
  ngOnInit(): void;
150
182
  ngAfterViewInit(): void;
151
183
  ngOnChanges(changes: SimpleChanges): void;
152
184
  ngOnDestroy(): void;
185
+ /**
186
+ * @hidden
187
+ */
188
+ onTab(ev: KeyboardEvent): void;
153
189
  /**
154
190
  * @hidden
155
191
  */
@@ -216,6 +252,7 @@ export declare class FlatColorPickerComponent implements OnInit, AfterViewInit,
216
252
  private notifyNgChanged;
217
253
  private notifyNgTouched;
218
254
  private initDomEvents;
255
+ private removeGradientAttributes;
219
256
  static ɵfac: i0.ɵɵFactoryDeclaration<FlatColorPickerComponent, never>;
220
257
  static ɵcmp: i0.ɵɵComponentDeclaration<FlatColorPickerComponent, "kendo-flatcolorpicker", ["kendoFlatColorPicker"], { "readonly": "readonly"; "disabled": "disabled"; "format": "format"; "value": "value"; "tabindex": "tabindex"; "clearButton": "clearButton"; "preview": "preview"; "actionsLayout": "actionsLayout"; "activeView": "activeView"; "views": "views"; "gradientSettings": "gradientSettings"; "paletteSettings": "paletteSettings"; }, { "valueChange": "valueChange"; "cancel": "cancel"; "activeViewChange": "activeViewChange"; "actionButtonClick": "actionButtonClick"; }, never, never>;
221
258
  }
@@ -60,6 +60,22 @@ export declare class ColorPickerMessages extends ComponentMessages {
60
60
  * The placeholder for the alpha input.
61
61
  */
62
62
  alphaInputPlaceholder: string;
63
+ /**
64
+ * The aria-label attribute of the red color input.
65
+ */
66
+ redChannelLabel: string;
67
+ /**
68
+ * The aria-label attribute of the green color input.
69
+ */
70
+ greenChannelLabel: string;
71
+ /**
72
+ * The aria-label attribute of the blue color input.
73
+ */
74
+ blueChannelLabel: string;
75
+ /**
76
+ * The aria-label attribute of the alpha color input.
77
+ */
78
+ alphaChannelLabel: string;
63
79
  /**
64
80
  * The "Pass" message for the contrast tool.
65
81
  */
@@ -101,5 +117,5 @@ export declare class ColorPickerMessages extends ComponentMessages {
101
117
  */
102
118
  cancelButton: string;
103
119
  static ɵfac: i0.ɵɵFactoryDeclaration<ColorPickerMessages, never>;
104
- static ɵdir: i0.ɵɵDirectiveDeclaration<ColorPickerMessages, "kendo-colorpicker-messages-base", never, { "colorPaletteNoColor": "colorPaletteNoColor"; "colorGradientNoColor": "colorGradientNoColor"; "flatColorPickerNoColor": "flatColorPickerNoColor"; "colorPickerNoColor": "colorPickerNoColor"; "colorGradientHandle": "colorGradientHandle"; "clearButton": "clearButton"; "hueSliderHandle": "hueSliderHandle"; "opacitySliderHandle": "opacitySliderHandle"; "hexInputPlaceholder": "hexInputPlaceholder"; "redInputPlaceholder": "redInputPlaceholder"; "greenInputPlaceholder": "greenInputPlaceholder"; "blueInputPlaceholder": "blueInputPlaceholder"; "alphaInputPlaceholder": "alphaInputPlaceholder"; "passContrast": "passContrast"; "failContrast": "failContrast"; "contrastRatio": "contrastRatio"; "previewColor": "previewColor"; "revertSelection": "revertSelection"; "gradientView": "gradientView"; "paletteView": "paletteView"; "formatButton": "formatButton"; "applyButton": "applyButton"; "cancelButton": "cancelButton"; }, {}, never>;
120
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ColorPickerMessages, "kendo-colorpicker-messages-base", never, { "colorPaletteNoColor": "colorPaletteNoColor"; "colorGradientNoColor": "colorGradientNoColor"; "flatColorPickerNoColor": "flatColorPickerNoColor"; "colorPickerNoColor": "colorPickerNoColor"; "colorGradientHandle": "colorGradientHandle"; "clearButton": "clearButton"; "hueSliderHandle": "hueSliderHandle"; "opacitySliderHandle": "opacitySliderHandle"; "hexInputPlaceholder": "hexInputPlaceholder"; "redInputPlaceholder": "redInputPlaceholder"; "greenInputPlaceholder": "greenInputPlaceholder"; "blueInputPlaceholder": "blueInputPlaceholder"; "alphaInputPlaceholder": "alphaInputPlaceholder"; "redChannelLabel": "redChannelLabel"; "greenChannelLabel": "greenChannelLabel"; "blueChannelLabel": "blueChannelLabel"; "alphaChannelLabel": "alphaChannelLabel"; "passContrast": "passContrast"; "failContrast": "failContrast"; "contrastRatio": "contrastRatio"; "previewColor": "previewColor"; "revertSelection": "revertSelection"; "gradientView": "gradientView"; "paletteView": "paletteView"; "formatButton": "formatButton"; "applyButton": "applyButton"; "cancelButton": "cancelButton"; }, {}, never>;
105
121
  }
@@ -20,4 +20,16 @@ export interface GradientSettings {
20
20
  * Determines the delay time (in milliseconds) before the ColorGradient value is changed on handle drag. A value of 0 indicates no delay.
21
21
  */
22
22
  delay?: number;
23
+ /**
24
+ * Determines the step (in pixels) when moving the gradient drag handle using the keyboard arrow keys.
25
+ *
26
+ * @default 5
27
+ */
28
+ gradientSliderStep?: number;
29
+ /**
30
+ * Determines the step (in pixels) when moving the gradient drag handle using the keyboard arrow keys while holding the shift key.
31
+ *
32
+ * @default 2
33
+ */
34
+ gradientSliderSmallStep?: number;
23
35
  }
@@ -9,24 +9,25 @@ import * as i3 from "./colorpicker/color-gradient.component";
9
9
  import * as i4 from "./colorpicker/flatcolorpicker.component";
10
10
  import * as i5 from "./colorpicker/localization/localized-colorpicker-messages.directive";
11
11
  import * as i6 from "./colorpicker/localization/custom-messages.component";
12
- import * as i7 from "./colorpicker/color-input.component";
13
- import * as i8 from "./colorpicker/focus-on-dom-ready.directive";
14
- import * as i9 from "./colorpicker/contrast.component";
15
- import * as i10 from "./colorpicker/contrast-validation.component";
16
- import * as i11 from "./colorpicker/flatcolorpicker-header.component";
17
- import * as i12 from "./colorpicker/flatcolorpicker-actions.component";
18
- import * as i13 from "./colorpicker/color-contrast-svg.component";
19
- import * as i14 from "./slider.module";
20
- import * as i15 from "./numerictextbox.module";
21
- import * as i16 from "@angular/common";
22
- import * as i17 from "@progress/kendo-angular-popup";
23
- import * as i18 from "@progress/kendo-angular-common";
12
+ import * as i7 from "./colorpicker/color-gradient-numeric-label.directive";
13
+ import * as i8 from "./colorpicker/color-input.component";
14
+ import * as i9 from "./colorpicker/focus-on-dom-ready.directive";
15
+ import * as i10 from "./colorpicker/contrast.component";
16
+ import * as i11 from "./colorpicker/contrast-validation.component";
17
+ import * as i12 from "./colorpicker/flatcolorpicker-header.component";
18
+ import * as i13 from "./colorpicker/flatcolorpicker-actions.component";
19
+ import * as i14 from "./colorpicker/color-contrast-svg.component";
20
+ import * as i15 from "./slider.module";
21
+ import * as i16 from "./numerictextbox.module";
22
+ import * as i17 from "@angular/common";
23
+ import * as i18 from "@progress/kendo-angular-popup";
24
+ import * as i19 from "@progress/kendo-angular-common";
24
25
  /**
25
26
  * Represents the [NgModule]({{ site.data.urls.angular['ngmoduleapi'] }})
26
27
  * definition for the ColorPicker.
27
28
  */
28
29
  export declare class ColorPickerModule {
29
30
  static ɵfac: i0.ɵɵFactoryDeclaration<ColorPickerModule, never>;
30
- static ɵmod: i0.ɵɵNgModuleDeclaration<ColorPickerModule, [typeof i1.ColorPickerComponent, typeof i2.ColorPaletteComponent, typeof i3.ColorGradientComponent, typeof i4.FlatColorPickerComponent, typeof i5.LocalizedColorPickerMessagesDirective, typeof i6.ColorPickerCustomMessagesComponent, typeof i7.ColorInputComponent, typeof i8.FocusOnDomReadyDirective, typeof i9.ContrastComponent, typeof i10.ContrastValidationComponent, typeof i11.FlatColorPickerHeaderComponent, typeof i12.FlatColorPickerActionButtonsComponent, typeof i13.ColorContrastSvgComponent], [typeof i14.SliderModule, typeof i15.NumericTextBoxModule, typeof i16.CommonModule, typeof i17.PopupModule, typeof i18.DraggableModule], [typeof i1.ColorPickerComponent, typeof i2.ColorPaletteComponent, typeof i3.ColorGradientComponent, typeof i4.FlatColorPickerComponent, typeof i5.LocalizedColorPickerMessagesDirective, typeof i6.ColorPickerCustomMessagesComponent]>;
31
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ColorPickerModule, [typeof i1.ColorPickerComponent, typeof i2.ColorPaletteComponent, typeof i3.ColorGradientComponent, typeof i4.FlatColorPickerComponent, typeof i5.LocalizedColorPickerMessagesDirective, typeof i6.ColorPickerCustomMessagesComponent, typeof i7.NumericLabelDirective, typeof i8.ColorInputComponent, typeof i9.FocusOnDomReadyDirective, typeof i10.ContrastComponent, typeof i11.ContrastValidationComponent, typeof i12.FlatColorPickerHeaderComponent, typeof i13.FlatColorPickerActionButtonsComponent, typeof i14.ColorContrastSvgComponent], [typeof i15.SliderModule, typeof i16.NumericTextBoxModule, typeof i17.CommonModule, typeof i18.PopupModule, typeof i19.DraggableModule], [typeof i1.ColorPickerComponent, typeof i2.ColorPaletteComponent, typeof i3.ColorGradientComponent, typeof i4.FlatColorPickerComponent, typeof i5.LocalizedColorPickerMessagesDirective, typeof i6.ColorPickerCustomMessagesComponent]>;
31
32
  static ɵinj: i0.ɵɵInjectorDeclaration<ColorPickerModule>;
32
33
  }
@@ -0,0 +1,29 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { Directive, Input } from '@angular/core';
6
+ import * as i0 from "@angular/core";
7
+ import * as i1 from "./../numerictextbox/numerictextbox.component";
8
+ /**
9
+ * @hidden
10
+ */
11
+ export class NumericLabelDirective {
12
+ constructor(host) {
13
+ this.host = host;
14
+ }
15
+ ngOnInit() {
16
+ const localizationToken = `${this.kendoAdditionalNumericLabel}ChannelLabel`;
17
+ this.host.numericInput.nativeElement.setAttribute('aria-label', this.localizationService.get(localizationToken));
18
+ }
19
+ }
20
+ NumericLabelDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: NumericLabelDirective, deps: [{ token: i1.NumericTextBoxComponent }], target: i0.ɵɵFactoryTarget.Directive });
21
+ NumericLabelDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: NumericLabelDirective, selector: "[kendoAdditionalNumericLabel]", inputs: { kendoAdditionalNumericLabel: "kendoAdditionalNumericLabel", localizationService: "localizationService" }, ngImport: i0 });
22
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: NumericLabelDirective, decorators: [{
23
+ type: Directive,
24
+ args: [{ selector: '[kendoAdditionalNumericLabel]' }]
25
+ }], ctorParameters: function () { return [{ type: i1.NumericTextBoxComponent }]; }, propDecorators: { kendoAdditionalNumericLabel: [{
26
+ type: Input
27
+ }], localizationService: [{
28
+ type: Input
29
+ }] } });