@duxweb/dvha-pro 1.0.20 → 1.0.22

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 (43) hide show
  1. package/dist/cjs/components/card/card.cjs +1 -1
  2. package/dist/cjs/components/code/code.cjs +1 -1
  3. package/dist/cjs/components/crop/imageCrop.cjs +1 -1
  4. package/dist/cjs/components/form/formItem.cjs +1 -1
  5. package/dist/cjs/components/form/formLayout.cjs +1 -1
  6. package/dist/cjs/components/media/media.cjs +1 -1
  7. package/dist/cjs/components/panel/setting.cjs +1 -1
  8. package/dist/cjs/components/status/listEmpty.cjs +1 -1
  9. package/dist/cjs/components/table/table.cjs +1 -1
  10. package/dist/cjs/components/table/tablePage.cjs +1 -1
  11. package/dist/cjs/components/tree/treeFilter.cjs +1 -1
  12. package/dist/cjs/components/upload/manage/item.cjs +1 -1
  13. package/dist/cjs/components/upload/manager.cjs +1 -1
  14. package/dist/cjs/index.cjs +1 -1
  15. package/dist/cjs/pages/layout/page.cjs +1 -1
  16. package/dist/cjs/theme/uno.css.cjs +3 -2
  17. package/dist/esm/components/card/card.js +1 -1
  18. package/dist/esm/components/code/code.js +6 -6
  19. package/dist/esm/components/crop/imageCrop.js +6 -3
  20. package/dist/esm/components/form/formItem.js +46 -30
  21. package/dist/esm/components/form/formLayout.js +12 -7
  22. package/dist/esm/components/media/media.js +4 -4
  23. package/dist/esm/components/panel/setting.js +13 -9
  24. package/dist/esm/components/status/listEmpty.js +8 -6
  25. package/dist/esm/components/table/table.js +30 -29
  26. package/dist/esm/components/table/tablePage.js +16 -15
  27. package/dist/esm/components/tree/treeFilter.js +2 -1
  28. package/dist/esm/components/upload/manage/item.js +3 -2
  29. package/dist/esm/components/upload/manager.js +65 -61
  30. package/dist/esm/index.js +4 -4
  31. package/dist/esm/pages/layout/page.js +30 -19
  32. package/dist/esm/theme/uno.css.js +3 -2
  33. package/dist/types/components/form/formItem.d.ts +17 -1
  34. package/dist/types/components/form/formLayout.d.ts +9 -0
  35. package/dist/types/components/form/modalForm.d.ts +9 -0
  36. package/dist/types/components/panel/setting.d.ts +9 -0
  37. package/dist/types/components/table/index.d.ts +1 -1
  38. package/dist/types/components/table/table.d.ts +1 -1
  39. package/dist/types/components/upload/image.d.ts +1 -1
  40. package/dist/types/components/upload/manage/item.d.ts +3 -0
  41. package/dist/types/hooks/table/media.d.ts +1 -1
  42. package/dist/types/main.d.ts +1 -1
  43. package/package.json +3 -3
package/dist/esm/index.js CHANGED
@@ -66,8 +66,8 @@ import { DuxStatsNumber as vr } from "./components/stats/number.js";
66
66
  import { DuxStatsRealTime as Rr } from "./components/stats/realTime.js";
67
67
  import { DuxBlockEmpty as kr } from "./components/status/blockEmpty.js";
68
68
  import { DuxListEmpty as Nr } from "./components/status/listEmpty.js";
69
- import { DuxTablePage as Vr } from "./components/table/tablePage.js";
70
- import { DuxTable as Or } from "./components/table/table.js";
69
+ import { DuxTable as Vr } from "./components/table/table.js";
70
+ import { DuxTablePage as Or } from "./components/table/tablePage.js";
71
71
  import { DuxTreeFilter as jr } from "./components/tree/treeFilter.js";
72
72
  import { DuxFileUpload as Gr } from "./components/upload/file.js";
