@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
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { __awaiter } from "tslib";
|
|
6
|
-
import { ChangeDetectionStrategy, Component, EventEmitter, forwardRef, HostBinding, Input, Output, ViewChild } from '@angular/core';
|
|
6
|
+
import { ChangeDetectionStrategy, Component, ElementRef, EventEmitter, forwardRef, HostBinding, Input, Output, ViewChild } from '@angular/core';
|
|
7
7
|
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
8
8
|
import { anyChanged, closest, isDocumentAvailable, Keys } from '@progress/kendo-angular-common';
|
|
9
9
|
import { L10N_PREFIX, LocalizationService } from '@progress/kendo-angular-l10n';
|
|
@@ -206,6 +206,12 @@ export class SignatureComponent {
|
|
|
206
206
|
get isEmpty() {
|
|
207
207
|
return !this.value;
|
|
208
208
|
}
|
|
209
|
+
/**
|
|
210
|
+
* @hidden
|
|
211
|
+
*/
|
|
212
|
+
get canvasLabel() {
|
|
213
|
+
return this.getMessage('canvasLabel');
|
|
214
|
+
}
|
|
209
215
|
/**
|
|
210
216
|
* @hidden
|
|
211
217
|
*/
|
|
@@ -367,27 +373,33 @@ export class SignatureComponent {
|
|
|
367
373
|
* @hidden
|
|
368
374
|
*/
|
|
369
375
|
onDialogClick(e) {
|
|
376
|
+
var _a;
|
|
370
377
|
if (e.target.classList.contains('k-overlay')) {
|
|
371
378
|
this.isOpen = false;
|
|
379
|
+
(_a = this.maximizeButton) === null || _a === void 0 ? void 0 : _a.nativeElement.focus();
|
|
372
380
|
}
|
|
373
381
|
}
|
|
374
382
|
/**
|
|
375
383
|
* @hidden
|
|
376
384
|
*/
|
|
377
385
|
onDialogKeydown(e) {
|
|
386
|
+
var _a;
|
|
378
387
|
if (e.keyCode === Keys.Escape) {
|
|
379
388
|
this.isOpen = false;
|
|
380
389
|
this.cd.detectChanges();
|
|
390
|
+
(_a = this.maximizeButton) === null || _a === void 0 ? void 0 : _a.nativeElement.focus();
|
|
381
391
|
}
|
|
382
392
|
}
|
|
383
393
|
/**
|
|
384
394
|
* @hidden
|
|
385
395
|
*/
|
|
386
396
|
onDialogClose() {
|
|
397
|
+
var _a;
|
|
387
398
|
const args = new SignatureCloseEvent();
|
|
388
399
|
this.close.next(args);
|
|
389
400
|
if (!args.isDefaultPrevented()) {
|
|
390
401
|
this.isOpen = false;
|
|
402
|
+
(_a = this.maximizeButton) === null || _a === void 0 ? void 0 : _a.nativeElement.focus();
|
|
391
403
|
}
|
|
392
404
|
}
|
|
393
405
|
/**
|
|
@@ -566,19 +578,22 @@ SignatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ver
|
|
|
566
578
|
LocalizationService,
|
|
567
579
|
{ provide: L10N_PREFIX, useValue: 'kendo.signature' },
|
|
568
580
|
{ multi: true, provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => SignatureComponent) }
|
|
569
|
-
], viewQueries: [{ propertyName: "canvas", first: true, predicate: ["canvas"], descendants: true }], exportAs: ["kendoSignature"], usesOnChanges: true, ngImport: i0, template: `
|
|
581
|
+
], viewQueries: [{ propertyName: "maximizeButton", first: true, predicate: ["maximizeButton"], descendants: true, read: ElementRef }, { propertyName: "canvas", first: true, predicate: ["canvas"], descendants: true }], exportAs: ["kendoSignature"], usesOnChanges: true, ngImport: i0, template: `
|
|
570
582
|
<ng-container kendoSignatureLocalizedMessages
|
|
571
583
|
i18n-clear="kendo.signature.clear|The message for the Clear button."
|
|
572
584
|
clear="Clear"
|
|
573
585
|
i18n-maximize="kendo.signature.maximize|The message for the Maximize button."
|
|
574
586
|
maximize="Maximize"
|
|
575
587
|
i18n-minimize="kendo.signature.minimize|The message for the Minimize button."
|
|
576
|
-
minimize="Minimize"
|
|
588
|
+
minimize="Minimize"
|
|
589
|
+
i18n-canvasLabel="kendo.signature.canvasLabel|The message for the Canvas element aria-label."
|
|
590
|
+
canvasLabel="Signature canvas">
|
|
577
591
|
</ng-container>
|
|
578
592
|
|
|
579
593
|
<div class="k-signature-actions k-signature-actions-top">
|
|
580
594
|
<button
|
|
581
595
|
*ngIf="showMaximize"
|
|
596
|
+
#maximizeButton
|
|
582
597
|
kendoButton
|
|
583
598
|
class="k-signature-action k-signature-maximize"
|
|
584
599
|
icon="hyperlink-open"
|
|
@@ -604,6 +619,8 @@ SignatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ver
|
|
|
604
619
|
#canvas
|
|
605
620
|
class="k-signature-canvas"
|
|
606
621
|
[attr.tabindex]="tabindex"
|
|
622
|
+
role="img"
|
|
623
|
+
[attr.aria-label]="canvasLabel"
|
|
607
624
|
></div>
|
|
608
625
|
<div
|
|
609
626
|
*ngIf="!hideLine"
|
|
@@ -623,7 +640,11 @@ SignatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ver
|
|
|
623
640
|
</button>
|
|
624
641
|
</div>
|
|
625
642
|
|
|
626
|
-
<kendo-dialog
|
|
643
|
+
<kendo-dialog
|
|
644
|
+
*ngIf="isOpen"
|
|
645
|
+
autoFocusedElement=".k-signature-action.k-signature-minimize"
|
|
646
|
+
(click)="onDialogClick($event)"
|
|
647
|
+
(keydown)="onDialogKeydown($event)">
|
|
627
648
|
<kendo-signature
|
|
628
649
|
[readonly]="readonly"
|
|
629
650
|
[disabled]="disabled"
|
|
@@ -665,12 +686,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
665
686
|
i18n-maximize="kendo.signature.maximize|The message for the Maximize button."
|
|
666
687
|
maximize="Maximize"
|
|
667
688
|
i18n-minimize="kendo.signature.minimize|The message for the Minimize button."
|
|
668
|
-
minimize="Minimize"
|
|
689
|
+
minimize="Minimize"
|
|
690
|
+
i18n-canvasLabel="kendo.signature.canvasLabel|The message for the Canvas element aria-label."
|
|
691
|
+
canvasLabel="Signature canvas">
|
|
669
692
|
</ng-container>
|
|
670
693
|
|
|
671
694
|
<div class="k-signature-actions k-signature-actions-top">
|
|
672
695
|
<button
|
|
673
696
|
*ngIf="showMaximize"
|
|
697
|
+
#maximizeButton
|
|
674
698
|
kendoButton
|
|
675
699
|
class="k-signature-action k-signature-maximize"
|
|
676
700
|
icon="hyperlink-open"
|
|
@@ -696,6 +720,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
696
720
|
#canvas
|
|
697
721
|
class="k-signature-canvas"
|
|
698
722
|
[attr.tabindex]="tabindex"
|
|
723
|
+
role="img"
|
|
724
|
+
[attr.aria-label]="canvasLabel"
|
|
699
725
|
></div>
|
|
700
726
|
<div
|
|
701
727
|
*ngIf="!hideLine"
|
|
@@ -715,7 +741,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
715
741
|
</button>
|
|
716
742
|
</div>
|
|
717
743
|
|
|
718
|
-
<kendo-dialog
|
|
744
|
+
<kendo-dialog
|
|
745
|
+
*ngIf="isOpen"
|
|
746
|
+
autoFocusedElement=".k-signature-action.k-signature-minimize"
|
|
747
|
+
(click)="onDialogClick($event)"
|
|
748
|
+
(keydown)="onDialogKeydown($event)">
|
|
719
749
|
<kendo-signature
|
|
720
750
|
[readonly]="readonly"
|
|
721
751
|
[disabled]="disabled"
|
|
@@ -749,6 +779,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
749
779
|
}], direction: [{
|
|
750
780
|
type: HostBinding,
|
|
751
781
|
args: ['attr.dir']
|
|
782
|
+
}], maximizeButton: [{
|
|
783
|
+
type: ViewChild,
|
|
784
|
+
args: ['maximizeButton', { read: ElementRef }]
|
|
752
785
|
}], readonly: [{
|
|
753
786
|
type: HostBinding,
|
|
754
787
|
args: ['class.k-readonly']
|