@progress/kendo-angular-inputs 21.1.1-develop.2 → 21.2.0-develop.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. package/esm2022/colorpicker/adaptiveness/adaptive-renderer.component.mjs +105 -97
  2. package/esm2022/colorpicker/color-contrast-svg.component.mjs +10 -7
  3. package/esm2022/colorpicker/color-gradient.component.mjs +287 -279
  4. package/esm2022/colorpicker/color-input.component.mjs +242 -235
  5. package/esm2022/colorpicker/color-palette.component.mjs +47 -39
  6. package/esm2022/colorpicker/colorpicker.component.mjs +228 -222
  7. package/esm2022/colorpicker/contrast-validation.component.mjs +26 -21
  8. package/esm2022/colorpicker/contrast.component.mjs +46 -37
  9. package/esm2022/colorpicker/flatcolorpicker-header.component.mjs +105 -95
  10. package/esm2022/colorpicker/flatcolorpicker.component.mjs +167 -157
  11. package/esm2022/form/form.component.mjs +13 -9
  12. package/esm2022/formfield/formfield.component.mjs +18 -11
  13. package/esm2022/formfieldset/formfieldset.component.mjs +15 -11
  14. package/esm2022/maskedtextbox/maskedtextbox.component.mjs +77 -61
  15. package/esm2022/numerictextbox/numerictextbox.component.mjs +133 -113
  16. package/esm2022/otpinput/otpinput-separator.component.mjs +25 -15
  17. package/esm2022/otpinput/otpinput.component.mjs +116 -109
  18. package/esm2022/package-metadata.mjs +2 -2
  19. package/esm2022/rangeslider/rangeslider.component.mjs +114 -113
  20. package/esm2022/rating/rating.component.mjs +273 -271
  21. package/esm2022/signature/signature.component.mjs +170 -161
  22. package/esm2022/slider/slider.component.mjs +130 -125
  23. package/esm2022/sliders-common/slider-ticks.component.mjs +43 -31
  24. package/esm2022/textarea/textarea.component.mjs +73 -69
  25. package/esm2022/textbox/textbox.component.mjs +145 -123
  26. package/fesm2022/progress-kendo-angular-inputs.mjs +2599 -2393
  27. package/package.json +12 -12
@@ -16,7 +16,7 @@ import { PALETTEPRESETS } from './models';
16
16
  import { parseColor } from './utils';
17
17
  import { getStylingClasses, isPresent } from '../common/utils';
18
18
  import { ColorPaletteService } from './services/color-palette.service';
19
- import { NgFor, NgStyle } from '@angular/common';
19
+ import { NgStyle } from '@angular/common';
20
20
  import { LocalizedColorPickerMessagesDirective } from './localization/localized-colorpicker-messages.directive';
21
21
  import * as i0 from "@angular/core";
22
22
  import * as i1 from "./services/color-palette.service";
