@progress/kendo-angular-inputs 21.0.0-develop.4 → 21.0.0-develop.6
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/esm2022/package-metadata.mjs +2 -2
- package/esm2022/textarea/textarea.component.mjs +14 -0
- package/esm2022/textarea/textarea.directive.mjs +14 -0
- package/fesm2022/progress-kendo-angular-inputs.mjs +30 -2
- package/package.json +12 -12
- package/textarea/textarea.component.d.ts +2 -0
- package/textarea/textarea.directive.d.ts +2 -0
|
@@ -10,7 +10,7 @@ export const packageMetadata = {
|
|
|
10
10
|
productName: 'Kendo UI for Angular',
|
|
11
11
|
productCode: 'KENDOUIANGULAR',
|
|
12
12
|
productCodes: ['KENDOUIANGULAR'],
|
|
13
|
-
publishDate:
|
|
14
|
-
version: '21.0.0-develop.
|
|
13
|
+
publishDate: 1761825094,
|
|
14
|
+
version: '21.0.0-develop.6',
|
|
15
15
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
16
16
|
};
|
|
@@ -218,6 +218,7 @@ export class TextAreaComponent extends TextFieldsBase {
|
|
|
218
218
|
initialHeight;
|
|
219
219
|
maxResizableHeight;
|
|
220
220
|
resizeSubscription;
|
|
221
|
+
resizeObserver;
|
|
221
222
|
_size = 'medium';
|
|
222
223
|
_rounded = 'medium';
|
|
223
224
|
_fillMode = 'solid';
|
|
@@ -286,6 +287,7 @@ export class TextAreaComponent extends TextFieldsBase {
|
|
|
286
287
|
this.resizeSubscription = fromEvent(window, 'resize')
|
|
287
288
|
.pipe((debounceTime(50)))
|
|
288
289
|
.subscribe(() => this.resize());
|
|
290
|
+
this.attachResizeObserver();
|
|
289
291
|
}
|
|
290
292
|
if (this.hostElement) {
|
|
291
293
|
this.renderer.removeAttribute(this.hostElement.nativeElement, "tabindex");
|
|
@@ -359,6 +361,9 @@ export class TextAreaComponent extends TextFieldsBase {
|
|
|
359
361
|
if (this.resizeSubscription) {
|
|
360
362
|
this.resizeSubscription.unsubscribe();
|
|
361
363
|
}
|
|
364
|
+
if (this.resizeObserver) {
|
|
365
|
+
this.resizeObserver.disconnect();
|
|
366
|
+
}
|
|
362
367
|
}
|
|
363
368
|
/**
|
|
364
369
|
* @hidden
|
|
@@ -459,6 +464,15 @@ export class TextAreaComponent extends TextFieldsBase {
|
|
|
459
464
|
this.isFocused = false;
|
|
460
465
|
this.focusChangedProgrammatically = false;
|
|
461
466
|
}
|
|
467
|
+
attachResizeObserver() {
|
|
468
|
+
if (typeof ResizeObserver === 'undefined' || !this.hostElement?.nativeElement) {
|
|
469
|
+
return;
|
|
470
|
+
}
|
|
471
|
+
this.ngZone.runOutsideAngular(() => {
|
|
472
|
+
this.resizeObserver = new ResizeObserver(() => this.resize());
|
|
473
|
+
this.resizeObserver.observe(this.hostElement.nativeElement);
|
|
474
|
+
});
|
|
475
|
+
}
|
|
462
476
|
resize() {
|
|
463
477
|
if (this.resizable !== 'auto') {
|
|
464
478
|
return;
|
|
@@ -73,6 +73,7 @@ export class TextAreaDirective {
|
|
|
73
73
|
initialHeight;
|
|
74
74
|
control;
|
|
75
75
|
resizeSubscription;
|
|
76
|
+
resizeObserver;
|
|
76
77
|
constructor(renderer, element, zone, changeDetector, injector, rtl) {
|
|
77
78
|
this.renderer = renderer;
|
|
78
79
|
this.element = element;
|
|
@@ -125,6 +126,7 @@ export class TextAreaDirective {
|
|
|
125
126
|
this.resizeSubscription = fromEvent(window, 'resize')
|
|
126
127
|
.pipe((debounceTime(50)))
|
|
127
128
|
.subscribe(() => this.resize());
|
|
129
|
+
this.attachResizeObserver();
|
|
128
130
|
}
|
|
129
131
|
this.inputSubscription = fromEvent(element, 'input')
|
|
130
132
|
.subscribe(this.handleInput.bind(this));
|
|
@@ -157,6 +159,9 @@ export class TextAreaDirective {
|
|
|
157
159
|
if (this.resizeSubscription) {
|
|
158
160
|
this.resizeSubscription.unsubscribe();
|
|
159
161
|
}
|
|
162
|
+
if (this.resizeObserver) {
|
|
163
|
+
this.resizeObserver.disconnect();
|
|
164
|
+
}
|
|
160
165
|
}
|
|
161
166
|
ngChange = (_) => { };
|
|
162
167
|
ngTouched = () => { };
|
|
@@ -174,6 +179,15 @@ export class TextAreaDirective {
|
|
|
174
179
|
this.renderer.setProperty(this.element.nativeElement, name, value);
|
|
175
180
|
}
|
|
176
181
|
}
|
|
182
|
+
attachResizeObserver() {
|
|
183
|
+
if (typeof ResizeObserver === 'undefined' || !this.element?.nativeElement) {
|
|
184
|
+
return;
|
|
185
|
+
}
|
|
186
|
+
this.zone.runOutsideAngular(() => {
|
|
187
|
+
this.resizeObserver = new ResizeObserver(() => this.resize());
|
|
188
|
+
this.resizeObserver.observe(this.element.nativeElement);
|
|
189
|
+
});
|
|
190
|
+
}
|
|
177
191
|
resize() {
|
|
178
192
|
if (!this.autoSize) {
|
|
179
193
|
return;
|
|
@@ -550,8 +550,8 @@ const packageMetadata = {
|
|
|
550
550
|
productName: 'Kendo UI for Angular',
|
|
551
551
|
productCode: 'KENDOUIANGULAR',
|
|
552
552
|
productCodes: ['KENDOUIANGULAR'],
|
|
553
|
-
publishDate:
|
|
554
|
-
version: '21.0.0-develop.
|
|
553
|
+
publishDate: 1761825094,
|
|
554
|
+
version: '21.0.0-develop.6',
|
|
555
555
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
556
556
|
};
|
|
557
557
|
|
|
@@ -3227,6 +3227,7 @@ class TextAreaDirective {
|
|
|
3227
3227
|
initialHeight;
|
|
3228
3228
|
control;
|
|
3229
3229
|
resizeSubscription;
|
|
3230
|
+
resizeObserver;
|
|
3230
3231
|
constructor(renderer, element, zone, changeDetector, injector, rtl) {
|
|
3231
3232
|
this.renderer = renderer;
|
|
3232
3233
|
this.element = element;
|
|
@@ -3279,6 +3280,7 @@ class TextAreaDirective {
|
|
|
3279
3280
|
this.resizeSubscription = fromEvent(window, 'resize')
|
|
3280
3281
|
.pipe((debounceTime(50)))
|
|
3281
3282
|
.subscribe(() => this.resize());
|
|
3283
|
+
this.attachResizeObserver();
|
|
3282
3284
|
}
|
|
3283
3285
|
this.inputSubscription = fromEvent(element, 'input')
|
|
3284
3286
|
.subscribe(this.handleInput.bind(this));
|
|
@@ -3311,6 +3313,9 @@ class TextAreaDirective {
|
|
|
3311
3313
|
if (this.resizeSubscription) {
|
|
3312
3314
|
this.resizeSubscription.unsubscribe();
|
|
3313
3315
|
}
|
|
3316
|
+
if (this.resizeObserver) {
|
|
3317
|
+
this.resizeObserver.disconnect();
|
|
3318
|
+
}
|
|
3314
3319
|
}
|
|
3315
3320
|
ngChange = (_) => { };
|
|
3316
3321
|
ngTouched = () => { };
|
|
@@ -3328,6 +3333,15 @@ class TextAreaDirective {
|
|
|
3328
3333
|
this.renderer.setProperty(this.element.nativeElement, name, value);
|
|
3329
3334
|
}
|
|
3330
3335
|
}
|
|
3336
|
+
attachResizeObserver() {
|
|
3337
|
+
if (typeof ResizeObserver === 'undefined' || !this.element?.nativeElement) {
|
|
3338
|
+
return;
|
|
3339
|
+
}
|
|
3340
|
+
this.zone.runOutsideAngular(() => {
|
|
3341
|
+
this.resizeObserver = new ResizeObserver(() => this.resize());
|
|
3342
|
+
this.resizeObserver.observe(this.element.nativeElement);
|
|
3343
|
+
});
|
|
3344
|
+
}
|
|
3331
3345
|
resize() {
|
|
3332
3346
|
if (!this.autoSize) {
|
|
3333
3347
|
return;
|
|
@@ -17531,6 +17545,7 @@ class TextAreaComponent extends TextFieldsBase {
|
|
|
17531
17545
|
initialHeight;
|
|
17532
17546
|
maxResizableHeight;
|
|
17533
17547
|
resizeSubscription;
|
|
17548
|
+
resizeObserver;
|
|
17534
17549
|
_size = 'medium';
|
|
17535
17550
|
_rounded = 'medium';
|
|
17536
17551
|
_fillMode = 'solid';
|
|
@@ -17599,6 +17614,7 @@ class TextAreaComponent extends TextFieldsBase {
|
|
|
17599
17614
|
this.resizeSubscription = fromEvent(window, 'resize')
|
|
17600
17615
|
.pipe((debounceTime(50)))
|
|
17601
17616
|
.subscribe(() => this.resize());
|
|
17617
|
+
this.attachResizeObserver();
|
|
17602
17618
|
}
|
|
17603
17619
|
if (this.hostElement) {
|
|
17604
17620
|
this.renderer.removeAttribute(this.hostElement.nativeElement, "tabindex");
|
|
@@ -17672,6 +17688,9 @@ class TextAreaComponent extends TextFieldsBase {
|
|
|
17672
17688
|
if (this.resizeSubscription) {
|
|
17673
17689
|
this.resizeSubscription.unsubscribe();
|
|
17674
17690
|
}
|
|
17691
|
+
if (this.resizeObserver) {
|
|
17692
|
+
this.resizeObserver.disconnect();
|
|
17693
|
+
}
|
|
17675
17694
|
}
|
|
17676
17695
|
/**
|
|
17677
17696
|
* @hidden
|
|
@@ -17772,6 +17791,15 @@ class TextAreaComponent extends TextFieldsBase {
|
|
|
17772
17791
|
this.isFocused = false;
|
|
17773
17792
|
this.focusChangedProgrammatically = false;
|
|
17774
17793
|
}
|
|
17794
|
+
attachResizeObserver() {
|
|
17795
|
+
if (typeof ResizeObserver === 'undefined' || !this.hostElement?.nativeElement) {
|
|
17796
|
+
return;
|
|
17797
|
+
}
|
|
17798
|
+
this.ngZone.runOutsideAngular(() => {
|
|
17799
|
+
this.resizeObserver = new ResizeObserver(() => this.resize());
|
|
17800
|
+
this.resizeObserver.observe(this.hostElement.nativeElement);
|
|
17801
|
+
});
|
|
17802
|
+
}
|
|
17775
17803
|
resize() {
|
|
17776
17804
|
if (this.resizable !== 'auto') {
|
|
17777
17805
|
return;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-inputs",
|
|
3
|
-
"version": "21.0.0-develop.
|
|
3
|
+
"version": "21.0.0-develop.6",
|
|
4
4
|
"description": "Kendo UI for Angular Inputs Package - Everything you need to build professional form functionality (Checkbox, ColorGradient, ColorPalette, ColorPicker, FlatColorPicker, FormField, MaskedTextBox, NumericTextBox, RadioButton, RangeSlider, Slider, Switch, TextArea, and TextBox Components)",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Progress",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"package": {
|
|
29
29
|
"productName": "Kendo UI for Angular",
|
|
30
30
|
"productCode": "KENDOUIANGULAR",
|
|
31
|
-
"publishDate":
|
|
31
|
+
"publishDate": 1761825094,
|
|
32
32
|
"licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
|
|
33
33
|
}
|
|
34
34
|
},
|
|
@@ -40,20 +40,20 @@
|
|
|
40
40
|
"@angular/platform-browser": "18 - 20",
|
|
41
41
|
"@progress/kendo-drawing": "^1.21.0",
|
|
42
42
|
"@progress/kendo-licensing": "^1.7.0",
|
|
43
|
-
"@progress/kendo-angular-buttons": "21.0.0-develop.
|
|
44
|
-
"@progress/kendo-angular-common": "21.0.0-develop.
|
|
45
|
-
"@progress/kendo-angular-utils": "21.0.0-develop.
|
|
46
|
-
"@progress/kendo-angular-navigation": "21.0.0-develop.
|
|
47
|
-
"@progress/kendo-angular-dialog": "21.0.0-develop.
|
|
48
|
-
"@progress/kendo-angular-intl": "21.0.0-develop.
|
|
49
|
-
"@progress/kendo-angular-l10n": "21.0.0-develop.
|
|
50
|
-
"@progress/kendo-angular-popup": "21.0.0-develop.
|
|
51
|
-
"@progress/kendo-angular-icons": "21.0.0-develop.
|
|
43
|
+
"@progress/kendo-angular-buttons": "21.0.0-develop.6",
|
|
44
|
+
"@progress/kendo-angular-common": "21.0.0-develop.6",
|
|
45
|
+
"@progress/kendo-angular-utils": "21.0.0-develop.6",
|
|
46
|
+
"@progress/kendo-angular-navigation": "21.0.0-develop.6",
|
|
47
|
+
"@progress/kendo-angular-dialog": "21.0.0-develop.6",
|
|
48
|
+
"@progress/kendo-angular-intl": "21.0.0-develop.6",
|
|
49
|
+
"@progress/kendo-angular-l10n": "21.0.0-develop.6",
|
|
50
|
+
"@progress/kendo-angular-popup": "21.0.0-develop.6",
|
|
51
|
+
"@progress/kendo-angular-icons": "21.0.0-develop.6",
|
|
52
52
|
"rxjs": "^6.5.3 || ^7.0.0"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"tslib": "^2.3.1",
|
|
56
|
-
"@progress/kendo-angular-schematics": "21.0.0-develop.
|
|
56
|
+
"@progress/kendo-angular-schematics": "21.0.0-develop.6",
|
|
57
57
|
"@progress/kendo-common": "^1.0.1",
|
|
58
58
|
"@progress/kendo-draggable": "^3.0.0",
|
|
59
59
|
"@progress/kendo-inputs-common": "^3.1.0"
|
|
@@ -148,6 +148,7 @@ export declare class TextAreaComponent extends TextFieldsBase implements Control
|
|
|
148
148
|
private initialHeight;
|
|
149
149
|
private maxResizableHeight;
|
|
150
150
|
private resizeSubscription;
|
|
151
|
+
private resizeObserver;
|
|
151
152
|
private _size;
|
|
152
153
|
private _rounded;
|
|
153
154
|
private _fillMode;
|
|
@@ -222,6 +223,7 @@ export declare class TextAreaComponent extends TextFieldsBase implements Control
|
|
|
222
223
|
* Blurs the TextArea.
|
|
223
224
|
*/
|
|
224
225
|
blur(): void;
|
|
226
|
+
private attachResizeObserver;
|
|
225
227
|
private resize;
|
|
226
228
|
/**
|
|
227
229
|
* @hidden
|
|
@@ -64,6 +64,7 @@ export declare class TextAreaDirective implements OnInit, OnDestroy, OnChanges,
|
|
|
64
64
|
private initialHeight;
|
|
65
65
|
private control;
|
|
66
66
|
private resizeSubscription;
|
|
67
|
+
private resizeObserver;
|
|
67
68
|
constructor(renderer: Renderer2, element: ElementRef, zone: NgZone, changeDetector: ChangeDetectorRef, injector: Injector, rtl: boolean);
|
|
68
69
|
/**
|
|
69
70
|
* @hidden
|
|
@@ -89,6 +90,7 @@ export declare class TextAreaDirective implements OnInit, OnDestroy, OnChanges,
|
|
|
89
90
|
private get elementValue();
|
|
90
91
|
private set elementValue(value);
|
|
91
92
|
private setElementProperty;
|
|
93
|
+
private attachResizeObserver;
|
|
92
94
|
private resize;
|
|
93
95
|
private handleInput;
|
|
94
96
|
private handleFocus;
|