@duxweb/dvha-pro 0.0.6 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (121) hide show
  1. package/dist/cjs/component.cjs +1 -1
  2. package/dist/cjs/components/card/card.cjs +1 -1
  3. package/dist/cjs/components/chart/echart.cjs +1 -0
  4. package/dist/cjs/components/dialog/dialog.cjs +1 -1
  5. package/dist/cjs/components/drawer/drawer.cjs +1 -1
  6. package/dist/cjs/components/form/modalForm.cjs +1 -1
  7. package/dist/cjs/components/form/pageForm.cjs +1 -1
  8. package/dist/cjs/components/form/settingForm.cjs +1 -1
  9. package/dist/cjs/components/layout/list.cjs +1 -1
  10. package/dist/cjs/components/layout/table.cjs +1 -1
  11. package/dist/cjs/components/list/card.cjs +1 -1
  12. package/dist/cjs/components/list/list.cjs +1 -1
  13. package/dist/cjs/components/modal/modal.cjs +1 -1
  14. package/dist/cjs/components/modal/modalPage.cjs +1 -1
  15. package/dist/cjs/components/modal/modalTab.cjs +1 -1
  16. package/dist/cjs/components/select/cardSelect.cjs +1 -0
  17. package/dist/cjs/components/table/tablePage.cjs +1 -1
  18. package/dist/cjs/config/echart.cjs +1 -0
  19. package/dist/cjs/dvha-pro.css +1 -1
  20. package/dist/cjs/hooks/action.cjs +1 -1
  21. package/dist/cjs/hooks/dialog.cjs +1 -1
  22. package/dist/cjs/hooks/drawer.cjs +1 -1
  23. package/dist/cjs/hooks/echart.cjs +1 -0
  24. package/dist/cjs/hooks/modal.cjs +1 -1
  25. package/dist/cjs/hooks/table/media.cjs +1 -1
  26. package/dist/cjs/index.cjs +1 -1
  27. package/dist/cjs/main.cjs +1 -1
  28. package/dist/cjs/pages/authLayout.cjs +1 -1
  29. package/dist/cjs/pages/layout/global.cjs +1 -1
  30. package/dist/cjs/pages/layout/page.cjs +1 -1
  31. package/dist/cjs/pages/login.cjs +1 -1
  32. package/dist/cjs/pages/menu/avatar.cjs +1 -1
  33. package/dist/cjs/pages/menu/button.cjs +1 -1
  34. package/dist/cjs/pages/menu/cmd.cjs +1 -1
  35. package/dist/cjs/pages/menu/main.cjs +1 -1
  36. package/dist/cjs/pages/menu/mobile.cjs +1 -1
  37. package/dist/cjs/pages/page.cjs +1 -1
  38. package/dist/cjs/pages/page404.cjs +1 -1
  39. package/dist/cjs/pages/pageStatus.cjs +1 -1
  40. package/dist/cjs/theme/naiveTheme.cjs +1 -1
  41. package/dist/cjs/theme/uno.css.cjs +28 -7
  42. package/dist/esm/component.js +43 -41
  43. package/dist/esm/components/card/card.js +1 -1
  44. package/dist/esm/components/chart/echart.js +75 -0
  45. package/dist/esm/components/dialog/dialog.js +87 -93
  46. package/dist/esm/components/drawer/drawer.js +34 -32
  47. package/dist/esm/components/form/modalForm.js +1 -1
  48. package/dist/esm/components/form/pageForm.js +23 -19
  49. package/dist/esm/components/form/settingForm.js +22 -18
  50. package/dist/esm/components/layout/list.js +203 -142
  51. package/dist/esm/components/layout/table.js +210 -145
  52. package/dist/esm/components/list/card.js +42 -32
  53. package/dist/esm/components/list/list.js +27 -16
  54. package/dist/esm/components/modal/modal.js +46 -86
  55. package/dist/esm/components/modal/modalPage.js +23 -18
  56. package/dist/esm/components/modal/modalTab.js +11 -11
  57. package/dist/esm/components/select/cardSelect.js +103 -0
  58. package/dist/esm/components/table/tablePage.js +21 -18
  59. package/dist/esm/config/echart.js +456 -0
  60. package/dist/esm/dvha-pro.css +1 -1
  61. package/dist/esm/hooks/action.js +46 -45
  62. package/dist/esm/hooks/dialog.js +24 -7
  63. package/dist/esm/hooks/drawer.js +12 -8
  64. package/dist/esm/hooks/echart.js +469 -0
  65. package/dist/esm/hooks/modal.js +25 -9
  66. package/dist/esm/hooks/table/media.js +18 -14
  67. package/dist/esm/index.js +158 -135
  68. package/dist/esm/main.js +11 -8
  69. package/dist/esm/pages/authLayout.js +3 -2
  70. package/dist/esm/pages/layout/global.js +46 -33
  71. package/dist/esm/pages/layout/page.js +13 -9
  72. package/dist/esm/pages/login.js +25 -21
  73. package/dist/esm/pages/menu/avatar.js +14 -14
  74. package/dist/esm/pages/menu/button.js +14 -10
  75. package/dist/esm/pages/menu/cmd.js +26 -22
  76. package/dist/esm/pages/menu/main.js +26 -22
  77. package/dist/esm/pages/menu/mobile.js +11 -7
  78. package/dist/esm/pages/page.js +16 -16
  79. package/dist/esm/pages/page404.js +24 -20
  80. package/dist/esm/pages/pageStatus.js +12 -8
  81. package/dist/esm/theme/naiveTheme.js +57 -51
  82. package/dist/esm/theme/uno.css.js +28 -7
  83. package/dist/types/components/chart/echart.d.ts +284 -0
  84. package/dist/types/components/chart/index.d.ts +1 -0
  85. package/dist/types/components/dialog/dialog.d.ts +1 -20
  86. package/dist/types/components/drawer/drawer.d.ts +14 -4
  87. package/dist/types/components/form/formLayout.d.ts +1 -1
  88. package/dist/types/components/form/modalForm.d.ts +1 -1
  89. package/dist/types/components/index.d.ts +3 -0
  90. package/dist/types/components/layout/list.d.ts +18 -0
  91. package/dist/types/components/layout/table.d.ts +22 -1
  92. package/dist/types/components/list/card.d.ts +38 -0
  93. package/dist/types/components/list/list.d.ts +43 -2
  94. package/dist/types/components/modal/modal.d.ts +13 -31
  95. package/dist/types/components/modal/modalPage.d.ts +3 -6
  96. package/dist/types/components/panel/alert.d.ts +1 -1
  97. package/dist/types/components/select/cardSelect.d.ts +88 -0
  98. package/dist/types/components/select/index.d.ts +1 -0
  99. package/dist/types/components/table/tablePage.d.ts +28 -2
  100. package/dist/types/config/echart.d.ts +4 -0
  101. package/dist/types/config/index.d.ts +1 -0
  102. package/dist/types/hooks/drawer.d.ts +3 -2
  103. package/dist/types/hooks/echart.d.ts +166 -0
  104. package/dist/types/hooks/index.d.ts +2 -0
  105. package/dist/types/hooks/modal.d.ts +10 -5
  106. package/dist/types/hooks/table/types.d.ts +1 -0
  107. package/dist/types/main.d.ts +1 -0
  108. package/dist/types/pages/layout/global.d.ts +1 -0
  109. package/dist/types/pages/menu/avatar.d.ts +3 -3
  110. package/dist/types/pages/menu/button.d.ts +3 -3
  111. package/dist/types/pages/menu/main.d.ts +3 -3
  112. package/dist/types/pages/page.d.ts +1 -1
  113. package/package.json +8 -3
  114. 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
  115. 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
  116. package/dist/cjs/node_modules/.pnpm/focus-trap@7.6.5/node_modules/focus-trap/dist/focus-trap.esm.cjs +0 -5
  117. package/dist/cjs/node_modules/.pnpm/tabbable@6.2.0/node_modules/tabbable/dist/index.esm.cjs +0 -4
  118. 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
  119. 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
  120. package/dist/esm/node_modules/.pnpm/focus-trap@7.6.5/node_modules/focus-trap/dist/focus-trap.esm.js +0 -473
  121. 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 _, toRef as R, ref as U, computed as s, reactive as $, watch as ee, onMounted as te, createVNode as e, h as D, mergeProps as ae } from "vue";
