@sidekick-coder/zenith-kit 0.5.1 → 0.5.2
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/client/{Icon-C-SaxixA.mjs → Icon-CV9WhwVm.js} +1 -1
- package/dist/client/client/components.d.ts +0 -2
- package/dist/client/client/composables/useLayoutOptions.d.ts +1 -1
- package/dist/client/client/contracts/events.d.ts +3 -1
- package/dist/client/client/facades/layout.d.ts +2 -1
- package/dist/client/client/facades/router.d.ts +2 -2
- package/dist/client/client/index.d.ts +2 -2
- package/dist/client/client/services/LayoutService.d.ts +15 -2
- package/dist/client/client/services/MenuService.d.ts +5 -0
- package/dist/client/client/services/RouterService.d.ts +24 -14
- package/dist/client/index.es.js +2832 -2850
- package/dist/client/styles.css +1 -1
- package/dist/components/client/components.d.ts +0 -2
- package/dist/components/client/composables/useLayoutOptions.d.ts +1 -1
- package/dist/components/client/contracts/events.d.ts +3 -1
- package/dist/components/client/facades/layout.d.ts +2 -1
- package/dist/components/client/facades/router.d.ts +2 -2
- package/dist/components/client/index.d.ts +2 -2
- package/dist/components/client/services/LayoutService.d.ts +15 -2
- package/dist/components/client/services/MenuService.d.ts +5 -0
- package/dist/components/client/services/RouterService.d.ts +24 -14
- package/dist/components/index.es.js +8683 -8840
- package/dist/components/styles.css +1 -1
- package/dist/shared/schemas/dashboardMetaSchema.d.mts +18 -18
- package/dist/shared/schemas/userSchema.d.mts +16 -16
- package/package.json +8 -13
- package/src/client/components/DataTable.vue +0 -2
- package/src/client/components/FormFileUploader.vue +6 -1
- package/src/client/components.ts +0 -2
- package/src/client/contracts/events.ts +3 -1
- package/src/client/css/styles.css +68 -38
- package/src/client/css/theme.css +2 -70
- package/src/client/facades/layout.ts +3 -6
- package/src/client/facades/router.ts +2 -2
- package/src/client/index.ts +2 -2
- package/src/client/services/LayoutService.ts +24 -8
- package/src/client/services/MenuService.ts +6 -0
- package/src/client/services/RouterService.ts +105 -91
- package/vite.client.config.ts +2 -1
- package/vite.components.config.ts +1 -1
- package/dist/client/client/components/PageCrud.vue.d.ts +0 -78
- package/dist/client/client/entities/PluginEntity.d.ts +0 -8
- package/dist/components/client/components/PageCrud.vue.d.ts +0 -78
- package/dist/components/client/entities/PluginEntity.d.ts +0 -8
- package/src/client/components/PageCrud.vue +0 -197
- package/src/client/entities/PluginEntity.ts +0 -14
|
@@ -18,30 +18,30 @@ export declare namespace dashboardMetaSchema {
|
|
|
18
18
|
readonly dashboard_id: import("valibot").NumberSchema<undefined>;
|
|
19
19
|
readonly name: import("valibot").StringSchema<undefined>;
|
|
20
20
|
readonly value: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
21
|
-
}, "
|
|
21
|
+
}, "value" | "name" | "dashboard_id">;
|
|
22
22
|
readonly "~standard": import("valibot").StandardProps<{
|
|
23
|
-
name: string;
|
|
24
23
|
value: string;
|
|
24
|
+
name: string;
|
|
25
25
|
dashboard_id: number;
|
|
26
26
|
}, {
|
|
27
|
-
name: string;
|
|
28
27
|
value: string;
|
|
28
|
+
name: string;
|
|
29
29
|
dashboard_id: number;
|
|
30
30
|
}>;
|
|
31
31
|
readonly "~run": (dataset: import("valibot").UnknownDataset, config: import("valibot").Config<import("valibot").BaseIssue<unknown>>) => import("valibot").OutputDataset<{
|
|
32
|
-
name: string;
|
|
33
32
|
value: string;
|
|
33
|
+
name: string;
|
|
34
34
|
dashboard_id: number;
|
|
35
35
|
}, import("valibot").NumberIssue | import("valibot").StringIssue | import("valibot").ObjectIssue>;
|
|
36
36
|
readonly "~types"?: {
|
|
37
37
|
readonly input: {
|
|
38
|
-
name: string;
|
|
39
38
|
value: string;
|
|
39
|
+
name: string;
|
|
40
40
|
dashboard_id: number;
|
|
41
41
|
};
|
|
42
42
|
readonly output: {
|
|
43
|
-
name: string;
|
|
44
43
|
value: string;
|
|
44
|
+
name: string;
|
|
45
45
|
dashboard_id: number;
|
|
46
46
|
};
|
|
47
47
|
readonly issue: import("valibot").NumberIssue | import("valibot").StringIssue | import("valibot").ObjectIssue;
|
|
@@ -58,63 +58,63 @@ export declare namespace dashboardMetaSchema {
|
|
|
58
58
|
readonly dashboard_id: import("valibot").NumberSchema<undefined>;
|
|
59
59
|
readonly name: import("valibot").StringSchema<undefined>;
|
|
60
60
|
readonly value: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
61
|
-
}, "
|
|
61
|
+
}, "value" | "name" | "dashboard_id">;
|
|
62
62
|
readonly "~standard": import("valibot").StandardProps<{
|
|
63
|
-
name: string;
|
|
64
63
|
value: string;
|
|
64
|
+
name: string;
|
|
65
65
|
dashboard_id: number;
|
|
66
66
|
}, {
|
|
67
|
-
name: string;
|
|
68
67
|
value: string;
|
|
68
|
+
name: string;
|
|
69
69
|
dashboard_id: number;
|
|
70
70
|
}>;
|
|
71
71
|
readonly "~run": (dataset: import("valibot").UnknownDataset, config: import("valibot").Config<import("valibot").BaseIssue<unknown>>) => import("valibot").OutputDataset<{
|
|
72
|
-
name: string;
|
|
73
72
|
value: string;
|
|
73
|
+
name: string;
|
|
74
74
|
dashboard_id: number;
|
|
75
75
|
}, import("valibot").NumberIssue | import("valibot").StringIssue | import("valibot").ObjectIssue>;
|
|
76
76
|
readonly "~types"?: {
|
|
77
77
|
readonly input: {
|
|
78
|
-
name: string;
|
|
79
78
|
value: string;
|
|
79
|
+
name: string;
|
|
80
80
|
dashboard_id: number;
|
|
81
81
|
};
|
|
82
82
|
readonly output: {
|
|
83
|
-
name: string;
|
|
84
83
|
value: string;
|
|
84
|
+
name: string;
|
|
85
85
|
dashboard_id: number;
|
|
86
86
|
};
|
|
87
87
|
readonly issue: import("valibot").NumberIssue | import("valibot").StringIssue | import("valibot").ObjectIssue;
|
|
88
88
|
};
|
|
89
89
|
}, "~types" | "~run" | "~standard" | "entries"> & {
|
|
90
90
|
readonly entries: {
|
|
91
|
-
readonly name: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
92
91
|
readonly value: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
92
|
+
readonly name: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
93
93
|
readonly dashboard_id: import("valibot").OptionalSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
94
94
|
};
|
|
95
95
|
readonly "~standard": import("valibot").StandardProps<{
|
|
96
|
-
name?: string;
|
|
97
96
|
value?: string;
|
|
97
|
+
name?: string;
|
|
98
98
|
dashboard_id?: number;
|
|
99
99
|
}, {
|
|
100
|
-
name?: string;
|
|
101
100
|
value?: string;
|
|
101
|
+
name?: string;
|
|
102
102
|
dashboard_id?: number;
|
|
103
103
|
}>;
|
|
104
104
|
readonly "~run": (dataset: import("valibot").UnknownDataset, config: import("valibot").Config<import("valibot").BaseIssue<unknown>>) => import("valibot").OutputDataset<{
|
|
105
|
-
name?: string;
|
|
106
105
|
value?: string;
|
|
106
|
+
name?: string;
|
|
107
107
|
dashboard_id?: number;
|
|
108
108
|
}, import("valibot").NumberIssue | import("valibot").StringIssue | import("valibot").ObjectIssue>;
|
|
109
109
|
readonly "~types"?: {
|
|
110
110
|
readonly input: {
|
|
111
|
-
name?: string;
|
|
112
111
|
value?: string;
|
|
112
|
+
name?: string;
|
|
113
113
|
dashboard_id?: number;
|
|
114
114
|
};
|
|
115
115
|
readonly output: {
|
|
116
|
-
name?: string;
|
|
117
116
|
value?: string;
|
|
117
|
+
name?: string;
|
|
118
118
|
dashboard_id?: number;
|
|
119
119
|
};
|
|
120
120
|
readonly issue: import("valibot").NumberIssue | import("valibot").StringIssue | import("valibot").ObjectIssue;
|
|
@@ -34,32 +34,32 @@ declare namespace userSchema {
|
|
|
34
34
|
readonly deleted_at: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
35
35
|
}, "id" | "created_at" | "updated_at" | "verified_at" | "deleted_at">;
|
|
36
36
|
readonly "~standard": v.StandardProps<{
|
|
37
|
-
name?: string;
|
|
38
37
|
password: string;
|
|
38
|
+
name?: string;
|
|
39
39
|
email: string;
|
|
40
40
|
username: string;
|
|
41
41
|
}, {
|
|
42
|
-
name?: string;
|
|
43
42
|
password: string;
|
|
43
|
+
name?: string;
|
|
44
44
|
email: string;
|
|
45
45
|
username: string;
|
|
46
46
|
}>;
|
|
47
47
|
readonly "~run": (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
|
|
48
|
-
name?: string;
|
|
49
48
|
password: string;
|
|
49
|
+
name?: string;
|
|
50
50
|
email: string;
|
|
51
51
|
username: string;
|
|
52
52
|
}, v.StringIssue | v.ObjectIssue | v.EmailIssue<string> | v.MinLengthIssue<string, 6> | v.RegexIssue<string>>;
|
|
53
53
|
readonly "~types"?: {
|
|
54
54
|
readonly input: {
|
|
55
|
-
name?: string;
|
|
56
55
|
password: string;
|
|
56
|
+
name?: string;
|
|
57
57
|
email: string;
|
|
58
58
|
username: string;
|
|
59
59
|
};
|
|
60
60
|
readonly output: {
|
|
61
|
-
name?: string;
|
|
62
61
|
password: string;
|
|
62
|
+
name?: string;
|
|
63
63
|
email: string;
|
|
64
64
|
username: string;
|
|
65
65
|
};
|
|
@@ -89,32 +89,32 @@ declare namespace userSchema {
|
|
|
89
89
|
readonly deleted_at: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
90
90
|
}, "id" | "created_at" | "updated_at" | "verified_at" | "deleted_at">;
|
|
91
91
|
readonly "~standard": v.StandardProps<{
|
|
92
|
-
name?: string;
|
|
93
92
|
password: string;
|
|
93
|
+
name?: string;
|
|
94
94
|
email: string;
|
|
95
95
|
username: string;
|
|
96
96
|
}, {
|
|
97
|
-
name?: string;
|
|
98
97
|
password: string;
|
|
98
|
+
name?: string;
|
|
99
99
|
email: string;
|
|
100
100
|
username: string;
|
|
101
101
|
}>;
|
|
102
102
|
readonly "~run": (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
|
|
103
|
-
name?: string;
|
|
104
103
|
password: string;
|
|
104
|
+
name?: string;
|
|
105
105
|
email: string;
|
|
106
106
|
username: string;
|
|
107
107
|
}, v.StringIssue | v.ObjectIssue | v.EmailIssue<string> | v.MinLengthIssue<string, 6> | v.RegexIssue<string>>;
|
|
108
108
|
readonly "~types"?: {
|
|
109
109
|
readonly input: {
|
|
110
|
-
name?: string;
|
|
111
110
|
password: string;
|
|
111
|
+
name?: string;
|
|
112
112
|
email: string;
|
|
113
113
|
username: string;
|
|
114
114
|
};
|
|
115
115
|
readonly output: {
|
|
116
|
-
name?: string;
|
|
117
116
|
password: string;
|
|
117
|
+
name?: string;
|
|
118
118
|
email: string;
|
|
119
119
|
username: string;
|
|
120
120
|
};
|
|
@@ -122,38 +122,38 @@ declare namespace userSchema {
|
|
|
122
122
|
};
|
|
123
123
|
}, "~types" | "~run" | "~standard" | "entries"> & {
|
|
124
124
|
readonly entries: {
|
|
125
|
-
readonly name: v.OptionalSchema<v.OptionalSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
126
125
|
readonly password: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 6, undefined>]>, undefined>;
|
|
126
|
+
readonly name: v.OptionalSchema<v.OptionalSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
127
127
|
readonly email: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>]>, undefined>;
|
|
128
128
|
readonly username: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
|
|
129
129
|
};
|
|
130
130
|
readonly "~standard": v.StandardProps<{
|
|
131
|
-
name?: string;
|
|
132
131
|
password?: string;
|
|
132
|
+
name?: string;
|
|
133
133
|
email?: string;
|
|
134
134
|
username?: string;
|
|
135
135
|
}, {
|
|
136
|
-
name?: string;
|
|
137
136
|
password?: string;
|
|
137
|
+
name?: string;
|
|
138
138
|
email?: string;
|
|
139
139
|
username?: string;
|
|
140
140
|
}>;
|
|
141
141
|
readonly "~run": (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
|
|
142
|
-
name?: string;
|
|
143
142
|
password?: string;
|
|
143
|
+
name?: string;
|
|
144
144
|
email?: string;
|
|
145
145
|
username?: string;
|
|
146
146
|
}, v.StringIssue | v.ObjectIssue | v.EmailIssue<string> | v.MinLengthIssue<string, 6> | v.RegexIssue<string>>;
|
|
147
147
|
readonly "~types"?: {
|
|
148
148
|
readonly input: {
|
|
149
|
-
name?: string;
|
|
150
149
|
password?: string;
|
|
150
|
+
name?: string;
|
|
151
151
|
email?: string;
|
|
152
152
|
username?: string;
|
|
153
153
|
};
|
|
154
154
|
readonly output: {
|
|
155
|
-
name?: string;
|
|
156
155
|
password?: string;
|
|
156
|
+
name?: string;
|
|
157
157
|
email?: string;
|
|
158
158
|
username?: string;
|
|
159
159
|
};
|
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sidekick-coder/zenith-kit",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Package to use with zenith framework",
|
|
6
6
|
"author": "Henrique Oliveira <henriqueoliwork@gmail.com>",
|
|
7
7
|
"homepage": "https://github.com/sidekick-coder/zenith-kit",
|
|
8
|
+
"type": "module",
|
|
8
9
|
"bin": {
|
|
9
10
|
"zenith": "./bin/zenith.js"
|
|
10
11
|
},
|
|
@@ -43,22 +44,12 @@
|
|
|
43
44
|
"require": "./dist/server/*.js"
|
|
44
45
|
},
|
|
45
46
|
"./client": {
|
|
46
|
-
"
|
|
47
|
-
"types": "./src/client/index.ts",
|
|
48
|
-
"import": "./src/client/index.ts",
|
|
49
|
-
"require": "./src/client/index.ts"
|
|
50
|
-
},
|
|
51
|
-
"types": "./dist/client/src/client/index.d.ts",
|
|
47
|
+
"types": "./dist/client/client/index.d.ts",
|
|
52
48
|
"import": "./dist/client/index.es.js",
|
|
53
49
|
"require": "./dist/client/index.es.js"
|
|
54
50
|
},
|
|
55
51
|
"./components": {
|
|
56
|
-
"
|
|
57
|
-
"types": "./src/client/components.ts",
|
|
58
|
-
"import": "./src/client/components.ts",
|
|
59
|
-
"require": "./src/client/components.ts"
|
|
60
|
-
},
|
|
61
|
-
"types": "./dist/components/src/client/components.d.ts",
|
|
52
|
+
"types": "./dist/components/client/components.d.ts",
|
|
62
53
|
"import": "./dist/components/index.es.js",
|
|
63
54
|
"require": "./dist/components/index.es.js"
|
|
64
55
|
},
|
|
@@ -66,6 +57,10 @@
|
|
|
66
57
|
"import": "./dist/components/styles.css",
|
|
67
58
|
"require": "./dist/components/styles.css"
|
|
68
59
|
},
|
|
60
|
+
"./theme.css": {
|
|
61
|
+
"import": "./src/client/css/theme.css",
|
|
62
|
+
"require": "./src/client/css/theme.css"
|
|
63
|
+
},
|
|
69
64
|
"./vite": {
|
|
70
65
|
"import": "./vite/plugins/vite.js",
|
|
71
66
|
"require": "./vite/plugins/vite.js"
|
|
@@ -343,7 +343,6 @@ defineExpose({
|
|
|
343
343
|
@click.stop="toggleAll" />
|
|
344
344
|
</TableHead>
|
|
345
345
|
<TableHead v-for="c in columns" :key="c.id" :style="{
|
|
346
|
-
width: c.width ? c.width + 'px' : 'auto',
|
|
347
346
|
height: 'var(--datatable-th-height, 3rem)'
|
|
348
347
|
}">
|
|
349
348
|
<slot :name="`header-${c.id}`" :column="c">
|
|
@@ -374,7 +373,6 @@ defineExpose({
|
|
|
374
373
|
<Checkbox class="translate-y-0.5" :model-value="isSelected(row)" @click.stop="toggle(row)" />
|
|
375
374
|
</TableCell>
|
|
376
375
|
<TableCell v-for="c in columns" :key="c.id" :style="{
|
|
377
|
-
width: c.width ? c.width + 'px' : 'auto',
|
|
378
376
|
height: 'var(--datatable-td-height, 3rem)'
|
|
379
377
|
}" class="whitespace-normal">
|
|
380
378
|
<slot :name="`row-${c.id}`" :column="c" :row="row">
|
|
@@ -59,7 +59,12 @@ const loading = defineModel<boolean>('loading', {
|
|
|
59
59
|
|
|
60
60
|
const selectedFile = ref<ServerFile | null>(null)
|
|
61
61
|
|
|
62
|
-
function setSelectedFile(file: ServerFile) {
|
|
62
|
+
function setSelectedFile(file: ServerFile | ServerFile[]) {
|
|
63
|
+
if (Array.isArray(file)) {
|
|
64
|
+
selectedFile.value = file[0] || null
|
|
65
|
+
return
|
|
66
|
+
}
|
|
67
|
+
|
|
63
68
|
selectedFile.value = file
|
|
64
69
|
}
|
|
65
70
|
|
package/src/client/components.ts
CHANGED
|
@@ -141,8 +141,6 @@ export * from './components/LogoIcon.vue'
|
|
|
141
141
|
export { default as LogoIcon } from './components/LogoIcon.vue'
|
|
142
142
|
export * from './components/ObjectInspect.vue'
|
|
143
143
|
export { default as ObjectInspect } from './components/ObjectInspect.vue'
|
|
144
|
-
export * from './components/PageCrud.vue'
|
|
145
|
-
export { default as PageCrud } from './components/PageCrud.vue'
|
|
146
144
|
export * from './components/PageSubtitle.vue'
|
|
147
145
|
export { default as PageSubtitle } from './components/PageSubtitle.vue'
|
|
148
146
|
export * from './components/PageTable.vue'
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import type { LayoutEvents } from "#client/services/LayoutService.ts"
|
|
2
|
+
import type { MenuEvents } from "#client/services/MenuService.ts"
|
|
1
3
|
import type { RouterEvents } from "#client/services/RouterService.ts"
|
|
2
4
|
|
|
3
|
-
export interface EventContract extends RouterEvents {
|
|
5
|
+
export interface EventContract extends RouterEvents, LayoutEvents, MenuEvents {
|
|
4
6
|
[key: string]: any
|
|
5
7
|
}
|
|
6
8
|
|
|
@@ -4,43 +4,73 @@
|
|
|
4
4
|
|
|
5
5
|
@custom-variant dark (&:is(.dark *));
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
.
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
.zenith-scrollbar::-webkit-scrollbar-corner {
|
|
43
|
-
background: var(--background);
|
|
44
|
-
}
|
|
7
|
+
:root {
|
|
8
|
+
--background: oklch(1 0 0);
|
|
9
|
+
--foreground: oklch(0.141 0.005 285.823);
|
|
10
|
+
--card: oklch(1 0 0);
|
|
11
|
+
--card-foreground: oklch(0.141 0.005 285.823);
|
|
12
|
+
--popover: oklch(1 0 0);
|
|
13
|
+
--popover-foreground: oklch(0.141 0.005 285.823);
|
|
14
|
+
--primary: oklch(0.21 0.006 285.885);
|
|
15
|
+
--primary-foreground: oklch(0.985 0 0);
|
|
16
|
+
--secondary: oklch(0.967 0.001 286.375);
|
|
17
|
+
--secondary-foreground: oklch(0.21 0.006 285.885);
|
|
18
|
+
--muted: oklch(0.967 0.001 286.375);
|
|
19
|
+
--muted-foreground: oklch(0.552 0.016 285.938);
|
|
20
|
+
--accent: oklch(0.967 0.001 286.375);
|
|
21
|
+
--accent-foreground: oklch(0.21 0.006 285.885);
|
|
22
|
+
--destructive: oklch(0.577 0.245 27.325);
|
|
23
|
+
--destructive-foreground: oklch(0.577 0.245 27.325);
|
|
24
|
+
--border: oklch(0.92 0.004 286.32);
|
|
25
|
+
--input: oklch(0.92 0.004 286.32);
|
|
26
|
+
--ring: oklch(0.705 0.015 286.067);
|
|
27
|
+
--chart-1: oklch(0.646 0.222 41.116);
|
|
28
|
+
--chart-2: oklch(0.6 0.118 184.704);
|
|
29
|
+
--chart-3: oklch(0.398 0.07 227.392);
|
|
30
|
+
--chart-4: oklch(0.828 0.189 84.429);
|
|
31
|
+
--chart-5: oklch(0.769 0.188 70.08);
|
|
32
|
+
--radius: 0.625rem;
|
|
33
|
+
--sidebar: oklch(0.985 0 0);
|
|
34
|
+
--sidebar-foreground: oklch(0.141 0.005 285.823);
|
|
35
|
+
--sidebar-primary: oklch(0.21 0.006 285.885);
|
|
36
|
+
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
37
|
+
--sidebar-accent: oklch(0.967 0.001 286.375);
|
|
38
|
+
--sidebar-accent-foreground: oklch(0.21 0.006 285.885);
|
|
39
|
+
--sidebar-border: oklch(0.92 0.004 286.32);
|
|
40
|
+
--sidebar-ring: oklch(0.705 0.015 286.067);
|
|
41
|
+
}
|
|
45
42
|
|
|
43
|
+
.dark {
|
|
44
|
+
--background: oklch(0.141 0.005 285.823);
|
|
45
|
+
--foreground: oklch(0.985 0 0);
|
|
46
|
+
--card: oklch(0.141 0.005 285.823);
|
|
47
|
+
--card-foreground: oklch(0.985 0 0);
|
|
48
|
+
--popover: oklch(0.141 0.005 285.823);
|
|
49
|
+
--popover-foreground: oklch(0.985 0 0);
|
|
50
|
+
--primary: oklch(0.985 0 0);
|
|
51
|
+
--primary-foreground: oklch(0.21 0.006 285.885);
|
|
52
|
+
--secondary: oklch(0.274 0.006 286.033);
|
|
53
|
+
--secondary-foreground: oklch(0.985 0 0);
|
|
54
|
+
--muted: oklch(0.274 0.006 286.033);
|
|
55
|
+
--muted-foreground: oklch(0.705 0.015 286.067);
|
|
56
|
+
--accent: oklch(0.274 0.006 286.033);
|
|
57
|
+
--accent-foreground: oklch(0.985 0 0);
|
|
58
|
+
--destructive: oklch(0.396 0.141 25.723);
|
|
59
|
+
--destructive-foreground: oklch(0.637 0.237 25.331);
|
|
60
|
+
--border: oklch(0.274 0.006 286.033);
|
|
61
|
+
--input: oklch(0.274 0.006 286.033);
|
|
62
|
+
--ring: oklch(0.442 0.017 285.786);
|
|
63
|
+
--chart-1: oklch(0.488 0.243 264.376);
|
|
64
|
+
--chart-2: oklch(0.696 0.17 162.48);
|
|
65
|
+
--chart-3: oklch(0.769 0.188 70.08);
|
|
66
|
+
--chart-4: oklch(0.627 0.265 303.9);
|
|
67
|
+
--chart-5: oklch(0.645 0.246 16.439);
|
|
68
|
+
--sidebar: oklch(0.21 0.006 285.885);
|
|
69
|
+
--sidebar-foreground: oklch(0.985 0 0);
|
|
70
|
+
--sidebar-primary: oklch(0.488 0.243 264.376);
|
|
71
|
+
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
72
|
+
--sidebar-accent: oklch(0.274 0.006 286.033);
|
|
73
|
+
--sidebar-accent-foreground: oklch(0.985 0 0);
|
|
74
|
+
--sidebar-border: oklch(0.274 0.006 286.033);
|
|
75
|
+
--sidebar-ring: oklch(0.442 0.017 285.786);
|
|
46
76
|
}
|
package/src/client/css/theme.css
CHANGED
|
@@ -18,11 +18,13 @@
|
|
|
18
18
|
--color-border: var(--border);
|
|
19
19
|
--color-input: var(--input);
|
|
20
20
|
--color-ring: var(--ring);
|
|
21
|
+
|
|
21
22
|
--color-chart-1: var(--chart-1);
|
|
22
23
|
--color-chart-2: var(--chart-2);
|
|
23
24
|
--color-chart-3: var(--chart-3);
|
|
24
25
|
--color-chart-4: var(--chart-4);
|
|
25
26
|
--color-chart-5: var(--chart-5);
|
|
27
|
+
|
|
26
28
|
--radius-sm: calc(var(--radius) - 4px);
|
|
27
29
|
--radius-md: calc(var(--radius) - 2px);
|
|
28
30
|
--radius-lg: var(--radius);
|
|
@@ -59,73 +61,3 @@
|
|
|
59
61
|
}
|
|
60
62
|
}
|
|
61
63
|
|
|
62
|
-
:root {
|
|
63
|
-
--background: oklch(1 0 0);
|
|
64
|
-
--foreground: oklch(0.141 0.005 285.823);
|
|
65
|
-
--card: oklch(1 0 0);
|
|
66
|
-
--card-foreground: oklch(0.141 0.005 285.823);
|
|
67
|
-
--popover: oklch(1 0 0);
|
|
68
|
-
--popover-foreground: oklch(0.141 0.005 285.823);
|
|
69
|
-
--primary: oklch(0.21 0.006 285.885);
|
|
70
|
-
--primary-foreground: oklch(0.985 0 0);
|
|
71
|
-
--secondary: oklch(0.967 0.001 286.375);
|
|
72
|
-
--secondary-foreground: oklch(0.21 0.006 285.885);
|
|
73
|
-
--muted: oklch(0.967 0.001 286.375);
|
|
74
|
-
--muted-foreground: oklch(0.552 0.016 285.938);
|
|
75
|
-
--accent: oklch(0.967 0.001 286.375);
|
|
76
|
-
--accent-foreground: oklch(0.21 0.006 285.885);
|
|
77
|
-
--destructive: oklch(0.577 0.245 27.325);
|
|
78
|
-
--destructive-foreground: oklch(0.577 0.245 27.325);
|
|
79
|
-
--border: oklch(0.92 0.004 286.32);
|
|
80
|
-
--input: oklch(0.92 0.004 286.32);
|
|
81
|
-
--ring: oklch(0.705 0.015 286.067);
|
|
82
|
-
--chart-1: oklch(0.646 0.222 41.116);
|
|
83
|
-
--chart-2: oklch(0.6 0.118 184.704);
|
|
84
|
-
--chart-3: oklch(0.398 0.07 227.392);
|
|
85
|
-
--chart-4: oklch(0.828 0.189 84.429);
|
|
86
|
-
--chart-5: oklch(0.769 0.188 70.08);
|
|
87
|
-
--radius: 0.625rem;
|
|
88
|
-
--sidebar: oklch(0.985 0 0);
|
|
89
|
-
--sidebar-foreground: oklch(0.141 0.005 285.823);
|
|
90
|
-
--sidebar-primary: oklch(0.21 0.006 285.885);
|
|
91
|
-
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
92
|
-
--sidebar-accent: oklch(0.967 0.001 286.375);
|
|
93
|
-
--sidebar-accent-foreground: oklch(0.21 0.006 285.885);
|
|
94
|
-
--sidebar-border: oklch(0.92 0.004 286.32);
|
|
95
|
-
--sidebar-ring: oklch(0.705 0.015 286.067);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.dark {
|
|
99
|
-
--background: oklch(0.141 0.005 285.823);
|
|
100
|
-
--foreground: oklch(0.985 0 0);
|
|
101
|
-
--card: oklch(0.141 0.005 285.823);
|
|
102
|
-
--card-foreground: oklch(0.985 0 0);
|
|
103
|
-
--popover: oklch(0.141 0.005 285.823);
|
|
104
|
-
--popover-foreground: oklch(0.985 0 0);
|
|
105
|
-
--primary: oklch(0.985 0 0);
|
|
106
|
-
--primary-foreground: oklch(0.21 0.006 285.885);
|
|
107
|
-
--secondary: oklch(0.274 0.006 286.033);
|
|
108
|
-
--secondary-foreground: oklch(0.985 0 0);
|
|
109
|
-
--muted: oklch(0.274 0.006 286.033);
|
|
110
|
-
--muted-foreground: oklch(0.705 0.015 286.067);
|
|
111
|
-
--accent: oklch(0.274 0.006 286.033);
|
|
112
|
-
--accent-foreground: oklch(0.985 0 0);
|
|
113
|
-
--destructive: oklch(0.396 0.141 25.723);
|
|
114
|
-
--destructive-foreground: oklch(0.637 0.237 25.331);
|
|
115
|
-
--border: oklch(0.274 0.006 286.033);
|
|
116
|
-
--input: oklch(0.274 0.006 286.033);
|
|
117
|
-
--ring: oklch(0.442 0.017 285.786);
|
|
118
|
-
--chart-1: oklch(0.488 0.243 264.376);
|
|
119
|
-
--chart-2: oklch(0.696 0.17 162.48);
|
|
120
|
-
--chart-3: oklch(0.769 0.188 70.08);
|
|
121
|
-
--chart-4: oklch(0.627 0.265 303.9);
|
|
122
|
-
--chart-5: oklch(0.645 0.246 16.439);
|
|
123
|
-
--sidebar: oklch(0.21 0.006 285.885);
|
|
124
|
-
--sidebar-foreground: oklch(0.985 0 0);
|
|
125
|
-
--sidebar-primary: oklch(0.488 0.243 264.376);
|
|
126
|
-
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
127
|
-
--sidebar-accent: oklch(0.274 0.006 286.033);
|
|
128
|
-
--sidebar-accent-foreground: oklch(0.985 0 0);
|
|
129
|
-
--sidebar-border: oklch(0.274 0.006 286.033);
|
|
130
|
-
--sidebar-ring: oklch(0.442 0.017 285.786);
|
|
131
|
-
}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import LayoutService from "#client/services/LayoutService.ts";
|
|
2
|
+
import container from "./container.ts";
|
|
2
3
|
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
const layout = g.layout || new LayoutManager()
|
|
6
|
-
|
|
7
|
-
g.layout = layout
|
|
4
|
+
const layout = container.proxy<LayoutService>(LayoutService)
|
|
8
5
|
|
|
9
6
|
export default layout
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import container from '#client/facades/container.ts'
|
|
2
|
-
import
|
|
2
|
+
import RouterService from '#client/services/RouterService.ts'
|
|
3
3
|
|
|
4
|
-
const router = container.proxy<
|
|
4
|
+
const router = container.proxy<RouterService>(RouterService)
|
|
5
5
|
|
|
6
6
|
export default router
|
package/src/client/index.ts
CHANGED
|
@@ -13,6 +13,7 @@ export { default as LifecycleService } from './services/LifecycleService.ts'
|
|
|
13
13
|
export * from './services/MenuService.ts'
|
|
14
14
|
export { default as MenuService } from './services/MenuService.ts'
|
|
15
15
|
export * from './services/RouterService.ts'
|
|
16
|
+
export { default as RouterService } from './services/RouterService.ts'
|
|
16
17
|
export * from './services/ToastService.ts'
|
|
17
18
|
export { default as ToastService } from './services/ToastService.ts'
|
|
18
19
|
export * from './composables/useBreakpoint.ts'
|
|
@@ -31,6 +32,7 @@ export * from './composables/useRoute.ts'
|
|
|
31
32
|
export * from './composables/useRouteQuery.ts'
|
|
32
33
|
export * from './composables/useState.ts'
|
|
33
34
|
export * from './composables/useTheme.ts'
|
|
35
|
+
export * from './contracts/events.ts'
|
|
34
36
|
export * from './facades/acl.ts'
|
|
35
37
|
export { default as acl } from './facades/acl.ts'
|
|
36
38
|
export * from './facades/auth.ts'
|
|
@@ -73,8 +75,6 @@ export * from './entities/MenuItemEntity.ts'
|
|
|
73
75
|
export { default as MenuItemEntity } from './entities/MenuItemEntity.ts'
|
|
74
76
|
export * from './entities/ModuleEntity.ts'
|
|
75
77
|
export { default as ModuleEntity } from './entities/ModuleEntity.ts'
|
|
76
|
-
export * from './entities/PluginEntity.ts'
|
|
77
|
-
export { default as PluginEntity } from './entities/PluginEntity.ts'
|
|
78
78
|
export * from './entities/WidgetChartDefinition.ts'
|
|
79
79
|
export { default as WidgetChartDefinition } from './entities/WidgetChartDefinition.ts'
|
|
80
80
|
export * from './entities/WidgetTextDefinition.ts'
|
|
@@ -2,21 +2,31 @@ import BaseException from '#shared/exceptions/BaseException.ts'
|
|
|
2
2
|
import type { DefineComponent } from "vue"
|
|
3
3
|
import emmitter from '../facades/emmitter.ts'
|
|
4
4
|
|
|
5
|
+
export interface LayoutEvents {
|
|
6
|
+
'layout:registered': {
|
|
7
|
+
layout: LayoutService
|
|
8
|
+
}
|
|
9
|
+
'layout:change': {
|
|
10
|
+
id: string
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export interface LayoutAddOptions {
|
|
15
|
+
id: string
|
|
16
|
+
component: any
|
|
17
|
+
options?: Record<string, any>
|
|
18
|
+
}
|
|
19
|
+
|
|
5
20
|
export default class LayoutService {
|
|
6
21
|
public static __container_entry_key = 'LayoutService'
|
|
7
22
|
public components: Map<string, DefineComponent> = new Map()
|
|
8
23
|
public options: Record<string, any> = {}
|
|
9
24
|
public currendId: string | null = null
|
|
10
25
|
|
|
11
|
-
public setCurrent(id: string) {
|
|
12
|
-
this.currendId = id
|
|
13
26
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
public add(name: string, component: DefineComponent, options?: any) {
|
|
18
|
-
this.components.set(name, component)
|
|
19
|
-
this.options = options || {}
|
|
27
|
+
public add(payload: LayoutAddOptions) {
|
|
28
|
+
this.components.set(payload.id, payload.component)
|
|
29
|
+
this.options = payload.options || {}
|
|
20
30
|
}
|
|
21
31
|
|
|
22
32
|
public has(name: string) {
|
|
@@ -45,6 +55,12 @@ export default class LayoutService {
|
|
|
45
55
|
return this.get(this.currendId)
|
|
46
56
|
}
|
|
47
57
|
|
|
58
|
+
public setCurrent(id: string | null) {
|
|
59
|
+
this.currendId = id
|
|
60
|
+
|
|
61
|
+
emmitter.emit('layout:change', id)
|
|
62
|
+
}
|
|
63
|
+
|
|
48
64
|
public setOptions(options: any = {}) {
|
|
49
65
|
this.options = options
|
|
50
66
|
|