@rentman/rm-core 1.1.17 → 1.1.19
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/changelog.md +254 -237
- package/dist/dist/classes/ApiFormatter.d.ts +1 -1
- package/dist/dist/classes/ItemAdministrator.d.ts +4 -5
- package/dist/dist/classes/ItemRequestService.d.ts +3 -3
- package/dist/dist/classes/LocalCache.d.ts +7 -9
- package/dist/dist/models/CollectionEntry.d.ts +3 -2
- package/dist/dist/types/ItemTypesCollection.d.ts +18 -1
- package/dist/rm-core.js +53 -44
- package/dist/rm-core.min.js +1 -1
- package/package.json +35 -35
|
@@ -21,10 +21,11 @@ export declare class CollectionEntry {
|
|
|
21
21
|
constructor(factory: CollectionEntryFactory, itemType: ItemType, options: any);
|
|
22
22
|
defer(): void;
|
|
23
23
|
isDeferred(): boolean;
|
|
24
|
+
_resolve(): this;
|
|
24
25
|
resolve(itemEntryCompound: {
|
|
25
26
|
columns: ColumnSet;
|
|
26
27
|
items: ItemEntry[];
|
|
27
|
-
}):
|
|
28
|
+
}): this;
|
|
28
29
|
isLocal(): boolean;
|
|
29
30
|
matchParent(itemType: ItemType, itemId: ItemId): boolean;
|
|
30
31
|
forEach(callback: (itemEntry: ItemEntry) => void): void;
|
|
@@ -36,7 +37,7 @@ export declare class CollectionEntry {
|
|
|
36
37
|
clear(resultResource?: CollectionResource | null, updateInitial?: boolean, callOnRemove?: boolean): ItemResource[] | null;
|
|
37
38
|
handleRemovedItems(filterFunction: (itemEntry: ItemEntry) => boolean, resultResource?: CollectionResource | null, updateInitial?: boolean, callOnRemove?: boolean): ItemResource[] | null;
|
|
38
39
|
private handleRemovedItemCallbacks(removedFromInitial, removedFromModified, resultResource?, callOnRemove?);
|
|
39
|
-
expand(newColumns:
|
|
40
|
+
expand(newColumns: RequestColumns): Promise<this>;
|
|
40
41
|
extendQuery(callback: any): any;
|
|
41
42
|
extend(queryCallback: any, collectionResource: any, callOnAdd?: any, updateInitial?: any): Promise<any>;
|
|
42
43
|
queueReload(): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ApiResponseProcessor, CollectionMatcher, ColumnSet, RequestColumnExpansion } from '../classes';
|
|
1
|
+
import { ApiResponseProcessor, CollectionMatcher, ColumnSet, LocalCache, RequestColumnExpansion } from '../classes';
|
|
2
2
|
import { ENTRY_STATUS } from '../constants';
|
|
3
3
|
import { CollectionEntry, CollectionResource, ItemEntry, ItemResource } from '../models';
|
|
4
4
|
export declare type EntryParent = {
|
|
@@ -25,6 +25,23 @@ export declare type StateKey = {
|
|
|
25
25
|
template?: string;
|
|
26
26
|
itemId?: string;
|
|
27
27
|
};
|
|
28
|
+
export declare type OnSaveCallback = (localCache: LocalCache, conversionMap: ItemIdConversionMap) => any;
|
|
29
|
+
export declare const enum LocalCacheCallbackCondition {
|
|
30
|
+
Always = "always",
|
|
31
|
+
OnClose = "onClose",
|
|
32
|
+
SkipOnClose = "skipOnClose",
|
|
33
|
+
}
|
|
34
|
+
export declare type LocalCacheCallbacks<T> = {
|
|
35
|
+
always: {
|
|
36
|
+
[key: string]: T;
|
|
37
|
+
};
|
|
38
|
+
onClose: {
|
|
39
|
+
[key: string]: T;
|
|
40
|
+
};
|
|
41
|
+
skipOnClose: {
|
|
42
|
+
[key: string]: T;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
28
45
|
export declare type ItemResourceItemIdMap = {
|
|
29
46
|
[itemId: number]: ItemResource;
|
|
30
47
|
};
|