@progress/kendo-angular-inputs 11.0.0-develop.94 → 11.0.0-develop.96
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/color-gradient.component.d.ts +5 -0
- package/colorpicker/color-input.component.d.ts +5 -0
- package/colorpicker/colorpicker.component.d.ts +18 -4
- package/colorpicker/contrast-validation.component.d.ts +3 -0
- package/colorpicker/contrast.component.d.ts +3 -0
- package/colorpicker/flatcolorpicker-header.component.d.ts +10 -3
- package/colorpicker.module.d.ts +3 -1
- package/esm2020/colorpicker/color-gradient.component.mjs +34 -17
- package/esm2020/colorpicker/color-input.component.mjs +29 -14
- package/esm2020/colorpicker/colorpicker.component.mjs +77 -18
- package/esm2020/colorpicker/contrast-validation.component.mjs +10 -6
- package/esm2020/colorpicker/contrast.component.mjs +13 -9
- package/esm2020/colorpicker/flatcolorpicker-header.component.mjs +54 -25
- package/esm2020/colorpicker.module.mjs +11 -3
- package/esm2020/numerictextbox/numerictextbox.component.mjs +47 -16
- package/esm2020/numerictextbox.module.mjs +4 -3
- package/esm2020/package-metadata.mjs +1 -1
- package/esm2020/signature/signature.component.mjs +17 -0
- package/esm2020/signature.module.mjs +7 -3
- package/esm2020/slider/slider.component.mjs +73 -42
- package/esm2020/slider.module.mjs +5 -3
- package/esm2020/textbox/textbox.component.mjs +92 -20
- package/esm2020/textbox.module.mjs +4 -3
- package/fesm2015/progress-kendo-angular-inputs.mjs +427 -157
- package/fesm2020/progress-kendo-angular-inputs.mjs +427 -157
- package/numerictextbox/numerictextbox.component.d.ts +9 -0
- package/numerictextbox.module.d.ts +2 -1
- package/package.json +9 -8
- package/schematics/ngAdd/index.js +4 -2
- package/signature/signature.component.d.ts +8 -0
- package/signature.module.d.ts +2 -1
- package/slider/slider.component.d.ts +17 -0
- package/slider.module.d.ts +4 -2
- package/textbox/textbox.component.d.ts +18 -1
- package/textbox.module.d.ts +4 -3
|
@@ -9,6 +9,7 @@ import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
|
9
9
|
import { OutputFormat, HSVA } from './models';
|
|
10
10
|
import { KendoDragEvent } from './events/kendo-drag-event';
|
|
11
11
|
import { ColorInputComponent } from './color-input.component';
|
|
12
|
+
import { SVGIcon } from '@progress/kendo-angular-icons';
|
|
12
13
|
import * as i0 from "@angular/core";
|
|
13
14
|
/**
|
|
14
15
|
* The ColorGradient component enables smooth color transitions and provides options for selecting specific colors over the drag handle.
|
|
@@ -149,6 +150,10 @@ export declare class ColorGradientComponent implements OnInit, OnChanges, OnDest
|
|
|
149
150
|
* @hidden
|
|
150
151
|
*/
|
|
151
152
|
internalNavigation: boolean;
|
|
153
|
+
/**
|
|
154
|
+
* @hidden
|
|
155
|
+
*/
|
|
156
|
+
dropletSlashIcon: SVGIcon;
|
|
152
157
|
private _value;
|
|
153
158
|
private _tabindex;
|
|
154
159
|
private _contrastTool;
|
|
@@ -6,6 +6,7 @@ import { OnChanges, SimpleChanges, EventEmitter, ElementRef, AfterViewInit, Rend
|
|
|
6
6
|
import { RGBA } from './models';
|
|
7
7
|
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
8
8
|
import { NumericTextBoxComponent } from './../numerictextbox/numerictextbox.component';
|
|
9
|
+
import { SVGIcon } from '@progress/kendo-svg-icons';
|
|
9
10
|
import * as i0 from "@angular/core";
|
|
10
11
|
/**
|
|
11
12
|
* @hidden
|
|
@@ -69,6 +70,10 @@ export declare class ColorInputComponent implements AfterViewInit, OnChanges {
|
|
|
69
70
|
* Indicates whether any of the rgba inputs have value.
|
|
70
71
|
*/
|
|
71
72
|
private get rgbaInputValid();
|
|
73
|
+
/**
|
|
74
|
+
* @hidden
|
|
75
|
+
*/
|
|
76
|
+
caretAltExpandIcon: SVGIcon;
|
|
72
77
|
private subscriptions;
|
|
73
78
|
constructor(host: ElementRef, renderer: Renderer2, localizationService: LocalizationService);
|
|
74
79
|
ngAfterViewInit(): void;
|
|
@@ -9,6 +9,7 @@ import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
|
9
9
|
import { PopupSettings, PaletteSettings, OutputFormat, ColorPickerView, GradientSettings, ColorPickerActionsLayout } from './models';
|
|
10
10
|
import { ActiveColorClickEvent, ColorPickerCancelEvent, ColorPickerCloseEvent, ColorPickerOpenEvent } from './events';
|
|
11
11
|
import { InputFillMode, InputRounded, InputSize } from '../common/models';
|
|
12
|
+
import { SVGIcon } from '@progress/kendo-angular-icons';
|
|
12
13
|
import * as i0 from "@angular/core";
|
|
13
14
|
/**
|
|
14
15
|
* Represents the [Kendo UI ColorPicker component for Angular]({% slug overview_colorpicker %}).
|
|
@@ -114,6 +115,12 @@ export declare class ColorPickerComponent implements OnInit, AfterViewInit, OnCh
|
|
|
114
115
|
iconClass: string | Array<string> | {
|
|
115
116
|
[key: string]: boolean;
|
|
116
117
|
};
|
|
118
|
+
/**
|
|
119
|
+
* Defines an SVGIcon to be rendered within the button.
|
|
120
|
+
* The input can take either an [existing Kendo SVG icon](slug:svgicon_list) or a custom one.
|
|
121
|
+
*/
|
|
122
|
+
set svgIcon(icon: SVGIcon);
|
|
123
|
+
get svgIcon(): SVGIcon;
|
|
117
124
|
/**
|
|
118
125
|
* Specifies whether the ColorPicker should display a 'Clear color' button.
|
|
119
126
|
*
|
|
@@ -237,9 +244,11 @@ export declare class ColorPickerComponent implements OnInit, AfterViewInit, OnCh
|
|
|
237
244
|
/**
|
|
238
245
|
* @hidden
|
|
239
246
|
*/
|
|
240
|
-
get
|
|
241
|
-
|
|
242
|
-
|
|
247
|
+
get customIconStyles(): string;
|
|
248
|
+
/**
|
|
249
|
+
* @hidden
|
|
250
|
+
*/
|
|
251
|
+
get iconStyles(): string;
|
|
243
252
|
/**
|
|
244
253
|
* Provides a reference to a container element inside the component markup.
|
|
245
254
|
* The container element references the location of the appended popup—
|
|
@@ -249,7 +258,12 @@ export declare class ColorPickerComponent implements OnInit, AfterViewInit, OnCh
|
|
|
249
258
|
private activeColor;
|
|
250
259
|
private popupTemplate;
|
|
251
260
|
private flatColorPicker;
|
|
261
|
+
/**
|
|
262
|
+
* @hidden
|
|
263
|
+
*/
|
|
264
|
+
arrowDownIcon: SVGIcon;
|
|
252
265
|
private popupRef;
|
|
266
|
+
private _svgIcon;
|
|
253
267
|
private _value;
|
|
254
268
|
private _tabindex;
|
|
255
269
|
private _popupSettings;
|
|
@@ -360,5 +374,5 @@ export declare class ColorPickerComponent implements OnInit, AfterViewInit, OnCh
|
|
|
360
374
|
private domFocusListener;
|
|
361
375
|
private handleHostId;
|
|
362
376
|
static ɵfac: i0.ɵɵFactoryDeclaration<ColorPickerComponent, never>;
|
|
363
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ColorPickerComponent, "kendo-colorpicker", ["kendoColorPicker"], { "views": "views"; "view": "view"; "activeView": "activeView"; "readonly": "readonly"; "disabled": "disabled"; "format": "format"; "value": "value"; "popupSettings": "popupSettings"; "paletteSettings": "paletteSettings"; "gradientSettings": "gradientSettings"; "icon": "icon"; "iconClass": "iconClass"; "clearButton": "clearButton"; "tabindex": "tabindex"; "preview": "preview"; "actionsLayout": "actionsLayout"; "size": "size"; "rounded": "rounded"; "fillMode": "fillMode"; }, { "valueChange": "valueChange"; "open": "open"; "close": "close"; "onFocus": "focus"; "onBlur": "blur"; "cancel": "cancel"; "activeColorClick": "activeColorClick"; "activeViewChange": "activeViewChange"; }, never, never>;
|
|
377
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ColorPickerComponent, "kendo-colorpicker", ["kendoColorPicker"], { "views": "views"; "view": "view"; "activeView": "activeView"; "readonly": "readonly"; "disabled": "disabled"; "format": "format"; "value": "value"; "popupSettings": "popupSettings"; "paletteSettings": "paletteSettings"; "gradientSettings": "gradientSettings"; "icon": "icon"; "iconClass": "iconClass"; "svgIcon": "svgIcon"; "clearButton": "clearButton"; "tabindex": "tabindex"; "preview": "preview"; "actionsLayout": "actionsLayout"; "size": "size"; "rounded": "rounded"; "fillMode": "fillMode"; }, { "valueChange": "valueChange"; "open": "open"; "close": "close"; "onFocus": "focus"; "onBlur": "blur"; "cancel": "cancel"; "activeColorClick": "activeColorClick"; "activeViewChange": "activeViewChange"; }, never, never>;
|
|
364
378
|
}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
6
|
+
import { SVGIcon } from '@progress/kendo-svg-icons';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
/**
|
|
8
9
|
* @hidden
|
|
@@ -12,6 +13,8 @@ export declare class ContrastValidationComponent {
|
|
|
12
13
|
type: string;
|
|
13
14
|
pass: boolean;
|
|
14
15
|
value: string;
|
|
16
|
+
checkIcon: SVGIcon;
|
|
17
|
+
xCircleIcon: SVGIcon;
|
|
15
18
|
constructor(localization: LocalizationService);
|
|
16
19
|
get passMessage(): string;
|
|
17
20
|
get failMessage(): string;
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
6
|
+
import { SVGIcon } from '@progress/kendo-svg-icons';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
/**
|
|
8
9
|
* @hidden
|
|
@@ -11,6 +12,8 @@ export declare class ContrastComponent {
|
|
|
11
12
|
private localization;
|
|
12
13
|
value: string;
|
|
13
14
|
ratio: string;
|
|
15
|
+
checkIcon: SVGIcon;
|
|
16
|
+
xCircleIcon: SVGIcon;
|
|
14
17
|
constructor(localization: LocalizationService);
|
|
15
18
|
get formatedRatio(): string;
|
|
16
19
|
get contrastRatioText(): string;
|
|
@@ -2,15 +2,17 @@
|
|
|
2
2
|
* Copyright © 2023 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, QueryList, ElementRef } from '@angular/core';
|
|
5
|
+
import { EventEmitter, QueryList, ElementRef, Renderer2, AfterViewInit } from '@angular/core';
|
|
6
|
+
import { SVGIcon } from '@progress/kendo-svg-icons';
|
|
6
7
|
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
7
8
|
import { ColorPickerView } from './models';
|
|
8
9
|
import * as i0 from "@angular/core";
|
|
9
10
|
/**
|
|
10
11
|
* @hidden
|
|
11
12
|
*/
|
|
12
|
-
export declare class FlatColorPickerHeaderComponent {
|
|
13
|
+
export declare class FlatColorPickerHeaderComponent implements AfterViewInit {
|
|
13
14
|
private localizationService;
|
|
15
|
+
private renderer;
|
|
14
16
|
hostClasses: boolean;
|
|
15
17
|
clearButton: boolean;
|
|
16
18
|
activeView: ColorPickerView;
|
|
@@ -25,10 +27,15 @@ export declare class FlatColorPickerHeaderComponent {
|
|
|
25
27
|
tabOut: EventEmitter<any>;
|
|
26
28
|
viewButtonsCollection: QueryList<ElementRef>;
|
|
27
29
|
clearButtonElement: ElementRef;
|
|
28
|
-
|
|
30
|
+
dropletSliderIcon: SVGIcon;
|
|
31
|
+
paletteIcon: SVGIcon;
|
|
32
|
+
dropletSlashIcon: SVGIcon;
|
|
33
|
+
constructor(localizationService: LocalizationService, renderer: Renderer2);
|
|
34
|
+
ngAfterViewInit(): void;
|
|
29
35
|
onViewButtonClick(view: ColorPickerView): void;
|
|
30
36
|
get viewButtons(): boolean;
|
|
31
37
|
getViewButtonIcon(view: string): string;
|
|
38
|
+
getViewButtonsSVGIcon(view: string): SVGIcon;
|
|
32
39
|
getText(text: string): string;
|
|
33
40
|
onHeaderTabOut(ev: any, index: number): void;
|
|
34
41
|
static ɵfac: i0.ɵɵFactoryDeclaration<FlatColorPickerHeaderComponent, never>;
|
package/colorpicker.module.d.ts
CHANGED
|
@@ -22,12 +22,14 @@ import * as i16 from "./numerictextbox.module";
|
|
|
22
22
|
import * as i17 from "@angular/common";
|
|
23
23
|
import * as i18 from "@progress/kendo-angular-popup";
|
|
24
24
|
import * as i19 from "@progress/kendo-angular-common";
|
|
25
|
+
import * as i20 from "@progress/kendo-angular-buttons";
|
|
26
|
+
import * as i21 from "@progress/kendo-angular-icons";
|
|
25
27
|
/**
|
|
26
28
|
* Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
|
|
27
29
|
* definition for the ColorPicker.
|
|
28
30
|
*/
|
|
29
31
|
export declare class ColorPickerModule {
|
|
30
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<ColorPickerModule, never>;
|
|
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]>;
|
|
33
|
+
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 i20.ButtonModule, typeof i21.IconsModule], [typeof i1.ColorPickerComponent, typeof i2.ColorPaletteComponent, typeof i3.ColorGradientComponent, typeof i4.FlatColorPickerComponent, typeof i5.LocalizedColorPickerMessagesDirective, typeof i6.ColorPickerCustomMessagesComponent]>;
|
|
32
34
|
static ɵinj: i0.ɵɵInjectorDeclaration<ColorPickerModule>;
|
|
33
35
|
}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Copyright © 2023 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
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
5
6
|
import { Component, Input, ViewChild, ElementRef, Renderer2, NgZone, Output, EventEmitter, HostBinding, forwardRef, ChangeDetectorRef, Injector, HostListener } from '@angular/core';
|
|
6
7
|
import { NgControl, NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
7
8
|
import { BehaviorSubject, Subject } from 'rxjs';
|
|
@@ -17,15 +18,17 @@ import { ColorGradientLocalizationService } from './localization/colorgradient-l
|
|
|
17
18
|
import { ColorInputComponent } from './color-input.component';
|
|
18
19
|
import { DEFAULT_GRADIENT_BACKGROUND_COLOR, DEFAULT_OUTPUT_FORMAT, DRAGHANDLE_MOVE_SPEED, DRAGHANDLE_MOVE_SPEED_SMALL_STEP } from './constants';
|
|
19
20
|
import { packageMetadata } from '../package-metadata';
|
|
21
|
+
import { dropletSlashIcon } from '@progress/kendo-svg-icons';
|
|
20
22
|
import * as i0 from "@angular/core";
|
|
21
23
|
import * as i1 from "@progress/kendo-angular-l10n";
|
|
22
24
|
import * as i2 from "./color-contrast-svg.component";
|
|
23
|
-
import * as i3 from "
|
|
24
|
-
import * as i4 from "
|
|
25
|
-
import * as i5 from "./
|
|
26
|
-
import * as i6 from "./
|
|
27
|
-
import * as i7 from "
|
|
28
|
-
import * as i8 from "@angular
|
|
25
|
+
import * as i3 from "@progress/kendo-angular-buttons";
|
|
26
|
+
import * as i4 from "../slider/slider.component";
|
|
27
|
+
import * as i5 from "./color-input.component";
|
|
28
|
+
import * as i6 from "./contrast.component";
|
|
29
|
+
import * as i7 from "./localization/localized-colorpicker-messages.directive";
|
|
30
|
+
import * as i8 from "@progress/kendo-angular-common";
|
|
31
|
+
import * as i9 from "@angular/common";
|
|
29
32
|
let serial = 0;
|
|
30
33
|
/**
|
|
31
34
|
* The ColorGradient component enables smooth color transitions and provides options for selecting specific colors over the drag handle.
|
|
@@ -117,6 +120,10 @@ export class ColorGradientComponent {
|
|
|
117
120
|
* @hidden
|
|
118
121
|
*/
|
|
119
122
|
this.internalNavigation = false;
|
|
123
|
+
/**
|
|
124
|
+
* @hidden
|
|
125
|
+
*/
|
|
126
|
+
this.dropletSlashIcon = dropletSlashIcon;
|
|
120
127
|
this._tabindex = 0;
|
|
121
128
|
this.listeners = [];
|
|
122
129
|
this.hueSliderTouched = false;
|
|
@@ -662,18 +669,23 @@ ColorGradientComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
662
669
|
</svg>
|
|
663
670
|
</div>
|
|
664
671
|
<div class="k-hsv-controls k-hstack {{ clearButton ? 'k-sliders-wrap-clearable' : '' }}">
|
|
665
|
-
|
|
672
|
+
|
|
673
|
+
<button
|
|
674
|
+
kendoButton
|
|
666
675
|
*ngIf="clearButton"
|
|
667
|
-
|
|
676
|
+
class="k-clear-color"
|
|
677
|
+
fillMode="flat"
|
|
678
|
+
icon="droplet-slash"
|
|
679
|
+
[svgIcon]="dropletSlashIcon"
|
|
668
680
|
(click)="reset()"
|
|
669
681
|
(keydown.enter)="reset()"
|
|
670
682
|
(keydown.space)="reset()"
|
|
671
683
|
[attr.aria-label]="clearButtonTitle"
|
|
672
684
|
[attr.title]="clearButtonTitle"
|
|
673
685
|
[tabindex]="innerTabIndex.toString()"
|
|
674
|
-
[style]="'position: absolute; top: 0; left: 50%; transform: translateX(-50%);'"
|
|
675
|
-
|
|
676
|
-
</
|
|
686
|
+
[style]="'position: absolute; top: 0; left: 50%; transform: translateX(-50%);'"
|
|
687
|
+
>
|
|
688
|
+
</button>
|
|
677
689
|
<kendo-slider
|
|
678
690
|
[ngClass]="{'k-align-self-end': clearButton}"
|
|
679
691
|
[style.height.px]="clearButton ? '140' : null"
|
|
@@ -733,7 +745,7 @@ ColorGradientComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
733
745
|
[value]="value"
|
|
734
746
|
[ratio]="contrastTool">
|
|
735
747
|
</div>
|
|
736
|
-
`, isInline: true, components: [{ type: i2.ColorContrastSvgComponent, selector: "[kendoColorContrastSvg]", inputs: ["wrapper", "hsva", "backgroundColor"] }, { type: i3.SliderComponent, selector: "kendo-slider", inputs: ["focusableId", "dragHandleTitle", "incrementTitle", "animate", "decrementTitle", "showButtons", "value", "tabIndex"], exportAs: ["kendoSlider"] }, { type:
|
|
748
|
+
`, isInline: true, components: [{ type: i2.ColorContrastSvgComponent, selector: "[kendoColorContrastSvg]", inputs: ["wrapper", "hsva", "backgroundColor"] }, { type: i3.Button, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { type: i4.SliderComponent, selector: "kendo-slider", inputs: ["focusableId", "dragHandleTitle", "incrementTitle", "animate", "decrementTitle", "showButtons", "value", "tabIndex"], exportAs: ["kendoSlider"] }, { type: i5.ColorInputComponent, selector: "kendo-colorinput", inputs: ["focusableId", "formatView", "tabindex", "value", "opacity", "disabled", "readonly"], outputs: ["valueChange", "tabOut"] }, { type: i6.ContrastComponent, selector: "[kendoContrastTool]", inputs: ["value", "ratio"] }], directives: [{ type: i7.LocalizedColorPickerMessagesDirective, selector: "[kendoColorPickerLocalizedMessages], [kendoFlatColorPickerLocalizedMessages], [kendoColorGradientLocalizedMessages], [kendoColorPaletteLocalizedMessages]" }, { type: i8.DraggableDirective, selector: "[kendoDraggable]", inputs: ["enableDrag"], outputs: ["kendoPress", "kendoDrag", "kendoRelease"] }, { type: i9.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i9.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
737
749
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ColorGradientComponent, decorators: [{
|
|
738
750
|
type: Component,
|
|
739
751
|
args: [{
|
|
@@ -832,18 +844,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
832
844
|
</svg>
|
|
833
845
|
</div>
|
|
834
846
|
<div class="k-hsv-controls k-hstack {{ clearButton ? 'k-sliders-wrap-clearable' : '' }}">
|
|
835
|
-
|
|
847
|
+
|
|
848
|
+
<button
|
|
849
|
+
kendoButton
|
|
836
850
|
*ngIf="clearButton"
|
|
837
|
-
|
|
851
|
+
class="k-clear-color"
|
|
852
|
+
fillMode="flat"
|
|
853
|
+
icon="droplet-slash"
|
|
854
|
+
[svgIcon]="dropletSlashIcon"
|
|
838
855
|
(click)="reset()"
|
|
839
856
|
(keydown.enter)="reset()"
|
|
840
857
|
(keydown.space)="reset()"
|
|
841
858
|
[attr.aria-label]="clearButtonTitle"
|
|
842
859
|
[attr.title]="clearButtonTitle"
|
|
843
860
|
[tabindex]="innerTabIndex.toString()"
|
|
844
|
-
[style]="'position: absolute; top: 0; left: 50%; transform: translateX(-50%);'"
|
|
845
|
-
|
|
846
|
-
</
|
|
861
|
+
[style]="'position: absolute; top: 0; left: 50%; transform: translateX(-50%);'"
|
|
862
|
+
>
|
|
863
|
+
</button>
|
|
847
864
|
<kendo-slider
|
|
848
865
|
[ngClass]="{'k-align-self-end': clearButton}"
|
|
849
866
|
[style.height.px]="clearButton ? '140' : null"
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Copyright © 2023 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
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
5
6
|
import { Component, Input, Output, EventEmitter, ElementRef, HostBinding, ViewChild, Renderer2 } from '@angular/core';
|
|
6
7
|
import { getRGBA, parseColor, getColorFromRGBA } from './utils';
|
|
7
8
|
import { isPresent } from '../common/utils';
|
|
@@ -9,11 +10,13 @@ import { guid, isDocumentAvailable } from '@progress/kendo-angular-common';
|
|
|
9
10
|
import { Subscription } from 'rxjs';
|
|
10
11
|
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
11
12
|
import { NumericTextBoxComponent } from './../numerictextbox/numerictextbox.component';
|
|
13
|
+
import { caretAltExpandIcon } from '@progress/kendo-svg-icons';
|
|
12
14
|
import * as i0 from "@angular/core";
|
|
13
15
|
import * as i1 from "@progress/kendo-angular-l10n";
|
|
14
|
-
import * as i2 from "
|
|
15
|
-
import * as i3 from "
|
|
16
|
-
import * as i4 from "
|
|
16
|
+
import * as i2 from "@progress/kendo-angular-buttons";
|
|
17
|
+
import * as i3 from "../numerictextbox/numerictextbox.component";
|
|
18
|
+
import * as i4 from "@angular/common";
|
|
19
|
+
import * as i5 from "./color-gradient-numeric-label.directive";
|
|
17
20
|
/**
|
|
18
21
|
* @hidden
|
|
19
22
|
*/
|
|
@@ -55,6 +58,10 @@ export class ColorInputComponent {
|
|
|
55
58
|
* The rgba inputs values.
|
|
56
59
|
*/
|
|
57
60
|
this.rgba = {};
|
|
61
|
+
/**
|
|
62
|
+
* @hidden
|
|
63
|
+
*/
|
|
64
|
+
this.caretAltExpandIcon = caretAltExpandIcon;
|
|
58
65
|
this.subscriptions = new Subscription();
|
|
59
66
|
}
|
|
60
67
|
/**
|
|
@@ -141,17 +148,21 @@ export class ColorInputComponent {
|
|
|
141
148
|
}
|
|
142
149
|
}
|
|
143
150
|
ColorInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ColorInputComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
144
|
-
ColorInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: ColorInputComponent, selector: "kendo-colorinput", inputs: { focusableId: "focusableId", formatView: "formatView", tabindex: "tabindex", value: "value", opacity: "opacity", disabled: "disabled", readonly: "readonly" }, outputs: { valueChange: "valueChange", tabOut: "tabOut" }, host: { properties: { "class.k-colorgradient-inputs": "this.colorInputClass", "class.k-hstack": "this.colorInputClass" } }, viewQueries: [{ propertyName: "opacityInput", first: true, predicate: ["opacityInput"], descendants: true }, { propertyName: "hexInput", first: true, predicate: ["hexInput"], descendants: true }, { propertyName: "blueInput", first: true, predicate: ["blueInput"], descendants: true }, { propertyName: "toggleFormatButton", first: true, predicate: ["toggleFormatButton"], descendants: true }], usesOnChanges: true, ngImport: i0, template: `
|
|
151
|
+
ColorInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: ColorInputComponent, selector: "kendo-colorinput", inputs: { focusableId: "focusableId", formatView: "formatView", tabindex: "tabindex", value: "value", opacity: "opacity", disabled: "disabled", readonly: "readonly" }, outputs: { valueChange: "valueChange", tabOut: "tabOut" }, host: { properties: { "class.k-colorgradient-inputs": "this.colorInputClass", "class.k-hstack": "this.colorInputClass" } }, viewQueries: [{ propertyName: "opacityInput", first: true, predicate: ["opacityInput"], descendants: true }, { propertyName: "hexInput", first: true, predicate: ["hexInput"], descendants: true }, { propertyName: "blueInput", first: true, predicate: ["blueInput"], descendants: true }, { propertyName: "toggleFormatButton", first: true, predicate: ["toggleFormatButton"], descendants: true, read: ElementRef }], usesOnChanges: true, ngImport: i0, template: `
|
|
145
152
|
<div class="k-vstack">
|
|
146
|
-
<button
|
|
147
|
-
|
|
153
|
+
<button
|
|
154
|
+
kendoButton
|
|
155
|
+
type="button"
|
|
156
|
+
fillMode="flat"
|
|
157
|
+
#toggleFormatButton
|
|
158
|
+
icon="caret-alt-expand"
|
|
159
|
+
[svgIcon]="caretAltExpandIcon"
|
|
160
|
+
class="k-colorgradient-toggle-mode"
|
|
148
161
|
[attr.aria-label]="formatButtonTitle"
|
|
149
162
|
[attr.title]="formatButtonTitle"
|
|
150
163
|
[disabled]="disabled"
|
|
151
164
|
[tabindex]="tabindex.toString()"
|
|
152
|
-
type="button"
|
|
153
165
|
>
|
|
154
|
-
<span class="k-button-icon k-icon k-i-caret-alt-expand"></span>
|
|
155
166
|
</button>
|
|
156
167
|
</div>
|
|
157
168
|
<div *ngIf="formatView === 'hex'" class="k-vstack">
|
|
@@ -254,22 +265,26 @@ ColorInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ve
|
|
|
254
265
|
<label [for]="alpha.focusableId" class="k-colorgradient-input-label">A</label>
|
|
255
266
|
</div>
|
|
256
267
|
</ng-container>
|
|
257
|
-
`, isInline: true, components: [{ type: i2.NumericTextBoxComponent, selector: "kendo-numerictextbox", inputs: ["focusableId", "disabled", "readonly", "title", "autoCorrect", "format", "max", "min", "decimals", "placeholder", "step", "spinners", "rangeValidation", "tabindex", "tabIndex", "changeValueOnScroll", "selectOnFocus", "value", "maxlength", "size", "rounded", "fillMode"], outputs: ["valueChange", "focus", "blur"], exportAs: ["kendoNumericTextBox"] }], directives: [{ type:
|
|
268
|
+
`, isInline: true, components: [{ type: i2.Button, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { type: i3.NumericTextBoxComponent, selector: "kendo-numerictextbox", inputs: ["focusableId", "disabled", "readonly", "title", "autoCorrect", "format", "max", "min", "decimals", "placeholder", "step", "spinners", "rangeValidation", "tabindex", "tabIndex", "changeValueOnScroll", "selectOnFocus", "value", "maxlength", "size", "rounded", "fillMode"], outputs: ["valueChange", "focus", "blur"], exportAs: ["kendoNumericTextBox"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5.NumericLabelDirective, selector: "[kendoAdditionalNumericLabel]", inputs: ["kendoAdditionalNumericLabel", "localizationService"] }] });
|
|
258
269
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ColorInputComponent, decorators: [{
|
|
259
270
|
type: Component,
|
|
260
271
|
args: [{
|
|
261
272
|
selector: 'kendo-colorinput',
|
|
262
273
|
template: `
|
|
263
274
|
<div class="k-vstack">
|
|
264
|
-
<button
|
|
265
|
-
|
|
275
|
+
<button
|
|
276
|
+
kendoButton
|
|
277
|
+
type="button"
|
|
278
|
+
fillMode="flat"
|
|
279
|
+
#toggleFormatButton
|
|
280
|
+
icon="caret-alt-expand"
|
|
281
|
+
[svgIcon]="caretAltExpandIcon"
|
|
282
|
+
class="k-colorgradient-toggle-mode"
|
|
266
283
|
[attr.aria-label]="formatButtonTitle"
|
|
267
284
|
[attr.title]="formatButtonTitle"
|
|
268
285
|
[disabled]="disabled"
|
|
269
286
|
[tabindex]="tabindex.toString()"
|
|
270
|
-
type="button"
|
|
271
287
|
>
|
|
272
|
-
<span class="k-button-icon k-icon k-i-caret-alt-expand"></span>
|
|
273
288
|
</button>
|
|
274
289
|
</div>
|
|
275
290
|
<div *ngIf="formatView === 'hex'" class="k-vstack">
|
|
@@ -409,5 +424,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
409
424
|
args: ['blueInput']
|
|
410
425
|
}], toggleFormatButton: [{
|
|
411
426
|
type: ViewChild,
|
|
412
|
-
args: ['toggleFormatButton', { static: false }]
|
|
427
|
+
args: ['toggleFormatButton', { static: false, read: ElementRef }]
|
|
413
428
|
}] } });
|
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
* Copyright © 2023 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
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
5
6
|
import { take } from 'rxjs/operators';
|
|
6
|
-
import { Component, HostBinding, Input, Output, EventEmitter, ViewChild, ElementRef, TemplateRef, ViewContainerRef, forwardRef, ChangeDetectorRef, NgZone, Renderer2, Injector } from '@angular/core';
|
|
7
|
+
import { Component, HostBinding, Input, Output, EventEmitter, ViewChild, ElementRef, TemplateRef, ViewContainerRef, forwardRef, ChangeDetectorRef, NgZone, Renderer2, Injector, isDevMode } from '@angular/core';
|
|
7
8
|
import { NG_VALUE_ACCESSOR, NgControl } from '@angular/forms';
|
|
8
9
|
import { Subscription } from 'rxjs';
|
|
9
10
|
import { FlatColorPickerComponent } from './flatcolorpicker.component';
|
|
@@ -18,12 +19,16 @@ import { parseColor } from './utils';
|
|
|
18
19
|
import { getStylingClasses, isPresent } from '../common/utils';
|
|
19
20
|
import { ColorPickerLocalizationService } from './localization/colorpicker-localization.service';
|
|
20
21
|
import { DEFAULT_ACCESSIBLE_PRESET, DEFAULT_PRESET } from './constants';
|
|
22
|
+
import { parseCSSClassNames } from '@progress/kendo-angular-common';
|
|
23
|
+
import { caretAltDownIcon } from '@progress/kendo-svg-icons';
|
|
21
24
|
import * as i0 from "@angular/core";
|
|
22
25
|
import * as i1 from "@progress/kendo-angular-popup";
|
|
23
26
|
import * as i2 from "@progress/kendo-angular-l10n";
|
|
24
|
-
import * as i3 from "
|
|
25
|
-
import * as i4 from "
|
|
26
|
-
import * as i5 from "
|
|
27
|
+
import * as i3 from "@progress/kendo-angular-icons";
|
|
28
|
+
import * as i4 from "@progress/kendo-angular-buttons";
|
|
29
|
+
import * as i5 from "./flatcolorpicker.component";
|
|
30
|
+
import * as i6 from "./localization/localized-colorpicker-messages.directive";
|
|
31
|
+
import * as i7 from "@angular/common";
|
|
27
32
|
const DOM_FOCUS_EVENTS = ['focus', 'blur'];
|
|
28
33
|
const DEFAULT_SIZE = 'medium';
|
|
29
34
|
const DEFAULT_ROUNDED = 'medium';
|
|
@@ -149,6 +154,10 @@ export class ColorPickerComponent {
|
|
|
149
154
|
* Indicates whether the ColorPicker wrapper is focused.
|
|
150
155
|
*/
|
|
151
156
|
this.isFocused = false;
|
|
157
|
+
/**
|
|
158
|
+
* @hidden
|
|
159
|
+
*/
|
|
160
|
+
this.arrowDownIcon = caretAltDownIcon;
|
|
152
161
|
this._tabindex = 0;
|
|
153
162
|
this._popupSettings = { animate: true };
|
|
154
163
|
this._paletteSettings = {};
|
|
@@ -230,6 +239,19 @@ export class ColorPickerComponent {
|
|
|
230
239
|
get gradientSettings() {
|
|
231
240
|
return this._gradientSettings;
|
|
232
241
|
}
|
|
242
|
+
/**
|
|
243
|
+
* Defines an SVGIcon to be rendered within the button.
|
|
244
|
+
* The input can take either an [existing Kendo SVG icon](slug:svgicon_list) or a custom one.
|
|
245
|
+
*/
|
|
246
|
+
set svgIcon(icon) {
|
|
247
|
+
if (isDevMode() && icon && this.icon && this.iconClass) {
|
|
248
|
+
throw new Error('Setting both icon/svgIcon and iconClass options at the same time is not supported.');
|
|
249
|
+
}
|
|
250
|
+
this._svgIcon = icon;
|
|
251
|
+
}
|
|
252
|
+
get svgIcon() {
|
|
253
|
+
return this._svgIcon;
|
|
254
|
+
}
|
|
233
255
|
/**
|
|
234
256
|
* Specifies the [tabindex](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) of the component.
|
|
235
257
|
*
|
|
@@ -307,13 +329,24 @@ export class ColorPickerComponent {
|
|
|
307
329
|
/**
|
|
308
330
|
* @hidden
|
|
309
331
|
*/
|
|
310
|
-
get
|
|
332
|
+
get customIconStyles() {
|
|
311
333
|
if (this.iconClass) {
|
|
312
|
-
|
|
334
|
+
let parsedIconClass = '';
|
|
335
|
+
parseCSSClassNames(this.iconClass).forEach(iconClass => {
|
|
336
|
+
parsedIconClass += iconClass + ' ';
|
|
337
|
+
});
|
|
338
|
+
return parsedIconClass.slice(0, -1);
|
|
313
339
|
}
|
|
314
|
-
|
|
315
|
-
|
|
340
|
+
return '';
|
|
341
|
+
}
|
|
342
|
+
/**
|
|
343
|
+
* @hidden
|
|
344
|
+
*/
|
|
345
|
+
get iconStyles() {
|
|
346
|
+
if (this.icon && !this.iconClass) {
|
|
347
|
+
return `${this.icon}`;
|
|
316
348
|
}
|
|
349
|
+
return '';
|
|
317
350
|
}
|
|
318
351
|
ngOnInit() {
|
|
319
352
|
const defaultPreset = (this.format !== 'name') ? DEFAULT_PRESET : DEFAULT_ACCESSIBLE_PRESET;
|
|
@@ -691,7 +724,7 @@ export class ColorPickerComponent {
|
|
|
691
724
|
}
|
|
692
725
|
}
|
|
693
726
|
ColorPickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ColorPickerComponent, deps: [{ token: i0.ElementRef }, { token: i1.PopupService }, { token: i0.ChangeDetectorRef }, { token: i2.LocalizationService }, { token: i0.NgZone }, { token: i0.Renderer2 }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
|
|
694
|
-
ColorPickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: ColorPickerComponent, selector: "kendo-colorpicker", inputs: { views: "views", view: "view", activeView: "activeView", readonly: "readonly", disabled: "disabled", format: "format", value: "value", popupSettings: "popupSettings", paletteSettings: "paletteSettings", gradientSettings: "gradientSettings", icon: "icon", iconClass: "iconClass", clearButton: "clearButton", tabindex: "tabindex", preview: "preview", actionsLayout: "actionsLayout", size: "size", rounded: "rounded", fillMode: "fillMode" }, outputs: { valueChange: "valueChange", open: "open", close: "close", onFocus: "focus", onBlur: "blur", cancel: "cancel", activeColorClick: "activeColorClick", activeViewChange: "activeViewChange" }, host: { properties: { "class.k-colorpicker": "this.hostClasses", "class.k-icon-picker": "this.hostClasses", "class.k-picker": "this.hostClasses", "class.k-focus": "this.focusedClass", "attr.aria-disabled": "this.disabledClass", "class.k-disabled": "this.disabledClass", "attr.aria-readonly": "this.ariaReadonly", "attr.aria-expanded": "this.ariaExpanded", "attr.tabindex": "this.hostTabindex", "attr.dir": "this.direction", "attr.role": "this.role", "attr.aria-haspopup": "this.hasPopup", "attr.aria-invalid": "this.isControlInvalid" } }, providers: [{
|
|
727
|
+
ColorPickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: ColorPickerComponent, selector: "kendo-colorpicker", inputs: { views: "views", view: "view", activeView: "activeView", readonly: "readonly", disabled: "disabled", format: "format", value: "value", popupSettings: "popupSettings", paletteSettings: "paletteSettings", gradientSettings: "gradientSettings", icon: "icon", iconClass: "iconClass", svgIcon: "svgIcon", clearButton: "clearButton", tabindex: "tabindex", preview: "preview", actionsLayout: "actionsLayout", size: "size", rounded: "rounded", fillMode: "fillMode" }, outputs: { valueChange: "valueChange", open: "open", close: "close", onFocus: "focus", onBlur: "blur", cancel: "cancel", activeColorClick: "activeColorClick", activeViewChange: "activeViewChange" }, host: { properties: { "class.k-colorpicker": "this.hostClasses", "class.k-icon-picker": "this.hostClasses", "class.k-picker": "this.hostClasses", "class.k-focus": "this.focusedClass", "attr.aria-disabled": "this.disabledClass", "class.k-disabled": "this.disabledClass", "attr.aria-readonly": "this.ariaReadonly", "attr.aria-expanded": "this.ariaExpanded", "attr.tabindex": "this.hostTabindex", "attr.dir": "this.direction", "attr.role": "this.role", "attr.aria-haspopup": "this.hasPopup", "attr.aria-invalid": "this.isControlInvalid" } }, providers: [{
|
|
695
728
|
multi: true,
|
|
696
729
|
provide: NG_VALUE_ACCESSOR,
|
|
697
730
|
useExisting: forwardRef(() => ColorPickerComponent)
|
|
@@ -762,18 +795,30 @@ ColorPickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", v
|
|
|
762
795
|
<span #activeColor class="k-input-inner">
|
|
763
796
|
<span
|
|
764
797
|
class="k-value-icon k-color-preview"
|
|
765
|
-
[ngClass]="{'k-icon-color-preview': iconStyles, 'k-no-color': !value}"
|
|
766
|
-
|
|
798
|
+
[ngClass]="{'k-icon-color-preview': customIconStyles || iconStyles, 'k-no-color': !value}"
|
|
799
|
+
>
|
|
800
|
+
<kendo-icon-wrapper
|
|
801
|
+
*ngIf="iconClass || icon"
|
|
802
|
+
[name]="iconStyles"
|
|
803
|
+
innerCssClass="k-color-preview-icon"
|
|
804
|
+
[customFontClass]="customIconStyles"
|
|
805
|
+
[svgIcon]="svgIcon"
|
|
806
|
+
>
|
|
807
|
+
</kendo-icon-wrapper>
|
|
767
808
|
<span class="k-color-preview-mask" [style.background-color]="value"></span>
|
|
768
809
|
</span>
|
|
810
|
+
|
|
769
811
|
</span>
|
|
770
812
|
<button
|
|
813
|
+
kendoButton
|
|
771
814
|
tabindex="-1"
|
|
772
815
|
type="button"
|
|
773
816
|
role="none"
|
|
817
|
+
icon="caret-alt-down"
|
|
818
|
+
[svgIcon]="arrowDownIcon"
|
|
774
819
|
aria-hidden="true"
|
|
775
|
-
class="k-input-button
|
|
776
|
-
|
|
820
|
+
class="k-input-button"
|
|
821
|
+
>
|
|
777
822
|
</button>
|
|
778
823
|
<ng-template #popupTemplate>
|
|
779
824
|
<kendo-flatcolorpicker
|
|
@@ -796,7 +841,7 @@ ColorPickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", v
|
|
|
796
841
|
</kendo-flatcolorpicker>
|
|
797
842
|
</ng-template>
|
|
798
843
|
<ng-container #container></ng-container>
|
|
799
|
-
`, isInline: true, components: [{ type: i3.FlatColorPickerComponent, selector: "kendo-flatcolorpicker", inputs: ["readonly", "disabled", "format", "value", "tabindex", "clearButton", "preview", "actionsLayout", "activeView", "views", "gradientSettings", "paletteSettings"], outputs: ["valueChange", "cancel", "activeViewChange", "actionButtonClick"], exportAs: ["kendoFlatColorPicker"] }], directives: [{ type:
|
|
844
|
+
`, isInline: true, components: [{ type: i3.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }, { type: i4.Button, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { type: i5.FlatColorPickerComponent, selector: "kendo-flatcolorpicker", inputs: ["readonly", "disabled", "format", "value", "tabindex", "clearButton", "preview", "actionsLayout", "activeView", "views", "gradientSettings", "paletteSettings"], outputs: ["valueChange", "cancel", "activeViewChange", "actionButtonClick"], exportAs: ["kendoFlatColorPicker"] }], directives: [{ type: i6.LocalizedColorPickerMessagesDirective, selector: "[kendoColorPickerLocalizedMessages], [kendoFlatColorPickerLocalizedMessages], [kendoColorGradientLocalizedMessages], [kendoColorPaletteLocalizedMessages]" }, { type: i7.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i7.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
800
845
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ColorPickerComponent, decorators: [{
|
|
801
846
|
type: Component,
|
|
802
847
|
args: [{
|
|
@@ -873,18 +918,30 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
873
918
|
<span #activeColor class="k-input-inner">
|
|
874
919
|
<span
|
|
875
920
|
class="k-value-icon k-color-preview"
|
|
876
|
-
[ngClass]="{'k-icon-color-preview': iconStyles, 'k-no-color': !value}"
|
|
877
|
-
|
|
921
|
+
[ngClass]="{'k-icon-color-preview': customIconStyles || iconStyles, 'k-no-color': !value}"
|
|
922
|
+
>
|
|
923
|
+
<kendo-icon-wrapper
|
|
924
|
+
*ngIf="iconClass || icon"
|
|
925
|
+
[name]="iconStyles"
|
|
926
|
+
innerCssClass="k-color-preview-icon"
|
|
927
|
+
[customFontClass]="customIconStyles"
|
|
928
|
+
[svgIcon]="svgIcon"
|
|
929
|
+
>
|
|
930
|
+
</kendo-icon-wrapper>
|
|
878
931
|
<span class="k-color-preview-mask" [style.background-color]="value"></span>
|
|
879
932
|
</span>
|
|
933
|
+
|
|
880
934
|
</span>
|
|
881
935
|
<button
|
|
936
|
+
kendoButton
|
|
882
937
|
tabindex="-1"
|
|
883
938
|
type="button"
|
|
884
939
|
role="none"
|
|
940
|
+
icon="caret-alt-down"
|
|
941
|
+
[svgIcon]="arrowDownIcon"
|
|
885
942
|
aria-hidden="true"
|
|
886
|
-
class="k-input-button
|
|
887
|
-
|
|
943
|
+
class="k-input-button"
|
|
944
|
+
>
|
|
888
945
|
</button>
|
|
889
946
|
<ng-template #popupTemplate>
|
|
890
947
|
<kendo-flatcolorpicker
|
|
@@ -972,6 +1029,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
972
1029
|
type: Input
|
|
973
1030
|
}], iconClass: [{
|
|
974
1031
|
type: Input
|
|
1032
|
+
}], svgIcon: [{
|
|
1033
|
+
type: Input
|
|
975
1034
|
}], clearButton: [{
|
|
976
1035
|
type: Input
|
|
977
1036
|
}], tabindex: [{
|