@tekkare/auriga 0.1.8 → 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 (42) 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/argDataLoader.vue +13 -3
  10. package/dist/runtime/components/argDataLoader.vue.d.ts +22 -1
  11. package/dist/runtime/components/argFileBtn.vue.d.ts +2 -2
  12. package/dist/runtime/components/argFilterCard.vue +37 -8
  13. package/dist/runtime/components/argFilterCard.vue.d.ts +30 -1
  14. package/dist/runtime/components/argFilterTabs.vue +109 -0
  15. package/dist/runtime/components/argFilterTabs.vue.d.ts +64 -0
  16. package/dist/runtime/components/argFooter.vue +21 -20
  17. package/dist/runtime/components/argHeader.vue +8 -2
  18. package/dist/runtime/components/argHeader.vue.d.ts +9 -0
  19. package/dist/runtime/components/argInfoBar.vue +175 -0
  20. package/dist/runtime/components/argInfoBar.vue.d.ts +35 -0
  21. package/dist/runtime/components/argInfoSection.vue +265 -0
  22. package/dist/runtime/components/argInfoSection.vue.d.ts +55 -0
  23. package/dist/runtime/components/argMainLayout.vue +46 -21
  24. package/dist/runtime/components/argMainLayout.vue.d.ts +13 -1
  25. package/dist/runtime/components/argMenuItem.vue +44 -27
  26. package/dist/runtime/components/argMenuItem.vue.d.ts +11 -1
  27. package/dist/runtime/components/argMenuLink.vue +43 -20
  28. package/dist/runtime/components/argMenuLink.vue.d.ts +9 -0
  29. package/dist/runtime/components/argMultipleChoice.vue +25 -3
  30. package/dist/runtime/components/argMultipleSelect.vue +785 -0
  31. package/dist/runtime/components/argMultipleSelect.vue.d.ts +143 -0
  32. package/dist/runtime/components/argNavBar.vue +26 -12
  33. package/dist/runtime/components/argNavBar.vue.d.ts +11 -2
  34. package/dist/runtime/components/argRadioButtons.vue +134 -0
  35. package/dist/runtime/components/argRadioButtons.vue.d.ts +48 -0
  36. package/dist/runtime/components/argSidebar.vue +89 -9
  37. package/dist/runtime/components/argSidebar.vue.d.ts +8 -2
  38. package/dist/runtime/components/argStyle.vue +18 -2
  39. package/dist/runtime/components/argSubMenu.vue +79 -37
  40. package/dist/runtime/components/argSubMenu.vue.d.ts +9 -0
  41. package/dist/runtime/components/argTable.vue +14 -0
  42. package/package.json +1 -1
