@duxweb/dvha-pro 1.0.17 → 1.0.19

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 (150) 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 -1
  4. package/dist/cjs/components/code/code.cjs +1 -0
  5. package/dist/cjs/components/crop/imageCrop.cjs +1 -1
  6. package/dist/cjs/components/data/dynamicSelect.cjs +1 -1
  7. package/dist/cjs/components/data/selectModal.cjs +1 -1
  8. package/dist/cjs/components/drawer/drawer.cjs +1 -1
  9. package/dist/cjs/components/drawer/drawerPage.cjs +1 -1
  10. package/dist/cjs/components/form/formItem.cjs +1 -1
  11. package/dist/cjs/components/form/formLayout.cjs +1 -1
  12. package/dist/cjs/components/form/modalForm.cjs +1 -1
  13. package/dist/cjs/components/form/pageForm.cjs +1 -1
  14. package/dist/cjs/components/form/settingForm.cjs +1 -1
  15. package/dist/cjs/components/icon/icon.cjs +1 -0
  16. package/dist/cjs/components/icon/iconPicker.cjs +1 -0
  17. package/dist/cjs/components/layout/filter.cjs +1 -1
  18. package/dist/cjs/components/layout/filterLayout.cjs +1 -0
  19. package/dist/cjs/components/layout/list.cjs +1 -1
  20. package/dist/cjs/components/layout/table.cjs +1 -1
  21. package/dist/cjs/components/level/level.cjs +1 -1
  22. package/dist/cjs/components/modal/modal.cjs +1 -1
  23. package/dist/cjs/components/modal/modalPage.cjs +1 -1
  24. package/dist/cjs/components/panel/collapse.cjs +1 -0
  25. package/dist/cjs/components/panel/setting.cjs +1 -1
  26. package/dist/cjs/components/status/listEmpty.cjs +1 -0
  27. package/dist/cjs/components/table/table.cjs +1 -0
  28. package/dist/cjs/components/table/tablePage.cjs +1 -1
  29. package/dist/cjs/components/tree/treeFilter.cjs +1 -0
  30. package/dist/cjs/components/upload/config.cjs +1 -0
  31. package/dist/cjs/components/upload/file.cjs +1 -1
  32. package/dist/cjs/components/upload/image.cjs +1 -1
  33. package/dist/cjs/components/upload/manage/item.cjs +1 -1
  34. package/dist/cjs/components/upload/manager.cjs +1 -1
  35. package/dist/cjs/dvha-pro.css +1 -1
  36. package/dist/cjs/hooks/action.cjs +1 -1
  37. package/dist/cjs/hooks/dialog.cjs +1 -1
  38. package/dist/cjs/hooks/drawer.cjs +1 -1
  39. package/dist/cjs/hooks/modal.cjs +1 -1
  40. package/dist/cjs/hooks/table/image.cjs +1 -1
  41. package/dist/cjs/hooks/table/media.cjs +1 -1
  42. package/dist/cjs/hooks/table.cjs +1 -1
  43. package/dist/cjs/index.cjs +1 -1
  44. package/dist/cjs/langs/en-US.json.cjs +1 -1
  45. package/dist/cjs/langs/zh-CN.json.cjs +1 -1
  46. package/dist/cjs/pages/authLayout.cjs +1 -1
  47. package/dist/cjs/pages/layout/page.cjs +1 -1
  48. package/dist/cjs/pages/login.cjs +1 -1
  49. package/dist/cjs/pages/menu/avatar.cjs +1 -1
  50. package/dist/cjs/pages/menu/button.cjs +1 -1
  51. package/dist/cjs/pages/menu/cmd.cjs +1 -1
  52. package/dist/cjs/pages/menu/main.cjs +1 -1
  53. package/dist/cjs/pages/menu/mobile.cjs +1 -1
  54. package/dist/cjs/pages/page.cjs +1 -1
  55. package/dist/cjs/pages/page404.cjs +1 -1
  56. package/dist/cjs/pages/pageStatus.cjs +1 -1
  57. package/dist/cjs/theme/naiveTheme.cjs +1 -1
  58. package/dist/cjs/theme/uno.css.cjs +27 -7
  59. package/dist/esm/component.js +52 -47
  60. package/dist/esm/components/card/card.js +6 -6
  61. package/dist/esm/components/chart/echart.js +18 -6
  62. package/dist/esm/components/code/code.js +53 -0
  63. package/dist/esm/components/crop/imageCrop.js +38 -26
  64. package/dist/esm/components/data/dynamicSelect.js +31 -19
  65. package/dist/esm/components/data/selectModal.js +50 -38
  66. package/dist/esm/components/drawer/drawer.js +17 -28
  67. package/dist/esm/components/drawer/drawerPage.js +54 -17
  68. package/dist/esm/components/form/formItem.js +13 -13
  69. package/dist/esm/components/form/formLayout.js +8 -8
  70. package/dist/esm/components/form/modalForm.js +46 -36
  71. package/dist/esm/components/form/pageForm.js +82 -43
  72. package/dist/esm/components/form/settingForm.js +39 -27
  73. package/dist/esm/components/icon/icon.js +89 -0
  74. package/dist/esm/components/icon/iconPicker.js +83 -0
  75. package/dist/esm/components/layout/filter.js +15 -11
  76. package/dist/esm/components/layout/filterLayout.js +34 -0
  77. package/dist/esm/components/layout/list.js +207 -160
  78. package/dist/esm/components/layout/table.js +213 -185
  79. package/dist/esm/components/level/level.js +29 -17
  80. package/dist/esm/components/modal/modal.js +9 -9
  81. package/dist/esm/components/modal/modalPage.js +2 -2
  82. package/dist/esm/components/panel/collapse.js +49 -0
  83. package/dist/esm/components/panel/setting.js +3 -3
  84. package/dist/esm/components/status/listEmpty.js +26 -0
  85. package/dist/esm/components/table/table.js +110 -0
  86. package/dist/esm/components/table/tablePage.js +24 -18
  87. package/dist/esm/components/tree/treeFilter.js +212 -0
  88. package/dist/esm/components/upload/config.js +32 -0
  89. package/dist/esm/components/upload/file.js +143 -116
  90. package/dist/esm/components/upload/image.js +96 -66
  91. package/dist/esm/components/upload/manage/item.js +18 -6
  92. package/dist/esm/components/upload/manager.js +203 -164
  93. package/dist/esm/dvha-pro.css +1 -1
  94. package/dist/esm/hooks/action.js +77 -75
  95. package/dist/esm/hooks/dialog.js +14 -2
  96. package/dist/esm/hooks/drawer.js +14 -2
  97. package/dist/esm/hooks/modal.js +14 -2
  98. package/dist/esm/hooks/table/image.js +22 -10
  99. package/dist/esm/hooks/table/media.js +22 -10
  100. package/dist/esm/hooks/table.js +16 -13
  101. package/dist/esm/index.js +200 -184
  102. package/dist/esm/langs/en-US.json.js +1 -1
  103. package/dist/esm/langs/zh-CN.json.js +1 -1
  104. package/dist/esm/pages/authLayout.js +23 -11
  105. package/dist/esm/pages/layout/page.js +29 -17
  106. package/dist/esm/pages/login.js +41 -29
  107. package/dist/esm/pages/menu/avatar.js +46 -34
  108. package/dist/esm/pages/menu/button.js +26 -14
  109. package/dist/esm/pages/menu/cmd.js +46 -34
  110. package/dist/esm/pages/menu/main.js +41 -27
  111. package/dist/esm/pages/menu/mobile.js +14 -2
  112. package/dist/esm/pages/page.js +1 -1
  113. package/dist/esm/pages/page404.js +21 -9
  114. package/dist/esm/pages/pageStatus.js +33 -16
  115. package/dist/esm/theme/naiveTheme.js +6 -6
  116. package/dist/esm/theme/uno.css.js +27 -7
  117. package/dist/types/components/code/code.d.ts +44 -0
  118. package/dist/types/components/code/index.d.ts +1 -0
  119. package/dist/types/components/drawer/drawer.d.ts +2 -0
  120. package/dist/types/components/drawer/drawerPage.d.ts +20 -1
  121. package/dist/types/components/form/formItem.d.ts +2 -2
  122. package/dist/types/components/form/formLayout.d.ts +3 -3
  123. package/dist/types/components/form/modalForm.d.ts +3 -3
  124. package/dist/types/components/form/pageForm.d.ts +12 -0
  125. package/dist/types/components/icon/icon.d.ts +7 -0
  126. package/dist/types/components/icon/iconPicker.d.ts +9 -0
  127. package/dist/types/components/icon/index.d.ts +2 -0
  128. package/dist/types/components/index.d.ts +3 -0
  129. package/dist/types/components/layout/filterLayout.d.ts +32 -0
  130. package/dist/types/components/layout/index.d.ts +1 -0
  131. package/dist/types/components/layout/table.d.ts +3 -0
  132. package/dist/types/components/panel/collapse.d.ts +14 -0
  133. package/dist/types/components/panel/index.d.ts +1 -0
  134. package/dist/types/components/select/cardSelect.d.ts +1 -1
  135. package/dist/types/components/status/index.d.ts +1 -0
  136. package/dist/types/components/status/listEmpty.d.ts +11 -0
  137. package/dist/types/components/table/index.d.ts +1 -0
  138. package/dist/types/components/table/table.d.ts +6552 -0
  139. package/dist/types/components/table/tablePage.d.ts +3 -0
  140. package/dist/types/components/tree/index.d.ts +1 -0
  141. package/dist/types/components/tree/treeFilter.d.ts +24 -0
  142. package/dist/types/components/upload/config.d.ts +13 -0
  143. package/dist/types/components/upload/file.d.ts +4 -0
  144. package/dist/types/components/upload/image.d.ts +30 -2
  145. package/dist/types/components/upload/manager.d.ts +4 -0
  146. package/dist/types/hooks/drawer.d.ts +1 -0
  147. package/dist/types/hooks/table/types.d.ts +1 -0
  148. package/dist/types/main.d.ts +6 -0
  149. package/dist/types/pages/pageStatus.d.ts +11 -1
  150. package/package.json +6 -4
