@websy/websy-designs 1.11.12 → 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,8 +4641,11 @@ 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
- buildHTML (d, startIndex = 0, inputTemplate, locator = []) {
4648
+ buildHTML (d = [], startIndex = 0, inputTemplate, locator = []) {
4646
4649
  let html = ``
4647
4650
  if (this.options.template) {
4648
4651
  if (d.length > 0) {
@@ -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,11 +4384,15 @@ 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",
4390
- value: function buildHTML(d) {
4393
+ value: function buildHTML() {
4391
4394
  var _this33 = this;
4395
+ var d = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
4392
4396
  var startIndex = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
4393
4397
  var inputTemplate = arguments.length > 2 ? arguments[2] : undefined;
4394
4398
  var locator = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
@@ -4638,6 +4642,9 @@ var WebsyResultList = /*#__PURE__*/function () {
4638
4642
  var html = this.buildHTML(this.rows);
4639
4643
  var el = document.getElementById(this.elementId);
4640
4644
  el.innerHTML = html.replace(/\n/g, '');
4645
+ if (this.options.onResize) {
4646
+ this.options.onResize();
4647
+ }
4641
4648
  }
4642
4649
  }]);
4643
4650
  return WebsyResultList;
@@ -6620,7 +6627,7 @@ var WebsyTable = /*#__PURE__*/function () {
6620
6627
  }, {
6621
6628
  key: "hideLoading",
6622
6629
  value: function hideLoading() {
6623
- this.loadingDialog.hide();
6630
+ this.loadingDialog && this.loadingDialog.hide();
6624
6631
  }
6625
6632
  }, {
6626
6633
  key: "internalSort",
@@ -6754,7 +6761,7 @@ var WebsyTable = /*#__PURE__*/function () {
6754
6761
  }, {
6755
6762
  key: "showLoading",
6756
6763
  value: function showLoading(options) {
6757
- this.loadingDialog.show(options);
6764
+ this.loadingDialog && this.loadingDialog.show(options);
6758
6765
  }
6759
6766
  }]);
6760
6767
  return WebsyTable;