@oneflowui/ui 0.4.1 → 0.4.3

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 (233) hide show
  1. package/dist/_virtual/_commonjsHelpers.js +6 -0
  2. package/dist/_virtual/_plugin-vue_export-helper.js +9 -0
  3. package/dist/components/ContextMenu/index.vue.js +7 -0
  4. package/dist/components/ContextMenu/index.vue2.js +91 -0
  5. package/dist/components/Dashboard/charts/BarChart.vue.js +7 -0
  6. package/dist/components/Dashboard/charts/BarChart.vue2.js +43 -0
  7. package/dist/components/Dashboard/charts/DoughnutChart.vue.js +23 -0
  8. package/dist/components/Dashboard/charts/DoughnutChart.vue2.js +4 -0
  9. package/dist/components/Dashboard/charts/NumberCard.vue.js +7 -0
  10. package/dist/components/Dashboard/charts/NumberCard.vue2.js +41 -0
  11. package/dist/components/Dashboard/charts/PieChart.vue.js +7 -0
  12. package/dist/components/Dashboard/charts/PieChart.vue2.js +53 -0
  13. package/dist/components/Dashboard/charts/TableChart.vue.js +7 -0
  14. package/dist/components/Dashboard/charts/TableChart.vue2.js +50 -0
  15. package/dist/components/Dashboard/index.vue.js +7 -0
  16. package/dist/components/Dashboard/index.vue2.js +104 -0
  17. package/dist/components/ai/AiMessageBubble.vue.js +7 -0
  18. package/dist/components/ai/AiMessageBubble.vue2.js +47 -0
  19. package/dist/components/ai/AiMessageList.vue.js +7 -0
  20. package/dist/components/ai/AiMessageList.vue2.js +78 -0
  21. package/dist/components/ai/AiSender.vue.js +7 -0
  22. package/dist/components/ai/AiSender.vue2.js +86 -0
  23. package/dist/components/ai/AiStreamingCursor.vue.js +7 -0
  24. package/dist/components/ai/AiStreamingCursor.vue2.js +16 -0
  25. package/dist/components/ai/AiThinking.vue.js +7 -0
  26. package/dist/components/ai/AiThinking.vue2.js +19 -0
  27. package/dist/components/ai/UserMessageBubble.vue.js +7 -0
  28. package/dist/components/ai/UserMessageBubble.vue2.js +34 -0
  29. package/dist/components/auxiliary/ColorPanel.vue.js +7 -0
  30. package/dist/components/auxiliary/ColorPanel.vue2.js +65 -0
  31. package/dist/components/auxiliary/FileUpload.vue.js +7 -0
  32. package/dist/components/auxiliary/FileUpload.vue2.js +90 -0
  33. package/dist/components/auxiliary/PersonPanel.vue.js +7 -0
  34. package/dist/components/auxiliary/PersonPanel.vue2.js +66 -0
  35. package/dist/components/base/Accordion.vue.js +7 -0
  36. package/dist/components/base/Accordion.vue2.js +78 -0
  37. package/dist/components/base/AddViewBtn.vue.js +7 -0
  38. package/dist/components/base/AddViewBtn.vue2.js +25 -0
  39. package/dist/components/base/Avatar.vue.js +7 -0
  40. package/dist/components/base/Avatar.vue2.js +72 -0
  41. package/dist/components/base/Badge.vue.js +7 -0
  42. package/dist/components/base/Badge.vue2.js +70 -0
  43. package/dist/components/base/ButtonGroup.vue.js +7 -0
  44. package/dist/components/base/ButtonGroup.vue2.js +40 -0
  45. package/dist/components/base/ChainItem.vue.js +7 -0
  46. package/dist/components/base/ChainItem.vue2.js +68 -0
  47. package/dist/components/base/DescBlock.vue.js +7 -0
  48. package/dist/components/base/DescBlock.vue2.js +13 -0
  49. package/dist/components/base/DropdownMenu.vue.js +7 -0
  50. package/dist/components/base/DropdownMenu.vue2.js +92 -0
  51. package/dist/components/base/EmptyState.vue.js +7 -0
  52. package/dist/components/base/EmptyState.vue2.js +38 -0
  53. package/dist/components/base/InfoCard.vue.js +7 -0
  54. package/dist/components/base/InfoCard.vue2.js +167 -0
  55. package/dist/components/base/MonitorItem.vue.js +7 -0
  56. package/dist/components/base/MonitorItem.vue2.js +56 -0
  57. package/dist/components/base/PersonaCard.vue.js +7 -0
  58. package/dist/components/base/PersonaCard.vue2.js +173 -0
  59. package/dist/components/base/ProgressBar.vue.js +7 -0
  60. package/dist/components/base/ProgressBar.vue2.js +49 -0
  61. package/dist/components/base/RangeSlider.vue.js +7 -0
  62. package/dist/components/base/RangeSlider.vue2.js +35 -0
  63. package/dist/components/base/RefTag.vue.js +7 -0
  64. package/dist/components/base/RefTag.vue2.js +52 -0
  65. package/dist/components/base/SectionBlock.vue.js +7 -0
  66. package/dist/components/base/SectionBlock.vue2.js +115 -0
  67. package/dist/components/base/SelectBadge.vue.js +7 -0
  68. package/dist/components/base/SelectBadge.vue2.js +81 -0
  69. package/dist/components/base/StatisticCard.vue.js +7 -0
  70. package/dist/components/base/StatisticCard.vue2.js +57 -0
  71. package/dist/components/base/StatusIndicator.vue.js +7 -0
  72. package/dist/components/base/StatusIndicator.vue2.js +54 -0
  73. package/dist/components/base/StatusSummary.vue.js +7 -0
  74. package/dist/components/base/StatusSummary.vue2.js +64 -0
  75. package/dist/components/base/Stepper.vue.js +7 -0
  76. package/dist/components/base/Stepper.vue2.js +70 -0
  77. package/dist/components/base/Switch.vue.js +7 -0
  78. package/dist/components/base/Switch.vue2.js +43 -0
  79. package/dist/components/base/ToolbarBtn.vue.js +7 -0
  80. package/dist/components/base/ToolbarBtn.vue2.js +30 -0
  81. package/dist/components/base/ViewModeGroup.vue.js +7 -0
  82. package/dist/components/base/ViewModeGroup.vue2.js +32 -0
  83. package/dist/components/base/ViewSwitcher.vue.js +7 -0
  84. package/dist/components/base/ViewSwitcher.vue2.js +73 -0
  85. package/dist/components/base/ViewTab.vue.js +7 -0
  86. package/dist/components/base/ViewTab.vue2.js +42 -0
  87. package/dist/components/breadcrumb/Breadcrumb.vue.js +7 -0
  88. package/dist/components/breadcrumb/Breadcrumb.vue2.js +52 -0
  89. package/dist/components/breadcrumb/BreadcrumbItem.vue.js +7 -0
  90. package/dist/components/breadcrumb/BreadcrumbItem.vue2.js +35 -0
  91. package/dist/components/detail/CommentItem.vue.js +7 -0
  92. package/dist/components/detail/CommentItem.vue2.js +29 -0
  93. package/dist/components/detail/DetailLayout.vue.js +7 -0
  94. package/dist/components/detail/DetailLayout.vue2.js +118 -0
  95. package/dist/components/detail/PropPanel.vue.js +7 -0
  96. package/dist/components/detail/PropPanel.vue2.js +51 -0
  97. package/dist/components/detail/PropRow.vue.js +7 -0
  98. package/dist/components/detail/PropRow.vue2.js +51 -0
  99. package/dist/components/editor/BlockQuote.vue.js +7 -0
  100. package/dist/components/editor/BlockQuote.vue2.js +45 -0
  101. package/dist/components/editor/CodeBlock.vue.js +7 -0
  102. package/dist/components/editor/CodeBlock.vue2.js +48 -0
  103. package/dist/components/editor/ContentBlock.vue.js +7 -0
  104. package/dist/components/editor/ContentBlock.vue2.js +49 -0
  105. package/dist/components/editor/RefLink.vue.js +7 -0
  106. package/dist/components/editor/RefLink.vue2.js +37 -0
  107. package/dist/components/editor/RichTextEditor.vue.js +7 -0
  108. package/dist/components/editor/RichTextEditor.vue2.js +132 -0
  109. package/dist/components/field/FieldCheckbox.vue.js +7 -0
  110. package/dist/{FieldCheckbox-CV3QtQ4Y.js → components/field/FieldCheckbox.vue2.js} +8 -9
  111. package/dist/components/field/FieldDate.vue.js +7 -0
  112. package/dist/{FieldDate-Bljx4jb7.js → components/field/FieldDate.vue2.js} +9 -10
  113. package/dist/components/field/FieldDatetime.vue.js +7 -0
  114. package/dist/{FieldDatetime-B52GfWrK.js → components/field/FieldDatetime.vue2.js} +11 -12
  115. package/dist/components/field/FieldEmail.vue.js +7 -0
  116. package/dist/{FieldEmail-UREMoue-.js → components/field/FieldEmail.vue2.js} +12 -13
  117. package/dist/components/field/FieldMultiSelect.vue.js +7 -0
  118. package/dist/{FieldMultiSelect-Dlay1Fop.js → components/field/FieldMultiSelect.vue2.js} +32 -33
  119. package/dist/components/field/FieldNumber.vue.js +7 -0
  120. package/dist/{FieldNumber-BjhfFhs6.js → components/field/FieldNumber.vue2.js} +8 -9
  121. package/dist/components/field/FieldRating.vue.js +7 -0
  122. package/dist/components/field/FieldRating.vue2.js +31 -0
  123. package/dist/components/field/FieldSelect.vue.js +7 -0
  124. package/dist/{FieldSelect-B39Ad8VH.js → components/field/FieldSelect.vue2.js} +34 -35
  125. package/dist/components/field/FieldText.vue.js +7 -0
  126. package/dist/{FieldText-Ry7f72Ug.js → components/field/FieldText.vue2.js} +13 -14
  127. package/dist/components/field/FieldUrl.vue.js +7 -0
  128. package/dist/components/field/FieldUrl.vue2.js +33 -0
  129. package/dist/components/form/FormDesigner.vue.js +7 -0
  130. package/dist/components/form/FormDesigner.vue2.js +245 -0
  131. package/dist/components/gallery/GalleryCard.vue.js +7 -0
  132. package/dist/components/gallery/GalleryCard.vue2.js +87 -0
  133. package/dist/components/gallery/GalleryView.vue.js +7 -0
  134. package/dist/components/gallery/GalleryView.vue2.js +48 -0
  135. package/dist/components/kanban/KanbanBoard.vue.js +7 -0
  136. package/dist/components/kanban/KanbanBoard.vue2.js +86 -0
  137. package/dist/components/kanban/KanbanCard.vue.js +7 -0
  138. package/dist/components/kanban/KanbanCard.vue2.js +56 -0
  139. package/dist/components/kanban/KanbanColumn.vue.js +7 -0
  140. package/dist/components/kanban/KanbanColumn.vue2.js +103 -0
  141. package/dist/components/kanban/QuickAddRow.vue.js +7 -0
  142. package/dist/components/kanban/QuickAddRow.vue2.js +58 -0
  143. package/dist/components/layout/AppLayout.vue.js +7 -0
  144. package/dist/components/layout/AppLayout.vue2.js +98 -0
  145. package/dist/components/layout/Navbar.vue.js +7 -0
  146. package/dist/components/layout/Navbar.vue2.js +70 -0
  147. package/dist/components/layout/Sidebar.vue.js +7 -0
  148. package/dist/components/layout/Sidebar.vue2.js +88 -0
  149. package/dist/components/layout/StatusBar.vue.js +7 -0
  150. package/dist/components/layout/StatusBar.vue2.js +37 -0
  151. package/dist/components/mermaid/MermaidChart.vue.js +7 -0
  152. package/dist/components/mermaid/MermaidChart.vue2.js +75 -0
  153. package/dist/components/overlay/Dialog.vue.js +7 -0
  154. package/dist/components/overlay/Dialog.vue2.js +89 -0
  155. package/dist/components/overlay/Drawer.vue.js +7 -0
  156. package/dist/components/overlay/Drawer.vue2.js +112 -0
  157. package/dist/components/overlay/Modal.vue.js +7 -0
  158. package/dist/components/overlay/Modal.vue2.js +115 -0
  159. package/dist/components/overlay/SidePanel.vue.js +7 -0
  160. package/dist/components/overlay/SidePanel.vue2.js +137 -0
  161. package/dist/components/split/SplitPane.vue.js +8 -0
  162. package/dist/components/split/SplitPane.vue2.js +68 -0
  163. package/dist/components/table/DataTable.vue.js +7 -0
  164. package/dist/components/table/DataTable.vue2.js +234 -0
  165. package/dist/components/table/FieldCell.vue.js +7 -0
  166. package/dist/components/table/FieldCell.vue2.js +71 -0
  167. package/dist/components/table/NewRowBtn.vue.js +7 -0
  168. package/dist/components/table/NewRowBtn.vue2.js +22 -0
  169. package/dist/components/table/TableColumnManager.vue.js +7 -0
  170. package/dist/components/table/TableColumnManager.vue2.js +100 -0
  171. package/dist/components/table/TableDataRow.vue.js +7 -0
  172. package/dist/components/table/TableDataRow.vue2.js +115 -0
  173. package/dist/components/table/TableFilterPanel.vue.js +7 -0
  174. package/dist/components/table/TableFilterPanel.vue2.js +142 -0
  175. package/dist/components/table/TableGroupRow.vue.js +7 -0
  176. package/dist/components/table/TableGroupRow.vue2.js +48 -0
  177. package/dist/components/table/TableHeaderRow.vue.js +7 -0
  178. package/dist/components/table/TableHeaderRow.vue2.js +69 -0
  179. package/dist/components/tabs/TabPanel.vue.js +7 -0
  180. package/dist/components/tabs/TabPanel.vue2.js +26 -0
  181. package/dist/components/tabs/Tabs.vue.js +7 -0
  182. package/dist/components/tabs/Tabs.vue2.js +87 -0
  183. package/dist/components/timeline/ActivityTimeline.vue.js +7 -0
  184. package/dist/components/timeline/ActivityTimeline.vue2.js +104 -0
  185. package/dist/components/timeline/GanttRow.vue.js +7 -0
  186. package/dist/components/timeline/GanttRow.vue2.js +110 -0
  187. package/dist/components/timeline/GanttTimeline.vue.js +7 -0
  188. package/dist/components/timeline/GanttTimeline.vue2.js +185 -0
  189. package/dist/components/toast/ToastContainer.vue.js +34 -0
  190. package/dist/components/toast/ToastContainer.vue3.js +5 -0
  191. package/dist/components/toast/ToastItem.vue.js +7 -0
  192. package/dist/components/toast/ToastItem.vue2.js +78 -0
  193. package/dist/composables/useAiChat.js +103 -0
  194. package/dist/composables/useBadge.js +76 -0
  195. package/dist/composables/useBreakpoint.js +16 -0
  196. package/dist/composables/useInlineEdit.js +28 -0
  197. package/dist/composables/useMarkdown.js +69 -0
  198. package/dist/composables/useStream.js +80 -0
  199. package/dist/composables/useTable.js +115 -0
  200. package/dist/composables/useTableColumns.js +24 -0
  201. package/dist/composables/useTableData.js +16 -0
  202. package/dist/composables/useTableFilter.js +97 -0
  203. package/dist/composables/useTableGroup.js +46 -0
  204. package/dist/composables/useToast.js +38 -0
  205. package/dist/composables/useTypewriter.js +56 -0
  206. package/dist/composables/useVirtualList.js +117 -0
  207. package/dist/constants/table.js +11 -0
  208. package/dist/index.js +301 -0
  209. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/core.js +5 -0
  210. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/bash.js +377 -0
  211. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/css.js +923 -0
  212. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/go.js +151 -0
  213. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/java.js +240 -0
  214. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/javascript.js +658 -0
  215. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/json.js +38 -0
  216. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/markdown.js +216 -0
  217. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/plaintext.js +13 -0
  218. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/python.js +399 -0
  219. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/rust.js +305 -0
  220. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/sql.js +615 -0
  221. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/typescript.js +753 -0
  222. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/xml.js +219 -0
  223. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/yaml.js +183 -0
  224. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/core.js +1063 -0
  225. package/dist/style.css +1 -1
  226. package/dist/types/index.js +77 -0
  227. package/dist/utils/icon.js +15 -0
  228. package/package.json +13 -6
  229. package/dist/FieldRating-BKHUu-A1.js +0 -32
  230. package/dist/FieldUrl-bv0EB9sh.js +0 -34
  231. package/dist/index-DQph5iTq.js +0 -12936
  232. package/dist/oneflow-ui.js +0 -111
  233. package/dist/oneflow-ui.umd.cjs +0 -13
