@websy/websy-designs 1.4.26 → 1.4.27

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.
@@ -2580,7 +2580,8 @@ class WebsyNavigationMenu {
2580
2580
  }
2581
2581
  handleSearch (searchText) {
2582
2582
  const el = document.getElementById(this.elementId)
2583
- let lowestItems = this.flatItems.filter(d => d.level === this.maxLevel)
2583
+ // let lowestItems = this.flatItems.filter(d => d.level === this.maxLevel)
2584
+ let lowestItems = this.flatItems.filter(d => !d.hasChildren)
2584
2585
  let visibleItems = lowestItems
2585
2586
  let defaultMethod = 'remove'
2586
2587
  if (searchText && searchText.length > 1) {
@@ -7223,7 +7224,6 @@ else {
7223
7224
  if (this.rightAxis.nice) {
7224
7225
  this.rightAxis.nice()
7225
7226
  }
7226
- console.log('axis right', this.options.margin.axisRight)
7227
7227
  if (this.options.margin.axisRight > 0 && (this.options.data.right.min !== 0 || this.options.data.right.max !== 0)) {
7228
7228
  this.rightAxisLayer.call(
7229
7229
  d3.axisRight(this.rightAxis)
@@ -8233,8 +8233,7 @@ class WebsyChartTooltip {
8233
8233
  }
8234
8234
  if (position.onTop === true) {
8235
8235
  classes.push('top')
8236
- }
8237
- console.log(classes.join(' '))
8236
+ }
8238
8237
  let fO = this.tooltipLayer
8239
8238
  .selectAll('foreignObject')
8240
8239
  .attr('width', `${position.width}px`)
@@ -2734,9 +2734,10 @@ var WebsyNavigationMenu = /*#__PURE__*/function () {
2734
2734
  value: function handleSearch(searchText) {
2735
2735
  var _this17 = this;
2736
2736
 
2737
- var el = document.getElementById(this.elementId);
2737
+ var el = document.getElementById(this.elementId); // let lowestItems = this.flatItems.filter(d => d.level === this.maxLevel)
2738
+
2738
2739
  var lowestItems = this.flatItems.filter(function (d) {
2739
- return d.level === _this17.maxLevel;
2740
+ return !d.hasChildren;
2740
2741
  });
2741
2742
  var visibleItems = lowestItems;
2742
2743
  var defaultMethod = 'remove';
@@ -7910,8 +7911,6 @@ var WebsyChart = /*#__PURE__*/function () {
7910
7911
  this.rightAxis.nice();
7911
7912
  }
7912
7913
 
7913
- console.log('axis right', this.options.margin.axisRight);
7914
-
7915
7914
  if (this.options.margin.axisRight > 0 && (this.options.data.right.min !== 0 || this.options.data.right.max !== 0)) {
7916
7915
  this.rightAxisLayer.call(d3.axisRight(this.rightAxis).ticks(this.options.data.left.ticks || 5).tickFormat(function (d) {
7917
7916
  if (_this44.options.data.right.formatter) {
@@ -8910,7 +8909,6 @@ var WebsyChartTooltip = /*#__PURE__*/function () {
8910
8909
  classes.push('top');
8911
8910
  }
8912
8911
 
8913
- console.log(classes.join(' '));
8914
8912
  var fO = this.tooltipLayer.selectAll('foreignObject').attr('width', "".concat(position.width, "px")) // .attr('height', `${position.height}px`)
8915
8913
  // .attr('y', `0px`)
8916
8914
  .attr('class', "websy-chart-tooltip ".concat(classes.join(' ')));