@oneflowui/ui 0.5.5 → 0.5.7

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 (203) hide show
  1. package/dist/components/ContextMenu/index.vue.js +2 -2
  2. package/dist/components/Dashboard/charts/BarChart.vue.js +2 -2
  3. package/dist/components/Dashboard/charts/PieChart.vue.js +2 -2
  4. package/dist/components/Dashboard/index.vue.d.ts +2 -1
  5. package/dist/components/Dashboard/index.vue.js +2 -2
  6. package/dist/components/ai/AiSender.vue.js +2 -2
  7. package/dist/components/ai/AiSender.vue2.js +8 -7
  8. package/dist/components/auxiliary/ColorPanel.vue.js +2 -2
  9. package/dist/components/auxiliary/ColorPanel.vue2.js +25 -23
  10. package/dist/components/auxiliary/FileUpload.vue.js +2 -2
  11. package/dist/components/auxiliary/FileUpload.vue2.js +1 -0
  12. package/dist/components/auxiliary/PersonPanel.vue.js +1 -1
  13. package/dist/components/auxiliary/PersonPanel.vue2.js +2 -1
  14. package/dist/components/base/Accordion.vue.js +1 -1
  15. package/dist/components/base/Avatar.vue.d.ts +3 -0
  16. package/dist/components/base/Avatar.vue.js +4 -4
  17. package/dist/components/base/Avatar.vue2.js +8 -8
  18. package/dist/components/base/Badge.vue.d.ts +2 -0
  19. package/dist/components/base/Badge.vue.js +2 -2
  20. package/dist/components/base/Badge.vue2.js +2 -2
  21. package/dist/components/base/ButtonGroup.vue.js +2 -2
  22. package/dist/components/base/ButtonGroup.vue2.js +2 -2
  23. package/dist/components/base/ChainItem.vue.d.ts +6 -0
  24. package/dist/components/base/ChainItem.vue.js +2 -2
  25. package/dist/components/base/ChainItem.vue2.js +17 -17
  26. package/dist/components/base/DropdownMenu.vue.js +2 -2
  27. package/dist/components/base/DropdownMenu.vue2.js +22 -20
  28. package/dist/components/base/EmptyState.vue.js +2 -2
  29. package/dist/components/base/EmptyState.vue2.js +2 -2
  30. package/dist/components/base/InfoCard.vue.d.ts +9 -0
  31. package/dist/components/base/InfoCard.vue.js +2 -2
  32. package/dist/components/base/InfoCard.vue2.js +65 -57
  33. package/dist/components/base/MonitorItem.vue.js +2 -2
  34. package/dist/components/base/MonitorItem.vue2.js +33 -25
  35. package/dist/components/base/PersonaCard.vue.d.ts +5 -0
  36. package/dist/components/base/PersonaCard.vue.js +3 -3
  37. package/dist/components/base/PersonaCard.vue2.js +56 -50
  38. package/dist/components/base/ProgressBar.vue.d.ts +1 -0
  39. package/dist/components/base/ProgressBar.vue.js +2 -2
  40. package/dist/components/base/ProgressBar.vue2.js +10 -10
  41. package/dist/components/base/RangeSlider.vue.d.ts +15 -0
  42. package/dist/components/base/RangeSlider.vue.js +1 -1
  43. package/dist/components/base/RangeSlider.vue2.js +22 -15
  44. package/dist/components/base/RefTag.vue.d.ts +4 -0
  45. package/dist/components/base/RefTag.vue.js +3 -3
  46. package/dist/components/base/RefTag.vue2.js +14 -14
  47. package/dist/components/base/SearchHighlight.vue.js +1 -1
  48. package/dist/components/base/SectionBlock.vue.js +2 -2
  49. package/dist/components/base/SectionBlock.vue2.js +54 -48
  50. package/dist/components/base/SelectBadge.vue.d.ts +5 -0
  51. package/dist/components/base/SelectBadge.vue.js +3 -3
  52. package/dist/components/base/SelectBadge.vue2.js +36 -28
  53. package/dist/components/base/StatisticCard.vue.js +1 -1
  54. package/dist/components/base/StatusIndicator.vue.js +2 -2
  55. package/dist/components/base/StatusIndicator.vue2.js +2 -2
  56. package/dist/components/base/StatusSummary.vue.js +2 -2
  57. package/dist/components/base/Stepper.vue.js +2 -2
  58. package/dist/components/base/Switch.vue.js +2 -2
  59. package/dist/components/base/ToolbarBtn.vue.js +2 -2
  60. package/dist/components/base/ViewModeGroup.vue.js +1 -1
  61. package/dist/components/base/ViewModeGroup.vue2.js +3 -3
  62. package/dist/components/base/ViewSwitcher.vue.js +1 -1
  63. package/dist/components/base/ViewSwitcher.vue2.js +3 -3
  64. package/dist/components/base/ViewTab.vue.js +1 -1
  65. package/dist/components/base/ViewTab.vue2.js +5 -6
  66. package/dist/components/breadcrumb/Breadcrumb.vue.js +2 -2
  67. package/dist/components/breadcrumb/BreadcrumbItem.vue.js +2 -2
  68. package/dist/components/detail/PropPanel.vue.js +2 -2
  69. package/dist/components/detail/PropPanel.vue2.js +34 -30
  70. package/dist/components/detail/PropRow.vue.d.ts +6 -0
  71. package/dist/components/detail/PropRow.vue.js +2 -2
  72. package/dist/components/detail/PropRow.vue2.js +24 -24
  73. package/dist/components/editor/BlockQuote.vue.d.ts +2 -1
  74. package/dist/components/editor/BlockQuote.vue.js +1 -1
  75. package/dist/components/editor/BlockQuote.vue2.js +43 -29
  76. package/dist/components/editor/ContentBlock.vue.d.ts +4 -2
  77. package/dist/components/editor/ContentBlock.vue.js +2 -2
  78. package/dist/components/editor/ContentBlock.vue2.js +54 -33
  79. package/dist/components/editor/RichTextEditor.vue.js +2 -2
  80. package/dist/components/editor/RichTextEditor.vue2.js +10 -14
  81. package/dist/components/field/FieldAttachment.vue.js +2 -2
  82. package/dist/components/field/FieldAttachment.vue2.js +30 -32
  83. package/dist/components/field/FieldAutoNumber.vue.js +2 -2
  84. package/dist/components/field/FieldCheckbox.vue.js +2 -2
  85. package/dist/components/field/FieldCheckbox.vue2.js +13 -11
  86. package/dist/components/field/FieldCreator.vue.js +2 -2
  87. package/dist/components/field/FieldCurrency.vue.js +2 -2
  88. package/dist/components/field/FieldCurrency.vue2.js +15 -14
  89. package/dist/components/field/FieldDate.vue.js +1 -1
  90. package/dist/components/field/FieldDate.vue2.js +14 -16
  91. package/dist/components/field/FieldDatetime.vue.js +1 -1
  92. package/dist/components/field/FieldDatetime.vue2.js +12 -11
  93. package/dist/components/field/FieldEmail.vue.js +2 -2
  94. package/dist/components/field/FieldEmail.vue2.js +14 -13
  95. package/dist/components/field/FieldMarkdownPreview.vue.js +2 -2
  96. package/dist/components/field/FieldMultiSelect.vue.d.ts +2 -2
  97. package/dist/components/field/FieldMultiSelect.vue.js +2 -2
  98. package/dist/components/field/FieldMultiSelect.vue2.js +80 -75
  99. package/dist/components/field/FieldNumber.vue.js +3 -3
  100. package/dist/components/field/FieldNumber.vue2.js +19 -18
  101. package/dist/components/field/FieldPhone.vue.js +2 -2
  102. package/dist/components/field/FieldPhone.vue2.js +12 -11
  103. package/dist/components/field/FieldProgress.vue.js +1 -1
  104. package/dist/components/field/FieldProgress.vue2.js +18 -17
  105. package/dist/components/field/FieldRating.vue.js +2 -2
  106. package/dist/components/field/FieldRating.vue2.js +22 -16
  107. package/dist/components/field/FieldRelation.vue.js +1 -1
  108. package/dist/components/field/FieldRelation.vue2.js +25 -22
  109. package/dist/components/field/FieldRichText.vue.js +1 -1
  110. package/dist/components/field/FieldRichText.vue2.js +10 -7
  111. package/dist/components/field/FieldSelect.vue.js +2 -2
  112. package/dist/components/field/FieldSelect.vue2.js +81 -63
  113. package/dist/components/field/FieldText.vue.js +2 -2
  114. package/dist/components/field/FieldText.vue2.js +17 -16
  115. package/dist/components/field/FieldUrl.vue.js +2 -2
  116. package/dist/components/field/FieldUrl.vue2.js +17 -16
  117. package/dist/components/form/FormDesigner.vue.js +2 -2
  118. package/dist/components/form/FormDesigner.vue2.js +83 -78
  119. package/dist/components/gallery/GalleryCard.vue.d.ts +1 -1
  120. package/dist/components/gallery/GalleryCard.vue.js +2 -2
  121. package/dist/components/gallery/GalleryCard.vue2.js +2 -1
  122. package/dist/components/kanban/KanbanCard.vue.d.ts +3 -1
  123. package/dist/components/kanban/KanbanCard.vue.js +1 -1
  124. package/dist/components/kanban/KanbanCard.vue2.js +15 -14
  125. package/dist/components/kanban/KanbanColumn.vue.d.ts +2 -0
  126. package/dist/components/kanban/KanbanColumn.vue.js +2 -2
  127. package/dist/components/kanban/KanbanColumn.vue2.js +9 -9
  128. package/dist/components/kanban/QuickAddRow.vue.js +2 -2
  129. package/dist/components/kanban/QuickAddRow.vue2.js +15 -14
  130. package/dist/components/layout/Navbar.vue.js +3 -3
  131. package/dist/components/layout/Navbar.vue2.js +5 -4
  132. package/dist/components/layout/Sidebar.vue.js +2 -2
  133. package/dist/components/layout/Sidebar.vue2.js +1 -1
  134. package/dist/components/mermaid/MermaidChart.vue.js +2 -2
  135. package/dist/components/mermaid/MermaidChart.vue2.js +17 -17
  136. package/dist/components/overlay/Dialog.vue.d.ts +1 -0
  137. package/dist/components/overlay/Dialog.vue.js +1 -1
  138. package/dist/components/overlay/Dialog.vue2.js +9 -9
  139. package/dist/components/overlay/Drawer.vue.d.ts +1 -0
  140. package/dist/components/overlay/Drawer.vue.js +2 -2
  141. package/dist/components/overlay/Drawer.vue2.js +35 -29
  142. package/dist/components/overlay/Modal.vue.d.ts +1 -0
  143. package/dist/components/overlay/Modal.vue.js +1 -1
  144. package/dist/components/overlay/Modal.vue2.js +34 -28
  145. package/dist/components/overlay/SidePanel.vue.d.ts +1 -0
  146. package/dist/components/overlay/SidePanel.vue.js +1 -1
  147. package/dist/components/overlay/SidePanel.vue2.js +6 -6
  148. package/dist/components/split/SplitPane.vue.js +2 -2
  149. package/dist/components/split/SplitPane.vue2.js +11 -9
  150. package/dist/components/table/ColumnHeaderMenu.vue.d.ts +2 -0
  151. package/dist/components/table/ColumnHeaderMenu.vue.js +1 -1
  152. package/dist/components/table/ColumnHeaderMenu.vue2.js +42 -36
  153. package/dist/components/table/DataTable.vue.d.ts +12 -5
  154. package/dist/components/table/DataTable.vue.js +4 -4
  155. package/dist/components/table/DataTable.vue2.js +535 -477
  156. package/dist/components/table/DetailSheet.vue.js +2 -2
  157. package/dist/components/table/DetailSheet.vue2.js +45 -40
  158. package/dist/components/table/FieldCell.vue.d.ts +2 -1
  159. package/dist/components/table/FieldCell.vue.js +1 -1
  160. package/dist/components/table/FieldCell.vue2.js +57 -48
  161. package/dist/components/table/FieldTypePicker.vue.d.ts +1 -0
  162. package/dist/components/table/FieldTypePicker.vue.js +4 -4
  163. package/dist/components/table/FieldTypePicker.vue2.js +1 -1
  164. package/dist/components/table/MobileListView.vue.d.ts +26 -3
  165. package/dist/components/table/MobileListView.vue.js +2 -2
  166. package/dist/components/table/MobileListView.vue2.js +65 -49
  167. package/dist/components/table/TableColumnManager.vue.js +1 -1
  168. package/dist/components/table/TableColumnManager.vue2.js +29 -28
  169. package/dist/components/table/TableDataRow.vue.d.ts +2 -0
  170. package/dist/components/table/TableDataRow.vue.js +4 -4
  171. package/dist/components/table/TableDataRow.vue2.js +70 -58
  172. package/dist/components/table/TableFilterPanel.vue.js +2 -2
  173. package/dist/components/table/TableFilterPanel.vue2.js +3 -0
  174. package/dist/components/table/TableGroupRow.vue.d.ts +2 -0
  175. package/dist/components/table/TableGroupRow.vue.js +2 -2
  176. package/dist/components/table/TableGroupRow.vue2.js +35 -30
  177. package/dist/components/table/TableHeaderRow.vue.js +3 -3
  178. package/dist/components/table/TableHeaderRow.vue2.js +63 -46
  179. package/dist/components/table/TableToolbar.vue.js +1 -1
  180. package/dist/components/table/TableToolbar.vue2.js +2 -2
  181. package/dist/components/tabs/TabPanel.vue.js +4 -4
  182. package/dist/components/tabs/TabPanel.vue2.js +1 -1
  183. package/dist/components/tabs/Tabs.vue.js +2 -2
  184. package/dist/components/tabs/Tabs.vue2.js +2 -2
  185. package/dist/components/timeline/GanttRow.vue.d.ts +2 -0
  186. package/dist/components/timeline/GanttRow.vue.js +2 -2
  187. package/dist/components/timeline/GanttRow.vue2.js +68 -52
  188. package/dist/components/timeline/GanttTimeline.vue.d.ts +6 -0
  189. package/dist/components/timeline/GanttTimeline.vue.js +2 -2
  190. package/dist/components/timeline/GanttTimeline.vue2.js +24 -24
  191. package/dist/composables/useKeyboardNavigation.d.ts +1 -1
  192. package/dist/composables/useRowDrag.d.ts +6 -4
  193. package/dist/composables/useRowDrag.js +24 -24
  194. package/dist/composables/useSupabaseProvider.d.ts +8 -1
  195. package/dist/composables/useTableData.d.ts +5 -3
  196. package/dist/composables/useTableGroup.d.ts +2 -2
  197. package/dist/composables/useViewPersistence.d.ts +32 -3
  198. package/dist/composables/useVirtualList.js +60 -59
  199. package/dist/plugin.js +103 -102
  200. package/dist/style.css +1 -1
  201. package/dist/utils/echarts.d.ts +1 -0
  202. package/dist/utils/supabaseSchema.d.ts +12 -0
  203. package/package.json +1 -1
