mhz-ui 1.0.89 → 1.0.91

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.
@@ -1,6 +1,10 @@
1
+ interface IDataset {
2
+ data: number[];
3
+ label?: string;
4
+ }
1
5
  interface IProps {
2
6
  labels: string[];
3
- data: number[];
7
+ datasets: IDataset[];
4
8
  title?: string;
5
9
  type?: 'Bar' | 'Pie' | 'Line';
6
10
  }
@@ -429,7 +429,7 @@ class Zt {
429
429
  }
430
430
  }
431
431
  /*!
432
- * Chart.js v4.4.6
432
+ * Chart.js v4.4.7
433
433
  * https://www.chartjs.org
434
434
  * (c) 2024 Chart.js Contributors
435
435
  * Released under the MIT License
@@ -441,7 +441,7 @@ const go = /* @__PURE__ */ (() => {
441
441
  return () => i++;
442
442
  })();
443
443
  function T(i) {
444
- return i === null || typeof i > "u";
444
+ return i == null;
445
445
  }
446
446
  function N(i) {
447
447
  if (Array.isArray && Array.isArray(i))
@@ -1975,7 +1975,7 @@ function Br(i, t) {
1975
1975
  return JSON.stringify(i, s) !== JSON.stringify(t, s);
1976
1976
  }
1977
1977
  /*!
1978
- * Chart.js v4.4.6
1978
+ * Chart.js v4.4.7
1979
1979
  * https://www.chartjs.org
1980
1980
  * (c) 2024 Chart.js Contributors
1981
1981
  * Released under the MIT License
@@ -5275,7 +5275,7 @@ function bl(i, t) {
5275
5275
  }
5276
5276
  return !1;
5277
5277
  }
5278
- var _l = "4.4.6";
5278
+ var _l = "4.4.7";
5279
5279
  const xl = [
5280
5280
  "top",
5281
5281
  "bottom",
@@ -7719,7 +7719,7 @@ const Cc = /* @__PURE__ */ Mi("bar", ca), Dc = /* @__PURE__ */ Mi("line", da), O
7719
7719
  __name: "UiChart",
7720
7720
  props: {
7721
7721
  labels: {},
7722
- data: {},
7722
+ datasets: {},
7723
7723
  title: { default: "" },
7724
7724
  type: { default: "Bar" }
7725
7725
  },
@@ -7727,8 +7727,8 @@ const Cc = /* @__PURE__ */ Mi("bar", ca), Dc = /* @__PURE__ */ Mi("line", da), O
7727
7727
  const t = i, e = Vn(() => t.type === "Pie" ? Oc : t.type === "Line" ? Dc : Cc);
7728
7728
  Le.register(ec, cc, Ul, fc, mc, Jl, Ol, Vl, Nl);
7729
7729
  const s = {
7730
- labels: t.labels,
7731
- datasets: [{ data: t.data }]
7730
+ labels: [...t.labels],
7731
+ datasets: [...t.datasets]
7732
7732
  }, n = {
7733
7733
  responsive: !0,
7734
7734
  aspectRatio: 2,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mhz-ui",
3
3
  "description": "9000 Mhz ui kit",
4
- "version": "1.0.89",
4
+ "version": "1.0.91",
5
5
  "author": "Alexandr Dergunov <dergunovs@mail.ru> (https://github.com/dergunovs)",
6
6
  "license": "MIT",
7
7
  "type": "module",
@@ -30,7 +30,7 @@
30
30
  "@vueform/slider": "2.1.10",
31
31
  "@vueuse/core": "12.0.0",
32
32
  "@vueuse/integrations": "12.0.0",
33
- "chart.js": "4.4.6",
33
+ "chart.js": "4.4.7",
34
34
  "perfect-debounce": "1.0.0",
35
35
  "vue": "3.5.13",
36
36
  "vue-cal": "4.10.0",
@@ -53,16 +53,16 @@
53
53
  "@vue/test-utils": "2.4.6",
54
54
  "eslint": "9.16.0",
55
55
  "eslint-config-prettier": "9.1.0",
56
- "eslint-import-resolver-typescript": "3.6.3",
57
- "eslint-plugin-import-x": "4.4.3",
56
+ "eslint-import-resolver-typescript": "3.7.0",
57
+ "eslint-plugin-import-x": "4.5.0",
58
58
  "eslint-plugin-prettier": "5.2.1",
59
59
  "eslint-plugin-vue": "9.32.0",
60
- "globals": "15.12.0",
60
+ "globals": "15.13.0",
61
61
  "happy-dom": "15.11.7",
62
62
  "postcss-html": "1.7.0",
63
63
  "postcss-scss": "4.0.9",
64
- "prettier": "3.4.1",
65
- "sass-embedded": "1.81.0",
64
+ "prettier": "3.4.2",
65
+ "sass-embedded": "1.82.0",
66
66
  "storybook": "8.4.6",
67
67
  "stylelint": "16.11.0",
68
68
  "stylelint-config-recess-order": "5.1.1",
@@ -70,14 +70,14 @@
70
70
  "stylelint-config-recommended-vue": "1.5.0",
71
71
  "stylelint-prettier": "5.0.2",
72
72
  "typescript": "5.6.3",
73
- "typescript-eslint": "8.16.0",
74
- "vite": "6.0.1",
73
+ "typescript-eslint": "8.17.0",
74
+ "vite": "6.0.2",
75
75
  "vite-plugin-dts": "4.3.0",
76
76
  "vite-plugin-static-copy": "2.2.0",
77
77
  "vite-svg-loader": "5.1.0",
78
78
  "vitest": "2.1.6",
79
79
  "vue-eslint-parser": "9.4.3",
80
- "vue-linters-config": "0.3.9",
80
+ "vue-linters-config": "0.3.10",
81
81
  "vue-tsc": "2.1.10"
82
82
  },
83
83
  "peerDependencies": {