@koumoul/vjsf 4.5.0 → 4.5.2
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/package.json
CHANGED
|
@@ -116,6 +116,14 @@ const fieldProps = computed(() => {
|
|
|
116
116
|
</template>
|
|
117
117
|
</v-list-item>
|
|
118
118
|
</template>
|
|
119
|
+
<template #selection="{ item, internalItem }">
|
|
120
|
+
<v-select-item-icon
|
|
121
|
+
v-if="item && typeof item.icon === 'string'"
|
|
122
|
+
:icon="item.icon"
|
|
123
|
+
:avatar-props="avatarProps"
|
|
124
|
+
/>
|
|
125
|
+
{{ internalItem.title }}
|
|
126
|
+
</template>
|
|
119
127
|
</component>
|
|
120
128
|
</v-col>
|
|
121
129
|
<template v-if="modelValue.children?.[0]">
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
import { computed, shallowRef, watch } from 'vue'
|
|
2
|
+
import { computed, shallowRef, watch, onScopeDispose } from 'vue'
|
|
3
3
|
|
|
4
4
|
import { compile, produceCompileOptions } from '@json-layout/core/compile'
|
|
5
5
|
import { WebMCP } from '@json-layout/core/webmcp'
|
|
@@ -67,6 +67,12 @@ watch(statefulLayout, () => {
|
|
|
67
67
|
}
|
|
68
68
|
}, { immediate: true })
|
|
69
69
|
|
|
70
|
+
// always unregister our tools when the component is torn down, otherwise a later
|
|
71
|
+
// instance mounted with the same prefixName would fail to register them again
|
|
72
|
+
onScopeDispose(() => {
|
|
73
|
+
if (webMCP.value) webMCP.value.unregisterTools()
|
|
74
|
+
})
|
|
75
|
+
|
|
70
76
|
</script>
|
|
71
77
|
|
|
72
78
|
<template>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"one-of-select.vue.d.ts","sourceRoot":"","sources":["../../../src/components/nodes/one-of-select.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"one-of-select.vue.d.ts","sourceRoot":"","sources":["../../../src/components/nodes/one-of-select.vue"],"names":[],"mappings":"wBA6ZqB,OAAO,YAAY;;AAdxC;;QAGI,iFAAiF;cAAvE,OAAO,KAAK,EAAE,QAAQ,CAAC,OAAO,gBAAgB,EAAE,mBAAmB,CAAC;;;;QAK9E,gFAAgF;cAAtE,OAAO,KAAK,EAAE,QAAQ,CAAC,OAAO,gBAAgB,EAAE,kBAAkB,CAAC;;;;;QAL7E,iFAAiF;cAAvE,OAAO,KAAK,EAAE,QAAQ,CAAC,OAAO,gBAAgB,EAAE,mBAAmB,CAAC;;;;QAK9E,gFAAgF;cAAtE,OAAO,KAAK,EAAE,QAAQ,CAAC,OAAO,gBAAgB,EAAE,kBAAkB,CAAC;;;6IAK9E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vjsf-webmcp.vue.d.ts","sourceRoot":"","sources":["../../src/components/vjsf-webmcp.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"vjsf-webmcp.vue.d.ts","sourceRoot":"","sources":["../../src/components/vjsf-webmcp.vue"],"names":[],"mappings":"wBAwPqB,OAAO,YAAY;;AAnCxC;;;;;;QAQI,+EAA+E;cAArE,OAAO,KAAK,EAAE,QAAQ,CAAC,OAAO,mBAAmB,EAAE,cAAc,CAAC;;;;;;;;QAS5E,oFAAoF;cAA1E,OAAO,KAAK,EAAE,QAAQ,CAAC,OAAO,aAAa,EAAE,kBAAkB,GAAG,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;QATjF,+EAA+E;cAArE,OAAO,KAAK,EAAE,QAAQ,CAAC,OAAO,mBAAmB,EAAE,cAAc,CAAC;;;;;;;;QAS5E,oFAAoF;cAA1E,OAAO,KAAK,EAAE,QAAQ,CAAC,OAAO,aAAa,EAAE,kBAAkB,GAAG,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;wHAiBlF"}
|