mhz-ui 1.3.21 → 1.3.23

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.
Files changed (59) hide show
  1. package/dist/UiBreadcrumbs/UiBreadcrumbs.css +1 -1
  2. package/dist/UiBreadcrumbs/UiBreadcrumbs.js +61 -63
  3. package/dist/UiButton/UiButton.css +1 -1
  4. package/dist/UiButton/UiButton.js +2 -41
  5. package/dist/UiButton-DkJNVTgF.js +45 -0
  6. package/dist/UiButtongroup/UiButtongroup.css +1 -1
  7. package/dist/UiButtongroup/UiButtongroup.js +50 -60
  8. package/dist/UiCalendar/UiCalendar.css +1 -1
  9. package/dist/UiCalendar/UiCalendar.js +128 -157
  10. package/dist/UiChart/UiChart.css +1 -1
  11. package/dist/UiChart/UiChart.js +7573 -8093
  12. package/dist/UiCheckbox/UiCheckbox.css +1 -1
  13. package/dist/UiCheckbox/UiCheckbox.js +116 -105
  14. package/dist/UiChip/UiChip.css +1 -1
  15. package/dist/UiChip/UiChip.js +48 -56
  16. package/dist/UiClose/UiClose.css +1 -1
  17. package/dist/UiClose/UiClose.js +2 -33
  18. package/dist/UiClose-BQmeCbRi.js +22 -0
  19. package/dist/UiEditor/UiEditor.css +1 -1
  20. package/dist/UiEditor/UiEditor.js +13012 -16496
  21. package/dist/UiField/UiField.css +1 -1
  22. package/dist/UiField/UiField.js +29 -42
  23. package/dist/UiFlex/UiFlex.css +1 -1
  24. package/dist/UiFlex/UiFlex.js +42 -43
  25. package/dist/UiInput/UiInput.css +1 -1
  26. package/dist/UiInput/UiInput.js +2 -125
  27. package/dist/UiInput-DHFttLTG.js +133 -0
  28. package/dist/UiModal/UiModal.css +1 -1
  29. package/dist/UiModal/UiModal.js +74 -106
  30. package/dist/UiPagination/UiPagination.css +1 -1
  31. package/dist/UiPagination/UiPagination.js +50 -58
  32. package/dist/UiRange/UiRange.css +1 -1
  33. package/dist/UiRange/UiRange.js +1384 -918
  34. package/dist/UiSearch/UiSearch.css +1 -1
  35. package/dist/UiSearch/UiSearch.js +118 -143
  36. package/dist/UiSelect/UiSelect.css +1 -1
  37. package/dist/UiSelect/UiSelect.js +167 -171
  38. package/dist/UiSlider/UiSlider.css +1 -1
  39. package/dist/UiSlider/UiSlider.js +41 -56
  40. package/dist/UiSpoiler/UiSpoiler.css +1 -1
  41. package/dist/UiSpoiler/UiSpoiler.js +51 -79
  42. package/dist/UiTable/UiTable.css +1 -1
  43. package/dist/UiTable/UiTable.js +76 -97
  44. package/dist/UiTabs/UiTabs.css +1 -1
  45. package/dist/UiTabs/UiTabs.js +24 -32
  46. package/dist/UiTextarea/UiTextarea.css +1 -1
  47. package/dist/UiTextarea/UiTextarea.js +25 -31
  48. package/dist/UiUpload/UiUpload.css +1 -1
  49. package/dist/UiUpload/UiUpload.js +123 -166
  50. package/dist/_plugin-vue_export-helper-Bt71PsSa.js +6 -0
  51. package/dist/dist-CLA-k87a.js +109 -0
  52. package/dist/locales-DIKIa9I3.js +29 -0
  53. package/dist/stubs/stubs.js +13 -15
  54. package/dist/toast/toast.css +1 -1
  55. package/dist/toast/toast.js +43 -41
  56. package/package.json +29 -29
  57. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
  58. package/dist/index-DajWja1y.js +0 -31
  59. package/dist/index-Dvnq-rTV.js +0 -109
@@ -1 +1 @@
1
- ._field_1yogc_1{display:flex;flex-grow:1;flex-direction:column;gap:4px;width:100%}._error_1yogc_9{color:var(--color-error)}.dark ._label_1yogc_13{color:var(--color-white)}
1
+ ._field_1yogc_1{flex-direction:column;flex-grow:1;gap:4px;width:100%;display:flex}._error_1yogc_9{color:var(--color-error)}.dark ._label_1yogc_13{color:var(--color-white)}
@@ -1,43 +1,30 @@
1
1
  import "./UiField.css";
