@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.
@@ -3883,6 +3883,9 @@ class WebsyPubSub {
3883
3883
  this.subscriptions = {}
3884
3884
  }
3885
3885
  publish (id, method, data) {
3886
+ if (!this.subscriptions) {
3887
+ return
3888
+ }
3886
3889
  if (arguments.length === 3) {
3887
3890
  if (this.subscriptions[id] && this.subscriptions[id][method]) {
3888
3891
  this.subscriptions[id][method](data)
@@ -7518,10 +7521,14 @@ class WebsyTable3 {
7518
7521
  render (data, calcSizes = true) {
7519
7522
  if (!this.options.columns) {
7520
7523
  console.log(`No columns provided for table with ID ${this.elementId}`)
7524
+ // this prevents any conditionally hidden elements from blocking
7525
+ this._isRendered = true
7521
7526
  return
7522
7527
  }
7523
7528
  if (this.options.columns.length === 0) {
7524
7529
  console.log(`No columns provided for table with ID ${this.elementId}`)
7530
+ // this prevents any conditionally hidden elements from blocking
7531
+ this._isRendered = true
7525
7532
  return
7526
7533
  }
7527
7534
  // this.data = []
@@ -7544,6 +7551,8 @@ class WebsyTable3 {
7544
7551
  let bodyEl = document.getElementById(`${this.elementId}_tableBody`)
7545
7552
  if (!bodyEl) {
7546
7553
  // something isn't right so exit the function
7554
+ // this prevents any conditionally hidden elements from blocking
7555
+ this._isRendered = true
7547
7556
  return
7548
7557
  }
7549
7558
  // bodyEl.innerHTML = this.buildBodyHtml(data, true)
@@ -10180,6 +10189,10 @@ class WebsyKPI {
10180
10189
  el.innerHTML = html
10181
10190
  this._isRendered = true
10182
10191
  }
10192
+ else {
10193
+ // this prevents any conditionally hidden elements from blocking
10194
+ this._isRendered = true
10195
+ }
10183
10196
  }
10184
10197
  }
10185
10198
 
@@ -3689,6 +3689,9 @@ var WebsyPubSub = /*#__PURE__*/function () {
3689
3689
  _createClass(WebsyPubSub, [{
3690
3690
  key: "publish",
3691
3691
  value: function publish(id, method, data) {
3692
+ if (!this.subscriptions) {
3693
+ return;
3694
+ }
3692
3695
  if (arguments.length === 3) {
3693
3696
  if (this.subscriptions[id] && this.subscriptions[id][method]) {
3694
3697
  this.subscriptions[id][method](data);
@@ -7240,10 +7243,14 @@ var WebsyTable3 = /*#__PURE__*/function () {
7240
7243
  var calcSizes = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
7241
7244
  if (!this.options.columns) {
7242
7245
  console.log("No columns provided for table with ID ".concat(this.elementId));
7246
+ // this prevents any conditionally hidden elements from blocking
7247
+ this._isRendered = true;
7243
7248
  return;
7244
7249
  }
7245
7250
  if (this.options.columns.length === 0) {
7246
7251
  console.log("No columns provided for table with ID ".concat(this.elementId));
7252
+ // this prevents any conditionally hidden elements from blocking
7253
+ this._isRendered = true;
7247
7254
  return;
7248
7255
  }
7249
7256
  // this.data = []
@@ -7266,6 +7273,8 @@ var WebsyTable3 = /*#__PURE__*/function () {
7266
7273
  var bodyEl = document.getElementById("".concat(this.elementId, "_tableBody"));
7267
7274
  if (!bodyEl) {
7268
7275
  // something isn't right so exit the function
7276
+ // this prevents any conditionally hidden elements from blocking
7277
+ this._isRendered = true;
7269
7278
  return;
7270
7279
  }
7271
7280
  // bodyEl.innerHTML = this.buildBodyHtml(data, true)
@@ -9664,6 +9673,9 @@ var WebsyKPI = /*#__PURE__*/function () {
9664
9673
  html += " \n </div>\n </div>\n ";
9665
9674
  el.innerHTML = html;
9666
9675
  this._isRendered = true;
9676
+ } else {
9677
+ // this prevents any conditionally hidden elements from blocking
9678
+ this._isRendered = true;
9667
9679
  }
9668
9680
  }
9669
9681
  }]);