@rentman/rm-core 1.2.0 → 1.2.1

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,264 +1,270 @@
1
- #Changelog
2
- Contains new features, breaking changes and their reasoning
3
-
4
- ## v1.2.0
5
- - **Breaking:** When calling `addItems` or `addItem` on the `CollectionEditResource` class derived values are now
6
- resolved automatically. Instead of a compound object like `{fields: {key: 'value'}, derived: {}}` an object like
7
- `{key: 'value'}` should now be used as argument when calling these functions.
8
- - **Breaking:** Added `localCache` parameter to `CollectionResource` constructor.
9
-
10
- ## v1.1.20
11
- - Fixed minor issue where collection wouldn't be deferred properly before expanding.
12
- - `onChange` is now called automatically when when calling `commit` on an edit resource.
13
-
14
- ## v1.1.19
15
- - **Breaking:** Renamed `getCurrentChanges` to `getModuleChanges` in the `ItemAdministrator` class. Added optional
16
- `localCache` parameter.
17
-
18
- ### Local cache callback refactoring
19
- - Removed `onSaveWithoutClosing` event.
20
- - Added `condition` parameter to `onBeforeSave` and `onSaveSuccess` (possible values are `always`, `onClose` or
21
- `skipOnClose`, defaults to `always`). Callbacks registered with `condition: always` will get executed before other
22
- callbacks.
23
- - Pass the local cache itself to all registered callback functions. Pass the item ID conversion map as second argument
24
- to `onSaveSuccess` callback functions.
25
-
26
- ## v1.1.18
27
- - Calling `expand` on a `CollectionEntry` manually no longer defers the collection entry.
28
- - The `batchFetch` and `batchExpand` functions in the `CollectionHandler` class now properly defer and resolve the
29
- collection entries.
30
-
31
- ## v1.1.17
32
- - Fixed issue where the `getLocalByQuery` function in the `ItemCache` class wouldn't return any items.
33
- - When batch resolving collection entries, `CollectionHandler` now looks for matching items using `getByQuery` instead
34
- of `getByParent`.
35
-
36
- ### Cache invalidation
37
- - Added `queueReload` function to `ItemEntry` class. This will reload the item when the item entry itself or a
38
- collection entry containing the item is requested.
39
- - The `queueReload` function in the `CollectionEntry` class no longer directly defers the item.
40
- - Added `invalidateCache` function to the `ItemAdministrator` class. This will call `queueReload` on all item entries
41
- and collection entries.
42
-
43
- ### Item entry refactoring
44
- - Renamed `process` to `setFields`.
45
- - Replaced `processLocal` with `setLocalFields`. This function no longer has a `modified` parameter.
46
- - `setModified` now also sets local default values.
47
- - Removed `setCreator`. This function was called twice in some instances.
48
- - **Breaking:** Added `derived` parameter to `updateFields`
49
-
50
- ##v1.16
51
- - Pass `hasChanges` as second argument to `onBeforeSave` callbacks in the `LocalCache` class. This fixes an issue with
52
- project financial values in the front-end. [RM4-9577]
53
- - Added `callOnActivate` parameter to `addItems` function in `CollectionEditResource` class. Use this to prevent items
54
- from being added to the local cache.
55
-
56
- ##v1.15
57
- - Fix `fetchItemTypesTranslations` function in `ColumnHandler` class.
58
- - Fix type definition of `PromiseInterface.all`.
59
-
60
- ##v1.14
61
- - The `ChangesCompiler` now always processes local collections. (Even if they don't have edit resources.) This fixes an
62
- issue with recurring appointments in the front-end.
63
-
64
- ##v1.13
65
- - Add option to exclude itemTypes during createLocalEntries.
66
-
67
- ##v1.12
68
- - **Breaking:** `ItemResource.isNew` returns true *only* if the resource was created using
69
- `ItemAdministrator.getNewResource` or `ItemAdministrator.getItemByDef`. This fixes an issue where items where removed
70
- from the local cache inadvertently.
71
- - The `start`, `commit` and `rollback` functions of `EditResource` now return the resource itself to facilitate chaining.
72
- - When calling `CollectionEntry.revertChanges`, callbacks like `onAdd` / `onRemove` and `onActivate` / `onDeactivate`
73
- are now respected. This fixes an issue where items where *not* removed from the local cache.
74
- - When removing *local* items from collections, they are removed from `initial` as well as `modified`. This fixes an
75
- issue where changes were being detected continuously.
76
- - Updated the order of requests in `changesProcessor`. The `update` request is now executed before the `delete` request,
77
- except when updating documents. This fixes several issues.
78
- - `CollectionCache` now uses a map instead of an array to store collections. This fixes an issue where the same
79
- collection was added multiple times.
80
- - Updated all models to use dependency objects. This increases ease of debugging.
81
-
82
- ##v.1.11
83
- - Fixed issue that occurs when saving when having an existing item refer to a newly created item.
84
- - **Breaking:** Removed `ItemResourceService.isNewResource`.
85
- - **Breaking:** Renamed `ItemResource.isNewResource` to `ItemResource.isNew`. Removed parameter.
86
- - `ItemResource.isNew` is equivalent to `ItemResource.isLocal`, while `EditResource.isNew` checks also checks for
87
- completed transactions.
88
-
89
- ##v.1.10
90
- - Fixed issue where changes on different subtabs were not detected.
91
-
92
- ##v1.1.9
93
- - Exposed `noop` function on `RmCore` class.
94
- > This is used in order to check whether a callback has a default value.
95
- - Added `copyRequestColumns` function to `ColumnUtil` class.
96
- - Made parameters of `ItemAdministrator.saveCurrentLocalCache` and `LocalCache.save` optional.
97
- - **Breaking:** Reordered parameters of `ChangesProcessor.execute` to be consistent with
98
- `ItemAdministrator.saveCurrentLocalCache`. The new order is `singleItems` - `collections` - `parameters` -
99
- `breakUpByParent` - `onAfterCreateCallback`.
100
-
101
- ##v1.1.8
102
- - Set default value for `params` to `{filter: false}` in `request` function in `ColumnHandler` class.
103
-
104
- ##v1.1.7
105
- - Fixed issue where cached item entries or collection entries wouldn't be added to the local cache.
106
-
107
- ##v1.1.6
108
- - Fixed issue with deferred item entries.
109
- - Re-enable changes watcher after save.
110
- - Added optional `id` parameter to `LocalCache` constructor.
111
-
112
- ##v1.1.5
113
- - Added `clearItem` function to `LocalCache` class.
114
-
115
- ##v.1.1.4
116
- - Fix issue where items where not added to the local cache automatically when they where added to a collection.
117
- > This depends on the `callOnActivate` parameter. I've added this mainly because extending collections should *not* add
118
- the items to the local cache.
119
- > In other instances this might be debatable because it doesn't do any real harm. *Not*
120
- doing it however can definitely be harmful.
121
-
122
- ##v.1.1.3
123
- - Fixed an issue where all collections in a local cache would be cleared.
124
- - **Breaking:** Renamed `getCacheManager` to `getCurrentLocalCache` and `setCacheManager` to `setCurrentLocalCache` in
125
- `LocalCacheManagerInterface`.
126
-
127
- ##v1.1.2
128
- - Fixed an issue concerning derived values.
129
-
130
- ## v1.1.1
131
- - Fixed an issue where changes wouldn't be detected.
132
- - **Breaking:** Removed the `_hasChanges` function in the `localCache` class. If you want to force changes detection,
133
- call `detectChanges` instead. Otherwise, rely on the `hasChanges` variable.
134
- - **Breaking:** Removed the `enableWatcher` and `disableWatcher` functions. Use `enableChangesWatcher` and
135
- `disableChangesWatcher` instead.
136
-
137
- ## v1.1.0
138
- ### Development
139
-
140
- #### Strict TypeScript compilation
141
- Added the following TypeScript compiler options:
142
- - noImplicitThis
143
- - noImplicitReturns
144
- - strictNullChecks
145
- - noUnusedLocals
146
- - noUnusedParameters
147
-
148
- I would advise enabling these for all TypeScript projects from now on.
149
-
150
- #### Ordered imports and dependencies
151
- Imports are now ordered alphabetically and grouped by folder. Added a TSLint option to enforce this.
152
- Please note that this also applies for imports from the folder the file is currently in.
153
- For example, in `models/ItemResource.ts`, `itemEntry` should be imported like so:
154
- `import { ItemEntry } from '../models';`
155
-
156
- Also, factory and class dependencies should be ordered alphabetically as well. This will make it easier to add and
157
- remove dependencies in the future.
158
-
159
- ### Breaking changes
160
-
161
- - Renamed `changesCompiler` to `changesCompilation`, `changesCompilerFactory` to `changesCompilationFactory`,
162
- `moduleChangesCompiler` to `moduleChangesCompilation` and `moduleChangesCompilerFactory` to
163
- `moduleChangesCompilationFactory`.
164
- - Removed the `allLinks` parameter from the `query` function definition in the `ApiRequestServiceInterface`. This is
165
- no longer supported in the back-end.
166
-
167
- #### Item and collection entries
168
- - Moved *all* functions that handle item entries from the `ItemEntryService` to the `ItemEntry` class.
169
- - Added the following functions to `ItemEntryService`:
170
- - `createLocalConversionMap`;
171
- - `expandLocalConversionMap`;
172
- - `expandConversionMap`;
173
- - `batchExpandConversionMap`;
174
- - `batchClone`.
175
- - Cloning of item entries now works slightly differently. The function will attempt to generate a new
176
- item ID, and update the conversion map accordingly, but will respect the item ID that is already there.
177
-
178
- #### Rework item caching
179
- Newly created item entries and collection entries are no longer added to the global *or* local cache by default.
180
- All entries are added to the global cache on save. Item entries are added to the local cache when resources are created
181
- using the item administrator or when resources are created when adding the items to a collection.
182
-
183
- > This will increase reliability by ensuring the global cache is no longer 'polluted' with local items. Also, this will
184
- > allow for the creation item and collection entries without caching them directly. This is required for the copying and
185
- > pasting of items.
186
-
187
- Other changes:
188
-
189
- - Moved `saveLocal` to `ItemAdministrator`;
190
- - `ItemAdministrator.fetchTitle` should now be called instead of `ItemHandler.fetchTitle`;
191
- - The `ItemAdministrator` collection matching functions (`addToCollections`, `removeFromCollections`) should now be
192
- called instead of those in the `CollectionHandler`. The `CollectionHandler` should only be used to reflect changes
193
- already on the backend. (Use `getCollectionMatcher`.)
194
-
195
-
196
- ##v1.0.33
197
- - Really fix types path
198
-
199
- ##v1.0.33
200
- - Fix types path
201
-
202
- ##v1.0.32
203
- - Update `tsconfig.json` to put definitions in the root folder
204
- > The app had an issue with AOT compilation because of this
205
-
206
- ##v1.0.31
207
- - Fix `columnHandler.fetchItemTypeTranslations`
208
- > It incorrectly looped over the response map, it should now work again
209
-
210
- ##v1.0.30
211
- - Remove `updateTabParams` from LocalCacheManagerInterface
212
- > The function wasn't used
213
-
214
- - Reworked class export
215
- > Imports are now done from @rentman/rm-core, old imports are broken. This is because the old export structure didn't always work
216
-
217
- ##v1.0.29
218
- - Fix inverted inArray check in CollectionEntry.removeItems
219
- > A delete message from the socket deleted all BUT the deleted items, this should now be fixed
220
-
221
- ##v1.0.28
222
- Bug fixes only
223
-
224
- ##v1.0.27
225
- - `ItemEntry.initial` is now undefined by default
226
- > In the SocketMessageHandler we use this check to see if an ItemEntry is a stub
227
-
228
- ##v1.0.26
229
- Bundle both minified and unminified code, include sourcemaps from dev build
230
-
231
- ##v1.0.24, v1.0.25
232
- ! Use version `v1.0.26` !
233
-
234
- - The core now expects a `promiseInterface` that should implement the provided `promiseInterface`
235
- > We need to be able to hook into the promises in order to call a digest cycle to update the ui in the frontend
236
-
237
- - Rename `ItemEntry.entryId` to `ItemEntry.id
238
- > It used to be called `id`, but it was changed in the seperation of the core.
239
- > You can use the `id` to uniquely identify an entry, since itemId can be updated (local to saved id)
240
-
241
- - Rename ItemResource `startTransaction` to `start`
242
- > Other functions are called `commit` and `rollback` so having 'transaction' only for start doesn't make much sense
243
-
244
- - `SocketMessageHandler.onMessageReceived` now returns a promise
245
- > You can now use the updated items or hook into the result to update the ui for example
246
-
247
-
248
- ##v1.0.23
249
- - Rename ResourceCache to LocalCache
250
- > LocalCache only caches local items (name better reflects functionality)
251
-
252
- - Remove getter/setter for hasChanges
253
- > hasChanges is called in a digest loop in the frontend, so for performance reasons we don't want to recompute the value every time
254
-
255
- - Remove `_getCollection` from ItemAdministrator
256
- > `_getCollection` is now named `getCollection` and the old `getCollection` is removed. The query is part of the
257
- > options and should not be given as a separate argument. This was included to support the frontend
258
-
259
- - Remove `saveCurrentTab` from ItemAdministrator
260
- > `saveCurrentTab` makes no sense because the core has no concept of tabs, you should use `saveCurrentLocalCache` instead
261
-
262
- - Remove `getTabEntry` and `resetTabEntry` from ItemAdministrator
263
- > `getTabEntry` and `resetTabEntry` make no sense because the core has no concept of tabs, you should use `getLocalCache` and `resetLocalCache` instead
264
-
1
+ #Changelog
2
+ Contains new features, breaking changes and their reasoning
3
+
4
+ ## v1.2.1
5
+ - **Breaking:** Replaced the `initial` parameter with the `callOnChange` parameter (`true` by default) in the `commit`
6
+ function of the `EditResource` class.
7
+ - Fixed issue in `setLocalFields` (`ItemEntry`) where some values were wrongly assumed to be present in `initialValues`.
8
+ - Optimization: Disabled automatic resolution of derived values in `addItems` (`CollectionEditResource`) when `modInstant` is set to true.
9
+
10
+ ## v1.2.0
11
+ - **Breaking:** When calling `addItems` or `addItem` on the `CollectionEditResource` class derived values are now
12
+ resolved automatically. Instead of a compound object like `{fields: {key: 'value'}, derived: {}}` an object like
13
+ `{key: 'value'}` should now be used as argument when calling these functions.
14
+ - **Breaking:** Added `localCache` parameter to `CollectionResource` constructor.
15
+
16
+ ## v1.1.20
17
+ - Fixed minor issue where collection wouldn't be deferred properly before expanding.
18
+ - `onChange` is now called automatically when when calling `commit` on an edit resource.
19
+
20
+ ## v1.1.19
21
+ - **Breaking:** Renamed `getCurrentChanges` to `getModuleChanges` in the `ItemAdministrator` class. Added optional
22
+ `localCache` parameter.
23
+
24
+ ### Local cache callback refactoring
25
+ - Removed `onSaveWithoutClosing` event.
26
+ - Added `condition` parameter to `onBeforeSave` and `onSaveSuccess` (possible values are `always`, `onClose` or
27
+ `skipOnClose`, defaults to `always`). Callbacks registered with `condition: always` will get executed before other
28
+ callbacks.
29
+ - Pass the local cache itself to all registered callback functions. Pass the item ID conversion map as second argument
30
+ to `onSaveSuccess` callback functions.
31
+
32
+ ## v1.1.18
33
+ - Calling `expand` on a `CollectionEntry` manually no longer defers the collection entry.
34
+ - The `batchFetch` and `batchExpand` functions in the `CollectionHandler` class now properly defer and resolve the
35
+ collection entries.
36
+
37
+ ## v1.1.17
38
+ - Fixed issue where the `getLocalByQuery` function in the `ItemCache` class wouldn't return any items.
39
+ - When batch resolving collection entries, `CollectionHandler` now looks for matching items using `getByQuery` instead
40
+ of `getByParent`.
41
+
42
+ ### Cache invalidation
43
+ - Added `queueReload` function to `ItemEntry` class. This will reload the item when the item entry itself or a
44
+ collection entry containing the item is requested.
45
+ - The `queueReload` function in the `CollectionEntry` class no longer directly defers the item.
46
+ - Added `invalidateCache` function to the `ItemAdministrator` class. This will call `queueReload` on all item entries
47
+ and collection entries.
48
+
49
+ ### Item entry refactoring
50
+ - Renamed `process` to `setFields`.
51
+ - Replaced `processLocal` with `setLocalFields`. This function no longer has a `modified` parameter.
52
+ - `setModified` now also sets local default values.
53
+ - Removed `setCreator`. This function was called twice in some instances.
54
+ - **Breaking:** Added `derived` parameter to `updateFields`
55
+
56
+ ##v1.16
57
+ - Pass `hasChanges` as second argument to `onBeforeSave` callbacks in the `LocalCache` class. This fixes an issue with
58
+ project financial values in the front-end. [RM4-9577]
59
+ - Added `callOnActivate` parameter to `addItems` function in `CollectionEditResource` class. Use this to prevent items
60
+ from being added to the local cache.
61
+
62
+ ##v1.15
63
+ - Fix `fetchItemTypesTranslations` function in `ColumnHandler` class.
64
+ - Fix type definition of `PromiseInterface.all`.
65
+
66
+ ##v1.14
67
+ - The `ChangesCompiler` now always processes local collections. (Even if they don't have edit resources.) This fixes an
68
+ issue with recurring appointments in the front-end.
69
+
70
+ ##v1.13
71
+ - Add option to exclude itemTypes during createLocalEntries.
72
+
73
+ ##v1.12
74
+ - **Breaking:** `ItemResource.isNew` returns true *only* if the resource was created using
75
+ `ItemAdministrator.getNewResource` or `ItemAdministrator.getItemByDef`. This fixes an issue where items where removed
76
+ from the local cache inadvertently.
77
+ - The `start`, `commit` and `rollback` functions of `EditResource` now return the resource itself to facilitate chaining.
78
+ - When calling `CollectionEntry.revertChanges`, callbacks like `onAdd` / `onRemove` and `onActivate` / `onDeactivate`
79
+ are now respected. This fixes an issue where items where *not* removed from the local cache.
80
+ - When removing *local* items from collections, they are removed from `initial` as well as `modified`. This fixes an
81
+ issue where changes were being detected continuously.
82
+ - Updated the order of requests in `changesProcessor`. The `update` request is now executed before the `delete` request,
83
+ except when updating documents. This fixes several issues.
84
+ - `CollectionCache` now uses a map instead of an array to store collections. This fixes an issue where the same
85
+ collection was added multiple times.
86
+ - Updated all models to use dependency objects. This increases ease of debugging.
87
+
88
+ ##v.1.11
89
+ - Fixed issue that occurs when saving when having an existing item refer to a newly created item.
90
+ - **Breaking:** Removed `ItemResourceService.isNewResource`.
91
+ - **Breaking:** Renamed `ItemResource.isNewResource` to `ItemResource.isNew`. Removed parameter.
92
+ - `ItemResource.isNew` is equivalent to `ItemResource.isLocal`, while `EditResource.isNew` checks also checks for
93
+ completed transactions.
94
+
95
+ ##v.1.10
96
+ - Fixed issue where changes on different subtabs were not detected.
97
+
98
+ ##v1.1.9
99
+ - Exposed `noop` function on `RmCore` class.
100
+ > This is used in order to check whether a callback has a default value.
101
+ - Added `copyRequestColumns` function to `ColumnUtil` class.
102
+ - Made parameters of `ItemAdministrator.saveCurrentLocalCache` and `LocalCache.save` optional.
103
+ - **Breaking:** Reordered parameters of `ChangesProcessor.execute` to be consistent with
104
+ `ItemAdministrator.saveCurrentLocalCache`. The new order is `singleItems` - `collections` - `parameters` -
105
+ `breakUpByParent` - `onAfterCreateCallback`.
106
+
107
+ ##v1.1.8
108
+ - Set default value for `params` to `{filter: false}` in `request` function in `ColumnHandler` class.
109
+
110
+ ##v1.1.7
111
+ - Fixed issue where cached item entries or collection entries wouldn't be added to the local cache.
112
+
113
+ ##v1.1.6
114
+ - Fixed issue with deferred item entries.
115
+ - Re-enable changes watcher after save.
116
+ - Added optional `id` parameter to `LocalCache` constructor.
117
+
118
+ ##v1.1.5
119
+ - Added `clearItem` function to `LocalCache` class.
120
+
121
+ ##v.1.1.4
122
+ - Fix issue where items where not added to the local cache automatically when they where added to a collection.
123
+ > This depends on the `callOnActivate` parameter. I've added this mainly because extending collections should *not* add
124
+ the items to the local cache.
125
+ > In other instances this might be debatable because it doesn't do any real harm. *Not*
126
+ doing it however can definitely be harmful.
127
+
128
+ ##v.1.1.3
129
+ - Fixed an issue where all collections in a local cache would be cleared.
130
+ - **Breaking:** Renamed `getCacheManager` to `getCurrentLocalCache` and `setCacheManager` to `setCurrentLocalCache` in
131
+ `LocalCacheManagerInterface`.
132
+
133
+ ##v1.1.2
134
+ - Fixed an issue concerning derived values.
135
+
136
+ ## v1.1.1
137
+ - Fixed an issue where changes wouldn't be detected.
138
+ - **Breaking:** Removed the `_hasChanges` function in the `localCache` class. If you want to force changes detection,
139
+ call `detectChanges` instead. Otherwise, rely on the `hasChanges` variable.
140
+ - **Breaking:** Removed the `enableWatcher` and `disableWatcher` functions. Use `enableChangesWatcher` and
141
+ `disableChangesWatcher` instead.
142
+
143
+ ## v1.1.0
144
+ ### Development
145
+
146
+ #### Strict TypeScript compilation
147
+ Added the following TypeScript compiler options:
148
+ - noImplicitThis
149
+ - noImplicitReturns
150
+ - strictNullChecks
151
+ - noUnusedLocals
152
+ - noUnusedParameters
153
+
154
+ I would advise enabling these for all TypeScript projects from now on.
155
+
156
+ #### Ordered imports and dependencies
157
+ Imports are now ordered alphabetically and grouped by folder. Added a TSLint option to enforce this.
158
+ Please note that this also applies for imports from the folder the file is currently in.
159
+ For example, in `models/ItemResource.ts`, `itemEntry` should be imported like so:
160
+ `import { ItemEntry } from '../models';`
161
+
162
+ Also, factory and class dependencies should be ordered alphabetically as well. This will make it easier to add and
163
+ remove dependencies in the future.
164
+
165
+ ### Breaking changes
166
+
167
+ - Renamed `changesCompiler` to `changesCompilation`, `changesCompilerFactory` to `changesCompilationFactory`,
168
+ `moduleChangesCompiler` to `moduleChangesCompilation` and `moduleChangesCompilerFactory` to
169
+ `moduleChangesCompilationFactory`.
170
+ - Removed the `allLinks` parameter from the `query` function definition in the `ApiRequestServiceInterface`. This is
171
+ no longer supported in the back-end.
172
+
173
+ #### Item and collection entries
174
+ - Moved *all* functions that handle item entries from the `ItemEntryService` to the `ItemEntry` class.
175
+ - Added the following functions to `ItemEntryService`:
176
+ - `createLocalConversionMap`;
177
+ - `expandLocalConversionMap`;
178
+ - `expandConversionMap`;
179
+ - `batchExpandConversionMap`;
180
+ - `batchClone`.
181
+ - Cloning of item entries now works slightly differently. The function will attempt to generate a new
182
+ item ID, and update the conversion map accordingly, but will respect the item ID that is already there.
183
+
184
+ #### Rework item caching
185
+ Newly created item entries and collection entries are no longer added to the global *or* local cache by default.
186
+ All entries are added to the global cache on save. Item entries are added to the local cache when resources are created
187
+ using the item administrator or when resources are created when adding the items to a collection.
188
+
189
+ > This will increase reliability by ensuring the global cache is no longer 'polluted' with local items. Also, this will
190
+ > allow for the creation item and collection entries without caching them directly. This is required for the copying and
191
+ > pasting of items.
192
+
193
+ Other changes:
194
+
195
+ - Moved `saveLocal` to `ItemAdministrator`;
196
+ - `ItemAdministrator.fetchTitle` should now be called instead of `ItemHandler.fetchTitle`;
197
+ - The `ItemAdministrator` collection matching functions (`addToCollections`, `removeFromCollections`) should now be
198
+ called instead of those in the `CollectionHandler`. The `CollectionHandler` should only be used to reflect changes
199
+ already on the backend. (Use `getCollectionMatcher`.)
200
+
201
+
202
+ ##v1.0.33
203
+ - Really fix types path
204
+
205
+ ##v1.0.33
206
+ - Fix types path
207
+
208
+ ##v1.0.32
209
+ - Update `tsconfig.json` to put definitions in the root folder
210
+ > The app had an issue with AOT compilation because of this
211
+
212
+ ##v1.0.31
213
+ - Fix `columnHandler.fetchItemTypeTranslations`
214
+ > It incorrectly looped over the response map, it should now work again
215
+
216
+ ##v1.0.30
217
+ - Remove `updateTabParams` from LocalCacheManagerInterface
218
+ > The function wasn't used
219
+
220
+ - Reworked class export
221
+ > Imports are now done from @rentman/rm-core, old imports are broken. This is because the old export structure didn't always work
222
+
223
+ ##v1.0.29
224
+ - Fix inverted inArray check in CollectionEntry.removeItems
225
+ > A delete message from the socket deleted all BUT the deleted items, this should now be fixed
226
+
227
+ ##v1.0.28
228
+ Bug fixes only
229
+
230
+ ##v1.0.27
231
+ - `ItemEntry.initial` is now undefined by default
232
+ > In the SocketMessageHandler we use this check to see if an ItemEntry is a stub
233
+
234
+ ##v1.0.26
235
+ Bundle both minified and unminified code, include sourcemaps from dev build
236
+
237
+ ##v1.0.24, v1.0.25
238
+ ! Use version `v1.0.26` !
239
+
240
+ - The core now expects a `promiseInterface` that should implement the provided `promiseInterface`
241
+ > We need to be able to hook into the promises in order to call a digest cycle to update the ui in the frontend
242
+
243
+ - Rename `ItemEntry.entryId` to `ItemEntry.id
244
+ > It used to be called `id`, but it was changed in the seperation of the core.
245
+ > You can use the `id` to uniquely identify an entry, since itemId can be updated (local to saved id)
246
+
247
+ - Rename ItemResource `startTransaction` to `start`
248
+ > Other functions are called `commit` and `rollback` so having 'transaction' only for start doesn't make much sense
249
+
250
+ - `SocketMessageHandler.onMessageReceived` now returns a promise
251
+ > You can now use the updated items or hook into the result to update the ui for example
252
+
253
+
254
+ ##v1.0.23
255
+ - Rename ResourceCache to LocalCache
256
+ > LocalCache only caches local items (name better reflects functionality)
257
+
258
+ - Remove getter/setter for hasChanges
259
+ > hasChanges is called in a digest loop in the frontend, so for performance reasons we don't want to recompute the value every time
260
+
261
+ - Remove `_getCollection` from ItemAdministrator
262
+ > `_getCollection` is now named `getCollection` and the old `getCollection` is removed. The query is part of the
263
+ > options and should not be given as a separate argument. This was included to support the frontend
264
+
265
+ - Remove `saveCurrentTab` from ItemAdministrator
266
+ > `saveCurrentTab` makes no sense because the core has no concept of tabs, you should use `saveCurrentLocalCache` instead
267
+
268
+ - Remove `getTabEntry` and `resetTabEntry` from ItemAdministrator
269
+ > `getTabEntry` and `resetTabEntry` make no sense because the core has no concept of tabs, you should use `getLocalCache` and `resetLocalCache` instead
270
+
@@ -9,7 +9,7 @@ export declare class EditResource extends ItemResource {
9
9
  isNew(): boolean;
10
10
  start(): this;
11
11
  rollback(): this;
12
- commit(initial?: boolean): this;
12
+ commit(callOnChange?: boolean): this;
13
13
  getLocalCopy(): FieldMap | null;
14
14
  copyFields(destination?: FieldMap): FieldMap;
15
15
  setFields(values: FieldMap, callOnChange?: boolean): this;
@@ -24,7 +24,7 @@ export declare class ItemEntry {
24
24
  isDeferred(): boolean;
25
25
  reject(error?: any): this;
26
26
  setFields(initial: FieldMap, derived: FieldMap): this;
27
- setLocalFields(initialValues: FieldMap, conversionMap: ItemIdConversionMap): this;
27
+ setLocalFields(initialValues: FieldMap, conversionMap: ItemIdConversionMap, columns?: ColumnSet): this;
28
28
  clone(conversionMap?: ItemIdConversionMap): ItemEntry;
29
29
  resetDerived(columnIds: any): this;
30
30
  clearResources(): this;
@@ -37,7 +37,7 @@ export declare class ItemEntry {
37
37
  */
38
38
  updateFields(fields: FieldMap, derived?: FieldMap | null, overwrite?: boolean): this;
39
39
  updateItemValue(fields: FieldMap, apiColumn: ResponseColumn, conversionMap: ItemIdConversionMap): this;
40
- updateItemFields(conversionMap: ItemIdConversionMap): this;
40
+ updateItemFields(conversionMap: ItemIdConversionMap, columns?: ColumnSet): this;
41
41
  formatRequest(): FieldMap;
42
42
  setDisplayName(): this;
43
43
  getDisplayName(): string;