@progress/kendo-angular-inputs 21.1.1-develop.2 → 21.2.0-develop.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/colorpicker/adaptiveness/adaptive-renderer.component.mjs +105 -97
- package/esm2022/colorpicker/color-contrast-svg.component.mjs +10 -7
- package/esm2022/colorpicker/color-gradient.component.mjs +287 -279
- package/esm2022/colorpicker/color-input.component.mjs +242 -235
- package/esm2022/colorpicker/color-palette.component.mjs +47 -39
- package/esm2022/colorpicker/colorpicker.component.mjs +228 -222
- package/esm2022/colorpicker/contrast-validation.component.mjs +26 -21
- package/esm2022/colorpicker/contrast.component.mjs +46 -37
- package/esm2022/colorpicker/flatcolorpicker-header.component.mjs +105 -95
- package/esm2022/colorpicker/flatcolorpicker.component.mjs +167 -157
- package/esm2022/form/form.component.mjs +13 -9
- package/esm2022/formfield/formfield.component.mjs +18 -11
- package/esm2022/formfieldset/formfieldset.component.mjs +15 -11
- package/esm2022/maskedtextbox/maskedtextbox.component.mjs +77 -61
- package/esm2022/numerictextbox/numerictextbox.component.mjs +133 -113
- package/esm2022/otpinput/otpinput-separator.component.mjs +25 -15
- package/esm2022/otpinput/otpinput.component.mjs +116 -109
- package/esm2022/package-metadata.mjs +2 -2
- package/esm2022/rangeslider/rangeslider.component.mjs +114 -113
- package/esm2022/rating/rating.component.mjs +273 -271
- package/esm2022/signature/signature.component.mjs +170 -161
- package/esm2022/slider/slider.component.mjs +130 -125
- package/esm2022/sliders-common/slider-ticks.component.mjs +43 -31
- package/esm2022/textarea/textarea.component.mjs +73 -69
- package/esm2022/textbox/textbox.component.mjs +145 -123
- package/fesm2022/progress-kendo-angular-inputs.mjs +2599 -2393
- 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 {
|
|
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: "
|
|
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
|
-
|
|
480
|
-
|
|
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
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
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
|
-
|
|
502
|
-
|
|
503
|
-
|
|
503
|
+
</td>
|
|
504
|
+
}
|
|
505
|
+
</tr>
|
|
506
|
+
}
|
|
507
|
+
</tbody>
|
|
504
508
|
</table>
|
|
505
|
-
|
|
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
|
-
|
|
535
|
-
|
|
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
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
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
|
-
|
|
557
|
-
|
|
558
|
-
|
|
562
|
+
</td>
|
|
563
|
+
}
|
|
564
|
+
</tr>
|
|
565
|
+
}
|
|
566
|
+
</tbody>
|
|
559
567
|
</table>
|
|
560
|
-
|
|
568
|
+
`,
|
|
561
569
|
standalone: true,
|
|
562
|
-
imports: [LocalizedColorPickerMessagesDirective,
|
|
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,
|