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

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: 1643126009,
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
  };
@@ -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,