@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
|
@@ -159,10 +159,16 @@ export default defineComponent({
|
|
|
159
159
|
}
|
|
160
160
|
);
|
|
161
161
|
await props.beforeExport();
|
|
162
|
-
if (props.posthogHost !== null && props.posthogKey !== 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(
|
|
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
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
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(() => {
|