@progress/kendo-vue-inputs 3.4.3 → 3.4.4-dev.202207220925

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 (48) hide show
  1. package/dist/cdn/js/kendo-vue-inputs.js +1 -1
  2. package/dist/es/checkbox/Checkbox.js +1 -1
  3. package/dist/es/colors/ColorContrastLabels.js +8 -4
  4. package/dist/es/colors/ColorContrastSvg.js +65 -44
  5. package/dist/es/colors/ColorGradient.d.ts +1 -1
  6. package/dist/es/colors/ColorGradient.js +9 -11
  7. package/dist/es/colors/ColorInput.js +2 -2
  8. package/dist/es/colors/ColorPalette.js +1 -1
  9. package/dist/es/colors/ColorPicker.js +1 -1
  10. package/dist/es/colors/FlatColorPicker.js +1 -1
  11. package/dist/es/colors/HexInput.js +18 -12
  12. package/dist/es/colors/Picker.js +1 -1
  13. package/dist/es/input/Input.js +1 -1
  14. package/dist/es/input-separator/InputSeparator.js +1 -1
  15. package/dist/es/maskedtextbox/MaskedTextBox.js +1 -1
  16. package/dist/es/numerictextbox/NumericTextBox.js +1 -1
  17. package/dist/es/package-metadata.js +1 -1
  18. package/dist/es/radiobutton/RadioButton.js +1 -1
  19. package/dist/es/radiobutton/RadioGroup.js +1 -1
  20. package/dist/es/range-slider/RangeSlider.js +1 -1
  21. package/dist/es/slider/Slider.js +1 -1
  22. package/dist/es/slider/SliderLabel.js +1 -1
  23. package/dist/es/switch/Switch.js +1 -1
  24. package/dist/es/textarea/TextArea.js +1 -1
  25. package/dist/npm/checkbox/Checkbox.js +1 -1
  26. package/dist/npm/colors/ColorContrastLabels.js +8 -4
  27. package/dist/npm/colors/ColorContrastSvg.js +65 -44
  28. package/dist/npm/colors/ColorGradient.d.ts +1 -1
  29. package/dist/npm/colors/ColorGradient.js +9 -11
  30. package/dist/npm/colors/ColorInput.js +2 -2
  31. package/dist/npm/colors/ColorPalette.js +1 -1
  32. package/dist/npm/colors/ColorPicker.js +1 -1
  33. package/dist/npm/colors/FlatColorPicker.js +1 -1
  34. package/dist/npm/colors/HexInput.js +16 -10
  35. package/dist/npm/colors/Picker.js +1 -1
  36. package/dist/npm/input/Input.js +1 -1
  37. package/dist/npm/input-separator/InputSeparator.js +1 -1
  38. package/dist/npm/maskedtextbox/MaskedTextBox.js +1 -1
  39. package/dist/npm/numerictextbox/NumericTextBox.js +1 -1
  40. package/dist/npm/package-metadata.js +1 -1
  41. package/dist/npm/radiobutton/RadioButton.js +1 -1
  42. package/dist/npm/radiobutton/RadioGroup.js +1 -1
  43. package/dist/npm/range-slider/RangeSlider.js +1 -1
  44. package/dist/npm/slider/Slider.js +1 -1
  45. package/dist/npm/slider/SliderLabel.js +1 -1
  46. package/dist/npm/switch/Switch.js +1 -1
  47. package/dist/npm/textarea/TextArea.js +1 -1
  48. package/package.json +11 -11
@@ -2,7 +2,7 @@
2
2
  import * as Vue from 'vue';
3
3
  var allVue = Vue;
4
4
  var gh = allVue.h;
5
- var isV3 = allVue.version[0] === '3';
5
+ var isV3 = allVue.version && allVue.version[0] === '3';
6
6
  var ref = allVue.ref;
7
7
  var inject = allVue.inject;
8
8
  import { Keys, classNames, guid, getTabIndex, getDefaultSlots, validatePackage, templateRendering, getTemplate, getListeners, kendoThemeMaps, setRef, getRef } from '@progress/kendo-vue-common';
