@progress/kendo-vue-inputs 3.3.4 → 3.3.6-dev.202206170937
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 +11 -0
- package/dist/es/checkbox/Checkbox.d.ts +7 -1
- package/dist/es/checkbox/Checkbox.js +8 -0
- package/dist/es/colors/ColorPalette.d.ts +6 -0
- package/dist/es/colors/ColorPalette.js +8 -1
- package/dist/es/colors/ColorPicker.d.ts +6 -0
- package/dist/es/colors/ColorPicker.js +8 -1
- package/dist/es/colors/Picker.d.ts +6 -0
- package/dist/es/colors/Picker.js +8 -1
- package/dist/es/colors/interfaces/ColorPaletteChangeEvent.d.ts +3 -0
- package/dist/es/colors/interfaces/ColorPaletteProps.d.ts +4 -13
- package/dist/es/colors/interfaces/ColorPickerActiveColorClick.d.ts +3 -0
- package/dist/es/colors/interfaces/ColorPickerBlurEvent.d.ts +3 -0
- package/dist/es/colors/interfaces/ColorPickerChangeEvent.d.ts +3 -0
- package/dist/es/colors/interfaces/ColorPickerFocusEvent.d.ts +3 -0
- package/dist/es/colors/interfaces/ColorPickerPaletteSettings.d.ts +3 -0
- package/dist/es/colors/interfaces/ColorPickerPopupSettings.d.ts +3 -0
- package/dist/es/colors/interfaces/ColorPickerProps.d.ts +5 -2
- package/dist/es/colors/interfaces/ColorPickerView.d.ts +3 -0
- package/dist/es/input/Input.d.ts +19 -9
- package/dist/es/input/Input.js +19 -3
- package/dist/es/input-separator/InputSeparator.d.ts +19 -0
- package/dist/es/input-separator/InputSeparator.js +35 -0
- package/dist/es/main.d.ts +1 -0
- package/dist/es/main.js +1 -0
- package/dist/es/maskedtextbox/MaskedTextBox.d.ts +4 -1
- package/dist/es/maskedtextbox/MaskedTextBox.js +95 -20
- package/dist/es/maskedtextbox/MaskedTextBoxProps.d.ts +32 -0
- package/dist/es/numerictextbox/NumericTextBox.d.ts +6 -0
- package/dist/es/numerictextbox/NumericTextBox.js +101 -8
- package/dist/es/numerictextbox/interfaces/NumericTextBoxProps.d.ts +43 -3
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/radiobutton/RadioButton.d.ts +7 -1
- package/dist/es/radiobutton/RadioButton.js +8 -0
- package/dist/es/radiobutton/RadioGroup.d.ts +7 -1
- package/dist/es/radiobutton/RadioGroup.js +8 -0
- package/dist/es/range-slider/RangeSlider.d.ts +8 -0
- package/dist/es/range-slider/RangeSlider.js +10 -0
- package/dist/es/slider/Slider.d.ts +8 -2
- package/dist/es/slider/Slider.js +8 -0
- package/dist/es/slider/SliderLabel.d.ts +8 -0
- package/dist/es/slider/SliderLabel.js +10 -1
- package/dist/es/switch/Switch.d.ts +8 -0
- package/dist/es/switch/Switch.js +10 -1
- package/dist/es/textarea/TextArea.d.ts +36 -0
- package/dist/es/textarea/TextArea.js +171 -30
- package/dist/es/textarea/interfaces/TextAreaFlow.d.ts +8 -0
- package/dist/es/{numerictextbox/interfaces/NumericTextBoxHandle.js → textarea/interfaces/TextAreaFlow.js} +0 -0
- package/dist/es/textarea/interfaces/TextAreaProps.d.ts +49 -0
- package/dist/es/textarea/interfaces/TextAreaResize.d.ts +10 -0
- package/dist/es/textarea/interfaces/TextAreaResize.js +0 -0
- package/dist/npm/additionalTypes.ts +11 -0
- package/dist/npm/checkbox/Checkbox.d.ts +7 -1
- package/dist/npm/checkbox/Checkbox.js +8 -0
- package/dist/npm/colors/ColorPalette.d.ts +6 -0
- package/dist/npm/colors/ColorPalette.js +8 -1
- package/dist/npm/colors/ColorPicker.d.ts +6 -0
- package/dist/npm/colors/ColorPicker.js +8 -1
- package/dist/npm/colors/Picker.d.ts +6 -0
- package/dist/npm/colors/Picker.js +8 -1
- package/dist/npm/colors/interfaces/ColorPaletteChangeEvent.d.ts +3 -0
- package/dist/npm/colors/interfaces/ColorPaletteProps.d.ts +4 -13
- package/dist/npm/colors/interfaces/ColorPickerActiveColorClick.d.ts +3 -0
- package/dist/npm/colors/interfaces/ColorPickerBlurEvent.d.ts +3 -0
- package/dist/npm/colors/interfaces/ColorPickerChangeEvent.d.ts +3 -0
- package/dist/npm/colors/interfaces/ColorPickerFocusEvent.d.ts +3 -0
- package/dist/npm/colors/interfaces/ColorPickerPaletteSettings.d.ts +3 -0
- package/dist/npm/colors/interfaces/ColorPickerPopupSettings.d.ts +3 -0
- package/dist/npm/colors/interfaces/ColorPickerProps.d.ts +5 -2
- package/dist/npm/colors/interfaces/ColorPickerView.d.ts +3 -0
- package/dist/npm/input/Input.d.ts +19 -9
- package/dist/npm/input/Input.js +19 -3
- package/dist/npm/input-separator/InputSeparator.d.ts +19 -0
- package/dist/npm/input-separator/InputSeparator.js +46 -0
- package/dist/npm/main.d.ts +1 -0
- package/dist/npm/main.js +1 -0
- package/dist/npm/maskedtextbox/MaskedTextBox.d.ts +4 -1
- package/dist/npm/maskedtextbox/MaskedTextBox.js +94 -19
- package/dist/npm/maskedtextbox/MaskedTextBoxProps.d.ts +32 -0
- package/dist/npm/numerictextbox/NumericTextBox.d.ts +6 -0
- package/dist/npm/numerictextbox/NumericTextBox.js +100 -7
- package/dist/npm/numerictextbox/interfaces/NumericTextBoxProps.d.ts +43 -3
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/radiobutton/RadioButton.d.ts +7 -1
- package/dist/npm/radiobutton/RadioButton.js +8 -0
- package/dist/npm/radiobutton/RadioGroup.d.ts +7 -1
- package/dist/npm/radiobutton/RadioGroup.js +8 -0
- package/dist/npm/range-slider/RangeSlider.d.ts +8 -0
- package/dist/npm/range-slider/RangeSlider.js +10 -0
- package/dist/npm/slider/Slider.d.ts +8 -2
- package/dist/npm/slider/Slider.js +8 -0
- package/dist/npm/slider/SliderLabel.d.ts +8 -0
- package/dist/npm/slider/SliderLabel.js +10 -1
- package/dist/npm/switch/Switch.d.ts +8 -0
- package/dist/npm/switch/Switch.js +10 -1
- package/dist/npm/textarea/TextArea.d.ts +36 -0
- package/dist/npm/textarea/TextArea.js +170 -29
- package/dist/npm/textarea/interfaces/TextAreaFlow.d.ts +8 -0
- package/dist/npm/textarea/interfaces/TextAreaFlow.js +2 -0
- package/dist/npm/textarea/interfaces/TextAreaProps.d.ts +49 -0
- package/dist/npm/textarea/interfaces/TextAreaResize.d.ts +10 -0
- package/dist/npm/textarea/interfaces/TextAreaResize.js +2 -0
- package/package.json +11 -10
- package/dist/es/numerictextbox/interfaces/NumericTextBoxHandle.d.ts +0 -39
- package/dist/npm/numerictextbox/interfaces/NumericTextBoxHandle.d.ts +0 -39
- package/dist/npm/numerictextbox/interfaces/NumericTextBoxHandle.js +0 -5
|
@@ -15,7 +15,7 @@ export interface SliderChangeEvent {
|
|
|
15
15
|
value: number;
|
|
16
16
|
}
|
|
17
17
|
/**
|
|
18
|
-
* Represents the props of the [Kendo UI for Vue Slider component]({% slug
|
|
18
|
+
* Represents the props of the [Kendo UI for Vue Slider component]({% slug overview_slider %}).
|
|
19
19
|
*/
|
|
20
20
|
export interface SliderProps extends FormComponentProps {
|
|
21
21
|
/**
|
|
@@ -62,7 +62,7 @@ export interface SliderProps extends FormComponentProps {
|
|
|
62
62
|
disabled?: boolean;
|
|
63
63
|
/**
|
|
64
64
|
* If `vertical` is set to `true`, the orientation of the Slider changes from horizontal to vertical
|
|
65
|
-
* ([see example]({% slug
|
|
65
|
+
* ([see example]({% slug orientation_slider %})).
|
|
66
66
|
*/
|
|
67
67
|
vertical?: boolean;
|
|
68
68
|
/**
|
|
@@ -125,6 +125,12 @@ export interface SliderComputed {
|
|
|
125
125
|
*/
|
|
126
126
|
export interface SliderAll extends Vue2type, SliderMethods, SliderComputed, SliderState, SliderData {
|
|
127
127
|
}
|
|
128
|
+
/**
|
|
129
|
+
* @hidden
|
|
130
|
+
*/
|
|
128
131
|
declare let SliderVue2: ComponentOptions<SliderAll, DefaultData<SliderData>, DefaultMethods<SliderAll>, SliderComputed, RecordPropsDefinition<SliderProps>>;
|
|
132
|
+
/**
|
|
133
|
+
* @hidden
|
|
134
|
+
*/
|
|
129
135
|
declare const Slider: DefineComponent<SliderProps, any, SliderData, SliderComputed, SliderMethods, {}, {}, {}, string, SliderProps, SliderProps, {}>;
|
|
130
136
|
export { Slider, SliderVue2 };
|
package/dist/es/slider/Slider.js
CHANGED
|
@@ -10,6 +10,10 @@ import { provideLocalizationService } from '@progress/kendo-vue-intl';
|
|
|
10
10
|
import { messages, sliderIncreaseValue, sliderDecreaseValue, sliderDragTitle } from './../messages';
|
|
11
11
|
import { SLIDER_LABEL_ATTRIBUTE } from './SliderLabel';
|
|
12
12
|
import { packageMetadata } from '../package-metadata';
|
|
13
|
+
/**
|
|
14
|
+
* @hidden
|
|
15
|
+
*/
|
|
16
|
+
|
|
13
17
|
var SliderVue2 = {
|
|
14
18
|
name: 'KendoSlider',
|
|
15
19
|
model: {
|
|
@@ -372,5 +376,9 @@ var SliderVue2 = {
|
|
|
372
376
|
}
|
|
373
377
|
}
|
|
374
378
|
};
|
|
379
|
+
/**
|
|
380
|
+
* @hidden
|
|
381
|
+
*/
|
|
382
|
+
|
|
375
383
|
var Slider = SliderVue2;
|
|
376
384
|
export { Slider, SliderVue2 };
|
|
@@ -52,6 +52,14 @@ export interface SliderLabelData {
|
|
|
52
52
|
*/
|
|
53
53
|
export interface SliderLabelAll extends Vue2type, SliderLabelMethods, SliderLabelData, SliderLabelState {
|
|
54
54
|
}
|
|
55
|
+
/**
|
|
56
|
+
* @hidden
|
|
57
|
+
*/
|
|
55
58
|
declare let SliderLabelVue2: ComponentOptions<SliderLabelAll, DefaultData<SliderLabelData>, DefaultMethods<SliderLabelAll>, {}, RecordPropsDefinition<SliderLabelProps>>;
|
|
59
|
+
/**
|
|
60
|
+
* Represents the Kendo UI for Vue Native SliderLabel component.
|
|
61
|
+
* ### props <span class='code'>[SliderLabelProps]({% slug api_inputs_sliderlabelprops %})</span>
|
|
62
|
+
* The props of the SliderLabel component.
|
|
63
|
+
*/
|
|
56
64
|
declare const SliderLabel: DefineComponent<SliderLabelProps, any, SliderLabelData, {}, SliderLabelMethods, {}, {}, {}, string, SliderLabelProps, SliderLabelProps, {}>;
|
|
57
65
|
export { SliderLabel, SliderLabelVue2 };
|
|
@@ -24,7 +24,10 @@ import { getDefaultSlots } from '@progress/kendo-vue-common';
|
|
|
24
24
|
* @hidden
|
|
25
25
|
*/
|
|
26
26
|
|
|
27
|
-
export var SLIDER_LABEL_ATTRIBUTE = 'data-slider-label';
|
|
27
|
+
export var SLIDER_LABEL_ATTRIBUTE = 'data-slider-label';
|
|
28
|
+
/**
|
|
29
|
+
* @hidden
|
|
30
|
+
*/
|
|
28
31
|
|
|
29
32
|
var SliderLabelVue2 = {
|
|
30
33
|
name: 'KendoSliderLabel',
|
|
@@ -107,5 +110,11 @@ var SliderLabelVue2 = {
|
|
|
107
110
|
}
|
|
108
111
|
}
|
|
109
112
|
};
|
|
113
|
+
/**
|
|
114
|
+
* Represents the Kendo UI for Vue Native SliderLabel component.
|
|
115
|
+
* ### props <span class='code'>[SliderLabelProps]({% slug api_inputs_sliderlabelprops %})</span>
|
|
116
|
+
* The props of the SliderLabel component.
|
|
117
|
+
*/
|
|
118
|
+
|
|
110
119
|
var SliderLabel = SliderLabelVue2;
|
|
111
120
|
export { SliderLabel, SliderLabelVue2 };
|
|
@@ -169,6 +169,14 @@ export interface SwitchData {
|
|
|
169
169
|
*/
|
|
170
170
|
export interface SwitchAll extends Vue2type, SwitchMethods, SwitchData, SwitchComputed, SwitchState {
|
|
171
171
|
}
|
|
172
|
+
/**
|
|
173
|
+
* @hidden
|
|
174
|
+
*/
|
|
172
175
|
declare let SwitchVue2: ComponentOptions<SwitchAll, DefaultData<SwitchData>, DefaultMethods<SwitchAll>, SwitchComputed, RecordPropsDefinition<SwitchProps>>;
|
|
176
|
+
/**
|
|
177
|
+
* Represents the [Kendo UI for Vue Native Switch component]({% slug overview_switch %}).
|
|
178
|
+
* Accepts properties of type [SwitchProps]({% slug api_inputs_switchprops %}).
|
|
179
|
+
* Obtaining the `ref` returns an object of type [SwitchHandle]({% slug api_inputs_switchhandle %}).
|
|
180
|
+
*/
|
|
173
181
|
declare const Switch: DefineComponent<SwitchProps, any, SwitchData, SwitchComputed, SwitchMethods, {}, {}, {}, string, SwitchProps, SwitchProps, {}>;
|
|
174
182
|
export { Switch, SwitchVue2 };
|
package/dist/es/switch/Switch.js
CHANGED
|
@@ -5,7 +5,10 @@ var gh = allVue.h;
|
|
|
5
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';
|
|
8
|
+
import { packageMetadata } from '../package-metadata';
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
9
12
|
|
|
10
13
|
var SwitchVue2 = {
|
|
11
14
|
name: 'KendoSwitch',
|
|
@@ -334,5 +337,11 @@ var SwitchVue2 = {
|
|
|
334
337
|
}
|
|
335
338
|
}
|
|
336
339
|
};
|
|
340
|
+
/**
|
|
341
|
+
* Represents the [Kendo UI for Vue Native Switch component]({% slug overview_switch %}).
|
|
342
|
+
* Accepts properties of type [SwitchProps]({% slug api_inputs_switchprops %}).
|
|
343
|
+
* Obtaining the `ref` returns an object of type [SwitchHandle]({% slug api_inputs_switchhandle %}).
|
|
344
|
+
*/
|
|
345
|
+
|
|
337
346
|
var Switch = SwitchVue2;
|
|
338
347
|
export { Switch, SwitchVue2 };
|
|
@@ -40,6 +40,42 @@ export interface TextAreaData {
|
|
|
40
40
|
*/
|
|
41
41
|
export interface TextAreaAll extends Vue2type, TextAreaMethods, TextAreaData, TextAreaComputed, TextAreaState {
|
|
42
42
|
}
|
|
43
|
+
/**
|
|
44
|
+
* @hidden
|
|
45
|
+
*/
|
|
43
46
|
declare let TextAreaVue2: ComponentOptions<TextAreaAll, DefaultData<TextAreaData>, DefaultMethods<TextAreaAll>, TextAreaComputed, RecordPropsDefinition<TextAreaProps>>;
|
|
47
|
+
/**
|
|
48
|
+
* Represents the [Kendo UI for Vue Native TextArea component]({% slug overview_textarea %}).
|
|
49
|
+
*
|
|
50
|
+
* Accepts properties of type [TextAreaProps]({% slug api_inputs_textareaprops %}).
|
|
51
|
+
* Obtaining the `ref` returns an object of type [TextAreaHandle]({% slug api_inputs_textareahandle %}).
|
|
52
|
+
*
|
|
53
|
+
*
|
|
54
|
+
* ```jsx
|
|
55
|
+
* <template>
|
|
56
|
+
* <k-form
|
|
57
|
+
* @submit="handleSubmit">
|
|
58
|
+
* <formcontent />
|
|
59
|
+
* </k-form>
|
|
60
|
+
* </template>
|
|
61
|
+
* <script>
|
|
62
|
+
* import { Form } from "@progress/kendo-vue-form";
|
|
63
|
+
* import FormContent from './FormContent.vue';
|
|
64
|
+
*
|
|
65
|
+
* export default {
|
|
66
|
+
* components: {
|
|
67
|
+
* 'k-form': Form,
|
|
68
|
+
* 'formcontent': FormContent
|
|
69
|
+
* },
|
|
70
|
+
* methods: {
|
|
71
|
+
* handleSubmit (dataItem) {
|
|
72
|
+
* alert(JSON.stringify(dataItem, null, 2));
|
|
73
|
+
* }
|
|
74
|
+
* }
|
|
75
|
+
* };
|
|
76
|
+
*
|
|
77
|
+
* </script>
|
|
78
|
+
* ```
|
|
79
|
+
*/
|
|
44
80
|
declare const TextArea: DefineComponent<TextAreaProps, any, TextAreaData, TextAreaComputed, TextAreaMethods, {}, {}, {}, string, TextAreaProps, TextAreaProps, {}>;
|
|
45
81
|
export { TextArea, TextAreaVue2 };
|
|
@@ -18,9 +18,12 @@ 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, kendoThemeMaps // useDir,
|
|
21
|
+
import { guid, isRtl, getTabIndex, validatePackage, kendoThemeMaps, templateDefinition, templateRendering, getListeners, getTemplate // useDir,
|
|
22
22
|
} from '@progress/kendo-vue-common';
|
|
23
|
-
import { packageMetadata } from '../package-metadata';
|
|
23
|
+
import { packageMetadata } from '../package-metadata';
|
|
24
|
+
/**
|
|
25
|
+
* @hidden
|
|
26
|
+
*/
|
|
24
27
|
|
|
25
28
|
var TextAreaVue2 = {
|
|
26
29
|
name: 'KendoTextArea',
|
|
@@ -84,6 +87,28 @@ var TextAreaVue2 = {
|
|
|
84
87
|
validityStyles: {
|
|
85
88
|
type: Boolean,
|
|
86
89
|
default: true
|
|
90
|
+
},
|
|
91
|
+
iconName: String,
|
|
92
|
+
inputPrefix: templateDefinition,
|
|
93
|
+
inputSuffix: templateDefinition,
|
|
94
|
+
showValidationIcon: Boolean,
|
|
95
|
+
showLoadingIcon: Boolean,
|
|
96
|
+
showClearButton: Boolean,
|
|
97
|
+
inputClass: String,
|
|
98
|
+
wrapperClass: String,
|
|
99
|
+
flow: {
|
|
100
|
+
type: String,
|
|
101
|
+
default: 'horizontal',
|
|
102
|
+
validator: function validator(value) {
|
|
103
|
+
return ['horizontal', 'vertical'].includes(value);
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
resizable: {
|
|
107
|
+
type: String,
|
|
108
|
+
default: 'vertical',
|
|
109
|
+
validator: function validator(value) {
|
|
110
|
+
return ['both', 'horizontal', 'vertical', 'none'].includes(value);
|
|
111
|
+
}
|
|
87
112
|
}
|
|
88
113
|
},
|
|
89
114
|
created: function created() {
|
|
@@ -98,12 +123,46 @@ var TextAreaVue2 = {
|
|
|
98
123
|
size = _b.size,
|
|
99
124
|
fillMode = _b.fillMode,
|
|
100
125
|
rounded = _b.rounded,
|
|
101
|
-
required = _b.required
|
|
126
|
+
required = _b.required,
|
|
127
|
+
showLoadingIcon = _b.showLoadingIcon,
|
|
128
|
+
resizable = _b.resizable,
|
|
129
|
+
autoSize = _b.autoSize;
|
|
102
130
|
var invalid = this.validityStyles === true ? !this.isValid : false;
|
|
103
131
|
return _a = {
|
|
104
132
|
'k-input': true,
|
|
105
133
|
'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-invalid'] = invalid, _a['k-required'] = required, _a;
|
|
134
|
+
}, _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-invalid'] = invalid, _a['k-required'] = required, _a['k-loading'] = showLoadingIcon, _a["k-resize-" + resizable] = autoSize ? 'none' : resizable, _a['!k-flex-col'] = this.flow === 'vertical', _a['!k-flex-row'] = this.flow === 'horizontal', _a[this.wrapperClass] = this.wrapperClass, _a;
|
|
135
|
+
},
|
|
136
|
+
inputInnerClass: function inputInnerClass() {
|
|
137
|
+
var _a;
|
|
138
|
+
|
|
139
|
+
return _a = {
|
|
140
|
+
'k-input-inner': true,
|
|
141
|
+
'!k-resize-none': true,
|
|
142
|
+
'k-flex': true
|
|
143
|
+
}, _a[this.inputClass] = this.inputClass, _a;
|
|
144
|
+
},
|
|
145
|
+
prefixRenderClass: function prefixRenderClass() {
|
|
146
|
+
return {
|
|
147
|
+
'k-input-prefix': true,
|
|
148
|
+
'!k-flex-col': this.flow === 'horizontal',
|
|
149
|
+
'!k-flex-row': this.flow === 'vertical',
|
|
150
|
+
'!k-align-items-start': this.flow === 'horizontal'
|
|
151
|
+
};
|
|
152
|
+
},
|
|
153
|
+
suffixRenderClass: function suffixRenderClass() {
|
|
154
|
+
return {
|
|
155
|
+
'k-input-suffix': true,
|
|
156
|
+
'!k-flex-col': this.flow === 'horizontal',
|
|
157
|
+
'!k-flex-row': this.flow === 'vertical',
|
|
158
|
+
'!k-align-items-start': this.flow === 'horizontal'
|
|
159
|
+
};
|
|
160
|
+
},
|
|
161
|
+
suffixIconWrapClass: function suffixIconWrapClass() {
|
|
162
|
+
return {
|
|
163
|
+
'k-flex-wrap': true,
|
|
164
|
+
'!k-align-items-start': true
|
|
165
|
+
};
|
|
107
166
|
},
|
|
108
167
|
computedValue: function computedValue() {
|
|
109
168
|
return this.$props.value !== undefined ? this.$props.value : this.$props.modelValue !== undefined ? this.$props.modelValue : this.currentValue;
|
|
@@ -119,6 +178,11 @@ var TextAreaVue2 = {
|
|
|
119
178
|
currentDir: 'ltr'
|
|
120
179
|
};
|
|
121
180
|
},
|
|
181
|
+
watch: {
|
|
182
|
+
size: function size() {
|
|
183
|
+
this.textAreaHeight = 'auto';
|
|
184
|
+
}
|
|
185
|
+
},
|
|
122
186
|
mounted: function mounted() {
|
|
123
187
|
this.element = this.v3 ? this.elementRef : this.$refs.element;
|
|
124
188
|
this.currentDir = this.$props.dir !== undefined ? this.$props.dir : isRtl(this.$el) ? 'rtl' : 'ltr';
|
|
@@ -151,7 +215,11 @@ var TextAreaVue2 = {
|
|
|
151
215
|
id = _a.id,
|
|
152
216
|
name = _a.name,
|
|
153
217
|
placeholder = _a.placeholder,
|
|
154
|
-
tabIndex = _a.tabIndex
|
|
218
|
+
tabIndex = _a.tabIndex,
|
|
219
|
+
iconName = _a.iconName,
|
|
220
|
+
showValidationIcon = _a.showValidationIcon,
|
|
221
|
+
showLoadingIcon = _a.showLoadingIcon,
|
|
222
|
+
showClearButton = _a.showClearButton;
|
|
155
223
|
|
|
156
224
|
var textAreaAttrs = __assign({
|
|
157
225
|
id: id || this.calculatedId,
|
|
@@ -168,14 +236,31 @@ var TextAreaVue2 = {
|
|
|
168
236
|
'aria-disabled': disabled || undefined
|
|
169
237
|
}, this.$attrs);
|
|
170
238
|
|
|
239
|
+
var inputPrefixTemplate = templateRendering.call(this, this.$props.inputPrefix, getListeners.call(this));
|
|
240
|
+
var inputSuffixTemplate = templateRendering.call(this, this.$props.inputSuffix, getListeners.call(this));
|
|
241
|
+
var inputPrefix = getTemplate.call(this, {
|
|
242
|
+
h: h,
|
|
243
|
+
template: inputPrefixTemplate,
|
|
244
|
+
additionalProps: {
|
|
245
|
+
value: this.computedValue,
|
|
246
|
+
valid: this.isValid
|
|
247
|
+
}
|
|
248
|
+
});
|
|
249
|
+
var inputSuffix = getTemplate.call(this, {
|
|
250
|
+
h: h,
|
|
251
|
+
template: inputSuffixTemplate,
|
|
252
|
+
additionalProps: {
|
|
253
|
+
value: this.computedValue,
|
|
254
|
+
valid: this.isValid
|
|
255
|
+
}
|
|
256
|
+
});
|
|
171
257
|
var textarea = h('textarea', __assign(__assign({}, textAreaAttrs), {
|
|
172
258
|
attrs: this.v3 ? undefined : textAreaAttrs,
|
|
173
|
-
|
|
259
|
+
class: this.inputInnerClass,
|
|
174
260
|
ref: this.v3 ? function (el) {
|
|
175
261
|
_this.elementRef = el;
|
|
176
262
|
} : 'element',
|
|
177
263
|
style: autoSize ? {
|
|
178
|
-
resize: 'none',
|
|
179
264
|
overflow: 'hidden',
|
|
180
265
|
height: this.textAreaHeight
|
|
181
266
|
} : {},
|
|
@@ -196,12 +281,44 @@ var TextAreaVue2 = {
|
|
|
196
281
|
}));
|
|
197
282
|
return h("span", {
|
|
198
283
|
"class": this.rootClassName,
|
|
199
|
-
dir: this.currentDir,
|
|
284
|
+
dir: this.currentDir === 'rtl' ? this.currentDir : '',
|
|
200
285
|
attrs: this.v3 ? undefined : {
|
|
201
|
-
dir: this.currentDir
|
|
286
|
+
dir: this.currentDir === 'rtl' ? this.currentDir : ''
|
|
202
287
|
},
|
|
203
288
|
style: this.$attrs.style
|
|
204
|
-
}, [
|
|
289
|
+
}, [this.$props.inputPrefix && h("span", {
|
|
290
|
+
"class": this.prefixRenderClass
|
|
291
|
+
}, [inputPrefix]), h("span", {
|
|
292
|
+
"class": "k-hstack k-flex"
|
|
293
|
+
}, [iconName && h("span", {
|
|
294
|
+
"class": "k-flex-wrap"
|
|
295
|
+
}, [h("span", {
|
|
296
|
+
"class": "k-input-icon k-icon k-i-" + iconName
|
|
297
|
+
})]), textarea, showValidationIcon && this.isValid && h("span", {
|
|
298
|
+
"class": this.suffixIconWrapClass
|
|
299
|
+
}, [h("span", {
|
|
300
|
+
"class": "k-input-validation-icon k-icon k-i-check"
|
|
301
|
+
})]), showValidationIcon && !this.isValid && h("span", {
|
|
302
|
+
"class": this.suffixIconWrapClass
|
|
303
|
+
}, [h("span", {
|
|
304
|
+
"class": "k-input-validation-icon k-icon k-i-warning"
|
|
305
|
+
})]), showLoadingIcon && h("span", {
|
|
306
|
+
"class": this.suffixIconWrapClass
|
|
307
|
+
}, [h("span", {
|
|
308
|
+
"class": "k-input-loading-icon k-icon k-i-loading"
|
|
309
|
+
})]), showClearButton && this.computedValue && h("span", {
|
|
310
|
+
"class": this.suffixIconWrapClass
|
|
311
|
+
}, [h("span", {
|
|
312
|
+
onClick: this.clearClick,
|
|
313
|
+
on: this.v3 ? undefined : {
|
|
314
|
+
"click": this.clearClick
|
|
315
|
+
},
|
|
316
|
+
"class": "k-clear-value"
|
|
317
|
+
}, [h("span", {
|
|
318
|
+
"class": "k-icon k-i-x"
|
|
319
|
+
})])])]), this.$props.inputSuffix && h("span", {
|
|
320
|
+
"class": this.suffixRenderClass
|
|
321
|
+
}, [inputSuffix])]);
|
|
205
322
|
},
|
|
206
323
|
methods: {
|
|
207
324
|
setValidity: function setValidity() {
|
|
@@ -213,13 +330,16 @@ var TextAreaVue2 = {
|
|
|
213
330
|
this.textAreaHeight = this.element.scrollHeight + "px";
|
|
214
331
|
}
|
|
215
332
|
},
|
|
333
|
+
clearClick: function clearClick(event) {
|
|
334
|
+
this.emitUpdate(event, 'change', '');
|
|
335
|
+
},
|
|
216
336
|
focus: function focus() {
|
|
217
337
|
if (this.element) {
|
|
218
338
|
this.element.focus();
|
|
219
339
|
}
|
|
220
340
|
},
|
|
221
|
-
|
|
222
|
-
var newValue =
|
|
341
|
+
emitUpdate: function emitUpdate(event, eventName, value) {
|
|
342
|
+
var newValue = value;
|
|
223
343
|
|
|
224
344
|
if (!this.$props.disabled) {
|
|
225
345
|
this.textAreaHeight = 'auto';
|
|
@@ -229,7 +349,7 @@ var TextAreaVue2 = {
|
|
|
229
349
|
if (!this.$props.disabled) {
|
|
230
350
|
this.$emit('changemodel', newValue);
|
|
231
351
|
this.$emit('update:modelValue', newValue);
|
|
232
|
-
this.$emit(
|
|
352
|
+
this.$emit(eventName, {
|
|
233
353
|
event: event,
|
|
234
354
|
component: this,
|
|
235
355
|
name: this.element.name,
|
|
@@ -237,24 +357,11 @@ var TextAreaVue2 = {
|
|
|
237
357
|
});
|
|
238
358
|
}
|
|
239
359
|
},
|
|
360
|
+
handleChange: function handleChange(event) {
|
|
361
|
+
this.emitUpdate(event, 'change', event.target.value);
|
|
362
|
+
},
|
|
240
363
|
handleInput: function handleInput(event) {
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
if (!this.$props.disabled) {
|
|
244
|
-
this.textAreaHeight = 'auto';
|
|
245
|
-
this.currentValue = newValue;
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
if (!this.$props.disabled) {
|
|
249
|
-
this.$emit('changemodel', newValue);
|
|
250
|
-
this.$emit('update:modelValue', newValue);
|
|
251
|
-
this.$emit('input', {
|
|
252
|
-
event: event,
|
|
253
|
-
component: this,
|
|
254
|
-
name: this.element.name,
|
|
255
|
-
value: newValue
|
|
256
|
-
});
|
|
257
|
-
}
|
|
364
|
+
this.emitUpdate(event, 'input', event.target.value);
|
|
258
365
|
},
|
|
259
366
|
handleFocus: function handleFocus(event) {
|
|
260
367
|
if (!this.$props.disabled) {
|
|
@@ -276,5 +383,39 @@ var TextAreaVue2 = {
|
|
|
276
383
|
}
|
|
277
384
|
}
|
|
278
385
|
};
|
|
386
|
+
/**
|
|
387
|
+
* Represents the [Kendo UI for Vue Native TextArea component]({% slug overview_textarea %}).
|
|
388
|
+
*
|
|
389
|
+
* Accepts properties of type [TextAreaProps]({% slug api_inputs_textareaprops %}).
|
|
390
|
+
* Obtaining the `ref` returns an object of type [TextAreaHandle]({% slug api_inputs_textareahandle %}).
|
|
391
|
+
*
|
|
392
|
+
*
|
|
393
|
+
* ```jsx
|
|
394
|
+
* <template>
|
|
395
|
+
* <k-form
|
|
396
|
+
* @submit="handleSubmit">
|
|
397
|
+
* <formcontent />
|
|
398
|
+
* </k-form>
|
|
399
|
+
* </template>
|
|
400
|
+
* <script>
|
|
401
|
+
* import { Form } from "@progress/kendo-vue-form";
|
|
402
|
+
* import FormContent from './FormContent.vue';
|
|
403
|
+
*
|
|
404
|
+
* export default {
|
|
405
|
+
* components: {
|
|
406
|
+
* 'k-form': Form,
|
|
407
|
+
* 'formcontent': FormContent
|
|
408
|
+
* },
|
|
409
|
+
* methods: {
|
|
410
|
+
* handleSubmit (dataItem) {
|
|
411
|
+
* alert(JSON.stringify(dataItem, null, 2));
|
|
412
|
+
* }
|
|
413
|
+
* }
|
|
414
|
+
* };
|
|
415
|
+
*
|
|
416
|
+
* </script>
|
|
417
|
+
* ```
|
|
418
|
+
*/
|
|
419
|
+
|
|
279
420
|
var TextArea = TextAreaVue2;
|
|
280
421
|
export { TextArea, TextAreaVue2 };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Specifies the flow direction of the TextArea sections.
|
|
3
|
+
*
|
|
4
|
+
* The possible values are:
|
|
5
|
+
* * `vertical`(Default) —TextArea sections are placed from top to bottom.
|
|
6
|
+
* * `horizontal`—TextArea sections are placed from left to right in `ltr`, and from right to left in `rtl` mode.
|
|
7
|
+
*/
|
|
8
|
+
export declare type TextAreaFlow = 'horizontal' | 'vertical';
|
|
File without changes
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { FormComponentProps } from '@progress/kendo-vue-common';
|
|
2
2
|
import { TextAreaBlurEvent } from './TextAreaBlurEvent';
|
|
3
3
|
import { TextAreaChangeEvent } from './TextAreaChangeEvent';
|
|
4
|
+
import { TextAreaFlow } from './TextAreaFlow';
|
|
4
5
|
import { TextAreaFocusEvent } from './TextAreaFocusEvent';
|
|
6
|
+
import { TextAreaResize } from './TextAreaResize';
|
|
5
7
|
/**
|
|
6
8
|
* Represents the props of the [Kendo UI for Vue TextArea component]({% slug overview_textarea %}).
|
|
7
9
|
*/
|
|
@@ -105,7 +107,54 @@ export interface TextAreaProps extends FormComponentProps {
|
|
|
105
107
|
* Sets the value to be submitted ([see example]({% slug controlled_textarea %})).
|
|
106
108
|
*/
|
|
107
109
|
value?: string | string[] | number;
|
|
110
|
+
/**
|
|
111
|
+
* If set to `false`, no visual representation of the invalid state of the component will be applied.
|
|
112
|
+
*
|
|
113
|
+
* This property is part of the [FormComponentProps]({% slug api_common_formcomponentprops %}) interface.
|
|
114
|
+
*
|
|
115
|
+
* @default true
|
|
116
|
+
*/
|
|
108
117
|
validityStyles?: boolean;
|
|
118
|
+
/**
|
|
119
|
+
* Defines a string prop that controls the input icon.
|
|
120
|
+
*/
|
|
121
|
+
iconName?: String;
|
|
122
|
+
/**
|
|
123
|
+
* Defines if the inputPrefix will be shown. Accepts a slot name, a `render` function, or a Vue component.
|
|
124
|
+
*/
|
|
125
|
+
inputPrefix?: Boolean | String | Object | Function;
|
|
126
|
+
/**
|
|
127
|
+
* Defines if the inputSuffix will be shown. Accepts a slot name, a `render` function, or a Vue component.
|
|
128
|
+
*/
|
|
129
|
+
inputSuffix?: Boolean | String | Object | Function;
|
|
130
|
+
/**
|
|
131
|
+
* Defines a boolean prop that controls whether to show the validation icon. Defaults to 'false'.
|
|
132
|
+
*/
|
|
133
|
+
showValidationIcon?: Boolean;
|
|
134
|
+
/**
|
|
135
|
+
* Defines a boolean prop that controls whether to show the loading icon. Defaults to 'false'.
|
|
136
|
+
*/
|
|
137
|
+
showLoadingIcon?: Boolean;
|
|
138
|
+
/**
|
|
139
|
+
* Defines a boolean prop that controls whether to show the clear icon. Defaults to 'false'.
|
|
140
|
+
*/
|
|
141
|
+
showClearButton?: Boolean;
|
|
142
|
+
/**
|
|
143
|
+
* Defines additional class to the wrapper element.
|
|
144
|
+
*/
|
|
145
|
+
wrapperClass?: String;
|
|
146
|
+
/**
|
|
147
|
+
* Defines the flow direction of the TextArea sections.
|
|
148
|
+
*/
|
|
149
|
+
flow?: TextAreaFlow | String;
|
|
150
|
+
/**
|
|
151
|
+
* Defines the way the TextArea will resize.
|
|
152
|
+
*/
|
|
153
|
+
resizable?: TextAreaResize | String;
|
|
154
|
+
/**
|
|
155
|
+
* Defines additional class to the input element.
|
|
156
|
+
*/
|
|
157
|
+
inputClass?: String;
|
|
109
158
|
/**
|
|
110
159
|
* The event handler that will be fired when the changes the selected value.
|
|
111
160
|
*/
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Specifies the resize direction of the TextArea sections.
|
|
3
|
+
*
|
|
4
|
+
* The possible values are:
|
|
5
|
+
* `vertical`(Default) —TextArea can be resized only vertically.
|
|
6
|
+
* `horizontal`—TextArea can be resized only horizontally.
|
|
7
|
+
* `both`—TextArea can be resized both vertically and horizontally.
|
|
8
|
+
* `nont`—TextArea can not be manually resized.
|
|
9
|
+
*/
|
|
10
|
+
export declare type TextAreaResize = 'both' | 'horizontal' | 'vertical';
|
|
File without changes
|
|
@@ -2,9 +2,20 @@
|
|
|
2
2
|
import { DefineComponent } from 'vue';
|
|
3
3
|
// @ts-ignore
|
|
4
4
|
import * as Vue from 'vue';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* @hidden
|
|
8
|
+
*/
|
|
5
9
|
// @ts-ignore
|
|
6
10
|
type Vue2type = Vue.default;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* @hidden
|
|
14
|
+
*/
|
|
7
15
|
// @ts-ignore
|
|
8
16
|
import { RecordPropsDefinition, ComponentOptions } from 'vue/types/options';
|
|
17
|
+
/**
|
|
18
|
+
* @hidden
|
|
19
|
+
*/
|
|
9
20
|
// @ts-ignore
|
|
10
21
|
export { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type };
|
|
@@ -6,7 +6,7 @@ declare type DefaultMethods<V> = {
|
|
|
6
6
|
import { LocalizationService } from '@progress/kendo-vue-intl';
|
|
7
7
|
import { CheckboxProps } from './interfaces/CheckboxProps';
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* @hidden
|
|
10
10
|
*/
|
|
11
11
|
export interface CheckboxHandle {
|
|
12
12
|
element: any;
|
|
@@ -68,6 +68,12 @@ export interface CheckboxComputed {
|
|
|
68
68
|
*/
|
|
69
69
|
export interface CheckboxAll extends Vue2type, CheckboxMethods, CheckboxState, CheckboxData, CheckboxComputed {
|
|
70
70
|
}
|
|
71
|
+
/**
|
|
72
|
+
* @hidden
|
|
73
|
+
*/
|
|
71
74
|
declare let CheckboxVue2: ComponentOptions<CheckboxAll, DefaultData<CheckboxData>, DefaultMethods<CheckboxAll>, CheckboxComputed, RecordPropsDefinition<CheckboxProps>>;
|
|
75
|
+
/**
|
|
76
|
+
* @hidden
|
|
77
|
+
*/
|
|
72
78
|
declare const Checkbox: DefineComponent<CheckboxProps, any, CheckboxData, CheckboxComputed, CheckboxMethods, {}, {}, {}, string, CheckboxProps, CheckboxProps, {}>;
|
|
73
79
|
export { Checkbox, CheckboxVue2 };
|
|
@@ -19,6 +19,10 @@ var package_metadata_1 = require("../package-metadata");
|
|
|
19
19
|
var kendo_vue_intl_1 = require("@progress/kendo-vue-intl");
|
|
20
20
|
|
|
21
21
|
var messages_1 = require("./../messages");
|
|
22
|
+
/**
|
|
23
|
+
* @hidden
|
|
24
|
+
*/
|
|
25
|
+
|
|
22
26
|
|
|
23
27
|
var CheckboxVue2 = {
|
|
24
28
|
name: 'KendoCheckbox',
|
|
@@ -377,5 +381,9 @@ var CheckboxVue2 = {
|
|
|
377
381
|
}
|
|
378
382
|
};
|
|
379
383
|
exports.CheckboxVue2 = CheckboxVue2;
|
|
384
|
+
/**
|
|
385
|
+
* @hidden
|
|
386
|
+
*/
|
|
387
|
+
|
|
380
388
|
var Checkbox = CheckboxVue2;
|
|
381
389
|
exports.Checkbox = Checkbox;
|
|
@@ -50,6 +50,12 @@ export interface ColorPaletteData {
|
|
|
50
50
|
*/
|
|
51
51
|
export interface ColorPaletteAll extends Vue2type, ColorPaletteMethods, ColorPaletteData, ColorPaletteComputed, ColorPaletteState {
|
|
52
52
|
}
|
|
53
|
+
/**
|
|
54
|
+
* @hidden
|
|
55
|
+
*/
|
|
53
56
|
declare let ColorPaletteVue2: ComponentOptions<ColorPaletteAll, DefaultData<ColorPaletteData>, DefaultMethods<ColorPaletteAll>, ColorPaletteComputed, RecordPropsDefinition<ColorPaletteProps>>;
|
|
57
|
+
/**
|
|
58
|
+
* @hidden
|
|
59
|
+
*/
|
|
54
60
|
declare const ColorPalette: DefineComponent<ColorPaletteProps, any, ColorPaletteData, ColorPaletteComputed, ColorPaletteMethods, {}, {}, {}, string, ColorPaletteProps, ColorPaletteProps, {}>;
|
|
55
61
|
export { ColorPalette, ColorPaletteVue2 };
|
|
@@ -36,7 +36,10 @@ exports.DEFAULT_COLUMNS_COUNT = 10;
|
|
|
36
36
|
* @hidden
|
|
37
37
|
*/
|
|
38
38
|
|
|
39
|
-
exports.DEFAULT_PRESET = 'office';
|
|
39
|
+
exports.DEFAULT_PRESET = 'office';
|
|
40
|
+
/**
|
|
41
|
+
* @hidden
|
|
42
|
+
*/
|
|
40
43
|
|
|
41
44
|
var ColorPaletteVue2 = {
|
|
42
45
|
name: 'KendoColorPalette',
|
|
@@ -359,5 +362,9 @@ var ColorPaletteVue2 = {
|
|
|
359
362
|
}
|
|
360
363
|
};
|
|
361
364
|
exports.ColorPaletteVue2 = ColorPaletteVue2;
|
|
365
|
+
/**
|
|
366
|
+
* @hidden
|
|
367
|
+
*/
|
|
368
|
+
|
|
362
369
|
var ColorPalette = ColorPaletteVue2;
|
|
363
370
|
exports.ColorPalette = ColorPalette;
|
|
@@ -46,6 +46,12 @@ export interface ColorPickerData {
|
|
|
46
46
|
*/
|
|
47
47
|
export interface ColorPickerAll extends Vue2type, ColorPickerMethods, ColorPickerData, ColorPickerComputed, ColorPickerState {
|
|
48
48
|
}
|
|
49
|
+
/**
|
|
50
|
+
* @hidden
|
|
51
|
+
*/
|
|
49
52
|
declare let ColorPickerVue2: ComponentOptions<ColorPickerAll, DefaultData<ColorPickerData>, DefaultMethods<ColorPickerAll>, ColorPickerComputed, RecordPropsDefinition<ColorPickerProps>>;
|
|
53
|
+
/**
|
|
54
|
+
* @hidden
|
|
55
|
+
*/
|
|
50
56
|
declare const ColorPicker: DefineComponent<ColorPickerProps, any, ColorPickerData, ColorPickerComputed, ColorPickerMethods, {}, {}, {}, string, ColorPickerProps, ColorPickerProps, {}>;
|
|
51
57
|
export { ColorPicker, ColorPickerVue2 };
|