@progress/kendo-vue-inputs 3.7.4-dev.202212020747 → 3.7.4-dev.202212300853
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 +26 -10
- package/dist/es/colors/ColorGradient.js +14 -4
- package/dist/es/colors/ColorPicker.js +23 -7
- package/dist/es/colors/FlatColorPicker.js +51 -21
- package/dist/es/input/Input.d.ts +9 -0
- package/dist/es/input/Input.js +33 -11
- package/dist/es/main.d.ts +2 -0
- package/dist/es/main.js +2 -0
- package/dist/es/maskedtextbox/MaskedTextBox.js +30 -9
- package/dist/es/messages/main.d.ts +40 -0
- package/dist/es/messages/main.js +41 -2
- package/dist/es/numerictextbox/NumericTextBox.js +29 -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 +626 -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 +37 -25
- package/dist/es/switch/Switch.js +7 -7
- package/dist/es/textarea/TextArea.js +24 -9
- package/dist/esm/colors/ColorContrastLabels.js +26 -10
- package/dist/esm/colors/ColorGradient.js +14 -4
- package/dist/esm/colors/ColorPicker.js +23 -7
- package/dist/esm/colors/FlatColorPicker.js +51 -21
- package/dist/esm/input/Input.d.ts +9 -0
- package/dist/esm/input/Input.js +33 -11
- package/dist/esm/main.d.ts +2 -0
- package/dist/esm/main.js +2 -0
- package/dist/esm/maskedtextbox/MaskedTextBox.js +30 -9
- package/dist/esm/messages/main.d.ts +40 -0
- package/dist/esm/messages/main.js +41 -2
- package/dist/esm/numerictextbox/NumericTextBox.js +29 -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 +626 -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 +37 -25
- package/dist/esm/switch/Switch.js +7 -7
- package/dist/esm/textarea/TextArea.js +24 -9
- package/dist/npm/colors/ColorContrastLabels.js +26 -10
- package/dist/npm/colors/ColorGradient.js +13 -3
- package/dist/npm/colors/ColorPicker.js +23 -7
- package/dist/npm/colors/FlatColorPicker.js +50 -20
- package/dist/npm/input/Input.d.ts +9 -0
- package/dist/npm/input/Input.js +32 -10
- package/dist/npm/main.d.ts +2 -0
- package/dist/npm/main.js +2 -0
- package/dist/npm/maskedtextbox/MaskedTextBox.js +29 -8
- package/dist/npm/messages/main.d.ts +40 -0
- package/dist/npm/messages/main.js +42 -3
- package/dist/npm/numerictextbox/NumericTextBox.js +28 -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 +633 -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 +36 -24
- package/dist/npm/switch/Switch.js +7 -7
- package/dist/npm/textarea/TextArea.js +23 -8
- package/package.json +15 -11
|
@@ -6,6 +6,7 @@ var isV3 = allVue.version && allVue.version[0] === '3';
|
|
|
6
6
|
import { provideLocalizationService } from '@progress/kendo-vue-intl';
|
|
7
7
|
import { messages, colorGradientContrastRatio, colorGradientAALevel, colorGradientAAALevel, colorGradientPass, colorGradientFail } from '../messages/main';
|
|
8
8
|
import { getContrastFromTwoRGBAs } from './utils/color-parser';
|
|
9
|
+
import { Icon } from '@progress/kendo-vue-common';
|
|
9
10
|
/**
|
|
10
11
|
* @hidden
|
|
11
12
|
*/
|
|
@@ -47,14 +48,20 @@ var ColorContrastLabelsVue2 = {
|
|
|
47
48
|
var success = h("span", {
|
|
48
49
|
key: 1,
|
|
49
50
|
"class": "k-contrast-validation k-text-success"
|
|
50
|
-
}, [passMessage, " ", h(
|
|
51
|
-
|
|
51
|
+
}, [passMessage, " ", h(Icon, {
|
|
52
|
+
name: "check",
|
|
53
|
+
attrs: this.v3 ? undefined : {
|
|
54
|
+
name: "check"
|
|
55
|
+
}
|
|
52
56
|
})]);
|
|
53
57
|
var error = h("span", {
|
|
54
58
|
key: 2,
|
|
55
59
|
"class": "k-contrast-validation k-text-error"
|
|
56
|
-
}, [failMessage, " ", h(
|
|
57
|
-
|
|
60
|
+
}, [failMessage, " ", h(Icon, {
|
|
61
|
+
name: "close",
|
|
62
|
+
attrs: this.v3 ? undefined : {
|
|
63
|
+
name: "close"
|
|
64
|
+
}
|
|
58
65
|
})]);
|
|
59
66
|
return h("div", {
|
|
60
67
|
"class": "k-vbox k-colorgradient-color-contrast"
|
|
@@ -64,14 +71,23 @@ var ColorContrastLabelsVue2 = {
|
|
|
64
71
|
"class": "k-contrast-ratio-text"
|
|
65
72
|
}, [contrastText]), aaPass ? h("span", {
|
|
66
73
|
"class": "k-contrast-validation k-text-success"
|
|
67
|
-
}, [h(
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
74
|
+
}, [h(Icon, {
|
|
75
|
+
name: "check",
|
|
76
|
+
attrs: this.v3 ? undefined : {
|
|
77
|
+
name: "check"
|
|
78
|
+
}
|
|
79
|
+
}), aaaPass && h(Icon, {
|
|
80
|
+
name: "check",
|
|
81
|
+
attrs: this.v3 ? undefined : {
|
|
82
|
+
name: "check"
|
|
83
|
+
}
|
|
71
84
|
})]) : h("span", {
|
|
72
85
|
"class": "k-contrast-validation k-text-error"
|
|
73
|
-
}, [h(
|
|
74
|
-
|
|
86
|
+
}, [h(Icon, {
|
|
87
|
+
name: "close",
|
|
88
|
+
attrs: this.v3 ? undefined : {
|
|
89
|
+
name: "close"
|
|
90
|
+
}
|
|
75
91
|
})])]), h("div", [h("span", [aaText]), aaPass ? success : error]), h("div", [h("span", [aaaText]), aaaPass ? success : error])]);
|
|
76
92
|
}
|
|
77
93
|
};
|
|
@@ -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'
|
|
@@ -23,6 +23,8 @@ 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';
|
|
26
28
|
/**
|
|
27
29
|
* @hidden
|
|
28
30
|
*/
|
|
@@ -147,6 +149,11 @@ var ColorPickerVue2 = {
|
|
|
147
149
|
default: undefined
|
|
148
150
|
}
|
|
149
151
|
},
|
|
152
|
+
inject: {
|
|
153
|
+
kendoLocalizationService: {
|
|
154
|
+
default: null
|
|
155
|
+
}
|
|
156
|
+
},
|
|
150
157
|
data: function data() {
|
|
151
158
|
return {
|
|
152
159
|
focused: false,
|
|
@@ -167,10 +174,6 @@ var ColorPickerVue2 = {
|
|
|
167
174
|
computedOpen: function computedOpen() {
|
|
168
175
|
return this.isOpenControlled ? this.$props.open : this.currentOpen;
|
|
169
176
|
},
|
|
170
|
-
computedIconClassName: function computedIconClassName() {
|
|
171
|
-
var icon = this.$props.icon;
|
|
172
|
-
return this.$props.iconClassName || icon && "k-icon k-i-".concat(icon);
|
|
173
|
-
},
|
|
174
177
|
wrapperClassName: function wrapperClassName() {
|
|
175
178
|
var _a;
|
|
176
179
|
var _b = this.$props,
|
|
@@ -207,6 +210,9 @@ var ColorPickerVue2 = {
|
|
|
207
210
|
var _this2 = this;
|
|
208
211
|
var _a;
|
|
209
212
|
var _this = this;
|
|
213
|
+
var localizationService = provideLocalizationService(this);
|
|
214
|
+
// tslint:disable-next-line:max-line-length
|
|
215
|
+
var colorPickerLabelMessage = localizationService.toLanguageString(colorPickerDropdownButtonAriaLabel, messages[colorPickerDropdownButtonAriaLabel]);
|
|
210
216
|
var h = gh || createElement;
|
|
211
217
|
var _b = this.$props,
|
|
212
218
|
disabled = _b.disabled,
|
|
@@ -254,18 +260,26 @@ var ColorPickerVue2 = {
|
|
|
254
260
|
// const dir = useDir(focusableElementGuid, props.dir);
|
|
255
261
|
return h("span", {
|
|
256
262
|
"class": this.wrapperClassName,
|
|
257
|
-
|
|
263
|
+
role: 'combobox',
|
|
258
264
|
attrs: this.v3 ? undefined : {
|
|
265
|
+
role: 'combobox',
|
|
259
266
|
dir: dir,
|
|
260
267
|
id: this.$props.id,
|
|
261
268
|
"aria-labelledby": this.$props.ariaLabelledBy,
|
|
262
269
|
"aria-describedby": this.$props.ariaDescribedBy,
|
|
270
|
+
"aria-disabled": this.$props.disabled,
|
|
271
|
+
"aria-haspopup": 'dialog',
|
|
272
|
+
"aria-expanded": this.computedOpen,
|
|
263
273
|
tabindex: getTabIndex(tabIndex, disabled),
|
|
264
274
|
title: this.$props.title
|
|
265
275
|
},
|
|
276
|
+
dir: dir,
|
|
266
277
|
id: this.$props.id,
|
|
267
278
|
"aria-labelledby": this.$props.ariaLabelledBy,
|
|
268
279
|
"aria-describedby": this.$props.ariaDescribedBy,
|
|
280
|
+
"aria-disabled": this.$props.disabled,
|
|
281
|
+
"aria-haspopup": 'dialog',
|
|
282
|
+
"aria-expanded": this.computedOpen,
|
|
269
283
|
ref: this.focusableElementGuid,
|
|
270
284
|
tabindex: getTabIndex(tabIndex, disabled),
|
|
271
285
|
title: this.$props.title,
|
|
@@ -303,7 +317,8 @@ var ColorPickerVue2 = {
|
|
|
303
317
|
type: "button",
|
|
304
318
|
tabindex: -1,
|
|
305
319
|
rounded: null,
|
|
306
|
-
icon: 'caret-alt-down'
|
|
320
|
+
icon: 'caret-alt-down',
|
|
321
|
+
"aria-label": colorPickerLabelMessage
|
|
307
322
|
},
|
|
308
323
|
tabindex: -1,
|
|
309
324
|
ref: this.v3 ? function (el) {
|
|
@@ -315,7 +330,8 @@ var ColorPickerVue2 = {
|
|
|
315
330
|
},
|
|
316
331
|
rounded: null,
|
|
317
332
|
"class": "k-input-button",
|
|
318
|
-
icon: 'caret-alt-down'
|
|
333
|
+
icon: 'caret-alt-down',
|
|
334
|
+
"aria-label": colorPickerLabelMessage
|
|
319
335
|
}),
|
|
320
336
|
// @ts-ignore function children
|
|
321
337
|
h(Picker, {
|
|
@@ -15,7 +15,7 @@ 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 { classNames, validatePackage, getTabIndex, setRef, focusContainer, focusFirstFocusableChild, Keys, templateRendering, getListeners, getTemplate } from '@progress/kendo-vue-common';
|
|
18
|
+
import { classNames, validatePackage, getTabIndex, setRef, focusContainer, focusFirstFocusableChild, Keys, templateRendering, getListeners, getTemplate, Icon } from '@progress/kendo-vue-common';
|
|
19
19
|
import { ButtonGroup, Button } from '@progress/kendo-vue-buttons';
|
|
20
20
|
import { ColorPalette } from './ColorPalette';
|
|
21
21
|
import { ColorGradient } from './ColorGradient';
|
|
@@ -250,11 +250,17 @@ var FlatColorPickerVue2 = {
|
|
|
250
250
|
return _this.handleViewChange(e, 'gradient');
|
|
251
251
|
}
|
|
252
252
|
}, _this2.v3 ? function () {
|
|
253
|
-
return [h(
|
|
254
|
-
|
|
253
|
+
return [h(Icon, {
|
|
254
|
+
name: "color-canvas",
|
|
255
|
+
attrs: _this2.v3 ? undefined : {
|
|
256
|
+
name: "color-canvas"
|
|
257
|
+
}
|
|
255
258
|
})];
|
|
256
|
-
} : [h(
|
|
257
|
-
|
|
259
|
+
} : [h(Icon, {
|
|
260
|
+
name: "color-canvas",
|
|
261
|
+
attrs: _this2.v3 ? undefined : {
|
|
262
|
+
name: "color-canvas"
|
|
263
|
+
}
|
|
258
264
|
})]),
|
|
259
265
|
// @ts-ignore function children
|
|
260
266
|
h(Button, {
|
|
@@ -283,11 +289,17 @@ var FlatColorPickerVue2 = {
|
|
|
283
289
|
return _this.handleViewChange(e, 'palette');
|
|
284
290
|
}
|
|
285
291
|
}, _this2.v3 ? function () {
|
|
286
|
-
return [h(
|
|
287
|
-
|
|
292
|
+
return [h(Icon, {
|
|
293
|
+
name: "palette",
|
|
294
|
+
attrs: _this2.v3 ? undefined : {
|
|
295
|
+
name: "palette"
|
|
296
|
+
}
|
|
288
297
|
})];
|
|
289
|
-
} : [h(
|
|
290
|
-
|
|
298
|
+
} : [h(Icon, {
|
|
299
|
+
name: "palette",
|
|
300
|
+
attrs: _this2.v3 ? undefined : {
|
|
301
|
+
name: "palette"
|
|
302
|
+
}
|
|
291
303
|
})])];
|
|
292
304
|
} : [h(Button, {
|
|
293
305
|
tabIndex: _this2.computedTabIndex,
|
|
@@ -315,11 +327,17 @@ var FlatColorPickerVue2 = {
|
|
|
315
327
|
return _this.handleViewChange(e, 'gradient');
|
|
316
328
|
}
|
|
317
329
|
}, _this2.v3 ? function () {
|
|
318
|
-
return [h(
|
|
319
|
-
|
|
330
|
+
return [h(Icon, {
|
|
331
|
+
name: "color-canvas",
|
|
332
|
+
attrs: _this2.v3 ? undefined : {
|
|
333
|
+
name: "color-canvas"
|
|
334
|
+
}
|
|
320
335
|
})];
|
|
321
|
-
} : [h(
|
|
322
|
-
|
|
336
|
+
} : [h(Icon, {
|
|
337
|
+
name: "color-canvas",
|
|
338
|
+
attrs: _this2.v3 ? undefined : {
|
|
339
|
+
name: "color-canvas"
|
|
340
|
+
}
|
|
323
341
|
})]), h(Button, {
|
|
324
342
|
tabIndex: _this2.computedTabIndex,
|
|
325
343
|
attrs: _this2.v3 ? undefined : {
|
|
@@ -346,11 +364,17 @@ var FlatColorPickerVue2 = {
|
|
|
346
364
|
return _this.handleViewChange(e, 'palette');
|
|
347
365
|
}
|
|
348
366
|
}, _this2.v3 ? function () {
|
|
349
|
-
return [h(
|
|
350
|
-
|
|
367
|
+
return [h(Icon, {
|
|
368
|
+
name: "palette",
|
|
369
|
+
attrs: _this2.v3 ? undefined : {
|
|
370
|
+
name: "palette"
|
|
371
|
+
}
|
|
351
372
|
})];
|
|
352
|
-
} : [h(
|
|
353
|
-
|
|
373
|
+
} : [h(Icon, {
|
|
374
|
+
name: "palette",
|
|
375
|
+
attrs: _this2.v3 ? undefined : {
|
|
376
|
+
name: "palette"
|
|
377
|
+
}
|
|
354
378
|
})])])]), h("div", {
|
|
355
379
|
"class": "k-spacer"
|
|
356
380
|
}), h("div", {
|
|
@@ -375,11 +399,17 @@ var FlatColorPickerVue2 = {
|
|
|
375
399
|
},
|
|
376
400
|
onClick: this.handleResetColor
|
|
377
401
|
}, this.v3 ? function () {
|
|
378
|
-
return [h(
|
|
379
|
-
|
|
402
|
+
return [h(Icon, {
|
|
403
|
+
name: "droplet-slash",
|
|
404
|
+
attrs: _this2.v3 ? undefined : {
|
|
405
|
+
name: "droplet-slash"
|
|
406
|
+
}
|
|
380
407
|
})];
|
|
381
|
-
} : [h(
|
|
382
|
-
|
|
408
|
+
} : [h(Icon, {
|
|
409
|
+
name: "droplet-slash",
|
|
410
|
+
attrs: _this2.v3 ? undefined : {
|
|
411
|
+
name: "droplet-slash"
|
|
412
|
+
}
|
|
383
413
|
})]), this.$props.showPreview && h("div", {
|
|
384
414
|
"class": "k-coloreditor-preview k-vstack"
|
|
385
415
|
}, [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,7 +16,7 @@ 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
22
|
/**
|
|
@@ -108,7 +108,9 @@ var InputVue2 = {
|
|
|
108
108
|
showClearButton: Boolean,
|
|
109
109
|
inputClass: String,
|
|
110
110
|
wrapperClass: String,
|
|
111
|
-
tabIndex: Number
|
|
111
|
+
tabIndex: Number,
|
|
112
|
+
ariaLabelledBy: String,
|
|
113
|
+
ariaDescribedBy: String
|
|
112
114
|
},
|
|
113
115
|
data: function data() {
|
|
114
116
|
return {
|
|
@@ -157,7 +159,9 @@ var InputVue2 = {
|
|
|
157
159
|
showValidationIcon = _a.showValidationIcon,
|
|
158
160
|
showLoadingIcon = _a.showLoadingIcon,
|
|
159
161
|
showClearButton = _a.showClearButton,
|
|
160
|
-
tabIndex = _a.tabIndex
|
|
162
|
+
tabIndex = _a.tabIndex,
|
|
163
|
+
ariaLabelledBy = _a.ariaLabelledBy,
|
|
164
|
+
ariaDescribedBy = _a.ariaDescribedBy;
|
|
161
165
|
var inputId = id || this._inputId;
|
|
162
166
|
var textbox = h('input', __assign(__assign({
|
|
163
167
|
domProps: this.v3 ? null : __assign(__assign({}, this.$attrs), {
|
|
@@ -174,6 +178,9 @@ var InputVue2 = {
|
|
|
174
178
|
id: inputId,
|
|
175
179
|
tabindex: tabIndex,
|
|
176
180
|
required: required,
|
|
181
|
+
ariaLabelledby: ariaLabelledBy,
|
|
182
|
+
ariaDescribedby: ariaDescribedBy,
|
|
183
|
+
ariaDisabled: this.$props.disabled,
|
|
177
184
|
value: this.computedValue,
|
|
178
185
|
class: this.inputInnerClass,
|
|
179
186
|
ref: this.v3 ? function (el) {
|
|
@@ -223,16 +230,28 @@ var InputVue2 = {
|
|
|
223
230
|
ref: this.v3 ? function (el) {
|
|
224
231
|
_this.wrapperRef = el;
|
|
225
232
|
} : 'wrapper'
|
|
226
|
-
}, [iconName && h(
|
|
227
|
-
|
|
233
|
+
}, [iconName && h(Icon, {
|
|
234
|
+
name: iconName,
|
|
235
|
+
attrs: this.v3 ? undefined : {
|
|
236
|
+
name: iconName
|
|
237
|
+
},
|
|
238
|
+
"class": "k-input-icon"
|
|
228
239
|
}), this.$props.inputPrefix && h("span", {
|
|
229
240
|
"class": "k-input-prefix"
|
|
230
241
|
}, [inputPrefix]), textbox, this.$props.inputSuffix && h("span", {
|
|
231
242
|
"class": "k-input-suffix"
|
|
232
|
-
}, [inputSuffix]), showValidationIcon && isValid && h(
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
243
|
+
}, [inputSuffix]), showValidationIcon && isValid && h(Icon, {
|
|
244
|
+
name: 'check',
|
|
245
|
+
attrs: this.v3 ? undefined : {
|
|
246
|
+
name: 'check'
|
|
247
|
+
},
|
|
248
|
+
"class": "k-input-validation-icon"
|
|
249
|
+
}), showValidationIcon && !isValid && h(Icon, {
|
|
250
|
+
name: 'warning',
|
|
251
|
+
attrs: this.v3 ? undefined : {
|
|
252
|
+
name: 'warning'
|
|
253
|
+
},
|
|
254
|
+
"class": "k-input-validation-icon"
|
|
236
255
|
}), showLoadingIcon && h("span", {
|
|
237
256
|
"class": "k-input-loading-icon k-icon k-i-loading"
|
|
238
257
|
}), showClearButton && this.computedValue && h("span", {
|
|
@@ -241,8 +260,11 @@ var InputVue2 = {
|
|
|
241
260
|
"click": this.clearClick
|
|
242
261
|
},
|
|
243
262
|
"class": "k-clear-value"
|
|
244
|
-
}, [h(
|
|
245
|
-
|
|
263
|
+
}, [h(Icon, {
|
|
264
|
+
name: 'x',
|
|
265
|
+
attrs: this.v3 ? undefined : {
|
|
266
|
+
name: 'x'
|
|
267
|
+
}
|
|
246
268
|
})])]);
|
|
247
269
|
return label ?
|
|
248
270
|
// @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,7 +6,7 @@ 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
11
|
/**
|
|
12
12
|
* @hidden
|
|
@@ -15,6 +15,8 @@ var MaskedTextBoxVue2 = {
|
|
|
15
15
|
model: {
|
|
16
16
|
event: 'changemodel'
|
|
17
17
|
},
|
|
18
|
+
// @ts-ignore
|
|
19
|
+
emits: ['change', 'focus', 'blur', 'update:modelValue', 'update:modelRawValue', 'changemodel'],
|
|
18
20
|
props: {
|
|
19
21
|
type: {
|
|
20
22
|
type: String,
|
|
@@ -392,8 +394,12 @@ var MaskedTextBoxVue2 = {
|
|
|
392
394
|
style: !this.$props.label ? {
|
|
393
395
|
width: this.$props.width
|
|
394
396
|
} : undefined
|
|
395
|
-
}, [iconName && h(
|
|
396
|
-
|
|
397
|
+
}, [iconName && h(Icon, {
|
|
398
|
+
name: iconName,
|
|
399
|
+
attrs: this.v3 ? undefined : {
|
|
400
|
+
name: iconName
|
|
401
|
+
},
|
|
402
|
+
"class": 'k-input-icon'
|
|
397
403
|
}), this.$props.inputPrefix && h("span", {
|
|
398
404
|
"class": "k-input-prefix"
|
|
399
405
|
}, [inputPrefix]), h("input", {
|
|
@@ -407,6 +413,7 @@ var MaskedTextBoxVue2 = {
|
|
|
407
413
|
id: inputId,
|
|
408
414
|
"aria-labelledby": this.$props.ariaLabelledBy,
|
|
409
415
|
"aria-describedby": this.$props.ariaDescribedBy,
|
|
416
|
+
"aria-disabled": this.$props.disabled,
|
|
410
417
|
name: this.$props.name,
|
|
411
418
|
tabindex: getTabIndex(this.$props.tabIndex, this.$props.disabled, true),
|
|
412
419
|
accesskey: this.$props.accessKey,
|
|
@@ -414,6 +421,7 @@ var MaskedTextBoxVue2 = {
|
|
|
414
421
|
disabled: this.$props.disabled || undefined,
|
|
415
422
|
readonly: this.$props.readonly || undefined,
|
|
416
423
|
placeholder: this.$props.placeholder,
|
|
424
|
+
"aria-placeholder": this.$props.placeholder,
|
|
417
425
|
required: this.$props.required
|
|
418
426
|
},
|
|
419
427
|
autocomplete: "off",
|
|
@@ -428,6 +436,7 @@ var MaskedTextBoxVue2 = {
|
|
|
428
436
|
id: inputId,
|
|
429
437
|
"aria-labelledby": this.$props.ariaLabelledBy,
|
|
430
438
|
"aria-describedby": this.$props.ariaDescribedBy,
|
|
439
|
+
"aria-disabled": this.$props.disabled,
|
|
431
440
|
name: this.$props.name,
|
|
432
441
|
tabindex: getTabIndex(this.$props.tabIndex, this.$props.disabled, true),
|
|
433
442
|
accesskey: this.$props.accessKey,
|
|
@@ -435,6 +444,7 @@ var MaskedTextBoxVue2 = {
|
|
|
435
444
|
disabled: this.$props.disabled || undefined,
|
|
436
445
|
readonly: this.$props.readonly || undefined,
|
|
437
446
|
placeholder: this.$props.placeholder,
|
|
447
|
+
"aria-placeholder": this.$props.placeholder,
|
|
438
448
|
required: this.$props.required,
|
|
439
449
|
ref: setRef(this, 'input'),
|
|
440
450
|
onInput: this.onChangeHandler,
|
|
@@ -453,10 +463,18 @@ var MaskedTextBoxVue2 = {
|
|
|
453
463
|
onDrop: returnFalse
|
|
454
464
|
}), this.$props.inputSuffix && h("span", {
|
|
455
465
|
"class": "k-input-suffix"
|
|
456
|
-
}, [inputSuffix]), showValidationIcon && isValid && h(
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
466
|
+
}, [inputSuffix]), showValidationIcon && isValid && h(Icon, {
|
|
467
|
+
name: 'check',
|
|
468
|
+
attrs: this.v3 ? undefined : {
|
|
469
|
+
name: 'check'
|
|
470
|
+
},
|
|
471
|
+
"class": "k-input-validation-icon"
|
|
472
|
+
}), showValidationIcon && !isValid && h(Icon, {
|
|
473
|
+
name: 'warning',
|
|
474
|
+
attrs: this.v3 ? undefined : {
|
|
475
|
+
name: 'warning'
|
|
476
|
+
},
|
|
477
|
+
"class": "k-input-validation-icon"
|
|
460
478
|
}), showLoadingIcon && h("span", {
|
|
461
479
|
"class": "k-input-loading-icon k-icon k-i-loading"
|
|
462
480
|
}), showClearButton && newValue && h("span", {
|
|
@@ -465,8 +483,11 @@ var MaskedTextBoxVue2 = {
|
|
|
465
483
|
"click": this.clearClick
|
|
466
484
|
},
|
|
467
485
|
"class": "k-clear-value"
|
|
468
|
-
}, [h(
|
|
469
|
-
|
|
486
|
+
}, [h(Icon, {
|
|
487
|
+
name: 'x',
|
|
488
|
+
attrs: this.v3 ? undefined : {
|
|
489
|
+
name: 'x'
|
|
490
|
+
}
|
|
470
491
|
})])]);
|
|
471
492
|
return this.$props.label ? h("span", {
|
|
472
493
|
"class": this.spanClassNames,
|
|
@@ -42,6 +42,10 @@ export declare const colorGradientA = "colorGradient.a";
|
|
|
42
42
|
* @hidden
|
|
43
43
|
*/
|
|
44
44
|
export declare const colorGradientHex = "colorGradient.hex";
|
|
45
|
+
/**
|
|
46
|
+
* @hidden
|
|
47
|
+
*/
|
|
48
|
+
export declare const colorGradientHexLabel = "colorGradient.hexLabel";
|
|
45
49
|
/**
|
|
46
50
|
* @hidden
|
|
47
51
|
*/
|
|
@@ -82,6 +86,14 @@ export declare const colorGradientPass = "colorGradient.colorGradientPass";
|
|
|
82
86
|
* @hidden
|
|
83
87
|
*/
|
|
84
88
|
export declare const colorGradientFail = "colorGradient.colorGradientFail";
|
|
89
|
+
/**
|
|
90
|
+
* @hidden
|
|
91
|
+
*/
|
|
92
|
+
export declare const colorGradientHueSliderLabel = "colorGradient.hueSliderLabel";
|
|
93
|
+
/**
|
|
94
|
+
* @hidden
|
|
95
|
+
*/
|
|
96
|
+
export declare const colorGradientAlphaSliderLabel = "colorGradient.alphaSliderLabel";
|
|
85
97
|
/**
|
|
86
98
|
* @hidden
|
|
87
99
|
*/
|
|
@@ -122,6 +134,26 @@ export declare const switchValidation = "switch.validation";
|
|
|
122
134
|
* @hidden
|
|
123
135
|
*/
|
|
124
136
|
export declare const colorPickerDropdownButtonAriaLabel = "colorPicker.dropdownButtonAriaLabel";
|
|
137
|
+
/**
|
|
138
|
+
* @hidden
|
|
139
|
+
*/
|
|
140
|
+
export declare const colorGradientToggleInputsButton = "colorGradient.toggleInputsButton";
|
|
141
|
+
/**
|
|
142
|
+
* @hidden
|
|
143
|
+
*/
|
|
144
|
+
export declare const ratingAriaLabel = "rating.ariaLabel";
|
|
145
|
+
/**
|
|
146
|
+
* @hidden
|
|
147
|
+
*/
|
|
148
|
+
export declare const signatureClear = "signature.clear";
|
|
149
|
+
/**
|
|
150
|
+
* @hidden
|
|
151
|
+
*/
|
|
152
|
+
export declare const signatureMaximize = "signature.maximize";
|
|
153
|
+
/**
|
|
154
|
+
* @hidden
|
|
155
|
+
*/
|
|
156
|
+
export declare const signatureMinimize = "signature.minimize";
|
|
125
157
|
/**
|
|
126
158
|
* @hidden
|
|
127
159
|
*/
|
|
@@ -142,11 +174,15 @@ export declare const messages: {
|
|
|
142
174
|
"colorGradient.bLabel": string;
|
|
143
175
|
"colorGradient.aLabel": string;
|
|
144
176
|
"colorGradient.hex": string;
|
|
177
|
+
"colorGradient.hexLabel": string;
|
|
145
178
|
"colorGradient.contrastRatio": string;
|
|
146
179
|
"colorGradient.colorGradientAALevel": string;
|
|
147
180
|
"colorGradient.colorGradientAAALevel": string;
|
|
148
181
|
"colorGradient.colorGradientPass": string;
|
|
149
182
|
"colorGradient.colorGradientFail": string;
|
|
183
|
+
"colorGradient.hueSliderLabel": string;
|
|
184
|
+
"colorGradient.alphaSliderLabel": string;
|
|
185
|
+
"colorGradient.toggleInputsButton": string;
|
|
150
186
|
"flatColorPicker.cancelBtn": string;
|
|
151
187
|
"flatColorPicker.applyBtn": string;
|
|
152
188
|
"flatColorPicker.gradientBtn": string;
|
|
@@ -157,4 +193,8 @@ export declare const messages: {
|
|
|
157
193
|
"radioButton.validation": string;
|
|
158
194
|
"switch.validation": string;
|
|
159
195
|
"colorPicker.dropdownButtonAriaLabel": string;
|
|
196
|
+
"rating.ariaLabel": string;
|
|
197
|
+
"signature.clear": string;
|
|
198
|
+
"signature.maximize": string;
|
|
199
|
+
"signature.minimize": string;
|
|
160
200
|
};
|