@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.
- package/dist/ApiClient/ApiClientBase.js +0 -1
- package/dist/ApiClient/ReadApiClient.d.ts +1 -1
- package/dist/ApiClient/ReadApiClient.js +0 -1
- package/dist/ApiClient/UpdateableApiClient.js +0 -1
- package/dist/AppServices/AppService.js +0 -1
- package/dist/AppServices/Config/ConfigModel.js +0 -1
- package/dist/AppServices/Config/ConfigService.js +0 -1
- package/dist/AppServices/Module.js +0 -1
- package/dist/AppServices/NeoContainer.js +0 -1
- package/dist/AppServices/NeoModule.js +0 -1
- package/dist/AppServices/NeoTypes.d.ts +4 -0
- package/dist/AppServices/NeoTypes.js +3 -1
- package/dist/AppServices/ServiceIdentifier.js +0 -1
- package/dist/AppServices/index.js +0 -1
- package/dist/Components/AnimationHelper.js +0 -1
- package/dist/Components/BootstrapHelpers.js +0 -1
- package/dist/Components/BootstrapTypes.js +0 -1
- package/dist/Components/ButtonOptions.d.ts +5 -0
- package/dist/Components/ButtonOptions.js +0 -1
- package/dist/Components/ContextMenu/ContextMenu.js +0 -1
- package/dist/Components/ContextMenu/MenuUtils.js +0 -1
- package/dist/Components/DatePicker/DatePicker.js +0 -1
- package/dist/Components/DatePicker/DatePickerOptions.js +0 -1
- package/dist/Components/ErrorHandler.d.ts +3 -0
- package/dist/Components/ErrorHandler.js +0 -1
- package/dist/Components/FileManager/BoundFileManager.js +0 -1
- package/dist/Components/FileManager/FileManager.d.ts +6 -3
- package/dist/Components/FileManager/FileManager.js +28 -19
- package/dist/Components/FileManager/FileUploadBatch.js +0 -1
- package/dist/Components/FileManager/IFileManagerOptions.js +0 -1
- package/dist/Components/FormOptions.js +0 -1
- package/dist/Components/ICollapsableOptions.js +0 -1
- package/dist/Components/Modal/ModalHelper.js +0 -1
- package/dist/Components/Modal/ModalOptions.d.ts +2 -0
- package/dist/Components/Modal/ModalOptions.js +0 -1
- package/dist/Components/Modal/ModalStore.js +0 -1
- package/dist/Components/Modal/ModalUtils.js +0 -1
- package/dist/Components/Notifications/INotificationHelper.js +0 -1
- package/dist/Components/Notifications/Notification.js +0 -1
- package/dist/Components/Notifications/NotificationHelper.js +0 -1
- package/dist/Components/Notifications/NotificationStore.js +0 -1
- package/dist/Components/PositionHelper.js +0 -1
- package/dist/Components/TaskRunner/Decorators.d.ts +6 -0
- package/dist/Components/TaskRunner/Decorators.js +24 -0
- package/dist/Components/TaskRunner/ProgressState.js +0 -1
- package/dist/Components/TaskRunner/TaskRunner.d.ts +13 -4
- package/dist/Components/TaskRunner/TaskRunner.js +8 -2
- package/dist/Components/TooltipOptions.js +0 -1
- package/dist/Components/index.js +0 -1
- package/dist/ConnectionManager.js +0 -1
- package/dist/Data/ApiDataSource.js +0 -1
- package/dist/Data/AsyncDataSource.js +0 -1
- package/dist/Data/CacheService.js +0 -1
- package/dist/Data/DataCacheEntry.js +0 -1
- package/dist/Data/DataView.js +0 -1
- package/dist/Data/Deserialiser.js +9 -7
- package/dist/Data/Paging/PageManager.js +0 -1
- package/dist/Data/Paging/PageRequest.js +0 -1
- package/dist/Data/Paging/PageResult.js +0 -1
- package/dist/Data/Serialiser.js +3 -3
- package/dist/Data/SortOperation.js +0 -1
- package/dist/Data/StaticDataSource.js +0 -1
- package/dist/Data/WindowedDataView.js +0 -1
- package/dist/Data/index.js +0 -1
- package/dist/Dates/DateUtils.js +0 -1
- package/dist/Dates/TimeSpan.js +0 -1
- package/dist/DebounceHelper.js +0 -1
- package/dist/Extensions.js +0 -1
- package/dist/FileUtils.js +0 -1
- package/dist/Globals.d.ts +3 -0
- package/dist/Globals.js +11 -1
- package/dist/JsonSchema/ClassMetadata.js +0 -1
- package/dist/JsonSchema/JsonData.js +0 -1
- package/dist/JsonSchema/JsonSchemaTypes.js +0 -1
- package/dist/JsonSchema/PropertyMetadata.js +0 -1
- package/dist/JsonSchema/TypeCache.js +0 -1
- package/dist/JsonSchema/TypeMetadata.js +0 -1
- package/dist/JsonSchema/index.js +0 -1
- package/dist/Localisation/ILocalisationService.js +0 -1
- package/dist/Localisation/LocalisationService.js +0 -1
- package/dist/Localisation/index.js +0 -1
- package/dist/Misc.js +0 -1
- package/dist/Model/BaseModels/AuditValues.js +0 -1
- package/dist/Model/BaseModels/CriteriaBase.js +0 -1
- package/dist/Model/BaseModels/FileDescriptorBase.js +0 -1
- package/dist/Model/BaseModels/ReasonedUserEvent.js +0 -1
- package/dist/Model/BaseModels/UserEvent.js +0 -1
- package/dist/Model/BindableBase.js +0 -1
- package/dist/Model/Decorators.js +0 -1
- package/dist/Model/EnumHelper.d.ts +7 -0
- package/dist/Model/EnumHelper.js +18 -4
- package/dist/Model/IAutoRunner.d.ts +1 -1
- package/dist/Model/IAutoRunner.js +0 -1
- package/dist/Model/IModelBase.d.ts +1 -1
- package/dist/Model/IModelBase.js +0 -1
- package/dist/Model/IModelCreatorBase.js +0 -1
- package/dist/Model/List.js +0 -1
- package/dist/Model/LookupBase.js +0 -1
- package/dist/Model/Misc.d.ts +5 -1
- package/dist/Model/Misc.js +0 -1
- package/dist/Model/ModelBase.d.ts +1 -1
- package/dist/Model/ModelBase.js +0 -1
- package/dist/Model/ModelCreatorBase.js +0 -1
- package/dist/Model/ModelFieldInfo.js +0 -1
- package/dist/Model/ModelGraphTraverser.js +10 -6
- package/dist/Model/NeoModel.js +0 -1
- package/dist/Model/NeoTypeInfo.js +0 -1
- package/dist/Model/ObservableProperty.js +0 -1
- package/dist/Model/ObservableValue.js +0 -1
- package/dist/Model/PropertyInfo.js +2 -3
- package/dist/Model/PropertyInstance.js +0 -1
- package/dist/Model/ValueObject.js +0 -1
- package/dist/Model/index.js +0 -1
- package/dist/NumberUtils.js +3 -3
- package/dist/Routing/IMenuItemProvider.js +0 -1
- package/dist/Routing/IMenuRoute.js +0 -1
- package/dist/Routing/INavigationHelper.js +0 -1
- package/dist/Routing/IPageLeaveHandler.js +0 -1
- package/dist/Routing/IRoute.js +0 -1
- package/dist/Routing/IRouteSecurityService.js +0 -1
- package/dist/Routing/MenuItemProvider.js +0 -1
- package/dist/Routing/RouteSecurityService.js +0 -1
- package/dist/Routing/index.js +0 -1
- package/dist/Security/IAuthenticationService.js +0 -1
- package/dist/Security/IAuthorisationService.js +0 -1
- package/dist/Security/ILoginErrorHandler.js +0 -1
- package/dist/Security/ISecurityService.js +0 -1
- package/dist/Security/IUser.js +0 -1
- package/dist/Security/IUserRole.js +0 -1
- package/dist/Security/LoginErrorHandler.js +0 -1
- package/dist/Security/Oidc/OidcAuthService.js +0 -1
- package/dist/Security/Oidc/OidcTypes.js +0 -1
- package/dist/Security/Oidc/OidcUser.js +0 -1
- package/dist/Security/SecurityService.js +0 -1
- package/dist/Security/SignInResult.js +0 -1
- package/dist/Security/User.js +0 -1
- package/dist/Security/index.js +0 -1
- package/dist/Settings.js +0 -1
- package/dist/SignalR/HubBase.js +0 -1
- package/dist/SignalR/HubReceiver.js +0 -1
- package/dist/SignalR/HubSubscription.js +0 -1
- package/dist/SignalR/index.js +0 -1
- package/dist/StringUtils.js +0 -1
- package/dist/Utils.js +0 -1
- package/dist/Validation/Decorators.js +0 -1
- package/dist/Validation/DisplayHelper.js +0 -1
- package/dist/Validation/Misc.js +0 -1
- package/dist/Validation/ModelProxy.js +0 -1
- package/dist/Validation/RuleContext.js +0 -1
- package/dist/Validation/Rules.js +0 -1
- package/dist/Validation/ValidationHelpers.js +0 -1
- package/dist/Validation/ValidationRules.js +0 -1
- package/dist/Validation/ValidationState.js +0 -1
- package/dist/Validation/Validators/IModelValidator.js +0 -1
- package/dist/Validation/Validators/IPropertyValidator.js +0 -1
- package/dist/Validation/Validators/ModelValidator.js +0 -1
- package/dist/Validation/Validators/PropertyValidator.js +0 -1
- package/dist/Validation/Validators/RuleValidator.js +0 -1
- package/dist/Validation/index.js +0 -1
- package/dist/Views/IViewBase.js +0 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +4 -1
- package/package.json +1 -1
- package/dist/ApiClient/ApiClientBase.js.map +0 -1
- package/dist/ApiClient/ReadApiClient.js.map +0 -1
- package/dist/ApiClient/UpdateableApiClient.js.map +0 -1
- package/dist/AppServices/AppService.js.map +0 -1
- package/dist/AppServices/Config/ConfigModel.js.map +0 -1
- package/dist/AppServices/Config/ConfigService.js.map +0 -1
- package/dist/AppServices/Module.js.map +0 -1
- package/dist/AppServices/NeoContainer.js.map +0 -1
- package/dist/AppServices/NeoModule.js.map +0 -1
- package/dist/AppServices/NeoTypes.js.map +0 -1
- package/dist/AppServices/ServiceIdentifier.js.map +0 -1
- package/dist/AppServices/index.js.map +0 -1
- package/dist/Components/AnimationHelper.js.map +0 -1
- package/dist/Components/BootstrapHelpers.js.map +0 -1
- package/dist/Components/BootstrapTypes.js.map +0 -1
- package/dist/Components/ButtonOptions.js.map +0 -1
- package/dist/Components/ContextMenu/ContextMenu.js.map +0 -1
- package/dist/Components/ContextMenu/MenuUtils.js.map +0 -1
- package/dist/Components/DatePicker/DatePicker.js.map +0 -1
- package/dist/Components/DatePicker/DatePickerOptions.js.map +0 -1
- package/dist/Components/ErrorHandler.js.map +0 -1
- package/dist/Components/FileManager/BoundFileManager.js.map +0 -1
- package/dist/Components/FileManager/FileManager.js.map +0 -1
- package/dist/Components/FileManager/FileUploadBatch.js.map +0 -1
- package/dist/Components/FileManager/IFileManagerOptions.js.map +0 -1
- package/dist/Components/FormOptions.js.map +0 -1
- package/dist/Components/ICollapsableOptions.js.map +0 -1
- package/dist/Components/Modal/ModalHelper.js.map +0 -1
- package/dist/Components/Modal/ModalOptions.js.map +0 -1
- package/dist/Components/Modal/ModalStore.js.map +0 -1
- package/dist/Components/Modal/ModalUtils.js.map +0 -1
- package/dist/Components/Notifications/INotificationHelper.js.map +0 -1
- package/dist/Components/Notifications/Notification.js.map +0 -1
- package/dist/Components/Notifications/NotificationHelper.js.map +0 -1
- package/dist/Components/Notifications/NotificationStore.js.map +0 -1
- package/dist/Components/PositionHelper.js.map +0 -1
- package/dist/Components/TaskRunner/ProgressState.js.map +0 -1
- package/dist/Components/TaskRunner/TaskRunner.js.map +0 -1
- package/dist/Components/TooltipOptions.js.map +0 -1
- package/dist/Components/index.js.map +0 -1
- package/dist/ConnectionManager.js.map +0 -1
- package/dist/Data/ApiDataSource.js.map +0 -1
- package/dist/Data/AsyncDataSource.js.map +0 -1
- package/dist/Data/CacheService.js.map +0 -1
- package/dist/Data/DataCacheEntry.js.map +0 -1
- package/dist/Data/DataView.js.map +0 -1
- package/dist/Data/Deserialiser.js.map +0 -1
- package/dist/Data/Paging/PageManager.js.map +0 -1
- package/dist/Data/Paging/PageRequest.js.map +0 -1
- package/dist/Data/Paging/PageResult.js.map +0 -1
- package/dist/Data/Serialiser.js.map +0 -1
- package/dist/Data/SortOperation.js.map +0 -1
- package/dist/Data/StaticDataSource.js.map +0 -1
- package/dist/Data/WindowedDataView.js.map +0 -1
- package/dist/Data/index.js.map +0 -1
- package/dist/Dates/DateUtils.js.map +0 -1
- package/dist/Dates/TimeSpan.js.map +0 -1
- package/dist/DebounceHelper.js.map +0 -1
- package/dist/Debouncer.d.ts +0 -39
- package/dist/Debouncer.js +0 -98
- package/dist/Debouncer.js.map +0 -1
- package/dist/Extensions.js.map +0 -1
- package/dist/FileUtils.js.map +0 -1
- package/dist/Globals.js.map +0 -1
- package/dist/JsonSchema/ClassMetadata.js.map +0 -1
- package/dist/JsonSchema/JsonData.js.map +0 -1
- package/dist/JsonSchema/JsonSchemaTypes.js.map +0 -1
- package/dist/JsonSchema/PropertyMetadata.js.map +0 -1
- package/dist/JsonSchema/TypeCache.js.map +0 -1
- package/dist/JsonSchema/TypeMetadata.js.map +0 -1
- package/dist/JsonSchema/index.js.map +0 -1
- package/dist/Localisation/ILocalisationService.js.map +0 -1
- package/dist/Localisation/LocalisationService.js.map +0 -1
- package/dist/Localisation/index.js.map +0 -1
- package/dist/Misc.js.map +0 -1
- package/dist/Model/BaseModels/AuditValues.js.map +0 -1
- package/dist/Model/BaseModels/CriteriaBase.js.map +0 -1
- package/dist/Model/BaseModels/FileDescriptorBase.js.map +0 -1
- package/dist/Model/BaseModels/ReasonedUserEvent.js.map +0 -1
- package/dist/Model/BaseModels/UserEvent.js.map +0 -1
- package/dist/Model/BindableBase.js.map +0 -1
- package/dist/Model/Decorators.js.map +0 -1
- package/dist/Model/EnumHelper.js.map +0 -1
- package/dist/Model/IAutoRunner.js.map +0 -1
- package/dist/Model/IModelBase.js.map +0 -1
- package/dist/Model/IModelCreatorBase.js.map +0 -1
- package/dist/Model/List.js.map +0 -1
- package/dist/Model/LookupBase.js.map +0 -1
- package/dist/Model/Misc.js.map +0 -1
- package/dist/Model/ModelBase.js.map +0 -1
- package/dist/Model/ModelCreatorBase.js.map +0 -1
- package/dist/Model/ModelFieldInfo.js.map +0 -1
- package/dist/Model/ModelGraphTraverser.js.map +0 -1
- package/dist/Model/NeoModel.js.map +0 -1
- package/dist/Model/NeoTypeInfo.js.map +0 -1
- package/dist/Model/ObservableProperty.js.map +0 -1
- package/dist/Model/ObservableValue.js.map +0 -1
- package/dist/Model/PropertyInfo.js.map +0 -1
- package/dist/Model/PropertyInstance.js.map +0 -1
- package/dist/Model/ValueObject.js.map +0 -1
- package/dist/Model/index.js.map +0 -1
- package/dist/NumberUtils.js.map +0 -1
- package/dist/Routing/IMenuItemProvider.js.map +0 -1
- package/dist/Routing/IMenuRoute.js.map +0 -1
- package/dist/Routing/INavigationHelper.js.map +0 -1
- package/dist/Routing/IPageLeaveHandler.js.map +0 -1
- package/dist/Routing/IRoute.js.map +0 -1
- package/dist/Routing/IRouteSecurityService.js.map +0 -1
- package/dist/Routing/MenuItemProvider.js.map +0 -1
- package/dist/Routing/RouteSecurityService.js.map +0 -1
- package/dist/Routing/index.js.map +0 -1
- package/dist/Security/IAuthenticationService.js.map +0 -1
- package/dist/Security/IAuthorisationService.js.map +0 -1
- package/dist/Security/ILoginErrorHandler.js.map +0 -1
- package/dist/Security/ISecurityService.js.map +0 -1
- package/dist/Security/IUser.js.map +0 -1
- package/dist/Security/IUserRole.js.map +0 -1
- package/dist/Security/LoginErrorHandler.js.map +0 -1
- package/dist/Security/Oidc/OidcAuthService.js.map +0 -1
- package/dist/Security/Oidc/OidcTypes.js.map +0 -1
- package/dist/Security/Oidc/OidcUser.js.map +0 -1
- package/dist/Security/SecurityService.js.map +0 -1
- package/dist/Security/SignInResult.js.map +0 -1
- package/dist/Security/User.js.map +0 -1
- package/dist/Security/index.js.map +0 -1
- package/dist/Settings.js.map +0 -1
- package/dist/SignalR/HubBase.js.map +0 -1
- package/dist/SignalR/HubReceiver.js.map +0 -1
- package/dist/SignalR/HubSubscription.js.map +0 -1
- package/dist/SignalR/index.js.map +0 -1
- package/dist/StringUtils.js.map +0 -1
- package/dist/Utils.js.map +0 -1
- package/dist/Validation/Decorators.js.map +0 -1
- package/dist/Validation/DisplayHelper.js.map +0 -1
- package/dist/Validation/Misc.js.map +0 -1
- package/dist/Validation/ModelProxy.js.map +0 -1
- package/dist/Validation/RuleContext.js.map +0 -1
- package/dist/Validation/Rules.js.map +0 -1
- package/dist/Validation/ValidationHelpers.js.map +0 -1
- package/dist/Validation/ValidationRules.js.map +0 -1
- package/dist/Validation/ValidationState.js.map +0 -1
- package/dist/Validation/Validators/IModelValidator.js.map +0 -1
- package/dist/Validation/Validators/IPropertyValidator.js.map +0 -1
- package/dist/Validation/Validators/ModelValidator.js.map +0 -1
- package/dist/Validation/Validators/PropertyValidator.js.map +0 -1
- package/dist/Validation/Validators/RuleValidator.js.map +0 -1
- package/dist/Validation/index.js.map +0 -1
- package/dist/Views/IViewBase.js.map +0 -1
- package/dist/index.js.map +0 -1
|
@@ -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" | "
|
|
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
|
}
|
|
@@ -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
|
|
@@ -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
|
|
@@ -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[];
|
|
@@ -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):
|
|
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
|
-
/**
|
|
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):
|
|
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
|
-
/**
|
|
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
|
-
|
|
88
|
-
|
|
89
|
-
this.
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
if (
|
|
94
|
-
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
|
-
|
|
110
|
+
throw Error("You must specify at least one of uploadEndpoint, or onFilesSelected.");
|
|
98
111
|
}
|
|
99
112
|
}
|
|
100
|
-
|
|
101
|
-
}
|
|
102
|
-
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=IFileManagerOptions.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=FormOptions.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=ICollapsableOptions.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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=INotificationHelper.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
|
+
}
|
|
@@ -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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
|
|
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
|
package/dist/Components/index.js
CHANGED
package/dist/Data/DataView.js
CHANGED
|
@@ -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
|
-
|
|
158
|
-
if (
|
|
159
|
-
|
|
160
|
-
(propertyInfo.serialise === SerialiseType.Always ||
|
|
161
|
-
(propertyInfo.serialise === SerialiseType.
|
|
162
|
-
(propertyInfo.serialise === SerialiseType.
|
|
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
|
package/dist/Data/Serialiser.js
CHANGED
|
@@ -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
|
|
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
|
|
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
|