73
73
  import { DuxImageUpload as Kr } from "./components/upload/image.js";
@@ -168,10 +168,10 @@ export {
168
168
  Rr as DuxStatsRealTime,
169
169
  l as DuxStatsStore,
170
170
  s as DuxStatsStoreItem,
171
- Or as DuxTable,
171
+ Vr as DuxTable,
172
172
  mr as DuxTableFilter,
173
173
  sr as DuxTableLayout,
174
- Vr as DuxTablePage,
174
+ Or as DuxTablePage,
175
175
  nr as DuxTableTools,
176
176
  jr as DuxTreeFilter,
177
177
  oe as DuxWidgetConnect,
@@ -1,11 +1,11 @@
1
- import { defineComponent as r, createVNode as t } from "vue";
2
- import { useManage as m, DuxTabRouterView as l } from "@duxweb/dvha-core";
3
- import { NButton as p } from "naive-ui";
1
+ import { defineComponent as p, onMounted as n, onUnmounted as s, createVNode as t } from "vue";
2
+ import { useManage as u, useCheck as a, DuxTabRouterView as c } from "@duxweb/dvha-core";
3
+ import { useIntervalFn as f } from "@vueuse/core";
4
+ import { NButton as d } from "naive-ui";
4
5
  import "vue-router";
5
6
  import "@overlastic/vue";
6
7
  import "clsx";
7
8
  import "vue-echarts";
8
- import "@vueuse/core";
9
9
  import "vue-cropper";
10
10
  import "jinrishici";
11
11
  import "lodash-es";
@@ -21,10 +21,10 @@ import "@unocss/preset-typography";
21
21
  import "unocss/preset-wind4";
22
22
  import "@vee-validate/i18n/dist/locale/en.json";
23
23
  import "@vee-validate/i18n/dist/locale/zh_CN.json";
24
- import s from "../menu/avatar.js";
24
+ import x from "../menu/avatar.js";
25
25
  import "vue-command-palette";
26
26
  import "@duxweb/dvha-naiveui";
27
- import { DuxPageTab as n } from "./tab.js";
27
+ import { DuxPageTab as g } from "./tab.js";
28
28
  import "../page404.js";
29
29
  import "@iconify-json/tabler/icons.json";
30
30
  import "mime";
@@ -41,41 +41,52 @@ import "ace-builds/src-noconflict/ext-language_tools";
41
41
  import "ace-builds/src-noconflict/mode-snippets";
42
42
  import "dayjs";
43
43
  import "@tanstack/vue-query";
44
- import { useUI as u } from "../../hooks/ui.js";
45
- const et = /* @__PURE__ */ r({
44
+ import { useUI as v } from "../../hooks/ui.js";
45
+ const nt = /* @__PURE__ */ p({
46
46
  name: "DuxLayoutPage",
47
47
  props: {},
48
48
  setup() {
49
49
  const {
50
- menuMobileCollapsed: e,
51
- setMenuMobileCollapsed: o
50
+ menuMobileCollapsed: o,
51
+ setMenuMobileCollapsed: i
52
+ } = v(), {
53
+ config: r
52
54
  } = u(), {
53
- config: i
54
- } = m();
55
- return () => t("div", {
55
+ mutate: e
56
+ } = a(), {
57
+ pause: m,
58
+ resume: l
59
+ } = f(() => {
60
+ e();
61
+ }, 1e3 * 60 * 10);
62
+ return n(() => {
63
+ e(), l();
64
+ }), s(() => {
65
+ m();
66
+ }), () => t("div", {
56
67
  class: "flex-1 min-w-0 flex flex-col"
57
68
  }, [t("div", {
58
69
  class: "flex flex-col lg:flex-row lg:justify-between lg:items-center lg:h-13"
59
70
  }, [t("div", {
60
71
  class: "flex lg:hidden justify-between items-center px-2 py-2 bg-default dark:bg-muted shadow-xs relative"
61
- }, [t(p, {
72
+ }, [t(d, {
62
73
  text: !0,
63
- onClick: () => o(!e.value)
74
+ onClick: () => i(!o.value)
64
75
  }, {
65
76
  default: () => [t("div", {
66
77
  class: "i-tabler:menu-2 size-6"
67
78
  }, null)]
68
79
  }), t("div", {
69
80
  class: "w-full absolute inset-0 flex items-center justify-center text-base pointer-events-none"
70
- }, [i.title]), t("div", null, [t(s, {
81
+ }, [r.title]), t("div", null, [t(x, {
71
82
  collapsed: !0
72
83
  }, null)])]), t("div", {
73
84
  class: "flex-1 py-2"
74
- }, [t(n, null, null)])]), t("div", {
85
+ }, [t(g, null, null)])]), t("div", {
75
86
  class: "flex-1 min-h-0 mr-2 ml-2 mb-2 lg:ml-0"
76
- }, [t(l, null, null)])]);
87
+ }, [t(c, null, null)])]);
77
88
  }
78
89
  });
79
90
  export {
80
- et as DuxLayoutPage
91
+ nt as DuxLayoutPage
81
92
  };
@@ -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-x-reverse:0;--un-divide-opacity:100%;--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-outline-style:solid;--un-fill-opacity:100%;}}
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;}}
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%;}
@@ -1179,6 +1179,7 @@ input:where([type='button'], [type='reset'], [type='submit']),
1179
1179
  .h-full{height:100%;}
