mhz-ui 1.0.42 → 1.0.43

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.
@@ -429,9 +429,9 @@ class Gt {
429
429
  }
430
430
  }
431
431
  /*!
432
- * Chart.js v4.4.1
432
+ * Chart.js v4.4.2
433
433
  * https://www.chartjs.org
434
- * (c) 2023 Chart.js Contributors
434
+ * (c) 2024 Chart.js Contributors
435
435
  * Released under the MIT License
436
436
  */
437
437
  function nt() {
@@ -1682,9 +1682,9 @@ function fa(i, t) {
1682
1682
  t !== void 0 && (delete i.prevTextDirection, i.canvas.style.setProperty("direction", t[0], t[1]));
1683
1683
  }
1684
1684
  /*!
1685
- * Chart.js v4.4.1
1685
+ * Chart.js v4.4.2
1686
1686
  * https://www.chartjs.org
1687
- * (c) 2023 Chart.js Contributors
1687
+ * (c) 2024 Chart.js Contributors
1688
1688
  * Released under the MIT License
1689
1689
  */
1690
1690
  class ua {
@@ -3558,10 +3558,10 @@ const un = la ? {
3558
3558
  passive: !0
3559
3559
  } : !1;
3560
3560
  function sr(i, t, e) {
3561
- i.addEventListener(t, e, un);
3561
+ i && i.addEventListener(t, e, un);
3562
3562
  }
3563
3563
  function nr(i, t, e) {
3564
- i.canvas.removeEventListener(t, e, un);
3564
+ i && i.canvas && i.canvas.removeEventListener(t, e, un);
3565
3565
  }
3566
3566
  function or(i, t) {
3567
3567
  const e = er[i.type] || i.type, { x: s, y: n } = kt(i, t);
@@ -4927,7 +4927,7 @@ function $r(i, t) {
4927
4927
  }
4928
4928
  return !1;
4929
4929
  }
4930
- var Yr = "4.4.1";
4930
+ var Yr = "4.4.2";
4931
4931
  const Xr = [
4932
4932
  "top",
4933
4933
  "bottom",
@@ -5927,16 +5927,18 @@ const Yt = {
5927
5927
  average(i) {
5928
5928
  if (!i.length)
5929
5929
  return !1;
5930
- let t, e, s = 0, n = 0, o = 0;
5930
+ let t, e, s = /* @__PURE__ */ new Set(), n = 0, o = 0;
5931
5931
  for (t = 0, e = i.length; t < e; ++t) {
5932
- const a = i[t].element;
5933
- if (a && a.hasValue()) {
5934
- const r = a.tooltipPosition();
5935
- s += r.x, n += r.y, ++o;
5932
+ const r = i[t].element;
5933
+ if (r && r.hasValue()) {
5934
+ const l = r.tooltipPosition();
5935
+ s.add(l.x), n += l.y, ++o;
5936
5936
  }
5937
5937
  }
5938
5938
  return {
5939
- x: s / o,
5939
+ x: [
5940
+ ...s
5941
+ ].reduce((r, l) => r + l) / s.size,
5940
5942
  y: n / o
5941
5943
  };
5942
5944
  },
@@ -7038,7 +7040,7 @@ class uc extends Re {
7038
7040
  const t = this.ctx, e = this.options, { angleLines: s, grid: n, border: o } = e, a = this._pointLabels.length;
7039
7041
  let r, l, c;
7040
7042
  if (e.pointLabels.display && Hl(this, a), n.display && this.ticks.forEach((h, d) => {
7041
- if (d !== 0) {
7043
+ if (d !== 0 || d === 0 && this.min < 0) {
7042
7044
  l = this.getDistanceFromCenterForValue(h.value);
7043
7045
  const f = this.getContext(d), u = n.setContext(f), g = o.setContext(f);
7044
7046
  $l(this, u, l, a, g);
@@ -7060,7 +7062,7 @@ class uc extends Re {
7060
7062
  const n = this.getIndexAngle(0);
7061
7063
  let o, a;
7062
7064
  t.save(), t.translate(this.xCenter, this.yCenter), t.rotate(n), t.textAlign = "center", t.textBaseline = "middle", this.ticks.forEach((r, l) => {
7063
- if (l === 0 && !e.reverse)
7065
+ if (l === 0 && this.min >= 0 && !e.reverse)
7064
7066
  return;
7065
7067
  const c = s.setContext(this.getContext(l)), h = $(c.font);
7066
7068
  if (o = this.getDistanceFromCenterForValue(this.ticks[l].value), c.showLabelBackdrop) {
@@ -7634,9 +7634,6 @@ class K {
7634
7634
  }
7635
7635
  return r == this.children && i == this.local ? this : i.length || r.length ? new K(i, r) : ne;
7636
7636
  }
7637
- /**
7638
- @internal
7639
- */
7640
7637
  forChild(e, t) {
7641
7638
  if (this == ne)
7642
7639
  return this;
@@ -9664,7 +9661,7 @@ function jf(n) {
9664
9661
  }
9665
9662
  function Wf(n) {
9666
9663
  const { editor: e, rules: t } = n;
9667
- let r = null, i = !1, s = !1, o = new ClipboardEvent("paste"), l = new DragEvent("drop");
9664
+ let r = null, i = !1, s = !1, o = typeof ClipboardEvent < "u" ? new ClipboardEvent("paste") : null, l = typeof DragEvent < "u" ? new DragEvent("drop") : null;
9668
9665
  return t.map((c) => new me({
9669
9666
  // we register a global drag handler to track the current drag source element
9670
9667
  view(u) {
@@ -9708,7 +9705,7 @@ function Wf(n) {
9708
9705
  pasteEvent: o,
9709
9706
  dropEvent: l
9710
9707
  }) || !w.steps.length))
9711
- return l = new DragEvent("drop"), o = new ClipboardEvent("paste"), w;
9708
+ return l = typeof DragEvent < "u" ? new DragEvent("drop") : null, o = typeof ClipboardEvent < "u" ? new ClipboardEvent("paste") : null, w;
9712
9709
  }
9713
9710
  }));
9714
9711
  }
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.42",
4
+ "version": "1.0.43",
5
5
  "author": "Alexandr Dergunov <dergunovs@mail.ru> (https://github.com/dergunovs)",
6
6
  "license": "MIT",
7
7
  "type": "module",
@@ -24,64 +24,64 @@
24
24
  "test": "vitest run"
25
25
  },
26
26
  "dependencies": {
27
- "@tiptap/pm": "2.2.2",
28
- "@tiptap/starter-kit": "2.2.2",
29
- "@tiptap/vue-3": "2.2.2",
27
+ "@tiptap/pm": "2.2.4",
28
+ "@tiptap/starter-kit": "2.2.4",
29
+ "@tiptap/vue-3": "2.2.4",
30
30
  "@vueform/slider": "2.1.10",
31
- "@vueuse/core": "10.7.2",
32
- "@vueuse/integrations": "10.7.2",
33
- "chart.js": "4.4.1",
31
+ "@vueuse/core": "10.9.0",
32
+ "@vueuse/integrations": "10.9.0",
33
+ "chart.js": "4.4.2",
34
34
  "perfect-debounce": "1.0.0",
35
- "vue": "3.4.18",
35
+ "vue": "3.4.21",
36
36
  "vue-chartjs": "5.3.0",
37
- "vue-router": "4.2.5"
37
+ "vue-router": "4.3.0"
38
38
  },
39
39
  "devDependencies": {
40
- "@storybook/addon-essentials": "7.6.13",
41
- "@storybook/addon-interactions": "7.6.13",
42
- "@storybook/addon-links": "7.6.13",
43
- "@storybook/blocks": "7.6.13",
44
- "@storybook/core-events": "7.6.13",
45
- "@storybook/preview-api": "7.6.13",
46
- "@storybook/vue3": "7.6.13",
47
- "@storybook/vue3-vite": "7.6.13",
48
- "@types/node": "20.11.17",
49
- "@typescript-eslint/eslint-plugin": "6.21.0",
50
- "@typescript-eslint/parser": "6.21.0",
40
+ "@storybook/addon-essentials": "7.6.17",
41
+ "@storybook/addon-interactions": "7.6.17",
42
+ "@storybook/addon-links": "7.6.17",
43
+ "@storybook/blocks": "7.6.17",
44
+ "@storybook/core-events": "7.6.17",
45
+ "@storybook/preview-api": "7.6.17",
46
+ "@storybook/vue3": "7.6.17",
47
+ "@storybook/vue3-vite": "7.6.17",
48
+ "@types/node": "20.11.24",
49
+ "@typescript-eslint/eslint-plugin": "7.1.0",
50
+ "@typescript-eslint/parser": "7.1.0",
51
51
  "@vitejs/plugin-vue": "5.0.4",
52
- "@vitest/coverage-v8": "1.2.2",
52
+ "@vitest/coverage-v8": "1.3.1",
53
53
  "@vue/test-utils": "2.4.4",
54
- "eslint": "8.56.0",
54
+ "eslint": "8.57.0",
55
55
  "eslint-config-prettier": "9.1.0",
56
56
  "eslint-import-resolver-typescript": "3.6.1",
57
57
  "eslint-plugin-import": "2.29.1",
58
58
  "eslint-plugin-prettier": "5.1.3",
59
- "eslint-plugin-vue": "9.21.1",
60
- "happy-dom": "13.3.8",
59
+ "eslint-plugin-vue": "9.22.0",
60
+ "happy-dom": "13.6.2",
61
61
  "postcss-html": "1.6.0",
62
62
  "postcss-scss": "4.0.9",
63
63
  "prettier": "3.2.5",
64
64
  "react": "18.2.0",
65
65
  "react-dom": "18.2.0",
66
- "sass": "1.70.0",
67
- "storybook": "7.6.13",
66
+ "sass": "1.71.1",
67
+ "storybook": "7.6.17",
68
68
  "stylelint": "16.2.1",
69
69
  "stylelint-config-recess-order": "4.6.0",
70
70
  "stylelint-config-recommended-scss": "14.0.0",
71
71
  "stylelint-config-recommended-vue": "1.5.0",
72
72
  "stylelint-prettier": "5.0.0",
73
73
  "typescript": "5.3.3",
74
- "vite": "5.1.1",
75
- "vite-plugin-dts": "3.7.2",
74
+ "vite": "5.1.4",
75
+ "vite-plugin-dts": "3.7.3",
76
76
  "vite-plugin-static-copy": "1.0.1",
77
77
  "vite-svg-loader": "5.1.0",
78
- "vitest": "1.2.2",
78
+ "vitest": "1.3.1",
79
79
  "vue-linters-config": "0.1.13",
80
- "vue-tsc": "1.8.27"
80
+ "vue-tsc": "2.0.2"
81
81
  },
82
82
  "peerDependencies": {
83
- "vue": "3.4.18",
84
- "vue-router": "4.2.5"
83
+ "vue": "3.4.21",
84
+ "vue-router": "4.3.0"
85
85
  },
86
86
  "engines": {
87
87
  "npm": ">=10.2.3",