@singularsystems/neo-core 0.10.46 → 0.10.49
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.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.js +0 -1
- package/dist/Components/FileManager/BoundFileManager.js +0 -1
- package/dist/Components/FileManager/FileManager.js +0 -1
- 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.d.ts +2 -0
- package/dist/Components/Modal/ModalHelper.js +21 -7
- 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/ProgressState.js +0 -1
- package/dist/Components/TaskRunner/TaskRunner.js +0 -1
- 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.d.ts +38 -0
- package/dist/DebounceHelper.js +95 -0
- 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.js +0 -1
- package/dist/Model/IAutoRunner.js +0 -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.js +0 -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.d.ts +3 -7
- package/dist/Utils.js +4 -18
- 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 -1
- package/dist/index.js +2 -2
- 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/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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=ButtonOptions.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=ContextMenu.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
|
|
@@ -2,6 +2,7 @@ import { IModalOptionsBase } from './ModalOptions';
|
|
|
2
2
|
export interface IModalInstance {
|
|
3
3
|
container: HTMLDivElement;
|
|
4
4
|
isRemoving: boolean;
|
|
5
|
+
fadeTimer?: any;
|
|
5
6
|
onDismiss?: (e: any) => void;
|
|
6
7
|
}
|
|
7
8
|
export interface IModalContainerOptions {
|
|
@@ -25,5 +26,6 @@ export default class ModalHelper {
|
|
|
25
26
|
endRemove(modal: IModalInstance): void;
|
|
26
27
|
private endModalAnimations;
|
|
27
28
|
private makeModalsInactive;
|
|
29
|
+
private cancelModalSlides;
|
|
28
30
|
private onContainerClick;
|
|
29
31
|
}
|
|
@@ -94,17 +94,24 @@ var ModalHelper = /** @class */ (function () {
|
|
|
94
94
|
}
|
|
95
95
|
};
|
|
96
96
|
ModalHelper.prototype.insertAdditionalModal = function (modal) {
|
|
97
|
-
modal.classList.add("modal-container-additional");
|
|
98
97
|
this.modalsContainer.insertBefore(modal, this.modalsContainer.childNodes[0]);
|
|
98
|
+
var marginTop = parseInt(window.getComputedStyle(modal.children[0]).marginTop);
|
|
99
|
+
modal.style.marginTop = -(modal.clientHeight + marginTop) + "px";
|
|
100
|
+
AnimationHelper.triggerReflow(this.modalsContainer);
|
|
101
|
+
modal.classList.add("modal-container-additional");
|
|
99
102
|
AnimationHelper.triggerReflow(this.modalsContainer);
|
|
103
|
+
modal.style.marginTop = "0";
|
|
100
104
|
modal.classList.add("show");
|
|
101
105
|
this.modalsContainer.scrollTo(0, 0);
|
|
102
106
|
};
|
|
103
107
|
ModalHelper.prototype.beginRemove = function (modal) {
|
|
104
108
|
if (!modal.isRemoving) {
|
|
105
109
|
modal.isRemoving = true;
|
|
106
|
-
if (this.
|
|
107
|
-
//
|
|
110
|
+
if (this.modals.every(function (m) { return m.isRemoving; })) {
|
|
111
|
+
// All modals are closing.
|
|
112
|
+
// Cancel any pending closing slide animations, since all modals are now being closed using the main animation.
|
|
113
|
+
this.cancelModalSlides();
|
|
114
|
+
// Remove the backdrop and top level container.
|
|
108
115
|
this.modalsContainer.classList.remove("show");
|
|
109
116
|
this.modalsBackdrop.classList.remove("show");
|
|
110
117
|
this.rootContainer.className = this.rootClassName;
|
|
@@ -117,6 +124,9 @@ var ModalHelper = /** @class */ (function () {
|
|
|
117
124
|
else {
|
|
118
125
|
// Otherwise just fade the current modal
|
|
119
126
|
modal.container.classList.remove("show");
|
|
127
|
+
var marginTop_1 = parseInt(window.getComputedStyle(modal.container.children[0]).marginTop);
|
|
128
|
+
modal.fadeTimer = setTimeout(function () { return modal.container.style.marginTop = -(modal.container.clientHeight + marginTop_1) + "px"; }, 0);
|
|
129
|
+
this.modals[this.modals.length - 2].container.classList.remove(inactiveClassName);
|
|
120
130
|
}
|
|
121
131
|
}
|
|
122
132
|
};
|
|
@@ -129,9 +139,6 @@ var ModalHelper = /** @class */ (function () {
|
|
|
129
139
|
this.modalsContainer.style.display = "none";
|
|
130
140
|
this.modalsBackdrop.style.display = "none";
|
|
131
141
|
}
|
|
132
|
-
else {
|
|
133
|
-
this.modals[this.modals.length - 1].container.classList.remove(inactiveClassName);
|
|
134
|
-
}
|
|
135
142
|
};
|
|
136
143
|
ModalHelper.prototype.endModalAnimations = function () {
|
|
137
144
|
for (var _i = 0, _a = this.modals.filter(function (m) { return m.isRemoving; }); _i < _a.length; _i++) {
|
|
@@ -145,6 +152,14 @@ var ModalHelper = /** @class */ (function () {
|
|
|
145
152
|
modal.container.classList.add(inactiveClassName);
|
|
146
153
|
}
|
|
147
154
|
};
|
|
155
|
+
ModalHelper.prototype.cancelModalSlides = function () {
|
|
156
|
+
for (var _i = 0, _a = this.modals; _i < _a.length; _i++) {
|
|
157
|
+
var modal = _a[_i];
|
|
158
|
+
if (modal.fadeTimer) {
|
|
159
|
+
clearTimeout(modal.fadeTimer);
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
};
|
|
148
163
|
ModalHelper.prototype.onContainerClick = function (e) {
|
|
149
164
|
if (this.modals.length == 1) {
|
|
150
165
|
var modal = this.modals[this.modals.length - 1];
|
|
@@ -157,4 +172,3 @@ var ModalHelper = /** @class */ (function () {
|
|
|
157
172
|
return ModalHelper;
|
|
158
173
|
}());
|
|
159
174
|
export default ModalHelper;
|
|
160
|
-
//# 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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=INotificationHelper.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
|
package/dist/Data/index.js
CHANGED
package/dist/Dates/DateUtils.js
CHANGED
package/dist/Dates/TimeSpan.js
CHANGED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export interface IDebounceResult<T> {
|
|
2
|
+
/** True if the operation was cancelled due to a subsequent call. */
|
|
3
|
+
cancelled: boolean;
|
|
4
|
+
value?: T;
|
|
5
|
+
}
|
|
6
|
+
export declare class DebounceHelper<T = void, TState = any> {
|
|
7
|
+
private callback;
|
|
8
|
+
private delayMs;
|
|
9
|
+
private timer;
|
|
10
|
+
private state;
|
|
11
|
+
private currentResolver?;
|
|
12
|
+
/**
|
|
13
|
+
* Creates a debounce helper instance.
|
|
14
|
+
* @param callback Callback function to run. All state passed to the execute method from current and previous calls will be passed to the callback.
|
|
15
|
+
* @param delayMs Delay in milliseconds.
|
|
16
|
+
*/
|
|
17
|
+
constructor(callback: (state: TState[]) => T | Promise<T>, delayMs?: number);
|
|
18
|
+
/**
|
|
19
|
+
* Debounce a function so that it is only called after a period of inactivity.
|
|
20
|
+
* @param syncInstance The instance to synchronize against.
|
|
21
|
+
* This should always be the same object for the function you are debouncing.
|
|
22
|
+
* Do not debounce different functions on the same sync instance. Rather create a DebounceHelper instance for each function.
|
|
23
|
+
* @param fn Function to call when the delay has elapsed.
|
|
24
|
+
* @param delayMs Delay in milliseconds.
|
|
25
|
+
* @param state State to pass to debounced method as an array of values for each time debounce was called.
|
|
26
|
+
*/
|
|
27
|
+
static debounce<T = any, TState = any>(syncInstance: any, callback: (state: TState[]) => T | Promise<T>, delayMs: number, state?: TState): Promise<IDebounceResult<T>>;
|
|
28
|
+
/** Cancels pending execution of the callback. Any pending promises will be resolved with cancelled: true. */
|
|
29
|
+
static cancelPending<TState = any>(syncInstance: any): TState[];
|
|
30
|
+
/**
|
|
31
|
+
* Waits the interval defined in the constructor, then executes the callback.
|
|
32
|
+
* The callback will not execute if execute is called again within the interval.
|
|
33
|
+
* @param state State to pass to the callback.
|
|
34
|
+
*/
|
|
35
|
+
execute(state?: TState): Promise<IDebounceResult<T>>;
|
|
36
|
+
/** Cancels pending execution of the callback. Any pending promises will be resolved with cancelled: true. */
|
|
37
|
+
cancelPending(): TState[];
|
|
38
|
+
}
|