@duxweb/dvha-pro 1.0.22 → 1.0.24

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 (157) 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/card/store.cjs +1 -1
  4. package/dist/cjs/components/carousel/carousel.cjs +1 -1
  5. package/dist/cjs/components/crop/imageCrop.cjs +1 -1
  6. package/dist/cjs/components/crop/imageCropModal.cjs +1 -1
  7. package/dist/cjs/components/dashboard/hello.cjs +1 -1
  8. package/dist/cjs/components/dashboard/helloBig.cjs +1 -1
  9. package/dist/cjs/components/dashboard/quick.cjs +1 -1
  10. package/dist/cjs/components/data/dynamicData.cjs +1 -1
  11. package/dist/cjs/components/data/dynamicSelect.cjs +1 -1
  12. package/dist/cjs/components/data/selectModal.cjs +1 -1
  13. package/dist/cjs/components/dialog/dialog.cjs +1 -1
  14. package/dist/cjs/components/drawer/drawer.cjs +1 -1
  15. package/dist/cjs/components/drawer/drawerPage.cjs +1 -1
  16. package/dist/cjs/components/editor/aiEditor.cjs +1 -1
  17. package/dist/cjs/components/form/drawerForm.cjs +1 -0
  18. package/dist/cjs/components/form/formItem.cjs +1 -1
  19. package/dist/cjs/components/form/formLayout.cjs +1 -1
  20. package/dist/cjs/components/form/modalForm.cjs +1 -1
  21. package/dist/cjs/components/form/pageForm.cjs +1 -1
  22. package/dist/cjs/components/form/settingForm.cjs +1 -1
  23. package/dist/cjs/components/icon/iconPicker.cjs +1 -1
  24. package/dist/cjs/components/layout/filter.cjs +1 -1
  25. package/dist/cjs/components/layout/filterLayout.cjs +1 -1
  26. package/dist/cjs/components/layout/list.cjs +1 -1
  27. package/dist/cjs/components/layout/table.cjs +1 -1
  28. package/dist/cjs/components/layout/tools.cjs +1 -1
  29. package/dist/cjs/components/list/card.cjs +1 -1
  30. package/dist/cjs/components/list/list.cjs +1 -1
  31. package/dist/cjs/components/media/media.cjs +1 -1
  32. package/dist/cjs/components/modal/modal.cjs +1 -1
  33. package/dist/cjs/components/modal/modalPage.cjs +1 -1
  34. package/dist/cjs/components/modal/modalTab.cjs +1 -1
  35. package/dist/cjs/components/panel/alert.cjs +1 -1
  36. package/dist/cjs/components/panel/collapse.cjs +1 -1
  37. package/dist/cjs/components/panel/setting.cjs +1 -1
  38. package/dist/cjs/components/select/cardSelect.cjs +1 -1
  39. package/dist/cjs/components/status/listEmpty.cjs +1 -1
  40. package/dist/cjs/components/table/tablePage.cjs +1 -1
  41. package/dist/cjs/components/tree/treeFilter.cjs +1 -1
  42. package/dist/cjs/components/upload/config.cjs +1 -1
  43. package/dist/cjs/components/upload/file.cjs +1 -1
  44. package/dist/cjs/components/upload/image.cjs +1 -1
  45. package/dist/cjs/components/upload/manage/item.cjs +1 -1
  46. package/dist/cjs/components/upload/manager.cjs +1 -1
  47. package/dist/cjs/components/widget/connect.cjs +1 -1
  48. package/dist/cjs/dvha-pro.css +1 -1
  49. package/dist/cjs/hooks/action.cjs +1 -1
  50. package/dist/cjs/hooks/download.cjs +1 -1
  51. package/dist/cjs/hooks/echart.cjs +1 -1
  52. package/dist/cjs/hooks/image.cjs +1 -1
  53. package/dist/cjs/hooks/level.cjs +1 -1
  54. package/dist/cjs/hooks/table/color.cjs +1 -0
  55. package/dist/cjs/hooks/table/column.cjs +1 -1
  56. package/dist/cjs/hooks/table/image.cjs +1 -1
  57. package/dist/cjs/hooks/table/input.cjs +1 -1
  58. package/dist/cjs/hooks/table/map.cjs +1 -1
  59. package/dist/cjs/hooks/table/status.cjs +1 -1
  60. package/dist/cjs/hooks/table/switch.cjs +1 -1
  61. package/dist/cjs/hooks/table.cjs +1 -1
  62. package/dist/cjs/index.cjs +1 -1
  63. package/dist/cjs/pages/layout/global.cjs +1 -1
  64. package/dist/cjs/pages/layout/tab.cjs +1 -1
  65. package/dist/cjs/pages/login.cjs +1 -1
  66. package/dist/cjs/pages/menu/avatar.cjs +1 -1
  67. package/dist/cjs/pages/menu/button.cjs +1 -1
  68. package/dist/cjs/pages/menu/cmd.cjs +1 -1
  69. package/dist/cjs/pages/page.cjs +1 -1
  70. package/dist/cjs/pages/pageStatus.cjs +1 -1
  71. package/dist/cjs/stores/ui.cjs +1 -1
  72. package/dist/cjs/theme/uno.css.cjs +2 -1
  73. package/dist/esm/component.js +3 -3
  74. package/dist/esm/components/card/card.js +24 -27
  75. package/dist/esm/components/card/store.js +33 -39
  76. package/dist/esm/components/carousel/carousel.js +16 -19
  77. package/dist/esm/components/crop/imageCrop.js +32 -35
  78. package/dist/esm/components/crop/imageCropModal.js +36 -37
  79. package/dist/esm/components/dashboard/hello.js +27 -30
  80. package/dist/esm/components/dashboard/helloBig.js +328 -331
  81. package/dist/esm/components/dashboard/quick.js +30 -33
  82. package/dist/esm/components/data/dynamicData.js +86 -98
  83. package/dist/esm/components/data/dynamicSelect.js +29 -31
  84. package/dist/esm/components/data/selectModal.js +45 -49
  85. package/dist/esm/components/dialog/dialog.js +54 -55
  86. package/dist/esm/components/drawer/drawer.js +23 -22
  87. package/dist/esm/components/drawer/drawerPage.js +39 -49
  88. package/dist/esm/components/editor/aiEditor.js +64 -70
  89. package/dist/esm/components/form/drawerForm.js +149 -0
  90. package/dist/esm/components/form/formItem.js +44 -50
  91. package/dist/esm/components/form/formLayout.js +7 -10
  92. package/dist/esm/components/form/modalForm.js +50 -50
  93. package/dist/esm/components/form/pageForm.js +47 -50
  94. package/dist/esm/components/form/settingForm.js +34 -37
  95. package/dist/esm/components/icon/iconPicker.js +54 -58
  96. package/dist/esm/components/layout/filter.js +13 -16
  97. package/dist/esm/components/layout/filterLayout.js +7 -10
  98. package/dist/esm/components/layout/list.js +299 -326
  99. package/dist/esm/components/layout/table.js +268 -283
  100. package/dist/esm/components/layout/tools.js +38 -41
  101. package/dist/esm/components/list/card.js +35 -38
  102. package/dist/esm/components/list/list.js +15 -18
  103. package/dist/esm/components/media/media.js +35 -36
  104. package/dist/esm/components/modal/modal.js +10 -10
  105. package/dist/esm/components/modal/modalPage.js +32 -36
  106. package/dist/esm/components/modal/modalTab.js +39 -45
  107. package/dist/esm/components/panel/alert.js +19 -22
  108. package/dist/esm/components/panel/collapse.js +33 -36
  109. package/dist/esm/components/panel/setting.js +25 -31
  110. package/dist/esm/components/select/cardSelect.js +27 -28
  111. package/dist/esm/components/status/listEmpty.js +13 -13
  112. package/dist/esm/components/table/tablePage.js +25 -25
  113. package/dist/esm/components/tree/treeFilter.js +137 -147
  114. package/dist/esm/components/upload/config.js +15 -27
  115. package/dist/esm/components/upload/file.js +90 -94
  116. package/dist/esm/components/upload/image.js +116 -123
  117. package/dist/esm/components/upload/manage/item.js +44 -47
  118. package/dist/esm/components/upload/manager.js +190 -207
  119. package/dist/esm/components/widget/connect.js +103 -106
  120. package/dist/esm/dvha-pro.css +1 -1
  121. package/dist/esm/hooks/action.js +141 -157
  122. package/dist/esm/hooks/download.js +55 -56
  123. package/dist/esm/hooks/echart.js +156 -179
  124. package/dist/esm/hooks/image.js +14 -15
  125. package/dist/esm/hooks/level.js +7 -7
  126. package/dist/esm/hooks/table/color.js +19 -0
  127. package/dist/esm/hooks/table/column.js +25 -23
  128. package/dist/esm/hooks/table/image.js +2 -2
  129. package/dist/esm/hooks/table/input.js +28 -28
  130. package/dist/esm/hooks/table/map.js +7 -7
  131. package/dist/esm/hooks/table/status.js +8 -9
  132. package/dist/esm/hooks/table/switch.js +19 -19
  133. package/dist/esm/hooks/table.js +27 -31
  134. package/dist/esm/index.js +162 -158
  135. package/dist/esm/pages/layout/global.js +12 -15
  136. package/dist/esm/pages/layout/tab.js +58 -71
  137. package/dist/esm/pages/login.js +81 -85
  138. package/dist/esm/pages/menu/avatar.js +136 -149
  139. package/dist/esm/pages/menu/button.js +16 -20
  140. package/dist/esm/pages/menu/cmd.js +68 -74
  141. package/dist/esm/pages/page.js +21 -25
  142. package/dist/esm/pages/pageStatus.js +21 -24
  143. package/dist/esm/stores/ui.js +15 -15
  144. package/dist/esm/theme/uno.css.js +2 -1
  145. package/dist/types/components/drawer/drawerPage.d.ts +1 -1
  146. package/dist/types/components/form/drawerForm.d.ts +104 -0
  147. package/dist/types/components/form/index.d.ts +1 -0
  148. package/dist/types/components/form/modalForm.d.ts +6 -0
  149. package/dist/types/components/form/pageForm.d.ts +6 -0
  150. package/dist/types/components/form/settingForm.d.ts +6 -0
  151. package/dist/types/components/layout/table.d.ts +9 -0
  152. package/dist/types/components/table/tablePage.d.ts +9 -0
  153. package/dist/types/hooks/table/color.d.ts +13 -0
  154. package/dist/types/hooks/table/column.d.ts +1 -0
  155. package/dist/types/hooks/table/index.d.ts +1 -0
  156. package/dist/types/hooks/table/types.d.ts +2 -2
  157. package/package.json +3 -3
