@progress/kendo-vue-inputs 3.7.4-dev.202211301436 → 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 +16 -12
|
@@ -6,7 +6,7 @@ var isV3 = allVue.version && allVue.version[0] === '3';
|
|
|
6
6
|
var ref = allVue.ref;
|
|
7
7
|
var inject = allVue.inject;
|
|
8
8
|
import { Button } from '@progress/kendo-vue-buttons';
|
|
9
|
-
import { Keys, classNames, Draggable,
|
|
9
|
+
import { Keys, classNames, Draggable, validatePackage, getDefaultSlots } from '@progress/kendo-vue-common';
|
|
10
10
|
import { provideLocalizationService } from '@progress/kendo-vue-intl';
|
|
11
11
|
import { messages, sliderIncreaseValue, sliderDecreaseValue, sliderDragTitle } from '../messages/main.js';
|
|
12
12
|
import { SLIDER_LABEL_ATTRIBUTE } from './SliderLabel.js';
|
|
@@ -138,29 +138,13 @@ var SliderVue2 = {
|
|
|
138
138
|
var percentValue = (this.computedValue - this.$props.min) / (this.$props.max - this.$props.min) * 100;
|
|
139
139
|
var defaultSlot = getDefaultSlots(this);
|
|
140
140
|
return h("div", {
|
|
141
|
-
|
|
141
|
+
dir: this.currentDir,
|
|
142
142
|
attrs: this.v3 ? undefined : {
|
|
143
|
-
"aria-valuemin": this.$props.min,
|
|
144
|
-
"aria-valuemax": this.$props.max,
|
|
145
|
-
"aria-valuenow": this.computedValue,
|
|
146
|
-
"aria-disabled": this.$props.disabled ? 'true' : undefined,
|
|
147
|
-
"aria-labelledby": this.$props.ariaLabelledBy,
|
|
148
|
-
"aria-describedby": this.$props.ariaDescribedBy,
|
|
149
143
|
dir: this.currentDir,
|
|
150
|
-
|
|
151
|
-
id: this.$props.id,
|
|
152
|
-
tabindex: getTabIndex(this.$props.tabIndex, this.$props.disabled, undefined)
|
|
144
|
+
id: this.$props.id
|
|
153
145
|
},
|
|
154
|
-
"aria-valuemax": this.$props.max,
|
|
155
|
-
"aria-valuenow": this.computedValue,
|
|
156
|
-
"aria-disabled": this.$props.disabled ? 'true' : undefined,
|
|
157
|
-
"aria-labelledby": this.$props.ariaLabelledBy,
|
|
158
|
-
"aria-describedby": this.$props.ariaDescribedBy,
|
|
159
|
-
dir: this.currentDir,
|
|
160
|
-
role: "slider",
|
|
161
146
|
id: this.$props.id,
|
|
162
147
|
style: this.$props.style,
|
|
163
|
-
tabindex: getTabIndex(this.$props.tabIndex, this.$props.disabled, undefined),
|
|
164
148
|
onFocus: this.onFocus,
|
|
165
149
|
on: this.v3 ? undefined : {
|
|
166
150
|
"focus": this.onFocus,
|
|
@@ -183,12 +167,12 @@ var SliderVue2 = {
|
|
|
183
167
|
type: "button",
|
|
184
168
|
attrs: this.v3 ? undefined : {
|
|
185
169
|
type: "button",
|
|
186
|
-
|
|
170
|
+
tabindex: -1,
|
|
187
171
|
icon: this.$props.vertical ? 'caret-alt-down' : 'caret-alt-left',
|
|
188
172
|
rounded: 'full',
|
|
189
173
|
title: lS.toLanguageString(sliderDecreaseValue, messages[sliderDecreaseValue])
|
|
190
174
|
},
|
|
191
|
-
|
|
175
|
+
tabindex: -1,
|
|
192
176
|
icon: this.$props.vertical ? 'caret-alt-down' : 'caret-alt-left',
|
|
193
177
|
style: {
|
|
194
178
|
position: 'relative'
|
|
@@ -230,10 +214,24 @@ var SliderVue2 = {
|
|
|
230
214
|
}
|
|
231
215
|
}), h("a", {
|
|
232
216
|
"class": "k-draghandle",
|
|
233
|
-
|
|
217
|
+
role: "slider",
|
|
234
218
|
attrs: _this.v3 ? undefined : {
|
|
219
|
+
role: "slider",
|
|
220
|
+
tabIndex: "0",
|
|
221
|
+
"aria-valuenow": _this.computedValue,
|
|
222
|
+
"aria-valuemin": _this.$props.min,
|
|
223
|
+
"aria-valuemax": _this.$props.max,
|
|
224
|
+
"aria-valuetext": _this.computedValue.toString(),
|
|
225
|
+
"aria-disabled": _this.$props.disabled ? 'true' : undefined,
|
|
235
226
|
title: lS.toLanguageString(sliderDragTitle, messages[sliderDragTitle])
|
|
236
227
|
},
|
|
228
|
+
tabIndex: "0",
|
|
229
|
+
"aria-valuenow": _this.computedValue,
|
|
230
|
+
"aria-valuemin": _this.$props.min,
|
|
231
|
+
"aria-valuemax": _this.$props.max,
|
|
232
|
+
"aria-valuetext": _this.computedValue.toString(),
|
|
233
|
+
"aria-disabled": _this.$props.disabled ? 'true' : undefined,
|
|
234
|
+
title: lS.toLanguageString(sliderDragTitle, messages[sliderDragTitle]),
|
|
237
235
|
style: _this.$props.vertical ? {
|
|
238
236
|
bottom: percentValue + '%',
|
|
239
237
|
zIndex: 1
|
|
@@ -258,10 +256,24 @@ var SliderVue2 = {
|
|
|
258
256
|
}
|
|
259
257
|
}), h("a", {
|
|
260
258
|
"class": "k-draghandle",
|
|
261
|
-
|
|
259
|
+
role: "slider",
|
|
262
260
|
attrs: _this.v3 ? undefined : {
|
|
261
|
+
role: "slider",
|
|
262
|
+
tabIndex: "0",
|
|
263
|
+
"aria-valuenow": _this.computedValue,
|
|
264
|
+
"aria-valuemin": _this.$props.min,
|
|
265
|
+
"aria-valuemax": _this.$props.max,
|
|
266
|
+
"aria-valuetext": _this.computedValue.toString(),
|
|
267
|
+
"aria-disabled": _this.$props.disabled ? 'true' : undefined,
|
|
263
268
|
title: lS.toLanguageString(sliderDragTitle, messages[sliderDragTitle])
|
|
264
269
|
},
|
|
270
|
+
tabIndex: "0",
|
|
271
|
+
"aria-valuenow": _this.computedValue,
|
|
272
|
+
"aria-valuemin": _this.$props.min,
|
|
273
|
+
"aria-valuemax": _this.$props.max,
|
|
274
|
+
"aria-valuetext": _this.computedValue.toString(),
|
|
275
|
+
"aria-disabled": _this.$props.disabled ? 'true' : undefined,
|
|
276
|
+
title: lS.toLanguageString(sliderDragTitle, messages[sliderDragTitle]),
|
|
265
277
|
style: _this.$props.vertical ? {
|
|
266
278
|
bottom: percentValue + '%',
|
|
267
279
|
zIndex: 1
|
|
@@ -272,12 +284,12 @@ var SliderVue2 = {
|
|
|
272
284
|
type: "button",
|
|
273
285
|
attrs: this.v3 ? undefined : {
|
|
274
286
|
type: "button",
|
|
275
|
-
|
|
287
|
+
tabindex: -1,
|
|
276
288
|
icon: this.$props.vertical ? 'caret-alt-up' : 'caret-alt-right',
|
|
277
289
|
rounded: 'full',
|
|
278
290
|
title: lS.toLanguageString(sliderIncreaseValue, messages[sliderIncreaseValue])
|
|
279
291
|
},
|
|
280
|
-
|
|
292
|
+
tabindex: -1,
|
|
281
293
|
icon: this.$props.vertical ? 'caret-alt-up' : 'caret-alt-right',
|
|
282
294
|
rounded: 'full',
|
|
283
295
|
style: {
|
|
@@ -160,10 +160,16 @@ var SwitchVue2 = {
|
|
|
160
160
|
required = _a.required;
|
|
161
161
|
return h("span", {
|
|
162
162
|
"class": this.switchClassName,
|
|
163
|
-
|
|
163
|
+
role: 'switch',
|
|
164
164
|
attrs: this.v3 ? undefined : {
|
|
165
|
+
role: 'switch',
|
|
166
|
+
"aria-checked": this.computedValue,
|
|
167
|
+
"aria-disabled": disabled || undefined,
|
|
165
168
|
dir: this.currentDir
|
|
166
169
|
},
|
|
170
|
+
"aria-checked": this.computedValue,
|
|
171
|
+
"aria-disabled": disabled || undefined,
|
|
172
|
+
dir: this.currentDir,
|
|
167
173
|
onKeydown: this.handleKeyDown,
|
|
168
174
|
on: this.v3 ? undefined : {
|
|
169
175
|
"keydown": this.handleKeyDown,
|
|
@@ -179,17 +185,11 @@ var SwitchVue2 = {
|
|
|
179
185
|
id: id || this._id,
|
|
180
186
|
attrs: this.v3 ? undefined : {
|
|
181
187
|
id: id || this._id,
|
|
182
|
-
role: 'switch',
|
|
183
|
-
"aria-checked": this.computedValue,
|
|
184
|
-
"aria-disabled": disabled || undefined,
|
|
185
188
|
"aria-labelledby": this.$props.ariaLabelledBy,
|
|
186
189
|
"aria-describedby": this.$props.ariaDescribedBy,
|
|
187
190
|
tabindex: getTabIndex(tabIndex, disabled, undefined),
|
|
188
191
|
accesskey: this.$props.accessKey
|
|
189
192
|
},
|
|
190
|
-
role: 'switch',
|
|
191
|
-
"aria-checked": this.computedValue,
|
|
192
|
-
"aria-disabled": disabled || undefined,
|
|
193
193
|
"aria-labelledby": this.$props.ariaLabelledBy,
|
|
194
194
|
"aria-describedby": this.$props.ariaDescribedBy,
|
|
195
195
|
ref: setRef(this, 'element'),
|
|
@@ -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 { guid, isRtl, getTabIndex, validatePackage, kendoThemeMaps, templateDefinition, templateRendering, getListeners, getTemplate
|
|
18
|
+
import { guid, isRtl, getTabIndex, validatePackage, kendoThemeMaps, templateDefinition, templateRendering, getListeners, getTemplate, Icon
|
|
19
19
|
// useDir,
|
|
20
20
|
} from '@progress/kendo-vue-common';
|
|
21
21
|
import { packageMetadata } from '../package-metadata.js';
|
|
@@ -287,16 +287,28 @@ var TextAreaVue2 = {
|
|
|
287
287
|
"class": "k-hstack k-flex"
|
|
288
288
|
}, [iconName && h("span", {
|
|
289
289
|
"class": "k-flex-wrap"
|
|
290
|
-
}, [h(
|
|
291
|
-
|
|
290
|
+
}, [h(Icon, {
|
|
291
|
+
name: iconName,
|
|
292
|
+
attrs: this.v3 ? undefined : {
|
|
293
|
+
name: iconName
|
|
294
|
+
},
|
|
295
|
+
"class": "k-input-icon"
|
|
292
296
|
})]), textarea, showValidationIcon && this.isValid && h("span", {
|
|
293
297
|
"class": this.suffixIconWrapClass
|
|
294
|
-
}, [h(
|
|
295
|
-
|
|
298
|
+
}, [h(Icon, {
|
|
299
|
+
name: 'check',
|
|
300
|
+
attrs: this.v3 ? undefined : {
|
|
301
|
+
name: 'check'
|
|
302
|
+
},
|
|
303
|
+
"class": "k-input-validation-icon"
|
|
296
304
|
})]), showValidationIcon && !this.isValid && h("span", {
|
|
297
305
|
"class": this.suffixIconWrapClass
|
|
298
|
-
}, [h(
|
|
299
|
-
|
|
306
|
+
}, [h(Icon, {
|
|
307
|
+
name: 'warning',
|
|
308
|
+
attrs: this.v3 ? undefined : {
|
|
309
|
+
name: 'warning'
|
|
310
|
+
},
|
|
311
|
+
"class": "k-input-validation-icon"
|
|
300
312
|
})]), showLoadingIcon && h("span", {
|
|
301
313
|
"class": this.suffixIconWrapClass
|
|
302
314
|
}, [h("span", {
|
|
@@ -309,8 +321,11 @@ var TextAreaVue2 = {
|
|
|
309
321
|
"click": this.clearClick
|
|
310
322
|
},
|
|
311
323
|
"class": "k-clear-value"
|
|
312
|
-
}, [h(
|
|
313
|
-
|
|
324
|
+
}, [h(Icon, {
|
|
325
|
+
name: 'x',
|
|
326
|
+
attrs: this.v3 ? undefined : {
|
|
327
|
+
name: 'x'
|
|
328
|
+
}
|
|
314
329
|
})])])]), this.$props.inputSuffix && h("span", {
|
|
315
330
|
"class": this.suffixRenderClass
|
|
316
331
|
}, [inputSuffix])]);
|
|
@@ -12,6 +12,7 @@ var isV3 = allVue.version && allVue.version[0] === '3';
|
|
|
12
12
|
var kendo_vue_intl_1 = require("@progress/kendo-vue-intl");
|
|
13
13
|
var main_1 = require("../messages/main");
|
|
14
14
|
var color_parser_1 = require("./utils/color-parser");
|
|
15
|
+
var kendo_vue_common_1 = require("@progress/kendo-vue-common");
|
|
15
16
|
/**
|
|
16
17
|
* @hidden
|
|
17
18
|
*/
|
|
@@ -53,14 +54,20 @@ var ColorContrastLabelsVue2 = {
|
|
|
53
54
|
var success = h("span", {
|
|
54
55
|
key: 1,
|
|
55
56
|
"class": "k-contrast-validation k-text-success"
|
|
56
|
-
}, [passMessage, " ", h(
|
|
57
|
-
|
|
57
|
+
}, [passMessage, " ", h(kendo_vue_common_1.Icon, {
|
|
58
|
+
name: "check",
|
|
59
|
+
attrs: this.v3 ? undefined : {
|
|
60
|
+
name: "check"
|
|
61
|
+
}
|
|
58
62
|
})]);
|
|
59
63
|
var error = h("span", {
|
|
60
64
|
key: 2,
|
|
61
65
|
"class": "k-contrast-validation k-text-error"
|
|
62
|
-
}, [failMessage, " ", h(
|
|
63
|
-
|
|
66
|
+
}, [failMessage, " ", h(kendo_vue_common_1.Icon, {
|
|
67
|
+
name: "close",
|
|
68
|
+
attrs: this.v3 ? undefined : {
|
|
69
|
+
name: "close"
|
|
70
|
+
}
|
|
64
71
|
})]);
|
|
65
72
|
return h("div", {
|
|
66
73
|
"class": "k-vbox k-colorgradient-color-contrast"
|
|
@@ -70,14 +77,23 @@ var ColorContrastLabelsVue2 = {
|
|
|
70
77
|
"class": "k-contrast-ratio-text"
|
|
71
78
|
}, [contrastText]), aaPass ? h("span", {
|
|
72
79
|
"class": "k-contrast-validation k-text-success"
|
|
73
|
-
}, [h(
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
80
|
+
}, [h(kendo_vue_common_1.Icon, {
|
|
81
|
+
name: "check",
|
|
82
|
+
attrs: this.v3 ? undefined : {
|
|
83
|
+
name: "check"
|
|
84
|
+
}
|
|
85
|
+
}), aaaPass && h(kendo_vue_common_1.Icon, {
|
|
86
|
+
name: "check",
|
|
87
|
+
attrs: this.v3 ? undefined : {
|
|
88
|
+
name: "check"
|
|
89
|
+
}
|
|
77
90
|
})]) : h("span", {
|
|
78
91
|
"class": "k-contrast-validation k-text-error"
|
|
79
|
-
}, [h(
|
|
80
|
-
|
|
92
|
+
}, [h(kendo_vue_common_1.Icon, {
|
|
93
|
+
name: "close",
|
|
94
|
+
attrs: this.v3 ? undefined : {
|
|
95
|
+
name: "close"
|
|
96
|
+
}
|
|
81
97
|
})])]), h("div", [h("span", [aaText]), aaPass ? success : error]), h("div", [h("span", [aaaText]), aaaPass ? success : error])]);
|
|
82
98
|
}
|
|
83
99
|
};
|
|
@@ -142,6 +142,10 @@ var ColorGradientVue2 = {
|
|
|
142
142
|
'k-disabled': this.$props.disabled
|
|
143
143
|
});
|
|
144
144
|
var localizationService = (0, kendo_vue_intl_1.provideLocalizationService)(this);
|
|
145
|
+
// tslint:disable-next-line:max-line-length
|
|
146
|
+
var colorGradientHueSliderLabelMessage = localizationService.toLanguageString(main_2.colorGradientHueSliderLabel, main_2.messages[main_2.colorGradientHueSliderLabel]);
|
|
147
|
+
// tslint:disable-next-line:max-line-length
|
|
148
|
+
var colorGradientAlphaSliderLabelMessage = localizationService.toLanguageString(main_2.colorGradientAlphaSliderLabel, main_2.messages[main_2.colorGradientAlphaSliderLabel]);
|
|
145
149
|
var dragHandle = localizationService.toLanguageString(main_2.colorGradientDragHandle, main_2.messages[main_2.colorGradientDragHandle]);
|
|
146
150
|
var renderRectangleDragHandle = function renderRectangleDragHandle() {
|
|
147
151
|
var style = {};
|
|
@@ -157,11 +161,13 @@ var ColorGradientVue2 = {
|
|
|
157
161
|
role: "slider",
|
|
158
162
|
attrs: this.v3 ? undefined : {
|
|
159
163
|
role: "slider",
|
|
164
|
+
"aria-orientation": 'undefined',
|
|
160
165
|
"aria-label": dragHandle + "".concat(this.value || 'none'),
|
|
161
166
|
"aria-valuenow": Math.round(this.hsva.s * 100),
|
|
162
167
|
"aria-valuetext": "\n saturation: ".concat(Math.round(this.hsva.s * 100), "%,\n value: ").concat(Math.round(this.hsva.v * 100), "%"),
|
|
163
168
|
tabindex: this.computedTabIndex
|
|
164
169
|
},
|
|
170
|
+
"aria-orientation": 'undefined',
|
|
165
171
|
"aria-label": dragHandle + "".concat(this.value || 'none'),
|
|
166
172
|
"aria-valuenow": Math.round(this.hsva.s * 100),
|
|
167
173
|
"aria-valuetext": "\n saturation: ".concat(Math.round(this.hsva.s * 100), "%,\n value: ").concat(Math.round(this.hsva.v * 100), "%"),
|
|
@@ -264,7 +270,8 @@ var ColorGradientVue2 = {
|
|
|
264
270
|
min: 0,
|
|
265
271
|
max: 360,
|
|
266
272
|
step: 5,
|
|
267
|
-
disabled: this.$props.disabled
|
|
273
|
+
disabled: this.$props.disabled,
|
|
274
|
+
ariaLabel: colorGradientHueSliderLabelMessage
|
|
268
275
|
},
|
|
269
276
|
value: this.hsva.h,
|
|
270
277
|
buttons: false,
|
|
@@ -277,7 +284,8 @@ var ColorGradientVue2 = {
|
|
|
277
284
|
"change": this.onHueSliderChange
|
|
278
285
|
},
|
|
279
286
|
"class": "k-hue-slider k-colorgradient-slider",
|
|
280
|
-
disabled: this.$props.disabled
|
|
287
|
+
disabled: this.$props.disabled,
|
|
288
|
+
ariaLabel: colorGradientHueSliderLabelMessage
|
|
281
289
|
}), this.$props.opacity && h(main_1.Slider, {
|
|
282
290
|
tabIndex: this.computedTabIndex,
|
|
283
291
|
attrs: this.v3 ? undefined : {
|
|
@@ -288,7 +296,8 @@ var ColorGradientVue2 = {
|
|
|
288
296
|
min: 0,
|
|
289
297
|
max: 100,
|
|
290
298
|
step: 1,
|
|
291
|
-
disabled: this.$props.disabled
|
|
299
|
+
disabled: this.$props.disabled,
|
|
300
|
+
ariaLabel: colorGradientAlphaSliderLabelMessage
|
|
292
301
|
},
|
|
293
302
|
value: (0, misc_1.isPresent)(this.hsva.a) ? this.hsva.a * 100 : 100,
|
|
294
303
|
buttons: false,
|
|
@@ -302,6 +311,7 @@ var ColorGradientVue2 = {
|
|
|
302
311
|
},
|
|
303
312
|
"class": "k-alpha-slider k-colorgradient-slider",
|
|
304
313
|
disabled: this.$props.disabled,
|
|
314
|
+
ariaLabel: colorGradientAlphaSliderLabelMessage,
|
|
305
315
|
ref: this.v3 ? function (el) {
|
|
306
316
|
_this.alphaSliderRef = el;
|
|
307
317
|
} : 'alphaSlider'
|
|
@@ -27,6 +27,8 @@ var package_metadata_1 = require("../package-metadata");
|
|
|
27
27
|
var Picker_1 = require("./Picker");
|
|
28
28
|
var FlatColorPicker_1 = require("./FlatColorPicker");
|
|
29
29
|
var color_cache_1 = require("./utils/color-cache");
|
|
30
|
+
var kendo_vue_intl_1 = require("@progress/kendo-vue-intl");
|
|
31
|
+
var main_1 = require("../messages/main");
|
|
30
32
|
/**
|
|
31
33
|
* @hidden
|
|
32
34
|
*/
|
|
@@ -151,6 +153,11 @@ var ColorPickerVue2 = {
|
|
|
151
153
|
default: undefined
|
|
152
154
|
}
|
|
153
155
|
},
|
|
156
|
+
inject: {
|
|
157
|
+
kendoLocalizationService: {
|
|
158
|
+
default: null
|
|
159
|
+
}
|
|
160
|
+
},
|
|
154
161
|
data: function data() {
|
|
155
162
|
return {
|
|
156
163
|
focused: false,
|
|
@@ -171,10 +178,6 @@ var ColorPickerVue2 = {
|
|
|
171
178
|
computedOpen: function computedOpen() {
|
|
172
179
|
return this.isOpenControlled ? this.$props.open : this.currentOpen;
|
|
173
180
|
},
|
|
174
|
-
computedIconClassName: function computedIconClassName() {
|
|
175
|
-
var icon = this.$props.icon;
|
|
176
|
-
return this.$props.iconClassName || icon && "k-icon k-i-".concat(icon);
|
|
177
|
-
},
|
|
178
181
|
wrapperClassName: function wrapperClassName() {
|
|
179
182
|
var _a;
|
|
180
183
|
var _b = this.$props,
|
|
@@ -211,6 +214,9 @@ var ColorPickerVue2 = {
|
|
|
211
214
|
var _this2 = this;
|
|
212
215
|
var _a;
|
|
213
216
|
var _this = this;
|
|
217
|
+
var localizationService = (0, kendo_vue_intl_1.provideLocalizationService)(this);
|
|
218
|
+
// tslint:disable-next-line:max-line-length
|
|
219
|
+
var colorPickerLabelMessage = localizationService.toLanguageString(main_1.colorPickerDropdownButtonAriaLabel, main_1.messages[main_1.colorPickerDropdownButtonAriaLabel]);
|
|
214
220
|
var h = gh || createElement;
|
|
215
221
|
var _b = this.$props,
|
|
216
222
|
disabled = _b.disabled,
|
|
@@ -258,18 +264,26 @@ var ColorPickerVue2 = {
|
|
|
258
264
|
// const dir = useDir(focusableElementGuid, props.dir);
|
|
259
265
|
return h("span", {
|
|
260
266
|
"class": this.wrapperClassName,
|
|
261
|
-
|
|
267
|
+
role: 'combobox',
|
|
262
268
|
attrs: this.v3 ? undefined : {
|
|
269
|
+
role: 'combobox',
|
|
263
270
|
dir: dir,
|
|
264
271
|
id: this.$props.id,
|
|
265
272
|
"aria-labelledby": this.$props.ariaLabelledBy,
|
|
266
273
|
"aria-describedby": this.$props.ariaDescribedBy,
|
|
274
|
+
"aria-disabled": this.$props.disabled,
|
|
275
|
+
"aria-haspopup": 'dialog',
|
|
276
|
+
"aria-expanded": this.computedOpen,
|
|
267
277
|
tabindex: (0, kendo_vue_common_1.getTabIndex)(tabIndex, disabled),
|
|
268
278
|
title: this.$props.title
|
|
269
279
|
},
|
|
280
|
+
dir: dir,
|
|
270
281
|
id: this.$props.id,
|
|
271
282
|
"aria-labelledby": this.$props.ariaLabelledBy,
|
|
272
283
|
"aria-describedby": this.$props.ariaDescribedBy,
|
|
284
|
+
"aria-disabled": this.$props.disabled,
|
|
285
|
+
"aria-haspopup": 'dialog',
|
|
286
|
+
"aria-expanded": this.computedOpen,
|
|
273
287
|
ref: this.focusableElementGuid,
|
|
274
288
|
tabindex: (0, kendo_vue_common_1.getTabIndex)(tabIndex, disabled),
|
|
275
289
|
title: this.$props.title,
|
|
@@ -307,7 +321,8 @@ var ColorPickerVue2 = {
|
|
|
307
321
|
type: "button",
|
|
308
322
|
tabindex: -1,
|
|
309
323
|
rounded: null,
|
|
310
|
-
icon: 'caret-alt-down'
|
|
324
|
+
icon: 'caret-alt-down',
|
|
325
|
+
"aria-label": colorPickerLabelMessage
|
|
311
326
|
},
|
|
312
327
|
tabindex: -1,
|
|
313
328
|
ref: this.v3 ? function (el) {
|
|
@@ -319,7 +334,8 @@ var ColorPickerVue2 = {
|
|
|
319
334
|
},
|
|
320
335
|
rounded: null,
|
|
321
336
|
"class": "k-input-button",
|
|
322
|
-
icon: 'caret-alt-down'
|
|
337
|
+
icon: 'caret-alt-down',
|
|
338
|
+
"aria-label": colorPickerLabelMessage
|
|
323
339
|
}),
|
|
324
340
|
// @ts-ignore function children
|
|
325
341
|
h(Picker_1.Picker, {
|
|
@@ -256,11 +256,17 @@ var FlatColorPickerVue2 = {
|
|
|
256
256
|
return _this.handleViewChange(e, 'gradient');
|
|
257
257
|
}
|
|
258
258
|
}, _this2.v3 ? function () {
|
|
259
|
-
return [h(
|
|
260
|
-
|
|
259
|
+
return [h(kendo_vue_common_1.Icon, {
|
|
260
|
+
name: "color-canvas",
|
|
261
|
+
attrs: _this2.v3 ? undefined : {
|
|
262
|
+
name: "color-canvas"
|
|
263
|
+
}
|
|
261
264
|
})];
|
|
262
|
-
} : [h(
|
|
263
|
-
|
|
265
|
+
} : [h(kendo_vue_common_1.Icon, {
|
|
266
|
+
name: "color-canvas",
|
|
267
|
+
attrs: _this2.v3 ? undefined : {
|
|
268
|
+
name: "color-canvas"
|
|
269
|
+
}
|
|
264
270
|
})]),
|
|
265
271
|
// @ts-ignore function children
|
|
266
272
|
h(kendo_vue_buttons_1.Button, {
|
|
@@ -289,11 +295,17 @@ var FlatColorPickerVue2 = {
|
|
|
289
295
|
return _this.handleViewChange(e, 'palette');
|
|
290
296
|
}
|
|
291
297
|
}, _this2.v3 ? function () {
|
|
292
|
-
return [h(
|
|
293
|
-
|
|
298
|
+
return [h(kendo_vue_common_1.Icon, {
|
|
299
|
+
name: "palette",
|
|
300
|
+
attrs: _this2.v3 ? undefined : {
|
|
301
|
+
name: "palette"
|
|
302
|
+
}
|
|
294
303
|
})];
|
|
295
|
-
} : [h(
|
|
296
|
-
|
|
304
|
+
} : [h(kendo_vue_common_1.Icon, {
|
|
305
|
+
name: "palette",
|
|
306
|
+
attrs: _this2.v3 ? undefined : {
|
|
307
|
+
name: "palette"
|
|
308
|
+
}
|
|
297
309
|
})])];
|
|
298
310
|
} : [h(kendo_vue_buttons_1.Button, {
|
|
299
311
|
tabIndex: _this2.computedTabIndex,
|
|
@@ -321,11 +333,17 @@ var FlatColorPickerVue2 = {
|
|
|
321
333
|
return _this.handleViewChange(e, 'gradient');
|
|
322
334
|
}
|
|
323
335
|
}, _this2.v3 ? function () {
|
|
324
|
-
return [h(
|
|
325
|
-
|
|
336
|
+
return [h(kendo_vue_common_1.Icon, {
|
|
337
|
+
name: "color-canvas",
|
|
338
|
+
attrs: _this2.v3 ? undefined : {
|
|
339
|
+
name: "color-canvas"
|
|
340
|
+
}
|
|
326
341
|
})];
|
|
327
|
-
} : [h(
|
|
328
|
-
|
|
342
|
+
} : [h(kendo_vue_common_1.Icon, {
|
|
343
|
+
name: "color-canvas",
|
|
344
|
+
attrs: _this2.v3 ? undefined : {
|
|
345
|
+
name: "color-canvas"
|
|
346
|
+
}
|
|
329
347
|
})]), h(kendo_vue_buttons_1.Button, {
|
|
330
348
|
tabIndex: _this2.computedTabIndex,
|
|
331
349
|
attrs: _this2.v3 ? undefined : {
|
|
@@ -352,11 +370,17 @@ var FlatColorPickerVue2 = {
|
|
|
352
370
|
return _this.handleViewChange(e, 'palette');
|
|
353
371
|
}
|
|
354
372
|
}, _this2.v3 ? function () {
|
|
355
|
-
return [h(
|
|
356
|
-
|
|
373
|
+
return [h(kendo_vue_common_1.Icon, {
|
|
374
|
+
name: "palette",
|
|
375
|
+
attrs: _this2.v3 ? undefined : {
|
|
376
|
+
name: "palette"
|
|
377
|
+
}
|
|
357
378
|
})];
|
|
358
|
-
} : [h(
|
|
359
|
-
|
|
379
|
+
} : [h(kendo_vue_common_1.Icon, {
|
|
380
|
+
name: "palette",
|
|
381
|
+
attrs: _this2.v3 ? undefined : {
|
|
382
|
+
name: "palette"
|
|
383
|
+
}
|
|
360
384
|
})])])]), h("div", {
|
|
361
385
|
"class": "k-spacer"
|
|
362
386
|
}), h("div", {
|
|
@@ -381,11 +405,17 @@ var FlatColorPickerVue2 = {
|
|
|
381
405
|
},
|
|
382
406
|
onClick: this.handleResetColor
|
|
383
407
|
}, this.v3 ? function () {
|
|
384
|
-
return [h(
|
|
385
|
-
|
|
408
|
+
return [h(kendo_vue_common_1.Icon, {
|
|
409
|
+
name: "droplet-slash",
|
|
410
|
+
attrs: _this2.v3 ? undefined : {
|
|
411
|
+
name: "droplet-slash"
|
|
412
|
+
}
|
|
386
413
|
})];
|
|
387
|
-
} : [h(
|
|
388
|
-
|
|
414
|
+
} : [h(kendo_vue_common_1.Icon, {
|
|
415
|
+
name: "droplet-slash",
|
|
416
|
+
attrs: _this2.v3 ? undefined : {
|
|
417
|
+
name: "droplet-slash"
|
|
418
|
+
}
|
|
389
419
|
})]), this.$props.showPreview && h("div", {
|
|
390
420
|
"class": "k-coloreditor-preview k-vstack"
|
|
391
421
|
}, [h("span", {
|
|
@@ -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/npm/input/Input.js
CHANGED
|
@@ -114,7 +114,9 @@ var InputVue2 = {
|
|
|
114
114
|
showClearButton: Boolean,
|
|
115
115
|
inputClass: String,
|
|
116
116
|
wrapperClass: String,
|
|
117
|
-
tabIndex: Number
|
|
117
|
+
tabIndex: Number,
|
|
118
|
+
ariaLabelledBy: String,
|
|
119
|
+
ariaDescribedBy: String
|
|
118
120
|
},
|
|
119
121
|
data: function data() {
|
|
120
122
|
return {
|
|
@@ -163,7 +165,9 @@ var InputVue2 = {
|
|
|
163
165
|
showValidationIcon = _a.showValidationIcon,
|
|
164
166
|
showLoadingIcon = _a.showLoadingIcon,
|
|
165
167
|
showClearButton = _a.showClearButton,
|
|
166
|
-
tabIndex = _a.tabIndex
|
|
168
|
+
tabIndex = _a.tabIndex,
|
|
169
|
+
ariaLabelledBy = _a.ariaLabelledBy,
|
|
170
|
+
ariaDescribedBy = _a.ariaDescribedBy;
|
|
167
171
|
var inputId = id || this._inputId;
|
|
168
172
|
var textbox = h('input', __assign(__assign({
|
|
169
173
|
domProps: this.v3 ? null : __assign(__assign({}, this.$attrs), {
|
|
@@ -180,6 +184,9 @@ var InputVue2 = {
|
|
|
180
184
|
id: inputId,
|
|
181
185
|
tabindex: tabIndex,
|
|
182
186
|
required: required,
|
|
187
|
+
ariaLabelledby: ariaLabelledBy,
|
|
188
|
+
ariaDescribedby: ariaDescribedBy,
|
|
189
|
+
ariaDisabled: this.$props.disabled,
|
|
183
190
|
value: this.computedValue,
|
|
184
191
|
class: this.inputInnerClass,
|
|
185
192
|
ref: this.v3 ? function (el) {
|
|
@@ -229,16 +236,28 @@ var InputVue2 = {
|
|
|
229
236
|
ref: this.v3 ? function (el) {
|
|
230
237
|
_this.wrapperRef = el;
|
|
231
238
|
} : 'wrapper'
|
|
232
|
-
}, [iconName && h(
|
|
233
|
-
|
|
239
|
+
}, [iconName && h(kendo_vue_common_1.Icon, {
|
|
240
|
+
name: iconName,
|
|
241
|
+
attrs: this.v3 ? undefined : {
|
|
242
|
+
name: iconName
|
|
243
|
+
},
|
|
244
|
+
"class": "k-input-icon"
|
|
234
245
|
}), this.$props.inputPrefix && h("span", {
|
|
235
246
|
"class": "k-input-prefix"
|
|
236
247
|
}, [inputPrefix]), textbox, this.$props.inputSuffix && h("span", {
|
|
237
248
|
"class": "k-input-suffix"
|
|
238
|
-
}, [inputSuffix]), showValidationIcon && isValid && h(
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
249
|
+
}, [inputSuffix]), showValidationIcon && isValid && h(kendo_vue_common_1.Icon, {
|
|
250
|
+
name: 'check',
|
|
251
|
+
attrs: this.v3 ? undefined : {
|
|
252
|
+
name: 'check'
|
|
253
|
+
},
|
|
254
|
+
"class": "k-input-validation-icon"
|
|
255
|
+
}), showValidationIcon && !isValid && h(kendo_vue_common_1.Icon, {
|
|
256
|
+
name: 'warning',
|
|
257
|
+
attrs: this.v3 ? undefined : {
|
|
258
|
+
name: 'warning'
|
|
259
|
+
},
|
|
260
|
+
"class": "k-input-validation-icon"
|
|
242
261
|
}), showLoadingIcon && h("span", {
|
|
243
262
|
"class": "k-input-loading-icon k-icon k-i-loading"
|
|
244
263
|
}), showClearButton && this.computedValue && h("span", {
|
|
@@ -247,8 +266,11 @@ var InputVue2 = {
|
|
|
247
266
|
"click": this.clearClick
|
|
248
267
|
},
|
|
249
268
|
"class": "k-clear-value"
|
|
250
|
-
}, [h(
|
|
251
|
-
|
|
269
|
+
}, [h(kendo_vue_common_1.Icon, {
|
|
270
|
+
name: 'x',
|
|
271
|
+
attrs: this.v3 ? undefined : {
|
|
272
|
+
name: 'x'
|
|
273
|
+
}
|
|
252
274
|
})])]);
|
|
253
275
|
return label ?
|
|
254
276
|
// @ts-ignore function children
|
package/dist/npm/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/npm/main.js
CHANGED
|
@@ -56,3 +56,5 @@ __exportStar(require("./textarea/TextArea"), exports);
|
|
|
56
56
|
__exportStar(require("./textarea/interfaces/TextAreaProps"), exports);
|
|
57
57
|
__exportStar(require("./textarea/interfaces/TextAreaChangeEvent"), exports);
|
|
58
58
|
__exportStar(require("./textarea/interfaces/TextAreaFocusEvent"), exports);
|
|
59
|
+
__exportStar(require("./signature/Signature"), exports);
|
|
60
|
+
__exportStar(require("./signature/interfaces"), exports);
|