@geode/opengeodeweb-front 10.34.0-rc.19 → 10.34.0-rc.20
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.
|
@@ -17,6 +17,7 @@ function calc_margin(index: number): string {
|
|
|
17
17
|
v-for="(feedback, index) in feedbackStore.feedbacks"
|
|
18
18
|
:key="feedback.id"
|
|
19
19
|
v-model="show"
|
|
20
|
+
data-testid="feedbackSnackbar"
|
|
20
21
|
:style="{ 'margin-bottom': calc_margin(index) }"
|
|
21
22
|
:color="feedback.type"
|
|
22
23
|
location="bottom right"
|
|
@@ -67,7 +68,7 @@ function calc_margin(index: number): string {
|
|
|
67
68
|
variant="flat"
|
|
68
69
|
size="20"
|
|
69
70
|
:color="feedback.type"
|
|
70
|
-
@click="feedbackStore.delete_feedback(feedback.id)"
|
|
71
|
+
@click.stop="feedbackStore.delete_feedback(feedback.id)"
|
|
71
72
|
>
|
|
72
73
|
<v-icon icon="mdi-close" size="20" color="white" />
|
|
73
74
|
</v-btn>
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { ClickOutside } from "vuetify/directives/click-outside";
|
|
2
|
+
import type { DirectiveBinding } from "vue";
|
|
3
|
+
|
|
4
|
+
type ClickOutsideValue =
|
|
5
|
+
| ((event: MouseEvent) => void)
|
|
6
|
+
| {
|
|
7
|
+
handler: (event: MouseEvent) => void;
|
|
8
|
+
closeConditional?: (event: Event) => boolean;
|
|
9
|
+
include?: () => HTMLElement[];
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
function snackbarElements(): HTMLElement[] {
|
|
13
|
+
return [...document.querySelectorAll<HTMLElement>(".v-snackbar")];
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export default defineNuxtPlugin({
|
|
17
|
+
name: "click-outside-ignore-snackbars",
|
|
18
|
+
setup() {
|
|
19
|
+
const originalMounted = ClickOutside.mounted;
|
|
20
|
+
|
|
21
|
+
ClickOutside.mounted = (element: HTMLElement, binding: DirectiveBinding<ClickOutsideValue>) => {
|
|
22
|
+
const { value } = binding;
|
|
23
|
+
const handler = typeof value === "function" ? value : value.handler;
|
|
24
|
+
const closeConditional = typeof value === "function" ? undefined : value.closeConditional;
|
|
25
|
+
const include = typeof value === "function" ? undefined : value.include;
|
|
26
|
+
|
|
27
|
+
binding.value = {
|
|
28
|
+
handler,
|
|
29
|
+
closeConditional,
|
|
30
|
+
include: () => [...(include?.() ?? []), ...snackbarElements()],
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
originalMounted(element, binding);
|
|
34
|
+
};
|
|
35
|
+
},
|
|
36
|
+
});
|
|
@@ -42,6 +42,7 @@ async function viewer_call(
|
|
|
42
42
|
): Promise<unknown> {
|
|
43
43
|
const feedbackStore = useFeedbackStore();
|
|
44
44
|
const { client } = microservice;
|
|
45
|
+
microservice.start_request();
|
|
45
46
|
|
|
46
47
|
const requestStartingTime = startRequestLog(microservice, schema);
|
|
47
48
|
const result = await callSchema(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@geode/opengeodeweb-front",
|
|
3
|
-
"version": "10.34.0-rc.
|
|
3
|
+
"version": "10.34.0-rc.20",
|
|
4
4
|
"description": "OpenSource Vue/Nuxt/Pinia/Vuetify framework for web applications",
|
|
5
5
|
"homepage": "https://github.com/Geode-solutions/OpenGeodeWeb-Front",
|
|
6
6
|
"bugs": {
|