@oneflowui/ui 0.4.2 → 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,173 @@
1
+ import { defineComponent as C, computed as o, openBlock as t, createElementBlock as n, mergeProps as P, createElementVNode as c, normalizeStyle as f, toDisplayString as l, renderSlot as b, createCommentVNode as i, Fragment as w, renderList as A } from "vue";
2
+ const E = { class: "of-persona-card__body" }, F = { class: "of-persona-card__name-row" }, L = {
3
+ key: 0,
4
+ class: "of-persona-card__title-badge"
5
+ }, N = {
6
+ key: 1,
7
+ class: "of-persona-card__tags"
8
+ }, T = { class: "of-persona-card__right" }, V = {
9
+ key: 0,
10
+ class: "of-persona-card__done-mark"
11
+ }, D = { class: "of-persona-card__chevron" }, H = {
12
+ key: 0,
13
+ class: "of-persona-card__detail"
14
+ }, M = /* @__PURE__ */ C({
15
+ name: "PersonaCard",
16
+ inheritAttrs: !1,
17
+ __name: "PersonaCard",
18
+ props: {
19
+ name: {},
20
+ title: {},
21
+ icon: {},
22
+ color: {},
23
+ subtitle: {},
24
+ tags: {},
25
+ expanded: { type: Boolean, default: !1 },
26
+ active: { type: Boolean, default: !1 },
27
+ done: { type: Boolean, default: !1 },
28
+ disabled: { type: Boolean, default: !1 },
29
+ size: { default: "md" }
30
+ },
31
+ emits: ["update:expanded", "click"],
32
+ setup(r, { emit: m }) {
33
+ const e = r, v = m, u = [
34
+ {
35
+ accent: "var(--of-color-warning)",
36
+ bg: "var(--of-color-warning-light)",
37
+ border: "var(--of-badge-orange-border)",
38
+ tagBg: "var(--of-badge-orange-bg)"
39
+ },
40
+ {
41
+ accent: "var(--of-color-primary-500)",
42
+ bg: "var(--of-color-primary-50)",
43
+ border: "var(--of-color-primary-200)",
44
+ tagBg: "var(--of-color-primary-100)"
45
+ },
46
+ {
47
+ accent: "var(--of-role-pm-text)",
48
+ bg: "var(--of-role-pm-bg)",
49
+ border: "var(--of-badge-red-border)",
50
+ tagBg: "var(--of-badge-red-bg)"
51
+ },
52
+ {
53
+ accent: "var(--of-color-success)",
54
+ bg: "var(--of-color-success-light)",
55
+ border: "var(--of-badge-green-border)",
56
+ tagBg: "var(--of-badge-green-bg)"
57
+ },
58
+ {
59
+ accent: "var(--of-color-info)",
60
+ bg: "var(--of-color-info-light)",
61
+ border: "var(--of-badge-blue-border)",
62
+ tagBg: "var(--of-badge-blue-bg)"
63
+ },
64
+ {
65
+ accent: "var(--of-role-arch-text)",
66
+ bg: "var(--of-role-arch-bg)",
67
+ border: "var(--of-badge-purple-border)",
68
+ tagBg: "var(--of-badge-purple-bg)"
69
+ },
70
+ {
71
+ accent: "var(--of-color-error)",
72
+ bg: "var(--of-color-error-light)",
73
+ border: "var(--of-badge-red-border)",
74
+ tagBg: "var(--of-badge-red-bg)"
75
+ },
76
+ {
77
+ accent: "var(--of-role-fe-text)",
78
+ bg: "var(--of-role-fe-bg)",
79
+ border: "var(--of-badge-green-border)",
80
+ tagBg: "var(--of-badge-green-bg)"
81
+ }
82
+ ];
83
+ function h(a) {
84
+ let s = 0;
85
+ for (let d = 0; d < a.length; d++)
86
+ s = (s << 5) - s + a.charCodeAt(d), s |= 0;
87
+ return Math.abs(s);
88
+ }
89
+ const g = o(() => {
90
+ if (e.color) {
91
+ const a = e.color.replace("#", "");
92
+ return {
93
+ accent: e.color,
94
+ bg: `#${a}24`,
95
+ border: `#${a}52`,
96
+ tagBg: `#${a}1a`
97
+ };
98
+ }
99
+ return u[h(e.name) % u.length];
100
+ }), p = o(() => e.size === "sm" ? 24 : 32), y = o(() => e.size === "sm" ? 12 : 16), _ = o(() => e.size === "sm" ? 12 : 13), B = o(() => e.size === "sm" ? 11 : 12), x = o(() => {
101
+ if (e.icon) return e.icon;
102
+ const a = e.name.trim();
103
+ return a ? a.charAt(0) : "?";
104
+ }), z = o(() => [
105
+ "of-persona-card",
106
+ `of-persona-card--${e.size}`,
107
+ {
108
+ "of-persona-card--active": e.active,
109
+ "of-persona-card--done": e.done,
110
+ "of-persona-card--disabled": e.disabled,
111
+ "of-persona-card--expanded": e.expanded
112
+ }
113
+ ]), k = o(() => ({
114
+ "--pc-accent": g.value.accent,
115
+ "--pc-accent-bg": g.value.bg,
116
+ "--pc-accent-border": g.value.border,
117
+ "--pc-accent-tag-bg": g.value.tagBg
118
+ })), S = o(() => ({
119
+ width: `${p.value}px`,
120
+ height: `${p.value}px`,
121
+ fontSize: `${y.value}px`
122
+ }));
123
+ function $() {
124
+ e.disabled || (v("update:expanded", !e.expanded), v("click"));
125
+ }
126
+ return (a, s) => (t(), n("div", P({
127
+ class: z.value,
128
+ style: k.value
129
+ }, a.$attrs), [
130
+ c("div", {
131
+ class: "of-persona-card__header",
132
+ onClick: $
133
+ }, [
134
+ c("span", {
135
+ class: "of-persona-card__avatar",
136
+ style: f(S.value)
137
+ }, l(x.value), 5),
138
+ c("div", E, [
139
+ c("div", F, [
140
+ c("span", {
141
+ class: "of-persona-card__name",
142
+ style: f({ fontSize: `${_.value}px` })
143
+ }, l(r.name), 5),
144
+ b(a.$slots, "badge", {}, void 0, !0),
145
+ r.title ? (t(), n("span", L, l(r.title), 1)) : i("", !0)
146
+ ]),
147
+ r.subtitle ? (t(), n("span", {
148
+ key: 0,
149
+ class: "of-persona-card__subtitle",
150
+ style: f({ fontSize: `${B.value}px` })
151
+ }, l(r.subtitle), 5)) : i("", !0),
152
+ r.tags && r.tags.length > 0 ? (t(), n("div", N, [
153
+ (t(!0), n(w, null, A(r.tags, (d) => (t(), n("span", {
154
+ key: d,
155
+ class: "of-persona-card__tag"
156
+ }, l(d), 1))), 128))
157
+ ])) : i("", !0)
158
+ ]),
159
+ c("div", T, [
160
+ b(a.$slots, "actions", {}, void 0, !0),
161
+ r.done ? (t(), n("span", V, "✓")) : i("", !0),
162
+ c("span", D, l(r.expanded ? "▲" : "▼"), 1)
163
+ ])
164
+ ]),
165
+ r.expanded ? (t(), n("div", H, [
166
+ b(a.$slots, "default", {}, void 0, !0)
167
+ ])) : i("", !0)
168
+ ], 16));
169
+ }
170
+ });
171
+ export {
172
+ M as default
173
+ };
@@ -0,0 +1,7 @@
1
+ import o from "./ProgressBar.vue2.js";
2
+ /* empty css */
3
+ import r from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const e = /* @__PURE__ */ r(o, [["__scopeId", "data-v-1aeb6aa3"]]);
5
+ export {
6
+ e as default
7
+ };
@@ -0,0 +1,49 @@
1
+ import { defineComponent as p, computed as r, openBlock as t, createElementBlock as c, mergeProps as f, createElementVNode as a, normalizeStyle as d, normalizeClass as b, renderSlot as v, toDisplayString as m, createCommentVNode as _ } from "vue";
2
+ const g = {
3
+ key: 0,
4
+ class: "of-progress-bar__label"
5
+ }, h = { class: "of-progress-bar__slot" }, y = { class: "of-progress-bar__value" }, $ = /* @__PURE__ */ p({
6
+ inheritAttrs: !1,
7
+ __name: "ProgressBar",
8
+ props: {
9
+ value: {},
10
+ height: { default: 4 },
11
+ color: {},
12
+ bgColor: { default: "var(--of-color-gray-100)" },
13
+ showLabel: { type: Boolean, default: !1 },
14
+ borderRadius: { default: 2 }
15
+ },
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
+ ), n = r(() => ({
20
+ height: `${e.height}px`,
21
+ backgroundColor: e.bgColor,
22
+ borderRadius: `${e.borderRadius}px`
23
+ })), i = r(() => ({
24
+ width: `${o.value}%`,
25
+ background: u.value,
26
+ borderRadius: `${e.borderRadius}px`
27
+ }));
28
+ return (l, k) => (t(), c("div", f({ class: "of-progress-bar" }, l.$attrs), [
29
+ a("div", {
30
+ class: "of-progress-bar__track pb",
31
+ style: d(n.value)
32
+ }, [
33
+ a("div", {
34
+ class: b(["of-progress-bar__fill pf", { dn: o.value === 100 }]),
35
+ style: d(i.value)
36
+ }, null, 6)
37
+ ], 4),
38
+ s.showLabel ? (t(), c("div", g, [
39
+ a("div", h, [
40
+ v(l.$slots, "default", {}, void 0, !0)
41
+ ]),
42
+ a("span", y, m(o.value) + "%", 1)
43
+ ])) : _("", !0)
44
+ ], 16));
45
+ }
46
+ });
47
+ export {
48
+ $ as default
49
+ };
@@ -0,0 +1,7 @@
1
+ import o from "./RangeSlider.vue2.js";
2
+ /* empty css */
3
+ import r from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-df75159c"]]);
5
+ export {
6
+ f as default
7
+ };
@@ -0,0 +1,35 @@
1
+ import { defineComponent as r, openBlock as l, createElementBlock as n, mergeProps as m, createElementVNode as i, toDisplayString as s, createCommentVNode as d } from "vue";
2
+ const u = { class: "of-range-slider__label" }, c = ["value", "min", "max", "step"], p = {
3
+ key: 0,
4
+ class: "of-range-slider__description"
5
+ }, g = /* @__PURE__ */ r({
6
+ inheritAttrs: !1,
7
+ __name: "RangeSlider",
8
+ props: {
9
+ label: {},
10
+ modelValue: {},
11
+ min: {},
12
+ max: {},
13
+ step: {},
14
+ description: {}
15
+ },
16
+ emits: ["update:modelValue"],
17
+ setup(e) {
18
+ return (t, a) => (l(), n("div", m({ class: "of-range-slider" }, t.$attrs), [
19
+ i("label", u, s(e.label), 1),
20
+ i("input", {
21
+ value: e.modelValue,
22
+ onInput: a[0] || (a[0] = (o) => t.$emit("update:modelValue", Number(o.target.value))),
23
+ type: "range",
24
+ min: e.min,
25
+ max: e.max,
26
+ step: e.step ?? 1,
27
+ class: "of-range-slider__input"
28
+ }, null, 40, c),
29
+ e.description ? (l(), n("p", p, s(e.description), 1)) : d("", !0)
30
+ ], 16));
31
+ }
32
+ });
33
+ export {
34
+ g as default
35
+ };
@@ -0,0 +1,7 @@
1
+ import o from "./RefTag.vue2.js";
2
+ /* empty css */
3
+ import t from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-4b527ca4"]]);
5
+ export {
6
+ m as default
7
+ };
@@ -0,0 +1,52 @@
1
+ import { defineComponent as g, computed as n, openBlock as l, createBlock as s, resolveDynamicComponent as f, mergeProps as m, withCtx as p, createCommentVNode as u, createElementVNode as v, renderSlot as d } from "vue";
2
+ import { resolveIcon as h } from "../../utils/icon.js";
3
+ const b = { class: "one-ref-tag__text" }, S = /* @__PURE__ */ g({
4
+ name: "RefTag",
5
+ inheritAttrs: !1,
6
+ __name: "RefTag",
7
+ props: {
8
+ type: { default: "spec" },
9
+ icon: {},
10
+ color: {},
11
+ bg: {},
12
+ href: {}
13
+ },
14
+ setup(e) {
15
+ const a = {
16
+ spec: {
17
+ icon: "file-text",
18
+ color: "var(--of-color-primary-700)",
19
+ bg: "var(--of-color-primary-50)"
20
+ },
21
+ wiki: { icon: "book-open", color: "var(--of-color-green-600)", bg: "var(--of-color-green-50)" },
22
+ task: { icon: "link", color: "var(--of-color-orange-600)", bg: "var(--of-color-orange-50)" }
23
+ }, o = e, t = n(() => a[o.type ?? ""] ?? a.spec), c = n(() => {
24
+ const r = o.icon ?? t.value.icon;
25
+ return h(r);
26
+ }), i = n(() => ({
27
+ "--one-ref-tag-color": o.color ?? t.value.color,
28
+ "--one-ref-tag-bg": o.bg ?? t.value.bg
29
+ }));
30
+ return (r, y) => (l(), s(f(e.href ? "a" : "span"), m({
31
+ class: "one-ref-tag",
32
+ style: i.value,
33
+ href: e.href ?? void 0,
34
+ target: e.href ? "_blank" : void 0,
35
+ rel: e.href ? "noopener noreferrer" : void 0
36
+ }, r.$attrs), {
37
+ default: p(() => [
38
+ c.value ? (l(), s(f(c.value), {
39
+ key: 0,
40
+ class: "one-ref-tag__icon"
41
+ })) : u("", !0),
42
+ v("span", b, [
43
+ d(r.$slots, "default", {}, void 0, !0)
44
+ ])
45
+ ]),
46
+ _: 3
47
+ }, 16, ["style", "href", "target", "rel"]));
48
+ }
49
+ });
50
+ export {
51
+ S as default
52
+ };
@@ -0,0 +1,7 @@
1
+ import o from "./SectionBlock.vue2.js";
2
+ /* empty css */
3
+ import t from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-d2c09df0"]]);
5
+ export {
6
+ m as default
7
+ };
@@ -0,0 +1,115 @@
1
+ import { defineComponent as E, computed as s, openBlock as l, createElementBlock as n, mergeProps as T, createElementVNode as t, createBlock as A, resolveDynamicComponent as L, createCommentVNode as d, toDisplayString as k, normalizeStyle as w, withModifiers as $, renderSlot as u, normalizeClass as v } from "vue";
2
+ import { resolveIcon as z } from "../../utils/icon.js";
3
+ const D = { class: "of-section-block__header-left" }, N = { class: "of-section-block__title" }, U = ["aria-expanded", "aria-label"], M = { class: "of-section-block__body" }, F = /* @__PURE__ */ E({
4
+ name: "SectionBlock",
5
+ inheritAttrs: !1,
6
+ __name: "SectionBlock",
7
+ props: {
8
+ title: {},
9
+ icon: { default: void 0 },
10
+ status: { default: void 0 },
11
+ collapsed: { type: Boolean, default: !1 },
12
+ editable: { type: Boolean, default: !1 },
13
+ statusLabels: { default: void 0 }
14
+ },
15
+ emits: ["update:collapsed", "edit", "save"],
16
+ setup(e, { emit: g }) {
17
+ const o = e, c = g, m = {
18
+ pending: { background: "var(--of-color-gray-100)", text: "var(--of-color-gray-400)" },
19
+ updating: { background: "var(--of-color-primary-50)", text: "var(--of-color-primary-500)" },
20
+ done: { background: "var(--of-color-success-light)", text: "var(--of-badge-green-text)" },
21
+ editing: { background: "var(--of-color-primary-50)", text: "var(--of-color-primary-500)" }
22
+ }, y = {
23
+ pending: "待处理",
24
+ updating: "更新中",
25
+ done: "已完成",
26
+ editing: "编辑中"
27
+ }, i = s(() => o.status ? m[o.status] ?? null : null), _ = s(() => {
28
+ var a;
29
+ return o.status ? ((a = o.statusLabels) == null ? void 0 : a[o.status]) ?? y[o.status] ?? o.status : null;
30
+ }), h = s(() => i.value ? {
31
+ backgroundColor: i.value.background,
32
+ color: i.value.text
33
+ } : {}), C = s(() => o.status === "editing" ? {
34
+ borderColor: "var(--of-color-primary-500)",
35
+ boxShadow: "0 0 0 3px color-mix(in srgb, var(--of-color-primary-500) 8%, transparent)"
36
+ } : o.status === "done" ? { borderColor: "var(--of-color-success-light)" } : {}), r = s(() => o.status === "editing"), S = s(() => o.editable && o.status === "done"), f = s(() => z(o.icon));
37
+ function b() {
38
+ c("update:collapsed", !o.collapsed);
39
+ }
40
+ function x() {
41
+ c("edit");
42
+ }
43
+ function B() {
44
+ c("save");
45
+ }
46
+ return (a, p) => (l(), n("div", T({
47
+ class: ["of-section-block", {
48
+ "of-section-block--collapsed": e.collapsed,
49
+ "of-section-block--editing": r.value,
50
+ "of-section-block--done": e.status === "done"
51
+ }],
52
+ style: C.value
53
+ }, a.$attrs), [
54
+ t("div", {
55
+ class: "of-section-block__header",
56
+ onClick: b
57
+ }, [
58
+ t("div", D, [
59
+ f.value ? (l(), A(L(f.value), {
60
+ key: 0,
61
+ class: "of-section-block__icon",
62
+ size: 14,
63
+ "aria-hidden": "true"
64
+ })) : d("", !0),
65
+ t("span", N, k(e.title), 1),
66
+ e.status ? (l(), n("span", {
67
+ key: 1,
68
+ class: "of-section-block__status-badge",
69
+ style: w(h.value)
70
+ }, k(_.value), 5)) : d("", !0)
71
+ ]),
72
+ t("div", {
73
+ class: "of-section-block__header-right",
74
+ onClick: p[0] || (p[0] = $(() => {
75
+ }, ["stop"]))
76
+ }, [
77
+ u(a.$slots, "header-extra", {}, void 0, !0),
78
+ r.value ? (l(), n("button", {
79
+ key: 0,
80
+ type: "button",
81
+ class: "of-section-block__action-btn of-section-block__action-btn--save",
82
+ onClick: B
83
+ }, " 保存 ")) : S.value ? (l(), n("button", {
84
+ key: 1,
85
+ type: "button",
86
+ class: "of-section-block__action-btn",
87
+ onClick: x
88
+ }, " 编辑 ")) : d("", !0),
89
+ t("button", {
90
+ type: "button",
91
+ class: "of-section-block__collapse-btn",
92
+ "aria-expanded": !e.collapsed,
93
+ "aria-label": e.collapsed ? "展开" : "折叠",
94
+ onClick: b
95
+ }, [
96
+ t("span", {
97
+ class: v(["of-section-block__collapse-icon", { "of-section-block__collapse-icon--collapsed": e.collapsed }]),
98
+ "aria-hidden": "true"
99
+ }, "▾", 2)
100
+ ], 8, U)
101
+ ])
102
+ ]),
103
+ t("div", {
104
+ class: v(["of-section-block__body-wrapper", { "of-section-block__body-wrapper--collapsed": e.collapsed }])
105
+ }, [
106
+ t("div", M, [
107
+ r.value ? u(a.$slots, "editor", { key: 0 }, void 0, !0) : u(a.$slots, "default", { key: 1 }, void 0, !0)
108
+ ])
109
+ ], 2)
110
+ ], 16));
111
+ }
112
+ });
113
+ export {
114
+ F as default
115
+ };
@@ -0,0 +1,7 @@
1
+ import o from "./SelectBadge.vue2.js";
2
+ /* empty css */
3
+ import t from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-c58387e0"]]);
5
+ export {
6
+ c as default
7
+ };
@@ -0,0 +1,81 @@
1
+ import { defineComponent as x, computed as o, openBlock as l, createElementBlock as d, mergeProps as m, normalizeStyle as y, createCommentVNode as c, createElementVNode as k, renderSlot as B, unref as g, createBlock as _, resolveDynamicComponent as h } from "vue";
2
+ import { resolveIcon as S } from "../../utils/icon.js";
3
+ const w = { class: "one-select-badge__text" }, N = /* @__PURE__ */ x({
4
+ inheritAttrs: !1,
5
+ __name: "SelectBadge",
6
+ props: {
7
+ color: {},
8
+ dot: { type: Boolean, default: !1 },
9
+ dotColor: {},
10
+ textColor: {},
11
+ bgColor: {},
12
+ borderColor: {},
13
+ clickable: { type: Boolean, default: !0 }
14
+ },
15
+ emits: ["click"],
16
+ setup(t, { emit: s }) {
17
+ const e = t, u = s, r = {
18
+ red: {
19
+ text: "var(--of-badge-red-text)",
20
+ bg: "var(--of-badge-red-bg)",
21
+ border: "var(--of-badge-red-border)"
22
+ },
23
+ orange: {
24
+ text: "var(--of-badge-orange-text)",
25
+ bg: "var(--of-badge-orange-bg)",
26
+ border: "var(--of-badge-orange-border)"
27
+ },
28
+ green: {
29
+ text: "var(--of-badge-green-text)",
30
+ bg: "var(--of-badge-green-bg)",
31
+ border: "var(--of-badge-green-border)"
32
+ },
33
+ blue: {
34
+ text: "var(--of-badge-blue-text)",
35
+ bg: "var(--of-badge-blue-bg)",
36
+ border: "var(--of-badge-blue-border)"
37
+ },
38
+ purple: {
39
+ text: "var(--of-badge-purple-text)",
40
+ bg: "var(--of-badge-purple-bg)",
41
+ border: "var(--of-badge-purple-border)"
42
+ },
43
+ gray: {
44
+ text: "var(--of-badge-gray-text)",
45
+ bg: "var(--of-badge-gray-bg)",
46
+ border: "var(--of-badge-gray-border)"
47
+ }
48
+ }, n = o(() => e.textColor ? e.textColor : e.color && r[e.color] ? r[e.color].text : r.gray.text), f = o(() => e.bgColor ? e.bgColor : e.color && r[e.color] ? r[e.color].bg : r.gray.bg), v = o(() => e.borderColor ? e.borderColor : e.color && r[e.color] ? r[e.color].border : r.gray.border), i = o(
49
+ () => ({
50
+ "--one-sb-text": n.value,
51
+ "--one-sb-bg": f.value,
52
+ "--one-sb-border": v.value
53
+ })
54
+ ), C = o(() => ({
55
+ backgroundColor: e.dotColor || n.value
56
+ })), b = S("chevron-down");
57
+ function p(a) {
58
+ u("click", a);
59
+ }
60
+ return (a, A) => (l(), d("span", m({
61
+ class: ["one-select-badge", { "one-select-badge--clickable": t.clickable }],
62
+ style: i.value
63
+ }, a.$attrs, { onClick: p }), [
64
+ t.dot ? (l(), d("span", {
65
+ key: 0,
66
+ class: "one-select-badge__dot",
67
+ style: y(C.value)
68
+ }, null, 4)) : c("", !0),
69
+ k("span", w, [
70
+ B(a.$slots, "default", {}, void 0, !0)
71
+ ]),
72
+ t.clickable && g(b) ? (l(), _(h(g(b)), {
73
+ key: 1,
74
+ class: "one-select-badge__arrow"
75
+ })) : c("", !0)
76
+ ], 16));
77
+ }
78
+ });
79
+ export {
80
+ N as default
81
+ };
@@ -0,0 +1,7 @@
1
+ import t from "./StatisticCard.vue2.js";
2
+ /* empty css */
3
+ import o from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-62284568"]]);
5
+ export {
6
+ m as default
7
+ };
@@ -0,0 +1,57 @@
1
+ import { defineComponent as i, computed as f, openBlock as l, createElementBlock as u, mergeProps as d, createElementVNode as e, normalizeStyle as a, createBlock as v, resolveDynamicComponent as p, unref as b, toDisplayString as s } from "vue";
2
+ import { resolveIcon as g } from "../../utils/icon.js";
3
+ const _ = { class: "of-statistic-card__content" }, m = { class: "of-statistic-card__value" }, x = { class: "of-statistic-card__label" }, k = /* @__PURE__ */ i({
4
+ inheritAttrs: !1,
5
+ __name: "StatisticCard",
6
+ props: {
7
+ icon: {},
8
+ iconColor: {},
9
+ value: {},
10
+ label: {}
11
+ },
12
+ setup(o) {
13
+ const n = o, r = {
14
+ blue: {
15
+ bg: "var(--of-color-blue-50)",
16
+ text: "var(--of-color-blue-600)"
17
+ },
18
+ green: {
19
+ bg: "var(--of-color-green-50)",
20
+ text: "var(--of-color-green-600)"
21
+ },
22
+ orange: {
23
+ bg: "var(--of-color-orange-50)",
24
+ text: "var(--of-color-orange-600)"
25
+ },
26
+ red: {
27
+ bg: "var(--of-color-red-50)",
28
+ text: "var(--of-color-red-600)"
29
+ },
30
+ purple: {
31
+ bg: "var(--of-color-purple-50)",
32
+ text: "var(--of-color-purple-600)"
33
+ }
34
+ }, c = f(() => {
35
+ const t = n.iconColor || "blue";
36
+ return r[t] || r.blue;
37
+ });
38
+ return (t, C) => (l(), u("div", d({ class: "of-statistic-card" }, t.$attrs), [
39
+ e("div", {
40
+ class: "of-statistic-card__icon-container",
41
+ style: a({ backgroundColor: c.value.bg })
42
+ }, [
43
+ (l(), v(p(b(g)(o.icon)), {
44
+ class: "of-statistic-card__icon",
45
+ style: a({ color: c.value.text })
46
+ }, null, 8, ["style"]))
47
+ ], 4),
48
+ e("div", _, [
49
+ e("p", m, s(o.value), 1),
50
+ e("p", x, s(o.label), 1)
51
+ ])
52
+ ], 16));
53
+ }
54
+ });
55
+ export {
56
+ k as default
57
+ };
@@ -0,0 +1,7 @@
1
+ import t from "./StatusIndicator.vue2.js";
2
+ /* empty css */
3
+ import o from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const d = /* @__PURE__ */ o(t, [["__scopeId", "data-v-9cd8c7d0"]]);
5
+ export {
6
+ d as default
7
+ };
@@ -0,0 +1,54 @@
1
+ import { defineComponent as d, computed as e, openBlock as f, createElementBlock as v, mergeProps as p, createElementVNode as c, normalizeStyle as m, renderSlot as _, toDisplayString as g } from "vue";
2
+ const y = { class: "of-status-indicator__label" }, h = /* @__PURE__ */ d({
3
+ inheritAttrs: !1,
4
+ __name: "StatusIndicator",
5
+ props: {
6
+ status: {},
7
+ label: { default: void 0 },
8
+ size: { default: "md" },
9
+ color: { default: void 0 }
10
+ },
11
+ setup(t) {
12
+ const n = {
13
+ in_progress: "var(--of-color-info)",
14
+ executing: "var(--of-color-info)",
15
+ analysing: "var(--of-color-info)",
16
+ completed: "var(--of-color-success)",
17
+ resolved: "var(--of-color-success)",
18
+ closed: "var(--of-color-success)",
19
+ reviewing: "var(--of-color-warning)",
20
+ blocked: "var(--of-color-error)",
21
+ cancelled: "var(--of-color-error)",
22
+ open: "var(--of-color-gray-300)",
23
+ idle: "var(--of-color-gray-400)",
24
+ draft: "var(--of-color-gray-400)"
25
+ }, i = {
26
+ sm: "6px",
27
+ md: "8px"
28
+ }, o = t, u = e(() => o.status.trim().toLowerCase()), r = e(() => o.label ?? o.status), a = e(
29
+ () => o.color ?? n[u.value] ?? "var(--of-color-gray-300)"
30
+ ), s = e(() => i[o.size]);
31
+ return (l, S) => (f(), v("span", p({
32
+ class: "of-status-indicator",
33
+ style: { "--of-status-dot-color": a.value }
34
+ }, l.$attrs), [
35
+ c("span", {
36
+ class: "of-status-indicator__dot",
37
+ style: m({
38
+ width: s.value,
39
+ height: s.value
40
+ })
41
+ }, null, 4),
42
+ _(l.$slots, "default", {
43
+ status: t.status,
44
+ label: r.value,
45
+ color: a.value
46
+ }, () => [
47
+ c("span", y, g(r.value), 1)
48
+ ], !0)
49
+ ], 16));
50
+ }
51
+ });
52
+ export {
53
+ h as default
54
+ };