@oneflowui/ui 0.5.9 → 0.7.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.d.ts +3 -1
- package/dist/components/Dashboard/index.vue.js +2 -2
- package/dist/components/Dashboard/index.vue2.js +59 -30
- 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 +2 -2
- package/dist/components/database/DatabaseView.vue2.js +482 -412
- package/dist/components/detail/CommentItem.vue.js +2 -2
- package/dist/components/detail/CommentItem.vue2.js +8 -8
- package/dist/components/detail/DetailLayout.vue.d.ts +12 -1
- package/dist/components/detail/DetailLayout.vue.js +2 -2
- package/dist/components/detail/DetailLayout.vue2.js +115 -68
- 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.d.ts +3 -1
- package/dist/components/gallery/GalleryView.vue.js +1 -1
- package/dist/components/gallery/GalleryView.vue2.js +51 -27
- 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.d.ts +2 -0
- package/dist/components/overlay/Drawer.vue.js +2 -2
- package/dist/components/overlay/Drawer.vue2.js +25 -24
- package/dist/components/overlay/Modal.vue.js +1 -1
- package/dist/components/overlay/SidePanel.vue.js +2 -2
- package/dist/components/overlay/SidePanel.vue2.js +3 -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.d.ts +26 -2
- package/dist/components/table/DataTable.vue.js +2 -2
- package/dist/components/table/DataTable.vue2.js +738 -603
- package/dist/components/table/DetailSheet.vue.js +1 -1
- package/dist/components/table/FieldCell.vue.js +2 -2
- package/dist/components/table/FieldCell.vue2.js +26 -24
- 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.d.ts +19 -0
- package/dist/components/table/TableDataRow.vue.js +1 -1
- package/dist/components/table/TableDataRow.vue2.js +110 -73
- 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
|
@@ -11,8 +11,8 @@ const C = { class: "of-person-panel__row" }, B = ["src", "alt"], N = { key: 1 },
|
|
|
11
11
|
disabled: { type: Boolean }
|
|
12
12
|
},
|
|
13
13
|
emits: ["update:modelValue", "change"],
|
|
14
|
-
setup(
|
|
15
|
-
const c =
|
|
14
|
+
setup(s, { emit: _ }) {
|
|
15
|
+
const c = s, u = _, r = p({
|
|
16
16
|
get: () => c.modelValue,
|
|
17
17
|
set: (a) => {
|
|
18
18
|
u("update:modelValue", a), u("change", a);
|
|
@@ -23,15 +23,15 @@ const C = { class: "of-person-panel__row" }, B = ["src", "alt"], N = { key: 1 },
|
|
|
23
23
|
function f(a) {
|
|
24
24
|
return (a || "?").trim().slice(0, 1).toUpperCase();
|
|
25
25
|
}
|
|
26
|
-
return (a,
|
|
27
|
-
class: b(["of-person-panel", { disabled:
|
|
26
|
+
return (a, n) => (e(), l("div", {
|
|
27
|
+
class: b(["of-person-panel", { disabled: s.disabled }])
|
|
28
28
|
}, [
|
|
29
|
-
|
|
29
|
+
n[1] || (n[1] = d("span", { class: "of-person-panel__label" }, "负责人", -1)),
|
|
30
30
|
d("div", C, [
|
|
31
31
|
o.value ? (e(), l("div", {
|
|
32
32
|
key: 0,
|
|
33
33
|
class: "of-person-panel__avatar",
|
|
34
|
-
style: k({ background: o.value.color || "var(--of-
|
|
34
|
+
style: k({ background: o.value.color || "var(--of-surface-selected)" })
|
|
35
35
|
}, [
|
|
36
36
|
o.value.avatar ? (e(), l("img", {
|
|
37
37
|
key: 0,
|
|
@@ -40,13 +40,13 @@ const C = { class: "of-person-panel__row" }, B = ["src", "alt"], N = { key: 1 },
|
|
|
40
40
|
}, null, 8, B)) : (e(), l("span", N, i(f(o.value.name)), 1))
|
|
41
41
|
], 4)) : (e(), l("div", P, "-")),
|
|
42
42
|
h(d("select", {
|
|
43
|
-
"onUpdate:modelValue":
|
|
43
|
+
"onUpdate:modelValue": n[0] || (n[0] = (t) => r.value = t),
|
|
44
44
|
class: "of-person-panel__select",
|
|
45
45
|
"aria-label": "负责人",
|
|
46
|
-
disabled:
|
|
46
|
+
disabled: s.disabled
|
|
47
47
|
}, [
|
|
48
|
-
d("option", w, i(
|
|
49
|
-
(e(!0), l(m, null, V(
|
|
48
|
+
d("option", w, i(s.placeholder), 1),
|
|
49
|
+
(e(!0), l(m, null, V(s.people, (t) => (e(), l("option", {
|
|
50
50
|
key: t.id,
|
|
51
51
|
value: t.id
|
|
52
52
|
}, [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Accordion.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-
|
|
4
|
+
const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-062c67ea"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import o from "./Avatar.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const m = /* @__PURE__ */ o
|
|
3
|
+
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-29ae0fc9"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -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
|
};
|