@@ -2,7 +2,7 @@
2
2
  import * as Vue from 'vue';
3
3
  var allVue = Vue;
4
4
  var gh = allVue.h;
5
- var isV3 = allVue.version[0] === '3';
5
+ 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';
8
8
  import { getContrastFromTwoRGBAs } from './utils/color-parser';
@@ -43,12 +43,16 @@ var ColorContrastLabelsVue2 = {
43
43
  var contrastText = contrastRatioMessage + ": " + contrast.toFixed(2);
44
44
  var aaText = AALevelMessage + ": " + requiredAAContrast;
45
45
  var aaaText = AAALevelMessage + ": " + requiredAAAContrast;
46
+ var aaPass = contrast >= 4.5;
47
+ var aaaPass = contrast >= 7;
46
48
  var success = h("span", {
49
+ key: 1,
47
50
  "class": "k-contrast-validation k-text-success"
48
51
  }, [passMessage, " ", h("span", {
49
52
  "class": "k-icon k-i-check"
50
53
  })]);
51
54
  var error = h("span", {
55
+ key: 2,
52
56
  "class": "k-contrast-validation k-text-error"
53
57
  }, [failMessage, " ", h("span", {
54
58
  "class": "k-icon k-i-close"
@@ -59,17 +63,17 @@ var ColorContrastLabelsVue2 = {
59
63
  "class": "k-contrast-ratio"
60
64
  }, [h("span", {
61
65
  "class": "k-contrast-ratio-text"
62
- }, [contrastText]), contrast >= 4.5 ? h("span", {
66
+ }, [contrastText]), aaPass ? h("span", {
63
67
  "class": "k-contrast-validation k-text-success"
64
68
  }, [h("span", {
65
69
  "class": "k-icon k-i-check"
66
- }), contrast >= 7 && h("span", {
70
+ }), aaaPass && h("span", {
67
71
  "class": "k-icon k-i-check"
68
72
  })]) : h("span", {
69
73
  "class": "k-contrast-validation k-text-error"
70
74
  }, [h("span", {
71
75
  "class": "k-icon k-i-close"
72
- })])]), h("div", [h("span", [aaText]), contrast >= 4.5 ? success : error]), h("div", [h("span", [aaaText]), contrast >= 7 ? success : error])]);
76
+ })])]), h("div", [h("span", [aaText]), aaPass ? success : error]), h("div", [h("span", [aaaText]), aaaPass ? success : error])]);
73
77
  }
74
78
  };
