@progress/kendo-vue-inputs 3.4.2 → 3.4.3

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 (36) hide show
  1. package/dist/cdn/js/kendo-vue-inputs.js +1 -1
  2. package/dist/es/colors/ColorContrastSvg.d.ts +1 -1
  3. package/dist/es/colors/ColorGradient.d.ts +1 -0
  4. package/dist/es/colors/ColorGradient.js +77 -55
  5. package/dist/es/colors/ColorInput.js +58 -13
  6. package/dist/es/colors/ColorPalette.d.ts +0 -1
  7. package/dist/es/colors/ColorPalette.js +5 -28
  8. package/dist/es/colors/ColorPicker.d.ts +0 -1
  9. package/dist/es/colors/ColorPicker.js +170 -87
  10. package/dist/es/colors/FlatColorPicker.js +56 -18
  11. package/dist/es/colors/HexInput.js +25 -7
  12. package/dist/es/colors/interfaces/ColorPickerProps.d.ts +6 -1
  13. package/dist/es/colors/utils/color-palette.service.d.ts +1 -0
  14. package/dist/es/colors/utils/color-palette.service.js +7 -16
  15. package/dist/es/main.d.ts +1 -0
  16. package/dist/es/main.js +1 -0
  17. package/dist/es/package-metadata.js +1 -1
  18. package/dist/es/slider/Slider.js +12 -2
  19. package/dist/npm/colors/ColorContrastSvg.d.ts +1 -1
  20. package/dist/npm/colors/ColorGradient.d.ts +1 -0
  21. package/dist/npm/colors/ColorGradient.js +76 -54
  22. package/dist/npm/colors/ColorInput.js +58 -13
  23. package/dist/npm/colors/ColorPalette.d.ts +0 -1
  24. package/dist/npm/colors/ColorPalette.js +5 -28
  25. package/dist/npm/colors/ColorPicker.d.ts +0 -1
  26. package/dist/npm/colors/ColorPicker.js +169 -85
  27. package/dist/npm/colors/FlatColorPicker.js +56 -18
  28. package/dist/npm/colors/HexInput.js +25 -7
  29. package/dist/npm/colors/interfaces/ColorPickerProps.d.ts +6 -1
  30. package/dist/npm/colors/utils/color-palette.service.d.ts +1 -0
  31. package/dist/npm/colors/utils/color-palette.service.js +7 -16
  32. package/dist/npm/main.d.ts +1 -0
  33. package/dist/npm/main.js +2 -0
  34. package/dist/npm/package-metadata.js +1 -1
  35. package/dist/npm/slider/Slider.js +12 -2
  36. package/package.json +14 -14
@@ -21,8 +21,10 @@ var ColorPaletteService = /** @class */ (function () {
21
21
  this.colorRows.push(row);
22
22
  }
23
23
  };
