@tekkare/auriga 0.1.44 → 0.1.46
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/argAdvancedSearchBar.vue +1 -1
- package/dist/runtime/components/argBtn.vue +12 -6
- package/dist/runtime/components/argCheckbox.vue +1 -1
- package/dist/runtime/components/argFilterCard.vue +1 -2
- package/dist/runtime/components/argHomeSelectedBlock.vue +6 -1
- package/dist/runtime/components/argMainLayout.vue +18 -4
- package/dist/runtime/components/argMainLayout.vue.d.ts +9 -0
- package/dist/runtime/components/argMultipleSelect.vue.d.ts +8 -8
- package/dist/runtime/components/argScopeChange.vue +203 -0
- package/dist/runtime/components/argScopeChange.vue.d.ts +73 -0
- package/dist/runtime/components/argScopeModal.vue +2 -0
- package/dist/runtime/components/argSearchInput.vue +1 -1
- package/dist/runtime/components/argSimpleLabel.vue +1 -1
- package/dist/runtime/components/argStyle.vue +2 -0
- package/dist/runtime/components/argSubMenu.vue +19 -4
- package/dist/runtime/components/argSubMenu.vue.d.ts +12 -0
- package/package.json +1 -1
package/dist/module.json
CHANGED
|
@@ -18,13 +18,19 @@
|
|
|
18
18
|
@click="send()"
|
|
19
19
|
>
|
|
20
20
|
<span :class="{ oip_button_is_loading: loading }" class="oip_button_flex">
|
|
21
|
-
<
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
<arg-icon
|
|
22
|
+
v-if="prefixIcon"
|
|
23
|
+
:name="prefixIcon"
|
|
24
|
+
size="20"
|
|
25
|
+
:color="getIconColor"
|
|
26
|
+
/>
|
|
24
27
|
<slot></slot>
|
|
25
|
-
<
|
|
26
|
-
|
|
27
|
-
|
|
28
|
+
<arg-icon
|
|
29
|
+
v-if="suffixIcon"
|
|
30
|
+
:name="suffixIcon"
|
|
31
|
+
size="20"
|
|
32
|
+
:color="getIconColor"
|
|
33
|
+
/>
|
|
28
34
|
</span>
|
|
29
35
|
<span class="oip_button_loading" v-if="loading">
|
|
30
36
|
<div class="oip_button_spinner">
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
</div>
|
|
24
24
|
<p class="theme_descr">{{ selected.description }}</p>
|
|
25
25
|
</div>
|
|
26
|
-
<div>
|
|
26
|
+
<div class="selected_block_links">
|
|
27
27
|
<div v-for="(item, index) in selected.links" :key="index">
|
|
28
28
|
<arg-sub-menu
|
|
29
29
|
v-if="item.subLinks"
|
|
@@ -115,4 +115,9 @@ export default defineComponent({
|
|
|
115
115
|
font-weight: 400;
|
|
116
116
|
line-height: 160%;
|
|
117
117
|
}
|
|
118
|
+
.selected_block_links {
|
|
119
|
+
display: flex;
|
|
120
|
+
flex-direction: column;
|
|
121
|
+
gap: 4px;
|
|
122
|
+
}
|
|
118
123
|
</style>
|
|
@@ -3,7 +3,11 @@
|
|
|
3
3
|
<div :class="sidebarOpen ? 'arg_main_with_sidebar' : 'arg_main_no_sidebar'">
|
|
4
4
|
<slot name="sidebar" />
|
|
5
5
|
<div class="arg_main_layout_body">
|
|
6
|
-
<div
|
|
6
|
+
<div
|
|
7
|
+
class="arg_info"
|
|
8
|
+
:class="infoOpen ? 'arg_info_open' : 'arg_info_closed'"
|
|
9
|
+
id="arg_info_section"
|
|
10
|
+
>
|
|
7
11
|
<slot name="infoBar" />
|
|
8
12
|
<slot name="infoSection" />
|
|
9
13
|
</div>
|
|
@@ -18,7 +22,7 @@
|
|
|
18
22
|
import {
|
|
19
23
|
onMounted,
|
|
20
24
|
defineComponent,
|
|
21
|
-
|
|
25
|
+
onUpdated
|
|
22
26
|
} from "vue";
|
|
23
27
|
import argFooter from "./argFooter.vue";
|
|
24
28
|
import argStyle from "./argStyle.vue";
|
|
@@ -29,6 +33,10 @@ export default defineComponent({
|
|
|
29
33
|
sidebarOpen: {
|
|
30
34
|
type: Boolean,
|
|
31
35
|
default: true
|
|
36
|
+
},
|
|
37
|
+
infoOpen: {
|
|
38
|
+
type: Boolean,
|
|
39
|
+
default: false
|
|
32
40
|
}
|
|
33
41
|
},
|
|
34
42
|
setup() {
|
|
@@ -38,7 +46,7 @@ export default defineComponent({
|
|
|
38
46
|
window.addEventListener("popstate", adjustMarginForBody);
|
|
39
47
|
window.addEventListener("click", adjustMarginForBody);
|
|
40
48
|
});
|
|
41
|
-
|
|
49
|
+
onUpdated(() => {
|
|
42
50
|
adjustMarginForBody();
|
|
43
51
|
});
|
|
44
52
|
function adjustMarginForBody() {
|
|
@@ -81,6 +89,12 @@ export default defineComponent({
|
|
|
81
89
|
.arg_info {
|
|
82
90
|
position: fixed;
|
|
83
91
|
right: 8px;
|
|
84
|
-
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.arg_info_open {
|
|
95
|
+
z-index: 99;
|
|
96
|
+
}
|
|
97
|
+
.arg_info_closed {
|
|
98
|
+
z-index: 95;
|
|
85
99
|
}
|
|
86
100
|
</style>
|
|
@@ -3,12 +3,21 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3
3
|
type: BooleanConstructor;
|
|
4
4
|
default: boolean;
|
|
5
5
|
};
|
|
6
|
+
infoOpen: {
|
|
7
|
+
type: BooleanConstructor;
|
|
8
|
+
default: boolean;
|
|
9
|
+
};
|
|
6
10
|
}, void, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
7
11
|
sidebarOpen: {
|
|
8
12
|
type: BooleanConstructor;
|
|
9
13
|
default: boolean;
|
|
10
14
|
};
|
|
15
|
+
infoOpen: {
|
|
16
|
+
type: BooleanConstructor;
|
|
17
|
+
default: boolean;
|
|
18
|
+
};
|
|
11
19
|
}>>, {
|
|
12
20
|
sidebarOpen: boolean;
|
|
21
|
+
infoOpen: boolean;
|
|
13
22
|
}, {}>;
|
|
14
23
|
export default _default;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{
|
|
2
2
|
element_table: {
|
|
3
3
|
type: {
|
|
4
|
-
(arrayLength: number):
|
|
5
|
-
(...items:
|
|
6
|
-
new (arrayLength: number):
|
|
7
|
-
new (...items:
|
|
4
|
+
(arrayLength: number): (Object | String)[];
|
|
5
|
+
(...items: (Object | String)[]): (Object | String)[];
|
|
6
|
+
new (arrayLength: number): (Object | String)[];
|
|
7
|
+
new (...items: (Object | String)[]): (Object | String)[];
|
|
8
8
|
isArray(arg: any): arg is any[];
|
|
9
9
|
readonly prototype: any[];
|
|
10
10
|
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
@@ -143,10 +143,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
143
143
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onClose" | "changeElement" | "update:Selection" | "changeInputValue")[], "onClose" | "changeElement" | "update:Selection" | "changeInputValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
144
144
|
element_table: {
|
|
145
145
|
type: {
|
|
146
|
-
(arrayLength: number):
|
|
147
|
-
(...items:
|
|
148
|
-
new (arrayLength: number):
|
|
149
|
-
new (...items:
|
|
146
|
+
(arrayLength: number): (Object | String)[];
|
|
147
|
+
(...items: (Object | String)[]): (Object | String)[];
|
|
148
|
+
new (arrayLength: number): (Object | String)[];
|
|
149
|
+
new (...items: (Object | String)[]): (Object | String)[];
|
|
150
150
|
isArray(arg: any): arg is any[];
|
|
151
151
|
readonly prototype: any[];
|
|
152
152
|
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="scope_change_display">
|
|
3
|
+
<arg-btn btn-style="primary-fill" @onClick="changeDisplay()">{{
|
|
4
|
+
getTitle
|
|
5
|
+
}}</arg-btn>
|
|
6
|
+
<div
|
|
7
|
+
:style="
|
|
8
|
+
isDisplay === false || scopes.length === 0 ? 'display : none' : ''
|
|
9
|
+
"
|
|
10
|
+
class="scope_select_dropdown_block"
|
|
11
|
+
>
|
|
12
|
+
<div class="oip_select_dropdown_selection_container">
|
|
13
|
+
<arg-btn
|
|
14
|
+
btn-style="primary-stroke"
|
|
15
|
+
class="my-4"
|
|
16
|
+
@onClick="newScope()"
|
|
17
|
+
prefix-icon="PlusCircle"
|
|
18
|
+
>{{ lang === "fr" ? "Nouveau scope" : "New scope" }}</arg-btn
|
|
19
|
+
>
|
|
20
|
+
<div
|
|
21
|
+
v-for="(element, index) of scopes"
|
|
22
|
+
:key="index"
|
|
23
|
+
class="oip_select_complex_selection_loop"
|
|
24
|
+
@click="selectScope(element)"
|
|
25
|
+
>
|
|
26
|
+
<arg-icon
|
|
27
|
+
:class="selectedScope?.id === element.id ? 'add' : ''"
|
|
28
|
+
:color="
|
|
29
|
+
selectedScope?.id === element.id
|
|
30
|
+
? 'var(--primary)'
|
|
31
|
+
: 'var(--lavendar-grey)'
|
|
32
|
+
"
|
|
33
|
+
size="16"
|
|
34
|
+
:name="
|
|
35
|
+
selectedScope?.id === element.id ? 'CircleSelectFill' : 'Circle'
|
|
36
|
+
"
|
|
37
|
+
/>
|
|
38
|
+
<div
|
|
39
|
+
:class="[
|
|
40
|
+
'oip_select_complex_selection_loop_name',
|
|
41
|
+
selectedScope?.id === element.id ? 'add' : 'del',
|
|
42
|
+
]"
|
|
43
|
+
>
|
|
44
|
+
{{ element.title }}
|
|
45
|
+
</div>
|
|
46
|
+
</div>
|
|
47
|
+
</div>
|
|
48
|
+
</div>
|
|
49
|
+
</div>
|
|
50
|
+
</template>
|
|
51
|
+
|
|
52
|
+
<script>
|
|
53
|
+
import argIcon from "./argIcon.vue";
|
|
54
|
+
import argBtn from "./argBtn.vue";
|
|
55
|
+
import {
|
|
56
|
+
onMounted,
|
|
57
|
+
ref,
|
|
58
|
+
computed,
|
|
59
|
+
watch,
|
|
60
|
+
defineComponent,
|
|
61
|
+
onUnmounted
|
|
62
|
+
} from "vue";
|
|
63
|
+
export default defineComponent({
|
|
64
|
+
name: "argScopeChange",
|
|
65
|
+
components: { argIcon, argBtn },
|
|
66
|
+
props: {
|
|
67
|
+
scopes: { type: Array, required: true },
|
|
68
|
+
active_scope: { type: Object, required: false, default: null },
|
|
69
|
+
lang: {
|
|
70
|
+
type: String,
|
|
71
|
+
default: "en",
|
|
72
|
+
validator: (value) => {
|
|
73
|
+
return ["en", "fr"].includes(value);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
emits: ["changeScope", "update:Scope", "onNewScope"],
|
|
78
|
+
setup(props, { emit }) {
|
|
79
|
+
const isDisplay = ref(false);
|
|
80
|
+
const selectedScope = ref(null);
|
|
81
|
+
onMounted(() => {
|
|
82
|
+
if (props.active_scope !== null) {
|
|
83
|
+
selectedScope.value = props.active_scope;
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
watch(
|
|
87
|
+
() => props.scopes,
|
|
88
|
+
(new_scopes) => {
|
|
89
|
+
if (new_scopes !== null) {
|
|
90
|
+
selectedScope.value = new_scopes;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
);
|
|
94
|
+
const getTitle = computed(() => {
|
|
95
|
+
if (props.scopes.length > 0) {
|
|
96
|
+
return props.lang === "en" ? "Change scope" : "Changer de scope";
|
|
97
|
+
} else
|
|
98
|
+
return props.lang === "en" ? "New scope" : "Nouveau scope";
|
|
99
|
+
});
|
|
100
|
+
function closeDropdown() {
|
|
101
|
+
isDisplay.value = false;
|
|
102
|
+
document?.removeEventListener("click", closeDropdown);
|
|
103
|
+
}
|
|
104
|
+
function selectScope(scope) {
|
|
105
|
+
selectedScope.value = scope;
|
|
106
|
+
emit("changeScope", scope);
|
|
107
|
+
emit("update:Scope", scope);
|
|
108
|
+
}
|
|
109
|
+
function changeDisplay() {
|
|
110
|
+
if (props.scopes.length === 0) {
|
|
111
|
+
emit("onNewScope");
|
|
112
|
+
} else {
|
|
113
|
+
if (isDisplay.value === true) {
|
|
114
|
+
isDisplay.value = !isDisplay.value;
|
|
115
|
+
} else {
|
|
116
|
+
isDisplay.value = !isDisplay.value;
|
|
117
|
+
setTimeout(() => {
|
|
118
|
+
document?.addEventListener("click", closeDropdown);
|
|
119
|
+
}, 100);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
function newScope() {
|
|
124
|
+
emit("onNewScope");
|
|
125
|
+
}
|
|
126
|
+
onUnmounted(() => {
|
|
127
|
+
document?.removeEventListener("click", closeDropdown);
|
|
128
|
+
});
|
|
129
|
+
return {
|
|
130
|
+
isDisplay,
|
|
131
|
+
closeDropdown,
|
|
132
|
+
changeDisplay,
|
|
133
|
+
getTitle,
|
|
134
|
+
selectScope,
|
|
135
|
+
selectedScope,
|
|
136
|
+
newScope
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
});
|
|
140
|
+
</script>
|
|
141
|
+
|
|
142
|
+
<style scoped>
|
|
143
|
+
.scope_select_dropdown_block {
|
|
144
|
+
z-index: 99 !important;
|
|
145
|
+
margin-top: 15px;
|
|
146
|
+
position: absolute;
|
|
147
|
+
min-width: 100px;
|
|
148
|
+
max-height: 200px;
|
|
149
|
+
border: 1.5px solid var(--dividers);
|
|
150
|
+
background: var(--demi-fond);
|
|
151
|
+
border-radius: 12px;
|
|
152
|
+
box-shadow: var(--overlay-shadow);
|
|
153
|
+
padding: 16px;
|
|
154
|
+
display: flex;
|
|
155
|
+
flex-direction: column;
|
|
156
|
+
right: -16px;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.scope_change_display {
|
|
160
|
+
position: relative;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.oip_select_complex_selection_loop > svg.add {
|
|
164
|
+
color: var(--primary) !important;
|
|
165
|
+
}
|
|
166
|
+
.oip_select_complex_selection_loop > svg.disable,
|
|
167
|
+
.oip_select_complex_selection_loop.disabled_option:hover svg {
|
|
168
|
+
color: var(--independence) !important;
|
|
169
|
+
}
|
|
170
|
+
.oip_select_complex_selection_loop:hover > svg.add {
|
|
171
|
+
color: var(--primary-hover) !important;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.oip_select_complex_selection_loop:hover svg {
|
|
175
|
+
color: var(--primary) !important;
|
|
176
|
+
}
|
|
177
|
+
.oip_select_complex_selection_loop .add {
|
|
178
|
+
font-weight: 700 !important;
|
|
179
|
+
}
|
|
180
|
+
.oip_select_complex_selection_loop:hover {
|
|
181
|
+
background: rgba(33, 118, 255, 0.05) !important;
|
|
182
|
+
border-radius: 4px !important;
|
|
183
|
+
}
|
|
184
|
+
.oip_select_complex_selection_loop {
|
|
185
|
+
padding: 2px 4px;
|
|
186
|
+
}
|
|
187
|
+
.oip_select_complex_selection_loop.disabled_option:hover {
|
|
188
|
+
background: transparent !important;
|
|
189
|
+
}
|
|
190
|
+
.oip_select_complex_selection_loop {
|
|
191
|
+
margin: 4px 0px !important;
|
|
192
|
+
}
|
|
193
|
+
svg.add {
|
|
194
|
+
flex-shrink: 0;
|
|
195
|
+
}
|
|
196
|
+
.my-4 {
|
|
197
|
+
margin: 4px 0px;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.full_width {
|
|
201
|
+
width: 100%;
|
|
202
|
+
}
|
|
203
|
+
</style>
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
scopes: {
|
|
3
|
+
type: {
|
|
4
|
+
(arrayLength: number): string[];
|
|
5
|
+
(...items: string[]): string[];
|
|
6
|
+
new (arrayLength: number): string[];
|
|
7
|
+
new (...items: string[]): string[];
|
|
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
|
+
active_scope: {
|
|
20
|
+
type: ObjectConstructor;
|
|
21
|
+
required: false;
|
|
22
|
+
default: null;
|
|
23
|
+
};
|
|
24
|
+
lang: {
|
|
25
|
+
type: StringConstructor;
|
|
26
|
+
default: string;
|
|
27
|
+
validator: (value: string) => boolean;
|
|
28
|
+
};
|
|
29
|
+
}, {
|
|
30
|
+
isDisplay: import("vue").Ref<boolean>;
|
|
31
|
+
closeDropdown: () => void;
|
|
32
|
+
changeDisplay: () => void;
|
|
33
|
+
getTitle: import("vue").ComputedRef<"Change scope" | "Changer de scope" | "New scope" | "Nouveau scope">;
|
|
34
|
+
selectScope: (scope: any) => void;
|
|
35
|
+
selectedScope: any;
|
|
36
|
+
newScope: () => void;
|
|
37
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:Scope" | "changeScope" | "onNewScope")[], "update:Scope" | "changeScope" | "onNewScope", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
38
|
+
scopes: {
|
|
39
|
+
type: {
|
|
40
|
+
(arrayLength: number): string[];
|
|
41
|
+
(...items: string[]): string[];
|
|
42
|
+
new (arrayLength: number): string[];
|
|
43
|
+
new (...items: string[]): string[];
|
|
44
|
+
isArray(arg: any): arg is any[];
|
|
45
|
+
readonly prototype: any[];
|
|
46
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
47
|
+
from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
|
|
48
|
+
from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
|
|
49
|
+
from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
|
|
50
|
+
of<T_4>(...items: T_4[]): T_4[];
|
|
51
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
52
|
+
};
|
|
53
|
+
required: true;
|
|
54
|
+
};
|
|
55
|
+
active_scope: {
|
|
56
|
+
type: ObjectConstructor;
|
|
57
|
+
required: false;
|
|
58
|
+
default: null;
|
|
59
|
+
};
|
|
60
|
+
lang: {
|
|
61
|
+
type: StringConstructor;
|
|
62
|
+
default: string;
|
|
63
|
+
validator: (value: string) => boolean;
|
|
64
|
+
};
|
|
65
|
+
}>> & {
|
|
66
|
+
"onUpdate:Scope"?: ((...args: any[]) => any) | undefined;
|
|
67
|
+
onChangeScope?: ((...args: any[]) => any) | undefined;
|
|
68
|
+
onOnNewScope?: ((...args: any[]) => any) | undefined;
|
|
69
|
+
}, {
|
|
70
|
+
lang: string;
|
|
71
|
+
active_scope: Record<string, any>;
|
|
72
|
+
}, {}>;
|
|
73
|
+
export default _default;
|
|
@@ -220,6 +220,7 @@ export default defineComponent({
|
|
|
220
220
|
width: 50%;
|
|
221
221
|
flex: 1 1 0;
|
|
222
222
|
display: flex;
|
|
223
|
+
align-self: stretch;
|
|
223
224
|
}
|
|
224
225
|
|
|
225
226
|
.arg_save_header > h1 {
|
|
@@ -276,6 +277,7 @@ textarea::placeholder {
|
|
|
276
277
|
justify-content: center;
|
|
277
278
|
white-space: wrap;
|
|
278
279
|
text-align: center;
|
|
280
|
+
align-self: stretch;
|
|
279
281
|
}
|
|
280
282
|
|
|
281
283
|
.cursor-pointer {
|
|
@@ -91,6 +91,7 @@ body {
|
|
|
91
91
|
color: var(--independence);
|
|
92
92
|
background: var(--background);
|
|
93
93
|
margin: 0px;
|
|
94
|
+
text-wrap: pretty;
|
|
94
95
|
}
|
|
95
96
|
a {
|
|
96
97
|
text-decoration: none;
|
|
@@ -707,6 +708,7 @@ button {
|
|
|
707
708
|
flex-direction: row;
|
|
708
709
|
justify-content: center;
|
|
709
710
|
align-items: center;
|
|
711
|
+
text-wrap: pretty;
|
|
710
712
|
}
|
|
711
713
|
.oip_button_loading {
|
|
712
714
|
position: absolute;
|
|
@@ -1,7 +1,18 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div :class="sidebarOpen ? 'arg_sub_menu' : 'arg_sub_small'">
|
|
3
3
|
<button class="arg_sub_menu_button" @click="openMenu = !openMenu">
|
|
4
|
-
<
|
|
4
|
+
<div class="oip_row v-center gap-4">
|
|
5
|
+
<arg-icon
|
|
6
|
+
v-if="icon !== null"
|
|
7
|
+
:name="icon"
|
|
8
|
+
size="12"
|
|
9
|
+
color="var(--cool-grey)"
|
|
10
|
+
thickness="30"
|
|
11
|
+
:class="[openMenu ? 'active_icon' : '']"
|
|
12
|
+
/>
|
|
13
|
+
<arg-flag v-else-if="flagIso !== null" :iso="flagIso" emoji />
|
|
14
|
+
<span v-show="sidebarOpen">{{ label }}</span>
|
|
15
|
+
</div>
|
|
5
16
|
<arg-tooltip
|
|
6
17
|
:tooltip-text="label"
|
|
7
18
|
:disable="sidebarOpen"
|
|
@@ -16,7 +27,7 @@
|
|
|
16
27
|
:class="[
|
|
17
28
|
'action_icon',
|
|
18
29
|
sidebarOpen ? '' : 'icon_sb',
|
|
19
|
-
openMenu ? 'active_icon' : '',
|
|
30
|
+
openMenu ? 'active_icon rotate_icon' : '',
|
|
20
31
|
]"
|
|
21
32
|
/>
|
|
22
33
|
</arg-tooltip>
|
|
@@ -38,7 +49,8 @@ export default defineComponent({
|
|
|
38
49
|
components: { argIcon, argTooltip },
|
|
39
50
|
props: {
|
|
40
51
|
label: { type: String, required: true },
|
|
41
|
-
icon: { type: String },
|
|
52
|
+
icon: { type: String, default: null },
|
|
53
|
+
flagIso: { type: String, default: null },
|
|
42
54
|
defaultCollapseState: { type: Boolean, default: true },
|
|
43
55
|
sidebarOpen: { type: Boolean, default: true }
|
|
44
56
|
},
|
|
@@ -106,7 +118,10 @@ export default defineComponent({
|
|
|
106
118
|
}
|
|
107
119
|
|
|
108
120
|
.active_icon {
|
|
109
|
-
transform: rotate(180deg);
|
|
110
121
|
color: var(--primary) !important;
|
|
111
122
|
}
|
|
123
|
+
|
|
124
|
+
.rotate_icon {
|
|
125
|
+
transform: rotate(180deg);
|
|
126
|
+
}
|
|
112
127
|
</style>
|
|
@@ -5,6 +5,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
5
5
|
};
|
|
6
6
|
icon: {
|
|
7
7
|
type: StringConstructor;
|
|
8
|
+
default: null;
|
|
9
|
+
};
|
|
10
|
+
flagIso: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
default: null;
|
|
8
13
|
};
|
|
9
14
|
defaultCollapseState: {
|
|
10
15
|
type: BooleanConstructor;
|
|
@@ -23,6 +28,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
23
28
|
};
|
|
24
29
|
icon: {
|
|
25
30
|
type: StringConstructor;
|
|
31
|
+
default: null;
|
|
32
|
+
};
|
|
33
|
+
flagIso: {
|
|
34
|
+
type: StringConstructor;
|
|
35
|
+
default: null;
|
|
26
36
|
};
|
|
27
37
|
defaultCollapseState: {
|
|
28
38
|
type: BooleanConstructor;
|
|
@@ -33,7 +43,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
33
43
|
default: boolean;
|
|
34
44
|
};
|
|
35
45
|
}>>, {
|
|
46
|
+
icon: string;
|
|
36
47
|
sidebarOpen: boolean;
|
|
48
|
+
flagIso: string;
|
|
37
49
|
defaultCollapseState: boolean;
|
|
38
50
|
}, {}>;
|
|
39
51
|
export default _default;
|