1180
1180
  .h-screen{height:100vh;}
1181
1181
  .max-h-0{max-height:calc(var(--spacing) * 0);}
1182
+ .max-h-120px{max-height:120px;}
1182
1183
  .max-h-500{max-height:calc(var(--spacing) * 500);}
1183
1184
  .max-h-500px{max-height:500px;}
1184
1185
  .max-w-180{max-width:calc(var(--spacing) * 180);}
@@ -1186,7 +1187,6 @@ input:where([type='button'], [type='reset'], [type='submit']),
1186
1187
  .min-h-0{min-height:calc(var(--spacing) * 0);}
1187
1188
  .min-h-1{min-height:calc(var(--spacing) * 1);}
1188
1189
  .min-w-0{min-width:calc(var(--spacing) * 0);}
1189
- .min-w-200px{min-width:200px;}
1190
1190
  .min-w-60{min-width:calc(var(--spacing) * 60);}
1191
1191
  .w-120{width:calc(var(--spacing) * 120);}
1192
1192
  .w-120px{width:120px;}
@@ -1390,6 +1390,7 @@ input:where([type='button'], [type='reset'], [type='submit']),
1390
1390
  .md\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr));}
1391
1391
  .md\\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr));}
1392
1392
  .md\\:h-auto{height:auto;}
1393
+ .md\\:w-40\\%{width:40%;}
1393
1394
  .md\\:shadow{--un-shadow:0 1px 3px 0 var(--un-shadow-color, rgb(0 0 0 / 0.1)),0 1px 2px -1px var(--un-shadow-color, rgb(0 0 0 / 0.1));box-shadow:var(--un-inset-shadow), var(--un-inset-ring-shadow), var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow);}
1394
1395
  .md\\:items-start{align-items:flex-start;}
1395
1396
  .md\\:items-center{align-items:center;}
@@ -7,9 +7,16 @@ export declare const DuxFormItem: import("vue").DefineComponent<import("vue").Ex
7
7
  labelPlacement: {
8
8
  type: PropType<"left" | "top" | "setting" | "page">;
9
9
  };
10
+ labelAlign: {
11
+ type: PropType<"left" | "right">;
12
+ };
10
13
  labelWidth: {
11
14
  type: NumberConstructor;
12
15
  };
16
+ required: {
17
+ type: BooleanConstructor;
18
+ default: boolean;
19
+ };
13
20
  rule: PropType<RuleExpression<any>>;
