@tekkare/auriga 0.1.8 → 0.1.10
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.
- package/dist/module.json +1 -1
- package/dist/runtime/components/allIcons.vue +1112 -0
- package/dist/runtime/components/allIcons.vue.d.ts +6 -0
- package/dist/runtime/components/argActions.vue +150 -0
- package/dist/runtime/components/argActions.vue.d.ts +43 -0
- package/dist/runtime/components/argAdvancedSearchBar.vue.d.ts +2 -2
- package/dist/runtime/components/argChart.vue +38 -4
- package/dist/runtime/components/argChartTableCard.vue +30 -0
- package/dist/runtime/components/argChartTableCard.vue.d.ts +2 -0
- package/dist/runtime/components/argCheckbox.vue +46 -31
- package/dist/runtime/components/argCheckbox.vue.d.ts +20 -3
- package/dist/runtime/components/argCircleAmount.vue +37 -0
- package/dist/runtime/components/argCircleAmount.vue.d.ts +12 -0
- package/dist/runtime/components/argDataLoader.vue +13 -3
- package/dist/runtime/components/argDataLoader.vue.d.ts +22 -1
- package/dist/runtime/components/argDropdownSelect.vue +5 -19
- package/dist/runtime/components/argEmoji.vue +34 -0
- package/dist/runtime/components/argEmoji.vue.d.ts +29 -0
- package/dist/runtime/components/argFileBtn.vue +10 -2
- package/dist/runtime/components/argFileBtn.vue.d.ts +11 -2
- package/dist/runtime/components/argFilterCard.vue +37 -9
- package/dist/runtime/components/argFilterCard.vue.d.ts +30 -1
- package/dist/runtime/components/argFilterTabs.vue +109 -0
- package/dist/runtime/components/argFilterTabs.vue.d.ts +64 -0
- package/dist/runtime/components/argFooter.vue +21 -20
- package/dist/runtime/components/argHeader.vue +22 -8
- package/dist/runtime/components/argHeader.vue.d.ts +18 -0
- package/dist/runtime/components/argInfoBar.vue +175 -0
- package/dist/runtime/components/argInfoBar.vue.d.ts +35 -0
- package/dist/runtime/components/argInfoSection.vue +265 -0
- package/dist/runtime/components/argInfoSection.vue.d.ts +55 -0
- package/dist/runtime/components/argMainLayout.vue +46 -21
- package/dist/runtime/components/argMainLayout.vue.d.ts +13 -1
- package/dist/runtime/components/argMenuItem.vue +44 -27
- package/dist/runtime/components/argMenuItem.vue.d.ts +11 -1
- package/dist/runtime/components/argMenuLink.vue +44 -20
- package/dist/runtime/components/argMenuLink.vue.d.ts +9 -0
- package/dist/runtime/components/argMultipleChoice.vue +26 -4
- package/dist/runtime/components/argMultipleSelect.vue +797 -0
- package/dist/runtime/components/argMultipleSelect.vue.d.ts +151 -0
- package/dist/runtime/components/argNavBar.vue +26 -12
- package/dist/runtime/components/argNavBar.vue.d.ts +11 -2
- package/dist/runtime/components/argRadioButtons.vue +135 -0
- package/dist/runtime/components/argRadioButtons.vue.d.ts +48 -0
- package/dist/runtime/components/argScopeCriteria.vue +91 -0
- package/dist/runtime/components/argScopeCriteria.vue.d.ts +35 -0
- package/dist/runtime/components/argScopeHeader.vue +90 -0
- package/dist/runtime/components/argScopeHeader.vue.d.ts +33 -0
- package/dist/runtime/components/argScopeLayout.vue +61 -0
- package/dist/runtime/components/argScopeLayout.vue.d.ts +14 -0
- package/dist/runtime/components/argSidebar.vue +97 -14
- package/dist/runtime/components/argSidebar.vue.d.ts +17 -2
- package/dist/runtime/components/argSimpleLabel.vue +1 -1
- package/dist/runtime/components/argStyle.vue +100 -67
- package/dist/runtime/components/argSubMenu.vue +79 -37
- package/dist/runtime/components/argSubMenu.vue.d.ts +9 -0
- package/dist/runtime/components/argTable.vue +14 -0
- package/dist/runtime/components/argTags.vue +1 -1
- package/dist/runtime/components/argTipsBox.vue +153 -0
- package/dist/runtime/components/argTipsBox.vue.d.ts +37 -0
- package/package.json +2 -1
|
@@ -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;
|
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
class="info_main_container"
|
|
4
|
+
:class="infoOpen ? 'info_main_container_open' : ''"
|
|
5
|
+
>
|
|
6
|
+
<div class="oip_info_container">
|
|
7
|
+
<div v-if="infoOpen" class="oip_info_close" @click="closeInfo()">
|
|
8
|
+
<arg-icon name="X" size="20" />
|
|
9
|
+
<p>Close</p>
|
|
10
|
+
</div>
|
|
11
|
+
<div
|
|
12
|
+
class="oip_info_section"
|
|
13
|
+
:class="infoOpen ? 'oip_info_section_open' : 'oip_info_section'"
|
|
14
|
+
>
|
|
15
|
+
<div class="oip_info_sidebar">
|
|
16
|
+
<div
|
|
17
|
+
v-for="(item, index) in infoArray"
|
|
18
|
+
:key="index"
|
|
19
|
+
class="oip_info_menu"
|
|
20
|
+
:class="trueActiveMenu === item.name ? 'active_info_menu' : ''"
|
|
21
|
+
@click="openMenu(item.name)"
|
|
22
|
+
>
|
|
23
|
+
<div class="oip_row v-center gap-4">
|
|
24
|
+
<arg-icon
|
|
25
|
+
:name="item.icon"
|
|
26
|
+
size="20"
|
|
27
|
+
:color="trueActiveMenu === item.name ? '' : 'var(--cool-grey)'"
|
|
28
|
+
/>
|
|
29
|
+
<p>{{ item.name }}</p>
|
|
30
|
+
</div>
|
|
31
|
+
<div
|
|
32
|
+
v-if="item.name === 'Sources' && sourceAmount > 0"
|
|
33
|
+
class="arg_source_amount"
|
|
34
|
+
>
|
|
35
|
+
{{ sourceAmount }}
|
|
36
|
+
</div>
|
|
37
|
+
</div>
|
|
38
|
+
</div>
|
|
39
|
+
<div class="oip_info_content">
|
|
40
|
+
<div
|
|
41
|
+
v-for="(item, index) in infoArray"
|
|
42
|
+
:key="index"
|
|
43
|
+
:class="trueActiveMenu === item.name ? '' : 'hide'"
|
|
44
|
+
>
|
|
45
|
+
<slot :name="item.name" />
|
|
46
|
+
</div>
|
|
47
|
+
</div>
|
|
48
|
+
</div>
|
|
49
|
+
</div>
|
|
50
|
+
</div>
|
|
51
|
+
</template>
|
|
52
|
+
|
|
53
|
+
<script>
|
|
54
|
+
import {
|
|
55
|
+
onMounted,
|
|
56
|
+
ref,
|
|
57
|
+
defineComponent,
|
|
58
|
+
watch
|
|
59
|
+
} from "vue";
|
|
60
|
+
import argIcon from "./argIcon.vue";
|
|
61
|
+
export default defineComponent({
|
|
62
|
+
name: "argInfoSection",
|
|
63
|
+
components: { argIcon },
|
|
64
|
+
props: {
|
|
65
|
+
openInfo: {
|
|
66
|
+
type: Boolean,
|
|
67
|
+
default: true
|
|
68
|
+
},
|
|
69
|
+
activeMenu: {
|
|
70
|
+
type: String,
|
|
71
|
+
default: ""
|
|
72
|
+
},
|
|
73
|
+
infoArray: {
|
|
74
|
+
type: Array,
|
|
75
|
+
default: () => [
|
|
76
|
+
{ name: "Tips", icon: "Lightbulb" },
|
|
77
|
+
{ name: "Sources", icon: "Database" },
|
|
78
|
+
{ name: "Info", icon: "Info" },
|
|
79
|
+
{ name: "Metadata", icon: "CirclesFour" }
|
|
80
|
+
]
|
|
81
|
+
},
|
|
82
|
+
sourceAmount: {
|
|
83
|
+
type: Number,
|
|
84
|
+
default: 0
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
emits: ["update:Open", "update:Menu"],
|
|
88
|
+
setup(props, { emit }) {
|
|
89
|
+
const trueActiveMenu = ref("");
|
|
90
|
+
const infoOpen = ref(false);
|
|
91
|
+
watch(
|
|
92
|
+
() => props.openInfo,
|
|
93
|
+
(new_info_open) => {
|
|
94
|
+
infoOpen.value = new_info_open;
|
|
95
|
+
}
|
|
96
|
+
);
|
|
97
|
+
watch(
|
|
98
|
+
() => props.activeMenu,
|
|
99
|
+
(new_active_menu) => {
|
|
100
|
+
trueActiveMenu.value = new_active_menu;
|
|
101
|
+
}
|
|
102
|
+
);
|
|
103
|
+
onMounted(() => {
|
|
104
|
+
trueActiveMenu.value = props.activeMenu;
|
|
105
|
+
infoOpen.value = props.openInfo;
|
|
106
|
+
});
|
|
107
|
+
function openMenu(item) {
|
|
108
|
+
infoOpen.value = true;
|
|
109
|
+
trueActiveMenu.value = item;
|
|
110
|
+
emit("update:Open", infoOpen.value);
|
|
111
|
+
emit("update:Menu", trueActiveMenu.value);
|
|
112
|
+
}
|
|
113
|
+
function closeInfo() {
|
|
114
|
+
infoOpen.value = false;
|
|
115
|
+
setTimeout(() => {
|
|
116
|
+
trueActiveMenu.value = props.activeMenu;
|
|
117
|
+
}, 500);
|
|
118
|
+
emit("update:Open", infoOpen.value);
|
|
119
|
+
}
|
|
120
|
+
return {
|
|
121
|
+
infoOpen,
|
|
122
|
+
trueActiveMenu,
|
|
123
|
+
openMenu,
|
|
124
|
+
closeInfo
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
});
|
|
128
|
+
</script>
|
|
129
|
+
|
|
130
|
+
<style scoped>
|
|
131
|
+
.info_main_container {
|
|
132
|
+
background-color: transparent;
|
|
133
|
+
transition: all ease 0.5s;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.info_main_container_open {
|
|
137
|
+
position: fixed;
|
|
138
|
+
z-index: 2000;
|
|
139
|
+
left: 0;
|
|
140
|
+
top: 0;
|
|
141
|
+
bottom: 0;
|
|
142
|
+
width: 100%;
|
|
143
|
+
height: 100%;
|
|
144
|
+
background-color: rgba(0, 0, 0, 0.4);
|
|
145
|
+
}
|
|
146
|
+
.oip_info_menu {
|
|
147
|
+
display: flex;
|
|
148
|
+
align-items: center;
|
|
149
|
+
gap: 4px;
|
|
150
|
+
align-self: stretch;
|
|
151
|
+
cursor: pointer;
|
|
152
|
+
padding: 0px 16px 4px 16px;
|
|
153
|
+
border-bottom: 2px solid transparent;
|
|
154
|
+
color: var(--cool-grey);
|
|
155
|
+
font-size: 14px;
|
|
156
|
+
font-style: normal;
|
|
157
|
+
font-weight: 500;
|
|
158
|
+
line-height: normal;
|
|
159
|
+
justify-content: space-between;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.active_info_menu {
|
|
163
|
+
border-bottom: 2px solid var(--primary-primary, #2176ff) !important;
|
|
164
|
+
color: var(--independence) !important;
|
|
165
|
+
}
|
|
166
|
+
.oip_info_item svg {
|
|
167
|
+
flex-basis: 100%;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.oip_info_item:hover {
|
|
171
|
+
background: rgb(237, 237, 243, 65%);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.oip_info_close {
|
|
175
|
+
margin: 24px;
|
|
176
|
+
display: flex;
|
|
177
|
+
padding: 6px 12px 6px 8px;
|
|
178
|
+
align-items: center;
|
|
179
|
+
gap: 6px;
|
|
180
|
+
cursor: pointer;
|
|
181
|
+
border-radius: var(--s, 8px);
|
|
182
|
+
background: var(--pure-white);
|
|
183
|
+
font-size: 14px;
|
|
184
|
+
font-style: normal;
|
|
185
|
+
font-weight: 400;
|
|
186
|
+
line-height: 160%;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.oip_info_close:hover {
|
|
190
|
+
background: var(--dividers) !important;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.oip_info_section {
|
|
194
|
+
display: flex;
|
|
195
|
+
flex-direction: row;
|
|
196
|
+
align-items: flex-start;
|
|
197
|
+
transition: all ease 0.5s;
|
|
198
|
+
height: 0px;
|
|
199
|
+
width: 0px;
|
|
200
|
+
overflow: hidden;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.oip_info_section_open {
|
|
204
|
+
width: 620px;
|
|
205
|
+
height: 820px;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.oip_info_sidebar {
|
|
209
|
+
display: flex;
|
|
210
|
+
width: 160px;
|
|
211
|
+
padding: 24px 0px;
|
|
212
|
+
flex-direction: column;
|
|
213
|
+
align-items: flex-start;
|
|
214
|
+
gap: 16px;
|
|
215
|
+
align-self: stretch;
|
|
216
|
+
border-left: 1px solid var(--base-dividers, #ececf2);
|
|
217
|
+
background: var(--base-demi-fond, #f9f9fa);
|
|
218
|
+
backdrop-filter: blur(16px);
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
.oip_info_content {
|
|
222
|
+
display: flex;
|
|
223
|
+
width: 460px;
|
|
224
|
+
align-self: stretch;
|
|
225
|
+
padding: 24px;
|
|
226
|
+
flex-direction: column;
|
|
227
|
+
align-items: flex-start;
|
|
228
|
+
gap: 24px;
|
|
229
|
+
border-radius: var(--None, 0px);
|
|
230
|
+
border-left: 1px solid var(--base-dividers, #ececf2);
|
|
231
|
+
background: var(--base-white, #fff);
|
|
232
|
+
backdrop-filter: blur(16px);
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.oip_info_container {
|
|
236
|
+
display: inline-flex;
|
|
237
|
+
align-items: flex-start;
|
|
238
|
+
position: fixed;
|
|
239
|
+
right: 0;
|
|
240
|
+
top: 0;
|
|
241
|
+
z-index: 999;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.hide {
|
|
245
|
+
display: none;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.arg_source_amount {
|
|
249
|
+
display: flex;
|
|
250
|
+
width: var(--m, 16px);
|
|
251
|
+
|
|
252
|
+
height: var(--m, 16px);
|
|
253
|
+
|
|
254
|
+
flex-direction: column;
|
|
255
|
+
justify-content: center;
|
|
256
|
+
align-items: center;
|
|
257
|
+
border-radius: 30px;
|
|
258
|
+
background: var(--system-alert, #ef4444);
|
|
259
|
+
color: var(--pure-white);
|
|
260
|
+
font-size: 10px;
|
|
261
|
+
font-style: normal;
|
|
262
|
+
font-weight: 900;
|
|
263
|
+
line-height: normal;
|
|
264
|
+
}
|
|
265
|
+
</style>
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
openInfo: {
|
|
3
|
+
type: BooleanConstructor;
|
|
4
|
+
default: boolean;
|
|
5
|
+
};
|
|
6
|
+
activeMenu: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
infoArray: {
|
|
11
|
+
type: ArrayConstructor;
|
|
12
|
+
default: () => {
|
|
13
|
+
name: string;
|
|
14
|
+
icon: string;
|
|
15
|
+
}[];
|
|
16
|
+
};
|
|
17
|
+
sourceAmount: {
|
|
18
|
+
type: NumberConstructor;
|
|
19
|
+
default: number;
|
|
20
|
+
};
|
|
21
|
+
}, {
|
|
22
|
+
infoOpen: import("vue").Ref<boolean>;
|
|
23
|
+
trueActiveMenu: import("vue").Ref<string>;
|
|
24
|
+
openMenu: (item: string) => void;
|
|
25
|
+
closeInfo: () => void;
|
|
26
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:Menu" | "update:Open")[], "update:Menu" | "update:Open", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
27
|
+
openInfo: {
|
|
28
|
+
type: BooleanConstructor;
|
|
29
|
+
default: boolean;
|
|
30
|
+
};
|
|
31
|
+
activeMenu: {
|
|
32
|
+
type: StringConstructor;
|
|
33
|
+
default: string;
|
|
34
|
+
};
|
|
35
|
+
infoArray: {
|
|
36
|
+
type: ArrayConstructor;
|
|
37
|
+
default: () => {
|
|
38
|
+
name: string;
|
|
39
|
+
icon: string;
|
|
40
|
+
}[];
|
|
41
|
+
};
|
|
42
|
+
sourceAmount: {
|
|
43
|
+
type: NumberConstructor;
|
|
44
|
+
default: number;
|
|
45
|
+
};
|
|
46
|
+
}>> & {
|
|
47
|
+
"onUpdate:Menu"?: ((...args: any[]) => any) | undefined;
|
|
48
|
+
"onUpdate:Open"?: ((...args: any[]) => any) | undefined;
|
|
49
|
+
}, {
|
|
50
|
+
openInfo: boolean;
|
|
51
|
+
infoArray: unknown[];
|
|
52
|
+
sourceAmount: number;
|
|
53
|
+
activeMenu: string;
|
|
54
|
+
}, {}>;
|
|
55
|
+
export default _default;
|
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
2
|
+
<div :class="sidebarOpen ? 'arg_main_with_sidebar' : 'arg_main_no_sidebar'">
|
|
3
|
+
<slot name="sidebar" />
|
|
4
|
+
<div class="arg_main_layout_body">
|
|
5
|
+
<div class="arg_info" id="arg_info_section">
|
|
6
|
+
<slot name="infoBar" />
|
|
7
|
+
<slot name="infoSection" />
|
|
8
|
+
</div>
|
|
9
|
+
<div class="arg_main_layout_section" id="arg_main_layout_section">
|
|
10
|
+
<slot name="header" />
|
|
11
|
+
<slot name="body" />
|
|
12
|
+
</div>
|
|
13
|
+
<argFooter />
|
|
12
14
|
</div>
|
|
15
|
+
</div>
|
|
13
16
|
</template>
|
|
14
17
|
<script>
|
|
15
18
|
import {
|
|
@@ -22,6 +25,12 @@ import argFooter from "./argFooter.vue";
|
|
|
22
25
|
export default defineComponent({
|
|
23
26
|
name: "argMainLayout",
|
|
24
27
|
components: { argIcon, argStyle, argFooter },
|
|
28
|
+
props: {
|
|
29
|
+
sidebarOpen: {
|
|
30
|
+
type: Boolean,
|
|
31
|
+
default: true
|
|
32
|
+
}
|
|
33
|
+
},
|
|
25
34
|
setup() {
|
|
26
35
|
onMounted(() => {
|
|
27
36
|
adjustMarginForBody();
|
|
@@ -30,27 +39,43 @@ export default defineComponent({
|
|
|
30
39
|
function adjustMarginForBody() {
|
|
31
40
|
const fixedHeader = document.getElementById("arg_header");
|
|
32
41
|
const bodyContent = document.getElementById("arg_main_layout_section");
|
|
42
|
+
const infoBar = document.getElementById("arg_info_section");
|
|
33
43
|
if (fixedHeader && bodyContent) {
|
|
34
44
|
const headerHeight = fixedHeader.offsetHeight;
|
|
35
45
|
bodyContent.style.marginTop = `${headerHeight}px`;
|
|
36
46
|
}
|
|
47
|
+
if (fixedHeader && infoBar) {
|
|
48
|
+
const headerHeight = fixedHeader.offsetHeight;
|
|
49
|
+
infoBar.style.top = `${headerHeight + 8}px`;
|
|
50
|
+
}
|
|
37
51
|
}
|
|
38
52
|
}
|
|
39
53
|
});
|
|
40
54
|
</script>
|
|
41
55
|
<style>
|
|
42
|
-
.
|
|
43
|
-
|
|
56
|
+
.arg_main_with_sidebar {
|
|
57
|
+
margin-left: 200px;
|
|
58
|
+
}
|
|
59
|
+
.arg_main_no_sidebar {
|
|
60
|
+
margin-left: 52px;
|
|
61
|
+
}
|
|
62
|
+
.arg_main_layout_body {
|
|
63
|
+
display: flex;
|
|
64
|
+
flex-direction: column;
|
|
65
|
+
}
|
|
66
|
+
.arg_main_layout_section {
|
|
67
|
+
min-height: calc(100vh - 77px);
|
|
68
|
+
padding: 8px;
|
|
44
69
|
}
|
|
45
|
-
.arg_main_layout_body{
|
|
46
|
-
|
|
47
|
-
flex-direction: column;
|
|
70
|
+
.arg_main_layout_body .arg_header_with_sidebar {
|
|
71
|
+
width: calc(100% - 200px);
|
|
48
72
|
}
|
|
49
|
-
.
|
|
50
|
-
|
|
51
|
-
padding: 8px;
|
|
73
|
+
.arg_main_layout_body .arg_header_no_sidebar {
|
|
74
|
+
width: calc(100% - 52px);
|
|
52
75
|
}
|
|
53
|
-
.
|
|
54
|
-
|
|
76
|
+
.arg_info {
|
|
77
|
+
position: fixed;
|
|
78
|
+
right: 8px;
|
|
79
|
+
z-index: 999;
|
|
55
80
|
}
|
|
56
|
-
</style>
|
|
81
|
+
</style>
|
|
@@ -1,2 +1,14 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
sidebarOpen: {
|
|
3
|
+
type: BooleanConstructor;
|
|
4
|
+
default: boolean;
|
|
5
|
+
};
|
|
6
|
+
}, void, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
7
|
+
sidebarOpen: {
|
|
8
|
+
type: BooleanConstructor;
|
|
9
|
+
default: boolean;
|
|
10
|
+
};
|
|
11
|
+
}>>, {
|
|
12
|
+
sidebarOpen: boolean;
|
|
13
|
+
}, {}>;
|
|
2
14
|
export default _default;
|