@progress/kendo-angular-inputs 18.1.0-develop.9 → 18.1.1-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/colorpicker/adaptiveness/adaptive-close-button.component.d.ts +20 -0
- package/colorpicker/adaptiveness/adaptive-renderer.component.d.ts +38 -0
- package/colorpicker/color-gradient-text-label.directive.d.ts +19 -0
- package/colorpicker/color-gradient.component.d.ts +19 -1
- package/colorpicker/color-input.component.d.ts +15 -3
- package/colorpicker/color-palette.component.d.ts +16 -6
- package/colorpicker/colorpicker.component.d.ts +55 -8
- package/colorpicker/flatcolorpicker-actions.component.d.ts +3 -1
- package/colorpicker/flatcolorpicker-header.component.d.ts +3 -1
- package/colorpicker/flatcolorpicker.component.d.ts +19 -1
- package/colorpicker/localization/messages.d.ts +9 -1
- package/colorpicker/models/adaptive-mode.d.ts +23 -0
- package/esm2022/colorpicker/adaptiveness/adaptive-close-button.component.mjs +62 -0
- package/esm2022/colorpicker/adaptiveness/adaptive-renderer.component.mjs +205 -0
- package/esm2022/colorpicker/color-gradient-text-label.directive.mjs +34 -0
- package/esm2022/colorpicker/color-gradient.component.mjs +75 -17
- package/esm2022/colorpicker/color-input.component.mjs +56 -23
- package/esm2022/colorpicker/color-palette.component.mjs +45 -15
- package/esm2022/colorpicker/colorpicker.component.mjs +182 -41
- package/esm2022/colorpicker/flatcolorpicker-actions.component.mjs +22 -7
- package/esm2022/colorpicker/flatcolorpicker-header.component.mjs +8 -3
- package/esm2022/colorpicker/flatcolorpicker.component.mjs +72 -17
- package/esm2022/colorpicker/localization/messages.mjs +13 -1
- package/esm2022/colorpicker/models/adaptive-mode.mjs +27 -0
- package/esm2022/colorpicker/services/flatcolorpicker.service.mjs +3 -3
- package/esm2022/colorpicker.module.mjs +3 -2
- package/esm2022/inputs.module.mjs +3 -2
- package/esm2022/otpinput/otpinput.component.mjs +75 -45
- package/esm2022/package-metadata.mjs +2 -2
- package/fesm2022/progress-kendo-angular-inputs.mjs +9170 -8497
- package/otpinput/models/separator-icon.d.ts +9 -3
- package/otpinput/otpinput.component.d.ts +4 -7
- package/package.json +13 -11
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { EventEmitter } from '@angular/core';
|
|
6
|
+
import { ButtonThemeColor } from '@progress/kendo-angular-buttons';
|
|
7
|
+
import { SVGIcon } from '@progress/kendo-angular-icons';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
export declare class AdaptiveCloseButtonComponent {
|
|
13
|
+
title: string;
|
|
14
|
+
icon: string;
|
|
15
|
+
svgIcon: SVGIcon;
|
|
16
|
+
color: ButtonThemeColor;
|
|
17
|
+
close: EventEmitter<any>;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AdaptiveCloseButtonComponent, never>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AdaptiveCloseButtonComponent, "kendo-adaptive-close-button", never, { "title": { "alias": "title"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "svgIcon": { "alias": "svgIcon"; "required": false; }; "color": { "alias": "color"; "required": false; }; }, { "close": "close"; }, never, never, true, never>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { EventEmitter, TemplateRef } from '@angular/core';
|
|
6
|
+
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
7
|
+
import { SVGIcon } from '@progress/kendo-angular-icons';
|
|
8
|
+
import { ActionSheetComponent } from '@progress/kendo-angular-navigation';
|
|
9
|
+
import { ButtonComponent } from '@progress/kendo-angular-buttons';
|
|
10
|
+
import { TextBoxComponent } from '../../textbox/textbox.component';
|
|
11
|
+
import * as i0 from "@angular/core";
|
|
12
|
+
/**
|
|
13
|
+
* @hidden
|
|
14
|
+
*/
|
|
15
|
+
export declare class AdaptiveRendererComponent {
|
|
16
|
+
localization: LocalizationService;
|
|
17
|
+
title: string;
|
|
18
|
+
subtitle: string;
|
|
19
|
+
actionSheetTemplate: TemplateRef<any>;
|
|
20
|
+
isActionSheetExpanded: boolean;
|
|
21
|
+
preview: boolean;
|
|
22
|
+
actionSheetClose: EventEmitter<any>;
|
|
23
|
+
onExpand: EventEmitter<any>;
|
|
24
|
+
onCollapse: EventEmitter<any>;
|
|
25
|
+
onApply: EventEmitter<any>;
|
|
26
|
+
onCancel: EventEmitter<any>;
|
|
27
|
+
actionSheet: ActionSheetComponent;
|
|
28
|
+
actionSheetSearchBar: TextBoxComponent;
|
|
29
|
+
cancelButton: ButtonComponent;
|
|
30
|
+
applyButton: ButtonComponent;
|
|
31
|
+
constructor(localization: LocalizationService);
|
|
32
|
+
animationDuration: number;
|
|
33
|
+
xIcon: SVGIcon;
|
|
34
|
+
checkIcon: SVGIcon;
|
|
35
|
+
messageFor(key: string): string;
|
|
36
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AdaptiveRendererComponent, never>;
|
|
37
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AdaptiveRendererComponent, "kendo-adaptive-renderer", never, { "title": { "alias": "title"; "required": false; }; "subtitle": { "alias": "subtitle"; "required": false; }; "actionSheetTemplate": { "alias": "actionSheetTemplate"; "required": false; }; "isActionSheetExpanded": { "alias": "isActionSheetExpanded"; "required": false; }; "preview": { "alias": "preview"; "required": false; }; }, { "actionSheetClose": "actionSheetClose"; "onExpand": "onExpand"; "onCollapse": "onCollapse"; "onApply": "onApply"; "onCancel": "onCancel"; }, never, never, true, never>;
|
|
38
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2025 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, Renderer2 } from '@angular/core';
|
|
6
|
+
import { TextBoxComponent } from '../textbox/textbox.component';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
/**
|
|
9
|
+
* @hidden
|
|
10
|
+
*/
|
|
11
|
+
export declare class TextLabelDirective implements OnInit {
|
|
12
|
+
private textBox;
|
|
13
|
+
private renderer;
|
|
14
|
+
focusableId: any;
|
|
15
|
+
constructor(textBox: TextBoxComponent, renderer: Renderer2);
|
|
16
|
+
ngOnInit(): void;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TextLabelDirective, never>;
|
|
18
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TextLabelDirective, "[kendoTextLabel]", never, { "focusableId": { "alias": "focusableId"; "required": false; }; }, {}, never, never, true, never>;
|
|
19
|
+
}
|
|
@@ -10,6 +10,7 @@ import { OutputFormat, HSVA } from './models';
|
|
|
10
10
|
import { KendoDragEvent } from './events/kendo-drag-event';
|
|
11
11
|
import { ColorInputComponent } from './color-input.component';
|
|
12
12
|
import { SVGIcon } from '@progress/kendo-angular-icons';
|
|
13
|
+
import { InputSize } from '../common/models';
|
|
13
14
|
import * as i0 from "@angular/core";
|
|
14
15
|
/**
|
|
15
16
|
* The ColorGradient component enables smooth color transitions and provides options for selecting specific colors over the drag handle.
|
|
@@ -43,6 +44,10 @@ export declare class ColorGradientComponent implements OnInit, OnChanges, OnDest
|
|
|
43
44
|
* @hidden
|
|
44
45
|
*/
|
|
45
46
|
focusHandler(ev: any): void;
|
|
47
|
+
/**
|
|
48
|
+
* @hidden
|
|
49
|
+
*/
|
|
50
|
+
adaptiveMode: boolean;
|
|
46
51
|
/**
|
|
47
52
|
* @hidden
|
|
48
53
|
*/
|
|
@@ -53,6 +58,17 @@ export declare class ColorGradientComponent implements OnInit, OnChanges, OnDest
|
|
|
53
58
|
* @default true
|
|
54
59
|
*/
|
|
55
60
|
opacity: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* The size property specifies the padding of the ColorGradient internal elements.
|
|
63
|
+
*
|
|
64
|
+
* The possible values are:
|
|
65
|
+
* * `small`
|
|
66
|
+
* * `medium` (default)
|
|
67
|
+
* * `large`
|
|
68
|
+
* * `none`
|
|
69
|
+
*/
|
|
70
|
+
set size(size: InputSize);
|
|
71
|
+
get size(): InputSize;
|
|
56
72
|
/**
|
|
57
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).
|
|
58
74
|
*
|
|
@@ -160,6 +176,7 @@ export declare class ColorGradientComponent implements OnInit, OnChanges, OnDest
|
|
|
160
176
|
private listeners;
|
|
161
177
|
private hueSliderTouched;
|
|
162
178
|
private alphaSliderTouched;
|
|
179
|
+
private _size;
|
|
163
180
|
private updateValues;
|
|
164
181
|
private changeRequestsSubscription;
|
|
165
182
|
private dynamicRTLSubscription;
|
|
@@ -276,6 +293,7 @@ export declare class ColorGradientComponent implements OnInit, OnChanges, OnDest
|
|
|
276
293
|
private addEventListeners;
|
|
277
294
|
private subscribeChanges;
|
|
278
295
|
private unsubscribeChanges;
|
|
296
|
+
private handleClasses;
|
|
279
297
|
static ɵfac: i0.ɵɵFactoryDeclaration<ColorGradientComponent, never>;
|
|
280
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ColorGradientComponent, "kendo-colorgradient", ["kendoColorGradient"], { "id": { "alias": "id"; "required": false; }; "opacity": { "alias": "opacity"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "clearButton": { "alias": "clearButton"; "required": false; }; "delay": { "alias": "delay"; "required": false; }; "value": { "alias": "value"; "required": false; }; "contrastTool": { "alias": "contrastTool"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "format": { "alias": "format"; "required": false; }; "gradientSliderStep": { "alias": "gradientSliderStep"; "required": false; }; "gradientSliderSmallStep": { "alias": "gradientSliderSmallStep"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
|
|
298
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ColorGradientComponent, "kendo-colorgradient", ["kendoColorGradient"], { "adaptiveMode": { "alias": "adaptiveMode"; "required": false; }; "id": { "alias": "id"; "required": false; }; "opacity": { "alias": "opacity"; "required": false; }; "size": { "alias": "size"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "clearButton": { "alias": "clearButton"; "required": false; }; "delay": { "alias": "delay"; "required": false; }; "value": { "alias": "value"; "required": false; }; "contrastTool": { "alias": "contrastTool"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "format": { "alias": "format"; "required": false; }; "gradientSliderStep": { "alias": "gradientSliderStep"; "required": false; }; "gradientSliderSmallStep": { "alias": "gradientSliderSmallStep"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
|
|
281
299
|
}
|
|
@@ -2,11 +2,12 @@
|
|
|
2
2
|
* Copyright © 2025 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 { OnChanges, SimpleChanges, EventEmitter, ElementRef, AfterViewInit, Renderer2 } from '@angular/core';
|
|
5
|
+
import { OnChanges, SimpleChanges, EventEmitter, ElementRef, AfterViewInit, Renderer2, ChangeDetectorRef } from '@angular/core';
|
|
6
6
|
import { RGBA } from './models';
|
|
7
7
|
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
8
8
|
import { NumericTextBoxComponent } from './../numerictextbox/numerictextbox.component';
|
|
9
9
|
import { SVGIcon } from '@progress/kendo-svg-icons';
|
|
10
|
+
import { InputSize } from '../common/models';
|
|
10
11
|
import * as i0 from "@angular/core";
|
|
11
12
|
/**
|
|
12
13
|
* @hidden
|
|
@@ -14,6 +15,7 @@ import * as i0 from "@angular/core";
|
|
|
14
15
|
export declare class ColorInputComponent implements AfterViewInit, OnChanges {
|
|
15
16
|
private host;
|
|
16
17
|
private renderer;
|
|
18
|
+
private cdr;
|
|
17
19
|
localizationService: LocalizationService;
|
|
18
20
|
/**
|
|
19
21
|
* The id of the hex input.
|
|
@@ -23,6 +25,16 @@ export declare class ColorInputComponent implements AfterViewInit, OnChanges {
|
|
|
23
25
|
* The color format view.
|
|
24
26
|
*/
|
|
25
27
|
formatView: string;
|
|
28
|
+
/**
|
|
29
|
+
* The size property specifies the padding of the ColorInput.
|
|
30
|
+
*
|
|
31
|
+
* The possible values are:
|
|
32
|
+
* * `small`
|
|
33
|
+
* * `medium` (default)
|
|
34
|
+
* * `large`
|
|
35
|
+
* * `none`
|
|
36
|
+
*/
|
|
37
|
+
size: InputSize;
|
|
26
38
|
/**
|
|
27
39
|
* The inputs tabindex.
|
|
28
40
|
*/
|
|
@@ -77,7 +89,7 @@ export declare class ColorInputComponent implements AfterViewInit, OnChanges {
|
|
|
77
89
|
*/
|
|
78
90
|
caretAltExpandIcon: SVGIcon;
|
|
79
91
|
private subscriptions;
|
|
80
|
-
constructor(host: ElementRef, renderer: Renderer2, localizationService: LocalizationService);
|
|
92
|
+
constructor(host: ElementRef, renderer: Renderer2, cdr: ChangeDetectorRef, localizationService: LocalizationService);
|
|
81
93
|
ngAfterViewInit(): void;
|
|
82
94
|
ngOnDestroy(): void;
|
|
83
95
|
ngOnChanges(changes: SimpleChanges): void;
|
|
@@ -93,5 +105,5 @@ export declare class ColorInputComponent implements AfterViewInit, OnChanges {
|
|
|
93
105
|
private initDomEvents;
|
|
94
106
|
private lastInput;
|
|
95
107
|
static ɵfac: i0.ɵɵFactoryDeclaration<ColorInputComponent, never>;
|
|
96
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ColorInputComponent, "kendo-colorinput", never, { "focusableId": { "alias": "focusableId"; "required": false; }; "formatView": { "alias": "formatView"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "value": { "alias": "value"; "required": false; }; "opacity": { "alias": "opacity"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; }, { "valueChange": "valueChange"; "tabOut": "tabOut"; }, never, never, true, never>;
|
|
108
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ColorInputComponent, "kendo-colorinput", never, { "focusableId": { "alias": "focusableId"; "required": false; }; "formatView": { "alias": "formatView"; "required": false; }; "size": { "alias": "size"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "value": { "alias": "value"; "required": false; }; "opacity": { "alias": "opacity"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; }, { "valueChange": "valueChange"; "tabOut": "tabOut"; }, never, never, true, never>;
|
|
97
109
|
}
|
|
@@ -7,6 +7,7 @@ import { ControlValueAccessor } from '@angular/forms';
|
|
|
7
7
|
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
8
8
|
import { TileSize, OutputFormat, TableCell } from './models';
|
|
9
9
|
import { ColorPaletteService } from './services/color-palette.service';
|
|
10
|
+
import { InputSize } from '../common/models';
|
|
10
11
|
import * as i0 from "@angular/core";
|
|
11
12
|
/**
|
|
12
13
|
* The ColorPalette component provides a set of predefined palette presets and enables you to implement a custom color palette.
|
|
@@ -71,6 +72,17 @@ export declare class ColorPaletteComponent implements OnInit, AfterViewInit, OnD
|
|
|
71
72
|
*/
|
|
72
73
|
set palette(value: string | Array<string>);
|
|
73
74
|
get palette(): string | Array<string>;
|
|
75
|
+
/**
|
|
76
|
+
* The size property specifies the padding of the ColorPalette internal elements.
|
|
77
|
+
*
|
|
78
|
+
* The possible values are:
|
|
79
|
+
* * `small`
|
|
80
|
+
* * `medium` (default)
|
|
81
|
+
* * `large`
|
|
82
|
+
* * `none`
|
|
83
|
+
*/
|
|
84
|
+
set size(size: InputSize);
|
|
85
|
+
get size(): InputSize;
|
|
74
86
|
/**
|
|
75
87
|
* Specifies the [tabindex](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) of the component.
|
|
76
88
|
*/
|
|
@@ -87,11 +99,7 @@ export declare class ColorPaletteComponent implements OnInit, AfterViewInit, OnD
|
|
|
87
99
|
*/
|
|
88
100
|
readonly: boolean;
|
|
89
101
|
/**
|
|
90
|
-
* Specifies the size of a color cell.
|
|
91
|
-
*
|
|
92
|
-
* The possible values are:
|
|
93
|
-
* * (Default) `tileSize = 24`
|
|
94
|
-
* * `{ width: number, height: number }`
|
|
102
|
+
* Specifies the size of a color cell. The default tile size depends on the `size` of the component.
|
|
95
103
|
*/
|
|
96
104
|
tileSize: number | TileSize;
|
|
97
105
|
/**
|
|
@@ -153,6 +161,7 @@ export declare class ColorPaletteComponent implements OnInit, AfterViewInit, OnD
|
|
|
153
161
|
*/
|
|
154
162
|
uniqueId: string;
|
|
155
163
|
private selection;
|
|
164
|
+
private _size;
|
|
156
165
|
private _value;
|
|
157
166
|
private _columns;
|
|
158
167
|
private _palette;
|
|
@@ -216,8 +225,9 @@ export declare class ColorPaletteComponent implements OnInit, AfterViewInit, OnD
|
|
|
216
225
|
private handleCellNavigation;
|
|
217
226
|
private setHostElementAriaLabel;
|
|
218
227
|
private handleEnter;
|
|
228
|
+
private handleClasses;
|
|
219
229
|
private notifyNgTouched;
|
|
220
230
|
private notifyNgChanged;
|
|
221
231
|
static ɵfac: i0.ɵɵFactoryDeclaration<ColorPaletteComponent, never>;
|
|
222
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ColorPaletteComponent, "kendo-colorpalette", ["kendoColorPalette"], { "id": { "alias": "id"; "required": false; }; "format": { "alias": "format"; "required": false; }; "value": { "alias": "value"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "palette": { "alias": "palette"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "tileSize": { "alias": "tileSize"; "required": false; }; }, { "selectionChange": "selectionChange"; "valueChange": "valueChange"; "cellSelection": "cellSelection"; }, never, never, true, never>;
|
|
232
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ColorPaletteComponent, "kendo-colorpalette", ["kendoColorPalette"], { "id": { "alias": "id"; "required": false; }; "format": { "alias": "format"; "required": false; }; "value": { "alias": "value"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "palette": { "alias": "palette"; "required": false; }; "size": { "alias": "size"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "tileSize": { "alias": "tileSize"; "required": false; }; }, { "selectionChange": "selectionChange"; "valueChange": "valueChange"; "cellSelection": "cellSelection"; }, never, never, true, never>;
|
|
223
233
|
}
|
|
@@ -5,11 +5,15 @@
|
|
|
5
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
|
+
import { AdaptiveService, AdaptiveSize } from '@progress/kendo-angular-utils';
|
|
9
|
+
import { ActionSheetComponent } from '@progress/kendo-angular-navigation';
|
|
8
10
|
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
9
11
|
import { PopupSettings, PaletteSettings, OutputFormat, ColorPickerView, GradientSettings, ColorPickerActionsLayout } from './models';
|
|
10
12
|
import { ActiveColorClickEvent, ColorPickerCancelEvent, ColorPickerCloseEvent, ColorPickerOpenEvent } from './events';
|
|
11
13
|
import { InputFillMode, InputRounded, InputSize } from '../common/models';
|
|
12
14
|
import { SVGIcon } from '@progress/kendo-angular-icons';
|
|
15
|
+
import { AdaptiveMode } from './models/adaptive-mode';
|
|
16
|
+
import { AdaptiveRendererComponent } from './adaptiveness/adaptive-renderer.component';
|
|
13
17
|
import * as i0 from "@angular/core";
|
|
14
18
|
/**
|
|
15
19
|
* Represents the [Kendo UI ColorPicker component for Angular]({% slug overview_colorpicker %}).
|
|
@@ -25,6 +29,7 @@ export declare class ColorPickerComponent implements OnInit, AfterViewInit, OnCh
|
|
|
25
29
|
private ngZone;
|
|
26
30
|
private renderer;
|
|
27
31
|
private injector;
|
|
32
|
+
private adaptiveService;
|
|
28
33
|
hostClasses: boolean;
|
|
29
34
|
get focusedClass(): boolean;
|
|
30
35
|
get disabledClass(): boolean;
|
|
@@ -49,6 +54,10 @@ export declare class ColorPickerComponent implements OnInit, AfterViewInit, OnCh
|
|
|
49
54
|
*/
|
|
50
55
|
set view(view: ColorPickerView);
|
|
51
56
|
get view(): ColorPickerView;
|
|
57
|
+
/**
|
|
58
|
+
* Enables or disables the adaptive mode. By default, adaptive rendering is disabled.
|
|
59
|
+
*/
|
|
60
|
+
adaptiveMode: AdaptiveMode;
|
|
52
61
|
/**
|
|
53
62
|
* Sets the initially active view in the popup. The property supports two-way binding.
|
|
54
63
|
*
|
|
@@ -198,13 +207,13 @@ export declare class ColorPickerComponent implements OnInit, AfterViewInit, OnCh
|
|
|
198
207
|
*/
|
|
199
208
|
valueChange: EventEmitter<any>;
|
|
200
209
|
/**
|
|
201
|
-
* Fires each time the
|
|
202
|
-
* This event is preventable. If you cancel it, the
|
|
210
|
+
* Fires each time the Popup (or ActionSheet in adaptive mode) is about to open.
|
|
211
|
+
* This event is preventable. If you cancel it, the Popup (or the ActionSheet) will remain closed.
|
|
203
212
|
*/
|
|
204
213
|
open: EventEmitter<ColorPickerOpenEvent>;
|
|
205
214
|
/**
|
|
206
|
-
* Fires each time the
|
|
207
|
-
* This event is preventable. If you cancel it, the
|
|
215
|
+
* Fires each time the Popup (or ActionSheet in adaptive mode) is about to close.
|
|
216
|
+
* This event is preventable. If you cancel it, the Popup (or the ActionSheet) will remain open.
|
|
208
217
|
*/
|
|
209
218
|
close: EventEmitter<ColorPickerCloseEvent>;
|
|
210
219
|
/**
|
|
@@ -243,13 +252,33 @@ export declare class ColorPickerComponent implements OnInit, AfterViewInit, OnCh
|
|
|
243
252
|
*/
|
|
244
253
|
isFocused: boolean;
|
|
245
254
|
/**
|
|
246
|
-
|
|
255
|
+
* @hidden
|
|
256
|
+
*/
|
|
257
|
+
windowSize: AdaptiveSize;
|
|
258
|
+
/**
|
|
259
|
+
* Returns the current open state. Returns `true` if the Popup (or ActionSheet in adaptive mode) is currently open.
|
|
247
260
|
*/
|
|
248
261
|
get isOpen(): boolean;
|
|
249
262
|
/**
|
|
250
263
|
* @hidden
|
|
251
264
|
*/
|
|
252
265
|
get customIconStyles(): string;
|
|
266
|
+
/**
|
|
267
|
+
* @hidden
|
|
268
|
+
*/
|
|
269
|
+
get isAdaptiveModeEnabled(): boolean;
|
|
270
|
+
/**
|
|
271
|
+
* @hidden
|
|
272
|
+
*/
|
|
273
|
+
get isAdaptive(): boolean;
|
|
274
|
+
/**
|
|
275
|
+
* @hidden
|
|
276
|
+
*/
|
|
277
|
+
get actionSheet(): ActionSheetComponent;
|
|
278
|
+
/**
|
|
279
|
+
* @hidden
|
|
280
|
+
*/
|
|
281
|
+
get isActionSheetExpanded(): boolean;
|
|
253
282
|
/**
|
|
254
283
|
* @hidden
|
|
255
284
|
*/
|
|
@@ -263,6 +292,10 @@ export declare class ColorPickerComponent implements OnInit, AfterViewInit, OnCh
|
|
|
263
292
|
private activeColor;
|
|
264
293
|
private popupTemplate;
|
|
265
294
|
private flatColorPicker;
|
|
295
|
+
/**
|
|
296
|
+
* @hidden
|
|
297
|
+
*/
|
|
298
|
+
adaptiveRenderer: AdaptiveRendererComponent;
|
|
266
299
|
/**
|
|
267
300
|
* @hidden
|
|
268
301
|
*/
|
|
@@ -282,11 +315,15 @@ export declare class ColorPickerComponent implements OnInit, AfterViewInit, OnCh
|
|
|
282
315
|
private popupSubs;
|
|
283
316
|
private colorPickerId;
|
|
284
317
|
private control;
|
|
285
|
-
constructor(host: ElementRef, popupService: PopupService, cdr: ChangeDetectorRef, localizationService: LocalizationService, ngZone: NgZone, renderer: Renderer2, injector: Injector);
|
|
318
|
+
constructor(host: ElementRef, popupService: PopupService, cdr: ChangeDetectorRef, localizationService: LocalizationService, ngZone: NgZone, renderer: Renderer2, injector: Injector, adaptiveService: AdaptiveService);
|
|
286
319
|
ngOnInit(): void;
|
|
287
320
|
ngAfterViewInit(): void;
|
|
288
321
|
ngOnChanges(changes: any): void;
|
|
289
322
|
ngOnDestroy(): void;
|
|
323
|
+
/**
|
|
324
|
+
* @hidden
|
|
325
|
+
*/
|
|
326
|
+
onResize(): void;
|
|
290
327
|
/**
|
|
291
328
|
* @hidden
|
|
292
329
|
*/
|
|
@@ -320,7 +357,7 @@ export declare class ColorPickerComponent implements OnInit, AfterViewInit, OnCh
|
|
|
320
357
|
*/
|
|
321
358
|
reset(): void;
|
|
322
359
|
/**
|
|
323
|
-
* Toggles the
|
|
360
|
+
* Toggles the Popup (or ActionSheet in adaptive mode) of the ColorPicker.
|
|
324
361
|
* Does not trigger the `open` and `close` events of the component.
|
|
325
362
|
*
|
|
326
363
|
* @param open An optional parameter. Specifies whether the popup will be opened or closed.
|
|
@@ -354,6 +391,14 @@ export declare class ColorPickerComponent implements OnInit, AfterViewInit, OnCh
|
|
|
354
391
|
* @hidden
|
|
355
392
|
*/
|
|
356
393
|
handleWrapperKeyDown(event: any): void;
|
|
394
|
+
/**
|
|
395
|
+
* @hidden
|
|
396
|
+
*/
|
|
397
|
+
onApply(): void;
|
|
398
|
+
/**
|
|
399
|
+
* @hidden
|
|
400
|
+
*/
|
|
401
|
+
onCancel(e: any): void;
|
|
357
402
|
/**
|
|
358
403
|
* @hidden
|
|
359
404
|
*/
|
|
@@ -368,6 +413,8 @@ export declare class ColorPickerComponent implements OnInit, AfterViewInit, OnCh
|
|
|
368
413
|
private popupBlurInvalid;
|
|
369
414
|
private toggleWithEvents;
|
|
370
415
|
private focusFirstElement;
|
|
416
|
+
private openActionSheet;
|
|
417
|
+
private closeActionSheet;
|
|
371
418
|
private openPopup;
|
|
372
419
|
private closePopup;
|
|
373
420
|
private get firstFocusableElement();
|
|
@@ -379,5 +426,5 @@ export declare class ColorPickerComponent implements OnInit, AfterViewInit, OnCh
|
|
|
379
426
|
private domFocusListener;
|
|
380
427
|
private handleHostId;
|
|
381
428
|
static ɵfac: i0.ɵɵFactoryDeclaration<ColorPickerComponent, never>;
|
|
382
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ColorPickerComponent, "kendo-colorpicker", ["kendoColorPicker"], { "views": { "alias": "views"; "required": false; }; "view": { "alias": "view"; "required": false; }; "activeView": { "alias": "activeView"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "format": { "alias": "format"; "required": false; }; "value": { "alias": "value"; "required": false; }; "popupSettings": { "alias": "popupSettings"; "required": false; }; "paletteSettings": { "alias": "paletteSettings"; "required": false; }; "gradientSettings": { "alias": "gradientSettings"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "iconClass": { "alias": "iconClass"; "required": false; }; "svgIcon": { "alias": "svgIcon"; "required": false; }; "clearButton": { "alias": "clearButton"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "preview": { "alias": "preview"; "required": false; }; "actionsLayout": { "alias": "actionsLayout"; "required": false; }; "size": { "alias": "size"; "required": false; }; "rounded": { "alias": "rounded"; "required": false; }; "fillMode": { "alias": "fillMode"; "required": false; }; }, { "valueChange": "valueChange"; "open": "open"; "close": "close"; "onFocus": "focus"; "onBlur": "blur"; "cancel": "cancel"; "activeColorClick": "activeColorClick"; "clearButtonClick": "clearButtonClick"; "activeViewChange": "activeViewChange"; }, never, never, true, never>;
|
|
429
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ColorPickerComponent, "kendo-colorpicker", ["kendoColorPicker"], { "views": { "alias": "views"; "required": false; }; "view": { "alias": "view"; "required": false; }; "adaptiveMode": { "alias": "adaptiveMode"; "required": false; }; "activeView": { "alias": "activeView"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "format": { "alias": "format"; "required": false; }; "value": { "alias": "value"; "required": false; }; "popupSettings": { "alias": "popupSettings"; "required": false; }; "paletteSettings": { "alias": "paletteSettings"; "required": false; }; "gradientSettings": { "alias": "gradientSettings"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "iconClass": { "alias": "iconClass"; "required": false; }; "svgIcon": { "alias": "svgIcon"; "required": false; }; "clearButton": { "alias": "clearButton"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "preview": { "alias": "preview"; "required": false; }; "actionsLayout": { "alias": "actionsLayout"; "required": false; }; "size": { "alias": "size"; "required": false; }; "rounded": { "alias": "rounded"; "required": false; }; "fillMode": { "alias": "fillMode"; "required": false; }; }, { "valueChange": "valueChange"; "open": "open"; "close": "close"; "onFocus": "focus"; "onBlur": "blur"; "cancel": "cancel"; "activeColorClick": "activeColorClick"; "clearButtonClick": "clearButtonClick"; "activeViewChange": "activeViewChange"; }, never, never, true, never>;
|
|
383
430
|
}
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { EventEmitter, ElementRef } from '@angular/core';
|
|
6
6
|
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
7
|
+
import { InputSize } from '../common/models';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
9
|
/**
|
|
9
10
|
* @hidden
|
|
@@ -12,6 +13,7 @@ export declare class FlatColorPickerActionButtonsComponent {
|
|
|
12
13
|
localizationService: LocalizationService;
|
|
13
14
|
hostClasses: boolean;
|
|
14
15
|
innerTabIndex: number;
|
|
16
|
+
size: InputSize;
|
|
15
17
|
actionButtonClick: EventEmitter<any>;
|
|
16
18
|
tabOut: EventEmitter<any>;
|
|
17
19
|
firstButton: ElementRef;
|
|
@@ -20,5 +22,5 @@ export declare class FlatColorPickerActionButtonsComponent {
|
|
|
20
22
|
getText(text: string): string;
|
|
21
23
|
onActionButtonClick(type: string, ev: any): void;
|
|
22
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<FlatColorPickerActionButtonsComponent, never>;
|
|
23
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FlatColorPickerActionButtonsComponent, "[kendoFlatColorPickerActionButtons]", never, { "innerTabIndex": { "alias": "innerTabIndex"; "required": false; }; }, { "actionButtonClick": "actionButtonClick"; "tabOut": "tabOut"; }, never, never, true, never>;
|
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FlatColorPickerActionButtonsComponent, "[kendoFlatColorPickerActionButtons]", never, { "innerTabIndex": { "alias": "innerTabIndex"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "actionButtonClick": "actionButtonClick"; "tabOut": "tabOut"; }, never, never, true, never>;
|
|
24
26
|
}
|
|
@@ -6,6 +6,7 @@ import { EventEmitter, QueryList, ElementRef, Renderer2, AfterViewInit } from '@
|
|
|
6
6
|
import { SVGIcon } from '@progress/kendo-svg-icons';
|
|
7
7
|
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
8
8
|
import { ColorPickerView } from './models';
|
|
9
|
+
import { InputSize } from '../common/models';
|
|
9
10
|
import * as i0 from "@angular/core";
|
|
10
11
|
/**
|
|
11
12
|
* @hidden
|
|
@@ -21,6 +22,7 @@ export declare class FlatColorPickerHeaderComponent implements AfterViewInit {
|
|
|
21
22
|
innerTabIndex: number;
|
|
22
23
|
value: string;
|
|
23
24
|
selection: string;
|
|
25
|
+
size: InputSize;
|
|
24
26
|
viewChange: EventEmitter<ColorPickerView>;
|
|
25
27
|
valuePaneClick: EventEmitter<any>;
|
|
26
28
|
clearButtonClick: EventEmitter<any>;
|
|
@@ -39,5 +41,5 @@ export declare class FlatColorPickerHeaderComponent implements AfterViewInit {
|
|
|
39
41
|
getText(text: string): string;
|
|
40
42
|
onHeaderTabOut(ev: any, index: number): void;
|
|
41
43
|
static ɵfac: i0.ɵɵFactoryDeclaration<FlatColorPickerHeaderComponent, never>;
|
|
42
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FlatColorPickerHeaderComponent, "[kendoFlatColorPickerHeader]", never, { "clearButton": { "alias": "clearButton"; "required": false; }; "activeView": { "alias": "activeView"; "required": false; }; "views": { "alias": "views"; "required": false; }; "preview": { "alias": "preview"; "required": false; }; "innerTabIndex": { "alias": "innerTabIndex"; "required": false; }; "value": { "alias": "value"; "required": false; }; "selection": { "alias": "selection"; "required": false; }; }, { "viewChange": "viewChange"; "valuePaneClick": "valuePaneClick"; "clearButtonClick": "clearButtonClick"; "tabOut": "tabOut"; }, never, never, true, never>;
|
|
44
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FlatColorPickerHeaderComponent, "[kendoFlatColorPickerHeader]", never, { "clearButton": { "alias": "clearButton"; "required": false; }; "activeView": { "alias": "activeView"; "required": false; }; "views": { "alias": "views"; "required": false; }; "preview": { "alias": "preview"; "required": false; }; "innerTabIndex": { "alias": "innerTabIndex"; "required": false; }; "value": { "alias": "value"; "required": false; }; "selection": { "alias": "selection"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "viewChange": "viewChange"; "valuePaneClick": "valuePaneClick"; "clearButtonClick": "clearButtonClick"; "tabOut": "tabOut"; }, never, never, true, never>;
|
|
43
45
|
}
|
|
@@ -12,6 +12,7 @@ import { ColorGradientComponent } from './color-gradient.component';
|
|
|
12
12
|
import { ColorPaletteComponent } from './color-palette.component';
|
|
13
13
|
import { FlatColorPickerHeaderComponent } from './flatcolorpicker-header.component';
|
|
14
14
|
import { FlatColorPickerActionButtonsComponent } from './flatcolorpicker-actions.component';
|
|
15
|
+
import { InputSize } from "../common/models";
|
|
15
16
|
import * as i0 from "@angular/core";
|
|
16
17
|
/**
|
|
17
18
|
* Represents the [Kendo UI FlatColorPicker component for Angular]({% slug overview_flatcolorpicker %}).
|
|
@@ -122,11 +123,26 @@ export declare class FlatColorPickerComponent implements OnInit, AfterViewInit,
|
|
|
122
123
|
*/
|
|
123
124
|
set gradientSettings(value: GradientSettings);
|
|
124
125
|
get gradientSettings(): GradientSettings;
|
|
126
|
+
/**
|
|
127
|
+
* @hidden
|
|
128
|
+
*/
|
|
129
|
+
adaptiveMode: boolean;
|
|
125
130
|
/**
|
|
126
131
|
* Configures the palette view.
|
|
127
132
|
*/
|
|
128
133
|
set paletteSettings(value: PaletteSettings);
|
|
129
134
|
get paletteSettings(): PaletteSettings;
|
|
135
|
+
/**
|
|
136
|
+
* The size property specifies the padding of the FlatColorPicker internal elements.
|
|
137
|
+
*
|
|
138
|
+
* The possible values are:
|
|
139
|
+
* * `small`
|
|
140
|
+
* * `medium` (default)
|
|
141
|
+
* * `large`
|
|
142
|
+
* * `none`
|
|
143
|
+
*/
|
|
144
|
+
set size(size: InputSize);
|
|
145
|
+
get size(): InputSize;
|
|
130
146
|
/**
|
|
131
147
|
* Fires each time the component value is changed.
|
|
132
148
|
*/
|
|
@@ -169,6 +185,7 @@ export declare class FlatColorPickerComponent implements OnInit, AfterViewInit,
|
|
|
169
185
|
private dynamicRTLSubscription;
|
|
170
186
|
private subscriptions;
|
|
171
187
|
private internalNavigation;
|
|
188
|
+
private _size;
|
|
172
189
|
private control;
|
|
173
190
|
/**
|
|
174
191
|
* @hidden
|
|
@@ -262,6 +279,7 @@ export declare class FlatColorPickerComponent implements OnInit, AfterViewInit,
|
|
|
262
279
|
private notifyNgTouched;
|
|
263
280
|
private initDomEvents;
|
|
264
281
|
private removeGradientAttributes;
|
|
282
|
+
private handleClasses;
|
|
265
283
|
static ɵfac: i0.ɵɵFactoryDeclaration<FlatColorPickerComponent, never>;
|
|
266
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FlatColorPickerComponent, "kendo-flatcolorpicker", ["kendoFlatColorPicker"], { "readonly": { "alias": "readonly"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "format": { "alias": "format"; "required": false; }; "value": { "alias": "value"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "clearButton": { "alias": "clearButton"; "required": false; }; "preview": { "alias": "preview"; "required": false; }; "actionsLayout": { "alias": "actionsLayout"; "required": false; }; "activeView": { "alias": "activeView"; "required": false; }; "views": { "alias": "views"; "required": false; }; "gradientSettings": { "alias": "gradientSettings"; "required": false; }; "paletteSettings": { "alias": "paletteSettings"; "required": false; }; }, { "valueChange": "valueChange"; "cancel": "cancel"; "activeViewChange": "activeViewChange"; "clearButtonClick": "clearButtonClick"; "actionButtonClick": "actionButtonClick"; }, never, never, true, never>;
|
|
284
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FlatColorPickerComponent, "kendo-flatcolorpicker", ["kendoFlatColorPicker"], { "readonly": { "alias": "readonly"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "format": { "alias": "format"; "required": false; }; "value": { "alias": "value"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "clearButton": { "alias": "clearButton"; "required": false; }; "preview": { "alias": "preview"; "required": false; }; "actionsLayout": { "alias": "actionsLayout"; "required": false; }; "activeView": { "alias": "activeView"; "required": false; }; "views": { "alias": "views"; "required": false; }; "gradientSettings": { "alias": "gradientSettings"; "required": false; }; "adaptiveMode": { "alias": "adaptiveMode"; "required": false; }; "paletteSettings": { "alias": "paletteSettings"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "valueChange": "valueChange"; "cancel": "cancel"; "activeViewChange": "activeViewChange"; "clearButtonClick": "clearButtonClick"; "actionButtonClick": "actionButtonClick"; }, never, never, true, never>;
|
|
267
285
|
}
|
|
@@ -116,6 +116,14 @@ export declare class ColorPickerMessages extends ComponentMessages {
|
|
|
116
116
|
* The message for the Cancel action button.
|
|
117
117
|
*/
|
|
118
118
|
cancelButton: string;
|
|
119
|
+
/**
|
|
120
|
+
* The title for the Close button in adaptive mode.
|
|
121
|
+
*/
|
|
122
|
+
closeButton: string;
|
|
123
|
+
/**
|
|
124
|
+
* The title for the ActionSheet when in adaptive mode.
|
|
125
|
+
*/
|
|
126
|
+
adaptiveTitle: string;
|
|
119
127
|
static ɵfac: i0.ɵɵFactoryDeclaration<ColorPickerMessages, never>;
|
|
120
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ColorPickerMessages, "kendo-colorpicker-messages-base", never, { "colorPaletteNoColor": { "alias": "colorPaletteNoColor"; "required": false; }; "colorGradientNoColor": { "alias": "colorGradientNoColor"; "required": false; }; "flatColorPickerNoColor": { "alias": "flatColorPickerNoColor"; "required": false; }; "colorPickerNoColor": { "alias": "colorPickerNoColor"; "required": false; }; "colorGradientHandle": { "alias": "colorGradientHandle"; "required": false; }; "clearButton": { "alias": "clearButton"; "required": false; }; "hueSliderHandle": { "alias": "hueSliderHandle"; "required": false; }; "opacitySliderHandle": { "alias": "opacitySliderHandle"; "required": false; }; "hexInputPlaceholder": { "alias": "hexInputPlaceholder"; "required": false; }; "redInputPlaceholder": { "alias": "redInputPlaceholder"; "required": false; }; "greenInputPlaceholder": { "alias": "greenInputPlaceholder"; "required": false; }; "blueInputPlaceholder": { "alias": "blueInputPlaceholder"; "required": false; }; "alphaInputPlaceholder": { "alias": "alphaInputPlaceholder"; "required": false; }; "redChannelLabel": { "alias": "redChannelLabel"; "required": false; }; "greenChannelLabel": { "alias": "greenChannelLabel"; "required": false; }; "blueChannelLabel": { "alias": "blueChannelLabel"; "required": false; }; "alphaChannelLabel": { "alias": "alphaChannelLabel"; "required": false; }; "passContrast": { "alias": "passContrast"; "required": false; }; "failContrast": { "alias": "failContrast"; "required": false; }; "contrastRatio": { "alias": "contrastRatio"; "required": false; }; "previewColor": { "alias": "previewColor"; "required": false; }; "revertSelection": { "alias": "revertSelection"; "required": false; }; "gradientView": { "alias": "gradientView"; "required": false; }; "paletteView": { "alias": "paletteView"; "required": false; }; "formatButton": { "alias": "formatButton"; "required": false; }; "applyButton": { "alias": "applyButton"; "required": false; }; "cancelButton": { "alias": "cancelButton"; "required": false; }; }, {}, never, never, false, never>;
|
|
128
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ColorPickerMessages, "kendo-colorpicker-messages-base", never, { "colorPaletteNoColor": { "alias": "colorPaletteNoColor"; "required": false; }; "colorGradientNoColor": { "alias": "colorGradientNoColor"; "required": false; }; "flatColorPickerNoColor": { "alias": "flatColorPickerNoColor"; "required": false; }; "colorPickerNoColor": { "alias": "colorPickerNoColor"; "required": false; }; "colorGradientHandle": { "alias": "colorGradientHandle"; "required": false; }; "clearButton": { "alias": "clearButton"; "required": false; }; "hueSliderHandle": { "alias": "hueSliderHandle"; "required": false; }; "opacitySliderHandle": { "alias": "opacitySliderHandle"; "required": false; }; "hexInputPlaceholder": { "alias": "hexInputPlaceholder"; "required": false; }; "redInputPlaceholder": { "alias": "redInputPlaceholder"; "required": false; }; "greenInputPlaceholder": { "alias": "greenInputPlaceholder"; "required": false; }; "blueInputPlaceholder": { "alias": "blueInputPlaceholder"; "required": false; }; "alphaInputPlaceholder": { "alias": "alphaInputPlaceholder"; "required": false; }; "redChannelLabel": { "alias": "redChannelLabel"; "required": false; }; "greenChannelLabel": { "alias": "greenChannelLabel"; "required": false; }; "blueChannelLabel": { "alias": "blueChannelLabel"; "required": false; }; "alphaChannelLabel": { "alias": "alphaChannelLabel"; "required": false; }; "passContrast": { "alias": "passContrast"; "required": false; }; "failContrast": { "alias": "failContrast"; "required": false; }; "contrastRatio": { "alias": "contrastRatio"; "required": false; }; "previewColor": { "alias": "previewColor"; "required": false; }; "revertSelection": { "alias": "revertSelection"; "required": false; }; "gradientView": { "alias": "gradientView"; "required": false; }; "paletteView": { "alias": "paletteView"; "required": false; }; "formatButton": { "alias": "formatButton"; "required": false; }; "applyButton": { "alias": "applyButton"; "required": false; }; "cancelButton": { "alias": "cancelButton"; "required": false; }; "closeButton": { "alias": "closeButton"; "required": false; }; "adaptiveTitle": { "alias": "adaptiveTitle"; "required": false; }; }, {}, never, never, false, never>;
|
|
121
129
|
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { Renderer2 } from "@angular/core";
|
|
6
|
+
import { ActionSheetComponent } from "@progress/kendo-angular-navigation";
|
|
7
|
+
import { AdaptiveSize } from "@progress/kendo-angular-utils";
|
|
8
|
+
/**
|
|
9
|
+
* Specifies the adaptive rendering of the component.
|
|
10
|
+
*
|
|
11
|
+
* The supported values are:
|
|
12
|
+
* * `none`—(default)
|
|
13
|
+
* * `auto`
|
|
14
|
+
*/
|
|
15
|
+
export type AdaptiveMode = 'none' | 'auto';
|
|
16
|
+
/**
|
|
17
|
+
* @hidden
|
|
18
|
+
*/
|
|
19
|
+
export declare const animationDuration = 300;
|
|
20
|
+
/**
|
|
21
|
+
* @hidden
|
|
22
|
+
*/
|
|
23
|
+
export declare const updateActionSheetAdaptiveAppearance: (actionSheet: ActionSheetComponent, windowSize: AdaptiveSize, renderer: Renderer2) => void;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { Component, Input, Output, EventEmitter } from '@angular/core';
|
|
6
|
+
import { ButtonComponent } from '@progress/kendo-angular-buttons';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
/**
|
|
9
|
+
* @hidden
|
|
10
|
+
*/
|
|
11
|
+
export class AdaptiveCloseButtonComponent {
|
|
12
|
+
title;
|
|
13
|
+
icon;
|
|
14
|
+
svgIcon;
|
|
15
|
+
color;
|
|
16
|
+
close = new EventEmitter();
|
|
17
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AdaptiveCloseButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
18
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: AdaptiveCloseButtonComponent, isStandalone: true, selector: "kendo-adaptive-close-button", inputs: { title: "title", icon: "icon", svgIcon: "svgIcon", color: "color" }, outputs: { close: "close" }, ngImport: i0, template: `
|
|
19
|
+
<button kendoButton
|
|
20
|
+
type="button"
|
|
21
|
+
[title]="title"
|
|
22
|
+
[icon]="icon"
|
|
23
|
+
[svgIcon]="svgIcon"
|
|
24
|
+
[themeColor]="color"
|
|
25
|
+
fillMode="flat"
|
|
26
|
+
size="large"
|
|
27
|
+
[tabIndex]="-1"
|
|
28
|
+
(click)="close.emit($event)"
|
|
29
|
+
></button>
|
|
30
|
+
`, isInline: true, dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }] });
|
|
31
|
+
}
|
|
32
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AdaptiveCloseButtonComponent, decorators: [{
|
|
33
|
+
type: Component,
|
|
34
|
+
args: [{
|
|
35
|
+
selector: 'kendo-adaptive-close-button',
|
|
36
|
+
template: `
|
|
37
|
+
<button kendoButton
|
|
38
|
+
type="button"
|
|
39
|
+
[title]="title"
|
|
40
|
+
[icon]="icon"
|
|
41
|
+
[svgIcon]="svgIcon"
|
|
42
|
+
[themeColor]="color"
|
|
43
|
+
fillMode="flat"
|
|
44
|
+
size="large"
|
|
45
|
+
[tabIndex]="-1"
|
|
46
|
+
(click)="close.emit($event)"
|
|
47
|
+
></button>
|
|
48
|
+
`,
|
|
49
|
+
standalone: true,
|
|
50
|
+
imports: [ButtonComponent]
|
|
51
|
+
}]
|
|
52
|
+
}], propDecorators: { title: [{
|
|
53
|
+
type: Input
|
|
54
|
+
}], icon: [{
|
|
55
|
+
type: Input
|
|
56
|
+
}], svgIcon: [{
|
|
57
|
+
type: Input
|
|
58
|
+
}], color: [{
|
|
59
|
+
type: Input
|
|
60
|
+
}], close: [{
|
|
61
|
+
type: Output
|
|
62
|
+
}] } });
|