@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.
- package/dist/cdn/js/kendo-angular-inputs.js +1 -1
- package/dist/cdn/main.js +1 -1
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/shared/textarea.directive.js +3 -2
- package/dist/es/textarea/textarea-suffix.component.js +1 -1
- package/dist/es/textarea/textarea.component.js +17 -3
- package/dist/es/textbox/textbox.component.js +2 -2
- package/dist/es2015/index.metadata.json +1 -1
- package/dist/es2015/package-metadata.js +1 -1
- package/dist/es2015/shared/textarea.directive.js +2 -2
- package/dist/es2015/textarea/textarea-suffix.component.js +1 -1
- package/dist/es2015/textarea/textarea.component.d.ts +1 -0
- package/dist/es2015/textarea/textarea.component.js +18 -7
- package/dist/es2015/textbox/textbox.component.js +2 -2
- package/dist/fesm2015/index.js +23 -12
- package/dist/fesm5/index.js +23 -8
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/shared/textarea.directive.js +2 -1
- package/dist/npm/textarea/textarea-suffix.component.js +1 -1
- package/dist/npm/textarea/textarea.component.js +17 -3
- package/dist/npm/textbox/textbox.component.js +2 -2
- 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: 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
|
};
|
|
@@ -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());
|
|
@@ -44,7 +44,7 @@ let TextAreaSuffixComponent = class TextAreaSuffixComponent {
|
|
|
44
44
|
}
|
|
45
45
|
};
|
|
46
46
|
tslib_1.__decorate([
|
|
47
|
-
HostBinding('class.k-
|
|
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([
|
|
@@ -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
|
|
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
|
|
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
|
|
564
|
-
|
|
565
|
-
}
|
|
566
|
-
:host(.k-flex-row) {
|
|
567
|
-
flex-direction: row !important;
|
|
577
|
+
:host {
|
|
578
|
+
display: inline-flex;
|
|
568
579
|
}
|
|
569
580
|
`]
|
|
570
581
|
}),
|
|
@@ -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
|
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: 1644238730,
|
|
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
|
|
@@ -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
|
|
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
|
|
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
|
|
7335
|
-
|
|
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-
|
|
7401
|
+
HostBinding('class.k-input-suffix'),
|
|
7391
7402
|
__metadata("design:type", Boolean)
|
|
7392
7403
|
], TextAreaSuffixComponent.prototype, "hostClass", void 0);
|
|
7393
7404
|
TextAreaSuffixComponent = __decorate([
|
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: 1644238730,
|
|
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
|
|
@@ -7252,6 +7253,7 @@ var TextAreaComponent = /** @class */ (function (_super) {
|
|
|
7252
7253
|
tabbing = false;
|
|
7253
7254
|
}
|
|
7254
7255
|
}));
|
|
7256
|
+
_this.handleFlow();
|
|
7255
7257
|
});
|
|
7256
7258
|
var stylingInputs = ['size', 'rounded', 'fillMode'];
|
|
7257
7259
|
stylingInputs.forEach(function (input) {
|
|
@@ -7277,6 +7279,9 @@ var TextAreaComponent = /** @class */ (function (_super) {
|
|
|
7277
7279
|
TextAreaComponent.prototype.ngOnChanges = function (changes) {
|
|
7278
7280
|
var hostElement = this.hostElement.nativeElement;
|
|
7279
7281
|
var element = this.input.nativeElement;
|
|
7282
|
+
if (changes.flow) {
|
|
7283
|
+
this.handleFlow();
|
|
7284
|
+
}
|
|
7280
7285
|
if (changes.resizable) {
|
|
7281
7286
|
if (this.resizable === 'auto') {
|
|
7282
7287
|
this.initialHeight = element.offsetHeight;
|
|
@@ -7440,6 +7445,16 @@ var TextAreaComponent = /** @class */ (function (_super) {
|
|
|
7440
7445
|
this.renderer.addClass(elem, classes.toAdd);
|
|
7441
7446
|
}
|
|
7442
7447
|
};
|
|
7448
|
+
TextAreaComponent.prototype.handleFlow = function () {
|
|
7449
|
+
var isVertical = this.flow === 'vertical';
|
|
7450
|
+
var hostElement = this.hostElement.nativeElement;
|
|
7451
|
+
var element = this.input.nativeElement;
|
|
7452
|
+
var suffix = hostElement.children[1];
|
|
7453
|
+
this.renderer.setStyle(element, 'flex', isVertical ? 'none' : '1');
|
|
7454
|
+
if (suffix) {
|
|
7455
|
+
this.renderer.setStyle(suffix, 'align-items', isVertical ? 'center' : 'start');
|
|
7456
|
+
}
|
|
7457
|
+
};
|
|
7443
7458
|
var TextAreaComponent_1;
|
|
7444
7459
|
__decorate([
|
|
7445
7460
|
Input(),
|
|
@@ -7451,12 +7466,12 @@ var TextAreaComponent = /** @class */ (function (_super) {
|
|
|
7451
7466
|
__metadata("design:type", Boolean)
|
|
7452
7467
|
], TextAreaComponent.prototype, "hostClasses", void 0);
|
|
7453
7468
|
__decorate([
|
|
7454
|
-
HostBinding('class
|
|
7469
|
+
HostBinding('class.\!k-flex-col'),
|
|
7455
7470
|
__metadata("design:type", Boolean),
|
|
7456
7471
|
__metadata("design:paramtypes", [])
|
|
7457
7472
|
], TextAreaComponent.prototype, "flowCol", null);
|
|
7458
7473
|
__decorate([
|
|
7459
|
-
HostBinding('class
|
|
7474
|
+
HostBinding('class.\!k-flex-row'),
|
|
7460
7475
|
__metadata("design:type", Boolean),
|
|
7461
7476
|
__metadata("design:paramtypes", [])
|
|
7462
7477
|
], TextAreaComponent.prototype, "flowRow", null);
|
|
@@ -7531,7 +7546,7 @@ var TextAreaComponent = /** @class */ (function (_super) {
|
|
|
7531
7546
|
],
|
|
7532
7547
|
selector: 'kendo-textarea',
|
|
7533
7548
|
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
|
|
7549
|
+
styles: ["\n :host {\n display: inline-flex;\n }\n "]
|
|
7535
7550
|
}),
|
|
7536
7551
|
__metadata("design:paramtypes", [LocalizationService,
|
|
7537
7552
|
NgZone,
|
|
@@ -7565,7 +7580,7 @@ var TextAreaSuffixComponent = /** @class */ (function () {
|
|
|
7565
7580
|
this.hostClass = true;
|
|
7566
7581
|
}
|
|
7567
7582
|
__decorate([
|
|
7568
|
-
HostBinding('class.k-
|
|
7583
|
+
HostBinding('class.k-input-suffix'),
|
|
7569
7584
|
__metadata("design:type", Boolean)
|
|
7570
7585
|
], TextAreaSuffixComponent.prototype, "hostClass", void 0);
|
|
7571
7586
|
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:
|
|
14
|
+
publishDate: 1644238730,
|
|
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(); });
|
|
@@ -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-
|
|
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
|
|
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
|
|
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
|
|
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,
|
|
@@ -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
|