@dative-gpi/foundation-core-components 1.0.139 → 1.0.140-selectable2
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/autocompletes/FSAutocompleteChart.vue +0 -2
- package/components/autocompletes/FSAutocompleteDashboard.vue +0 -2
- package/components/autocompletes/FSAutocompleteRole.vue +0 -2
- package/components/customProperties/FSMetaField.vue +8 -8
- package/components/customProperties/FSMetaFormContent.vue +4 -3
- package/components/customProperties/helpers.ts +3 -113
- package/components/entities/FSEntityField.vue +3 -3
- package/components/explorers/FSBaseDevicesExplorer.vue +5 -3
- package/components/explorers/FSBaseFoldersExplorer.vue +10 -1
- package/components/lists/alerts/FSBaseAlertsList.vue +19 -5
- package/components/lists/authTokens/FSBaseAuthTokensList.vue +1 -0
- package/components/lists/chartOrganisationTypes/FSBaseChartOrganisationTypesList.vue +19 -5
- package/components/lists/chartOrganisations/FSBaseChartOrganisationsList.vue +31 -17
- package/components/lists/charts/FSBaseChartsList.vue +24 -8
- package/components/lists/dashboardOrganisationTypes/FSBaseDashboardOrganisationTypesList.vue +18 -1
- package/components/lists/dashboards/FSBaseDashboardsList.vue +20 -2
- package/components/lists/dashboards/FSSimpleDashboardsList.vue +13 -3
- package/components/lists/deviceOrganisations/FSBaseDeviceOrganisationsList.vue +4 -3
- package/components/lists/folders/FSBaseFoldersList.vue +1 -1
- package/components/lists/groups/FSBaseGroupsList.vue +4 -4
- package/components/lists/locations/FSBaseLocationsList.vue +3 -3
- package/components/lists/models/FSBaseModelsList.vue +3 -2
- package/components/lists/roleOrganisationTypes/FSBaseRoleOrganisationTypesList.vue +3 -3
- package/components/lists/roleOrganisations/FSBaseRoleOrganisationsList.vue +3 -3
- package/components/lists/scenarioOrganisationTypes/FSBaseScenarioOrganisationTypesList.vue +3 -3
- package/components/lists/scenarioOrganisations/FSBaseScenarioOrganisationsList.vue +3 -3
- package/components/lists/scenarios/FSBaseScenariosList.vue +1 -1
- package/components/lists/serviceAccountOrganisations/FSBaseServiceAccountOrganisationsList.vue +4 -4
- package/components/lists/serviceAccountRoleOrganisations/FSBaseServiceAccountRoleOrganisationsList.vue +3 -3
- package/components/lists/userOrganisations/FSBaseUserOrganisationsList.vue +4 -4
- package/components/tiles/FSDashboardOrganisationTile.vue +3 -3
- package/components/tiles/FSDashboardOrganisationTypeTile.vue +3 -3
- package/components/tiles/FSDashboardShallowTile.vue +3 -3
- package/components/tiles/FSDeviceOrganisationTile.vue +3 -3
- package/components/tiles/FSFolderTile.vue +3 -3
- package/components/tiles/FSGroupTile.vue +3 -3
- package/components/tiles/FSLocationTile.vue +4 -3
- package/components/tiles/FSServiceAccountOrganisationTile.vue +3 -3
- package/components/tiles/FSUserOrganisationTile.vue +3 -3
- package/package.json +7 -7
- package/components/lists/reports/FSBaseReportExecutionsList.vue +0 -137
- package/components/lists/reports/FSBaseReportsList.vue +0 -135
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
:loading="fetchingChartOrganisationTypes || fetchingChartOrganisations"
|
|
5
5
|
:headersOptions="headersOptions"
|
|
6
6
|
:items="charts"
|
|
7
|
+
:showSelect="$props.selectable"
|
|
8
|
+
:singleSelect="$props.singleSelect"
|
|
7
9
|
:tableCode="$props.tableCode"
|
|
8
10
|
:modelValue="$props.modelValue"
|
|
9
11
|
@update:modelValue="onSelect"
|
|
@@ -48,7 +50,7 @@
|
|
|
48
50
|
>
|
|
49
51
|
<FSTagGroup
|
|
50
52
|
variant="slide"
|
|
51
|
-
:
|
|
53
|
+
:disabled="true"
|
|
52
54
|
:tags="item.tags"
|
|
53
55
|
/>
|
|
54
56
|
</template>
|
|
@@ -70,7 +72,7 @@
|
|
|
70
72
|
#item.modelsLabels="{ item }"
|
|
71
73
|
>
|
|
72
74
|
<FSTagGroup
|
|
73
|
-
:
|
|
75
|
+
:disabled="true"
|
|
74
76
|
:tags="item.modelsLabels.map((d: any) => d.label)"
|
|
75
77
|
/>
|
|
76
78
|
</template>
|
|
@@ -78,14 +80,15 @@
|
|
|
78
80
|
#item.tile="{ item }"
|
|
79
81
|
>
|
|
80
82
|
<FSChartTileUI
|
|
81
|
-
variant="standard"
|
|
82
83
|
:label="item.label"
|
|
83
84
|
:categoryLabel="item.chartCategoryLabel"
|
|
84
85
|
:icon="item.icon"
|
|
85
86
|
:imageId="item.imageId"
|
|
86
87
|
:type="item.chartType"
|
|
87
|
-
:
|
|
88
|
-
|
|
88
|
+
:singleSelect="$props.singleSelect"
|
|
89
|
+
:selectable="$props.selectable"
|
|
90
|
+
:modelValue="isSelected(item.id)"
|
|
91
|
+
@update:modelValue="update(item.id)"
|
|
89
92
|
/>
|
|
90
93
|
</template>
|
|
91
94
|
</FSDataTable>
|
|
@@ -141,6 +144,16 @@ export default defineComponent({
|
|
|
141
144
|
type: Array as PropType<string[]>,
|
|
142
145
|
default: () => [],
|
|
143
146
|
required: false
|
|
147
|
+
},
|
|
148
|
+
selectable: {
|
|
149
|
+
type: Boolean,
|
|
150
|
+
required: false,
|
|
151
|
+
default: true
|
|
152
|
+
},
|
|
153
|
+
singleSelect: {
|
|
154
|
+
type: Boolean,
|
|
155
|
+
required: false,
|
|
156
|
+
default: false
|
|
144
157
|
}
|
|
145
158
|
},
|
|
146
159
|
emits: ["update", "update:modelValue", "update:scope"],
|
|
@@ -219,11 +232,14 @@ export default defineComponent({
|
|
|
219
232
|
}));
|
|
220
233
|
|
|
221
234
|
const update = (value : string) => {
|
|
222
|
-
const
|
|
223
|
-
if (
|
|
235
|
+
const isAlreadySelected = isSelected(value);
|
|
236
|
+
if (isAlreadySelected) {
|
|
224
237
|
onSelect(props.modelValue.filter(m => m != value));
|
|
225
238
|
}
|
|
226
|
-
else {
|
|
239
|
+
else if(props.singleSelect){
|
|
240
|
+
onSelect([value]);
|
|
241
|
+
}
|
|
242
|
+
else{
|
|
227
243
|
onSelect([...props.modelValue, value]);
|
|
228
244
|
}
|
|
229
245
|
}
|
package/components/lists/dashboardOrganisationTypes/FSBaseDashboardOrganisationTypesList.vue
CHANGED
|
@@ -6,6 +6,8 @@
|
|
|
6
6
|
:itemTo="$props.itemTo"
|
|
7
7
|
:tableCode="$props.tableCode"
|
|
8
8
|
:modelValue="$props.modelValue"
|
|
9
|
+
:showSelect="$props.selectable"
|
|
10
|
+
:singleSelect="$props.singleSelect"
|
|
9
11
|
@update:modelValue="$emit('update:modelValue', $event)"
|
|
10
12
|
v-bind="$attrs"
|
|
11
13
|
>
|
|
@@ -59,7 +61,7 @@
|
|
|
59
61
|
>
|
|
60
62
|
<FSTagGroup
|
|
61
63
|
variant="slide"
|
|
62
|
-
:
|
|
64
|
+
:showRemove="false"
|
|
63
65
|
:tags="item.tags"
|
|
64
66
|
/>
|
|
65
67
|
</template>
|
|
@@ -68,6 +70,8 @@
|
|
|
68
70
|
>
|
|
69
71
|
<FSDashboardOrganisationTypeTileUI
|
|
70
72
|
:bottomColor="item.colors"
|
|
73
|
+
:selectable="$props.selectable"
|
|
74
|
+
:singleSelect="$props.singleSelect"
|
|
71
75
|
:to="$props.itemTo && $props.itemTo(item)"
|
|
72
76
|
:modelValue="isSelected(item.id)"
|
|
73
77
|
@update:modelValue="toggleSelect(item)"
|
|
@@ -125,8 +129,21 @@ export default defineComponent({
|
|
|
125
129
|
type: Array as PropType<string[]>,
|
|
126
130
|
required: false,
|
|
127
131
|
default: () => []
|
|
132
|
+
},
|
|
133
|
+
selectable: {
|
|
134
|
+
type: Boolean,
|
|
135
|
+
required: false,
|
|
136
|
+
default: true
|
|
137
|
+
},
|
|
138
|
+
singleSelect: {
|
|
139
|
+
type: Boolean,
|
|
140
|
+
required: false,
|
|
141
|
+
default: false
|
|
128
142
|
}
|
|
129
143
|
},
|
|
144
|
+
emits: [
|
|
145
|
+
"update:modelValue"
|
|
146
|
+
],
|
|
130
147
|
setup(props) {
|
|
131
148
|
const { getMany: getDashboardOrganisationTypes, fetching: fetchingDashboardOrganisationTypes, entities: dashboardOrganisationTypes } = useDashboardOrganisationTypes();
|
|
132
149
|
const { fetch: fetchUserOrganisation, entity: userOrganisation } = useCurrentUserOrganisation();
|
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
:itemTo="$props.itemTo"
|
|
6
6
|
:loading="fetchingDashboardOrganisationTypes || fetchingDashboardOrganisations || fetchingDashboardShallows"
|
|
7
7
|
:tableCode="$props.tableCode"
|
|
8
|
+
:showSelect="$props.selectable"
|
|
9
|
+
:singleSelect="$props.singleSelect"
|
|
8
10
|
:modelValue="selecteds"
|
|
9
11
|
@update:modelValue="onSelect"
|
|
10
12
|
v-bind="$attrs"
|
|
@@ -44,7 +46,7 @@
|
|
|
44
46
|
>
|
|
45
47
|
<FSTagGroup
|
|
46
48
|
variant="slide"
|
|
47
|
-
:
|
|
49
|
+
:showRemove="false"
|
|
48
50
|
:tags="item.tags"
|
|
49
51
|
/>
|
|
50
52
|
</template>
|
|
@@ -54,6 +56,8 @@
|
|
|
54
56
|
<FSDashboardOrganisationTypeTileUI
|
|
55
57
|
v-if="item.dashboardType == DashboardType.OrganisationType"
|
|
56
58
|
:bottomColor="item.colors"
|
|
59
|
+
:selectable="$props.selectable"
|
|
60
|
+
:singleSelect="$props.singleSelect"
|
|
57
61
|
:to="$props.itemTo && $props.itemTo(item)"
|
|
58
62
|
:modelValue="isSelected(item.id)"
|
|
59
63
|
@update:modelValue="toggleSelect(item)"
|
|
@@ -62,6 +66,8 @@
|
|
|
62
66
|
<FSDashboardOrganisationTileUI
|
|
63
67
|
v-if="item.dashboardType == DashboardType.Organisation"
|
|
64
68
|
:bottomColor="item.colors"
|
|
69
|
+
:selectable="$props.selectable"
|
|
70
|
+
:singleSelect="$props.singleSelect"
|
|
65
71
|
:to="$props.itemTo && $props.itemTo(item)"
|
|
66
72
|
:modelValue="isSelected(item.id)"
|
|
67
73
|
@update:modelValue="toggleSelect(item)"
|
|
@@ -70,6 +76,8 @@
|
|
|
70
76
|
<FSDashboardShallowTileUI
|
|
71
77
|
v-if="item.dashboardType == DashboardType.Shallow"
|
|
72
78
|
:bottomColor="item.colors"
|
|
79
|
+
:selectable="$props.selectable"
|
|
80
|
+
:singleSelect="$props.singleSelect"
|
|
73
81
|
:modelValue="isSelected(item.id)"
|
|
74
82
|
@update:modelValue="toggleSelect(item)"
|
|
75
83
|
:to="$props.itemTo && $props.itemTo(item)"
|
|
@@ -138,7 +146,17 @@ export default defineComponent({
|
|
|
138
146
|
type: Array as PropType<string[]>,
|
|
139
147
|
default: () => [],
|
|
140
148
|
required: false
|
|
141
|
-
}
|
|
149
|
+
},
|
|
150
|
+
selectable: {
|
|
151
|
+
type: Boolean,
|
|
152
|
+
required: false,
|
|
153
|
+
default: true
|
|
154
|
+
},
|
|
155
|
+
singleSelect: {
|
|
156
|
+
type: Boolean,
|
|
157
|
+
required: false,
|
|
158
|
+
default: false
|
|
159
|
+
},
|
|
142
160
|
},
|
|
143
161
|
emits: ["update", "update:modelValue", "update:type"],
|
|
144
162
|
setup(props, { emit }) {
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
import { defineComponent, type PropType, watch, computed } from "vue";
|
|
11
11
|
|
|
12
12
|
import type { DashboardOrganisationFilters, DashboardOrganisationTypeFilters } from "@dative-gpi/foundation-core-domain/models";
|
|
13
|
-
import { useDashboardOrganisations, useDashboardOrganisationTypes } from "@dative-gpi/foundation-core-services/composables";
|
|
13
|
+
import { useDashboardOrganisations, useDashboardOrganisationTypes, useDashboardShallows } from "@dative-gpi/foundation-core-services/composables";
|
|
14
14
|
|
|
15
15
|
import FSSimpleList from "@dative-gpi/foundation-shared-components/components/lists/FSSimpleList.vue";
|
|
16
16
|
|
|
@@ -29,6 +29,11 @@ export default defineComponent({
|
|
|
29
29
|
type: Object as PropType<DashboardOrganisationTypeFilters>,
|
|
30
30
|
required: false,
|
|
31
31
|
default: () => ({})
|
|
32
|
+
},
|
|
33
|
+
dashboardShallowFilters: {
|
|
34
|
+
type: Object as PropType<DashboardOrganisationTypeFilters>,
|
|
35
|
+
required: false,
|
|
36
|
+
default: () => ({})
|
|
32
37
|
}
|
|
33
38
|
},
|
|
34
39
|
setup(props){
|
|
@@ -38,17 +43,22 @@ export default defineComponent({
|
|
|
38
43
|
const { entities: dashboardOrganisationTypes,
|
|
39
44
|
getMany: getManyDashboardOrganisationTypes,
|
|
40
45
|
fetching: fetchingDashboardOrganisationTypes } = useDashboardOrganisationTypes();
|
|
46
|
+
const { entities: dashboardShallows,
|
|
47
|
+
getMany: getManyDashboardShallows,
|
|
48
|
+
fetching: fetchingDashboardShallows } = useDashboardShallows();
|
|
41
49
|
|
|
42
50
|
const fetching = computed(() => fetchingDashboardOrganisations.value
|
|
43
|
-
|| fetchingDashboardOrganisationTypes.value
|
|
51
|
+
|| fetchingDashboardOrganisationTypes.value
|
|
52
|
+
|| fetchingDashboardShallows.value);
|
|
44
53
|
|
|
45
54
|
const dashboards = computed(() => {
|
|
46
|
-
return [...dashboardOrganisations.value, ...dashboardOrganisationTypes.value];
|
|
55
|
+
return [...dashboardOrganisations.value, ...dashboardOrganisationTypes.value, ...dashboardShallows.value];
|
|
47
56
|
});
|
|
48
57
|
|
|
49
58
|
const fetch = () => {
|
|
50
59
|
getManyDashboardOrganisations(props.dashboardOrganisationFilters);
|
|
51
60
|
getManyDashboardOrganisationTypes(props.dashboardOrganisationTypeFilters);
|
|
61
|
+
getManyDashboardShallows(props.dashboardShallowFilters);
|
|
52
62
|
}
|
|
53
63
|
|
|
54
64
|
watch(() => [props.dashboardOrganisationFilters, props.dashboardOrganisationTypeFilters], fetch, { immediate: true });
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
:loading="fetchingDeviceOrganisations"
|
|
5
5
|
:singleSelect="$props.singleSelect"
|
|
6
6
|
:headersOptions="headersOptions"
|
|
7
|
-
:showSelect="$props.
|
|
7
|
+
:showSelect="$props.selectable"
|
|
8
8
|
:tableCode="$props.tableCode"
|
|
9
9
|
:items="deviceOrganisations"
|
|
10
10
|
:itemTo="$props.itemTo"
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
>
|
|
69
69
|
<FSTagGroup
|
|
70
70
|
variant="slide"
|
|
71
|
-
:
|
|
71
|
+
:disabled="true"
|
|
72
72
|
:tags="item.tags"
|
|
73
73
|
/>
|
|
74
74
|
</template>
|
|
@@ -142,6 +142,7 @@
|
|
|
142
142
|
>
|
|
143
143
|
<FSDeviceOrganisationTileUI
|
|
144
144
|
:to="$props.itemTo && $props.itemTo(item)"
|
|
145
|
+
:selectable="$props.selectable"
|
|
145
146
|
:deviceConnectivity="item.connectivity"
|
|
146
147
|
:deviceStatuses="item.status.statuses"
|
|
147
148
|
:deviceWorstAlert="item.worstAlert"
|
|
@@ -219,7 +220,7 @@ export default defineComponent({
|
|
|
219
220
|
required: false,
|
|
220
221
|
default: null
|
|
221
222
|
},
|
|
222
|
-
|
|
223
|
+
selectable: {
|
|
223
224
|
type: Boolean,
|
|
224
225
|
required: false,
|
|
225
226
|
default: true
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
defaultMode="iterator"
|
|
4
4
|
:loading="fetchingGroups"
|
|
5
5
|
:items="groups"
|
|
6
|
-
:showSelect="$props.
|
|
6
|
+
:showSelect="$props.selectable"
|
|
7
7
|
:tableCode="$props.tableCode"
|
|
8
8
|
:modelValue="$props.modelValue"
|
|
9
9
|
@update:modelValue="$emit('update:modelValue', $event)"
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
>
|
|
49
49
|
<FSTagGroup
|
|
50
50
|
variant="slide"
|
|
51
|
-
:
|
|
51
|
+
:disabled="true"
|
|
52
52
|
:tags="item.tags"
|
|
53
53
|
/>
|
|
54
54
|
</template>
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
#item.tile="{ item, toggleSelect }"
|
|
57
57
|
>
|
|
58
58
|
<FSGroupTileUI
|
|
59
|
-
:
|
|
59
|
+
:selectable="$props.selectable"
|
|
60
60
|
:modelValue="isSelected(item.id)"
|
|
61
61
|
@update:modelValue="toggleSelect(item)"
|
|
62
62
|
v-bind="item"
|
|
@@ -101,7 +101,7 @@ export default defineComponent({
|
|
|
101
101
|
required: false,
|
|
102
102
|
default: null
|
|
103
103
|
},
|
|
104
|
-
|
|
104
|
+
selectable: {
|
|
105
105
|
type: Boolean,
|
|
106
106
|
required: false,
|
|
107
107
|
default: true
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
defaultMode="iterator"
|
|
4
4
|
:loading="fetchingLocations"
|
|
5
5
|
:items="locations"
|
|
6
|
-
:showSelect="$props.
|
|
6
|
+
:showSelect="$props.selectable"
|
|
7
7
|
:tableCode="tableCode"
|
|
8
8
|
:modelValue="$props.modelValue"
|
|
9
9
|
@update:modelValue="$emit('update:modelValue', $event)"
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
v-bind="item"
|
|
34
34
|
:bottomColor="item.colors"
|
|
35
35
|
:address="item.address.placeLabel"
|
|
36
|
-
:
|
|
36
|
+
:selectable="$props.selectable"
|
|
37
37
|
:singleSelect="singleSelect"
|
|
38
38
|
:modelValue="isSelected(item.id)"
|
|
39
39
|
:to="$props.itemTo && $props.itemTo(item)"
|
|
@@ -74,7 +74,7 @@ export default defineComponent({
|
|
|
74
74
|
required: false,
|
|
75
75
|
default: null
|
|
76
76
|
},
|
|
77
|
-
|
|
77
|
+
selectable: {
|
|
78
78
|
type: Boolean,
|
|
79
79
|
required: false,
|
|
80
80
|
default: true
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<FSDataTable
|
|
3
3
|
defaultMode="iterator"
|
|
4
4
|
:singleSelect="$props.singleSelect"
|
|
5
|
-
:showSelect="$props.
|
|
5
|
+
:showSelect="$props.selectable"
|
|
6
6
|
:tableCode="$props.tableCode"
|
|
7
7
|
:loading="fetchingModels"
|
|
8
8
|
:items="models"
|
|
@@ -63,6 +63,7 @@
|
|
|
63
63
|
>
|
|
64
64
|
<FSModelTileUI
|
|
65
65
|
:to="$props.itemTo && $props.itemTo(item)"
|
|
66
|
+
:selectable="$props.selectable"
|
|
66
67
|
:singleSelect="$props.singleSelect"
|
|
67
68
|
:imageId="item.imageId"
|
|
68
69
|
:label="item.label"
|
|
@@ -114,7 +115,7 @@ export default defineComponent({
|
|
|
114
115
|
type: Function as PropType<(item: ModelInfos) => Partial<RouteLocation>>,
|
|
115
116
|
required: false
|
|
116
117
|
},
|
|
117
|
-
|
|
118
|
+
selectable: {
|
|
118
119
|
type: Boolean,
|
|
119
120
|
required: false,
|
|
120
121
|
default: true
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
:items="roleOrganisationTypes"
|
|
4
4
|
:itemTo="$props.itemTo"
|
|
5
5
|
:loading="fetchingRoleOrganisations"
|
|
6
|
-
:showSelect="$props.
|
|
6
|
+
:showSelect="$props.selectable"
|
|
7
7
|
:tableCode="$props.tableCode"
|
|
8
8
|
:modelValue="$props.modelValue"
|
|
9
9
|
@update:modelValue="$emit('update:modelValue', $event)"
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
>
|
|
45
45
|
<FSTagGroup
|
|
46
46
|
variant="slide"
|
|
47
|
-
:
|
|
47
|
+
:disabled="true"
|
|
48
48
|
:tags="item.tags"
|
|
49
49
|
/>
|
|
50
50
|
</template>
|
|
@@ -91,7 +91,7 @@ export default defineComponent({
|
|
|
91
91
|
type: Function as PropType<(item: RoleOrganisationTypeInfos) => Partial<RouteLocation>>,
|
|
92
92
|
required: false
|
|
93
93
|
},
|
|
94
|
-
|
|
94
|
+
selectable: {
|
|
95
95
|
type: Boolean,
|
|
96
96
|
required: false,
|
|
97
97
|
default: true
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<FSDataTable
|
|
3
3
|
:loading="fetchingRoleOrganisations"
|
|
4
|
-
:showSelect="$props.
|
|
4
|
+
:showSelect="$props.selectable"
|
|
5
5
|
:tableCode="$props.tableCode"
|
|
6
6
|
:items="roleOrganisations"
|
|
7
7
|
:itemTo="$props.itemTo"
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
>
|
|
45
45
|
<FSTagGroup
|
|
46
46
|
variant="slide"
|
|
47
|
-
:
|
|
47
|
+
:disabled="true"
|
|
48
48
|
:tags="item.tags"
|
|
49
49
|
/>
|
|
50
50
|
</template>
|
|
@@ -91,7 +91,7 @@ export default defineComponent({
|
|
|
91
91
|
type: Function as PropType<(item: RoleOrganisationInfos) => Partial<RouteLocation>>,
|
|
92
92
|
required: false
|
|
93
93
|
},
|
|
94
|
-
|
|
94
|
+
selectable: {
|
|
95
95
|
type: Boolean,
|
|
96
96
|
required: false,
|
|
97
97
|
default: true
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
:items="scenarioOrganisationTypes"
|
|
4
4
|
:itemTo="$props.itemTo"
|
|
5
5
|
:loading="fetchingScenarioOrganisationTypes"
|
|
6
|
-
:showSelect="$props.
|
|
6
|
+
:showSelect="$props.selectable"
|
|
7
7
|
:tableCode="$props.tableCode"
|
|
8
8
|
:modelValue="$props.modelValue"
|
|
9
9
|
@update:modelValue="$emit('update:modelValue', $event)"
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
>
|
|
62
62
|
<FSTagGroup
|
|
63
63
|
variant="slide"
|
|
64
|
-
:
|
|
64
|
+
:disabled="true"
|
|
65
65
|
:tags="item.tags"
|
|
66
66
|
/>
|
|
67
67
|
</template>
|
|
@@ -110,7 +110,7 @@ export default defineComponent({
|
|
|
110
110
|
type: Function as PropType<(item: ScenarioOrganisationTypeInfos) => Partial<RouteLocation>>,
|
|
111
111
|
required: false
|
|
112
112
|
},
|
|
113
|
-
|
|
113
|
+
selectable: {
|
|
114
114
|
type: Boolean,
|
|
115
115
|
required: false,
|
|
116
116
|
default: true
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
:items="scenarioOrganisations"
|
|
4
4
|
:itemTo="$props.itemTo"
|
|
5
5
|
:loading="fetchingScenarioOrganisations"
|
|
6
|
-
:showSelect="$props.
|
|
6
|
+
:showSelect="$props.selectable"
|
|
7
7
|
:tableCode="$props.tableCode"
|
|
8
8
|
:modelValue="$props.modelValue"
|
|
9
9
|
:headersOptions="headersOptions"
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
>
|
|
51
51
|
<FSTagGroup
|
|
52
52
|
variant="slide"
|
|
53
|
-
:
|
|
53
|
+
:disabled="true"
|
|
54
54
|
:tags="item.tags"
|
|
55
55
|
/>
|
|
56
56
|
</template>
|
|
@@ -97,7 +97,7 @@ export default defineComponent({
|
|
|
97
97
|
type: Function as PropType<(item: ScenarioOrganisationInfos) => Partial<RouteLocation>>,
|
|
98
98
|
required: false
|
|
99
99
|
},
|
|
100
|
-
|
|
100
|
+
selectable: {
|
|
101
101
|
type: Boolean,
|
|
102
102
|
required: false,
|
|
103
103
|
default: true
|
package/components/lists/serviceAccountOrganisations/FSBaseServiceAccountOrganisationsList.vue
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
:items="serviceAccountOrganisations"
|
|
4
4
|
:itemTo="$props.itemTo"
|
|
5
5
|
:loading="fetchingServiceAccountOrganisations"
|
|
6
|
-
:showSelect="$props.
|
|
6
|
+
:showSelect="$props.selectable"
|
|
7
7
|
:tableCode="$props.tableCode"
|
|
8
8
|
:modelValue="$props.modelValue"
|
|
9
9
|
@update:modelValue="$emit('update:modelValue', $event)"
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
>
|
|
42
42
|
<FSTagGroup
|
|
43
43
|
variant="slide"
|
|
44
|
-
:
|
|
44
|
+
:disabled="true"
|
|
45
45
|
:tags="item.tags"
|
|
46
46
|
/>
|
|
47
47
|
</template>
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
>
|
|
69
69
|
<FSServiceAccountOrganisationTileUI
|
|
70
70
|
:to="$props.itemTo && $props.itemTo(item)"
|
|
71
|
-
:
|
|
71
|
+
:selectable="$props.selectable"
|
|
72
72
|
:modelValue="isSelected(item.id)"
|
|
73
73
|
@update:modelValue="toggleSelect(item)"
|
|
74
74
|
v-bind="item"
|
|
@@ -118,7 +118,7 @@ export default defineComponent({
|
|
|
118
118
|
type: Function as PropType<(item: ServiceAccountOrganisationInfos) => Partial<RouteLocation>>,
|
|
119
119
|
required: false
|
|
120
120
|
},
|
|
121
|
-
|
|
121
|
+
selectable: {
|
|
122
122
|
type: Boolean,
|
|
123
123
|
required: false,
|
|
124
124
|
default: true
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<FSDataTable
|
|
3
3
|
:loading="fetchingServiceAccountRoleOrganisations"
|
|
4
4
|
:items="serviceAccountRoleOrganisations"
|
|
5
|
-
:showSelect="$props.
|
|
5
|
+
:showSelect="$props.selectable"
|
|
6
6
|
:tableCode="$props.tableCode"
|
|
7
7
|
:itemTo="$props.itemTo"
|
|
8
8
|
:modelValue="$props.modelValue"
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
>
|
|
45
45
|
<FSTagGroup
|
|
46
46
|
variant="slide"
|
|
47
|
-
:
|
|
47
|
+
:disabled="true"
|
|
48
48
|
:tags="item.tags"
|
|
49
49
|
/>
|
|
50
50
|
</template>
|
|
@@ -91,7 +91,7 @@ export default defineComponent({
|
|
|
91
91
|
type: Function as PropType<(item: ServiceAccountRoleOrganisationInfos) => Partial<RouteLocation>>,
|
|
92
92
|
required: false
|
|
93
93
|
},
|
|
94
|
-
|
|
94
|
+
selectable: {
|
|
95
95
|
type: Boolean,
|
|
96
96
|
required: false,
|
|
97
97
|
default: true
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
:items="userOrganisations"
|
|
4
4
|
:itemTo="$props.itemTo"
|
|
5
5
|
:loading="fetchingUserOrganisations"
|
|
6
|
-
:showSelect="$props.
|
|
6
|
+
:showSelect="$props.selectable"
|
|
7
7
|
:tableCode="$props.tableCode"
|
|
8
8
|
:modelValue="$props.modelValue"
|
|
9
9
|
@update:modelValue="$emit('update:modelValue', $event)"
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
>
|
|
56
56
|
<FSTagGroup
|
|
57
57
|
variant="slide"
|
|
58
|
-
:
|
|
58
|
+
:disabled="true"
|
|
59
59
|
:tags="item.tags"
|
|
60
60
|
/>
|
|
61
61
|
</template>
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
>
|
|
83
83
|
<FSUserOrganisationTileUI
|
|
84
84
|
:to="$props.itemTo && $props.itemTo(item)"
|
|
85
|
-
:
|
|
85
|
+
:selectable="$props.selectable"
|
|
86
86
|
:modelValue="isSelected(item.id)"
|
|
87
87
|
@update:modelValue="toggleSelect(item)"
|
|
88
88
|
v-bind="item"
|
|
@@ -134,7 +134,7 @@ export default defineComponent({
|
|
|
134
134
|
type: Function as PropType<(item: UserOrganisationInfos) => Partial<RouteLocation>>,
|
|
135
135
|
required: false
|
|
136
136
|
},
|
|
137
|
-
|
|
137
|
+
selectable: {
|
|
138
138
|
type: Boolean,
|
|
139
139
|
required: false,
|
|
140
140
|
default: true
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<FSLoadTile
|
|
3
3
|
v-if="getting"
|
|
4
|
-
:
|
|
4
|
+
:selectable="$props.selectable"
|
|
5
5
|
:modelValue="$props.modelValue"
|
|
6
6
|
@update:modelValue="(value) => $emit('update:modelValue', value)"
|
|
7
7
|
/>
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
:icon="entity.icon"
|
|
12
12
|
:label="entity.label"
|
|
13
13
|
:imageId="entity.imageId"
|
|
14
|
-
:
|
|
14
|
+
:selectable="$props.selectable"
|
|
15
15
|
:bottomColor="entity.colors"
|
|
16
16
|
:modelValue="$props.modelValue"
|
|
17
17
|
@update:modelValue="(value) => $emit('update:modelValue', value)"
|
|
@@ -43,7 +43,7 @@ export default defineComponent({
|
|
|
43
43
|
required: false,
|
|
44
44
|
default: false
|
|
45
45
|
},
|
|
46
|
-
|
|
46
|
+
selectable: {
|
|
47
47
|
type: Boolean,
|
|
48
48
|
required: false,
|
|
49
49
|
default: true
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<FSLoadTile
|
|
3
3
|
v-if="getting"
|
|
4
|
-
:
|
|
4
|
+
:selectable="$props.selectable"
|
|
5
5
|
:modelValue="$props.modelValue"
|
|
6
6
|
@update:modelValue="(value) => $emit('update:modelValue', value)"
|
|
7
7
|
/>
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
:icon="entity.icon"
|
|
12
12
|
:label="entity.label"
|
|
13
13
|
:imageId="entity.imageId"
|
|
14
|
-
:
|
|
14
|
+
:selectable="$props.selectable"
|
|
15
15
|
:bottomColor="entity.colors"
|
|
16
16
|
:modelValue="$props.modelValue"
|
|
17
17
|
@update:modelValue="(value) => $emit('update:modelValue', value)"
|
|
@@ -43,7 +43,7 @@ export default defineComponent({
|
|
|
43
43
|
required: false,
|
|
44
44
|
default: false
|
|
45
45
|
},
|
|
46
|
-
|
|
46
|
+
selectable: {
|
|
47
47
|
type: Boolean,
|
|
48
48
|
required: false,
|
|
49
49
|
default: true
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<FSLoadTile
|
|
3
3
|
v-if="getting"
|
|
4
|
-
:
|
|
4
|
+
:selectable="$props.selectable"
|
|
5
5
|
:modelValue="$props.modelValue"
|
|
6
6
|
@update:modelValue="(value) => $emit('update:modelValue', value)"
|
|
7
7
|
/>
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
:code="entity.code"
|
|
12
12
|
:label="entity.label"
|
|
13
13
|
:imageId="entity.imageId"
|
|
14
|
-
:
|
|
14
|
+
:selectable="$props.selectable"
|
|
15
15
|
:bottomColor="entity.colors"
|
|
16
16
|
:modelValue="$props.modelValue"
|
|
17
17
|
@update:modelValue="(value) => $emit('update:modelValue', value)"
|
|
@@ -43,7 +43,7 @@ export default defineComponent({
|
|
|
43
43
|
required: false,
|
|
44
44
|
default: false
|
|
45
45
|
},
|
|
46
|
-
|
|
46
|
+
selectable: {
|
|
47
47
|
type: Boolean,
|
|
48
48
|
required: false,
|
|
49
49
|
default: true
|