@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 const 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
  };
@@ -44,7 +44,7 @@ let TextAreaSuffixComponent = class TextAreaSuffixComponent {
44
44
  }
45
45
  };
46
46
  tslib_1.__decorate([
47
- HostBinding('class.k-textarea-suffix'),
47
+ HostBinding('class.k-input-suffix'),
48
48
  tslib_1.__metadata("design:type", Boolean)
49
49
  ], TextAreaSuffixComponent.prototype, "hostClass", void 0);
50
50
  TextAreaSuffixComponent = tslib_1.__decorate([
@@ -210,4 +210,5 @@ export declare class TextAreaComponent extends TextFieldsBase implements Control
210
210
  private setSelection;
211
211
  private selectAll;
212
212
  private handleClasses;
213
+ private handleFlow;
213
214
  }
@@ -268,6 +268,7 @@ let TextAreaComponent = TextAreaComponent_1 = class TextAreaComponent extends Te
268
268
  tabbing = false;
269
269
  }
270
270
  }));
271
+ this.handleFlow();
271
272
  });
272
273
  const stylingInputs = ['size', 'rounded', 'fillMode'];
273
274
  stylingInputs.forEach(input => {
@@ -291,6 +292,9 @@ let TextAreaComponent = TextAreaComponent_1 = class TextAreaComponent extends Te
291
292
  ngOnChanges(changes) {
292
293
  const hostElement = this.hostElement.nativeElement;
293
294
  const element = this.input.nativeElement;
295
+ if (changes.flow) {
296
+ this.handleFlow();
297
+ }
294
298
  if (changes.resizable) {
295
299
  if (this.resizable === 'auto') {
296
300
  this.initialHeight = element.offsetHeight;
@@ -444,6 +448,16 @@ let TextAreaComponent = TextAreaComponent_1 = class TextAreaComponent extends Te
444
448
  this.renderer.addClass(elem, classes.toAdd);
445
449
  }
446
450
  }
451
+ handleFlow() {
452
+ const isVertical = this.flow === 'vertical';
453
+ const hostElement = this.hostElement.nativeElement;
454
+ const element = this.input.nativeElement;
455
+ const suffix = hostElement.children[1];
456
+ this.renderer.setStyle(element, 'flex', isVertical ? 'none' : '1');
457
+ if (suffix) {
458
+ this.renderer.setStyle(suffix, 'align-items', isVertical ? 'center' : 'start');
459
+ }
460
+ }
447
461
  };
448
462
  tslib_1.__decorate([
449
463
  Input(),
@@ -455,12 +469,12 @@ tslib_1.__decorate([
455
469
  tslib_1.__metadata("design:type", Boolean)
456
470
  ], TextAreaComponent.prototype, "hostClasses", void 0);
457
471
  tslib_1.__decorate([
458
- HostBinding('class.k-flex-col'),
472
+ HostBinding('class.\!k-flex-col'),
459
473
  tslib_1.__metadata("design:type", Boolean),
460
474
  tslib_1.__metadata("design:paramtypes", [])
461
475
  ], TextAreaComponent.prototype, "flowCol", null);
462
476
  tslib_1.__decorate([
463
- HostBinding('class.k-flex-row'),
477
+ HostBinding('class.\!k-flex-row'),
464
478
  tslib_1.__metadata("design:type", Boolean),
465
479
  tslib_1.__metadata("design:paramtypes", [])
466
480
  ], TextAreaComponent.prototype, "flowRow", null);
@@ -560,11 +574,8 @@ TextAreaComponent = TextAreaComponent_1 = tslib_1.__decorate([
560
574
  <ng-content select="kendo-textarea-suffix"></ng-content>
561
575
  `,
562
576
  styles: [`
563
- :host(.k-flex-col) {
564
- flex-direction: column !important;
565
- }
566
- :host(.k-flex-row) {
567
- flex-direction: row !important;
577
+ :host {
578
+ display: inline-flex;
568
579
  }
569
580
  `]
570
581
  }),
@@ -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: 1643036475,
484
+ publishDate: 1643126009,
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
  };
@@ -7039,6 +7039,7 @@ let TextAreaComponent = TextAreaComponent_1 = class TextAreaComponent extends Te
7039
7039
  tabbing = false;
7040
7040
  }
7041
7041
  }));
7042
+ this.handleFlow();
7042
7043
  });
7043
7044
  const stylingInputs = ['size', 'rounded', 'fillMode'];
7044
7045
  stylingInputs.forEach(input => {
@@ -7062,6 +7063,9 @@ let TextAreaComponent = TextAreaComponent_1 = class TextAreaComponent extends Te
7062
7063
  ngOnChanges(changes) {
7063
7064
  const hostElement = this.hostElement.nativeElement;
7064
7065
  const element = this.input.nativeElement;
7066
+ if (changes.flow) {
7067
+ this.handleFlow();
7068
+ }
7065
7069
  if (changes.resizable) {
7066
7070
  if (this.resizable === 'auto') {
7067
7071
  this.initialHeight = element.offsetHeight;
@@ -7215,6 +7219,16 @@ let TextAreaComponent = TextAreaComponent_1 = class TextAreaComponent extends Te
7215
7219
  this.renderer.addClass(elem, classes.toAdd);
7216
7220
  }
7217
7221
  }
7222
+ handleFlow() {
7223
+ const isVertical = this.flow === 'vertical';
7224
+ const hostElement = this.hostElement.nativeElement;
7225
+ const element = this.input.nativeElement;
7226
+ const suffix = hostElement.children[1];
7227
+ this.renderer.setStyle(element, 'flex', isVertical ? 'none' : '1');
7228
+ if (suffix) {
7229
+ this.renderer.setStyle(suffix, 'align-items', isVertical ? 'center' : 'start');
7230
+ }
7231
+ }
7218
7232
  };
7219
7233
  __decorate([
7220
7234
  Input(),
@@ -7226,12 +7240,12 @@ __decorate([
7226
7240
  __metadata("design:type", Boolean)
7227
7241
  ], TextAreaComponent.prototype, "hostClasses", void 0);
7228
7242
  __decorate([
7229
- HostBinding('class.k-flex-col'),
7243
+ HostBinding('class.\!k-flex-col'),
7230
7244
  __metadata("design:type", Boolean),
7231
7245
  __metadata("design:paramtypes", [])
7232
7246
  ], TextAreaComponent.prototype, "flowCol", null);
7233
7247
  __decorate([
7234
- HostBinding('class.k-flex-row'),
7248
+ HostBinding('class.\!k-flex-row'),
7235
7249
  __metadata("design:type", Boolean),
7236
7250
  __metadata("design:paramtypes", [])
7237
7251
  ], TextAreaComponent.prototype, "flowRow", null);
@@ -7331,11 +7345,8 @@ TextAreaComponent = TextAreaComponent_1 = __decorate([
7331
7345
  <ng-content select="kendo-textarea-suffix"></ng-content>
7332
7346
  `,
7333
7347
  styles: [`
7334
- :host(.k-flex-col) {
7335
- flex-direction: column !important;
7336
- }
7337
- :host(.k-flex-row) {
7338
- flex-direction: row !important;
7348
+ :host {
7349
+ display: inline-flex;
7339
7350
  }
7340
7351
  `]
7341
7352
  }),
@@ -7387,7 +7398,7 @@ let TextAreaSuffixComponent = class TextAreaSuffixComponent {
7387
7398
  }
7388
7399
  };
7389
7400
  __decorate([
7390
- HostBinding('class.k-textarea-suffix'),
7401
+ HostBinding('class.k-input-suffix'),
7391
7402
  __metadata("design:type", Boolean)
7392
7403
  ], TextAreaSuffixComponent.prototype, "hostClass", void 0);
7393
7404
  TextAreaSuffixComponent = __decorate([
@@ -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: 1643036475,
517
+ publishDate: 1643126009,
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
  };
@@ -7252,6 +7252,7 @@ var TextAreaComponent = /** @class */ (function (_super) {
7252
7252
  tabbing = false;
7253
7253
  }
7254
7254
  }));
7255
+ _this.handleFlow();
7255
7256
  });
7256
7257
  var stylingInputs = ['size', 'rounded', 'fillMode'];
7257
7258
  stylingInputs.forEach(function (input) {
@@ -7277,6 +7278,9 @@ var TextAreaComponent = /** @class */ (function (_super) {
7277
7278
  TextAreaComponent.prototype.ngOnChanges = function (changes) {
7278
7279
  var hostElement = this.hostElement.nativeElement;
7279
7280
  var element = this.input.nativeElement;
7281
+ if (changes.flow) {
7282
+ this.handleFlow();
7283
+ }
7280
7284
  if (changes.resizable) {
7281
7285
  if (this.resizable === 'auto') {
7282
7286
  this.initialHeight = element.offsetHeight;
@@ -7440,6 +7444,16 @@ var TextAreaComponent = /** @class */ (function (_super) {
7440
7444
  this.renderer.addClass(elem, classes.toAdd);
7441
7445
  }
7442
7446
  };
7447
+ TextAreaComponent.prototype.handleFlow = function () {
7448
+ var isVertical = this.flow === 'vertical';
7449
+ var hostElement = this.hostElement.nativeElement;
7450
+ var element = this.input.nativeElement;
7451
+ var suffix = hostElement.children[1];
7452
+ this.renderer.setStyle(element, 'flex', isVertical ? 'none' : '1');
7453
+ if (suffix) {
7454
+ this.renderer.setStyle(suffix, 'align-items', isVertical ? 'center' : 'start');
7455
+ }
7456
+ };
7443
7457
  var TextAreaComponent_1;
7444
7458
  __decorate([
7445
7459
  Input(),
@@ -7451,12 +7465,12 @@ var TextAreaComponent = /** @class */ (function (_super) {
7451
7465
  __metadata("design:type", Boolean)
7452
7466
  ], TextAreaComponent.prototype, "hostClasses", void 0);
7453
7467
  __decorate([
7454
- HostBinding('class.k-flex-col'),
7468
+ HostBinding('class.\!k-flex-col'),
7455
7469
  __metadata("design:type", Boolean),
7456
7470
  __metadata("design:paramtypes", [])
7457
7471
  ], TextAreaComponent.prototype, "flowCol", null);
7458
7472
  __decorate([
7459
- HostBinding('class.k-flex-row'),
7473
+ HostBinding('class.\!k-flex-row'),
7460
7474
  __metadata("design:type", Boolean),
7461
7475
  __metadata("design:paramtypes", [])
7462
7476
  ], TextAreaComponent.prototype, "flowRow", null);
@@ -7531,7 +7545,7 @@ var TextAreaComponent = /** @class */ (function (_super) {
7531
7545
  ],
7532
7546
  selector: 'kendo-textarea',
7533
7547
  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 ",
7534
- styles: ["\n :host(.k-flex-col) {\n flex-direction: column !important;\n }\n :host(.k-flex-row) {\n flex-direction: row !important;\n }\n "]
7548
+ styles: ["\n :host {\n display: inline-flex;\n }\n "]
7535
7549
  }),
7536
7550
  __metadata("design:paramtypes", [LocalizationService,
7537
7551
  NgZone,
@@ -7565,7 +7579,7 @@ var TextAreaSuffixComponent = /** @class */ (function () {
7565
7579
  this.hostClass = true;
7566
7580
  }
7567
7581
  __decorate([
7568
- HostBinding('class.k-textarea-suffix'),
7582
+ HostBinding('class.k-input-suffix'),
7569
7583
  __metadata("design:type", Boolean)
7570
7584
  ], TextAreaSuffixComponent.prototype, "hostClass", void 0);
7571
7585
  TextAreaSuffixComponent = __decorate([
@@ -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: 1643036475,
14
+ publishDate: 1643126009,
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
  };
@@ -28,7 +28,7 @@ var TextAreaSuffixComponent = /** @class */ (function () {
28
28
  this.hostClass = true;
29
29
  }
30
30
  tslib_1.__decorate([
31
- core_1.HostBinding('class.k-textarea-suffix'),
31
+ core_1.HostBinding('class.k-input-suffix'),
32
32
  tslib_1.__metadata("design:type", Boolean)
33
33
  ], TextAreaSuffixComponent.prototype, "hostClass", void 0);
34
34
  TextAreaSuffixComponent = tslib_1.__decorate([
@@ -297,6 +297,7 @@ var TextAreaComponent = /** @class */ (function (_super) {
297
297
  tabbing = false;
298
298
  }
299
299
  }));
300
+ _this.handleFlow();
300
301
  });
301
302
  var stylingInputs = ['size', 'rounded', 'fillMode'];
302
303
  stylingInputs.forEach(function (input) {
@@ -322,6 +323,9 @@ var TextAreaComponent = /** @class */ (function (_super) {
322
323
  TextAreaComponent.prototype.ngOnChanges = function (changes) {
323
324
  var hostElement = this.hostElement.nativeElement;
324
325
  var element = this.input.nativeElement;
326
+ if (changes.flow) {
327
+ this.handleFlow();
328
+ }
325
329
  if (changes.resizable) {
326
330
  if (this.resizable === 'auto') {
327
331
  this.initialHeight = element.offsetHeight;
@@ -485,6 +489,16 @@ var TextAreaComponent = /** @class */ (function (_super) {
485
489
  this.renderer.addClass(elem, classes.toAdd);
486
490
  }
487
491
  };
492
+ TextAreaComponent.prototype.handleFlow = function () {
493
+ var isVertical = this.flow === 'vertical';
494
+ var hostElement = this.hostElement.nativeElement;
495
+ var element = this.input.nativeElement;
496
+ var suffix = hostElement.children[1];
497
+ this.renderer.setStyle(element, 'flex', isVertical ? 'none' : '1');
498
+ if (suffix) {
499
+ this.renderer.setStyle(suffix, 'align-items', isVertical ? 'center' : 'start');
500
+ }
501
+ };
488
502
  var TextAreaComponent_1;
489
503
  tslib_1.__decorate([
490
504
  core_1.Input(),
@@ -496,12 +510,12 @@ var TextAreaComponent = /** @class */ (function (_super) {
496
510
  tslib_1.__metadata("design:type", Boolean)
497
511
  ], TextAreaComponent.prototype, "hostClasses", void 0);
498
512
  tslib_1.__decorate([
499
- core_1.HostBinding('class.k-flex-col'),
513
+ core_1.HostBinding('class.\!k-flex-col'),
500
514
  tslib_1.__metadata("design:type", Boolean),
501
515
  tslib_1.__metadata("design:paramtypes", [])
502
516
  ], TextAreaComponent.prototype, "flowCol", null);
503
517
  tslib_1.__decorate([
504
- core_1.HostBinding('class.k-flex-row'),
518
+ core_1.HostBinding('class.\!k-flex-row'),
505
519
  tslib_1.__metadata("design:type", Boolean),
506
520
  tslib_1.__metadata("design:paramtypes", [])
507
521
  ], TextAreaComponent.prototype, "flowRow", null);
@@ -576,7 +590,7 @@ var TextAreaComponent = /** @class */ (function (_super) {
576
590
  ],
577
591
  selector: 'kendo-textarea',
578
592
  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 ",
579
- styles: ["\n :host(.k-flex-col) {\n flex-direction: column !important;\n }\n :host(.k-flex-row) {\n flex-direction: row !important;\n }\n "]
593
+ styles: ["\n :host {\n display: inline-flex;\n }\n "]
580
594
  }),
581
595
  tslib_1.__metadata("design:paramtypes", [kendo_angular_l10n_1.LocalizationService,
582
596
  core_1.NgZone,