@tekkare/auriga 0.1.0

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 (45) hide show
  1. package/README.md +89 -0
  2. package/dist/module.cjs +5 -0
  3. package/dist/module.d.mts +7 -0
  4. package/dist/module.d.ts +7 -0
  5. package/dist/module.json +8 -0
  6. package/dist/module.mjs +23 -0
  7. package/dist/runtime/components/argAdvancedSearchBar.vue +866 -0
  8. package/dist/runtime/components/argAdvancedSearchBar.vue.d.ts +4 -0
  9. package/dist/runtime/components/argBtn.vue +108 -0
  10. package/dist/runtime/components/argBtn.vue.d.ts +4 -0
  11. package/dist/runtime/components/argComplexSelect.vue +558 -0
  12. package/dist/runtime/components/argComplexSelect.vue.d.ts +4 -0
  13. package/dist/runtime/components/argDataLoader.vue +337 -0
  14. package/dist/runtime/components/argDataLoader.vue.d.ts +4 -0
  15. package/dist/runtime/components/argDropdownSelect.vue +321 -0
  16. package/dist/runtime/components/argDropdownSelect.vue.d.ts +4 -0
  17. package/dist/runtime/components/argFileBtn.vue +136 -0
  18. package/dist/runtime/components/argFileBtn.vue.d.ts +4 -0
  19. package/dist/runtime/components/argHeaderTabs.vue +216 -0
  20. package/dist/runtime/components/argHeaderTabs.vue.d.ts +4 -0
  21. package/dist/runtime/components/argIcon.vue +3135 -0
  22. package/dist/runtime/components/argIcon.vue.d.ts +4 -0
  23. package/dist/runtime/components/argMultipleChoice.vue +149 -0
  24. package/dist/runtime/components/argMultipleChoice.vue.d.ts +4 -0
  25. package/dist/runtime/components/argNoData.vue +83 -0
  26. package/dist/runtime/components/argNoData.vue.d.ts +4 -0
  27. package/dist/runtime/components/argSearchInput.vue +123 -0
  28. package/dist/runtime/components/argSearchInput.vue.d.ts +4 -0
  29. package/dist/runtime/components/argSimpleLabel.vue +214 -0
  30. package/dist/runtime/components/argSimpleLabel.vue.d.ts +4 -0
  31. package/dist/runtime/components/argStyle.vue +975 -0
  32. package/dist/runtime/components/argStyle.vue.d.ts +4 -0
  33. package/dist/runtime/components/argTable.vue +863 -0
  34. package/dist/runtime/components/argTable.vue.d.ts +4 -0
  35. package/dist/runtime/components/argTags.vue +26 -0
  36. package/dist/runtime/components/argTags.vue.d.ts +4 -0
  37. package/dist/runtime/components/argTekkareLoader.vue +72 -0
  38. package/dist/runtime/components/argTekkareLoader.vue.d.ts +4 -0
  39. package/dist/runtime/components/argTooltip.vue +141 -0
  40. package/dist/runtime/components/argTooltip.vue.d.ts +4 -0
  41. package/dist/runtime/plugin.d.ts +2 -0
  42. package/dist/runtime/plugin.mjs +4 -0
  43. package/dist/types.d.mts +15 -0
  44. package/dist/types.d.ts +15 -0
  45. package/package.json +45 -0
