mftsccs-browser 1.1.56-beta → 1.1.58-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 +65 -9
- package/dist/main.bundle.js.map +1 -1
- package/dist/serviceWorker.bundle.js +65 -9
- package/dist/serviceWorker.bundle.js.map +1 -1
- package/dist/types/DataStructures/Search/FreeschemaQuery.d.ts +1 -0
- package/dist/types/Services/Common/RegexFunction.d.ts +1 -0
- package/package.json +1 -1
package/dist/main.bundle.js
CHANGED
|
@@ -9072,6 +9072,7 @@ class FreeschemaQuery {
|
|
|
9072
9072
|
this.name = "";
|
|
9073
9073
|
this.reverse = false;
|
|
9074
9074
|
this.includeInFilter = false;
|
|
9075
|
+
this.isOldConnectionType = false;
|
|
9075
9076
|
}
|
|
9076
9077
|
}
|
|
9077
9078
|
|
|
@@ -10848,6 +10849,26 @@ function HandleInternalError(error, url = "") {
|
|
|
10848
10849
|
}
|
|
10849
10850
|
|
|
10850
10851
|
|
|
10852
|
+
/***/ }),
|
|
10853
|
+
|
|
10854
|
+
/***/ "./src/Services/Common/RegexFunction.ts":
|
|
10855
|
+
/*!**********************************************!*\
|
|
10856
|
+
!*** ./src/Services/Common/RegexFunction.ts ***!
|
|
10857
|
+
\**********************************************/
|
|
10858
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
10859
|
+
|
|
10860
|
+
__webpack_require__.r(__webpack_exports__);
|
|
10861
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
10862
|
+
/* harmony export */ removeThePrefix: () => (/* binding */ removeThePrefix)
|
|
10863
|
+
/* harmony export */ });
|
|
10864
|
+
function removeThePrefix(inputString) {
|
|
10865
|
+
if (inputString.startsWith("the_")) {
|
|
10866
|
+
return inputString.slice(4); // Removes the first 4 characters
|
|
10867
|
+
}
|
|
10868
|
+
return inputString; // Return as-is if it doesn't start with "the_"
|
|
10869
|
+
}
|
|
10870
|
+
|
|
10871
|
+
|
|
10851
10872
|
/***/ }),
|
|
10852
10873
|
|
|
10853
10874
|
/***/ "./src/Services/Composition/BuildComposition.ts":
|
|
@@ -16293,6 +16314,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
16293
16314
|
/* harmony export */ formatFunctionForData: () => (/* binding */ formatFunctionForData)
|
|
16294
16315
|
/* harmony export */ });
|
|
16295
16316
|
/* harmony import */ var _app__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../app */ "./src/app.ts");
|
|
16317
|
+
/* harmony import */ var _Common_RegexFunction__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Common/RegexFunction */ "./src/Services/Common/RegexFunction.ts");
|
|
16296
16318
|
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16297
16319
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16298
16320
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -16303,6 +16325,7 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume
|
|
|
16303
16325
|
});
|
|
16304
16326
|
};
|
|
16305
16327
|
|
|
16328
|
+
|
|
16306
16329
|
/**
|
|
16307
16330
|
* ######### Format is normal ######### used for listing. This only provides type connections.
|
|
16308
16331
|
* This is helpful in building a format that has multiple mainCompositions i.e. in the context of the list
|
|
@@ -16378,6 +16401,10 @@ function FormatConceptsAndConnectionsNormalList(connections_1, compositionData_1
|
|
|
16378
16401
|
let key = (_d = (_c = ofTheConcept.type) === null || _c === void 0 ? void 0 : _c.characterValue) !== null && _d !== void 0 ? _d : "self";
|
|
16379
16402
|
if (connections[i].ofTheConceptId in compositionData) {
|
|
16380
16403
|
newData = compositionData[connections[i].ofTheConceptId];
|
|
16404
|
+
let newType = typeof newData[key];
|
|
16405
|
+
if (newType == "string") {
|
|
16406
|
+
newData[key] = {};
|
|
16407
|
+
}
|
|
16381
16408
|
}
|
|
16382
16409
|
else {
|
|
16383
16410
|
newData = {};
|
|
@@ -16462,6 +16489,10 @@ function FormatFromConnectionsAlteredArrayExternal(connections_1, compositionDat
|
|
|
16462
16489
|
}
|
|
16463
16490
|
if (connections[i].toTheConceptId in compositionData) {
|
|
16464
16491
|
newData = compositionData[connections[i].toTheConceptId];
|
|
16492
|
+
let newType = typeof newData[key];
|
|
16493
|
+
if (newType == "string") {
|
|
16494
|
+
newData[key] = {};
|
|
16495
|
+
}
|
|
16465
16496
|
}
|
|
16466
16497
|
else {
|
|
16467
16498
|
newData = {};
|
|
@@ -16508,6 +16539,10 @@ function FormatFromConnectionsAlteredArrayExternal(connections_1, compositionDat
|
|
|
16508
16539
|
}
|
|
16509
16540
|
if (connections[i].ofTheConceptId in compositionData) {
|
|
16510
16541
|
newData = compositionData[connections[i].ofTheConceptId];
|
|
16542
|
+
let newType = typeof newData[key];
|
|
16543
|
+
if (newType == "string") {
|
|
16544
|
+
newData[key] = {};
|
|
16545
|
+
}
|
|
16511
16546
|
}
|
|
16512
16547
|
else {
|
|
16513
16548
|
newData = {};
|
|
@@ -16687,13 +16722,17 @@ function formatFunctionForData(connections, compositionData, reverse) {
|
|
|
16687
16722
|
try {
|
|
16688
16723
|
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";
|
|
16689
16724
|
let value = ofTheConcept.characterValue;
|
|
16725
|
+
let dataCharacter = linkerConcept.characterValue;
|
|
16726
|
+
if (dataCharacter == "") {
|
|
16727
|
+
dataCharacter = mytype;
|
|
16728
|
+
dataCharacter = (0,_Common_RegexFunction__WEBPACK_IMPORTED_MODULE_1__.removeThePrefix)(dataCharacter);
|
|
16729
|
+
}
|
|
16690
16730
|
let data = {
|
|
16691
16731
|
[mytype]: value
|
|
16692
16732
|
};
|
|
16693
|
-
let reverseCharater =
|
|
16733
|
+
let reverseCharater = dataCharacter + "_reverse";
|
|
16694
16734
|
if (linkerConcept.characterValue.includes("_s_")) {
|
|
16695
|
-
//
|
|
16696
|
-
// newData[key][reverseCharater].push(data);
|
|
16735
|
+
// do nothing
|
|
16697
16736
|
}
|
|
16698
16737
|
else {
|
|
16699
16738
|
if (typeof newData[key] == "string") {
|
|
@@ -16726,18 +16765,22 @@ function formatFunctionForData(connections, compositionData, reverse) {
|
|
|
16726
16765
|
try {
|
|
16727
16766
|
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";
|
|
16728
16767
|
let value = toTheConcept.characterValue;
|
|
16768
|
+
let dataCharacter = linkerConcept.characterValue;
|
|
16769
|
+
if (dataCharacter == "") {
|
|
16770
|
+
dataCharacter = mytype;
|
|
16771
|
+
dataCharacter = (0,_Common_RegexFunction__WEBPACK_IMPORTED_MODULE_1__.removeThePrefix)(dataCharacter);
|
|
16772
|
+
}
|
|
16729
16773
|
let data = {
|
|
16730
16774
|
[mytype]: value
|
|
16731
16775
|
};
|
|
16732
16776
|
if (linkerConcept.characterValue.includes("_s_")) {
|
|
16733
|
-
//
|
|
16734
|
-
// newData[key][linkerConcept.characterValue].push(data);
|
|
16777
|
+
// do nothing
|
|
16735
16778
|
}
|
|
16736
16779
|
else {
|
|
16737
16780
|
if (typeof newData[key] == "string") {
|
|
16738
16781
|
newData[key] = {};
|
|
16739
16782
|
}
|
|
16740
|
-
newData[key][
|
|
16783
|
+
newData[key][dataCharacter] = data;
|
|
16741
16784
|
}
|
|
16742
16785
|
}
|
|
16743
16786
|
catch (ex) {
|
|
@@ -16885,13 +16928,19 @@ function FormatFunctionDataForData(connections_1, compositionData_1) {
|
|
|
16885
16928
|
try {
|
|
16886
16929
|
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";
|
|
16887
16930
|
let value = ofTheConcept.characterValue;
|
|
16931
|
+
let dataCharacter = linkerConcept.characterValue;
|
|
16932
|
+
// if there is not connection type defined then put the type of the destination concept.
|
|
16933
|
+
if (dataCharacter == "") {
|
|
16934
|
+
dataCharacter = mytype;
|
|
16935
|
+
dataCharacter = (0,_Common_RegexFunction__WEBPACK_IMPORTED_MODULE_1__.removeThePrefix)(dataCharacter);
|
|
16936
|
+
}
|
|
16888
16937
|
let data = {
|
|
16889
16938
|
"id": ofTheConcept.id,
|
|
16890
16939
|
"data": {
|
|
16891
16940
|
[mytype]: value
|
|
16892
16941
|
}
|
|
16893
16942
|
};
|
|
16894
|
-
let reverseCharater =
|
|
16943
|
+
let reverseCharater = dataCharacter + "_reverse";
|
|
16895
16944
|
if (reverseCharater.includes("_s_")) {
|
|
16896
16945
|
// do nothing
|
|
16897
16946
|
}
|
|
@@ -16926,20 +16975,26 @@ function FormatFunctionDataForData(connections_1, compositionData_1) {
|
|
|
16926
16975
|
try {
|
|
16927
16976
|
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";
|
|
16928
16977
|
let value = toTheConcept.characterValue;
|
|
16978
|
+
let dataCharacter = linkerConcept.characterValue;
|
|
16979
|
+
// if there is not connection type defined then put the type of the destination concept.
|
|
16980
|
+
if (dataCharacter == "") {
|
|
16981
|
+
dataCharacter = mytype;
|
|
16982
|
+
dataCharacter = (0,_Common_RegexFunction__WEBPACK_IMPORTED_MODULE_1__.removeThePrefix)(dataCharacter);
|
|
16983
|
+
}
|
|
16929
16984
|
let data = {
|
|
16930
16985
|
"id": toTheConcept.id,
|
|
16931
16986
|
"data": {
|
|
16932
16987
|
[mytype]: value
|
|
16933
16988
|
}
|
|
16934
16989
|
};
|
|
16935
|
-
if (
|
|
16990
|
+
if (dataCharacter.includes("_s_")) {
|
|
16936
16991
|
// do nothing
|
|
16937
16992
|
}
|
|
16938
16993
|
else {
|
|
16939
16994
|
if (typeof newData[key] == "string") {
|
|
16940
16995
|
newData[key] = {};
|
|
16941
16996
|
}
|
|
16942
|
-
newData[key][
|
|
16997
|
+
newData[key][dataCharacter] = data;
|
|
16943
16998
|
}
|
|
16944
16999
|
}
|
|
16945
17000
|
catch (ex) {
|
|
@@ -17648,6 +17703,7 @@ function formatConnectionsDataId(linkers, conceptIds, mainCompositionIds, revers
|
|
|
17648
17703
|
let newCompositionData = [];
|
|
17649
17704
|
compositionData = yield (0,_FormatData__WEBPACK_IMPORTED_MODULE_2__.FormatFunctionData)(prefetchConnections, compositionData, reverse);
|
|
17650
17705
|
compositionData = yield (0,_FormatData__WEBPACK_IMPORTED_MODULE_2__.FormatFunctionDataForData)(prefetchConnections, compositionData, reverse);
|
|
17706
|
+
console.log("this is the composition data", compositionData);
|
|
17651
17707
|
let output = yield (0,_FormatData__WEBPACK_IMPORTED_MODULE_2__.FormatFromConnectionsAlteredArrayExternal)(prefetchConnections, compositionData, newCompositionData, mainCompositionIds, reverse);
|
|
17652
17708
|
return output;
|
|
17653
17709
|
});
|