bt-core-app 1.3.4 → 1.3.6
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/bt-core-app.js +8605 -7991
- package/dist/components/BT-Nav-Menu-Item.vue.d.ts +36 -0
- package/dist/components/BT-Nav-Sidebar.vue.d.ts +25 -0
- package/dist/composables/auth.d.ts +4 -1
- package/dist/composables/cosmetics.d.ts +3 -1
- package/dist/index.d.ts +3 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/BT-Field-Date.vue +1 -1
- package/src/components/BT-Nav-Menu-Item.vue +61 -0
- package/src/components/BT-Nav-Sidebar.vue +78 -0
- package/src/components/Dialog-Select-Date.vue +2 -2
- package/src/composables/api.ts +3 -3
- package/src/composables/auth.ts +9 -3
- package/src/composables/cosmetics.ts +2 -2
- package/src/composables/stores.ts +3 -3
- package/src/index.ts +4 -0
- package/test/auth.test.ts +1 -1
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
interface ItemProps {
|
|
2
|
+
allowedSubscriptionCodes?: string[];
|
|
3
|
+
isSubGroup?: boolean;
|
|
4
|
+
item?: any;
|
|
5
|
+
}
|
|
6
|
+
declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ItemProps>, {
|
|
7
|
+
allowedSubscriptionCodes: () => never[];
|
|
8
|
+
isSubGroup: boolean;
|
|
9
|
+
item: null;
|
|
10
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ItemProps>, {
|
|
11
|
+
allowedSubscriptionCodes: () => never[];
|
|
12
|
+
isSubGroup: boolean;
|
|
13
|
+
item: null;
|
|
14
|
+
}>>>, {
|
|
15
|
+
item: any;
|
|
16
|
+
allowedSubscriptionCodes: string[];
|
|
17
|
+
isSubGroup: boolean;
|
|
18
|
+
}, {}>;
|
|
19
|
+
export default _default;
|
|
20
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
21
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
22
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
23
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
24
|
+
} : {
|
|
25
|
+
type: import('vue').PropType<T[K]>;
|
|
26
|
+
required: true;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
type __VLS_WithDefaults<P, D> = {
|
|
30
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
31
|
+
default: D[K];
|
|
32
|
+
}> : P[K];
|
|
33
|
+
};
|
|
34
|
+
type __VLS_Prettify<T> = {
|
|
35
|
+
[K in keyof T]: T[K];
|
|
36
|
+
} & {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
interface SidebarProps {
|
|
2
|
+
iconSrc?: string;
|
|
3
|
+
title?: string;
|
|
4
|
+
}
|
|
5
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<SidebarProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<SidebarProps>>>, {}, {}>, {
|
|
6
|
+
default?(_: {}): any;
|
|
7
|
+
"top-list"?(_: {}): any;
|
|
8
|
+
"middle-list"?(_: {}): any;
|
|
9
|
+
"bottom-list"?(_: {}): any;
|
|
10
|
+
}>;
|
|
11
|
+
export default _default;
|
|
12
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
13
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
14
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
15
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
16
|
+
} : {
|
|
17
|
+
type: import('vue').PropType<T[K]>;
|
|
18
|
+
required: true;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
22
|
+
new (): {
|
|
23
|
+
$slots: S;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ComputedRef } from 'vue';
|
|
1
2
|
import { BTDemo } from '../composables/demo';
|
|
2
3
|
import { RemovableRef } from '@vueuse/core';
|
|
3
4
|
|
|
@@ -52,15 +53,17 @@ export interface BTAuth {
|
|
|
52
53
|
canEditPermit: (permit: string) => boolean;
|
|
53
54
|
canView: (navName?: string) => boolean;
|
|
54
55
|
canViewPermit: (permit: string) => boolean;
|
|
55
|
-
credentials: any
|
|
56
|
+
credentials: RemovableRef<any>;
|
|
56
57
|
doShow: (subcodes?: string[], permissions?: string[], action?: 'view' | 'edit') => boolean;
|
|
57
58
|
doShowByNav: (navName?: string | AuthItem, includeChildren?: boolean) => boolean;
|
|
58
59
|
getAuthorizeUrl: (redirectPath?: string) => string;
|
|
59
60
|
getTimeZone: () => string;
|
|
60
61
|
getToken: (code?: string, state?: string) => Promise<void>;
|
|
62
|
+
isLoggedIn: ComputedRef<boolean>;
|
|
61
63
|
login: (redirectPath?: string) => void;
|
|
62
64
|
logout: (navNameRedirect?: string) => void;
|
|
63
65
|
setAuth: (jwtToken?: string) => void;
|
|
66
|
+
timeZone: ComputedRef<string>;
|
|
64
67
|
tryLogin: () => boolean | undefined;
|
|
65
68
|
}
|
|
66
69
|
export declare function useAuth(): BTAuth;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { RemovableRef } from '@vueuse/core';
|
|
2
|
+
|
|
1
3
|
interface CosmeticData {
|
|
2
4
|
dark?: BaseCosmeticTheme;
|
|
3
5
|
drawer?: boolean;
|
|
@@ -22,7 +24,7 @@ export interface UseCosmeticsOptions<T extends BaseCosmeticTheme> {
|
|
|
22
24
|
defaultTheme?: string;
|
|
23
25
|
}
|
|
24
26
|
export interface BTCosmetics {
|
|
25
|
-
state: CosmeticData
|
|
27
|
+
state: RemovableRef<CosmeticData>;
|
|
26
28
|
initiate: () => void;
|
|
27
29
|
resetCosmetics: (toDefault: boolean) => void;
|
|
28
30
|
setTemporaryColor: (color: string) => void;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { default as BTNavSidebar } from './components/BT-Nav-Sidebar.vue';
|
|
2
|
+
import { default as BTNavMenuItem } from './components/BT-Nav-Menu-Item.vue';
|
|
1
3
|
export { useActionsTracker } from './composables/actions-tracker';
|
|
2
4
|
export type { BTActions, GetOptions, DeleteOptions, RestoreOptions, SaveOptions, ApiActionOptions, UseActionsOptions } from './composables/actions';
|
|
3
5
|
export { useActions } from './composables/actions';
|
|
@@ -40,3 +42,4 @@ export { createUrl, useUrls, useAuthUrl, useDbName, useDataUrl } from './composa
|
|
|
40
42
|
export * from './types';
|
|
41
43
|
export type { CoreApp, CreateCoreOptions } from './core';
|
|
42
44
|
export { createCore } from './core';
|
|
45
|
+
export { BTNavMenuItem, BTNavSidebar };
|