@@ -0,0 +1,70 @@
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({
3
+ inheritAttrs: !1,
4
+ __name: "Badge",
5
+ props: {
6
+ color: {},
7
+ priority: {},
8
+ size: { default: "md" }
9
+ },
10
+ setup(o) {
11
+ const r = o, a = {
12
+ default: {
13
+ background: "var(--of-badge-gray-bg)",
14
+ text: "var(--of-badge-gray-text)",
15
+ border: "var(--of-badge-gray-border)"
16
+ },
17
+ blue: {
18
+ background: "var(--of-badge-blue-bg)",
19
+ text: "var(--of-badge-blue-text)",
20
+ border: "var(--of-badge-blue-border)"
21
+ },
22
+ green: {
23
+ background: "var(--of-badge-green-bg)",
24
+ text: "var(--of-badge-green-text)",
25
+ border: "var(--of-badge-green-border)"
26
+ },
27
+ orange: {
28
+ background: "var(--of-badge-orange-bg)",
29
+ text: "var(--of-badge-orange-text)",
30
+ border: "var(--of-badge-orange-border)"
31
+ },
32
+ red: {
33
+ background: "var(--of-badge-red-bg)",
34
+ text: "var(--of-badge-red-text)",
35
+ border: "var(--of-badge-red-border)"
36
+ },
37
+ purple: {
38
+ background: "var(--of-badge-purple-bg)",
39
+ text: "var(--of-badge-purple-text)",
40
+ border: "var(--of-badge-purple-border)"
41
+ },
42
+ gray: {
43
+ background: "var(--of-badge-gray-bg)",
44
+ text: "var(--of-badge-gray-text)",
45
+ border: "var(--of-badge-gray-border)"
46
+ }
47
+ }, t = {
48
+ P0: "red",
49
+ P1: "orange",
50
+ P2: "blue",
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];
54
+ return {
55
+ "--one-badge-bg": e.background,
56
+ "--one-badge-color": e.text,
57
+ "--one-badge-border": e.border
58
+ };
59
+ });
60
+ return (e, v) => (u(), f("span", l({
61
+ class: ["one-badge", `one-badge--${o.size}`],
62
+ style: g.value
63
+ }, e.$attrs), [
64
+ c(e.$slots, "default", {}, void 0, !0)
65
+ ], 16));
66
+ }
67
+ });
68
+ export {
69
+ p as default
70
+ };
@@ -0,0 +1,7 @@
1
+ import o from "./ButtonGroup.vue2.js";
2
+ /* empty css */
3
+ import t from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-8fb19680"]]);
5
+ export {
6
+ m as default
7
+ };
@@ -0,0 +1,40 @@
1
+ import { defineComponent as a, computed as c, openBlock as o, createElementBlock as n, mergeProps as i, Fragment as m, renderList as p, normalizeClass as d, createBlock as f, resolveDynamicComponent as _, unref as g, createElementVNode as b, toDisplayString as u } from "vue";
2
+ import { resolveIcon as v } from "../../utils/icon.js";
3
+ const k = ["onClick"], h = {
4
+ key: 0,
5
+ class: "of-button-group__item-content"
6
+ }, C = { key: 1 }, D = /* @__PURE__ */ a({
7
+ inheritAttrs: !1,
8
+ __name: "ButtonGroup",
9
+ props: {
10
+ options: {},
11
+ modelValue: {}
12
+ },
13
+ emits: ["update:modelValue"],
14
+ setup(l) {
15
+ const r = l, s = c(() => {
16
+ const t = r.options.length;
17
+ return t <= 2 ? "of-button-group--cols-2" : t <= 3 ? "of-button-group--cols-3" : "of-button-group--cols-4";
18
+ });
19
+ return (t, y) => (o(), n("div", i({
20
+ class: ["of-button-group", s.value]
21
+ }, t.$attrs), [
22
+ (o(!0), n(m, null, p(l.options, (e) => (o(), n("button", {
23
+ key: e.value,
24
+ onClick: (V) => t.$emit("update:modelValue", e.value),
25
+ class: d([
26
+ "of-button-group__item",
27
+ l.modelValue === e.value ? "of-button-group__item--active" : ""
28
+ ])
29
+ }, [
30
+ e.icon ? (o(), n("div", h, [
31
+ (o(), f(_(g(v)(e.icon)), { class: "of-button-group__item-icon" })),
32
+ b("span", null, u(e.label), 1)
33
+ ])) : (o(), n("div", C, u(e.label), 1))
34
+ ], 10, k))), 128))
35
+ ], 16));
36
+ }
37
+ });
38
+ export {
39
+ D as default
40
+ };
@@ -0,0 +1,7 @@
1
+ import o from "./ChainItem.vue2.js";
2
+ /* empty css */
3
+ import t from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-85fb8155"]]);
5
+ export {
6
+ f as default
7
+ };
@@ -0,0 +1,68 @@
1
+ import { defineComponent as h, computed as e, openBlock as l, createElementBlock as c, mergeProps as y, createElementVNode as s, normalizeStyle as n, toDisplayString as t, createCommentVNode as u } from "vue";
2
+ const F = { class: "one-chain-item__header" }, B = {
3
+ key: 0,
4
+ class: "one-chain-item__duration"
5
+ }, A = /* @__PURE__ */ h({
6
+ inheritAttrs: !1,
7
+ __name: "ChainItem",
8
+ props: {
9
+ type: { default: "source" },
10
+ title: {},
11
+ description: {},
12
+ avatar: {},
13
+ duration: {},
14
+ color: {},
15
+ bg: {},
16
+ borderColor: {}
17
+ },
18
+ setup(o) {
19
+ const a = o, i = {
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)",
26
+ defaultAvatar: "A"
27
+ },
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)",
34
+ defaultAvatar: "✓"
35
+ }
36
+ }, r = e(() => i[a.type || "source"]), d = e(() => a.color || r.value.color), v = e(() => a.bg || r.value.bg), b = e(() => a.borderColor || r.value.border), p = e(() => r.value.descColor), g = e(() => a.avatar || r.value.defaultAvatar), f = e(() => ({
37
+ background: v.value,
38
+ borderColor: b.value
39
+ })), m = e(() => ({
40
+ backgroundColor: r.value.avatarBg,
41
+ color: d.value
42
+ }));
43
+ return (C, E) => (l(), c("div", y({
44
+ class: "one-chain-item",
45
+ style: f.value
46
+ }, C.$attrs), [
47
+ s("div", F, [
48
+ s("span", {
49
+ class: "one-chain-item__avatar",
50
+ style: n(m.value)
51
+ }, t(g.value), 5),
52
+ s("span", {
53
+ class: "one-chain-item__title",
54
+ style: n({ color: d.value })
55
+ }, t(o.title), 5),
56
+ o.duration ? (l(), c("span", B, t(o.duration), 1)) : u("", !0)
57
+ ]),
58
+ o.description ? (l(), c("div", {
59
+ key: 0,
60
+ class: "one-chain-item__desc",
61
+ style: n({ color: p.value })
62
+ }, t(o.description), 5)) : u("", !0)
63
+ ], 16));
64
+ }
65
+ });
66
+ export {
67
+ A as default
68
+ };
@@ -0,0 +1,7 @@
1
+ import o from "./DescBlock.vue2.js";
2
+ /* empty css */
3
+ import t from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-3d0716d4"]]);
5
+ export {
6
+ p as default
7
+ };
@@ -0,0 +1,13 @@
1
+ import { defineComponent as o, openBlock as t, createElementBlock as c, renderSlot as n } from "vue";
2
+ const s = { class: "one-desc-block" }, _ = /* @__PURE__ */ o({
3
+ name: "DescBlock",
4
+ __name: "DescBlock",
5
+ setup(r) {
6
+ return (e, l) => (t(), c("div", s, [
7
+ n(e.$slots, "default", {}, void 0, !0)
8
+ ]));
9
+ }
10
+ });
11
+ export {
12
+ _ as default
13
+ };
@@ -0,0 +1,7 @@
1
+ import o from "./DropdownMenu.vue2.js";
2
+ /* empty css */
3
+ import r from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const _ = /* @__PURE__ */ r(o, [["__scopeId", "data-v-876336db"]]);
5
+ export {
6
+ _ as default
7
+ };
@@ -0,0 +1,92 @@
1
+ import { defineComponent as C, ref as l, onMounted as h, onBeforeUnmount as b, openBlock as r, createElementBlock as a, mergeProps as x, createElementVNode as f, createVNode as i, unref as m, Transition as p, withCtx as v, createCommentVNode as s, Fragment as E, renderList as M, normalizeClass as B, createBlock as R, resolveDynamicComponent as z, toDisplayString as D, nextTick as L } from "vue";
2
+ import { MoreHorizontal as N } from "lucide-vue-next";
3
+ import { resolveIcon as V } from "../../utils/icon.js";
4
+ const $ = ["aria-expanded"], S = ["onClick"], H = /* @__PURE__ */ C({
5
+ inheritAttrs: !1,
6
+ __name: "DropdownMenu",
7
+ props: {
8
+ items: {}
9
+ },
10
+ setup(_) {
11
+ const n = l(!1), u = l(null), d = l(null);
12
+ function c(e) {
13
+ var o;
14
+ e.key === "Escape" && n.value && (n.value = !1, (o = u.value) == null || o.focus());
15
+ }
16
+ h(() => {
17
+ typeof document > "u" || document.addEventListener("keydown", c);
18
+ }), b(() => {
19
+ typeof document > "u" || document.removeEventListener("keydown", c);
20
+ });
21
+ function k(e) {
22
+ var o;
23
+ e.onClick(), n.value = !1, (o = u.value) == null || o.focus();
24
+ }
25
+ function y() {
26
+ var e;
27
+ n.value = !n.value, n.value ? L(() => {
28
+ var t;
29
+ const o = (t = d.value) == null ? void 0 : t.querySelector('[role="menuitem"]');
30
+ o == null || o.focus();
31
+ }) : (e = u.value) == null || e.focus();
32
+ }
33
+ function w() {
34
+ var e;
35
+ n.value = !1, (e = u.value) == null || e.focus();
36
+ }
37
+ return (e, o) => (r(), a("div", x({ class: "of-dropdown-menu" }, e.$attrs), [
38
+ f("button", {
39
+ ref_key: "triggerRef",
40
+ ref: u,
41
+ class: "of-dropdown-menu__trigger",
42
+ "aria-haspopup": "true",
43
+ "aria-expanded": n.value,
44
+ "aria-label": "更多操作",
45
+ onClick: y
46
+ }, [
47
+ i(m(N), { size: 18 })
48
+ ], 8, $),
49
+ i(p, { name: "of-dropdown-fade" }, {
50
+ default: v(() => [
51
+ n.value ? (r(), a("div", {
52
+ key: 0,
53
+ class: "of-dropdown-menu__backdrop",
54
+ onClick: w
55
+ })) : s("", !0)
56
+ ]),
57
+ _: 1
58
+ }),
59
+ i(p, { name: "of-dropdown-slide" }, {
60
+ default: v(() => [
61
+ n.value ? (r(), a("div", {
62
+ key: 0,
63
+ ref_key: "menuRef",
64
+ ref: d,
65
+ class: "of-dropdown-menu__content",
66
+ role: "menu"
67
+ }, [
68
+ (r(!0), a(E, null, M(_.items, (t, g) => (r(), a("button", {
69
+ key: g,
70
+ onClick: (T) => k(t),
71
+ class: B([
72
+ "of-dropdown-menu__item",
73
+ `of-dropdown-menu__item--${t.variant || "default"}`
74
+ ]),
75
+ role: "menuitem"
76
+ }, [
77
+ t.icon ? (r(), R(z(m(V)(t.icon)), {
78
+ key: 0,
79
+ class: "of-dropdown-menu__item-icon"
80
+ })) : s("", !0),
81
+ f("span", null, D(t.label), 1)
82
+ ], 10, S))), 128))
83
+ ], 512)) : s("", !0)
84
+ ]),
85
+ _: 1
86
+ })
87
+ ], 16));
88
+ }
89
+ });
90
+ export {
91
+ H as default
92
+ };
@@ -0,0 +1,7 @@
1
+ import t from "./EmptyState.vue2.js";
2
+ /* empty css */
3
+ import o from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const a = /* @__PURE__ */ o(t, [["__scopeId", "data-v-7d70479e"]]);
5
+ export {
6
+ a as default
7
+ };
@@ -0,0 +1,38 @@
1
+ import { defineComponent as r, openBlock as e, createElementBlock as o, mergeProps as m, createElementVNode as s, createBlock as d, resolveDynamicComponent as f, unref as y, createCommentVNode as n, toDisplayString as i } from "vue";
2
+ import { resolveIcon as k } from "../../utils/icon.js";
3
+ const u = { class: "of-empty-state__content" }, p = {
4
+ key: 0,
5
+ class: "of-empty-state__icon"
6
+ }, C = { class: "of-empty-state__title" }, h = {
7
+ key: 1,
8
+ class: "of-empty-state__description"
9
+ }, B = /* @__PURE__ */ r({
10
+ inheritAttrs: !1,
11
+ __name: "EmptyState",
12
+ props: {
13
+ icon: {},
14
+ title: {},
15
+ description: {},
16
+ action: {}
17
+ },
18
+ setup(t) {
19
+ return (a, c) => (e(), o("div", m({ class: "of-empty-state" }, a.$attrs), [
20
+ s("div", u, [
21
+ t.icon ? (e(), o("div", p, [
22
+ (e(), d(f(y(k)(t.icon))))
23
+ ])) : n("", !0),
24
+ s("h3", C, i(t.title), 1),
25
+ t.description ? (e(), o("p", h, i(t.description), 1)) : n("", !0),
26
+ t.action ? (e(), o("button", {
27
+ key: 2,
28
+ onClick: c[0] || (c[0] = //@ts-ignore
29
+ (...l) => t.action.onClick && t.action.onClick(...l)),
30
+ class: "of-empty-state__action"
31
+ }, i(t.action.label), 1)) : n("", !0)
32
+ ])
33
+ ], 16));
34
+ }
35
+ });
36
+ export {
37
+ B as default
38
+ };
@@ -0,0 +1,7 @@
1
+ import o from "./InfoCard.vue2.js";
2
+ /* empty css */
3
+ import r from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-79431801"]]);
5
+ export {
6
+ m as default
7
+ };
@@ -0,0 +1,167 @@
1
+ import { defineComponent as S, useCssVars as E, computed as b, openBlock as t, createElementBlock as r, mergeProps as L, Fragment as f, renderSlot as s, createCommentVNode as n, createElementVNode as c, toDisplayString as i, normalizeStyle as u, renderList as B } from "vue";
2
+ const P = {
3
+ key: 0,
4
+ class: "of-info-card__icon-area"
5
+ }, A = { class: "of-info-card__body" }, T = { class: "of-info-card__title" }, V = { class: "of-info-card__footer" }, I = {
6
+ key: 1,
7
+ class: "of-info-card__meta-text"
8
+ }, N = {
9
+ key: 2,
10
+ class: "of-info-card__meta-text"
11
+ }, O = { class: "of-info-card__body" }, w = { class: "of-info-card__title" }, z = {
12
+ key: 1,
13
+ class: "of-info-card__notify-meta"
14
+ }, D = {
15
+ key: 0,
16
+ class: "of-info-card__actions"
17
+ }, F = {
18
+ key: 0,
19
+ class: "of-info-card__icon-area"
20
+ }, M = { class: "of-info-card__body" }, R = { class: "of-info-card__title" }, Y = {
21
+ key: 0,
22
+ class: "of-info-card__subtitle"
23
+ }, j = {
24
+ key: 1,
25
+ class: "of-info-card__actions"
26
+ }, G = /* @__PURE__ */ S({
27
+ name: "InfoCard",
28
+ inheritAttrs: !1,
29
+ __name: "InfoCard",
30
+ props: {
31
+ variant: { default: "memo" },
32
+ title: {},
33
+ content: {},
34
+ contentLines: { default: 3 },
35
+ borderColor: {},
36
+ tags: {},
37
+ importance: { default: "normal" },
38
+ author: {},
39
+ date: {},
40
+ unread: { type: Boolean, default: !1 },
41
+ meta: {},
42
+ subtitle: {},
43
+ type: {},
44
+ typeColor: {}
45
+ },
46
+ emits: ["click"],
47
+ setup(o, { emit: y }) {
48
+ E((e) => ({
49
+ v4daa9b0a: e.unread ? "var(--of-color-warning-light)" : "var(--of-color-bg-elevated)"
50
+ }));
51
+ const a = o, m = y, 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
+ }, h = 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"), k = b(() => {
57
+ const e = {
58
+ "--of-ic-border": h.value
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(
62
+ () => ({
63
+ "--of-ic-clamp": String(a.contentLines ?? 3)
64
+ })
65
+ );
66
+ function _(e) {
67
+ const l = [
68
+ {
69
+ bg: "var(--of-badge-blue-bg)",
70
+ color: "var(--of-badge-blue-text)",
71
+ border: "var(--of-badge-blue-border)"
72
+ },
73
+ {
74
+ bg: "var(--of-badge-green-bg)",
75
+ color: "var(--of-badge-green-text)",
76
+ border: "var(--of-badge-green-border)"
77
+ },
78
+ {
79
+ bg: "var(--of-badge-orange-bg)",
80
+ color: "var(--of-badge-orange-text)",
81
+ border: "var(--of-badge-orange-border)"
82
+ },
83
+ {
84
+ bg: "var(--of-badge-purple-bg)",
85
+ color: "var(--of-badge-purple-text)",
86
+ border: "var(--of-badge-purple-border)"
87
+ },
88
+ {
89
+ bg: "var(--of-badge-gray-bg)",
90
+ color: "var(--of-badge-gray-text)",
91
+ border: "var(--of-badge-gray-border)"
92
+ }
93
+ ], d = l[e % l.length];
94
+ return {
95
+ "--of-ic-tag-bg": d.bg,
96
+ "--of-ic-tag-color": d.color,
97
+ "--of-ic-tag-border": d.border
98
+ };
99
+ }
100
+ function C(e) {
101
+ m("click", e);
102
+ }
103
+ return (e, l) => (t(), r("div", L({
104
+ class: ["of-info-card", `of-info-card--${o.variant}`],
105
+ style: k.value
106
+ }, e.$attrs, { onClick: C }), [
107
+ o.variant === "memo" ? (t(), r(f, { key: 0 }, [
108
+ e.$slots.icon ? (t(), r("div", P, [
109
+ s(e.$slots, "icon", {}, void 0, !0)
110
+ ])) : n("", !0),
111
+ c("div", A, [
112
+ c("div", T, i(o.title), 1),
113
+ o.content ? (t(), r("div", {
114
+ key: 0,
115
+ class: "of-info-card__content of-info-card__content--clamp",
116
+ style: u(v.value)
117
+ }, i(o.content), 5)) : n("", !0),
118
+ c("div", V, [
119
+ o.tags && o.tags.length ? (t(!0), r(f, { key: 0 }, B(o.tags, (d, $) => (t(), r("span", {
120
+ key: d,
121
+ class: "of-info-card__tag",
122
+ style: u(_($))
123
+ }, i(d), 5))), 128)) : n("", !0),
124
+ o.author ? (t(), r("span", I, i(o.author), 1)) : n("", !0),
125
+ o.date ? (t(), r("span", N, i(o.date), 1)) : n("", !0),
126
+ s(e.$slots, "footer", {}, void 0, !0)
127
+ ])
128
+ ])
129
+ ], 64)) : o.variant === "notify" ? (t(), r(f, { key: 1 }, [
130
+ l[0] || (l[0] = c("span", { class: "of-info-card__dot" }, null, -1)),
131
+ c("div", O, [
132
+ c("div", w, i(o.title), 1),
133
+ o.content ? (t(), r("div", {
134
+ key: 0,
135
+ class: "of-info-card__content of-info-card__content--clamp",
136
+ style: u(v.value)
137
+ }, i(o.content), 5)) : n("", !0),
138
+ o.meta ? (t(), r("div", z, i(o.meta), 1)) : n("", !0),
139
+ s(e.$slots, "footer", {}, void 0, !0)
140
+ ]),
141
+ e.$slots.actions ? (t(), r("div", D, [
142
+ s(e.$slots, "actions", {}, void 0, !0)
143
+ ])) : n("", !0)
144
+ ], 64)) : o.variant === "history" ? (t(), r(f, { key: 2 }, [
145
+ e.$slots.icon ? (t(), r("div", F, [
146
+ s(e.$slots, "icon", {}, void 0, !0)
147
+ ])) : n("", !0),
148
+ c("div", M, [
149
+ c("div", R, i(o.title), 1),
150
+ o.subtitle ? (t(), r("div", Y, i(o.subtitle), 1)) : n("", !0),
151
+ o.content ? (t(), r("div", {
152
+ key: 1,
153
+ class: "of-info-card__content of-info-card__content--clamp",
154
+ style: u(v.value)
155
+ }, i(o.content), 5)) : n("", !0),
156
+ s(e.$slots, "footer", {}, void 0, !0)
157
+ ]),
158
+ e.$slots.actions ? (t(), r("div", j, [
159
+ s(e.$slots, "actions", {}, void 0, !0)
160
+ ])) : n("", !0)
161
+ ], 64)) : n("", !0)
162
+ ], 16));
163
+ }
164
+ });
165
+ export {
166
+ G as default
167
+ };
@@ -0,0 +1,7 @@
1
+ import o from "./MonitorItem.vue2.js";
2
+ /* empty css */
3
+ import t from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-ce396706"]]);
5
+ export {
6
+ p as default
7
+ };
@@ -0,0 +1,56 @@
1
+ import { defineComponent as b, computed as o, openBlock as a, createElementBlock as n, mergeProps as h, toDisplayString as l, createCommentVNode as s, createElementVNode as e, normalizeStyle as r } from "vue";
2
+ const y = {
3
+ key: 0,
4
+ class: "of-monitor-item__subtitle"
5
+ }, g = { class: "of-monitor-item__label" }, p = { class: "of-monitor-item__progress" }, C = { class: "of-monitor-item__percentage" }, M = {
6
+ key: 1,
7
+ class: "of-monitor-item__count"
8
+ }, V = /* @__PURE__ */ b({
9
+ name: "MonitorItem",
10
+ inheritAttrs: !1,
11
+ __name: "MonitorItem",
12
+ props: {
13
+ label: {},
14
+ subtitle: { default: void 0 },
15
+ value: {},
16
+ count: { default: void 0 },
17
+ color: { default: void 0 },
18
+ clickable: { type: Boolean, default: !1 }
19
+ },
20
+ emits: ["click"],
21
+ setup(t, { emit: m }) {
22
+ const i = t, u = m, c = o(() => Math.min(100, Math.max(0, i.value))), d = o(
23
+ () => c.value === 100 ? "var(--of-color-success)" : i.color ?? "var(--of-color-primary-500)"
24
+ ), f = o(() => ({
25
+ backgroundColor: "var(--of-color-gray-100)"
26
+ })), v = o(() => ({
27
+ width: `${c.value}%`,
28
+ background: d.value
29
+ }));
30
+ function _() {
31
+ i.clickable && u("click");
32
+ }
33
+ return (k, S) => (a(), n("div", h({
34
+ class: ["of-monitor-item", { "of-monitor-item--clickable": t.clickable }]
35
+ }, k.$attrs, { onClick: _ }), [
36
+ t.subtitle !== void 0 ? (a(), n("div", y, l(t.subtitle), 1)) : s("", !0),
37
+ e("div", g, l(t.label), 1),
38
+ e("div", p, [
39
+ e("div", {
40
+ class: "of-monitor-item__track",
41
+ style: r(f.value)
42
+ }, [
43
+ e("div", {
44
+ class: "of-monitor-item__fill",
45
+ style: r(v.value)
46
+ }, null, 4)
47
+ ], 4)
48
+ ]),
49
+ e("div", C, l(c.value) + "%", 1),
50
+ t.count !== void 0 ? (a(), n("div", M, l(t.count), 1)) : s("", !0)
51
+ ], 16));
52
+ }
53
+ });
54
+ export {
55
+ V as default
56
+ };
@@ -0,0 +1,7 @@
1
+ import o from "./PersonaCard.vue2.js";
2
+ /* empty css */
3
+ import r from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-88e46628"]]);
5
+ export {
6
+ m as default
7
+ };