@dative-gpi/foundation-shared-components 1.1.16 → 1.1.18
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/assets/images/map/open-street-map.png +0 -0
- package/components/FSAccordionPanel.vue +2 -0
- package/components/FSButton.vue +2 -0
- package/components/FSDialogContent.vue +2 -0
- package/components/FSDialogFormBody.vue +2 -0
- package/components/FSDivider.vue +5 -1
- package/components/FSEditImageUI.vue +2 -0
- package/components/FSGridMosaic.vue +2 -0
- package/components/FSIconCard.vue +3 -1
- package/components/FSInstantPicker.vue +2 -0
- package/components/FSPlayButtons.vue +3 -1
- package/components/FSRangePicker.vue +2 -0
- package/components/FSWindow.vue +2 -0
- package/components/deviceOrganisations/FSStatusRichCard.vue +2 -0
- package/components/fields/FSDurationField.vue +184 -0
- package/components/fields/FSRichTextField.vue +2 -0
- package/components/lists/FSDataIteratorItem.vue +2 -0
- package/components/lists/FSDataTableUI.vue +4 -0
- package/components/tiles/FSChartTileUI.vue +2 -0
- package/components/tiles/FSLocationTileUI.vue +2 -0
- package/components/tiles/FSServiceAccountOrganisationTileUI.vue +2 -0
- package/components/tiles/FSTile.vue +3 -1
- package/components/tiles/FSUserOrganisationTileUI.vue +2 -0
- package/components/toggleSets/FSToggleSetPosition.vue +5 -0
- package/composables/useMapLayers.ts +12 -0
- package/models/map.ts +2 -1
- package/package.json +4 -4
|
Binary file
|
|
@@ -77,6 +77,7 @@ import FSRichTextField from "./fields/FSRichTextField.vue";
|
|
|
77
77
|
import FSIcon from "./FSIcon.vue";
|
|
78
78
|
import FSSpan from "./FSSpan.vue";
|
|
79
79
|
import FSText from "./FSText.vue";
|
|
80
|
+
import FSCol from "./FSCol.vue";
|
|
80
81
|
import FSRow from "./FSRow.vue";
|
|
81
82
|
|
|
82
83
|
export default defineComponent({
|
|
@@ -86,6 +87,7 @@ export default defineComponent({
|
|
|
86
87
|
FSIcon,
|
|
87
88
|
FSSpan,
|
|
88
89
|
FSText,
|
|
90
|
+
FSCol,
|
|
89
91
|
FSRow
|
|
90
92
|
},
|
|
91
93
|
props: {
|
package/components/FSButton.vue
CHANGED
|
@@ -141,6 +141,7 @@ import { useColors } from "@dative-gpi/foundation-shared-components/composables"
|
|
|
141
141
|
|
|
142
142
|
import FSRouterLink from './FSRouterLink.vue';
|
|
143
143
|
import FSText from "./FSText.vue";
|
|
144
|
+
import FSSpan from "./FSSpan.vue";
|
|
144
145
|
import FSIcon from "./FSIcon.vue";
|
|
145
146
|
import FSCard from './FSCard.vue';
|
|
146
147
|
import FSCol from "./FSCol.vue";
|
|
@@ -158,6 +159,7 @@ export default defineComponent({
|
|
|
158
159
|
FSRouterLink,
|
|
159
160
|
FSCard,
|
|
160
161
|
FSText,
|
|
162
|
+
FSSpan,
|
|
161
163
|
FSIcon,
|
|
162
164
|
FSCol,
|
|
163
165
|
FSRow
|
|
@@ -68,6 +68,7 @@ import { sizeToVar } from "@dative-gpi/foundation-shared-components/utils";
|
|
|
68
68
|
import FSButton from "./FSButton.vue";
|
|
69
69
|
import FSCard from "./FSCard.vue";
|
|
70
70
|
import FSText from "./FSText.vue";
|
|
71
|
+
import FSCol from "./FSCol.vue";
|
|
71
72
|
import FSRow from "./FSRow.vue";
|
|
72
73
|
|
|
73
74
|
export default defineComponent({
|
|
@@ -76,6 +77,7 @@ export default defineComponent({
|
|
|
76
77
|
FSButton,
|
|
77
78
|
FSCard,
|
|
78
79
|
FSText,
|
|
80
|
+
FSCol,
|
|
79
81
|
FSRow
|
|
80
82
|
},
|
|
81
83
|
props: {
|
|
@@ -99,6 +99,7 @@ import { useBreakpoints } from "@dative-gpi/foundation-shared-components/composa
|
|
|
99
99
|
import FSFadeOut from "./FSFadeOut.vue";
|
|
100
100
|
import FSButton from "./FSButton.vue";
|
|
101
101
|
import FSForm from "./FSForm.vue";
|
|
102
|
+
import FSCol from "./FSCol.vue";
|
|
102
103
|
import FSRow from "./FSRow.vue";
|
|
103
104
|
|
|
104
105
|
export default defineComponent({
|
|
@@ -107,6 +108,7 @@ export default defineComponent({
|
|
|
107
108
|
FSFadeOut,
|
|
108
109
|
FSButton,
|
|
109
110
|
FSForm,
|
|
111
|
+
FSCol,
|
|
110
112
|
FSRow
|
|
111
113
|
},
|
|
112
114
|
props: {
|
package/components/FSDivider.vue
CHANGED
|
@@ -41,11 +41,15 @@ import { useColors, useSlots } from "@dative-gpi/foundation-shared-components/co
|
|
|
41
41
|
import { sizeToVar } from "@dative-gpi/foundation-shared-components/utils";
|
|
42
42
|
|
|
43
43
|
import FSText from "./FSText.vue";
|
|
44
|
+
import FSCol from "./FSCol.vue";
|
|
45
|
+
import FSRow from "./FSRow.vue";
|
|
44
46
|
|
|
45
47
|
export default defineComponent({
|
|
46
48
|
name: "FSDivider",
|
|
47
49
|
components: {
|
|
48
|
-
FSText
|
|
50
|
+
FSText,
|
|
51
|
+
FSCol,
|
|
52
|
+
FSRow
|
|
49
53
|
},
|
|
50
54
|
props: {
|
|
51
55
|
label: {
|
|
@@ -170,6 +170,7 @@ import FSCardPlaceholder from "./FSCardPlaceholder.vue";
|
|
|
170
170
|
import FSImageUI from "./FSImageUI.vue";
|
|
171
171
|
import FSCard from "./FSCard.vue";
|
|
172
172
|
import FSText from "./FSText.vue";
|
|
173
|
+
import FSSpan from "./FSSpan.vue";
|
|
173
174
|
import FSCol from "./FSCol.vue";
|
|
174
175
|
import FSRow from "./FSRow.vue";
|
|
175
176
|
|
|
@@ -182,6 +183,7 @@ export default defineComponent({
|
|
|
182
183
|
FSImageUI,
|
|
183
184
|
FSCard,
|
|
184
185
|
FSText,
|
|
186
|
+
FSSpan,
|
|
185
187
|
FSCol,
|
|
186
188
|
FSRow
|
|
187
189
|
},
|
|
@@ -40,6 +40,7 @@ import { useBreakpoints } from "@dative-gpi/foundation-shared-components/composa
|
|
|
40
40
|
import type { FSGridMosaic } from "@dative-gpi/foundation-shared-components/models";
|
|
41
41
|
|
|
42
42
|
import FSGrid from "./FSGrid.vue";
|
|
43
|
+
import FSText from "./FSText.vue";
|
|
43
44
|
import FSCol from "./FSCol.vue";
|
|
44
45
|
import FSRow from "./FSRow.vue";
|
|
45
46
|
|
|
@@ -47,6 +48,7 @@ export default defineComponent({
|
|
|
47
48
|
name: "FSGridMosaic",
|
|
48
49
|
components: {
|
|
49
50
|
FSGrid,
|
|
51
|
+
FSText,
|
|
50
52
|
FSCol,
|
|
51
53
|
FSRow
|
|
52
54
|
},
|
|
@@ -30,12 +30,14 @@ import { sizeToVar } from "../utils";
|
|
|
30
30
|
|
|
31
31
|
import FSCard from "./FSCard.vue";
|
|
32
32
|
import FSIcon from "./FSIcon.vue";
|
|
33
|
+
import FSRow from "./FSRow.vue";
|
|
33
34
|
|
|
34
35
|
export default defineComponent({
|
|
35
36
|
name: "FSIconCard",
|
|
36
37
|
components: {
|
|
37
38
|
FSCard,
|
|
38
|
-
FSIcon
|
|
39
|
+
FSIcon,
|
|
40
|
+
FSRow
|
|
39
41
|
},
|
|
40
42
|
props: {
|
|
41
43
|
size: {
|
|
@@ -89,6 +89,7 @@ import { ColorEnum } from "@dative-gpi/foundation-shared-components/models";
|
|
|
89
89
|
import { computeTicks, TimePrecision } from '@dative-gpi/foundation-shared-components/utils';
|
|
90
90
|
|
|
91
91
|
import FSCol from '@dative-gpi/foundation-shared-components/components/FSCol.vue';
|
|
92
|
+
import FSRow from '@dative-gpi/foundation-shared-components/components/FSRow.vue';
|
|
92
93
|
import FSSpan from '@dative-gpi/foundation-shared-components/components/FSSpan.vue';
|
|
93
94
|
import FSText from '@dative-gpi/foundation-shared-components/components/FSText.vue';
|
|
94
95
|
import FSSlider from '@dative-gpi/foundation-shared-components/components/FSSlider.vue';
|
|
@@ -100,6 +101,7 @@ export default defineComponent({
|
|
|
100
101
|
name: "FSInstantPicker",
|
|
101
102
|
components: {
|
|
102
103
|
FSCol,
|
|
104
|
+
FSRow,
|
|
103
105
|
FSSpan,
|
|
104
106
|
FSText,
|
|
105
107
|
FSSlider,
|
|
@@ -49,12 +49,14 @@ import { ColorEnum } from '@dative-gpi/foundation-shared-components/models';
|
|
|
49
49
|
|
|
50
50
|
import FSIcon from '@dative-gpi/foundation-shared-components/components/FSIcon.vue';
|
|
51
51
|
import FSCard from '@dative-gpi/foundation-shared-components/components/FSCard.vue';
|
|
52
|
+
import FSRow from '@dative-gpi/foundation-shared-components/components/FSRow.vue';
|
|
52
53
|
|
|
53
54
|
export default defineComponent({
|
|
54
55
|
name: "FSPlayButtons",
|
|
55
56
|
components: {
|
|
56
57
|
FSCard,
|
|
57
|
-
FSIcon
|
|
58
|
+
FSIcon,
|
|
59
|
+
FSRow
|
|
58
60
|
},
|
|
59
61
|
props: {
|
|
60
62
|
modelValue: {
|
|
@@ -89,6 +89,7 @@ import { ColorEnum } from "@dative-gpi/foundation-shared-components/models";
|
|
|
89
89
|
import { computeTicks, TimePrecision } from '@dative-gpi/foundation-shared-components/utils';
|
|
90
90
|
|
|
91
91
|
import FSCol from '@dative-gpi/foundation-shared-components/components/FSCol.vue';
|
|
92
|
+
import FSRow from '@dative-gpi/foundation-shared-components/components/FSRow.vue';
|
|
92
93
|
import FSSpan from '@dative-gpi/foundation-shared-components/components/FSSpan.vue';
|
|
93
94
|
import FSText from '@dative-gpi/foundation-shared-components/components/FSText.vue';
|
|
94
95
|
import FSPlayButtons from '@dative-gpi/foundation-shared-components/components/FSPlayButtons.vue';
|
|
@@ -100,6 +101,7 @@ export default defineComponent({
|
|
|
100
101
|
name: "FSRangePicker",
|
|
101
102
|
components: {
|
|
102
103
|
FSCol,
|
|
104
|
+
FSRow,
|
|
103
105
|
FSSpan,
|
|
104
106
|
FSText,
|
|
105
107
|
FSTermField,
|
package/components/FSWindow.vue
CHANGED
|
@@ -85,6 +85,7 @@ import FSButton from "./FSButton.vue";
|
|
|
85
85
|
import FSCard from "./FSCard.vue";
|
|
86
86
|
import FSIcon from "./FSIcon.vue";
|
|
87
87
|
import FSText from "./FSText.vue";
|
|
88
|
+
import FSCol from "./FSCol.vue";
|
|
88
89
|
import FSRow from "./FSRow.vue";
|
|
89
90
|
|
|
90
91
|
export default defineComponent({
|
|
@@ -94,6 +95,7 @@ export default defineComponent({
|
|
|
94
95
|
FSCard,
|
|
95
96
|
FSIcon,
|
|
96
97
|
FSText,
|
|
98
|
+
FSCol,
|
|
97
99
|
FSRow
|
|
98
100
|
},
|
|
99
101
|
props: {
|
|
@@ -61,6 +61,7 @@ import { useColors } from "@dative-gpi/foundation-shared-components/composables"
|
|
|
61
61
|
import FSCard from "../FSCard.vue";
|
|
62
62
|
import FSIcon from "../FSChip.vue";
|
|
63
63
|
import FSText from "../FSText.vue";
|
|
64
|
+
import FSRow from "../FSRow.vue";
|
|
64
65
|
import FSCol from "../FSCol.vue";
|
|
65
66
|
|
|
66
67
|
export default defineComponent({
|
|
@@ -69,6 +70,7 @@ export default defineComponent({
|
|
|
69
70
|
FSCard,
|
|
70
71
|
FSIcon,
|
|
71
72
|
FSText,
|
|
73
|
+
FSRow,
|
|
72
74
|
FSCol
|
|
73
75
|
},
|
|
74
76
|
props: {
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<FSBaseField
|
|
3
|
+
:description="$props.description"
|
|
4
|
+
:hideHeader="$props.hideHeader"
|
|
5
|
+
:required="$props.required"
|
|
6
|
+
:disabled="$props.disabled"
|
|
7
|
+
:label="$props.label"
|
|
8
|
+
:messages="messages"
|
|
9
|
+
>
|
|
10
|
+
<FSRow
|
|
11
|
+
:wrap="false"
|
|
12
|
+
align="center-left"
|
|
13
|
+
>
|
|
14
|
+
<FSNumberField
|
|
15
|
+
suffix="h"
|
|
16
|
+
:hideHeader="true"
|
|
17
|
+
:modelValue="innerHours"
|
|
18
|
+
:disabled="$props.disabled"
|
|
19
|
+
:rules="[() => messages.length === 0 || '']"
|
|
20
|
+
@update:modelValue="onChangeHours"
|
|
21
|
+
/>
|
|
22
|
+
<FSSpan>:</FSSpan>
|
|
23
|
+
<FSNumberField
|
|
24
|
+
suffix="min"
|
|
25
|
+
:hideHeader="true"
|
|
26
|
+
:disabled="$props.disabled"
|
|
27
|
+
:rules="[() => messages.length === 0 || '']"
|
|
28
|
+
:modelValue="innerMinutes"
|
|
29
|
+
@update:modelValue="onChangeMinutes"
|
|
30
|
+
/>
|
|
31
|
+
</FSRow>
|
|
32
|
+
</FSBaseField>
|
|
33
|
+
</template>
|
|
34
|
+
|
|
35
|
+
<script lang="ts">
|
|
36
|
+
import { computed, defineComponent, type PropType, ref, watch } from "vue";
|
|
37
|
+
|
|
38
|
+
import { NumberRules } from "@dative-gpi/foundation-shared-components/models";
|
|
39
|
+
import { useRules } from "@dative-gpi/foundation-shared-components/composables";
|
|
40
|
+
|
|
41
|
+
import FSNumberField from "./FSNumberField.vue";
|
|
42
|
+
import FSBaseField from "./FSBaseField.vue";
|
|
43
|
+
import FSSpan from "../FSSpan.vue";
|
|
44
|
+
import FSRow from "../FSRow.vue";
|
|
45
|
+
|
|
46
|
+
export default defineComponent({
|
|
47
|
+
name: "FSDurationField",
|
|
48
|
+
components: {
|
|
49
|
+
FSNumberField,
|
|
50
|
+
FSBaseField,
|
|
51
|
+
FSSpan,
|
|
52
|
+
FSRow
|
|
53
|
+
},
|
|
54
|
+
props: {
|
|
55
|
+
label: {
|
|
56
|
+
type: String as PropType<string | null>,
|
|
57
|
+
required: false,
|
|
58
|
+
default: null
|
|
59
|
+
},
|
|
60
|
+
description: {
|
|
61
|
+
type: String as PropType<string | null>,
|
|
62
|
+
required: false,
|
|
63
|
+
default: null
|
|
64
|
+
},
|
|
65
|
+
modelValue: {
|
|
66
|
+
type: Number as PropType<number | null>,
|
|
67
|
+
required: false,
|
|
68
|
+
default: null
|
|
69
|
+
},
|
|
70
|
+
maxDuration: {
|
|
71
|
+
type: Number as PropType<number | null>,
|
|
72
|
+
required: false,
|
|
73
|
+
default: null
|
|
74
|
+
},
|
|
75
|
+
minDuration: {
|
|
76
|
+
type: Number as PropType<number | null>,
|
|
77
|
+
required: false,
|
|
78
|
+
default: null
|
|
79
|
+
},
|
|
80
|
+
hideHeader: {
|
|
81
|
+
type: Boolean,
|
|
82
|
+
required: false,
|
|
83
|
+
default: false
|
|
84
|
+
},
|
|
85
|
+
required: {
|
|
86
|
+
type: Boolean,
|
|
87
|
+
required: false,
|
|
88
|
+
default: false
|
|
89
|
+
},
|
|
90
|
+
rules: {
|
|
91
|
+
type: Array as PropType<any[]>,
|
|
92
|
+
required: false,
|
|
93
|
+
default: () => []
|
|
94
|
+
},
|
|
95
|
+
messages: {
|
|
96
|
+
type: Array as PropType<string[]>,
|
|
97
|
+
required: false,
|
|
98
|
+
default: null
|
|
99
|
+
},
|
|
100
|
+
disabled: {
|
|
101
|
+
type: Boolean,
|
|
102
|
+
required: false,
|
|
103
|
+
default: false
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
emits: ["update:modelValue"],
|
|
107
|
+
setup(props, { emit }) {
|
|
108
|
+
const { getMessages } = useRules();
|
|
109
|
+
const MS_PER_MINUTE = 60 * 1000;
|
|
110
|
+
const MS_PER_HOUR = 60 * MS_PER_MINUTE;
|
|
111
|
+
|
|
112
|
+
const innerHours = ref<number | null>(null);
|
|
113
|
+
const innerMinutes = ref<number | null>(null);
|
|
114
|
+
|
|
115
|
+
const durationRules = computed(() => {
|
|
116
|
+
const rules: any[] = [...props.rules];
|
|
117
|
+
if (props.required) {
|
|
118
|
+
rules.push(NumberRules.required());
|
|
119
|
+
}
|
|
120
|
+
if (props.minDuration != null) {
|
|
121
|
+
const minHours = Math.floor(props.minDuration / MS_PER_HOUR);
|
|
122
|
+
const minMinutes = Math.floor((props.minDuration % MS_PER_HOUR) / MS_PER_MINUTE);
|
|
123
|
+
const label = minHours > 0 ? `${minHours}h${minMinutes.toString().padStart(2, '0')}` : `${minMinutes}min`;
|
|
124
|
+
rules.push((v: any) => (v != null && v >= props.minDuration!) || `Min. ${label}`);
|
|
125
|
+
}
|
|
126
|
+
if (props.maxDuration != null) {
|
|
127
|
+
const maxHours = Math.floor(props.maxDuration / MS_PER_HOUR);
|
|
128
|
+
const maxMinutes = Math.floor((props.maxDuration % MS_PER_HOUR) / MS_PER_MINUTE);
|
|
129
|
+
const label = maxHours > 0 ? `${maxHours}h${maxMinutes.toString().padStart(2, '0')}` : `${maxMinutes}min`;
|
|
130
|
+
rules.push((v: any) => (v != null && v <= props.maxDuration!) || `Max. ${label}`);
|
|
131
|
+
}
|
|
132
|
+
return rules;
|
|
133
|
+
});
|
|
134
|
+
|
|
135
|
+
const messages = computed((): string[] => props.messages ?? getMessages(props.modelValue, durationRules.value));
|
|
136
|
+
|
|
137
|
+
const reset = (): void => {
|
|
138
|
+
if (props.modelValue == null) {
|
|
139
|
+
innerHours.value = null;
|
|
140
|
+
innerMinutes.value = null;
|
|
141
|
+
return;
|
|
142
|
+
}
|
|
143
|
+
innerHours.value = Math.floor(props.modelValue / MS_PER_HOUR);
|
|
144
|
+
innerMinutes.value = Math.floor((props.modelValue % MS_PER_HOUR) / MS_PER_MINUTE);
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
const emitValue = (): void => {
|
|
148
|
+
const hours = innerHours.value ?? 0;
|
|
149
|
+
const minutes = innerMinutes.value ?? 0;
|
|
150
|
+
emit("update:modelValue", (hours * MS_PER_HOUR) + (minutes * MS_PER_MINUTE));
|
|
151
|
+
};
|
|
152
|
+
|
|
153
|
+
const onChangeHours = (value: number | null): void => {
|
|
154
|
+
innerHours.value = value;
|
|
155
|
+
emitValue();
|
|
156
|
+
};
|
|
157
|
+
|
|
158
|
+
const onChangeMinutes = (value: number | null): void => {
|
|
159
|
+
value = Math.min(59, Math.max(0, value ?? 0));
|
|
160
|
+
innerMinutes.value = value;
|
|
161
|
+
emitValue();
|
|
162
|
+
};
|
|
163
|
+
|
|
164
|
+
watch(() => props.modelValue, () => {
|
|
165
|
+
const currentHours = innerHours.value ?? 0;
|
|
166
|
+
const currentMinutes = innerMinutes.value ?? 0;
|
|
167
|
+
const currentTotal = (currentHours * MS_PER_HOUR) + (currentMinutes * MS_PER_MINUTE);
|
|
168
|
+
if (currentTotal !== (props.modelValue ?? 0)) {
|
|
169
|
+
reset();
|
|
170
|
+
}
|
|
171
|
+
}, { immediate: true });
|
|
172
|
+
|
|
173
|
+
return {
|
|
174
|
+
NumberRules,
|
|
175
|
+
innerHours,
|
|
176
|
+
innerMinutes,
|
|
177
|
+
durationRules,
|
|
178
|
+
messages,
|
|
179
|
+
onChangeHours,
|
|
180
|
+
onChangeMinutes
|
|
181
|
+
};
|
|
182
|
+
}
|
|
183
|
+
});
|
|
184
|
+
</script>
|
|
@@ -246,6 +246,7 @@ import FSTextField from "./FSTextField.vue";
|
|
|
246
246
|
import FSIcon from "../FSIcon.vue";
|
|
247
247
|
import FSCard from "../FSCard.vue";
|
|
248
248
|
import FSText from "../FSText.vue";
|
|
249
|
+
import FSSpan from "../FSSpan.vue";
|
|
249
250
|
import FSMenu from '../FSMenu.vue';
|
|
250
251
|
import FSCol from "../FSCol.vue";
|
|
251
252
|
import FSRow from "../FSRow.vue";
|
|
@@ -256,6 +257,7 @@ export default defineComponent({
|
|
|
256
257
|
FSAutoCompleteField,
|
|
257
258
|
FSTextField,
|
|
258
259
|
FSText,
|
|
260
|
+
FSSpan,
|
|
259
261
|
FSIcon,
|
|
260
262
|
FSCard,
|
|
261
263
|
FSMenu,
|
|
@@ -63,6 +63,7 @@ import { defineComponent, type PropType } from "vue";
|
|
|
63
63
|
import { type FSDataTableColumn } from "@dative-gpi/foundation-shared-components/models";
|
|
64
64
|
|
|
65
65
|
import FSRow from "../FSRow.vue";
|
|
66
|
+
import FSCol from "../FSCol.vue";
|
|
66
67
|
import FSText from "../FSText.vue";
|
|
67
68
|
import FSTile from '../tiles/FSTile.vue';
|
|
68
69
|
|
|
@@ -71,6 +72,7 @@ export default defineComponent({
|
|
|
71
72
|
components: {
|
|
72
73
|
FSTile,
|
|
73
74
|
FSText,
|
|
75
|
+
FSCol,
|
|
74
76
|
FSRow
|
|
75
77
|
},
|
|
76
78
|
props: {
|
|
@@ -749,10 +749,12 @@ import FSFilterButton from "./FSFilterButton.vue";
|
|
|
749
749
|
import FSHiddenButton from "./FSHiddenButton.vue";
|
|
750
750
|
import FSHeaderButton from "./FSHeaderButton.vue";
|
|
751
751
|
import FSOptionGroup from "../FSOptionGroup.vue";
|
|
752
|
+
import FSSlideGroup from "../FSSlideGroup.vue";
|
|
752
753
|
import FSToggleSet from "../FSToggleSet.vue";
|
|
753
754
|
import FSDraggable from "./FSDraggable.vue";
|
|
754
755
|
import FSCheckbox from "../FSCheckbox.vue";
|
|
755
756
|
import FSDivider from "../FSDivider.vue";
|
|
757
|
+
import FSButton from '../FSButton.vue';
|
|
756
758
|
import FSCard from "../FSCard.vue";
|
|
757
759
|
import FSChip from "../FSChip.vue";
|
|
758
760
|
import FSIcon from "../FSIcon.vue";
|
|
@@ -771,10 +773,12 @@ export default defineComponent({
|
|
|
771
773
|
FSSearchField,
|
|
772
774
|
FSSelectField,
|
|
773
775
|
FSOptionGroup,
|
|
776
|
+
FSSlideGroup,
|
|
774
777
|
FSDraggable,
|
|
775
778
|
FSToggleSet,
|
|
776
779
|
FSCheckbox,
|
|
777
780
|
FSDivider,
|
|
781
|
+
FSButton,
|
|
778
782
|
FSCard,
|
|
779
783
|
FSChip,
|
|
780
784
|
FSIcon,
|
|
@@ -68,6 +68,7 @@ import { ApplicationScope, ChartType } from "@dative-gpi/foundation-shared-domai
|
|
|
68
68
|
import { chartIcon } from "@dative-gpi/foundation-shared-components/tools";
|
|
69
69
|
|
|
70
70
|
import FSImage from "../FSImage.vue";
|
|
71
|
+
import FSIcon from "../FSIcon.vue";
|
|
71
72
|
import FSTile from "./FSTile.vue";
|
|
72
73
|
import FSSpan from "../FSSpan.vue";
|
|
73
74
|
import FSRow from "../FSRow.vue";
|
|
@@ -80,6 +81,7 @@ export default defineComponent({
|
|
|
80
81
|
name: "FSChartTileUI",
|
|
81
82
|
components: {
|
|
82
83
|
FSImage,
|
|
84
|
+
FSIcon,
|
|
83
85
|
FSTile,
|
|
84
86
|
FSRow,
|
|
85
87
|
FSCol,
|
|
@@ -60,6 +60,7 @@ import { type ColorBase, ColorEnum } from "@dative-gpi/foundation-shared-compone
|
|
|
60
60
|
|
|
61
61
|
import FSEntityCountBadge from './FSEntityCountBadge.vue';
|
|
62
62
|
import FSSimpleTileUI from './FSSimpleTileUI.vue';
|
|
63
|
+
import FSIcon from "../FSIcon.vue";
|
|
63
64
|
import FSColor from "../FSColor.vue";
|
|
64
65
|
import FSSpan from "../FSSpan.vue";
|
|
65
66
|
import FSCol from "../FSCol.vue";
|
|
@@ -70,6 +71,7 @@ export default defineComponent({
|
|
|
70
71
|
components: {
|
|
71
72
|
FSEntityCountBadge,
|
|
72
73
|
FSSimpleTileUI,
|
|
74
|
+
FSIcon,
|
|
73
75
|
FSColor,
|
|
74
76
|
FSSpan,
|
|
75
77
|
FSCol,
|
|
@@ -64,6 +64,7 @@ import { ColorEnum } from "@dative-gpi/foundation-shared-components/models";
|
|
|
64
64
|
|
|
65
65
|
import FSImage from "../FSImage.vue";
|
|
66
66
|
import FSSpan from "../FSSpan.vue";
|
|
67
|
+
import FSIcon from "../FSIcon.vue";
|
|
67
68
|
import FSTile from "./FSTile.vue";
|
|
68
69
|
import FSCol from "../FSCol.vue";
|
|
69
70
|
import FSRow from "../FSRow.vue";
|
|
@@ -73,6 +74,7 @@ export default defineComponent({
|
|
|
73
74
|
components: {
|
|
74
75
|
FSImage,
|
|
75
76
|
FSSpan,
|
|
77
|
+
FSIcon,
|
|
76
78
|
FSTile,
|
|
77
79
|
FSCol,
|
|
78
80
|
FSRow
|
|
@@ -56,13 +56,15 @@ import { ColorEnum, type ColorBase } from "@dative-gpi/foundation-shared-compone
|
|
|
56
56
|
|
|
57
57
|
import FSCard from "../FSCard.vue";
|
|
58
58
|
import FSCheckbox from "../FSCheckbox.vue";
|
|
59
|
+
import FSCol from "../FSCol.vue";
|
|
59
60
|
|
|
60
61
|
export default defineComponent({
|
|
61
62
|
name: "FSTile",
|
|
62
63
|
inheritAttrs: false,
|
|
63
64
|
components: {
|
|
64
65
|
FSCard,
|
|
65
|
-
FSCheckbox
|
|
66
|
+
FSCheckbox,
|
|
67
|
+
FSCol
|
|
66
68
|
},
|
|
67
69
|
props: {
|
|
68
70
|
to: {
|
|
@@ -65,6 +65,7 @@ import { ColorEnum } from "@dative-gpi/foundation-shared-components/models";
|
|
|
65
65
|
|
|
66
66
|
import FSImage from "../FSImage.vue";
|
|
67
67
|
import FSSpan from "../FSSpan.vue";
|
|
68
|
+
import FSIcon from "../FSIcon.vue";
|
|
68
69
|
import FSTile from "./FSTile.vue";
|
|
69
70
|
import FSCol from "../FSCol.vue";
|
|
70
71
|
import FSRow from "../FSRow.vue";
|
|
@@ -74,6 +75,7 @@ export default defineComponent({
|
|
|
74
75
|
components: {
|
|
75
76
|
FSImage,
|
|
76
77
|
FSSpan,
|
|
78
|
+
FSIcon,
|
|
77
79
|
FSTile,
|
|
78
80
|
FSCol,
|
|
79
81
|
FSRow
|
|
@@ -24,8 +24,13 @@ import type { PropType } from "vue";
|
|
|
24
24
|
import { useTranslations as useTranslationsProvider } from "@dative-gpi/bones-ui/composables";
|
|
25
25
|
import { Position } from "@dative-gpi/foundation-shared-domain/enums";
|
|
26
26
|
|
|
27
|
+
import FSToggleSet from "../FSToggleSet.vue";
|
|
28
|
+
|
|
27
29
|
export default defineComponent({
|
|
28
30
|
name: "FSToggleSetPosition",
|
|
31
|
+
components: {
|
|
32
|
+
FSToggleSet
|
|
33
|
+
},
|
|
29
34
|
props: {
|
|
30
35
|
modelValue: {
|
|
31
36
|
type: Number as PropType<Position>,
|
|
@@ -57,6 +57,18 @@ export const useMapLayers = () => {
|
|
|
57
57
|
className: 'fs-map-tile-base-layer'
|
|
58
58
|
})
|
|
59
59
|
]
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
name: MapLayers.OpenStreetMap,
|
|
63
|
+
label: $tr("ui.map-layer.open-street-map", "OpenStreetMap"),
|
|
64
|
+
image: new URL("../assets/images/map/open-street-map.png", import.meta.url).href,
|
|
65
|
+
layers: [
|
|
66
|
+
tileLayer(`https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png`, {
|
|
67
|
+
maxZoom: 19,
|
|
68
|
+
attribution: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors',
|
|
69
|
+
className: 'fs-map-tile-base-layer'
|
|
70
|
+
})
|
|
71
|
+
]
|
|
60
72
|
}
|
|
61
73
|
];
|
|
62
74
|
} catch (err) {
|
package/models/map.ts
CHANGED
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"url": "https://github.com/Dative-GPI/foundation-shared-ui.git"
|
|
5
5
|
},
|
|
6
6
|
"sideEffects": false,
|
|
7
|
-
"version": "1.1.
|
|
7
|
+
"version": "1.1.18",
|
|
8
8
|
"description": "",
|
|
9
9
|
"publishConfig": {
|
|
10
10
|
"access": "public"
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
"author": "",
|
|
14
14
|
"license": "ISC",
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@dative-gpi/foundation-shared-domain": "1.1.
|
|
17
|
-
"@dative-gpi/foundation-shared-services": "1.1.
|
|
16
|
+
"@dative-gpi/foundation-shared-domain": "1.1.18",
|
|
17
|
+
"@dative-gpi/foundation-shared-services": "1.1.18"
|
|
18
18
|
},
|
|
19
19
|
"peerDependencies": {
|
|
20
20
|
"@dative-gpi/bones-ui": "^1.0.0",
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"sass": "1.71.1",
|
|
39
39
|
"sass-loader": "13.3.2"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "5fbb75c2d2c18eeef57f17f2fd6962a05b1e6275"
|
|
42
42
|
}
|