mftsccs-browser 2.1.92-beta → 2.1.93-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 +1 -1
- package/dist/serviceWorker.bundle.js +1 -1
- package/dist/types/DataStructures/BaseUrl.d.ts +2 -0
- package/dist/types/DataStructures/Concept.d.ts +1 -0
- package/dist/types/DataStructures/TypeLibrary.d.ts +5 -0
- package/dist/types/Services/DeleteConnectionByType.d.ts +7 -0
- package/dist/types/Widgets/BaseObserver.d.ts +2 -2
- package/dist/types/Widgets/RenderWidgetService.d.ts +3 -3
- package/dist/types/Widgets/StatefulWidget.d.ts +9 -0
- package/dist/types/Widgets/WidgetTree.d.ts +2 -1
- package/dist/types/WrapperFunctions/DepenedencyObserver.d.ts +1 -0
- package/dist/types/WrapperFunctions/SchemaQueryObservable.d.ts +1 -0
- package/dist/types/app.d.ts +2 -0
- package/package.json +1 -1
|
@@ -12,3 +12,10 @@ export declare function DeleteConnectionByType(id: number, linker: string): Prom
|
|
|
12
12
|
* @returns Array of connections
|
|
13
13
|
*/
|
|
14
14
|
export declare function GetAllTheConnectionsByTypeAndOfTheConcept(id: number, linker: string, reverse?: boolean): Promise<any>;
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @param id
|
|
18
|
+
* @param linker
|
|
19
|
+
* @returns
|
|
20
|
+
*/
|
|
21
|
+
export declare function DeleteConnectionsByTypeLocal(id: number, linkerStrings: string[]): Promise<any>;
|
|
@@ -12,11 +12,11 @@ export declare class BaseObserver {
|
|
|
12
12
|
/**
|
|
13
13
|
* This is called by any data change. So that any data change will notify all the callback functions to execute.
|
|
14
14
|
*/
|
|
15
|
-
notify(): void;
|
|
15
|
+
notify(passedData?: any): void;
|
|
16
16
|
/**
|
|
17
17
|
* This function is used to register the callback into the function in case of any dataChange.
|
|
18
18
|
* @param callback sets this callback to the subscribers list in the widget. So that in any change we can call this callback
|
|
19
19
|
* @returns execution of the callback passed.
|
|
20
20
|
*/
|
|
21
|
-
dataChange(callback: any):
|
|
21
|
+
dataChange(callback: any): void;
|
|
22
22
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { BuilderStatefulWidget, WidgetTree } from "../app";
|
|
2
2
|
export declare function renderPage(pageId: number, attachNode: HTMLElement, props?: any): Promise<void>;
|
|
3
|
-
export declare function renderLatestWidget(widgetId: number, attachNode: HTMLElement, props?: any): Promise<
|
|
4
|
-
export declare function renderWidget(widgetId: number, attachNode: HTMLElement, props?: any): Promise<
|
|
5
|
-
export declare function materializeWidget(widgetId: number, bulkWidget: any, attachNode: HTMLElement, props?: any): Promise<
|
|
3
|
+
export declare function renderLatestWidget(widgetId: number, attachNode: HTMLElement, props?: any): Promise<BuilderStatefulWidget | undefined>;
|
|
4
|
+
export declare function renderWidget(widgetId: number, attachNode: HTMLElement, props?: any): Promise<BuilderStatefulWidget | undefined>;
|
|
5
|
+
export declare function materializeWidget(widgetId: number, bulkWidget: any, attachNode: HTMLElement, props?: any): Promise<BuilderStatefulWidget | undefined>;
|
|
6
6
|
export declare function getWidgetFromId(widgetId: number, visitedWidgets?: number[], token?: string): Promise<WidgetTree>;
|
|
7
7
|
/**
|
|
8
8
|
* This function builds a widget tree. This tree is built fully along with its children
|
|
@@ -8,6 +8,12 @@ export declare class StatefulWidget extends BaseWidget {
|
|
|
8
8
|
html: string;
|
|
9
9
|
css: string;
|
|
10
10
|
js: string;
|
|
11
|
+
state: {
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
};
|
|
14
|
+
previousState: {
|
|
15
|
+
[key: string]: any;
|
|
16
|
+
};
|
|
11
17
|
/**
|
|
12
18
|
* These are the child widgets that need to be added to this widget
|
|
13
19
|
*/
|
|
@@ -48,6 +54,9 @@ export declare class StatefulWidget extends BaseWidget {
|
|
|
48
54
|
* @param newState
|
|
49
55
|
*/
|
|
50
56
|
setState(newState: any): void;
|
|
57
|
+
setProperty(newProperty: Object): void;
|
|
58
|
+
hasStateChanged(): boolean;
|
|
59
|
+
private isPropertyEqual;
|
|
51
60
|
/**
|
|
52
61
|
* If any child widgets are registered in the widget. Then without any other changes to the contents and state
|
|
53
62
|
* this loadChildWidgets will be called which will help the child widgets be rendered to their respective positions.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TMainLibrary } from "../DataStructures/TypeLibrary";
|
|
1
|
+
import { TAssistant, TMainLibrary } from "../DataStructures/TypeLibrary";
|
|
2
2
|
import { BuilderStatefulWidget } from "./BuilderStatefulWidget";
|
|
3
3
|
export declare class WidgetTree {
|
|
4
4
|
id: number;
|
|
@@ -7,6 +7,7 @@ export declare class WidgetTree {
|
|
|
7
7
|
css: string;
|
|
8
8
|
js: string;
|
|
9
9
|
library: TMainLibrary;
|
|
10
|
+
assistant: TAssistant;
|
|
10
11
|
timestamp: string;
|
|
11
12
|
widgetId: number;
|
|
12
13
|
type: string;
|
|
@@ -41,6 +41,7 @@ export declare class DependencyObserver {
|
|
|
41
41
|
* This function will bind the actual data to the widget or the function.
|
|
42
42
|
*/
|
|
43
43
|
bind(): Promise<void>;
|
|
44
|
+
update(): Promise<void>;
|
|
44
45
|
/**
|
|
45
46
|
*
|
|
46
47
|
* @param callback the function that needs to be called with the data.
|
|
@@ -4,6 +4,7 @@ export declare class SearchLinkMultipleAllObservable extends DependencyObserver
|
|
|
4
4
|
query: FreeschemaQuery;
|
|
5
5
|
countInfoStrings: string[];
|
|
6
6
|
order: string;
|
|
7
|
+
totalCount: number;
|
|
7
8
|
constructor(query: FreeschemaQuery, token: string);
|
|
8
9
|
bind(): Promise<any>;
|
|
9
10
|
build(): Promise<any>;
|
package/dist/types/app.d.ts
CHANGED
|
@@ -124,6 +124,8 @@ export { CreateConnectionBetweenEntityLocal } from './Services/CreateConnection/
|
|
|
124
124
|
export { BuildWidgetFromId } from './Widgets/WidgetBuild';
|
|
125
125
|
export { renderLatestWidget, renderPage, renderWidget, convertWidgetTreeToWidgetWithWrapper, getWidgetFromId, convertWidgetTreeToWidget, unwrapContainers, getWidgetBulkFromId } from './Widgets/RenderWidgetService';
|
|
126
126
|
export { CreateData } from './Services/automated/automated-concept-connection';
|
|
127
|
+
export { Prototype } from './DataStructures/Prototype/Prototype';
|
|
128
|
+
export { createPrototypeLocal } from './prototype/prototype.service';
|
|
127
129
|
type listeners = {
|
|
128
130
|
listenerId: string | number;
|
|
129
131
|
callback: any;
|