@tekkare/auriga 0.1.0 → 0.1.3

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 (36) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/runtime/components/argAdvancedSearchBar.vue +318 -321
  3. package/dist/runtime/components/argAdvancedSearchBar.vue.d.ts +89 -3
  4. package/dist/runtime/components/argBtn.vue +48 -39
  5. package/dist/runtime/components/argBtn.vue.d.ts +72 -3
  6. package/dist/runtime/components/argComplexSelect.vue +255 -256
  7. package/dist/runtime/components/argComplexSelect.vue.d.ts +175 -3
  8. package/dist/runtime/components/argDataLoader.vue +8 -3
  9. package/dist/runtime/components/argDataLoader.vue.d.ts +1 -3
  10. package/dist/runtime/components/argDropdownSelect.vue +145 -138
  11. package/dist/runtime/components/argDropdownSelect.vue.d.ts +139 -3
  12. package/dist/runtime/components/argFileBtn.vue +58 -56
  13. package/dist/runtime/components/argFileBtn.vue.d.ts +60 -3
  14. package/dist/runtime/components/argHeaderTabs.vue +94 -101
  15. package/dist/runtime/components/argHeaderTabs.vue.d.ts +30 -3
  16. package/dist/runtime/components/argIcon.vue +2136 -3117
  17. package/dist/runtime/components/argIcon.vue.d.ts +1110 -2
  18. package/dist/runtime/components/argMultipleChoice.vue +84 -78
  19. package/dist/runtime/components/argMultipleChoice.vue.d.ts +49 -3
  20. package/dist/runtime/components/argNoData.vue +28 -25
  21. package/dist/runtime/components/argNoData.vue.d.ts +26 -3
  22. package/dist/runtime/components/argSearchInput.vue +38 -37
  23. package/dist/runtime/components/argSearchInput.vue.d.ts +30 -3
  24. package/dist/runtime/components/argSimpleLabel.vue +13 -11
  25. package/dist/runtime/components/argSimpleLabel.vue.d.ts +13 -3
  26. package/dist/runtime/components/argStyle.vue +8 -3
  27. package/dist/runtime/components/argStyle.vue.d.ts +1 -3
  28. package/dist/runtime/components/argTable.vue +384 -395
  29. package/dist/runtime/components/argTable.vue.d.ts +337 -3
  30. package/dist/runtime/components/argTags.vue +20 -10
  31. package/dist/runtime/components/argTags.vue.d.ts +26 -3
  32. package/dist/runtime/components/argTekkareLoader.vue +5 -2
  33. package/dist/runtime/components/argTekkareLoader.vue.d.ts +1 -3
  34. package/dist/runtime/components/argTooltip.vue +11 -11
  35. package/dist/runtime/components/argTooltip.vue.d.ts +39 -3
  36. package/package.json +5 -2
@@ -16,90 +16,96 @@
16
16
  </div>
17
17
  </div>
18
18
  </template>
19
+
19
20
  <script>
20
- export default {
21
- name: "argMultipleChoice"
22
- };
23
- </script>
24
21
  import argIcon from "./argIcon.vue";
