@websy/websy-designs 1.4.12 → 1.4.13

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.
@@ -1648,10 +1648,14 @@ class WebsyDropdown {
1648
1648
  }
1649
1649
  if (scrollEl) {
1650
1650
  scrollEl.scrollTo(0, 0)
1651
+ }
1652
+ if (maskEl) {
1653
+ maskEl.classList.remove('active')
1654
+ }
1655
+ if (contentEl) {
1656
+ contentEl.classList.remove('active')
1657
+ contentEl.classList.remove('on-top')
1651
1658
  }
1652
- maskEl.classList.remove('active')
1653
- contentEl.classList.remove('active')
1654
- contentEl.classList.remove('on-top')
1655
1659
  const searchEl = document.getElementById(`${this.elementId}_search`)
1656
1660
  if (searchEl) {
1657
1661
  if (searchEl.value.length > 0 && this.options.onCancelSearch) {
@@ -2397,8 +2401,10 @@ class WebsyLoadingDialog {
2397
2401
  }
2398
2402
  hide () {
2399
2403
  const el = document.getElementById(this.elementId)
2400
- el.classList.remove('loading')
2401
- el.innerHTML = ''
2404
+ if (el) {
2405
+ el.classList.remove('loading')
2406
+ el.innerHTML = ''
2407
+ }
2402
2408
  }
2403
2409
  render () {
2404
2410
  if (!this.elementId) {
@@ -5768,7 +5774,7 @@ class WebsyTable3 {
5768
5774
  }
5769
5775
  // console.log('rowspan', cell.rowspan)
5770
5776
  bodyHtml += `<td
5771
- class='websy-table-cell ${(cell.classes || []).join(' ')}'
5777
+ class='websy-table-cell ${sizeIndex < this.pinnedColumns ? 'pinned' : 'unpinned'} ${(cell.classes || []).join(' ')}'
5772
5778
  style='${style}'
5773
5779
  data-info='${cell.value}'
5774
5780
  colspan='${cell.colspan || 1}'
@@ -7311,7 +7317,7 @@ function getBarY (d, i) {
7311
7317
  bars
7312
7318
  .exit()
7313
7319
  .transition(this.transition)
7314
- .style('stroke-opacity', 1e-6)
7320
+ .style('fill-opacity', 1e-6)
7315
7321
  .remove()
7316
7322
 
7317
7323
  bars
@@ -7335,6 +7341,14 @@ bars
7335
7341
  return `bar bar_${series.key}`
7336
7342
  })
7337
7343
 
7344
+ }
7345
+ removebar (key) {
7346
+ /* global key d3 */
7347
+ let bars = this.barLayer.selectAll(`.bar_${key}`)
7348
+ .transition(this.transition)
7349
+ .style('fill-opacity', 1e-6)
7350
+ .remove()
7351
+
7338
7352
  }
7339
7353
  renderLabels (series, index) {
7340
7354
  /* global series index d3 WebsyDesigns */
@@ -1784,9 +1784,15 @@ var WebsyDropdown = /*#__PURE__*/function () {
1784
1784
  scrollEl.scrollTo(0, 0);
1785
1785
  }
1786
1786
 
1787
- maskEl.classList.remove('active');
1788
- contentEl.classList.remove('active');
1789
- contentEl.classList.remove('on-top');
1787
+ if (maskEl) {
1788
+ maskEl.classList.remove('active');
1789
+ }
1790
+
1791
+ if (contentEl) {
1792
+ contentEl.classList.remove('active');
1793
+ contentEl.classList.remove('on-top');
1794
+ }
1795
+
1790
1796
  var searchEl = document.getElementById("".concat(this.elementId, "_search"));
1791
1797
 
1792
1798
  if (searchEl) {
@@ -2506,8 +2512,11 @@ var WebsyLoadingDialog = /*#__PURE__*/function () {
2506
2512
  key: "hide",
2507
2513
  value: function hide() {
2508
2514
  var el = document.getElementById(this.elementId);
2509
- el.classList.remove('loading');
2510
- el.innerHTML = '';
2515
+
2516
+ if (el) {
2517
+ el.classList.remove('loading');
2518
+ el.innerHTML = '';
2519
+ }
2511
2520
  }
2512
2521
  }, {
2513
2522
  key: "render",
@@ -6279,7 +6288,7 @@ var WebsyTable3 = /*#__PURE__*/function () {
6279
6288
  } // console.log('rowspan', cell.rowspan)
6280
6289
 
6281
6290
 
6282
- bodyHtml += "<td \n class='websy-table-cell ".concat((cell.classes || []).join(' '), "'\n style='").concat(style, "'\n data-info='").concat(cell.value, "'\n colspan='").concat(cell.colspan || 1, "'\n rowspan='").concat(cell.rowspan || 1, "'\n data-row-index='").concat(rowIndex, "'\n data-col-index='").concat(cellIndex, "'\n "); // if (useWidths === true) {
6291
+ bodyHtml += "<td \n class='websy-table-cell ".concat(sizeIndex < _this36.pinnedColumns ? 'pinned' : 'unpinned', " ").concat((cell.classes || []).join(' '), "'\n style='").concat(style, "'\n data-info='").concat(cell.value, "'\n colspan='").concat(cell.colspan || 1, "'\n rowspan='").concat(cell.rowspan || 1, "'\n data-row-index='").concat(rowIndex, "'\n data-col-index='").concat(cellIndex, "'\n "); // if (useWidths === true) {
6283
6292
  // bodyHtml += `
6284
6293
  // style='width: ${sizingColumns[cellIndex].width || sizingColumns[cellIndex].actualWidth}px!important'
6285
6294
  // width='${sizingColumns[cellIndex].width || sizingColumns[cellIndex].actualWidth}'
@@ -7961,7 +7970,7 @@ var WebsyChart = /*#__PURE__*/function () {
7961
7970
  }
7962
7971
  }
7963
7972
 
7964
- bars.exit().transition(this.transition).style('stroke-opacity', 1e-6).remove();
7973
+ bars.exit().transition(this.transition).style('fill-opacity', 1e-6).remove();
7965
7974
  bars.attr('width', getBarWidth.bind(this)).attr('height', getBarHeight.bind(this)).attr('x', getBarX.bind(this)).attr('y', getBarY.bind(this)).transition(this.transition).attr('fill', function (d) {
7966
7975
  return d.y.color || d.color || series.color;
7967
7976
  });
@@ -7972,6 +7981,12 @@ var WebsyChart = /*#__PURE__*/function () {
7972
7981
  return "bar bar_".concat(series.key);
7973
7982
  });
7974
7983
  }
7984
+ }, {
7985
+ key: "removebar",
7986
+ value: function removebar(key) {
7987
+ /* global key d3 */
7988
+ var bars = this.barLayer.selectAll(".bar_".concat(key)).transition(this.transition).style('fill-opacity', 1e-6).remove();
7989
+ }
7975
7990
  }, {
7976
7991
  key: "renderLabels",
7977
7992
  value: function renderLabels(series, index) {