@dative-gpi/foundation-core-components 1.1.18 → 1.1.19
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.
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
:toggleSet="!$props.toggleSetDisabled && toggleSet"
|
|
5
5
|
:multiple="$props.multiple"
|
|
6
6
|
:placeholder="placeholder"
|
|
7
|
-
:items="
|
|
7
|
+
:items="items"
|
|
8
8
|
:loading="loading"
|
|
9
9
|
:modelValue="$props.modelValue"
|
|
10
10
|
@update:modelValue="onUpdate"
|
|
@@ -124,6 +124,15 @@ export default defineComponent({
|
|
|
124
124
|
return getManyDataCategories({ ...props.dataCategoriesFilters, search: search ?? undefined });
|
|
125
125
|
};
|
|
126
126
|
|
|
127
|
+
const items = computed(() => dataCategories.value.map((dataCategory) => {
|
|
128
|
+
const modelsLabel = dataCategory.models.map((m) => m.label).join(", ");
|
|
129
|
+
return {
|
|
130
|
+
id: dataCategory.id,
|
|
131
|
+
label: modelsLabel ? `${dataCategory.label} (${modelsLabel})` : dataCategory.label,
|
|
132
|
+
correlated: dataCategory.correlated
|
|
133
|
+
};
|
|
134
|
+
}));
|
|
135
|
+
|
|
127
136
|
const { toggleSet, init, onUpdate } = useAutocomplete(
|
|
128
137
|
dataCategories,
|
|
129
138
|
[() => props.dataCategoriesFilters],
|
|
@@ -132,7 +141,7 @@ export default defineComponent({
|
|
|
132
141
|
);
|
|
133
142
|
|
|
134
143
|
return {
|
|
135
|
-
|
|
144
|
+
items,
|
|
136
145
|
placeholder,
|
|
137
146
|
ColorEnum,
|
|
138
147
|
toggleSet,
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"url": "https://github.com/Dative-GPI/foundation-shared-ui.git"
|
|
5
5
|
},
|
|
6
6
|
"sideEffects": false,
|
|
7
|
-
"version": "1.1.
|
|
7
|
+
"version": "1.1.19",
|
|
8
8
|
"description": "",
|
|
9
9
|
"publishConfig": {
|
|
10
10
|
"access": "public"
|
|
@@ -13,11 +13,11 @@
|
|
|
13
13
|
"author": "",
|
|
14
14
|
"license": "ISC",
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@dative-gpi/foundation-core-domain": "1.1.
|
|
17
|
-
"@dative-gpi/foundation-core-services": "1.1.
|
|
18
|
-
"@dative-gpi/foundation-shared-components": "1.1.
|
|
19
|
-
"@dative-gpi/foundation-shared-domain": "1.1.
|
|
20
|
-
"@dative-gpi/foundation-shared-services": "1.1.
|
|
16
|
+
"@dative-gpi/foundation-core-domain": "1.1.19",
|
|
17
|
+
"@dative-gpi/foundation-core-services": "1.1.19",
|
|
18
|
+
"@dative-gpi/foundation-shared-components": "1.1.19",
|
|
19
|
+
"@dative-gpi/foundation-shared-domain": "1.1.19",
|
|
20
|
+
"@dative-gpi/foundation-shared-services": "1.1.19"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
23
|
"@dative-gpi/bones-ui": "^1.0.0",
|
|
@@ -29,5 +29,5 @@
|
|
|
29
29
|
"sass": "1.71.1",
|
|
30
30
|
"sass-loader": "13.3.2"
|
|
31
31
|
},
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "ac4763dd165ca723d5518dd2965e4fbc8ba092e4"
|
|
33
33
|
}
|