@duxweb/dvha-pro 0.0.6 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (121) hide show
  1. package/dist/cjs/component.cjs +1 -1
  2. package/dist/cjs/components/card/card.cjs +1 -1
  3. package/dist/cjs/components/chart/echart.cjs +1 -0
  4. package/dist/cjs/components/dialog/dialog.cjs +1 -1
  5. package/dist/cjs/components/drawer/drawer.cjs +1 -1
  6. package/dist/cjs/components/form/modalForm.cjs +1 -1
  7. package/dist/cjs/components/form/pageForm.cjs +1 -1
  8. package/dist/cjs/components/form/settingForm.cjs +1 -1
  9. package/dist/cjs/components/layout/list.cjs +1 -1
  10. package/dist/cjs/components/layout/table.cjs +1 -1
  11. package/dist/cjs/components/list/card.cjs +1 -1
  12. package/dist/cjs/components/list/list.cjs +1 -1
  13. package/dist/cjs/components/modal/modal.cjs +1 -1
  14. package/dist/cjs/components/modal/modalPage.cjs +1 -1
  15. package/dist/cjs/components/modal/modalTab.cjs +1 -1
  16. package/dist/cjs/components/select/cardSelect.cjs +1 -0
  17. package/dist/cjs/components/table/tablePage.cjs +1 -1
  18. package/dist/cjs/config/echart.cjs +1 -0
  19. package/dist/cjs/dvha-pro.css +1 -1
  20. package/dist/cjs/hooks/action.cjs +1 -1
  21. package/dist/cjs/hooks/dialog.cjs +1 -1
  22. package/dist/cjs/hooks/drawer.cjs +1 -1
  23. package/dist/cjs/hooks/echart.cjs +1 -0
  24. package/dist/cjs/hooks/modal.cjs +1 -1
  25. package/dist/cjs/hooks/table/media.cjs +1 -1
  26. package/dist/cjs/index.cjs +1 -1
  27. package/dist/cjs/main.cjs +1 -1
  28. package/dist/cjs/pages/authLayout.cjs +1 -1
  29. package/dist/cjs/pages/layout/global.cjs +1 -1
  30. package/dist/cjs/pages/layout/page.cjs +1 -1
  31. package/dist/cjs/pages/login.cjs +1 -1
  32. package/dist/cjs/pages/menu/avatar.cjs +1 -1
  33. package/dist/cjs/pages/menu/button.cjs +1 -1
  34. package/dist/cjs/pages/menu/cmd.cjs +1 -1
  35. package/dist/cjs/pages/menu/main.cjs +1 -1
  36. package/dist/cjs/pages/menu/mobile.cjs +1 -1
  37. package/dist/cjs/pages/page.cjs +1 -1
  38. package/dist/cjs/pages/page404.cjs +1 -1
  39. package/dist/cjs/pages/pageStatus.cjs +1 -1
  40. package/dist/cjs/theme/naiveTheme.cjs +1 -1
  41. package/dist/cjs/theme/uno.css.cjs +28 -7
  42. package/dist/esm/component.js +43 -41
  43. package/dist/esm/components/card/card.js +1 -1
  44. package/dist/esm/components/chart/echart.js +75 -0
  45. package/dist/esm/components/dialog/dialog.js +87 -93
  46. package/dist/esm/components/drawer/drawer.js +34 -32
  47. package/dist/esm/components/form/modalForm.js +1 -1
  48. package/dist/esm/components/form/pageForm.js +23 -19
  49. package/dist/esm/components/form/settingForm.js +22 -18
  50. package/dist/esm/components/layout/list.js +203 -142
  51. package/dist/esm/components/layout/table.js +210 -145
  52. package/dist/esm/components/list/card.js +42 -32
  53. package/dist/esm/components/list/list.js +27 -16
  54. package/dist/esm/components/modal/modal.js +46 -86
  55. package/dist/esm/components/modal/modalPage.js +23 -18
  56. package/dist/esm/components/modal/modalTab.js +11 -11
  57. package/dist/esm/components/select/cardSelect.js +103 -0
  58. package/dist/esm/components/table/tablePage.js +21 -18
  59. package/dist/esm/config/echart.js +456 -0
  60. package/dist/esm/dvha-pro.css +1 -1
  61. package/dist/esm/hooks/action.js +46 -45
  62. package/dist/esm/hooks/dialog.js +24 -7
  63. package/dist/esm/hooks/drawer.js +12 -8
  64. package/dist/esm/hooks/echart.js +469 -0
  65. package/dist/esm/hooks/modal.js +25 -9
  66. package/dist/esm/hooks/table/media.js +18 -14
  67. package/dist/esm/index.js +158 -135
  68. package/dist/esm/main.js +11 -8
  69. package/dist/esm/pages/authLayout.js +3 -2
  70. package/dist/esm/pages/layout/global.js +46 -33
  71. package/dist/esm/pages/layout/page.js +13 -9
  72. package/dist/esm/pages/login.js +25 -21
  73. package/dist/esm/pages/menu/avatar.js +14 -14
  74. package/dist/esm/pages/menu/button.js +14 -10
  75. package/dist/esm/pages/menu/cmd.js +26 -22
  76. package/dist/esm/pages/menu/main.js +26 -22
  77. package/dist/esm/pages/menu/mobile.js +11 -7
  78. package/dist/esm/pages/page.js +16 -16
  79. package/dist/esm/pages/page404.js +24 -20
  80. package/dist/esm/pages/pageStatus.js +12 -8
  81. package/dist/esm/theme/naiveTheme.js +57 -51
  82. package/dist/esm/theme/uno.css.js +28 -7
  83. package/dist/types/components/chart/echart.d.ts +284 -0
  84. package/dist/types/components/chart/index.d.ts +1 -0
  85. package/dist/types/components/dialog/dialog.d.ts +1 -20
  86. package/dist/types/components/drawer/drawer.d.ts +14 -4
  87. package/dist/types/components/form/formLayout.d.ts +1 -1
  88. package/dist/types/components/form/modalForm.d.ts +1 -1
  89. package/dist/types/components/index.d.ts +3 -0
  90. package/dist/types/components/layout/list.d.ts +18 -0
  91. package/dist/types/components/layout/table.d.ts +22 -1
  92. package/dist/types/components/list/card.d.ts +38 -0
  93. package/dist/types/components/list/list.d.ts +43 -2
  94. package/dist/types/components/modal/modal.d.ts +13 -31
  95. package/dist/types/components/modal/modalPage.d.ts +3 -6
  96. package/dist/types/components/panel/alert.d.ts +1 -1
  97. package/dist/types/components/select/cardSelect.d.ts +88 -0
  98. package/dist/types/components/select/index.d.ts +1 -0
  99. package/dist/types/components/table/tablePage.d.ts +28 -2
  100. package/dist/types/config/echart.d.ts +4 -0
  101. package/dist/types/config/index.d.ts +1 -0
  102. package/dist/types/hooks/drawer.d.ts +3 -2
  103. package/dist/types/hooks/echart.d.ts +166 -0
  104. package/dist/types/hooks/index.d.ts +2 -0
  105. package/dist/types/hooks/modal.d.ts +10 -5
  106. package/dist/types/hooks/table/types.d.ts +1 -0
  107. package/dist/types/main.d.ts +1 -0
  108. package/dist/types/pages/layout/global.d.ts +1 -0
  109. package/dist/types/pages/menu/avatar.d.ts +3 -3
  110. package/dist/types/pages/menu/button.d.ts +3 -3
  111. package/dist/types/pages/menu/main.d.ts +3 -3
  112. package/dist/types/pages/page.d.ts +1 -1
  113. package/package.json +8 -3
  114. package/dist/cjs/node_modules/.pnpm/@vueuse_integrations@13.3.0_async-validator@4.2.5_axios@1.10.0_focus-trap@7.6.5_vue@3.5.17_typescript@5.8.3_/node_modules/@vueuse/integrations/useFocusTrap.cjs +0 -1
  115. package/dist/cjs/node_modules/.pnpm/@vueuse_shared@13.3.0_vue@3.5.17_typescript@5.8.3_/node_modules/@vueuse/shared/index.cjs +0 -1
  116. package/dist/cjs/node_modules/.pnpm/focus-trap@7.6.5/node_modules/focus-trap/dist/focus-trap.esm.cjs +0 -5
  117. package/dist/cjs/node_modules/.pnpm/tabbable@6.2.0/node_modules/tabbable/dist/index.esm.cjs +0 -4
  118. package/dist/esm/node_modules/.pnpm/@vueuse_integrations@13.3.0_async-validator@4.2.5_axios@1.10.0_focus-trap@7.6.5_vue@3.5.17_typescript@5.8.3_/node_modules/@vueuse/integrations/useFocusTrap.js +0 -43
  119. package/dist/esm/node_modules/.pnpm/@vueuse_shared@13.3.0_vue@3.5.17_typescript@5.8.3_/node_modules/@vueuse/shared/index.js +0 -6
  120. package/dist/esm/node_modules/.pnpm/focus-trap@7.6.5/node_modules/focus-trap/dist/focus-trap.esm.js +0 -473
  121. package/dist/esm/node_modules/.pnpm/tabbable@6.2.0/node_modules/tabbable/dist/index.esm.js +0 -202
