@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.
Files changed (271) hide show
  1. package/components/FSBreadcrumbs.vue +21 -12
  2. package/components/FSButton.vue +10 -10
  3. package/components/FSCalendar.vue +52 -14
  4. package/components/FSCalendarTwin.vue +96 -40
  5. package/components/FSCard.vue +28 -7
  6. package/components/FSCardPlaceholder.vue +8 -5
  7. package/components/FSChip.vue +12 -2
  8. package/components/FSClickable.vue +12 -13
  9. package/components/FSClock.vue +16 -7
  10. package/components/FSColorIcon.vue +23 -5
  11. package/components/FSDialog.vue +2 -1
  12. package/components/FSDialogContent.vue +12 -11
  13. package/components/FSDialogForm.vue +22 -2
  14. package/components/FSDialogFormBody.vue +47 -28
  15. package/components/FSDialogMenu.vue +17 -8
  16. package/components/FSDialogMultiFormBody.vue +77 -54
  17. package/components/FSDialogRemove.vue +8 -8
  18. package/components/FSDialogSubmit.vue +17 -8
  19. package/components/FSEditImage.vue +1 -1
  20. package/components/FSEditImageUI.vue +20 -10
  21. package/components/FSFadeOut.vue +53 -21
  22. package/components/FSForm.vue +10 -8
  23. package/components/FSGrid.vue +1 -1
  24. package/components/FSIcon.vue +2 -1
  25. package/components/FSIconCard.vue +47 -7
  26. package/components/FSImage.vue +12 -4
  27. package/components/FSImageUI.vue +8 -15
  28. package/components/FSInstantPicker.vue +266 -0
  29. package/components/FSLink.vue +25 -9
  30. package/components/FSLoader.vue +28 -11
  31. package/components/FSOptionGroup.vue +51 -3
  32. package/components/FSPlayButtons.vue +72 -0
  33. package/components/FSProgressBar.vue +94 -0
  34. package/components/FSRouterLink.vue +42 -0
  35. package/components/FSSlideGroup.vue +19 -5
  36. package/components/FSSpan.vue +17 -7
  37. package/components/FSSwitch.vue +57 -27
  38. package/components/FSTab.vue +15 -13
  39. package/components/FSTabs.vue +32 -7
  40. package/components/FSTag.vue +14 -3
  41. package/components/FSTagGroup.vue +1 -1
  42. package/components/FSText.vue +11 -7
  43. package/components/FSWindow.vue +128 -4
  44. package/components/FSWrapGroup.vue +13 -1
  45. package/components/agenda/FSAgenda.vue +223 -0
  46. package/components/agenda/FSAgendaDialogCalendar.vue +76 -0
  47. package/components/agenda/FSAgendaHeader.vue +215 -0
  48. package/components/agenda/FSAgendaHorizontalEvent.vue +174 -0
  49. package/components/agenda/FSAgendaHorizontalTimeLineMarker.vue +46 -0
  50. package/components/agenda/FSAgendaHoursCol.vue +103 -0
  51. package/components/agenda/FSAgendaHoursRow.vue +164 -0
  52. package/components/agenda/FSAgendaVerticalEvent.vue +160 -0
  53. package/components/agenda/FSAgendaVerticalTimeLineMarker.vue +46 -0
  54. package/components/agenda/FSDayAgenda.vue +199 -0
  55. package/components/agenda/FSMonthAgenda.vue +252 -0
  56. package/components/agenda/FSSelectAgendaMode.vue +54 -0
  57. package/components/agenda/FSWeekAgenda.vue +323 -0
  58. package/components/autocompletes/FSAutoCompleteAddress.vue +22 -20
  59. package/components/autocompletes/FSAutocompleteLanguage.vue +7 -1
  60. package/components/autocompletes/FSAutocompleteTimeZone.vue +7 -1
  61. package/components/buttons/FSButtonAdd.vue +1 -1
  62. package/components/buttons/FSButtonAddLabel.vue +1 -1
  63. package/components/buttons/FSButtonCancel.vue +1 -1
  64. package/components/buttons/FSButtonCancelLabel.vue +1 -1
  65. package/components/buttons/FSButtonCopy.vue +1 -1
  66. package/components/buttons/FSButtonCopyLabel.vue +1 -1
  67. package/components/buttons/FSButtonDragIcon.vue +27 -0
  68. package/components/buttons/FSButtonDuplicate.vue +1 -1
  69. package/components/buttons/FSButtonDuplicateLabel.vue +1 -1
  70. package/components/buttons/FSButtonEdit.vue +1 -1
  71. package/components/buttons/FSButtonEditLabel.vue +1 -1
  72. package/components/buttons/FSButtonFile.vue +1 -1
  73. package/components/buttons/FSButtonFileLabel.vue +1 -1
  74. package/components/buttons/FSButtonNext.vue +1 -1
  75. package/components/buttons/FSButtonNextLabel.vue +1 -1
  76. package/components/buttons/FSButtonPrevious.vue +1 -1
  77. package/components/buttons/FSButtonPreviousLabel.vue +1 -1
  78. package/components/buttons/FSButtonRedo.vue +1 -1
  79. package/components/buttons/FSButtonRedoLabel.vue +1 -1
  80. package/components/buttons/FSButtonRemove.vue +1 -1
  81. package/components/buttons/FSButtonRemoveLabel.vue +1 -1
  82. package/components/buttons/FSButtonSave.vue +1 -1
  83. package/components/buttons/FSButtonSaveLabel.vue +1 -1
  84. package/components/buttons/FSButtonSearch.vue +1 -1
  85. package/components/buttons/FSButtonSearchLabel.vue +1 -1
  86. package/components/buttons/FSButtonUndo.vue +1 -1
  87. package/components/buttons/FSButtonUndoLabel.vue +1 -1
  88. package/components/buttons/FSButtonUpdate.vue +1 -1
  89. package/components/buttons/FSButtonUpdateLabel.vue +1 -1
  90. package/components/buttons/FSButtonValidate.vue +1 -1
  91. package/components/buttons/FSButtonValidateLabel.vue +1 -1
  92. package/components/calendar/FSSimpleCalendar.vue +145 -0
  93. package/components/calendar/FSSimpleCalendarHeader.vue +60 -0
  94. package/components/calendar/FSSimpleMonthSelector.vue +138 -0
  95. package/components/deviceOrganisations/FSConnectivity.vue +11 -1
  96. package/components/deviceOrganisations/FSConnectivityCard.vue +19 -47
  97. package/components/deviceOrganisations/FSStatus.vue +11 -1
  98. package/components/deviceOrganisations/FSStatusCard.vue +35 -61
  99. package/components/deviceOrganisations/FSStatusesCarousel.vue +1 -0
  100. package/components/deviceOrganisations/FSStatusesRow.vue +9 -3
  101. package/components/deviceOrganisations/FSWorstAlert.vue +30 -37
  102. package/components/deviceOrganisations/FSWorstAlertCard.vue +36 -85
  103. package/components/fields/FSAutocompleteField.vue +445 -463
  104. package/components/fields/FSAutocompleteTag.vue +1 -1
  105. package/components/fields/FSBaseField.vue +44 -27
  106. package/components/fields/FSColorField.vue +42 -39
  107. package/components/fields/FSCommentField.vue +105 -0
  108. package/components/fields/FSDateField.vue +3 -2
  109. package/components/fields/FSDateRangeField.vue +3 -2
  110. package/components/fields/FSDateTimeField.vue +4 -3
  111. package/components/fields/FSDateTimeRangeField.vue +8 -6
  112. package/components/fields/FSEntityFieldUI.vue +271 -0
  113. package/components/fields/FSGradientField.vue +27 -33
  114. package/components/fields/FSIconField.vue +0 -1
  115. package/components/fields/FSMagicConfigField.vue +10 -3
  116. package/components/fields/FSMagicField.vue +9 -4
  117. package/components/fields/FSNumberField.vue +6 -1
  118. package/components/fields/FSRichTextField.vue +102 -52
  119. package/components/fields/FSSearchField.vue +9 -115
  120. package/components/fields/FSSelectField.vue +477 -252
  121. package/components/fields/FSTagField.vue +1 -1
  122. package/components/fields/FSTermField.vue +42 -17
  123. package/components/fields/FSTextArea.vue +26 -7
  124. package/components/fields/FSTextField.vue +8 -3
  125. package/components/fields/FSTimeRangeField.vue +304 -0
  126. package/components/fields/FSTimeStepField.vue +3 -3
  127. package/components/fields/FSTranslateField.vue +4 -3
  128. package/components/fields/FSTranslateRichTextField.vue +32 -12
  129. package/components/fields/FSTranslateTextArea.vue +233 -0
  130. package/components/fields/periodicField/FSPeriodicDailyField.vue +2 -2
  131. package/components/fields/periodicField/FSPeriodicField.vue +8 -8
  132. package/components/fields/periodicField/FSPeriodicMonthlyField.vue +8 -8
  133. package/components/fields/periodicField/FSPeriodicWeeklyField.vue +23 -13
  134. package/components/fields/periodicField/FSPeriodicYearlyField.vue +6 -6
  135. package/components/lists/FSDataTableUI.vue +173 -103
  136. package/components/lists/FSDraggable.vue +2 -2
  137. package/components/lists/FSFilterButton.vue +7 -11
  138. package/components/lists/FSHeaderButton.vue +4 -4
  139. package/components/lists/FSHiddenButton.vue +3 -5
  140. package/components/lists/FSLoadDataTable.vue +10 -7
  141. package/components/lists/FSSimpleList.vue +234 -0
  142. package/components/lists/FSSimpleListItem.vue +132 -0
  143. package/components/map/FSMap.vue +83 -33
  144. package/components/map/FSMapFeatureGroup.vue +2 -2
  145. package/components/map/FSMapLayerButton.vue +3 -3
  146. package/components/map/FSMapMarker.vue +11 -7
  147. package/components/map/FSMapMarkerClusterGroup.vue +8 -3
  148. package/components/map/FSMapOverlay.vue +37 -20
  149. package/components/map/FSMapPolygon.vue +5 -5
  150. package/components/map/FSMapTileLayer.vue +2 -2
  151. package/components/map/keys.ts +3 -3
  152. package/components/selects/FSSelectAutoRefresh.vue +9 -9
  153. package/components/selects/FSSelectDashboardVariableType.vue +5 -4
  154. package/components/selects/FSSelectDateSetting.vue +3 -2
  155. package/components/selects/FSSelectDays.vue +9 -9
  156. package/components/selects/FSSelectListMode.vue +51 -0
  157. package/components/selects/FSSelectMonths.vue +14 -14
  158. package/components/selects/chartSelectors/FSAggregationSelector.vue +52 -0
  159. package/components/selects/chartSelectors/FSAxisTypeSelector.vue +49 -0
  160. package/components/selects/chartSelectors/FSDisplayAsSelector.vue +53 -0
  161. package/components/selects/chartSelectors/FSFilterTypeSelector.vue +54 -0
  162. package/components/selects/chartSelectors/FSHeatmapRuleSelector.vue +54 -0
  163. package/components/selects/chartSelectors/FSOperationOnSelector.vue +53 -0
  164. package/components/selects/chartSelectors/FSPlanningTypeSelector.vue +53 -0
  165. package/components/selects/chartSelectors/FSPlotPerSelector.vue +52 -0
  166. package/components/selects/chartSelectors/FSSelectEntityType.vue +59 -0
  167. package/components/selects/chartSelectors/FSSerieTypeSelector.vue +53 -0
  168. package/components/tiles/FSAlertTileUI.vue +90 -0
  169. package/components/tiles/FSChartTileUI.vue +111 -0
  170. package/components/tiles/FSCommentTileUI.vue +174 -0
  171. package/components/tiles/FSDeviceOrganisationTileUI.vue +6 -0
  172. package/components/tiles/FSGroupTileUI.vue +2 -2
  173. package/components/tiles/FSLoadTile.vue +2 -0
  174. package/components/tiles/FSLocationTileUI.vue +192 -0
  175. package/components/tiles/FSModelTileUI.vue +18 -0
  176. package/components/tiles/FSSimpleTileUI.vue +9 -4
  177. package/components/tiles/FSTile.vue +93 -74
  178. package/components/tiles/FSUserOrganisationTileUI.vue +1 -1
  179. package/components/toggleSets/FSToggleSetPosition.vue +2 -2
  180. package/components/views/FSBaseView.vue +64 -0
  181. package/components/views/FSEntityView.vue +12 -140
  182. package/components/views/FSSimpleView.vue +29 -0
  183. package/components/views/desktop/FSBaseDefaultDesktopView.vue +135 -0
  184. package/components/views/desktop/FSBaseDesktopView.vue +53 -0
  185. package/components/views/desktop/FSBaseEntityDesktopView.vue +209 -0
  186. package/components/views/mobile/FSBaseDefaultMobileView.vue +133 -0
  187. package/components/views/mobile/FSBaseEntityMobileView.vue +199 -0
  188. package/components/views/mobile/FSBaseMobileView.vue +53 -0
  189. package/composables/useBreakpoints.ts +39 -3
  190. package/composables/useColors.ts +3 -2
  191. package/composables/useMagicFieldProvider.ts +1 -0
  192. package/composables/useSlots.ts +2 -1
  193. package/models/agenda.ts +9 -0
  194. package/models/deviceAlerts.ts +1 -1
  195. package/models/deviceConnectivities.ts +1 -1
  196. package/models/index.ts +1 -0
  197. package/models/magicFields.ts +1 -0
  198. package/models/map.ts +2 -2
  199. package/models/rules.ts +8 -5
  200. package/models/tables.ts +5 -2
  201. package/models/variableNode.ts +8 -5
  202. package/package.json +5 -5
  203. package/styles/components/fs_agenda.scss +36 -0
  204. package/styles/components/fs_agenda_event.scss +41 -0
  205. package/styles/components/fs_agenda_hours_col.scss +4 -0
  206. package/styles/components/fs_agenda_hours_row.scss +5 -0
  207. package/styles/components/fs_agenda_time_line_marker.scss +19 -0
  208. package/styles/components/fs_autocomplete_field.scss +0 -13
  209. package/styles/components/fs_breadcrumbs.scss +18 -36
  210. package/styles/components/fs_button.scss +7 -5
  211. package/styles/components/fs_chip.scss +8 -6
  212. package/styles/components/fs_clickable.scss +18 -23
  213. package/styles/components/fs_clock.scss +0 -10
  214. package/styles/components/fs_color_field.scss +1 -4
  215. package/styles/components/fs_data_iterator_item.scss +12 -10
  216. package/styles/components/fs_data_table.scss +6 -9
  217. package/styles/components/fs_dialog.scss +7 -17
  218. package/styles/components/fs_dialog_menu.scss +4 -2
  219. package/styles/components/fs_edit_image.scss +8 -0
  220. package/styles/components/fs_fade_out.scss +10 -2
  221. package/styles/components/fs_filter_button.scss +1 -6
  222. package/styles/components/fs_gradient_field.scss +11 -11
  223. package/styles/components/fs_hidden_button.scss +2 -7
  224. package/styles/components/fs_image_card.scss +6 -4
  225. package/styles/components/fs_magic_config_field.scss +1 -2
  226. package/styles/components/fs_map.scss +11 -7
  227. package/styles/components/fs_meta_field.scss +3 -5
  228. package/styles/components/fs_option_group.scss +15 -5
  229. package/styles/components/fs_password_field.scss +4 -2
  230. package/styles/components/fs_progress_bar.scss +14 -0
  231. package/styles/components/fs_radio.scss +0 -11
  232. package/styles/components/fs_rich_text_field.scss +1 -9
  233. package/styles/components/fs_select_date_settings.scss +3 -0
  234. package/styles/components/fs_select_field.scss +4 -13
  235. package/styles/components/fs_slide_group.scss +7 -0
  236. package/styles/components/fs_span.scss +13 -4
  237. package/styles/components/fs_switch.scss +1 -0
  238. package/styles/components/fs_tabs.scss +19 -33
  239. package/styles/components/fs_tag.scss +8 -22
  240. package/styles/components/fs_text_area.scss +13 -17
  241. package/styles/components/fs_tile.scss +21 -15
  242. package/styles/components/fs_window.scss +7 -0
  243. package/styles/components/fs_wrap_group.scss +7 -0
  244. package/styles/components/index.scss +6 -4
  245. package/styles/globals/index.scss +1 -5
  246. package/styles/globals/overrides.scss +28 -61
  247. package/styles/globals/scrollbars.scss +10 -0
  248. package/styles/globals/text_fonts.scss +18 -66
  249. package/tools/alertsTools.ts +69 -0
  250. package/tools/chartsTools.ts +427 -0
  251. package/tools/index.ts +4 -0
  252. package/tools/reportsTools.ts +38 -0
  253. package/tools/timeRangeTools.ts +125 -0
  254. package/utils/filter.ts +18 -0
  255. package/utils/index.ts +2 -0
  256. package/utils/leafletMarkers.ts +4 -4
  257. package/utils/operations.ts +69 -0
  258. package/utils/sort.ts +2 -2
  259. package/utils/statuses.ts +1 -1
  260. package/utils/time.ts +17 -17
  261. package/components/fields/FSTimeSlotField.vue +0 -250
  262. package/components/views/FSEntityHeader.vue +0 -350
  263. package/components/views/FSListHeader.vue +0 -83
  264. package/components/views/FSListView.vue +0 -83
  265. package/components/views/FSSkeletonView.vue +0 -100
  266. package/styles/components/fs_icon_field.scss +0 -12
  267. package/styles/components/fs_tag_field.scss +0 -8
  268. package/styles/components/fs_time_field.scss +0 -12
  269. package/styles/components/fs_timeslot_field.scss +0 -12
  270. package/styles/globals/breakpoints.scss +0 -20
  271. 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 windowWidth.value < 1264;
