mhz-ui 1.0.40 → 1.0.42
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.js +22 -29
- package/dist/UiButton/UiButton.js +9 -13
- package/dist/UiChart/UiChart.js +286 -288
- package/dist/UiCheckbox/UiCheckbox.js +58 -67
- package/dist/UiEditor/UiEditor.js +2372 -2192
- package/dist/UiField/UiField.js +22 -24
- package/dist/UiInput/UiInput.js +15 -18
- package/dist/UiModal/UiModal.js +32 -39
- package/dist/UiPagination/UiPagination.js +29 -34
- package/dist/UiRange/UiRange.js +2 -3
- package/dist/UiSearch/UiSearch.js +57 -65
- package/dist/UiSelect/UiSelect.js +16 -21
- package/dist/UiSlider/UiSlider.js +17 -19
- package/dist/UiSpoiler/UiSpoiler.js +23 -26
- package/dist/UiTable/UiTable.js +57 -61
- package/dist/UiUpload/UiUpload.js +76 -87
- package/package.json +30 -30
- /package/dist/{_plugin-vue_export-helper-hUChTQA_.js → _plugin-vue_export-helper-CHgC5LLL.js} +0 -0
- /package/dist/{index-kWqQ1zUA.js → index-No8F_cv4.js} +0 -0
|
@@ -1,57 +1,50 @@
|
|
|
1
1
|
import "./UiBreadcrumbs.css";
|
|
2
|
-
import { defineComponent as m, computed as
|
|
3
|
-
import { RouterLink as
|
|
4
|
-
import { _ as f } from "../_plugin-vue_export-helper-
|
|
5
|
-
const B = "default", C = {
|
|
6
|
-
itemprop: "name",
|
|
7
|
-
"data-test": "ui-breadcrumb-title"
|
|
8
|
-
}, L = ["data-color"], $ = ["content"], v = /* @__PURE__ */ m({
|
|
2
|
+
import { defineComponent as m, computed as p, openBlock as s, createElementBlock as r, normalizeClass as l, Fragment as u, renderList as d, createBlock as _, resolveDynamicComponent as h, withCtx as k, createElementVNode as a, toDisplayString as g, createCommentVNode as y } from "vue";
|
|
3
|
+
import { RouterLink as b } from "vue-router";
|
|
4
|
+
import { _ as f } from "../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
|
+
const B = "default", C = { itemprop: "name" }, L = ["data-color"], $ = ["content"], v = /* @__PURE__ */ m({
|
|
9
6
|
__name: "UiBreadcrumbs",
|
|
10
7
|
props: {
|
|
11
8
|
links: {},
|
|
12
9
|
color: { default: B }
|
|
13
10
|
},
|
|
14
11
|
setup(i) {
|
|
15
|
-
const t = i, c =
|
|
16
|
-
return (o, T) => (s(),
|
|
17
|
-
class:
|
|
12
|
+
const t = i, c = p(() => window.IS_STORYBOOK ? "a" : b);
|
|
13
|
+
return (o, T) => (s(), r("div", {
|
|
14
|
+
class: l(o.$style.breadcrumbs),
|
|
18
15
|
itemscope: "",
|
|
19
16
|
itemtype: "https://schema.org/BreadcrumbList"
|
|
20
17
|
}, [
|
|
21
|
-
(s(!0),
|
|
18
|
+
(s(!0), r(u, null, d(t.links, (e, n) => (s(), r("div", {
|
|
22
19
|
key: `${e.title}${e.url}`,
|
|
23
|
-
class:
|
|
20
|
+
class: l(o.$style.links),
|
|
24
21
|
itemprop: "itemListElement",
|
|
25
22
|
itemscope: "",
|
|
26
|
-
itemtype: "https://schema.org/ListItem"
|
|
27
|
-
"data-test": "ui-breadcrumb"
|
|
23
|
+
itemtype: "https://schema.org/ListItem"
|
|
28
24
|
}, [
|
|
29
|
-
(s(), _(
|
|
25
|
+
(s(), _(h(n === t.links.length - 1 ? "div" : c.value), {
|
|
30
26
|
to: e.url,
|
|
31
|
-
class:
|
|
32
|
-
"data-link":
|
|
27
|
+
class: l(o.$style.link),
|
|
28
|
+
"data-link": n !== t.links.length - 1,
|
|
33
29
|
"data-color": t.color,
|
|
34
30
|
itemid: e.url,
|
|
35
31
|
itemtype: "https://schema.org/Thing",
|
|
36
32
|
itemscope: "",
|
|
37
|
-
itemprop: "item"
|
|
38
|
-
"data-test": "ui-breadcrumb-link"
|
|
33
|
+
itemprop: "item"
|
|
39
34
|
}, {
|
|
40
|
-
default:
|
|
41
|
-
|
|
35
|
+
default: k(() => [
|
|
36
|
+
a("span", C, g(e.title), 1)
|
|
42
37
|
]),
|
|
43
38
|
_: 2
|
|
44
39
|
}, 1032, ["to", "class", "data-link", "data-color", "itemid"])),
|
|
45
|
-
|
|
40
|
+
n !== t.links.length - 1 ? (s(), r("span", {
|
|
46
41
|
key: 0,
|
|
47
|
-
class:
|
|
48
|
-
"data-color": t.color
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
l("meta", {
|
|
42
|
+
class: l(o.$style.slash),
|
|
43
|
+
"data-color": t.color
|
|
44
|
+
}, "/", 10, L)) : y("", !0),
|
|
45
|
+
a("meta", {
|
|
52
46
|
itemprop: "position",
|
|
53
|
-
content: (
|
|
54
|
-
"data-test": "ui-breadcrumb-position"
|
|
47
|
+
content: (n + 1).toString()
|
|
55
48
|
}, null, 8, $)
|
|
56
49
|
], 2))), 128))
|
|
57
50
|
], 2));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./UiButton.css";
|
|
2
|
-
import { defineComponent as s, openBlock as e, createElementBlock as a, normalizeClass as
|
|
3
|
-
import { _ as
|
|
4
|
-
const p = "primary", _ = "button", y = void 0,
|
|
2
|
+
import { defineComponent as s, openBlock as e, createElementBlock as a, normalizeClass as l, createBlock as c, resolveDynamicComponent as u, createCommentVNode as r, renderSlot as i } from "vue";
|
|
3
|
+
import { _ as d } from "../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
|
+
const p = "primary", _ = "button", y = void 0, m = ["data-layout", "disabled", "type"], b = /* @__PURE__ */ s({
|
|
5
5
|
__name: "UiButton",
|
|
6
6
|
props: {
|
|
7
7
|
layout: { default: p },
|
|
@@ -12,24 +12,20 @@ const p = "primary", _ = "button", y = void 0, b = ["data-layout", "disabled", "
|
|
|
12
12
|
setup(n) {
|
|
13
13
|
const t = n;
|
|
14
14
|
return (o, U) => (e(), a("button", {
|
|
15
|
-
class:
|
|
15
|
+
class: l(o.$style.button),
|
|
16
16
|
"data-layout": t.layout,
|
|
17
17
|
disabled: t.isDisabled,
|
|
18
|
-
type: t.type
|
|
19
|
-
"data-test": "ui-button"
|
|
18
|
+
type: t.type
|
|
20
19
|
}, [
|
|
21
|
-
t.icon ? (e(),
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
})) : i("", !0),
|
|
25
|
-
d(o.$slots, "default")
|
|
26
|
-
], 10, b));
|
|
20
|
+
t.icon ? (e(), c(u(t.icon), { key: 0 })) : r("", !0),
|
|
21
|
+
i(o.$slots, "default")
|
|
22
|
+
], 10, m));
|
|
27
23
|
}
|
|
28
24
|
}), f = "_button_1nlbc_1", B = {
|
|
29
25
|
button: f
|
|
30
26
|
}, D = {
|
|
31
27
|
$style: B
|
|
32
|
-
}, T = /* @__PURE__ */
|
|
28
|
+
}, T = /* @__PURE__ */ d(b, [["__cssModules", D]]);
|
|
33
29
|
export {
|
|
34
30
|
T as default
|
|
35
31
|
};
|