@emailmaker/filemanager 0.10.97 → 0.10.99
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/adapters/DataSourceProxyBase.upload.test.d.ts +1 -0
- package/adapters/TreeCache.d.ts +2 -0
- package/adapters/TreeCache.forceInvalidate.test.d.ts +1 -0
- package/adapters/cacheViewStrategy.d.ts +10 -1
- package/adapters/cacheViewTypes.d.ts +5 -0
- package/{file-manager-IconsTab-DaisiPID.js → file-manager-IconsTab-D5akkZ3R.js} +2 -2
- package/{file-manager-ImageCodeGenerator-oHIsr8W_.js → file-manager-ImageCodeGenerator-D7Ua_Qzp.js} +2 -2
- package/{file-manager-JsBarcode-DKe4XXuq.js → file-manager-JsBarcode-BchJ1DSS.js} +2 -2
- package/{file-manager-browser-CTCsdvXC.js → file-manager-browser-CXZb7Ezf.js} +2 -2
- package/file-manager-index-D2RmKLjd.js +10 -0
- package/file-manager.css +16 -0
- package/file-manager.esm.js +1 -1
- package/file-manager.js +135 -37
- package/hooks/core/useFolders.d.ts +8 -0
- package/hooks/core/useFolders.mergeLazyRootFolders.test.d.ts +1 -0
- package/index.d.ts +1 -1
- package/package.json +1 -1
- package/presentation/file-list/FileListAdapter.d.ts +1 -1
- package/presentation/file-list/FileListAdapter.previewFallback.test.d.ts +1 -0
- package/types.d.ts +10 -1
- package/utils/libraryTabLock.d.ts +11 -0
- package/utils/libraryTabLock.test.d.ts +1 -0
- package/file-manager-index-CGOCfKmf.js +0 -10
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/adapters/TreeCache.d.ts
CHANGED
|
@@ -105,6 +105,8 @@ export declare class ViewCacheManager {
|
|
|
105
105
|
private syncTotalsInSameViews;
|
|
106
106
|
private cascadeShiftPages;
|
|
107
107
|
private cascadeShiftToNextPage;
|
|
108
|
+
/** Whether the entity carries the field this sorted view is ordered by. */
|
|
109
|
+
private canCompareInSortedView;
|
|
108
110
|
private tryInsertSorted;
|
|
109
111
|
private updateChildrenCountForOperation;
|
|
110
112
|
private adjustChildrenCount;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -16,6 +16,13 @@ export declare function resolveSortParams(params?: ChildrenQueryParams): {
|
|
|
16
16
|
* Aligns with {@link DataSourceProxyBase} client-side sort and default server sort params.
|
|
17
17
|
*/
|
|
18
18
|
export declare function compareFileSystemItems(a: FileSystemItem, b: FileSystemItem, params?: ChildrenQueryParams): number;
|
|
19
|
+
/**
|
|
20
|
+
* Whether an entity carries the field the cached view is sorted by.
|
|
21
|
+
* Reads the same fields as {@link compareFileSystemItems}: without them the
|
|
22
|
+
* comparator silently falls back to defaults (missing date → epoch) and the
|
|
23
|
+
* entity lands at an arbitrary position.
|
|
24
|
+
*/
|
|
25
|
+
export declare function hasComparableSortValue(entity: FileSystemItem, params?: ChildrenQueryParams): boolean;
|
|
19
26
|
/**
|
|
20
27
|
* Whether an entity belongs in a cached children view with optional search filter.
|
|
21
28
|
*/
|
|
@@ -24,8 +31,10 @@ export declare function matchesChildrenViewFilter(entity: FileSystemItem, params
|
|
|
24
31
|
export declare const defaultFileSystemItemComparator: typeof compareFileSystemItems;
|
|
25
32
|
/** Default search filter for cached children views. */
|
|
26
33
|
export declare const defaultChildrenViewFilterMatch: typeof matchesChildrenViewFilter;
|
|
34
|
+
/** Default sort-value guard for sorted view cache updates. */
|
|
35
|
+
export declare const defaultHasSortValue: typeof hasComparableSortValue;
|
|
27
36
|
/**
|
|
28
|
-
* Merge user cache strategy with package defaults for comparator and
|
|
37
|
+
* Merge user cache strategy with package defaults for comparator, filterMatch and hasSortValue.
|
|
29
38
|
*/
|
|
30
39
|
export declare function resolveViewStrategyOptions(options?: ViewStrategyOptions): ViewStrategyOptions;
|
|
31
40
|
export {};
|
|
@@ -16,4 +16,9 @@ export interface ViewStrategyOptions {
|
|
|
16
16
|
preloadPagesAfter?: number;
|
|
17
17
|
comparator?: (a: FileSystemItem, b: FileSystemItem, params?: ChildrenQueryParams) => number;
|
|
18
18
|
filterMatch?: (entity: FileSystemItem, params?: ChildrenQueryParams) => boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Guard for sorted inserts: entities without the sort field are not inserted
|
|
21
|
+
* blindly, the view is refetched instead. Override together with comparator.
|
|
22
|
+
*/
|
|
23
|
+
hasSortValue?: (entity: FileSystemItem, params?: ChildrenQueryParams) => boolean;
|
|
19
24
|
}
|