@progress/kendo-angular-inputs 10.1.1-dev.202210181135 → 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.
@@ -9,7 +9,7 @@ export const packageMetadata = {
9
9
  name: '@progress/kendo-angular-inputs',
10
10
  productName: 'Kendo UI for Angular',
11
11
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
12
- publishDate: 1666092870,
12
+ publishDate: 1666617508,
13
13
  version: '',
14
14
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
15
15
  };
@@ -11,7 +11,7 @@ import * as i0 from "@angular/core";
11
11
  export class SignatureMessages extends ComponentMessages {
12
12
  }
13
13
  SignatureMessages.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SignatureMessages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
14
- SignatureMessages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: SignatureMessages, selector: "kendo-signature-messages-base", inputs: { clear: "clear", minimize: "minimize", maximize: "maximize" }, usesInheritance: true, ngImport: i0 });
14
+ SignatureMessages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: SignatureMessages, selector: "kendo-signature-messages-base", inputs: { clear: "clear", minimize: "minimize", maximize: "maximize", canvasLabel: "canvasLabel" }, usesInheritance: true, ngImport: i0 });
15
15
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SignatureMessages, decorators: [{
16
16
  type: Directive,
17
17
  args: [{
@@ -24,4 +24,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
24
24
  type: Input
25
25
  }], maximize: [{
26
26
  type: Input
27
+ }], canvasLabel: [{
28
+ type: Input
27
29
  }] } });
@@ -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 *ngIf="isOpen" (click)="onDialogClick($event)" (keydown)="onDialogKeydown($event)">
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 *ngIf="isOpen" (click)="onDialogClick($event)" (keydown)="onDialogKeydown($event)">
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']
@@ -535,7 +535,7 @@ const packageMetadata = {
535
535
  name: '@progress/kendo-angular-inputs',
536
536
  productName: 'Kendo UI for Angular',
537
537
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
538
- publishDate: 1666092870,
538
+ publishDate: 1666617508,
539
539
  version: '',
540
540
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
541
541
  };
@@ -13595,7 +13595,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
13595
13595
  class SignatureMessages extends ComponentMessages {
13596
13596
  }
13597
13597
  SignatureMessages.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SignatureMessages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
13598
- SignatureMessages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: SignatureMessages, selector: "kendo-signature-messages-base", inputs: { clear: "clear", minimize: "minimize", maximize: "maximize" }, usesInheritance: true, ngImport: i0 });
13598
+ SignatureMessages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: SignatureMessages, selector: "kendo-signature-messages-base", inputs: { clear: "clear", minimize: "minimize", maximize: "maximize", canvasLabel: "canvasLabel" }, usesInheritance: true, ngImport: i0 });
13599
13599
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SignatureMessages, decorators: [{
13600
13600
  type: Directive,
13601
13601
  args: [{
@@ -13608,6 +13608,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
13608
13608
  type: Input
13609
13609
  }], maximize: [{
13610
13610
  type: Input
13611
+ }], canvasLabel: [{
13612
+ type: Input
13611
13613
  }] } });
13612
13614
 
13613
13615
  /**
@@ -13872,6 +13874,12 @@ class SignatureComponent {
13872
13874
  get isEmpty() {
13873
13875
  return !this.value;
13874
13876
  }
13877
+ /**
13878
+ * @hidden
13879
+ */
13880
+ get canvasLabel() {
13881
+ return this.getMessage('canvasLabel');
13882
+ }
13875
13883
  /**
13876
13884
  * @hidden
13877
13885
  */
