@rentman/rm-core 1.0.26 → 1.0.28

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,19 @@
1
1
  #Changelog
2
2
  Contains new features, breaking changes and their reasoning
3
3
 
4
+ ##v1.0.28
5
+ Bug fixes only
6
+
7
+ ##v1.0.27
8
+ - `ItemEntry.initial` is now undefined by default
9
+ > In the SocketMessageHandler we use this check to see if an ItemEntry is a stub
10
+
11
+ ##v1.0.26
12
+ Bundle both minified and unminified code, include sourcemaps from dev build
13
+
14
+ ##v1.0.24, v1.0.25
15
+ ! Use version `v1.0.26` !
16
+
4
17
  - The core now expects a `promiseInterface` that should implement the provided `promiseInterface`
5
18
  > We need to be able to hook into the promises in order to call a digest cycle to update the ui in the frontend
6
19
 
@@ -14,6 +27,7 @@ Contains new features, breaking changes and their reasoning
14
27
  - `SocketMessageHandler.onMessageReceived` now returns a promise
15
28
  > You can now use the updated items or hook into the result to update the ui for example
16
29
 
30
+
17
31
  ##v1.0.23
18
32
  - Rename ResourceCache to LocalCache
19
33
  > LocalCache only caches local items (name better reflects functionality)
@@ -27,7 +27,7 @@ export default 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 | moment.Moment | 0 | moment.Duration | "0" | "" | "#000000";
30
+ getDefaultValue(columnType: any): false | moment.Moment | 0 | moment.Duration | "" | "0" | "#000000";
31
31
  isDefaultValue(columnType: any, value: any): any;
32
32
  clone(columnType: any, value: any): any;
33
33
  getCloneFunction(columnType: any): (date: any) => any;
@@ -60,7 +60,7 @@ export default class LocalCache {
60
60
  collectionHasChanges(collectionEntry: CollectionEntry): boolean;
61
61
  isLockable(): boolean;
62
62
  save(closeTab: boolean, parameters: any, breakUpByParent: any, onAfterCreateCallback: any): any;
63
- executeCallbacks(event: any, callbackParameter: any): Promise<any>;
63
+ executeCallbacks(event: any, ...args: any[]): Promise<any>;
64
64
  enableChangesWatcher(): void;
65
65
  /**
66
66
  * @deprecated
@@ -2,5 +2,5 @@ import ItemEntry from "../models/ItemEntry";
2
2
  import ItemResource from "../models/ItemResource";
3
3
  export default class ItemEntryFactory {
4
4
  constructor();
5
- construct(itemType: string, itemId: number, columns?: any, initial?: {}, derived?: {}, resources?: ItemResource[]): ItemEntry;
5
+ construct(itemType: string, itemId: number, columns?: any, initial?: object, derived?: object, resources?: ItemResource[]): ItemEntry;
6
6
  }
@@ -3,7 +3,7 @@ export default class ItemEntry {
3
3
  itemType: string;
4
4
  itemId: number;
5
5
  columns: any;
6
- initial: {};
6
+ initial: any;
7
7
  derived: {};
8
8
  resources: ItemResource[];
9
9
  id: number;
@@ -14,5 +14,5 @@ export default class ItemEntry {
14
14
  };
15
15
  deferRequest: boolean;
16
16
  deferred: any;
17
- constructor(itemType: string, itemId: number, columns?: any, initial?: {}, derived?: {}, resources?: ItemResource[]);
17
+ constructor(itemType: string, itemId: number, columns?: any, initial?: any, derived?: {}, resources?: ItemResource[]);
18
18
  }