@tekkare/auriga 0.1.98 → 0.1.100
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
|
@@ -302,9 +302,6 @@
|
|
|
302
302
|
</div>
|
|
303
303
|
</template>
|
|
304
304
|
<script>
|
|
305
|
-
import argIcon from "./argIcon.vue";
|
|
306
|
-
import argSimpleLabel from "./argSimpleLabel.vue";
|
|
307
|
-
import argDataLoader from "./argDataLoader.vue";
|
|
308
305
|
import {
|
|
309
306
|
onMounted,
|
|
310
307
|
ref,
|
|
@@ -315,7 +312,6 @@ import {
|
|
|
315
312
|
} from "vue";
|
|
316
313
|
export default defineComponent({
|
|
317
314
|
name: "argMultipleSelect",
|
|
318
|
-
components: { argIcon, argSimpleLabel, argDataLoader },
|
|
319
315
|
props: {
|
|
320
316
|
element_table: { type: Array, required: true },
|
|
321
317
|
nested: { type: Boolean, default: false },
|
|
@@ -358,12 +354,12 @@ export default defineComponent({
|
|
|
358
354
|
if (props.preselection_all) {
|
|
359
355
|
add_all();
|
|
360
356
|
} else if (props.default_select && props.default_select.length > 0) {
|
|
361
|
-
if (!
|
|
362
|
-
(a) =>
|
|
357
|
+
if (!props.default_select.every(
|
|
358
|
+
(a) => element_table_copy.value.includes(a)
|
|
363
359
|
)) {
|
|
364
|
-
element_table_copy.value =
|
|
365
|
-
props.default_select
|
|
366
|
-
|
|
360
|
+
element_table_copy.value = [
|
|
361
|
+
...new Set(element_table_copy.value.concat(props.default_select))
|
|
362
|
+
];
|
|
367
363
|
}
|
|
368
364
|
selected_items.value = props.default_select;
|
|
369
365
|
}
|
|
@@ -382,13 +378,6 @@ export default defineComponent({
|
|
|
382
378
|
if (props.preselection_all) {
|
|
383
379
|
add_all();
|
|
384
380
|
} else if (props.default_select && props.default_select.length > 0) {
|
|
385
|
-
if (!element_table_copy.value.some(
|
|
386
|
-
(a) => props.default_select.includes(a)
|
|
387
|
-
)) {
|
|
388
|
-
element_table_copy.value = element_table_copy.value.concat(
|
|
389
|
-
props.default_select
|
|
390
|
-
);
|
|
391
|
-
}
|
|
392
381
|
selected_items.value = props.default_select;
|
|
393
382
|
}
|
|
394
383
|
});
|
|
@@ -483,7 +472,7 @@ export default defineComponent({
|
|
|
483
472
|
(element) => element.toLowerCase().includes(searchName.value.toLowerCase())
|
|
484
473
|
);
|
|
485
474
|
} else
|
|
486
|
-
return
|
|
475
|
+
return element_table_copy.value;
|
|
487
476
|
} else {
|
|
488
477
|
let selectTable = [];
|
|
489
478
|
const finalTable = [];
|
|
@@ -824,7 +813,6 @@ export default defineComponent({
|
|
|
824
813
|
}
|
|
825
814
|
});
|
|
826
815
|
</script>
|
|
827
|
-
|
|
828
816
|
<style>
|
|
829
817
|
.oip_select_complex_selection_loop>svg{color:var(--medium)!important}.oip_select_dropdown_block.multiple{min-width:225px;overflow-y:auto}.oip_select_complex_selection_loop.multiple{padding-left:7px}.oip_select_multiple_left_margin{border-left:1px solid var(--light);margin-left:7px}.relative{position:relative}
|
|
830
818
|
</style>
|