@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.
Files changed (126) 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 +26 -10
  4. package/dist/es/colors/ColorGradient.js +14 -4
  5. package/dist/es/colors/ColorPicker.js +23 -7
  6. package/dist/es/colors/FlatColorPicker.js +51 -21
  7. package/dist/es/input/Input.d.ts +9 -0
  8. package/dist/es/input/Input.js +33 -11
  9. package/dist/es/main.d.ts +2 -0
  10. package/dist/es/main.js +2 -0
  11. package/dist/es/maskedtextbox/MaskedTextBox.js +30 -9
  12. package/dist/es/messages/main.d.ts +40 -0
  13. package/dist/es/messages/main.js +41 -2
  14. package/dist/es/numerictextbox/NumericTextBox.js +29 -12
  15. package/dist/es/package-metadata.js +1 -1
  16. package/dist/es/range-slider/RangeSlider.js +9 -3
  17. package/dist/es/signature/Signature.d.ts +39 -0
  18. package/dist/es/signature/Signature.js +626 -0
  19. package/dist/es/signature/SignatureCanvas.d.ts +39 -0
  20. package/dist/es/signature/SignatureCanvas.js +282 -0
  21. package/dist/es/signature/interfaces/SignatureBlurEvent.d.ts +5 -0
  22. package/dist/es/signature/interfaces/SignatureBlurEvent.js +1 -0
  23. package/dist/es/signature/interfaces/SignatureCanvasProps.d.ts +14 -0
  24. package/dist/es/signature/interfaces/SignatureCanvasProps.js +1 -0
  25. package/dist/es/signature/interfaces/SignatureChangeEvent.d.ts +9 -0
  26. package/dist/es/signature/interfaces/SignatureChangeEvent.js +1 -0
  27. package/dist/es/signature/interfaces/SignatureCloseEvent.d.ts +5 -0
  28. package/dist/es/signature/interfaces/SignatureCloseEvent.js +1 -0
  29. package/dist/es/signature/interfaces/SignatureFocusEvent.d.ts +5 -0
  30. package/dist/es/signature/interfaces/SignatureFocusEvent.js +1 -0
  31. package/dist/es/signature/interfaces/SignatureHandle.d.ts +42 -0
  32. package/dist/es/signature/interfaces/SignatureHandle.js +1 -0
  33. package/dist/es/signature/interfaces/SignatureOpenEvent.d.ts +5 -0
  34. package/dist/es/signature/interfaces/SignatureOpenEvent.js +1 -0
  35. package/dist/es/signature/interfaces/SignatureProps.d.ts +192 -0
  36. package/dist/es/signature/interfaces/SignatureProps.js +1 -0
  37. package/dist/es/signature/interfaces/index.d.ts +7 -0
  38. package/dist/es/signature/interfaces/index.js +1 -0
  39. package/dist/es/signature/utils/index.d.ts +4 -0
  40. package/dist/es/signature/utils/index.js +10 -0
  41. package/dist/es/slider/Slider.js +37 -25
  42. package/dist/es/switch/Switch.js +7 -7
  43. package/dist/es/textarea/TextArea.js +24 -9
  44. package/dist/esm/colors/ColorContrastLabels.js +26 -10
  45. package/dist/esm/colors/ColorGradient.js +14 -4
  46. package/dist/esm/colors/ColorPicker.js +23 -7
  47. package/dist/esm/colors/FlatColorPicker.js +51 -21
  48. package/dist/esm/input/Input.d.ts +9 -0
  49. package/dist/esm/input/Input.js +33 -11
  50. package/dist/esm/main.d.ts +2 -0
  51. package/dist/esm/main.js +2 -0
  52. package/dist/esm/maskedtextbox/MaskedTextBox.js +30 -9
  53. package/dist/esm/messages/main.d.ts +40 -0
  54. package/dist/esm/messages/main.js +41 -2
  55. package/dist/esm/numerictextbox/NumericTextBox.js +29 -12
  56. package/dist/esm/package-metadata.js +1 -1
  57. package/dist/esm/range-slider/RangeSlider.js +9 -3
  58. package/dist/esm/signature/Signature.d.ts +39 -0
  59. package/dist/esm/signature/Signature.js +626 -0
  60. package/dist/esm/signature/SignatureCanvas.d.ts +39 -0
  61. package/dist/esm/signature/SignatureCanvas.js +282 -0
  62. package/dist/esm/signature/interfaces/SignatureBlurEvent.d.ts +5 -0
  63. package/dist/esm/signature/interfaces/SignatureBlurEvent.js +1 -0
  64. package/dist/esm/signature/interfaces/SignatureCanvasProps.d.ts +14 -0
  65. package/dist/esm/signature/interfaces/SignatureCanvasProps.js +1 -0
  66. package/dist/esm/signature/interfaces/SignatureChangeEvent.d.ts +9 -0
  67. package/dist/esm/signature/interfaces/SignatureChangeEvent.js +1 -0
  68. package/dist/esm/signature/interfaces/SignatureCloseEvent.d.ts +5 -0
  69. package/dist/esm/signature/interfaces/SignatureCloseEvent.js +1 -0
  70. package/dist/esm/signature/interfaces/SignatureFocusEvent.d.ts +5 -0
  71. package/dist/esm/signature/interfaces/SignatureFocusEvent.js +1 -0
  72. package/dist/esm/signature/interfaces/SignatureHandle.d.ts +42 -0
  73. package/dist/esm/signature/interfaces/SignatureHandle.js +1 -0
  74. package/dist/esm/signature/interfaces/SignatureOpenEvent.d.ts +5 -0
  75. package/dist/esm/signature/interfaces/SignatureOpenEvent.js +1 -0
  76. package/dist/esm/signature/interfaces/SignatureProps.d.ts +192 -0
  77. package/dist/esm/signature/interfaces/SignatureProps.js +1 -0
  78. package/dist/esm/signature/interfaces/index.d.ts +7 -0
  79. package/dist/esm/signature/interfaces/index.js +1 -0
  80. package/dist/esm/signature/utils/index.d.ts +4 -0
  81. package/dist/esm/signature/utils/index.js +10 -0
  82. package/dist/esm/slider/Slider.js +37 -25
  83. package/dist/esm/switch/Switch.js +7 -7
  84. package/dist/esm/textarea/TextArea.js +24 -9
  85. package/dist/npm/colors/ColorContrastLabels.js +26 -10
  86. package/dist/npm/colors/ColorGradient.js +13 -3
  87. package/dist/npm/colors/ColorPicker.js +23 -7
  88. package/dist/npm/colors/FlatColorPicker.js +50 -20
  89. package/dist/npm/input/Input.d.ts +9 -0
  90. package/dist/npm/input/Input.js +32 -10
  91. package/dist/npm/main.d.ts +2 -0
  92. package/dist/npm/main.js +2 -0
  93. package/dist/npm/maskedtextbox/MaskedTextBox.js +29 -8
  94. package/dist/npm/messages/main.d.ts +40 -0
  95. package/dist/npm/messages/main.js +42 -3
  96. package/dist/npm/numerictextbox/NumericTextBox.js +28 -11
  97. package/dist/npm/package-metadata.js +1 -1
  98. package/dist/npm/range-slider/RangeSlider.js +9 -3
  99. package/dist/npm/signature/Signature.d.ts +39 -0
  100. package/dist/npm/signature/Signature.js +633 -0
  101. package/dist/npm/signature/SignatureCanvas.d.ts +39 -0
  102. package/dist/npm/signature/SignatureCanvas.js +289 -0
  103. package/dist/npm/signature/interfaces/SignatureBlurEvent.d.ts +5 -0
  104. package/dist/npm/signature/interfaces/SignatureBlurEvent.js +5 -0
  105. package/dist/npm/signature/interfaces/SignatureCanvasProps.d.ts +14 -0
  106. package/dist/npm/signature/interfaces/SignatureCanvasProps.js +5 -0
  107. package/dist/npm/signature/interfaces/SignatureChangeEvent.d.ts +9 -0
  108. package/dist/npm/signature/interfaces/SignatureChangeEvent.js +5 -0
  109. package/dist/npm/signature/interfaces/SignatureCloseEvent.d.ts +5 -0
  110. package/dist/npm/signature/interfaces/SignatureCloseEvent.js +5 -0
  111. package/dist/npm/signature/interfaces/SignatureFocusEvent.d.ts +5 -0
  112. package/dist/npm/signature/interfaces/SignatureFocusEvent.js +5 -0
  113. package/dist/npm/signature/interfaces/SignatureHandle.d.ts +42 -0
  114. package/dist/npm/signature/interfaces/SignatureHandle.js +5 -0
  115. package/dist/npm/signature/interfaces/SignatureOpenEvent.d.ts +5 -0
  116. package/dist/npm/signature/interfaces/SignatureOpenEvent.js +5 -0
  117. package/dist/npm/signature/interfaces/SignatureProps.d.ts +192 -0
  118. package/dist/npm/signature/interfaces/SignatureProps.js +5 -0
  119. package/dist/npm/signature/interfaces/index.d.ts +7 -0
  120. package/dist/npm/signature/interfaces/index.js +2 -0
  121. package/dist/npm/signature/utils/index.d.ts +4 -0
  122. package/dist/npm/signature/utils/index.js +14 -0
  123. package/dist/npm/slider/Slider.js +36 -24
  124. package/dist/npm/switch/Switch.js +7 -7
  125. package/dist/npm/textarea/TextArea.js +23 -8
  126. package/package.json +15 -11
