@progress/kendo-angular-inputs 9.0.5-dev.202208101035 → 9.1.0-sig.202208231615

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