@singularsystems/neo-core 0.10.47 → 0.10.50

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.
Files changed (312) hide show
  1. package/dist/ApiClient/ApiClientBase.js +0 -1
  2. package/dist/ApiClient/ReadApiClient.d.ts +1 -1
  3. package/dist/ApiClient/ReadApiClient.js +0 -1
  4. package/dist/ApiClient/UpdateableApiClient.js +0 -1
  5. package/dist/AppServices/AppService.js +0 -1
  6. package/dist/AppServices/Config/ConfigModel.js +0 -1
  7. package/dist/AppServices/Config/ConfigService.js +0 -1
  8. package/dist/AppServices/Module.js +0 -1
  9. package/dist/AppServices/NeoContainer.js +0 -1
  10. package/dist/AppServices/NeoModule.js +0 -1
  11. package/dist/AppServices/NeoTypes.d.ts +4 -0
  12. package/dist/AppServices/NeoTypes.js +3 -1
  13. package/dist/AppServices/ServiceIdentifier.js +0 -1
  14. package/dist/AppServices/index.js +0 -1
  15. package/dist/Components/AnimationHelper.js +0 -1
  16. package/dist/Components/BootstrapHelpers.js +0 -1
  17. package/dist/Components/BootstrapTypes.js +0 -1
  18. package/dist/Components/ButtonOptions.d.ts +5 -0
  19. package/dist/Components/ButtonOptions.js +0 -1
  20. package/dist/Components/ContextMenu/ContextMenu.js +0 -1
  21. package/dist/Components/ContextMenu/MenuUtils.js +0 -1
  22. package/dist/Components/DatePicker/DatePicker.js +0 -1
  23. package/dist/Components/DatePicker/DatePickerOptions.js +0 -1
  24. package/dist/Components/ErrorHandler.d.ts +3 -0
  25. package/dist/Components/ErrorHandler.js +0 -1
  26. package/dist/Components/FileManager/BoundFileManager.js +0 -1
  27. package/dist/Components/FileManager/FileManager.d.ts +6 -3
  28. package/dist/Components/FileManager/FileManager.js +28 -19
  29. package/dist/Components/FileManager/FileUploadBatch.js +0 -1
  30. package/dist/Components/FileManager/IFileManagerOptions.js +0 -1
  31. package/dist/Components/FormOptions.js +0 -1
  32. package/dist/Components/ICollapsableOptions.js +0 -1
  33. package/dist/Components/Modal/ModalHelper.js +0 -1
  34. package/dist/Components/Modal/ModalOptions.d.ts +2 -0
  35. package/dist/Components/Modal/ModalOptions.js +0 -1
  36. package/dist/Components/Modal/ModalStore.js +0 -1
  37. package/dist/Components/Modal/ModalUtils.js +0 -1
  38. package/dist/Components/Notifications/INotificationHelper.js +0 -1
  39. package/dist/Components/Notifications/Notification.js +0 -1
  40. package/dist/Components/Notifications/NotificationHelper.js +0 -1
  41. package/dist/Components/Notifications/NotificationStore.js +0 -1
  42. package/dist/Components/PositionHelper.js +0 -1
  43. package/dist/Components/TaskRunner/Decorators.d.ts +6 -0
  44. package/dist/Components/TaskRunner/Decorators.js +24 -0
  45. package/dist/Components/TaskRunner/ProgressState.js +0 -1
  46. package/dist/Components/TaskRunner/TaskRunner.d.ts +13 -4
  47. package/dist/Components/TaskRunner/TaskRunner.js +8 -2
  48. package/dist/Components/TooltipOptions.js +0 -1
  49. package/dist/Components/index.js +0 -1
  50. package/dist/ConnectionManager.js +0 -1
  51. package/dist/Data/ApiDataSource.js +0 -1
  52. package/dist/Data/AsyncDataSource.js +0 -1
  53. package/dist/Data/CacheService.js +0 -1
  54. package/dist/Data/DataCacheEntry.js +0 -1
  55. package/dist/Data/DataView.js +0 -1
  56. package/dist/Data/Deserialiser.js +9 -7
  57. package/dist/Data/Paging/PageManager.js +0 -1
  58. package/dist/Data/Paging/PageRequest.js +0 -1
  59. package/dist/Data/Paging/PageResult.js +0 -1
  60. package/dist/Data/Serialiser.js +3 -3
  61. package/dist/Data/SortOperation.js +0 -1
  62. package/dist/Data/StaticDataSource.js +0 -1
  63. package/dist/Data/WindowedDataView.js +0 -1
  64. package/dist/Data/index.js +0 -1
  65. package/dist/Dates/DateUtils.js +0 -1
  66. package/dist/Dates/TimeSpan.js +0 -1
  67. package/dist/DebounceHelper.js +0 -1
  68. package/dist/Extensions.js +0 -1
  69. package/dist/FileUtils.js +0 -1
  70. package/dist/Globals.d.ts +3 -0
  71. package/dist/Globals.js +11 -1
  72. package/dist/JsonSchema/ClassMetadata.js +0 -1
  73. package/dist/JsonSchema/JsonData.js +0 -1
  74. package/dist/JsonSchema/JsonSchemaTypes.js +0 -1
  75. package/dist/JsonSchema/PropertyMetadata.js +0 -1
  76. package/dist/JsonSchema/TypeCache.js +0 -1
  77. package/dist/JsonSchema/TypeMetadata.js +0 -1
  78. package/dist/JsonSchema/index.js +0 -1
  79. package/dist/Localisation/ILocalisationService.js +0 -1
  80. package/dist/Localisation/LocalisationService.js +0 -1
  81. package/dist/Localisation/index.js +0 -1
  82. package/dist/Misc.js +0 -1
  83. package/dist/Model/BaseModels/AuditValues.js +0 -1
  84. package/dist/Model/BaseModels/CriteriaBase.js +0 -1
  85. package/dist/Model/BaseModels/FileDescriptorBase.js +0 -1
  86. package/dist/Model/BaseModels/ReasonedUserEvent.js +0 -1
  87. package/dist/Model/BaseModels/UserEvent.js +0 -1
  88. package/dist/Model/BindableBase.js +0 -1
  89. package/dist/Model/Decorators.js +0 -1
  90. package/dist/Model/EnumHelper.d.ts +7 -0
  91. package/dist/Model/EnumHelper.js +18 -4
  92. package/dist/Model/IAutoRunner.d.ts +1 -1
  93. package/dist/Model/IAutoRunner.js +0 -1
  94. package/dist/Model/IModelBase.d.ts +1 -1
  95. package/dist/Model/IModelBase.js +0 -1
  96. package/dist/Model/IModelCreatorBase.js +0 -1
  97. package/dist/Model/List.js +0 -1
  98. package/dist/Model/LookupBase.js +0 -1
  99. package/dist/Model/Misc.d.ts +5 -1
  100. package/dist/Model/Misc.js +0 -1
  101. package/dist/Model/ModelBase.d.ts +1 -1
  102. package/dist/Model/ModelBase.js +0 -1
  103. package/dist/Model/ModelCreatorBase.js +0 -1
  104. package/dist/Model/ModelFieldInfo.js +0 -1
  105. package/dist/Model/ModelGraphTraverser.js +10 -6
  106. package/dist/Model/NeoModel.js +0 -1
  107. package/dist/Model/NeoTypeInfo.js +0 -1
  108. package/dist/Model/ObservableProperty.js +0 -1
  109. package/dist/Model/ObservableValue.js +0 -1
  110. package/dist/Model/PropertyInfo.js +2 -3
  111. package/dist/Model/PropertyInstance.js +0 -1
  112. package/dist/Model/ValueObject.js +0 -1
  113. package/dist/Model/index.js +0 -1
  114. package/dist/NumberUtils.js +3 -3
  115. package/dist/Routing/IMenuItemProvider.js +0 -1
  116. package/dist/Routing/IMenuRoute.js +0 -1
  117. package/dist/Routing/INavigationHelper.js +0 -1
  118. package/dist/Routing/IPageLeaveHandler.js +0 -1
  119. package/dist/Routing/IRoute.js +0 -1
  120. package/dist/Routing/IRouteSecurityService.js +0 -1
  121. package/dist/Routing/MenuItemProvider.js +0 -1
  122. package/dist/Routing/RouteSecurityService.js +0 -1
  123. package/dist/Routing/index.js +0 -1
  124. package/dist/Security/IAuthenticationService.js +0 -1
  125. package/dist/Security/IAuthorisationService.js +0 -1
  126. package/dist/Security/ILoginErrorHandler.js +0 -1
  127. package/dist/Security/ISecurityService.js +0 -1
  128. package/dist/Security/IUser.js +0 -1
  129. package/dist/Security/IUserRole.js +0 -1
  130. package/dist/Security/LoginErrorHandler.js +0 -1
  131. package/dist/Security/Oidc/OidcAuthService.js +0 -1
  132. package/dist/Security/Oidc/OidcTypes.js +0 -1
  133. package/dist/Security/Oidc/OidcUser.js +0 -1
  134. package/dist/Security/SecurityService.js +0 -1
  135. package/dist/Security/SignInResult.js +0 -1
  136. package/dist/Security/User.js +0 -1
  137. package/dist/Security/index.js +0 -1
  138. package/dist/Settings.js +0 -1
  139. package/dist/SignalR/HubBase.js +0 -1
  140. package/dist/SignalR/HubReceiver.js +0 -1
  141. package/dist/SignalR/HubSubscription.js +0 -1
  142. package/dist/SignalR/index.js +0 -1
  143. package/dist/StringUtils.js +0 -1
  144. package/dist/Utils.js +0 -1
  145. package/dist/Validation/Decorators.js +0 -1
  146. package/dist/Validation/DisplayHelper.js +0 -1
  147. package/dist/Validation/Misc.js +0 -1
  148. package/dist/Validation/ModelProxy.js +0 -1
  149. package/dist/Validation/RuleContext.js +0 -1
  150. package/dist/Validation/Rules.js +0 -1
  151. package/dist/Validation/ValidationHelpers.js +0 -1
  152. package/dist/Validation/ValidationRules.js +0 -1
  153. package/dist/Validation/ValidationState.js +0 -1
  154. package/dist/Validation/Validators/IModelValidator.js +0 -1
  155. package/dist/Validation/Validators/IPropertyValidator.js +0 -1
  156. package/dist/Validation/Validators/ModelValidator.js +0 -1
  157. package/dist/Validation/Validators/PropertyValidator.js +0 -1
  158. package/dist/Validation/Validators/RuleValidator.js +0 -1
  159. package/dist/Validation/index.js +0 -1
  160. package/dist/Views/IViewBase.js +0 -1
  161. package/dist/index.d.ts +2 -0
  162. package/dist/index.js +4 -1
  163. package/package.json +1 -1
  164. package/dist/ApiClient/ApiClientBase.js.map +0 -1
  165. package/dist/ApiClient/ReadApiClient.js.map +0 -1
  166. package/dist/ApiClient/UpdateableApiClient.js.map +0 -1
  167. package/dist/AppServices/AppService.js.map +0 -1
  168. package/dist/AppServices/Config/ConfigModel.js.map +0 -1
  169. package/dist/AppServices/Config/ConfigService.js.map +0 -1
  170. package/dist/AppServices/Module.js.map +0 -1
  171. package/dist/AppServices/NeoContainer.js.map +0 -1
  172. package/dist/AppServices/NeoModule.js.map +0 -1
  173. package/dist/AppServices/NeoTypes.js.map +0 -1
  174. package/dist/AppServices/ServiceIdentifier.js.map +0 -1
  175. package/dist/AppServices/index.js.map +0 -1
  176. package/dist/Components/AnimationHelper.js.map +0 -1
  177. package/dist/Components/BootstrapHelpers.js.map +0 -1
  178. package/dist/Components/BootstrapTypes.js.map +0 -1
  179. package/dist/Components/ButtonOptions.js.map +0 -1
  180. package/dist/Components/ContextMenu/ContextMenu.js.map +0 -1
  181. package/dist/Components/ContextMenu/MenuUtils.js.map +0 -1
  182. package/dist/Components/DatePicker/DatePicker.js.map +0 -1
  183. package/dist/Components/DatePicker/DatePickerOptions.js.map +0 -1
  184. package/dist/Components/ErrorHandler.js.map +0 -1
  185. package/dist/Components/FileManager/BoundFileManager.js.map +0 -1
  186. package/dist/Components/FileManager/FileManager.js.map +0 -1
  187. package/dist/Components/FileManager/FileUploadBatch.js.map +0 -1
  188. package/dist/Components/FileManager/IFileManagerOptions.js.map +0 -1
  189. package/dist/Components/FormOptions.js.map +0 -1
  190. package/dist/Components/ICollapsableOptions.js.map +0 -1
  191. package/dist/Components/Modal/ModalHelper.js.map +0 -1
  192. package/dist/Components/Modal/ModalOptions.js.map +0 -1
  193. package/dist/Components/Modal/ModalStore.js.map +0 -1
  194. package/dist/Components/Modal/ModalUtils.js.map +0 -1
  195. package/dist/Components/Notifications/INotificationHelper.js.map +0 -1
  196. package/dist/Components/Notifications/Notification.js.map +0 -1
  197. package/dist/Components/Notifications/NotificationHelper.js.map +0 -1
  198. package/dist/Components/Notifications/NotificationStore.js.map +0 -1
  199. package/dist/Components/PositionHelper.js.map +0 -1
  200. package/dist/Components/TaskRunner/ProgressState.js.map +0 -1
  201. package/dist/Components/TaskRunner/TaskRunner.js.map +0 -1
  202. package/dist/Components/TooltipOptions.js.map +0 -1
  203. package/dist/Components/index.js.map +0 -1
  204. package/dist/ConnectionManager.js.map +0 -1
  205. package/dist/Data/ApiDataSource.js.map +0 -1
  206. package/dist/Data/AsyncDataSource.js.map +0 -1
  207. package/dist/Data/CacheService.js.map +0 -1
  208. package/dist/Data/DataCacheEntry.js.map +0 -1
  209. package/dist/Data/DataView.js.map +0 -1
  210. package/dist/Data/Deserialiser.js.map +0 -1
  211. package/dist/Data/Paging/PageManager.js.map +0 -1
  212. package/dist/Data/Paging/PageRequest.js.map +0 -1
  213. package/dist/Data/Paging/PageResult.js.map +0 -1
  214. package/dist/Data/Serialiser.js.map +0 -1
  215. package/dist/Data/SortOperation.js.map +0 -1
  216. package/dist/Data/StaticDataSource.js.map +0 -1
  217. package/dist/Data/WindowedDataView.js.map +0 -1
  218. package/dist/Data/index.js.map +0 -1
  219. package/dist/Dates/DateUtils.js.map +0 -1
  220. package/dist/Dates/TimeSpan.js.map +0 -1
  221. package/dist/DebounceHelper.js.map +0 -1
  222. package/dist/Debouncer.d.ts +0 -39
  223. package/dist/Debouncer.js +0 -98
  224. package/dist/Debouncer.js.map +0 -1
  225. package/dist/Extensions.js.map +0 -1
  226. package/dist/FileUtils.js.map +0 -1
  227. package/dist/Globals.js.map +0 -1
  228. package/dist/JsonSchema/ClassMetadata.js.map +0 -1
  229. package/dist/JsonSchema/JsonData.js.map +0 -1
  230. package/dist/JsonSchema/JsonSchemaTypes.js.map +0 -1
  231. package/dist/JsonSchema/PropertyMetadata.js.map +0 -1
  232. package/dist/JsonSchema/TypeCache.js.map +0 -1
  233. package/dist/JsonSchema/TypeMetadata.js.map +0 -1
  234. package/dist/JsonSchema/index.js.map +0 -1
  235. package/dist/Localisation/ILocalisationService.js.map +0 -1
  236. package/dist/Localisation/LocalisationService.js.map +0 -1
  237. package/dist/Localisation/index.js.map +0 -1
  238. package/dist/Misc.js.map +0 -1
  239. package/dist/Model/BaseModels/AuditValues.js.map +0 -1
  240. package/dist/Model/BaseModels/CriteriaBase.js.map +0 -1
  241. package/dist/Model/BaseModels/FileDescriptorBase.js.map +0 -1
  242. package/dist/Model/BaseModels/ReasonedUserEvent.js.map +0 -1
  243. package/dist/Model/BaseModels/UserEvent.js.map +0 -1
  244. package/dist/Model/BindableBase.js.map +0 -1
  245. package/dist/Model/Decorators.js.map +0 -1
  246. package/dist/Model/EnumHelper.js.map +0 -1
  247. package/dist/Model/IAutoRunner.js.map +0 -1
  248. package/dist/Model/IModelBase.js.map +0 -1
  249. package/dist/Model/IModelCreatorBase.js.map +0 -1
  250. package/dist/Model/List.js.map +0 -1
  251. package/dist/Model/LookupBase.js.map +0 -1
  252. package/dist/Model/Misc.js.map +0 -1
  253. package/dist/Model/ModelBase.js.map +0 -1
  254. package/dist/Model/ModelCreatorBase.js.map +0 -1
  255. package/dist/Model/ModelFieldInfo.js.map +0 -1
  256. package/dist/Model/ModelGraphTraverser.js.map +0 -1
  257. package/dist/Model/NeoModel.js.map +0 -1
  258. package/dist/Model/NeoTypeInfo.js.map +0 -1
  259. package/dist/Model/ObservableProperty.js.map +0 -1
  260. package/dist/Model/ObservableValue.js.map +0 -1
  261. package/dist/Model/PropertyInfo.js.map +0 -1
  262. package/dist/Model/PropertyInstance.js.map +0 -1
  263. package/dist/Model/ValueObject.js.map +0 -1
  264. package/dist/Model/index.js.map +0 -1
  265. package/dist/NumberUtils.js.map +0 -1
  266. package/dist/Routing/IMenuItemProvider.js.map +0 -1
  267. package/dist/Routing/IMenuRoute.js.map +0 -1
  268. package/dist/Routing/INavigationHelper.js.map +0 -1
  269. package/dist/Routing/IPageLeaveHandler.js.map +0 -1
  270. package/dist/Routing/IRoute.js.map +0 -1
  271. package/dist/Routing/IRouteSecurityService.js.map +0 -1
  272. package/dist/Routing/MenuItemProvider.js.map +0 -1
  273. package/dist/Routing/RouteSecurityService.js.map +0 -1
  274. package/dist/Routing/index.js.map +0 -1
  275. package/dist/Security/IAuthenticationService.js.map +0 -1
  276. package/dist/Security/IAuthorisationService.js.map +0 -1
  277. package/dist/Security/ILoginErrorHandler.js.map +0 -1
  278. package/dist/Security/ISecurityService.js.map +0 -1
  279. package/dist/Security/IUser.js.map +0 -1
  280. package/dist/Security/IUserRole.js.map +0 -1
  281. package/dist/Security/LoginErrorHandler.js.map +0 -1
  282. package/dist/Security/Oidc/OidcAuthService.js.map +0 -1
  283. package/dist/Security/Oidc/OidcTypes.js.map +0 -1
  284. package/dist/Security/Oidc/OidcUser.js.map +0 -1
  285. package/dist/Security/SecurityService.js.map +0 -1
  286. package/dist/Security/SignInResult.js.map +0 -1
  287. package/dist/Security/User.js.map +0 -1
  288. package/dist/Security/index.js.map +0 -1
  289. package/dist/Settings.js.map +0 -1
  290. package/dist/SignalR/HubBase.js.map +0 -1
  291. package/dist/SignalR/HubReceiver.js.map +0 -1
  292. package/dist/SignalR/HubSubscription.js.map +0 -1
  293. package/dist/SignalR/index.js.map +0 -1
  294. package/dist/StringUtils.js.map +0 -1
  295. package/dist/Utils.js.map +0 -1
  296. package/dist/Validation/Decorators.js.map +0 -1
  297. package/dist/Validation/DisplayHelper.js.map +0 -1
  298. package/dist/Validation/Misc.js.map +0 -1
  299. package/dist/Validation/ModelProxy.js.map +0 -1
  300. package/dist/Validation/RuleContext.js.map +0 -1
  301. package/dist/Validation/Rules.js.map +0 -1
  302. package/dist/Validation/ValidationHelpers.js.map +0 -1
  303. package/dist/Validation/ValidationRules.js.map +0 -1
  304. package/dist/Validation/ValidationState.js.map +0 -1
  305. package/dist/Validation/Validators/IModelValidator.js.map +0 -1
  306. package/dist/Validation/Validators/IPropertyValidator.js.map +0 -1
  307. package/dist/Validation/Validators/ModelValidator.js.map +0 -1
  308. package/dist/Validation/Validators/PropertyValidator.js.map +0 -1
  309. package/dist/Validation/Validators/RuleValidator.js.map +0 -1
  310. package/dist/Validation/index.js.map +0 -1
  311. package/dist/Views/IViewBase.js.map +0 -1
  312. package/dist/index.js.map +0 -1
