@progress/kendo-angular-inputs 9.1.0-sig.202208261530 → 10.0.0-dev.202209071528

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.
@@ -535,7 +535,7 @@ const packageMetadata = {
535
535
  name: '@progress/kendo-angular-inputs',
536
536
  productName: 'Kendo UI for Angular',
537
537
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
538
- publishDate: 1661528130,
538
+ publishDate: 1662564435,
539
539
  version: '',
540
540
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
541
541
  };
@@ -2527,6 +2527,12 @@ class SwitchComponent {
2527
2527
  this.disabled = isDisabled;
2528
2528
  this.changeDetector.markForCheck();
2529
2529
  }
2530
+ /**
2531
+ * @hidden
2532
+ */
2533
+ get isControlInvalid() {
2534
+ return this.control && this.control.touched && !this.control.valid;
2535
+ }
2530
2536
  /**
2531
2537
  * @hidden
2532
2538
  */
@@ -2680,6 +2686,8 @@ SwitchComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versio
2680
2686
  [style.transitionDuration]="initialized ? '200ms' : '0ms'"
2681
2687
  [attr.aria-checked]="checked"
2682
2688
  [attr.tabindex]="(disabled ? undefined : tabIndex)"
2689
+ [attr.aria-disabled]="disabled"
2690
+ [attr.aria-invalid]="isControlInvalid"
2683
2691
  [kendoEventsOutsideAngular]="{ keydown: keyDownHandler, focus: handleFocus, blur: handleBlur }"
2684
2692
  >
2685
2693
  <span class="k-switch-label-on" [attr.aria-hidden]="true" >{{onLabelMessage}}</span>
@@ -2730,6 +2738,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
2730
2738
  [style.transitionDuration]="initialized ? '200ms' : '0ms'"
2731
2739
  [attr.aria-checked]="checked"
2732
2740
  [attr.tabindex]="(disabled ? undefined : tabIndex)"
2741
+ [attr.aria-disabled]="disabled"
2742
+ [attr.aria-invalid]="isControlInvalid"
2733
2743
  [kendoEventsOutsideAngular]="{ keydown: keyDownHandler, focus: handleFocus, blur: handleBlur }"
2734
2744
  >
2735
2745
  <span class="k-switch-label-on" [attr.aria-hidden]="true" >{{onLabelMessage}}</span>
@@ -3872,6 +3882,12 @@ class NumericTextBoxComponent {
3872
3882
  get decrementTitle() {
3873
3883
  return this.localizationService.get('decrement');
3874
3884
  }
3885
+ /**
3886
+ * @hidden
3887
+ */
3888
+ get isControlInvalid() {
3889
+ return this.control && this.control.touched && !this.control.valid;
3890
+ }
3875
3891
  get decimalSeparator() {
3876
3892
  const numberSymbols = this.intl.numberSymbols();
3877
3893
  return numberSymbols.decimal;
@@ -4213,30 +4229,31 @@ NumericTextBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0"
4213
4229
  >
4214
4230
  </ng-container>
4215
4231
  <input
4216
- role="spinbutton"
4217
- class="k-input-inner"
4218
- autocomplete="off"
4219
- autocorrect="off"
4220
- [id]="focusableId"
4221
- [attr.aria-valuemin]="min"
4222
- [attr.aria-valuemax]="max"
4223
- [attr.aria-valuenow]="value"
4224
- [attr.title]="title"
4225
- [attr.placeholder]="placeholder"
4226
- [attr.maxLength]="maxlength"
4227
- [tabindex]="tabIndex"
4228
- [disabled]="disabled"
4229
- [readonly]="readonly"
4230
- [kendoEventsOutsideAngular]="{
4231
- mousedown: handleMouseDown,
4232
- dragenter: handleDragEnter,
4233
- keydown: handleKeyDown,
4234
- input: handleInput,
4235
- focus: handleFocus,
4236
- blur: handleBlur,
4237
- paste: handlePaste
4238
- }"
4239
- #numericInput />
4232
+ role="spinbutton"
4233
+ class="k-input-inner"
4234
+ autocomplete="off"
4235
+ autocorrect="off"
4236
+ [id]="focusableId"
4237
+ [attr.aria-valuemin]="min"
4238
+ [attr.aria-valuemax]="max"
4239
+ [attr.aria-valuenow]="value"
4240
+ [attr.title]="title"
4241
+ [attr.placeholder]="placeholder"
4242
+ [attr.maxLength]="maxlength"
4243
+ [attr.aria-invalid]="isControlInvalid"
4244
+ [tabindex]="tabIndex"
4245
+ [disabled]="disabled"
4246
+ [readonly]="readonly"
4247
+ [kendoEventsOutsideAngular]="{
4248
+ mousedown: handleMouseDown,
4249
+ dragenter: handleDragEnter,
4250
+ keydown: handleKeyDown,
4251
+ input: handleInput,
4252
+ focus: handleFocus,
4253
+ blur: handleBlur,
4254
+ paste: handlePaste
4255
+ }"
4256
+ #numericInput />
4240
4257
  <span
