@tekkare/auriga 0.2.160 → 0.2.162

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.
package/dist/module.json CHANGED
@@ -4,5 +4,5 @@
4
4
  "compatibility": {
5
5
  "nuxt": "^3.0.0"
6
6
  },
7
- "version": "0.2.160"
7
+ "version": "0.2.162"
8
8
  }
@@ -419,9 +419,12 @@ export default defineComponent({
419
419
  }).format(value);
420
420
  }
421
421
  if (!compactMode) {
422
- returnValue = new Intl.NumberFormat("fr-FR").format(value);
422
+ if (returnValue === null) {
423
+ returnValue = "-";
424
+ } else
425
+ returnValue = new Intl.NumberFormat("fr-FR").format(value);
423
426
  }
424
- if (hasPercentages) {
427
+ if (hasPercentages && value !== null) {
425
428
  let seriesTotal = seriesData[opt.seriesIndex].data.reduce(
426
429
  (a, b) => a + b,
427
430
  0
@@ -108,12 +108,15 @@ export default defineComponent({
108
108
  }
109
109
  );
110
110
  function openFromScroll() {
111
+ const input = document.getElementById("search_input_advanced");
111
112
  if (window.scrollY !== lastScrollY.value) {
112
113
  isUserScrolling.value = true;
113
114
  }
114
115
  if (!props.autoOpen) {
115
116
  if (window.scrollY > 0) {
116
- if (isUserScrolling.value) {
117
+ if (input && document.activeElement && document.activeElement === input) {
118
+ return;
119
+ } else if (isUserScrolling.value) {
117
120
  filtersOpen.value = false;
118
121
  }
119
122
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tekkare/auriga",
3
- "version": "0.2.160",
3
+ "version": "0.2.162",
4
4
  "description": "Aurgia is a UI kit developped by Tekkare",
5
5
  "license": "MIT",
6
6
  "type": "module",