@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,7 +1,7 @@
1
1
  import o from "./RangeSlider.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../_virtual/_plugin-vue_export-helper.js";
4
- const f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-df75159c"]]);
4
+ const f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-77f7d546"]]);
5
5
  export {
6
6
  f as default
7
7
  };
@@ -1,8 +1,8 @@
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 = {
1
+ import { defineComponent as d, openBlock as i, createElementBlock as r, mergeProps as m, createElementVNode as t, toDisplayString as s, createCommentVNode as u } from "vue";
2
+ const c = ["value", "min", "max", "step"], p = {
3
3
  key: 0,
4
4
  class: "of-range-slider__description"
5
- }, g = /* @__PURE__ */ r({
5
+ }, g = /* @__PURE__ */ d({
6
6
  inheritAttrs: !1,
7
7
  __name: "RangeSlider",
8
8
  props: {
@@ -15,18 +15,25 @@ const u = { class: "of-range-slider__label" }, c = ["value", "min", "max", "step
15
15
  },
16
16
  emits: ["update:modelValue"],
17
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)
18
+ const l = `of-range-slider-${Math.random().toString(36).slice(2, 10)}`;
19
+ return (a, n) => (i(), r("div", m({ class: "of-range-slider" }, a.$attrs), [
20
+ t("label", {
21
+ class: "of-range-slider__label",
22
+ for: l
23
+ }, [
24
+ t("span", null, s(e.label), 1),
25
+ t("input", {
26
+ id: l,
27
+ value: e.modelValue,
28
+ type: "range",
29
+ min: e.min,
30
+ max: e.max,
31
+ step: e.step ?? 1,
32
+ class: "of-range-slider__input",
33
+ onInput: n[0] || (n[0] = (o) => a.$emit("update:modelValue", Number(o.target.value)))
34
+ }, null, 40, c)
35
+ ]),
36
+ e.description ? (i(), r("p", p, s(e.description), 1)) : u("", !0)
30
37
  ], 16));
31
38
  }
32
39
  });
@@ -18,7 +18,11 @@ declare function __VLS_template(): {
18
18
  };
19
19
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
20
20
  declare const __VLS_component: import('vue').DefineComponent<RefTagProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<RefTagProps> & Readonly<{}>, {
21
+ color: string;
21
22
  type: "spec" | "wiki" | "task" | string;
23
+ href: string;
24
+ icon: string | Component;
25
+ bg: string;
22
26
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
23
27
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
24
28
  export default _default;
@@ -1,7 +1,7 @@
1
1
  import o from "./RefTag.vue2.js";
2
2
  /* empty css */
3
- import a from "../../_virtual/_plugin-vue_export-helper.js";
4
- const f = /* @__PURE__ */ a(o, [["__scopeId", "data-v-69a5acde"]]);
3
+ import f from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ f(o, [["__scopeId", "data-v-fbd2cfa1"]]);
5
5
  export {
6
- f as default
6
+ m as default
7
7
  };
@@ -1,18 +1,18 @@
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";
1
+ import { defineComponent as d, computed as n, openBlock as c, createBlock as f, resolveDynamicComponent as s, mergeProps as g, withCtx as u, createCommentVNode as v, createElementVNode as m, renderSlot as p } from "vue";
2
2
  import { resolveIcon as h } from "../../utils/icon.js";
3
- const b = { class: "one-ref-tag__text" }, S = /* @__PURE__ */ g({
3
+ const b = { class: "one-ref-tag__text" }, S = /* @__PURE__ */ d({
4
4
  name: "RefTag",
5
5
  inheritAttrs: !1,
6
6
  __name: "RefTag",
7
7
  props: {
8
8
  type: { default: "spec" },
9
- icon: {},
10
- color: {},
11
- bg: {},
12
- href: {}
9
+ icon: { default: void 0 },
10
+ color: { default: void 0 },
11
+ bg: { default: void 0 },
12
+ href: { default: void 0 }
13
13
  },
14
14
  setup(e) {
15
- const a = {
15
+ const o = e, a = {
16
16
  spec: {
17
17
  icon: "file-text",
18
18
  color: "var(--of-color-primary-700)",
@@ -20,27 +20,27 @@ const b = { class: "one-ref-tag__text" }, S = /* @__PURE__ */ g({
20
20
  },
21
21
  wiki: { icon: "book-open", color: "var(--of-color-green-600)", bg: "var(--of-color-green-50)" },
22
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(() => {
23
+ }, t = n(() => a[o.type ?? ""] ?? a.spec), l = n(() => {
24
24
  const r = o.icon ?? t.value.icon;
25
25
  return h(r);
26
26
  }), i = n(() => ({
27
27
  "--one-ref-tag-color": o.color ?? t.value.color,
28
28
  "--one-ref-tag-bg": o.bg ?? t.value.bg
29
29
  }));
30
- return (r, y) => (l(), s(f(e.href ? "a" : "span"), m({
30
+ return (r, y) => (c(), f(s(e.href ? "a" : "span"), g({
31
31
  class: "one-ref-tag",
32
32
  style: i.value,
33
33
  href: e.href ?? void 0,
34
34
  target: e.href ? "_blank" : void 0,
35
35
  rel: e.href ? "noopener noreferrer" : void 0
36
36
  }, r.$attrs), {
37
- default: p(() => [
38
- c.value ? (l(), s(f(c.value), {
37
+ default: u(() => [
38
+ l.value ? (c(), f(s(l.value), {
39
39
  key: 0,
40
40
  class: "one-ref-tag__icon"
41
- })) : u("", !0),
42
- v("span", b, [
43
- d(r.$slots, "default", {}, void 0, !0)
41
+ })) : v("", !0),
42
+ m("span", b, [
43
+ p(r.$slots, "default", {}, void 0, !0)
44
44
  ])
45
45
  ]),
46
46
  _: 3
@@ -1,7 +1,7 @@
1
1
  import o from "./SearchHighlight.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-fb57f288"]]);
4
+ const i = /* @__PURE__ */ t(o, [["__scopeId", "data-v-e3a7db64"]]);
5
5
  export {
6
6
  i as default
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./SectionBlock.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-d2c09df0"]]);
4
+ const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-1f8a2c23"]]);
5
5
  export {
6
- m as default
6
+ f as default
7
7
  };
@@ -1,6 +1,6 @@
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({
1
+ import { defineComponent as T, computed as a, openBlock as l, createElementBlock as c, mergeProps as A, createElementVNode as t, withKeys as k, withModifiers as u, createBlock as L, resolveDynamicComponent as $, createCommentVNode as b, toDisplayString as y, normalizeStyle as z, renderSlot as f, normalizeClass as g } from "vue";
2
+ import { resolveIcon as D } from "../../utils/icon.js";
3
+ const K = ["onKeydown"], N = { class: "of-section-block__header-left" }, U = { class: "of-section-block__title" }, M = ["aria-expanded", "aria-label"], P = { class: "of-section-block__body" }, I = /* @__PURE__ */ T({
4
4
  name: "SectionBlock",
5
5
  inheritAttrs: !1,
6
6
  __name: "SectionBlock",
@@ -13,103 +13,109 @@ const D = { class: "of-section-block__header-left" }, N = { class: "of-section-b
13
13
  statusLabels: { default: void 0 }
14
14
  },
15
15
  emits: ["update:collapsed", "edit", "save"],
16
- setup(e, { emit: g }) {
17
- const o = e, c = g, m = {
16
+ setup(e, { emit: m }) {
17
+ const o = e, i = m, _ = {
18
18
  pending: { background: "var(--of-color-gray-100)", text: "var(--of-color-gray-400)" },
19
19
  updating: { background: "var(--of-color-primary-50)", text: "var(--of-color-primary-500)" },
20
20
  done: { background: "var(--of-color-success-light)", text: "var(--of-badge-green-text)" },
21
21
  editing: { background: "var(--of-color-primary-50)", text: "var(--of-color-primary-500)" }
22
- }, y = {
22
+ }, h = {
23
23
  pending: "待处理",
24
24
  updating: "更新中",
25
25
  done: "已完成",
26
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" ? {
27
+ }, r = a(() => o.status ? _[o.status] ?? null : null), C = a(() => {
28
+ var s;
29
+ return o.status ? ((s = o.statusLabels) == null ? void 0 : s[o.status]) ?? h[o.status] ?? o.status : null;
30
+ }), S = a(() => r.value ? {
31
+ backgroundColor: r.value.background,
32
+ color: r.value.text
33
+ } : {}), x = a(() => o.status === "editing" ? {
34
34
  borderColor: "var(--of-color-primary-500)",
35
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);
36
+ } : o.status === "done" ? { borderColor: "var(--of-color-success-light)" } : {}), d = a(() => o.status === "editing"), B = a(() => o.editable && o.status === "done"), p = a(() => D(o.icon));
37
+ function n() {
38
+ i("update:collapsed", !o.collapsed);
39
39
  }
40
- function x() {
41
- c("edit");
40
+ function w() {
41
+ i("edit");
42
42
  }
43
- function B() {
44
- c("save");
43
+ function E() {
44
+ i("save");
45
45
  }
46
- return (a, p) => (l(), n("div", T({
46
+ return (s, v) => (l(), c("div", A({
47
47
  class: ["of-section-block", {
48
48
  "of-section-block--collapsed": e.collapsed,
49
- "of-section-block--editing": r.value,
49
+ "of-section-block--editing": d.value,
50
50
  "of-section-block--done": e.status === "done"
51
51
  }],
52
- style: C.value
53
- }, a.$attrs), [
52
+ style: x.value
53
+ }, s.$attrs), [
54
54
  t("div", {
55
55
  class: "of-section-block__header",
56
- onClick: b
56
+ role: "button",
57
+ tabindex: "0",
58
+ onClick: n,
59
+ onKeydown: [
60
+ k(u(n, ["prevent"]), ["enter"]),
61
+ k(u(n, ["prevent"]), ["space"])
62
+ ]
57
63
  }, [
58
- t("div", D, [
59
- f.value ? (l(), A(L(f.value), {
64
+ t("div", N, [
65
+ p.value ? (l(), L($(p.value), {
60
66
  key: 0,
61
67
  class: "of-section-block__icon",
62
68
  size: 14,
63
69
  "aria-hidden": "true"
64
- })) : d("", !0),
65
- t("span", N, k(e.title), 1),
66
- e.status ? (l(), n("span", {
70
+ })) : b("", !0),
71
+ t("span", U, y(e.title), 1),
72
+ e.status ? (l(), c("span", {
67
73
  key: 1,
68
74
  class: "of-section-block__status-badge",
69
- style: w(h.value)
70
- }, k(_.value), 5)) : d("", !0)
75
+ style: z(S.value)
76
+ }, y(C.value), 5)) : b("", !0)
71
77
  ]),
72
78
  t("div", {
73
79
  class: "of-section-block__header-right",
74
- onClick: p[0] || (p[0] = $(() => {
80
+ onClick: v[0] || (v[0] = u(() => {
75
81
  }, ["stop"]))
76
82
  }, [
77
- u(a.$slots, "header-extra", {}, void 0, !0),
78
- r.value ? (l(), n("button", {
83
+ f(s.$slots, "header-extra", {}, void 0, !0),
84
+ d.value ? (l(), c("button", {
79
85
  key: 0,
80
86
  type: "button",
81
87
  class: "of-section-block__action-btn of-section-block__action-btn--save",
82
- onClick: B
83
- }, " 保存 ")) : S.value ? (l(), n("button", {
88
+ onClick: E
89
+ }, " 保存 ")) : B.value ? (l(), c("button", {
84
90
  key: 1,
85
91
  type: "button",
86
92
  class: "of-section-block__action-btn",
87
- onClick: x
88
- }, " 编辑 ")) : d("", !0),
93
+ onClick: w
94
+ }, " 编辑 ")) : b("", !0),
89
95
  t("button", {
90
96
  type: "button",
91
97
  class: "of-section-block__collapse-btn",
92
98
  "aria-expanded": !e.collapsed,
93
99
  "aria-label": e.collapsed ? "展开" : "折叠",
94
- onClick: b
100
+ onClick: n
95
101
  }, [
96
102
  t("span", {
97
- class: v(["of-section-block__collapse-icon", { "of-section-block__collapse-icon--collapsed": e.collapsed }]),
103
+ class: g(["of-section-block__collapse-icon", { "of-section-block__collapse-icon--collapsed": e.collapsed }]),
98
104
  "aria-hidden": "true"
99
- }, "▾", 2)
100
- ], 8, U)
105
+ }, " ", 2)
106
+ ], 8, M)
101
107
  ])
102
- ]),
108
+ ], 40, K),
103
109
  t("div", {
104
- class: v(["of-section-block__body-wrapper", { "of-section-block__body-wrapper--collapsed": e.collapsed }])
110
+ class: g(["of-section-block__body-wrapper", { "of-section-block__body-wrapper--collapsed": e.collapsed }])
105
111
  }, [
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)
112
+ t("div", P, [
113
+ d.value ? f(s.$slots, "editor", { key: 0 }, void 0, !0) : f(s.$slots, "default", { key: 1 }, void 0, !0)
108
114
  ])
109
115
  ], 2)
110
116
  ], 16));
111
117
  }
112
118
  });
113
119
  export {
114
- F as default
120
+ I as default
115
121
  };
@@ -24,7 +24,12 @@ declare const __VLS_component: import('vue').DefineComponent<SelectBadgeProps, {
24
24
  }, string, import('vue').PublicProps, Readonly<SelectBadgeProps> & Readonly<{
25
25
  onClick?: ((e: MouseEvent) => any) | undefined;
26
26
  }>, {
27
+ color: string;
28
+ bgColor: string;
29
+ dotColor: string;
27
30
  dot: boolean;
31
+ textColor: string;
32
+ borderColor: string;
28
33
  clickable: boolean;
29
34
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
30
35
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
@@ -1,7 +1,7 @@
1
- import o from "./SelectBadge.vue2.js";
1
+ import e from "./SelectBadge.vue2.js";
2
2
  /* empty css */
3
- import t from "../../_virtual/_plugin-vue_export-helper.js";
4
- const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-c58387e0"]]);
3
+ import o from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const c = /* @__PURE__ */ o(e, [["__scopeId", "data-v-ee15c3f4"]]);
5
5
  export {
6
6
  c as default
7
7
  };
@@ -1,20 +1,20 @@
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";
1
+ import { defineComponent as y, computed as t, openBlock as l, createElementBlock as c, mergeProps as m, normalizeStyle as k, createCommentVNode as g, createElementVNode as B, renderSlot as h, unref as s, createBlock as _, resolveDynamicComponent as w } from "vue";
2
2
  import { resolveIcon as S } from "../../utils/icon.js";
3
- const w = { class: "one-select-badge__text" }, N = /* @__PURE__ */ x({
3
+ const E = { class: "one-select-badge__text" }, M = /* @__PURE__ */ y({
4
4
  inheritAttrs: !1,
5
5
  __name: "SelectBadge",
6
6
  props: {
7
- color: {},
7
+ color: { default: void 0 },
8
8
  dot: { type: Boolean, default: !1 },
9
- dotColor: {},
10
- textColor: {},
11
- bgColor: {},
12
- borderColor: {},
9
+ dotColor: { default: void 0 },
10
+ textColor: { default: void 0 },
11
+ bgColor: { default: void 0 },
12
+ borderColor: { default: void 0 },
13
13
  clickable: { type: Boolean, default: !0 }
14
14
  },
15
15
  emits: ["click"],
16
- setup(t, { emit: s }) {
17
- const e = t, u = s, r = {
16
+ setup(a, { emit: u }) {
17
+ const e = a, f = u, o = {
18
18
  red: {
19
19
  text: "var(--of-badge-red-text)",
20
20
  bg: "var(--of-badge-red-bg)",
@@ -45,37 +45,45 @@ const w = { class: "one-select-badge__text" }, N = /* @__PURE__ */ x({
45
45
  bg: "var(--of-badge-gray-bg)",
46
46
  border: "var(--of-badge-gray-border)"
47
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(
48
+ }, n = t(() => e.textColor ? e.textColor : e.color && o[e.color] ? o[e.color].text : o.gray.text), v = t(() => e.bgColor ? e.bgColor : e.color && o[e.color] ? o[e.color].bg : o.gray.bg), i = t(() => e.borderColor ? e.borderColor : e.color && o[e.color] ? o[e.color].border : o.gray.border), C = t(
49
49
  () => ({
50
50
  "--one-sb-text": n.value,
51
- "--one-sb-bg": f.value,
52
- "--one-sb-border": v.value
51
+ "--one-sb-bg": v.value,
52
+ "--one-sb-border": i.value
53
53
  })
54
- ), C = o(() => ({
54
+ ), p = t(() => ({
55
55
  backgroundColor: e.dotColor || n.value
56
- })), b = S("chevron-down");
57
- function p(a) {
58
- u("click", a);
56
+ })), d = S("chevron-down");
57
+ function b(r) {
58
+ f("click", r);
59
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", {
60
+ function x(r) {
61
+ r.key !== "Enter" && r.key !== " " || (r.preventDefault(), b(new MouseEvent("click")));
62
+ }
63
+ return (r, D) => (l(), c("span", m({
64
+ class: ["one-select-badge", { "one-select-badge--clickable": a.clickable }],
65
+ style: C.value,
66
+ role: "button",
67
+ tabindex: "0"
68
+ }, r.$attrs, {
69
+ onClick: b,
70
+ onKeydown: x
71
+ }), [
72
+ a.dot ? (l(), c("span", {
65
73
  key: 0,
66
74
  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)
75
+ style: k(p.value)
76
+ }, null, 4)) : g("", !0),
77
+ B("span", E, [
78
+ h(r.$slots, "default", {}, void 0, !0)
71
79
  ]),
72
- t.clickable && g(b) ? (l(), _(h(g(b)), {
80
+ a.clickable && s(d) ? (l(), _(w(s(d)), {
73
81
  key: 1,
74
82
  class: "one-select-badge__arrow"
75
- })) : c("", !0)
83
+ })) : g("", !0)
76
84
  ], 16));
77
85
  }
78
86
  });
79
87
  export {
80
- N as default
88
+ M as default
81
89
  };
@@ -1,7 +1,7 @@
1
1
  import t from "./StatisticCard.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-62284568"]]);
4
+ const m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-241b23d2"]]);
5
5
  export {
6
6
  m as default
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import t from "./StatusIndicator.vue2.js";
2
2
  /* empty css */
3
3
  import o from "../../_virtual/_plugin-vue_export-helper.js";
4
- const d = /* @__PURE__ */ o(t, [["__scopeId", "data-v-9cd8c7d0"]]);
4
+ const m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-01dbeff6"]]);
5
5
  export {
6
- d as default
6
+ m as default
7
7
  };
@@ -9,7 +9,7 @@ const y = { class: "of-status-indicator__label" }, h = /* @__PURE__ */ d({
9
9
  color: { default: void 0 }
10
10
  },
11
11
  setup(t) {
12
- const n = {
12
+ const o = t, n = {
13
13
  in_progress: "var(--of-color-info)",
14
14
  executing: "var(--of-color-info)",
15
15
  analysing: "var(--of-color-info)",
@@ -25,7 +25,7 @@ const y = { class: "of-status-indicator__label" }, h = /* @__PURE__ */ d({
25
25
  }, i = {
26
26
  sm: "6px",
27
27
  md: "8px"
28
- }, o = t, u = e(() => o.status.trim().toLowerCase()), r = e(() => o.label ?? o.status), a = e(
28
+ }, u = e(() => o.status.trim().toLowerCase()), r = e(() => o.label ?? o.status), a = e(
29
29
  () => o.color ?? n[u.value] ?? "var(--of-color-gray-300)"
30
30
  ), s = e(() => i[o.size]);
31
31
  return (l, S) => (f(), v("span", p({
@@ -1,7 +1,7 @@
1
1
  import t from "./StatusSummary.vue2.js";
2
2
  /* empty css */
3
3
  import o from "../../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ o(t, [["__scopeId", "data-v-bd8acd89"]]);
4
+ const e = /* @__PURE__ */ o(t, [["__scopeId", "data-v-3ee84048"]]);
5
5
  export {
6
- p as default
6
+ e as default
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./Stepper.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-798f19a3"]]);
4
+ const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-1a3ce664"]]);
5
5
  export {
6
- e as default
6
+ a as default
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./Switch.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-d0f6c434"]]);
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-d3f7ed37"]]);
5
5
  export {
6
- m as default
6
+ p as default
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./ToolbarBtn.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-8452ab02"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-8c5c7168"]]);
5
5
  export {
6
- p as default
6
+ m as default
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./ViewModeGroup.vue2.js";
2
2
  /* empty css */
3
3
  import e from "../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ e(o, [["__scopeId", "data-v-cebe6331"]]);
4
+ const m = /* @__PURE__ */ e(o, [["__scopeId", "data-v-0862eed2"]]);
5
5
  export {
6
6
  m as default
7
7
  };
@@ -10,13 +10,13 @@ const g = ["title", "onClick"], h = /* @__PURE__ */ s({
10
10
  },
11
11
  emits: ["update:modelValue"],
12
12
  setup(n) {
13
- const a = [
13
+ const a = n, i = u(() => a.options ?? r), r = [
14
14
  { value: "side", icon: "panel-right", label: "侧边面板" },
15
15
  { value: "modal", icon: "maximize-2", label: "弹窗" },
16
16
  { value: "fullscreen", icon: "maximize", label: "全屏" }
17
- ], i = n, r = u(() => i.options ?? a);
17
+ ];
18
18
  return (t, k) => (o(), l("div", m({ class: "one-view-mode-group" }, t.$attrs), [
19
- (o(!0), l(c, null, d(r.value, (e) => (o(), l("button", {
19
+ (o(!0), l(c, null, d(i.value, (e) => (o(), l("button", {
20
20
  key: e.value,
21
21
  class: p(["one-view-mode-group__btn", { "one-view-mode-group__btn--active": n.modelValue === e.value }]),
22
22
  title: e.label,
@@ -1,7 +1,7 @@
1
1
  import o from "./ViewSwitcher.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-03bd60ba"]]);
4
+ const i = /* @__PURE__ */ t(o, [["__scopeId", "data-v-2a0e75d0"]]);
5
5
  export {
6
6
  i as default
7
7
  };
@@ -20,14 +20,14 @@ const g = { class: "one-view-switcher__tabs" }, B = ["onClick"], L = {
20
20
  },
21
21
  emits: ["update:modelValue", "filter", "group", "sort", "search"],
22
22
  setup(l) {
23
- const w = [
23
+ const w = l, h = f(() => w.tabs ?? m), m = [
24
24
  { value: "table", label: "表格", icon: "table-2" },
25
25
  { value: "kanban", label: "看板", icon: "columns-3" },
26
26
  { value: "timeline", label: "时间线", icon: "calendar" }
27
- ], h = l, m = f(() => h.tabs ?? w);
27
+ ];
28
28
  return (s, e) => (o(), n("div", p({ class: "one-view-switcher" }, s.$attrs), [
29
29
  r("div", g, [
30
- (o(!0), n(k, null, y(m.value, (t) => (o(), n("button", {
30
+ (o(!0), n(k, null, y(h.value, (t) => (o(), n("button", {
31
31
  key: t.value,
32
32
  class: $(["one-view-switcher__tab", { "one-view-switcher__tab--active": l.modelValue === t.value }]),
33
33
  onClick: (V) => s.$emit("update:modelValue", t.value)
@@ -1,7 +1,7 @@
1
1
  import o from "./ViewTab.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-9258406d"]]);
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-7743a555"]]);
5
5
  export {
6
6
  p as default
7
7
  };