@oneflowui/ui 0.5.1 → 0.5.2
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/components/Dashboard/charts/BarChart.vue.js +2 -2
- package/dist/components/Dashboard/charts/BarChart.vue2.js +11 -8
- package/dist/components/Dashboard/charts/PieChart.vue.js +2 -2
- package/dist/components/Dashboard/charts/PieChart.vue2.js +8 -5
- package/dist/components/Dashboard/index.vue.js +1 -1
- package/dist/components/Dashboard/index.vue2.js +20 -25
- package/dist/components/editor/RichTextEditor.vue2.js +1 -1
- package/dist/components/table/DataTable.vue.js +1 -1
- package/dist/components/table/DataTable.vue2.js +134 -135
- package/dist/components/table/FieldCell.vue.js +2 -2
- package/dist/components/table/FieldCell.vue2.js +16 -15
- package/dist/composables/useMarkdown.js +23 -23
- package/dist/index.d.ts +1 -5
- package/dist/index.js +250 -350
- package/dist/plugin.d.ts +5 -0
- package/dist/plugin.js +197 -0
- package/dist/style.css +1 -1
- package/dist/utils/echarts.d.ts +2 -0
- package/dist/utils/icon.d.ts +0 -5
- package/dist/utils/icon.js +72 -11
- package/package.json +2 -3
- package/dist/_virtual/_commonjsHelpers.js +0 -6
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/core.js +0 -5
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/bash.js +0 -377
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/css.js +0 -923
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/go.js +0 -151
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/java.js +0 -240
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/javascript.js +0 -658
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/json.js +0 -38
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/markdown.js +0 -216
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/plaintext.js +0 -13
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/python.js +0 -399
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/rust.js +0 -305
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/sql.js +0 -615
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/typescript.js +0 -753
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/xml.js +0 -219
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/yaml.js +0 -183
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/core.js +0 -1063
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./BarChart.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-1f29fef2"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import * as
|
|
3
|
-
|
|
1
|
+
import { defineComponent as s, ref as l, onMounted as n, onUnmounted as d, watch as c, openBlock as u, createElementBlock as f, createElementVNode as p } from "vue";
|
|
2
|
+
import * as m from "echarts/core";
|
|
3
|
+
import "echarts/charts";
|
|
4
|
+
import "echarts/components";
|
|
5
|
+
import "echarts/renderers";
|
|
6
|
+
const x = { class: "of-dashboard-chart" }, A = /* @__PURE__ */ s({
|
|
4
7
|
__name: "BarChart",
|
|
5
8
|
props: {
|
|
6
9
|
title: { default: "" },
|
|
@@ -9,11 +12,11 @@ const m = { class: "of-dashboard-chart" }, b = /* @__PURE__ */ i({
|
|
|
9
12
|
data: { default: () => [120, 200, 150, 80, 70, 110, 130] },
|
|
10
13
|
colors: { default: () => ["#3b82f6"] }
|
|
11
14
|
},
|
|
12
|
-
setup(
|
|
13
|
-
const e =
|
|
15
|
+
setup(i) {
|
|
16
|
+
const e = i, a = l(null);
|
|
14
17
|
let t = null, o = null;
|
|
15
18
|
const r = () => {
|
|
16
|
-
a.value && (t || (t =
|
|
19
|
+
a.value && (t || (t = m.init(a.value)), t.setOption({
|
|
17
20
|
color: e.colors,
|
|
18
21
|
title: e.title ? { text: e.title, left: "center", textStyle: { fontSize: 14, fontWeight: 600 } } : void 0,
|
|
19
22
|
tooltip: { trigger: "axis", axisPointer: { type: "shadow" } },
|
|
@@ -29,7 +32,7 @@ const m = { class: "of-dashboard-chart" }, b = /* @__PURE__ */ i({
|
|
|
29
32
|
o == null || o.disconnect(), t == null || t.dispose();
|
|
30
33
|
}), c(() => [e.title, e.xAxisData, e.seriesName, e.data, e.colors], r, {
|
|
31
34
|
deep: !0
|
|
32
|
-
}), (h, _) => (u(), f("div",
|
|
35
|
+
}), (h, _) => (u(), f("div", x, [
|
|
33
36
|
p("div", {
|
|
34
37
|
ref_key: "chartRef",
|
|
35
38
|
ref: a,
|
|
@@ -39,5 +42,5 @@ const m = { class: "of-dashboard-chart" }, b = /* @__PURE__ */ i({
|
|
|
39
42
|
}
|
|
40
43
|
});
|
|
41
44
|
export {
|
|
42
|
-
|
|
45
|
+
A as default
|
|
43
46
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./PieChart.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-86369a41"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { defineComponent as r, ref as s, onMounted as d, onUnmounted as i, watch as u, openBlock as f, createElementBlock as c, createElementVNode as p } from "vue";
|
|
2
|
-
import * as
|
|
3
|
-
|
|
2
|
+
import * as m from "echarts/core";
|
|
3
|
+
import "echarts/charts";
|
|
4
|
+
import "echarts/components";
|
|
5
|
+
import "echarts/renderers";
|
|
6
|
+
const h = { class: "of-dashboard-chart" }, x = /* @__PURE__ */ r({
|
|
4
7
|
__name: "PieChart",
|
|
5
8
|
props: {
|
|
6
9
|
title: { default: "" },
|
|
@@ -17,7 +20,7 @@ const m = { class: "of-dashboard-chart" }, b = /* @__PURE__ */ r({
|
|
|
17
20
|
const e = l, o = s(null);
|
|
18
21
|
let t = null, n = null;
|
|
19
22
|
const a = () => {
|
|
20
|
-
o.value && (t || (t =
|
|
23
|
+
o.value && (t || (t = m.init(o.value)), t.setOption({
|
|
21
24
|
color: e.colors,
|
|
22
25
|
title: e.title ? { text: e.title, left: "center", textStyle: { fontSize: 14, fontWeight: 600 } } : void 0,
|
|
23
26
|
tooltip: { trigger: "item" },
|
|
@@ -39,7 +42,7 @@ const m = { class: "of-dashboard-chart" }, b = /* @__PURE__ */ r({
|
|
|
39
42
|
n == null || n.disconnect(), t == null || t.dispose();
|
|
40
43
|
}), u(() => [e.title, e.data, e.colors, e.doughnut, e.showLegend], a, {
|
|
41
44
|
deep: !0
|
|
42
|
-
}), (v, g) => (f(), c("div",
|
|
45
|
+
}), (v, g) => (f(), c("div", h, [
|
|
43
46
|
p("div", {
|
|
44
47
|
ref_key: "chartRef",
|
|
45
48
|
ref: o,
|
|
@@ -49,5 +52,5 @@ const m = { class: "of-dashboard-chart" }, b = /* @__PURE__ */ r({
|
|
|
49
52
|
}
|
|
50
53
|
});
|
|
51
54
|
export {
|
|
52
|
-
|
|
55
|
+
x as default
|
|
53
56
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./index.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-
|
|
4
|
+
const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-057c6d49"]]);
|
|
5
5
|
export {
|
|
6
6
|
p as default
|
|
7
7
|
};
|
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
import { defineComponent as m, computed as
|
|
2
|
-
|
|
3
|
-
import g from "./charts/PieChart.vue.js";
|
|
4
|
-
import S from "./charts/DoughnutChart.vue.js";
|
|
5
|
-
import v from "./charts/NumberCard.vue.js";
|
|
6
|
-
import k from "./charts/TableChart.vue.js";
|
|
7
|
-
const C = { class: "of-dashboard" }, D = { class: "of-dashboard__header" }, x = { class: "of-dashboard__title" }, M = /* @__PURE__ */ m({
|
|
1
|
+
import { defineComponent as m, defineAsyncComponent as t, computed as s, openBlock as o, createElementBlock as r, createElementVNode as n, toDisplayString as u, normalizeStyle as i, Fragment as f, renderList as b, createBlock as y, resolveDynamicComponent as _, mergeProps as h } from "vue";
|
|
2
|
+
const g = { class: "of-dashboard" }, S = { class: "of-dashboard__header" }, v = { class: "of-dashboard__title" }, C = /* @__PURE__ */ m({
|
|
8
3
|
__name: "index",
|
|
9
4
|
props: {
|
|
10
5
|
title: { default: "Dashboard" },
|
|
@@ -12,17 +7,17 @@ const C = { class: "of-dashboard" }, D = { class: "of-dashboard__header" }, x =
|
|
|
12
7
|
columns: { default: 4 },
|
|
13
8
|
gap: { default: 16 }
|
|
14
9
|
},
|
|
15
|
-
setup(
|
|
16
|
-
const a =
|
|
17
|
-
bar:
|
|
18
|
-
pie:
|
|
19
|
-
doughnut:
|
|
20
|
-
"number-card":
|
|
21
|
-
table:
|
|
22
|
-
},
|
|
10
|
+
setup(l) {
|
|
11
|
+
const a = l, d = {
|
|
12
|
+
bar: t(() => import("./charts/BarChart.vue.js")),
|
|
13
|
+
pie: t(() => import("./charts/PieChart.vue.js")),
|
|
14
|
+
doughnut: t(() => import("./charts/DoughnutChart.vue2.js")),
|
|
15
|
+
"number-card": t(() => import("./charts/NumberCard.vue.js")),
|
|
16
|
+
table: t(() => import("./charts/TableChart.vue.js"))
|
|
17
|
+
}, c = s(() => ({
|
|
23
18
|
gridTemplateColumns: `repeat(${a.columns}, minmax(0, 1fr))`,
|
|
24
19
|
gap: `${a.gap}px`
|
|
25
|
-
})),
|
|
20
|
+
})), p = s(() => a.widgets.length > 0 ? a.widgets : [
|
|
26
21
|
{
|
|
27
22
|
id: "metric-1",
|
|
28
23
|
type: "number-card",
|
|
@@ -74,23 +69,23 @@ const C = { class: "of-dashboard" }, D = { class: "of-dashboard__header" }, x =
|
|
|
74
69
|
colSpan: 4
|
|
75
70
|
}
|
|
76
71
|
]);
|
|
77
|
-
return (
|
|
78
|
-
|
|
79
|
-
|
|
72
|
+
return (k, D) => (o(), r("section", g, [
|
|
73
|
+
n("header", S, [
|
|
74
|
+
n("h3", v, u(l.title), 1)
|
|
80
75
|
]),
|
|
81
|
-
|
|
76
|
+
n("div", {
|
|
82
77
|
class: "of-dashboard__grid",
|
|
83
|
-
style:
|
|
78
|
+
style: i(c.value)
|
|
84
79
|
}, [
|
|
85
|
-
(
|
|
80
|
+
(o(!0), r(f, null, b(p.value, (e) => (o(), r("article", {
|
|
86
81
|
key: e.id,
|
|
87
82
|
class: "of-dashboard__item",
|
|
88
|
-
style:
|
|
83
|
+
style: i({
|
|
89
84
|
gridColumn: `span ${e.colSpan ?? 1}`,
|
|
90
85
|
gridRow: `span ${e.rowSpan ?? 1}`
|
|
91
86
|
})
|
|
92
87
|
}, [
|
|
93
|
-
(
|
|
88
|
+
(o(), y(_(d[e.type]), h({
|
|
94
89
|
title: e.title,
|
|
95
90
|
data: e.data
|
|
96
91
|
}, { ref_for: !0 }, e.config ?? {}), null, 16, ["title", "data"]))
|
|
@@ -100,5 +95,5 @@ const C = { class: "of-dashboard" }, D = { class: "of-dashboard__header" }, x =
|
|
|
100
95
|
}
|
|
101
96
|
});
|
|
102
97
|
export {
|
|
103
|
-
|
|
98
|
+
C as default
|
|
104
99
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as E, ref as d, watch as T, computed as B, openBlock as H, createElementBlock as L, normalizeStyle as M, normalizeClass as R, createElementVNode as o, createVNode as b, unref as S, withCtx as h, withDirectives as _, vModelText as k } from "vue";
|
|
2
2
|
import { QuillEditor as q } from "@vueup/vue-quill";
|
|
3
|
-
|
|
3
|
+
import "@vueup/vue-quill/dist/vue-quill.snow.css";
|
|
4
4
|
import z from "../overlay/Modal.vue.js";
|
|
5
5
|
import { useToast as N } from "../../composables/useToast.js";
|
|
6
6
|
const Q = { class: "of-rich-editor__toolbar-actions" }, $ = ["disabled"], D = ["disabled"], I = { class: "of-rich-editor__form" }, J = /* @__PURE__ */ E({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./DataTable.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-5e8101e6"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|