@progress/kendo-angular-inputs 8.0.3 → 8.0.4-dev.202202101712
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/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/fesm2015/index.js +16 -6
- package/dist/fesm5/index.js +17 -6
- package/dist/npm/colorpicker/color-palette.component.js +17 -5
- package/dist/npm/package-metadata.js +1 -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: 1644512961,
|
|
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
|
};
|
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: 1644512961,
|
|
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
|
};
|
|
@@ -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: 1644512961,
|
|
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
|
};
|
|
@@ -9102,13 +9102,14 @@ var serial$1 = 0;
|
|
|
9102
9102
|
* The ColorPalette is independently used by `kendo-colorpicker` and can be directly added to the page.
|
|
9103
9103
|
*/
|
|
9104
9104
|
var ColorPaletteComponent = /** @class */ (function () {
|
|
9105
|
-
function ColorPaletteComponent(host, service, cdr, renderer, localizationService) {
|
|
9105
|
+
function ColorPaletteComponent(host, service, cdr, renderer, localizationService, ngZone) {
|
|
9106
9106
|
var _this = this;
|
|
9107
9107
|
this.host = host;
|
|
9108
9108
|
this.service = service;
|
|
9109
9109
|
this.cdr = cdr;
|
|
9110
9110
|
this.renderer = renderer;
|
|
9111
9111
|
this.localizationService = localizationService;
|
|
9112
|
+
this.ngZone = ngZone;
|
|
9112
9113
|
/**
|
|
9113
9114
|
* @hidden
|
|
9114
9115
|
*/
|
|
@@ -9304,11 +9305,16 @@ var ColorPaletteComponent = /** @class */ (function () {
|
|
|
9304
9305
|
var defaultPreset = (this.format !== 'name') ? DEFAULT_PRESET$1 : DEFAULT_ACCESSIBLE_PRESET$1;
|
|
9305
9306
|
this.palette = this.palette || defaultPreset;
|
|
9306
9307
|
this.setRows();
|
|
9307
|
-
this.focusedCell = this.service.getCellCoordsFor(this.value);
|
|
9308
9308
|
}
|
|
9309
9309
|
};
|
|
9310
9310
|
ColorPaletteComponent.prototype.ngAfterViewInit = function () {
|
|
9311
|
+
var _this = this;
|
|
9311
9312
|
this.setHostElementAriaLabel();
|
|
9313
|
+
if (this.value) {
|
|
9314
|
+
this.ngZone.onStable.pipe(take(1)).subscribe(function () {
|
|
9315
|
+
_this.selectCell(_this.value);
|
|
9316
|
+
});
|
|
9317
|
+
}
|
|
9312
9318
|
};
|
|
9313
9319
|
ColorPaletteComponent.prototype.ngOnDestroy = function () {
|
|
9314
9320
|
if (this.dynamicRTLSubscription) {
|
|
@@ -9320,7 +9326,7 @@ var ColorPaletteComponent = /** @class */ (function () {
|
|
|
9320
9326
|
this.setRows();
|
|
9321
9327
|
}
|
|
9322
9328
|
if (changes.palette || changes.value || changes.columns) {
|
|
9323
|
-
this.
|
|
9329
|
+
this.selectCell(this.value);
|
|
9324
9330
|
this.setHostElementAriaLabel();
|
|
9325
9331
|
}
|
|
9326
9332
|
};
|
|
@@ -9382,7 +9388,7 @@ var ColorPaletteComponent = /** @class */ (function () {
|
|
|
9382
9388
|
*/
|
|
9383
9389
|
ColorPaletteComponent.prototype.writeValue = function (value) {
|
|
9384
9390
|
this.value = value;
|
|
9385
|
-
this.
|
|
9391
|
+
this.selectCell(value);
|
|
9386
9392
|
};
|
|
9387
9393
|
/**
|
|
9388
9394
|
* @hidden
|
|
@@ -9433,6 +9439,10 @@ var ColorPaletteComponent = /** @class */ (function () {
|
|
|
9433
9439
|
this.focusInComponent = false;
|
|
9434
9440
|
this.focusedCell = this.selectedCell;
|
|
9435
9441
|
};
|
|
9442
|
+
ColorPaletteComponent.prototype.selectCell = function (value) {
|
|
9443
|
+
this.selectedCell = this.service.getCellCoordsFor(value);
|
|
9444
|
+
this.focusedCell = this.selectedCell;
|
|
9445
|
+
};
|
|
9436
9446
|
ColorPaletteComponent.prototype.setRows = function () {
|
|
9437
9447
|
if (!isPresent(this.palette)) {
|
|
9438
9448
|
return;
|
|
@@ -9582,7 +9592,8 @@ var ColorPaletteComponent = /** @class */ (function () {
|
|
|
9582
9592
|
ColorPaletteService,
|
|
9583
9593
|
ChangeDetectorRef,
|
|
9584
9594
|
Renderer2,
|
|
9585
|
-
LocalizationService
|
|
9595
|
+
LocalizationService,
|
|
9596
|
+
NgZone])
|
|
9586
9597
|
], ColorPaletteComponent);
|
|
9587
9598
|
return ColorPaletteComponent;
|
|
9588
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: 1644512961,
|
|
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
|
};
|