4241
4258
  class="k-input-spinner k-spin-button" *ngIf="spinners"
4242
4259
  [kendoEventsOutsideAngular]="{ mouseup: releaseArrow, mouseleave: releaseArrow }"
@@ -4288,30 +4305,31 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
4288
4305
  >
4289
4306
  </ng-container>
4290
4307
  <input
4291
- role="spinbutton"
4292
- class="k-input-inner"
4293
- autocomplete="off"
4294
- autocorrect="off"
4295
- [id]="focusableId"
4296
- [attr.aria-valuemin]="min"
4297
- [attr.aria-valuemax]="max"
4298
- [attr.aria-valuenow]="value"
4299
- [attr.title]="title"
4300
- [attr.placeholder]="placeholder"
4301
- [attr.maxLength]="maxlength"
4302
- [tabindex]="tabIndex"
4303
- [disabled]="disabled"
4304
- [readonly]="readonly"
4305
- [kendoEventsOutsideAngular]="{
4306
- mousedown: handleMouseDown,
4307
- dragenter: handleDragEnter,
4308
- keydown: handleKeyDown,
4309
- input: handleInput,
4310
- focus: handleFocus,
4311
- blur: handleBlur,
4312
- paste: handlePaste
4313
- }"
4314
- #numericInput />
4308
+ role="spinbutton"
4309
+ class="k-input-inner"
4310
+ autocomplete="off"
4311
+ autocorrect="off"
4312
+ [id]="focusableId"
4313
+ [attr.aria-valuemin]="min"
4314
+ [attr.aria-valuemax]="max"
4315
+ [attr.aria-valuenow]="value"
4316
+ [attr.title]="title"
4317
+ [attr.placeholder]="placeholder"
4318
+ [attr.maxLength]="maxlength"
4319
+ [attr.aria-invalid]="isControlInvalid"
4320
+ [tabindex]="tabIndex"
4321
+ [disabled]="disabled"
4322
+ [readonly]="readonly"
4323
+ [kendoEventsOutsideAngular]="{
4324
+ mousedown: handleMouseDown,
4325
+ dragenter: handleDragEnter,
4326
+ keydown: handleKeyDown,
4327
+ input: handleInput,
4328
+ focus: handleFocus,
4329
+ blur: handleBlur,
4330
+ paste: handlePaste
4331
+ }"
4332
+ #numericInput />
4315
4333
  <span
4316
4334
  class="k-input-spinner k-spin-button" *ngIf="spinners"
4317
4335
  [kendoEventsOutsideAngular]="{ mouseup: releaseArrow, mouseleave: releaseArrow }"
@@ -5305,6 +5323,12 @@ class MaskedTextBoxComponent {
5305
5323
  }
