@dative-gpi/foundation-shared-components 1.0.70 → 1.0.71-groupings-2
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/snow.png +0 -0
- package/components/FSAccordionPanel.vue +40 -21
- package/components/FSBreadcrumbs.vue +21 -12
- package/components/FSButton.vue +11 -9
- package/components/FSCalendar.vue +50 -12
- package/components/FSCalendarTwin.vue +95 -43
- package/components/FSCard.vue +61 -9
- package/components/FSCardPlaceholder.vue +8 -5
- package/components/FSCheckbox.vue +5 -4
- package/components/FSChip.vue +73 -45
- package/components/FSChipGroup.vue +69 -0
- package/components/FSClickable.vue +11 -9
- package/components/FSClock.vue +30 -12
- package/components/FSCol.vue +11 -5
- package/components/FSDialog.vue +2 -1
- package/components/FSDialogContent.vue +12 -11
- package/components/FSDialogForm.vue +22 -2
- package/components/FSDialogFormBody.vue +50 -31
- package/components/FSDialogMenu.vue +17 -8
- package/components/FSDialogMultiFormBody.vue +23 -13
- package/components/FSDialogRemove.vue +7 -8
- package/components/FSDialogSubmit.vue +20 -11
- package/components/FSEditImageUI.vue +13 -5
- package/components/FSFadeOut.vue +53 -21
- package/components/FSForm.vue +10 -8
- package/components/FSGrid.vue +0 -1
- package/components/FSIcon.vue +2 -2
- package/components/FSIconCard.vue +68 -12
- package/components/FSInformationsMenu.vue +142 -0
- package/components/FSInstantPicker.vue +268 -0
- package/components/FSLink.vue +25 -9
- package/components/FSLoader.vue +28 -10
- package/components/FSMenu.vue +47 -0
- package/components/FSOptionGroup.vue +8 -8
- package/components/FSOptionItem.vue +4 -4
- package/components/FSOptionsMenu.vue +165 -0
- package/components/FSPagination.vue +1 -1
- package/components/FSPlayButtons.vue +72 -0
- package/components/FSProgressBar.vue +94 -0
- package/components/FSRadio.vue +5 -4
- package/components/FSRadioGroup.vue +3 -3
- package/components/FSRangePicker.vue +275 -0
- package/components/FSRangeSlider.vue +84 -0
- package/components/FSRouterLink.vue +42 -0
- package/components/FSSlideGroup.vue +9 -7
- package/components/FSSlider.vue +44 -79
- package/components/FSSpan.vue +22 -8
- package/components/FSSwitch.vue +44 -48
- package/components/FSTab.vue +15 -13
- package/components/FSTabs.vue +5 -2
- package/components/FSTag.vue +3 -3
- package/components/FSTagGroup.vue +6 -4
- package/components/FSText.vue +21 -8
- package/components/FSToggleSet.vue +7 -7
- package/components/FSTreeView.vue +107 -0
- package/components/FSWindow.vue +122 -5
- package/components/agenda/FSAgenda.vue +26 -7
- package/components/agenda/FSAgendaDialogCalendar.vue +2 -2
- package/components/agenda/FSAgendaHeader.vue +35 -10
- package/components/agenda/FSAgendaHorizontalEvent.vue +18 -6
- package/components/agenda/FSAgendaHoursRow.vue +48 -8
- package/components/agenda/FSAgendaVerticalEvent.vue +1 -1
- package/components/agenda/FSDayAgenda.vue +0 -1
- package/components/agenda/FSMonthAgenda.vue +1 -6
- package/components/agenda/FSSelectAgendaMode.vue +2 -2
- package/components/agenda/FSWeekAgenda.vue +5 -10
- package/components/autocompletes/FSAutoCompleteAddress.vue +25 -20
- package/components/autocompletes/FSAutocompleteLanguage.vue +7 -1
- package/components/autocompletes/FSAutocompleteTimeZone.vue +7 -1
- 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/FSButtonCheckbox.vue +4 -4
- package/components/buttons/FSButtonCopy.vue +1 -1
- package/components/buttons/FSButtonCopyLabel.vue +1 -1
- 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/carousels/FSCarousel.vue +23 -0
- package/components/carousels/FSCarouselItem.vue +14 -0
- package/components/deviceOrganisations/FSConnectivity.vue +5 -3
- package/components/deviceOrganisations/FSStatus.vue +5 -3
- package/components/deviceOrganisations/FSStatusCard.vue +7 -9
- package/components/deviceOrganisations/FSStatusRichCard.vue +171 -0
- package/components/deviceOrganisations/FSWorstAlert.vue +24 -36
- package/components/deviceOrganisations/FSWorstAlertCard.vue +8 -47
- package/components/fields/FSAutocompleteField.vue +85 -82
- package/components/fields/FSAutocompleteTag.vue +1 -1
- package/components/fields/FSBaseField.vue +42 -25
- package/components/fields/FSClosableSearchField.vue +83 -0
- package/components/fields/FSColorField.vue +12 -10
- package/components/fields/FSCommentField.vue +28 -16
- package/components/fields/FSDateField.vue +13 -10
- package/components/fields/FSDateRangeField.vue +6 -5
- package/components/fields/FSDateTimeField.vue +14 -11
- package/components/fields/FSDateTimeRangeDialog.vue +160 -0
- package/components/fields/FSDateTimeRangeField.vue +23 -115
- package/components/fields/FSEntityFieldUI.vue +19 -16
- package/components/fields/FSGradientField.vue +5 -5
- package/components/fields/FSIconField.vue +16 -9
- package/components/fields/FSMapAddressField.vue +187 -0
- package/components/fields/FSNumberField.vue +8 -4
- package/components/fields/FSPasswordField.vue +7 -7
- package/components/fields/FSPoliciesValidationField.vue +101 -0
- package/components/fields/FSRichTextField.vue +78 -58
- package/components/fields/FSSearchField.vue +9 -115
- package/components/fields/FSSelectField.vue +69 -71
- package/components/fields/FSTagField.vue +9 -9
- package/components/fields/FSTermField.vue +69 -46
- package/components/fields/FSTextArea.vue +17 -11
- package/components/fields/FSTextField.vue +15 -10
- package/components/fields/FSTimeField.vue +14 -10
- package/components/fields/FSTimeRangeField.vue +117 -187
- package/components/fields/FSTimeStepField.vue +5 -5
- package/components/fields/FSTranslateField.vue +10 -10
- package/components/fields/FSTranslateRichTextField.vue +41 -20
- package/components/fields/FSTranslateTextArea.vue +10 -10
- package/components/fields/FSTreeViewField.vue +21 -19
- package/components/fields/periodicField/FSPeriodicDailyField.vue +7 -7
- package/components/fields/periodicField/FSPeriodicField.vue +15 -15
- package/components/fields/periodicField/FSPeriodicMonthlyField.vue +16 -16
- package/components/fields/periodicField/FSPeriodicWeeklyField.vue +28 -18
- package/components/fields/periodicField/FSPeriodicYearlyField.vue +12 -12
- package/components/lists/FSDataIteratorItem.vue +23 -67
- package/components/lists/FSDataTableUI.vue +194 -119
- package/components/lists/FSFilterButton.vue +14 -16
- package/components/lists/FSHeaderButton.vue +11 -9
- package/components/lists/FSHiddenButton.vue +9 -9
- package/components/lists/FSLoadDataTable.vue +10 -7
- package/components/lists/FSSimpleList.vue +95 -88
- package/components/lists/FSSimpleListItem.vue +131 -0
- package/components/map/FSMap.vue +144 -158
- package/components/map/FSMapFeatureGroup.vue +7 -1
- package/components/map/FSMapLayerButton.vue +3 -3
- package/components/map/FSMapMarker.vue +103 -42
- package/components/map/FSMapMarkerClusterGroup.vue +32 -7
- package/components/map/FSMapOverlay.vue +44 -24
- package/components/map/FSMapPolygon.vue +16 -4
- package/components/map/FSMapTileLayer.vue +26 -9
- package/components/map/layers.ts +0 -0
- package/components/selects/FSSelectAutoRefresh.vue +8 -8
- package/components/selects/FSSelectDashboardVariableType.vue +4 -3
- package/components/selects/FSSelectDateSetting.vue +2 -2
- package/components/selects/FSSelectDays.vue +8 -8
- package/components/selects/FSSelectListMode.vue +2 -2
- package/components/selects/FSSelectMapLayer.vue +68 -0
- package/components/selects/FSSelectMonths.vue +13 -13
- 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/FSSelectEntityType.vue +59 -0
- package/components/selects/chartSelectors/FSSerieTypeSelector.vue +53 -0
- package/components/tiles/FSAlertTileUI.vue +90 -0
- package/components/tiles/FSChartTileUI.vue +61 -52
- package/components/tiles/FSCommentTileUI.vue +38 -13
- package/components/tiles/FSDashboardOrganisationTypeTileUI.vue +14 -2
- package/components/tiles/FSDashboardShallowTileUI.vue +14 -2
- package/components/tiles/FSDeviceOrganisationTileUI.vue +0 -6
- package/components/tiles/FSEntityCountBadge.vue +83 -0
- package/components/tiles/FSFolderTileUI.vue +38 -4
- package/components/tiles/FSGroupTileUI.vue +32 -136
- package/components/tiles/FSGroupingTileUI.vue +52 -0
- package/components/tiles/FSLoadTile.vue +16 -10
- package/components/tiles/FSLocationTileUI.vue +50 -80
- package/components/tiles/FSServiceAccountOrganisationTileUI.vue +0 -6
- package/components/tiles/FSSimpleTileUI.vue +32 -27
- package/components/tiles/FSTile.vue +46 -39
- package/components/tiles/FSUserOrganisationTileUI.vue +1 -7
- package/components/tiles/FSUserTileUI.vue +119 -0
- package/components/toggleSets/FSToggleSetPosition.vue +1 -1
- package/components/views/FSBaseView.vue +64 -0
- package/components/views/FSEntityView.vue +12 -146
- package/components/views/FSSimpleView.vue +29 -0
- package/components/views/desktop/FSBaseDefaultDesktopView.vue +135 -0
- package/components/views/desktop/FSBaseDesktopView.vue +53 -0
- package/components/views/desktop/FSBaseEntityDesktopView.vue +211 -0
- package/components/views/mobile/FSBaseDefaultMobileView.vue +133 -0
- package/components/views/mobile/FSBaseEntityMobileView.vue +206 -0
- package/components/views/mobile/FSBaseMobileView.vue +53 -0
- package/composables/index.ts +1 -1
- package/composables/useAddress.ts +40 -8
- package/composables/useBreakpoints.ts +40 -4
- package/composables/useColors.ts +16 -7
- package/composables/useMapLayers.ts +69 -0
- package/composables/useSlots.ts +2 -1
- package/models/colors.ts +2 -1
- package/models/deviceAlerts.ts +1 -0
- package/models/index.ts +0 -1
- package/models/map.ts +12 -10
- package/models/rules.ts +5 -2
- package/models/tables.ts +2 -1
- package/models/variableNode.ts +8 -5
- package/package.json +5 -5
- package/styles/components/fs_agenda.scss +4 -0
- package/styles/components/fs_agenda_event.scss +1 -1
- package/styles/components/fs_agenda_hours_row.scss +0 -8
- package/styles/components/fs_autocomplete_field.scss +0 -13
- package/styles/components/fs_breadcrumbs.scss +18 -36
- package/styles/components/fs_button.scss +7 -5
- package/styles/components/fs_calendar.scss +1 -0
- package/styles/components/fs_card.scss +9 -0
- package/styles/components/fs_chip.scss +13 -7
- package/styles/components/fs_clickable.scss +16 -23
- package/styles/components/fs_clock.scss +0 -10
- package/styles/components/fs_col.scss +1 -1
- package/styles/components/fs_color_field.scss +0 -4
- package/styles/components/fs_data_table.scss +6 -9
- package/styles/components/fs_dialog.scss +4 -10
- package/styles/components/fs_dialog_menu.scss +4 -2
- package/styles/components/fs_draggable.scss +0 -5
- package/styles/components/fs_fade_out.scss +10 -2
- package/styles/components/fs_filter_button.scss +1 -1
- package/styles/components/fs_hidden_button.scss +2 -7
- package/styles/components/fs_image_card.scss +6 -4
- package/styles/components/fs_magic_config_field.scss +1 -2
- package/styles/components/fs_map.scss +57 -17
- package/styles/components/fs_meta_field.scss +3 -5
- package/styles/components/fs_password_field.scss +4 -2
- package/styles/components/fs_progress_bar.scss +14 -0
- package/styles/components/fs_radio.scss +0 -11
- package/styles/components/fs_rich_text_field.scss +1 -10
- package/styles/components/fs_select_field.scss +4 -13
- package/styles/components/fs_slide_group.scss +3 -1
- package/styles/components/fs_slider.scss +0 -40
- package/styles/components/fs_span.scss +17 -5
- package/styles/components/fs_status_rich_card.scss +6 -0
- package/styles/components/fs_tabs.scss +18 -37
- package/styles/components/fs_tag.scss +8 -22
- package/styles/components/fs_text_area.scss +2 -21
- package/styles/components/fs_tile.scss +0 -19
- package/styles/components/fs_window.scss +3 -1
- package/styles/components/fs_wrap_group.scss +3 -0
- package/styles/components/index.scss +2 -6
- package/styles/globals/index.scss +1 -5
- package/styles/globals/overrides.scss +26 -44
- package/styles/globals/scrollbars.scss +8 -0
- package/styles/globals/text_fonts.scss +18 -66
- package/styles/globals/touchscreen.scss +2 -2
- package/tools/alertsTools.ts +94 -18
- package/tools/chartsTools.ts +156 -16
- package/tools/index.ts +1 -0
- package/tools/reportsTools.ts +38 -0
- package/tools/timeRangeTools.ts +99 -40
- package/utils/badge.ts +9 -5
- package/utils/index.ts +2 -0
- package/utils/leafletMarkers.ts +4 -4
- package/utils/operations.ts +108 -0
- package/utils/picker.ts +40 -0
- package/utils/sort.ts +2 -2
- package/utils/time.ts +13 -13
- package/components/fields/FSMagicConfigField.vue +0 -163
- package/components/fields/FSMagicField.vue +0 -193
- package/components/fields/FSTimeSlotField.vue +0 -250
- package/components/views/FSEntityHeader.vue +0 -343
- package/components/views/FSListHeader.vue +0 -83
- package/components/views/FSListView.vue +0 -83
- package/components/views/FSSkeletonView.vue +0 -100
- package/composables/useMagicFieldProvider.ts +0 -23
- package/models/magicFields.ts +0 -10
- package/styles/components/fs_data_iterator_item.scss +0 -33
- package/styles/components/fs_icon_field.scss +0 -12
- package/styles/components/fs_search_field.scss +0 -3
- 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
|
@@ -3,11 +3,13 @@
|
|
|
3
3
|
</template>
|
|
4
4
|
|
|
5
5
|
<script lang="ts">
|
|
6
|
-
import { inject, type PropType,
|
|
6
|
+
import { inject, type PropType, type Ref, watch, ref, onUnmounted, computed } from 'vue';
|
|
7
|
+
import { type RouteLocation } from "vue-router";
|
|
7
8
|
|
|
8
|
-
import { type Map,
|
|
9
|
+
import { type Map, divIcon, type LatLng, marker, type Marker, type MarkerClusterGroup } from 'leaflet';
|
|
9
10
|
|
|
10
11
|
import { useColors } from "../../composables";
|
|
12
|
+
import { useRouting } from '@dative-gpi/foundation-shared-services/composables';
|
|
11
13
|
|
|
12
14
|
import { gpsMarkerHtml, locationMarkerHtml, pinMarkerHtml } from '../../utils/leafletMarkers';
|
|
13
15
|
import { MAP, MARKERCLUSTERGROUP } from './keys';
|
|
@@ -37,16 +39,23 @@ export default {
|
|
|
37
39
|
type: Boolean,
|
|
38
40
|
default: false,
|
|
39
41
|
required: false
|
|
42
|
+
},
|
|
43
|
+
label: {
|
|
44
|
+
type: String,
|
|
45
|
+
required: false
|
|
46
|
+
},
|
|
47
|
+
to: {
|
|
48
|
+
type: Object as PropType<RouteLocation | null>,
|
|
49
|
+
required: false
|
|
40
50
|
}
|
|
41
51
|
},
|
|
42
|
-
emits: ['click'],
|
|
52
|
+
emits: ['click', 'auxclick'],
|
|
43
53
|
setup(props, { emit }) {
|
|
44
54
|
const map = inject<Ref<Map | null>>(MAP);
|
|
45
55
|
const markerClusterGroup = inject<Ref<MarkerClusterGroup | null>>(MARKERCLUSTERGROUP, ref(null));
|
|
46
|
-
|
|
56
|
+
|
|
47
57
|
const { getColors } = useColors();
|
|
48
|
-
|
|
49
|
-
const lastMarker = ref<Marker | null>(null);
|
|
58
|
+
const { handleRoutingEvent } = useRouting();
|
|
50
59
|
|
|
51
60
|
if(!map) {
|
|
52
61
|
throw new Error('FSMapTileLayer must be used inside a FSMap component');
|
|
@@ -55,62 +64,114 @@ export default {
|
|
|
55
64
|
if(!map.value) {
|
|
56
65
|
throw new Error('FSMapTileLayer must be used inside a FSMap component with a map');
|
|
57
66
|
}
|
|
58
|
-
|
|
59
|
-
const
|
|
60
|
-
if(!map.value || !props.latlng) {
|
|
61
|
-
return;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
if(lastMarker.value) {
|
|
65
|
-
if(markerClusterGroup && markerClusterGroup.value) {
|
|
66
|
-
markerClusterGroup.value.removeLayer(lastMarker.value);
|
|
67
|
-
} else {
|
|
68
|
-
map.value.removeLayer(lastMarker.value as Layer);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
let icon: DivIcon | null = null;
|
|
67
|
+
|
|
68
|
+
const getMarkerIcon = () => {
|
|
73
69
|
if(props.variant === 'gps') {
|
|
74
70
|
const size = 16;
|
|
75
|
-
|
|
71
|
+
return divIcon({
|
|
76
72
|
html: gpsMarkerHtml(),
|
|
77
73
|
className: 'fs-map-mylocation',
|
|
78
74
|
iconSize: [size, size],
|
|
79
75
|
iconAnchor: [size / 2, size / 2],
|
|
80
76
|
});
|
|
81
|
-
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
if(props.variant === 'location') {
|
|
82
80
|
const size = 36;
|
|
83
|
-
|
|
84
|
-
html: locationMarkerHtml(props.icon, getColors(props.color).base),
|
|
85
|
-
iconSize: [size, size],
|
|
86
|
-
className: props.selected ? 'fs-map-location fs-map-location-selected' : 'fs-map-location',
|
|
87
|
-
iconAnchor: [size / 2, size / 2],
|
|
88
|
-
});
|
|
89
|
-
} else {
|
|
90
|
-
const size = 20;
|
|
91
|
-
icon = divIcon({
|
|
92
|
-
html: pinMarkerHtml(getColors(props.color).base),
|
|
81
|
+
return divIcon({
|
|
82
|
+
html: locationMarkerHtml(props.icon ?? "mdi-map-marker", getColors(props.color).base, props.label),
|
|
93
83
|
iconSize: [size, size],
|
|
94
|
-
className: props.selected ? 'fs-map-location fs-map-location-selected' : 'fs-map-location',
|
|
84
|
+
className: props.selected ? 'fs-map-marker fs-map-location fs-map-location-selected' : 'fs-map-marker fs-map-location',
|
|
95
85
|
iconAnchor: [size / 2, size / 2],
|
|
96
86
|
});
|
|
97
87
|
}
|
|
88
|
+
|
|
89
|
+
const size = 16;
|
|
90
|
+
return divIcon({
|
|
91
|
+
html: pinMarkerHtml(getColors(props.color).base, props.label),
|
|
92
|
+
iconSize: [size, size],
|
|
93
|
+
className: props.selected ? 'fs-map-marker fs-map-pin fs-map-pin-selected' : 'fs-map-marker fs-map-pin',
|
|
94
|
+
iconAnchor: [size / 2, size / 2],
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
const actualMarker = ref(marker(props.latlng ?? [0, 0], { icon: getMarkerIcon() }));
|
|
99
|
+
|
|
100
|
+
const markerElement = computed(() => {
|
|
101
|
+
return actualMarker.value.getElement();
|
|
102
|
+
});
|
|
103
|
+
|
|
104
|
+
const onClick = (event: MouseEvent) => {
|
|
105
|
+
if(props.to) {
|
|
106
|
+
handleRoutingEvent(event, props.to, true);
|
|
107
|
+
return;
|
|
108
|
+
}
|
|
98
109
|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
110
|
+
emit('click', {
|
|
111
|
+
...event,
|
|
112
|
+
latlng: props.latlng
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
const onAuxClick = (event: MouseEvent) => {
|
|
117
|
+
if(props.to) {
|
|
118
|
+
handleRoutingEvent(event, props.to);
|
|
119
|
+
return;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
emit('auxclick', {
|
|
123
|
+
...event,
|
|
124
|
+
latlng: props.latlng
|
|
102
125
|
});
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
watch(map, () => {
|
|
129
|
+
if(!map.value) {
|
|
130
|
+
return;
|
|
131
|
+
}
|
|
103
132
|
|
|
104
133
|
if(markerClusterGroup && markerClusterGroup.value) {
|
|
105
|
-
|
|
134
|
+
actualMarker.value.addTo(markerClusterGroup.value);
|
|
106
135
|
} else {
|
|
107
|
-
|
|
136
|
+
actualMarker.value.addTo(map.value);
|
|
137
|
+
}
|
|
138
|
+
}, { immediate: true });
|
|
139
|
+
|
|
140
|
+
watch([() => props.variant, () => props.color, () => props.selected], () => {
|
|
141
|
+
if(!actualMarker.value || !map.value) {
|
|
142
|
+
return;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
const icon = getMarkerIcon();
|
|
146
|
+
actualMarker.value?.setIcon(icon);
|
|
147
|
+
});
|
|
148
|
+
|
|
149
|
+
watch([() => props.latlng?.lat, () => props.latlng?.lng], () => {
|
|
150
|
+
if(!actualMarker.value || !map.value || !props.latlng) {
|
|
151
|
+
return;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
actualMarker.value.setLatLng(props.latlng);
|
|
155
|
+
});
|
|
156
|
+
|
|
157
|
+
watch(markerElement, (newMarkerElement) => {
|
|
158
|
+
if(!newMarkerElement) {
|
|
159
|
+
return;
|
|
108
160
|
}
|
|
109
|
-
};
|
|
110
161
|
|
|
111
|
-
|
|
162
|
+
newMarkerElement.addEventListener('click', onClick);
|
|
163
|
+
newMarkerElement.addEventListener('auxclick', onAuxClick);
|
|
164
|
+
}, { immediate: true });
|
|
112
165
|
|
|
113
|
-
|
|
166
|
+
onUnmounted(() => {
|
|
167
|
+
if(actualMarker.value && map.value) {
|
|
168
|
+
if(markerClusterGroup && markerClusterGroup.value) {
|
|
169
|
+
markerClusterGroup.value.removeLayer(actualMarker.value as Marker);
|
|
170
|
+
} else {
|
|
171
|
+
map.value.removeLayer(actualMarker.value as Marker);
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
})
|
|
114
175
|
}
|
|
115
176
|
};
|
|
116
177
|
</script>
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
</template>
|
|
4
4
|
|
|
5
5
|
<script lang="ts">
|
|
6
|
-
import { inject, provide, ref, type Ref } from 'vue';
|
|
6
|
+
import { inject, provide, ref, type Ref, onUnmounted } from 'vue';
|
|
7
7
|
|
|
8
|
-
import { type Map, MarkerClusterGroup, divIcon } from 'leaflet';
|
|
8
|
+
import { LatLngBounds, type Map, MarkerClusterGroup, divIcon } from 'leaflet';
|
|
9
9
|
|
|
10
10
|
import { clusterMarkerHtml } from '../../utils/leafletMarkers';
|
|
11
11
|
import { MAP } from './keys';
|
|
@@ -45,7 +45,7 @@ export default {
|
|
|
45
45
|
|
|
46
46
|
return divIcon({
|
|
47
47
|
html: clusterMarkerHtml(cluster.getChildCount()),
|
|
48
|
-
className: 'fs-map-
|
|
48
|
+
className: 'fs-map-marker fs-map-cluster-marker',
|
|
49
49
|
iconSize: [size, size],
|
|
50
50
|
iconAnchor: [size / 2, size / 2],
|
|
51
51
|
});
|
|
@@ -54,17 +54,42 @@ export default {
|
|
|
54
54
|
|
|
55
55
|
provide('markerClusterGroup', markerClusterGroup);
|
|
56
56
|
|
|
57
|
-
|
|
58
|
-
if(!map.value) {
|
|
57
|
+
const handleLayerChange = () => {
|
|
58
|
+
if (!map.value) {
|
|
59
59
|
return;
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
const layers = markerClusterGroup.value.getLayers();
|
|
63
63
|
|
|
64
|
-
if(layers.length ===
|
|
64
|
+
if (layers.length === 0 && added) {
|
|
65
|
+
map.value.removeLayer(markerClusterGroup.value as unknown as L.Layer);
|
|
66
|
+
added = false;
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
69
|
+
if (layers.length === props.expectedLayers && !added) {
|
|
65
70
|
markerClusterGroup.value.addTo(map.value);
|
|
66
71
|
added = true;
|
|
67
|
-
|
|
72
|
+
}
|
|
73
|
+
if (layers.length === props.expectedLayers) {
|
|
74
|
+
const bounds = new LatLngBounds([]);
|
|
75
|
+
for (const layer of layers as any[]) {
|
|
76
|
+
if (layer.getBounds) {
|
|
77
|
+
bounds.extend(layer.getBounds());
|
|
78
|
+
} else if (layer.getLatLng) {
|
|
79
|
+
bounds.extend(layer.getLatLng());
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
emit("update:bounds", layers.length > 0 ? bounds : null);
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
markerClusterGroup.value.on("layeradd", handleLayerChange);
|
|
88
|
+
markerClusterGroup.value.on("layerremove", handleLayerChange);
|
|
89
|
+
|
|
90
|
+
onUnmounted(() => {
|
|
91
|
+
if (map.value && map.value.hasLayer(markerClusterGroup.value as unknown as L.Layer)) {
|
|
92
|
+
map.value.removeLayer(markerClusterGroup.value as unknown as L.Layer);
|
|
68
93
|
}
|
|
69
94
|
});
|
|
70
95
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<v-overlay
|
|
3
3
|
v-if="isExtraSmall"
|
|
4
|
-
:modelValue="$props.mode ===
|
|
4
|
+
:modelValue="$props.mode === MapOverlayPositions.Expand"
|
|
5
5
|
:contained="true"
|
|
6
|
-
@click="$emit('update:mode',
|
|
6
|
+
@click="$emit('update:mode', MapOverlayPositions.Collapse)"
|
|
7
7
|
zIndex="0"
|
|
8
8
|
/>
|
|
9
9
|
<div
|
|
10
10
|
v-show="isExtraSmall"
|
|
11
11
|
ref="mobileOverlayWrapper"
|
|
12
12
|
class="fs-map-overlay-mobile"
|
|
13
|
-
:style="{ height: $props.mode ===
|
|
13
|
+
:style="{ height: $props.mode === MapOverlayPositions.Expand ? '90%' : ($props.mode === MapOverlayPositions.Half ? '60%' : 'auto') }"
|
|
14
14
|
>
|
|
15
15
|
<FSCard
|
|
16
16
|
width="100%"
|
|
@@ -24,16 +24,20 @@
|
|
|
24
24
|
>
|
|
25
25
|
<FSRow
|
|
26
26
|
align="center-center"
|
|
27
|
-
|
|
27
|
+
style="cursor: pointer;"
|
|
28
|
+
@touchstart="onClick"
|
|
29
|
+
@mousedown="onClick"
|
|
28
30
|
>
|
|
29
|
-
<
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
@click="$props.mode === 'expand' ? $emit('update:mode', 'collapse') : $emit('update:mode', 'expand')"
|
|
33
|
-
/>
|
|
31
|
+
<FSIcon>
|
|
32
|
+
{{ $props.mode === MapOverlayPositions.Expand ? 'mdi-chevron-down' : 'mdi-chevron-up' }}
|
|
33
|
+
</FSIcon>
|
|
34
34
|
</FSRow>
|
|
35
|
+
<slot
|
|
36
|
+
v-if="$props.mode === MapOverlayPositions.Collapse"
|
|
37
|
+
name="collapsed"
|
|
38
|
+
/>
|
|
35
39
|
<FSCol
|
|
36
|
-
v-if="$props.mode !==
|
|
40
|
+
v-if="$props.mode !== MapOverlayPositions.Collapse"
|
|
37
41
|
height="fill"
|
|
38
42
|
style="min-height: 0;"
|
|
39
43
|
>
|
|
@@ -44,7 +48,6 @@
|
|
|
44
48
|
</FSCol>
|
|
45
49
|
</FSCard>
|
|
46
50
|
</div>
|
|
47
|
-
|
|
48
51
|
<FSCard
|
|
49
52
|
v-show="!isExtraSmall"
|
|
50
53
|
class="fs-map-overlay-desktop"
|
|
@@ -64,30 +67,34 @@
|
|
|
64
67
|
|
|
65
68
|
<script lang="ts">
|
|
66
69
|
import { defineComponent, type PropType, onUnmounted, onMounted, ref } from "vue";
|
|
70
|
+
|
|
67
71
|
import { useBreakpoints } from "../../composables";
|
|
68
|
-
|
|
72
|
+
|
|
73
|
+
import { MapOverlayPositions } from '@dative-gpi/foundation-shared-components/models';
|
|
74
|
+
|
|
69
75
|
import FSCard from "../FSCard.vue";
|
|
76
|
+
import FSIcon from "../FSIcon.vue";
|
|
70
77
|
import FSCol from "../FSCol.vue";
|
|
71
78
|
import FSRow from "../FSRow.vue";
|
|
72
79
|
|
|
73
80
|
export default defineComponent({
|
|
74
81
|
name: "FSMapOverlay",
|
|
75
|
-
props: {
|
|
76
|
-
mode: {
|
|
77
|
-
type: String as PropType<"collapse" | "half" | "expand">,
|
|
78
|
-
required: false,
|
|
79
|
-
default: "collapse"
|
|
80
|
-
}
|
|
81
|
-
},
|
|
82
82
|
components: {
|
|
83
|
-
FSButton,
|
|
84
83
|
FSCard,
|
|
84
|
+
FSIcon,
|
|
85
85
|
FSCol,
|
|
86
86
|
FSRow
|
|
87
87
|
},
|
|
88
|
+
props: {
|
|
89
|
+
mode: {
|
|
90
|
+
type: String as PropType<MapOverlayPositions>,
|
|
91
|
+
required: false,
|
|
92
|
+
default: MapOverlayPositions.Collapse
|
|
93
|
+
}
|
|
94
|
+
},
|
|
88
95
|
emits: ["update:mode", "update:height", "update:width"],
|
|
89
|
-
setup(
|
|
90
|
-
const { isExtraSmall } = useBreakpoints();
|
|
96
|
+
setup(props, { emit }) {
|
|
97
|
+
const { isExtraSmall, isTouchScreenEnabled } = useBreakpoints();
|
|
91
98
|
|
|
92
99
|
const mobileOverlayWrapper = ref<HTMLDivElement | null>(null);
|
|
93
100
|
const desktopOverlay = ref<InstanceType<typeof FSCard> | null>(null);
|
|
@@ -95,6 +102,14 @@ export default defineComponent({
|
|
|
95
102
|
const mobileResizeObserver = ref<ResizeObserver | null>(null);
|
|
96
103
|
const desktopResizeObserver = ref<ResizeObserver | null>(null);
|
|
97
104
|
|
|
105
|
+
const onClick = (): void => {
|
|
106
|
+
if (props.mode === MapOverlayPositions.Expand) {
|
|
107
|
+
emit("update:mode", MapOverlayPositions.Collapse);
|
|
108
|
+
return;
|
|
109
|
+
}
|
|
110
|
+
emit("update:mode", MapOverlayPositions.Expand);
|
|
111
|
+
}
|
|
112
|
+
|
|
98
113
|
onMounted(() => {
|
|
99
114
|
mobileResizeObserver.value = new ResizeObserver(entries => {
|
|
100
115
|
entries.forEach((entry) => {
|
|
@@ -110,10 +125,12 @@ export default defineComponent({
|
|
|
110
125
|
|
|
111
126
|
if (mobileOverlayWrapper.value) {
|
|
112
127
|
mobileResizeObserver.value.observe(mobileOverlayWrapper.value);
|
|
128
|
+
emit("update:height", mobileOverlayWrapper.value.offsetHeight);
|
|
113
129
|
}
|
|
114
130
|
|
|
115
131
|
if (desktopOverlay.value) {
|
|
116
132
|
desktopResizeObserver.value.observe(desktopOverlay.value.$el);
|
|
133
|
+
emit("update:width", desktopOverlay.value.$el.offsetWidth);
|
|
117
134
|
}
|
|
118
135
|
});
|
|
119
136
|
|
|
@@ -127,9 +144,12 @@ export default defineComponent({
|
|
|
127
144
|
});
|
|
128
145
|
|
|
129
146
|
return {
|
|
130
|
-
isExtraSmall,
|
|
131
147
|
mobileOverlayWrapper,
|
|
132
|
-
|
|
148
|
+
isTouchScreenEnabled,
|
|
149
|
+
MapOverlayPositions,
|
|
150
|
+
desktopOverlay,
|
|
151
|
+
isExtraSmall,
|
|
152
|
+
onClick
|
|
133
153
|
};
|
|
134
154
|
}
|
|
135
155
|
});
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
</template>
|
|
4
4
|
|
|
5
5
|
<script lang="ts">
|
|
6
|
-
import { inject, type PropType, onMounted, type Ref, watch, ref } from 'vue';
|
|
6
|
+
import { inject, type PropType, onMounted, type Ref, watch, ref, onUnmounted } from 'vue';
|
|
7
7
|
|
|
8
8
|
import { type Map, type LatLng, type Polygon, type FeatureGroup, polygon } from 'leaflet';
|
|
9
9
|
|
|
@@ -47,9 +47,9 @@ export default {
|
|
|
47
47
|
|
|
48
48
|
if(lastPolygon.value) {
|
|
49
49
|
if(featureGroup && featureGroup.value) {
|
|
50
|
-
featureGroup.value.removeLayer(lastPolygon.value);
|
|
50
|
+
featureGroup.value.removeLayer(lastPolygon.value as Polygon);
|
|
51
51
|
} else {
|
|
52
|
-
map.value.removeLayer(lastPolygon.value);
|
|
52
|
+
map.value.removeLayer(lastPolygon.value as Polygon);
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
|
|
@@ -75,7 +75,19 @@ export default {
|
|
|
75
75
|
|
|
76
76
|
onMounted(updatePolygon);
|
|
77
77
|
|
|
78
|
-
|
|
78
|
+
onUnmounted(() => {
|
|
79
|
+
if (lastPolygon.value) {
|
|
80
|
+
if (featureGroup?.value) {
|
|
81
|
+
featureGroup.value.removeLayer(lastPolygon.value);
|
|
82
|
+
} else if (map.value?.hasLayer(lastPolygon.value)) {
|
|
83
|
+
map.value.removeLayer(lastPolygon.value);
|
|
84
|
+
}
|
|
85
|
+
lastPolygon.value = null;
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
watch([() => props.color, () => props.latlngs], updatePolygon);
|
|
79
91
|
}
|
|
80
92
|
};
|
|
81
93
|
</script>
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
</template>
|
|
4
4
|
|
|
5
5
|
<script lang="ts">
|
|
6
|
-
import { inject, type PropType, onMounted, type Ref, watch } from 'vue';
|
|
6
|
+
import { inject, type PropType, onMounted, type Ref, watch, onUnmounted } from 'vue';
|
|
7
7
|
|
|
8
8
|
import type { Map, Layer } from 'leaflet';
|
|
9
9
|
|
|
@@ -12,15 +12,15 @@ import { MAP } from './keys';
|
|
|
12
12
|
export default {
|
|
13
13
|
name: 'FSMapTileLayer',
|
|
14
14
|
props: {
|
|
15
|
-
|
|
16
|
-
type: Object as PropType<Layer>,
|
|
15
|
+
layers: {
|
|
16
|
+
type: Object as PropType<Layer[]>,
|
|
17
17
|
required: false
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
20
|
setup(props) {
|
|
21
21
|
const map = inject<Ref<Map | null>>(MAP);
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
let lastLayers = props.layers;
|
|
24
24
|
|
|
25
25
|
if(!map) {
|
|
26
26
|
throw new Error('FSMapTileLayer must be used inside a FSMap component');
|
|
@@ -31,20 +31,37 @@ export default {
|
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
const updateLayer = () => {
|
|
34
|
-
if (!props.
|
|
34
|
+
if (!props.layers || !map.value) {
|
|
35
35
|
return;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
if(
|
|
39
|
-
|
|
38
|
+
if(lastLayers) {
|
|
39
|
+
lastLayers.forEach(layer => {
|
|
40
|
+
layer.removeFrom(map.value!);
|
|
41
|
+
});
|
|
40
42
|
}
|
|
41
43
|
|
|
42
|
-
|
|
44
|
+
lastLayers = [];
|
|
45
|
+
|
|
46
|
+
props.layers.forEach(layer => {
|
|
47
|
+
lastLayers?.push(layer.addTo(map.value!));
|
|
48
|
+
});
|
|
43
49
|
};
|
|
44
50
|
|
|
45
51
|
onMounted(updateLayer);
|
|
46
52
|
|
|
47
|
-
|
|
53
|
+
onUnmounted(() => {
|
|
54
|
+
if (lastLayers && map.value) {
|
|
55
|
+
lastLayers.forEach(layer => {
|
|
56
|
+
if (map.value.hasLayer(layer)) {
|
|
57
|
+
map.value.removeLayer(layer);
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
lastLayers = [];
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
watch(() => props.layers, updateLayer);
|
|
48
65
|
}
|
|
49
66
|
};
|
|
50
67
|
</script>
|
|
File without changes
|
|
@@ -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
|
});
|
|
@@ -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 {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<FSSelectField
|
|
3
|
-
class="
|
|
3
|
+
class="select.date-setting.label"
|
|
4
4
|
:items="dateSettings"
|
|
5
5
|
:clearable="false"
|
|
6
6
|
:modelValue="$props.modelValue"
|
|
@@ -88,7 +88,7 @@ export default defineComponent({
|
|
|
88
88
|
dateSettings.push({ id: DateSetting.LastPeriod, label: $tr("ui.date-setting.last-period", "Last period") });
|
|
89
89
|
}
|
|
90
90
|
if (props.useNone) {
|
|
91
|
-
dateSettings.unshift({ id: DateSetting.None, label: $tr("ui.
|
|
91
|
+
dateSettings.unshift({ id: DateSetting.None, label: $tr("ui.common.none", "None") });
|
|
92
92
|
}
|
|
93
93
|
return dateSettings;
|
|
94
94
|
})
|
|
@@ -40,16 +40,16 @@ export default defineComponent({
|
|
|
40
40
|
|
|
41
41
|
const days = computed((): { id: Days; label: string }[] => {
|
|
42
42
|
const items = [
|
|
43
|
-
{ id: Days.Monday, label: $tr("ui.
|
|
44
|
-
{ id: Days.Tuesday, label: $tr("ui.
|
|
45
|
-
{ id: Days.Wednesday, label: $tr("ui.
|
|
46
|
-
{ id: Days.Thursday, label: $tr("ui.
|
|
47
|
-
{ id: Days.Friday, label: $tr("ui.
|
|
48
|
-
{ id: Days.Saturday, label: $tr("ui.
|
|
49
|
-
{ id: Days.Sunday, label: $tr("ui.
|
|
43
|
+
{ id: Days.Monday, label: $tr("ui.common.monday", "Monday") },
|
|
44
|
+
{ id: Days.Tuesday, label: $tr("ui.common.tuesday", "Tuesday") },
|
|
45
|
+
{ id: Days.Wednesday, label: $tr("ui.common.wednesday", "Wednesday") },
|
|
46
|
+
{ id: Days.Thursday, label: $tr("ui.common.thursday", "Thursday") },
|
|
47
|
+
{ id: Days.Friday, label: $tr("ui.common.friday", "Friday") },
|
|
48
|
+
{ id: Days.Saturday, label: $tr("ui.common.saturday", "Saturday") },
|
|
49
|
+
{ id: Days.Sunday, label: $tr("ui.common.sunday", "Sunday") }
|
|
50
50
|
];
|
|
51
51
|
if (props.useAllDays) {
|
|
52
|
-
items.unshift({ id: Days.AllDays, label: $tr("ui.
|
|
52
|
+
items.unshift({ id: Days.AllDays, label: $tr("ui.common.all-days", "All days") });
|
|
53
53
|
}
|
|
54
54
|
return items;
|
|
55
55
|
});
|
|
@@ -39,8 +39,8 @@ export default defineComponent({
|
|
|
39
39
|
const { $tr } = useTranslationsProvider();
|
|
40
40
|
|
|
41
41
|
const items = [
|
|
42
|
-
{ id: ListModes.Table, label: $tr("ui.common.table
|
|
43
|
-
{ id: ListModes.Iterator, label: $tr("ui.common.
|
|
42
|
+
{ id: ListModes.Table, label: $tr("ui.common.table", "Table"), icon: "mdi-format-list-bulleted" },
|
|
43
|
+
{ id: ListModes.Iterator, label: $tr("ui.common.iterator", "Tile"), icon: "mdi-view-grid-outline" },
|
|
44
44
|
];
|
|
45
45
|
|
|
46
46
|
return {
|