mftsccs-browser 2.0.16-beta → 2.0.18-beta
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/main.bundle.js +748 -218
- package/dist/main.bundle.js.map +1 -1
- package/dist/serviceWorker.bundle.js +739 -217
- package/dist/serviceWorker.bundle.js.map +1 -1
- package/dist/types/DataStructures/BaseUrl.d.ts +2 -0
- package/dist/types/Services/Upload.d.ts +26 -0
- package/dist/types/Widgets/RenderWidgetService.d.ts +3 -0
- package/dist/types/Widgets/StatefulWidget.d.ts +18 -0
- package/dist/types/app.d.ts +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export declare const validImageFormats: string[];
|
|
2
|
+
export declare const validDocumentFormats: string[];
|
|
3
|
+
/**
|
|
4
|
+
* Generic method to upload file or image
|
|
5
|
+
* @param file File
|
|
6
|
+
* @returns Promise<{message: string, success: boolean, url?: string}>
|
|
7
|
+
*/
|
|
8
|
+
export declare function uploadAttachment(file: File, token?: string): Promise<{
|
|
9
|
+
message: string;
|
|
10
|
+
success: boolean;
|
|
11
|
+
url?: string;
|
|
12
|
+
}>;
|
|
13
|
+
/**
|
|
14
|
+
* Method to upload image to server
|
|
15
|
+
* @param body FormData
|
|
16
|
+
* @param token string?
|
|
17
|
+
* @returns JSON | string | null
|
|
18
|
+
*/
|
|
19
|
+
export declare function uploadImage(body: FormData, token?: string): Promise<any>;
|
|
20
|
+
/**
|
|
21
|
+
* Method to upload file to server
|
|
22
|
+
* @param body FormData
|
|
23
|
+
* @param token string?
|
|
24
|
+
* @returns JSON | string | null
|
|
25
|
+
*/
|
|
26
|
+
export declare function uploadFile(body: FormData, token?: string): Promise<any>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare function renderPage(pageId: number, attachNode: HTMLElement, props?: any): Promise<void>;
|
|
2
|
+
export declare function renderLatestWidget(widgetId: number, attachNode: HTMLElement, props?: any): Promise<void>;
|
|
3
|
+
export declare function renderWidget(widgetId: number, attachNode: HTMLElement, props?: any): Promise<void>;
|
|
@@ -13,6 +13,12 @@ export declare class StatefulWidget extends BaseWidget {
|
|
|
13
13
|
*/
|
|
14
14
|
childWidgets: any;
|
|
15
15
|
childWidgetElement: any;
|
|
16
|
+
/**
|
|
17
|
+
* store widget state datas to pass through child widgets
|
|
18
|
+
*/
|
|
19
|
+
widgetState: {
|
|
20
|
+
[key: string]: any;
|
|
21
|
+
};
|
|
16
22
|
/**
|
|
17
23
|
* This is the id of the parentElement of this widget.
|
|
18
24
|
*/
|
|
@@ -73,4 +79,16 @@ export declare class StatefulWidget extends BaseWidget {
|
|
|
73
79
|
* for the widget and its html element. User can add any logic here.
|
|
74
80
|
*/
|
|
75
81
|
after_render(): void;
|
|
82
|
+
/**
|
|
83
|
+
* render child widgets
|
|
84
|
+
*/
|
|
85
|
+
renderChildWidgets(): void;
|
|
86
|
+
/**
|
|
87
|
+
* save widget state data as key and value pair.
|
|
88
|
+
*/
|
|
89
|
+
setWidgetState(key: string, value: any): void;
|
|
90
|
+
/**
|
|
91
|
+
* get the saved widget state from stateful widget
|
|
92
|
+
*/
|
|
93
|
+
getWidgetState(key: string, defaultValue: any): object;
|
|
76
94
|
}
|
package/dist/types/app.d.ts
CHANGED
|
@@ -28,6 +28,7 @@ export { GetConnectionById } from './Services/GetConnections';
|
|
|
28
28
|
export { MakeTheTimestamp } from './Services/MakeTheTimestamp';
|
|
29
29
|
export { RecursiveSearchApi, RecursiveSearchApiWithInternalConnections, RecursiveSearchApiRaw, RecursiveSearchApiRawFullLinker, RecursiveSearchApiNewRawFullLinker } from './Api/RecursiveSearch';
|
|
30
30
|
export { GetCompositionBulkWithDataId, GetCompositionFromConnectionsWithDataIdFromConnections, GetCompositionFromConnectionsWithIndexFromConnections, GetCompositionBulk, GetCompositionFromConnectionsWithDataId } from './Services/GetCompositionBulk';
|
|
31
|
+
export { uploadAttachment, uploadFile, uploadImage, validDocumentFormats, validImageFormats } from './Services/Upload';
|
|
31
32
|
export { GetConceptBulk } from './Api/GetConceptBulk';
|
|
32
33
|
export { GetConnectionBulk } from './Api/GetConnectionBulk';
|
|
33
34
|
export { GetAllConnectionsOfCompositionBulk } from './Api/GetAllConnectionsOfCompositionBulk';
|
|
@@ -119,6 +120,7 @@ export { WidgetTree } from './Widgets/WidgetTree';
|
|
|
119
120
|
export { DeleteUser } from './Services/DeleteConcept';
|
|
120
121
|
export { AccessTracker } from './AccessTracker/accessTracker';
|
|
121
122
|
export { CreateConnectionBetweenEntityLocal } from './Services/CreateConnection/CreateConnectionEntity';
|
|
123
|
+
export { renderLatestWidget, renderPage, renderWidget } from './Widgets/RenderWidgetService';
|
|
122
124
|
type listeners = {
|
|
123
125
|
listenerId: string | number;
|
|
124
126
|
callback: any;
|