@dative-gpi/foundation-core-components 1.0.79 → 1.0.81
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/lists/FSDataTable.vue +16 -14
- package/components/lists/alerts/FSBaseAlertsList.vue +12 -14
- package/components/lists/authTokens/FSBaseAuthTokensList.vue +5 -4
- package/components/lists/chartOrganisationTypes/FSBaseChartOrganisationTypesList.vue +9 -8
- package/components/lists/chartOrganisations/FSBaseChartOrganisationsList.vue +9 -8
- package/components/lists/charts/FSBaseChartsList.vue +10 -8
- package/components/lists/dashboardOrganisationTypes/FSBaseDashboardOrganisationTypesList.vue +10 -6
- package/components/lists/dashboards/FSBaseDashboardsList.vue +7 -5
- package/components/lists/dataCategories/FSBaseDataCategoriesList.vue +5 -5
- package/components/lists/dataDefinitions/FSBaseDataDefinitionsList.vue +5 -4
- package/components/lists/deviceOrganisations/FSBaseDeviceOrganisationsList.vue +4 -2
- package/components/lists/folders/FSBaseFoldersList.vue +11 -10
- package/components/lists/groups/FSBaseGroupsList.vue +4 -2
- package/components/lists/locations/FSBaseLocationsList.vue +10 -8
- package/components/lists/models/FSBaseModelsList.vue +4 -2
- package/components/lists/roleOrganisationTypes/FSBaseRoleOrganisationTypesList.vue +3 -2
- package/components/lists/roleOrganisations/FSBaseRoleOrganisationsList.vue +3 -2
- package/components/lists/scenarioOrganisationTypes/FSBaseScenarioOrganisationTypesList.vue +3 -2
- package/components/lists/scenarioOrganisations/FSBaseScenarioOrganisationsList.vue +3 -2
- package/components/lists/scenarios/FSBaseScenariosList.vue +6 -5
- package/components/lists/serviceAccountOrganisations/FSBaseServiceAccountOrganisationsList.vue +4 -2
- package/components/lists/serviceAccountRoleOrganisations/FSBaseServiceAccountRoleOrganisationsList.vue +3 -2
- package/components/lists/userOrganisations/FSBaseUserOrganisationsList.vue +4 -2
- package/package.json +7 -7
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<FSLoadDataTable
|
|
3
|
-
v-if="!initialized || gettingUserOrganisationTable"
|
|
3
|
+
v-if="($props.tableCode && !initialized) || gettingUserOrganisationTable"
|
|
4
4
|
/>
|
|
5
5
|
<FSDataTableUI
|
|
6
6
|
v-else
|
|
@@ -41,9 +41,15 @@ export default defineComponent({
|
|
|
41
41
|
FSDataTableUI
|
|
42
42
|
},
|
|
43
43
|
props: {
|
|
44
|
+
defaultMode: {
|
|
45
|
+
type: String as PropType<"table" | "iterator">,
|
|
46
|
+
required: false,
|
|
47
|
+
default: "table"
|
|
48
|
+
},
|
|
44
49
|
tableCode: {
|
|
45
|
-
type: String
|
|
46
|
-
required:
|
|
50
|
+
type: String as PropType<string | null>,
|
|
51
|
+
required: false,
|
|
52
|
+
default: null
|
|
47
53
|
},
|
|
48
54
|
debounceTime: {
|
|
49
55
|
type: Number,
|
|
@@ -63,7 +69,7 @@ export default defineComponent({
|
|
|
63
69
|
const { getTable, setTable } = useTables();
|
|
64
70
|
const { debounce, cancel } = useDebounce();
|
|
65
71
|
|
|
66
|
-
const computedTable = computed(() => computeTable(props.headersOptions));
|
|
72
|
+
const computedTable = computed(() => computeTable(props.headersOptions, props.defaultMode));
|
|
67
73
|
|
|
68
74
|
onUnmounted(() => {
|
|
69
75
|
cancel();
|
|
@@ -71,19 +77,15 @@ export default defineComponent({
|
|
|
71
77
|
});
|
|
72
78
|
|
|
73
79
|
const update = () => {
|
|
74
|
-
|
|
75
|
-
updateUserOrganisationTable,
|
|
76
|
-
|
|
77
|
-
props.tableCode
|
|
78
|
-
);
|
|
80
|
+
if (props.tableCode) {
|
|
81
|
+
updateTable(updateUserOrganisationTable, setTable, props.tableCode, props.defaultMode);
|
|
82
|
+
}
|
|
79
83
|
}
|
|
80
84
|
|
|
81
85
|
watch(() => props.tableCode, async (): Promise<void> => {
|
|
82
|
-
|
|
83
|
-
getUserOrganisationTable,
|
|
84
|
-
|
|
85
|
-
props.tableCode
|
|
86
|
-
);
|
|
86
|
+
if (props.tableCode) {
|
|
87
|
+
onTableCodeChange(getUserOrganisationTable, getTable, props.tableCode, props.defaultMode);
|
|
88
|
+
}
|
|
87
89
|
}, { immediate: true });
|
|
88
90
|
|
|
89
91
|
watch(() => table.value, () => {
|
|
@@ -36,16 +36,13 @@
|
|
|
36
36
|
<FSRow
|
|
37
37
|
align="center-right"
|
|
38
38
|
>
|
|
39
|
-
<
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
v-model:endDate="endDate"
|
|
47
|
-
/>
|
|
48
|
-
</FSRow>
|
|
39
|
+
<FSTermField
|
|
40
|
+
variant="default"
|
|
41
|
+
:editable="!innerNotTreatedOnly"
|
|
42
|
+
:hideHeader="true"
|
|
43
|
+
v-model:startDate="startDate"
|
|
44
|
+
v-model:endDate="endDate"
|
|
45
|
+
/>
|
|
49
46
|
</FSRow>
|
|
50
47
|
</template>
|
|
51
48
|
<template
|
|
@@ -261,6 +258,11 @@ export default defineComponent({
|
|
|
261
258
|
FSTermField,
|
|
262
259
|
},
|
|
263
260
|
props: {
|
|
261
|
+
tableCode: {
|
|
262
|
+
type: String as PropType<string | null>,
|
|
263
|
+
required: false,
|
|
264
|
+
default: null
|
|
265
|
+
},
|
|
264
266
|
alertFilters: {
|
|
265
267
|
type: Object as PropType<AlertFilters>,
|
|
266
268
|
required: false,
|
|
@@ -284,10 +286,6 @@ export default defineComponent({
|
|
|
284
286
|
required: false,
|
|
285
287
|
default: false
|
|
286
288
|
},
|
|
287
|
-
tableCode: {
|
|
288
|
-
type: String,
|
|
289
|
-
required: true
|
|
290
|
-
},
|
|
291
289
|
itemTo: {
|
|
292
290
|
type: Function as PropType<(item: AlertInfos) => Partial<RouteLocation>>,
|
|
293
291
|
required: false
|
|
@@ -48,14 +48,15 @@ export default defineComponent({
|
|
|
48
48
|
FSText
|
|
49
49
|
},
|
|
50
50
|
props: {
|
|
51
|
+
tableCode: {
|
|
52
|
+
type: String as PropType<string | null>,
|
|
53
|
+
required: false,
|
|
54
|
+
default: null
|
|
55
|
+
},
|
|
51
56
|
authTokensFilters: {
|
|
52
57
|
type: Object as PropType<AuthTokenFilters | null>,
|
|
53
58
|
required: false,
|
|
54
59
|
default: null
|
|
55
|
-
},
|
|
56
|
-
tableCode: {
|
|
57
|
-
type: String,
|
|
58
|
-
required: true
|
|
59
60
|
}
|
|
60
61
|
},
|
|
61
62
|
setup(props) {
|
|
@@ -101,10 +101,10 @@ export default defineComponent({
|
|
|
101
101
|
FSIcon
|
|
102
102
|
},
|
|
103
103
|
props: {
|
|
104
|
-
|
|
105
|
-
type:
|
|
106
|
-
|
|
107
|
-
|
|
104
|
+
tableCode: {
|
|
105
|
+
type: String as PropType<string | null>,
|
|
106
|
+
required: false,
|
|
107
|
+
default: null
|
|
108
108
|
},
|
|
109
109
|
chartOrganisationFilters: {
|
|
110
110
|
type: Object as PropType<ChartOrganisationFilters>,
|
|
@@ -116,13 +116,14 @@ export default defineComponent({
|
|
|
116
116
|
required: false,
|
|
117
117
|
default: PlotPer.None
|
|
118
118
|
},
|
|
119
|
-
tableCode: {
|
|
120
|
-
type: String,
|
|
121
|
-
required: true
|
|
122
|
-
},
|
|
123
119
|
itemTo: {
|
|
124
120
|
type: Function as PropType<(item: ChartOrganisationTypeInfos) => Partial<RouteLocation>>,
|
|
125
121
|
required: false
|
|
122
|
+
},
|
|
123
|
+
modelValue: {
|
|
124
|
+
type: Array as PropType<string[]>,
|
|
125
|
+
default: () => [],
|
|
126
|
+
required: false
|
|
126
127
|
}
|
|
127
128
|
},
|
|
128
129
|
emits: ["update:modelValue"],
|
|
@@ -100,10 +100,10 @@ export default defineComponent({
|
|
|
100
100
|
FSChartTileUI
|
|
101
101
|
},
|
|
102
102
|
props: {
|
|
103
|
-
|
|
104
|
-
type:
|
|
105
|
-
|
|
106
|
-
|
|
103
|
+
tableCode: {
|
|
104
|
+
type: String as PropType<string | null>,
|
|
105
|
+
required: false,
|
|
106
|
+
default: null
|
|
107
107
|
},
|
|
108
108
|
chartOrganisationFilters: {
|
|
109
109
|
type: Object as PropType<ChartOrganisationFilters>,
|
|
@@ -115,13 +115,14 @@ export default defineComponent({
|
|
|
115
115
|
required: false,
|
|
116
116
|
default: PlotPer.None
|
|
117
117
|
},
|
|
118
|
-
tableCode: {
|
|
119
|
-
type: String,
|
|
120
|
-
required: true
|
|
121
|
-
},
|
|
122
118
|
itemTo: {
|
|
123
119
|
type: Function as PropType<(item: ChartOrganisationInfos) => Partial<RouteLocation>>,
|
|
124
120
|
required: false
|
|
121
|
+
},
|
|
122
|
+
modelValue: {
|
|
123
|
+
type: Array as PropType<string[]>,
|
|
124
|
+
default: () => [],
|
|
125
|
+
required: false
|
|
125
126
|
}
|
|
126
127
|
},
|
|
127
128
|
emits: ["update:modelValue"],
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<FSDataTable
|
|
3
|
+
defaultMode="iterator"
|
|
3
4
|
:loading="fetchingChartOrganisationTypes || fetchingChartOrganisations"
|
|
4
5
|
:items="charts"
|
|
5
6
|
:tableCode="$props.tableCode"
|
|
@@ -77,7 +78,7 @@
|
|
|
77
78
|
import { defineComponent, type PropType, watch, computed } from "vue";
|
|
78
79
|
import _ from "lodash";
|
|
79
80
|
|
|
80
|
-
import {ColorEnum } from "@dative-gpi/foundation-shared-components/models";
|
|
81
|
+
import { ColorEnum } from "@dative-gpi/foundation-shared-components/models";
|
|
81
82
|
|
|
82
83
|
import type { ChartOrganisationFilters, ChartOrganisationTypeFilters } from "@dative-gpi/foundation-core-domain/models";
|
|
83
84
|
|
|
@@ -99,10 +100,10 @@ export default defineComponent({
|
|
|
99
100
|
FSIcon
|
|
100
101
|
},
|
|
101
102
|
props: {
|
|
102
|
-
|
|
103
|
-
type:
|
|
104
|
-
|
|
105
|
-
|
|
103
|
+
tableCode: {
|
|
104
|
+
type: String as PropType<string | null>,
|
|
105
|
+
required: false,
|
|
106
|
+
default: null
|
|
106
107
|
},
|
|
107
108
|
chartOrganisationFilters: {
|
|
108
109
|
type: Object as PropType<ChartOrganisationFilters>,
|
|
@@ -114,9 +115,10 @@ export default defineComponent({
|
|
|
114
115
|
required: false,
|
|
115
116
|
default: null
|
|
116
117
|
},
|
|
117
|
-
|
|
118
|
-
type:
|
|
119
|
-
|
|
118
|
+
modelValue: {
|
|
119
|
+
type: Array as PropType<string[]>,
|
|
120
|
+
default: () => [],
|
|
121
|
+
required: false
|
|
120
122
|
}
|
|
121
123
|
},
|
|
122
124
|
emits: ["update:modelValue", "update:scope"],
|
package/components/lists/dashboardOrganisationTypes/FSBaseDashboardOrganisationTypesList.vue
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<FSDataTable
|
|
3
|
+
defaultMode="iterator"
|
|
4
|
+
:loading="fetchingDashboardOrganisationTypes"
|
|
3
5
|
:items="dashboardOrganisationTypes"
|
|
4
6
|
:itemTo="$props.itemTo"
|
|
5
7
|
:tableCode="$props.tableCode"
|
|
@@ -94,6 +96,11 @@ export default defineComponent({
|
|
|
94
96
|
FSDashboardOrganisationTypeTileUI
|
|
95
97
|
},
|
|
96
98
|
props: {
|
|
99
|
+
tableCode: {
|
|
100
|
+
type: String as PropType<string | null>,
|
|
101
|
+
required: false,
|
|
102
|
+
default: null
|
|
103
|
+
},
|
|
97
104
|
dashboardOrganisationTypeFilters: {
|
|
98
105
|
type: Object as PropType<DashboardOrganisationTypeFilters>,
|
|
99
106
|
default: undefined,
|
|
@@ -107,14 +114,10 @@ export default defineComponent({
|
|
|
107
114
|
type: Array as PropType<string[]>,
|
|
108
115
|
required: false,
|
|
109
116
|
default: () => []
|
|
110
|
-
}
|
|
111
|
-
tableCode: {
|
|
112
|
-
type: String,
|
|
113
|
-
required: true
|
|
114
|
-
},
|
|
117
|
+
}
|
|
115
118
|
},
|
|
116
119
|
setup(props) {
|
|
117
|
-
const { getMany: getDashboardOrganisationTypes, entities: dashboardOrganisationTypes } = useDashboardOrganisationTypes();
|
|
120
|
+
const { getMany: getDashboardOrganisationTypes, fetching: fetchingDashboardOrganisationTypes, entities: dashboardOrganisationTypes } = useDashboardOrganisationTypes();
|
|
118
121
|
const { fetch: fetchUserOrganisation, entity: userOrganisation } = useCurrentUserOrganisation();
|
|
119
122
|
const { get: fetchOrganisation, entity: organisation } = useOrganisation();
|
|
120
123
|
const { organisationId } = useAppOrganisationId();
|
|
@@ -154,6 +157,7 @@ export default defineComponent({
|
|
|
154
157
|
}, { immediate: true });
|
|
155
158
|
|
|
156
159
|
return {
|
|
160
|
+
fetchingDashboardOrganisationTypes,
|
|
157
161
|
userOrganisationMainDashboardId,
|
|
158
162
|
organisationMainDashboardId,
|
|
159
163
|
dashboardOrganisationTypes,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<FSDataTable
|
|
3
|
+
defaultMode="iterator"
|
|
3
4
|
:items="items"
|
|
4
5
|
:itemTo="$props.itemTo"
|
|
5
6
|
:loading="fetchingDashboardOrganisationTypes || fetchingDashboardOrganisations || fetchingDashboardShallows"
|
|
@@ -101,6 +102,11 @@ export default defineComponent({
|
|
|
101
102
|
FSDashboardShallowTileUI
|
|
102
103
|
},
|
|
103
104
|
props: {
|
|
105
|
+
tableCode: {
|
|
106
|
+
type: String as PropType<string | null>,
|
|
107
|
+
required: false,
|
|
108
|
+
default: null
|
|
109
|
+
},
|
|
104
110
|
dashboardOrganisationTypeFetchFilter: {
|
|
105
111
|
type: Object as PropType<DashboardOrganisationTypeFilters>,
|
|
106
112
|
default: undefined,
|
|
@@ -120,15 +126,11 @@ export default defineComponent({
|
|
|
120
126
|
type: Function as PropType<(item: DashboardInfos) => Partial<RouteLocation>>,
|
|
121
127
|
required: false
|
|
122
128
|
},
|
|
123
|
-
tableCode: {
|
|
124
|
-
type: String,
|
|
125
|
-
required: true
|
|
126
|
-
},
|
|
127
129
|
modelValue: {
|
|
128
130
|
type: Array as PropType<string[]>,
|
|
129
131
|
default: () => [],
|
|
130
132
|
required: false
|
|
131
|
-
}
|
|
133
|
+
}
|
|
132
134
|
},
|
|
133
135
|
emits: ["update:modelValue", "update:type"],
|
|
134
136
|
setup(props, { emit }) {
|
|
@@ -20,7 +20,6 @@
|
|
|
20
20
|
>
|
|
21
21
|
<FSDataTable
|
|
22
22
|
:loading="fetchingDataCategories"
|
|
23
|
-
:disableIterator="true"
|
|
24
23
|
:items="dataCategories"
|
|
25
24
|
:modelValue="$props.modelValue"
|
|
26
25
|
:showSearch="false"
|
|
@@ -109,6 +108,11 @@ export default defineComponent({
|
|
|
109
108
|
FSIcon
|
|
110
109
|
},
|
|
111
110
|
props: {
|
|
111
|
+
tableCode: {
|
|
112
|
+
type: String as PropType<string | null>,
|
|
113
|
+
required: false,
|
|
114
|
+
default: null
|
|
115
|
+
},
|
|
112
116
|
dataCategoryFilters: {
|
|
113
117
|
type: Object as PropType<DataCategoryFilters>,
|
|
114
118
|
required: false,
|
|
@@ -118,10 +122,6 @@ export default defineComponent({
|
|
|
118
122
|
type: Array as PropType<string[]>,
|
|
119
123
|
default: () => [],
|
|
120
124
|
required: false
|
|
121
|
-
},
|
|
122
|
-
tableCode: {
|
|
123
|
-
type: String,
|
|
124
|
-
required: true
|
|
125
125
|
}
|
|
126
126
|
},
|
|
127
127
|
emits: ["update:modelValue"],
|
|
@@ -88,6 +88,11 @@ export default defineComponent({
|
|
|
88
88
|
FSRow,
|
|
89
89
|
},
|
|
90
90
|
props: {
|
|
91
|
+
tableCode: {
|
|
92
|
+
type: String as PropType<string | null>,
|
|
93
|
+
required: false,
|
|
94
|
+
default: null
|
|
95
|
+
},
|
|
91
96
|
dataDefinitionFilters: {
|
|
92
97
|
type: Object as PropType<DataDefinitionFilters>,
|
|
93
98
|
required: false,
|
|
@@ -97,10 +102,6 @@ export default defineComponent({
|
|
|
97
102
|
type: Array as PropType<string[]>,
|
|
98
103
|
default: () => [],
|
|
99
104
|
required: false
|
|
100
|
-
},
|
|
101
|
-
tableCode: {
|
|
102
|
-
type: String,
|
|
103
|
-
required: true
|
|
104
105
|
}
|
|
105
106
|
},
|
|
106
107
|
emits: ["update:modelValue"],
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<FSDataTable
|
|
3
|
+
defaultMode="iterator"
|
|
3
4
|
:loading="fetchingDeviceOrganisations"
|
|
4
5
|
:singleSelect="$props.singleSelect"
|
|
5
6
|
:headersOptions="headersOptions"
|
|
@@ -208,8 +209,9 @@ export default defineComponent({
|
|
|
208
209
|
},
|
|
209
210
|
props: {
|
|
210
211
|
tableCode: {
|
|
211
|
-
type: String
|
|
212
|
-
required:
|
|
212
|
+
type: String as PropType<string | null>,
|
|
213
|
+
required: false,
|
|
214
|
+
default: null
|
|
213
215
|
},
|
|
214
216
|
deviceOrganisationFilters: {
|
|
215
217
|
type: Object as PropType<DeviceOrganisationFilters>,
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<FSDataTable
|
|
3
|
+
defaultMode="iterator"
|
|
3
4
|
:items="folders"
|
|
4
|
-
:
|
|
5
|
+
:itemTo="$props.itemTo"
|
|
5
6
|
:loading="fetchingFolders"
|
|
6
7
|
:tableCode="$props.tableCode"
|
|
7
8
|
:modelValue="$props.modelValue"
|
|
@@ -65,28 +66,28 @@ export default defineComponent({
|
|
|
65
66
|
FSFolderTileUI
|
|
66
67
|
},
|
|
67
68
|
props: {
|
|
69
|
+
tableCode: {
|
|
70
|
+
type: String as PropType<string | null>,
|
|
71
|
+
required: false,
|
|
72
|
+
default: null
|
|
73
|
+
},
|
|
68
74
|
foldersFilters: {
|
|
69
75
|
type: Object as PropType<FolderFilters>,
|
|
70
76
|
default: undefined,
|
|
71
77
|
required: false
|
|
72
78
|
},
|
|
73
|
-
modelValue: {
|
|
74
|
-
type: Array as PropType<string[]>,
|
|
75
|
-
required: false,
|
|
76
|
-
default: () => []
|
|
77
|
-
},
|
|
78
79
|
itemTo: {
|
|
79
80
|
type: Function as PropType<(item: DashboardInfos) => Partial<RouteLocation>>,
|
|
80
81
|
required: false
|
|
81
82
|
},
|
|
82
|
-
|
|
83
|
-
type:
|
|
84
|
-
required:
|
|
83
|
+
modelValue: {
|
|
84
|
+
type: Array as PropType<string[]>,
|
|
85
|
+
required: false,
|
|
86
|
+
default: () => []
|
|
85
87
|
}
|
|
86
88
|
},
|
|
87
89
|
emits: ["update:modelValue"],
|
|
88
90
|
setup(props, { emit }) {
|
|
89
|
-
|
|
90
91
|
const { entities: folders, fetching: fetchingFolders, getMany: getManyFolders } = useFolders();
|
|
91
92
|
|
|
92
93
|
const onSelect = (values: string[]) => {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<FSDataTable
|
|
3
|
+
defaultMode="iterator"
|
|
3
4
|
:loading="fetchingGroups"
|
|
4
5
|
:items="groups"
|
|
5
6
|
:showSelect="$props.editable"
|
|
@@ -90,8 +91,9 @@ export default defineComponent({
|
|
|
90
91
|
},
|
|
91
92
|
props: {
|
|
92
93
|
tableCode: {
|
|
93
|
-
type: String
|
|
94
|
-
required:
|
|
94
|
+
type: String as PropType<string | null>,
|
|
95
|
+
required: false,
|
|
96
|
+
default: null
|
|
95
97
|
},
|
|
96
98
|
groupsFilters: {
|
|
97
99
|
type: Object as PropType<GroupFilters>,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<FSDataTable
|
|
3
|
+
defaultMode="iterator"
|
|
3
4
|
:loading="fetchingLocations"
|
|
4
5
|
:items="locations"
|
|
5
6
|
:showSelect="$props.editable"
|
|
@@ -62,6 +63,11 @@ export default defineComponent({
|
|
|
62
63
|
FSIcon
|
|
63
64
|
},
|
|
64
65
|
props: {
|
|
66
|
+
tableCode: {
|
|
67
|
+
type: String as PropType<string | null>,
|
|
68
|
+
required: false,
|
|
69
|
+
default: null
|
|
70
|
+
},
|
|
65
71
|
locationsFilters: {
|
|
66
72
|
type: Object as PropType<LocationFilters>,
|
|
67
73
|
required: false,
|
|
@@ -72,11 +78,6 @@ export default defineComponent({
|
|
|
72
78
|
required: false,
|
|
73
79
|
default: true
|
|
74
80
|
},
|
|
75
|
-
modelValue: {
|
|
76
|
-
type: Array as PropType<string[]>,
|
|
77
|
-
default: () => [],
|
|
78
|
-
required: false
|
|
79
|
-
},
|
|
80
81
|
itemTo: {
|
|
81
82
|
type: Function as PropType<(item: LocationInfos) => Partial<RouteLocation>>,
|
|
82
83
|
required: false
|
|
@@ -86,9 +87,10 @@ export default defineComponent({
|
|
|
86
87
|
required: false,
|
|
87
88
|
default: false
|
|
88
89
|
},
|
|
89
|
-
|
|
90
|
-
type:
|
|
91
|
-
|
|
90
|
+
modelValue: {
|
|
91
|
+
type: Array as PropType<string[]>,
|
|
92
|
+
default: () => [],
|
|
93
|
+
required: false
|
|
92
94
|
}
|
|
93
95
|
},
|
|
94
96
|
emits: ["update:modelValue"],
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<FSDataTable
|
|
3
|
+
defaultMode="iterator"
|
|
3
4
|
:singleSelect="$props.singleSelect"
|
|
4
5
|
:showSelect="$props.editable"
|
|
5
6
|
:tableCode="$props.tableCode"
|
|
@@ -99,8 +100,9 @@ export default defineComponent({
|
|
|
99
100
|
},
|
|
100
101
|
props: {
|
|
101
102
|
tableCode: {
|
|
102
|
-
type: String
|
|
103
|
-
required:
|
|
103
|
+
type: String as PropType<string | null>,
|
|
104
|
+
required: false,
|
|
105
|
+
default: null
|
|
104
106
|
},
|
|
105
107
|
modelsFilters: {
|
|
106
108
|
type: Object as PropType<ModelFilters>,
|
|
@@ -78,8 +78,9 @@ export default defineComponent({
|
|
|
78
78
|
},
|
|
79
79
|
props: {
|
|
80
80
|
tableCode: {
|
|
81
|
-
type: String
|
|
82
|
-
required:
|
|
81
|
+
type: String as PropType<string | null>,
|
|
82
|
+
required: false,
|
|
83
|
+
default: null
|
|
83
84
|
},
|
|
84
85
|
roleOrganisationTypesFilters: {
|
|
85
86
|
type: Object as PropType<RoleOrganisationTypeFilters | null>,
|
|
@@ -78,8 +78,9 @@ export default defineComponent({
|
|
|
78
78
|
},
|
|
79
79
|
props: {
|
|
80
80
|
tableCode: {
|
|
81
|
-
type: String
|
|
82
|
-
required:
|
|
81
|
+
type: String as PropType<string | null>,
|
|
82
|
+
required: false,
|
|
83
|
+
default: null
|
|
83
84
|
},
|
|
84
85
|
roleOrganisationsFilters: {
|
|
85
86
|
type: Object as PropType<RoleOrganisationFilters | null>,
|
|
@@ -73,8 +73,9 @@ export default defineComponent({
|
|
|
73
73
|
},
|
|
74
74
|
props: {
|
|
75
75
|
tableCode: {
|
|
76
|
-
type: String
|
|
77
|
-
required:
|
|
76
|
+
type: String as PropType<string | null>,
|
|
77
|
+
required: false,
|
|
78
|
+
default: null
|
|
78
79
|
},
|
|
79
80
|
scenarioOrganisationTypeFilters: {
|
|
80
81
|
type: Object as PropType<ScenarioOrganisationTypeFilters>,
|
|
@@ -60,8 +60,9 @@ export default defineComponent({
|
|
|
60
60
|
},
|
|
61
61
|
props: {
|
|
62
62
|
tableCode: {
|
|
63
|
-
type: String
|
|
64
|
-
required:
|
|
63
|
+
type: String as PropType<string | null>,
|
|
64
|
+
required: false,
|
|
65
|
+
default: null
|
|
65
66
|
},
|
|
66
67
|
scenarioOrganisationFilters: {
|
|
67
68
|
type: Object as PropType<ScenarioOrganisationFilters>,
|
|
@@ -45,7 +45,7 @@ import _ from "lodash";
|
|
|
45
45
|
|
|
46
46
|
import { useTranslations } from "@dative-gpi/bones-ui";
|
|
47
47
|
|
|
48
|
-
import {ColorEnum } from "@dative-gpi/foundation-shared-components/models";
|
|
48
|
+
import { ColorEnum } from "@dative-gpi/foundation-shared-components/models";
|
|
49
49
|
|
|
50
50
|
import type { ScenarioOrganisationFilters, ScenarioOrganisationTypeFilters } from "@dative-gpi/foundation-core-domain/models";
|
|
51
51
|
|
|
@@ -64,8 +64,9 @@ export default defineComponent({
|
|
|
64
64
|
},
|
|
65
65
|
props: {
|
|
66
66
|
tableCode: {
|
|
67
|
-
type: String
|
|
68
|
-
required:
|
|
67
|
+
type: String as PropType<string | null>,
|
|
68
|
+
required: false,
|
|
69
|
+
default: null
|
|
69
70
|
},
|
|
70
71
|
scenarioOrganisationFilters: {
|
|
71
72
|
type: Object as PropType<ScenarioOrganisationFilters>,
|
|
@@ -111,12 +112,12 @@ export default defineComponent({
|
|
|
111
112
|
sortable: true
|
|
112
113
|
},
|
|
113
114
|
{
|
|
114
|
-
text: $tr("entity.scenario.
|
|
115
|
+
text: $tr("entity.scenario.model-label", "Model label"),
|
|
115
116
|
value: "modelLabel",
|
|
116
117
|
sortable: true
|
|
117
118
|
},
|
|
118
119
|
{
|
|
119
|
-
text: $tr("entity.scenario.
|
|
120
|
+
text: $tr("entity.scenario.data-category-label", "Data category label"),
|
|
120
121
|
value: "dataCategoryLabel",
|
|
121
122
|
sortable: true
|
|
122
123
|
},
|
package/components/lists/serviceAccountOrganisations/FSBaseServiceAccountOrganisationsList.vue
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<FSDataTable
|
|
3
|
+
defaultMode="iterator"
|
|
3
4
|
:items="serviceAccountOrganisations"
|
|
4
5
|
:itemTo="$props.itemTo"
|
|
5
6
|
:loading="fetchingServiceAccountOrganisations"
|
|
@@ -104,8 +105,9 @@ export default defineComponent({
|
|
|
104
105
|
},
|
|
105
106
|
props: {
|
|
106
107
|
tableCode: {
|
|
107
|
-
type: String
|
|
108
|
-
required:
|
|
108
|
+
type: String as PropType<string | null>,
|
|
109
|
+
required: false,
|
|
110
|
+
default: null
|
|
109
111
|
},
|
|
110
112
|
serviceAccountOrganisationsFilters: {
|
|
111
113
|
type: Object as PropType<ServiceAccountOrganisationFilters | null>,
|
|
@@ -78,8 +78,9 @@ export default defineComponent({
|
|
|
78
78
|
},
|
|
79
79
|
props: {
|
|
80
80
|
tableCode: {
|
|
81
|
-
type: String
|
|
82
|
-
required:
|
|
81
|
+
type: String as PropType<string | null>,
|
|
82
|
+
required: false,
|
|
83
|
+
default: null
|
|
83
84
|
},
|
|
84
85
|
serviceAccountRoleOrganisationsFilters: {
|
|
85
86
|
type: Object as PropType<ServiceAccountRoleOrganisationFilters | null>,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<FSDataTable
|
|
3
|
+
defaultMode="iterator"
|
|
3
4
|
:items="userOrganisations"
|
|
4
5
|
:itemTo="$props.itemTo"
|
|
5
6
|
:loading="fetchingUserOrganisations"
|
|
@@ -120,8 +121,9 @@ export default defineComponent({
|
|
|
120
121
|
},
|
|
121
122
|
props: {
|
|
122
123
|
tableCode: {
|
|
123
|
-
type: String
|
|
124
|
-
required:
|
|
124
|
+
type: String as PropType<string | null>,
|
|
125
|
+
required: false,
|
|
126
|
+
default: null
|
|
125
127
|
},
|
|
126
128
|
userOrganisationsFilters: {
|
|
127
129
|
type: Object as PropType<UserOrganisationFilters | null>,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dative-gpi/foundation-core-components",
|
|
3
3
|
"sideEffects": false,
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.81",
|
|
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-core-domain": "1.0.
|
|
14
|
-
"@dative-gpi/foundation-core-services": "1.0.
|
|
15
|
-
"@dative-gpi/foundation-shared-components": "1.0.
|
|
16
|
-
"@dative-gpi/foundation-shared-domain": "1.0.
|
|
17
|
-
"@dative-gpi/foundation-shared-services": "1.0.
|
|
13
|
+
"@dative-gpi/foundation-core-domain": "1.0.81",
|
|
14
|
+
"@dative-gpi/foundation-core-services": "1.0.81",
|
|
15
|
+
"@dative-gpi/foundation-shared-components": "1.0.81",
|
|
16
|
+
"@dative-gpi/foundation-shared-domain": "1.0.81",
|
|
17
|
+
"@dative-gpi/foundation-shared-services": "1.0.81"
|
|
18
18
|
},
|
|
19
19
|
"peerDependencies": {
|
|
20
20
|
"@dative-gpi/bones-ui": "^1.0.0",
|
|
@@ -26,5 +26,5 @@
|
|
|
26
26
|
"sass": "1.71.1",
|
|
27
27
|
"sass-loader": "13.3.2"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "6cac3b3d9a0036419fad35a4745381ee28d0429c"
|
|
30
30
|
}
|