14
21
  message: PropType<string | Record<string, string>>;
15
22
  }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
@@ -19,9 +26,18 @@ export declare const DuxFormItem: import("vue").DefineComponent<import("vue").Ex
19
26
  labelPlacement: {
20
27
  type: PropType<"left" | "top" | "setting" | "page">;
21
28
  };
29
+ labelAlign: {
30
+ type: PropType<"left" | "right">;
31
+ };
22
32
  labelWidth: {
23
33
  type: NumberConstructor;
24
34
  };
35
+ required: {
36
+ type: BooleanConstructor;
37
+ default: boolean;
38
+ };
25
39
  rule: PropType<RuleExpression<any>>;
26
40
  message: PropType<string | Record<string, string>>;
27
- }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
41
+ }>> & Readonly<{}>, {
42
+ required: boolean;
43
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -4,6 +4,10 @@ export declare const DuxFormLayout: import("vue").DefineComponent<import("vue").
4
4
  type: PropType<"left" | "top" | "setting" | "page">;
5
5
  default: string;
6
6
  };
7
+ labelAlign: {
8
+ type: PropType<"left" | "right">;
9
+ default: string;
10
+ };
7
11
  labelWidth: {
8
12
  type: NumberConstructor;
9
13
  };
@@ -20,6 +24,10 @@ export declare const DuxFormLayout: import("vue").DefineComponent<import("vue").
20
24
  type: PropType<"left" | "top" | "setting" | "page">;
21
25
  default: string;
22
26
  };
27
+ labelAlign: {
28
+ type: PropType<"left" | "right">;
29
+ default: string;
30
+ };
23
31
  labelWidth: {
24
32
  type: NumberConstructor;
25
33
  };
@@ -33,6 +41,7 @@ export declare const DuxFormLayout: import("vue").DefineComponent<import("vue").
33
41
  };
34
42
  }>> & Readonly<{}>, {
35
43
  inline: boolean;
44
+ labelAlign: "left" | "right";
36
45
  labelPlacement: "left" | "top" | "page" | "setting";
37
46
  divider: boolean;
38
47
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -30,6 +30,10 @@ export declare const DuxModalForm: import("vue").DefineComponent<import("vue").E
30
30
  type: PropType<"left" | "top" | "setting" | "page">;
31
31
  default: string;
32
32
  };
33
+ labelAlign: {
34
+ type: PropType<"left" | "right">;
35
+ default: string;
36
+ };
33
37
  labelWidth: {
34
38
  type: NumberConstructor;
35
39
  };
@@ -46,6 +50,10 @@ export declare const DuxModalForm: import("vue").DefineComponent<import("vue").E
46
50
  type: PropType<"left" | "top" | "setting" | "page">;
47
51
  default: string;
48
52
  };
53
+ labelAlign: {
54
+ type: PropType<"left" | "right">;
55
+ default: string;
56
+ };
49
57
  labelWidth: {
50
58
  type: NumberConstructor;
51
59
  };
@@ -59,6 +67,7 @@ export declare const DuxModalForm: import("vue").DefineComponent<import("vue").E
59
67
  };
60
68
  }>> & Readonly<{}>, {
61
69
  inline: boolean;
70
+ labelAlign: "left" | "right";
62
71
  labelPlacement: "left" | "top" | "page" | "setting";
63
72
  divider: boolean;
64
73
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
@@ -11,6 +11,10 @@ export declare const DuxPanelCard: import("vue").DefineComponent<import("vue").E
11
11
  padding: {
12
12
  type: PropType<"none" | "small" | "medium" | "large">;
13
13
  };
14
+ bordered: {
15
+ type: BooleanConstructor;
16
+ default: boolean;
17
+ };
14
18
  }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
