@tekkare/auriga 0.2.177 → 0.2.179

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.177"
7
+ "version": "0.2.179"
8
8
  }
@@ -159,10 +159,16 @@ export default defineComponent({
159
159
  }
160
160
  );
161
161
  await props.beforeExport();
162
- if (props.posthogHost !== null && props.posthogKey !== null && props.posthogProperties !== null) {
162
+ if (props.posthogHost !== null && props.posthogKey !== null) {
163
163
  const eventName = "downloadExcel";
164
+ const eventProps = {
165
+ title: `${props.exportName}-from_${currentDate}`
166
+ };
164
167
  try {
165
- posthog.capture(eventName, props.posthogProperties);
168
+ posthog.capture(
169
+ eventName,
170
+ props.posthogProperties !== null ? props.posthogProperties : eventProps
171
+ );
166
172
  } catch (error) {
167
173
  console.warn(
168
174
  "PostHog not initialized or event capture failed.",
@@ -106,11 +106,21 @@ export default defineComponent({
106
106
  }
107
107
  );
108
108
  function openFromScroll() {
109
- if (!props.autoOpen) {
110
- filtersOpen.value = false;
111
- }
112
- if (props.autoOpen) {
113
- filtersOpen.value = window.scrollY === 0;
109
+ const dropdown = Array.from(
110
+ document.getElementsByClassName("oip_select_dropdown_block")
111
+ );
112
+ const complex = Array.from(
113
+ document.getElementsByClassName("oip_select_complex_block")
114
+ );
115
+ const fullLength = dropdown.length + complex.length;
116
+ const allDropdownClosed = dropdown.every(
117
+ (a) => a?.attributes?.style?.value?.includes("display: none")
118
+ );
119
+ const allcomplexClosed = complex.every(
120
+ (a) => a?.attributes?.style?.value?.includes("display: none")
121
+ );
122
+ if (fullLength === 0 || allDropdownClosed && allcomplexClosed) {
123
+ filtersOpen.value = !props.autoOpen ? false : window.scrollY === 0;
114
124
  }
115
125
  }
116
126
  onUpdated(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tekkare/auriga",
3
- "version": "0.2.177",
3
+ "version": "0.2.179",
4
4
  "description": "Aurgia is a UI kit developped by Tekkare",
5
5
  "license": "MIT",
6
6
  "type": "module",