@progress/kendo-angular-inputs 20.1.0-develop.2 → 20.1.0-develop.21
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 +10 -2
- package/colorpicker/colorpicker.component.d.ts +4 -0
- package/colorpicker/localization/messages.d.ts +5 -1
- package/esm2022/colorpicker/color-gradient.component.mjs +20 -4
- package/esm2022/colorpicker/colorpicker.component.mjs +14 -4
- package/esm2022/colorpicker/flatcolorpicker.component.mjs +3 -1
- package/esm2022/colorpicker/localization/messages.mjs +7 -1
- package/esm2022/common/radio-checkbox.base.mjs +1 -1
- package/esm2022/package-metadata.mjs +2 -2
- package/esm2022/slider/slider.component.mjs +0 -4
- package/fesm2022/progress-kendo-angular-inputs.mjs +47 -17
- package/package.json +12 -12
|
@@ -38,7 +38,7 @@ export declare class ColorGradientComponent implements OnInit, OnChanges, OnDest
|
|
|
38
38
|
get gradientId(): string;
|
|
39
39
|
direction: string;
|
|
40
40
|
get hostTabindex(): string;
|
|
41
|
-
ariaRole: string;
|
|
41
|
+
get ariaRole(): string;
|
|
42
42
|
get isControlInvalid(): string;
|
|
43
43
|
get isDisabled(): string | undefined;
|
|
44
44
|
/**
|
|
@@ -157,6 +157,14 @@ export declare class ColorGradientComponent implements OnInit, OnChanges, OnDest
|
|
|
157
157
|
* @default 2
|
|
158
158
|
*/
|
|
159
159
|
gradientSliderSmallStep: number;
|
|
160
|
+
/**
|
|
161
|
+
* Controls whether ARIA attributes should be applied to the component.
|
|
162
|
+
* When used within FlatColorPicker, this should be set to false to comply with accessibility guidelines.
|
|
163
|
+
*
|
|
164
|
+
* @default true
|
|
165
|
+
* @hidden
|
|
166
|
+
*/
|
|
167
|
+
ariaAttributesEnabled: boolean;
|
|
160
168
|
gradientDragHandle: ElementRef;
|
|
161
169
|
inputs: ColorInputComponent;
|
|
162
170
|
private alphaSlider;
|
|
@@ -295,5 +303,5 @@ export declare class ColorGradientComponent implements OnInit, OnChanges, OnDest
|
|
|
295
303
|
private unsubscribeChanges;
|
|
296
304
|
private handleClasses;
|
|
297
305
|
static ɵfac: i0.ɵɵFactoryDeclaration<ColorGradientComponent, 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>;
|
|
306
|
+
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; }; "ariaAttributesEnabled": { "alias": "ariaAttributesEnabled"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
|
|
299
307
|
}
|
|
@@ -400,6 +400,10 @@ export declare class ColorPickerComponent implements OnInit, AfterViewInit, OnCh
|
|
|
400
400
|
* @hidden
|
|
401
401
|
*/
|
|
402
402
|
handlePopupKeyDown(event: any): void;
|
|
403
|
+
/**
|
|
404
|
+
* @hidden
|
|
405
|
+
*/
|
|
406
|
+
messageFor(key: string): string;
|
|
403
407
|
/**
|
|
404
408
|
* @hidden
|
|
405
409
|
* Used by the FloatingLabel to determine if the component is empty.
|
|
@@ -124,6 +124,10 @@ export declare class ColorPickerMessages extends ComponentMessages {
|
|
|
124
124
|
* Sets the title for the ActionSheet in adaptive mode.
|
|
125
125
|
*/
|
|
126
126
|
adaptiveTitle: string;
|
|
127
|
+
/**
|
|
128
|
+
* Sets the aria-label attribute of the ColorPicker toggle button.
|
|
129
|
+
*/
|
|
130
|
+
toggleButtonLabel: string;
|
|
127
131
|
static ɵfac: i0.ɵɵFactoryDeclaration<ColorPickerMessages, 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; }; "adaptiveCloseButtonTitle": { "alias": "adaptiveCloseButtonTitle"; "required": false; }; "adaptiveTitle": { "alias": "adaptiveTitle"; "required": false; }; }, {}, never, never, false, never>;
|
|
132
|
+
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; }; "adaptiveCloseButtonTitle": { "alias": "adaptiveCloseButtonTitle"; "required": false; }; "adaptiveTitle": { "alias": "adaptiveTitle"; "required": false; }; "toggleButtonLabel": { "alias": "toggleButtonLabel"; "required": false; }; }, {}, never, never, false, never>;
|
|
129
133
|
}
|
|
@@ -50,7 +50,7 @@ export class ColorGradientComponent {
|
|
|
50
50
|
injector;
|
|
51
51
|
hostClasses = true;
|
|
52
52
|
get readonlyAttribute() {
|
|
53
|
-
return this.readonly;
|
|
53
|
+
return this.ariaAttributesEnabled ? this.readonly : undefined;
|
|
54
54
|
}
|
|
55
55
|
get disabledClass() {
|
|
56
56
|
return this.disabled;
|
|
@@ -62,9 +62,11 @@ export class ColorGradientComponent {
|
|
|
62
62
|
get hostTabindex() {
|
|
63
63
|
return this.tabindex?.toString() || '0';
|
|
64
64
|
}
|
|
65
|
-
ariaRole
|
|
65
|
+
get ariaRole() {
|
|
66
|
+
return this.ariaAttributesEnabled ? 'textbox' : undefined;
|
|
67
|
+
}
|
|
66
68
|
get isControlInvalid() {
|
|
67
|
-
return (this.control?.invalid)?.toString();
|
|
69
|
+
return this.ariaAttributesEnabled ? (this.control?.invalid)?.toString() : undefined;
|
|
68
70
|
}
|
|
69
71
|
get isDisabled() {
|
|
70
72
|
return this.disabled?.toString() || undefined;
|
|
@@ -235,6 +237,14 @@ export class ColorGradientComponent {
|
|
|
235
237
|
* @default 2
|
|
236
238
|
*/
|
|
237
239
|
gradientSliderSmallStep = DRAGHANDLE_MOVE_SPEED_SMALL_STEP;
|
|
240
|
+
/**
|
|
241
|
+
* Controls whether ARIA attributes should be applied to the component.
|
|
242
|
+
* When used within FlatColorPicker, this should be set to false to comply with accessibility guidelines.
|
|
243
|
+
*
|
|
244
|
+
* @default true
|
|
245
|
+
* @hidden
|
|
246
|
+
*/
|
|
247
|
+
ariaAttributesEnabled = true;
|
|
238
248
|
gradientDragHandle;
|
|
239
249
|
inputs;
|
|
240
250
|
alphaSlider;
|
|
@@ -557,6 +567,10 @@ export class ColorGradientComponent {
|
|
|
557
567
|
this.renderer.setStyle(sliderTrack, 'background', `linear-gradient(to ${this.adaptiveMode ? 'right' : 'top'}, transparent, ${backgroundColor})`);
|
|
558
568
|
}
|
|
559
569
|
setHostElementAriaLabel() {
|
|
570
|
+
if (!this.ariaAttributesEnabled) {
|
|
571
|
+
this.renderer.removeAttribute(this.host.nativeElement, 'aria-label');
|
|
572
|
+
return;
|
|
573
|
+
}
|
|
560
574
|
const parsed = parseColor(this.value, this.format, this.opacity);
|
|
561
575
|
this.renderer.setAttribute(this.host.nativeElement, 'aria-label', `${this.value ? parsed : this.localizationService.get('colorGradientNoColor')}`);
|
|
562
576
|
}
|
|
@@ -628,7 +642,7 @@ export class ColorGradientComponent {
|
|
|
628
642
|
}
|
|
629
643
|
}
|
|
630
644
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ColorGradientComponent, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }, { token: i1.LocalizationService }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
|
|
631
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ColorGradientComponent, isStandalone: true, selector: "kendo-colorgradient", inputs: { adaptiveMode: "adaptiveMode", id: "id", opacity: "opacity", size: "size", disabled: "disabled", readonly: "readonly", clearButton: "clearButton", delay: "delay", value: "value", contrastTool: "contrastTool", tabindex: "tabindex", format: "format", gradientSliderStep: "gradientSliderStep", gradientSliderSmallStep: "gradientSliderSmallStep" }, outputs: { valueChange: "valueChange" }, host: { listeners: { "keydown.enter": "enterHandler($event)", "keydown.escape": "escapeHandler($event)", "focusin": "focusHandler($event)" }, properties: { "class.k-colorgradient": "this.hostClasses", "attr.aria-readonly": "this.readonlyAttribute", "class.k-disabled": "this.disabledClass", "attr.id": "this.gradientId", "attr.dir": "this.direction", "attr.tabindex": "this.hostTabindex", "attr.role": "this.ariaRole", "attr.aria-invalid": "this.isControlInvalid", "attr.aria-disabled": "this.isDisabled", "class.k-readonly": "this.readonly" } }, providers: [
|
|
645
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ColorGradientComponent, isStandalone: true, selector: "kendo-colorgradient", inputs: { adaptiveMode: "adaptiveMode", id: "id", opacity: "opacity", size: "size", disabled: "disabled", readonly: "readonly", clearButton: "clearButton", delay: "delay", value: "value", contrastTool: "contrastTool", tabindex: "tabindex", format: "format", gradientSliderStep: "gradientSliderStep", gradientSliderSmallStep: "gradientSliderSmallStep", ariaAttributesEnabled: "ariaAttributesEnabled" }, outputs: { valueChange: "valueChange" }, host: { listeners: { "keydown.enter": "enterHandler($event)", "keydown.escape": "escapeHandler($event)", "focusin": "focusHandler($event)" }, properties: { "class.k-colorgradient": "this.hostClasses", "attr.aria-readonly": "this.readonlyAttribute", "class.k-disabled": "this.disabledClass", "attr.id": "this.gradientId", "attr.dir": "this.direction", "attr.tabindex": "this.hostTabindex", "attr.role": "this.ariaRole", "attr.aria-invalid": "this.isControlInvalid", "attr.aria-disabled": "this.isDisabled", "class.k-readonly": "this.readonly" } }, providers: [
|
|
632
646
|
{
|
|
633
647
|
multi: true,
|
|
634
648
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -1067,6 +1081,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1067
1081
|
type: Input
|
|
1068
1082
|
}], gradientSliderSmallStep: [{
|
|
1069
1083
|
type: Input
|
|
1084
|
+
}], ariaAttributesEnabled: [{
|
|
1085
|
+
type: Input
|
|
1070
1086
|
}], gradientDragHandle: [{
|
|
1071
1087
|
type: ViewChild,
|
|
1072
1088
|
args: ['gradientDragHandle']
|
|
@@ -715,6 +715,12 @@ export class ColorPickerComponent {
|
|
|
715
715
|
}
|
|
716
716
|
}
|
|
717
717
|
}
|
|
718
|
+
/**
|
|
719
|
+
* @hidden
|
|
720
|
+
*/
|
|
721
|
+
messageFor(key) {
|
|
722
|
+
return this.localizationService.get(key);
|
|
723
|
+
}
|
|
718
724
|
/**
|
|
719
725
|
* @hidden
|
|
720
726
|
* Used by the FloatingLabel to determine if the component is empty.
|
|
@@ -953,7 +959,9 @@ export class ColorPickerComponent {
|
|
|
953
959
|
i18n-blueInputPlaceholder="kendo.colorpicker.blueInputPlaceholder|The placeholder for the blue color input."
|
|
954
960
|
blueInputPlaceholder="B"
|
|
955
961
|
i18n-hexInputPlaceholder="kendo.colorpicker.hexInputPlaceholder|The placeholder for the HEX color input."
|
|
956
|
-
hexInputPlaceholder="HEX"
|
|
962
|
+
hexInputPlaceholder="HEX"
|
|
963
|
+
i18n-toggleButtonLabel="kendo.colorpicker.toggleButtonLabel|The text set as aria-label on the toggle button."
|
|
964
|
+
toggleButtonLabel="Select color">
|
|
957
965
|
</ng-container>
|
|
958
966
|
<span #activeColor class="k-input-inner">
|
|
959
967
|
<span
|
|
@@ -981,8 +989,8 @@ export class ColorPickerComponent {
|
|
|
981
989
|
[fillMode]="fillMode"
|
|
982
990
|
[disabled]="disabled"
|
|
983
991
|
rounded="none"
|
|
984
|
-
aria-hidden="true"
|
|
985
992
|
class="k-input-button"
|
|
993
|
+
[attr.aria-label]="messageFor('toggleButtonLabel')"
|
|
986
994
|
>
|
|
987
995
|
</button>
|
|
988
996
|
<ng-template #popupTemplate>
|
|
@@ -1098,7 +1106,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1098
1106
|
i18n-blueInputPlaceholder="kendo.colorpicker.blueInputPlaceholder|The placeholder for the blue color input."
|
|
1099
1107
|
blueInputPlaceholder="B"
|
|
1100
1108
|
i18n-hexInputPlaceholder="kendo.colorpicker.hexInputPlaceholder|The placeholder for the HEX color input."
|
|
1101
|
-
hexInputPlaceholder="HEX"
|
|
1109
|
+
hexInputPlaceholder="HEX"
|
|
1110
|
+
i18n-toggleButtonLabel="kendo.colorpicker.toggleButtonLabel|The text set as aria-label on the toggle button."
|
|
1111
|
+
toggleButtonLabel="Select color">
|
|
1102
1112
|
</ng-container>
|
|
1103
1113
|
<span #activeColor class="k-input-inner">
|
|
1104
1114
|
<span
|
|
@@ -1126,8 +1136,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1126
1136
|
[fillMode]="fillMode"
|
|
1127
1137
|
[disabled]="disabled"
|
|
1128
1138
|
rounded="none"
|
|
1129
|
-
aria-hidden="true"
|
|
1130
1139
|
class="k-input-button"
|
|
1140
|
+
[attr.aria-label]="messageFor('toggleButtonLabel')"
|
|
1131
1141
|
>
|
|
1132
1142
|
</button>
|
|
1133
1143
|
<ng-template #popupTemplate>
|
|
@@ -649,6 +649,7 @@ export class FlatColorPickerComponent {
|
|
|
649
649
|
[gradientSliderSmallStep]="gradientSettings.gradientSliderSmallStep"
|
|
650
650
|
[gradientSliderStep]="gradientSettings.gradientSliderStep"
|
|
651
651
|
[readonly]="readonly"
|
|
652
|
+
[ariaAttributesEnabled]="false"
|
|
652
653
|
(keydown.tab)="focusFirstHeaderButton()"
|
|
653
654
|
(valueChange)="handleValueChange($event)"
|
|
654
655
|
></kendo-colorgradient>
|
|
@@ -674,7 +675,7 @@ export class FlatColorPickerComponent {
|
|
|
674
675
|
(actionButtonClick)="onAction($event)"
|
|
675
676
|
(tabOut)="firstFocusable.focus()">
|
|
676
677
|
</div>
|
|
677
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: LocalizedColorPickerMessagesDirective, selector: "[kendoColorPickerLocalizedMessages], [kendoFlatColorPickerLocalizedMessages], [kendoColorGradientLocalizedMessages], [kendoColorPaletteLocalizedMessages]" }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: FlatColorPickerHeaderComponent, selector: "[kendoFlatColorPickerHeader]", inputs: ["clearButton", "activeView", "views", "preview", "innerTabIndex", "value", "selection", "size"], outputs: ["viewChange", "valuePaneClick", "clearButtonClick", "tabOut"] }, { kind: "component", type: ColorGradientComponent, selector: "kendo-colorgradient", inputs: ["adaptiveMode", "id", "opacity", "size", "disabled", "readonly", "clearButton", "delay", "value", "contrastTool", "tabindex", "format", "gradientSliderStep", "gradientSliderSmallStep"], outputs: ["valueChange"], exportAs: ["kendoColorGradient"] }, { kind: "component", type: ColorPaletteComponent, selector: "kendo-colorpalette", inputs: ["id", "format", "value", "columns", "palette", "size", "tabindex", "disabled", "readonly", "tileSize"], outputs: ["selectionChange", "valueChange", "cellSelection"], exportAs: ["kendoColorPalette"] }, { kind: "component", type: FlatColorPickerActionButtonsComponent, selector: "[kendoFlatColorPickerActionButtons]", inputs: ["innerTabIndex", "size"], outputs: ["actionButtonClick", "tabOut"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
678
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: LocalizedColorPickerMessagesDirective, selector: "[kendoColorPickerLocalizedMessages], [kendoFlatColorPickerLocalizedMessages], [kendoColorGradientLocalizedMessages], [kendoColorPaletteLocalizedMessages]" }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: FlatColorPickerHeaderComponent, selector: "[kendoFlatColorPickerHeader]", inputs: ["clearButton", "activeView", "views", "preview", "innerTabIndex", "value", "selection", "size"], outputs: ["viewChange", "valuePaneClick", "clearButtonClick", "tabOut"] }, { kind: "component", type: ColorGradientComponent, selector: "kendo-colorgradient", inputs: ["adaptiveMode", "id", "opacity", "size", "disabled", "readonly", "clearButton", "delay", "value", "contrastTool", "tabindex", "format", "gradientSliderStep", "gradientSliderSmallStep", "ariaAttributesEnabled"], outputs: ["valueChange"], exportAs: ["kendoColorGradient"] }, { kind: "component", type: ColorPaletteComponent, selector: "kendo-colorpalette", inputs: ["id", "format", "value", "columns", "palette", "size", "tabindex", "disabled", "readonly", "tileSize"], outputs: ["selectionChange", "valueChange", "cellSelection"], exportAs: ["kendoColorPalette"] }, { kind: "component", type: FlatColorPickerActionButtonsComponent, selector: "[kendoFlatColorPickerActionButtons]", inputs: ["innerTabIndex", "size"], outputs: ["actionButtonClick", "tabOut"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
678
679
|
}
|
|
679
680
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FlatColorPickerComponent, decorators: [{
|
|
680
681
|
type: Component,
|
|
@@ -780,6 +781,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
780
781
|
[gradientSliderSmallStep]="gradientSettings.gradientSliderSmallStep"
|
|
781
782
|
[gradientSliderStep]="gradientSettings.gradientSliderStep"
|
|
782
783
|
[readonly]="readonly"
|
|
784
|
+
[ariaAttributesEnabled]="false"
|
|
783
785
|
(keydown.tab)="focusFirstHeaderButton()"
|
|
784
786
|
(valueChange)="handleValueChange($event)"
|
|
785
787
|
></kendo-colorgradient>
|
|
@@ -125,8 +125,12 @@ export class ColorPickerMessages extends ComponentMessages {
|
|
|
125
125
|
* Sets the title for the ActionSheet in adaptive mode.
|
|
126
126
|
*/
|
|
127
127
|
adaptiveTitle;
|
|
128
|
+
/**
|
|
129
|
+
* Sets the aria-label attribute of the ColorPicker toggle button.
|
|
130
|
+
*/
|
|
131
|
+
toggleButtonLabel;
|
|
128
132
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ColorPickerMessages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
129
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: ColorPickerMessages, selector: "kendo-colorpicker-messages-base", inputs: { colorPaletteNoColor: "colorPaletteNoColor", colorGradientNoColor: "colorGradientNoColor", flatColorPickerNoColor: "flatColorPickerNoColor", colorPickerNoColor: "colorPickerNoColor", colorGradientHandle: "colorGradientHandle", clearButton: "clearButton", hueSliderHandle: "hueSliderHandle", opacitySliderHandle: "opacitySliderHandle", hexInputPlaceholder: "hexInputPlaceholder", redInputPlaceholder: "redInputPlaceholder", greenInputPlaceholder: "greenInputPlaceholder", blueInputPlaceholder: "blueInputPlaceholder", alphaInputPlaceholder: "alphaInputPlaceholder", redChannelLabel: "redChannelLabel", greenChannelLabel: "greenChannelLabel", blueChannelLabel: "blueChannelLabel", alphaChannelLabel: "alphaChannelLabel", passContrast: "passContrast", failContrast: "failContrast", contrastRatio: "contrastRatio", previewColor: "previewColor", revertSelection: "revertSelection", gradientView: "gradientView", paletteView: "paletteView", formatButton: "formatButton", applyButton: "applyButton", cancelButton: "cancelButton", adaptiveCloseButtonTitle: "adaptiveCloseButtonTitle", adaptiveTitle: "adaptiveTitle" }, usesInheritance: true, ngImport: i0 });
|
|
133
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: ColorPickerMessages, selector: "kendo-colorpicker-messages-base", inputs: { colorPaletteNoColor: "colorPaletteNoColor", colorGradientNoColor: "colorGradientNoColor", flatColorPickerNoColor: "flatColorPickerNoColor", colorPickerNoColor: "colorPickerNoColor", colorGradientHandle: "colorGradientHandle", clearButton: "clearButton", hueSliderHandle: "hueSliderHandle", opacitySliderHandle: "opacitySliderHandle", hexInputPlaceholder: "hexInputPlaceholder", redInputPlaceholder: "redInputPlaceholder", greenInputPlaceholder: "greenInputPlaceholder", blueInputPlaceholder: "blueInputPlaceholder", alphaInputPlaceholder: "alphaInputPlaceholder", redChannelLabel: "redChannelLabel", greenChannelLabel: "greenChannelLabel", blueChannelLabel: "blueChannelLabel", alphaChannelLabel: "alphaChannelLabel", passContrast: "passContrast", failContrast: "failContrast", contrastRatio: "contrastRatio", previewColor: "previewColor", revertSelection: "revertSelection", gradientView: "gradientView", paletteView: "paletteView", formatButton: "formatButton", applyButton: "applyButton", cancelButton: "cancelButton", adaptiveCloseButtonTitle: "adaptiveCloseButtonTitle", adaptiveTitle: "adaptiveTitle", toggleButtonLabel: "toggleButtonLabel" }, usesInheritance: true, ngImport: i0 });
|
|
130
134
|
}
|
|
131
135
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ColorPickerMessages, decorators: [{
|
|
132
136
|
type: Directive,
|
|
@@ -192,4 +196,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
192
196
|
type: Input
|
|
193
197
|
}], adaptiveTitle: [{
|
|
194
198
|
type: Input
|
|
199
|
+
}], toggleButtonLabel: [{
|
|
200
|
+
type: Input
|
|
195
201
|
}] } });
|
|
@@ -179,7 +179,7 @@ export class RadioCheckBoxBase {
|
|
|
179
179
|
* @hidden
|
|
180
180
|
*/
|
|
181
181
|
get isControlInvalid() {
|
|
182
|
-
return this.control
|
|
182
|
+
return this.control?.touched && this.control?.invalid;
|
|
183
183
|
}
|
|
184
184
|
/**
|
|
185
185
|
* Represents the visible `input` element.
|
|
@@ -10,7 +10,7 @@ export const packageMetadata = {
|
|
|
10
10
|
productName: 'Kendo UI for Angular',
|
|
11
11
|
productCode: 'KENDOUIANGULAR',
|
|
12
12
|
productCodes: ['KENDOUIANGULAR'],
|
|
13
|
-
publishDate:
|
|
14
|
-
version: '20.1.0-develop.
|
|
13
|
+
publishDate: 1760027319,
|
|
14
|
+
version: '20.1.0-develop.21',
|
|
15
15
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
16
16
|
};
|
|
@@ -484,7 +484,6 @@ export class SliderComponent extends SliderBase {
|
|
|
484
484
|
[svgIcon]="decreaseButtonArrowSVGIcon"
|
|
485
485
|
class="k-button-decrease"
|
|
486
486
|
[title]="decrementMessage"
|
|
487
|
-
aria-hidden="true"
|
|
488
487
|
[attr.tabindex]="-1"
|
|
489
488
|
></button>
|
|
490
489
|
<div
|
|
@@ -542,7 +541,6 @@ export class SliderComponent extends SliderBase {
|
|
|
542
541
|
class="k-button-increase"
|
|
543
542
|
[title]="incrementMessage"
|
|
544
543
|
[attr.tabindex]="-1"
|
|
545
|
-
aria-hidden="true"
|
|
546
544
|
></button>
|
|
547
545
|
<kendo-resize-sensor (resize)="sizeComponent(false)"></kendo-resize-sensor>
|
|
548
546
|
`, isInline: true, dependencies: [{ kind: "directive", type: LocalizedSliderMessagesDirective, selector: "[kendoSliderLocalizedMessages]" }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { 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"] }, { kind: "directive", type: EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { kind: "component", type: SliderTicksComponent, selector: "[kendoSliderTicks]", inputs: ["tickTitle", "vertical", "step", "largeStep", "min", "max", "labelTemplate"] }, { kind: "directive", type: DraggableDirective, selector: "[kendoDraggable]", inputs: ["enableDrag"], outputs: ["kendoPress", "kendoDrag", "kendoRelease"] }, { kind: "component", type: ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }] });
|
|
@@ -577,7 +575,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
577
575
|
[svgIcon]="decreaseButtonArrowSVGIcon"
|
|
578
576
|
class="k-button-decrease"
|
|
579
577
|
[title]="decrementMessage"
|
|
580
|
-
aria-hidden="true"
|
|
581
578
|
[attr.tabindex]="-1"
|
|
582
579
|
></button>
|
|
583
580
|
<div
|
|
@@ -635,7 +632,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
635
632
|
class="k-button-increase"
|
|
636
633
|
[title]="incrementMessage"
|
|
637
634
|
[attr.tabindex]="-1"
|
|
638
|
-
aria-hidden="true"
|
|
639
635
|
></button>
|
|
640
636
|
<kendo-resize-sensor (resize)="sizeComponent(false)"></kendo-resize-sensor>
|
|
641
637
|
`,
|
|
@@ -550,8 +550,8 @@ const packageMetadata = {
|
|
|
550
550
|
productName: 'Kendo UI for Angular',
|
|
551
551
|
productCode: 'KENDOUIANGULAR',
|
|
552
552
|
productCodes: ['KENDOUIANGULAR'],
|
|
553
|
-
publishDate:
|
|
554
|
-
version: '20.1.0-develop.
|
|
553
|
+
publishDate: 1760027319,
|
|
554
|
+
version: '20.1.0-develop.21',
|
|
555
555
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
556
556
|
};
|
|
557
557
|
|
|
@@ -1528,7 +1528,6 @@ class SliderComponent extends SliderBase {
|
|
|
1528
1528
|
[svgIcon]="decreaseButtonArrowSVGIcon"
|
|
1529
1529
|
class="k-button-decrease"
|
|
1530
1530
|
[title]="decrementMessage"
|
|
1531
|
-
aria-hidden="true"
|
|
1532
1531
|
[attr.tabindex]="-1"
|
|
1533
1532
|
></button>
|
|
1534
1533
|
<div
|
|
@@ -1586,7 +1585,6 @@ class SliderComponent extends SliderBase {
|
|
|
1586
1585
|
class="k-button-increase"
|
|
1587
1586
|
[title]="incrementMessage"
|
|
1588
1587
|
[attr.tabindex]="-1"
|
|
1589
|
-
aria-hidden="true"
|
|
1590
1588
|
></button>
|
|
1591
1589
|
<kendo-resize-sensor (resize)="sizeComponent(false)"></kendo-resize-sensor>
|
|
1592
1590
|
`, isInline: true, dependencies: [{ kind: "directive", type: LocalizedSliderMessagesDirective, selector: "[kendoSliderLocalizedMessages]" }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { 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"] }, { kind: "directive", type: EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { kind: "component", type: SliderTicksComponent, selector: "[kendoSliderTicks]", inputs: ["tickTitle", "vertical", "step", "largeStep", "min", "max", "labelTemplate"] }, { kind: "directive", type: DraggableDirective, selector: "[kendoDraggable]", inputs: ["enableDrag"], outputs: ["kendoPress", "kendoDrag", "kendoRelease"] }, { kind: "component", type: ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }] });
|
|
@@ -1621,7 +1619,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1621
1619
|
[svgIcon]="decreaseButtonArrowSVGIcon"
|
|
1622
1620
|
class="k-button-decrease"
|
|
1623
1621
|
[title]="decrementMessage"
|
|
1624
|
-
aria-hidden="true"
|
|
1625
1622
|
[attr.tabindex]="-1"
|
|
1626
1623
|
></button>
|
|
1627
1624
|
<div
|
|
@@ -1679,7 +1676,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1679
1676
|
class="k-button-increase"
|
|
1680
1677
|
[title]="incrementMessage"
|
|
1681
1678
|
[attr.tabindex]="-1"
|
|
1682
|
-
aria-hidden="true"
|
|
1683
1679
|
></button>
|
|
1684
1680
|
<kendo-resize-sensor (resize)="sizeComponent(false)"></kendo-resize-sensor>
|
|
1685
1681
|
`,
|
|
@@ -6546,7 +6542,7 @@ class RadioCheckBoxBase {
|
|
|
6546
6542
|
* @hidden
|
|
6547
6543
|
*/
|
|
6548
6544
|
get isControlInvalid() {
|
|
6549
|
-
return this.control
|
|
6545
|
+
return this.control?.touched && this.control?.invalid;
|
|
6550
6546
|
}
|
|
6551
6547
|
/**
|
|
6552
6548
|
* Represents the visible `input` element.
|
|
@@ -9283,8 +9279,12 @@ class ColorPickerMessages extends ComponentMessages {
|
|
|
9283
9279
|
* Sets the title for the ActionSheet in adaptive mode.
|
|
9284
9280
|
*/
|
|
9285
9281
|
adaptiveTitle;
|
|
9282
|
+
/**
|
|
9283
|
+
* Sets the aria-label attribute of the ColorPicker toggle button.
|
|
9284
|
+
*/
|
|
9285
|
+
toggleButtonLabel;
|
|
9286
9286
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ColorPickerMessages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
9287
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: ColorPickerMessages, selector: "kendo-colorpicker-messages-base", inputs: { colorPaletteNoColor: "colorPaletteNoColor", colorGradientNoColor: "colorGradientNoColor", flatColorPickerNoColor: "flatColorPickerNoColor", colorPickerNoColor: "colorPickerNoColor", colorGradientHandle: "colorGradientHandle", clearButton: "clearButton", hueSliderHandle: "hueSliderHandle", opacitySliderHandle: "opacitySliderHandle", hexInputPlaceholder: "hexInputPlaceholder", redInputPlaceholder: "redInputPlaceholder", greenInputPlaceholder: "greenInputPlaceholder", blueInputPlaceholder: "blueInputPlaceholder", alphaInputPlaceholder: "alphaInputPlaceholder", redChannelLabel: "redChannelLabel", greenChannelLabel: "greenChannelLabel", blueChannelLabel: "blueChannelLabel", alphaChannelLabel: "alphaChannelLabel", passContrast: "passContrast", failContrast: "failContrast", contrastRatio: "contrastRatio", previewColor: "previewColor", revertSelection: "revertSelection", gradientView: "gradientView", paletteView: "paletteView", formatButton: "formatButton", applyButton: "applyButton", cancelButton: "cancelButton", adaptiveCloseButtonTitle: "adaptiveCloseButtonTitle", adaptiveTitle: "adaptiveTitle" }, usesInheritance: true, ngImport: i0 });
|
|
9287
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: ColorPickerMessages, selector: "kendo-colorpicker-messages-base", inputs: { colorPaletteNoColor: "colorPaletteNoColor", colorGradientNoColor: "colorGradientNoColor", flatColorPickerNoColor: "flatColorPickerNoColor", colorPickerNoColor: "colorPickerNoColor", colorGradientHandle: "colorGradientHandle", clearButton: "clearButton", hueSliderHandle: "hueSliderHandle", opacitySliderHandle: "opacitySliderHandle", hexInputPlaceholder: "hexInputPlaceholder", redInputPlaceholder: "redInputPlaceholder", greenInputPlaceholder: "greenInputPlaceholder", blueInputPlaceholder: "blueInputPlaceholder", alphaInputPlaceholder: "alphaInputPlaceholder", redChannelLabel: "redChannelLabel", greenChannelLabel: "greenChannelLabel", blueChannelLabel: "blueChannelLabel", alphaChannelLabel: "alphaChannelLabel", passContrast: "passContrast", failContrast: "failContrast", contrastRatio: "contrastRatio", previewColor: "previewColor", revertSelection: "revertSelection", gradientView: "gradientView", paletteView: "paletteView", formatButton: "formatButton", applyButton: "applyButton", cancelButton: "cancelButton", adaptiveCloseButtonTitle: "adaptiveCloseButtonTitle", adaptiveTitle: "adaptiveTitle", toggleButtonLabel: "toggleButtonLabel" }, usesInheritance: true, ngImport: i0 });
|
|
9288
9288
|
}
|
|
9289
9289
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ColorPickerMessages, decorators: [{
|
|
9290
9290
|
type: Directive,
|
|
@@ -9350,6 +9350,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
9350
9350
|
type: Input
|
|
9351
9351
|
}], adaptiveTitle: [{
|
|
9352
9352
|
type: Input
|
|
9353
|
+
}], toggleButtonLabel: [{
|
|
9354
|
+
type: Input
|
|
9353
9355
|
}] } });
|
|
9354
9356
|
|
|
9355
9357
|
/**
|
|
@@ -9408,7 +9410,7 @@ class ColorGradientComponent {
|
|
|
9408
9410
|
injector;
|
|
9409
9411
|
hostClasses = true;
|
|
9410
9412
|
get readonlyAttribute() {
|
|
9411
|
-
return this.readonly;
|
|
9413
|
+
return this.ariaAttributesEnabled ? this.readonly : undefined;
|
|
9412
9414
|
}
|
|
9413
9415
|
get disabledClass() {
|
|
9414
9416
|
return this.disabled;
|
|
@@ -9420,9 +9422,11 @@ class ColorGradientComponent {
|
|
|
9420
9422
|
get hostTabindex() {
|
|
9421
9423
|
return this.tabindex?.toString() || '0';
|
|
9422
9424
|
}
|
|
9423
|
-
ariaRole
|
|
9425
|
+
get ariaRole() {
|
|
9426
|
+
return this.ariaAttributesEnabled ? 'textbox' : undefined;
|
|
9427
|
+
}
|
|
9424
9428
|
get isControlInvalid() {
|
|
9425
|
-
return (this.control?.invalid)?.toString();
|
|
9429
|
+
return this.ariaAttributesEnabled ? (this.control?.invalid)?.toString() : undefined;
|
|
9426
9430
|
}
|
|
9427
9431
|
get isDisabled() {
|
|
9428
9432
|
return this.disabled?.toString() || undefined;
|
|
@@ -9593,6 +9597,14 @@ class ColorGradientComponent {
|
|
|
9593
9597
|
* @default 2
|
|
9594
9598
|
*/
|
|
9595
9599
|
gradientSliderSmallStep = DRAGHANDLE_MOVE_SPEED_SMALL_STEP;
|
|
9600
|
+
/**
|
|
9601
|
+
* Controls whether ARIA attributes should be applied to the component.
|
|
9602
|
+
* When used within FlatColorPicker, this should be set to false to comply with accessibility guidelines.
|
|
9603
|
+
*
|
|
9604
|
+
* @default true
|
|
9605
|
+
* @hidden
|
|
9606
|
+
*/
|
|
9607
|
+
ariaAttributesEnabled = true;
|
|
9596
9608
|
gradientDragHandle;
|
|
9597
9609
|
inputs;
|
|
9598
9610
|
alphaSlider;
|
|
@@ -9915,6 +9927,10 @@ class ColorGradientComponent {
|
|
|
9915
9927
|
this.renderer.setStyle(sliderTrack, 'background', `linear-gradient(to ${this.adaptiveMode ? 'right' : 'top'}, transparent, ${backgroundColor})`);
|
|
9916
9928
|
}
|
|
9917
9929
|
setHostElementAriaLabel() {
|
|
9930
|
+
if (!this.ariaAttributesEnabled) {
|
|
9931
|
+
this.renderer.removeAttribute(this.host.nativeElement, 'aria-label');
|
|
9932
|
+
return;
|
|
9933
|
+
}
|
|
9918
9934
|
const parsed = parseColor(this.value, this.format, this.opacity);
|
|
9919
9935
|
this.renderer.setAttribute(this.host.nativeElement, 'aria-label', `${this.value ? parsed : this.localizationService.get('colorGradientNoColor')}`);
|
|
9920
9936
|
}
|
|
@@ -9986,7 +10002,7 @@ class ColorGradientComponent {
|
|
|
9986
10002
|
}
|
|
9987
10003
|
}
|
|
9988
10004
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ColorGradientComponent, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }, { token: i1.LocalizationService }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
|
|
9989
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ColorGradientComponent, isStandalone: true, selector: "kendo-colorgradient", inputs: { adaptiveMode: "adaptiveMode", id: "id", opacity: "opacity", size: "size", disabled: "disabled", readonly: "readonly", clearButton: "clearButton", delay: "delay", value: "value", contrastTool: "contrastTool", tabindex: "tabindex", format: "format", gradientSliderStep: "gradientSliderStep", gradientSliderSmallStep: "gradientSliderSmallStep" }, outputs: { valueChange: "valueChange" }, host: { listeners: { "keydown.enter": "enterHandler($event)", "keydown.escape": "escapeHandler($event)", "focusin": "focusHandler($event)" }, properties: { "class.k-colorgradient": "this.hostClasses", "attr.aria-readonly": "this.readonlyAttribute", "class.k-disabled": "this.disabledClass", "attr.id": "this.gradientId", "attr.dir": "this.direction", "attr.tabindex": "this.hostTabindex", "attr.role": "this.ariaRole", "attr.aria-invalid": "this.isControlInvalid", "attr.aria-disabled": "this.isDisabled", "class.k-readonly": "this.readonly" } }, providers: [
|
|
10005
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ColorGradientComponent, isStandalone: true, selector: "kendo-colorgradient", inputs: { adaptiveMode: "adaptiveMode", id: "id", opacity: "opacity", size: "size", disabled: "disabled", readonly: "readonly", clearButton: "clearButton", delay: "delay", value: "value", contrastTool: "contrastTool", tabindex: "tabindex", format: "format", gradientSliderStep: "gradientSliderStep", gradientSliderSmallStep: "gradientSliderSmallStep", ariaAttributesEnabled: "ariaAttributesEnabled" }, outputs: { valueChange: "valueChange" }, host: { listeners: { "keydown.enter": "enterHandler($event)", "keydown.escape": "escapeHandler($event)", "focusin": "focusHandler($event)" }, properties: { "class.k-colorgradient": "this.hostClasses", "attr.aria-readonly": "this.readonlyAttribute", "class.k-disabled": "this.disabledClass", "attr.id": "this.gradientId", "attr.dir": "this.direction", "attr.tabindex": "this.hostTabindex", "attr.role": "this.ariaRole", "attr.aria-invalid": "this.isControlInvalid", "attr.aria-disabled": "this.isDisabled", "class.k-readonly": "this.readonly" } }, providers: [
|
|
9990
10006
|
{
|
|
9991
10007
|
multi: true,
|
|
9992
10008
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -10425,6 +10441,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
10425
10441
|
type: Input
|
|
10426
10442
|
}], gradientSliderSmallStep: [{
|
|
10427
10443
|
type: Input
|
|
10444
|
+
}], ariaAttributesEnabled: [{
|
|
10445
|
+
type: Input
|
|
10428
10446
|
}], gradientDragHandle: [{
|
|
10429
10447
|
type: ViewChild,
|
|
10430
10448
|
args: ['gradientDragHandle']
|
|
@@ -12258,6 +12276,7 @@ class FlatColorPickerComponent {
|
|
|
12258
12276
|
[gradientSliderSmallStep]="gradientSettings.gradientSliderSmallStep"
|
|
12259
12277
|
[gradientSliderStep]="gradientSettings.gradientSliderStep"
|
|
12260
12278
|
[readonly]="readonly"
|
|
12279
|
+
[ariaAttributesEnabled]="false"
|
|
12261
12280
|
(keydown.tab)="focusFirstHeaderButton()"
|
|
12262
12281
|
(valueChange)="handleValueChange($event)"
|
|
12263
12282
|
></kendo-colorgradient>
|
|
@@ -12283,7 +12302,7 @@ class FlatColorPickerComponent {
|
|
|
12283
12302
|
(actionButtonClick)="onAction($event)"
|
|
12284
12303
|
(tabOut)="firstFocusable.focus()">
|
|
12285
12304
|
</div>
|
|
12286
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: LocalizedColorPickerMessagesDirective, selector: "[kendoColorPickerLocalizedMessages], [kendoFlatColorPickerLocalizedMessages], [kendoColorGradientLocalizedMessages], [kendoColorPaletteLocalizedMessages]" }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: FlatColorPickerHeaderComponent, selector: "[kendoFlatColorPickerHeader]", inputs: ["clearButton", "activeView", "views", "preview", "innerTabIndex", "value", "selection", "size"], outputs: ["viewChange", "valuePaneClick", "clearButtonClick", "tabOut"] }, { kind: "component", type: ColorGradientComponent, selector: "kendo-colorgradient", inputs: ["adaptiveMode", "id", "opacity", "size", "disabled", "readonly", "clearButton", "delay", "value", "contrastTool", "tabindex", "format", "gradientSliderStep", "gradientSliderSmallStep"], outputs: ["valueChange"], exportAs: ["kendoColorGradient"] }, { kind: "component", type: ColorPaletteComponent, selector: "kendo-colorpalette", inputs: ["id", "format", "value", "columns", "palette", "size", "tabindex", "disabled", "readonly", "tileSize"], outputs: ["selectionChange", "valueChange", "cellSelection"], exportAs: ["kendoColorPalette"] }, { kind: "component", type: FlatColorPickerActionButtonsComponent, selector: "[kendoFlatColorPickerActionButtons]", inputs: ["innerTabIndex", "size"], outputs: ["actionButtonClick", "tabOut"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
12305
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: LocalizedColorPickerMessagesDirective, selector: "[kendoColorPickerLocalizedMessages], [kendoFlatColorPickerLocalizedMessages], [kendoColorGradientLocalizedMessages], [kendoColorPaletteLocalizedMessages]" }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: FlatColorPickerHeaderComponent, selector: "[kendoFlatColorPickerHeader]", inputs: ["clearButton", "activeView", "views", "preview", "innerTabIndex", "value", "selection", "size"], outputs: ["viewChange", "valuePaneClick", "clearButtonClick", "tabOut"] }, { kind: "component", type: ColorGradientComponent, selector: "kendo-colorgradient", inputs: ["adaptiveMode", "id", "opacity", "size", "disabled", "readonly", "clearButton", "delay", "value", "contrastTool", "tabindex", "format", "gradientSliderStep", "gradientSliderSmallStep", "ariaAttributesEnabled"], outputs: ["valueChange"], exportAs: ["kendoColorGradient"] }, { kind: "component", type: ColorPaletteComponent, selector: "kendo-colorpalette", inputs: ["id", "format", "value", "columns", "palette", "size", "tabindex", "disabled", "readonly", "tileSize"], outputs: ["selectionChange", "valueChange", "cellSelection"], exportAs: ["kendoColorPalette"] }, { kind: "component", type: FlatColorPickerActionButtonsComponent, selector: "[kendoFlatColorPickerActionButtons]", inputs: ["innerTabIndex", "size"], outputs: ["actionButtonClick", "tabOut"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
12287
12306
|
}
|
|
12288
12307
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FlatColorPickerComponent, decorators: [{
|
|
12289
12308
|
type: Component,
|
|
@@ -12389,6 +12408,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
12389
12408
|
[gradientSliderSmallStep]="gradientSettings.gradientSliderSmallStep"
|
|
12390
12409
|
[gradientSliderStep]="gradientSettings.gradientSliderStep"
|
|
12391
12410
|
[readonly]="readonly"
|
|
12411
|
+
[ariaAttributesEnabled]="false"
|
|
12392
12412
|
(keydown.tab)="focusFirstHeaderButton()"
|
|
12393
12413
|
(valueChange)="handleValueChange($event)"
|
|
12394
12414
|
></kendo-colorgradient>
|
|
@@ -13459,6 +13479,12 @@ class ColorPickerComponent {
|
|
|
13459
13479
|
}
|
|
13460
13480
|
}
|
|
13461
13481
|
}
|
|
13482
|
+
/**
|
|
13483
|
+
* @hidden
|
|
13484
|
+
*/
|
|
13485
|
+
messageFor(key) {
|
|
13486
|
+
return this.localizationService.get(key);
|
|
13487
|
+
}
|
|
13462
13488
|
/**
|
|
13463
13489
|
* @hidden
|
|
13464
13490
|
* Used by the FloatingLabel to determine if the component is empty.
|
|
@@ -13697,7 +13723,9 @@ class ColorPickerComponent {
|
|
|
13697
13723
|
i18n-blueInputPlaceholder="kendo.colorpicker.blueInputPlaceholder|The placeholder for the blue color input."
|
|
13698
13724
|
blueInputPlaceholder="B"
|
|
13699
13725
|
i18n-hexInputPlaceholder="kendo.colorpicker.hexInputPlaceholder|The placeholder for the HEX color input."
|
|
13700
|
-
hexInputPlaceholder="HEX"
|
|
13726
|
+
hexInputPlaceholder="HEX"
|
|
13727
|
+
i18n-toggleButtonLabel="kendo.colorpicker.toggleButtonLabel|The text set as aria-label on the toggle button."
|
|
13728
|
+
toggleButtonLabel="Select color">
|
|
13701
13729
|
</ng-container>
|
|
13702
13730
|
<span #activeColor class="k-input-inner">
|
|
13703
13731
|
<span
|
|
@@ -13725,8 +13753,8 @@ class ColorPickerComponent {
|
|
|
13725
13753
|
[fillMode]="fillMode"
|
|
13726
13754
|
[disabled]="disabled"
|
|
13727
13755
|
rounded="none"
|
|
13728
|
-
aria-hidden="true"
|
|
13729
13756
|
class="k-input-button"
|
|
13757
|
+
[attr.aria-label]="messageFor('toggleButtonLabel')"
|
|
13730
13758
|
>
|
|
13731
13759
|
</button>
|
|
13732
13760
|
<ng-template #popupTemplate>
|
|
@@ -13842,7 +13870,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
13842
13870
|
i18n-blueInputPlaceholder="kendo.colorpicker.blueInputPlaceholder|The placeholder for the blue color input."
|
|
13843
13871
|
blueInputPlaceholder="B"
|
|
13844
13872
|
i18n-hexInputPlaceholder="kendo.colorpicker.hexInputPlaceholder|The placeholder for the HEX color input."
|
|
13845
|
-
hexInputPlaceholder="HEX"
|
|
13873
|
+
hexInputPlaceholder="HEX"
|
|
13874
|
+
i18n-toggleButtonLabel="kendo.colorpicker.toggleButtonLabel|The text set as aria-label on the toggle button."
|
|
13875
|
+
toggleButtonLabel="Select color">
|
|
13846
13876
|
</ng-container>
|
|
13847
13877
|
<span #activeColor class="k-input-inner">
|
|
13848
13878
|
<span
|
|
@@ -13870,8 +13900,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
13870
13900
|
[fillMode]="fillMode"
|
|
13871
13901
|
[disabled]="disabled"
|
|
13872
13902
|
rounded="none"
|
|
13873
|
-
aria-hidden="true"
|
|
13874
13903
|
class="k-input-button"
|
|
13904
|
+
[attr.aria-label]="messageFor('toggleButtonLabel')"
|
|
13875
13905
|
>
|
|
13876
13906
|
</button>
|
|
13877
13907
|
<ng-template #popupTemplate>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-inputs",
|
|
3
|
-
"version": "20.1.0-develop.
|
|
3
|
+
"version": "20.1.0-develop.21",
|
|
4
4
|
"description": "Kendo UI for Angular Inputs Package - Everything you need to build professional form functionality (Checkbox, ColorGradient, ColorPalette, ColorPicker, FlatColorPicker, FormField, MaskedTextBox, NumericTextBox, RadioButton, RangeSlider, Slider, Switch, TextArea, and TextBox Components)",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Progress",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"package": {
|
|
29
29
|
"productName": "Kendo UI for Angular",
|
|
30
30
|
"productCode": "KENDOUIANGULAR",
|
|
31
|
-
"publishDate":
|
|
31
|
+
"publishDate": 1760027319,
|
|
32
32
|
"licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
|
|
33
33
|
}
|
|
34
34
|
},
|
|
@@ -40,20 +40,20 @@
|
|
|
40
40
|
"@angular/platform-browser": "16 - 20",
|
|
41
41
|
"@progress/kendo-drawing": "^1.21.0",
|
|
42
42
|
"@progress/kendo-licensing": "^1.7.0",
|
|
43
|
-
"@progress/kendo-angular-buttons": "20.1.0-develop.
|
|
44
|
-
"@progress/kendo-angular-common": "20.1.0-develop.
|
|
45
|
-
"@progress/kendo-angular-utils": "20.1.0-develop.
|
|
46
|
-
"@progress/kendo-angular-navigation": "20.1.0-develop.
|
|
47
|
-
"@progress/kendo-angular-dialog": "20.1.0-develop.
|
|
48
|
-
"@progress/kendo-angular-intl": "20.1.0-develop.
|
|
49
|
-
"@progress/kendo-angular-l10n": "20.1.0-develop.
|
|
50
|
-
"@progress/kendo-angular-popup": "20.1.0-develop.
|
|
51
|
-
"@progress/kendo-angular-icons": "20.1.0-develop.
|
|
43
|
+
"@progress/kendo-angular-buttons": "20.1.0-develop.21",
|
|
44
|
+
"@progress/kendo-angular-common": "20.1.0-develop.21",
|
|
45
|
+
"@progress/kendo-angular-utils": "20.1.0-develop.21",
|
|
46
|
+
"@progress/kendo-angular-navigation": "20.1.0-develop.21",
|
|
47
|
+
"@progress/kendo-angular-dialog": "20.1.0-develop.21",
|
|
48
|
+
"@progress/kendo-angular-intl": "20.1.0-develop.21",
|
|
49
|
+
"@progress/kendo-angular-l10n": "20.1.0-develop.21",
|
|
50
|
+
"@progress/kendo-angular-popup": "20.1.0-develop.21",
|
|
51
|
+
"@progress/kendo-angular-icons": "20.1.0-develop.21",
|
|
52
52
|
"rxjs": "^6.5.3 || ^7.0.0"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"tslib": "^2.3.1",
|
|
56
|
-
"@progress/kendo-angular-schematics": "20.1.0-develop.
|
|
56
|
+
"@progress/kendo-angular-schematics": "20.1.0-develop.21",
|
|
57
57
|
"@progress/kendo-common": "^1.0.1",
|
|
58
58
|
"@progress/kendo-draggable": "^3.0.0",
|
|
59
59
|
"@progress/kendo-inputs-common": "^3.1.0"
|