@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.
Files changed (123) hide show
  1. package/README.en.md +19 -0
  2. package/README.md +23 -0
  3. package/dist/components/ContextMenu/index.vue.js +2 -2
  4. package/dist/components/Dashboard/charts/BarChart.vue.js +2 -2
  5. package/dist/components/Dashboard/charts/BarChart.vue2.js +56 -23
  6. package/dist/components/Dashboard/charts/NumberCard.vue.js +2 -2
  7. package/dist/components/Dashboard/charts/NumberCard.vue2.js +14 -14
  8. package/dist/components/Dashboard/charts/PieChart.vue.js +1 -1
  9. package/dist/components/Dashboard/charts/PieChart.vue2.js +49 -23
  10. package/dist/components/Dashboard/charts/TableChart.vue.js +1 -1
  11. package/dist/components/Dashboard/index.vue.js +3 -3
  12. package/dist/components/ai/AiMessageBubble.vue.js +3 -3
  13. package/dist/components/ai/AiSender.vue.js +2 -2
  14. package/dist/components/ai/AiThinking.vue.js +1 -1
  15. package/dist/components/ai/UserMessageBubble.vue.js +3 -3
  16. package/dist/components/auxiliary/ColorPanel.vue.js +3 -3
  17. package/dist/components/auxiliary/ColorPanel.vue2.js +9 -9
  18. package/dist/components/auxiliary/FileUpload.vue.js +2 -2
  19. package/dist/components/auxiliary/PersonPanel.vue.js +1 -1
  20. package/dist/components/auxiliary/PersonPanel.vue2.js +10 -10
  21. package/dist/components/base/Accordion.vue.js +1 -1
  22. package/dist/components/base/Avatar.vue.js +3 -3
  23. package/dist/components/base/Avatar.vue2.js +43 -43
  24. package/dist/components/base/Badge.vue.js +1 -1
  25. package/dist/components/base/Badge.vue2.js +35 -35
  26. package/dist/components/base/ButtonGroup.vue.js +2 -2
  27. package/dist/components/base/ChainItem.vue.js +2 -2
  28. package/dist/components/base/ChainItem.vue2.js +30 -30
  29. package/dist/components/base/DescBlock.vue.js +3 -3
  30. package/dist/components/base/DropdownMenu.vue.js +2 -2
  31. package/dist/components/base/EmptyState.vue.js +1 -1
  32. package/dist/components/base/InfoCard.vue.js +2 -2
  33. package/dist/components/base/InfoCard.vue2.js +66 -66
  34. package/dist/components/base/MonitorItem.vue.js +1 -1
  35. package/dist/components/base/MonitorItem.vue2.js +16 -16
  36. package/dist/components/base/PersonaCard.vue.js +1 -1
  37. package/dist/components/base/PersonaCard.vue2.js +81 -81
  38. package/dist/components/base/ProgressBar.vue.js +2 -2
  39. package/dist/components/base/ProgressBar.vue2.js +16 -16
  40. package/dist/components/base/RangeSlider.vue.js +1 -1
  41. package/dist/components/base/RefTag.vue.js +2 -2
  42. package/dist/components/base/RefTag.vue2.js +20 -20
  43. package/dist/components/base/SearchHighlight.vue.js +1 -1
  44. package/dist/components/base/SectionBlock.vue.js +1 -1
  45. package/dist/components/base/SectionBlock.vue2.js +44 -44
  46. package/dist/components/base/StatisticCard.vue.js +2 -2
  47. package/dist/components/base/StatisticCard.vue2.js +24 -24
  48. package/dist/components/base/StatusIndicator.vue.js +2 -2
  49. package/dist/components/base/StatusIndicator.vue2.js +30 -30
  50. package/dist/components/base/StatusSummary.vue.js +2 -2
  51. package/dist/components/base/StatusSummary.vue2.js +23 -23
  52. package/dist/components/base/Stepper.vue.js +2 -2
  53. package/dist/components/base/Switch.vue.js +2 -2
  54. package/dist/components/base/ToolbarBtn.vue.js +1 -1
  55. package/dist/components/base/ViewModeGroup.vue.js +3 -3
  56. package/dist/components/base/ViewSwitcher.vue.js +2 -2
  57. package/dist/components/base/ViewTab.vue.js +4 -4
  58. package/dist/components/breadcrumb/Breadcrumb.vue.js +2 -2
  59. package/dist/components/breadcrumb/BreadcrumbItem.vue.js +1 -1
  60. package/dist/components/database/DatabaseView.vue.js +4 -4
  61. package/dist/components/detail/CommentItem.vue.js +2 -2
  62. package/dist/components/detail/CommentItem.vue2.js +8 -8
  63. package/dist/components/detail/DetailLayout.vue.js +1 -1
  64. package/dist/components/editor/BlockQuote.vue.js +2 -2
  65. package/dist/components/editor/CodeBlock.vue.js +2 -2
  66. package/dist/components/editor/ContentBlock.vue.js +2 -2
  67. package/dist/components/editor/RefLink.vue.js +2 -2
  68. package/dist/components/editor/RichTextEditor.vue.js +1 -1
  69. package/dist/components/field/FieldAttachment.vue.js +1 -1
  70. package/dist/components/field/FieldCreator.vue.js +1 -1
  71. package/dist/components/field/FieldCurrency.vue.js +2 -2
  72. package/dist/components/field/FieldMarkdownPreview.vue.js +2 -2
  73. package/dist/components/field/FieldMultiSelect.vue.js +2 -2
  74. package/dist/components/field/FieldProgress.vue.js +2 -2
  75. package/dist/components/field/FieldRating.vue.js +2 -2
  76. package/dist/components/field/FieldRelation.vue.js +1 -1
  77. package/dist/components/field/FieldRichText.vue.js +1 -1
  78. package/dist/components/field/FieldSelect.vue.js +2 -2
  79. package/dist/components/gallery/GalleryCard.vue.js +2 -2
  80. package/dist/components/gallery/GalleryCard.vue2.js +34 -30
  81. package/dist/components/gallery/GalleryView.vue.js +2 -2
  82. package/dist/components/kanban/KanbanBoard.vue.js +4 -4
  83. package/dist/components/kanban/KanbanCard.vue.js +2 -2
  84. package/dist/components/kanban/KanbanColumn.vue.js +2 -2
  85. package/dist/components/kanban/KanbanColumn.vue2.js +16 -16
  86. package/dist/components/kanban/QuickAddRow.vue.js +1 -1
  87. package/dist/components/layout/AppLayout.vue.js +2 -2
  88. package/dist/components/layout/Navbar.vue.js +3 -3
  89. package/dist/components/layout/Sidebar.vue.js +2 -2
  90. package/dist/components/layout/StatusBar.vue.js +2 -2
  91. package/dist/components/mermaid/MermaidChart.vue.js +2 -2
  92. package/dist/components/overlay/Dialog.vue.js +2 -2
  93. package/dist/components/overlay/Drawer.vue.js +2 -2
  94. package/dist/components/overlay/Modal.vue.js +1 -1
  95. package/dist/components/overlay/SidePanel.vue.js +2 -2
  96. package/dist/components/split/SplitPane.vue.js +2 -2
  97. package/dist/components/table/ColumnHeaderMenu.vue.js +1 -1
  98. package/dist/components/table/DataTable.vue.js +4 -4
  99. package/dist/components/table/DetailSheet.vue.js +1 -1
  100. package/dist/components/table/FieldCell.vue.js +1 -1
  101. package/dist/components/table/FieldTypePicker.vue.js +4 -4
  102. package/dist/components/table/MobileListView.vue.js +2 -2
  103. package/dist/components/table/NewRowBtn.vue.js +2 -2
  104. package/dist/components/table/TableColumnManager.vue.js +2 -2
  105. package/dist/components/table/TableDataRow.vue.js +3 -3
  106. package/dist/components/table/TableFilterPanel.vue.js +2 -2
  107. package/dist/components/table/TableGroupRow.vue.js +2 -2
  108. package/dist/components/table/TableHeaderRow.vue.js +2 -2
  109. package/dist/components/table/TableToolbar.vue.js +2 -2
  110. package/dist/components/tabs/Tabs.vue.js +1 -1
  111. package/dist/components/timeline/ActivityTimeline.vue.js +1 -1
  112. package/dist/components/timeline/ActivityTimeline.vue2.js +27 -27
  113. package/dist/components/timeline/GanttRow.vue.js +2 -2
  114. package/dist/components/timeline/GanttRow.vue2.js +21 -18
  115. package/dist/components/timeline/GanttTimeline.vue.js +2 -2
  116. package/dist/components/toast/ToastItem.vue.js +2 -2
  117. package/dist/components/toast/ToastItem.vue2.js +39 -39
  118. package/dist/plugin.js +242 -171
  119. package/dist/style.css +1 -1
  120. package/dist/utils/icon.js +25 -68
  121. package/dist/utils/iconRegistry.d.ts +7 -0
  122. package/dist/utils/iconRegistry.js +60 -0
  123. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
