mftsccs-browser 2.1.5-beta → 2.1.6-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 +70 -82
- package/dist/main.bundle.js.map +1 -1
- package/dist/serviceWorker.bundle.js +73 -82
- package/dist/serviceWorker.bundle.js.map +1 -1
- package/dist/types/Services/Search/DataIdFormat.d.ts +3 -3
- package/dist/types/Services/Search/FormatData.d.ts +1 -1
- package/dist/types/Services/Search/JustIdFormat.d.ts +2 -2
- package/dist/types/Services/Search/orderingConnections.d.ts +2 -0
- package/package.json +1 -1
package/dist/main.bundle.js
CHANGED
|
@@ -4580,6 +4580,10 @@ class BinaryTypeTree {
|
|
|
4580
4580
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4581
4581
|
if (this.root == null) {
|
|
4582
4582
|
this.root = node;
|
|
4583
|
+
let event = new CustomEvent(`${node.key}`, { detail: node.value[0] });
|
|
4584
|
+
// console.log("this is the fired event", event);
|
|
4585
|
+
// dispatchEvent(event);
|
|
4586
|
+
(0,_app__WEBPACK_IMPORTED_MODULE_0__.dispatchIdEvent)(node.key, { detail: node.value[0] });
|
|
4583
4587
|
return this.root;
|
|
4584
4588
|
}
|
|
4585
4589
|
else {
|
|
@@ -5264,6 +5268,7 @@ class ConceptsData {
|
|
|
5264
5268
|
// }
|
|
5265
5269
|
//UpdateToDatabase("concept",concept);
|
|
5266
5270
|
//IndexDbUpdate.UpdateConceptIndexDb(concept);
|
|
5271
|
+
console.log("this is the adding type concept", concept);
|
|
5267
5272
|
_BinaryTree__WEBPACK_IMPORTED_MODULE_1__.BinaryTree.addConceptToTree(concept);
|
|
5268
5273
|
_BinaryTypeTree__WEBPACK_IMPORTED_MODULE_3__.BinaryTypeTree.addConceptToTree(concept);
|
|
5269
5274
|
//BinaryCharacterTree.addConceptToTree(concept);
|
|
@@ -18126,7 +18131,7 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume
|
|
|
18126
18131
|
* @returns
|
|
18127
18132
|
*/
|
|
18128
18133
|
function FormatFunctionDataForData(connections_1, compositionData_1) {
|
|
18129
|
-
return __awaiter(this, arguments, void 0, function* (connections, compositionData, reverse = []
|
|
18134
|
+
return __awaiter(this, arguments, void 0, function* (connections, compositionData, reverse = []) {
|
|
18130
18135
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
18131
18136
|
let myConcepts = [];
|
|
18132
18137
|
for (let i = 0; i < connections.length; i++) {
|
|
@@ -18134,16 +18139,6 @@ function FormatFunctionDataForData(connections_1, compositionData_1) {
|
|
|
18134
18139
|
myConcepts.push(connections[i].ofTheConceptId);
|
|
18135
18140
|
myConcepts.push(connections[i].typeId);
|
|
18136
18141
|
}
|
|
18137
|
-
if (order == "DESC") {
|
|
18138
|
-
connections.sort(function (x, y) {
|
|
18139
|
-
return x.id - y.id;
|
|
18140
|
-
});
|
|
18141
|
-
}
|
|
18142
|
-
else {
|
|
18143
|
-
connections.sort(function (x, y) {
|
|
18144
|
-
return y.id - x.id;
|
|
18145
|
-
});
|
|
18146
|
-
}
|
|
18147
18142
|
for (let i = 0; i < connections.length; i++) {
|
|
18148
18143
|
let reverseFlag = false;
|
|
18149
18144
|
let ofTheConcept = yield (0,_app__WEBPACK_IMPORTED_MODULE_0__.GetTheConcept)(connections[i].ofTheConceptId);
|
|
@@ -18266,7 +18261,7 @@ function FormatFunctionDataForData(connections_1, compositionData_1) {
|
|
|
18266
18261
|
* @returns
|
|
18267
18262
|
*/
|
|
18268
18263
|
function FormatFromConnectionsAlteredArrayExternal(connections_1, compositionData_1, newCompositionData_1, mainComposition_1) {
|
|
18269
|
-
return __awaiter(this, arguments, void 0, function* (connections, compositionData, newCompositionData, mainComposition, reverse = [], CountDictionary
|
|
18264
|
+
return __awaiter(this, arguments, void 0, function* (connections, compositionData, newCompositionData, mainComposition, reverse = [], CountDictionary) {
|
|
18270
18265
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
18271
18266
|
let startTime = new Date().getTime();
|
|
18272
18267
|
let mainData = [];
|
|
@@ -18276,16 +18271,6 @@ function FormatFromConnectionsAlteredArrayExternal(connections_1, compositionDat
|
|
|
18276
18271
|
myConcepts.push(connections[i].ofTheConceptId);
|
|
18277
18272
|
myConcepts.push(connections[i].typeId);
|
|
18278
18273
|
}
|
|
18279
|
-
if (order == "DESC") {
|
|
18280
|
-
connections.sort(function (x, y) {
|
|
18281
|
-
return x.id - y.id;
|
|
18282
|
-
});
|
|
18283
|
-
}
|
|
18284
|
-
else {
|
|
18285
|
-
connections.sort(function (x, y) {
|
|
18286
|
-
return y.id - x.id;
|
|
18287
|
-
});
|
|
18288
|
-
}
|
|
18289
18274
|
for (let i = 0; i < connections.length; i++) {
|
|
18290
18275
|
let reverseFlag = false;
|
|
18291
18276
|
let ofTheConcept = yield (0,_app__WEBPACK_IMPORTED_MODULE_0__.GetTheConcept)(connections[i].ofTheConceptId);
|
|
@@ -18434,7 +18419,7 @@ function FormatFromConnectionsAlteredArrayExternal(connections_1, compositionDat
|
|
|
18434
18419
|
* @returns
|
|
18435
18420
|
*/
|
|
18436
18421
|
function FormatFunctionData(connections_1, compositionData_1) {
|
|
18437
|
-
return __awaiter(this, arguments, void 0, function* (connections, compositionData, reverse = []
|
|
18422
|
+
return __awaiter(this, arguments, void 0, function* (connections, compositionData, reverse = []) {
|
|
18438
18423
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
18439
18424
|
let myConcepts = [];
|
|
18440
18425
|
for (let i = 0; i < connections.length; i++) {
|
|
@@ -18442,16 +18427,6 @@ function FormatFunctionData(connections_1, compositionData_1) {
|
|
|
18442
18427
|
myConcepts.push(connections[i].ofTheConceptId);
|
|
18443
18428
|
myConcepts.push(connections[i].typeId);
|
|
18444
18429
|
}
|
|
18445
|
-
if (order == "DESC") {
|
|
18446
|
-
connections.sort(function (x, y) {
|
|
18447
|
-
return x.id - y.id;
|
|
18448
|
-
});
|
|
18449
|
-
}
|
|
18450
|
-
else {
|
|
18451
|
-
connections.sort(function (x, y) {
|
|
18452
|
-
return y.id - x.id;
|
|
18453
|
-
});
|
|
18454
|
-
}
|
|
18455
18430
|
for (let i = 0; i < connections.length; i++) {
|
|
18456
18431
|
let reverseFlag = false;
|
|
18457
18432
|
let ofTheConcept = yield (0,_app__WEBPACK_IMPORTED_MODULE_0__.GetTheConcept)(connections[i].ofTheConceptId);
|
|
@@ -18708,8 +18683,8 @@ function FormatConceptsAndConnectionsNormalList(connections_1, compositionData_1
|
|
|
18708
18683
|
* This function takes in the connections and then converts the connections to the single level objects for further processing
|
|
18709
18684
|
* This function is the builder of the arrays/ objects from the connections.
|
|
18710
18685
|
*/
|
|
18711
|
-
function formatFunction(
|
|
18712
|
-
return __awaiter(this,
|
|
18686
|
+
function formatFunction(connections, compositionData, reverse) {
|
|
18687
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
18713
18688
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
18714
18689
|
let myConcepts = [];
|
|
18715
18690
|
for (let i = 0; i < connections.length; i++) {
|
|
@@ -18717,16 +18692,6 @@ function formatFunction(connections_1, compositionData_1, reverse_1) {
|
|
|
18717
18692
|
myConcepts.push(connections[i].ofTheConceptId);
|
|
18718
18693
|
myConcepts.push(connections[i].typeId);
|
|
18719
18694
|
}
|
|
18720
|
-
if (order == "DESC") {
|
|
18721
|
-
connections.sort(function (x, y) {
|
|
18722
|
-
return x.id - y.id;
|
|
18723
|
-
});
|
|
18724
|
-
}
|
|
18725
|
-
else {
|
|
18726
|
-
connections.sort(function (x, y) {
|
|
18727
|
-
return y.id - x.id;
|
|
18728
|
-
});
|
|
18729
|
-
}
|
|
18730
18695
|
for (let i = 0; i < connections.length; i++) {
|
|
18731
18696
|
let reverseFlag = false;
|
|
18732
18697
|
if (reverse.includes(connections[i].id)) {
|
|
@@ -19055,7 +19020,7 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume
|
|
|
19055
19020
|
* @returns
|
|
19056
19021
|
*/
|
|
19057
19022
|
function FormatFunctionDataForDataJustId(connections_1, compositionData_1) {
|
|
19058
|
-
return __awaiter(this, arguments, void 0, function* (connections, compositionData, reverse = []
|
|
19023
|
+
return __awaiter(this, arguments, void 0, function* (connections, compositionData, reverse = []) {
|
|
19059
19024
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
19060
19025
|
let myConcepts = [];
|
|
19061
19026
|
for (let i = 0; i < connections.length; i++) {
|
|
@@ -19063,16 +19028,6 @@ function FormatFunctionDataForDataJustId(connections_1, compositionData_1) {
|
|
|
19063
19028
|
myConcepts.push(connections[i].ofTheConceptId);
|
|
19064
19029
|
myConcepts.push(connections[i].typeId);
|
|
19065
19030
|
}
|
|
19066
|
-
if (order == "DESC") {
|
|
19067
|
-
connections.sort(function (x, y) {
|
|
19068
|
-
return x.id - y.id;
|
|
19069
|
-
});
|
|
19070
|
-
}
|
|
19071
|
-
else {
|
|
19072
|
-
connections.sort(function (x, y) {
|
|
19073
|
-
return y.id - x.id;
|
|
19074
|
-
});
|
|
19075
|
-
}
|
|
19076
19031
|
for (let i = 0; i < connections.length; i++) {
|
|
19077
19032
|
let reverseFlag = false;
|
|
19078
19033
|
let ofTheConcept = yield (0,_GetTheConcept__WEBPACK_IMPORTED_MODULE_1__["default"])(connections[i].ofTheConceptId);
|
|
@@ -19202,7 +19157,7 @@ function FormatFunctionDataForDataJustId(connections_1, compositionData_1) {
|
|
|
19202
19157
|
* @returns
|
|
19203
19158
|
*/
|
|
19204
19159
|
function FormatFromConnectionsAlteredArrayExternalJustId(connections_1, compositionData_1, mainComposition_1) {
|
|
19205
|
-
return __awaiter(this, arguments, void 0, function* (connections, compositionData, mainComposition, reverse = [], CountDictionary
|
|
19160
|
+
return __awaiter(this, arguments, void 0, function* (connections, compositionData, mainComposition, reverse = [], CountDictionary) {
|
|
19206
19161
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
19207
19162
|
let startTime = new Date().getTime();
|
|
19208
19163
|
let mainData = [];
|
|
@@ -19212,16 +19167,6 @@ function FormatFromConnectionsAlteredArrayExternalJustId(connections_1, composit
|
|
|
19212
19167
|
myConcepts.push(connections[i].ofTheConceptId);
|
|
19213
19168
|
myConcepts.push(connections[i].typeId);
|
|
19214
19169
|
}
|
|
19215
|
-
if (order == "DESC") {
|
|
19216
|
-
connections.sort(function (x, y) {
|
|
19217
|
-
return x.id - y.id;
|
|
19218
|
-
});
|
|
19219
|
-
}
|
|
19220
|
-
else {
|
|
19221
|
-
connections.sort(function (x, y) {
|
|
19222
|
-
return y.id - x.id;
|
|
19223
|
-
});
|
|
19224
|
-
}
|
|
19225
19170
|
for (let i = 0; i < connections.length; i++) {
|
|
19226
19171
|
let reverseFlag = false;
|
|
19227
19172
|
let ofTheConcept = yield (0,_GetTheConcept__WEBPACK_IMPORTED_MODULE_1__["default"])(connections[i].ofTheConceptId);
|
|
@@ -19957,6 +19902,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
19957
19902
|
/* harmony import */ var _JustIdFormat__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./JustIdFormat */ "./src/Services/Search/JustIdFormat.ts");
|
|
19958
19903
|
/* harmony import */ var _DataIdFormat__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./DataIdFormat */ "./src/Services/Search/DataIdFormat.ts");
|
|
19959
19904
|
/* harmony import */ var _Common_DecodeCountInfo__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../Common/DecodeCountInfo */ "./src/Services/Common/DecodeCountInfo.ts");
|
|
19905
|
+
/* harmony import */ var _orderingConnections__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./orderingConnections */ "./src/Services/Search/orderingConnections.ts");
|
|
19960
19906
|
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
19961
19907
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
19962
19908
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -19973,6 +19919,7 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume
|
|
|
19973
19919
|
|
|
19974
19920
|
|
|
19975
19921
|
|
|
19922
|
+
|
|
19976
19923
|
/**
|
|
19977
19924
|
* This function will help you search a concept by their type and also to query inside of it.
|
|
19978
19925
|
* Put the number of compositions you want to get in the searchStructure which can be set by inpage and page
|
|
@@ -20079,10 +20026,11 @@ function formatLinkersNormal(linkers, conceptIds, connections, mainCompositionId
|
|
|
20079
20026
|
function formatConnections(linkers, conceptIds, mainCompositionIds, reverse, countInfos) {
|
|
20080
20027
|
return __awaiter(this, void 0, void 0, function* () {
|
|
20081
20028
|
let prefetchConnections = yield (0,_GetCompositionBulk__WEBPACK_IMPORTED_MODULE_1__.GetConnectionDataPrefetch)(linkers);
|
|
20082
|
-
let CountDictionary =
|
|
20029
|
+
//let CountDictionary:any = await GetConnectionTypeForCount(countInfos);
|
|
20030
|
+
prefetchConnections = (0,_orderingConnections__WEBPACK_IMPORTED_MODULE_7__.orderTheConnections)(prefetchConnections);
|
|
20083
20031
|
let compositionData = [];
|
|
20084
20032
|
let newCompositionData = [];
|
|
20085
|
-
compositionData = yield (0,_FormatData__WEBPACK_IMPORTED_MODULE_2__.formatFunction)(prefetchConnections, compositionData, reverse
|
|
20033
|
+
compositionData = yield (0,_FormatData__WEBPACK_IMPORTED_MODULE_2__.formatFunction)(prefetchConnections, compositionData, reverse);
|
|
20086
20034
|
compositionData = yield (0,_FormatData__WEBPACK_IMPORTED_MODULE_2__.formatFunctionForData)(prefetchConnections, compositionData, reverse);
|
|
20087
20035
|
let output = yield (0,_FormatData__WEBPACK_IMPORTED_MODULE_2__.FormatConceptsAndConnectionsNormalList)(prefetchConnections, compositionData, mainCompositionIds, newCompositionData, reverse);
|
|
20088
20036
|
return output;
|
|
@@ -20102,11 +20050,12 @@ function formatConnectionsJustId(linkers_1, conceptIds_1, mainCompositionIds_1,
|
|
|
20102
20050
|
return __awaiter(this, arguments, void 0, function* (linkers, conceptIds, mainCompositionIds, reverse, countInfos, order = "DESC") {
|
|
20103
20051
|
let prefetchConnections = yield (0,_GetCompositionBulk__WEBPACK_IMPORTED_MODULE_1__.GetConnectionDataPrefetch)(linkers);
|
|
20104
20052
|
let CountDictionary = yield (0,_Common_DecodeCountInfo__WEBPACK_IMPORTED_MODULE_6__.GetConnectionTypeForCount)(countInfos);
|
|
20053
|
+
prefetchConnections = (0,_orderingConnections__WEBPACK_IMPORTED_MODULE_7__.orderTheConnections)(prefetchConnections);
|
|
20105
20054
|
let compositionData = [];
|
|
20106
20055
|
let newCompositionData = [];
|
|
20107
|
-
compositionData = yield (0,_FormatData__WEBPACK_IMPORTED_MODULE_2__.formatFunction)(prefetchConnections, compositionData, reverse
|
|
20108
|
-
compositionData = yield (0,_JustIdFormat__WEBPACK_IMPORTED_MODULE_4__.FormatFunctionDataForDataJustId)(prefetchConnections, compositionData, reverse
|
|
20109
|
-
let output = yield (0,_JustIdFormat__WEBPACK_IMPORTED_MODULE_4__.FormatFromConnectionsAlteredArrayExternalJustId)(prefetchConnections, compositionData, mainCompositionIds, reverse, CountDictionary
|
|
20056
|
+
compositionData = yield (0,_FormatData__WEBPACK_IMPORTED_MODULE_2__.formatFunction)(prefetchConnections, compositionData, reverse);
|
|
20057
|
+
compositionData = yield (0,_JustIdFormat__WEBPACK_IMPORTED_MODULE_4__.FormatFunctionDataForDataJustId)(prefetchConnections, compositionData, reverse);
|
|
20058
|
+
let output = yield (0,_JustIdFormat__WEBPACK_IMPORTED_MODULE_4__.FormatFromConnectionsAlteredArrayExternalJustId)(prefetchConnections, compositionData, mainCompositionIds, reverse, CountDictionary);
|
|
20110
20059
|
return output;
|
|
20111
20060
|
});
|
|
20112
20061
|
}
|
|
@@ -20124,16 +20073,44 @@ function formatConnectionsDataId(linkers_1, conceptIds_1, mainCompositionIds_1,
|
|
|
20124
20073
|
return __awaiter(this, arguments, void 0, function* (linkers, conceptIds, mainCompositionIds, reverse, countInfos, order = "DESC") {
|
|
20125
20074
|
let prefetchConnections = yield (0,_GetCompositionBulk__WEBPACK_IMPORTED_MODULE_1__.GetConnectionDataPrefetch)(linkers);
|
|
20126
20075
|
let CountDictionary = yield (0,_Common_DecodeCountInfo__WEBPACK_IMPORTED_MODULE_6__.GetConnectionTypeForCount)(countInfos);
|
|
20076
|
+
prefetchConnections = (0,_orderingConnections__WEBPACK_IMPORTED_MODULE_7__.orderTheConnections)(prefetchConnections);
|
|
20127
20077
|
let compositionData = [];
|
|
20128
20078
|
let newCompositionData = [];
|
|
20129
|
-
compositionData = yield (0,_DataIdFormat__WEBPACK_IMPORTED_MODULE_5__.FormatFunctionData)(prefetchConnections, compositionData, reverse
|
|
20130
|
-
compositionData = yield (0,_DataIdFormat__WEBPACK_IMPORTED_MODULE_5__.FormatFunctionDataForData)(prefetchConnections, compositionData, reverse
|
|
20131
|
-
let output = yield (0,_DataIdFormat__WEBPACK_IMPORTED_MODULE_5__.FormatFromConnectionsAlteredArrayExternal)(prefetchConnections, compositionData, newCompositionData, mainCompositionIds, reverse, CountDictionary
|
|
20079
|
+
compositionData = yield (0,_DataIdFormat__WEBPACK_IMPORTED_MODULE_5__.FormatFunctionData)(prefetchConnections, compositionData, reverse);
|
|
20080
|
+
compositionData = yield (0,_DataIdFormat__WEBPACK_IMPORTED_MODULE_5__.FormatFunctionDataForData)(prefetchConnections, compositionData, reverse);
|
|
20081
|
+
let output = yield (0,_DataIdFormat__WEBPACK_IMPORTED_MODULE_5__.FormatFromConnectionsAlteredArrayExternal)(prefetchConnections, compositionData, newCompositionData, mainCompositionIds, reverse, CountDictionary);
|
|
20132
20082
|
return output;
|
|
20133
20083
|
});
|
|
20134
20084
|
}
|
|
20135
20085
|
|
|
20136
20086
|
|
|
20087
|
+
/***/ }),
|
|
20088
|
+
|
|
20089
|
+
/***/ "./src/Services/Search/orderingConnections.ts":
|
|
20090
|
+
/*!****************************************************!*\
|
|
20091
|
+
!*** ./src/Services/Search/orderingConnections.ts ***!
|
|
20092
|
+
\****************************************************/
|
|
20093
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
20094
|
+
|
|
20095
|
+
__webpack_require__.r(__webpack_exports__);
|
|
20096
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
20097
|
+
/* harmony export */ orderTheConnections: () => (/* binding */ orderTheConnections)
|
|
20098
|
+
/* harmony export */ });
|
|
20099
|
+
function orderTheConnections(connections, order = "DESC") {
|
|
20100
|
+
if (order == "ASC") {
|
|
20101
|
+
connections.sort(function (x, y) {
|
|
20102
|
+
return x.id - y.id;
|
|
20103
|
+
});
|
|
20104
|
+
}
|
|
20105
|
+
else {
|
|
20106
|
+
connections.sort(function (x, y) {
|
|
20107
|
+
return y.id - x.id;
|
|
20108
|
+
});
|
|
20109
|
+
}
|
|
20110
|
+
return connections;
|
|
20111
|
+
}
|
|
20112
|
+
|
|
20113
|
+
|
|
20137
20114
|
/***/ }),
|
|
20138
20115
|
|
|
20139
20116
|
/***/ "./src/Services/Security/GetRequestHeader.ts":
|
|
@@ -21157,6 +21134,7 @@ class BaseObserver {
|
|
|
21157
21134
|
* This is called by any data change. So that any data change will notify all the callback functions to execute.
|
|
21158
21135
|
*/
|
|
21159
21136
|
notify() {
|
|
21137
|
+
console.log("this is the subscribers", this.subscribers);
|
|
21160
21138
|
this.subscribers.map((subscriber) => {
|
|
21161
21139
|
subscriber(this.data);
|
|
21162
21140
|
});
|
|
@@ -22002,6 +21980,7 @@ class StatefulWidget extends _BaseWidget__WEBPACK_IMPORTED_MODULE_0__.BaseWidget
|
|
|
22002
21980
|
}
|
|
22003
21981
|
//console.log("added-widget-container",this.childWidgetElement);
|
|
22004
21982
|
// addEvents is called after the element has been mounted.
|
|
21983
|
+
console.log("this is the rendering", this);
|
|
22005
21984
|
this.after_render();
|
|
22006
21985
|
// then after the child widgets are again loaded.
|
|
22007
21986
|
if (this.widgetMounted) {
|
|
@@ -22069,6 +22048,7 @@ class StatefulWidget extends _BaseWidget__WEBPACK_IMPORTED_MODULE_0__.BaseWidget
|
|
|
22069
22048
|
* for the widget and its html element. User can add any logic here.
|
|
22070
22049
|
*/
|
|
22071
22050
|
after_render() {
|
|
22051
|
+
console.log("this is calling the after render", this);
|
|
22072
22052
|
}
|
|
22073
22053
|
/**
|
|
22074
22054
|
* render child widgets
|
|
@@ -22200,13 +22180,16 @@ class DependencyObserver {
|
|
|
22200
22180
|
* @param id this is the type id which needs to be tracked
|
|
22201
22181
|
*/
|
|
22202
22182
|
listenToEventType(id) {
|
|
22183
|
+
console.log("this is the type listen before", id);
|
|
22203
22184
|
window.addEventListener(`${id}`, (event) => {
|
|
22185
|
+
console.log("this is the window event", id, event);
|
|
22204
22186
|
if (!this.isUpdating) {
|
|
22205
22187
|
this.isUpdating = true;
|
|
22206
22188
|
let that = this;
|
|
22207
22189
|
setTimeout(function () {
|
|
22208
22190
|
return __awaiter(this, void 0, void 0, function* () {
|
|
22209
22191
|
let myEvent = event;
|
|
22192
|
+
console.log("this is the event", myEvent);
|
|
22210
22193
|
if (!that.compositionIds.includes(myEvent === null || myEvent === void 0 ? void 0 : myEvent.detail)) {
|
|
22211
22194
|
that.compositionIds.unshift(myEvent === null || myEvent === void 0 ? void 0 : myEvent.detail);
|
|
22212
22195
|
that.listenToEvent(myEvent === null || myEvent === void 0 ? void 0 : myEvent.detail);
|
|
@@ -22426,13 +22409,14 @@ class GetCompositionListObservable extends _DepenedencyObserver__WEBPACK_IMPORTE
|
|
|
22426
22409
|
this.listenToEvent(this.compositionIds[i]);
|
|
22427
22410
|
}
|
|
22428
22411
|
}
|
|
22429
|
-
|
|
22412
|
+
let mydata = yield this.build();
|
|
22413
|
+
return mydata;
|
|
22430
22414
|
});
|
|
22431
22415
|
}
|
|
22432
22416
|
build() {
|
|
22433
22417
|
return __awaiter(this, void 0, void 0, function* () {
|
|
22434
22418
|
this.data = [];
|
|
22435
|
-
console.log("this is building the data list");
|
|
22419
|
+
console.log("this is building the data list", this.startPage, this.inpage);
|
|
22436
22420
|
if (this.format == _app__WEBPACK_IMPORTED_MODULE_1__.JUSTDATA) {
|
|
22437
22421
|
for (let i = this.startPage; i < this.startPage + this.inpage; i++) {
|
|
22438
22422
|
if (this.compositionIds[i]) {
|
|
@@ -22473,8 +22457,7 @@ class GetCompositionListObservable extends _DepenedencyObserver__WEBPACK_IMPORTE
|
|
|
22473
22457
|
* This function will give you the list of the concepts by composition name with a listener to any data change.
|
|
22474
22458
|
*/
|
|
22475
22459
|
function GetCompositionListListener(compositionName, userId, inpage, page, format = _app__WEBPACK_IMPORTED_MODULE_1__.JUSTDATA) {
|
|
22476
|
-
|
|
22477
|
-
const compositionResult = new GetCompositionListObservable(compositionName, userId, inpage, page, format);
|
|
22460
|
+
return new GetCompositionListObservable(compositionName, userId, inpage, page, format);
|
|
22478
22461
|
// Add Log
|
|
22479
22462
|
// Logger.logInfo(
|
|
22480
22463
|
// startTime,
|
|
@@ -22489,7 +22472,6 @@ function GetCompositionListListener(compositionName, userId, inpage, page, forma
|
|
|
22489
22472
|
// "UnknownUserAgent",
|
|
22490
22473
|
// []
|
|
22491
22474
|
// );
|
|
22492
|
-
return compositionResult;
|
|
22493
22475
|
}
|
|
22494
22476
|
|
|
22495
22477
|
|
|
@@ -23790,7 +23772,7 @@ function init() {
|
|
|
23790
23772
|
console.log("new worker", newWorker);
|
|
23791
23773
|
if (newWorker) {
|
|
23792
23774
|
newWorker.onstatechange = () => __awaiter(this, void 0, void 0, function* () {
|
|
23793
|
-
console.warn("on state change triggered",
|
|
23775
|
+
console.warn("on state change triggered", newWorker.state, navigator.serviceWorker.controller);
|
|
23794
23776
|
if (newWorker.state === "installing") {
|
|
23795
23777
|
console.log("Service Worker installing");
|
|
23796
23778
|
serviceWorker = undefined;
|
|
@@ -23804,6 +23786,10 @@ function init() {
|
|
|
23804
23786
|
console.log("This is a flag after sw init : ", flags);
|
|
23805
23787
|
// serviceWorker = registration.active;
|
|
23806
23788
|
// Send init message now that it's active
|
|
23789
|
+
setTimeout(() => {
|
|
23790
|
+
console.log('Message Processed after some time');
|
|
23791
|
+
processMessageQueue();
|
|
23792
|
+
}, 5000);
|
|
23807
23793
|
yield sendMessage("init", {
|
|
23808
23794
|
url,
|
|
23809
23795
|
aiurl,
|
|
@@ -23929,6 +23915,8 @@ function sendMessage(type, payload) {
|
|
|
23929
23915
|
return new Promise((resolve, reject) => {
|
|
23930
23916
|
// navigator.serviceWorker.ready
|
|
23931
23917
|
// .then((registration) => {
|
|
23918
|
+
if (!((navigator.serviceWorker.controller || serviceWorker) && (serviceWorkerReady || type == 'init')))
|
|
23919
|
+
console.log('will go to queue', navigator.serviceWorker.controller, serviceWorker, serviceWorkerReady, type == 'init');
|
|
23932
23920
|
if ((navigator.serviceWorker.controller || serviceWorker) && (serviceWorkerReady || type == 'init')) {
|
|
23933
23921
|
const responseHandler = (event) => {
|
|
23934
23922
|
var _a, _b, _c, _d, _e, _f;
|
|
@@ -24224,7 +24212,7 @@ function initConceptConnection() {
|
|
|
24224
24212
|
*/
|
|
24225
24213
|
function dispatchIdEvent(id, data = {}) {
|
|
24226
24214
|
// console.log('id event dispatched', id)
|
|
24227
|
-
if (serviceWorker) {
|
|
24215
|
+
if (serviceWorker || typeof window != undefined) {
|
|
24228
24216
|
// let event = new Event(`${id}`);
|
|
24229
24217
|
let event = new CustomEvent(`${id}`, data);
|
|
24230
24218
|
dispatchEvent(event);
|