@@ -11,4 +11,3 @@ var ApiClientBase = /** @class */ (function () {
11
11
  return ApiClientBase;
12
12
  }());
13
13
  export { ApiClientBase };
14
- //# sourceMappingURL=ApiClientBase.js.map
@@ -12,5 +12,5 @@ export declare class ReadApiClient<TModel, TKey extends string | number> extends
12
12
  /** Gets a list of entities */
13
13
  get(): AxiosPromise<PlainObject<TModel>[]>;
14
14
  /** Gets a single entity using the provided id. */
15
- getById(id: TKey): AxiosPromise<{ [P_1 in keyof Pick<TModel, Exclude<keyof TModel, "meta" | "update" | "isSuspended" | "validator" | "markOld" | "toJSObject" | "toQueryObject" | "toQueryObjectAuto" | "onAnyPropertyChanged" | "getIcon" | "set" | "entityIdentifier" | "isSelfDirty" | "isNew" | "isSelfValid" | "isValid" | "isDirty" | "readyToSave"> & { [P in keyof TModel]: TModel[P] extends Function ? never : P; }[keyof TModel]>]: Pick<TModel, Exclude<keyof TModel, "meta" | "update" | "isSuspended" | "validator" | "markOld" | "toJSObject" | "toQueryObject" | "toQueryObjectAuto" | "onAnyPropertyChanged" | "getIcon" | "set" | "entityIdentifier" | "isSelfDirty" | "isNew" | "isSelfValid" | "isValid" | "isDirty" | "readyToSave"> & { [P in keyof TModel]: TModel[P] extends Function ? never : P; }[keyof TModel]>[P_1] extends import("..").List<infer I> ? I[] : Pick<TModel, Exclude<keyof TModel, "meta" | "update" | "isSuspended" | "validator" | "markOld" | "toJSObject" | "toQueryObject" | "toQueryObjectAuto" | "onAnyPropertyChanged" | "getIcon" | "set" | "entityIdentifier" | "isSelfDirty" | "isNew" | "isSelfValid" | "isValid" | "isDirty" | "readyToSave"> & { [P in keyof TModel]: TModel[P] extends Function ? never : P; }[keyof TModel]>[P_1]; }>;
15
+ getById(id: TKey): AxiosPromise<{ [P_1 in keyof Pick<TModel, Exclude<keyof TModel, "meta" | "update" | "entityIdentifier" | "isSelfDirty" | "isNew" | "isSelfValid" | "isValid" | "isDirty" | "readyToSave" | "isSuspended" | "validator" | "markOld" | "toJSObject" | "toQueryObject" | "toQueryObjectAuto" | "onAnyPropertyChanged" | "getIcon" | "set"> & { [P in keyof TModel]: TModel[P] extends Function ? never : P; }[keyof TModel]>]: Pick<TModel, Exclude<keyof TModel, "meta" | "update" | "entityIdentifier" | "isSelfDirty" | "isNew" | "isSelfValid" | "isValid" | "isDirty" | "readyToSave" | "isSuspended" | "validator" | "markOld" | "toJSObject" | "toQueryObject" | "toQueryObjectAuto" | "onAnyPropertyChanged" | "getIcon" | "set"> & { [P in keyof TModel]: TModel[P] extends Function ? never : P; }[keyof TModel]>[P_1] extends import("..").List<infer I> ? I[] : Pick<TModel, Exclude<keyof TModel, "meta" | "update" | "entityIdentifier" | "isSelfDirty" | "isNew" | "isSelfValid" | "isValid" | "isDirty" | "readyToSave" | "isSuspended" | "validator" | "markOld" | "toJSObject" | "toQueryObject" | "toQueryObjectAuto" | "onAnyPropertyChanged" | "getIcon" | "set"> & { [P in keyof TModel]: TModel[P] extends Function ? never : P; }[keyof TModel]>[P_1]; }>;
16
16
  }
