mftsccs-browser 1.1.63-beta → 2.0.0-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 +470 -319
- package/dist/main.bundle.js.map +1 -1
- package/dist/serviceWorker.bundle.js +470 -319
- package/dist/serviceWorker.bundle.js.map +1 -1
- package/dist/types/Services/Search/FormatData.d.ts +0 -42
- package/dist/types/Widgets/BuilderStatefulWidget.d.ts +2 -2
- package/dist/types/Widgets/StatefulWidget.d.ts +4 -4
- package/package.json +1 -1
package/dist/main.bundle.js
CHANGED
|
@@ -17362,22 +17362,16 @@ function publishMessage(topic, message) {
|
|
|
17362
17362
|
|
|
17363
17363
|
/***/ }),
|
|
17364
17364
|
|
|
17365
|
-
/***/ "./src/Services/Search/
|
|
17366
|
-
|
|
17367
|
-
!*** ./src/Services/Search/
|
|
17368
|
-
|
|
17365
|
+
/***/ "./src/Services/Search/DataIdFormat.ts":
|
|
17366
|
+
/*!*********************************************!*\
|
|
17367
|
+
!*** ./src/Services/Search/DataIdFormat.ts ***!
|
|
17368
|
+
\*********************************************/
|
|
17369
17369
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
17370
17370
|
|
|
17371
17371
|
__webpack_require__.r(__webpack_exports__);
|
|
17372
17372
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17373
|
-
/* harmony export */ FormatConceptsAndConnectionsNormalList: () => (/* binding */ FormatConceptsAndConnectionsNormalList),
|
|
17374
17373
|
/* harmony export */ FormatFromConnectionsAlteredArrayExternal: () => (/* binding */ FormatFromConnectionsAlteredArrayExternal),
|
|
17375
|
-
/* harmony export */
|
|
17376
|
-
/* harmony export */ FormatFunctionData: () => (/* binding */ FormatFunctionData),
|
|
17377
|
-
/* harmony export */ FormatFunctionDataForData: () => (/* binding */ FormatFunctionDataForData),
|
|
17378
|
-
/* harmony export */ FormatFunctionDataForDataJustId: () => (/* binding */ FormatFunctionDataForDataJustId),
|
|
17379
|
-
/* harmony export */ formatFunction: () => (/* binding */ formatFunction),
|
|
17380
|
-
/* harmony export */ formatFunctionForData: () => (/* binding */ formatFunctionForData)
|
|
17374
|
+
/* harmony export */ FormatFunctionDataForData: () => (/* binding */ FormatFunctionDataForData)
|
|
17381
17375
|
/* harmony export */ });
|
|
17382
17376
|
/* harmony import */ var _app__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../app */ "./src/app.ts");
|
|
17383
17377
|
/* harmony import */ var _Common_RegexFunction__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Common/RegexFunction */ "./src/Services/Common/RegexFunction.ts");
|
|
@@ -17393,19 +17387,17 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume
|
|
|
17393
17387
|
|
|
17394
17388
|
|
|
17395
17389
|
/**
|
|
17396
|
-
|
|
17397
|
-
|
|
17398
|
-
|
|
17399
|
-
|
|
17400
|
-
|
|
17401
|
-
|
|
17402
|
-
|
|
17403
|
-
|
|
17404
|
-
|
|
17405
|
-
|
|
17406
|
-
|
|
17407
|
-
var _a, _b, _c, _d;
|
|
17408
|
-
let mainData = [];
|
|
17390
|
+
* ## Format DATA-ID ##
|
|
17391
|
+
* this function takes in connections and creates a single level objects so that all the data are added to its object/ array.
|
|
17392
|
+
* This is then passed on further for stiching.
|
|
17393
|
+
* @param connections
|
|
17394
|
+
* @param compositionData
|
|
17395
|
+
* @param reverse
|
|
17396
|
+
* @returns
|
|
17397
|
+
*/
|
|
17398
|
+
function FormatFunctionDataForData(connections_1, compositionData_1) {
|
|
17399
|
+
return __awaiter(this, arguments, void 0, function* (connections, compositionData, reverse = []) {
|
|
17400
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
17409
17401
|
let myConcepts = [];
|
|
17410
17402
|
for (let i = 0; i < connections.length; i++) {
|
|
17411
17403
|
myConcepts.push(connections[i].toTheConceptId);
|
|
@@ -17417,111 +17409,118 @@ function FormatConceptsAndConnectionsNormalList(connections_1, compositionData_1
|
|
|
17417
17409
|
});
|
|
17418
17410
|
for (let i = 0; i < connections.length; i++) {
|
|
17419
17411
|
let reverseFlag = false;
|
|
17412
|
+
let ofTheConcept = yield (0,_app__WEBPACK_IMPORTED_MODULE_0__.GetTheConcept)(connections[i].ofTheConceptId);
|
|
17413
|
+
let toTheConcept = yield (0,_app__WEBPACK_IMPORTED_MODULE_0__.GetTheConcept)(connections[i].toTheConceptId);
|
|
17420
17414
|
if (reverse.includes(connections[i].id)) {
|
|
17421
17415
|
reverseFlag = true;
|
|
17422
17416
|
}
|
|
17423
|
-
let ofTheConcept = yield (0,_app__WEBPACK_IMPORTED_MODULE_0__.GetTheConcept)(connections[i].ofTheConceptId);
|
|
17424
|
-
let toTheConcept = yield (0,_app__WEBPACK_IMPORTED_MODULE_0__.GetTheConcept)(connections[i].toTheConceptId);
|
|
17425
17417
|
if (reverseFlag == true) {
|
|
17426
17418
|
if (ofTheConcept.id != 0 && toTheConcept.id != 0) {
|
|
17427
|
-
|
|
17428
|
-
|
|
17429
|
-
|
|
17430
|
-
|
|
17431
|
-
|
|
17432
|
-
|
|
17433
|
-
else {
|
|
17434
|
-
newData = {};
|
|
17419
|
+
let newData;
|
|
17420
|
+
let linkerConcept = yield (0,_app__WEBPACK_IMPORTED_MODULE_0__.GetTheConcept)(connections[i].typeId);
|
|
17421
|
+
let key = (_b = (_a = toTheConcept.type) === null || _a === void 0 ? void 0 : _a.characterValue) !== null && _b !== void 0 ? _b : "self";
|
|
17422
|
+
if (connections[i].toTheConceptId in compositionData) {
|
|
17423
|
+
newData = compositionData[connections[i].toTheConceptId];
|
|
17424
|
+
if (!(key in newData)) {
|
|
17435
17425
|
newData[key] = {};
|
|
17436
|
-
compositionData[connections[i].toTheConceptId] = newData;
|
|
17437
17426
|
}
|
|
17438
|
-
|
|
17439
|
-
|
|
17440
|
-
|
|
17441
|
-
|
|
17442
|
-
|
|
17443
|
-
|
|
17444
|
-
|
|
17445
|
-
|
|
17446
|
-
|
|
17447
|
-
|
|
17448
|
-
|
|
17449
|
-
|
|
17450
|
-
|
|
17451
|
-
|
|
17452
|
-
|
|
17453
|
-
|
|
17454
|
-
|
|
17427
|
+
}
|
|
17428
|
+
else {
|
|
17429
|
+
newData = {};
|
|
17430
|
+
newData[key] = {};
|
|
17431
|
+
compositionData[connections[i].toTheConceptId] = newData;
|
|
17432
|
+
}
|
|
17433
|
+
try {
|
|
17434
|
+
let mytype = (_d = (_c = ofTheConcept === null || ofTheConcept === void 0 ? void 0 : ofTheConcept.type) === null || _c === void 0 ? void 0 : _c.characterValue) !== null && _d !== void 0 ? _d : "none";
|
|
17435
|
+
let value = ofTheConcept.characterValue;
|
|
17436
|
+
let dataCharacter = linkerConcept.characterValue;
|
|
17437
|
+
// if there is not connection type defined then put the type of the destination concept.
|
|
17438
|
+
if (dataCharacter == "") {
|
|
17439
|
+
dataCharacter = mytype;
|
|
17440
|
+
dataCharacter = (0,_Common_RegexFunction__WEBPACK_IMPORTED_MODULE_1__.removeThePrefix)(dataCharacter);
|
|
17441
|
+
}
|
|
17442
|
+
let data = {
|
|
17443
|
+
"id": ofTheConcept.id,
|
|
17444
|
+
"data": {
|
|
17445
|
+
[mytype]: value
|
|
17455
17446
|
}
|
|
17447
|
+
};
|
|
17448
|
+
let reverseCharater = dataCharacter + "_reverse";
|
|
17449
|
+
if (reverseCharater.includes("_s_")) {
|
|
17450
|
+
// do nothing
|
|
17456
17451
|
}
|
|
17457
|
-
|
|
17458
|
-
|
|
17452
|
+
else {
|
|
17453
|
+
if (typeof newData[key] == "string") {
|
|
17454
|
+
newData[key] = {};
|
|
17455
|
+
}
|
|
17456
|
+
newData[key][reverseCharater] = data;
|
|
17459
17457
|
}
|
|
17460
17458
|
}
|
|
17459
|
+
catch (ex) {
|
|
17460
|
+
console.log("this is error", ex);
|
|
17461
|
+
}
|
|
17461
17462
|
}
|
|
17462
17463
|
}
|
|
17463
17464
|
else {
|
|
17464
17465
|
if (ofTheConcept.id != 0 && toTheConcept.id != 0) {
|
|
17465
|
-
|
|
17466
|
-
|
|
17467
|
-
|
|
17468
|
-
|
|
17469
|
-
|
|
17470
|
-
|
|
17471
|
-
if (newType == "string") {
|
|
17472
|
-
newData[key] = {};
|
|
17473
|
-
}
|
|
17474
|
-
}
|
|
17475
|
-
else {
|
|
17476
|
-
newData = {};
|
|
17466
|
+
let newData;
|
|
17467
|
+
let linkerConcept = yield (0,_app__WEBPACK_IMPORTED_MODULE_0__.GetTheConcept)(connections[i].typeId);
|
|
17468
|
+
let key = (_f = (_e = ofTheConcept.type) === null || _e === void 0 ? void 0 : _e.characterValue) !== null && _f !== void 0 ? _f : "self";
|
|
17469
|
+
if (connections[i].ofTheConceptId in compositionData) {
|
|
17470
|
+
newData = compositionData[connections[i].ofTheConceptId];
|
|
17471
|
+
if (!(key in newData)) {
|
|
17477
17472
|
newData[key] = {};
|
|
17478
|
-
compositionData[connections[i].ofTheConceptId] = newData;
|
|
17479
17473
|
}
|
|
17480
|
-
|
|
17481
|
-
|
|
17482
|
-
|
|
17483
|
-
|
|
17484
|
-
|
|
17485
|
-
|
|
17486
|
-
|
|
17487
|
-
|
|
17488
|
-
|
|
17489
|
-
|
|
17490
|
-
|
|
17491
|
-
|
|
17492
|
-
|
|
17493
|
-
|
|
17494
|
-
|
|
17495
|
-
|
|
17474
|
+
}
|
|
17475
|
+
else {
|
|
17476
|
+
newData = {};
|
|
17477
|
+
newData[key] = {};
|
|
17478
|
+
compositionData[connections[i].ofTheConceptId] = newData;
|
|
17479
|
+
}
|
|
17480
|
+
try {
|
|
17481
|
+
let mytype = (_h = (_g = toTheConcept === null || toTheConcept === void 0 ? void 0 : toTheConcept.type) === null || _g === void 0 ? void 0 : _g.characterValue) !== null && _h !== void 0 ? _h : "none";
|
|
17482
|
+
let value = toTheConcept.characterValue;
|
|
17483
|
+
let dataCharacter = linkerConcept.characterValue;
|
|
17484
|
+
// if there is not connection type defined then put the type of the destination concept.
|
|
17485
|
+
if (dataCharacter == "") {
|
|
17486
|
+
dataCharacter = mytype;
|
|
17487
|
+
dataCharacter = (0,_Common_RegexFunction__WEBPACK_IMPORTED_MODULE_1__.removeThePrefix)(dataCharacter);
|
|
17488
|
+
}
|
|
17489
|
+
let data = {
|
|
17490
|
+
"id": toTheConcept.id,
|
|
17491
|
+
"data": {
|
|
17492
|
+
[mytype]: value
|
|
17496
17493
|
}
|
|
17494
|
+
};
|
|
17495
|
+
if (dataCharacter.includes("_s_")) {
|
|
17496
|
+
// do nothing
|
|
17497
17497
|
}
|
|
17498
|
-
|
|
17499
|
-
|
|
17498
|
+
else {
|
|
17499
|
+
if (typeof newData[key] == "string") {
|
|
17500
|
+
newData[key] = {};
|
|
17501
|
+
}
|
|
17502
|
+
newData[key][dataCharacter] = data;
|
|
17500
17503
|
}
|
|
17501
17504
|
}
|
|
17505
|
+
catch (ex) {
|
|
17506
|
+
console.log("this is error", ex);
|
|
17507
|
+
}
|
|
17502
17508
|
}
|
|
17503
17509
|
}
|
|
17504
17510
|
}
|
|
17505
|
-
|
|
17506
|
-
let mymainData = compositionData[mainComposition[i]];
|
|
17507
|
-
if (mymainData) {
|
|
17508
|
-
mymainData["id"] = mainComposition[i];
|
|
17509
|
-
mainData.push(mymainData);
|
|
17510
|
-
}
|
|
17511
|
-
}
|
|
17512
|
-
return mainData;
|
|
17511
|
+
return compositionData;
|
|
17513
17512
|
});
|
|
17514
17513
|
}
|
|
17515
17514
|
/**
|
|
17516
|
-
|
|
17517
|
-
|
|
17518
|
-
|
|
17519
|
-
|
|
17520
|
-
|
|
17521
|
-
|
|
17522
|
-
|
|
17523
|
-
|
|
17524
|
-
|
|
17515
|
+
* ############ Format is data-id and is used for list. ############
|
|
17516
|
+
* This is helpful in building a format that has multiple mainCompositions i.e. in the context of the list
|
|
17517
|
+
* The list format is helpful because you do not have to go over each individual query.
|
|
17518
|
+
* @param connections the type connections that need (external connections) to be passed
|
|
17519
|
+
* @param compositionData this is a dictionary type of format that has all the build compositions {id: { actual data}}
|
|
17520
|
+
* @param mainComposition this is list of ids of the main composition that builds the tree
|
|
17521
|
+
* @param reverse this is the list of connections ids that needs to go to the reverse direction (to---->from)
|
|
17522
|
+
* @returns
|
|
17523
|
+
*/
|
|
17525
17524
|
function FormatFromConnectionsAlteredArrayExternal(connections_1, compositionData_1, newCompositionData_1, mainComposition_1) {
|
|
17526
17525
|
return __awaiter(this, arguments, void 0, function* (connections, compositionData, newCompositionData, mainComposition, reverse = []) {
|
|
17527
17526
|
var _a, _b, _c, _d;
|
|
@@ -17652,20 +17651,49 @@ function FormatFromConnectionsAlteredArrayExternal(connections_1, compositionDat
|
|
|
17652
17651
|
return mainData;
|
|
17653
17652
|
});
|
|
17654
17653
|
}
|
|
17654
|
+
|
|
17655
|
+
|
|
17656
|
+
/***/ }),
|
|
17657
|
+
|
|
17658
|
+
/***/ "./src/Services/Search/FormatData.ts":
|
|
17659
|
+
/*!*******************************************!*\
|
|
17660
|
+
!*** ./src/Services/Search/FormatData.ts ***!
|
|
17661
|
+
\*******************************************/
|
|
17662
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
17663
|
+
|
|
17664
|
+
__webpack_require__.r(__webpack_exports__);
|
|
17665
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17666
|
+
/* harmony export */ FormatConceptsAndConnectionsNormalList: () => (/* binding */ FormatConceptsAndConnectionsNormalList),
|
|
17667
|
+
/* harmony export */ FormatFunctionData: () => (/* binding */ FormatFunctionData),
|
|
17668
|
+
/* harmony export */ formatFunction: () => (/* binding */ formatFunction),
|
|
17669
|
+
/* harmony export */ formatFunctionForData: () => (/* binding */ formatFunctionForData)
|
|
17670
|
+
/* harmony export */ });
|
|
17671
|
+
/* harmony import */ var _app__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../app */ "./src/app.ts");
|
|
17672
|
+
/* harmony import */ var _Common_RegexFunction__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Common/RegexFunction */ "./src/Services/Common/RegexFunction.ts");
|
|
17673
|
+
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
17674
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17675
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17676
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
17677
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
17678
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
17679
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
17680
|
+
});
|
|
17681
|
+
};
|
|
17682
|
+
|
|
17683
|
+
|
|
17655
17684
|
/**
|
|
17656
|
-
*
|
|
17657
|
-
* This is helpful in building a format that has multiple mainCompositions i.e. in the context of the list
|
|
17658
|
-
* The list format is helpful because you do not have to go over each individual query.
|
|
17659
|
-
* @param connections the type connections that need (external connections) to be passed
|
|
17660
|
-
* @param compositionData this is a dictionary type of format that has all the build compositions {id: { actual data}}
|
|
17661
|
-
* @param mainComposition this is list of ids of the main composition that builds the tree
|
|
17662
|
-
* @param reverse this is the list of connections ids that needs to go to the reverse direction (to---->from)
|
|
17663
|
-
* @returns
|
|
17664
|
-
*/
|
|
17665
|
-
function
|
|
17666
|
-
return __awaiter(this, arguments, void 0, function* (connections, compositionData, mainComposition, reverse = []) {
|
|
17667
|
-
var _a, _b, _c, _d;
|
|
17668
|
-
let startTime = new Date().getTime();
|
|
17685
|
+
* ######### Format is normal ######### used for listing. This only provides type connections.
|
|
17686
|
+
* This is helpful in building a format that has multiple mainCompositions i.e. in the context of the list
|
|
17687
|
+
* The list format is helpful because you do not have to go over each individual query.
|
|
17688
|
+
* @param connections the type connections that need (external connections) to be passed
|
|
17689
|
+
* @param compositionData this is a dictionary type of format that has all the build compositions {id: { actual data}}
|
|
17690
|
+
* @param mainComposition this is list of ids of the main composition that builds the tree
|
|
17691
|
+
* @param reverse this is the list of connections ids that needs to go to the reverse direction (to---->from)
|
|
17692
|
+
* @returns
|
|
17693
|
+
*/
|
|
17694
|
+
function FormatConceptsAndConnectionsNormalList(connections_1, compositionData_1, mainComposition_1, newCompositionData_1) {
|
|
17695
|
+
return __awaiter(this, arguments, void 0, function* (connections, compositionData, mainComposition, newCompositionData, reverse = []) {
|
|
17696
|
+
var _a, _b, _c, _d, _e;
|
|
17669
17697
|
let mainData = [];
|
|
17670
17698
|
let myConcepts = [];
|
|
17671
17699
|
for (let i = 0; i < connections.length; i++) {
|
|
@@ -17678,46 +17706,34 @@ function FormatFromConnectionsAlteredArrayExternalJustId(connections_1, composit
|
|
|
17678
17706
|
});
|
|
17679
17707
|
for (let i = 0; i < connections.length; i++) {
|
|
17680
17708
|
let reverseFlag = false;
|
|
17681
|
-
let ofTheConcept = yield (0,_app__WEBPACK_IMPORTED_MODULE_0__.GetTheConcept)(connections[i].ofTheConceptId);
|
|
17682
|
-
let toTheConcept = yield (0,_app__WEBPACK_IMPORTED_MODULE_0__.GetTheConcept)(connections[i].toTheConceptId);
|
|
17683
17709
|
if (reverse.includes(connections[i].id)) {
|
|
17684
17710
|
reverseFlag = true;
|
|
17685
17711
|
}
|
|
17712
|
+
let ofTheConcept = yield (0,_app__WEBPACK_IMPORTED_MODULE_0__.GetTheConcept)(connections[i].ofTheConceptId);
|
|
17713
|
+
let toTheConcept = yield (0,_app__WEBPACK_IMPORTED_MODULE_0__.GetTheConcept)(connections[i].toTheConceptId);
|
|
17686
17714
|
if (reverseFlag == true) {
|
|
17687
17715
|
if (ofTheConcept.id != 0 && toTheConcept.id != 0) {
|
|
17688
17716
|
if (toTheConcept.id in compositionData) {
|
|
17689
17717
|
let newData;
|
|
17690
|
-
let linkerConcept = yield (0,_app__WEBPACK_IMPORTED_MODULE_0__.GetTheConcept)(connections[i].typeId);
|
|
17691
17718
|
let key = (_b = (_a = toTheConcept.type) === null || _a === void 0 ? void 0 : _a.characterValue) !== null && _b !== void 0 ? _b : "self";
|
|
17692
|
-
let flag = false;
|
|
17693
|
-
if (connections[i].toTheConceptId in compositionData) {
|
|
17694
|
-
flag = true;
|
|
17695
|
-
}
|
|
17696
17719
|
if (connections[i].toTheConceptId in compositionData) {
|
|
17697
17720
|
newData = compositionData[connections[i].toTheConceptId];
|
|
17698
|
-
let newType = typeof newData[key];
|
|
17699
|
-
if (newType == "string") {
|
|
17700
|
-
newData[key] = {};
|
|
17701
|
-
}
|
|
17702
17721
|
}
|
|
17703
17722
|
else {
|
|
17704
17723
|
newData = {};
|
|
17705
17724
|
newData[key] = {};
|
|
17706
17725
|
compositionData[connections[i].toTheConceptId] = newData;
|
|
17707
17726
|
}
|
|
17727
|
+
let linkerConcept = yield (0,_app__WEBPACK_IMPORTED_MODULE_0__.GetTheConcept)(connections[i].typeId);
|
|
17708
17728
|
try {
|
|
17709
|
-
let
|
|
17710
|
-
|
|
17711
|
-
|
|
17712
|
-
if (data) {
|
|
17713
|
-
data["id"] = ofTheConcept.id;
|
|
17714
|
-
}
|
|
17715
|
-
let reverseCharater = linkerConcept.characterValue + "_reverse";
|
|
17729
|
+
let reverseCharater = linkerConcept.characterValue + "_reverse";
|
|
17730
|
+
let data = compositionData[connections[i].ofTheConceptId];
|
|
17731
|
+
if (data) {
|
|
17716
17732
|
if (Array.isArray(newData[key][reverseCharater])) {
|
|
17717
17733
|
newData[key][reverseCharater].push(data);
|
|
17718
17734
|
}
|
|
17719
17735
|
else {
|
|
17720
|
-
if (
|
|
17736
|
+
if (linkerConcept.characterValue.includes("_s_")) {
|
|
17721
17737
|
newData[key][reverseCharater] = [];
|
|
17722
17738
|
newData[key][reverseCharater].push(data);
|
|
17723
17739
|
}
|
|
@@ -17737,12 +17753,7 @@ function FormatFromConnectionsAlteredArrayExternalJustId(connections_1, composit
|
|
|
17737
17753
|
if (ofTheConcept.id != 0 && toTheConcept.id != 0) {
|
|
17738
17754
|
if (ofTheConcept.id in compositionData) {
|
|
17739
17755
|
let newData;
|
|
17740
|
-
let linkerConcept = yield (0,_app__WEBPACK_IMPORTED_MODULE_0__.GetTheConcept)(connections[i].typeId);
|
|
17741
17756
|
let key = (_d = (_c = ofTheConcept.type) === null || _c === void 0 ? void 0 : _c.characterValue) !== null && _d !== void 0 ? _d : "self";
|
|
17742
|
-
let flag = false;
|
|
17743
|
-
if (connections[i].toTheConceptId in compositionData) {
|
|
17744
|
-
flag = true;
|
|
17745
|
-
}
|
|
17746
17757
|
if (connections[i].ofTheConceptId in compositionData) {
|
|
17747
17758
|
newData = compositionData[connections[i].ofTheConceptId];
|
|
17748
17759
|
let newType = typeof newData[key];
|
|
@@ -17755,23 +17766,50 @@ function FormatFromConnectionsAlteredArrayExternalJustId(connections_1, composit
|
|
|
17755
17766
|
newData[key] = {};
|
|
17756
17767
|
compositionData[connections[i].ofTheConceptId] = newData;
|
|
17757
17768
|
}
|
|
17769
|
+
let linkerConcept = yield (0,_app__WEBPACK_IMPORTED_MODULE_0__.GetTheConcept)(connections[i].typeId);
|
|
17770
|
+
let isComp = false;
|
|
17771
|
+
let linkerConceptValue = linkerConcept.characterValue;
|
|
17772
|
+
if (linkerConceptValue == "") {
|
|
17773
|
+
linkerConceptValue = toTheConcept.characterValue;
|
|
17774
|
+
isComp = true;
|
|
17775
|
+
}
|
|
17776
|
+
if (linkerConceptValue == "") {
|
|
17777
|
+
linkerConceptValue = (_e = toTheConcept === null || toTheConcept === void 0 ? void 0 : toTheConcept.type) === null || _e === void 0 ? void 0 : _e.characterValue;
|
|
17778
|
+
}
|
|
17758
17779
|
try {
|
|
17759
|
-
let
|
|
17760
|
-
if (
|
|
17761
|
-
|
|
17762
|
-
|
|
17763
|
-
|
|
17764
|
-
|
|
17765
|
-
|
|
17766
|
-
|
|
17780
|
+
let data = compositionData[connections[i].toTheConceptId];
|
|
17781
|
+
if (data) {
|
|
17782
|
+
if (Array.isArray(newData[key])) {
|
|
17783
|
+
if (isComp) {
|
|
17784
|
+
console.log("this is the data", data, connections[i].toTheConceptId);
|
|
17785
|
+
newData[key].push(data[linkerConceptValue]);
|
|
17786
|
+
}
|
|
17787
|
+
else {
|
|
17788
|
+
newData[key].push(data);
|
|
17789
|
+
}
|
|
17767
17790
|
}
|
|
17768
17791
|
else {
|
|
17769
|
-
if (
|
|
17770
|
-
newData[key][
|
|
17771
|
-
newData[key][linkerConcept.characterValue].push(data);
|
|
17792
|
+
if (Array.isArray(newData[key][linkerConceptValue])) {
|
|
17793
|
+
newData[key][linkerConceptValue].push(data);
|
|
17772
17794
|
}
|
|
17773
17795
|
else {
|
|
17774
|
-
|
|
17796
|
+
if (linkerConceptValue.includes("_s_")) {
|
|
17797
|
+
newData[key][linkerConceptValue] = [];
|
|
17798
|
+
if (isComp) {
|
|
17799
|
+
newData[key][linkerConceptValue].push(data[linkerConceptValue]);
|
|
17800
|
+
}
|
|
17801
|
+
else {
|
|
17802
|
+
newData[key][linkerConceptValue].push(data);
|
|
17803
|
+
}
|
|
17804
|
+
}
|
|
17805
|
+
else {
|
|
17806
|
+
if (isComp) {
|
|
17807
|
+
newData[key][linkerConceptValue] = data[linkerConceptValue];
|
|
17808
|
+
}
|
|
17809
|
+
else {
|
|
17810
|
+
newData[key][linkerConceptValue] = data;
|
|
17811
|
+
}
|
|
17812
|
+
}
|
|
17775
17813
|
}
|
|
17776
17814
|
}
|
|
17777
17815
|
}
|
|
@@ -17783,15 +17821,12 @@ function FormatFromConnectionsAlteredArrayExternalJustId(connections_1, composit
|
|
|
17783
17821
|
}
|
|
17784
17822
|
}
|
|
17785
17823
|
}
|
|
17786
|
-
console.log("this is the main compositions", mainComposition);
|
|
17787
17824
|
for (let i = 0; i < mainComposition.length; i++) {
|
|
17788
|
-
let mymainData =
|
|
17789
|
-
console.log("this is the main compositions DATA", compositionData[mainComposition[i]]);
|
|
17790
|
-
mymainData = compositionData[mainComposition[i]];
|
|
17825
|
+
let mymainData = compositionData[mainComposition[i]];
|
|
17791
17826
|
if (mymainData) {
|
|
17792
17827
|
mymainData["id"] = mainComposition[i];
|
|
17828
|
+
mainData.push(mymainData);
|
|
17793
17829
|
}
|
|
17794
|
-
mainData.push(mymainData);
|
|
17795
17830
|
}
|
|
17796
17831
|
return mainData;
|
|
17797
17832
|
});
|
|
@@ -17847,6 +17882,7 @@ function formatFunction(connections, compositionData, reverse) {
|
|
|
17847
17882
|
}
|
|
17848
17883
|
compositionData[ofTheConcept.id][mytype] = value;
|
|
17849
17884
|
}
|
|
17885
|
+
compositionData[toTheConcept.id] = {};
|
|
17850
17886
|
}
|
|
17851
17887
|
catch (ex) {
|
|
17852
17888
|
console.log("this is error", ex);
|
|
@@ -17869,15 +17905,13 @@ function formatFunction(connections, compositionData, reverse) {
|
|
|
17869
17905
|
try {
|
|
17870
17906
|
let mytype = (_h = (_g = toTheConcept === null || toTheConcept === void 0 ? void 0 : toTheConcept.type) === null || _g === void 0 ? void 0 : _g.characterValue) !== null && _h !== void 0 ? _h : "none";
|
|
17871
17907
|
let value = toTheConcept.characterValue;
|
|
17872
|
-
let data = {
|
|
17873
|
-
[mytype]: value
|
|
17874
|
-
};
|
|
17875
17908
|
if (linkerConcept.characterValue.includes("_s_")) {
|
|
17876
17909
|
if (!(toTheConcept.id in compositionData)) {
|
|
17877
17910
|
compositionData[toTheConcept.id] = {};
|
|
17878
17911
|
}
|
|
17879
17912
|
compositionData[toTheConcept.id][mytype] = value;
|
|
17880
17913
|
}
|
|
17914
|
+
compositionData[ofTheConcept.id] = {};
|
|
17881
17915
|
}
|
|
17882
17916
|
catch (ex) {
|
|
17883
17917
|
console.log("this is error", ex);
|
|
@@ -17976,21 +18010,34 @@ function formatFunctionForData(connections, compositionData, reverse) {
|
|
|
17976
18010
|
let mytype = (_h = (_g = toTheConcept === null || toTheConcept === void 0 ? void 0 : toTheConcept.type) === null || _g === void 0 ? void 0 : _g.characterValue) !== null && _h !== void 0 ? _h : "none";
|
|
17977
18011
|
let value = toTheConcept.characterValue;
|
|
17978
18012
|
let dataCharacter = linkerConcept.characterValue;
|
|
18013
|
+
let originalDataCharacter = linkerConcept.characterValue;
|
|
18014
|
+
let isComp = false;
|
|
17979
18015
|
if (dataCharacter == "") {
|
|
17980
18016
|
dataCharacter = mytype;
|
|
17981
18017
|
dataCharacter = (0,_Common_RegexFunction__WEBPACK_IMPORTED_MODULE_1__.removeThePrefix)(dataCharacter);
|
|
18018
|
+
isComp = true;
|
|
17982
18019
|
}
|
|
17983
18020
|
let data = {
|
|
17984
18021
|
[mytype]: value
|
|
17985
18022
|
};
|
|
17986
|
-
if (
|
|
17987
|
-
|
|
18023
|
+
if (isNaN(Number(dataCharacter))) {
|
|
18024
|
+
if (linkerConcept.characterValue.includes("_s_")) {
|
|
18025
|
+
// do nothing
|
|
18026
|
+
}
|
|
18027
|
+
else {
|
|
18028
|
+
if (typeof newData[key] == "string") {
|
|
18029
|
+
newData[key] = {};
|
|
18030
|
+
}
|
|
18031
|
+
if (isComp) {
|
|
18032
|
+
newData[key][dataCharacter] = value;
|
|
18033
|
+
}
|
|
18034
|
+
else {
|
|
18035
|
+
newData[key][dataCharacter] = data;
|
|
18036
|
+
}
|
|
18037
|
+
}
|
|
17988
18038
|
}
|
|
17989
18039
|
else {
|
|
17990
|
-
|
|
17991
|
-
newData[key] = {};
|
|
17992
|
-
}
|
|
17993
|
-
newData[key][dataCharacter] = data;
|
|
18040
|
+
newData[key] = [];
|
|
17994
18041
|
}
|
|
17995
18042
|
}
|
|
17996
18043
|
catch (ex) {
|
|
@@ -18091,8 +18138,36 @@ function FormatFunctionData(connections_1, compositionData_1) {
|
|
|
18091
18138
|
return compositionData;
|
|
18092
18139
|
});
|
|
18093
18140
|
}
|
|
18141
|
+
|
|
18142
|
+
|
|
18143
|
+
/***/ }),
|
|
18144
|
+
|
|
18145
|
+
/***/ "./src/Services/Search/JustIdFormat.ts":
|
|
18146
|
+
/*!*********************************************!*\
|
|
18147
|
+
!*** ./src/Services/Search/JustIdFormat.ts ***!
|
|
18148
|
+
\*********************************************/
|
|
18149
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
18150
|
+
|
|
18151
|
+
__webpack_require__.r(__webpack_exports__);
|
|
18152
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
18153
|
+
/* harmony export */ FormatFromConnectionsAlteredArrayExternalJustId: () => (/* binding */ FormatFromConnectionsAlteredArrayExternalJustId),
|
|
18154
|
+
/* harmony export */ FormatFunctionDataForDataJustId: () => (/* binding */ FormatFunctionDataForDataJustId)
|
|
18155
|
+
/* harmony export */ });
|
|
18156
|
+
/* harmony import */ var _Common_RegexFunction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Common/RegexFunction */ "./src/Services/Common/RegexFunction.ts");
|
|
18157
|
+
/* harmony import */ var _GetTheConcept__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../GetTheConcept */ "./src/Services/GetTheConcept.ts");
|
|
18158
|
+
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
18159
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
18160
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18161
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18162
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
18163
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
18164
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
18165
|
+
});
|
|
18166
|
+
};
|
|
18167
|
+
|
|
18168
|
+
|
|
18094
18169
|
/**
|
|
18095
|
-
* ## Format
|
|
18170
|
+
* ## Format Just-Id ##
|
|
18096
18171
|
* this function takes in connections and creates a single level objects so that all the data are added to its object/ array.
|
|
18097
18172
|
* This is then passed on further for stiching.
|
|
18098
18173
|
* @param connections
|
|
@@ -18100,7 +18175,7 @@ function FormatFunctionData(connections_1, compositionData_1) {
|
|
|
18100
18175
|
* @param reverse
|
|
18101
18176
|
* @returns
|
|
18102
18177
|
*/
|
|
18103
|
-
function
|
|
18178
|
+
function FormatFunctionDataForDataJustId(connections_1, compositionData_1) {
|
|
18104
18179
|
return __awaiter(this, arguments, void 0, function* (connections, compositionData, reverse = []) {
|
|
18105
18180
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
18106
18181
|
let myConcepts = [];
|
|
@@ -18114,15 +18189,15 @@ function FormatFunctionDataForData(connections_1, compositionData_1) {
|
|
|
18114
18189
|
});
|
|
18115
18190
|
for (let i = 0; i < connections.length; i++) {
|
|
18116
18191
|
let reverseFlag = false;
|
|
18117
|
-
let ofTheConcept = yield (0,
|
|
18118
|
-
let toTheConcept = yield (0,
|
|
18192
|
+
let ofTheConcept = yield (0,_GetTheConcept__WEBPACK_IMPORTED_MODULE_1__["default"])(connections[i].ofTheConceptId);
|
|
18193
|
+
let toTheConcept = yield (0,_GetTheConcept__WEBPACK_IMPORTED_MODULE_1__["default"])(connections[i].toTheConceptId);
|
|
18119
18194
|
if (reverse.includes(connections[i].id)) {
|
|
18120
18195
|
reverseFlag = true;
|
|
18121
18196
|
}
|
|
18122
18197
|
if (reverseFlag == true) {
|
|
18123
18198
|
if (ofTheConcept.id != 0 && toTheConcept.id != 0) {
|
|
18124
18199
|
let newData;
|
|
18125
|
-
let linkerConcept = yield (0,
|
|
18200
|
+
let linkerConcept = yield (0,_GetTheConcept__WEBPACK_IMPORTED_MODULE_1__["default"])(connections[i].typeId);
|
|
18126
18201
|
let key = (_b = (_a = toTheConcept.type) === null || _a === void 0 ? void 0 : _a.characterValue) !== null && _b !== void 0 ? _b : "self";
|
|
18127
18202
|
if (connections[i].toTheConceptId in compositionData) {
|
|
18128
18203
|
newData = compositionData[connections[i].toTheConceptId];
|
|
@@ -18142,13 +18217,11 @@ function FormatFunctionDataForData(connections_1, compositionData_1) {
|
|
|
18142
18217
|
// if there is not connection type defined then put the type of the destination concept.
|
|
18143
18218
|
if (dataCharacter == "") {
|
|
18144
18219
|
dataCharacter = mytype;
|
|
18145
|
-
dataCharacter = (0,
|
|
18220
|
+
dataCharacter = (0,_Common_RegexFunction__WEBPACK_IMPORTED_MODULE_0__.removeThePrefix)(dataCharacter);
|
|
18146
18221
|
}
|
|
18147
18222
|
let data = {
|
|
18148
18223
|
"id": ofTheConcept.id,
|
|
18149
|
-
|
|
18150
|
-
[mytype]: value
|
|
18151
|
-
}
|
|
18224
|
+
[mytype]: value
|
|
18152
18225
|
};
|
|
18153
18226
|
let reverseCharater = dataCharacter + "_reverse";
|
|
18154
18227
|
if (reverseCharater.includes("_s_")) {
|
|
@@ -18169,7 +18242,7 @@ function FormatFunctionDataForData(connections_1, compositionData_1) {
|
|
|
18169
18242
|
else {
|
|
18170
18243
|
if (ofTheConcept.id != 0 && toTheConcept.id != 0) {
|
|
18171
18244
|
let newData;
|
|
18172
|
-
let linkerConcept = yield (0,
|
|
18245
|
+
let linkerConcept = yield (0,_GetTheConcept__WEBPACK_IMPORTED_MODULE_1__["default"])(connections[i].typeId);
|
|
18173
18246
|
let key = (_f = (_e = ofTheConcept.type) === null || _e === void 0 ? void 0 : _e.characterValue) !== null && _f !== void 0 ? _f : "self";
|
|
18174
18247
|
if (connections[i].ofTheConceptId in compositionData) {
|
|
18175
18248
|
newData = compositionData[connections[i].ofTheConceptId];
|
|
@@ -18186,25 +18259,40 @@ function FormatFunctionDataForData(connections_1, compositionData_1) {
|
|
|
18186
18259
|
let mytype = (_h = (_g = toTheConcept === null || toTheConcept === void 0 ? void 0 : toTheConcept.type) === null || _g === void 0 ? void 0 : _g.characterValue) !== null && _h !== void 0 ? _h : "none";
|
|
18187
18260
|
let value = toTheConcept.characterValue;
|
|
18188
18261
|
let dataCharacter = linkerConcept.characterValue;
|
|
18262
|
+
let isComp = false;
|
|
18189
18263
|
// if there is not connection type defined then put the type of the destination concept.
|
|
18190
18264
|
if (dataCharacter == "") {
|
|
18191
18265
|
dataCharacter = mytype;
|
|
18192
|
-
dataCharacter = (0,
|
|
18266
|
+
dataCharacter = (0,_Common_RegexFunction__WEBPACK_IMPORTED_MODULE_0__.removeThePrefix)(dataCharacter);
|
|
18267
|
+
isComp = true;
|
|
18193
18268
|
}
|
|
18194
|
-
let data = {
|
|
18269
|
+
// let data = {
|
|
18270
|
+
// "id": toTheConcept.id,
|
|
18271
|
+
// [mytype] : value
|
|
18272
|
+
// }
|
|
18273
|
+
let data = {};
|
|
18274
|
+
data[mytype] = {
|
|
18195
18275
|
"id": toTheConcept.id,
|
|
18196
|
-
"data":
|
|
18197
|
-
[mytype]: value
|
|
18198
|
-
}
|
|
18276
|
+
"data": value
|
|
18199
18277
|
};
|
|
18200
|
-
if (dataCharacter
|
|
18201
|
-
|
|
18278
|
+
if (isNaN(Number(dataCharacter))) {
|
|
18279
|
+
if (dataCharacter.includes("_s_")) {
|
|
18280
|
+
// do nothing
|
|
18281
|
+
}
|
|
18282
|
+
else {
|
|
18283
|
+
if (typeof newData[key] == "string") {
|
|
18284
|
+
newData[key] = {};
|
|
18285
|
+
}
|
|
18286
|
+
if (isComp) {
|
|
18287
|
+
newData[key][dataCharacter] = data[mytype];
|
|
18288
|
+
}
|
|
18289
|
+
else {
|
|
18290
|
+
newData[key][dataCharacter] = data;
|
|
18291
|
+
}
|
|
18292
|
+
}
|
|
18202
18293
|
}
|
|
18203
18294
|
else {
|
|
18204
|
-
|
|
18205
|
-
newData[key] = {};
|
|
18206
|
-
}
|
|
18207
|
-
newData[key][dataCharacter] = data;
|
|
18295
|
+
newData[key] = [];
|
|
18208
18296
|
}
|
|
18209
18297
|
}
|
|
18210
18298
|
catch (ex) {
|
|
@@ -18217,17 +18305,20 @@ function FormatFunctionDataForData(connections_1, compositionData_1) {
|
|
|
18217
18305
|
});
|
|
18218
18306
|
}
|
|
18219
18307
|
/**
|
|
18220
|
-
*
|
|
18221
|
-
*
|
|
18222
|
-
*
|
|
18223
|
-
* @param connections
|
|
18224
|
-
* @param compositionData
|
|
18225
|
-
* @param
|
|
18226
|
-
* @
|
|
18227
|
-
|
|
18228
|
-
|
|
18229
|
-
|
|
18230
|
-
|
|
18308
|
+
* ############ Format is Just Id and is used for list. ############
|
|
18309
|
+
* This is helpful in building a format that has multiple mainCompositions i.e. in the context of the list
|
|
18310
|
+
* The list format is helpful because you do not have to go over each individual query.
|
|
18311
|
+
* @param connections the type connections that need (external connections) to be passed
|
|
18312
|
+
* @param compositionData this is a dictionary type of format that has all the build compositions {id: { actual data}}
|
|
18313
|
+
* @param mainComposition this is list of ids of the main composition that builds the tree
|
|
18314
|
+
* @param reverse this is the list of connections ids that needs to go to the reverse direction (to---->from)
|
|
18315
|
+
* @returns
|
|
18316
|
+
*/
|
|
18317
|
+
function FormatFromConnectionsAlteredArrayExternalJustId(connections_1, compositionData_1, mainComposition_1) {
|
|
18318
|
+
return __awaiter(this, arguments, void 0, function* (connections, compositionData, mainComposition, reverse = []) {
|
|
18319
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
18320
|
+
let startTime = new Date().getTime();
|
|
18321
|
+
let mainData = [];
|
|
18231
18322
|
let myConcepts = [];
|
|
18232
18323
|
for (let i = 0; i < connections.length; i++) {
|
|
18233
18324
|
myConcepts.push(connections[i].toTheConceptId);
|
|
@@ -18239,102 +18330,153 @@ function FormatFunctionDataForDataJustId(connections_1, compositionData_1) {
|
|
|
18239
18330
|
});
|
|
18240
18331
|
for (let i = 0; i < connections.length; i++) {
|
|
18241
18332
|
let reverseFlag = false;
|
|
18242
|
-
let ofTheConcept = yield (0,
|
|
18243
|
-
let toTheConcept = yield (0,
|
|
18333
|
+
let ofTheConcept = yield (0,_GetTheConcept__WEBPACK_IMPORTED_MODULE_1__["default"])(connections[i].ofTheConceptId);
|
|
18334
|
+
let toTheConcept = yield (0,_GetTheConcept__WEBPACK_IMPORTED_MODULE_1__["default"])(connections[i].toTheConceptId);
|
|
18244
18335
|
if (reverse.includes(connections[i].id)) {
|
|
18245
18336
|
reverseFlag = true;
|
|
18246
18337
|
}
|
|
18247
18338
|
if (reverseFlag == true) {
|
|
18248
18339
|
if (ofTheConcept.id != 0 && toTheConcept.id != 0) {
|
|
18249
|
-
|
|
18250
|
-
|
|
18251
|
-
|
|
18252
|
-
|
|
18253
|
-
|
|
18254
|
-
if (
|
|
18255
|
-
|
|
18256
|
-
}
|
|
18257
|
-
}
|
|
18258
|
-
else {
|
|
18259
|
-
newData = {};
|
|
18260
|
-
newData[key] = {};
|
|
18261
|
-
compositionData[connections[i].toTheConceptId] = newData;
|
|
18262
|
-
}
|
|
18263
|
-
try {
|
|
18264
|
-
let mytype = (_d = (_c = ofTheConcept === null || ofTheConcept === void 0 ? void 0 : ofTheConcept.type) === null || _c === void 0 ? void 0 : _c.characterValue) !== null && _d !== void 0 ? _d : "none";
|
|
18265
|
-
let value = ofTheConcept.characterValue;
|
|
18266
|
-
let dataCharacter = linkerConcept.characterValue;
|
|
18267
|
-
// if there is not connection type defined then put the type of the destination concept.
|
|
18268
|
-
if (dataCharacter == "") {
|
|
18269
|
-
dataCharacter = mytype;
|
|
18270
|
-
dataCharacter = (0,_Common_RegexFunction__WEBPACK_IMPORTED_MODULE_1__.removeThePrefix)(dataCharacter);
|
|
18340
|
+
if (toTheConcept.id in compositionData) {
|
|
18341
|
+
let newData;
|
|
18342
|
+
let linkerConcept = yield (0,_GetTheConcept__WEBPACK_IMPORTED_MODULE_1__["default"])(connections[i].typeId);
|
|
18343
|
+
let key = (_b = (_a = toTheConcept.type) === null || _a === void 0 ? void 0 : _a.characterValue) !== null && _b !== void 0 ? _b : "self";
|
|
18344
|
+
let flag = false;
|
|
18345
|
+
if (connections[i].toTheConceptId in compositionData) {
|
|
18346
|
+
flag = true;
|
|
18271
18347
|
}
|
|
18272
|
-
|
|
18273
|
-
|
|
18274
|
-
[
|
|
18275
|
-
|
|
18276
|
-
|
|
18277
|
-
|
|
18278
|
-
// do nothing
|
|
18348
|
+
if (connections[i].toTheConceptId in compositionData) {
|
|
18349
|
+
newData = compositionData[connections[i].toTheConceptId];
|
|
18350
|
+
let newType = typeof newData[key];
|
|
18351
|
+
if (newType == "string") {
|
|
18352
|
+
newData[key] = {};
|
|
18353
|
+
}
|
|
18279
18354
|
}
|
|
18280
18355
|
else {
|
|
18281
|
-
|
|
18282
|
-
|
|
18356
|
+
newData = {};
|
|
18357
|
+
newData[key] = {};
|
|
18358
|
+
compositionData[connections[i].toTheConceptId] = newData;
|
|
18359
|
+
}
|
|
18360
|
+
try {
|
|
18361
|
+
let isComp = compositionData[connections[i].ofTheConceptId];
|
|
18362
|
+
if (isComp) {
|
|
18363
|
+
let data = compositionData[connections[i].ofTheConceptId];
|
|
18364
|
+
if (data) {
|
|
18365
|
+
data["id"] = ofTheConcept.id;
|
|
18366
|
+
}
|
|
18367
|
+
let reverseCharater = linkerConcept.characterValue + "_reverse";
|
|
18368
|
+
if (Array.isArray(newData[key][reverseCharater])) {
|
|
18369
|
+
newData[key][reverseCharater].push(data);
|
|
18370
|
+
}
|
|
18371
|
+
else {
|
|
18372
|
+
if (reverseCharater.includes("_s_")) {
|
|
18373
|
+
newData[key][reverseCharater] = [];
|
|
18374
|
+
newData[key][reverseCharater].push(data);
|
|
18375
|
+
}
|
|
18376
|
+
else {
|
|
18377
|
+
newData[key][reverseCharater] = data;
|
|
18378
|
+
}
|
|
18379
|
+
}
|
|
18283
18380
|
}
|
|
18284
|
-
newData[key][reverseCharater] = data;
|
|
18285
18381
|
}
|
|
18286
|
-
|
|
18287
|
-
|
|
18288
|
-
|
|
18382
|
+
catch (ex) {
|
|
18383
|
+
console.log("this is error", ex);
|
|
18384
|
+
}
|
|
18289
18385
|
}
|
|
18290
18386
|
}
|
|
18291
18387
|
}
|
|
18292
18388
|
else {
|
|
18293
18389
|
if (ofTheConcept.id != 0 && toTheConcept.id != 0) {
|
|
18294
|
-
|
|
18295
|
-
|
|
18296
|
-
|
|
18297
|
-
|
|
18298
|
-
|
|
18299
|
-
if (
|
|
18390
|
+
if (ofTheConcept.id in compositionData) {
|
|
18391
|
+
let newData;
|
|
18392
|
+
let linkerConcept = yield (0,_GetTheConcept__WEBPACK_IMPORTED_MODULE_1__["default"])(connections[i].typeId);
|
|
18393
|
+
let key = (_d = (_c = ofTheConcept.type) === null || _c === void 0 ? void 0 : _c.characterValue) !== null && _d !== void 0 ? _d : "self";
|
|
18394
|
+
let flag = false;
|
|
18395
|
+
if (connections[i].toTheConceptId in compositionData) {
|
|
18396
|
+
flag = true;
|
|
18397
|
+
}
|
|
18398
|
+
if (connections[i].ofTheConceptId in compositionData) {
|
|
18399
|
+
newData = compositionData[connections[i].ofTheConceptId];
|
|
18400
|
+
let newType = typeof newData[key];
|
|
18401
|
+
if (newType == "string") {
|
|
18402
|
+
newData[key] = {};
|
|
18403
|
+
}
|
|
18404
|
+
}
|
|
18405
|
+
else {
|
|
18406
|
+
newData = {};
|
|
18300
18407
|
newData[key] = {};
|
|
18408
|
+
compositionData[connections[i].ofTheConceptId] = newData;
|
|
18301
18409
|
}
|
|
18302
|
-
|
|
18303
|
-
|
|
18304
|
-
|
|
18305
|
-
|
|
18306
|
-
|
|
18307
|
-
}
|
|
18308
|
-
try {
|
|
18309
|
-
let mytype = (_h = (_g = toTheConcept === null || toTheConcept === void 0 ? void 0 : toTheConcept.type) === null || _g === void 0 ? void 0 : _g.characterValue) !== null && _h !== void 0 ? _h : "none";
|
|
18310
|
-
let value = toTheConcept.characterValue;
|
|
18311
|
-
let dataCharacter = linkerConcept.characterValue;
|
|
18312
|
-
// if there is not connection type defined then put the type of the destination concept.
|
|
18313
|
-
if (dataCharacter == "") {
|
|
18314
|
-
dataCharacter = mytype;
|
|
18315
|
-
dataCharacter = (0,_Common_RegexFunction__WEBPACK_IMPORTED_MODULE_1__.removeThePrefix)(dataCharacter);
|
|
18410
|
+
let isComp = false;
|
|
18411
|
+
let linkerConceptValue = linkerConcept.characterValue;
|
|
18412
|
+
if (linkerConceptValue == "") {
|
|
18413
|
+
linkerConceptValue = toTheConcept.characterValue;
|
|
18414
|
+
isComp = true;
|
|
18316
18415
|
}
|
|
18317
|
-
|
|
18318
|
-
|
|
18319
|
-
[mytype]: value
|
|
18320
|
-
};
|
|
18321
|
-
if (dataCharacter.includes("_s_")) {
|
|
18322
|
-
// do nothing
|
|
18416
|
+
if (linkerConceptValue == "") {
|
|
18417
|
+
linkerConceptValue = (_e = toTheConcept === null || toTheConcept === void 0 ? void 0 : toTheConcept.type) === null || _e === void 0 ? void 0 : _e.characterValue;
|
|
18323
18418
|
}
|
|
18324
|
-
|
|
18325
|
-
|
|
18326
|
-
|
|
18419
|
+
try {
|
|
18420
|
+
let mytype = (_g = (_f = toTheConcept === null || toTheConcept === void 0 ? void 0 : toTheConcept.type) === null || _f === void 0 ? void 0 : _f.characterValue) !== null && _g !== void 0 ? _g : "none";
|
|
18421
|
+
let myData = compositionData[connections[i].toTheConceptId];
|
|
18422
|
+
if (myData) {
|
|
18423
|
+
let testData = {};
|
|
18424
|
+
testData[mytype] = {
|
|
18425
|
+
"data": myData[mytype],
|
|
18426
|
+
"id": toTheConcept.id
|
|
18427
|
+
};
|
|
18428
|
+
if (Array.isArray(newData[key])) {
|
|
18429
|
+
if (isComp) {
|
|
18430
|
+
newData[key].push(myData[linkerConceptValue]);
|
|
18431
|
+
}
|
|
18432
|
+
else {
|
|
18433
|
+
newData[key].push(myData);
|
|
18434
|
+
}
|
|
18435
|
+
}
|
|
18436
|
+
else {
|
|
18437
|
+
if (Array.isArray(newData[key][linkerConceptValue])) {
|
|
18438
|
+
newData[key][linkerConceptValue].push(testData);
|
|
18439
|
+
}
|
|
18440
|
+
else {
|
|
18441
|
+
if (linkerConceptValue.includes("_s_")) {
|
|
18442
|
+
newData[key][linkerConceptValue] = [];
|
|
18443
|
+
if (isComp) {
|
|
18444
|
+
newData[key][linkerConceptValue].push(testData[mytype]);
|
|
18445
|
+
}
|
|
18446
|
+
else {
|
|
18447
|
+
newData[key][linkerConceptValue].push(testData);
|
|
18448
|
+
}
|
|
18449
|
+
}
|
|
18450
|
+
else {
|
|
18451
|
+
if (isComp) {
|
|
18452
|
+
newData[key][linkerConceptValue] = testData[mytype];
|
|
18453
|
+
}
|
|
18454
|
+
else {
|
|
18455
|
+
newData[key][linkerConceptValue] = testData;
|
|
18456
|
+
}
|
|
18457
|
+
}
|
|
18458
|
+
}
|
|
18459
|
+
}
|
|
18327
18460
|
}
|
|
18328
|
-
newData[key][dataCharacter] = data;
|
|
18329
18461
|
}
|
|
18330
|
-
|
|
18331
|
-
|
|
18332
|
-
|
|
18462
|
+
catch (ex) {
|
|
18463
|
+
console.log("this is error", ex);
|
|
18464
|
+
}
|
|
18333
18465
|
}
|
|
18334
18466
|
}
|
|
18335
18467
|
}
|
|
18336
18468
|
}
|
|
18337
|
-
|
|
18469
|
+
console.log("this is the main compositions", mainComposition);
|
|
18470
|
+
for (let i = 0; i < mainComposition.length; i++) {
|
|
18471
|
+
let mymainData = {};
|
|
18472
|
+
console.log("this is the main compositions DATA", compositionData[mainComposition[i]]);
|
|
18473
|
+
mymainData = compositionData[mainComposition[i]];
|
|
18474
|
+
if (mymainData) {
|
|
18475
|
+
mymainData["id"] = mainComposition[i];
|
|
18476
|
+
}
|
|
18477
|
+
mainData.push(mymainData);
|
|
18478
|
+
}
|
|
18479
|
+
return mainData;
|
|
18338
18480
|
});
|
|
18339
18481
|
}
|
|
18340
18482
|
|
|
@@ -18430,19 +18572,19 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume
|
|
|
18430
18572
|
function SearchLinkMultipleAll(searchQuery_1) {
|
|
18431
18573
|
return __awaiter(this, arguments, void 0, function* (searchQuery, token = "", caller = null, format = _Constants_FormatConstants__WEBPACK_IMPORTED_MODULE_1__.DATAID) {
|
|
18432
18574
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
18433
|
-
if (_app__WEBPACK_IMPORTED_MODULE_2__.serviceWorker) {
|
|
18434
|
-
const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_2__.sendMessage)('SearchLinkMultipleAll', { searchQuery, token, caller, format });
|
|
18435
|
-
// console.log('data received search from sw', res)
|
|
18436
|
-
return res.data;
|
|
18437
|
-
}
|
|
18438
|
-
let conceptIds = [];
|
|
18439
|
-
let linkers = [];
|
|
18440
|
-
let connections = [];
|
|
18441
|
-
let reverse = [];
|
|
18442
|
-
let mainCompositionId = searchQuery[0].composition;
|
|
18443
|
-
let conceptsConnections = {};
|
|
18444
|
-
let result = {};
|
|
18445
18575
|
try {
|
|
18576
|
+
if (_app__WEBPACK_IMPORTED_MODULE_2__.serviceWorker) {
|
|
18577
|
+
const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_2__.sendMessage)('SearchLinkMultipleAll', { searchQuery, token, caller, format });
|
|
18578
|
+
// console.log('data received search from sw', res)
|
|
18579
|
+
return res.data;
|
|
18580
|
+
}
|
|
18581
|
+
let conceptIds = [];
|
|
18582
|
+
let linkers = [];
|
|
18583
|
+
let connections = [];
|
|
18584
|
+
let reverse = [];
|
|
18585
|
+
let mainCompositionId = searchQuery[0].composition;
|
|
18586
|
+
let conceptsConnections = {};
|
|
18587
|
+
let result = {};
|
|
18446
18588
|
if (caller === null || caller === void 0 ? void 0 : caller.isDataLoaded) {
|
|
18447
18589
|
conceptsConnections.compositionIds = (_a = caller.conceptIds) === null || _a === void 0 ? void 0 : _a.slice();
|
|
18448
18590
|
conceptsConnections.internalConnections = (_b = caller.internalConnections) === null || _b === void 0 ? void 0 : _b.slice();
|
|
@@ -18489,30 +18631,35 @@ function SearchLinkMultipleAll(searchQuery_1) {
|
|
|
18489
18631
|
*/
|
|
18490
18632
|
function DataIdBuildLayer(linkers_1, conceptIds_1, connections_1, reverse_1, mainCompositionId_1, searchQuery_1) {
|
|
18491
18633
|
return __awaiter(this, arguments, void 0, function* (linkers, conceptIds, connections, reverse, mainCompositionId, searchQuery, format = _Constants_FormatConstants__WEBPACK_IMPORTED_MODULE_1__.DATAID) {
|
|
18492
|
-
|
|
18493
|
-
|
|
18494
|
-
|
|
18495
|
-
|
|
18496
|
-
|
|
18497
|
-
|
|
18498
|
-
|
|
18499
|
-
|
|
18500
|
-
|
|
18501
|
-
|
|
18502
|
-
|
|
18503
|
-
|
|
18504
|
-
|
|
18505
|
-
|
|
18506
|
-
|
|
18507
|
-
|
|
18508
|
-
|
|
18509
|
-
|
|
18634
|
+
try {
|
|
18635
|
+
let prefetchConnections = yield (0,_GetCompositionBulk__WEBPACK_IMPORTED_MODULE_3__.GetConnectionDataPrefetch)(linkers);
|
|
18636
|
+
let concepts;
|
|
18637
|
+
let out;
|
|
18638
|
+
if (format == _Constants_FormatConstants__WEBPACK_IMPORTED_MODULE_1__.JUSTDATA) {
|
|
18639
|
+
concepts = yield (0,_GetCompositionBulk__WEBPACK_IMPORTED_MODULE_3__.GetCompositionFromConnectionsInObject)(conceptIds, connections);
|
|
18640
|
+
out = yield FormatFromConnections(linkers, concepts, mainCompositionId, reverse);
|
|
18641
|
+
}
|
|
18642
|
+
else if (format == _Constants_FormatConstants__WEBPACK_IMPORTED_MODULE_1__.NORMAL) {
|
|
18643
|
+
concepts = yield (0,_GetCompositionBulk__WEBPACK_IMPORTED_MODULE_3__.GetCompositionFromConnectionsInObjectNormal)(conceptIds, connections);
|
|
18644
|
+
out = yield FormatFromConnections(linkers, concepts, mainCompositionId, reverse);
|
|
18645
|
+
}
|
|
18646
|
+
else if (format == 100) {
|
|
18647
|
+
concepts = yield (0,_GetCompositionBulk__WEBPACK_IMPORTED_MODULE_3__.GetCompositionFromConnectionsWithDataIdInObjectNew)(conceptIds, connections);
|
|
18648
|
+
out = yield FormatFromConnectionsAltered(prefetchConnections, concepts, mainCompositionId, reverse);
|
|
18649
|
+
}
|
|
18650
|
+
else if (format == _Constants_FormatConstants__WEBPACK_IMPORTED_MODULE_1__.LISTNORMAL) {
|
|
18651
|
+
out = yield (0,_SearchWithTypeAndLinker__WEBPACK_IMPORTED_MODULE_4__.formatDataArrayNormal)(linkers, conceptIds, connections, searchQuery.ofCompositions, reverse);
|
|
18652
|
+
}
|
|
18653
|
+
else {
|
|
18654
|
+
concepts = yield (0,_GetCompositionBulk__WEBPACK_IMPORTED_MODULE_3__.GetCompositionFromConnectionsWithDataIdInObject)(conceptIds, connections);
|
|
18655
|
+
out = yield FormatFromConnectionsAltered(prefetchConnections, concepts, mainCompositionId, reverse);
|
|
18656
|
+
}
|
|
18657
|
+
return out;
|
|
18510
18658
|
}
|
|
18511
|
-
|
|
18512
|
-
|
|
18513
|
-
|
|
18659
|
+
catch (err) {
|
|
18660
|
+
console.log('Error Occured in build layer', err);
|
|
18661
|
+
return undefined;
|
|
18514
18662
|
}
|
|
18515
|
-
return out;
|
|
18516
18663
|
});
|
|
18517
18664
|
}
|
|
18518
18665
|
/**
|
|
@@ -18891,6 +19038,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
18891
19038
|
/* harmony import */ var _GetCompositionBulk__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../GetCompositionBulk */ "./src/Services/GetCompositionBulk.ts");
|
|
18892
19039
|
/* harmony import */ var _FormatData__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./FormatData */ "./src/Services/Search/FormatData.ts");
|
|
18893
19040
|
/* harmony import */ var _SearchLinkMultiple__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./SearchLinkMultiple */ "./src/Services/Search/SearchLinkMultiple.ts");
|
|
19041
|
+
/* harmony import */ var _JustIdFormat__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./JustIdFormat */ "./src/Services/Search/JustIdFormat.ts");
|
|
19042
|
+
/* harmony import */ var _DataIdFormat__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./DataIdFormat */ "./src/Services/Search/DataIdFormat.ts");
|
|
18894
19043
|
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
18895
19044
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
18896
19045
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -18904,6 +19053,8 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume
|
|
|
18904
19053
|
|
|
18905
19054
|
|
|
18906
19055
|
|
|
19056
|
+
|
|
19057
|
+
|
|
18907
19058
|
/**
|
|
18908
19059
|
* This function will help you search a concept by their type and also to query inside of it.
|
|
18909
19060
|
* Put the number of compositions you want to get in the searchStructure which can be set by inpage and page
|
|
@@ -19034,8 +19185,8 @@ function formatConnectionsJustId(linkers, conceptIds, mainCompositionIds, revers
|
|
|
19034
19185
|
let compositionData = [];
|
|
19035
19186
|
let newCompositionData = [];
|
|
19036
19187
|
compositionData = yield (0,_FormatData__WEBPACK_IMPORTED_MODULE_2__.formatFunction)(prefetchConnections, compositionData, reverse);
|
|
19037
|
-
compositionData = yield (0,
|
|
19038
|
-
let output = yield (0,
|
|
19188
|
+
compositionData = yield (0,_JustIdFormat__WEBPACK_IMPORTED_MODULE_4__.FormatFunctionDataForDataJustId)(prefetchConnections, compositionData, reverse);
|
|
19189
|
+
let output = yield (0,_JustIdFormat__WEBPACK_IMPORTED_MODULE_4__.FormatFromConnectionsAlteredArrayExternalJustId)(prefetchConnections, compositionData, mainCompositionIds, reverse);
|
|
19039
19190
|
return output;
|
|
19040
19191
|
});
|
|
19041
19192
|
}
|
|
@@ -19055,8 +19206,8 @@ function formatConnectionsDataId(linkers, conceptIds, mainCompositionIds, revers
|
|
|
19055
19206
|
let compositionData = [];
|
|
19056
19207
|
let newCompositionData = [];
|
|
19057
19208
|
compositionData = yield (0,_FormatData__WEBPACK_IMPORTED_MODULE_2__.FormatFunctionData)(prefetchConnections, compositionData, reverse);
|
|
19058
|
-
compositionData = yield (0,
|
|
19059
|
-
let output = yield (0,
|
|
19209
|
+
compositionData = yield (0,_DataIdFormat__WEBPACK_IMPORTED_MODULE_5__.FormatFunctionDataForData)(prefetchConnections, compositionData, reverse);
|
|
19210
|
+
let output = yield (0,_DataIdFormat__WEBPACK_IMPORTED_MODULE_5__.FormatFromConnectionsAlteredArrayExternal)(prefetchConnections, compositionData, newCompositionData, mainCompositionIds, reverse);
|
|
19060
19211
|
return output;
|
|
19061
19212
|
});
|
|
19062
19213
|
}
|
|
@@ -20059,7 +20210,7 @@ function TypeEditor(event, that) {
|
|
|
20059
20210
|
newThat.widgetType = inputValue;
|
|
20060
20211
|
//console.log("inputValue", inputValue);
|
|
20061
20212
|
//that.setProperty(inputValue);
|
|
20062
|
-
newThat.
|
|
20213
|
+
newThat.mounted();
|
|
20063
20214
|
newThat.loadChildWidgets();
|
|
20064
20215
|
(_c = (_b = newThat.element) === null || _b === void 0 ? void 0 : _b.parentElement) === null || _c === void 0 ? void 0 : _c.setAttribute("data-type-value", newThat.widgetType);
|
|
20065
20216
|
};
|
|
@@ -20242,7 +20393,7 @@ class BuilderStatefulWidget extends _StatefulWidget__WEBPACK_IMPORTED_MODULE_0__
|
|
|
20242
20393
|
this.elementIdentifier = Math.random() * 10000;
|
|
20243
20394
|
return this.elementIdentifier;
|
|
20244
20395
|
}
|
|
20245
|
-
|
|
20396
|
+
child_mounted() {
|
|
20246
20397
|
return __awaiter(this, void 0, void 0, function* () {
|
|
20247
20398
|
const dynamicAsyncFunction = new Function("tsccs", `
|
|
20248
20399
|
return (async function() {
|
|
@@ -20290,8 +20441,8 @@ class BuilderStatefulWidget extends _StatefulWidget__WEBPACK_IMPORTED_MODULE_0__
|
|
|
20290
20441
|
this.parentElement = parent.id;
|
|
20291
20442
|
if (this.componentMounted == false || this.widgetMounted == false) {
|
|
20292
20443
|
// Simulate componentDidMount by calling it after the component is inserted into the DOM
|
|
20293
|
-
this.
|
|
20294
|
-
this.
|
|
20444
|
+
this.mounted();
|
|
20445
|
+
this.child_mounted();
|
|
20295
20446
|
this.widgetMounted = true;
|
|
20296
20447
|
this.componentMounted = true;
|
|
20297
20448
|
}
|
|
@@ -20323,7 +20474,7 @@ class BuilderStatefulWidget extends _StatefulWidget__WEBPACK_IMPORTED_MODULE_0__
|
|
|
20323
20474
|
// );
|
|
20324
20475
|
// renderOnmount.call(this, tsccs);
|
|
20325
20476
|
}
|
|
20326
|
-
|
|
20477
|
+
after_render() {
|
|
20327
20478
|
// const AsyncFunction = Object.getPrototypeOf(
|
|
20328
20479
|
// async function () {}
|
|
20329
20480
|
// ).constructor;
|
|
@@ -20472,12 +20623,12 @@ class StatefulWidget extends _BaseWidget__WEBPACK_IMPORTED_MODULE_0__.BaseWidget
|
|
|
20472
20623
|
let passedWidget = widget;
|
|
20473
20624
|
passedWidget.data = value;
|
|
20474
20625
|
passedWidget.render();
|
|
20475
|
-
passedWidget.
|
|
20626
|
+
passedWidget.updated();
|
|
20476
20627
|
}
|
|
20477
20628
|
/**
|
|
20478
20629
|
* This is called after the data has been udpated by some other component.
|
|
20479
20630
|
*/
|
|
20480
|
-
|
|
20631
|
+
updated() { }
|
|
20481
20632
|
/**
|
|
20482
20633
|
*
|
|
20483
20634
|
* @param newState
|
|
@@ -20510,7 +20661,7 @@ class StatefulWidget extends _BaseWidget__WEBPACK_IMPORTED_MODULE_0__.BaseWidget
|
|
|
20510
20661
|
}
|
|
20511
20662
|
//console.log("added-widget-container",this.childWidgetElement);
|
|
20512
20663
|
// addEvents is called after the element has been mounted.
|
|
20513
|
-
this.
|
|
20664
|
+
this.after_render();
|
|
20514
20665
|
// then after the child widgets are again loaded.
|
|
20515
20666
|
if (this.widgetMounted) {
|
|
20516
20667
|
this.loadChildWidgets();
|
|
@@ -20528,7 +20679,7 @@ class StatefulWidget extends _BaseWidget__WEBPACK_IMPORTED_MODULE_0__.BaseWidget
|
|
|
20528
20679
|
/**
|
|
20529
20680
|
* This is the function that needs to be called.
|
|
20530
20681
|
*/
|
|
20531
|
-
|
|
20682
|
+
child_mounted() {
|
|
20532
20683
|
}
|
|
20533
20684
|
/**
|
|
20534
20685
|
*
|
|
@@ -20552,10 +20703,10 @@ class StatefulWidget extends _BaseWidget__WEBPACK_IMPORTED_MODULE_0__.BaseWidget
|
|
|
20552
20703
|
// then after the widget has been mounted for the first time call this function
|
|
20553
20704
|
// user can update this function as per their requirement
|
|
20554
20705
|
//this will mostly be used to bind data / call data
|
|
20555
|
-
this.
|
|
20706
|
+
this.mounted();
|
|
20556
20707
|
// since this is the first time the widget is being created. then all the child widgets are being mounted
|
|
20557
20708
|
// as well here.
|
|
20558
|
-
this.
|
|
20709
|
+
this.child_mounted();
|
|
20559
20710
|
// after the widget has been mounted for the first time then the widget has been updated.
|
|
20560
20711
|
this.widgetMounted = true;
|
|
20561
20712
|
}
|
|
@@ -20569,14 +20720,14 @@ class StatefulWidget extends _BaseWidget__WEBPACK_IMPORTED_MODULE_0__.BaseWidget
|
|
|
20569
20720
|
/**
|
|
20570
20721
|
* This function will be called after the component mounts.
|
|
20571
20722
|
*/
|
|
20572
|
-
|
|
20723
|
+
mounted() {
|
|
20573
20724
|
this.render();
|
|
20574
20725
|
}
|
|
20575
20726
|
/**
|
|
20576
20727
|
* This is called after the render function has been called. So this is used for the user functions to be added
|
|
20577
20728
|
* for the widget and its html element. User can add any logic here.
|
|
20578
20729
|
*/
|
|
20579
|
-
|
|
20730
|
+
after_render() {
|
|
20580
20731
|
}
|
|
20581
20732
|
}
|
|
20582
20733
|
|