bt-core-app 1.1.8 → 1.2.0
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 +20837 -14524
- package/dist/components/BT-Btn.vue.d.ts +41 -0
- package/dist/components/BT-Col.vue.d.ts +49 -0
- package/dist/components/Dialog-Confirm.vue.d.ts +2 -2
- package/dist/components/Dialog-Select-Date.vue.d.ts +2 -2
- package/dist/components/Dialog-Select.vue.d.ts +2 -2
- package/dist/components/Dialog-Text.vue.d.ts +2 -2
- package/dist/composables/actions.d.ts +6 -6
- package/dist/composables/api.d.ts +1 -0
- package/dist/composables/auth.d.ts +1 -0
- package/dist/composables/cosmetics.d.ts +3 -1
- package/dist/composables/dates.d.ts +1 -0
- package/dist/composables/demo.d.ts +1 -0
- package/dist/composables/filters.d.ts +1 -0
- package/dist/composables/list.d.ts +2 -2
- package/dist/composables/navigation.d.ts +1 -0
- package/dist/composables/presets.d.ts +1 -0
- package/dist/composables/pwa.d.ts +1 -0
- package/dist/composables/stores.d.ts +17 -6
- package/dist/index.d.ts +11 -12
- package/dist/style.css +1 -1
- package/dist/useApi.d.ts +0 -30
- package/package.json +2 -1
- package/src/components/BT-Btn.vue +1 -1
- package/src/components/BT-Field-Checkbox.vue +70 -0
- package/src/components/BT-Field-Date.vue +112 -0
- package/src/components/BT-Field-Entity.vue +48 -0
- package/src/components/BT-Field-Select.vue +67 -0
- package/src/components/BT-Field-String.vue +78 -0
- package/src/components/BT-Field-Switch.vue +68 -0
- package/src/components/BT-Field-Tags.vue +66 -0
- package/src/components/BT-Field-Textarea.vue +67 -0
- package/src/components/BT-Field-Trigger.vue +315 -0
- package/src/components/BT-Header-Option.vue +39 -0
- package/src/components/BT-Json.vue +67 -0
- package/src/components/BT-Select-List-Box.vue +258 -0
- package/src/components/BT-Select.vue +46 -0
- package/src/components/BT-Snack.vue +31 -0
- package/src/components/Dialog-Select-Date.vue +1 -1
- package/src/composables/actions.ts +6 -6
- package/src/composables/api.ts +9 -1
- package/src/composables/auth.ts +8 -19
- package/src/composables/cosmetics.ts +27 -28
- package/src/composables/dates.ts +9 -1
- package/src/composables/demo.ts +9 -1
- package/src/composables/filters.ts +9 -1
- package/src/composables/list.ts +6 -3
- package/src/composables/navigation.ts +9 -1
- package/src/composables/presets.ts +9 -1
- package/src/composables/pwa.ts +9 -1
- package/src/composables/stores.ts +32 -11
- package/src/core.ts +49 -16
- package/src/index.ts +12 -12
- package/src/types.ts +5 -1
- package/src/useApi.ts +57 -57
- package/vite.config.ts +6 -2
- package/.vscode/extensions.json +0 -3
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
interface BtnProps {
|
|
2
|
+
icon?: string;
|
|
3
|
+
isEditing?: boolean;
|
|
4
|
+
preset?: string;
|
|
5
|
+
size?: string;
|
|
6
|
+
variant?: 'flat' | 'text' | 'elevated' | 'tonal' | 'outlined' | 'plain';
|
|
7
|
+
}
|
|
8
|
+
declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<BtnProps>, {
|
|
9
|
+
icon: undefined;
|
|
10
|
+
isEditing: boolean;
|
|
11
|
+
size: undefined;
|
|
12
|
+
variant: string;
|
|
13
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<BtnProps>, {
|
|
14
|
+
icon: undefined;
|
|
15
|
+
isEditing: boolean;
|
|
16
|
+
size: undefined;
|
|
17
|
+
variant: string;
|
|
18
|
+
}>>>, {
|
|
19
|
+
icon: string;
|
|
20
|
+
isEditing: boolean;
|
|
21
|
+
size: string;
|
|
22
|
+
variant: "flat" | "text" | "elevated" | "tonal" | "outlined" | "plain";
|
|
23
|
+
}, {}>;
|
|
24
|
+
export default _default;
|
|
25
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
26
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
27
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
28
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
29
|
+
} : {
|
|
30
|
+
type: import('vue').PropType<T[K]>;
|
|
31
|
+
required: true;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
type __VLS_WithDefaults<P, D> = {
|
|
35
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
36
|
+
default: D[K];
|
|
37
|
+
}> : P[K];
|
|
38
|
+
};
|
|
39
|
+
type __VLS_Prettify<T> = {
|
|
40
|
+
[K in keyof T]: T[K];
|
|
41
|
+
} & {};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
interface ColProps {
|
|
2
|
+
cols?: string | boolean;
|
|
3
|
+
isMobile?: boolean;
|
|
4
|
+
lg?: string | boolean;
|
|
5
|
+
md?: string | boolean;
|
|
6
|
+
sm?: string | boolean;
|
|
7
|
+
noGutters?: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ColProps>, {
|
|
10
|
+
cols: string;
|
|
11
|
+
lg: boolean;
|
|
12
|
+
md: boolean;
|
|
13
|
+
sm: string;
|
|
14
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ColProps>, {
|
|
15
|
+
cols: string;
|
|
16
|
+
lg: boolean;
|
|
17
|
+
md: boolean;
|
|
18
|
+
sm: string;
|
|
19
|
+
}>>>, {
|
|
20
|
+
cols: string | boolean;
|
|
21
|
+
lg: string | boolean;
|
|
22
|
+
md: string | boolean;
|
|
23
|
+
sm: string | boolean;
|
|
24
|
+
}, {}>, {
|
|
25
|
+
default?(_: {}): any;
|
|
26
|
+
}>;
|
|
27
|
+
export default _default;
|
|
28
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
29
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
30
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
31
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
32
|
+
} : {
|
|
33
|
+
type: import('vue').PropType<T[K]>;
|
|
34
|
+
required: true;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
type __VLS_WithDefaults<P, D> = {
|
|
38
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
39
|
+
default: D[K];
|
|
40
|
+
}> : P[K];
|
|
41
|
+
};
|
|
42
|
+
type __VLS_Prettify<T> = {
|
|
43
|
+
[K in keyof T]: T[K];
|
|
44
|
+
} & {};
|
|
45
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
46
|
+
new (): {
|
|
47
|
+
$slots: S;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
@@ -5,15 +5,15 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
5
5
|
confirmValue: boolean;
|
|
6
6
|
startIncludeDetails: boolean;
|
|
7
7
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
|
-
cancel: (...args: any[]) => void;
|
|
9
8
|
confirm: (...args: any[]) => void;
|
|
9
|
+
cancel: (...args: any[]) => void;
|
|
10
10
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ConfirmDialogProps>, {
|
|
11
11
|
cancelValue: boolean;
|
|
12
12
|
confirmValue: boolean;
|
|
13
13
|
startIncludeDetails: boolean;
|
|
14
14
|
}>>> & {
|
|
15
|
-
onCancel?: ((...args: any[]) => any) | undefined;
|
|
16
15
|
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
16
|
+
onCancel?: ((...args: any[]) => any) | undefined;
|
|
17
17
|
}, {
|
|
18
18
|
cancelValue: any;
|
|
19
19
|
confirmValue: any;
|
|
@@ -4,14 +4,14 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
4
4
|
cancelValue: boolean;
|
|
5
5
|
height: string;
|
|
6
6
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
-
cancel: (...args: any[]) => void;
|
|
8
7
|
confirm: (...args: any[]) => void;
|
|
8
|
+
cancel: (...args: any[]) => void;
|
|
9
9
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SelectDateProps>, {
|
|
10
10
|
cancelValue: boolean;
|
|
11
11
|
height: string;
|
|
12
12
|
}>>> & {
|
|
13
|
-
onCancel?: ((...args: any[]) => any) | undefined;
|
|
14
13
|
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
14
|
+
onCancel?: ((...args: any[]) => any) | undefined;
|
|
15
15
|
}, {
|
|
16
16
|
height: string;
|
|
17
17
|
cancelValue: any;
|
|
@@ -5,15 +5,15 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
|
|
|
5
5
|
height: string;
|
|
6
6
|
showSearch: boolean;
|
|
7
7
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
|
-
cancel: (...args: any[]) => void;
|
|
9
8
|
confirm: (...args: any[]) => void;
|
|
9
|
+
cancel: (...args: any[]) => void;
|
|
10
10
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SelectDialogProps>, {
|
|
11
11
|
cancelValue: boolean;
|
|
12
12
|
height: string;
|
|
13
13
|
showSearch: boolean;
|
|
14
14
|
}>>> & {
|
|
15
|
-
onCancel?: ((...args: any[]) => any) | undefined;
|
|
16
15
|
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
16
|
+
onCancel?: ((...args: any[]) => any) | undefined;
|
|
17
17
|
}, {
|
|
18
18
|
height: string;
|
|
19
19
|
cancelValue: any;
|
|
@@ -3,13 +3,13 @@ import { TextDialogProps } from '../composables/dialogs';
|
|
|
3
3
|
declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<TextDialogProps>, {
|
|
4
4
|
height: string;
|
|
5
5
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6
|
-
cancel: (...args: any[]) => void;
|
|
7
6
|
confirm: (...args: any[]) => void;
|
|
7
|
+
cancel: (...args: any[]) => void;
|
|
8
8
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<TextDialogProps>, {
|
|
9
9
|
height: string;
|
|
10
10
|
}>>> & {
|
|
11
|
-
onCancel?: ((...args: any[]) => any) | undefined;
|
|
12
11
|
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
12
|
+
onCancel?: ((...args: any[]) => any) | undefined;
|
|
13
13
|
}, {
|
|
14
14
|
height: string;
|
|
15
15
|
}, {}>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ShallowRef, ComputedRef } from 'vue';
|
|
2
2
|
import { DoActionOptions } from '../composables/actions-tracker';
|
|
3
3
|
import { BTApi, PathOptions } from '../composables/api';
|
|
4
|
-
import {
|
|
4
|
+
import { BTStoreDefinition } from '../composables/stores';
|
|
5
5
|
import { BladeMode } from '../types';
|
|
6
6
|
|
|
7
7
|
export type OnCanDoAsync = (item: any) => Promise<string | undefined>;
|
|
@@ -14,7 +14,7 @@ export interface GetOptions extends PathOptions, DoActionOptions {
|
|
|
14
14
|
onGetAsync?: OnGetAsync;
|
|
15
15
|
/**called after get occurs successfully */
|
|
16
16
|
onGetSuccessAsync?: OnGetSuccessAsync;
|
|
17
|
-
store?:
|
|
17
|
+
store?: BTStoreDefinition;
|
|
18
18
|
}
|
|
19
19
|
export interface DeleteOptions extends PathOptions, DoActionOptions {
|
|
20
20
|
/**Returns a string if cannot */
|
|
@@ -23,7 +23,7 @@ export interface DeleteOptions extends PathOptions, DoActionOptions {
|
|
|
23
23
|
onDeleteAsync?: OnDoAsync;
|
|
24
24
|
/**Will open a dialog box requesting user confirmation for delete action */
|
|
25
25
|
onDeleteSuccessAsync?: OnDoAsync;
|
|
26
|
-
store?:
|
|
26
|
+
store?: BTStoreDefinition;
|
|
27
27
|
}
|
|
28
28
|
export interface RestoreOptions extends PathOptions, DoActionOptions {
|
|
29
29
|
/**Returns a string if cannot */
|
|
@@ -32,7 +32,7 @@ export interface RestoreOptions extends PathOptions, DoActionOptions {
|
|
|
32
32
|
onRestoreAsync?: OnDoSuccessAsync;
|
|
33
33
|
/**Called after restore succeeds */
|
|
34
34
|
onRestoreSuccessAsync?: OnDoSuccessAsync;
|
|
35
|
-
store?:
|
|
35
|
+
store?: BTStoreDefinition;
|
|
36
36
|
}
|
|
37
37
|
export interface SaveOptions extends PathOptions, DoActionOptions {
|
|
38
38
|
/**will seek to post if 'new' otherwise will patch */
|
|
@@ -48,7 +48,7 @@ export interface SaveOptions extends PathOptions, DoActionOptions {
|
|
|
48
48
|
onSaveAsync?: OnDoSuccessAsync;
|
|
49
49
|
/**Called after save succeeds */
|
|
50
50
|
onSaveSuccessAsync?: OnDoSuccessAsync;
|
|
51
|
-
store?:
|
|
51
|
+
store?: BTStoreDefinition;
|
|
52
52
|
}
|
|
53
53
|
export interface ApiActionOptions extends PathOptions, DoActionOptions {
|
|
54
54
|
api: BTApi;
|
|
@@ -57,7 +57,7 @@ export interface UseActionsOptions extends DoActionOptions {
|
|
|
57
57
|
nav?: string;
|
|
58
58
|
proxyID?: string;
|
|
59
59
|
refresh?: boolean;
|
|
60
|
-
store?:
|
|
60
|
+
store?: BTStoreDefinition;
|
|
61
61
|
throwError?: boolean;
|
|
62
62
|
url?: string;
|
|
63
63
|
}
|
|
@@ -81,5 +81,6 @@ export interface BTApi {
|
|
|
81
81
|
post: <T>(pathOptions: PathOptions) => Promise<T | undefined>;
|
|
82
82
|
patch: <T>(pathOptions: PathOptions) => Promise<T | undefined>;
|
|
83
83
|
}
|
|
84
|
+
export declare function useApi(): BTApi;
|
|
84
85
|
export declare function createApi(options?: UseApiOptions): BTApi;
|
|
85
86
|
export {};
|
|
@@ -23,6 +23,7 @@ export interface UseCosmeticsOptions<T extends BaseCosmeticTheme> {
|
|
|
23
23
|
}
|
|
24
24
|
export interface BTCosmetics {
|
|
25
25
|
state: CosmeticData;
|
|
26
|
+
initiate: () => void;
|
|
26
27
|
resetCosmetics: (toDefault: boolean) => void;
|
|
27
28
|
setTemporaryColor: (color: string) => void;
|
|
28
29
|
toggleDrawer: () => void;
|
|
@@ -30,5 +31,6 @@ export interface BTCosmetics {
|
|
|
30
31
|
toggleLightDark: () => void;
|
|
31
32
|
undoTemporaryColor: () => void;
|
|
32
33
|
}
|
|
33
|
-
export declare function
|
|
34
|
+
export declare function useCosmetics(): BTCosmetics;
|
|
35
|
+
export declare function createCosmetics<T extends BaseCosmeticTheme>(options: UseCosmeticsOptions<T>): void;
|
|
34
36
|
export {};
|
|
@@ -6,5 +6,6 @@ export interface BTFilters {
|
|
|
6
6
|
export interface UseFiltersOptions {
|
|
7
7
|
dates: BTDates;
|
|
8
8
|
}
|
|
9
|
+
export declare function useFilters(): BTFilters;
|
|
9
10
|
export declare function createFilters(options: UseFiltersOptions): BTFilters;
|
|
10
11
|
export type Textfilter = 'toLocationLine' | 'toLocationLineNoCommas' | 'toLongDate' | 'toLongDateAndTime' | 'toPercent' | 'toPrettyCSV' | 'toShortDate' | 'toShortDateAndTime' | 'toTime' | 'toTimeOfDay' | 'toCompanyNameAndLocationLine' | 'toCurrency' | 'toDayDate' | 'toDayMonth' | 'toDayOfWeek' | 'toDayShortDate' | 'toDayShortDateAndTime' | 'toDisplayNumber' | 'toDisplayNumberOver' | 'toDisplayNumberSigned' | 'toFormat';
|
|
@@ -142,7 +142,7 @@ export declare function useList(props: ListProps, emit?: ListEvents, options?: U
|
|
|
142
142
|
filters: import('vue').ComputedRef<string[]>;
|
|
143
143
|
filtersChanged: import('vue').ComputedRef<boolean>;
|
|
144
144
|
headerOptions: import('vue').Ref<{
|
|
145
|
-
align?: "
|
|
145
|
+
align?: "start" | "end" | "center" | undefined;
|
|
146
146
|
csv?: boolean | undefined;
|
|
147
147
|
csvArray?: boolean | undefined;
|
|
148
148
|
csvFilter?: string | undefined;
|
|
@@ -177,7 +177,7 @@ export declare function useList(props: ListProps, emit?: ListEvents, options?: U
|
|
|
177
177
|
sortOrder: import('vue').Ref<"Ascending" | "Descending" | undefined>;
|
|
178
178
|
subtitleOptions: import('vue').ComputedRef<GroupedHeaderOption[]>;
|
|
179
179
|
tableHeaders: import('vue').ComputedRef<{
|
|
180
|
-
align?: "
|
|
180
|
+
align?: "start" | "end" | "center" | undefined;
|
|
181
181
|
csv?: boolean | undefined;
|
|
182
182
|
csvArray?: boolean | undefined;
|
|
183
183
|
csvFilter?: string | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BTAuth } from './auth';
|
|
2
2
|
import { BaseModel } from '../types';
|
|
3
3
|
import { PathOptions, BTApi } from '../composables/api';
|
|
4
|
-
import { StoreDefinition } from 'pinia';
|
|
4
|
+
import { Store, StoreDefinition } from 'pinia';
|
|
5
5
|
|
|
6
6
|
export type StoreMode = 'whole-last-updated' | 'partial-last-updated' | 'session';
|
|
7
7
|
export type StorageMode = 'session' | 'local-cache';
|
|
@@ -25,7 +25,16 @@ export interface StoreGetAllReturn<T> {
|
|
|
25
25
|
export interface StoreGetReturn<T> {
|
|
26
26
|
data: T;
|
|
27
27
|
}
|
|
28
|
-
export interface
|
|
28
|
+
export interface BTStoreDefinition extends StoreDefinition<any, {}, {}, {
|
|
29
|
+
deleteItem: (dOptions: PathOptions) => Promise<string | undefined>;
|
|
30
|
+
get: <T extends BaseModel>(dOptions: PathOptions) => Promise<StoreGetReturn<T>>;
|
|
31
|
+
getAll: <T extends BaseModel>(dOptions: PathOptions) => Promise<StoreGetAllReturn<T>>;
|
|
32
|
+
patch: <T extends BaseModel>(dOptions: PathOptions) => Promise<T | undefined>;
|
|
33
|
+
post: <T extends BaseModel>(dOptions: PathOptions) => Promise<T | undefined>;
|
|
34
|
+
restore: <T extends BaseModel>(dOptions: PathOptions) => Promise<T | undefined>;
|
|
35
|
+
}> {
|
|
36
|
+
}
|
|
37
|
+
export interface BTStore extends Store<any, {}, {}, {
|
|
29
38
|
deleteItem: (dOptions: PathOptions) => Promise<string | undefined>;
|
|
30
39
|
get: <T extends BaseModel>(dOptions: PathOptions) => Promise<StoreGetReturn<T>>;
|
|
31
40
|
getAll: <T extends BaseModel>(dOptions: PathOptions) => Promise<StoreGetAllReturn<T>>;
|
|
@@ -71,8 +80,10 @@ export interface CreateStoreOptions {
|
|
|
71
80
|
/**the name of this store */
|
|
72
81
|
storeName: string;
|
|
73
82
|
}
|
|
74
|
-
export declare function
|
|
75
|
-
export declare function
|
|
83
|
+
export declare function useStore(options: CreateStoreOptions): BTStore;
|
|
84
|
+
export declare function useStoreDefinition(options: CreateStoreOptions): BTStoreDefinition;
|
|
85
|
+
export declare function createStoreBuilder(options: CreateStoreBuilderOptions): (opt: CreateStoreOptions) => BTStoreDefinition;
|
|
86
|
+
export declare function createStoreDefinition(options: UseStoreOptions): BTStoreDefinition;
|
|
76
87
|
interface UseSessionStoreOptions {
|
|
77
88
|
/**ideally required. Otherwise will struggle to find url path */
|
|
78
89
|
api?: BTApi;
|
|
@@ -87,7 +98,7 @@ interface UseSessionStoreOptions {
|
|
|
87
98
|
/**the name of this store */
|
|
88
99
|
storeName: string;
|
|
89
100
|
}
|
|
90
|
-
export declare function
|
|
101
|
+
export declare function createSessionStoreDefinition(options: UseSessionStoreOptions): BTStoreDefinition;
|
|
91
102
|
interface UseWholeLastUpdateStoreOptions {
|
|
92
103
|
/**ideally required. Otherwise will struggle to find url path */
|
|
93
104
|
api?: BTApi;
|
|
@@ -96,5 +107,5 @@ interface UseWholeLastUpdateStoreOptions {
|
|
|
96
107
|
storageMode: 'session' | 'local-cache';
|
|
97
108
|
storeName: string;
|
|
98
109
|
}
|
|
99
|
-
export declare function
|
|
110
|
+
export declare function createWholeLastUpdateStoreDefinition(options: UseWholeLastUpdateStoreOptions): BTStoreDefinition;
|
|
100
111
|
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -2,42 +2,41 @@ export { useActionsTracker } from './composables/actions-tracker';
|
|
|
2
2
|
export type { BTActions, GetOptions, DeleteOptions, RestoreOptions, SaveOptions, ApiActionOptions, UseActionsOptions } from './composables/actions';
|
|
3
3
|
export { useActions } from './composables/actions';
|
|
4
4
|
export type { BTApi, UseApiOptions, PathOptions, QueryParams } from './composables/api';
|
|
5
|
-
export { createApi } from './composables/api';
|
|
5
|
+
export { createApi, useApi } from './composables/api';
|
|
6
6
|
export type { BTAuth, AuthItem, AuthSubscription, BaseAuthCredentials, CreateAuthOptions } from './composables/auth';
|
|
7
|
-
export { createAuth } from './composables/auth';
|
|
7
|
+
export { createAuth, useAuth } from './composables/auth';
|
|
8
8
|
export type { BTCosmetics, BaseCosmeticTheme, UseCosmeticsOptions } from './composables/cosmetics';
|
|
9
|
-
export { createCosmetics } from './composables/cosmetics';
|
|
9
|
+
export { createCosmetics, useCosmetics } from './composables/cosmetics';
|
|
10
10
|
export * from './composables/csv';
|
|
11
11
|
export type { BTDates, CreateDatesOptions } from './composables/dates';
|
|
12
|
-
export { createDates } from './composables/dates';
|
|
12
|
+
export { createDates, useDates } from './composables/dates';
|
|
13
13
|
export type { BTDemo } from './composables/demo';
|
|
14
|
-
export { createDemo } from './composables/demo';
|
|
14
|
+
export { createDemo, useDemo } from './composables/demo';
|
|
15
15
|
export * from './composables/dialogs';
|
|
16
16
|
export type { BTDocumentMeta, UseDocumentMetaOptions } from './composables/document-meta';
|
|
17
17
|
export { useDocumentMeta } from './composables/document-meta';
|
|
18
18
|
export * from './composables/draggable';
|
|
19
19
|
export type { BTFilters, UseFiltersOptions } from './composables/filters';
|
|
20
|
-
export { createFilters } from './composables/filters';
|
|
20
|
+
export { createFilters, useFilters } from './composables/filters';
|
|
21
21
|
export { useLocalDb, useLocalCache } from './composables/forage';
|
|
22
22
|
export * from './composables/helpers';
|
|
23
23
|
export { useId } from './composables/id';
|
|
24
24
|
export type { TableColumn, CustomFilterParam, ListEvents, ListProps, GroupedHeaderOption, UseListOptions } from './composables/list';
|
|
25
25
|
export { useList } from './composables/list';
|
|
26
26
|
export type { BTNavigation, ExternalParty, ExternalNavigation, NavigationItem, UseNavigationOptions } from './composables/navigation';
|
|
27
|
-
export { createNavigation } from './composables/navigation';
|
|
27
|
+
export { createNavigation, useNavigation } from './composables/navigation';
|
|
28
28
|
export type { BTPresets, CreatePresetsOptions } from './composables/presets';
|
|
29
|
-
export { createPresets } from './composables/presets';
|
|
29
|
+
export { createPresets, usePresets } from './composables/presets';
|
|
30
30
|
export type { BTPWA, SWEvent } from './composables/pwa';
|
|
31
|
-
export { createPWA } from './composables/pwa';
|
|
31
|
+
export { createPWA, usePWA } from './composables/pwa';
|
|
32
32
|
export * from './composables/resizable';
|
|
33
33
|
export type { UseRulesOptions } from './composables/rules';
|
|
34
34
|
export { useRules } from './composables/rules';
|
|
35
|
-
export type { BTStore, StoreMode, StorageMode, LocalMeta, LocallyStoredItem, StoreGetAllReturn, StoreGetReturn, UseStoreOptions, CreateStoreBuilderOptions, CreateStoreOptions } from './composables/stores';
|
|
36
|
-
export { createStoreBuilder,
|
|
35
|
+
export type { BTStoreDefinition, BTStore, StoreMode, StorageMode, LocalMeta, LocallyStoredItem, StoreGetAllReturn, StoreGetReturn, UseStoreOptions, CreateStoreBuilderOptions, CreateStoreOptions } from './composables/stores';
|
|
36
|
+
export { createStoreBuilder, createStoreDefinition, useStore, useStoreDefinition, createWholeLastUpdateStoreDefinition, createSessionStoreDefinition } from './composables/stores';
|
|
37
37
|
export type { UseTrackerOptions } from './composables/track';
|
|
38
38
|
export { useTracker } from './composables/track';
|
|
39
39
|
export { useUrl } from './composables/urls';
|
|
40
|
-
export { useApi, useAuth, useCosmetics, useDates, useDemo, useFilters, useNavigation, usePresets, usePWA, useStore } from './useApi';
|
|
41
40
|
export * from './types';
|
|
42
41
|
export type { CoreApp, CreateCoreOptions } from './core';
|
|
43
42
|
export { createCore } from './core';
|