@smartbit4all/ng-client 4.5.41 → 4.5.43
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/esm2022/lib/session/smart-backend-bootstrap.config.mjs +1 -1
- package/esm2022/lib/session/smart-backend-bootstrap.service.mjs +7 -4
- package/esm2022/lib/smart-component-layout/api/api/api.mjs +1 -1
- package/esm2022/lib/smart-component-layout/api/api/default.service.mjs +1 -1
- package/esm2022/lib/smart-component-layout/api/api.module.mjs +1 -1
- package/esm2022/lib/smart-component-layout/api/configuration.mjs +1 -1
- package/esm2022/lib/smart-component-layout/api/encoder.mjs +1 -1
- package/esm2022/lib/smart-component-layout/api/index.mjs +1 -1
- package/esm2022/lib/smart-component-layout/api/model/componentType.mjs +1 -1
- package/esm2022/lib/smart-component-layout/api/model/layoutDefinitionDescriptor.mjs +1 -1
- package/esm2022/lib/smart-component-layout/api/model/layoutDirection.mjs +1 -1
- package/esm2022/lib/smart-component-layout/api/model/smartComponentLayoutDefinition.mjs +1 -1
- package/esm2022/lib/smart-component-layout/api/model/smartComponentWidgetDefinition.mjs +1 -1
- package/esm2022/lib/smart-component-layout/api/param.mjs +1 -1
- package/esm2022/lib/smart-component-layout/api/variables.mjs +1 -1
- package/esm2022/lib/smart-diagram/api/api/api.mjs +1 -1
- package/esm2022/lib/smart-diagram/api/api/diagramService.service.mjs +1 -1
- package/esm2022/lib/smart-diagram/api/api.module.mjs +1 -1
- package/esm2022/lib/smart-diagram/api/configuration.mjs +1 -1
- package/esm2022/lib/smart-diagram/api/encoder.mjs +1 -1
- package/esm2022/lib/smart-diagram/api/index.mjs +1 -1
- package/esm2022/lib/smart-diagram/api/model/diagramColor.mjs +1 -1
- package/esm2022/lib/smart-diagram/api/model/diagramDataContainer.mjs +1 -1
- package/esm2022/lib/smart-diagram/api/model/diagramDataItem.mjs +1 -1
- package/esm2022/lib/smart-diagram/api/model/diagramDataSet.mjs +1 -1
- package/esm2022/lib/smart-diagram/api/model/diagramDescriptor.mjs +1 -1
- package/esm2022/lib/smart-diagram/api/model/diagramModel.mjs +1 -1
- package/esm2022/lib/smart-diagram/api/model/diagramShape.mjs +1 -1
- package/esm2022/lib/smart-diagram/api/model/drawTime.mjs +1 -1
- package/esm2022/lib/smart-diagram/api/model/labelText.mjs +1 -1
- package/esm2022/lib/smart-diagram/api/model/models.mjs +1 -1
- package/esm2022/lib/smart-diagram/api/param.mjs +1 -1
- package/esm2022/lib/smart-diagram/api/variables.mjs +1 -1
- package/esm2022/lib/smart-form/api/api/api.mjs +1 -1
- package/esm2022/lib/smart-form/api/api/default.service.mjs +1 -1
- package/esm2022/lib/smart-form/api/api.module.mjs +1 -1
- package/esm2022/lib/smart-form/api/configuration.mjs +1 -1
- package/esm2022/lib/smart-form/api/encoder.mjs +1 -1
- package/esm2022/lib/smart-form/api/index.mjs +1 -1
- package/esm2022/lib/smart-form/api/model/dateFieldProperties.mjs +1 -1
- package/esm2022/lib/smart-form/api/model/fileUploaderProperties.mjs +1 -1
- package/esm2022/lib/smart-form/api/model/imageProperties.mjs +1 -1
- package/esm2022/lib/smart-form/api/model/multiFileUploaderProperties.mjs +1 -1
- package/esm2022/lib/smart-form/api/model/propertyMapping.mjs +1 -1
- package/esm2022/lib/smart-form/api/model/recordingUploaderProperties.mjs +1 -1
- package/esm2022/lib/smart-form/api/model/selectionDefinition.mjs +1 -1
- package/esm2022/lib/smart-form/api/model/smartFormInputMode.mjs +1 -1
- package/esm2022/lib/smart-form/api/model/smartFormWidgetDirection.mjs +1 -1
- package/esm2022/lib/smart-form/api/model/smartFormWidgetType.mjs +1 -1
- package/esm2022/lib/smart-form/api/model/smartLayoutDefinition.mjs +1 -1
- package/esm2022/lib/smart-form/api/model/smartMatrixModel.mjs +1 -1
- package/esm2022/lib/smart-form/api/model/smartWidgetDefinition.mjs +1 -1
- package/esm2022/lib/smart-form/api/model/smartWidgetHint.mjs +1 -1
- package/esm2022/lib/smart-form/api/model/sortDefinition.mjs +1 -1
- package/esm2022/lib/smart-form/api/model/textBoxProperties.mjs +1 -1
- package/esm2022/lib/smart-form/api/model/textFieldProperties.mjs +1 -1
- package/esm2022/lib/smart-form/api/model/valueChangeMode.mjs +1 -1
- package/esm2022/lib/smart-form/api/param.mjs +1 -1
- package/esm2022/lib/smart-form/api/variables.mjs +1 -1
- package/esm2022/lib/smart-map/api/api/api.mjs +1 -1
- package/esm2022/lib/smart-map/api/api/geoMap.service.mjs +1 -1
- package/esm2022/lib/smart-map/api/api.module.mjs +1 -1
- package/esm2022/lib/smart-map/api/configuration.mjs +1 -1
- package/esm2022/lib/smart-map/api/encoder.mjs +1 -1
- package/esm2022/lib/smart-map/api/index.mjs +1 -1
- package/esm2022/lib/smart-map/api/model/gPSPosition.mjs +1 -1
- package/esm2022/lib/smart-map/api/model/gPSRoute.mjs +1 -1
- package/esm2022/lib/smart-map/api/model/geoMapChange.mjs +1 -1
- package/esm2022/lib/smart-map/api/model/geoMapDataLoadingMode.mjs +1 -1
- package/esm2022/lib/smart-map/api/model/geoMapDataSourceDescriptor.mjs +1 -1
- package/esm2022/lib/smart-map/api/model/geoMapDataSourceType.mjs +1 -1
- package/esm2022/lib/smart-map/api/model/geoMapEditingSession.mjs +1 -1
- package/esm2022/lib/smart-map/api/model/geoMapInteraction.mjs +1 -1
- package/esm2022/lib/smart-map/api/model/geoMapItem.mjs +1 -1
- package/esm2022/lib/smart-map/api/model/geoMapItemKind.mjs +1 -1
- package/esm2022/lib/smart-map/api/model/geoMapLayer.mjs +1 -1
- package/esm2022/lib/smart-map/api/model/geoMapLayerChange.mjs +1 -1
- package/esm2022/lib/smart-map/api/model/geoMapLayerDescriptor.mjs +1 -1
- package/esm2022/lib/smart-map/api/model/geoMapModel.mjs +1 -1
- package/esm2022/lib/smart-map/api/model/geoMapOperationMode.mjs +1 -1
- package/esm2022/lib/smart-map/api/model/geoMapSelectionMode.mjs +1 -1
- package/esm2022/lib/smart-map/api/model/geoMapServerModel.mjs +1 -1
- package/esm2022/lib/smart-map/api/model/geoMapTextType.mjs +1 -1
- package/esm2022/lib/smart-map/api/model/geoMapViewState.mjs +1 -1
- package/esm2022/lib/smart-map/api/model/geoMapViewport.mjs +1 -1
- package/esm2022/lib/smart-map/api/model/models.mjs +1 -1
- package/esm2022/lib/smart-map/api/param.mjs +1 -1
- package/esm2022/lib/smart-map/api/variables.mjs +1 -1
- package/esm2022/lib/view-context/api/model/smartLinkData.mjs +1 -1
- package/esm2022/lib/view-context/api/model/uiAction.mjs +1 -1
- package/esm2022/lib/view-context/api/model/uiActionDefinition.mjs +1 -1
- package/esm2022/lib/view-context/api/model/uiActionDefinitionEntry.mjs +1 -1
- package/esm2022/lib/view-context/api/model/uiActionInputType.mjs +1 -1
- package/esm2022/lib/view-context/api/model/uiActionSchedule.mjs +1 -1
- package/esm2022/lib/view-context/api/model/uiActionUploadDescriptor.mjs +1 -1
- package/esm2022/lib/view-context/api/model/viewEventHandler.mjs +1 -1
- package/esm2022/lib/view-context/smart-ui-action/ui-action.service.mjs +13 -3
- package/esm2022/projects.mjs +2 -1
- package/fesm2022/smartbit4all-ng-client.mjs +18 -6
- package/fesm2022/smartbit4all-ng-client.mjs.map +1 -1
- package/lib/session/smart-backend-bootstrap.config.d.ts +9 -1
- package/lib/session/smart-backend-bootstrap.service.d.ts +3 -1
- package/lib/view-context/smart-ui-action/ui-action.service.d.ts +3 -1
- package/package.json +1 -1
- package/projects.d.ts +1 -0
- package/smartbit4all-ng-client-4.5.43.tgz +0 -0
- package/smartbit4all-ng-client-4.5.41.tgz +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpErrorResponse } from '@angular/common/http';
|
|
2
|
-
import { UiActionDescriptor } from '../view-context/api';
|
|
2
|
+
import { UiActionDescriptor, UiActionRequest } from '../view-context/api';
|
|
3
3
|
import { SmartViewHandlerModel } from '../view-context/smart-view-context.model';
|
|
4
4
|
import { SessionError } from './smart-session-handler.service';
|
|
5
5
|
/**
|
|
@@ -62,4 +62,12 @@ export interface SmartBackendBootstrapConfig {
|
|
|
62
62
|
* tear down the webview and return to the native login page.
|
|
63
63
|
*/
|
|
64
64
|
onViewContextLost?: (err: SessionError) => Promise<void> | void;
|
|
65
|
+
/**
|
|
66
|
+
* Hook called when an action is rejected by the server by returning a 4xx status code.
|
|
67
|
+
*
|
|
68
|
+
* @param req the UiActionRequest attempted to be executed
|
|
69
|
+
* @param err the error the server responded with
|
|
70
|
+
* @returns
|
|
71
|
+
*/
|
|
72
|
+
onActionError?: (req: UiActionRequest, err: any) => void;
|
|
65
73
|
}
|
|
@@ -3,6 +3,7 @@ import { SmartSessionService } from './smart-session.service';
|
|
|
3
3
|
import { SmartViewContextService } from '../view-context/smart-view-context.service';
|
|
4
4
|
import { SessionError, SmartSessionHandlerService } from './smart-session-handler.service';
|
|
5
5
|
import { SmartBackendBootstrapConfig, SmartBackendBootstrapCredentials } from './smart-backend-bootstrap.config';
|
|
6
|
+
import { UiActionService } from '../view-context/smart-ui-action/ui-action.service';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
/**
|
|
8
9
|
* Thrown by `whenReady()` when the viewcontext was rebuilt between the
|
|
@@ -18,13 +19,14 @@ export declare class ViewContextRebuiltError extends Error {
|
|
|
18
19
|
export declare class SmartBackendBootstrapService implements SmartSessionHandlerService {
|
|
19
20
|
private session;
|
|
20
21
|
private viewContext;
|
|
22
|
+
private uiActionService;
|
|
21
23
|
private config?;
|
|
22
24
|
private runningInit?;
|
|
23
25
|
private lastInitFailed;
|
|
24
26
|
private mode?;
|
|
25
27
|
private runningViewContextLost?;
|
|
26
28
|
private runningSessionError?;
|
|
27
|
-
constructor(session: SmartSessionService, viewContext: SmartViewContextService);
|
|
29
|
+
constructor(session: SmartSessionService, viewContext: SmartViewContextService, uiActionService: UiActionService);
|
|
28
30
|
configure(config: SmartBackendBootstrapConfig): void;
|
|
29
31
|
private handleSmartLink;
|
|
30
32
|
start(): Promise<void>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OnDestroy } from '@angular/core';
|
|
2
2
|
import { MatSnackBar } from '@angular/material/snack-bar';
|
|
3
|
-
import { UiAction } from '../api';
|
|
3
|
+
import { UiAction, UiActionRequest } from '../api';
|
|
4
4
|
import type { UiActionConfirmDialogService } from './dialogs/ui-action-confirm-dialog/ui-action-confirm-dialog.service';
|
|
5
5
|
import type { UiActionInputDialogService } from './dialogs/ui-action-input-dialog/ui-action-input-dialog.service';
|
|
6
6
|
import { UiActionModel } from './ui-action.model';
|
|
@@ -25,8 +25,10 @@ export declare class UiActionService implements OnDestroy {
|
|
|
25
25
|
private _snackBar;
|
|
26
26
|
private viewContext;
|
|
27
27
|
private _destroy$;
|
|
28
|
+
private onActionError;
|
|
28
29
|
constructor(confirmDialogService: UiActionConfirmDialogService, textFieldDialogService: UiActionInputDialogService, fileUploadDialogService: UiActionFileUploadDialogService, _snackBar: MatSnackBar, viewContext: SmartViewContextService);
|
|
29
30
|
ngOnDestroy(): void;
|
|
31
|
+
setActionErrorHandler(f: (uiActionRequest: UiActionRequest, err: any) => void): void;
|
|
30
32
|
execute(uiAction: UiAction, uiActionModel: UiActionModel, options?: ExecuteUiActionOptions): Promise<void>;
|
|
31
33
|
private handleInputType;
|
|
32
34
|
private handleInputTypeTextField;
|
package/package.json
CHANGED
package/projects.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export * from './lib/smart-ng-client.service';
|
|
|
2
2
|
export * from './lib/smart-ng-client.module';
|
|
3
3
|
export * from './lib/smart-client/smart-file-uploader/smart-file-uploader.component';
|
|
4
4
|
export * from './lib/smart-client/projects';
|
|
5
|
+
export * from './lib/theme/theme.service';
|
|
5
6
|
export * from './lib/component-factory-service/projects';
|
|
6
7
|
export * from './lib/session/projects';
|
|
7
8
|
export * from './lib/smart-component-layout/projects';
|
|
Binary file
|
|
Binary file
|