@progress/kendo-angular-inputs 8.0.2-dev.202201241505 → 8.0.3-dev.202202071301

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 var packageMetadata = {
9
9
  name: '@progress/kendo-angular-inputs',
10
10
  productName: 'Kendo UI for Angular',
11
11
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
12
- publishDate: 1643036475,
12
+ publishDate: 1644238730,
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
  };
@@ -9,7 +9,7 @@ import { hasObservers, KendoInput, isDocumentAvailable } from '@progress/kendo-a
9
9
  import { requiresZoneOnBlur } from '../common/utils';
10
10
  import { RTL } from '@progress/kendo-angular-l10n';
11
11
  import { fromEvent } from 'rxjs';
12
- import { debounceTime } from 'rxjs/operators';
12
+ import { debounceTime, take } from 'rxjs/operators';
13
13
  /**
14
14
  * Represents the [Kendo UI TextArea directive for the Inputs components for Angular]({% slug overview_textarea %}).
15
15
  * Provides floating labels to `textarea` elements.
@@ -127,6 +127,7 @@ var TextAreaDirective = /** @class */ (function () {
127
127
  this.control = this.injector.get(NgControl, null);
128
128
  };
129
129
  TextAreaDirective.prototype.ngOnChanges = function (changes) {
130
+ var _this = this;
130
131
  var element = this.element.nativeElement;
131
132
  if (changes.value) {
132
133
  this.elementValue = this.value;
@@ -142,7 +143,7 @@ var TextAreaDirective = /** @class */ (function () {
142
143
  element.style.height = this.initialHeight + "px";
143
144
  }
144
145
  }
145
- this.resize();
146
+ this.zone.onStable.pipe(take(1)).subscribe(function () { return _this.resize(); });
146
147
  };
147
148
  TextAreaDirective.prototype.ngOnDestroy = function () {
148
149
  this.listeners.forEach(function (listener) { return listener(); });
@@ -26,7 +26,7 @@ var TextAreaSuffixComponent = /** @class */ (function () {
26
26
  this.hostClass = true;
27
27
  }
28
28
  tslib_1.__decorate([
29
- HostBinding('class.k-textarea-suffix'),
29
+ HostBinding('class.k-input-suffix'),
30
30
  tslib_1.__metadata("design:type", Boolean)
31
31
  ], TextAreaSuffixComponent.prototype, "hostClass", void 0);
32
32
  TextAreaSuffixComponent = tslib_1.__decorate([
@@ -295,6 +295,7 @@ var TextAreaComponent = /** @class */ (function (_super) {
295
295
  tabbing = false;
296
296
  }
297
297
  }));
298
+ _this.handleFlow();
298
299
  });
299
300
  var stylingInputs = ['size', 'rounded', 'fillMode'];
300
301
  stylingInputs.forEach(function (input) {
@@ -320,6 +321,9 @@ var TextAreaComponent = /** @class */ (function (_super) {
320
321
  TextAreaComponent.prototype.ngOnChanges = function (changes) {
321
322
  var hostElement = this.hostElement.nativeElement;
322
323
  var element = this.input.nativeElement;
324
+ if (changes.flow) {
325
+ this.handleFlow();
326
+ }
323
327
  if (changes.resizable) {
324
328
  if (this.resizable === 'auto') {
325
329
  this.initialHeight = element.offsetHeight;
@@ -483,6 +487,16 @@ var TextAreaComponent = /** @class */ (function (_super) {
483
487
  this.renderer.addClass(elem, classes.toAdd);
484
488
  }
485
489
  };
490
+ TextAreaComponent.prototype.handleFlow = function () {
491
+ var isVertical = this.flow === 'vertical';
492
+ var hostElement = this.hostElement.nativeElement;
493
+ var element = this.input.nativeElement;
494
+ var suffix = hostElement.children[1];
495
+ this.renderer.setStyle(element, 'flex', isVertical ? 'none' : '1');
496
+ if (suffix) {
497
+ this.renderer.setStyle(suffix, 'align-items', isVertical ? 'center' : 'start');
498
+ }
499
+ };
486
500
  var TextAreaComponent_1;
487
501
  tslib_1.__decorate([
488
502
  Input(),
@@ -494,12 +508,12 @@ var TextAreaComponent = /** @class */ (function (_super) {
494
508
  tslib_1.__metadata("design:type", Boolean)
495
509
  ], TextAreaComponent.prototype, "hostClasses", void 0);
496
510
  tslib_1.__decorate([
497
- HostBinding('class.k-flex-col'),
511
+ HostBinding('class.\!k-flex-col'),
498
512
  tslib_1.__metadata("design:type", Boolean),
499
513
  tslib_1.__metadata("design:paramtypes", [])
500
514
  ], TextAreaComponent.prototype, "flowCol", null);
501
515
  tslib_1.__decorate([
502
- HostBinding('class.k-flex-row'),
516
+ HostBinding('class.\!k-flex-row'),
503
517
  tslib_1.__metadata("design:type", Boolean),
504
518
  tslib_1.__metadata("design:paramtypes", [])
505
519
  ], TextAreaComponent.prototype, "flowRow", null);
@@ -574,7 +588,7 @@ var TextAreaComponent = /** @class */ (function (_super) {
574
588
  ],
575
589
  selector: 'kendo-textarea',
576
590
  template: "\n <textarea\n #input\n [attr.aria-multiline]=\"true\"\n [attr.aria-disabled]=\"disabled ? true : undefined\"\n [attr.aria-readonly]=\"readonly ? true : undefined\"\n class=\"k-input-inner\"\n [ngClass]=\"resizableClass\"\n [id]=\"focusableId\"\n [value]=\"value\"\n [attr.placeholder]=\"placeholder\"\n [disabled]=\"disabled\"\n [readonly]=\"readonly\"\n [attr.rows]=\"rows\"\n [attr.cols]=\"cols\"\n [attr.tabindex]=\"tabIndex\"\n [attr.title]=\"title\"\n [attr.maxlength]=\"maxlength\"\n [kendoEventsOutsideAngular]=\"{\n focus: handleInputFocus,\n blur: handleInputBlur,\n input: handleInput}\">\n </textarea>\n <ng-content select=\"kendo-textarea-suffix\"></ng-content>\n ",
577
- styles: ["\n :host(.k-flex-col) {\n flex-direction: column !important;\n }\n :host(.k-flex-row) {\n flex-direction: row !important;\n }\n "]
591
+ styles: ["\n :host {\n display: inline-flex;\n }\n "]
578
592
  }),
579
593
  tslib_1.__metadata("design:paramtypes", [LocalizationService,
580
594
  NgZone,
@@ -489,7 +489,7 @@ var TextBoxComponent = /** @class */ (function () {
489
489
  get: function () {
490
490
  return this.successIcon
491
491
  ? "" + this.successIcon
492
- : "k-validation-icon k-icon k-i-check";
492
+ : "k-input-validation-icon k-icon k-i-check";
493
493
  },
494
494
  enumerable: true,
495
495
  configurable: true
@@ -501,7 +501,7 @@ var TextBoxComponent = /** @class */ (function () {
501
501
  get: function () {
502
502
  return this.errorIcon
503
503
  ? "" + this.errorIcon
504
- : "k-validation-icon k-icon k-i-warning";
504
+ : "k-input-validation-icon k-icon k-i-warning";
505
505
  },
506
506
  enumerable: true,
507
507
  configurable: true