28
+ return windowOuterWidth.value < 1264;
20
29
  });
21
30
 
22
31
  const isExtraSmall = computed((): boolean => {
23
- return windowWidth.value < 600;
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
  }
@@ -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
- return color.lighten(color.value() / 50);
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 += 15) {
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 = () => {
@@ -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);
@@ -0,0 +1,9 @@
1
+ export interface FSAgendaEvent {
2
+ id: string;
3
+ label: string;
4
+ icon?: string;
5
+ iconBis?: string;
6
+ color: string;
7
+ start: number;
8
+ end: number;
9
+ }
@@ -1,4 +1,4 @@
1
- import type { AlertStatus, Criticity } from "@dative-gpi/foundation-shared-domain/models";
1
+ import type { AlertStatus, Criticity } from "@dative-gpi/foundation-shared-domain/enums";
2
2
 
3
3
  export interface FSDeviceAlert {
4
4
  id: string;
@@ -1,4 +1,4 @@
1
- import type { ConnectivityStatus } from "@dative-gpi/foundation-shared-domain/models";
1
+ import type { ConnectivityStatus } from "@dative-gpi/foundation-shared-domain/enums";
2
2
 
3
3
  export interface FSDeviceConnectivity {
4
4
  id: string;
package/models/index.ts CHANGED
@@ -1,3 +1,4 @@
1
+ export * from "./agenda";
1
2
  export * from "./breadcrumbs";
2
3
  export * from "./colors";
3
4
  export * from "./deviceAlerts";
@@ -7,4 +7,5 @@ export enum MagicFieldType {
7
7
  IconField = 5,
8
8
  TimeField = 6,
9
9
  TimeStepField = 7,
10
+ PlotPerField = 8,
10
11
  }
package/models/map.ts CHANGED
@@ -12,7 +12,7 @@ export interface MapLayer {
12
12
  export interface FSLocation {
13
13
  id: string;
14
14
  label: string;
15
- icon: string;
15
+ icon: string | null;
16
16
  address: Address;
17
- color: string;
17
+ color: string | null;
18
18
  }
package/models/rules.ts CHANGED
@@ -1,11 +1,12 @@
1
1
  import { useTranslations as useTranslationsProvider } from "@dative-gpi/bones-ui/composables";
2
- import { useAppTimeZone } from "@dative-gpi/foundation-shared-services/composables";
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 { getTimeBestString } from "../utils";
6
- import type { TimeUnit } from "@/shared/foundation-shared-domain";
5
+ import type { TimeUnit } from "@dative-gpi/foundation-shared-domain/enums";
7
6
 
8
- const { epochToLongDateFormat } = useAppTimeZone()!;
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[]) => { console.log(value); return (Array.isArray(value) && value.length >= min) || (message ?? $tr("ui.rules.tree-view-min", "Must select at least {0} elements", min.toString())); },
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, item: any) => boolean) | null;
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
  }