75
79
  /**
@@ -2,8 +2,8 @@
2
2
  import * as Vue from 'vue';
3
3
  var allVue = Vue;
4
4
  var gh = allVue.h;
5
- var isV3 = allVue.version[0] === '3';
6
- import { bezierCommand, controlPoint, line, svgPath } from './utils/svg-calc';
5
+ var isV3 = allVue.version && allVue.version[0] === '3';
6
+ import { bezierCommand, controlPoint, line } from './utils/svg-calc';
7
7
  import { getColorFromHSV, getRGBA, getContrastFromTwoRGBAs } from './utils/color-parser';
8
8
  var AA_CONTRAST = 4.5;
9
9
  var AAA_CONTRAST = 7;
@@ -28,62 +28,83 @@ var ColorContrastSvgVue2 = {
28
28
  },
29
29
  // @ts-ignore
30
30
  render: function render(createElement) {
31
+ var _this = this;
32
+
31
33
  var h = gh || createElement;
32
34
 
33
- var renderSvgCurveLine = function renderSvgCurveLine() {
34
- var _this = this;
35
+ var svgPath = function svgPath(points, command) {
36
+ if (points.length === 0) {
37
+ return '';
38
+ } // build the d attributes by looping over the points
35
39
 
36
- var gradientRectMetrics = this.$props.metrics;
37
40
 
38
- var findValue = function findValue(contrast, saturation, low, high, comparer) {
39
- var mid = (low + high) / 2;
40
- var hsva = Object.assign({}, _this.$props.hsva, {
41
- s: saturation / gradientRectMetrics.width,
42
- v: 1 - mid / gradientRectMetrics.height
43
- });
44
- var currentContrast = getContrastFromTwoRGBAs(getRGBA(getColorFromHSV(hsva)), getRGBA(_this.$props.backgroundColor || ''));
45
-
46
- if (low + 0.5 > high) {
47
- if (currentContrast < contrast + 1 && currentContrast > contrast - 1) {
48
- return mid;
49
- } else {
50
- return null;
51
- }
52
- }
41
+ var d = points.reduce(function (acc, point, i, a) {
42
+ return i === 0 ? // if first point
43
+ "M " + point[0] + "," + point[1] : // else
44
+ acc + " " + command(point, i, a);
45
+ }, '');
46
+ return h("path", {
47
+ d: d,
48
+ attrs: this.v3 ? undefined : {
49
+ d: d,
50
+ fill: "none",
51
+ stroke: "white",
52
+ "stroke-width": "1"
53
+ },
54
+ fill: "none",
55
+ stroke: "white",
56
+ "stroke-width": "1"
57
+ });
58
+ };
53
59
 
54
- if (comparer(currentContrast, contrast)) {
55
- return findValue(contrast, saturation, low, high - (high - low) / 2, comparer);
56
- }
60
+ var gradientRectMetrics = this.$props.metrics;
57
61
 
58
- return findValue(contrast, saturation, low + (high - low) / 2, high, comparer);
59
- };
62
+ var findValue = function findValue(contrast, saturation, low, high, comparer) {
63
+ var mid = (low + high) / 2;
64
+ var hsva = Object.assign({}, _this.$props.hsva, {
65
+ s: saturation / gradientRectMetrics.width,
66
+ v: 1 - mid / gradientRectMetrics.height
67
+ });
68
+ var currentContrast = getContrastFromTwoRGBAs(getRGBA(getColorFromHSV(hsva)), getRGBA(_this.$props.backgroundColor || ''));
60
69
 
61
- var getPaths = function getPaths(contrast, stepCount, reversed) {
62
- if (reversed === void 0) {
63
- reversed = false;
70
+ if (low + 0.5 > high) {
71
+ if (currentContrast < contrast + 1 && currentContrast > contrast - 1) {
72
+ return mid;
73
+ } else {
74
+ return null;
64
75
  }
76
+ }
65
77
 
66
- var points = [];
78
+ if (comparer(currentContrast, contrast)) {
79
+ return findValue(contrast, saturation, low, high - (high - low) / 2, comparer);
80
+ }
67
81
 
68
- for (var i = 0; i <= gradientRectMetrics.width; i += gradientRectMetrics.width / stepCount) {
69
- var value = findValue(contrast, i, 0, gradientRectMetrics.height, reversed ? function (a, b) {
70
- return a < b;
71
- } : function (a, b) {
72
- return a > b;
73
- });
82
+ return findValue(contrast, saturation, low + (high - low) / 2, high, comparer);
83
+ };
74
84
 
75
- if (value !== null) {
76
- points.push([i, value]);
77
- }
78
- }
85
+ var getPaths = function getPaths(contrast, stepCount, reversed) {
86
+ if (reversed === void 0) {
87
+ reversed = false;
88
+ }
79
89
 
80
- return points;
81
- };
90
+ var points = [];
91
+
92
+ for (var i = 0; i <= gradientRectMetrics.width; i += gradientRectMetrics.width / stepCount) {
93
+ var value = findValue(contrast, i, 0, gradientRectMetrics.height, reversed ? function (a, b) {
94
+ return a < b;
95
+ } : function (a, b) {
96
+ return a > b;
97
+ });
98
+
99
+ if (value !== null) {
100
+ points.push([i, value]);
101
+ }
102
+ }
82
103
 
83
- var bezierCommandCalc = bezierCommand(controlPoint(line));
84
- return svgPath(getPaths(AA_CONTRAST, STEP_COUNT), bezierCommandCalc) + svgPath(getPaths(AA_CONTRAST, STEP_COUNT, true), bezierCommandCalc) + svgPath(getPaths(AAA_CONTRAST, STEP_COUNT), bezierCommandCalc) + svgPath(getPaths(AAA_CONTRAST, STEP_COUNT, true), bezierCommandCalc);
104
+ return points;
85
105
  };
86
106
 
107
+ var bezierCommandCalc = bezierCommand(controlPoint(line));
87
108
  return h("svg", {
88
109
  xmlns: "http://www.w3.org/2000/svg",
89
110
  attrs: this.v3 ? undefined : {
@@ -98,7 +119,7 @@ var ColorContrastSvgVue2 = {
98
119
  top: 0,
99
120
  zIndex: 3
100
121
  }
101
- }, [renderSvgCurveLine.call(this)]);
122
+ }, [svgPath.call(this, getPaths(AA_CONTRAST, STEP_COUNT), bezierCommandCalc), svgPath.call(this, getPaths(AA_CONTRAST, STEP_COUNT, true), bezierCommandCalc), svgPath.call(this, getPaths(AAA_CONTRAST, STEP_COUNT), bezierCommandCalc), svgPath.call(this, getPaths(AAA_CONTRAST, STEP_COUNT, true), bezierCommandCalc)]);
102
123
  }
103
124
  };
104
125
  /**
@@ -31,7 +31,7 @@ export interface ColorGradientMethods {
31
31
  */