2
- import { defineComponent as c, createElementBlock as o, openBlock as s, normalizeClass as r, createElementVNode as t, createCommentVNode as n, toDisplayString as a, renderSlot as d } from "vue";
3
- import { _ as p } from "../_plugin-vue_export-helper-CHgC5LLL.js";
4
- const _ = /* @__PURE__ */ c({
5
- __name: "UiField",
6
- props: {
7
- label: {},
8
- error: { type: [String, Boolean] },
9
- isRequired: { type: Boolean }
10
- },
11
- setup(i) {
12
- const l = i;
13
- return (e, $) => (s(), o("div", {
14
- class: r(e.$style.field)
15
- }, [
16
- t("label", null, [
17
- t("span", {
18
- class: r(e.$style.label)
19
- }, a(l.label), 3),
20
- l.isRequired ? (s(), o("span", {
21
- key: 0,
22
- class: r(e.$style.error)
23
- }, "*", 2)) : n("", !0)
24
- ]),
25
- t("div", null, [
26
- d(e.$slots, "default")
27
- ]),
28
- l.error ? (s(), o("div", {
29
- key: 0,
30
- class: r(e.$style.error)
31
- }, a(l.error), 3)) : n("", !0)
32
- ], 2));
33
- }
34
- }), y = "_field_1yogc_1", u = "_error_1yogc_9", m = "_label_1yogc_13", f = {
35
- field: y,
36
- error: u,
37
- label: m
38
- }, b = {
39
- $style: f
40
- }, B = /* @__PURE__ */ p(_, [["__cssModules", b]]);
41
- export {
42
- B as default
43
- };
2
+ import { t as _plugin_vue_export_helper_default } from "../_plugin-vue_export-helper-Bt71PsSa.js";
3
+ import { createCommentVNode, createElementBlock, createElementVNode, defineComponent, normalizeClass, openBlock, renderSlot, toDisplayString } from "vue";
4
+ var UiField_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
5
+ __name: "UiField",
6
+ props: {
7
+ label: {},
8
+ error: { type: [String, Boolean] },
9
+ isRequired: { type: Boolean }
10
+ },
11
+ setup(e) {
12
+ let t = e;
13
+ return (e, n) => (openBlock(), createElementBlock("div", { class: normalizeClass(e.$style.field) }, [
14
+ createElementVNode("label", null, [createElementVNode("span", { class: normalizeClass(e.$style.label) }, toDisplayString(t.label), 3), t.isRequired ? (openBlock(), createElementBlock("span", {
15
+ key: 0,
16
+ class: normalizeClass(e.$style.error)
17
+ }, "*", 2)) : createCommentVNode("", !0)]),
18
+ createElementVNode("div", null, [renderSlot(e.$slots, "default")]),
19
+ t.error ? (openBlock(), createElementBlock("div", {
20
+ key: 0,
21
+ class: normalizeClass(e.$style.error)
22
+ }, toDisplayString(t.error), 3)) : createCommentVNode("", !0)
23
+ ], 2));
24
+ }
25
+ }), [["__cssModules", { $style: {
26
+ field: "_field_1yogc_1",
27
+ error: "_error_1yogc_9",
28
+ label: "_label_1yogc_13"
29
+ } }]]);
30
+ export { UiField_default as default };
@@ -1 +1 @@
1
- ._flex_qq3eu_1{display:flex;flex-direction:var(--bd0c91ae);flex-wrap:var(--v45af6241);gap:var(--v78b561f9);align-items:var(--v0f8a4d32);justify-content:var(--a3abe380)}.dark ._flex_qq3eu_1{color:var(--color-white)}
1
+ ._flex_qq3eu_1{flex-direction:var(--bd0c91ae);flex-wrap:var(--v45af6241);gap:var(--v78b561f9);align-items:var(--v0f8a4d32);justify-content:var(--a3abe380);display:flex}.dark ._flex_qq3eu_1{color:var(--color-white)}
@@ -1,44 +1,43 @@
1
1
  import "./UiFlex.css";
