@progress/kendo-angular-inputs 9.0.0-next.202203230846 → 9.0.0-next.202204060721
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/bundles/kendo-angular-inputs.umd.js +1 -1
- package/checkbox/checkbox.directive.d.ts +2 -2
- package/colorpicker/colorpicker.component.d.ts +3 -3
- package/common/models/fillmode.d.ts +1 -6
- package/common/models/rounded.d.ts +2 -13
- package/common/models/size.d.ts +1 -1
- package/esm2015/checkbox/checkbox.directive.js +8 -6
- package/esm2015/colorpicker/colorpicker.component.js +12 -9
- package/esm2015/common/utils.js +3 -3
- package/esm2015/maskedtextbox/maskedtextbox.component.js +55 -48
- package/esm2015/numerictextbox/numerictextbox.component.js +12 -9
- package/esm2015/package-metadata.js +1 -1
- package/esm2015/radiobutton/radiobutton.directive.js +4 -3
- package/esm2015/rangeslider/rangeslider.component.js +9 -5
- package/esm2015/switch/switch.component.js +12 -9
- package/esm2015/textarea/textarea.component.js +12 -9
- package/esm2015/textbox/textbox.component.js +12 -9
- package/fesm2015/kendo-angular-inputs.js +139 -110
- package/maskedtextbox/maskedtextbox.component.d.ts +11 -10
- package/numerictextbox/numerictextbox.component.d.ts +3 -3
- package/package.json +6 -6
- package/radiobutton/radiobutton.directive.d.ts +1 -1
- package/switch/switch.component.d.ts +3 -3
- package/textarea/textarea.component.d.ts +3 -3
- package/textbox/textbox.component.d.ts +3 -3
|
@@ -227,11 +227,12 @@ export class TextBoxComponent {
|
|
|
227
227
|
* * `'small'`
|
|
228
228
|
* * `'medium'` (default)
|
|
229
229
|
* * `'large'`
|
|
230
|
-
* * `
|
|
230
|
+
* * `none`
|
|
231
231
|
*/
|
|
232
232
|
set size(size) {
|
|
233
|
-
|
|
234
|
-
this.
|
|
233
|
+
const sizeValue = size ? size : 'medium';
|
|
234
|
+
this.handleClasses(sizeValue, 'size');
|
|
235
|
+
this._size = sizeValue;
|
|
235
236
|
}
|
|
236
237
|
get size() {
|
|
237
238
|
return this._size;
|
|
@@ -245,11 +246,12 @@ export class TextBoxComponent {
|
|
|
245
246
|
* * `'medium'` (default)
|
|
246
247
|
* * `'large'`
|
|
247
248
|
* * `'full'`
|
|
248
|
-
* * `
|
|
249
|
+
* * `none`
|
|
249
250
|
*/
|
|
250
251
|
set rounded(rounded) {
|
|
251
|
-
|
|
252
|
-
this.
|
|
252
|
+
const roundedValue = rounded ? rounded : 'medium';
|
|
253
|
+
this.handleClasses(roundedValue, 'rounded');
|
|
254
|
+
this._rounded = roundedValue;
|
|
253
255
|
}
|
|
254
256
|
get rounded() {
|
|
255
257
|
return this._rounded;
|
|
@@ -262,11 +264,12 @@ export class TextBoxComponent {
|
|
|
262
264
|
* * `'flat'`
|
|
263
265
|
* * `'solid'` (default)
|
|
264
266
|
* * `'outline'`
|
|
265
|
-
* * `
|
|
267
|
+
* * `none`
|
|
266
268
|
*/
|
|
267
269
|
set fillMode(fillMode) {
|
|
268
|
-
|
|
269
|
-
this.
|
|
270
|
+
const fillModeValue = fillMode ? fillMode : 'solid';
|
|
271
|
+
this.handleClasses(fillModeValue, 'fillMode');
|
|
272
|
+
this._fillMode = fillModeValue;
|
|
270
273
|
}
|
|
271
274
|
get fillMode() {
|
|
272
275
|
return this._fillMode;
|
|
@@ -71,17 +71,17 @@ const getStylingClasses = (componentType, stylingOption, previousValue, newValue
|
|
|
71
71
|
case 'size':
|
|
72
72
|
return {
|
|
73
73
|
toRemove: `k-${componentType}-${SIZES[previousValue]}`,
|
|
74
|
-
toAdd: newValue ? `k-${componentType}-${SIZES[newValue]}` :
|
|
74
|
+
toAdd: newValue !== 'none' ? `k-${componentType}-${SIZES[newValue]}` : ''
|
|
75
75
|
};
|
|
76
76
|
case 'rounded':
|
|
77
77
|
return {
|
|
78
78
|
toRemove: `k-rounded-${ROUNDNESS[previousValue]}`,
|
|
79
|
-
toAdd: newValue ? `k-rounded-${ROUNDNESS[newValue]}` :
|
|
79
|
+
toAdd: newValue !== 'none' ? `k-rounded-${ROUNDNESS[newValue]}` : ''
|
|
80
80
|
};
|
|
81
81
|
case 'fillMode':
|
|
82
82
|
return {
|
|
83
83
|
toRemove: `k-${componentType}-${previousValue}`,
|
|
84
|
-
toAdd: newValue ? `k-${componentType}-${newValue}` :
|
|
84
|
+
toAdd: newValue !== 'none' ? `k-${componentType}-${newValue}` : ''
|
|
85
85
|
};
|
|
86
86
|
default:
|
|
87
87
|
break;
|
|
@@ -519,7 +519,7 @@ const packageMetadata = {
|
|
|
519
519
|
name: '@progress/kendo-angular-inputs',
|
|
520
520
|
productName: 'Kendo UI for Angular',
|
|
521
521
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
522
|
-
publishDate:
|
|
522
|
+
publishDate: 1649229539,
|
|
523
523
|
version: '',
|
|
524
524
|
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'
|
|
525
525
|
};
|
|
@@ -1830,9 +1830,13 @@ class RangeSliderComponent extends SliderBase {
|
|
|
1830
1830
|
const lastCoords = this.draggedHandle.getBoundingClientRect();
|
|
1831
1831
|
this.lastHandlePosition = { x: lastCoords.left, y: lastCoords.top };
|
|
1832
1832
|
this.dragging = { value: true, target };
|
|
1833
|
-
const
|
|
1834
|
-
|
|
1835
|
-
|
|
1833
|
+
const mousePos = {
|
|
1834
|
+
x: (args.pageX - 0.5) - (lastCoords.width / 2),
|
|
1835
|
+
y: (args.pageY - (lastCoords.width / 2))
|
|
1836
|
+
};
|
|
1837
|
+
const left = mousePos.x < this.lastHandlePosition.x;
|
|
1838
|
+
const right = mousePos.x > this.lastHandlePosition.x;
|
|
1839
|
+
const up = mousePos.y > this.lastHandlePosition.y;
|
|
1836
1840
|
const moveStartHandle = () => this.changeValue([eventValue(args, this.track.nativeElement, this.getProps()), this.value[1]]);
|
|
1837
1841
|
const moveEndHandle = () => this.changeValue([this.value[0], eventValue(args, this.track.nativeElement, this.getProps())]);
|
|
1838
1842
|
const moveBothHandles = () => this.changeValue([eventValue(args, this.track.nativeElement, this.getProps()), eventValue(args, this.track.nativeElement, this.getProps())]);
|
|
@@ -1840,8 +1844,8 @@ class RangeSliderComponent extends SliderBase {
|
|
|
1840
1844
|
const vertical = this.vertical;
|
|
1841
1845
|
const horizontal = !vertical;
|
|
1842
1846
|
const forward = (vertical && up) || (this.reverse ? horizontal && right : horizontal && left);
|
|
1843
|
-
|
|
1844
|
-
if (this.value[0] === this.value[1]) {
|
|
1847
|
+
const incorrectValueState = this.value[0] > this.value[1];
|
|
1848
|
+
if (this.value[0] === this.value[1] || incorrectValueState) {
|
|
1845
1849
|
if (forward) {
|
|
1846
1850
|
// eslint-disable-next-line no-unused-expressions
|
|
1847
1851
|
activeStartHandle ? moveStartHandle() : moveBothHandles();
|
|
@@ -2351,11 +2355,12 @@ class SwitchComponent {
|
|
|
2351
2355
|
* * `'small'`
|
|
2352
2356
|
* * `'medium'` (default)
|
|
2353
2357
|
* * `'large'`
|
|
2354
|
-
* * `
|
|
2358
|
+
* * `none`
|
|
2355
2359
|
*/
|
|
2356
2360
|
set size(size) {
|
|
2357
|
-
|
|
2358
|
-
this.
|
|
2361
|
+
const sizeValue = size ? size : 'medium';
|
|
2362
|
+
this.handleClasses(sizeValue, 'size');
|
|
2363
|
+
this._size = sizeValue;
|
|
2359
2364
|
}
|
|
2360
2365
|
get size() {
|
|
2361
2366
|
return this._size;
|
|
@@ -2368,11 +2373,12 @@ class SwitchComponent {
|
|
|
2368
2373
|
* * `'small'`
|
|
2369
2374
|
* * `'medium'`
|
|
2370
2375
|
* * `'large'`
|
|
2371
|
-
* * `
|
|
2376
|
+
* * `none`
|
|
2372
2377
|
*/
|
|
2373
2378
|
set thumbRounded(thumbRounded) {
|
|
2374
|
-
|
|
2375
|
-
this.
|
|
2379
|
+
const thumbRoundedValue = thumbRounded ? thumbRounded : 'full';
|
|
2380
|
+
this.handleThumbClasses(thumbRoundedValue);
|
|
2381
|
+
this._thumbRounded = thumbRoundedValue;
|
|
2376
2382
|
}
|
|
2377
2383
|
get thumbRounded() {
|
|
2378
2384
|
return this._thumbRounded;
|
|
@@ -2385,11 +2391,12 @@ class SwitchComponent {
|
|
|
2385
2391
|
* * `'small'`
|
|
2386
2392
|
* * `'medium'`
|
|
2387
2393
|
* * `'large'`
|
|
2388
|
-
* * `
|
|
2394
|
+
* * `none`
|
|
2389
2395
|
*/
|
|
2390
2396
|
set trackRounded(trackRounded) {
|
|
2391
|
-
|
|
2392
|
-
this.
|
|
2397
|
+
const trackRoundedValue = trackRounded ? trackRounded : 'full';
|
|
2398
|
+
this.handleTrackClasses(trackRoundedValue);
|
|
2399
|
+
this._trackRounded = trackRoundedValue;
|
|
2393
2400
|
}
|
|
2394
2401
|
get trackRounded() {
|
|
2395
2402
|
return this._trackRounded;
|
|
@@ -3653,11 +3660,12 @@ class NumericTextBoxComponent {
|
|
|
3653
3660
|
* * `'small'`
|
|
3654
3661
|
* * `'medium'` (default)
|
|
3655
3662
|
* * `'large'`
|
|
3656
|
-
* * `
|
|
3663
|
+
* * `none`
|
|
3657
3664
|
*/
|
|
3658
3665
|
set size(size) {
|
|
3659
|
-
|
|
3660
|
-
this.
|
|
3666
|
+
const sizeValue = size ? size : 'medium';
|
|
3667
|
+
this.handleClasses(sizeValue, 'size');
|
|
3668
|
+
this._size = sizeValue;
|
|
3661
3669
|
}
|
|
3662
3670
|
get size() {
|
|
3663
3671
|
return this._size;
|
|
@@ -3669,11 +3677,12 @@ class NumericTextBoxComponent {
|
|
|
3669
3677
|
* * `'small'`
|
|
3670
3678
|
* * `'medium'` (default)
|
|
3671
3679
|
* * `'large'`
|
|
3672
|
-
* * `
|
|
3680
|
+
* * `none`
|
|
3673
3681
|
*/
|
|
3674
3682
|
set rounded(rounded) {
|
|
3675
|
-
|
|
3676
|
-
this.
|
|
3683
|
+
const roundedValue = rounded ? rounded : 'medium';
|
|
3684
|
+
this.handleClasses(roundedValue, 'rounded');
|
|
3685
|
+
this._rounded = roundedValue;
|
|
3677
3686
|
}
|
|
3678
3687
|
get rounded() {
|
|
3679
3688
|
return this._rounded;
|
|
@@ -3685,11 +3694,12 @@ class NumericTextBoxComponent {
|
|
|
3685
3694
|
* * `'flat'`
|
|
3686
3695
|
* * `'solid'` (default)
|
|
3687
3696
|
* * `'outline'`
|
|
3688
|
-
* * `
|
|
3697
|
+
* * `none`
|
|
3689
3698
|
*/
|
|
3690
3699
|
set fillMode(fillMode) {
|
|
3691
|
-
|
|
3692
|
-
this.
|
|
3700
|
+
const fillModeValue = fillMode ? fillMode : 'solid';
|
|
3701
|
+
this.handleClasses(fillModeValue, 'fillMode');
|
|
3702
|
+
this._fillMode = fillModeValue;
|
|
3693
3703
|
}
|
|
3694
3704
|
get fillMode() {
|
|
3695
3705
|
return this._fillMode;
|
|
@@ -4882,7 +4892,6 @@ class MaskedTextBoxComponent {
|
|
|
4882
4892
|
* Determines whether the MaskedTextBox is in its read-only state ([see example]({% slug readonly_maskedtextbox %})).
|
|
4883
4893
|
*/
|
|
4884
4894
|
this.readonly = false;
|
|
4885
|
-
this.hostClasses = true;
|
|
4886
4895
|
/**
|
|
4887
4896
|
* Represents a prompt character for the masked value.
|
|
4888
4897
|
* @default `_`
|
|
@@ -4958,6 +4967,7 @@ class MaskedTextBoxComponent {
|
|
|
4958
4967
|
* Fires each time the value changes.
|
|
4959
4968
|
*/
|
|
4960
4969
|
this.valueChange = new EventEmitter();
|
|
4970
|
+
this.hostClasses = true;
|
|
4961
4971
|
this.focusClick = false;
|
|
4962
4972
|
this.defaultRules = {
|
|
4963
4973
|
"#": /[\d\s\+\-]/,
|
|
@@ -5034,11 +5044,12 @@ class MaskedTextBoxComponent {
|
|
|
5034
5044
|
* * `'small'`
|
|
5035
5045
|
* * `'medium'` (default)
|
|
5036
5046
|
* * `'large'`
|
|
5037
|
-
* * `
|
|
5047
|
+
* * `none`
|
|
5038
5048
|
*/
|
|
5039
5049
|
set size(size) {
|
|
5040
|
-
|
|
5041
|
-
this.
|
|
5050
|
+
const sizeValue = size ? size : 'medium';
|
|
5051
|
+
this.handleClasses(sizeValue, 'size');
|
|
5052
|
+
this._size = sizeValue;
|
|
5042
5053
|
}
|
|
5043
5054
|
get size() {
|
|
5044
5055
|
return this._size;
|
|
@@ -5050,11 +5061,12 @@ class MaskedTextBoxComponent {
|
|
|
5050
5061
|
* * `'small'`
|
|
5051
5062
|
* * `'medium'` (default)
|
|
5052
5063
|
* * `'large'`
|
|
5053
|
-
* * `
|
|
5064
|
+
* * `none`
|
|
5054
5065
|
*/
|
|
5055
5066
|
set rounded(rounded) {
|
|
5056
|
-
|
|
5057
|
-
this.
|
|
5067
|
+
const roundedValue = rounded ? rounded : 'medium';
|
|
5068
|
+
this.handleClasses(roundedValue, 'rounded');
|
|
5069
|
+
this._rounded = roundedValue;
|
|
5058
5070
|
}
|
|
5059
5071
|
get rounded() {
|
|
5060
5072
|
return this._rounded;
|
|
@@ -5066,27 +5078,25 @@ class MaskedTextBoxComponent {
|
|
|
5066
5078
|
* * `flat`
|
|
5067
5079
|
* * `solid` (default)
|
|
5068
5080
|
* * `outline`
|
|
5069
|
-
* * `
|
|
5081
|
+
* * `none`
|
|
5070
5082
|
*/
|
|
5071
5083
|
set fillMode(fillMode) {
|
|
5072
|
-
|
|
5073
|
-
this.
|
|
5084
|
+
const fillModeValue = fillMode ? fillMode : 'solid';
|
|
5085
|
+
this.handleClasses(fillModeValue, 'fillMode');
|
|
5086
|
+
this._fillMode = fillModeValue;
|
|
5074
5087
|
}
|
|
5075
5088
|
get fillMode() {
|
|
5076
5089
|
return this._fillMode;
|
|
5077
5090
|
}
|
|
5078
|
-
get hostDisabledClass() {
|
|
5079
|
-
return this.disabled;
|
|
5080
|
-
}
|
|
5081
5091
|
/**
|
|
5082
5092
|
* Exposes the RegExp-based mask validation array ([see example]({% slug masks_maskedtextbox %})).
|
|
5083
5093
|
*/
|
|
5084
|
-
get rules() {
|
|
5085
|
-
return this._rules || this.defaultRules;
|
|
5086
|
-
}
|
|
5087
5094
|
set rules(value) {
|
|
5088
5095
|
this._rules = Object.assign({}, this.defaultRules, value);
|
|
5089
5096
|
}
|
|
5097
|
+
get rules() {
|
|
5098
|
+
return this._rules || this.defaultRules;
|
|
5099
|
+
}
|
|
5090
5100
|
/**
|
|
5091
5101
|
* @hidden
|
|
5092
5102
|
*/
|
|
@@ -5096,6 +5106,9 @@ class MaskedTextBoxComponent {
|
|
|
5096
5106
|
get tabIndex() {
|
|
5097
5107
|
return this.tabindex;
|
|
5098
5108
|
}
|
|
5109
|
+
get hostDisabledClass() {
|
|
5110
|
+
return this.disabled;
|
|
5111
|
+
}
|
|
5099
5112
|
ngOnInit() {
|
|
5100
5113
|
if (this.hostElement) {
|
|
5101
5114
|
this.renderer.removeAttribute(this.hostElement.nativeElement, "tabindex");
|
|
@@ -5172,7 +5185,7 @@ class MaskedTextBoxComponent {
|
|
|
5172
5185
|
const value = e.target.value;
|
|
5173
5186
|
const [start, end] = this.selection;
|
|
5174
5187
|
if (!this.mask) {
|
|
5175
|
-
this.
|
|
5188
|
+
this.updateValueWithEvents(value);
|
|
5176
5189
|
this.isPasted = false;
|
|
5177
5190
|
return;
|
|
5178
5191
|
}
|
|
@@ -5184,10 +5197,10 @@ class MaskedTextBoxComponent {
|
|
|
5184
5197
|
result = this.service.maskInRange(value.slice(start, to), this.maskedValue, start, end);
|
|
5185
5198
|
}
|
|
5186
5199
|
else {
|
|
5187
|
-
result = this.service.maskInput(value, this.maskedValue, e.target.selectionStart);
|
|
5200
|
+
result = this.service.maskInput(value, this.maskedValue || '', e.target.selectionStart);
|
|
5188
5201
|
}
|
|
5189
5202
|
this.updateInput(result.value, result.selection);
|
|
5190
|
-
this.
|
|
5203
|
+
this.updateValueWithEvents(result.value);
|
|
5191
5204
|
}
|
|
5192
5205
|
/**
|
|
5193
5206
|
* @hidden
|
|
@@ -5202,20 +5215,13 @@ class MaskedTextBoxComponent {
|
|
|
5202
5215
|
}
|
|
5203
5216
|
const next = this.extractChanges(changes);
|
|
5204
5217
|
this.updateService(next);
|
|
5205
|
-
|
|
5206
|
-
|
|
5207
|
-
|
|
5208
|
-
this.updateInput(maskedValue);
|
|
5209
|
-
}
|
|
5210
|
-
}
|
|
5211
|
-
else if (anyChanged(['promptPlaceholder', 'includeLiterals'], changes)) {
|
|
5218
|
+
const maskedValue = this.service.maskRaw(this.value);
|
|
5219
|
+
this.updateInput(maskedValue, null, true);
|
|
5220
|
+
if (changes.includeLiterals || isChanged('promptPlaceholder', changes)) {
|
|
5212
5221
|
resolvedPromise.then(() => {
|
|
5213
|
-
this.
|
|
5222
|
+
this.updateValueWithEvents(this.maskedValue);
|
|
5214
5223
|
});
|
|
5215
5224
|
}
|
|
5216
|
-
else {
|
|
5217
|
-
this.updateInput(this.service.maskRaw(this.value));
|
|
5218
|
-
}
|
|
5219
5225
|
}
|
|
5220
5226
|
/**
|
|
5221
5227
|
* @hidden
|
|
@@ -5224,6 +5230,9 @@ class MaskedTextBoxComponent {
|
|
|
5224
5230
|
writeValue(value) {
|
|
5225
5231
|
this.value = this.normalizeValue(value);
|
|
5226
5232
|
this.updateInput(this.service.maskRaw(this.value));
|
|
5233
|
+
if (this.includeLiterals) {
|
|
5234
|
+
this.updateValue(this.maskedValue);
|
|
5235
|
+
}
|
|
5227
5236
|
}
|
|
5228
5237
|
/**
|
|
5229
5238
|
* @hidden
|
|
@@ -5274,17 +5283,25 @@ class MaskedTextBoxComponent {
|
|
|
5274
5283
|
/**
|
|
5275
5284
|
* @hidden
|
|
5276
5285
|
*/
|
|
5277
|
-
|
|
5278
|
-
|
|
5286
|
+
updateValueWithEvents(maskedValue) {
|
|
5287
|
+
this.updateValue(maskedValue);
|
|
5288
|
+
if (hasObservers(this.valueChange)) {
|
|
5289
|
+
this.valueChange.emit(this.value);
|
|
5290
|
+
}
|
|
5291
|
+
}
|
|
5292
|
+
updateValue(value) {
|
|
5293
|
+
if (this.mask && !this.service.validationValue(value) && !this.includeLiterals) {
|
|
5279
5294
|
this.value = '';
|
|
5280
5295
|
}
|
|
5281
5296
|
else {
|
|
5282
|
-
this.value = this.service.rawValue(
|
|
5297
|
+
this.value = this.service.rawValue(value);
|
|
5283
5298
|
}
|
|
5284
5299
|
this.onChange(this.value);
|
|
5285
|
-
this.valueChange.emit(this.value);
|
|
5286
5300
|
}
|
|
5287
|
-
updateInput(maskedValue = '', selection) {
|
|
5301
|
+
updateInput(maskedValue = '', selection, isFromOnChanges) {
|
|
5302
|
+
if (isFromOnChanges && maskedValue === this.maskedValue) {
|
|
5303
|
+
return;
|
|
5304
|
+
}
|
|
5288
5305
|
this.maskedValue = maskedValue;
|
|
5289
5306
|
const value = this.maskOnFocus && !this.focused && this.emptyMask ? '' : maskedValue;
|
|
5290
5307
|
this.renderer.setProperty(this.input.nativeElement, "value", value);
|
|
@@ -5463,18 +5480,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
5463
5480
|
type: Input
|
|
5464
5481
|
}], fillMode: [{
|
|
5465
5482
|
type: Input
|
|
5466
|
-
}], direction: [{
|
|
5467
|
-
type: HostBinding,
|
|
5468
|
-
args: ['attr.dir']
|
|
5469
|
-
}], hostClasses: [{
|
|
5470
|
-
type: HostBinding,
|
|
5471
|
-
args: ['class.k-input']
|
|
5472
|
-
}, {
|
|
5473
|
-
type: HostBinding,
|
|
5474
|
-
args: ['class.k-maskedtextbox']
|
|
5475
|
-
}], hostDisabledClass: [{
|
|
5476
|
-
type: HostBinding,
|
|
5477
|
-
args: ['class.k-disabled']
|
|
5478
5483
|
}], mask: [{
|
|
5479
5484
|
type: Input
|
|
5480
5485
|
}], value: [{
|
|
@@ -5503,6 +5508,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
5503
5508
|
args: ['blur']
|
|
5504
5509
|
}], valueChange: [{
|
|
5505
5510
|
type: Output
|
|
5511
|
+
}], direction: [{
|
|
5512
|
+
type: HostBinding,
|
|
5513
|
+
args: ['attr.dir']
|
|
5514
|
+
}], hostClasses: [{
|
|
5515
|
+
type: HostBinding,
|
|
5516
|
+
args: ['class.k-input']
|
|
5517
|
+
}, {
|
|
5518
|
+
type: HostBinding,
|
|
5519
|
+
args: ['class.k-maskedtextbox']
|
|
5520
|
+
}], hostDisabledClass: [{
|
|
5521
|
+
type: HostBinding,
|
|
5522
|
+
args: ['class.k-disabled']
|
|
5506
5523
|
}], input: [{
|
|
5507
5524
|
type: ViewChild,
|
|
5508
5525
|
args: ['input', { static: true }]
|
|
@@ -6261,11 +6278,12 @@ class TextBoxComponent {
|
|
|
6261
6278
|
* * `'small'`
|
|
6262
6279
|
* * `'medium'` (default)
|
|
6263
6280
|
* * `'large'`
|
|
6264
|
-
* * `
|
|
6281
|
+
* * `none`
|
|
6265
6282
|
*/
|
|
6266
6283
|
set size(size) {
|
|
6267
|
-
|
|
6268
|
-
this.
|
|
6284
|
+
const sizeValue = size ? size : 'medium';
|
|
6285
|
+
this.handleClasses(sizeValue, 'size');
|
|
6286
|
+
this._size = sizeValue;
|
|
6269
6287
|
}
|
|
6270
6288
|
get size() {
|
|
6271
6289
|
return this._size;
|
|
@@ -6279,11 +6297,12 @@ class TextBoxComponent {
|
|
|
6279
6297
|
* * `'medium'` (default)
|
|
6280
6298
|
* * `'large'`
|
|
6281
6299
|
* * `'full'`
|
|
6282
|
-
* * `
|
|
6300
|
+
* * `none`
|
|
6283
6301
|
*/
|
|
6284
6302
|
set rounded(rounded) {
|
|
6285
|
-
|
|
6286
|
-
this.
|
|
6303
|
+
const roundedValue = rounded ? rounded : 'medium';
|
|
6304
|
+
this.handleClasses(roundedValue, 'rounded');
|
|
6305
|
+
this._rounded = roundedValue;
|
|
6287
6306
|
}
|
|
6288
6307
|
get rounded() {
|
|
6289
6308
|
return this._rounded;
|
|
@@ -6296,11 +6315,12 @@ class TextBoxComponent {
|
|
|
6296
6315
|
* * `'flat'`
|
|
6297
6316
|
* * `'solid'` (default)
|
|
6298
6317
|
* * `'outline'`
|
|
6299
|
-
* * `
|
|
6318
|
+
* * `none`
|
|
6300
6319
|
*/
|
|
6301
6320
|
set fillMode(fillMode) {
|
|
6302
|
-
|
|
6303
|
-
this.
|
|
6321
|
+
const fillModeValue = fillMode ? fillMode : 'solid';
|
|
6322
|
+
this.handleClasses(fillModeValue, 'fillMode');
|
|
6323
|
+
this._fillMode = fillModeValue;
|
|
6304
6324
|
}
|
|
6305
6325
|
get fillMode() {
|
|
6306
6326
|
return this._fillMode;
|
|
@@ -7239,11 +7259,12 @@ class TextAreaComponent extends TextFieldsBase {
|
|
|
7239
7259
|
* * `'small'`
|
|
7240
7260
|
* * `'medium'` (default)
|
|
7241
7261
|
* * `'large'`
|
|
7242
|
-
* * `
|
|
7262
|
+
* * `none`
|
|
7243
7263
|
*/
|
|
7244
7264
|
set size(size) {
|
|
7245
|
-
|
|
7246
|
-
this.
|
|
7265
|
+
const sizeValue = size ? size : 'medium';
|
|
7266
|
+
this.handleClasses(sizeValue, 'size');
|
|
7267
|
+
this._size = sizeValue;
|
|
7247
7268
|
}
|
|
7248
7269
|
get size() {
|
|
7249
7270
|
return this._size;
|
|
@@ -7256,11 +7277,12 @@ class TextAreaComponent extends TextFieldsBase {
|
|
|
7256
7277
|
* * `'small'`
|
|
7257
7278
|
* * `'medium'` (default)
|
|
7258
7279
|
* * `'large'`
|
|
7259
|
-
* * `
|
|
7280
|
+
* * `none`
|
|
7260
7281
|
*/
|
|
7261
7282
|
set rounded(rounded) {
|
|
7262
|
-
|
|
7263
|
-
this.
|
|
7283
|
+
const roundedValue = rounded ? rounded : 'medium';
|
|
7284
|
+
this.handleClasses(roundedValue, 'rounded');
|
|
7285
|
+
this._rounded = roundedValue;
|
|
7264
7286
|
}
|
|
7265
7287
|
get rounded() {
|
|
7266
7288
|
return this._rounded;
|
|
@@ -7273,11 +7295,12 @@ class TextAreaComponent extends TextFieldsBase {
|
|
|
7273
7295
|
* * `'flat'`
|
|
7274
7296
|
* * `'solid'` (default)
|
|
7275
7297
|
* * `'outline'`
|
|
7276
|
-
* * `
|
|
7298
|
+
* * `none`
|
|
7277
7299
|
*/
|
|
7278
7300
|
set fillMode(fillMode) {
|
|
7279
|
-
|
|
7280
|
-
this.
|
|
7301
|
+
const fillModeValue = fillMode ? fillMode : 'solid';
|
|
7302
|
+
this.handleClasses(fillModeValue, 'fillMode');
|
|
7303
|
+
this._fillMode = fillModeValue;
|
|
7281
7304
|
}
|
|
7282
7305
|
get fillMode() {
|
|
7283
7306
|
return this._fillMode;
|
|
@@ -11421,11 +11444,12 @@ class ColorPickerComponent {
|
|
|
11421
11444
|
* * `'small'`
|
|
11422
11445
|
* * `'medium'` (default)
|
|
11423
11446
|
* * `'large'`
|
|
11424
|
-
* * `
|
|
11447
|
+
* * `none`
|
|
11425
11448
|
*/
|
|
11426
11449
|
set size(size) {
|
|
11427
|
-
|
|
11428
|
-
this.
|
|
11450
|
+
const sizeValue = size ? size : 'medium';
|
|
11451
|
+
this.handleClasses(sizeValue, 'size');
|
|
11452
|
+
this._size = sizeValue;
|
|
11429
11453
|
}
|
|
11430
11454
|
get size() {
|
|
11431
11455
|
return this._size;
|
|
@@ -11439,11 +11463,12 @@ class ColorPickerComponent {
|
|
|
11439
11463
|
* * `'medium'` (default)
|
|
11440
11464
|
* * `'large'`
|
|
11441
11465
|
* * `'full'`
|
|
11442
|
-
* * `
|
|
11466
|
+
* * `none`
|
|
11443
11467
|
*/
|
|
11444
11468
|
set rounded(rounded) {
|
|
11445
|
-
|
|
11446
|
-
this.
|
|
11469
|
+
const roundedValue = rounded ? rounded : 'medium';
|
|
11470
|
+
this.handleClasses(roundedValue, 'rounded');
|
|
11471
|
+
this._rounded = roundedValue;
|
|
11447
11472
|
}
|
|
11448
11473
|
get rounded() {
|
|
11449
11474
|
return this._rounded;
|
|
@@ -11456,11 +11481,12 @@ class ColorPickerComponent {
|
|
|
11456
11481
|
* * `'flat'`
|
|
11457
11482
|
* * `'solid'` (default)
|
|
11458
11483
|
* * `'outline'`
|
|
11459
|
-
* * `
|
|
11484
|
+
* * `none`
|
|
11460
11485
|
*/
|
|
11461
11486
|
set fillMode(fillMode) {
|
|
11462
|
-
|
|
11463
|
-
this.
|
|
11487
|
+
const fillModeValue = fillMode ? fillMode : 'solid';
|
|
11488
|
+
this.handleClasses(fillModeValue, 'fillMode');
|
|
11489
|
+
this._fillMode = fillModeValue;
|
|
11464
11490
|
}
|
|
11465
11491
|
get fillMode() {
|
|
11466
11492
|
return this._fillMode;
|
|
@@ -12267,11 +12293,12 @@ class CheckBoxDirective {
|
|
|
12267
12293
|
* * `'small'`
|
|
12268
12294
|
* * `'medium'` (default)
|
|
12269
12295
|
* * `'large'`
|
|
12270
|
-
* * `
|
|
12296
|
+
* * `none`
|
|
12271
12297
|
*/
|
|
12272
12298
|
set size(size) {
|
|
12273
|
-
|
|
12274
|
-
this.
|
|
12299
|
+
const sizeValue = size ? size : 'medium';
|
|
12300
|
+
this.handleClasses(sizeValue, 'size');
|
|
12301
|
+
this._size = sizeValue;
|
|
12275
12302
|
}
|
|
12276
12303
|
get size() {
|
|
12277
12304
|
return this._size;
|
|
@@ -12284,11 +12311,12 @@ class CheckBoxDirective {
|
|
|
12284
12311
|
* * `'small'`
|
|
12285
12312
|
* * `'medium'` (default)
|
|
12286
12313
|
* * `'large'`
|
|
12287
|
-
* * `
|
|
12314
|
+
* * `none`
|
|
12288
12315
|
*/
|
|
12289
12316
|
set rounded(rounded) {
|
|
12290
|
-
|
|
12291
|
-
this.
|
|
12317
|
+
const roundedValue = rounded ? rounded : 'medium';
|
|
12318
|
+
this.handleClasses(roundedValue, 'rounded');
|
|
12319
|
+
this._rounded = roundedValue;
|
|
12292
12320
|
}
|
|
12293
12321
|
get rounded() {
|
|
12294
12322
|
return this._rounded;
|
|
@@ -12395,11 +12423,12 @@ class RadioButtonDirective {
|
|
|
12395
12423
|
* * `'small'`
|
|
12396
12424
|
* * `'medium'` (default)
|
|
12397
12425
|
* * `'large'`
|
|
12398
|
-
* * `
|
|
12426
|
+
* * `none`
|
|
12399
12427
|
*/
|
|
12400
12428
|
set size(size) {
|
|
12401
|
-
|
|
12402
|
-
this.
|
|
12429
|
+
const sizeValue = size ? size : 'medium';
|
|
12430
|
+
this.handleClasses(sizeValue, 'size');
|
|
12431
|
+
this._size = sizeValue;
|
|
12403
12432
|
}
|
|
12404
12433
|
get size() {
|
|
12405
12434
|
return this._size;
|
|
@@ -61,7 +61,7 @@ export declare class MaskedTextBoxComponent implements ControlValueAccessor, OnC
|
|
|
61
61
|
* * `'small'`
|
|
62
62
|
* * `'medium'` (default)
|
|
63
63
|
* * `'large'`
|
|
64
|
-
* * `
|
|
64
|
+
* * `none`
|
|
65
65
|
*/
|
|
66
66
|
set size(size: InputSize);
|
|
67
67
|
get size(): InputSize;
|
|
@@ -72,7 +72,7 @@ export declare class MaskedTextBoxComponent implements ControlValueAccessor, OnC
|
|
|
72
72
|
* * `'small'`
|
|
73
73
|
* * `'medium'` (default)
|
|
74
74
|
* * `'large'`
|
|
75
|
-
* * `
|
|
75
|
+
* * `none`
|
|
76
76
|
*/
|
|
77
77
|
set rounded(rounded: InputRounded);
|
|
78
78
|
get rounded(): InputRounded;
|
|
@@ -83,13 +83,10 @@ export declare class MaskedTextBoxComponent implements ControlValueAccessor, OnC
|
|
|
83
83
|
* * `flat`
|
|
84
84
|
* * `solid` (default)
|
|
85
85
|
* * `outline`
|
|
86
|
-
* * `
|
|
86
|
+
* * `none`
|
|
87
87
|
*/
|
|
88
88
|
set fillMode(fillMode: InputFillMode);
|
|
89
89
|
get fillMode(): InputFillMode;
|
|
90
|
-
direction: string;
|
|
91
|
-
hostClasses: boolean;
|
|
92
|
-
get hostDisabledClass(): boolean;
|
|
93
90
|
/**
|
|
94
91
|
* Represents the current mask ([see example]({% slug value_maskedtextbox %})).
|
|
95
92
|
* If no mask is set, the component behaves as a standard `type="text"` input.
|
|
@@ -105,12 +102,12 @@ export declare class MaskedTextBoxComponent implements ControlValueAccessor, OnC
|
|
|
105
102
|
/**
|
|
106
103
|
* Exposes the RegExp-based mask validation array ([see example]({% slug masks_maskedtextbox %})).
|
|
107
104
|
*/
|
|
108
|
-
get rules(): {
|
|
109
|
-
[key: string]: RegExp;
|
|
110
|
-
};
|
|
111
105
|
set rules(value: {
|
|
112
106
|
[key: string]: RegExp;
|
|
113
107
|
});
|
|
108
|
+
get rules(): {
|
|
109
|
+
[key: string]: RegExp;
|
|
110
|
+
};
|
|
114
111
|
/**
|
|
115
112
|
* Represents a prompt character for the masked value.
|
|
116
113
|
* @default `_`
|
|
@@ -191,6 +188,9 @@ export declare class MaskedTextBoxComponent implements ControlValueAccessor, OnC
|
|
|
191
188
|
* Fires each time the value changes.
|
|
192
189
|
*/
|
|
193
190
|
valueChange: EventEmitter<string>;
|
|
191
|
+
direction: string;
|
|
192
|
+
hostClasses: boolean;
|
|
193
|
+
get hostDisabledClass(): boolean;
|
|
194
194
|
/**
|
|
195
195
|
* Represents the `ElementRef` of the visible `input` element.
|
|
196
196
|
*/
|
|
@@ -292,9 +292,10 @@ export declare class MaskedTextBoxComponent implements ControlValueAccessor, OnC
|
|
|
292
292
|
/**
|
|
293
293
|
* @hidden
|
|
294
294
|
*/
|
|
295
|
-
|
|
295
|
+
updateValueWithEvents(maskedValue: string): void;
|
|
296
296
|
protected onChange: (_: any) => void;
|
|
297
297
|
protected onTouched: () => void;
|
|
298
|
+
private updateValue;
|
|
298
299
|
private updateInput;
|
|
299
300
|
private extractChanges;
|
|
300
301
|
private updateService;
|