@smartbit4all/ng-client 1.1.27 → 1.1.29
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/esm2020/lib/session/dev-tool/smart-dev-tool-dialog/smart-dev-tool-dialog.component.mjs +2 -2
- package/esm2020/lib/session/dev-tool/smart-dev-tool-floating-button/smart-dev-tool-floating-button.component.mjs +10 -10
- package/esm2020/lib/session/dev-tool/smart-dev-tool.service.mjs +26 -22
- package/esm2020/lib/session/smart-header-maintainer.interceptor.mjs +14 -11
- package/esm2020/lib/session/smart-session.service.mjs +12 -6
- package/esm2020/lib/session/smart-timer/smart-session-timer.component.mjs +6 -6
- package/esm2020/lib/session/smart-timer/smart-session-timer.service.mjs +9 -8
- package/esm2020/lib/smart-client/projects.mjs +5 -6
- package/esm2020/lib/smart-client/smart-authentication.service.mjs +10 -4
- package/esm2020/lib/smart-client/smart-component-api-client.mjs +2 -2
- package/esm2020/lib/view-context/smart-ui-action/dialogs/ui-action-confirm-dialog/ui-action-confirm-dialog.service.mjs +13 -12
- package/esm2020/lib/view-context/smart-ui-action/dialogs/ui-action-input-dialog/ui-action-input-dialog.service.mjs +13 -12
- package/esm2020/lib/view-context/smart-ui-action/ui-action.descriptor.service.mjs +3 -2
- package/esm2020/lib/view-context/smart-ui-action/ui-action.service.mjs +9 -3
- package/esm2020/lib/view-context/smart-view-context.module.mjs +18 -18
- package/esm2020/lib/view-context/smart-view-context.service.mjs +13 -7
- package/fesm2015/smartbit4all-ng-client.mjs +99 -92
- package/fesm2015/smartbit4all-ng-client.mjs.map +1 -1
- package/fesm2020/smartbit4all-ng-client.mjs +99 -92
- package/fesm2020/smartbit4all-ng-client.mjs.map +1 -1
- package/lib/session/dev-tool/smart-dev-tool-floating-button/smart-dev-tool-floating-button.component.d.ts +2 -2
- package/lib/session/dev-tool/smart-dev-tool.service.d.ts +8 -6
- package/lib/session/smart-header-maintainer.interceptor.d.ts +3 -3
- package/lib/session/smart-session.service.d.ts +4 -1
- package/lib/session/smart-timer/smart-session-timer.component.d.ts +2 -2
- package/lib/session/smart-timer/smart-session-timer.service.d.ts +3 -3
- package/lib/smart-client/projects.d.ts +4 -5
- package/lib/smart-client/smart-authentication.service.d.ts +5 -2
- package/lib/view-context/smart-ui-action/dialogs/ui-action-confirm-dialog/ui-action-confirm-dialog.service.d.ts +5 -5
- package/lib/view-context/smart-ui-action/dialogs/ui-action-input-dialog/ui-action-input-dialog.service.d.ts +6 -6
- package/lib/view-context/smart-ui-action/ui-action.service.d.ts +4 -1
- package/lib/view-context/smart-view-context.service.d.ts +4 -2
- package/package.json +1 -1
- package/smartbit4all-ng-client-1.1.29.tgz +0 -0
- package/esm2020/lib/smart-client/smart.subject.mjs +0 -21
- package/lib/smart-client/smart.subject.d.ts +0 -6
- package/smartbit4all-ng-client-1.1.27.tgz +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { OnDestroy } from
|
|
2
|
-
import { SmartDevToolDialogService } from
|
|
1
|
+
import { OnDestroy } from '@angular/core';
|
|
2
|
+
import { SmartDevToolDialogService } from '../smart-dev-tool-dialog/smart-dev-tool-dialog.service';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class SmartDevToolFloatingButtonComponent implements OnDestroy {
|
|
5
5
|
private service;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { DatePipe } from
|
|
2
|
-
import { HttpErrorResponse, HttpRequest, HttpResponse } from
|
|
3
|
-
import { PipeTransform } from
|
|
4
|
-
import { Subject } from
|
|
5
|
-
import { SmartCookieService } from
|
|
1
|
+
import { DatePipe } from '@angular/common';
|
|
2
|
+
import { HttpErrorResponse, HttpRequest, HttpResponse } from '@angular/common/http';
|
|
3
|
+
import { OnDestroy, PipeTransform } from '@angular/core';
|
|
4
|
+
import { Subject } from 'rxjs';
|
|
5
|
+
import { SmartCookieService } from '../cookie-service/smart-cookie.service';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class SmartDevToolService {
|
|
7
|
+
export declare class SmartDevToolService implements OnDestroy {
|
|
8
8
|
private cookieService;
|
|
9
9
|
descriptor?: SmartDevToolDescriptor;
|
|
10
10
|
smartDevToolName: string;
|
|
@@ -14,10 +14,12 @@ export declare class SmartDevToolService {
|
|
|
14
14
|
smartDevToolMaxName: string;
|
|
15
15
|
hoursToSave: number;
|
|
16
16
|
maxNumOfSavedCalls: number;
|
|
17
|
+
private _destroy$;
|
|
17
18
|
descriptorChanged: Subject<void>;
|
|
18
19
|
newErrorsCount: number;
|
|
19
20
|
newErrorsCountChanged: Subject<void>;
|
|
20
21
|
constructor(cookieService: SmartCookieService);
|
|
22
|
+
ngOnDestroy(): void;
|
|
21
23
|
private setUpLocalStorage;
|
|
22
24
|
writeResponse(request: HttpRequest<any>, response: HttpResponse<any> | HttpErrorResponse, requestDate: Date, responseDate: Date): void;
|
|
23
25
|
clearErrors(): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { HttpRequest, HttpHandler, HttpEvent, HttpInterceptor } from
|
|
2
|
-
import { Observable } from
|
|
3
|
-
import { SmartSessionService } from
|
|
1
|
+
import { HttpRequest, HttpHandler, HttpEvent, HttpInterceptor } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { SmartSessionService } from './smart-session.service';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class SmartHeaderMaintainerInterceptor implements HttpInterceptor {
|
|
6
6
|
private session;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { OnDestroy } from '@angular/core';
|
|
1
2
|
import { Subject } from 'rxjs';
|
|
2
3
|
import { AuthenticationProviderData, SessionInfoData, SessionService } from './api';
|
|
3
4
|
import { SmartCookieService } from './cookie-service/smart-cookie.service';
|
|
@@ -7,12 +8,13 @@ export interface HeaderParam {
|
|
|
7
8
|
headerName: string;
|
|
8
9
|
value: string;
|
|
9
10
|
}
|
|
10
|
-
export declare class SmartSessionService {
|
|
11
|
+
export declare class SmartSessionService implements OnDestroy {
|
|
11
12
|
private apiService;
|
|
12
13
|
private cookieService;
|
|
13
14
|
private basePath?;
|
|
14
15
|
private token?;
|
|
15
16
|
private _sessionInfoData?;
|
|
17
|
+
private _destroy$;
|
|
16
18
|
get sessionInfoData(): SessionInfoData | undefined;
|
|
17
19
|
private set sessionInfoData(value);
|
|
18
20
|
private providers?;
|
|
@@ -27,6 +29,7 @@ export declare class SmartSessionService {
|
|
|
27
29
|
sessionExpiracyChanged: Subject<void>;
|
|
28
30
|
private sessionHandlerService?;
|
|
29
31
|
constructor(apiService: SessionService, cookieService: SmartCookieService);
|
|
32
|
+
ngOnDestroy(): void;
|
|
30
33
|
setSessionHandlerService(smartSessionHandlerService: SmartSessionHandlerService): void;
|
|
31
34
|
handleSessionError(sessionError: SessionError): Promise<void>;
|
|
32
35
|
addHeaderParam(headerParam: HeaderParam): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { OnDestroy, OnInit } from
|
|
2
|
-
import { SmartSessionTimerService } from
|
|
1
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { SmartSessionTimerService } from './smart-session-timer.service';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class SmartSessionTimerComponent implements OnInit, OnDestroy {
|
|
5
5
|
service: SmartSessionTimerService;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { OnDestroy } from
|
|
2
|
-
import { Subject } from
|
|
3
|
-
import { SmartSessionService } from
|
|
1
|
+
import { OnDestroy } from '@angular/core';
|
|
2
|
+
import { Subject } from 'rxjs';
|
|
3
|
+
import { SmartSessionService } from '../smart-session.service';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class SmartSessionTimerService implements OnDestroy {
|
|
6
6
|
private session;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from "./smart.subject";
|
|
1
|
+
export * from './smart-authentication.service';
|
|
2
|
+
export * from './smart.component';
|
|
3
|
+
export * from './smart-component-api-client';
|
|
4
|
+
export * from './smart.service';
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OnDestroy } from '@angular/core';
|
|
2
|
+
import { Subject } from 'rxjs';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
export interface SmartAuthenticationServiceInterface {
|
|
4
5
|
bffApisHaveBeenSetUp: boolean;
|
|
5
6
|
headersUpdated: Subject<void>;
|
|
6
7
|
}
|
|
7
|
-
export declare class SmartAuthService implements SmartAuthenticationServiceInterface {
|
|
8
|
+
export declare class SmartAuthService implements SmartAuthenticationServiceInterface, OnDestroy {
|
|
8
9
|
bffApisHaveBeenSetUp: boolean;
|
|
10
|
+
private _destroy$;
|
|
9
11
|
headersUpdated: Subject<void>;
|
|
12
|
+
ngOnDestroy(): void;
|
|
10
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<SmartAuthService, never>;
|
|
11
14
|
static ɵprov: i0.ɵɵInjectableDeclaration<SmartAuthService>;
|
|
12
15
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { MatDialog } from
|
|
2
|
-
import { Router } from
|
|
3
|
-
import { SmartdialogService } from
|
|
4
|
-
import { Subject } from
|
|
5
|
-
import { UiAction } from
|
|
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
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class UiActionConfirmDialogService extends SmartdialogService {
|
|
8
8
|
_destroy$: Subject<void>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { MatDialog } from
|
|
2
|
-
import { Router } from
|
|
3
|
-
import { SmartdialogService } from
|
|
4
|
-
import { Subject } from
|
|
5
|
-
import { UiAction, UiActionRequest } from
|
|
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
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class UiActionInputDialogService extends SmartdialogService {
|
|
8
8
|
_destroy$: Subject<void>;
|
|
9
|
-
inputTypeName:
|
|
9
|
+
inputTypeName: 'inputDialog' | 'input2Dialog';
|
|
10
10
|
action: UiAction;
|
|
11
11
|
nodeName?: string;
|
|
12
12
|
onAction: Subject<EditFolderAction>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { OnDestroy } from '@angular/core';
|
|
1
2
|
import { MatSnackBar } from '@angular/material/snack-bar';
|
|
2
3
|
import { UiAction } from '../api';
|
|
3
4
|
import { UiActionConfirmDialogService } from './dialogs/ui-action-confirm-dialog/ui-action-confirm-dialog.service';
|
|
@@ -14,12 +15,14 @@ export interface ExecuteUiActionOptions {
|
|
|
14
15
|
*/
|
|
15
16
|
nodeId?: string;
|
|
16
17
|
}
|
|
17
|
-
export declare class UiActionService {
|
|
18
|
+
export declare class UiActionService implements OnDestroy {
|
|
18
19
|
private confirmDialogService;
|
|
19
20
|
private textFieldDialogService;
|
|
20
21
|
private _snackBar;
|
|
21
22
|
uiActionModel: UiActionModel;
|
|
23
|
+
private _destroy$;
|
|
22
24
|
constructor(confirmDialogService: UiActionConfirmDialogService, textFieldDialogService: UiActionInputDialogService, _snackBar: MatSnackBar);
|
|
25
|
+
ngOnDestroy(): void;
|
|
23
26
|
execute(uiAction: UiAction, options?: ExecuteUiActionOptions): Promise<void>;
|
|
24
27
|
private handleInputType;
|
|
25
28
|
private handleInputTypeTextField;
|
|
@@ -3,14 +3,14 @@ import { SmartdialogService } from '@smartbit4all/dialog';
|
|
|
3
3
|
import { SmartNavigationService } from '@smartbit4all/navigation';
|
|
4
4
|
import { Subject } from 'rxjs';
|
|
5
5
|
import { SmartSessionService } from '../session/smart-session.service';
|
|
6
|
-
import { SmartSubject } from '../smart-client/smart.subject';
|
|
7
6
|
import { ComponentModel, DataChange, MessageData, MessageResult, UiActionDescriptor, UiActionRequest, ViewConstraint, ViewContextChange, ViewContextData, ViewContextUpdate, ViewData, ViewService } from './api';
|
|
8
7
|
import { SmartTranslateService, SmartViewContextApiError, SmartViewContextApiErrors, SmartViewHandlerModel } from './smart-view-context.model';
|
|
8
|
+
import { SmartSubject } from '@smartbit4all/subject';
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
10
|
export declare const SmartViewContextErrorDialogButtonLabel = "SmartViewContextErrorDialogButtonLabel";
|
|
11
11
|
export declare const SmartViewContextErrorDialogTitle = "SmartViewContextErrorDialogTitle";
|
|
12
12
|
export declare const SmartViewContextErrorDialogMessage = "SmartViewContextErrorDialogMessage";
|
|
13
|
-
export declare class SmartViewContextService {
|
|
13
|
+
export declare class SmartViewContextService implements OnDestroy {
|
|
14
14
|
private view;
|
|
15
15
|
private session;
|
|
16
16
|
private navigation;
|
|
@@ -24,6 +24,7 @@ export declare class SmartViewContextService {
|
|
|
24
24
|
private viewHandlers;
|
|
25
25
|
private openedViewUuids;
|
|
26
26
|
private openedViewData;
|
|
27
|
+
private _destroy$;
|
|
27
28
|
uuidOfPageHasBeenChanged: Subject<string>;
|
|
28
29
|
viewContextHasBeenSynced: Subject<void>;
|
|
29
30
|
private initializeRunning;
|
|
@@ -39,6 +40,7 @@ export declare class SmartViewContextService {
|
|
|
39
40
|
private _translateService?;
|
|
40
41
|
translateServiceChanged: Subject<void>;
|
|
41
42
|
constructor(view: ViewService, session: SmartSessionService, navigation: SmartNavigationService, dialog: SmartdialogService, apiQueueService: ApiQueueService);
|
|
43
|
+
ngOnDestroy(): void;
|
|
42
44
|
follow(uuid: string, detectChange: SmartSubject<any>): void;
|
|
43
45
|
unfollow(uuid: string): void;
|
|
44
46
|
setActionDescriptors(actionDescriptors: Map<string, UiActionDescriptor>): void;
|
package/package.json
CHANGED
|
Binary file
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Subject } from "rxjs";
|
|
2
|
-
export class SmartSubject extends Subject {
|
|
3
|
-
constructor(unsubscribe$) {
|
|
4
|
-
super();
|
|
5
|
-
this.unsubscribe$ = unsubscribe$;
|
|
6
|
-
}
|
|
7
|
-
subscribe(observerOrNext, error, complete) {
|
|
8
|
-
if (typeof observerOrNext === "object") {
|
|
9
|
-
const next = observerOrNext.next;
|
|
10
|
-
observerOrNext.next = (value) => {
|
|
11
|
-
if (next) {
|
|
12
|
-
next.call(observerOrNext, value);
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
const subscription = super.subscribe(observerOrNext, error, complete);
|
|
17
|
-
subscription.add(this.unsubscribe$.subscribe());
|
|
18
|
-
return subscription;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnQuc3ViamVjdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3NtYXJ0LW5nLWNsaWVudC9zcmMvbGliL3NtYXJ0LWNsaWVudC9zbWFydC5zdWJqZWN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBWSxPQUFPLEVBQWdCLE1BQU0sTUFBTSxDQUFDO0FBRXZELE1BQU0sT0FBTyxZQUFnQixTQUFRLE9BQVU7SUFDM0MsWUFBb0IsWUFBMkI7UUFDM0MsS0FBSyxFQUFFLENBQUM7UUFEUSxpQkFBWSxHQUFaLFlBQVksQ0FBZTtJQUUvQyxDQUFDO0lBRVEsU0FBUyxDQUNkLGNBQW1FLEVBQ25FLEtBQTRCLEVB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U/OiAoKSA9PiB2b2lkXHJcbiAgICApOiBTdWJzY3JpcHRpb24ge1xyXG4gICAgICAgIGlmICh0eXBlb2Ygb2JzZXJ2ZXJPck5leHQgPT09IFwib2JqZWN0XCIpIHtcclxuICAgICAgICAgICAgY29uc3QgbmV4dCA9IG9ic2VydmVyT3JOZXh0IS5uZXh0O1xyXG4gICAgICAgICAgICBvYnNlcnZlck9yTmV4dCEubmV4dCA9ICh2YWx1ZTogVCkgPT4ge1xyXG4gICAgICAgICAgICAgICAgaWYgKG5leHQpIHtcclxuICAgICAgICAgICAgICAgICAgICBuZXh0LmNhbGwob2JzZXJ2ZXJPck5leHQsIHZhbHVlKTtcclxuICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgfTtcclxuICAgICAgICB9XHJcblxyXG4gICAgICAgIGNvbnN0IHN1YnNjcmlwdGlvbiA9IHN1cGVyLnN1YnNjcmliZShcclxuICAgICAgICAgICAgb2JzZXJ2ZXJPck5leHQgYXMgKCh2YWx1ZTogVCkgPT4gdm9pZCkgfCBudWxsLFxyXG4gICAgICAgICAgICBlcnJvcixcclxuICAgICAgICAgICAgY29tcGxldGVcclxuICAgICAgICApO1xyXG5cclxuICAgICAgICBzdWJzY3JpcHRpb24uYWRkKHRoaXMudW5zdWJzY3JpYmUkLnN1YnNjcmliZSgpKTtcclxuXHJcbiAgICAgICAgcmV0dXJuIHN1YnNjcmlwdGlvbjtcclxuICAgIH1cclxufVxyXG4iXX0=
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Observer, Subject, Subscription } from "rxjs";
|
|
2
|
-
export declare class SmartSubject<T> extends Subject<T> {
|
|
3
|
-
private unsubscribe$;
|
|
4
|
-
constructor(unsubscribe$: Subject<void>);
|
|
5
|
-
subscribe(observerOrNext?: Partial<Observer<T>> | ((value: T) => void) | null, error?: (error: any) => void, complete?: () => void): Subscription;
|
|
6
|
-
}
|
|
Binary file
|