@rentman/rm-core 1.1.4 → 1.1.5

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 CHANGED
@@ -1,6 +1,9 @@
1
1
  #Changelog
2
2
  Contains new features, breaking changes and their reasoning
3
3
 
4
+ ##v1.1.5
5
+ - Added `clearItem` function to `LocalCache` class.
6
+
4
7
  ##v.1.1.4
5
8
  - Fix issue where items where not added to the local cache automatically when they where added to a collection.
6
9
  > This depends on the `callOnActivate` parameter. I've added this mainly because extending collections should *not* add
@@ -27,7 +27,7 @@ export declare class ApiFormatter {
27
27
  formatRequestDate(value: any): any;
28
28
  formatRequestDuration(value: any): any;
29
29
  formatRequestColor(value: any): any;
30
- getDefaultValue(columnType: any): false | 0 | "" | moment.Moment | moment.Duration | "0" | "#000000" | null;
30
+ getDefaultValue(columnType: any): false | moment.Moment | 0 | moment.Duration | "" | "0" | "#000000" | null;
31
31
  isDefaultValue(columnType: any, value: any): any;
32
32
  clone(columnType: any, value: any): any;
33
33
  getCloneFunction(columnType: any): (date: any) => any;
@@ -26,6 +26,12 @@ export declare class LocalCache {
26
26
  hasChanges: boolean;
27
27
  rootItem: ItemEntry | undefined;
28
28
  constructor(errorHandler: ErrorHandlerInterface, lockService: LockService, itemResourceFactory: ItemResourceFactory, collectionCacheFactory: CollectionCacheFactory, changesProcessorFactory: ChangesProcessorFactory, itemCacheFactory: ItemCacheFactory, collectionResourceFactory: CollectionResourceFactory, itemResourceService: ItemResourceService, promiseService: PromiseInterface);
29
+ createItemResource(itemEntry: ItemEntry, options: any, isRoot?: boolean): ItemResource;
30
+ createItemResources(itemEntries: ItemEntry[], options: any): ItemResource[];
31
+ createCollectionResource(collectionEntry: CollectionEntry, resourceOptions: any): CollectionResource;
32
+ createCollectionResources(collectionEntries: CollectionEntryParentIdMap, resourceOptions: any): {};
33
+ clearItem(itemResource: ItemResource): void;
34
+ clearItemEntry(itemEntry: ItemEntry): void;
29
35
  clearCollection(collectionResource: CollectionResource): void;
30
36
  clearResources(isSubTabChange?: boolean): void;
31
37
  updateSingleItems(conversionMap: any): void;
@@ -39,10 +45,6 @@ export declare class LocalCache {
39
45
  enableChangesWatcher(): void;
40
46
  disableChangesWatcher(): void;
41
47
  registerCallback(event: string, key: string, callback: any): () => boolean;
42
- createItemResource(itemEntry: ItemEntry, options: any, isRoot?: boolean): ItemResource;
43
- createItemResources(itemEntries: ItemEntry[], options: any): ItemResource[];
44
- createCollectionResource(collectionEntry: CollectionEntry, resourceOptions: any): CollectionResource;
45
- createCollectionResources(collectionEntries: CollectionEntryParentIdMap, resourceOptions: any): {};
46
48
  onDeactivateItem(itemEntry: any): void;
47
49
  onActivateItem(itemEntry: any): void;
48
50
  }