@oneflowui/ui 0.5.6 → 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 +6 -5
- package/dist/components/table/DataTable.vue.js +2 -2
- package/dist/components/table/DataTable.vue2.js +527 -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 +3 -2
- package/dist/components/table/MobileListView.vue.js +2 -2
- package/dist/components/table/MobileListView.vue2.js +57 -50
- 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
|
@@ -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
|
|
19
|
-
return
|
|
18
|
+
function i(e) {
|
|
19
|
+
return c[e];
|
|
20
20
|
}
|
|
21
|
-
const i = l;
|
|
22
21
|
function r(e) {
|
|
23
|
-
|
|
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(
|
|
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
|
|
4
|
+
const d = /* @__PURE__ */ r(o, [["__scopeId", "data-v-bd4d4440"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
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
|
|
4
|
+
const e = /* @__PURE__ */ r(o, [["__scopeId", "data-v-03aeb53d"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
e as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./PropPanel.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const m = /* @__PURE__ */
|
|
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,
|
|
2
|
-
import { ChevronDownIcon as
|
|
3
|
-
import
|
|
4
|
-
const
|
|
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
|
-
},
|
|
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(
|
|
15
|
-
const i =
|
|
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 (
|
|
20
|
-
|
|
21
|
-
class:
|
|
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
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
"
|
|
38
|
-
|
|
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
|
-
|
|
41
|
-
|
|
44
|
+
n.$slots.extra ? (o(), t("div", S, [
|
|
45
|
+
C(n.$slots, "extra", {}, void 0, !0)
|
|
42
46
|
])) : c("", !0)
|
|
43
47
|
], 512), [
|
|
44
|
-
[
|
|
48
|
+
[g, !a.value]
|
|
45
49
|
])
|
|
46
50
|
]));
|
|
47
51
|
}
|
|
48
52
|
});
|
|
49
53
|
export {
|
|
50
|
-
|
|
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
|
|
4
|
+
const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-1a3d71ed"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { resolveBadge as
|
|
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__ */
|
|
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(
|
|
20
|
-
const e =
|
|
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 =
|
|
26
|
-
}),
|
|
25
|
+
return ((o = a.value) == null ? void 0 : o.label) ?? e.value;
|
|
26
|
+
}), d = t(() => {
|
|
27
27
|
var o;
|
|
28
|
-
return ((o =
|
|
29
|
-
}),
|
|
30
|
-
return (o, h) => (
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
n.value ? (
|
|
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:
|
|
36
|
+
style: v(y.value)
|
|
37
37
|
}, [
|
|
38
|
-
|
|
38
|
+
f.value ? (r(), l("span", {
|
|
39
39
|
key: 0,
|
|
40
40
|
class: "prop-row__dot",
|
|
41
|
-
style:
|
|
42
|
-
}, null, 4)) :
|
|
43
|
-
g(" " +
|
|
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, {},
|
|
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-
|
|
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
|
|
2
|
-
const
|
|
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
|
-
},
|
|
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:
|
|
14
|
-
const a = e,
|
|
15
|
-
function
|
|
16
|
-
a.editable && (t.value = a.content,
|
|
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
|
|
19
|
-
|
|
24
|
+
function u() {
|
|
25
|
+
i.value = !1, m("update:content", t.value);
|
|
20
26
|
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
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
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
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:
|
|
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
|
-
|
|
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
|
|
4
|
+
const _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-4899d060"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
_ as default
|
|
7
7
|
};
|
|
@@ -1,49 +1,70 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const
|
|
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
|
-
},
|
|
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(
|
|
13
|
-
const o =
|
|
14
|
-
function
|
|
15
|
-
o.editable && (
|
|
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
|
|
18
|
-
|
|
23
|
+
function p() {
|
|
24
|
+
c.value = !1, v("update:content", l.value);
|
|
19
25
|
}
|
|
20
|
-
const
|
|
21
|
-
`).filter((
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
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
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
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
|
-
},
|
|
42
|
-
|
|
62
|
+
}, s(a), 1))), 128)),
|
|
63
|
+
r.value.length === 0 ? (e(), t("span", M, s(""))) : y("", !0)
|
|
43
64
|
], !0)
|
|
44
|
-
]
|
|
65
|
+
]));
|
|
45
66
|
}
|
|
46
67
|
});
|
|
47
68
|
export {
|
|
48
|
-
|
|
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
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-a112a005"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as E, ref as
|
|
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 =
|
|
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 = (
|
|
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 = "",
|
|
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("
|
|
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("
|
|
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) =>
|
|
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,
|
|
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
|
|
4
|
+
const e = /* @__PURE__ */ o(t, [["__scopeId", "data-v-416bbf0b"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
e as default
|
|
7
7
|
};
|