mftsccs-browser 2.0.0-beta → 2.0.2-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.
@@ -20210,7 +20210,7 @@ function TypeEditor(event, that) {
20210
20210
  newThat.widgetType = inputValue;
20211
20211
  //console.log("inputValue", inputValue);
20212
20212
  //that.setProperty(inputValue);
20213
- newThat.mounted();
20213
+ newThat.before_render();
20214
20214
  newThat.loadChildWidgets();
20215
20215
  (_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);
20216
20216
  };
@@ -20393,7 +20393,7 @@ class BuilderStatefulWidget extends _StatefulWidget__WEBPACK_IMPORTED_MODULE_0__
20393
20393
  this.elementIdentifier = Math.random() * 10000;
20394
20394
  return this.elementIdentifier;
20395
20395
  }
20396
- child_mounted() {
20396
+ child_mount() {
20397
20397
  return __awaiter(this, void 0, void 0, function* () {
20398
20398
  const dynamicAsyncFunction = new Function("tsccs", `
20399
20399
  return (async function() {
@@ -20441,8 +20441,8 @@ class BuilderStatefulWidget extends _StatefulWidget__WEBPACK_IMPORTED_MODULE_0__
20441
20441
  this.parentElement = parent.id;
20442
20442
  if (this.componentMounted == false || this.widgetMounted == false) {
20443
20443
  // Simulate componentDidMount by calling it after the component is inserted into the DOM
20444
- this.mounted();
20445
- this.child_mounted();
20444
+ this.before_render();
20445
+ this.child_mount();
20446
20446
  this.widgetMounted = true;
20447
20447
  this.componentMounted = true;
20448
20448
  }
@@ -20456,7 +20456,7 @@ class BuilderStatefulWidget extends _StatefulWidget__WEBPACK_IMPORTED_MODULE_0__
20456
20456
  /**
20457
20457
  * This function will be called after the component mounts.
20458
20458
  */
20459
- componentDidMount() {
20459
+ before_render() {
20460
20460
  //console.log("onmountVal", onmountVal);
20461
20461
  const dynamicAsyncFunction = new Function("tsccs", `
20462
20462
  return (async function() {
@@ -20623,12 +20623,12 @@ class StatefulWidget extends _BaseWidget__WEBPACK_IMPORTED_MODULE_0__.BaseWidget
20623
20623
  let passedWidget = widget;
20624
20624
  passedWidget.data = value;
20625
20625
  passedWidget.render();
20626
- passedWidget.updated();
20626
+ passedWidget.update();
20627
20627
  }
20628
20628
  /**
20629
20629
  * This is called after the data has been udpated by some other component.
20630
20630
  */
20631
- updated() { }
20631
+ update() { }
20632
20632
  /**
20633
20633
  *
20634
20634
  * @param newState
@@ -20679,7 +20679,7 @@ class StatefulWidget extends _BaseWidget__WEBPACK_IMPORTED_MODULE_0__.BaseWidget
20679
20679
  /**
20680
20680
  * This is the function that needs to be called.
20681
20681
  */
20682
- child_mounted() {
20682
+ child_mount() {
20683
20683
  }
20684
20684
  /**
20685
20685
  *
@@ -20703,10 +20703,10 @@ class StatefulWidget extends _BaseWidget__WEBPACK_IMPORTED_MODULE_0__.BaseWidget
20703
20703
  // then after the widget has been mounted for the first time call this function
20704
20704
  // user can update this function as per their requirement
20705
20705
  //this will mostly be used to bind data / call data
20706
- this.mounted();
20706
+ this.before_render();
20707
20707
  // since this is the first time the widget is being created. then all the child widgets are being mounted
20708
20708
  // as well here.
20709
- this.child_mounted();
20709
+ this.child_mount();
20710
20710
  // after the widget has been mounted for the first time then the widget has been updated.
20711
20711
  this.widgetMounted = true;
20712
20712
  }
@@ -20720,7 +20720,7 @@ class StatefulWidget extends _BaseWidget__WEBPACK_IMPORTED_MODULE_0__.BaseWidget
20720
20720
  /**
20721
20721
  * This function will be called after the component mounts.
20722
20722
  */
20723
- mounted() {
20723
+ before_render() {
20724
20724
  this.render();
20725
20725
  }
20726
20726
  /**
@@ -20756,14 +20756,14 @@ class WidgetTree {
20756
20756
  this.js = "";
20757
20757
  this.timestamp = "";
20758
20758
  this.widgetId = 0;
20759
- this.typeValue = "";
20760
- this.cleanHtml = "";
20761
- this.addEvent = "";
20762
- this.onmount = "";
20763
- this.onupdate = "";
20764
- this.mountChildWidgets = "";
20759
+ this.type = "";
20760
+ this.clean = "";
20761
+ this.after_render = "";
20762
+ this.before_render = "";
20763
+ this.update = "";
20764
+ this.child_mount = "";
20765
20765
  this.children = [];
20766
- this.wrapperId = 0;
20766
+ this.wrapper = 0;
20767
20767
  this.widget = new _BuilderStatefulWidget__WEBPACK_IMPORTED_MODULE_0__.BuilderStatefulWidget();
20768
20768
  }
20769
20769
  }