@@ -22,4 +22,3 @@ var ReadApiClient = /** @class */ (function (_super) {
22
22
  return ReadApiClient;
23
23
  }(ApiClientBase));
24
24
  export { ReadApiClient };
25
- //# sourceMappingURL=ReadApiClient.js.map
@@ -31,4 +31,3 @@ var UpdateableApiClient = /** @class */ (function (_super) {
31
31
  return UpdateableApiClient;
32
32
  }(ReadApiClient));
33
33
  export { UpdateableApiClient };
34
- //# sourceMappingURL=UpdateableApiClient.js.map
@@ -23,4 +23,3 @@ var AppService = /** @class */ (function () {
23
23
  return AppService;
24
24
  }());
25
25
  export { AppService };
26
- //# sourceMappingURL=AppService.js.map
@@ -15,4 +15,3 @@ var ConfigModel = /** @class */ (function () {
15
15
  return ConfigModel;
16
16
  }());
17
17
  export default ConfigModel;
18
- //# sourceMappingURL=ConfigModel.js.map
@@ -51,4 +51,3 @@ var ConfigService = /** @class */ (function () {
51
51
  return ConfigService;
52
52
  }());
53
53
  export { ConfigService };
54
- //# sourceMappingURL=ConfigService.js.map
@@ -11,4 +11,3 @@ var Module = /** @class */ (function () {
11
11
  return Module;
12
12
  }());
