@dative-gpi/foundation-core-components 0.0.126 → 0.0.128
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 +21 -21
- package/package.json +7 -7
- package/utils/users.ts +1 -1
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
<script lang="ts">
|
|
34
34
|
import { PropType, computed, defineComponent, onUnmounted, ref, watch } from "vue";
|
|
35
35
|
|
|
36
|
-
import { useUserOrganisationTable, useUpdateUserOrganisationTable } from "@dative-gpi/foundation-core-services/composables";
|
|
37
36
|
import { FSDataTable, FSDataTableColumn, FSDataTableFilter, FSDataTableOrder } from "@dative-gpi/foundation-shared-components/models";
|
|
37
|
+
import { useUserOrganisationTable, useUpdateUserOrganisationTable } from "@dative-gpi/foundation-core-services/composables";
|
|
38
38
|
import { useDebounce, useTables } from "@dative-gpi/foundation-shared-components/composables";
|
|
39
39
|
|
|
40
40
|
import FSLoadDataTable from "@dative-gpi/foundation-shared-components/components/lists/FSLoadDataTable.vue";
|
|
@@ -95,22 +95,26 @@ export default defineComponent({
|
|
|
95
95
|
})
|
|
96
96
|
});
|
|
97
97
|
|
|
98
|
-
const reset = (): void => {
|
|
99
|
-
|
|
100
|
-
|
|
98
|
+
const reset = async (): Promise<void> => {
|
|
99
|
+
const composableTable = getTable(props.tableCode);
|
|
100
|
+
if (composableTable) {
|
|
101
|
+
table.value = composableTable;
|
|
101
102
|
}
|
|
102
|
-
else
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
103
|
+
else {
|
|
104
|
+
await getUserOrganisationTable(props.tableCode);
|
|
105
|
+
if (userOrganisationTable.value) {
|
|
106
|
+
table.value = {
|
|
107
|
+
headers: userOrganisationTable.value.columns,
|
|
108
|
+
sortBy: {
|
|
109
|
+
key: userOrganisationTable.value.sortByKey,
|
|
110
|
+
order: userOrganisationTable.value.sortByOrder
|
|
111
|
+
},
|
|
112
|
+
mode: userOrganisationTable.value.mode,
|
|
113
|
+
rowsPerPage: userOrganisationTable.value.rowsPerPage,
|
|
114
|
+
filters: {},
|
|
115
|
+
page: 1
|
|
116
|
+
};
|
|
117
|
+
}
|
|
114
118
|
}
|
|
115
119
|
};
|
|
116
120
|
|
|
@@ -180,14 +184,10 @@ export default defineComponent({
|
|
|
180
184
|
|
|
181
185
|
watch(() => props.tableCode, () => {
|
|
182
186
|
if (props.tableCode) {
|
|
183
|
-
|
|
187
|
+
reset();
|
|
184
188
|
}
|
|
185
189
|
}, { immediate: true });
|
|
186
190
|
|
|
187
|
-
watch(userOrganisationTable, () => {
|
|
188
|
-
reset();
|
|
189
|
-
});
|
|
190
|
-
|
|
191
191
|
return {
|
|
192
192
|
gettingUserOrganisationTable,
|
|
193
193
|
headers,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dative-gpi/foundation-core-components",
|
|
3
3
|
"sideEffects": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.128",
|
|
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": "0.0.
|
|
14
|
-
"@dative-gpi/foundation-core-services": "0.0.
|
|
15
|
-
"@dative-gpi/foundation-shared-components": "0.0.
|
|
16
|
-
"@dative-gpi/foundation-shared-domain": "0.0.
|
|
17
|
-
"@dative-gpi/foundation-shared-services": "0.0.
|
|
13
|
+
"@dative-gpi/foundation-core-domain": "0.0.128",
|
|
14
|
+
"@dative-gpi/foundation-core-services": "0.0.128",
|
|
15
|
+
"@dative-gpi/foundation-shared-components": "0.0.128",
|
|
16
|
+
"@dative-gpi/foundation-shared-domain": "0.0.128",
|
|
17
|
+
"@dative-gpi/foundation-shared-services": "0.0.128",
|
|
18
18
|
"color": "^4.2.3",
|
|
19
19
|
"vue": "^3.4.23",
|
|
20
20
|
"vuedraggable": "^4.1.0"
|
|
@@ -24,5 +24,5 @@
|
|
|
24
24
|
"sass": "^1.69.5",
|
|
25
25
|
"sass-loader": "^13.3.2"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "29d087178fe21c8c415df60c4466755789860cbb"
|
|
28
28
|
}
|
package/utils/users.ts
CHANGED
|
@@ -19,7 +19,7 @@ export const userTypeIcon = (type: UserType): string => {
|
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
21
|
|
|
22
|
-
export const
|
|
22
|
+
export const userValidityLabel = (validity: UserValidityState): string => {
|
|
23
23
|
switch (validity) {
|
|
24
24
|
case UserValidityState.InvitationNotSent: return $tr("ui.user-validity.invitation-not-sent", "Invitation not sent");
|
|
25
25
|
case UserValidityState.InvitationSent: return $tr("ui.user-validity.invitation-sent", "Invitation sent");
|