@dative-gpi/foundation-shared-components 1.0.27 → 1.0.28-remove-deprecated2
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/FSBreadcrumbs.vue +1 -0
- package/components/FSButton.vue +10 -10
- package/components/FSCalendar.vue +52 -14
- package/components/FSCalendarTwin.vue +96 -40
- package/components/FSCard.vue +28 -7
- package/components/FSCardPlaceholder.vue +8 -5
- package/components/FSChip.vue +12 -2
- package/components/FSClickable.vue +20 -12
- package/components/FSClock.vue +16 -7
- package/components/FSColorIcon.vue +23 -5
- package/components/FSDialog.vue +2 -1
- package/components/FSDialogContent.vue +12 -11
- package/components/FSDialogForm.vue +22 -2
- package/components/FSDialogFormBody.vue +51 -32
- package/components/FSDialogMultiFormBody.vue +79 -56
- package/components/FSDialogRemove.vue +7 -7
- package/components/FSDialogSubmit.vue +20 -11
- package/components/FSEditImage.vue +1 -1
- package/components/FSEditImageUI.vue +20 -10
- package/components/FSFadeOut.vue +44 -18
- package/components/FSForm.vue +10 -8
- package/components/FSGrid.vue +1 -1
- package/components/FSIcon.vue +2 -1
- package/components/FSIconCard.vue +21 -4
- package/components/FSImage.vue +12 -4
- package/components/FSImageUI.vue +8 -15
- package/components/FSLink.vue +25 -9
- package/components/FSLoader.vue +28 -11
- package/components/FSOptionGroup.vue +51 -3
- package/components/FSRouterLink.vue +42 -0
- package/components/FSSlideGroup.vue +19 -5
- package/components/FSSpan.vue +9 -2
- package/components/FSSwitch.vue +57 -27
- package/components/FSTab.vue +15 -13
- package/components/FSTabs.vue +32 -7
- package/components/FSTag.vue +14 -3
- package/components/FSTagGroup.vue +1 -1
- package/components/FSText.vue +4 -2
- package/components/FSWindow.vue +128 -4
- package/components/FSWrapGroup.vue +13 -1
- package/components/agenda/FSAgenda.vue +223 -0
- package/components/agenda/FSAgendaDialogCalendar.vue +76 -0
- package/components/agenda/FSAgendaHeader.vue +215 -0
- package/components/agenda/FSAgendaHorizontalEvent.vue +174 -0
- package/components/agenda/FSAgendaHorizontalTimeLineMarker.vue +46 -0
- package/components/agenda/FSAgendaHoursCol.vue +103 -0
- package/components/agenda/FSAgendaHoursRow.vue +164 -0
- package/components/agenda/FSAgendaVerticalEvent.vue +160 -0
- package/components/agenda/FSAgendaVerticalTimeLineMarker.vue +46 -0
- package/components/agenda/FSDayAgenda.vue +199 -0
- package/components/agenda/FSMonthAgenda.vue +252 -0
- package/components/agenda/FSSelectAgendaMode.vue +54 -0
- package/components/agenda/FSWeekAgenda.vue +323 -0
- package/components/autocompletes/FSAutoCompleteAddress.vue +22 -20
- package/components/autocompletes/FSAutocompleteLanguage.vue +24 -39
- package/components/autocompletes/FSAutocompleteTimeZone.vue +26 -38
- package/components/buttons/FSButtonAdd.vue +1 -1
- package/components/buttons/FSButtonAddLabel.vue +1 -1
- package/components/buttons/FSButtonCancel.vue +1 -1
- package/components/buttons/FSButtonCancelLabel.vue +1 -1
- package/components/buttons/FSButtonCopy.vue +28 -0
- package/components/buttons/FSButtonCopyIcon.vue +28 -0
- package/components/buttons/FSButtonCopyLabel.vue +27 -0
- package/components/buttons/FSButtonCopyMini.vue +28 -0
- package/components/buttons/FSButtonDragIcon.vue +27 -0
- package/components/buttons/FSButtonDuplicate.vue +1 -1
- package/components/buttons/FSButtonDuplicateLabel.vue +1 -1
- package/components/buttons/FSButtonEdit.vue +1 -1
- package/components/buttons/FSButtonEditLabel.vue +1 -1
- package/components/buttons/FSButtonFile.vue +1 -1
- package/components/buttons/FSButtonFileLabel.vue +1 -1
- package/components/buttons/FSButtonNext.vue +1 -1
- package/components/buttons/FSButtonNextLabel.vue +1 -1
- package/components/buttons/FSButtonPrevious.vue +1 -1
- package/components/buttons/FSButtonPreviousLabel.vue +1 -1
- package/components/buttons/FSButtonRedo.vue +1 -1
- package/components/buttons/FSButtonRedoLabel.vue +1 -1
- package/components/buttons/FSButtonRemove.vue +1 -1
- package/components/buttons/FSButtonRemoveLabel.vue +1 -1
- package/components/buttons/FSButtonSave.vue +1 -1
- package/components/buttons/FSButtonSaveLabel.vue +1 -1
- package/components/buttons/FSButtonSearch.vue +1 -1
- package/components/buttons/FSButtonSearchLabel.vue +1 -1
- package/components/buttons/FSButtonUndo.vue +1 -1
- package/components/buttons/FSButtonUndoLabel.vue +1 -1
- package/components/buttons/FSButtonUpdate.vue +1 -1
- package/components/buttons/FSButtonUpdateLabel.vue +1 -1
- package/components/buttons/FSButtonValidate.vue +1 -1
- package/components/buttons/FSButtonValidateLabel.vue +1 -1
- package/components/calendar/FSSimpleCalendar.vue +145 -0
- package/components/calendar/FSSimpleCalendarHeader.vue +60 -0
- package/components/calendar/FSSimpleMonthSelector.vue +138 -0
- package/components/deviceOrganisations/FSConnectivity.vue +11 -1
- package/components/deviceOrganisations/FSConnectivityCard.vue +19 -47
- package/components/deviceOrganisations/FSStatus.vue +11 -1
- package/components/deviceOrganisations/FSStatusCard.vue +35 -61
- package/components/deviceOrganisations/FSStatusesCarousel.vue +1 -0
- package/components/deviceOrganisations/FSStatusesRow.vue +9 -3
- package/components/deviceOrganisations/FSWorstAlert.vue +30 -37
- package/components/deviceOrganisations/FSWorstAlertCard.vue +36 -85
- package/components/fields/FSAutocompleteField.vue +516 -341
- package/components/fields/FSAutocompleteTag.vue +100 -0
- package/components/fields/FSBaseField.vue +44 -27
- package/components/fields/FSColorField.vue +42 -39
- package/components/fields/FSCommentField.vue +105 -0
- package/components/fields/FSDateField.vue +2 -2
- package/components/fields/FSDateRangeField.vue +3 -2
- package/components/fields/FSDateTimeField.vue +4 -3
- package/components/fields/FSDateTimeRangeField.vue +8 -6
- package/components/fields/FSEntityFieldUI.vue +271 -0
- package/components/fields/FSGradientField.vue +27 -33
- package/components/fields/FSIconField.vue +0 -1
- package/components/fields/FSMagicConfigField.vue +15 -7
- package/components/fields/FSMagicField.vue +9 -4
- package/components/fields/FSNumberField.vue +13 -6
- package/components/fields/FSRichTextField.vue +102 -52
- package/components/fields/FSSearchField.vue +9 -115
- package/components/fields/FSSelectField.vue +489 -252
- package/components/fields/FSTagField.vue +1 -1
- package/components/fields/FSTermField.vue +33 -11
- package/components/fields/FSTextArea.vue +26 -7
- package/components/fields/FSTextField.vue +19 -10
- package/components/fields/FSTimeRangeField.vue +304 -0
- package/components/fields/FSTimeStepField.vue +3 -3
- package/components/fields/FSTranslateField.vue +4 -3
- package/components/fields/FSTranslateRichTextField.vue +15 -10
- package/components/fields/FSTranslateTextArea.vue +233 -0
- package/components/fields/FSTreeViewField.vue +3 -3
- package/components/fields/periodicField/FSPeriodicDailyField.vue +120 -0
- package/components/fields/periodicField/FSPeriodicField.vue +131 -0
- package/components/fields/periodicField/FSPeriodicMonthlyField.vue +222 -0
- package/components/fields/periodicField/FSPeriodicWeeklyField.vue +120 -0
- package/components/fields/periodicField/FSPeriodicYearlyField.vue +144 -0
- package/components/lists/FSDataTableUI.vue +148 -89
- package/components/lists/FSDraggable.vue +2 -2
- package/components/lists/FSFilterButton.vue +23 -28
- package/components/lists/FSHeaderButton.vue +4 -4
- package/components/lists/FSHiddenButton.vue +11 -15
- package/components/lists/FSLoadDataTable.vue +10 -7
- package/components/lists/FSSimpleList.vue +234 -0
- package/components/lists/FSSimpleListItem.vue +132 -0
- package/components/map/FSMap.vue +280 -399
- package/components/map/FSMapFeatureGroup.vue +51 -0
- package/components/map/FSMapLayerButton.vue +5 -5
- package/components/map/FSMapMarker.vue +120 -0
- package/components/map/FSMapMarkerClusterGroup.vue +72 -0
- package/components/map/FSMapOverlay.vue +70 -82
- package/components/map/FSMapPolygon.vue +81 -0
- package/components/map/FSMapTileLayer.vue +50 -0
- package/components/map/keys.ts +4 -0
- package/components/selects/FSSelectAutoRefresh.vue +9 -9
- package/components/selects/FSSelectDashboardVariableType.vue +5 -4
- package/components/selects/FSSelectDateSetting.vue +3 -2
- package/components/selects/FSSelectDays.vue +9 -9
- package/components/selects/FSSelectListMode.vue +51 -0
- package/components/selects/FSSelectMonths.vue +67 -0
- package/components/selects/chartSelectors/FSAggregationSelector.vue +52 -0
- package/components/selects/chartSelectors/FSAxisTypeSelector.vue +49 -0
- package/components/selects/chartSelectors/FSDisplayAsSelector.vue +53 -0
- package/components/selects/chartSelectors/FSFilterTypeSelector.vue +54 -0
- package/components/selects/chartSelectors/FSHeatmapRuleSelector.vue +54 -0
- package/components/selects/chartSelectors/FSOperationOnSelector.vue +53 -0
- package/components/selects/chartSelectors/FSPlanningTypeSelector.vue +53 -0
- package/components/selects/chartSelectors/FSPlotPerSelector.vue +52 -0
- package/components/selects/chartSelectors/FSSelectEntityType.vue +59 -0
- package/components/selects/chartSelectors/FSSerieTypeSelector.vue +53 -0
- package/components/tiles/FSAlertTileUI.vue +90 -0
- package/components/tiles/FSChartTile.vue +73 -0
- package/components/tiles/FSChartTileUI.vue +111 -0
- package/components/tiles/FSCommentTileUI.vue +174 -0
- package/components/tiles/FSDeviceOrganisationTileUI.vue +6 -0
- package/components/tiles/FSGroupTileUI.vue +2 -2
- package/components/tiles/FSLoadTile.vue +2 -0
- package/components/tiles/FSLocationTileUI.vue +192 -0
- package/components/tiles/FSModelTileUI.vue +18 -0
- package/components/tiles/FSSimpleTileUI.vue +9 -4
- package/components/tiles/FSTile.vue +93 -74
- package/components/tiles/FSUserOrganisationTileUI.vue +1 -1
- package/components/toggleSets/FSToggleSetPosition.vue +2 -2
- package/components/views/FSBaseView.vue +64 -0
- package/components/views/FSEntityView.vue +12 -140
- package/components/views/FSSimpleView.vue +29 -0
- package/components/views/desktop/FSBaseDefaultDesktopView.vue +134 -0
- package/components/views/desktop/FSBaseDesktopView.vue +53 -0
- package/components/views/desktop/FSBaseEntityDesktopView.vue +208 -0
- package/components/views/mobile/FSBaseDefaultMobileView.vue +132 -0
- package/components/views/mobile/FSBaseEntityMobileView.vue +198 -0
- package/components/views/mobile/FSBaseMobileView.vue +53 -0
- package/composables/useAddress.ts +2 -2
- package/composables/useBreakpoints.ts +39 -3
- package/composables/useColors.ts +3 -2
- package/composables/useMagicFieldProvider.ts +1 -0
- package/models/agenda.ts +9 -0
- package/models/deviceAlerts.ts +1 -1
- package/models/deviceConnectivities.ts +1 -1
- package/models/index.ts +1 -0
- package/models/magicFields.ts +1 -0
- package/models/map.ts +2 -2
- package/models/rules.ts +5 -5
- package/models/tables.ts +5 -2
- package/models/variableNode.ts +8 -5
- package/package.json +5 -5
- package/styles/components/fs_agenda.scss +36 -0
- package/styles/components/fs_agenda_event.scss +41 -0
- package/styles/components/fs_agenda_hours_col.scss +4 -0
- package/styles/components/fs_agenda_hours_row.scss +5 -0
- package/styles/components/fs_agenda_time_line_marker.scss +19 -0
- package/styles/components/fs_autocomplete_field.scss +0 -13
- package/styles/components/fs_breadcrumbs.scss +6 -12
- package/styles/components/fs_card.scss +0 -1
- package/styles/components/fs_clickable.scss +7 -14
- package/styles/components/fs_clock.scss +0 -10
- package/styles/components/fs_color_field.scss +1 -4
- package/styles/components/fs_data_table.scss +6 -9
- package/styles/components/fs_dialog.scss +7 -17
- package/styles/components/fs_edit_image.scss +8 -0
- package/styles/components/fs_fade_out.scss +11 -2
- package/styles/components/fs_filter_button.scss +1 -6
- package/styles/components/fs_gradient_field.scss +11 -11
- package/styles/components/fs_hidden_button.scss +2 -7
- package/styles/components/fs_image_card.scss +1 -1
- package/styles/components/fs_magic_config_field.scss +1 -2
- package/styles/components/fs_map.scss +36 -30
- package/styles/components/fs_meta_field.scss +3 -5
- package/styles/components/fs_option_group.scss +15 -5
- package/styles/components/fs_rich_text_field.scss +1 -9
- package/styles/components/fs_select_date_settings.scss +3 -0
- package/styles/components/fs_select_field.scss +0 -13
- package/styles/components/fs_slide_group.scss +7 -0
- package/styles/components/fs_span.scss +2 -1
- package/styles/components/fs_switch.scss +1 -0
- package/styles/components/fs_tabs.scss +10 -24
- package/styles/components/fs_tag.scss +3 -19
- package/styles/components/fs_text_area.scss +13 -17
- package/styles/components/fs_tile.scss +21 -15
- package/styles/components/fs_window.scss +7 -0
- package/styles/components/fs_wrap_group.scss +7 -0
- package/styles/components/index.scss +5 -5
- package/styles/globals/index.scss +1 -5
- package/styles/globals/overrides.scss +17 -57
- package/styles/globals/text_fonts.scss +18 -66
- package/tools/alertsTools.ts +69 -0
- package/tools/chartsTools.ts +427 -0
- package/tools/index.ts +3 -0
- package/tools/timeRangeTools.ts +125 -0
- package/utils/filter.ts +18 -0
- package/utils/index.ts +1 -0
- package/utils/leafletMarkers.ts +9 -3
- package/utils/sort.ts +2 -2
- package/utils/statuses.ts +1 -1
- package/utils/time.ts +17 -17
- package/components/autocompletes/FSAutocompleteTag.vue +0 -138
- package/components/fields/FSTimeSlotField.vue +0 -250
- package/components/map/FSMapEditPointAddressOverlay.vue +0 -164
- package/components/views/FSEntityHeader.vue +0 -350
- package/components/views/FSListHeader.vue +0 -83
- package/components/views/FSListView.vue +0 -83
- package/components/views/FSSkeletonView.vue +0 -100
- package/styles/components/fs_icon_field.scss +0 -12
- package/styles/components/fs_map_overlay.scss +0 -38
- package/styles/components/fs_tag_field.scss +0 -8
- package/styles/components/fs_time_field.scss +0 -12
- package/styles/components/fs_timeslot_field.scss +0 -12
- package/styles/globals/breakpoints.scss +0 -20
- package/styles/globals/fixes.scss +0 -5
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<slot />
|
|
3
|
+
</template>
|
|
4
|
+
|
|
5
|
+
<script lang="ts">
|
|
6
|
+
import { inject, provide, ref, type Ref } from 'vue';
|
|
7
|
+
|
|
8
|
+
import { type Map, FeatureGroup } from 'leaflet';
|
|
9
|
+
import { MAP } from './keys';
|
|
10
|
+
|
|
11
|
+
export default {
|
|
12
|
+
name: 'FSMapFeatureGroup',
|
|
13
|
+
props: {
|
|
14
|
+
expectedLayers: {
|
|
15
|
+
type: Number,
|
|
16
|
+
default: 0,
|
|
17
|
+
required: false
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
setup(props, { emit }) {
|
|
21
|
+
const map = inject<Ref<Map | null>>(MAP);
|
|
22
|
+
let added = false;
|
|
23
|
+
|
|
24
|
+
if(!map) {
|
|
25
|
+
throw new Error('FSMapFeatureGroup must be used inside a FSMap component');
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
if(!map.value) {
|
|
29
|
+
throw new Error('FSMapFeatureGroup must be used inside a FSMap component with a map');
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
const featureGroup = ref<FeatureGroup>(new FeatureGroup());
|
|
33
|
+
|
|
34
|
+
provide('featureGroup', featureGroup);
|
|
35
|
+
|
|
36
|
+
featureGroup.value.on("layeradd", () => {
|
|
37
|
+
if(!map.value) {
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
const layers = featureGroup.value.getLayers();
|
|
42
|
+
|
|
43
|
+
if(layers.length === props.expectedLayers && !added) {
|
|
44
|
+
featureGroup.value.addTo(map.value);
|
|
45
|
+
added = true;
|
|
46
|
+
emit("update:bounds", featureGroup.value.getBounds());
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
</script>
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<FSButton
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
class="fs-map-layer-button"
|
|
4
|
+
icon="mdi-layers-outline"
|
|
5
5
|
:elevation="true"
|
|
6
6
|
@click="dialog = true"
|
|
7
7
|
/>
|
|
8
8
|
<FSDialog
|
|
9
9
|
v-model="dialog"
|
|
10
|
-
|
|
11
|
-
:
|
|
10
|
+
:title="$tr('ui.map-layer.select', 'Select layer')"
|
|
11
|
+
:contained="true"
|
|
12
12
|
>
|
|
13
13
|
<template
|
|
14
14
|
v-slot:body
|
|
15
15
|
>
|
|
16
16
|
<FSRow
|
|
17
17
|
align="center-center"
|
|
18
|
-
|
|
18
|
+
:wrap="false"
|
|
19
19
|
>
|
|
20
20
|
<FSImageCard
|
|
21
21
|
v-for="layer in layers"
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<slot />
|
|
3
|
+
</template>
|
|
4
|
+
|
|
5
|
+
<script lang="ts">
|
|
6
|
+
import { inject, type PropType, onMounted, type Ref, watch, ref } from 'vue';
|
|
7
|
+
|
|
8
|
+
import { type Map, type DivIcon, divIcon, type LatLng, marker, type Marker, type MarkerClusterGroup } from 'leaflet';
|
|
9
|
+
|
|
10
|
+
import { useColors } from "../../composables";
|
|
11
|
+
|
|
12
|
+
import { gpsMarkerHtml, locationMarkerHtml, pinMarkerHtml } from '../../utils/leafletMarkers';
|
|
13
|
+
import { MAP, MARKERCLUSTERGROUP } from './keys';
|
|
14
|
+
|
|
15
|
+
export default {
|
|
16
|
+
name: 'FSMapMarker',
|
|
17
|
+
props: {
|
|
18
|
+
variant: {
|
|
19
|
+
type: String as PropType<'gps' | 'location' | 'pin'>,
|
|
20
|
+
default: 'location',
|
|
21
|
+
required: false
|
|
22
|
+
},
|
|
23
|
+
color: {
|
|
24
|
+
type: String,
|
|
25
|
+
default: 'primary',
|
|
26
|
+
required: false
|
|
27
|
+
},
|
|
28
|
+
latlng: {
|
|
29
|
+
type: Object as PropType<Pick<LatLng, "lat" | "lng"> | null>,
|
|
30
|
+
required: true
|
|
31
|
+
},
|
|
32
|
+
icon: {
|
|
33
|
+
type: String,
|
|
34
|
+
required: false
|
|
35
|
+
},
|
|
36
|
+
selected: {
|
|
37
|
+
type: Boolean,
|
|
38
|
+
default: false,
|
|
39
|
+
required: false
|
|
40
|
+
},
|
|
41
|
+
label: {
|
|
42
|
+
type: String,
|
|
43
|
+
required: false
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
emits: ['click'],
|
|
47
|
+
setup(props, { emit }) {
|
|
48
|
+
const map = inject<Ref<Map | null>>(MAP);
|
|
49
|
+
const markerClusterGroup = inject<Ref<MarkerClusterGroup | null>>(MARKERCLUSTERGROUP, ref(null));
|
|
50
|
+
|
|
51
|
+
const { getColors } = useColors();
|
|
52
|
+
|
|
53
|
+
const lastMarker = ref<Marker | null>(null);
|
|
54
|
+
|
|
55
|
+
if(!map) {
|
|
56
|
+
throw new Error('FSMapTileLayer must be used inside a FSMap component');
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
if(!map.value) {
|
|
60
|
+
throw new Error('FSMapTileLayer must be used inside a FSMap component with a map');
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
const updateMarker = () => {
|
|
64
|
+
if(!map.value || !props.latlng) {
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
if(lastMarker.value) {
|
|
69
|
+
if(markerClusterGroup && markerClusterGroup.value) {
|
|
70
|
+
markerClusterGroup.value.removeLayer(lastMarker.value as Marker);
|
|
71
|
+
} else {
|
|
72
|
+
map.value.removeLayer(lastMarker.value as Marker);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
let icon: DivIcon | null = null;
|
|
77
|
+
if(props.variant === 'gps') {
|
|
78
|
+
const size = 16;
|
|
79
|
+
icon = divIcon({
|
|
80
|
+
html: gpsMarkerHtml(),
|
|
81
|
+
className: 'fs-map-mylocation',
|
|
82
|
+
iconSize: [size, size],
|
|
83
|
+
iconAnchor: [size / 2, size / 2],
|
|
84
|
+
});
|
|
85
|
+
} else if(props.variant === 'location' && props.icon) {
|
|
86
|
+
const size = 36;
|
|
87
|
+
icon = divIcon({
|
|
88
|
+
html: locationMarkerHtml(props.icon, getColors(props.color).base, props.label),
|
|
89
|
+
iconSize: [size, size],
|
|
90
|
+
className: props.selected ? 'fs-map-location fs-map-location-selected' : 'fs-map-location',
|
|
91
|
+
iconAnchor: [size / 2, size / 2],
|
|
92
|
+
});
|
|
93
|
+
} else {
|
|
94
|
+
const size = 20;
|
|
95
|
+
icon = divIcon({
|
|
96
|
+
html: pinMarkerHtml(getColors(props.color).base),
|
|
97
|
+
iconSize: [size, size],
|
|
98
|
+
className: props.selected ? 'fs-map-location fs-map-location-selected' : 'fs-map-location',
|
|
99
|
+
iconAnchor: [size / 2, size / 2],
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
lastMarker.value = marker(props.latlng, { icon });
|
|
104
|
+
lastMarker.value.on('click', (e) => {
|
|
105
|
+
emit('click', e);
|
|
106
|
+
});
|
|
107
|
+
|
|
108
|
+
if(markerClusterGroup && markerClusterGroup.value) {
|
|
109
|
+
lastMarker.value.addTo(markerClusterGroup.value);
|
|
110
|
+
} else {
|
|
111
|
+
lastMarker.value.addTo(map.value);
|
|
112
|
+
}
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
onMounted(updateMarker);
|
|
116
|
+
|
|
117
|
+
watch(() => [props.variant, props.color, props.latlng, props.selected], updateMarker);
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
</script>
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<slot />
|
|
3
|
+
</template>
|
|
4
|
+
|
|
5
|
+
<script lang="ts">
|
|
6
|
+
import { inject, provide, ref, type Ref } from 'vue';
|
|
7
|
+
|
|
8
|
+
import { type Map, MarkerClusterGroup, divIcon } from 'leaflet';
|
|
9
|
+
|
|
10
|
+
import { clusterMarkerHtml } from '../../utils/leafletMarkers';
|
|
11
|
+
import { MAP } from './keys';
|
|
12
|
+
|
|
13
|
+
export default {
|
|
14
|
+
name: 'FSMapMarkerClusterGroup',
|
|
15
|
+
props: {
|
|
16
|
+
expectedLayers: {
|
|
17
|
+
type: Number,
|
|
18
|
+
default: 0,
|
|
19
|
+
required: false
|
|
20
|
+
},
|
|
21
|
+
disableClusteringAtZoom: {
|
|
22
|
+
type: Number,
|
|
23
|
+
default: 17,
|
|
24
|
+
required: false
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
setup(props, { emit }) {
|
|
28
|
+
const map = inject<Ref<Map | null>>(MAP);
|
|
29
|
+
let added = false;
|
|
30
|
+
|
|
31
|
+
if(!map) {
|
|
32
|
+
throw new Error('FSMapMarkerClusterGroup must be used inside a FSMap component');
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
if(!map.value) {
|
|
36
|
+
throw new Error('FSMapMarkerClusterGroup must be used inside a FSMap component with a map');
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
const markerClusterGroup = ref<MarkerClusterGroup>(new MarkerClusterGroup({
|
|
40
|
+
spiderfyOnMaxZoom: false,
|
|
41
|
+
showCoverageOnHover: false,
|
|
42
|
+
disableClusteringAtZoom: props.disableClusteringAtZoom,
|
|
43
|
+
iconCreateFunction: function (cluster: any) {
|
|
44
|
+
const size = 36;
|
|
45
|
+
|
|
46
|
+
return divIcon({
|
|
47
|
+
html: clusterMarkerHtml(cluster.getChildCount()),
|
|
48
|
+
className: 'fs-map-location fs-map-location-full',
|
|
49
|
+
iconSize: [size, size],
|
|
50
|
+
iconAnchor: [size / 2, size / 2],
|
|
51
|
+
});
|
|
52
|
+
}}
|
|
53
|
+
));
|
|
54
|
+
|
|
55
|
+
provide('markerClusterGroup', markerClusterGroup);
|
|
56
|
+
|
|
57
|
+
markerClusterGroup.value.on("layeradd", () => {
|
|
58
|
+
if(!map.value) {
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
const layers = markerClusterGroup.value.getLayers();
|
|
63
|
+
|
|
64
|
+
if(layers.length === props.expectedLayers && !added) {
|
|
65
|
+
markerClusterGroup.value.addTo(map.value);
|
|
66
|
+
added = true;
|
|
67
|
+
emit("update:bounds", markerClusterGroup.value.getBounds());
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
</script>
|
|
@@ -1,23 +1,25 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
2
|
+
<v-overlay
|
|
3
|
+
v-if="isExtraSmall"
|
|
4
|
+
:modelValue="$props.mode === 'expand'"
|
|
5
|
+
:contained="true"
|
|
6
|
+
@click="$emit('update:mode', 'collapse')"
|
|
7
|
+
zIndex="0"
|
|
8
|
+
/>
|
|
9
|
+
<div
|
|
3
10
|
v-show="isExtraSmall"
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
width="hug"
|
|
8
|
-
gap="2px"
|
|
9
|
-
:height="$props.mode === 'expand' ? '100%' : ($props.mode === 'half' ? '50%' : 'hug')"
|
|
10
|
-
:id="`left-overlay-mobile-${$props.mapId}`"
|
|
11
|
-
:style="style"
|
|
12
|
-
@click="$event.target === mobileOverlayElement?.$el ? $emit('update:mode', 'collapse') : null"
|
|
11
|
+
ref="mobileOverlayWrapper"
|
|
12
|
+
class="fs-map-overlay-mobile"
|
|
13
|
+
:style="{ height: $props.mode === 'expand' ? '90%' : ($props.mode === 'half' ? '60%' : '20px') }"
|
|
13
14
|
>
|
|
14
15
|
<FSCard
|
|
15
|
-
|
|
16
|
+
width="100%"
|
|
17
|
+
height="100%"
|
|
16
18
|
:elevation="true"
|
|
17
19
|
:border="false"
|
|
18
20
|
>
|
|
19
21
|
<FSCol
|
|
20
|
-
height="
|
|
22
|
+
height="100%"
|
|
21
23
|
gap="0px"
|
|
22
24
|
>
|
|
23
25
|
<FSRow
|
|
@@ -31,62 +33,38 @@
|
|
|
31
33
|
/>
|
|
32
34
|
</FSRow>
|
|
33
35
|
<FSCol
|
|
34
|
-
|
|
36
|
+
v-if="$props.mode !== 'collapse'"
|
|
35
37
|
height="fill"
|
|
38
|
+
style="min-height: 0;"
|
|
36
39
|
>
|
|
37
40
|
<slot
|
|
38
|
-
name="
|
|
41
|
+
name="body"
|
|
39
42
|
/>
|
|
40
|
-
<FSFadeOut
|
|
41
|
-
maskHeight="0px"
|
|
42
|
-
:height="$props.mode === 'collapse' ? '0px' : '100%'"
|
|
43
|
-
>
|
|
44
|
-
<slot
|
|
45
|
-
name="leftoverlay-body"
|
|
46
|
-
/>
|
|
47
|
-
</FSFadeOut>
|
|
48
43
|
</FSCol>
|
|
49
44
|
</FSCol>
|
|
50
45
|
</FSCard>
|
|
51
|
-
</
|
|
52
|
-
|
|
46
|
+
</div>
|
|
47
|
+
|
|
48
|
+
<FSCard
|
|
53
49
|
v-show="!isExtraSmall"
|
|
54
|
-
class="fs-map-overlay-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
:
|
|
58
|
-
:style="style"
|
|
50
|
+
class="fs-map-overlay-desktop"
|
|
51
|
+
ref="desktopOverlay"
|
|
52
|
+
:elevation="true"
|
|
53
|
+
:border="false"
|
|
59
54
|
>
|
|
60
|
-
<
|
|
61
|
-
|
|
62
|
-
:elevation="true"
|
|
63
|
-
:border="false"
|
|
55
|
+
<FSCol
|
|
56
|
+
height="fill"
|
|
64
57
|
>
|
|
65
|
-
<
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
/>
|
|
71
|
-
<FSFadeOut
|
|
72
|
-
maskHeight="0"
|
|
73
|
-
height="100%"
|
|
74
|
-
>
|
|
75
|
-
<slot
|
|
76
|
-
name="leftoverlay-body"
|
|
77
|
-
/>
|
|
78
|
-
</FSFadeOut>
|
|
79
|
-
</FSCol>
|
|
80
|
-
</FSCard>
|
|
81
|
-
</FSCol>
|
|
58
|
+
<slot
|
|
59
|
+
name="body"
|
|
60
|
+
/>
|
|
61
|
+
</FSCol>
|
|
62
|
+
</FSCard>
|
|
82
63
|
</template>
|
|
83
64
|
|
|
84
65
|
<script lang="ts">
|
|
85
|
-
import {
|
|
86
|
-
|
|
66
|
+
import { defineComponent, type PropType, onUnmounted, onMounted, ref } from "vue";
|
|
87
67
|
import { useBreakpoints } from "../../composables";
|
|
88
|
-
|
|
89
|
-
import FSFadeOut from "../FSFadeOut.vue";
|
|
90
68
|
import FSButton from "../FSButton.vue";
|
|
91
69
|
import FSCard from "../FSCard.vue";
|
|
92
70
|
import FSCol from "../FSCol.vue";
|
|
@@ -95,55 +73,65 @@ import FSRow from "../FSRow.vue";
|
|
|
95
73
|
export default defineComponent({
|
|
96
74
|
name: "FSMapOverlay",
|
|
97
75
|
props: {
|
|
98
|
-
height: {
|
|
99
|
-
type: [String, Number] as PropType<string | number | null>,
|
|
100
|
-
required: false,
|
|
101
|
-
default: "100%"
|
|
102
|
-
},
|
|
103
76
|
mode: {
|
|
104
77
|
type: String as PropType<"collapse" | "half" | "expand">,
|
|
105
78
|
required: false,
|
|
106
79
|
default: "collapse"
|
|
107
|
-
},
|
|
108
|
-
mapId: {
|
|
109
|
-
type: String,
|
|
110
|
-
required: true
|
|
111
80
|
}
|
|
112
81
|
},
|
|
113
82
|
components: {
|
|
114
|
-
FSFadeOut,
|
|
115
83
|
FSButton,
|
|
116
84
|
FSCard,
|
|
117
85
|
FSCol,
|
|
118
86
|
FSRow
|
|
119
87
|
},
|
|
120
|
-
emits: ["update:mode"],
|
|
121
|
-
setup(
|
|
88
|
+
emits: ["update:mode", "update:height", "update:width"],
|
|
89
|
+
setup(_, { emit }) {
|
|
122
90
|
const { isExtraSmall } = useBreakpoints();
|
|
123
91
|
|
|
124
|
-
const
|
|
125
|
-
const
|
|
92
|
+
const mobileOverlayWrapper = ref<HTMLDivElement | null>(null);
|
|
93
|
+
const desktopOverlay = ref<InstanceType<typeof FSCard> | null>(null);
|
|
94
|
+
|
|
95
|
+
const mobileResizeObserver = ref<ResizeObserver | null>(null);
|
|
96
|
+
const desktopResizeObserver = ref<ResizeObserver | null>(null);
|
|
97
|
+
|
|
98
|
+
onMounted(() => {
|
|
99
|
+
mobileResizeObserver.value = new ResizeObserver(entries => {
|
|
100
|
+
entries.forEach((entry) => {
|
|
101
|
+
emit("update:height", entry.contentRect.height);
|
|
102
|
+
});
|
|
103
|
+
});
|
|
104
|
+
|
|
105
|
+
desktopResizeObserver.value = new ResizeObserver(entries => {
|
|
106
|
+
entries.forEach((entry) => {
|
|
107
|
+
emit("update:width", entry.contentRect.width);
|
|
108
|
+
});
|
|
109
|
+
});
|
|
110
|
+
|
|
111
|
+
if (mobileOverlayWrapper.value) {
|
|
112
|
+
mobileResizeObserver.value.observe(mobileOverlayWrapper.value);
|
|
113
|
+
emit("update:height", mobileOverlayWrapper.value.offsetHeight);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
if (desktopOverlay.value) {
|
|
117
|
+
desktopResizeObserver.value.observe(desktopOverlay.value.$el);
|
|
118
|
+
emit("update:width", desktopOverlay.value.$el.offsetWidth);
|
|
119
|
+
}
|
|
120
|
+
});
|
|
126
121
|
|
|
127
|
-
|
|
128
|
-
if (
|
|
129
|
-
|
|
130
|
-
"--fs-map-overlay-max-height": `calc(${props.height} - 40px)`,
|
|
131
|
-
"--fs-map-overlay-card-height": "95%",
|
|
132
|
-
};
|
|
122
|
+
onUnmounted((): void => {
|
|
123
|
+
if (mobileResizeObserver.value) {
|
|
124
|
+
mobileResizeObserver.value.disconnect();
|
|
133
125
|
}
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
"--fs-map-overlay-max-height": `calc(${props.height} - 40px)`,
|
|
137
|
-
"--fs-map-overlay-card-height": "100%",
|
|
138
|
-
};
|
|
126
|
+
if (desktopResizeObserver.value) {
|
|
127
|
+
desktopResizeObserver.value.disconnect();
|
|
139
128
|
}
|
|
140
129
|
});
|
|
141
130
|
|
|
142
131
|
return {
|
|
143
|
-
leftOverlayMenuMobile,
|
|
144
|
-
mobileOverlayElement,
|
|
145
132
|
isExtraSmall,
|
|
146
|
-
|
|
133
|
+
mobileOverlayWrapper,
|
|
134
|
+
desktopOverlay
|
|
147
135
|
};
|
|
148
136
|
}
|
|
149
137
|
});
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<slot />
|
|
3
|
+
</template>
|
|
4
|
+
|
|
5
|
+
<script lang="ts">
|
|
6
|
+
import { inject, type PropType, onMounted, type Ref, watch, ref } from 'vue';
|
|
7
|
+
|
|
8
|
+
import { type Map, type LatLng, type Polygon, type FeatureGroup, polygon } from 'leaflet';
|
|
9
|
+
|
|
10
|
+
import { useColors } from "../../composables";
|
|
11
|
+
import { FEATUREGROUP, MAP } from './keys';
|
|
12
|
+
|
|
13
|
+
export default {
|
|
14
|
+
name: 'FSMapPolygon',
|
|
15
|
+
props: {
|
|
16
|
+
color: {
|
|
17
|
+
type: String,
|
|
18
|
+
default: 'primary',
|
|
19
|
+
required: false
|
|
20
|
+
},
|
|
21
|
+
latlngs: {
|
|
22
|
+
type: Array as PropType<Pick<LatLng, "lat" | "lng">[] | null>,
|
|
23
|
+
required: true
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
emits: ['click'],
|
|
27
|
+
setup(props, { emit }) {
|
|
28
|
+
const map = inject<Ref<Map | null>>(MAP);
|
|
29
|
+
const featureGroup = inject<Ref<FeatureGroup | null>>(FEATUREGROUP, ref(null));
|
|
30
|
+
|
|
31
|
+
const { getColors } = useColors();
|
|
32
|
+
|
|
33
|
+
const lastPolygon = ref<Polygon | null>(null);
|
|
34
|
+
|
|
35
|
+
if(!map) {
|
|
36
|
+
throw new Error('FSMapTileLayer must be used inside a FSMap component');
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
if(!map.value) {
|
|
40
|
+
throw new Error('FSMapTileLayer must be used inside a FSMap component with a map');
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
const updatePolygon = () => {
|
|
44
|
+
if(!map.value || !props.latlngs) {
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
if(lastPolygon.value) {
|
|
49
|
+
if(featureGroup && featureGroup.value) {
|
|
50
|
+
featureGroup.value.removeLayer(lastPolygon.value as Polygon);
|
|
51
|
+
} else {
|
|
52
|
+
map.value.removeLayer(lastPolygon.value as Polygon);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
const color = getColors(props.color).base;
|
|
57
|
+
lastPolygon.value = polygon(props.latlngs.map((coord) => [coord.lat, coord.lng]), {
|
|
58
|
+
color: color,
|
|
59
|
+
fillColor: color + "50",
|
|
60
|
+
fillOpacity: 0.5,
|
|
61
|
+
className: 'fs-map-area',
|
|
62
|
+
})
|
|
63
|
+
|
|
64
|
+
lastPolygon.value.on('click', (e) => {
|
|
65
|
+
emit('click', e);
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
if(featureGroup && featureGroup.value) {
|
|
69
|
+
lastPolygon.value.addTo(featureGroup.value);
|
|
70
|
+
}
|
|
71
|
+
else {
|
|
72
|
+
lastPolygon.value.addTo(map.value);
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
onMounted(updatePolygon);
|
|
77
|
+
|
|
78
|
+
watch(() => [props.color, props.latlngs], updatePolygon);
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
</script>
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<slot />
|
|
3
|
+
</template>
|
|
4
|
+
|
|
5
|
+
<script lang="ts">
|
|
6
|
+
import { inject, type PropType, onMounted, type Ref, watch } from 'vue';
|
|
7
|
+
|
|
8
|
+
import type { Map, Layer } from 'leaflet';
|
|
9
|
+
|
|
10
|
+
import { MAP } from './keys';
|
|
11
|
+
|
|
12
|
+
export default {
|
|
13
|
+
name: 'FSMapTileLayer',
|
|
14
|
+
props: {
|
|
15
|
+
layer: {
|
|
16
|
+
type: Object as PropType<Layer>,
|
|
17
|
+
required: false
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
setup(props) {
|
|
21
|
+
const map = inject<Ref<Map | null>>(MAP);
|
|
22
|
+
|
|
23
|
+
const lastLayer = props.layer;
|
|
24
|
+
|
|
25
|
+
if(!map) {
|
|
26
|
+
throw new Error('FSMapTileLayer must be used inside a FSMap component');
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
if(!map.value) {
|
|
30
|
+
throw new Error('FSMapTileLayer must be used inside a FSMap component with a map');
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
const updateLayer = () => {
|
|
34
|
+
if (!props.layer || !map.value) {
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
if(lastLayer) {
|
|
39
|
+
map.value.removeLayer(lastLayer);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
props.layer.addTo(map.value);
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
onMounted(updateLayer);
|
|
46
|
+
|
|
47
|
+
watch(() => props.layer, updateLayer);
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
</script>
|
|
@@ -13,7 +13,7 @@ import type { PropType} from "vue";
|
|
|
13
13
|
import { computed, defineComponent } from "vue";
|
|
14
14
|
|
|
15
15
|
import { useTranslations as useTranslationsProvider } from "@dative-gpi/bones-ui/composables";
|
|
16
|
-
import { AutoRefresh } from "@dative-gpi/foundation-shared-domain/
|
|
16
|
+
import { AutoRefresh } from "@dative-gpi/foundation-shared-domain/enums";
|
|
17
17
|
|
|
18
18
|
import FSSelectField from "../fields/FSSelectField.vue";
|
|
19
19
|
|
|
@@ -40,16 +40,16 @@ export default defineComponent({
|
|
|
40
40
|
|
|
41
41
|
const autoRefreshes = computed((): { id: AutoRefresh; label: string }[] => {
|
|
42
42
|
const items = [
|
|
43
|
-
{ id: AutoRefresh.FifteenSeconds, label: $tr("ui.
|
|
44
|
-
{ id: AutoRefresh.ThirtySeconds, label: $tr("ui.
|
|
45
|
-
{ id: AutoRefresh.OneMinute, label: $tr("ui.
|
|
46
|
-
{ id: AutoRefresh.FiveMinutes, label: $tr("ui.
|
|
47
|
-
{ id: AutoRefresh.FifteenMinutes, label: $tr("ui.
|
|
48
|
-
{ id: AutoRefresh.ThirtyMinutes, label: $tr("ui.
|
|
49
|
-
{ id: AutoRefresh.OneHour, label: $tr("ui.
|
|
43
|
+
{ id: AutoRefresh.FifteenSeconds, label: $tr("ui.common.fifteen-seconds", "Fifteen seconds") },
|
|
44
|
+
{ id: AutoRefresh.ThirtySeconds, label: $tr("ui.common.thirty-seconds", "Thirty seconds") },
|
|
45
|
+
{ id: AutoRefresh.OneMinute, label: $tr("ui.common.one-minute", "One minute") },
|
|
46
|
+
{ id: AutoRefresh.FiveMinutes, label: $tr("ui.common.five-minutes", "Five minutes") },
|
|
47
|
+
{ id: AutoRefresh.FifteenMinutes, label: $tr("ui.common.fifteen-minutes", "Fifteen minutes") },
|
|
48
|
+
{ id: AutoRefresh.ThirtyMinutes, label: $tr("ui.common.thirty-minutes", "Thirty minutes") },
|
|
49
|
+
{ id: AutoRefresh.OneHour, label: $tr("ui.common.one-hour", "One hour") },
|
|
50
50
|
];
|
|
51
51
|
if (props.useNone) {
|
|
52
|
-
items.unshift({ id: AutoRefresh.None, label: $tr("ui.
|
|
52
|
+
items.unshift({ id: AutoRefresh.None, label: $tr("ui.common.none", "None") });
|
|
53
53
|
}
|
|
54
54
|
return items;
|
|
55
55
|
});
|
|
@@ -13,7 +13,7 @@ import type { PropType} from "vue";
|
|
|
13
13
|
import { computed, defineComponent } from "vue";
|
|
14
14
|
|
|
15
15
|
import { useTranslations as useTranslationsProvider } from "@dative-gpi/bones-ui/composables";
|
|
16
|
-
import { DashboardVariableType } from "@dative-gpi/foundation-shared-domain/
|
|
16
|
+
import { DashboardVariableType } from "@dative-gpi/foundation-shared-domain/enums";
|
|
17
17
|
|
|
18
18
|
import FSSelectField from "../fields/FSSelectField.vue";
|
|
19
19
|
|
|
@@ -34,9 +34,10 @@ export default defineComponent({
|
|
|
34
34
|
const { $tr } = useTranslationsProvider();
|
|
35
35
|
|
|
36
36
|
const dashboardVariableTypes = computed((): { id: DashboardVariableType; label: string }[] => ([
|
|
37
|
-
{ id: DashboardVariableType.Number, label: $tr("ui.
|
|
38
|
-
{ id: DashboardVariableType.String, label: $tr("ui.
|
|
39
|
-
{ id: DashboardVariableType.TimeStep, label: $tr("ui.
|
|
37
|
+
{ id: DashboardVariableType.Number, label: $tr("ui.common.number", "Number") },
|
|
38
|
+
{ id: DashboardVariableType.String, label: $tr("ui.common.string", "String") },
|
|
39
|
+
{ id: DashboardVariableType.TimeStep, label: $tr("ui.common.time-step", "Time step")},
|
|
40
|
+
{ id: DashboardVariableType.PlotPer, label: $tr("ui.common.plot-per", "Plot per")}
|
|
40
41
|
]));
|
|
41
42
|
|
|
42
43
|
return {
|