@progress/kendo-angular-inputs 9.0.2 → 9.0.4-dev.202207281411
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/README.md +157 -6
- package/bundles/kendo-angular-inputs.umd.js +1 -1
- package/esm2015/colorpicker/color-gradient.component.js +4 -4
- package/esm2015/colorpicker/color-palette.component.js +6 -6
- package/esm2015/colorpicker/flatcolorpicker-header.component.js +2 -2
- package/esm2015/colorpicker/flatcolorpicker.component.js +2 -2
- package/esm2015/package-metadata.js +1 -1
- package/esm2015/sliders-common/slider-base.js +2 -2
- package/esm2015/textarea/textarea.component.js +18 -9
- package/fesm2015/kendo-angular-inputs.js +35 -26
- package/package.json +7 -7
- package/textarea/textarea.component.d.ts +2 -3
|
@@ -480,10 +480,10 @@ export class ColorGradientComponent {
|
|
|
480
480
|
}
|
|
481
481
|
});
|
|
482
482
|
const dragHandleFocusInListener = this.renderer.listen(this.gradientDragHandle.nativeElement, 'focusin', () => {
|
|
483
|
-
this.renderer.addClass(this.gradientDragHandle.nativeElement, 'k-
|
|
483
|
+
this.renderer.addClass(this.gradientDragHandle.nativeElement, 'k-focus');
|
|
484
484
|
});
|
|
485
485
|
const dragHandleFocusOutListener = this.renderer.listen(this.gradientDragHandle.nativeElement, 'focusout', () => {
|
|
486
|
-
this.renderer.removeClass(this.gradientDragHandle.nativeElement, 'k-
|
|
486
|
+
this.renderer.removeClass(this.gradientDragHandle.nativeElement, 'k-focus');
|
|
487
487
|
});
|
|
488
488
|
this.listeners.push(focusOutListener, keydownListener, keyupListener, dragHandleFocusInListener, dragHandleFocusOutListener);
|
|
489
489
|
});
|
|
@@ -500,7 +500,7 @@ export class ColorGradientComponent {
|
|
|
500
500
|
}
|
|
501
501
|
}
|
|
502
502
|
ColorGradientComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ColorGradientComponent, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }, { token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
503
|
-
ColorGradientComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ColorGradientComponent, selector: "kendo-colorgradient", inputs: { id: "id", opacity: "opacity", disabled: "disabled", readonly: "readonly", clearButton: "clearButton", delay: "delay", value: "value", contrastTool: "contrastTool", tabindex: "tabindex", format: "format" }, outputs: { valueChange: "valueChange" }, host: { properties: { "class.k-colorgradient": "this.hostClasses", "attr.aria-readonly": "this.readonlyAttribute", "class.k-
|
|
503
|
+
ColorGradientComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ColorGradientComponent, selector: "kendo-colorgradient", inputs: { id: "id", opacity: "opacity", disabled: "disabled", readonly: "readonly", clearButton: "clearButton", delay: "delay", value: "value", contrastTool: "contrastTool", tabindex: "tabindex", format: "format" }, outputs: { valueChange: "valueChange" }, host: { properties: { "class.k-colorgradient": "this.hostClasses", "attr.aria-readonly": "this.readonlyAttribute", "class.k-disabled": "this.disabledClass", "attr.id": "this.gradientId", "attr.dir": "this.direction", "attr.tabindex": "this.hostTabindex" } }, providers: [
|
|
504
504
|
{
|
|
505
505
|
multi: true,
|
|
506
506
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -800,7 +800,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
800
800
|
args: ['attr.aria-readonly']
|
|
801
801
|
}], disabledClass: [{
|
|
802
802
|
type: HostBinding,
|
|
803
|
-
args: ['class.k-
|
|
803
|
+
args: ['class.k-disabled']
|
|
804
804
|
}], gradientId: [{
|
|
805
805
|
type: HostBinding,
|
|
806
806
|
args: ['attr.id']
|
|
@@ -352,7 +352,7 @@ export class ColorPaletteComponent {
|
|
|
352
352
|
}
|
|
353
353
|
}
|
|
354
354
|
ColorPaletteComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", 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 });
|
|
355
|
-
ColorPaletteComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ColorPaletteComponent, selector: "kendo-colorpalette", inputs: { id: "id", format: "format", value: "value", columns: "columns", palette: "palette", tabindex: "tabindex", disabled: "disabled", readonly: "readonly", tileSize: "tileSize" }, outputs: { selectionChange: "selectionChange", valueChange: "valueChange", cellSelection: "cellSelection" }, host: { listeners: { "keydown": "handleKeydown($event)", "blur": "handleHostBlur()" }, properties: { "attr.dir": "this.direction", "attr.id": "this.paletteId", "attr.tabindex": "this.hostTabindex", "class.k-colorpalette": "this.hostClasses", "attr.aria-disabled": "this.disabledClass", "class.k-
|
|
355
|
+
ColorPaletteComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ColorPaletteComponent, selector: "kendo-colorpalette", inputs: { id: "id", format: "format", value: "value", columns: "columns", palette: "palette", tabindex: "tabindex", disabled: "disabled", readonly: "readonly", tileSize: "tileSize" }, outputs: { selectionChange: "selectionChange", valueChange: "valueChange", cellSelection: "cellSelection" }, host: { listeners: { "keydown": "handleKeydown($event)", "blur": "handleHostBlur()" }, properties: { "attr.dir": "this.direction", "attr.id": "this.paletteId", "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: [
|
|
356
356
|
{
|
|
357
357
|
multi: true,
|
|
358
358
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -383,8 +383,8 @@ ColorPaletteComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
383
383
|
<tr *ngFor="let row of colorRows; let rowIndex = index">
|
|
384
384
|
<td *ngFor="let color of row; let colIndex = index"
|
|
385
385
|
role="option"
|
|
386
|
-
[class.k-
|
|
387
|
-
[class.k-
|
|
386
|
+
[class.k-selected]="selectedCell?.row === rowIndex && selectedCell?.col === colIndex"
|
|
387
|
+
[class.k-focus]="focusInComponent && focusedCell?.row === rowIndex && focusedCell?.col === colIndex"
|
|
388
388
|
[attr.aria-selected]="selectedCell?.row === rowIndex && selectedCell?.col === colIndex"
|
|
389
389
|
[attr.aria-label]="color"
|
|
390
390
|
class="k-colorpalette-tile"
|
|
@@ -440,8 +440,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
440
440
|
<tr *ngFor="let row of colorRows; let rowIndex = index">
|
|
441
441
|
<td *ngFor="let color of row; let colIndex = index"
|
|
442
442
|
role="option"
|
|
443
|
-
[class.k-
|
|
444
|
-
[class.k-
|
|
443
|
+
[class.k-selected]="selectedCell?.row === rowIndex && selectedCell?.col === colIndex"
|
|
444
|
+
[class.k-focus]="focusInComponent && focusedCell?.row === rowIndex && focusedCell?.col === colIndex"
|
|
445
445
|
[attr.aria-selected]="selectedCell?.row === rowIndex && selectedCell?.col === colIndex"
|
|
446
446
|
[attr.aria-label]="color"
|
|
447
447
|
class="k-colorpalette-tile"
|
|
@@ -502,7 +502,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
502
502
|
args: ['attr.aria-disabled']
|
|
503
503
|
}, {
|
|
504
504
|
type: HostBinding,
|
|
505
|
-
args: ['class.k-
|
|
505
|
+
args: ['class.k-disabled']
|
|
506
506
|
}], readonlyAttribute: [{
|
|
507
507
|
type: HostBinding,
|
|
508
508
|
args: ['attr.aria-readonly']
|
|
@@ -43,7 +43,7 @@ FlatColorPickerHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
|
43
43
|
[attr.title]="getText(view === 'gradient' ? 'gradientView' : 'paletteView')"
|
|
44
44
|
[attr.aria-label]="getText(view === 'gradient' ? 'gradientView' : 'paletteView')"
|
|
45
45
|
[attr.aria-pressed]="activeView === view"
|
|
46
|
-
[ngClass]="activeView === view ? 'k-
|
|
46
|
+
[ngClass]="activeView === view ? 'k-selected' : ''"
|
|
47
47
|
>
|
|
48
48
|
<span
|
|
49
49
|
class="k-button-icon k-icon"
|
|
@@ -93,7 +93,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
93
93
|
[attr.title]="getText(view === 'gradient' ? 'gradientView' : 'paletteView')"
|
|
94
94
|
[attr.aria-label]="getText(view === 'gradient' ? 'gradientView' : 'paletteView')"
|
|
95
95
|
[attr.aria-pressed]="activeView === view"
|
|
96
|
-
[ngClass]="activeView === view ? 'k-
|
|
96
|
+
[ngClass]="activeView === view ? 'k-selected' : ''"
|
|
97
97
|
>
|
|
98
98
|
<span
|
|
99
99
|
class="k-button-icon k-icon"
|
|
@@ -374,7 +374,7 @@ export class FlatColorPickerComponent {
|
|
|
374
374
|
}
|
|
375
375
|
}
|
|
376
376
|
FlatColorPickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FlatColorPickerComponent, deps: [{ token: i0.ElementRef }, { token: i1.FlatColorPickerService }, { token: i2.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: i0.Renderer2 }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
377
|
-
FlatColorPickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: FlatColorPickerComponent, selector: "kendo-flatcolorpicker", inputs: { readonly: "readonly", disabled: "disabled", format: "format", value: "value", tabindex: "tabindex", clearButton: "clearButton", preview: "preview", actionsLayout: "actionsLayout", activeView: "activeView", views: "views", gradientSettings: "gradientSettings", paletteSettings: "paletteSettings" }, outputs: { valueChange: "valueChange", cancel: "cancel", activeViewChange: "activeViewChange", actionButtonClick: "actionButtonClick" }, host: { properties: { "class.k-flatcolorpicker": "this.hostClasses", "class.k-coloreditor": "this.hostClasses", "class.k-
|
|
377
|
+
FlatColorPickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: FlatColorPickerComponent, selector: "kendo-flatcolorpicker", inputs: { readonly: "readonly", disabled: "disabled", format: "format", value: "value", tabindex: "tabindex", clearButton: "clearButton", preview: "preview", actionsLayout: "actionsLayout", activeView: "activeView", views: "views", gradientSettings: "gradientSettings", paletteSettings: "paletteSettings" }, outputs: { valueChange: "valueChange", cancel: "cancel", activeViewChange: "activeViewChange", actionButtonClick: "actionButtonClick" }, host: { properties: { "class.k-flatcolorpicker": "this.hostClasses", "class.k-coloreditor": "this.hostClasses", "class.k-disabled": "this.disabledClass", "attr.aria-disabled": "this.disabledClass", "attr.aria-readonly": "this.ariaReadonly", "attr.dir": "this.direction", "attr.tabindex": "this.hostTabindex" } }, providers: [
|
|
378
378
|
{
|
|
379
379
|
multi: true,
|
|
380
380
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -583,7 +583,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
583
583
|
args: ['class.k-coloreditor']
|
|
584
584
|
}], disabledClass: [{
|
|
585
585
|
type: HostBinding,
|
|
586
|
-
args: ['class.k-
|
|
586
|
+
args: ['class.k-disabled']
|
|
587
587
|
}, {
|
|
588
588
|
type: HostBinding,
|
|
589
589
|
args: ['attr.aria-disabled']
|
|
@@ -9,7 +9,7 @@ export const packageMetadata = {
|
|
|
9
9
|
name: '@progress/kendo-angular-inputs',
|
|
10
10
|
productName: 'Kendo UI for Angular',
|
|
11
11
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
12
|
-
publishDate:
|
|
12
|
+
publishDate: 1659017434,
|
|
13
13
|
version: '',
|
|
14
14
|
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'
|
|
15
15
|
};
|
|
@@ -181,7 +181,7 @@ export class SliderBase {
|
|
|
181
181
|
}
|
|
182
182
|
}
|
|
183
183
|
SliderBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SliderBase, deps: [{ token: i1.LocalizationService }, { token: i0.Injector }, { token: i0.Renderer2 }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
184
|
-
SliderBase.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SliderBase, selector: "kendo-slider-base", inputs: { title: "title", tickPlacement: "tickPlacement", vertical: "vertical", min: "min", max: "max", smallStep: "smallStep", largeStep: "largeStep", fixedTickWidth: "fixedTickWidth", disabled: "disabled", readonly: "readonly", tabindex: "tabindex" }, outputs: { onFocus: "focus", onBlur: "blur", valueChange: "valueChange" }, host: { properties: { "attr.dir": "this.direction", "class.k-slider-horizontal": "this.horizontalClass", "class.k-slider-vertical": "this.verticalClass", "class.k-slider": "this.sliderClass", "class.k-
|
|
184
|
+
SliderBase.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SliderBase, selector: "kendo-slider-base", inputs: { title: "title", tickPlacement: "tickPlacement", vertical: "vertical", min: "min", max: "max", smallStep: "smallStep", largeStep: "largeStep", fixedTickWidth: "fixedTickWidth", disabled: "disabled", readonly: "readonly", tabindex: "tabindex" }, outputs: { onFocus: "focus", onBlur: "blur", valueChange: "valueChange" }, host: { properties: { "attr.dir": "this.direction", "class.k-slider-horizontal": "this.horizontalClass", "class.k-slider-vertical": "this.verticalClass", "class.k-slider": "this.sliderClass", "class.k-disabled": "this.disabledClass" } }, queries: [{ propertyName: "labelTemplate", first: true, predicate: LabelTemplateDirective, descendants: true }], viewQueries: [{ propertyName: "wrapper", first: true, predicate: ["wrap"], descendants: true, static: true }, { propertyName: "track", first: true, predicate: ["track"], descendants: true, static: true }, { propertyName: "sliderSelection", first: true, predicate: ["sliderSelection"], descendants: true, static: true }, { propertyName: "ticksContainer", first: true, predicate: ["ticks"], descendants: true, read: ElementRef }, { propertyName: "ticks", first: true, predicate: ["ticks"], descendants: true }], ngImport: i0, template: ``, isInline: true });
|
|
185
185
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SliderBase, decorators: [{
|
|
186
186
|
type: Component,
|
|
187
187
|
args: [{
|
|
@@ -232,7 +232,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
232
232
|
args: ['class.k-slider']
|
|
233
233
|
}], disabledClass: [{
|
|
234
234
|
type: HostBinding,
|
|
235
|
-
args: ['class.k-
|
|
235
|
+
args: ['class.k-disabled']
|
|
236
236
|
}], wrapper: [{
|
|
237
237
|
type: ViewChild,
|
|
238
238
|
args: ['wrap', { static: true }]
|
|
@@ -321,15 +321,16 @@ export class TextAreaComponent extends TextFieldsBase {
|
|
|
321
321
|
this.renderer.removeStyle(hostElement, 'width');
|
|
322
322
|
}
|
|
323
323
|
}
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
324
|
+
if (changes.value) {
|
|
325
|
+
this.resize();
|
|
326
|
+
}
|
|
327
327
|
}
|
|
328
328
|
/**
|
|
329
329
|
* @hidden
|
|
330
330
|
*/
|
|
331
331
|
writeValue(value) {
|
|
332
332
|
this.value = value;
|
|
333
|
+
this.resize();
|
|
333
334
|
}
|
|
334
335
|
/**
|
|
335
336
|
* @hidden
|
|
@@ -405,12 +406,20 @@ export class TextAreaComponent extends TextFieldsBase {
|
|
|
405
406
|
if (this.resizable !== 'auto') {
|
|
406
407
|
return;
|
|
407
408
|
}
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
409
|
+
// The logic of the resize method, does not depend on Angular and thus moving it outisde of it
|
|
410
|
+
// We need to ensure that the resizing logic runs after the value is updated thus the setTimout
|
|
411
|
+
this.ngZone.runOutsideAngular(() => {
|
|
412
|
+
setTimeout(() => {
|
|
413
|
+
const hostElement = this.hostElement.nativeElement;
|
|
414
|
+
const element = this.input.nativeElement;
|
|
415
|
+
this.renderer.setStyle(element, 'height', `${this.initialHeight}px`);
|
|
416
|
+
const scrollHeight = element.scrollHeight;
|
|
417
|
+
this.renderer.setStyle(hostElement, 'min-height', `${scrollHeight}px`);
|
|
418
|
+
if (scrollHeight > this.initialHeight) {
|
|
419
|
+
this.renderer.setStyle(element, 'height', `${scrollHeight}px`);
|
|
420
|
+
}
|
|
421
|
+
}, 0);
|
|
422
|
+
});
|
|
414
423
|
}
|
|
415
424
|
get isFocused() {
|
|
416
425
|
return this._isFocused;
|
|
@@ -519,7 +519,7 @@ const packageMetadata = {
|
|
|
519
519
|
name: '@progress/kendo-angular-inputs',
|
|
520
520
|
productName: 'Kendo UI for Angular',
|
|
521
521
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
522
|
-
publishDate:
|
|
522
|
+
publishDate: 1659017434,
|
|
523
523
|
version: '',
|
|
524
524
|
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
525
|
};
|
|
@@ -733,7 +733,7 @@ class SliderBase {
|
|
|
733
733
|
}
|
|
734
734
|
}
|
|
735
735
|
SliderBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SliderBase, deps: [{ token: i1.LocalizationService }, { token: i0.Injector }, { token: i0.Renderer2 }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
736
|
-
SliderBase.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SliderBase, selector: "kendo-slider-base", inputs: { title: "title", tickPlacement: "tickPlacement", vertical: "vertical", min: "min", max: "max", smallStep: "smallStep", largeStep: "largeStep", fixedTickWidth: "fixedTickWidth", disabled: "disabled", readonly: "readonly", tabindex: "tabindex" }, outputs: { onFocus: "focus", onBlur: "blur", valueChange: "valueChange" }, host: { properties: { "attr.dir": "this.direction", "class.k-slider-horizontal": "this.horizontalClass", "class.k-slider-vertical": "this.verticalClass", "class.k-slider": "this.sliderClass", "class.k-
|
|
736
|
+
SliderBase.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SliderBase, selector: "kendo-slider-base", inputs: { title: "title", tickPlacement: "tickPlacement", vertical: "vertical", min: "min", max: "max", smallStep: "smallStep", largeStep: "largeStep", fixedTickWidth: "fixedTickWidth", disabled: "disabled", readonly: "readonly", tabindex: "tabindex" }, outputs: { onFocus: "focus", onBlur: "blur", valueChange: "valueChange" }, host: { properties: { "attr.dir": "this.direction", "class.k-slider-horizontal": "this.horizontalClass", "class.k-slider-vertical": "this.verticalClass", "class.k-slider": "this.sliderClass", "class.k-disabled": "this.disabledClass" } }, queries: [{ propertyName: "labelTemplate", first: true, predicate: LabelTemplateDirective, descendants: true }], viewQueries: [{ propertyName: "wrapper", first: true, predicate: ["wrap"], descendants: true, static: true }, { propertyName: "track", first: true, predicate: ["track"], descendants: true, static: true }, { propertyName: "sliderSelection", first: true, predicate: ["sliderSelection"], descendants: true, static: true }, { propertyName: "ticksContainer", first: true, predicate: ["ticks"], descendants: true, read: ElementRef }, { propertyName: "ticks", first: true, predicate: ["ticks"], descendants: true }], ngImport: i0, template: ``, isInline: true });
|
|
737
737
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SliderBase, decorators: [{
|
|
738
738
|
type: Component,
|
|
739
739
|
args: [{
|
|
@@ -784,7 +784,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
784
784
|
args: ['class.k-slider']
|
|
785
785
|
}], disabledClass: [{
|
|
786
786
|
type: HostBinding,
|
|
787
|
-
args: ['class.k-
|
|
787
|
+
args: ['class.k-disabled']
|
|
788
788
|
}], wrapper: [{
|
|
789
789
|
type: ViewChild,
|
|
790
790
|
args: ['wrap', { static: true }]
|
|
@@ -7410,15 +7410,16 @@ class TextAreaComponent extends TextFieldsBase {
|
|
|
7410
7410
|
this.renderer.removeStyle(hostElement, 'width');
|
|
7411
7411
|
}
|
|
7412
7412
|
}
|
|
7413
|
-
|
|
7414
|
-
|
|
7415
|
-
|
|
7413
|
+
if (changes.value) {
|
|
7414
|
+
this.resize();
|
|
7415
|
+
}
|
|
7416
7416
|
}
|
|
7417
7417
|
/**
|
|
7418
7418
|
* @hidden
|
|
7419
7419
|
*/
|
|
7420
7420
|
writeValue(value) {
|
|
7421
7421
|
this.value = value;
|
|
7422
|
+
this.resize();
|
|
7422
7423
|
}
|
|
7423
7424
|
/**
|
|
7424
7425
|
* @hidden
|
|
@@ -7494,12 +7495,20 @@ class TextAreaComponent extends TextFieldsBase {
|
|
|
7494
7495
|
if (this.resizable !== 'auto') {
|
|
7495
7496
|
return;
|
|
7496
7497
|
}
|
|
7497
|
-
|
|
7498
|
-
|
|
7499
|
-
|
|
7500
|
-
|
|
7501
|
-
|
|
7502
|
-
|
|
7498
|
+
// The logic of the resize method, does not depend on Angular and thus moving it outisde of it
|
|
7499
|
+
// We need to ensure that the resizing logic runs after the value is updated thus the setTimout
|
|
7500
|
+
this.ngZone.runOutsideAngular(() => {
|
|
7501
|
+
setTimeout(() => {
|
|
7502
|
+
const hostElement = this.hostElement.nativeElement;
|
|
7503
|
+
const element = this.input.nativeElement;
|
|
7504
|
+
this.renderer.setStyle(element, 'height', `${this.initialHeight}px`);
|
|
7505
|
+
const scrollHeight = element.scrollHeight;
|
|
7506
|
+
this.renderer.setStyle(hostElement, 'min-height', `${scrollHeight}px`);
|
|
7507
|
+
if (scrollHeight > this.initialHeight) {
|
|
7508
|
+
this.renderer.setStyle(element, 'height', `${scrollHeight}px`);
|
|
7509
|
+
}
|
|
7510
|
+
}, 0);
|
|
7511
|
+
});
|
|
7503
7512
|
}
|
|
7504
7513
|
get isFocused() {
|
|
7505
7514
|
return this._isFocused;
|
|
@@ -8307,7 +8316,7 @@ FlatColorPickerHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
|
8307
8316
|
[attr.title]="getText(view === 'gradient' ? 'gradientView' : 'paletteView')"
|
|
8308
8317
|
[attr.aria-label]="getText(view === 'gradient' ? 'gradientView' : 'paletteView')"
|
|
8309
8318
|
[attr.aria-pressed]="activeView === view"
|
|
8310
|
-
[ngClass]="activeView === view ? 'k-
|
|
8319
|
+
[ngClass]="activeView === view ? 'k-selected' : ''"
|
|
8311
8320
|
>
|
|
8312
8321
|
<span
|
|
8313
8322
|
class="k-button-icon k-icon"
|
|
@@ -8357,7 +8366,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
8357
8366
|
[attr.title]="getText(view === 'gradient' ? 'gradientView' : 'paletteView')"
|
|
8358
8367
|
[attr.aria-label]="getText(view === 'gradient' ? 'gradientView' : 'paletteView')"
|
|
8359
8368
|
[attr.aria-pressed]="activeView === view"
|
|
8360
|
-
[ngClass]="activeView === view ? 'k-
|
|
8369
|
+
[ngClass]="activeView === view ? 'k-selected' : ''"
|
|
8361
8370
|
>
|
|
8362
8371
|
<span
|
|
8363
8372
|
class="k-button-icon k-icon"
|
|
@@ -9572,10 +9581,10 @@ class ColorGradientComponent {
|
|
|
9572
9581
|
}
|
|
9573
9582
|
});
|
|
9574
9583
|
const dragHandleFocusInListener = this.renderer.listen(this.gradientDragHandle.nativeElement, 'focusin', () => {
|
|
9575
|
-
this.renderer.addClass(this.gradientDragHandle.nativeElement, 'k-
|
|
9584
|
+
this.renderer.addClass(this.gradientDragHandle.nativeElement, 'k-focus');
|
|
9576
9585
|
});
|
|
9577
9586
|
const dragHandleFocusOutListener = this.renderer.listen(this.gradientDragHandle.nativeElement, 'focusout', () => {
|
|
9578
|
-
this.renderer.removeClass(this.gradientDragHandle.nativeElement, 'k-
|
|
9587
|
+
this.renderer.removeClass(this.gradientDragHandle.nativeElement, 'k-focus');
|
|
9579
9588
|
});
|
|
9580
9589
|
this.listeners.push(focusOutListener, keydownListener, keyupListener, dragHandleFocusInListener, dragHandleFocusOutListener);
|
|
9581
9590
|
});
|
|
@@ -9592,7 +9601,7 @@ class ColorGradientComponent {
|
|
|
9592
9601
|
}
|
|
9593
9602
|
}
|
|
9594
9603
|
ColorGradientComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ColorGradientComponent, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }, { token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
9595
|
-
ColorGradientComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ColorGradientComponent, selector: "kendo-colorgradient", inputs: { id: "id", opacity: "opacity", disabled: "disabled", readonly: "readonly", clearButton: "clearButton", delay: "delay", value: "value", contrastTool: "contrastTool", tabindex: "tabindex", format: "format" }, outputs: { valueChange: "valueChange" }, host: { properties: { "class.k-colorgradient": "this.hostClasses", "attr.aria-readonly": "this.readonlyAttribute", "class.k-
|
|
9604
|
+
ColorGradientComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ColorGradientComponent, selector: "kendo-colorgradient", inputs: { id: "id", opacity: "opacity", disabled: "disabled", readonly: "readonly", clearButton: "clearButton", delay: "delay", value: "value", contrastTool: "contrastTool", tabindex: "tabindex", format: "format" }, outputs: { valueChange: "valueChange" }, host: { properties: { "class.k-colorgradient": "this.hostClasses", "attr.aria-readonly": "this.readonlyAttribute", "class.k-disabled": "this.disabledClass", "attr.id": "this.gradientId", "attr.dir": "this.direction", "attr.tabindex": "this.hostTabindex" } }, providers: [
|
|
9596
9605
|
{
|
|
9597
9606
|
multi: true,
|
|
9598
9607
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -9892,7 +9901,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
9892
9901
|
args: ['attr.aria-readonly']
|
|
9893
9902
|
}], disabledClass: [{
|
|
9894
9903
|
type: HostBinding,
|
|
9895
|
-
args: ['class.k-
|
|
9904
|
+
args: ['class.k-disabled']
|
|
9896
9905
|
}], gradientId: [{
|
|
9897
9906
|
type: HostBinding,
|
|
9898
9907
|
args: ['attr.id']
|
|
@@ -10371,7 +10380,7 @@ class ColorPaletteComponent {
|
|
|
10371
10380
|
}
|
|
10372
10381
|
}
|
|
10373
10382
|
ColorPaletteComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ColorPaletteComponent, deps: [{ token: i0.ElementRef }, { token: ColorPaletteService }, { token: i0.ChangeDetectorRef }, { token: i0.Renderer2 }, { token: i1.LocalizationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
10374
|
-
ColorPaletteComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ColorPaletteComponent, selector: "kendo-colorpalette", inputs: { id: "id", format: "format", value: "value", columns: "columns", palette: "palette", tabindex: "tabindex", disabled: "disabled", readonly: "readonly", tileSize: "tileSize" }, outputs: { selectionChange: "selectionChange", valueChange: "valueChange", cellSelection: "cellSelection" }, host: { listeners: { "keydown": "handleKeydown($event)", "blur": "handleHostBlur()" }, properties: { "attr.dir": "this.direction", "attr.id": "this.paletteId", "attr.tabindex": "this.hostTabindex", "class.k-colorpalette": "this.hostClasses", "attr.aria-disabled": "this.disabledClass", "class.k-
|
|
10383
|
+
ColorPaletteComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ColorPaletteComponent, selector: "kendo-colorpalette", inputs: { id: "id", format: "format", value: "value", columns: "columns", palette: "palette", tabindex: "tabindex", disabled: "disabled", readonly: "readonly", tileSize: "tileSize" }, outputs: { selectionChange: "selectionChange", valueChange: "valueChange", cellSelection: "cellSelection" }, host: { listeners: { "keydown": "handleKeydown($event)", "blur": "handleHostBlur()" }, properties: { "attr.dir": "this.direction", "attr.id": "this.paletteId", "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: [
|
|
10375
10384
|
{
|
|
10376
10385
|
multi: true,
|
|
10377
10386
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -10402,8 +10411,8 @@ ColorPaletteComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
10402
10411
|
<tr *ngFor="let row of colorRows; let rowIndex = index">
|
|
10403
10412
|
<td *ngFor="let color of row; let colIndex = index"
|
|
10404
10413
|
role="option"
|
|
10405
|
-
[class.k-
|
|
10406
|
-
[class.k-
|
|
10414
|
+
[class.k-selected]="selectedCell?.row === rowIndex && selectedCell?.col === colIndex"
|
|
10415
|
+
[class.k-focus]="focusInComponent && focusedCell?.row === rowIndex && focusedCell?.col === colIndex"
|
|
10407
10416
|
[attr.aria-selected]="selectedCell?.row === rowIndex && selectedCell?.col === colIndex"
|
|
10408
10417
|
[attr.aria-label]="color"
|
|
10409
10418
|
class="k-colorpalette-tile"
|
|
@@ -10459,8 +10468,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
10459
10468
|
<tr *ngFor="let row of colorRows; let rowIndex = index">
|
|
10460
10469
|
<td *ngFor="let color of row; let colIndex = index"
|
|
10461
10470
|
role="option"
|
|
10462
|
-
[class.k-
|
|
10463
|
-
[class.k-
|
|
10471
|
+
[class.k-selected]="selectedCell?.row === rowIndex && selectedCell?.col === colIndex"
|
|
10472
|
+
[class.k-focus]="focusInComponent && focusedCell?.row === rowIndex && focusedCell?.col === colIndex"
|
|
10464
10473
|
[attr.aria-selected]="selectedCell?.row === rowIndex && selectedCell?.col === colIndex"
|
|
10465
10474
|
[attr.aria-label]="color"
|
|
10466
10475
|
class="k-colorpalette-tile"
|
|
@@ -10521,7 +10530,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
10521
10530
|
args: ['attr.aria-disabled']
|
|
10522
10531
|
}, {
|
|
10523
10532
|
type: HostBinding,
|
|
10524
|
-
args: ['class.k-
|
|
10533
|
+
args: ['class.k-disabled']
|
|
10525
10534
|
}], readonlyAttribute: [{
|
|
10526
10535
|
type: HostBinding,
|
|
10527
10536
|
args: ['attr.aria-readonly']
|
|
@@ -10978,7 +10987,7 @@ class FlatColorPickerComponent {
|
|
|
10978
10987
|
}
|
|
10979
10988
|
}
|
|
10980
10989
|
FlatColorPickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FlatColorPickerComponent, deps: [{ token: i0.ElementRef }, { token: FlatColorPickerService }, { token: i1.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: i0.Renderer2 }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
10981
|
-
FlatColorPickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: FlatColorPickerComponent, selector: "kendo-flatcolorpicker", inputs: { readonly: "readonly", disabled: "disabled", format: "format", value: "value", tabindex: "tabindex", clearButton: "clearButton", preview: "preview", actionsLayout: "actionsLayout", activeView: "activeView", views: "views", gradientSettings: "gradientSettings", paletteSettings: "paletteSettings" }, outputs: { valueChange: "valueChange", cancel: "cancel", activeViewChange: "activeViewChange", actionButtonClick: "actionButtonClick" }, host: { properties: { "class.k-flatcolorpicker": "this.hostClasses", "class.k-coloreditor": "this.hostClasses", "class.k-
|
|
10990
|
+
FlatColorPickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: FlatColorPickerComponent, selector: "kendo-flatcolorpicker", inputs: { readonly: "readonly", disabled: "disabled", format: "format", value: "value", tabindex: "tabindex", clearButton: "clearButton", preview: "preview", actionsLayout: "actionsLayout", activeView: "activeView", views: "views", gradientSettings: "gradientSettings", paletteSettings: "paletteSettings" }, outputs: { valueChange: "valueChange", cancel: "cancel", activeViewChange: "activeViewChange", actionButtonClick: "actionButtonClick" }, host: { properties: { "class.k-flatcolorpicker": "this.hostClasses", "class.k-coloreditor": "this.hostClasses", "class.k-disabled": "this.disabledClass", "attr.aria-disabled": "this.disabledClass", "attr.aria-readonly": "this.ariaReadonly", "attr.dir": "this.direction", "attr.tabindex": "this.hostTabindex" } }, providers: [
|
|
10982
10991
|
{
|
|
10983
10992
|
multi: true,
|
|
10984
10993
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -11187,7 +11196,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
11187
11196
|
args: ['class.k-coloreditor']
|
|
11188
11197
|
}], disabledClass: [{
|
|
11189
11198
|
type: HostBinding,
|
|
11190
|
-
args: ['class.k-
|
|
11199
|
+
args: ['class.k-disabled']
|
|
11191
11200
|
}, {
|
|
11192
11201
|
type: HostBinding,
|
|
11193
11202
|
args: ['attr.aria-disabled']
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-inputs",
|
|
3
|
-
"version": "9.0.
|
|
4
|
-
"description": "Inputs Package
|
|
3
|
+
"version": "9.0.4-dev.202207281411",
|
|
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",
|
|
7
7
|
"homepage": "https://www.telerik.com/kendo-angular-ui/components/",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@progress/kendo-common": "^0.2.1",
|
|
35
35
|
"@progress/kendo-schematics": "^3.0.0",
|
|
36
|
-
"@
|
|
36
|
+
"@progress/kendo-draggable": "^3.0.0",
|
|
37
37
|
"tslib": "^2.3.1"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
@@ -81,11 +81,11 @@
|
|
|
81
81
|
"fallbackTags": {
|
|
82
82
|
"dev": "latest"
|
|
83
83
|
},
|
|
84
|
-
"analyzeCommits": "@
|
|
84
|
+
"analyzeCommits": "@progress/semantic-prerelease/analyzeCommits",
|
|
85
85
|
"generateNotes": "@progress/kendo-angular-tasks/lib/generateNotes",
|
|
86
|
-
"getLastRelease": "@
|
|
87
|
-
"verifyConditions": "@
|
|
88
|
-
"verifyRelease": "@
|
|
86
|
+
"getLastRelease": "@progress/semantic-prerelease/getLastRelease",
|
|
87
|
+
"verifyConditions": "@progress/semantic-prerelease/verifyConditions",
|
|
88
|
+
"verifyRelease": "@progress/semantic-prerelease/verifyRelease"
|
|
89
89
|
},
|
|
90
90
|
"main": "bundles/kendo-angular-inputs.umd.js",
|
|
91
91
|
"module": "fesm2015/kendo-angular-inputs.js",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { ElementRef, EventEmitter, NgZone, Renderer2, ChangeDetectorRef, Injector
|
|
5
|
+
import { ElementRef, EventEmitter, NgZone, Renderer2, ChangeDetectorRef, Injector } from '@angular/core';
|
|
6
6
|
import { ControlValueAccessor } from '@angular/forms';
|
|
7
7
|
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
8
8
|
import { TextFieldsBase } from '../text-fields-common/text-fields-base';
|
|
@@ -13,7 +13,7 @@ import * as i0 from "@angular/core";
|
|
|
13
13
|
/**
|
|
14
14
|
* Represents the [Kendo UI TextArea component for Angular]({% slug overview_textarea %}).
|
|
15
15
|
*/
|
|
16
|
-
export declare class TextAreaComponent extends TextFieldsBase implements ControlValueAccessor
|
|
16
|
+
export declare class TextAreaComponent extends TextFieldsBase implements ControlValueAccessor {
|
|
17
17
|
protected localizationService: LocalizationService;
|
|
18
18
|
protected ngZone: NgZone;
|
|
19
19
|
protected changeDetector: ChangeDetectorRef;
|
|
@@ -162,7 +162,6 @@ export declare class TextAreaComponent extends TextFieldsBase implements Control
|
|
|
162
162
|
ngAfterViewInit(): void;
|
|
163
163
|
ngOnInit(): void;
|
|
164
164
|
ngOnChanges(changes: any): void;
|
|
165
|
-
ngAfterViewChecked(): void;
|
|
166
165
|
/**
|
|
167
166
|
* @hidden
|
|
168
167
|
*/
|