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.
- package/dist/UiBreadcrumbs/UiBreadcrumbs.css +1 -1
- package/dist/UiBreadcrumbs/UiBreadcrumbs.d.ts +1 -1
- package/dist/UiBreadcrumbs/UiBreadcrumbs.js +24 -24
- package/dist/UiButton/UiButton.d.ts +2 -2
- package/dist/UiCheckbox/UiCheckbox.d.ts +1 -1
- package/dist/UiEditor/UiEditor.d.ts +1 -1
- package/dist/UiField/UiField.d.ts +1 -1
- package/dist/UiInput/UiInput.d.ts +2 -2
- package/dist/UiModal/UiModal.d.ts +1 -1
- package/dist/UiPagination/UiPagination.d.ts +1 -1
- package/dist/UiRange/UiRange.d.ts +1 -1
- package/dist/UiSearch/UiSearch.css +1 -1
- package/dist/UiSearch/UiSearch.d.ts +1 -1
- package/dist/UiSearch/UiSearch.js +48 -48
- package/dist/UiSelect/UiSelect.d.ts +1 -1
- package/dist/UiSelect/UiSelect.js +1 -1
- package/dist/UiSlider/UiSlider.d.ts +1 -1
- package/dist/UiSpoiler/UiSpoiler.d.ts +1 -1
- package/dist/UiTable/UiTable.d.ts +1 -1
- package/dist/UiUpload/UiUpload.d.ts +1 -1
- package/dist/{index-K7sDhNvk.js → index-kWqQ1zUA.js} +10 -10
- package/package.json +14 -14
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
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").
|
|
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
|
|
3
|
-
import { RouterLink as
|
|
4
|
-
import { _ as
|
|
5
|
-
const
|
|
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
|
-
},
|
|
8
|
+
}, L = ["data-color"], $ = ["content"], v = /* @__PURE__ */ m({
|
|
9
9
|
__name: "UiBreadcrumbs",
|
|
10
10
|
props: {
|
|
11
11
|
links: {},
|
|
12
|
-
color: { default:
|
|
12
|
+
color: { default: B }
|
|
13
13
|
},
|
|
14
|
-
setup(
|
|
15
|
-
const t =
|
|
16
|
-
return (o, T) => (s(),
|
|
17
|
-
class:
|
|
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),
|
|
21
|
+
(s(!0), a(d, null, p(t.links, (e, r) => (s(), a("div", {
|
|
22
22
|
key: `${e.title}${e.url}`,
|
|
23
|
-
class:
|
|
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(
|
|
29
|
+
(s(), _(b(r === t.links.length - 1 ? "div" : c.value), {
|
|
30
30
|
to: e.url,
|
|
31
|
-
class:
|
|
32
|
-
"data-link":
|
|
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
|
-
|
|
41
|
+
l("span", C, k(e.title), 1)
|
|
42
42
|
]),
|
|
43
43
|
_: 2
|
|
44
44
|
}, 1032, ["to", "class", "data-link", "data-color", "itemid"])),
|
|
45
|
-
|
|
45
|
+
r !== t.links.length - 1 ? (s(), a("span", {
|
|
46
46
|
key: 0,
|
|
47
|
-
class:
|
|
47
|
+
class: n(o.$style.slash),
|
|
48
48
|
"data-color": t.color,
|
|
49
49
|
"data-test": "ui-breadcrumb-slash"
|
|
50
|
-
}, "/", 10,
|
|
51
|
-
|
|
50
|
+
}, "/", 10, L)) : g("", !0),
|
|
51
|
+
l("meta", {
|
|
52
52
|
itemprop: "position",
|
|
53
|
-
content: (
|
|
53
|
+
content: (r + 1).toString(),
|
|
54
54
|
"data-test": "ui-breadcrumb-position"
|
|
55
|
-
}, null, 8,
|
|
55
|
+
}, null, 8, $)
|
|
56
56
|
], 2))), 128))
|
|
57
57
|
], 2));
|
|
58
58
|
}
|
|
59
|
-
}), O = "
|
|
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__ */
|
|
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").
|
|
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").
|
|
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").
|
|
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").
|
|
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").
|
|
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").
|
|
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").
|
|
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").
|
|
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
|
-
.
|
|
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").
|
|
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
|
|
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-
|
|
5
|
-
import
|
|
6
|
-
import { _ as
|
|
7
|
-
const
|
|
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
|
|
11
|
-
if (e = { ...
|
|
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,
|
|
14
|
-
const u = (o, c) => (r =
|
|
15
|
-
if (r = null, e.trailing &&
|
|
16
|
-
const
|
|
17
|
-
return
|
|
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 && (
|
|
22
|
-
const
|
|
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
|
|
25
|
+
const S = e.leading ? m : u(this, o);
|
|
26
26
|
for (const t of _)
|
|
27
|
-
t(
|
|
27
|
+
t(S);
|
|
28
28
|
_ = [];
|
|
29
|
-
}, a),
|
|
29
|
+
}, a), h ? (m = u(this, o), c(m)) : _.push(c);
|
|
30
30
|
});
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
|
-
async function
|
|
33
|
+
async function A(d, a, e) {
|
|
34
34
|
return await d.apply(a, e);
|
|
35
35
|
}
|
|
36
|
-
const
|
|
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
|
-
},
|
|
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),
|
|
45
|
-
|
|
44
|
+
}, null, -1), j = [
|
|
45
|
+
Y
|
|
46
46
|
];
|
|
47
47
|
function G(d, a) {
|
|
48
|
-
return s(), n("svg",
|
|
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), _ =
|
|
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
|
|
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,
|
|
76
|
-
M(
|
|
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
|
|
80
|
-
return (t,
|
|
81
|
-
class:
|
|
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:
|
|
83
|
+
ref: h
|
|
84
84
|
}, [
|
|
85
|
-
b(
|
|
85
|
+
b(x, {
|
|
86
86
|
modelValue: e.modelValue,
|
|
87
87
|
"onUpdate:modelValue": r,
|
|
88
|
-
onClick:
|
|
88
|
+
onClick: p,
|
|
89
89
|
onKeyup: B(u, ["esc"]),
|
|
90
|
-
appendIcon:
|
|
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:
|
|
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(
|
|
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(
|
|
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(
|
|
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:
|
|
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:
|
|
115
|
+
class: k(t.$style.type),
|
|
116
116
|
"data-test": "ui-search-result-type"
|
|
117
|
-
},
|
|
118
|
-
(s(!0), n(i, null, C(t.results[y.type], (
|
|
119
|
-
key:
|
|
120
|
-
to: `${y.url}/${
|
|
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:
|
|
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
|
-
},
|
|
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 = "
|
|
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__ */
|
|
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").
|
|
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-
|
|
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").
|
|
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").
|
|
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").
|
|
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").
|
|
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]",
|
|
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
|
|
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
|
|
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
|
-
),
|
|
40
|
+
), v = () => {
|
|
41
41
|
m(), p();
|
|
42
42
|
};
|
|
43
|
-
return P(
|
|
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",
|
|
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
|
-
|
|
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
|
-
|
|
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 &&
|
|
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.
|
|
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.
|
|
32
|
-
"@vueuse/integrations": "10.7.
|
|
31
|
+
"@vueuse/core": "10.7.1",
|
|
32
|
+
"@vueuse/integrations": "10.7.1",
|
|
33
33
|
"perfect-debounce": "1.0.0",
|
|
34
|
-
"vue": "3.
|
|
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.
|
|
47
|
-
"@typescript-eslint/eslint-plugin": "6.
|
|
48
|
-
"@typescript-eslint/parser": "6.
|
|
49
|
-
"@vitejs/plugin-vue": "
|
|
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.
|
|
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.
|
|
64
|
+
"sass": "1.69.6",
|
|
65
65
|
"storybook": "7.6.6",
|
|
66
|
-
"stylelint": "16.0
|
|
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.
|
|
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.
|
|
78
|
+
"vue-tsc": "1.8.27"
|
|
79
79
|
},
|
|
80
80
|
"peerDependencies": {
|
|
81
|
-
"vue": "3.
|
|
81
|
+
"vue": "3.4.1",
|
|
82
82
|
"vue-router": "4.2.5"
|
|
83
83
|
},
|
|
84
84
|
"engines": {
|