@@ -1,9 +1,9 @@
1
- import { defineComponent as M, ref as d, watch as u, computed as w, createVNode as t, Fragment as V, createTextVNode as B } from "vue";
1
+ import { defineComponent as M, ref as c, watch as s, computed as w, createVNode as t, Fragment as V, createTextVNode as B } from "vue";
2
2
  import { useRouteStore as D, useTheme as T, useI18n as K } from "@duxweb/dvha-core";
3
3
  import { useMagicKeys as R, watchThrottled as j } from "@vueuse/core";
4
4
  import { cloneDeep as E } from "lodash-es";
5
- import { NTag as y, NButton as G } from "naive-ui";
6
- import { Command as i } from "vue-command-palette";
5
+ import { NTag as k, NButton as G } from "naive-ui";
6
+ import { Command as o } from "vue-command-palette";
7
7
  import { useRouter as L } from "vue-router";
8
8
  import "@overlastic/vue";
9
9
  import "clsx";
@@ -44,71 +44,68 @@ const we = /* @__PURE__ */ M({
44
44
  name: "DuxMenuCmd",
45
45
  setup() {
46
46
  const {
47
- cmdVisible: v,
48
- setCmdVisible: s
49
- } = q(), f = R(), S = f["Meta+K"], c = d(), n = d([]), C = L(), o = D(), {
50
- setMode: b
51
- } = T(), m = d(""), {
52
- t: a
53
- } = K(), g = d(), x = (e) => {
54
- const l = o.routes.filter((r) => r.parent === e);
55
- c.value = e, n.value = l;
47
+ cmdVisible: h,
48
+ setCmdVisible: m
49
+ } = q(), p = R(), y = p["Meta+K"], u = c(), a = c([]), S = L(), n = D(), {
50
+ setMode: v
51
+ } = T(), i = c(""), {
52
+ t: r
53
+ } = K(), b = c(), g = (e) => {
54
+ const l = n.routes.filter((I) => I.parent === e);
55
+ u.value = e, a.value = l;
56
+ }, C = () => {
57
+ m(!0);
56
58
  }, N = () => {
57
- s(!0);
58
- }, z = () => {
59
- s(!1);
60
- }, I = (e) => {
61
- e ? n.value = [...E(o.routes).filter((l) => {
62
- var r;
63
- return (r = l.label) == null ? void 0 : r.includes(e);
64
- })] : n.value = o.routes.filter((l) => !l.parent);
59
+ m(!1);
60
+ }, z = (e) => {
61
+ e ? a.value = [...E(n.routes).filter((l) => l.label?.includes(e))] : a.value = n.routes.filter((l) => !l.parent);
65
62
  };
66
- u(v, (e) => {
67
- e ? n.value = o.routes.filter((l) => !l.parent) : n.value = o.routes.filter((l) => !l.parent);
68
- }), j(m, () => {
69
- I(m.value);
63
+ s(h, (e) => {
64
+ e ? a.value = n.routes.filter((l) => !l.parent) : a.value = n.routes.filter((l) => !l.parent);
65
+ }), j(i, () => {
66
+ z(i.value);
70
67
  }, {
71
68
  throttle: 500
72
69
  });
73
- const k = () => {
74
- const e = o.routes.find((l) => l.name === c.value);
75
- x(e == null ? void 0 : e.parent);
70
+ const x = () => {
71
+ const e = n.routes.find((l) => l.name === u.value);
72
+ g(e?.parent);
76
73
  };
77
- u(S, (e) => {
78
- e && N();
79
- }), u(f.Escape, (e) => {
80
- e && s(!1);
81
- }), u(f.Backspace, (e) => {
82
- e && m.value === "" && c.value && k();
83
- }), u(g, (e) => {
74
+ s(y, (e) => {
75
+ e && C();
76
+ }), s(p.Escape, (e) => {
77
+ e && m(!1);
78
+ }), s(p.Backspace, (e) => {
79
+ e && i.value === "" && u.value && x();
80
+ }), s(b, (e) => {
84
81
  e && e.focus();
85
82
  });
86
- const h = w(() => n.value.filter((e) => e.hidden === void 0 || e.hidden === !1)), p = (e) => t(i.Item, {
87
- onSelect: e == null ? void 0 : e.onSelect
83
+ const d = w(() => a.value.filter((e) => e.hidden === void 0 || e.hidden === !1)), f = (e) => t(o.Item, {
84
+ onSelect: e?.onSelect
88
85
  }, {
89
86
  default: () => [t("div", {
90
87
  class: "flex items-center justify-between flex-1"
91
88
  }, [t("div", {
92
89
  class: "flex items-center gap-2"
93
90
  }, [t("div", {
94
- class: ["size-4", e == null ? void 0 : e.icon]
95
- }, null), t("div", null, [e == null ? void 0 : e.label])]), t("div", null, [(e == null ? void 0 : e.keyName) && t(y, {
91
+ class: ["size-4", e?.icon]
92
+ }, null), t("div", null, [e?.label])]), t("div", null, [e?.keyName && t(k, {
96
93
  size: "small"
97
94
  }, {
98
- default: () => [e == null ? void 0 : e.keyName]
95
+ default: () => [e?.keyName]
99
96
  })])])]
100
97
  });
101
- return () => t(i.Dialog, {
102
- visible: v.value,
98
+ return () => t(o.Dialog, {
99
+ visible: h.value,
103
100
  theme: "command-palette"
104
101
  }, {
105
102
  header: () => t("div", {
106
103
  class: "relative"
107
104
  }, [t("input", {
108
- ref: g,
109
- placeholder: a("common.search"),
105
+ ref: b,
106
+ placeholder: r("common.search"),
110
107
  onInput: (e) => {
111
- m.value = e.target.value;
108
+ i.value = e.target.value;
112
109
  },
113
110
  class: "w-full h-12 text-base/5 rounded-md border-0 placeholder:text-dimmed outline-0 px-2.5 py-1.5 text-sm gap-1.5 text-highlighted bg-transparent ps-10 pe-10"
114
111
  }, null), t("span", {
@@ -118,7 +115,7 @@ const we = /* @__PURE__ */ M({
118
115
  "aria-hidden": "true"
119
116
  }, null)]), t("span", {
120
117
  class: "absolute inset-y-0 end-0 flex items-center gap-2 pe-3"
121
- }, [t(y, {
118
+ }, [t(k, {
122
119
  size: "small"
123
120
  }, {
124
121
  default: () => [B("Esc")]
@@ -126,51 +123,48 @@ const we = /* @__PURE__ */ M({
126
123
  quaternary: !0,
127
124
  circle: !0,
128
125
  size: "small",
129
- onClick: () => s(!1)
126
+ onClick: () => m(!1)
130
127
  }, {
131
128
  icon: () => t("div", {
132
129
  class: "i-tabler:x size-5",
133
130
  "aria-hidden": "true"
134
131
  }, null)
135
132
  })])]),
136
- body: () => t(V, null, [h.value.length === 0 && m.value && t("div", {
133
+ body: () => t(V, null, [d.value.length === 0 && i.value && t("div", {
137
134
  class: "flex items-center justify-center h-20 border-t border-muted"
138
- }, [a("common.empty")]), h.value.length > 0 && t(i.List, null, {
139
- default: () => [t(i.Group, {
140
- heading: a("common.menu")
135
+ }, [r("common.empty")]), d.value.length > 0 && t(o.List, null, {
136
+ default: () => [t(o.Group, {
137
+ heading: r("common.menu")
141
138
  }, {
142
- default: () => {
143
- var e;
144
- return [(e = h.value) == null ? void 0 : e.map((l, r) => t(i.Item, {
145
- key: r,
146
- onSelect: () => {
147
- l.path ? (C.push(l.path), z()) : x(l.name);
148
- }
149
- }, {
150
- default: () => [t("div", {
151
- class: l.path ? "i-tabler:link" : "i-tabler:folder"
152
- }, null), l.label]
153
- }))];
154
- }
155
- }), t(i.Separator, null, null), c.value ? t(p, {
139
+ default: () => [d.value?.map((e, l) => t(o.Item, {
140
+ key: l,
141
+ onSelect: () => {
142
+ e.path ? (S.push(e.path), N()) : g(e.name);
143
+ }
144
+ }, {
145
+ default: () => [t("div", {
146
+ class: e.path ? "i-tabler:link" : "i-tabler:folder"
147
+ }, null), e.label]
148
+ }))]
149
+ }), t(o.Separator, null, null), u.value ? t(f, {
156
150
  icon: "i-tabler:arrow-left",
157
- label: a("common.back"),
158
- onSelect: k,
151
+ label: r("common.back"),
152
+ onSelect: x,
159
153
  keyName: "Backspace"
160
- }, null) : t(i.Group, {
161
- heading: a("common.theme")
154
+ }, null) : t(o.Group, {
155
+ heading: r("common.theme")
162
156
  }, {
163
- default: () => [t(p, {
157
+ default: () => [t(f, {
164
158
  icon: "i-tabler:moon",
165
- label: a("common.dark"),
159
+ label: r("common.dark"),
166
160
  onSelect: () => {
167
- b("dark");
161
+ v("dark");
168
162
  }
169
- }, null), t(p, {
163
+ }, null), t(f, {
170
164
  icon: "i-tabler:sun",
171
- label: a("common.light"),
165
+ label: r("common.light"),
172
166
  onSelect: () => {
173
- b("light");
167
+ v("light");
174
168
  }
175
169
  }, null)]
176
170
  })]
@@ -1,6 +1,6 @@
1
- import { defineComponent as m, ref as p, createVNode as c } from "vue";
2
- import { NScrollbar as g } from "naive-ui";
3
- const x = /* @__PURE__ */ m({
1
+ import { defineComponent as d, ref as s, createVNode as o } from "vue";
2
+ import { NScrollbar as i } from "naive-ui";
3
+ const p = /* @__PURE__ */ d({
4
4
  name: "DuxPage",
5
5
  props: {
6
6
  padding: {
@@ -20,35 +20,31 @@ const x = /* @__PURE__ */ m({
20
20
  default: !0
21
21
  }
22
22
  },
23
- setup(a, {
24
- slots: e
23
+ setup(e, {
24
+ slots: l
25
25
  }) {
26
- const d = p(!1), f = (r) => {
27
- const n = r.target;
28
- d.value = n.scrollTop > 0;
26
+ const r = s(!1), c = (t) => {
27
+ const a = t.target;
28
+ r.value = a.scrollTop > 0;
29
29
  };
30
30
  return () => {
31
- var t, o, i;
32
- const r = a.card ? "bg-default dark:bg-muted rounded shadow-xs lg:dark:border lg:dark:border-muted" : "", n = a.card && a.padding ? "p-3" : "", l = a.scrollbar ? "" : "h-full";
33
- return c("div", {
31
+ const t = e.card ? "bg-default dark:bg-muted rounded shadow-xs lg:dark:border lg:dark:border-muted" : "", a = e.card && e.padding ? "p-3" : "", n = e.scrollbar ? "" : "h-full";
32
+ return o("div", {
34
33
  class: "h-full flex-1 flex gap-2 relative"
35
- }, [c("div", {
36
- class: `z-1 absolute top-0 left-0 w-full h-10 bg-linear-to-b from-[color-mix(in_oklch,theme(colors.primary.DEFAULT),white_95%)] dark:from-[color-mix(in_oklch,theme(colors.primary.DEFAULT),theme(colors.gray.950)_95%)] to-transparent pointer-events-none transition-opacity duration-300 ${d.value ? "opacity-100" : "opacity-0"}`
37
- }, null), (t = e == null ? void 0 : e.sideLeft) == null ? void 0 : t.call(e), a.scrollbar ? c(g, {
38
- class: [r, "flex-1 min-w-0"],
39
- contentClass: `${n} ${l}`,
40
- onScroll: f
34
+ }, [o("div", {
35
+ class: `z-1 absolute top-0 left-0 w-full h-10 bg-linear-to-b from-[color-mix(in_oklch,theme(colors.primary.DEFAULT),white_95%)] dark:from-[color-mix(in_oklch,theme(colors.primary.DEFAULT),theme(colors.gray.950)_95%)] to-transparent pointer-events-none transition-opacity duration-300 ${r.value ? "opacity-100" : "opacity-0"}`
36
+ }, null), l?.sideLeft?.(), e.scrollbar ? o(i, {
37
+ class: [t, "flex-1 min-w-0"],
38
+ contentClass: `${a} ${n}`,
39
+ onScroll: c
41
40
  }, {
42
- default: () => {
43
- var u;
44
- return [(u = e.default) == null ? void 0 : u.call(e)];
45
- }
46
- }) : c("div", {
47
- class: `${r} ${n} ${l} flex-1 min-w-0`
48
- }, [(o = e.default) == null ? void 0 : o.call(e)]), (i = e == null ? void 0 : e.sideRight) == null ? void 0 : i.call(e)]);
41
+ default: () => [l.default?.()]
42
+ }) : o("div", {
43
+ class: `${t} ${a} ${n} flex-1 min-w-0`
44
+ }, [l.default?.()]), l?.sideRight?.()]);
49
45
  };
50
46
  }
51
47
  });
52
48
  export {
53
- x as DuxPage
49
+ p as DuxPage
54
50
  };
@@ -1,5 +1,5 @@
1
- import { defineComponent as o, createVNode as i } from "vue";
2
- import { DuxCard as p } from "../components/card/card.js";
1
+ import { defineComponent as e, createVNode as t } from "vue";
2
+ import { DuxCard as o } from "../components/card/card.js";
3
3
  import "clsx";
4
4
  import "naive-ui";
5
5
  import "vue-echarts";
@@ -41,7 +41,7 @@ import "ace-builds/src-noconflict/theme-tomorrow";
41
41
  import "ace-builds/src-noconflict/ext-searchbox";
42
42
  import "ace-builds/src-noconflict/ext-language_tools";
43
43
  import "ace-builds/src-noconflict/mode-snippets";
44
- const Y = /* @__PURE__ */ o({
44
+ const W = /* @__PURE__ */ e({
45
45
  name: "DuxPageStatus",
46
46
  props: {
47
47
  title: String,
@@ -51,32 +51,29 @@ const Y = /* @__PURE__ */ o({
51
51
  default: !0
52
52
  }
53
53
  },
54
- setup(t, {
55
- slots: e
54
+ setup(r, {
55
+ slots: i
56
56
  }) {
57
- return () => i(p, {
57
+ return () => t(o, {
58
58
  class: "size-full flex items-center justify-center",
59
- bordered: t.bordered
59
+ bordered: r.bordered
60
60
  }, {
61
- default: () => {
62
- var r, m;
63
- return [i("div", {
64
- class: "flex flex-col gap-6 justify-center items-center py-10"
65
- }, [i("div", {
66
- class: "w-40"
67
- }, [(r = e.default) == null ? void 0 : r.call(e)]), i("div", {
68
- class: "flex flex-col items-center justify-center gap-2"
69
- }, [i("div", {
70
- class: "text-lg text-default font-bold"
71
- }, [t == null ? void 0 : t.title]), i("div", {
72
- class: "text-muted"
73
- }, [t == null ? void 0 : t.desc])]), i("div", {
74
- class: "flex justify-center items-center gap-4"
75
- }, [(m = e.action) == null ? void 0 : m.call(e)])])];
76
- }
61
+ default: () => [t("div", {
62
+ class: "flex flex-col gap-6 justify-center items-center py-10"
63
+ }, [t("div", {
64
+ class: "w-40"
65
+ }, [i.default?.()]), t("div", {
66
+ class: "flex flex-col items-center justify-center gap-2"
67
+ }, [t("div", {
68
+ class: "text-lg text-default font-bold"
69
+ }, [r?.title]), t("div", {
70
+ class: "text-muted"
71
+ }, [r?.desc])]), t("div", {
72
+ class: "flex justify-center items-center gap-4"
73
+ }, [i.action?.()])])]
77
74
  });
78
75
  }
79
76
  });
80
77
  export {
81
- Y as DuxPageStatus
78
+ W as DuxPageStatus
82
79
  };
@@ -1,26 +1,26 @@
1
1
  import { defineStore as u } from "pinia";
2
- import { inject as c, ref as r } from "vue";
3
- function a(e) {
4
- const o = c("dux.manage");
5
- if (e || (e = (o == null ? void 0 : o.value) || ""), !e)
2
+ import { inject as c, ref as s } from "vue";
3
+ function m(e) {
4
+ const t = c("dux.manage");
5
+ if (e || (e = t?.value || ""), !e)
6
6
  throw new Error("manage not found");
7
7
  return d(e)();
8
8
  }
9
9
  function d(e) {
10
10
  return u(`ui-${e}`, () => {
11
- const o = r(!0), s = r(!1), i = (t) => {
12
- o.value = t;
13
- }, l = (t) => {
14
- s.value = t;
15
- }, n = r(!1);
11
+ const t = s(!0), n = s(!1), i = (o) => {
12
+ t.value = o;
13
+ }, l = (o) => {
14
+ n.value = o;
15
+ }, r = s(!1);
16
16
  return {
17
- menuCollapsed: o,
17
+ menuCollapsed: t,
18
18
  setMenuCollapsed: i,
19
- cmdVisible: n,
20
- setCmdVisible: (t) => {
21
- n.value = t;
19
+ cmdVisible: r,
20
+ setCmdVisible: (o) => {
21
+ r.value = o;
22
22
  },
23
- menuMobileCollapsed: s,
23
+ menuMobileCollapsed: n,
24
24
  setMenuMobileCollapsed: l
25
25
  };
26
26
  }, {
@@ -30,5 +30,5 @@ function d(e) {
30
30
  });
31
31
  }
32
32
  export {
33
- a as useUIStore
33
+ m as useUIStore
34
34
  };
@@ -1,5 +1,5 @@
1
1
  const r = `/* layer: properties */
2
- @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*, ::before, ::after, ::backdrop{--un-text-opacity:100%;--un-bg-opacity:100%;--un-from-opacity:100%;--un-divide-y-reverse:0;--un-border-style:solid;--un-divide-opacity:100%;--un-divide-x-reverse:0;--un-shadow-opacity:100%;--un-border-opacity:100%;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-to-opacity:100%;--un-fill-opacity:100%;--un-outline-style:solid;}}
2
+ @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*, ::before, ::after, ::backdrop{--un-text-opacity:100%;--un-bg-opacity:100%;--un-from-opacity:100%;--un-divide-y-reverse:initial;--un-border-style:solid;--un-divide-x-reverse:initial;--un-divide-opacity:100%;--un-shadow-opacity:100%;--un-ease:initial;--un-translate-x:initial;--un-translate-y:initial;--un-translate-z:initial;--un-border-opacity:100%;--un-fill-opacity:100%;--un-to-opacity:100%;--un-outline-style:solid;}}
3
3
  @property --un-text-opacity{syntax:"<percentage>";inherits:false;initial-value:100%;}
4
4
  @property --un-outline-style{syntax:"*";inherits:false;initial-value:solid;}
5
5
  @property --un-border-opacity{syntax:"<percentage>";inherits:false;initial-value:100%;}
@@ -1187,6 +1187,7 @@ input:where([type='button'], [type='reset'], [type='submit']),
1187
1187
  .min-h-0{min-height:calc(var(--spacing) * 0);}
1188
1188
  .min-h-1{min-height:calc(var(--spacing) * 1);}
1189
1189
  .min-w-0{min-width:calc(var(--spacing) * 0);}
1190
+ .min-w-110{min-width:calc(var(--spacing) * 110);}
1190
1191
  .min-w-60{min-width:calc(var(--spacing) * 60);}
1191
1192
  .w-120{width:calc(var(--spacing) * 120);}
1192
1193
  .w-120px{width:120px;}
@@ -1,4 +1,4 @@
1
- import { PropType } from 'vue';
1
+ import type { PropType } from 'vue';
2
2
  export declare const DuxDrawerPage: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3
3
  title: StringConstructor;
4
4
  onClose: PropType<() => void>;
@@ -0,0 +1,104 @@
1
+ import type { IDataProviderError, IDataProviderResponse } from '@duxweb/dvha-core';
2
+ import type { MaybeRef, PropType } from 'vue';
3
+ export declare const DuxDrawerForm: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
+ id: {
5
+ type: PropType<string | number>;
6
+ };
7
+ action: {
8
+ type: PropType<"create" | "edit">;
9
+ };
10
+ path: {
11
+ type: PropType<string>;
12
+ };
13
+ data: {
14
+ type: PropType<MaybeRef<Record<string, any>>>;
15
+ };
16
+ onClose: {
17
+ type: PropType<() => void>;
18
+ };
19
+ title: {
20
+ type: PropType<string>;
21
+ };
22
+ onSuccess: {
23
+ type: PropType<(data?: IDataProviderResponse) => void>;
24
+ };
25
+ onError: {
26
+ type: PropType<(error?: IDataProviderError) => void>;
27
+ };
28
+ invalidate: {
29
+ type: PropType<string>;
30
+ };
31
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").DefineComponent<import("vue").ExtractPropTypes<{
32
+ labelPlacement: {
33
+ type: PropType<"left" | "top" | "setting" | "page">;
34
+ default: string;
35
+ };
36
+ labelAlign: {
37
+ type: PropType<"left" | "right">;
38
+ default: string;
39
+ };
40
+ labelWidth: {
41
+ type: NumberConstructor;
42
+ };
43
+ inline: {
44
+ type: BooleanConstructor;
45
+ default: boolean;
46
+ };
47
+ divider: {
48
+ type: BooleanConstructor;
49
+ default: boolean;
50
+ };
51
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
52
+ labelPlacement: {
53
+ type: PropType<"left" | "top" | "setting" | "page">;
54
+ default: string;
55
+ };
56
+ labelAlign: {
57
+ type: PropType<"left" | "right">;
58
+ default: string;
59
+ };
60
+ labelWidth: {
61
+ type: NumberConstructor;
62
+ };
63
+ inline: {
64
+ type: BooleanConstructor;
65
+ default: boolean;
66
+ };
67
+ divider: {
68
+ type: BooleanConstructor;
69
+ default: boolean;
70
+ };
71
+ }>> & Readonly<{}>, {
72
+ inline: boolean;
73
+ labelAlign: "left" | "right";
74
+ labelPlacement: "left" | "top" | "page" | "setting";
75
+ divider: boolean;
76
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
77
+ id: {
78
+ type: PropType<string | number>;
79
+ };
80
+ action: {
81
+ type: PropType<"create" | "edit">;
82
+ };
83
+ path: {
84
+ type: PropType<string>;
85
+ };
86
+ data: {
87
+ type: PropType<MaybeRef<Record<string, any>>>;
88
+ };
89
+ onClose: {
90
+ type: PropType<() => void>;
91
+ };
92
+ title: {
93
+ type: PropType<string>;
94
+ };
95
+ onSuccess: {
96
+ type: PropType<(data?: IDataProviderResponse) => void>;
97
+ };
98
+ onError: {
99
+ type: PropType<(error?: IDataProviderError) => void>;
100
+ };
101
+ invalidate: {
102
+ type: PropType<string>;
103
+ };
104
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -1,3 +1,4 @@
1
+ export * from './drawerForm';
1
2
  export * from './formItem';
2
3
  export * from './formLayout';
3
4
  export * from './modalForm';
@@ -19,6 +19,9 @@ export declare const DuxModalForm: import("vue").DefineComponent<import("vue").E
19
19
  title: {
20
20
  type: PropType<string>;
21
21
  };
22
+ invalidate: {
23
+ type: PropType<string>;
24
+ };
22
25
  onSuccess: {
23
26
  type: PropType<(data?: IDataProviderResponse) => void>;
24
27
  };
@@ -89,6 +92,9 @@ export declare const DuxModalForm: import("vue").DefineComponent<import("vue").E
89
92
  title: {
90
93
  type: PropType<string>;
91
94
  };
95
+ invalidate: {
96
+ type: PropType<string>;
97
+ };
92
98
  onSuccess: {
93
99
  type: PropType<(data?: IDataProviderResponse) => void>;
94
100
  };
@@ -29,6 +29,9 @@ export declare const DuxPageForm: import("vue").DefineComponent<import("vue").Ex
29
29
  type: PropType<"small" | "medium" | "large">;
30
30
  default: string;
31
31
  };
32
+ invalidate: {
33
+ type: PropType<string>;
34
+ };
32
35
  }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
33
36
  id: {
34
37
  type: PropType<string | number>;
@@ -58,6 +61,9 @@ export declare const DuxPageForm: import("vue").DefineComponent<import("vue").Ex
58
61
  type: PropType<"small" | "medium" | "large">;
59
62
  default: string;
60
63
  };
64
+ invalidate: {
65
+ type: PropType<string>;
66
+ };
61
67
  }>> & Readonly<{}>, {
62
68
  size: "small" | "medium" | "large";
63
69
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -31,6 +31,9 @@ export declare const DuxSettingForm: import("vue").DefineComponent<import("vue")
31
31
  type: PropType<"small" | "medium" | "large">;
32
32
  default: string;
33
33
  };
34
+ invalidate: {
35
+ type: PropType<string>;
36
+ };
34
37
  }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
35
38
  id: {
36
39
  type: PropType<string | number>;
@@ -62,6 +65,9 @@ export declare const DuxSettingForm: import("vue").DefineComponent<import("vue")
62
65
  type: PropType<"small" | "medium" | "large">;
63
66
  default: string;
64
67
  };
68
+ invalidate: {
69
+ type: PropType<string>;
70
+ };
65
71
  }>> & Readonly<{}>, {
66
72
  size: "small" | "medium" | "large";
67
73
  defaultTab: string;
@@ -21,6 +21,10 @@ export declare const DuxTableLayout: import("vue").DefineComponent<import("vue")
21
21
  filterSchema: {
22
22
  type: PropType<JsonSchemaNode[]>;
23
23
  };
24
+ filterNumber: {
25
+ type: NumberConstructor;
26
+ default: number;
27
+ };
24
28
  columns: {
25
29
  type: PropType<TableColumn[]>;
26
30
  };
@@ -63,6 +67,10 @@ export declare const DuxTableLayout: import("vue").DefineComponent<import("vue")
63
67
  filterSchema: {
64
68
  type: PropType<JsonSchemaNode[]>;
65
69
  };
70
+ filterNumber: {
71
+ type: NumberConstructor;
72
+ default: number;
73
+ };
66
74
  columns: {
67
75
  type: PropType<TableColumn[]>;
68
76
  };
@@ -99,4 +107,5 @@ export declare const DuxTableLayout: import("vue").DefineComponent<import("vue")
99
107
  actions: UseActionItem[];
100
108
  sideLeftTitle: string;
101
109
  sideRightTitle: string;
110
+ filterNumber: number;
102
111
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -16,6 +16,10 @@ export declare const DuxTablePage: import("vue").DefineComponent<import("vue").E
16
16
  filterSchema: {
17
17
  type: PropType<import("@duxweb/dvha-core").JsonSchemaNode[]>;
18
18
  };
19
+ filterNumber: {
20
+ type: NumberConstructor;
21
+ default: number;
22
+ };
19
23
  columns: {
20
24
  type: PropType<import("@duxweb/dvha-naiveui").TableColumn[]>;
21
25
  };
@@ -58,6 +62,10 @@ export declare const DuxTablePage: import("vue").DefineComponent<import("vue").E
58
62
  filterSchema: {
59
63
  type: PropType<import("@duxweb/dvha-core").JsonSchemaNode[]>;
60
64
  };
65
+ filterNumber: {
66
+ type: NumberConstructor;
67
+ default: number;
68
+ };
61
69
  columns: {
62
70
  type: PropType<import("@duxweb/dvha-naiveui").TableColumn[]>;
63
71
  };
@@ -94,6 +102,7 @@ export declare const DuxTablePage: import("vue").DefineComponent<import("vue").E
94
102
  actions: import("../..").UseActionItem[];
95
103
  sideLeftTitle: string;
96
104
  sideRightTitle: string;
105
+ filterNumber: number;
97
106
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
98
107
  tableProps: {
99
108
  type: PropType<DataTableProps>;
@@ -0,0 +1,13 @@
1
+ export type ColumnColorType = 'success' | 'error' | 'warning' | 'info' | 'default';
2
+ export interface ColumnColorTypeValue {
3
+ label?: string;
4
+ icon?: string;
5
+ value?: any;
6
+ }
7
+ export interface useTableColumnColorProps {
8
+ key?: string;
9
+ maps?: Partial<Record<ColumnColorType, ColumnColorTypeValue>>;
10
+ }
11
+ export declare function useTableColumnColor(): {
12
+ render: (props: useTableColumnColorProps) => (rowData: Record<string, any>, _rowIndex: number) => import("vue/jsx-runtime").JSX.Element | null;
13
+ };