@progress/kendo-angular-inputs 9.0.5-dev.202208101035 → 9.1.0-sig.202208261245
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/common/utils.d.ts +21 -0
- package/esm2015/common/utils.js +16 -6
- package/esm2015/inputs.module.js +7 -3
- package/esm2015/main.js +4 -0
- package/esm2015/package-metadata.js +1 -1
- package/esm2015/signature/events/close-event.js +10 -0
- package/esm2015/signature/events/index.js +6 -0
- package/esm2015/signature/events/open-event.js +10 -0
- package/esm2015/signature/localization/custom-messages.component.js +40 -0
- package/esm2015/signature/localization/index.js +7 -0
- package/esm2015/signature/localization/localized-signature-messages.directive.js +36 -0
- package/esm2015/signature/localization/messages.js +27 -0
- package/esm2015/signature/signature.component.js +767 -0
- package/esm2015/signature.module.js +75 -0
- package/fesm2015/kendo-angular-inputs.js +985 -58
- package/inputs.module.d.ts +2 -1
- package/main.d.ts +4 -0
- package/package.json +7 -4
- package/signature/events/close-event.d.ts +10 -0
- package/signature/events/index.d.ts +6 -0
- package/signature/events/open-event.d.ts +10 -0
- package/signature/localization/custom-messages.component.d.ts +17 -0
- package/signature/localization/index.d.ts +7 -0
- package/signature/localization/localized-signature-messages.directive.d.ts +16 -0
- package/signature/localization/messages.d.ts +25 -0
- package/signature/signature.component.d.ts +317 -0
- package/signature.module.d.ts +47 -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 * as i0 from '@angular/core';
|
|
6
|
-
import { isDevMode, Directive, Optional, EventEmitter, ElementRef, Component, Input, Output, HostBinding, ViewChild, ContentChild, ViewChildren, forwardRef, Inject, Injectable, HostListener, NgModule, ViewContainerRef, ContentChildren } from '@angular/core';
|
|
6
|
+
import { isDevMode, Directive, Optional, EventEmitter, ElementRef, Component, Input, Output, HostBinding, ViewChild, ContentChild, ViewChildren, forwardRef, Inject, Injectable, HostListener, NgModule, ViewContainerRef, ContentChildren, ChangeDetectionStrategy } from '@angular/core';
|
|
7
7
|
import { NgControl, NG_VALUE_ACCESSOR, NG_VALIDATORS, RadioControlValueAccessor } from '@angular/forms';
|
|
8
8
|
import { Subscription, fromEvent, interval, merge, BehaviorSubject, Subject } from 'rxjs';
|
|
9
9
|
import { take, filter, concatMap, startWith, takeUntil, skip, debounceTime, throttleTime } from 'rxjs/operators';
|
|
@@ -19,6 +19,12 @@ import * as i1$2 from '@progress/kendo-angular-intl';
|
|
|
19
19
|
import * as i1$3 from '@progress/kendo-angular-popup';
|
|
20
20
|
import { PopupModule } from '@progress/kendo-angular-popup';
|
|
21
21
|
import { parseColor as parseColor$1, Color, namedColors } from '@progress/kendo-drawing';
|
|
22
|
+
import * as i5 from '@progress/kendo-angular-buttons';
|
|
23
|
+
import { ButtonModule } from '@progress/kendo-angular-buttons';
|
|
24
|
+
import * as i2 from '@progress/kendo-angular-dialog';
|
|
25
|
+
import { DialogsModule } from '@progress/kendo-angular-dialog';
|
|
26
|
+
import { __awaiter } from 'tslib';
|
|
27
|
+
import { SignaturePad } from '@progress/kendo-inputs-common';
|
|
22
28
|
|
|
23
29
|
/**
|
|
24
30
|
* @hidden
|
|
@@ -50,17 +56,27 @@ const fitIntoBounds = (contender, min, max) => {
|
|
|
50
56
|
}
|
|
51
57
|
return contender <= min ? min : contender >= max ? max : contender;
|
|
52
58
|
};
|
|
53
|
-
|
|
59
|
+
/**
|
|
60
|
+
* @hidden
|
|
61
|
+
*/
|
|
62
|
+
const SIZE_MAP = {
|
|
54
63
|
small: 'sm',
|
|
55
64
|
medium: 'md',
|
|
56
65
|
large: 'lg'
|
|
57
66
|
};
|
|
58
|
-
|
|
67
|
+
/**
|
|
68
|
+
* @hidden
|
|
69
|
+
*/
|
|
70
|
+
const ROUNDED_MAP = {
|
|
59
71
|
small: 'sm',
|
|
60
72
|
medium: 'md',
|
|
61
73
|
large: 'lg',
|
|
62
74
|
full: 'full'
|
|
63
75
|
};
|
|
76
|
+
/**
|
|
77
|
+
* @hidden
|
|
78
|
+
*/
|
|
79
|
+
const isNone = (style) => style === 'none';
|
|
64
80
|
/**
|
|
65
81
|
* @hidden
|
|
66
82
|
*
|
|
@@ -70,13 +86,13 @@ const getStylingClasses = (componentType, stylingOption, previousValue, newValue
|
|
|
70
86
|
switch (stylingOption) {
|
|
71
87
|
case 'size':
|
|
72
88
|
return {
|
|
73
|
-
toRemove: `k-${componentType}-${
|
|
74
|
-
toAdd: newValue !== 'none' ? `k-${componentType}-${
|
|
89
|
+
toRemove: `k-${componentType}-${SIZE_MAP[previousValue]}`,
|
|
90
|
+
toAdd: newValue !== 'none' ? `k-${componentType}-${SIZE_MAP[newValue]}` : ''
|
|
75
91
|
};
|
|
76
92
|
case 'rounded':
|
|
77
93
|
return {
|
|
78
|
-
toRemove: `k-rounded-${
|
|
79
|
-
toAdd: newValue !== 'none' ? `k-rounded-${
|
|
94
|
+
toRemove: `k-rounded-${ROUNDED_MAP[previousValue]}`,
|
|
95
|
+
toAdd: newValue !== 'none' ? `k-rounded-${ROUNDED_MAP[newValue]}` : ''
|
|
80
96
|
};
|
|
81
97
|
case 'fillMode':
|
|
82
98
|
return {
|
|
@@ -519,7 +535,7 @@ const packageMetadata = {
|
|
|
519
535
|
name: '@progress/kendo-angular-inputs',
|
|
520
536
|
productName: 'Kendo UI for Angular',
|
|
521
537
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
522
|
-
publishDate:
|
|
538
|
+
publishDate: 1661517686,
|
|
523
539
|
version: '',
|
|
524
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'
|
|
525
541
|
};
|
|
@@ -2251,7 +2267,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
2251
2267
|
}], ctorParameters: function () { return [{ type: i1.LocalizationService }]; } });
|
|
2252
2268
|
|
|
2253
2269
|
const FOCUSED$4 = 'k-focus';
|
|
2254
|
-
const DEFAULT_SIZE$
|
|
2270
|
+
const DEFAULT_SIZE$8 = 'medium';
|
|
2255
2271
|
const DEFAULT_THUMB_ROUNDED = 'full';
|
|
2256
2272
|
const DEFAULT_TRACK_ROUNDED = 'full';
|
|
2257
2273
|
/**
|
|
@@ -2361,7 +2377,7 @@ class SwitchComponent {
|
|
|
2361
2377
|
* * `none`
|
|
2362
2378
|
*/
|
|
2363
2379
|
set size(size) {
|
|
2364
|
-
const newSize = size ? size : DEFAULT_SIZE$
|
|
2380
|
+
const newSize = size ? size : DEFAULT_SIZE$8;
|
|
2365
2381
|
this.handleClasses(newSize, 'size');
|
|
2366
2382
|
this._size = newSize;
|
|
2367
2383
|
}
|
|
@@ -3238,7 +3254,7 @@ const decimalPart = (value) => {
|
|
|
3238
3254
|
/**
|
|
3239
3255
|
* @hidden
|
|
3240
3256
|
*/
|
|
3241
|
-
const noop = (_) => { }; // eslint-disable-line no-empty
|
|
3257
|
+
const noop$1 = (_) => { }; // eslint-disable-line no-empty
|
|
3242
3258
|
/**
|
|
3243
3259
|
* @hidden
|
|
3244
3260
|
*/
|
|
@@ -3363,9 +3379,9 @@ const PARSABLE_DEFAULTS = {
|
|
|
3363
3379
|
step: 1
|
|
3364
3380
|
};
|
|
3365
3381
|
const FOCUSED$3 = 'k-focus';
|
|
3366
|
-
const DEFAULT_SIZE$
|
|
3367
|
-
const DEFAULT_ROUNDED$
|
|
3368
|
-
const DEFAULT_FILL_MODE$
|
|
3382
|
+
const DEFAULT_SIZE$7 = 'medium';
|
|
3383
|
+
const DEFAULT_ROUNDED$6 = 'medium';
|
|
3384
|
+
const DEFAULT_FILL_MODE$5 = 'solid';
|
|
3369
3385
|
/**
|
|
3370
3386
|
* Represents the [Kendo UI NumericTextBox component for Angular]({% slug overview_numerictextbox %}).
|
|
3371
3387
|
*/
|
|
@@ -3462,17 +3478,17 @@ class NumericTextBoxComponent {
|
|
|
3462
3478
|
this.arrowDirection = ArrowDirection.None;
|
|
3463
3479
|
this.hostClasses = true;
|
|
3464
3480
|
this.inputValue = '';
|
|
3465
|
-
this.minValidateFn = noop;
|
|
3466
|
-
this.maxValidateFn = noop;
|
|
3481
|
+
this.minValidateFn = noop$1;
|
|
3482
|
+
this.maxValidateFn = noop$1;
|
|
3467
3483
|
this._format = "n2";
|
|
3468
3484
|
this.isPasted = false;
|
|
3469
3485
|
this.mouseDown = false;
|
|
3470
3486
|
this._size = 'medium';
|
|
3471
3487
|
this._rounded = 'medium';
|
|
3472
3488
|
this._fillMode = 'solid';
|
|
3473
|
-
this.ngChange = noop;
|
|
3474
|
-
this.ngTouched = noop;
|
|
3475
|
-
this.ngValidatorChange = noop;
|
|
3489
|
+
this.ngChange = noop$1;
|
|
3490
|
+
this.ngTouched = noop$1;
|
|
3491
|
+
this.ngValidatorChange = noop$1;
|
|
3476
3492
|
this.domEvents = [];
|
|
3477
3493
|
/**
|
|
3478
3494
|
* @hidden
|
|
@@ -3669,7 +3685,7 @@ class NumericTextBoxComponent {
|
|
|
3669
3685
|
* * `none`
|
|
3670
3686
|
*/
|
|
3671
3687
|
set size(size) {
|
|
3672
|
-
const newSize = size ? size : DEFAULT_SIZE$
|
|
3688
|
+
const newSize = size ? size : DEFAULT_SIZE$7;
|
|
3673
3689
|
this.handleClasses(newSize, 'size');
|
|
3674
3690
|
this._size = newSize;
|
|
3675
3691
|
}
|
|
@@ -3686,7 +3702,7 @@ class NumericTextBoxComponent {
|
|
|
3686
3702
|
* * `none`
|
|
3687
3703
|
*/
|
|
3688
3704
|
set rounded(rounded) {
|
|
3689
|
-
const newRounded = rounded ? rounded : DEFAULT_ROUNDED$
|
|
3705
|
+
const newRounded = rounded ? rounded : DEFAULT_ROUNDED$6;
|
|
3690
3706
|
this.handleClasses(newRounded, 'rounded');
|
|
3691
3707
|
this._rounded = newRounded;
|
|
3692
3708
|
}
|
|
@@ -3703,7 +3719,7 @@ class NumericTextBoxComponent {
|
|
|
3703
3719
|
* * `none`
|
|
3704
3720
|
*/
|
|
3705
3721
|
set fillMode(fillMode) {
|
|
3706
|
-
const newFillMode = fillMode ? fillMode : DEFAULT_FILL_MODE$
|
|
3722
|
+
const newFillMode = fillMode ? fillMode : DEFAULT_FILL_MODE$5;
|
|
3707
3723
|
this.handleClasses(newFillMode, 'fillMode');
|
|
3708
3724
|
this._fillMode = newFillMode;
|
|
3709
3725
|
}
|
|
@@ -3744,8 +3760,8 @@ class NumericTextBoxComponent {
|
|
|
3744
3760
|
}
|
|
3745
3761
|
this.verifySettings();
|
|
3746
3762
|
if (anyChanged(['min', 'max', 'rangeValidation'], changes, false)) {
|
|
3747
|
-
this.minValidateFn = this.rangeValidation ? createMinValidator(this.min) : noop;
|
|
3748
|
-
this.maxValidateFn = this.rangeValidation ? createMaxValidator(this.max) : noop;
|
|
3763
|
+
this.minValidateFn = this.rangeValidation ? createMinValidator(this.min) : noop$1;
|
|
3764
|
+
this.maxValidateFn = this.rangeValidation ? createMaxValidator(this.max) : noop$1;
|
|
3749
3765
|
this.ngValidatorChange();
|
|
3750
3766
|
}
|
|
3751
3767
|
if (anyChanged(['autoCorrect', 'decimals', 'min'], changes)) {
|
|
@@ -4856,9 +4872,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
4856
4872
|
|
|
4857
4873
|
const resolvedPromise = Promise.resolve(null);
|
|
4858
4874
|
const FOCUSED$2 = 'k-focus';
|
|
4859
|
-
const DEFAULT_SIZE$
|
|
4860
|
-
const DEFAULT_ROUNDED$
|
|
4861
|
-
const DEFAULT_FILL_MODE$
|
|
4875
|
+
const DEFAULT_SIZE$6 = 'medium';
|
|
4876
|
+
const DEFAULT_ROUNDED$5 = 'medium';
|
|
4877
|
+
const DEFAULT_FILL_MODE$4 = 'solid';
|
|
4862
4878
|
/**
|
|
4863
4879
|
* Represents the [Kendo UI MaskedTextBox component for Angular]({% slug overview_maskedtextbox %}).
|
|
4864
4880
|
*
|
|
@@ -5056,7 +5072,7 @@ class MaskedTextBoxComponent {
|
|
|
5056
5072
|
* * `none`
|
|
5057
5073
|
*/
|
|
5058
5074
|
set size(size) {
|
|
5059
|
-
const newSize = size ? size : DEFAULT_SIZE$
|
|
5075
|
+
const newSize = size ? size : DEFAULT_SIZE$6;
|
|
5060
5076
|
this.handleClasses(newSize, 'size');
|
|
5061
5077
|
this._size = newSize;
|
|
5062
5078
|
}
|
|
@@ -5073,7 +5089,7 @@ class MaskedTextBoxComponent {
|
|
|
5073
5089
|
* * `none`
|
|
5074
5090
|
*/
|
|
5075
5091
|
set rounded(rounded) {
|
|
5076
|
-
const newRounded = rounded ? rounded : DEFAULT_ROUNDED$
|
|
5092
|
+
const newRounded = rounded ? rounded : DEFAULT_ROUNDED$5;
|
|
5077
5093
|
this.handleClasses(newRounded, 'rounded');
|
|
5078
5094
|
this._rounded = newRounded;
|
|
5079
5095
|
}
|
|
@@ -5090,7 +5106,7 @@ class MaskedTextBoxComponent {
|
|
|
5090
5106
|
* * `none`
|
|
5091
5107
|
*/
|
|
5092
5108
|
set fillMode(fillMode) {
|
|
5093
|
-
const newFillMode = fillMode ? fillMode : DEFAULT_FILL_MODE$
|
|
5109
|
+
const newFillMode = fillMode ? fillMode : DEFAULT_FILL_MODE$4;
|
|
5094
5110
|
this.handleClasses(newFillMode, 'fillMode');
|
|
5095
5111
|
this._fillMode = newFillMode;
|
|
5096
5112
|
}
|
|
@@ -6081,9 +6097,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
6081
6097
|
}], ctorParameters: function () { return [{ type: i1.LocalizationService }]; } });
|
|
6082
6098
|
|
|
6083
6099
|
const FOCUSED$1 = 'k-focus';
|
|
6084
|
-
const DEFAULT_SIZE$
|
|
6085
|
-
const DEFAULT_ROUNDED$
|
|
6086
|
-
const DEFAULT_FILL_MODE$
|
|
6100
|
+
const DEFAULT_SIZE$5 = 'medium';
|
|
6101
|
+
const DEFAULT_ROUNDED$4 = 'medium';
|
|
6102
|
+
const DEFAULT_FILL_MODE$3 = 'solid';
|
|
6087
6103
|
class TextBoxComponent {
|
|
6088
6104
|
constructor(localizationService, ngZone, changeDetector, renderer, injector, hostElement) {
|
|
6089
6105
|
this.localizationService = localizationService;
|
|
@@ -6293,7 +6309,7 @@ class TextBoxComponent {
|
|
|
6293
6309
|
* * `none`
|
|
6294
6310
|
*/
|
|
6295
6311
|
set size(size) {
|
|
6296
|
-
const newSize = size ? size : DEFAULT_SIZE$
|
|
6312
|
+
const newSize = size ? size : DEFAULT_SIZE$5;
|
|
6297
6313
|
this.handleClasses(newSize, 'size');
|
|
6298
6314
|
this._size = newSize;
|
|
6299
6315
|
}
|
|
@@ -6312,7 +6328,7 @@ class TextBoxComponent {
|
|
|
6312
6328
|
* * `none`
|
|
6313
6329
|
*/
|
|
6314
6330
|
set rounded(rounded) {
|
|
6315
|
-
const newRounded = rounded ? rounded : DEFAULT_ROUNDED$
|
|
6331
|
+
const newRounded = rounded ? rounded : DEFAULT_ROUNDED$4;
|
|
6316
6332
|
this.handleClasses(newRounded, 'rounded');
|
|
6317
6333
|
this._rounded = newRounded;
|
|
6318
6334
|
}
|
|
@@ -6330,7 +6346,7 @@ class TextBoxComponent {
|
|
|
6330
6346
|
* * `none`
|
|
6331
6347
|
*/
|
|
6332
6348
|
set fillMode(fillMode) {
|
|
6333
|
-
const newFillMode = fillMode ? fillMode : DEFAULT_FILL_MODE$
|
|
6349
|
+
const newFillMode = fillMode ? fillMode : DEFAULT_FILL_MODE$3;
|
|
6334
6350
|
this.handleClasses(newFillMode, 'fillMode');
|
|
6335
6351
|
this._fillMode = newFillMode;
|
|
6336
6352
|
}
|
|
@@ -7115,9 +7131,9 @@ const resizeClasses = {
|
|
|
7115
7131
|
'auto': 'k-resize-none'
|
|
7116
7132
|
};
|
|
7117
7133
|
const FOCUSED = 'k-focus';
|
|
7118
|
-
const DEFAULT_SIZE$
|
|
7119
|
-
const DEFAULT_ROUNDED$
|
|
7120
|
-
const DEFAULT_FILL_MODE$
|
|
7134
|
+
const DEFAULT_SIZE$4 = 'medium';
|
|
7135
|
+
const DEFAULT_ROUNDED$3 = 'medium';
|
|
7136
|
+
const DEFAULT_FILL_MODE$2 = 'solid';
|
|
7121
7137
|
/**
|
|
7122
7138
|
* Represents the [Kendo UI TextArea component for Angular]({% slug overview_textarea %}).
|
|
7123
7139
|
*/
|
|
@@ -7277,7 +7293,7 @@ class TextAreaComponent extends TextFieldsBase {
|
|
|
7277
7293
|
* * `none`
|
|
7278
7294
|
*/
|
|
7279
7295
|
set size(size) {
|
|
7280
|
-
const newSize = size ? size : DEFAULT_SIZE$
|
|
7296
|
+
const newSize = size ? size : DEFAULT_SIZE$4;
|
|
7281
7297
|
this.handleClasses(newSize, 'size');
|
|
7282
7298
|
this._size = newSize;
|
|
7283
7299
|
}
|
|
@@ -7295,7 +7311,7 @@ class TextAreaComponent extends TextFieldsBase {
|
|
|
7295
7311
|
* * `none`
|
|
7296
7312
|
*/
|
|
7297
7313
|
set rounded(rounded) {
|
|
7298
|
-
const newRounded = rounded ? rounded : DEFAULT_ROUNDED$
|
|
7314
|
+
const newRounded = rounded ? rounded : DEFAULT_ROUNDED$3;
|
|
7299
7315
|
this.handleClasses(newRounded, 'rounded');
|
|
7300
7316
|
this._rounded = newRounded;
|
|
7301
7317
|
}
|
|
@@ -7313,7 +7329,7 @@ class TextAreaComponent extends TextFieldsBase {
|
|
|
7313
7329
|
* * `none`
|
|
7314
7330
|
*/
|
|
7315
7331
|
set fillMode(fillMode) {
|
|
7316
|
-
const newFillMode = fillMode ? fillMode : DEFAULT_FILL_MODE$
|
|
7332
|
+
const newFillMode = fillMode ? fillMode : DEFAULT_FILL_MODE$2;
|
|
7317
7333
|
this.handleClasses(newFillMode, 'fillMode');
|
|
7318
7334
|
this._fillMode = newFillMode;
|
|
7319
7335
|
}
|
|
@@ -11258,9 +11274,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
11258
11274
|
}] } });
|
|
11259
11275
|
|
|
11260
11276
|
const DOM_FOCUS_EVENTS = ['focus', 'blur'];
|
|
11261
|
-
const DEFAULT_SIZE$
|
|
11262
|
-
const DEFAULT_ROUNDED$
|
|
11263
|
-
const DEFAULT_FILL_MODE = 'solid';
|
|
11277
|
+
const DEFAULT_SIZE$3 = 'medium';
|
|
11278
|
+
const DEFAULT_ROUNDED$2 = 'medium';
|
|
11279
|
+
const DEFAULT_FILL_MODE$1 = 'solid';
|
|
11264
11280
|
/**
|
|
11265
11281
|
* Represents the [Kendo UI ColorPicker component for Angular]({% slug overview_colorpicker %}).
|
|
11266
11282
|
*
|
|
@@ -11476,7 +11492,7 @@ class ColorPickerComponent {
|
|
|
11476
11492
|
* * `none`
|
|
11477
11493
|
*/
|
|
11478
11494
|
set size(size) {
|
|
11479
|
-
const newSize = size ? size : DEFAULT_SIZE$
|
|
11495
|
+
const newSize = size ? size : DEFAULT_SIZE$3;
|
|
11480
11496
|
this.handleClasses(newSize, 'size');
|
|
11481
11497
|
this._size = newSize;
|
|
11482
11498
|
}
|
|
@@ -11495,7 +11511,7 @@ class ColorPickerComponent {
|
|
|
11495
11511
|
* * `none`
|
|
11496
11512
|
*/
|
|
11497
11513
|
set rounded(rounded) {
|
|
11498
|
-
const newRounded = rounded ? rounded : DEFAULT_ROUNDED$
|
|
11514
|
+
const newRounded = rounded ? rounded : DEFAULT_ROUNDED$2;
|
|
11499
11515
|
this.handleClasses(newRounded, 'rounded');
|
|
11500
11516
|
this._rounded = newRounded;
|
|
11501
11517
|
}
|
|
@@ -11513,7 +11529,7 @@ class ColorPickerComponent {
|
|
|
11513
11529
|
* * `none`
|
|
11514
11530
|
*/
|
|
11515
11531
|
set fillMode(fillMode) {
|
|
11516
|
-
const newFillMode = fillMode ? fillMode : DEFAULT_FILL_MODE;
|
|
11532
|
+
const newFillMode = fillMode ? fillMode : DEFAULT_FILL_MODE$1;
|
|
11517
11533
|
this.handleClasses(newFillMode, 'fillMode');
|
|
11518
11534
|
this._fillMode = newFillMode;
|
|
11519
11535
|
}
|
|
@@ -12297,8 +12313,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
12297
12313
|
}]
|
|
12298
12314
|
}] });
|
|
12299
12315
|
|
|
12300
|
-
const DEFAULT_SIZE$
|
|
12301
|
-
const DEFAULT_ROUNDED = 'medium';
|
|
12316
|
+
const DEFAULT_SIZE$2 = 'medium';
|
|
12317
|
+
const DEFAULT_ROUNDED$1 = 'medium';
|
|
12302
12318
|
/**
|
|
12303
12319
|
* Represents the directive that renders the [Kendo UI CheckBox]({% slug overview_checkbox %}) input component.
|
|
12304
12320
|
* The directive is placed on input type="checkbox" elements.
|
|
@@ -12327,7 +12343,7 @@ class CheckBoxDirective {
|
|
|
12327
12343
|
* * `none`
|
|
12328
12344
|
*/
|
|
12329
12345
|
set size(size) {
|
|
12330
|
-
const newSize = size ? size : DEFAULT_SIZE$
|
|
12346
|
+
const newSize = size ? size : DEFAULT_SIZE$2;
|
|
12331
12347
|
this.handleClasses(newSize, 'size');
|
|
12332
12348
|
this._size = newSize;
|
|
12333
12349
|
}
|
|
@@ -12345,7 +12361,7 @@ class CheckBoxDirective {
|
|
|
12345
12361
|
* * `none`
|
|
12346
12362
|
*/
|
|
12347
12363
|
set rounded(rounded) {
|
|
12348
|
-
const newRounded = rounded ? rounded : DEFAULT_ROUNDED;
|
|
12364
|
+
const newRounded = rounded ? rounded : DEFAULT_ROUNDED$1;
|
|
12349
12365
|
this.handleClasses(newRounded, 'rounded');
|
|
12350
12366
|
this._rounded = newRounded;
|
|
12351
12367
|
}
|
|
@@ -12430,7 +12446,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
12430
12446
|
}]
|
|
12431
12447
|
}] });
|
|
12432
12448
|
|
|
12433
|
-
const DEFAULT_SIZE = 'medium';
|
|
12449
|
+
const DEFAULT_SIZE$1 = 'medium';
|
|
12434
12450
|
/**
|
|
12435
12451
|
* Represents the directive that renders the [Kendo UI RadioButton]({% slug overview_checkbox %}) input component.
|
|
12436
12452
|
* The directive is placed on input type="radio" elements.
|
|
@@ -12458,7 +12474,7 @@ class RadioButtonDirective {
|
|
|
12458
12474
|
* * `none`
|
|
12459
12475
|
*/
|
|
12460
12476
|
set size(size) {
|
|
12461
|
-
const newSize = size ? size : DEFAULT_SIZE;
|
|
12477
|
+
const newSize = size ? size : DEFAULT_SIZE$1;
|
|
12462
12478
|
this.handleClasses(newSize, 'size');
|
|
12463
12479
|
this._size = newSize;
|
|
12464
12480
|
}
|
|
@@ -12978,6 +12994,914 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
12978
12994
|
}]
|
|
12979
12995
|
}] });
|
|
12980
12996
|
|
|
12997
|
+
/**
|
|
12998
|
+
* @hidden
|
|
12999
|
+
*/
|
|
13000
|
+
class SignatureMessages extends ComponentMessages {
|
|
13001
|
+
}
|
|
13002
|
+
SignatureMessages.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SignatureMessages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
13003
|
+
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 });
|
|
13004
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SignatureMessages, decorators: [{
|
|
13005
|
+
type: Directive,
|
|
13006
|
+
args: [{
|
|
13007
|
+
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
13008
|
+
selector: 'kendo-signature-messages-base'
|
|
13009
|
+
}]
|
|
13010
|
+
}], propDecorators: { clear: [{
|
|
13011
|
+
type: Input
|
|
13012
|
+
}], minimize: [{
|
|
13013
|
+
type: Input
|
|
13014
|
+
}], maximize: [{
|
|
13015
|
+
type: Input
|
|
13016
|
+
}] } });
|
|
13017
|
+
|
|
13018
|
+
/**
|
|
13019
|
+
* Custom component messages override default component messages.
|
|
13020
|
+
*/
|
|
13021
|
+
class SignatureCustomMessagesComponent extends SignatureMessages {
|
|
13022
|
+
constructor(service) {
|
|
13023
|
+
super();
|
|
13024
|
+
this.service = service;
|
|
13025
|
+
}
|
|
13026
|
+
get override() {
|
|
13027
|
+
return true;
|
|
13028
|
+
}
|
|
13029
|
+
}
|
|
13030
|
+
SignatureCustomMessagesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SignatureCustomMessagesComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
13031
|
+
SignatureCustomMessagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SignatureCustomMessagesComponent, selector: "kendo-signature-messages", providers: [
|
|
13032
|
+
{
|
|
13033
|
+
provide: SignatureMessages,
|
|
13034
|
+
useExisting: forwardRef(() => SignatureCustomMessagesComponent)
|
|
13035
|
+
}
|
|
13036
|
+
], usesInheritance: true, ngImport: i0, template: ``, isInline: true });
|
|
13037
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SignatureCustomMessagesComponent, decorators: [{
|
|
13038
|
+
type: Component,
|
|
13039
|
+
args: [{
|
|
13040
|
+
providers: [
|
|
13041
|
+
{
|
|
13042
|
+
provide: SignatureMessages,
|
|
13043
|
+
useExisting: forwardRef(() => SignatureCustomMessagesComponent)
|
|
13044
|
+
}
|
|
13045
|
+
],
|
|
13046
|
+
selector: 'kendo-signature-messages',
|
|
13047
|
+
template: ``
|
|
13048
|
+
}]
|
|
13049
|
+
}], ctorParameters: function () { return [{ type: i1.LocalizationService }]; } });
|
|
13050
|
+
|
|
13051
|
+
/**
|
|
13052
|
+
* @hidden
|
|
13053
|
+
*/
|
|
13054
|
+
class LocalizedSignatureMessagesDirective extends SignatureMessages {
|
|
13055
|
+
constructor(service) {
|
|
13056
|
+
super();
|
|
13057
|
+
this.service = service;
|
|
13058
|
+
}
|
|
13059
|
+
}
|
|
13060
|
+
LocalizedSignatureMessagesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LocalizedSignatureMessagesDirective, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
13061
|
+
LocalizedSignatureMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: LocalizedSignatureMessagesDirective, selector: "[kendoSignatureLocalizedMessages]", providers: [
|
|
13062
|
+
{
|
|
13063
|
+
provide: SignatureMessages,
|
|
13064
|
+
useExisting: forwardRef(() => LocalizedSignatureMessagesDirective)
|
|
13065
|
+
}
|
|
13066
|
+
], usesInheritance: true, ngImport: i0 });
|
|
13067
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LocalizedSignatureMessagesDirective, decorators: [{
|
|
13068
|
+
type: Directive,
|
|
13069
|
+
args: [{
|
|
13070
|
+
providers: [
|
|
13071
|
+
{
|
|
13072
|
+
provide: SignatureMessages,
|
|
13073
|
+
useExisting: forwardRef(() => LocalizedSignatureMessagesDirective)
|
|
13074
|
+
}
|
|
13075
|
+
],
|
|
13076
|
+
selector: '[kendoSignatureLocalizedMessages]'
|
|
13077
|
+
}]
|
|
13078
|
+
}], ctorParameters: function () { return [{ type: i1.LocalizationService }]; } });
|
|
13079
|
+
|
|
13080
|
+
/**
|
|
13081
|
+
* Arguments for the `close` event of the Signature component.
|
|
13082
|
+
*/
|
|
13083
|
+
class SignatureCloseEvent extends PreventableEvent {
|
|
13084
|
+
}
|
|
13085
|
+
|
|
13086
|
+
/**
|
|
13087
|
+
* Arguments for the `open` event of the Signature component.
|
|
13088
|
+
*/
|
|
13089
|
+
class SignatureOpenEvent extends PreventableEvent {
|
|
13090
|
+
}
|
|
13091
|
+
|
|
13092
|
+
const noop = () => { };
|
|
13093
|
+
const FOCUSED_CLASS = 'k-focus';
|
|
13094
|
+
const DEFAULT_SIZE = 'medium';
|
|
13095
|
+
const DEFAULT_ROUNDED = 'medium';
|
|
13096
|
+
const DEFAULT_FILL_MODE = 'solid';
|
|
13097
|
+
const DEFAULT_POPUP_SCALE = 3;
|
|
13098
|
+
/**
|
|
13099
|
+
* Represents the [Kendo UI Signature component for Angular]({% slug overview_signature %}).
|
|
13100
|
+
*
|
|
13101
|
+
* The Signature allows users to add a hand-drawn signature to forms.
|
|
13102
|
+
*/
|
|
13103
|
+
class SignatureComponent {
|
|
13104
|
+
constructor(element, renderer, ngZone, cd, localization) {
|
|
13105
|
+
this.element = element;
|
|
13106
|
+
this.renderer = renderer;
|
|
13107
|
+
this.ngZone = ngZone;
|
|
13108
|
+
this.cd = cd;
|
|
13109
|
+
this.localization = localization;
|
|
13110
|
+
this.staticHostClasses = true;
|
|
13111
|
+
/**
|
|
13112
|
+
* Sets the read-only state of the Signature.
|
|
13113
|
+
*
|
|
13114
|
+
* @default false
|
|
13115
|
+
*/
|
|
13116
|
+
this.readonly = false;
|
|
13117
|
+
/**
|
|
13118
|
+
* Sets the disabled state of the Signature.
|
|
13119
|
+
*
|
|
13120
|
+
* @default false
|
|
13121
|
+
*/
|
|
13122
|
+
this.disabled = false;
|
|
13123
|
+
/**
|
|
13124
|
+
* The size property specifies the padding of the Signature internal controls
|
|
13125
|
+
* ([see example]({% slug appearance_signature %}#toc-size)).
|
|
13126
|
+
*
|
|
13127
|
+
* The possible values are:
|
|
13128
|
+
* * `small`
|
|
13129
|
+
* * `medium` (default)
|
|
13130
|
+
* * `large`
|
|
13131
|
+
* * `none`
|
|
13132
|
+
*/
|
|
13133
|
+
this.size = DEFAULT_SIZE;
|
|
13134
|
+
/**
|
|
13135
|
+
* The rounded property specifies the border radius of the signature
|
|
13136
|
+
* ([see example]({% slug appearance_signature %}#toc-rounded)).
|
|
13137
|
+
*
|
|
13138
|
+
* The possible values are:
|
|
13139
|
+
* * `small`
|
|
13140
|
+
* * `medium` (default)
|
|
13141
|
+
* * `large`
|
|
13142
|
+
* * `full`
|
|
13143
|
+
* * `none`
|
|
13144
|
+
*/
|
|
13145
|
+
this.rounded = DEFAULT_ROUNDED;
|
|
13146
|
+
/**
|
|
13147
|
+
* The fillMode property specifies the background and border styles of the signature
|
|
13148
|
+
* ([see example]({% slug appearance_signature %}#toc-fillMode)).
|
|
13149
|
+
*
|
|
13150
|
+
* The possible values are:
|
|
13151
|
+
* * `flat`
|
|
13152
|
+
* * `solid` (default)
|
|
13153
|
+
* * `outline`
|
|
13154
|
+
* * `none`
|
|
13155
|
+
*/
|
|
13156
|
+
this.fillMode = DEFAULT_FILL_MODE;
|
|
13157
|
+
/**
|
|
13158
|
+
* The stroke color of the signature.
|
|
13159
|
+
*
|
|
13160
|
+
* Accepts CSS color names and hex values.
|
|
13161
|
+
*
|
|
13162
|
+
* @default '#000000'
|
|
13163
|
+
*/
|
|
13164
|
+
this.color = '#000000';
|
|
13165
|
+
/**
|
|
13166
|
+
* The background color of the signature.
|
|
13167
|
+
*
|
|
13168
|
+
* Accepts CSS color names and hex values.
|
|
13169
|
+
*
|
|
13170
|
+
* @default '#ffffff'
|
|
13171
|
+
*/
|
|
13172
|
+
this.backgroundColor = '#ffffff';
|
|
13173
|
+
/**
|
|
13174
|
+
* The stroke width of the signature.
|
|
13175
|
+
*
|
|
13176
|
+
* @default 1
|
|
13177
|
+
*/
|
|
13178
|
+
this.strokeWidth = 1;
|
|
13179
|
+
/**
|
|
13180
|
+
* A flag indicating whether to smooth out signature lines.
|
|
13181
|
+
*
|
|
13182
|
+
* @default false
|
|
13183
|
+
*/
|
|
13184
|
+
this.smooth = false;
|
|
13185
|
+
/**
|
|
13186
|
+
* A flag indicating if the signature can be maximized.
|
|
13187
|
+
*
|
|
13188
|
+
* @default true
|
|
13189
|
+
*/
|
|
13190
|
+
this.maximizable = true;
|
|
13191
|
+
/**
|
|
13192
|
+
* @hidden
|
|
13193
|
+
*/
|
|
13194
|
+
this.maximized = false;
|
|
13195
|
+
/**
|
|
13196
|
+
* The scale factor for the popup.
|
|
13197
|
+
*
|
|
13198
|
+
* The Signature width and height will be multiplied by the scale when showing the popup.
|
|
13199
|
+
*
|
|
13200
|
+
* @default 3
|
|
13201
|
+
*/
|
|
13202
|
+
this.popupScale = DEFAULT_POPUP_SCALE;
|
|
13203
|
+
/**
|
|
13204
|
+
* A flag indicating whether the dotted line should be displayed in the background.
|
|
13205
|
+
*
|
|
13206
|
+
* @default false
|
|
13207
|
+
*/
|
|
13208
|
+
this.hideLine = false;
|
|
13209
|
+
/**
|
|
13210
|
+
* Fires each time the signature value is changed.
|
|
13211
|
+
*/
|
|
13212
|
+
this.valueChange = new EventEmitter();
|
|
13213
|
+
/**
|
|
13214
|
+
* Fires each time the popup is about to open.
|
|
13215
|
+
* This event is preventable. If you cancel it, the popup will remain closed.
|
|
13216
|
+
*/
|
|
13217
|
+
this.open = new EventEmitter();
|
|
13218
|
+
/**
|
|
13219
|
+
* Fires each time the popup is about to close.
|
|
13220
|
+
* This event is preventable. If you cancel it, the popup will remain open.
|
|
13221
|
+
*/
|
|
13222
|
+
this.close = new EventEmitter();
|
|
13223
|
+
/**
|
|
13224
|
+
* Fires each time Signature is focused.
|
|
13225
|
+
*/
|
|
13226
|
+
this.onFocus = new EventEmitter();
|
|
13227
|
+
/**
|
|
13228
|
+
* Fires each time the Signature is blurred.
|
|
13229
|
+
*/
|
|
13230
|
+
this.onBlur = new EventEmitter();
|
|
13231
|
+
/**
|
|
13232
|
+
* @hidden
|
|
13233
|
+
*/
|
|
13234
|
+
this.minimize = new EventEmitter();
|
|
13235
|
+
/**
|
|
13236
|
+
* Indicates whether the Signature wrapper is focused.
|
|
13237
|
+
*/
|
|
13238
|
+
this.isFocused = false;
|
|
13239
|
+
/**
|
|
13240
|
+
* @hidden
|
|
13241
|
+
*/
|
|
13242
|
+
this.isDrawing = false;
|
|
13243
|
+
this.notifyNgTouched = noop;
|
|
13244
|
+
this.notifyNgChanged = noop;
|
|
13245
|
+
this._tabindex = 0;
|
|
13246
|
+
this.hostClasses = [];
|
|
13247
|
+
validatePackage(packageMetadata);
|
|
13248
|
+
this.direction = localization.rtl ? 'rtl' : 'ltr';
|
|
13249
|
+
}
|
|
13250
|
+
/**
|
|
13251
|
+
* Gets or sets the value of the signature.
|
|
13252
|
+
*
|
|
13253
|
+
* The value is a Base64-encoded PNG image.
|
|
13254
|
+
*/
|
|
13255
|
+
set value(value) {
|
|
13256
|
+
if (value !== this._value) {
|
|
13257
|
+
this._value = value;
|
|
13258
|
+
if (this.instance) {
|
|
13259
|
+
this.instance.loadImage(value);
|
|
13260
|
+
}
|
|
13261
|
+
}
|
|
13262
|
+
}
|
|
13263
|
+
get value() {
|
|
13264
|
+
return this._value;
|
|
13265
|
+
}
|
|
13266
|
+
/**
|
|
13267
|
+
* Specifies the [tabindex](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) of the component.
|
|
13268
|
+
*
|
|
13269
|
+
* @default 0
|
|
13270
|
+
*/
|
|
13271
|
+
set tabindex(value) {
|
|
13272
|
+
const tabindex = Number(value);
|
|
13273
|
+
const defaultValue = 0;
|
|
13274
|
+
this._tabindex = !isNaN(tabindex) ? tabindex : defaultValue;
|
|
13275
|
+
}
|
|
13276
|
+
get tabindex() {
|
|
13277
|
+
return !this.disabled ? this._tabindex : undefined;
|
|
13278
|
+
}
|
|
13279
|
+
/**
|
|
13280
|
+
* @hidden
|
|
13281
|
+
*/
|
|
13282
|
+
get isEmpty() {
|
|
13283
|
+
return !this.value;
|
|
13284
|
+
}
|
|
13285
|
+
/**
|
|
13286
|
+
* @hidden
|
|
13287
|
+
*/
|
|
13288
|
+
get clearTitle() {
|
|
13289
|
+
return this.getMessage('clear');
|
|
13290
|
+
}
|
|
13291
|
+
/**
|
|
13292
|
+
* @hidden
|
|
13293
|
+
*/
|
|
13294
|
+
get minimizeTitle() {
|
|
13295
|
+
return this.getMessage('minimize');
|
|
13296
|
+
}
|
|
13297
|
+
/**
|
|
13298
|
+
* @hidden
|
|
13299
|
+
*/
|
|
13300
|
+
get maximizeTitle() {
|
|
13301
|
+
return this.getMessage('maximize');
|
|
13302
|
+
}
|
|
13303
|
+
/**
|
|
13304
|
+
* @hidden
|
|
13305
|
+
*/
|
|
13306
|
+
get popupWidth() {
|
|
13307
|
+
const baseWidth = this.width || this.element.nativeElement.offsetWidth;
|
|
13308
|
+
return baseWidth * this.popupScale;
|
|
13309
|
+
}
|
|
13310
|
+
/**
|
|
13311
|
+
* @hidden
|
|
13312
|
+
*/
|
|
13313
|
+
get popupHeight() {
|
|
13314
|
+
const baseHeight = this.height || this.element.nativeElement.offsetHeight;
|
|
13315
|
+
return baseHeight * this.popupScale;
|
|
13316
|
+
}
|
|
13317
|
+
/**
|
|
13318
|
+
* @hidden
|
|
13319
|
+
*/
|
|
13320
|
+
get showMaximize() {
|
|
13321
|
+
return !(this.maximized || this.isDrawing || !this.maximizable);
|
|
13322
|
+
}
|
|
13323
|
+
/**
|
|
13324
|
+
* @hidden
|
|
13325
|
+
*/
|
|
13326
|
+
get showMinimize() {
|
|
13327
|
+
return this.maximized && !this.isDrawing;
|
|
13328
|
+
}
|
|
13329
|
+
/**
|
|
13330
|
+
* @hidden
|
|
13331
|
+
*/
|
|
13332
|
+
get showClear() {
|
|
13333
|
+
return !(this.isEmpty || this.isDrawing || this.readonly);
|
|
13334
|
+
}
|
|
13335
|
+
get focused() {
|
|
13336
|
+
return this.isFocused;
|
|
13337
|
+
}
|
|
13338
|
+
set focused(value) {
|
|
13339
|
+
if (this.isFocused !== value && this.element) {
|
|
13340
|
+
const wrap = this.element.nativeElement;
|
|
13341
|
+
if (value && !this.maximized) {
|
|
13342
|
+
this.renderer.addClass(wrap, FOCUSED_CLASS);
|
|
13343
|
+
}
|
|
13344
|
+
else {
|
|
13345
|
+
this.renderer.removeClass(wrap, FOCUSED_CLASS);
|
|
13346
|
+
}
|
|
13347
|
+
this.isFocused = value;
|
|
13348
|
+
}
|
|
13349
|
+
}
|
|
13350
|
+
get options() {
|
|
13351
|
+
return {
|
|
13352
|
+
scale: this.maximized ? this.popupScale : 1,
|
|
13353
|
+
color: this.color,
|
|
13354
|
+
backgroundColor: this.backgroundColor,
|
|
13355
|
+
strokeWidth: this.strokeWidth,
|
|
13356
|
+
smooth: this.smooth,
|
|
13357
|
+
readonly: this.readonly
|
|
13358
|
+
};
|
|
13359
|
+
}
|
|
13360
|
+
ngOnInit() {
|
|
13361
|
+
this.subscriptions = this.localization
|
|
13362
|
+
.changes
|
|
13363
|
+
.subscribe(({ rtl }) => {
|
|
13364
|
+
this.direction = rtl ? 'rtl' : 'ltr';
|
|
13365
|
+
});
|
|
13366
|
+
}
|
|
13367
|
+
ngAfterViewInit() {
|
|
13368
|
+
this.applyHostClasses();
|
|
13369
|
+
this.ngZone.runOutsideAngular(() => {
|
|
13370
|
+
const element = this.canvas.nativeElement;
|
|
13371
|
+
this.instance = new SignaturePad(element, Object.assign(Object.assign({}, this.options), { onChange: () => this.onValueChange(), onDraw: () => this.onDraw(), onDrawEnd: () => this.onDrawEnd() }));
|
|
13372
|
+
if (this.value) {
|
|
13373
|
+
this.instance.loadImage(this.value);
|
|
13374
|
+
}
|
|
13375
|
+
this.addEventListeners();
|
|
13376
|
+
});
|
|
13377
|
+
}
|
|
13378
|
+
ngOnChanges(changes) {
|
|
13379
|
+
if (anyChanged(['readonly', 'color', 'backgroundColor', 'strokeWidth', 'smooth'], changes, true)) {
|
|
13380
|
+
this.instance.setOptions(this.options);
|
|
13381
|
+
}
|
|
13382
|
+
this.applyHostClasses();
|
|
13383
|
+
}
|
|
13384
|
+
ngOnDestroy() {
|
|
13385
|
+
if (this.instance) {
|
|
13386
|
+
this.instance.destroy();
|
|
13387
|
+
this.instance = null;
|
|
13388
|
+
}
|
|
13389
|
+
if (this.subscriptions) {
|
|
13390
|
+
this.subscriptions.unsubscribe();
|
|
13391
|
+
this.subscriptions = null;
|
|
13392
|
+
}
|
|
13393
|
+
if (this.unsubscribe) {
|
|
13394
|
+
this.unsubscribe();
|
|
13395
|
+
this.unsubscribe = null;
|
|
13396
|
+
}
|
|
13397
|
+
}
|
|
13398
|
+
/**
|
|
13399
|
+
* @hidden
|
|
13400
|
+
*/
|
|
13401
|
+
onClear() {
|
|
13402
|
+
this.reset();
|
|
13403
|
+
this.valueChange.emit(undefined);
|
|
13404
|
+
}
|
|
13405
|
+
/**
|
|
13406
|
+
* @hidden
|
|
13407
|
+
*/
|
|
13408
|
+
onValueChange() {
|
|
13409
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13410
|
+
const value = yield this.instance.exportImage();
|
|
13411
|
+
this.ngZone.run(() => {
|
|
13412
|
+
this._value = value;
|
|
13413
|
+
this.valueChange.emit(value);
|
|
13414
|
+
this.notifyNgChanged(value);
|
|
13415
|
+
});
|
|
13416
|
+
});
|
|
13417
|
+
}
|
|
13418
|
+
/**
|
|
13419
|
+
* @hidden
|
|
13420
|
+
*/
|
|
13421
|
+
onDialogValueChange(value) {
|
|
13422
|
+
this.value = value;
|
|
13423
|
+
this.valueChange.emit(value);
|
|
13424
|
+
this.notifyNgChanged(value);
|
|
13425
|
+
}
|
|
13426
|
+
/**
|
|
13427
|
+
* @hidden
|
|
13428
|
+
*/
|
|
13429
|
+
onDialogClose() {
|
|
13430
|
+
const args = new SignatureCloseEvent();
|
|
13431
|
+
this.close.next(args);
|
|
13432
|
+
if (!args.isDefaultPrevented()) {
|
|
13433
|
+
this.isOpen = false;
|
|
13434
|
+
}
|
|
13435
|
+
}
|
|
13436
|
+
/**
|
|
13437
|
+
* Clears the value of the Signature.
|
|
13438
|
+
*/
|
|
13439
|
+
reset() {
|
|
13440
|
+
var _a;
|
|
13441
|
+
if (!isPresent(this.value)) {
|
|
13442
|
+
return;
|
|
13443
|
+
}
|
|
13444
|
+
(_a = this.instance) === null || _a === void 0 ? void 0 : _a.clear();
|
|
13445
|
+
this.value = this._value = undefined;
|
|
13446
|
+
this.notifyNgChanged(undefined);
|
|
13447
|
+
}
|
|
13448
|
+
/**
|
|
13449
|
+
* Toggles the popup of the Signature.
|
|
13450
|
+
* Does not trigger the `open` and `close` events of the component.
|
|
13451
|
+
*
|
|
13452
|
+
* @param open An optional parameter. Specifies whether the popup will be opened or closed.
|
|
13453
|
+
*/
|
|
13454
|
+
toggle(open) {
|
|
13455
|
+
if (this.disabled || this.readonly) {
|
|
13456
|
+
return;
|
|
13457
|
+
}
|
|
13458
|
+
open = isPresent(open) ? open : !this.isOpen;
|
|
13459
|
+
this.isOpen = open;
|
|
13460
|
+
}
|
|
13461
|
+
/**
|
|
13462
|
+
* @hidden
|
|
13463
|
+
*/
|
|
13464
|
+
onMaximize() {
|
|
13465
|
+
const args = new SignatureOpenEvent();
|
|
13466
|
+
this.open.next(args);
|
|
13467
|
+
if (!args.isDefaultPrevented()) {
|
|
13468
|
+
this.isOpen = true;
|
|
13469
|
+
}
|
|
13470
|
+
}
|
|
13471
|
+
/**
|
|
13472
|
+
* @hidden
|
|
13473
|
+
*/
|
|
13474
|
+
onMinimize() {
|
|
13475
|
+
this.minimize.next();
|
|
13476
|
+
}
|
|
13477
|
+
applyHostClasses() {
|
|
13478
|
+
const classList = this.element.nativeElement.classList;
|
|
13479
|
+
this.hostClasses.forEach(([name]) => classList.remove(name));
|
|
13480
|
+
this.hostClasses = [
|
|
13481
|
+
[`k-signature-${SIZE_MAP[this.size || DEFAULT_SIZE]}`, !isNone(this.size)],
|
|
13482
|
+
[`k-signature-${this.fillMode || DEFAULT_FILL_MODE}`, !isNone(this.fillMode)],
|
|
13483
|
+
[`k-rounded-${ROUNDED_MAP[this.rounded || DEFAULT_ROUNDED]}`, !isNone(this.rounded)]
|
|
13484
|
+
];
|
|
13485
|
+
this.hostClasses.forEach(([name, enabled]) => classList.toggle(name, enabled));
|
|
13486
|
+
}
|
|
13487
|
+
/**
|
|
13488
|
+
* Focuses the wrapper of the Signature.
|
|
13489
|
+
*/
|
|
13490
|
+
focus() {
|
|
13491
|
+
this.focused = true;
|
|
13492
|
+
this.element.nativeElement.focus();
|
|
13493
|
+
}
|
|
13494
|
+
/**
|
|
13495
|
+
* @hidden
|
|
13496
|
+
*/
|
|
13497
|
+
onWrapperFocus() {
|
|
13498
|
+
if (this.focused) {
|
|
13499
|
+
return;
|
|
13500
|
+
}
|
|
13501
|
+
this.ngZone.run(() => {
|
|
13502
|
+
this.focus();
|
|
13503
|
+
this.onFocus.emit();
|
|
13504
|
+
});
|
|
13505
|
+
}
|
|
13506
|
+
/**
|
|
13507
|
+
* Blurs the Signature.
|
|
13508
|
+
*/
|
|
13509
|
+
blur() {
|
|
13510
|
+
this.focused = false;
|
|
13511
|
+
this.element.nativeElement.blur();
|
|
13512
|
+
this.notifyNgTouched();
|
|
13513
|
+
}
|
|
13514
|
+
/**
|
|
13515
|
+
* @hidden
|
|
13516
|
+
*/
|
|
13517
|
+
onWrapperBlur() {
|
|
13518
|
+
if (this.isOpen) {
|
|
13519
|
+
return;
|
|
13520
|
+
}
|
|
13521
|
+
this.ngZone.run(() => {
|
|
13522
|
+
this.onBlur.emit();
|
|
13523
|
+
this.focused = false;
|
|
13524
|
+
this.notifyNgTouched();
|
|
13525
|
+
});
|
|
13526
|
+
}
|
|
13527
|
+
/**
|
|
13528
|
+
* @hidden
|
|
13529
|
+
*/
|
|
13530
|
+
onWrapperClick(_event) {
|
|
13531
|
+
if (this.disabled) {
|
|
13532
|
+
return;
|
|
13533
|
+
}
|
|
13534
|
+
this.focus();
|
|
13535
|
+
}
|
|
13536
|
+
/**
|
|
13537
|
+
* @hidden
|
|
13538
|
+
*/
|
|
13539
|
+
writeValue(value) {
|
|
13540
|
+
this.value = value;
|
|
13541
|
+
}
|
|
13542
|
+
/**
|
|
13543
|
+
* @hidden
|
|
13544
|
+
*/
|
|
13545
|
+
registerOnChange(fn) {
|
|
13546
|
+
this.notifyNgChanged = fn;
|
|
13547
|
+
}
|
|
13548
|
+
/**
|
|
13549
|
+
* @hidden
|
|
13550
|
+
*/
|
|
13551
|
+
registerOnTouched(fn) {
|
|
13552
|
+
this.notifyNgTouched = fn;
|
|
13553
|
+
}
|
|
13554
|
+
onDraw() {
|
|
13555
|
+
this.isDrawing = true;
|
|
13556
|
+
this.cd.detectChanges();
|
|
13557
|
+
}
|
|
13558
|
+
onDrawEnd() {
|
|
13559
|
+
this.isDrawing = false;
|
|
13560
|
+
this.cd.detectChanges();
|
|
13561
|
+
}
|
|
13562
|
+
addEventListeners() {
|
|
13563
|
+
const element = this.element.nativeElement;
|
|
13564
|
+
const focusIn = this.renderer.listen(element, 'focusin', () => this.onWrapperFocus());
|
|
13565
|
+
const focusOut = this.renderer.listen(element, 'focusout', (e) => {
|
|
13566
|
+
const insideWrapper = closest$1(e.relatedTarget, element => element === this.element.nativeElement);
|
|
13567
|
+
if (!insideWrapper) {
|
|
13568
|
+
this.onWrapperBlur();
|
|
13569
|
+
}
|
|
13570
|
+
});
|
|
13571
|
+
const click = this.renderer.listen(element, 'click', () => {
|
|
13572
|
+
this.ngZone.run((e) => {
|
|
13573
|
+
this.onWrapperClick(e);
|
|
13574
|
+
});
|
|
13575
|
+
});
|
|
13576
|
+
this.unsubscribe = () => {
|
|
13577
|
+
focusIn();
|
|
13578
|
+
focusOut();
|
|
13579
|
+
click();
|
|
13580
|
+
};
|
|
13581
|
+
}
|
|
13582
|
+
getMessage(key) {
|
|
13583
|
+
if (this.maximized && this.parentLocalization) {
|
|
13584
|
+
return this.parentLocalization.get(key);
|
|
13585
|
+
}
|
|
13586
|
+
return this.localization.get(key);
|
|
13587
|
+
}
|
|
13588
|
+
}
|
|
13589
|
+
SignatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SignatureComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }, { token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
13590
|
+
SignatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", 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", 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: [
|
|
13591
|
+
LocalizationService,
|
|
13592
|
+
{ provide: L10N_PREFIX, useValue: 'kendo.signature' },
|
|
13593
|
+
{ multi: true, provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => SignatureComponent) }
|
|
13594
|
+
], viewQueries: [{ propertyName: "canvas", first: true, predicate: ["canvas"], descendants: true }], exportAs: ["kendoSignature"], usesOnChanges: true, ngImport: i0, template: `
|
|
13595
|
+
<ng-container kendoSignatureLocalizedMessages
|
|
13596
|
+
i18n-clear="kendo.signature.clear|The message for the Clear button."
|
|
13597
|
+
clear="Clear"
|
|
13598
|
+
i18n-maximize="kendo.signature.maximize|The message for the Maximize button."
|
|
13599
|
+
maximize="Maximize"
|
|
13600
|
+
i18n-minimize="kendo.signature.minimize|The message for the Minimize button."
|
|
13601
|
+
minimize="Minimize">
|
|
13602
|
+
</ng-container>
|
|
13603
|
+
|
|
13604
|
+
<div class="k-signature-actions k-signature-actions-top">
|
|
13605
|
+
<button
|
|
13606
|
+
*ngIf="showMaximize"
|
|
13607
|
+
kendoButton
|
|
13608
|
+
class="k-signature-action k-signature-maximize"
|
|
13609
|
+
icon="hyperlink-open"
|
|
13610
|
+
fillMode="flat"
|
|
13611
|
+
(click)="onMaximize()"
|
|
13612
|
+
[attr.aria-label]="maximizeTitle"
|
|
13613
|
+
[title]="maximizeTitle">
|
|
13614
|
+
</button>
|
|
13615
|
+
<button
|
|
13616
|
+
*ngIf="showMinimize"
|
|
13617
|
+
kendoButton
|
|
13618
|
+
class="k-signature-action k-signature-minimize"
|
|
13619
|
+
icon="window-minimize"
|
|
13620
|
+
fillMode="flat"
|
|
13621
|
+
(click)="onMinimize()"
|
|
13622
|
+
[attr.aria-label]="minimizeTitle"
|
|
13623
|
+
[title]="minimizeTitle">
|
|
13624
|
+
</button>
|
|
13625
|
+
</div>
|
|
13626
|
+
<div
|
|
13627
|
+
#canvas
|
|
13628
|
+
class="k-signature-canvas"
|
|
13629
|
+
[attr.tabindex]="tabindex"
|
|
13630
|
+
></div>
|
|
13631
|
+
<div
|
|
13632
|
+
*ngIf="!hideLine"
|
|
13633
|
+
class="k-signature-line"
|
|
13634
|
+
style="z-index: 2; pointer-events: none;"
|
|
13635
|
+
></div>
|
|
13636
|
+
<div class="k-signature-actions k-signature-actions-bottom">
|
|
13637
|
+
<button
|
|
13638
|
+
*ngIf="showClear"
|
|
13639
|
+
kendoButton
|
|
13640
|
+
class="k-signature-action k-signature-clear"
|
|
13641
|
+
icon="close"
|
|
13642
|
+
fillMode="flat"
|
|
13643
|
+
[attr.aria-label]="clearTitle"
|
|
13644
|
+
[title]="clearTitle"
|
|
13645
|
+
(click)="onClear()" >
|
|
13646
|
+
</button>
|
|
13647
|
+
</div>
|
|
13648
|
+
|
|
13649
|
+
<kendo-dialog *ngIf="isOpen">
|
|
13650
|
+
<kendo-signature
|
|
13651
|
+
[readonly]="readonly"
|
|
13652
|
+
[disabled]="disabled"
|
|
13653
|
+
[size]="size"
|
|
13654
|
+
[rounded]="rounded"
|
|
13655
|
+
[fillMode]="fillMode"
|
|
13656
|
+
[color]="color"
|
|
13657
|
+
[backgroundColor]="backgroundColor"
|
|
13658
|
+
[strokeWidth]="strokeWidth"
|
|
13659
|
+
[smooth]="smooth"
|
|
13660
|
+
[value]="value"
|
|
13661
|
+
(valueChange)="onDialogValueChange($event)"
|
|
13662
|
+
[hideLine]="hideLine"
|
|
13663
|
+
[class.k-signature-maximized]="true"
|
|
13664
|
+
[maximized]="true"
|
|
13665
|
+
(minimize)="onDialogClose()"
|
|
13666
|
+
[width]="popupWidth"
|
|
13667
|
+
[height]="popupHeight"
|
|
13668
|
+
[popupScale]="popupScale"
|
|
13669
|
+
[parentLocalization]="localization">
|
|
13670
|
+
</kendo-signature>
|
|
13671
|
+
</kendo-dialog>
|
|
13672
|
+
`, isInline: true, components: [{ type: i2.DialogComponent, selector: "kendo-dialog", inputs: ["actions", "actionsLayout", "autoFocusedElement", "title", "width", "minWidth", "maxWidth", "height", "minHeight", "maxHeight", "animation"], 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", "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"] }, { type: i5.ButtonDirective, selector: "button[kendoButton], span[kendoButton]", inputs: ["toggleable", "togglable", "selected", "tabIndex", "icon", "iconClass", "imageUrl", "disabled", "size", "rounded", "fillMode", "themeColor", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
13673
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SignatureComponent, decorators: [{
|
|
13674
|
+
type: Component,
|
|
13675
|
+
args: [{
|
|
13676
|
+
exportAs: 'kendoSignature',
|
|
13677
|
+
selector: 'kendo-signature',
|
|
13678
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
13679
|
+
providers: [
|
|
13680
|
+
LocalizationService,
|
|
13681
|
+
{ provide: L10N_PREFIX, useValue: 'kendo.signature' },
|
|
13682
|
+
{ multi: true, provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => SignatureComponent) }
|
|
13683
|
+
],
|
|
13684
|
+
template: `
|
|
13685
|
+
<ng-container kendoSignatureLocalizedMessages
|
|
13686
|
+
i18n-clear="kendo.signature.clear|The message for the Clear button."
|
|
13687
|
+
clear="Clear"
|
|
13688
|
+
i18n-maximize="kendo.signature.maximize|The message for the Maximize button."
|
|
13689
|
+
maximize="Maximize"
|
|
13690
|
+
i18n-minimize="kendo.signature.minimize|The message for the Minimize button."
|
|
13691
|
+
minimize="Minimize">
|
|
13692
|
+
</ng-container>
|
|
13693
|
+
|
|
13694
|
+
<div class="k-signature-actions k-signature-actions-top">
|
|
13695
|
+
<button
|
|
13696
|
+
*ngIf="showMaximize"
|
|
13697
|
+
kendoButton
|
|
13698
|
+
class="k-signature-action k-signature-maximize"
|
|
13699
|
+
icon="hyperlink-open"
|
|
13700
|
+
fillMode="flat"
|
|
13701
|
+
(click)="onMaximize()"
|
|
13702
|
+
[attr.aria-label]="maximizeTitle"
|
|
13703
|
+
[title]="maximizeTitle">
|
|
13704
|
+
</button>
|
|
13705
|
+
<button
|
|
13706
|
+
*ngIf="showMinimize"
|
|
13707
|
+
kendoButton
|
|
13708
|
+
class="k-signature-action k-signature-minimize"
|
|
13709
|
+
icon="window-minimize"
|
|
13710
|
+
fillMode="flat"
|
|
13711
|
+
(click)="onMinimize()"
|
|
13712
|
+
[attr.aria-label]="minimizeTitle"
|
|
13713
|
+
[title]="minimizeTitle">
|
|
13714
|
+
</button>
|
|
13715
|
+
</div>
|
|
13716
|
+
<div
|
|
13717
|
+
#canvas
|
|
13718
|
+
class="k-signature-canvas"
|
|
13719
|
+
[attr.tabindex]="tabindex"
|
|
13720
|
+
></div>
|
|
13721
|
+
<div
|
|
13722
|
+
*ngIf="!hideLine"
|
|
13723
|
+
class="k-signature-line"
|
|
13724
|
+
style="z-index: 2; pointer-events: none;"
|
|
13725
|
+
></div>
|
|
13726
|
+
<div class="k-signature-actions k-signature-actions-bottom">
|
|
13727
|
+
<button
|
|
13728
|
+
*ngIf="showClear"
|
|
13729
|
+
kendoButton
|
|
13730
|
+
class="k-signature-action k-signature-clear"
|
|
13731
|
+
icon="close"
|
|
13732
|
+
fillMode="flat"
|
|
13733
|
+
[attr.aria-label]="clearTitle"
|
|
13734
|
+
[title]="clearTitle"
|
|
13735
|
+
(click)="onClear()" >
|
|
13736
|
+
</button>
|
|
13737
|
+
</div>
|
|
13738
|
+
|
|
13739
|
+
<kendo-dialog *ngIf="isOpen">
|
|
13740
|
+
<kendo-signature
|
|
13741
|
+
[readonly]="readonly"
|
|
13742
|
+
[disabled]="disabled"
|
|
13743
|
+
[size]="size"
|
|
13744
|
+
[rounded]="rounded"
|
|
13745
|
+
[fillMode]="fillMode"
|
|
13746
|
+
[color]="color"
|
|
13747
|
+
[backgroundColor]="backgroundColor"
|
|
13748
|
+
[strokeWidth]="strokeWidth"
|
|
13749
|
+
[smooth]="smooth"
|
|
13750
|
+
[value]="value"
|
|
13751
|
+
(valueChange)="onDialogValueChange($event)"
|
|
13752
|
+
[hideLine]="hideLine"
|
|
13753
|
+
[class.k-signature-maximized]="true"
|
|
13754
|
+
[maximized]="true"
|
|
13755
|
+
(minimize)="onDialogClose()"
|
|
13756
|
+
[width]="popupWidth"
|
|
13757
|
+
[height]="popupHeight"
|
|
13758
|
+
[popupScale]="popupScale"
|
|
13759
|
+
[parentLocalization]="localization">
|
|
13760
|
+
</kendo-signature>
|
|
13761
|
+
</kendo-dialog>
|
|
13762
|
+
`
|
|
13763
|
+
}]
|
|
13764
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }, { type: i1.LocalizationService }]; }, propDecorators: { staticHostClasses: [{
|
|
13765
|
+
type: HostBinding,
|
|
13766
|
+
args: ['class.k-signature']
|
|
13767
|
+
}, {
|
|
13768
|
+
type: HostBinding,
|
|
13769
|
+
args: ['class.k-input']
|
|
13770
|
+
}], direction: [{
|
|
13771
|
+
type: HostBinding,
|
|
13772
|
+
args: ['attr.dir']
|
|
13773
|
+
}], readonly: [{
|
|
13774
|
+
type: HostBinding,
|
|
13775
|
+
args: ['class.k-readonly']
|
|
13776
|
+
}, {
|
|
13777
|
+
type: Input
|
|
13778
|
+
}], disabled: [{
|
|
13779
|
+
type: HostBinding,
|
|
13780
|
+
args: ['class.k-disabled']
|
|
13781
|
+
}, {
|
|
13782
|
+
type: Input
|
|
13783
|
+
}], width: [{
|
|
13784
|
+
type: Input
|
|
13785
|
+
}, {
|
|
13786
|
+
type: HostBinding,
|
|
13787
|
+
args: ['style.width.px']
|
|
13788
|
+
}], height: [{
|
|
13789
|
+
type: Input
|
|
13790
|
+
}, {
|
|
13791
|
+
type: HostBinding,
|
|
13792
|
+
args: ['style.height.px']
|
|
13793
|
+
}], value: [{
|
|
13794
|
+
type: Input
|
|
13795
|
+
}], tabindex: [{
|
|
13796
|
+
type: Input
|
|
13797
|
+
}], size: [{
|
|
13798
|
+
type: Input
|
|
13799
|
+
}], rounded: [{
|
|
13800
|
+
type: Input
|
|
13801
|
+
}], fillMode: [{
|
|
13802
|
+
type: Input
|
|
13803
|
+
}], color: [{
|
|
13804
|
+
type: Input
|
|
13805
|
+
}], backgroundColor: [{
|
|
13806
|
+
type: Input
|
|
13807
|
+
}], strokeWidth: [{
|
|
13808
|
+
type: Input
|
|
13809
|
+
}], smooth: [{
|
|
13810
|
+
type: Input
|
|
13811
|
+
}], maximizable: [{
|
|
13812
|
+
type: Input
|
|
13813
|
+
}], maximized: [{
|
|
13814
|
+
type: Input
|
|
13815
|
+
}], popupScale: [{
|
|
13816
|
+
type: Input
|
|
13817
|
+
}], parentLocalization: [{
|
|
13818
|
+
type: Input
|
|
13819
|
+
}], hideLine: [{
|
|
13820
|
+
type: Input
|
|
13821
|
+
}], valueChange: [{
|
|
13822
|
+
type: Output
|
|
13823
|
+
}], open: [{
|
|
13824
|
+
type: Output
|
|
13825
|
+
}], close: [{
|
|
13826
|
+
type: Output
|
|
13827
|
+
}], onFocus: [{
|
|
13828
|
+
type: Output,
|
|
13829
|
+
args: ['focus']
|
|
13830
|
+
}], onBlur: [{
|
|
13831
|
+
type: Output,
|
|
13832
|
+
args: ['blur']
|
|
13833
|
+
}], minimize: [{
|
|
13834
|
+
type: Output
|
|
13835
|
+
}], canvas: [{
|
|
13836
|
+
type: ViewChild,
|
|
13837
|
+
args: ['canvas']
|
|
13838
|
+
}] } });
|
|
13839
|
+
|
|
13840
|
+
/**
|
|
13841
|
+
* Represents the [NgModule]({{ site.data.urls.angular['ngmoduleapi'] }})
|
|
13842
|
+
* definition for the MaskedTextBox component.
|
|
13843
|
+
*
|
|
13844
|
+
* @example
|
|
13845
|
+
*
|
|
13846
|
+
* ```ts-no-run
|
|
13847
|
+
* // Import the MaskedTextBox module
|
|
13848
|
+
* import { MaskedTextBoxModule } from '@progress/kendo-angular-inputs';
|
|
13849
|
+
*
|
|
13850
|
+
* // The browser platform with a compiler
|
|
13851
|
+
* import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|
13852
|
+
*
|
|
13853
|
+
* import { NgModule } from '@angular/core';
|
|
13854
|
+
*
|
|
13855
|
+
* // Import the app component
|
|
13856
|
+
* import { AppComponent } from './app.component';
|
|
13857
|
+
*
|
|
13858
|
+
* // Define the app module
|
|
13859
|
+
* _@NgModule({
|
|
13860
|
+
* declarations: [AppComponent], // declare app component
|
|
13861
|
+
* imports: [BrowserModule, MaskedTextBoxModule], // import MaskedTextBox module
|
|
13862
|
+
* bootstrap: [AppComponent]
|
|
13863
|
+
* })
|
|
13864
|
+
* export class AppModule {}
|
|
13865
|
+
*
|
|
13866
|
+
* // Compile and launch the module
|
|
13867
|
+
* platformBrowserDynamic().bootstrapModule(AppModule);
|
|
13868
|
+
*
|
|
13869
|
+
* ```
|
|
13870
|
+
*/
|
|
13871
|
+
class SignatureModule {
|
|
13872
|
+
}
|
|
13873
|
+
SignatureModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SignatureModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
13874
|
+
SignatureModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SignatureModule, declarations: [SignatureComponent,
|
|
13875
|
+
SignatureCustomMessagesComponent,
|
|
13876
|
+
LocalizedSignatureMessagesDirective], imports: [ButtonModule,
|
|
13877
|
+
CommonModule,
|
|
13878
|
+
DialogsModule], exports: [SignatureComponent,
|
|
13879
|
+
SignatureCustomMessagesComponent] });
|
|
13880
|
+
SignatureModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SignatureModule, imports: [[
|
|
13881
|
+
ButtonModule,
|
|
13882
|
+
CommonModule,
|
|
13883
|
+
DialogsModule
|
|
13884
|
+
]] });
|
|
13885
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SignatureModule, decorators: [{
|
|
13886
|
+
type: NgModule,
|
|
13887
|
+
args: [{
|
|
13888
|
+
declarations: [
|
|
13889
|
+
SignatureComponent,
|
|
13890
|
+
SignatureCustomMessagesComponent,
|
|
13891
|
+
LocalizedSignatureMessagesDirective
|
|
13892
|
+
],
|
|
13893
|
+
exports: [
|
|
13894
|
+
SignatureComponent,
|
|
13895
|
+
SignatureCustomMessagesComponent
|
|
13896
|
+
],
|
|
13897
|
+
imports: [
|
|
13898
|
+
ButtonModule,
|
|
13899
|
+
CommonModule,
|
|
13900
|
+
DialogsModule
|
|
13901
|
+
]
|
|
13902
|
+
}]
|
|
13903
|
+
}] });
|
|
13904
|
+
|
|
12981
13905
|
/**
|
|
12982
13906
|
* Represents the [NgModule]({{ site.data.urls.angular['ngmoduleapi'] }})
|
|
12983
13907
|
* definition for the Inputs components.
|
|
@@ -13023,7 +13947,8 @@ InputsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
|
13023
13947
|
ColorPickerModule,
|
|
13024
13948
|
CheckBoxModule,
|
|
13025
13949
|
RadioButtonModule,
|
|
13026
|
-
FormFieldModule
|
|
13950
|
+
FormFieldModule,
|
|
13951
|
+
SignatureModule] });
|
|
13027
13952
|
InputsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: InputsModule, imports: [[CommonModule], TextAreaModule,
|
|
13028
13953
|
TextBoxModule,
|
|
13029
13954
|
SliderModule,
|
|
@@ -13034,7 +13959,8 @@ InputsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
|
13034
13959
|
ColorPickerModule,
|
|
13035
13960
|
CheckBoxModule,
|
|
13036
13961
|
RadioButtonModule,
|
|
13037
|
-
FormFieldModule
|
|
13962
|
+
FormFieldModule,
|
|
13963
|
+
SignatureModule] });
|
|
13038
13964
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: InputsModule, decorators: [{
|
|
13039
13965
|
type: NgModule,
|
|
13040
13966
|
args: [{
|
|
@@ -13049,7 +13975,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
13049
13975
|
ColorPickerModule,
|
|
13050
13976
|
CheckBoxModule,
|
|
13051
13977
|
RadioButtonModule,
|
|
13052
|
-
FormFieldModule
|
|
13978
|
+
FormFieldModule,
|
|
13979
|
+
SignatureModule
|
|
13053
13980
|
],
|
|
13054
13981
|
imports: [CommonModule]
|
|
13055
13982
|
}]
|
|
@@ -13059,5 +13986,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
13059
13986
|
* Generated bundle index. Do not edit.
|
|
13060
13987
|
*/
|
|
13061
13988
|
|
|
13062
|
-
export { ActiveColorClickEvent, CheckBoxDirective, CheckBoxModule, ColorGradientComponent, ColorPaletteComponent, ColorPickerCancelEvent, ColorPickerCloseEvent, ColorPickerComponent, ColorPickerCustomMessagesComponent, ColorPickerModule, ColorPickerOpenEvent, ErrorComponent, FlatColorPickerComponent, FormFieldComponent, FormFieldModule, HintComponent, InputSeparatorComponent, InputsModule, LabelTemplateDirective, LocalizedColorPickerMessagesDirective, LocalizedNumericTextBoxMessagesDirective, LocalizedRangeSliderMessagesDirective, LocalizedSliderMessagesDirective, LocalizedSwitchMessagesDirective, LocalizedTextBoxMessagesDirective, MaskedTextBoxComponent, MaskedTextBoxModule, NumericTextBoxComponent, NumericTextBoxCustomMessagesComponent, NumericTextBoxModule, RadioButtonDirective, RadioButtonModule, RangeSliderComponent, RangeSliderCustomMessagesComponent, RangeSliderModule, SharedModule, SliderComponent, SliderCustomMessagesComponent, SliderModule, SliderTicksComponent, SwitchComponent, SwitchCustomMessagesComponent, SwitchModule, TextAreaComponent, TextAreaDirective, TextAreaModule, TextAreaSuffixComponent, TextBoxComponent, TextBoxCustomMessagesComponent, TextBoxDirective, TextBoxModule, TextBoxPrefixTemplateDirective, TextBoxSuffixTemplateDirective };
|
|
13989
|
+
export { ActiveColorClickEvent, CheckBoxDirective, CheckBoxModule, ColorGradientComponent, ColorPaletteComponent, ColorPickerCancelEvent, ColorPickerCloseEvent, ColorPickerComponent, ColorPickerCustomMessagesComponent, ColorPickerModule, ColorPickerOpenEvent, ErrorComponent, FlatColorPickerComponent, FormFieldComponent, FormFieldModule, HintComponent, InputSeparatorComponent, InputsModule, LabelTemplateDirective, LocalizedColorPickerMessagesDirective, LocalizedNumericTextBoxMessagesDirective, LocalizedRangeSliderMessagesDirective, LocalizedSignatureMessagesDirective, LocalizedSliderMessagesDirective, LocalizedSwitchMessagesDirective, LocalizedTextBoxMessagesDirective, MaskedTextBoxComponent, MaskedTextBoxModule, NumericTextBoxComponent, NumericTextBoxCustomMessagesComponent, NumericTextBoxModule, RadioButtonDirective, RadioButtonModule, RangeSliderComponent, RangeSliderCustomMessagesComponent, RangeSliderModule, SharedModule, SignatureCloseEvent, SignatureComponent, SignatureCustomMessagesComponent, SignatureMessages, SignatureModule, SignatureOpenEvent, SliderComponent, SliderCustomMessagesComponent, SliderModule, SliderTicksComponent, SwitchComponent, SwitchCustomMessagesComponent, SwitchModule, TextAreaComponent, TextAreaDirective, TextAreaModule, TextAreaSuffixComponent, TextBoxComponent, TextBoxCustomMessagesComponent, TextBoxDirective, TextBoxModule, TextBoxPrefixTemplateDirective, TextBoxSuffixTemplateDirective };
|
|
13063
13990
|
|