13
13
  export { Module };
14
- //# sourceMappingURL=Module.js.map
@@ -40,4 +40,3 @@ var NeoContainer = /** @class */ (function (_super) {
40
40
  return NeoContainer;
41
41
  }(Container));
42
42
  export { NeoContainer };
43
- //# sourceMappingURL=NeoContainer.js.map
@@ -28,4 +28,3 @@ var neoModule = new Module("neo", function (container) {
28
28
  container.bind(NeoTypes.TaskRunner).to(TaskRunner).inTransientScope();
29
29
  });
30
30
  export default neoModule;
31
- //# sourceMappingURL=NeoModule.js.map
@@ -18,6 +18,7 @@ import { IRouteSecurityService } from '../Routing/IRouteSecurityService';
18
18
  import { IContextMenuState } from '../Components/ContextMenu/ContextMenu';
19
19
  import { INavigationHelper } from '../Routing/INavigationHelper';
20
20
  import { ILoginErrorHandler } from '../Security/ILoginErrorHandler';
21
+ import Decimal from 'decimal.js-light';
21
22
  declare const NeoTypes: {
22
23
  Axios: ServiceIdentifier<import("axios").AxiosStatic>;
23
24
  Config: {
@@ -32,6 +33,9 @@ declare const NeoTypes: {
32
33
  Localisation: {
33
34
  LocalisationService: ServiceIdentifier<ILocalisationService>;
34
35
  };
36
+ Misc: {
37
+ DecimalType: ServiceIdentifier<typeof Decimal>;
38
+ };
35
39
  Routing: {
36
40
  MenuItemProvider: ServiceIdentifier<IMenuItemProvider<import("../Routing").IMenuRoute>>;
37
41
  NavigationHelper: ServiceIdentifier<INavigationHelper>;
@@ -14,6 +14,9 @@ var NeoTypes = {
14
14
  Localisation: {
15
15
  LocalisationService: new ServiceIdentifier("Neo.Localisation")
16
16
  },
17
+ Misc: {
18
+ DecimalType: new ServiceIdentifier("Neo.Decimal")
19
+ },
17
20
  Routing: {
18
21
  MenuItemProvider: new ServiceIdentifier("Neo.MenuItemProvider"),
19
22
  NavigationHelper: new ServiceIdentifier("Neo.NavigationHelper"),
@@ -37,4 +40,3 @@ var NeoTypes = {
37
40
  }
38
41
  };
39
42
  export default NeoTypes;
40
- //# sourceMappingURL=NeoTypes.js.map
@@ -37,4 +37,3 @@ var ServiceIdentifier = /** @class */ (function () {
37
37
  return ServiceIdentifier;
38
38
  }());
39
39
  export { ServiceIdentifier };
40
- //# sourceMappingURL=ServiceIdentifier.js.map
@@ -5,4 +5,3 @@ export { default as NeoModule } from './NeoModule';
5
5
  export { ServiceIdentifier } from './ServiceIdentifier';
6
6
  export { ConfigService } from './Config/ConfigService';
7
7
  export { default as ConfigModel } from './Config/ConfigModel';
8
- //# sourceMappingURL=index.js.map
@@ -180,4 +180,3 @@ var CollapseAnimationHelper = /** @class */ (function () {
180
180
  return CollapseAnimationHelper;
181
181
  }());
182
182
  export { CollapseAnimationHelper };
183
- //# sourceMappingURL=AnimationHelper.js.map
@@ -28,4 +28,3 @@ var BSHelpers = /** @class */ (function () {
28
28
  return BSHelpers;
29
29
  }());
30
30
  export default BSHelpers;
31
- //# sourceMappingURL=BootstrapHelpers.js.map
@@ -1 +0,0 @@
1
- //# sourceMappingURL=BootstrapTypes.js.map
@@ -35,6 +35,11 @@ export interface IButtonOptions {
35
35
  * If the task runner provided is busy, the button's icon will change to a spinner, and the button will be disabled.
36
36
  */
37
37
  task?: ITaskRunner;
38
+ /**
39
+ * If true, the button's icon will change to a spinner, and the button will be disabled.
40
+ * If you are using a task runner, rather use the `task` prop.
41
+ */
42
+ isBusy?: boolean;
38
43
  /**
39
44
  * Adds a pulse animation to the button.
40
45
  */
@@ -1 +0,0 @@
1
- //# sourceMappingURL=ButtonOptions.js.map
@@ -1 +0,0 @@
1
- //# sourceMappingURL=ContextMenu.js.map
@@ -32,4 +32,3 @@ var MenuUtils = /** @class */ (function () {
32
32
  return MenuUtils;
33
33
  }());
34
34
  export { MenuUtils };
35
- //# sourceMappingURL=MenuUtils.js.map
@@ -486,4 +486,3 @@ var DatePicker = /** @class */ (function () {
486
486
  return DatePicker;
487
487
  }());
488
488
  export default DatePicker;
489
- //# sourceMappingURL=DatePicker.js.map
@@ -31,4 +31,3 @@ var ProcessedDatePickerOptions = /** @class */ (function (_super) {
31
31
  return ProcessedDatePickerOptions;
32
32
  }(DatePickerOptions));
33
33
  export { ProcessedDatePickerOptions };
34
- //# sourceMappingURL=DatePickerOptions.js.map
@@ -6,7 +6,10 @@ export interface IErrorDisplay {
6
6
  statusText?: string;
7
7
  body: any;
8
8
  data?: IErrorData;
9
+ /** True if this is a 500 type error from the server. */
9
10
  isServerError?: boolean;
11
+ /** Cancels displaying of the error. */
12
+ cancelDisplay?: boolean;
10
13
  }
11
14
  export interface IErrorData {
12
15
  errors: string[];
@@ -136,4 +136,3 @@ var ErrorHandler = /** @class */ (function () {
136
136
  return ErrorHandler;
137
137
  }());
138
138
  export { ErrorHandler };
139
- //# sourceMappingURL=ErrorHandler.js.map
@@ -58,4 +58,3 @@ var BoundFileManager = /** @class */ (function (_super) {
58
58
  return BoundFileManager;
59
59
  }(FileManagerBase));
60
60
  export default BoundFileManager;
61
- //# sourceMappingURL=BoundFileManager.js.map
@@ -17,7 +17,7 @@ export interface IFileManager<TOptions = IBaseFileManagerOptions> {
17
17
  /**
18
18
  * Checks if file extensions are allowed, then calls onFilesSelected, or uploadFiles.
19
19
  */
20
- processFiles(files: FileList | File[], options?: IFileUploadOptions): void;
20
+ processFiles(files: FileList | File[], options?: IFileUploadOptions): Promise<any>;
21
21
  /**
22
22
  * Uploads files to the uploadEndpoint. Does not perform any checks on file extensions.
23
23
  */
@@ -43,14 +43,17 @@ export declare abstract class FileManagerBase<TOptions extends IBaseFileManagerO
43
43
  constructor(options: TOptions);
44
44
  get uploadEndpoint(): string | undefined;
45
45
  options: TOptions;
46
- /** Shows a file dialog and then calls processFiles. */
46
+ /**
47
+ * Shows a file dialog and then calls processFiles.
48
+ * onFilesSelected will be called if you need to handle the event.
49
+ */
47
50
  showFileDialog(): void;
48
51
  /** Checks if the file extensions are allowed. Shows a modal if not. */
49
52
  validateFiles(files: FileList | File[]): boolean;
50
53
  /**
51
54
  * Checks if file extensions are allowed, then calls onFilesSelected, or uploadFiles
52
55
  */
53
- processFiles(files: FileList | File[], options?: IFileUploadOptions): void;
56
+ processFiles(files: FileList | File[], options?: IFileUploadOptions): Promise<any>;
54
57
  /**
55
58
  * Uploads files to the uploadEndpoint. Does not perform any checks on file extensions.
56
59
  */
@@ -1,4 +1,4 @@
1
- import { __decorate, __extends, __metadata } from "tslib";
1
+ import { __awaiter, __decorate, __extends, __generator, __metadata } from "tslib";
2
2
  import NeoModel from '../../Model/NeoModel';
3
3
  import { ModalUtils } from '../Modal/ModalUtils';
4
4
  import { Observable } from '../../Model/Decorators';
@@ -47,7 +47,10 @@ var FileManagerBase = /** @class */ (function () {
47
47
  enumerable: true,
48
48
  configurable: true
49
49
  });
50
- /** Shows a file dialog and then calls processFiles. */
50
+ /**
51
+ * Shows a file dialog and then calls processFiles.
52
+ * onFilesSelected will be called if you need to handle the event.
53
+ */
51
54
  FileManagerBase.prototype.showFileDialog = function () {
52
55
  var fileInput = document.getElementById("neo-file-input");
53
56
  if (!fileInput) {
@@ -59,7 +62,9 @@ var FileManagerBase = /** @class */ (function () {
59
62
  fileInput.addEventListener("change", function (e) {
60
63
  var fileManager = fileInput[fileInputSymbol];
61
64
  if (fileInput.files) {
62
- fileManager.processFiles(fileInput.files, { handleErrors: !fileManager.options.taskRunner });
65
+ fileManager.processFiles(fileInput.files, { handleErrors: !fileManager.options.taskRunner }).finally(function () {
66
+ fileInput.value = "";
67
+ });
63
68
  }
64
69
  });
65
70
  document.body.appendChild(fileInput);
@@ -84,25 +89,30 @@ var FileManagerBase = /** @class */ (function () {
84
89
  */
85
90
  FileManagerBase.prototype.processFiles = function (files, options) {
86
91
  if (options === void 0) { options = {}; }
87
- if (this.validateFiles(files)) {
88
- if (this.options.onFilesSelected) {
89
- this.options.onFilesSelected(files, this);
90
- }
91
- else if (this.uploadEndpoint) {
92
- if (!options.additionalData && this.options.additionalData) {
93
- if (typeof this.options.additionalData === "function") {
94
- options.additionalData = this.options.additionalData();
92
+ return __awaiter(this, void 0, void 0, function () {
93
+ return __generator(this, function (_a) {
94
+ if (this.validateFiles(files)) {
95
+ if (this.options.onFilesSelected) {
96
+ this.options.onFilesSelected(files, this);
97
+ }
98
+ else if (this.uploadEndpoint) {
99
+ if (!options.additionalData && this.options.additionalData) {
100
+ if (typeof this.options.additionalData === "function") {
101
+ options.additionalData = this.options.additionalData();
102
+ }
103
+ else {
104
+ options.additionalData = this.options.additionalData;
105
+ }
106
+ }
107
+ return [2 /*return*/, this.uploadFiles(files, options)];
95
108
  }
96
109
  else {
97
- options.additionalData = this.options.additionalData;
110
+ throw Error("You must specify at least one of uploadEndpoint, or onFilesSelected.");
98
111
  }
99
112
  }
100
- this.uploadFiles(files, options);
101
- }
102
- else {
103
- throw Error("You must specify at least one of uploadEndpoint, or onFilesSelected.");
104
- }
105
- }
113
+ return [2 /*return*/];
114
+ });
115
+ });
106
116
  };
107
117
  FileManagerBase.prototype.uploadFiles = function (files, options) {
108
118
  var _this = this;
@@ -245,4 +255,3 @@ var FileManager = /** @class */ (function (_super) {
245
255
  return FileManager;
246
256
  }(FileManagerBase));
247
257
  export default FileManager;
248
- //# sourceMappingURL=FileManager.js.map
@@ -80,4 +80,3 @@ var FileUploadBatch = /** @class */ (function () {
80
80
  return FileUploadBatch;
81
81
  }());
82
82
  export { FileUploadBatch };
83
- //# sourceMappingURL=FileUploadBatch.js.map
@@ -1 +0,0 @@
1
- //# sourceMappingURL=IFileManagerOptions.js.map
@@ -1 +0,0 @@
1
- //# sourceMappingURL=FormOptions.js.map
@@ -1 +0,0 @@
1
- //# sourceMappingURL=ICollapsableOptions.js.map
@@ -172,4 +172,3 @@ var ModalHelper = /** @class */ (function () {
172
172
  return ModalHelper;
173
173
  }());
174
174
  export default ModalHelper;
175
- //# sourceMappingURL=ModalHelper.js.map
@@ -25,6 +25,8 @@ export interface IModalOptionsBase {
25
25
  footer?: any;
26
26
  /** Add content to the left of the buttons. */
27
27
  footerContent?: any;
28
+ /** Callback to handle when the modal is closed / cancelled by the user. Not called on accept. */
29
+ onClose?: (event: any) => void;
28
30
  }
29
31
  export default interface IModalOptions extends IModalOptionsBase {
30
32
  /** Controls the visibility of the modal. */
@@ -1 +0,0 @@
1
- //# sourceMappingURL=ModalOptions.js.map
@@ -80,4 +80,3 @@ var CodeModal = /** @class */ (function () {
80
80
  ], CodeModal);
81
81
  return CodeModal;
82
82
  }());
83
- //# sourceMappingURL=ModalStore.js.map
@@ -107,4 +107,3 @@ var ModalHelpers = /** @class */ (function () {
107
107
  return ModalHelpers;
108
108
  }());
109
109
  export var ModalUtils = new ModalHelpers();
110
- //# sourceMappingURL=ModalUtils.js.map
@@ -1 +0,0 @@
1
- //# sourceMappingURL=INotificationHelper.js.map
@@ -25,4 +25,3 @@ var Notification = /** @class */ (function () {
25
25
  return Notification;
26
26
  }());
27
27
  export { Notification };
28
- //# sourceMappingURL=Notification.js.map
@@ -110,4 +110,3 @@ var NotificationHelper = /** @class */ (function () {
110
110
  return NotificationHelper;
111
111
  }());
112
112
  export { NotificationHelper };
113
- //# sourceMappingURL=NotificationHelper.js.map
@@ -77,4 +77,3 @@ var NotificationStore = /** @class */ (function () {
77
77
  return NotificationStore;
78
78
  }());
79
79
  export { NotificationStore };
80
- //# sourceMappingURL=NotificationStore.js.map
@@ -41,4 +41,3 @@ var PositionHelper = /** @class */ (function () {
41
41
  return PositionHelper;
42
42
  }());
43
43
  export default PositionHelper;
44
- //# sourceMappingURL=PositionHelper.js.map
@@ -0,0 +1,6 @@
1
+ import { TaskRunnerOptions } from './TaskRunner';
2
+ /**
3
+ * Causes the method to be run in a `taskRunner.run` handler.
4
+ * @param options Task runner options.
5
+ */
6
+ export declare function runInTask(options?: Partial<TaskRunnerOptions>): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void;
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Causes the method to be run in a `taskRunner.run` handler.
3
+ * @param options Task runner options.
4
+ */
5
+ export function runInTask(options) {
6
+ return function (target, propertyKey, descriptor) {
7
+ var originalFn = descriptor.value;
8
+ descriptor.value = function () {
9
+ var _this = this;
10
+ var args = [];
11
+ for (var _i = 0; _i < arguments.length; _i++) {
12
+ args[_i] = arguments[_i];
13
+ }
14
+ var taskRunner = this["taskRunner"];
15
+ if (!taskRunner) {
16
+ throw "@runInTask requires the instance to have a property called 'taskRunner'.";
17
+ }
18
+ return taskRunner.run(function (localOptions) {
19
+ Object.assign(localOptions, options);
20
+ return originalFn.apply(_this, args);
21
+ });
22
+ };
23
+ };
24
+ }
@@ -70,4 +70,3 @@ var ProgressState = /** @class */ (function () {
70
70
  return ProgressState;
71
71
  }());
72
72
  export { ProgressState };
73
- //# sourceMappingURL=ProgressState.js.map
@@ -1,6 +1,6 @@
1
1
  import { variant } from '..';
2
2
  import { AxiosPromise } from 'axios';
3
- import { IErrorHandler, ErrorDisplayType } from '../ErrorHandler';
3
+ import { IErrorHandler, ErrorDisplayType, IErrorDisplay } from '../ErrorHandler';
4
4
  import { ProgressState } from './ProgressState';
5
5
  declare type PromiseDictionary = {
6
6
  [index: string]: Promise<any>;
@@ -13,6 +13,12 @@ export declare class TaskRunnerOptions<T = any> {
13
13
  constructor(taskRunner: TaskRunner);
14
14
  /** Specifies how the task runner must handle errors that are raised by your code. */
15
15
  errorHandling: ErrorDisplayType;
16
+ /**
17
+ * Callback to run when an error occurs.
18
+ *
19
+ * Setting the `cancelDisplay` property will prevent the error being displayed by the task runner.
20
+ */
21
+ onError?: (errorInfo: IErrorDisplay) => void;
16
22
  /** Loading text to show in the loading bar */
17
23
  loadingText: string;
18
24
  variant: variant;
@@ -24,15 +30,17 @@ export declare class TaskRunnerOptions<T = any> {
24
30
  autoProgress: boolean;
25
31
  /**
26
32
  * If set, this value will be returned in a resolved promise if an error occurs.
27
- * The error will still be displayed according to the errorHandling property.
33
+ *
34
+ * The error will still be displayed according to the `errorHandling` property.
28
35
  */
29
36
  defaultReturnValue: T;
30
37
  get progressState(): ProgressState;
31
38
  }
32
39
  export declare class WaitForTaskRunnerOptions<T = any> extends TaskRunnerOptions<T> {
33
40
  /**
34
- * Set to true if you want to allow post requests when using waitFor.
35
- * Usually posts will raise an error warning you use rather use TaskRunner.run(). Use this if the post method has no side effects.
41
+ * Set to true if you want to allow post requests when using `waitFor`.
42
+ *
43
+ * Usually posts will raise an error warning you use rather use `TaskRunner.run()`. Use this if the post method has no side effects.
36
44
  */
37
45
  allowPost: boolean;
38
46
  }
@@ -64,6 +72,7 @@ export interface ITaskRunner {
64
72
  waitForData<T>(task: AxiosPromise<T>, options?: Partial<WaitForTaskRunnerOptions<T>>): Promise<T>;
65
73
  /**
66
74
  * Accepts a dictionary of promises, and waits for all of them to resolve.
75
+ *
67
76
  * A dictionary with the same keys is returned with the results of each promise.
68
77
  */
69
78
  waitForAll<T extends PromiseDictionary>(promises: T, options?: Partial<WaitForTaskRunnerOptions<T>>): Promise<TransformPromises<T>>;
@@ -185,7 +185,14 @@ var TaskRunner = /** @class */ (function () {
185
185
  resolve(value);
186
186
  })
187
187
  .catch(function (e) {
188
- if (options.errorHandling !== ErrorDisplayType.ThrowError) {
188
+ var _a;
189
+ var cancel = false;
190
+ if (options.onError !== undefined) {
191
+ var errorInfo = _this.errorHandler.parseError(e);
192
+ options.onError(errorInfo);
193
+ cancel = (_a = errorInfo.cancelDisplay, (_a !== null && _a !== void 0 ? _a : false));
194
+ }
195
+ if (!cancel && options.errorHandling !== ErrorDisplayType.ThrowError) {
189
196
  _this.errorHandler.showError(e, options.errorHandling);
190
197
  }
191
198
  if (options.defaultReturnValue === undefined) {
@@ -236,4 +243,3 @@ var TaskRunner = /** @class */ (function () {
236
243
  return TaskRunner;
237
244
  }());
238
245
  export default TaskRunner;
239
- //# sourceMappingURL=TaskRunner.js.map
@@ -1 +0,0 @@
1
- //# sourceMappingURL=TooltipOptions.js.map
@@ -10,4 +10,3 @@ export { ProgressState } from './TaskRunner/ProgressState';
10
10
  export { default as PositionHelper } from './PositionHelper';
11
11
  import * as Tooltip from './TooltipOptions';
12
12
  export { Tooltip };
13
- //# sourceMappingURL=index.js.map
@@ -59,4 +59,3 @@ var ConnectionManager = /** @class */ (function () {
59
59
  return ConnectionManager;
60
60
  }());
61
61
  export { ConnectionManager };
62
- //# sourceMappingURL=ConnectionManager.js.map
@@ -142,4 +142,3 @@ var ApiDataSource = /** @class */ (function (_super) {
142
142
  return ApiDataSource;
143
143
  }(AsyncDataSource));
144
144
  export { ApiDataSource };
145
- //# sourceMappingURL=ApiDataSource.js.map
@@ -78,4 +78,3 @@ var AsyncDataSource = /** @class */ (function () {
78
78
  return AsyncDataSource;
79
79
  }());
80
80
  export { AsyncDataSource };
81
- //# sourceMappingURL=AsyncDataSource.js.map
@@ -62,4 +62,3 @@ var CachedDataService = /** @class */ (function () {
62
62
  return CachedDataService;
63
63
  }());
64
64
  export { CachedDataService };
65
- //# sourceMappingURL=CacheService.js.map
@@ -78,4 +78,3 @@ var DataCacheEntry = /** @class */ (function () {
78
78
  return DataCacheEntry;
79
79
  }());
80
80
  export { DataCacheEntry };
81
- //# sourceMappingURL=DataCacheEntry.js.map
@@ -170,4 +170,3 @@ var DataView = /** @class */ (function (_super) {
170
170
  return DataView;
171
171
  }(DataViewBase));
172
172
  export { DataView };
173
- //# sourceMappingURL=DataView.js.map
@@ -154,12 +154,15 @@ var Deserialiser = /** @class */ (function () {
154
154
  for (var key in from) {
155
155
  if (from.hasOwnProperty(key)) {
156
156
  var propertyInfo = propertyInfoList[key];
157
- //TODO: log extra properties if in dev mode.
158
- if (this.options.allowExtraProperties ||
159
- (propertyInfo &&
160
- (propertyInfo.serialise === SerialiseType.Always || propertyInfo.serialise === SerialiseType.NotNull ||
161
- (propertyInfo.serialise === SerialiseType.MappingOnly && this.options.isMap) ||
162
- (propertyInfo.serialise === SerialiseType.FullOnly && (this.options.removeOldItems || justCreated))))) {
157
+ var canDeserialise = this.options.allowExtraProperties;
158
+ if (propertyInfo) {
159
+ canDeserialise = !propertyInfo.isComputed && !propertyInfo.isReadOnly &&
160
+ ((propertyInfo.serialise === SerialiseType.Always) ||
161
+ (propertyInfo.serialise === SerialiseType.NotNull) ||
162
+ (propertyInfo.serialise === SerialiseType.MappingOnly && !!this.options.isMap) ||
163
+ (propertyInfo.serialise === SerialiseType.FullOnly && (this.options.removeOldItems || justCreated)));
164
+ }
165
+ if (canDeserialise) {
163
166
  try {
164
167
  var fromValue = from[key];
165
168
  if (propertyInfo) {
@@ -251,4 +254,3 @@ var Deserialiser = /** @class */ (function () {
251
254
  return Deserialiser;
252
255
  }());
253
256
  export { Deserialiser };
254
- //# sourceMappingURL=Deserialiser.js.map
@@ -321,4 +321,3 @@ var PageManager = /** @class */ (function (_super) {
321
321
  return PageManager;
322
322
  }(DataViewBase));
323
323
  export { PageManager };
324
- //# sourceMappingURL=PageManager.js.map
@@ -37,4 +37,3 @@ var PageRequest = /** @class */ (function (_super) {
37
37
  return PageRequest;
38
38
  }(ValueObject));
39
39
  export { PageRequest };
40
- //# sourceMappingURL=PageRequest.js.map
@@ -12,4 +12,3 @@ var PageResult = /** @class */ (function () {
12
12
  return PageResult;
13
13
  }());
14
14
  export { PageResult };
15
- //# sourceMappingURL=PageResult.js.map
@@ -2,7 +2,7 @@ import { TrackingState, SerialiseType, RelationType, TimeZoneFormat, DataType }
2
2
  import { Deserialiser } from './Deserialiser';
3
3
  import ValueObject from '../Model/ValueObject';
4
4
  import DateUtils from '../Dates/DateUtils';
5
- import Decimal from 'decimal.js-light';
5
+ import Globals from '../Globals';
6
6
  var JSFormatter = /** @class */ (function () {
7
7
  function JSFormatter() {
8
8
  }
@@ -101,11 +101,12 @@ var Serialiser = /** @class */ (function () {
101
101
  try {
102
102
  var propertyInfo = isDictionary ? {} : propertyMap[key];
103
103
  if (propertyInfo &&
104
+ !propertyInfo.isComputed && !propertyInfo.isReadOnly && // Safari seems to enumerate properties like isDirty, other browsers wont include these properties.
104
105
  propertyInfo.serialise !== SerialiseType.Never &&
105
106
  propertyInfo.serialise !== SerialiseType.MappingOnly &&
106
107
  (propertyInfo.serialise !== SerialiseType.FullOnly || this.options.includeClean)) {
107
108
  var fromValue = from[key];
108
- var isChildObject = (fromValue && fromValue instanceof Object && !(fromValue instanceof Date) && !(fromValue instanceof Decimal)) || propertyInfo.relationType === RelationType.ChildObject;
109
+ var isChildObject = (fromValue && fromValue instanceof Object && !(fromValue instanceof Date) && !(fromValue instanceof Globals.decimalType)) || propertyInfo.relationType === RelationType.ChildObject;
109
110
  if (fromValue instanceof Array) {
110
111
  // Arrays of simple types are always included.
111
112
  if (!this.options.suppressChildren || (fromValue.length > 0 && !(fromValue[0] instanceof Object))) {
@@ -188,4 +189,3 @@ var Serialiser = /** @class */ (function () {
188
189
  return Serialiser;
189
190
  }());
190
191
  export { Serialiser };
191
- //# sourceMappingURL=Serialiser.js.map
@@ -24,4 +24,3 @@ var SortOperation = /** @class */ (function () {
24
24
  return SortOperation;
25
25
  }());
26
26
  export { SortOperation };
27
- //# sourceMappingURL=SortOperation.js.map