32
32
  export interface ColorGradientData {
33
33
  hsva: HSVA;
34
- backgroundColor: string;
34
+ currentBgColor: string;
35
35
  rgba: RGBA;
36
36
  hex: string;
37
37
  isFirstRender: boolean;
@@ -2,7 +2,7 @@
2
2
  import * as Vue from 'vue';
3
3
  var allVue = Vue;
4
4
  var gh = allVue.h;
5
- var isV3 = allVue.version[0] === '3';
5
+ var isV3 = allVue.version && allVue.version[0] === '3';
6
6
  import { Draggable, guid, classNames, focusFirstFocusableChild, getTabIndex } from '@progress/kendo-vue-common';
7
7
  import { validatePackage } from '@progress/kendo-vue-common';
8
8
  import { packageMetadata } from '../package-metadata';
@@ -69,7 +69,7 @@ var ColorGradientVue2 = {
69
69
  return this.currentHex || getCachedHex(this.guid, this.computedValue) || parseColor(this.computedValue, 'hex');
70
70
  },
71
71
  computedBgColor: function computedBgColor() {
72
- return this.backgroundColor !== undefined ? this.backgroundColor : this.currentBgColor || getColorFromHue(this.hsva.h);
72
+ return this.currentBgColor || getColorFromHue(this.hsva.h);
73
73
  }
74
74
  },
