@progress/kendo-vue-inputs 3.10.2 → 3.11.0-dev.202305230751
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/checkbox/Checkbox.js +1 -0
- package/dist/es/colors/ColorPalette.js +1 -3
- package/dist/es/colors/ColorPicker.js +20 -14
- package/dist/es/colors/FlatColorPicker.js +3 -1
- package/dist/es/colors/interfaces/ColorPickerProps.d.ts +5 -2
- package/dist/es/input/Input.js +6 -2
- package/dist/es/maskedtextbox/MaskedTextBox.js +6 -2
- package/dist/es/numerictextbox/NumericTextBox.js +6 -2
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/range-slider/RangeSlider.js +1 -1
- package/dist/es/slider/Slider.js +14 -9
- package/dist/es/textarea/TextArea.js +6 -2
- package/dist/es/textbox/TextBox.d.ts +1 -1
- package/dist/es/textbox/TextBox.js +9 -5
- package/dist/esm/checkbox/Checkbox.js +1 -0
- package/dist/esm/colors/ColorPalette.js +1 -3
- package/dist/esm/colors/ColorPicker.js +20 -14
- package/dist/esm/colors/FlatColorPicker.js +3 -1
- package/dist/esm/colors/interfaces/ColorPickerProps.d.ts +5 -2
- package/dist/esm/input/Input.js +6 -2
- package/dist/esm/maskedtextbox/MaskedTextBox.js +6 -2
- package/dist/esm/numerictextbox/NumericTextBox.js +6 -2
- package/dist/esm/package-metadata.js +1 -1
- package/dist/esm/range-slider/RangeSlider.js +1 -1
- package/dist/esm/slider/Slider.js +14 -9
- package/dist/esm/textarea/TextArea.js +6 -2
- package/dist/esm/textbox/TextBox.d.ts +1 -1
- package/dist/esm/textbox/TextBox.js +9 -5
- package/dist/npm/checkbox/Checkbox.js +1 -0
- package/dist/npm/colors/ColorPalette.js +1 -3
- package/dist/npm/colors/ColorPicker.js +19 -13
- package/dist/npm/colors/FlatColorPicker.js +3 -1
- package/dist/npm/colors/interfaces/ColorPickerProps.d.ts +5 -2
- package/dist/npm/input/Input.js +6 -2
- package/dist/npm/maskedtextbox/MaskedTextBox.js +6 -2
- package/dist/npm/numerictextbox/NumericTextBox.js +6 -2
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/range-slider/RangeSlider.js +1 -1
- package/dist/npm/slider/Slider.js +14 -9
- package/dist/npm/textarea/TextArea.js +6 -2
- package/dist/npm/textbox/TextBox.d.ts +1 -1
- package/dist/npm/textbox/TextBox.js +9 -5
- package/package.json +13 -13
|
@@ -193,6 +193,7 @@ var CheckboxVue2 = {
|
|
|
193
193
|
this.defaultValidationMessage = this.localizeMessage(checkboxValidation);
|
|
194
194
|
this.optionalMessage = this.localizeMessage(checkboxOptionalText);
|
|
195
195
|
var checkboxClasses = classNames({
|
|
196
|
+
'k-checkbox-wrap': true,
|
|
196
197
|
'k-disabled': disabled
|
|
197
198
|
});
|
|
198
199
|
var inputClasses = classNames((_a = {
|
|
@@ -197,15 +197,13 @@ var ColorPaletteVue2 = {
|
|
|
197
197
|
role: "grid",
|
|
198
198
|
tabindex: getTabIndex(this.$props.tabIndex, this.$props.disabled),
|
|
199
199
|
ref: setRef(this, 'wrapper')
|
|
200
|
-
}, [h("div", {
|
|
201
|
-
"class": "k-colorpalette-table-wrap"
|
|
202
200
|
}, [h("table", {
|
|
203
201
|
"class": "k-colorpalette-table k-palette",
|
|
204
202
|
role: "presentation",
|
|
205
203
|
attrs: this.v3 ? undefined : {
|
|
206
204
|
role: "presentation"
|
|
207
205
|
}
|
|
208
|
-
}, [h("tbody", [renderRows.call(this, svc.colorRows, selectedCellCoords, focusedCellCoords)])])])
|
|
206
|
+
}, [h("tbody", [renderRows.call(this, svc.colorRows, selectedCellCoords, focusedCellCoords)])])]);
|
|
209
207
|
} else {
|
|
210
208
|
// In this way, the code prevents an eventual focus of the component when no cells are available.
|
|
211
209
|
// This is needed because upon focus the first cell gets focused.
|
|
@@ -18,7 +18,7 @@ var isV3 = allVue.version && allVue.version[0] === '3';
|
|
|
18
18
|
import { Button } from '@progress/kendo-vue-buttons';
|
|
19
19
|
import { classNames, Keys,
|
|
20
20
|
// useDir,
|
|
21
|
-
getTabIndex, guid, kendoThemeMaps, validatePackage, setRef, getRef } from '@progress/kendo-vue-common';
|
|
21
|
+
getTabIndex, guid, kendoThemeMaps, validatePackage, setRef, getRef, Icon, getIconName } from '@progress/kendo-vue-common';
|
|
22
22
|
import { packageMetadata } from '../package-metadata';
|
|
23
23
|
import { Picker } from './Picker';
|
|
24
24
|
import { FlatColorPicker } from './FlatColorPicker';
|
|
@@ -94,6 +94,7 @@ var ColorPickerVue2 = {
|
|
|
94
94
|
},
|
|
95
95
|
title: String,
|
|
96
96
|
icon: String,
|
|
97
|
+
svgIcon: Object,
|
|
97
98
|
iconClassName: String,
|
|
98
99
|
popupSettings: {
|
|
99
100
|
type: Object,
|
|
@@ -209,22 +210,21 @@ var ColorPickerVue2 = {
|
|
|
209
210
|
// @ts-ignore
|
|
210
211
|
render: function render(createElement) {
|
|
211
212
|
var _this2 = this;
|
|
212
|
-
var _a;
|
|
213
213
|
var _this = this;
|
|
214
214
|
var localizationService = provideLocalizationService(this);
|
|
215
215
|
// tslint:disable-next-line:max-line-length
|
|
216
216
|
var colorPickerLabelMessage = localizationService.toLanguageString(colorPickerDropdownButtonAriaLabel, messages[colorPickerDropdownButtonAriaLabel]);
|
|
217
217
|
var h = gh || createElement;
|
|
218
|
-
var
|
|
219
|
-
disabled =
|
|
220
|
-
tabIndex =
|
|
221
|
-
dir =
|
|
222
|
-
view =
|
|
223
|
-
selectedView =
|
|
224
|
-
showClearButton =
|
|
225
|
-
showPreview =
|
|
226
|
-
showButtons =
|
|
227
|
-
popupSettings =
|
|
218
|
+
var _a = this.$props,
|
|
219
|
+
disabled = _a.disabled,
|
|
220
|
+
tabIndex = _a.tabIndex,
|
|
221
|
+
dir = _a.dir,
|
|
222
|
+
view = _a.view,
|
|
223
|
+
selectedView = _a.selectedView,
|
|
224
|
+
showClearButton = _a.showClearButton,
|
|
225
|
+
showPreview = _a.showPreview,
|
|
226
|
+
showButtons = _a.showButtons,
|
|
227
|
+
popupSettings = _a.popupSettings;
|
|
228
228
|
var renderFlatColorPicker = function renderFlatColorPicker() {
|
|
229
229
|
return h(FlatColorPicker, __assign({
|
|
230
230
|
onKeydown: this.onKeyDownHandler,
|
|
@@ -303,8 +303,14 @@ var ColorPickerVue2 = {
|
|
|
303
303
|
'k-no-color': !this.computedValue,
|
|
304
304
|
'k-icon-color-preview': this.icon || this.iconClassName
|
|
305
305
|
})
|
|
306
|
-
}, [(this.iconClassName || this.icon) && h(
|
|
307
|
-
"class": classNames('k-color-preview-icon', this.iconClassName
|
|
306
|
+
}, [(this.iconClassName || this.icon || this.svgIcon) && h(Icon, {
|
|
307
|
+
"class": classNames('k-color-preview-icon', this.iconClassName),
|
|
308
|
+
name: getIconName(this.icon),
|
|
309
|
+
attrs: this.v3 ? undefined : {
|
|
310
|
+
name: getIconName(this.icon),
|
|
311
|
+
icon: this.svgIcon
|
|
312
|
+
},
|
|
313
|
+
icon: this.svgIcon
|
|
308
314
|
}), h("span", {
|
|
309
315
|
"class": "k-color-preview-mask",
|
|
310
316
|
style: {
|
|
@@ -222,7 +222,9 @@ var FlatColorPickerVue2 = {
|
|
|
222
222
|
"class": "k-coloreditor-header-actions k-hstack"
|
|
223
223
|
}, [
|
|
224
224
|
// @ts-ignore function children
|
|
225
|
-
h(ButtonGroup,
|
|
225
|
+
h(ButtonGroup, {
|
|
226
|
+
"class": "k-button-group-flat"
|
|
227
|
+
}, this.v3 ? function () {
|
|
226
228
|
return [
|
|
227
229
|
// @ts-ignore function children
|
|
228
230
|
h(Button, {
|
|
@@ -7,6 +7,7 @@ import { ColorPickerPaletteSettings } from './ColorPickerPaletteSettings';
|
|
|
7
7
|
import { ColorPickerView } from './ColorPickerView';
|
|
8
8
|
import { ColorGradientProps } from './ColorGradientProps';
|
|
9
9
|
import { FlatColorPickerProps } from '../FlatColorPicker';
|
|
10
|
+
import { SVGIcon } from '@progress/kendo-vue-common';
|
|
10
11
|
/**
|
|
11
12
|
* Represents the props of the [Kendo UI for Vue ColorPicker component]({% slug overview_colorpicker %}).
|
|
12
13
|
*/
|
|
@@ -76,11 +77,13 @@ export interface ColorPickerProps {
|
|
|
76
77
|
showButtons?: boolean;
|
|
77
78
|
/**
|
|
78
79
|
* Defines the name of an [existing icon in the Kendo UI for Vue theme]({% slug icons %}).
|
|
79
|
-
* You have to provide only the name of the icon without the `k-icon` or the `k-i-` prefixes.
|
|
80
|
-
* For example, `edit-tools` will be parsed to `k-icon k-i-edit-tools`
|
|
81
80
|
* ([see example]({% slug customizecolorpicker_colorpicker %}#toc-displaying-kendo-ui-icons)).
|
|
82
81
|
*/
|
|
83
82
|
icon?: string;
|
|
83
|
+
/**
|
|
84
|
+
* Defines an SVGIcon to be rendered within the ColorPicker button.
|
|
85
|
+
*/
|
|
86
|
+
svgIcon?: SVGIcon;
|
|
84
87
|
/**
|
|
85
88
|
* The class name which displays an icon in the ColorPicker button
|
|
86
89
|
* ([see example]({% slug customizecolorpicker_colorpicker %}#toc-displaying-custom-icons)).
|
package/dist/es/input/Input.js
CHANGED
|
@@ -262,8 +262,12 @@ var InputVue2 = {
|
|
|
262
262
|
},
|
|
263
263
|
icon: exclamationCircleIcon,
|
|
264
264
|
"class": "k-input-validation-icon"
|
|
265
|
-
}), showLoadingIcon && h(
|
|
266
|
-
|
|
265
|
+
}), showLoadingIcon && h(Icon, {
|
|
266
|
+
name: 'loading',
|
|
267
|
+
attrs: this.v3 ? undefined : {
|
|
268
|
+
name: 'loading'
|
|
269
|
+
},
|
|
270
|
+
"class": 'k-input-loading-icon'
|
|
267
271
|
}), showClearButton && this.computedValue && h("span", {
|
|
268
272
|
onClick: this.clearClick,
|
|
269
273
|
on: this.v3 ? undefined : {
|
|
@@ -480,8 +480,12 @@ var MaskedTextBoxVue2 = {
|
|
|
480
480
|
},
|
|
481
481
|
icon: exclamationCircleIcon,
|
|
482
482
|
"class": "k-input-validation-icon"
|
|
483
|
-
}), showLoadingIcon && h(
|
|
484
|
-
|
|
483
|
+
}), showLoadingIcon && h(Icon, {
|
|
484
|
+
name: 'loading',
|
|
485
|
+
attrs: this.v3 ? undefined : {
|
|
486
|
+
name: 'loading'
|
|
487
|
+
},
|
|
488
|
+
"class": 'k-input-loading-icon'
|
|
485
489
|
}), showClearButton && newValue && h("span", {
|
|
486
490
|
onClick: this.clearClick,
|
|
487
491
|
on: this.v3 ? undefined : {
|
|
@@ -585,8 +585,12 @@ var NumericTextBoxVue2 = {
|
|
|
585
585
|
},
|
|
586
586
|
icon: exclamationCircleIcon,
|
|
587
587
|
"class": "k-input-validation-icon"
|
|
588
|
-
}), showLoadingIcon && h(
|
|
589
|
-
|
|
588
|
+
}), showLoadingIcon && h(Icon, {
|
|
589
|
+
name: 'loading',
|
|
590
|
+
attrs: this.v3 ? undefined : {
|
|
591
|
+
name: 'loading'
|
|
592
|
+
},
|
|
593
|
+
"class": 'k-input-loading-icon'
|
|
590
594
|
}), showClearButton && this.computedValue !== undefined && this.computedValue !== null && h("span", {
|
|
591
595
|
onClick: this.clearClick,
|
|
592
596
|
on: this.v3 ? undefined : {
|
|
@@ -5,7 +5,7 @@ export var packageMetadata = {
|
|
|
5
5
|
name: '@progress/kendo-vue-inputs',
|
|
6
6
|
productName: 'Kendo UI for Vue',
|
|
7
7
|
productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
|
|
8
|
-
publishDate:
|
|
8
|
+
publishDate: 1684827609,
|
|
9
9
|
version: '',
|
|
10
10
|
licensingDocsUrl: 'https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning'
|
|
11
11
|
};
|
|
@@ -169,7 +169,7 @@ var RangeSliderVue2 = {
|
|
|
169
169
|
"aria-describedby": this.$props.ariaDescribedBy
|
|
170
170
|
},
|
|
171
171
|
dir: this.currentDir,
|
|
172
|
-
"class": classNames('k-
|
|
172
|
+
"class": classNames('k-slider', {
|
|
173
173
|
'k-rtl': this.currentDir === 'rtl',
|
|
174
174
|
'k-disabled': this.$props.disabled,
|
|
175
175
|
'k-slider-vertical': this.$props.vertical,
|
package/dist/es/slider/Slider.js
CHANGED
|
@@ -138,6 +138,11 @@ var SliderVue2 = {
|
|
|
138
138
|
var lS = provideLocalizationService(this);
|
|
139
139
|
var percentValue = (this.computedValue - this.$props.min) / (this.$props.max - this.$props.min) * 100;
|
|
140
140
|
var defaultSlot = getDefaultSlots(this);
|
|
141
|
+
var vertical = this.$props.vertical;
|
|
142
|
+
var increaseSvgArrow = this.currentDir === 'rtl' ? vertical ? caretAltUpIcon : caretAltLeftIcon : vertical ? caretAltUpIcon : caretAltRightIcon;
|
|
143
|
+
var decreaseSvgArrow = this.currentDir === 'rtl' ? vertical ? caretAltDownIcon : caretAltRightIcon : vertical ? caretAltDownIcon : caretAltLeftIcon;
|
|
144
|
+
var increaseFontArrow = this.currentDir === 'rtl' ? vertical ? 'caret-alt-up' : 'caret-alt-left' : vertical ? 'caret-alt-up' : 'caret-alt-right';
|
|
145
|
+
var decreaseFontArrow = this.currentDir === 'rtl' ? vertical ? 'caret-alt-down' : 'caret-alt-right' : vertical ? 'caret-alt-down' : 'caret-alt-left';
|
|
141
146
|
return h("div", {
|
|
142
147
|
dir: this.currentDir,
|
|
143
148
|
attrs: this.v3 ? undefined : {
|
|
@@ -154,7 +159,7 @@ var SliderVue2 = {
|
|
|
154
159
|
},
|
|
155
160
|
onBlur: this.onBlur,
|
|
156
161
|
onKeydown: this.onKeyDown,
|
|
157
|
-
"class": classNames('k-slider
|
|
162
|
+
"class": classNames('k-slider', {
|
|
158
163
|
'k-focus': this.currentFocused,
|
|
159
164
|
'k-disabled': this.$props.disabled,
|
|
160
165
|
'k-slider-horizontal': !this.$props.vertical,
|
|
@@ -169,14 +174,14 @@ var SliderVue2 = {
|
|
|
169
174
|
attrs: this.v3 ? undefined : {
|
|
170
175
|
type: "button",
|
|
171
176
|
tabindex: -1,
|
|
172
|
-
icon:
|
|
173
|
-
svgIcon:
|
|
177
|
+
icon: decreaseFontArrow,
|
|
178
|
+
svgIcon: decreaseSvgArrow,
|
|
174
179
|
rounded: 'full',
|
|
175
180
|
title: lS.toLanguageString(sliderDecreaseValue, messages[sliderDecreaseValue])
|
|
176
181
|
},
|
|
177
182
|
tabindex: -1,
|
|
178
|
-
icon:
|
|
179
|
-
svgIcon:
|
|
183
|
+
icon: decreaseFontArrow,
|
|
184
|
+
svgIcon: decreaseSvgArrow,
|
|
180
185
|
style: {
|
|
181
186
|
position: 'relative'
|
|
182
187
|
},
|
|
@@ -288,14 +293,14 @@ var SliderVue2 = {
|
|
|
288
293
|
attrs: this.v3 ? undefined : {
|
|
289
294
|
type: "button",
|
|
290
295
|
tabindex: -1,
|
|
291
|
-
icon:
|
|
292
|
-
svgIcon:
|
|
296
|
+
icon: increaseFontArrow,
|
|
297
|
+
svgIcon: increaseSvgArrow,
|
|
293
298
|
rounded: 'full',
|
|
294
299
|
title: lS.toLanguageString(sliderIncreaseValue, messages[sliderIncreaseValue])
|
|
295
300
|
},
|
|
296
301
|
tabindex: -1,
|
|
297
|
-
icon:
|
|
298
|
-
svgIcon:
|
|
302
|
+
icon: increaseFontArrow,
|
|
303
|
+
svgIcon: increaseSvgArrow,
|
|
299
304
|
rounded: 'full',
|
|
300
305
|
style: {
|
|
301
306
|
position: 'relative'
|
|
@@ -304,8 +304,12 @@ var TextAreaVue2 = {
|
|
|
304
304
|
"class": "k-input-validation-icon"
|
|
305
305
|
})]), showLoadingIcon && h("span", {
|
|
306
306
|
"class": this.suffixIconWrapClass
|
|
307
|
-
}, [h(
|
|
308
|
-
|
|
307
|
+
}, [h(Icon, {
|
|
308
|
+
name: 'loading',
|
|
309
|
+
attrs: this.v3 ? undefined : {
|
|
310
|
+
name: 'loading'
|
|
311
|
+
},
|
|
312
|
+
"class": 'k-input-loading-icon'
|
|
309
313
|
})]), showClearButton && this.computedValue && h("span", {
|
|
310
314
|
"class": this.suffixIconWrapClass
|
|
311
315
|
}, [h("span", {
|
|
@@ -175,7 +175,7 @@ export interface TextBoxMethods {
|
|
|
175
175
|
validity: () => any;
|
|
176
176
|
isInvalid: (state: any) => any;
|
|
177
177
|
setValidity: () => void;
|
|
178
|
-
|
|
178
|
+
handleInput?: () => void;
|
|
179
179
|
handleChange: (event: any) => void;
|
|
180
180
|
handleKeyup?: (event: any) => void;
|
|
181
181
|
handleKeydown?: (event: any) => void;
|
|
@@ -199,7 +199,7 @@ var TextBoxVue2 = {
|
|
|
199
199
|
keydown: this.handleKeydown,
|
|
200
200
|
keyup: this.handleKeyup,
|
|
201
201
|
keypress: this.handleKeypress,
|
|
202
|
-
input: this.
|
|
202
|
+
input: this.handleInput,
|
|
203
203
|
animationstart: this.handleAutoFill,
|
|
204
204
|
animationend: this.handleAutoFillEnd
|
|
205
205
|
},
|
|
@@ -209,7 +209,7 @@ var TextBoxVue2 = {
|
|
|
209
209
|
onChange: this.handleChange,
|
|
210
210
|
onFocus: this.emitFocus,
|
|
211
211
|
onBlur: this.emitBlur,
|
|
212
|
-
|
|
212
|
+
onInput: this.handleInput,
|
|
213
213
|
onAnimationstart: this.handleAutoFill,
|
|
214
214
|
onAnimationend: this.handleAutoFillEnd
|
|
215
215
|
}));
|
|
@@ -262,8 +262,12 @@ var TextBoxVue2 = {
|
|
|
262
262
|
},
|
|
263
263
|
icon: exclamationCircleIcon,
|
|
264
264
|
"class": "k-input-validation-icon"
|
|
265
|
-
}), showLoadingIcon && h(
|
|
266
|
-
|
|
265
|
+
}), showLoadingIcon && h(Icon, {
|
|
266
|
+
name: 'loading',
|
|
267
|
+
attrs: this.v3 ? undefined : {
|
|
268
|
+
name: 'loading'
|
|
269
|
+
},
|
|
270
|
+
"class": 'k-input-loading-icon'
|
|
267
271
|
}), showClearButton && this.computedValue && h("span", {
|
|
268
272
|
onClick: this.clearClick,
|
|
269
273
|
on: this.v3 ? undefined : {
|
|
@@ -361,7 +365,7 @@ var TextBoxVue2 = {
|
|
|
361
365
|
this._input.setCustomValidity(this.validity().valid ? '' : this.$props.validationMessage || '');
|
|
362
366
|
}
|
|
363
367
|
},
|
|
364
|
-
|
|
368
|
+
handleInput: function handleInput(event) {
|
|
365
369
|
this.emitUpdate(event, 'input', event.target.value);
|
|
366
370
|
},
|
|
367
371
|
handleChange: function handleChange(event) {
|
|
@@ -193,6 +193,7 @@ var CheckboxVue2 = {
|
|
|
193
193
|
this.defaultValidationMessage = this.localizeMessage(checkboxValidation);
|
|
194
194
|
this.optionalMessage = this.localizeMessage(checkboxOptionalText);
|
|
195
195
|
var checkboxClasses = classNames({
|
|
196
|
+
'k-checkbox-wrap': true,
|
|
196
197
|
'k-disabled': disabled
|
|
197
198
|
});
|
|
198
199
|
var inputClasses = classNames((_a = {
|
|
@@ -197,15 +197,13 @@ var ColorPaletteVue2 = {
|
|
|
197
197
|
role: "grid",
|
|
198
198
|
tabindex: getTabIndex(this.$props.tabIndex, this.$props.disabled),
|
|
199
199
|
ref: setRef(this, 'wrapper')
|
|
200
|
-
}, [h("div", {
|
|
201
|
-
"class": "k-colorpalette-table-wrap"
|
|
202
200
|
}, [h("table", {
|
|
203
201
|
"class": "k-colorpalette-table k-palette",
|
|
204
202
|
role: "presentation",
|
|
205
203
|
attrs: this.v3 ? undefined : {
|
|
206
204
|
role: "presentation"
|
|
207
205
|
}
|
|
208
|
-
}, [h("tbody", [renderRows.call(this, svc.colorRows, selectedCellCoords, focusedCellCoords)])])])
|
|
206
|
+
}, [h("tbody", [renderRows.call(this, svc.colorRows, selectedCellCoords, focusedCellCoords)])])]);
|
|
209
207
|
} else {
|
|
210
208
|
// In this way, the code prevents an eventual focus of the component when no cells are available.
|
|
211
209
|
// This is needed because upon focus the first cell gets focused.
|
|
@@ -18,7 +18,7 @@ var isV3 = allVue.version && allVue.version[0] === '3';
|
|
|
18
18
|
import { Button } from '@progress/kendo-vue-buttons';
|
|
19
19
|
import { classNames, Keys,
|
|
20
20
|
// useDir,
|
|
21
|
-
getTabIndex, guid, kendoThemeMaps, validatePackage, setRef, getRef } from '@progress/kendo-vue-common';
|
|
21
|
+
getTabIndex, guid, kendoThemeMaps, validatePackage, setRef, getRef, Icon, getIconName } from '@progress/kendo-vue-common';
|
|
22
22
|
import { packageMetadata } from '../package-metadata.js';
|
|
23
23
|
import { Picker } from './Picker.js';
|
|
24
24
|
import { FlatColorPicker } from './FlatColorPicker.js';
|
|
@@ -94,6 +94,7 @@ var ColorPickerVue2 = {
|
|
|
94
94
|
},
|
|
95
95
|
title: String,
|
|
96
96
|
icon: String,
|
|
97
|
+
svgIcon: Object,
|
|
97
98
|
iconClassName: String,
|
|
98
99
|
popupSettings: {
|
|
99
100
|
type: Object,
|
|
@@ -209,22 +210,21 @@ var ColorPickerVue2 = {
|
|
|
209
210
|
// @ts-ignore
|
|
210
211
|
render: function render(createElement) {
|
|
211
212
|
var _this2 = this;
|
|
212
|
-
var _a;
|
|
213
213
|
var _this = this;
|
|
214
214
|
var localizationService = provideLocalizationService(this);
|
|
215
215
|
// tslint:disable-next-line:max-line-length
|
|
216
216
|
var colorPickerLabelMessage = localizationService.toLanguageString(colorPickerDropdownButtonAriaLabel, messages[colorPickerDropdownButtonAriaLabel]);
|
|
217
217
|
var h = gh || createElement;
|
|
218
|
-
var
|
|
219
|
-
disabled =
|
|
220
|
-
tabIndex =
|
|
221
|
-
dir =
|
|
222
|
-
view =
|
|
223
|
-
selectedView =
|
|
224
|
-
showClearButton =
|
|
225
|
-
showPreview =
|
|
226
|
-
showButtons =
|
|
227
|
-
popupSettings =
|
|
218
|
+
var _a = this.$props,
|
|
219
|
+
disabled = _a.disabled,
|
|
220
|
+
tabIndex = _a.tabIndex,
|
|
221
|
+
dir = _a.dir,
|
|
222
|
+
view = _a.view,
|
|
223
|
+
selectedView = _a.selectedView,
|
|
224
|
+
showClearButton = _a.showClearButton,
|
|
225
|
+
showPreview = _a.showPreview,
|
|
226
|
+
showButtons = _a.showButtons,
|
|
227
|
+
popupSettings = _a.popupSettings;
|
|
228
228
|
var renderFlatColorPicker = function renderFlatColorPicker() {
|
|
229
229
|
return h(FlatColorPicker, __assign({
|
|
230
230
|
onKeydown: this.onKeyDownHandler,
|
|
@@ -303,8 +303,14 @@ var ColorPickerVue2 = {
|
|
|
303
303
|
'k-no-color': !this.computedValue,
|
|
304
304
|
'k-icon-color-preview': this.icon || this.iconClassName
|
|
305
305
|
})
|
|
306
|
-
}, [(this.iconClassName || this.icon) && h(
|
|
307
|
-
"class": classNames('k-color-preview-icon', this.iconClassName
|
|
306
|
+
}, [(this.iconClassName || this.icon || this.svgIcon) && h(Icon, {
|
|
307
|
+
"class": classNames('k-color-preview-icon', this.iconClassName),
|
|
308
|
+
name: getIconName(this.icon),
|
|
309
|
+
attrs: this.v3 ? undefined : {
|
|
310
|
+
name: getIconName(this.icon),
|
|
311
|
+
icon: this.svgIcon
|
|
312
|
+
},
|
|
313
|
+
icon: this.svgIcon
|
|
308
314
|
}), h("span", {
|
|
309
315
|
"class": "k-color-preview-mask",
|
|
310
316
|
style: {
|
|
@@ -222,7 +222,9 @@ var FlatColorPickerVue2 = {
|
|
|
222
222
|
"class": "k-coloreditor-header-actions k-hstack"
|
|
223
223
|
}, [
|
|
224
224
|
// @ts-ignore function children
|
|
225
|
-
h(ButtonGroup,
|
|
225
|
+
h(ButtonGroup, {
|
|
226
|
+
"class": "k-button-group-flat"
|
|
227
|
+
}, this.v3 ? function () {
|
|
226
228
|
return [
|
|
227
229
|
// @ts-ignore function children
|
|
228
230
|
h(Button, {
|
|
@@ -7,6 +7,7 @@ import { ColorPickerPaletteSettings } from './ColorPickerPaletteSettings';
|
|
|
7
7
|
import { ColorPickerView } from './ColorPickerView';
|
|
8
8
|
import { ColorGradientProps } from './ColorGradientProps';
|
|
9
9
|
import { FlatColorPickerProps } from '../FlatColorPicker';
|
|
10
|
+
import { SVGIcon } from '@progress/kendo-vue-common';
|
|
10
11
|
/**
|
|
11
12
|
* Represents the props of the [Kendo UI for Vue ColorPicker component]({% slug overview_colorpicker %}).
|
|
12
13
|
*/
|
|
@@ -76,11 +77,13 @@ export interface ColorPickerProps {
|
|
|
76
77
|
showButtons?: boolean;
|
|
77
78
|
/**
|
|
78
79
|
* Defines the name of an [existing icon in the Kendo UI for Vue theme]({% slug icons %}).
|
|
79
|
-
* You have to provide only the name of the icon without the `k-icon` or the `k-i-` prefixes.
|
|
80
|
-
* For example, `edit-tools` will be parsed to `k-icon k-i-edit-tools`
|
|
81
80
|
* ([see example]({% slug customizecolorpicker_colorpicker %}#toc-displaying-kendo-ui-icons)).
|
|
82
81
|
*/
|
|
83
82
|
icon?: string;
|
|
83
|
+
/**
|
|
84
|
+
* Defines an SVGIcon to be rendered within the ColorPicker button.
|
|
85
|
+
*/
|
|
86
|
+
svgIcon?: SVGIcon;
|
|
84
87
|
/**
|
|
85
88
|
* The class name which displays an icon in the ColorPicker button
|
|
86
89
|
* ([see example]({% slug customizecolorpicker_colorpicker %}#toc-displaying-custom-icons)).
|
package/dist/esm/input/Input.js
CHANGED
|
@@ -262,8 +262,12 @@ var InputVue2 = {
|
|
|
262
262
|
},
|
|
263
263
|
icon: exclamationCircleIcon,
|
|
264
264
|
"class": "k-input-validation-icon"
|
|
265
|
-
}), showLoadingIcon && h(
|
|
266
|
-
|
|
265
|
+
}), showLoadingIcon && h(Icon, {
|
|
266
|
+
name: 'loading',
|
|
267
|
+
attrs: this.v3 ? undefined : {
|
|
268
|
+
name: 'loading'
|
|
269
|
+
},
|
|
270
|
+
"class": 'k-input-loading-icon'
|
|
267
271
|
}), showClearButton && this.computedValue && h("span", {
|
|
268
272
|
onClick: this.clearClick,
|
|
269
273
|
on: this.v3 ? undefined : {
|
|
@@ -480,8 +480,12 @@ var MaskedTextBoxVue2 = {
|
|
|
480
480
|
},
|
|
481
481
|
icon: exclamationCircleIcon,
|
|
482
482
|
"class": "k-input-validation-icon"
|
|
483
|
-
}), showLoadingIcon && h(
|
|
484
|
-
|
|
483
|
+
}), showLoadingIcon && h(Icon, {
|
|
484
|
+
name: 'loading',
|
|
485
|
+
attrs: this.v3 ? undefined : {
|
|
486
|
+
name: 'loading'
|
|
487
|
+
},
|
|
488
|
+
"class": 'k-input-loading-icon'
|
|
485
489
|
}), showClearButton && newValue && h("span", {
|
|
486
490
|
onClick: this.clearClick,
|
|
487
491
|
on: this.v3 ? undefined : {
|
|
@@ -585,8 +585,12 @@ var NumericTextBoxVue2 = {
|
|
|
585
585
|
},
|
|
586
586
|
icon: exclamationCircleIcon,
|
|
587
587
|
"class": "k-input-validation-icon"
|
|
588
|
-
}), showLoadingIcon && h(
|
|
589
|
-
|
|
588
|
+
}), showLoadingIcon && h(Icon, {
|
|
589
|
+
name: 'loading',
|
|
590
|
+
attrs: this.v3 ? undefined : {
|
|
591
|
+
name: 'loading'
|
|
592
|
+
},
|
|
593
|
+
"class": 'k-input-loading-icon'
|
|
590
594
|
}), showClearButton && this.computedValue !== undefined && this.computedValue !== null && h("span", {
|
|
591
595
|
onClick: this.clearClick,
|
|
592
596
|
on: this.v3 ? undefined : {
|
|
@@ -5,7 +5,7 @@ export var packageMetadata = {
|
|
|
5
5
|
name: '@progress/kendo-vue-inputs',
|
|
6
6
|
productName: 'Kendo UI for Vue',
|
|
7
7
|
productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
|
|
8
|
-
publishDate:
|
|
8
|
+
publishDate: 1684827609,
|
|
9
9
|
version: '',
|
|
10
10
|
licensingDocsUrl: 'https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning'
|
|
11
11
|
};
|
|
@@ -169,7 +169,7 @@ var RangeSliderVue2 = {
|
|
|
169
169
|
"aria-describedby": this.$props.ariaDescribedBy
|
|
170
170
|
},
|
|
171
171
|
dir: this.currentDir,
|
|
172
|
-
"class": classNames('k-
|
|
172
|
+
"class": classNames('k-slider', {
|
|
173
173
|
'k-rtl': this.currentDir === 'rtl',
|
|
174
174
|
'k-disabled': this.$props.disabled,
|
|
175
175
|
'k-slider-vertical': this.$props.vertical,
|
|
@@ -138,6 +138,11 @@ var SliderVue2 = {
|
|
|
138
138
|
var lS = provideLocalizationService(this);
|
|
139
139
|
var percentValue = (this.computedValue - this.$props.min) / (this.$props.max - this.$props.min) * 100;
|
|
140
140
|
var defaultSlot = getDefaultSlots(this);
|
|
141
|
+
var vertical = this.$props.vertical;
|
|
142
|
+
var increaseSvgArrow = this.currentDir === 'rtl' ? vertical ? caretAltUpIcon : caretAltLeftIcon : vertical ? caretAltUpIcon : caretAltRightIcon;
|
|
143
|
+
var decreaseSvgArrow = this.currentDir === 'rtl' ? vertical ? caretAltDownIcon : caretAltRightIcon : vertical ? caretAltDownIcon : caretAltLeftIcon;
|
|
144
|
+
var increaseFontArrow = this.currentDir === 'rtl' ? vertical ? 'caret-alt-up' : 'caret-alt-left' : vertical ? 'caret-alt-up' : 'caret-alt-right';
|
|
145
|
+
var decreaseFontArrow = this.currentDir === 'rtl' ? vertical ? 'caret-alt-down' : 'caret-alt-right' : vertical ? 'caret-alt-down' : 'caret-alt-left';
|
|
141
146
|
return h("div", {
|
|
142
147
|
dir: this.currentDir,
|
|
143
148
|
attrs: this.v3 ? undefined : {
|
|
@@ -154,7 +159,7 @@ var SliderVue2 = {
|
|
|
154
159
|
},
|
|
155
160
|
onBlur: this.onBlur,
|
|
156
161
|
onKeydown: this.onKeyDown,
|
|
157
|
-
"class": classNames('k-slider
|
|
162
|
+
"class": classNames('k-slider', {
|
|
158
163
|
'k-focus': this.currentFocused,
|
|
159
164
|
'k-disabled': this.$props.disabled,
|
|
160
165
|
'k-slider-horizontal': !this.$props.vertical,
|
|
@@ -169,14 +174,14 @@ var SliderVue2 = {
|
|
|
169
174
|
attrs: this.v3 ? undefined : {
|
|
170
175
|
type: "button",
|
|
171
176
|
tabindex: -1,
|
|
172
|
-
icon:
|
|
173
|
-
svgIcon:
|
|
177
|
+
icon: decreaseFontArrow,
|
|
178
|
+
svgIcon: decreaseSvgArrow,
|
|
174
179
|
rounded: 'full',
|
|
175
180
|
title: lS.toLanguageString(sliderDecreaseValue, messages[sliderDecreaseValue])
|
|
176
181
|
},
|
|
177
182
|
tabindex: -1,
|
|
178
|
-
icon:
|
|
179
|
-
svgIcon:
|
|
183
|
+
icon: decreaseFontArrow,
|
|
184
|
+
svgIcon: decreaseSvgArrow,
|
|
180
185
|
style: {
|
|
181
186
|
position: 'relative'
|
|
182
187
|
},
|
|
@@ -288,14 +293,14 @@ var SliderVue2 = {
|
|
|
288
293
|
attrs: this.v3 ? undefined : {
|
|
289
294
|
type: "button",
|
|
290
295
|
tabindex: -1,
|
|
291
|
-
icon:
|
|
292
|
-
svgIcon:
|
|
296
|
+
icon: increaseFontArrow,
|
|
297
|
+
svgIcon: increaseSvgArrow,
|
|
293
298
|
rounded: 'full',
|
|
294
299
|
title: lS.toLanguageString(sliderIncreaseValue, messages[sliderIncreaseValue])
|
|
295
300
|
},
|
|
296
301
|
tabindex: -1,
|
|
297
|
-
icon:
|
|
298
|
-
svgIcon:
|
|
302
|
+
icon: increaseFontArrow,
|
|
303
|
+
svgIcon: increaseSvgArrow,
|
|
299
304
|
rounded: 'full',
|
|
300
305
|
style: {
|
|
301
306
|
position: 'relative'
|
|
@@ -304,8 +304,12 @@ var TextAreaVue2 = {
|
|
|
304
304
|
"class": "k-input-validation-icon"
|
|
305
305
|
})]), showLoadingIcon && h("span", {
|
|
306
306
|
"class": this.suffixIconWrapClass
|
|
307
|
-
}, [h(
|
|
308
|
-
|
|
307
|
+
}, [h(Icon, {
|
|
308
|
+
name: 'loading',
|
|
309
|
+
attrs: this.v3 ? undefined : {
|
|
310
|
+
name: 'loading'
|
|
311
|
+
},
|
|
312
|
+
"class": 'k-input-loading-icon'
|
|
309
313
|
})]), showClearButton && this.computedValue && h("span", {
|
|
310
314
|
"class": this.suffixIconWrapClass
|
|
311
315
|
}, [h("span", {
|
|
@@ -175,7 +175,7 @@ export interface TextBoxMethods {
|
|
|
175
175
|
validity: () => any;
|
|
176
176
|
isInvalid: (state: any) => any;
|
|
177
177
|
setValidity: () => void;
|
|
178
|
-
|
|
178
|
+
handleInput?: () => void;
|
|
179
179
|
handleChange: (event: any) => void;
|
|
180
180
|
handleKeyup?: (event: any) => void;
|
|
181
181
|
handleKeydown?: (event: any) => void;
|