mhz-ui 1.0.124 → 1.0.126
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/UiButton/UiButton.d.ts +1 -1
- package/dist/UiCalendar/UiCalendar.d.ts +2 -2
- package/dist/UiCheckbox/UiCheckbox.d.ts +1 -1
- package/dist/UiClose/UiClose.css +1 -0
- package/dist/UiClose/UiClose.d.ts +6 -0
- package/dist/UiClose/UiClose.js +34 -0
- package/dist/UiModal/UiModal.css +1 -1
- package/dist/UiModal/UiModal.js +40 -44
- package/dist/UiUpload/UiUpload.d.ts +1 -1
- package/dist/index.d.ts +14 -13
- package/dist/index.js +14 -13
- package/package.json +3 -3
|
@@ -18,8 +18,8 @@ declare function __VLS_template(): {
|
|
|
18
18
|
};
|
|
19
19
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
20
20
|
declare const __VLS_component: import('vue').DefineComponent<IProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<IProps> & Readonly<{}>, {
|
|
21
|
-
layout: "primary" | "secondary" | "plain" | "accent" | "gradient";
|
|
22
21
|
type: "submit" | "button";
|
|
22
|
+
layout: "primary" | "secondary" | "plain" | "accent" | "gradient";
|
|
23
23
|
icon: FunctionalComponent;
|
|
24
24
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLButtonElement>;
|
|
25
25
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
@@ -4,12 +4,12 @@ interface IProps {
|
|
|
4
4
|
events?: ICalendarEvent<unknown>[];
|
|
5
5
|
}
|
|
6
6
|
declare const _default: import('vue').DefineComponent<IProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
7
|
-
update: (value: ICalendarUpdate) => any;
|
|
8
7
|
ready: (value: ICalendarUpdate) => any;
|
|
8
|
+
update: (value: ICalendarUpdate) => any;
|
|
9
9
|
eventClick: (value: ICalendarEvent<unknown>) => any;
|
|
10
10
|
}, string, import('vue').PublicProps, Readonly<IProps> & Readonly<{
|
|
11
|
-
onUpdate?: ((value: ICalendarUpdate) => any) | undefined;
|
|
12
11
|
onReady?: ((value: ICalendarUpdate) => any) | undefined;
|
|
12
|
+
onUpdate?: ((value: ICalendarUpdate) => any) | undefined;
|
|
13
13
|
onEventClick?: ((value: ICalendarEvent<unknown>) => any) | undefined;
|
|
14
14
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
15
15
|
export default _default;
|
|
@@ -17,8 +17,8 @@ declare const _default: import('vue').DefineComponent<IProps, {}, {}, {}, {}, im
|
|
|
17
17
|
}>, {
|
|
18
18
|
error: string | boolean;
|
|
19
19
|
label: string;
|
|
20
|
-
modelValue: TInitialValue;
|
|
21
20
|
initialValue: TInitialValue;
|
|
21
|
+
modelValue: TInitialValue;
|
|
22
22
|
labelSub: string;
|
|
23
23
|
labelSwitcher: string;
|
|
24
24
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._close_14fsr_1{position:relative;width:36px;height:36px;color:var(--color-white);cursor:pointer;background-color:var(--color-gray-dark);border:none;border-radius:50%}._close_14fsr_1[data-delete=true]{background-color:var(--color-error)}._close_14fsr_1[data-delete=true]:hover{background-color:var(--color-error-dark)}._close_14fsr_1[data-small=true]{width:22px;height:22px}._close_14fsr_1[data-small=true] ._line_14fsr_21{left:6px;width:10px;height:1px;border-radius:2px}._close_14fsr_1 ._line_14fsr_21{position:absolute;left:9px;width:18px;height:2px;background-color:var(--color-white);border-radius:4px;rotate:45deg}._close_14fsr_1 ._line_14fsr_21:last-child{rotate:135deg}._close_14fsr_1:hover{background-color:var(--color-gray-dark-extra)}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
interface IProps {
|
|
2
|
+
isSmall?: boolean;
|
|
3
|
+
isDelete?: boolean;
|
|
4
|
+
}
|
|
5
|
+
declare const _default: import('vue').DefineComponent<IProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<IProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLButtonElement>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import "./UiClose.css";
|
|
2
|
+
import { defineComponent as n, openBlock as a, createElementBlock as c, normalizeClass as s, createElementVNode as t } from "vue";
|
|
3
|
+
import { _ as i } from "../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
|
+
const r = ["data-small", "data-delete"], _ = /* @__PURE__ */ n({
|
|
5
|
+
__name: "UiClose",
|
|
6
|
+
props: {
|
|
7
|
+
isSmall: { type: Boolean },
|
|
8
|
+
isDelete: { type: Boolean }
|
|
9
|
+
},
|
|
10
|
+
setup(o) {
|
|
11
|
+
const l = o;
|
|
12
|
+
return (e, f) => (a(), c("button", {
|
|
13
|
+
class: s(e.$style.close),
|
|
14
|
+
type: "button",
|
|
15
|
+
"data-small": l.isSmall,
|
|
16
|
+
"data-delete": l.isDelete
|
|
17
|
+
}, [
|
|
18
|
+
t("div", {
|
|
19
|
+
class: s(e.$style.line)
|
|
20
|
+
}, null, 2),
|
|
21
|
+
t("div", {
|
|
22
|
+
class: s(e.$style.line)
|
|
23
|
+
}, null, 2)
|
|
24
|
+
], 10, r));
|
|
25
|
+
}
|
|
26
|
+
}), d = "_close_14fsr_1", m = "_line_14fsr_21", p = {
|
|
27
|
+
close: d,
|
|
28
|
+
line: m
|
|
29
|
+
}, u = {
|
|
30
|
+
$style: p
|
|
31
|
+
}, C = /* @__PURE__ */ i(_, [["__cssModules", u]]);
|
|
32
|
+
export {
|
|
33
|
+
C as default
|
|
34
|
+
};
|
package/dist/UiModal/UiModal.css
CHANGED
|
@@ -1 +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(--411d3236);min-width:var(--1e98d0c4);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,8 +1,9 @@
|
|
|
1
1
|
import "./UiModal.css";
|
|
2
|
-
import { defineComponent as M, useCssVars as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
2
|
+
import { defineComponent as M, useCssVars as x, computed as l, ref as z, watch as B, openBlock as c, createElementBlock as m, normalizeClass as n, createElementVNode as d, withModifiers as g, createVNode as i, renderSlot as N, withCtx as f, createTextVNode as p, toDisplayString as v, createCommentVNode as _ } from "vue";
|
|
3
|
+
import y from "../UiButton/UiButton.js";
|
|
4
|
+
import T from "../UiClose/UiClose.js";
|
|
5
|
+
import { _ as U } from "../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
+
const S = /* @__PURE__ */ M({
|
|
6
7
|
__name: "UiModal",
|
|
7
8
|
props: {
|
|
8
9
|
modelValue: { type: Boolean },
|
|
@@ -11,81 +12,76 @@ const U = /* @__PURE__ */ M({
|
|
|
11
12
|
lang: {}
|
|
12
13
|
},
|
|
13
14
|
emits: ["update:modelValue", "confirm"],
|
|
14
|
-
setup(
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
"
|
|
15
|
+
setup(h, { emit: C }) {
|
|
16
|
+
x((o) => ({
|
|
17
|
+
"411d3236": b.value,
|
|
18
|
+
"1e98d0c4": $.value
|
|
18
19
|
}));
|
|
19
|
-
const e =
|
|
20
|
-
|
|
20
|
+
const e = h, s = C, w = l(() => e.lang === "ru" ? "Отмена" : "Cancel"), V = l(() => e.lang === "ru" ? "Подтвердить" : "onfirm"), b = l(() => e.width ? `${e.width}px` : "auto"), $ = l(() => e.width ? `${e.width}px` : "50%"), u = document.querySelector("body"), t = z(!1);
|
|
21
|
+
B(
|
|
21
22
|
() => e.modelValue,
|
|
22
23
|
() => {
|
|
23
24
|
const o = e.modelValue ? "hidden" : "auto";
|
|
24
|
-
u && (u.style.overflow = o), e.modelValue && (
|
|
25
|
-
|
|
25
|
+
u && (u.style.overflow = o), e.modelValue && (t.value = !0, setTimeout(() => {
|
|
26
|
+
t.value = !1;
|
|
26
27
|
}, 100));
|
|
27
28
|
}
|
|
28
29
|
);
|
|
29
30
|
function k() {
|
|
30
|
-
|
|
31
|
+
s("confirm"), s("update:modelValue", !1);
|
|
31
32
|
}
|
|
32
|
-
function
|
|
33
|
-
|
|
33
|
+
function a() {
|
|
34
|
+
t.value || s("update:modelValue", !1), t.value = !1;
|
|
34
35
|
}
|
|
35
|
-
return (o,
|
|
36
|
+
return (o, r) => e.modelValue ? (c(), m("div", {
|
|
36
37
|
key: 0,
|
|
37
|
-
onMousedown:
|
|
38
|
-
class:
|
|
38
|
+
onMousedown: a,
|
|
39
|
+
class: n(o.$style.container)
|
|
39
40
|
}, [
|
|
40
|
-
|
|
41
|
-
onMousedown:
|
|
41
|
+
d("div", {
|
|
42
|
+
onMousedown: r[0] || (r[0] = g(() => {
|
|
42
43
|
}, ["stop"])),
|
|
43
|
-
class:
|
|
44
|
+
class: n(o.$style.modal)
|
|
44
45
|
}, [
|
|
45
|
-
|
|
46
|
-
class:
|
|
46
|
+
d("div", {
|
|
47
|
+
class: n(o.$style.header)
|
|
47
48
|
}, [
|
|
48
|
-
|
|
49
|
-
onClick: d,
|
|
50
|
-
class: t(o.$style.close),
|
|
51
|
-
type: "button"
|
|
52
|
-
}, "×", 2)
|
|
49
|
+
i(T, { onClick: a })
|
|
53
50
|
], 2),
|
|
54
|
-
|
|
55
|
-
|
|
51
|
+
d("div", null, [
|
|
52
|
+
N(o.$slots, "default")
|
|
56
53
|
]),
|
|
57
|
-
e.isConfirm ? (
|
|
54
|
+
e.isConfirm ? (c(), m("div", {
|
|
58
55
|
key: 0,
|
|
59
|
-
class:
|
|
56
|
+
class: n(o.$style.buttons)
|
|
60
57
|
}, [
|
|
61
|
-
|
|
58
|
+
i(y, { onClick: k }, {
|
|
62
59
|
default: f(() => [
|
|
63
|
-
p(
|
|
60
|
+
p(v(V.value), 1)
|
|
64
61
|
]),
|
|
65
62
|
_: 1
|
|
66
63
|
}),
|
|
67
|
-
|
|
64
|
+
i(y, {
|
|
68
65
|
layout: "secondary",
|
|
69
|
-
onClick:
|
|
66
|
+
onClick: a
|
|
70
67
|
}, {
|
|
71
68
|
default: f(() => [
|
|
72
|
-
p(
|
|
69
|
+
p(v(w.value), 1)
|
|
73
70
|
]),
|
|
74
71
|
_: 1
|
|
75
72
|
})
|
|
76
|
-
], 2)) :
|
|
73
|
+
], 2)) : _("", !0)
|
|
77
74
|
], 34)
|
|
78
|
-
], 34)) :
|
|
75
|
+
], 34)) : _("", !0);
|
|
79
76
|
}
|
|
80
|
-
}), E = "
|
|
77
|
+
}), E = "_container_lzvb1_1", q = "_modal_lzvb1_13", D = "_header_lzvb1_29", H = "_buttons_lzvb1_34", W = {
|
|
81
78
|
container: E,
|
|
82
79
|
modal: q,
|
|
83
|
-
header:
|
|
84
|
-
close: D,
|
|
80
|
+
header: D,
|
|
85
81
|
buttons: H
|
|
86
82
|
}, j = {
|
|
87
83
|
$style: W
|
|
88
|
-
},
|
|
84
|
+
}, J = /* @__PURE__ */ U(S, [["__cssModules", j]]);
|
|
89
85
|
export {
|
|
90
|
-
|
|
86
|
+
J as default
|
|
91
87
|
};
|
|
@@ -20,8 +20,8 @@ declare const _default: import('vue').DefineComponent<IProps, {}, {}, {}, {}, im
|
|
|
20
20
|
error: string | boolean;
|
|
21
21
|
label: string;
|
|
22
22
|
file: File;
|
|
23
|
-
files: File[] | never[];
|
|
24
23
|
extensions: string[];
|
|
24
|
+
files: File[] | never[];
|
|
25
25
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
26
26
|
input: HTMLInputElement;
|
|
27
27
|
}, HTMLDivElement>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,21 +1,22 @@
|
|
|
1
|
+
export { default as UiBreadcrumbs } from './UiBreadcrumbs/UiBreadcrumbs';
|
|
1
2
|
export { default as UiButton } from './UiButton/UiButton';
|
|
3
|
+
export { default as UiCalendar } from './UiCalendar/UiCalendar';
|
|
4
|
+
export { default as UiChart } from './UiChart/UiChart';
|
|
5
|
+
export { default as UiCheckbox } from './UiCheckbox/UiCheckbox';
|
|
6
|
+
export { default as UiChip } from './UiChip/UiChip';
|
|
7
|
+
export { default as UiClose } from './UiClose/UiClose';
|
|
8
|
+
export { default as UiEditor } from './UiEditor/UiEditor';
|
|
2
9
|
export { default as UiField } from './UiField/UiField';
|
|
10
|
+
export { default as UiFlex } from './UiFlex/UiFlex';
|
|
3
11
|
export { default as UiInput } from './UiInput/UiInput';
|
|
4
|
-
export { default as UiTable } from './UiTable/UiTable';
|
|
5
|
-
export { default as UiUpload } from './UiUpload/UiUpload';
|
|
6
|
-
export { default as UiSelect } from './UiSelect/UiSelect';
|
|
7
|
-
export { default as UiEditor } from './UiEditor/UiEditor';
|
|
8
|
-
export { default as UiPagination } from './UiPagination/UiPagination';
|
|
9
|
-
export { default as UiCheckbox } from './UiCheckbox/UiCheckbox';
|
|
10
12
|
export { default as UiModal } from './UiModal/UiModal';
|
|
11
|
-
export { default as
|
|
12
|
-
export { default as UiSearch } from './UiSearch/UiSearch';
|
|
13
|
+
export { default as UiPagination } from './UiPagination/UiPagination';
|
|
13
14
|
export { default as UiRange } from './UiRange/UiRange';
|
|
14
|
-
export { default as
|
|
15
|
+
export { default as UiSearch } from './UiSearch/UiSearch';
|
|
16
|
+
export { default as UiSelect } from './UiSelect/UiSelect';
|
|
15
17
|
export { default as UiSpoiler } from './UiSpoiler/UiSpoiler';
|
|
16
|
-
export { default as
|
|
17
|
-
export { default as
|
|
18
|
-
export { default as
|
|
19
|
-
export { default as UiCalendar } from './UiCalendar/UiCalendar';
|
|
18
|
+
export { default as UiSlider } from './UiSlider/UiSlider';
|
|
19
|
+
export { default as UiTable } from './UiTable/UiTable';
|
|
20
|
+
export { default as UiUpload } from './UiUpload/UiUpload';
|
|
20
21
|
export { default as toast } from './toast/toast';
|
|
21
22
|
export { uiStubs } from './stubs/stubs';
|
package/dist/index.js
CHANGED
|
@@ -1,21 +1,22 @@
|
|
|
1
|
+
export { default as UiBreadcrumbs } from './UiBreadcrumbs/UiBreadcrumbs.js';
|
|
1
2
|
export { default as UiButton } from './UiButton/UiButton.js';
|
|
3
|
+
export { default as UiCalendar } from './UiCalendar/UiCalendar.js';
|
|
4
|
+
export { default as UiChart } from './UiChart/UiChart.js';
|
|
5
|
+
export { default as UiCheckbox } from './UiCheckbox/UiCheckbox.js';
|
|
6
|
+
export { default as UiChip } from './UiChip/UiChip.js';
|
|
7
|
+
export { default as UiClose } from './UiClose/UiClose.js';
|
|
8
|
+
export { default as UiEditor } from './UiEditor/UiEditor.js';
|
|
2
9
|
export { default as UiField } from './UiField/UiField.js';
|
|
10
|
+
export { default as UiFlex } from './UiFlex/UiFlex.js';
|
|
3
11
|
export { default as UiInput } from './UiInput/UiInput.js';
|
|
4
|
-
export { default as UiTable } from './UiTable/UiTable.js';
|
|
5
|
-
export { default as UiUpload } from './UiUpload/UiUpload.js';
|
|
6
|
-
export { default as UiSelect } from './UiSelect/UiSelect.js';
|
|
7
|
-
export { default as UiEditor } from './UiEditor/UiEditor.js';
|
|
8
|
-
export { default as UiPagination } from './UiPagination/UiPagination.js';
|
|
9
|
-
export { default as UiCheckbox } from './UiCheckbox/UiCheckbox.js';
|
|
10
12
|
export { default as UiModal } from './UiModal/UiModal.js';
|
|
11
|
-
export { default as
|
|
12
|
-
export { default as UiSearch } from './UiSearch/UiSearch.js';
|
|
13
|
+
export { default as UiPagination } from './UiPagination/UiPagination.js';
|
|
13
14
|
export { default as UiRange } from './UiRange/UiRange.js';
|
|
14
|
-
export { default as
|
|
15
|
+
export { default as UiSearch } from './UiSearch/UiSearch.js';
|
|
16
|
+
export { default as UiSelect } from './UiSelect/UiSelect.js';
|
|
15
17
|
export { default as UiSpoiler } from './UiSpoiler/UiSpoiler.js';
|
|
16
|
-
export { default as
|
|
17
|
-
export { default as
|
|
18
|
-
export { default as
|
|
19
|
-
export { default as UiCalendar } from './UiCalendar/UiCalendar.js';
|
|
18
|
+
export { default as UiSlider } from './UiSlider/UiSlider.js';
|
|
19
|
+
export { default as UiTable } from './UiTable/UiTable.js';
|
|
20
|
+
export { default as UiUpload } from './UiUpload/UiUpload.js';
|
|
20
21
|
export { default as toast } from './toast/toast.js';
|
|
21
22
|
export { uiStubs } from './stubs/stubs.js';
|
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.126",
|
|
5
5
|
"author": "Alexandr Dergunov <dergunovs@mail.ru> (https://github.com/dergunovs)",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"type": "module",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"vue-router": "4.5.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@eslint/js": "9.
|
|
42
|
+
"@eslint/js": "9.19.0",
|
|
43
43
|
"@storybook/addon-essentials": "8.5.1",
|
|
44
44
|
"@storybook/addon-interactions": "8.5.1",
|
|
45
45
|
"@storybook/addon-links": "8.5.1",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"@vitejs/plugin-vue": "5.2.1",
|
|
53
53
|
"@vitest/coverage-v8": "3.0.4",
|
|
54
54
|
"@vue/test-utils": "2.4.6",
|
|
55
|
-
"eslint": "9.
|
|
55
|
+
"eslint": "9.19.0",
|
|
56
56
|
"eslint-config-prettier": "10.0.1",
|
|
57
57
|
"eslint-import-resolver-typescript": "3.7.0",
|
|
58
58
|
"eslint-plugin-import-x": "4.6.1",
|