@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.
Files changed (134) hide show
  1. package/README.en.md +19 -0
  2. package/README.md +23 -0
  3. package/dist/components/Dashboard/charts/BarChart.vue.js +2 -2
  4. package/dist/components/Dashboard/charts/BarChart.vue2.js +56 -23
  5. package/dist/components/Dashboard/charts/NumberCard.vue.js +2 -2
  6. package/dist/components/Dashboard/charts/NumberCard.vue2.js +14 -14
  7. package/dist/components/Dashboard/charts/PieChart.vue.js +1 -1
  8. package/dist/components/Dashboard/charts/PieChart.vue2.js +49 -23
  9. package/dist/components/Dashboard/charts/TableChart.vue.js +1 -1
  10. package/dist/components/Dashboard/index.vue.d.ts +3 -1
  11. package/dist/components/Dashboard/index.vue.js +2 -2
  12. package/dist/components/Dashboard/index.vue2.js +59 -30
  13. package/dist/components/ai/AiMessageBubble.vue.js +3 -3
  14. package/dist/components/ai/AiSender.vue.js +2 -2
  15. package/dist/components/ai/AiThinking.vue.js +1 -1
  16. package/dist/components/ai/UserMessageBubble.vue.js +3 -3
  17. package/dist/components/auxiliary/ColorPanel.vue.js +3 -3
  18. package/dist/components/auxiliary/ColorPanel.vue2.js +9 -9
  19. package/dist/components/auxiliary/FileUpload.vue.js +2 -2
  20. package/dist/components/auxiliary/PersonPanel.vue.js +1 -1
  21. package/dist/components/auxiliary/PersonPanel.vue2.js +10 -10
  22. package/dist/components/base/Accordion.vue.js +1 -1
  23. package/dist/components/base/Avatar.vue.js +3 -3
  24. package/dist/components/base/Avatar.vue2.js +43 -43
  25. package/dist/components/base/Badge.vue.js +1 -1
  26. package/dist/components/base/Badge.vue2.js +35 -35
  27. package/dist/components/base/ButtonGroup.vue.js +2 -2
  28. package/dist/components/base/ChainItem.vue.js +2 -2
  29. package/dist/components/base/ChainItem.vue2.js +30 -30
  30. package/dist/components/base/DescBlock.vue.js +3 -3
  31. package/dist/components/base/DropdownMenu.vue.js +2 -2
  32. package/dist/components/base/EmptyState.vue.js +1 -1
  33. package/dist/components/base/InfoCard.vue.js +2 -2
  34. package/dist/components/base/InfoCard.vue2.js +66 -66
  35. package/dist/components/base/MonitorItem.vue.js +1 -1
  36. package/dist/components/base/MonitorItem.vue2.js +16 -16
  37. package/dist/components/base/PersonaCard.vue.js +1 -1
  38. package/dist/components/base/PersonaCard.vue2.js +81 -81
  39. package/dist/components/base/ProgressBar.vue.js +2 -2
  40. package/dist/components/base/ProgressBar.vue2.js +16 -16
  41. package/dist/components/base/RangeSlider.vue.js +1 -1
  42. package/dist/components/base/RefTag.vue.js +2 -2
  43. package/dist/components/base/RefTag.vue2.js +20 -20
  44. package/dist/components/base/SearchHighlight.vue.js +1 -1
  45. package/dist/components/base/SectionBlock.vue.js +1 -1
  46. package/dist/components/base/SectionBlock.vue2.js +44 -44
  47. package/dist/components/base/StatisticCard.vue.js +2 -2
  48. package/dist/components/base/StatisticCard.vue2.js +24 -24
  49. package/dist/components/base/StatusIndicator.vue.js +2 -2
  50. package/dist/components/base/StatusIndicator.vue2.js +30 -30
  51. package/dist/components/base/StatusSummary.vue.js +2 -2
  52. package/dist/components/base/StatusSummary.vue2.js +23 -23
  53. package/dist/components/base/Stepper.vue.js +2 -2
  54. package/dist/components/base/Switch.vue.js +2 -2
  55. package/dist/components/base/ToolbarBtn.vue.js +1 -1
  56. package/dist/components/base/ViewModeGroup.vue.js +3 -3
  57. package/dist/components/base/ViewSwitcher.vue.js +2 -2
  58. package/dist/components/base/ViewTab.vue.js +4 -4
  59. package/dist/components/breadcrumb/Breadcrumb.vue.js +2 -2
  60. package/dist/components/breadcrumb/BreadcrumbItem.vue.js +1 -1
  61. package/dist/components/database/DatabaseView.vue.js +2 -2
  62. package/dist/components/database/DatabaseView.vue2.js +482 -412
  63. package/dist/components/detail/CommentItem.vue.js +2 -2
  64. package/dist/components/detail/CommentItem.vue2.js +8 -8
  65. package/dist/components/detail/DetailLayout.vue.d.ts +12 -1
  66. package/dist/components/detail/DetailLayout.vue.js +2 -2
  67. package/dist/components/detail/DetailLayout.vue2.js +115 -68
  68. package/dist/components/editor/BlockQuote.vue.js +2 -2
  69. package/dist/components/editor/CodeBlock.vue.js +2 -2
  70. package/dist/components/editor/ContentBlock.vue.js +2 -2
  71. package/dist/components/editor/RefLink.vue.js +2 -2
  72. package/dist/components/editor/RichTextEditor.vue.js +1 -1
  73. package/dist/components/field/FieldAttachment.vue.js +1 -1
  74. package/dist/components/field/FieldCreator.vue.js +1 -1
  75. package/dist/components/field/FieldCurrency.vue.js +2 -2
  76. package/dist/components/field/FieldMarkdownPreview.vue.js +2 -2
  77. package/dist/components/field/FieldMultiSelect.vue.js +2 -2
  78. package/dist/components/field/FieldProgress.vue.js +2 -2
  79. package/dist/components/field/FieldRating.vue.js +2 -2
  80. package/dist/components/field/FieldRelation.vue.js +1 -1
  81. package/dist/components/field/FieldRichText.vue.js +1 -1
  82. package/dist/components/field/FieldSelect.vue.js +2 -2
  83. package/dist/components/gallery/GalleryCard.vue.js +2 -2
  84. package/dist/components/gallery/GalleryCard.vue2.js +34 -30
  85. package/dist/components/gallery/GalleryView.vue.d.ts +3 -1
  86. package/dist/components/gallery/GalleryView.vue.js +1 -1
  87. package/dist/components/gallery/GalleryView.vue2.js +51 -27
  88. package/dist/components/kanban/KanbanBoard.vue.js +4 -4
  89. package/dist/components/kanban/KanbanCard.vue.js +2 -2
  90. package/dist/components/kanban/KanbanColumn.vue.js +2 -2
  91. package/dist/components/kanban/KanbanColumn.vue2.js +16 -16
  92. package/dist/components/kanban/QuickAddRow.vue.js +1 -1
  93. package/dist/components/layout/AppLayout.vue.js +2 -2
  94. package/dist/components/layout/Navbar.vue.js +3 -3
  95. package/dist/components/layout/Sidebar.vue.js +2 -2
  96. package/dist/components/layout/StatusBar.vue.js +2 -2
  97. package/dist/components/mermaid/MermaidChart.vue.js +2 -2
  98. package/dist/components/overlay/Dialog.vue.js +2 -2
  99. package/dist/components/overlay/Drawer.vue.d.ts +2 -0
  100. package/dist/components/overlay/Drawer.vue.js +2 -2
  101. package/dist/components/overlay/Drawer.vue2.js +25 -24
  102. package/dist/components/overlay/Modal.vue.js +1 -1
  103. package/dist/components/overlay/SidePanel.vue.js +2 -2
  104. package/dist/components/overlay/SidePanel.vue2.js +3 -2
  105. package/dist/components/split/SplitPane.vue.js +2 -2
  106. package/dist/components/table/ColumnHeaderMenu.vue.js +1 -1
  107. package/dist/components/table/DataTable.vue.d.ts +26 -2
  108. package/dist/components/table/DataTable.vue.js +2 -2
  109. package/dist/components/table/DataTable.vue2.js +738 -603
  110. package/dist/components/table/DetailSheet.vue.js +1 -1
  111. package/dist/components/table/FieldCell.vue.js +2 -2
  112. package/dist/components/table/FieldCell.vue2.js +26 -24
  113. package/dist/components/table/FieldTypePicker.vue.js +4 -4
  114. package/dist/components/table/MobileListView.vue.js +2 -2
  115. package/dist/components/table/NewRowBtn.vue.js +2 -2
  116. package/dist/components/table/TableColumnManager.vue.js +2 -2
  117. package/dist/components/table/TableDataRow.vue.d.ts +19 -0
  118. package/dist/components/table/TableDataRow.vue.js +1 -1
  119. package/dist/components/table/TableDataRow.vue2.js +110 -73
  120. package/dist/components/table/TableFilterPanel.vue.js +2 -2
  121. package/dist/components/table/TableGroupRow.vue.js +2 -2
  122. package/dist/components/table/TableHeaderRow.vue.js +2 -2
  123. package/dist/components/table/TableToolbar.vue.js +2 -2
  124. package/dist/components/tabs/Tabs.vue.js +1 -1
  125. package/dist/components/timeline/ActivityTimeline.vue.js +1 -1
  126. package/dist/components/timeline/ActivityTimeline.vue2.js +27 -27
  127. package/dist/components/timeline/GanttRow.vue.js +2 -2
  128. package/dist/components/timeline/GanttRow.vue2.js +21 -18
  129. package/dist/components/timeline/GanttTimeline.vue.js +2 -2
  130. package/dist/components/toast/ToastItem.vue.js +2 -2
  131. package/dist/components/toast/ToastItem.vue2.js +39 -39
  132. package/dist/plugin.js +5 -3
  133. package/dist/style.css +1 -1
  134. package/package.json +1 -1
