@geode/opengeodeweb-front 9.7.5 → 9.8.0-rc.1
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.
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<v-sheet
|
|
3
|
+
:width="width + 'px'"
|
|
4
|
+
class="z-scaling-menu"
|
|
5
|
+
elevation="10"
|
|
6
|
+
rounded="lg"
|
|
7
|
+
>
|
|
8
|
+
<v-card class="bg-primary pa-4" elevation="0">
|
|
9
|
+
<v-card-title class="d-flex justify-space-between align-center">
|
|
10
|
+
<h3 class="text-h5 font-weight-bold">Z Scaling Control</h3>
|
|
11
|
+
</v-card-title>
|
|
12
|
+
<v-card-text class="pt-4">
|
|
13
|
+
<v-container>
|
|
14
|
+
<v-row>
|
|
15
|
+
<v-col cols="12" class="py-2">
|
|
16
|
+
<v-slider
|
|
17
|
+
v-model="zScale"
|
|
18
|
+
:min="1"
|
|
19
|
+
:max="10"
|
|
20
|
+
:step="0.2"
|
|
21
|
+
label="Z Scale"
|
|
22
|
+
thumb-label
|
|
23
|
+
color="white"
|
|
24
|
+
track-color="white"
|
|
25
|
+
/>
|
|
26
|
+
</v-col>
|
|
27
|
+
</v-row>
|
|
28
|
+
<v-row>
|
|
29
|
+
<v-col cols="12" class="py-2">
|
|
30
|
+
<v-text-field
|
|
31
|
+
v-model.number="zScale"
|
|
32
|
+
type="number"
|
|
33
|
+
label="Z Scale Value"
|
|
34
|
+
outlined
|
|
35
|
+
dense
|
|
36
|
+
hide-details
|
|
37
|
+
step="0.1"
|
|
38
|
+
class="custom-number-input"
|
|
39
|
+
:min="1"
|
|
40
|
+
/>
|
|
41
|
+
</v-col>
|
|
42
|
+
</v-row>
|
|
43
|
+
</v-container>
|
|
44
|
+
</v-card-text>
|
|
45
|
+
<v-card-actions class="justify-center pb-4">
|
|
46
|
+
<v-btn
|
|
47
|
+
variant="text"
|
|
48
|
+
color="white"
|
|
49
|
+
@click="$emit('close')"
|
|
50
|
+
class="px-4"
|
|
51
|
+
>
|
|
52
|
+
Close
|
|
53
|
+
</v-btn>
|
|
54
|
+
<v-btn
|
|
55
|
+
variant="outlined"
|
|
56
|
+
color="white"
|
|
57
|
+
@click="$emit('close')"
|
|
58
|
+
class="px-4"
|
|
59
|
+
>
|
|
60
|
+
Apply
|
|
61
|
+
</v-btn>
|
|
62
|
+
</v-card-actions>
|
|
63
|
+
</v-card>
|
|
64
|
+
</v-sheet>
|
|
65
|
+
</template>
|
|
66
|
+
|
|
67
|
+
<script setup>
|
|
68
|
+
const zScale = defineModel({ type: Number, default: 1 })
|
|
69
|
+
const props = defineProps({
|
|
70
|
+
width: { type: Number, default: 400 },
|
|
71
|
+
})
|
|
72
|
+
</script>
|
|
73
|
+
|
|
74
|
+
<style scoped>
|
|
75
|
+
.z-scaling-menu {
|
|
76
|
+
position: absolute;
|
|
77
|
+
z-index: 2;
|
|
78
|
+
top: 90px;
|
|
79
|
+
right: 55px;
|
|
80
|
+
border-radius: 12px !important;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.custom-number-input :deep(.v-input__control) {
|
|
84
|
+
min-height: 48px;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.v-btn {
|
|
88
|
+
border-radius: 8px;
|
|
89
|
+
text-transform: none;
|
|
90
|
+
font-weight: 500;
|
|
91
|
+
letter-spacing: normal;
|
|
92
|
+
}
|
|
93
|
+
</style>
|
package/package.json
CHANGED
|
@@ -13,7 +13,7 @@ const vuetify = createVuetify({
|
|
|
13
13
|
})
|
|
14
14
|
|
|
15
15
|
describe("FeedBackErrorBanner.vue", async () => {
|
|
16
|
-
test(`Test reload`, async () => {
|
|
16
|
+
;(test(`Test reload`, async () => {
|
|
17
17
|
const wrapper = mount(FeedBackErrorBanner, {
|
|
18
18
|
global: {
|
|
19
19
|
plugins: [createTestingPinia(), vuetify],
|
|
@@ -48,5 +48,5 @@ describe("FeedBackErrorBanner.vue", async () => {
|
|
|
48
48
|
const v_btn = wrapper.findAll(".v-btn")
|
|
49
49
|
await v_btn[1].trigger("click")
|
|
50
50
|
expect(feedback_store.server_error).toBe(false)
|
|
51
|
-
})
|
|
51
|
+
}))
|
|
52
52
|
})
|