@progress/kendo-angular-inputs 8.0.2 → 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.
@@ -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: 1643126640,
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
  };
@@ -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());
@@ -464,7 +464,7 @@ let TextBoxComponent = TextBoxComponent_1 = class TextBoxComponent {
464
464
  get successIconClasses() {
465
465
  return this.successIcon
466
466
  ? `${this.successIcon}`
467
- : `k-validation-icon k-icon k-i-check`;
467
+ : `k-input-validation-icon k-icon k-i-check`;
468
468
  }
469
469
  /**
470
470
  * @hidden
@@ -472,7 +472,7 @@ let TextBoxComponent = TextBoxComponent_1 = class TextBoxComponent {
472
472
  get errorIconClasses() {
473
473
  return this.errorIcon
474
474
  ? `${this.errorIcon}`
475
- : `k-validation-icon k-icon k-i-warning`;
475
+ : `k-input-validation-icon k-icon k-i-warning`;
476
476
  }
477
477
  /**
478
478
  * @hidden
@@ -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: 1643126640,
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
  };
@@ -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());
@@ -6183,7 +6183,7 @@ let TextBoxComponent = TextBoxComponent_1 = class TextBoxComponent {
6183
6183
  get successIconClasses() {
6184
6184
  return this.successIcon
6185
6185
  ? `${this.successIcon}`
6186
- : `k-validation-icon k-icon k-i-check`;
6186
+ : `k-input-validation-icon k-icon k-i-check`;
6187
6187
  }
6188
6188
  /**
6189
6189
  * @hidden
@@ -6191,7 +6191,7 @@ let TextBoxComponent = TextBoxComponent_1 = class TextBoxComponent {
6191
6191
  get errorIconClasses() {
6192
6192
  return this.errorIcon
6193
6193
  ? `${this.errorIcon}`
6194
- : `k-validation-icon k-icon k-i-warning`;
6194
+ : `k-input-validation-icon k-icon k-i-warning`;
6195
6195
  }
6196
6196
  /**
6197
6197
  * @hidden
@@ -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.focusedCell = this.service.getCellCoordsFor(this.value);
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.focusedCell = this.service.getCellCoordsFor(this.value);
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
  /**
@@ -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: 1643126640,
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
  };
@@ -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(); });
@@ -6377,7 +6378,7 @@ var TextBoxComponent = /** @class */ (function () {
6377
6378
  get: function () {
6378
6379
  return this.successIcon
6379
6380
  ? "" + this.successIcon
6380
- : "k-validation-icon k-icon k-i-check";
6381
+ : "k-input-validation-icon k-icon k-i-check";
6381
6382
  },
6382
6383
  enumerable: true,
6383
6384
  configurable: true
@@ -6389,7 +6390,7 @@ var TextBoxComponent = /** @class */ (function () {
6389
6390
  get: function () {
6390
6391
  return this.errorIcon
6391
6392
  ? "" + this.errorIcon
6392
- : "k-validation-icon k-icon k-i-warning";
6393
+ : "k-input-validation-icon k-icon k-i-warning";
6393
6394
  },
6394
6395
  enumerable: true,
6395
6396
  configurable: true
@@ -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.focusedCell = this.service.getCellCoordsFor(this.value);
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.focusedCell = this.service.getCellCoordsFor(this.value);
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.focusedCell = this.service.getCellCoordsFor(this.value);
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.focusedCell = this.service.getCellCoordsFor(this.value);
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: 1643126640,
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
  };
@@ -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(); });
@@ -491,7 +491,7 @@ var TextBoxComponent = /** @class */ (function () {
491
491
  get: function () {
492
492
  return this.successIcon
493
493
  ? "" + this.successIcon
494
- : "k-validation-icon k-icon k-i-check";
494
+ : "k-input-validation-icon k-icon k-i-check";
495
495
  },
496
496
  enumerable: true,
497
497
  configurable: true
@@ -503,7 +503,7 @@ var TextBoxComponent = /** @class */ (function () {
503
503
  get: function () {
504
504
  return this.errorIcon
505
505
  ? "" + this.errorIcon
506
- : "k-validation-icon k-icon k-i-warning";
506
+ : "k-input-validation-icon k-icon k-i-warning";
507
507
  },
508
508
  enumerable: true,
509
509
  configurable: true