@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.
Files changed (43) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/runtime/components/argActions.vue +120 -0
  3. package/dist/runtime/components/argActions.vue.d.ts +29 -0
  4. package/dist/runtime/components/argChart.vue +38 -4
  5. package/dist/runtime/components/argChartTableCard.vue +30 -0
  6. package/dist/runtime/components/argChartTableCard.vue.d.ts +2 -0
  7. package/dist/runtime/components/argCheckbox.vue +14 -6
  8. package/dist/runtime/components/argCheckbox.vue.d.ts +11 -2
  9. package/dist/runtime/components/argComplexSelect.vue +2 -2
  10. package/dist/runtime/components/argDataLoader.vue +13 -3
  11. package/dist/runtime/components/argDataLoader.vue.d.ts +22 -1
  12. package/dist/runtime/components/argFileBtn.vue.d.ts +2 -2
  13. package/dist/runtime/components/argFilterCard.vue +37 -8
  14. package/dist/runtime/components/argFilterCard.vue.d.ts +30 -1
  15. package/dist/runtime/components/argFilterTabs.vue +109 -0
  16. package/dist/runtime/components/argFilterTabs.vue.d.ts +64 -0
  17. package/dist/runtime/components/argFooter.vue +21 -20
  18. package/dist/runtime/components/argHeader.vue +8 -2
  19. package/dist/runtime/components/argHeader.vue.d.ts +9 -0
  20. package/dist/runtime/components/argInfoBar.vue +175 -0
  21. package/dist/runtime/components/argInfoBar.vue.d.ts +35 -0
  22. package/dist/runtime/components/argInfoSection.vue +265 -0
  23. package/dist/runtime/components/argInfoSection.vue.d.ts +55 -0
  24. package/dist/runtime/components/argMainLayout.vue +46 -21
  25. package/dist/runtime/components/argMainLayout.vue.d.ts +13 -1
  26. package/dist/runtime/components/argMenuItem.vue +44 -27
  27. package/dist/runtime/components/argMenuItem.vue.d.ts +11 -1
  28. package/dist/runtime/components/argMenuLink.vue +43 -20
  29. package/dist/runtime/components/argMenuLink.vue.d.ts +9 -0
  30. package/dist/runtime/components/argMultipleChoice.vue +25 -3
  31. package/dist/runtime/components/argMultipleSelect.vue +785 -0
  32. package/dist/runtime/components/argMultipleSelect.vue.d.ts +143 -0
  33. package/dist/runtime/components/argNavBar.vue +26 -12
  34. package/dist/runtime/components/argNavBar.vue.d.ts +11 -2
  35. package/dist/runtime/components/argRadioButtons.vue +134 -0
  36. package/dist/runtime/components/argRadioButtons.vue.d.ts +48 -0
  37. package/dist/runtime/components/argSidebar.vue +89 -9
  38. package/dist/runtime/components/argSidebar.vue.d.ts +8 -2
  39. package/dist/runtime/components/argStyle.vue +18 -2
  40. package/dist/runtime/components/argSubMenu.vue +79 -37
  41. package/dist/runtime/components/argSubMenu.vue.d.ts +9 -0
  42. package/dist/runtime/components/argTable.vue +15 -1
  43. 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
- let selectedInts = ref(intArray);
52
- let selectedString = ref(stringArray);
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;