@@ -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
- else {
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.36",
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.36",
14
- "@dative-gpi/foundation-shared-services": "1.0.36"
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.75",
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": "687d6ae60b16a75dc332400cd6eee19cb306767b"
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,4 @@
1
+ .fs-agenda-hours-col {
2
+ transform: translateY(calc(-2.4% + 4px));
3
+ overflow: visible;
4
+ }
@@ -0,0 +1,5 @@
1
+ .fs-agenda-hours-row-marker {
2
+ height: 4px;
3
+ border-right: solid 1px var(--fs-agenda-hours-row-marker-color);
4
+ transform: translateY(-4px);
5
+ }
@@ -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-label {
2
- cursor: pointer;
3
- user-select: none;
4
- color: var(--fs-breadcrumbs-color);
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
- .fs-breadcrumbs-divider {
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
- gap: 8px !important;
26
-
27
- @include web {
28
- height: 24px;
29
- }
12
+ user-select: none;
13
+ cursor: pointer;
30
14
 
31
- @include mobile {
32
- height: 20px;
33
- }
34
- }
15
+ align-self: stretch;
16
+ display: flex;
17
+ flex: 1 0 0;
35
18
 
36
- .v-breadcrumbs-item {
37
- padding: 0 !important;
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
- &:last-child > .fs-breadcrumbs-label-disabled {
45
- @extend .text-button;
28
+ .v-breadcrumbs-item:last-child > .fs-breadcrumbs-label {
29
+ @extend .text-button;
46
30
 
47
- color: var(--fs-breadcrumbs-active-color) !important;
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-background {
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
- &:hover::after {
12
- content: "";
13
- background-color: black;
14
- pointer-events: none;
15
- position: absolute;
16
- opacity: 0.04;
17
- height: 100%;
18
- width: 100%;
19
- left: 0;
20
- top: 0;
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