@progress/kendo-vue-inputs 2.7.2-dev.202201051440 → 2.8.0-dev.202201111325
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-vue-inputs.js +1 -1
- package/dist/es/additionalTypes.ts +7 -1
- package/dist/es/checkbox/Checkbox.d.ts +5 -6
- package/dist/es/checkbox/Checkbox.js +38 -22
- package/dist/es/checkbox/interfaces/CheckboxProps.d.ts +24 -0
- package/dist/es/colors/ColorPalette.d.ts +6 -6
- package/dist/es/colors/ColorPalette.js +5 -4
- package/dist/es/colors/ColorPicker.d.ts +5 -6
- package/dist/es/colors/ColorPicker.js +47 -48
- package/dist/es/colors/Picker.d.ts +5 -6
- package/dist/es/colors/Picker.js +3 -3
- package/dist/es/colors/interfaces/ColorPickerProps.d.ts +2 -2
- package/dist/es/input/Input.d.ts +42 -6
- package/dist/es/input/Input.js +29 -8
- package/dist/es/main.d.ts +1 -1
- package/dist/es/main.js +1 -1
- package/dist/es/maskedtextbox/MaskedTextBox.d.ts +5 -6
- package/dist/es/maskedtextbox/MaskedTextBox.js +38 -14
- package/dist/es/maskedtextbox/MaskedTextBoxProps.d.ts +37 -0
- package/dist/es/numerictextbox/NumericTextBox.d.ts +5 -6
- package/dist/es/numerictextbox/NumericTextBox.js +61 -37
- package/dist/es/numerictextbox/interfaces/NumericTextBoxProps.d.ts +37 -0
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/radiobutton/RadioButton.d.ts +5 -6
- package/dist/es/radiobutton/RadioButton.js +13 -8
- package/dist/es/radiobutton/RadioGroup.d.ts +5 -6
- package/dist/es/radiobutton/RadioGroup.js +3 -3
- package/dist/es/radiobutton/interfaces/RadioButtonProps.d.ts +12 -0
- package/dist/es/slider/Slider.d.ts +5 -6
- package/dist/es/slider/Slider.js +30 -25
- package/dist/es/slider/SliderLabel.d.ts +5 -6
- package/dist/es/slider/SliderLabel.js +3 -3
- package/dist/es/switch/Switch.d.ts +45 -6
- package/dist/es/switch/Switch.js +56 -24
- package/dist/es/textarea/TextArea.d.ts +5 -6
- package/dist/es/textarea/TextArea.js +40 -11
- package/dist/es/textarea/interfaces/TextAreaProps.d.ts +37 -0
- package/dist/npm/additionalTypes.ts +7 -1
- package/dist/npm/checkbox/Checkbox.d.ts +5 -6
- package/dist/npm/checkbox/Checkbox.js +39 -23
- package/dist/npm/checkbox/interfaces/CheckboxProps.d.ts +24 -0
- package/dist/npm/colors/ColorPalette.d.ts +6 -6
- package/dist/npm/colors/ColorPalette.js +6 -5
- package/dist/npm/colors/ColorPicker.d.ts +5 -6
- package/dist/npm/colors/ColorPicker.js +50 -51
- package/dist/npm/colors/Picker.d.ts +5 -6
- package/dist/npm/colors/Picker.js +5 -5
- package/dist/npm/colors/interfaces/ColorPickerProps.d.ts +2 -2
- package/dist/npm/input/Input.d.ts +42 -6
- package/dist/npm/input/Input.js +31 -10
- package/dist/npm/main.d.ts +1 -1
- package/dist/npm/main.js +1 -0
- package/dist/npm/maskedtextbox/MaskedTextBox.d.ts +5 -6
- package/dist/npm/maskedtextbox/MaskedTextBox.js +39 -15
- package/dist/npm/maskedtextbox/MaskedTextBoxProps.d.ts +37 -0
- package/dist/npm/numerictextbox/NumericTextBox.d.ts +5 -6
- package/dist/npm/numerictextbox/NumericTextBox.js +63 -38
- package/dist/npm/numerictextbox/interfaces/NumericTextBoxProps.d.ts +37 -0
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/radiobutton/RadioButton.d.ts +5 -6
- package/dist/npm/radiobutton/RadioButton.js +14 -9
- package/dist/npm/radiobutton/RadioGroup.d.ts +5 -6
- package/dist/npm/radiobutton/RadioGroup.js +5 -5
- package/dist/npm/radiobutton/interfaces/RadioButtonProps.d.ts +12 -0
- package/dist/npm/slider/Slider.d.ts +5 -6
- package/dist/npm/slider/Slider.js +33 -27
- package/dist/npm/slider/SliderLabel.d.ts +5 -6
- package/dist/npm/slider/SliderLabel.js +5 -5
- package/dist/npm/switch/Switch.d.ts +45 -6
- package/dist/npm/switch/Switch.js +57 -25
- package/dist/npm/textarea/TextArea.d.ts +5 -6
- package/dist/npm/textarea/TextArea.js +41 -12
- package/dist/npm/textarea/interfaces/TextAreaProps.d.ts +37 -0
- package/package.json +10 -9
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { DefineComponent } from '../additionalTypes';
|
|
2
|
-
import { RecordPropsDefinition, ComponentOptions } from 'vue/types/options';
|
|
1
|
+
import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from '../additionalTypes';
|
|
3
2
|
declare type DefaultData<V> = object | ((this: V) => {});
|
|
4
3
|
declare type DefaultMethods<V> = {
|
|
5
4
|
[key: string]: (this: V, ...args: any[]) => any;
|
|
@@ -51,8 +50,8 @@ export interface SliderLabelData {
|
|
|
51
50
|
/**
|
|
52
51
|
* @hidden
|
|
53
52
|
*/
|
|
54
|
-
export interface SliderLabelAll extends
|
|
53
|
+
export interface SliderLabelAll extends Vue2type, SliderLabelMethods, SliderLabelData, SliderLabelState {
|
|
55
54
|
}
|
|
56
|
-
declare let
|
|
57
|
-
declare const
|
|
58
|
-
export { SliderLabel,
|
|
55
|
+
declare let SliderLabelVue2: ComponentOptions<SliderLabelAll, DefaultData<SliderLabelData>, DefaultMethods<SliderLabelAll>, {}, RecordPropsDefinition<SliderLabelProps>>;
|
|
56
|
+
declare const SliderLabel: DefineComponent<SliderLabelProps, any, SliderLabelData, {}, SliderLabelMethods, {}, {}, {}, string, SliderLabelProps, SliderLabelProps, {}>;
|
|
57
|
+
export { SliderLabel, SliderLabelVue2 };
|
|
@@ -26,7 +26,7 @@ import { getDefaultSlots } from '@progress/kendo-vue-common';
|
|
|
26
26
|
|
|
27
27
|
export var SLIDER_LABEL_ATTRIBUTE = 'data-slider-label'; // tslint:enable:max-line-length
|
|
28
28
|
|
|
29
|
-
var
|
|
29
|
+
var SliderLabelVue2 = {
|
|
30
30
|
name: 'KendoSliderLabel',
|
|
31
31
|
// @ts-ignore
|
|
32
32
|
emits: {
|
|
@@ -107,5 +107,5 @@ var SliderLabel = {
|
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
109
|
};
|
|
110
|
-
var
|
|
111
|
-
export { SliderLabel,
|
|
110
|
+
var SliderLabel = SliderLabelVue2;
|
|
111
|
+
export { SliderLabel, SliderLabelVue2 };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { DefineComponent } from '../additionalTypes';
|
|
2
|
-
import { RecordPropsDefinition, ComponentOptions } from 'vue/types/options';
|
|
1
|
+
import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from '../additionalTypes';
|
|
3
2
|
declare type DefaultData<V> = object | ((this: V) => {});
|
|
4
3
|
declare type DefaultMethods<V> = {
|
|
5
4
|
[key: string]: (this: V, ...args: any[]) => any;
|
|
@@ -52,6 +51,46 @@ export interface SwitchProps extends ToggleBaseProps, FormComponentProps {
|
|
|
52
51
|
* Sets the `id` of the Switch.
|
|
53
52
|
*/
|
|
54
53
|
id?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Configures the `size` of the Switch.
|
|
56
|
+
*
|
|
57
|
+
* The available options are:
|
|
58
|
+
* - small
|
|
59
|
+
* - medium
|
|
60
|
+
* - large
|
|
61
|
+
* - null—Does not set a size `className`.
|
|
62
|
+
*
|
|
63
|
+
* @default `medium`
|
|
64
|
+
*/
|
|
65
|
+
size?: null | 'small' | 'medium' | 'large' | string;
|
|
66
|
+
/**
|
|
67
|
+
* Configures the `trackRounded` of the Switch.
|
|
68
|
+
*
|
|
69
|
+
* The available options are:
|
|
70
|
+
* - small
|
|
71
|
+
* - medium
|
|
72
|
+
* - large
|
|
73
|
+
* - full
|
|
74
|
+
* - circle
|
|
75
|
+
* - null—Does not set a trackRounded `className`.
|
|
76
|
+
*
|
|
77
|
+
* @default `full`
|
|
78
|
+
*/
|
|
79
|
+
trackRounded?: null | 'small' | 'medium' | 'large' | 'full' | string;
|
|
80
|
+
/**
|
|
81
|
+
* Configures the `thumbRounded` of the Switch.
|
|
82
|
+
*
|
|
83
|
+
* The available options are:
|
|
84
|
+
* - small
|
|
85
|
+
* - medium
|
|
86
|
+
* - large
|
|
87
|
+
* - full
|
|
88
|
+
* - circle
|
|
89
|
+
* - null—Does not set a thumbRounded `className`.
|
|
90
|
+
*
|
|
91
|
+
* @default `circle`
|
|
92
|
+
*/
|
|
93
|
+
thumbRounded?: null | 'small' | 'medium' | 'large' | 'full' | string;
|
|
55
94
|
/**
|
|
56
95
|
* Identifies the element(s) which will describe the component, similar to [HTML aria-describedby attribute](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_aria-describedby_attribute).
|
|
57
96
|
* For example these elements could contain error or hint message.
|
|
@@ -124,8 +163,8 @@ export interface SwitchData {
|
|
|
124
163
|
/**
|
|
125
164
|
* @hidden
|
|
126
165
|
*/
|
|
127
|
-
export interface SwitchAll extends
|
|
166
|
+
export interface SwitchAll extends Vue2type, SwitchMethods, SwitchData, SwitchComputed, SwitchState {
|
|
128
167
|
}
|
|
129
|
-
declare let
|
|
130
|
-
declare const
|
|
131
|
-
export { Switch,
|
|
168
|
+
declare let SwitchVue2: ComponentOptions<SwitchAll, DefaultData<SwitchData>, DefaultMethods<SwitchAll>, SwitchComputed, RecordPropsDefinition<SwitchProps>>;
|
|
169
|
+
declare const Switch: DefineComponent<SwitchProps, any, SwitchData, SwitchComputed, SwitchMethods, {}, {}, {}, string, SwitchProps, SwitchProps, {}>;
|
|
170
|
+
export { Switch, SwitchVue2 };
|
package/dist/es/switch/Switch.js
CHANGED
|
@@ -2,16 +2,12 @@
|
|
|
2
2
|
import * as Vue from 'vue';
|
|
3
3
|
var allVue = Vue;
|
|
4
4
|
var gh = allVue.h;
|
|
5
|
-
import { guid, noop, Keys, getTabIndex, validatePackage, isRtl } from '@progress/kendo-vue-common';
|
|
5
|
+
import { guid, noop, Keys, getTabIndex, validatePackage, isRtl, kendoThemeMaps } from '@progress/kendo-vue-common';
|
|
6
6
|
import { provideLocalizationService } from '@progress/kendo-vue-intl';
|
|
7
7
|
import { messages, switchValidation } from './../messages';
|
|
8
|
-
import { packageMetadata } from '../package-metadata';
|
|
9
|
-
var SWITCH_CONTAINER = 'k-switch-container';
|
|
10
|
-
var SWITCH_HANDLE = 'k-switch-handle';
|
|
11
|
-
var SWITCH_LABEL_ON = 'k-switch-label-on';
|
|
12
|
-
var SWITCH_LABEL_OFF = 'k-switch-label-off'; // tslint:enable:max-line-length
|
|
8
|
+
import { packageMetadata } from '../package-metadata'; // tslint:enable:max-line-length
|
|
13
9
|
|
|
14
|
-
var
|
|
10
|
+
var SwitchVue2 = {
|
|
15
11
|
name: 'KendoSwitch',
|
|
16
12
|
model: {
|
|
17
13
|
event: 'changemodel'
|
|
@@ -39,6 +35,27 @@ var Switch = {
|
|
|
39
35
|
type: Boolean,
|
|
40
36
|
default: false
|
|
41
37
|
},
|
|
38
|
+
size: {
|
|
39
|
+
type: String,
|
|
40
|
+
default: 'medium',
|
|
41
|
+
validator: function validator(value) {
|
|
42
|
+
return [null, 'small', 'medium', 'large'].includes(value);
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
trackRounded: {
|
|
46
|
+
type: String,
|
|
47
|
+
default: 'full',
|
|
48
|
+
validator: function validator(value) {
|
|
49
|
+
return [null, 'small', 'medium', 'large', 'full'].includes(value);
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
thumbRounded: {
|
|
53
|
+
type: String,
|
|
54
|
+
default: 'full',
|
|
55
|
+
validator: function validator(value) {
|
|
56
|
+
return [null, 'small', 'medium', 'large', 'full'].includes(value);
|
|
57
|
+
}
|
|
58
|
+
},
|
|
42
59
|
dir: String,
|
|
43
60
|
id: String,
|
|
44
61
|
ariaLabelledBy: String,
|
|
@@ -93,16 +110,26 @@ var Switch = {
|
|
|
93
110
|
return this.valueDuringOnChange !== undefined ? this.valueDuringOnChange : this.$props.checked !== undefined ? this.$props.checked : this.$props.value !== undefined ? this.$props.value : this.$props.modelValue !== undefined ? this.$props.modelValue : this.currentChecked;
|
|
94
111
|
},
|
|
95
112
|
switchClassName: function switchClassName() {
|
|
113
|
+
var _a;
|
|
114
|
+
|
|
96
115
|
var isValid = !this.validityStyles || this.validity().valid;
|
|
97
|
-
return {
|
|
98
|
-
'k-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
116
|
+
return _a = {
|
|
117
|
+
'k-switch': true
|
|
118
|
+
}, _a["k-switch-" + kendoThemeMaps.sizeMap[this.$props.size]] = true, _a["k-rounded-" + this.$props.trackRounded] = this.$props.trackRounded, _a['k-switch-on'] = this.computedValue, _a['k-switch-off'] = !this.computedValue, _a['k-focus'] = this.focused, _a['k-disabled'] = this.$props.disabled, _a['k-invalid'] = !isValid, _a;
|
|
119
|
+
},
|
|
120
|
+
switchTrackClass: function switchTrackClass() {
|
|
121
|
+
var _a;
|
|
122
|
+
|
|
123
|
+
return _a = {
|
|
124
|
+
'k-switch-track': true
|
|
125
|
+
}, _a["k-rounded-" + this.$props.trackRounded] = this.$props.trackRounded, _a;
|
|
126
|
+
},
|
|
127
|
+
switchThumbClass: function switchThumbClass() {
|
|
128
|
+
var _a;
|
|
129
|
+
|
|
130
|
+
return _a = {
|
|
131
|
+
'k-switch-thumb': true
|
|
132
|
+
}, _a["k-rounded-" + this.$props.thumbRounded] = this.$props.thumbRounded, _a;
|
|
106
133
|
}
|
|
107
134
|
},
|
|
108
135
|
mounted: function mounted() {
|
|
@@ -131,7 +158,8 @@ var Switch = {
|
|
|
131
158
|
id = _a.id,
|
|
132
159
|
offLabel = _a.offLabel,
|
|
133
160
|
onLabel = _a.onLabel,
|
|
134
|
-
tabIndex = _a.tabIndex
|
|
161
|
+
tabIndex = _a.tabIndex,
|
|
162
|
+
required = _a.required;
|
|
135
163
|
return h("span", {
|
|
136
164
|
"class": this.switchClassName,
|
|
137
165
|
dir: this.currentDir,
|
|
@@ -149,7 +177,7 @@ var Switch = {
|
|
|
149
177
|
onFocusout: this.handleWrapperBlur,
|
|
150
178
|
onFocusin: this.handleWrapperFocus
|
|
151
179
|
}, [h("span", {
|
|
152
|
-
"class":
|
|
180
|
+
"class": this.switchTrackClass,
|
|
153
181
|
id: id || this._id,
|
|
154
182
|
attrs: this.v3 ? undefined : {
|
|
155
183
|
id: id || this._id,
|
|
@@ -176,6 +204,7 @@ var Switch = {
|
|
|
176
204
|
attrs: this.v3 ? undefined : {
|
|
177
205
|
type: "checkbox",
|
|
178
206
|
tabIndex: -1,
|
|
207
|
+
required: required !== undefined ? required : false,
|
|
179
208
|
"aria-hidden": true
|
|
180
209
|
},
|
|
181
210
|
checked: this.v3 ? this.$props.checked : null,
|
|
@@ -187,6 +216,7 @@ var Switch = {
|
|
|
187
216
|
_this.inputRef = el;
|
|
188
217
|
} : 'input',
|
|
189
218
|
tabIndex: -1,
|
|
219
|
+
required: required !== undefined ? required : false,
|
|
190
220
|
"aria-hidden": true,
|
|
191
221
|
value: this.v3 ? this.computedValue : null,
|
|
192
222
|
style: {
|
|
@@ -202,12 +232,14 @@ var Switch = {
|
|
|
202
232
|
"change": noop
|
|
203
233
|
}
|
|
204
234
|
}), h("span", {
|
|
205
|
-
"class":
|
|
235
|
+
"class": 'k-switch-label-on'
|
|
206
236
|
}, [onLabel]), h("span", {
|
|
207
|
-
"class":
|
|
237
|
+
"class": 'k-switch-label-off'
|
|
208
238
|
}, [offLabel]), h("span", {
|
|
209
|
-
"class":
|
|
210
|
-
}
|
|
239
|
+
"class": 'k-switch-thumb-wrap'
|
|
240
|
+
}, [h("span", {
|
|
241
|
+
"class": this.switchThumbClass
|
|
242
|
+
})])])]);
|
|
211
243
|
},
|
|
212
244
|
methods: {
|
|
213
245
|
focus: function focus() {
|
|
@@ -303,5 +335,5 @@ var Switch = {
|
|
|
303
335
|
}
|
|
304
336
|
}
|
|
305
337
|
};
|
|
306
|
-
var
|
|
307
|
-
export { Switch,
|
|
338
|
+
var Switch = SwitchVue2;
|
|
339
|
+
export { Switch, SwitchVue2 };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { DefineComponent } from '../additionalTypes';
|
|
2
|
-
import { RecordPropsDefinition, ComponentOptions } from 'vue/types/options';
|
|
1
|
+
import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from '../additionalTypes';
|
|
3
2
|
declare type DefaultData<V> = object | ((this: V) => {});
|
|
4
3
|
declare type DefaultMethods<V> = {
|
|
5
4
|
[key: string]: (this: V, ...args: any[]) => any;
|
|
@@ -39,8 +38,8 @@ export interface TextAreaData {
|
|
|
39
38
|
/**
|
|
40
39
|
* @hidden
|
|
41
40
|
*/
|
|
42
|
-
export interface TextAreaAll extends
|
|
41
|
+
export interface TextAreaAll extends Vue2type, TextAreaMethods, TextAreaData, TextAreaComputed, TextAreaState {
|
|
43
42
|
}
|
|
44
|
-
declare let
|
|
45
|
-
declare const
|
|
46
|
-
export { TextArea,
|
|
43
|
+
declare let TextAreaVue2: ComponentOptions<TextAreaAll, DefaultData<TextAreaData>, DefaultMethods<TextAreaAll>, TextAreaComputed, RecordPropsDefinition<TextAreaProps>>;
|
|
44
|
+
declare const TextArea: DefineComponent<TextAreaProps, any, TextAreaData, TextAreaComputed, TextAreaMethods, {}, {}, {}, string, TextAreaProps, TextAreaProps, {}>;
|
|
45
|
+
export { TextArea, TextAreaVue2 };
|
|
@@ -18,11 +18,11 @@ var __assign = this && this.__assign || function () {
|
|
|
18
18
|
import * as Vue from 'vue';
|
|
19
19
|
var allVue = Vue;
|
|
20
20
|
var gh = allVue.h;
|
|
21
|
-
import { guid, isRtl, getTabIndex, validatePackage // useDir,
|
|
21
|
+
import { guid, isRtl, getTabIndex, validatePackage, kendoThemeMaps // useDir,
|
|
22
22
|
} from '@progress/kendo-vue-common';
|
|
23
23
|
import { packageMetadata } from '../package-metadata'; // tslint:enable:max-line-length
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var TextAreaVue2 = {
|
|
26
26
|
name: 'KendoTextArea',
|
|
27
27
|
inheritAttrs: false,
|
|
28
28
|
model: {
|
|
@@ -52,6 +52,27 @@ var TextArea = {
|
|
|
52
52
|
rows: Number,
|
|
53
53
|
id: String,
|
|
54
54
|
name: String,
|
|
55
|
+
size: {
|
|
56
|
+
type: String,
|
|
57
|
+
default: 'medium',
|
|
58
|
+
validator: function validator(value) {
|
|
59
|
+
return [null, 'small', 'medium', 'large'].includes(value);
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
rounded: {
|
|
63
|
+
type: String,
|
|
64
|
+
default: 'medium',
|
|
65
|
+
validator: function validator(value) {
|
|
66
|
+
return [null, 'small', 'medium', 'large', 'full'].includes(value);
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
fillMode: {
|
|
70
|
+
type: String,
|
|
71
|
+
default: 'solid',
|
|
72
|
+
validator: function validator(value) {
|
|
73
|
+
return [null, 'solid', 'flat', 'outline'].includes(value);
|
|
74
|
+
}
|
|
75
|
+
},
|
|
55
76
|
required: Boolean,
|
|
56
77
|
placeholder: String,
|
|
57
78
|
tabIndex: Number,
|
|
@@ -71,11 +92,18 @@ var TextArea = {
|
|
|
71
92
|
},
|
|
72
93
|
computed: {
|
|
73
94
|
rootClassName: function rootClassName() {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
95
|
+
var _a;
|
|
96
|
+
|
|
97
|
+
var _b = this.$props,
|
|
98
|
+
size = _b.size,
|
|
99
|
+
fillMode = _b.fillMode,
|
|
100
|
+
rounded = _b.rounded,
|
|
101
|
+
required = _b.required;
|
|
102
|
+
var invalid = this.validityStyles === true ? !this.isValid : false;
|
|
103
|
+
return _a = {
|
|
104
|
+
'k-input': true,
|
|
105
|
+
'k-textarea': true
|
|
106
|
+
}, _a["k-input-" + (kendoThemeMaps.sizeMap[size] || size)] = size, _a["k-input-" + fillMode] = fillMode, _a["k-rounded-" + (kendoThemeMaps.roundedMap[rounded] || rounded)] = rounded, _a['k-disabled'] = this.$props.disabled, _a['k-valid'] = !invalid, _a['k-invalid'] = invalid, _a['k-required'] = required, _a;
|
|
79
107
|
},
|
|
80
108
|
computedValue: function computedValue() {
|
|
81
109
|
return this.$props.value !== undefined ? this.$props.value : this.$props.modelValue !== undefined ? this.$props.modelValue : this.currentValue;
|
|
@@ -142,7 +170,7 @@ var TextArea = {
|
|
|
142
170
|
|
|
143
171
|
var textarea = h('textarea', __assign(__assign({}, textAreaAttrs), {
|
|
144
172
|
attrs: this.v3 ? undefined : textAreaAttrs,
|
|
145
|
-
'class': 'k-input',
|
|
173
|
+
'class': 'k-input-inner',
|
|
146
174
|
ref: this.v3 ? function (el) {
|
|
147
175
|
_this.elementRef = el;
|
|
148
176
|
} : 'element',
|
|
@@ -171,7 +199,8 @@ var TextArea = {
|
|
|
171
199
|
dir: this.currentDir,
|
|
172
200
|
attrs: this.v3 ? undefined : {
|
|
173
201
|
dir: this.currentDir
|
|
174
|
-
}
|
|
202
|
+
},
|
|
203
|
+
style: this.$attrs.style
|
|
175
204
|
}, [textarea]);
|
|
176
205
|
},
|
|
177
206
|
methods: {
|
|
@@ -247,5 +276,5 @@ var TextArea = {
|
|
|
247
276
|
}
|
|
248
277
|
}
|
|
249
278
|
};
|
|
250
|
-
var
|
|
251
|
-
export { TextArea,
|
|
279
|
+
var TextArea = TextAreaVue2;
|
|
280
|
+
export { TextArea, TextAreaVue2 };
|
|
@@ -64,6 +64,43 @@ export interface TextAreaProps extends FormComponentProps {
|
|
|
64
64
|
* Defaults to `0`.
|
|
65
65
|
*/
|
|
66
66
|
tabIndex?: number;
|
|
67
|
+
/**
|
|
68
|
+
* Configures the `size` of the NumericTextBox.
|
|
69
|
+
*
|
|
70
|
+
* The available options are:
|
|
71
|
+
* - small
|
|
72
|
+
* - medium
|
|
73
|
+
* - large
|
|
74
|
+
* - null—Does not set a size `class`.
|
|
75
|
+
*
|
|
76
|
+
* @default `medium`
|
|
77
|
+
*/
|
|
78
|
+
size?: null | 'small' | 'medium' | 'large' | string;
|
|
79
|
+
/**
|
|
80
|
+
* Configures the `roundness` of the NumericTextBox.
|
|
81
|
+
*
|
|
82
|
+
* The available options are:
|
|
83
|
+
* - small
|
|
84
|
+
* - medium
|
|
85
|
+
* - large
|
|
86
|
+
* - full
|
|
87
|
+
* - null—Does not set a rounded `class`.
|
|
88
|
+
*
|
|
89
|
+
* @default `medium`
|
|
90
|
+
*/
|
|
91
|
+
rounded?: null | 'small' | 'medium' | 'large' | 'full' | string;
|
|
92
|
+
/**
|
|
93
|
+
* Configures the `fillMode` of the NumericTextBox.
|
|
94
|
+
*
|
|
95
|
+
* The available options are:
|
|
96
|
+
* - solid
|
|
97
|
+
* - outline
|
|
98
|
+
* - flat
|
|
99
|
+
* - null—Does not set a fillMode `class`.
|
|
100
|
+
*
|
|
101
|
+
* @default `solid`
|
|
102
|
+
*/
|
|
103
|
+
fillMode?: null | 'solid' | 'flat' | 'outline' | string;
|
|
67
104
|
/**
|
|
68
105
|
* Sets the value to be submitted ([see example]({% slug controlled_textarea %})).
|
|
69
106
|
*/
|
|
@@ -1,3 +1,9 @@
|
|
|
1
1
|
// @ts-ignore
|
|
2
2
|
import { DefineComponent } from 'vue';
|
|
3
|
-
|
|
3
|
+
// @ts-ignore
|
|
4
|
+
import * as Vue from 'vue';
|
|
5
|
+
// @ts-ignore
|
|
6
|
+
type Vue2type = Vue.default;
|
|
7
|
+
// @ts-ignore
|
|
8
|
+
import { RecordPropsDefinition, ComponentOptions } from 'vue/types/options';
|
|
9
|
+
export { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { DefineComponent } from '../additionalTypes';
|
|
2
|
-
import { RecordPropsDefinition, ComponentOptions } from 'vue/types/options';
|
|
1
|
+
import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from '../additionalTypes';
|
|
3
2
|
declare type DefaultData<V> = object | ((this: V) => {});
|
|
4
3
|
declare type DefaultMethods<V> = {
|
|
5
4
|
[key: string]: (this: V, ...args: any[]) => any;
|
|
@@ -67,8 +66,8 @@ export interface CheckboxComputed {
|
|
|
67
66
|
/**
|
|
68
67
|
* @hidden
|
|
69
68
|
*/
|
|
70
|
-
export interface CheckboxAll extends
|
|
69
|
+
export interface CheckboxAll extends Vue2type, CheckboxMethods, CheckboxState, CheckboxData, CheckboxComputed {
|
|
71
70
|
}
|
|
72
|
-
declare let
|
|
73
|
-
declare const
|
|
74
|
-
export { Checkbox,
|
|
71
|
+
declare let CheckboxVue2: ComponentOptions<CheckboxAll, DefaultData<CheckboxData>, DefaultMethods<CheckboxAll>, CheckboxComputed, RecordPropsDefinition<CheckboxProps>>;
|
|
72
|
+
declare const Checkbox: DefineComponent<CheckboxProps, any, CheckboxData, CheckboxComputed, CheckboxMethods, {}, {}, {}, string, CheckboxProps, CheckboxProps, {}>;
|
|
73
|
+
export { Checkbox, CheckboxVue2 };
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.CheckboxVue2 = exports.Checkbox = void 0; // @ts-ignore
|
|
7
7
|
|
|
8
8
|
var Vue = require("vue");
|
|
9
9
|
|
|
@@ -20,7 +20,7 @@ var kendo_vue_intl_1 = require("@progress/kendo-vue-intl");
|
|
|
20
20
|
|
|
21
21
|
var messages_1 = require("./../messages");
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var CheckboxVue2 = {
|
|
24
24
|
name: 'KendoCheckbox',
|
|
25
25
|
// @ts-ignore
|
|
26
26
|
emits: {
|
|
@@ -65,6 +65,20 @@ var Checkbox = {
|
|
|
65
65
|
labelPlacement: String,
|
|
66
66
|
labelOptional: Boolean,
|
|
67
67
|
name: String,
|
|
68
|
+
size: {
|
|
69
|
+
type: String,
|
|
70
|
+
default: 'medium',
|
|
71
|
+
validator: function validator(value) {
|
|
72
|
+
return [null, 'small', 'medium', 'large'].includes(value);
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
rounded: {
|
|
76
|
+
type: String,
|
|
77
|
+
default: 'medium',
|
|
78
|
+
validator: function validator(value) {
|
|
79
|
+
return [null, 'small', 'medium', 'large'].includes(value);
|
|
80
|
+
}
|
|
81
|
+
},
|
|
68
82
|
tabIndex: Number,
|
|
69
83
|
value: {
|
|
70
84
|
type: [String, Boolean],
|
|
@@ -171,20 +185,24 @@ var Checkbox = {
|
|
|
171
185
|
};
|
|
172
186
|
},
|
|
173
187
|
render: function render(createElement) {
|
|
188
|
+
var _a;
|
|
189
|
+
|
|
174
190
|
var h = gh || createElement;
|
|
175
|
-
var
|
|
176
|
-
ariaDescribedBy =
|
|
177
|
-
ariaLabelledBy =
|
|
178
|
-
disabled =
|
|
179
|
-
id =
|
|
180
|
-
label =
|
|
181
|
-
labelRender =
|
|
182
|
-
labelPlacement =
|
|
183
|
-
name =
|
|
184
|
-
labelOptional =
|
|
185
|
-
tabIndex =
|
|
186
|
-
required =
|
|
187
|
-
validityStyles =
|
|
191
|
+
var _b = this.$props,
|
|
192
|
+
ariaDescribedBy = _b.ariaDescribedBy,
|
|
193
|
+
ariaLabelledBy = _b.ariaLabelledBy,
|
|
194
|
+
disabled = _b.disabled,
|
|
195
|
+
id = _b.id,
|
|
196
|
+
label = _b.label,
|
|
197
|
+
labelRender = _b.labelRender,
|
|
198
|
+
labelPlacement = _b.labelPlacement,
|
|
199
|
+
name = _b.name,
|
|
200
|
+
labelOptional = _b.labelOptional,
|
|
201
|
+
tabIndex = _b.tabIndex,
|
|
202
|
+
required = _b.required,
|
|
203
|
+
validityStyles = _b.validityStyles,
|
|
204
|
+
size = _b.size,
|
|
205
|
+
rounded = _b.rounded;
|
|
188
206
|
var defaultSlot = kendo_vue_common_1.getDefaultSlots(this);
|
|
189
207
|
var renderedLabel = label;
|
|
190
208
|
this.localizationService = kendo_vue_intl_1.provideLocalizationService(this);
|
|
@@ -193,11 +211,9 @@ var Checkbox = {
|
|
|
193
211
|
var checkboxClasses = kendo_vue_common_1.classNames({
|
|
194
212
|
'k-state-disabled': disabled
|
|
195
213
|
});
|
|
196
|
-
var inputClasses = kendo_vue_common_1.classNames({
|
|
197
|
-
'k-checkbox': true
|
|
198
|
-
|
|
199
|
-
'k-state-invalid k-invalid': !(this.isValid || validityStyles !== undefined || validityStyles === true)
|
|
200
|
-
});
|
|
214
|
+
var inputClasses = kendo_vue_common_1.classNames((_a = {
|
|
215
|
+
'k-checkbox': true
|
|
216
|
+
}, _a["k-checkbox-" + kendo_vue_common_1.kendoThemeMaps.sizeMap[size]] = size, _a["k-rounded-" + kendo_vue_common_1.kendoThemeMaps.roundedMap[rounded]] = rounded, _a['k-state-indeterminate'] = this.indeterminateProp, _a['k-state-invalid k-invalid'] = !(this.isValid || validityStyles !== undefined || validityStyles === true), _a));
|
|
201
217
|
|
|
202
218
|
var checkboxInput = function checkboxInput() {
|
|
203
219
|
var _this = this;
|
|
@@ -360,6 +376,6 @@ var Checkbox = {
|
|
|
360
376
|
}
|
|
361
377
|
}
|
|
362
378
|
};
|
|
363
|
-
exports.
|
|
364
|
-
var
|
|
365
|
-
exports.
|
|
379
|
+
exports.CheckboxVue2 = CheckboxVue2;
|
|
380
|
+
var Checkbox = CheckboxVue2;
|
|
381
|
+
exports.Checkbox = Checkbox;
|
|
@@ -44,6 +44,30 @@ export interface CheckboxProps extends ToggleBaseProps, FormComponentProps {
|
|
|
44
44
|
* Sets the `id` of the Checkbox.
|
|
45
45
|
*/
|
|
46
46
|
id?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Configures the `size` of the Checkbox.
|
|
49
|
+
*
|
|
50
|
+
* The available options are:
|
|
51
|
+
* - small
|
|
52
|
+
* - medium
|
|
53
|
+
* - large
|
|
54
|
+
* - null—Does not set a size `className`.
|
|
55
|
+
*
|
|
56
|
+
* @default `medium`
|
|
57
|
+
*/
|
|
58
|
+
size?: null | 'small' | 'medium' | 'large' | string;
|
|
59
|
+
/**
|
|
60
|
+
* Configures the `rounded` style of the Checkbox.
|
|
61
|
+
*
|
|
62
|
+
* The available options are:
|
|
63
|
+
* - small
|
|
64
|
+
* - medium
|
|
65
|
+
* - large
|
|
66
|
+
* - null—Does not set a rounded `className`.
|
|
67
|
+
*
|
|
68
|
+
* @default `medium`
|
|
69
|
+
*/
|
|
70
|
+
rounded?: null | 'small' | 'medium' | 'large' | string;
|
|
47
71
|
/**
|
|
48
72
|
* Identifies the element(s) which will describe the component, similar to [HTML aria-describedby attribute](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_aria-describedby_attribute).
|
|
49
73
|
* For example these elements could contain error or hint message.
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { DefineComponent } from '../additionalTypes';
|
|
2
|
-
import { RecordPropsDefinition, ComponentOptions } from 'vue/types/options';
|
|
1
|
+
import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from '../additionalTypes';
|
|
3
2
|
declare type DefaultData<V> = object | ((this: V) => {});
|
|
4
3
|
declare type DefaultMethods<V> = {
|
|
5
4
|
[key: string]: (this: V, ...args: any[]) => any;
|
|
@@ -24,6 +23,7 @@ export declare const DEFAULT_PRESET = "office";
|
|
|
24
23
|
export interface ColorPaletteState {
|
|
25
24
|
wrapper: HTMLDivElement | null;
|
|
26
25
|
paletteService: ColorPaletteService;
|
|
26
|
+
guid: string;
|
|
27
27
|
}
|
|
28
28
|
/**
|
|
29
29
|
* @hidden
|
|
@@ -48,8 +48,8 @@ export interface ColorPaletteData {
|
|
|
48
48
|
/**
|
|
49
49
|
* @hidden
|
|
50
50
|
*/
|
|
51
|
-
export interface ColorPaletteAll extends
|
|
51
|
+
export interface ColorPaletteAll extends Vue2type, ColorPaletteMethods, ColorPaletteData, ColorPaletteComputed, ColorPaletteState {
|
|
52
52
|
}
|
|
53
|
-
declare let
|
|
54
|
-
declare const
|
|
55
|
-
export { ColorPalette,
|
|
53
|
+
declare let ColorPaletteVue2: ComponentOptions<ColorPaletteAll, DefaultData<ColorPaletteData>, DefaultMethods<ColorPaletteAll>, ColorPaletteComputed, RecordPropsDefinition<ColorPaletteProps>>;
|
|
54
|
+
declare const ColorPalette: DefineComponent<ColorPaletteProps, any, ColorPaletteData, ColorPaletteComputed, ColorPaletteMethods, {}, {}, {}, string, ColorPaletteProps, ColorPaletteProps, {}>;
|
|
55
|
+
export { ColorPalette, ColorPaletteVue2 };
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.ColorPaletteVue2 = exports.ColorPalette = exports.DEFAULT_PRESET = exports.DEFAULT_COLUMNS_COUNT = exports.DEFAULT_TILE_SIZE = void 0; // @ts-ignore
|
|
7
7
|
|
|
8
8
|
var Vue = require("vue");
|
|
9
9
|
|
|
@@ -38,7 +38,7 @@ exports.DEFAULT_COLUMNS_COUNT = 10;
|
|
|
38
38
|
|
|
39
39
|
exports.DEFAULT_PRESET = 'office'; // tslint:enable:max-line-length
|
|
40
40
|
|
|
41
|
-
var
|
|
41
|
+
var ColorPaletteVue2 = {
|
|
42
42
|
name: 'KendoColorPalette',
|
|
43
43
|
props: {
|
|
44
44
|
palette: {
|
|
@@ -60,6 +60,7 @@ var ColorPalette = {
|
|
|
60
60
|
},
|
|
61
61
|
created: function created() {
|
|
62
62
|
kendo_vue_common_1.validatePackage(package_metadata_1.packageMetadata);
|
|
63
|
+
this.guid = kendo_vue_common_1.guid();
|
|
63
64
|
},
|
|
64
65
|
mounted: function mounted() {
|
|
65
66
|
this.wrapper = this.v3 ? this.wrapperRef : this.$refs.wrapper;
|
|
@@ -350,6 +351,6 @@ var ColorPalette = {
|
|
|
350
351
|
}
|
|
351
352
|
}
|
|
352
353
|
};
|
|
353
|
-
exports.
|
|
354
|
-
var
|
|
355
|
-
exports.
|
|
354
|
+
exports.ColorPaletteVue2 = ColorPaletteVue2;
|
|
355
|
+
var ColorPalette = ColorPaletteVue2;
|
|
356
|
+
exports.ColorPalette = ColorPalette;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { DefineComponent } from '../additionalTypes';
|
|
2
|
-
import { RecordPropsDefinition, ComponentOptions } from 'vue/types/options';
|
|
1
|
+
import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from '../additionalTypes';
|
|
3
2
|
declare type DefaultData<V> = object | ((this: V) => {});
|
|
4
3
|
declare type DefaultMethods<V> = {
|
|
5
4
|
[key: string]: (this: V, ...args: any[]) => any;
|
|
@@ -45,8 +44,8 @@ export interface ColorPickerData {
|
|
|
45
44
|
/**
|
|
46
45
|
* @hidden
|
|
47
46
|
*/
|
|
48
|
-
export interface ColorPickerAll extends
|
|
47
|
+
export interface ColorPickerAll extends Vue2type, ColorPickerMethods, ColorPickerData, ColorPickerComputed, ColorPickerState {
|
|
49
48
|
}
|
|
50
|
-
declare let
|
|
51
|
-
declare const
|
|
52
|
-
export { ColorPicker,
|
|
49
|
+
declare let ColorPickerVue2: ComponentOptions<ColorPickerAll, DefaultData<ColorPickerData>, DefaultMethods<ColorPickerAll>, ColorPickerComputed, RecordPropsDefinition<ColorPickerProps>>;
|
|
50
|
+
declare const ColorPicker: DefineComponent<ColorPickerProps, any, ColorPickerData, ColorPickerComputed, ColorPickerMethods, {}, {}, {}, string, ColorPickerProps, ColorPickerProps, {}>;
|
|
51
|
+
export { ColorPicker, ColorPickerVue2 };
|