24
+ ColorPaletteService.prototype.isInColors = function (colors, current) {
25
+ return colors.some(function (c) { return c === current; });
26
+ };
24
27
  ColorPaletteService.prototype.getCellCoordsFor = function (color) {
25
- var _this = this;
26
28
  if (!misc_1.isPresent(color)) {
27
29
  return;
28
30
  }
@@ -31,23 +33,12 @@ var ColorPaletteService = /** @class */ (function () {
31
33
  if (misc_1.isPresent(parsedColor)) {
32
34
  colors.push(parsedColor.toCss(), parsedColor.toCssRgba());
33
35
  }
34
- var _loop_1 = function (row) {
35
- var _loop_2 = function (col) {
36
- if (colors.some(function (c) { return c === _this.colorRows[row][col]; })) {
37
- return { value: { row: row, col: col } };
36
+ for (var row = 0; row < this.colorRows.length; row++) {
37
+ for (var col = 0; col < this.colorRows[row].length; col++) {
38
+ if (this.isInColors(colors, this.colorRows[row][col])) {
39
+ return { row: row, col: col };
38
40
  }
39
- };
40
- for (var col = 0; col < this_1.colorRows[row].length; col++) {
41
- var state_2 = _loop_2(col);
42
- if (typeof state_2 === "object")
43
- return state_2;
44
41
  }
45
- };
46
- var this_1 = this;
47
- for (var row = 0; row < this.colorRows.length; row++) {
48
- var state_1 = _loop_1(row);
49
- if (typeof state_1 === "object")
50
- return state_1.value;
51
42
  }
52
43
  };
53
44
  ColorPaletteService.prototype.getColorAt = function (cellCoords) {
@@ -1,5 +1,6 @@
1
1
  import { FormComponentValidity } from '@progress/kendo-vue-common';
2
2
  export { FormComponentValidity };
3
+ export { ColorGradient, ColorGradientState } from './colors/ColorGradient';
3
4
  export { ColorPalette, ColorPaletteState } from './colors/ColorPalette';
4
5
  export * from './colors/ColorPicker';
5
6
  export * from './colors/interfaces/ColorPaletteChangeEvent';
package/dist/npm/main.js CHANGED
@@ -10,6 +10,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
10
  for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
11
11
  };
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
+ var ColorGradient_1 = require("./colors/ColorGradient");
14
+ Object.defineProperty(exports, "ColorGradient", { enumerable: true, get: function () { return ColorGradient_1.ColorGradient; } });
13
15
  var ColorPalette_1 = require("./colors/ColorPalette");
14
16
  Object.defineProperty(exports, "ColorPalette", { enumerable: true, get: function () { return ColorPalette_1.ColorPalette; } });
15
17
  __exportStar(require("./colors/ColorPicker"), exports);
@@ -8,7 +8,7 @@ exports.packageMetadata = {
8
8
  name: '@progress/kendo-vue-inputs',
9
9
  productName: 'Kendo UI for Vue',
10
10
  productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
11
- publishDate: 1657171976,
11
+ publishDate: 1657627749,
12
12
  version: '',
13
13
  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'
14
14
  };
@@ -34,6 +34,14 @@ var SliderVue2 = {
34
34
  model: {
35
35
  event: 'changemodel'
36
36
  },
37
+ // @ts-ignore
38
+ emits: {
39
+ 'changemodel': null,
40
+ 'update:modelValue': null,
41
+ 'change': null,
42
+ 'blur': null,
43
+ 'focus': null
44
+ },
37
45
  props: {
38
46
  modelValue: {
39
47
  type: Number,
@@ -322,11 +330,13 @@ var SliderVue2 = {
322
330
 
323
331
  return false;
324
332
  },
325
- onFocus: function onFocus() {
333
+ onFocus: function onFocus(event) {
326
334
  this.currentFocused = true;
335
+ this.$emit('focus', event);
327
336
  },
328
- onBlur: function onBlur() {
337
+ onBlur: function onBlur(event) {
329
338
  this.currentFocused = false;
339
+ this.$emit('blur', event);
330
340
  },
331
341
  onKeyDown: function onKeyDown(e) {
332
342
  var newValue = undefined;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@progress/kendo-vue-inputs",
3
3
  "description": "Kendo UI for Vue Input package",
4
- "version": "3.4.2",
4
+ "version": "3.4.3",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/telerik/kendo-vue.git"
@@ -38,25 +38,25 @@
38
38
  "vue": "^2.6.12 || ^3.0.2"
39
39
  },
40
40
  "dependencies": {
41
- "@progress/kendo-vue-buttons": "3.4.2",
42
- "@progress/kendo-vue-common": "3.4.2",
43
- "@progress/kendo-vue-labels": "3.4.2",
44
- "@progress/kendo-vue-popup": "3.4.2"
41
+ "@progress/kendo-vue-buttons": "3.4.3",
42
+ "@progress/kendo-vue-common": "3.4.3",
43
+ "@progress/kendo-vue-labels": "3.4.3",
44
+ "@progress/kendo-vue-popup": "3.4.3"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@progress/kendo-data-query": "^1.5.5",
48
48
  "@progress/kendo-date-math": "^1.5.4",
49
49
  "@progress/kendo-drawing": "^1.8.0",
50
50
  "@progress/kendo-licensing": "^1.1.0",
51
- "@progress/kendo-vue-buttons": "3.4.2",
52
- "@progress/kendo-vue-dropdowns": "3.4.2",
53
- "@progress/kendo-vue-form": "3.4.2",
54
- "@progress/kendo-vue-intl": "3.4.2",
55
- "@progress/kendo-vue-labels": "3.4.2",
56
- "@progress/kendo-vue-tooltip": "3.4.2",
57
- "cldr-core": "^34.0.0",
58
- "cldr-dates-full": "^34.0.0",
59
- "cldr-numbers-full": "^34.0.0"
51
+ "@progress/kendo-vue-buttons": "3.4.3",
52
+ "@progress/kendo-vue-dropdowns": "3.4.3",
53
+ "@progress/kendo-vue-form": "3.4.3",
54
+ "@progress/kendo-vue-intl": "3.4.3",
55
+ "@progress/kendo-vue-labels": "3.4.3",
56
+ "@progress/kendo-vue-tooltip": "3.4.3",
57
+ "cldr-core": "^41.0.0",
58
+ "cldr-dates-full": "^41.0.0",
59
+ "cldr-numbers-full": "^41.0.0"
60
60
  },
61
61
  "author": "Progress",
62
62
  "license": "SEE LICENSE IN LICENSE.md",