@websy/websy-designs 1.11.13 → 1.11.14

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.
@@ -4641,6 +4641,9 @@ class WebsyResultList {
4641
4641
  const html = this.buildHTML(d, startIndex)
4642
4642
  const el = document.getElementById(this.elementId)
4643
4643
  el.innerHTML += html.replace(/\n/g, '')
4644
+ if (this.options.onAppend) {
4645
+ this.options.onAppend()
4646
+ }
4644
4647
  }
4645
4648
  buildHTML (d = [], startIndex = 0, inputTemplate, locator = []) {
4646
4649
  let html = ``
@@ -4879,7 +4882,10 @@ class WebsyResultList {
4879
4882
  resize () {
4880
4883
  const html = this.buildHTML(this.rows)
4881
4884
  const el = document.getElementById(this.elementId)
4882
- el.innerHTML = html.replace(/\n/g, '')
4885
+ el.innerHTML = html.replace(/\n/g, '')
4886
+ if (this.options.onResize) {
4887
+ this.options.onResize()
4888
+ }
4883
4889
  }
4884
4890
  }
4885
4891
 
@@ -6796,7 +6802,7 @@ class WebsyTable {
6796
6802
  }
6797
6803
  }
6798
6804
  hideLoading () {
6799
- this.loadingDialog.hide()
6805
+ this.loadingDialog && this.loadingDialog.hide()
6800
6806
  }
6801
6807
  internalSort (column, colIndex) {
6802
6808
  this.options.columns.forEach((c, i) => {
@@ -6942,7 +6948,7 @@ class WebsyTable {
6942
6948
  this._isRendered = true
6943
6949
  }
6944
6950
  showLoading (options) {
6945
- this.loadingDialog.show(options)
6951
+ this.loadingDialog && this.loadingDialog.show(options)
6946
6952
  }
6947
6953
  }
6948
6954
 
@@ -4384,6 +4384,9 @@ var WebsyResultList = /*#__PURE__*/function () {
4384
4384
  var html = this.buildHTML(d, startIndex);
4385
4385
  var el = document.getElementById(this.elementId);
4386
4386
  el.innerHTML += html.replace(/\n/g, '');
4387
+ if (this.options.onAppend) {
4388
+ this.options.onAppend();
4389
+ }
4387
4390
  }
4388
4391
  }, {
4389
4392
  key: "buildHTML",
@@ -4639,6 +4642,9 @@ var WebsyResultList = /*#__PURE__*/function () {
4639
4642
  var html = this.buildHTML(this.rows);
4640
4643
  var el = document.getElementById(this.elementId);
4641
4644
  el.innerHTML = html.replace(/\n/g, '');
4645
+ if (this.options.onResize) {
4646
+ this.options.onResize();
4647
+ }
4642
4648
  }
4643
4649
  }]);
4644
4650
  return WebsyResultList;
@@ -6621,7 +6627,7 @@ var WebsyTable = /*#__PURE__*/function () {
6621
6627
  }, {
6622
6628
  key: "hideLoading",
6623
6629
  value: function hideLoading() {
6624
- this.loadingDialog.hide();
6630
+ this.loadingDialog && this.loadingDialog.hide();
6625
6631
  }
6626
6632
  }, {
6627
6633
  key: "internalSort",
@@ -6755,7 +6761,7 @@ var WebsyTable = /*#__PURE__*/function () {
6755
6761
  }, {
6756
6762
  key: "showLoading",
6757
6763
  value: function showLoading(options) {
6758
- this.loadingDialog.show(options);
6764
+ this.loadingDialog && this.loadingDialog.show(options);
6759
6765
  }
6760
6766
  }]);
6761
6767
  return WebsyTable;