@geode/opengeodeweb-front 10.41.0-rc.3 → 10.41.0-rc.4
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.
|
@@ -23,56 +23,50 @@ function commitTimeStep(value: number): void {
|
|
|
23
23
|
|
|
24
24
|
function formatTime(index: number): string {
|
|
25
25
|
const time = timeSteps[index];
|
|
26
|
-
return time === undefined ? "" : `
|
|
26
|
+
return time === undefined ? "" : `timestep = ${time}`;
|
|
27
27
|
}
|
|
28
28
|
</script>
|
|
29
29
|
|
|
30
30
|
<template>
|
|
31
|
-
<v-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
</
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
{{ formatTime(index) }}
|
|
31
|
+
<div v-if="timeSteps.length > 1" class="mt-3">
|
|
32
|
+
<div data-testid="timeStepValue" class="time-step-value">
|
|
33
|
+
{{ formatTime(sliderTimeStep) }}
|
|
34
|
+
</div>
|
|
35
|
+
<v-slider
|
|
36
|
+
data-testid="timeStepSlider"
|
|
37
|
+
v-model="sliderTimeStep"
|
|
38
|
+
:min="0"
|
|
39
|
+
:max="timeSteps.length - 1"
|
|
40
|
+
:step="1"
|
|
41
|
+
color="primary"
|
|
42
|
+
density="compact"
|
|
43
|
+
class="time-step-slider"
|
|
44
|
+
hide-details
|
|
45
|
+
show-ticks="always"
|
|
46
|
+
:tick-size="10"
|
|
47
|
+
thumb-label="hover"
|
|
48
|
+
@end="commitTimeStep"
|
|
49
|
+
@keyup="commitTimeStep(sliderTimeStep)"
|
|
50
|
+
>
|
|
51
|
+
<template #thumb-label="{ modelValue }">{{ formatTime(modelValue) }}</template>
|
|
52
|
+
<template #tick-label="{ index }">
|
|
53
|
+
<span class="time-step-tick">
|
|
54
|
+
<span class="v-slider-thumb__label time-step-tick-label">
|
|
55
|
+
<span class="v-slider-thumb__label-wedge" />
|
|
56
|
+
{{ formatTime(index) }}
|
|
57
|
+
</span>
|
|
59
58
|
</span>
|
|
60
|
-
</
|
|
61
|
-
</
|
|
62
|
-
</
|
|
59
|
+
</template>
|
|
60
|
+
</v-slider>
|
|
61
|
+
</div>
|
|
63
62
|
</template>
|
|
64
63
|
|
|
65
64
|
<style scoped>
|
|
66
65
|
.time-step-value {
|
|
67
|
-
min-width: 32px;
|
|
68
66
|
white-space: nowrap;
|
|
69
67
|
font-size: 0.8125rem;
|
|
70
68
|
}
|
|
71
69
|
|
|
72
|
-
.time-step-slider.v-slider.v-input--horizontal :deep(.v-input__prepend) {
|
|
73
|
-
margin-inline-end: 4px;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
70
|
.time-step-slider :deep(.v-slider-thumb__label) {
|
|
77
71
|
width: auto;
|
|
78
72
|
white-space: nowrap;
|
package/package.json
CHANGED