@tekkare/auriga 0.1.9 → 0.1.11
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 +47 -12
- package/dist/runtime/components/argActions.vue.d.ts +27 -4
- package/dist/runtime/components/argAdvancedSearchBar.vue.d.ts +2 -2
- package/dist/runtime/components/argChart.vue +109 -167
- package/dist/runtime/components/argChart.vue.d.ts +1 -1
- package/dist/runtime/components/argCheckbox.vue +35 -28
- package/dist/runtime/components/argCheckbox.vue.d.ts +9 -1
- package/dist/runtime/components/argCircleAmount.vue +37 -0
- package/dist/runtime/components/argCircleAmount.vue.d.ts +12 -0
- package/dist/runtime/components/argDate.vue +77 -0
- package/dist/runtime/components/argDate.vue.d.ts +34 -0
- 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/argErrors.vue +167 -0
- package/dist/runtime/components/argErrors.vue.d.ts +54 -0
- package/dist/runtime/components/argFileBtn.vue +10 -2
- package/dist/runtime/components/argFileBtn.vue.d.ts +9 -0
- package/dist/runtime/components/argFilterCard.vue +1 -1
- package/dist/runtime/components/argHeader.vue +15 -7
- package/dist/runtime/components/argHeader.vue.d.ts +9 -0
- package/dist/runtime/components/argHybridChart.vue +277 -0
- package/dist/runtime/components/argHybridChart.vue.d.ts +48 -0
- package/dist/runtime/components/argMainLayout.vue +1 -0
- package/dist/runtime/components/argMenuLink.vue +46 -17
- package/dist/runtime/components/argMenuLink.vue.d.ts +15 -4
- package/dist/runtime/components/argMultipleChoice.vue +1 -1
- package/dist/runtime/components/argMultipleSelect.vue +29 -17
- package/dist/runtime/components/argMultipleSelect.vue.d.ts +8 -0
- package/dist/runtime/components/argNumberInput.vue +223 -0
- package/dist/runtime/components/argNumberInput.vue.d.ts +57 -0
- package/dist/runtime/components/argRadioButtons.vue +2 -1
- 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 +10 -7
- package/dist/runtime/components/argSidebar.vue.d.ts +9 -0
- package/dist/runtime/components/argSimpleChart.vue +123 -0
- package/dist/runtime/components/argSimpleChart.vue.d.ts +32 -0
- package/dist/runtime/components/argSimpleInput.vue +94 -0
- package/dist/runtime/components/argSimpleInput.vue.d.ts +40 -0
- package/dist/runtime/components/argSimpleLabel.vue +1 -1
- package/dist/runtime/components/argSmallAreaChart.vue +138 -0
- package/dist/runtime/components/argSmallAreaChart.vue.d.ts +122 -0
- package/dist/runtime/components/argStyle.vue +90 -65
- package/dist/runtime/components/argTags.vue +7 -5
- package/dist/runtime/components/argTipsBox.vue +153 -0
- package/dist/runtime/components/argTipsBox.vue.d.ts +37 -0
- package/dist/runtime/components/argTrendIndicator.vue +82 -0
- package/dist/runtime/components/argTrendIndicator.vue.d.ts +23 -0
- package/dist/runtime/components/argTutoModal.vue +185 -0
- package/dist/runtime/components/argTutoModal.vue.d.ts +41 -0
- package/package.json +2 -1
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div :class="['input_number_section', typing ? 'open' : '']" @click.stop>
|
|
3
|
+
<p class="oip_filter_label">{{ inputLabel }}</p>
|
|
4
|
+
<div class="input_number_box">
|
|
5
|
+
<div
|
|
6
|
+
class="input_number_action action_left"
|
|
7
|
+
@click="changeValueClick(-stepValue)"
|
|
8
|
+
>
|
|
9
|
+
<arg-icon name="Minus" color="var(--cool-grey)" size="16" />
|
|
10
|
+
</div>
|
|
11
|
+
<input
|
|
12
|
+
type="number"
|
|
13
|
+
:max="maxValue === -1 ? 0 : maxValue"
|
|
14
|
+
:value="returnValue"
|
|
15
|
+
class="number_input_style"
|
|
16
|
+
@input="changeInput"
|
|
17
|
+
/>
|
|
18
|
+
<div
|
|
19
|
+
class="input_number_action action_right"
|
|
20
|
+
@click="changeValueClick(stepValue)"
|
|
21
|
+
>
|
|
22
|
+
<arg-icon name="Plus" color="var(--cool-grey)" size="16" />
|
|
23
|
+
</div>
|
|
24
|
+
</div>
|
|
25
|
+
</div>
|
|
26
|
+
</template>
|
|
27
|
+
|
|
28
|
+
<script>
|
|
29
|
+
import { toInteger } from "lodash";
|
|
30
|
+
import argIcon from "./argIcon.vue";
|
|
31
|
+
import {
|
|
32
|
+
onMounted,
|
|
33
|
+
ref,
|
|
34
|
+
watch,
|
|
35
|
+
defineComponent
|
|
36
|
+
} from "vue";
|
|
37
|
+
export default defineComponent({
|
|
38
|
+
name: "argNumberInput",
|
|
39
|
+
components: { argIcon },
|
|
40
|
+
props: {
|
|
41
|
+
inputLabel: {
|
|
42
|
+
type: String,
|
|
43
|
+
required: true
|
|
44
|
+
},
|
|
45
|
+
defaultValue: {
|
|
46
|
+
type: Number,
|
|
47
|
+
default: 1
|
|
48
|
+
},
|
|
49
|
+
maxValue: {
|
|
50
|
+
type: Number,
|
|
51
|
+
default: -1
|
|
52
|
+
},
|
|
53
|
+
hasNegativeValue: {
|
|
54
|
+
type: Boolean,
|
|
55
|
+
default: false
|
|
56
|
+
},
|
|
57
|
+
stepValue: {
|
|
58
|
+
type: Number,
|
|
59
|
+
default: 1
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
emits: ["update:Number", "changeValue"],
|
|
63
|
+
setup(props, { emit }) {
|
|
64
|
+
const returnValue = ref(1);
|
|
65
|
+
const typing = ref(false);
|
|
66
|
+
onMounted(() => {
|
|
67
|
+
returnValue.value = props.defaultValue;
|
|
68
|
+
emit("update:Number", returnValue.value);
|
|
69
|
+
emit("changeValue", returnValue.value);
|
|
70
|
+
});
|
|
71
|
+
watch(
|
|
72
|
+
() => props.defaultValue,
|
|
73
|
+
(new_default_value) => {
|
|
74
|
+
returnValue.value = new_default_value;
|
|
75
|
+
}
|
|
76
|
+
);
|
|
77
|
+
function changeInput(event) {
|
|
78
|
+
if (event.target !== null) {
|
|
79
|
+
if (props.maxValue !== -1 && event.target.value > props.maxValue) {
|
|
80
|
+
event.target.value = props.maxValue;
|
|
81
|
+
} else if (props.hasNegativeValue === false && event.target.value < 0) {
|
|
82
|
+
event.target.value = 0;
|
|
83
|
+
}
|
|
84
|
+
returnValue.value = toInteger(event.target.value);
|
|
85
|
+
emit("update:Number", returnValue.value);
|
|
86
|
+
emit("changeValue", returnValue.value);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
function changeValueClick(value) {
|
|
90
|
+
if (props.maxValue !== -1 && returnValue.value + value > props.maxValue) {
|
|
91
|
+
returnValue.value = props.maxValue;
|
|
92
|
+
} else if (props.hasNegativeValue === false && returnValue.value + value < 0) {
|
|
93
|
+
returnValue.value = 0;
|
|
94
|
+
} else
|
|
95
|
+
returnValue.value += value;
|
|
96
|
+
emit("update:Number", returnValue.value);
|
|
97
|
+
emit("changeValue", returnValue.value);
|
|
98
|
+
}
|
|
99
|
+
return {
|
|
100
|
+
returnValue,
|
|
101
|
+
typing,
|
|
102
|
+
changeInput,
|
|
103
|
+
changeValueClick
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
</script>
|
|
108
|
+
|
|
109
|
+
<style scoped>
|
|
110
|
+
.input_number_box .input_number_action.action_left:hover,
|
|
111
|
+
.input_number_box .input_number_action.action_right:hover {
|
|
112
|
+
border: 1.5px solid rgba(33, 118, 255, 0.2) !important;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.input_number_box .input_number_action.action_left:hover svg,
|
|
116
|
+
.input_number_box .input_number_action.action_right:hover svg {
|
|
117
|
+
color: var(--primary) !important;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.input_number_box:focus-within {
|
|
121
|
+
border: 1.5px solid var(--primary) !important;
|
|
122
|
+
box-shadow: 0px 0px 0px 4px rgba(33, 118, 255, 0.1) !important;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.input_number_box:focus-within .input_number_action.action_left {
|
|
126
|
+
top: 0px !important;
|
|
127
|
+
left: 0px !important;
|
|
128
|
+
}
|
|
129
|
+
.input_number_box:focus-within .input_number_action.action_right {
|
|
130
|
+
top: 0px !important;
|
|
131
|
+
right: 0px !important;
|
|
132
|
+
}
|
|
133
|
+
.input_number_box:focus-within {
|
|
134
|
+
z-index: 9999 !important;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.input_number_box:focus-within .input_number_action.action_left,
|
|
138
|
+
.input_number_box:focus-within
|
|
139
|
+
.input_number_box
|
|
140
|
+
.input_number_action.action_left:hover {
|
|
141
|
+
border-top: 1.5px transparent !important;
|
|
142
|
+
border-left: 1.5px transparent !important;
|
|
143
|
+
border-bottom: 1.5px transparent !important;
|
|
144
|
+
}
|
|
145
|
+
.input_number_box:focus-within .input_number_action.action_right,
|
|
146
|
+
.input_number_box:focus-within
|
|
147
|
+
.input_number_box
|
|
148
|
+
.input_number_action.action_right:hover {
|
|
149
|
+
border-top: 1.5px transparent !important;
|
|
150
|
+
border-right: 1.5px transparent !important;
|
|
151
|
+
border-bottom: 1.5px transparent !important;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.input_number_section {
|
|
155
|
+
display: flex;
|
|
156
|
+
flex-direction: column;
|
|
157
|
+
align-items: flex-start;
|
|
158
|
+
padding: 0px;
|
|
159
|
+
gap: 4px;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.input_number_box {
|
|
163
|
+
display: flex;
|
|
164
|
+
flex-direction: row;
|
|
165
|
+
align-items: center;
|
|
166
|
+
padding: 12px 48px;
|
|
167
|
+
gap: 8px;
|
|
168
|
+
background: var(--pure-white);
|
|
169
|
+
border: 1.5px solid var(--dividers);
|
|
170
|
+
border-radius: 8px;
|
|
171
|
+
position: relative;
|
|
172
|
+
z-index: 1;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.input_number_action {
|
|
176
|
+
position: absolute;
|
|
177
|
+
display: flex;
|
|
178
|
+
flex-direction: row;
|
|
179
|
+
justify-content: center;
|
|
180
|
+
align-items: center;
|
|
181
|
+
padding: 12px;
|
|
182
|
+
gap: 8px;
|
|
183
|
+
background: var(--pure-white);
|
|
184
|
+
border: 1.5px solid var(--dividers);
|
|
185
|
+
border-radius: 8px;
|
|
186
|
+
z-index: 2;
|
|
187
|
+
cursor: pointer;
|
|
188
|
+
}
|
|
189
|
+
.action_right {
|
|
190
|
+
top: -1px;
|
|
191
|
+
right: -1px;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.action_left {
|
|
195
|
+
top: -1px;
|
|
196
|
+
left: -1px;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.number_input_style {
|
|
200
|
+
border: none;
|
|
201
|
+
text-align: center;
|
|
202
|
+
max-width: 127.5px;
|
|
203
|
+
height: 16px;
|
|
204
|
+
padding: 0px !important;
|
|
205
|
+
font-weight: 500;
|
|
206
|
+
font-size: 14px;
|
|
207
|
+
line-height: 16px;
|
|
208
|
+
color: var(--independence);
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.number_input_style:focus-visible {
|
|
212
|
+
border: none;
|
|
213
|
+
outline: none;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
input[type="number"]::-webkit-inner-spin-button {
|
|
217
|
+
-webkit-appearance: none;
|
|
218
|
+
}
|
|
219
|
+
input[type="number"] {
|
|
220
|
+
-moz-appearance: textfield;
|
|
221
|
+
appearance: textfield;
|
|
222
|
+
}
|
|
223
|
+
</style>
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
inputLabel: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
required: true;
|
|
5
|
+
};
|
|
6
|
+
defaultValue: {
|
|
7
|
+
type: NumberConstructor;
|
|
8
|
+
default: number;
|
|
9
|
+
};
|
|
10
|
+
maxValue: {
|
|
11
|
+
type: NumberConstructor;
|
|
12
|
+
default: number;
|
|
13
|
+
};
|
|
14
|
+
hasNegativeValue: {
|
|
15
|
+
type: BooleanConstructor;
|
|
16
|
+
default: boolean;
|
|
17
|
+
};
|
|
18
|
+
stepValue: {
|
|
19
|
+
type: NumberConstructor;
|
|
20
|
+
default: number;
|
|
21
|
+
};
|
|
22
|
+
}, {
|
|
23
|
+
returnValue: import("vue").Ref<number>;
|
|
24
|
+
typing: import("vue").Ref<boolean>;
|
|
25
|
+
changeInput: (event: any) => void;
|
|
26
|
+
changeValueClick: (value: number) => void;
|
|
27
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("changeValue" | "update:Number")[], "changeValue" | "update:Number", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
28
|
+
inputLabel: {
|
|
29
|
+
type: StringConstructor;
|
|
30
|
+
required: true;
|
|
31
|
+
};
|
|
32
|
+
defaultValue: {
|
|
33
|
+
type: NumberConstructor;
|
|
34
|
+
default: number;
|
|
35
|
+
};
|
|
36
|
+
maxValue: {
|
|
37
|
+
type: NumberConstructor;
|
|
38
|
+
default: number;
|
|
39
|
+
};
|
|
40
|
+
hasNegativeValue: {
|
|
41
|
+
type: BooleanConstructor;
|
|
42
|
+
default: boolean;
|
|
43
|
+
};
|
|
44
|
+
stepValue: {
|
|
45
|
+
type: NumberConstructor;
|
|
46
|
+
default: number;
|
|
47
|
+
};
|
|
48
|
+
}>> & {
|
|
49
|
+
onChangeValue?: ((...args: any[]) => any) | undefined;
|
|
50
|
+
"onUpdate:Number"?: ((...args: any[]) => any) | undefined;
|
|
51
|
+
}, {
|
|
52
|
+
maxValue: number;
|
|
53
|
+
defaultValue: number;
|
|
54
|
+
hasNegativeValue: boolean;
|
|
55
|
+
stepValue: number;
|
|
56
|
+
}, {}>;
|
|
57
|
+
export default _default;
|
|
@@ -41,7 +41,7 @@ export default defineComponent({
|
|
|
41
41
|
},
|
|
42
42
|
returnValue: {
|
|
43
43
|
type: Boolean,
|
|
44
|
-
default:
|
|
44
|
+
default: true
|
|
45
45
|
},
|
|
46
46
|
dir: {
|
|
47
47
|
type: String,
|
|
@@ -117,6 +117,7 @@ export default defineComponent({
|
|
|
117
117
|
|
|
118
118
|
.radio_display {
|
|
119
119
|
display: flex;
|
|
120
|
+
width: 100%;
|
|
120
121
|
}
|
|
121
122
|
|
|
122
123
|
.radio_row {
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="oip_card arg_scope_card">
|
|
3
|
+
<arg-filter-tabs
|
|
4
|
+
v-model:Tab="activeTab"
|
|
5
|
+
:tabs="lang === 'fr' ? frScopeTabs : scopeTabs"
|
|
6
|
+
return-value
|
|
7
|
+
/>
|
|
8
|
+
<div v-show="activeTab === 'new'" class="arg_scope_new">
|
|
9
|
+
<div class="oip_row v-center gap-8">
|
|
10
|
+
<h1>{{ lang === "fr" ? "Critère scope" : "Scope criteria" }}</h1>
|
|
11
|
+
<slot name="filtersAmount" />
|
|
12
|
+
</div>
|
|
13
|
+
<div class="oip_row v-center gap-16 wrap">
|
|
14
|
+
<slot name="new" />
|
|
15
|
+
</div>
|
|
16
|
+
</div>
|
|
17
|
+
<div v-show="activeTab === 'saved'" class="arg_scope_save">
|
|
18
|
+
<div class="oip_row v-center gap-8">
|
|
19
|
+
<h1>
|
|
20
|
+
{{ lang === "fr" ? "Vos scopes enregistrés" : "Your saved scope" }}
|
|
21
|
+
</h1>
|
|
22
|
+
<slot name="scopeAmount" />
|
|
23
|
+
</div>
|
|
24
|
+
<slot name="saved" />
|
|
25
|
+
</div>
|
|
26
|
+
</div>
|
|
27
|
+
</template>
|
|
28
|
+
|
|
29
|
+
<script>
|
|
30
|
+
import {
|
|
31
|
+
ref,
|
|
32
|
+
defineComponent
|
|
33
|
+
} from "vue";
|
|
34
|
+
import argFilterTabs from "./argFilterTabs.vue";
|
|
35
|
+
export default defineComponent({
|
|
36
|
+
name: "argScopeCriteria",
|
|
37
|
+
components: { argFilterTabs },
|
|
38
|
+
props: {
|
|
39
|
+
scopeTitle: {
|
|
40
|
+
type: String,
|
|
41
|
+
default: "My scope"
|
|
42
|
+
},
|
|
43
|
+
lang: {
|
|
44
|
+
type: String,
|
|
45
|
+
default: "en",
|
|
46
|
+
validator: (value) => {
|
|
47
|
+
return ["en", "fr"].includes(value);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
setup() {
|
|
52
|
+
const activeTab = ref("new");
|
|
53
|
+
const scopeTabs = [
|
|
54
|
+
{ name: "New scope criteria", value: "new" },
|
|
55
|
+
{ name: "Apply an existing scope", value: "saved" }
|
|
56
|
+
];
|
|
57
|
+
const frScopeTabs = [
|
|
58
|
+
{ name: "Nouveau crit\xE8re scope", value: "new" },
|
|
59
|
+
{ name: "Appliquer un scope existant", value: "saved" }
|
|
60
|
+
];
|
|
61
|
+
return { activeTab, scopeTabs, frScopeTabs };
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
</script>
|
|
65
|
+
|
|
66
|
+
<style scoped>
|
|
67
|
+
.arg_scope_card {
|
|
68
|
+
display: flex;
|
|
69
|
+
flex-direction: column;
|
|
70
|
+
align-items: flex-start;
|
|
71
|
+
gap: 24px;
|
|
72
|
+
width: calc(100% - 48px);
|
|
73
|
+
}
|
|
74
|
+
.arg_scope_new,
|
|
75
|
+
.arg_scope_save {
|
|
76
|
+
display: flex;
|
|
77
|
+
align-items: flex-start;
|
|
78
|
+
align-content: flex-start;
|
|
79
|
+
flex-direction: column;
|
|
80
|
+
gap: 16px var(--m, 16px);
|
|
81
|
+
width: 100%;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.arg_scope_new h1,
|
|
85
|
+
.arg_scope_save h1 {
|
|
86
|
+
font-size: 20px;
|
|
87
|
+
font-style: normal;
|
|
88
|
+
font-weight: 900;
|
|
89
|
+
line-height: normal;
|
|
90
|
+
}
|
|
91
|
+
</style>
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
scopeTitle: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
lang: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
default: string;
|
|
9
|
+
validator: (value: string) => boolean;
|
|
10
|
+
};
|
|
11
|
+
}, {
|
|
12
|
+
activeTab: import("vue").Ref<string>;
|
|
13
|
+
scopeTabs: {
|
|
14
|
+
name: string;
|
|
15
|
+
value: string;
|
|
16
|
+
}[];
|
|
17
|
+
frScopeTabs: {
|
|
18
|
+
name: string;
|
|
19
|
+
value: string;
|
|
20
|
+
}[];
|
|
21
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
22
|
+
scopeTitle: {
|
|
23
|
+
type: StringConstructor;
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
26
|
+
lang: {
|
|
27
|
+
type: StringConstructor;
|
|
28
|
+
default: string;
|
|
29
|
+
validator: (value: string) => boolean;
|
|
30
|
+
};
|
|
31
|
+
}>>, {
|
|
32
|
+
lang: string;
|
|
33
|
+
scopeTitle: string;
|
|
34
|
+
}, {}>;
|
|
35
|
+
export default _default;
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="arg_scope_header">
|
|
3
|
+
<div class="oip_row v-center gap-16">
|
|
4
|
+
<arg-actions :lang="lang" action-type="cancel" @onCancel="goBack()" />
|
|
5
|
+
<h1 class="scope_title">{{ scopeTitle }}</h1>
|
|
6
|
+
</div>
|
|
7
|
+
<div class="oip_row v-center gap-16">
|
|
8
|
+
<arg-actions
|
|
9
|
+
:lang="lang"
|
|
10
|
+
action-type="see-analysis"
|
|
11
|
+
@onSeeAnalysis="seeAnalysis()"
|
|
12
|
+
/>
|
|
13
|
+
<arg-actions
|
|
14
|
+
:lang="lang"
|
|
15
|
+
action-type="save-analysis"
|
|
16
|
+
@onSaveAnalysis="saveAnalysis()"
|
|
17
|
+
/>
|
|
18
|
+
</div>
|
|
19
|
+
</div>
|
|
20
|
+
</template>
|
|
21
|
+
|
|
22
|
+
<script>
|
|
23
|
+
import {
|
|
24
|
+
defineComponent
|
|
25
|
+
} from "vue";
|
|
26
|
+
import { useRouter } from "vue-router";
|
|
27
|
+
import argActions from "./argActions.vue";
|
|
28
|
+
export default defineComponent({
|
|
29
|
+
name: "argScopeHeader",
|
|
30
|
+
components: { argActions },
|
|
31
|
+
props: {
|
|
32
|
+
scopeTitle: {
|
|
33
|
+
type: String,
|
|
34
|
+
default: "My scope"
|
|
35
|
+
},
|
|
36
|
+
lang: {
|
|
37
|
+
type: String,
|
|
38
|
+
default: "en",
|
|
39
|
+
validator: (value) => {
|
|
40
|
+
return ["en", "fr"].includes(value);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
emits: ["seeAnalysis", "saveAnalysis"],
|
|
45
|
+
setup(props, { emit }) {
|
|
46
|
+
const router = useRouter();
|
|
47
|
+
function goBack() {
|
|
48
|
+
router.back();
|
|
49
|
+
}
|
|
50
|
+
function seeAnalysis() {
|
|
51
|
+
emit("seeAnalysis");
|
|
52
|
+
}
|
|
53
|
+
function saveAnalysis() {
|
|
54
|
+
emit("saveAnalysis");
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
router,
|
|
58
|
+
goBack,
|
|
59
|
+
seeAnalysis,
|
|
60
|
+
saveAnalysis
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
</script>
|
|
65
|
+
|
|
66
|
+
<style scoped>
|
|
67
|
+
.arg_scope_header {
|
|
68
|
+
display: flex;
|
|
69
|
+
flex-direction: row;
|
|
70
|
+
padding: var(--l, 24px);
|
|
71
|
+
align-items: center;
|
|
72
|
+
justify-content: space-between;
|
|
73
|
+
gap: var(--m, 16px);
|
|
74
|
+
|
|
75
|
+
align-self: stretch;
|
|
76
|
+
border-radius: var(--None, 0px);
|
|
77
|
+
|
|
78
|
+
border-bottom: 1px solid var(--base-dividers, #ececf2);
|
|
79
|
+
background: rgba(253, 253, 255, 0.8);
|
|
80
|
+
|
|
81
|
+
backdrop-filter: blur(12px);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.scope_title {
|
|
85
|
+
font-size: 20px;
|
|
86
|
+
font-style: normal;
|
|
87
|
+
font-weight: 900;
|
|
88
|
+
line-height: normal;
|
|
89
|
+
}
|
|
90
|
+
</style>
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
scopeTitle: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
lang: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
default: string;
|
|
9
|
+
validator: (value: string) => boolean;
|
|
10
|
+
};
|
|
11
|
+
}, {
|
|
12
|
+
router: import("vue-router").Router;
|
|
13
|
+
goBack: () => void;
|
|
14
|
+
seeAnalysis: () => void;
|
|
15
|
+
saveAnalysis: () => void;
|
|
16
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("seeAnalysis" | "saveAnalysis")[], "seeAnalysis" | "saveAnalysis", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
17
|
+
scopeTitle: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
21
|
+
lang: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
default: string;
|
|
24
|
+
validator: (value: string) => boolean;
|
|
25
|
+
};
|
|
26
|
+
}>> & {
|
|
27
|
+
onSeeAnalysis?: ((...args: any[]) => any) | undefined;
|
|
28
|
+
onSaveAnalysis?: ((...args: any[]) => any) | undefined;
|
|
29
|
+
}, {
|
|
30
|
+
lang: string;
|
|
31
|
+
scopeTitle: string;
|
|
32
|
+
}, {}>;
|
|
33
|
+
export default _default;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="arg_main_scope">
|
|
3
|
+
<slot name="header" />
|
|
4
|
+
<div class="arg_scope_layout_body">
|
|
5
|
+
<slot name="body" />
|
|
6
|
+
</div>
|
|
7
|
+
<argFooter />
|
|
8
|
+
</div>
|
|
9
|
+
</template>
|
|
10
|
+
<script>
|
|
11
|
+
import {
|
|
12
|
+
onMounted,
|
|
13
|
+
defineComponent
|
|
14
|
+
} from "vue";
|
|
15
|
+
import argIcon from "./argIcon.vue";
|
|
16
|
+
import argStyle from "./argStyle.vue";
|
|
17
|
+
import argFooter from "./argFooter.vue";
|
|
18
|
+
export default defineComponent({
|
|
19
|
+
name: "argMainLayout",
|
|
20
|
+
components: { argIcon, argStyle, argFooter },
|
|
21
|
+
props: {
|
|
22
|
+
sidebarOpen: {
|
|
23
|
+
type: Boolean,
|
|
24
|
+
default: true
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
setup() {
|
|
28
|
+
onMounted(() => {
|
|
29
|
+
adjustMarginForBody();
|
|
30
|
+
window.addEventListener("resize", adjustMarginForBody);
|
|
31
|
+
});
|
|
32
|
+
function adjustMarginForBody() {
|
|
33
|
+
const fixedHeader = document.getElementById("arg_header");
|
|
34
|
+
const bodyContent = document.getElementById("arg_main_layout_section");
|
|
35
|
+
const infoBar = document.getElementById("arg_info_section");
|
|
36
|
+
if (fixedHeader && bodyContent) {
|
|
37
|
+
const headerHeight = fixedHeader.offsetHeight;
|
|
38
|
+
bodyContent.style.marginTop = `${headerHeight}px`;
|
|
39
|
+
}
|
|
40
|
+
if (fixedHeader && infoBar) {
|
|
41
|
+
const headerHeight = fixedHeader.offsetHeight;
|
|
42
|
+
infoBar.style.top = `${headerHeight + 8}px`;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
</script>
|
|
48
|
+
<style>
|
|
49
|
+
.arg_main_scope {
|
|
50
|
+
display: flex;
|
|
51
|
+
flex-direction: column;
|
|
52
|
+
align-items: center;
|
|
53
|
+
}
|
|
54
|
+
.arg_scope_layout_body {
|
|
55
|
+
min-height: calc(100vh - 77px);
|
|
56
|
+
padding: 8px;
|
|
57
|
+
max-width: 1088px;
|
|
58
|
+
min-width: 50%;
|
|
59
|
+
margin-top: 32px;
|
|
60
|
+
}
|
|
61
|
+
</style>
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
}, {}>;
|
|
14
|
+
export default _default;
|
|
@@ -38,8 +38,9 @@
|
|
|
38
38
|
</div>
|
|
39
39
|
</div>
|
|
40
40
|
|
|
41
|
-
<h1 class="arg_sidebar_title">
|
|
42
|
-
<span v-
|
|
41
|
+
<h1 v-show="sidebarOpen" class="arg_sidebar_title">
|
|
42
|
+
<span v-if="appIso"><arg-flag :iso="appIso" emoji /></span>
|
|
43
|
+
<span>{{ name }}</span>
|
|
43
44
|
</h1>
|
|
44
45
|
<div class="arg_sidebar_body">
|
|
45
46
|
<div class="arg_sidebar_content">
|
|
@@ -61,12 +62,15 @@ import {
|
|
|
61
62
|
defineComponent
|
|
62
63
|
} from "vue";
|
|
63
64
|
import argIcon from "./argIcon.vue";
|
|
64
|
-
import argStyle from "./argStyle.vue";
|
|
65
65
|
export default defineComponent({
|
|
66
66
|
name: "argSidebar",
|
|
67
|
-
components: { argIcon
|
|
67
|
+
components: { argIcon },
|
|
68
68
|
props: {
|
|
69
69
|
name: { type: String, required: true },
|
|
70
|
+
appIso: {
|
|
71
|
+
type: String,
|
|
72
|
+
default: null
|
|
73
|
+
},
|
|
70
74
|
lang: {
|
|
71
75
|
type: String,
|
|
72
76
|
default: "en",
|
|
@@ -151,10 +155,9 @@ export default defineComponent({
|
|
|
151
155
|
}
|
|
152
156
|
.arg_sidebar_title {
|
|
153
157
|
display: flex;
|
|
158
|
+
flex-direction: row;
|
|
154
159
|
padding: 0px 8px;
|
|
155
|
-
|
|
156
|
-
justify-content: center;
|
|
157
|
-
align-items: flex-start;
|
|
160
|
+
align-items: center;
|
|
158
161
|
gap: 8px;
|
|
159
162
|
align-self: stretch;
|
|
160
163
|
font-size: 20px;
|
|
@@ -3,6 +3,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3
3
|
type: StringConstructor;
|
|
4
4
|
required: true;
|
|
5
5
|
};
|
|
6
|
+
appIso: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
default: null;
|
|
9
|
+
};
|
|
6
10
|
lang: {
|
|
7
11
|
type: StringConstructor;
|
|
8
12
|
default: string;
|
|
@@ -20,6 +24,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
20
24
|
type: StringConstructor;
|
|
21
25
|
required: true;
|
|
22
26
|
};
|
|
27
|
+
appIso: {
|
|
28
|
+
type: StringConstructor;
|
|
29
|
+
default: null;
|
|
30
|
+
};
|
|
23
31
|
lang: {
|
|
24
32
|
type: StringConstructor;
|
|
25
33
|
default: string;
|
|
@@ -34,6 +42,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
34
42
|
"onUpdate:Sidebar"?: ((...args: any[]) => any) | undefined;
|
|
35
43
|
}, {
|
|
36
44
|
lang: string;
|
|
45
|
+
appIso: string;
|
|
37
46
|
homeLink: string;
|
|
38
47
|
}, {}>;
|
|
39
48
|
export default _default;
|