@@ -1,19 +1,29 @@
1
- import type { AsyncComponentLoader, PropType } from 'vue';
1
+ import type { AsyncComponentLoader, Component, PropType } from 'vue';
2
2
  declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3
3
  title: StringConstructor;
4
4
  width: (StringConstructor | NumberConstructor)[];
5
+ placement: {
6
+ type: PropType<"left" | "right" | "top" | "bottom">;
7
+ default: string;
8
+ };
5
9
  component: {
6
- type: PropType<AsyncComponentLoader<any>>;
10
+ type: PropType<AsyncComponentLoader<any> | Component>;
7
11
  required: true;
8
12
  };
9
13
  componentProps: ObjectConstructor;
10
14
  }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
11
15
  title: StringConstructor;
12
16
  width: (StringConstructor | NumberConstructor)[];
17
+ placement: {
18
+ type: PropType<"left" | "right" | "top" | "bottom">;
19
+ default: string;
20
+ };
13
21
  component: {
14
- type: PropType<AsyncComponentLoader<any>>;
22
+ type: PropType<AsyncComponentLoader<any> | Component>;
15
23
  required: true;
16
24
  };
17
25
  componentProps: ObjectConstructor;
18
- }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
26
+ }>> & Readonly<{}>, {
27
+ placement: "left" | "right" | "top" | "bottom";
28
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
19
29
  export default _default;
@@ -32,7 +32,7 @@ export declare const DuxFormLayout: import("vue").DefineComponent<import("vue").
32
32
  default: boolean;
33
33
  };
