@progress/kendo-vue-inputs 3.7.4-dev.202212020747 → 3.7.4-dev.202301091431
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/README.md +1 -1
- package/dist/cdn/js/kendo-vue-inputs.js +1 -1
- package/dist/es/colors/ColorContrastLabels.js +37 -10
- package/dist/es/colors/ColorGradient.js +14 -4
- package/dist/es/colors/ColorInput.js +4 -1
- package/dist/es/colors/ColorPicker.js +26 -7
- package/dist/es/colors/FlatColorPicker.js +72 -21
- package/dist/es/input/Input.d.ts +9 -0
- package/dist/es/input/Input.js +40 -11
- package/dist/es/main.d.ts +2 -0
- package/dist/es/main.js +2 -0
- package/dist/es/maskedtextbox/MaskedTextBox.js +37 -9
- package/dist/es/messages/main.d.ts +40 -0
- package/dist/es/messages/main.js +41 -2
- package/dist/es/numerictextbox/NumericTextBox.js +40 -12
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/range-slider/RangeSlider.js +9 -3
- package/dist/es/signature/Signature.d.ts +39 -0
- package/dist/es/signature/Signature.js +633 -0
- package/dist/es/signature/SignatureCanvas.d.ts +39 -0
- package/dist/es/signature/SignatureCanvas.js +282 -0
- package/dist/es/signature/interfaces/SignatureBlurEvent.d.ts +5 -0
- package/dist/es/signature/interfaces/SignatureBlurEvent.js +1 -0
- package/dist/es/signature/interfaces/SignatureCanvasProps.d.ts +14 -0
- package/dist/es/signature/interfaces/SignatureCanvasProps.js +1 -0
- package/dist/es/signature/interfaces/SignatureChangeEvent.d.ts +9 -0
- package/dist/es/signature/interfaces/SignatureChangeEvent.js +1 -0
- package/dist/es/signature/interfaces/SignatureCloseEvent.d.ts +5 -0
- package/dist/es/signature/interfaces/SignatureCloseEvent.js +1 -0
- package/dist/es/signature/interfaces/SignatureFocusEvent.d.ts +5 -0
- package/dist/es/signature/interfaces/SignatureFocusEvent.js +1 -0
- package/dist/es/signature/interfaces/SignatureHandle.d.ts +42 -0
- package/dist/es/signature/interfaces/SignatureHandle.js +1 -0
- package/dist/es/signature/interfaces/SignatureOpenEvent.d.ts +5 -0
- package/dist/es/signature/interfaces/SignatureOpenEvent.js +1 -0
- package/dist/es/signature/interfaces/SignatureProps.d.ts +192 -0
- package/dist/es/signature/interfaces/SignatureProps.js +1 -0
- package/dist/es/signature/interfaces/index.d.ts +7 -0
- package/dist/es/signature/interfaces/index.js +1 -0
- package/dist/es/signature/utils/index.d.ts +4 -0
- package/dist/es/signature/utils/index.js +10 -0
- package/dist/es/slider/Slider.js +42 -25
- package/dist/es/switch/Switch.js +7 -7
- package/dist/es/textarea/TextArea.js +27 -9
- package/dist/esm/colors/ColorContrastLabels.js +37 -10
- package/dist/esm/colors/ColorGradient.js +14 -4
- package/dist/esm/colors/ColorInput.js +4 -1
- package/dist/esm/colors/ColorPicker.js +26 -7
- package/dist/esm/colors/FlatColorPicker.js +72 -21
- package/dist/esm/input/Input.d.ts +9 -0
- package/dist/esm/input/Input.js +40 -11
- package/dist/esm/main.d.ts +2 -0
- package/dist/esm/main.js +2 -0
- package/dist/esm/maskedtextbox/MaskedTextBox.js +37 -9
- package/dist/esm/messages/main.d.ts +40 -0
- package/dist/esm/messages/main.js +41 -2
- package/dist/esm/numerictextbox/NumericTextBox.js +40 -12
- package/dist/esm/package-metadata.js +1 -1
- package/dist/esm/range-slider/RangeSlider.js +9 -3
- package/dist/esm/signature/Signature.d.ts +39 -0
- package/dist/esm/signature/Signature.js +633 -0
- package/dist/esm/signature/SignatureCanvas.d.ts +39 -0
- package/dist/esm/signature/SignatureCanvas.js +282 -0
- package/dist/esm/signature/interfaces/SignatureBlurEvent.d.ts +5 -0
- package/dist/esm/signature/interfaces/SignatureBlurEvent.js +1 -0
- package/dist/esm/signature/interfaces/SignatureCanvasProps.d.ts +14 -0
- package/dist/esm/signature/interfaces/SignatureCanvasProps.js +1 -0
- package/dist/esm/signature/interfaces/SignatureChangeEvent.d.ts +9 -0
- package/dist/esm/signature/interfaces/SignatureChangeEvent.js +1 -0
- package/dist/esm/signature/interfaces/SignatureCloseEvent.d.ts +5 -0
- package/dist/esm/signature/interfaces/SignatureCloseEvent.js +1 -0
- package/dist/esm/signature/interfaces/SignatureFocusEvent.d.ts +5 -0
- package/dist/esm/signature/interfaces/SignatureFocusEvent.js +1 -0
- package/dist/esm/signature/interfaces/SignatureHandle.d.ts +42 -0
- package/dist/esm/signature/interfaces/SignatureHandle.js +1 -0
- package/dist/esm/signature/interfaces/SignatureOpenEvent.d.ts +5 -0
- package/dist/esm/signature/interfaces/SignatureOpenEvent.js +1 -0
- package/dist/esm/signature/interfaces/SignatureProps.d.ts +192 -0
- package/dist/esm/signature/interfaces/SignatureProps.js +1 -0
- package/dist/esm/signature/interfaces/index.d.ts +7 -0
- package/dist/esm/signature/interfaces/index.js +1 -0
- package/dist/esm/signature/utils/index.d.ts +4 -0
- package/dist/esm/signature/utils/index.js +10 -0
- package/dist/esm/slider/Slider.js +42 -25
- package/dist/esm/switch/Switch.js +7 -7
- package/dist/esm/textarea/TextArea.js +27 -9
- package/dist/npm/colors/ColorContrastLabels.js +37 -10
- package/dist/npm/colors/ColorGradient.js +13 -3
- package/dist/npm/colors/ColorInput.js +4 -1
- package/dist/npm/colors/ColorPicker.js +26 -7
- package/dist/npm/colors/FlatColorPicker.js +71 -20
- package/dist/npm/input/Input.d.ts +9 -0
- package/dist/npm/input/Input.js +39 -10
- package/dist/npm/main.d.ts +2 -0
- package/dist/npm/main.js +2 -0
- package/dist/npm/maskedtextbox/MaskedTextBox.js +36 -8
- package/dist/npm/messages/main.d.ts +40 -0
- package/dist/npm/messages/main.js +42 -3
- package/dist/npm/numerictextbox/NumericTextBox.js +39 -11
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/range-slider/RangeSlider.js +9 -3
- package/dist/npm/signature/Signature.d.ts +39 -0
- package/dist/npm/signature/Signature.js +640 -0
- package/dist/npm/signature/SignatureCanvas.d.ts +39 -0
- package/dist/npm/signature/SignatureCanvas.js +289 -0
- package/dist/npm/signature/interfaces/SignatureBlurEvent.d.ts +5 -0
- package/dist/npm/signature/interfaces/SignatureBlurEvent.js +5 -0
- package/dist/npm/signature/interfaces/SignatureCanvasProps.d.ts +14 -0
- package/dist/npm/signature/interfaces/SignatureCanvasProps.js +5 -0
- package/dist/npm/signature/interfaces/SignatureChangeEvent.d.ts +9 -0
- package/dist/npm/signature/interfaces/SignatureChangeEvent.js +5 -0
- package/dist/npm/signature/interfaces/SignatureCloseEvent.d.ts +5 -0
- package/dist/npm/signature/interfaces/SignatureCloseEvent.js +5 -0
- package/dist/npm/signature/interfaces/SignatureFocusEvent.d.ts +5 -0
- package/dist/npm/signature/interfaces/SignatureFocusEvent.js +5 -0
- package/dist/npm/signature/interfaces/SignatureHandle.d.ts +42 -0
- package/dist/npm/signature/interfaces/SignatureHandle.js +5 -0
- package/dist/npm/signature/interfaces/SignatureOpenEvent.d.ts +5 -0
- package/dist/npm/signature/interfaces/SignatureOpenEvent.js +5 -0
- package/dist/npm/signature/interfaces/SignatureProps.d.ts +192 -0
- package/dist/npm/signature/interfaces/SignatureProps.js +5 -0
- package/dist/npm/signature/interfaces/index.d.ts +7 -0
- package/dist/npm/signature/interfaces/index.js +2 -0
- package/dist/npm/signature/utils/index.d.ts +4 -0
- package/dist/npm/signature/utils/index.js +14 -0
- package/dist/npm/slider/Slider.js +41 -24
- package/dist/npm/switch/Switch.js +7 -7
- package/dist/npm/textarea/TextArea.js +26 -8
- package/package.json +19 -13
|
@@ -4,8 +4,10 @@ var allVue = Vue;
|
|
|
4
4
|
var gh = allVue.h;
|
|
5
5
|
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
6
6
|
import { provideLocalizationService } from '@progress/kendo-vue-intl';
|
|
7
|
+
import { checkIcon, xIcon } from '@progress/kendo-svg-icons';
|
|
7
8
|
import { messages, colorGradientContrastRatio, colorGradientAALevel, colorGradientAAALevel, colorGradientPass, colorGradientFail } from '../messages/main';
|
|
8
9
|
import { getContrastFromTwoRGBAs } from './utils/color-parser';
|
|
10
|
+
import { Icon } from '@progress/kendo-vue-common';
|
|
9
11
|
/**
|
|
10
12
|
* @hidden
|
|
11
13
|
*/
|
|
@@ -47,14 +49,24 @@ var ColorContrastLabelsVue2 = {
|
|
|
47
49
|
var success = h("span", {
|
|
48
50
|
key: 1,
|
|
49
51
|
"class": "k-contrast-validation k-text-success"
|
|
50
|
-
}, [passMessage, " ", h(
|
|
51
|
-
|
|
52
|
+
}, [passMessage, " ", h(Icon, {
|
|
53
|
+
name: "check",
|
|
54
|
+
attrs: this.v3 ? undefined : {
|
|
55
|
+
name: "check",
|
|
56
|
+
icon: checkIcon
|
|
57
|
+
},
|
|
58
|
+
icon: checkIcon
|
|
52
59
|
})]);
|
|
53
60
|
var error = h("span", {
|
|
54
61
|
key: 2,
|
|
55
62
|
"class": "k-contrast-validation k-text-error"
|
|
56
|
-
}, [failMessage, " ", h(
|
|
57
|
-
|
|
63
|
+
}, [failMessage, " ", h(Icon, {
|
|
64
|
+
name: "x",
|
|
65
|
+
attrs: this.v3 ? undefined : {
|
|
66
|
+
name: "x",
|
|
67
|
+
icon: xIcon
|
|
68
|
+
},
|
|
69
|
+
icon: xIcon
|
|
58
70
|
})]);
|
|
59
71
|
return h("div", {
|
|
60
72
|
"class": "k-vbox k-colorgradient-color-contrast"
|
|
@@ -64,14 +76,29 @@ var ColorContrastLabelsVue2 = {
|
|
|
64
76
|
"class": "k-contrast-ratio-text"
|
|
65
77
|
}, [contrastText]), aaPass ? h("span", {
|
|
66
78
|
"class": "k-contrast-validation k-text-success"
|
|
67
|
-
}, [h(
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
79
|
+
}, [h(Icon, {
|
|
80
|
+
name: "check",
|
|
81
|
+
attrs: this.v3 ? undefined : {
|
|
82
|
+
name: "check",
|
|
83
|
+
icon: checkIcon
|
|
84
|
+
},
|
|
85
|
+
icon: checkIcon
|
|
86
|
+
}), aaaPass && h(Icon, {
|
|
87
|
+
name: "check",
|
|
88
|
+
attrs: this.v3 ? undefined : {
|
|
89
|
+
name: "check",
|
|
90
|
+
icon: checkIcon
|
|
91
|
+
},
|
|
92
|
+
icon: checkIcon
|
|
71
93
|
})]) : h("span", {
|
|
72
94
|
"class": "k-contrast-validation k-text-error"
|
|
73
|
-
}, [h(
|
|
74
|
-
|
|
95
|
+
}, [h(Icon, {
|
|
96
|
+
name: "x",
|
|
97
|
+
attrs: this.v3 ? undefined : {
|
|
98
|
+
name: "x",
|
|
99
|
+
icon: xIcon
|
|
100
|
+
},
|
|
101
|
+
icon: xIcon
|
|
75
102
|
})])]), h("div", [h("span", [aaText]), aaPass ? success : error]), h("div", [h("span", [aaaText]), aaaPass ? success : error])]);
|
|
76
103
|
}
|
|
77
104
|
};
|
|
@@ -14,7 +14,7 @@ import { ColorInput } from './ColorInput';
|
|
|
14
14
|
import { ColorContrastLabels } from './ColorContrastLabels';
|
|
15
15
|
import { ColorContrastSvg } from './ColorContrastSvg';
|
|
16
16
|
import { provideLocalizationService } from '@progress/kendo-vue-intl';
|
|
17
|
-
import { colorGradientDragHandle, messages } from '../messages/main';
|
|
17
|
+
import { colorGradientDragHandle, colorGradientHueSliderLabel, colorGradientAlphaSliderLabel, messages } from '../messages/main';
|
|
18
18
|
var FORMAT = 'rgba';
|
|
19
19
|
var DEFAULT_SELECTED_COLOR = 'rgba(255, 255, 255, 1)';
|
|
20
20
|
/**
|
|
@@ -136,6 +136,10 @@ var ColorGradientVue2 = {
|
|
|
136
136
|
'k-disabled': this.$props.disabled
|
|
137
137
|
});
|
|
138
138
|
var localizationService = provideLocalizationService(this);
|
|
139
|
+
// tslint:disable-next-line:max-line-length
|
|
140
|
+
var colorGradientHueSliderLabelMessage = localizationService.toLanguageString(colorGradientHueSliderLabel, messages[colorGradientHueSliderLabel]);
|
|
141
|
+
// tslint:disable-next-line:max-line-length
|
|
142
|
+
var colorGradientAlphaSliderLabelMessage = localizationService.toLanguageString(colorGradientAlphaSliderLabel, messages[colorGradientAlphaSliderLabel]);
|
|
139
143
|
var dragHandle = localizationService.toLanguageString(colorGradientDragHandle, messages[colorGradientDragHandle]);
|
|
140
144
|
var renderRectangleDragHandle = function renderRectangleDragHandle() {
|
|
141
145
|
var style = {};
|
|
@@ -151,11 +155,13 @@ var ColorGradientVue2 = {
|
|
|
151
155
|
role: "slider",
|
|
152
156
|
attrs: this.v3 ? undefined : {
|
|
153
157
|
role: "slider",
|
|
158
|
+
"aria-orientation": 'undefined',
|
|
154
159
|
"aria-label": dragHandle + "".concat(this.value || 'none'),
|
|
155
160
|
"aria-valuenow": Math.round(this.hsva.s * 100),
|
|
156
161
|
"aria-valuetext": "\n saturation: ".concat(Math.round(this.hsva.s * 100), "%,\n value: ").concat(Math.round(this.hsva.v * 100), "%"),
|
|
157
162
|
tabindex: this.computedTabIndex
|
|
158
163
|
},
|
|
164
|
+
"aria-orientation": 'undefined',
|
|
159
165
|
"aria-label": dragHandle + "".concat(this.value || 'none'),
|
|
160
166
|
"aria-valuenow": Math.round(this.hsva.s * 100),
|
|
161
167
|
"aria-valuetext": "\n saturation: ".concat(Math.round(this.hsva.s * 100), "%,\n value: ").concat(Math.round(this.hsva.v * 100), "%"),
|
|
@@ -258,7 +264,8 @@ var ColorGradientVue2 = {
|
|
|
258
264
|
min: 0,
|
|
259
265
|
max: 360,
|
|
260
266
|
step: 5,
|
|
261
|
-
disabled: this.$props.disabled
|
|
267
|
+
disabled: this.$props.disabled,
|
|
268
|
+
ariaLabel: colorGradientHueSliderLabelMessage
|
|
262
269
|
},
|
|
263
270
|
value: this.hsva.h,
|
|
264
271
|
buttons: false,
|
|
@@ -271,7 +278,8 @@ var ColorGradientVue2 = {
|
|
|
271
278
|
"change": this.onHueSliderChange
|
|
272
279
|
},
|
|
273
280
|
"class": "k-hue-slider k-colorgradient-slider",
|
|
274
|
-
disabled: this.$props.disabled
|
|
281
|
+
disabled: this.$props.disabled,
|
|
282
|
+
ariaLabel: colorGradientHueSliderLabelMessage
|
|
275
283
|
}), this.$props.opacity && h(Slider, {
|
|
276
284
|
tabIndex: this.computedTabIndex,
|
|
277
285
|
attrs: this.v3 ? undefined : {
|
|
@@ -282,7 +290,8 @@ var ColorGradientVue2 = {
|
|
|
282
290
|
min: 0,
|
|
283
291
|
max: 100,
|
|
284
292
|
step: 1,
|
|
285
|
-
disabled: this.$props.disabled
|
|
293
|
+
disabled: this.$props.disabled,
|
|
294
|
+
ariaLabel: colorGradientAlphaSliderLabelMessage
|
|
286
295
|
},
|
|
287
296
|
value: isPresent(this.hsva.a) ? this.hsva.a * 100 : 100,
|
|
288
297
|
buttons: false,
|
|
@@ -296,6 +305,7 @@ var ColorGradientVue2 = {
|
|
|
296
305
|
},
|
|
297
306
|
"class": "k-alpha-slider k-colorgradient-slider",
|
|
298
307
|
disabled: this.$props.disabled,
|
|
308
|
+
ariaLabel: colorGradientAlphaSliderLabelMessage,
|
|
299
309
|
ref: this.v3 ? function (el) {
|
|
300
310
|
_this.alphaSliderRef = el;
|
|
301
311
|
} : 'alphaSlider'
|
|
@@ -22,6 +22,7 @@ import { Label } from '@progress/kendo-vue-labels';
|
|
|
22
22
|
import { provideLocalizationService } from '@progress/kendo-vue-intl';
|
|
23
23
|
import { messages, colorGradientR, colorGradientHex, colorGradientA, colorGradientB, colorGradientG, colorGradientRLabel, colorGradientGLabel, colorGradientBLabel, colorGradientALabel, colorGradientInputColorButton } from '../messages/main';
|
|
24
24
|
import { guid, Keys } from '@progress/kendo-vue-common';
|
|
25
|
+
import { caretAltExpandIcon } from '@progress/kendo-svg-icons';
|
|
25
26
|
/**
|
|
26
27
|
* @hidden
|
|
27
28
|
*/
|
|
@@ -99,12 +100,14 @@ var ColorInputVue2 = {
|
|
|
99
100
|
tabIndex: this.tabIndex,
|
|
100
101
|
type: "button",
|
|
101
102
|
fillMode: 'flat',
|
|
102
|
-
icon: 'caret-alt-expand'
|
|
103
|
+
icon: 'caret-alt-expand',
|
|
104
|
+
svgIcon: caretAltExpandIcon
|
|
103
105
|
},
|
|
104
106
|
tabIndex: this.tabIndex,
|
|
105
107
|
type: "button",
|
|
106
108
|
fillMode: 'flat',
|
|
107
109
|
icon: 'caret-alt-expand',
|
|
110
|
+
svgIcon: caretAltExpandIcon,
|
|
108
111
|
"class": "k-colorgradient-toggle-mode k-icon-button",
|
|
109
112
|
onClick: this.onToggleModeChange,
|
|
110
113
|
on: this.v3 ? undefined : {
|
|
@@ -23,6 +23,9 @@ import { packageMetadata } from '../package-metadata';
|
|
|
23
23
|
import { Picker } from './Picker';
|
|
24
24
|
import { FlatColorPicker } from './FlatColorPicker';
|
|
25
25
|
import { DEFAULT_GRADIENT_SETTINGS, DEFAULT_PALETTE_SETTINGS } from './utils/color-cache';
|
|
26
|
+
import { provideLocalizationService } from '@progress/kendo-vue-intl';
|
|
27
|
+
import { messages, colorPickerDropdownButtonAriaLabel } from '../messages/main';
|
|
28
|
+
import { caretAltDownIcon } from '@progress/kendo-svg-icons';
|
|
26
29
|
/**
|
|
27
30
|
* @hidden
|
|
28
31
|
*/
|
|
@@ -147,6 +150,11 @@ var ColorPickerVue2 = {
|
|
|
147
150
|
default: undefined
|
|
148
151
|
}
|
|
149
152
|
},
|
|
153
|
+
inject: {
|
|
154
|
+
kendoLocalizationService: {
|
|
155
|
+
default: null
|
|
156
|
+
}
|
|
157
|
+
},
|
|
150
158
|
data: function data() {
|
|
151
159
|
return {
|
|
152
160
|
focused: false,
|
|
@@ -167,10 +175,6 @@ var ColorPickerVue2 = {
|
|
|
167
175
|
computedOpen: function computedOpen() {
|
|
168
176
|
return this.isOpenControlled ? this.$props.open : this.currentOpen;
|
|
169
177
|
},
|
|
170
|
-
computedIconClassName: function computedIconClassName() {
|
|
171
|
-
var icon = this.$props.icon;
|
|
172
|
-
return this.$props.iconClassName || icon && "k-icon k-i-".concat(icon);
|
|
173
|
-
},
|
|
174
178
|
wrapperClassName: function wrapperClassName() {
|
|
175
179
|
var _a;
|
|
176
180
|
var _b = this.$props,
|
|
@@ -207,6 +211,9 @@ var ColorPickerVue2 = {
|
|
|
207
211
|
var _this2 = this;
|
|
208
212
|
var _a;
|
|
209
213
|
var _this = this;
|
|
214
|
+
var localizationService = provideLocalizationService(this);
|
|
215
|
+
// tslint:disable-next-line:max-line-length
|
|
216
|
+
var colorPickerLabelMessage = localizationService.toLanguageString(colorPickerDropdownButtonAriaLabel, messages[colorPickerDropdownButtonAriaLabel]);
|
|
210
217
|
var h = gh || createElement;
|
|
211
218
|
var _b = this.$props,
|
|
212
219
|
disabled = _b.disabled,
|
|
@@ -254,18 +261,26 @@ var ColorPickerVue2 = {
|
|
|
254
261
|
// const dir = useDir(focusableElementGuid, props.dir);
|
|
255
262
|
return h("span", {
|
|
256
263
|
"class": this.wrapperClassName,
|
|
257
|
-
|
|
264
|
+
role: 'combobox',
|
|
258
265
|
attrs: this.v3 ? undefined : {
|
|
266
|
+
role: 'combobox',
|
|
259
267
|
dir: dir,
|
|
260
268
|
id: this.$props.id,
|
|
261
269
|
"aria-labelledby": this.$props.ariaLabelledBy,
|
|
262
270
|
"aria-describedby": this.$props.ariaDescribedBy,
|
|
271
|
+
"aria-disabled": this.$props.disabled,
|
|
272
|
+
"aria-haspopup": 'dialog',
|
|
273
|
+
"aria-expanded": this.computedOpen,
|
|
263
274
|
tabindex: getTabIndex(tabIndex, disabled),
|
|
264
275
|
title: this.$props.title
|
|
265
276
|
},
|
|
277
|
+
dir: dir,
|
|
266
278
|
id: this.$props.id,
|
|
267
279
|
"aria-labelledby": this.$props.ariaLabelledBy,
|
|
268
280
|
"aria-describedby": this.$props.ariaDescribedBy,
|
|
281
|
+
"aria-disabled": this.$props.disabled,
|
|
282
|
+
"aria-haspopup": 'dialog',
|
|
283
|
+
"aria-expanded": this.computedOpen,
|
|
269
284
|
ref: this.focusableElementGuid,
|
|
270
285
|
tabindex: getTabIndex(tabIndex, disabled),
|
|
271
286
|
title: this.$props.title,
|
|
@@ -303,7 +318,9 @@ var ColorPickerVue2 = {
|
|
|
303
318
|
type: "button",
|
|
304
319
|
tabindex: -1,
|
|
305
320
|
rounded: null,
|
|
306
|
-
icon: 'caret-alt-down'
|
|
321
|
+
icon: 'caret-alt-down',
|
|
322
|
+
svgIcon: caretAltDownIcon,
|
|
323
|
+
"aria-label": colorPickerLabelMessage
|
|
307
324
|
},
|
|
308
325
|
tabindex: -1,
|
|
309
326
|
ref: this.v3 ? function (el) {
|
|
@@ -315,7 +332,9 @@ var ColorPickerVue2 = {
|
|
|
315
332
|
},
|
|
316
333
|
rounded: null,
|
|
317
334
|
"class": "k-input-button",
|
|
318
|
-
icon: 'caret-alt-down'
|
|
335
|
+
icon: 'caret-alt-down',
|
|
336
|
+
svgIcon: caretAltDownIcon,
|
|
337
|
+
"aria-label": colorPickerLabelMessage
|
|
319
338
|
}),
|
|
320
339
|
// @ts-ignore function children
|
|
321
340
|
h(Picker, {
|
|
@@ -15,7 +15,8 @@ import * as Vue from 'vue';
|
|
|
15
15
|
var allVue = Vue;
|
|
16
16
|
var gh = allVue.h;
|
|
17
17
|
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
18
|
-
import {
|
|
18
|
+
import { dropletSlashIcon, dropletSliderIcon, paletteIcon } from '@progress/kendo-svg-icons';
|
|
19
|
+
import { classNames, validatePackage, getTabIndex, setRef, focusContainer, focusFirstFocusableChild, Keys, templateRendering, getListeners, getTemplate, Icon } from '@progress/kendo-vue-common';
|
|
19
20
|
import { ButtonGroup, Button } from '@progress/kendo-vue-buttons';
|
|
20
21
|
import { ColorPalette } from './ColorPalette';
|
|
21
22
|
import { ColorGradient } from './ColorGradient';
|
|
@@ -250,11 +251,21 @@ var FlatColorPickerVue2 = {
|
|
|
250
251
|
return _this.handleViewChange(e, 'gradient');
|
|
251
252
|
}
|
|
252
253
|
}, _this2.v3 ? function () {
|
|
253
|
-
return [h(
|
|
254
|
-
|
|
254
|
+
return [h(Icon, {
|
|
255
|
+
name: "droplet-slider",
|
|
256
|
+
attrs: _this2.v3 ? undefined : {
|
|
257
|
+
name: "droplet-slider",
|
|
258
|
+
icon: dropletSliderIcon
|
|
259
|
+
},
|
|
260
|
+
icon: dropletSliderIcon
|
|
255
261
|
})];
|
|
256
|
-
} : [h(
|
|
257
|
-
|
|
262
|
+
} : [h(Icon, {
|
|
263
|
+
name: "droplet-slider",
|
|
264
|
+
attrs: _this2.v3 ? undefined : {
|
|
265
|
+
name: "droplet-slider",
|
|
266
|
+
icon: dropletSliderIcon
|
|
267
|
+
},
|
|
268
|
+
icon: dropletSliderIcon
|
|
258
269
|
})]),
|
|
259
270
|
// @ts-ignore function children
|
|
260
271
|
h(Button, {
|
|
@@ -283,11 +294,21 @@ var FlatColorPickerVue2 = {
|
|
|
283
294
|
return _this.handleViewChange(e, 'palette');
|
|
284
295
|
}
|
|
285
296
|
}, _this2.v3 ? function () {
|
|
286
|
-
return [h(
|
|
287
|
-
|
|
297
|
+
return [h(Icon, {
|
|
298
|
+
name: "palette",
|
|
299
|
+
attrs: _this2.v3 ? undefined : {
|
|
300
|
+
name: "palette",
|
|
301
|
+
icon: paletteIcon
|
|
302
|
+
},
|
|
303
|
+
icon: paletteIcon
|
|
288
304
|
})];
|
|
289
|
-
} : [h(
|
|
290
|
-
|
|
305
|
+
} : [h(Icon, {
|
|
306
|
+
name: "palette",
|
|
307
|
+
attrs: _this2.v3 ? undefined : {
|
|
308
|
+
name: "palette",
|
|
309
|
+
icon: paletteIcon
|
|
310
|
+
},
|
|
311
|
+
icon: paletteIcon
|
|
291
312
|
})])];
|
|
292
313
|
} : [h(Button, {
|
|
293
314
|
tabIndex: _this2.computedTabIndex,
|
|
@@ -315,11 +336,21 @@ var FlatColorPickerVue2 = {
|
|
|
315
336
|
return _this.handleViewChange(e, 'gradient');
|
|
316
337
|
}
|
|
317
338
|
}, _this2.v3 ? function () {
|
|
318
|
-
return [h(
|
|
319
|
-
|
|
339
|
+
return [h(Icon, {
|
|
340
|
+
name: "droplet-slider",
|
|
341
|
+
attrs: _this2.v3 ? undefined : {
|
|
342
|
+
name: "droplet-slider",
|
|
343
|
+
icon: dropletSliderIcon
|
|
344
|
+
},
|
|
345
|
+
icon: dropletSliderIcon
|
|
320
346
|
})];
|
|
321
|
-
} : [h(
|
|
322
|
-
|
|
347
|
+
} : [h(Icon, {
|
|
348
|
+
name: "droplet-slider",
|
|
349
|
+
attrs: _this2.v3 ? undefined : {
|
|
350
|
+
name: "droplet-slider",
|
|
351
|
+
icon: dropletSliderIcon
|
|
352
|
+
},
|
|
353
|
+
icon: dropletSliderIcon
|
|
323
354
|
})]), h(Button, {
|
|
324
355
|
tabIndex: _this2.computedTabIndex,
|
|
325
356
|
attrs: _this2.v3 ? undefined : {
|
|
@@ -346,11 +377,21 @@ var FlatColorPickerVue2 = {
|
|
|
346
377
|
return _this.handleViewChange(e, 'palette');
|
|
347
378
|
}
|
|
348
379
|
}, _this2.v3 ? function () {
|
|
349
|
-
return [h(
|
|
350
|
-
|
|
380
|
+
return [h(Icon, {
|
|
381
|
+
name: "palette",
|
|
382
|
+
attrs: _this2.v3 ? undefined : {
|
|
383
|
+
name: "palette",
|
|
384
|
+
icon: paletteIcon
|
|
385
|
+
},
|
|
386
|
+
icon: paletteIcon
|
|
351
387
|
})];
|
|
352
|
-
} : [h(
|
|
353
|
-
|
|
388
|
+
} : [h(Icon, {
|
|
389
|
+
name: "palette",
|
|
390
|
+
attrs: _this2.v3 ? undefined : {
|
|
391
|
+
name: "palette",
|
|
392
|
+
icon: paletteIcon
|
|
393
|
+
},
|
|
394
|
+
icon: paletteIcon
|
|
354
395
|
})])])]), h("div", {
|
|
355
396
|
"class": "k-spacer"
|
|
356
397
|
}), h("div", {
|
|
@@ -375,11 +416,21 @@ var FlatColorPickerVue2 = {
|
|
|
375
416
|
},
|
|
376
417
|
onClick: this.handleResetColor
|
|
377
418
|
}, this.v3 ? function () {
|
|
378
|
-
return [h(
|
|
379
|
-
|
|
419
|
+
return [h(Icon, {
|
|
420
|
+
name: "droplet-slash",
|
|
421
|
+
attrs: _this2.v3 ? undefined : {
|
|
422
|
+
name: "droplet-slash",
|
|
423
|
+
icon: dropletSlashIcon
|
|
424
|
+
},
|
|
425
|
+
icon: dropletSlashIcon
|
|
380
426
|
})];
|
|
381
|
-
} : [h(
|
|
382
|
-
|
|
427
|
+
} : [h(Icon, {
|
|
428
|
+
name: "droplet-slash",
|
|
429
|
+
attrs: _this2.v3 ? undefined : {
|
|
430
|
+
name: "droplet-slash",
|
|
431
|
+
icon: dropletSlashIcon
|
|
432
|
+
},
|
|
433
|
+
icon: dropletSlashIcon
|
|
383
434
|
})]), this.$props.showPreview && h("div", {
|
|
384
435
|
"class": "k-coloreditor-preview k-vstack"
|
|
385
436
|
}, [h("span", {
|
package/dist/es/input/Input.d.ts
CHANGED
|
@@ -125,6 +125,15 @@ export interface InputProps extends FormComponentProps {
|
|
|
125
125
|
* Defines additional class to the input element.
|
|
126
126
|
*/
|
|
127
127
|
inputClass?: String;
|
|
128
|
+
/**
|
|
129
|
+
* 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).
|
|
130
|
+
* For example these elements could contain error or hint message.
|
|
131
|
+
*/
|
|
132
|
+
ariaDescribedBy?: string;
|
|
133
|
+
/**
|
|
134
|
+
* Identifies the element(s) which will label the component.
|
|
135
|
+
*/
|
|
136
|
+
ariaLabelledBy?: string;
|
|
128
137
|
}
|
|
129
138
|
/**
|
|
130
139
|
* @hidden
|
package/dist/es/input/Input.js
CHANGED
|
@@ -16,9 +16,10 @@ var allVue = Vue;
|
|
|
16
16
|
var gh = allVue.h;
|
|
17
17
|
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
18
18
|
var ref = allVue.ref;
|
|
19
|
-
import { guid, templateDefinition, validatePackage, kendoThemeMaps, templateRendering, getListeners, getTemplate } from '@progress/kendo-vue-common';
|
|
19
|
+
import { guid, templateDefinition, validatePackage, kendoThemeMaps, templateRendering, getListeners, getTemplate, Icon } from '@progress/kendo-vue-common';
|
|
20
20
|
import { packageMetadata } from '../package-metadata';
|
|
21
21
|
import { FloatingLabel } from '@progress/kendo-vue-labels';
|
|
22
|
+
import { checkIcon, exclamationCircleIcon, xIcon } from '@progress/kendo-svg-icons';
|
|
22
23
|
/**
|
|
23
24
|
* @hidden
|
|
24
25
|
*/
|
|
@@ -108,7 +109,9 @@ var InputVue2 = {
|
|
|
108
109
|
showClearButton: Boolean,
|
|
109
110
|
inputClass: String,
|
|
110
111
|
wrapperClass: String,
|
|
111
|
-
tabIndex: Number
|
|
112
|
+
tabIndex: Number,
|
|
113
|
+
ariaLabelledBy: String,
|
|
114
|
+
ariaDescribedBy: String
|
|
112
115
|
},
|
|
113
116
|
data: function data() {
|
|
114
117
|
return {
|
|
@@ -157,7 +160,9 @@ var InputVue2 = {
|
|
|
157
160
|
showValidationIcon = _a.showValidationIcon,
|
|
158
161
|
showLoadingIcon = _a.showLoadingIcon,
|
|
159
162
|
showClearButton = _a.showClearButton,
|
|
160
|
-
tabIndex = _a.tabIndex
|
|
163
|
+
tabIndex = _a.tabIndex,
|
|
164
|
+
ariaLabelledBy = _a.ariaLabelledBy,
|
|
165
|
+
ariaDescribedBy = _a.ariaDescribedBy;
|
|
161
166
|
var inputId = id || this._inputId;
|
|
162
167
|
var textbox = h('input', __assign(__assign({
|
|
163
168
|
domProps: this.v3 ? null : __assign(__assign({}, this.$attrs), {
|
|
@@ -174,6 +179,9 @@ var InputVue2 = {
|
|
|
174
179
|
id: inputId,
|
|
175
180
|
tabindex: tabIndex,
|
|
176
181
|
required: required,
|
|
182
|
+
ariaLabelledby: ariaLabelledBy,
|
|
183
|
+
ariaDescribedby: ariaDescribedBy,
|
|
184
|
+
ariaDisabled: this.$props.disabled,
|
|
177
185
|
value: this.computedValue,
|
|
178
186
|
class: this.inputInnerClass,
|
|
179
187
|
ref: this.v3 ? function (el) {
|
|
@@ -223,16 +231,32 @@ var InputVue2 = {
|
|
|
223
231
|
ref: this.v3 ? function (el) {
|
|
224
232
|
_this.wrapperRef = el;
|
|
225
233
|
} : 'wrapper'
|
|
226
|
-
}, [iconName && h(
|
|
227
|
-
|
|
234
|
+
}, [iconName && h(Icon, {
|
|
235
|
+
name: iconName,
|
|
236
|
+
attrs: this.v3 ? undefined : {
|
|
237
|
+
name: iconName
|
|
238
|
+
},
|
|
239
|
+
"class": "k-input-icon"
|
|
228
240
|
}), this.$props.inputPrefix && h("span", {
|
|
229
241
|
"class": "k-input-prefix"
|
|
230
242
|
}, [inputPrefix]), textbox, this.$props.inputSuffix && h("span", {
|
|
231
243
|
"class": "k-input-suffix"
|
|
232
|
-
}, [inputSuffix]), showValidationIcon && isValid && h(
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
244
|
+
}, [inputSuffix]), showValidationIcon && isValid && h(Icon, {
|
|
245
|
+
name: 'check',
|
|
246
|
+
attrs: this.v3 ? undefined : {
|
|
247
|
+
name: 'check',
|
|
248
|
+
icon: checkIcon
|
|
249
|
+
},
|
|
250
|
+
icon: checkIcon,
|
|
251
|
+
"class": "k-input-validation-icon"
|
|
252
|
+
}), showValidationIcon && !isValid && h(Icon, {
|
|
253
|
+
name: 'exclamation-circle',
|
|
254
|
+
attrs: this.v3 ? undefined : {
|
|
255
|
+
name: 'exclamation-circle',
|
|
256
|
+
icon: exclamationCircleIcon
|
|
257
|
+
},
|
|
258
|
+
icon: exclamationCircleIcon,
|
|
259
|
+
"class": "k-input-validation-icon"
|
|
236
260
|
}), showLoadingIcon && h("span", {
|
|
237
261
|
"class": "k-input-loading-icon k-icon k-i-loading"
|
|
238
262
|
}), showClearButton && this.computedValue && h("span", {
|
|
@@ -241,8 +265,13 @@ var InputVue2 = {
|
|
|
241
265
|
"click": this.clearClick
|
|
242
266
|
},
|
|
243
267
|
"class": "k-clear-value"
|
|
244
|
-
}, [h(
|
|
245
|
-
|
|
268
|
+
}, [h(Icon, {
|
|
269
|
+
name: 'x',
|
|
270
|
+
attrs: this.v3 ? undefined : {
|
|
271
|
+
name: 'x',
|
|
272
|
+
icon: xIcon
|
|
273
|
+
},
|
|
274
|
+
icon: xIcon
|
|
246
275
|
})])]);
|
|
247
276
|
return label ?
|
|
248
277
|
// @ts-ignore function children
|
package/dist/es/main.d.ts
CHANGED
|
@@ -37,3 +37,5 @@ export * from './textarea/TextArea';
|
|
|
37
37
|
export * from './textarea/interfaces/TextAreaProps';
|
|
38
38
|
export * from './textarea/interfaces/TextAreaChangeEvent';
|
|
39
39
|
export * from './textarea/interfaces/TextAreaFocusEvent';
|
|
40
|
+
export * from './signature/Signature';
|
|
41
|
+
export * from './signature/interfaces';
|
package/dist/es/main.js
CHANGED
|
@@ -35,3 +35,5 @@ export * from './textarea/TextArea';
|
|
|
35
35
|
export * from './textarea/interfaces/TextAreaProps';
|
|
36
36
|
export * from './textarea/interfaces/TextAreaChangeEvent';
|
|
37
37
|
export * from './textarea/interfaces/TextAreaFocusEvent';
|
|
38
|
+
export * from './signature/Signature';
|
|
39
|
+
export * from './signature/interfaces';
|
|
@@ -6,8 +6,9 @@ var isV3 = allVue.version && allVue.version[0] === '3';
|
|
|
6
6
|
var ref = allVue.ref;
|
|
7
7
|
import { MaskingService } from './masking.service';
|
|
8
8
|
import { defaultRules, maskingChanged, returnFalse } from './utils';
|
|
9
|
-
import { guid, getTabIndex, validatePackage, kendoThemeMaps, templateDefinition, templateRendering, getListeners, getTemplate, setRef } from '@progress/kendo-vue-common';
|
|
9
|
+
import { guid, getTabIndex, validatePackage, kendoThemeMaps, templateDefinition, templateRendering, getListeners, getTemplate, setRef, Icon } from '@progress/kendo-vue-common';
|
|
10
10
|
import { packageMetadata } from '../package-metadata';
|
|
11
|
+
import { checkIcon, exclamationCircleIcon, xIcon } from '@progress/kendo-svg-icons';
|
|
11
12
|
/**
|
|
12
13
|
* @hidden
|
|
13
14
|
*/
|
|
@@ -15,6 +16,8 @@ var MaskedTextBoxVue2 = {
|
|
|
15
16
|
model: {
|
|
16
17
|
event: 'changemodel'
|
|
17
18
|
},
|
|
19
|
+
// @ts-ignore
|
|
20
|
+
emits: ['change', 'focus', 'blur', 'update:modelValue', 'update:modelRawValue', 'changemodel'],
|
|
18
21
|
props: {
|
|
19
22
|
type: {
|
|
20
23
|
type: String,
|
|
@@ -392,8 +395,12 @@ var MaskedTextBoxVue2 = {
|
|
|
392
395
|
style: !this.$props.label ? {
|
|
393
396
|
width: this.$props.width
|
|
394
397
|
} : undefined
|
|
395
|
-
}, [iconName && h(
|
|
396
|
-
|
|
398
|
+
}, [iconName && h(Icon, {
|
|
399
|
+
name: iconName,
|
|
400
|
+
attrs: this.v3 ? undefined : {
|
|
401
|
+
name: iconName
|
|
402
|
+
},
|
|
403
|
+
"class": 'k-input-icon'
|
|
397
404
|
}), this.$props.inputPrefix && h("span", {
|
|
398
405
|
"class": "k-input-prefix"
|
|
399
406
|
}, [inputPrefix]), h("input", {
|
|
@@ -407,6 +414,7 @@ var MaskedTextBoxVue2 = {
|
|
|
407
414
|
id: inputId,
|
|
408
415
|
"aria-labelledby": this.$props.ariaLabelledBy,
|
|
409
416
|
"aria-describedby": this.$props.ariaDescribedBy,
|
|
417
|
+
"aria-disabled": this.$props.disabled,
|
|
410
418
|
name: this.$props.name,
|
|
411
419
|
tabindex: getTabIndex(this.$props.tabIndex, this.$props.disabled, true),
|
|
412
420
|
accesskey: this.$props.accessKey,
|
|
@@ -414,6 +422,7 @@ var MaskedTextBoxVue2 = {
|
|
|
414
422
|
disabled: this.$props.disabled || undefined,
|
|
415
423
|
readonly: this.$props.readonly || undefined,
|
|
416
424
|
placeholder: this.$props.placeholder,
|
|
425
|
+
"aria-placeholder": this.$props.placeholder,
|
|
417
426
|
required: this.$props.required
|
|
418
427
|
},
|
|
419
428
|
autocomplete: "off",
|
|
@@ -428,6 +437,7 @@ var MaskedTextBoxVue2 = {
|
|
|
428
437
|
id: inputId,
|
|
429
438
|
"aria-labelledby": this.$props.ariaLabelledBy,
|
|
430
439
|
"aria-describedby": this.$props.ariaDescribedBy,
|
|
440
|
+
"aria-disabled": this.$props.disabled,
|
|
431
441
|
name: this.$props.name,
|
|
432
442
|
tabindex: getTabIndex(this.$props.tabIndex, this.$props.disabled, true),
|
|
433
443
|
accesskey: this.$props.accessKey,
|
|
@@ -435,6 +445,7 @@ var MaskedTextBoxVue2 = {
|
|
|
435
445
|
disabled: this.$props.disabled || undefined,
|
|
436
446
|
readonly: this.$props.readonly || undefined,
|
|
437
447
|
placeholder: this.$props.placeholder,
|
|
448
|
+
"aria-placeholder": this.$props.placeholder,
|
|
438
449
|
required: this.$props.required,
|
|
439
450
|
ref: setRef(this, 'input'),
|
|
440
451
|
onInput: this.onChangeHandler,
|
|
@@ -453,10 +464,22 @@ var MaskedTextBoxVue2 = {
|
|
|
453
464
|
onDrop: returnFalse
|
|
454
465
|
}), this.$props.inputSuffix && h("span", {
|
|
455
466
|
"class": "k-input-suffix"
|
|
456
|
-
}, [inputSuffix]), showValidationIcon && isValid && h(
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
467
|
+
}, [inputSuffix]), showValidationIcon && isValid && h(Icon, {
|
|
468
|
+
name: 'check',
|
|
469
|
+
attrs: this.v3 ? undefined : {
|
|
470
|
+
name: 'check',
|
|
471
|
+
icon: checkIcon
|
|
472
|
+
},
|
|
473
|
+
icon: checkIcon,
|
|
474
|
+
"class": "k-input-validation-icon"
|
|
475
|
+
}), showValidationIcon && !isValid && h(Icon, {
|
|
476
|
+
name: 'exclamation-circle',
|
|
477
|
+
attrs: this.v3 ? undefined : {
|
|
478
|
+
name: 'exclamation-circle',
|
|
479
|
+
icon: exclamationCircleIcon
|
|
480
|
+
},
|
|
481
|
+
icon: exclamationCircleIcon,
|
|
482
|
+
"class": "k-input-validation-icon"
|
|
460
483
|
}), showLoadingIcon && h("span", {
|
|
461
484
|
"class": "k-input-loading-icon k-icon k-i-loading"
|
|
462
485
|
}), showClearButton && newValue && h("span", {
|
|
@@ -465,8 +488,13 @@ var MaskedTextBoxVue2 = {
|
|
|
465
488
|
"click": this.clearClick
|
|
466
489
|
},
|
|
467
490
|
"class": "k-clear-value"
|
|
468
|
-
}, [h(
|
|
469
|
-
|
|
491
|
+
}, [h(Icon, {
|
|
492
|
+
name: 'x',
|
|
493
|
+
attrs: this.v3 ? undefined : {
|
|
494
|
+
name: 'x',
|
|
495
|
+
icon: xIcon
|
|
496
|
+
},
|
|
497
|
+
icon: xIcon
|
|
470
498
|
})])]);
|
|
471
499
|
return this.$props.label ? h("span", {
|
|
472
500
|
"class": this.spanClassNames,
|