@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.
Files changed (129) hide show
  1. package/README.md +1 -1
  2. package/dist/cdn/js/kendo-vue-inputs.js +1 -1
  3. package/dist/es/colors/ColorContrastLabels.js +37 -10
  4. package/dist/es/colors/ColorGradient.js +14 -4
  5. package/dist/es/colors/ColorInput.js +4 -1
  6. package/dist/es/colors/ColorPicker.js +26 -7
  7. package/dist/es/colors/FlatColorPicker.js +72 -21
  8. package/dist/es/input/Input.d.ts +9 -0
  9. package/dist/es/input/Input.js +40 -11
  10. package/dist/es/main.d.ts +2 -0
  11. package/dist/es/main.js +2 -0
  12. package/dist/es/maskedtextbox/MaskedTextBox.js +37 -9
  13. package/dist/es/messages/main.d.ts +40 -0
  14. package/dist/es/messages/main.js +41 -2
  15. package/dist/es/numerictextbox/NumericTextBox.js +40 -12
  16. package/dist/es/package-metadata.js +1 -1
  17. package/dist/es/range-slider/RangeSlider.js +9 -3
  18. package/dist/es/signature/Signature.d.ts +39 -0
  19. package/dist/es/signature/Signature.js +633 -0
  20. package/dist/es/signature/SignatureCanvas.d.ts +39 -0
  21. package/dist/es/signature/SignatureCanvas.js +282 -0
  22. package/dist/es/signature/interfaces/SignatureBlurEvent.d.ts +5 -0
  23. package/dist/es/signature/interfaces/SignatureBlurEvent.js +1 -0
  24. package/dist/es/signature/interfaces/SignatureCanvasProps.d.ts +14 -0
  25. package/dist/es/signature/interfaces/SignatureCanvasProps.js +1 -0
  26. package/dist/es/signature/interfaces/SignatureChangeEvent.d.ts +9 -0
  27. package/dist/es/signature/interfaces/SignatureChangeEvent.js +1 -0
  28. package/dist/es/signature/interfaces/SignatureCloseEvent.d.ts +5 -0
  29. package/dist/es/signature/interfaces/SignatureCloseEvent.js +1 -0
  30. package/dist/es/signature/interfaces/SignatureFocusEvent.d.ts +5 -0
  31. package/dist/es/signature/interfaces/SignatureFocusEvent.js +1 -0
  32. package/dist/es/signature/interfaces/SignatureHandle.d.ts +42 -0
  33. package/dist/es/signature/interfaces/SignatureHandle.js +1 -0
  34. package/dist/es/signature/interfaces/SignatureOpenEvent.d.ts +5 -0
  35. package/dist/es/signature/interfaces/SignatureOpenEvent.js +1 -0
  36. package/dist/es/signature/interfaces/SignatureProps.d.ts +192 -0
  37. package/dist/es/signature/interfaces/SignatureProps.js +1 -0
  38. package/dist/es/signature/interfaces/index.d.ts +7 -0
  39. package/dist/es/signature/interfaces/index.js +1 -0
  40. package/dist/es/signature/utils/index.d.ts +4 -0
  41. package/dist/es/signature/utils/index.js +10 -0
  42. package/dist/es/slider/Slider.js +42 -25
  43. package/dist/es/switch/Switch.js +7 -7
  44. package/dist/es/textarea/TextArea.js +27 -9
  45. package/dist/esm/colors/ColorContrastLabels.js +37 -10
  46. package/dist/esm/colors/ColorGradient.js +14 -4
  47. package/dist/esm/colors/ColorInput.js +4 -1
  48. package/dist/esm/colors/ColorPicker.js +26 -7
  49. package/dist/esm/colors/FlatColorPicker.js +72 -21
  50. package/dist/esm/input/Input.d.ts +9 -0
  51. package/dist/esm/input/Input.js +40 -11
  52. package/dist/esm/main.d.ts +2 -0
  53. package/dist/esm/main.js +2 -0
  54. package/dist/esm/maskedtextbox/MaskedTextBox.js +37 -9
  55. package/dist/esm/messages/main.d.ts +40 -0
  56. package/dist/esm/messages/main.js +41 -2
  57. package/dist/esm/numerictextbox/NumericTextBox.js +40 -12
  58. package/dist/esm/package-metadata.js +1 -1
  59. package/dist/esm/range-slider/RangeSlider.js +9 -3
  60. package/dist/esm/signature/Signature.d.ts +39 -0
  61. package/dist/esm/signature/Signature.js +633 -0
  62. package/dist/esm/signature/SignatureCanvas.d.ts +39 -0
  63. package/dist/esm/signature/SignatureCanvas.js +282 -0
  64. package/dist/esm/signature/interfaces/SignatureBlurEvent.d.ts +5 -0
  65. package/dist/esm/signature/interfaces/SignatureBlurEvent.js +1 -0
  66. package/dist/esm/signature/interfaces/SignatureCanvasProps.d.ts +14 -0
  67. package/dist/esm/signature/interfaces/SignatureCanvasProps.js +1 -0
  68. package/dist/esm/signature/interfaces/SignatureChangeEvent.d.ts +9 -0
  69. package/dist/esm/signature/interfaces/SignatureChangeEvent.js +1 -0
  70. package/dist/esm/signature/interfaces/SignatureCloseEvent.d.ts +5 -0
  71. package/dist/esm/signature/interfaces/SignatureCloseEvent.js +1 -0
  72. package/dist/esm/signature/interfaces/SignatureFocusEvent.d.ts +5 -0
  73. package/dist/esm/signature/interfaces/SignatureFocusEvent.js +1 -0
  74. package/dist/esm/signature/interfaces/SignatureHandle.d.ts +42 -0
  75. package/dist/esm/signature/interfaces/SignatureHandle.js +1 -0
  76. package/dist/esm/signature/interfaces/SignatureOpenEvent.d.ts +5 -0
  77. package/dist/esm/signature/interfaces/SignatureOpenEvent.js +1 -0
  78. package/dist/esm/signature/interfaces/SignatureProps.d.ts +192 -0
  79. package/dist/esm/signature/interfaces/SignatureProps.js +1 -0
  80. package/dist/esm/signature/interfaces/index.d.ts +7 -0
  81. package/dist/esm/signature/interfaces/index.js +1 -0
  82. package/dist/esm/signature/utils/index.d.ts +4 -0
  83. package/dist/esm/signature/utils/index.js +10 -0
  84. package/dist/esm/slider/Slider.js +42 -25
  85. package/dist/esm/switch/Switch.js +7 -7
  86. package/dist/esm/textarea/TextArea.js +27 -9
  87. package/dist/npm/colors/ColorContrastLabels.js +37 -10
  88. package/dist/npm/colors/ColorGradient.js +13 -3
  89. package/dist/npm/colors/ColorInput.js +4 -1
  90. package/dist/npm/colors/ColorPicker.js +26 -7
  91. package/dist/npm/colors/FlatColorPicker.js +71 -20
  92. package/dist/npm/input/Input.d.ts +9 -0
  93. package/dist/npm/input/Input.js +39 -10
  94. package/dist/npm/main.d.ts +2 -0
  95. package/dist/npm/main.js +2 -0
  96. package/dist/npm/maskedtextbox/MaskedTextBox.js +36 -8
  97. package/dist/npm/messages/main.d.ts +40 -0
  98. package/dist/npm/messages/main.js +42 -3
  99. package/dist/npm/numerictextbox/NumericTextBox.js +39 -11
  100. package/dist/npm/package-metadata.js +1 -1
  101. package/dist/npm/range-slider/RangeSlider.js +9 -3
  102. package/dist/npm/signature/Signature.d.ts +39 -0
  103. package/dist/npm/signature/Signature.js +640 -0
  104. package/dist/npm/signature/SignatureCanvas.d.ts +39 -0
  105. package/dist/npm/signature/SignatureCanvas.js +289 -0
  106. package/dist/npm/signature/interfaces/SignatureBlurEvent.d.ts +5 -0
  107. package/dist/npm/signature/interfaces/SignatureBlurEvent.js +5 -0
  108. package/dist/npm/signature/interfaces/SignatureCanvasProps.d.ts +14 -0
  109. package/dist/npm/signature/interfaces/SignatureCanvasProps.js +5 -0
  110. package/dist/npm/signature/interfaces/SignatureChangeEvent.d.ts +9 -0
  111. package/dist/npm/signature/interfaces/SignatureChangeEvent.js +5 -0
  112. package/dist/npm/signature/interfaces/SignatureCloseEvent.d.ts +5 -0
  113. package/dist/npm/signature/interfaces/SignatureCloseEvent.js +5 -0
  114. package/dist/npm/signature/interfaces/SignatureFocusEvent.d.ts +5 -0
  115. package/dist/npm/signature/interfaces/SignatureFocusEvent.js +5 -0
  116. package/dist/npm/signature/interfaces/SignatureHandle.d.ts +42 -0
  117. package/dist/npm/signature/interfaces/SignatureHandle.js +5 -0
  118. package/dist/npm/signature/interfaces/SignatureOpenEvent.d.ts +5 -0
  119. package/dist/npm/signature/interfaces/SignatureOpenEvent.js +5 -0
  120. package/dist/npm/signature/interfaces/SignatureProps.d.ts +192 -0
  121. package/dist/npm/signature/interfaces/SignatureProps.js +5 -0
  122. package/dist/npm/signature/interfaces/index.d.ts +7 -0
  123. package/dist/npm/signature/interfaces/index.js +2 -0
  124. package/dist/npm/signature/utils/index.d.ts +4 -0
  125. package/dist/npm/signature/utils/index.js +14 -0
  126. package/dist/npm/slider/Slider.js +41 -24
  127. package/dist/npm/switch/Switch.js +7 -7
  128. package/dist/npm/textarea/TextArea.js +26 -8
  129. package/package.json +19 -13