@@ -0,0 +1,34 @@
1
+ import { defineComponent as t, provide as o, createVNode as f } from "vue";
2
+ const r = /* @__PURE__ */ t({
3
+ name: "DuxFilterLayout",
4
+ props: {
5
+ showLabel: {
6
+ type: Boolean,
7
+ default: !1
8
+ },
9
+ labelPlacement: {
10
+ type: String,
11
+ default: "left"
12
+ },
13
+ horizontal: {
14
+ type: Boolean,
15
+ default: !1
16
+ }
17
+ },
18
+ setup(e, {
19
+ slots: l
20
+ }) {
21
+ return o("dux.filter", {
22
+ showLabel: e.showLabel,
23
+ labelPlacement: e.labelPlacement
24
+ }), () => {
25
+ var a;
26
+ return f("div", {
27
+ class: ["flex flex-col gap-2", e.horizontal ? "flex-row" : "flex-col"]
28
+ }, [(a = l.default) == null ? void 0 : a.call(l)]);
29
+ };
30
+ }
31
+ });
32
+ export {
33
+ r as DuxFilterLayout
34
+ };
@@ -1,17 +1,20 @@
1
- import { defineComponent as $, toRef as j, ref as D, computed as m, reactive as ee, watch as te, onMounted as ie, createVNode as e, h as U, mergeProps as ae } 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 f, NCheckbox as q, NTabs as ce, NTab as ue, NButton as d, NPopover as oe, NSpin as de, NProgress as pe, NPagination as me } from "naive-ui";
5
- import { useAction as fe } from "../../hooks/action.js";
1
+ import { defineComponent as ie, toRef as U, ref as T, computed as m, reactive as S, watch as le, onMounted as ne, createVNode as e, h as O, mergeProps as re, isVNode as oe } from "vue";
2
+ import { useI18n as ue, useExtendList as ce, useJsonSchema as E } from "@duxweb/dvha-core";
3
+ import { useWindowSize as de } from "@vueuse/core";
4
+ import { NTooltip as s, NCheckbox as q, NTabs as pe, NTab as me, NButton as d, NSpin as fe, NProgress as ge, NPagination as he, NModal as ve, NDrawer as I } from "naive-ui";
5
+ import { useAction as se } from "../../hooks/action.js";
6
6
  import "@overlastic/vue";
