@progress/kendo-angular-inputs 9.1.0-sig.202208261640 → 10.0.0-dev.202209120911

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: 1661532363,
538
+ publishDate: 1662973827,
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,
@@ -13518,7 +13562,7 @@ class SignatureComponent {
13518
13562
  this.hostClasses.forEach(([name]) => classList.remove(name));
13519
13563
  this.hostClasses = [
13520
13564
  [`k-signature-${SIZE_MAP[this.size || DEFAULT_SIZE]}`, !isNone(this.size)],
13521
- [`k-signature-${this.fillMode || DEFAULT_FILL_MODE}`, !isNone(this.fillMode)],
13565
+ [`k-input-${this.fillMode || DEFAULT_FILL_MODE}`, !isNone(this.fillMode)],
13522
13566
  [`k-rounded-${ROUNDED_MAP[this.rounded || DEFAULT_ROUNDED]}`, !isNone(this.rounded)]
13523
13567
  ];
13524
13568
  this.hostClasses.forEach(([name, enabled]) => classList.toggle(name, enabled));
@@ -13647,6 +13691,7 @@ SignatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ver
13647
13691
  class="k-signature-action k-signature-maximize"
13648
13692
  icon="hyperlink-open"
13649
13693
  fillMode="flat"
13694
+ [size]="size"
13650
13695
  (click)="onMaximize()"
13651
13696
  [attr.aria-label]="maximizeTitle"
13652
13697
  [title]="maximizeTitle">
@@ -13657,6 +13702,7 @@ SignatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ver
13657
13702
  class="k-signature-action k-signature-minimize"
13658
13703
  icon="window-minimize"
13659
13704
  fillMode="flat"
13705
+ [size]="size"
13660
13706
  (click)="onMinimize()"
13661
13707
  [attr.aria-label]="minimizeTitle"
13662
13708
  [title]="minimizeTitle">
@@ -13679,6 +13725,7 @@ SignatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ver
13679
13725
  class="k-signature-action k-signature-clear"
13680
13726
  icon="close"
13681
13727
  fillMode="flat"
13728
+ [size]="size"
13682
13729
  [attr.aria-label]="clearTitle"
13683
13730
  [title]="clearTitle"
13684
13731
  (click)="onClear()" >
@@ -13737,6 +13784,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
13737
13784
  class="k-signature-action k-signature-maximize"
13738
13785
  icon="hyperlink-open"
13739
13786
  fillMode="flat"
13787
+ [size]="size"
13740
13788
  (click)="onMaximize()"
13741
13789
  [attr.aria-label]="maximizeTitle"
13742
13790
  [title]="maximizeTitle">
@@ -13747,6 +13795,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
13747
13795
  class="k-signature-action k-signature-minimize"
13748
13796
  icon="window-minimize"
13749
13797
  fillMode="flat"
13798
+ [size]="size"
13750
13799
  (click)="onMinimize()"
13751
13800
  [attr.aria-label]="minimizeTitle"
13752
13801
  [title]="minimizeTitle">
@@ -13769,6 +13818,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
13769
13818
  class="k-signature-action k-signature-clear"
13770
13819
  icon="close"
13771
13820
  fillMode="flat"
13821
+ [size]="size"
13772
13822
  [attr.aria-label]="clearTitle"
13773
13823
  [title]="clearTitle"
13774
13824
  (click)="onClear()" >
@@ -13880,13 +13930,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
13880
13930
 
13881
13931
  /**
13882
13932
  * Represents the [NgModule]({{ site.data.urls.angular['ngmoduleapi'] }})
13883
- * definition for the MaskedTextBox component.
13933
+ * definition for the Signature component.
13884
13934
  *
13885
13935
  * @example
13886
13936
  *
13887
13937
  * ```ts-no-run
13888
- * // Import the MaskedTextBox module
13889
- * import { MaskedTextBoxModule } from '@progress/kendo-angular-inputs';
13938
+ * // Import the Signature module
13939
+ * import { SignatureModule } from '@progress/kendo-angular-inputs';
13890
13940
  *
13891
13941
  * // The browser platform with a compiler
13892
13942
  * import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
@@ -13899,7 +13949,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
13899
13949
  * // Define the app module
13900
13950
  * _@NgModule({
13901
13951
  * declarations: [AppComponent], // declare app component
13902
- * imports: [BrowserModule, MaskedTextBoxModule], // import MaskedTextBox module
13952
+ * imports: [BrowserModule, SignatureModule], // import Signature module
13903
13953
  * bootstrap: [AppComponent]
13904
13954
  * })
13905
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.202208261640",
3
+ "version": "10.0.0-dev.202209120911",
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
  },
@@ -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
  */