mhz-ui 1.0.33 → 1.0.35

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 +1 @@
1
- ._breadcrumbs_1xdvy_1,._links_1xdvy_6{display:flex;gap:4px}._link_1xdvy_6{color:var(--color-gray-dark);text-decoration:none}._link_1xdvy_6[data-link=true]{color:var(--color-primary);cursor:pointer}._link_1xdvy_6[data-link=true]:hover{color:var(--color-primary-dark)}._link_1xdvy_6[data-color=white]{color:var(--color-white)}._link_1xdvy_6[data-color=white]:hover{color:var(--color-gray-light)}._slash_1xdvy_29{color:var(--color-gray-dark)}._slash_1xdvy_29[data-color=white]{color:var(--color-white)}
1
+ ._breadcrumbs_u5rgn_1{display:flex;flex-wrap:wrap;gap:4px}._links_u5rgn_7{display:flex;gap:4px}._link_u5rgn_7{color:var(--color-gray-dark);text-decoration:none}._link_u5rgn_7[data-link=true]{color:var(--color-primary);cursor:pointer}._link_u5rgn_7[data-link=true]:hover{color:var(--color-primary-dark)}._link_u5rgn_7[data-color=white]{color:var(--color-white)}._link_u5rgn_7[data-color=white]:hover{color:var(--color-gray-light)}._slash_u5rgn_30{color:var(--color-gray-dark)}._slash_u5rgn_30[data-color=white]{color:var(--color-white)}
@@ -8,7 +8,7 @@ interface IProps {
8
8
  }
9
9
  declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
10
10
  color: string;
11
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
11
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
12
12
  color: string;
