@oneflowui/ui 0.5.9 → 0.6.0
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/README.en.md +19 -0
- package/README.md +23 -0
- package/dist/components/Dashboard/charts/BarChart.vue.js +2 -2
- package/dist/components/Dashboard/charts/BarChart.vue2.js +56 -23
- package/dist/components/Dashboard/charts/NumberCard.vue.js +2 -2
- package/dist/components/Dashboard/charts/NumberCard.vue2.js +14 -14
- package/dist/components/Dashboard/charts/PieChart.vue.js +1 -1
- package/dist/components/Dashboard/charts/PieChart.vue2.js +49 -23
- package/dist/components/Dashboard/charts/TableChart.vue.js +1 -1
- package/dist/components/Dashboard/index.vue.js +2 -2
- package/dist/components/ai/AiMessageBubble.vue.js +3 -3
- package/dist/components/ai/AiSender.vue.js +2 -2
- package/dist/components/ai/AiThinking.vue.js +1 -1
- package/dist/components/ai/UserMessageBubble.vue.js +3 -3
- package/dist/components/auxiliary/ColorPanel.vue.js +3 -3
- package/dist/components/auxiliary/ColorPanel.vue2.js +9 -9
- package/dist/components/auxiliary/FileUpload.vue.js +2 -2
- package/dist/components/auxiliary/PersonPanel.vue.js +1 -1
- package/dist/components/auxiliary/PersonPanel.vue2.js +10 -10
- package/dist/components/base/Accordion.vue.js +1 -1
- package/dist/components/base/Avatar.vue.js +3 -3
- package/dist/components/base/Avatar.vue2.js +43 -43
- package/dist/components/base/Badge.vue.js +1 -1
- package/dist/components/base/Badge.vue2.js +35 -35
- package/dist/components/base/ButtonGroup.vue.js +2 -2
- package/dist/components/base/ChainItem.vue.js +2 -2
- package/dist/components/base/ChainItem.vue2.js +30 -30
- package/dist/components/base/DescBlock.vue.js +3 -3
- package/dist/components/base/DropdownMenu.vue.js +2 -2
- package/dist/components/base/EmptyState.vue.js +1 -1
- package/dist/components/base/InfoCard.vue.js +2 -2
- package/dist/components/base/InfoCard.vue2.js +66 -66
- package/dist/components/base/MonitorItem.vue.js +1 -1
- package/dist/components/base/MonitorItem.vue2.js +16 -16
- package/dist/components/base/PersonaCard.vue.js +1 -1
- package/dist/components/base/PersonaCard.vue2.js +81 -81
- package/dist/components/base/ProgressBar.vue.js +2 -2
- package/dist/components/base/ProgressBar.vue2.js +16 -16
- package/dist/components/base/RangeSlider.vue.js +1 -1
- package/dist/components/base/RefTag.vue.js +2 -2
- package/dist/components/base/RefTag.vue2.js +20 -20
- package/dist/components/base/SearchHighlight.vue.js +1 -1
- package/dist/components/base/SectionBlock.vue.js +1 -1
- package/dist/components/base/SectionBlock.vue2.js +44 -44
- package/dist/components/base/StatisticCard.vue.js +2 -2
- package/dist/components/base/StatisticCard.vue2.js +24 -24
- package/dist/components/base/StatusIndicator.vue.js +2 -2
- package/dist/components/base/StatusIndicator.vue2.js +30 -30
- package/dist/components/base/StatusSummary.vue.js +2 -2
- package/dist/components/base/StatusSummary.vue2.js +23 -23
- package/dist/components/base/Stepper.vue.js +2 -2
- package/dist/components/base/Switch.vue.js +2 -2
- package/dist/components/base/ToolbarBtn.vue.js +1 -1
- package/dist/components/base/ViewModeGroup.vue.js +3 -3
- package/dist/components/base/ViewSwitcher.vue.js +2 -2
- package/dist/components/base/ViewTab.vue.js +4 -4
- package/dist/components/breadcrumb/Breadcrumb.vue.js +2 -2
- package/dist/components/breadcrumb/BreadcrumbItem.vue.js +1 -1
- package/dist/components/database/DatabaseView.vue.js +4 -4
- package/dist/components/detail/CommentItem.vue.js +2 -2
- package/dist/components/detail/CommentItem.vue2.js +8 -8
- package/dist/components/detail/DetailLayout.vue.js +1 -1
- package/dist/components/editor/BlockQuote.vue.js +2 -2
- package/dist/components/editor/CodeBlock.vue.js +2 -2
- package/dist/components/editor/ContentBlock.vue.js +2 -2
- package/dist/components/editor/RefLink.vue.js +2 -2
- package/dist/components/editor/RichTextEditor.vue.js +1 -1
- package/dist/components/field/FieldAttachment.vue.js +1 -1
- package/dist/components/field/FieldCreator.vue.js +1 -1
- package/dist/components/field/FieldCurrency.vue.js +2 -2
- package/dist/components/field/FieldMarkdownPreview.vue.js +2 -2
- package/dist/components/field/FieldMultiSelect.vue.js +2 -2
- package/dist/components/field/FieldProgress.vue.js +2 -2
- package/dist/components/field/FieldRating.vue.js +2 -2
- package/dist/components/field/FieldRelation.vue.js +1 -1
- package/dist/components/field/FieldRichText.vue.js +1 -1
- package/dist/components/field/FieldSelect.vue.js +2 -2
- package/dist/components/gallery/GalleryCard.vue.js +2 -2
- package/dist/components/gallery/GalleryCard.vue2.js +34 -30
- package/dist/components/gallery/GalleryView.vue.js +2 -2
- package/dist/components/kanban/KanbanBoard.vue.js +4 -4
- package/dist/components/kanban/KanbanCard.vue.js +2 -2
- package/dist/components/kanban/KanbanColumn.vue.js +2 -2
- package/dist/components/kanban/KanbanColumn.vue2.js +16 -16
- package/dist/components/kanban/QuickAddRow.vue.js +1 -1
- package/dist/components/layout/AppLayout.vue.js +2 -2
- package/dist/components/layout/Navbar.vue.js +3 -3
- package/dist/components/layout/Sidebar.vue.js +2 -2
- package/dist/components/layout/StatusBar.vue.js +2 -2
- package/dist/components/mermaid/MermaidChart.vue.js +2 -2
- package/dist/components/overlay/Dialog.vue.js +2 -2
- package/dist/components/overlay/Drawer.vue.js +2 -2
- package/dist/components/overlay/Modal.vue.js +1 -1
- package/dist/components/overlay/SidePanel.vue.js +2 -2
- package/dist/components/split/SplitPane.vue.js +2 -2
- package/dist/components/table/ColumnHeaderMenu.vue.js +1 -1
- package/dist/components/table/DataTable.vue.js +4 -4
- package/dist/components/table/DetailSheet.vue.js +1 -1
- package/dist/components/table/FieldCell.vue.js +1 -1
- package/dist/components/table/FieldTypePicker.vue.js +4 -4
- package/dist/components/table/MobileListView.vue.js +2 -2
- package/dist/components/table/NewRowBtn.vue.js +2 -2
- package/dist/components/table/TableColumnManager.vue.js +2 -2
- package/dist/components/table/TableDataRow.vue.js +3 -3
- package/dist/components/table/TableFilterPanel.vue.js +2 -2
- package/dist/components/table/TableGroupRow.vue.js +2 -2
- package/dist/components/table/TableHeaderRow.vue.js +2 -2
- package/dist/components/table/TableToolbar.vue.js +2 -2
- package/dist/components/tabs/Tabs.vue.js +1 -1
- package/dist/components/timeline/ActivityTimeline.vue.js +1 -1
- package/dist/components/timeline/ActivityTimeline.vue2.js +27 -27
- package/dist/components/timeline/GanttRow.vue.js +2 -2
- package/dist/components/timeline/GanttRow.vue2.js +21 -18
- package/dist/components/timeline/GanttTimeline.vue.js +2 -2
- package/dist/components/toast/ToastItem.vue.js +2 -2
- package/dist/components/toast/ToastItem.vue2.js +39 -39
- package/dist/plugin.js +5 -3
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as T, computed as a, openBlock as
|
|
1
|
+
import { defineComponent as T, computed as a, openBlock as n, createElementBlock as c, mergeProps as A, createElementVNode as o, withKeys as p, withModifiers as u, createBlock as L, resolveDynamicComponent as $, createCommentVNode as f, toDisplayString as _, normalizeStyle as z, renderSlot as b, normalizeClass as g } from "vue";
|
|
2
2
|
import { resolveIcon as D } from "../../utils/icon.js";
|
|
3
3
|
const K = ["onKeydown"], N = { class: "of-section-block__header-left" }, U = { class: "of-section-block__title" }, M = ["aria-expanded", "aria-label"], P = { class: "of-section-block__body" }, I = /* @__PURE__ */ T({
|
|
4
4
|
name: "SectionBlock",
|
|
@@ -13,29 +13,29 @@ const K = ["onKeydown"], N = { class: "of-section-block__header-left" }, U = { c
|
|
|
13
13
|
statusLabels: { default: void 0 }
|
|
14
14
|
},
|
|
15
15
|
emits: ["update:collapsed", "edit", "save"],
|
|
16
|
-
setup(
|
|
17
|
-
const
|
|
18
|
-
pending: { background: "var(--of-
|
|
19
|
-
updating: { background: "var(--of-
|
|
20
|
-
done: { background: "var(--of-
|
|
21
|
-
editing: { background: "var(--of-
|
|
16
|
+
setup(t, { emit: m }) {
|
|
17
|
+
const e = t, i = m, y = {
|
|
18
|
+
pending: { background: "var(--of-surface-muted)", text: "var(--of-text-tertiary)" },
|
|
19
|
+
updating: { background: "var(--of-surface-selected)", text: "var(--of-accent-default)" },
|
|
20
|
+
done: { background: "var(--of-surface-muted)", text: "var(--of-text-strong)" },
|
|
21
|
+
editing: { background: "var(--of-surface-selected)", text: "var(--of-accent-strong)" }
|
|
22
22
|
}, h = {
|
|
23
23
|
pending: "待处理",
|
|
24
24
|
updating: "更新中",
|
|
25
25
|
done: "已完成",
|
|
26
26
|
editing: "编辑中"
|
|
27
|
-
}, r = a(() =>
|
|
27
|
+
}, r = a(() => e.status ? y[e.status] ?? null : null), C = a(() => {
|
|
28
28
|
var s;
|
|
29
|
-
return
|
|
29
|
+
return e.status ? ((s = e.statusLabels) == null ? void 0 : s[e.status]) ?? h[e.status] ?? e.status : null;
|
|
30
30
|
}), S = a(() => r.value ? {
|
|
31
31
|
backgroundColor: r.value.background,
|
|
32
32
|
color: r.value.text
|
|
33
|
-
} : {}), x = a(() =>
|
|
34
|
-
borderColor: "var(--of-
|
|
35
|
-
boxShadow: "0 0 0 3px color-mix(in srgb, var(--of-
|
|
36
|
-
} :
|
|
37
|
-
function
|
|
38
|
-
i("update:collapsed", !
|
|
33
|
+
} : {}), x = a(() => e.status === "editing" ? {
|
|
34
|
+
borderColor: "var(--of-border-strong)",
|
|
35
|
+
boxShadow: "0 0 0 3px color-mix(in srgb, var(--of-accent-default) 10%, transparent)"
|
|
36
|
+
} : e.status === "done" ? { borderColor: "var(--of-border-subtle)" } : {}), d = a(() => e.status === "editing"), B = a(() => e.editable && e.status === "done"), v = a(() => D(e.icon));
|
|
37
|
+
function l() {
|
|
38
|
+
i("update:collapsed", !e.collapsed);
|
|
39
39
|
}
|
|
40
40
|
function w() {
|
|
41
41
|
i("edit");
|
|
@@ -43,74 +43,74 @@ const K = ["onKeydown"], N = { class: "of-section-block__header-left" }, U = { c
|
|
|
43
43
|
function E() {
|
|
44
44
|
i("save");
|
|
45
45
|
}
|
|
46
|
-
return (s,
|
|
46
|
+
return (s, k) => (n(), c("div", A({
|
|
47
47
|
class: ["of-section-block", {
|
|
48
|
-
"of-section-block--collapsed":
|
|
48
|
+
"of-section-block--collapsed": t.collapsed,
|
|
49
49
|
"of-section-block--editing": d.value,
|
|
50
|
-
"of-section-block--done":
|
|
50
|
+
"of-section-block--done": t.status === "done"
|
|
51
51
|
}],
|
|
52
52
|
style: x.value
|
|
53
53
|
}, s.$attrs), [
|
|
54
|
-
|
|
54
|
+
o("div", {
|
|
55
55
|
class: "of-section-block__header",
|
|
56
56
|
role: "button",
|
|
57
57
|
tabindex: "0",
|
|
58
|
-
onClick:
|
|
58
|
+
onClick: l,
|
|
59
59
|
onKeydown: [
|
|
60
|
-
|
|
61
|
-
|
|
60
|
+
p(u(l, ["prevent"]), ["enter"]),
|
|
61
|
+
p(u(l, ["prevent"]), ["space"])
|
|
62
62
|
]
|
|
63
63
|
}, [
|
|
64
|
-
|
|
65
|
-
|
|
64
|
+
o("div", N, [
|
|
65
|
+
v.value ? (n(), L($(v.value), {
|
|
66
66
|
key: 0,
|
|
67
67
|
class: "of-section-block__icon",
|
|
68
68
|
size: 14,
|
|
69
69
|
"aria-hidden": "true"
|
|
70
|
-
})) :
|
|
71
|
-
|
|
72
|
-
|
|
70
|
+
})) : f("", !0),
|
|
71
|
+
o("span", U, _(t.title), 1),
|
|
72
|
+
t.status ? (n(), c("span", {
|
|
73
73
|
key: 1,
|
|
74
74
|
class: "of-section-block__status-badge",
|
|
75
75
|
style: z(S.value)
|
|
76
|
-
},
|
|
76
|
+
}, _(C.value), 5)) : f("", !0)
|
|
77
77
|
]),
|
|
78
|
-
|
|
78
|
+
o("div", {
|
|
79
79
|
class: "of-section-block__header-right",
|
|
80
|
-
onClick:
|
|
80
|
+
onClick: k[0] || (k[0] = u(() => {
|
|
81
81
|
}, ["stop"]))
|
|
82
82
|
}, [
|
|
83
|
-
|
|
84
|
-
d.value ? (
|
|
83
|
+
b(s.$slots, "header-extra", {}, void 0, !0),
|
|
84
|
+
d.value ? (n(), c("button", {
|
|
85
85
|
key: 0,
|
|
86
86
|
type: "button",
|
|
87
87
|
class: "of-section-block__action-btn of-section-block__action-btn--save",
|
|
88
88
|
onClick: E
|
|
89
|
-
}, " 保存 ")) : B.value ? (
|
|
89
|
+
}, " 保存 ")) : B.value ? (n(), c("button", {
|
|
90
90
|
key: 1,
|
|
91
91
|
type: "button",
|
|
92
92
|
class: "of-section-block__action-btn",
|
|
93
93
|
onClick: w
|
|
94
|
-
}, " 编辑 ")) :
|
|
95
|
-
|
|
94
|
+
}, " 编辑 ")) : f("", !0),
|
|
95
|
+
o("button", {
|
|
96
96
|
type: "button",
|
|
97
97
|
class: "of-section-block__collapse-btn",
|
|
98
|
-
"aria-expanded": !
|
|
99
|
-
"aria-label":
|
|
100
|
-
onClick:
|
|
98
|
+
"aria-expanded": !t.collapsed,
|
|
99
|
+
"aria-label": t.collapsed ? "展开" : "折叠",
|
|
100
|
+
onClick: l
|
|
101
101
|
}, [
|
|
102
|
-
|
|
103
|
-
class: g(["of-section-block__collapse-icon", { "of-section-block__collapse-icon--collapsed":
|
|
102
|
+
o("span", {
|
|
103
|
+
class: g(["of-section-block__collapse-icon", { "of-section-block__collapse-icon--collapsed": t.collapsed }]),
|
|
104
104
|
"aria-hidden": "true"
|
|
105
105
|
}, " ▾ ", 2)
|
|
106
106
|
], 8, M)
|
|
107
107
|
])
|
|
108
108
|
], 40, K),
|
|
109
|
-
|
|
110
|
-
class: g(["of-section-block__body-wrapper", { "of-section-block__body-wrapper--collapsed":
|
|
109
|
+
o("div", {
|
|
110
|
+
class: g(["of-section-block__body-wrapper", { "of-section-block__body-wrapper--collapsed": t.collapsed }])
|
|
111
111
|
}, [
|
|
112
|
-
|
|
113
|
-
d.value ?
|
|
112
|
+
o("div", P, [
|
|
113
|
+
d.value ? b(s.$slots, "editor", { key: 0 }, void 0, !0) : b(s.$slots, "default", { key: 1 }, void 0, !0)
|
|
114
114
|
])
|
|
115
115
|
], 2)
|
|
116
116
|
], 16));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./StatisticCard.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const m = /* @__PURE__ */
|
|
3
|
+
import a from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const m = /* @__PURE__ */ a(t, [["__scopeId", "data-v-5de633aa"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as i, computed as f, openBlock as
|
|
2
|
-
import { resolveIcon as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as i, computed as f, openBlock as r, createElementBlock as u, mergeProps as d, createElementVNode as e, normalizeStyle as s, createBlock as v, resolveDynamicComponent as m, unref as p, toDisplayString as l } from "vue";
|
|
2
|
+
import { resolveIcon as _ } from "../../utils/icon.js";
|
|
3
|
+
const b = { class: "of-statistic-card__content" }, g = { class: "of-statistic-card__value" }, x = { class: "of-statistic-card__label" }, k = /* @__PURE__ */ i({
|
|
4
4
|
inheritAttrs: !1,
|
|
5
5
|
__name: "StatisticCard",
|
|
6
6
|
props: {
|
|
@@ -9,45 +9,45 @@ const _ = { class: "of-statistic-card__content" }, m = { class: "of-statistic-ca
|
|
|
9
9
|
value: {},
|
|
10
10
|
label: {}
|
|
11
11
|
},
|
|
12
|
-
setup(
|
|
13
|
-
const n =
|
|
12
|
+
setup(t) {
|
|
13
|
+
const n = t, a = {
|
|
14
14
|
blue: {
|
|
15
|
-
bg: "var(--of-
|
|
16
|
-
text: "var(--of-
|
|
15
|
+
bg: "var(--of-surface-muted)",
|
|
16
|
+
text: "var(--of-accent-default)"
|
|
17
17
|
},
|
|
18
18
|
green: {
|
|
19
|
-
bg: "var(--of-
|
|
20
|
-
text: "var(--of-
|
|
19
|
+
bg: "var(--of-surface-panel)",
|
|
20
|
+
text: "var(--of-text-strong)"
|
|
21
21
|
},
|
|
22
22
|
orange: {
|
|
23
|
-
bg: "var(--of-
|
|
24
|
-
text: "var(--of-
|
|
23
|
+
bg: "var(--of-surface-selected)",
|
|
24
|
+
text: "var(--of-accent-strong)"
|
|
25
25
|
},
|
|
26
26
|
red: {
|
|
27
|
-
bg: "var(--of-
|
|
28
|
-
text: "var(--of-
|
|
27
|
+
bg: "var(--of-surface-muted)",
|
|
28
|
+
text: "var(--of-text-primary)"
|
|
29
29
|
},
|
|
30
30
|
purple: {
|
|
31
|
-
bg: "var(--of-
|
|
32
|
-
text: "var(--of-
|
|
31
|
+
bg: "var(--of-surface-panel)",
|
|
32
|
+
text: "var(--of-text-secondary)"
|
|
33
33
|
}
|
|
34
34
|
}, c = f(() => {
|
|
35
|
-
const
|
|
36
|
-
return
|
|
35
|
+
const o = n.iconColor || "blue";
|
|
36
|
+
return a[o] || a.blue;
|
|
37
37
|
});
|
|
38
|
-
return (
|
|
38
|
+
return (o, y) => (r(), u("div", d({ class: "of-statistic-card" }, o.$attrs), [
|
|
39
39
|
e("div", {
|
|
40
40
|
class: "of-statistic-card__icon-container",
|
|
41
|
-
style:
|
|
41
|
+
style: s({ backgroundColor: c.value.bg })
|
|
42
42
|
}, [
|
|
43
|
-
(
|
|
43
|
+
(r(), v(m(p(_)(t.icon)), {
|
|
44
44
|
class: "of-statistic-card__icon",
|
|
45
|
-
style:
|
|
45
|
+
style: s({ color: c.value.text })
|
|
46
46
|
}, null, 8, ["style"]))
|
|
47
47
|
], 4),
|
|
48
|
-
e("div",
|
|
49
|
-
e("p",
|
|
50
|
-
e("p", x,
|
|
48
|
+
e("div", b, [
|
|
49
|
+
e("p", g, l(t.value), 1),
|
|
50
|
+
e("p", x, l(t.label), 1)
|
|
51
51
|
])
|
|
52
52
|
], 16));
|
|
53
53
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./StatusIndicator.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const d = /* @__PURE__ */ o(t, [["__scopeId", "data-v-59ddaff7"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
d as default
|
|
7
7
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as i, computed as e, openBlock as f, createElementBlock as v, mergeProps as p, createElementVNode as n, normalizeStyle as m, renderSlot as b, toDisplayString as _ } from "vue";
|
|
2
|
+
const g = { class: "of-status-indicator__label" }, y = /* @__PURE__ */ i({
|
|
3
3
|
inheritAttrs: !1,
|
|
4
4
|
__name: "StatusIndicator",
|
|
5
5
|
props: {
|
|
@@ -8,47 +8,47 @@ const y = { class: "of-status-indicator__label" }, h = /* @__PURE__ */ d({
|
|
|
8
8
|
size: { default: "md" },
|
|
9
9
|
color: { default: void 0 }
|
|
10
10
|
},
|
|
11
|
-
setup(
|
|
12
|
-
const
|
|
13
|
-
in_progress: "var(--of-
|
|
14
|
-
executing: "var(--of-
|
|
15
|
-
analysing: "var(--of-
|
|
16
|
-
completed: "var(--of-
|
|
17
|
-
resolved: "var(--of-
|
|
18
|
-
closed: "var(--of-
|
|
19
|
-
reviewing: "var(--of-
|
|
20
|
-
blocked: "var(--of-
|
|
21
|
-
cancelled: "var(--of-
|
|
22
|
-
open: "var(--of-
|
|
23
|
-
idle: "var(--of-
|
|
24
|
-
draft: "var(--of-
|
|
25
|
-
},
|
|
11
|
+
setup(o) {
|
|
12
|
+
const t = o, d = {
|
|
13
|
+
in_progress: "var(--of-accent-default)",
|
|
14
|
+
executing: "var(--of-accent-default)",
|
|
15
|
+
analysing: "var(--of-accent-default)",
|
|
16
|
+
completed: "var(--of-text-strong)",
|
|
17
|
+
resolved: "var(--of-text-strong)",
|
|
18
|
+
closed: "var(--of-text-strong)",
|
|
19
|
+
reviewing: "var(--of-border-strong)",
|
|
20
|
+
blocked: "var(--of-text-tertiary)",
|
|
21
|
+
cancelled: "var(--of-text-tertiary)",
|
|
22
|
+
open: "var(--of-border-subtle)",
|
|
23
|
+
idle: "var(--of-border-subtle)",
|
|
24
|
+
draft: "var(--of-border-subtle)"
|
|
25
|
+
}, c = {
|
|
26
26
|
sm: "6px",
|
|
27
27
|
md: "8px"
|
|
28
|
-
}, u = e(() =>
|
|
29
|
-
() =>
|
|
30
|
-
),
|
|
28
|
+
}, u = e(() => t.status.trim().toLowerCase()), a = e(() => t.label ?? t.status), s = e(
|
|
29
|
+
() => t.color ?? d[u.value] ?? "var(--of-border-subtle)"
|
|
30
|
+
), r = e(() => c[t.size]);
|
|
31
31
|
return (l, S) => (f(), v("span", p({
|
|
32
32
|
class: "of-status-indicator",
|
|
33
|
-
style: { "--of-status-dot-color":
|
|
33
|
+
style: { "--of-status-dot-color": s.value }
|
|
34
34
|
}, l.$attrs), [
|
|
35
|
-
|
|
35
|
+
n("span", {
|
|
36
36
|
class: "of-status-indicator__dot",
|
|
37
37
|
style: m({
|
|
38
|
-
width:
|
|
39
|
-
height:
|
|
38
|
+
width: r.value,
|
|
39
|
+
height: r.value
|
|
40
40
|
})
|
|
41
41
|
}, null, 4),
|
|
42
|
-
|
|
43
|
-
status:
|
|
44
|
-
label:
|
|
45
|
-
color:
|
|
42
|
+
b(l.$slots, "default", {
|
|
43
|
+
status: o.status,
|
|
44
|
+
label: a.value,
|
|
45
|
+
color: s.value
|
|
46
46
|
}, () => [
|
|
47
|
-
|
|
47
|
+
n("span", g, _(a.value), 1)
|
|
48
48
|
], !0)
|
|
49
49
|
], 16));
|
|
50
50
|
}
|
|
51
51
|
});
|
|
52
52
|
export {
|
|
53
|
-
|
|
53
|
+
y as default
|
|
54
54
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./StatusSummary.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const p = /* @__PURE__ */ o(t, [["__scopeId", "data-v-ac111d85"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as _, computed as i, openBlock as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as _, computed as i, openBlock as s, createElementBlock as a, mergeProps as g, Fragment as c, renderList as S, createCommentVNode as f, createElementVNode as r, normalizeStyle as n, toDisplayString as d, renderSlot as v } from "vue";
|
|
2
|
+
const z = {
|
|
3
3
|
key: 0,
|
|
4
4
|
class: "of-status-summary__sep",
|
|
5
5
|
"aria-hidden": "true"
|
|
6
6
|
}, k = { class: "of-status-summary__item" }, x = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "of-status-summary__extra"
|
|
9
|
-
},
|
|
9
|
+
}, $ = /* @__PURE__ */ _({
|
|
10
10
|
name: "StatusSummary",
|
|
11
11
|
inheritAttrs: !1,
|
|
12
12
|
__name: "StatusSummary",
|
|
@@ -16,49 +16,49 @@ const v = {
|
|
|
16
16
|
separator: { type: Boolean, default: !1 }
|
|
17
17
|
},
|
|
18
18
|
setup(o) {
|
|
19
|
-
const
|
|
20
|
-
function c(t) {
|
|
21
|
-
return t.color ?? "var(--of-color-gray-300)";
|
|
22
|
-
}
|
|
19
|
+
const u = o, l = i(() => u.size === "sm" ? "6px" : "7px"), m = i(() => u.size === "sm" ? "10px" : "11px");
|
|
23
20
|
function p(t) {
|
|
24
|
-
return t.
|
|
21
|
+
return t.color ?? "var(--of-border-subtle)";
|
|
22
|
+
}
|
|
23
|
+
function y(t) {
|
|
24
|
+
return t.highlight ? "var(--of-accent-strong)" : "var(--of-text-primary)";
|
|
25
25
|
}
|
|
26
|
-
return (t,
|
|
26
|
+
return (t, b) => (s(), a("div", g({
|
|
27
27
|
class: ["of-status-summary", `of-status-summary--${o.size}`]
|
|
28
28
|
}, t.$attrs), [
|
|
29
|
-
(
|
|
30
|
-
key:
|
|
29
|
+
(s(!0), a(c, null, S(o.items, (e, h) => (s(), a(c, {
|
|
30
|
+
key: e.key
|
|
31
31
|
}, [
|
|
32
|
-
o.separator && h > 0 ? (
|
|
32
|
+
o.separator && h > 0 ? (s(), a("span", z)) : f("", !0),
|
|
33
33
|
r("span", k, [
|
|
34
34
|
r("span", {
|
|
35
35
|
class: "of-status-summary__dot",
|
|
36
36
|
style: n({
|
|
37
|
-
width:
|
|
38
|
-
height:
|
|
39
|
-
backgroundColor:
|
|
37
|
+
width: l.value,
|
|
38
|
+
height: l.value,
|
|
39
|
+
backgroundColor: p(e)
|
|
40
40
|
})
|
|
41
41
|
}, null, 4),
|
|
42
42
|
r("span", {
|
|
43
43
|
class: "of-status-summary__label",
|
|
44
44
|
style: n({ fontSize: m.value })
|
|
45
|
-
},
|
|
45
|
+
}, d(e.label), 5),
|
|
46
46
|
r("span", {
|
|
47
47
|
class: "of-status-summary__count",
|
|
48
48
|
style: n({
|
|
49
49
|
fontSize: m.value,
|
|
50
|
-
color:
|
|
51
|
-
fontWeight:
|
|
50
|
+
color: y(e),
|
|
51
|
+
fontWeight: e.highlight ? "700" : "600"
|
|
52
52
|
})
|
|
53
|
-
},
|
|
53
|
+
}, d(e.count), 5)
|
|
54
54
|
])
|
|
55
55
|
], 64))), 128)),
|
|
56
|
-
t.$slots.extra ? (
|
|
57
|
-
|
|
58
|
-
])) :
|
|
56
|
+
t.$slots.extra ? (s(), a("span", x, [
|
|
57
|
+
v(t.$slots, "extra", {}, void 0, !0)
|
|
58
|
+
])) : f("", !0)
|
|
59
59
|
], 16));
|
|
60
60
|
}
|
|
61
61
|
});
|
|
62
62
|
export {
|
|
63
|
-
|
|
63
|
+
$ as default
|
|
64
64
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Stepper.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-9e34c6b5"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Switch.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-55260377"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
_ as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ToolbarBtn.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-d6e24cde"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ViewModeGroup.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import r from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const a = /* @__PURE__ */ r(o, [["__scopeId", "data-v-6b7abc7e"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ViewSwitcher.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-fe64afc2"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import a from "./ViewTab.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const f = /* @__PURE__ */ o(a, [["__scopeId", "data-v-efba57aa"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Breadcrumb.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-48627afb"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./BreadcrumbItem.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const e = /* @__PURE__ */ r(o, [["__scopeId", "data-v-
|
|
4
|
+
const e = /* @__PURE__ */ r(o, [["__scopeId", "data-v-90919624"]]);
|
|
5
5
|
export {
|
|
6
6
|
e as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import a from "./DatabaseView.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const f = /* @__PURE__ */ o(a, [["__scopeId", "data-v-da61dfa4"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./CommentItem.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-378cc0aa"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
c as default
|
|
7
7
|
};
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { defineComponent as c, openBlock as o, createElementBlock as n, createElementVNode as e, normalizeStyle as a, toDisplayString as m, createCommentVNode as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as c, openBlock as o, createElementBlock as n, createElementVNode as e, normalizeStyle as a, toDisplayString as m, createCommentVNode as s } from "vue";
|
|
2
|
+
const i = { class: "comment-item" }, _ = { class: "comment-item__content" }, l = { class: "comment-item__header" }, d = { class: "comment-item__author" }, r = {
|
|
3
3
|
key: 0,
|
|
4
4
|
class: "comment-item__action"
|
|
5
|
-
}, h = { class: "comment-item__time" }, u = { class: "comment-item__text" },
|
|
5
|
+
}, h = { class: "comment-item__time" }, u = { class: "comment-item__text" }, k = /* @__PURE__ */ c({
|
|
6
6
|
__name: "CommentItem",
|
|
7
7
|
props: {
|
|
8
8
|
comment: {}
|
|
9
9
|
},
|
|
10
10
|
setup(t) {
|
|
11
|
-
return (v, f) => (o(), n("div",
|
|
11
|
+
return (v, f) => (o(), n("div", i, [
|
|
12
12
|
e("div", {
|
|
13
13
|
class: "comment-item__avatar",
|
|
14
|
-
style: a({ backgroundColor: t.comment.avatarColor ?? "var(--of-
|
|
14
|
+
style: a({ backgroundColor: t.comment.avatarColor ?? "var(--of-accent-default)" })
|
|
15
15
|
}, m(t.comment.authorInitial), 5),
|
|
16
16
|
e("div", _, [
|
|
17
17
|
e("div", l, [
|
|
18
|
-
e("span",
|
|
19
|
-
t.comment.action ? (o(), n("span",
|
|
18
|
+
e("span", d, m(t.comment.author), 1),
|
|
19
|
+
t.comment.action ? (o(), n("span", r, m(t.comment.action), 1)) : s("", !0),
|
|
20
20
|
e("span", h, m(t.comment.time), 1)
|
|
21
21
|
]),
|
|
22
22
|
e("div", u, m(t.comment.content), 1)
|
|
@@ -25,5 +25,5 @@ const s = { class: "comment-item" }, _ = { class: "comment-item__content" }, l =
|
|
|
25
25
|
}
|
|
26
26
|
});
|
|
27
27
|
export {
|
|
28
|
-
|
|
28
|
+
k as default
|
|
29
29
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./DetailLayout.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-f887b37a"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./BlockQuote.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-74634abe"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./CodeBlock.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-badd36eb"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
e as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ContentBlock.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-5458915e"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|