2
- import { defineComponent as p, useCssVars as d, computed as t, createBlock as r, openBlock as f, resolveDynamicComponent as m, normalizeClass as i, withCtx as _, renderSlot as g } from "vue";
3
- import { _ as y } from "../_plugin-vue_export-helper-CHgC5LLL.js";
4
- const x = "div", C = "normal", v = "normal", w = "8", A = /* @__PURE__ */ p({
5
- __name: "UiFlex",
6
- props: {
7
- tag: { default: x },
8
- column: { type: Boolean },
9
- align: { default: C },
10
- justify: { default: v },
11
- wrap: { type: Boolean },
12
- gap: { default: w }
13
- },
14
- setup(o) {
15
- d((e) => ({
16
- bd0c91ae: s.value,
17
- v45af6241: u.value,
18
- v78b561f9: c.value,
19
- v0f8a4d32: l.value,
20
- a3abe380: n.value
21
- }));
22
- const a = o, s = t(() => a.column ? "column" : "row"), l = t(() => a.align), n = t(() => a.justify), u = t(() => a.wrap ? "wrap" : "nowrap"), c = t(() => a.gap ? `${a.gap}px` : "0");
23
- return (e, D) => (f(), r(m(a.tag), {
24
- class: i(e.$style.flex),
25
- "data-column": a.column,
26
- "data-align": a.align,
27
- "data-justify": a.justify,
28
- "data-wrap": a.wrap,
29
- "data-gap": a.gap
30
- }, {
31
- default: _(() => [
32
- g(e.$slots, "default")
33
- ]),
34
- _: 3
35
- }, 8, ["class", "data-column", "data-align", "data-justify", "data-wrap", "data-gap"]));
36
- }
37
- }), F = "_flex_qq3eu_1", U = {
38
- flex: F
39
- }, j = {
40
- $style: U
41
- }, B = /* @__PURE__ */ y(A, [["__cssModules", j]]);
42
- export {
43
- B as default
44
- };
2
+ import { t as _plugin_vue_export_helper_default } from "../_plugin-vue_export-helper-Bt71PsSa.js";
3
+ import { computed, createBlock, defineComponent, normalizeClass, openBlock, renderSlot, resolveDynamicComponent, useCssVars, withCtx } from "vue";
4
+ var UiFlex_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
5
+ __name: "UiFlex",
6
+ props: {
7
+ tag: { default: "div" },
8
+ column: { type: Boolean },
9
+ align: { default: "normal" },
10
+ justify: { default: "normal" },
11
+ wrap: { type: Boolean },
12
+ gap: { default: "8" }
13
+ },
14
+ setup(e) {
15
+ useCssVars((e) => ({
16
+ bd0c91ae: r.value,
17
+ v45af6241: o.value,
18
+ v78b561f9: s.value,
19
+ v0f8a4d32: i.value,
20
+ a3abe380: a.value
21
+ }));
22
+ let n = e, r = computed(() => n.column ? "column" : "row"), i = computed(() => n.align), a = computed(() => n.justify), o = computed(() => n.wrap ? "wrap" : "nowrap"), s = computed(() => n.gap ? `${n.gap}px` : "0");
23
+ return (e, t) => (openBlock(), createBlock(resolveDynamicComponent(n.tag), {
24
+ class: normalizeClass(e.$style.flex),
25
+ "data-column": n.column,
26
+ "data-align": n.align,
27
+ "data-justify": n.justify,
28
+ "data-wrap": n.wrap,
29
+ "data-gap": n.gap
30
+ }, {
31
+ default: withCtx(() => [renderSlot(e.$slots, "default")]),
32
+ _: 3
33
+ }, 8, [
34
+ "class",
35
+ "data-column",
36
+ "data-align",
37
+ "data-justify",
38
+ "data-wrap",
39
+ "data-gap"
40
+ ]));
41
+ }
42
+ }), [["__cssModules", { $style: { flex: "_flex_qq3eu_1" } }]]);
43
+ export { UiFlex_default as default };
@@ -1 +1 @@
1
- ._inputBlock_1ijjn_1{position:relative;display:flex;width:100%;border-radius:16px}._inputBlock_1ijjn_1[data-mode=select]{cursor:pointer}._inputBlock_1ijjn_1[data-mode=select]:hover ._input_1ijjn_1{border:1px solid var(--color-gray-dark-extra)}._input_1ijjn_1{width:100%;height:40px;padding:0 16px;font-size:1rem;outline:none;border:1px solid var(--color-gray);border-radius:16px}._input_1ijjn_1:hover{border:1px solid var(--color-gray-dark-extra)}._input_1ijjn_1:focus{border:1px solid var(--color-primary)}._input_1ijjn_1:disabled{color:var(--color-gray-dark-extra);background:var(--color-gray-light-extra);border-color:var(--color-transparent)}._input_1ijjn_1::placeholder{color:var(--color-gray-dark-extra)}._input_1ijjn_1[data-mode=select]{pointer-events:none}._input_1ijjn_1[data-append-icon=true]{padding-right:40px}._input_1ijjn_1[data-center=true]{text-align:center}._icon_1ijjn_47{position:absolute;top:calc(50% - 8px);right:12px;color:var(--color-gray-dark);cursor:pointer}._icon_1ijjn_47[data-password=true]{top:calc(50% - 12px);width:24px;height:24px}.dark ._input_1ijjn_1{background-color:var(--color-gray-dark);border:1px solid var(--color-gray-dark-extra)}.dark ._icon_1ijjn_47{color:var(--color-gray-dark-extra)}
1
+ ._inputBlock_1ijjn_1{border-radius:16px;width:100%;display:flex;position:relative}._inputBlock_1ijjn_1[data-mode=select]{cursor:pointer}._inputBlock_1ijjn_1[data-mode=select]:hover ._input_1ijjn_1{border:1px solid var(--color-gray-dark-extra)}._input_1ijjn_1{border:1px solid var(--color-gray);border-radius:16px;outline:none;width:100%;height:40px;padding:0 16px;font-size:1rem}._input_1ijjn_1:hover{border:1px solid var(--color-gray-dark-extra)}._input_1ijjn_1:focus{border:1px solid var(--color-primary)}._input_1ijjn_1:disabled{color:var(--color-gray-dark-extra);background:var(--color-gray-light-extra);border-color:var(--color-transparent)}._input_1ijjn_1::placeholder{color:var(--color-gray-dark-extra)}._input_1ijjn_1[data-mode=select]{pointer-events:none}._input_1ijjn_1[data-append-icon=true]{padding-right:40px}._input_1ijjn_1[data-center=true]{text-align:center}._icon_1ijjn_47{color:var(--color-gray-dark);cursor:pointer;position:absolute;top:calc(50% - 8px);right:12px}._icon_1ijjn_47[data-password=true]{width:24px;height:24px;top:calc(50% - 12px)}.dark ._input_1ijjn_1{background-color:var(--color-gray-dark);border:1px solid var(--color-gray-dark-extra)}.dark ._icon_1ijjn_47{color:var(--color-gray-dark-extra)}
@@ -1,126 +1,3 @@
1
1
  import "./UiInput.css";
