@progress/kendo-angular-inputs 8.0.3 → 8.0.5
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 -0
- package/dist/es/textbox/textbox.directive.js +3 -0
- 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 +3 -0
- package/dist/es2015/textbox/textbox.directive.js +3 -0
- package/dist/fesm2015/index.js +22 -6
- package/dist/fesm5/index.js +23 -6
- 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 +3 -0
- package/dist/npm/textbox/textbox.directive.js +3 -0
- 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: 1645175564,
|
|
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
|
};
|
|
@@ -207,6 +207,9 @@ let TextAreaDirective = TextAreaDirective_1 = class TextAreaDirective {
|
|
|
207
207
|
tslib_1.__decorate([
|
|
208
208
|
HostBinding('class.k-textarea'),
|
|
209
209
|
HostBinding('class.k-input'),
|
|
210
|
+
HostBinding('class.k-input-md'),
|
|
211
|
+
HostBinding('class.k-rounded-md'),
|
|
212
|
+
HostBinding('class.k-input-solid'),
|
|
210
213
|
tslib_1.__metadata("design:type", Boolean)
|
|
211
214
|
], TextAreaDirective.prototype, "elementClasses", void 0);
|
|
212
215
|
tslib_1.__decorate([
|
|
@@ -91,6 +91,9 @@ let TextBoxDirective = TextBoxDirective_1 = class TextBoxDirective {
|
|
|
91
91
|
tslib_1.__decorate([
|
|
92
92
|
HostBinding('class.k-textbox'),
|
|
93
93
|
HostBinding('class.k-input'),
|
|
94
|
+
HostBinding('class.k-input-md'),
|
|
95
|
+
HostBinding('class.k-rounded-md'),
|
|
96
|
+
HostBinding('class.k-input-solid'),
|
|
94
97
|
tslib_1.__metadata("design:type", Boolean)
|
|
95
98
|
], TextBoxDirective.prototype, "hostClasses", void 0);
|
|
96
99
|
tslib_1.__decorate([
|
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: 1645175564,
|
|
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
|
};
|
|
@@ -2460,6 +2460,9 @@ let TextBoxDirective = TextBoxDirective_1 = class TextBoxDirective {
|
|
|
2460
2460
|
__decorate([
|
|
2461
2461
|
HostBinding('class.k-textbox'),
|
|
2462
2462
|
HostBinding('class.k-input'),
|
|
2463
|
+
HostBinding('class.k-input-md'),
|
|
2464
|
+
HostBinding('class.k-rounded-md'),
|
|
2465
|
+
HostBinding('class.k-input-solid'),
|
|
2463
2466
|
__metadata("design:type", Boolean)
|
|
2464
2467
|
], TextBoxDirective.prototype, "hostClasses", void 0);
|
|
2465
2468
|
__decorate([
|
|
@@ -2677,6 +2680,9 @@ let TextAreaDirective = TextAreaDirective_1 = class TextAreaDirective {
|
|
|
2677
2680
|
__decorate([
|
|
2678
2681
|
HostBinding('class.k-textarea'),
|
|
2679
2682
|
HostBinding('class.k-input'),
|
|
2683
|
+
HostBinding('class.k-input-md'),
|
|
2684
|
+
HostBinding('class.k-rounded-md'),
|
|
2685
|
+
HostBinding('class.k-input-solid'),
|
|
2680
2686
|
__metadata("design:type", Boolean)
|
|
2681
2687
|
], TextAreaDirective.prototype, "elementClasses", void 0);
|
|
2682
2688
|
__decorate([
|
|
@@ -9018,12 +9024,13 @@ let serial$1 = 0;
|
|
|
9018
9024
|
* The ColorPalette is independently used by `kendo-colorpicker` and can be directly added to the page.
|
|
9019
9025
|
*/
|
|
9020
9026
|
let ColorPaletteComponent = ColorPaletteComponent_1 = class ColorPaletteComponent {
|
|
9021
|
-
constructor(host, service, cdr, renderer, localizationService) {
|
|
9027
|
+
constructor(host, service, cdr, renderer, localizationService, ngZone) {
|
|
9022
9028
|
this.host = host;
|
|
9023
9029
|
this.service = service;
|
|
9024
9030
|
this.cdr = cdr;
|
|
9025
9031
|
this.renderer = renderer;
|
|
9026
9032
|
this.localizationService = localizationService;
|
|
9033
|
+
this.ngZone = ngZone;
|
|
9027
9034
|
/**
|
|
9028
9035
|
* @hidden
|
|
9029
9036
|
*/
|
|
@@ -9176,11 +9183,15 @@ let ColorPaletteComponent = ColorPaletteComponent_1 = class ColorPaletteComponen
|
|
|
9176
9183
|
const defaultPreset = (this.format !== 'name') ? DEFAULT_PRESET$1 : DEFAULT_ACCESSIBLE_PRESET$1;
|
|
9177
9184
|
this.palette = this.palette || defaultPreset;
|
|
9178
9185
|
this.setRows();
|
|
9179
|
-
this.focusedCell = this.service.getCellCoordsFor(this.value);
|
|
9180
9186
|
}
|
|
9181
9187
|
}
|
|
9182
9188
|
ngAfterViewInit() {
|
|
9183
9189
|
this.setHostElementAriaLabel();
|
|
9190
|
+
if (this.value) {
|
|
9191
|
+
this.ngZone.onStable.pipe(take(1)).subscribe(() => {
|
|
9192
|
+
this.selectCell(this.value);
|
|
9193
|
+
});
|
|
9194
|
+
}
|
|
9184
9195
|
}
|
|
9185
9196
|
ngOnDestroy() {
|
|
9186
9197
|
if (this.dynamicRTLSubscription) {
|
|
@@ -9192,7 +9203,7 @@ let ColorPaletteComponent = ColorPaletteComponent_1 = class ColorPaletteComponen
|
|
|
9192
9203
|
this.setRows();
|
|
9193
9204
|
}
|
|
9194
9205
|
if (changes.palette || changes.value || changes.columns) {
|
|
9195
|
-
this.
|
|
9206
|
+
this.selectCell(this.value);
|
|
9196
9207
|
this.setHostElementAriaLabel();
|
|
9197
9208
|
}
|
|
9198
9209
|
}
|
|
@@ -9254,7 +9265,7 @@ let ColorPaletteComponent = ColorPaletteComponent_1 = class ColorPaletteComponen
|
|
|
9254
9265
|
*/
|
|
9255
9266
|
writeValue(value) {
|
|
9256
9267
|
this.value = value;
|
|
9257
|
-
this.
|
|
9268
|
+
this.selectCell(value);
|
|
9258
9269
|
}
|
|
9259
9270
|
/**
|
|
9260
9271
|
* @hidden
|
|
@@ -9305,6 +9316,10 @@ let ColorPaletteComponent = ColorPaletteComponent_1 = class ColorPaletteComponen
|
|
|
9305
9316
|
this.focusInComponent = false;
|
|
9306
9317
|
this.focusedCell = this.selectedCell;
|
|
9307
9318
|
}
|
|
9319
|
+
selectCell(value) {
|
|
9320
|
+
this.selectedCell = this.service.getCellCoordsFor(value);
|
|
9321
|
+
this.focusedCell = this.selectedCell;
|
|
9322
|
+
}
|
|
9308
9323
|
setRows() {
|
|
9309
9324
|
if (!isPresent(this.palette)) {
|
|
9310
9325
|
return;
|
|
@@ -9485,7 +9500,8 @@ ColorPaletteComponent = ColorPaletteComponent_1 = __decorate([
|
|
|
9485
9500
|
ColorPaletteService,
|
|
9486
9501
|
ChangeDetectorRef,
|
|
9487
9502
|
Renderer2,
|
|
9488
|
-
LocalizationService
|
|
9503
|
+
LocalizationService,
|
|
9504
|
+
NgZone])
|
|
9489
9505
|
], ColorPaletteComponent);
|
|
9490
9506
|
|
|
9491
9507
|
/**
|
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: 1645175564,
|
|
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
|
};
|
|
@@ -2487,6 +2487,9 @@ var TextBoxDirective = /** @class */ (function () {
|
|
|
2487
2487
|
__decorate([
|
|
2488
2488
|
HostBinding('class.k-textbox'),
|
|
2489
2489
|
HostBinding('class.k-input'),
|
|
2490
|
+
HostBinding('class.k-input-md'),
|
|
2491
|
+
HostBinding('class.k-rounded-md'),
|
|
2492
|
+
HostBinding('class.k-input-solid'),
|
|
2490
2493
|
__metadata("design:type", Boolean)
|
|
2491
2494
|
], TextBoxDirective.prototype, "hostClasses", void 0);
|
|
2492
2495
|
__decorate([
|
|
@@ -2719,6 +2722,9 @@ var TextAreaDirective = /** @class */ (function () {
|
|
|
2719
2722
|
__decorate([
|
|
2720
2723
|
HostBinding('class.k-textarea'),
|
|
2721
2724
|
HostBinding('class.k-input'),
|
|
2725
|
+
HostBinding('class.k-input-md'),
|
|
2726
|
+
HostBinding('class.k-rounded-md'),
|
|
2727
|
+
HostBinding('class.k-input-solid'),
|
|
2722
2728
|
__metadata("design:type", Boolean)
|
|
2723
2729
|
], TextAreaDirective.prototype, "elementClasses", void 0);
|
|
2724
2730
|
__decorate([
|
|
@@ -9102,13 +9108,14 @@ var serial$1 = 0;
|
|
|
9102
9108
|
* The ColorPalette is independently used by `kendo-colorpicker` and can be directly added to the page.
|
|
9103
9109
|
*/
|
|
9104
9110
|
var ColorPaletteComponent = /** @class */ (function () {
|
|
9105
|
-
function ColorPaletteComponent(host, service, cdr, renderer, localizationService) {
|
|
9111
|
+
function ColorPaletteComponent(host, service, cdr, renderer, localizationService, ngZone) {
|
|
9106
9112
|
var _this = this;
|
|
9107
9113
|
this.host = host;
|
|
9108
9114
|
this.service = service;
|
|
9109
9115
|
this.cdr = cdr;
|
|
9110
9116
|
this.renderer = renderer;
|
|
9111
9117
|
this.localizationService = localizationService;
|
|
9118
|
+
this.ngZone = ngZone;
|
|
9112
9119
|
/**
|
|
9113
9120
|
* @hidden
|
|
9114
9121
|
*/
|
|
@@ -9304,11 +9311,16 @@ var ColorPaletteComponent = /** @class */ (function () {
|
|
|
9304
9311
|
var defaultPreset = (this.format !== 'name') ? DEFAULT_PRESET$1 : DEFAULT_ACCESSIBLE_PRESET$1;
|
|
9305
9312
|
this.palette = this.palette || defaultPreset;
|
|
9306
9313
|
this.setRows();
|
|
9307
|
-
this.focusedCell = this.service.getCellCoordsFor(this.value);
|
|
9308
9314
|
}
|
|
9309
9315
|
};
|
|
9310
9316
|
ColorPaletteComponent.prototype.ngAfterViewInit = function () {
|
|
9317
|
+
var _this = this;
|
|
9311
9318
|
this.setHostElementAriaLabel();
|
|
9319
|
+
if (this.value) {
|
|
9320
|
+
this.ngZone.onStable.pipe(take(1)).subscribe(function () {
|
|
9321
|
+
_this.selectCell(_this.value);
|
|
9322
|
+
});
|
|
9323
|
+
}
|
|
9312
9324
|
};
|
|
9313
9325
|
ColorPaletteComponent.prototype.ngOnDestroy = function () {
|
|
9314
9326
|
if (this.dynamicRTLSubscription) {
|
|
@@ -9320,7 +9332,7 @@ var ColorPaletteComponent = /** @class */ (function () {
|
|
|
9320
9332
|
this.setRows();
|
|
9321
9333
|
}
|
|
9322
9334
|
if (changes.palette || changes.value || changes.columns) {
|
|
9323
|
-
this.
|
|
9335
|
+
this.selectCell(this.value);
|
|
9324
9336
|
this.setHostElementAriaLabel();
|
|
9325
9337
|
}
|
|
9326
9338
|
};
|
|
@@ -9382,7 +9394,7 @@ var ColorPaletteComponent = /** @class */ (function () {
|
|
|
9382
9394
|
*/
|
|
9383
9395
|
ColorPaletteComponent.prototype.writeValue = function (value) {
|
|
9384
9396
|
this.value = value;
|
|
9385
|
-
this.
|
|
9397
|
+
this.selectCell(value);
|
|
9386
9398
|
};
|
|
9387
9399
|
/**
|
|
9388
9400
|
* @hidden
|
|
@@ -9433,6 +9445,10 @@ var ColorPaletteComponent = /** @class */ (function () {
|
|
|
9433
9445
|
this.focusInComponent = false;
|
|
9434
9446
|
this.focusedCell = this.selectedCell;
|
|
9435
9447
|
};
|
|
9448
|
+
ColorPaletteComponent.prototype.selectCell = function (value) {
|
|
9449
|
+
this.selectedCell = this.service.getCellCoordsFor(value);
|
|
9450
|
+
this.focusedCell = this.selectedCell;
|
|
9451
|
+
};
|
|
9436
9452
|
ColorPaletteComponent.prototype.setRows = function () {
|
|
9437
9453
|
if (!isPresent(this.palette)) {
|
|
9438
9454
|
return;
|
|
@@ -9582,7 +9598,8 @@ var ColorPaletteComponent = /** @class */ (function () {
|
|
|
9582
9598
|
ColorPaletteService,
|
|
9583
9599
|
ChangeDetectorRef,
|
|
9584
9600
|
Renderer2,
|
|
9585
|
-
LocalizationService
|
|
9601
|
+
LocalizationService,
|
|
9602
|
+
NgZone])
|
|
9586
9603
|
], ColorPaletteComponent);
|
|
9587
9604
|
return ColorPaletteComponent;
|
|
9588
9605
|
}());
|
|
@@ -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: 1645175564,
|
|
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
|
};
|
|
@@ -222,6 +222,9 @@ var TextAreaDirective = /** @class */ (function () {
|
|
|
222
222
|
tslib_1.__decorate([
|
|
223
223
|
core_1.HostBinding('class.k-textarea'),
|
|
224
224
|
core_1.HostBinding('class.k-input'),
|
|
225
|
+
core_1.HostBinding('class.k-input-md'),
|
|
226
|
+
core_1.HostBinding('class.k-rounded-md'),
|
|
227
|
+
core_1.HostBinding('class.k-input-solid'),
|
|
225
228
|
tslib_1.__metadata("design:type", Boolean)
|
|
226
229
|
], TextAreaDirective.prototype, "elementClasses", void 0);
|
|
227
230
|
tslib_1.__decorate([
|
|
@@ -102,6 +102,9 @@ var TextBoxDirective = /** @class */ (function () {
|
|
|
102
102
|
tslib_1.__decorate([
|
|
103
103
|
core_1.HostBinding('class.k-textbox'),
|
|
104
104
|
core_1.HostBinding('class.k-input'),
|
|
105
|
+
core_1.HostBinding('class.k-input-md'),
|
|
106
|
+
core_1.HostBinding('class.k-rounded-md'),
|
|
107
|
+
core_1.HostBinding('class.k-input-solid'),
|
|
105
108
|
tslib_1.__metadata("design:type", Boolean)
|
|
106
109
|
], TextBoxDirective.prototype, "hostClasses", void 0);
|
|
107
110
|
tslib_1.__decorate([
|