mftsccs-browser 1.1.26-beta → 1.1.27-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 +86 -78
- package/dist/main.bundle.js.map +1 -1
- package/dist/serviceWorker.bundle.js +86 -78
- package/dist/serviceWorker.bundle.js.map +1 -1
- package/dist/types/Widgets/BuilderStatefulWidget.d.ts +1 -0
- package/dist/types/Widgets/StatefulWidget.d.ts +4 -1
- package/package.json +1 -1
package/dist/main.bundle.js
CHANGED
|
@@ -1427,14 +1427,12 @@ function GetConceptBulk(passedConcepts) {
|
|
|
1427
1427
|
});
|
|
1428
1428
|
if (response.ok) {
|
|
1429
1429
|
result = yield response.json();
|
|
1430
|
-
console.log("got all the concepts", result);
|
|
1431
1430
|
if (result.length > 0) {
|
|
1432
1431
|
for (let i = 0; i < result.length; i++) {
|
|
1433
1432
|
let concept = result[i];
|
|
1434
1433
|
_DataStructures_ConceptData__WEBPACK_IMPORTED_MODULE_0__.ConceptsData.AddConcept(concept);
|
|
1435
1434
|
}
|
|
1436
1435
|
}
|
|
1437
|
-
console.log("added the concepts");
|
|
1438
1436
|
}
|
|
1439
1437
|
else {
|
|
1440
1438
|
console.log("Get Concept Bulk error", response.status);
|
|
@@ -7745,11 +7743,11 @@ class LocalSyncData {
|
|
|
7745
7743
|
this.connectionSyncArray = this.connectionSyncArray.filter(connection => !actions.connections.some(conn => connection.id == conn.id || connection.ghostId == conn.ghostId));
|
|
7746
7744
|
}
|
|
7747
7745
|
else {
|
|
7748
|
-
console.
|
|
7746
|
+
console.warn('Syncing this way has been Depreceted in service worker.');
|
|
7749
7747
|
console.info('Only if serive worker is not running');
|
|
7750
7748
|
conceptsArray = this.conceptsSyncArray.slice();
|
|
7751
7749
|
connectionsArray = this.connectionSyncArray.slice();
|
|
7752
|
-
return []
|
|
7750
|
+
// return []
|
|
7753
7751
|
}
|
|
7754
7752
|
this.connectionSyncArray = [];
|
|
7755
7753
|
this.conceptsSyncArray = [];
|
|
@@ -16088,7 +16086,6 @@ function FormatFromConnectionsAlteredArrayExternal(connections_1, compositionDat
|
|
|
16088
16086
|
}
|
|
16089
16087
|
}
|
|
16090
16088
|
}
|
|
16091
|
-
console.log("these are the main datas", compositionData);
|
|
16092
16089
|
for (let i = 0; i < mainComposition.length; i++) {
|
|
16093
16090
|
let mymainData = {};
|
|
16094
16091
|
mymainData["id"] = mainComposition[i];
|
|
@@ -17169,9 +17166,7 @@ function formatConnections(linkers, conceptIds, mainCompositionIds, reverse) {
|
|
|
17169
17166
|
let compositionData = [];
|
|
17170
17167
|
let newCompositionData = [];
|
|
17171
17168
|
compositionData = yield (0,_FormatData__WEBPACK_IMPORTED_MODULE_2__.formatFunction)(prefetchConnections, compositionData, reverse);
|
|
17172
|
-
console.log("this is the format normal builders BEFORE", compositionData);
|
|
17173
17169
|
compositionData = yield (0,_FormatData__WEBPACK_IMPORTED_MODULE_2__.formatFunctionForData)(prefetchConnections, compositionData, reverse);
|
|
17174
|
-
console.log("this is the format normal builders", compositionData);
|
|
17175
17170
|
let output = yield (0,_FormatData__WEBPACK_IMPORTED_MODULE_2__.FormatConceptsAndConnectionsNormalList)(prefetchConnections, compositionData, mainCompositionIds, newCompositionData, reverse);
|
|
17176
17171
|
return output;
|
|
17177
17172
|
});
|
|
@@ -17192,9 +17187,7 @@ function formatConnectionsDataId(linkers, conceptIds, mainCompositionIds, revers
|
|
|
17192
17187
|
let compositionData = [];
|
|
17193
17188
|
let newCompositionData = [];
|
|
17194
17189
|
compositionData = yield (0,_FormatData__WEBPACK_IMPORTED_MODULE_2__.FormatFunctionData)(prefetchConnections, compositionData, reverse);
|
|
17195
|
-
console.log("this is the format data builders BEFORE", compositionData);
|
|
17196
17190
|
compositionData = yield (0,_FormatData__WEBPACK_IMPORTED_MODULE_2__.FormatFunctionDataForData)(prefetchConnections, compositionData, reverse);
|
|
17197
|
-
console.log("this is the format data builders", compositionData);
|
|
17198
17191
|
let output = yield (0,_FormatData__WEBPACK_IMPORTED_MODULE_2__.FormatFromConnectionsAlteredArrayExternal)(prefetchConnections, compositionData, newCompositionData, mainCompositionIds, reverse);
|
|
17199
17192
|
return output;
|
|
17200
17193
|
});
|
|
@@ -18117,7 +18110,7 @@ class BuilderStatefulWidget extends _StatefulWidget__WEBPACK_IMPORTED_MODULE_0__
|
|
|
18117
18110
|
}
|
|
18118
18111
|
getWidgetCodeFromId(widgetId, token) {
|
|
18119
18112
|
return __awaiter(this, void 0, void 0, function* () {
|
|
18120
|
-
console.log("getWidgetCodeFromId", widgetId, token);
|
|
18113
|
+
//console.log("getWidgetCodeFromId", widgetId, token);
|
|
18121
18114
|
return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
|
|
18122
18115
|
try {
|
|
18123
18116
|
let searchFirst = new _app__WEBPACK_IMPORTED_MODULE_1__.SearchQuery();
|
|
@@ -18149,7 +18142,7 @@ class BuilderStatefulWidget extends _StatefulWidget__WEBPACK_IMPORTED_MODULE_0__
|
|
|
18149
18142
|
searchSecond.inpage = 100;
|
|
18150
18143
|
const queryParams = [searchFirst, searchSecond];
|
|
18151
18144
|
const output = yield (0,_app__WEBPACK_IMPORTED_MODULE_1__.SearchLinkMultipleAll)(queryParams, token);
|
|
18152
|
-
console.log("getWidgetCodeFromId output ->", output);
|
|
18145
|
+
//console.log("getWidgetCodeFromId output ->", output);
|
|
18153
18146
|
resolve(output);
|
|
18154
18147
|
return output;
|
|
18155
18148
|
}
|
|
@@ -18169,10 +18162,10 @@ class BuilderStatefulWidget extends _StatefulWidget__WEBPACK_IMPORTED_MODULE_0__
|
|
|
18169
18162
|
let dataFromLocalStorage = (localStorage === null || localStorage === void 0 ? void 0 : localStorage.getItem("profile")) || "";
|
|
18170
18163
|
if (dataFromLocalStorage) {
|
|
18171
18164
|
const profileData = JSON.parse(dataFromLocalStorage);
|
|
18172
|
-
|
|
18165
|
+
resolve(profileData);
|
|
18173
18166
|
}
|
|
18174
18167
|
else {
|
|
18175
|
-
|
|
18168
|
+
resolve();
|
|
18176
18169
|
}
|
|
18177
18170
|
});
|
|
18178
18171
|
const userId = profileData === null || profileData === void 0 ? void 0 : profileData.userId;
|
|
@@ -18261,19 +18254,20 @@ class BuilderStatefulWidget extends _StatefulWidget__WEBPACK_IMPORTED_MODULE_0__
|
|
|
18261
18254
|
freeschemaQuery.outputFormat = _app__WEBPACK_IMPORTED_MODULE_1__.DATAID;
|
|
18262
18255
|
(0,_app__WEBPACK_IMPORTED_MODULE_1__.SchemaQueryListener)(freeschemaQuery, "")
|
|
18263
18256
|
.subscribe((output) => {
|
|
18264
|
-
console.log("
|
|
18257
|
+
console.log("thgis is the output", output);
|
|
18258
|
+
console.log("this is the typeValuekey", typevalueKey, typeName, mainComposition);
|
|
18265
18259
|
if (output === null || output === void 0 ? void 0 : output.length) {
|
|
18266
18260
|
const result = output === null || output === void 0 ? void 0 : output.map((item) => {
|
|
18267
|
-
var _a, _b, _c, _d, _e;
|
|
18268
|
-
const itemName = (_c = (_b = (_a = item[mainComposition]) === null ||
|
|
18269
|
-
const itemId = (
|
|
18261
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
18262
|
+
const itemName = (_d = (_c = (_b = (_a = item.data) === null || _a === void 0 ? void 0 : _a[mainComposition]) === null || _b === void 0 ? void 0 : _b[typeName]) === null || _c === void 0 ? void 0 : _c.data) === null || _d === void 0 ? void 0 : _d[typevalueKey];
|
|
18263
|
+
const itemId = (_g = (_f = (_e = item.data) === null || _e === void 0 ? void 0 : _e[mainComposition]) === null || _f === void 0 ? void 0 : _f[typeName]) === null || _g === void 0 ? void 0 : _g.id;
|
|
18270
18264
|
return {
|
|
18271
18265
|
id: itemId,
|
|
18272
18266
|
name: itemName,
|
|
18273
18267
|
text: itemName,
|
|
18274
18268
|
};
|
|
18275
18269
|
});
|
|
18276
|
-
console.log("result =>", result);
|
|
18270
|
+
//console.log("result =>", result);
|
|
18277
18271
|
this.typeValueList = result;
|
|
18278
18272
|
resolve(this.typeValueList);
|
|
18279
18273
|
return result;
|
|
@@ -18306,8 +18300,6 @@ class BuilderStatefulWidget extends _StatefulWidget__WEBPACK_IMPORTED_MODULE_0__
|
|
|
18306
18300
|
this.widgetType = widgetTypeName;
|
|
18307
18301
|
this.getTypeValueList(this.widgetType).then(() => {
|
|
18308
18302
|
var _a, _b, _c;
|
|
18309
|
-
console.log("this =->", this);
|
|
18310
|
-
console.log("this.element", this.element);
|
|
18311
18303
|
(_a = this.element) === null || _a === void 0 ? void 0 : _a.setAttribute("data-type-value", this.widgetType);
|
|
18312
18304
|
(_c = (_b = this.element) === null || _b === void 0 ? void 0 : _b.parentElement) === null || _c === void 0 ? void 0 : _c.setAttribute("data-type-value", this.widgetType);
|
|
18313
18305
|
this.render();
|
|
@@ -18315,78 +18307,77 @@ class BuilderStatefulWidget extends _StatefulWidget__WEBPACK_IMPORTED_MODULE_0__
|
|
|
18315
18307
|
return this;
|
|
18316
18308
|
});
|
|
18317
18309
|
}
|
|
18310
|
+
createTypeEditor(event) {
|
|
18311
|
+
if (event) {
|
|
18312
|
+
const inputVal = document.querySelector("#widget-properties .flex-column");
|
|
18313
|
+
console.log("This is the input val container", inputVal);
|
|
18314
|
+
const existedInputEl = inputVal === null || inputVal === void 0 ? void 0 : inputVal.querySelectorAll("input");
|
|
18315
|
+
existedInputEl === null || existedInputEl === void 0 ? void 0 : existedInputEl.forEach((inputItem) => {
|
|
18316
|
+
inputItem === null || inputItem === void 0 ? void 0 : inputItem.remove();
|
|
18317
|
+
});
|
|
18318
|
+
// const elementParent = event.target?.closest(".added-widget-container");
|
|
18319
|
+
// const elementDivParent = event.target?.closest("div");
|
|
18320
|
+
let typeValue = this.widgetType;
|
|
18321
|
+
// if (elementParent) {
|
|
18322
|
+
// typeValue = elementParent?.getAttribute("data-type-value");
|
|
18323
|
+
// } else if (elementDivParent) {
|
|
18324
|
+
// typeValue = elementDivParent?.getAttribute("data-type-value");
|
|
18325
|
+
// }
|
|
18326
|
+
const inputEl = document.createElement("input");
|
|
18327
|
+
inputEl.setAttribute("type", "text");
|
|
18328
|
+
inputEl.setAttribute("name", "input-widgetTypeValue");
|
|
18329
|
+
inputEl.setAttribute("of", this.elementIdentifier.toString());
|
|
18330
|
+
inputEl.setAttribute("class", "form-control");
|
|
18331
|
+
inputEl.setAttribute("id", "widgetTypeValue");
|
|
18332
|
+
if (typeValue) {
|
|
18333
|
+
inputEl.value = this.widgetType;
|
|
18334
|
+
}
|
|
18335
|
+
else {
|
|
18336
|
+
inputEl.setAttribute("placeholder", "e.g. the_entity_type");
|
|
18337
|
+
}
|
|
18338
|
+
let that = this;
|
|
18339
|
+
inputEl.onchange = function (event) {
|
|
18340
|
+
var _a;
|
|
18341
|
+
event.preventDefault();
|
|
18342
|
+
event.stopPropagation();
|
|
18343
|
+
//console.log("THAT ->", that);
|
|
18344
|
+
const inputValue = (_a = event === null || event === void 0 ? void 0 : event.target) === null || _a === void 0 ? void 0 : _a.value;
|
|
18345
|
+
console.log("this is the input change", inputValue);
|
|
18346
|
+
that.widgetType = inputValue;
|
|
18347
|
+
//console.log("inputValue", inputValue);
|
|
18348
|
+
//that.setProperty(inputValue);
|
|
18349
|
+
that.componentDidMount();
|
|
18350
|
+
that.mountChildWidgets();
|
|
18351
|
+
};
|
|
18352
|
+
inputVal === null || inputVal === void 0 ? void 0 : inputVal.appendChild(inputEl);
|
|
18353
|
+
}
|
|
18354
|
+
}
|
|
18318
18355
|
/**
|
|
18319
18356
|
*
|
|
18320
18357
|
* @param parent This is the function that creates a new div and then mounts the html element to the parent.
|
|
18321
18358
|
*/
|
|
18322
18359
|
mount(parent) {
|
|
18323
18360
|
return __awaiter(this, void 0, void 0, function* () {
|
|
18361
|
+
//console.log('mount parent',)
|
|
18324
18362
|
if (parent) {
|
|
18325
18363
|
this.element = document.createElement("div");
|
|
18326
|
-
const inputVal = document.querySelector("#widget-properties .flex-column");
|
|
18327
18364
|
let that = this;
|
|
18328
18365
|
this.element.onclick = function (event) {
|
|
18329
18366
|
event.preventDefault();
|
|
18330
18367
|
event.stopPropagation();
|
|
18331
|
-
|
|
18332
|
-
existedInputEl === null || existedInputEl === void 0 ? void 0 : existedInputEl.forEach((inputItem) => {
|
|
18333
|
-
inputItem === null || inputItem === void 0 ? void 0 : inputItem.remove();
|
|
18334
|
-
});
|
|
18335
|
-
console.log("event.target", event.target);
|
|
18336
|
-
const elementParent = event.target.closest(".added-widget-container");
|
|
18337
|
-
const elementDivParent = event.target.closest("div");
|
|
18338
|
-
let typeValue = "";
|
|
18339
|
-
if (elementParent) {
|
|
18340
|
-
typeValue = elementParent === null || elementParent === void 0 ? void 0 : elementParent.getAttribute("data-type-value");
|
|
18341
|
-
}
|
|
18342
|
-
else if (elementDivParent) {
|
|
18343
|
-
typeValue = elementDivParent === null || elementDivParent === void 0 ? void 0 : elementDivParent.getAttribute("data-type-value");
|
|
18344
|
-
}
|
|
18345
|
-
console.log("typeValue", typeValue);
|
|
18346
|
-
that.widgetType = typeValue;
|
|
18347
|
-
const inputEl = document.createElement("input");
|
|
18348
|
-
inputEl.setAttribute("type", "text");
|
|
18349
|
-
inputEl.setAttribute("name", "input-widgetTypeValue");
|
|
18350
|
-
inputEl.setAttribute("class", "form-control");
|
|
18351
|
-
inputEl.setAttribute("id", "widgetTypeValue");
|
|
18352
|
-
if (typeValue) {
|
|
18353
|
-
inputEl.value = typeValue;
|
|
18354
|
-
}
|
|
18355
|
-
else {
|
|
18356
|
-
inputEl.setAttribute("placeholder", "e.g. the_entity_type");
|
|
18357
|
-
}
|
|
18358
|
-
inputEl.onchange = function (event) {
|
|
18359
|
-
var _a;
|
|
18360
|
-
event.preventDefault();
|
|
18361
|
-
event.stopPropagation();
|
|
18362
|
-
console.log("THAT ->", that);
|
|
18363
|
-
const inputValue = (_a = event === null || event === void 0 ? void 0 : event.target) === null || _a === void 0 ? void 0 : _a.value;
|
|
18364
|
-
console.log("inputValue", inputValue);
|
|
18365
|
-
that.setProperty(inputValue);
|
|
18366
|
-
};
|
|
18367
|
-
inputVal === null || inputVal === void 0 ? void 0 : inputVal.appendChild(inputEl);
|
|
18368
|
+
that.createTypeEditor(event);
|
|
18368
18369
|
};
|
|
18369
|
-
this.element.id = this.
|
|
18370
|
+
this.element.id = this.createWidgetWrapperIdentifier();
|
|
18370
18371
|
this.element.className = "p-2";
|
|
18371
|
-
this.element.innerHTML =
|
|
18372
|
-
console.log("this.element ==>", this.element);
|
|
18372
|
+
this.element.innerHTML = this.getHtml();
|
|
18373
18373
|
parent.appendChild(this.element);
|
|
18374
|
-
|
|
18375
|
-
const elementDivParent = this.element.closest("div");
|
|
18376
|
-
let typeValueOne = "";
|
|
18377
|
-
if (elementParent) {
|
|
18378
|
-
typeValueOne = elementParent === null || elementParent === void 0 ? void 0 : elementParent.getAttribute("data-type-value");
|
|
18379
|
-
}
|
|
18380
|
-
else if (elementDivParent) {
|
|
18381
|
-
typeValueOne = elementDivParent === null || elementDivParent === void 0 ? void 0 : elementDivParent.getAttribute("data-type-value");
|
|
18382
|
-
}
|
|
18383
|
-
if (typeValueOne)
|
|
18384
|
-
this.widgetType = typeValueOne;
|
|
18374
|
+
this.childWidgetElement = this.getElementByClassName("added-widget-container");
|
|
18385
18375
|
this.parentElement = parent.id;
|
|
18386
|
-
if (this.componentMounted == false) {
|
|
18376
|
+
if (this.componentMounted == false || this.widgetMounted == false) {
|
|
18387
18377
|
// Simulate componentDidMount by calling it after the component is inserted into the DOM
|
|
18388
18378
|
this.componentDidMount();
|
|
18389
18379
|
this.mountChildWidgets();
|
|
18380
|
+
this.widgetMounted = true;
|
|
18390
18381
|
this.componentMounted = true;
|
|
18391
18382
|
}
|
|
18392
18383
|
else {
|
|
@@ -18399,7 +18390,7 @@ class BuilderStatefulWidget extends _StatefulWidget__WEBPACK_IMPORTED_MODULE_0__
|
|
|
18399
18390
|
* This function will be called after the component mounts.
|
|
18400
18391
|
*/
|
|
18401
18392
|
componentDidMount(onmountVal = "") {
|
|
18402
|
-
console.log("onmountVal", onmountVal);
|
|
18393
|
+
//console.log("onmountVal", onmountVal);
|
|
18403
18394
|
const AsyncFunction = Object.getPrototypeOf(function () {
|
|
18404
18395
|
return __awaiter(this, void 0, void 0, function* () { });
|
|
18405
18396
|
}).constructor;
|
|
@@ -18417,14 +18408,14 @@ class BuilderStatefulWidget extends _StatefulWidget__WEBPACK_IMPORTED_MODULE_0__
|
|
|
18417
18408
|
return __awaiter(this, void 0, void 0, function* () {
|
|
18418
18409
|
return new Promise((resolve) => __awaiter(this, void 0, void 0, function* () {
|
|
18419
18410
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4;
|
|
18420
|
-
const profileData = yield new Promise((
|
|
18411
|
+
const profileData = yield new Promise((resolve2) => {
|
|
18421
18412
|
let dataFromLocalStorage = (localStorage === null || localStorage === void 0 ? void 0 : localStorage.getItem("profile")) || "";
|
|
18422
18413
|
if (dataFromLocalStorage) {
|
|
18423
18414
|
const profileData = JSON.parse(dataFromLocalStorage);
|
|
18424
|
-
|
|
18415
|
+
resolve2(profileData);
|
|
18425
18416
|
}
|
|
18426
18417
|
else {
|
|
18427
|
-
|
|
18418
|
+
resolve2();
|
|
18428
18419
|
}
|
|
18429
18420
|
});
|
|
18430
18421
|
const token = profileData === null || profileData === void 0 ? void 0 : profileData.token;
|
|
@@ -18454,6 +18445,7 @@ class BuilderStatefulWidget extends _StatefulWidget__WEBPACK_IMPORTED_MODULE_0__
|
|
|
18454
18445
|
mountChildWidgets: widgetMountChildWidgets,
|
|
18455
18446
|
};
|
|
18456
18447
|
const widgetInstance = new BuilderStatefulWidget();
|
|
18448
|
+
widgetInstance.html = widgetData === null || widgetData === void 0 ? void 0 : widgetData.html;
|
|
18457
18449
|
widgetInstance.componentDidMountFunction = widgetData === null || widgetData === void 0 ? void 0 : widgetData.onmount;
|
|
18458
18450
|
widgetInstance.addEventFunction = widgetData === null || widgetData === void 0 ? void 0 : widgetData.addevent;
|
|
18459
18451
|
widgetInstance.mountChildWidgetsFunction = widgetData === null || widgetData === void 0 ? void 0 : widgetData.mountChildWidgets;
|
|
@@ -18512,6 +18504,7 @@ class StatefulWidget extends _BaseWidget__WEBPACK_IMPORTED_MODULE_0__.BaseWidget
|
|
|
18512
18504
|
* These are the child widgets that need to be added to this widget
|
|
18513
18505
|
*/
|
|
18514
18506
|
this.childWidgets = [];
|
|
18507
|
+
this.childWidgetElement = [];
|
|
18515
18508
|
/**
|
|
18516
18509
|
* This is the id of the parentElement of this widget.
|
|
18517
18510
|
*/
|
|
@@ -18521,6 +18514,9 @@ class StatefulWidget extends _BaseWidget__WEBPACK_IMPORTED_MODULE_0__.BaseWidget
|
|
|
18521
18514
|
*/
|
|
18522
18515
|
this.element = null;
|
|
18523
18516
|
}
|
|
18517
|
+
getElement() {
|
|
18518
|
+
return this.element;
|
|
18519
|
+
}
|
|
18524
18520
|
setTitle(title) {
|
|
18525
18521
|
document.title = title;
|
|
18526
18522
|
}
|
|
@@ -18577,6 +18573,7 @@ class StatefulWidget extends _BaseWidget__WEBPACK_IMPORTED_MODULE_0__.BaseWidget
|
|
|
18577
18573
|
if (this.element) {
|
|
18578
18574
|
this.element.innerHTML = this.getHtml();
|
|
18579
18575
|
}
|
|
18576
|
+
//console.log("added-widget-container",this.childWidgetElement);
|
|
18580
18577
|
// addEvents is called after the element has been mounted.
|
|
18581
18578
|
this.addEvents();
|
|
18582
18579
|
// then after the child widgets are again loaded.
|
|
@@ -18584,10 +18581,21 @@ class StatefulWidget extends _BaseWidget__WEBPACK_IMPORTED_MODULE_0__.BaseWidget
|
|
|
18584
18581
|
this.loadChildWidgets();
|
|
18585
18582
|
}
|
|
18586
18583
|
}
|
|
18584
|
+
getElementByClassName(identifier) {
|
|
18585
|
+
let element = this.getComponent();
|
|
18586
|
+
if (element) {
|
|
18587
|
+
let myelement = element === null || element === void 0 ? void 0 : element.querySelectorAll('.' + identifier);
|
|
18588
|
+
console.log("this is the element", element, myelement, identifier);
|
|
18589
|
+
return myelement;
|
|
18590
|
+
}
|
|
18591
|
+
return [];
|
|
18592
|
+
}
|
|
18587
18593
|
/**
|
|
18588
18594
|
* This is the function that needs to be called.
|
|
18589
18595
|
*/
|
|
18590
18596
|
mountChildWidgets() {
|
|
18597
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
18598
|
+
});
|
|
18591
18599
|
}
|
|
18592
18600
|
/**
|
|
18593
18601
|
*
|
|
@@ -18601,7 +18609,7 @@ class StatefulWidget extends _BaseWidget__WEBPACK_IMPORTED_MODULE_0__.BaseWidget
|
|
|
18601
18609
|
// assign an identifier to the element so that it does not conflict with others.
|
|
18602
18610
|
this.element.id = this.createWidgetWrapperIdentifier();
|
|
18603
18611
|
// then assign the html to the element.
|
|
18604
|
-
this.element.innerHTML =
|
|
18612
|
+
this.element.innerHTML = this.getHtml();
|
|
18605
18613
|
// mount the div with unique identifier to the parent element.
|
|
18606
18614
|
parent.appendChild(this.element);
|
|
18607
18615
|
// also save in the widget its parent identifier.
|