mftsccs-node 0.2.3 → 0.2.4
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 +2 -0
- package/dist/main.bundle.js.LICENSE.txt +1 -0
- package/dist/serviceWorker.bundle.js +2 -0
- package/dist/serviceWorker.bundle.js.LICENSE.txt +1 -0
- package/dist/types/AccessTracker/accessTracker.d.ts +67 -0
- package/dist/types/Anomaly/anomaly.d.ts +103 -0
- package/dist/types/Api/Create/CreateTheConceptApi.d.ts +1 -1
- package/dist/types/Api/Create/CreateTheGhostConceptApi.d.ts +3 -0
- package/dist/types/Api/Create/CreateTheGhostConnectionApi.d.ts +2 -0
- package/dist/types/Api/Delete/DeleteUserInBackend.d.ts +1 -0
- package/dist/types/Api/DeleteConnectionBulkApi.d.ts +1 -0
- package/dist/types/Api/DeleteTheConcept.d.ts +1 -1
- package/dist/types/Api/DeleteTheConnection.d.ts +1 -1
- package/dist/types/Api/GetAllConnectionsOfComposition.d.ts +1 -1
- package/dist/types/Api/GetAllConnectionsOfCompositionBulk.d.ts +2 -2
- package/dist/types/Api/GetCharacterDataByCharacter.d.ts +1 -1
- package/dist/types/Api/GetCompositionConnectionsBetweenTwoConcepts.d.ts +1 -2
- package/dist/types/Api/GetConcept.d.ts +6 -2
- package/dist/types/Api/GetConceptBulk.d.ts +8 -1
- package/dist/types/Api/GetConceptByCharacterAndType.d.ts +1 -2
- package/dist/types/Api/GetConnection.d.ts +1 -1
- package/dist/types/Api/GetConnectionBulk.d.ts +5 -0
- package/dist/types/Api/GetConnectionOfTheConcept.d.ts +1 -2
- package/dist/types/Api/GetConnections/GetConnectionsByTypeApi.d.ts +3 -0
- package/dist/types/Api/Images/GetImages.d.ts +1 -0
- package/dist/types/Api/Local/GetLocalConceptByCharacterValue.d.ts +2 -0
- package/dist/types/Api/Login.d.ts +1 -1
- package/dist/types/Api/MakeTheTypeConceptApi.d.ts +7 -0
- package/dist/types/Api/Prototype/CreatePrototype.d.ts +2 -0
- package/dist/types/Api/Prototype/Selector.d.ts +15 -0
- package/dist/types/Api/RecursiveSearch.d.ts +6 -1
- package/dist/types/Api/Search/FreeschemaQueryApi.d.ts +1 -1
- package/dist/types/Api/Search/SearchInternalApi.d.ts +1 -0
- package/dist/types/Api/Search/SearchWithTypeAndLinker.d.ts +2 -0
- package/dist/types/Api/SearchConcept/GetConceptByCharacterAndCategoryApi.d.ts +1 -1
- package/dist/types/Api/Signin.d.ts +1 -1
- package/dist/types/Api/Signup.d.ts +17 -1
- package/dist/types/Api/Translate/TranslateLocalToReal.d.ts +2 -0
- package/dist/types/Constants/AccessConstants.d.ts +3 -0
- package/dist/types/Constants/FormatConstants.d.ts +1 -0
- package/dist/types/Constants/ckeditorCSS.d.ts +1 -0
- package/dist/types/Constants/general.const.d.ts +6 -0
- package/dist/types/Constants/page.const.d.ts +5 -0
- package/dist/types/DataStructures/BaseUrl.d.ts +33 -0
- package/dist/types/DataStructures/BinaryTree.d.ts +1 -0
- package/dist/types/DataStructures/BinaryTypeTree.d.ts +7 -5
- package/dist/types/DataStructures/Concept.d.ts +11 -15
- package/dist/types/DataStructures/ConceptData.d.ts +7 -2
- package/dist/types/DataStructures/Connection.d.ts +6 -10
- package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionBinaryTree.d.ts +3 -1
- package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionNode.d.ts +3 -0
- package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionOfNode.d.ts +10 -0
- package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionOfTheTree.d.ts +24 -0
- package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionTypeNode.d.ts +10 -0
- package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionTypeTree.d.ts +16 -9
- package/dist/types/DataStructures/ConnectionBinaryTree/NodePrimitive.d.ts +15 -0
- package/dist/types/DataStructures/ConnectionByType/GetConnectionByType.d.ts +4 -0
- package/dist/types/DataStructures/ConnectionData.d.ts +11 -3
- package/dist/types/DataStructures/Local/LConcept.d.ts +5 -3
- package/dist/types/DataStructures/Local/LConnection.d.ts +3 -3
- package/dist/types/DataStructures/Local/LNode.d.ts +5 -3
- package/dist/types/DataStructures/Local/LocalBinaryCharacterTree.d.ts +3 -2
- package/dist/types/DataStructures/Local/LocalBinaryTree.d.ts +3 -2
- package/dist/types/DataStructures/Local/LocalBinaryTypeTree.d.ts +4 -4
- package/dist/types/DataStructures/Local/LocalConceptData.d.ts +16 -9
- package/dist/types/DataStructures/Local/LocalConnectionData.d.ts +13 -9
- package/dist/types/DataStructures/Local/LocalGhostIdTree.d.ts +11 -0
- package/dist/types/DataStructures/Local/LocalId.d.ts +19 -0
- package/dist/types/DataStructures/Local/LocalSyncData.d.ts +29 -10
- package/dist/types/DataStructures/Node.d.ts +1 -0
- package/dist/types/DataStructures/Prototype/Prototype.d.ts +19 -0
- package/dist/types/DataStructures/Prototype/PrototypeOption.d.ts +4 -0
- package/dist/types/DataStructures/Prototype/QuerySelector.d.ts +4 -0
- package/dist/types/DataStructures/Search/FreeschemaQuery.d.ts +2 -1
- package/dist/types/DataStructures/Search/SearchStructure.d.ts +1 -0
- package/dist/types/DataStructures/SearchQuery.d.ts +1 -0
- package/dist/types/DataStructures/Security/TokenStorage.d.ts +2 -1
- package/dist/types/DataStructures/SyncData.d.ts +1 -13
- package/dist/types/DataStructures/TypeLibrary.d.ts +19 -0
- package/dist/types/DataStructures/TypeNode.d.ts +18 -0
- package/dist/types/DataStructures/User/UserBinaryTree.d.ts +5 -7
- package/dist/types/DataStructures/User/UserNode.d.ts +3 -5
- package/dist/types/DataStructures/WidgetCache/WidgetCache.d.ts +10 -0
- package/dist/types/DataStructures/WidgetCache/WidgetDetails.d.ts +9 -0
- package/dist/types/DataStructures/WidgetCache/WidgetNode.d.ts +18 -0
- package/dist/types/Database/IndexUpdate.d.ts +47 -0
- package/dist/types/Database/NoIndexDb.d.ts +1 -1
- package/dist/types/Database/indexdblocal.d.ts +40 -0
- package/dist/types/Database/indexeddb.d.ts +50 -0
- package/dist/types/Helpers/CheckIfExists.d.ts +2 -3
- package/dist/types/Helpers/RemoveFromArray.d.ts +1 -2
- package/dist/types/Middleware/ApplicationMonitor.d.ts +14 -0
- package/dist/types/Middleware/logger.service.d.ts +144 -0
- package/dist/types/ServiceWorker/actions/connectionActions.d.ts +2 -0
- package/dist/types/ServiceWorker/actions/createActions.d.ts +2 -0
- package/dist/types/ServiceWorker/actions/deleteActions.d.ts +2 -0
- package/dist/types/ServiceWorker/actions/getActions.d.ts +2 -0
- package/dist/types/ServiceWorker/actions/index.d.ts +15 -0
- package/dist/types/ServiceWorker/actions/searchActions.d.ts +2 -0
- package/dist/types/ServiceWorker/actions/syncActions.d.ts +2 -0
- package/dist/types/ServiceWorker/actions/updateActions.d.ts +2 -0
- package/dist/types/ServiceWorker/index.d.ts +11 -0
- package/dist/types/Services/AccessControl/AccessControl.d.ts +218 -0
- package/dist/types/Services/Common/DelayFunction.d.ts +7 -0
- package/dist/types/Services/Common/ErrorPosting.d.ts +8 -0
- package/dist/types/Services/Common/MergeArrays.d.ts +7 -0
- package/dist/types/Services/Common/RemoveAllChild.d.ts +1 -0
- package/dist/types/Services/ConceptFinding/GetConceptByCharacterAndCategory.d.ts +0 -1
- package/dist/types/Services/Conversion/ConvertConcepts.d.ts +3 -5
- package/dist/types/Services/CreateBinaryTreeFromData.d.ts +4 -1
- package/dist/types/Services/CreateCharacterBinaryTreeFromData.d.ts +4 -0
- package/dist/types/Services/CreateConnection/CreateConnectionEntity.d.ts +2 -0
- package/dist/types/Services/CreateConnectionBetweenTwoConcepts.d.ts +1 -1
- package/dist/types/Services/CreateTheComposition.d.ts +1 -2
- package/dist/types/Services/CreateTheConcept.d.ts +3 -4
- package/dist/types/Services/CreateTheConnection.d.ts +9 -1
- package/dist/types/Services/CreateTheConnectionGeneral.d.ts +1 -4
- package/dist/types/Services/DeleteConcept.d.ts +2 -1
- package/dist/types/Services/DeleteConnection.d.ts +2 -1
- package/dist/types/Services/DeleteConnectionByType.d.ts +22 -0
- package/dist/types/Services/FindConeceptsFromConnection.d.ts +4 -0
- package/dist/types/Services/FindConnectionsOfCompositionBulkInMemory.d.ts +1 -2
- package/dist/types/Services/GetComposition.d.ts +139 -1
- package/dist/types/Services/GetCompositionBulk.d.ts +94 -5
- package/dist/types/Services/GetCompositionList.d.ts +5 -0
- package/dist/types/Services/GetConceptByCharacter.d.ts +2 -3
- package/dist/types/Services/GetConnectionBetweenTwoConceptsLinker.d.ts +11 -0
- package/dist/types/Services/GetConnections.d.ts +1 -2
- package/dist/types/Services/GetDataFromIndexDb.d.ts +2 -2
- package/dist/types/Services/GetLink.d.ts +1 -1
- package/dist/types/Services/GetRelation.d.ts +2 -5
- package/dist/types/Services/GetTheConcept.d.ts +7 -0
- package/dist/types/Services/InitializeSystem.d.ts +1 -1
- package/dist/types/Services/Local/ConvertFromLConceptToConcept.d.ts +2 -0
- package/dist/types/Services/Local/ConvertFromLConnectionToConnection.d.ts +2 -0
- package/dist/types/Services/Local/CreateConnectionBetweenTwoConceptsLocal.d.ts +3 -0
- package/dist/types/Services/Local/CreateDefaultLConcept.d.ts +2 -2
- package/dist/types/Services/Local/CreateLocalBinaryTreeFromData.d.ts +29 -1
- package/dist/types/Services/Local/CreateTheCompositionLocal.d.ts +14 -2
- package/dist/types/Services/Local/CreateTheConceptLocal.d.ts +22 -2
- package/dist/types/Services/Local/CreateTheConnectionLocal.d.ts +16 -2
- package/dist/types/Services/Local/DeleteConceptLocal.d.ts +1 -0
- package/dist/types/Services/Local/GetCompositionListLocal.d.ts +12 -0
- package/dist/types/Services/Local/GetConceptByCharacterLocal.d.ts +10 -1
- package/dist/types/Services/Local/GetConnectionOfTheConceptLocal.d.ts +2 -0
- package/dist/types/Services/Local/GetRelationLocal.d.ts +1 -0
- package/dist/types/Services/Local/GetTheConceptLocal.d.ts +9 -0
- package/dist/types/Services/Local/MakeTheConceptLocal.d.ts +2 -2
- package/dist/types/Services/Local/MakeTheInstanceConceptLocal.d.ts +18 -2
- package/dist/types/Services/Local/MakeTheTypeLocal.d.ts +16 -2
- package/dist/types/Services/Local/UpdateCompositionLocal.d.ts +3 -2
- package/dist/types/Services/Mail.d.ts +18 -0
- package/dist/types/Services/MakeTheConcept.d.ts +1 -1
- package/dist/types/Services/MakeTheInstanceConcept.d.ts +15 -3
- package/dist/types/Services/MakeTheTimestamp.d.ts +1 -2
- package/dist/types/Services/MakeTheTypeConcept.d.ts +1 -3
- package/dist/types/Services/Search/DataIdFormat.d.ts +18 -18
- package/dist/types/Services/Search/FormatData.d.ts +20 -10
- package/dist/types/Services/Search/NewFormat.d.ts +4 -0
- package/dist/types/Services/Search/SearchLinkInternal.d.ts +1 -0
- package/dist/types/Services/Search/SearchLinkMultiple.d.ts +53 -1
- package/dist/types/Services/Search/SearchWithTypeAndLinker.d.ts +53 -5
- package/dist/types/Services/Security/GetRequestHeader.d.ts +3 -10
- package/dist/types/Services/Transaction/LocalTransaction.d.ts +45 -0
- package/dist/types/Services/UpdateComposition.d.ts +1 -1
- package/dist/types/Services/Upload.d.ts +33 -0
- package/dist/types/Services/User/UserFromLocalStorage.d.ts +6 -0
- package/dist/types/Services/User/UserTranslation.d.ts +3 -6
- package/dist/types/Services/assets/GetImageService.d.ts +14 -0
- package/dist/types/Services/automated/automated-concept-connection.d.ts +7 -0
- package/dist/types/Services/cacheService.d.ts +1 -0
- package/dist/types/Validator/constant.d.ts +3 -0
- package/dist/types/Validator/interface.d.ts +19 -0
- package/dist/types/Validator/utils.d.ts +7 -0
- package/dist/types/Validator/validator.d.ts +37 -0
- package/dist/types/Visualize/ConceptCircle.d.ts +35 -0
- package/dist/types/Visualize/ConceptCircleList.d.ts +9 -0
- package/dist/types/Visualize/ConnectionLine.d.ts +21 -0
- package/dist/types/Visualize/ConnectionLineList.d.ts +6 -0
- package/dist/types/Visualize/drawExistingConcepts.d.ts +8 -0
- package/dist/types/Visualize/helper.d.ts +15 -0
- package/dist/types/Visualize/index.d.ts +0 -0
- package/dist/types/Widgets/BaseObserver.d.ts +22 -0
- package/dist/types/Widgets/BaseWidget.d.ts +24 -0
- package/dist/types/Widgets/BuilderSpeceficFunctions.d.ts +2 -0
- package/dist/types/Widgets/BuilderStatefulWidget.d.ts +42 -0
- package/dist/types/Widgets/CacheWidget.service.d.ts +17 -0
- package/dist/types/Widgets/NormalizeStyles.service.d.ts +1 -0
- package/dist/types/Widgets/RenderPage.service.d.ts +12 -0
- package/dist/types/Widgets/RenderWidgetLibrary.service.d.ts +14 -0
- package/dist/types/Widgets/RenderWidgetService.d.ts +50 -0
- package/dist/types/Widgets/StatefulWidget.d.ts +102 -0
- package/dist/types/Widgets/WidgetBuild.d.ts +4 -0
- package/dist/types/Widgets/WidgetTree.d.ts +29 -0
- package/dist/types/Widgets/mainView.class.d.ts +6 -0
- package/dist/types/WrapperFunctions/DepenedencyObserver.d.ts +73 -0
- package/dist/types/WrapperFunctions/GetCompositionListObservable.d.ts +19 -0
- package/dist/types/WrapperFunctions/GetCompositionObservable.d.ts +13 -0
- package/dist/types/WrapperFunctions/GetLinkListObservable.d.ts +28 -0
- package/dist/types/WrapperFunctions/GetLinkObservable.d.ts +32 -0
- package/dist/types/WrapperFunctions/RecursiveSearchObservable.d.ts +37 -0
- package/dist/types/WrapperFunctions/SchemaQueryObservable.d.ts +9 -11
- package/dist/types/WrapperFunctions/SearchLinkMultipleAllObservable.d.ts +15 -0
- package/dist/types/app.d.ts +128 -24
- package/dist/types/prototype/getPrototype.service.d.ts +2 -0
- package/dist/types/prototype/prototype.service.d.ts +25 -0
- package/dist/types/service-worker.d.ts +1 -0
- package/package.json +1 -1
- package/dist/bundle.js +0 -2
- package/dist/bundle.js.LICENSE.txt +0 -1
- package/dist/types/DataStructures/Transaction/Transaction.d.ts +0 -30
- package/dist/types/Services/AccessControl/AccessControlCacheService.d.ts +0 -19
- package/dist/types/Services/AccessControl/AccessControlService.d.ts +0 -267
- package/dist/types/Services/AccessControl/PermissionSet.d.ts +0 -8
- package/dist/types/Services/Delete/GetAllConnectionByType.d.ts +0 -16
- package/dist/types/Services/MakeTheName.d.ts +0 -2
- package/dist/types/Services/auth/AuthService.d.ts +0 -1
- /package/dist/types/{Services/MakeTheLocalConcept.d.ts → Middleware/ErrorHandling.d.ts} +0 -0
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Concept, Connection } from "../app";
|
|
2
|
+
export declare class ConceptCircle {
|
|
3
|
+
concept: Concept;
|
|
4
|
+
x: number;
|
|
5
|
+
y: number;
|
|
6
|
+
radius: number;
|
|
7
|
+
selected: boolean;
|
|
8
|
+
detailsVisible: boolean;
|
|
9
|
+
quadrant: number;
|
|
10
|
+
color: string;
|
|
11
|
+
isComposition: boolean;
|
|
12
|
+
parent: ConceptCircle | null;
|
|
13
|
+
isMoved: boolean;
|
|
14
|
+
childCount: number;
|
|
15
|
+
order: number;
|
|
16
|
+
ctx: null;
|
|
17
|
+
dataConnections: Connection[];
|
|
18
|
+
childrenConcepts: ConceptCircle[];
|
|
19
|
+
isGrouped: boolean;
|
|
20
|
+
canvas: any;
|
|
21
|
+
active: boolean;
|
|
22
|
+
constructor(concept: Concept, ctx: any);
|
|
23
|
+
realign(): void;
|
|
24
|
+
addDataConnections(connections: Connection[]): void;
|
|
25
|
+
setInPlace(newX: any, newY: any, ctx: any): void;
|
|
26
|
+
draw(ctx: any): void;
|
|
27
|
+
drawAsPerParent(): void;
|
|
28
|
+
drawNumber(ctx: any): void;
|
|
29
|
+
activate(): void;
|
|
30
|
+
select(): void;
|
|
31
|
+
makeComposition(): void;
|
|
32
|
+
showDetails(): Promise<void>;
|
|
33
|
+
getQuadrant(ctx: any): void;
|
|
34
|
+
checkWithAnotherConcept(conceptToCheck: ConceptCircle): boolean;
|
|
35
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ConceptCircle } from "./ConceptCircle";
|
|
2
|
+
export declare class ConceptCircleList {
|
|
3
|
+
static drawList: ConceptCircle[];
|
|
4
|
+
static addNewConceptCircle(conceptCircle: ConceptCircle): boolean;
|
|
5
|
+
static removeConceptCircle(conceptCircle: ConceptCircle): void;
|
|
6
|
+
static getConceptCircle(conceptId: number, ctx: any): Promise<ConceptCircle | undefined>;
|
|
7
|
+
static getConceptCircleFromList(conceptId: number): ConceptCircle | null;
|
|
8
|
+
static addConceptCircle(conceptId: number, ctx: any): Promise<ConceptCircle>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Connection, Concept } from "../app";
|
|
2
|
+
import { ConceptCircle } from "./ConceptCircle";
|
|
3
|
+
export declare class ConnectionLine {
|
|
4
|
+
concept: Concept;
|
|
5
|
+
ofConcept: ConceptCircle | undefined;
|
|
6
|
+
toConcept: ConceptCircle | undefined;
|
|
7
|
+
selected: boolean;
|
|
8
|
+
quadrant: number;
|
|
9
|
+
type: null;
|
|
10
|
+
id: number;
|
|
11
|
+
canvas: any;
|
|
12
|
+
ctx: any;
|
|
13
|
+
connection: Connection;
|
|
14
|
+
active: boolean;
|
|
15
|
+
constructor(connection: Connection, ctx: any);
|
|
16
|
+
updateConcept(connection: Connection): Promise<void>;
|
|
17
|
+
draw(ctx: any): void;
|
|
18
|
+
drawNumber(ctx: any): void;
|
|
19
|
+
activate(): void;
|
|
20
|
+
select(): void;
|
|
21
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ConnectionLine } from "./ConnectionLine";
|
|
2
|
+
export declare class ConnectionLineList {
|
|
3
|
+
static drawList: ConnectionLine[];
|
|
4
|
+
static addNewConnectionLine(connectionLine: ConnectionLine): void;
|
|
5
|
+
static removeConnectionLine(connectionLine: ConnectionLine): void;
|
|
6
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Connection } from "../app";
|
|
2
|
+
export declare function printAllConcepts(ctx: any): Promise<void>;
|
|
3
|
+
export declare function getLinkData(connection: Connection, ctx: any): Promise<void>;
|
|
4
|
+
export declare function getLinkDataOf(connection: Connection, ctx: any): Promise<void>;
|
|
5
|
+
export declare function printAllConceptsOfIdWithoutData(ctx: any, id: number): Promise<void>;
|
|
6
|
+
export declare function printConcept(ctx: any, id: number): Promise<void>;
|
|
7
|
+
export declare function printAllConceptsOfId(ctx: any, id: number): Promise<void>;
|
|
8
|
+
export declare function checkIfExists(id: number, conceptIds: number[]): boolean;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare function drawCircle(ctx: any, x: any, y: any, radius: any, color: any): void;
|
|
2
|
+
export declare function drawTriangle(ctx: any, x: any, y: any, radius: any, color: any): void;
|
|
3
|
+
export declare function drawLine(ctx: any, x1: any, y1: any, x2: any, y2: any, color: any): void;
|
|
4
|
+
export declare function drawArrow(ctx: any, fromx: any, fromy: any, tox: any, toy: any, arrowWidth: any, color: any): void;
|
|
5
|
+
export declare function drawArc(ctx: any, x1: any, y1: any, x2: any, y2: any, color: any): void;
|
|
6
|
+
export declare function getMouseCoords(canvas: any, event: any): {
|
|
7
|
+
x: number;
|
|
8
|
+
y: number;
|
|
9
|
+
};
|
|
10
|
+
export declare function randomIntFromInterval(min: any, max: any): number;
|
|
11
|
+
export declare function getOffsetCoords(mouse: any, conceptCircle: any): {
|
|
12
|
+
x: number;
|
|
13
|
+
y: number;
|
|
14
|
+
};
|
|
15
|
+
export declare function cursorInRect(mouseX: any, mouseY: any, rectX: any, rectY: any, radius: any): boolean;
|
|
File without changes
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare class BaseObserver {
|
|
2
|
+
/**
|
|
3
|
+
* This is where the data of the widget needs to be stored.
|
|
4
|
+
*/
|
|
5
|
+
data: any;
|
|
6
|
+
inDevelopment: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* This is the subscribers of the data. If any thing on this widget changes then all the functions
|
|
9
|
+
* in the subscribers are called.
|
|
10
|
+
*/
|
|
11
|
+
subscribers: any;
|
|
12
|
+
/**
|
|
13
|
+
* This is called by any data change. So that any data change will notify all the callback functions to execute.
|
|
14
|
+
*/
|
|
15
|
+
notify(passedData?: any): void;
|
|
16
|
+
/**
|
|
17
|
+
* This function is used to register the callback into the function in case of any dataChange.
|
|
18
|
+
* @param callback sets this callback to the subscribers list in the widget. So that in any change we can call this callback
|
|
19
|
+
* @returns execution of the callback passed.
|
|
20
|
+
*/
|
|
21
|
+
dataChange(callback: any): void;
|
|
22
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { BaseObserver } from "./BaseObserver";
|
|
2
|
+
export declare class BaseWidget extends BaseObserver {
|
|
3
|
+
/**
|
|
4
|
+
* This is the element that is a copy of the element that is mounted.
|
|
5
|
+
*/
|
|
6
|
+
element: HTMLElement | null;
|
|
7
|
+
/**
|
|
8
|
+
* This is a random identifier to the widget that is used to identify the widget and other elements
|
|
9
|
+
* inside of it.
|
|
10
|
+
*/
|
|
11
|
+
elementIdentifier: number;
|
|
12
|
+
/**
|
|
13
|
+
* This flag is set to denote that that widget has been mounted
|
|
14
|
+
*/
|
|
15
|
+
widgetMounted: boolean;
|
|
16
|
+
getComponent(): HTMLElement | null;
|
|
17
|
+
getElementById(identifier: string): HTMLElement | null;
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @returns random number that will be used to put into the main widget div so that we can uniqely identify
|
|
21
|
+
* the widget and its children from others.
|
|
22
|
+
*/
|
|
23
|
+
createWidgetWrapperIdentifier(): string;
|
|
24
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { StatefulWidget } from "./StatefulWidget";
|
|
2
|
+
import { Concept } from "../app";
|
|
3
|
+
import { TCustomFunction } from "../DataStructures/TypeLibrary";
|
|
4
|
+
export declare class BuilderStatefulWidget extends StatefulWidget {
|
|
5
|
+
childComponents: any;
|
|
6
|
+
componentMounted: boolean;
|
|
7
|
+
oldHtml: HTMLElement | null;
|
|
8
|
+
onmountVal: any;
|
|
9
|
+
addEventVal: any;
|
|
10
|
+
phonebooks: any;
|
|
11
|
+
childrenData: any;
|
|
12
|
+
addEventFunction: any;
|
|
13
|
+
componentDidMountFunction: any;
|
|
14
|
+
mountChildWidgetsFunction: any;
|
|
15
|
+
childWidgets: any;
|
|
16
|
+
typeValueList: any;
|
|
17
|
+
widgetType: string;
|
|
18
|
+
parentConceptList: any;
|
|
19
|
+
customFunctions: TCustomFunction[];
|
|
20
|
+
widgetDependenciesData: string;
|
|
21
|
+
getUserId(): Promise<any>;
|
|
22
|
+
getTypeValueList(typeName?: string): Promise<unknown>;
|
|
23
|
+
setTitle(title: string): void;
|
|
24
|
+
getHtml(): string;
|
|
25
|
+
createRandomNumber(): number;
|
|
26
|
+
mount_child(): Promise<void>;
|
|
27
|
+
setProperty(widgetTypeName: any): Promise<this>;
|
|
28
|
+
createTypeEditor(event: any): void;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @param parent This is the function that creates a new div and then mounts the html element to the parent.
|
|
32
|
+
*/
|
|
33
|
+
mount(parent: HTMLElement): Promise<void>;
|
|
34
|
+
render_widgetDependencies(): void;
|
|
35
|
+
render_custom_functions(): void;
|
|
36
|
+
/**
|
|
37
|
+
* This function will be called after the component mounts.
|
|
38
|
+
*/
|
|
39
|
+
before_render(): void;
|
|
40
|
+
after_render(): void;
|
|
41
|
+
CreateConnectionBetweenEntityLocal(concept1Data: Concept, concept2Data: Concept, linker: string): Promise<string>;
|
|
42
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface CacheStats {
|
|
2
|
+
cacheSize: number;
|
|
3
|
+
pendingRequests: number;
|
|
4
|
+
keys: string[];
|
|
5
|
+
}
|
|
6
|
+
export declare class DataCache<T = any> {
|
|
7
|
+
static cache: Map<string, any>;
|
|
8
|
+
static promises: Map<string, Promise<any>>;
|
|
9
|
+
static get<K>(key: string, fetcher: () => Promise<K>): Promise<K>;
|
|
10
|
+
static has(key: string): boolean;
|
|
11
|
+
static peek<K>(key: string): K | undefined;
|
|
12
|
+
static invalidate(key: string): void;
|
|
13
|
+
static clear(): void;
|
|
14
|
+
static set<K>(key: string, data: K): Promise<K>;
|
|
15
|
+
static stats(): CacheStats;
|
|
16
|
+
}
|
|
17
|
+
export declare function initWidgetCache(): DataCache<any>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function normalizeCSS(cssString: string): Promise<string | null>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* @param pageData
|
|
4
|
+
*/
|
|
5
|
+
export declare function applyPageProperties(pageData: any): Promise<void>;
|
|
6
|
+
/**
|
|
7
|
+
*
|
|
8
|
+
* @param property
|
|
9
|
+
* @param value
|
|
10
|
+
* @returns
|
|
11
|
+
*/
|
|
12
|
+
export declare function applyPageProperty(property: string, value: any): Promise<void>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { WidgetTree } from "./WidgetTree";
|
|
2
|
+
export declare function initializeLibraries(widgetTree: WidgetTree): Promise<void>;
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
* @param cssClassName
|
|
6
|
+
* @returns
|
|
7
|
+
*/
|
|
8
|
+
export declare function removeCSSLibrariesFromHead(cssClassName: string): void;
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
* @param jsClassName
|
|
12
|
+
* @returns
|
|
13
|
+
*/
|
|
14
|
+
export declare function removeJSLibrariesFromHead(jsClassName: string): void;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { BuilderStatefulWidget, StatefulWidget, WidgetTree } from "../app";
|
|
2
|
+
export declare function renderPage(pageId: number, attachNode: HTMLElement, props?: any, showDocumentation?: boolean): Promise<void>;
|
|
3
|
+
export declare function importLatestWidget(widgetId: number, attachNode?: HTMLElement, props?: any, showDocumentation?: boolean): Promise<WidgetTree | undefined>;
|
|
4
|
+
export declare function renderImportedWidget(widgetId: number, attachNode: HTMLElement, props?: any, showDocumentation?: boolean): Promise<BuilderStatefulWidget | undefined>;
|
|
5
|
+
export declare function renderLatestWidget(widgetId: number, attachNode: HTMLElement, props?: any, showDocumentation?: boolean): Promise<BuilderStatefulWidget | undefined>;
|
|
6
|
+
export declare function renderWidget(widgetId: number, attachNode: HTMLElement, props?: any, showDocumentation?: boolean): Promise<BuilderStatefulWidget | undefined>;
|
|
7
|
+
export declare function materializeWidget(widgetId: number, bulkWidget: any, attachNode: HTMLElement, props?: any, showDocumentation?: boolean): Promise<BuilderStatefulWidget | undefined>;
|
|
8
|
+
export declare function getWidgetFromId(widgetId: number, visitedWidgets?: number[], token?: string): Promise<WidgetTree>;
|
|
9
|
+
/**
|
|
10
|
+
* This function builds a widget tree. This tree is built fully along with its children
|
|
11
|
+
* This tree can then be used to build the whole dom for the widget.
|
|
12
|
+
* This has recursive property so that the recursion can be used to build this tree.
|
|
13
|
+
* @param widgetId the id of the widget
|
|
14
|
+
* @returns WidgetTree.
|
|
15
|
+
*/
|
|
16
|
+
export declare function getWidgetBulkFromId(widgetId: number, visitedWidgets: number[] | undefined, bulkWidget: any, token?: string): Promise<WidgetTree>;
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @param tree Widget tree from getWidgetFromId(widgetId);
|
|
20
|
+
* @param parentElement this is the dom element on which we want to add our widget
|
|
21
|
+
* @returns the widgetree with widgets attached inside of it.
|
|
22
|
+
* Also this will add the tree to the dom.
|
|
23
|
+
*/
|
|
24
|
+
export declare function convertWidgetTreeToWidget(tree: WidgetTree, parentElement: HTMLElement, isMain?: boolean, props?: any, state?: any, parentWidget?: StatefulWidget | null): Promise<BuilderStatefulWidget>;
|
|
25
|
+
export declare function makeShallow(input: any): any;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @param tree Widget tree from getWidgetFromId(widgetId);
|
|
29
|
+
* @param parentElement this is the dom element on which we want to add our widget
|
|
30
|
+
* @returns the widgetree with widgets attached inside of it.
|
|
31
|
+
* Also this will add the tree to the dom.
|
|
32
|
+
*/
|
|
33
|
+
export declare function convertWidgetTreeToWidgetWithWrapper(tree: WidgetTree, parentElement: HTMLElement, isMain?: boolean, state?: object, isInDevelopment?: boolean, parentWidget?: StatefulWidget | null): Promise<BuilderStatefulWidget>;
|
|
34
|
+
export declare function unwrapContainers(parentElement: HTMLElement, selector: string): Promise<void>;
|
|
35
|
+
/**
|
|
36
|
+
* Opens documentation modal
|
|
37
|
+
* @param widgetId
|
|
38
|
+
*/
|
|
39
|
+
export declare function openDocumentationPreviewModal(widgetId: number): Promise<void>;
|
|
40
|
+
export declare function showWidgetDocumentation(widgetDocumentData: any, widgetId: number): Promise<void>;
|
|
41
|
+
/**
|
|
42
|
+
* Opens modal
|
|
43
|
+
* @param modalId
|
|
44
|
+
*/
|
|
45
|
+
export declare function openModal(modalId: string): Promise<void>;
|
|
46
|
+
/**
|
|
47
|
+
* Closes modal
|
|
48
|
+
* @param modalId
|
|
49
|
+
*/
|
|
50
|
+
export declare function closeModal(modalId: string): Promise<void>;
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { BaseWidget } from "./BaseWidget";
|
|
2
|
+
/**
|
|
3
|
+
* Implementation of a widget system. If you need to create a widget that is compatible with the concept connection
|
|
4
|
+
* system them extend this class and populate the functions such as getHtml() and widgetDidMount()
|
|
5
|
+
*/
|
|
6
|
+
export declare class StatefulWidget extends BaseWidget {
|
|
7
|
+
params: any;
|
|
8
|
+
html: string;
|
|
9
|
+
css: string;
|
|
10
|
+
js: string;
|
|
11
|
+
state: {
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
};
|
|
14
|
+
previousState: {
|
|
15
|
+
[key: string]: any;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* These are the child widgets that need to be added to this widget
|
|
19
|
+
*/
|
|
20
|
+
childWidgets: any;
|
|
21
|
+
childWidgetElement: any;
|
|
22
|
+
parentWidget: any;
|
|
23
|
+
/**
|
|
24
|
+
* store widget state datas to pass through child widgets
|
|
25
|
+
*/
|
|
26
|
+
widgetState: {
|
|
27
|
+
[key: string]: any;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* This is the id of the parentElement of this widget.
|
|
31
|
+
*/
|
|
32
|
+
parentElement: string;
|
|
33
|
+
querySelector(selector: string): Element | null;
|
|
34
|
+
querySelectorAll(selector: string): NodeListOf<Element> | null;
|
|
35
|
+
getElement(): HTMLElement | null;
|
|
36
|
+
setTitle(title: string): void;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @returns the html string that needs to be mounted to the DOM.
|
|
40
|
+
*/
|
|
41
|
+
getHtml(): string;
|
|
42
|
+
/**
|
|
43
|
+
* This will help us update the data of the child widget. This will also call another function inside of the child widget
|
|
44
|
+
* called udpateWidget which the user can call after some data is udpated.
|
|
45
|
+
* @param value
|
|
46
|
+
* @param widget
|
|
47
|
+
*/
|
|
48
|
+
UpdateChildData(value: any, widget: StatefulWidget): void;
|
|
49
|
+
/**
|
|
50
|
+
* This is called after the data has been udpated by some other component.
|
|
51
|
+
*/
|
|
52
|
+
update(): void;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @param newState
|
|
56
|
+
*/
|
|
57
|
+
setState(newState: any): void;
|
|
58
|
+
setStateProperty(newProperty: Object): void;
|
|
59
|
+
hasStateChanged(): boolean;
|
|
60
|
+
private isPropertyEqual;
|
|
61
|
+
/**
|
|
62
|
+
* If any child widgets are registered in the widget. Then without any other changes to the contents and state
|
|
63
|
+
* this loadChildWidgets will be called which will help the child widgets be rendered to their respective positions.
|
|
64
|
+
*/
|
|
65
|
+
loadChildWidgets(): void;
|
|
66
|
+
/**
|
|
67
|
+
* This is the main function that adds the html of the component to the element.
|
|
68
|
+
* The element is the mounted widget
|
|
69
|
+
*/
|
|
70
|
+
render(): void;
|
|
71
|
+
getElementByClassName(identifier: string): never[] | NodeListOf<Element>;
|
|
72
|
+
/**
|
|
73
|
+
* This is the function that needs to be called.
|
|
74
|
+
*/
|
|
75
|
+
mount_child(): void;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @param parent This is the function that creates a new div and then mounts the html element to the parent.
|
|
79
|
+
*/
|
|
80
|
+
mount(parent: HTMLElement): Promise<void>;
|
|
81
|
+
/**
|
|
82
|
+
* This function will be called after the component mounts.
|
|
83
|
+
*/
|
|
84
|
+
before_render(): void;
|
|
85
|
+
/**
|
|
86
|
+
* This is called after the render function has been called. So this is used for the user functions to be added
|
|
87
|
+
* for the widget and its html element. User can add any logic here.
|
|
88
|
+
*/
|
|
89
|
+
after_render(): void;
|
|
90
|
+
/**
|
|
91
|
+
* render child widgets
|
|
92
|
+
*/
|
|
93
|
+
renderChildWidgets(): void;
|
|
94
|
+
/**
|
|
95
|
+
* save widget state data as key and value pair.
|
|
96
|
+
*/
|
|
97
|
+
setWidgetState(key: string, value: any): void;
|
|
98
|
+
/**
|
|
99
|
+
* get the saved widget state from stateful widget
|
|
100
|
+
*/
|
|
101
|
+
getWidgetState(key: string, defaultValue: any): object;
|
|
102
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare function BuildWidgetFromId(id: number): Promise<any>;
|
|
2
|
+
export declare function BuildWidgetFromCache(id: number): Promise<any>;
|
|
3
|
+
export declare function BuildWidgetFromIdForLatest(id: number): Promise<any>;
|
|
4
|
+
export declare function GetWidgetForTree(data: any, id: number): any;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { TAssistant, TCustomFunction, TMainLibrary } from "../DataStructures/TypeLibrary";
|
|
2
|
+
import { BuilderStatefulWidget } from "./BuilderStatefulWidget";
|
|
3
|
+
export declare class WidgetTree {
|
|
4
|
+
id: number;
|
|
5
|
+
name: string;
|
|
6
|
+
html: string;
|
|
7
|
+
css: string;
|
|
8
|
+
js: string;
|
|
9
|
+
library: TMainLibrary;
|
|
10
|
+
assistant: TAssistant;
|
|
11
|
+
timestamp: string;
|
|
12
|
+
widgetId: number;
|
|
13
|
+
type: string;
|
|
14
|
+
clean: string;
|
|
15
|
+
after_render: string;
|
|
16
|
+
before_render: string;
|
|
17
|
+
custom_functions: TCustomFunction[];
|
|
18
|
+
update: string;
|
|
19
|
+
origin: number;
|
|
20
|
+
version: number;
|
|
21
|
+
mount_child: string;
|
|
22
|
+
children: WidgetTree[];
|
|
23
|
+
wrapper: string;
|
|
24
|
+
widget: BuilderStatefulWidget;
|
|
25
|
+
sChildId?: number;
|
|
26
|
+
isPublished?: boolean;
|
|
27
|
+
useLatest?: boolean;
|
|
28
|
+
dependency: string;
|
|
29
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This is the class that helps us observe anything that the function is doing
|
|
3
|
+
* This wrapper will allow all the concepts and connections to be tracked inside of the called function
|
|
4
|
+
* This function helps us manage state using the concept connection system.
|
|
5
|
+
*/
|
|
6
|
+
export declare class DependencyObserver {
|
|
7
|
+
subscribers: any[];
|
|
8
|
+
mainConcept: number;
|
|
9
|
+
compositionIds: number[];
|
|
10
|
+
conceptIds: number[];
|
|
11
|
+
internalConnections: number[];
|
|
12
|
+
reverse: number[];
|
|
13
|
+
linkers: number[];
|
|
14
|
+
newIds: number[];
|
|
15
|
+
dependency: number[];
|
|
16
|
+
isDataLoaded: boolean;
|
|
17
|
+
isUpdating: boolean;
|
|
18
|
+
data: any;
|
|
19
|
+
fetched: boolean;
|
|
20
|
+
format: number;
|
|
21
|
+
eventHandlers: {
|
|
22
|
+
[key: number]: (event: Event) => void;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* This function will be called when there is a need to listen to a certain type of concept that will update
|
|
26
|
+
* the ui.
|
|
27
|
+
* @param id this is the type id which needs to be tracked
|
|
28
|
+
*/
|
|
29
|
+
listenToEventType(id: number): void;
|
|
30
|
+
/**
|
|
31
|
+
* This is the of the concept id that needs to be listened . If this is called. All the connections that are
|
|
32
|
+
* created with of the concepts id with this passed id then the event is fired.
|
|
33
|
+
*
|
|
34
|
+
* @param id Of the concept id that needs to be listened.
|
|
35
|
+
*/
|
|
36
|
+
listenToEvent(id: number): void;
|
|
37
|
+
removeListenToEvent(id: number): void;
|
|
38
|
+
/**
|
|
39
|
+
* This is the of the concept id that needs to be listened . If this is called. All the connections that are
|
|
40
|
+
* created with of the concepts id with this passed id then the event is fired.
|
|
41
|
+
*
|
|
42
|
+
* @param id Of the concept id that needs to be listened.
|
|
43
|
+
*/
|
|
44
|
+
listenToEventConnectionType(id: number, connectionType: number): void;
|
|
45
|
+
/**
|
|
46
|
+
* This function will bind the actual data to the widget or the function.
|
|
47
|
+
*/
|
|
48
|
+
bind(): Promise<void>;
|
|
49
|
+
run(): Promise<void>;
|
|
50
|
+
update(): Promise<void>;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @param callback the function that needs to be called with the data.
|
|
54
|
+
* @returns returns the callback with this data as the state.
|
|
55
|
+
*/
|
|
56
|
+
subscribe(callback: any): Promise<any>;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
*
|
|
60
|
+
* @returns data
|
|
61
|
+
*/
|
|
62
|
+
execute(): Promise<void>;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @param callback function that you need to remove from the subscribers list.
|
|
66
|
+
* @returns
|
|
67
|
+
*/
|
|
68
|
+
unsubscribe(callback: any): number;
|
|
69
|
+
/**
|
|
70
|
+
* This function will call all the subscribers that are registered in this wrapper.
|
|
71
|
+
*/
|
|
72
|
+
notify(): void;
|
|
73
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { DependencyObserver } from "./DepenedencyObserver";
|
|
2
|
+
/**
|
|
3
|
+
* This wrapper will wrap the listing function and then allow users to return the list.
|
|
4
|
+
*/
|
|
5
|
+
export declare class GetCompositionListObservable extends DependencyObserver {
|
|
6
|
+
compositionName: string;
|
|
7
|
+
userId: number;
|
|
8
|
+
inpage: number;
|
|
9
|
+
page: number;
|
|
10
|
+
data: any;
|
|
11
|
+
startPage: number;
|
|
12
|
+
constructor(compositionName: string, userId: number, inpage: number, page: number, format: number);
|
|
13
|
+
bind(): Promise<any>;
|
|
14
|
+
build(): Promise<any>;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* This function will give you the list of the concepts by composition name with a listener to any data change.
|
|
18
|
+
*/
|
|
19
|
+
export declare function GetCompositionListListener(compositionName: string, userId: number, inpage: number, page: number, format?: number): GetCompositionListObservable;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DependencyObserver } from "./DepenedencyObserver";
|
|
2
|
+
export declare class GetCompositionObservable extends DependencyObserver {
|
|
3
|
+
id: number;
|
|
4
|
+
constructor(id: number, format?: number);
|
|
5
|
+
bind(): Promise<any>;
|
|
6
|
+
build(): Promise<any>;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* @param id Id of the composition
|
|
11
|
+
* @returns composition of the id given in the json form.
|
|
12
|
+
*/
|
|
13
|
+
export declare function GetCompositionListener(id: number, format?: number): GetCompositionObservable;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { SearchQuery, SearchStructure } from "../app";
|
|
2
|
+
import { DependencyObserver } from "./DepenedencyObserver";
|
|
3
|
+
export declare class GetLinkListObservable extends DependencyObserver {
|
|
4
|
+
searchQuery: SearchQuery[];
|
|
5
|
+
searchStructure: SearchStructure;
|
|
6
|
+
format: number;
|
|
7
|
+
mainCompositionIds: number[];
|
|
8
|
+
searchCharacter: string;
|
|
9
|
+
token: string;
|
|
10
|
+
constructor(searchStructure: SearchStructure, searchQuery: SearchQuery[], token: string, format?: number);
|
|
11
|
+
/**
|
|
12
|
+
* This function will be called when there is a need to listen to a certain type of concept that will update
|
|
13
|
+
* the ui.
|
|
14
|
+
* @param id this is the type id which needs to be tracked
|
|
15
|
+
*/
|
|
16
|
+
listenToEventType(id: number): void;
|
|
17
|
+
bind(): Promise<any>;
|
|
18
|
+
build(): Promise<any>;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @param id this is the id whose links need to be found
|
|
23
|
+
* @param linker this is the type connection that is connected to the mainConcept(id)
|
|
24
|
+
* @param inpage number of outputs that has to be displayed
|
|
25
|
+
* @param page the page which needs to be displayed as per the inpage parameter
|
|
26
|
+
* @param format the format in which the output should be displayed (NORMAL, DATAID,JUSTDATA,DATAIDDATE)
|
|
27
|
+
*/
|
|
28
|
+
export declare function GetLinkListListener(searchStructure: SearchStructure, searchQuery: SearchQuery[], token: string, format?: number): GetLinkListObservable;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Connection } from "../app";
|
|
2
|
+
import { DependencyObserver } from "./DepenedencyObserver";
|
|
3
|
+
/**
|
|
4
|
+
* This is a class that will give you the observable for the links from a certain concept.
|
|
5
|
+
*/
|
|
6
|
+
export declare class GetLinkObservable extends DependencyObserver {
|
|
7
|
+
linker: string;
|
|
8
|
+
inpage: number;
|
|
9
|
+
page: number;
|
|
10
|
+
connections: Connection[];
|
|
11
|
+
data: any;
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @param id this is the id whose links need to be found
|
|
15
|
+
* @param linker this is the type connection that is connected to the mainConcept(id)
|
|
16
|
+
* @param inpage number of outputs that has to be displayed
|
|
17
|
+
* @param page the page which needs to be displayed as per the inpage parameter
|
|
18
|
+
* @param format the format in which the output should be displayed (NORMAL, DATAID,JUSTDATA,DATAIDDATE)
|
|
19
|
+
*/
|
|
20
|
+
constructor(id: number, linker: string, inpage: number, page: number, format: number);
|
|
21
|
+
bind(): Promise<any>;
|
|
22
|
+
build(): Promise<any>;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @param id this is the id whose links need to be found
|
|
27
|
+
* @param linker this is the type connection that is connected to the mainConcept(id)
|
|
28
|
+
* @param inpage number of outputs that has to be displayed
|
|
29
|
+
* @param page the page which needs to be displayed as per the inpage parameter
|
|
30
|
+
* @param format the format in which the output should be displayed (NORMAL, DATAID,JUSTDATA,DATAIDDATE)
|
|
31
|
+
*/
|
|
32
|
+
export declare function GetLinkListener(id: number, linker: string, inpage: number, page: number, format?: number): GetLinkObservable;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Connection, DependencyObserver } from "../app";
|
|
2
|
+
declare class RecursiveSearchObservable extends DependencyObserver {
|
|
3
|
+
searchLinkers: string[];
|
|
4
|
+
searchText: string;
|
|
5
|
+
textSearch: string;
|
|
6
|
+
connections: Connection[];
|
|
7
|
+
externalConnectionIds: number[];
|
|
8
|
+
data: any;
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
* @param id this is the id whose links need to be found
|
|
12
|
+
* @param linker this is the type connection that is connected to the mainConcept(id)
|
|
13
|
+
* @param inpage number of outputs that has to be displayed
|
|
14
|
+
* @param page the page which needs to be displayed as per the inpage parameter
|
|
15
|
+
* @param format the format in which the output should be displayed (RAW, undefined)
|
|
16
|
+
*/
|
|
17
|
+
constructor(id: number, linkers: string[], textSearch?: string, format?: number);
|
|
18
|
+
/**
|
|
19
|
+
* This is the of the concept id that needs to be listened . If this is called. All the connections that are
|
|
20
|
+
* created with of the concepts id with this passed id then the event is fired.
|
|
21
|
+
*
|
|
22
|
+
* @param id Of the concept id that needs to be listened.
|
|
23
|
+
*/
|
|
24
|
+
listenToEvent(id: number): void;
|
|
25
|
+
bind(): Promise<any>;
|
|
26
|
+
build(): Promise<any>;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Method to listen the changes in recursive search data
|
|
30
|
+
* @param id this is the id whose links need to be found
|
|
31
|
+
* @param linker this is the type connection that is connected to the mainConcept(id)
|
|
32
|
+
* @param inpage number of outputs that has to be displayed
|
|
33
|
+
* @param page the page which needs to be displayed as per the inpage parameter
|
|
34
|
+
* @param format the format in which the output should be displayed (RAW, undefined)
|
|
35
|
+
*/
|
|
36
|
+
export declare function RecursiveSearchListener(id: number, linkers: string[], searchText?: string, format?: number): RecursiveSearchObservable;
|
|
37
|
+
export {};
|