@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,151 @@
|
|
|
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
|
+
multiple_label: {
|
|
51
|
+
type: StringConstructor;
|
|
52
|
+
required: true;
|
|
53
|
+
};
|
|
54
|
+
}, {
|
|
55
|
+
del_all: () => void;
|
|
56
|
+
del_all_cat: (index: number) => void;
|
|
57
|
+
add_all_cat: (index: number) => void;
|
|
58
|
+
add_all: () => void;
|
|
59
|
+
del_nested_elements: (index: number, elem: string) => void;
|
|
60
|
+
add_nested_element: (index: number, elem: string) => void;
|
|
61
|
+
del_element: (element: string, index: number) => void;
|
|
62
|
+
add_element: (element: string, index: number) => void;
|
|
63
|
+
close: () => void;
|
|
64
|
+
changeDisplay: () => void;
|
|
65
|
+
selected_all_cats: (index: number) => boolean;
|
|
66
|
+
getNestedOptions: (index: number) => any;
|
|
67
|
+
nestedIncludes: (option: string, index: number) => boolean;
|
|
68
|
+
changeInput: () => void;
|
|
69
|
+
nestedSelectedLength: import("vue").ComputedRef<number>;
|
|
70
|
+
optionsWithoutDisabled: import("vue").ComputedRef<NumberConstructor[]>;
|
|
71
|
+
filterNested: import("vue").ComputedRef<unknown[]>;
|
|
72
|
+
filterName: import("vue").ComputedRef<unknown[]>;
|
|
73
|
+
getOptions: import("vue").ComputedRef<NumberConstructor[]>;
|
|
74
|
+
getAllSelect: import("vue").ComputedRef<string>;
|
|
75
|
+
isDisplay: import("vue").Ref<boolean>;
|
|
76
|
+
searchName: import("vue").Ref<null>;
|
|
77
|
+
selected_items: import("vue").Ref<never[]>;
|
|
78
|
+
selected_nested: import("vue").Ref<never[]>;
|
|
79
|
+
selected_all: import("vue").Ref<boolean>;
|
|
80
|
+
selectedCats: import("vue").Ref<never[]>;
|
|
81
|
+
valueFrom: import("vue").Ref<never[]>;
|
|
82
|
+
}, 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<{
|
|
83
|
+
element_table: {
|
|
84
|
+
type: ArrayConstructor;
|
|
85
|
+
required: true;
|
|
86
|
+
};
|
|
87
|
+
nested: {
|
|
88
|
+
type: BooleanConstructor;
|
|
89
|
+
default: boolean;
|
|
90
|
+
};
|
|
91
|
+
search: {
|
|
92
|
+
type: BooleanConstructor;
|
|
93
|
+
default: boolean;
|
|
94
|
+
};
|
|
95
|
+
filter_placeholder: {
|
|
96
|
+
type: StringConstructor;
|
|
97
|
+
required: false;
|
|
98
|
+
};
|
|
99
|
+
show_all: {
|
|
100
|
+
type: BooleanConstructor;
|
|
101
|
+
default: boolean;
|
|
102
|
+
};
|
|
103
|
+
default_select: {
|
|
104
|
+
type: ArrayConstructor;
|
|
105
|
+
required: false;
|
|
106
|
+
};
|
|
107
|
+
preselection_all: {
|
|
108
|
+
type: BooleanConstructor;
|
|
109
|
+
default: boolean;
|
|
110
|
+
};
|
|
111
|
+
disabled: {
|
|
112
|
+
type: BooleanConstructor;
|
|
113
|
+
default: boolean;
|
|
114
|
+
};
|
|
115
|
+
multiple_columns: {
|
|
116
|
+
type: BooleanConstructor;
|
|
117
|
+
default: boolean;
|
|
118
|
+
};
|
|
119
|
+
options_disable: {
|
|
120
|
+
type: ArrayConstructor;
|
|
121
|
+
default: () => never[];
|
|
122
|
+
};
|
|
123
|
+
show_amount: {
|
|
124
|
+
type: BooleanConstructor;
|
|
125
|
+
default: boolean;
|
|
126
|
+
};
|
|
127
|
+
emptyMsg: {
|
|
128
|
+
type: StringConstructor;
|
|
129
|
+
default: string;
|
|
130
|
+
};
|
|
131
|
+
multiple_label: {
|
|
132
|
+
type: StringConstructor;
|
|
133
|
+
required: true;
|
|
134
|
+
};
|
|
135
|
+
}>> & {
|
|
136
|
+
onOnClose?: ((...args: any[]) => any) | undefined;
|
|
137
|
+
onChangeElement?: ((...args: any[]) => any) | undefined;
|
|
138
|
+
"onUpdate:Selection"?: ((...args: any[]) => any) | undefined;
|
|
139
|
+
onChangeInputValue?: ((...args: any[]) => any) | undefined;
|
|
140
|
+
}, {
|
|
141
|
+
disabled: boolean;
|
|
142
|
+
show_amount: boolean;
|
|
143
|
+
search: boolean;
|
|
144
|
+
nested: boolean;
|
|
145
|
+
show_all: boolean;
|
|
146
|
+
preselection_all: boolean;
|
|
147
|
+
multiple_columns: boolean;
|
|
148
|
+
options_disable: unknown[];
|
|
149
|
+
emptyMsg: string;
|
|
150
|
+
}, {}>;
|
|
151
|
+
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,135 @@
|
|
|
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: true
|
|
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
|
+
width: 100%;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.radio_row {
|
|
124
|
+
flex-direction: row;
|
|
125
|
+
align-items: center;
|
|
126
|
+
flex-wrap: wrap;
|
|
127
|
+
gap: 16px;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.radio_column {
|
|
131
|
+
flex-direction: column;
|
|
132
|
+
align-items: flex-start;
|
|
133
|
+
gap: 8px;
|
|
134
|
+
}
|
|
135
|
+
</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;
|
|
@@ -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;
|