@@ -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
  };
@@ -1,8 +1,8 @@
1
- import { defineComponent as y, computed as o, openBlock as a, createElementBlock as s, mergeProps as p, withKeys as r, withModifiers as m, toDisplayString as i, createCommentVNode as d, createElementVNode as t, normalizeStyle as u } from "vue";
2
- const g = ["onKeydown"], C = {
1
+ import { defineComponent as y, computed as o, openBlock as c, createElementBlock as s, mergeProps as g, withKeys as r, withModifiers as m, toDisplayString as i, createCommentVNode as d, createElementVNode as t, normalizeStyle as u } from "vue";
2
+ const p = ["onKeydown"], C = {
3
3
  key: 0,
4
4
  class: "of-monitor-item__subtitle"
5
- }, w = { class: "of-monitor-item__label" }, M = { class: "of-monitor-item__progress" }, S = { class: "of-monitor-item__percentage" }, x = {
5
+ }, w = { class: "of-monitor-item__label" }, M = { class: "of-monitor-item__progress" }, x = { class: "of-monitor-item__percentage" }, S = {
6
6
  key: 1,
7
7
  class: "of-monitor-item__count"
8
8
  }, V = /* @__PURE__ */ y({
@@ -19,29 +19,29 @@ const g = ["onKeydown"], C = {
19
19
  },
20
20
  emits: ["click"],
21
21
  setup(e, { emit: f }) {
22
- const l = e, v = f, c = o(() => Math.min(100, Math.max(0, l.value))), _ = o(
23
- () => c.value === 100 ? "var(--of-color-success)" : l.color ?? "var(--of-color-primary-500)"
22
+ const l = e, v = f, n = o(() => Math.min(100, Math.max(0, l.value))), _ = o(
23
+ () => n.value === 100 ? "var(--of-text-strong, var(--of-accent-strong))" : l.color ?? "var(--of-accent-default)"
24
24
  ), k = o(() => ({
25
- backgroundColor: "var(--of-color-gray-100)"
25
+ backgroundColor: "var(--of-surface-muted, var(--of-color-gray-100))"
26
26
  })), b = o(() => ({
27
- width: `${c.value}%`,
27
+ width: `${n.value}%`,
28
28
  background: _.value
29
29
  }));
30
- function n() {
30
+ function a() {
31
31
  l.clickable && v("click");
32
32
  }
33
- return (h, B) => (a(), s("div", p({
33
+ return (h, B) => (c(), s("div", g({
34
34
  class: ["of-monitor-item", { "of-monitor-item--clickable": e.clickable }],
35
35
  role: "button",
36
36
  tabindex: "0"
37
37
  }, h.$attrs, {
38
- onClick: n,
38
+ onClick: a,
39
39
  onKeydown: [
40
- r(m(n, ["prevent"]), ["enter"]),
41
- r(m(n, ["prevent"]), ["space"])
40
+ r(m(a, ["prevent"]), ["enter"]),
41
+ r(m(a, ["prevent"]), ["space"])
42
42
  ]
43
43
  }), [
44
- e.subtitle !== void 0 ? (a(), s("div", C, i(e.subtitle), 1)) : d("", !0),
44
+ e.subtitle !== void 0 ? (c(), s("div", C, i(e.subtitle), 1)) : d("", !0),
45
45
  t("div", w, i(e.label), 1),
46
46
  t("div", M, [
47
47
  t("div", {
@@ -54,9 +54,9 @@ const g = ["onKeydown"], C = {
54
54
  }, null, 4)
55
55
  ], 4)
56
56
  ]),
57
- t("div", S, i(c.value) + "%", 1),
58
- e.count !== void 0 ? (a(), s("div", x, i(e.count), 1)) : d("", !0)
59
- ], 16, g));
57
+ t("div", x, i(n.value) + "%", 1),
58
+ e.count !== void 0 ? (c(), s("div", S, i(e.count), 1)) : d("", !0)
59
+ ], 16, p));
60
60
  }
61
61
  });
62
62
  export {
@@ -1,7 +1,7 @@
1
1
  import o from "./PersonaCard.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-b283c2cd"]]);
4
+ const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-260d05e8"]]);
5
5
  export {
6
6
  m as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as P, computed as r, openBlock as t, createElementBlock as n, mergeProps as A, createElementVNode as c, normalizeStyle as g, createBlock as F, resolveDynamicComponent as D, Fragment as _, createTextVNode as N, toDisplayString as l, renderSlot as v, createCommentVNode as i, renderList as T } from "vue";
1
+ import { defineComponent as w, computed as o, openBlock as r, createElementBlock as n, mergeProps as A, createElementVNode as s, normalizeStyle as u, createBlock as F, resolveDynamicComponent as D, Fragment as _, createTextVNode as N, toDisplayString as l, renderSlot as v, createCommentVNode as f, renderList as T } from "vue";
2
2
  import { resolveIcon as V } from "../../utils/icon.js";
3
3
  const H = { class: "of-persona-card__body" }, I = { class: "of-persona-card__name-row" }, K = {
4
4
  key: 0,
@@ -12,7 +12,7 @@ const H = { class: "of-persona-card__body" }, I = { class: "of-persona-card__nam
12
12
  }, q = { class: "of-persona-card__chevron" }, G = {
13
13
  key: 0,
14
14
  class: "of-persona-card__detail"
15
- }, Q = /* @__PURE__ */ P({
15
+ }, Q = /* @__PURE__ */ w({
16
16
  name: "PersonaCard",
17
17
  inheritAttrs: !1,
18
18
  __name: "PersonaCard",
@@ -30,64 +30,64 @@ const H = { class: "of-persona-card__body" }, I = { class: "of-persona-card__nam
30
30
  size: { default: "md" }
31
31
  },
32
32
  emits: ["update:expanded", "click"],
33
- setup(o, { emit: k }) {
34
- const e = o, u = k, b = [
33
+ setup(t, { emit: k }) {
34
+ const e = t, g = k, b = [
35
35
  {
36
- accent: "var(--of-color-warning)",
37
- bg: "var(--of-color-warning-light)",
38
- border: "var(--of-badge-orange-border)",
39
- tagBg: "var(--of-badge-orange-bg)"
36
+ accent: "var(--of-accent-default)",
37
+ bg: "var(--of-surface-muted)",
38
+ border: "var(--of-border-subtle)",
39
+ tagBg: "var(--of-surface-selected)"
40
40
  },
41
41
  {
42
- accent: "var(--of-color-primary-500)",
43
- bg: "var(--of-color-primary-50)",
44
- border: "var(--of-color-primary-200)",
45
- tagBg: "var(--of-color-primary-100)"
42
+ accent: "var(--of-accent-strong)",
43
+ bg: "var(--of-surface-panel)",
44
+ border: "var(--of-border-strong)",
45
+ tagBg: "var(--of-surface-muted)"
46
46
  },
47
47
  {
48
- accent: "var(--of-role-pm-text)",
49
- bg: "var(--of-role-pm-bg)",
50
- border: "var(--of-badge-red-border)",
51
- tagBg: "var(--of-badge-red-bg)"
48
+ accent: "var(--of-text-strong)",
49
+ bg: "var(--of-surface-selected)",
50
+ border: "var(--of-border-subtle)",
51
+ tagBg: "var(--of-surface-panel)"
52
52
  },
53
53
  {
54
- accent: "var(--of-color-success)",
55
- bg: "var(--of-color-success-light)",
56
- border: "var(--of-badge-green-border)",
57
- tagBg: "var(--of-badge-green-bg)"
54
+ accent: "var(--of-text-secondary)",
55
+ bg: "var(--of-surface-elevated)",
56
+ border: "var(--of-border-subtle)",
57
+ tagBg: "var(--of-surface-muted)"
58
58
  },
59
59
  {
60
- accent: "var(--of-color-info)",
61
- bg: "var(--of-color-info-light)",
62
- border: "var(--of-badge-blue-border)",
63
- tagBg: "var(--of-badge-blue-bg)"
60
+ accent: "var(--of-accent-default)",
61
+ bg: "var(--of-surface-muted)",
62
+ border: "var(--of-border-subtle)",
63
+ tagBg: "var(--of-surface-selected)"
64
64
  },
65
65
  {
66
- accent: "var(--of-role-arch-text)",
67
- bg: "var(--of-role-arch-bg)",
68
- border: "var(--of-badge-purple-border)",
69
- tagBg: "var(--of-badge-purple-bg)"
66
+ accent: "var(--of-accent-strong)",
67
+ bg: "var(--of-surface-panel)",
68
+ border: "var(--of-border-subtle)",
69
+ tagBg: "var(--of-surface-selected)"
70
70
  },
71
71
  {
72
- accent: "var(--of-color-error)",
73
- bg: "var(--of-color-error-light)",
74
- border: "var(--of-badge-red-border)",
75
- tagBg: "var(--of-badge-red-bg)"
72
+ accent: "var(--of-text-strong)",
73
+ bg: "var(--of-surface-elevated)",
74
+ border: "var(--of-border-strong)",
75
+ tagBg: "var(--of-surface-muted)"
76
76
  },
77
77
  {
78
- accent: "var(--of-role-fe-text)",
79
- bg: "var(--of-role-fe-bg)",
80
- border: "var(--of-badge-green-border)",
81
- tagBg: "var(--of-badge-green-bg)"
78
+ accent: "var(--of-text-secondary)",
79
+ bg: "var(--of-surface-selected)",
80
+ border: "var(--of-border-subtle)",
81
+ tagBg: "var(--of-surface-panel)"
82
82
  }
83
83
  ];
84
84
  function x(a) {
85
- let d = 0;
86
- for (let s = 0; s < a.length; s++)
87
- d = (d << 5) - d + a.charCodeAt(s), d |= 0;
88
- return Math.abs(d);
85
+ let c = 0;
86
+ for (let d = 0; d < a.length; d++)
87
+ c = (c << 5) - c + a.charCodeAt(d), c |= 0;
88
+ return Math.abs(c);
89
89
  }
90
- const f = r(() => {
90
+ const i = o(() => {
91
91
  if (e.color) {
92
92
  const a = e.color.replace("#", "");
93
93
  return {
@@ -98,15 +98,15 @@ const H = { class: "of-persona-card__body" }, I = { class: "of-persona-card__nam
98
98
  };
99
99
  }
100
100
  return b[x(e.name) % b.length];
101
- }), p = r(() => e.size === "sm" ? 24 : 32), m = r(() => e.size === "sm" ? 12 : 16), B = r(() => e.size === "sm" ? 12 : 13), z = r(() => e.size === "sm" ? 11 : 12), h = r(() => {
101
+ }), p = o(() => e.size === "sm" ? 24 : 32), m = o(() => e.size === "sm" ? 12 : 16), B = o(() => e.size === "sm" ? 12 : 13), z = o(() => e.size === "sm" ? 11 : 12), y = o(() => {
102
102
  if (e.icon)
103
103
  return V(e.icon);
104
- }), S = r(() => {
104
+ }), S = o(() => {
105
105
  if (e.icon && typeof e.icon == "string") return e.icon;
106
106
  if (e.icon) return "";
107
107
  const a = e.name.trim();
108
108
  return a ? a.charAt(0) : "?";
109
- }), $ = r(() => [
109
+ }), $ = o(() => [
110
110
  "of-persona-card",
111
111
  `of-persona-card--${e.size}`,
112
112
  {
@@ -115,74 +115,74 @@ const H = { class: "of-persona-card__body" }, I = { class: "of-persona-card__nam
115
115
  "of-persona-card--disabled": e.disabled,
116
116
  "of-persona-card--expanded": e.expanded
117
117
  }
118
- ]), C = r(() => ({
119
- "--pc-accent": f.value.accent,
120
- "--pc-accent-bg": f.value.bg,
121
- "--pc-accent-border": f.value.border,
122
- "--pc-accent-tag-bg": f.value.tagBg
123
- })), w = r(() => ({
118
+ ]), C = o(() => ({
119
+ "--pc-accent": i.value.accent,
120
+ "--pc-accent-bg": i.value.bg,
121
+ "--pc-accent-border": i.value.border,
122
+ "--pc-accent-tag-bg": i.value.tagBg
123
+ })), E = o(() => ({
124
124
  width: `${p.value}px`,
125
125
  height: `${p.value}px`,
126
126
  fontSize: `${m.value}px`
127
127
  }));
128
- function y() {
129
- e.disabled || (u("update:expanded", !e.expanded), u("click"));
128
+ function h() {
129
+ e.disabled || (g("update:expanded", !e.expanded), g("click"));
130
130
  }
131
- function E(a) {
132
- a.key !== "Enter" && a.key !== " " || (a.preventDefault(), y());
131
+ function P(a) {
132
+ a.key !== "Enter" && a.key !== " " || (a.preventDefault(), h());
133
133
  }
134
- return (a, d) => (t(), n("div", A({
134
+ return (a, c) => (r(), n("div", A({
135
135
  class: $.value,
136
136
  style: C.value
137
137
  }, a.$attrs), [
138
- c("div", {
138
+ s("div", {
139
139
  class: "of-persona-card__header",
140
140
  role: "button",
141
141
  tabindex: "0",
142
- onClick: y,
143
- onKeydown: E
142
+ onClick: h,
143
+ onKeydown: P
144
144
  }, [
145
- c("span", {
145
+ s("span", {
146
146
  class: "of-persona-card__avatar",
147
- style: g(w.value)
147
+ style: u(E.value)
148
148
  }, [
149
- h.value ? (t(), F(D(h.value), {
149
+ y.value ? (r(), F(D(y.value), {
150
150
  key: 0,
151
151
  size: m.value
152
- }, null, 8, ["size"])) : (t(), n(_, { key: 1 }, [
152
+ }, null, 8, ["size"])) : (r(), n(_, { key: 1 }, [
153
153
  N(l(S.value), 1)
154
154
  ], 64))
155
155
  ], 4),
156
- c("div", H, [
157
- c("div", I, [
158
- c("span", {
156
+ s("div", H, [
157
+ s("div", I, [
158
+ s("span", {
159
159
  class: "of-persona-card__name",
160
- style: g({ fontSize: `${B.value}px` })
161
- }, l(o.name), 5),
160
+ style: u({ fontSize: `${B.value}px` })
161
+ }, l(t.name), 5),
162
162
  v(a.$slots, "badge", {}, void 0, !0),
163
- o.title ? (t(), n("span", K, l(o.title), 1)) : i("", !0)
163
+ t.title ? (r(), n("span", K, l(t.title), 1)) : f("", !0)
164
164
  ]),
165
- o.subtitle ? (t(), n("span", {
165
+ t.subtitle ? (r(), n("span", {
166
166
  key: 0,
167
167
  class: "of-persona-card__subtitle",
168
- style: g({ fontSize: `${z.value}px` })
169
- }, l(o.subtitle), 5)) : i("", !0),
170
- o.tags && o.tags.length > 0 ? (t(), n("div", L, [
171
- (t(!0), n(_, null, T(o.tags, (s) => (t(), n("span", {
172
- key: s,
168
+ style: u({ fontSize: `${z.value}px` })
169
+ }, l(t.subtitle), 5)) : f("", !0),
170
+ t.tags && t.tags.length > 0 ? (r(), n("div", L, [
171
+ (r(!0), n(_, null, T(t.tags, (d) => (r(), n("span", {
172
+ key: d,
173
173
  class: "of-persona-card__tag"
174
- }, l(s), 1))), 128))
175
- ])) : i("", !0)
174
+ }, l(d), 1))), 128))
175
+ ])) : f("", !0)
176
176
  ]),
177
- c("div", M, [
177
+ s("div", M, [
178
178
  v(a.$slots, "actions", {}, void 0, !0),
179
- o.done ? (t(), n("span", j, "✓")) : i("", !0),
180
- c("span", q, l(o.expanded ? "▲" : "▼"), 1)
179
+ t.done ? (r(), n("span", j, "✓")) : f("", !0),
180
+ s("span", q, l(t.expanded ? "▲" : "▼"), 1)
181
181
  ])
182
182
  ], 32),
183
- o.expanded ? (t(), n("div", G, [
183
+ t.expanded ? (r(), n("div", G, [
184
184
  v(a.$slots, "default", {}, void 0, !0)
185
- ])) : i("", !0)
185
+ ])) : f("", !0)
186
186
  ], 16));
187
187
  }
188
188
  });
@@ -1,7 +1,7 @@
1
1
  import o from "./ProgressBar.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-893c13d7"]]);
4
+ const e = /* @__PURE__ */ r(o, [["__scopeId", "data-v-ea5a43a9"]]);
5
5
  export {
6
- m as default
6
+ e as default
7
7
  };
@@ -1,46 +1,46 @@
1
- import { defineComponent as p, computed as r, openBlock as t, createElementBlock as d, mergeProps as f, createElementVNode as a, normalizeStyle as c, normalizeClass as v, renderSlot as b, toDisplayString as m, createCommentVNode as _ } from "vue";
2
- const g = {
1
+ import { defineComponent as f, computed as r, openBlock as l, createElementBlock as d, mergeProps as p, createElementVNode as a, normalizeStyle as c, normalizeClass as v, renderSlot as b, toDisplayString as g, createCommentVNode as m } from "vue";
2
+ const _ = {
3
3
  key: 0,
4
4
  class: "of-progress-bar__label"
5
- }, h = { class: "of-progress-bar__slot" }, y = { class: "of-progress-bar__value" }, $ = /* @__PURE__ */ p({
5
+ }, h = { class: "of-progress-bar__slot" }, y = { class: "of-progress-bar__value" }, $ = /* @__PURE__ */ f({
6
6
  inheritAttrs: !1,
7
7
  __name: "ProgressBar",
8
8
  props: {
9
9
  value: {},
10
10
  height: { default: 4 },
11
11
  color: { default: void 0 },
12
- bgColor: { default: "var(--of-color-gray-100)" },
12
+ bgColor: { default: "var(--of-surface-muted, var(--of-color-gray-100))" },
13
13
  showLabel: { type: Boolean, default: !1 },
14
14
  borderRadius: { default: 2 }
15
15
  },
16
16
  setup(s) {
17
- const e = s, o = r(() => Math.min(100, Math.max(0, e.value))), u = r(
18
- () => o.value === 100 ? "var(--of-color-success)" : e.color ?? "var(--of-color-primary-500)"
19
- ), i = r(() => ({
17
+ const e = s, o = r(() => Math.min(100, Math.max(0, e.value))), n = r(
18
+ () => o.value === 100 ? "var(--of-text-strong, var(--of-accent-strong))" : e.color ?? "var(--of-accent-default)"
19
+ ), u = r(() => ({
20
20
  height: `${e.height}px`,
21
21
  backgroundColor: e.bgColor,
22
22
  borderRadius: `${e.borderRadius}px`
23
- })), n = r(() => ({
23
+ })), i = r(() => ({
24
24
  width: `${o.value}%`,
25
- background: u.value,
25
+ background: n.value,
26
26
  borderRadius: `${e.borderRadius}px`
27
27
  }));
28
- return (l, k) => (t(), d("div", f({ class: "of-progress-bar" }, l.$attrs), [
28
+ return (t, k) => (l(), d("div", p({ class: "of-progress-bar" }, t.$attrs), [
29
29
  a("div", {
30
30
  class: "of-progress-bar__track pb",
31
- style: c(i.value)
31
+ style: c(u.value)
32
32
  }, [
33
33
  a("div", {
34
34
  class: v(["of-progress-bar__fill pf", { dn: o.value === 100 }]),
35
- style: c(n.value)
35
+ style: c(i.value)
36
36
  }, null, 6)
37
37
  ], 4),
38
- s.showLabel ? (t(), d("div", g, [
38
+ s.showLabel ? (l(), d("div", _, [
39
39
  a("div", h, [
40
- b(l.$slots, "default", {}, void 0, !0)
40
+ b(t.$slots, "default", {}, void 0, !0)
41
41
  ]),
42
- a("span", y, m(o.value) + "%", 1)
43
- ])) : _("", !0)
42
+ a("span", y, g(o.value) + "%", 1)
43
+ ])) : m("", !0)
44
44
  ], 16));
45
45
  }
46
46
  });
@@ -1,7 +1,7 @@
1
1
  import o from "./RangeSlider.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../_virtual/_plugin-vue_export-helper.js";
4
- const f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-77f7d546"]]);
4
+ const f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-9de86f92"]]);
5
5
  export {
6
6
  f as default
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./RefTag.vue2.js";
2
2
  /* empty css */
3
- import f from "../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ f(o, [["__scopeId", "data-v-fbd2cfa1"]]);
3
+ import t from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-9057023c"]]);
5
5
  export {
6
6
  m as default
7
7
  };