@dative-gpi/foundation-core-components 1.0.79 → 1.0.80
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 +7 -1
- package/components/lists/charts/FSBaseChartsList.vue +2 -1
- package/components/lists/dashboardOrganisationTypes/FSBaseDashboardOrganisationTypesList.vue +4 -1
- package/components/lists/dashboards/FSBaseDashboardsList.vue +1 -0
- package/components/lists/deviceOrganisations/FSBaseDeviceOrganisationsList.vue +1 -0
- package/components/lists/folders/FSBaseFoldersList.vue +2 -2
- package/components/lists/groups/FSBaseGroupsList.vue +1 -0
- package/components/lists/locations/FSBaseLocationsList.vue +1 -0
- package/components/lists/models/FSBaseModelsList.vue +1 -0
- package/components/lists/serviceAccountOrganisations/FSBaseServiceAccountOrganisationsList.vue +1 -0
- package/components/lists/userOrganisations/FSBaseUserOrganisationsList.vue +1 -0
- package/package.json +7 -7
|
@@ -41,6 +41,11 @@ 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
50
|
type: String,
|
|
46
51
|
required: true
|
|
@@ -82,7 +87,8 @@ export default defineComponent({
|
|
|
82
87
|
onTableCodeChange(
|
|
83
88
|
getUserOrganisationTable,
|
|
84
89
|
getTable,
|
|
85
|
-
props.tableCode
|
|
90
|
+
props.tableCode,
|
|
91
|
+
props.defaultMode
|
|
86
92
|
);
|
|
87
93
|
}, { immediate: true });
|
|
88
94
|
|
|
@@ -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
|
|
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"
|
|
@@ -114,7 +116,7 @@ export default defineComponent({
|
|
|
114
116
|
},
|
|
115
117
|
},
|
|
116
118
|
setup(props) {
|
|
117
|
-
const { getMany: getDashboardOrganisationTypes, entities: dashboardOrganisationTypes } = useDashboardOrganisationTypes();
|
|
119
|
+
const { getMany: getDashboardOrganisationTypes, fetching: fetchingDashboardOrganisationTypes, entities: dashboardOrganisationTypes } = useDashboardOrganisationTypes();
|
|
118
120
|
const { fetch: fetchUserOrganisation, entity: userOrganisation } = useCurrentUserOrganisation();
|
|
119
121
|
const { get: fetchOrganisation, entity: organisation } = useOrganisation();
|
|
120
122
|
const { organisationId } = useAppOrganisationId();
|
|
@@ -154,6 +156,7 @@ export default defineComponent({
|
|
|
154
156
|
}, { immediate: true });
|
|
155
157
|
|
|
156
158
|
return {
|
|
159
|
+
fetchingDashboardOrganisationTypes,
|
|
157
160
|
userOrganisationMainDashboardId,
|
|
158
161
|
organisationMainDashboardId,
|
|
159
162
|
dashboardOrganisationTypes,
|
|
@@ -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"
|
|
@@ -86,7 +87,6 @@ export default defineComponent({
|
|
|
86
87
|
},
|
|
87
88
|
emits: ["update:modelValue"],
|
|
88
89
|
setup(props, { emit }) {
|
|
89
|
-
|
|
90
90
|
const { entities: folders, fetching: fetchingFolders, getMany: getManyFolders } = useFolders();
|
|
91
91
|
|
|
92
92
|
const onSelect = (values: string[]) => {
|
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.80",
|
|
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.80",
|
|
14
|
+
"@dative-gpi/foundation-core-services": "1.0.80",
|
|
15
|
+
"@dative-gpi/foundation-shared-components": "1.0.80",
|
|
16
|
+
"@dative-gpi/foundation-shared-domain": "1.0.80",
|
|
17
|
+
"@dative-gpi/foundation-shared-services": "1.0.80"
|
|
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": "4a15362451742764c98999b9eace312e162cd193"
|
|
30
30
|
}
|