@progress/kendo-angular-inputs 11.3.0-develop.9 → 11.3.1-develop.1
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:
|
|
13
|
-
version: '11.3.
|
|
12
|
+
publishDate: 1677750368,
|
|
13
|
+
version: '11.3.1-develop.1',
|
|
14
14
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
15
15
|
};
|
|
@@ -12,6 +12,7 @@ import { isNone, isPresent, ROUNDED_MAP, SIZE_MAP } from '../common/utils';
|
|
|
12
12
|
import { packageMetadata } from '../package-metadata';
|
|
13
13
|
import { SignatureCloseEvent, SignatureOpenEvent } from './events';
|
|
14
14
|
import { xIcon, hyperlinkOpenIcon } from '@progress/kendo-svg-icons';
|
|
15
|
+
import { take } from 'rxjs/operators';
|
|
15
16
|
import * as i0 from "@angular/core";
|
|
16
17
|
import * as i1 from "@progress/kendo-angular-l10n";
|
|
17
18
|
import * as i2 from "@progress/kendo-angular-buttons";
|
|
@@ -19,6 +20,8 @@ import * as i3 from "@progress/kendo-angular-dialog";
|
|
|
19
20
|
import * as i4 from "./localization/localized-signature-messages.directive";
|
|
20
21
|
import * as i5 from "@angular/common";
|
|
21
22
|
const noop = () => { };
|
|
23
|
+
let _id = 0;
|
|
24
|
+
const nextId = () => 'k-signature-focusable-' + _id++;
|
|
22
25
|
const FOCUSED_CLASS = 'k-focus';
|
|
23
26
|
const DEFAULT_SIZE = 'medium';
|
|
24
27
|
const DEFAULT_ROUNDED = 'medium';
|
|
@@ -41,6 +44,10 @@ export class SignatureComponent {
|
|
|
41
44
|
this.cd = cd;
|
|
42
45
|
this.localization = localization;
|
|
43
46
|
this.staticHostClasses = true;
|
|
47
|
+
/**
|
|
48
|
+
* @hidden
|
|
49
|
+
*/
|
|
50
|
+
this.focusableId = nextId();
|
|
44
51
|
/**
|
|
45
52
|
* Sets the read-only state of the Signature.
|
|
46
53
|
*
|
|
@@ -319,7 +326,10 @@ export class SignatureComponent {
|
|
|
319
326
|
return;
|
|
320
327
|
}
|
|
321
328
|
this.applyHostClasses();
|
|
322
|
-
this.
|
|
329
|
+
this.ngZone.onStable.pipe(take(1)).subscribe(() => {
|
|
330
|
+
this.readThemeColors();
|
|
331
|
+
this.instance.setOptions(this.options);
|
|
332
|
+
});
|
|
323
333
|
this.ngZone.runOutsideAngular(() => {
|
|
324
334
|
const element = this.canvas.nativeElement;
|
|
325
335
|
this.instance = new SignaturePad(element, {
|
|
@@ -331,6 +341,11 @@ export class SignatureComponent {
|
|
|
331
341
|
if (this.value) {
|
|
332
342
|
this.instance.loadImage(this.value);
|
|
333
343
|
}
|
|
344
|
+
if (this.maximized) {
|
|
345
|
+
this.ngZone.onStable.pipe(take(1)).subscribe(() => {
|
|
346
|
+
this.minimizeButton?.nativeElement.focus();
|
|
347
|
+
});
|
|
348
|
+
}
|
|
334
349
|
this.addEventListeners();
|
|
335
350
|
});
|
|
336
351
|
}
|
|
@@ -412,7 +427,9 @@ export class SignatureComponent {
|
|
|
412
427
|
this.close.next(args);
|
|
413
428
|
if (!args.isDefaultPrevented()) {
|
|
414
429
|
this.isOpen = false;
|
|
415
|
-
this.
|
|
430
|
+
this.ngZone.onStable.pipe(take(1)).subscribe(() => {
|
|
431
|
+
(this.maximizeButton || this.element)?.nativeElement?.focus();
|
|
432
|
+
});
|
|
416
433
|
}
|
|
417
434
|
}
|
|
418
435
|
/**
|
|
@@ -584,11 +601,11 @@ export class SignatureComponent {
|
|
|
584
601
|
}
|
|
585
602
|
}
|
|
586
603
|
SignatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SignatureComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }, { token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
587
|
-
SignatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: SignatureComponent, selector: "kendo-signature", inputs: { readonly: "readonly", disabled: "disabled", width: "width", height: "height", value: "value", tabindex: "tabindex", size: "size", rounded: "rounded", fillMode: "fillMode", color: "color", backgroundColor: "backgroundColor", strokeWidth: "strokeWidth", smooth: "smooth", maximizable: "maximizable", maximized: "maximized", popupScale: "popupScale", exportScale: "exportScale", parentLocalization: "parentLocalization", hideLine: "hideLine" }, outputs: { valueChange: "valueChange", open: "open", close: "close", onFocus: "focus", onBlur: "blur", minimize: "minimize" }, host: { properties: { "class.k-signature": "this.staticHostClasses", "class.k-input": "this.staticHostClasses", "attr.dir": "this.direction", "class.k-readonly": "this.readonly", "class.k-disabled": "this.disabled", "style.width.px": "this.width", "style.height.px": "this.height" } }, providers: [
|
|
604
|
+
SignatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: SignatureComponent, selector: "kendo-signature", inputs: { focusableId: "focusableId", readonly: "readonly", disabled: "disabled", width: "width", height: "height", value: "value", tabindex: "tabindex", size: "size", rounded: "rounded", fillMode: "fillMode", color: "color", backgroundColor: "backgroundColor", strokeWidth: "strokeWidth", smooth: "smooth", maximizable: "maximizable", maximized: "maximized", popupScale: "popupScale", exportScale: "exportScale", parentLocalization: "parentLocalization", hideLine: "hideLine" }, outputs: { valueChange: "valueChange", open: "open", close: "close", onFocus: "focus", onBlur: "blur", minimize: "minimize" }, host: { properties: { "class.k-signature": "this.staticHostClasses", "class.k-input": "this.staticHostClasses", "attr.dir": "this.direction", "class.k-readonly": "this.readonly", "class.k-disabled": "this.disabled", "style.width.px": "this.width", "style.height.px": "this.height" } }, providers: [
|
|
588
605
|
LocalizationService,
|
|
589
606
|
{ provide: L10N_PREFIX, useValue: 'kendo.signature' },
|
|
590
607
|
{ multi: true, provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => SignatureComponent) }
|
|
591
|
-
], viewQueries: [{ propertyName: "
|
|
608
|
+
], viewQueries: [{ propertyName: "canvas", first: true, predicate: ["canvas"], descendants: true }, { propertyName: "minimizeButton", first: true, predicate: ["minimize"], descendants: true, read: ElementRef }, { propertyName: "maximizeButton", first: true, predicate: ["maximize"], descendants: true, read: ElementRef }], exportAs: ["kendoSignature"], usesOnChanges: true, ngImport: i0, template: `
|
|
592
609
|
<ng-container kendoSignatureLocalizedMessages
|
|
593
610
|
i18n-clear="kendo.signature.clear|The message for the Clear button."
|
|
594
611
|
clear="Clear"
|
|
@@ -600,10 +617,19 @@ SignatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ver
|
|
|
600
617
|
canvasLabel="Signature canvas">
|
|
601
618
|
</ng-container>
|
|
602
619
|
|
|
620
|
+
<div
|
|
621
|
+
#canvas
|
|
622
|
+
class="k-signature-canvas"
|
|
623
|
+
[attr.tabindex]="tabindex"
|
|
624
|
+
[id]="focusableId"
|
|
625
|
+
role="img"
|
|
626
|
+
[attr.aria-label]="canvasLabel"
|
|
627
|
+
></div>
|
|
628
|
+
|
|
603
629
|
<div class="k-signature-actions k-signature-actions-top">
|
|
604
630
|
<button
|
|
631
|
+
#maximize
|
|
605
632
|
*ngIf="showMaximize"
|
|
606
|
-
#maximizeButton
|
|
607
633
|
kendoButton
|
|
608
634
|
class="k-signature-action k-signature-maximize"
|
|
609
635
|
icon="hyperlink-open"
|
|
@@ -615,6 +641,7 @@ SignatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ver
|
|
|
615
641
|
[title]="maximizeTitle">
|
|
616
642
|
</button>
|
|
617
643
|
<button
|
|
644
|
+
#minimize
|
|
618
645
|
*ngIf="showMinimize"
|
|
619
646
|
kendoButton
|
|
620
647
|
class="k-signature-action k-signature-minimize k-rotate-180"
|
|
@@ -627,13 +654,6 @@ SignatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ver
|
|
|
627
654
|
[title]="minimizeTitle">
|
|
628
655
|
</button>
|
|
629
656
|
</div>
|
|
630
|
-
<div
|
|
631
|
-
#canvas
|
|
632
|
-
class="k-signature-canvas"
|
|
633
|
-
[attr.tabindex]="tabindex"
|
|
634
|
-
role="img"
|
|
635
|
-
[attr.aria-label]="canvasLabel"
|
|
636
|
-
></div>
|
|
637
657
|
<div
|
|
638
658
|
*ngIf="!hideLine"
|
|
639
659
|
class="k-signature-line"
|
|
@@ -677,10 +697,11 @@ SignatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ver
|
|
|
677
697
|
[width]="popupWidth"
|
|
678
698
|
[height]="popupHeight"
|
|
679
699
|
[popupScale]="popupScale"
|
|
700
|
+
[exportScale]="(1 / popupScale) * exportScale"
|
|
680
701
|
[parentLocalization]="localization">
|
|
681
702
|
</kendo-signature>
|
|
682
703
|
</kendo-dialog>
|
|
683
|
-
`, isInline: true, components: [{ type: i2.Button, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { type: i3.DialogComponent, selector: "kendo-dialog", inputs: ["actions", "actionsLayout", "autoFocusedElement", "title", "width", "minWidth", "maxWidth", "height", "minHeight", "maxHeight", "animation", "themeColor"], outputs: ["action", "close"], exportAs: ["kendoDialog"] }, { type: SignatureComponent, selector: "kendo-signature", inputs: ["readonly", "disabled", "width", "height", "value", "tabindex", "size", "rounded", "fillMode", "color", "backgroundColor", "strokeWidth", "smooth", "maximizable", "maximized", "popupScale", "exportScale", "parentLocalization", "hideLine"], outputs: ["valueChange", "open", "close", "focus", "blur", "minimize"], exportAs: ["kendoSignature"] }], directives: [{ type: i4.LocalizedSignatureMessagesDirective, selector: "[kendoSignatureLocalizedMessages]" }, { type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
704
|
+
`, isInline: true, components: [{ type: i2.Button, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { type: i3.DialogComponent, selector: "kendo-dialog", inputs: ["actions", "actionsLayout", "autoFocusedElement", "title", "width", "minWidth", "maxWidth", "height", "minHeight", "maxHeight", "animation", "themeColor"], outputs: ["action", "close"], exportAs: ["kendoDialog"] }, { type: SignatureComponent, selector: "kendo-signature", inputs: ["focusableId", "readonly", "disabled", "width", "height", "value", "tabindex", "size", "rounded", "fillMode", "color", "backgroundColor", "strokeWidth", "smooth", "maximizable", "maximized", "popupScale", "exportScale", "parentLocalization", "hideLine"], outputs: ["valueChange", "open", "close", "focus", "blur", "minimize"], exportAs: ["kendoSignature"] }], directives: [{ type: i4.LocalizedSignatureMessagesDirective, selector: "[kendoSignatureLocalizedMessages]" }, { type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
684
705
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SignatureComponent, decorators: [{
|
|
685
706
|
type: Component,
|
|
686
707
|
args: [{
|
|
@@ -704,10 +725,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
704
725
|
canvasLabel="Signature canvas">
|
|
705
726
|
</ng-container>
|
|
706
727
|
|
|
728
|
+
<div
|
|
729
|
+
#canvas
|
|
730
|
+
class="k-signature-canvas"
|
|
731
|
+
[attr.tabindex]="tabindex"
|
|
732
|
+
[id]="focusableId"
|
|
733
|
+
role="img"
|
|
734
|
+
[attr.aria-label]="canvasLabel"
|
|
735
|
+
></div>
|
|
736
|
+
|
|
707
737
|
<div class="k-signature-actions k-signature-actions-top">
|
|
708
738
|
<button
|
|
739
|
+
#maximize
|
|
709
740
|
*ngIf="showMaximize"
|
|
710
|
-
#maximizeButton
|
|
711
741
|
kendoButton
|
|
712
742
|
class="k-signature-action k-signature-maximize"
|
|
713
743
|
icon="hyperlink-open"
|
|
@@ -719,6 +749,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
719
749
|
[title]="maximizeTitle">
|
|
720
750
|
</button>
|
|
721
751
|
<button
|
|
752
|
+
#minimize
|
|
722
753
|
*ngIf="showMinimize"
|
|
723
754
|
kendoButton
|
|
724
755
|
class="k-signature-action k-signature-minimize k-rotate-180"
|
|
@@ -731,13 +762,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
731
762
|
[title]="minimizeTitle">
|
|
732
763
|
</button>
|
|
733
764
|
</div>
|
|
734
|
-
<div
|
|
735
|
-
#canvas
|
|
736
|
-
class="k-signature-canvas"
|
|
737
|
-
[attr.tabindex]="tabindex"
|
|
738
|
-
role="img"
|
|
739
|
-
[attr.aria-label]="canvasLabel"
|
|
740
|
-
></div>
|
|
741
765
|
<div
|
|
742
766
|
*ngIf="!hideLine"
|
|
743
767
|
class="k-signature-line"
|
|
@@ -781,6 +805,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
781
805
|
[width]="popupWidth"
|
|
782
806
|
[height]="popupHeight"
|
|
783
807
|
[popupScale]="popupScale"
|
|
808
|
+
[exportScale]="(1 / popupScale) * exportScale"
|
|
784
809
|
[parentLocalization]="localization">
|
|
785
810
|
</kendo-signature>
|
|
786
811
|
</kendo-dialog>
|
|
@@ -792,12 +817,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
792
817
|
}, {
|
|
793
818
|
type: HostBinding,
|
|
794
819
|
args: ['class.k-input']
|
|
820
|
+
}], focusableId: [{
|
|
821
|
+
type: Input
|
|
795
822
|
}], direction: [{
|
|
796
823
|
type: HostBinding,
|
|
797
824
|
args: ['attr.dir']
|
|
798
|
-
}], maximizeButton: [{
|
|
799
|
-
type: ViewChild,
|
|
800
|
-
args: ['maximizeButton', { read: ElementRef }]
|
|
801
825
|
}], readonly: [{
|
|
802
826
|
type: HostBinding,
|
|
803
827
|
args: ['class.k-readonly']
|
|
@@ -865,4 +889,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
865
889
|
}], canvas: [{
|
|
866
890
|
type: ViewChild,
|
|
867
891
|
args: ['canvas']
|
|
892
|
+
}], minimizeButton: [{
|
|
893
|
+
type: ViewChild,
|
|
894
|
+
args: ['minimize', { read: ElementRef }]
|
|
895
|
+
}], maximizeButton: [{
|
|
896
|
+
type: ViewChild,
|
|
897
|
+
args: ['maximize', { read: ElementRef }]
|
|
868
898
|
}] } });
|
|
@@ -539,8 +539,8 @@ const packageMetadata = {
|
|
|
539
539
|
name: '@progress/kendo-angular-inputs',
|
|
540
540
|
productName: 'Kendo UI for Angular',
|
|
541
541
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
542
|
-
publishDate:
|
|
543
|
-
version: '11.3.
|
|
542
|
+
publishDate: 1677750368,
|
|
543
|
+
version: '11.3.1-develop.1',
|
|
544
544
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
545
545
|
};
|
|
546
546
|
|
|
@@ -13985,6 +13985,8 @@ class SignatureOpenEvent extends PreventableEvent {
|
|
|
13985
13985
|
}
|
|
13986
13986
|
|
|
13987
13987
|
const noop = () => { };
|
|
13988
|
+
let _id = 0;
|
|
13989
|
+
const nextId = () => 'k-signature-focusable-' + _id++;
|
|
13988
13990
|
const FOCUSED_CLASS = 'k-focus';
|
|
13989
13991
|
const DEFAULT_SIZE = 'medium';
|
|
13990
13992
|
const DEFAULT_ROUNDED = 'medium';
|
|
@@ -14007,6 +14009,10 @@ class SignatureComponent {
|
|
|
14007
14009
|
this.cd = cd;
|
|
14008
14010
|
this.localization = localization;
|
|
14009
14011
|
this.staticHostClasses = true;
|
|
14012
|
+
/**
|
|
14013
|
+
* @hidden
|
|
14014
|
+
*/
|
|
14015
|
+
this.focusableId = nextId();
|
|
14010
14016
|
/**
|
|
14011
14017
|
* Sets the read-only state of the Signature.
|
|
14012
14018
|
*
|
|
@@ -14285,13 +14291,22 @@ class SignatureComponent {
|
|
|
14285
14291
|
return;
|
|
14286
14292
|
}
|
|
14287
14293
|
this.applyHostClasses();
|
|
14288
|
-
this.
|
|
14294
|
+
this.ngZone.onStable.pipe(take(1)).subscribe(() => {
|
|
14295
|
+
this.readThemeColors();
|
|
14296
|
+
this.instance.setOptions(this.options);
|
|
14297
|
+
});
|
|
14289
14298
|
this.ngZone.runOutsideAngular(() => {
|
|
14290
14299
|
const element = this.canvas.nativeElement;
|
|
14291
14300
|
this.instance = new SignaturePad(element, Object.assign(Object.assign({}, this.options), { onChange: () => this.onValueChange(), onDraw: () => this.onDraw(), onDrawEnd: () => this.onDrawEnd() }));
|
|
14292
14301
|
if (this.value) {
|
|
14293
14302
|
this.instance.loadImage(this.value);
|
|
14294
14303
|
}
|
|
14304
|
+
if (this.maximized) {
|
|
14305
|
+
this.ngZone.onStable.pipe(take(1)).subscribe(() => {
|
|
14306
|
+
var _a;
|
|
14307
|
+
(_a = this.minimizeButton) === null || _a === void 0 ? void 0 : _a.nativeElement.focus();
|
|
14308
|
+
});
|
|
14309
|
+
}
|
|
14295
14310
|
this.addEventListeners();
|
|
14296
14311
|
});
|
|
14297
14312
|
}
|
|
@@ -14373,12 +14388,14 @@ class SignatureComponent {
|
|
|
14373
14388
|
* @hidden
|
|
14374
14389
|
*/
|
|
14375
14390
|
onDialogClose() {
|
|
14376
|
-
var _a;
|
|
14377
14391
|
const args = new SignatureCloseEvent();
|
|
14378
14392
|
this.close.next(args);
|
|
14379
14393
|
if (!args.isDefaultPrevented()) {
|
|
14380
14394
|
this.isOpen = false;
|
|
14381
|
-
|
|
14395
|
+
this.ngZone.onStable.pipe(take(1)).subscribe(() => {
|
|
14396
|
+
var _a, _b;
|
|
14397
|
+
(_b = (_a = (this.maximizeButton || this.element)) === null || _a === void 0 ? void 0 : _a.nativeElement) === null || _b === void 0 ? void 0 : _b.focus();
|
|
14398
|
+
});
|
|
14382
14399
|
}
|
|
14383
14400
|
}
|
|
14384
14401
|
/**
|
|
@@ -14553,11 +14570,11 @@ class SignatureComponent {
|
|
|
14553
14570
|
}
|
|
14554
14571
|
}
|
|
14555
14572
|
SignatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SignatureComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }, { token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
14556
|
-
SignatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: SignatureComponent, selector: "kendo-signature", inputs: { readonly: "readonly", disabled: "disabled", width: "width", height: "height", value: "value", tabindex: "tabindex", size: "size", rounded: "rounded", fillMode: "fillMode", color: "color", backgroundColor: "backgroundColor", strokeWidth: "strokeWidth", smooth: "smooth", maximizable: "maximizable", maximized: "maximized", popupScale: "popupScale", exportScale: "exportScale", parentLocalization: "parentLocalization", hideLine: "hideLine" }, outputs: { valueChange: "valueChange", open: "open", close: "close", onFocus: "focus", onBlur: "blur", minimize: "minimize" }, host: { properties: { "class.k-signature": "this.staticHostClasses", "class.k-input": "this.staticHostClasses", "attr.dir": "this.direction", "class.k-readonly": "this.readonly", "class.k-disabled": "this.disabled", "style.width.px": "this.width", "style.height.px": "this.height" } }, providers: [
|
|
14573
|
+
SignatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: SignatureComponent, selector: "kendo-signature", inputs: { focusableId: "focusableId", readonly: "readonly", disabled: "disabled", width: "width", height: "height", value: "value", tabindex: "tabindex", size: "size", rounded: "rounded", fillMode: "fillMode", color: "color", backgroundColor: "backgroundColor", strokeWidth: "strokeWidth", smooth: "smooth", maximizable: "maximizable", maximized: "maximized", popupScale: "popupScale", exportScale: "exportScale", parentLocalization: "parentLocalization", hideLine: "hideLine" }, outputs: { valueChange: "valueChange", open: "open", close: "close", onFocus: "focus", onBlur: "blur", minimize: "minimize" }, host: { properties: { "class.k-signature": "this.staticHostClasses", "class.k-input": "this.staticHostClasses", "attr.dir": "this.direction", "class.k-readonly": "this.readonly", "class.k-disabled": "this.disabled", "style.width.px": "this.width", "style.height.px": "this.height" } }, providers: [
|
|
14557
14574
|
LocalizationService,
|
|
14558
14575
|
{ provide: L10N_PREFIX, useValue: 'kendo.signature' },
|
|
14559
14576
|
{ multi: true, provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => SignatureComponent) }
|
|
14560
|
-
], viewQueries: [{ propertyName: "
|
|
14577
|
+
], viewQueries: [{ propertyName: "canvas", first: true, predicate: ["canvas"], descendants: true }, { propertyName: "minimizeButton", first: true, predicate: ["minimize"], descendants: true, read: ElementRef }, { propertyName: "maximizeButton", first: true, predicate: ["maximize"], descendants: true, read: ElementRef }], exportAs: ["kendoSignature"], usesOnChanges: true, ngImport: i0, template: `
|
|
14561
14578
|
<ng-container kendoSignatureLocalizedMessages
|
|
14562
14579
|
i18n-clear="kendo.signature.clear|The message for the Clear button."
|
|
14563
14580
|
clear="Clear"
|
|
@@ -14569,10 +14586,19 @@ SignatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ver
|
|
|
14569
14586
|
canvasLabel="Signature canvas">
|
|
14570
14587
|
</ng-container>
|
|
14571
14588
|
|
|
14589
|
+
<div
|
|
14590
|
+
#canvas
|
|
14591
|
+
class="k-signature-canvas"
|
|
14592
|
+
[attr.tabindex]="tabindex"
|
|
14593
|
+
[id]="focusableId"
|
|
14594
|
+
role="img"
|
|
14595
|
+
[attr.aria-label]="canvasLabel"
|
|
14596
|
+
></div>
|
|
14597
|
+
|
|
14572
14598
|
<div class="k-signature-actions k-signature-actions-top">
|
|
14573
14599
|
<button
|
|
14600
|
+
#maximize
|
|
14574
14601
|
*ngIf="showMaximize"
|
|
14575
|
-
#maximizeButton
|
|
14576
14602
|
kendoButton
|
|
14577
14603
|
class="k-signature-action k-signature-maximize"
|
|
14578
14604
|
icon="hyperlink-open"
|
|
@@ -14584,6 +14610,7 @@ SignatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ver
|
|
|
14584
14610
|
[title]="maximizeTitle">
|
|
14585
14611
|
</button>
|
|
14586
14612
|
<button
|
|
14613
|
+
#minimize
|
|
14587
14614
|
*ngIf="showMinimize"
|
|
14588
14615
|
kendoButton
|
|
14589
14616
|
class="k-signature-action k-signature-minimize k-rotate-180"
|
|
@@ -14596,13 +14623,6 @@ SignatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ver
|
|
|
14596
14623
|
[title]="minimizeTitle">
|
|
14597
14624
|
</button>
|
|
14598
14625
|
</div>
|
|
14599
|
-
<div
|
|
14600
|
-
#canvas
|
|
14601
|
-
class="k-signature-canvas"
|
|
14602
|
-
[attr.tabindex]="tabindex"
|
|
14603
|
-
role="img"
|
|
14604
|
-
[attr.aria-label]="canvasLabel"
|
|
14605
|
-
></div>
|
|
14606
14626
|
<div
|
|
14607
14627
|
*ngIf="!hideLine"
|
|
14608
14628
|
class="k-signature-line"
|
|
@@ -14646,10 +14666,11 @@ SignatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ver
|
|
|
14646
14666
|
[width]="popupWidth"
|
|
14647
14667
|
[height]="popupHeight"
|
|
14648
14668
|
[popupScale]="popupScale"
|
|
14669
|
+
[exportScale]="(1 / popupScale) * exportScale"
|
|
14649
14670
|
[parentLocalization]="localization">
|
|
14650
14671
|
</kendo-signature>
|
|
14651
14672
|
</kendo-dialog>
|
|
14652
|
-
`, isInline: true, components: [{ type: i2.Button, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { type: i3$1.DialogComponent, selector: "kendo-dialog", inputs: ["actions", "actionsLayout", "autoFocusedElement", "title", "width", "minWidth", "maxWidth", "height", "minHeight", "maxHeight", "animation", "themeColor"], outputs: ["action", "close"], exportAs: ["kendoDialog"] }, { type: SignatureComponent, selector: "kendo-signature", inputs: ["readonly", "disabled", "width", "height", "value", "tabindex", "size", "rounded", "fillMode", "color", "backgroundColor", "strokeWidth", "smooth", "maximizable", "maximized", "popupScale", "exportScale", "parentLocalization", "hideLine"], outputs: ["valueChange", "open", "close", "focus", "blur", "minimize"], exportAs: ["kendoSignature"] }], directives: [{ type: LocalizedSignatureMessagesDirective, selector: "[kendoSignatureLocalizedMessages]" }, { type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
14673
|
+
`, isInline: true, components: [{ type: i2.Button, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { type: i3$1.DialogComponent, selector: "kendo-dialog", inputs: ["actions", "actionsLayout", "autoFocusedElement", "title", "width", "minWidth", "maxWidth", "height", "minHeight", "maxHeight", "animation", "themeColor"], outputs: ["action", "close"], exportAs: ["kendoDialog"] }, { type: SignatureComponent, selector: "kendo-signature", inputs: ["focusableId", "readonly", "disabled", "width", "height", "value", "tabindex", "size", "rounded", "fillMode", "color", "backgroundColor", "strokeWidth", "smooth", "maximizable", "maximized", "popupScale", "exportScale", "parentLocalization", "hideLine"], outputs: ["valueChange", "open", "close", "focus", "blur", "minimize"], exportAs: ["kendoSignature"] }], directives: [{ type: LocalizedSignatureMessagesDirective, selector: "[kendoSignatureLocalizedMessages]" }, { type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
14653
14674
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SignatureComponent, decorators: [{
|
|
14654
14675
|
type: Component,
|
|
14655
14676
|
args: [{
|
|
@@ -14673,10 +14694,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
14673
14694
|
canvasLabel="Signature canvas">
|
|
14674
14695
|
</ng-container>
|
|
14675
14696
|
|
|
14697
|
+
<div
|
|
14698
|
+
#canvas
|
|
14699
|
+
class="k-signature-canvas"
|
|
14700
|
+
[attr.tabindex]="tabindex"
|
|
14701
|
+
[id]="focusableId"
|
|
14702
|
+
role="img"
|
|
14703
|
+
[attr.aria-label]="canvasLabel"
|
|
14704
|
+
></div>
|
|
14705
|
+
|
|
14676
14706
|
<div class="k-signature-actions k-signature-actions-top">
|
|
14677
14707
|
<button
|
|
14708
|
+
#maximize
|
|
14678
14709
|
*ngIf="showMaximize"
|
|
14679
|
-
#maximizeButton
|
|
14680
14710
|
kendoButton
|
|
14681
14711
|
class="k-signature-action k-signature-maximize"
|
|
14682
14712
|
icon="hyperlink-open"
|
|
@@ -14688,6 +14718,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
14688
14718
|
[title]="maximizeTitle">
|
|
14689
14719
|
</button>
|
|
14690
14720
|
<button
|
|
14721
|
+
#minimize
|
|
14691
14722
|
*ngIf="showMinimize"
|
|
14692
14723
|
kendoButton
|
|
14693
14724
|
class="k-signature-action k-signature-minimize k-rotate-180"
|
|
@@ -14700,13 +14731,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
14700
14731
|
[title]="minimizeTitle">
|
|
14701
14732
|
</button>
|
|
14702
14733
|
</div>
|
|
14703
|
-
<div
|
|
14704
|
-
#canvas
|
|
14705
|
-
class="k-signature-canvas"
|
|
14706
|
-
[attr.tabindex]="tabindex"
|
|
14707
|
-
role="img"
|
|
14708
|
-
[attr.aria-label]="canvasLabel"
|
|
14709
|
-
></div>
|
|
14710
14734
|
<div
|
|
14711
14735
|
*ngIf="!hideLine"
|
|
14712
14736
|
class="k-signature-line"
|
|
@@ -14750,6 +14774,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
14750
14774
|
[width]="popupWidth"
|
|
14751
14775
|
[height]="popupHeight"
|
|
14752
14776
|
[popupScale]="popupScale"
|
|
14777
|
+
[exportScale]="(1 / popupScale) * exportScale"
|
|
14753
14778
|
[parentLocalization]="localization">
|
|
14754
14779
|
</kendo-signature>
|
|
14755
14780
|
</kendo-dialog>
|
|
@@ -14761,12 +14786,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
14761
14786
|
}, {
|
|
14762
14787
|
type: HostBinding,
|
|
14763
14788
|
args: ['class.k-input']
|
|
14789
|
+
}], focusableId: [{
|
|
14790
|
+
type: Input
|
|
14764
14791
|
}], direction: [{
|
|
14765
14792
|
type: HostBinding,
|
|
14766
14793
|
args: ['attr.dir']
|
|
14767
|
-
}], maximizeButton: [{
|
|
14768
|
-
type: ViewChild,
|
|
14769
|
-
args: ['maximizeButton', { read: ElementRef }]
|
|
14770
14794
|
}], readonly: [{
|
|
14771
14795
|
type: HostBinding,
|
|
14772
14796
|
args: ['class.k-readonly']
|
|
@@ -14834,6 +14858,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
14834
14858
|
}], canvas: [{
|
|
14835
14859
|
type: ViewChild,
|
|
14836
14860
|
args: ['canvas']
|
|
14861
|
+
}], minimizeButton: [{
|
|
14862
|
+
type: ViewChild,
|
|
14863
|
+
args: ['minimize', { read: ElementRef }]
|
|
14864
|
+
}], maximizeButton: [{
|
|
14865
|
+
type: ViewChild,
|
|
14866
|
+
args: ['maximize', { read: ElementRef }]
|
|
14837
14867
|
}] } });
|
|
14838
14868
|
|
|
14839
14869
|
/**
|
|
@@ -538,8 +538,8 @@ const packageMetadata = {
|
|
|
538
538
|
name: '@progress/kendo-angular-inputs',
|
|
539
539
|
productName: 'Kendo UI for Angular',
|
|
540
540
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
541
|
-
publishDate:
|
|
542
|
-
version: '11.3.
|
|
541
|
+
publishDate: 1677750368,
|
|
542
|
+
version: '11.3.1-develop.1',
|
|
543
543
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
544
544
|
};
|
|
545
545
|
|
|
@@ -13953,6 +13953,8 @@ class SignatureOpenEvent extends PreventableEvent {
|
|
|
13953
13953
|
}
|
|
13954
13954
|
|
|
13955
13955
|
const noop = () => { };
|
|
13956
|
+
let _id = 0;
|
|
13957
|
+
const nextId = () => 'k-signature-focusable-' + _id++;
|
|
13956
13958
|
const FOCUSED_CLASS = 'k-focus';
|
|
13957
13959
|
const DEFAULT_SIZE = 'medium';
|
|
13958
13960
|
const DEFAULT_ROUNDED = 'medium';
|
|
@@ -13975,6 +13977,10 @@ class SignatureComponent {
|
|
|
13975
13977
|
this.cd = cd;
|
|
13976
13978
|
this.localization = localization;
|
|
13977
13979
|
this.staticHostClasses = true;
|
|
13980
|
+
/**
|
|
13981
|
+
* @hidden
|
|
13982
|
+
*/
|
|
13983
|
+
this.focusableId = nextId();
|
|
13978
13984
|
/**
|
|
13979
13985
|
* Sets the read-only state of the Signature.
|
|
13980
13986
|
*
|
|
@@ -14253,7 +14259,10 @@ class SignatureComponent {
|
|
|
14253
14259
|
return;
|
|
14254
14260
|
}
|
|
14255
14261
|
this.applyHostClasses();
|
|
14256
|
-
this.
|
|
14262
|
+
this.ngZone.onStable.pipe(take(1)).subscribe(() => {
|
|
14263
|
+
this.readThemeColors();
|
|
14264
|
+
this.instance.setOptions(this.options);
|
|
14265
|
+
});
|
|
14257
14266
|
this.ngZone.runOutsideAngular(() => {
|
|
14258
14267
|
const element = this.canvas.nativeElement;
|
|
14259
14268
|
this.instance = new SignaturePad(element, {
|
|
@@ -14265,6 +14274,11 @@ class SignatureComponent {
|
|
|
14265
14274
|
if (this.value) {
|
|
14266
14275
|
this.instance.loadImage(this.value);
|
|
14267
14276
|
}
|
|
14277
|
+
if (this.maximized) {
|
|
14278
|
+
this.ngZone.onStable.pipe(take(1)).subscribe(() => {
|
|
14279
|
+
this.minimizeButton?.nativeElement.focus();
|
|
14280
|
+
});
|
|
14281
|
+
}
|
|
14268
14282
|
this.addEventListeners();
|
|
14269
14283
|
});
|
|
14270
14284
|
}
|
|
@@ -14346,7 +14360,9 @@ class SignatureComponent {
|
|
|
14346
14360
|
this.close.next(args);
|
|
14347
14361
|
if (!args.isDefaultPrevented()) {
|
|
14348
14362
|
this.isOpen = false;
|
|
14349
|
-
this.
|
|
14363
|
+
this.ngZone.onStable.pipe(take(1)).subscribe(() => {
|
|
14364
|
+
(this.maximizeButton || this.element)?.nativeElement?.focus();
|
|
14365
|
+
});
|
|
14350
14366
|
}
|
|
14351
14367
|
}
|
|
14352
14368
|
/**
|
|
@@ -14518,11 +14534,11 @@ class SignatureComponent {
|
|
|
14518
14534
|
}
|
|
14519
14535
|
}
|
|
14520
14536
|
SignatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SignatureComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }, { token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
14521
|
-
SignatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: SignatureComponent, selector: "kendo-signature", inputs: { readonly: "readonly", disabled: "disabled", width: "width", height: "height", value: "value", tabindex: "tabindex", size: "size", rounded: "rounded", fillMode: "fillMode", color: "color", backgroundColor: "backgroundColor", strokeWidth: "strokeWidth", smooth: "smooth", maximizable: "maximizable", maximized: "maximized", popupScale: "popupScale", exportScale: "exportScale", parentLocalization: "parentLocalization", hideLine: "hideLine" }, outputs: { valueChange: "valueChange", open: "open", close: "close", onFocus: "focus", onBlur: "blur", minimize: "minimize" }, host: { properties: { "class.k-signature": "this.staticHostClasses", "class.k-input": "this.staticHostClasses", "attr.dir": "this.direction", "class.k-readonly": "this.readonly", "class.k-disabled": "this.disabled", "style.width.px": "this.width", "style.height.px": "this.height" } }, providers: [
|
|
14537
|
+
SignatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: SignatureComponent, selector: "kendo-signature", inputs: { focusableId: "focusableId", readonly: "readonly", disabled: "disabled", width: "width", height: "height", value: "value", tabindex: "tabindex", size: "size", rounded: "rounded", fillMode: "fillMode", color: "color", backgroundColor: "backgroundColor", strokeWidth: "strokeWidth", smooth: "smooth", maximizable: "maximizable", maximized: "maximized", popupScale: "popupScale", exportScale: "exportScale", parentLocalization: "parentLocalization", hideLine: "hideLine" }, outputs: { valueChange: "valueChange", open: "open", close: "close", onFocus: "focus", onBlur: "blur", minimize: "minimize" }, host: { properties: { "class.k-signature": "this.staticHostClasses", "class.k-input": "this.staticHostClasses", "attr.dir": "this.direction", "class.k-readonly": "this.readonly", "class.k-disabled": "this.disabled", "style.width.px": "this.width", "style.height.px": "this.height" } }, providers: [
|
|
14522
14538
|
LocalizationService,
|
|
14523
14539
|
{ provide: L10N_PREFIX, useValue: 'kendo.signature' },
|
|
14524
14540
|
{ multi: true, provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => SignatureComponent) }
|
|
14525
|
-
], viewQueries: [{ propertyName: "
|
|
14541
|
+
], viewQueries: [{ propertyName: "canvas", first: true, predicate: ["canvas"], descendants: true }, { propertyName: "minimizeButton", first: true, predicate: ["minimize"], descendants: true, read: ElementRef }, { propertyName: "maximizeButton", first: true, predicate: ["maximize"], descendants: true, read: ElementRef }], exportAs: ["kendoSignature"], usesOnChanges: true, ngImport: i0, template: `
|
|
14526
14542
|
<ng-container kendoSignatureLocalizedMessages
|
|
14527
14543
|
i18n-clear="kendo.signature.clear|The message for the Clear button."
|
|
14528
14544
|
clear="Clear"
|
|
@@ -14534,10 +14550,19 @@ SignatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ver
|
|
|
14534
14550
|
canvasLabel="Signature canvas">
|
|
14535
14551
|
</ng-container>
|
|
14536
14552
|
|
|
14553
|
+
<div
|
|
14554
|
+
#canvas
|
|
14555
|
+
class="k-signature-canvas"
|
|
14556
|
+
[attr.tabindex]="tabindex"
|
|
14557
|
+
[id]="focusableId"
|
|
14558
|
+
role="img"
|
|
14559
|
+
[attr.aria-label]="canvasLabel"
|
|
14560
|
+
></div>
|
|
14561
|
+
|
|
14537
14562
|
<div class="k-signature-actions k-signature-actions-top">
|
|
14538
14563
|
<button
|
|
14564
|
+
#maximize
|
|
14539
14565
|
*ngIf="showMaximize"
|
|
14540
|
-
#maximizeButton
|
|
14541
14566
|
kendoButton
|
|
14542
14567
|
class="k-signature-action k-signature-maximize"
|
|
14543
14568
|
icon="hyperlink-open"
|
|
@@ -14549,6 +14574,7 @@ SignatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ver
|
|
|
14549
14574
|
[title]="maximizeTitle">
|
|
14550
14575
|
</button>
|
|
14551
14576
|
<button
|
|
14577
|
+
#minimize
|
|
14552
14578
|
*ngIf="showMinimize"
|
|
14553
14579
|
kendoButton
|
|
14554
14580
|
class="k-signature-action k-signature-minimize k-rotate-180"
|
|
@@ -14561,13 +14587,6 @@ SignatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ver
|
|
|
14561
14587
|
[title]="minimizeTitle">
|
|
14562
14588
|
</button>
|
|
14563
14589
|
</div>
|
|
14564
|
-
<div
|
|
14565
|
-
#canvas
|
|
14566
|
-
class="k-signature-canvas"
|
|
14567
|
-
[attr.tabindex]="tabindex"
|
|
14568
|
-
role="img"
|
|
14569
|
-
[attr.aria-label]="canvasLabel"
|
|
14570
|
-
></div>
|
|
14571
14590
|
<div
|
|
14572
14591
|
*ngIf="!hideLine"
|
|
14573
14592
|
class="k-signature-line"
|
|
@@ -14611,10 +14630,11 @@ SignatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ver
|
|
|
14611
14630
|
[width]="popupWidth"
|
|
14612
14631
|
[height]="popupHeight"
|
|
14613
14632
|
[popupScale]="popupScale"
|
|
14633
|
+
[exportScale]="(1 / popupScale) * exportScale"
|
|
14614
14634
|
[parentLocalization]="localization">
|
|
14615
14635
|
</kendo-signature>
|
|
14616
14636
|
</kendo-dialog>
|
|
14617
|
-
`, isInline: true, components: [{ type: i2.Button, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { type: i3$1.DialogComponent, selector: "kendo-dialog", inputs: ["actions", "actionsLayout", "autoFocusedElement", "title", "width", "minWidth", "maxWidth", "height", "minHeight", "maxHeight", "animation", "themeColor"], outputs: ["action", "close"], exportAs: ["kendoDialog"] }, { type: SignatureComponent, selector: "kendo-signature", inputs: ["readonly", "disabled", "width", "height", "value", "tabindex", "size", "rounded", "fillMode", "color", "backgroundColor", "strokeWidth", "smooth", "maximizable", "maximized", "popupScale", "exportScale", "parentLocalization", "hideLine"], outputs: ["valueChange", "open", "close", "focus", "blur", "minimize"], exportAs: ["kendoSignature"] }], directives: [{ type: LocalizedSignatureMessagesDirective, selector: "[kendoSignatureLocalizedMessages]" }, { type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
14637
|
+
`, isInline: true, components: [{ type: i2.Button, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { type: i3$1.DialogComponent, selector: "kendo-dialog", inputs: ["actions", "actionsLayout", "autoFocusedElement", "title", "width", "minWidth", "maxWidth", "height", "minHeight", "maxHeight", "animation", "themeColor"], outputs: ["action", "close"], exportAs: ["kendoDialog"] }, { type: SignatureComponent, selector: "kendo-signature", inputs: ["focusableId", "readonly", "disabled", "width", "height", "value", "tabindex", "size", "rounded", "fillMode", "color", "backgroundColor", "strokeWidth", "smooth", "maximizable", "maximized", "popupScale", "exportScale", "parentLocalization", "hideLine"], outputs: ["valueChange", "open", "close", "focus", "blur", "minimize"], exportAs: ["kendoSignature"] }], directives: [{ type: LocalizedSignatureMessagesDirective, selector: "[kendoSignatureLocalizedMessages]" }, { type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
14618
14638
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SignatureComponent, decorators: [{
|
|
14619
14639
|
type: Component,
|
|
14620
14640
|
args: [{
|
|
@@ -14638,10 +14658,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
14638
14658
|
canvasLabel="Signature canvas">
|
|
14639
14659
|
</ng-container>
|
|
14640
14660
|
|
|
14661
|
+
<div
|
|
14662
|
+
#canvas
|
|
14663
|
+
class="k-signature-canvas"
|
|
14664
|
+
[attr.tabindex]="tabindex"
|
|
14665
|
+
[id]="focusableId"
|
|
14666
|
+
role="img"
|
|
14667
|
+
[attr.aria-label]="canvasLabel"
|
|
14668
|
+
></div>
|
|
14669
|
+
|
|
14641
14670
|
<div class="k-signature-actions k-signature-actions-top">
|
|
14642
14671
|
<button
|
|
14672
|
+
#maximize
|
|
14643
14673
|
*ngIf="showMaximize"
|
|
14644
|
-
#maximizeButton
|
|
14645
14674
|
kendoButton
|
|
14646
14675
|
class="k-signature-action k-signature-maximize"
|
|
14647
14676
|
icon="hyperlink-open"
|
|
@@ -14653,6 +14682,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
14653
14682
|
[title]="maximizeTitle">
|
|
14654
14683
|
</button>
|
|
14655
14684
|
<button
|
|
14685
|
+
#minimize
|
|
14656
14686
|
*ngIf="showMinimize"
|
|
14657
14687
|
kendoButton
|
|
14658
14688
|
class="k-signature-action k-signature-minimize k-rotate-180"
|
|
@@ -14665,13 +14695,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
14665
14695
|
[title]="minimizeTitle">
|
|
14666
14696
|
</button>
|
|
14667
14697
|
</div>
|
|
14668
|
-
<div
|
|
14669
|
-
#canvas
|
|
14670
|
-
class="k-signature-canvas"
|
|
14671
|
-
[attr.tabindex]="tabindex"
|
|
14672
|
-
role="img"
|
|
14673
|
-
[attr.aria-label]="canvasLabel"
|
|
14674
|
-
></div>
|
|
14675
14698
|
<div
|
|
14676
14699
|
*ngIf="!hideLine"
|
|
14677
14700
|
class="k-signature-line"
|
|
@@ -14715,6 +14738,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
14715
14738
|
[width]="popupWidth"
|
|
14716
14739
|
[height]="popupHeight"
|
|
14717
14740
|
[popupScale]="popupScale"
|
|
14741
|
+
[exportScale]="(1 / popupScale) * exportScale"
|
|
14718
14742
|
[parentLocalization]="localization">
|
|
14719
14743
|
</kendo-signature>
|
|
14720
14744
|
</kendo-dialog>
|
|
@@ -14726,12 +14750,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
14726
14750
|
}, {
|
|
14727
14751
|
type: HostBinding,
|
|
14728
14752
|
args: ['class.k-input']
|
|
14753
|
+
}], focusableId: [{
|
|
14754
|
+
type: Input
|
|
14729
14755
|
}], direction: [{
|
|
14730
14756
|
type: HostBinding,
|
|
14731
14757
|
args: ['attr.dir']
|
|
14732
|
-
}], maximizeButton: [{
|
|
14733
|
-
type: ViewChild,
|
|
14734
|
-
args: ['maximizeButton', { read: ElementRef }]
|
|
14735
14758
|
}], readonly: [{
|
|
14736
14759
|
type: HostBinding,
|
|
14737
14760
|
args: ['class.k-readonly']
|
|
@@ -14799,6 +14822,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
14799
14822
|
}], canvas: [{
|
|
14800
14823
|
type: ViewChild,
|
|
14801
14824
|
args: ['canvas']
|
|
14825
|
+
}], minimizeButton: [{
|
|
14826
|
+
type: ViewChild,
|
|
14827
|
+
args: ['minimize', { read: ElementRef }]
|
|
14828
|
+
}], maximizeButton: [{
|
|
14829
|
+
type: ViewChild,
|
|
14830
|
+
args: ['maximize', { read: ElementRef }]
|
|
14802
14831
|
}] } });
|
|
14803
14832
|
|
|
14804
14833
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-inputs",
|
|
3
|
-
"version": "11.3.
|
|
3
|
+
"version": "11.3.1-develop.1",
|
|
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",
|
|
@@ -33,19 +33,19 @@
|
|
|
33
33
|
"@angular/platform-browser": "13 - 15",
|
|
34
34
|
"@progress/kendo-drawing": "^1.17.2",
|
|
35
35
|
"@progress/kendo-licensing": "^1.0.2",
|
|
36
|
-
"@progress/kendo-angular-buttons": "11.3.
|
|
37
|
-
"@progress/kendo-angular-common": "11.3.
|
|
38
|
-
"@progress/kendo-angular-dialog": "11.3.
|
|
39
|
-
"@progress/kendo-angular-intl": "11.3.
|
|
40
|
-
"@progress/kendo-angular-l10n": "11.3.
|
|
41
|
-
"@progress/kendo-angular-popup": "11.3.
|
|
42
|
-
"@progress/kendo-angular-icons": "11.3.
|
|
36
|
+
"@progress/kendo-angular-buttons": "11.3.1-develop.1",
|
|
37
|
+
"@progress/kendo-angular-common": "11.3.1-develop.1",
|
|
38
|
+
"@progress/kendo-angular-dialog": "11.3.1-develop.1",
|
|
39
|
+
"@progress/kendo-angular-intl": "11.3.1-develop.1",
|
|
40
|
+
"@progress/kendo-angular-l10n": "11.3.1-develop.1",
|
|
41
|
+
"@progress/kendo-angular-popup": "11.3.1-develop.1",
|
|
42
|
+
"@progress/kendo-angular-icons": "11.3.1-develop.1",
|
|
43
43
|
"rxjs": "^6.5.3 || ^7.0.0",
|
|
44
|
-
"@progress/kendo-angular-upload": "11.3.
|
|
44
|
+
"@progress/kendo-angular-upload": "11.3.1-develop.1"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"tslib": "^2.3.1",
|
|
48
|
-
"@progress/kendo-angular-schematics": "11.3.
|
|
48
|
+
"@progress/kendo-angular-schematics": "11.3.1-develop.1",
|
|
49
49
|
"@progress/kendo-common": "^0.2.2",
|
|
50
50
|
"@progress/kendo-draggable": "^3.0.0",
|
|
51
51
|
"@progress/kendo-inputs-common": "^3.1.0"
|
|
@@ -21,8 +21,11 @@ export declare class SignatureComponent implements ControlValueAccessor {
|
|
|
21
21
|
private cd;
|
|
22
22
|
localization: LocalizationService;
|
|
23
23
|
staticHostClasses: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* @hidden
|
|
26
|
+
*/
|
|
27
|
+
focusableId: string;
|
|
24
28
|
direction: string;
|
|
25
|
-
maximizeButton: ElementRef;
|
|
26
29
|
/**
|
|
27
30
|
* Sets the read-only state of the Signature.
|
|
28
31
|
*
|
|
@@ -190,6 +193,8 @@ export declare class SignatureComponent implements ControlValueAccessor {
|
|
|
190
193
|
*/
|
|
191
194
|
minimize: EventEmitter<void>;
|
|
192
195
|
canvas: ElementRef;
|
|
196
|
+
minimizeButton: ElementRef;
|
|
197
|
+
maximizeButton: ElementRef;
|
|
193
198
|
/**
|
|
194
199
|
* Indicates whether the Signature wrapper is focused.
|
|
195
200
|
*/
|
|
@@ -355,5 +360,5 @@ export declare class SignatureComponent implements ControlValueAccessor {
|
|
|
355
360
|
private addEventListeners;
|
|
356
361
|
private getMessage;
|
|
357
362
|
static ɵfac: i0.ɵɵFactoryDeclaration<SignatureComponent, never>;
|
|
358
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SignatureComponent, "kendo-signature", ["kendoSignature"], { "readonly": "readonly"; "disabled": "disabled"; "width": "width"; "height": "height"; "value": "value"; "tabindex": "tabindex"; "size": "size"; "rounded": "rounded"; "fillMode": "fillMode"; "color": "color"; "backgroundColor": "backgroundColor"; "strokeWidth": "strokeWidth"; "smooth": "smooth"; "maximizable": "maximizable"; "maximized": "maximized"; "popupScale": "popupScale"; "exportScale": "exportScale"; "parentLocalization": "parentLocalization"; "hideLine": "hideLine"; }, { "valueChange": "valueChange"; "open": "open"; "close": "close"; "onFocus": "focus"; "onBlur": "blur"; "minimize": "minimize"; }, never, never>;
|
|
363
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SignatureComponent, "kendo-signature", ["kendoSignature"], { "focusableId": "focusableId"; "readonly": "readonly"; "disabled": "disabled"; "width": "width"; "height": "height"; "value": "value"; "tabindex": "tabindex"; "size": "size"; "rounded": "rounded"; "fillMode": "fillMode"; "color": "color"; "backgroundColor": "backgroundColor"; "strokeWidth": "strokeWidth"; "smooth": "smooth"; "maximizable": "maximizable"; "maximized": "maximized"; "popupScale": "popupScale"; "exportScale": "exportScale"; "parentLocalization": "parentLocalization"; "hideLine": "hideLine"; }, { "valueChange": "valueChange"; "open": "open"; "close": "close"; "onFocus": "focus"; "onBlur": "blur"; "minimize": "minimize"; }, never, never>;
|
|
359
364
|
}
|