@oneflowui/ui 0.5.8 → 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/ContextMenu/index.vue.js +2 -2
- 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 +3 -3
- 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 +242 -171
- package/dist/style.css +1 -1
- package/dist/utils/icon.js +25 -68
- package/dist/utils/iconRegistry.d.ts +7 -0
- package/dist/utils/iconRegistry.js +60 -0
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as g, computed as l, openBlock as d, createElementBlock as i, mergeProps as p, toDisplayString as b } from "vue";
|
|
2
|
+
const h = /* @__PURE__ */ g({
|
|
3
3
|
name: "Avatar",
|
|
4
4
|
inheritAttrs: !1,
|
|
5
5
|
__name: "Avatar",
|
|
@@ -11,62 +11,62 @@ const F = /* @__PURE__ */ v({
|
|
|
11
11
|
role: { default: void 0 }
|
|
12
12
|
},
|
|
13
13
|
setup(n) {
|
|
14
|
-
const r = n,
|
|
15
|
-
BE: { color: "var(--of-
|
|
16
|
-
FE: { color: "var(--of-
|
|
17
|
-
PM: { color: "var(--of-
|
|
18
|
-
DBA: { color: "var(--of-
|
|
19
|
-
ARCH: { color: "var(--of-
|
|
20
|
-
OPM: { color: "var(--of-
|
|
21
|
-
},
|
|
22
|
-
{ color: "var(--of-
|
|
23
|
-
{ color: "var(--of-
|
|
24
|
-
{ color: "var(--of-
|
|
25
|
-
{ color: "var(--of-
|
|
26
|
-
{ color: "var(--of-
|
|
27
|
-
{ color: "var(--of-
|
|
14
|
+
const r = n, t = {
|
|
15
|
+
BE: { color: "var(--of-accent-strong)", bg: "var(--of-surface-selected)" },
|
|
16
|
+
FE: { color: "var(--of-text-strong)", bg: "var(--of-surface-panel)" },
|
|
17
|
+
PM: { color: "var(--of-text-primary)", bg: "var(--of-surface-muted)" },
|
|
18
|
+
DBA: { color: "var(--of-accent-default)", bg: "var(--of-surface-elevated)" },
|
|
19
|
+
ARCH: { color: "var(--of-text-secondary)", bg: "var(--of-surface-selected)" },
|
|
20
|
+
OPM: { color: "var(--of-text-primary)", bg: "var(--of-surface-muted)" }
|
|
21
|
+
}, c = [
|
|
22
|
+
{ color: "var(--of-accent-default)", bg: "var(--of-surface-muted)" },
|
|
23
|
+
{ color: "var(--of-accent-strong)", bg: "var(--of-surface-panel)" },
|
|
24
|
+
{ color: "var(--of-text-primary)", bg: "var(--of-surface-selected)" },
|
|
25
|
+
{ color: "var(--of-text-secondary)", bg: "var(--of-surface-elevated)" },
|
|
26
|
+
{ color: "var(--of-text-strong)", bg: "var(--of-surface-muted)" },
|
|
27
|
+
{ color: "var(--of-accent-default)", bg: "var(--of-surface-panel)" }
|
|
28
28
|
];
|
|
29
|
-
function
|
|
30
|
-
let
|
|
31
|
-
for (let
|
|
32
|
-
|
|
33
|
-
return Math.abs(
|
|
29
|
+
function f(e) {
|
|
30
|
+
let o = 0;
|
|
31
|
+
for (let a = 0; a < e.length; a++)
|
|
32
|
+
o = (o << 5) - o + e.charCodeAt(a), o |= 0;
|
|
33
|
+
return Math.abs(o);
|
|
34
34
|
}
|
|
35
|
-
const
|
|
36
|
-
var
|
|
35
|
+
const s = l(() => {
|
|
36
|
+
var a;
|
|
37
37
|
if (r.color && r.bg)
|
|
38
38
|
return { color: r.color, bg: r.bg };
|
|
39
|
-
const
|
|
40
|
-
if (
|
|
39
|
+
const e = (a = r.role) == null ? void 0 : a.toUpperCase();
|
|
40
|
+
if (e && t[e])
|
|
41
41
|
return {
|
|
42
|
-
color: r.color ||
|
|
43
|
-
bg: r.bg ||
|
|
42
|
+
color: r.color || t[e].color,
|
|
43
|
+
bg: r.bg || t[e].bg
|
|
44
44
|
};
|
|
45
|
-
const
|
|
45
|
+
const o = f(r.name) % c.length;
|
|
46
46
|
return {
|
|
47
|
-
color: r.color ||
|
|
48
|
-
bg: r.bg ||
|
|
47
|
+
color: r.color || c[o].color,
|
|
48
|
+
bg: r.bg || c[o].bg
|
|
49
49
|
};
|
|
50
|
-
}),
|
|
50
|
+
}), u = l(() => {
|
|
51
51
|
if (r.role)
|
|
52
52
|
return r.role.slice(0, 2).toUpperCase();
|
|
53
|
-
const
|
|
54
|
-
return
|
|
55
|
-
}),
|
|
56
|
-
const
|
|
53
|
+
const e = r.name.trim();
|
|
54
|
+
return e ? /[\u4e00-\u9fff]/.test(e.charAt(0)) ? e.charAt(0) : e.replace(/[^a-zA-Z]/g, "").slice(0, 2).toUpperCase() : "";
|
|
55
|
+
}), v = l(() => {
|
|
56
|
+
const e = r.size, o = Math.round(e * 0.36);
|
|
57
57
|
return {
|
|
58
|
-
"--one-avatar-size": `${
|
|
59
|
-
"--one-avatar-bg":
|
|
60
|
-
"--one-avatar-color":
|
|
61
|
-
"--one-avatar-font-size": `${
|
|
58
|
+
"--one-avatar-size": `${e}px`,
|
|
59
|
+
"--one-avatar-bg": s.value.bg,
|
|
60
|
+
"--one-avatar-color": s.value.color,
|
|
61
|
+
"--one-avatar-font-size": `${o}px`
|
|
62
62
|
};
|
|
63
63
|
});
|
|
64
|
-
return (
|
|
64
|
+
return (e, o) => (d(), i("span", p({
|
|
65
65
|
class: "one-avatar",
|
|
66
|
-
style:
|
|
67
|
-
},
|
|
66
|
+
style: v.value
|
|
67
|
+
}, e.$attrs), b(u.value), 17));
|
|
68
68
|
}
|
|
69
69
|
});
|
|
70
70
|
export {
|
|
71
|
-
|
|
71
|
+
h as default
|
|
72
72
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Badge.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-c1252ffd"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as u, computed as a, openBlock as c, createElementBlock as f, mergeProps as b, renderSlot as l } from "vue";
|
|
2
|
+
const i = /* @__PURE__ */ u({
|
|
3
3
|
inheritAttrs: !1,
|
|
4
4
|
__name: "Badge",
|
|
5
5
|
props: {
|
|
@@ -8,63 +8,63 @@ const p = /* @__PURE__ */ n({
|
|
|
8
8
|
size: { default: "md" }
|
|
9
9
|
},
|
|
10
10
|
setup(o) {
|
|
11
|
-
const
|
|
11
|
+
const e = o, t = {
|
|
12
12
|
default: {
|
|
13
|
-
background: "var(--of-
|
|
14
|
-
text: "var(--of-
|
|
15
|
-
border: "var(--of-
|
|
13
|
+
background: "var(--of-surface-muted)",
|
|
14
|
+
text: "var(--of-text-secondary)",
|
|
15
|
+
border: "var(--of-border-subtle)"
|
|
16
16
|
},
|
|
17
17
|
blue: {
|
|
18
|
-
background: "var(--of-
|
|
19
|
-
text: "var(--of-
|
|
20
|
-
border: "var(--of-
|
|
18
|
+
background: "var(--of-surface-selected)",
|
|
19
|
+
text: "var(--of-accent-strong)",
|
|
20
|
+
border: "var(--of-border-subtle)"
|
|
21
21
|
},
|
|
22
22
|
green: {
|
|
23
|
-
background: "var(--of-
|
|
24
|
-
text: "var(--of-
|
|
25
|
-
border: "var(--of-
|
|
23
|
+
background: "var(--of-surface-panel)",
|
|
24
|
+
text: "var(--of-text-strong)",
|
|
25
|
+
border: "var(--of-border-subtle)"
|
|
26
26
|
},
|
|
27
27
|
orange: {
|
|
28
|
-
background: "var(--of-
|
|
29
|
-
text: "var(--of-
|
|
30
|
-
border: "var(--of-
|
|
28
|
+
background: "var(--of-surface-muted)",
|
|
29
|
+
text: "var(--of-text-primary)",
|
|
30
|
+
border: "var(--of-border-strong)"
|
|
31
31
|
},
|
|
32
32
|
red: {
|
|
33
|
-
background: "var(--of-
|
|
34
|
-
text: "var(--of-
|
|
35
|
-
border: "var(--of-
|
|
33
|
+
background: "var(--of-surface-selected)",
|
|
34
|
+
text: "var(--of-text-strong)",
|
|
35
|
+
border: "var(--of-border-strong)"
|
|
36
36
|
},
|
|
37
37
|
purple: {
|
|
38
|
-
background: "var(--of-
|
|
39
|
-
text: "var(--of-
|
|
40
|
-
border: "var(--of-
|
|
38
|
+
background: "var(--of-surface-panel)",
|
|
39
|
+
text: "var(--of-text-secondary)",
|
|
40
|
+
border: "var(--of-border-subtle)"
|
|
41
41
|
},
|
|
42
42
|
gray: {
|
|
43
|
-
background: "var(--of-
|
|
44
|
-
text: "var(--of-
|
|
45
|
-
border: "var(--of-
|
|
43
|
+
background: "var(--of-surface-muted)",
|
|
44
|
+
text: "var(--of-text-secondary)",
|
|
45
|
+
border: "var(--of-border-subtle)"
|
|
46
46
|
}
|
|
47
|
-
},
|
|
47
|
+
}, d = {
|
|
48
48
|
P0: "red",
|
|
49
49
|
P1: "orange",
|
|
50
50
|
P2: "blue",
|
|
51
51
|
P3: "green"
|
|
52
|
-
},
|
|
53
|
-
const
|
|
52
|
+
}, n = a(() => e.priority ? d[e.priority] : e.color ? e.color in t ? e.color : "default" : "gray"), s = a(() => {
|
|
53
|
+
const r = t[n.value];
|
|
54
54
|
return {
|
|
55
|
-
"--one-badge-bg":
|
|
56
|
-
"--one-badge-color":
|
|
57
|
-
"--one-badge-border":
|
|
55
|
+
"--one-badge-bg": r.background,
|
|
56
|
+
"--one-badge-color": r.text,
|
|
57
|
+
"--one-badge-border": r.border
|
|
58
58
|
};
|
|
59
59
|
});
|
|
60
|
-
return (
|
|
60
|
+
return (r, g) => (c(), f("span", b({
|
|
61
61
|
class: ["one-badge", `one-badge--${o.size}`],
|
|
62
|
-
style:
|
|
63
|
-
},
|
|
64
|
-
|
|
62
|
+
style: s.value
|
|
63
|
+
}, r.$attrs), [
|
|
64
|
+
l(r.$slots, "default", {}, void 0, !0)
|
|
65
65
|
], 16));
|
|
66
66
|
}
|
|
67
67
|
});
|
|
68
68
|
export {
|
|
69
|
-
|
|
69
|
+
i as default
|
|
70
70
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ButtonGroup.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-c8222931"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
_ as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ChainItem.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-33f87d67"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as h, computed as e, openBlock as l, createElementBlock as c, mergeProps as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as h, computed as e, openBlock as l, createElementBlock as c, mergeProps as C, createElementVNode as s, normalizeStyle as d, toDisplayString as r, createCommentVNode as u } from "vue";
|
|
2
|
+
const _ = { class: "one-chain-item__header" }, B = {
|
|
3
3
|
key: 0,
|
|
4
4
|
class: "one-chain-item__duration"
|
|
5
|
-
},
|
|
5
|
+
}, S = /* @__PURE__ */ h({
|
|
6
6
|
inheritAttrs: !1,
|
|
7
7
|
__name: "ChainItem",
|
|
8
8
|
props: {
|
|
@@ -15,54 +15,54 @@ const F = { class: "one-chain-item__header" }, B = {
|
|
|
15
15
|
bg: { default: void 0 },
|
|
16
16
|
borderColor: { default: void 0 }
|
|
17
17
|
},
|
|
18
|
-
setup(
|
|
19
|
-
const
|
|
18
|
+
setup(a) {
|
|
19
|
+
const t = a, i = {
|
|
20
20
|
source: {
|
|
21
|
-
color: "var(--of-
|
|
22
|
-
bg: "var(--of-
|
|
23
|
-
border: "var(--of-
|
|
24
|
-
avatarBg: "var(--of-
|
|
25
|
-
descColor: "var(--of-
|
|
21
|
+
color: "var(--of-accent-strong)",
|
|
22
|
+
bg: "var(--of-surface-panel)",
|
|
23
|
+
border: "var(--of-border-subtle)",
|
|
24
|
+
avatarBg: "var(--of-surface-selected)",
|
|
25
|
+
descColor: "var(--of-text-secondary)",
|
|
26
26
|
defaultAvatar: "A"
|
|
27
27
|
},
|
|
28
28
|
result: {
|
|
29
|
-
color: "var(--of-
|
|
30
|
-
bg: "var(--of-
|
|
31
|
-
border: "var(--of-
|
|
32
|
-
avatarBg: "var(--of-
|
|
33
|
-
descColor: "var(--of-
|
|
29
|
+
color: "var(--of-accent-default)",
|
|
30
|
+
bg: "var(--of-surface-muted)",
|
|
31
|
+
border: "var(--of-border-subtle)",
|
|
32
|
+
avatarBg: "var(--of-surface-selected)",
|
|
33
|
+
descColor: "var(--of-text-primary)",
|
|
34
34
|
defaultAvatar: "✓"
|
|
35
35
|
}
|
|
36
|
-
},
|
|
36
|
+
}, o = e(() => i[t.type || "source"]), n = e(() => t.color || o.value.color), v = e(() => t.bg || o.value.bg), f = e(() => t.borderColor || o.value.border), m = e(() => o.value.descColor), b = e(() => t.avatar || o.value.defaultAvatar), y = e(() => ({
|
|
37
37
|
background: v.value,
|
|
38
38
|
borderColor: f.value
|
|
39
|
-
})),
|
|
40
|
-
backgroundColor:
|
|
39
|
+
})), g = e(() => ({
|
|
40
|
+
backgroundColor: o.value.avatarBg,
|
|
41
41
|
color: n.value
|
|
42
42
|
}));
|
|
43
|
-
return (
|
|
43
|
+
return (p, k) => (l(), c("div", C({
|
|
44
44
|
class: "one-chain-item",
|
|
45
|
-
style:
|
|
46
|
-
},
|
|
47
|
-
s("div",
|
|
45
|
+
style: y.value
|
|
46
|
+
}, p.$attrs), [
|
|
47
|
+
s("div", _, [
|
|
48
48
|
s("span", {
|
|
49
49
|
class: "one-chain-item__avatar",
|
|
50
|
-
style: d(
|
|
51
|
-
},
|
|
50
|
+
style: d(g.value)
|
|
51
|
+
}, r(b.value), 5),
|
|
52
52
|
s("span", {
|
|
53
53
|
class: "one-chain-item__title",
|
|
54
54
|
style: d({ color: n.value })
|
|
55
|
-
},
|
|
56
|
-
|
|
55
|
+
}, r(a.title), 5),
|
|
56
|
+
a.duration ? (l(), c("span", B, r(a.duration), 1)) : u("", !0)
|
|
57
57
|
]),
|
|
58
|
-
|
|
58
|
+
a.description ? (l(), c("div", {
|
|
59
59
|
key: 0,
|
|
60
60
|
class: "one-chain-item__desc",
|
|
61
|
-
style: d({ color:
|
|
62
|
-
},
|
|
61
|
+
style: d({ color: m.value })
|
|
62
|
+
}, r(a.description), 5)) : u("", !0)
|
|
63
63
|
], 16));
|
|
64
64
|
}
|
|
65
65
|
});
|
|
66
66
|
export {
|
|
67
|
-
|
|
67
|
+
S as default
|
|
68
68
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./DescBlock.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import c from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const m = /* @__PURE__ */ c(o, [["__scopeId", "data-v-2ce164cb"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./DropdownMenu.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-0531c21a"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./EmptyState.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const r = /* @__PURE__ */ o(t, [["__scopeId", "data-v-
|
|
4
|
+
const r = /* @__PURE__ */ o(t, [["__scopeId", "data-v-20f94f3d"]]);
|
|
5
5
|
export {
|
|
6
6
|
r as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./InfoCard.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-3d068732"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as E, useCssVars as L, computed as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as E, useCssVars as L, computed as y, openBlock as o, createElementBlock as a, mergeProps as B, Fragment as l, renderSlot as c, createCommentVNode as n, createElementVNode as s, toDisplayString as i, normalizeStyle as u, renderList as P } from "vue";
|
|
2
|
+
const w = {
|
|
3
3
|
key: 0,
|
|
4
4
|
class: "of-info-card__icon-area"
|
|
5
5
|
}, A = { class: "of-info-card__body" }, T = { class: "of-info-card__title" }, V = { class: "of-info-card__footer" }, D = {
|
|
@@ -44,126 +44,126 @@ const P = {
|
|
|
44
44
|
typeColor: { default: void 0 }
|
|
45
45
|
},
|
|
46
46
|
emits: ["click"],
|
|
47
|
-
setup(
|
|
47
|
+
setup(t, { emit: g }) {
|
|
48
48
|
L((e) => ({
|
|
49
|
-
|
|
49
|
+
v36da208e: e.unread ? "var(--of-surface-selected)" : "var(--of-surface-elevated)"
|
|
50
50
|
}));
|
|
51
|
-
const
|
|
52
|
-
模板: "var(--of-
|
|
53
|
-
template: "var(--of-
|
|
54
|
-
会话: "var(--of-
|
|
55
|
-
session: "var(--of-
|
|
56
|
-
}, k =
|
|
51
|
+
const r = t, h = g, m = {
|
|
52
|
+
模板: "var(--of-accent-default)",
|
|
53
|
+
template: "var(--of-accent-default)",
|
|
54
|
+
会话: "var(--of-text-strong)",
|
|
55
|
+
session: "var(--of-text-strong)"
|
|
56
|
+
}, k = y(() => r.variant === "memo" ? r.importance === "high" ? "var(--of-border-strong)" : r.borderColor ?? "var(--of-accent-default)" : r.variant === "history" ? r.typeColor ? r.typeColor : r.type && m[r.type] ? m[r.type] : r.borderColor ?? "var(--of-accent-default)" : "transparent"), _ = y(() => {
|
|
57
57
|
const e = {
|
|
58
58
|
"--of-ic-border": k.value
|
|
59
59
|
};
|
|
60
|
-
return
|
|
61
|
-
}), v =
|
|
60
|
+
return r.variant === "notify" && (e["--of-ic-unread-dot"] = r.unread ? "var(--of-accent-default)" : "var(--of-text-tertiary)"), e;
|
|
61
|
+
}), v = y(
|
|
62
62
|
() => ({
|
|
63
|
-
"--of-ic-clamp": String(
|
|
63
|
+
"--of-ic-clamp": String(r.contentLines ?? 3)
|
|
64
64
|
})
|
|
65
65
|
);
|
|
66
66
|
function C(e) {
|
|
67
|
-
const
|
|
67
|
+
const f = [
|
|
68
68
|
{
|
|
69
|
-
bg: "var(--of-
|
|
70
|
-
color: "var(--of-
|
|
71
|
-
border: "var(--of-
|
|
69
|
+
bg: "var(--of-surface-muted)",
|
|
70
|
+
color: "var(--of-accent-default)",
|
|
71
|
+
border: "var(--of-border-subtle)"
|
|
72
72
|
},
|
|
73
73
|
{
|
|
74
|
-
bg: "var(--of-
|
|
75
|
-
color: "var(--of-
|
|
76
|
-
border: "var(--of-
|
|
74
|
+
bg: "var(--of-surface-panel)",
|
|
75
|
+
color: "var(--of-text-strong)",
|
|
76
|
+
border: "var(--of-border-subtle)"
|
|
77
77
|
},
|
|
78
78
|
{
|
|
79
|
-
bg: "var(--of-
|
|
80
|
-
color: "var(--of-
|
|
81
|
-
border: "var(--of-
|
|
79
|
+
bg: "var(--of-surface-selected)",
|
|
80
|
+
color: "var(--of-accent-strong)",
|
|
81
|
+
border: "var(--of-border-strong)"
|
|
82
82
|
},
|
|
83
83
|
{
|
|
84
|
-
bg: "var(--of-
|
|
85
|
-
color: "var(--of-
|
|
86
|
-
border: "var(--of-
|
|
84
|
+
bg: "var(--of-surface-panel)",
|
|
85
|
+
color: "var(--of-text-secondary)",
|
|
86
|
+
border: "var(--of-border-subtle)"
|
|
87
87
|
},
|
|
88
88
|
{
|
|
89
|
-
bg: "var(--of-
|
|
90
|
-
color: "var(--of-
|
|
91
|
-
border: "var(--of-
|
|
89
|
+
bg: "var(--of-surface-muted)",
|
|
90
|
+
color: "var(--of-text-tertiary)",
|
|
91
|
+
border: "var(--of-border-subtle)"
|
|
92
92
|
}
|
|
93
|
-
],
|
|
93
|
+
], d = f[e % f.length];
|
|
94
94
|
return {
|
|
95
|
-
"--of-ic-tag-bg":
|
|
96
|
-
"--of-ic-tag-color":
|
|
97
|
-
"--of-ic-tag-border":
|
|
95
|
+
"--of-ic-tag-bg": d.bg,
|
|
96
|
+
"--of-ic-tag-color": d.color,
|
|
97
|
+
"--of-ic-tag-border": d.border
|
|
98
98
|
};
|
|
99
99
|
}
|
|
100
|
-
function
|
|
100
|
+
function b(e) {
|
|
101
101
|
h("click", e);
|
|
102
102
|
}
|
|
103
103
|
function $(e) {
|
|
104
|
-
e.key !== "Enter" && e.key !== " " || (e.preventDefault(),
|
|
104
|
+
e.key !== "Enter" && e.key !== " " || (e.preventDefault(), b(new MouseEvent("click")));
|
|
105
105
|
}
|
|
106
|
-
return (e,
|
|
107
|
-
class: ["of-info-card", `of-info-card--${
|
|
106
|
+
return (e, f) => (o(), a("div", B({
|
|
107
|
+
class: ["of-info-card", `of-info-card--${t.variant}`],
|
|
108
108
|
style: _.value,
|
|
109
109
|
role: "button",
|
|
110
110
|
tabindex: "0"
|
|
111
111
|
}, e.$attrs, {
|
|
112
|
-
onClick:
|
|
112
|
+
onClick: b,
|
|
113
113
|
onKeydown: $
|
|
114
114
|
}), [
|
|
115
|
-
|
|
116
|
-
e.$slots.icon ? (
|
|
115
|
+
t.variant === "memo" ? (o(), a(l, { key: 0 }, [
|
|
116
|
+
e.$slots.icon ? (o(), a("div", w, [
|
|
117
117
|
c(e.$slots, "icon", {}, void 0, !0)
|
|
118
118
|
])) : n("", !0),
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
119
|
+
s("div", A, [
|
|
120
|
+
s("div", T, i(t.title), 1),
|
|
121
|
+
t.content ? (o(), a("div", {
|
|
122
122
|
key: 0,
|
|
123
123
|
class: "of-info-card__content of-info-card__content--clamp",
|
|
124
124
|
style: u(v.value)
|
|
125
|
-
}, i(
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
key:
|
|
125
|
+
}, i(t.content), 5)) : n("", !0),
|
|
126
|
+
s("div", V, [
|
|
127
|
+
t.tags && t.tags.length ? (o(!0), a(l, { key: 0 }, P(t.tags, (d, S) => (o(), a("span", {
|
|
128
|
+
key: d,
|
|
129
129
|
class: "of-info-card__tag",
|
|
130
130
|
style: u(C(S))
|
|
131
|
-
}, i(
|
|
132
|
-
|
|
133
|
-
|
|
131
|
+
}, i(d), 5))), 128)) : n("", !0),
|
|
132
|
+
t.author ? (o(), a("span", D, i(t.author), 1)) : n("", !0),
|
|
133
|
+
t.date ? (o(), a("span", I, i(t.date), 1)) : n("", !0),
|
|
134
134
|
c(e.$slots, "footer", {}, void 0, !0)
|
|
135
135
|
])
|
|
136
136
|
])
|
|
137
|
-
], 64)) :
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
137
|
+
], 64)) : t.variant === "notify" ? (o(), a(l, { key: 1 }, [
|
|
138
|
+
f[0] || (f[0] = s("span", { class: "of-info-card__dot" }, null, -1)),
|
|
139
|
+
s("div", K, [
|
|
140
|
+
s("div", M, i(t.title), 1),
|
|
141
|
+
t.content ? (o(), a("div", {
|
|
142
142
|
key: 0,
|
|
143
143
|
class: "of-info-card__content of-info-card__content--clamp",
|
|
144
144
|
style: u(v.value)
|
|
145
|
-
}, i(
|
|
146
|
-
|
|
145
|
+
}, i(t.content), 5)) : n("", !0),
|
|
146
|
+
t.meta ? (o(), a("div", N, i(t.meta), 1)) : n("", !0),
|
|
147
147
|
c(e.$slots, "footer", {}, void 0, !0)
|
|
148
148
|
]),
|
|
149
|
-
e.$slots.actions ? (
|
|
149
|
+
e.$slots.actions ? (o(), a("div", O, [
|
|
150
150
|
c(e.$slots, "actions", {}, void 0, !0)
|
|
151
151
|
])) : n("", !0)
|
|
152
|
-
], 64)) :
|
|
153
|
-
e.$slots.icon ? (
|
|
152
|
+
], 64)) : t.variant === "history" ? (o(), a(l, { key: 2 }, [
|
|
153
|
+
e.$slots.icon ? (o(), a("div", z, [
|
|
154
154
|
c(e.$slots, "icon", {}, void 0, !0)
|
|
155
155
|
])) : n("", !0),
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
156
|
+
s("div", F, [
|
|
157
|
+
s("div", R, i(t.title), 1),
|
|
158
|
+
t.subtitle ? (o(), a("div", Y, i(t.subtitle), 1)) : n("", !0),
|
|
159
|
+
t.content ? (o(), a("div", {
|
|
160
160
|
key: 1,
|
|
161
161
|
class: "of-info-card__content of-info-card__content--clamp",
|
|
162
162
|
style: u(v.value)
|
|
163
|
-
}, i(
|
|
163
|
+
}, i(t.content), 5)) : n("", !0),
|
|
164
164
|
c(e.$slots, "footer", {}, void 0, !0)
|
|
165
165
|
]),
|
|
166
|
-
e.$slots.actions ? (
|
|
166
|
+
e.$slots.actions ? (o(), a("div", j, [
|
|
167
167
|
c(e.$slots, "actions", {}, void 0, !0)
|
|
168
168
|
])) : n("", !0)
|
|
169
169
|
], 64)) : n("", !0)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./MonitorItem.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-dcb81667"]]);
|
|
5
5
|
export {
|
|
6
6
|
_ as default
|
|
7
7
|
};
|