@tekkare/auriga 0.1.3 → 0.1.5

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 (47) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/runtime/components/argAdvancedSearchBar.vue +2 -1
  3. package/dist/runtime/components/argChart.vue +663 -0
  4. package/dist/runtime/components/argChart.vue.d.ts +110 -0
  5. package/dist/runtime/components/argCheckbox.vue +153 -0
  6. package/dist/runtime/components/argCheckbox.vue.d.ts +58 -0
  7. package/dist/runtime/components/argComplexSelect.vue +118 -23
  8. package/dist/runtime/components/argComplexSelect.vue.d.ts +57 -2
  9. package/dist/runtime/components/argDropdownSelect.vue +27 -28
  10. package/dist/runtime/components/argDropdownSelect.vue.d.ts +20 -3
  11. package/dist/runtime/components/argFlag.vue +277 -0
  12. package/dist/runtime/components/argFlag.vue.d.ts +258 -0
  13. package/dist/runtime/components/argFooter.vue +41 -0
  14. package/dist/runtime/components/argFooter.vue.d.ts +2 -0
  15. package/dist/runtime/components/argHeader.vue +96 -0
  16. package/dist/runtime/components/argHeader.vue.d.ts +44 -0
  17. package/dist/runtime/components/argHeaderTabs.vue +10 -12
  18. package/dist/runtime/components/argHeaderTabs.vue.d.ts +2 -3
  19. package/dist/runtime/components/argInfoBar.vue +0 -0
  20. package/dist/runtime/components/argLineBreak.vue +21 -0
  21. package/dist/runtime/components/argLineBreak.vue.d.ts +2 -0
  22. package/dist/runtime/components/argMainLayout.vue +56 -0
  23. package/dist/runtime/components/argMainLayout.vue.d.ts +2 -0
  24. package/dist/runtime/components/argMenuItem.vue +73 -0
  25. package/dist/runtime/components/argMenuItem.vue.d.ts +36 -0
  26. package/dist/runtime/components/argMenuLink.vue +39 -0
  27. package/dist/runtime/components/argMenuLink.vue.d.ts +32 -0
  28. package/dist/runtime/components/argMultipleChoice.vue +2 -2
  29. package/dist/runtime/components/argMultipleChoice.vue.d.ts +2 -2
  30. package/dist/runtime/components/argNavBar.vue +319 -0
  31. package/dist/runtime/components/argNavBar.vue.d.ts +35 -0
  32. package/dist/runtime/components/argNote.vue +87 -0
  33. package/dist/runtime/components/argNote.vue.d.ts +42 -0
  34. package/dist/runtime/components/argSearchInput.vue +2 -1
  35. package/dist/runtime/components/argSearchInput.vue.d.ts +2 -0
  36. package/dist/runtime/components/argSidebar.vue +114 -0
  37. package/dist/runtime/components/argSidebar.vue.d.ts +33 -0
  38. package/dist/runtime/components/argSimpleLabel.vue +57 -14
  39. package/dist/runtime/components/argSimpleLabel.vue.d.ts +18 -0
  40. package/dist/runtime/components/argStyle.vue +14 -1
  41. package/dist/runtime/components/argSubMenu.vue +67 -0
  42. package/dist/runtime/components/argSubMenu.vue.d.ts +30 -0
  43. package/dist/runtime/components/argSwitch.vue +153 -0
  44. package/dist/runtime/components/argSwitch.vue.d.ts +37 -0
  45. package/dist/runtime/components/argTable.vue.d.ts +3 -3
  46. package/dist/runtime/components/argTooltip.vue +1 -1
  47. package/package.json +6 -3
