mhz-ui 1.2.16 → 1.2.18
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/UiCalendar/UiCalendar.d.ts +2 -1
- package/dist/UiCalendar/interface/index.d.ts +0 -1
- package/dist/UiModal/UiModal.css +1 -1
- package/dist/UiModal/UiModal.d.ts +1 -1
- package/dist/UiModal/UiModal.js +13 -13
- package/dist/UiPagination/UiPagination.d.ts +1 -1
- package/dist/UiSearch/UiSearch.d.ts +1 -1
- package/dist/UiSelect/UiSelect.d.ts +1 -1
- package/dist/UiSelect/UiSelect.js +57 -57
- package/dist/UiTable/UiTable.d.ts +1 -1
- package/dist/UiUpload/UiUpload.d.ts +1 -1
- package/dist/UiUpload/UiUpload.js +4 -4
- package/dist/locales/types.d.ts +1 -0
- package/package.json +2 -2
- package/dist/UiBreadcrumbs/UiBreadcrumbs.spec.d.ts +0 -1
- package/dist/UiBreadcrumbs/UiBreadcrumbs.stories.d.ts +0 -6
- package/dist/UiBreadcrumbs/constants/index.d.ts +0 -6
- package/dist/UiButton/UiButton.spec.d.ts +0 -1
- package/dist/UiButton/UiButton.stories.d.ts +0 -7
- package/dist/UiButton/constants/index.d.ts +0 -5
- package/dist/UiCalendar/UiCalendar.spec.d.ts +0 -1
- package/dist/UiCalendar/UiCalendar.stories.d.ts +0 -6
- package/dist/UiCalendar/constants/index.d.ts +0 -2
- package/dist/UiChart/UiChart.spec.d.ts +0 -1
- package/dist/UiChart/UiChart.stories.d.ts +0 -6
- package/dist/UiChart/constants/index.d.ts +0 -9
- package/dist/UiCheckbox/UiCheckbox.spec.d.ts +0 -1
- package/dist/UiCheckbox/UiCheckbox.stories.d.ts +0 -6
- package/dist/UiCheckbox/constants/index.d.ts +0 -2
- package/dist/UiChip/UiChip.spec.d.ts +0 -1
- package/dist/UiChip/UiChip.stories.d.ts +0 -6
- package/dist/UiChip/constants/index.d.ts +0 -2
- package/dist/UiChoice/UiChoice.spec.d.ts +0 -1
- package/dist/UiChoice/UiChoice.stories.d.ts +0 -6
- package/dist/UiChoice/constants/index.d.ts +0 -5
- package/dist/UiClose/UiClose.spec.d.ts +0 -1
- package/dist/UiClose/UiClose.stories.d.ts +0 -6
- package/dist/UiEditor/UiEditor.spec.d.ts +0 -1
- package/dist/UiEditor/UiEditor.stories.d.ts +0 -6
- package/dist/UiEditor/constants/index.d.ts +0 -1
- package/dist/UiField/UiField.spec.d.ts +0 -1
- package/dist/UiField/UiField.stories.d.ts +0 -6
- package/dist/UiField/constants/index.d.ts +0 -3
- package/dist/UiFlex/UiFlex.spec.d.ts +0 -1
- package/dist/UiFlex/UiFlex.stories.d.ts +0 -6
- package/dist/UiFlex/constants/index.d.ts +0 -6
- package/dist/UiInput/UiInput.spec.d.ts +0 -1
- package/dist/UiInput/UiInput.stories.d.ts +0 -6
- package/dist/UiInput/constants/index.d.ts +0 -1
- package/dist/UiModal/UiModal.spec.d.ts +0 -1
- package/dist/UiModal/UiModal.stories.d.ts +0 -6
- package/dist/UiModal/constants/index.d.ts +0 -3
- package/dist/UiPagination/UiPagination.spec.d.ts +0 -1
- package/dist/UiPagination/UiPagination.stories.d.ts +0 -6
- package/dist/UiPagination/constants/index.d.ts +0 -2
- package/dist/UiRange/UiRange.spec.d.ts +0 -1
- package/dist/UiRange/UiRange.stories.d.ts +0 -6
- package/dist/UiRange/constants/index.d.ts +0 -3
- package/dist/UiSearch/UiSearch.spec.d.ts +0 -1
- package/dist/UiSearch/UiSearch.stories.d.ts +0 -6
- package/dist/UiSearch/constants/index.d.ts +0 -24
- package/dist/UiSelect/UiSelect.spec.d.ts +0 -1
- package/dist/UiSelect/UiSelect.stories.d.ts +0 -7
- package/dist/UiSelect/constants/index.d.ts +0 -12
- package/dist/UiSlider/UiSlider.spec.d.ts +0 -1
- package/dist/UiSlider/UiSlider.stories.d.ts +0 -6
- package/dist/UiSpoiler/UiSpoiler.spec.d.ts +0 -1
- package/dist/UiSpoiler/UiSpoiler.stories.d.ts +0 -6
- package/dist/UiSpoiler/constants/index.d.ts +0 -2
- package/dist/UiTable/UiTable.spec.d.ts +0 -1
- package/dist/UiTable/UiTable.stories.d.ts +0 -6
- package/dist/UiTable/constants/index.d.ts +0 -12
- package/dist/UiTabs/UiTabs.spec.d.ts +0 -1
- package/dist/UiTabs/UiTabs.stories.d.ts +0 -6
- package/dist/UiTabs/constants/index.d.ts +0 -4
- package/dist/UiTextarea/UiTextarea.spec.d.ts +0 -1
- package/dist/UiTextarea/UiTextarea.stories.d.ts +0 -6
- package/dist/UiTextarea/constants/index.d.ts +0 -1
- package/dist/UiUpload/UiUpload.spec.d.ts +0 -1
- package/dist/UiUpload/UiUpload.stories.d.ts +0 -7
- package/dist/UiUpload/constants/index.d.ts +0 -5
- package/dist/ar-DoS5rYDE.js +0 -37
- package/dist/bg-Cliju_Dl.js +0 -36
- package/dist/bn-DQXOuyzr.js +0 -32
- package/dist/bs-Ds5q4n_r.js +0 -37
- package/dist/ca-4xgtP6KO.js +0 -37
- package/dist/cs-B6IPxSFU.js +0 -35
- package/dist/da-6AVoummu.js +0 -35
- package/dist/de-BNu6KHOK.js +0 -37
- package/dist/el-DHxOBVTQ.js +0 -43
- package/dist/es-CFPDv89X.js +0 -34
- package/dist/et-uribXAWM.js +0 -37
- package/dist/fa-C5ymM_FA.js +0 -37
- package/dist/fi-C7j6U8Nq.js +0 -38
- package/dist/fr-KgeJOsbO.js +0 -38
- package/dist/he-DyV8dASR.js +0 -39
- package/dist/hr-BnXDuk1H.js +0 -37
- package/dist/hu-DO4KYZ6o.js +0 -35
- package/dist/id-BcUqqcvx.js +0 -38
- package/dist/is-CA349qo2.js +0 -36
- package/dist/it-C5sJWKCx.js +0 -38
- package/dist/ja-Hmoisb1E.js +0 -30
- package/dist/ka-BitJbN8P.js +0 -36
- package/dist/kaa-BkurJ2Of.js +0 -33
- package/dist/kk-BBZvRXgP.js +0 -36
- package/dist/ko-Bkm_tOzT.js +0 -31
- package/dist/ky-BvRR_Tcp.js +0 -33
- package/dist/lt-CnHbl6RF.js +0 -38
- package/dist/mn-D7uNFUHJ.js +0 -36
- package/dist/nl-D9iACGyz.js +0 -37
- package/dist/no-CrNUqUvo.js +0 -35
- package/dist/pl-7eI2wLnR.js +0 -36
- package/dist/pt-br-DGoBPP0L.js +0 -35
- package/dist/pt-pt-DGoBPP0L.js +0 -35
- package/dist/ro-d0Nhcikp.js +0 -34
- package/dist/sk-CVf2-gKO.js +0 -35
- package/dist/sl-Bu4VTEBB.js +0 -36
- package/dist/sq-CCXYEQ64.js +0 -39
- package/dist/sr-BTthV5DU.js +0 -37
- package/dist/sv-CUY8ltE2.js +0 -35
- package/dist/toast/ToastStory.d.ts +0 -2
- package/dist/toast/toast.spec.d.ts +0 -1
- package/dist/toast/toast.stories.d.ts +0 -6
- package/dist/tr-DogdF9PC.js +0 -34
- package/dist/uk-DnfAzipP.js +0 -38
- package/dist/uz-BHUKOoqU.js +0 -33
- package/dist/uz-cryl-CEweDRhI.js +0 -33
- package/dist/vi-BQLinWSk.js +0 -38
- package/dist/zh-cn-DVPNRZ37.js +0 -31
- package/dist/zh-hk-DrbeU4Us.js +0 -31
package/dist/UiModal/UiModal.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
._container_lzvb1_1{position:fixed;inset:0;z-index:999;display:flex;align-items:center;justify-content:center;width:100%;height:100dvh;background-color:var(--color-gray-transparent)}._modal_lzvb1_13{position:relative;display:flex;flex-direction:column;gap:12px;width:var(--
|
|
1
|
+
._container_lzvb1_1{position:fixed;inset:0;z-index:999;display:flex;align-items:center;justify-content:center;width:100%;height:100dvh;background-color:var(--color-gray-transparent)}._modal_lzvb1_13{position:relative;display:flex;flex-direction:column;gap:12px;width:var(--fc18e772);min-width:var(--210eb7ed);max-width:calc(100% - 32px);height:auto;padding:24px;outline:none;background-color:var(--color-white);border-radius:16px;box-shadow:0 0 16px 0 var(--color-gray-transparent)}._header_lzvb1_29{display:flex;justify-content:flex-end}._buttons_lzvb1_34{display:flex;gap:16px}
|
package/dist/UiModal/UiModal.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./UiModal.css";
|
|
2
|
-
import { defineComponent as M, useCssVars as x, computed as l, ref as z, watch as B, createElementBlock as
|
|
2
|
+
import { defineComponent as M, useCssVars as x, computed as l, ref as z, watch as B, createElementBlock as c, createCommentVNode as m, openBlock as f, normalizeClass as n, createElementVNode as d, withModifiers as g, createVNode as i, renderSlot as N, withCtx as p, createTextVNode as v, toDisplayString as _ } from "vue";
|
|
3
3
|
import y from "../UiButton/UiButton.js";
|
|
4
4
|
import T from "../UiClose/UiClose.js";
|
|
5
5
|
import { _ as U } from "../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
@@ -14,10 +14,10 @@ const S = /* @__PURE__ */ M({
|
|
|
14
14
|
emits: ["update:modelValue", "confirm"],
|
|
15
15
|
setup(C, { emit: h }) {
|
|
16
16
|
x((o) => ({
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
fc18e772: V.value,
|
|
18
|
+
"210eb7ed": $.value
|
|
19
19
|
}));
|
|
20
|
-
const e = C,
|
|
20
|
+
const e = C, s = h, b = l(() => e.lang === "en" ? "Cancel" : "Отмена"), w = l(() => e.lang === "en" ? "Confirm" : "Подтвердить"), V = l(() => e.width ? `${e.width}px` : "auto"), $ = l(() => e.width ? `${e.width}px` : "50%"), u = document.querySelector("body"), t = z(!1);
|
|
21
21
|
B(
|
|
22
22
|
() => e.modelValue,
|
|
23
23
|
() => {
|
|
@@ -28,30 +28,30 @@ const S = /* @__PURE__ */ M({
|
|
|
28
28
|
}
|
|
29
29
|
);
|
|
30
30
|
function k() {
|
|
31
|
-
|
|
31
|
+
s("confirm"), s("update:modelValue", !1);
|
|
32
32
|
}
|
|
33
|
-
function
|
|
34
|
-
t.value ||
|
|
33
|
+
function a() {
|
|
34
|
+
t.value || s("update:modelValue", !1), t.value = !1;
|
|
35
35
|
}
|
|
36
|
-
return (o,
|
|
36
|
+
return (o, r) => e.modelValue ? (f(), c("div", {
|
|
37
37
|
key: 0,
|
|
38
|
-
onMousedown:
|
|
38
|
+
onMousedown: a,
|
|
39
39
|
class: n(o.$style.container)
|
|
40
40
|
}, [
|
|
41
41
|
d("div", {
|
|
42
|
-
onMousedown:
|
|
42
|
+
onMousedown: r[0] || (r[0] = g(() => {
|
|
43
43
|
}, ["stop"])),
|
|
44
44
|
class: n(o.$style.modal)
|
|
45
45
|
}, [
|
|
46
46
|
d("div", {
|
|
47
47
|
class: n(o.$style.header)
|
|
48
48
|
}, [
|
|
49
|
-
i(T, { onClick:
|
|
49
|
+
i(T, { onClick: a })
|
|
50
50
|
], 2),
|
|
51
51
|
d("div", null, [
|
|
52
52
|
N(o.$slots, "default")
|
|
53
53
|
]),
|
|
54
|
-
e.isConfirm ? (f(),
|
|
54
|
+
e.isConfirm ? (f(), c("div", {
|
|
55
55
|
key: 0,
|
|
56
56
|
class: n(o.$style.buttons)
|
|
57
57
|
}, [
|
|
@@ -63,7 +63,7 @@ const S = /* @__PURE__ */ M({
|
|
|
63
63
|
}),
|
|
64
64
|
i(y, {
|
|
65
65
|
layout: "secondary",
|
|
66
|
-
onClick:
|
|
66
|
+
onClick: a
|
|
67
67
|
}, {
|
|
68
68
|
default: p(() => [
|
|
69
69
|
v(_(b.value), 1)
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import "./UiSelect.css";
|
|
2
|
-
import { createElementBlock as l, openBlock as s, createElementVNode as O, defineComponent as
|
|
3
|
-
import { o as
|
|
4
|
-
import
|
|
5
|
-
import { _ as
|
|
6
|
-
const
|
|
2
|
+
import { createElementBlock as l, openBlock as s, createElementVNode as O, defineComponent as H, ref as a, computed as g, normalizeClass as d, createCommentVNode as F, createVNode as R, unref as I, Fragment as z, renderList as Q, withKeys as p, withModifiers as U, toDisplayString as M } from "vue";
|
|
3
|
+
import { o as q } from "../index-D1B6FCCq.js";
|
|
4
|
+
import D from "../UiInput/UiInput.js";
|
|
5
|
+
import { _ as J } from "../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
+
const W = {
|
|
7
7
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8
8
|
width: "16",
|
|
9
9
|
height: "16",
|
|
10
10
|
fill: "none"
|
|
11
11
|
};
|
|
12
|
-
function
|
|
13
|
-
return s(), l("svg",
|
|
12
|
+
function X(h, i) {
|
|
13
|
+
return s(), l("svg", W, [...i[0] || (i[0] = [
|
|
14
14
|
O("path", {
|
|
15
15
|
stroke: "#1F1F1F",
|
|
16
16
|
"stroke-linecap": "round",
|
|
@@ -19,14 +19,14 @@ function Y(y, i) {
|
|
|
19
19
|
}, null, -1)
|
|
20
20
|
])]);
|
|
21
21
|
}
|
|
22
|
-
const
|
|
22
|
+
const Y = { render: X }, Z = {
|
|
23
23
|
xmlns: "http://www.w3.org/2000/svg",
|
|
24
24
|
width: "16",
|
|
25
25
|
height: "16",
|
|
26
26
|
fill: "none"
|
|
27
27
|
};
|
|
28
|
-
function
|
|
29
|
-
return s(), l("svg",
|
|
28
|
+
function ee(h, i) {
|
|
29
|
+
return s(), l("svg", Z, [...i[0] || (i[0] = [
|
|
30
30
|
O("path", {
|
|
31
31
|
stroke: "#1F1F1F",
|
|
32
32
|
"stroke-linecap": "round",
|
|
@@ -35,7 +35,7 @@ function te(y, i) {
|
|
|
35
35
|
}, null, -1)
|
|
36
36
|
])]);
|
|
37
37
|
}
|
|
38
|
-
const
|
|
38
|
+
const te = { render: ee }, oe = { key: 0 }, ne = ["onClick", "onKeydown", "onMouseenter", "data-current"], le = /* @__PURE__ */ H({
|
|
39
39
|
__name: "UiSelect",
|
|
40
40
|
props: {
|
|
41
41
|
modelValue: {},
|
|
@@ -47,8 +47,8 @@ const oe = { render: te }, ne = { key: 0 }, le = ["onClick", "onKeydown", "onMou
|
|
|
47
47
|
isClearable: { type: Boolean }
|
|
48
48
|
},
|
|
49
49
|
emits: ["update:modelValue", "reachedBottom"],
|
|
50
|
-
setup(
|
|
51
|
-
const t =
|
|
50
|
+
setup(h, { emit: i }) {
|
|
51
|
+
const t = h, k = i, N = {
|
|
52
52
|
en: {
|
|
53
53
|
placeholder: "Choose variant",
|
|
54
54
|
filter: "Filter Variants",
|
|
@@ -59,61 +59,61 @@ const oe = { render: te }, ne = { key: 0 }, le = ["onClick", "onKeydown", "onMou
|
|
|
59
59
|
filter: "Фильтровать",
|
|
60
60
|
noResults: "Нет результатов"
|
|
61
61
|
}
|
|
62
|
-
}, m = a(""), u = a(!1), V = a(!1), f = a(), r = a(), v = a(), E = a([]), w =
|
|
62
|
+
}, m = a(""), u = a(!1), V = a(!1), f = a(), r = a(), v = a(), E = a([]), w = g(() => N[t.lang || "ru"]), B = g(() => {
|
|
63
63
|
const e = t.options?.[0];
|
|
64
64
|
return e !== void 0 && typeof e == "object";
|
|
65
|
-
}), $ = (e) => e !== null && (typeof e == "string" || typeof e == "number"), C =
|
|
65
|
+
}), $ = (e) => e !== null && (typeof e == "string" || typeof e == "number"), C = g(() => {
|
|
66
66
|
if (!t.options?.length) return [];
|
|
67
67
|
const e = B.value ? [...t.options] : t.options.map((o) => ({ _id: String(o), title: String(o) }));
|
|
68
68
|
return t.isFilter ? e.filter((o) => o.title.toLowerCase().includes(m.value.toLowerCase())) : e;
|
|
69
|
-
}),
|
|
69
|
+
}), T = g(() => {
|
|
70
70
|
if ($(t.modelValue)) return t.modelValue;
|
|
71
71
|
if (!t.modelValue) return "";
|
|
72
72
|
const e = t.modelValue;
|
|
73
73
|
return t.isLocaleField ? e.title_en ?? "" : e.title ?? "";
|
|
74
|
-
}), A =
|
|
74
|
+
}), A = (e, o) => `${e._id || e.title}-${o}`, j = (e) => t.isLocaleField ? e.title_en : e.title, x = (e) => $(t.modelValue) ? t.modelValue === (e._id || e.title) : t.modelValue ? t.modelValue._id === e._id : !1, _ = (e) => {
|
|
75
75
|
e < 0 || e >= C.value.length || t.isFilter || E.value[e]?.focus();
|
|
76
|
-
},
|
|
77
|
-
u.value ?
|
|
76
|
+
}, K = () => k("update:modelValue", void 0), L = () => {
|
|
77
|
+
u.value ? y() : G();
|
|
78
78
|
}, P = () => {
|
|
79
79
|
if (!f.value) return !1;
|
|
80
|
-
const e = f.value.getBoundingClientRect(),
|
|
81
|
-
return
|
|
80
|
+
const e = 232, o = f.value.getBoundingClientRect(), n = window.innerHeight - o.bottom, c = o.top;
|
|
81
|
+
return n < e && c > n;
|
|
82
82
|
};
|
|
83
|
-
function
|
|
83
|
+
function y() {
|
|
84
84
|
r.value?.removeEventListener("scroll", S, !0), m.value = "", u.value = !1, V.value = !1;
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function G() {
|
|
87
87
|
t.isDisabled || (V.value = P(), u.value = !0, t.isFilter || setTimeout(() => {
|
|
88
88
|
r.value?.scrollTo(0, 0), _(0), r.value?.addEventListener("scroll", S, !0);
|
|
89
89
|
}, 100));
|
|
90
90
|
}
|
|
91
91
|
function b(e) {
|
|
92
92
|
const o = B.value ? e : e._id || e.title;
|
|
93
|
-
k("update:modelValue", o),
|
|
93
|
+
k("update:modelValue", o), y();
|
|
94
94
|
}
|
|
95
95
|
function S() {
|
|
96
96
|
if (!r.value || !v.value) return;
|
|
97
97
|
r.value.getBoundingClientRect().y - v.value.getBoundingClientRect().y - v.value.scrollHeight + r.value.getBoundingClientRect().height > -100 && k("reachedBottom");
|
|
98
98
|
}
|
|
99
|
-
return
|
|
100
|
-
class:
|
|
99
|
+
return q(f, y), (e, o) => (s(), l("div", {
|
|
100
|
+
class: d(e.$style.container),
|
|
101
101
|
ref_key: "containerElement",
|
|
102
102
|
ref: f
|
|
103
103
|
}, [
|
|
104
104
|
O("div", {
|
|
105
|
-
class:
|
|
105
|
+
class: d(e.$style.input)
|
|
106
106
|
}, [
|
|
107
|
-
|
|
108
|
-
modelValue:
|
|
107
|
+
R(D, {
|
|
108
|
+
modelValue: T.value,
|
|
109
109
|
disabled: t.isDisabled,
|
|
110
110
|
onToggle: L,
|
|
111
111
|
mode: "select",
|
|
112
112
|
placeholder: w.value.placeholder,
|
|
113
|
-
appendIcon: u.value ? I(
|
|
113
|
+
appendIcon: u.value ? I(te) : I(Y)
|
|
114
114
|
}, null, 8, ["modelValue", "disabled", "placeholder", "appendIcon"]),
|
|
115
|
-
t.isFilter && u.value ? (s(), l("div",
|
|
116
|
-
|
|
115
|
+
t.isFilter && u.value ? (s(), l("div", oe, [
|
|
116
|
+
R(D, {
|
|
117
117
|
modelValue: m.value,
|
|
118
118
|
"onUpdate:modelValue": o[0] || (o[0] = (n) => m.value = n),
|
|
119
119
|
disabled: t.isDisabled,
|
|
@@ -123,14 +123,14 @@ const oe = { render: te }, ne = { key: 0 }, le = ["onClick", "onKeydown", "onMou
|
|
|
123
123
|
])) : F("", !0),
|
|
124
124
|
t.isClearable && t.modelValue ? (s(), l("button", {
|
|
125
125
|
key: 1,
|
|
126
|
-
onClick:
|
|
126
|
+
onClick: K,
|
|
127
127
|
type: "button",
|
|
128
|
-
class:
|
|
128
|
+
class: d(e.$style.clear)
|
|
129
129
|
}, " × ", 2)) : F("", !0)
|
|
130
130
|
], 2),
|
|
131
131
|
u.value ? (s(), l("div", {
|
|
132
132
|
key: 0,
|
|
133
|
-
class:
|
|
133
|
+
class: d([e.$style.options, { [e.$style.optionsUp]: V.value }]),
|
|
134
134
|
ref_key: "optionsElement",
|
|
135
135
|
ref: r
|
|
136
136
|
}, [
|
|
@@ -139,43 +139,43 @@ const oe = { render: te }, ne = { key: 0 }, le = ["onClick", "onKeydown", "onMou
|
|
|
139
139
|
ref_key: "optionsInnerElement",
|
|
140
140
|
ref: v
|
|
141
141
|
}, [
|
|
142
|
-
(s(!0), l(
|
|
143
|
-
key:
|
|
142
|
+
(s(!0), l(z, null, Q(C.value, (n, c) => (s(), l("div", {
|
|
143
|
+
key: A(n, c),
|
|
144
144
|
onClick: () => b(n),
|
|
145
145
|
onKeydown: [
|
|
146
146
|
p(() => b(n), ["enter"]),
|
|
147
147
|
p(() => b(n), ["space"]),
|
|
148
|
-
p(
|
|
149
|
-
p(
|
|
148
|
+
p(U(() => _(c - 1), ["prevent"]), ["up"]),
|
|
149
|
+
p(U(() => _(c + 1), ["prevent"]), ["down"]),
|
|
150
150
|
p(L, ["esc"])
|
|
151
151
|
],
|
|
152
|
-
onMouseenter: () => _(
|
|
153
|
-
class:
|
|
152
|
+
onMouseenter: () => _(c),
|
|
153
|
+
class: d(e.$style.option),
|
|
154
154
|
tabindex: "0",
|
|
155
155
|
ref_for: !0,
|
|
156
156
|
ref_key: "optionElement",
|
|
157
157
|
ref: E,
|
|
158
|
-
"data-current":
|
|
159
|
-
},
|
|
158
|
+
"data-current": x(n)
|
|
159
|
+
}, M(j(n)), 43, ne))), 128))
|
|
160
160
|
], 512)) : (s(), l("div", {
|
|
161
161
|
key: 1,
|
|
162
|
-
onClick:
|
|
163
|
-
class:
|
|
162
|
+
onClick: y,
|
|
163
|
+
class: d(e.$style.option),
|
|
164
164
|
tabindex: "0"
|
|
165
|
-
},
|
|
165
|
+
}, M(w.value.noResults), 3))
|
|
166
166
|
], 2)) : F("", !0)
|
|
167
167
|
], 2));
|
|
168
168
|
}
|
|
169
|
-
}),
|
|
170
|
-
container:
|
|
171
|
-
input:
|
|
172
|
-
clear:
|
|
173
|
-
options:
|
|
174
|
-
optionsUp:
|
|
175
|
-
option:
|
|
176
|
-
},
|
|
177
|
-
$style:
|
|
178
|
-
},
|
|
169
|
+
}), se = "_container_x83cu_1", ie = "_input_x83cu_10", re = "_clear_x83cu_16", ae = "_options_x83cu_31", ue = "_optionsUp_x83cu_44", ce = "_option_x83cu_31", de = {
|
|
170
|
+
container: se,
|
|
171
|
+
input: ie,
|
|
172
|
+
clear: re,
|
|
173
|
+
options: ae,
|
|
174
|
+
optionsUp: ue,
|
|
175
|
+
option: ce
|
|
176
|
+
}, pe = {
|
|
177
|
+
$style: de
|
|
178
|
+
}, ye = /* @__PURE__ */ J(le, [["__cssModules", pe]]);
|
|
179
179
|
export {
|
|
180
|
-
|
|
180
|
+
ye as default
|
|
181
181
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { TLocale } from '../locales/types';
|
|
1
2
|
interface IHeader {
|
|
2
3
|
value?: string;
|
|
3
4
|
title: string;
|
|
@@ -6,7 +7,6 @@ interface IModelValue {
|
|
|
6
7
|
value?: string;
|
|
7
8
|
isAsc: boolean;
|
|
8
9
|
}
|
|
9
|
-
type TLocale = 'ru' | 'en';
|
|
10
10
|
interface IProps {
|
|
11
11
|
headers: IHeader[];
|
|
12
12
|
modelValue?: IModelValue;
|
|
@@ -2,9 +2,6 @@ import "./UiUpload.css";
|
|
|
2
2
|
import { createElementBlock as o, openBlock as s, createStaticVNode as z, defineComponent as I, ref as $, computed as M, normalizeClass as i, createElementVNode as r, withDirectives as D, createCommentVNode as d, toDisplayString as a, createVNode as f, unref as k, withCtx as m, createTextVNode as u, Fragment as B, renderList as F, vShow as N } from "vue";
|
|
3
3
|
import _ from "../UiButton/UiButton.js";
|
|
4
4
|
import { _ as U } from "../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
|
-
const v = 10 * 1024 * 1024;
|
|
6
|
-
new File([""], "file1.png");
|
|
7
|
-
new File([""], "file2.png");
|
|
8
5
|
const V = {
|
|
9
6
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10
7
|
width: "16",
|
|
@@ -16,7 +13,10 @@ function E(y, p) {
|
|
|
16
13
|
z('<g fill="currentColor" fill-rule="evenodd" clip-path="url(#a)" clip-rule="evenodd"><path d="M12.219 0h.875Q15.532.469 16 2.906v.875a3.6 3.6 0 0 1-.766 1.719l-4.546 4.547q-1.536 1.189-3.376.562a3.55 3.55 0 0 1-1.234-.828q-.37-.747.39-1.078a1 1 0 0 1 .438.031q.3.253.625.47 1.09.563 2.125-.095 2.288-2.241 4.547-4.515.928-1.322-.062-2.594-1.287-1.184-2.735-.203a143 143 0 0 1-2.531 2.5q-.72.3-1.016-.422a.8.8 0 0 1 .094-.562L10.531.733A3.6 3.6 0 0 1 12.22 0"></path><path d="M3.781 16h-.875Q.47 15.532 0 13.094v-.875q.151-.96.766-1.719l4.172-4.172Q6.594 5.062 8.53 5.86q.46.227.844.563a.75.75 0 0 1 .266.797q-.274.609-.922.422l-.688-.5q-1.065-.513-2.062.125-2.1 2.053-4.172 4.14-.94 1.35.094 2.625 1.189 1.08 2.578.266l2.281-2.219q.88-.318 1.031.594a.7.7 0 0 1-.11.39Q6.587 14.15 5.5 15.235A3.6 3.6 0 0 1 3.781 16"></path></g><defs><clipPath id="a"><path fill="currentColor" d="M0 0h16v16H0z"></path></clipPath></defs>', 2)
|
|
17
14
|
])]);
|
|
18
15
|
}
|
|
19
|
-
const L = { render: E },
|
|
16
|
+
const L = { render: E }, v = 10 * 1024 * 1024;
|
|
17
|
+
new File([""], "file1.png");
|
|
18
|
+
new File([""], "file2.png");
|
|
19
|
+
const Q = { key: 0 }, R = ["data-error"], j = ["accept", "multiple"], A = ["data-label"], x = /* @__PURE__ */ I({
|
|
20
20
|
__name: "UiUpload",
|
|
21
21
|
props: {
|
|
22
22
|
label: { default: void 0 },
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type TLocale = 'ru' | 'en';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mhz-ui",
|
|
3
3
|
"description": "Mhz ui kit",
|
|
4
|
-
"version": "1.2.
|
|
4
|
+
"version": "1.2.18",
|
|
5
5
|
"author": "Alexandr Dergunov <dergunovs@mail.ru> (https://github.com/dergunovs)",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"type": "module",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"vite-svg-loader": "5.1.0",
|
|
78
78
|
"vitest": "3.2.4",
|
|
79
79
|
"vue-eslint-parser": "10.2.0",
|
|
80
|
-
"vue-linters-config": "0.4.
|
|
80
|
+
"vue-linters-config": "0.4.2",
|
|
81
81
|
"vue-tsc": "3.0.6"
|
|
82
82
|
},
|
|
83
83
|
"peerDependencies": {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const MODEL_VALUE = "Example text";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export declare const DEFAULT_TAG = "div";
|
|
2
|
-
export declare const DEFAULT_ALIGN = "normal";
|
|
3
|
-
export declare const DEFAULT_JUSTIFY = "normal";
|
|
4
|
-
export declare const DEFAULT_GAP = "8";
|
|
5
|
-
export declare const FIRST_SLOT = "Content inside first div";
|
|
6
|
-
export declare const SECOND_SLOT = "Content inside second div";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const MODEL_VALUE = "Text example";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|