@@ -0,0 +1,109 @@
1
+ <template>
2
+ <div class="oip_switch_tabs">
3
+ <div
4
+ v-for="(tab, index) in tabs"
5
+ :key="index"
6
+ :class="['oip_switcher_tab', activeTab === index ? 'active_tab' : '']"
7
+ @click="changeTab(index)"
8
+ >
9
+ {{ tab.name }}
10
+ </div>
11
+ </div>
12
+ </template>
13
+
14
+ <script>
15
+ import {
16
+ ref,
17
+ watch,
18
+ defineComponent,
19
+ onBeforeMount
20
+ } from "vue";
21
+ export default defineComponent({
22
+ name: "argFilterTabs",
23
+ props: {
24
+ tabs: {
25
+ type: Array,
26
+ required: true
27
+ },
28
+ index_menu: {
29
+ type: [Number, String],
30
+ default: 0
31
+ },
32
+ returnValue: {
33
+ type: Boolean,
34
+ default: true
35
+ }
36
+ },
37
+ emits: ["changeValue", "update:Tab"],
38
+ setup(props, { emit }) {
39
+ const activeTab = ref(0);
40
+ watch(
41
+ () => props.index_menu,
42
+ (new_index_menu) => {
43
+ setDefaultTab();
44
+ changeTab(activeTab.value);
45
+ }
46
+ );
47
+ onBeforeMount(() => {
48
+ setDefaultTab();
49
+ changeTab(activeTab.value);
50
+ });
51
+ function setDefaultTab() {
52
+ if (typeof props.index_menu === "string") {
53
+ activeTab.value = props.tabs.findIndex(
54
+ (a) => a.value === props.index_menu
55
+ );
56
+ } else if (typeof activeTab.value === "number") {
57
+ activeTab.value = props.index_menu;
58
+ }
59
+ }
60
+ function changeTab(index) {
61
+ activeTab.value = index;
62
+ let returnedValue;
63
+ if (props.returnValue) {
64
+ returnedValue = props.tabs[index].value;
65
+ } else
66
+ returnedValue = index;
67
+ emit("update:Tab", returnedValue);
68
+ emit("changeValue", returnedValue);
69
+ }
70
+ return {
71
+ activeTab,
72
+ setDefaultTab,
73
+ changeTab
74
+ };
75
+ }
76
+ });
77
+ </script>
78
+
79
+ <style scoped>
80
+ .oip_switch_tabs {
81
+ display: flex;
82
+ padding: 4px;
83
+ align-items: center;
84
+ border-radius: 12px;
85
+ background: var(--background);
86
+ width: fit-content;
87
+ }
88
+
89
+ .oip_switcher_tab {
90
+ display: flex;
91
+ padding: 8px 24px;
92
+ justify-content: center;
93
+ align-items: center;
94
+ gap: 6px;
95
+ border-radius: 8px;
96
+ cursor: pointer;
97
+ font-size: 14px;
98
+ font-style: normal;
99
+ font-weight: 700;
100
+ line-height: normal;
101
+ color: var(--cool-grey);
102
+ }
103
+ .active_tab {
104
+ background: #fdfdff;
105
+ /* Small Elevation */
106
+ box-shadow: 0px 0px 8px 0px rgba(62, 63, 94, 0.12);
107
+ color: var(--text-theme-light-med-em, #4f4b5c) !important;
108
+ }
109
+ </style>
@@ -0,0 +1,64 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ tabs: {
3
+ type: {
4
+ (arrayLength: number): Object[];
5
+ (...items: Object[]): Object[];
6
+ new (arrayLength: number): Object[];
7
+ new (...items: Object[]): Object[];
8
+ isArray(arg: any): arg is any[];
9
+ readonly prototype: any[];
10
+ from<T>(arrayLike: ArrayLike<T>): T[];
11
+ from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
12
+ from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
13
+ from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
14
+ of<T_4>(...items: T_4[]): T_4[];
15
+ readonly [Symbol.species]: ArrayConstructor;
16
+ };
17
+ required: true;
18
+ };
19
+ index_menu: {
20
+ type: (StringConstructor | NumberConstructor)[];
21
+ default: number;
22
+ };
23
+ returnValue: {
24
+ type: BooleanConstructor;
25
+ default: boolean;
26
+ };
27
+ }, {
28
+ activeTab: import("vue").Ref<number>;
29
+ setDefaultTab: () => void;
30
+ changeTab: (index: number) => void;
31
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("changeValue" | "update:Tab")[], "changeValue" | "update:Tab", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
32
+ tabs: {
33
+ type: {
34
+ (arrayLength: number): Object[];
35
+ (...items: Object[]): Object[];
36
+ new (arrayLength: number): Object[];
37
+ new (...items: Object[]): Object[];
38
+ isArray(arg: any): arg is any[];
39
+ readonly prototype: any[];
40
+ from<T>(arrayLike: ArrayLike<T>): T[];
41
+ from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
42
+ from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
43
+ from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
44
+ of<T_4>(...items: T_4[]): T_4[];
45
+ readonly [Symbol.species]: ArrayConstructor;
46
+ };
47
+ required: true;
48
+ };
49
+ index_menu: {
50
+ type: (StringConstructor | NumberConstructor)[];
51
+ default: number;
52
+ };
53
+ returnValue: {
54
+ type: BooleanConstructor;
55
+ default: boolean;
56
+ };
57
+ }>> & {
58
+ onChangeValue?: ((...args: any[]) => any) | undefined;
59
+ "onUpdate:Tab"?: ((...args: any[]) => any) | undefined;
60
+ }, {
61
+ returnValue: boolean;
62
+ index_menu: string | number;
63
+ }, {}>;
64
+ export default _default;
@@ -1,9 +1,9 @@
1
1
  <template>
2
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>
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
7
  </div>
8
8
  </template>
9
9
  <script>
@@ -19,23 +19,24 @@ export default defineComponent({
19
19
  </script>
20
20
  <style>
21
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);
22
+ background: var(--background);
23
+ padding: 24px 96px;
24
+ margin-top: 24px;
25
+ box-shadow: 0px 4px 8px rgba(37, 99, 235, 0.04),
26
+ 0px 0px 2px rgba(37, 99, 235, 0.06), 0px 0px 1px rgba(37, 99, 235, 0.04);
26
27
  }
