@tekkare/auriga 0.1.7 → 0.1.9
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 +1 -1
- package/dist/runtime/components/argActions.vue +120 -0
- package/dist/runtime/components/argActions.vue.d.ts +29 -0
- package/dist/runtime/components/argChart.vue +38 -4
- package/dist/runtime/components/argChartTableCard.vue +30 -0
- package/dist/runtime/components/argChartTableCard.vue.d.ts +2 -0
- package/dist/runtime/components/argCheckbox.vue +14 -6
- package/dist/runtime/components/argCheckbox.vue.d.ts +11 -2
- package/dist/runtime/components/argComplexSelect.vue +2 -2
- package/dist/runtime/components/argDataLoader.vue +13 -3
- package/dist/runtime/components/argDataLoader.vue.d.ts +22 -1
- package/dist/runtime/components/argFileBtn.vue.d.ts +2 -2
- package/dist/runtime/components/argFilterCard.vue +37 -8
- package/dist/runtime/components/argFilterCard.vue.d.ts +30 -1
- package/dist/runtime/components/argFilterTabs.vue +109 -0
- package/dist/runtime/components/argFilterTabs.vue.d.ts +64 -0
- package/dist/runtime/components/argFooter.vue +21 -20
- package/dist/runtime/components/argHeader.vue +8 -2
- package/dist/runtime/components/argHeader.vue.d.ts +9 -0
- package/dist/runtime/components/argInfoBar.vue +175 -0
- package/dist/runtime/components/argInfoBar.vue.d.ts +35 -0
- package/dist/runtime/components/argInfoSection.vue +265 -0
- package/dist/runtime/components/argInfoSection.vue.d.ts +55 -0
- package/dist/runtime/components/argMainLayout.vue +46 -21
- package/dist/runtime/components/argMainLayout.vue.d.ts +13 -1
- package/dist/runtime/components/argMenuItem.vue +44 -27
- package/dist/runtime/components/argMenuItem.vue.d.ts +11 -1
- package/dist/runtime/components/argMenuLink.vue +43 -20
- package/dist/runtime/components/argMenuLink.vue.d.ts +9 -0
- package/dist/runtime/components/argMultipleChoice.vue +25 -3
- package/dist/runtime/components/argMultipleSelect.vue +785 -0
- package/dist/runtime/components/argMultipleSelect.vue.d.ts +143 -0
- package/dist/runtime/components/argNavBar.vue +26 -12
- package/dist/runtime/components/argNavBar.vue.d.ts +11 -2
- package/dist/runtime/components/argRadioButtons.vue +134 -0
- package/dist/runtime/components/argRadioButtons.vue.d.ts +48 -0
- package/dist/runtime/components/argSidebar.vue +89 -9
- package/dist/runtime/components/argSidebar.vue.d.ts +8 -2
- package/dist/runtime/components/argStyle.vue +18 -2
- package/dist/runtime/components/argSubMenu.vue +79 -37
- package/dist/runtime/components/argSubMenu.vue.d.ts +9 -0
- package/dist/runtime/components/argTable.vue +15 -1
- package/package.json +1 -1
|
@@ -21,7 +21,8 @@
|
|
|
21
21
|
import argIcon from "./argIcon.vue";
|
|
22
22
|
import {
|
|
23
23
|
ref,
|
|
24
|
-
defineComponent
|
|
24
|
+
defineComponent,
|
|
25
|
+
onBeforeMount
|
|
25
26
|
} from "vue";
|
|
26
27
|
export default defineComponent({
|
|
27
28
|
name: "argMultipleChoice",
|
|
@@ -48,8 +49,29 @@ export default defineComponent({
|
|
|
48
49
|
setup(props, { emit }) {
|
|
49
50
|
const intArray = [];
|
|
50
51
|
const stringArray = [];
|
|
51
|
-
|
|
52
|
-
|
|
52
|
+
const selectedInts = ref(intArray);
|
|
53
|
+
const selectedString = ref(stringArray);
|
|
54
|
+
onBeforeMount(() => {
|
|
55
|
+
if (props.default_select.length > 0) {
|
|
56
|
+
for (let i = 0; i < props.default_select.length; i++) {
|
|
57
|
+
if (props.return_value) {
|
|
58
|
+
selectedString.value.push(
|
|
59
|
+
props.element_table[props.default_select[i]]
|
|
60
|
+
);
|
|
61
|
+
} else {
|
|
62
|
+
selectedInts.value.push(props.default_select[i]);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
emit(
|
|
66
|
+
"changeElement",
|
|
67
|
+
props.return_value ? selectedString.value : selectedInts.value
|
|
68
|
+
);
|
|
69
|
+
emit(
|
|
70
|
+
"update:Selection",
|
|
71
|
+
props.return_value ? selectedString.value : selectedInts.value
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
|
+
});
|
|
53
75
|
function isSelected(index, option) {
|
|
54
76
|
if (selectedInts.value?.includes(index) || selectedString.value?.includes(option)) {
|
|
55
77
|
return true;
|