bt-core-app 2.0.99 → 2.0.101
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 +17690 -17691
- package/dist/index.d.ts +2 -6
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1085,7 +1085,6 @@ export declare interface ItemProps<T, TSave, TReturn> {
|
|
|
1085
1085
|
refreshToggle?: boolean;
|
|
1086
1086
|
resetTrackerToggle?: boolean;
|
|
1087
1087
|
startEditing?: boolean;
|
|
1088
|
-
storeKey?: string;
|
|
1089
1088
|
storeMode?: StoreMode;
|
|
1090
1089
|
storageMode?: StorageMode;
|
|
1091
1090
|
trackChanges?: boolean;
|
|
@@ -1201,7 +1200,6 @@ export declare interface ListProps<T, TSave, TReturn> {
|
|
|
1201
1200
|
startEditing?: boolean;
|
|
1202
1201
|
startShowingInactive?: boolean;
|
|
1203
1202
|
startShowingSearch?: boolean;
|
|
1204
|
-
storeKey?: string;
|
|
1205
1203
|
storeMode?: StoreMode;
|
|
1206
1204
|
storageMode?: StorageMode;
|
|
1207
1205
|
/**usually used for last-updated configs or large quantities of local items */
|
|
@@ -1630,7 +1628,6 @@ export declare interface StorePathOptions extends PathOptions {
|
|
|
1630
1628
|
getStorageKey?: (dOptions: GetStorageKeyOptions) => string;
|
|
1631
1629
|
localOnly?: boolean;
|
|
1632
1630
|
localPredicate?: (item: any) => boolean;
|
|
1633
|
-
storeKey?: string;
|
|
1634
1631
|
/**PLU Only */
|
|
1635
1632
|
dateFrom?: string;
|
|
1636
1633
|
/**PLU Only */
|
|
@@ -1752,7 +1749,6 @@ export declare interface UseActionsOptions extends DoActionOptions {
|
|
|
1752
1749
|
proxyID?: string;
|
|
1753
1750
|
refresh?: boolean;
|
|
1754
1751
|
store?: BTStoreDefinition;
|
|
1755
|
-
storeKey?: string;
|
|
1756
1752
|
/**particularly what store syle to use */
|
|
1757
1753
|
storeMode?: StoreMode;
|
|
1758
1754
|
/**whether to store data locally or only for the duration of the session */
|
|
@@ -2308,7 +2304,6 @@ export declare function useItem<T, TSave, TReturn>(props: ItemProps<T, TSave, TR
|
|
|
2308
2304
|
export declare interface UseItemOptions {
|
|
2309
2305
|
onGetItem?: (item: any) => void;
|
|
2310
2306
|
onError?: (err: any) => any;
|
|
2311
|
-
storeKey?: string;
|
|
2312
2307
|
storeMode?: StoreMode;
|
|
2313
2308
|
storageMode?: StorageMode;
|
|
2314
2309
|
useRouteSrc?: boolean;
|
|
@@ -2497,7 +2492,6 @@ declare interface UseListOptions {
|
|
|
2497
2492
|
onFinishedAsync?: (items: any) => Promise<void>;
|
|
2498
2493
|
router?: Router;
|
|
2499
2494
|
route?: RouteLocationNormalizedLoaded;
|
|
2500
|
-
storeKey?: string;
|
|
2501
2495
|
}
|
|
2502
2496
|
|
|
2503
2497
|
export declare function useLists(options: UseListsOptions): {
|
|
@@ -2629,6 +2623,8 @@ declare interface UseSessionStoreOptions {
|
|
|
2629
2623
|
getStorageKey?: (dOptions: GetStorageKeyOptions) => string;
|
|
2630
2624
|
/**used to select item. Default to x => x.id */
|
|
2631
2625
|
idSelector?: (item: any) => string;
|
|
2626
|
+
/**whether to search for list locally or server first */
|
|
2627
|
+
priority?: 'server' | 'local';
|
|
2632
2628
|
/**whether to store data locally or only for the duration of the session */
|
|
2633
2629
|
storageMode?: 'session' | 'local-cache';
|
|
2634
2630
|
/**build a query. Overrides the default */
|
package/package.json
CHANGED