@websy/websy-designs 1.11.16 → 1.11.18

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.
@@ -4327,6 +4327,9 @@ class WebsyPubSub {
4327
4327
  this.subscriptions = {}
4328
4328
  }
4329
4329
  publish (id, method, data) {
4330
+ if (!this.subscriptions) {
4331
+ return
4332
+ }
4330
4333
  if (arguments.length === 3) {
4331
4334
  if (this.subscriptions[id] && this.subscriptions[id][method]) {
4332
4335
  this.subscriptions[id][method](data)
@@ -8408,10 +8411,14 @@ class WebsyTable3 {
8408
8411
  render (data, calcSizes = true) {
8409
8412
  if (!this.options.columns) {
8410
8413
  console.log(`No columns provided for table with ID ${this.elementId}`)
8414
+ // this prevents any conditionally hidden elements from blocking
8415
+ this._isRendered = true
8411
8416
  return
8412
8417
  }
8413
8418
  if (this.options.columns.length === 0) {
8414
8419
  console.log(`No columns provided for table with ID ${this.elementId}`)
8420
+ // this prevents any conditionally hidden elements from blocking
8421
+ this._isRendered = true
8415
8422
  return
8416
8423
  }
8417
8424
  // this.data = []
@@ -8434,6 +8441,8 @@ class WebsyTable3 {
8434
8441
  let bodyEl = document.getElementById(`${this.elementId}_tableBody`)
8435
8442
  if (!bodyEl) {
8436
8443
  // something isn't right so exit the function
8444
+ // this prevents any conditionally hidden elements from blocking
8445
+ this._isRendered = true
8437
8446
  return
8438
8447
  }
8439
8448
  // bodyEl.innerHTML = this.buildBodyHtml(data, true)
@@ -11498,6 +11507,10 @@ class WebsyKPI {
11498
11507
  el.innerHTML = html
11499
11508
  this._isRendered = true
11500
11509
  }
11510
+ else {
11511
+ // this prevents any conditionally hidden elements from blocking
11512
+ this._isRendered = true
11513
+ }
11501
11514
  }
11502
11515
  }
11503
11516
 
@@ -4111,6 +4111,9 @@ var WebsyPubSub = /*#__PURE__*/function () {
4111
4111
  _createClass(WebsyPubSub, [{
4112
4112
  key: "publish",
4113
4113
  value: function publish(id, method, data) {
4114
+ if (!this.subscriptions) {
4115
+ return;
4116
+ }
4114
4117
  if (arguments.length === 3) {
4115
4118
  if (this.subscriptions[id] && this.subscriptions[id][method]) {
4116
4119
  this.subscriptions[id][method](data);
@@ -8118,10 +8121,14 @@ var WebsyTable3 = /*#__PURE__*/function () {
8118
8121
  var calcSizes = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
8119
8122
  if (!this.options.columns) {
8120
8123
  console.log("No columns provided for table with ID ".concat(this.elementId));
8124
+ // this prevents any conditionally hidden elements from blocking
8125
+ this._isRendered = true;
8121
8126
  return;
8122
8127
  }
8123
8128
  if (this.options.columns.length === 0) {
8124
8129
  console.log("No columns provided for table with ID ".concat(this.elementId));
8130
+ // this prevents any conditionally hidden elements from blocking
8131
+ this._isRendered = true;
8125
8132
  return;
8126
8133
  }
8127
8134
  // this.data = []
@@ -8144,6 +8151,8 @@ var WebsyTable3 = /*#__PURE__*/function () {
8144
8151
  var bodyEl = document.getElementById("".concat(this.elementId, "_tableBody"));
8145
8152
  if (!bodyEl) {
8146
8153
  // something isn't right so exit the function
8154
+ // this prevents any conditionally hidden elements from blocking
8155
+ this._isRendered = true;
8147
8156
  return;
8148
8157
  }
8149
8158
  // bodyEl.innerHTML = this.buildBodyHtml(data, true)
@@ -10969,6 +10978,9 @@ var WebsyKPI = /*#__PURE__*/function () {
10969
10978
  html += " \n </div>\n </div>\n ";
10970
10979
  el.innerHTML = html;
10971
10980
  this._isRendered = true;
10981
+ } else {
10982
+ // this prevents any conditionally hidden elements from blocking
10983
+ this._isRendered = true;
10972
10984
  }
10973
10985
  }
10974
10986
  }]);