mhz-ui 1.1.24 → 1.1.26
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/UiModal/UiModal.css +1 -1
- package/dist/UiModal/UiModal.d.ts +1 -1
- package/dist/UiModal/UiModal.js +9 -9
- 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/UiTable/UiTable.d.ts +1 -1
- package/dist/UiTable/UiTable.js +26 -26
- package/dist/UiUpload/UiUpload.d.ts +2 -2
- package/package.json +4 -4
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(--a6ba93d4);min-width:var(--570107be);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
|
@@ -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
|
+
a6ba93d4: V.value,
|
|
18
|
+
"570107be": $.value
|
|
19
19
|
}));
|
|
20
|
-
const e = C,
|
|
20
|
+
const e = C, a = 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,14 +28,14 @@ const S = /* @__PURE__ */ M({
|
|
|
28
28
|
}
|
|
29
29
|
);
|
|
30
30
|
function k() {
|
|
31
|
-
|
|
31
|
+
a("confirm"), a("update:modelValue", !1);
|
|
32
32
|
}
|
|
33
|
-
function
|
|
34
|
-
t.value ||
|
|
33
|
+
function s() {
|
|
34
|
+
t.value || a("update:modelValue", !1), t.value = !1;
|
|
35
35
|
}
|
|
36
36
|
return (o, r) => e.modelValue ? (f(), c("div", {
|
|
37
37
|
key: 0,
|
|
38
|
-
onMousedown:
|
|
38
|
+
onMousedown: s,
|
|
39
39
|
class: n(o.$style.container)
|
|
40
40
|
}, [
|
|
41
41
|
d("div", {
|
|
@@ -46,7 +46,7 @@ const S = /* @__PURE__ */ M({
|
|
|
46
46
|
d("div", {
|
|
47
47
|
class: n(o.$style.header)
|
|
48
48
|
}, [
|
|
49
|
-
i(T, { onClick:
|
|
49
|
+
i(T, { onClick: s })
|
|
50
50
|
], 2),
|
|
51
51
|
d("div", null, [
|
|
52
52
|
N(o.$slots, "default")
|
|
@@ -63,7 +63,7 @@ const S = /* @__PURE__ */ M({
|
|
|
63
63
|
}),
|
|
64
64
|
i(y, {
|
|
65
65
|
layout: "secondary",
|
|
66
|
-
onClick:
|
|
66
|
+
onClick: s
|
|
67
67
|
}, {
|
|
68
68
|
default: p(() => [
|
|
69
69
|
v(_(b.value), 1)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
interface IProps {
|
|
2
2
|
page: number;
|
|
3
3
|
total?: number;
|
|
4
|
-
lang?:
|
|
4
|
+
lang?: string;
|
|
5
5
|
}
|
|
6
6
|
declare const _default: import('vue').DefineComponent<IProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
7
7
|
update: (value: number) => any;
|
|
@@ -12,7 +12,7 @@ interface IProps {
|
|
|
12
12
|
}[];
|
|
13
13
|
};
|
|
14
14
|
isSuccess: boolean;
|
|
15
|
-
lang?:
|
|
15
|
+
lang?: string;
|
|
16
16
|
}
|
|
17
17
|
declare const _default: import('vue').DefineComponent<IProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
18
18
|
"update:modelValue": (value: string) => any;
|
|
@@ -7,7 +7,7 @@ interface IProps {
|
|
|
7
7
|
options?: string[] | number[] | IOption[];
|
|
8
8
|
isFilter?: boolean;
|
|
9
9
|
isDisabled?: boolean;
|
|
10
|
-
lang?:
|
|
10
|
+
lang?: string;
|
|
11
11
|
isClearable?: boolean;
|
|
12
12
|
}
|
|
13
13
|
declare const _default: import('vue').DefineComponent<IProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
package/dist/UiTable/UiTable.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./UiTable.css";
|
|
2
|
-
import { defineComponent as k, ref as d, computed as V, onMounted as
|
|
2
|
+
import { defineComponent as k, ref as d, computed as V, onMounted as $, onBeforeUnmount as w, createElementBlock as o, openBlock as n, normalizeClass as t, createCommentVNode as _, createElementVNode as s, toDisplayString as p, Fragment as B, renderList as h, renderSlot as q } from "vue";
|
|
3
3
|
import { _ as S } from "../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
4
|
const C = ["data-loading"], L = ["onClick", "data-current"], M = ["data-current", "data-loading"], z = ["data-current", "data-loading"], E = /* @__PURE__ */ k({
|
|
5
5
|
__name: "UiTable",
|
|
@@ -21,53 +21,53 @@ const C = ["data-loading"], L = ["onClick", "data-current"], M = ["data-current"
|
|
|
21
21
|
function f(e) {
|
|
22
22
|
l.modelValue?.value === e ? b("update:modelValue", { value: e, isAsc: !l.modelValue?.isAsc }) : b("reset", e);
|
|
23
23
|
}
|
|
24
|
-
return
|
|
24
|
+
return $(() => {
|
|
25
25
|
u(), window.addEventListener("resize", u, !0);
|
|
26
|
-
}),
|
|
26
|
+
}), w(() => {
|
|
27
27
|
window.removeEventListener("resize", u, !0);
|
|
28
28
|
}), (e, i) => (n(), o("div", {
|
|
29
|
-
class:
|
|
29
|
+
class: t(e.$style.tableBlock),
|
|
30
30
|
ref_key: "tableBlock",
|
|
31
31
|
ref: r
|
|
32
32
|
}, [
|
|
33
33
|
m.value ? (n(), o("div", {
|
|
34
34
|
key: 0,
|
|
35
|
-
class:
|
|
35
|
+
class: t(e.$style.scrollMessage)
|
|
36
36
|
}, p(y.value), 3)) : _("", !0),
|
|
37
|
-
|
|
38
|
-
class:
|
|
37
|
+
s("table", {
|
|
38
|
+
class: t(e.$style.table),
|
|
39
39
|
cellpadding: "8",
|
|
40
40
|
cellspacing: "0",
|
|
41
41
|
border: 0,
|
|
42
42
|
ref_key: "table",
|
|
43
43
|
ref: c
|
|
44
44
|
}, [
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
(n(!0), o(
|
|
48
|
-
key:
|
|
49
|
-
class:
|
|
45
|
+
s("thead", null, [
|
|
46
|
+
s("tr", null, [
|
|
47
|
+
(n(!0), o(B, null, h(l.headers, (a) => (n(), o("th", {
|
|
48
|
+
key: `${a.value}${a.title}`,
|
|
49
|
+
class: t(e.$style.th)
|
|
50
50
|
}, [
|
|
51
|
-
|
|
52
|
-
class:
|
|
51
|
+
s("label", {
|
|
52
|
+
class: t(e.$style.label),
|
|
53
53
|
"data-loading": l.isLoading
|
|
54
54
|
}, [
|
|
55
|
-
|
|
56
|
-
|
|
55
|
+
s("span", null, p(a.title), 1),
|
|
56
|
+
a.value ? (n(), o("button", {
|
|
57
57
|
key: 0,
|
|
58
|
-
onClick: (I) => f(
|
|
59
|
-
class:
|
|
58
|
+
onClick: (I) => f(a.value),
|
|
59
|
+
class: t(e.$style.sort),
|
|
60
60
|
type: "button",
|
|
61
|
-
"data-current": l.modelValue?.value ===
|
|
61
|
+
"data-current": l.modelValue?.value === a.value
|
|
62
62
|
}, [
|
|
63
|
-
|
|
64
|
-
class:
|
|
65
|
-
"data-current": l.modelValue?.isAsc && l.modelValue?.value ===
|
|
63
|
+
s("span", {
|
|
64
|
+
class: t(e.$style.arrow),
|
|
65
|
+
"data-current": l.modelValue?.isAsc && l.modelValue?.value === a.value,
|
|
66
66
|
"data-loading": l.isLoading
|
|
67
67
|
}, " ↑ ", 10, M),
|
|
68
|
-
|
|
69
|
-
class:
|
|
70
|
-
"data-current": !l.modelValue?.isAsc && l.modelValue?.value ===
|
|
68
|
+
s("span", {
|
|
69
|
+
class: t(e.$style.arrow),
|
|
70
|
+
"data-current": !l.modelValue?.isAsc && l.modelValue?.value === a.value,
|
|
71
71
|
"data-loading": l.isLoading
|
|
72
72
|
}, " ↓ ", 10, z)
|
|
73
73
|
], 10, L)) : _("", !0)
|
|
@@ -75,7 +75,7 @@ const C = ["data-loading"], L = ["onClick", "data-current"], M = ["data-current"
|
|
|
75
75
|
], 2))), 128))
|
|
76
76
|
])
|
|
77
77
|
]),
|
|
78
|
-
|
|
78
|
+
s("tbody", null, [
|
|
79
79
|
q(e.$slots, "default")
|
|
80
80
|
])
|
|
81
81
|
], 2)
|
|
@@ -7,7 +7,7 @@ interface IProps {
|
|
|
7
7
|
isDisabled?: boolean;
|
|
8
8
|
isRequired?: boolean;
|
|
9
9
|
isSingle?: boolean;
|
|
10
|
-
lang?:
|
|
10
|
+
lang?: string;
|
|
11
11
|
}
|
|
12
12
|
declare const _default: import('vue').DefineComponent<IProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
13
13
|
add: (file: File) => any;
|
|
@@ -22,7 +22,7 @@ declare const _default: import('vue').DefineComponent<IProps, {}, {}, {}, {}, im
|
|
|
22
22
|
label: string;
|
|
23
23
|
file: File;
|
|
24
24
|
extensions: string[];
|
|
25
|
-
lang:
|
|
25
|
+
lang: string;
|
|
26
26
|
files: File[] | never[];
|
|
27
27
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
28
28
|
input: HTMLInputElement;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mhz-ui",
|
|
3
3
|
"description": "Mhz ui kit",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.26",
|
|
5
5
|
"author": "Alexandr Dergunov <dergunovs@mail.ru> (https://github.com/dergunovs)",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"type": "module",
|
|
@@ -55,8 +55,8 @@
|
|
|
55
55
|
"@vue/test-utils": "2.4.6",
|
|
56
56
|
"eslint": "9.24.0",
|
|
57
57
|
"eslint-config-prettier": "10.1.1",
|
|
58
|
-
"eslint-import-resolver-typescript": "4.3.
|
|
59
|
-
"eslint-plugin-import-x": "4.10.
|
|
58
|
+
"eslint-import-resolver-typescript": "4.3.2",
|
|
59
|
+
"eslint-plugin-import-x": "4.10.2",
|
|
60
60
|
"eslint-plugin-prettier": "5.2.6",
|
|
61
61
|
"eslint-plugin-vue": "10.0.0",
|
|
62
62
|
"globals": "16.0.0",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"prettier": "3.5.3",
|
|
67
67
|
"sass-embedded": "1.86.3",
|
|
68
68
|
"storybook": "8.6.12",
|
|
69
|
-
"stylelint": "16.
|
|
69
|
+
"stylelint": "16.18.0",
|
|
70
70
|
"stylelint-config-recess-order": "6.0.0",
|
|
71
71
|
"stylelint-config-recommended-scss": "14.1.0",
|
|
72
72
|
"stylelint-config-recommended-vue": "1.6.0",
|