@duxweb/dvha-pro 0.0.6 → 0.0.8
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/card/card.cjs +1 -1
- package/dist/cjs/components/chart/echart.cjs +1 -0
- package/dist/cjs/components/dialog/dialog.cjs +1 -1
- package/dist/cjs/components/drawer/drawer.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/settingForm.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/list/card.cjs +1 -1
- package/dist/cjs/components/list/list.cjs +1 -1
- package/dist/cjs/components/modal/modal.cjs +1 -1
- package/dist/cjs/components/modal/modalPage.cjs +1 -1
- package/dist/cjs/components/modal/modalTab.cjs +1 -1
- package/dist/cjs/components/select/cardSelect.cjs +1 -0
- package/dist/cjs/components/table/tablePage.cjs +1 -1
- package/dist/cjs/config/echart.cjs +1 -0
- package/dist/cjs/dvha-pro.css +1 -1
- package/dist/cjs/hooks/action.cjs +1 -1
- package/dist/cjs/hooks/dialog.cjs +1 -1
- package/dist/cjs/hooks/drawer.cjs +1 -1
- package/dist/cjs/hooks/echart.cjs +1 -0
- package/dist/cjs/hooks/modal.cjs +1 -1
- package/dist/cjs/hooks/table/media.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/main.cjs +1 -1
- package/dist/cjs/pages/authLayout.cjs +1 -1
- package/dist/cjs/pages/layout/global.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/page.cjs +1 -1
- package/dist/cjs/pages/page404.cjs +1 -1
- package/dist/cjs/pages/pageStatus.cjs +1 -1
- package/dist/cjs/theme/naiveTheme.cjs +1 -1
- package/dist/cjs/theme/uno.css.cjs +28 -7
- package/dist/esm/component.js +43 -41
- package/dist/esm/components/card/card.js +1 -1
- package/dist/esm/components/chart/echart.js +75 -0
- package/dist/esm/components/dialog/dialog.js +87 -93
- package/dist/esm/components/drawer/drawer.js +34 -32
- package/dist/esm/components/form/modalForm.js +1 -1
- package/dist/esm/components/form/pageForm.js +23 -19
- package/dist/esm/components/form/settingForm.js +22 -18
- package/dist/esm/components/layout/list.js +203 -142
- package/dist/esm/components/layout/table.js +210 -145
- package/dist/esm/components/list/card.js +42 -32
- package/dist/esm/components/list/list.js +27 -16
- package/dist/esm/components/modal/modal.js +46 -86
- package/dist/esm/components/modal/modalPage.js +23 -18
- package/dist/esm/components/modal/modalTab.js +11 -11
- package/dist/esm/components/select/cardSelect.js +103 -0
- package/dist/esm/components/table/tablePage.js +21 -18
- package/dist/esm/config/echart.js +456 -0
- package/dist/esm/dvha-pro.css +1 -1
- package/dist/esm/hooks/action.js +46 -45
- package/dist/esm/hooks/dialog.js +24 -7
- package/dist/esm/hooks/drawer.js +12 -8
- package/dist/esm/hooks/echart.js +469 -0
- package/dist/esm/hooks/modal.js +25 -9
- package/dist/esm/hooks/table/media.js +18 -14
- package/dist/esm/index.js +158 -135
- package/dist/esm/main.js +11 -8
- package/dist/esm/pages/authLayout.js +3 -2
- package/dist/esm/pages/layout/global.js +46 -33
- package/dist/esm/pages/layout/page.js +13 -9
- package/dist/esm/pages/login.js +25 -21
- package/dist/esm/pages/menu/avatar.js +14 -14
- package/dist/esm/pages/menu/button.js +14 -10
- package/dist/esm/pages/menu/cmd.js +26 -22
- package/dist/esm/pages/menu/main.js +26 -22
- package/dist/esm/pages/menu/mobile.js +11 -7
- package/dist/esm/pages/page.js +16 -16
- package/dist/esm/pages/page404.js +24 -20
- package/dist/esm/pages/pageStatus.js +12 -8
- package/dist/esm/theme/naiveTheme.js +57 -51
- package/dist/esm/theme/uno.css.js +28 -7
- package/dist/types/components/chart/echart.d.ts +284 -0
- package/dist/types/components/chart/index.d.ts +1 -0
- package/dist/types/components/dialog/dialog.d.ts +1 -20
- package/dist/types/components/drawer/drawer.d.ts +14 -4
- package/dist/types/components/form/formLayout.d.ts +1 -1
- package/dist/types/components/form/modalForm.d.ts +1 -1
- package/dist/types/components/index.d.ts +3 -0
- package/dist/types/components/layout/list.d.ts +18 -0
- package/dist/types/components/layout/table.d.ts +22 -1
- package/dist/types/components/list/card.d.ts +38 -0
- package/dist/types/components/list/list.d.ts +43 -2
- package/dist/types/components/modal/modal.d.ts +13 -31
- package/dist/types/components/modal/modalPage.d.ts +3 -6
- package/dist/types/components/panel/alert.d.ts +1 -1
- package/dist/types/components/select/cardSelect.d.ts +88 -0
- package/dist/types/components/select/index.d.ts +1 -0
- package/dist/types/components/table/tablePage.d.ts +28 -2
- package/dist/types/config/echart.d.ts +4 -0
- package/dist/types/config/index.d.ts +1 -0
- package/dist/types/hooks/drawer.d.ts +3 -2
- package/dist/types/hooks/echart.d.ts +166 -0
- package/dist/types/hooks/index.d.ts +2 -0
- package/dist/types/hooks/modal.d.ts +10 -5
- package/dist/types/hooks/table/types.d.ts +1 -0
- package/dist/types/main.d.ts +1 -0
- package/dist/types/pages/layout/global.d.ts +1 -0
- package/dist/types/pages/menu/avatar.d.ts +3 -3
- package/dist/types/pages/menu/button.d.ts +3 -3
- package/dist/types/pages/menu/main.d.ts +3 -3
- package/dist/types/pages/page.d.ts +1 -1
- package/package.json +8 -3
- package/dist/cjs/node_modules/.pnpm/@vueuse_integrations@13.3.0_async-validator@4.2.5_axios@1.10.0_focus-trap@7.6.5_vue@3.5.17_typescript@5.8.3_/node_modules/@vueuse/integrations/useFocusTrap.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@vueuse_shared@13.3.0_vue@3.5.17_typescript@5.8.3_/node_modules/@vueuse/shared/index.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/focus-trap@7.6.5/node_modules/focus-trap/dist/focus-trap.esm.cjs +0 -5
- package/dist/cjs/node_modules/.pnpm/tabbable@6.2.0/node_modules/tabbable/dist/index.esm.cjs +0 -4
- package/dist/esm/node_modules/.pnpm/@vueuse_integrations@13.3.0_async-validator@4.2.5_axios@1.10.0_focus-trap@7.6.5_vue@3.5.17_typescript@5.8.3_/node_modules/@vueuse/integrations/useFocusTrap.js +0 -43
- package/dist/esm/node_modules/.pnpm/@vueuse_shared@13.3.0_vue@3.5.17_typescript@5.8.3_/node_modules/@vueuse/shared/index.js +0 -6
- package/dist/esm/node_modules/.pnpm/focus-trap@7.6.5/node_modules/focus-trap/dist/focus-trap.esm.js +0 -473
- package/dist/esm/node_modules/.pnpm/tabbable@6.2.0/node_modules/tabbable/dist/index.esm.js +0 -202
|
@@ -1,25 +1,30 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useI18n as
|
|
3
|
-
import { useWindowSize as
|
|
4
|
-
import { NTooltip as
|
|
5
|
-
import { useAction as
|
|
6
|
-
import "@
|
|
7
|
-
import "
|
|
1
|
+
import { defineComponent as $, toRef as j, ref as D, computed as f, reactive as ee, watch as te, onMounted as ae, createVNode as e, h as U, mergeProps as ie } from "vue";
|
|
2
|
+
import { useI18n as ne, useExtendList as le, useJsonSchema as E } from "@duxweb/dvha-core";
|
|
3
|
+
import { useWindowSize as re } from "@vueuse/core";
|
|
4
|
+
import { NTooltip as g, NCheckbox as q, NTabs as ce, NTab as ue, NButton as d, NPopover as oe, NSpin as de, NProgress as pe, NPagination as fe } from "naive-ui";
|
|
5
|
+
import { useAction as ge } from "../../hooks/action.js";
|
|
6
|
+
import "@overlastic/vue";
|
|
7
|
+
import "vue-echarts";
|
|
8
8
|
import "clsx";
|
|
9
9
|
import "jinrishici";
|
|
10
|
-
import "
|
|
10
|
+
import "lodash-es";
|
|
11
11
|
import "vee-validate";
|
|
12
12
|
import "@vee-validate/i18n";
|
|
13
13
|
import "colorizr";
|
|
14
|
+
import "echarts";
|
|
15
|
+
import "@ant-design/colors";
|
|
16
|
+
import "@unocss/preset-typography";
|
|
14
17
|
import "vue-router";
|
|
15
18
|
import "vue-command-palette";
|
|
16
|
-
import
|
|
19
|
+
import "@duxweb/dvha-naiveui";
|
|
20
|
+
import { DuxPage as me } from "../../pages/page.js";
|
|
17
21
|
import "../../pages/page404.js";
|
|
18
|
-
import { DuxPageEmpty as
|
|
19
|
-
import { DuxTableFilter as
|
|
20
|
-
import { DuxTableTools as
|
|
22
|
+
import { DuxPageEmpty as ve } from "../../pages/pageEmpty.js";
|
|
23
|
+
import { DuxTableFilter as he } from "./filter.js";
|
|
24
|
+
import { DuxTableTools as be } from "./tools.js";
|
|
25
|
+
import { useDrawer as xe } from "../../hooks/drawer.js";
|
|
21
26
|
import "pinia";
|
|
22
|
-
const
|
|
27
|
+
const Ke = /* @__PURE__ */ $({
|
|
23
28
|
name: "DuxListLayout",
|
|
24
29
|
props: {
|
|
25
30
|
rowKey: {
|
|
@@ -52,151 +57,207 @@ const Ie = /* @__PURE__ */ _({
|
|
|
52
57
|
},
|
|
53
58
|
checkable: {
|
|
54
59
|
type: Boolean
|
|
60
|
+
},
|
|
61
|
+
sideLeftTitle: {
|
|
62
|
+
type: String,
|
|
63
|
+
default: ""
|
|
64
|
+
},
|
|
65
|
+
sideRightTitle: {
|
|
66
|
+
type: String,
|
|
67
|
+
default: ""
|
|
55
68
|
}
|
|
56
69
|
},
|
|
57
|
-
setup(
|
|
58
|
-
slots:
|
|
70
|
+
setup(a, {
|
|
71
|
+
slots: t
|
|
59
72
|
}) {
|
|
60
|
-
var
|
|
61
|
-
const
|
|
62
|
-
t:
|
|
63
|
-
} =
|
|
64
|
-
renderAction:
|
|
65
|
-
} =
|
|
73
|
+
var P;
|
|
74
|
+
const I = j(a.filter || {}), {
|
|
75
|
+
t: r
|
|
76
|
+
} = ne(), {
|
|
77
|
+
renderAction: O
|
|
78
|
+
} = ge(), W = j(a.pagination && typeof a.pagination == "object" ? a.pagination : {
|
|
66
79
|
page: 1,
|
|
67
80
|
pageSize: 20
|
|
68
|
-
}), m =
|
|
69
|
-
Object.assign(m.value,
|
|
70
|
-
},
|
|
71
|
-
path:
|
|
81
|
+
}), m = D({}), B = () => {
|
|
82
|
+
Object.assign(m.value, I.value);
|
|
83
|
+
}, i = le({
|
|
84
|
+
path: a.path,
|
|
72
85
|
filters: m.value,
|
|
73
|
-
pagination:
|
|
86
|
+
pagination: W.value
|
|
74
87
|
}), {
|
|
75
|
-
meta:
|
|
76
|
-
list:
|
|
77
|
-
isLoading:
|
|
78
|
-
autoRefetch:
|
|
79
|
-
autoCountdown:
|
|
80
|
-
onAutoRefetch:
|
|
81
|
-
isExporting:
|
|
82
|
-
isExportingRows:
|
|
88
|
+
meta: h,
|
|
89
|
+
list: y,
|
|
90
|
+
isLoading: s,
|
|
91
|
+
autoRefetch: V,
|
|
92
|
+
autoCountdown: w,
|
|
93
|
+
onAutoRefetch: J,
|
|
94
|
+
isExporting: b,
|
|
95
|
+
isExportingRows: M,
|
|
83
96
|
isImporting: S,
|
|
84
|
-
onExport:
|
|
85
|
-
onExportRows:
|
|
86
|
-
onImport:
|
|
87
|
-
} =
|
|
88
|
-
page:
|
|
89
|
-
pageSize:
|
|
90
|
-
pageCount:
|
|
91
|
-
pageSizes:
|
|
97
|
+
onExport: K,
|
|
98
|
+
onExportRows: Q,
|
|
99
|
+
onImport: G
|
|
100
|
+
} = i, H = f(() => ({
|
|
101
|
+
page: i.page.value,
|
|
102
|
+
pageSize: i.pageSize.value,
|
|
103
|
+
pageCount: i.pageCount.value,
|
|
104
|
+
pageSizes: i.pageSizes,
|
|
92
105
|
pageSlot: 5,
|
|
93
|
-
onUpdatePage:
|
|
94
|
-
onUpdatePageSize:
|
|
106
|
+
onUpdatePage: i.onUpdatePage,
|
|
107
|
+
onUpdatePageSize: i.onUpdatePageSize,
|
|
95
108
|
showSizePicker: !0,
|
|
96
109
|
showQuickJumper: !0
|
|
97
|
-
})), k =
|
|
110
|
+
})), k = ee({
|
|
98
111
|
show: !1,
|
|
99
112
|
collapse: !1
|
|
100
|
-
}),
|
|
101
|
-
width:
|
|
102
|
-
} =
|
|
103
|
-
var
|
|
104
|
-
if (!((
|
|
105
|
-
const
|
|
106
|
-
if (
|
|
107
|
-
return
|
|
108
|
-
const
|
|
109
|
-
let
|
|
110
|
-
return
|
|
113
|
+
}), v = D(((P = a.filterSchema) == null ? void 0 : P.length) || 0), {
|
|
114
|
+
width: u
|
|
115
|
+
} = re(), C = () => {
|
|
116
|
+
var p;
|
|
117
|
+
if (!((p = a.filterSchema) != null && p.length)) return 0;
|
|
118
|
+
const l = a.filterSchema.length;
|
|
119
|
+
if (l <= 3)
|
|
120
|
+
return l;
|
|
121
|
+
const o = u.value || 1024;
|
|
122
|
+
let c = 3;
|
|
123
|
+
return o >= 1280 ? c = 4 : o >= 1024 ? c = 3 : o >= 768 ? c = 2 : c = 1, Math.min(l, c);
|
|
111
124
|
};
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
}),
|
|
115
|
-
|
|
125
|
+
te(u, () => {
|
|
126
|
+
v.value = C();
|
|
127
|
+
}), ae(() => {
|
|
128
|
+
v.value = C();
|
|
116
129
|
});
|
|
117
|
-
const
|
|
130
|
+
const X = f(() => (a.filterSchema || []).slice(0, v.value)), z = f(() => (a.filterSchema || []).slice(v.value)), Y = f(() => z.value.length > 0), R = (l) => l.map((o) => {
|
|
118
131
|
const {
|
|
119
|
-
title:
|
|
120
|
-
...
|
|
121
|
-
} =
|
|
132
|
+
title: c,
|
|
133
|
+
...p
|
|
134
|
+
} = o;
|
|
122
135
|
return {
|
|
123
|
-
tag:
|
|
136
|
+
tag: he,
|
|
124
137
|
attrs: {
|
|
125
|
-
label:
|
|
138
|
+
label: c,
|
|
126
139
|
class: "flex-1 min-w-0"
|
|
127
140
|
},
|
|
128
|
-
children:
|
|
141
|
+
children: p
|
|
129
142
|
};
|
|
130
143
|
}), {
|
|
131
|
-
render:
|
|
144
|
+
render: Z
|
|
132
145
|
} = E({
|
|
133
|
-
data:
|
|
146
|
+
data: f(() => R(X.value))
|
|
134
147
|
}), {
|
|
135
|
-
render:
|
|
148
|
+
render: _
|
|
136
149
|
} = E({
|
|
137
|
-
data:
|
|
138
|
-
}),
|
|
150
|
+
data: f(() => R(z.value))
|
|
151
|
+
}), x = f(() => ({
|
|
139
152
|
import: !0,
|
|
140
153
|
export: !0,
|
|
141
154
|
refresh: !0,
|
|
142
|
-
...
|
|
143
|
-
}))
|
|
144
|
-
|
|
155
|
+
...a.tools
|
|
156
|
+
})), {
|
|
157
|
+
show: A
|
|
158
|
+
} = xe();
|
|
159
|
+
return () => e(me, {
|
|
145
160
|
padding: !1,
|
|
146
161
|
scrollbar: !1
|
|
147
162
|
}, {
|
|
163
|
+
sideLeft: () => {
|
|
164
|
+
var l;
|
|
165
|
+
return t != null && t.sideLeft && u.value >= 1024 ? (l = t == null ? void 0 : t.sideLeft) == null ? void 0 : l.call(t) : void 0;
|
|
166
|
+
},
|
|
167
|
+
sideRight: () => {
|
|
168
|
+
var l;
|
|
169
|
+
return t != null && t.sideRight && u.value >= 1024 ? (l = t == null ? void 0 : t.sideRight) == null ? void 0 : l.call(t) : void 0;
|
|
170
|
+
},
|
|
148
171
|
default: () => {
|
|
149
|
-
var o, c,
|
|
172
|
+
var l, o, c, p, L, F, N;
|
|
150
173
|
return e("div", {
|
|
151
174
|
class: "flex flex-col h-full relative"
|
|
152
175
|
}, [e("div", {
|
|
153
176
|
class: "lg:justify-between gap-2 p-3"
|
|
154
177
|
}, [e("div", {
|
|
155
|
-
class: "flex flex-col lg:flex-row items-center gap-2"
|
|
156
|
-
}, [
|
|
178
|
+
class: "flex flex-col lg:flex-row lg:items-center gap-2"
|
|
179
|
+
}, [a.checkable && e("div", {
|
|
157
180
|
class: "hidden lg:flex items-center pl-2"
|
|
158
|
-
}, [e(
|
|
181
|
+
}, [e(g, null, {
|
|
159
182
|
trigger: () => e("div", {
|
|
160
183
|
class: "flex items-center"
|
|
161
|
-
}, [e(
|
|
162
|
-
checked:
|
|
163
|
-
indeterminate:
|
|
164
|
-
onUpdateChecked:
|
|
184
|
+
}, [e(q, {
|
|
185
|
+
checked: i.isAllChecked.value,
|
|
186
|
+
indeterminate: i.isIndeterminate.value,
|
|
187
|
+
onUpdateChecked: i.toggleSelectAll
|
|
165
188
|
}, null)]),
|
|
166
|
-
default: () =>
|
|
167
|
-
})]),
|
|
189
|
+
default: () => r("components.list.selectAll")
|
|
190
|
+
})]), a.tabs && e("div", null, [e(ce, {
|
|
168
191
|
type: "segment",
|
|
169
192
|
size: "small",
|
|
170
193
|
style: {
|
|
171
194
|
"--n-tab-padding": "4px 10px"
|
|
172
195
|
},
|
|
173
|
-
"default-value": (
|
|
174
|
-
value: (
|
|
175
|
-
onUpdateValue: (
|
|
176
|
-
m.value.tab =
|
|
196
|
+
"default-value": (o = (l = a.tabs) == null ? void 0 : l[0]) == null ? void 0 : o.value,
|
|
197
|
+
value: (c = m.value) == null ? void 0 : c.tab,
|
|
198
|
+
onUpdateValue: (n) => {
|
|
199
|
+
m.value.tab = n;
|
|
177
200
|
}
|
|
178
201
|
}, {
|
|
179
202
|
default: () => {
|
|
180
|
-
var
|
|
181
|
-
return [(
|
|
182
|
-
name:
|
|
183
|
-
tab:
|
|
203
|
+
var n;
|
|
204
|
+
return [(n = a.tabs) == null ? void 0 : n.map((T) => e(ue, {
|
|
205
|
+
name: T.value,
|
|
206
|
+
tab: T.label
|
|
184
207
|
}, null))];
|
|
185
208
|
}
|
|
186
209
|
})]), e("div", {
|
|
187
210
|
class: "flex gap-2"
|
|
188
|
-
}, [e(
|
|
211
|
+
}, [(t == null ? void 0 : t.sideLeft) && u.value < 1024 && e(d, {
|
|
212
|
+
class: "flex-none",
|
|
213
|
+
secondary: !0,
|
|
214
|
+
loading: b.value,
|
|
215
|
+
onClick: () => {
|
|
216
|
+
A({
|
|
217
|
+
title: a.sideLeftTitle,
|
|
218
|
+
component: () => {
|
|
219
|
+
var n;
|
|
220
|
+
return e("div", null, [(n = t == null ? void 0 : t.sideLeft) == null ? void 0 : n.call(t)]);
|
|
221
|
+
},
|
|
222
|
+
width: 300,
|
|
223
|
+
placement: "left"
|
|
224
|
+
});
|
|
225
|
+
}
|
|
226
|
+
}, {
|
|
227
|
+
icon: () => e("div", {
|
|
228
|
+
class: "i-tabler:layout-sidebar-inactive size-4"
|
|
229
|
+
}, null)
|
|
230
|
+
}), e("div", {
|
|
189
231
|
class: "flex flex-wrap gap-2 items-center flex-1 lg:flex-none"
|
|
190
|
-
}, [
|
|
232
|
+
}, [U(Z)]), e(d, {
|
|
191
233
|
type: "primary",
|
|
192
234
|
secondary: !0,
|
|
193
|
-
onClick:
|
|
235
|
+
onClick: B
|
|
194
236
|
}, {
|
|
195
237
|
icon: () => e("div", {
|
|
196
238
|
class: "i-tabler:search size-4"
|
|
197
239
|
}, null),
|
|
198
|
-
default: () =>
|
|
199
|
-
}),
|
|
240
|
+
default: () => r("components.button.search")
|
|
241
|
+
}), (t == null ? void 0 : t.sideRight) && u.value < 1024 && e(d, {
|
|
242
|
+
class: "flex-none",
|
|
243
|
+
secondary: !0,
|
|
244
|
+
loading: b.value,
|
|
245
|
+
onClick: () => {
|
|
246
|
+
A({
|
|
247
|
+
title: a.sideRightTitle,
|
|
248
|
+
component: () => {
|
|
249
|
+
var n;
|
|
250
|
+
return e("div", null, [(n = t == null ? void 0 : t.sideRight) == null ? void 0 : n.call(t)]);
|
|
251
|
+
},
|
|
252
|
+
width: 300,
|
|
253
|
+
placement: "right"
|
|
254
|
+
});
|
|
255
|
+
}
|
|
256
|
+
}, {
|
|
257
|
+
icon: () => e("div", {
|
|
258
|
+
class: "i-tabler:layout-sidebar-right-inactive size-4"
|
|
259
|
+
}, null)
|
|
260
|
+
}), Y.value && e(oe, {
|
|
200
261
|
trigger: "click",
|
|
201
262
|
displayDirective: "show"
|
|
202
263
|
}, {
|
|
@@ -206,54 +267,54 @@ const Ie = /* @__PURE__ */ _({
|
|
|
206
267
|
k.collapse = !k.collapse;
|
|
207
268
|
}
|
|
208
269
|
}, {
|
|
209
|
-
default: () =>
|
|
270
|
+
default: () => r("components.button.advanced"),
|
|
210
271
|
icon: () => e("div", {
|
|
211
272
|
class: ["i-tabler:chevrons-down size-4 transition-all"]
|
|
212
273
|
}, null)
|
|
213
274
|
}),
|
|
214
275
|
default: () => e("div", {
|
|
215
276
|
class: "flex flex-col gap-2 py-1"
|
|
216
|
-
}, [
|
|
277
|
+
}, [U(_)])
|
|
217
278
|
})])]), e("div", {
|
|
218
279
|
class: "flex gap-2"
|
|
219
|
-
}, [(
|
|
220
|
-
type:
|
|
221
|
-
text:
|
|
222
|
-
items:
|
|
223
|
-
})])]), e(
|
|
224
|
-
show:
|
|
280
|
+
}, [(p = t.actions) == null ? void 0 : p.call(t), ((L = a.actions) == null ? void 0 : L.length) > 0 && O({
|
|
281
|
+
type: u.value < 1024 ? "dropdown" : "button",
|
|
282
|
+
text: u.value < 1024,
|
|
283
|
+
items: a.actions
|
|
284
|
+
})])]), e(de, {
|
|
285
|
+
show: s.value,
|
|
225
286
|
class: "flex-1 min-h-0",
|
|
226
287
|
contentClass: "h-full"
|
|
227
288
|
}, {
|
|
228
289
|
default: () => {
|
|
229
|
-
var
|
|
290
|
+
var n;
|
|
230
291
|
return [e("div", {
|
|
231
292
|
class: ["h-full overflow-auto rounded-lg px-3"]
|
|
232
|
-
}, [!
|
|
293
|
+
}, [!s.value && y.value.length === 0 && e("div", {
|
|
233
294
|
class: "flex justify-center items-center h-full"
|
|
234
|
-
}, [e(
|
|
295
|
+
}, [e(ve, null, null)]), y.value.length > 0 && ((n = t == null ? void 0 : t.default) == null ? void 0 : n.call(t, i))])];
|
|
235
296
|
}
|
|
236
297
|
}), e("div", {
|
|
237
298
|
class: "flex justify-between px-3 py-2 gap-2"
|
|
238
299
|
}, [e("div", null, [e("div", {
|
|
239
300
|
class: "flex gap-1 items-center"
|
|
240
|
-
}, [
|
|
301
|
+
}, [a.checkable && e(g, null, {
|
|
241
302
|
trigger: () => e(d, {
|
|
242
303
|
loading: S.value,
|
|
243
304
|
circle: !0,
|
|
244
305
|
quaternary: !0
|
|
245
306
|
}, {
|
|
246
|
-
default: () => [e(
|
|
247
|
-
checked:
|
|
248
|
-
indeterminate:
|
|
249
|
-
onUpdateChecked:
|
|
307
|
+
default: () => [e(q, {
|
|
308
|
+
checked: i.isAllChecked.value,
|
|
309
|
+
indeterminate: i.isIndeterminate.value,
|
|
310
|
+
onUpdateChecked: i.toggleSelectAll
|
|
250
311
|
}, null)]
|
|
251
312
|
}),
|
|
252
|
-
default: () =>
|
|
253
|
-
}), (F =
|
|
313
|
+
default: () => r("components.list.selectAll")
|
|
314
|
+
}), (F = t == null ? void 0 : t.tools) == null ? void 0 : F.call(t), x.value.export && e(g, null, {
|
|
254
315
|
trigger: () => e(d, {
|
|
255
|
-
loading:
|
|
256
|
-
onClick:
|
|
316
|
+
loading: b.value,
|
|
317
|
+
onClick: K,
|
|
257
318
|
circle: !0,
|
|
258
319
|
quaternary: !0
|
|
259
320
|
}, {
|
|
@@ -261,11 +322,11 @@ const Ie = /* @__PURE__ */ _({
|
|
|
261
322
|
class: "i-tabler:database-export size-4"
|
|
262
323
|
}, null)
|
|
263
324
|
}),
|
|
264
|
-
default: () =>
|
|
265
|
-
}),
|
|
325
|
+
default: () => r("components.button.export")
|
|
326
|
+
}), x.value.import && e(g, null, {
|
|
266
327
|
trigger: () => e(d, {
|
|
267
328
|
loading: S.value,
|
|
268
|
-
onClick:
|
|
329
|
+
onClick: G,
|
|
269
330
|
circle: !0,
|
|
270
331
|
quaternary: !0
|
|
271
332
|
}, {
|
|
@@ -273,54 +334,54 @@ const Ie = /* @__PURE__ */ _({
|
|
|
273
334
|
class: "i-tabler:database-import size-4"
|
|
274
335
|
}, null)
|
|
275
336
|
}),
|
|
276
|
-
default: () =>
|
|
277
|
-
}),
|
|
337
|
+
default: () => r("components.button.import")
|
|
338
|
+
}), x.value.refresh && e(g, null, {
|
|
278
339
|
trigger: () => e(d, {
|
|
279
|
-
onClick:
|
|
340
|
+
onClick: J,
|
|
280
341
|
circle: !0,
|
|
281
342
|
quaternary: !0
|
|
282
343
|
}, {
|
|
283
|
-
icon: () =>
|
|
344
|
+
icon: () => V.value ? e(pe, {
|
|
284
345
|
class: "size-4",
|
|
285
346
|
type: "circle",
|
|
286
|
-
percentage:
|
|
347
|
+
percentage: w.value * 10,
|
|
287
348
|
strokeWidth: 20,
|
|
288
349
|
color: "rgba(var(--ui-color-primary))"
|
|
289
350
|
}, {
|
|
290
351
|
default: () => [e("span", {
|
|
291
352
|
class: "text-8px"
|
|
292
|
-
}, [
|
|
353
|
+
}, [w.value])]
|
|
293
354
|
}) : e("div", {
|
|
294
355
|
class: "i-tabler:refresh size-4"
|
|
295
356
|
}, null)
|
|
296
357
|
}),
|
|
297
|
-
default: () =>
|
|
358
|
+
default: () => r("components.button.autoRefresh")
|
|
298
359
|
})])]), e("div", {
|
|
299
360
|
class: "flex items-center gap-2"
|
|
300
|
-
}, [(N =
|
|
301
|
-
simple:
|
|
361
|
+
}, [(N = t == null ? void 0 : t.bottom) == null ? void 0 : N.call(t), a.pagination && e(fe, ie(H.value, {
|
|
362
|
+
simple: u.value < 768
|
|
302
363
|
}), {
|
|
303
364
|
prefix: () => {
|
|
304
|
-
var
|
|
305
|
-
return e("div", null, [
|
|
306
|
-
total: ((
|
|
365
|
+
var n;
|
|
366
|
+
return e("div", null, [r("components.list.total", {
|
|
367
|
+
total: ((n = h == null ? void 0 : h.value) == null ? void 0 : n.total) || 0
|
|
307
368
|
})]);
|
|
308
369
|
}
|
|
309
|
-
})])]), e(
|
|
310
|
-
number:
|
|
370
|
+
})])]), e(be, {
|
|
371
|
+
number: i.checkeds.value.length,
|
|
311
372
|
group: [[{
|
|
312
373
|
icon: "i-tabler:x",
|
|
313
374
|
onClick: () => {
|
|
314
|
-
var
|
|
315
|
-
|
|
375
|
+
var n;
|
|
376
|
+
i.checkeds.value = [], (n = i.onUpdateChecked) == null || n.call(i, []);
|
|
316
377
|
}
|
|
317
378
|
}], [{
|
|
318
|
-
label:
|
|
379
|
+
label: r("components.button.export"),
|
|
319
380
|
icon: "i-tabler:file-export",
|
|
320
|
-
loading:
|
|
321
|
-
onClick:
|
|
381
|
+
loading: M.value,
|
|
382
|
+
onClick: Q
|
|
322
383
|
}, {
|
|
323
|
-
label:
|
|
384
|
+
label: r("components.button.delete"),
|
|
324
385
|
type: "error",
|
|
325
386
|
icon: "i-tabler:trash"
|
|
326
387
|
}]]
|
|
@@ -330,5 +391,5 @@ const Ie = /* @__PURE__ */ _({
|
|
|
330
391
|
}
|
|
331
392
|
});
|
|
332
393
|
export {
|
|
333
|
-
|
|
394
|
+
Ke as DuxListLayout
|
|
334
395
|
};
|