@dative-gpi/foundation-core-components 1.0.112 → 1.0.113
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.
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
:itemTo="$props.itemTo"
|
|
10
10
|
:noSearch="true"
|
|
11
11
|
:modelValue="$props.modelValue"
|
|
12
|
-
@update:modelValue="
|
|
12
|
+
@update:modelValue="onUpdate"
|
|
13
13
|
v-model:search="search"
|
|
14
14
|
v-bind="$attrs"
|
|
15
15
|
>
|
|
@@ -227,8 +227,8 @@ export default defineComponent({
|
|
|
227
227
|
required: false
|
|
228
228
|
}
|
|
229
229
|
},
|
|
230
|
-
emits: ["update:modelValue"],
|
|
231
|
-
setup(props) {
|
|
230
|
+
emits: ["update:modelValue", "update:types"],
|
|
231
|
+
setup(props, { emit }) {
|
|
232
232
|
const { entities, fetching: fetchingDeviceExplorerElements, getMany: getManyDeviceExplorerElements } = useDeviceExplorerElements();
|
|
233
233
|
const { debounce } = useDebounce();
|
|
234
234
|
|
|
@@ -248,6 +248,13 @@ export default defineComponent({
|
|
|
248
248
|
return props.modelValue.includes(id);
|
|
249
249
|
};
|
|
250
250
|
|
|
251
|
+
const onUpdate = (value: string[]): void => {
|
|
252
|
+
const types = value.map(id => entities.value.find(dee => dee.id === id)?.type);
|
|
253
|
+
emit("update:types", types);
|
|
254
|
+
|
|
255
|
+
emit("update:modelValue", value);
|
|
256
|
+
}
|
|
257
|
+
|
|
251
258
|
const fetch = () => {
|
|
252
259
|
getManyDeviceExplorerElements({ ...props.deviceExplorerElementFilters, search: search.value });
|
|
253
260
|
}
|
|
@@ -273,7 +280,8 @@ export default defineComponent({
|
|
|
273
280
|
deviceExplorerElements,
|
|
274
281
|
ConnectivityStatus,
|
|
275
282
|
search,
|
|
276
|
-
isSelected
|
|
283
|
+
isSelected,
|
|
284
|
+
onUpdate
|
|
277
285
|
};
|
|
278
286
|
}
|
|
279
287
|
});
|
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.113",
|
|
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.113",
|
|
14
|
+
"@dative-gpi/foundation-core-services": "1.0.113",
|
|
15
|
+
"@dative-gpi/foundation-shared-components": "1.0.113",
|
|
16
|
+
"@dative-gpi/foundation-shared-domain": "1.0.113",
|
|
17
|
+
"@dative-gpi/foundation-shared-services": "1.0.113"
|
|
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": "901e954dba5d5ad505883a46a93831fdd780606b"
|
|
30
30
|
}
|