@dative-gpi/foundation-shared-components 1.0.128-fix-mobile-8 → 1.0.128-fix-mobile-9
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/components/map/FSMapOverlay.vue +44 -18
- package/package.json +4 -4
|
@@ -22,16 +22,37 @@
|
|
|
22
22
|
height="100%"
|
|
23
23
|
gap="0px"
|
|
24
24
|
>
|
|
25
|
-
<
|
|
26
|
-
|
|
27
|
-
@touchstart="$props.mode === 'expand' ? $emit('update:mode', 'collapse') : $emit('update:mode', 'expand')"
|
|
25
|
+
<template
|
|
26
|
+
v-if="isTouchScreenEnabled"
|
|
28
27
|
>
|
|
29
|
-
<
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
28
|
+
<FSRow
|
|
29
|
+
align="center-center"
|
|
30
|
+
@touchstart="$props.mode === 'expand' ? $emit('update:mode', 'collapse') : $emit('update:mode', 'expand')"
|
|
31
|
+
>
|
|
32
|
+
<FSIcon>
|
|
33
|
+
{{ $props.mode === 'expand' ? 'mdi-chevron-down' : 'mdi-chevron-up' }}
|
|
34
|
+
</FSIcon>
|
|
35
|
+
<slot
|
|
36
|
+
name="collapsed"
|
|
37
|
+
/>
|
|
38
|
+
</FSRow>
|
|
39
|
+
</template>
|
|
40
|
+
<template
|
|
41
|
+
v-else
|
|
42
|
+
>
|
|
43
|
+
<FSRow
|
|
44
|
+
align="center-center"
|
|
45
|
+
>
|
|
46
|
+
<FSButton
|
|
47
|
+
variant="icon"
|
|
48
|
+
:icon="$props.mode === 'expand' ? 'mdi-chevron-down' : 'mdi-chevron-up'"
|
|
49
|
+
@click="$props.mode === 'expand' ? $emit('update:mode', 'collapse') : $emit('update:mode', 'expand')"
|
|
50
|
+
/>
|
|
51
|
+
<slot
|
|
52
|
+
name="collapsed"
|
|
53
|
+
/>
|
|
54
|
+
</FSRow>
|
|
55
|
+
</template>
|
|
35
56
|
<FSCol
|
|
36
57
|
v-if="$props.mode !== 'collapse'"
|
|
37
58
|
height="fill"
|
|
@@ -64,14 +85,24 @@
|
|
|
64
85
|
|
|
65
86
|
<script lang="ts">
|
|
66
87
|
import { defineComponent, type PropType, onUnmounted, onMounted, ref } from "vue";
|
|
88
|
+
|
|
67
89
|
import { useBreakpoints } from "../../composables";
|
|
90
|
+
|
|
68
91
|
import FSButton from "../FSButton.vue";
|
|
69
92
|
import FSCard from "../FSCard.vue";
|
|
93
|
+
import FSIcon from "../FSIcon.vue";
|
|
70
94
|
import FSCol from "../FSCol.vue";
|
|
71
95
|
import FSRow from "../FSRow.vue";
|
|
72
96
|
|
|
73
97
|
export default defineComponent({
|
|
74
98
|
name: "FSMapOverlay",
|
|
99
|
+
components: {
|
|
100
|
+
FSButton,
|
|
101
|
+
FSCard,
|
|
102
|
+
FSIcon,
|
|
103
|
+
FSCol,
|
|
104
|
+
FSRow
|
|
105
|
+
},
|
|
75
106
|
props: {
|
|
76
107
|
mode: {
|
|
77
108
|
type: String as PropType<"collapse" | "half" | "expand">,
|
|
@@ -79,15 +110,9 @@ export default defineComponent({
|
|
|
79
110
|
default: "collapse"
|
|
80
111
|
}
|
|
81
112
|
},
|
|
82
|
-
components: {
|
|
83
|
-
FSButton,
|
|
84
|
-
FSCard,
|
|
85
|
-
FSCol,
|
|
86
|
-
FSRow
|
|
87
|
-
},
|
|
88
113
|
emits: ["update:mode", "update:height", "update:width"],
|
|
89
114
|
setup(_, { emit }) {
|
|
90
|
-
const { isExtraSmall } = useBreakpoints();
|
|
115
|
+
const { isExtraSmall, isTouchScreenEnabled } = useBreakpoints();
|
|
91
116
|
|
|
92
117
|
const mobileOverlayWrapper = ref<HTMLDivElement | null>(null);
|
|
93
118
|
const desktopOverlay = ref<InstanceType<typeof FSCard> | null>(null);
|
|
@@ -129,9 +154,10 @@ export default defineComponent({
|
|
|
129
154
|
});
|
|
130
155
|
|
|
131
156
|
return {
|
|
132
|
-
isExtraSmall,
|
|
133
157
|
mobileOverlayWrapper,
|
|
134
|
-
|
|
158
|
+
isTouchScreenEnabled,
|
|
159
|
+
desktopOverlay,
|
|
160
|
+
isExtraSmall,
|
|
135
161
|
};
|
|
136
162
|
}
|
|
137
163
|
});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dative-gpi/foundation-shared-components",
|
|
3
3
|
"sideEffects": false,
|
|
4
|
-
"version": "1.0.128-fix-mobile-
|
|
4
|
+
"version": "1.0.128-fix-mobile-9",
|
|
5
5
|
"description": "",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
"author": "",
|
|
11
11
|
"license": "ISC",
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@dative-gpi/foundation-shared-domain": "1.0.128-fix-mobile-
|
|
14
|
-
"@dative-gpi/foundation-shared-services": "1.0.128-fix-mobile-
|
|
13
|
+
"@dative-gpi/foundation-shared-domain": "1.0.128-fix-mobile-9",
|
|
14
|
+
"@dative-gpi/foundation-shared-services": "1.0.128-fix-mobile-9"
|
|
15
15
|
},
|
|
16
16
|
"peerDependencies": {
|
|
17
17
|
"@dative-gpi/bones-ui": "^1.0.0",
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"sass": "1.71.1",
|
|
36
36
|
"sass-loader": "13.3.2"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "ae39c0118a3ed2d46752bfe37fb089d70e51e7ca"
|
|
39
39
|
}
|