25
- <script setup lang="ts">
26
- import { onMounted, ref, computed, defineProps, defineEmits } from "vue";
27
- const props = defineProps({
28
- element_table: {
29
- type: Array,
30
- required: true,
31
- },
32
- default_select: {
33
- type: Array,
34
- default: () => [],
35
- },
36
- dir: {
37
- type: String,
38
- default: "column",
22
+ import {
23
+ ref,
24
+ defineComponent
25
+ } from "vue";
26
+ export default defineComponent({
27
+ name: "argMultipleChoice",
28
+ components: { argIcon },
29
+ props: {
30
+ element_table: {
31
+ type: Array,
32
+ required: true
33
+ },
34
+ default_select: {
35
+ type: Array,
36
+ default: () => []
37
+ },
38
+ dir: {
39
+ type: String,
40
+ default: "column"
41
+ },
42
+ return_value: {
43
+ type: Boolean,
44
+ default: false
45
+ }
39
46
  },
40
- return_value: {
41
- type: Boolean,
42
- default: false,
43
- },
44
- });
45
-
46
- const intArray: number[] = [];
47
- const stringArray: string[] = [];
48
- let selectedInts = ref(intArray);
49
- let selectedString = ref(stringArray);
50
- const emit = defineEmits(["changeElement", "update:Array"]);
51
-
52
- function isSelected(index: number, option: string) {
53
- if (
54
- selectedInts.value?.includes(index) ||
55
- selectedString.value?.includes(option)
56
- ) {
57
- return true;
58
- } else return false;
59
- }
60
- function getIcon(index: number, option: string) {
61
- if (
62
- selectedInts.value.includes(index) ||
63
- selectedString.value.includes(option)
64
- ) {
65
- return "CheckSquareFill";
66
- } else return "Square";
67
- }
68
- function getColor(index: number, option: string) {
69
- if (
70
- selectedInts.value.includes(index) ||
71
- selectedString.value.includes(option)
72
- ) {
73
- return "var(--primary)";
74
- } else return "var(--lavendar-grey)";
75
- }
76
-
77
- function updateSelection(index: number, option: string) {
78
- var selected = props.return_value ? selectedString.value : selectedInts.value;
79
- if (props.return_value) {
80
- if (selectedString.value.includes(option)) {
81
- selectedString.value.splice(
82
- selected.findIndex((a) => a === option),
83
- 1
47
+ emits: ["changeElement", "update:Array"],
48
+ setup(props, { emit }) {
49
+ const intArray = [];
50
+ const stringArray = [];
51
+ let selectedInts = ref(intArray);
52
+ let selectedString = ref(stringArray);
53
+ function isSelected(index, option) {
54
+ if (selectedInts.value?.includes(index) || selectedString.value?.includes(option)) {
55
+ return true;
56
+ } else
57
+ return false;
58
+ }
59
+ function getIcon(index, option) {
60
+ if (selectedInts.value.includes(index) || selectedString.value.includes(option)) {
61
+ return "CheckSquareFill";
62
+ } else
63
+ return "Square";
64
+ }
65
+ function getColor(index, option) {
66
+ if (selectedInts.value.includes(index) || selectedString.value.includes(option)) {
67
+ return "var(--primary)";
68
+ } else
69
+ return "var(--lavendar-grey)";
70
+ }
71
+ function updateSelection(index, option) {
72
+ let selected = props.return_value ? selectedString.value : selectedInts.value;
73
+ if (props.return_value) {
74
+ if (selectedString.value.includes(option)) {
75
+ selectedString.value.splice(
76
+ selected.findIndex((a) => a === option),
77
+ 1
78
+ );
79
+ } else
80
+ selectedString.value.push(option);
81
+ } else {
82
+ if (selectedInts.value.includes(index)) {
83
+ selectedInts.value.splice(
84
+ selected.findIndex((a) => a === index),
85
+ 1
86
+ );
87
+ } else
88
+ selectedInts.value.push(index);
89
+ }
90
+ emit(
91
+ "changeElement",
92
+ props.return_value ? selectedString.value : selectedInts.value
84
93
  );
85
- } else selectedString.value.push(option);
86
- } else {
87
- if (selectedInts.value.includes(index)) {
88
- selectedInts.value.splice(
89
- selected.findIndex((a) => a === index),
90
- 1
94
+ emit(
95
+ "update:Array",
96
+ props.return_value ? selectedString.value : selectedInts.value
91
97
  );
92
- } else selectedInts.value.push(index);
98
+ }
99
+ return {
100
+ updateSelection,
101
+ getColor,
102
+ getIcon,
103
+ isSelected,
104
+ selectedInts,
105
+ selectedString
106
+ };
93
107
  }
94
- emit(
95
- "changeElement",
96
- props.return_value ? selectedString.value : selectedInts.value
97
- );
98
- emit(
99
- "update:Array",
100
- props.return_value ? selectedString.value : selectedInts.value
101
- );
102
- }
108
+ });
103
109
  </script>
104
110
 
105
111
  <style scoped>
@@ -1,4 +1,50 @@
1
- declare const _default: {
2
- name: string;
3
- };
1
+ declare const _default: import("vue").DefineComponent<{
2
+ element_table: {
3
+ type: ArrayConstructor;
4
+ required: true;
5
+ };
6
+ default_select: {
7
+ type: ArrayConstructor;
8
+ default: () => never[];
9
+ };
10
+ dir: {
11
+ type: StringConstructor;
12
+ default: string;
13
+ };
14
+ return_value: {
15
+ type: BooleanConstructor;
16
+ default: boolean;
17
+ };
18
+ }, {
19
+ updateSelection: (index: number, option: string) => void;
20
+ getColor: (index: number, option: string) => "var(--primary)" | "var(--lavendar-grey)";
21
+ getIcon: (index: number, option: string) => "CheckSquareFill" | "Square";
22
+ isSelected: (index: number, option: string) => boolean;
23
+ selectedInts: import("vue").Ref<number[]>;
24
+ selectedString: import("vue").Ref<string[]>;
25
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("changeElement" | "update:Array")[], "changeElement" | "update:Array", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
26
+ element_table: {
27
+ type: ArrayConstructor;
28
+ required: true;
29
+ };
30
+ default_select: {
31
+ type: ArrayConstructor;
32
+ default: () => never[];
33
+ };
34
+ dir: {
35
+ type: StringConstructor;
36
+ default: string;
37
+ };
38
+ return_value: {
39
+ type: BooleanConstructor;
40
+ default: boolean;
41
+ };
42
+ }>> & {
43
+ onChangeElement?: ((...args: any[]) => any) | undefined;
44
+ "onUpdate:Array"?: ((...args: any[]) => any) | undefined;
45
+ }, {
46
+ return_value: boolean;
47
+ default_select: unknown[];
48
+ dir: string;
49
+ }, {}>;
4
50
  export default _default;
@@ -5,33 +5,36 @@
5
5
  <p class="no-data-sub-title">{{ subText }}</p>
6
6
  </div>
7
7
  </template>
8
+
8
9
  <script>
9
- export default {
10
- name: "argNoData"
11
- };
12
- </script>
13
- <script setup lang="ts">
14
- import { onMounted, ref, computed, defineProps, defineEmits } from "vue";
15
- const props = defineProps({
16
- text: {
17
- type: String,
18
- required: false,
19
- default: "Hmmm... there's no activity to report yet.",
20
- },
21
- subText: {
22
- type: String,
23
- default: "Start browsing content by clicking on filters.",
10
+ import {
11
+ computed,
12
+ defineComponent
13
+ } from "vue";
14
+ export default defineComponent({
15
+ props: {
16
+ text: {
17
+ type: String,
18
+ required: false,
19
+ default: "Hmmm... there's no activity to report yet."
20
+ },
21
+ subText: {
22
+ type: String,
23
+ default: "Start browsing content by clicking on filters."
24
+ }
24
25
  },
25
- });
26
-
27
- var link = computed(() => {
28
- const links = [
29
- "https://rcd-media.com/synapps/fda/empty-box.svg",
30
- "https://rcd-media.com/synapps/fda/sad-ghost.svg",
31
- "https://rcd-media.com/synapps/fda/sad-box.svg",
32
- ];
33
- const random = Math.floor(Math.random() * links.length);
34
- return links[random];
26
+ setup() {
27
+ const link = computed(() => {
28
+ const links = [
29
+ "https://rcd-media.com/synapps/fda/empty-box.svg",
30
+ "https://rcd-media.com/synapps/fda/sad-ghost.svg",
31
+ "https://rcd-media.com/synapps/fda/sad-box.svg"
32
+ ];
33
+ const random = Math.floor(Math.random() * links.length);
34
+ return links[random];
35
+ });
36
+ return { link };
37
+ }
35
38
  });
36
39
  </script>
37
40
 
@@ -1,4 +1,27 @@
1
- declare const _default: {
2
- name: string;
3
- };
1
+ declare const _default: import("vue").DefineComponent<{
2
+ text: {
3
+ type: StringConstructor;
4
+ required: false;
5
+ default: string;
6
+ };
7
+ subText: {
8
+ type: StringConstructor;
9
+ default: string;
10
+ };
11
+ }, {
12
+ link: import("vue").ComputedRef<string>;
13
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
14
+ text: {
15
+ type: StringConstructor;
16
+ required: false;
17
+ default: string;
18
+ };
19
+ subText: {
20
+ type: StringConstructor;
21
+ default: string;
22
+ };
23
+ }>>, {
24
+ text: string;
25
+ subText: string;
26
+ }, {}>;
4
27
  export default _default;
@@ -21,46 +21,47 @@
21
21
  </div>
22
22
  </template>
23
23
  <script>
24
- export default {
25
- name: "argSearchInput"
26
- };
27
- </script>
28
- <script setup lang="ts">
29
24
  import argIcon from "./argIcon.vue";
30
- import { onMounted, ref, computed, defineProps, defineEmits, watch } from "vue";
31
- const props = defineProps({
32
- placeHolderValue: {
33
- type: String,
34
- default: "Search here...",
35
- },
36
- value: {
37
- type: String,
38
- default: "",
25
+ import {
26
+ ref,
27
+ watch,
28
+ defineComponent
29
+ } from "vue";
30
+ export default defineComponent({
31
+ name: "argSearchInput",
32
+ components: { argIcon },
33
+ props: {
34
+ placeHolderValue: {
35
+ type: String,
36
+ default: "Search here..."
37
+ },
38
+ value: {
39
+ type: String,
40
+ default: ""
41
+ }
39
42
  },
40
- });
41
-
42
- const emit = defineEmits(["update:Value", "submitSearch"]);
43
-
44
- var searchValue = ref(props.value);
45
-
46
- watch(
47
- () => props.value,
48
- (new_value: string) => {
49
- searchValue.value = new_value;
43
+ emits: ["update:Value", "submitSearch"],
44
+ setup(props, { emit }) {
45
+ const searchValue = ref(props.value);
46
+ watch(
47
+ () => props.value,
48
+ (new_value) => {
49
+ searchValue.value = new_value;
50
+ }
51
+ );
52
+ function changeInput(event) {
53
+ emit("update:Value", event.target.value);
54
+ }
55
+ function submitSearch() {
56
+ emit("submitSearch");
57
+ }
58
+ function clearValue() {
59
+ searchValue.value = "";
60
+ emit("update:Value", searchValue.value);
61
+ }
62
+ return { searchValue, changeInput, submitSearch, clearValue };
50
63
  }
51
- );
52
-
53
- function changeInput(event: Event) {
54
- emit("update:Value", event.target.value);
55
- }
56
- function submitSearch() {
57
- emit("submitSearch");
58
- }
59
-
60
- function clearValue() {
61
- searchValue.value = "";
62
- emit("update:Value", searchValue.value);
63
- }
64
+ });
64
65
  </script>
65
66
  <style scoped>
66
67
  .filters_input_search {
@@ -1,4 +1,31 @@
1
- declare const _default: {
2
- name: string;
3
- };
1
+ declare const _default: import("vue").DefineComponent<{
2
+ placeHolderValue: {
3
+ type: StringConstructor;
4
+ default: string;
5
+ };
6
+ value: {
7
+ type: StringConstructor;
8
+ default: string;
9
+ };
10
+ }, {
11
+ searchValue: import("vue").Ref<string>;
12
+ changeInput: (event: Event) => void;
13
+ submitSearch: () => void;
14
+ clearValue: () => void;
15
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:Value" | "submitSearch")[], "update:Value" | "submitSearch", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
16
+ placeHolderValue: {
17
+ type: StringConstructor;
18
+ default: string;
19
+ };
20
+ value: {
21
+ type: StringConstructor;
22
+ default: string;
23
+ };
24
+ }>> & {
25
+ "onUpdate:Value"?: ((...args: any[]) => any) | undefined;
26
+ onSubmitSearch?: ((...args: any[]) => any) | undefined;
27
+ }, {
28
+ value: string;
29
+ placeHolderValue: string;
30
+ }, {}>;
4
31
  export default _default;
@@ -6,19 +6,21 @@
6
6
  <arg-icon class="oip_select_caret_down" name="CaretDown"></arg-icon>
7
7
  </div>
8
8
  </template>
9
+
9
10
  <script>
10
- export default {
11
- name: "argSimpleLabel"
12
- };
13
- </script>
14
- <script setup lang="ts">
15
11
  import argIcon from "./argIcon.vue";
16
- import { onMounted, ref, computed, defineProps, defineEmits } from "vue";
17
- const props = defineProps({
18
- disabled: {
19
- type: Boolean,
20
- default: false,
21
- },
12
+ import {
13
+ defineComponent
14
+ } from "vue";
15
+ export default defineComponent({
16
+ name: "argSimpleLabel",
17
+ components: { argIcon },
18
+ props: {
19
+ disabled: {
20
+ type: Boolean,
21
+ default: false
22
+ }
23
+ }
22
24
  });
23
25
  </script>
24
26
 
@@ -1,4 +1,14 @@
1
- declare const _default: {
2
- name: string;
3
- };
1
+ declare const _default: import("vue").DefineComponent<{
2
+ disabled: {
3
+ type: BooleanConstructor;
4
+ default: boolean;
5
+ };
6
+ }, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
7
+ disabled: {
8
+ type: BooleanConstructor;
9
+ default: boolean;
10
+ };
11
+ }>>, {
12
+ disabled: boolean;
13
+ }, {}>;
4
14
  export default _default;
@@ -1,8 +1,13 @@
1
- <template></template>
1
+ <template>
2
+ <div />
3
+ </template>
2
4
  <script>
3
- export default {
5
+ import {
6
+ defineComponent
7
+ } from "vue";
8
+ export default defineComponent({
4
9
  name: "argStyle"
5
- };
10
+ });
6
11
  </script>
7
12
  <style>
8
13
  @import url("https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
@@ -1,4 +1,2 @@
1
- declare const _default: {
2
- name: string;
3
- };
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
4
2
  export default _default;