27
28
  .oip_footer_text {
28
- display: flex;
29
- flex-direction: row;
30
- justify-content: flex-end;
31
- gap: 24px;
32
- align-items: flex-end;
29
+ display: flex;
30
+ flex-direction: row;
31
+ justify-content: flex-end;
32
+ gap: 24px;
33
+ align-items: flex-end;
33
34
  }
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;
35
+ .oip_footer_text h2 {
36
+ font-style: normal;
37
+ font-size: 14px;
38
+ line-height: 16px;
39
+ color: var(--independence);
40
+ font-weight: normal;
40
41
  }
41
- </style>
42
+ </style>
@@ -1,5 +1,9 @@
1
1
  <template>
2
- <div class="arg_header" id="arg_header">
2
+ <div
3
+ class="arg_header"
4
+ :class="sidebarOpen ? 'arg_header_with_sidebar' : 'arg_header_no_sidebar'"
5
+ id="arg_header"
6
+ >
3
7
  <div class="arg_header_title_group">
4
8
  <nuxt-link :to="backTo" v-if="backTo" class="arg_header_back_button">
5
9
  <arg-icon name="CaretLeft" size="20px" />
@@ -35,7 +39,8 @@ export default defineComponent({
35
39
  title: { type: String, required: true },
36
40
  backTo: { type: String, required: false },
37
41
  tabs: { type: Array, required: false },
38
- index_menu: { type: [String, Number], default: 1 }
42
+ index_menu: { type: [String, Number], default: 1 },
43
+ sidebarOpen: { type: Boolean, default: false }
39
44
  },
40
45
  emits: ["updateMenu", "update:Menu"],
41
46
  setup(props, { emit }) {
@@ -70,6 +75,7 @@ export default defineComponent({
70
75
  background: transparent;
71
76
  width: 100%;
72
77
  box-sizing: border-box;
78
+ margin-left: -8px;
73
79
  }
74
80
  .arg_header_title_group {
75
81
  display: flex;
@@ -15,6 +15,10 @@ declare const _default: import("vue").DefineComponent<{
15
15
  type: (StringConstructor | NumberConstructor)[];
16
16
  default: number;
17
17
  };
18
+ sidebarOpen: {
19
+ type: BooleanConstructor;
20
+ default: boolean;
21
+ };
18
22
  }, {
19
23
  goBack: () => void;
20
24
  updateMenu: (value: number | string) => void;
@@ -35,10 +39,15 @@ declare const _default: import("vue").DefineComponent<{
35
39
  type: (StringConstructor | NumberConstructor)[];
36
40
  default: number;
37
41
  };
42
+ sidebarOpen: {
43
+ type: BooleanConstructor;
44
+ default: boolean;
45
+ };
38
46
  }>> & {
39
47
  onUpdateMenu?: ((...args: any[]) => any) | undefined;
40
48
  "onUpdate:Menu"?: ((...args: any[]) => any) | undefined;
41
49
  }, {
42
50
  index_menu: string | number;
51
+ sidebarOpen: boolean;
43
52
  }, {}>;
44
53
  export default _default;
@@ -0,0 +1,175 @@
1
+ <template>
2
+ <div class="oip_info_bar">
3
+ <div
4
+ v-for="(item, index) in infoArray"
5
+ :key="index"
6
+ class="oip_info_item"
7
+ :class="item.name === 'Sources' ? 'relative' : ''"
8
+ @click="openMenu(item.name)"
9
+ >
10
+ <arg-icon :name="item.icon" size="20" />
11
+ <div
12
+ v-if="item.name === 'Sources' && sourceAmount > 0"
13
+ class="arg_source_nb"
14
+ >
15
+ {{ sourceAmount }}
16
+ </div>
17
+ </div>
18
+ </div>
19
+ </template>
20
+
21
+ <script>
22
+ import {
23
+ ref,
24
+ defineComponent
25
+ } from "vue";
26
+ import argIcon from "./argIcon.vue";
27
+ export default defineComponent({
28
+ name: "argInfoBar",
29
+ components: { argIcon },
30
+ props: {
31
+ infoArray: {
32
+ type: Array,
33
+ default: () => [
34
+ { name: "Tips", icon: "Lightbulb" },
35
+ { name: "Sources", icon: "Database" },
36
+ { name: "Info", icon: "Info" },
37
+ { name: "Metadata", icon: "CirclesFour" }
38
+ ]
39
+ },
40
+ sourceAmount: {
41
+ type: Number,
42
+ default: 0
43
+ }
44
+ },
45
+ emits: ["openInfo"],
46
+ setup(props, { emit }) {
47
+ const activeMenu = ref("");
48
+ const infoOpen = ref(false);
49
+ function openMenu(item) {
50
+ infoOpen.value = true;
51
+ activeMenu.value = item;
52
+ emit("openInfo", { open: infoOpen.value, menu: activeMenu.value });
53
+ }
54
+ return {
55
+ infoOpen,
56
+ activeMenu,
57
+ openMenu
58
+ };
59
+ }
60
+ });
61
+ </script>
62
+
63
+ <style scoped>
64
+ .arg_source_nb {
65
+ display: flex;
66
+ width: var(--m, 16px);
67
+ height: var(--m, 16px);
68
+ flex-direction: column;
69
+ justify-content: center;
70
+ align-items: center;
71
+ border-radius: 30px;
72
+ background: var(--system-alert, #ef4444);
73
+ position: absolute;
74
+ right: 5px;
75
+ top: 5px;
76
+ color: var(--pure-white);
77
+ font-size: 10px;
78
+ font-style: normal;
79
+ font-weight: 900;
80
+ line-height: normal;
81
+ }
82
+
83
+ .oip_info_bar {
84
+ display: inline-flex;
85
+ padding: var(--xxs, 4px);
86
+ flex-direction: column;
87
+ align-items: flex-start;
88
+ gap: var(--xxs, 4px);
89
+ border-radius: 8px;
90
+ border: 1px solid var(--base-dividers, #ececf2);
91
+ }
92
+
93
+ .oip_info_item {
94
+ display: flex;
95
+ padding: 10px;
96
+ justify-content: flex-end;
97
+ align-items: center;
98
+ gap: 8px;
99
+ border-radius: 4px;
100
+ cursor: pointer;
101
+ }
102
+
103
+ .relative {
104
+ position: relative !important;
105
+ }
106
+ .oip_info_item svg {
107
+ flex-basis: 100%;
108
+ }
109
+
110
+ .oip_info_item:hover {
111
+ background: rgb(237, 237, 243, 65%);
112
+ }
113
+
114
+ .oip_info_close {
115
+ margin: 24px;
116
+ display: flex;
117
+ height: 32px;
118
+ padding: 6px 12px 6px 8px;
119
+ align-items: center;
120
+ gap: 6px;
121
+ cursor: pointer;
122
+ border-radius: var(--s, 8px);
123
+ background: var(--pure-white);
124
+ }
125
+
126
+ .oip_info_close:hover {
127
+ background: var(--dividers) !important;
128
+ }
129
+
130
+ .oip_info_section {
131
+ width: 0px;
132
+ transition: width ease 0.5s;
133
+ overflow-x: hidden;
134
+ height: 0px;
135
+ }
136
+
137
+ .oip_info_section_open {
138
+ display: flex;
139
+ flex-direction: row;
140
+ align-items: flex-start;
141
+ width: 620px;
142
+ height: 820px;
143
+ }
144
+
145
+ .oip_info_sidebar {
146
+ display: flex;
147
+ width: 160px;
148
+ padding: var(--l, 24px) var(--None, 0px);
149
+ flex-direction: column;
150
+ align-items: flex-start;
151
+ gap: var(--m, 16px);
152
+ align-self: stretch;
153
+ border-radius: var(--None, 0px);
154
+
155
+ border-left: 1px solid var(--base-dividers, #ececf2);
156
+ background: var(--base-demi-fond, #f9f9fa);
157
+ backdrop-filter: blur(16px);
158
+ }
159
+
160
+ .open_container {
161
+ max-width: 750px !important;
162
+ height: 820px;
163
+ }
164
+
165
+ .oip_info_container {
166
+ display: inline-flex;
167
+ align-items: flex-start;
168
+ position: fixed;
169
+ right: 0;
170
+ top: 108px;
171
+ z-index: 999;
172
+ max-width: 0px;
173
+ transition: max-width ease 0.5px;
174
+ }
175
+ </style>
@@ -0,0 +1,35 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ infoArray: {
3
+ type: ArrayConstructor;
4
+ default: () => {
5
+ name: string;
6
+ icon: string;
7
+ }[];
8
+ };
9
+ sourceAmount: {
10
+ type: NumberConstructor;
11
+ default: number;
12
+ };
13
+ }, {
14
+ infoOpen: import("vue").Ref<boolean>;
15
+ activeMenu: import("vue").Ref<string>;
16
+ openMenu: (item: string) => void;
17
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "openInfo"[], "openInfo", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
18
+ infoArray: {
19
+ type: ArrayConstructor;
20
+ default: () => {
21
+ name: string;
22
+ icon: string;
23
+ }[];
24
+ };
25
+ sourceAmount: {
26
+ type: NumberConstructor;
27
+ default: number;
28
+ };
29
+ }>> & {
30
+ onOpenInfo?: ((...args: any[]) => any) | undefined;
31
+ }, {
32
+ infoArray: unknown[];
33
+ sourceAmount: number;
34
+ }, {}>;
35
+ export default _default;