@duxweb/dvha-core 0.1.16 → 0.1.18
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/auth/can.cjs +1 -1
- package/dist/cjs/components/common/icon.cjs +1 -0
- package/dist/cjs/directive/permission.cjs +1 -1
- package/dist/cjs/hooks/data.cjs +1 -1
- package/dist/cjs/hooks/export.cjs +1 -1
- package/dist/cjs/hooks/overlay.cjs +1 -1
- package/dist/cjs/hooks/theme.cjs +5 -5
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/provider/app.cjs +1 -1
- package/dist/cjs/utils/theme.cjs +1 -1
- package/dist/esm/components/auth/can.js +3 -3
- package/dist/esm/components/common/icon.js +25 -0
- package/dist/esm/directive/permission.js +3 -3
- package/dist/esm/hooks/data.js +262 -234
- package/dist/esm/hooks/export.js +20 -18
- package/dist/esm/hooks/overlay.js +1 -1
- package/dist/esm/hooks/theme.js +168 -121
- package/dist/esm/index.js +65 -63
- package/dist/esm/provider/app.js +15 -15
- package/dist/esm/utils/theme.js +45 -42
- package/dist/types/components/common/icon.d.ts +13 -0
- package/dist/types/components/common/index.d.ts +1 -0
- package/dist/types/hooks/data.d.ts +390 -30
- package/dist/types/hooks/export.d.ts +16 -3
- package/dist/types/hooks/exportCsv.d.ts +13 -1
- package/dist/types/hooks/index.d.ts +9 -9
- package/dist/types/hooks/theme.d.ts +6 -3
- package/dist/types/utils/theme.d.ts +5 -5
- package/package.json +3 -3
|
@@ -11,7 +11,19 @@ export interface IUseExportCsvProps extends IUseExportProps {
|
|
|
11
11
|
};
|
|
12
12
|
}
|
|
13
13
|
export declare function useExportCsv(props: IUseExportCsvProps): {
|
|
14
|
-
data: import("vue").Ref<
|
|
14
|
+
data: import("vue").Ref<{
|
|
15
|
+
[x: string]: any;
|
|
16
|
+
message?: string | undefined;
|
|
17
|
+
data?: any;
|
|
18
|
+
meta?: Record<string, any> | undefined;
|
|
19
|
+
raw?: any;
|
|
20
|
+
} | undefined, import("..").IDataProviderResponse | {
|
|
21
|
+
[x: string]: any;
|
|
22
|
+
message?: string | undefined;
|
|
23
|
+
data?: any;
|
|
24
|
+
meta?: Record<string, any> | undefined;
|
|
25
|
+
raw?: any;
|
|
26
|
+
} | undefined>;
|
|
15
27
|
isLoading: import("vue").ComputedRef<boolean>;
|
|
16
28
|
trigger: () => Promise<void>;
|
|
17
29
|
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
export * from './auth';
|
|
2
2
|
export * from './config';
|
|
3
3
|
export * from './data';
|
|
4
|
+
export * from './export';
|
|
5
|
+
export * from './exportCsv';
|
|
6
|
+
export * from './form';
|
|
7
|
+
export * from './i18n';
|
|
8
|
+
export * from './import';
|
|
9
|
+
export * from './importCsv';
|
|
4
10
|
export * from './manage';
|
|
5
11
|
export * from './menu';
|
|
6
|
-
export * from './theme';
|
|
7
12
|
export * from './overlay';
|
|
8
|
-
export * from './i18n';
|
|
9
13
|
export * from './select';
|
|
10
|
-
export * from './
|
|
11
|
-
export * from './
|
|
12
|
-
export * from './
|
|
13
|
-
export * from './exportCsv';
|
|
14
|
-
export * from './importCsv';
|
|
14
|
+
export * from './theme';
|
|
15
|
+
export * from './theme';
|
|
16
|
+
export * from './themeColor';
|
|
15
17
|
export * from './upload';
|
|
16
18
|
export * from './upload/index';
|
|
17
|
-
export * from './themeColor';
|
|
18
|
-
export * from './theme';
|
|
@@ -57,6 +57,7 @@ export interface ThemeConfig {
|
|
|
57
57
|
export declare function useTheme(): {
|
|
58
58
|
toggle: (n?: number) => "light" | "dark" | "auto";
|
|
59
59
|
mode: import("vue").ShallowRef<"light" | "dark" | "auto">;
|
|
60
|
+
setMode: (mode: "dark" | "light" | "auto") => void;
|
|
60
61
|
isDark: import("vue").ComputedRef<boolean>;
|
|
61
62
|
resources: import("vue").ComputedRef<ITheme>;
|
|
62
63
|
config: {
|
|
@@ -244,6 +245,8 @@ export declare function useTheme(): {
|
|
|
244
245
|
readonly gray: ThemeColorName;
|
|
245
246
|
}>>;
|
|
246
247
|
colors: import("vue").ComputedRef<string[]>;
|
|
248
|
+
neutralColors: import("vue").ComputedRef<string[]>;
|
|
249
|
+
primaryColors: import("vue").ComputedRef<string[]>;
|
|
247
250
|
colorShades: ThemeColorShade[];
|
|
248
251
|
colorTypes: ThemeColorType[];
|
|
249
252
|
colorScenes: ThemeSceneType[];
|
|
@@ -251,7 +254,7 @@ export declare function useTheme(): {
|
|
|
251
254
|
cssReset: () => void;
|
|
252
255
|
setColor: (type: ThemeColorType, colorName: ThemeColorName) => void;
|
|
253
256
|
setColors: (mappings: Partial<Record<ThemeColorType, ThemeColorName>>) => void;
|
|
254
|
-
getSceneColor: (type: ThemeColorType, scene?: ThemeSceneType) => string;
|
|
255
|
-
getShadeColor: (type: ThemeColorType, shade: ThemeColorShade) => string;
|
|
256
|
-
getSemanticColor: (category: keyof ThemeColorSemanticConfig, key: string) => string;
|
|
257
|
+
getSceneColor: (type: ThemeColorType, scene?: ThemeSceneType, asVariable?: boolean) => string;
|
|
258
|
+
getShadeColor: (type: ThemeColorType, shade: ThemeColorShade, asVariable?: boolean) => string;
|
|
259
|
+
getSemanticColor: (category: keyof ThemeColorSemanticConfig, key: string, asVariable?: boolean) => string;
|
|
257
260
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
colors: Record<string, Record<string,
|
|
1
|
+
export declare function themePreset(themeColor: Record<string, any>): {
|
|
2
|
+
colors: Record<string, Record<string, any>>;
|
|
3
3
|
classes: {
|
|
4
|
-
text: {
|
|
4
|
+
'text-default': {
|
|
5
5
|
color: string;
|
|
6
6
|
};
|
|
7
7
|
'text-dimmed': {
|
|
@@ -19,7 +19,7 @@ export declare const themePreset: (themeColor: Record<string, any>) => {
|
|
|
19
19
|
'text-inverted': {
|
|
20
20
|
color: string;
|
|
21
21
|
};
|
|
22
|
-
bg: {
|
|
22
|
+
'bg-default': {
|
|
23
23
|
'background-color': string;
|
|
24
24
|
};
|
|
25
25
|
'bg-muted': {
|
|
@@ -34,7 +34,7 @@ export declare const themePreset: (themeColor: Record<string, any>) => {
|
|
|
34
34
|
'bg-inverted': {
|
|
35
35
|
'background-color': string;
|
|
36
36
|
};
|
|
37
|
-
border: {
|
|
37
|
+
'border-default': {
|
|
38
38
|
'border-color': string;
|
|
39
39
|
};
|
|
40
40
|
'border-muted': {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@duxweb/dvha-core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.18",
|
|
5
5
|
"author": "DuxWeb",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@overlastic/vue": "^0.8.1",
|
|
41
41
|
"@tanstack/vue-query": "^5.76.2",
|
|
42
|
-
"@vueuse/core": "^13.
|
|
43
|
-
"@vueuse/integrations": "^13.
|
|
42
|
+
"@vueuse/core": "^13.3.0",
|
|
43
|
+
"@vueuse/integrations": "^13.3.0",
|
|
44
44
|
"axios": "^1.9.0",
|
|
45
45
|
"clsx": "^2.1.1",
|
|
46
46
|
"colorizr": "^3.0.8",
|