@@ -6,11 +6,12 @@ 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, getTabIndex, validatePackage, getDefaultSlots } from '@progress/kendo-vue-common';
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';
12
12
  import { SLIDER_LABEL_ATTRIBUTE } from './SliderLabel';
13
13
  import { packageMetadata } from '../package-metadata';
14
+ import { caretAltDownIcon, caretAltLeftIcon, caretAltRightIcon, caretAltUpIcon } from '@progress/kendo-svg-icons';
14
15
  /**
15
16
  * @hidden
16
17
  */
@@ -138,29 +139,13 @@ var SliderVue2 = {
138
139
  var percentValue = (this.computedValue - this.$props.min) / (this.$props.max - this.$props.min) * 100;
139
140
  var defaultSlot = getDefaultSlots(this);
140
141
  return h("div", {
141
- "aria-valuemin": this.$props.min,
142
+ dir: this.currentDir,
142
143
  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
144
  dir: this.currentDir,
150
- role: "slider",
151
- id: this.$props.id,
152
- tabindex: getTabIndex(this.$props.tabIndex, this.$props.disabled, undefined)
145
+ id: this.$props.id
153
146
  },
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
147
  id: this.$props.id,
162
148
  style: this.$props.style,
163
- tabindex: getTabIndex(this.$props.tabIndex, this.$props.disabled, undefined),
164
149
  onFocus: this.onFocus,
165
150
  on: this.v3 ? undefined : {
166
151
  "focus": this.onFocus,
@@ -183,13 +168,15 @@ var SliderVue2 = {
183
168
  type: "button",
184
169
  attrs: this.v3 ? undefined : {
185
170
  type: "button",
186
- tabIndex: -1,
171
+ tabindex: -1,
187
172
  icon: this.$props.vertical ? 'caret-alt-down' : 'caret-alt-left',
173
+ svgIcon: this.$props.vertical ? caretAltDownIcon : caretAltLeftIcon,
188
174
  rounded: 'full',
189
175
  title: lS.toLanguageString(sliderDecreaseValue, messages[sliderDecreaseValue])
190
176
  },
191
- tabIndex: -1,
177
+ tabindex: -1,
192
178
  icon: this.$props.vertical ? 'caret-alt-down' : 'caret-alt-left',
179
+ svgIcon: this.$props.vertical ? caretAltDownIcon : caretAltLeftIcon,
193
180
  style: {
194
181
  position: 'relative'
195
182
  },
@@ -230,10 +217,24 @@ var SliderVue2 = {
230
217
  }
231
218
  }), h("a", {
232
219
  "class": "k-draghandle",
233
- title: lS.toLanguageString(sliderDragTitle, messages[sliderDragTitle]),
220
+ role: "slider",
234
221
  attrs: _this.v3 ? undefined : {
222
+ role: "slider",
223
+ tabIndex: "0",
224
+ "aria-valuenow": _this.computedValue,
225
+ "aria-valuemin": _this.$props.min,
226
+ "aria-valuemax": _this.$props.max,
227
+ "aria-valuetext": _this.computedValue.toString(),
228
+ "aria-disabled": _this.$props.disabled ? 'true' : undefined,
235
229
  title: lS.toLanguageString(sliderDragTitle, messages[sliderDragTitle])
236
230
  },
231
+ tabIndex: "0",
232
+ "aria-valuenow": _this.computedValue,
233
+ "aria-valuemin": _this.$props.min,
234
+ "aria-valuemax": _this.$props.max,
235
+ "aria-valuetext": _this.computedValue.toString(),
236
+ "aria-disabled": _this.$props.disabled ? 'true' : undefined,
237
+ title: lS.toLanguageString(sliderDragTitle, messages[sliderDragTitle]),
237
238
  style: _this.$props.vertical ? {
238
239
  bottom: percentValue + '%',
239
240
  zIndex: 1
@@ -258,10 +259,24 @@ var SliderVue2 = {
258
259
  }
259
260
  }), h("a", {
260
261
  "class": "k-draghandle",
261
- title: lS.toLanguageString(sliderDragTitle, messages[sliderDragTitle]),
262
+ role: "slider",
262
263
  attrs: _this.v3 ? undefined : {
264
+ role: "slider",
265
+ tabIndex: "0",
266
+ "aria-valuenow": _this.computedValue,
267
+ "aria-valuemin": _this.$props.min,
268
+ "aria-valuemax": _this.$props.max,
269
+ "aria-valuetext": _this.computedValue.toString(),
270
+ "aria-disabled": _this.$props.disabled ? 'true' : undefined,
263
271
  title: lS.toLanguageString(sliderDragTitle, messages[sliderDragTitle])
264
272
  },
273
+ tabIndex: "0",
274
+ "aria-valuenow": _this.computedValue,
275
+ "aria-valuemin": _this.$props.min,
276
+ "aria-valuemax": _this.$props.max,
277
+ "aria-valuetext": _this.computedValue.toString(),
278
+ "aria-disabled": _this.$props.disabled ? 'true' : undefined,
279
+ title: lS.toLanguageString(sliderDragTitle, messages[sliderDragTitle]),
265
280
  style: _this.$props.vertical ? {
266
281
  bottom: percentValue + '%',
267
282
  zIndex: 1
@@ -272,13 +287,15 @@ var SliderVue2 = {
272
287
  type: "button",
273
288
  attrs: this.v3 ? undefined : {
274
289
  type: "button",
275
- tabIndex: -1,
290
+ tabindex: -1,
276
291
  icon: this.$props.vertical ? 'caret-alt-up' : 'caret-alt-right',
292
+ svgIcon: this.$props.vertical ? caretAltUpIcon : caretAltRightIcon,
277
293
  rounded: 'full',
278
294
  title: lS.toLanguageString(sliderIncreaseValue, messages[sliderIncreaseValue])
279
295
  },
280
- tabIndex: -1,
296
+ tabindex: -1,
281
297
  icon: this.$props.vertical ? 'caret-alt-up' : 'caret-alt-right',
298
+ svgIcon: this.$props.vertical ? caretAltUpIcon : caretAltRightIcon,
282
299
  rounded: 'full',
283
300
  style: {
284
301
  position: 'relative'
@@ -160,10 +160,16 @@ var SwitchVue2 = {
160
160
  required = _a.required;
161
161
  return h("span", {
162
162
  "class": this.switchClassName,
163
- dir: this.currentDir,
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,10 +15,11 @@ 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';
22
+ import { exclamationCircleIcon } from '@progress/kendo-svg-icons';
22
23
  /**
23
24
  * @hidden
24
25
  */
@@ -287,16 +288,30 @@ var TextAreaVue2 = {
287
288
  "class": "k-hstack k-flex"
288
289
  }, [iconName && h("span", {
289
290
  "class": "k-flex-wrap"
290
- }, [h("span", {
291
- "class": "k-input-icon k-icon k-i-".concat(iconName)
291
+ }, [h(Icon, {
292
+ name: iconName,
293
+ attrs: this.v3 ? undefined : {
294
+ name: iconName
295
+ },
296
+ "class": "k-input-icon"
292
297
  })]), textarea, showValidationIcon && this.isValid && h("span", {
293
298
  "class": this.suffixIconWrapClass
294
- }, [h("span", {
295
- "class": "k-input-validation-icon k-icon k-i-check"
299
+ }, [h(Icon, {
300
+ name: 'check',
301
+ attrs: this.v3 ? undefined : {
302
+ name: 'check'
303
+ },
304
+ "class": "k-input-validation-icon"
296
305
  })]), showValidationIcon && !this.isValid && h("span", {
297
306
  "class": this.suffixIconWrapClass
298
- }, [h("span", {
299
- "class": "k-input-validation-icon k-icon k-i-warning"
307
+ }, [h(Icon, {
308
+ name: 'exclamation-circle',
309
+ attrs: this.v3 ? undefined : {
310
+ name: 'exclamation-circle',
311
+ icon: exclamationCircleIcon
312
+ },
313
+ icon: exclamationCircleIcon,
314
+ "class": "k-input-validation-icon"
300
315
  })]), showLoadingIcon && h("span", {
301
316
  "class": this.suffixIconWrapClass
302
317
  }, [h("span", {
@@ -309,8 +324,11 @@ var TextAreaVue2 = {
309
324
  "click": this.clearClick
310
325
  },
311
326
  "class": "k-clear-value"
312
- }, [h("span", {
313
- "class": "k-icon k-i-x"
327
+ }, [h(Icon, {
328
+ name: 'x',
329
+ attrs: this.v3 ? undefined : {
330
+ name: 'x'
331
+ }
314
332
  })])])]), this.$props.inputSuffix && h("span", {
315
333
  "class": this.suffixRenderClass
316
334
  }, [inputSuffix])]);
@@ -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.js';
8
9
  import { getContrastFromTwoRGBAs } from './utils/color-parser.js';
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("span", {
51
- "class": "k-icon k-i-check"
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("span", {
57
- "class": "k-icon k-i-close"
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("span", {
68
- "class": "k-icon k-i-check"
69
- }), aaaPass && h("span", {
70
- "class": "k-icon k-i-check"
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("span", {
74
- "class": "k-icon k-i-close"
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.js';
14
14
  import { ColorContrastLabels } from './ColorContrastLabels.js';
15
15
  import { ColorContrastSvg } from './ColorContrastSvg.js';
16
16
  import { provideLocalizationService } from '@progress/kendo-vue-intl';
17
- import { colorGradientDragHandle, messages } from '../messages/main.js';
17
+ import { colorGradientDragHandle, colorGradientHueSliderLabel, colorGradientAlphaSliderLabel, messages } from '../messages/main.js';
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.js';
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.js';
23
23
  import { Picker } from './Picker.js';
24
24
  import { FlatColorPicker } from './FlatColorPicker.js';
25
25
  import { DEFAULT_GRADIENT_SETTINGS, DEFAULT_PALETTE_SETTINGS } from './utils/color-cache.js';
26
+ import { provideLocalizationService } from '@progress/kendo-vue-intl';
27
+ import { messages, colorPickerDropdownButtonAriaLabel } from '../messages/main.js';
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
- dir: dir,
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 { classNames, validatePackage, getTabIndex, setRef, focusContainer, focusFirstFocusableChild, Keys, templateRendering, getListeners, getTemplate } from '@progress/kendo-vue-common';
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.js';
21
22
  import { ColorGradient } from './ColorGradient.js';
@@ -250,11 +251,21 @@ var FlatColorPickerVue2 = {
250
251
  return _this.handleViewChange(e, 'gradient');
251
252
  }
252
253
  }, _this2.v3 ? function () {
253
- return [h("span", {
254
- "class": "k-icon k-i-color-canvas"
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("span", {
257
- "class": "k-icon k-i-color-canvas"
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("span", {
287
- "class": "k-icon k-i-palette"
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("span", {
290
- "class": "k-icon k-i-palette"
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("span", {
319
- "class": "k-icon k-i-color-canvas"
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("span", {
322
- "class": "k-icon k-i-color-canvas"
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("span", {
350
- "class": "k-icon k-i-palette"
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("span", {
353
- "class": "k-icon k-i-palette"
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("span", {
379
- "class": "k-icon k-i-droplet-slash"
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("span", {
382
- "class": "k-icon k-i-droplet-slash"
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", {
@@ -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