@tekkare/auriga 0.1.7 → 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.
- package/dist/module.json +1 -1
- package/dist/runtime/components/argActions.vue +120 -0
- package/dist/runtime/components/argActions.vue.d.ts +29 -0
- 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 +14 -6
- package/dist/runtime/components/argCheckbox.vue.d.ts +11 -2
- package/dist/runtime/components/argComplexSelect.vue +2 -2
- package/dist/runtime/components/argDataLoader.vue +13 -3
- package/dist/runtime/components/argDataLoader.vue.d.ts +22 -1
- package/dist/runtime/components/argFileBtn.vue.d.ts +2 -2
- package/dist/runtime/components/argFilterCard.vue +37 -8
- 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 +8 -2
- package/dist/runtime/components/argHeader.vue.d.ts +9 -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 +43 -20
- package/dist/runtime/components/argMenuLink.vue.d.ts +9 -0
- package/dist/runtime/components/argMultipleChoice.vue +25 -3
- package/dist/runtime/components/argMultipleSelect.vue +785 -0
- package/dist/runtime/components/argMultipleSelect.vue.d.ts +143 -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 +134 -0
- package/dist/runtime/components/argRadioButtons.vue.d.ts +48 -0
- package/dist/runtime/components/argSidebar.vue +89 -9
- package/dist/runtime/components/argSidebar.vue.d.ts +8 -2
- package/dist/runtime/components/argStyle.vue +18 -2
- package/dist/runtime/components/argSubMenu.vue +79 -37
- package/dist/runtime/components/argSubMenu.vue.d.ts +9 -0
- package/dist/runtime/components/argTable.vue +15 -1
- package/package.json +1 -1
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
element_table: {
|
|
3
|
+
type: ArrayConstructor;
|
|
4
|
+
required: true;
|
|
5
|
+
};
|
|
6
|
+
nested: {
|
|
7
|
+
type: BooleanConstructor;
|
|
8
|
+
default: boolean;
|
|
9
|
+
};
|
|
10
|
+
search: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
default: boolean;
|
|
13
|
+
};
|
|
14
|
+
filter_placeholder: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
required: false;
|
|
17
|
+
};
|
|
18
|
+
show_all: {
|
|
19
|
+
type: BooleanConstructor;
|
|
20
|
+
default: boolean;
|
|
21
|
+
};
|
|
22
|
+
default_select: {
|
|
23
|
+
type: ArrayConstructor;
|
|
24
|
+
required: false;
|
|
25
|
+
};
|
|
26
|
+
preselection_all: {
|
|
27
|
+
type: BooleanConstructor;
|
|
28
|
+
default: boolean;
|
|
29
|
+
};
|
|
30
|
+
disabled: {
|
|
31
|
+
type: BooleanConstructor;
|
|
32
|
+
default: boolean;
|
|
33
|
+
};
|
|
34
|
+
multiple_columns: {
|
|
35
|
+
type: BooleanConstructor;
|
|
36
|
+
default: boolean;
|
|
37
|
+
};
|
|
38
|
+
options_disable: {
|
|
39
|
+
type: ArrayConstructor;
|
|
40
|
+
default: () => never[];
|
|
41
|
+
};
|
|
42
|
+
show_amount: {
|
|
43
|
+
type: BooleanConstructor;
|
|
44
|
+
default: boolean;
|
|
45
|
+
};
|
|
46
|
+
emptyMsg: {
|
|
47
|
+
type: StringConstructor;
|
|
48
|
+
default: string;
|
|
49
|
+
};
|
|
50
|
+
}, {
|
|
51
|
+
del_all: () => void;
|
|
52
|
+
del_all_cat: (index: number) => void;
|
|
53
|
+
add_all_cat: (index: number) => void;
|
|
54
|
+
add_all: () => void;
|
|
55
|
+
del_nested_elements: (index: number, elem: string) => void;
|
|
56
|
+
add_nested_element: (index: number, elem: string) => void;
|
|
57
|
+
del_element: (element: string, index: number) => void;
|
|
58
|
+
add_element: (element: string, index: number) => void;
|
|
59
|
+
close: () => void;
|
|
60
|
+
changeDisplay: () => void;
|
|
61
|
+
selected_all_cats: (index: number) => boolean;
|
|
62
|
+
getNestedOptions: (index: number) => any;
|
|
63
|
+
nestedIncludes: (option: string, index: number) => boolean;
|
|
64
|
+
changeInput: () => void;
|
|
65
|
+
nestedSelectedLength: import("vue").ComputedRef<number>;
|
|
66
|
+
optionsWithoutDisabled: import("vue").ComputedRef<NumberConstructor[]>;
|
|
67
|
+
filterNested: import("vue").ComputedRef<unknown[]>;
|
|
68
|
+
filterName: import("vue").ComputedRef<unknown[]>;
|
|
69
|
+
getOptions: import("vue").ComputedRef<NumberConstructor[]>;
|
|
70
|
+
getAllSelect: import("vue").ComputedRef<string>;
|
|
71
|
+
isDisplay: import("vue").Ref<boolean>;
|
|
72
|
+
searchName: import("vue").Ref<null>;
|
|
73
|
+
selected_items: import("vue").Ref<never[]>;
|
|
74
|
+
selected_nested: import("vue").Ref<never[]>;
|
|
75
|
+
selected_all: import("vue").Ref<boolean>;
|
|
76
|
+
selectedCats: import("vue").Ref<never[]>;
|
|
77
|
+
valueFrom: import("vue").Ref<never[]>;
|
|
78
|
+
}, 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<{
|
|
79
|
+
element_table: {
|
|
80
|
+
type: ArrayConstructor;
|
|
81
|
+
required: true;
|
|
82
|
+
};
|
|
83
|
+
nested: {
|
|
84
|
+
type: BooleanConstructor;
|
|
85
|
+
default: boolean;
|
|
86
|
+
};
|
|
87
|
+
search: {
|
|
88
|
+
type: BooleanConstructor;
|
|
89
|
+
default: boolean;
|
|
90
|
+
};
|
|
91
|
+
filter_placeholder: {
|
|
92
|
+
type: StringConstructor;
|
|
93
|
+
required: false;
|
|
94
|
+
};
|
|
95
|
+
show_all: {
|
|
96
|
+
type: BooleanConstructor;
|
|
97
|
+
default: boolean;
|
|
98
|
+
};
|
|
99
|
+
default_select: {
|
|
100
|
+
type: ArrayConstructor;
|
|
101
|
+
required: false;
|
|
102
|
+
};
|
|
103
|
+
preselection_all: {
|
|
104
|
+
type: BooleanConstructor;
|
|
105
|
+
default: boolean;
|
|
106
|
+
};
|
|
107
|
+
disabled: {
|
|
108
|
+
type: BooleanConstructor;
|
|
109
|
+
default: boolean;
|
|
110
|
+
};
|
|
111
|
+
multiple_columns: {
|
|
112
|
+
type: BooleanConstructor;
|
|
113
|
+
default: boolean;
|
|
114
|
+
};
|
|
115
|
+
options_disable: {
|
|
116
|
+
type: ArrayConstructor;
|
|
117
|
+
default: () => never[];
|
|
118
|
+
};
|
|
119
|
+
show_amount: {
|
|
120
|
+
type: BooleanConstructor;
|
|
121
|
+
default: boolean;
|
|
122
|
+
};
|
|
123
|
+
emptyMsg: {
|
|
124
|
+
type: StringConstructor;
|
|
125
|
+
default: string;
|
|
126
|
+
};
|
|
127
|
+
}>> & {
|
|
128
|
+
onOnClose?: ((...args: any[]) => any) | undefined;
|
|
129
|
+
onChangeElement?: ((...args: any[]) => any) | undefined;
|
|
130
|
+
"onUpdate:Selection"?: ((...args: any[]) => any) | undefined;
|
|
131
|
+
onChangeInputValue?: ((...args: any[]) => any) | undefined;
|
|
132
|
+
}, {
|
|
133
|
+
disabled: boolean;
|
|
134
|
+
show_amount: boolean;
|
|
135
|
+
search: boolean;
|
|
136
|
+
nested: boolean;
|
|
137
|
+
show_all: boolean;
|
|
138
|
+
preselection_all: boolean;
|
|
139
|
+
multiple_columns: boolean;
|
|
140
|
+
options_disable: unknown[];
|
|
141
|
+
emptyMsg: string;
|
|
142
|
+
}, {}>;
|
|
143
|
+
export default _default;
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
:class="{
|
|
25
25
|
active: true_index_menu.toString() === (index + 1).toString(),
|
|
26
26
|
}"
|
|
27
|
-
@click="changeMenu(index + 1)"
|
|
27
|
+
@click="changeMenu(index + 1, tab.value)"
|
|
28
28
|
>
|
|
29
|
-
<p>{{ tab }}</p>
|
|
29
|
+
<p>{{ tab.name }}</p>
|
|
30
30
|
</button>
|
|
31
31
|
</span>
|
|
32
32
|
</div>
|
|
@@ -60,18 +60,28 @@ export default defineComponent({
|
|
|
60
60
|
index_menu: {
|
|
61
61
|
type: [String, Number],
|
|
62
62
|
default: 1
|
|
63
|
+
},
|
|
64
|
+
returnValue: {
|
|
65
|
+
type: Boolean,
|
|
66
|
+
default: true
|
|
63
67
|
}
|
|
64
68
|
},
|
|
65
69
|
emits: ["updateMenu", "update:Menu"],
|
|
66
70
|
setup(props, { emit }) {
|
|
67
|
-
const true_index_menu = ref(
|
|
71
|
+
const true_index_menu = ref(0);
|
|
68
72
|
const scrollValue = ref(0);
|
|
69
73
|
const oldWidth = ref();
|
|
70
74
|
const isOverflow = ref(false);
|
|
71
75
|
watch(
|
|
72
76
|
() => props.index_menu,
|
|
73
77
|
(new_index_menu) => {
|
|
74
|
-
|
|
78
|
+
if (typeof new_index_menu === "string") {
|
|
79
|
+
true_index_menu.value = props.tabs.findIndex(
|
|
80
|
+
(i) => i.value === new_index_menu
|
|
81
|
+
) + 1;
|
|
82
|
+
} else {
|
|
83
|
+
true_index_menu.value = new_index_menu;
|
|
84
|
+
}
|
|
75
85
|
setBarWidth(true_index_menu.value);
|
|
76
86
|
}
|
|
77
87
|
);
|
|
@@ -106,15 +116,15 @@ export default defineComponent({
|
|
|
106
116
|
} else
|
|
107
117
|
isOverflow.value = false;
|
|
108
118
|
}
|
|
109
|
-
function changeMenu(value) {
|
|
110
|
-
if (
|
|
111
|
-
emit("updateMenu", value.toString());
|
|
112
|
-
emit("update:Menu", value.toString());
|
|
113
|
-
} else {
|
|
119
|
+
function changeMenu(index, value) {
|
|
120
|
+
if (props.returnValue) {
|
|
114
121
|
emit("updateMenu", value);
|
|
115
122
|
emit("update:Menu", value);
|
|
123
|
+
} else {
|
|
124
|
+
emit("updateMenu", index);
|
|
125
|
+
emit("update:Menu", index);
|
|
116
126
|
}
|
|
117
|
-
true_index_menu.value =
|
|
127
|
+
true_index_menu.value = index;
|
|
118
128
|
setBarWidth(true_index_menu.value);
|
|
119
129
|
}
|
|
120
130
|
function scroll_left() {
|
|
@@ -165,14 +175,18 @@ export default defineComponent({
|
|
|
165
175
|
}
|
|
166
176
|
oldWidth.value = window?.innerWidth;
|
|
167
177
|
};
|
|
168
|
-
|
|
178
|
+
if (typeof props.index_menu === "string") {
|
|
179
|
+
true_index_menu.value = props.tabs.findIndex((i) => i.value === props.index_menu) + 1;
|
|
180
|
+
} else {
|
|
181
|
+
true_index_menu.value = props.index_menu;
|
|
182
|
+
}
|
|
169
183
|
setTimeout(() => {
|
|
170
184
|
const content = document.getElementById("scroll_tabs");
|
|
171
185
|
if (content !== null) {
|
|
172
186
|
if (getTranslationWidth.value > content.offsetWidth) {
|
|
173
187
|
content.scrollLeft += getTranslationWidth.value;
|
|
174
188
|
}
|
|
175
|
-
setBarWidth(
|
|
189
|
+
setBarWidth(true_index_menu.value);
|
|
176
190
|
checkOverflow();
|
|
177
191
|
}
|
|
178
192
|
}, 100);
|
|
@@ -7,11 +7,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
7
7
|
type: (StringConstructor | NumberConstructor)[];
|
|
8
8
|
default: number;
|
|
9
9
|
};
|
|
10
|
+
returnValue: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
default: boolean;
|
|
13
|
+
};
|
|
10
14
|
}, {
|
|
11
|
-
true_index_menu: import("vue").Ref<
|
|
15
|
+
true_index_menu: import("vue").Ref<number>;
|
|
12
16
|
scrollValue: import("vue").Ref<number>;
|
|
13
17
|
oldWidth: import("vue").Ref<any>;
|
|
14
|
-
changeMenu: (
|
|
18
|
+
changeMenu: (index: number, value: string) => void;
|
|
15
19
|
setBarWidth: (index: number | string) => void;
|
|
16
20
|
isOverflow: import("vue").Ref<boolean>;
|
|
17
21
|
checkOverflow: () => void;
|
|
@@ -26,10 +30,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
26
30
|
type: (StringConstructor | NumberConstructor)[];
|
|
27
31
|
default: number;
|
|
28
32
|
};
|
|
33
|
+
returnValue: {
|
|
34
|
+
type: BooleanConstructor;
|
|
35
|
+
default: boolean;
|
|
36
|
+
};
|
|
29
37
|
}>> & {
|
|
30
38
|
onUpdateMenu?: ((...args: any[]) => any) | undefined;
|
|
31
39
|
"onUpdate:Menu"?: ((...args: any[]) => any) | undefined;
|
|
32
40
|
}, {
|
|
41
|
+
returnValue: boolean;
|
|
33
42
|
index_menu: string | number;
|
|
34
43
|
}, {}>;
|
|
35
44
|
export default _default;
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div :class="`radio_display radio_${dir}`">
|
|
3
|
+
<div
|
|
4
|
+
v-for="(radio, index) in elements"
|
|
5
|
+
:key="index"
|
|
6
|
+
class="oip_row v-center gap-4"
|
|
7
|
+
:class="selectedRadio === index + 1 ? 'selected-radio' : 'display-radio'"
|
|
8
|
+
@click="selectRadio(index + 1, radio)"
|
|
9
|
+
>
|
|
10
|
+
<arg-icon
|
|
11
|
+
:name="getIconName(index + 1)"
|
|
12
|
+
size="20"
|
|
13
|
+
:color="getColor(index + 1)"
|
|
14
|
+
thickness="24"
|
|
15
|
+
/>
|
|
16
|
+
<p>{{ radio }}</p>
|
|
17
|
+
</div>
|
|
18
|
+
</div>
|
|
19
|
+
</template>
|
|
20
|
+
|
|
21
|
+
<script>
|
|
22
|
+
import argIcon from "./argIcon.vue";
|
|
23
|
+
import {
|
|
24
|
+
ref,
|
|
25
|
+
onBeforeMount,
|
|
26
|
+
defineComponent
|
|
27
|
+
} from "vue";
|
|
28
|
+
export default defineComponent({
|
|
29
|
+
name: "argRadioButtons",
|
|
30
|
+
components: {
|
|
31
|
+
argIcon
|
|
32
|
+
},
|
|
33
|
+
props: {
|
|
34
|
+
elements: {
|
|
35
|
+
type: Array,
|
|
36
|
+
required: true
|
|
37
|
+
},
|
|
38
|
+
defaultSelect: {
|
|
39
|
+
type: Number,
|
|
40
|
+
default: 1
|
|
41
|
+
},
|
|
42
|
+
returnValue: {
|
|
43
|
+
type: Boolean,
|
|
44
|
+
default: false
|
|
45
|
+
},
|
|
46
|
+
dir: {
|
|
47
|
+
type: String,
|
|
48
|
+
default: "row"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
emits: ["changeElement", "update:Selection"],
|
|
52
|
+
setup(props, { emit }) {
|
|
53
|
+
const selectedRadio = ref(1);
|
|
54
|
+
onBeforeMount(() => {
|
|
55
|
+
selectRadio(props.defaultSelect, "");
|
|
56
|
+
});
|
|
57
|
+
function selectRadio(index, value) {
|
|
58
|
+
selectedRadio.value = index;
|
|
59
|
+
if (props.returnValue) {
|
|
60
|
+
emit("changeElement", value);
|
|
61
|
+
emit("update:Selection", value);
|
|
62
|
+
} else {
|
|
63
|
+
emit("changeElement", selectedRadio.value);
|
|
64
|
+
emit("update:Selection", selectedRadio.value);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
function getIconName(index) {
|
|
68
|
+
if (index === selectedRadio.value) {
|
|
69
|
+
return "CheckCircleFill";
|
|
70
|
+
} else
|
|
71
|
+
return "Circle";
|
|
72
|
+
}
|
|
73
|
+
function getColor(index) {
|
|
74
|
+
if (index === selectedRadio.value) {
|
|
75
|
+
return "var(--primary)";
|
|
76
|
+
} else
|
|
77
|
+
return "var(--lavendar-grey)";
|
|
78
|
+
}
|
|
79
|
+
return {
|
|
80
|
+
selectedRadio,
|
|
81
|
+
selectRadio,
|
|
82
|
+
getIconName,
|
|
83
|
+
getColor
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
</script>
|
|
88
|
+
|
|
89
|
+
<style scoped>
|
|
90
|
+
.display-radio,
|
|
91
|
+
.selected-radio {
|
|
92
|
+
border-radius: 2px;
|
|
93
|
+
cursor: pointer;
|
|
94
|
+
}
|
|
95
|
+
.display-radio:hover,
|
|
96
|
+
.selected-radio:hover {
|
|
97
|
+
background: var(--background);
|
|
98
|
+
box-shadow: 0px 0px 0px 4px #f5f5f9;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.display-radio:hover svg,
|
|
102
|
+
.selected-radio:hover svg {
|
|
103
|
+
color: var(--primary) !important;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.display-radio p {
|
|
107
|
+
font-weight: 400;
|
|
108
|
+
font-size: 14px;
|
|
109
|
+
line-height: 16px;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.selected-radio p {
|
|
113
|
+
font-weight: 500;
|
|
114
|
+
font-size: 14px;
|
|
115
|
+
line-height: 16px;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.radio_display {
|
|
119
|
+
display: flex;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.radio_row {
|
|
123
|
+
flex-direction: row;
|
|
124
|
+
align-items: center;
|
|
125
|
+
flex-wrap: wrap;
|
|
126
|
+
gap: 16px;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.radio_column {
|
|
130
|
+
flex-direction: column;
|
|
131
|
+
align-items: flex-start;
|
|
132
|
+
gap: 8px;
|
|
133
|
+
}
|
|
134
|
+
</style>
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
elements: {
|
|
3
|
+
type: ArrayConstructor;
|
|
4
|
+
required: true;
|
|
5
|
+
};
|
|
6
|
+
defaultSelect: {
|
|
7
|
+
type: NumberConstructor;
|
|
8
|
+
default: number;
|
|
9
|
+
};
|
|
10
|
+
returnValue: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
default: boolean;
|
|
13
|
+
};
|
|
14
|
+
dir: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
}, {
|
|
19
|
+
selectedRadio: import("vue").Ref<number>;
|
|
20
|
+
selectRadio: (index: number, value: string) => void;
|
|
21
|
+
getIconName: (index: number) => "CheckCircleFill" | "Circle";
|
|
22
|
+
getColor: (index: number) => "var(--primary)" | "var(--lavendar-grey)";
|
|
23
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("changeElement" | "update:Selection")[], "changeElement" | "update:Selection", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
24
|
+
elements: {
|
|
25
|
+
type: ArrayConstructor;
|
|
26
|
+
required: true;
|
|
27
|
+
};
|
|
28
|
+
defaultSelect: {
|
|
29
|
+
type: NumberConstructor;
|
|
30
|
+
default: number;
|
|
31
|
+
};
|
|
32
|
+
returnValue: {
|
|
33
|
+
type: BooleanConstructor;
|
|
34
|
+
default: boolean;
|
|
35
|
+
};
|
|
36
|
+
dir: {
|
|
37
|
+
type: StringConstructor;
|
|
38
|
+
default: string;
|
|
39
|
+
};
|
|
40
|
+
}>> & {
|
|
41
|
+
onChangeElement?: ((...args: any[]) => any) | undefined;
|
|
42
|
+
"onUpdate:Selection"?: ((...args: any[]) => any) | undefined;
|
|
43
|
+
}, {
|
|
44
|
+
defaultSelect: number;
|
|
45
|
+
returnValue: boolean;
|
|
46
|
+
dir: string;
|
|
47
|
+
}, {}>;
|
|
48
|
+
export default _default;
|
|
@@ -1,14 +1,46 @@
|
|
|
1
|
+
<!-- eslint-disable vue/max-attributes-per-line -->
|
|
1
2
|
<template>
|
|
2
|
-
<div class="arg_sidebar">
|
|
3
|
-
<div
|
|
3
|
+
<div :class="sidebarOpen ? 'arg_sidebar_open' : ''" class="arg_sidebar">
|
|
4
|
+
<div
|
|
5
|
+
:class="
|
|
6
|
+
sidebarOpen ? 'arg_sidebar_header_full' : 'arg_sidebar_header_small'
|
|
7
|
+
"
|
|
8
|
+
>
|
|
4
9
|
<nuxt-link to="/" class="arg_sidebar_home">
|
|
5
|
-
<arg-
|
|
6
|
-
|
|
7
|
-
|
|
10
|
+
<arg-tooltip
|
|
11
|
+
:tooltip-text="lang === 'en' ? 'Home' : 'Accueil'"
|
|
12
|
+
:disable="sidebarOpen"
|
|
13
|
+
dir="right"
|
|
14
|
+
:class="[
|
|
15
|
+
'tooltip_display',
|
|
16
|
+
sidebarOpen ? '' : 'link_menu_tooltip_icon',
|
|
17
|
+
]"
|
|
18
|
+
>
|
|
19
|
+
<arg-icon name="House" color="var(--primary)" />
|
|
20
|
+
</arg-tooltip>
|
|
21
|
+
<span v-if="lang === 'en' && sidebarOpen"> Home </span>
|
|
22
|
+
<span v-if="lang === 'fr' && sidebarOpen"> Accueil </span>
|
|
8
23
|
</nuxt-link>
|
|
24
|
+
<div class="sidebar_toggle" @click="toggleSidebar()">
|
|
25
|
+
<arg-tooltip
|
|
26
|
+
:tooltip-text="
|
|
27
|
+
lang === 'en' ? 'Open sidebar' : 'Ouvrir le menu latéral'
|
|
28
|
+
"
|
|
29
|
+
:disable="sidebarOpen"
|
|
30
|
+
dir="right"
|
|
31
|
+
:class="[
|
|
32
|
+
'tooltip_display',
|
|
33
|
+
sidebarOpen ? '' : 'link_menu_tooltip_icon',
|
|
34
|
+
]"
|
|
35
|
+
>
|
|
36
|
+
<arg-icon name="Sidebar" color="var(--primary)" />
|
|
37
|
+
</arg-tooltip>
|
|
38
|
+
</div>
|
|
9
39
|
</div>
|
|
10
40
|
|
|
11
|
-
<h1 class="arg_sidebar_title">
|
|
41
|
+
<h1 class="arg_sidebar_title">
|
|
42
|
+
<span v-show="sidebarOpen">{{ name }}</span>
|
|
43
|
+
</h1>
|
|
12
44
|
<div class="arg_sidebar_body">
|
|
13
45
|
<div class="arg_sidebar_content">
|
|
14
46
|
<slot name="menu" />
|
|
@@ -24,6 +56,8 @@
|
|
|
24
56
|
</template>
|
|
25
57
|
<script>
|
|
26
58
|
import {
|
|
59
|
+
onMounted,
|
|
60
|
+
ref,
|
|
27
61
|
defineComponent
|
|
28
62
|
} from "vue";
|
|
29
63
|
import argIcon from "./argIcon.vue";
|
|
@@ -41,13 +75,38 @@ export default defineComponent({
|
|
|
41
75
|
}
|
|
42
76
|
},
|
|
43
77
|
homeLink: { type: String, default: "/" }
|
|
78
|
+
},
|
|
79
|
+
emits: ["onSidebarChange", "update:Sidebar"],
|
|
80
|
+
setup(props, { emit }) {
|
|
81
|
+
onMounted(() => {
|
|
82
|
+
window?.addEventListener("resize", handleResize);
|
|
83
|
+
handleResize();
|
|
84
|
+
});
|
|
85
|
+
const sidebarOpen = ref(true);
|
|
86
|
+
function handleResize() {
|
|
87
|
+
if (window.innerWidth >= 1e3) {
|
|
88
|
+
sidebarOpen.value = true;
|
|
89
|
+
} else
|
|
90
|
+
sidebarOpen.value = false;
|
|
91
|
+
emit("onSidebarChange", sidebarOpen.value);
|
|
92
|
+
emit("update:Sidebar", sidebarOpen.value);
|
|
93
|
+
}
|
|
94
|
+
function toggleSidebar() {
|
|
95
|
+
emit("onSidebarChange", !sidebarOpen.value);
|
|
96
|
+
emit("update:Sidebar", !sidebarOpen.value);
|
|
97
|
+
sidebarOpen.value = !sidebarOpen.value;
|
|
98
|
+
}
|
|
99
|
+
return {
|
|
100
|
+
sidebarOpen,
|
|
101
|
+
toggleSidebar
|
|
102
|
+
};
|
|
44
103
|
}
|
|
45
104
|
});
|
|
46
105
|
</script>
|
|
47
106
|
<style scoped>
|
|
48
107
|
.arg_sidebar {
|
|
49
108
|
display: flex;
|
|
50
|
-
width:
|
|
109
|
+
width: 52px;
|
|
51
110
|
padding: 16px 8px;
|
|
52
111
|
flex-direction: column;
|
|
53
112
|
align-items: flex-start;
|
|
@@ -62,12 +121,22 @@ export default defineComponent({
|
|
|
62
121
|
top: 0;
|
|
63
122
|
box-sizing: border-box;
|
|
64
123
|
}
|
|
65
|
-
|
|
124
|
+
|
|
125
|
+
.arg_sidebar_open {
|
|
126
|
+
width: 200px;
|
|
127
|
+
}
|
|
128
|
+
.arg_sidebar_header_full {
|
|
66
129
|
display: flex;
|
|
67
130
|
justify-content: space-between;
|
|
68
|
-
align-items:
|
|
131
|
+
align-items: center;
|
|
69
132
|
align-self: stretch;
|
|
70
133
|
}
|
|
134
|
+
.arg_sidebar_header_small {
|
|
135
|
+
display: flex;
|
|
136
|
+
flex-direction: column;
|
|
137
|
+
align-items: center;
|
|
138
|
+
gap: var(--xxs, 4px);
|
|
139
|
+
}
|
|
71
140
|
.arg_sidebar_home {
|
|
72
141
|
display: flex;
|
|
73
142
|
height: 32px;
|
|
@@ -107,4 +176,15 @@ export default defineComponent({
|
|
|
107
176
|
flex-direction: column;
|
|
108
177
|
gap: 8px;
|
|
109
178
|
}
|
|
179
|
+
|
|
180
|
+
.sidebar_toggle {
|
|
181
|
+
cursor: pointer;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.link_menu_tooltip_icon {
|
|
185
|
+
flex: 1 1 100%;
|
|
186
|
+
}
|
|
187
|
+
.tooltip_display {
|
|
188
|
+
display: flex !important;
|
|
189
|
+
}
|
|
110
190
|
</style>
|
|
@@ -12,7 +12,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
12
12
|
type: StringConstructor;
|
|
13
13
|
default: string;
|
|
14
14
|
};
|
|
15
|
-
},
|
|
15
|
+
}, {
|
|
16
|
+
sidebarOpen: import("vue").Ref<boolean>;
|
|
17
|
+
toggleSidebar: () => void;
|
|
18
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onSidebarChange" | "update:Sidebar")[], "onSidebarChange" | "update:Sidebar", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
16
19
|
name: {
|
|
17
20
|
type: StringConstructor;
|
|
18
21
|
required: true;
|
|
@@ -26,7 +29,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
26
29
|
type: StringConstructor;
|
|
27
30
|
default: string;
|
|
28
31
|
};
|
|
29
|
-
}
|
|
32
|
+
}>> & {
|
|
33
|
+
onOnSidebarChange?: ((...args: any[]) => any) | undefined;
|
|
34
|
+
"onUpdate:Sidebar"?: ((...args: any[]) => any) | undefined;
|
|
35
|
+
}, {
|
|
30
36
|
lang: string;
|
|
31
37
|
homeLink: string;
|
|
32
38
|
}, {}>;
|
|
@@ -108,7 +108,16 @@ button {
|
|
|
108
108
|
}
|
|
109
109
|
.oip_container {
|
|
110
110
|
margin: 0 auto;
|
|
111
|
-
|
|
111
|
+
padding: 0px 64px 0px 8px;
|
|
112
|
+
max-width: 1080px;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.arg_page_display {
|
|
116
|
+
display: flex;
|
|
117
|
+
flex-direction: column;
|
|
118
|
+
align-items: flex-start;
|
|
119
|
+
gap: 32px;
|
|
120
|
+
width: 100%;
|
|
112
121
|
}
|
|
113
122
|
|
|
114
123
|
/*** TEXT ***/
|
|
@@ -829,13 +838,20 @@ button {
|
|
|
829
838
|
}
|
|
830
839
|
|
|
831
840
|
.oip_table_card {
|
|
832
|
-
padding: 32px 0px;
|
|
841
|
+
padding: 32px 0px 0px 0px;
|
|
833
842
|
border-radius: 12px;
|
|
834
843
|
background: var(--pure-white);
|
|
835
844
|
box-shadow: var(--container-shadow);
|
|
836
845
|
margin: 8px 0;
|
|
837
846
|
}
|
|
838
847
|
|
|
848
|
+
.oip_half_card {
|
|
849
|
+
flex: 1 1 50%;
|
|
850
|
+
}
|
|
851
|
+
.oip_third_card {
|
|
852
|
+
flex: 1 1 33%;
|
|
853
|
+
}
|
|
854
|
+
|
|
839
855
|
.oip_table_card .oip_card__header {
|
|
840
856
|
padding: 0px 24px;
|
|
841
857
|
}
|