mhz-ui 1.4.28 → 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.
Files changed (54) hide show
  1. package/dist/UiBreadcrumbs/UiBreadcrumbs.d.ts +1 -1
  2. package/dist/UiBreadcrumbs/UiBreadcrumbs.js +2 -2
  3. package/dist/UiButton/UiButton.d.ts +6 -11
  4. package/dist/UiButton/UiButton.js +1 -1
  5. package/dist/{UiButton-DGcBst9r.js → UiButton-D0BOZNZF.js} +2 -2
  6. package/dist/UiButtongroup/UiButtongroup.d.ts +1 -1
  7. package/dist/UiButtongroup/UiButtongroup.js +2 -2
  8. package/dist/UiCalendar/UiCalendar.d.ts +1 -1
  9. package/dist/UiCalendar/UiCalendar.js +2 -2
  10. package/dist/UiChart/UiChart.d.ts +1 -1
  11. package/dist/UiChart/UiChart.js +9 -11
  12. package/dist/UiCheckbox/UiCheckbox.d.ts +1 -3
  13. package/dist/UiCheckbox/UiCheckbox.js +2 -2
  14. package/dist/UiChip/UiChip.d.ts +6 -11
  15. package/dist/UiChip/UiChip.js +3 -3
  16. package/dist/UiClose/UiClose.d.ts +1 -1
  17. package/dist/UiClose/UiClose.js +1 -1
  18. package/dist/{UiClose-Bgqb7IM4.js → UiClose-CPrzLd_K.js} +2 -2
  19. package/dist/UiEditor/UiEditor.d.ts +1 -3
  20. package/dist/UiEditor/UiEditor.js +20 -22
  21. package/dist/UiField/UiField.d.ts +6 -11
  22. package/dist/UiField/UiField.js +2 -2
  23. package/dist/UiFlex/UiFlex.d.ts +5 -10
  24. package/dist/UiFlex/UiFlex.js +2 -2
  25. package/dist/UiInput/UiInput.d.ts +1 -3
  26. package/dist/UiInput/UiInput.js +1 -1
  27. package/dist/{UiInput-CAMyX2OI.js → UiInput-BCdtBzNw.js} +2 -2
  28. package/dist/UiModal/UiModal.d.ts +6 -15
  29. package/dist/UiModal/UiModal.js +5 -5
  30. package/dist/UiPagination/UiPagination.d.ts +1 -1
  31. package/dist/UiPagination/UiPagination.js +3 -3
  32. package/dist/UiRange/UiRange.d.ts +1 -4
  33. package/dist/UiRange/UiRange.js +2 -2
  34. package/dist/UiSearch/UiSearch.d.ts +1 -3
  35. package/dist/UiSearch/UiSearch.js +5 -5
  36. package/dist/UiSelect/UiSelect.d.ts +1 -6
  37. package/dist/UiSelect/UiSelect.js +5 -5
  38. package/dist/UiSlider/UiSlider.d.ts +1 -1
  39. package/dist/UiSlider/UiSlider.js +2 -2
  40. package/dist/UiSpoiler/UiSpoiler.d.ts +6 -11
  41. package/dist/UiSpoiler/UiSpoiler.js +2 -2
  42. package/dist/UiTable/UiTable.d.ts +6 -17
  43. package/dist/UiTable/UiTable.js +8 -9
  44. package/dist/UiTabs/UiTabs.d.ts +1 -1
  45. package/dist/UiTabs/UiTabs.js +2 -2
  46. package/dist/UiTextarea/UiTextarea.d.ts +1 -1
  47. package/dist/UiTextarea/UiTextarea.js +2 -2
  48. package/dist/UiUpload/UiUpload.d.ts +1 -3
  49. package/dist/UiUpload/UiUpload.js +4 -4
  50. package/dist/{dist-edEKabqb.js → dist-D_-3w5cA.js} +3 -2
  51. package/dist/src/test.d.ts +10 -0
  52. package/package.json +35 -35
  53. /package/dist/{_plugin-vue_export-helper-BTgDAbhb.js → _plugin-vue_export-helper-B3ysoDQm.js} +0 -0
  54. /package/dist/{locales-CBs_KfVd.js → locales-CsU1R1Is.js} +0 -0
