@duxweb/dvha-pro 1.0.23 → 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.
- package/dist/cjs/components/card/card.cjs +1 -1
- package/dist/cjs/components/card/store.cjs +1 -1
- package/dist/cjs/components/carousel/carousel.cjs +1 -1
- package/dist/cjs/components/crop/imageCrop.cjs +1 -1
- package/dist/cjs/components/crop/imageCropModal.cjs +1 -1
- package/dist/cjs/components/dashboard/hello.cjs +1 -1
- package/dist/cjs/components/dashboard/helloBig.cjs +1 -1
- package/dist/cjs/components/dashboard/quick.cjs +1 -1
- package/dist/cjs/components/data/dynamicData.cjs +1 -1
- package/dist/cjs/components/data/dynamicSelect.cjs +1 -1
- package/dist/cjs/components/data/selectModal.cjs +1 -1
- package/dist/cjs/components/dialog/dialog.cjs +1 -1
- package/dist/cjs/components/drawer/drawer.cjs +1 -1
- package/dist/cjs/components/drawer/drawerPage.cjs +1 -1
- package/dist/cjs/components/editor/aiEditor.cjs +1 -1
- package/dist/cjs/components/form/drawerForm.cjs +1 -1
- package/dist/cjs/components/form/formItem.cjs +1 -1
- package/dist/cjs/components/form/formLayout.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/icon/iconPicker.cjs +1 -1
- package/dist/cjs/components/layout/filter.cjs +1 -1
- package/dist/cjs/components/layout/filterLayout.cjs +1 -1
- package/dist/cjs/components/layout/list.cjs +1 -1
- package/dist/cjs/components/layout/table.cjs +1 -1
- package/dist/cjs/components/layout/tools.cjs +1 -1
- package/dist/cjs/components/list/card.cjs +1 -1
- package/dist/cjs/components/list/list.cjs +1 -1
- package/dist/cjs/components/media/media.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/panel/alert.cjs +1 -1
- package/dist/cjs/components/panel/collapse.cjs +1 -1
- package/dist/cjs/components/panel/setting.cjs +1 -1
- package/dist/cjs/components/select/cardSelect.cjs +1 -1
- package/dist/cjs/components/status/listEmpty.cjs +1 -1
- package/dist/cjs/components/table/tablePage.cjs +1 -1
- package/dist/cjs/components/tree/treeFilter.cjs +1 -1
- package/dist/cjs/components/upload/config.cjs +1 -1
- package/dist/cjs/components/upload/file.cjs +1 -1
- package/dist/cjs/components/upload/image.cjs +1 -1
- package/dist/cjs/components/upload/manage/item.cjs +1 -1
- package/dist/cjs/components/upload/manager.cjs +1 -1
- package/dist/cjs/components/widget/connect.cjs +1 -1
- package/dist/cjs/dvha-pro.css +1 -1
- package/dist/cjs/hooks/action.cjs +1 -1
- package/dist/cjs/hooks/download.cjs +1 -1
- package/dist/cjs/hooks/echart.cjs +1 -1
- package/dist/cjs/hooks/image.cjs +1 -1
- package/dist/cjs/hooks/level.cjs +1 -1
- package/dist/cjs/hooks/table/color.cjs +1 -0
- package/dist/cjs/hooks/table/column.cjs +1 -1
- package/dist/cjs/hooks/table/image.cjs +1 -1
- package/dist/cjs/hooks/table/input.cjs +1 -1
- package/dist/cjs/hooks/table/map.cjs +1 -1
- package/dist/cjs/hooks/table/status.cjs +1 -1
- package/dist/cjs/hooks/table/switch.cjs +1 -1
- package/dist/cjs/hooks/table.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/pages/layout/global.cjs +1 -1
- package/dist/cjs/pages/layout/tab.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/page.cjs +1 -1
- package/dist/cjs/pages/pageStatus.cjs +1 -1
- package/dist/cjs/stores/ui.cjs +1 -1
- package/dist/cjs/theme/uno.css.cjs +2 -1
- package/dist/esm/components/card/card.js +24 -27
- package/dist/esm/components/card/store.js +33 -39
- package/dist/esm/components/carousel/carousel.js +16 -19
- package/dist/esm/components/crop/imageCrop.js +32 -35
- package/dist/esm/components/crop/imageCropModal.js +36 -37
- package/dist/esm/components/dashboard/hello.js +27 -30
- package/dist/esm/components/dashboard/helloBig.js +328 -331
- package/dist/esm/components/dashboard/quick.js +30 -33
- package/dist/esm/components/data/dynamicData.js +86 -98
- package/dist/esm/components/data/dynamicSelect.js +29 -31
- package/dist/esm/components/data/selectModal.js +45 -49
- package/dist/esm/components/dialog/dialog.js +54 -55
- package/dist/esm/components/drawer/drawer.js +23 -23
- package/dist/esm/components/drawer/drawerPage.js +39 -49
- package/dist/esm/components/editor/aiEditor.js +64 -70
- package/dist/esm/components/form/drawerForm.js +48 -48
- package/dist/esm/components/form/formItem.js +45 -51
- package/dist/esm/components/form/formLayout.js +7 -10
- package/dist/esm/components/form/modalForm.js +50 -50
- package/dist/esm/components/form/pageForm.js +47 -50
- package/dist/esm/components/form/settingForm.js +34 -37
- package/dist/esm/components/icon/iconPicker.js +54 -58
- package/dist/esm/components/layout/filter.js +13 -16
- package/dist/esm/components/layout/filterLayout.js +7 -10
- package/dist/esm/components/layout/list.js +299 -326
- package/dist/esm/components/layout/table.js +268 -283
- package/dist/esm/components/layout/tools.js +38 -41
- package/dist/esm/components/list/card.js +35 -38
- package/dist/esm/components/list/list.js +15 -18
- package/dist/esm/components/media/media.js +35 -36
- package/dist/esm/components/modal/modal.js +10 -10
- package/dist/esm/components/modal/modalPage.js +32 -36
- package/dist/esm/components/modal/modalTab.js +39 -45
- package/dist/esm/components/panel/alert.js +19 -22
- package/dist/esm/components/panel/collapse.js +33 -36
- package/dist/esm/components/panel/setting.js +25 -31
- package/dist/esm/components/select/cardSelect.js +27 -28
- package/dist/esm/components/status/listEmpty.js +13 -13
- package/dist/esm/components/table/tablePage.js +25 -25
- package/dist/esm/components/tree/treeFilter.js +137 -147
- package/dist/esm/components/upload/config.js +15 -27
- package/dist/esm/components/upload/file.js +90 -94
- package/dist/esm/components/upload/image.js +116 -123
- package/dist/esm/components/upload/manage/item.js +44 -47
- package/dist/esm/components/upload/manager.js +190 -207
- package/dist/esm/components/widget/connect.js +103 -106
- package/dist/esm/dvha-pro.css +1 -1
- package/dist/esm/hooks/action.js +115 -131
- package/dist/esm/hooks/download.js +55 -56
- package/dist/esm/hooks/echart.js +156 -179
- package/dist/esm/hooks/image.js +14 -15
- package/dist/esm/hooks/level.js +7 -7
- package/dist/esm/hooks/table/color.js +19 -0
- package/dist/esm/hooks/table/column.js +25 -23
- package/dist/esm/hooks/table/image.js +2 -2
- package/dist/esm/hooks/table/input.js +28 -28
- package/dist/esm/hooks/table/map.js +7 -7
- package/dist/esm/hooks/table/status.js +8 -9
- package/dist/esm/hooks/table/switch.js +19 -19
- package/dist/esm/hooks/table.js +27 -31
- package/dist/esm/index.js +167 -165
- package/dist/esm/pages/layout/global.js +12 -15
- package/dist/esm/pages/layout/tab.js +58 -71
- package/dist/esm/pages/login.js +81 -85
- package/dist/esm/pages/menu/avatar.js +136 -149
- package/dist/esm/pages/menu/button.js +16 -20
- package/dist/esm/pages/menu/cmd.js +68 -74
- package/dist/esm/pages/page.js +21 -25
- package/dist/esm/pages/pageStatus.js +21 -24
- package/dist/esm/stores/ui.js +15 -15
- package/dist/esm/theme/uno.css.js +2 -1
- package/dist/types/components/form/drawerForm.d.ts +6 -0
- package/dist/types/components/form/modalForm.d.ts +6 -0
- package/dist/types/components/form/pageForm.d.ts +6 -0
- package/dist/types/components/form/settingForm.d.ts +6 -0
- package/dist/types/components/layout/table.d.ts +9 -0
- package/dist/types/components/table/tablePage.d.ts +9 -0
- package/dist/types/hooks/table/color.d.ts +13 -0
- package/dist/types/hooks/table/column.d.ts +1 -0
- package/dist/types/hooks/table/index.d.ts +1 -0
- package/package.json +3 -3
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as M, ref as
|
|
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
|
|
6
|
-
import { Command as
|
|
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:
|
|
48
|
-
setCmdVisible:
|
|
49
|
-
} = q(),
|
|
50
|
-
setMode:
|
|
51
|
-
} = T(),
|
|
52
|
-
t:
|
|
53
|
-
} = K(),
|
|
54
|
-
const l =
|
|
55
|
-
|
|
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
|
-
|
|
58
|
-
}, z = () => {
|
|
59
|
-
|
|
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
|
-
|
|
67
|
-
e ?
|
|
68
|
-
}), j(
|
|
69
|
-
|
|
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
|
|
74
|
-
const e =
|
|
75
|
-
|
|
70
|
+
const x = () => {
|
|
71
|
+
const e = n.routes.find((l) => l.name === u.value);
|
|
72
|
+
g(e?.parent);
|
|
76
73
|
};
|
|
77
|
-
|
|
78
|
-
e &&
|
|
79
|
-
}),
|
|
80
|
-
e &&
|
|
81
|
-
}),
|
|
82
|
-
e &&
|
|
83
|
-
}),
|
|
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
|
|
87
|
-
onSelect: e
|
|
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
|
|
95
|
-
}, null), t("div", null, [e
|
|
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
|
|
95
|
+
default: () => [e?.keyName]
|
|
99
96
|
})])])]
|
|
100
97
|
});
|
|
101
|
-
return () => t(
|
|
102
|
-
visible:
|
|
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:
|
|
109
|
-
placeholder:
|
|
105
|
+
ref: b,
|
|
106
|
+
placeholder: r("common.search"),
|
|
110
107
|
onInput: (e) => {
|
|
111
|
-
|
|
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(
|
|
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: () =>
|
|
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, [
|
|
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
|
-
}, [
|
|
139
|
-
default: () => [t(
|
|
140
|
-
heading:
|
|
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
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
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:
|
|
158
|
-
onSelect:
|
|
151
|
+
label: r("common.back"),
|
|
152
|
+
onSelect: x,
|
|
159
153
|
keyName: "Backspace"
|
|
160
|
-
}, null) : t(
|
|
161
|
-
heading:
|
|
154
|
+
}, null) : t(o.Group, {
|
|
155
|
+
heading: r("common.theme")
|
|
162
156
|
}, {
|
|
163
|
-
default: () => [t(
|
|
157
|
+
default: () => [t(f, {
|
|
164
158
|
icon: "i-tabler:moon",
|
|
165
|
-
label:
|
|
159
|
+
label: r("common.dark"),
|
|
166
160
|
onSelect: () => {
|
|
167
|
-
|
|
161
|
+
v("dark");
|
|
168
162
|
}
|
|
169
|
-
}, null), t(
|
|
163
|
+
}, null), t(f, {
|
|
170
164
|
icon: "i-tabler:sun",
|
|
171
|
-
label:
|
|
165
|
+
label: r("common.light"),
|
|
172
166
|
onSelect: () => {
|
|
173
|
-
|
|
167
|
+
v("light");
|
|
174
168
|
}
|
|
175
169
|
}, null)]
|
|
176
170
|
})]
|
package/dist/esm/pages/page.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { NScrollbar as
|
|
3
|
-
const
|
|
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(
|
|
24
|
-
slots:
|
|
23
|
+
setup(e, {
|
|
24
|
+
slots: l
|
|
25
25
|
}) {
|
|
26
|
-
const
|
|
27
|
-
const
|
|
28
|
-
|
|
26
|
+
const r = s(!1), c = (t) => {
|
|
27
|
+
const a = t.target;
|
|
28
|
+
r.value = a.scrollTop > 0;
|
|
29
29
|
};
|
|
30
30
|
return () => {
|
|
31
|
-
|
|
32
|
-
|
|
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
|
-
}, [
|
|
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 ${
|
|
37
|
-
}, null),
|
|
38
|
-
class: [
|
|
39
|
-
contentClass: `${
|
|
40
|
-
onScroll:
|
|
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
|
-
|
|
44
|
-
|
|
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
|
-
|
|
49
|
+
p as DuxPage
|
|
54
50
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { DuxCard as
|
|
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
|
|
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(
|
|
55
|
-
slots:
|
|
54
|
+
setup(r, {
|
|
55
|
+
slots: i
|
|
56
56
|
}) {
|
|
57
|
-
return () =>
|
|
57
|
+
return () => t(o, {
|
|
58
58
|
class: "size-full flex items-center justify-center",
|
|
59
|
-
bordered:
|
|
59
|
+
bordered: r.bordered
|
|
60
60
|
}, {
|
|
61
|
-
default: () => {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
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
|
-
|
|
78
|
+
W as DuxPageStatus
|
|
82
79
|
};
|
package/dist/esm/stores/ui.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { defineStore as u } from "pinia";
|
|
2
|
-
import { inject as c, ref as
|
|
3
|
-
function
|
|
4
|
-
const
|
|
5
|
-
if (e || (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
|
|
12
|
-
|
|
13
|
-
}, l = (
|
|
14
|
-
|
|
15
|
-
},
|
|
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:
|
|
17
|
+
menuCollapsed: t,
|
|
18
18
|
setMenuCollapsed: i,
|
|
19
|
-
cmdVisible:
|
|
20
|
-
setCmdVisible: (
|
|
21
|
-
|
|
19
|
+
cmdVisible: r,
|
|
20
|
+
setCmdVisible: (o) => {
|
|
21
|
+
r.value = o;
|
|
22
22
|
},
|
|
23
|
-
menuMobileCollapsed:
|
|
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
|
-
|
|
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:
|
|
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;}
|
|
@@ -25,6 +25,9 @@ export declare const DuxDrawerForm: import("vue").DefineComponent<import("vue").
|
|
|
25
25
|
onError: {
|
|
26
26
|
type: PropType<(error?: IDataProviderError) => void>;
|
|
27
27
|
};
|
|
28
|
+
invalidate: {
|
|
29
|
+
type: PropType<string>;
|
|
30
|
+
};
|
|
28
31
|
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
29
32
|
labelPlacement: {
|
|
30
33
|
type: PropType<"left" | "top" | "setting" | "page">;
|
|
@@ -95,4 +98,7 @@ export declare const DuxDrawerForm: import("vue").DefineComponent<import("vue").
|
|
|
95
98
|
onError: {
|
|
96
99
|
type: PropType<(error?: IDataProviderError) => void>;
|
|
97
100
|
};
|
|
101
|
+
invalidate: {
|
|
102
|
+
type: PropType<string>;
|
|
103
|
+
};
|
|
98
104
|
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -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
|
+
};
|
|
@@ -11,4 +11,5 @@ export declare function useTableColumn(props?: UseTableColumnProps): {
|
|
|
11
11
|
renderInput: (props: import("./input").UseTableColumnInputProps) => (rowData: Record<string, any>, _rowIndex: number) => import("vue/jsx-runtime").JSX.Element;
|
|
12
12
|
renderCopy: (props: import("./copy").UseTableColumnCopyProps) => (rowData: Record<string, any>, _rowIndex: number) => import("vue/jsx-runtime").JSX.Element;
|
|
13
13
|
renderHidden: (props: import("./hidden").UseTableColumnHiddenProps) => (rowData: Record<string, any>, _rowIndex: number) => import("vue/jsx-runtime").JSX.Element;
|
|
14
|
+
renderColor: (props: import("./color").useTableColumnColorProps) => (rowData: Record<string, any>, _rowIndex: number) => import("vue/jsx-runtime").JSX.Element | null;
|
|
14
15
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@duxweb/dvha-pro",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.24",
|
|
5
5
|
"author": "DuxWeb",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@ant-design/colors": "^7.2.1",
|
|
36
|
-
"@duxweb/dvha-core": "^1.0.
|
|
37
|
-
"@duxweb/dvha-naiveui": "^1.0.
|
|
36
|
+
"@duxweb/dvha-core": "^1.0.24",
|
|
37
|
+
"@duxweb/dvha-naiveui": "^1.0.24",
|
|
38
38
|
"@iconify-json/tabler": "^1.2.18",
|
|
39
39
|
"@overlastic/vue": "^0.8.1",
|
|
40
40
|
"@tanstack/vue-query": "^5.80.7",
|