@rentman/rm-core 1.0.25 → 1.0.27
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 +11 -0
- package/dist/definitions/src/classes/ApiFormatter.d.ts +1 -1
- package/dist/definitions/src/factories/ItemEntryFactory.d.ts +1 -1
- package/dist/definitions/src/models/ItemEntry.d.ts +2 -2
- package/dist/rm-core.js +2 -6
- package/dist/rm-core.min.js +1 -1
- package/package.json +2 -2
package/changelog.md
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
#Changelog
|
|
2
2
|
Contains new features, breaking changes and their reasoning
|
|
3
3
|
|
|
4
|
+
##v1.0.27
|
|
5
|
+
- `ItemEntry.initial` is now undefined by default
|
|
6
|
+
> In the SocketMessageHandler we use this check to see if an ItemEntry is a stub
|
|
7
|
+
|
|
8
|
+
##v1.0.26
|
|
9
|
+
Bundle both minified and unminified code, include sourcemaps from dev build
|
|
10
|
+
|
|
11
|
+
##v1.0.24, v1.0.25
|
|
12
|
+
! Use version `v1.0.26` !
|
|
13
|
+
|
|
4
14
|
- The core now expects a `promiseInterface` that should implement the provided `promiseInterface`
|
|
5
15
|
> 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
16
|
|
|
@@ -14,6 +24,7 @@ Contains new features, breaking changes and their reasoning
|
|
|
14
24
|
- `SocketMessageHandler.onMessageReceived` now returns a promise
|
|
15
25
|
> You can now use the updated items or hook into the result to update the ui for example
|
|
16
26
|
|
|
27
|
+
|
|
17
28
|
##v1.0.23
|
|
18
29
|
- Rename ResourceCache to LocalCache
|
|
19
30
|
> 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 |
|
|
30
|
+
getDefaultValue(columnType: any): false | "" | 0 | moment.Moment | 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;
|
|
@@ -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?:
|
|
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?:
|
|
17
|
+
constructor(itemType: string, itemId: number, columns?: any, initial?: any, derived?: {}, resources?: ItemResource[]);
|
|
18
18
|
}
|