@@ -10,5 +10,5 @@ interface IProps {
10
10
  declare const _default: import('vue').DefineComponent<IProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<IProps> & Readonly<{}>, {
11
11
  color: "white" | "default";
12
12
  ariaLabel: string;
13
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
13
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
14
14
  export default _default;
@@ -1,9 +1,9 @@
1
1
  import "./UiBreadcrumbs.css";
2
- import { t as e } from "../_plugin-vue_export-helper-BTgDAbhb.js";
2
+ 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: {},
@@ -10,24 +10,19 @@ interface IProps {
10
10
  icon?: FunctionalComponent;
11
11
  ariaLabel?: string;
12
12
  }
13
- declare function __VLS_template(): {
14
- attrs: Partial<{}>;
15
- slots: {
16
- default?(_: {}): any;
17
- };
18
- refs: {};
19
- rootEl: HTMLButtonElement;
13
+ declare var __VLS_5: {};
14
+ type __VLS_Slots = {} & {
15
+ default?: (props: typeof __VLS_5) => any;
20
16
  };
21
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
22
17
  declare const __VLS_component: import('vue').DefineComponent<IProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<IProps> & Readonly<{}>, {
23
18
  ariaLabel: string;
24
19
  type: "submit" | "button";
25
20
  layout: "primary" | "secondary" | "plain" | "accent" | "gradient";
26
21
  icon: FunctionalComponent;
27
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLButtonElement>;
28
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
22
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
23
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
29
24
  export default _default;
30
- type __VLS_WithTemplateSlots<T, S> = T & {
25
+ type __VLS_WithSlots<T, S> = T & {
31
26
  new (): {
32
27
  $slots: S;
33
28
  };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../UiButton-DGcBst9r.js";
1
+ import { t as e } from "../UiButton-D0BOZNZF.js";
2
2
  export { e as default };
@@ -1,5 +1,5 @@
1
1
  import "./UiButton/UiButton.css";
2
- import { t as e } from "./_plugin-vue_export-helper-BTgDAbhb.js";
2
+ import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
3
3
  import { createBlock as t, createCommentVNode as n, createElementBlock as r, defineComponent as i, normalizeClass as a, openBlock as o, renderSlot as s, resolveDynamicComponent as c } from "vue";
4
4
  //#region src/components/UiButton/constants/index.ts
5
5
  var l = "primary", u = "button", d = "Button", f = [
@@ -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 },
@@ -9,5 +9,5 @@ declare const _default: import('vue').DefineComponent<IProps, {}, {}, {}, {}, im
9
9
  "update:modelValue": (options: number) => any;
10
10
  }, string, import('vue').PublicProps, Readonly<IProps> & Readonly<{
11
11
  "onUpdate:modelValue"?: ((options: number) => any) | undefined;
12
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
12
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
13
13
  export default _default;
@@ -1,12 +1,12 @@
1
1
  import "./UiButtongroup.css";
2
- import { t as e } from "../_plugin-vue_export-helper-BTgDAbhb.js";
2
+ import { t as e } from "../_plugin-vue_export-helper-B3ysoDQm.js";
3
3
  import { Fragment as t, createCommentVNode as n, createElementBlock as r, createElementVNode as i, defineComponent as a, normalizeClass as o, openBlock as s, renderList as c, toDisplayString as l } from "vue";
4
4
  //#region src/components/UiButtongroup/UiButtongroup.vue?vue&type=script&setup=true&lang.ts
5
5
  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: {},
@@ -16,5 +16,5 @@ declare const _default: import('vue').DefineComponent<IProps, {}, {}, {}, {}, im
16
16
  }>, {
17
17
  events: ICalendarEvent<unknown>[];
18
18
  lang: TLocale;
19
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
19
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
20
20
  export default _default;
@@ -1,8 +1,8 @@
1
1
  import "./UiCalendar.css";
2
- import { t as e } from "../_plugin-vue_export-helper-BTgDAbhb.js";
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 },
@@ -14,5 +14,5 @@ interface IProps {
14
14
  declare const _default: import('vue').DefineComponent<IProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<IProps> & Readonly<{}>, {
15
15
  title: string;
16
16
  type: "Bar" | "Pie" | "Line";
17
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
17
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
18
18
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import "./UiChart.css";
2
- import { t as e } from "../_plugin-vue_export-helper-BTgDAbhb.js";
2
+ import { t as e } from "../_plugin-vue_export-helper-B3ysoDQm.js";
3
3
  import { computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, defineComponent as a, h as o, isProxy as s, nextTick as c, normalizeClass as l, onMounted as u, onUnmounted as d, openBlock as f, ref as p, resolveDynamicComponent as m, shallowRef as h, toDisplayString as g, toRaw as _, version as v, watch as y } from "vue";
4
4
  //#region ../../node_modules/@kurkle/color/dist/color.esm.js
5
5
  function b(e) {
@@ -804,12 +804,10 @@ var Rt = (e) => e === 0 || e === 1, zt = (e, t, n) => -(2 ** (10 * --e) * Math.s
804
804
  return Rt(e) ? e : e < .5 ? .5 * zt(e * 2, t, n) : .5 + .5 * Bt(e * 2 - 1, t, n);
805
805
  },
806
806
  easeInBack(e) {
807
- let t = 1.70158;
808
- return e * e * ((t + 1) * e - t);
807
+ return e * e * (2.70158 * e - 1.70158);
809
808
  },
810
809
  easeOutBack(e) {
811
- let t = 1.70158;
812
- return --e * e * ((t + 1) * e + t) + 1;
810
+ return --e * e * (2.70158 * e + 1.70158) + 1;
813
811
  },
814
812
  easeInOutBack(e) {
815
813
  let t = 1.70158;
@@ -1020,7 +1018,7 @@ function an(e, t) {
1020
1018
  function on(e, t, n) {
1021
1019
  return typeof t == "string" ? We(an(e, t), n) : We(an(e, ""), t);
1022
1020
  }
1023
- var G = /* @__PURE__ */ new class {
1021
+ var G = /* #__PURE__ */ new class {
1024
1022
  constructor(e, t) {
1025
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 = [
1026
1024
  "mousemove",
@@ -1848,7 +1846,7 @@ function Jr(e, t) {
1848
1846
  bottom: n.bottom === !1 ? e.height : r.bottom + (n.bottom === !0 ? 0 : n.bottom)
1849
1847
  };
1850
1848
  }
1851
- var Yr = /* @__PURE__ */ new class {
1849
+ var Yr = /* #__PURE__ */ new class {
1852
1850
  constructor() {
1853
1851
  this._request = null, this._charts = /* @__PURE__ */ new Map(), this._running = !1, this._lastDate = void 0;
1854
1852
  }
@@ -4408,7 +4406,7 @@ function co(e, t) {
4408
4406
  function lo(e) {
4409
4407
  return "id" in e && "defaults" in e;
4410
4408
  }
4411
- var Y = /* @__PURE__ */ new class {
4409
+ var Y = /* #__PURE__ */ new class {
4412
4410
  constructor() {
4413
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 = [
4414
4412
  this.controllers,
@@ -5722,7 +5720,7 @@ var Ds = class extends za {
5722
5720
  "rgb(75, 192, 192)",
5723
5721
  "rgb(153, 102, 255)",
5724
5722
  "rgb(201, 203, 207)"
5725
- ], 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)"));
5726
5724
  function As(e) {
5727
5725
  return Os[e % Os.length];
5728
5726
  }
@@ -7189,7 +7187,7 @@ var qc = {
7189
7187
  common: !0,
7190
7188
  size: 3154e7
7191
7189
  }
7192
- }, $ = /* @__PURE__ */ Object.keys(qc);
7190
+ }, $ = /* #__PURE__ */ Object.keys(qc);
7193
7191
  function Jc(e, t) {
7194
7192
  return e - t;
7195
7193
  }
@@ -7557,7 +7555,7 @@ function hl(e, t) {
7557
7555
  }
7558
7556
  });
7559
7557
  }
7560
- 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({
7561
7559
  __name: "UiChart",
7562
7560
  props: {
7563
7561
  labels: {},
@@ -21,7 +21,5 @@ declare const _default: import('vue').DefineComponent<IProps, {}, {}, {}, {}, im
21
21
  initialValue: TInitialValue;
22
22
  labelSub: string;
23
23
  labelSwitcher: string;
24
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
25
- checkbox: HTMLInputElement;
26
- }, HTMLLabelElement>;
24
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
27
25
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import "./UiCheckbox.css";
2
- import { t as e } from "../_plugin-vue_export-helper-BTgDAbhb.js";
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, shallowRef as s, toDisplayString as c, withKeys as l, withModifiers as u } from "vue";
4
4
  //#region src/components/UiCheckbox/UiCheckbox.vue?vue&type=script&setup=true&lang.ts
5
5
  var d = ["data-disabled", "data-switcher"], f = [
@@ -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: {
@@ -3,15 +3,10 @@ interface IProps {
3
3
  isEdit?: boolean;
4
4
  isDelete?: boolean;
5
5
  }
6
- declare function __VLS_template(): {
7
- attrs: Partial<{}>;
8
- slots: {
9
- default?(_: {}): any;
10
- };
11
- refs: {};
12
- rootEl: HTMLDivElement;
6
+ declare var __VLS_1: {};
7
+ type __VLS_Slots = {} & {
8
+ default?: (props: typeof __VLS_1) => any;
13
9
  };
14
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
15
10
  declare const __VLS_component: import('vue').DefineComponent<IProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
16
11
  delete: () => any;
17
12
  edit: () => any;
@@ -20,10 +15,10 @@ declare const __VLS_component: import('vue').DefineComponent<IProps, {}, {}, {},
20
15
  onEdit?: (() => any) | undefined;
21
16
  }>, {
22
17
  type: "default" | "success" | "error";
23
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
24
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
18
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
19
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
25
20
  export default _default;
26
- type __VLS_WithTemplateSlots<T, S> = T & {
21
+ type __VLS_WithSlots<T, S> = T & {
27
22
  new (): {
28
23
  $slots: S;
29
24
  };
@@ -1,6 +1,6 @@
1
1
  import "./UiChip.css";
2
- import { t as e } from "../_plugin-vue_export-helper-BTgDAbhb.js";
3
- import { t } from "../UiClose-Bgqb7IM4.js";
2
+ import { t as e } from "../_plugin-vue_export-helper-B3ysoDQm.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 },
@@ -2,5 +2,5 @@ interface IProps {
2
2
  isSmall?: boolean;
3
3
  isDelete?: boolean;
4
4
  }
5
- declare const _default: import('vue').DefineComponent<IProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<IProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLButtonElement>;
5
+ declare const _default: import('vue').DefineComponent<IProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<IProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
6
6
  export default _default;
@@ -1,2 +1,2 @@
1
- import { t as e } from "../UiClose-Bgqb7IM4.js";
1
+ import { t as e } from "../UiClose-CPrzLd_K.js";
2
2
  export { e as default };
@@ -1,8 +1,8 @@
1
1
  import "./UiClose/UiClose.css";
2
- import { t as e } from "./_plugin-vue_export-helper-BTgDAbhb.js";
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 },
@@ -5,7 +5,5 @@ declare const _default: import('vue').DefineComponent<IProps, {}, {}, {}, {}, im
5
5
  "update:modelValue": (value?: string | undefined) => any;
6
6
  }, string, import('vue').PublicProps, Readonly<IProps> & Readonly<{
7
7
  "onUpdate:modelValue"?: ((value?: string | undefined) => any) | undefined;
8
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
9
- editorRef: HTMLDivElement;
10
- }, HTMLDivElement>;
8
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
11
9
  export default _default;
@@ -1,13 +1,13 @@
1
1
  import "./UiEditor.css";
2
- import { t as e } from "../_plugin-vue_export-helper-BTgDAbhb.js";
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(),
@@ -3,19 +3,14 @@ interface IProps {
3
3
  error?: string | false;
4
4
  isRequired?: boolean;
5
5
  }
6
- declare function __VLS_template(): {
7
- attrs: Partial<{}>;
8
- slots: {
9
- default?(_: {}): any;
10
- };
11
- refs: {};
12
- rootEl: HTMLDivElement;
6
+ declare var __VLS_1: {};
7
+ type __VLS_Slots = {} & {
8
+ default?: (props: typeof __VLS_1) => any;
13
9
  };
14
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
15
- declare const __VLS_component: import('vue').DefineComponent<IProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<IProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
16
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
10
+ declare const __VLS_component: import('vue').DefineComponent<IProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<IProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
11
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
17
12
  export default _default;
18
- type __VLS_WithTemplateSlots<T, S> = T & {
13
+ type __VLS_WithSlots<T, S> = T & {
19
14
  new (): {
20
15
  $slots: S;
21
16
  };
@@ -1,7 +1,7 @@
1
1
  import "./UiField.css";
2
- import { t as e } from "../_plugin-vue_export-helper-BTgDAbhb.js";
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: {},
@@ -6,24 +6,19 @@ interface IProps {
6
6
  wrap?: boolean;
7
7
  gap?: string;
8
8
  }
9
- declare function __VLS_template(): {
10
- attrs: Partial<{}>;
11
- slots: {
12
- default?(_: {}): any;
13
- };
14
- refs: {};
15
- rootEl: any;
9
+ declare var __VLS_6: {};
10
+ type __VLS_Slots = {} & {
11
+ default?: (props: typeof __VLS_6) => any;
16
12
  };
17
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
18
13
  declare const __VLS_component: import('vue').DefineComponent<IProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<IProps> & Readonly<{}>, {
19
14
  align: "normal" | "stretch" | "center" | "flex-start" | "flex-end";
20
15
  tag: "div" | "span" | "form";
21
16
  justify: "normal" | "stretch" | "center" | "flex-start" | "flex-end" | "space-between" | "space-around" | "space-evenly";
22
17
  gap: string;
23
18
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
24
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
19
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
25
20
  export default _default;
26
- type __VLS_WithTemplateSlots<T, S> = T & {
21
+ type __VLS_WithSlots<T, S> = T & {
27
22
  new (): {
28
23
  $slots: S;
29
24
  };
@@ -1,7 +1,7 @@
1
1
  import "./UiFlex.css";
2
- import { t as e } from "../_plugin-vue_export-helper-BTgDAbhb.js";
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" },
@@ -21,7 +21,5 @@ declare const _default: import('vue').DefineComponent<IProps, {}, {}, {}, {}, im
21
21
  modelValue: string | number | boolean | null;
22
22
  mode: "default" | "select";
23
23
  appendIcon: FunctionalComponent;
24
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
25
- input: HTMLInputElement;
26
- }, HTMLDivElement>;
24
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
27
25
  export default _default;
@@ -1,2 +1,2 @@
1
- import { t as e } from "../UiInput-CAMyX2OI.js";
1
+ import { t as e } from "../UiInput-BCdtBzNw.js";
2
2
  export { e as default };
@@ -1,5 +1,5 @@
1
1
  import "./UiInput/UiInput.css";
2
- import { t as e } from "./_plugin-vue_export-helper-BTgDAbhb.js";
2
+ import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
3
3
  import { computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, defineComponent as o, mergeProps as s, nextTick as c, normalizeClass as l, onMounted as u, openBlock as d, resolveDynamicComponent as f, shallowRef as p, withKeys as m } from "vue";
4
4
  //#region src/components/UiInput/icons/copy.svg?component
5
5
  var h = {
@@ -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: {
@@ -6,17 +6,10 @@ interface IProps {
6
6
  width?: string;
7
7
  lang?: TLocale;
8
8
  }
9
- declare function __VLS_template(): {
10
- attrs: Partial<{}>;
11
- slots: {
12
- default?(_: {}): any;
13
- };
14
- refs: {
15
- dialogRef: HTMLDialogElement;
16
- };
17
- rootEl: any;
9
+ declare var __VLS_12: {};
10
+ type __VLS_Slots = {} & {
11
+ default?: (props: typeof __VLS_12) => any;
18
12
  };
19
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
20
13
  declare const __VLS_component: import('vue').DefineComponent<IProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
21
14
  "update:modelValue": (value: boolean) => any;
22
15
  confirm: () => any;
@@ -26,12 +19,10 @@ declare const __VLS_component: import('vue').DefineComponent<IProps, {}, {}, {},
26
19
  }>, {
27
20
  lang: TLocale;
28
21
  width: string;
29
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
30
- dialogRef: HTMLDialogElement;
31
- }, any>;
32
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
22
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
23
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
33
24
  export default _default;
34
- type __VLS_WithTemplateSlots<T, S> = T & {
25
+ type __VLS_WithSlots<T, S> = T & {
35
26
  new (): {
36
27
  $slots: S;
37
28
  };
@@ -1,11 +1,11 @@
1
1
  import "./UiModal.css";
2
- import { t as e } from "../_plugin-vue_export-helper-BTgDAbhb.js";
3
- import { t } from "../UiButton-DGcBst9r.js";
4
- import { t as n } from "../UiClose-Bgqb7IM4.js";
5
- import { t as r } from "../locales-CBs_KfVd.js";
2
+ import { t as e } from "../_plugin-vue_export-helper-B3ysoDQm.js";
3
+ import { t } from "../UiButton-D0BOZNZF.js";
4
+ import { t as n } from "../UiClose-CPrzLd_K.js";
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: {
@@ -10,5 +10,5 @@ declare const _default: import('vue').DefineComponent<IProps, {}, {}, {}, {}, im
10
10
  onUpdate?: ((value: number) => any) | undefined;
11
11
  }>, {
12
12
  lang: TLocale;
13
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
13
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
14
14
  export default _default;
@@ -1,9 +1,9 @@
1
1
  import "./UiPagination.css";
2
- import { t as e } from "../_plugin-vue_export-helper-BTgDAbhb.js";
3
- import { t } from "../locales-CBs_KfVd.js";
2
+ import { t as e } from "../_plugin-vue_export-helper-B3ysoDQm.js";
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: {},
@@ -7,8 +7,5 @@ declare const _default: import('vue').DefineComponent<IProps, {}, {}, {}, {}, im
7
7
  "update:modelValue": (value: [number, number]) => any;
8
8
  }, string, import('vue').PublicProps, Readonly<IProps> & Readonly<{
9
9
  "onUpdate:modelValue"?: ((value: [number, number]) => any) | undefined;
10
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
11
- minInputRef: HTMLInputElement;
12
- maxInputRef: HTMLInputElement;
13
- }, HTMLDivElement>;
10
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
14
11
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import "./UiRange.css";
2
- import { t as e } from "../_plugin-vue_export-helper-BTgDAbhb.js";
2
+ import { t as e } from "../_plugin-vue_export-helper-B3ysoDQm.js";
3
3
  import { computed as t, createElementBlock as n, createElementVNode as r, defineComponent as i, normalizeClass as a, normalizeStyle as o, openBlock as s, ref as c, toDisplayString as l, watch as u } from "vue";
4
4
  //#region src/components/UiRange/UiRange.vue?vue&type=script&setup=true&lang.ts
5
5
  var d = [
@@ -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: {},
@@ -26,7 +26,5 @@ declare const _default: import('vue').DefineComponent<IProps, {}, {}, {}, {}, im
26
26
  _id: string;
27
27
  }[];
28
28
  };
29
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
30
- containerElement: HTMLDivElement;
31
- }, HTMLDivElement>;
29
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
32
30
  export default _default;
@@ -1,8 +1,8 @@
1
1
  import "./UiSearch.css";
2
- import { t as e } from "../_plugin-vue_export-helper-BTgDAbhb.js";
3
- import { t } from "../UiInput-CAMyX2OI.js";
4
- import { t as n } from "../locales-CBs_KfVd.js";
5
- import { t as r } from "../dist-edEKabqb.js";
2
+ import { t as e } from "../_plugin-vue_export-helper-B3ysoDQm.js";
3
+ import { t } from "../UiInput-BCdtBzNw.js";
4
+ import { t as n } from "../locales-CsU1R1Is.js";
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";
7
7
  import { RouterLink as S } from "vue-router";
8
8
  //#region ../../node_modules/perfect-debounce/dist/index.mjs
@@ -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: {},
@@ -23,10 +23,5 @@ declare const _default: import('vue').DefineComponent<IProps, {}, {}, {}, {}, im
23
23
  modelValue: string | number | IOption | null;
24
24
  options: string[] | number[] | IOption[];
25
25
  lang: TLocale;
26
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
27
- containerElement: HTMLDivElement;
28
- optionsElement: HTMLDivElement;
29
- optionsInnerElement: HTMLDivElement;
30
- optionElement: HTMLDivElement[];
31
- }, HTMLDivElement>;
26
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
32
27
  export default _default;
@@ -1,8 +1,8 @@
1
1
  import "./UiSelect.css";
2
- import { t as e } from "../_plugin-vue_export-helper-BTgDAbhb.js";
3
- import { t } from "../UiInput-CAMyX2OI.js";
4
- import { t as n } from "../locales-CBs_KfVd.js";
5
- import { t as r } from "../dist-edEKabqb.js";
2
+ import { t as e } from "../_plugin-vue_export-helper-B3ysoDQm.js";
3
+ import { t } from "../UiInput-BCdtBzNw.js";
4
+ import { t as n } from "../locales-CsU1R1Is.js";
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";
7
7
  //#region src/components/UiSelect/icons/closed.svg?component
8
8
  var b = {
@@ -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 },
@@ -3,5 +3,5 @@ interface IProps {
3
3
  slides: string[];
4
4
  path?: string;
5
5
  }
6
- declare const _default: import('vue').DefineComponent<IProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<IProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
6
+ declare const _default: import('vue').DefineComponent<IProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<IProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
7
7
  export default _default;
@@ -1,12 +1,12 @@
1
1
  import "./UiSlider.css";
2
- import { t as e } from "../_plugin-vue_export-helper-BTgDAbhb.js";
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, normalizeClass as a, openBlock as o, renderList as s, shallowRef as c } from "vue";
4
4
  //#region src/components/UiSlider/UiSlider.vue?vue&type=script&setup=true&lang.ts
5
5
  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: {},
@@ -2,23 +2,18 @@ interface IProps {
2
2
  modelValue: boolean;
3
3
  title: string;
4
4
  }
5
- declare function __VLS_template(): {
6
- attrs: Partial<{}>;
7
- slots: {
8
- default?(_: {}): any;
9
- };
10
- refs: {};
11
- rootEl: HTMLDivElement;
5
+ declare var __VLS_5: {};
6
+ type __VLS_Slots = {} & {
7
+ default?: (props: typeof __VLS_5) => any;
12
8
  };
13
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
14
9
  declare const __VLS_component: import('vue').DefineComponent<IProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
15
10
  "update:modelValue": (value: boolean) => any;
16
11
  }, string, import('vue').PublicProps, Readonly<IProps> & Readonly<{
17
12
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
18
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
19
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
13
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
14
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
20
15
  export default _default;
21
- type __VLS_WithTemplateSlots<T, S> = T & {
16
+ type __VLS_WithSlots<T, S> = T & {
22
17
  new (): {
23
18
  $slots: S;
24
19
  };
@@ -1,5 +1,5 @@
1
1
  import "./UiSpoiler.css";
2
- import { t as e } from "../_plugin-vue_export-helper-BTgDAbhb.js";
2
+ import { t as e } from "../_plugin-vue_export-helper-B3ysoDQm.js";
3
3
  import { createElementBlock as t, createElementVNode as n, createVNode as r, defineComponent as i, normalizeClass as a, openBlock as o, renderSlot as s, toDisplayString as c, unref as l } from "vue";
4
4
  //#region src/components/UiSpoiler/icons/arrow.svg?component
5
5
  var u = {
@@ -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 },
@@ -13,18 +13,10 @@ interface IProps {
13
13
  isLoading?: boolean;
14
14
  lang?: TLocale;
15
15
  }
16
- declare function __VLS_template(): {
17
- attrs: Partial<{}>;
18
- slots: {
19
- default?(_: {}): any;
20
- };
21
- refs: {
22
- tableBlock: HTMLDivElement;
23
- table: HTMLTableElement;
24
- };
25
- rootEl: HTMLDivElement;
16
+ declare var __VLS_1: {};
17
+ type __VLS_Slots = {} & {
18
+ default?: (props: typeof __VLS_1) => any;
26
19
  };
27
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
28
20
  declare const __VLS_component: import('vue').DefineComponent<IProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
29
21
  reset: (value: string) => any;
30
22
  "update:modelValue": (value: IModelValue) => any;
@@ -34,13 +26,10 @@ declare const __VLS_component: import('vue').DefineComponent<IProps, {}, {}, {},
34
26
  }>, {
35
27
  modelValue: IModelValue;
36
28
  lang: TLocale;
37
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
38
- tableBlock: HTMLDivElement;
39
- table: HTMLTableElement;
40
- }, HTMLDivElement>;
41
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
29
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
30
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
42
31
  export default _default;
43
- type __VLS_WithTemplateSlots<T, S> = T & {
32
+ type __VLS_WithSlots<T, S> = T & {
44
33
  new (): {
45
34
  $slots: S;
46
35
  };
@@ -1,9 +1,9 @@
1
1
  import "./UiTable.css";
2
- import { t as e } from "../_plugin-vue_export-helper-BTgDAbhb.js";
3
- import { t } from "../locales-CBs_KfVd.js";
2
+ import { t as e } from "../_plugin-vue_export-helper-B3ysoDQm.js";
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",
@@ -10,5 +10,5 @@ declare const _default: import('vue').DefineComponent<IProps, {}, {}, {}, {}, im
10
10
  "update:modelValue": (value: string) => any;
11
11
  }, string, import('vue').PublicProps, Readonly<IProps> & Readonly<{
12
12
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
13
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
13
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
14
14
  export default _default;
@@ -1,8 +1,8 @@
1
1
  import "./UiTabs.css";
2
- import { t as e } from "../_plugin-vue_export-helper-BTgDAbhb.js";
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: {},
@@ -6,5 +6,5 @@ declare const _default: import('vue').DefineComponent<IProps, {}, {}, {}, {}, im
6
6
  "update:modelValue": (value: string) => any;
7
7
  }, string, import('vue').PublicProps, Readonly<IProps> & Readonly<{
8
8
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
9
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLTextAreaElement>;
9
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
10
10
  export default _default;
@@ -1,8 +1,8 @@
1
1
  import "./UiTextarea.css";
2
- import { t as e } from "../_plugin-vue_export-helper-BTgDAbhb.js";
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: {},
@@ -30,7 +30,5 @@ declare const _default: import('vue').DefineComponent<IProps, {}, {}, {}, {}, im
30
30
  extensions: string[];
31
31
  limit: number;
32
32
  uploadButtonText: string;
33
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
34
- input: HTMLInputElement;
35
- }, HTMLDivElement>;
33
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
36
34
  export default _default;
@@ -1,7 +1,7 @@
1
1
  import "./UiUpload.css";
2
- import { t as e } from "../_plugin-vue_export-helper-BTgDAbhb.js";
3
- import { t } from "../UiButton-DGcBst9r.js";
4
- import { t as n } from "../locales-CBs_KfVd.js";
2
+ import { t as e } from "../_plugin-vue_export-helper-B3ysoDQm.js";
3
+ import { t } from "../UiButton-D0BOZNZF.js";
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
7
7
  var x = {
@@ -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 },
@@ -94,8 +94,9 @@ function g(e, n, r = {}) {
94
94
  }, { passive: !0 }),
95
95
  l && m(i, "blur", (t) => {
96
96
  setTimeout(() => {
97
- let r = p(e);
98
- i.document.activeElement?.tagName === "IFRAME" && !r?.contains(i.document.activeElement) && n(t);
97
+ let r = p(e), a = i.document.activeElement;
98
+ for (; a?.shadowRoot;) a = a.shadowRoot.activeElement;
99
+ a?.tagName === "IFRAME" && !r?.contains(i.document.activeElement) && n(t);
99
100
  }, 0);
100
101
  }, { passive: !0 })
101
102
  ].filter(Boolean), S = () => x.forEach((e) => e());
@@ -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.28",
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",
@@ -25,60 +25,60 @@
25
25
  "test:cov": "NODE_OPTIONS='--no-experimental-webstorage' vitest run --coverage"
26
26
  },
27
27
  "dependencies": {
28
- "@vueuse/core": "14.2.1",
29
- "@vueuse/integrations": "14.2.1",
28
+ "@vueuse/core": "14.3.0",
29
+ "@vueuse/integrations": "14.3.0",
30
30
  "chart.js": "4.5.1",
31
31
  "mhz-helpers": "*",
32
32
  "perfect-debounce": "2.1.0",
33
- "vue": "3.6.0-beta.10",
33
+ "vue": "3.6.0-beta.16",
34
34
  "vue-chartjs": "5.3.3",
35
- "vue-router": "5.0.6"
35
+ "vue-router": "5.1.0"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@eslint/js": "10.0.1",
39
- "@storybook/addon-docs": "10.3.5",
40
- "@storybook/addon-themes": "10.3.5",
41
- "@storybook/vue3": "10.3.5",
42
- "@storybook/vue3-vite": "10.3.5",
43
- "@types/node": "25.6.0",
44
- "@vitejs/plugin-vue": "6.0.6",
45
- "@vitest/coverage-v8": "4.1.5",
46
- "@vue/test-utils": "2.4.8",
47
- "eslint": "10.2.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
+ "@vitejs/plugin-vue": "6.0.7",
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
- "eslint-plugin-prettier": "5.5.5",
52
- "eslint-plugin-sonarjs": "4.0.3",
53
- "eslint-plugin-unicorn": "64.0.0",
54
- "eslint-plugin-vue": "10.9.0",
55
- "globals": "17.5.0",
56
- "happy-dom": "20.9.0",
51
+ "eslint-plugin-prettier": "5.5.6",
52
+ "eslint-plugin-sonarjs": "4.1.0",
53
+ "eslint-plugin-unicorn": "68.0.0",
54
+ "eslint-plugin-vue": "10.9.2",
55
+ "globals": "17.6.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",
60
- "sass-embedded": "1.99.0",
61
- "storybook": "10.3.5",
62
- "stylelint": "17.9.0",
59
+ "prettier": "3.8.4",
60
+ "sass-embedded": "1.100.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.59.0",
70
- "vite": "8.0.10",
71
- "vite-plugin-dts": "4.5.4",
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.5",
75
- "vue-eslint-parser": "10.4.0",
76
- "vue-linters-config": "0.5.7",
77
- "vue-tsc": "3.2.7"
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.10",
81
- "vue-router": "5.0.6"
80
+ "vue": "3.6.0-beta.16",
81
+ "vue-router": "5.1.0"
82
82
  },
83
83
  "engines": {
84
84
  "npm": ">=11.7.0",