@dative-gpi/foundation-core-components 1.0.139 → 1.0.140

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 (40) hide show
  1. package/components/autocompletes/FSAutocompleteChart.vue +0 -2
  2. package/components/autocompletes/FSAutocompleteDashboard.vue +0 -2
  3. package/components/autocompletes/FSAutocompleteRole.vue +0 -2
  4. package/components/customProperties/FSMetaField.vue +8 -8
  5. package/components/customProperties/FSMetaFormContent.vue +4 -3
  6. package/components/entities/FSEntityField.vue +3 -3
  7. package/components/explorers/FSBaseDevicesExplorer.vue +3 -3
  8. package/components/explorers/FSBaseFoldersExplorer.vue +1 -1
  9. package/components/lists/alerts/FSBaseAlertsList.vue +3 -3
  10. package/components/lists/authTokens/FSBaseAuthTokensList.vue +1 -0
  11. package/components/lists/chartOrganisationTypes/FSBaseChartOrganisationTypesList.vue +19 -5
  12. package/components/lists/chartOrganisations/FSBaseChartOrganisationsList.vue +31 -17
  13. package/components/lists/charts/FSBaseChartsList.vue +24 -8
  14. package/components/lists/dashboardOrganisationTypes/FSBaseDashboardOrganisationTypesList.vue +18 -1
  15. package/components/lists/dashboards/FSBaseDashboardsList.vue +20 -2
  16. package/components/lists/deviceOrganisations/FSBaseDeviceOrganisationsList.vue +4 -3
  17. package/components/lists/folders/FSBaseFoldersList.vue +1 -1
  18. package/components/lists/groups/FSBaseGroupsList.vue +4 -4
  19. package/components/lists/locations/FSBaseLocationsList.vue +3 -3
  20. package/components/lists/models/FSBaseModelsList.vue +2 -2
  21. package/components/lists/roleOrganisationTypes/FSBaseRoleOrganisationTypesList.vue +3 -3
  22. package/components/lists/roleOrganisations/FSBaseRoleOrganisationsList.vue +3 -3
  23. package/components/lists/scenarioOrganisationTypes/FSBaseScenarioOrganisationTypesList.vue +3 -3
  24. package/components/lists/scenarioOrganisations/FSBaseScenarioOrganisationsList.vue +3 -3
  25. package/components/lists/scenarios/FSBaseScenariosList.vue +1 -1
  26. package/components/lists/serviceAccountOrganisations/FSBaseServiceAccountOrganisationsList.vue +4 -4
  27. package/components/lists/serviceAccountRoleOrganisations/FSBaseServiceAccountRoleOrganisationsList.vue +3 -3
  28. package/components/lists/userOrganisations/FSBaseUserOrganisationsList.vue +4 -4
  29. package/components/tiles/FSDashboardOrganisationTile.vue +3 -3
  30. package/components/tiles/FSDashboardOrganisationTypeTile.vue +3 -3
  31. package/components/tiles/FSDashboardShallowTile.vue +3 -3
  32. package/components/tiles/FSDeviceOrganisationTile.vue +3 -3
  33. package/components/tiles/FSFolderTile.vue +3 -3
  34. package/components/tiles/FSGroupTile.vue +3 -3
  35. package/components/tiles/FSLocationTile.vue +4 -3
  36. package/components/tiles/FSServiceAccountOrganisationTile.vue +3 -3
  37. package/components/tiles/FSUserOrganisationTile.vue +3 -3
  38. package/package.json +7 -7
  39. package/components/lists/reports/FSBaseReportExecutionsList.vue +0 -137
  40. package/components/lists/reports/FSBaseReportsList.vue +0 -135
@@ -1,135 +0,0 @@
1
- <template>
2
- <FSDataTable
3
- defaultMode="table"
4
- :loading="fetchingReports"
5
- :items="reports"
6
- :showSelect="$props.editable"
7
- :tableCode="tableCode"
8
- :itemTo="$props.itemTo"
9
- :modelValue="$props.modelValue"
10
- @update:modelValue="$emit('update:modelValue', $event)"
11
- v-bind="$attrs"
12
- >
13
- <template
14
- v-for="(_, name) in $slots"
15
- v-slot:[name]="slotData"
16
- >
17
- <slot
18
- :name="name"
19
- v-bind="slotData"
20
- />
21
- </template>
22
- <template
23
- #item.icon="{ item }"
24
- >
25
- <FSIcon >
26
- {{ item.icon }}
27
- </FSIcon>
28
- </template>
29
- <template
30
- #item.lastExecution="{ item }"
31
- >
32
- <FSSpan
33
- font="text-overline"
34
- >
35
- {{ epochToLongTimeFormat(item.lastExecution) }}
36
- </FSSpan>
37
- </template>
38
- <template
39
- #item.nextExecution="{ item }"
40
- >
41
- <FSSpan
42
- font="text-overline"
43
- >
44
- {{ epochToLongTimeFormat(item.nextExecution) }}
45
- </FSSpan>
46
- </template>
47
- <template
48
- #item.createdAt="{ item }"
49
- >
50
- <FSSpan
51
- font="text-overline"
52
- >
53
- {{ epochToLongTimeFormat(item.createdAt) }}
54
- </FSSpan>
55
- </template>
56
- <template
57
- #item.userIds="{ item }"
58
- >
59
- <FSChipUserOrganisationsList
60
- :userOrganisationIds="item.userIds"
61
- :wrapped="false"
62
- />
63
- </template>
64
- </FSDataTable>
65
- </template>
66
-
67
- <script lang="ts">
68
- import _ from "lodash";
69
- import type { RouteLocation } from "vue-router";
70
- import { defineComponent, type PropType, watch } from "vue";
71
-
72
- import { useDateFormat } from "@dative-gpi/foundation-shared-services/composables";
73
-
74
- import { useReports } from "@dative-gpi/foundation-core-services/composables";
75
- import type { ReportFilters, ReportInfos } from "@dative-gpi/foundation-core-domain/models";
76
-
77
- import FSChipUserOrganisationsList from "../userOrganisations/FSChipUserOrganisationsList.vue";
78
-
79
-
80
- export default defineComponent({
81
- name: "FSBaseReportsList",
82
- components: {
83
- FSChipUserOrganisationsList
84
- },
85
- props: {
86
- tableCode: {
87
- type: String as PropType<string | null>,
88
- required: false,
89
- default: null
90
- },
91
- reportsFilters: {
92
- type: Object as PropType<ReportFilters>,
93
- required: false,
94
- default: null
95
- },
96
- editable: {
97
- type: Boolean,
98
- required: false,
99
- default: true
100
- },
101
- itemTo: {
102
- type: Function as PropType<(item: ReportInfos) => Partial<RouteLocation>>,
103
- required: false
104
- },
105
- singleSelect: {
106
- type: Boolean,
107
- required: false,
108
- default: false
109
- },
110
- modelValue: {
111
- type: Array as PropType<string[]>,
112
- default: () => [],
113
- required: false
114
- }
115
- },
116
- emits: ["update:modelValue"],
117
- setup(props) {
118
- const { epochToLongTimeFormat } = useDateFormat();
119
- const { getMany: fetchReports, fetching: fetchingReports, entities: reports } = useReports();
120
-
121
-
122
- watch(() => props.reportsFilters, (next, previous) => {
123
- if ((!next && !previous) || !_.isEqual(next, previous)) {
124
- fetchReports(props.reportsFilters);
125
- }
126
- }, { immediate: true });
127
-
128
- return {
129
- fetchingReports,
130
- reports,
131
- epochToLongTimeFormat
132
- };
133
- }
134
- });
135
- </script>