@@ -1,8 +1,8 @@
1
- import { defineComponent as z, ref as T, watch as L, computed as P, openBlock as i, createElementBlock as u, createElementVNode as a, toDisplayString as c, createVNode as m, unref as f, createTextVNode as _, createCommentVNode as b, withCtx as $, Fragment as C, renderList as x, normalizeClass as j } from "vue";
1
+ import { defineComponent as z, ref as T, watch as L, computed as P, openBlock as i, createElementBlock as u, createElementVNode as t, toDisplayString as c, createVNode as m, unref as f, createTextVNode as _, createCommentVNode as b, withCtx as $, Fragment as C, renderList as x, normalizeClass as j } from "vue";
2
2
  import { Plus as G, GripVertical as U, Trash2 as Y } from "lucide-vue-next";
3
3
  import { VueDraggable as A } from "vue-draggable-plus";
4
4
  import { isSelectField as h } from "../../types/index.js";
5
- const H = { class: "of-form-designer" }, J = { class: "of-form-designer__header" }, K = { class: "of-form-designer__title" }, M = { class: "of-form-designer__meta" }, Q = { class: "of-form-designer__inputs" }, R = ["value", "disabled", "onInput"], W = ["value", "disabled", "onChange"], X = ["value"], Z = { class: "of-form-designer__checkbox-label" }, ee = ["checked", "disabled", "onChange"], ne = { class: "of-form-designer__checkbox-label" }, le = ["checked", "disabled", "onChange"], te = ["onClick"], ae = {
5
+ const H = { class: "of-form-designer" }, J = { class: "of-form-designer__header" }, K = { class: "of-form-designer__title" }, M = { class: "of-form-designer__meta" }, Q = { class: "of-form-designer__inputs" }, R = ["value", "disabled", "onInput"], W = ["value", "disabled", "onChange"], X = ["value"], Z = { class: "of-form-designer__checkbox-label" }, ee = ["checked", "disabled", "onChange"], ae = { class: "of-form-designer__checkbox-label" }, ne = ["checked", "disabled", "onChange"], le = ["onClick"], te = {
6
6
  key: 1,
7
7
  class: "of-form-designer__options-wrap"
8
8
  }, oe = ["value", "disabled", "onChange"], de = /* @__PURE__ */ z({
@@ -14,7 +14,7 @@ const H = { class: "of-form-designer" }, J = { class: "of-form-designer__header"
14
14
  },
15
15
  emits: ["update:schema", "change"],
16
16
  setup(r, { emit: F }) {
17
- const S = [
17
+ const d = r, p = F, S = [
18
18
  { value: "text", label: "文本" },
19
19
  { value: "number", label: "数字" },
20
20
  { value: "select", label: "单选" },
@@ -30,7 +30,7 @@ const H = { class: "of-form-designer" }, J = { class: "of-form-designer__header"
30
30
  { value: "attachment", label: "附件" },
31
31
  { value: "relation", label: "关联" },
32
32
  { value: "formula", label: "公式" }
33
- ], d = r, p = F, o = T(v(d.schema));
33
+ ], o = T(v(d.schema));
34
34
  L(
35
35
  () => d.schema,
36
36
  (e) => {
@@ -43,13 +43,13 @@ const H = { class: "of-form-designer" }, J = { class: "of-form-designer__header"
43
43
  return {
44
44
  ...e,
45
45
  fields: e.fields.map(y),
46
- views: e.views.map((n) => ({ ...n }))
46
+ views: e.views.map((a) => ({ ...a }))
47
47
  };
48
48
  }
49
49
  function y(e) {
50
50
  return h(e) ? {
51
51
  ...e,
52
- options: e.options.map((n) => ({ ...n }))
52
+ options: e.options.map((a) => ({ ...a }))
53
53
  } : { ...e };
54
54
  }
55
55
  function s() {
@@ -64,48 +64,48 @@ const H = { class: "of-form-designer" }, J = { class: "of-form-designer__header"
64
64
  hidden: !1
65
65
  });
66
66
  }
67
- function k(e, n) {
67
+ function k(e, a) {
68
68
  switch (e) {
69
69
  case "text":
70
- return { ...n, type: e };
70
+ return { ...a, type: e };
71
71
  case "number":
72
- return { ...n, type: e };
72
+ return { ...a, type: e };
73
73
  case "select":
74
74
  case "multi_select":
75
75
  return {
76
- ...n,
76
+ ...a,
77
77
  type: e,
78
78
  options: D()
79
79
  };
80
80
  case "date":
81
81
  case "datetime":
82
- return { ...n, type: e };
82
+ return { ...a, type: e };
83
83
  case "checkbox":
84
- return { ...n, type: e };
84
+ return { ...a, type: e };
85
85
  case "url":
86
86
  case "email":
87
87
  case "phone":
88
- return { ...n, type: e };
88
+ return { ...a, type: e };
89
89
  case "rating":
90
- return { ...n, type: e };
90
+ return { ...a, type: e };
91
91
  case "user":
92
- return { ...n, type: e };
92
+ return { ...a, type: e };
93
93
  case "attachment":
94
- return { ...n, type: e };
94
+ return { ...a, type: e };
95
95
  case "relation":
96
- return { ...n, type: e };
96
+ return { ...a, type: e };
97
97
  case "formula":
98
- return { ...n, type: e, formula: "" };
98
+ return { ...a, type: e, formula: "" };
99
99
  case "currency":
100
- return { ...n, type: e };
100
+ return { ...a, type: e };
101
101
  case "richtext":
102
- return { ...n, type: e };
102
+ return { ...a, type: e };
103
103
  case "auto_number":
104
- return { ...n, type: e };
104
+ return { ...a, type: e };
105
105
  case "creator":
106
- return { ...n, type: e };
106
+ return { ...a, type: e };
107
107
  case "progress":
108
- return { ...n, type: e };
108
+ return { ...a, type: e };
109
109
  }
110
110
  }
111
111
  function D() {
@@ -118,42 +118,42 @@ const H = { class: "of-form-designer" }, J = { class: "of-form-designer__header"
118
118
  d.readonly || (o.value.fields.push(V()), s());
119
119
  }
120
120
  function E(e) {
121
- d.readonly || (o.value.fields = o.value.fields.filter((n) => n.id !== e), s());
121
+ d.readonly || (o.value.fields = o.value.fields.filter((a) => a.id !== e), s());
122
122
  }
123
- function q(e, n) {
124
- const t = o.value.fields.findIndex((g) => g.id === e.id);
125
- if (t === -1) return;
126
- const l = {
123
+ function q(e, a) {
124
+ const l = o.value.fields.findIndex((g) => g.id === e.id);
125
+ if (l === -1) return;
126
+ const n = {
127
127
  id: e.id,
128
128
  name: e.name,
129
129
  required: e.required,
130
130
  hidden: e.hidden,
131
131
  width: e.width
132
132
  };
133
- o.value.fields[t] = h(e) && (n === "select" || n === "multi_select") ? {
134
- ...l,
135
- type: n,
133
+ o.value.fields[l] = h(e) && (a === "select" || a === "multi_select") ? {
134
+ ...n,
135
+ type: a,
136
136
  options: e.options.map(
137
137
  (g) => ({ ...g })
138
138
  )
139
- } : k(n, l), s();
139
+ } : k(a, n), s();
140
140
  }
141
- function I(e, n) {
141
+ function I(e, a) {
142
142
  if (!h(e)) return;
143
- const t = n.split(",").map((l) => l.trim()).filter(Boolean);
144
- e.options = t.map((l) => ({ value: l, label: l })), s();
143
+ const l = a.split(",").map((n) => n.trim()).filter(Boolean);
144
+ e.options = l.map((n) => ({ value: n, label: n })), s();
145
145
  }
146
146
  function N(e) {
147
- return h(e) ? e.options.map((n) => n.label).join(", ") : "";
147
+ return h(e) ? e.options.map((a) => a.label).join(", ") : "";
148
148
  }
149
149
  function O() {
150
150
  s();
151
151
  }
152
- return (e, n) => (i(), u("div", H, [
153
- a("div", J, [
154
- a("div", null, [
155
- a("h3", K, c(r.title), 1),
156
- a("p", M, c(o.value.name) + " · " + c(w.value), 1)
152
+ return (e, a) => (i(), u("div", H, [
153
+ t("div", J, [
154
+ t("div", null, [
155
+ t("h3", K, c(r.title), 1),
156
+ t("p", M, c(o.value.name) + " · " + c(w.value), 1)
157
157
  ]),
158
158
  r.readonly ? b("", !0) : (i(), u("button", {
159
159
  key: 0,
@@ -161,86 +161,91 @@ const H = { class: "of-form-designer" }, J = { class: "of-form-designer__header"
161
161
  onClick: B
162
162
  }, [
163
163
  m(f(G), { size: 14 }),
164
- n[1] || (n[1] = _(" 添加字段 ", -1))
164
+ a[1] || (a[1] = _(" 添加字段 ", -1))
165
165
  ]))
166
166
  ]),
167
167
  m(f(A), {
168
168
  modelValue: o.value.fields,
169
- "onUpdate:modelValue": n[0] || (n[0] = (t) => o.value.fields = t),
169
+ "onUpdate:modelValue": a[0] || (a[0] = (l) => o.value.fields = l),
170
170
  handle: ".of-form-designer__drag",
171
171
  disabled: r.readonly,
172
172
  animation: 150,
173
173
  onEnd: O
174
174
  }, {
175
175
  default: $(() => [
176
- (i(!0), u(C, null, x(o.value.fields, (t) => (i(), u("div", {
177
- key: t.id,
176
+ (i(!0), u(C, null, x(o.value.fields, (l) => (i(), u("div", {
177
+ key: l.id,
178
178
  class: "of-form-designer__row"
179
179
  }, [
180
- a("span", {
180
+ t("span", {
181
181
  class: j(["of-form-designer__drag", { disabled: r.readonly }])
182
182
  }, [
183
183
  m(f(U), { size: 14 })
184
184
  ], 2),
185
- a("div", Q, [
186
- a("input", {
187
- value: t.name,
185
+ t("div", Q, [
186
+ t("input", {
187
+ value: l.name,
188
188
  class: "of-form-designer__input",
189
+ "aria-label": "字段名称",
189
190
  placeholder: "字段名称",
190
191
  disabled: r.readonly,
191
- onInput: (l) => {
192
- t.name = String(l.target.value), s();
192
+ onInput: (n) => {
193
+ l.name = String(n.target.value), s();
193
194
  }
194
195
  }, null, 40, R),
195
- a("select", {
196
+ t("select", {
196
197
  class: "of-form-designer__select",
197
- value: t.type,
198
+ "aria-label": "字段类型",
199
+ value: l.type,
198
200
  disabled: r.readonly,
199
- onChange: (l) => q(t, l.target.value)
201
+ onChange: (n) => q(l, n.target.value)
200
202
  }, [
201
- (i(), u(C, null, x(S, (l) => a("option", {
202
- key: l.value,
203
- value: l.value
204
- }, c(l.label), 9, X)), 64))
203
+ (i(), u(C, null, x(S, (n) => t("option", {
204
+ key: n.value,
205
+ value: n.value
206
+ }, c(n.label), 9, X)), 64))
205
207
  ], 40, W),
206
- a("label", Z, [
207
- a("input", {
208
+ t("span", Z, [
209
+ t("input", {
208
210
  type: "checkbox",
209
- checked: !!t.required,
211
+ "aria-label": "必填",
212
+ checked: !!l.required,
210
213
  disabled: r.readonly,
211
- onChange: (l) => {
212
- t.required = l.target.checked, s();
214
+ onChange: (n) => {
215
+ l.required = n.target.checked, s();
213
216
  }
214
217
  }, null, 40, ee),
215
- n[2] || (n[2] = _(" 必填 ", -1))
218
+ a[2] || (a[2] = _(" 必填 ", -1))
216
219
  ]),
217
- a("label", ne, [
218
- a("input", {
220
+ t("span", ae, [
221
+ t("input", {
219
222
  type: "checkbox",
220
- checked: !!t.hidden,
223
+ "aria-label": "隐藏",
224
+ checked: !!l.hidden,
221
225
  disabled: r.readonly,
222
- onChange: (l) => {
223
- t.hidden = l.target.checked, s();
226
+ onChange: (n) => {
227
+ l.hidden = n.target.checked, s();
224
228
  }
225
- }, null, 40, le),
226
- n[3] || (n[3] = _(" 隐藏 ", -1))
229
+ }, null, 40, ne),
230
+ a[3] || (a[3] = _(" 隐藏 ", -1))
227
231
  ])
228
232
  ]),
229
233
  r.readonly ? b("", !0) : (i(), u("button", {
230
234
  key: 0,
231
235
  class: "of-form-designer__remove-btn",
232
- onClick: (l) => E(t.id)
236
+ onClick: (n) => E(l.id)
233
237
  }, [
234
238
  m(f(Y), { size: 14 })
235
- ], 8, te)),
236
- t.type === "select" || t.type === "multi_select" ? (i(), u("div", ae, [
237
- n[4] || (n[4] = a("label", { class: "of-form-designer__options-label" }, "选项(逗号分隔)", -1)),
238
- a("input", {
239
- value: N(t),
239
+ ], 8, le)),
240
+ l.type === "select" || l.type === "multi_select" ? (i(), u("div", te, [
241
+ a[4] || (a[4] = t("span", { class: "of-form-designer__options-label" }, "选项(逗号分隔)", -1)),
242
+ t("input", {
243
+ value: N(l),
240
244
  class: "of-form-designer__input",
245
+ "aria-label": "选项列表",
241
246
  placeholder: "例如:待办, 进行中, 完成",
242
247
  disabled: r.readonly,
243
- onChange: (l) => I(t, String(l.target.value))
248
+ onChange: (n) => I(l, String(n.target.value))
244
249
  }, null, 40, oe)
245
250
  ])) : b("", !0)
246
251
  ]))), 128))
@@ -6,5 +6,5 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
6
6
  click: (item: GalleryItem) => any;
7
7
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
8
8
  onClick?: ((item: GalleryItem) => any) | undefined;
9
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
9
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLButtonElement>;
10
10
  export default _default;
@@ -1,7 +1,7 @@
1
1
  import o from "./GalleryCard.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-38d1e761"]]);
4
+ const e = /* @__PURE__ */ r(o, [["__scopeId", "data-v-e54afcc3"]]);
5
5
  export {
6
- m as default
6
+ e as default
7
7
  };
@@ -35,8 +35,9 @@ const V = ["src"], z = { class: "gallery-card__body" }, A = { class: "gallery-ca
35
35
  blocked: "var(--of-color-warning)",
36
36
  done: "var(--of-color-success)"
37
37
  }, h = i(() => b[a.item.status] ?? "var(--of-color-gray-400)");
38
- return (s, e) => (r(), l("div", {
38
+ return (s, e) => (r(), l("button", {
39
39
  class: "gallery-card",
40
+ type: "button",
40
41
  onClick: e[0] || (e[0] = (n) => m("click", o.item))
41
42
  }, [
42
43
  p.value ? (r(), l("img", {
@@ -18,6 +18,8 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
18
18
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
19
19
  onClick?: ((task: Task) => any) | undefined;
20
20
  }>, {
21
+ priorityColorMap: ColorMap;
22
+ statusColorMap: ColorMap;
21
23
  dragging: boolean;
22
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
24
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLButtonElement>;
23
25
  export default _default;
@@ -1,7 +1,7 @@
1
1
  import a from "./KanbanCard.vue2.js";
2
2
  /* empty css */
3
3
  import o from "../../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ o(a, [["__scopeId", "data-v-28da7aba"]]);
4
+ const p = /* @__PURE__ */ o(a, [["__scopeId", "data-v-560dac24"]]);
5
5
  export {
6
6
  p as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as A, computed as e, openBlock as r, createElementBlock as i, normalizeClass as T, createElementVNode as s, toDisplayString as l, createCommentVNode as f, normalizeStyle as m } from "vue";
1
+ import { defineComponent as A, computed as a, openBlock as r, createElementBlock as i, normalizeClass as T, createElementVNode as s, toDisplayString as l, createCommentVNode as f, normalizeStyle as m } from "vue";
2
2
  import { resolveBadge as p, mergeColorMap as g, DEFAULT_PRIORITY_MAP as _, DEFAULT_STATUS_MAP as S } from "../../composables/useBadge.js";
3
3
  const h = { class: "of-card-title" }, B = { class: "of-card-meta" }, E = { class: "of-card-id" }, L = {
4
4
  key: 0,
@@ -11,32 +11,33 @@ const h = { class: "of-card-title" }, B = { class: "of-card-meta" }, E = { class
11
11
  props: {
12
12
  task: {},
13
13
  dragging: { type: Boolean, default: !1 },
14
- priorityColorMap: {},
15
- statusColorMap: {}
14
+ priorityColorMap: { default: void 0 },
15
+ statusColorMap: { default: void 0 }
16
16
  },
17
17
  emits: ["click"],
18
- setup(a, { emit: k }) {
19
- const o = a, v = k, c = e(
18
+ setup(e, { emit: k }) {
19
+ const o = e, v = k, c = a(
20
20
  () => p(o.task.priority, g(_, o.priorityColorMap))
21
- ), d = e(
21
+ ), d = a(
22
22
  () => p(o.task.status, g(S, o.statusColorMap))
23
- ), y = e(() => c.value.style), b = e(() => d.value.style), C = e(() => d.value.label), D = e(() => c.value.label);
23
+ ), y = a(() => c.value.style), b = a(() => d.value.style), C = a(() => d.value.label), D = a(() => c.value.label);
24
24
  function M(n) {
25
25
  if (!n) return "";
26
26
  const t = new Date(n);
27
27
  return isNaN(t.getTime()) ? n : `${t.getMonth() + 1}/${t.getDate()}`;
28
28
  }
29
- const u = e(() => M(o.task.updatedAt ?? o.task.endDate));
30
- return (n, t) => (r(), i("div", {
31
- class: T(["of-kanban-card", { "of-kanban-card--dragging": a.dragging }]),
32
- onClick: t[0] || (t[0] = (U) => v("click", a.task))
29
+ const u = a(() => M(o.task.updatedAt ?? o.task.endDate));
30
+ return (n, t) => (r(), i("button", {
31
+ class: T(["of-kanban-card", { "of-kanban-card--dragging": e.dragging }]),
32
+ type: "button",
33
+ onClick: t[0] || (t[0] = (U) => v("click", e.task))
33
34
  }, [
34
- s("div", h, l(a.task.title), 1),
35
+ s("div", h, l(e.task.title), 1),
35
36
  s("div", B, [
36
- s("span", E, l(a.task.id), 1),
37
+ s("span", E, l(e.task.id), 1),
37
38
  u.value ? (r(), i("span", L, l(u.value), 1)) : f("", !0),
38
39
  t[1] || (t[1] = s("span", { class: "of-card-spacer" }, null, -1)),
39
- a.task.role ? (r(), i("span", N, l(a.task.role), 1)) : f("", !0)
40
+ e.task.role ? (r(), i("span", N, l(e.task.role), 1)) : f("", !0)
40
41
  ]),
41
42
  s("div", P, [
42
43
  s("span", {
@@ -20,6 +20,8 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
20
20
  "onAdd-card"?: ((columnId: string) => any) | undefined;
21
21
  "onUpdate:column"?: ((column: KanbanColumnData) => any) | undefined;
22
22
  }>, {
23
+ priorityColorMap: ColorMap;
24
+ statusColorMap: ColorMap;
23
25
  ghostClass: string;
24
26
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
25
27
  cardContainerRef: HTMLDivElement;
@@ -1,7 +1,7 @@
1
1
  import o from "./KanbanColumn.vue2.js";
2
2
  /* empty css */
3
3
  import a from "../../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ a(o, [["__scopeId", "data-v-b930d0ab"]]);
4
+ const f = /* @__PURE__ */ a(o, [["__scopeId", "data-v-f34d289a"]]);
5
5
  export {
6
- p as default
6
+ f as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as D, ref as k, watch as v, computed as C, openBlock as r, createElementBlock as d, createElementVNode as n, normalizeStyle as m, toDisplayString as y, createVNode as E, unref as c, createBlock as f, withCtx as H, Fragment as h, renderList as b } from "vue";
1
+ import { defineComponent as D, ref as g, watch as k, computed as C, openBlock as r, createElementBlock as d, createElementVNode as n, normalizeStyle as m, toDisplayString as y, createVNode as E, unref as c, createBlock as f, withCtx as H, Fragment as h, renderList as b } from "vue";
2
2
  import { Plus as L } from "lucide-vue-next";
3
3
  import { VueDraggable as R } from "vue-draggable-plus";
4
4
  import { useVirtualList as U } from "../../composables/useVirtualList.js";
@@ -9,24 +9,24 @@ const z = { class: "of-kanban-column" }, F = { class: "of-col-header" }, I = { c
9
9
  props: {
10
10
  column: {},
11
11
  ghostClass: { default: "of-ghost" },
12
- priorityColorMap: {},
13
- statusColorMap: {}
12
+ priorityColorMap: { default: void 0 },
13
+ statusColorMap: { default: void 0 }
14
14
  },
15
15
  emits: ["add-card", "card-click", "update:column"],
16
16
  setup(i, { emit: x }) {
17
- const a = i, u = x, l = k([...a.column.tasks]);
18
- v(
17
+ const a = i, u = x, l = g([...a.column.tasks]);
18
+ k(
19
19
  () => a.column.tasks,
20
20
  (s) => {
21
21
  s.length === l.value.length && s.every((o, e) => {
22
- var g;
23
- return o.id === ((g = l.value[e]) == null ? void 0 : g.id);
22
+ var v;
23
+ return o.id === ((v = l.value[e]) == null ? void 0 : v.id);
24
24
  }) || (l.value = [...s]);
25
25
  }
26
- ), v(l, (s) => {
26
+ ), k(l, (s) => {
27
27
  u("update:column", { ...a.column, tasks: s });
28
28
  });
29
- const S = C(() => l.value.length > 50), p = k(null), {
29
+ const S = C(() => l.value.length > 50), p = g(null), {
30
30
  visibleItems: T,
31
31
  totalHeight: M,
32
32
  offsetY: A
@@ -1,7 +1,7 @@
1
1
  import o from "./QuickAddRow.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
- const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-5ebea11d"]]);
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-47c0eb81"]]);
5
5
  export {
6
- e as default
6
+ p as default
7
7
  };
@@ -1,39 +1,40 @@
1
- import { defineComponent as v, ref as a, openBlock as c, createElementBlock as i, createVNode as h, unref as y, createElementVNode as _, toDisplayString as x, withDirectives as q, vModelText as w, nextTick as E } from "vue";
2
- import { Plus as B } from "lucide-vue-next";
3
- const V = { class: "of-quick-add" }, b = { class: "of-quick-add-placeholder" }, g = ["placeholder"], C = /* @__PURE__ */ v({
1
+ import { defineComponent as v, ref as o, openBlock as c, createElementBlock as i, createVNode as h, unref as y, createElementVNode as _, toDisplayString as x, withDirectives as q, vModelText as w, nextTick as E } from "vue";
2
+ import { Plus as b } from "lucide-vue-next";
3
+ const B = { class: "of-quick-add" }, V = { class: "of-quick-add-placeholder" }, g = ["placeholder"], C = /* @__PURE__ */ v({
4
4
  __name: "QuickAddRow",
5
5
  props: {
6
6
  placeholder: { default: "快速创建任务,按 Enter 提交" }
7
7
  },
8
8
  emits: ["submit", "cancel"],
9
9
  setup(u, { emit: r }) {
10
- const s = r, n = a(!1), e = a(""), d = a(null);
10
+ const s = r, a = o(!1), e = o(""), d = o(null);
11
11
  async function f() {
12
12
  var t;
13
- n.value = !0, await E(), (t = d.value) == null || t.focus();
13
+ a.value = !0, await E(), (t = d.value) == null || t.focus();
14
14
  }
15
- function o() {
16
- n.value = !1, e.value = "";
15
+ function n() {
16
+ a.value = !1, e.value = "";
17
17
  }
18
18
  function p(t) {
19
19
  if (t.key === "Enter") {
20
20
  const l = e.value.trim();
21
- l && (s("submit", l), e.value = "", o());
22
- } else t.key === "Escape" && (s("cancel"), o());
21
+ l && (s("submit", l), e.value = "", n());
22
+ } else t.key === "Escape" && (s("cancel"), n());
23
23
  }
24
24
  function m() {
25
25
  setTimeout(() => {
26
- e.value.trim() || o();
26
+ e.value.trim() || n();
27
27
  }, 150);
28
28
  }
29
- return (t, l) => (c(), i("div", V, [
30
- n.value ? q((c(), i("input", {
29
+ return (t, l) => (c(), i("div", B, [
30
+ a.value ? q((c(), i("input", {
31
31
  key: 1,
32
32
  ref_key: "inputRef",
33
33
  ref: d,
34
34
  "onUpdate:modelValue": l[0] || (l[0] = (k) => e.value = k),
35
35
  type: "text",
36
36
  class: "of-quick-add-input",
37
+ "aria-label": "快速创建任务",
37
38
  placeholder: u.placeholder,
38
39
  onKeydown: p,
39
40
  onBlur: m
@@ -44,11 +45,11 @@ const V = { class: "of-quick-add" }, b = { class: "of-quick-add-placeholder" },
44
45
  class: "of-quick-add-trigger",
45
46
  onClick: f
46
47
  }, [
47
- h(y(B), {
48
+ h(y(b), {
48
49
  size: 14,
49
50
  class: "of-quick-add-icon"
50
51
  }),
51
- _("span", b, x(u.placeholder), 1)
52
+ _("span", V, x(u.placeholder), 1)
52
53
  ]))
53
54
  ]));
54
55
  }
@@ -1,7 +1,7 @@
1
1
  import o from "./Navbar.vue2.js";
2
2
  /* empty css */
3
- import r from "../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-7187692f"]]);
3
+ import a from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const p = /* @__PURE__ */ a(o, [["__scopeId", "data-v-ed7a40bd"]]);
5
5
  export {
6
- m as default
6
+ p as default
7
7
  };
@@ -12,17 +12,17 @@ const z = { class: "of-navbar__left" }, B = { class: "of-navbar__center" }, U =
12
12
  },
13
13
  emits: ["search", "notify-click", "avatar-click"],
14
14
  setup(t, { emit: v }) {
15
- const e = C("density"), _ = l(() => (e == null ? void 0 : e.value) ?? "comfortable"), c = t, n = v, h = l(
15
+ const c = t, e = v, n = C("density"), _ = l(() => (n == null ? void 0 : n.value) ?? "comfortable"), h = l(
16
16
  () => c.username ? c.username.charAt(0).toUpperCase() : "U"
17
17
  );
18
18
  function m(o) {
19
- n("search", o.target.value);
19
+ e("search", o.target.value);
20
20
  }
21
21
  function b() {
22
- n("notify-click");
22
+ e("notify-click");
23
23
  }
24
24
  function y() {
25
- n("avatar-click");
25
+ e("avatar-click");
26
26
  }
27
27
  return (o, s) => (r(), i("nav", {
28
28
  class: k(["of-navbar", { "of-navbar--compact": _.value === "compact" }])
@@ -41,6 +41,7 @@ const z = { class: "of-navbar__left" }, B = { class: "of-navbar__center" }, U =
41
41
  a("input", {
42
42
  class: "of-navbar__search-input",
43
43
  type: "text",
44
+ "aria-label": "搜索",
44
45
  placeholder: t.searchPlaceholder,
45
46
  onInput: m
46
47
  }, null, 40, V)
@@ -1,7 +1,7 @@
1
1
  import o from "./Sidebar.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../_virtual/_plugin-vue_export-helper.js";
4
- const e = /* @__PURE__ */ r(o, [["__scopeId", "data-v-9dd6ae54"]]);
4
+ const f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-9ea7f9dc"]]);
5
5
  export {
6
- e as default
6
+ f as default
7
7
  };
@@ -23,7 +23,7 @@ const N = {
23
23
  },
24
24
  emits: ["item-click"],
25
25
  setup(g, { emit: y }) {
26
- const l = E("density"), C = S(() => (l == null ? void 0 : l.value) ?? "comfortable"), v = y, i = B(/* @__PURE__ */ new Set());
26
+ const v = y, l = E("density"), C = S(() => (l == null ? void 0 : l.value) ?? "comfortable"), i = B(/* @__PURE__ */ new Set());
27
27
  function $(e) {
28
28
  i.value.has(e.id) ? i.value.delete(e.id) : i.value.add(e.id);
29
29
  }
@@ -1,7 +1,7 @@
1
1
  import o from "./MermaidChart.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-2947d038"]]);
4
+ const c = /* @__PURE__ */ r(o, [["__scopeId", "data-v-cc130f1a"]]);
5
5
  export {
6
- p as default
6
+ c as default
7
7
  };