15
19
  title: {
16
20
  type: StringConstructor;
@@ -23,7 +27,12 @@ export declare const DuxPanelCard: import("vue").DefineComponent<import("vue").E
23
27
  padding: {
24
28
  type: PropType<"none" | "small" | "medium" | "large">;
25
29
  };
30
+ bordered: {
31
+ type: BooleanConstructor;
32
+ default: boolean;
33
+ };
26
34
  }>> & Readonly<{}>, {
27
35
  title: string;
28
36
  description: string;
37
+ bordered: boolean;
29
38
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -1,2 +1,2 @@
1
- export * from './tablePage';
2
1
  export * from './table';
2
+ export * from './tablePage';
@@ -1,5 +1,5 @@
1
+ import type { TableColumn, TablePagination } from '@duxweb/dvha-naiveui';
1
2
  import type { PropType } from 'vue';
2
- import { TableColumn, TablePagination } from '@duxweb/dvha-naiveui';
3
3
  export declare const DuxTable: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
4
  path: {
5
5
  type: StringConstructor;
@@ -120,8 +120,8 @@ export declare const DuxImageUpload: import("vue").DefineComponent<import("vue")
120
120
  path: string;
121
121
  multiple: boolean;
122
122
  driver: "local" | "s3";
123
+ manager: boolean;
123
124
  managePath: string;
124
125
  signPath: string;
125
126
  maxSize: number;
126
- manager: boolean;
127
127
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -8,6 +8,7 @@ export declare const DuxFileManageItem: import("vue").DefineComponent<import("vu
8
8
  value: BooleanConstructor;
9
9
  onContextmenu: PropType<(e: MouseEvent) => void>;
10
10
  onSelect: FunctionConstructor;
11
+ page: BooleanConstructor;
11
12
  }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
12
13
  name: StringConstructor;
13
14
  url: StringConstructor;
@@ -17,6 +18,8 @@ export declare const DuxFileManageItem: import("vue").DefineComponent<import("vu
17
18
  value: BooleanConstructor;
18
19
  onContextmenu: PropType<(e: MouseEvent) => void>;
19
20
  onSelect: FunctionConstructor;
21
+ page: BooleanConstructor;
20
22
  }>> & Readonly<{}>, {
21
23
  value: boolean;
24
+ page: boolean;
22
25
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -2,7 +2,7 @@ import type { VNode } from 'vue';
2
2
  export interface UseTableColumnMediaProps {
3
3
  image?: string | string[] | ((rowData: Record<string, any>) => VNode | string | string[]);
4
4
  avatar?: boolean;
5
- title?: string | ((rowData: Record<string, any>) => VNode);
5
+ title?: string | ((rowData: Record<string, any>) => VNode | string);
6
6
  desc?: string | string[] | ((rowData: Record<string, any>) => VNode | string | string[]);
7
7
  imageWidth?: number;
8
8
  imageHeight?: number;
@@ -1,9 +1,9 @@
1
+ import type { IDataProviderResponse, IS3SignData } from '@duxweb/dvha-core';
1
2
  import type { App } from 'vue';
2
3
  import 'echarts';
3
4
  import 'vue-cropper/dist/index.css';
4
5
  import 'aieditor/dist/style.css';
5
6
  import './theme/style.scss';
6
- import { IDataProviderResponse, IS3SignData } from '@duxweb/dvha-core';
7
7
  export declare function createDuxPro(): {
8
8
  install(app: App): void;
9
9
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@duxweb/dvha-pro",
3
3
  "type": "module",
4
- "version": "1.0.20",
4
+ "version": "1.0.22",
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.20",
37
- "@duxweb/dvha-naiveui": "^1.0.20",
36
+ "@duxweb/dvha-core": "^1.0.22",
37
+ "@duxweb/dvha-naiveui": "^1.0.22",
38
38
  "@iconify-json/tabler": "^1.2.18",
39
39
  "@overlastic/vue": "^0.8.1",
40
40
  "@tanstack/vue-query": "^5.80.7",