7
7
  import "clsx";
8
8
  import "vue-echarts";
9
9
  import "vue-cropper";
10
+ import be from "../modal/modalPage.js";
10
11
  import "jinrishici";
11
12
  import "lodash-es";
12
13
  import "vue-draggable-plus";
14
+ import { DuxDrawerPage as M } from "../drawer/drawerPage.js";
13
15
  import "aieditor";
14
16
  import "vee-validate";
17
+ import "vue-router";
15
18
  import "@vee-validate/i18n";
16
19
  import "colorizr";
17
20
  import "echarts";
@@ -21,20 +24,34 @@ import "@unocss/preset-typography";
21
24
  import "unocss/preset-wind4";
22
25
  import "@vee-validate/i18n/dist/locale/en.json";
23
26
  import "@vee-validate/i18n/dist/locale/zh_CN.json";
24
- import "vue-router";
25
27
  import "vue-command-palette";
26
28
  import "@duxweb/dvha-naiveui";
27
- import { DuxPage as ge } from "../../pages/page.js";
29
+ import { DuxPage as xe } from "../../pages/page.js";
28
30
  import "../../pages/page404.js";
29
- import { DuxPageEmpty as ve } from "../../pages/pageEmpty.js";
30
- import { DuxTableFilter as he } from "./filter.js";
31
- import { DuxTableTools as be } from "./tools.js";
31
+ import { DuxPageEmpty as we } from "../../pages/pageEmpty.js";
32
+ import "@iconify-json/tabler/icons.json";
33
+ import { DuxTableFilter as ye } from "./filter.js";
34
+ import { DuxFilterLayout as Se } from "./filterLayout.js";
35
+ import { DuxTableTools as ke } from "./tools.js";
32
36
  import "mime";