34
34
  }>> & Readonly<{}>, {
35
- labelPlacement: "left" | "top" | "setting";
36
35
  inline: boolean;
36
+ labelPlacement: "left" | "top" | "setting";
37
37
  divider: boolean;
38
38
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -58,8 +58,8 @@ export declare const DuxModalForm: import("vue").DefineComponent<import("vue").E
58
58
  default: boolean;
59
59
  };
60
60
  }>> & Readonly<{}>, {
61
- labelPlacement: "left" | "top" | "setting";
62
61
  inline: boolean;
62
+ labelPlacement: "left" | "top" | "setting";
63
63
  divider: boolean;
64
64
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
65
65
  id: {
@@ -1,6 +1,8 @@
1
1
  export * from './card';
2
2
  export * from './carousel';
3
+ export * from './chart';
3
4
  export * from './dashboard';
5
+ export * from './dialog';
4
6
  export * from './draw';
5
7
  export * from './drawer';
6
8
  export * from './form';
@@ -9,6 +11,7 @@ export * from './list';
9
11
  export * from './media';
10
12
  export * from './modal';
11
13
  export * from './panel';
14
+ export * from './select';
12
15
  export * from './status';
13
16
  export * from './table';
14
17
  export * from './widget';
@@ -45,6 +45,14 @@ export declare const DuxListLayout: import("vue").DefineComponent<import("vue").
45
45
  checkable: {
46
46
  type: BooleanConstructor;
47
47
  };
48
+ sideLeftTitle: {
49
+ type: StringConstructor;
50
+ default: string;
51
+ };
52
+ sideRightTitle: {
53
+ type: StringConstructor;
54
+ default: string;
55
+ };
48
56
  }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
49
57
  rowKey: {
50
58
  type: StringConstructor;
@@ -80,9 +88,19 @@ export declare const DuxListLayout: import("vue").DefineComponent<import("vue").
80
88
  checkable: {
81
89
  type: BooleanConstructor;
82
90
  };
91
+ sideLeftTitle: {
92
+ type: StringConstructor;
93
+ default: string;
94
+ };
95
+ sideRightTitle: {
96
+ type: StringConstructor;
97
+ default: string;
98
+ };
83
99
  }>> & Readonly<{}>, {
84
100
  checkable: boolean;
85
101
  rowKey: string;
86
102
  pagination: boolean | TablePagination;
87
103
  actions: UseActionItem[];
104
+ sideLeftTitle: string;
105
+ sideRightTitle: string;
88
106
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -1,5 +1,5 @@
1
1
  import type { JsonSchemaNode } from '@duxweb/dvha-core';
2
- import type { TableColumn, TablePagination } from '@duxweb/dvha-naiveui';
2
+ import type { TableColumn, TablePagination, UseNaiveTableReturn } from '@duxweb/dvha-naiveui';
3
3
  import type { PropType } from 'vue';
4
4
  import type { UseActionItem } from '../../hooks';
5
5
  export interface TablePageTools {
@@ -7,6 +7,9 @@ export interface TablePageTools {
7
7
  export?: boolean;
8
8
  refresh?: boolean;
9
9
  }
10
+ export interface TablePageSlotProps extends UseNaiveTableReturn {
11
+ width: number;
12
+ }
10
13
  export declare const DuxTableLayout: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
11
14
  path: {
12
15
  type: StringConstructor;
@@ -37,6 +40,14 @@ export declare const DuxTableLayout: import("vue").DefineComponent<import("vue")
37
40
  tools: {
38
41
  type: PropType<TablePageTools>;
39
42
  };
43
+ sideLeftTitle: {
44
+ type: StringConstructor;
45
+ default: string;
46
+ };
47
+ sideRightTitle: {
48
+ type: StringConstructor;
49
+ default: string;
50
+ };
40
51
  }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
41
52
  path: {
42
53
  type: StringConstructor;
@@ -67,6 +78,16 @@ export declare const DuxTableLayout: import("vue").DefineComponent<import("vue")
67
78
  tools: {
68
79
  type: PropType<TablePageTools>;
69
80
  };
81
+ sideLeftTitle: {
82
+ type: StringConstructor;
83
+ default: string;
84
+ };
85
+ sideRightTitle: {
86
+ type: StringConstructor;
87
+ default: string;
88
+ };
70
89
  }>> & Readonly<{}>, {
71
90
  actions: UseActionItem[];
91
+ sideLeftTitle: string;
92
+ sideRightTitle: string;
72
93
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -17,6 +17,14 @@ export declare const DuxCardPage: import("vue").DefineComponent<import("vue").Ex
17
17
  type: NumberConstructor;
18
18
  default: number;
19
19
  };
20
+ sideLeftTitle: {
21
+ type: StringConstructor;
22
+ default: string;
23
+ };
24
+ sideRightTitle: {
25
+ type: StringConstructor;
26
+ default: string;
27
+ };
20
28
  }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").DefineComponent<import("vue").ExtractPropTypes<{
21
29
  rowKey: {
22
30
  type: StringConstructor;
@@ -52,6 +60,14 @@ export declare const DuxCardPage: import("vue").DefineComponent<import("vue").Ex
52
60
  checkable: {
53
61
  type: BooleanConstructor;
54
62
  };
63
+ sideLeftTitle: {
64
+ type: StringConstructor;
65
+ default: string;
66
+ };
67
+ sideRightTitle: {
68
+ type: StringConstructor;
69
+ default: string;
70
+ };
55
71
  }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
56
72
  rowKey: {
57
73
  type: StringConstructor;
@@ -87,11 +103,21 @@ export declare const DuxCardPage: import("vue").DefineComponent<import("vue").Ex
87
103
  checkable: {
88
104
  type: BooleanConstructor;
89
105
  };
106
+ sideLeftTitle: {
107
+ type: StringConstructor;
108
+ default: string;
109
+ };
110
+ sideRightTitle: {
111
+ type: StringConstructor;
112
+ default: string;
113
+ };
90
114
  }>> & Readonly<{}>, {
91
115
  checkable: boolean;
92
116
  rowKey: string;
93
117
  pagination: boolean | import("..").TablePagination;
94
118
  actions: import("../..").UseActionItem[];
119
+ sideLeftTitle: string;
120
+ sideRightTitle: string;
95
121
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
96
122
  colWidth: {
97
123
  type: NumberConstructor;
@@ -105,8 +131,18 @@ export declare const DuxCardPage: import("vue").DefineComponent<import("vue").Ex
105
131
  type: NumberConstructor;
106
132
  default: number;
107
133
  };
134
+ sideLeftTitle: {
135
+ type: StringConstructor;
136
+ default: string;
137
+ };
138
+ sideRightTitle: {
139
+ type: StringConstructor;
140
+ default: string;
141
+ };
108
142
  }>> & Readonly<{}>, {
109
143
  rows: number;
144
+ sideLeftTitle: string;
145
+ sideRightTitle: string;
110
146
  colWidth: number;
111
147
  maxRows: number;
112
148
  }, SlotsType<{
@@ -114,4 +150,6 @@ export declare const DuxCardPage: import("vue").DefineComponent<import("vue").Ex
114
150
  bottom: () => any;
115
151
  tools: () => any;
116
152
  actions: () => any;
153
+ sideLeft: () => any;
154
+ sideRight: () => any;
117
155
  }>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -4,7 +4,16 @@ export interface ListPageSlotProps {
4
4
  isChecked: (id: string | number) => boolean;
5
5
  toggleChecked: (id: string | number) => void;
6
6
  }
7
- export declare const DuxListPage: import("vue").DefineComponent<{}, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").DefineComponent<import("vue").ExtractPropTypes<{
7
+ export declare const DuxListPage: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
8
+ sideLeftTitle: {
9
+ type: StringConstructor;
10
+ default: string;
11
+ };
12
+ sideRightTitle: {
13
+ type: StringConstructor;
14
+ default: string;
15
+ };
16
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").DefineComponent<import("vue").ExtractPropTypes<{
8
17
  rowKey: {
9
18
  type: StringConstructor;
10
19
  default: string;
@@ -39,6 +48,14 @@ export declare const DuxListPage: import("vue").DefineComponent<{}, () => import
39
48
  checkable: {
40
49
  type: BooleanConstructor;
41
50
  };
51
+ sideLeftTitle: {
52
+ type: StringConstructor;
53
+ default: string;
54
+ };
55
+ sideRightTitle: {
56
+ type: StringConstructor;
57
+ default: string;
58
+ };
42
59
  }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
43
60
  rowKey: {
44
61
  type: StringConstructor;
@@ -74,14 +91,38 @@ export declare const DuxListPage: import("vue").DefineComponent<{}, () => import
74
91
  checkable: {
75
92
  type: BooleanConstructor;
76
93
  };
94
+ sideLeftTitle: {
95
+ type: StringConstructor;
96
+ default: string;
97
+ };
98
+ sideRightTitle: {
99
+ type: StringConstructor;
100
+ default: string;
101
+ };
77
102
  }>> & Readonly<{}>, {
78
103
  checkable: boolean;
79
104
  rowKey: string;
80
105
  pagination: boolean | import("..").TablePagination;
81
106
  actions: import("../..").UseActionItem[];
82
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, SlotsType<{
107
+ sideLeftTitle: string;
108
+ sideRightTitle: string;
109
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
110
+ sideLeftTitle: {
111
+ type: StringConstructor;
112
+ default: string;
113
+ };
114
+ sideRightTitle: {
115
+ type: StringConstructor;
116
+ default: string;
117
+ };
118
+ }>> & Readonly<{}>, {
119
+ sideLeftTitle: string;
120
+ sideRightTitle: string;
121
+ }, SlotsType<{
83
122
  default: (props: ListPageSlotProps) => any;
84
123
  bottom: () => any;
85
124
  tools: () => any;
86
125
  actions: () => any;
126
+ sideLeft: () => any;
127
+ sideRight: () => any;
87
128
  }>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -1,27 +1,20 @@
1
- import type { PropType } from 'vue';
1
+ import type { ModalProps } from 'naive-ui';
2
+ import type { AsyncComponentLoader, Component, PropType } from 'vue';
2
3
  export declare const DuxModal: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3
4
  title: {
4
5
  type: StringConstructor;
5
6
  default: string;
6
7
  };
7
8
  component: {
8
- type: PropType<() => any>;
9
- };
10
- componentProps: {
11
- type: PropType<Record<string, any>>;
12
- default: () => {};
9
+ type: PropType<AsyncComponentLoader<any> | Component>;
13
10
  };
11
+ componentProps: ObjectConstructor;
14
12
  width: {
15
- type: NumberConstructor;
13
+ type: (StringConstructor | NumberConstructor)[];
16
14
  default: number;
17
15
  };
18
- onClose: {
19
- type: PropType<() => void>;
20
- default: () => void;
21
- };
22
- onConfirm: {
23
- type: PropType<() => void>;
24
- default: () => void;
16
+ modalProps: {
17
+ type: PropType<ModalProps>;
25
18
  };
26
19
  draggable: {
27
20
  type: BooleanConstructor;
@@ -33,23 +26,15 @@ export declare const DuxModal: import("vue").DefineComponent<import("vue").Extra
33
26
  default: string;
34
27
  };
35
28
  component: {
36
- type: PropType<() => any>;
37
- };
38
- componentProps: {
39
- type: PropType<Record<string, any>>;
40
- default: () => {};
29
+ type: PropType<AsyncComponentLoader<any> | Component>;
41
30
  };
31
+ componentProps: ObjectConstructor;
42
32
  width: {
43
- type: NumberConstructor;
33
+ type: (StringConstructor | NumberConstructor)[];
44
34
  default: number;
45
35
  };
46
- onClose: {
47
- type: PropType<() => void>;
48
- default: () => void;
49
- };
50
- onConfirm: {
51
- type: PropType<() => void>;
52
- default: () => void;
36
+ modalProps: {
37
+ type: PropType<ModalProps>;
53
38
  };
54
39
  draggable: {
55
40
  type: BooleanConstructor;
@@ -58,9 +43,6 @@ export declare const DuxModal: import("vue").DefineComponent<import("vue").Extra
58
43
  }>> & Readonly<{}>, {
59
44
  title: string;
60
45
  draggable: boolean;
61
- componentProps: Record<string, any>;
62
- width: number;
63
- onConfirm: () => void;
64
- onClose: () => void;
46
+ width: string | number;
65
47
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
66
48
  export default DuxModal;
@@ -1,4 +1,4 @@
1
- import type { PropType, Ref } from 'vue';
1
+ import type { PropType } from 'vue';
2
2
  declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3
3
  title: {
4
4
  type: StringConstructor;
@@ -9,8 +9,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
9
9
  default: boolean;
10
10
  };
11
11
  handle: {
12
- type: PropType<Ref<HTMLElement>>;
13
- default: () => Ref<HTMLElement | undefined, HTMLElement | undefined>;
12
+ type: StringConstructor;
14
13
  };
15
14
  onClose: {
16
15
  type: PropType<() => void>;
@@ -26,8 +25,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
26
25
  default: boolean;
27
26
  };
28
27
  handle: {
29
- type: PropType<Ref<HTMLElement>>;
30
- default: () => Ref<HTMLElement | undefined, HTMLElement | undefined>;
28
+ type: StringConstructor;
31
29
  };
32
30
  onClose: {
33
31
  type: PropType<() => void>;
@@ -37,6 +35,5 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
37
35
  title: string;
38
36
  draggable: boolean;
39
37
  onClose: () => void;
40
- handle: Ref<HTMLElement, HTMLElement>;
41
38
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
42
39
  export default _default;
@@ -27,6 +27,6 @@ export declare const DuxPanelAlert: import("vue").DefineComponent<import("vue").
27
27
  };
28
28
  }>> & Readonly<{}>, {
29
29
  title: string;
30
- type: "error" | "default" | "info" | "success" | "warning";
30
+ type: "error" | "default" | "success" | "warning" | "info";
31
31
  description: string;
32
32
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -0,0 +1,88 @@
1
+ import type { PropType } from 'vue';
2
+ export interface CardSelectOption {
3
+ value: string | number;
4
+ label: string;
5
+ description?: string;
6
+ disabled?: boolean;
7
+ icon?: string;
8
+ iconColor?: string;
9
+ }
10
+ export declare const DuxSelectCard: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
11
+ options: {
12
+ type: PropType<CardSelectOption[]>;
13
+ default: () => never[];
14
+ };
15
+ value: {
16
+ type: PropType<string | number | (string | number)[]>;
17
+ default: undefined;
18
+ };
19
+ defaultValue: {
20
+ type: PropType<string | number | (string | number)[]>;
21
+ default: undefined;
22
+ };
23
+ multiple: {
24
+ type: BooleanConstructor;
25
+ default: boolean;
26
+ };
27
+ disabled: {
28
+ type: BooleanConstructor;
29
+ default: boolean;
30
+ };
31
+ minWidth: {
32
+ type: StringConstructor;
33
+ default: string;
34
+ };
35
+ maxWidth: {
36
+ type: StringConstructor;
37
+ default: string;
38
+ };
39
+ onUpdateValue: {
40
+ type: PropType<(value: string | number | (string | number)[]) => void>;
41
+ default: undefined;
42
+ };
43
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:value")[], "change" | "update:value", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
44
+ options: {
45
+ type: PropType<CardSelectOption[]>;
46
+ default: () => never[];
47
+ };
48
+ value: {
49
+ type: PropType<string | number | (string | number)[]>;
50
+ default: undefined;
51
+ };
52
+ defaultValue: {
53
+ type: PropType<string | number | (string | number)[]>;
54
+ default: undefined;
55
+ };
56
+ multiple: {
57
+ type: BooleanConstructor;
58
+ default: boolean;
59
+ };
60
+ disabled: {
61
+ type: BooleanConstructor;
62
+ default: boolean;
63
+ };
64
+ minWidth: {
65
+ type: StringConstructor;
66
+ default: string;
67
+ };
68
+ maxWidth: {
69
+ type: StringConstructor;
70
+ default: string;
71
+ };
72
+ onUpdateValue: {
73
+ type: PropType<(value: string | number | (string | number)[]) => void>;
74
+ default: undefined;
75
+ };
76
+ }>> & Readonly<{
77
+ onChange?: ((...args: any[]) => any) | undefined;
78
+ "onUpdate:value"?: ((...args: any[]) => any) | undefined;
79
+ }>, {
80
+ value: string | number | (string | number)[];
81
+ defaultValue: string | number | (string | number)[];
82
+ disabled: boolean;
83
+ onUpdateValue: (value: string | number | (string | number)[]) => void;
84
+ options: CardSelectOption[];
85
+ minWidth: string;
86
+ maxWidth: string;
87
+ multiple: boolean;
88
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -0,0 +1 @@
1
+ export * from './cardSelect';
@@ -1,5 +1,6 @@
1
1
  import type { DataTableProps } from 'naive-ui';
2
- import type { PropType } from 'vue';
2
+ import type { PropType, SlotsType } from 'vue';
3
+ import type { TablePageSlotProps } from '../layout/table';
3
4
  export declare const DuxTablePage: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
5
  tableProps: {
5
6
  type: PropType<DataTableProps>;
@@ -34,6 +35,14 @@ export declare const DuxTablePage: import("vue").DefineComponent<import("vue").E
34
35
  tools: {
35
36
  type: PropType<import("..").TablePageTools>;
36
37
  };
38
+ sideLeftTitle: {
39
+ type: StringConstructor;
40
+ default: string;
41
+ };
42
+ sideRightTitle: {
43
+ type: StringConstructor;
44
+ default: string;
45
+ };
37
46
  }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
38
47
  path: {
39
48
  type: StringConstructor;
@@ -64,10 +73,27 @@ export declare const DuxTablePage: import("vue").DefineComponent<import("vue").E
64
73
  tools: {
65
74
  type: PropType<import("..").TablePageTools>;
66
75
  };
76
+ sideLeftTitle: {
77
+ type: StringConstructor;
78
+ default: string;
79
+ };
80
+ sideRightTitle: {
81
+ type: StringConstructor;
82
+ default: string;
83
+ };
67
84
  }>> & Readonly<{}>, {
68
85
  actions: import("../..").UseActionItem[];
86
+ sideLeftTitle: string;
87
+ sideRightTitle: string;
69
88
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
70
89
  tableProps: {
71
90
  type: PropType<DataTableProps>;
72
91
  };
73
- }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
92
+ }>> & Readonly<{}>, {}, SlotsType<{
93
+ default: (props: TablePageSlotProps) => any;
94
+ bottom: () => any;
95
+ tools: () => any;
96
+ actions: () => any;
97
+ sideLeft: () => any;
98
+ sideRight: () => any;
99
+ }>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -0,0 +1,4 @@
1
+ import type { HSL } from 'colorizr';
2
+ import type { ThemeRiverSeriesOption } from 'echarts';
3
+ export declare function generateRainbowFromColor(hsl: HSL, numColors: number): string[];
4
+ export declare function getTheme(colors: string[], dark: boolean): ThemeRiverSeriesOption;
@@ -1,2 +1,3 @@
1
+ export * from './echart';
1
2
  export * from './uno';
2
3
  export * from './validate';
@@ -1,11 +1,12 @@
1
- import type { AsyncComponentLoader } from 'vue';
1
+ import type { AsyncComponentLoader, Component } from 'vue';
2
2
  export interface UseDrawerResult {
3
3
  show: (props: UseDrawerProps) => Promise<any>;
4
4
  }
5
5
  export interface UseDrawerProps {
6
6
  title?: string;
7
7
  width?: number | string;
8
- component: AsyncComponentLoader<any>;
8
+ component: AsyncComponentLoader<any> | Component;
9
9
  componentProps?: Record<string, any>;
10
+ placement?: 'top' | 'right' | 'bottom' | 'left';
10
11
  }
11
12
  export declare function useDrawer(): UseDrawerResult;