mftsccs-browser 1.1.44-beta → 1.1.46-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
CHANGED
|
@@ -14312,9 +14312,10 @@ function CreateLocalBinaryTreeFromIndexDb() {
|
|
|
14312
14312
|
*/
|
|
14313
14313
|
function PopulateTheLocalConceptsToMemory() {
|
|
14314
14314
|
return __awaiter(this, void 0, void 0, function* () {
|
|
14315
|
+
var _a;
|
|
14315
14316
|
try {
|
|
14316
14317
|
// put a lock on the indexdb for the domain so that no two things do this same process.
|
|
14317
|
-
yield navigator.locks.request("dblock", (lock) => __awaiter(this, void 0, void 0, function* () {
|
|
14318
|
+
yield ((_a = navigator.locks) === null || _a === void 0 ? void 0 : _a.request("dblock", (lock) => __awaiter(this, void 0, void 0, function* () {
|
|
14318
14319
|
// get the last local concept id(-ve) from the indexdb
|
|
14319
14320
|
let idList = yield (0,_Database_indexdblocal__WEBPACK_IMPORTED_MODULE_3__.getObjectsFromLocalIndexDb)("localid");
|
|
14320
14321
|
// if the list is valid then.
|
|
@@ -14344,7 +14345,7 @@ function PopulateTheLocalConceptsToMemory() {
|
|
|
14344
14345
|
_app__WEBPACK_IMPORTED_MODULE_4__.BaseUrl.setRandomizer(idList[2].value);
|
|
14345
14346
|
}
|
|
14346
14347
|
}
|
|
14347
|
-
}));
|
|
14348
|
+
})));
|
|
14348
14349
|
}
|
|
14349
14350
|
catch (error) {
|
|
14350
14351
|
let errorObject = {
|
|
@@ -14371,9 +14372,10 @@ function PopulateTheLocalConceptsToMemory() {
|
|
|
14371
14372
|
*/
|
|
14372
14373
|
function PopulateTheLocalConnectionToMemory() {
|
|
14373
14374
|
return __awaiter(this, void 0, void 0, function* () {
|
|
14375
|
+
var _a;
|
|
14374
14376
|
try {
|
|
14375
14377
|
// put a lock on the indexdb for the domain so that no two things do this same process.
|
|
14376
|
-
yield navigator.locks.request("dblock", (lock) => __awaiter(this, void 0, void 0, function* () {
|
|
14378
|
+
yield ((_a = navigator.locks) === null || _a === void 0 ? void 0 : _a.request("dblock", (lock) => __awaiter(this, void 0, void 0, function* () {
|
|
14377
14379
|
let idList = yield (0,_Database_indexdblocal__WEBPACK_IMPORTED_MODULE_3__.getObjectsFromLocalIndexDb)("localid");
|
|
14378
14380
|
if (Array.isArray(idList)) {
|
|
14379
14381
|
if (idList[1]) {
|
|
@@ -14396,7 +14398,7 @@ function PopulateTheLocalConnectionToMemory() {
|
|
|
14396
14398
|
_app__WEBPACK_IMPORTED_MODULE_4__.BaseUrl.setRandomizer(idList[2].value);
|
|
14397
14399
|
}
|
|
14398
14400
|
}
|
|
14399
|
-
}));
|
|
14401
|
+
})));
|
|
14400
14402
|
}
|
|
14401
14403
|
catch (error) {
|
|
14402
14404
|
let errorObject = {
|
|
@@ -16794,7 +16796,7 @@ function SearchLinkMultipleAll(searchQuery_1) {
|
|
|
16794
16796
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
16795
16797
|
if (_app__WEBPACK_IMPORTED_MODULE_2__.serviceWorker) {
|
|
16796
16798
|
const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_2__.sendMessage)('SearchLinkMultipleAll', { searchQuery, token, caller, format });
|
|
16797
|
-
console.log('data received search from sw', res)
|
|
16799
|
+
// console.log('data received search from sw', res)
|
|
16798
16800
|
return res.data;
|
|
16799
16801
|
}
|
|
16800
16802
|
let conceptIds = [];
|
|
@@ -18072,10 +18074,11 @@ class Validator {
|
|
|
18072
18074
|
const sessionUserId = 999;
|
|
18073
18075
|
const userId = 999;
|
|
18074
18076
|
// Create the type concept based on session data
|
|
18075
|
-
let type_concept = yield (0,_app__WEBPACK_IMPORTED_MODULE_0__.
|
|
18077
|
+
let type_concept = yield (0,_app__WEBPACK_IMPORTED_MODULE_0__.MakeTheTypeConceptApi)(type, userId);
|
|
18076
18078
|
let type_concept_id = type_concept.id;
|
|
18077
18079
|
// Check if the concept exists for the provided value and type_concept_id
|
|
18078
18080
|
let concept = yield (0,_app__WEBPACK_IMPORTED_MODULE_0__.GetConceptByCharacterAndType)(value, type_concept_id);
|
|
18081
|
+
console.log("This is the concept for validator", concept);
|
|
18079
18082
|
if (concept.id > 0) {
|
|
18080
18083
|
return false;
|
|
18081
18084
|
}
|
|
@@ -18332,7 +18335,7 @@ function TypeEditor(event, that) {
|
|
|
18332
18335
|
//console.log("inputValue", inputValue);
|
|
18333
18336
|
//that.setProperty(inputValue);
|
|
18334
18337
|
newThat.componentDidMount();
|
|
18335
|
-
newThat.
|
|
18338
|
+
newThat.loadChildWidgets();
|
|
18336
18339
|
(_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);
|
|
18337
18340
|
};
|
|
18338
18341
|
inputVal === null || inputVal === void 0 ? void 0 : inputVal.appendChild(inputEl);
|
|
@@ -18497,7 +18500,7 @@ class BuilderStatefulWidget extends _StatefulWidget__WEBPACK_IMPORTED_MODULE_0__
|
|
|
18497
18500
|
});
|
|
18498
18501
|
//console.log("result =>", result);
|
|
18499
18502
|
this.typeValueList = result;
|
|
18500
|
-
resolve(
|
|
18503
|
+
resolve(result);
|
|
18501
18504
|
return result;
|
|
18502
18505
|
}
|
|
18503
18506
|
});
|