37
+ import "vue3-ace-editor";
38
+ import "ace-builds/src-noconflict/mode-vue";
39
+ import "ace-builds/src-noconflict/mode-javascript";
40
+ import "ace-builds/src-noconflict/mode-html";
41
+ import "ace-builds/src-noconflict/mode-json";
42
+ import "ace-builds/src-noconflict/mode-json5";
43
+ import "ace-builds/src-noconflict/theme-tomorrow_night";
44
+ import "ace-builds/src-noconflict/theme-tomorrow";
45
+ import "ace-builds/src-noconflict/ext-searchbox";
46
+ import "ace-builds/src-noconflict/ext-language_tools";
47
+ import "ace-builds/src-noconflict/mode-snippets";
33
48
  import "dayjs";
34
- import { useDrawer as xe } from "../../hooks/drawer.js";
35
49
  import "@tanstack/vue-query";
36
50
  import "pinia";
37
- const tt = /* @__PURE__ */ $({
51
+ function Ce(i) {
52
+ return typeof i == "function" || Object.prototype.toString.call(i) === "[object Object]" && !oe(i);
53
+ }
54
+ const yt = /* @__PURE__ */ ie({
38
55
  name: "DuxListLayout",
39
56
  props: {
40
57
  rowKey: {
@@ -80,106 +97,107 @@ const tt = /* @__PURE__ */ $({
80
97
  setup(i, {
81
98
  slots: t
82
99
  }) {
83
- var P;
84
- const I = j(i.filter || {}), {
100
+ var F;
101
+ const V = U(i.filter || {}), {
85
102
  t: r
86
- } = ne(), {
87
- renderAction: O
88
- } = fe(), W = j(i.pagination && typeof i.pagination == "object" ? i.pagination : {
103
+ } = ue(), {
104
+ renderAction: W
105
+ } = se(), B = U(i.pagination && typeof i.pagination == "object" ? i.pagination : {
89
106
  page: 1,
90
107
  pageSize: 20
91
- }), g = D({}), B = () => {
92
- Object.assign(g.value, I.value);
93
- }, a = le({
108
+ }), b = T({}), J = () => {
109
+ Object.assign(b.value, V.value);
110
+ }, l = ce({
94
111
  path: i.path,
95
- filters: g.value,
96
- pagination: W.value
112
+ filters: b.value,
113
+ pagination: B.value
97
114
  }), {
98
- meta: h,
99
- list: y,
100
- isLoading: s,
101
- autoRefetch: V,
102
- autoCountdown: w,
103
- onAutoRefetch: J,
104
- isExporting: b,
105
- isExportingRows: M,
106
- isImporting: S,
107
- onExport: K,
108
- onExportRows: Q,
109
- onImport: G
110
- } = a, H = m(() => ({
111
- page: a.page.value,
112
- pageSize: a.pageSize.value,
113
- pageCount: a.pageCount.value,
114
- pageSizes: a.pageSizes,
115
+ meta: w,
116
+ list: k,
117
+ isLoading: C,
118
+ autoRefetch: _,
119
+ autoCountdown: z,
120
+ onAutoRefetch: K,
121
+ isExporting: Q,
122
+ isExportingRows: G,
123
+ isImporting: L,
124
+ onExport: H,
125
+ onExportRows: X,
126
+ onImport: Y
127
+ } = l, Z = m(() => ({
128
+ page: l.page.value,
129
+ pageSize: l.pageSize.value,
130
+ pageCount: l.pageCount.value,
131
+ pageSizes: l.pageSizes,
115
132
  pageSlot: 5,
116
- onUpdatePage: a.onUpdatePage,
117
- onUpdatePageSize: a.onUpdatePageSize,
133
+ onUpdatePage: l.onUpdatePage,
134
+ onUpdatePageSize: l.onUpdatePageSize,
118
135
  showSizePicker: !0,
119
136
  showQuickJumper: !0
120
- })), k = ee({
121
- show: !1,
122
- collapse: !1
123
- }), v = D(((P = i.filterSchema) == null ? void 0 : P.length) || 0), {
137
+ })), g = S({
138
+ show: !1
139
+ }), h = S({
140
+ show: !1
141
+ }), v = S({
142
+ show: !1
143
+ }), x = T(((F = i.filterSchema) == null ? void 0 : F.length) || 0), {
124
144
  width: u
125
- } = re(), C = () => {
145
+ } = de(), R = () => {
126
146
  var p;
127
147
  if (!((p = i.filterSchema) != null && p.length)) return 0;
128
- const l = i.filterSchema.length;
129
- if (l <= 3)
130
- return l;
131
- const o = u.value || 1024;
132
- let c = 3;
133
- return o >= 1280 ? c = 4 : o >= 1024 ? c = 3 : o >= 768 ? c = 2 : c = 1, Math.min(l, c);
148
+ const n = i.filterSchema.length;
149
+ if (n <= 3)
150
+ return n;
151
+ const c = u.value || 1024;
152
+ let o = 3;
153
+ return c >= 1280 ? o = 4 : c >= 1024 ? o = 3 : c >= 768 ? o = 2 : o = 1, Math.min(n, o);
134
154
  };
135
- te(u, () => {
136
- v.value = C();
137
- }), ie(() => {
138
- v.value = C();
155
+ le(u, () => {
156
+ x.value = R();
157
+ }), ne(() => {
158
+ x.value = R();
139
159
  });
140
- const X = m(() => (i.filterSchema || []).slice(0, v.value)), z = m(() => (i.filterSchema || []).slice(v.value)), Y = m(() => z.value.length > 0), R = (l) => l.map((o) => {
160
+ const $ = m(() => (i.filterSchema || []).slice(0, x.value)), P = m(() => (i.filterSchema || []).slice(x.value)), ee = m(() => P.value.length > 0), A = (n) => n.map((c) => {
141
161
  const {
142
- title: c,
162
+ title: o,
143
163
  ...p
144
- } = o;
164
+ } = c;
145
165
  return {
146
- tag: he,
166
+ tag: ye,
147
167
  attrs: {
148
- label: c,
168
+ label: o,
149
169
  class: "flex-1 min-w-0"
150
170
  },
151
171
  children: p
152
172
  };
153
173
  }), {
154
- render: Z
174
+ render: te
155
175
  } = E({
156
- data: m(() => R(X.value))
176
+ data: m(() => A($.value))
157
177
  }), {
158
- render: _
178
+ render: ae
159
179
  } = E({
160
- data: m(() => R(z.value))
161
- }), x = m(() => ({
180
+ data: m(() => A(P.value))
181
+ }), y = m(() => ({
162
182
  import: !0,
163
183
  export: !0,
164
184
  refresh: !0,
165
185
  ...i.tools
166
- })), {
167
- show: A
168
- } = xe();
169
- return () => e(ge, {
186
+ }));
187
+ return () => e(xe, {
170
188
  padding: !1,
171
189
  scrollbar: !1
172
190
  }, {
173
191
  sideLeft: () => {
174
- var l;
175
- return t != null && t.sideLeft && u.value >= 1024 ? (l = t == null ? void 0 : t.sideLeft) == null ? void 0 : l.call(t) : void 0;
192
+ var n;
193
+ return t != null && t.sideLeft && u.value >= 1024 ? (n = t == null ? void 0 : t.sideLeft) == null ? void 0 : n.call(t) : void 0;
176
194
  },
177
195
  sideRight: () => {
178
- var l;
179
- return t != null && t.sideRight && u.value >= 1024 ? (l = t == null ? void 0 : t.sideRight) == null ? void 0 : l.call(t) : void 0;
196
+ var n;
197
+ return t != null && t.sideRight && u.value >= 1024 ? (n = t == null ? void 0 : t.sideRight) == null ? void 0 : n.call(t) : void 0;
180
198
  },
181
199
  default: () => {
182
- var l, o, c, p, L, F, N;
200
+ var n, c, o, p, N, j, D;
183
201
  return e("div", {
184
202
  class: "flex flex-col h-full relative"
185
203
  }, [e("div", {
@@ -188,32 +206,32 @@ const tt = /* @__PURE__ */ $({
188
206
  class: "flex flex-col lg:flex-row lg:items-center gap-2"
189
207
  }, [i.checkable && e("div", {
190
208
  class: "hidden lg:flex items-center pl-2"
191
- }, [e(f, null, {
209
+ }, [e(s, null, {
192
210
  trigger: () => e("div", {
193
211
  class: "flex items-center"
194
212
  }, [e(q, {
195
- checked: a.isAllChecked.value,
196
- indeterminate: a.isIndeterminate.value,
197
- onUpdateChecked: a.toggleSelectAll
213
+ checked: l.isAllChecked.value,
214
+ indeterminate: l.isIndeterminate.value,
215
+ onUpdateChecked: l.toggleSelectAll
198
216
  }, null)]),
199
217
  default: () => r("components.list.selectAll")
200
- })]), i.tabs && e("div", null, [e(ce, {
218
+ })]), i.tabs && e("div", null, [e(pe, {
201
219
  type: "segment",
202
220
  size: "small",
203
221
  style: {
204
222
  "--n-tab-padding": "4px 10px"
205
223
  },
206
- "default-value": (o = (l = i.tabs) == null ? void 0 : l[0]) == null ? void 0 : o.value,
207
- value: (c = g.value) == null ? void 0 : c.tab,
208
- onUpdateValue: (n) => {
209
- g.value.tab = n;
224
+ "default-value": (c = (n = i.tabs) == null ? void 0 : n[0]) == null ? void 0 : c.value,
225
+ value: (o = b.value) == null ? void 0 : o.tab,
226
+ onUpdateValue: (a) => {
227
+ b.value.tab = a;
210
228
  }
211
229
  }, {
212
230
  default: () => {
213
- var n;
214
- return [(n = i.tabs) == null ? void 0 : n.map((T) => e(ue, {
215
- name: T.value,
216
- tab: T.label
231
+ var a;
232
+ return [(a = i.tabs) == null ? void 0 : a.map((f) => e(me, {
233
+ name: f.value,
234
+ tab: f.label
217
235
  }, null))];
218
236
  }
219
237
  })]), e("div", {
@@ -221,17 +239,8 @@ const tt = /* @__PURE__ */ $({
221
239
  }, [(t == null ? void 0 : t.sideLeft) && u.value < 1024 && e(d, {
222
240
  class: "flex-none",
223
241
  secondary: !0,
224
- loading: b.value,
225
242
  onClick: () => {
226
- A({
227
- title: i.sideLeftTitle,
228
- component: () => {
229
- var n;
230
- return e("div", null, [(n = t == null ? void 0 : t.sideLeft) == null ? void 0 : n.call(t)]);
231
- },
232
- width: 300,
233
- placement: "left"
234
- });
243
+ h.show = !h.show;
235
244
  }
236
245
  }, {
237
246
  icon: () => e("div", {
@@ -239,10 +248,10 @@ const tt = /* @__PURE__ */ $({
239
248
  }, null)
240
249
  }), e("div", {
241
250
  class: "flex flex-wrap gap-2 items-center flex-1 lg:flex-none"
242
- }, [U(Z)]), e(d, {
251
+ }, [O(te)]), e(d, {
243
252
  type: "primary",
244
253
  secondary: !0,
245
- onClick: B
254
+ onClick: J
246
255
  }, {
247
256
  icon: () => e("div", {
248
257
  class: "i-tabler:search size-4"
@@ -251,80 +260,63 @@ const tt = /* @__PURE__ */ $({
251
260
  }), (t == null ? void 0 : t.sideRight) && u.value < 1024 && e(d, {
252
261
  class: "flex-none",
253
262
  secondary: !0,
254
- loading: b.value,
255
263
  onClick: () => {
256
- A({
257
- title: i.sideRightTitle,
258
- component: () => {
259
- var n;
260
- return e("div", null, [(n = t == null ? void 0 : t.sideRight) == null ? void 0 : n.call(t)]);
261
- },
262
- width: 300,
263
- placement: "right"
264
- });
264
+ v.show = !v.show;
265
265
  }
266
266
  }, {
267
267
  icon: () => e("div", {
268
268
  class: "i-tabler:layout-sidebar-right-inactive size-4"
269
269
  }, null)
270
- }), Y.value && e(oe, {
271
- trigger: "click",
272
- displayDirective: "show"
270
+ }), ee.value && e(d, {
271
+ iconPlacement: "right",
272
+ onClick: () => {
273
+ g.show = !g.show;
274
+ }
273
275
  }, {
274
- trigger: () => e(d, {
275
- iconPlacement: "right",
276
- onClick: () => {
277
- k.collapse = !k.collapse;
278
- }
279
- }, {
280
- default: () => r("components.button.advanced"),
281
- icon: () => e("div", {
282
- class: ["i-tabler:chevrons-down size-4 transition-all"]
283
- }, null)
284
- }),
285
- default: () => e("div", {
286
- class: "flex flex-col gap-2 py-1"
287
- }, [U(_)])
276
+ default: () => r("components.button.advanced"),
277
+ icon: () => e("div", {
278
+ class: ["i-tabler:chevrons-down size-4 transition-all"]
279
+ }, null)
288
280
  })])]), e("div", {
289
281
  class: "flex gap-2"
290
- }, [(p = t.actions) == null ? void 0 : p.call(t), ((L = i.actions) == null ? void 0 : L.length) > 0 && O({
282
+ }, [(p = t.actions) == null ? void 0 : p.call(t), ((N = i.actions) == null ? void 0 : N.length) > 0 && W({
291
283
  type: u.value < 1024 ? "dropdown" : "button",
292
284
  text: u.value < 1024,
293
285
  items: i.actions
294
- })])]), e(de, {
295
- show: s.value,
286
+ })])]), e(fe, {
287
+ show: C.value,
296
288
  class: "flex-1 min-h-0",
297
289
  contentClass: "h-full"
298
290
  }, {
299
291
  default: () => {
300
- var n;
292
+ var a;
301
293
  return [e("div", {
302
294
  class: ["h-full overflow-auto rounded-lg px-3"]
303
- }, [!s.value && y.value.length === 0 && e("div", {
295
+ }, [!C.value && k.value.length === 0 && e("div", {
304
296
  class: "flex justify-center items-center h-full"
305
- }, [e(ve, null, null)]), y.value.length > 0 && ((n = t == null ? void 0 : t.default) == null ? void 0 : n.call(t, a))])];
297
+ }, [e(we, null, null)]), k.value.length > 0 && ((a = t == null ? void 0 : t.default) == null ? void 0 : a.call(t, l))])];
306
298
  }
307
299
  }), e("div", {
308
300
  class: "flex justify-between px-3 py-2 gap-2"
309
301
  }, [e("div", null, [e("div", {
310
302
  class: "flex gap-1 items-center"
311
- }, [i.checkable && e(f, null, {
303
+ }, [i.checkable && e(s, null, {
312
304
  trigger: () => e(d, {
313
- loading: S.value,
305
+ loading: L.value,
314
306
  circle: !0,
315
307
  quaternary: !0
316
308
  }, {
317
309
  default: () => [e(q, {
318
- checked: a.isAllChecked.value,
319
- indeterminate: a.isIndeterminate.value,
320
- onUpdateChecked: a.toggleSelectAll
310
+ checked: l.isAllChecked.value,
311
+ indeterminate: l.isIndeterminate.value,
312
+ onUpdateChecked: l.toggleSelectAll
321
313
  }, null)]
322
314
  }),
323
315
  default: () => r("components.list.selectAll")
324
- }), (F = t == null ? void 0 : t.tools) == null ? void 0 : F.call(t), x.value.export && e(f, null, {
316
+ }), (j = t == null ? void 0 : t.tools) == null ? void 0 : j.call(t), y.value.export && e(s, null, {
325
317
  trigger: () => e(d, {
326
- loading: b.value,
327
- onClick: K,
318
+ loading: Q.value,
319
+ onClick: H,
328
320
  circle: !0,
329
321
  quaternary: !0
330
322
  }, {
@@ -333,10 +325,10 @@ const tt = /* @__PURE__ */ $({
333
325
  }, null)
334
326
  }),
335
327
  default: () => r("components.button.export")
336
- }), x.value.import && e(f, null, {
328
+ }), y.value.import && e(s, null, {
337
329
  trigger: () => e(d, {
338
- loading: S.value,
339
- onClick: G,
330
+ loading: L.value,
331
+ onClick: Y,
340
332
  circle: !0,
341
333
  quaternary: !0
342
334
  }, {
@@ -345,22 +337,22 @@ const tt = /* @__PURE__ */ $({
345
337
  }, null)
346
338
  }),
347
339
  default: () => r("components.button.import")
348
- }), x.value.refresh && e(f, null, {
340
+ }), y.value.refresh && e(s, null, {
349
341
  trigger: () => e(d, {
350
- onClick: J,
342
+ onClick: K,
351
343
  circle: !0,
352
344
  quaternary: !0
353
345
  }, {
354
- icon: () => V.value ? e(pe, {
346
+ icon: () => _.value ? e(ge, {
355
347
  class: "size-4",
356
348
  type: "circle",
357
- percentage: w.value * 10,
349
+ percentage: z.value * 10,
358
350
  strokeWidth: 20,
359
351
  color: "rgba(var(--ui-color-primary))"
360
352
  }, {
361
353
  default: () => [e("span", {
362
354
  class: "text-8px"
363
- }, [w.value])]
355
+ }, [z.value])]
364
356
  }) : e("div", {
365
357
  class: "i-tabler:refresh size-4"
366
358
  }, null)
@@ -368,38 +360,93 @@ const tt = /* @__PURE__ */ $({
368
360
  default: () => r("components.button.autoRefresh")
369
361
  })])]), e("div", {
370
362
  class: "flex items-center gap-2"
371
- }, [(N = t == null ? void 0 : t.bottom) == null ? void 0 : N.call(t), i.pagination && e(me, ae(H.value, {
363
+ }, [(D = t == null ? void 0 : t.bottom) == null ? void 0 : D.call(t), i.pagination && e(he, re(Z.value, {
372
364
  simple: u.value < 768
373
365
  }), {
374
366
  prefix: () => {
375
- var n;
367
+ var a;
376
368
  return e("div", null, [r("components.list.total", {
377
- total: ((n = h == null ? void 0 : h.value) == null ? void 0 : n.total) || 0
369
+ total: ((a = w == null ? void 0 : w.value) == null ? void 0 : a.total) || 0
378
370
  })]);
379
371
  }
380
- })])]), e(be, {
381
- number: a.checkeds.value.length,
372
+ })])]), e(ke, {
373
+ number: l.checkeds.value.length,
382
374
  group: [[{
383
375
  icon: "i-tabler:x",
384
376
  onClick: () => {
385
- var n;
386
- a.checkeds.value = [], (n = a.onUpdateChecked) == null || n.call(a, []);
377
+ var a;
378
+ l.checkeds.value = [], (a = l.onUpdateChecked) == null || a.call(l, []);
387
379
  }
388
380
  }], [{
389
381
  label: r("components.button.export"),
390
382
  icon: "i-tabler:file-export",
391
- loading: M.value,
392
- onClick: Q
383
+ loading: G.value,
384
+ onClick: X
393
385
  }, {
394
386
  label: r("components.button.delete"),
395
387
  type: "error",
396
388
  icon: "i-tabler:trash"
397
389
  }]]
398
- }, null)]);
390
+ }, null), e(ve, {
391
+ draggable: !0,
392
+ class: "bg-white rounded dark:shadow-gray-950/80 dark:bg-gray-800/60 backdrop-blur",
393
+ show: g.show,
394
+ onUpdateShow: (a) => g.show = a
395
+ }, {
396
+ default: ({
397
+ draggableClass: a
398
+ }) => {
399
+ let f;
400
+ return e(be, {
401
+ title: r("components.button.filter"),
402
+ handle: a,
403
+ onClose: () => g.show = !1
404
+ }, {
405
+ default: () => [e(Se, {
406
+ showLabel: !0,
407
+ labelPlacement: "top"
408
+ }, Ce(f = O(ae)) ? f : {
409
+ default: () => [f]
410
+ })]
411
+ });
412
+ }
413
+ }), e(I, {
414
+ show: h.show,
415
+ onUpdateShow: (a) => h.show = a,
416
+ autoFocus: !1,
417
+ placement: "left"
418
+ }, {
419
+ default: () => [e(M, {
420
+ title: i.sideLeftTitle || r("components.button.sideLeft"),
421
+ onClose: () => h.show = !1,
422
+ scrollbar: !1
423
+ }, {
424
+ default: () => {
425
+ var a;
426
+ return [(a = t == null ? void 0 : t.sideLeft) == null ? void 0 : a.call(t)];
427
+ }
428
+ })]
429
+ }), e(I, {
430
+ show: v.show,
431
+ onUpdateShow: (a) => v.show = a,
432
+ autoFocus: !1,
433
+ placement: "right"
434
+ }, {
435
+ default: () => [e(M, {
436
+ title: i.sideRightTitle || r("components.button.sideRight"),
437
+ onClose: () => v.show = !1,
438
+ scrollbar: !1
439
+ }, {
440
+ default: () => {
441
+ var a;
442
+ return [(a = t == null ? void 0 : t.sideRight) == null ? void 0 : a.call(t)];
443
+ }
444
+ })]
445
+ })]);
399
446
  }
400
447
  });
401
448
  }
402
449
  });
403
450
  export {
404
- tt as DuxListLayout
451
+ yt as DuxListLayout
405
452
  };