- import { defineComponent as v, computed as c, openBlock as p, createElementBlock as i, mergeProps as d, toDisplayString as u } from "vue";
2
- const F = /* @__PURE__ */ v({
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, a = {
15
- BE: { color: "var(--of-role-be-text, #4F46E5)", bg: "var(--of-role-be-bg, #EEF2FF)" },
16
- FE: { color: "var(--of-role-fe-text, #059669)", bg: "var(--of-role-fe-bg, #ECFDF5)" },
17
- PM: { color: "var(--of-role-pm-text, #db2777)", bg: "var(--of-role-pm-bg, #fce7f3)" },
18
- DBA: { color: "var(--of-role-dba-text, #c2410c)", bg: "var(--of-role-dba-bg, #fff7ed)" },
19
- ARCH: { color: "var(--of-role-arch-text, #7C3AED)", bg: "var(--of-role-arch-bg, #F5F3FF)" },
20
- OPM: { color: "var(--of-role-pm-text, #db2777)", bg: "var(--of-role-pm-bg, #fce7f3)" }
21
- }, l = [
22
- { color: "var(--of-role-be-text, #4F46E5)", bg: "var(--of-role-be-bg, #EEF2FF)" },
23
- { color: "var(--of-role-fe-text, #059669)", bg: "var(--of-role-fe-bg, #ECFDF5)" },
24
- { color: "var(--of-role-pm-text, #db2777)", bg: "var(--of-role-pm-bg, #fce7f3)" },
25
- { color: "var(--of-role-dba-text, #c2410c)", bg: "var(--of-role-dba-bg, #fff7ed)" },
26
- { color: "var(--of-role-arch-text, #7C3AED)", bg: "var(--of-role-arch-bg, #F5F3FF)" },
27
- { color: "var(--of-role-pm-text, #db2777)", bg: "var(--of-role-pm-bg, #fce7f3)" }
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 b(o) {
30
- let e = 0;
31
- for (let t = 0; t < o.length; t++)
32
- e = (e << 5) - e + o.charCodeAt(t), e |= 0;
33
- return Math.abs(e);
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 f = c(() => {
36
- var t;
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 o = (t = r.role) == null ? void 0 : t.toUpperCase();
40
- if (o && a[o])
39
+ const e = (a = r.role) == null ? void 0 : a.toUpperCase();
40
+ if (e && t[e])
41
41
  return {
42
- color: r.color || a[o].color,
43
- bg: r.bg || a[o].bg
42
+ color: r.color || t[e].color,
43
+ bg: r.bg || t[e].bg
44
44
  };
45
- const e = b(r.name) % l.length;
45
+ const o = f(r.name) % c.length;
46
46
  return {
47
- color: r.color || l[e].color,
48
- bg: r.bg || l[e].bg
47
+ color: r.color || c[o].color,
48
+ bg: r.bg || c[o].bg
49
49
  };
50
- }), s = c(() => {
50
+ }), u = l(() => {
51
51
  if (r.role)
52
52
  return r.role.slice(0, 2).toUpperCase();
53
- const o = r.name.trim();
54
- return o ? /[\u4e00-\u9fff]/.test(o.charAt(0)) ? o.charAt(0) : o.replace(/[^a-zA-Z]/g, "").slice(0, 2).toUpperCase() : "";
55
- }), g = c(() => {
56
- const o = r.size, e = Math.round(o * 0.36);
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": `${o}px`,
59
- "--one-avatar-bg": f.value.bg,
60
- "--one-avatar-color": f.value.color,
61
- "--one-avatar-font-size": `${e}px`
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 (o, e) => (p(), i("span", d({
64
+ return (e, o) => (d(), i("span", p({
65
65
  class: "one-avatar",
66
- style: g.value
67
- }, o.$attrs), u(s.value), 17));
66
+ style: v.value
67
+ }, e.$attrs), b(u.value), 17));
68
68
  }
69
69
  });
70
70
  export {
71
- F as default
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-d612270f"]]);
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 n, computed as d, openBlock as u, createElementBlock as f, mergeProps as l, renderSlot as c } from "vue";
2
- const p = /* @__PURE__ */ n({
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 r = o, a = {
11
+ const e = o, t = {
12
12
  default: {
13
- background: "var(--of-badge-gray-bg)",
14
- text: "var(--of-badge-gray-text)",
15
- border: "var(--of-badge-gray-border)"
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-badge-blue-bg)",
19
- text: "var(--of-badge-blue-text)",
20
- border: "var(--of-badge-blue-border)"
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-badge-green-bg)",
24
- text: "var(--of-badge-green-text)",
25
- border: "var(--of-badge-green-border)"
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-badge-orange-bg)",
29
- text: "var(--of-badge-orange-text)",
30
- border: "var(--of-badge-orange-border)"
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-badge-red-bg)",
34
- text: "var(--of-badge-red-text)",
35
- border: "var(--of-badge-red-border)"
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-badge-purple-bg)",
39
- text: "var(--of-badge-purple-text)",
40
- border: "var(--of-badge-purple-border)"
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-badge-gray-bg)",
44
- text: "var(--of-badge-gray-text)",
45
- border: "var(--of-badge-gray-border)"
43
+ background: "var(--of-surface-muted)",
44
+ text: "var(--of-text-secondary)",
45
+ border: "var(--of-border-subtle)"
46
46
  }
47
- }, t = {
47
+ }, d = {
48
48
  P0: "red",
49
49
  P1: "orange",
50
50
  P2: "blue",
51
51
  P3: "green"
52
- }, b = d(() => r.priority ? t[r.priority] : r.color ? r.color in a ? r.color : "default" : "gray"), g = d(() => {
53
- const e = a[b.value];
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": e.background,
56
- "--one-badge-color": e.text,
57
- "--one-badge-border": e.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 (e, v) => (u(), f("span", l({
60
+ return (r, g) => (c(), f("span", b({
61
61
  class: ["one-badge", `one-badge--${o.size}`],
62
- style: g.value
63
- }, e.$attrs), [
64
- c(e.$slots, "default", {}, void 0, !0)
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
- p as default
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 p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-c13fafa6"]]);
4
+ const _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-c8222931"]]);
5
5
  export {
6
- p as default
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 p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-329c8055"]]);
4
+ const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-33f87d67"]]);
5
5
  export {
6
- p as default
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 y, createElementVNode as s, normalizeStyle as d, toDisplayString as t, createCommentVNode as u } from "vue";
2
- const F = { class: "one-chain-item__header" }, B = {
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
- }, A = /* @__PURE__ */ h({
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(o) {
19
- const r = o, i = {
18
+ setup(a) {
19
+ const t = a, i = {
20
20
  source: {
21
- color: "var(--of-badge-purple-text, #7C3AED)",
22
- bg: "var(--of-badge-purple-bg, #F9F0FF)",
23
- border: "var(--of-badge-purple-border, #E9D5FF)",
24
- avatarBg: "var(--of-badge-purple-border, #E9D5FF)",
25
- descColor: "var(--of-badge-purple-text, #6B21A8)",
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-color-success, #22C55E)",
30
- bg: "var(--of-color-success-light, #F6FFED)",
31
- border: "var(--of-color-success-border, #B7EB8F)",
32
- avatarBg: "var(--of-color-success-border, #B7EB8F)",
33
- descColor: "var(--of-color-success-dark, #165E26)",
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
- }, a = e(() => i[r.type || "source"]), n = e(() => r.color || a.value.color), v = e(() => r.bg || a.value.bg), f = e(() => r.borderColor || a.value.border), b = e(() => a.value.descColor), p = e(() => r.avatar || a.value.defaultAvatar), g = e(() => ({
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
- })), m = e(() => ({
40
- backgroundColor: a.value.avatarBg,
39
+ })), g = e(() => ({
40
+ backgroundColor: o.value.avatarBg,
41
41
  color: n.value
42
42
  }));
43
- return (C, E) => (l(), c("div", y({
43
+ return (p, k) => (l(), c("div", C({
44
44
  class: "one-chain-item",
45
- style: g.value
46
- }, C.$attrs), [
47
- s("div", F, [
45
+ style: y.value
46
+ }, p.$attrs), [
47
+ s("div", _, [
48
48
  s("span", {
49
49
  class: "one-chain-item__avatar",
50
- style: d(m.value)
51
- }, t(p.value), 5),
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
- }, t(o.title), 5),
56
- o.duration ? (l(), c("span", B, t(o.duration), 1)) : u("", !0)
55
+ }, r(a.title), 5),
56
+ a.duration ? (l(), c("span", B, r(a.duration), 1)) : u("", !0)
57
57
  ]),
58
- o.description ? (l(), c("div", {
58
+ a.description ? (l(), c("div", {
59
59
  key: 0,
60
60
  class: "one-chain-item__desc",
61
- style: d({ color: b.value })
62
- }, t(o.description), 5)) : u("", !0)
61
+ style: d({ color: m.value })
62
+ }, r(a.description), 5)) : u("", !0)
63
63
  ], 16));
64
64
  }
65
65
  });
66
66
  export {
67
- A as default
67
+ S as default
68
68
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./DescBlock.vue2.js";
2
2
  /* empty css */
3
- import t from "../../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-3d0716d4"]]);
3
+ import c from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ c(o, [["__scopeId", "data-v-2ce164cb"]]);
5
5
  export {
6
- p as default
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 d = /* @__PURE__ */ r(o, [["__scopeId", "data-v-a8f0ddac"]]);
4
+ const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-0531c21a"]]);
5
5
  export {
6
- d as default
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-a4f8b1ed"]]);
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 e = /* @__PURE__ */ r(o, [["__scopeId", "data-v-e865ef8d"]]);
4
+ const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-3d068732"]]);
5
5
  export {
6
- e as default
6
+ m as default
7
7
  };
@@ -1,5 +1,5 @@
1
- import { defineComponent as E, useCssVars as L, computed as b, openBlock as t, createElementBlock as r, mergeProps as w, Fragment as f, renderSlot as c, createCommentVNode as n, createElementVNode as d, toDisplayString as i, normalizeStyle as u, renderList as B } from "vue";
2
- const P = {
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(o, { emit: m }) {
47
+ setup(t, { emit: g }) {
48
48
  L((e) => ({
49
- e6754980: e.unread ? "var(--of-color-warning-light)" : "var(--of-color-bg-elevated)"
49
+ v36da208e: e.unread ? "var(--of-surface-selected)" : "var(--of-surface-elevated)"
50
50
  }));
51
- const a = o, h = m, g = {
52
- 模板: "var(--of-color-primary-500)",
53
- template: "var(--of-color-primary-500)",
54
- 会话: "var(--of-color-success)",
55
- session: "var(--of-color-success)"
56
- }, k = b(() => a.variant === "memo" ? a.importance === "high" ? "var(--of-color-error)" : a.borderColor ?? "var(--of-color-info)" : a.variant === "history" ? a.typeColor ? a.typeColor : a.type && g[a.type] ? g[a.type] : a.borderColor ?? "var(--of-color-primary-500)" : "transparent"), _ = b(() => {
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 a.variant === "notify" && (e["--of-ic-unread-dot"] = a.unread ? "var(--of-color-info)" : "var(--of-color-text-tertiary)"), e;
61
- }), v = b(
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(a.contentLines ?? 3)
63
+ "--of-ic-clamp": String(r.contentLines ?? 3)
64
64
  })
65
65
  );
66
66
  function C(e) {
67
- const l = [
67
+ const f = [
68
68
  {
69
- bg: "var(--of-badge-blue-bg)",
70
- color: "var(--of-badge-blue-text)",
71
- border: "var(--of-badge-blue-border)"
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-badge-green-bg)",
75
- color: "var(--of-badge-green-text)",
76
- border: "var(--of-badge-green-border)"
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-badge-orange-bg)",
80
- color: "var(--of-badge-orange-text)",
81
- border: "var(--of-badge-orange-border)"
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-badge-purple-bg)",
85
- color: "var(--of-badge-purple-text)",
86
- border: "var(--of-badge-purple-border)"
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-badge-gray-bg)",
90
- color: "var(--of-badge-gray-text)",
91
- border: "var(--of-badge-gray-border)"
89
+ bg: "var(--of-surface-muted)",
90
+ color: "var(--of-text-tertiary)",
91
+ border: "var(--of-border-subtle)"
92
92
  }
93
- ], s = l[e % l.length];
93
+ ], d = f[e % f.length];
94
94
  return {
95
- "--of-ic-tag-bg": s.bg,
96
- "--of-ic-tag-color": s.color,
97
- "--of-ic-tag-border": s.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 y(e) {
100
+ function b(e) {
101
101
  h("click", e);
102
102
  }
103
103
  function $(e) {
104
- e.key !== "Enter" && e.key !== " " || (e.preventDefault(), y(new MouseEvent("click")));
104
+ e.key !== "Enter" && e.key !== " " || (e.preventDefault(), b(new MouseEvent("click")));
105
105
  }
106
- return (e, l) => (t(), r("div", w({
107
- class: ["of-info-card", `of-info-card--${o.variant}`],
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: y,
112
+ onClick: b,
113
113
  onKeydown: $
114
114
  }), [
115
- o.variant === "memo" ? (t(), r(f, { key: 0 }, [
116
- e.$slots.icon ? (t(), r("div", P, [
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
- d("div", A, [
120
- d("div", T, i(o.title), 1),
121
- o.content ? (t(), r("div", {
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(o.content), 5)) : n("", !0),
126
- d("div", V, [
127
- o.tags && o.tags.length ? (t(!0), r(f, { key: 0 }, B(o.tags, (s, S) => (t(), r("span", {
128
- key: s,
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(s), 5))), 128)) : n("", !0),
132
- o.author ? (t(), r("span", D, i(o.author), 1)) : n("", !0),
133
- o.date ? (t(), r("span", I, i(o.date), 1)) : n("", !0),
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)) : o.variant === "notify" ? (t(), r(f, { key: 1 }, [
138
- l[0] || (l[0] = d("span", { class: "of-info-card__dot" }, null, -1)),
139
- d("div", K, [
140
- d("div", M, i(o.title), 1),
141
- o.content ? (t(), r("div", {
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(o.content), 5)) : n("", !0),
146
- o.meta ? (t(), r("div", N, i(o.meta), 1)) : n("", !0),
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 ? (t(), r("div", O, [
149
+ e.$slots.actions ? (o(), a("div", O, [
150
150
  c(e.$slots, "actions", {}, void 0, !0)
151
151
  ])) : n("", !0)
152
- ], 64)) : o.variant === "history" ? (t(), r(f, { key: 2 }, [
153
- e.$slots.icon ? (t(), r("div", z, [
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
- d("div", F, [
157
- d("div", R, i(o.title), 1),
158
- o.subtitle ? (t(), r("div", Y, i(o.subtitle), 1)) : n("", !0),
159
- o.content ? (t(), r("div", {
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(o.content), 5)) : n("", !0),
163
+ }, i(t.content), 5)) : n("", !0),
164
164
  c(e.$slots, "footer", {}, void 0, !0)
165
165
  ]),
166
- e.$slots.actions ? (t(), r("div", j, [
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-264421cd"]]);
4
+ const _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-dcb81667"]]);
5
5
  export {
6
6
  _ as default
7
7
  };