@dative-gpi/foundation-shared-components 1.0.35 → 1.0.37-report-v1
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 +21 -12
- 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 +12 -13
- 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 +47 -28
- package/components/FSDialogMenu.vue +17 -8
- package/components/FSDialogMultiFormBody.vue +77 -54
- package/components/FSDialogRemove.vue +8 -8
- package/components/FSDialogSubmit.vue +17 -8
- package/components/FSEditImage.vue +1 -1
- package/components/FSEditImageUI.vue +20 -10
- package/components/FSFadeOut.vue +53 -21
- package/components/FSForm.vue +10 -8
- package/components/FSGrid.vue +1 -1
- package/components/FSIcon.vue +2 -1
- package/components/FSIconCard.vue +47 -7
- package/components/FSImage.vue +12 -4
- package/components/FSImageUI.vue +8 -15
- package/components/FSInstantPicker.vue +266 -0
- package/components/FSLink.vue +25 -9
- package/components/FSLoader.vue +28 -11
- package/components/FSOptionGroup.vue +51 -3
- package/components/FSPlayButtons.vue +72 -0
- package/components/FSProgressBar.vue +94 -0
- package/components/FSRouterLink.vue +42 -0
- package/components/FSSlideGroup.vue +19 -5
- package/components/FSSpan.vue +17 -7
- 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 +11 -7
- 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 +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/FSButtonCopy.vue +1 -1
- package/components/buttons/FSButtonCopyLabel.vue +1 -1
- 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 +445 -463
- package/components/fields/FSAutocompleteTag.vue +1 -1
- 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 +3 -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 +10 -3
- package/components/fields/FSMagicField.vue +9 -4
- package/components/fields/FSNumberField.vue +6 -1
- package/components/fields/FSRichTextField.vue +102 -52
- package/components/fields/FSSearchField.vue +9 -115
- package/components/fields/FSSelectField.vue +477 -252
- package/components/fields/FSTagField.vue +1 -1
- package/components/fields/FSTermField.vue +42 -17
- package/components/fields/FSTextArea.vue +26 -7
- package/components/fields/FSTextField.vue +8 -3
- 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 +32 -12
- package/components/fields/FSTranslateTextArea.vue +233 -0
- package/components/fields/periodicField/FSPeriodicDailyField.vue +2 -2
- package/components/fields/periodicField/FSPeriodicField.vue +8 -8
- package/components/fields/periodicField/FSPeriodicMonthlyField.vue +8 -8
- package/components/fields/periodicField/FSPeriodicWeeklyField.vue +23 -13
- package/components/fields/periodicField/FSPeriodicYearlyField.vue +6 -6
- package/components/lists/FSDataTableUI.vue +173 -103
- package/components/lists/FSDraggable.vue +2 -2
- package/components/lists/FSFilterButton.vue +7 -11
- package/components/lists/FSHeaderButton.vue +4 -4
- package/components/lists/FSHiddenButton.vue +3 -5
- 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 +83 -33
- package/components/map/FSMapFeatureGroup.vue +2 -2
- package/components/map/FSMapLayerButton.vue +3 -3
- package/components/map/FSMapMarker.vue +11 -7
- package/components/map/FSMapMarkerClusterGroup.vue +8 -3
- package/components/map/FSMapOverlay.vue +37 -20
- package/components/map/FSMapPolygon.vue +5 -5
- package/components/map/FSMapTileLayer.vue +2 -2
- package/components/map/keys.ts +3 -3
- 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 +14 -14
- 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/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 +135 -0
- package/components/views/desktop/FSBaseDesktopView.vue +53 -0
- package/components/views/desktop/FSBaseEntityDesktopView.vue +209 -0
- package/components/views/mobile/FSBaseDefaultMobileView.vue +133 -0
- package/components/views/mobile/FSBaseEntityMobileView.vue +199 -0
- package/components/views/mobile/FSBaseMobileView.vue +53 -0
- package/composables/useBreakpoints.ts +39 -3
- package/composables/useColors.ts +3 -2
- package/composables/useMagicFieldProvider.ts +1 -0
- package/composables/useSlots.ts +2 -1
- 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 +8 -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 +18 -36
- package/styles/components/fs_button.scss +7 -5
- package/styles/components/fs_chip.scss +8 -6
- package/styles/components/fs_clickable.scss +18 -23
- package/styles/components/fs_clock.scss +0 -10
- package/styles/components/fs_color_field.scss +1 -4
- package/styles/components/fs_data_iterator_item.scss +12 -10
- package/styles/components/fs_data_table.scss +6 -9
- package/styles/components/fs_dialog.scss +7 -17
- package/styles/components/fs_dialog_menu.scss +4 -2
- package/styles/components/fs_edit_image.scss +8 -0
- package/styles/components/fs_fade_out.scss +10 -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 +6 -4
- package/styles/components/fs_magic_config_field.scss +1 -2
- package/styles/components/fs_map.scss +11 -7
- package/styles/components/fs_meta_field.scss +3 -5
- package/styles/components/fs_option_group.scss +15 -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 -9
- package/styles/components/fs_select_date_settings.scss +3 -0
- package/styles/components/fs_select_field.scss +4 -13
- package/styles/components/fs_slide_group.scss +7 -0
- package/styles/components/fs_span.scss +13 -4
- package/styles/components/fs_switch.scss +1 -0
- package/styles/components/fs_tabs.scss +19 -33
- package/styles/components/fs_tag.scss +8 -22
- 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 +6 -4
- package/styles/globals/index.scss +1 -5
- package/styles/globals/overrides.scss +28 -61
- package/styles/globals/scrollbars.scss +10 -0
- package/styles/globals/text_fonts.scss +18 -66
- package/tools/alertsTools.ts +69 -0
- package/tools/chartsTools.ts +427 -0
- package/tools/index.ts +4 -0
- package/tools/reportsTools.ts +38 -0
- package/tools/timeRangeTools.ts +125 -0
- package/utils/filter.ts +18 -0
- package/utils/index.ts +2 -0
- package/utils/leafletMarkers.ts +4 -4
- package/utils/operations.ts +69 -0
- package/utils/sort.ts +2 -2
- package/utils/statuses.ts +1 -1
- package/utils/time.ts +17 -17
- package/components/fields/FSTimeSlotField.vue +0 -250
- 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_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
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
.fs-wrap-group {
|
|
2
|
+
height: var(--fs-group-height);
|
|
3
|
+
width: var(--fs-group-width);
|
|
4
|
+
max-width: 100%;
|
|
5
|
+
margin: 0 -1px 0 0;
|
|
6
|
+
|
|
2
7
|
& > .v-slide-group__container > .v-slide-group__content {
|
|
8
|
+
margin: 0 1px 0 0;
|
|
9
|
+
|
|
3
10
|
padding: var(--fs-group-padding);
|
|
4
11
|
gap: var(--fs-group-gap);
|
|
5
12
|
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
@import "fs_accordion_panel.scss";
|
|
2
|
+
@import "fs_agenda.scss";
|
|
3
|
+
@import "fs_agenda_event.scss";
|
|
4
|
+
@import "fs_agenda_hours_col.scss";
|
|
5
|
+
@import "fs_agenda_hours_row.scss";
|
|
6
|
+
@import "fs_agenda_time_line_marker.scss";
|
|
2
7
|
@import "fs_autocomplete_field.scss";
|
|
3
8
|
@import "fs_base_field.scss";
|
|
4
9
|
@import "fs_breadcrumbs.scss";
|
|
@@ -28,7 +33,6 @@
|
|
|
28
33
|
@import "fs_grid.scss";
|
|
29
34
|
@import "fs_header_button.scss";
|
|
30
35
|
@import "fs_hidden_button.scss";
|
|
31
|
-
@import "fs_icon_field.scss";
|
|
32
36
|
@import "fs_icon.scss";
|
|
33
37
|
@import "fs_image.scss";
|
|
34
38
|
@import "fs_image_card.scss";
|
|
@@ -43,6 +47,7 @@
|
|
|
43
47
|
@import "fs_option_group.scss";
|
|
44
48
|
@import "fs_pagination.scss";
|
|
45
49
|
@import "fs_password_field.scss";
|
|
50
|
+
@import "fs_progress_bar.scss";
|
|
46
51
|
@import "fs_radio.scss";
|
|
47
52
|
@import "fs_rich_text_field.scss";
|
|
48
53
|
@import "fs_row.scss";
|
|
@@ -53,13 +58,10 @@
|
|
|
53
58
|
@import "fs_switch.scss";
|
|
54
59
|
@import "fs_tag.scss";
|
|
55
60
|
@import "fs_tabs.scss";
|
|
56
|
-
@import "fs_tag_field.scss";
|
|
57
61
|
@import "fs_text_area.scss";
|
|
58
62
|
@import "fs_text_field.scss";
|
|
59
63
|
@import "fs_text.scss";
|
|
60
64
|
@import "fs_tile.scss";
|
|
61
|
-
@import "fs_time_field.scss";
|
|
62
|
-
@import "fs_timeslot_field.scss";
|
|
63
65
|
@import "fs_tooltip.scss";
|
|
64
66
|
@import "fs_translate_field.scss";
|
|
65
67
|
@import "fs_tree_view_field.scss";
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
// Warning: Imports are loaded in order. If you need to use a variable / property / mixin, import it after the file that defines it
|
|
2
|
-
@import 'breakpoints.scss';
|
|
3
2
|
@import 'text_fonts.scss';
|
|
4
3
|
@import 'touchscreen.scss';
|
|
5
4
|
@import 'scrollbars.scss';
|
|
6
|
-
@import 'overrides.scss';
|
|
7
|
-
|
|
8
|
-
// Find a better way to fix this
|
|
9
|
-
@import 'fixes.scss';
|
|
5
|
+
@import 'overrides.scss';
|
|
@@ -40,26 +40,11 @@
|
|
|
40
40
|
flex: 0 0 auto;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
&:not(.v-checkbox):not(.v-slider):not(.fs-small-input)
|
|
44
|
-
min-width:
|
|
43
|
+
&:not(.v-checkbox):not(.v-slider):not(.fs-small-input) {
|
|
44
|
+
min-width: var(--fs-base-field-min-width);
|
|
45
45
|
width: 100%;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
&.fs-number-field {
|
|
49
|
-
min-width: 80px;
|
|
50
|
-
width: 100%;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
&.v-checkbox {
|
|
54
|
-
@include web {
|
|
55
|
-
min-width: 24px;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
@include mobile {
|
|
59
|
-
min-width: 20px;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
|
|
63
48
|
&:has(.v-input__control):has(.v-input__append) > .v-input__append {
|
|
64
49
|
margin-inline-start: 8px !important;
|
|
65
50
|
}
|
|
@@ -95,29 +80,27 @@
|
|
|
95
80
|
}
|
|
96
81
|
}
|
|
97
82
|
|
|
98
|
-
&:not(.fs-text-area) > .v-input__control > .v-field {
|
|
99
|
-
|
|
83
|
+
&:not(.fs-text-area) > .v-input__control > .v-field > .v-field__field {
|
|
84
|
+
min-height: var(--fs-base-field-input-height) !important;
|
|
85
|
+
height: var(--fs-base-field-input-height) !important;
|
|
100
86
|
|
|
101
|
-
& > .v-
|
|
102
|
-
|
|
87
|
+
& > .v-field__input {
|
|
88
|
+
min-height: var(--fs-base-field-input-height) !important;
|
|
89
|
+
height: var(--fs-base-field-input-height) !important;
|
|
103
90
|
|
|
104
91
|
padding-bottom: 0px !important;
|
|
105
92
|
padding-inline: 0px !important;
|
|
106
93
|
padding-top: 0px !important;
|
|
107
94
|
flex-wrap: nowrap;
|
|
108
95
|
overflow: hidden;
|
|
109
|
-
|
|
110
|
-
@
|
|
111
|
-
min-height: 38px !important;
|
|
112
|
-
height: 38px !important;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
@include mobile {
|
|
116
|
-
min-height: 34px !important;
|
|
117
|
-
height: 34px !important;
|
|
118
|
-
}
|
|
96
|
+
|
|
97
|
+
@extend .text-body;
|
|
119
98
|
}
|
|
120
99
|
}
|
|
100
|
+
|
|
101
|
+
&:not(.fs-text-area):not(.fs-clock-field) > .v-input__control > .v-field {
|
|
102
|
+
padding: 0 12px 0 16px !important;
|
|
103
|
+
}
|
|
121
104
|
}
|
|
122
105
|
|
|
123
106
|
// If there is a prepend, it has a padding on the right and an opacity of 100%
|
|
@@ -146,26 +129,24 @@
|
|
|
146
129
|
.v-text-field__suffix {
|
|
147
130
|
padding: 0 8px 0 0 !important;
|
|
148
131
|
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
height: 38px !important;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
@include mobile {
|
|
155
|
-
min-height: 34px !important;
|
|
156
|
-
height: 34px !important;
|
|
157
|
-
}
|
|
132
|
+
min-height: var(--fs-base-field-input-height) !important;
|
|
133
|
+
height: var(--fs-base-field-input-height) !important;
|
|
158
134
|
|
|
159
135
|
& > .v-text-field__suffix__text {
|
|
160
136
|
@extend .text-body;
|
|
161
137
|
}
|
|
162
138
|
}
|
|
163
139
|
|
|
164
|
-
// Ellipsis on input of all fields
|
|
165
140
|
input {
|
|
141
|
+
// Ellipsis on all fields
|
|
166
142
|
text-overflow: ellipsis;
|
|
167
143
|
}
|
|
168
144
|
|
|
145
|
+
input, select, textarea {
|
|
146
|
+
// No zoom on focus for user of a certain version of Chrome, and who ask their mobile to zoom if font-size < 16px
|
|
147
|
+
touch-action: none;
|
|
148
|
+
}
|
|
149
|
+
|
|
169
150
|
// No up / down buttons in input field of type number
|
|
170
151
|
input[type=number] {
|
|
171
152
|
-moz-appearance: textfield;
|
|
@@ -187,16 +168,6 @@ $nthOverlay: 25;
|
|
|
187
168
|
}
|
|
188
169
|
}
|
|
189
170
|
|
|
190
|
-
/***** Applies to all slide groups (FSTabs, FSSlideGroup, FSWrapGroup) *****/
|
|
191
|
-
.fs-slide-group {
|
|
192
|
-
max-width: 100%;
|
|
193
|
-
|
|
194
|
-
// To avoid borders clipping
|
|
195
|
-
& > .v-slide-group__container > .v-slide-group__content {
|
|
196
|
-
margin: 0 2px 1px 0 !important;
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
|
|
200
171
|
// On touchscreen, hide arrows
|
|
201
172
|
// Otherwise show small ones with base text color
|
|
202
173
|
.v-slide-group__prev,
|
|
@@ -211,13 +182,7 @@ $nthOverlay: 25;
|
|
|
211
182
|
}
|
|
212
183
|
|
|
213
184
|
& > .v-icon {
|
|
214
|
-
|
|
215
|
-
font-size: 24px !important;
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
@include mobile {
|
|
219
|
-
font-size: 20px !important;
|
|
220
|
-
}
|
|
185
|
+
font-size: var(--fs-group-icon-size) !important;
|
|
221
186
|
}
|
|
222
187
|
}
|
|
223
188
|
|
|
@@ -227,9 +192,11 @@ $nthOverlay: 25;
|
|
|
227
192
|
}
|
|
228
193
|
|
|
229
194
|
// Change color on arrows when hovered
|
|
230
|
-
|
|
231
|
-
.v-slide-
|
|
232
|
-
|
|
195
|
+
@include clickscreen {
|
|
196
|
+
.v-slide-group__prev:hover,
|
|
197
|
+
.v-slide-group__next:hover {
|
|
198
|
+
color: var(--fs-group-hover-color);
|
|
199
|
+
}
|
|
233
200
|
}
|
|
234
201
|
|
|
235
202
|
/***************************************************************************/
|
|
@@ -47,9 +47,19 @@
|
|
|
47
47
|
@include touchscreen {
|
|
48
48
|
.fs-hide-x-scrollbar {
|
|
49
49
|
overflow-x: scroll;
|
|
50
|
+
|
|
51
|
+
&::-webkit-scrollbar {
|
|
52
|
+
display: none;
|
|
53
|
+
}
|
|
54
|
+
scrollbar-width: none;
|
|
50
55
|
}
|
|
51
56
|
|
|
52
57
|
.fs-hide-y-scrollbar {
|
|
53
58
|
overflow-y: scroll;
|
|
59
|
+
|
|
60
|
+
&::-webkit-scrollbar {
|
|
61
|
+
display: none;
|
|
62
|
+
}
|
|
63
|
+
scrollbar-width: none;
|
|
54
64
|
}
|
|
55
65
|
}
|
|
@@ -7,17 +7,9 @@
|
|
|
7
7
|
font-style: normal !important;
|
|
8
8
|
font-weight: 700 !important;
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
letter-spacing: -0.72px !important;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
@include mobile {
|
|
17
|
-
font-size: 28px !important;
|
|
18
|
-
line-height: 32px !important;
|
|
19
|
-
letter-spacing: -1.4px !important;
|
|
20
|
-
}
|
|
10
|
+
font-size: var(--fs-font-h1-font-size) !important;
|
|
11
|
+
line-height: var(--fs-font-h1-line-height) !important;
|
|
12
|
+
letter-spacing: var(--fs-font-h1-letter-spacing) !important;
|
|
21
13
|
}
|
|
22
14
|
|
|
23
15
|
.text-h2 {
|
|
@@ -25,17 +17,9 @@
|
|
|
25
17
|
font-style: normal !important;
|
|
26
18
|
font-weight: 600 !important;
|
|
27
19
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
letter-spacing: -0.78px !important;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
@include mobile {
|
|
35
|
-
font-size: 22px !important;
|
|
36
|
-
line-height: 24px !important;
|
|
37
|
-
letter-spacing: -0.88px !important;
|
|
38
|
-
}
|
|
20
|
+
font-size: var(--fs-font-h2-font-size) !important;
|
|
21
|
+
line-height: var(--fs-font-h2-line-height) !important;
|
|
22
|
+
letter-spacing: var(--fs-font-h2-letter-spacing) !important;
|
|
39
23
|
}
|
|
40
24
|
|
|
41
25
|
.text-h3 {
|
|
@@ -43,17 +27,9 @@
|
|
|
43
27
|
font-style: normal !important;
|
|
44
28
|
font-weight: 600 !important;
|
|
45
29
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
letter-spacing: -0.6px !important;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
@include mobile {
|
|
53
|
-
font-size: 16px !important;
|
|
54
|
-
line-height: 20px !important;
|
|
55
|
-
letter-spacing: -0.48px !important;
|
|
56
|
-
}
|
|
30
|
+
font-size: var(--fs-font-h3-font-size) !important;
|
|
31
|
+
line-height: var(--fs-font-h3-line-height) !important;
|
|
32
|
+
letter-spacing: var(--fs-font-h3-letter-spacing) !important;
|
|
57
33
|
}
|
|
58
34
|
|
|
59
35
|
.text-body {
|
|
@@ -62,17 +38,9 @@
|
|
|
62
38
|
font-weight: 500 !important;
|
|
63
39
|
text-transform: none !important;
|
|
64
40
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
letter-spacing: -0.42px !important;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
@include mobile {
|
|
72
|
-
font-size: 12px !important;
|
|
73
|
-
line-height: 16px !important;
|
|
74
|
-
letter-spacing: -0.36px !important;
|
|
75
|
-
}
|
|
41
|
+
font-size: var(--fs-font-body-font-size) !important;
|
|
42
|
+
line-height: var(--fs-font-body-line-height) !important;
|
|
43
|
+
letter-spacing: var(--fs-font-body-letter-spacing) !important;
|
|
76
44
|
}
|
|
77
45
|
|
|
78
46
|
.text-button {
|
|
@@ -81,17 +49,9 @@
|
|
|
81
49
|
font-weight: 700 !important;
|
|
82
50
|
text-transform: none !important;
|
|
83
51
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
letter-spacing: -0.42px !important;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
@include mobile {
|
|
91
|
-
font-size: 12px !important;
|
|
92
|
-
line-height: 16px !important;
|
|
93
|
-
letter-spacing: -0.36px !important;
|
|
94
|
-
}
|
|
52
|
+
font-size: var(--fs-font-button-font-size) !important;
|
|
53
|
+
line-height: var(--fs-font-button-line-height) !important;
|
|
54
|
+
letter-spacing: var(--fs-font-button-letter-spacing) !important;
|
|
95
55
|
}
|
|
96
56
|
|
|
97
57
|
.text-overline {
|
|
@@ -100,15 +60,7 @@
|
|
|
100
60
|
text-transform: none !important;
|
|
101
61
|
font-weight: 600 !important;
|
|
102
62
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
letter-spacing: 0 !important;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
@include mobile {
|
|
110
|
-
font-size: 10px !important;
|
|
111
|
-
line-height: 16px !important;
|
|
112
|
-
letter-spacing: 0 !important;
|
|
113
|
-
}
|
|
63
|
+
font-size: var(--fs-font-overline-font-size) !important;
|
|
64
|
+
line-height: var(--fs-font-overline-line-height) !important;
|
|
65
|
+
letter-spacing: var(--fs-font-overline-letter-spacing) !important;
|
|
114
66
|
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { useTranslations as useTranslationsProvider } from "@dative-gpi/bones-ui/composables";
|
|
2
|
+
import { AlertStatus, Criticity } from "@dative-gpi/foundation-shared-domain/enums";
|
|
3
|
+
import { ColorEnum } from "@dative-gpi/foundation-shared-components/models"
|
|
4
|
+
import { getTimeBestString } from "../utils";
|
|
5
|
+
|
|
6
|
+
const { $tr } = useTranslationsProvider();
|
|
7
|
+
|
|
8
|
+
export const AlertTools = {
|
|
9
|
+
statusIcon(value: AlertStatus): string {
|
|
10
|
+
switch (value) {
|
|
11
|
+
case AlertStatus.Pending: return "mdi-timer-outline";
|
|
12
|
+
case AlertStatus.Untriggered: return "mdi-timer-off-outline";
|
|
13
|
+
case AlertStatus.Unresolved: return "mdi-alert-circle-outline";
|
|
14
|
+
case AlertStatus.Resolved: return "mdi-check-circle-outline";
|
|
15
|
+
case AlertStatus.Expired: return "mdi-clock-outline";
|
|
16
|
+
case AlertStatus.Triggered: return "mdi-alert-circle-outline";
|
|
17
|
+
case AlertStatus.Abandoned: return "mdi-cancel"
|
|
18
|
+
default: return "";
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
statusLabel(value: AlertStatus): string {
|
|
22
|
+
switch (value) {
|
|
23
|
+
case AlertStatus.Pending: return $tr("ui.alert-status.pending", "Pending");
|
|
24
|
+
case AlertStatus.Untriggered: return $tr("ui.alert-status.untriggered", "Untriggered");
|
|
25
|
+
case AlertStatus.Unresolved: return $tr("ui.alert-status.unresolved", "Unresolved");
|
|
26
|
+
case AlertStatus.Resolved: return $tr("ui.alert-status.resolved", "Resolved");
|
|
27
|
+
case AlertStatus.Expired: return $tr("ui.alert-status.expired", "Expired");
|
|
28
|
+
case AlertStatus.Triggered: return $tr("ui.alert-status.triggered", "Triggered");
|
|
29
|
+
case AlertStatus.Abandoned: return $tr("ui.alert-status.abandoned", "Abandoned");
|
|
30
|
+
default: return "";
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
criticityColor(value: Criticity): ColorEnum {
|
|
34
|
+
switch (value) {
|
|
35
|
+
case Criticity.Warning: return ColorEnum.Warning;
|
|
36
|
+
case Criticity.Error: return ColorEnum.Error;
|
|
37
|
+
case Criticity.Information: return ColorEnum.Primary;
|
|
38
|
+
default: return ColorEnum.Light;
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
criticityIcon(value: Criticity): string {
|
|
42
|
+
switch (value) {
|
|
43
|
+
case Criticity.Warning: return "mdi-alert-outline";
|
|
44
|
+
case Criticity.Error: return "mdi-alert-circle-outline";
|
|
45
|
+
default: return "mdi-information-outline";
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
criticityLabel(value: Criticity): string {
|
|
49
|
+
switch (value) {
|
|
50
|
+
case Criticity.Warning: return $tr("ui.common.warning", "Warning");
|
|
51
|
+
case Criticity.Error: return $tr("ui.common.error", "Error");
|
|
52
|
+
case Criticity.Information: return $tr("ui.common.information", "Information")
|
|
53
|
+
default: return $tr("ui.common.none", "None");
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export const prettyDuration = (n: number) => {
|
|
59
|
+
const day = Math.floor(n / 24 / 60 / 60);
|
|
60
|
+
const hours = Math.floor((n - day * 24 * 60 * 60) / 3600);
|
|
61
|
+
const minutes = Math.floor((n - day * 24 * 60 * 60 - hours * 60 * 60) / 60);
|
|
62
|
+
const seconds = Math.floor(n - day * 24 * 60 * 60 - hours * 60 * 60 - minutes * 60);
|
|
63
|
+
|
|
64
|
+
return day > 0 ?
|
|
65
|
+
`${getTimeBestString(day * 24 * 60 * 60)} ${getTimeBestString(hours * 60 * 60)} ${getTimeBestString(minutes * 60)} ${getTimeBestString(seconds)}`
|
|
66
|
+
: hours > 0
|
|
67
|
+
? `${getTimeBestString(hours * 60 * 60)} ${getTimeBestString(minutes * 60)} ${getTimeBestString(seconds)}`
|
|
68
|
+
: `${getTimeBestString(minutes * 60)} ${getTimeBestString(seconds)}`;
|
|
69
|
+
};
|