@@ -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, 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';
@@ -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
- "aria-valuemin": this.$props.min,
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
- role: "slider",
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
- tabIndex: -1,
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
- tabIndex: -1,
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
- title: lS.toLanguageString(sliderDragTitle, messages[sliderDragTitle]),
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
- title: lS.toLanguageString(sliderDragTitle, messages[sliderDragTitle]),
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
- tabIndex: -1,
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
- tabIndex: -1,
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
- 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,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';
@@ -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("span", {
291
- "class": "k-input-icon k-icon k-i-".concat(iconName)
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("span", {
295
- "class": "k-input-validation-icon k-icon k-i-check"
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("span", {
299
- "class": "k-input-validation-icon k-icon k-i-warning"
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("span", {
313
- "class": "k-icon k-i-x"
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])]);
@@ -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.js';
8
8
  import { getContrastFromTwoRGBAs } from './utils/color-parser.js';
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("span", {
51
- "class": "k-icon k-i-check"
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("span", {
57
- "class": "k-icon k-i-close"
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("span", {
68
- "class": "k-icon k-i-check"
69
- }), aaaPass && h("span", {
70
- "class": "k-icon k-i-check"
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("span", {
74
- "class": "k-icon k-i-close"
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.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'
@@ -23,6 +23,8 @@ 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';
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
- dir: dir,
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.js';
21
21
  import { ColorGradient } from './ColorGradient.js';
@@ -250,11 +250,17 @@ var FlatColorPickerVue2 = {
250
250
  return _this.handleViewChange(e, 'gradient');
251
251
  }
252
252
  }, _this2.v3 ? function () {
253
- return [h("span", {
254
- "class": "k-icon k-i-color-canvas"
253
+ return [h(Icon, {
254
+ name: "color-canvas",
255
+ attrs: _this2.v3 ? undefined : {
256
+ name: "color-canvas"
257
+ }
255
258
  })];
256
- } : [h("span", {
257
- "class": "k-icon k-i-color-canvas"
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("span", {
287
- "class": "k-icon k-i-palette"
292
+ return [h(Icon, {
293
+ name: "palette",
294
+ attrs: _this2.v3 ? undefined : {
295
+ name: "palette"
296
+ }
288
297
  })];
289
- } : [h("span", {
290
- "class": "k-icon k-i-palette"
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("span", {
319
- "class": "k-icon k-i-color-canvas"
330
+ return [h(Icon, {
331
+ name: "color-canvas",
332
+ attrs: _this2.v3 ? undefined : {
333
+ name: "color-canvas"
334
+ }
320
335
  })];
321
- } : [h("span", {
322
- "class": "k-icon k-i-color-canvas"
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("span", {
350
- "class": "k-icon k-i-palette"
367
+ return [h(Icon, {
368
+ name: "palette",
369
+ attrs: _this2.v3 ? undefined : {
370
+ name: "palette"
371
+ }
351
372
  })];
352
- } : [h("span", {
353
- "class": "k-icon k-i-palette"
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("span", {
379
- "class": "k-icon k-i-droplet-slash"
402
+ return [h(Icon, {
403
+ name: "droplet-slash",
404
+ attrs: _this2.v3 ? undefined : {
405
+ name: "droplet-slash"
406
+ }
380
407
  })];
381
- } : [h("span", {
382
- "class": "k-icon k-i-droplet-slash"
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", {
@@ -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
@@ -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.js';
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("span", {
227
- "class": "k-input-icon k-icon k-i-".concat(iconName)
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("span", {
233
- "class": "k-input-validation-icon k-icon k-i-check"
234
- }), showValidationIcon && !isValid && h("span", {
235
- "class": "k-input-validation-icon k-icon k-i-warning"
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("span", {
245
- "class": "k-icon k-i-x"
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
@@ -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';