@duxweb/dvha-pro 1.0.45 → 1.0.47
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/cjs/component.cjs +1 -1
- package/dist/cjs/components/chart/echart.cjs +1 -1
- package/dist/cjs/components/crop/imageCrop.cjs +1 -1
- package/dist/cjs/components/data/dynamicSelect.cjs +1 -1
- package/dist/cjs/components/data/selectModal.cjs +1 -1
- package/dist/cjs/components/designEditor/components/grid.cjs +1 -1
- package/dist/cjs/components/designEditor/editor/setting.cjs +1 -1
- package/dist/cjs/components/flowEditor/components/jsonEditor.cjs +1 -0
- package/dist/cjs/components/flowEditor/components/nodeCard.cjs +1 -0
- package/dist/cjs/components/flowEditor/components/setting.cjs +1 -0
- package/dist/cjs/components/flowEditor/components/toolbar.cjs +1 -0
- package/dist/cjs/components/flowEditor/flowEditor.cjs +1 -0
- package/dist/cjs/components/flowEditor/nodes/endNode.cjs +1 -0
- package/dist/cjs/components/flowEditor/nodes/index.cjs +1 -0
- package/dist/cjs/components/flowEditor/nodes/processNode.cjs +1 -0
- package/dist/cjs/components/flowEditor/nodes/startNode.cjs +1 -0
- package/dist/cjs/components/flowEditor/utils/nodeDataUtils.cjs +1 -0
- package/dist/cjs/components/form/drawerForm.cjs +1 -1
- package/dist/cjs/components/form/modalForm.cjs +1 -1
- package/dist/cjs/components/form/pageForm.cjs +1 -1
- package/dist/cjs/components/form/pageTabForm.cjs +1 -1
- package/dist/cjs/components/form/settingForm.cjs +1 -1
- package/dist/cjs/components/formEditor/base/base.cjs +1 -1
- package/dist/cjs/components/formEditor/base/setting.cjs +1 -1
- package/dist/cjs/components/formEditor/components/cascader.cjs +1 -1
- package/dist/cjs/components/formEditor/components/cascaderAsync.cjs +1 -1
- package/dist/cjs/components/formEditor/components/checkbox.cjs +1 -1
- package/dist/cjs/components/formEditor/components/color.cjs +1 -1
- package/dist/cjs/components/formEditor/components/date.cjs +1 -1
- package/dist/cjs/components/formEditor/components/dynamicInput.cjs +1 -1
- package/dist/cjs/components/formEditor/components/dynamicTags.cjs +1 -1
- package/dist/cjs/components/formEditor/components/editor.cjs +1 -1
- package/dist/cjs/components/formEditor/components/fileUpload.cjs +1 -1
- package/dist/cjs/components/formEditor/components/imageUpload.cjs +1 -1
- package/dist/cjs/components/formEditor/components/input.cjs +1 -1
- package/dist/cjs/components/formEditor/components/inputNumber.cjs +1 -1
- package/dist/cjs/components/formEditor/components/mentionAsync.cjs +1 -1
- package/dist/cjs/components/formEditor/components/radio.cjs +1 -1
- package/dist/cjs/components/formEditor/components/region.cjs +1 -1
- package/dist/cjs/components/formEditor/components/select.cjs +1 -1
- package/dist/cjs/components/formEditor/components/selectAsync.cjs +1 -1
- package/dist/cjs/components/formEditor/components/sider.cjs +1 -1
- package/dist/cjs/components/formEditor/components/switch.cjs +1 -1
- package/dist/cjs/components/formEditor/components/time.cjs +1 -1
- package/dist/cjs/components/formEditor/components/transferAsync.cjs +1 -1
- package/dist/cjs/components/formEditor/components/treeSelect.cjs +1 -1
- package/dist/cjs/components/formEditor/components/treeSelectAsync.cjs +1 -1
- package/dist/cjs/components/formEditor/editor.cjs +1 -1
- package/dist/cjs/components/formEditor/renderer.cjs +1 -1
- package/dist/cjs/components/icon/icon.cjs +1 -1
- package/dist/cjs/components/layout/list.cjs +1 -1
- package/dist/cjs/components/layout/table.cjs +1 -1
- package/dist/cjs/components/layout/tools.cjs +1 -1
- package/dist/cjs/components/level/level.cjs +1 -1
- package/dist/cjs/components/list/card.cjs +1 -1
- package/dist/cjs/components/list/list.cjs +1 -1
- package/dist/cjs/components/posterEditor/pages/RightPanel.cjs +1 -1
- package/dist/cjs/components/posterEditor/posterEditor.cjs +1 -1
- package/dist/cjs/components/table/table.cjs +1 -1
- package/dist/cjs/components/table/tablePage.cjs +1 -1
- package/dist/cjs/components/upload/file.cjs +1 -1
- package/dist/cjs/components/upload/image.cjs +1 -1
- package/dist/cjs/components/upload/manage/item.cjs +1 -1
- package/dist/cjs/components/upload/manager.cjs +1 -1
- package/dist/cjs/dvha-pro.css +1 -1
- package/dist/cjs/hooks/dialog.cjs +1 -1
- package/dist/cjs/hooks/drawer.cjs +1 -1
- package/dist/cjs/hooks/modal.cjs +1 -1
- package/dist/cjs/hooks/table/image.cjs +1 -1
- package/dist/cjs/hooks/table/media.cjs +1 -1
- package/dist/cjs/hooks/table.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/langs/en-US.json.cjs +1 -1
- package/dist/cjs/langs/zh-CN.json.cjs +1 -1
- package/dist/cjs/main.cjs +1 -1
- package/dist/cjs/pages/authLayout.cjs +1 -1
- package/dist/cjs/pages/layout/page.cjs +1 -1
- package/dist/cjs/pages/login.cjs +1 -1
- package/dist/cjs/pages/menu/avatar.cjs +1 -1
- package/dist/cjs/pages/menu/button.cjs +1 -1
- package/dist/cjs/pages/menu/cmd.cjs +1 -1
- package/dist/cjs/pages/menu/main.cjs +1 -1
- package/dist/cjs/pages/menu/mobile.cjs +1 -1
- package/dist/cjs/pages/page404.cjs +1 -1
- package/dist/cjs/pages/pageStatus.cjs +1 -1
- package/dist/cjs/theme/uno.css.cjs +75 -9
- package/dist/esm/component.js +5 -2
- package/dist/esm/components/chart/echart.js +5 -2
- package/dist/esm/components/crop/imageCrop.js +13 -10
- package/dist/esm/components/data/dynamicSelect.js +5 -2
- package/dist/esm/components/data/selectModal.js +5 -2
- package/dist/esm/components/designEditor/components/grid.js +5 -2
- package/dist/esm/components/designEditor/editor/setting.js +7 -4
- package/dist/esm/components/flowEditor/components/jsonEditor.js +53 -0
- package/dist/esm/components/flowEditor/components/nodeCard.js +160 -0
- package/dist/esm/components/flowEditor/components/setting.js +319 -0
- package/dist/esm/components/flowEditor/components/toolbar.js +120 -0
- package/dist/esm/components/flowEditor/flowEditor.js +287 -0
- package/dist/esm/components/flowEditor/nodes/endNode.js +144 -0
- package/dist/esm/components/flowEditor/nodes/index.js +66 -0
- package/dist/esm/components/flowEditor/nodes/processNode.js +142 -0
- package/dist/esm/components/flowEditor/nodes/startNode.js +144 -0
- package/dist/esm/components/flowEditor/utils/nodeDataUtils.js +82 -0
- package/dist/esm/components/form/drawerForm.js +5 -2
- package/dist/esm/components/form/modalForm.js +12 -9
- package/dist/esm/components/form/pageForm.js +21 -18
- package/dist/esm/components/form/pageTabForm.js +5 -2
- package/dist/esm/components/form/settingForm.js +11 -8
- package/dist/esm/components/formEditor/base/base.js +8 -5
- package/dist/esm/components/formEditor/base/setting.js +5 -2
- package/dist/esm/components/formEditor/components/cascader.js +6 -3
- package/dist/esm/components/formEditor/components/cascaderAsync.js +6 -3
- package/dist/esm/components/formEditor/components/checkbox.js +17 -14
- package/dist/esm/components/formEditor/components/color.js +6 -3
- package/dist/esm/components/formEditor/components/date.js +6 -3
- package/dist/esm/components/formEditor/components/dynamicInput.js +6 -3
- package/dist/esm/components/formEditor/components/dynamicTags.js +13 -10
- package/dist/esm/components/formEditor/components/editor.js +6 -3
- package/dist/esm/components/formEditor/components/fileUpload.js +6 -3
- package/dist/esm/components/formEditor/components/imageUpload.js +6 -3
- package/dist/esm/components/formEditor/components/input.js +6 -3
- package/dist/esm/components/formEditor/components/inputNumber.js +29 -26
- package/dist/esm/components/formEditor/components/mentionAsync.js +17 -14
- package/dist/esm/components/formEditor/components/radio.js +17 -14
- package/dist/esm/components/formEditor/components/region.js +19 -16
- package/dist/esm/components/formEditor/components/select.js +6 -3
- package/dist/esm/components/formEditor/components/selectAsync.js +12 -9
- package/dist/esm/components/formEditor/components/sider.js +6 -3
- package/dist/esm/components/formEditor/components/switch.js +22 -19
- package/dist/esm/components/formEditor/components/time.js +6 -3
- package/dist/esm/components/formEditor/components/transferAsync.js +26 -23
- package/dist/esm/components/formEditor/components/treeSelect.js +6 -3
- package/dist/esm/components/formEditor/components/treeSelectAsync.js +26 -23
- package/dist/esm/components/formEditor/editor.js +5 -2
- package/dist/esm/components/formEditor/renderer.js +5 -2
- package/dist/esm/components/icon/icon.js +5 -2
- package/dist/esm/components/layout/list.js +98 -86
- package/dist/esm/components/layout/table.js +125 -117
- package/dist/esm/components/layout/tools.js +109 -32
- package/dist/esm/components/level/level.js +5 -2
- package/dist/esm/components/list/card.js +27 -22
- package/dist/esm/components/list/list.js +16 -11
- package/dist/esm/components/posterEditor/pages/RightPanel.js +5 -2
- package/dist/esm/components/posterEditor/posterEditor.js +5 -2
- package/dist/esm/components/table/table.js +35 -28
- package/dist/esm/components/table/tablePage.js +17 -12
- package/dist/esm/components/upload/file.js +5 -2
- package/dist/esm/components/upload/image.js +18 -15
- package/dist/esm/components/upload/manage/item.js +5 -2
- package/dist/esm/components/upload/manager.js +5 -2
- package/dist/esm/dvha-pro.css +1 -1
- package/dist/esm/hooks/dialog.js +5 -2
- package/dist/esm/hooks/drawer.js +5 -2
- package/dist/esm/hooks/modal.js +5 -2
- package/dist/esm/hooks/table/image.js +5 -2
- package/dist/esm/hooks/table/media.js +5 -2
- package/dist/esm/hooks/table.js +25 -19
- package/dist/esm/index.js +252 -226
- package/dist/esm/langs/en-US.json.js +5 -5
- package/dist/esm/langs/zh-CN.json.js +6 -6
- package/dist/esm/main.js +4 -2
- package/dist/esm/pages/authLayout.js +5 -2
- package/dist/esm/pages/layout/page.js +9 -6
- package/dist/esm/pages/login.js +10 -7
- package/dist/esm/pages/menu/avatar.js +18 -15
- package/dist/esm/pages/menu/button.js +8 -5
- package/dist/esm/pages/menu/cmd.js +13 -10
- package/dist/esm/pages/menu/main.js +29 -26
- package/dist/esm/pages/menu/mobile.js +5 -2
- package/dist/esm/pages/page404.js +3 -0
- package/dist/esm/pages/pageStatus.js +5 -2
- package/dist/esm/theme/uno.css.js +75 -9
- package/dist/types/components/flowEditor/components/index.d.ts +3 -0
- package/dist/types/components/flowEditor/components/jsonEditor.d.ts +22 -0
- package/dist/types/components/flowEditor/components/nodeCard.d.ts +112 -0
- package/dist/types/components/flowEditor/components/setting.d.ts +16 -0
- package/dist/types/components/flowEditor/components/toolbar.d.ts +11 -0
- package/dist/types/components/flowEditor/flowEditor.d.ts +68 -0
- package/dist/types/components/flowEditor/index.d.ts +5 -0
- package/dist/types/components/flowEditor/nodes/endNode.d.ts +19 -0
- package/dist/types/components/flowEditor/nodes/index.d.ts +8 -0
- package/dist/types/components/flowEditor/nodes/processNode.d.ts +19 -0
- package/dist/types/components/flowEditor/nodes/startNode.d.ts +19 -0
- package/dist/types/components/flowEditor/types/index.d.ts +62 -0
- package/dist/types/components/flowEditor/utils/nodeDataUtils.d.ts +59 -0
- package/dist/types/components/index.d.ts +1 -0
- package/dist/types/components/layout/list.d.ts +7 -0
- package/dist/types/components/layout/table.d.ts +7 -0
- package/dist/types/components/layout/tools.d.ts +28 -2
- package/dist/types/components/list/card.d.ts +6 -0
- package/dist/types/components/list/list.d.ts +6 -0
- package/dist/types/components/table/tablePage.d.ts +6 -0
- package/dist/types/main.d.ts +2 -0
- package/package.json +9 -3
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useI18n as
|
|
3
|
-
import { useWindowSize as
|
|
4
|
-
import { NTabs as
|
|
5
|
-
import { useAction as
|
|
1
|
+
import { defineComponent as Q, toRef as v, computed as u, reactive as w, createVNode as e, h as C, mergeProps as X, isVNode as Y } from "vue";
|
|
2
|
+
import { useI18n as Z, useJsonSchema as N, useTabStore as $ } from "@duxweb/dvha-core";
|
|
3
|
+
import { useWindowSize as ee } from "@vueuse/core";
|
|
4
|
+
import { NTabs as te, NTab as oe, NButton as r, NPopselect as ie, NTooltip as f, NProgress as le, NPagination as ae, NModal as re, NDrawer as S } from "naive-ui";
|
|
5
|
+
import { useAction as ne } from "../../hooks/action.js";
|
|
6
6
|
import "@overlastic/vue";
|
|
7
7
|
import "clsx";
|
|
8
8
|
import "vue-echarts";
|
|
@@ -18,12 +18,12 @@ import "ace-builds/src-noconflict/ext-searchbox";
|
|
|
18
18
|
import "ace-builds/src-noconflict/ext-language_tools";
|
|
19
19
|
import "ace-builds/src-noconflict/mode-snippets";
|
|
20
20
|
import "vue-cropper";
|
|
21
|
-
import
|
|
21
|
+
import se from "../modal/modalPage.js";
|
|
22
22
|
import "jinrishici";
|
|
23
23
|
import "lodash-es";
|
|
24
24
|
import "vue-draggable-plus";
|
|
25
|
-
import { DuxTableFilter as
|
|
26
|
-
import { DuxFilterLayout as
|
|
25
|
+
import { DuxTableFilter as ue } from "./filter.js";
|
|
26
|
+
import { DuxFilterLayout as ce } from "./filterLayout.js";
|
|
27
27
|
import "@vee-validate/i18n";
|
|
28
28
|
import "colorizr";
|
|
29
29
|
import "echarts";
|
|
@@ -51,24 +51,27 @@ import "vee-validate";
|
|
|
51
51
|
import "vue-router";
|
|
52
52
|
import "vue-command-palette";
|
|
53
53
|
import "@duxweb/dvha-naiveui";
|
|
54
|
-
import { DuxPage as
|
|
54
|
+
import { DuxPage as me } from "../../pages/page.js";
|
|
55
55
|
import "../../pages/page404.js";
|
|
56
|
-
import { DuxDrawerPage as
|
|
57
|
-
import { DuxTableTools as
|
|
56
|
+
import { DuxDrawerPage as T } from "../drawer/drawerPage.js";
|
|
57
|
+
import { DuxTableTools as de } from "./tools.js";
|
|
58
58
|
import "short-unique-id";
|
|
59
59
|
import "aieditor";
|
|
60
|
+
import "@vue-flow/core";
|
|
61
|
+
import "@vue-flow/background";
|
|
62
|
+
/* empty css */
|
|
60
63
|
import "mime";
|
|
61
64
|
import "@iconify-json/tabler/icons.json";
|
|
62
65
|
import "../posterEditor/elements/index.js";
|
|
63
66
|
import "fabric";
|
|
64
67
|
import "dayjs";
|
|
65
68
|
import "@tanstack/vue-query";
|
|
66
|
-
import { useTable as
|
|
69
|
+
import { useTable as pe } from "../../hooks/table.js";
|
|
67
70
|
import "pinia";
|
|
68
|
-
function
|
|
69
|
-
return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !
|
|
71
|
+
function fe(t) {
|
|
72
|
+
return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !Y(t);
|
|
70
73
|
}
|
|
71
|
-
const
|
|
74
|
+
const zt = /* @__PURE__ */ Q({
|
|
72
75
|
name: "DuxTableLayout",
|
|
73
76
|
props: {
|
|
74
77
|
path: {
|
|
@@ -113,112 +116,118 @@ const Tt = /* @__PURE__ */ H({
|
|
|
113
116
|
type: String,
|
|
114
117
|
default: ""
|
|
115
118
|
},
|
|
119
|
+
batchOptions: {
|
|
120
|
+
type: Array
|
|
121
|
+
},
|
|
116
122
|
hookTableProps: {
|
|
117
123
|
type: Object
|
|
118
124
|
}
|
|
119
125
|
},
|
|
120
126
|
setup(t, {
|
|
121
|
-
slots:
|
|
127
|
+
slots: i,
|
|
128
|
+
expose: j
|
|
122
129
|
}) {
|
|
123
|
-
const
|
|
124
|
-
t:
|
|
125
|
-
} =
|
|
126
|
-
renderAction:
|
|
127
|
-
} =
|
|
130
|
+
const b = v(t, "filter", {}), L = v(t, "sorter", {}), P = v(t, "columns", []), {
|
|
131
|
+
t: l
|
|
132
|
+
} = Z(), {
|
|
133
|
+
renderAction: z
|
|
134
|
+
} = ne(), n = pe({
|
|
128
135
|
...t.hookTableProps,
|
|
129
136
|
path: t.path,
|
|
130
|
-
filters:
|
|
131
|
-
sorters:
|
|
132
|
-
columns:
|
|
137
|
+
filters: b.value,
|
|
138
|
+
sorters: L.value,
|
|
139
|
+
columns: P,
|
|
133
140
|
pagination: t.pagination
|
|
134
|
-
})
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
141
|
+
});
|
|
142
|
+
j(n);
|
|
143
|
+
const {
|
|
144
|
+
columns: y,
|
|
145
|
+
tablePagination: D,
|
|
146
|
+
table: x,
|
|
147
|
+
onUpdateColumnSelected: O,
|
|
148
|
+
onUpdateChecked: A,
|
|
149
|
+
columnSelected: U,
|
|
150
|
+
autoRefetch: B,
|
|
151
|
+
autoCountdown: k,
|
|
143
152
|
onAutoRefetch: E,
|
|
144
153
|
isExporting: F,
|
|
145
154
|
isExportingRows: I,
|
|
146
155
|
isImporting: V,
|
|
147
156
|
onExport: W,
|
|
148
|
-
onExportRows:
|
|
157
|
+
onExportRows: K,
|
|
149
158
|
onImport: M
|
|
150
|
-
} =
|
|
159
|
+
} = n, _ = u(() => y.value.filter((o) => "title" in o && "key" in o).map((o) => ({
|
|
151
160
|
label: o.title,
|
|
152
161
|
value: o.key
|
|
153
162
|
}))), {
|
|
154
|
-
width:
|
|
155
|
-
} =
|
|
156
|
-
show: !1
|
|
157
|
-
}), c = w({
|
|
163
|
+
width: s
|
|
164
|
+
} = ee(), q = u(() => y.value.reduce((a, p) => a + (Number(p?.width) || Number(p?.minWidth) || 110), 0)), c = w({
|
|
158
165
|
show: !1
|
|
159
166
|
}), m = w({
|
|
160
167
|
show: !1
|
|
161
|
-
}),
|
|
168
|
+
}), d = w({
|
|
169
|
+
show: !1
|
|
170
|
+
}), h = u(() => (t.filterSchema || []).map((o) => {
|
|
162
171
|
const {
|
|
163
172
|
label: a,
|
|
164
|
-
...
|
|
173
|
+
...p
|
|
165
174
|
} = o;
|
|
166
175
|
return {
|
|
167
|
-
tag:
|
|
176
|
+
tag: ue,
|
|
168
177
|
attrs: {
|
|
169
178
|
label: a
|
|
170
179
|
},
|
|
171
|
-
children:
|
|
180
|
+
children: p
|
|
172
181
|
};
|
|
173
182
|
})), {
|
|
174
183
|
render: J
|
|
175
184
|
} = N({
|
|
176
|
-
data:
|
|
185
|
+
data: u(() => h.value?.slice(t.filterNumber))
|
|
177
186
|
}), {
|
|
178
|
-
render:
|
|
187
|
+
render: G
|
|
179
188
|
} = N({
|
|
180
|
-
data:
|
|
181
|
-
}), g =
|
|
189
|
+
data: u(() => h.value?.slice(0, t.filterNumber))
|
|
190
|
+
}), g = u(() => ({
|
|
182
191
|
import: !1,
|
|
183
192
|
export: !0,
|
|
184
193
|
refresh: !0,
|
|
185
194
|
...t.tools
|
|
186
|
-
})),
|
|
187
|
-
return () => e(
|
|
195
|
+
})), R = $(), H = R.tabs.find((o) => o.path === R.current);
|
|
196
|
+
return () => e(me, {
|
|
188
197
|
actions: t.actions,
|
|
189
198
|
scrollbar: !1
|
|
190
199
|
}, {
|
|
191
|
-
sideLeft: () =>
|
|
192
|
-
sideRight: () =>
|
|
200
|
+
sideLeft: () => i?.sideLeft && s.value >= 1024 ? i?.sideLeft?.() : void 0,
|
|
201
|
+
sideRight: () => i?.sideRight && s.value >= 1024 ? i?.sideRight?.() : void 0,
|
|
193
202
|
default: () => e("div", {
|
|
194
203
|
class: "flex flex-col gap-2 h-full relative"
|
|
195
204
|
}, [e("div", {
|
|
196
205
|
class: "flex gap-2 justify-between flex-col lg:flex-row"
|
|
197
206
|
}, [t.tabs && e("div", {
|
|
198
207
|
class: "flex flex-none"
|
|
199
|
-
}, [e(
|
|
208
|
+
}, [e(te, {
|
|
200
209
|
type: "segment",
|
|
201
210
|
size: "small",
|
|
202
211
|
style: {
|
|
203
212
|
"--n-tab-padding": "4px 10px"
|
|
204
213
|
},
|
|
205
214
|
"default-value": t.tabs?.[0]?.value,
|
|
206
|
-
value:
|
|
215
|
+
value: b.value?.tab,
|
|
207
216
|
onUpdateValue: (o) => {
|
|
208
|
-
|
|
217
|
+
b.value.tab = o;
|
|
209
218
|
}
|
|
210
219
|
}, {
|
|
211
|
-
default: () => [t.tabs?.map((o) => e(
|
|
220
|
+
default: () => [t.tabs?.map((o) => e(oe, {
|
|
212
221
|
name: o.value,
|
|
213
222
|
tab: o.label
|
|
214
223
|
}, null))]
|
|
215
224
|
})]), e("div", {
|
|
216
225
|
class: ["overflow-hidden flex-1 flex gap-2"]
|
|
217
|
-
}, [
|
|
226
|
+
}, [i?.sideLeft && s.value < 1024 && e(r, {
|
|
218
227
|
class: "flex-none",
|
|
219
228
|
secondary: !0,
|
|
220
229
|
onClick: () => {
|
|
221
|
-
|
|
230
|
+
m.show = !m.show;
|
|
222
231
|
}
|
|
223
232
|
}, {
|
|
224
233
|
icon: () => e("div", {
|
|
@@ -228,11 +237,11 @@ const Tt = /* @__PURE__ */ H({
|
|
|
228
237
|
class: ["flex-1 flex flex-col lg:flex-row gap-2 flex-wrap", t.tabs ? "justify-end" : "justify-start"]
|
|
229
238
|
}, [!t.tabs && !t.filterSchema?.length && e("div", {
|
|
230
239
|
class: "flex flex-none items-center text-base font-medium"
|
|
231
|
-
}, [
|
|
240
|
+
}, [H?.label]), C(G)]), i?.sideRight && s.value < 1024 && e(r, {
|
|
232
241
|
class: "flex-none",
|
|
233
242
|
secondary: !0,
|
|
234
243
|
onClick: () => {
|
|
235
|
-
|
|
244
|
+
d.show = !d.show;
|
|
236
245
|
}
|
|
237
246
|
}, {
|
|
238
247
|
icon: () => e("div", {
|
|
@@ -245,24 +254,24 @@ const Tt = /* @__PURE__ */ H({
|
|
|
245
254
|
}, [h.value.length > t.filterNumber && e(r, {
|
|
246
255
|
iconPlacement: "right",
|
|
247
256
|
onClick: () => {
|
|
248
|
-
|
|
257
|
+
c.show = !c.show;
|
|
249
258
|
}
|
|
250
259
|
}, {
|
|
251
|
-
default: () =>
|
|
260
|
+
default: () => l("components.button.filter"),
|
|
252
261
|
icon: () => e("div", {
|
|
253
262
|
class: ["i-tabler:chevrons-down size-4 transition-all"]
|
|
254
263
|
}, null)
|
|
255
|
-
}),
|
|
264
|
+
}), i?.tools?.(), e(ie, {
|
|
256
265
|
options: _.value,
|
|
257
|
-
value:
|
|
266
|
+
value: U.value,
|
|
258
267
|
onUpdateValue: (o) => {
|
|
259
|
-
|
|
268
|
+
O(o);
|
|
260
269
|
},
|
|
261
270
|
multiple: !0,
|
|
262
271
|
placement: "bottom-start",
|
|
263
272
|
trigger: "click"
|
|
264
273
|
}, {
|
|
265
|
-
default: () => [e(
|
|
274
|
+
default: () => [e(f, null, {
|
|
266
275
|
trigger: () => e(r, {
|
|
267
276
|
secondary: !0,
|
|
268
277
|
"icon-placement": "right"
|
|
@@ -271,9 +280,9 @@ const Tt = /* @__PURE__ */ H({
|
|
|
271
280
|
class: "i-tabler:columns size-4"
|
|
272
281
|
}, null)
|
|
273
282
|
}),
|
|
274
|
-
default: () =>
|
|
283
|
+
default: () => l("components.list.columnSetting")
|
|
275
284
|
})]
|
|
276
|
-
}), g.value.export && e(
|
|
285
|
+
}), g.value.export && e(f, null, {
|
|
277
286
|
trigger: () => e(r, {
|
|
278
287
|
secondary: !0,
|
|
279
288
|
loading: F.value,
|
|
@@ -283,8 +292,8 @@ const Tt = /* @__PURE__ */ H({
|
|
|
283
292
|
class: "i-tabler:database-export size-4"
|
|
284
293
|
}, null)
|
|
285
294
|
}),
|
|
286
|
-
default: () =>
|
|
287
|
-
}), g.value.import && e(
|
|
295
|
+
default: () => l("components.button.export")
|
|
296
|
+
}), g.value.import && e(f, null, {
|
|
288
297
|
trigger: () => e(r, {
|
|
289
298
|
secondary: !0,
|
|
290
299
|
loading: V.value,
|
|
@@ -294,115 +303,114 @@ const Tt = /* @__PURE__ */ H({
|
|
|
294
303
|
class: "i-tabler:database-import size-4"
|
|
295
304
|
}, null)
|
|
296
305
|
}),
|
|
297
|
-
default: () =>
|
|
298
|
-
}), g.value.refresh && e(
|
|
306
|
+
default: () => l("components.button.import")
|
|
307
|
+
}), g.value.refresh && e(f, null, {
|
|
299
308
|
trigger: () => e(r, {
|
|
300
309
|
secondary: !0,
|
|
301
310
|
onClick: E
|
|
302
311
|
}, {
|
|
303
|
-
icon: () =>
|
|
312
|
+
icon: () => B.value ? e(le, {
|
|
304
313
|
class: "size-4",
|
|
305
314
|
type: "circle",
|
|
306
|
-
percentage:
|
|
315
|
+
percentage: k.value * 10,
|
|
307
316
|
strokeWidth: 20,
|
|
308
317
|
color: "rgba(var(--ui-color-primary))"
|
|
309
318
|
}, {
|
|
310
319
|
default: () => [e("span", {
|
|
311
320
|
class: "text-8px"
|
|
312
|
-
}, [
|
|
321
|
+
}, [k.value])]
|
|
313
322
|
}) : e("div", {
|
|
314
323
|
class: "i-tabler:refresh size-4"
|
|
315
324
|
}, null)
|
|
316
325
|
}),
|
|
317
|
-
default: () =>
|
|
326
|
+
default: () => l("components.button.autoRefresh")
|
|
318
327
|
})]), e("div", {
|
|
319
328
|
class: "flex gap-2 justify-end"
|
|
320
|
-
}, [
|
|
321
|
-
type:
|
|
329
|
+
}, [i.actions?.(), t.actions?.length > 0 && z({
|
|
330
|
+
type: s.value < 1024 ? "dropdown" : "button",
|
|
322
331
|
items: t.actions
|
|
323
|
-
})])])]),
|
|
332
|
+
})])])]), i?.header?.(), e("div", {
|
|
324
333
|
class: "flex-1 min-h-0"
|
|
325
|
-
}, [
|
|
326
|
-
...
|
|
334
|
+
}, [i?.default?.({
|
|
335
|
+
...n,
|
|
327
336
|
width: q.value
|
|
328
337
|
})]), e("div", {
|
|
329
338
|
class: "flex justify-between"
|
|
330
|
-
}, [e("div", null, [
|
|
331
|
-
simple:
|
|
339
|
+
}, [e("div", null, [i?.bottom?.()]), e("div", null, [t.pagination && e(ae, X(D.value, {
|
|
340
|
+
simple: s.value < 768
|
|
332
341
|
}), {
|
|
333
|
-
prefix: () => e("div", null, [
|
|
334
|
-
total:
|
|
342
|
+
prefix: () => e("div", null, [l("components.list.total", {
|
|
343
|
+
total: n.total.value || 0
|
|
335
344
|
})])
|
|
336
|
-
})])]), e(
|
|
337
|
-
|
|
345
|
+
})])]), e(de, {
|
|
346
|
+
isLoading: n.isBatching.value,
|
|
347
|
+
onBatch: n.onBatch,
|
|
348
|
+
selecteds: x.value.checkedRowKeys,
|
|
349
|
+
number: x.value.checkedRowKeys?.length || 0 || 0,
|
|
338
350
|
group: [[{
|
|
339
351
|
icon: "i-tabler:x",
|
|
340
352
|
onClick: () => {
|
|
341
|
-
|
|
353
|
+
A?.([]);
|
|
342
354
|
}
|
|
343
355
|
}], [{
|
|
344
|
-
label:
|
|
356
|
+
label: l("components.button.export"),
|
|
345
357
|
icon: "i-tabler:file-export",
|
|
346
358
|
loading: I.value,
|
|
347
|
-
onClick:
|
|
348
|
-
},
|
|
349
|
-
|
|
350
|
-
type: "error",
|
|
351
|
-
icon: "i-tabler:trash"
|
|
352
|
-
}]]
|
|
353
|
-
}, null), e(ae, {
|
|
359
|
+
onClick: K
|
|
360
|
+
}, ...t.batchOptions || []]]
|
|
361
|
+
}, null), e(re, {
|
|
354
362
|
draggable: !0,
|
|
355
363
|
class: "bg-white rounded dark:shadow-gray-950/80 dark:bg-gray-800/60 backdrop-blur min-w-110",
|
|
356
|
-
show:
|
|
357
|
-
onUpdateShow: (o) =>
|
|
364
|
+
show: c.show,
|
|
365
|
+
onUpdateShow: (o) => c.show = o
|
|
358
366
|
}, {
|
|
359
367
|
default: ({
|
|
360
368
|
draggableClass: o
|
|
361
369
|
}) => {
|
|
362
370
|
let a;
|
|
363
|
-
return e(
|
|
364
|
-
title:
|
|
371
|
+
return e(se, {
|
|
372
|
+
title: l("components.button.filter"),
|
|
365
373
|
handle: o,
|
|
366
|
-
onClose: () =>
|
|
374
|
+
onClose: () => c.show = !1
|
|
367
375
|
}, {
|
|
368
|
-
default: () => [e(
|
|
376
|
+
default: () => [e(ce, {
|
|
369
377
|
showLabel: !0,
|
|
370
378
|
labelPlacement: "top"
|
|
371
|
-
},
|
|
379
|
+
}, fe(a = C(J)) ? a : {
|
|
372
380
|
default: () => [a]
|
|
373
381
|
})]
|
|
374
382
|
});
|
|
375
383
|
}
|
|
376
|
-
}), e(
|
|
377
|
-
show:
|
|
378
|
-
onUpdateShow: (o) =>
|
|
384
|
+
}), e(S, {
|
|
385
|
+
show: m.show,
|
|
386
|
+
onUpdateShow: (o) => m.show = o,
|
|
379
387
|
autoFocus: !1,
|
|
380
388
|
placement: "left"
|
|
381
389
|
}, {
|
|
382
|
-
default: () => [e(
|
|
383
|
-
title: t.sideLeftTitle ||
|
|
384
|
-
onClose: () =>
|
|
390
|
+
default: () => [e(T, {
|
|
391
|
+
title: t.sideLeftTitle || l("components.button.sideLeft"),
|
|
392
|
+
onClose: () => m.show = !1,
|
|
385
393
|
scrollbar: !1
|
|
386
394
|
}, {
|
|
387
|
-
default: () => [
|
|
395
|
+
default: () => [i?.sideLeft?.()]
|
|
388
396
|
})]
|
|
389
|
-
}), e(
|
|
390
|
-
show:
|
|
391
|
-
onUpdateShow: (o) =>
|
|
397
|
+
}), e(S, {
|
|
398
|
+
show: d.show,
|
|
399
|
+
onUpdateShow: (o) => d.show = o,
|
|
392
400
|
autoFocus: !1,
|
|
393
401
|
placement: "right"
|
|
394
402
|
}, {
|
|
395
|
-
default: () => [e(
|
|
396
|
-
title: t.sideRightTitle ||
|
|
397
|
-
onClose: () =>
|
|
403
|
+
default: () => [e(T, {
|
|
404
|
+
title: t.sideRightTitle || l("components.button.sideRight"),
|
|
405
|
+
onClose: () => d.show = !1,
|
|
398
406
|
scrollbar: !1
|
|
399
407
|
}, {
|
|
400
|
-
default: () => [
|
|
408
|
+
default: () => [i?.sideRight?.()]
|
|
401
409
|
})]
|
|
402
410
|
})])
|
|
403
411
|
});
|
|
404
412
|
}
|
|
405
413
|
});
|
|
406
414
|
export {
|
|
407
|
-
|
|
415
|
+
zt as DuxTableLayout
|
|
408
416
|
};
|
|
@@ -1,9 +1,80 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useI18n as
|
|
3
|
-
import { NButton as
|
|
4
|
-
|
|
1
|
+
import { defineComponent as u, computed as a, createVNode as o, Transition as d, Fragment as c } from "vue";
|
|
2
|
+
import { useI18n as f } from "@duxweb/dvha-core";
|
|
3
|
+
import { NButton as l, NDropdown as y } from "naive-ui";
|
|
4
|
+
import "vue-router";
|
|
5
|
+
import { useDialog as g } from "../../hooks/dialog.js";
|
|
6
|
+
import "@overlastic/vue";
|
|
7
|
+
import "clsx";
|
|
8
|
+
import "vue-echarts";
|
|
9
|
+
import "@vueuse/core";
|
|
10
|
+
import "vue3-ace-editor";
|
|
11
|
+
import "ace-builds/src-noconflict/mode-vue";
|
|
12
|
+
import "ace-builds/src-noconflict/mode-javascript";
|
|
13
|
+
import "ace-builds/src-noconflict/mode-html";
|
|
14
|
+
import "ace-builds/src-noconflict/mode-json";
|
|
15
|
+
import "ace-builds/src-noconflict/mode-json5";
|
|
16
|
+
import "ace-builds/src-noconflict/theme-tomorrow_night";
|
|
17
|
+
import "ace-builds/src-noconflict/theme-tomorrow";
|
|
18
|
+
import "ace-builds/src-noconflict/ext-searchbox";
|
|
19
|
+
import "ace-builds/src-noconflict/ext-language_tools";
|
|
20
|
+
import "ace-builds/src-noconflict/mode-snippets";
|
|
21
|
+
import "vue-cropper";
|
|
22
|
+
import "jinrishici";
|
|
23
|
+
import "lodash-es";
|
|
24
|
+
import "vue-draggable-plus";
|
|
25
|
+
import "@vee-validate/i18n";
|
|
26
|
+
import "colorizr";
|
|
27
|
+
import "echarts";
|
|
28
|
+
import "highlight.js/lib/core";
|
|
29
|
+
import "highlight.js/lib/languages/bash";
|
|
30
|
+
import "highlight.js/lib/languages/css";
|
|
31
|
+
import "highlight.js/lib/languages/go";
|
|
32
|
+
import "highlight.js/lib/languages/java";
|
|
33
|
+
import "highlight.js/lib/languages/javascript";
|
|
34
|
+
import "highlight.js/lib/languages/json";
|
|
35
|
+
import "highlight.js/lib/languages/markdown";
|
|
36
|
+
import "highlight.js/lib/languages/php";
|
|
37
|
+
import "highlight.js/lib/languages/python";
|
|
38
|
+
import "highlight.js/lib/languages/shell";
|
|
39
|
+
import "highlight.js/lib/languages/sql";
|
|
40
|
+
import "highlight.js/lib/languages/typescript";
|
|
41
|
+
import "highlight.js/lib/languages/xml";
|
|
42
|
+
import "@ant-design/colors";
|
|
43
|
+
import "@unocss/preset-icons/browser";
|
|
44
|
+
import "@unocss/preset-typography";
|
|
45
|
+
import "unocss/preset-wind4";
|
|
46
|
+
import "@vee-validate/i18n/dist/locale/en.json";
|
|
47
|
+
import "@vee-validate/i18n/dist/locale/zh_CN.json";
|
|
48
|
+
import "vee-validate";
|
|
49
|
+
import "vue-command-palette";
|
|
50
|
+
import "@duxweb/dvha-naiveui";
|
|
51
|
+
import "../../pages/page404.js";
|
|
52
|
+
import "short-unique-id";
|
|
53
|
+
import "aieditor";
|
|
54
|
+
import "@vue-flow/core";
|
|
55
|
+
import "@vue-flow/background";
|
|
56
|
+
/* empty css */
|
|
57
|
+
import "mime";
|
|
58
|
+
import "@iconify-json/tabler/icons.json";
|
|
59
|
+
import "../posterEditor/elements/index.js";
|
|
60
|
+
import "fabric";
|
|
61
|
+
import "dayjs";
|
|
62
|
+
import "@tanstack/vue-query";
|
|
63
|
+
import "pinia";
|
|
64
|
+
const Bt = /* @__PURE__ */ u({
|
|
5
65
|
name: "DuxTableTools",
|
|
6
66
|
props: {
|
|
67
|
+
selecteds: {
|
|
68
|
+
type: Array,
|
|
69
|
+
default: []
|
|
70
|
+
},
|
|
71
|
+
isLoading: {
|
|
72
|
+
type: Boolean,
|
|
73
|
+
default: !1
|
|
74
|
+
},
|
|
75
|
+
onBatch: {
|
|
76
|
+
type: Function
|
|
77
|
+
},
|
|
7
78
|
number: {
|
|
8
79
|
type: Number
|
|
9
80
|
},
|
|
@@ -19,11 +90,11 @@ const v = /* @__PURE__ */ d({
|
|
|
19
90
|
},
|
|
20
91
|
setup(t) {
|
|
21
92
|
const {
|
|
22
|
-
t:
|
|
23
|
-
} =
|
|
24
|
-
return () =>
|
|
93
|
+
t: r
|
|
94
|
+
} = f(), i = a(() => t.group ? t.group : [t.options]), m = a(() => t.number && t.number > 0), p = g();
|
|
95
|
+
return () => o("div", {
|
|
25
96
|
class: "absolute bottom-0 left-0 right-0 pointer-events-none"
|
|
26
|
-
}, [
|
|
97
|
+
}, [o(d, {
|
|
27
98
|
name: "slide-up",
|
|
28
99
|
appear: !0,
|
|
29
100
|
enterActiveClass: "transition-all duration-200 ease-out",
|
|
@@ -33,36 +104,42 @@ const v = /* @__PURE__ */ d({
|
|
|
33
104
|
leaveFromClass: "transform translate-y-0 opacity-100",
|
|
34
105
|
leaveToClass: "transform translate-y-full opacity-0"
|
|
35
106
|
}, {
|
|
36
|
-
default: () => [
|
|
37
|
-
class: "flex h-12 px-1 justify-between lg:justify-center gap-2 pointer-events-auto
|
|
38
|
-
}, [
|
|
39
|
-
class: "h-10 mt-1 bg-
|
|
40
|
-
}, [
|
|
41
|
-
class: "
|
|
42
|
-
}, [
|
|
107
|
+
default: () => [m.value ? o("div", {
|
|
108
|
+
class: "flex h-12 px-1 justify-between lg:justify-center gap-2 pointer-events-auto"
|
|
109
|
+
}, [i.value?.map((s, n) => o("div", {
|
|
110
|
+
class: "h-10 mt-1 bg-default rounded px-4 py-1 shadow flex items-center gap-4"
|
|
111
|
+
}, [n === i.value.length - 1 && o(c, null, [o("span", {
|
|
112
|
+
class: " "
|
|
113
|
+
}, [r("components.list.selectedItems", {
|
|
43
114
|
num: t.number || 0
|
|
44
|
-
})]),
|
|
45
|
-
class: "w-px h-4 bg-
|
|
46
|
-
}, null)]),
|
|
115
|
+
})]), o("div", {
|
|
116
|
+
class: "w-px h-4 bg-elevated"
|
|
117
|
+
}, null)]), s?.map((e) => o(l, {
|
|
47
118
|
text: !0,
|
|
48
|
-
onClick:
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
119
|
+
onClick: () => {
|
|
120
|
+
e.onClick ? e.onClick?.(t.selecteds) : e.key && p.confirm({
|
|
121
|
+
title: r("components.list.batchTitle"),
|
|
122
|
+
content: r("components.list.batchContent")
|
|
123
|
+
}).then(() => {
|
|
124
|
+
t.onBatch?.("delivery");
|
|
125
|
+
}).catch(() => {
|
|
126
|
+
});
|
|
127
|
+
},
|
|
128
|
+
loading: e.loading || t.isLoading,
|
|
129
|
+
disabled: e.disabled || e.loading || t.isLoading,
|
|
130
|
+
type: e.type
|
|
53
131
|
}, {
|
|
54
|
-
default: () =>
|
|
55
|
-
icon: () =>
|
|
56
|
-
class:
|
|
132
|
+
default: () => e.label,
|
|
133
|
+
icon: () => o("div", {
|
|
134
|
+
class: e.icon
|
|
57
135
|
}, null)
|
|
58
|
-
})),
|
|
136
|
+
})), n === i.value.length - 1 && t.dropdown && t.dropdown.length > 0 && o(y, {
|
|
59
137
|
options: t.dropdown
|
|
60
138
|
}, {
|
|
61
|
-
default: () => [
|
|
62
|
-
text: !0
|
|
63
|
-
class: "text-gray-300"
|
|
139
|
+
default: () => [o(l, {
|
|
140
|
+
text: !0
|
|
64
141
|
}, {
|
|
65
|
-
icon: () =>
|
|
142
|
+
icon: () => o("div", {
|
|
66
143
|
class: "i-tabler:dots-vertical size-4"
|
|
67
144
|
}, null)
|
|
68
145
|
})]
|
|
@@ -71,5 +148,5 @@ const v = /* @__PURE__ */ d({
|
|
|
71
148
|
}
|
|
72
149
|
});
|
|
73
150
|
export {
|
|
74
|
-
|
|
151
|
+
Bt as DuxTableTools
|
|
75
152
|
};
|
|
@@ -50,6 +50,9 @@ import "@duxweb/dvha-naiveui";
|
|
|
50
50
|
import "../../pages/page404.js";
|
|
51
51
|
import "short-unique-id";
|
|
52
52
|
import "aieditor";
|
|
53
|
+
import "@vue-flow/core";
|
|
54
|
+
import "@vue-flow/background";
|
|
55
|
+
/* empty css */
|
|
53
56
|
import "mime";
|
|
54
57
|
import "@iconify-json/tabler/icons.json";
|
|
55
58
|
import "../posterEditor/elements/index.js";
|
|
@@ -57,7 +60,7 @@ import "fabric";
|
|
|
57
60
|
import "dayjs";
|
|
58
61
|
import { useLevel as c } from "../../hooks/level.js";
|
|
59
62
|
import "pinia";
|
|
60
|
-
const
|
|
63
|
+
const Ct = /* @__PURE__ */ v({
|
|
61
64
|
name: "DuxLevel",
|
|
62
65
|
props: {
|
|
63
66
|
value: {
|
|
@@ -128,5 +131,5 @@ const bt = /* @__PURE__ */ v({
|
|
|
128
131
|
}
|
|
129
132
|
});
|
|
130
133
|
export {
|
|
131
|
-
|
|
134
|
+
Ct as DuxLevel
|
|
132
135
|
};
|