mftsccs-browser 1.1.3 → 1.1.5
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/bundle.js
CHANGED
|
@@ -5121,8 +5121,8 @@ class ConnectionTypeTree {
|
|
|
5121
5121
|
// }
|
|
5122
5122
|
// return this.connectionTypeRoot;
|
|
5123
5123
|
// }
|
|
5124
|
-
static GetConnectionByOfTheConceptAndTypeId(ofTheConceptId) {
|
|
5125
|
-
let key = this.CreateCompositionKey(
|
|
5124
|
+
static GetConnectionByOfTheConceptAndTypeId(ofTheConceptId, typeId) {
|
|
5125
|
+
let key = this.CreateCompositionKey(typeId);
|
|
5126
5126
|
if (this.connectionTypeRoot) {
|
|
5127
5127
|
let existingNode = this.connectionTypeRoot.getFromNode(key, this.connectionTypeRoot);
|
|
5128
5128
|
if (existingNode) {
|
|
@@ -5362,6 +5362,13 @@ class ConnectionData {
|
|
|
5362
5362
|
}
|
|
5363
5363
|
return [];
|
|
5364
5364
|
}
|
|
5365
|
+
static GetConnectionByOfType(ofTheConceptId, typeId) {
|
|
5366
|
+
let connections = _ConnectionBinaryTree_ConnectionTypeTree__WEBPACK_IMPORTED_MODULE_4__.ConnectionTypeTree.GetConnectionByOfTheConceptAndTypeId(ofTheConceptId, typeId);
|
|
5367
|
+
if (connections) {
|
|
5368
|
+
return connections;
|
|
5369
|
+
}
|
|
5370
|
+
return [];
|
|
5371
|
+
}
|
|
5365
5372
|
static GetConnectionTree() {
|
|
5366
5373
|
return _ConnectionBinaryTree_ConnectionBinaryTree__WEBPACK_IMPORTED_MODULE_2__.ConnectionBinaryTree.connectionroot;
|
|
5367
5374
|
}
|
|
@@ -5409,13 +5416,14 @@ class ConnectionData {
|
|
|
5409
5416
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5410
5417
|
let connections = [];
|
|
5411
5418
|
let connectionIds = [];
|
|
5412
|
-
connectionIds =
|
|
5419
|
+
connectionIds = ConnectionData.GetConnectionByOfType(id, id);
|
|
5413
5420
|
for (let i = 0; i < connectionIds.length; i++) {
|
|
5414
5421
|
let conn = yield _ConnectionBinaryTree_ConnectionBinaryTree__WEBPACK_IMPORTED_MODULE_2__.ConnectionBinaryTree.getNodeFromTree(connectionIds[i]);
|
|
5415
5422
|
if (conn) {
|
|
5416
5423
|
connections.push(conn.value);
|
|
5417
5424
|
}
|
|
5418
5425
|
}
|
|
5426
|
+
console.log("these are the connections from the local", connections, connectionIds);
|
|
5419
5427
|
return connections;
|
|
5420
5428
|
//let node = await ConnectionTypeTree.getNodeFromTree(id);
|
|
5421
5429
|
// if(node?.value){
|
|
@@ -11382,7 +11390,6 @@ function GetCompositionFromMemoryNormal(id) {
|
|
|
11382
11390
|
connectionList = yield _DataStructures_ConnectionData__WEBPACK_IMPORTED_MODULE_3__.ConnectionData.GetConnectionsOfCompositionLocal(id);
|
|
11383
11391
|
//connectionList = ConnectionData.GetConnectionsOfComposition(id);
|
|
11384
11392
|
let compositionList = [];
|
|
11385
|
-
console.log("this is the connection list that you build", connectionList);
|
|
11386
11393
|
for (let i = 0; i < connectionList.length; i++) {
|
|
11387
11394
|
if (!compositionList.includes(connectionList[i].ofTheConceptId)) {
|
|
11388
11395
|
compositionList.push(connectionList[i].ofTheConceptId);
|
|
@@ -11396,7 +11403,6 @@ function GetCompositionFromMemoryNormal(id) {
|
|
|
11396
11403
|
let output = yield recursiveFetchConceptNormal(concept, connectionList, compositionList);
|
|
11397
11404
|
let mainString = (_b = (_a = concept === null || concept === void 0 ? void 0 : concept.type) === null || _a === void 0 ? void 0 : _a.characterValue) !== null && _b !== void 0 ? _b : "";
|
|
11398
11405
|
returnOutput[mainString] = output;
|
|
11399
|
-
console.log("this is the output of memory normal", returnOutput);
|
|
11400
11406
|
return returnOutput;
|
|
11401
11407
|
});
|
|
11402
11408
|
}
|
|
@@ -11413,6 +11419,7 @@ function GetCompositionWithIdFromMemory(id) {
|
|
|
11413
11419
|
let returnOutput = {};
|
|
11414
11420
|
// connectionList = await ConnectionData.GetConnectionsOfConcept(id);
|
|
11415
11421
|
connectionList = yield _DataStructures_ConnectionData__WEBPACK_IMPORTED_MODULE_3__.ConnectionData.GetConnectionsOfCompositionLocal(id);
|
|
11422
|
+
console.log("this is the local data composition", connectionList);
|
|
11416
11423
|
let compositionList = [];
|
|
11417
11424
|
for (let i = 0; i < connectionList.length; i++) {
|
|
11418
11425
|
if (!compositionList.includes(connectionList[i].ofTheConceptId)) {
|
|
@@ -11421,7 +11428,6 @@ function GetCompositionWithIdFromMemory(id) {
|
|
|
11421
11428
|
}
|
|
11422
11429
|
let concept = yield _DataStructures_ConceptData__WEBPACK_IMPORTED_MODULE_2__.ConceptsData.GetConcept(id);
|
|
11423
11430
|
if (concept.id == 0 && id != null && id != undefined) {
|
|
11424
|
-
console.log("this concept you cannot find ", id);
|
|
11425
11431
|
let conceptString = yield (0,_Api_GetConcept__WEBPACK_IMPORTED_MODULE_0__.GetConcept)(id);
|
|
11426
11432
|
concept = conceptString;
|
|
11427
11433
|
}
|
|
@@ -12189,10 +12195,8 @@ function GetCompositionFromConnectionsInObject() {
|
|
|
12189
12195
|
let compositions = {};
|
|
12190
12196
|
for (let i = 0; i < conceptIds.length; i++) {
|
|
12191
12197
|
let comp = yield (0,_GetComposition__WEBPACK_IMPORTED_MODULE_4__.GetCompositionFromMemory)(conceptIds[i]);
|
|
12192
|
-
console.log("this is the comp", comp);
|
|
12193
12198
|
compositions[conceptIds[i]] = comp;
|
|
12194
12199
|
}
|
|
12195
|
-
console.log("This is the composition list", compositions);
|
|
12196
12200
|
return compositions;
|
|
12197
12201
|
});
|
|
12198
12202
|
}
|