@progress/kendo-angular-inputs 8.0.7 → 8.0.8-dev.202203101143
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 +2 -2
- package/dist/cdn/main.js +1 -1
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/textarea/textarea.component.js +5 -7
- package/dist/es/textbox/textbox.component.js +7 -1
- package/dist/es2015/index.metadata.json +1 -1
- package/dist/es2015/package-metadata.js +1 -1
- package/dist/es2015/textarea/textarea.component.js +5 -11
- package/dist/es2015/textbox/textbox.component.js +7 -1
- package/dist/fesm2015/index.js +13 -13
- package/dist/fesm5/index.js +13 -9
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/textarea/textarea.component.js +5 -7
- package/dist/npm/textbox/textbox.component.js +7 -1
- package/dist/systemjs/kendo-angular-inputs.js +1 -1
- package/package.json +2 -2
|
@@ -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:
|
|
12
|
+
publishDate: 1646912457,
|
|
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
|
};
|
|
@@ -326,11 +326,11 @@ var TextAreaComponent = /** @class */ (function (_super) {
|
|
|
326
326
|
}
|
|
327
327
|
if (changes.resizable) {
|
|
328
328
|
if (this.resizable === 'auto') {
|
|
329
|
+
this.renderer.removeClass(element, '\!k-overflow-y-auto');
|
|
329
330
|
this.initialHeight = element.offsetHeight;
|
|
330
331
|
}
|
|
331
332
|
else {
|
|
332
|
-
this.renderer.
|
|
333
|
-
this.renderer.setStyle(element, 'resize', 'both');
|
|
333
|
+
this.renderer.addClass(element, '\!k-overflow-y-auto');
|
|
334
334
|
element.style.height = this.initialHeight + "px";
|
|
335
335
|
}
|
|
336
336
|
}
|
|
@@ -432,7 +432,6 @@ var TextAreaComponent = /** @class */ (function (_super) {
|
|
|
432
432
|
return;
|
|
433
433
|
}
|
|
434
434
|
var element = this.input.nativeElement;
|
|
435
|
-
this.renderer.setStyle(element, 'overflow-y', 'hidden');
|
|
436
435
|
this.renderer.setStyle(element, 'height', this.initialHeight + "px");
|
|
437
436
|
var scrollHeight = element.scrollHeight;
|
|
438
437
|
if (scrollHeight > this.initialHeight) {
|
|
@@ -492,9 +491,9 @@ var TextAreaComponent = /** @class */ (function (_super) {
|
|
|
492
491
|
var hostElement = this.hostElement.nativeElement;
|
|
493
492
|
var element = this.input.nativeElement;
|
|
494
493
|
var suffix = hostElement.children[1];
|
|
495
|
-
this.renderer
|
|
494
|
+
this.renderer[isVertical ? 'addClass' : 'removeClass'](element, '\!k-flex-none');
|
|
496
495
|
if (suffix) {
|
|
497
|
-
this.renderer
|
|
496
|
+
this.renderer[isVertical ? 'removeClass' : 'addClass'](suffix, '\!k-align-items-start');
|
|
498
497
|
}
|
|
499
498
|
};
|
|
500
499
|
var TextAreaComponent_1;
|
|
@@ -587,8 +586,7 @@ var TextAreaComponent = /** @class */ (function (_super) {
|
|
|
587
586
|
{ provide: KendoInput, useExisting: forwardRef(function () { return TextAreaComponent_1; }) }
|
|
588
587
|
],
|
|
589
588
|
selector: 'kendo-textarea',
|
|
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 "
|
|
591
|
-
styles: ["\n :host {\n display: inline-flex;\n }\n "]
|
|
589
|
+
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 "
|
|
592
590
|
}),
|
|
593
591
|
tslib_1.__metadata("design:paramtypes", [LocalizationService,
|
|
594
592
|
NgZone,
|
|
@@ -202,8 +202,14 @@ var TextBoxComponent = /** @class */ (function () {
|
|
|
202
202
|
* @hidden
|
|
203
203
|
*/
|
|
204
204
|
this.handleInput = function (ev) {
|
|
205
|
-
var
|
|
205
|
+
var target = ev.target;
|
|
206
|
+
var isBrowserSafari = isSafari(navigator.userAgent);
|
|
207
|
+
var incomingValue = isBrowserSafari && isJapanese(target.value) ? ev.data : target.value;
|
|
208
|
+
var _a = [target.selectionStart, target.selectionEnd], caretStart = _a[0], caretEnd = _a[1];
|
|
206
209
|
_this.updateValue(incomingValue);
|
|
210
|
+
if (isBrowserSafari) {
|
|
211
|
+
target.setSelectionRange(caretStart, caretEnd);
|
|
212
|
+
}
|
|
207
213
|
};
|
|
208
214
|
this.ngChange = function (_) { };
|
|
209
215
|
this.ngTouched = function () { };
|