@rentman/rm-core 1.1.10 → 1.1.11
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 +7 -0
- package/dist/dist/classes/ApiFormatter.d.ts +1 -1
- package/dist/dist/classes/ItemResourceService.d.ts +0 -2
- package/dist/dist/models/EditResource.d.ts +2 -1
- package/dist/dist/models/ItemResource.d.ts +1 -1
- package/dist/rm-core.js +16 -12
- package/dist/rm-core.min.js +1 -1
- package/package.json +35 -35
package/changelog.md
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
#Changelog
|
|
2
2
|
Contains new features, breaking changes and their reasoning
|
|
3
3
|
|
|
4
|
+
##v.1.11
|
|
5
|
+
- Fixed issue that occurs when saving when having an existing item refer to a newly created item.
|
|
6
|
+
- **Breaking:** Removed `ItemResourceService.isNewResource`.
|
|
7
|
+
- **Breaking:** Renamed `ItemResource.isNewResource` to `ItemResource.isNew`. Removed parameter.
|
|
8
|
+
- `ItemResource.isNew` is equivalent to `ItemResource.isLocal`, while `EditResource.isNew` checks also checks for
|
|
9
|
+
completed transactions.
|
|
10
|
+
|
|
4
11
|
##v.1.10
|
|
5
12
|
- Fixed issue where changes on different subtabs were not detected.
|
|
6
13
|
|
|
@@ -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 |
|
|
30
|
+
getDefaultValue(columnType: any): false | "" | 0 | moment.Moment | 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;
|
|
@@ -9,8 +9,9 @@ export declare class EditResource extends ItemResource {
|
|
|
9
9
|
private errorHandler;
|
|
10
10
|
private promiseService;
|
|
11
11
|
localCopies: FieldMap[];
|
|
12
|
-
transactions: number;
|
|
12
|
+
transactions: number | undefined;
|
|
13
13
|
constructor(apiFormatter: ApiFormatter, lockService: LockService, changesProcessor: ChangesProcessor, errorHandler: ErrorHandlerInterface, promiseService: PromiseInterface, entry: ItemEntry, options: any);
|
|
14
|
+
isNew(): boolean;
|
|
14
15
|
start(): void;
|
|
15
16
|
rollback(): void;
|
|
16
17
|
commit(initial?: boolean): void;
|