@@ -0,0 +1,258 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ iso: {
3
+ type: StringConstructor;
4
+ };
5
+ slug: {
6
+ type: StringConstructor;
7
+ };
8
+ height: {
9
+ type: StringConstructor;
10
+ default: string;
11
+ };
12
+ round: {
13
+ type: BooleanConstructor;
14
+ default: boolean;
15
+ };
16
+ emoji: {
17
+ type: BooleanConstructor;
18
+ default: boolean;
19
+ };
20
+ }, {
21
+ name: {
22
+ iso: string;
23
+ slug: string;
24
+ name: string;
25
+ }[];
26
+ countriesList: {
27
+ AD: string;
28
+ AE: string;
29
+ AF: string;
30
+ AG: string;
31
+ AL: string;
32
+ AM: string;
33
+ AN: string;
34
+ AO: string;
35
+ AR: string;
36
+ AT: string;
37
+ AU: string;
38
+ AW: string;
39
+ AZ: string;
40
+ BA: string;
41
+ BB: string;
42
+ BD: string;
43
+ BE: string;
44
+ BF: string;
45
+ BG: string;
46
+ BS: string;
47
+ BI: string;
48
+ BJ: string;
49
+ BN: string;
50
+ BO: string;
51
+ BR: string;
52
+ BH: string;
53
+ BT: string;
54
+ BV: string;
55
+ BW: string;
56
+ BY: string;
57
+ BZ: string;
58
+ CA: string;
59
+ CD: string;
60
+ CF: string;
61
+ CG: string;
62
+ CH: string;
63
+ CI: string;
64
+ CL: string;
65
+ CM: string;
66
+ CN: string;
67
+ CO: string;
68
+ CR: string;
69
+ CU: string;
70
+ CV: string;
71
+ CW: string;
72
+ CY: string;
73
+ CZ: string;
74
+ DE: string;
75
+ DJ: string;
76
+ DK: string;
77
+ DM: string;
78
+ DO: string;
79
+ DZ: string;
80
+ EC: string;
81
+ EE: string;
82
+ EG: string;
83
+ ER: string;
84
+ ES: string;
85
+ ET: string;
86
+ FI: string;
87
+ FJ: string;
88
+ FM: string;
89
+ FR: string;
90
+ GA: string;
91
+ 'GB-ENG': string;
92
+ 'GB-NIR': string;
93
+ 'GB-SCT': string;
94
+ 'GB-WLS': string;
95
+ GB: string;
96
+ GD: string;
97
+ GE: string;
98
+ GH: string;
99
+ GM: string;
100
+ GN: string;
101
+ GQ: string;
102
+ GR: string;
103
+ GT: string;
104
+ GW: string;
105
+ GY: string;
106
+ HK: string;
107
+ HN: string;
108
+ HR: string;
109
+ HT: string;
110
+ HU: string;
111
+ ID: string;
112
+ IE: string;
113
+ IL: string;
114
+ IN: string;
115
+ IQ: string;
116
+ IR: string;
117
+ IS: string;
118
+ IT: string;
119
+ JM: string;
120
+ JO: string;
121
+ JP: string;
122
+ KE: string;
123
+ KG: string;
124
+ KH: string;
125
+ KI: string;
126
+ KM: string;
127
+ KP: string;
128
+ KR: string;
129
+ KW: string;
130
+ KZ: string;
131
+ LA: string;
132
+ LB: string;
133
+ LC: string;
134
+ LI: string;
135
+ LK: string;
136
+ LR: string;
137
+ LS: string;
138
+ LT: string;
139
+ LU: string;
140
+ LV: string;
141
+ LY: string;
142
+ MA: string;
143
+ MC: string;
144
+ MD: string;
145
+ ME: string;
146
+ MG: string;
147
+ MH: string;
148
+ MK: string;
149
+ ML: string;
150
+ MM: string;
151
+ MN: string;
152
+ MR: string;
153
+ MT: string;
154
+ MU: string;
155
+ MV: string;
156
+ MW: string;
157
+ MX: string;
158
+ MY: string;
159
+ MZ: string;
160
+ NA: string;
161
+ NE: string;
162
+ NG: string;
163
+ NI: string;
164
+ NL: string;
165
+ NO: string;
166
+ NR: string;
167
+ NZ: string;
168
+ OM: string;
169
+ PA: string;
170
+ PE: string;
171
+ PG: string;
172
+ PH: string;
173
+ PK: string;
174
+ PL: string;
175
+ PS: string;
176
+ PT: string;
177
+ PW: string;
178
+ PY: string;
179
+ QA: string;
180
+ RO: string;
181
+ RS: string;
182
+ RU: string;
183
+ RW: string;
184
+ SA: string;
185
+ SB: string;
186
+ SC: string;
187
+ SD: string;
188
+ SE: string;
189
+ SG: string;
190
+ SI: string;
191
+ SK: string;
192
+ SL: string;
193
+ SM: string;
194
+ SN: string;
195
+ SO: string;
196
+ SR: string;
197
+ SS: string;
198
+ ST: string;
199
+ SV: string;
200
+ SX: string;
201
+ SY: string;
202
+ SZ: string;
203
+ TD: string;
204
+ TG: string;
205
+ TH: string;
206
+ TJ: string;
207
+ TL: string;
208
+ TM: string;
209
+ TN: string;
210
+ TO: string;
211
+ TR: string;
212
+ TT: string;
213
+ TV: string;
214
+ TZ: string;
215
+ UA: string;
216
+ UG: string;
217
+ US: string;
218
+ UY: string;
219
+ UZ: string;
220
+ VC: string;
221
+ VE: string;
222
+ VI: string;
223
+ VN: string;
224
+ VU: string;
225
+ WS: string;
226
+ YE: string;
227
+ ZA: string;
228
+ ZM: string;
229
+ ZW: string;
230
+ };
231
+ countryName: import("vue").ComputedRef<string>;
232
+ size: import("vue").ComputedRef<string>;
233
+ getEmojiFlag: (name: string) => string;
234
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
235
+ iso: {
236
+ type: StringConstructor;
237
+ };
238
+ slug: {
239
+ type: StringConstructor;
240
+ };
241
+ height: {
242
+ type: StringConstructor;
243
+ default: string;
244
+ };
245
+ round: {
246
+ type: BooleanConstructor;
247
+ default: boolean;
248
+ };
249
+ emoji: {
250
+ type: BooleanConstructor;
251
+ default: boolean;
252
+ };
253
+ }>>, {
254
+ height: string;
255
+ round: boolean;
256
+ emoji: boolean;
257
+ }, {}>;
258
+ export default _default;
@@ -0,0 +1,41 @@
1
+ <template>
2
+ <div class="oip_footer">
3
+ <div class="oip_footer_text">
4
+ <h2>Powered by</h2>
5
+ <img src="https://rcd-media.com/tekkare/logos/tekkare_logo.svg" />
6
+ </div>
7
+ </div>
8
+ </template>
9
+ <script>
10
+ import {
11
+ defineComponent
12
+ } from "vue";
13
+ import argIcon from "./argIcon.vue";
14
+ import argStyle from "./argStyle.vue";
15
+ export default defineComponent({
16
+ name: "argFooter",
17
+ components: { argIcon, argStyle }
18
+ });
19
+ </script>
20
+ <style>
21
+ .oip_footer {
22
+ background: var(--pure-white);
23
+ padding: 24px 96px;
24
+ margin-top: 24px;
25
+ box-shadow: 0px 4px 8px rgba(37, 99, 235, 0.04), 0px 0px 2px rgba(37, 99, 235, 0.06), 0px 0px 1px rgba(37, 99, 235, 0.04);
26
+ }
27
+ .oip_footer_text {
28
+ display: flex;
29
+ flex-direction: row;
30
+ justify-content: flex-end;
31
+ gap: 24px;
32
+ align-items: flex-end;
33
+ }
34
+ .oip_footer_text h2{
35
+ font-style: normal;
36
+ font-size: 14px;
37
+ line-height: 16px;
38
+ color: var(--independence);
39
+ font-weight: normal;
40
+ }
41
+ </style>
@@ -0,0 +1,2 @@
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<{}>>, {}, {}>;
2
+ export default _default;
@@ -0,0 +1,96 @@
1
+ <template>
2
+ <div class="arg_header" id="arg_header">
3
+ <div class="arg_header_title_group">
4
+ <nuxt-link :to="backTo" v-if="backTo" class="arg_header_back_button">
5
+ <arg-icon name="CaretLeft" size="20px" />
6
+ </nuxt-link>
7
+ <button @click="goBack()" v-else class="arg_header_back_button">
8
+ <arg-icon name="CaretLeft" size="20px" />
9
+ </button>
10
+ <h1 class="arg_header_title">
11
+ {{ title }}
12
+ </h1>
13
+ <slot name="group" />
14
+ </div>
15
+ <arg-header-tabs
16
+ v-if="tabs"
17
+ :tabs="tabs"
18
+ :index_menu="index_menu"
19
+ @updateMenu="updateMenu"
20
+ />
21
+ </div>
22
+ </template>
23
+ <script>
24
+ import {
25
+ defineComponent
26
+ } from "vue";
27
+ import argIcon from "./argIcon.vue";
28
+ import argStyle from "./argStyle.vue";
29
+ import argHeaderTabs from "./argHeaderTabs.vue";
30
+ import { useRouter } from "vue-router";
31
+ export default defineComponent({
32
+ name: "argHeader",
33
+ components: { argIcon, argStyle, argHeaderTabs },
34
+ props: {
35
+ title: { type: String, required: true },
36
+ backTo: { type: String, required: false },
37
+ tabs: { type: Array, required: false },
38
+ index_menu: { type: [String, Number], default: 1 }
39
+ },
40
+ emits: ["updateMenu", "update:Menu"],
41
+ setup(props, { emit }) {
42
+ const router = useRouter();
43
+ function goBack() {
44
+ if (props.backTo) {
45
+ router.push(props.backTo);
46
+ } else {
47
+ router.back();
48
+ }
49
+ }
50
+ function updateMenu(value) {
51
+ emit("updateMenu", value);
52
+ emit("update:Menu", value);
53
+ }
54
+ return { goBack, updateMenu };
55
+ }
56
+ });
57
+ </script>
58
+ <style>
59
+ .arg_header {
60
+ -webkit-backdrop-filter: blur(12px);
61
+ backdrop-filter: blur(12px);
62
+ display: flex;
63
+ flex-direction: column;
64
+ gap: 24px;
65
+ padding: 24px 32px 12px;
66
+ position: fixed;
67
+ top: 0;
68
+ z-index: 99;
69
+ border-bottom: 1px solid var(--base-dividers, #ececf2);
70
+ background: rgba(253, 253, 255, 0.8);
71
+ width: 100%;
72
+ box-sizing: border-box;
73
+ }
74
+ .arg_header_title_group {
75
+ display: flex;
76
+ align-items: center;
77
+ gap: 16px;
78
+ align-self: stretch;
79
+ }
80
+ .arg_header_title {
81
+ font-size: 20px;
82
+ font-style: normal;
83
+ font-weight: 900;
84
+ line-height: normal;
85
+ flex-grow: 2;
86
+ }
87
+ .arg_header_back_button {
88
+ cursor: pointer;
89
+ border: 0px solid transparent;
90
+ padding: 0;
91
+ background: transparent;
92
+ }
93
+ .arg_header:has(> .header_tabs_section) {
94
+ padding: 24px 32px 0px;
95
+ }
96
+ </style>
@@ -0,0 +1,44 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ title: {
3
+ type: StringConstructor;
4
+ required: true;
5
+ };
6
+ backTo: {
7
+ type: StringConstructor;
8
+ required: false;
9
+ };
10
+ tabs: {
11
+ type: ArrayConstructor;
12
+ required: false;
13
+ };
14
+ index_menu: {
15
+ type: (StringConstructor | NumberConstructor)[];
16
+ default: number;
17
+ };
18
+ }, {
19
+ goBack: () => void;
20
+ updateMenu: (value: number | string) => void;
21
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("updateMenu" | "update:Menu")[], "updateMenu" | "update:Menu", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
22
+ title: {
23
+ type: StringConstructor;
24
+ required: true;
25
+ };
26
+ backTo: {
27
+ type: StringConstructor;
28
+ required: false;
29
+ };
30
+ tabs: {
31
+ type: ArrayConstructor;
32
+ required: false;
33
+ };
34
+ index_menu: {
35
+ type: (StringConstructor | NumberConstructor)[];
36
+ default: number;
37
+ };
38
+ }>> & {
39
+ onUpdateMenu?: ((...args: any[]) => any) | undefined;
40
+ "onUpdate:Menu"?: ((...args: any[]) => any) | undefined;
41
+ }, {
42
+ index_menu: string | number;
43
+ }, {}>;
44
+ export default _default;
@@ -2,10 +2,13 @@
2
2
  <div class="header_tabs_section">
