bt-core-app 1.4.46 → 1.4.48
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 +2069 -2020
- package/dist/index.d.ts +22 -22
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -70,14 +70,6 @@ export declare type BladeDensity = 'default' | 'comfortable' | 'compact';
|
|
|
70
70
|
|
|
71
71
|
export declare type BladeMode = 'new' | 'view' | 'edit';
|
|
72
72
|
|
|
73
|
-
export declare interface BladeProps {
|
|
74
|
-
bladeID?: string;
|
|
75
|
-
bladeName?: string;
|
|
76
|
-
density?: BladeDensity;
|
|
77
|
-
mobileBreakpoint?: number;
|
|
78
|
-
variant?: BladeVariant;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
73
|
/**
|
|
82
74
|
Inline: merges toolbars | much more compact | hides navigation
|
|
83
75
|
Page: shows navigation and page settings
|
|
@@ -143,6 +135,12 @@ export declare interface BTAuth {
|
|
|
143
135
|
tryLogin: () => boolean | undefined;
|
|
144
136
|
}
|
|
145
137
|
|
|
138
|
+
declare interface BTBlade {
|
|
139
|
+
bladeData: Ref<any>;
|
|
140
|
+
isMobile: Ref<boolean>;
|
|
141
|
+
variant: Ref<BladeVariant>;
|
|
142
|
+
}
|
|
143
|
+
|
|
146
144
|
export declare interface BTCosmetics {
|
|
147
145
|
state: Ref<CosmeticData>;
|
|
148
146
|
resetCosmetics: (toDefault: boolean) => void;
|
|
@@ -626,13 +624,9 @@ export declare interface ListProps {
|
|
|
626
624
|
onSelectItem?: (item: any) => void;
|
|
627
625
|
params?: any;
|
|
628
626
|
proxyID?: string;
|
|
629
|
-
proxyQueryKey?: string;
|
|
630
627
|
refreshToggle?: boolean;
|
|
631
628
|
searchProps?: string[];
|
|
632
|
-
searchQueryKey?: string;
|
|
633
629
|
selectProps?: string[];
|
|
634
|
-
sortBy?: string;
|
|
635
|
-
sortOrder?: 'Ascending' | 'Descending';
|
|
636
630
|
showSearch?: boolean;
|
|
637
631
|
startShowingInactive?: boolean;
|
|
638
632
|
storeMode?: StoreMode;
|
|
@@ -795,6 +789,8 @@ export declare interface NavigationItem extends AuthItem {
|
|
|
795
789
|
singleName?: string;
|
|
796
790
|
/**what kind of store is needed for this api item */
|
|
797
791
|
storeMode?: StoreMode;
|
|
792
|
+
/**what kind of storage mode is needed for this api item */
|
|
793
|
+
storageMode?: StorageMode;
|
|
798
794
|
/**this nav item is restricted to these subscriptions. So the user needs to have at least one of these subscription codes. */
|
|
799
795
|
subscriptions?: string[];
|
|
800
796
|
/**this nav item is preferred in this subscription codes. */
|
|
@@ -1035,10 +1031,16 @@ export declare function useAuth(): BTAuth;
|
|
|
1035
1031
|
|
|
1036
1032
|
export declare function useAuthUrl(): string;
|
|
1037
1033
|
|
|
1038
|
-
export declare function
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1034
|
+
export declare function useBlade(options?: UseBladeOptions): BTBlade;
|
|
1035
|
+
|
|
1036
|
+
declare interface UseBladeOptions {
|
|
1037
|
+
bladeID?: string;
|
|
1038
|
+
bladeName?: string;
|
|
1039
|
+
blade?: Ref<ComponentPublicInstance | null>;
|
|
1040
|
+
defaultVariant?: BladeVariant;
|
|
1041
|
+
handle?: Ref<ComponentPublicInstance | null>;
|
|
1042
|
+
mobileBreakpoint?: number;
|
|
1043
|
+
}
|
|
1042
1044
|
|
|
1043
1045
|
export declare function useCosmetics(): BTCosmetics;
|
|
1044
1046
|
|
|
@@ -1170,6 +1172,8 @@ export declare interface UseItemOptions {
|
|
|
1170
1172
|
/**
|
|
1171
1173
|
* PROPS first
|
|
1172
1174
|
* ROUTE second
|
|
1175
|
+
* page=1
|
|
1176
|
+
*
|
|
1173
1177
|
* BLADE third
|
|
1174
1178
|
* @param props
|
|
1175
1179
|
* @param emit
|
|
@@ -1245,7 +1249,6 @@ export declare function useList(props: ListProps, emit?: ListEvents, options?: U
|
|
|
1245
1249
|
showError: ShallowRef<boolean>;
|
|
1246
1250
|
showInactive: Ref<boolean>;
|
|
1247
1251
|
showSearch: ShallowRef<boolean>;
|
|
1248
|
-
sortOrder: Ref<"Ascending" | "Descending" | undefined>;
|
|
1249
1252
|
subtitleOptions: ComputedRef<GroupedHeaderOption[]>;
|
|
1250
1253
|
tableHeaders: ComputedRef< {
|
|
1251
1254
|
align?: "start" | "end" | "center" | undefined;
|
|
@@ -1276,11 +1279,8 @@ export declare function useList(props: ListProps, emit?: ListEvents, options?: U
|
|
|
1276
1279
|
totalPages: Ref<number>;
|
|
1277
1280
|
};
|
|
1278
1281
|
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
storageMode?: StorageMode;
|
|
1282
|
-
useBladeSrc?: boolean;
|
|
1283
|
-
useRouteSrc?: boolean;
|
|
1282
|
+
declare interface UseListOptions {
|
|
1283
|
+
hideActions?: boolean;
|
|
1284
1284
|
}
|
|
1285
1285
|
|
|
1286
1286
|
export declare function useLocalCache(): {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bt-core-app",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.48",
|
|
4
4
|
"description": "Core app tools for some basic features like navigation, authentication, server apis, and cosmetics",
|
|
5
5
|
"homepage": "https://github.com/BlitzItTech/bt-core",
|
|
6
6
|
"bugs": {
|
|
@@ -41,11 +41,11 @@
|
|
|
41
41
|
"thenby": "^1.3.4"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
|
+
"@vueuse/core": "^10.4.1",
|
|
45
|
+
"pinia": "^2.1.7",
|
|
44
46
|
"vue": "^3.4.21",
|
|
45
47
|
"vue-router": "^4.0.0",
|
|
46
|
-
"vuetify": "^3.
|
|
47
|
-
"pinia": "^2.1.7",
|
|
48
|
-
"@vueuse/core": "^10.4.1"
|
|
48
|
+
"vuetify": "^3.6.2"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@testing-library/vue": "^8.0.3",
|