@dative-gpi/foundation-shared-components 1.0.36 → 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
|
@@ -5,10 +5,19 @@ let initialized = false;
|
|
|
5
5
|
const windowHeight = ref(window.innerHeight);
|
|
6
6
|
const windowWidth = ref(window.innerWidth);
|
|
7
7
|
|
|
8
|
+
const windowOuterWidth = ref(!window.document.hasFocus() && window.outerWidth === 0 ? window.innerWidth : window.outerWidth);
|
|
9
|
+
|
|
8
10
|
export const useBreakpoints = () => {
|
|
9
11
|
const onSizeChange = (): void => {
|
|
10
12
|
windowHeight.value = window.innerHeight;
|
|
11
13
|
windowWidth.value = window.innerWidth;
|
|
14
|
+
|
|
15
|
+
// Bug in chromium based browsers where window.outerWidth is 0 when tab loads without focus
|
|
16
|
+
if (!window.document.hasFocus() && window.outerWidth === 0) {
|
|
17
|
+
windowOuterWidth.value = window.innerWidth;
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
windowOuterWidth.value = window.outerWidth;
|
|
12
21
|
};
|
|
13
22
|
|
|
14
23
|
const isTouchScreenEnabled = computed((): boolean => {
|
|
@@ -16,11 +25,11 @@ export const useBreakpoints = () => {
|
|
|
16
25
|
});
|
|
17
26
|
|
|
18
27
|
const isMobileSized = computed((): boolean => {
|
|
19
|
-
return
|
|
28
|
+
return windowOuterWidth.value < 1264;
|
|
20
29
|
});
|
|
21
30
|
|
|
22
31
|
const isExtraSmall = computed((): boolean => {
|
|
23
|
-
return
|
|
32
|
+
return windowOuterWidth.value < 600;
|
|
24
33
|
});
|
|
25
34
|
|
|
26
35
|
if (!initialized) {
|
|
@@ -28,11 +37,38 @@ export const useBreakpoints = () => {
|
|
|
28
37
|
initialized = true;
|
|
29
38
|
}
|
|
30
39
|
|
|
40
|
+
const fontStyles = computed(() => ({
|
|
41
|
+
"--fs-font-h1-font-size" : isMobileSized.value ? "28px" : "36px",
|
|
42
|
+
"--fs-font-h1-line-height" : isMobileSized.value ? "32px" : "40px",
|
|
43
|
+
"--fs-font-h1-letter-spacing" : isMobileSized.value ? "-1.4px" : "-0.72px",
|
|
44
|
+
"--fs-font-h2-font-size" : isMobileSized.value ? "22px" : "26px",
|
|
45
|
+
"--fs-font-h2-line-height" : isMobileSized.value ? "24px" : "32px",
|
|
46
|
+
"--fs-font-h2-letter-spacing" : isMobileSized.value ? "-0.88px" : "-0.78px",
|
|
47
|
+
"--fs-font-h3-font-size" : isMobileSized.value ? "16px" : "20px",
|
|
48
|
+
"--fs-font-h3-line-height" : isMobileSized.value ? "20px" : "24px",
|
|
49
|
+
"--fs-font-h3-letter-spacing" : isMobileSized.value ? "-0.48px" : "-0.6px",
|
|
50
|
+
"--fs-font-button-font-size" : isMobileSized.value ? "12px" : "14px",
|
|
51
|
+
"--fs-font-button-line-height" : isMobileSized.value ? "16px" : "20px",
|
|
52
|
+
"--fs-font-button-letter-spacing" : isMobileSized.value ? "-0.36px" : "-0.42px",
|
|
53
|
+
"--fs-font-overline-font-size" : isMobileSized.value ? "10px" : "12px",
|
|
54
|
+
"--fs-font-overline-line-height" : isMobileSized.value ? "16px" : "16px",
|
|
55
|
+
"--fs-font-overline-letter-spacing": isMobileSized.value ? "0" : "0",
|
|
56
|
+
...bodyStyle.value
|
|
57
|
+
}));
|
|
58
|
+
|
|
59
|
+
const bodyStyle = computed(() => ({
|
|
60
|
+
"--fs-font-body-font-size" : isMobileSized.value ? "12px" : "14px",
|
|
61
|
+
"--fs-font-body-line-height" : isMobileSized.value ? "16px" : "20px",
|
|
62
|
+
"--fs-font-body-letter-spacing": isMobileSized.value ? "-0.36px" : "-0.42px",
|
|
63
|
+
}));
|
|
64
|
+
|
|
31
65
|
return {
|
|
32
66
|
isTouchScreenEnabled,
|
|
33
67
|
isMobileSized,
|
|
34
68
|
isExtraSmall,
|
|
35
69
|
windowHeight,
|
|
36
|
-
windowWidth
|
|
70
|
+
windowWidth,
|
|
71
|
+
fontStyles,
|
|
72
|
+
bodyStyle
|
|
37
73
|
};
|
|
38
74
|
}
|
package/composables/useColors.ts
CHANGED
|
@@ -53,7 +53,8 @@ export const useColors = () => {
|
|
|
53
53
|
if(color.darken(0.15).isLight()){
|
|
54
54
|
return color.darken(0.8);
|
|
55
55
|
}
|
|
56
|
-
|
|
56
|
+
|
|
57
|
+
return color.lightness(color.lightness() < 30 ? 100 : Math.min(color.lightness() + 60, 100));
|
|
57
58
|
}
|
|
58
59
|
|
|
59
60
|
const parseColor = (color: ColorBase): Color => {
|
|
@@ -105,7 +106,7 @@ export const useColors = () => {
|
|
|
105
106
|
const colors: string[][] = [];
|
|
106
107
|
for (let saturation = baseMinSaturation; saturation <= 100; saturation += (100 - baseMinSaturation) / (columnCount - 1)) {
|
|
107
108
|
const colorsRow = [];
|
|
108
|
-
for (let hue = 0; hue < 360; hue +=
|
|
109
|
+
for (let hue = 0; hue < 360; hue += 5) {
|
|
109
110
|
const color = new Color({ h: hue, s: saturation, v: baseFixedBrightness });
|
|
110
111
|
colorsRow.push(color.hex());
|
|
111
112
|
}
|
|
@@ -10,6 +10,7 @@ const FIELDS = {
|
|
|
10
10
|
[MagicFieldType.IconField] : defineAsyncComponent(() => import("../components/fields/FSIconField.vue")),
|
|
11
11
|
[MagicFieldType.TimeField] : defineAsyncComponent(() => import("../components/fields/FSTimeField.vue")),
|
|
12
12
|
[MagicFieldType.TimeStepField] : defineAsyncComponent(() => import("../components/fields/FSTimeStepField.vue")),
|
|
13
|
+
[MagicFieldType.PlotPerField] : defineAsyncComponent(() => import("../components/selects/chartSelectors/FSPlotPerSelector.vue")),
|
|
13
14
|
};
|
|
14
15
|
|
|
15
16
|
export const useMagicFieldProvider = () => {
|
package/composables/useSlots.ts
CHANGED
|
@@ -20,11 +20,12 @@ export const useSlots = () => {
|
|
|
20
20
|
// Directive wrapper (v-for, v-if)
|
|
21
21
|
case "symbol":
|
|
22
22
|
switch (element.type) {
|
|
23
|
+
// On a v-for, we want to get the children of the v-for
|
|
23
24
|
case Symbol.for("v-fgt"):
|
|
24
25
|
returnElements.push(...recursiveGetChildren(element.children));
|
|
25
26
|
break;
|
|
27
|
+
// On a negative v-if, we want to get nothing
|
|
26
28
|
case Symbol.for("v-cmt"):
|
|
27
|
-
returnElements.push(element);
|
|
28
29
|
break;
|
|
29
30
|
default:
|
|
30
31
|
returnElements.push(element);
|
package/models/agenda.ts
ADDED
package/models/deviceAlerts.ts
CHANGED
package/models/index.ts
CHANGED
package/models/magicFields.ts
CHANGED
package/models/map.ts
CHANGED
package/models/rules.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { useTranslations as useTranslationsProvider } from "@dative-gpi/bones-ui/composables";
|
|
2
|
-
import {
|
|
2
|
+
import { useDateFormat } from "@dative-gpi/foundation-shared-services/composables";
|
|
3
3
|
import { validateExpression } from "@dative-gpi/foundation-shared-domain/tools";
|
|
4
4
|
|
|
5
|
-
import {
|
|
6
|
-
import type { TimeUnit } from "@/shared/foundation-shared-domain";
|
|
5
|
+
import type { TimeUnit } from "@dative-gpi/foundation-shared-domain/enums";
|
|
7
6
|
|
|
8
|
-
|
|
7
|
+
import { getTimeBestString, validateOperation } from "../utils";
|
|
8
|
+
|
|
9
|
+
const { epochToLongDateFormat } = useDateFormat()!;
|
|
9
10
|
const { $tr } = useTranslationsProvider();
|
|
10
11
|
|
|
11
12
|
export const TextRules = {
|
|
@@ -22,6 +23,8 @@ export const TextRules = {
|
|
|
22
23
|
different: (original: string, message: string | undefined = undefined) => (value: string) => value != original || (message ?? $tr("ui.rules.text-different", "Must be different from original")),
|
|
23
24
|
outside: (values: string[], message: string | undefined = undefined) => (value: string) => !values.includes(value) || (message ?? $tr("ui.rules.text-outside", "Must be different from others")),
|
|
24
25
|
inside: (values: string[], message: string | undefined = undefined) => (value: string) => values.includes(value) || (message ?? $tr("ui.rules.text-inside", "Must be one of the options")),
|
|
26
|
+
operation: (operands: string[], variables: string[], message: string | undefined = undefined) => (value: string) => validateOperation(value, operands, variables) || (message ?? $tr("ui.rules.text-operation", "Invalid operation")),
|
|
27
|
+
singleWord: (message: string | undefined = undefined) => (value: string) => !value.includes(" ") || (message ?? $tr("ui.rules.text-single-word", "Must be a single word")),
|
|
25
28
|
};
|
|
26
29
|
|
|
27
30
|
export const TagRules = {
|
|
@@ -76,6 +79,6 @@ export const ToggleRules = {
|
|
|
76
79
|
|
|
77
80
|
export const TreeViewRules = {
|
|
78
81
|
required: (message: string | undefined = undefined) => (value: string) => !!value || (message ?? $tr("ui.rules.required", "Required")),
|
|
79
|
-
min: (min: number, message: string | undefined = undefined) => (value: string[]) =>
|
|
82
|
+
min: (min: number, message: string | undefined = undefined) => (value: string[]) => (Array.isArray(value) && value.length >= min) || (message ?? $tr("ui.rules.tree-view-min", "Must select at least {0} elements", min.toString())),
|
|
80
83
|
max: (max: number, message: string | undefined = undefined) => (value: string[]) => (Array.isArray(value) && value.length <= max) || (message ?? $tr("ui.rules.tree-view-max", "Must select at most {0} elements", max.toString()))
|
|
81
84
|
};
|
package/models/tables.ts
CHANGED
|
@@ -8,10 +8,12 @@ export interface FSDataTableColumn {
|
|
|
8
8
|
|
|
9
9
|
sortable?: boolean | null;
|
|
10
10
|
sort?: ((a: any, b: any) => number) | null;
|
|
11
|
+
sortRaw?: ((a: any, b: any) => number) | null;
|
|
11
12
|
|
|
12
13
|
filterable?: boolean | null;
|
|
13
14
|
fixedFilters?: { value: any, text: string }[] | null;
|
|
14
|
-
methodFilter?: ((value: any,
|
|
15
|
+
methodFilter?: ((value: any, property: any) => boolean) | null;
|
|
16
|
+
methodFilterRaw?: ((value: any, item: any) => boolean) | null;
|
|
15
17
|
filter?: ((value: any, search: string, item: any) => boolean) | null;
|
|
16
18
|
|
|
17
19
|
innerValue?: ((value: any) => any) | null;
|
|
@@ -35,8 +37,9 @@ export interface FSDataTableOrder {
|
|
|
35
37
|
export interface FSDataTable {
|
|
36
38
|
headers: FSDataTableColumn[];
|
|
37
39
|
sortBy: FSDataTableOrder | null;
|
|
38
|
-
mode: "table" | "iterator";
|
|
40
|
+
mode: "table" | "iterator" | null;
|
|
39
41
|
rowsPerPage: -1 | 10 | 30;
|
|
42
|
+
showFilters: boolean;
|
|
40
43
|
filters: { [key: string]: FSDataTableFilter[] };
|
|
41
44
|
page: number;
|
|
42
45
|
}
|
package/models/variableNode.ts
CHANGED
|
@@ -51,14 +51,17 @@ export class VariableNode extends DecoratorNode<Element> {
|
|
|
51
51
|
content.classList.add("fs-rich-text-field-node-variable-value");
|
|
52
52
|
if (_editor._rootElement) {
|
|
53
53
|
content.textContent = this.getValue(_editor._rootElement);
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
|
|
55
|
+
const observer = new MutationObserver(() => {
|
|
56
|
+
content.textContent = this.getValue(_editor._rootElement!);
|
|
57
|
+
});
|
|
58
|
+
observer.observe(_editor._rootElement, { attributes: true, attributeFilter: ['data-variable-values'] });
|
|
59
|
+
} else {
|
|
56
60
|
content.textContent = this.__defaultValue;
|
|
57
61
|
}
|
|
58
|
-
}
|
|
59
|
-
else {
|
|
62
|
+
} else {
|
|
60
63
|
content.classList.add("fs-rich-text-field-node-variable-code");
|
|
61
|
-
content.textContent = `{${this.__code}}
|
|
64
|
+
content.textContent = `{${this.__code}}`;
|
|
62
65
|
}
|
|
63
66
|
container.appendChild(content);
|
|
64
67
|
return container;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dative-gpi/foundation-shared-components",
|
|
3
3
|
"sideEffects": false,
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.37-report-v1",
|
|
5
5
|
"description": "",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
"author": "",
|
|
11
11
|
"license": "ISC",
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@dative-gpi/foundation-shared-domain": "1.0.
|
|
14
|
-
"@dative-gpi/foundation-shared-services": "1.0.
|
|
13
|
+
"@dative-gpi/foundation-shared-domain": "1.0.37-report-v1",
|
|
14
|
+
"@dative-gpi/foundation-shared-services": "1.0.37-report-v1"
|
|
15
15
|
},
|
|
16
16
|
"peerDependencies": {
|
|
17
|
-
"@dative-gpi/bones-ui": "^0.0
|
|
17
|
+
"@dative-gpi/bones-ui": "^1.0.0",
|
|
18
18
|
"@fontsource/montserrat": "^5.0.16",
|
|
19
19
|
"@lexical/clipboard": "0.12.5",
|
|
20
20
|
"@lexical/history": "0.12.5",
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"sass": "1.71.1",
|
|
36
36
|
"sass-loader": "13.3.2"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "f3aa27c947cc218b530726383113af17bf59a133"
|
|
39
39
|
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
.fs-agenda-view {
|
|
2
|
+
min-height: 0;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.fs-agenda-label-day-container {
|
|
6
|
+
flex-shrink: 0;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.fs-agenda-label-day {
|
|
10
|
+
border-bottom: 1px solid var(--fs-agenda-label-day-border-bottom-color);
|
|
11
|
+
border-right: 1px solid var(--fs-agenda-label-day-border-right-color);
|
|
12
|
+
min-height: 0px;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.fs-agenda-label-day-now {
|
|
16
|
+
border-bottom: 4px solid var(--fs-clickable-border-color);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.fs-agenda-body {
|
|
20
|
+
position: relative;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.fs-agenda-row-day {
|
|
24
|
+
position: relative;
|
|
25
|
+
border-bottom: 1px solid var(--fs-agenda-row-day-border-bottom-color);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.fs-day-agenda-hour-line {
|
|
29
|
+
border-top: solid 1px var(--fs-day-agenda-hour-line-color);
|
|
30
|
+
width: 100%;
|
|
31
|
+
height: 100%;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.fs-agenda-header-text {
|
|
35
|
+
text-transform: capitalize !important;
|
|
36
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
.fs-agenda-event {
|
|
2
|
+
position: absolute !important;
|
|
3
|
+
left: var(--fs-agenda-event-left);
|
|
4
|
+
top: var(--fs-agenda-event-top);
|
|
5
|
+
|
|
6
|
+
&.fs-agenda-event-past {
|
|
7
|
+
opacity: 0.5;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
>.fs-card {
|
|
11
|
+
border-left: solid var(--fs-agenda-event-border-width) var(--fs-clickable-border-color) !important;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.fs-agenda-event .fs-col,
|
|
16
|
+
.fs-agenda-event .fs-row {
|
|
17
|
+
overflow: hidden;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.fs-day-agenda .fs-agenda-event {
|
|
21
|
+
.fs-agenda-event-day-label-container {
|
|
22
|
+
overflow: visible !important;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.fs-week-agenda .fs-agenda-event{
|
|
27
|
+
margin-top: 3px;
|
|
28
|
+
margin-bottom: 3px;
|
|
29
|
+
height: calc(100% - 6px) !important;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.fs-month-agenda .fs-agenda-event {
|
|
33
|
+
margin-top: 2px;
|
|
34
|
+
margin-bottom: 2px;
|
|
35
|
+
height: calc(100% - 4px) !important;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.fs-agenda-event-current span {
|
|
39
|
+
text-overflow: unset;
|
|
40
|
+
flex-shrink: 0;
|
|
41
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
.fs-agenda-horizontal-time-line-marker {
|
|
2
|
+
position: absolute;
|
|
3
|
+
top: 0;
|
|
4
|
+
left: var(--fs-agenda-horizontal-time-line-marker-left);
|
|
5
|
+
width: 2px;
|
|
6
|
+
height: 100%;
|
|
7
|
+
z-index: 1;
|
|
8
|
+
background-color: var(--fs-agenda-horizontal-time-line-marker-color);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.fs-agenda-vertical-time-line-marker {
|
|
12
|
+
position: absolute;
|
|
13
|
+
top: var(--fs-agenda-vertical-time-line-marker-top);
|
|
14
|
+
left: 0;
|
|
15
|
+
width: 100%;
|
|
16
|
+
height: 2px;
|
|
17
|
+
z-index: 1;
|
|
18
|
+
background-color: var(--fs-agenda-vertical-time-line-marker-color);
|
|
19
|
+
}
|
|
@@ -22,19 +22,6 @@
|
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
.fs-autocomplete-field-label {
|
|
26
|
-
color: var(--fs-autocomplete-field-color);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.fs-autocomplete-field-messages {
|
|
30
|
-
align-self: stretch;
|
|
31
|
-
color: var(--fs-autocomplete-field-error-color);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.fs-autocomplete-field-description {
|
|
35
|
-
color: var(--fs-autocomplete-field-color);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
25
|
.v-overlay-container > .v-overlay > .v-autocomplete__content {
|
|
39
26
|
box-shadow: 0px 5px 8px 0px #00000029;
|
|
40
27
|
max-width: none !important;
|
|
@@ -1,54 +1,36 @@
|
|
|
1
|
-
.fs-breadcrumbs
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
&-disabled {
|
|
7
|
-
color: var(--fs-breadcrumbs-disabled-color) !important;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
&:hover {
|
|
11
|
-
text-decoration: underline;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
&:active {
|
|
15
|
-
color: var(--fs-breadcrumbs-active-color) !important;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
1
|
+
.fs-breadcrumbs {
|
|
2
|
+
height: var(--fs-breadcrumbs-height) !important;
|
|
3
|
+
padding: 0 !important;
|
|
4
|
+
gap: 0 !important;
|
|
18
5
|
|
|
19
|
-
|
|
20
|
-
margin-bottom: 2px !important;
|
|
6
|
+
max-width: 100%;
|
|
21
7
|
}
|
|
22
8
|
|
|
23
|
-
.v-breadcrumbs
|
|
9
|
+
.v-breadcrumbs-item,
|
|
10
|
+
.v-breadcrumbs-item--link {
|
|
24
11
|
padding: 0 !important;
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
@include web {
|
|
28
|
-
height: 24px;
|
|
29
|
-
}
|
|
12
|
+
user-select: none;
|
|
13
|
+
cursor: pointer;
|
|
30
14
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
15
|
+
align-self: stretch;
|
|
16
|
+
display: flex;
|
|
17
|
+
flex: 1 0 0;
|
|
35
18
|
|
|
36
|
-
|
|
37
|
-
|
|
19
|
+
max-width: fit-content;
|
|
20
|
+
min-width: 20px;
|
|
38
21
|
|
|
39
22
|
&--disabled {
|
|
40
23
|
opacity: 1 !important;
|
|
41
24
|
color: var(--fs-breadcrumbs-disabled-color) !important;
|
|
42
25
|
}
|
|
26
|
+
}
|
|
43
27
|
|
|
44
|
-
|
|
45
|
-
|
|
28
|
+
.v-breadcrumbs-item:last-child > .fs-breadcrumbs-label {
|
|
29
|
+
@extend .text-button;
|
|
46
30
|
|
|
47
|
-
|
|
48
|
-
}
|
|
31
|
+
color: var(--fs-breadcrumbs-active-color) !important;
|
|
49
32
|
}
|
|
50
33
|
|
|
51
34
|
.v-breadcrumbs-divider {
|
|
52
|
-
padding: 0 !important;
|
|
53
35
|
color: var(--fs-breadcrumbs-color) !important;
|
|
54
36
|
}
|
|
@@ -2,11 +2,6 @@
|
|
|
2
2
|
transition: color 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
|
|
3
3
|
color: var(--fs-button-color) !important;
|
|
4
4
|
|
|
5
|
-
&:not(.fs-button-disabled, :has(.fs-button-load)):hover {
|
|
6
|
-
color: var(--fs-button-hover-color) !important;
|
|
7
|
-
cursor: pointer !important;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
5
|
&.fs-button-disabled,
|
|
11
6
|
&:has(.fs-button-load) {
|
|
12
7
|
cursor: default !important;
|
|
@@ -16,4 +11,11 @@
|
|
|
16
11
|
color: inherit;
|
|
17
12
|
text-decoration: none;
|
|
18
13
|
}
|
|
14
|
+
|
|
15
|
+
@include clickscreen {
|
|
16
|
+
&:not(.fs-button-disabled, :has(.fs-button-load)):hover {
|
|
17
|
+
color: var(--fs-button-hover-color) !important;
|
|
18
|
+
cursor: pointer !important;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
19
21
|
}
|
|
@@ -12,15 +12,17 @@
|
|
|
12
12
|
.fs-chip-editable {
|
|
13
13
|
cursor: pointer !important;
|
|
14
14
|
|
|
15
|
-
&:hover {
|
|
16
|
-
background-color: var(--fs-chip-hover-background-color) !important;
|
|
17
|
-
border-color: var(--fs-chip-hover-border-color) !important;
|
|
18
|
-
color: var(--fs-chip-hover-color) !important;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
15
|
&:active {
|
|
22
16
|
background-color: var(--fs-chip-active-background-color) !important;
|
|
23
17
|
border-color: var(--fs-chip-active-border-color) !important;
|
|
24
18
|
color: var(--fs-chip-active-color) !important;
|
|
25
19
|
}
|
|
20
|
+
|
|
21
|
+
@include clickscreen {
|
|
22
|
+
&:hover {
|
|
23
|
+
background-color: var(--fs-chip-hover-background-color) !important;
|
|
24
|
+
border-color: var(--fs-chip-hover-border-color) !important;
|
|
25
|
+
color: var(--fs-chip-hover-color) !important;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
26
28
|
}
|
|
@@ -11,26 +11,30 @@
|
|
|
11
11
|
&.fs-clickable-disabled {
|
|
12
12
|
cursor: default;
|
|
13
13
|
}
|
|
14
|
-
|
|
15
|
-
&:not(.fs-clickable-disabled):hover:not(:has( .fs-stopclick:hover)) {
|
|
16
|
-
background-color: var(--fs-clickable-hover-background-color) !important;
|
|
17
|
-
border-color: var(--fs-clickable-hover-border-color) !important;
|
|
18
|
-
color: var(--fs-clickable-hover-color) !important;
|
|
19
|
-
|
|
20
|
-
& .fs-background {
|
|
21
|
-
background-color: var(--fs-clickable-hover-background-color);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
14
|
+
|
|
25
15
|
&:not(.fs-clickable-disabled):active:not(:has( .fs-stopclick:hover)) {
|
|
26
16
|
background-color: var(--fs-clickable-active-background-color) !important;
|
|
27
17
|
border-color: var(--fs-clickable-active-border-color) !important;
|
|
28
18
|
color: var(--fs-clickable-active-color) !important;
|
|
29
19
|
|
|
30
|
-
& .fs-
|
|
20
|
+
& .fs-card-clickable {
|
|
21
|
+
transition: background-color 0.28s cubic-bezier(0.4, 0, 0.2, 1);
|
|
31
22
|
background-color: var(--fs-clickable-active-background-color);
|
|
32
23
|
}
|
|
33
24
|
}
|
|
25
|
+
|
|
26
|
+
@include clickscreen {
|
|
27
|
+
&:not(.fs-clickable-disabled):hover:not(:has( .fs-stopclick:hover)) {
|
|
28
|
+
background-color: var(--fs-clickable-hover-background-color) !important;
|
|
29
|
+
border-color: var(--fs-clickable-hover-border-color) !important;
|
|
30
|
+
color: var(--fs-clickable-hover-color) !important;
|
|
31
|
+
|
|
32
|
+
& .fs-card-clickable {
|
|
33
|
+
transition: background-color 0.28s cubic-bezier(0.4, 0, 0.2, 1);
|
|
34
|
+
background-color: var(--fs-clickable-hover-background-color);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
34
38
|
}
|
|
35
39
|
|
|
36
40
|
a:has(.fs-clickable) {
|
|
@@ -50,20 +54,11 @@ button:has(.fs-clickable) {
|
|
|
50
54
|
.fs-clickable-load {
|
|
51
55
|
cursor: default;
|
|
52
56
|
position: absolute !important;
|
|
57
|
+
height: 100% !important;
|
|
53
58
|
width: 100% !important;
|
|
54
59
|
left: 0;
|
|
55
60
|
top: 0;
|
|
56
|
-
|
|
57
|
-
@include web {
|
|
58
|
-
height: 40px !important;
|
|
59
|
-
padding: 8px 0;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
@include mobile {
|
|
63
|
-
height: 36px !important;
|
|
64
|
-
padding: 6px 0;
|
|
65
|
-
}
|
|
66
|
-
|
|
61
|
+
|
|
67
62
|
& > svg {
|
|
68
63
|
height: 24px !important;
|
|
69
64
|
}
|
|
@@ -33,16 +33,6 @@
|
|
|
33
33
|
text-align: center;
|
|
34
34
|
cursor: var(--fs-clock-field-cursor) !important;
|
|
35
35
|
color: var(--fs-clock-field-color);
|
|
36
|
-
|
|
37
|
-
@include web {
|
|
38
|
-
min-height: 38px !important;
|
|
39
|
-
height: 38px !important;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
@include mobile {
|
|
43
|
-
min-height: 34px !important;
|
|
44
|
-
height: 34px !important;
|
|
45
|
-
}
|
|
46
36
|
}
|
|
47
37
|
}
|
|
48
38
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
.fs-color-field .fs-card {
|
|
2
2
|
cursor: var(--fs-color-field-cursor) !important;
|
|
3
|
+
min-width: var(--fs-base-field-min-width);
|
|
3
4
|
border-color: var(--fs-color-field-border-color) !important;
|
|
4
5
|
.fs-text {
|
|
5
6
|
color: var(--fs-color-field-color) !important;
|
|
@@ -16,8 +17,4 @@
|
|
|
16
17
|
background: none !important;
|
|
17
18
|
min-width: auto !important;
|
|
18
19
|
width: 100% !important;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.fs-color-field-description {
|
|
22
|
-
color: var(--fs-color-field-color);
|
|
23
20
|
}
|
|
@@ -8,16 +8,18 @@
|
|
|
8
8
|
padding-right: 32px;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
11
|
+
@include clickscreen {
|
|
12
|
+
&:hover::after {
|
|
13
|
+
content: "";
|
|
14
|
+
background-color: black;
|
|
15
|
+
pointer-events: none;
|
|
16
|
+
position: absolute;
|
|
17
|
+
opacity: 0.04;
|
|
18
|
+
height: 100%;
|
|
19
|
+
width: 100%;
|
|
20
|
+
left: 0;
|
|
21
|
+
top: 0;
|
|
22
|
+
}
|
|
21
23
|
}
|
|
22
24
|
}
|
|
23
25
|
|