@rentman/rm-core 1.1.8-2 → 1.1.8-4
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.
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { ItemHandler, KeyService } from '../classes';
|
|
2
2
|
import { ChangesProcessorFactory, ItemEntryFactory, ItemResourceFactory } from '../factories';
|
|
3
3
|
import { ErrorHandlerInterface, PromiseInterface } from '../interfaces';
|
|
4
|
-
import { CollectionEntry } from '
|
|
5
|
-
import { CollectionResource } from './CollectionResource';
|
|
4
|
+
import { CollectionEntry, CollectionResource, ItemResource } from '../models';
|
|
6
5
|
export declare class CollectionEditResource extends CollectionResource {
|
|
7
6
|
private errorHandler;
|
|
8
7
|
private itemHandler;
|
|
@@ -12,10 +11,10 @@ export declare class CollectionEditResource extends CollectionResource {
|
|
|
12
11
|
private itemEntryFactory;
|
|
13
12
|
constructor(errorHandler: ErrorHandlerInterface, itemHandler: ItemHandler, itemResourceFactory: ItemResourceFactory, changesProcessorFactory: ChangesProcessorFactory, keyService: KeyService, promiseService: PromiseInterface, itemEntryFactory: ItemEntryFactory, collectionEntry: CollectionEntry, options: any);
|
|
14
13
|
save(): Promise<any>;
|
|
15
|
-
moveItems(idArray: any, destination: any, enableCallbacks: any):
|
|
14
|
+
moveItems(idArray: any, destination: any, enableCallbacks: any): ItemResource[];
|
|
16
15
|
removeItems(idArray: any, enableCallbacks: any): Promise<any>;
|
|
17
16
|
removeItem(itemId: any, enableCallbacks: any): Promise<any>;
|
|
18
17
|
addItems(valuesArray: any, enableCallbacks?: boolean): Promise<any>;
|
|
19
18
|
addItem(values: any, enableCallbacks: any): Promise<any>;
|
|
20
|
-
clear(enableCallbacks: any):
|
|
19
|
+
clear(enableCallbacks: any): ItemResource[] | null;
|
|
21
20
|
}
|
|
@@ -36,10 +36,13 @@ export declare class CollectionEntry {
|
|
|
36
36
|
forEach(callback: (itemEntry: ItemEntry) => void): void;
|
|
37
37
|
getItemById(itemId: any): ItemEntry | undefined;
|
|
38
38
|
getIdArray(accumulator?: never[]): ItemId[];
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
39
|
+
revertChanges(): void;
|
|
40
|
+
addItems(itemEntries: ItemEntry[], resultResource?: CollectionResource | null, updateInitial?: boolean, callOnAdd?: boolean, callOnActivate?: boolean): ItemResource[] | null;
|
|
41
|
+
private handleAddedItemCallbacks(entriesAddedToInitial, entriesAddedToModified, resultResource?, callOnAdd?, callOnActivate?);
|
|
42
|
+
removeItems(idArray: any, resultResource: any, updateInitial: any, enableCallback?: any): ItemResource[] | null;
|
|
43
|
+
clear(resultResource: any, updateInitial: any, enableCallback?: any): ItemResource[] | null;
|
|
44
|
+
handleRemovedItems(filterFunction: (itemEntry: ItemEntry) => boolean, resultResource?: CollectionResource | null, updateInitial?: boolean, enableCallback?: boolean): ItemResource[] | null;
|
|
45
|
+
private handleRemovedItemCallbacks(removedFromInitial, removedFromModified, resultResource?, callOnRemove?);
|
|
43
46
|
expand(newColumns: any): Promise<any>;
|
|
44
47
|
extendQuery(callback: any): any;
|
|
45
48
|
extend(queryCallback: any, collectionResource: any, callOnAdd?: any, updateInitial?: any): Promise<any>;
|
|
@@ -54,7 +57,6 @@ export declare class CollectionEntry {
|
|
|
54
57
|
hasUpdatedItems(): boolean;
|
|
55
58
|
getCurrentResource(): CollectionResource;
|
|
56
59
|
clearResources(isSubtabChange?: boolean): void;
|
|
57
|
-
revertChanges(): void;
|
|
58
60
|
onItemsCreated(conversionMap: any): void;
|
|
59
61
|
getUpdatedItemColumns(conversionMap: any): {
|
|
60
62
|
[columnId: string]: ColumnInfo;
|
|
@@ -12,7 +12,7 @@ export declare class EditResource extends ItemResource {
|
|
|
12
12
|
transactions: number;
|
|
13
13
|
constructor(apiFormatter: ApiFormatter, lockService: LockService, changesProcessor: ChangesProcessor, errorHandler: ErrorHandlerInterface, promiseService: PromiseInterface, entry: ItemEntry, options: any);
|
|
14
14
|
start(): void;
|
|
15
|
-
rollback(): void;
|
|
15
|
+
rollback(callOnDeactivate?: boolean): void;
|
|
16
16
|
commit(initial: any): void;
|
|
17
17
|
getLocalCopy(): FieldMap | null;
|
|
18
18
|
copyFields(destination?: any): any;
|