@smartbit4all/ng-client 1.0.0
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/README.md +386 -0
- package/esm2020/lib/session/api/api/api.mjs +4 -0
- package/esm2020/lib/session/api/api/session.service.mjs +306 -0
- package/esm2020/lib/session/api/configuration.mjs +91 -0
- package/esm2020/lib/session/api/encoder.mjs +19 -0
- package/esm2020/lib/session/api/index.mjs +3 -0
- package/esm2020/lib/session/api/model/accountInfo.mjs +13 -0
- package/esm2020/lib/session/api/model/apiError.mjs +13 -0
- package/esm2020/lib/session/api/model/authenticationProviderData.mjs +13 -0
- package/esm2020/lib/session/api/model/getAuthenticationProvidersResponse.mjs +2 -0
- package/esm2020/lib/session/api/model/models.mjs +9 -0
- package/esm2020/lib/session/api/model/refreshSessionRequest.mjs +13 -0
- package/esm2020/lib/session/api/model/session.mjs +2 -0
- package/esm2020/lib/session/api/model/sessionInfoData.mjs +2 -0
- package/esm2020/lib/session/api/model/userActivityLog.mjs +13 -0
- package/esm2020/lib/session/api/param.mjs +2 -0
- package/esm2020/lib/session/api/variables.mjs +9 -0
- package/esm2020/lib/session/cookie-service/smart-cookie.service.mjs +225 -0
- package/esm2020/lib/session/dev-tool/smart-dev-tool-dialog/smart-dev-tool-dialog.component.mjs +90 -0
- package/esm2020/lib/session/dev-tool/smart-dev-tool-dialog/smart-dev-tool-dialog.service.mjs +43 -0
- package/esm2020/lib/session/dev-tool/smart-dev-tool-floating-button/smart-dev-tool-floating-button.component.mjs +40 -0
- package/esm2020/lib/session/dev-tool/smart-dev-tool.interceptor.mjs +52 -0
- package/esm2020/lib/session/dev-tool/smart-dev-tool.service.mjs +161 -0
- package/esm2020/lib/session/projects.mjs +12 -0
- package/esm2020/lib/session/smart-error-catching.interceptor.mjs +71 -0
- package/esm2020/lib/session/smart-header-maintainer.interceptor.mjs +36 -0
- package/esm2020/lib/session/smart-session-handler.service.mjs +6 -0
- package/esm2020/lib/session/smart-session.module.mjs +74 -0
- package/esm2020/lib/session/smart-session.service.mjs +204 -0
- package/esm2020/lib/session/smart-timer/smart-session-timer.component.mjs +35 -0
- package/esm2020/lib/session/smart-timer/smart-session-timer.service.mjs +51 -0
- package/esm2020/lib/smart-ng-client.module.mjs +20 -0
- package/esm2020/lib/smart-ng-client.service.mjs +19 -0
- package/esm2020/lib/view-context/api/api/api.mjs +4 -0
- package/esm2020/lib/view-context/api/api/view.service.mjs +401 -0
- package/esm2020/lib/view-context/api/api.module.mjs +40 -0
- package/esm2020/lib/view-context/api/configuration.mjs +91 -0
- package/esm2020/lib/view-context/api/encoder.mjs +19 -0
- package/esm2020/lib/view-context/api/index.mjs +7 -0
- package/esm2020/lib/view-context/api/model/closeResult.mjs +17 -0
- package/esm2020/lib/view-context/api/model/componentConstraint.mjs +2 -0
- package/esm2020/lib/view-context/api/model/messageData.mjs +2 -0
- package/esm2020/lib/view-context/api/model/messageOption.mjs +2 -0
- package/esm2020/lib/view-context/api/model/messageOptionType.mjs +17 -0
- package/esm2020/lib/view-context/api/model/messageResult.mjs +2 -0
- package/esm2020/lib/view-context/api/model/messageType.mjs +18 -0
- package/esm2020/lib/view-context/api/model/models.mjs +29 -0
- package/esm2020/lib/view-context/api/model/openPendingData.mjs +2 -0
- package/esm2020/lib/view-context/api/model/smartLinkData.mjs +2 -0
- package/esm2020/lib/view-context/api/model/uiAction.mjs +2 -0
- package/esm2020/lib/view-context/api/model/uiActionButtonDescriptor.mjs +13 -0
- package/esm2020/lib/view-context/api/model/uiActionButtonIconPos.mjs +16 -0
- package/esm2020/lib/view-context/api/model/uiActionButtonType.mjs +21 -0
- package/esm2020/lib/view-context/api/model/uiActionDescriptor.mjs +2 -0
- package/esm2020/lib/view-context/api/model/uiActionDialogDescriptor.mjs +2 -0
- package/esm2020/lib/view-context/api/model/uiActionFeedbackType.mjs +16 -0
- package/esm2020/lib/view-context/api/model/uiActionInputType.mjs +18 -0
- package/esm2020/lib/view-context/api/model/uiActionRequest.mjs +13 -0
- package/esm2020/lib/view-context/api/model/view.mjs +2 -0
- package/esm2020/lib/view-context/api/model/viewApiError.mjs +13 -0
- package/esm2020/lib/view-context/api/model/viewConstraint.mjs +2 -0
- package/esm2020/lib/view-context/api/model/viewContext.mjs +2 -0
- package/esm2020/lib/view-context/api/model/viewContextData.mjs +2 -0
- package/esm2020/lib/view-context/api/model/viewContextUpdate.mjs +2 -0
- package/esm2020/lib/view-context/api/model/viewData.mjs +2 -0
- package/esm2020/lib/view-context/api/model/viewState.mjs +21 -0
- package/esm2020/lib/view-context/api/model/viewStateUpdate.mjs +2 -0
- package/esm2020/lib/view-context/api/model/viewType.mjs +17 -0
- package/esm2020/lib/view-context/api/param.mjs +2 -0
- package/esm2020/lib/view-context/api/variables.mjs +9 -0
- package/esm2020/lib/view-context/message-dialog/message-dialog.component.mjs +63 -0
- package/esm2020/lib/view-context/projects.mjs +17 -0
- package/esm2020/lib/view-context/smart-ui-action/components/success-snack-bar/success-snack-bar.component.mjs +30 -0
- package/esm2020/lib/view-context/smart-ui-action/dialogs/ui-action-confirm-dialog/ui-action-confirm-dialog.component.mjs +53 -0
- package/esm2020/lib/view-context/smart-ui-action/dialogs/ui-action-confirm-dialog/ui-action-confirm-dialog.service.mjs +47 -0
- package/esm2020/lib/view-context/smart-ui-action/dialogs/ui-action-input-dialog/ui-action-input-dialog.component.mjs +112 -0
- package/esm2020/lib/view-context/smart-ui-action/dialogs/ui-action-input-dialog/ui-action-input-dialog.service.mjs +51 -0
- package/esm2020/lib/view-context/smart-ui-action/ui-action-toolbar.component.mjs +81 -0
- package/esm2020/lib/view-context/smart-ui-action/ui-action.descriptor.service.mjs +113 -0
- package/esm2020/lib/view-context/smart-ui-action/ui-action.model.mjs +7 -0
- package/esm2020/lib/view-context/smart-ui-action/ui-action.service.mjs +149 -0
- package/esm2020/lib/view-context/smart-view-context-error-dialog/smart-view-context-error-dialog.component.mjs +24 -0
- package/esm2020/lib/view-context/smart-view-context-error-dialog/smart-view-context-error-dialog.service.mjs +44 -0
- package/esm2020/lib/view-context/smart-view-context.interceptor.mjs +28 -0
- package/esm2020/lib/view-context/smart-view-context.model.mjs +2 -0
- package/esm2020/lib/view-context/smart-view-context.module.mjs +84 -0
- package/esm2020/lib/view-context/smart-view-context.service.mjs +310 -0
- package/esm2020/lib/view-context/smart-view-redirect/smart-view-redirect.mjs +33 -0
- package/esm2020/lib/view-context/value-api/api.module.mjs +40 -0
- package/esm2020/lib/view-context/value-api/configuration.mjs +91 -0
- package/esm2020/lib/view-context/value-api/index.mjs +6 -0
- package/esm2020/lib/view-context/value-api/model/models.mjs +2 -0
- package/esm2020/lib/view-context/value-api/model/valueSetData.mjs +13 -0
- package/esm2020/lib/view-context/value-api/param.mjs +2 -0
- package/esm2020/lib/view-context/value-api/variables.mjs +9 -0
- package/esm2020/projects.mjs +8 -0
- package/esm2020/smartbit4all-ng-client.mjs +5 -0
- package/fesm2015/smartbit4all-ng-client.mjs +3418 -0
- package/fesm2015/smartbit4all-ng-client.mjs.map +1 -0
- package/fesm2020/smartbit4all-ng-client.mjs +3423 -0
- package/fesm2020/smartbit4all-ng-client.mjs.map +1 -0
- package/lib/session/api/api/api.d.ts +3 -0
- package/lib/session/api/api/session.service.d.ts +107 -0
- package/lib/session/api/configuration.d.ts +104 -0
- package/lib/session/api/encoder.d.ts +11 -0
- package/lib/session/api/index.d.ts +2 -0
- package/lib/session/api/model/accountInfo.d.ts +22 -0
- package/lib/session/api/model/apiError.d.ts +15 -0
- package/lib/session/api/model/authenticationProviderData.d.ts +17 -0
- package/lib/session/api/model/getAuthenticationProvidersResponse.d.ts +15 -0
- package/lib/session/api/model/models.d.ts +8 -0
- package/lib/session/api/model/refreshSessionRequest.d.ts +14 -0
- package/lib/session/api/model/session.d.ts +32 -0
- package/lib/session/api/model/sessionInfoData.d.ts +22 -0
- package/lib/session/api/model/userActivityLog.d.ts +33 -0
- package/lib/session/api/param.d.ts +37 -0
- package/lib/session/api/variables.d.ts +8 -0
- package/lib/session/cookie-service/smart-cookie.service.d.ts +129 -0
- package/lib/session/dev-tool/smart-dev-tool-dialog/smart-dev-tool-dialog.component.d.ts +28 -0
- package/lib/session/dev-tool/smart-dev-tool-dialog/smart-dev-tool-dialog.service.d.ts +18 -0
- package/lib/session/dev-tool/smart-dev-tool-floating-button/smart-dev-tool-floating-button.component.d.ts +15 -0
- package/lib/session/dev-tool/smart-dev-tool.interceptor.d.ts +18 -0
- package/lib/session/dev-tool/smart-dev-tool.service.d.ts +55 -0
- package/lib/session/projects.d.ts +8 -0
- package/lib/session/smart-error-catching.interceptor.d.ts +13 -0
- package/lib/session/smart-header-maintainer.interceptor.d.ts +11 -0
- package/lib/session/smart-session-handler.service.d.ts +11 -0
- package/lib/session/smart-session.module.d.ts +15 -0
- package/lib/session/smart-session.service.d.ts +50 -0
- package/lib/session/smart-timer/smart-session-timer.component.d.ts +14 -0
- package/lib/session/smart-timer/smart-session-timer.service.d.ts +21 -0
- package/lib/smart-ng-client.module.d.ts +8 -0
- package/lib/smart-ng-client.service.d.ts +10 -0
- package/lib/view-context/api/api/api.d.ts +3 -0
- package/lib/view-context/api/api/view.service.d.ts +147 -0
- package/lib/view-context/api/api.module.d.ts +11 -0
- package/lib/view-context/api/configuration.d.ts +104 -0
- package/lib/view-context/api/encoder.d.ts +11 -0
- package/lib/view-context/api/index.d.ts +6 -0
- package/lib/view-context/api/model/closeResult.d.ts +17 -0
- package/lib/view-context/api/model/componentConstraint.d.ts +25 -0
- package/lib/view-context/api/model/messageData.d.ts +27 -0
- package/lib/view-context/api/model/messageOption.d.ts +18 -0
- package/lib/view-context/api/model/messageOptionType.d.ts +17 -0
- package/lib/view-context/api/model/messageResult.d.ts +16 -0
- package/lib/view-context/api/model/messageType.d.ts +18 -0
- package/lib/view-context/api/model/models.d.ts +28 -0
- package/lib/view-context/api/model/openPendingData.d.ts +22 -0
- package/lib/view-context/api/model/smartLinkData.d.ts +21 -0
- package/lib/view-context/api/model/uiAction.d.ts +26 -0
- package/lib/view-context/api/model/uiActionButtonDescriptor.d.ts +18 -0
- package/lib/view-context/api/model/uiActionButtonIconPos.d.ts +19 -0
- package/lib/view-context/api/model/uiActionButtonType.d.ts +24 -0
- package/lib/view-context/api/model/uiActionDescriptor.d.ts +32 -0
- package/lib/view-context/api/model/uiActionDialogDescriptor.d.ts +22 -0
- package/lib/view-context/api/model/uiActionFeedbackType.d.ts +19 -0
- package/lib/view-context/api/model/uiActionInputType.d.ts +18 -0
- package/lib/view-context/api/model/uiActionRequest.d.ts +27 -0
- package/lib/view-context/api/model/view.d.ts +36 -0
- package/lib/view-context/api/model/viewApiError.d.ts +18 -0
- package/lib/view-context/api/model/viewConstraint.d.ts +18 -0
- package/lib/view-context/api/model/viewContext.d.ts +22 -0
- package/lib/view-context/api/model/viewContextData.d.ts +19 -0
- package/lib/view-context/api/model/viewContextUpdate.d.ts +22 -0
- package/lib/view-context/api/model/viewData.d.ts +25 -0
- package/lib/view-context/api/model/viewState.d.ts +21 -0
- package/lib/view-context/api/model/viewStateUpdate.d.ts +22 -0
- package/lib/view-context/api/model/viewType.d.ts +17 -0
- package/lib/view-context/api/param.d.ts +37 -0
- package/lib/view-context/api/variables.d.ts +8 -0
- package/lib/view-context/message-dialog/message-dialog.component.d.ts +17 -0
- package/lib/view-context/projects.d.ts +13 -0
- package/lib/view-context/smart-ui-action/components/success-snack-bar/success-snack-bar.component.d.ts +13 -0
- package/lib/view-context/smart-ui-action/dialogs/ui-action-confirm-dialog/ui-action-confirm-dialog.component.d.ts +25 -0
- package/lib/view-context/smart-ui-action/dialogs/ui-action-confirm-dialog/ui-action-confirm-dialog.service.d.ts +18 -0
- package/lib/view-context/smart-ui-action/dialogs/ui-action-input-dialog/ui-action-input-dialog.component.d.ts +28 -0
- package/lib/view-context/smart-ui-action/dialogs/ui-action-input-dialog/ui-action-input-dialog.service.d.ts +25 -0
- package/lib/view-context/smart-ui-action/ui-action-toolbar.component.d.ts +24 -0
- package/lib/view-context/smart-ui-action/ui-action.descriptor.service.d.ts +21 -0
- package/lib/view-context/smart-ui-action/ui-action.model.d.ts +30 -0
- package/lib/view-context/smart-ui-action/ui-action.service.d.ts +21 -0
- package/lib/view-context/smart-view-context-error-dialog/smart-view-context-error-dialog.component.d.ts +13 -0
- package/lib/view-context/smart-view-context-error-dialog/smart-view-context-error-dialog.service.d.ts +17 -0
- package/lib/view-context/smart-view-context.interceptor.d.ts +13 -0
- package/lib/view-context/smart-view-context.model.d.ts +30 -0
- package/lib/view-context/smart-view-context.module.d.ts +20 -0
- package/lib/view-context/smart-view-context.service.d.ts +60 -0
- package/lib/view-context/smart-view-redirect/smart-view-redirect.d.ts +14 -0
- package/lib/view-context/value-api/api.module.d.ts +11 -0
- package/lib/view-context/value-api/configuration.d.ts +104 -0
- package/lib/view-context/value-api/index.d.ts +5 -0
- package/lib/view-context/value-api/model/models.d.ts +1 -0
- package/lib/view-context/value-api/model/valueSetData.d.ts +39 -0
- package/lib/view-context/value-api/param.d.ts +37 -0
- package/lib/view-context/value-api/variables.d.ts +8 -0
- package/package.json +38 -0
- package/projects.d.ts +4 -0
- package/smartbit4all-ng-client-1.0.0.tgz +0 -0
- package/smartbit4all-ng-client.d.ts +5 -0
- package/src/lib/session/api/README.md +226 -0
- package/src/lib/view-context/api/README.md +226 -0
- package/src/lib/view-context/value-api/README.md +226 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { OnDestroy } from "@angular/core";
|
|
2
|
+
import { UiActionDescriptor } from "../../../api";
|
|
3
|
+
import { UiActionDescriptorService } from "../../ui-action.descriptor.service";
|
|
4
|
+
import { UiActionConfirmDialogService } from "./ui-action-confirm-dialog.service";
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class UiActionConfirmDialogComponent implements OnDestroy {
|
|
7
|
+
private service;
|
|
8
|
+
private manager;
|
|
9
|
+
code: string;
|
|
10
|
+
dialogType: "dialog" | "confirmDialog" | "inputDialog";
|
|
11
|
+
descriptor?: UiActionDescriptor;
|
|
12
|
+
constructor(service: UiActionConfirmDialogService, manager: UiActionDescriptorService);
|
|
13
|
+
setUp(): Promise<void>;
|
|
14
|
+
ngOnDestroy(): void;
|
|
15
|
+
getTitle(): string;
|
|
16
|
+
getText(): string;
|
|
17
|
+
getActionButtonLabel(): string;
|
|
18
|
+
getActionButtonColor(): string;
|
|
19
|
+
getCancelButtonLabel(): string;
|
|
20
|
+
getCancelButtonColor(): string;
|
|
21
|
+
doAction(): void;
|
|
22
|
+
cancel(): void;
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UiActionConfirmDialogComponent, never>;
|
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UiActionConfirmDialogComponent, "app-ui-action-confirm-dialog", never, {}, {}, never, never>;
|
|
25
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { MatDialog } from "@angular/material/dialog";
|
|
2
|
+
import { Router } from "@angular/router";
|
|
3
|
+
import { SmartdialogService } from "@smartbit4all/dialog";
|
|
4
|
+
import { Subject } from "rxjs";
|
|
5
|
+
import { UiAction } from "../../../api";
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class UiActionConfirmDialogService extends SmartdialogService {
|
|
8
|
+
_destroy$: Subject<void>;
|
|
9
|
+
action: UiAction;
|
|
10
|
+
onAction: Subject<void>;
|
|
11
|
+
shouldDoAction: boolean;
|
|
12
|
+
constructor(dialog: MatDialog, router: Router);
|
|
13
|
+
openDialog(): void;
|
|
14
|
+
doAction(): void;
|
|
15
|
+
cancel(): void;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UiActionConfirmDialogService, never>;
|
|
17
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<UiActionConfirmDialogService>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { OnDestroy } from "@angular/core";
|
|
2
|
+
import { SmartForm, SmartformComponent } from "@smartbit4all/form";
|
|
3
|
+
import { UiActionDescriptor } from "../../../api";
|
|
4
|
+
import { UiActionDescriptorService } from "../../ui-action.descriptor.service";
|
|
5
|
+
import { UiActionInputDialogService } from "./ui-action-input-dialog.service";
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class UiActionInputDialogComponent implements OnDestroy {
|
|
8
|
+
private service;
|
|
9
|
+
private manager;
|
|
10
|
+
folderFormChild: SmartformComponent;
|
|
11
|
+
code: string;
|
|
12
|
+
folderForm: SmartForm;
|
|
13
|
+
dialogType: "dialog" | "inputDialog" | "input2Dialog";
|
|
14
|
+
descriptor?: UiActionDescriptor;
|
|
15
|
+
constructor(service: UiActionInputDialogService, manager: UiActionDescriptorService);
|
|
16
|
+
ngOnDestroy(): void;
|
|
17
|
+
setUp(): Promise<void>;
|
|
18
|
+
getTitle(): string;
|
|
19
|
+
getActionButtonLabel(): string;
|
|
20
|
+
getActionButtonColor(): string;
|
|
21
|
+
getCancelButtonLabel(): string;
|
|
22
|
+
getCancelButtonColor(): string;
|
|
23
|
+
constructForm(): void;
|
|
24
|
+
save(): void;
|
|
25
|
+
cancel(): void;
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UiActionInputDialogComponent, never>;
|
|
27
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UiActionInputDialogComponent, "smart-ui-action-input-dialog", never, {}, {}, never, never>;
|
|
28
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { MatDialog } from "@angular/material/dialog";
|
|
2
|
+
import { Router } from "@angular/router";
|
|
3
|
+
import { SmartdialogService } from "@smartbit4all/dialog";
|
|
4
|
+
import { Subject } from "rxjs";
|
|
5
|
+
import { UiAction, UiActionRequest } from "../../../api";
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class UiActionInputDialogService extends SmartdialogService {
|
|
8
|
+
_destroy$: Subject<void>;
|
|
9
|
+
inputTypeName: "inputDialog" | "input2Dialog";
|
|
10
|
+
action: UiAction;
|
|
11
|
+
nodeName?: string;
|
|
12
|
+
onAction: Subject<EditFolderAction>;
|
|
13
|
+
params?: any;
|
|
14
|
+
constructor(dialog: MatDialog, router: Router);
|
|
15
|
+
setDataAndOpenDialog(action: UiAction, nodeName?: string): void;
|
|
16
|
+
openDialog(): void;
|
|
17
|
+
onSave(params: any): Promise<void>;
|
|
18
|
+
cancel(): void;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UiActionInputDialogService, never>;
|
|
20
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<UiActionInputDialogService>;
|
|
21
|
+
}
|
|
22
|
+
export interface EditFolderAction {
|
|
23
|
+
nodeId: string;
|
|
24
|
+
uiActionRequest: UiActionRequest;
|
|
25
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { OnChanges, OnDestroy, OnInit, SimpleChanges } from "@angular/core";
|
|
2
|
+
import { UiActionButtonIconPos } from "../api";
|
|
3
|
+
import { UiActionDescriptorService } from "./ui-action.descriptor.service";
|
|
4
|
+
import { UiActionModel } from "./ui-action.model";
|
|
5
|
+
import { UiActionService } from "./ui-action.service";
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class UiActionToolbarComponent implements OnInit, OnChanges, OnDestroy {
|
|
8
|
+
private service;
|
|
9
|
+
private manager;
|
|
10
|
+
private _destroy$;
|
|
11
|
+
uiActionModels: UiActionModel[];
|
|
12
|
+
uiActionModelsWithDescriptions?: UiActionModel[];
|
|
13
|
+
constructor(service: UiActionService, manager: UiActionDescriptorService);
|
|
14
|
+
ngOnInit(): void;
|
|
15
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
16
|
+
ngOnDestroy(): void;
|
|
17
|
+
setUp(): Promise<void>;
|
|
18
|
+
onActionClicked(event: any, uiActionModel: UiActionModel): void;
|
|
19
|
+
getType(uiActionModel: UiActionModel): string;
|
|
20
|
+
iconPosition(): typeof UiActionButtonIconPos;
|
|
21
|
+
isOnlyIcon(uiActionModel: UiActionModel): boolean;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UiActionToolbarComponent, never>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UiActionToolbarComponent, "smart-ui-action-toolbar", never, { "uiActionModels": "uiActionModels"; }, {}, never, never>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { OnDestroy } from "@angular/core";
|
|
2
|
+
import { UiAction, UiActionDescriptor } from "../api";
|
|
3
|
+
import { SmartViewContextService } from "../smart-view-context.service";
|
|
4
|
+
import { Subject } from "rxjs";
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class UiActionDescriptorService implements OnDestroy {
|
|
7
|
+
private viewContext;
|
|
8
|
+
private _destroy$;
|
|
9
|
+
languageChanged: Subject<void>;
|
|
10
|
+
keysToTranslate: string[];
|
|
11
|
+
constructor(viewContext: SmartViewContextService);
|
|
12
|
+
ngOnDestroy(): void;
|
|
13
|
+
private subscribeToTranslateService;
|
|
14
|
+
getActionDescriptor(uiAction: UiAction): Promise<UiActionDescriptor>;
|
|
15
|
+
private translateUiActionDescriptor;
|
|
16
|
+
private deepTranslate;
|
|
17
|
+
private setUpUnkownDialogDescriptor;
|
|
18
|
+
private basicActionDescriptors;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UiActionDescriptorService, never>;
|
|
20
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<UiActionDescriptorService>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Subject } from "rxjs";
|
|
2
|
+
import { UiAction, UiActionDescriptor, UiActionRequest } from "../api";
|
|
3
|
+
export interface UiActionModel {
|
|
4
|
+
uiAction: UiAction;
|
|
5
|
+
serviceToUse: UseUiAction;
|
|
6
|
+
exception?: boolean;
|
|
7
|
+
descriptor?: UiActionDescriptor;
|
|
8
|
+
cssClass?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface UseUiAction {
|
|
11
|
+
submit: Subject<void>;
|
|
12
|
+
reSubscribeToChange: Subject<void>;
|
|
13
|
+
getAdditionalParams(uiAction: UiAction): UiActionAdditionalParams;
|
|
14
|
+
getModel(): any;
|
|
15
|
+
performUiActionRequest(uiActionRequest: UiActionRequest): Promise<any>;
|
|
16
|
+
handleSpecificDemandsAsynchronously(uiAction: UiAction, uiActionRequest: UiActionRequest): Promise<UiActionSpecificDemandResponse>;
|
|
17
|
+
}
|
|
18
|
+
export interface UiActionSpecificDemandResponse {
|
|
19
|
+
shouldPerformAction: boolean;
|
|
20
|
+
uiActionRequest?: UiActionRequest;
|
|
21
|
+
}
|
|
22
|
+
export interface UiActionAdditionalParams {
|
|
23
|
+
forTextField?: string;
|
|
24
|
+
forTextArea?: string;
|
|
25
|
+
}
|
|
26
|
+
export declare enum UiActionDialogType {
|
|
27
|
+
inputDialog = "inputDialog",
|
|
28
|
+
confirmDialog = "confirmDialog",
|
|
29
|
+
dialog = "dialog"
|
|
30
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { MatSnackBar } from "@angular/material/snack-bar";
|
|
2
|
+
import { UiAction } from "../api";
|
|
3
|
+
import { UiActionInputDialogService } from "./dialogs/ui-action-input-dialog/ui-action-input-dialog.service";
|
|
4
|
+
import { UiActionConfirmDialogService } from "./dialogs/ui-action-confirm-dialog/ui-action-confirm-dialog.service";
|
|
5
|
+
import { UiActionModel } from "./ui-action.model";
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class UiActionService {
|
|
8
|
+
private confirmDialogService;
|
|
9
|
+
private textFieldDialogService;
|
|
10
|
+
private _snackBar;
|
|
11
|
+
uiActionModel: UiActionModel;
|
|
12
|
+
constructor(confirmDialogService: UiActionConfirmDialogService, textFieldDialogService: UiActionInputDialogService, _snackBar: MatSnackBar);
|
|
13
|
+
execute(uiAction: UiAction): Promise<void>;
|
|
14
|
+
private handleInputType;
|
|
15
|
+
private handleInputTypeTextField;
|
|
16
|
+
private handleInputTypeUserSelect;
|
|
17
|
+
private performAction;
|
|
18
|
+
showSavedSnackbar(uiAction: UiAction): void;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UiActionService, never>;
|
|
20
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<UiActionService>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { OnInit } from "@angular/core";
|
|
2
|
+
import { SmartViewContextApiError } from "../smart-view-context.model";
|
|
3
|
+
import { SmartViewContextErrorDialogService } from "./smart-view-context-error-dialog.service";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class SmartViewContextErrorDialogComponent implements OnInit {
|
|
6
|
+
private service;
|
|
7
|
+
smartViewContextApiError: SmartViewContextApiError;
|
|
8
|
+
constructor(service: SmartViewContextErrorDialogService);
|
|
9
|
+
ngOnInit(): void;
|
|
10
|
+
onActionClick(): void;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SmartViewContextErrorDialogComponent, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SmartViewContextErrorDialogComponent, "lib-smart-view-context-error-dialog", never, {}, {}, never, never>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { MatDialog } from "@angular/material/dialog";
|
|
2
|
+
import { Router } from "@angular/router";
|
|
3
|
+
import { SmartdialogService } from "@smartbit4all/dialog";
|
|
4
|
+
import { ViewApiError } from "../api";
|
|
5
|
+
import { SmartViewContextApiError } from "../smart-view-context.model";
|
|
6
|
+
import { SmartViewContextService } from "../smart-view-context.service";
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class SmartViewContextErrorDialogService extends SmartdialogService {
|
|
9
|
+
private viewContext;
|
|
10
|
+
viewApiError?: ViewApiError;
|
|
11
|
+
constructor(dialog: MatDialog, router: Router, viewContext: SmartViewContextService);
|
|
12
|
+
handleAfterClosed(result: any): void;
|
|
13
|
+
openDialog(): void;
|
|
14
|
+
getSmartViewContextApiError(): SmartViewContextApiError;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SmartViewContextErrorDialogService, never>;
|
|
16
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SmartViewContextErrorDialogService>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from "@angular/common/http";
|
|
2
|
+
import { Observable } from "rxjs";
|
|
3
|
+
import { ViewApiError } from "./api";
|
|
4
|
+
import { SmartViewContextErrorDialogService } from "./smart-view-context-error-dialog/smart-view-context-error-dialog.service";
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class SmartViewContextInterceptor implements HttpInterceptor {
|
|
7
|
+
private viewContextErrorDialog;
|
|
8
|
+
constructor(viewContextErrorDialog: SmartViewContextErrorDialogService);
|
|
9
|
+
intercept(request: HttpRequest<unknown>, next: HttpHandler): Observable<HttpEvent<unknown>>;
|
|
10
|
+
openErrorDialog(viewApiError: ViewApiError): void;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SmartViewContextInterceptor, never>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SmartViewContextInterceptor>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ComponentType } from "@angular/cdk/portal";
|
|
2
|
+
import { EventEmitter } from "@angular/core";
|
|
3
|
+
import { MatDialogRef } from "@angular/material/dialog";
|
|
4
|
+
import { Observable } from "rxjs";
|
|
5
|
+
export interface SmartViewHandlerModel {
|
|
6
|
+
name: string;
|
|
7
|
+
route?: string;
|
|
8
|
+
component?: ComponentType<any>;
|
|
9
|
+
}
|
|
10
|
+
export interface SmartViewContextApiError {
|
|
11
|
+
code: string;
|
|
12
|
+
dialogTitle?: string;
|
|
13
|
+
message: string;
|
|
14
|
+
buttonLabel?: string;
|
|
15
|
+
customAction?: () => void;
|
|
16
|
+
}
|
|
17
|
+
export interface SmartViewContextApiErrors {
|
|
18
|
+
viewContextApiErrors: Array<SmartViewContextApiError>;
|
|
19
|
+
}
|
|
20
|
+
export interface SmartViewDialogRef {
|
|
21
|
+
uuid: string;
|
|
22
|
+
dialogRef: MatDialogRef<any, any>;
|
|
23
|
+
}
|
|
24
|
+
export interface SmartTranslateService {
|
|
25
|
+
get(key: string | Array<string>, interpolateParams?: Object): Observable<string | any>;
|
|
26
|
+
get onLangChange(): EventEmitter<any>;
|
|
27
|
+
get currentLang(): string;
|
|
28
|
+
set currentLang(currentLang: string);
|
|
29
|
+
instant(key: string | Array<string>, interpolateParams?: Object): string | any;
|
|
30
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./message-dialog/message-dialog.component";
|
|
3
|
+
import * as i2 from "./smart-view-context-error-dialog/smart-view-context-error-dialog.component";
|
|
4
|
+
import * as i3 from "./smart-view-redirect/smart-view-redirect";
|
|
5
|
+
import * as i4 from "./smart-ui-action/ui-action-toolbar.component";
|
|
6
|
+
import * as i5 from "./smart-ui-action/dialogs/ui-action-input-dialog/ui-action-input-dialog.component";
|
|
7
|
+
import * as i6 from "./smart-ui-action/dialogs/ui-action-confirm-dialog/ui-action-confirm-dialog.component";
|
|
8
|
+
import * as i7 from "@angular/common";
|
|
9
|
+
import * as i8 from "@angular/common/http";
|
|
10
|
+
import * as i9 from "@angular/material/core";
|
|
11
|
+
import * as i10 from "@angular/material/button";
|
|
12
|
+
import * as i11 from "@angular/material/icon";
|
|
13
|
+
import * as i12 from "@angular/material/snack-bar";
|
|
14
|
+
import * as i13 from "@smartbit4all/icon";
|
|
15
|
+
import * as i14 from "@smartbit4all/form";
|
|
16
|
+
export declare class SmartViewContextModule {
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SmartViewContextModule, never>;
|
|
18
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SmartViewContextModule, [typeof i1.MessageDialogComponent, typeof i2.SmartViewContextErrorDialogComponent, typeof i3.SmartViewRedirect, typeof i4.UiActionToolbarComponent, typeof i5.UiActionInputDialogComponent, typeof i6.UiActionConfirmDialogComponent], [typeof i7.CommonModule, typeof i8.HttpClientModule, typeof i9.MatCommonModule, typeof i10.MatButtonModule, typeof i11.MatIconModule, typeof i12.MatSnackBarModule, typeof i13.SmartIconModule, typeof i14.SmartformModule], [typeof i4.UiActionToolbarComponent, typeof i5.UiActionInputDialogComponent]>;
|
|
19
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SmartViewContextModule>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { SmartdialogService } from "@smartbit4all/dialog";
|
|
2
|
+
import { SmartNavigationService } from "@smartbit4all/navigation";
|
|
3
|
+
import { Subject } from "rxjs";
|
|
4
|
+
import { MessageData, MessageResult, UiActionDescriptor, ViewConstraint, ViewContextData, ViewContextUpdate, ViewData, ViewService } from "./api";
|
|
5
|
+
import { SmartTranslateService, SmartViewContextApiError, SmartViewContextApiErrors, SmartViewHandlerModel } from "./smart-view-context.model";
|
|
6
|
+
import { SmartSessionService } from "../session/smart-session.service";
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class SmartViewContextService {
|
|
9
|
+
private view;
|
|
10
|
+
private session;
|
|
11
|
+
private navigation;
|
|
12
|
+
private dialog;
|
|
13
|
+
private tabIdName;
|
|
14
|
+
private tabIdhttpHeaderName;
|
|
15
|
+
messageDialogname: string | undefined;
|
|
16
|
+
private url?;
|
|
17
|
+
private viewContext?;
|
|
18
|
+
private viewHandlers;
|
|
19
|
+
private openedViewUuids;
|
|
20
|
+
uuidOfPageHasBeenChanged: Subject<string>;
|
|
21
|
+
viewContextHasBeenSynced: Subject<void>;
|
|
22
|
+
smartViewContextApiErrors?: SmartViewContextApiErrors;
|
|
23
|
+
openSmartLink: Subject<void>;
|
|
24
|
+
isOpeningSmartLink: boolean;
|
|
25
|
+
private dialogRefs;
|
|
26
|
+
private actionDescriptors?;
|
|
27
|
+
commonFeedbackText?: string;
|
|
28
|
+
set translateService(translateService: SmartTranslateService | undefined);
|
|
29
|
+
get translateService(): SmartTranslateService | undefined;
|
|
30
|
+
private _translateService?;
|
|
31
|
+
translateServiceChanged: Subject<void>;
|
|
32
|
+
constructor(view: ViewService, session: SmartSessionService, navigation: SmartNavigationService, dialog: SmartdialogService);
|
|
33
|
+
setActionDescriptors(actionDescriptors: Map<string, UiActionDescriptor>): void;
|
|
34
|
+
getActionDescriptors(): Map<string, UiActionDescriptor> | undefined;
|
|
35
|
+
setViewHandlers(viewHandlers: Array<SmartViewHandlerModel>): void;
|
|
36
|
+
setViewApiErrors(viewApiErrors: SmartViewContextApiErrors): void;
|
|
37
|
+
setMessageDialogName(messageDialogName: string): void;
|
|
38
|
+
private setUpUrlForViewService;
|
|
39
|
+
setUrl(url: string): void;
|
|
40
|
+
getAndSyncViewContext(uuid?: string): Promise<void>;
|
|
41
|
+
getViewContext(uuid: string): Promise<ViewContextData>;
|
|
42
|
+
getViewContextDataByPageName(pageName: string): Promise<ViewData>;
|
|
43
|
+
updateViewContext(viewContextUpdate: ViewContextUpdate): Promise<ViewContextData | undefined>;
|
|
44
|
+
private clearSessionStorage;
|
|
45
|
+
private setTabId;
|
|
46
|
+
startViewContext(): Promise<ViewContextData>;
|
|
47
|
+
initialize(uuid?: string): Promise<ViewContextData>;
|
|
48
|
+
openView(view: ViewData): void;
|
|
49
|
+
closeView(view: ViewData): void;
|
|
50
|
+
restoreViews(uuid: string): Promise<void>;
|
|
51
|
+
syncView(): void;
|
|
52
|
+
getUuidOfPage(pageName: string): string;
|
|
53
|
+
message(messageData: MessageData, messageResult: MessageResult): Promise<void>;
|
|
54
|
+
getSmartViewContextApiErrorByCode(code: string): SmartViewContextApiError;
|
|
55
|
+
getViewConstraint(uuid: string): Promise<ViewConstraint>;
|
|
56
|
+
showPublishedView(channel: string, uuid: string): Promise<void>;
|
|
57
|
+
downloadResource(uuid: string, item: string): Promise<any>;
|
|
58
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SmartViewContextService, never>;
|
|
59
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SmartViewContextService>;
|
|
60
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ActivatedRoute } from "@angular/router";
|
|
2
|
+
import { SmartNavigationService } from "@smartbit4all/navigation";
|
|
3
|
+
import { SmartViewContextService } from "../smart-view-context.service";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class SmartViewRedirect {
|
|
6
|
+
private service;
|
|
7
|
+
private navigation;
|
|
8
|
+
private route;
|
|
9
|
+
constructor(service: SmartViewContextService, navigation: SmartNavigationService, route: ActivatedRoute);
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SmartViewRedirect, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SmartViewRedirect, "app-redirect", never, {}, {}, never, never>;
|
|
12
|
+
}
|
|
13
|
+
export declare const SmartLinkChannelVariableInPath: string;
|
|
14
|
+
export declare const SmartLinkUuidVariableInPath: string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ModuleWithProviders } from "@angular/core";
|
|
2
|
+
import { Configuration } from "./configuration";
|
|
3
|
+
import { HttpClient } from "@angular/common/http";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class ApiModule {
|
|
6
|
+
static forRoot(configurationFactory: () => Configuration): ModuleWithProviders<ApiModule>;
|
|
7
|
+
constructor(parentModule: ApiModule, http: HttpClient);
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ApiModule, [{ optional: true; skipSelf: true; }, { optional: true; }]>;
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ApiModule, never, never, never>;
|
|
10
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ApiModule>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { HttpParameterCodec } from '@angular/common/http';
|
|
2
|
+
import { Param } from './param';
|
|
3
|
+
export interface ConfigurationParameters {
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated Since 5.0. Use credentials instead
|
|
6
|
+
*/
|
|
7
|
+
apiKeys?: {
|
|
8
|
+
[key: string]: string;
|
|
9
|
+
};
|
|
10
|
+
username?: string;
|
|
11
|
+
password?: string;
|
|
12
|
+
/**
|
|
13
|
+
* @deprecated Since 5.0. Use credentials instead
|
|
14
|
+
*/
|
|
15
|
+
accessToken?: string | (() => string);
|
|
16
|
+
basePath?: string;
|
|
17
|
+
withCredentials?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Takes care of encoding query- and form-parameters.
|
|
20
|
+
*/
|
|
21
|
+
encoder?: HttpParameterCodec;
|
|
22
|
+
/**
|
|
23
|
+
* Override the default method for encoding path parameters in various
|
|
24
|
+
* <a href="https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#style-values">styles</a>.
|
|
25
|
+
* <p>
|
|
26
|
+
* See {@link README.md} for more details
|
|
27
|
+
* </p>
|
|
28
|
+
*/
|
|
29
|
+
encodeParam?: (param: Param) => string;
|
|
30
|
+
/**
|
|
31
|
+
* The keys are the names in the securitySchemes section of the OpenAPI
|
|
32
|
+
* document. They should map to the value used for authentication
|
|
33
|
+
* minus any standard prefixes such as 'Basic' or 'Bearer'.
|
|
34
|
+
*/
|
|
35
|
+
credentials?: {
|
|
36
|
+
[key: string]: string | (() => string | undefined);
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export declare class Configuration {
|
|
40
|
+
/**
|
|
41
|
+
* @deprecated Since 5.0. Use credentials instead
|
|
42
|
+
*/
|
|
43
|
+
apiKeys?: {
|
|
44
|
+
[key: string]: string;
|
|
45
|
+
};
|
|
46
|
+
username?: string;
|
|
47
|
+
password?: string;
|
|
48
|
+
/**
|
|
49
|
+
* @deprecated Since 5.0. Use credentials instead
|
|
50
|
+
*/
|
|
51
|
+
accessToken?: string | (() => string);
|
|
52
|
+
basePath?: string;
|
|
53
|
+
withCredentials?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Takes care of encoding query- and form-parameters.
|
|
56
|
+
*/
|
|
57
|
+
encoder?: HttpParameterCodec;
|
|
58
|
+
/**
|
|
59
|
+
* Encoding of various path parameter
|
|
60
|
+
* <a href="https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#style-values">styles</a>.
|
|
61
|
+
* <p>
|
|
62
|
+
* See {@link README.md} for more details
|
|
63
|
+
* </p>
|
|
64
|
+
*/
|
|
65
|
+
encodeParam: (param: Param) => string;
|
|
66
|
+
/**
|
|
67
|
+
* The keys are the names in the securitySchemes section of the OpenAPI
|
|
68
|
+
* document. They should map to the value used for authentication
|
|
69
|
+
* minus any standard prefixes such as 'Basic' or 'Bearer'.
|
|
70
|
+
*/
|
|
71
|
+
credentials: {
|
|
72
|
+
[key: string]: string | (() => string | undefined);
|
|
73
|
+
};
|
|
74
|
+
constructor(configurationParameters?: ConfigurationParameters);
|
|
75
|
+
/**
|
|
76
|
+
* Select the correct content-type to use for a request.
|
|
77
|
+
* Uses {@link Configuration#isJsonMime} to determine the correct content-type.
|
|
78
|
+
* If no content type is found return the first found type if the contentTypes is not empty
|
|
79
|
+
* @param contentTypes - the array of content types that are available for selection
|
|
80
|
+
* @returns the selected content-type or <code>undefined</code> if no selection could be made.
|
|
81
|
+
*/
|
|
82
|
+
selectHeaderContentType(contentTypes: string[]): string | undefined;
|
|
83
|
+
/**
|
|
84
|
+
* Select the correct accept content-type to use for a request.
|
|
85
|
+
* Uses {@link Configuration#isJsonMime} to determine the correct accept content-type.
|
|
86
|
+
* If no content type is found return the first found type if the contentTypes is not empty
|
|
87
|
+
* @param accepts - the array of content types that are available for selection.
|
|
88
|
+
* @returns the selected content-type or <code>undefined</code> if no selection could be made.
|
|
89
|
+
*/
|
|
90
|
+
selectHeaderAccept(accepts: string[]): string | undefined;
|
|
91
|
+
/**
|
|
92
|
+
* Check if the given MIME is a JSON MIME.
|
|
93
|
+
* JSON MIME examples:
|
|
94
|
+
* application/json
|
|
95
|
+
* application/json; charset=UTF8
|
|
96
|
+
* APPLICATION/JSON
|
|
97
|
+
* application/vnd.company+json
|
|
98
|
+
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
99
|
+
* @return True if the given MIME is JSON, false otherwise.
|
|
100
|
+
*/
|
|
101
|
+
isJsonMime(mime: string): boolean;
|
|
102
|
+
lookupCredential(key: string): string | undefined;
|
|
103
|
+
private defaultEncodeParam;
|
|
104
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./valueSetData";
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* value api
|
|
3
|
+
* value api
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: info@it4all.hu
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* The instance of the ValueSetDefintion that conatins every information inline.
|
|
14
|
+
*/
|
|
15
|
+
export interface ValueSetData {
|
|
16
|
+
qualifiedName: string;
|
|
17
|
+
/**
|
|
18
|
+
* The name of the key property in the value. It will be the value that copied into the reference when a given item is selected from the value set.
|
|
19
|
+
*/
|
|
20
|
+
keyProperty?: string;
|
|
21
|
+
properties: Array<any>;
|
|
22
|
+
/**
|
|
23
|
+
* Optional icon code for the given value set.
|
|
24
|
+
*/
|
|
25
|
+
iconCode?: string;
|
|
26
|
+
/**
|
|
27
|
+
* If true then the value set is not defined and not accessible.
|
|
28
|
+
*/
|
|
29
|
+
undefined?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* If true then the values doesn\'t contains the the whole values set or it migth be empty and we have to ask for filtered set of values using the filter fields available.
|
|
32
|
+
*/
|
|
33
|
+
lazy?: boolean;
|
|
34
|
+
values: Array<object>;
|
|
35
|
+
/**
|
|
36
|
+
* The filter expression model for the search from values.
|
|
37
|
+
*/
|
|
38
|
+
filterModel?: any;
|
|
39
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Standard parameter styles defined by OpenAPI spec
|
|
3
|
+
*/
|
|
4
|
+
export declare type StandardParamStyle = 'matrix' | 'label' | 'form' | 'simple' | 'spaceDelimited' | 'pipeDelimited' | 'deepObject';
|
|
5
|
+
/**
|
|
6
|
+
* The OpenAPI standard {@link StandardParamStyle}s may be extended by custom styles by the user.
|
|
7
|
+
*/
|
|
8
|
+
export declare type ParamStyle = StandardParamStyle | string;
|
|
9
|
+
/**
|
|
10
|
+
* Standard parameter locations defined by OpenAPI spec
|
|
11
|
+
*/
|
|
12
|
+
export declare type ParamLocation = 'query' | 'header' | 'path' | 'cookie';
|
|
13
|
+
/**
|
|
14
|
+
* Standard types as defined in <a href="https://swagger.io/specification/#data-types">OpenAPI Specification: Data Types</a>
|
|
15
|
+
*/
|
|
16
|
+
export declare type StandardDataType = "integer" | "number" | "boolean" | "string" | "object" | "array";
|
|
17
|
+
/**
|
|
18
|
+
* Standard {@link DataType}s plus your own types/classes.
|
|
19
|
+
*/
|
|
20
|
+
export declare type DataType = StandardDataType | string;
|
|
21
|
+
/**
|
|
22
|
+
* Standard formats as defined in <a href="https://swagger.io/specification/#data-types">OpenAPI Specification: Data Types</a>
|
|
23
|
+
*/
|
|
24
|
+
export declare type StandardDataFormat = "int32" | "int64" | "float" | "double" | "byte" | "binary" | "date" | "date-time" | "password";
|
|
25
|
+
export declare type DataFormat = StandardDataFormat | string;
|
|
26
|
+
/**
|
|
27
|
+
* The parameter to encode.
|
|
28
|
+
*/
|
|
29
|
+
export interface Param {
|
|
30
|
+
name: string;
|
|
31
|
+
value: unknown;
|
|
32
|
+
in: ParamLocation;
|
|
33
|
+
style: ParamStyle;
|
|
34
|
+
explode: boolean;
|
|
35
|
+
dataType: DataType;
|
|
36
|
+
dataFormat: DataFormat | undefined;
|
|
37
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@smartbit4all/ng-client",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"peerDependencies": {
|
|
5
|
+
"@angular/common": "^13.2.0",
|
|
6
|
+
"@angular/core": "^13.2.0",
|
|
7
|
+
"@openapitools/openapi-generator-cli": "^2.5.1",
|
|
8
|
+
"@smartbit4all/dialog": "^1.0.5",
|
|
9
|
+
"@smartbit4all/form": "^1.6.33",
|
|
10
|
+
"@smartbit4all/navigation": "^1.0.2",
|
|
11
|
+
"@smartbit4all/table": "^1.5.44",
|
|
12
|
+
"@smartbit4all/icon": "^1.0.1",
|
|
13
|
+
"rxjs": "^7.5.7"
|
|
14
|
+
},
|
|
15
|
+
"dependencies": {
|
|
16
|
+
"tslib": "^2.3.0"
|
|
17
|
+
},
|
|
18
|
+
"module": "fesm2015/smartbit4all-ng-client.mjs",
|
|
19
|
+
"es2020": "fesm2020/smartbit4all-ng-client.mjs",
|
|
20
|
+
"esm2020": "esm2020/smartbit4all-ng-client.mjs",
|
|
21
|
+
"fesm2020": "fesm2020/smartbit4all-ng-client.mjs",
|
|
22
|
+
"fesm2015": "fesm2015/smartbit4all-ng-client.mjs",
|
|
23
|
+
"typings": "smartbit4all-ng-client.d.ts",
|
|
24
|
+
"exports": {
|
|
25
|
+
"./package.json": {
|
|
26
|
+
"default": "./package.json"
|
|
27
|
+
},
|
|
28
|
+
".": {
|
|
29
|
+
"types": "./smartbit4all-ng-client.d.ts",
|
|
30
|
+
"esm2020": "./esm2020/smartbit4all-ng-client.mjs",
|
|
31
|
+
"es2020": "./fesm2020/smartbit4all-ng-client.mjs",
|
|
32
|
+
"es2015": "./fesm2015/smartbit4all-ng-client.mjs",
|
|
33
|
+
"node": "./fesm2015/smartbit4all-ng-client.mjs",
|
|
34
|
+
"default": "./fesm2020/smartbit4all-ng-client.mjs"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"sideEffects": false
|
|
38
|
+
}
|
package/projects.d.ts
ADDED
|
Binary file
|