mhz-ui 1.4.29 → 1.4.30

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.
@@ -3,7 +3,7 @@ import { t as e } from "../_plugin-vue_export-helper-B3ysoDQm.js";
3
3
  import { Fragment as t, computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, defineComponent as s, normalizeClass as c, openBlock as l, renderList as u, resolveDynamicComponent as d, toDisplayString as f, withCtx as p } from "vue";
4
4
  import { RouterLink as m } from "vue-router";
5
5
  //#region src/components/UiBreadcrumbs/constants/index.ts
6
- var h = "default", g = "Breadcrumb", _ = ["aria-label"], v = { itemprop: "name" }, y = ["data-color"], b = ["content"], x = /* @__PURE__ */ e(/* @__PURE__ */ s({
6
+ var h = "default", g = "Breadcrumb", _ = ["aria-label"], v = { itemprop: "name" }, y = ["data-color"], b = ["content"], x = /*#__PURE__*/ e(/* @__PURE__ */ s({
7
7
  __name: "UiBreadcrumbs",
8
8
  props: {
9
9
  links: {},
@@ -1,2 +1,2 @@
1
- import { t as e } from "../UiButton-DCQiGgkB.js";
1
+ import { t as e } from "../UiButton-D0BOZNZF.js";
2
2
  export { e as default };
@@ -12,7 +12,7 @@ var l = "primary", u = "button", d = "Button", f = [
12
12
  "type",
13
13
  "aria-label",
14
14
  "aria-disabled"
15
- ], p = /* @__PURE__ */ e(/* @__PURE__ */ i({
15
+ ], p = /*#__PURE__*/ e(/* @__PURE__ */ i({
16
16
  __name: "UiButton",
17
17
  props: {
18
18
  layout: { default: l },
@@ -6,7 +6,7 @@ var u = ["data-tall"], d = [
6
6
  "onClick",
7
7
  "data-current",
8
8
  "data-fill"
9
- ], f = ["value"], p = /* @__PURE__ */ e(/* @__PURE__ */ a({
9
+ ], f = ["value"], p = /*#__PURE__*/ e(/* @__PURE__ */ a({
10
10
  __name: "UiButtongroup",
11
11
  props: {
12
12
  modelValue: {},
@@ -2,7 +2,7 @@ import "./UiCalendar.css";
2
2
  import { t as e } from "../_plugin-vue_export-helper-B3ysoDQm.js";
3
3
  import { Fragment as t, Transition as n, computed as r, createElementBlock as i, createElementVNode as a, createVNode as o, defineComponent as s, normalizeClass as c, normalizeStyle as l, onBeforeMount as u, openBlock as d, renderList as f, shallowRef as p, toDisplayString as m, withCtx as h, withModifiers as g } from "vue";
4
4
  //#region src/components/UiCalendar/UiCalendar.vue?vue&type=script&setup=true&lang.ts
5
- var _ = ["onClick", "data-choose"], v = ["onClick"], y = /* @__PURE__ */ e(/* @__PURE__ */ s({
5
+ var _ = ["onClick", "data-choose"], v = ["onClick"], y = /*#__PURE__*/ e(/* @__PURE__ */ s({
6
6
  __name: "UiCalendar",
7
7
  props: {
8
8
  isDisablePastDates: { type: Boolean },
@@ -1018,7 +1018,7 @@ function an(e, t) {
1018
1018
  function on(e, t, n) {
1019
1019
  return typeof t == "string" ? We(an(e, t), n) : We(an(e, ""), t);
1020
1020
  }
1021
- var G = /* @__PURE__ */ new class {
1021
+ var G = /* #__PURE__ */ new class {
1022
1022
  constructor(e, t) {
1023
1023
  this.animation = void 0, this.backgroundColor = "rgba(0,0,0,0.1)", this.borderColor = "rgba(0,0,0,0.1)", this.color = "#666", this.datasets = {}, this.devicePixelRatio = (e) => e.chart.platform.getDevicePixelRatio(), this.elements = {}, this.events = [
1024
1024
  "mousemove",
@@ -1846,7 +1846,7 @@ function Jr(e, t) {
1846
1846
  bottom: n.bottom === !1 ? e.height : r.bottom + (n.bottom === !0 ? 0 : n.bottom)
1847
1847
  };
1848
1848
  }
1849
- var Yr = /* @__PURE__ */ new class {
1849
+ var Yr = /* #__PURE__ */ new class {
1850
1850
  constructor() {
1851
1851
  this._request = null, this._charts = /* @__PURE__ */ new Map(), this._running = !1, this._lastDate = void 0;
1852
1852
  }
@@ -4406,7 +4406,7 @@ function co(e, t) {
4406
4406
  function lo(e) {
4407
4407
  return "id" in e && "defaults" in e;
4408
4408
  }
4409
- var Y = /* @__PURE__ */ new class {
4409
+ var Y = /* #__PURE__ */ new class {
4410
4410
  constructor() {
4411
4411
  this.controllers = new oo(xi, "datasets", !0), this.elements = new oo(za, "elements"), this.plugins = new oo(Object, "plugins"), this.scales = new oo(ao, "scales"), this._typedRegistries = [
4412
4412
  this.controllers,
@@ -5720,7 +5720,7 @@ var Ds = class extends za {
5720
5720
  "rgb(75, 192, 192)",
5721
5721
  "rgb(153, 102, 255)",
5722
5722
  "rgb(201, 203, 207)"
5723
- ], ks = /* @__PURE__ */ Os.map((e) => e.replace("rgb(", "rgba(").replace(")", ", 0.5)"));
5723
+ ], ks = /* #__PURE__ */ Os.map((e) => e.replace("rgb(", "rgba(").replace(")", ", 0.5)"));
5724
5724
  function As(e) {
5725
5725
  return Os[e % Os.length];
5726
5726
  }
@@ -7187,7 +7187,7 @@ var qc = {
7187
7187
  common: !0,
7188
7188
  size: 3154e7
7189
7189
  }
7190
- }, $ = /* @__PURE__ */ Object.keys(qc);
7190
+ }, $ = /* #__PURE__ */ Object.keys(qc);
7191
7191
  function Jc(e, t) {
7192
7192
  return e - t;
7193
7193
  }
@@ -7555,7 +7555,7 @@ function hl(e, t) {
7555
7555
  }
7556
7556
  });
7557
7557
  }
7558
- var gl = /* @__PURE__ */ hl("bar", Li), _l = /* @__PURE__ */ hl("line", Bi), vl = /* @__PURE__ */ hl("pie", Hi), yl = /* @__PURE__ */ e(/* @__PURE__ */ a({
7558
+ var gl = /* #__PURE__ */ hl("bar", Li), _l = /* #__PURE__ */ hl("line", Bi), vl = /* #__PURE__ */ hl("pie", Hi), yl = /*#__PURE__*/ e(/* @__PURE__ */ a({
7559
7559
  __name: "UiChart",
7560
7560
  props: {
7561
7561
  labels: {},
@@ -10,7 +10,7 @@ var d = ["data-disabled", "data-switcher"], f = [
10
10
  "data-switcher",
11
11
  "data-disabled",
12
12
  "data-error"
13
- ], m = /* @__PURE__ */ e(/* @__PURE__ */ i({
13
+ ], m = /*#__PURE__*/ e(/* @__PURE__ */ i({
14
14
  __name: "UiCheckbox",
15
15
  props: {
16
16
  initialValue: {
@@ -1,6 +1,6 @@
1
1
  import "./UiChip.css";
2
2
  import { t as e } from "../_plugin-vue_export-helper-B3ysoDQm.js";
3
- import { t } from "../UiClose-24LsZd6X.js";
3
+ import { t } from "../UiClose-CPrzLd_K.js";
4
4
  import { createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createVNode as o, defineComponent as s, normalizeClass as c, openBlock as l, renderSlot as u, unref as d } from "vue";
5
5
  //#region src/components/UiChip/icons/edit.svg
6
6
  var f = {
@@ -13,7 +13,7 @@ var f = {
13
13
  function p(e, t) {
14
14
  return l(), i("svg", f, [...t[0] ||= [a("path", { d: "M23 4a1 1 0 0 1-1 1h-3a1 1 0 0 1 0-2h3a1 1 0 0 1 1 1M2 3h8.184a3 3 0 1 1 0 2H2a1 1 0 0 1 0-2m10 1a1 1 0 1 0 1-1 1 1 0 0 0-1 1M1 12a1 1 0 0 1 1-1h4.184a3 3 0 1 1 0 2H2a1 1 0 0 1-1-1m7 0a1 1 0 1 0 1-1 1 1 0 0 0-1 1m14-1h-7a1 1 0 0 0 0 2h7a1 1 0 0 0 0-2m0 8h-5a1 1 0 0 0 0 2h5a1 1 0 0 0 0-2M1 20a1 1 0 0 1 1-1h6.184a3 3 0 1 1 0 2H2a1 1 0 0 1-1-1m9 0a1 1 0 1 0 1-1 1 1 0 0 0-1 1" }, null, -1)]]);
15
15
  }
16
- var m = { render: p }, h = "default", g = ["data-type"], _ = /* @__PURE__ */ e(/* @__PURE__ */ s({
16
+ var m = { render: p }, h = "default", g = ["data-type"], _ = /*#__PURE__*/ e(/* @__PURE__ */ s({
17
17
  __name: "UiChip",
18
18
  props: {
19
19
  type: { default: h },
@@ -1,2 +1,2 @@
1
- import { t as e } from "../UiClose-24LsZd6X.js";
1
+ import { t as e } from "../UiClose-CPrzLd_K.js";
2
2
  export { e as default };
@@ -2,7 +2,7 @@ import "./UiClose/UiClose.css";
2
2
  import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
3
3
  import { createElementBlock as t, createElementVNode as n, defineComponent as r, normalizeClass as i, openBlock as a } from "vue";
4
4
  //#region src/components/UiClose/UiClose.vue?vue&type=script&setup=true&lang.ts
5
- var o = ["data-small", "data-delete"], s = /* @__PURE__ */ e(/* @__PURE__ */ r({
5
+ var o = ["data-small", "data-delete"], s = /*#__PURE__*/ e(/* @__PURE__ */ r({
6
6
  __name: "UiClose",
7
7
  props: {
8
8
  isSmall: { type: Boolean },
@@ -2,12 +2,12 @@ import "./UiEditor.css";
2
2
  import { t as e } from "../_plugin-vue_export-helper-B3ysoDQm.js";
3
3
  import { Fragment as t, createElementBlock as n, createElementVNode as r, defineComponent as i, nextTick as a, normalizeClass as o, onBeforeUnmount as s, openBlock as c, ref as l, renderList as u, toDisplayString as d, watch as f } from "vue";
4
4
  //#region src/components/UiEditor/UiEditor.vue?vue&type=script&setup=true&lang.ts
5
- var p = ["onClick"], m = ["value"], h = /* @__PURE__ */ e(/* @__PURE__ */ i({
5
+ var p = ["onClick"], m = ["value"], h = /*#__PURE__*/ e(/* @__PURE__ */ i({
6
6
  __name: "UiEditor",
7
7
  props: { modelValue: {} },
8
8
  emits: ["update:modelValue"],
9
9
  setup(e, { emit: i }) {
10
- let h = e, g = i, _ = l(), v = l(!1), y = l(""), b = !1, x = null, S = [
10
+ let h = e, g = i, _ = l(), v = l(!1), y = l(""), b = l(!1), x = l(null), S = [
11
11
  {
12
12
  _id: 1,
13
13
  name: "b",
@@ -38,7 +38,7 @@ var p = ["onClick"], m = ["value"], h = /* @__PURE__ */ e(/* @__PURE__ */ i({
38
38
  let e = globalThis.window?.getSelection();
39
39
  if (!e || e.rangeCount === 0) return;
40
40
  let t = e.getRangeAt(0);
41
- x = {
41
+ x.value = {
42
42
  startNode: t.startContainer,
43
43
  startOffset: t.startOffset,
44
44
  endNode: t.endContainer,
@@ -46,9 +46,9 @@ var p = ["onClick"], m = ["value"], h = /* @__PURE__ */ e(/* @__PURE__ */ i({
46
46
  };
47
47
  }
48
48
  function w() {
49
- if (!x || !_.value) return;
50
- let { startNode: e, startOffset: t, endNode: n, endOffset: r } = x;
51
- if (x = null, !e || !n) return;
49
+ if (!x.value || !_.value) return;
50
+ let { startNode: e, startOffset: t, endNode: n, endOffset: r } = x.value;
51
+ if (x.value = null, !e || !n) return;
52
52
  let i = document.createRange();
53
53
  i.setStart(e, t), i.setEnd(n, r);
54
54
  let a = globalThis.window?.getSelection();
@@ -62,19 +62,16 @@ var p = ["onClick"], m = ["value"], h = /* @__PURE__ */ e(/* @__PURE__ */ i({
62
62
  if (!t || t.rangeCount === 0) return;
63
63
  let n = t.getRangeAt(0);
64
64
  if (!_.value?.contains(n.commonAncestorContainer)) return;
65
- let r = n.toString();
65
+ let r = n.toString(), i;
66
66
  if (r) {
67
- let i = document.createElement(e);
68
- i.textContent = r, n.deleteContents(), n.insertNode(i);
69
- let a = document.createRange();
70
- a.setStartAfter(i), a.collapse(!0), t.removeAllRanges(), t.addRange(a);
67
+ let t = document.createElement(e);
68
+ t.textContent = r, n.deleteContents(), n.insertNode(t), i = document.createRange(), i.setStartAfter(t);
71
69
  } else {
72
70
  n.collapse(!0);
73
- let r = document.createElement(e);
74
- n.insertNode(r);
75
- let i = document.createRange();
76
- i.setStart(r, 0), i.collapse(!0), t.removeAllRanges(), t.addRange(i);
71
+ let t = document.createElement(e);
72
+ n.insertNode(t), i = document.createRange(), i.setStart(t, 0);
77
73
  }
74
+ i.collapse(!0), t.removeAllRanges(), t.addRange(i);
78
75
  }
79
76
  function D() {
80
77
  E("b"), T(), g("update:modelValue", _.value?.innerHTML);
@@ -86,8 +83,8 @@ var p = ["onClick"], m = ["value"], h = /* @__PURE__ */ e(/* @__PURE__ */ i({
86
83
  E(e === 2 ? "h2" : "h3"), T(), g("update:modelValue", _.value?.innerHTML);
87
84
  }
88
85
  function A() {
89
- if (b) {
90
- b = !1;
86
+ if (b.value) {
87
+ b.value = !1;
91
88
  return;
92
89
  }
93
90
  g("update:modelValue", _.value?.innerHTML);
@@ -109,23 +106,24 @@ var p = ["onClick"], m = ["value"], h = /* @__PURE__ */ e(/* @__PURE__ */ i({
109
106
  function F() {
110
107
  if (!_.value) return;
111
108
  let e = _.value, t = [...e.childNodes], n = !1;
112
- for (let e of t) if (e.nodeType === Node.TEXT_NODE && e.textContent?.trim()) {
109
+ for (let e of t) {
110
+ if (e.nodeType !== Node.TEXT_NODE || !e.textContent?.trim()) continue;
113
111
  let t = document.createElement("div");
114
112
  t.append(e.cloneNode(!0)), e.replaceWith(t), n = !0;
115
113
  }
116
- (t.length === 0 || t.every((e) => e.nodeType === Node.TEXT_NODE && !e.textContent?.trim())) && (e.innerHTML = "<div><br></div>", n = !0), n && a(() => {
114
+ t.every((e) => e.nodeType === Node.TEXT_NODE && !e.textContent?.trim()) && (e.innerHTML = "<div><br></div>", n = !0), n && a(() => {
117
115
  w(), e.focus();
118
116
  });
119
117
  }
120
118
  return f(() => h.modelValue, (e) => {
121
119
  if (!_.value || _.value.innerHTML === e) return;
122
- b = !0;
120
+ b.value = !0;
123
121
  let t = document.activeElement === _.value;
124
122
  t && C(), _.value.innerHTML = e || "<div></div>", a(() => {
125
123
  t && w(), t && _.value && _.value.focus();
126
124
  });
127
125
  }), s(() => {
128
- x = null;
126
+ x.value = null;
129
127
  }), (e, i) => (c(), n("div", { class: o(e.$style.container) }, [r("div", { class: o(e.$style.actions) }, [(c(), n(t, null, u(S, (t) => r("button", {
130
128
  key: t._id,
131
129
  onClick: (e) => t.method(),
@@ -1,7 +1,7 @@
1
1
  import "./UiField.css";
2
2
  import { t as e } from "../_plugin-vue_export-helper-B3ysoDQm.js";
3
3
  import { createCommentVNode as t, createElementBlock as n, createElementVNode as r, defineComponent as i, normalizeClass as a, openBlock as o, renderSlot as s, toDisplayString as c } from "vue";
4
- var l = /* @__PURE__ */ e(/* @__PURE__ */ i({
4
+ var l = /*#__PURE__*/ e(/* @__PURE__ */ i({
5
5
  __name: "UiField",
6
6
  props: {
7
7
  label: {},
@@ -1,7 +1,7 @@
1
1
  import "./UiFlex.css";
2
2
  import { t as e } from "../_plugin-vue_export-helper-B3ysoDQm.js";
3
3
  import { computed as t, createBlock as n, defineComponent as r, normalizeClass as i, openBlock as a, renderSlot as o, resolveDynamicComponent as s, useCssVars as c, withCtx as l } from "vue";
4
- var u = /* @__PURE__ */ e(/* @__PURE__ */ r({
4
+ var u = /*#__PURE__*/ e(/* @__PURE__ */ r({
5
5
  __name: "UiFlex",
6
6
  props: {
7
7
  tag: { default: "div" },
@@ -1,2 +1,2 @@
1
- import { t as e } from "../UiInput-DfxP3_4K.js";
1
+ import { t as e } from "../UiInput-BCdtBzNw.js";
2
2
  export { e as default };
@@ -60,7 +60,7 @@ var C = { render: S }, w = ["data-mode", "tabindex"], T = [
60
60
  "data-center",
61
61
  "data-append-icon",
62
62
  "tabindex"
63
- ], E = /* @__PURE__ */ e(/* @__PURE__ */ o({
63
+ ], E = /*#__PURE__*/ e(/* @__PURE__ */ o({
64
64
  __name: "UiInput",
65
65
  props: {
66
66
  modelValue: {
@@ -1,11 +1,11 @@
1
1
  import "./UiModal.css";
2
2
  import { t as e } from "../_plugin-vue_export-helper-B3ysoDQm.js";
3
- import { t } from "../UiButton-DCQiGgkB.js";
4
- import { t as n } from "../UiClose-24LsZd6X.js";
3
+ import { t } from "../UiButton-D0BOZNZF.js";
4
+ import { t as n } from "../UiClose-CPrzLd_K.js";
5
5
  import { t as r } from "../locales-CsU1R1Is.js";
6
6
  import { Teleport as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createTextVNode as u, createVNode as d, defineComponent as f, mergeProps as p, nextTick as m, normalizeClass as h, onMounted as g, openBlock as _, renderSlot as v, shallowRef as y, toDisplayString as b, unref as x, useCssVars as S, watch as C, withCtx as w, withModifiers as T } from "vue";
7
7
  //#region src/components/UiModal/UiModal.vue?vue&type=script&setup=true&lang.ts
8
- var E = ["data-scrollable"], D = /* @__PURE__ */ e(/* @__PURE__ */ f({
8
+ var E = ["data-scrollable"], D = /*#__PURE__*/ e(/* @__PURE__ */ f({
9
9
  inheritAttrs: !1,
10
10
  __name: "UiModal",
11
11
  props: {
@@ -3,7 +3,7 @@ import { t as e } from "../_plugin-vue_export-helper-B3ysoDQm.js";
3
3
  import { t } from "../locales-CsU1R1Is.js";
4
4
  import { createElementBlock as n, createElementVNode as r, defineComponent as i, normalizeClass as a, openBlock as o, toDisplayString as s, unref as c } from "vue";
5
5
  //#region src/components/UiPagination/UiPagination.vue?vue&type=script&setup=true&lang.ts
6
- var l = ["disabled"], u = ["disabled"], d = ["disabled"], f = ["disabled"], p = /* @__PURE__ */ e(/* @__PURE__ */ i({
6
+ var l = ["disabled"], u = ["disabled"], d = ["disabled"], f = ["disabled"], p = /*#__PURE__*/ e(/* @__PURE__ */ i({
7
7
  __name: "UiPagination",
8
8
  props: {
9
9
  page: {},
@@ -10,7 +10,7 @@ var d = [
10
10
  "min",
11
11
  "max",
12
12
  "value"
13
- ], p = /* @__PURE__ */ e(/* @__PURE__ */ i({
13
+ ], p = /*#__PURE__*/ e(/* @__PURE__ */ i({
14
14
  __name: "UiRange",
15
15
  props: {
16
16
  modelValue: {},
@@ -1,6 +1,6 @@
1
1
  import "./UiSearch.css";
2
2
  import { t as e } from "../_plugin-vue_export-helper-B3ysoDQm.js";
3
- import { t } from "../UiInput-DfxP3_4K.js";
3
+ import { t } from "../UiInput-BCdtBzNw.js";
4
4
  import { t as n } from "../locales-CsU1R1Is.js";
5
5
  import { t as r } from "../dist-D_-3w5cA.js";
6
6
  import { Fragment as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createTextVNode as u, createVNode as d, defineComponent as f, normalizeClass as p, openBlock as m, renderList as h, resolveDynamicComponent as g, shallowRef as _, toDisplayString as v, unref as y, withCtx as b, withKeys as x } from "vue";
@@ -56,7 +56,7 @@ function D(e, t) {
56
56
  d: "M13.5 15.338a.5.5 0 1 0 .737-.676zm.737-.676-1.398-1.523-.737.676 1.399 1.523zM13.5 7.628c0 3.394-2.695 6.129-6 6.129v1c3.875 0 7-3.201 7-7.129zm-6 6.129c-3.305 0-6-2.735-6-6.129h-1c0 3.928 3.125 7.129 7 7.129zm-6-6.129c0-3.393 2.695-6.128 6-6.128v-1C3.625.5.5 3.7.5 7.628zm6-6.128c3.305 0 6 2.735 6 6.128h1C14.5 3.701 11.375.5 7.5.5z"
57
57
  }, null, -1)]]);
58
58
  }
59
- var O = { render: D }, k = /* @__PURE__ */ e(/* @__PURE__ */ f({
59
+ var O = { render: D }, k = /*#__PURE__*/ e(/* @__PURE__ */ f({
60
60
  __name: "UiSearch",
61
61
  props: {
62
62
  modelValue: {},
@@ -1,6 +1,6 @@
1
1
  import "./UiSelect.css";
2
2
  import { t as e } from "../_plugin-vue_export-helper-B3ysoDQm.js";
3
- import { t } from "../UiInput-DfxP3_4K.js";
3
+ import { t } from "../UiInput-BCdtBzNw.js";
4
4
  import { t as n } from "../locales-CsU1R1Is.js";
5
5
  import { t as r } from "../dist-D_-3w5cA.js";
6
6
  import { Fragment as i, computed as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createVNode as l, defineComponent as u, normalizeClass as d, openBlock as f, ref as p, renderList as m, shallowRef as h, toDisplayString as g, unref as _, withKeys as v, withModifiers as y } from "vue";
@@ -38,7 +38,7 @@ var T = { render: w }, E = { key: 0 }, D = [
38
38
  "onKeydown",
39
39
  "onMouseenter",
40
40
  "data-current"
41
- ], O = 240, k = /* @__PURE__ */ e(/* @__PURE__ */ u({
41
+ ], O = 240, k = /*#__PURE__*/ e(/* @__PURE__ */ u({
42
42
  __name: "UiSelect",
43
43
  props: {
44
44
  modelValue: { default: void 0 },
@@ -6,7 +6,7 @@ var l = ["onClick", "data-active"], u = ["src", "alt"], d = [
6
6
  "src",
7
7
  "alt",
8
8
  "data-slide"
9
- ], f = /* @__PURE__ */ e(/* @__PURE__ */ i({
9
+ ], f = /*#__PURE__*/ e(/* @__PURE__ */ i({
10
10
  __name: "UiSlider",
11
11
  props: {
12
12
  thumbs: {},
@@ -16,7 +16,7 @@ function d(e, r) {
16
16
  d: "m1 5 7.17 6L15 5"
17
17
  }, null, -1)]]);
18
18
  }
19
- var f = { render: d }, p = ["data-expanded"], m = ["data-expanded"], h = /* @__PURE__ */ e(/* @__PURE__ */ i({
19
+ var f = { render: d }, p = ["data-expanded"], m = ["data-expanded"], h = /*#__PURE__*/ e(/* @__PURE__ */ i({
20
20
  __name: "UiSpoiler",
21
21
  props: {
22
22
  modelValue: { type: Boolean },
@@ -3,7 +3,7 @@ import { t as e } from "../_plugin-vue_export-helper-B3ysoDQm.js";
3
3
  import { t } from "../locales-CsU1R1Is.js";
4
4
  import { Fragment as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, defineComponent as o, normalizeClass as s, onBeforeUnmount as c, onMounted as l, openBlock as u, renderList as d, renderSlot as f, shallowRef as p, toDisplayString as m, unref as h } from "vue";
5
5
  //#region src/components/UiTable/UiTable.vue?vue&type=script&setup=true&lang.ts
6
- var g = ["data-loading"], _ = ["onClick", "data-current"], v = ["data-current", "data-loading"], y = ["data-current", "data-loading"], b = /* @__PURE__ */ e(/* @__PURE__ */ o({
6
+ var g = ["data-loading"], _ = ["onClick", "data-current"], v = ["data-current", "data-loading"], y = ["data-current", "data-loading"], b = /*#__PURE__*/ e(/* @__PURE__ */ o({
7
7
  __name: "UiTable",
8
8
  props: {
9
9
  headers: {},
@@ -15,10 +15,9 @@ var g = ["data-loading"], _ = ["onClick", "data-current"], v = ["data-current",
15
15
  setup(e, { emit: o }) {
16
16
  let b = e, x = o, S = p(), C = p(), w = p(!1);
17
17
  function T() {
18
- if (S.value && C.value) {
19
- let e = Number(getComputedStyle(S.value).width.slice(0, -2));
20
- w.value = Number(getComputedStyle(C.value).width.slice(0, -2)) - 2 > e;
21
- }
18
+ if (!S.value || !C.value) return;
19
+ let e = Number(getComputedStyle(S.value).width.slice(0, -2));
20
+ w.value = Number(getComputedStyle(C.value).width.slice(0, -2)) - 2 > e;
22
21
  }
23
22
  function E(e) {
24
23
  b.modelValue?.value === e ? x("update:modelValue", {
@@ -27,9 +26,9 @@ var g = ["data-loading"], _ = ["onClick", "data-current"], v = ["data-current",
27
26
  }) : x("reset", e);
28
27
  }
29
28
  return l(() => {
30
- T(), window.addEventListener("resize", T, !0);
29
+ requestAnimationFrame(T), window.addEventListener("resize", T, { capture: !0 });
31
30
  }), c(() => {
32
- window.removeEventListener("resize", T, !0);
31
+ window.removeEventListener("resize", T, { capture: !0 });
33
32
  }), (e, o) => (u(), i("div", {
34
33
  class: s(e.$style.tableBlock),
35
34
  ref_key: "tableBlock",
@@ -2,7 +2,7 @@ import "./UiTabs.css";
2
2
  import { t as e } from "../_plugin-vue_export-helper-B3ysoDQm.js";
3
3
  import { Fragment as t, createElementBlock as n, defineComponent as r, normalizeClass as i, openBlock as a, renderList as o, toDisplayString as s } from "vue";
4
4
  //#region src/components/UiTabs/UiTabs.vue?vue&type=script&setup=true&lang.ts
5
- var c = ["onClick", "data-active"], l = /* @__PURE__ */ e(/* @__PURE__ */ r({
5
+ var c = ["onClick", "data-active"], l = /*#__PURE__*/ e(/* @__PURE__ */ r({
6
6
  __name: "UiTabs",
7
7
  props: {
8
8
  tabs: {},
@@ -2,7 +2,7 @@ import "./UiTextarea.css";
2
2
  import { t as e } from "../_plugin-vue_export-helper-B3ysoDQm.js";
3
3
  import { createElementBlock as t, defineComponent as n, normalizeClass as r, openBlock as i } from "vue";
4
4
  //#region src/components/UiTextarea/UiTextarea.vue?vue&type=script&setup=true&lang.ts
5
- var a = ["value", "disabled"], o = /* @__PURE__ */ e(/* @__PURE__ */ n({
5
+ var a = ["value", "disabled"], o = /*#__PURE__*/ e(/* @__PURE__ */ n({
6
6
  __name: "UiTextarea",
7
7
  props: {
8
8
  modelValue: {},
@@ -1,6 +1,6 @@
1
1
  import "./UiUpload.css";
2
2
  import { t as e } from "../_plugin-vue_export-helper-B3ysoDQm.js";
3
- import { t } from "../UiButton-DCQiGgkB.js";
3
+ import { t } from "../UiButton-D0BOZNZF.js";
4
4
  import { t as n } from "../locales-CsU1R1Is.js";
5
5
  import { Fragment as r, computed as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createStaticVNode as c, createTextVNode as l, createVNode as u, defineComponent as d, normalizeClass as f, openBlock as p, renderList as m, shallowRef as h, toDisplayString as g, unref as _, vShow as v, withCtx as y, withDirectives as b } from "vue";
6
6
  //#region src/components/UiUpload/icons/upload.svg?component
@@ -17,7 +17,7 @@ var C = { render: S }, w = 10 * 1024 * 1024;
17
17
  new File([""], "file1.png"), new File([""], "file2.png");
18
18
  //#endregion
19
19
  //#region src/components/UiUpload/UiUpload.vue?vue&type=script&setup=true&lang.ts
20
- var T = ["data-error"], E = ["accept", "multiple"], D = ["data-label"], O = /* @__PURE__ */ e(/* @__PURE__ */ d({
20
+ var T = ["data-error"], E = ["accept", "multiple"], D = ["data-label"], O = /*#__PURE__*/ e(/* @__PURE__ */ d({
21
21
  __name: "UiUpload",
22
22
  props: {
23
23
  label: { default: void 0 },
@@ -0,0 +1,10 @@
1
+ import { Component, ComponentPublicInstance } from 'vue';
2
+ import { VueWrapper } from '@vue/test-utils';
3
+ type TFilteredProps<T> = {
4
+ [K in keyof T as K extends `$${infer _U}` ? never : K extends `on${infer _V}` ? never : K]: T[K];
5
+ };
6
+ type TComponentProps<T> = Partial<TFilteredProps<ComponentPublicInstance<T>['$props']>>;
7
+ export declare function wrapperFactory<T>(component: Component<T>, props?: TComponentProps<T>, slots?: {
8
+ default: string;
9
+ }): VueWrapper<ComponentPublicInstance<T>>;
10
+ export {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mhz-ui",
3
3
  "description": "Mhz ui kit",
4
- "version": "1.4.29",
4
+ "version": "1.4.30",
5
5
  "author": "Alexandr Dergunov <dergunovs@mail.ru> (https://github.com/dergunovs)",
6
6
  "license": "MIT",
7
7
  "type": "module",
@@ -30,54 +30,54 @@
30
30
  "chart.js": "4.5.1",
31
31
  "mhz-helpers": "*",
32
32
  "perfect-debounce": "2.1.0",
33
- "vue": "3.6.0-beta.13",
33
+ "vue": "3.6.0-beta.16",
34
34
  "vue-chartjs": "5.3.3",
35
35
  "vue-router": "5.1.0"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@eslint/js": "10.0.1",
39
- "@storybook/addon-docs": "10.4.1",
40
- "@storybook/addon-themes": "10.4.1",
41
- "@storybook/vue3": "10.4.1",
42
- "@storybook/vue3-vite": "10.4.1",
43
- "@types/node": "25.9.1",
39
+ "@storybook/addon-docs": "10.4.6",
40
+ "@storybook/addon-themes": "10.4.6",
41
+ "@storybook/vue3": "10.4.6",
42
+ "@storybook/vue3-vite": "10.4.6",
43
+ "@types/node": "26.0.0",
44
44
  "@vitejs/plugin-vue": "6.0.7",
45
- "@vitest/coverage-v8": "4.1.7",
46
- "@vue/test-utils": "2.4.10",
47
- "eslint": "10.4.0",
45
+ "@vitest/coverage-v8": "4.1.9",
46
+ "@vue/test-utils": "2.4.11",
47
+ "eslint": "10.5.0",
48
48
  "eslint-config-prettier": "10.1.8",
49
- "eslint-import-resolver-typescript": "4.4.4",
49
+ "eslint-import-resolver-typescript": "4.4.5",
50
50
  "eslint-plugin-import-x": "4.16.2",
51
51
  "eslint-plugin-prettier": "5.5.6",
52
- "eslint-plugin-sonarjs": "4.0.3",
53
- "eslint-plugin-unicorn": "64.0.0",
54
- "eslint-plugin-vue": "10.9.1",
52
+ "eslint-plugin-sonarjs": "4.1.0",
53
+ "eslint-plugin-unicorn": "68.0.0",
54
+ "eslint-plugin-vue": "10.9.2",
55
55
  "globals": "17.6.0",
56
- "happy-dom": "20.9.0",
56
+ "happy-dom": "20.10.6",
57
57
  "postcss-html": "1.8.1",
58
58
  "postcss-scss": "4.0.9",
59
- "prettier": "3.8.3",
59
+ "prettier": "3.8.4",
60
60
  "sass-embedded": "1.100.0",
61
- "storybook": "10.4.1",
62
- "stylelint": "17.12.0",
61
+ "storybook": "10.4.6",
62
+ "stylelint": "17.13.0",
63
63
  "stylelint-config-recess-order": "7.7.0",
64
64
  "stylelint-config-recommended-scss": "17.0.1",
65
65
  "stylelint-config-recommended-vue": "1.6.1",
66
66
  "stylelint-order": "8.1.1",
67
67
  "stylelint-prettier": "5.0.3",
68
68
  "typescript": "6.0.3",
69
- "typescript-eslint": "8.60.0",
70
- "vite": "8.0.14",
71
- "vite-plugin-dts": "5.0.1",
72
- "vite-plugin-static-copy": "4.1.0",
69
+ "typescript-eslint": "8.61.1",
70
+ "vite": "8.0.16",
71
+ "vite-plugin-dts": "5.0.2",
72
+ "vite-plugin-static-copy": "4.1.1",
73
73
  "vite-svg-loader": "5.1.1",
74
- "vitest": "4.1.7",
75
- "vue-eslint-parser": "10.4.0",
76
- "vue-linters-config": "0.5.7",
77
- "vue-tsc": "3.3.2"
74
+ "vitest": "4.1.9",
75
+ "vue-eslint-parser": "10.4.1",
76
+ "vue-linters-config": "0.5.8",
77
+ "vue-tsc": "3.3.5"
78
78
  },
79
79
  "peerDependencies": {
80
- "vue": "3.6.0-beta.13",
80
+ "vue": "3.6.0-beta.16",
81
81
  "vue-router": "5.1.0"
82
82
  },
83
83
  "engines": {