2
- import { createElementBlock as d, openBlock as a, createElementVNode as n, defineComponent as h, ref as p, computed as C, onMounted as g, nextTick as _, normalizeClass as m, withKeys as z, createBlock as k, createCommentVNode as x, mergeProps as B, resolveDynamicComponent as M } from "vue";
3
- import { _ as b } from "../_plugin-vue_export-helper-CHgC5LLL.js";
4
- const I = {
5
- xmlns: "http://www.w3.org/2000/svg",
6
- width: "16",
7
- height: "16",
8
- fill: "none"
9
- };
10
- function P(i, t) {
11
- return a(), d("svg", I, [...t[0] || (t[0] = [
12
- n("path", {
13
- fill: "currentColor",
14
- "fill-rule": "evenodd",
15
- d: "M11.5 11.5v-1c.25.005 2.485-.016 2.734-.031q.65-.086.735-.735.03-4 0-8-.086-.648-.735-.734-4-.03-8 0-.648.086-.734.734c-.016.25-.005 1.516 0 1.766h-1a69 69 0 0 1 0-2.078Q4.773.273 5.922 0q4.313-.03 8.625 0 1.148.273 1.422 1.422.03 4.313 0 8.625-.273 1.148-1.422 1.422c-.354.015-2.693.036-3.047.031",
16
- "clip-rule": "evenodd"
17
- }, null, -1),
18
- n("path", {
19
- fill: "currentColor",
20
- "fill-rule": "evenodd",
21
- d: "M2.5 3.5h1c2.2-.005 4.8-.016 7 0 .923.197 1.285.578 1.5 1.5.016 2.217-.029 5.131-.034 7.348v1.044q.217 1.445-.943 2.298-.36.229-.78.294-4.26.031-8.52 0-1.384-.295-1.707-1.68A666 666 0 0 1 0 5c.215-.922.577-1.303 1.5-1.5.292-.016.707-.005 1 0m-.5 1c2.601-.005 5.399-.016 8 0 .623.06.94.375 1 1 .022 2.608-.07 5.805-.091 8.413q-.09.938-1.024 1.027-3.903.033-7.804 0-.935-.09-1.024-1.027C1.035 11.305.978 8.108 1 5.5c0-.697.383-.93 1-1",
22
- "clip-rule": "evenodd"
23
- }, null, -1)
24
- ])]);
25
- }
26
- const $ = { render: P }, V = {
27
- xmlns: "http://www.w3.org/2000/svg",
28
- width: "16",
29
- height: "16",
30
- fill: "none",
31
- viewBox: "0 0 24 24"
32
- };
33
- function j(i, t) {
34
- return a(), d("svg", V, [...t[0] || (t[0] = [
35
- n("path", {
36
- stroke: "currentColor",
37
- "stroke-width": "1.5",
38
- d: "M3.275 15.296C2.425 14.192 2 13.639 2 12c0-1.64.425-2.191 1.275-3.296C4.972 6.5 7.818 4 12 4s7.028 2.5 8.725 4.704C21.575 9.81 22 10.361 22 12c0 1.64-.425 2.191-1.275 3.296C19.028 17.5 16.182 20 12 20s-7.028-2.5-8.725-4.704Z"
39
- }, null, -1),
40
- n("path", {
41
- stroke: "currentColor",
42
- "stroke-width": "1.5",
43
- d: "M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"
44
- }, null, -1)
45
- ])]);
46
- }
47
- const q = { render: j }, S = {
48
- xmlns: "http://www.w3.org/2000/svg",
49
- width: "16",
50
- height: "16",
51
- fill: "none",
52
- viewBox: "0 -3 24 24"
53
- };
54
- function D(i, t) {
55
- return a(), d("svg", S, [...t[0] || (t[0] = [
56
- n("path", {
57
- fill: "currentColor",
58
- d: "M2.69 6.705a.75.75 0 0 0-1.38.59zm12.897 6.624-.274-.698zm-6.546.409a.75.75 0 1 0-1.257-.818zm-2.67 1.353a.75.75 0 1 0 1.258.818zM22.69 7.295a.75.75 0 0 0-1.378-.59zM19 11.13l-.513-.547zm.97 2.03a.75.75 0 1 0 1.06-1.06zM11.25 16.5a.75.75 0 0 0 1.5 0zm5.121-.591a.75.75 0 1 0 1.258-.818zm-10.84-4.25A.75.75 0 0 0 4.47 10.6zm-2.561.44a.75.75 0 0 0 1.06 1.06zM12 13.25c-3.224 0-5.539-1.605-7.075-3.26a13.6 13.6 0 0 1-1.702-2.28 12 12 0 0 1-.507-.946l-.022-.049-.004-.01-.001-.001L2 7l-.69.296h.001l.001.003.003.006.04.088q.039.088.117.243c.103.206.256.496.462.841.41.69 1.035 1.61 1.891 2.533C5.54 12.855 8.224 14.75 12 14.75zm3.313-.62c-.97.383-2.071.62-3.313.62v1.5c1.438 0 2.725-.276 3.862-.723zm-7.529.29L6.371 15.09l1.258.818 1.412-2.171zM22 7l-.69-.296h.001v.002l-.007.013-.028.062a12.349 12.349 0 0 1-.64 1.162 13.3 13.3 0 0 1-2.15 2.639l1.027 1.094a14.8 14.8 0 0 0 3.122-4.26l.039-.085.01-.024.004-.007v-.003h.001v-.001zm-3.513 3.582c-.86.806-1.913 1.552-3.174 2.049l.549 1.396c1.473-.58 2.685-1.444 3.651-2.351zm-.017 1.077 1.5 1.5 1.06-1.06-1.5-1.5zM11.25 14v2.5h1.5V14zm3.709-.262 1.412 2.171 1.258-.818-1.413-2.171zm-10.49-3.14-1.5 1.5L4.03 13.16l1.5-1.5z"
59
- }, null, -1)
60
- ])]);
61
- }
62
- const F = { render: D }, L = ["data-mode", "tabindex"], N = ["value", "disabled", "type", "data-mode", "data-center", "data-append-icon", "tabindex"], A = /* @__PURE__ */ h({
63
- __name: "UiInput",
64
- props: {
65
- modelValue: { type: [String, Number, Boolean, null], default: "" },
66
- type: { default: "text" },
67
- isDisabled: { type: Boolean },
68
- mode: { default: "default" },
69
- appendIcon: { type: [Function, Object], default: void 0 },
70
- isFocus: { type: Boolean },
71
- isCenter: { type: Boolean },
72
- isCopy: { type: Boolean },
73
- isPassword: { type: Boolean }
74
- },
75
- emits: ["update:modelValue", "toggle"],
76
- setup(i, { emit: t, attrs: w }) {
77
- const e = i, r = t, u = p(), l = p(!1), f = C(() => e.isCopy ? $ : e.isPassword && l.value ? q : e.isPassword && !l.value ? F : e.appendIcon);
78
- function v(s) {
79
- r("update:modelValue", s.value);
80
- }
81
- function y() {
82
- e.isCopy && e.modelValue && navigator.clipboard.writeText(e.modelValue.toString()), e.isPassword && (l.value = !l.value);
83
- }
84
- return g(async () => {
85
- e.isFocus && (await _(), u.value?.focus());
86
- }), (s, o) => (a(), d("div", {
87
- onClick: o[1] || (o[1] = (c) => r("toggle")),
88
- onKeydown: o[2] || (o[2] = z((c) => r("toggle"), ["space"])),
89
- class: m(s.$style.inputBlock),
90
- "data-mode": e.mode,
91
- tabindex: e.mode === "default" ? "-1" : "0"
92
- }, [
93
- n("input", B({
94
- value: e.modelValue,
95
- onInput: o[0] || (o[0] = (c) => v(c.target)),
96
- disabled: e.isDisabled,
97
- class: s.$style.input,
98
- ref_key: "input",
99
- ref: u
100
- }, w, {
101
- type: e.isPassword && !l.value ? "password" : e.type,
102
- "data-mode": e.mode,
103
- "data-center": e.isCenter,
104
- "data-append-icon": !!e.appendIcon || e.isCopy || e.isPassword,
105
- tabindex: e.mode === "default" ? "0" : "-1",
106
- "aria-label": "input"
107
- }), null, 16, N),
108
- e.appendIcon || e.isCopy || e.isPassword ? (a(), k(M(f.value), {
109
- key: 0,
110
- onClick: y,
111
- class: m(s.$style.icon),
112
- "data-copy": e.isCopy,
113
- "data-password": e.isPassword
114
- }, null, 8, ["class", "data-copy", "data-password"])) : x("", !0)
115
- ], 42, L));
116
- }
117
- }), E = "_inputBlock_1ijjn_1", K = "_input_1ijjn_1", T = "_icon_1ijjn_47", U = {
118
- inputBlock: E,
119
- input: K,
120
- icon: T
121
- }, Z = {
122
- $style: U
123
- }, Q = /* @__PURE__ */ b(A, [["__cssModules", Z]]);
124
- export {
125
- Q as default
126
- };
2
+ import { t as UiInput_default } from "../UiInput-DHFttLTG.js";
3
+ export { UiInput_default as default };
@@ -0,0 +1,133 @@
1
+ import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper-Bt71PsSa.js";
2
+ import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, mergeProps, nextTick, normalizeClass, onMounted, openBlock, ref, resolveDynamicComponent, withKeys } from "vue";
3
+ var _hoisted_1$3 = {
4
+ xmlns: "http://www.w3.org/2000/svg",
5
+ width: "16",
6
+ height: "16",
7
+ fill: "none"
8
+ };
9
+ function render$2(e, t) {
10
+ return openBlock(), createElementBlock("svg", _hoisted_1$3, [...t[0] ||= [createElementVNode("path", {
11
+ fill: "currentColor",
12
+ "fill-rule": "evenodd",
13
+ d: "M11.5 11.5v-1c.25.005 2.485-.016 2.734-.031q.65-.086.735-.735.03-4 0-8-.086-.648-.735-.734-4-.03-8 0-.648.086-.734.734c-.016.25-.005 1.516 0 1.766h-1a69 69 0 0 1 0-2.078Q4.773.273 5.922 0q4.313-.03 8.625 0 1.148.273 1.422 1.422.03 4.313 0 8.625-.273 1.148-1.422 1.422c-.354.015-2.693.036-3.047.031",
14
+ "clip-rule": "evenodd"
15
+ }, null, -1), createElementVNode("path", {
16
+ fill: "currentColor",
17
+ "fill-rule": "evenodd",
18
+ d: "M2.5 3.5h1c2.2-.005 4.8-.016 7 0 .923.197 1.285.578 1.5 1.5.016 2.217-.029 5.131-.034 7.348v1.044q.217 1.445-.943 2.298-.36.229-.78.294-4.26.031-8.52 0-1.384-.295-1.707-1.68A666 666 0 0 1 0 5c.215-.922.577-1.303 1.5-1.5.292-.016.707-.005 1 0m-.5 1c2.601-.005 5.399-.016 8 0 .623.06.94.375 1 1 .022 2.608-.07 5.805-.091 8.413q-.09.938-1.024 1.027-3.903.033-7.804 0-.935-.09-1.024-1.027C1.035 11.305.978 8.108 1 5.5c0-.697.383-.93 1-1",
19
+ "clip-rule": "evenodd"
20
+ }, null, -1)]]);
21
+ }
22
+ var copy_default = { render: render$2 }, _hoisted_1$2 = {
23
+ xmlns: "http://www.w3.org/2000/svg",
24
+ width: "16",
25
+ height: "16",
26
+ fill: "none",
27
+ viewBox: "0 0 24 24"
28
+ };
29
+ function render$1(e, t) {
30
+ return openBlock(), createElementBlock("svg", _hoisted_1$2, [...t[0] ||= [createElementVNode("path", {
31
+ stroke: "currentColor",
32
+ "stroke-width": "1.5",
33
+ d: "M3.275 15.296C2.425 14.192 2 13.639 2 12c0-1.64.425-2.191 1.275-3.296C4.972 6.5 7.818 4 12 4s7.028 2.5 8.725 4.704C21.575 9.81 22 10.361 22 12c0 1.64-.425 2.191-1.275 3.296C19.028 17.5 16.182 20 12 20s-7.028-2.5-8.725-4.704Z"
34
+ }, null, -1), createElementVNode("path", {
35
+ stroke: "currentColor",
36
+ "stroke-width": "1.5",
37
+ d: "M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"
38
+ }, null, -1)]]);
39
+ }
40
+ var password_hide_default = { render: render$1 }, _hoisted_1$1 = {
41
+ xmlns: "http://www.w3.org/2000/svg",
42
+ width: "16",
43
+ height: "16",
44
+ fill: "none",
45
+ viewBox: "0 -3 24 24"
46
+ };
47
+ function render(e, t) {
48
+ return openBlock(), createElementBlock("svg", _hoisted_1$1, [...t[0] ||= [createElementVNode("path", {
49
+ fill: "currentColor",
50
+ d: "M2.69 6.705a.75.75 0 0 0-1.38.59zm12.897 6.624-.274-.698zm-6.546.409a.75.75 0 1 0-1.257-.818zm-2.67 1.353a.75.75 0 1 0 1.258.818zM22.69 7.295a.75.75 0 0 0-1.378-.59zM19 11.13l-.513-.547zm.97 2.03a.75.75 0 1 0 1.06-1.06zM11.25 16.5a.75.75 0 0 0 1.5 0zm5.121-.591a.75.75 0 1 0 1.258-.818zm-10.84-4.25A.75.75 0 0 0 4.47 10.6zm-2.561.44a.75.75 0 0 0 1.06 1.06zM12 13.25c-3.224 0-5.539-1.605-7.075-3.26a13.6 13.6 0 0 1-1.702-2.28 12 12 0 0 1-.507-.946l-.022-.049-.004-.01-.001-.001L2 7l-.69.296h.001l.001.003.003.006.04.088q.039.088.117.243c.103.206.256.496.462.841.41.69 1.035 1.61 1.891 2.533C5.54 12.855 8.224 14.75 12 14.75zm3.313-.62c-.97.383-2.071.62-3.313.62v1.5c1.438 0 2.725-.276 3.862-.723zm-7.529.29L6.371 15.09l1.258.818 1.412-2.171zM22 7l-.69-.296h.001v.002l-.007.013-.028.062a12.349 12.349 0 0 1-.64 1.162 13.3 13.3 0 0 1-2.15 2.639l1.027 1.094a14.8 14.8 0 0 0 3.122-4.26l.039-.085.01-.024.004-.007v-.003h.001v-.001zm-3.513 3.582c-.86.806-1.913 1.552-3.174 2.049l.549 1.396c1.473-.58 2.685-1.444 3.651-2.351zm-.017 1.077 1.5 1.5 1.06-1.06-1.5-1.5zM11.25 14v2.5h1.5V14zm3.709-.262 1.412 2.171 1.258-.818-1.413-2.171zm-10.49-3.14-1.5 1.5L4.03 13.16l1.5-1.5z"
51
+ }, null, -1)]]);
52
+ }
53
+ var password_show_default = { render }, _hoisted_1 = ["data-mode", "tabindex"], _hoisted_2 = [
54
+ "value",
55
+ "disabled",
56
+ "type",
57
+ "data-mode",
58
+ "data-center",
59
+ "data-append-icon",
60
+ "tabindex"
61
+ ], UiInput_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
62
+ __name: "UiInput",
63
+ props: {
64
+ modelValue: {
65
+ type: [
66
+ String,
67
+ Number,
68
+ Boolean,
69
+ null
70
+ ],
71
+ default: ""
72
+ },
73
+ type: { default: "text" },
74
+ isDisabled: { type: Boolean },
75
+ mode: { default: "default" },
76
+ appendIcon: {
77
+ type: [Function, Object],
78
+ default: void 0
79
+ },
80
+ isFocus: { type: Boolean },
81
+ isCenter: { type: Boolean },
82
+ isCopy: { type: Boolean },
83
+ isPassword: { type: Boolean }
84
+ },
85
+ emits: ["update:modelValue", "toggle"],
86
+ setup(e, { emit: n, attrs: r }) {
87
+ let i = e, a = n, o = ref(), s = ref(!1), c = computed(() => i.isCopy ? copy_default : i.isPassword && s.value ? password_hide_default : i.isPassword && !s.value ? password_show_default : i.appendIcon);
88
+ function l(e) {
89
+ a("update:modelValue", e.value);
90
+ }
91
+ function u() {
92
+ i.isCopy && i.modelValue && navigator.clipboard.writeText(i.modelValue.toString()), i.isPassword && (s.value = !s.value);
93
+ }
94
+ return onMounted(async () => {
95
+ i.isFocus && (await nextTick(), o.value?.focus());
96
+ }), (e, t) => (openBlock(), createElementBlock("div", {
97
+ onClick: t[1] ||= (e) => a("toggle"),
98
+ onKeydown: t[2] ||= withKeys((e) => a("toggle"), ["space"]),
99
+ class: normalizeClass(e.$style.inputBlock),
100
+ "data-mode": i.mode,
101
+ tabindex: i.mode === "default" ? "-1" : "0"
102
+ }, [createElementVNode("input", mergeProps({
103
+ value: i.modelValue,
104
+ onInput: t[0] ||= (e) => l(e.target),
105
+ disabled: i.isDisabled,
106
+ class: e.$style.input,
107
+ ref_key: "input",
108
+ ref: o
109
+ }, r, {
110
+ type: i.isPassword && !s.value ? "password" : i.type,
111
+ "data-mode": i.mode,
112
+ "data-center": i.isCenter,
113
+ "data-append-icon": !!i.appendIcon || i.isCopy || i.isPassword,
114
+ tabindex: i.mode === "default" ? "0" : "-1",
115
+ "aria-label": "input"
116
+ }), null, 16, _hoisted_2), i.appendIcon || i.isCopy || i.isPassword ? (openBlock(), createBlock(resolveDynamicComponent(c.value), {
117
+ key: 0,
118
+ onClick: u,
119
+ class: normalizeClass(e.$style.icon),
120
+ "data-copy": i.isCopy,
121
+ "data-password": i.isPassword
122
+ }, null, 8, [
123
+ "class",
124
+ "data-copy",
125
+ "data-password"
126
+ ])) : createCommentVNode("", !0)], 42, _hoisted_1));
127
+ }
128
+ }), [["__cssModules", { $style: {
129
+ inputBlock: "_inputBlock_1ijjn_1",
130
+ input: "_input_1ijjn_1",
131
+ icon: "_icon_1ijjn_47"
132
+ } }]]);
133
+ export { UiInput_default as t };
@@ -1 +1 @@
1
- ._backdrop_4wslz_1{position:fixed;inset:0;z-index:998;display:flex;align-items:center;justify-content:center;background-color:var(--color-gray-transparent)}._dialog_4wslz_11{z-index:999;padding:0;outline:none;background-color:var(--color-white);border:none;border-radius:16px}._modal_4wslz_20{display:flex;flex-direction:column;gap:12px;width:var(--e1cec160);max-width:100%;height:auto;min-height:200px;padding:24px;outline:none;box-shadow:0 0 16px 0 var(--color-gray-transparent)}._modal_4wslz_20[data-scrollable=true]{height:64dvh;overflow-y:auto}._header_4wslz_37{display:flex;justify-content:flex-end}._buttons_4wslz_42{display:flex;gap:16px}.dark ._modal_4wslz_20{background-color:var(--color-black);box-shadow:0 0 16px 0 var(--color-black-transparent)}.dark ._slot_4wslz_51{color:var(--color-white)}
1
+ ._backdrop_4wslz_1{z-index:998;background-color:var(--color-gray-transparent);justify-content:center;align-items:center;display:flex;position:fixed;inset:0}._dialog_4wslz_11{z-index:999;background-color:var(--color-white);border:none;border-radius:16px;outline:none;padding:0}._modal_4wslz_20{width:var(--e1cec160);max-width:100%;height:auto;min-height:200px;box-shadow:0 0 16px 0 var(--color-gray-transparent);outline:none;flex-direction:column;gap:12px;padding:24px;display:flex}._modal_4wslz_20[data-scrollable=true]{height:64dvh;overflow-y:auto}._header_4wslz_37{justify-content:flex-end;display:flex}._buttons_4wslz_42{gap:16px;display:flex}.dark ._modal_4wslz_20{background-color:var(--color-black);box-shadow:0 0 16px 0 var(--color-black-transparent)}.dark ._slot_4wslz_51{color:var(--color-white)}
@@ -1,107 +1,75 @@
1
1
  import "./UiModal.css";
