@dative-gpi/foundation-core-components 1.0.57 → 1.0.58-groupings
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 +15 -8
- package/components/autocompletes/FSAutocompleteDashboard.vue +14 -6
- package/components/autocompletes/FSAutocompleteDashboardOrganisation.vue +7 -1
- package/components/autocompletes/FSAutocompleteDataCategory.vue +11 -5
- package/components/autocompletes/FSAutocompleteDataDefinition.vue +7 -1
- package/components/autocompletes/FSAutocompleteGroup.vue +7 -1
- package/components/autocompletes/FSAutocompleteLocation.vue +6 -0
- package/components/autocompletes/FSAutocompleteManufacturer.vue +8 -0
- package/components/autocompletes/FSAutocompleteModel.vue +9 -1
- package/components/autocompletes/FSAutocompleteOrganisationType.vue +7 -1
- package/components/autocompletes/FSAutocompleteRole.vue +14 -6
- package/components/autocompletes/FSAutocompleteServiceAccountRoleOrganisation.vue +7 -1
- package/components/autocompletes/FSAutocompleteUserOrganisation.vue +9 -1
- package/components/customProperties/FSMetaField.vue +35 -40
- package/components/customProperties/FSMetaFormContent.vue +4 -3
- package/components/customProperties/FSMetaHistory.vue +2 -2
- package/components/customProperties/FSMetaValue.vue +63 -31
- package/components/customProperties/helpers.ts +57 -165
- package/components/entities/FSBaseEntitiesList.vue +14 -4
- package/components/entities/FSDialogSelectEntities.vue +28 -106
- package/components/entities/FSEntityField.vue +75 -14
- package/components/entities/FSSelectEntitiesList.vue +225 -0
- package/components/explorers/FSBaseDevicesExplorer.vue +312 -0
- package/components/explorers/FSBaseFoldersExplorer.vue +286 -0
- package/components/lists/FSDataTable.vue +23 -21
- package/components/lists/alerts/FSBaseAlertsList.vue +95 -97
- package/components/lists/alerts/FSButtonAcknowledgeAlert.vue +4 -4
- package/components/lists/authTokens/FSBaseAuthTokensList.vue +6 -4
- package/components/lists/chartOrganisationTypes/FSBaseChartOrganisationTypesList.vue +103 -38
- package/components/lists/chartOrganisations/FSBaseChartOrganisationsList.vue +104 -39
- package/components/lists/charts/FSBaseChartsList.vue +147 -66
- package/components/lists/comments/FSBaseCommentsList.vue +39 -23
- package/components/lists/connectivityScenarios/FSBaseConnectivityScenariosList.vue +128 -0
- package/components/lists/dashboardOrganisationTypes/FSBaseDashboardOrganisationTypesList.vue +39 -7
- package/components/lists/dashboards/FSBaseDashboardsList.vue +44 -13
- package/components/lists/dashboards/FSSimpleDashboardsList.vue +33 -7
- package/components/lists/dataCategories/FSBaseDataCategoriesList.vue +6 -5
- package/components/lists/dataDefinitions/FSBaseDataDefinitionsList.vue +6 -4
- package/components/lists/deviceOrganisations/FSBaseDeviceOrganisationsList.vue +179 -61
- package/components/lists/folders/FSBaseFoldersList.vue +37 -146
- package/components/lists/groupings/FSBaseGroupingsList.vue +117 -0
- package/components/lists/groups/FSBaseGroupsList.vue +24 -7
- package/components/lists/locations/FSBaseLocationsList.vue +52 -13
- package/components/lists/models/FSBaseModelsList.vue +45 -15
- package/components/lists/roleOrganisationTypes/FSBaseRoleOrganisationTypesList.vue +17 -10
- package/components/lists/roleOrganisations/FSBaseRoleOrganisationsList.vue +28 -21
- package/components/lists/scenarioOrganisationTypes/FSBaseScenarioOrganisationTypesList.vue +56 -13
- package/components/lists/scenarioOrganisations/FSBaseScenarioOrganisationsList.vue +56 -12
- package/components/lists/scenarios/FSBaseScenariosList.vue +122 -81
- package/components/lists/serviceAccountOrganisations/FSBaseServiceAccountOrganisationsList.vue +31 -18
- package/components/lists/serviceAccountRoleOrganisations/FSBaseServiceAccountRoleOrganisationsList.vue +128 -0
- package/components/lists/userOrganisations/FSBaseUserOrganisationsList.vue +30 -19
- package/components/lists/userOrganisations/FSChipUserOrganisationsList.vue +61 -0
- package/components/tiles/FSChartTile.vue +71 -0
- 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 +12 -5
- package/components/tiles/FSFolderTile.vue +3 -3
- package/components/tiles/FSGroupTile.vue +3 -3
- package/components/tiles/FSLocationTile.vue +5 -3
- package/components/tiles/FSModelTile.vue +64 -0
- package/components/tiles/FSServiceAccountOrganisationTile.vue +3 -3
- package/components/tiles/FSUserOrganisationTile.vue +3 -3
- package/components/treeviews/FSTreeViewFolder.vue +15 -3
- package/components/treeviews/FSTreeViewGroup.vue +22 -4
- package/package.json +9 -9
- package/utils/dashboards.ts +3 -3
- package/utils/index.ts +0 -1
- package/utils/roles.ts +3 -3
- package/utils/users.ts +3 -3
- package/components/selects/FSAggregationSelector.vue +0 -51
- package/components/selects/FSAxisTypeSelector.vue +0 -48
- package/components/selects/FSDisplayAsSelector.vue +0 -52
- package/components/selects/FSFilterTypeSelector.vue +0 -53
- package/components/selects/FSHeatmapRuleSelector.vue +0 -52
- package/components/selects/FSOperationOnSelector.vue +0 -51
- package/components/selects/FSPlanningTypeSelector.vue +0 -51
- package/components/selects/FSPlotPerSelector.vue +0 -51
- package/components/selects/FSSelectEntityType.vue +0 -59
- package/components/selects/FSSerieTypeSelector.vue +0 -51
- package/utils/charts.ts +0 -137
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<FSLoadTile
|
|
3
3
|
v-if="getting"
|
|
4
|
-
:
|
|
4
|
+
:selectable="$props.selectable"
|
|
5
5
|
:modelValue="modelValue"
|
|
6
6
|
@update:modelValue="$emit('update:modelValue', $event)"
|
|
7
7
|
/>
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
:roleLabel="entity.roleLabel"
|
|
13
13
|
:roleIcon="entity.roleIcon"
|
|
14
14
|
:admin="entity.admin"
|
|
15
|
-
:
|
|
15
|
+
:selectable="$props.selectable"
|
|
16
16
|
:modelValue="modelValue"
|
|
17
17
|
@update:modelValue="$emit('update:modelValue', $event)"
|
|
18
18
|
v-bind="$attrs"
|
|
@@ -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
|
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
</template>
|
|
21
21
|
|
|
22
22
|
<script lang="ts">
|
|
23
|
-
import { defineComponent, type PropType } from "vue";
|
|
23
|
+
import { computed, defineComponent, type PropType } from "vue";
|
|
24
24
|
|
|
25
|
+
import { type FolderFilters, type FolderInfos } from "@dative-gpi/foundation-core-domain/models";
|
|
25
26
|
import { useTreeView } from "@dative-gpi/foundation-shared-components/composables";
|
|
26
|
-
import { type FolderFilters } from "@dative-gpi/foundation-core-domain/models";
|
|
27
27
|
import { useFolders } from "@dative-gpi/foundation-core-services/composables";
|
|
28
28
|
|
|
29
29
|
import FSTreeViewField from "@dative-gpi/foundation-shared-components/components/fields/FSTreeViewField.vue";
|
|
@@ -41,6 +41,11 @@ export default defineComponent({
|
|
|
41
41
|
required: false,
|
|
42
42
|
default: null
|
|
43
43
|
},
|
|
44
|
+
exclude: {
|
|
45
|
+
type: String as PropType<string | null>,
|
|
46
|
+
required: false,
|
|
47
|
+
default: null
|
|
48
|
+
},
|
|
44
49
|
modelValue: {
|
|
45
50
|
type: [Array, String] as PropType<string[] | string | null>,
|
|
46
51
|
required: false,
|
|
@@ -54,7 +59,14 @@ export default defineComponent({
|
|
|
54
59
|
},
|
|
55
60
|
emits: ["update:modelValue"],
|
|
56
61
|
setup(props, { emit }) {
|
|
57
|
-
const { getMany: getManyFolders, fetching: fetchingFolders, entities
|
|
62
|
+
const { getMany: getManyFolders, fetching: fetchingFolders, entities } = useFolders();
|
|
63
|
+
|
|
64
|
+
const folders = computed((): FolderInfos[] => {
|
|
65
|
+
if (!props.exclude) {
|
|
66
|
+
return entities.value;
|
|
67
|
+
}
|
|
68
|
+
return entities.value.filter(g => g.id !== props.exclude && !g.path.some(p => p.id === props.exclude));
|
|
69
|
+
});
|
|
58
70
|
|
|
59
71
|
const fetch = () => {
|
|
60
72
|
return getManyFolders({ ...props.folderFilters });
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<FSTreeViewField
|
|
3
|
+
:label="$props.label ?? $tr('ui.common.group', 'Group')"
|
|
3
4
|
:multiple="$props.multiple"
|
|
4
5
|
:loading="fetchingGroups"
|
|
5
6
|
:items="groups"
|
|
@@ -20,10 +21,10 @@
|
|
|
20
21
|
</template>
|
|
21
22
|
|
|
22
23
|
<script lang="ts">
|
|
23
|
-
import { defineComponent, type PropType } from "vue";
|
|
24
|
+
import { computed, defineComponent, type PropType } from "vue";
|
|
24
25
|
|
|
26
|
+
import { type GroupFilters, type GroupInfos } from "@dative-gpi/foundation-core-domain/models";
|
|
25
27
|
import { useTreeView } from "@dative-gpi/foundation-shared-components/composables";
|
|
26
|
-
import { type GroupFilters } from "@dative-gpi/foundation-core-domain/models";
|
|
27
28
|
import { useGroups } from "@dative-gpi/foundation-core-services/composables";
|
|
28
29
|
|
|
29
30
|
import FSTreeViewField from "@dative-gpi/foundation-shared-components/components/fields/FSTreeViewField.vue";
|
|
@@ -41,6 +42,11 @@ export default defineComponent({
|
|
|
41
42
|
required: false,
|
|
42
43
|
default: null
|
|
43
44
|
},
|
|
45
|
+
exclude: {
|
|
46
|
+
type: String as PropType<string | null>,
|
|
47
|
+
required: false,
|
|
48
|
+
default: null
|
|
49
|
+
},
|
|
44
50
|
modelValue: {
|
|
45
51
|
type: [Array, String] as PropType<string[] | string | null>,
|
|
46
52
|
required: false,
|
|
@@ -50,11 +56,23 @@ export default defineComponent({
|
|
|
50
56
|
type: Boolean,
|
|
51
57
|
required: false,
|
|
52
58
|
default: false
|
|
53
|
-
}
|
|
59
|
+
},
|
|
60
|
+
label: {
|
|
61
|
+
type: String as PropType<string | null>,
|
|
62
|
+
required: false,
|
|
63
|
+
default: null
|
|
64
|
+
}
|
|
54
65
|
},
|
|
55
66
|
emits: ["update:modelValue"],
|
|
56
67
|
setup(props, { emit }) {
|
|
57
|
-
const { getMany: getManyGroups, fetching: fetchingGroups, entities
|
|
68
|
+
const { getMany: getManyGroups, fetching: fetchingGroups, entities } = useGroups();
|
|
69
|
+
|
|
70
|
+
const groups = computed((): GroupInfos[] => {
|
|
71
|
+
if (!props.exclude) {
|
|
72
|
+
return entities.value;
|
|
73
|
+
}
|
|
74
|
+
return entities.value.filter(g => g.id !== props.exclude && !g.path.some(p => p.id === props.exclude));
|
|
75
|
+
});
|
|
58
76
|
|
|
59
77
|
const fetch = () => {
|
|
60
78
|
return getManyGroups({ ...props.groupFilters });
|
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.58-groupings",
|
|
5
5
|
"description": "",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -10,21 +10,21 @@
|
|
|
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.58-groupings",
|
|
14
|
+
"@dative-gpi/foundation-core-services": "1.0.58-groupings",
|
|
15
|
+
"@dative-gpi/foundation-shared-components": "1.0.58-groupings",
|
|
16
|
+
"@dative-gpi/foundation-shared-domain": "1.0.58-groupings",
|
|
17
|
+
"@dative-gpi/foundation-shared-services": "1.0.58-groupings"
|
|
18
18
|
},
|
|
19
19
|
"peerDependencies": {
|
|
20
|
-
"@dative-gpi/bones-ui": "^0.0
|
|
20
|
+
"@dative-gpi/bones-ui": "^1.0.0",
|
|
21
21
|
"color": "^4.2.3",
|
|
22
|
-
"vue": "^3.4.
|
|
22
|
+
"vue": "^3.4.38"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@types/color": "3.0.6",
|
|
26
26
|
"sass": "1.71.1",
|
|
27
27
|
"sass-loader": "13.3.2"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "563e78c4a0b3e8f73fdf8576e9d8bc0b626bc095"
|
|
30
30
|
}
|
package/utils/dashboards.ts
CHANGED
|
@@ -7,10 +7,10 @@ const { $tr } = useTranslationsProvider();
|
|
|
7
7
|
|
|
8
8
|
export const dashboardTypeLabel = (type: DashboardType): string => {
|
|
9
9
|
switch (type) {
|
|
10
|
-
case DashboardType.None: return $tr("ui.
|
|
10
|
+
case DashboardType.None: return $tr("ui.common.none", "None");
|
|
11
11
|
case DashboardType.Organisation:
|
|
12
|
-
case DashboardType.Shallow: return $tr("ui.
|
|
13
|
-
case DashboardType.OrganisationType: return $tr("ui.
|
|
12
|
+
case DashboardType.Shallow: return $tr("ui.common.custom", "Custom");
|
|
13
|
+
case DashboardType.OrganisationType: return $tr("ui.common.shared", "Shared");
|
|
14
14
|
}
|
|
15
15
|
};
|
|
16
16
|
|
package/utils/index.ts
CHANGED
package/utils/roles.ts
CHANGED
|
@@ -6,9 +6,9 @@ const { $tr } = useTranslationsProvider();
|
|
|
6
6
|
|
|
7
7
|
export const roleTypeLabel = (type: RoleType): string => {
|
|
8
8
|
switch (type) {
|
|
9
|
-
case RoleType.None: return $tr("ui.
|
|
10
|
-
case RoleType.Organisation: return $tr("ui.
|
|
11
|
-
case RoleType.OrganisationType: return $tr("ui.
|
|
9
|
+
case RoleType.None: return $tr("ui.common.none", "None");
|
|
10
|
+
case RoleType.Organisation: return $tr("ui.common.custom", "Custom");
|
|
11
|
+
case RoleType.OrganisationType: return $tr("ui.common.shared", "Shared");
|
|
12
12
|
}
|
|
13
13
|
};
|
|
14
14
|
|
package/utils/users.ts
CHANGED
|
@@ -5,9 +5,9 @@ const { $tr } = useTranslationsProvider();
|
|
|
5
5
|
|
|
6
6
|
export const userTypeLabel = (type: UserType): string => {
|
|
7
7
|
switch (type) {
|
|
8
|
-
case UserType.User: return $tr("ui.
|
|
9
|
-
case UserType.ServiceAccount: return $tr("ui.
|
|
10
|
-
case UserType.Extension: return $tr("ui.
|
|
8
|
+
case UserType.User: return $tr("ui.common.user", "User");
|
|
9
|
+
case UserType.ServiceAccount: return $tr("ui.common.service-account", "Service account");
|
|
10
|
+
case UserType.Extension: return $tr("ui.common.extension", "Extension");
|
|
11
11
|
default: return "";
|
|
12
12
|
}
|
|
13
13
|
};
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<FSAutocompleteField
|
|
3
|
-
:label="label ?? $tr('ui.common.aggregation-type','Aggregation')"
|
|
4
|
-
:items="aggregationTypeItems"
|
|
5
|
-
:modelValue="modelValue"
|
|
6
|
-
@update:modelValue="$emit('update:modelValue', $event)"
|
|
7
|
-
v-bind="$attrs"
|
|
8
|
-
/>
|
|
9
|
-
</template>
|
|
10
|
-
|
|
11
|
-
<script lang="ts">
|
|
12
|
-
import { computed, defineComponent, type PropType } from "vue";
|
|
13
|
-
|
|
14
|
-
import { AggregationType } from "@dative-gpi/foundation-shared-domain/enums";
|
|
15
|
-
|
|
16
|
-
import {aggregationTypeLabel, getEnumEntries} from "../../utils";
|
|
17
|
-
|
|
18
|
-
import FSAutocompleteField from "@dative-gpi/foundation-shared-components/components/fields/FSAutocompleteField.vue";
|
|
19
|
-
|
|
20
|
-
export default defineComponent({
|
|
21
|
-
components: {
|
|
22
|
-
FSAutocompleteField
|
|
23
|
-
},
|
|
24
|
-
props: {
|
|
25
|
-
modelValue : {
|
|
26
|
-
type: Number as PropType<AggregationType>,
|
|
27
|
-
required: false
|
|
28
|
-
},
|
|
29
|
-
label : {
|
|
30
|
-
type: String,
|
|
31
|
-
required: false
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
emits: ['update:modelValue'],
|
|
35
|
-
setup() {
|
|
36
|
-
|
|
37
|
-
const aggregationTypeItems = computed(()=>{
|
|
38
|
-
return getEnumEntries(AggregationType).filter(f=>f.value != AggregationType.None).map((f)=>{
|
|
39
|
-
return {
|
|
40
|
-
id: f.value,
|
|
41
|
-
label: aggregationTypeLabel(f.value)
|
|
42
|
-
}
|
|
43
|
-
})
|
|
44
|
-
});
|
|
45
|
-
|
|
46
|
-
return {
|
|
47
|
-
aggregationTypeItems
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
})
|
|
51
|
-
</script>
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<FSToggleSet
|
|
3
|
-
:hideHeader="true"
|
|
4
|
-
:values="axisTypeItems"
|
|
5
|
-
:modelValue="modelValue"
|
|
6
|
-
@update:modelValue="$emit('update:modelValue', $event)"
|
|
7
|
-
v-bind="$attrs"
|
|
8
|
-
/>
|
|
9
|
-
</template>
|
|
10
|
-
|
|
11
|
-
<script lang="ts">
|
|
12
|
-
import { computed, defineComponent, type PropType } from "vue";
|
|
13
|
-
|
|
14
|
-
import {AxisType} from "@dative-gpi/foundation-shared-domain/enums";
|
|
15
|
-
|
|
16
|
-
import {axisTypeLabel, getEnumEntries} from "../../utils";
|
|
17
|
-
|
|
18
|
-
import FSToggleSet from "@dative-gpi/foundation-shared-components/components/FSToggleSet.vue";
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
export default defineComponent({
|
|
22
|
-
components: {
|
|
23
|
-
FSToggleSet
|
|
24
|
-
},
|
|
25
|
-
props: {
|
|
26
|
-
modelValue: {
|
|
27
|
-
type: Number as PropType<AxisType>,
|
|
28
|
-
required: false
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
emits: ['update:modelValue'],
|
|
32
|
-
setup() {
|
|
33
|
-
|
|
34
|
-
const axisTypeItems = computed(()=>{
|
|
35
|
-
return getEnumEntries(AxisType).map((f)=>{
|
|
36
|
-
return {
|
|
37
|
-
id: f.value,
|
|
38
|
-
label: axisTypeLabel(f.value)
|
|
39
|
-
}
|
|
40
|
-
})
|
|
41
|
-
});
|
|
42
|
-
|
|
43
|
-
return {
|
|
44
|
-
axisTypeItems
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
})
|
|
48
|
-
</script>
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<FSAutocompleteField
|
|
3
|
-
:label="label ?? $tr('ui.common.display-as','Display as')"
|
|
4
|
-
:items="displayAsItems"
|
|
5
|
-
:modelValue="modelValue"
|
|
6
|
-
@update:modelValue="$emit('update:modelValue', $event)"
|
|
7
|
-
v-bind="$attrs"
|
|
8
|
-
/>
|
|
9
|
-
</template>
|
|
10
|
-
|
|
11
|
-
<script lang="ts">
|
|
12
|
-
import { computed, defineComponent, type PropType } from "vue";
|
|
13
|
-
|
|
14
|
-
import {DisplayAs} from "@dative-gpi/foundation-shared-domain/enums";
|
|
15
|
-
|
|
16
|
-
import FSAutocompleteField from "@dative-gpi/foundation-shared-components/components/fields/FSAutocompleteField.vue";
|
|
17
|
-
|
|
18
|
-
import {displayAsLabel, getEnumEntries} from "../../utils";
|
|
19
|
-
|
|
20
|
-
export default defineComponent({
|
|
21
|
-
components: {
|
|
22
|
-
FSAutocompleteField
|
|
23
|
-
},
|
|
24
|
-
props: {
|
|
25
|
-
modelValue: {
|
|
26
|
-
type: Number as PropType<DisplayAs>,
|
|
27
|
-
required: false
|
|
28
|
-
},
|
|
29
|
-
label: {
|
|
30
|
-
type: String,
|
|
31
|
-
required: false
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
},
|
|
35
|
-
emits: ['update:modelValue'],
|
|
36
|
-
setup() {
|
|
37
|
-
|
|
38
|
-
const displayAsItems = computed(()=>{
|
|
39
|
-
return getEnumEntries(DisplayAs).filter(f=>f.value != DisplayAs.None).map((f)=>{
|
|
40
|
-
return {
|
|
41
|
-
id: f.value,
|
|
42
|
-
label: displayAsLabel(f.value)
|
|
43
|
-
}
|
|
44
|
-
})
|
|
45
|
-
});
|
|
46
|
-
|
|
47
|
-
return {
|
|
48
|
-
displayAsItems,
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
})
|
|
52
|
-
</script>
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<FSAutocompleteField
|
|
3
|
-
:label="label ?? $tr('ui.common.filter-type','Filter type')"
|
|
4
|
-
:toggleSet="true"
|
|
5
|
-
:items="filterTypeItems"
|
|
6
|
-
:modelValue="modelValue"
|
|
7
|
-
@update:modelValue="$emit('update:modelValue', $event)"
|
|
8
|
-
v-bind="$attrs"
|
|
9
|
-
/>
|
|
10
|
-
</template>
|
|
11
|
-
|
|
12
|
-
<script lang="ts">
|
|
13
|
-
import { computed, defineComponent, type PropType } from "vue";
|
|
14
|
-
|
|
15
|
-
import {FilterType} from "@dative-gpi/foundation-shared-domain/enums";
|
|
16
|
-
|
|
17
|
-
import FSAutocompleteField from "@dative-gpi/foundation-shared-components/components/fields/FSAutocompleteField.vue";
|
|
18
|
-
|
|
19
|
-
import {filterTypeLabel, getEnumEntries} from "../../utils";
|
|
20
|
-
|
|
21
|
-
export default defineComponent({
|
|
22
|
-
components: {
|
|
23
|
-
FSAutocompleteField
|
|
24
|
-
},
|
|
25
|
-
props: {
|
|
26
|
-
modelValue: {
|
|
27
|
-
type: Number as PropType<FilterType>,
|
|
28
|
-
required: false,
|
|
29
|
-
default : FilterType.None
|
|
30
|
-
},
|
|
31
|
-
label: {
|
|
32
|
-
type: String,
|
|
33
|
-
required: false
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
emits: ['update:modelValue'],
|
|
37
|
-
setup() {
|
|
38
|
-
|
|
39
|
-
const filterTypeItems = computed(()=>{
|
|
40
|
-
return getEnumEntries(FilterType).filter(f=>f.value != FilterType.None).map((f)=>{
|
|
41
|
-
return {
|
|
42
|
-
id: f.value,
|
|
43
|
-
label: filterTypeLabel(f.value)
|
|
44
|
-
}
|
|
45
|
-
})
|
|
46
|
-
});
|
|
47
|
-
|
|
48
|
-
return {
|
|
49
|
-
filterTypeItems
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
})
|
|
53
|
-
</script>
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<FSAutocompleteField
|
|
3
|
-
:label="label ?? $tr('ui.common.heat-rule','Heat rule')"
|
|
4
|
-
:items="heatmapRuleItems"
|
|
5
|
-
:modelValue="modelValue"
|
|
6
|
-
@update:modelValue="$emit('update:modelValue', $event)"
|
|
7
|
-
v-bind="$attrs"
|
|
8
|
-
/>
|
|
9
|
-
</template>
|
|
10
|
-
|
|
11
|
-
<script lang="ts">
|
|
12
|
-
import { computed, defineComponent, type PropType } from "vue";
|
|
13
|
-
|
|
14
|
-
import {HeatmapRule} from "@dative-gpi/foundation-shared-domain/enums";
|
|
15
|
-
|
|
16
|
-
import FSAutocompleteField from "@dative-gpi/foundation-shared-components/components/fields/FSAutocompleteField.vue";
|
|
17
|
-
|
|
18
|
-
import {heatmapRuleLabel, getEnumEntries} from "../../utils";
|
|
19
|
-
|
|
20
|
-
export default defineComponent({
|
|
21
|
-
components: {
|
|
22
|
-
FSAutocompleteField
|
|
23
|
-
},
|
|
24
|
-
props: {
|
|
25
|
-
modelValue: {
|
|
26
|
-
type: Number as PropType<HeatmapRule>,
|
|
27
|
-
required: false
|
|
28
|
-
},
|
|
29
|
-
label: {
|
|
30
|
-
type: String,
|
|
31
|
-
required: false
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
},
|
|
35
|
-
emits: ['update:modelValue'],
|
|
36
|
-
setup() {
|
|
37
|
-
|
|
38
|
-
const heatmapRuleItems = computed(()=>{
|
|
39
|
-
return getEnumEntries(HeatmapRule).filter(f=>f.value != HeatmapRule.None).map((f)=>{
|
|
40
|
-
return {
|
|
41
|
-
id: f.value,
|
|
42
|
-
label: heatmapRuleLabel(f.value)
|
|
43
|
-
}
|
|
44
|
-
})
|
|
45
|
-
});
|
|
46
|
-
|
|
47
|
-
return {
|
|
48
|
-
heatmapRuleItems
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
})
|
|
52
|
-
</script>
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<FSAutocompleteField
|
|
3
|
-
:label="label ?? $tr('ui.common.operation-on','Operation on')"
|
|
4
|
-
:items="operationOnItems"
|
|
5
|
-
:modelValue="modelValue"
|
|
6
|
-
@update:modelValue="$emit('update:modelValue', $event)"
|
|
7
|
-
v-bind="$attrs"
|
|
8
|
-
/>
|
|
9
|
-
</template>
|
|
10
|
-
|
|
11
|
-
<script lang="ts">
|
|
12
|
-
import { computed, defineComponent, type PropType } from "vue";
|
|
13
|
-
|
|
14
|
-
import {OperationOn} from "@dative-gpi/foundation-shared-domain/enums";
|
|
15
|
-
|
|
16
|
-
import FSAutocompleteField from "@dative-gpi/foundation-shared-components/components/fields/FSAutocompleteField.vue";
|
|
17
|
-
|
|
18
|
-
import {operationOnLabel, getEnumEntries} from "../../utils";
|
|
19
|
-
|
|
20
|
-
export default defineComponent({
|
|
21
|
-
components: {
|
|
22
|
-
FSAutocompleteField
|
|
23
|
-
},
|
|
24
|
-
props: {
|
|
25
|
-
modelValue: {
|
|
26
|
-
type: Number as PropType<OperationOn>,
|
|
27
|
-
required: false
|
|
28
|
-
},
|
|
29
|
-
label : {
|
|
30
|
-
type: String,
|
|
31
|
-
required: false
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
emits: ['update:modelValue'],
|
|
35
|
-
setup() {
|
|
36
|
-
|
|
37
|
-
const operationOnItems = computed(()=>{
|
|
38
|
-
return getEnumEntries(OperationOn).filter(f=>f.value != OperationOn.None).map((f)=>{
|
|
39
|
-
return {
|
|
40
|
-
id: f.value,
|
|
41
|
-
label: operationOnLabel(f.value)
|
|
42
|
-
}
|
|
43
|
-
})
|
|
44
|
-
});
|
|
45
|
-
|
|
46
|
-
return {
|
|
47
|
-
operationOnItems
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
})
|
|
51
|
-
</script>
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<FSAutocompleteField
|
|
3
|
-
:label="label ?? $tr('ui.common.planning-type','Planning type')"
|
|
4
|
-
:items="planningTypeItems"
|
|
5
|
-
:modelValue="modelValue"
|
|
6
|
-
@update:modelValue="$emit('update:modelValue', $event)"
|
|
7
|
-
v-bind="$attrs"
|
|
8
|
-
/>
|
|
9
|
-
</template>
|
|
10
|
-
|
|
11
|
-
<script lang="ts">
|
|
12
|
-
import { computed, defineComponent, type PropType } from "vue";
|
|
13
|
-
|
|
14
|
-
import {PlanningType} from "@dative-gpi/foundation-shared-domain/enums";
|
|
15
|
-
|
|
16
|
-
import FSAutocompleteField from "@dative-gpi/foundation-shared-components/components/fields/FSAutocompleteField.vue";
|
|
17
|
-
|
|
18
|
-
import {planningTypeLabel, getEnumEntries} from "../../utils";
|
|
19
|
-
|
|
20
|
-
export default defineComponent({
|
|
21
|
-
components: {
|
|
22
|
-
FSAutocompleteField
|
|
23
|
-
},
|
|
24
|
-
props: {
|
|
25
|
-
modelValue: {
|
|
26
|
-
type: Number as PropType<PlanningType>,
|
|
27
|
-
required: false
|
|
28
|
-
},
|
|
29
|
-
label: {
|
|
30
|
-
type: String,
|
|
31
|
-
required: false
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
emits: ['update:modelValue'],
|
|
35
|
-
setup() {
|
|
36
|
-
|
|
37
|
-
const planningTypeItems = computed(()=>{
|
|
38
|
-
return getEnumEntries(PlanningType).filter(f=>f.value != PlanningType.None).map((f)=>{
|
|
39
|
-
return {
|
|
40
|
-
id: f.value,
|
|
41
|
-
label: planningTypeLabel(f.value)
|
|
42
|
-
}
|
|
43
|
-
})
|
|
44
|
-
});
|
|
45
|
-
|
|
46
|
-
return {
|
|
47
|
-
planningTypeItems
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
})
|
|
51
|
-
</script>
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<FSAutocompleteField
|
|
3
|
-
:label="label ?? $tr('ui.common.plot-per','Plot per')"
|
|
4
|
-
:items="plotPerItems"
|
|
5
|
-
:modelValue="modelValue"
|
|
6
|
-
@update:modelValue="$emit('update:modelValue', $event)"
|
|
7
|
-
v-bind="$attrs"
|
|
8
|
-
/>
|
|
9
|
-
</template>
|
|
10
|
-
|
|
11
|
-
<script lang="ts">
|
|
12
|
-
import { computed, defineComponent, type PropType } from "vue";
|
|
13
|
-
|
|
14
|
-
import {PlotPer} from "@dative-gpi/foundation-shared-domain/enums";
|
|
15
|
-
|
|
16
|
-
import FSAutocompleteField from "@dative-gpi/foundation-shared-components/components/fields/FSAutocompleteField.vue";
|
|
17
|
-
|
|
18
|
-
import {plotPerLabel, getEnumEntries} from "../../utils";
|
|
19
|
-
|
|
20
|
-
export default defineComponent({
|
|
21
|
-
components: {
|
|
22
|
-
FSAutocompleteField
|
|
23
|
-
},
|
|
24
|
-
props: {
|
|
25
|
-
modelValue: {
|
|
26
|
-
type: Number as PropType<PlotPer>,
|
|
27
|
-
required: false
|
|
28
|
-
},
|
|
29
|
-
label: {
|
|
30
|
-
type: String,
|
|
31
|
-
required: false
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
emits: ['update:modelValue'],
|
|
35
|
-
setup() {
|
|
36
|
-
|
|
37
|
-
const plotPerItems = computed(()=>{
|
|
38
|
-
return getEnumEntries(PlotPer).filter(f=>f.value != PlotPer.None).map((f)=>{
|
|
39
|
-
return {
|
|
40
|
-
id: f.value,
|
|
41
|
-
label: plotPerLabel(f.value)
|
|
42
|
-
}
|
|
43
|
-
})
|
|
44
|
-
});
|
|
45
|
-
|
|
46
|
-
return {
|
|
47
|
-
plotPerItems
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
})
|
|
51
|
-
</script>
|