@websy/websy-designs 1.4.26 → 1.4.28
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) {
|
|
@@ -2612,7 +2613,6 @@ class WebsyNavigationMenu {
|
|
|
2612
2613
|
})
|
|
2613
2614
|
})
|
|
2614
2615
|
}
|
|
2615
|
-
console.log('visibleItems', visibleItems)
|
|
2616
2616
|
}
|
|
2617
2617
|
normaliseString (text) {
|
|
2618
2618
|
return text.replace(/-/g, '').replace(/\s/g, '_')
|
|
@@ -4731,6 +4731,9 @@ const WebsyUtils = {
|
|
|
4731
4731
|
},
|
|
4732
4732
|
toQlikDateNum: d => {
|
|
4733
4733
|
return Math.floor(d.getTime() / 86400000 + 25570)
|
|
4734
|
+
},
|
|
4735
|
+
toQlikDate: d => {
|
|
4736
|
+
return Math.floor(d.getTime() / 86400000 + 25570)
|
|
4734
4737
|
}
|
|
4735
4738
|
}
|
|
4736
4739
|
|
|
@@ -7223,7 +7226,6 @@ else {
|
|
|
7223
7226
|
if (this.rightAxis.nice) {
|
|
7224
7227
|
this.rightAxis.nice()
|
|
7225
7228
|
}
|
|
7226
|
-
console.log('axis right', this.options.margin.axisRight)
|
|
7227
7229
|
if (this.options.margin.axisRight > 0 && (this.options.data.right.min !== 0 || this.options.data.right.max !== 0)) {
|
|
7228
7230
|
this.rightAxisLayer.call(
|
|
7229
7231
|
d3.axisRight(this.rightAxis)
|
|
@@ -8233,8 +8235,7 @@ class WebsyChartTooltip {
|
|
|
8233
8235
|
}
|
|
8234
8236
|
if (position.onTop === true) {
|
|
8235
8237
|
classes.push('top')
|
|
8236
|
-
}
|
|
8237
|
-
console.log(classes.join(' '))
|
|
8238
|
+
}
|
|
8238
8239
|
let fO = this.tooltipLayer
|
|
8239
8240
|
.selectAll('foreignObject')
|
|
8240
8241
|
.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.
|
|
2740
|
+
return !d.hasChildren;
|
|
2740
2741
|
});
|
|
2741
2742
|
var visibleItems = lowestItems;
|
|
2742
2743
|
var defaultMethod = 'remove';
|
|
@@ -2780,8 +2781,6 @@ var WebsyNavigationMenu = /*#__PURE__*/function () {
|
|
|
2780
2781
|
});
|
|
2781
2782
|
});
|
|
2782
2783
|
}
|
|
2783
|
-
|
|
2784
|
-
console.log('visibleItems', visibleItems);
|
|
2785
2784
|
}
|
|
2786
2785
|
}, {
|
|
2787
2786
|
key: "normaliseString",
|
|
@@ -5265,6 +5264,9 @@ var WebsyUtils = {
|
|
|
5265
5264
|
},
|
|
5266
5265
|
toQlikDateNum: function toQlikDateNum(d) {
|
|
5267
5266
|
return Math.floor(d.getTime() / 86400000 + 25570);
|
|
5267
|
+
},
|
|
5268
|
+
toQlikDate: function toQlikDate(d) {
|
|
5269
|
+
return Math.floor(d.getTime() / 86400000 + 25570);
|
|
5268
5270
|
}
|
|
5269
5271
|
};
|
|
5270
5272
|
/* global WebsyDesigns */
|
|
@@ -7910,8 +7912,6 @@ var WebsyChart = /*#__PURE__*/function () {
|
|
|
7910
7912
|
this.rightAxis.nice();
|
|
7911
7913
|
}
|
|
7912
7914
|
|
|
7913
|
-
console.log('axis right', this.options.margin.axisRight);
|
|
7914
|
-
|
|
7915
7915
|
if (this.options.margin.axisRight > 0 && (this.options.data.right.min !== 0 || this.options.data.right.max !== 0)) {
|
|
7916
7916
|
this.rightAxisLayer.call(d3.axisRight(this.rightAxis).ticks(this.options.data.left.ticks || 5).tickFormat(function (d) {
|
|
7917
7917
|
if (_this44.options.data.right.formatter) {
|
|
@@ -8910,7 +8910,6 @@ var WebsyChartTooltip = /*#__PURE__*/function () {
|
|
|
8910
8910
|
classes.push('top');
|
|
8911
8911
|
}
|
|
8912
8912
|
|
|
8913
|
-
console.log(classes.join(' '));
|
|
8914
8913
|
var fO = this.tooltipLayer.selectAll('foreignObject').attr('width', "".concat(position.width, "px")) // .attr('height', `${position.height}px`)
|
|
8915
8914
|
// .attr('y', `0px`)
|
|
8916
8915
|
.attr('class', "websy-chart-tooltip ".concat(classes.join(' ')));
|