@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,192 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<FSTile
|
|
3
|
+
:activeColor="$props.color"
|
|
4
|
+
:bottomColor="$props.color"
|
|
5
|
+
:modelValue="$props.modelValue"
|
|
6
|
+
:width="$props.width"
|
|
7
|
+
v-bind="$attrs"
|
|
8
|
+
>
|
|
9
|
+
<FSCol
|
|
10
|
+
align="center-center"
|
|
11
|
+
width="fill"
|
|
12
|
+
>
|
|
13
|
+
<FSRow
|
|
14
|
+
align="center-left"
|
|
15
|
+
gap="24px"
|
|
16
|
+
:height="imageSize"
|
|
17
|
+
:wrap="false"
|
|
18
|
+
>
|
|
19
|
+
<FSCol
|
|
20
|
+
gap="12px"
|
|
21
|
+
:width="infoWidth"
|
|
22
|
+
>
|
|
23
|
+
<FSCol
|
|
24
|
+
gap="4px"
|
|
25
|
+
>
|
|
26
|
+
<FSSpan
|
|
27
|
+
font="text-button"
|
|
28
|
+
:lineClamp="1"
|
|
29
|
+
>
|
|
30
|
+
{{ $props.label }}
|
|
31
|
+
</FSSpan>
|
|
32
|
+
<FSSpan
|
|
33
|
+
v-if="$props.code"
|
|
34
|
+
font="text-overline"
|
|
35
|
+
variant="soft"
|
|
36
|
+
>
|
|
37
|
+
{{ $props.code }}
|
|
38
|
+
</FSSpan>
|
|
39
|
+
</FSCol>
|
|
40
|
+
<FSCol
|
|
41
|
+
gap="8px"
|
|
42
|
+
>
|
|
43
|
+
<FSRow
|
|
44
|
+
v-if="$props.deviceCount"
|
|
45
|
+
:wrap="false"
|
|
46
|
+
align="center-left"
|
|
47
|
+
>
|
|
48
|
+
<FSColor
|
|
49
|
+
width="24px"
|
|
50
|
+
height="24px"
|
|
51
|
+
:color="ColorEnum.Light"
|
|
52
|
+
:border="false"
|
|
53
|
+
>
|
|
54
|
+
<FSRow
|
|
55
|
+
align="center-center"
|
|
56
|
+
>
|
|
57
|
+
<FSSpan
|
|
58
|
+
font="text-overline"
|
|
59
|
+
>
|
|
60
|
+
{{ $props.deviceCount <= 99 ? $props.deviceCount : "99+" }}
|
|
61
|
+
</FSSpan>
|
|
62
|
+
</FSRow>
|
|
63
|
+
</FSColor>
|
|
64
|
+
<FSSpan
|
|
65
|
+
font="text-overline"
|
|
66
|
+
>
|
|
67
|
+
{{ $tr("ui.common.devices", "Equipment(s)") }}
|
|
68
|
+
</FSSpan>
|
|
69
|
+
</FSRow>
|
|
70
|
+
<FSRow
|
|
71
|
+
v-if="$props.address"
|
|
72
|
+
:wrap="false"
|
|
73
|
+
align="center-left"
|
|
74
|
+
>
|
|
75
|
+
<FSColor
|
|
76
|
+
width="24px"
|
|
77
|
+
height="24px"
|
|
78
|
+
:color="ColorEnum.Light"
|
|
79
|
+
:border="false"
|
|
80
|
+
>
|
|
81
|
+
<FSRow
|
|
82
|
+
align="center-center"
|
|
83
|
+
>
|
|
84
|
+
<FSIcon
|
|
85
|
+
icon="mdi-map-marker"
|
|
86
|
+
size="16px"
|
|
87
|
+
/>
|
|
88
|
+
</FSRow>
|
|
89
|
+
</FSColor>
|
|
90
|
+
<FSSpan
|
|
91
|
+
font="text-overline"
|
|
92
|
+
>
|
|
93
|
+
{{ $props.address }}
|
|
94
|
+
</FSSpan>
|
|
95
|
+
</FSRow>
|
|
96
|
+
</FSCol>
|
|
97
|
+
</FSCol>
|
|
98
|
+
<FSIconCard
|
|
99
|
+
backgroundVariant="standard"
|
|
100
|
+
:backgroundColor="ColorEnum.Background"
|
|
101
|
+
:iconColor="$props.color"
|
|
102
|
+
:icon="$props.icon"
|
|
103
|
+
:size="imageSize"
|
|
104
|
+
/>
|
|
105
|
+
</FSRow>
|
|
106
|
+
</FSCol>
|
|
107
|
+
</FSTile>
|
|
108
|
+
</template>
|
|
109
|
+
|
|
110
|
+
<script lang="ts">
|
|
111
|
+
import { computed, defineComponent, type PropType } from "vue";
|
|
112
|
+
|
|
113
|
+
import { type ColorBase, ColorEnum } from "@dative-gpi/foundation-shared-components/models";
|
|
114
|
+
import { useBreakpoints } from "@dative-gpi/foundation-shared-components/composables";
|
|
115
|
+
|
|
116
|
+
import FSIconCard from "../FSIconCard.vue";
|
|
117
|
+
import FSColor from "../FSColor.vue";
|
|
118
|
+
import FSSpan from "../FSSpan.vue";
|
|
119
|
+
import FSTile from "./FSTile.vue";
|
|
120
|
+
import FSCol from "../FSCol.vue";
|
|
121
|
+
import FSRow from "../FSRow.vue";
|
|
122
|
+
|
|
123
|
+
export default defineComponent({
|
|
124
|
+
name: "FSLocationTileUI",
|
|
125
|
+
components: {
|
|
126
|
+
FSIconCard,
|
|
127
|
+
FSColor,
|
|
128
|
+
FSSpan,
|
|
129
|
+
FSTile,
|
|
130
|
+
FSCol,
|
|
131
|
+
FSRow
|
|
132
|
+
},
|
|
133
|
+
props: {
|
|
134
|
+
label: {
|
|
135
|
+
type: String as PropType<string | null>,
|
|
136
|
+
required: false,
|
|
137
|
+
default: null
|
|
138
|
+
},
|
|
139
|
+
code: {
|
|
140
|
+
type: String as PropType<string | null>,
|
|
141
|
+
required: false,
|
|
142
|
+
default: null
|
|
143
|
+
},
|
|
144
|
+
icon: {
|
|
145
|
+
type: String,
|
|
146
|
+
required: false,
|
|
147
|
+
default: "mdi-map-marker"
|
|
148
|
+
},
|
|
149
|
+
address: {
|
|
150
|
+
type: String,
|
|
151
|
+
required: false
|
|
152
|
+
},
|
|
153
|
+
deviceCount: {
|
|
154
|
+
type: Number,
|
|
155
|
+
required: false,
|
|
156
|
+
default: 0
|
|
157
|
+
},
|
|
158
|
+
color: {
|
|
159
|
+
type: String as PropType<ColorBase>,
|
|
160
|
+
required: false,
|
|
161
|
+
default: ColorEnum.Primary
|
|
162
|
+
},
|
|
163
|
+
width: {
|
|
164
|
+
type: [Array, String, Number] as PropType<string[] | number[] | string | number | null>,
|
|
165
|
+
required: false,
|
|
166
|
+
default: () => [352, 336]
|
|
167
|
+
},
|
|
168
|
+
modelValue: {
|
|
169
|
+
type: Boolean,
|
|
170
|
+
required: false,
|
|
171
|
+
default: false
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
setup() {
|
|
175
|
+
const { isMobileSized } = useBreakpoints();
|
|
176
|
+
|
|
177
|
+
const imageSize = computed((): number => {
|
|
178
|
+
return isMobileSized.value ? 90 : 100;
|
|
179
|
+
});
|
|
180
|
+
|
|
181
|
+
const infoWidth = computed((): string => {
|
|
182
|
+
return `calc(100% - ${imageSize.value}px - 24px)`;
|
|
183
|
+
});
|
|
184
|
+
|
|
185
|
+
return {
|
|
186
|
+
ColorEnum,
|
|
187
|
+
imageSize,
|
|
188
|
+
infoWidth
|
|
189
|
+
};
|
|
190
|
+
}
|
|
191
|
+
});
|
|
192
|
+
</script>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<FSSimpleTileUI
|
|
3
|
+
v-bind="$attrs"
|
|
4
|
+
/>
|
|
5
|
+
</template>
|
|
6
|
+
|
|
7
|
+
<script lang="ts">
|
|
8
|
+
import { defineComponent } from "vue";
|
|
9
|
+
|
|
10
|
+
import FSSimpleTileUI from "./FSSimpleTileUI.vue";
|
|
11
|
+
|
|
12
|
+
export default defineComponent({
|
|
13
|
+
name: "FSModelTileUI",
|
|
14
|
+
components: {
|
|
15
|
+
FSSimpleTileUI,
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
</script>
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
width="fill"
|
|
13
13
|
>
|
|
14
14
|
<FSRow
|
|
15
|
-
align="center-
|
|
15
|
+
align="center-left"
|
|
16
16
|
gap="24px"
|
|
17
17
|
:height="imageSize"
|
|
18
18
|
:wrap="false"
|
|
@@ -41,9 +41,10 @@
|
|
|
41
41
|
:width="imageSize"
|
|
42
42
|
/>
|
|
43
43
|
<FSIconCard
|
|
44
|
-
v-else
|
|
44
|
+
v-else-if="$props.icon"
|
|
45
45
|
:backgroundVariant="$props.iconBackgroundVariant"
|
|
46
46
|
:backgroundColor="$props.iconBackgroundColor"
|
|
47
|
+
:iconColor="$props.iconColor"
|
|
47
48
|
:border="$props.iconBorder"
|
|
48
49
|
:icon="$props.icon"
|
|
49
50
|
:size="imageSize"
|
|
@@ -95,12 +96,11 @@ export default defineComponent({
|
|
|
95
96
|
icon: {
|
|
96
97
|
type: String as PropType<string>,
|
|
97
98
|
required: false,
|
|
98
|
-
default: "mdi-ab-testing"
|
|
99
99
|
},
|
|
100
100
|
iconBackgroundVariant: {
|
|
101
101
|
type: String as PropType<"background" | "standard" | "full" | "gradient">,
|
|
102
102
|
required: false,
|
|
103
|
-
default: "
|
|
103
|
+
default: "standard"
|
|
104
104
|
},
|
|
105
105
|
iconBackgroundColor: {
|
|
106
106
|
type: [Array, String] as PropType<ColorBase | ColorBase[]>,
|
|
@@ -112,6 +112,11 @@ export default defineComponent({
|
|
|
112
112
|
required: false,
|
|
113
113
|
default: true
|
|
114
114
|
},
|
|
115
|
+
iconColor: {
|
|
116
|
+
type: String as PropType<ColorBase>,
|
|
117
|
+
required: false,
|
|
118
|
+
default: ColorEnum.Dark
|
|
119
|
+
},
|
|
115
120
|
activeColor: {
|
|
116
121
|
type: String as PropType<ColorBase>,
|
|
117
122
|
required: false,
|
|
@@ -1,89 +1,96 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
v-if="$props.singleSelect"
|
|
2
|
+
<FSCol
|
|
4
3
|
class="fs-tile"
|
|
5
|
-
|
|
6
|
-
:
|
|
7
|
-
:height="height"
|
|
8
|
-
:color="color"
|
|
9
|
-
:style="style"
|
|
10
|
-
@click="() => $emit('update:modelValue', !$props.modelValue)"
|
|
11
|
-
v-bind="$attrs"
|
|
4
|
+
:height="$props.height"
|
|
5
|
+
:width="$props.width"
|
|
12
6
|
>
|
|
13
|
-
<
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
7
|
+
<FSClickable
|
|
8
|
+
v-if="$props.singleSelect"
|
|
9
|
+
padding="12px"
|
|
10
|
+
:variant="variant"
|
|
11
|
+
:color="color"
|
|
17
12
|
:style="style"
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
:height="height"
|
|
28
|
-
:to="$props.to"
|
|
29
|
-
:style="style"
|
|
30
|
-
v-bind="$attrs"
|
|
31
|
-
>
|
|
32
|
-
<slot />
|
|
33
|
-
<FSCard
|
|
34
|
-
v-if="$props.editable"
|
|
35
|
-
class="fs-tile-checkbox"
|
|
13
|
+
width="100%"
|
|
14
|
+
height="100%"
|
|
15
|
+
@click="() => $emit('update:modelValue', !$props.modelValue)"
|
|
16
|
+
v-bind="$attrs"
|
|
17
|
+
>
|
|
18
|
+
<slot />
|
|
19
|
+
</FSClickable>
|
|
20
|
+
<FSClickable
|
|
21
|
+
v-else-if="$props.href || $props.to || $attrs.onClick"
|
|
36
22
|
variant="background"
|
|
23
|
+
class="fs-tile"
|
|
24
|
+
padding="12px"
|
|
37
25
|
:color="ColorEnum.Background"
|
|
38
|
-
:
|
|
26
|
+
:href="$props.href"
|
|
27
|
+
width="100%"
|
|
28
|
+
height="100%"
|
|
29
|
+
:to="$props.to"
|
|
30
|
+
:style="style"
|
|
39
31
|
v-bind="$attrs"
|
|
40
32
|
>
|
|
41
|
-
<
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
:style="style"
|
|
58
|
-
:height="height"
|
|
59
|
-
v-bind="$attrs"
|
|
60
|
-
>
|
|
61
|
-
<slot />
|
|
33
|
+
<slot />
|
|
34
|
+
<FSCard
|
|
35
|
+
v-if="$props.editable"
|
|
36
|
+
class="fs-tile-checkbox"
|
|
37
|
+
variant="background"
|
|
38
|
+
:height="['40px', '32px']"
|
|
39
|
+
:width="['40px', '32px']"
|
|
40
|
+
:border="false"
|
|
41
|
+
v-bind="$attrs"
|
|
42
|
+
>
|
|
43
|
+
<FSCheckbox
|
|
44
|
+
:modelValue="$props.modelValue"
|
|
45
|
+
@update:modelValue="() => $emit('update:modelValue', !$props.modelValue)"
|
|
46
|
+
/>
|
|
47
|
+
</FSCard>
|
|
48
|
+
</FSClickable>
|
|
62
49
|
<FSCard
|
|
63
|
-
v-
|
|
64
|
-
class="fs-tile-checkbox"
|
|
50
|
+
v-else
|
|
65
51
|
variant="background"
|
|
66
|
-
|
|
52
|
+
class="fs-tile"
|
|
53
|
+
padding="12px"
|
|
54
|
+
:color="color"
|
|
55
|
+
:style="style"
|
|
56
|
+
width="100%"
|
|
57
|
+
height="100%"
|
|
67
58
|
v-bind="$attrs"
|
|
68
59
|
>
|
|
69
|
-
<
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
60
|
+
<slot />
|
|
61
|
+
<FSCard
|
|
62
|
+
v-if="$props.editable"
|
|
63
|
+
class="fs-tile-checkbox"
|
|
64
|
+
variant="background"
|
|
65
|
+
:height="['40px', '32px']"
|
|
66
|
+
:width="['40px', '32px']"
|
|
67
|
+
:border="false"
|
|
68
|
+
v-bind="$attrs"
|
|
69
|
+
>
|
|
70
|
+
<FSCheckbox
|
|
71
|
+
:modelValue="$props.modelValue"
|
|
72
|
+
@update:modelValue="() => $emit('update:modelValue', !$props.modelValue)"
|
|
73
|
+
/>
|
|
74
|
+
</FSCard>
|
|
75
|
+
</FSCard>
|
|
76
|
+
<div
|
|
77
|
+
v-if="$props.leftColor"
|
|
78
|
+
class="fs-tile-left"
|
|
79
|
+
:style="style"
|
|
80
|
+
/>
|
|
74
81
|
<div
|
|
75
82
|
v-if="$props.bottomColor"
|
|
76
83
|
class="fs-tile-bottom"
|
|
77
84
|
:style="style"
|
|
78
85
|
/>
|
|
79
|
-
</
|
|
86
|
+
</FSCol>
|
|
80
87
|
</template>
|
|
81
88
|
|
|
82
89
|
<script lang="ts">
|
|
83
90
|
import { computed, defineComponent, type PropType, type StyleValue } from "vue";
|
|
84
91
|
import { type RouteLocation } from "vue-router";
|
|
85
92
|
|
|
86
|
-
import {
|
|
93
|
+
import { useColors } from "@dative-gpi/foundation-shared-components/composables";
|
|
87
94
|
import { ColorEnum, type ColorBase } from "@dative-gpi/foundation-shared-components/models";
|
|
88
95
|
|
|
89
96
|
import FSClickable from "../FSClickable.vue";
|
|
@@ -123,6 +130,11 @@ export default defineComponent({
|
|
|
123
130
|
required: false,
|
|
124
131
|
default: null
|
|
125
132
|
},
|
|
133
|
+
leftColor: {
|
|
134
|
+
type: [Array, String] as PropType<ColorBase[] | ColorBase | null>,
|
|
135
|
+
required: false,
|
|
136
|
+
default: null
|
|
137
|
+
},
|
|
126
138
|
editable: {
|
|
127
139
|
type: Boolean,
|
|
128
140
|
required: false,
|
|
@@ -132,25 +144,33 @@ export default defineComponent({
|
|
|
132
144
|
type: Boolean,
|
|
133
145
|
required: false,
|
|
134
146
|
default: false
|
|
135
|
-
}
|
|
147
|
+
},
|
|
148
|
+
width: {
|
|
149
|
+
type: [Array, String, Number] as PropType<string[] | number[] | string | number | null>,
|
|
150
|
+
required: false,
|
|
151
|
+
default: null
|
|
152
|
+
},
|
|
153
|
+
height: {
|
|
154
|
+
type: [Array, String, Number] as PropType<string[] | number[] | string | number | null>,
|
|
155
|
+
required: false,
|
|
156
|
+
default: () => [170, 156]
|
|
157
|
+
},
|
|
136
158
|
},
|
|
137
159
|
emits: ["update:modelValue"],
|
|
138
160
|
setup(props) {
|
|
139
|
-
const { isMobileSized } = useBreakpoints();
|
|
140
161
|
const { getGradients } = useColors();
|
|
141
162
|
|
|
142
163
|
const style = computed((): StyleValue => {
|
|
164
|
+
const result: StyleValue = {};
|
|
143
165
|
if (props.bottomColor) {
|
|
144
166
|
const bottomColors = getGradients(props.bottomColor);
|
|
145
|
-
|
|
146
|
-
"--fs-tile-border-color": bottomColors.base
|
|
147
|
-
};
|
|
167
|
+
result["--fs-tile-bottom-border-color"] = bottomColors.base;
|
|
148
168
|
}
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
return
|
|
169
|
+
if (props.leftColor) {
|
|
170
|
+
const leftColors = getGradients(props.leftColor);
|
|
171
|
+
result["--fs-tile-left-border-color"] = leftColors.base;
|
|
172
|
+
}
|
|
173
|
+
return result;
|
|
154
174
|
});
|
|
155
175
|
|
|
156
176
|
const variant = computed((): "standard" | "background" => {
|
|
@@ -164,7 +184,6 @@ export default defineComponent({
|
|
|
164
184
|
return {
|
|
165
185
|
ColorEnum,
|
|
166
186
|
variant,
|
|
167
|
-
height,
|
|
168
187
|
color,
|
|
169
188
|
style
|
|
170
189
|
};
|
|
@@ -134,7 +134,7 @@ export default defineComponent({
|
|
|
134
134
|
|
|
135
135
|
const roleLabel = computed((): string | null => {
|
|
136
136
|
if (props.admin) {
|
|
137
|
-
return $tr("
|
|
137
|
+
return $tr("entity.user.admin", "Administrator");
|
|
138
138
|
}
|
|
139
139
|
return props.roleLabel;
|
|
140
140
|
});
|
|
@@ -22,7 +22,7 @@ import { computed, defineComponent } from "vue";
|
|
|
22
22
|
import type { PropType } from "vue";
|
|
23
23
|
|
|
24
24
|
import { useTranslations as useTranslationsProvider } from "@dative-gpi/bones-ui/composables";
|
|
25
|
-
import { Position } from "@dative-gpi/foundation-shared-domain/
|
|
25
|
+
import { Position } from "@dative-gpi/foundation-shared-domain/enums";
|
|
26
26
|
|
|
27
27
|
export default defineComponent({
|
|
28
28
|
name: "FSToggleSetPosition",
|
|
@@ -48,7 +48,7 @@ export default defineComponent({
|
|
|
48
48
|
{ id: Position.Ordinate, label: $tr("ui.position.ordinate", "Bottom") }
|
|
49
49
|
];
|
|
50
50
|
if (props.useNone) {
|
|
51
|
-
items.unshift({ id: Position.None, label: $tr("ui.
|
|
51
|
+
items.unshift({ id: Position.None, label: $tr("ui.common.none", "None") });
|
|
52
52
|
}
|
|
53
53
|
return items;
|
|
54
54
|
});
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<FSBaseMobileView
|
|
3
|
+
v-if="isExtraSmall"
|
|
4
|
+
:variant="$props.variant"
|
|
5
|
+
v-bind="$attrs"
|
|
6
|
+
>
|
|
7
|
+
<template
|
|
8
|
+
v-for="(_, name) in $slots"
|
|
9
|
+
v-slot:[name]="slotData"
|
|
10
|
+
>
|
|
11
|
+
<slot
|
|
12
|
+
:name="name"
|
|
13
|
+
v-bind="slotData"
|
|
14
|
+
/>
|
|
15
|
+
</template>
|
|
16
|
+
</FSBaseMobileView>
|
|
17
|
+
|
|
18
|
+
<FSBaseDesktopView
|
|
19
|
+
v-else
|
|
20
|
+
:variant="$props.variant"
|
|
21
|
+
v-bind="$attrs"
|
|
22
|
+
>
|
|
23
|
+
<template
|
|
24
|
+
v-for="(_, name) in $slots"
|
|
25
|
+
v-slot:[name]="slotData"
|
|
26
|
+
>
|
|
27
|
+
<slot
|
|
28
|
+
:name="name"
|
|
29
|
+
v-bind="slotData"
|
|
30
|
+
/>
|
|
31
|
+
</template>
|
|
32
|
+
</FSBaseDesktopView>
|
|
33
|
+
</template>
|
|
34
|
+
|
|
35
|
+
<script lang="ts">
|
|
36
|
+
import { defineComponent, type PropType } from "vue";
|
|
37
|
+
|
|
38
|
+
import { useBreakpoints } from "@dative-gpi/foundation-shared-components/composables";
|
|
39
|
+
|
|
40
|
+
import FSBaseDesktopView from "./desktop/FSBaseDesktopView.vue";
|
|
41
|
+
import FSBaseMobileView from "./mobile/FSBaseMobileView.vue";
|
|
42
|
+
|
|
43
|
+
export default defineComponent({
|
|
44
|
+
name: "FSBaseView",
|
|
45
|
+
components: {
|
|
46
|
+
FSBaseDesktopView,
|
|
47
|
+
FSBaseMobileView
|
|
48
|
+
},
|
|
49
|
+
props: {
|
|
50
|
+
variant: {
|
|
51
|
+
type: String as PropType<"default" | "entity">,
|
|
52
|
+
required: true,
|
|
53
|
+
default: "default"
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
setup() {
|
|
57
|
+
const { isExtraSmall } = useBreakpoints();
|
|
58
|
+
|
|
59
|
+
return {
|
|
60
|
+
isExtraSmall
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
</script>
|