3
3
  <div class="header_tabs">
4
4
  <div class="header_tabs_overlay">
5
- <div class="header_one_tab_active-selector" id="header_nav_bar"></div>
5
+ <div
6
+ class="header_one_tab_active-selector"
7
+ :id="`header_nav_bar`"
8
+ ></div>
6
9
  <span
7
10
  class="header_one_tab_container"
8
- v-for="(tab, index) in removeNullProps(tabs)"
11
+ v-for="(tab, index) in tabs"
9
12
  :key="index"
10
13
  :id="`headerTab${index + 1}`"
11
14
  >
@@ -24,7 +27,6 @@
24
27
  </div>
25
28
  </template>
26
29
  <script>
27
- import _ from "lodash";
28
30
  import {
29
31
  onMounted,
30
32
  ref,
@@ -44,7 +46,7 @@ export default defineComponent({
44
46
  default: 1
45
47
  }
46
48
  },
47
- emits: ["updateMenu", "update:Value"],
49
+ emits: ["updateMenu", "update:Menu"],
48
50
  setup(props, { emit }) {
49
51
  const true_index_menu = ref(props.index_menu);
50
52
  const scrollValue = ref(0);
@@ -55,13 +57,10 @@ export default defineComponent({
55
57
  true_index_menu.value = new_index_menu;
56
58
  }
57
59
  );
58
- function removeNullProps(object) {
59
- return _.reject(object, (value) => value === null);
60
- }
61
60
  const tabsWidth = computed(() => {
62
61
  const table = [];
63
62
  for (let i = 0; i < props.tabs.length; i++) {
64
- let domTab = document?.getElementById(`headerTab${i + 1}`);
63
+ const domTab = document?.getElementById(`headerTab${i + 1}`);
65
64
  if (domTab !== null) {
66
65
  table.push(domTab.offsetWidth);
67
66
  }
@@ -84,16 +83,16 @@ export default defineComponent({
84
83
  function changeMenu(value) {
85
84
  if (typeof true_index_menu.value === "string") {
86
85
  emit("updateMenu", value.toString());
87
- emit("update:Value", value.toString());
86
+ emit("update:Menu", value.toString());
88
87
  } else {
89
88
  emit("updateMenu", value);
90
- emit("update:Value", value);
89
+ emit("update:Menu", value);
91
90
  }
92
91
  true_index_menu.value = value;
93
92
  setBarWidth();
94
93
  }
95
94
  function setBarWidth() {
96
- const selector = document?.getElementById("header_nav_bar");
95
+ const selector = document?.getElementById(`header_nav_bar`);
97
96
  const element = document?.getElementById(
98
97
  `headerTab${true_index_menu.value}`
99
98
  );
@@ -125,7 +124,6 @@ export default defineComponent({
125
124
  true_index_menu,
126
125
  scrollValue,
127
126
  oldWidth,
128
- removeNullProps,
129
127
  changeMenu
130
128
  };
131
129
  }
@@ -11,9 +11,8 @@ declare const _default: import("vue").DefineComponent<{
11
11
  true_index_menu: import("vue").Ref<string | number>;
12
12
  scrollValue: import("vue").Ref<number>;
13
13
  oldWidth: import("vue").Ref<any>;
14
- removeNullProps: (object: any) => any;
15
14
  changeMenu: (value: number | string) => void;
16
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:Value" | "updateMenu")[], "update:Value" | "updateMenu", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
15
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("updateMenu" | "update:Menu")[], "updateMenu" | "update:Menu", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
17
16
  tabs: {
18
17
  type: ArrayConstructor;
19
18
  required: true;
@@ -23,8 +22,8 @@ declare const _default: import("vue").DefineComponent<{
23
22
  default: number;
24
23
  };
25
24
  }>> & {
26
- "onUpdate:Value"?: ((...args: any[]) => any) | undefined;
27
25
  onUpdateMenu?: ((...args: any[]) => any) | undefined;
26
+ "onUpdate:Menu"?: ((...args: any[]) => any) | undefined;
28
27
  }, {
29
28
  index_menu: string | number;
30
29
  }, {}>;
File without changes
@@ -0,0 +1,21 @@
1
+ <template>
2
+ <hr class="arg_line_break"/>
3
+ </template>
4
+ <script>
5
+ import {
6
+ defineComponent
7
+ } from "vue";
8
+ import argStyle from "./argStyle.vue";
9
+ export default defineComponent({
10
+ name: "argLineBreak",
11
+ components: { argStyle }
12
+ });
13
+ </script>
14
+ <style>
15
+ .arg_line_break{
16
+ background: var(--base-dividers, #ECECF2);
17
+ margin: 0;
18
+ height: 1px;
19
+ border: 0px solid transparent;
20
+ }
21
+ </style>
@@ -0,0 +1,2 @@
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<{}>>, {}, {}>;
2
+ export default _default;
@@ -0,0 +1,56 @@
1
+ <template>
2
+ <div class="arg_main_layout_container">
3
+ <slot name="sidebar"/>
4
+ <div class="arg_main_layout_body">
5
+ <slot name="header"/>
6
+ <div class="arg_main_layout_section" id="arg_main_layout_section">
7
+ <slot name="body"/>
8
+ </div>
9
+ <argFooter />
10
+ </div>
11
+
12
+ </div>
13
+ </template>
14
+ <script>
15
+ import {
16
+ onMounted,
17
+ defineComponent
18
+ } from "vue";
19
+ import argIcon from "./argIcon.vue";
20
+ import argStyle from "./argStyle.vue";
21
+ import argFooter from "./argFooter.vue";
22
+ export default defineComponent({
23
+ name: "argMainLayout",
24
+ components: { argIcon, argStyle, argFooter },
25
+ setup() {
26
+ onMounted(() => {
27
+ adjustMarginForBody();
28
+ window.addEventListener("resize", adjustMarginForBody);
29
+ });
30
+ function adjustMarginForBody() {
31
+ const fixedHeader = document.getElementById("arg_header");
32
+ const bodyContent = document.getElementById("arg_main_layout_section");
33
+ if (fixedHeader && bodyContent) {
34
+ const headerHeight = fixedHeader.offsetHeight;
35
+ bodyContent.style.marginTop = `${headerHeight}px`;
36
+ }
37
+ }
38
+ }
39
+ });
40
+ </script>
41
+ <style>
42
+ .arg_main_layout_container{
43
+ margin-left: 200px;
44
+ }
45
+ .arg_main_layout_body{
46
+ display: flex;
47
+ flex-direction: column;
48
+ }
49
+ .arg_main_layout_section{
50
+ min-height: calc(100vh - 77px);
51
+ padding: 8px;
52
+ }
53
+ .arg_main_layout_body .arg_header{
54
+ width: calc(100% - 200px);
55
+ }
56
+ </style>
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
2
+ export default _default;
@@ -0,0 +1,73 @@
1
+ <template>
2
+ <NuxtLink :to="to" class="auriga_menu_item" activeClass="is-active">
3
+ <arg-icon :name="icon" v-if="icon" size="20"/>
4
+ <arg-flag :iso="countryIso" v-if="countryIso" emoji height="14"/>
5
+ {{ label }}
6
+ </NuxtLink>
7
+ </template>
8
+ <script>
9
+ import argIcon from "./argIcon.vue";
10
+ import argStyle from "./argStyle.vue";
11
+ import argFlag from "./argFlag.vue";
12
+ import {
13
+ defineComponent
14
+ } from "vue";
15
+ export default defineComponent({
16
+ name: "argMenuItem",
17
+ components: { argIcon, argStyle, argFlag },
18
+ props: {
19
+ to: { type: String, required: true },
20
+ //Require eiter an icon or a country flag
21
+ icon: {
22
+ type: String,
23
+ validator: function(value) {
24
+ if (!value && !this.countryIso) {
25
+ console.warn("Either 'icon' or 'country' should be provided.");
26
+ return false;
27
+ }
28
+ return true;
29
+ }
30
+ },
31
+ countryIso: {
32
+ type: String,
33
+ validator: function(value) {
34
+ if (!value && !this.icon) {
35
+ console.warn("Either 'icon' or 'country' should be provided.");
36
+ return false;
37
+ }
38
+ return true;
39
+ }
40
+ },
41
+ label: { type: String, required: true }
42
+ }
43
+ });
44
+ </script>
45
+ <style scoped>
46
+ .auriga_menu_item{
47
+ display: flex;
48
+ height: 32px;
49
+ padding: 8px;
50
+ align-items: center;
51
+ gap: 8px;
52
+ align-self: stretch;
53
+ border-radius: 4px;
54
+ font-size: 14px;
55
+ font-style: normal;
56
+ font-weight: 400;
57
+ line-height: 160%;
58
+ color: var(--independence);
59
+ }
60
+ .auriga_menu_item svg{
61
+ color: var(--primary, #2176FF) !important;
62
+ }
63
+ .auriga_menu_item.is-active{
64
+ background: var(--primary, #2176FF);
65
+ color: #FFF;
66
+ }
67
+ .auriga_menu_item.is-active svg{
68
+ color: #FFF !important;
69
+ }
70
+ .auriga_menu_item:hover:not(.is-active){
71
+ background: var(--base-dividers, #ECECF2);
72
+ }
73
+ </style>