@progress/kendo-angular-inputs 10.1.1-dev.202210121020 → 10.1.1-dev.202210241319
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/bundles/kendo-angular-inputs.umd.js +1 -1
- package/colorpicker/color-gradient-numeric-label.directive.d.ts +20 -0
- package/colorpicker/color-gradient.component.d.ts +48 -5
- package/colorpicker/color-input.component.d.ts +14 -3
- package/colorpicker/color-palette.component.d.ts +16 -0
- package/colorpicker/colorpicker.component.d.ts +8 -2
- package/colorpicker/constants.d.ts +4 -0
- package/colorpicker/flatcolorpicker-actions.component.d.ts +4 -1
- package/colorpicker/flatcolorpicker-header.component.d.ts +4 -1
- package/colorpicker/flatcolorpicker.component.d.ts +40 -3
- package/colorpicker/localization/messages.d.ts +17 -1
- package/colorpicker/models/gradient-settings.d.ts +12 -0
- package/colorpicker.module.d.ts +14 -13
- package/esm2015/colorpicker/color-gradient-numeric-label.directive.js +29 -0
- package/esm2015/colorpicker/color-gradient.component.js +181 -34
- package/esm2015/colorpicker/color-input.component.js +71 -10
- package/esm2015/colorpicker/color-palette.component.js +49 -11
- package/esm2015/colorpicker/colorpicker.component.js +69 -11
- package/esm2015/colorpicker/constants.js +4 -0
- package/esm2015/colorpicker/flatcolorpicker-actions.component.js +20 -5
- package/esm2015/colorpicker/flatcolorpicker-header.component.js +36 -14
- package/esm2015/colorpicker/flatcolorpicker.component.js +206 -49
- package/esm2015/colorpicker/localization/messages.js +9 -1
- package/esm2015/colorpicker.module.js +4 -1
- package/esm2015/main.js +1 -0
- package/esm2015/package-metadata.js +1 -1
- package/esm2015/signature/localization/messages.js +3 -1
- package/esm2015/signature/signature.component.js +39 -6
- package/fesm2015/kendo-angular-inputs.js +727 -159
- package/main.d.ts +1 -0
- package/package.json +1 -1
- package/signature/localization/messages.d.ts +5 -1
- package/signature/signature.component.d.ts +5 -0
|
@@ -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 { Component, HostBinding, EventEmitter, Output, ElementRef, ViewChild } from '@angular/core';
|
|
5
|
+
import { Component, HostBinding, EventEmitter, Output, ElementRef, ViewChild, Input } from '@angular/core';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
import * as i1 from "@progress/kendo-angular-l10n";
|
|
8
8
|
/**
|
|
@@ -12,7 +12,9 @@ export class FlatColorPickerActionButtonsComponent {
|
|
|
12
12
|
constructor(localizationService) {
|
|
13
13
|
this.localizationService = localizationService;
|
|
14
14
|
this.hostClasses = true;
|
|
15
|
+
this.innerTabIndex = -1;
|
|
15
16
|
this.actionButtonClick = new EventEmitter();
|
|
17
|
+
this.tabOut = new EventEmitter();
|
|
16
18
|
}
|
|
17
19
|
getText(text) {
|
|
18
20
|
return this.localizationService.get(text);
|
|
@@ -26,18 +28,21 @@ export class FlatColorPickerActionButtonsComponent {
|
|
|
26
28
|
}
|
|
27
29
|
}
|
|
28
30
|
FlatColorPickerActionButtonsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FlatColorPickerActionButtonsComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
29
|
-
FlatColorPickerActionButtonsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: FlatColorPickerActionButtonsComponent, selector: "[kendoFlatColorPickerActionButtons]", outputs: { actionButtonClick: "actionButtonClick" }, host: { properties: { "class.k-coloreditor-footer": "this.hostClasses", "class.k-actions": "this.hostClasses", "class.k-hstack": "this.hostClasses" } }, viewQueries: [{ propertyName: "lastButton", first: true, predicate: ["last"], descendants: true, read: ElementRef }], ngImport: i0, template: `
|
|
30
|
-
<button
|
|
31
|
+
FlatColorPickerActionButtonsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: FlatColorPickerActionButtonsComponent, selector: "[kendoFlatColorPickerActionButtons]", inputs: { innerTabIndex: "innerTabIndex" }, outputs: { actionButtonClick: "actionButtonClick", tabOut: "tabOut" }, host: { properties: { "class.k-coloreditor-footer": "this.hostClasses", "class.k-actions": "this.hostClasses", "class.k-hstack": "this.hostClasses" } }, viewQueries: [{ propertyName: "firstButton", first: true, predicate: ["first"], descendants: true, read: ElementRef }, { propertyName: "lastButton", first: true, predicate: ["last"], descendants: true, read: ElementRef }], ngImport: i0, template: `
|
|
32
|
+
<button #first
|
|
31
33
|
class="k-coloreditor-cancel k-button k-button-md k-button-solid k-button-solid-base"
|
|
32
34
|
[attr.title]="getText('cancelButton')"
|
|
33
35
|
(click)="onActionButtonClick('cancel', $event)"
|
|
34
36
|
type="button"
|
|
37
|
+
[tabindex]="innerTabIndex.toString()"
|
|
35
38
|
>{{getText('cancelButton')}}</button>
|
|
36
39
|
<button #last
|
|
37
40
|
class="k-coloreditor-apply k-button k-button-md k-button-solid k-button-solid-primary"
|
|
38
41
|
[attr.title]="getText('applyButton')"
|
|
39
42
|
(click)="onActionButtonClick('apply', $event)"
|
|
40
43
|
type="button"
|
|
44
|
+
[tabindex]="innerTabIndex.toString()"
|
|
45
|
+
(keydown.tab)="$event.preventDefault(); tabOut.emit();"
|
|
41
46
|
>{{getText('applyButton')}}</button>
|
|
42
47
|
`, isInline: true });
|
|
43
48
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FlatColorPickerActionButtonsComponent, decorators: [{
|
|
@@ -46,17 +51,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
46
51
|
// eslint-disable-next-line @angular-eslint/component-selector
|
|
47
52
|
selector: '[kendoFlatColorPickerActionButtons]',
|
|
48
53
|
template: `
|
|
49
|
-
<button
|
|
54
|
+
<button #first
|
|
50
55
|
class="k-coloreditor-cancel k-button k-button-md k-button-solid k-button-solid-base"
|
|
51
56
|
[attr.title]="getText('cancelButton')"
|
|
52
57
|
(click)="onActionButtonClick('cancel', $event)"
|
|
53
58
|
type="button"
|
|
59
|
+
[tabindex]="innerTabIndex.toString()"
|
|
54
60
|
>{{getText('cancelButton')}}</button>
|
|
55
61
|
<button #last
|
|
56
62
|
class="k-coloreditor-apply k-button k-button-md k-button-solid k-button-solid-primary"
|
|
57
63
|
[attr.title]="getText('applyButton')"
|
|
58
64
|
(click)="onActionButtonClick('apply', $event)"
|
|
59
65
|
type="button"
|
|
66
|
+
[tabindex]="innerTabIndex.toString()"
|
|
67
|
+
(keydown.tab)="$event.preventDefault(); tabOut.emit();"
|
|
60
68
|
>{{getText('applyButton')}}</button>
|
|
61
69
|
`
|
|
62
70
|
}]
|
|
@@ -69,9 +77,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
69
77
|
}, {
|
|
70
78
|
type: HostBinding,
|
|
71
79
|
args: ['class.k-hstack']
|
|
80
|
+
}], innerTabIndex: [{
|
|
81
|
+
type: Input
|
|
72
82
|
}], actionButtonClick: [{
|
|
73
83
|
type: Output
|
|
84
|
+
}], tabOut: [{
|
|
85
|
+
type: Output
|
|
86
|
+
}], firstButton: [{
|
|
87
|
+
type: ViewChild,
|
|
88
|
+
args: ['first', { read: ElementRef }]
|
|
74
89
|
}], lastButton: [{
|
|
75
90
|
type: ViewChild,
|
|
76
|
-
args: ['last', { read: ElementRef
|
|
91
|
+
args: ['last', { read: ElementRef }]
|
|
77
92
|
}] } });
|
|
@@ -13,9 +13,11 @@ export class FlatColorPickerHeaderComponent {
|
|
|
13
13
|
constructor(localizationService) {
|
|
14
14
|
this.localizationService = localizationService;
|
|
15
15
|
this.hostClasses = true;
|
|
16
|
+
this.innerTabIndex = -1;
|
|
16
17
|
this.viewChange = new EventEmitter();
|
|
17
18
|
this.valuePaneClick = new EventEmitter();
|
|
18
19
|
this.clearButtonClick = new EventEmitter();
|
|
20
|
+
this.tabOut = new EventEmitter();
|
|
19
21
|
}
|
|
20
22
|
onViewButtonClick(view) {
|
|
21
23
|
this.activeView = view;
|
|
@@ -30,21 +32,30 @@ export class FlatColorPickerHeaderComponent {
|
|
|
30
32
|
getText(text) {
|
|
31
33
|
return this.localizationService.get(text);
|
|
32
34
|
}
|
|
35
|
+
onHeaderTabOut(ev, index) {
|
|
36
|
+
if (index === 0) {
|
|
37
|
+
ev.preventDefault();
|
|
38
|
+
this.tabOut.emit();
|
|
39
|
+
}
|
|
40
|
+
}
|
|
33
41
|
}
|
|
34
42
|
FlatColorPickerHeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FlatColorPickerHeaderComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
35
|
-
FlatColorPickerHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: FlatColorPickerHeaderComponent, selector: "[kendoFlatColorPickerHeader]", inputs: { clearButton: "clearButton", activeView: "activeView", views: "views", preview: "preview", value: "value", selection: "selection" }, outputs: { viewChange: "viewChange", valuePaneClick: "valuePaneClick", clearButtonClick: "clearButtonClick" }, host: { properties: { "class.k-coloreditor-header": "this.hostClasses", "class.k-hstack": "this.hostClasses" } }, viewQueries: [{ propertyName: "clearButtonElement", first: true, predicate: ["clearButton"], descendants: true, read: ElementRef }, { propertyName: "viewButtonsCollection", predicate: ["viewButtons"], descendants: true, read: ElementRef }], ngImport: i0, template: `
|
|
43
|
+
FlatColorPickerHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: FlatColorPickerHeaderComponent, selector: "[kendoFlatColorPickerHeader]", inputs: { clearButton: "clearButton", activeView: "activeView", views: "views", preview: "preview", innerTabIndex: "innerTabIndex", value: "value", selection: "selection" }, outputs: { viewChange: "viewChange", valuePaneClick: "valuePaneClick", clearButtonClick: "clearButtonClick", tabOut: "tabOut" }, host: { properties: { "class.k-coloreditor-header": "this.hostClasses", "class.k-hstack": "this.hostClasses" } }, viewQueries: [{ propertyName: "clearButtonElement", first: true, predicate: ["clearButton"], descendants: true, read: ElementRef }, { propertyName: "viewButtonsCollection", predicate: ["viewButtons"], descendants: true, read: ElementRef }], ngImport: i0, template: `
|
|
36
44
|
<div class="k-coloreditor-header-actions k-hstack">
|
|
37
|
-
<div
|
|
38
|
-
|
|
45
|
+
<div
|
|
46
|
+
*ngIf="viewButtons"
|
|
47
|
+
class="k-button-group k-button-group-flat">
|
|
48
|
+
<button *ngFor="let view of views; let i = index;"
|
|
39
49
|
#viewButtons
|
|
40
50
|
type="button"
|
|
51
|
+
[tabindex]="innerTabIndex.toString()"
|
|
41
52
|
(click)="onViewButtonClick(view)"
|
|
53
|
+
(keydown.shift.tab)="onHeaderTabOut($event, i)"
|
|
42
54
|
class="k-button k-button-md k-button-flat k-button-flat-base k-icon-button"
|
|
43
55
|
[attr.title]="getText(view === 'gradient' ? 'gradientView' : 'paletteView')"
|
|
44
56
|
[attr.aria-label]="getText(view === 'gradient' ? 'gradientView' : 'paletteView')"
|
|
45
57
|
[attr.aria-pressed]="activeView === view"
|
|
46
|
-
[ngClass]="activeView === view ? 'k-selected' : ''"
|
|
47
|
-
>
|
|
58
|
+
[ngClass]="activeView === view ? 'k-selected' : ''">
|
|
48
59
|
<span
|
|
49
60
|
class="k-button-icon k-icon"
|
|
50
61
|
[ngClass]="getViewButtonIcon(view)">
|
|
@@ -54,7 +65,9 @@ FlatColorPickerHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
|
54
65
|
</div>
|
|
55
66
|
<div class="k-spacer"></div>
|
|
56
67
|
<div class="k-coloreditor-header-actions k-hstack">
|
|
57
|
-
<button
|
|
68
|
+
<button
|
|
69
|
+
[tabindex]="innerTabIndex.toString()"
|
|
70
|
+
*ngIf="clearButton"
|
|
58
71
|
#clearButton
|
|
59
72
|
type="button"
|
|
60
73
|
class="k-button k-button-md k-button-flat k-button-flat-base k-icon-button k-coloreditor-reset"
|
|
@@ -63,7 +76,7 @@ FlatColorPickerHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
|
63
76
|
(click)="clearButtonClick.emit()">
|
|
64
77
|
<span class="k-button-icon k-icon k-i-droplet-slash"></span>
|
|
65
78
|
</button>
|
|
66
|
-
<div class="k-coloreditor-preview k-vstack" *ngIf="preview">
|
|
79
|
+
<div class="k-coloreditor-preview k-vstack" *ngIf="preview" aria-hidden="true">
|
|
67
80
|
<span
|
|
68
81
|
class="k-coloreditor-preview-color k-color-preview"
|
|
69
82
|
[attr.title]="getText('previewColor')"
|
|
@@ -84,17 +97,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
84
97
|
selector: '[kendoFlatColorPickerHeader]',
|
|
85
98
|
template: `
|
|
86
99
|
<div class="k-coloreditor-header-actions k-hstack">
|
|
87
|
-
<div
|
|
88
|
-
|
|
100
|
+
<div
|
|
101
|
+
*ngIf="viewButtons"
|
|
102
|
+
class="k-button-group k-button-group-flat">
|
|
103
|
+
<button *ngFor="let view of views; let i = index;"
|
|
89
104
|
#viewButtons
|
|
90
105
|
type="button"
|
|
106
|
+
[tabindex]="innerTabIndex.toString()"
|
|
91
107
|
(click)="onViewButtonClick(view)"
|
|
108
|
+
(keydown.shift.tab)="onHeaderTabOut($event, i)"
|
|
92
109
|
class="k-button k-button-md k-button-flat k-button-flat-base k-icon-button"
|
|
93
110
|
[attr.title]="getText(view === 'gradient' ? 'gradientView' : 'paletteView')"
|
|
94
111
|
[attr.aria-label]="getText(view === 'gradient' ? 'gradientView' : 'paletteView')"
|
|
95
112
|
[attr.aria-pressed]="activeView === view"
|
|
96
|
-
[ngClass]="activeView === view ? 'k-selected' : ''"
|
|
97
|
-
>
|
|
113
|
+
[ngClass]="activeView === view ? 'k-selected' : ''">
|
|
98
114
|
<span
|
|
99
115
|
class="k-button-icon k-icon"
|
|
100
116
|
[ngClass]="getViewButtonIcon(view)">
|
|
@@ -104,7 +120,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
104
120
|
</div>
|
|
105
121
|
<div class="k-spacer"></div>
|
|
106
122
|
<div class="k-coloreditor-header-actions k-hstack">
|
|
107
|
-
<button
|
|
123
|
+
<button
|
|
124
|
+
[tabindex]="innerTabIndex.toString()"
|
|
125
|
+
*ngIf="clearButton"
|
|
108
126
|
#clearButton
|
|
109
127
|
type="button"
|
|
110
128
|
class="k-button k-button-md k-button-flat k-button-flat-base k-icon-button k-coloreditor-reset"
|
|
@@ -113,7 +131,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
113
131
|
(click)="clearButtonClick.emit()">
|
|
114
132
|
<span class="k-button-icon k-icon k-i-droplet-slash"></span>
|
|
115
133
|
</button>
|
|
116
|
-
<div class="k-coloreditor-preview k-vstack" *ngIf="preview">
|
|
134
|
+
<div class="k-coloreditor-preview k-vstack" *ngIf="preview" aria-hidden="true">
|
|
117
135
|
<span
|
|
118
136
|
class="k-coloreditor-preview-color k-color-preview"
|
|
119
137
|
[attr.title]="getText('previewColor')"
|
|
@@ -142,6 +160,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
142
160
|
type: Input
|
|
143
161
|
}], preview: [{
|
|
144
162
|
type: Input
|
|
163
|
+
}], innerTabIndex: [{
|
|
164
|
+
type: Input
|
|
145
165
|
}], value: [{
|
|
146
166
|
type: Input
|
|
147
167
|
}], selection: [{
|
|
@@ -152,10 +172,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
152
172
|
type: Output
|
|
153
173
|
}], clearButtonClick: [{
|
|
154
174
|
type: Output
|
|
175
|
+
}], tabOut: [{
|
|
176
|
+
type: Output
|
|
155
177
|
}], viewButtonsCollection: [{
|
|
156
178
|
type: ViewChildren,
|
|
157
179
|
args: ['viewButtons', { read: ElementRef }]
|
|
158
180
|
}], clearButtonElement: [{
|
|
159
181
|
type: ViewChild,
|
|
160
|
-
args: ['clearButton', { read: ElementRef
|
|
182
|
+
args: ['clearButton', { read: ElementRef }]
|
|
161
183
|
}] } });
|