5306
5324
  return null;
5307
5325
  }
5326
+ /**
5327
+ * @hidden
5328
+ */
5329
+ get isControlInvalid() {
5330
+ return this.control && this.control.touched && !this.control.valid;
5331
+ }
5308
5332
  /**
5309
5333
  * @hidden
5310
5334
  */
@@ -5430,6 +5454,8 @@ MaskedTextBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
5430
5454
  [id]="focusableId"
5431
5455
  [tabindex]="tabIndex"
5432
5456
  [attr.title]="title"
5457
+ [attr.aria-placeholder]="mask"
5458
+ [attr.aria-invalid]="isControlInvalid"
5433
5459
  [disabled]="disabled"
5434
5460
  [readonly]="readonly"
5435
5461
  [kendoEventsOutsideAngular]="{
@@ -5474,6 +5500,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
5474
5500
  [id]="focusableId"
5475
5501
  [tabindex]="tabIndex"
5476
5502
  [attr.title]="title"
5503
+ [attr.aria-placeholder]="mask"
5504
+ [attr.aria-invalid]="isControlInvalid"
5477
5505
  [disabled]="disabled"
5478
5506
  [readonly]="readonly"
5479
5507
  [kendoEventsOutsideAngular]="{
@@ -6549,6 +6577,12 @@ class TextBoxComponent {
6549
6577
  const { valid, dirty, touched } = this.control;
6550
6578
  return valid && (dirty || touched);
6551
6579
  }
6580
+ /**
6581
+ * @hidden
6582
+ */
6583
+ get isControlInvalid() {
6584
+ return this.control && this.control.touched && !this.control.valid;
6585
+ }
6552
6586
  /**
6553
6587
  * @hidden
6554
6588
  */
@@ -6675,6 +6709,7 @@ TextBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versi
6675
6709
  [attr.placeholder]="placeholder"
6676
6710
  [attr.title]="title"
6677
6711
  [attr.maxlength]="maxlength"
6712
+ [attr.aria-invalid]="isControlInvalid"
6678
6713
  [kendoEventsOutsideAngular]="{
6679
6714
  focus: handleInputFocus,
6680
6715
  blur: handleInputBlur,
@@ -6738,6 +6773,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
6738
6773
  [attr.placeholder]="placeholder"
6739
6774
  [attr.title]="title"
6740
6775
  [attr.maxlength]="maxlength"
6776
+ [attr.aria-invalid]="isControlInvalid"
6741
6777
  [kendoEventsOutsideAngular]="{
6742
6778
  focus: handleInputFocus,
6743
6779
  blur: handleInputBlur,