2
- import { defineComponent as V, useCssVars as $, computed as z, ref as B, onMounted as S, watch as E, createBlock as N, openBlock as n, Teleport as U, createElementBlock as c, createCommentVNode as u, normalizeClass as t, createElementVNode as a, mergeProps as T, withModifiers as m, createVNode as d, renderSlot as A, withCtx as f, createTextVNode as p, toDisplayString as _, unref as y, nextTick as D } from "vue";
3
- import g from "../UiButton/UiButton.js";
4
- import R from "../UiClose/UiClose.js";
5
- import { M as w } from "../index-DajWja1y.js";
6
- import { _ as x } from "../_plugin-vue_export-helper-CHgC5LLL.js";
7
- const G = ["data-scrollable"], P = /* @__PURE__ */ V({
8
- inheritAttrs: !1,
9
- __name: "UiModal",
10
- props: {
11
- modelValue: { type: Boolean },
12
- isScrollable: { type: Boolean },
13
- isConfirm: { type: Boolean },
14
- width: { default: "360" },
15
- lang: { default: "ru" }
16
- },
17
- emits: ["update:modelValue", "confirm"],
18
- setup(h, { emit: k, attrs: C }) {
19
- $((e) => ({
20
- e1cec160: b.value
21
- }));
22
- const o = h, r = k, b = z(() => `${o.width}px`), s = B(null);
23
- function M() {
24
- D(() => {
25
- s.value?.open ? s.value.close() : s.value?.showModal();
26
- });
27
- }
28
- function v() {
29
- r("confirm"), l();
30
- }
31
- function l() {
32
- r("update:modelValue", !1);
33
- }
34
- return S(() => {
35
- E(
36
- () => o.modelValue,
37
- () => {
38
- M();
39
- },
40
- { immediate: !0 }
41
- );
42
- }), (e, i) => (n(), N(U, { to: "body" }, [
43
- o.modelValue ? (n(), c("div", {
44
- key: 0,
45
- class: t(e.$style.backdrop),
46
- onMousedown: l
47
- }, [
48
- a("dialog", T({
49
- ref_key: "dialogRef",
50
- ref: s,
51
- class: e.$style.dialog,
52
- onCancel: m(l, ["prevent"])
53
- }, C), [
54
- a("div", {
55
- class: t(e.$style.modal),
56
- onMousedown: i[0] || (i[0] = m(() => {
57
- }, ["stop"])),
58
- "data-scrollable": o.isScrollable
59
- }, [
60
- a("div", {
61
- class: t(e.$style.header)
62
- }, [
63
- d(R, { onClick: l })
64
- ], 2),
65
- a("div", {
66
- class: t(e.$style.slot)
67
- }, [
68
- A(e.$slots, "default")
69
- ], 2),
70
- o.isConfirm ? (n(), c("div", {
71
- key: 0,
72
- class: t(e.$style.buttons)
73
- }, [
74
- d(g, { onClick: v }, {
75
- default: f(() => [
76
- p(_(y(w)[o.lang].confirm), 1)
77
- ]),
78
- _: 1
79
- }),
80
- d(g, {
81
- layout: "secondary",
82
- onClick: l
83
- }, {
84
- default: f(() => [
85
- p(_(y(w)[o.lang].cancel), 1)
86
- ]),
87
- _: 1
88
- })
89
- ], 2)) : u("", !0)
90
- ], 42, G)
91
- ], 16)
92
- ], 34)) : u("", !0)
93
- ]));
94
- }
95
- }), j = "_backdrop_4wslz_1", q = "_dialog_4wslz_11", F = "_modal_4wslz_20", H = "_header_4wslz_37", I = "_buttons_4wslz_42", J = "_slot_4wslz_51", K = {
96
- backdrop: j,
97
- dialog: q,
98
- modal: F,
99
- header: H,
100
- buttons: I,
101
- slot: J
102
- }, L = {
103
- $style: K
104
- }, Z = /* @__PURE__ */ x(P, [["__cssModules", L]]);
105
- export {
106
- Z as default
107
- };
2
+ import { t as _plugin_vue_export_helper_default } from "../_plugin-vue_export-helper-Bt71PsSa.js";
3
+ import { t as UiButton_default } from "../UiButton-DkJNVTgF.js";
4
+ import { t as UiClose_default } from "../UiClose-BQmeCbRi.js";
5
+ import { t as MESSAGES } from "../locales-DIKIa9I3.js";
6
+ import { Teleport, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeProps, nextTick, normalizeClass, onMounted, openBlock, ref, renderSlot, toDisplayString, unref, useCssVars, watch, withCtx, withModifiers } from "vue";
7
+ var _hoisted_1 = ["data-scrollable"], UiModal_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
8
+ inheritAttrs: !1,
9
+ __name: "UiModal",
10
+ props: {
11
+ modelValue: { type: Boolean },
12
+ isScrollable: { type: Boolean },
13
+ isConfirm: { type: Boolean },
14
+ width: { default: "360" },
15
+ lang: { default: "ru" }
16
+ },
17
+ emits: ["update:modelValue", "confirm"],
18
+ setup(e, { emit: n, attrs: r }) {
19
+ useCssVars((e) => ({ e1cec160: o.value }));
20
+ let i = e, a = n, o = computed(() => `${i.width}px`), s = ref(null);
21
+ function c() {
22
+ nextTick(() => {
23
+ s.value?.open ? s.value.close() : s.value?.showModal();
24
+ });
25
+ }
26
+ function l() {
27
+ a("confirm"), u();
28
+ }
29
+ function u() {
30
+ a("update:modelValue", !1);
31
+ }
32
+ return onMounted(() => {
33
+ watch(() => i.modelValue, () => {
34
+ c();
35
+ }, { immediate: !0 });
36
+ }), (e, t) => (openBlock(), createBlock(Teleport, { to: "body" }, [i.modelValue ? (openBlock(), createElementBlock("div", {
37
+ key: 0,
38
+ class: normalizeClass(e.$style.backdrop),
39
+ onMousedown: u
40
+ }, [createElementVNode("dialog", mergeProps({
41
+ ref_key: "dialogRef",
42
+ ref: s,
43
+ class: e.$style.dialog,
44
+ onCancel: withModifiers(u, ["prevent"])
45
+ }, r), [createElementVNode("div", {
46
+ class: normalizeClass(e.$style.modal),
47
+ onMousedown: t[0] ||= withModifiers(() => {}, ["stop"]),
48
+ "data-scrollable": i.isScrollable
49
+ }, [
50
+ createElementVNode("div", { class: normalizeClass(e.$style.header) }, [createVNode(UiClose_default, { onClick: u })], 2),
51
+ createElementVNode("div", { class: normalizeClass(e.$style.slot) }, [renderSlot(e.$slots, "default")], 2),
52
+ i.isConfirm ? (openBlock(), createElementBlock("div", {
53
+ key: 0,
54
+ class: normalizeClass(e.$style.buttons)
55
+ }, [createVNode(UiButton_default, { onClick: l }, {
56
+ default: withCtx(() => [createTextVNode(toDisplayString(unref(MESSAGES)[i.lang].confirm), 1)]),
57
+ _: 1
58
+ }), createVNode(UiButton_default, {
59
+ layout: "secondary",
60
+ onClick: u
61
+ }, {
62
+ default: withCtx(() => [createTextVNode(toDisplayString(unref(MESSAGES)[i.lang].cancel), 1)]),
63
+ _: 1
64
+ })], 2)) : createCommentVNode("", !0)
65
+ ], 42, _hoisted_1)], 16)], 34)) : createCommentVNode("", !0)]));
66
+ }
67
+ }), [["__cssModules", { $style: {
68
+ backdrop: "_backdrop_4wslz_1",
69
+ dialog: "_dialog_4wslz_11",
70
+ modal: "_modal_4wslz_20",
71
+ header: "_header_4wslz_37",
72
+ buttons: "_buttons_4wslz_42",
73
+ slot: "_slot_4wslz_51"
74
+ } }]]);
75
+ export { UiModal_default as default };
@@ -1 +1 @@
1
- ._pagination_1l1i5_1{display:flex;gap:4px;align-items:center;justify-content:center;width:100%}._button_1l1i5_9{position:relative;display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;font-size:.875rem;cursor:pointer;background-color:var(--color-white);border:1px solid var(--color-gray);border-radius:16px}._button_1l1i5_9:hover:not(:disabled){border-color:var(--color-primary)}._button_1l1i5_9:disabled{cursor:default;background-color:var(--color-gray-light-extra)}._text_1l1i5_30{padding:0 8px}.dark ._button_1l1i5_9{background-color:var(--color-gray-dark);border:1px solid var(--color-gray-dark-extra)}.dark ._text_1l1i5_30{color:var(--color-white)}
1
+ ._pagination_1l1i5_1{justify-content:center;align-items:center;gap:4px;width:100%;display:flex}._button_1l1i5_9{cursor:pointer;background-color:var(--color-white);border:1px solid var(--color-gray);border-radius:16px;justify-content:center;align-items:center;width:40px;height:40px;font-size:.875rem;display:inline-flex;position:relative}._button_1l1i5_9:hover:not(:disabled){border-color:var(--color-primary)}._button_1l1i5_9:disabled{cursor:default;background-color:var(--color-gray-light-extra)}._text_1l1i5_30{padding:0 8px}.dark ._button_1l1i5_9{background-color:var(--color-gray-dark);border:1px solid var(--color-gray-dark-extra)}.dark ._text_1l1i5_30{color:var(--color-white)}