@trudb/tru-common-lib 0.2.386 → 0.2.389
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/fesm2022/trudb-tru-common-lib.mjs +276 -53
- package/fesm2022/trudb-tru-common-lib.mjs.map +1 -1
- package/lib/components/iframe-view/classes/tru-iframe-view-config.d.ts +10 -0
- package/lib/components/iframe-view/tru-iframe-view.d.ts +33 -0
- package/lib/services/tru-action-invoke.d.ts +7 -2
- package/lib/services/tru-report-manager.d.ts +2 -1
- package/lib/services/tru-util.d.ts +1 -0
- package/package.json +1 -1
- package/public-api.d.ts +2 -1
- package/lib/components/report-view/tru-report-view.d.ts +0 -20
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { TruDesktopViewConfig } from '../../desktop/classes/tru-desktop-view-config';
|
|
2
|
+
export type TruIframeViewMode = 'navigate' | 'request';
|
|
3
|
+
export declare class TruIframeViewConfig extends TruDesktopViewConfig {
|
|
4
|
+
mode?: TruIframeViewMode;
|
|
5
|
+
requestMethod?: string;
|
|
6
|
+
requestHeaders?: Record<string, string>;
|
|
7
|
+
requestBody?: unknown;
|
|
8
|
+
clearOnDeactivate?: boolean;
|
|
9
|
+
errorTitle?: string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { HttpClient, HttpHeaders } from '@angular/common/http';
|
|
2
|
+
import { ElementRef } from '@angular/core';
|
|
3
|
+
import { TruSearchViewBase } from '../../base-views/search/tru-search-view-base';
|
|
4
|
+
import { TruUiNotification } from '../../services/tru-ui-notification';
|
|
5
|
+
import { TruDesktopManager } from '../desktop/services/tru-desktop-manager';
|
|
6
|
+
import { TruWindowEventHandler } from '../desktop/services/tru-window-event-handler';
|
|
7
|
+
import { TruIframeViewConfig, TruIframeViewMode } from './classes/tru-iframe-view-config';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export declare class TruIframeView extends TruSearchViewBase {
|
|
10
|
+
private httpClient;
|
|
11
|
+
private uiNotification;
|
|
12
|
+
view: TruIframeViewConfig;
|
|
13
|
+
iframe: ElementRef<HTMLIFrameElement>;
|
|
14
|
+
isBusy: boolean;
|
|
15
|
+
private subs;
|
|
16
|
+
private objectUrl;
|
|
17
|
+
private clearedSrc;
|
|
18
|
+
private clearedOnDeactivate;
|
|
19
|
+
private hasStartedLoad;
|
|
20
|
+
constructor(desktopManager: TruDesktopManager, windowEventHandler: TruWindowEventHandler, httpClient: HttpClient, uiNotification: TruUiNotification);
|
|
21
|
+
onLoad(_iframe: HTMLIFrameElement): void;
|
|
22
|
+
ngOnInit(): void;
|
|
23
|
+
ngOnDestroy(): void;
|
|
24
|
+
protected getMode(): TruIframeViewMode;
|
|
25
|
+
protected getErrorTitle(): string;
|
|
26
|
+
protected getRequestMethod(): string;
|
|
27
|
+
protected getRequestHeaders(): HttpHeaders;
|
|
28
|
+
protected getRequestBody(): unknown;
|
|
29
|
+
private revokeObjectUrl;
|
|
30
|
+
private load;
|
|
31
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TruIframeView, never>;
|
|
32
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TruIframeView, "tru-iframe-view", never, { "view": { "alias": "view"; "required": false; }; }, {}, never, never, true, never>;
|
|
33
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
1
2
|
import { TruGlobalDataContext } from './tru-global-data-context';
|
|
2
3
|
import { TruUser } from './tru-user';
|
|
3
4
|
import { TruDataContext } from './tru-data-context';
|
|
@@ -6,6 +7,7 @@ import { TruTextManager } from './tru-text-manager';
|
|
|
6
7
|
import { TruDesktopManager } from '../components/desktop/services/tru-desktop-manager';
|
|
7
8
|
import { TruUiNotification } from './tru-ui-notification';
|
|
8
9
|
import { TruWindowEventHandler } from '../components/desktop/services/tru-window-event-handler';
|
|
10
|
+
import { TruAppEnvironment } from './tru-app-environment';
|
|
9
11
|
import * as i0 from "@angular/core";
|
|
10
12
|
export declare class TruActionInvoke {
|
|
11
13
|
private dataContext;
|
|
@@ -13,10 +15,12 @@ export declare class TruActionInvoke {
|
|
|
13
15
|
private desktopManager;
|
|
14
16
|
private windowEventHandler;
|
|
15
17
|
private uiNotification;
|
|
18
|
+
private appEnvironment;
|
|
19
|
+
private httpClient;
|
|
16
20
|
private modelTypeLookup;
|
|
17
21
|
private globalDataContext;
|
|
18
22
|
private user;
|
|
19
|
-
constructor(dataContext: TruDataContext, textManager: TruTextManager, desktopManager: TruDesktopManager, windowEventHandler: TruWindowEventHandler, uiNotification: TruUiNotification, modelTypeLookup: TruModelTypeLookup, globalDataContext: TruGlobalDataContext, user: TruUser);
|
|
23
|
+
constructor(dataContext: TruDataContext, textManager: TruTextManager, desktopManager: TruDesktopManager, windowEventHandler: TruWindowEventHandler, uiNotification: TruUiNotification, appEnvironment: TruAppEnvironment, httpClient: HttpClient, modelTypeLookup: TruModelTypeLookup, globalDataContext: TruGlobalDataContext, user: TruUser);
|
|
20
24
|
/**
|
|
21
25
|
* Creates an array of menu item config objects.
|
|
22
26
|
* @param {object[]} menuItemConfigs - Menu item config configs(!)
|
|
@@ -65,7 +69,8 @@ export declare class TruActionInvoke {
|
|
|
65
69
|
* @param {string} windowCtrl - window manager.
|
|
66
70
|
*/
|
|
67
71
|
openViewForReportFromUrl: (url: string, actionRefs: string, actionLabel: string, windowCtrl: string) => void;
|
|
68
|
-
|
|
72
|
+
openStimulsoftPreview: (reportRef: string, actionRefs: string, reportName: string) => void;
|
|
73
|
+
processCustomReport: (reportRef: string, actionRefs: string, mimeRef?: string) => void;
|
|
69
74
|
static ɵfac: i0.ɵɵFactoryDeclaration<TruActionInvoke, never>;
|
|
70
75
|
static ɵprov: i0.ɵɵInjectableDeclaration<TruActionInvoke>;
|
|
71
76
|
}
|
|
@@ -12,7 +12,8 @@ export declare class TruReportManager {
|
|
|
12
12
|
private actionInvoke;
|
|
13
13
|
private user;
|
|
14
14
|
constructor(dataContext: TruDataContext, modelTypeLookup: TruModelTypeLookup, appEnvironment: TruAppEnvironment, actionInvoke: TruActionInvoke, user: TruUser);
|
|
15
|
-
private
|
|
15
|
+
private setupDownloadMenuImpl;
|
|
16
|
+
private setupMrtMenuImpl;
|
|
16
17
|
get(url: string, method: string, callback: (o: any) => any, params?: null): XMLHttpRequest;
|
|
17
18
|
private setupMenu;
|
|
18
19
|
queryReports: (tableName: string, menu: any, getActionRefs: () => string, enabled: () => {}) => Observable<any>;
|
|
@@ -14,6 +14,7 @@ export declare class TruUtil {
|
|
|
14
14
|
removeNonNumericCharactersFromStr: (value: string) => string;
|
|
15
15
|
isDate: (date: Date) => boolean;
|
|
16
16
|
isValidDate: (value: string) => boolean;
|
|
17
|
+
adjustForTimezone: (date: Date) => Date;
|
|
17
18
|
rulesEval: (styles: object | null) => object;
|
|
18
19
|
/**
|
|
19
20
|
* Serializes an object as URL parameters. The object should be a base type or have
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -84,7 +84,8 @@ export * from './lib/components/layout/row/tru-row';
|
|
|
84
84
|
export * from './lib/components/layout/tab/tab/tru-tab';
|
|
85
85
|
export * from './lib/components/layout/tab/tab-group/tru-tab-group';
|
|
86
86
|
export * from './lib/components/password-dialog/tru-password-dialog';
|
|
87
|
-
export * from './lib/components/
|
|
87
|
+
export * from './lib/components/iframe-view/classes/tru-iframe-view-config';
|
|
88
|
+
export * from './lib/components/iframe-view/tru-iframe-view';
|
|
88
89
|
export * from './lib/components/toolbar/tru-toolbar';
|
|
89
90
|
export * from './lib/components/toolbar/menu/tru-toolbar-menu';
|
|
90
91
|
export * from './lib/components/toolbar/button/tru-toolbar-button';
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { TruSearchViewBase } from '../../base-views/search/tru-search-view-base';
|
|
2
|
-
import { TruDesktopManager } from '../desktop/services/tru-desktop-manager';
|
|
3
|
-
import { TruWindowEventHandler } from '../desktop/services/tru-window-event-handler';
|
|
4
|
-
import { TruUser } from '../../services/tru-user';
|
|
5
|
-
import { TruUiNotification } from '../../services/tru-ui-notification';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class TruReportView extends TruSearchViewBase {
|
|
8
|
-
private uiNotification;
|
|
9
|
-
private user;
|
|
10
|
-
view: any;
|
|
11
|
-
iframe: HTMLIFrameElement;
|
|
12
|
-
isBusy: boolean;
|
|
13
|
-
private subs;
|
|
14
|
-
constructor(desktopManager: TruDesktopManager, windowEventHandler: TruWindowEventHandler, uiNotification: TruUiNotification, user: TruUser);
|
|
15
|
-
onLoad(iframe: HTMLIFrameElement): void;
|
|
16
|
-
ngOnInit(): void;
|
|
17
|
-
ngOnDestroy(): void;
|
|
18
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TruReportView, never>;
|
|
19
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TruReportView, "tru-report-view", never, { "view": { "alias": "view"; "required": false; }; }, {}, never, never, true, never>;
|
|
20
|
-
}
|