@progress/kendo-angular-inputs 8.0.3-dev.202202071246 → 8.0.4
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/dist/cdn/js/kendo-angular-inputs.js +1 -1
- package/dist/cdn/main.js +1 -1
- package/dist/es/colorpicker/color-palette.component.js +18 -6
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/shared/textarea.directive.js +3 -2
- package/dist/es2015/colorpicker/color-palette.component.d.ts +4 -2
- package/dist/es2015/colorpicker/color-palette.component.js +17 -6
- package/dist/es2015/index.metadata.json +1 -1
- package/dist/es2015/package-metadata.js +1 -1
- package/dist/es2015/shared/textarea.directive.js +2 -2
- package/dist/fesm2015/index.js +17 -7
- package/dist/fesm5/index.js +19 -7
- package/dist/npm/colorpicker/color-palette.component.js +17 -5
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/shared/textarea.directive.js +2 -1
- package/dist/systemjs/kendo-angular-inputs.js +1 -1
- package/package.json +1 -1
|
@@ -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: 1644999551,
|
|
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
|
};
|
|
@@ -10,7 +10,7 @@ import { hasObservers, KendoInput, isDocumentAvailable } from '@progress/kendo-a
|
|
|
10
10
|
import { requiresZoneOnBlur } from '../common/utils';
|
|
11
11
|
import { RTL } from '@progress/kendo-angular-l10n';
|
|
12
12
|
import { fromEvent } from 'rxjs';
|
|
13
|
-
import { debounceTime } from 'rxjs/operators';
|
|
13
|
+
import { debounceTime, take } from 'rxjs/operators';
|
|
14
14
|
/**
|
|
15
15
|
* Represents the [Kendo UI TextArea directive for the Inputs components for Angular]({% slug overview_textarea %}).
|
|
16
16
|
* Provides floating labels to `textarea` elements.
|
|
@@ -137,7 +137,7 @@ let TextAreaDirective = TextAreaDirective_1 = class TextAreaDirective {
|
|
|
137
137
|
element.style.height = `${this.initialHeight}px`;
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
|
-
this.resize();
|
|
140
|
+
this.zone.onStable.pipe(take(1)).subscribe(() => this.resize());
|
|
141
141
|
}
|
|
142
142
|
ngOnDestroy() {
|
|
143
143
|
this.listeners.forEach(listener => listener());
|
package/dist/fesm2015/index.js
CHANGED
|
@@ -481,7 +481,7 @@ const packageMetadata = {
|
|
|
481
481
|
name: '@progress/kendo-angular-inputs',
|
|
482
482
|
productName: 'Kendo UI for Angular',
|
|
483
483
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
484
|
-
publishDate:
|
|
484
|
+
publishDate: 1644999551,
|
|
485
485
|
version: '',
|
|
486
486
|
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'
|
|
487
487
|
};
|
|
@@ -2607,7 +2607,7 @@ let TextAreaDirective = TextAreaDirective_1 = class TextAreaDirective {
|
|
|
2607
2607
|
element.style.height = `${this.initialHeight}px`;
|
|
2608
2608
|
}
|
|
2609
2609
|
}
|
|
2610
|
-
this.resize();
|
|
2610
|
+
this.zone.onStable.pipe(take(1)).subscribe(() => this.resize());
|
|
2611
2611
|
}
|
|
2612
2612
|
ngOnDestroy() {
|
|
2613
2613
|
this.listeners.forEach(listener => listener());
|
|
@@ -9018,12 +9018,13 @@ let serial$1 = 0;
|
|
|
9018
9018
|
* The ColorPalette is independently used by `kendo-colorpicker` and can be directly added to the page.
|
|
9019
9019
|
*/
|
|
9020
9020
|
let ColorPaletteComponent = ColorPaletteComponent_1 = class ColorPaletteComponent {
|
|
9021
|
-
constructor(host, service, cdr, renderer, localizationService) {
|
|
9021
|
+
constructor(host, service, cdr, renderer, localizationService, ngZone) {
|
|
9022
9022
|
this.host = host;
|
|
9023
9023
|
this.service = service;
|
|
9024
9024
|
this.cdr = cdr;
|
|
9025
9025
|
this.renderer = renderer;
|
|
9026
9026
|
this.localizationService = localizationService;
|
|
9027
|
+
this.ngZone = ngZone;
|
|
9027
9028
|
/**
|
|
9028
9029
|
* @hidden
|
|
9029
9030
|
*/
|
|
@@ -9176,11 +9177,15 @@ let ColorPaletteComponent = ColorPaletteComponent_1 = class ColorPaletteComponen
|
|
|
9176
9177
|
const defaultPreset = (this.format !== 'name') ? DEFAULT_PRESET$1 : DEFAULT_ACCESSIBLE_PRESET$1;
|
|
9177
9178
|
this.palette = this.palette || defaultPreset;
|
|
9178
9179
|
this.setRows();
|
|
9179
|
-
this.focusedCell = this.service.getCellCoordsFor(this.value);
|
|
9180
9180
|
}
|
|
9181
9181
|
}
|
|
9182
9182
|
ngAfterViewInit() {
|
|
9183
9183
|
this.setHostElementAriaLabel();
|
|
9184
|
+
if (this.value) {
|
|
9185
|
+
this.ngZone.onStable.pipe(take(1)).subscribe(() => {
|
|
9186
|
+
this.selectCell(this.value);
|
|
9187
|
+
});
|
|
9188
|
+
}
|
|
9184
9189
|
}
|
|
9185
9190
|
ngOnDestroy() {
|
|
9186
9191
|
if (this.dynamicRTLSubscription) {
|
|
@@ -9192,7 +9197,7 @@ let ColorPaletteComponent = ColorPaletteComponent_1 = class ColorPaletteComponen
|
|
|
9192
9197
|
this.setRows();
|
|
9193
9198
|
}
|
|
9194
9199
|
if (changes.palette || changes.value || changes.columns) {
|
|
9195
|
-
this.
|
|
9200
|
+
this.selectCell(this.value);
|
|
9196
9201
|
this.setHostElementAriaLabel();
|
|
9197
9202
|
}
|
|
9198
9203
|
}
|
|
@@ -9254,7 +9259,7 @@ let ColorPaletteComponent = ColorPaletteComponent_1 = class ColorPaletteComponen
|
|
|
9254
9259
|
*/
|
|
9255
9260
|
writeValue(value) {
|
|
9256
9261
|
this.value = value;
|
|
9257
|
-
this.
|
|
9262
|
+
this.selectCell(value);
|
|
9258
9263
|
}
|
|
9259
9264
|
/**
|
|
9260
9265
|
* @hidden
|
|
@@ -9305,6 +9310,10 @@ let ColorPaletteComponent = ColorPaletteComponent_1 = class ColorPaletteComponen
|
|
|
9305
9310
|
this.focusInComponent = false;
|
|
9306
9311
|
this.focusedCell = this.selectedCell;
|
|
9307
9312
|
}
|
|
9313
|
+
selectCell(value) {
|
|
9314
|
+
this.selectedCell = this.service.getCellCoordsFor(value);
|
|
9315
|
+
this.focusedCell = this.selectedCell;
|
|
9316
|
+
}
|
|
9308
9317
|
setRows() {
|
|
9309
9318
|
if (!isPresent(this.palette)) {
|
|
9310
9319
|
return;
|
|
@@ -9485,7 +9494,8 @@ ColorPaletteComponent = ColorPaletteComponent_1 = __decorate([
|
|
|
9485
9494
|
ColorPaletteService,
|
|
9486
9495
|
ChangeDetectorRef,
|
|
9487
9496
|
Renderer2,
|
|
9488
|
-
LocalizationService
|
|
9497
|
+
LocalizationService,
|
|
9498
|
+
NgZone])
|
|
9489
9499
|
], ColorPaletteComponent);
|
|
9490
9500
|
|
|
9491
9501
|
/**
|
package/dist/fesm5/index.js
CHANGED
|
@@ -514,7 +514,7 @@ var packageMetadata = {
|
|
|
514
514
|
name: '@progress/kendo-angular-inputs',
|
|
515
515
|
productName: 'Kendo UI for Angular',
|
|
516
516
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
517
|
-
publishDate:
|
|
517
|
+
publishDate: 1644999551,
|
|
518
518
|
version: '',
|
|
519
519
|
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'
|
|
520
520
|
};
|
|
@@ -2626,6 +2626,7 @@ var TextAreaDirective = /** @class */ (function () {
|
|
|
2626
2626
|
this.control = this.injector.get(NgControl, null);
|
|
2627
2627
|
};
|
|
2628
2628
|
TextAreaDirective.prototype.ngOnChanges = function (changes) {
|
|
2629
|
+
var _this = this;
|
|
2629
2630
|
var element = this.element.nativeElement;
|
|
2630
2631
|
if (changes.value) {
|
|
2631
2632
|
this.elementValue = this.value;
|
|
@@ -2641,7 +2642,7 @@ var TextAreaDirective = /** @class */ (function () {
|
|
|
2641
2642
|
element.style.height = this.initialHeight + "px";
|
|
2642
2643
|
}
|
|
2643
2644
|
}
|
|
2644
|
-
this.resize();
|
|
2645
|
+
this.zone.onStable.pipe(take(1)).subscribe(function () { return _this.resize(); });
|
|
2645
2646
|
};
|
|
2646
2647
|
TextAreaDirective.prototype.ngOnDestroy = function () {
|
|
2647
2648
|
this.listeners.forEach(function (listener) { return listener(); });
|
|
@@ -9101,13 +9102,14 @@ var serial$1 = 0;
|
|
|
9101
9102
|
* The ColorPalette is independently used by `kendo-colorpicker` and can be directly added to the page.
|
|
9102
9103
|
*/
|
|
9103
9104
|
var ColorPaletteComponent = /** @class */ (function () {
|
|
9104
|
-
function ColorPaletteComponent(host, service, cdr, renderer, localizationService) {
|
|
9105
|
+
function ColorPaletteComponent(host, service, cdr, renderer, localizationService, ngZone) {
|
|
9105
9106
|
var _this = this;
|
|
9106
9107
|
this.host = host;
|
|
9107
9108
|
this.service = service;
|
|
9108
9109
|
this.cdr = cdr;
|
|
9109
9110
|
this.renderer = renderer;
|
|
9110
9111
|
this.localizationService = localizationService;
|
|
9112
|
+
this.ngZone = ngZone;
|
|
9111
9113
|
/**
|
|
9112
9114
|
* @hidden
|
|
9113
9115
|
*/
|
|
@@ -9303,11 +9305,16 @@ var ColorPaletteComponent = /** @class */ (function () {
|
|
|
9303
9305
|
var defaultPreset = (this.format !== 'name') ? DEFAULT_PRESET$1 : DEFAULT_ACCESSIBLE_PRESET$1;
|
|
9304
9306
|
this.palette = this.palette || defaultPreset;
|
|
9305
9307
|
this.setRows();
|
|
9306
|
-
this.focusedCell = this.service.getCellCoordsFor(this.value);
|
|
9307
9308
|
}
|
|
9308
9309
|
};
|
|
9309
9310
|
ColorPaletteComponent.prototype.ngAfterViewInit = function () {
|
|
9311
|
+
var _this = this;
|
|
9310
9312
|
this.setHostElementAriaLabel();
|
|
9313
|
+
if (this.value) {
|
|
9314
|
+
this.ngZone.onStable.pipe(take(1)).subscribe(function () {
|
|
9315
|
+
_this.selectCell(_this.value);
|
|
9316
|
+
});
|
|
9317
|
+
}
|
|
9311
9318
|
};
|
|
9312
9319
|
ColorPaletteComponent.prototype.ngOnDestroy = function () {
|
|
9313
9320
|
if (this.dynamicRTLSubscription) {
|
|
@@ -9319,7 +9326,7 @@ var ColorPaletteComponent = /** @class */ (function () {
|
|
|
9319
9326
|
this.setRows();
|
|
9320
9327
|
}
|
|
9321
9328
|
if (changes.palette || changes.value || changes.columns) {
|
|
9322
|
-
this.
|
|
9329
|
+
this.selectCell(this.value);
|
|
9323
9330
|
this.setHostElementAriaLabel();
|
|
9324
9331
|
}
|
|
9325
9332
|
};
|
|
@@ -9381,7 +9388,7 @@ var ColorPaletteComponent = /** @class */ (function () {
|
|
|
9381
9388
|
*/
|
|
9382
9389
|
ColorPaletteComponent.prototype.writeValue = function (value) {
|
|
9383
9390
|
this.value = value;
|
|
9384
|
-
this.
|
|
9391
|
+
this.selectCell(value);
|
|
9385
9392
|
};
|
|
9386
9393
|
/**
|
|
9387
9394
|
* @hidden
|
|
@@ -9432,6 +9439,10 @@ var ColorPaletteComponent = /** @class */ (function () {
|
|
|
9432
9439
|
this.focusInComponent = false;
|
|
9433
9440
|
this.focusedCell = this.selectedCell;
|
|
9434
9441
|
};
|
|
9442
|
+
ColorPaletteComponent.prototype.selectCell = function (value) {
|
|
9443
|
+
this.selectedCell = this.service.getCellCoordsFor(value);
|
|
9444
|
+
this.focusedCell = this.selectedCell;
|
|
9445
|
+
};
|
|
9435
9446
|
ColorPaletteComponent.prototype.setRows = function () {
|
|
9436
9447
|
if (!isPresent(this.palette)) {
|
|
9437
9448
|
return;
|
|
@@ -9581,7 +9592,8 @@ var ColorPaletteComponent = /** @class */ (function () {
|
|
|
9581
9592
|
ColorPaletteService,
|
|
9582
9593
|
ChangeDetectorRef,
|
|
9583
9594
|
Renderer2,
|
|
9584
|
-
LocalizationService
|
|
9595
|
+
LocalizationService,
|
|
9596
|
+
NgZone])
|
|
9585
9597
|
], ColorPaletteComponent);
|
|
9586
9598
|
return ColorPaletteComponent;
|
|
9587
9599
|
}());
|
|
@@ -10,6 +10,7 @@ var forms_1 = require("@angular/forms");
|
|
|
10
10
|
var kendo_angular_common_1 = require("@progress/kendo-angular-common");
|
|
11
11
|
var kendo_angular_l10n_1 = require("@progress/kendo-angular-l10n");
|
|
12
12
|
var kendo_licensing_1 = require("@progress/kendo-licensing");
|
|
13
|
+
var operators_1 = require("rxjs/operators");
|
|
13
14
|
var colorpalette_localization_service_1 = require("./localization/colorpalette-localization.service");
|
|
14
15
|
var package_metadata_1 = require("../package-metadata");
|
|
15
16
|
var models_1 = require("./models");
|
|
@@ -26,13 +27,14 @@ var serial = 0;
|
|
|
26
27
|
* The ColorPalette is independently used by `kendo-colorpicker` and can be directly added to the page.
|
|
27
28
|
*/
|
|
28
29
|
var ColorPaletteComponent = /** @class */ (function () {
|
|
29
|
-
function ColorPaletteComponent(host, service, cdr, renderer, localizationService) {
|
|
30
|
+
function ColorPaletteComponent(host, service, cdr, renderer, localizationService, ngZone) {
|
|
30
31
|
var _this = this;
|
|
31
32
|
this.host = host;
|
|
32
33
|
this.service = service;
|
|
33
34
|
this.cdr = cdr;
|
|
34
35
|
this.renderer = renderer;
|
|
35
36
|
this.localizationService = localizationService;
|
|
37
|
+
this.ngZone = ngZone;
|
|
36
38
|
/**
|
|
37
39
|
* @hidden
|
|
38
40
|
*/
|
|
@@ -228,11 +230,16 @@ var ColorPaletteComponent = /** @class */ (function () {
|
|
|
228
230
|
var defaultPreset = (this.format !== 'name') ? DEFAULT_PRESET : DEFAULT_ACCESSIBLE_PRESET;
|
|
229
231
|
this.palette = this.palette || defaultPreset;
|
|
230
232
|
this.setRows();
|
|
231
|
-
this.focusedCell = this.service.getCellCoordsFor(this.value);
|
|
232
233
|
}
|
|
233
234
|
};
|
|
234
235
|
ColorPaletteComponent.prototype.ngAfterViewInit = function () {
|
|
236
|
+
var _this = this;
|
|
235
237
|
this.setHostElementAriaLabel();
|
|
238
|
+
if (this.value) {
|
|
239
|
+
this.ngZone.onStable.pipe(operators_1.take(1)).subscribe(function () {
|
|
240
|
+
_this.selectCell(_this.value);
|
|
241
|
+
});
|
|
242
|
+
}
|
|
236
243
|
};
|
|
237
244
|
ColorPaletteComponent.prototype.ngOnDestroy = function () {
|
|
238
245
|
if (this.dynamicRTLSubscription) {
|
|
@@ -244,7 +251,7 @@ var ColorPaletteComponent = /** @class */ (function () {
|
|
|
244
251
|
this.setRows();
|
|
245
252
|
}
|
|
246
253
|
if (changes.palette || changes.value || changes.columns) {
|
|
247
|
-
this.
|
|
254
|
+
this.selectCell(this.value);
|
|
248
255
|
this.setHostElementAriaLabel();
|
|
249
256
|
}
|
|
250
257
|
};
|
|
@@ -306,7 +313,7 @@ var ColorPaletteComponent = /** @class */ (function () {
|
|
|
306
313
|
*/
|
|
307
314
|
ColorPaletteComponent.prototype.writeValue = function (value) {
|
|
308
315
|
this.value = value;
|
|
309
|
-
this.
|
|
316
|
+
this.selectCell(value);
|
|
310
317
|
};
|
|
311
318
|
/**
|
|
312
319
|
* @hidden
|
|
@@ -357,6 +364,10 @@ var ColorPaletteComponent = /** @class */ (function () {
|
|
|
357
364
|
this.focusInComponent = false;
|
|
358
365
|
this.focusedCell = this.selectedCell;
|
|
359
366
|
};
|
|
367
|
+
ColorPaletteComponent.prototype.selectCell = function (value) {
|
|
368
|
+
this.selectedCell = this.service.getCellCoordsFor(value);
|
|
369
|
+
this.focusedCell = this.selectedCell;
|
|
370
|
+
};
|
|
360
371
|
ColorPaletteComponent.prototype.setRows = function () {
|
|
361
372
|
if (!utils_2.isPresent(this.palette)) {
|
|
362
373
|
return;
|
|
@@ -506,7 +517,8 @@ var ColorPaletteComponent = /** @class */ (function () {
|
|
|
506
517
|
color_palette_service_1.ColorPaletteService,
|
|
507
518
|
core_1.ChangeDetectorRef,
|
|
508
519
|
core_1.Renderer2,
|
|
509
|
-
kendo_angular_l10n_1.LocalizationService
|
|
520
|
+
kendo_angular_l10n_1.LocalizationService,
|
|
521
|
+
core_1.NgZone])
|
|
510
522
|
], ColorPaletteComponent);
|
|
511
523
|
return ColorPaletteComponent;
|
|
512
524
|
}());
|
|
@@ -11,7 +11,7 @@ exports.packageMetadata = {
|
|
|
11
11
|
name: '@progress/kendo-angular-inputs',
|
|
12
12
|
productName: 'Kendo UI for Angular',
|
|
13
13
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
14
|
-
publishDate:
|
|
14
|
+
publishDate: 1644999551,
|
|
15
15
|
version: '',
|
|
16
16
|
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'
|
|
17
17
|
};
|
|
@@ -129,6 +129,7 @@ var TextAreaDirective = /** @class */ (function () {
|
|
|
129
129
|
this.control = this.injector.get(forms_1.NgControl, null);
|
|
130
130
|
};
|
|
131
131
|
TextAreaDirective.prototype.ngOnChanges = function (changes) {
|
|
132
|
+
var _this = this;
|
|
132
133
|
var element = this.element.nativeElement;
|
|
133
134
|
if (changes.value) {
|
|
134
135
|
this.elementValue = this.value;
|
|
@@ -144,7 +145,7 @@ var TextAreaDirective = /** @class */ (function () {
|
|
|
144
145
|
element.style.height = this.initialHeight + "px";
|
|
145
146
|
}
|
|
146
147
|
}
|
|
147
|
-
this.resize();
|
|
148
|
+
this.zone.onStable.pipe(operators_1.take(1)).subscribe(function () { return _this.resize(); });
|
|
148
149
|
};
|
|
149
150
|
TextAreaDirective.prototype.ngOnDestroy = function () {
|
|
150
151
|
this.listeners.forEach(function (listener) { return listener(); });
|