13
13
  }>>>, {
14
14
  color: "default" | "white";
@@ -1,35 +1,35 @@
1
1
  import "./UiBreadcrumbs.css";
2
- import { defineComponent as m, computed as d, openBlock as s, createElementBlock as r, normalizeClass as l, Fragment as p, renderList as u, createBlock as _, resolveDynamicComponent as b, withCtx as h, createElementVNode as i, toDisplayString as k, createCommentVNode as y } from "vue";
3
- import { RouterLink as f } from "vue-router";
4
- import { _ as g } from "../_plugin-vue_export-helper-hUChTQA_.js";
5
- const v = "default", B = {
2
+ import { defineComponent as m, computed as u, openBlock as s, createElementBlock as a, normalizeClass as n, Fragment as d, renderList as p, createBlock as _, resolveDynamicComponent as b, withCtx as h, createElementVNode as l, toDisplayString as k, createCommentVNode as g } from "vue";
3
+ import { RouterLink as y } from "vue-router";
4
+ import { _ as f } from "../_plugin-vue_export-helper-hUChTQA_.js";
5
+ const B = "default", C = {
6
6
  itemprop: "name",
7
7
  "data-test": "ui-breadcrumb-title"
8
- }, C = ["data-color"], L = ["content"], $ = /* @__PURE__ */ m({
8
+ }, L = ["data-color"], $ = ["content"], v = /* @__PURE__ */ m({
9
9
  __name: "UiBreadcrumbs",
10
10
  props: {
11
11
  links: {},
12
- color: { default: v }
12
+ color: { default: B }
13
13
  },
14
- setup(n) {
15
- const t = n, c = d(() => window.IS_STORYBOOK ? "a" : f);
16
- return (o, T) => (s(), r("div", {
17
- class: l(o.$style.breadcrumbs),
14
+ setup(i) {
15
+ const t = i, c = u(() => window.IS_STORYBOOK ? "a" : y);
16
+ return (o, T) => (s(), a("div", {
17
+ class: n(o.$style.breadcrumbs),
18
18
  itemscope: "",
19
19
  itemtype: "https://schema.org/BreadcrumbList"
20
20
  }, [
21
- (s(!0), r(p, null, u(t.links, (e, a) => (s(), r("div", {
21
+ (s(!0), a(d, null, p(t.links, (e, r) => (s(), a("div", {
22
22
  key: `${e.title}${e.url}`,
23
- class: l(o.$style.links),
23
+ class: n(o.$style.links),
24
24
  itemprop: "itemListElement",
25
25
  itemscope: "",
26
26
  itemtype: "https://schema.org/ListItem",
27
27
  "data-test": "ui-breadcrumb"
28
28
  }, [
29
- (s(), _(b(a === t.links.length - 1 ? "div" : c.value), {
29
+ (s(), _(b(r === t.links.length - 1 ? "div" : c.value), {
30
30
  to: e.url,
31
- class: l(o.$style.link),
32
- "data-link": a !== t.links.length - 1,
31
+ class: n(o.$style.link),
32
+ "data-link": r !== t.links.length - 1,
33
33
  "data-color": t.color,
34
34
  itemid: e.url,
35
35
  itemtype: "https://schema.org/Thing",
@@ -38,32 +38,32 @@ const v = "default", B = {
38
38
  "data-test": "ui-breadcrumb-link"
39
39
  }, {
40
40
  default: h(() => [
41
- i("span", B, k(e.title), 1)
41
+ l("span", C, k(e.title), 1)
42
42
  ]),
43
43
  _: 2
44
44
  }, 1032, ["to", "class", "data-link", "data-color", "itemid"])),
45
- a !== t.links.length - 1 ? (s(), r("span", {
45
+ r !== t.links.length - 1 ? (s(), a("span", {
46
46
  key: 0,
47
- class: l(o.$style.slash),
47
+ class: n(o.$style.slash),
48
48
  "data-color": t.color,
49
49
  "data-test": "ui-breadcrumb-slash"
50
- }, "/", 10, C)) : y("", !0),
51
- i("meta", {
50
+ }, "/", 10, L)) : g("", !0),
51
+ l("meta", {
52
52
  itemprop: "position",
53
- content: (a + 1).toString(),
53
+ content: (r + 1).toString(),
54
54
  "data-test": "ui-breadcrumb-position"
55
- }, null, 8, L)
55
+ }, null, 8, $)
56
56
  ], 2))), 128))
57
57
  ], 2));
58
58
  }
59
- }), O = "_breadcrumbs_1xdvy_1", E = "_links_1xdvy_6", S = "_link_1xdvy_6", w = "_slash_1xdvy_29", D = {
59
+ }), O = "_breadcrumbs_u5rgn_1", E = "_links_u5rgn_7", S = "_link_u5rgn_7", w = "_slash_u5rgn_30", D = {
60
60
  breadcrumbs: O,
61
61
  links: E,
62
62
  link: S,
63
63
  slash: w
64
64
  }, R = {
65
65
  $style: D
66
- }, M = /* @__PURE__ */ g($, [["__cssModules", R]]);
66
+ }, M = /* @__PURE__ */ f(v, [["__cssModules", R]]);
67
67
  export {
68
68
  M as default
69
69
  };
@@ -9,14 +9,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
9
9
  layout: string;
10
10
  type: string;
11
11
  icon: undefined;
12
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
12
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
13
13
  layout: string;
14
14
  type: string;
15
15
  icon: undefined;
16
16
  }>>>, {
17
17
  type: "button" | "submit";
18
18
  layout: "primary" | "secondary" | "plain" | "accent" | "gradient";
19
- icon: FunctionalComponent<{}, {}, any>;
19
+ icon: FunctionalComponent<{}, {}, any, {}>;
20
20
  }, {}>, {
21
21
  default?(_: {}): any;
22
22
  }>;
@@ -19,7 +19,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
19
19
  error: boolean;
20
20
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
21
21
  "update:modelValue": (...args: any[]) => void;
22
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
22
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
23
23
  modelValue: boolean;
24
24
  initialValue: boolean;
25
25
  label: string;
@@ -3,7 +3,7 @@ interface IProps {
3
3
  }
4
4
  declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<IProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
5
5
  "update:modelValue": (...args: any[]) => void;
6
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<IProps>>> & {
6
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<IProps>>> & {
7
7
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
8
8
  }, {}, {}>;
9
9
  export default _default;
@@ -3,7 +3,7 @@ interface IProps {
3
3
  error?: string | false;
4
4
  isRequired?: boolean;
5
5
  }
6
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<IProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<IProps>>>, {}, {}>, {
6
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<IProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<IProps>>>, {}, {}>, {
7
7
  default?(_: {}): any;
8
8
  }>;
9
9
  export default _default;
@@ -15,7 +15,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
15
15
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
16
16
  "update:modelValue": (...args: any[]) => void;
17
17
  toggle: (...args: any[]) => void;
18
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
18
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
19
19
  modelValue: string;
20
20
  mode: string;
21
21
  appendIcon: undefined;
@@ -25,7 +25,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
25
25
  }, {
26
26
  modelValue: string | number | boolean | null;
27
27
  mode: "default" | "select";
28
- appendIcon: FunctionalComponent<{}, {}, any>;
28
+ appendIcon: FunctionalComponent<{}, {}, any, {}>;
29
29
  }, {}>;
30
30
  export default _default;
31
31
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -5,7 +5,7 @@ interface IProps {
5
5
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<IProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
6
  "update:modelValue": (...args: any[]) => void;
7
7
  confirm: (...args: any[]) => void;
8
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<IProps>>> & {
8
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<IProps>>> & {
9
9
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
10
10
  onConfirm?: ((...args: any[]) => any) | undefined;
11
11
  }, {}, {}>, {
@@ -4,7 +4,7 @@ interface IProps {
4
4
  }
5
5
  declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<IProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
6
  update: (...args: any[]) => void;
7
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<IProps>>> & {
7
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<IProps>>> & {
8
8
  onUpdate?: ((...args: any[]) => any) | undefined;
9
9
  }, {}, {}>;
10
10
  export default _default;
@@ -5,7 +5,7 @@ interface IProps {
5
5
  }
6
6
  declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<IProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
7
  "update:modelValue": (...args: any[]) => void;
8
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<IProps>>> & {
8
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<IProps>>> & {
9
9
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
10
10
  }, {}, {}>;
11
11
  export default _default;
@@ -1 +1 @@
1
- ._container_gyho3_1{position:relative;width:320px}._results_gyho3_6{position:absolute;z-index:2;display:flex;flex-direction:column;gap:8px;width:100%;max-height:320px;padding:16px;margin-top:8px;overflow-y:auto;background-color:var(--color-white);border-radius:16px;box-shadow:0 0 16px -8px var(--color-black-transparent)}._resultsInner_gyho3_22{display:flex;flex-direction:column;gap:4px}._resultsInner_gyho3_22:empty{display:none}._type_gyho3_31{font-weight:700;text-transform:capitalize}._link_gyho3_36{display:flex;gap:4px;text-decoration:none}@media (max-width: 1260px){._container_gyho3_1{width:280px}}
1
+ ._container_1xgvk_1{position:relative;width:320px}._results_1xgvk_6{position:absolute;z-index:2;display:flex;flex-direction:column;gap:8px;width:100%;max-height:320px;padding:16px;margin-top:8px;overflow-y:auto;background-color:var(--color-white);border-radius:16px;box-shadow:0 0 16px -8px var(--color-black-transparent)}._resultsInner_1xgvk_22{display:flex;flex-direction:column;gap:4px}._resultsInner_1xgvk_22:empty{display:none}._type_1xgvk_31{font-weight:700;text-transform:capitalize}._link_1xgvk_36{display:flex;gap:4px;text-decoration:none}@media (max-width: 1260px){._container_1xgvk_1{width:280px}}@media (max-width: 1260px){._container_1xgvk_1{width:100%}}
@@ -15,7 +15,7 @@ interface IProps {
15
15
  }
16
16
  declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<IProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
17
17
  "update:modelValue": (...args: any[]) => void;
18
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<IProps>>> & {
18
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<IProps>>> & {
19
19
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
20
20
  }, {}, {}>;
21
21
  export default _default;
@@ -1,51 +1,51 @@
1
1
  import "./UiSearch.css";
2
- import { openBlock as s, createElementBlock as n, createElementVNode as R, defineComponent as T, ref as I, computed as O, normalizeClass as g, createVNode as b, withKeys as B, unref as S, Fragment as i, createTextVNode as E, toDisplayString as k, createCommentVNode as f, renderList as C, createBlock as L, resolveDynamicComponent as U, withCtx as $ } from "vue";
2
+ import { openBlock as s, createElementBlock as n, createElementVNode as R, defineComponent as T, ref as I, computed as O, normalizeClass as k, createVNode as b, withKeys as B, unref as v, Fragment as i, createTextVNode as E, toDisplayString as g, createCommentVNode as f, renderList as C, createBlock as L, resolveDynamicComponent as U, withCtx as $ } from "vue";
3
3
  import { RouterLink as z } from "vue-router";
4
- import { o as M } from "../index-K7sDhNvk.js";
5
- import D from "../UiInput/UiInput.js";
6
- import { _ as F } from "../_plugin-vue_export-helper-hUChTQA_.js";
7
- const P = {
4
+ import { o as M } from "../index-kWqQ1zUA.js";
5
+ import x from "../UiInput/UiInput.js";
6
+ import { _ as D } from "../_plugin-vue_export-helper-hUChTQA_.js";
7
+ const F = {
8
8
  trailing: !0
9
9
  };
10
- function A(d, a = 25, e = {}) {
11
- if (e = { ...P, ...e }, !Number.isFinite(a))
10
+ function P(d, a = 25, e = {}) {
11
+ if (e = { ...F, ...e }, !Number.isFinite(a))
12
12
  throw new TypeError("Expected `wait` to be a finite number");
13
- let m, l, _ = [], r, h;
14
- const u = (o, c) => (r = K(d, o, c), r.finally(() => {
15
- if (r = null, e.trailing && h && !l) {
16
- const p = u(o, h);
17
- return h = null, p;
13
+ let m, l, _ = [], r, p;
14
+ const u = (o, c) => (r = A(d, o, c), r.finally(() => {
15
+ if (r = null, e.trailing && p && !l) {
16
+ const h = u(o, p);
17
+ return p = null, h;
18
18
  }
19
19
  }), r);
20
20
  return function(...o) {
21
- return r ? (e.trailing && (h = o), r) : new Promise((c) => {
22
- const p = !l && e.leading;
21
+ return r ? (e.trailing && (p = o), r) : new Promise((c) => {
22
+ const h = !l && e.leading;
23
23
  clearTimeout(l), l = setTimeout(() => {
24
24
  l = null;
25
- const V = e.leading ? m : u(this, o);
25
+ const S = e.leading ? m : u(this, o);
26
26
  for (const t of _)
27
- t(V);
27
+ t(S);
28
28
  _ = [];
29
- }, a), p ? (m = u(this, o), c(m)) : _.push(c);
29
+ }, a), h ? (m = u(this, o), c(m)) : _.push(c);
30
30
  });
31
31
  };
32
32
  }
33
- async function K(d, a, e) {
33
+ async function A(d, a, e) {
34
34
  return await d.apply(a, e);
35
35
  }
36
- const Y = {
36
+ const K = {
37
37
  xmlns: "http://www.w3.org/2000/svg",
38
38
  width: "16",
39
39
  height: "16",
40
40
  fill: "none"
41
- }, j = /* @__PURE__ */ R("path", {
41
+ }, Y = /* @__PURE__ */ R("path", {
42
42
  fill: "#dfdfdf",
43
43
  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"
44
- }, null, -1), x = [
45
- j
44
+ }, null, -1), j = [
45
+ Y
46
46
  ];
47
47
  function G(d, a) {
48
- return s(), n("svg", Y, [...x]);
48
+ return s(), n("svg", K, [...j]);
49
49
  }
50
50
  const q = { render: G }, H = "Please enter 3 or more symbols", J = "Loading...", Q = "No results", W = 300, X = /* @__PURE__ */ T({
51
51
  __name: "UiSearch",
@@ -57,13 +57,13 @@ const q = { render: G }, H = "Please enter 3 or more symbols", J = "Loading...",
57
57
  },
58
58
  emits: ["update:modelValue"],
59
59
  setup(d, { emit: a }) {
60
- const e = d, m = a, l = I(!1), _ = A(async (t) => {
60
+ const e = d, m = a, l = I(!1), _ = P(async (t) => {
61
61
  m("update:modelValue", t);
62
62
  }, W);
63
63
  async function r(t) {
64
64
  await _(t);
65
65
  }
66
- function h() {
66
+ function p() {
67
67
  l.value = !0;
68
68
  }
69
69
  function u() {
@@ -72,61 +72,61 @@ const q = { render: G }, H = "Please enter 3 or more symbols", J = "Loading...",
72
72
  function o() {
73
73
  u(), m("update:modelValue", "");
74
74
  }
75
- const c = O(() => e.results ? Object.values(e.results).reduce((t, w) => t + (w ? w.length : 0), 0) : !1), p = I();
76
- M(p, () => {
75
+ const c = O(() => e.results ? Object.values(e.results).reduce((t, V) => t + (V ? V.length : 0), 0) : !1), h = I();
76
+ M(h, () => {
77
77
  u();
78
78
  });
79
- const V = O(() => window.IS_STORYBOOK ? "a" : z);
80
- return (t, w) => (s(), n("div", {
81
- class: g(t.$style.container),
79
+ const S = O(() => window.IS_STORYBOOK ? "a" : z);
80
+ return (t, V) => (s(), n("div", {
81
+ class: k(t.$style.container),
82
82
  ref_key: "containerElement",
83
- ref: p
83
+ ref: h
84
84
  }, [
85
- b(D, {
85
+ b(x, {
86
86
  modelValue: e.modelValue,
87
87
  "onUpdate:modelValue": r,
88
- onClick: h,
88
+ onClick: p,
89
89
  onKeyup: B(u, ["esc"]),
90
- appendIcon: S(q),
90
+ appendIcon: v(q),
91
91
  placeholder: "Search",
92
92
  "data-test": "ui-search"
93
93
  }, null, 8, ["modelValue", "appendIcon"]),
94
94
  l.value && e.modelValue.length ? (s(), n("div", {
95
95
  key: 0,
96
- class: g(t.$style.results),
96
+ class: k(t.$style.results),
97
97
  "data-test": "ui-search-results"
98
98
  }, [
99
99
  e.modelValue.length < 3 ? (s(), n(i, { key: 0 }, [
100
- E(k(S(H)), 1)
100
+ E(g(v(H)), 1)
101
101
  ], 64)) : f("", !0),
102
102
  e.modelValue.length > 2 && !e.isSuccess ? (s(), n(i, { key: 1 }, [
103
- E(k(S(J)), 1)
103
+ E(g(v(J)), 1)
104
104
  ], 64)) : f("", !0),
105
105
  e.modelValue.length > 2 && !c.value && e.isSuccess ? (s(), n(i, { key: 2 }, [
106
- E(k(S(Q)), 1)
106
+ E(g(v(Q)), 1)
107
107
  ], 64)) : f("", !0),
108
108
  e.modelValue.length > 2 && c.value && e.isSuccess ? (s(!0), n(i, { key: 3 }, C(e.searchScheme, (y) => (s(), n("div", {
109
109
  key: y.type,
110
- class: g(t.$style.resultsInner),
110
+ class: k(t.$style.resultsInner),
111
111
  "data-test": "ui-search-result"
112
112
  }, [
113
113
  t.results?.[y.type]?.length ? (s(), n(i, { key: 0 }, [
114
114
  R("div", {
115
- class: g(t.$style.type),
115
+ class: k(t.$style.type),
116
116
  "data-test": "ui-search-result-type"
117
- }, k(y.type) + ":", 3),
118
- (s(!0), n(i, null, C(t.results[y.type], (v) => (s(), L(U(V.value), {
119
- key: v._id,
120
- to: `${y.url}/${v._id}`,
117
+ }, g(y.type) + ":", 3),
118
+ (s(!0), n(i, null, C(t.results[y.type], (w) => (s(), L(U(S.value), {
119
+ key: w._id,
120
+ to: `${y.url}/${w._id}`,
121
121
  onClick: o,
122
- class: g(t.$style.link),
122
+ class: k(t.$style.link),
123
123
  "data-test": "ui-search-result-link"
124
124
  }, {
125
125
  default: $(() => [
126
126
  (s(!0), n(i, null, C(y.labels, (N) => (s(), n("span", {
127
127
  key: N,
128
128
  "data-test": "ui-search-result-label"
129
- }, k(v[N]), 1))), 128))
129
+ }, g(w[N]), 1))), 128))
130
130
  ]),
131
131
  _: 2
132
132
  }, 1032, ["to", "class"]))), 128))
@@ -135,7 +135,7 @@ const q = { render: G }, H = "Please enter 3 or more symbols", J = "Loading...",
135
135
  ], 2)) : f("", !0)
136
136
  ], 2));
137
137
  }
138
- }), Z = "_container_gyho3_1", ee = "_results_gyho3_6", te = "_resultsInner_gyho3_22", se = "_type_gyho3_31", ne = "_link_gyho3_36", le = {
138
+ }), Z = "_container_1xgvk_1", ee = "_results_1xgvk_6", te = "_resultsInner_1xgvk_22", se = "_type_1xgvk_31", ne = "_link_1xgvk_36", le = {
139
139
  container: Z,
140
140
  results: ee,
141
141
  resultsInner: te,
@@ -143,7 +143,7 @@ const q = { render: G }, H = "Please enter 3 or more symbols", J = "Loading...",
143
143
  link: ne
144
144
  }, re = {
145
145
  $style: le
146
- }, de = /* @__PURE__ */ F(X, [["__cssModules", re]]);
146
+ }, de = /* @__PURE__ */ D(X, [["__cssModules", re]]);
147
147
  export {
148
148
  de as default
149
149
  };
@@ -10,7 +10,7 @@ interface IProps {
10
10
  declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<IProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
11
11
  "update:modelValue": (...args: any[]) => void;
12
12
  reachedBottom: (...args: any[]) => void;
13
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<IProps>>> & {
13
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<IProps>>> & {
14
14
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
15
15
  onReachedBottom?: ((...args: any[]) => any) | undefined;
16
16
  }, {}, {}>;
@@ -1,6 +1,6 @@
1
1
  import "./UiSelect.css";
2
2
  import { openBlock as l, createElementBlock as s, createElementVNode as L, defineComponent as S, ref as a, computed as b, normalizeClass as d, createVNode as j, unref as O, createCommentVNode as B, Fragment as M, renderList as N, withKeys as p, toDisplayString as U } from "vue";
3
- import { o as K } from "../index-K7sDhNvk.js";
3
+ import { o as K } from "../index-kWqQ1zUA.js";
4
4
  import I from "../UiInput/UiInput.js";
5
5
  import { _ as R } from "../_plugin-vue_export-helper-hUChTQA_.js";
6
6
  const T = {
@@ -3,7 +3,7 @@ interface IProps {
3
3
  slides: string[];
4
4
  path?: string;
5
5
  }
6
- declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<IProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<IProps>>>, {}, {}>;
6
+ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<IProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<IProps>>>, {}, {}>;
7
7
  export default _default;
8
8
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
9
9
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -4,7 +4,7 @@ interface IProps {
4
4
  }
5
5
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<IProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
6
  "update:modelValue": (...args: any[]) => void;
7
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<IProps>>> & {
7
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<IProps>>> & {
8
8
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
9
9
  }, {}, {}>, {
10
10
  default?(_: {}): any;
@@ -13,7 +13,7 @@ interface IProps {
13
13
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<IProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
14
14
  reset: (...args: any[]) => void;
15
15
  "update:modelValue": (...args: any[]) => void;
16
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<IProps>>> & {
16
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<IProps>>> & {
17
17
  onReset?: ((...args: any[]) => any) | undefined;
18
18
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
19
19
  }, {}, {}>, {
@@ -18,7 +18,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
18
18
  add: (...args: any[]) => void;
19
19
  remove: (...args: any[]) => void;
20
20
  upload: (...args: any[]) => void;
21
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
21
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
22
22
  label: undefined;
23
23
  error: undefined;
24
24
  file: undefined;
@@ -7,7 +7,7 @@ function g(t) {
7
7
  }
8
8
  const A = typeof window < "u" && typeof document < "u";
9
9
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
10
- const I = Object.prototype.toString, L = (t) => I.call(t) === "[object Object]", h = () => {
10
+ const I = Object.prototype.toString, L = (t) => I.call(t) === "[object Object]", w = () => {
11
11
  }, W = /* @__PURE__ */ _();
12
12
  function _() {
13
13
  var t, r;
@@ -19,10 +19,10 @@ function f(t) {
19
19
  return (r = i?.$el) != null ? r : i;
20
20
  }
21
21
  const E = A ? window : void 0;
22
- function v(...t) {
22
+ function h(...t) {
23
23
  let r, i, o, a;
24
24
  if (typeof t[0] == "string" || Array.isArray(t[0]) ? ([i, o, a] = t, r = E) : [r, i, o, a] = t, !r)
25
- return h;
25
+ return w;
26
26
  Array.isArray(i) || (i = [i]), Array.isArray(o) || (o = [o]);
27
27
  const d = [], p = () => {
28
28
  d.forEach((c) => c()), d.length = 0;
@@ -37,17 +37,17 @@ function v(...t) {
37
37
  );
38
38
  },
39
39
  { immediate: !0, flush: "post" }
40
- ), w = () => {
40
+ ), v = () => {
41
41
  m(), p();
42
42
  };
43
- return P(w), w;
43
+ return P(v), v;
44
44
  }
45
45
  let y = !1;
46
46
  function C(t, r, i = {}) {
47
47
  const { window: o = E, ignore: a = [], capture: d = !0, detectIframe: p = !1 } = i;
48
48
  if (!o)
49
- return;
50
- W && !y && (y = !0, Array.from(o.document.body.children).forEach((e) => e.addEventListener("click", h)), o.document.documentElement.addEventListener("click", h));
49
+ return w;
50
+ W && !y && (y = !0, Array.from(o.document.body.children).forEach((e) => e.addEventListener("click", w)), o.document.documentElement.addEventListener("click", w));
51
51
  let l = !0;
52
52
  const m = (e) => a.some((n) => {
53
53
  if (typeof n == "string")
@@ -57,7 +57,7 @@ function C(t, r, i = {}) {
57
57
  return s && (e.target === s || e.composedPath().includes(s));
58
58
  }
59
59
  }), c = [
60
- v(o, "click", (e) => {
60
+ h(o, "click", (e) => {
61
61
  const n = f(t);
62
62
  if (!(!n || n === e.target || e.composedPath().includes(n))) {
63
63
  if (e.detail === 0 && (l = !m(e)), !l) {
@@ -67,11 +67,11 @@ function C(t, r, i = {}) {
67
67
  r(e);
68
68
  }
69
69
  }, { passive: !0, capture: d }),
70
- v(o, "pointerdown", (e) => {
70
+ h(o, "pointerdown", (e) => {
71
71
  const n = f(t);
72
72
  l = !m(e) && !!(n && !e.composedPath().includes(n));
73
73
  }, { passive: !0 }),
74
- p && v(o, "blur", (e) => {
74
+ p && h(o, "blur", (e) => {
75
75
  setTimeout(() => {
76
76
  var n;
77
77
  const s = f(t);
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.33",
4
+ "version": "1.0.35",
5
5
  "author": "Alexandr Dergunov <dergunovs@mail.ru> (https://github.com/dergunovs)",
6
6
  "license": "MIT",
7
7
  "type": "module",
@@ -28,10 +28,10 @@
28
28
  "@tiptap/starter-kit": "2.1.13",
29
29
  "@tiptap/vue-3": "2.1.13",
30
30
  "@vueform/slider": "2.1.10",
31
- "@vueuse/core": "10.7.0",
32
- "@vueuse/integrations": "10.7.0",
31
+ "@vueuse/core": "10.7.1",
32
+ "@vueuse/integrations": "10.7.1",
33
33
  "perfect-debounce": "1.0.0",
34
- "vue": "3.3.13",
34
+ "vue": "3.4.1",
35
35
  "vue-router": "4.2.5"
36
36
  },
37
37
  "devDependencies": {
@@ -43,17 +43,17 @@
43
43
  "@storybook/preview-api": "7.6.6",
44
44
  "@storybook/vue3": "7.6.6",
45
45
  "@storybook/vue3-vite": "7.6.6",
46
- "@types/node": "20.10.5",
47
- "@typescript-eslint/eslint-plugin": "6.15.0",
48
- "@typescript-eslint/parser": "6.15.0",
49
- "@vitejs/plugin-vue": "4.5.2",
46
+ "@types/node": "20.10.6",
47
+ "@typescript-eslint/eslint-plugin": "6.16.0",
48
+ "@typescript-eslint/parser": "6.16.0",
49
+ "@vitejs/plugin-vue": "5.0.1",
50
50
  "@vitest/coverage-v8": "1.1.0",
51
51
  "@vue/test-utils": "2.4.3",
52
52
  "eslint": "8.56.0",
53
53
  "eslint-config-prettier": "9.1.0",
54
54
  "eslint-import-resolver-typescript": "3.6.1",
55
55
  "eslint-plugin-import": "2.29.1",
56
- "eslint-plugin-prettier": "5.1.0",
56
+ "eslint-plugin-prettier": "5.1.2",
57
57
  "eslint-plugin-vue": "9.19.2",
58
58
  "happy-dom": "12.10.3",
59
59
  "postcss-html": "1.5.0",
@@ -61,24 +61,24 @@
61
61
  "prettier": "3.1.1",
62
62
  "react": "18.2.0",
63
63
  "react-dom": "18.2.0",
64
- "sass": "1.69.5",
64
+ "sass": "1.69.6",
65
65
  "storybook": "7.6.6",
66
- "stylelint": "16.0.2",
66
+ "stylelint": "16.1.0",
67
67
  "stylelint-config-recess-order": "4.4.0",
68
68
  "stylelint-config-recommended-scss": "14.0.0",
69
69
  "stylelint-config-recommended-vue": "1.5.0",
70
70
  "stylelint-prettier": "5.0.0",
71
71
  "typescript": "5.3.3",
72
72
  "vite": "5.0.10",
73
- "vite-plugin-dts": "3.6.4",
73
+ "vite-plugin-dts": "3.7.0",
74
74
  "vite-plugin-static-copy": "1.0.0",
75
75
  "vite-svg-loader": "5.1.0",
76
76
  "vitest": "1.1.0",
77
77
  "vue-linters-config": "0.1.13",
78
- "vue-tsc": "1.8.25"
78
+ "vue-tsc": "1.8.27"
79
79
  },
80
80
  "peerDependencies": {
81
- "vue": "3.3.13",
81
+ "vue": "3.4.1",
82
82
  "vue-router": "4.2.5"
83
83
  },
84
84
  "engines": {