2
- import { useI18n as le, useExtendList as ie, useJsonSchema as E } from "@duxweb/dvha-core";
3
- import { useWindowSize as ne } from "@vueuse/core";
4
- import { NTooltip as f, NCheckbox as L, NTabs as re, NTab as oe, NButton as d, NPopover as ce, NSpin as ue, NProgress as se, NPagination as de } from "naive-ui";
5
- import { useAction as pe } from "../../hooks/action.js";
6
- import "@duxweb/dvha-naiveui";
7
- import "lodash-es";
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 "@overlastic/vue";
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 { DuxPage as fe } from "../../pages/page.js";
19
+ import "@duxweb/dvha-naiveui";
20
+ import { DuxPage as me } from "../../pages/page.js";
17
21
  import "../../pages/page404.js";
18
- import { DuxPageEmpty as me } from "../../pages/pageEmpty.js";
19
- import { DuxTableFilter as ge } from "./filter.js";
20
- import { DuxTableTools as ve } from "./tools.js";
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 Ie = /* @__PURE__ */ _({
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(t, {
58
- slots: l
70
+ setup(a, {
71
+ slots: t
59
72
  }) {
60
- var A;
61
- const T = R(t.filter || {}), {
62
- t: n
63
- } = le(), {
64
- renderAction: q
65
- } = pe(), I = R(t.pagination && typeof t.pagination == "object" ? t.pagination : {
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 = U({}), O = () => {
69
- Object.assign(m.value, T.value);
70
- }, a = ie({
71
- path: t.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: I.value
86
+ pagination: W.value
74
87
  }), {
75
- meta: v,
76
- list: b,
77
- isLoading: x,
78
- autoRefetch: W,
79
- autoCountdown: y,
80
- onAutoRefetch: B,
81
- isExporting: V,
82
- isExportingRows: J,
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: M,
85
- onExportRows: K,
86
- onImport: Q
87
- } = a, G = s(() => ({
88
- page: a.page.value,
89
- pageSize: a.pageSize.value,
90
- pageCount: a.pageCount.value,
91
- pageSizes: a.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: a.onUpdatePage,
94
- onUpdatePageSize: a.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
- }), g = U(((A = t.filterSchema) == null ? void 0 : A.length) || 0), {
101
- width: p
102
- } = ne(), w = () => {
103
- var u;
104
- if (!((u = t.filterSchema) != null && u.length)) return 0;
105
- const o = t.filterSchema.length;
106
- if (o <= 3)
107
- return o;
108
- const c = p.value || 1024;
109
- let r = 3;
110
- return c >= 1280 ? r = 4 : c >= 1024 ? r = 3 : c >= 768 ? r = 2 : r = 1, Math.min(o, r);
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
- ee(p, () => {
113
- g.value = w();
114
- }), te(() => {
115
- g.value = w();
125
+ te(u, () => {
126
+ v.value = C();
127
+ }), ae(() => {
128
+ v.value = C();
116
129
  });
117
- const H = s(() => (t.filterSchema || []).slice(0, g.value)), C = s(() => (t.filterSchema || []).slice(g.value)), X = s(() => C.value.length > 0), z = (o) => o.map((c) => {
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: r,
120
- ...u
121
- } = c;
132
+ title: c,
133
+ ...p
134
+ } = o;
122
135
  return {
123
- tag: ge,
136
+ tag: he,
124
137
  attrs: {
125
- label: r,
138
+ label: c,
126
139
  class: "flex-1 min-w-0"
127
140
  },
128
- children: u
141
+ children: p
129
142
  };
130
143
  }), {
131
- render: Y
144
+ render: Z
132
145
  } = E({
133
- data: s(() => z(H.value))
146
+ data: f(() => R(X.value))
134
147
  }), {
135
- render: Z
148
+ render: _
136
149
  } = E({
137
- data: s(() => z(C.value))
138
- }), h = s(() => ({
150
+ data: f(() => R(z.value))
151
+ }), x = f(() => ({
139
152
  import: !0,
140
153
  export: !0,
141
154
  refresh: !0,
142
- ...t.tools
143
- }));
144
- return () => e(fe, {
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, r, u, P, F, N;
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
- }, [t.checkable && e("div", {
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(f, null, {
181
+ }, [e(g, null, {
159
182
  trigger: () => e("div", {
160
183
  class: "flex items-center"
161
- }, [e(L, {
162
- checked: a.isAllChecked.value,
163
- indeterminate: a.isIndeterminate.value,
164
- onUpdateChecked: a.toggleSelectAll
184
+ }, [e(q, {
185
+ checked: i.isAllChecked.value,
186
+ indeterminate: i.isIndeterminate.value,
187
+ onUpdateChecked: i.toggleSelectAll
165
188
  }, null)]),
166
- default: () => n("components.list.selectAll")
167
- })]), t.tabs && e("div", null, [e(re, {
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": (c = (o = t.tabs) == null ? void 0 : o[0]) == null ? void 0 : c.value,
174
- value: (r = m.value) == null ? void 0 : r.tab,
175
- onUpdateValue: (i) => {
176
- m.value.tab = i;
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 i;
181
- return [(i = t.tabs) == null ? void 0 : i.map((j) => e(oe, {
182
- name: j.value,
183
- tab: j.label
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("div", {
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
- }, [D(Y)]), e(d, {
232
+ }, [U(Z)]), e(d, {
191
233
  type: "primary",
192
234
  secondary: !0,
193
- onClick: O
235
+ onClick: B
194
236
  }, {
195
237
  icon: () => e("div", {
196
238
  class: "i-tabler:search size-4"
197
239
  }, null),
198
- default: () => n("components.button.search")
199
- }), X.value && e(ce, {
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: () => n("components.button.advanced"),
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
- }, [D(Z)])
277
+ }, [U(_)])
217
278
  })])]), e("div", {
218
279
  class: "flex gap-2"
219
- }, [(u = l.actions) == null ? void 0 : u.call(l), ((P = t.actions) == null ? void 0 : P.length) > 0 && q({
220
- type: p.value < 1024 ? "dropdown" : "button",
221
- text: p.value < 1024,
222
- items: t.actions
223
- })])]), e(ue, {
224
- show: x.value,
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 i;
290
+ var n;
230
291
  return [e("div", {
231
292
  class: ["h-full overflow-auto rounded-lg px-3"]
232
- }, [!x.value && b.value.length === 0 && e("div", {
293
+ }, [!s.value && y.value.length === 0 && e("div", {
233
294
  class: "flex justify-center items-center h-full"
234
- }, [e(me, null, null)]), b.value.length > 0 && ((i = l == null ? void 0 : l.default) == null ? void 0 : i.call(l, a))])];
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
- }, [t.checkable && e(f, null, {
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(L, {
247
- checked: a.isAllChecked.value,
248
- indeterminate: a.isIndeterminate.value,
249
- onUpdateChecked: a.toggleSelectAll
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: () => n("components.list.selectAll")
253
- }), (F = l == null ? void 0 : l.tools) == null ? void 0 : F.call(l), h.value.export && e(f, null, {
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: V.value,
256
- onClick: M,
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: () => n("components.button.export")
265
- }), h.value.import && e(f, null, {
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: Q,
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: () => n("components.button.import")
277
- }), h.value.refresh && e(f, null, {
337
+ default: () => r("components.button.import")
338
+ }), x.value.refresh && e(g, null, {
278
339
  trigger: () => e(d, {
279
- onClick: B,
340
+ onClick: J,
280
341
  circle: !0,
281
342
  quaternary: !0
282
343
  }, {
283
- icon: () => W.value ? e(se, {
344
+ icon: () => V.value ? e(pe, {
284
345
  class: "size-4",
285
346
  type: "circle",
286
- percentage: y.value * 10,
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
- }, [y.value])]
353
+ }, [w.value])]
293
354
  }) : e("div", {
294
355
  class: "i-tabler:refresh size-4"
295
356
  }, null)
296
357
  }),
297
- default: () => n("components.button.autoRefresh")
358
+ default: () => r("components.button.autoRefresh")
298
359
  })])]), e("div", {
299
360
  class: "flex items-center gap-2"
300
- }, [(N = l == null ? void 0 : l.bottom) == null ? void 0 : N.call(l), t.pagination && e(de, ae(G.value, {
301
- simple: p.value < 768
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 i;
305
- return e("div", null, [n("components.list.total", {
306
- total: ((i = v == null ? void 0 : v.value) == null ? void 0 : i.total) || 0
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(ve, {
310
- number: a.checkeds.value.length,
370
+ })])]), e(be, {
371
+ number: i.checkeds.value.length,
311
372
  group: [[{
312
373
  icon: "i-tabler:x",
313
374
  onClick: () => {
314
- var i;
315
- a.checkeds.value = [], (i = a.onUpdateChecked) == null || i.call(a, []);
375
+ var n;
376
+ i.checkeds.value = [], (n = i.onUpdateChecked) == null || n.call(i, []);
316
377
  }
317
378
  }], [{
318
- label: n("components.button.export"),
379
+ label: r("components.button.export"),
319
380
  icon: "i-tabler:file-export",
320
- loading: J.value,
321
- onClick: K
381
+ loading: M.value,
382
+ onClick: Q
322
383
  }, {
323
- label: n("components.button.delete"),
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
- Ie as DuxListLayout
394
+ Ke as DuxListLayout
334
395
  };