@@ -0,0 +1,4 @@
1
+ declare const _default: {
2
+ name: string;
3
+ };
4
+ export default _default;
@@ -0,0 +1,149 @@
1
+ <template>
2
+ <div :class="`multiple-choice-${dir}`">
3
+ <div
4
+ v-for="(option, index) in element_table"
5
+ :key="index"
6
+ class="choice_row"
7
+ :class="isSelected(index, option) ? 'selected_option' : 'multiple_option'"
8
+ @click="updateSelection(index, option)"
9
+ >
10
+ <arg-icon
11
+ :name="getIcon(index, option)"
12
+ :color="getColor(index, option)"
13
+ size="20"
14
+ />
15
+ <p class="option-value">{{ option }}</p>
16
+ </div>
17
+ </div>
18
+ </template>
19
+ <script>
20
+ export default {
21
+ name: "argMultipleChoice"
22
+ };
23
+ </script>
24
+ 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",
39
+ },
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
84
+ );
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
91
+ );
92
+ } else selectedInts.value.push(index);
93
+ }
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
+ }
103
+ </script>
104
+
105
+ <style scoped>
106
+ .option-value {
107
+ font-weight: 400;
108
+ font-size: 14px;
109
+ line-height: 160%;
110
+ }
111
+
112
+ .multiple-choice-row {
113
+ display: flex;
114
+ flex-direction: row;
115
+ align-items: center;
116
+ gap: 8px;
117
+ }
118
+
119
+ .choice_row {
120
+ display: flex;
121
+ flex-direction: row;
122
+ align-items: center;
123
+ gap: 8px;
124
+ cursor: pointer;
125
+ }
126
+
127
+ .multiple-choice-column {
128
+ display: flex;
129
+ flex-direction: column;
130
+ align-items: flex-start;
131
+ gap: 8px;
132
+ }
133
+
134
+ .multiple_option:hover svg {
135
+ color: var(--primary) !important;
136
+ }
137
+
138
+ .selected_option:hover svg {
139
+ color: var(--primary-hover2) !important;
140
+ }
141
+
142
+ .selected_option p {
143
+ font-weight: 500;
144
+ }
145
+
146
+ .cursor-pointer {
147
+ cursor: pointer;
148
+ }
149
+ </style>
@@ -0,0 +1,4 @@
1
+ declare const _default: {
2
+ name: string;
3
+ };
4
+ export default _default;
@@ -0,0 +1,83 @@
1
+ <template>
2
+ <div class="common_no_data_found">
3
+ <img :src="link" alt="" />
4
+ <h2 class="no-data-title">{{ text }}</h2>
5
+ <p class="no-data-sub-title">{{ subText }}</p>
6
+ </div>
7
+ </template>
8
+ <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.",
24
+ },
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];
35
+ });
36
+ </script>
37
+
38
+ <style>
39
+ .common_no_data_found {
40
+ display: flex;
41
+ flex-direction: column;
42
+ justify-content: center;
43
+ align-items: center;
44
+
45
+ /* height: calc(100vh - 235px); */
46
+ }
47
+
48
+ .common_no_data_found > h1 {
49
+ font-family: "Figtree", sans-serif;
50
+ font-style: normal;
51
+ font-weight: 500;
52
+ font-size: 20px;
53
+
54
+ letter-spacing: 0.1px;
55
+
56
+ text-align: center;
57
+
58
+ color: var(--text-color);
59
+ }
60
+
61
+ .common_no_data_found > h2 {
62
+ margin-top: 5px;
63
+ font-family: "Figtree", sans-serif;
64
+ font-style: normal;
65
+ font-weight: 500;
66
+ font-size: 16px;
67
+
68
+ letter-spacing: 0.1px;
69
+
70
+ text-align: center;
71
+
72
+ color: var(--main-color);
73
+ }
74
+
75
+ .no-data-title {
76
+ margin-bottom: 15px;
77
+ }
78
+
79
+ .no-data-sub-title {
80
+ color: var(--primary);
81
+ font-size: 14px;
82
+ }
83
+ </style>
@@ -0,0 +1,4 @@
1
+ declare const _default: {
2
+ name: string;
3
+ };
4
+ export default _default;
@@ -0,0 +1,123 @@
1
+ <template>
2
+ <div class="filters_input_search">
3
+ <div class="search-section">
4
+ <arg-icon
5
+ name="MagnifyingGlass"
6
+ color="var(--wild-blue-yonder)"
7
+ size="20"
8
+ class="search-icon"
9
+ />
10
+ <input
11
+ :value="searchValue"
12
+ class="filters_input_style"
13
+ :placeholder="placeHolderValue"
14
+ @input="changeInput"
15
+ @keydown.enter="submitSearch"
16
+ />
17
+ </div>
18
+ <div v-if="searchValue.length > 0" class="close-icon" @click="clearValue()">
19
+ <arg-icon name="X" size="14" color="var(--cool-grey)" thickness="32" />
20
+ </div>
21
+ </div>
22
+ </template>
23
+ <script>
24
+ export default {
25
+ name: "argSearchInput"
26
+ };
27
+ </script>
28
+ <script setup lang="ts">
29
+ 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: "",
39
+ },
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;
50
+ }
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
+ </script>
65
+ <style scoped>
66
+ .filters_input_search {
67
+ display: flex;
68
+ flex-direction: row;
69
+ align-items: center;
70
+ justify-content: space-between;
71
+ padding: 0px 12px;
72
+ gap: 12px;
73
+ background: var(--pure-white);
74
+ border: 1.5px solid var(--dividers);
75
+ border-radius: 8px;
76
+ width: calc(100% - 24px);
77
+ margin: 5px 0px;
78
+ height: 40px;
79
+ }
80
+
81
+ .search-section {
82
+ display: flex;
83
+ flex-direction: row;
84
+ align-items: center;
85
+ gap: 12px;
86
+ width: 100%;
87
+ }
88
+
89
+ .filters_input_search:hover {
90
+ border: 1.5px solid rgba(33, 118, 255, 0.2) !important;
91
+ }
92
+
93
+ .filters_input_search:focus-within {
94
+ border: 1.5px solid var(--primary) !important;
95
+ box-shadow: 0px 0px 0px 4px rgba(33, 118, 255, 0.1) !important;
96
+ }
97
+
98
+ .filters_input_search:hover .search-icon,
99
+ .filters_input_search:focus-within .search-icon {
100
+ color: var(--primary) !important;
101
+ }
102
+ .filters_input_style {
103
+ width: 100%;
104
+ }
105
+ .filters_input_style,
106
+ .filters_input_style:focus-visible {
107
+ border: none;
108
+ outline: none;
109
+ }
110
+ .filters_input_style::placeholder {
111
+ color: var(--wild-blue-yonder);
112
+ }
113
+
114
+ .close-icon {
115
+ display: flex;
116
+ align-items: center;
117
+ justify-content: center;
118
+ border-radius: 100%;
119
+ background: var(--dividers);
120
+ padding: 5px;
121
+ cursor: pointer;
122
+ }
123
+ </style>
@@ -0,0 +1,4 @@
1
+ declare const _default: {
2
+ name: string;
3
+ };
4
+ export default _default;
@@ -0,0 +1,214 @@
1
+ <template>
2
+ <div class="oip_select_block" :class="disabled ? 'disabled' : ''">
3
+ <span class="oip_select_label" :class="disabled ? 'disabled' : ''">
4
+ <slot></slot>
5
+ </span>
6
+ <arg-icon class="oip_select_caret_down" name="CaretDown"></arg-icon>
7
+ </div>
8
+ </template>
9
+ <script>
10
+ export default {
11
+ name: "argSimpleLabel"
12
+ };
13
+ </script>
14
+ <script setup lang="ts">
15
+ 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
+ },
22
+ });
23
+ </script>
24
+
25
+ <style>
26
+ .oip_select_dropdown_block {
27
+ z-index: 12;
28
+ margin-top: 15px;
29
+ position: absolute;
30
+ min-width: 300px;
31
+ max-height: 500px;
32
+ border: 1.5px solid var(--dividers);
33
+ background: var(--demi-fond);
34
+ border-radius: 12px;
35
+ box-shadow: var(--overlay-shadow);
36
+ padding: 16px;
37
+ display: flex;
38
+ flex-direction: column;
39
+ }
40
+
41
+ .oip_select_block {
42
+ cursor: pointer;
43
+ width: 180px;
44
+ padding: 12px 20px;
45
+ display: flex;
46
+ border: 1.5px solid var(--dividers);
47
+ border-radius: 8px;
48
+ background: var(--pure-white);
49
+ max-width: 270px;
50
+ }
51
+
52
+ .oip_select_block:hover,
53
+ .prmt_parent_switch:hover,
54
+ .oip_select_dropdown_block:hover,
55
+ .filter_box:hover {
56
+ border: 1.5px solid rgba(33, 118, 255, 0.2) !important;
57
+ }
58
+ .oip_select_block.open,
59
+ .prmt_parent_switch.open,
60
+ .oip_select_dropdown_block.open,
61
+ .filter_box.open {
62
+ border: 1.5px solid var(--primary) !important;
63
+ box-shadow: 0px 0px 0px 4px rgba(33, 118, 255, 0.1) !important;
64
+ }
65
+
66
+ /*.oip_select_block:hover svg, .oip_select_dropdown_block:hover svg{
67
+ color: var(--primary) !important;
68
+ }*/
69
+
70
+ .oip_select_block.disabled {
71
+ cursor: not-allowed;
72
+ background: var(--dividers) !important;
73
+ }
74
+
75
+ .oip_select_label .prmt_tooltip {
76
+ display: flex;
77
+ }
78
+ .oip_select_label > p,
79
+ .oip_select_label .prmt_tooltip p {
80
+ width: 95%;
81
+ overflow: hidden;
82
+ white-space: nowrap;
83
+ text-overflow: ellipsis;
84
+ margin: 0;
85
+ }
86
+
87
+ .oip_select_label {
88
+ width: 95%;
89
+ font-weight: 700;
90
+ font-size: 14px;
91
+ line-height: 16px;
92
+ color: var(--independence);
93
+ max-height: 16px;
94
+ margin: 0px;
95
+ }
96
+
97
+ .oip_select_label.disabled {
98
+ color: var(--cool-grey);
99
+ }
100
+
101
+ .oip_select_caret_down {
102
+ width: 12px;
103
+ height: 12px;
104
+ float: right;
105
+ margin-left: auto;
106
+ }
107
+
108
+ .oip_select_complex_selection_loop_name {
109
+ font-weight: 400;
110
+ font-size: 14px;
111
+ line-height: 16px;
112
+ width: fit-content;
113
+ }
114
+
115
+ .oip_select_complex_selection_loop.del > svg {
116
+ flex-shrink: 0;
117
+ color: var(--alert) !important;
118
+ }
119
+
120
+ .oip_select_complex_selection_loop.add > svg {
121
+ flex-shrink: 0;
122
+ color: var(--primary) !important;
123
+ }
124
+
125
+ .oip_select_complex_selection_loop {
126
+ cursor: pointer;
127
+ display: flex;
128
+ gap: 8px;
129
+ margin: 8px 0;
130
+ flex-grow: 1;
131
+ }
132
+
133
+ .oip_select_complex_selection_container {
134
+ margin: 8px 0;
135
+ max-height: 350px;
136
+ overflow-y: auto;
137
+ }
138
+
139
+ .oip_select_complex_selection_loop_name {
140
+ font-weight: 400;
141
+ font-size: 14px;
142
+ line-height: 16px;
143
+ }
144
+
145
+ .oip_select_complex_selection_loop {
146
+ cursor: pointer;
147
+ display: flex;
148
+ gap: 8px;
149
+ margin: 8px 0;
150
+ }
151
+
152
+ .oip_search_container > svg {
153
+ color: var(--wild-blue-yonder) !important;
154
+ }
155
+
156
+ .oip_search_name:focus-visible {
157
+ outline: none;
158
+ }
159
+
160
+ .oip_search_name::placeholder {
161
+ font-weight: 400;
162
+ font-size: 12px;
163
+ line-height: 20px;
164
+ color: var(--wild-blue-yonder);
165
+ }
166
+
167
+ .oip_search_name {
168
+ padding-left: 8px;
169
+ width: 100%;
170
+ border: none;
171
+ }
172
+
173
+ .oip_search_container {
174
+ display: flex;
175
+ gap: 0px;
176
+ background: var(--pure-white);
177
+ border: 1px solid var(--more);
178
+ border-radius: 10px;
179
+ padding: 8px 12px;
180
+ }
181
+
182
+ .oip_select_dropdown_title {
183
+ font-weight: 500;
184
+ font-size: 14px;
185
+ color: var(--independence);
186
+ margin-bottom: 8px;
187
+ }
188
+
189
+ .oip_select_dropdown_selection_container {
190
+ margin-top: 16px;
191
+ display: flex;
192
+ flex-direction: column;
193
+ gap: 0px;
194
+ flex: 1 1 auto;
195
+ overflow-y: auto;
196
+ min-height: 10px;
197
+ }
198
+
199
+ .oip_select_dropdown_selection_container:only-child {
200
+ margin-top: 0px;
201
+ }
202
+
203
+ .oip_select_complex_selection_loop > svg.add {
204
+ fill: var(--accent) !important;
205
+ color: var(--pure-white) !important;
206
+ }
207
+ </style>
208
+ <style scoped>
209
+ .oip_select_complex_selection_loop > svg.add {
210
+ width: 19px;
211
+ height: 19px;
212
+ margin: -2px;
213
+ }
214
+ </style>
@@ -0,0 +1,4 @@
1
+ declare const _default: {
2
+ name: string;
3
+ };
4
+ export default _default;