@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
|
@@ -1,14 +1,27 @@
|
|
|
1
1
|
import { DefineComponent } from 'vue';
|
|
2
|
+
export interface LayoutEvents {
|
|
3
|
+
'layout:registered': {
|
|
4
|
+
layout: LayoutService;
|
|
5
|
+
};
|
|
6
|
+
'layout:change': {
|
|
7
|
+
id: string;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
export interface LayoutAddOptions {
|
|
11
|
+
id: string;
|
|
12
|
+
component: any;
|
|
13
|
+
options?: Record<string, any>;
|
|
14
|
+
}
|
|
2
15
|
export default class LayoutService {
|
|
3
16
|
static __container_entry_key: string;
|
|
4
17
|
components: Map<string, DefineComponent>;
|
|
5
18
|
options: Record<string, any>;
|
|
6
19
|
currendId: string | null;
|
|
7
|
-
|
|
8
|
-
add(name: string, component: DefineComponent, options?: any): void;
|
|
20
|
+
add(payload: LayoutAddOptions): void;
|
|
9
21
|
has(name: string): boolean;
|
|
10
22
|
get(name: string): DefineComponent;
|
|
11
23
|
getOptions(): Record<string, any>;
|
|
12
24
|
getCurrent(): DefineComponent | null;
|
|
25
|
+
setCurrent(id: string | null): void;
|
|
13
26
|
setOptions(options?: any): void;
|
|
14
27
|
}
|
|
@@ -5,6 +5,11 @@ export interface ListFilter {
|
|
|
5
5
|
parent?: string;
|
|
6
6
|
allowed?: boolean;
|
|
7
7
|
}
|
|
8
|
+
export interface MenuEvents {
|
|
9
|
+
'menu:registered': {
|
|
10
|
+
menu: MenuService;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
8
13
|
export default class MenuService {
|
|
9
14
|
static __container_entry_key: string;
|
|
10
15
|
items: Map<string, MenuItem>;
|
|
@@ -1,21 +1,31 @@
|
|
|
1
|
-
import { NavigationGuard, Router
|
|
2
|
-
export interface
|
|
3
|
-
|
|
1
|
+
import { NavigationGuard, Router, RouteRecordRaw, NavigationFailure } from 'vue-router';
|
|
2
|
+
export interface RouterEvents {
|
|
3
|
+
'router:registered': {
|
|
4
|
+
router: RouterService;
|
|
5
|
+
};
|
|
6
|
+
'router:loaded': {
|
|
7
|
+
router: RouterService;
|
|
8
|
+
};
|
|
4
9
|
}
|
|
5
|
-
export interface
|
|
10
|
+
export interface RouterSource {
|
|
11
|
+
files: Record<string, any>;
|
|
12
|
+
prefix?: string;
|
|
13
|
+
layout?: string;
|
|
6
14
|
guards?: NavigationGuard[] | ((record: RouteRecordRaw) => NavigationGuard[]);
|
|
7
15
|
strip?: (string | RegExp)[];
|
|
8
16
|
exclude?: (string | RegExp)[];
|
|
9
|
-
prefix?: string;
|
|
10
17
|
refine?: (records: RouteRecordRaw[]) => RouteRecordRaw[];
|
|
11
18
|
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
+
interface RouterServiceOptions {
|
|
20
|
+
ssr?: boolean;
|
|
21
|
+
debug?: boolean;
|
|
22
|
+
}
|
|
23
|
+
export default class RouterService {
|
|
24
|
+
static __container_entry_key: string;
|
|
25
|
+
vueRouter: Router;
|
|
26
|
+
constructor(options?: RouterServiceOptions);
|
|
27
|
+
addSource(source: RouterSource): void;
|
|
28
|
+
push(path: string): Promise<void | NavigationFailure | undefined>;
|
|
29
|
+
isReady(): Promise<void>;
|
|
19
30
|
}
|
|
20
|
-
export
|
|
21
|
-
export declare function createRouter(): Router;
|
|
31
|
+
export {};
|