@@ -14033,27 +14041,33 @@ class SignatureComponent {
14033
14041
  * @hidden
14034
14042
  */
14035
14043
  onDialogClick(e) {
14044
+ var _a;
14036
14045
  if (e.target.classList.contains('k-overlay')) {
14037
14046
  this.isOpen = false;
14047
+ (_a = this.maximizeButton) === null || _a === void 0 ? void 0 : _a.nativeElement.focus();
14038
14048
  }
14039
14049
  }
14040
14050
  /**
14041
14051
  * @hidden
14042
14052
  */
14043
14053
  onDialogKeydown(e) {
14054
+ var _a;
14044
14055
  if (e.keyCode === Keys.Escape) {
14045
14056
  this.isOpen = false;
14046
14057
  this.cd.detectChanges();
14058
+ (_a = this.maximizeButton) === null || _a === void 0 ? void 0 : _a.nativeElement.focus();
14047
14059
  }
14048
14060
  }
14049
14061
  /**
14050
14062
  * @hidden
14051
14063
  */
14052
14064
  onDialogClose() {
14065
+ var _a;
14053
14066
  const args = new SignatureCloseEvent();
14054
14067
  this.close.next(args);
14055
14068
  if (!args.isDefaultPrevented()) {
14056
14069
  this.isOpen = false;
14070
+ (_a = this.maximizeButton) === null || _a === void 0 ? void 0 : _a.nativeElement.focus();
14057
14071
  }
14058
14072
  }
14059
14073
  /**
@@ -14232,19 +14246,22 @@ SignatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ver
14232
14246
  LocalizationService,
14233
14247
  { provide: L10N_PREFIX, useValue: 'kendo.signature' },
14234
14248
  { multi: true, provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => SignatureComponent) }
14235
- ], viewQueries: [{ propertyName: "canvas", first: true, predicate: ["canvas"], descendants: true }], exportAs: ["kendoSignature"], usesOnChanges: true, ngImport: i0, template: `
14249
+ ], 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: `
14236
14250
  <ng-container kendoSignatureLocalizedMessages
14237
14251
  i18n-clear="kendo.signature.clear|The message for the Clear button."
14238
14252
  clear="Clear"
14239
14253
  i18n-maximize="kendo.signature.maximize|The message for the Maximize button."
14240
14254
  maximize="Maximize"
14241
14255
  i18n-minimize="kendo.signature.minimize|The message for the Minimize button."
14242
- minimize="Minimize">
14256
+ minimize="Minimize"
14257
+ i18n-canvasLabel="kendo.signature.canvasLabel|The message for the Canvas element aria-label."
14258
+ canvasLabel="Signature canvas">
14243
14259
  </ng-container>
14244
14260
 
14245
14261
  <div class="k-signature-actions k-signature-actions-top">
14246
14262
  <button
14247
14263
  *ngIf="showMaximize"
14264
+ #maximizeButton
14248
14265
  kendoButton
14249
14266
  class="k-signature-action k-signature-maximize"
14250
14267
  icon="hyperlink-open"
@@ -14270,6 +14287,8 @@ SignatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ver
14270
14287
  #canvas
14271
14288
  class="k-signature-canvas"
14272
14289
  [attr.tabindex]="tabindex"
14290
+ role="img"
14291
+ [attr.aria-label]="canvasLabel"
14273
14292
  ></div>
14274
14293
  <div
14275
14294
  *ngIf="!hideLine"
@@ -14289,7 +14308,11 @@ SignatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ver
14289
14308
  </button>
14290
14309
  </div>
14291
14310
 
14292
- <kendo-dialog *ngIf="isOpen" (click)="onDialogClick($event)" (keydown)="onDialogKeydown($event)">
14311
+ <kendo-dialog
14312
+ *ngIf="isOpen"
14313
+ autoFocusedElement=".k-signature-action.k-signature-minimize"
14314
+ (click)="onDialogClick($event)"
14315
+ (keydown)="onDialogKeydown($event)">
14293
14316
  <kendo-signature
14294
14317
  [readonly]="readonly"
14295
14318
  [disabled]="disabled"
@@ -14331,12 +14354,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
14331
14354
  i18n-maximize="kendo.signature.maximize|The message for the Maximize button."
14332
14355
  maximize="Maximize"
14333
14356
  i18n-minimize="kendo.signature.minimize|The message for the Minimize button."
14334
- minimize="Minimize">
14357
+ minimize="Minimize"
14358
+ i18n-canvasLabel="kendo.signature.canvasLabel|The message for the Canvas element aria-label."
14359
+ canvasLabel="Signature canvas">
14335
14360
  </ng-container>
14336
14361
 
14337
14362
  <div class="k-signature-actions k-signature-actions-top">
14338
14363
  <button
14339
14364
  *ngIf="showMaximize"
14365
+ #maximizeButton
14340
14366
  kendoButton
14341
14367
  class="k-signature-action k-signature-maximize"
14342
14368
  icon="hyperlink-open"
@@ -14362,6 +14388,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
14362
14388
  #canvas
14363
14389
  class="k-signature-canvas"
14364
14390
  [attr.tabindex]="tabindex"
14391
+ role="img"
14392
+ [attr.aria-label]="canvasLabel"
14365
14393
  ></div>
14366
14394
  <div
14367
14395
  *ngIf="!hideLine"
@@ -14381,7 +14409,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
14381
14409
  </button>
14382
14410
  </div>
14383
14411
 
14384
- <kendo-dialog *ngIf="isOpen" (click)="onDialogClick($event)" (keydown)="onDialogKeydown($event)">
14412
+ <kendo-dialog
14413
+ *ngIf="isOpen"
14414
+ autoFocusedElement=".k-signature-action.k-signature-minimize"
14415
+ (click)="onDialogClick($event)"
14416
+ (keydown)="onDialogKeydown($event)">
14385
14417
  <kendo-signature
14386
14418
  [readonly]="readonly"
14387
14419
  [disabled]="disabled"
@@ -14415,6 +14447,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
14415
14447
  }], direction: [{
14416
14448
  type: HostBinding,
14417
14449
  args: ['attr.dir']
14450
+ }], maximizeButton: [{
14451
+ type: ViewChild,
14452
+ args: ['maximizeButton', { read: ElementRef }]
14418
14453
  }], readonly: [{
14419
14454
  type: HostBinding,
14420
14455
  args: ['class.k-readonly']
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-inputs",
3
- "version": "10.1.1-dev.202210181135",
3
+ "version": "10.1.1-dev.202210241319",
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",
@@ -20,6 +20,10 @@ export declare class SignatureMessages extends ComponentMessages {
20
20
  * The title of the Maximize button of the Signature.
21
21
  */
22
22
  maximize: string;
23
+ /**
24
+ * The value of the Signature canvas element aria-label attribute.
25
+ */
26
+ canvasLabel: string;
23
27
  static ɵfac: i0.ɵɵFactoryDeclaration<SignatureMessages, never>;
24
- static ɵdir: i0.ɵɵDirectiveDeclaration<SignatureMessages, "kendo-signature-messages-base", never, { "clear": "clear"; "minimize": "minimize"; "maximize": "maximize"; }, {}, never>;
28
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SignatureMessages, "kendo-signature-messages-base", never, { "clear": "clear"; "minimize": "minimize"; "maximize": "maximize"; "canvasLabel": "canvasLabel"; }, {}, never>;
25
29
  }
@@ -21,6 +21,7 @@ export declare class SignatureComponent implements ControlValueAccessor {
21
21
  localization: LocalizationService;
22
22
  staticHostClasses: boolean;
23
23
  direction: string;
24
+ maximizeButton: ElementRef;
24
25
  /**
25
26
  * Sets the read-only state of the Signature.
26
27
  *
@@ -196,6 +197,10 @@ export declare class SignatureComponent implements ControlValueAccessor {
196
197
  * @hidden
197
198
  */
198
199
  get isEmpty(): boolean;
200
+ /**
201
+ * @hidden
202
+ */
203
+ get canvasLabel(): string;
199
204
  /**
200
205
  * @hidden
201
206
  */