@@ -7471,6 +7507,12 @@ class TextAreaComponent extends TextFieldsBase {
7471
7507
  get resizableClass() {
7472
7508
  return resizeClasses[this.resizable];
7473
7509
  }
7510
+ /**
7511
+ * @hidden
7512
+ */
7513
+ get isControlInvalid() {
7514
+ return this.control && this.control.touched && !this.control.valid;
7515
+ }
7474
7516
  /**
7475
7517
  * Focuses the TextArea component.
7476
7518
  *
@@ -7608,6 +7650,7 @@ TextAreaComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", vers
7608
7650
  [attr.tabindex]="tabIndex"
7609
7651
  [attr.title]="title"
7610
7652
  [attr.maxlength]="maxlength"
7653
+ [attr.aria-invalid]="isControlInvalid"
7611
7654
  [kendoEventsOutsideAngular]="{
7612
7655
  focus: handleInputFocus,
7613
7656
  blur: handleInputBlur,
@@ -7648,6 +7691,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
7648
7691
  [attr.tabindex]="tabIndex"
7649
7692
  [attr.title]="title"
7650
7693
  [attr.maxlength]="maxlength"
7694
+ [attr.aria-invalid]="isControlInvalid"
7651
7695
  [kendoEventsOutsideAngular]="{
7652
7696
  focus: handleInputFocus,
7653
7697
  blur: handleInputBlur,
@@ -13095,6 +13139,7 @@ const DEFAULT_SIZE = 'medium';
13095
13139
  const DEFAULT_ROUNDED = 'medium';
13096
13140
  const DEFAULT_FILL_MODE = 'solid';
13097
13141
  const DEFAULT_POPUP_SCALE = 3;
13142
+ const DEFAULT_EXPORT_SCALE = 2;
13098
13143
  /**
13099
13144
  * Represents the [Kendo UI Signature component for Angular]({% slug overview_signature %}).
13100
13145
  *
@@ -13200,6 +13245,14 @@ class SignatureComponent {
13200
13245
  * @default 3
13201
13246
  */
13202
13247
  this.popupScale = DEFAULT_POPUP_SCALE;
13248
+ /**
13249
+ * The scale factor for the exported image.
13250
+ *
13251
+ * The Signature width and height will be multiplied by the scale when converting the signature to an image.
13252
+ *
13253
+ * @default 2
13254
+ */
13255
+ this.exportScale = DEFAULT_EXPORT_SCALE;
13203
13256
  /**
13204
13257
  * A flag indicating whether the dotted line should be displayed in the background.
13205
13258
  *
@@ -13300,19 +13353,29 @@ class SignatureComponent {
13300
13353
  get maximizeTitle() {
13301
13354
  return this.getMessage('maximize');
13302
13355
  }
13356
+ /**
13357
+ * @hidden
13358
+ */
13359
+ get baseWidth() {
13360
+ return this.width || this.element.nativeElement.offsetWidth;
13361
+ }
13362
+ /**
13363
+ * @hidden
13364
+ */
13365
+ get baseHeight() {
13366
+ return this.height || this.element.nativeElement.offsetHeight;
13367
+ }
13303
13368
  /**
13304
13369
  * @hidden
13305
13370
  */
13306
13371
  get popupWidth() {
13307
- const baseWidth = this.width || this.element.nativeElement.offsetWidth;
13308
- return baseWidth * this.popupScale;
13372
+ return this.baseWidth * this.popupScale;
13309
13373
  }
13310
13374
  /**
13311
13375
  * @hidden
13312
13376
  */
13313
13377
  get popupHeight() {
13314
- const baseHeight = this.height || this.element.nativeElement.offsetHeight;
13315
- return baseHeight * this.popupScale;
13378
+ return this.baseHeight * this.popupScale;
13316
13379
  }
13317
13380
  /**
13318
13381
  * @hidden
@@ -13407,7 +13470,10 @@ class SignatureComponent {
13407
13470
  */
13408
13471
  onValueChange() {
13409
13472
  return __awaiter(this, void 0, void 0, function* () {
13410
- const value = yield this.instance.exportImage();
13473
+ const value = yield this.instance.exportImage({
13474
+ width: this.baseWidth * this.exportScale,
13475
+ height: this.baseHeight * this.exportScale
13476
+ });
13411
13477
  this._value = value;
13412
13478
  this.cd.markForCheck();
13413
13479
  this.ngZone.run(() => {
@@ -13422,6 +13488,7 @@ class SignatureComponent {
13422
13488
  onDialogValueChange(value) {
13423
13489
  this.value = value;
13424
13490
  this.valueChange.emit(value);
13491
+ this.notifyNgTouched();
13425
13492
  this.notifyNgChanged(value);
13426
13493
  }
13427
13494
  /**
@@ -13471,11 +13538,18 @@ class SignatureComponent {
13471
13538
  * @hidden
13472
13539
  */
13473
13540
  onMaximize() {
13474
- const args = new SignatureOpenEvent();
13475
- this.open.next(args);
13476
- if (!args.isDefaultPrevented()) {
13477
- this.isOpen = true;
13478
- }
13541
+ return __awaiter(this, void 0, void 0, function* () {
13542
+ const args = new SignatureOpenEvent();
13543
+ this.open.next(args);
13544
+ if (!args.isDefaultPrevented()) {
13545
+ this.popupValue = yield this.instance.exportImage({
13546
+ width: this.popupWidth * this.exportScale,
13547
+ height: this.popupHeight * this.exportScale
13548
+ });
13549
+ this.isOpen = true;
13550
+ this.cd.detectChanges();
13551
+ }
13552
+ });
13479
13553
  }
13480
13554
  /**
13481
13555
  * @hidden
@@ -13488,7 +13562,7 @@ class SignatureComponent {
13488
13562
  this.hostClasses.forEach(([name]) => classList.remove(name));
13489
13563
  this.hostClasses = [
13490
13564
  [`k-signature-${SIZE_MAP[this.size || DEFAULT_SIZE]}`, !isNone(this.size)],
13491
- [`k-signature-${this.fillMode || DEFAULT_FILL_MODE}`, !isNone(this.fillMode)],
13565
+ [`k-input-${this.fillMode || DEFAULT_FILL_MODE}`, !isNone(this.fillMode)],
13492
13566
  [`k-rounded-${ROUNDED_MAP[this.rounded || DEFAULT_ROUNDED]}`, !isNone(this.rounded)]
13493
13567
  ];
13494
13568
  this.hostClasses.forEach(([name, enabled]) => classList.toggle(name, enabled));
@@ -13596,7 +13670,7 @@ class SignatureComponent {
13596
13670
  }
13597
13671
  }
13598
13672
  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 });
13599
- 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: [
13673
+ 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", exportScale: "exportScale", parentLocalization: "parentLocalization", hideLine: "hideLine" }, outputs: { valueChange: "valueChange", open: "open", close: "close", onFocus: "focus", onBlur: "blur", minimize: "minimize" }, host: { properties: { "class.k-signature": "this.staticHostClasses", "class.k-input": "this.staticHostClasses", "attr.dir": "this.direction", "class.k-readonly": "this.readonly", "class.k-disabled": "this.disabled", "style.width.px": "this.width", "style.height.px": "this.height" } }, providers: [
13600
13674
  LocalizationService,
13601
13675
  { provide: L10N_PREFIX, useValue: 'kendo.signature' },
13602
13676
  { multi: true, provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => SignatureComponent) }
@@ -13617,6 +13691,7 @@ SignatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ver
13617
13691
  class="k-signature-action k-signature-maximize"
13618
13692
  icon="hyperlink-open"
13619
13693
  fillMode="flat"
13694
+ [size]="size"
13620
13695
  (click)="onMaximize()"
13621
13696
  [attr.aria-label]="maximizeTitle"
13622
13697
  [title]="maximizeTitle">
@@ -13627,6 +13702,7 @@ SignatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ver
13627
13702
  class="k-signature-action k-signature-minimize"
13628
13703
  icon="window-minimize"
13629
13704
  fillMode="flat"
13705
+ [size]="size"
13630
13706
  (click)="onMinimize()"
13631
13707
  [attr.aria-label]="minimizeTitle"
13632
13708
  [title]="minimizeTitle">
@@ -13649,6 +13725,7 @@ SignatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ver
13649
13725
  class="k-signature-action k-signature-clear"
13650
13726
  icon="close"
13651
13727
  fillMode="flat"
13728
+ [size]="size"
13652
13729
  [attr.aria-label]="clearTitle"
13653
13730
  [title]="clearTitle"
13654
13731
  (click)="onClear()" >
@@ -13666,7 +13743,7 @@ SignatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ver
13666
13743
  [backgroundColor]="backgroundColor"
13667
13744
  [strokeWidth]="strokeWidth"
13668
13745
  [smooth]="smooth"
13669
- [value]="value"
13746
+ [value]="popupValue"
13670
13747
  (valueChange)="onDialogValueChange($event)"
13671
13748
  [hideLine]="hideLine"
13672
13749
  [class.k-signature-maximized]="true"
@@ -13678,7 +13755,7 @@ SignatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ver
13678
13755
  [parentLocalization]="localization">
13679
13756
  </kendo-signature>
13680
13757
  </kendo-dialog>
13681
- `, 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 });
13758
+ `, 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", "exportScale", "parentLocalization", "hideLine"], outputs: ["valueChange", "open", "close", "focus", "blur", "minimize"], exportAs: ["kendoSignature"] }], directives: [{ type: LocalizedSignatureMessagesDirective, selector: "[kendoSignatureLocalizedMessages]" }, { type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { 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 });
13682
13759
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SignatureComponent, decorators: [{
13683
13760
  type: Component,
13684
13761
  args: [{
@@ -13707,6 +13784,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
13707
13784
  class="k-signature-action k-signature-maximize"
13708
13785
  icon="hyperlink-open"
13709
13786
  fillMode="flat"
13787
+ [size]="size"
13710
13788
  (click)="onMaximize()"
13711
13789
  [attr.aria-label]="maximizeTitle"
13712
13790
  [title]="maximizeTitle">
@@ -13717,6 +13795,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
13717
13795
  class="k-signature-action k-signature-minimize"
13718
13796
  icon="window-minimize"
13719
13797
  fillMode="flat"
13798
+ [size]="size"
13720
13799
  (click)="onMinimize()"
13721
13800
  [attr.aria-label]="minimizeTitle"
13722
13801
  [title]="minimizeTitle">
@@ -13739,6 +13818,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
13739
13818
  class="k-signature-action k-signature-clear"
13740
13819
  icon="close"
13741
13820
  fillMode="flat"
13821
+ [size]="size"
13742
13822
  [attr.aria-label]="clearTitle"
13743
13823
  [title]="clearTitle"
13744
13824
  (click)="onClear()" >
@@ -13756,7 +13836,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
13756
13836
  [backgroundColor]="backgroundColor"
13757
13837
  [strokeWidth]="strokeWidth"
13758
13838
  [smooth]="smooth"
13759
- [value]="value"
13839
+ [value]="popupValue"
13760
13840
  (valueChange)="onDialogValueChange($event)"
13761
13841
  [hideLine]="hideLine"
13762
13842
  [class.k-signature-maximized]="true"
@@ -13823,6 +13903,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
13823
13903
  type: Input
13824
13904
  }], popupScale: [{
13825
13905
  type: Input
13906
+ }], exportScale: [{
13907
+ type: Input
13826
13908
  }], parentLocalization: [{
13827
13909
  type: Input
13828
13910
  }], hideLine: [{
@@ -13848,13 +13930,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
13848
13930
 
13849
13931
  /**
13850
13932
  * Represents the [NgModule]({{ site.data.urls.angular['ngmoduleapi'] }})
13851
- * definition for the MaskedTextBox component.
13933
+ * definition for the Signature component.
13852
13934
  *
13853
13935
  * @example
13854
13936
  *
13855
13937
  * ```ts-no-run
13856
- * // Import the MaskedTextBox module
13857
- * import { MaskedTextBoxModule } from '@progress/kendo-angular-inputs';
13938
+ * // Import the Signature module
13939
+ * import { SignatureModule } from '@progress/kendo-angular-inputs';
13858
13940
  *
13859
13941
  * // The browser platform with a compiler
13860
13942
  * import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
@@ -13867,7 +13949,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
13867
13949
  * // Define the app module
13868
13950
  * _@NgModule({
13869
13951
  * declarations: [AppComponent], // declare app component
13870
- * imports: [BrowserModule, MaskedTextBoxModule], // import MaskedTextBox module
13952
+ * imports: [BrowserModule, SignatureModule], // import Signature module
13871
13953
  * bootstrap: [AppComponent]
13872
13954
  * })
13873
13955
  * export class AppModule {}
@@ -289,6 +289,10 @@ export declare class MaskedTextBoxComponent implements ControlValueAccessor, OnC
289
289
  * @hidden
290
290
  */
291
291
  validate(_: AbstractControl): any;
292
+ /**
293
+ * @hidden
294
+ */
295
+ get isControlInvalid(): boolean;
292
296
  /**
293
297
  * @hidden
294
298
  */
@@ -313,6 +313,10 @@ export declare class NumericTextBoxComponent implements ControlValueAccessor, On
313
313
  * @hidden
314
314
  */
315
315
  get decrementTitle(): string;
316
+ /**
317
+ * @hidden
318
+ */
319
+ get isControlInvalid(): boolean;
316
320
  private get decimalSeparator();
317
321
  private get elementValue();
318
322
  private set elementValue(value);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-inputs",
3
- "version": "9.1.0-sig.202208261530",
3
+ "version": "10.0.0-dev.202209071528",
4
4
  "description": "Kendo UI for Angular Inputs Package - Everything you need to build professional form functionality (Checkbox, ColorGradient, ColorPalette, ColorPicker, FlatColorPicker, FormField, MaskedTextBox, NumericTextBox, RadioButton, RangeSlider, Slider, Switch, TextArea, and TextBox Components)",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "Progress",
@@ -33,7 +33,7 @@
33
33
  "dependencies": {
34
34
  "@progress/kendo-common": "^0.2.2",
35
35
  "@progress/kendo-draggable": "^3.0.0",
36
- "@progress/kendo-inputs-common": "dev",
36
+ "@progress/kendo-inputs-common": "^3.1.0",
37
37
  "@progress/kendo-schematics": "^3.0.0",
38
38
  "tslib": "^2.3.1"
39
39
  },
@@ -139,6 +139,14 @@ export declare class SignatureComponent implements ControlValueAccessor {
139
139
  * @default 3
140
140
  */
141
141
  popupScale: number;
142
+ /**
143
+ * The scale factor for the exported image.
144
+ *
145
+ * The Signature width and height will be multiplied by the scale when converting the signature to an image.
146
+ *
147
+ * @default 2
148
+ */
149
+ exportScale: number;
142
150
  /**
143
151
  * @hidden
144
152
  */
@@ -200,6 +208,14 @@ export declare class SignatureComponent implements ControlValueAccessor {
200
208
  * @hidden
201
209
  */
202
210
  get maximizeTitle(): string;
211
+ /**
212
+ * @hidden
213
+ */
214
+ get baseWidth(): number;
215
+ /**
216
+ * @hidden
217
+ */
218
+ get baseHeight(): number;
203
219
  /**
204
220
  * @hidden
205
221
  */
@@ -274,7 +290,7 @@ export declare class SignatureComponent implements ControlValueAccessor {
274
290
  /**
275
291
  * @hidden
276
292
  */
277
- onMaximize(): void;
293
+ onMaximize(): Promise<void>;
278
294
  /**
279
295
  * @hidden
280
296
  */
@@ -312,10 +328,14 @@ export declare class SignatureComponent implements ControlValueAccessor {
312
328
  * @hidden
313
329
  */
314
330
  registerOnTouched(fn: any): void;
331
+ /**
332
+ * @hidden
333
+ */
334
+ popupValue: any;
315
335
  private onDraw;
316
336
  private onDrawEnd;
317
337
  private addEventListeners;
318
338
  private getMessage;
319
339
  static ɵfac: i0.ɵɵFactoryDeclaration<SignatureComponent, never>;
320
- static ɵcmp: i0.ɵɵComponentDeclaration<SignatureComponent, "kendo-signature", ["kendoSignature"], { "readonly": "readonly"; "disabled": "disabled"; "width": "width"; "height": "height"; "value": "value"; "tabindex": "tabindex"; "size": "size"; "rounded": "rounded"; "fillMode": "fillMode"; "color": "color"; "backgroundColor": "backgroundColor"; "strokeWidth": "strokeWidth"; "smooth": "smooth"; "maximizable": "maximizable"; "maximized": "maximized"; "popupScale": "popupScale"; "parentLocalization": "parentLocalization"; "hideLine": "hideLine"; }, { "valueChange": "valueChange"; "open": "open"; "close": "close"; "onFocus": "focus"; "onBlur": "blur"; "minimize": "minimize"; }, never, never>;
340
+ static ɵcmp: i0.ɵɵComponentDeclaration<SignatureComponent, "kendo-signature", ["kendoSignature"], { "readonly": "readonly"; "disabled": "disabled"; "width": "width"; "height": "height"; "value": "value"; "tabindex": "tabindex"; "size": "size"; "rounded": "rounded"; "fillMode": "fillMode"; "color": "color"; "backgroundColor": "backgroundColor"; "strokeWidth": "strokeWidth"; "smooth": "smooth"; "maximizable": "maximizable"; "maximized": "maximized"; "popupScale": "popupScale"; "exportScale": "exportScale"; "parentLocalization": "parentLocalization"; "hideLine": "hideLine"; }, { "valueChange": "valueChange"; "open": "open"; "close": "close"; "onFocus": "focus"; "onBlur": "blur"; "minimize": "minimize"; }, never, never>;
321
341
  }
@@ -11,13 +11,13 @@ import * as i5 from "@angular/common";
11
11
  import * as i6 from "@progress/kendo-angular-dialog";
12
12
  /**
13
13
  * Represents the [NgModule]({{ site.data.urls.angular['ngmoduleapi'] }})
14
- * definition for the MaskedTextBox component.
14
+ * definition for the Signature component.
15
15
  *
16
16
  * @example
17
17
  *
18
18
  * ```ts-no-run
19
- * // Import the MaskedTextBox module
20
- * import { MaskedTextBoxModule } from '@progress/kendo-angular-inputs';
19
+ * // Import the Signature module
20
+ * import { SignatureModule } from '@progress/kendo-angular-inputs';
21
21
  *
22
22
  * // The browser platform with a compiler
23
23
  * import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
@@ -30,7 +30,7 @@ import * as i6 from "@progress/kendo-angular-dialog";
30
30
  * // Define the app module
31
31
  * _@NgModule({
32
32
  * declarations: [AppComponent], // declare app component
33
- * imports: [BrowserModule, MaskedTextBoxModule], // import MaskedTextBox module
33
+ * imports: [BrowserModule, SignatureModule], // import Signature module
34
34
  * bootstrap: [AppComponent]
35
35
  * })
36
36
  * export class AppModule {}
@@ -168,6 +168,10 @@ export declare class SwitchComponent implements ControlValueAccessor, OnInit, On
168
168
  * @hidden
169
169
  */
170
170
  handleBlur: (event: any) => void;
171
+ /**
172
+ * @hidden
173
+ */
174
+ get isControlInvalid(): boolean;
171
175
  /**
172
176
  * @hidden
173
177
  */
@@ -180,6 +180,10 @@ export declare class TextAreaComponent extends TextFieldsBase implements Control
180
180
  * @hidden
181
181
  */
182
182
  get resizableClass(): string;
183
+ /**
184
+ * @hidden
185
+ */
186
+ get isControlInvalid(): boolean;
183
187
  /**
184
188
  * @hidden
185
189
  */
@@ -309,6 +309,10 @@ export declare class TextBoxComponent implements ControlValueAccessor {
309
309
  * @hidden
310
310
  */
311
311
  private showSuccessInitial;
312
+ /**
313
+ * @hidden
314
+ */
315
+ get isControlInvalid(): boolean;
312
316
  /**
313
317
  * @hidden
314
318
  */