mftsccs-browser 1.1.5 → 1.1.7
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 +11 -9
- package/dist/bundle.js.map +1 -1
- package/package.json +1 -1
package/dist/bundle.js
CHANGED
|
@@ -4099,7 +4099,6 @@ class ConceptsData {
|
|
|
4099
4099
|
// }
|
|
4100
4100
|
//UpdateToDatabase("concept",concept);
|
|
4101
4101
|
//IndexDbUpdate.UpdateConceptIndexDb(concept);
|
|
4102
|
-
console.log("this is the added concept", concept);
|
|
4103
4102
|
_BinaryTree__WEBPACK_IMPORTED_MODULE_1__.BinaryTree.addConceptToTree(concept);
|
|
4104
4103
|
_BinaryTypeTree__WEBPACK_IMPORTED_MODULE_3__.BinaryTypeTree.addConceptToTree(concept);
|
|
4105
4104
|
//BinaryCharacterTree.addConceptToTree(concept);
|
|
@@ -5423,7 +5422,6 @@ class ConnectionData {
|
|
|
5423
5422
|
connections.push(conn.value);
|
|
5424
5423
|
}
|
|
5425
5424
|
}
|
|
5426
|
-
console.log("these are the connections from the local", connections, connectionIds);
|
|
5427
5425
|
return connections;
|
|
5428
5426
|
//let node = await ConnectionTypeTree.getNodeFromTree(id);
|
|
5429
5427
|
// if(node?.value){
|
|
@@ -5444,6 +5442,7 @@ class ConnectionData {
|
|
|
5444
5442
|
let connectionIds = [];
|
|
5445
5443
|
let connections = [];
|
|
5446
5444
|
connectionIds = ConnectionData.GetConnectionByOfTheConceptAndType(id, id);
|
|
5445
|
+
console.log("this is the id", connectionIds);
|
|
5447
5446
|
for (let i = 0; i < connectionIds.length; i++) {
|
|
5448
5447
|
let conn = yield _ConnectionBinaryTree_ConnectionBinaryTree__WEBPACK_IMPORTED_MODULE_2__.ConnectionBinaryTree.getNodeFromTree(connectionIds[i]);
|
|
5449
5448
|
if (conn) {
|
|
@@ -11035,7 +11034,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11035
11034
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
11036
11035
|
/* harmony export */ DeleteConnectionByType: () => (/* binding */ DeleteConnectionByType)
|
|
11037
11036
|
/* harmony export */ });
|
|
11038
|
-
/* harmony import */ var
|
|
11037
|
+
/* harmony import */ var _Api_GetAllLinkerConnectionsFromTheConcept__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Api/GetAllLinkerConnectionsFromTheConcept */ "./src/Api/GetAllLinkerConnectionsFromTheConcept.ts");
|
|
11038
|
+
/* harmony import */ var _app__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../app */ "./src/app.ts");
|
|
11039
11039
|
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
11040
11040
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
11041
11041
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -11046,10 +11046,15 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume
|
|
|
11046
11046
|
});
|
|
11047
11047
|
};
|
|
11048
11048
|
|
|
11049
|
+
|
|
11049
11050
|
function DeleteConnectionByType(id, linker) {
|
|
11050
11051
|
return __awaiter(this, void 0, void 0, function* () {
|
|
11051
|
-
let
|
|
11052
|
-
let
|
|
11052
|
+
let externalConnections = yield (0,_Api_GetAllLinkerConnectionsFromTheConcept__WEBPACK_IMPORTED_MODULE_0__.GetAllLinkerConnectionsFromTheConcept)(id);
|
|
11053
|
+
for (let i = 0; i < externalConnections.length; i++) {
|
|
11054
|
+
_app__WEBPACK_IMPORTED_MODULE_1__.ConnectionData.AddConnection(externalConnections[i]);
|
|
11055
|
+
}
|
|
11056
|
+
let connections = yield _app__WEBPACK_IMPORTED_MODULE_1__.ConnectionData.GetConnectionsOfConcept(id);
|
|
11057
|
+
let concept = yield (0,_app__WEBPACK_IMPORTED_MODULE_1__.GetConceptByCharacter)(linker);
|
|
11053
11058
|
let toDelete = [];
|
|
11054
11059
|
for (let i = 0; i < connections.length; i++) {
|
|
11055
11060
|
if (connections[i].typeId == concept.id) {
|
|
@@ -11057,7 +11062,7 @@ function DeleteConnectionByType(id, linker) {
|
|
|
11057
11062
|
}
|
|
11058
11063
|
}
|
|
11059
11064
|
for (let i = 0; i < toDelete.length; i++) {
|
|
11060
|
-
(0,
|
|
11065
|
+
(0,_app__WEBPACK_IMPORTED_MODULE_1__.DeleteConnectionById)(toDelete[i].id);
|
|
11061
11066
|
}
|
|
11062
11067
|
});
|
|
11063
11068
|
}
|
|
@@ -11419,7 +11424,6 @@ function GetCompositionWithIdFromMemory(id) {
|
|
|
11419
11424
|
let returnOutput = {};
|
|
11420
11425
|
// connectionList = await ConnectionData.GetConnectionsOfConcept(id);
|
|
11421
11426
|
connectionList = yield _DataStructures_ConnectionData__WEBPACK_IMPORTED_MODULE_3__.ConnectionData.GetConnectionsOfCompositionLocal(id);
|
|
11422
|
-
console.log("this is the local data composition", connectionList);
|
|
11423
11427
|
let compositionList = [];
|
|
11424
11428
|
for (let i = 0; i < connectionList.length; i++) {
|
|
11425
11429
|
if (!compositionList.includes(connectionList[i].ofTheConceptId)) {
|
|
@@ -12936,12 +12940,10 @@ function GetTheConcept(id_1) {
|
|
|
12936
12940
|
return concept;
|
|
12937
12941
|
}
|
|
12938
12942
|
concept = yield _DataStructures_ConceptData__WEBPACK_IMPORTED_MODULE_2__.ConceptsData.GetConcept(id);
|
|
12939
|
-
console.log("this is the concept form memory", concept);
|
|
12940
12943
|
if ((concept == null || concept.id == 0) && id != null && id != undefined) {
|
|
12941
12944
|
let conceptString = yield (0,_Api_GetConcept__WEBPACK_IMPORTED_MODULE_0__.GetConcept)(id);
|
|
12942
12945
|
concept = conceptString;
|
|
12943
12946
|
}
|
|
12944
|
-
console.log("this is the concept from network", concept);
|
|
12945
12947
|
if (concept.id != 0) {
|
|
12946
12948
|
if (concept.type == null) {
|
|
12947
12949
|
let conceptType = yield _DataStructures_ConceptData__WEBPACK_IMPORTED_MODULE_2__.ConceptsData.GetConcept(concept.typeId);
|