@@ -455,7 +455,7 @@ export class ColorPaletteComponent {
455
455
  notifyNgTouched = () => { };
456
456
  notifyNgChanged = () => { };
457
457
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ColorPaletteComponent, deps: [{ token: i0.ElementRef }, { token: i1.ColorPaletteService }, { token: i0.ChangeDetectorRef }, { token: i0.Renderer2 }, { token: i2.LocalizationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
458
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: ColorPaletteComponent, isStandalone: true, selector: "kendo-colorpalette", inputs: { id: "id", format: "format", value: "value", columns: "columns", palette: "palette", size: "size", tabindex: "tabindex", disabled: "disabled", readonly: "readonly", tileSize: "tileSize" }, outputs: { selectionChange: "selectionChange", valueChange: "valueChange", cellSelection: "cellSelection" }, host: { properties: { "attr.dir": "this.direction", "attr.role": "this.role", "attr.aria-activedescendant": "this.activeDescendant", "attr.id": "this.paletteId", "class.k-readonly": "this.readonly", "attr.tabindex": "this.hostTabindex", "class.k-colorpalette": "this.hostClasses", "attr.aria-disabled": "this.disabledClass", "class.k-disabled": "this.disabledClass", "attr.aria-readonly": "this.readonlyAttribute" } }, providers: [
458
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: ColorPaletteComponent, isStandalone: true, selector: "kendo-colorpalette", inputs: { id: "id", format: "format", value: "value", columns: "columns", palette: "palette", size: "size", tabindex: "tabindex", disabled: "disabled", readonly: "readonly", tileSize: "tileSize" }, outputs: { selectionChange: "selectionChange", valueChange: "valueChange", cellSelection: "cellSelection" }, host: { properties: { "attr.dir": "this.direction", "attr.role": "this.role", "attr.aria-activedescendant": "this.activeDescendant", "attr.id": "this.paletteId", "class.k-readonly": "this.readonly", "attr.tabindex": "this.hostTabindex", "class.k-colorpalette": "this.hostClasses", "attr.aria-disabled": "this.disabledClass", "class.k-disabled": "this.disabledClass", "attr.aria-readonly": "this.readonlyAttribute" } }, providers: [
459
459
  {
460
460
  multi: true,
461
461
  provide: NG_VALUE_ACCESSOR,
@@ -476,33 +476,37 @@ export class ColorPaletteComponent {
476
476
  }
477
477
  ], exportAs: ["kendoColorPalette"], usesOnChanges: true, ngImport: i0, template: `
478
478
  <ng-container kendoColorPaletteLocalizedMessages
479
- i18n-colorPaletteNoColor="kendo.colorpalette.colorPaletteNoColor|The aria-label applied to the ColorPalette component when the value is empty."
480
- colorPaletteNoColor="Colorpalette no color chosen">
479
+ i18n-colorPaletteNoColor="kendo.colorpalette.colorPaletteNoColor|The aria-label applied to the ColorPalette component when the value is empty."
480
+ colorPaletteNoColor="Colorpalette no color chosen">
481
481
  </ng-container>
482
482
  <table role="presentation" class="k-colorpalette-table">
483
- <tbody>
484
- <tr *ngFor="let row of colorRows; let rowIndex = index" role="row">
485
- <td *ngFor="let color of row; let colIndex = index"
486
- role="gridcell"
487
- [class.k-selected]="selectedCell?.row === rowIndex && selectedCell?.col === colIndex"
488
- [class.k-focus]="focusInComponent && focusedCell?.row === rowIndex && focusedCell?.col === colIndex"
489
- [attr.aria-selected]="selectedCell?.row === rowIndex && selectedCell?.col === colIndex ? 'true' : undefined"
490
- [attr.aria-label]="color"
491
- class="k-colorpalette-tile"
492
- [id]="'k-' + rowIndex + '-' + colIndex + '-' + uniqueId"
493
- [attr.value]="color"
494
- (click)="handleCellSelection(color, { row: rowIndex, col: colIndex })"
483
+ <tbody>
484
+ @for (row of colorRows; track row; let rowIndex = $index) {
485
+ <tr role="row">
486
+ @for (color of row; track color; let colIndex = $index) {
487
+ <td
488
+ role="gridcell"
489
+ [class.k-selected]="selectedCell?.row === rowIndex && selectedCell?.col === colIndex"
490
+ [class.k-focus]="focusInComponent && focusedCell?.row === rowIndex && focusedCell?.col === colIndex"
491
+ [attr.aria-selected]="selectedCell?.row === rowIndex && selectedCell?.col === colIndex ? 'true' : undefined"
492
+ [attr.aria-label]="color"
493
+ class="k-colorpalette-tile"
494
+ [id]="'k-' + rowIndex + '-' + colIndex + '-' + uniqueId"
495
+ [attr.value]="color"
496
+ (click)="handleCellSelection(color, { row: rowIndex, col: colIndex })"
495
497
  [ngStyle]="{
496
498
  backgroundColor: color,
497
499
  width: tileLayout?.width + 'px',
498
500
  height: tileLayout?.height + 'px',
499
501
  minWidth: tileLayout?.width + 'px'
500
502
  }">
501
- </td>
502
- </tr>
503
- </tbody>
503
+ </td>
504
+ }
505
+ </tr>
506
+ }
507
+ </tbody>
504
508
  </table>
505
- `, isInline: true, dependencies: [{ kind: "directive", type: LocalizedColorPickerMessagesDirective, selector: "[kendoColorPickerLocalizedMessages], [kendoFlatColorPickerLocalizedMessages], [kendoColorGradientLocalizedMessages], [kendoColorPaletteLocalizedMessages]" }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
509
+ `, isInline: true, dependencies: [{ kind: "directive", type: LocalizedColorPickerMessagesDirective, selector: "[kendoColorPickerLocalizedMessages], [kendoFlatColorPickerLocalizedMessages], [kendoColorGradientLocalizedMessages], [kendoColorPaletteLocalizedMessages]" }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
506
510
  }
507
511
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ColorPaletteComponent, decorators: [{
508
512
  type: Component,
@@ -531,35 +535,39 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
531
535
  ],
532
536
  template: `
533
537
  <ng-container kendoColorPaletteLocalizedMessages
534
- i18n-colorPaletteNoColor="kendo.colorpalette.colorPaletteNoColor|The aria-label applied to the ColorPalette component when the value is empty."
535
- colorPaletteNoColor="Colorpalette no color chosen">
538
+ i18n-colorPaletteNoColor="kendo.colorpalette.colorPaletteNoColor|The aria-label applied to the ColorPalette component when the value is empty."
539
+ colorPaletteNoColor="Colorpalette no color chosen">
536
540
  </ng-container>
537
541
  <table role="presentation" class="k-colorpalette-table">
538
- <tbody>
539
- <tr *ngFor="let row of colorRows; let rowIndex = index" role="row">
540
- <td *ngFor="let color of row; let colIndex = index"
541
- role="gridcell"
542
- [class.k-selected]="selectedCell?.row === rowIndex && selectedCell?.col === colIndex"
543
- [class.k-focus]="focusInComponent && focusedCell?.row === rowIndex && focusedCell?.col === colIndex"
544
- [attr.aria-selected]="selectedCell?.row === rowIndex && selectedCell?.col === colIndex ? 'true' : undefined"
545
- [attr.aria-label]="color"
546
- class="k-colorpalette-tile"
547
- [id]="'k-' + rowIndex + '-' + colIndex + '-' + uniqueId"
548
- [attr.value]="color"
549
- (click)="handleCellSelection(color, { row: rowIndex, col: colIndex })"
542
+ <tbody>
543
+ @for (row of colorRows; track row; let rowIndex = $index) {
544
+ <tr role="row">
545
+ @for (color of row; track color; let colIndex = $index) {
546
+ <td
547
+ role="gridcell"
548
+ [class.k-selected]="selectedCell?.row === rowIndex && selectedCell?.col === colIndex"
549
+ [class.k-focus]="focusInComponent && focusedCell?.row === rowIndex && focusedCell?.col === colIndex"
550
+ [attr.aria-selected]="selectedCell?.row === rowIndex && selectedCell?.col === colIndex ? 'true' : undefined"
551
+ [attr.aria-label]="color"
552
+ class="k-colorpalette-tile"
553
+ [id]="'k-' + rowIndex + '-' + colIndex + '-' + uniqueId"
554
+ [attr.value]="color"
555
+ (click)="handleCellSelection(color, { row: rowIndex, col: colIndex })"
550
556
  [ngStyle]="{
551
557
  backgroundColor: color,
552
558
  width: tileLayout?.width + 'px',
553
559
  height: tileLayout?.height + 'px',
554
560
  minWidth: tileLayout?.width + 'px'
555
561
  }">
556
- </td>
557
- </tr>
558
- </tbody>
562
+ </td>
563
+ }
564
+ </tr>
565
+ }
566
+ </tbody>
559
567
  </table>
560
- `,
568
+ `,
561
569
  standalone: true,
562
- imports: [LocalizedColorPickerMessagesDirective, NgFor, NgStyle]
570
+ imports: [LocalizedColorPickerMessagesDirective, NgStyle]
563
571
  }]
564
572
  }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i1.ColorPaletteService }, { type: i0.ChangeDetectorRef }, { type: i0.Renderer2 }, { type: i2.LocalizationService }, { type: i0.NgZone }], propDecorators: { direction: [{
565
573
  type: HostBinding,