75
75
  data: function data() {
@@ -196,15 +196,15 @@ var ColorGradientVue2 = {
196
196
  on: _this2.v3 ? undefined : {
197
197
  "click": _this2.onGradientWrapperClick
198
198
  }
199
- }, [renderRectangleDragHandle.call(_this2)])]), this.computedBgColor && !this.isFirstRender && h(ColorContrastSvg, {
199
+ }, [renderRectangleDragHandle.call(_this2)])]), this.backgroundColor && !this.isFirstRender && h(ColorContrastSvg, {
200
200
  metrics: this.gradientWrapper ? this.getGradientRectMetrics() : undefined,
201
201
  attrs: this.v3 ? undefined : {
202
202
  metrics: this.gradientWrapper ? this.getGradientRectMetrics() : undefined,
203
203
  hsva: this.hsva,
204
- backgroundColor: this.computedBgColor
204
+ backgroundColor: this.backgroundColor
205
205
  },
206
206
  hsva: this.hsva,
207
- backgroundColor: this.computedBgColor
207
+ backgroundColor: this.backgroundColor
208
208
  })]), h("div", {
209
209
  "class": "k-hsv-controls k-hstack"
210
210
  }, [h(Slider, {
@@ -273,20 +273,18 @@ var ColorGradientVue2 = {
273
273
  onRgbachange: this.onRgbaChange,
274
274
  on: this.v3 ? undefined : {
275
275
  "rgbachange": this.onRgbaChange,
276
- "focus": this.onFocus,
277
276
  "blur": this.onBlur,
278
277
  "hexchange": this.onHexChange
279
278
  },
280
279
  hex: this.hex,
281
- onFocus: this.onFocus,
282
280
  onBlur: this.onBlur,
283
281
  onHexchange: this.onHexChange,
284
282
  opacity: this.$props.opacity,
285
283
  disabled: this.$props.disabled
286
- }), this.computedBgColor && h(ColorContrastLabels, {
287
- bgColor: getRGBA(this.computedBgColor),
284
+ }), this.backgroundColor && h(ColorContrastLabels, {
285
+ bgColor: getRGBA(this.backgroundColor),
288
286
  attrs: this.v3 ? undefined : {
289
- bgColor: getRGBA(this.computedBgColor),
287
+ bgColor: getRGBA(this.backgroundColor),
290
288
  rgba: this.rgba
291
289
  },
292
290
  rgba: this.rgba
@@ -314,7 +312,7 @@ var ColorGradientVue2 = {
314
312
  cacheHex(this.guid, value, hex);
315
313
  }
316
314
 
317
- this.dispatchChangeEvent(value, event, event.nativeEvent);
315
+ this.dispatchChangeEvent(value, event, event.event);
318
316
  },
319
317
  onRgbaChange: function onRgbaChange(rgba, event) {
320
318
  var value = getColorFromRGBA(rgba);
@@ -18,7 +18,7 @@ var __assign = this && this.__assign || function () {
18
18
  import * as Vue from 'vue';
19
19
  var allVue = Vue;
20
20
  var gh = allVue.h;
21
- var isV3 = allVue.version[0] === '3';
21
+ var isV3 = allVue.version && allVue.version[0] === '3';
22
22
  import { NumericTextBox } from '../main';
23
23
  import { HexInput } from './HexInput';
24
24
  import { Button } from '@progress/kendo-vue-buttons';
@@ -251,7 +251,7 @@ var ColorInputVue2 = {
251
251
  this.$emit('blur', event);
252
252
  },
253
253
  onHexChange: function onHexChange(event) {
254
- this.$emit('hexchange', event);
254
+ this.$emit('hexchange', event.hex, event.value, event);
255
255
  },
256
256
  onRgbaRChange: function onRgbaRChange(event) {
257
257
  this.dispatchRgbaChange({
@@ -2,7 +2,7 @@
2
2
  import * as Vue from 'vue';
3
3
  var allVue = Vue;
4
4
  var gh = allVue.h;
5
- var isV3 = allVue.version[0] === '3';
5
+ var isV3 = allVue.version && allVue.version[0] === '3';
6
6
  import { ColorPaletteService } from './utils/color-palette.service';
7
7
  import { classNames, Keys, guid, getTabIndex, validatePackage, setRef, getRef } from '@progress/kendo-vue-common';
8
8
  import { packageMetadata } from '../package-metadata';
@@ -18,7 +18,7 @@ var __assign = this && this.__assign || function () {
18
18
  import * as Vue from 'vue';
19
19
  var allVue = Vue;
20
20
  var gh = allVue.h;
21
- var isV3 = allVue.version[0] === '3';
21
+ var isV3 = allVue.version && allVue.version[0] === '3';
22
22
  import { Button } from '@progress/kendo-vue-buttons';
23
23
  import { classNames, Keys, // useDir,
24
24
  getTabIndex, guid, kendoThemeMaps, validatePackage, setRef, getRef } from '@progress/kendo-vue-common';
@@ -2,7 +2,7 @@
2
2
  import * as Vue from 'vue';
3
3
  var allVue = Vue;
4
4
  var gh = allVue.h;
5
- var isV3 = allVue.version[0] === '3';
5
+ var isV3 = allVue.version && allVue.version[0] === '3';
6
6
  import { classNames, validatePackage, getTabIndex } from '@progress/kendo-vue-common';
7
7
  import { ButtonGroup, Button } from '@progress/kendo-vue-buttons';
8
8
  import { ColorPalette } from './ColorPalette';
@@ -2,10 +2,10 @@
2
2
  import * as Vue from 'vue';
3
3
  var allVue = Vue;
4
4
  var gh = allVue.h;
5
- var isV3 = allVue.version[0] === '3';
5
+ var isV3 = allVue.version && allVue.version[0] === '3';
6
6
  import { parseColor } from './utils/color-parser';
7
7
  import { isPresent } from './utils/misc';
8
- import { Input } from '../input/Input';
8
+ import { Input as KInput } from '../input/Input';
9
9
  /**
10
10
  * @hidden
11
11
  */
@@ -28,11 +28,6 @@ var HexInputVue2 = {
28
28
  originalHex: this.$props.hex
29
29
  };
30
30
  },
31
- computed: {
32
- computedHex: function computedHex() {
33
- return this.hex !== undefined ? this.hex : this.currentHex;
34
- }
35
- },
36
31
  // @ts-ignore
37
32
  setup: !isV3 ? undefined : function () {
38
33
  var v3 = !!isV3;
@@ -40,21 +35,28 @@ var HexInputVue2 = {
40
35
  v3: v3
41
36
  };
42
37
  },
38
+ watch: {
39
+ hex: function hex(newValue) {
40
+ this.currentHex = newValue;
41
+ }
42
+ },
43
43
  // @ts-ignore
44
44
  render: function render(createElement) {
45
45
  var h = gh || createElement;
46
- return h(Input, {
47
- value: this.computedHex,
46
+ return h(KInput, {
47
+ value: this.currentHex,
48
48
  attrs: this.v3 ? undefined : {
49
- value: this.computedHex,
49
+ value: this.currentHex,
50
50
  disabled: this.$props.disabled
51
51
  },
52
- onChange: this.onChange,
52
+ onInput: this.onChange,
53
53
  on: this.v3 ? undefined : {
54
+ "input": this.onChange,
54
55
  "change": this.onChange,
55
56
  "focus": this.onFocus,
56
57
  "blur": this.onBlur
57
58
  },
59
+ onChange: this.onChange,
58
60
  onFocus: this.onFocus,
59
61
  onBlur: this.onBlur,
60
62
  disabled: this.$props.disabled
@@ -67,7 +69,11 @@ var HexInputVue2 = {
67
69
  this.currentHex = hex;
68
70
 
69
71
  if (isPresent(value)) {
70
- this.$emit('hexchange', hex, value, event);
72
+ this.$emit('hexchange', {
73
+ hex: hex,
74
+ value: value,
75
+ event: event
76
+ });
71
77
  }
72
78
  },
73
79
  onBlur: function onBlur(event) {
@@ -2,7 +2,7 @@
2
2
  import * as Vue from 'vue';
3
3
  var allVue = Vue;
4
4
  var gh = allVue.h;
5
- var isV3 = allVue.version[0] === '3';
5
+ var isV3 = allVue.version && allVue.version[0] === '3';
6
6
  import { Popup } from '@progress/kendo-vue-popup';
7
7
  import { classNames, getDefaultSlots } from '@progress/kendo-vue-common';
8
8
  /**
@@ -18,7 +18,7 @@ var __assign = this && this.__assign || function () {
18
18
  import * as Vue from 'vue';
19
19
  var allVue = Vue;
20
20
  var gh = allVue.h;
21
- var isV3 = allVue.version[0] === '3';
21
+ var isV3 = allVue.version && allVue.version[0] === '3';
22
22
  var ref = allVue.ref;
23
23
  import { guid, templateDefinition, validatePackage, kendoThemeMaps, templateRendering, getListeners, getTemplate } from '@progress/kendo-vue-common';
24
24
  import { packageMetadata } from '../package-metadata';
@@ -3,7 +3,7 @@ import { validatePackage } from '@progress/kendo-licensing';
3
3
  import * as Vue from 'vue';
4
4
  var allVue = Vue;
5
5
  var gh = allVue.h;
6
- var isV3 = allVue.version[0] === '3';
6
+ var isV3 = allVue.version && allVue.version[0] === '3';
7
7
  var ref = allVue.ref;
8
8
  import { packageMetadata } from '../package-metadata';
9
9
  /**
@@ -2,7 +2,7 @@
2
2
  import * as Vue from 'vue';
3
3
  var allVue = Vue;
4
4
  var gh = allVue.h;
5
- var isV3 = allVue.version[0] === '3';
5
+ var isV3 = allVue.version && allVue.version[0] === '3';
6
6
  var ref = allVue.ref;
7
7
  import { MaskingService } from './masking.service';
8
8
  import { defaultRules, maskingChanged, returnFalse } from './utils';
@@ -2,7 +2,7 @@
2
2
  import * as Vue from 'vue';
3
3
  var allVue = Vue;
4
4
  var gh = allVue.h;
5
- var isV3 = allVue.version[0] === '3';
5
+ var isV3 = allVue.version && allVue.version[0] === '3';
6
6
  var ref = allVue.ref;
7
7
  var inject = allVue.inject;
8
8
  import { canUseDOM, getDefaultSlots, getListeners, getRef, getTemplate, kendoThemeMaps, setRef, templateDefinition, templateRendering } from '@progress/kendo-vue-common';
@@ -5,7 +5,7 @@ export var packageMetadata = {
5
5
  name: '@progress/kendo-vue-inputs',
6
6
  productName: 'Kendo UI for Vue',
7
7
  productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
8
- publishDate: 1657627749,
8
+ publishDate: 1658481454,
9
9
  version: '',
10
10
  licensingDocsUrl: 'https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning'
11
11
  };
@@ -2,7 +2,7 @@
2
2
  import * as Vue from 'vue';
3
3
  var allVue = Vue;
4
4
  var gh = allVue.h;
5
- var isV3 = allVue.version[0] === '3';
5
+ var isV3 = allVue.version && allVue.version[0] === '3';
6
6
  var ref = allVue.ref;
7
7
  var inject = allVue.inject;
8
8
  import { guid, getTabIndex, getDefaultSlots, templateRendering, getTemplate, getListeners, kendoThemeMaps, setRef, getRef } from '@progress/kendo-vue-common';
@@ -2,7 +2,7 @@
2
2
  import * as Vue from 'vue';
3
3
  var allVue = Vue;
4
4
  var gh = allVue.h;
5
- var isV3 = allVue.version[0] === '3';
5
+ var isV3 = allVue.version && allVue.version[0] === '3';
6
6
  var ref = allVue.ref;
7
7
  var inject = allVue.inject;
8
8
  import { RadioButton } from './RadioButton';
@@ -18,7 +18,7 @@ var __assign = this && this.__assign || function () {
18
18
  import * as Vue from 'vue';
19
19
  var allVue = Vue;
20
20
  var gh = allVue.h;
21
- var isV3 = allVue.version[0] === '3';
21
+ var isV3 = allVue.version && allVue.version[0] === '3';
22
22
  var ref = allVue.ref;
23
23
  var inject = allVue.inject;
24
24
  import { Draggable, Keys, // useDir,
@@ -2,7 +2,7 @@
2
2
  import * as Vue from 'vue';
3
3
  var allVue = Vue;
4
4
  var gh = allVue.h;
5
- var isV3 = allVue.version[0] === '3';
5
+ 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';
@@ -18,7 +18,7 @@ var __assign = this && this.__assign || function () {
18
18
  import * as Vue from 'vue';
19
19
  var allVue = Vue;
20
20
  var gh = allVue.h;
21
- var isV3 = allVue.version[0] === '3';
21
+ var isV3 = allVue.version && allVue.version[0] === '3';
22
22
  var ref = allVue.ref;
23
23
  import { getDefaultSlots } from '@progress/kendo-vue-common';
24
24
  /**
@@ -2,7 +2,7 @@
2
2
  import * as Vue from 'vue';
3
3
  var allVue = Vue;
4
4
  var gh = allVue.h;
5
- var isV3 = allVue.version[0] === '3';
5
+ var isV3 = allVue.version && allVue.version[0] === '3';
6
6
  import { guid, noop, Keys, getTabIndex, validatePackage, isRtl, kendoThemeMaps, setRef, getRef } from '@progress/kendo-vue-common';
7
7
  import { provideLocalizationService } from '@progress/kendo-vue-intl';
8
8
  import { messages, switchValidation } from './../messages';
@@ -18,7 +18,7 @@ var __assign = this && this.__assign || function () {
18
18
  import * as Vue from 'vue';
19
19
  var allVue = Vue;
20
20
  var gh = allVue.h;
21
- var isV3 = allVue.version[0] === '3';
21
+ var isV3 = allVue.version && allVue.version[0] === '3';
22
22
  import { guid, isRtl, getTabIndex, validatePackage, kendoThemeMaps, templateDefinition, templateRendering, getListeners, getTemplate // useDir,
23
23
  } from '@progress/kendo-vue-common';
24
24
  import { packageMetadata } from '../package-metadata';
@@ -9,7 +9,7 @@ var Vue = require("vue");
9
9
 
10
10
  var allVue = Vue;
11
11
  var gh = allVue.h;
12
- var isV3 = allVue.version[0] === '3';
12
+ var isV3 = allVue.version && allVue.version[0] === '3';
13
13
  var ref = allVue.ref;
14
14
  var inject = allVue.inject;
15
15
 
@@ -9,7 +9,7 @@ var Vue = require("vue");
9
9
 
10
10
  var allVue = Vue;
11
11
  var gh = allVue.h;
12
- var isV3 = allVue.version[0] === '3';
12
+ var isV3 = allVue.version && allVue.version[0] === '3';
13
13
 
14
14
  var kendo_vue_intl_1 = require("@progress/kendo-vue-intl");
15
15
 
@@ -54,12 +54,16 @@ var ColorContrastLabelsVue2 = {
54
54
  var contrastText = contrastRatioMessage + ": " + contrast.toFixed(2);
55
55
  var aaText = AALevelMessage + ": " + requiredAAContrast;
56
56
  var aaaText = AAALevelMessage + ": " + requiredAAAContrast;
57
+ var aaPass = contrast >= 4.5;
58
+ var aaaPass = contrast >= 7;
57
59
  var success = h("span", {
60
+ key: 1,
58
61
  "class": "k-contrast-validation k-text-success"
59
62
  }, [passMessage, " ", h("span", {
60
63
  "class": "k-icon k-i-check"
61
64
  })]);
62
65
  var error = h("span", {
66
+ key: 2,
63
67
  "class": "k-contrast-validation k-text-error"
64
68
  }, [failMessage, " ", h("span", {
65
69
  "class": "k-icon k-i-close"
@@ -70,17 +74,17 @@ var ColorContrastLabelsVue2 = {
70
74
  "class": "k-contrast-ratio"
71
75
  }, [h("span", {
72
76
  "class": "k-contrast-ratio-text"
73
- }, [contrastText]), contrast >= 4.5 ? h("span", {
77
+ }, [contrastText]), aaPass ? h("span", {
74
78
  "class": "k-contrast-validation k-text-success"
75
79
  }, [h("span", {
76
80
  "class": "k-icon k-i-check"
77
- }), contrast >= 7 && h("span", {
81
+ }), aaaPass && h("span", {
78
82
  "class": "k-icon k-i-check"
79
83
  })]) : h("span", {
80
84
  "class": "k-contrast-validation k-text-error"
81
85
  }, [h("span", {
82
86
  "class": "k-icon k-i-close"
83
- })])]), h("div", [h("span", [aaText]), contrast >= 4.5 ? success : error]), h("div", [h("span", [aaaText]), contrast >= 7 ? success : error])]);
87
+ })])]), h("div", [h("span", [aaText]), aaPass ? success : error]), h("div", [h("span", [aaaText]), aaaPass ? success : error])]);
84
88
  }
85
89
  };
86
90
  exports.ColorContrastLabelsVue2 = ColorContrastLabelsVue2;