@tekkare/auriga 0.2.169 → 0.2.170
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/dist/module.json
CHANGED
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
:source-id="uuid"
|
|
15
15
|
:source-title="constructTitle(uuid)"
|
|
16
16
|
:default-open="openedSource === uuid"
|
|
17
|
-
@click="openedSource = openedSource === uuid ? null : uuid"
|
|
18
17
|
>
|
|
19
18
|
<div class="oip_list gap-24">
|
|
20
19
|
<div class="oip_row v-center gap-24">
|
|
@@ -45,7 +44,7 @@
|
|
|
45
44
|
</template>
|
|
46
45
|
|
|
47
46
|
<script>
|
|
48
|
-
import { onMounted, ref, watch, defineComponent } from "vue";
|
|
47
|
+
import { onMounted, ref, watch, defineComponent, computed } from "vue";
|
|
49
48
|
import ArgSourceCollapse from "./argSourceCollapse.vue";
|
|
50
49
|
export default defineComponent({
|
|
51
50
|
name: "argSourcesElastic",
|
|
@@ -67,16 +66,15 @@ export default defineComponent({
|
|
|
67
66
|
onMounted(async () => {
|
|
68
67
|
openedSource.value = props.sourceToOpen;
|
|
69
68
|
});
|
|
70
|
-
const reorderedUuids =
|
|
71
|
-
|
|
72
|
-
openedSource.value = props.sourceToOpen;
|
|
73
|
-
reorderedUuids.value = props.uuids?.slice() ?? [];
|
|
69
|
+
const reorderedUuids = computed(() => {
|
|
70
|
+
const uuids = props.uuids?.slice() ?? [];
|
|
74
71
|
if (props.sourceToOpen) {
|
|
75
|
-
|
|
72
|
+
return [
|
|
76
73
|
props.sourceToOpen,
|
|
77
|
-
...
|
|
74
|
+
...uuids.filter((x) => x !== props.sourceToOpen)
|
|
78
75
|
];
|
|
79
76
|
}
|
|
77
|
+
return uuids;
|
|
80
78
|
});
|
|
81
79
|
function constructTitle(uuid) {
|
|
82
80
|
const provider = sourceResults.value.find(
|
|
@@ -219,7 +219,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
219
219
|
[Symbol.iterator]: () => StringIterator<string>;
|
|
220
220
|
at: (index: number) => string | undefined;
|
|
221
221
|
} | null>;
|
|
222
|
-
reorderedUuids: import("vue").
|
|
222
|
+
reorderedUuids: import("vue").ComputedRef<unknown[]>;
|
|
223
223
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "updateSources"[], "updateSources", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
224
224
|
fields: {
|
|
225
225
|
type: ArrayConstructor;
|