mftsccs-browser 2.1.28-beta → 2.1.30-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 +39 -21
- package/dist/serviceWorker.bundle.js +39 -21
- package/package.json +1 -1
package/dist/main.bundle.js
CHANGED
|
@@ -21829,12 +21829,18 @@ class BuilderStatefulWidget extends _StatefulWidget__WEBPACK_IMPORTED_MODULE_0__
|
|
|
21829
21829
|
}
|
|
21830
21830
|
mount_child() {
|
|
21831
21831
|
return __awaiter(this, void 0, void 0, function* () {
|
|
21832
|
-
|
|
21833
|
-
|
|
21834
|
-
|
|
21835
|
-
|
|
21836
|
-
|
|
21837
|
-
|
|
21832
|
+
try {
|
|
21833
|
+
const dynamicAsyncFunction = new Function("tsccs", `
|
|
21834
|
+
return (async function() {
|
|
21835
|
+
${this.mountChildWidgetsFunction}
|
|
21836
|
+
}).call(this);
|
|
21837
|
+
`).bind(this);
|
|
21838
|
+
dynamicAsyncFunction(_app__WEBPACK_IMPORTED_MODULE_1__);
|
|
21839
|
+
}
|
|
21840
|
+
catch (error) {
|
|
21841
|
+
console.log("This is the error in the mount child", error);
|
|
21842
|
+
throw error;
|
|
21843
|
+
}
|
|
21838
21844
|
});
|
|
21839
21845
|
}
|
|
21840
21846
|
setProperty(widgetTypeName) {
|
|
@@ -21891,13 +21897,19 @@ class BuilderStatefulWidget extends _StatefulWidget__WEBPACK_IMPORTED_MODULE_0__
|
|
|
21891
21897
|
* This function will be called after the component mounts.
|
|
21892
21898
|
*/
|
|
21893
21899
|
before_render() {
|
|
21900
|
+
try {
|
|
21901
|
+
const dynamicAsyncFunction = new Function("tsccs", `
|
|
21902
|
+
return (async function() {
|
|
21903
|
+
${this.componentDidMountFunction}
|
|
21904
|
+
}).call(this);
|
|
21905
|
+
`).bind(this);
|
|
21906
|
+
dynamicAsyncFunction(_app__WEBPACK_IMPORTED_MODULE_1__);
|
|
21907
|
+
}
|
|
21908
|
+
catch (error) {
|
|
21909
|
+
console.log("This is the error in the before render", error);
|
|
21910
|
+
throw error;
|
|
21911
|
+
}
|
|
21894
21912
|
//console.log("onmountVal", onmountVal);
|
|
21895
|
-
const dynamicAsyncFunction = new Function("tsccs", `
|
|
21896
|
-
return (async function() {
|
|
21897
|
-
${this.componentDidMountFunction}
|
|
21898
|
-
}).call(this);
|
|
21899
|
-
`).bind(this);
|
|
21900
|
-
dynamicAsyncFunction(_app__WEBPACK_IMPORTED_MODULE_1__);
|
|
21901
21913
|
// dynamicAsyncFunction(tsccs);
|
|
21902
21914
|
// const AsyncFunction = Object.getPrototypeOf(
|
|
21903
21915
|
// async function () {}
|
|
@@ -21912,12 +21924,18 @@ class BuilderStatefulWidget extends _StatefulWidget__WEBPACK_IMPORTED_MODULE_0__
|
|
|
21912
21924
|
// const AsyncFunction = Object.getPrototypeOf(
|
|
21913
21925
|
// async function () {}
|
|
21914
21926
|
// ).constructor;
|
|
21915
|
-
|
|
21916
|
-
|
|
21917
|
-
|
|
21918
|
-
|
|
21919
|
-
|
|
21920
|
-
|
|
21927
|
+
try {
|
|
21928
|
+
const dynamicAsyncFunction = new Function("tsccs", `
|
|
21929
|
+
return (async function() {
|
|
21930
|
+
${this.addEventFunction}
|
|
21931
|
+
}).call(this);
|
|
21932
|
+
`).bind(this);
|
|
21933
|
+
dynamicAsyncFunction(_app__WEBPACK_IMPORTED_MODULE_1__);
|
|
21934
|
+
}
|
|
21935
|
+
catch (error) {
|
|
21936
|
+
console.log("This is the error in the after render", error);
|
|
21937
|
+
throw error;
|
|
21938
|
+
}
|
|
21921
21939
|
// const renderOnmount = AsyncFunction("tsccs", this.addEventFunction);
|
|
21922
21940
|
// renderOnmount.call(this, tsccs);
|
|
21923
21941
|
}
|
|
@@ -22567,16 +22585,16 @@ class StatefulWidget extends _BaseWidget__WEBPACK_IMPORTED_MODULE_0__.BaseWidget
|
|
|
22567
22585
|
*/
|
|
22568
22586
|
setWidgetState(key, value) {
|
|
22569
22587
|
this.widgetState[key] = value;
|
|
22570
|
-
let thisWidget = this;
|
|
22571
22588
|
function updateChildStateRecursive(widget) {
|
|
22572
|
-
if (!widget) {
|
|
22589
|
+
if (!widget || !Array.isArray(widget.childWidgets)) {
|
|
22573
22590
|
return;
|
|
22574
22591
|
}
|
|
22575
22592
|
widget.childWidgets.forEach((child) => {
|
|
22576
22593
|
child.widgetState = Object.assign(Object.assign({}, child.widgetState), widget.widgetState);
|
|
22594
|
+
updateChildStateRecursive(child);
|
|
22577
22595
|
});
|
|
22578
22596
|
}
|
|
22579
|
-
updateChildStateRecursive(
|
|
22597
|
+
updateChildStateRecursive(this);
|
|
22580
22598
|
this.renderChildWidgets();
|
|
22581
22599
|
}
|
|
22582
22600
|
/**
|
|
@@ -22767,12 +22767,18 @@ class BuilderStatefulWidget extends _StatefulWidget__WEBPACK_IMPORTED_MODULE_0__
|
|
|
22767
22767
|
}
|
|
22768
22768
|
mount_child() {
|
|
22769
22769
|
return __awaiter(this, void 0, void 0, function* () {
|
|
22770
|
-
|
|
22771
|
-
|
|
22772
|
-
|
|
22773
|
-
|
|
22774
|
-
|
|
22775
|
-
|
|
22770
|
+
try {
|
|
22771
|
+
const dynamicAsyncFunction = new Function("tsccs", `
|
|
22772
|
+
return (async function() {
|
|
22773
|
+
${this.mountChildWidgetsFunction}
|
|
22774
|
+
}).call(this);
|
|
22775
|
+
`).bind(this);
|
|
22776
|
+
dynamicAsyncFunction(_app__WEBPACK_IMPORTED_MODULE_1__);
|
|
22777
|
+
}
|
|
22778
|
+
catch (error) {
|
|
22779
|
+
console.log("This is the error in the mount child", error);
|
|
22780
|
+
throw error;
|
|
22781
|
+
}
|
|
22776
22782
|
});
|
|
22777
22783
|
}
|
|
22778
22784
|
setProperty(widgetTypeName) {
|
|
@@ -22829,13 +22835,19 @@ class BuilderStatefulWidget extends _StatefulWidget__WEBPACK_IMPORTED_MODULE_0__
|
|
|
22829
22835
|
* This function will be called after the component mounts.
|
|
22830
22836
|
*/
|
|
22831
22837
|
before_render() {
|
|
22838
|
+
try {
|
|
22839
|
+
const dynamicAsyncFunction = new Function("tsccs", `
|
|
22840
|
+
return (async function() {
|
|
22841
|
+
${this.componentDidMountFunction}
|
|
22842
|
+
}).call(this);
|
|
22843
|
+
`).bind(this);
|
|
22844
|
+
dynamicAsyncFunction(_app__WEBPACK_IMPORTED_MODULE_1__);
|
|
22845
|
+
}
|
|
22846
|
+
catch (error) {
|
|
22847
|
+
console.log("This is the error in the before render", error);
|
|
22848
|
+
throw error;
|
|
22849
|
+
}
|
|
22832
22850
|
//console.log("onmountVal", onmountVal);
|
|
22833
|
-
const dynamicAsyncFunction = new Function("tsccs", `
|
|
22834
|
-
return (async function() {
|
|
22835
|
-
${this.componentDidMountFunction}
|
|
22836
|
-
}).call(this);
|
|
22837
|
-
`).bind(this);
|
|
22838
|
-
dynamicAsyncFunction(_app__WEBPACK_IMPORTED_MODULE_1__);
|
|
22839
22851
|
// dynamicAsyncFunction(tsccs);
|
|
22840
22852
|
// const AsyncFunction = Object.getPrototypeOf(
|
|
22841
22853
|
// async function () {}
|
|
@@ -22850,12 +22862,18 @@ class BuilderStatefulWidget extends _StatefulWidget__WEBPACK_IMPORTED_MODULE_0__
|
|
|
22850
22862
|
// const AsyncFunction = Object.getPrototypeOf(
|
|
22851
22863
|
// async function () {}
|
|
22852
22864
|
// ).constructor;
|
|
22853
|
-
|
|
22854
|
-
|
|
22855
|
-
|
|
22856
|
-
|
|
22857
|
-
|
|
22858
|
-
|
|
22865
|
+
try {
|
|
22866
|
+
const dynamicAsyncFunction = new Function("tsccs", `
|
|
22867
|
+
return (async function() {
|
|
22868
|
+
${this.addEventFunction}
|
|
22869
|
+
}).call(this);
|
|
22870
|
+
`).bind(this);
|
|
22871
|
+
dynamicAsyncFunction(_app__WEBPACK_IMPORTED_MODULE_1__);
|
|
22872
|
+
}
|
|
22873
|
+
catch (error) {
|
|
22874
|
+
console.log("This is the error in the after render", error);
|
|
22875
|
+
throw error;
|
|
22876
|
+
}
|
|
22859
22877
|
// const renderOnmount = AsyncFunction("tsccs", this.addEventFunction);
|
|
22860
22878
|
// renderOnmount.call(this, tsccs);
|
|
22861
22879
|
}
|
|
@@ -23505,16 +23523,16 @@ class StatefulWidget extends _BaseWidget__WEBPACK_IMPORTED_MODULE_0__.BaseWidget
|
|
|
23505
23523
|
*/
|
|
23506
23524
|
setWidgetState(key, value) {
|
|
23507
23525
|
this.widgetState[key] = value;
|
|
23508
|
-
let thisWidget = this;
|
|
23509
23526
|
function updateChildStateRecursive(widget) {
|
|
23510
|
-
if (!widget) {
|
|
23527
|
+
if (!widget || !Array.isArray(widget.childWidgets)) {
|
|
23511
23528
|
return;
|
|
23512
23529
|
}
|
|
23513
23530
|
widget.childWidgets.forEach((child) => {
|
|
23514
23531
|
child.widgetState = Object.assign(Object.assign({}, child.widgetState), widget.widgetState);
|
|
23532
|
+
updateChildStateRecursive(child);
|
|
23515
23533
|
});
|
|
23516
23534
|
}
|
|
23517
|
-
updateChildStateRecursive(
|
|
23535
|
+
updateChildStateRecursive(this);
|
|
23518
23536
|
this.renderChildWidgets();
|
|
23519
23537
|
}
|
|
23520
23538
|
/**
|