@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.
- package/dist/components/ContextMenu/index.vue.js +2 -2
- package/dist/components/Dashboard/charts/BarChart.vue.js +2 -2
- package/dist/components/Dashboard/charts/PieChart.vue.js +2 -2
- package/dist/components/Dashboard/index.vue.d.ts +2 -1
- package/dist/components/Dashboard/index.vue.js +2 -2
- package/dist/components/ai/AiSender.vue.js +2 -2
- package/dist/components/ai/AiSender.vue2.js +8 -7
- package/dist/components/auxiliary/ColorPanel.vue.js +2 -2
- package/dist/components/auxiliary/ColorPanel.vue2.js +25 -23
- package/dist/components/auxiliary/FileUpload.vue.js +2 -2
- package/dist/components/auxiliary/FileUpload.vue2.js +1 -0
- package/dist/components/auxiliary/PersonPanel.vue.js +1 -1
- package/dist/components/auxiliary/PersonPanel.vue2.js +2 -1
- package/dist/components/base/Accordion.vue.js +1 -1
- package/dist/components/base/Avatar.vue.d.ts +3 -0
- package/dist/components/base/Avatar.vue.js +4 -4
- package/dist/components/base/Avatar.vue2.js +8 -8
- package/dist/components/base/Badge.vue.d.ts +2 -0
- package/dist/components/base/Badge.vue.js +2 -2
- package/dist/components/base/Badge.vue2.js +2 -2
- package/dist/components/base/ButtonGroup.vue.js +2 -2
- package/dist/components/base/ButtonGroup.vue2.js +2 -2
- package/dist/components/base/ChainItem.vue.d.ts +6 -0
- package/dist/components/base/ChainItem.vue.js +2 -2
- package/dist/components/base/ChainItem.vue2.js +17 -17
- package/dist/components/base/DropdownMenu.vue.js +2 -2
- package/dist/components/base/DropdownMenu.vue2.js +22 -20
- package/dist/components/base/EmptyState.vue.js +2 -2
- package/dist/components/base/EmptyState.vue2.js +2 -2
- package/dist/components/base/InfoCard.vue.d.ts +9 -0
- package/dist/components/base/InfoCard.vue.js +2 -2
- package/dist/components/base/InfoCard.vue2.js +65 -57
- package/dist/components/base/MonitorItem.vue.js +2 -2
- package/dist/components/base/MonitorItem.vue2.js +33 -25
- package/dist/components/base/PersonaCard.vue.d.ts +5 -0
- package/dist/components/base/PersonaCard.vue.js +3 -3
- package/dist/components/base/PersonaCard.vue2.js +56 -50
- package/dist/components/base/ProgressBar.vue.d.ts +1 -0
- package/dist/components/base/ProgressBar.vue.js +2 -2
- package/dist/components/base/ProgressBar.vue2.js +10 -10
- package/dist/components/base/RangeSlider.vue.d.ts +15 -0
- package/dist/components/base/RangeSlider.vue.js +1 -1
- package/dist/components/base/RangeSlider.vue2.js +22 -15
- package/dist/components/base/RefTag.vue.d.ts +4 -0
- package/dist/components/base/RefTag.vue.js +3 -3
- package/dist/components/base/RefTag.vue2.js +14 -14
- package/dist/components/base/SearchHighlight.vue.js +1 -1
- package/dist/components/base/SectionBlock.vue.js +2 -2
- package/dist/components/base/SectionBlock.vue2.js +54 -48
- package/dist/components/base/SelectBadge.vue.d.ts +5 -0
- package/dist/components/base/SelectBadge.vue.js +3 -3
- package/dist/components/base/SelectBadge.vue2.js +36 -28
- package/dist/components/base/StatisticCard.vue.js +1 -1
- package/dist/components/base/StatusIndicator.vue.js +2 -2
- package/dist/components/base/StatusIndicator.vue2.js +2 -2
- package/dist/components/base/StatusSummary.vue.js +2 -2
- package/dist/components/base/Stepper.vue.js +2 -2
- package/dist/components/base/Switch.vue.js +2 -2
- package/dist/components/base/ToolbarBtn.vue.js +2 -2
- package/dist/components/base/ViewModeGroup.vue.js +1 -1
- package/dist/components/base/ViewModeGroup.vue2.js +3 -3
- package/dist/components/base/ViewSwitcher.vue.js +1 -1
- package/dist/components/base/ViewSwitcher.vue2.js +3 -3
- package/dist/components/base/ViewTab.vue.js +1 -1
- package/dist/components/base/ViewTab.vue2.js +5 -6
- package/dist/components/breadcrumb/Breadcrumb.vue.js +2 -2
- package/dist/components/breadcrumb/BreadcrumbItem.vue.js +2 -2
- package/dist/components/detail/PropPanel.vue.js +2 -2
- package/dist/components/detail/PropPanel.vue2.js +34 -30
- package/dist/components/detail/PropRow.vue.d.ts +6 -0
- package/dist/components/detail/PropRow.vue.js +2 -2
- package/dist/components/detail/PropRow.vue2.js +24 -24
- package/dist/components/editor/BlockQuote.vue.d.ts +2 -1
- package/dist/components/editor/BlockQuote.vue.js +1 -1
- package/dist/components/editor/BlockQuote.vue2.js +43 -29
- package/dist/components/editor/ContentBlock.vue.d.ts +4 -2
- package/dist/components/editor/ContentBlock.vue.js +2 -2
- package/dist/components/editor/ContentBlock.vue2.js +54 -33
- package/dist/components/editor/RichTextEditor.vue.js +2 -2
- package/dist/components/editor/RichTextEditor.vue2.js +10 -14
- package/dist/components/field/FieldAttachment.vue.js +2 -2
- package/dist/components/field/FieldAttachment.vue2.js +30 -32
- package/dist/components/field/FieldAutoNumber.vue.js +2 -2
- package/dist/components/field/FieldCheckbox.vue.js +2 -2
- package/dist/components/field/FieldCheckbox.vue2.js +13 -11
- package/dist/components/field/FieldCreator.vue.js +2 -2
- package/dist/components/field/FieldCurrency.vue.js +2 -2
- package/dist/components/field/FieldCurrency.vue2.js +15 -14
- package/dist/components/field/FieldDate.vue.js +1 -1
- package/dist/components/field/FieldDate.vue2.js +14 -16
- package/dist/components/field/FieldDatetime.vue.js +1 -1
- package/dist/components/field/FieldDatetime.vue2.js +12 -11
- package/dist/components/field/FieldEmail.vue.js +2 -2
- package/dist/components/field/FieldEmail.vue2.js +14 -13
- package/dist/components/field/FieldMarkdownPreview.vue.js +2 -2
- package/dist/components/field/FieldMultiSelect.vue.d.ts +2 -2
- package/dist/components/field/FieldMultiSelect.vue.js +2 -2
- package/dist/components/field/FieldMultiSelect.vue2.js +80 -75
- package/dist/components/field/FieldNumber.vue.js +3 -3
- package/dist/components/field/FieldNumber.vue2.js +19 -18
- package/dist/components/field/FieldPhone.vue.js +2 -2
- package/dist/components/field/FieldPhone.vue2.js +12 -11
- package/dist/components/field/FieldProgress.vue.js +1 -1
- package/dist/components/field/FieldProgress.vue2.js +18 -17
- package/dist/components/field/FieldRating.vue.js +2 -2
- package/dist/components/field/FieldRating.vue2.js +22 -16
- package/dist/components/field/FieldRelation.vue.js +1 -1
- package/dist/components/field/FieldRelation.vue2.js +25 -22
- package/dist/components/field/FieldRichText.vue.js +1 -1
- package/dist/components/field/FieldRichText.vue2.js +10 -7
- package/dist/components/field/FieldSelect.vue.js +2 -2
- package/dist/components/field/FieldSelect.vue2.js +81 -63
- package/dist/components/field/FieldText.vue.js +2 -2
- package/dist/components/field/FieldText.vue2.js +17 -16
- package/dist/components/field/FieldUrl.vue.js +2 -2
- package/dist/components/field/FieldUrl.vue2.js +17 -16
- package/dist/components/form/FormDesigner.vue.js +2 -2
- package/dist/components/form/FormDesigner.vue2.js +83 -78
- package/dist/components/gallery/GalleryCard.vue.d.ts +1 -1
- package/dist/components/gallery/GalleryCard.vue.js +2 -2
- package/dist/components/gallery/GalleryCard.vue2.js +2 -1
- package/dist/components/kanban/KanbanCard.vue.d.ts +3 -1
- package/dist/components/kanban/KanbanCard.vue.js +1 -1
- package/dist/components/kanban/KanbanCard.vue2.js +15 -14
- package/dist/components/kanban/KanbanColumn.vue.d.ts +2 -0
- package/dist/components/kanban/KanbanColumn.vue.js +2 -2
- package/dist/components/kanban/KanbanColumn.vue2.js +9 -9
- package/dist/components/kanban/QuickAddRow.vue.js +2 -2
- package/dist/components/kanban/QuickAddRow.vue2.js +15 -14
- package/dist/components/layout/Navbar.vue.js +3 -3
- package/dist/components/layout/Navbar.vue2.js +5 -4
- package/dist/components/layout/Sidebar.vue.js +2 -2
- package/dist/components/layout/Sidebar.vue2.js +1 -1
- package/dist/components/mermaid/MermaidChart.vue.js +2 -2
- package/dist/components/mermaid/MermaidChart.vue2.js +17 -17
- package/dist/components/overlay/Dialog.vue.d.ts +1 -0
- package/dist/components/overlay/Dialog.vue.js +1 -1
- package/dist/components/overlay/Dialog.vue2.js +9 -9
- package/dist/components/overlay/Drawer.vue.d.ts +1 -0
- package/dist/components/overlay/Drawer.vue.js +2 -2
- package/dist/components/overlay/Drawer.vue2.js +35 -29
- package/dist/components/overlay/Modal.vue.d.ts +1 -0
- package/dist/components/overlay/Modal.vue.js +1 -1
- package/dist/components/overlay/Modal.vue2.js +34 -28
- package/dist/components/overlay/SidePanel.vue.d.ts +1 -0
- package/dist/components/overlay/SidePanel.vue.js +1 -1
- package/dist/components/overlay/SidePanel.vue2.js +6 -6
- package/dist/components/split/SplitPane.vue.js +2 -2
- package/dist/components/split/SplitPane.vue2.js +11 -9
- package/dist/components/table/ColumnHeaderMenu.vue.d.ts +2 -0
- package/dist/components/table/ColumnHeaderMenu.vue.js +1 -1
- package/dist/components/table/ColumnHeaderMenu.vue2.js +42 -36
- package/dist/components/table/DataTable.vue.d.ts +12 -5
- package/dist/components/table/DataTable.vue.js +4 -4
- package/dist/components/table/DataTable.vue2.js +535 -477
- package/dist/components/table/DetailSheet.vue.js +2 -2
- package/dist/components/table/DetailSheet.vue2.js +45 -40
- package/dist/components/table/FieldCell.vue.d.ts +2 -1
- package/dist/components/table/FieldCell.vue.js +1 -1
- package/dist/components/table/FieldCell.vue2.js +57 -48
- package/dist/components/table/FieldTypePicker.vue.d.ts +1 -0
- package/dist/components/table/FieldTypePicker.vue.js +4 -4
- package/dist/components/table/FieldTypePicker.vue2.js +1 -1
- package/dist/components/table/MobileListView.vue.d.ts +26 -3
- package/dist/components/table/MobileListView.vue.js +2 -2
- package/dist/components/table/MobileListView.vue2.js +65 -49
- package/dist/components/table/TableColumnManager.vue.js +1 -1
- package/dist/components/table/TableColumnManager.vue2.js +29 -28
- package/dist/components/table/TableDataRow.vue.d.ts +2 -0
- package/dist/components/table/TableDataRow.vue.js +4 -4
- package/dist/components/table/TableDataRow.vue2.js +70 -58
- package/dist/components/table/TableFilterPanel.vue.js +2 -2
- package/dist/components/table/TableFilterPanel.vue2.js +3 -0
- package/dist/components/table/TableGroupRow.vue.d.ts +2 -0
- package/dist/components/table/TableGroupRow.vue.js +2 -2
- package/dist/components/table/TableGroupRow.vue2.js +35 -30
- package/dist/components/table/TableHeaderRow.vue.js +3 -3
- package/dist/components/table/TableHeaderRow.vue2.js +63 -46
- package/dist/components/table/TableToolbar.vue.js +1 -1
- package/dist/components/table/TableToolbar.vue2.js +2 -2
- package/dist/components/tabs/TabPanel.vue.js +4 -4
- package/dist/components/tabs/TabPanel.vue2.js +1 -1
- package/dist/components/tabs/Tabs.vue.js +2 -2
- package/dist/components/tabs/Tabs.vue2.js +2 -2
- package/dist/components/timeline/GanttRow.vue.d.ts +2 -0
- package/dist/components/timeline/GanttRow.vue.js +2 -2
- package/dist/components/timeline/GanttRow.vue2.js +68 -52
- package/dist/components/timeline/GanttTimeline.vue.d.ts +6 -0
- package/dist/components/timeline/GanttTimeline.vue.js +2 -2
- package/dist/components/timeline/GanttTimeline.vue2.js +24 -24
- package/dist/composables/useKeyboardNavigation.d.ts +1 -1
- package/dist/composables/useRowDrag.d.ts +6 -4
- package/dist/composables/useRowDrag.js +24 -24
- package/dist/composables/useSupabaseProvider.d.ts +8 -1
- package/dist/composables/useTableData.d.ts +5 -3
- package/dist/composables/useTableGroup.d.ts +2 -2
- package/dist/composables/useViewPersistence.d.ts +32 -3
- package/dist/composables/useVirtualList.js +60 -59
- package/dist/plugin.js +103 -102
- package/dist/style.css +1 -1
- package/dist/utils/echarts.d.ts +1 -0
- package/dist/utils/supabaseSchema.d.ts +12 -0
- 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-
|
|
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
|
|
2
|
-
const
|
|
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__ */
|
|
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
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
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
|
|
4
|
-
const
|
|
3
|
+
import f from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const m = /* @__PURE__ */ f(o, [["__scopeId", "data-v-fbd2cfa1"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { defineComponent as
|
|
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__ */
|
|
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
|
-
},
|
|
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) => (
|
|
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:
|
|
38
|
-
|
|
37
|
+
default: u(() => [
|
|
38
|
+
l.value ? (c(), f(s(l.value), {
|
|
39
39
|
key: 0,
|
|
40
40
|
class: "one-ref-tag__icon"
|
|
41
|
-
})) :
|
|
42
|
-
|
|
43
|
-
|
|
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-
|
|
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
|
|
4
|
+
const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-1f8a2c23"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { resolveIcon as
|
|
3
|
-
const
|
|
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:
|
|
17
|
-
const o = e,
|
|
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
|
-
},
|
|
22
|
+
}, h = {
|
|
23
23
|
pending: "待处理",
|
|
24
24
|
updating: "更新中",
|
|
25
25
|
done: "已完成",
|
|
26
26
|
editing: "编辑中"
|
|
27
|
-
},
|
|
28
|
-
var
|
|
29
|
-
return o.status ? ((
|
|
30
|
-
}),
|
|
31
|
-
backgroundColor:
|
|
32
|
-
color:
|
|
33
|
-
} : {}),
|
|
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)" } : {}),
|
|
37
|
-
function
|
|
38
|
-
|
|
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
|
|
41
|
-
|
|
40
|
+
function w() {
|
|
41
|
+
i("edit");
|
|
42
42
|
}
|
|
43
|
-
function
|
|
44
|
-
|
|
43
|
+
function E() {
|
|
44
|
+
i("save");
|
|
45
45
|
}
|
|
46
|
-
return (
|
|
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":
|
|
49
|
+
"of-section-block--editing": d.value,
|
|
50
50
|
"of-section-block--done": e.status === "done"
|
|
51
51
|
}],
|
|
52
|
-
style:
|
|
53
|
-
},
|
|
52
|
+
style: x.value
|
|
53
|
+
}, s.$attrs), [
|
|
54
54
|
t("div", {
|
|
55
55
|
class: "of-section-block__header",
|
|
56
|
-
|
|
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",
|
|
59
|
-
|
|
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
|
-
})) :
|
|
65
|
-
t("span",
|
|
66
|
-
e.status ? (l(),
|
|
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:
|
|
70
|
-
},
|
|
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:
|
|
80
|
+
onClick: v[0] || (v[0] = u(() => {
|
|
75
81
|
}, ["stop"]))
|
|
76
82
|
}, [
|
|
77
|
-
|
|
78
|
-
|
|
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:
|
|
83
|
-
}, " 保存 ")) :
|
|
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:
|
|
88
|
-
}, " 编辑 ")) :
|
|
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:
|
|
100
|
+
onClick: n
|
|
95
101
|
}, [
|
|
96
102
|
t("span", {
|
|
97
|
-
class:
|
|
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,
|
|
105
|
+
}, " ▾ ", 2)
|
|
106
|
+
], 8, M)
|
|
101
107
|
])
|
|
102
|
-
]),
|
|
108
|
+
], 40, K),
|
|
103
109
|
t("div", {
|
|
104
|
-
class:
|
|
110
|
+
class: g(["of-section-block__body-wrapper", { "of-section-block__body-wrapper--collapsed": e.collapsed }])
|
|
105
111
|
}, [
|
|
106
|
-
t("div",
|
|
107
|
-
|
|
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
|
-
|
|
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
|
|
1
|
+
import e from "./SelectBadge.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const c = /* @__PURE__ */
|
|
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
|
|
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
|
|
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(
|
|
17
|
-
const e =
|
|
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 =
|
|
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":
|
|
52
|
-
"--one-sb-border":
|
|
51
|
+
"--one-sb-bg": v.value,
|
|
52
|
+
"--one-sb-border": i.value
|
|
53
53
|
})
|
|
54
|
-
),
|
|
54
|
+
), p = t(() => ({
|
|
55
55
|
backgroundColor: e.dotColor || n.value
|
|
56
|
-
})),
|
|
57
|
-
function
|
|
58
|
-
|
|
56
|
+
})), d = S("chevron-down");
|
|
57
|
+
function b(r) {
|
|
58
|
+
f("click", r);
|
|
59
59
|
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
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:
|
|
68
|
-
}, null, 4)) :
|
|
69
|
-
|
|
70
|
-
|
|
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
|
-
|
|
80
|
+
a.clickable && s(d) ? (l(), _(w(s(d)), {
|
|
73
81
|
key: 1,
|
|
74
82
|
class: "one-select-badge__arrow"
|
|
75
|
-
})) :
|
|
83
|
+
})) : g("", !0)
|
|
76
84
|
], 16));
|
|
77
85
|
}
|
|
78
86
|
});
|
|
79
87
|
export {
|
|
80
|
-
|
|
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-
|
|
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
|
|
4
|
+
const m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-01dbeff6"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
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
|
-
},
|
|
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
|
|
4
|
+
const e = /* @__PURE__ */ o(t, [["__scopeId", "data-v-3ee84048"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
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
|
|
4
|
+
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-1a3ce664"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
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
|
|
4
|
+
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-d3f7ed37"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
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
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-8c5c7168"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
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-
|
|
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
|
-
]
|
|
17
|
+
];
|
|
18
18
|
return (t, k) => (o(), l("div", m({ class: "one-view-mode-group" }, t.$attrs), [
|
|
19
|
-
(o(!0), l(c, null, d(
|
|
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-
|
|
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
|
-
]
|
|
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(
|
|
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-
|
|
4
|
+
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-7743a555"]]);
|
|
5
5
|
export {
|
|
6
6
|
p as default
|
|
7
7
|
};
|