@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.
@@ -2839,7 +2839,8 @@ class WebsyNavigationMenu {
2839
2839
  }
2840
2840
  handleSearch (searchText) {
2841
2841
  const el = document.getElementById(this.elementId)
2842
- let lowestItems = this.flatItems.filter(d => d.level === this.maxLevel)
2842
+ // let lowestItems = this.flatItems.filter(d => d.level === this.maxLevel)
2843
+ let lowestItems = this.flatItems.filter(d => !d.hasChildren)
2843
2844
  let visibleItems = lowestItems
2844
2845
  let defaultMethod = 'remove'
2845
2846
  if (searchText && searchText.length > 1) {
@@ -7635,7 +7636,6 @@ else {
7635
7636
  if (this.rightAxis.nice) {
7636
7637
  this.rightAxis.nice()
7637
7638
  }
7638
- console.log('axis right', this.options.margin.axisRight)
7639
7639
  if (this.options.margin.axisRight > 0 && (this.options.data.right.min !== 0 || this.options.data.right.max !== 0)) {
7640
7640
  this.rightAxisLayer.call(
7641
7641
  d3.axisRight(this.rightAxis)
@@ -8645,8 +8645,7 @@ class WebsyChartTooltip {
8645
8645
  }
8646
8646
  if (position.onTop === true) {
8647
8647
  classes.push('top')
8648
- }
8649
- console.log(classes.join(' '))
8648
+ }
8650
8649
  let fO = this.tooltipLayer
8651
8650
  .selectAll('foreignObject')
8652
8651
  .attr('width', `${position.width}px`)
@@ -3036,9 +3036,10 @@ var WebsyNavigationMenu = /*#__PURE__*/function () {
3036
3036
  value: function handleSearch(searchText) {
3037
3037
  var _this19 = this;
3038
3038
 
3039
- var el = document.getElementById(this.elementId);
3039
+ var el = document.getElementById(this.elementId); // let lowestItems = this.flatItems.filter(d => d.level === this.maxLevel)
3040
+
3040
3041
  var lowestItems = this.flatItems.filter(function (d) {
3041
- return d.level === _this19.maxLevel;
3042
+ return !d.hasChildren;
3042
3043
  });
3043
3044
  var visibleItems = lowestItems;
3044
3045
  var defaultMethod = 'remove';
@@ -8386,8 +8387,6 @@ var WebsyChart = /*#__PURE__*/function () {
8386
8387
  this.rightAxis.nice();
8387
8388
  }
8388
8389
 
8389
- console.log('axis right', this.options.margin.axisRight);
8390
-
8391
8390
  if (this.options.margin.axisRight > 0 && (this.options.data.right.min !== 0 || this.options.data.right.max !== 0)) {
8392
8391
  this.rightAxisLayer.call(d3.axisRight(this.rightAxis).ticks(this.options.data.left.ticks || 5).tickFormat(function (d) {
8393
8392
  if (_this47.options.data.right.formatter) {
@@ -9386,7 +9385,6 @@ var WebsyChartTooltip = /*#__PURE__*/function () {
9386
9385
  classes.push('top');
9387
9386
  }
9388
9387
 
9389
- console.log(classes.join(' '));
9390
9388
  var fO = this.tooltipLayer.selectAll('foreignObject').attr('width', "".concat(position.width, "px")) // .attr('height', `${position.height}px`)
9391
9389
  // .attr('y', `0px`)
9392
9390
  .attr('class', "websy-chart-tooltip ".concat(classes.join(' ')));