@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
@@ -9,18 +9,17 @@ const I = ["onClick"], V = { class: "of-view-tab__label" }, D = /* @__PURE__ */
9
9
  },
10
10
  emits: ["update:modelValue"],
11
11
  setup(a, { emit: l }) {
12
- const s = {
12
+ const s = l, c = {
13
13
  "table-2": w,
14
14
  kanban: h,
15
15
  "layout-grid": C,
16
16
  "gantt-chart": y
17
17
  };
18
- function c(e) {
19
- return s[e];
18
+ function i(e) {
19
+ return c[e];
20
20
  }
21
- const i = l;
22
21
  function r(e) {
23
- i("update:modelValue", e);
22
+ s("update:modelValue", e);
24
23
  }
25
24
  return (e, g) => (o(), n("div", u({ class: "of-view-tab" }, e.$attrs), [
26
25
  (o(!0), n(_, null, d(a.items, (t) => (o(), n("button", {
@@ -28,7 +27,7 @@ const I = ["onClick"], V = { class: "of-view-tab__label" }, D = /* @__PURE__ */
28
27
  class: b(["of-view-tab__item", { "of-view-tab__item--active": a.modelValue === t.key }]),
29
28
  onClick: (B) => r(t.key)
30
29
  }, [
31
- (o(), f(p(c(t.icon)), {
30
+ (o(), f(p(i(t.icon)), {
32
31
  class: "of-view-tab__icon",
33
32
  size: 14
34
33
  })),
@@ -1,7 +1,7 @@
1
1
  import o from "./Breadcrumb.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-1a7571e0"]]);
4
+ const d = /* @__PURE__ */ r(o, [["__scopeId", "data-v-bd4d4440"]]);
5
5
  export {
6
- e as default
6
+ d as default
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./BreadcrumbItem.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../_virtual/_plugin-vue_export-helper.js";
4
- const a = /* @__PURE__ */ r(o, [["__scopeId", "data-v-cfd104cd"]]);
4
+ const e = /* @__PURE__ */ r(o, [["__scopeId", "data-v-03aeb53d"]]);
5
5
  export {
6
- a as default
6
+ e as default
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./PropPanel.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-7cd73233"]]);
3
+ import a from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ a(o, [["__scopeId", "data-v-5bca647a"]]);
5
5
  export {
6
6
  m as default
7
7
  };
@@ -1,51 +1,55 @@
1
- import { defineComponent as d, ref as v, openBlock as o, createElementBlock as r, createElementVNode as t, normalizeClass as n, toDisplayString as _, createBlock as p, unref as f, createCommentVNode as c, withDirectives as h, Fragment as m, renderList as k, renderSlot as y, vShow as b } from "vue";
2
- import { ChevronDownIcon as C } from "lucide-vue-next";
3
- import g from "./PropRow.vue.js";
4
- const B = { class: "prop-panel" }, w = { class: "prop-panel__title" }, x = { class: "prop-panel__body" }, D = {
1
+ import { defineComponent as d, ref as v, openBlock as o, createElementBlock as t, createBlock as r, resolveDynamicComponent as f, normalizeClass as s, withCtx as _, createElementVNode as p, toDisplayString as m, unref as h, createCommentVNode as c, withDirectives as y, Fragment as b, renderList as k, renderSlot as C, vShow as g } from "vue";
2
+ import { ChevronDownIcon as w } from "lucide-vue-next";
3
+ import B from "./PropRow.vue.js";
4
+ const x = { class: "prop-panel" }, D = { class: "prop-panel__title" }, P = { class: "prop-panel__body" }, S = {
5
5
  key: 0,
6
6
  class: "prop-panel__extra"
7
- }, N = /* @__PURE__ */ d({
7
+ }, $ = /* @__PURE__ */ d({
8
8
  __name: "PropPanel",
9
9
  props: {
10
10
  items: {},
11
11
  title: { default: "属性" },
12
12
  collapsible: { type: Boolean, default: !1 }
13
13
  },
14
- setup(l) {
15
- const i = l, a = v(!1);
14
+ setup(e) {
15
+ const i = e, a = v(!1);
16
16
  function u() {
17
17
  i.collapsible && (a.value = !a.value);
18
18
  }
19
- return (s, P) => (o(), r("div", B, [
20
- t("div", {
21
- class: n(["prop-panel__header", { "prop-panel__header--collapsible": l.collapsible }]),
19
+ return (n, z) => (o(), t("div", x, [
20
+ (o(), r(f(e.collapsible ? "button" : "div"), {
21
+ class: s(["prop-panel__header", { "prop-panel__header--collapsible": e.collapsible }]),
22
+ type: e.collapsible ? "button" : void 0,
22
23
  onClick: u
23
- }, [
24
- t("span", w, _(l.title), 1),
25
- l.collapsible ? (o(), p(f(C), {
26
- key: 0,
27
- class: n(["prop-panel__chevron", { "prop-panel__chevron--up": !a.value }]),
28
- size: 14
29
- }, null, 8, ["class"])) : c("", !0)
30
- ], 2),
31
- h(t("div", x, [
32
- (o(!0), r(m, null, k(l.items, (e) => (o(), p(g, {
33
- key: e.key,
34
- "prop-key": e.key,
35
- value: e.value,
36
- "value-color": e.valueColor,
37
- "value-bg": e.valueBg,
38
- "dot-color": e.dotColor
24
+ }, {
25
+ default: _(() => [
26
+ p("span", D, m(e.title), 1),
27
+ e.collapsible ? (o(), r(h(w), {
28
+ key: 0,
29
+ class: s(["prop-panel__chevron", { "prop-panel__chevron--up": !a.value }]),
30
+ size: 14
31
+ }, null, 8, ["class"])) : c("", !0)
32
+ ]),
33
+ _: 1
34
+ }, 8, ["class", "type"])),
35
+ y(p("div", P, [
36
+ (o(!0), t(b, null, k(e.items, (l) => (o(), r(B, {
37
+ key: l.key,
38
+ "prop-key": l.key,
39
+ value: l.value,
40
+ "value-color": l.valueColor,
41
+ "value-bg": l.valueBg,
42
+ "dot-color": l.dotColor
39
43
  }, null, 8, ["prop-key", "value", "value-color", "value-bg", "dot-color"]))), 128)),
40
- s.$slots.extra ? (o(), r("div", D, [
41
- y(s.$slots, "extra", {}, void 0, !0)
44
+ n.$slots.extra ? (o(), t("div", S, [
45
+ C(n.$slots, "extra", {}, void 0, !0)
42
46
  ])) : c("", !0)
43
47
  ], 512), [
44
- [b, !a.value]
48
+ [g, !a.value]
45
49
  ])
46
50
  ]));
47
51
  }
48
52
  });
49
53
  export {
50
- N as default
54
+ $ as default
51
55
  };
@@ -40,5 +40,11 @@ type __VLS_Props = {
40
40
  };
41
41
  declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
42
42
  type: "status" | "priority" | "badge" | "date" | "text";
43
+ dotColor: string;
44
+ priorityColorMap: ColorMap;
45
+ statusColorMap: ColorMap;
46
+ customColorMap: ColorMap;
47
+ valueColor: string;
48
+ valueBg: string;
43
49
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
44
50
  export default _default;
@@ -1,7 +1,7 @@
1
1
  import o from "./PropRow.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../_virtual/_plugin-vue_export-helper.js";
4
- const a = /* @__PURE__ */ r(o, [["__scopeId", "data-v-bb8aff62"]]);
4
+ const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-1a3d71ed"]]);
5
5
  export {
6
- a as default
6
+ m as default
7
7
  };
@@ -1,46 +1,46 @@
1
- import { defineComponent as C, computed as t, openBlock as a, createElementBlock as l, createElementVNode as v, toDisplayString as p, normalizeStyle as d, createCommentVNode as f, createTextVNode as g } from "vue";
2
- import { resolveBadge as u, mergeColorMap as i, DEFAULT_STATUS_MAP as M, DEFAULT_PRIORITY_MAP as b } from "../../composables/useBadge.js";
1
+ import { defineComponent as m, computed as t, openBlock as r, createElementBlock as l, createElementVNode as c, toDisplayString as s, normalizeStyle as v, createCommentVNode as C, createTextVNode as g } from "vue";
2
+ import { resolveBadge as p, mergeColorMap as i, DEFAULT_STATUS_MAP as M, DEFAULT_PRIORITY_MAP as b } from "../../composables/useBadge.js";
3
3
  const k = { class: "prop-row" }, w = { class: "prop-row__key" }, x = { class: "prop-row__value-area" }, T = {
4
4
  key: 0,
5
5
  class: "prop-row__plain-text"
6
- }, P = /* @__PURE__ */ C({
6
+ }, P = /* @__PURE__ */ m({
7
7
  __name: "PropRow",
8
8
  props: {
9
9
  propKey: {},
10
10
  value: {},
11
11
  type: { default: "text" },
12
- statusColorMap: {},
13
- priorityColorMap: {},
14
- customColorMap: {},
15
- valueColor: {},
16
- valueBg: {},
17
- dotColor: {}
12
+ statusColorMap: { default: void 0 },
13
+ priorityColorMap: { default: void 0 },
14
+ customColorMap: { default: void 0 },
15
+ valueColor: { default: void 0 },
16
+ valueBg: { default: void 0 },
17
+ dotColor: { default: void 0 }
18
18
  },
19
- setup(s) {
20
- const e = s, n = t(() => !e.type || e.type === "date" || e.type === "text"), r = t(() => n.value ? null : e.type === "status" ? u(e.value, i(M, e.statusColorMap)) : e.type === "priority" ? u(e.value, i(b, e.priorityColorMap)) : e.type === "badge" && e.customColorMap ? u(e.value, e.customColorMap) : null), y = t(() => r.value ? r.value.style : {
19
+ setup(u) {
20
+ const e = u, n = t(() => !e.type || e.type === "date" || e.type === "text"), a = t(() => n.value ? null : e.type === "status" ? p(e.value, i(M, e.statusColorMap)) : e.type === "priority" ? p(e.value, i(b, e.priorityColorMap)) : e.type === "badge" && e.customColorMap ? p(e.value, e.customColorMap) : null), y = t(() => a.value ? a.value.style : {
21
21
  color: e.valueColor ?? "var(--of-color-gray-700)",
22
22
  background: e.valueBg ?? "var(--of-color-gray-100)"
23
23
  }), _ = t(() => {
24
24
  var o;
25
- return ((o = r.value) == null ? void 0 : o.label) ?? e.value;
26
- }), c = t(() => {
25
+ return ((o = a.value) == null ? void 0 : o.label) ?? e.value;
26
+ }), d = t(() => {
27
27
  var o;
28
- return ((o = r.value) == null ? void 0 : o.dot) ?? e.dotColor;
29
- }), m = t(() => !!c.value);
30
- return (o, h) => (a(), l("div", k, [
31
- v("span", w, p(s.propKey), 1),
32
- v("div", x, [
33
- n.value ? (a(), l("span", T, p(s.value), 1)) : (a(), l("span", {
28
+ return ((o = a.value) == null ? void 0 : o.dot) ?? e.dotColor;
29
+ }), f = t(() => !!d.value);
30
+ return (o, h) => (r(), l("div", k, [
31
+ c("span", w, s(u.propKey), 1),
32
+ c("div", x, [
33
+ n.value ? (r(), l("span", T, s(u.value), 1)) : (r(), l("span", {
34
34
  key: 1,
35
35
  class: "prop-row__badge",
36
- style: d(y.value)
36
+ style: v(y.value)
37
37
  }, [
38
- m.value ? (a(), l("span", {
38
+ f.value ? (r(), l("span", {
39
39
  key: 0,
40
40
  class: "prop-row__dot",
41
- style: d({ backgroundColor: c.value })
42
- }, null, 4)) : f("", !0),
43
- g(" " + p(_.value), 1)
41
+ style: v({ backgroundColor: d.value })
42
+ }, null, 4)) : C("", !0),
43
+ g(" " + s(_.value), 1)
44
44
  ], 4))
45
45
  ])
46
46
  ]));
@@ -8,6 +8,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
8
8
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
9
9
  "onUpdate:content"?: ((value: string) => any) | undefined;
10
10
  }>, {
11
+ cite: string;
11
12
  editable: boolean;
12
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLQuoteElement>;
13
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
13
14
  export default _default;
@@ -1,7 +1,7 @@
1
1
  import o from "./BlockQuote.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-31b9dc83"]]);
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-cc957432"]]);
5
5
  export {
6
6
  p as default
7
7
  };
@@ -1,43 +1,57 @@
1
- import { defineComponent as k, ref as s, openBlock as o, createElementBlock as n, normalizeClass as b, withDirectives as v, withKeys as p, vModelText as _, Fragment as h, createElementVNode as x, toDisplayString as u, createCommentVNode as y } from "vue";
2
- const q = ["rows"], w = { class: "block-quote__text" }, B = {
1
+ import { defineComponent as h, ref as r, withDirectives as v, openBlock as o, createElementBlock as n, withKeys as q, vModelText as x, createElementVNode as f, toDisplayString as c, createCommentVNode as k } from "vue";
2
+ const w = ["rows"], p = { class: "block-quote__text" }, E = {
3
3
  key: 0,
4
4
  class: "block-quote__cite"
5
- }, C = /* @__PURE__ */ k({
5
+ }, B = {
6
+ key: 2,
7
+ class: "block-quote"
8
+ }, K = { class: "block-quote__text" }, V = {
9
+ key: 0,
10
+ class: "block-quote__cite"
11
+ }, C = /* @__PURE__ */ h({
6
12
  __name: "BlockQuote",
7
13
  props: {
8
14
  content: {},
9
- cite: {},
15
+ cite: { default: void 0 },
10
16
  editable: { type: Boolean, default: !1 }
11
17
  },
12
18
  emits: ["update:content"],
13
- setup(e, { emit: r }) {
14
- const a = e, d = r, l = s(!1), t = s("");
15
- function m() {
16
- a.editable && (t.value = a.content, l.value = !0);
19
+ setup(e, { emit: b }) {
20
+ const a = e, m = b, i = r(!1), t = r("");
21
+ function s() {
22
+ a.editable && (t.value = a.content, i.value = !0);
17
23
  }
18
- function c() {
19
- l.value = !1, d("update:content", t.value);
24
+ function u() {
25
+ i.value = !1, m("update:content", t.value);
20
26
  }
21
- return (E, i) => (o(), n("blockquote", {
22
- class: b(["block-quote", { "block-quote--editable": e.editable }]),
23
- onClick: m
24
- }, [
25
- l.value ? v((o(), n("textarea", {
26
- key: 0,
27
- "onUpdate:modelValue": i[0] || (i[0] = (f) => t.value = f),
28
- class: "block-quote__textarea",
29
- rows: Math.max(2, t.value.split(`
27
+ function y(l) {
28
+ a.editable && (l.key !== "Enter" && l.key !== " " || (l.preventDefault(), s()));
29
+ }
30
+ return (l, d) => i.value ? v((o(), n("textarea", {
31
+ key: 0,
32
+ "onUpdate:modelValue": d[0] || (d[0] = (_) => t.value = _),
33
+ class: "block-quote__textarea",
34
+ "aria-label": "引用内容编辑器",
35
+ rows: Math.max(2, t.value.split(`
30
36
  `).length),
31
- autofocus: "",
32
- onBlur: c,
33
- onKeydown: p(c, ["escape"])
34
- }, null, 40, q)), [
35
- [_, t.value]
36
- ]) : (o(), n(h, { key: 1 }, [
37
- x("p", w, u(e.content), 1),
38
- e.cite ? (o(), n("footer", B, "— " + u(e.cite), 1)) : y("", !0)
39
- ], 64))
40
- ], 2));
37
+ autofocus: "",
38
+ onBlur: u,
39
+ onKeydown: q(u, ["escape"])
40
+ }, null, 40, w)), [
41
+ [x, t.value]
42
+ ]) : e.editable ? (o(), n("button", {
43
+ key: 1,
44
+ type: "button",
45
+ class: "block-quote block-quote--editable",
46
+ onClick: s,
47
+ onKeydown: y
48
+ }, [
49
+ f("p", p, c(e.content), 1),
50
+ e.cite ? (o(), n("footer", E, "— " + c(e.cite), 1)) : k("", !0)
51
+ ], 32)) : (o(), n("blockquote", B, [
52
+ f("p", K, c(e.content), 1),
53
+ e.cite ? (o(), n("footer", V, "— " + c(e.cite), 1)) : k("", !0)
54
+ ]));
41
55
  }
42
56
  });
43
57
  export {
@@ -6,9 +6,10 @@ declare function __VLS_template(): {
6
6
  attrs: Partial<{}>;
7
7
  slots: {
8
8
  default?(_: {}): any;
9
+ default?(_: {}): any;
9
10
  };
10
11
  refs: {};
11
- rootEl: HTMLDivElement;
12
+ rootEl: any;
12
13
  };
13
14
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
14
15
  declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
@@ -17,7 +18,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
17
18
  "onUpdate:content"?: ((value: string) => any) | undefined;
18
19
  }>, {
19
20
  editable: boolean;
20
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
21
+ content: string;
22
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
21
23
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
22
24
  export default _default;
23
25
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1,7 +1,7 @@
1
1
  import o from "./ContentBlock.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-0c62a5ac"]]);
4
+ const _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-4899d060"]]);
5
5
  export {
6
- m as default
6
+ _ as default
7
7
  };
@@ -1,49 +1,70 @@
1
- import { defineComponent as b, ref as d, computed as h, openBlock as t, createElementBlock as n, normalizeClass as _, withDirectives as y, withKeys as g, vModelText as w, renderSlot as x, Fragment as B, renderList as C, toDisplayString as p, createCommentVNode as E } from "vue";
2
- const V = ["rows"], D = {
1
+ import { defineComponent as w, ref as k, computed as B, withDirectives as E, openBlock as e, createElementBlock as t, withKeys as x, vModelText as C, renderSlot as _, Fragment as b, renderList as m, toDisplayString as s, createCommentVNode as y } from "vue";
2
+ const K = ["rows"], D = {
3
3
  key: 0,
4
4
  class: "content-block__placeholder"
5
- }, M = /* @__PURE__ */ b({
5
+ }, V = {
6
+ key: 2,
7
+ class: "content-block"
8
+ }, M = {
9
+ key: 0,
10
+ class: "content-block__placeholder"
11
+ }, $ = /* @__PURE__ */ w({
6
12
  __name: "ContentBlock",
7
13
  props: {
8
- content: {},
14
+ content: { default: "" },
9
15
  editable: { type: Boolean, default: !1 }
10
16
  },
11
17
  emits: ["update:content"],
12
- setup(l, { emit: f }) {
13
- const o = l, m = f, a = d(!1), e = d("");
14
- function k() {
15
- o.editable && (e.value = o.content ?? "", a.value = !0);
18
+ setup(i, { emit: h }) {
19
+ const o = i, v = h, c = k(!1), l = k("");
20
+ function d() {
21
+ o.editable && (l.value = o.content ?? "", c.value = !0);
16
22
  }
17
- function c() {
18
- a.value = !1, m("update:content", e.value);
23
+ function p() {
24
+ c.value = !1, v("update:content", l.value);
19
25
  }
20
- const i = h(() => o.content ? o.content.split(`
21
- `).filter((s) => s.trim().length > 0) : []);
22
- return (s, u) => (t(), n("div", {
23
- class: _(["content-block", { "content-block--editable": l.editable }]),
24
- onClick: k
25
- }, [
26
- a.value ? y((t(), n("textarea", {
27
- key: 0,
28
- "onUpdate:modelValue": u[0] || (u[0] = (r) => e.value = r),
29
- class: "content-block__textarea",
30
- rows: Math.max(3, e.value.split(`
26
+ const r = B(() => o.content ? o.content.split(`
27
+ `).filter((n) => n.trim().length > 0) : []);
28
+ function g(n) {
29
+ o.editable && (n.key !== "Enter" && n.key !== " " || (n.preventDefault(), d()));
30
+ }
31
+ return (n, f) => c.value ? E((e(), t("textarea", {
32
+ key: 0,
33
+ "onUpdate:modelValue": f[0] || (f[0] = (a) => l.value = a),
34
+ class: "content-block__textarea",
35
+ "aria-label": "内容编辑器",
36
+ rows: Math.max(3, l.value.split(`
31
37
  `).length),
32
- autofocus: "",
33
- onBlur: c,
34
- onKeydown: g(c, ["escape"])
35
- }, null, 40, V)), [
36
- [w, e.value]
37
- ]) : x(s.$slots, "default", { key: 1 }, () => [
38
- (t(!0), n(B, null, C(i.value, (r, v) => (t(), n("p", {
39
- key: v,
38
+ autofocus: "",
39
+ onBlur: p,
40
+ onKeydown: x(p, ["escape"])
41
+ }, null, 40, K)), [
42
+ [C, l.value]
43
+ ]) : i.editable ? (e(), t("button", {
44
+ key: 1,
45
+ type: "button",
46
+ class: "content-block content-block--editable",
47
+ onClick: d,
48
+ onKeydown: g
49
+ }, [
50
+ _(n.$slots, "default", {}, () => [
51
+ (e(!0), t(b, null, m(r.value, (a, u) => (e(), t("p", {
52
+ key: u,
53
+ class: "content-block__para"
54
+ }, s(a), 1))), 128)),
55
+ r.value.length === 0 ? (e(), t("span", D, s("点击编辑内容..."))) : y("", !0)
56
+ ], !0)
57
+ ], 32)) : (e(), t("div", V, [
58
+ _(n.$slots, "default", {}, () => [
59
+ (e(!0), t(b, null, m(r.value, (a, u) => (e(), t("p", {
60
+ key: u,
40
61
  class: "content-block__para"
41
- }, p(r), 1))), 128)),
42
- i.value.length === 0 ? (t(), n("span", D, p(l.editable ? "点击编辑内容..." : ""), 1)) : E("", !0)
62
+ }, s(a), 1))), 128)),
63
+ r.value.length === 0 ? (e(), t("span", M, s(""))) : y("", !0)
43
64
  ], !0)
44
- ], 2));
65
+ ]));
45
66
  }
46
67
  });
47
68
  export {
48
- M as default
69
+ $ as default
49
70
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./RichTextEditor.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
- const i = /* @__PURE__ */ t(o, [["__scopeId", "data-v-7d0c88f1"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-a112a005"]]);
5
5
  export {
6
- i as default
6
+ m as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as E, ref as d, watch as T, computed as B, openBlock as H, createElementBlock as L, normalizeStyle as M, normalizeClass as R, createElementVNode as o, createVNode as b, unref as S, withCtx as h, withDirectives as _, vModelText as k } from "vue";
1
+ import { defineComponent as E, ref as s, watch as T, computed as B, openBlock as H, createElementBlock as L, normalizeStyle as M, normalizeClass as R, createElementVNode as o, createVNode as b, unref as S, withCtx as h, withDirectives as _, vModelText as k } from "vue";
2
2
  import { QuillEditor as q } from "@vueup/vue-quill";
3
3
  import "@vueup/vue-quill/dist/vue-quill.snow.css";
4
4
  import z from "../overlay/Modal.vue.js";
@@ -13,7 +13,7 @@ const Q = { class: "of-rich-editor__toolbar-actions" }, $ = ["disabled"], D = ["
13
13
  },
14
14
  emits: ["update:modelValue", "change", "save"],
15
15
  setup(c, { emit: x }) {
16
- const f = c, m = x, y = N(), n = d(f.modelValue), a = d(!1), i = d(""), s = d(""), p = d(null), V = {
16
+ const f = c, m = x, y = N(), n = s(f.modelValue), a = s(!1), i = s(""), d = s(""), p = s(null), V = {
17
17
  toolbar: {
18
18
  container: [
19
19
  ["bold", "italic", "underline", "strike"],
@@ -40,8 +40,8 @@ const Q = { class: "of-rich-editor__toolbar-actions" }, $ = ["disabled"], D = ["
40
40
  var u, v;
41
41
  const t = (v = (u = p.value) == null ? void 0 : u.getQuill) == null ? void 0 : v.call(u);
42
42
  if (!t) return;
43
- const e = t.getSelection(!0), l = (s.value || "").trim();
44
- l && (i.value.trim() ? (t.insertText(e.index, i.value.trim(), "link", l), t.setSelection(e.index + i.value.trim().length, 0)) : t.format("link", l), a.value = !1, i.value = "", s.value = "");
43
+ const e = t.getSelection(!0), l = (d.value || "").trim();
44
+ l && (i.value.trim() ? (t.insertText(e.index, i.value.trim(), "link", l), t.setSelection(e.index + i.value.trim().length, 0)) : t.format("link", l), a.value = !1, i.value = "", d.value = "");
45
45
  }
46
46
  function U() {
47
47
  r.value && (a.value = !0);
@@ -96,29 +96,25 @@ const Q = { class: "of-rich-editor__toolbar-actions" }, $ = ["disabled"], D = ["
96
96
  ]),
97
97
  default: h(() => [
98
98
  o("div", I, [
99
- e[4] || (e[4] = o("label", {
100
- class: "of-rich-editor__label",
101
- for: "link-text"
102
- }, "链接文本", -1)),
99
+ e[4] || (e[4] = o("span", { class: "of-rich-editor__label" }, "链接文本", -1)),
103
100
  _(o("input", {
104
101
  id: "link-text",
105
102
  "onUpdate:modelValue": e[0] || (e[0] = (l) => i.value = l),
106
103
  class: "of-rich-editor__input",
104
+ "aria-label": "链接文本",
107
105
  placeholder: "请输入链接文本"
108
106
  }, null, 512), [
109
107
  [k, i.value]
110
108
  ]),
111
- e[5] || (e[5] = o("label", {
112
- class: "of-rich-editor__label",
113
- for: "link-url"
114
- }, "链接地址", -1)),
109
+ e[5] || (e[5] = o("span", { class: "of-rich-editor__label" }, "链接地址", -1)),
115
110
  _(o("input", {
116
111
  id: "link-url",
117
- "onUpdate:modelValue": e[1] || (e[1] = (l) => s.value = l),
112
+ "onUpdate:modelValue": e[1] || (e[1] = (l) => d.value = l),
118
113
  class: "of-rich-editor__input",
114
+ "aria-label": "链接地址",
119
115
  placeholder: "https://example.com"
120
116
  }, null, 512), [
121
- [k, s.value]
117
+ [k, d.value]
122
118
  ])
123
119
  ])
124
120
  ]),
@@ -1,7 +1,7 @@
1
1
  import t from "./FieldAttachment.vue2.js";
2
2
  /* empty css */
3
3
  import o from "../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-0ff65ea8"]]);
4
+ const e = /* @__PURE__ */ o(t, [["__scopeId", "data-v-416bbf0b"]]);
5
5
  export {
6
- m as default
6
+ e as default
7
7
  };