@tekkare/auriga 0.1.36 → 0.1.37
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
CHANGED
|
@@ -11,55 +11,59 @@
|
|
|
11
11
|
</div>
|
|
12
12
|
</div>
|
|
13
13
|
<div class="arg_manage_scope_body">
|
|
14
|
-
<
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
<
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
14
|
+
<arg-data-loader v-if="reloadingScopes" />
|
|
15
|
+
<div class="arg_scopes_list" v-else>
|
|
16
|
+
<div
|
|
17
|
+
v-for="(scope, index) in scopes"
|
|
18
|
+
:key="index"
|
|
19
|
+
class="oip_card scope_card"
|
|
20
|
+
>
|
|
21
|
+
<div class="arg_manage_scope_general">
|
|
22
|
+
<div class="oip_row v-center space-between full-width">
|
|
23
|
+
<h2 class="oip_subtitle">{{ scope.title }}</h2>
|
|
24
|
+
<arg-text-btn
|
|
25
|
+
text-style="warning"
|
|
26
|
+
@onClick="deleteScope(scope)"
|
|
27
|
+
>{{ lang === "fr" ? "Supprimer" : "Delete" }}</arg-text-btn
|
|
28
|
+
>
|
|
29
|
+
</div>
|
|
30
|
+
<p class="oip_body">{{ scope.description }}</p>
|
|
31
|
+
<p class="oip_filter_label">
|
|
32
|
+
{{ lang === "fr" ? "Créé le " : "Created the " }}
|
|
33
|
+
<span
|
|
34
|
+
><arg-date
|
|
35
|
+
class="oip_filter_label"
|
|
36
|
+
:raw-date="scope.createdAt"
|
|
37
|
+
/>
|
|
38
|
+
</span>
|
|
39
|
+
</p>
|
|
27
40
|
</div>
|
|
28
|
-
<p class="oip_body">{{ scope.description }}</p>
|
|
29
|
-
<p class="oip_filter_label">
|
|
30
|
-
{{ lang === "fr" ? "Créé le " : "Created the " }}
|
|
31
|
-
<span
|
|
32
|
-
><arg-date
|
|
33
|
-
class="oip_filter_label"
|
|
34
|
-
:raw-date="scope.createdAt"
|
|
35
|
-
/>
|
|
36
|
-
</span>
|
|
37
|
-
</p>
|
|
38
|
-
</div>
|
|
39
41
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
42
|
+
<div class="arg_scope_manage_criteria">
|
|
43
|
+
<p class="scope_criteria_title">Criteria:</p>
|
|
44
|
+
<div class="oip_row v-center gap-8 wrap">
|
|
45
|
+
<arg-tags
|
|
46
|
+
v-for="(criteria, critIndex) in showAllProps === index
|
|
47
|
+
? getScopeCriteria(scope)
|
|
48
|
+
: getScopeCriteria(scope).slice(0, 6)"
|
|
49
|
+
set-style="gray"
|
|
50
|
+
:key="critIndex"
|
|
51
|
+
>{{ criteria }}</arg-tags
|
|
52
|
+
>
|
|
53
|
+
<arg-text-btn
|
|
54
|
+
v-if="
|
|
55
|
+
getScopeCriteria(scope).length > 6 &&
|
|
56
|
+
showAllProps !== index
|
|
57
|
+
"
|
|
58
|
+
@onClick="
|
|
59
|
+
showAllProps === index
|
|
60
|
+
? (showAllProps = null)
|
|
61
|
+
: (showAllProps = index)
|
|
62
|
+
"
|
|
63
|
+
>
|
|
64
|
+
+{{ getScopeCriteria(scope).length - 6 }}
|
|
65
|
+
</arg-text-btn>
|
|
66
|
+
</div>
|
|
63
67
|
</div>
|
|
64
68
|
</div>
|
|
65
69
|
</div>
|
|
@@ -85,9 +89,10 @@ import argBtn from "./argBtn.vue";
|
|
|
85
89
|
import argDate from "./argDate.vue";
|
|
86
90
|
import argIcon from "./argIcon.vue";
|
|
87
91
|
import argTextBtn from "./argTextBtn.vue";
|
|
92
|
+
import argDataLoader from "./argDataLoader.vue";
|
|
88
93
|
export default defineComponent({
|
|
89
94
|
name: "argScopeManage",
|
|
90
|
-
components: { argBtn, argIcon, argTextBtn, argDate },
|
|
95
|
+
components: { argBtn, argIcon, argTextBtn, argDate, argDataLoader },
|
|
91
96
|
props: {
|
|
92
97
|
scopes: {
|
|
93
98
|
type: Array,
|
|
@@ -99,6 +104,10 @@ export default defineComponent({
|
|
|
99
104
|
validator: (value) => {
|
|
100
105
|
return ["en", "fr"].includes(value);
|
|
101
106
|
}
|
|
107
|
+
},
|
|
108
|
+
reloadingScopes: {
|
|
109
|
+
type: Boolean,
|
|
110
|
+
default: false
|
|
102
111
|
}
|
|
103
112
|
},
|
|
104
113
|
emits: ["onDelete", "onClose"],
|
|
@@ -194,11 +203,7 @@ export default defineComponent({
|
|
|
194
203
|
}
|
|
195
204
|
|
|
196
205
|
.arg_manage_scope_body {
|
|
197
|
-
display: flex;
|
|
198
206
|
padding: 24px;
|
|
199
|
-
flex-direction: column;
|
|
200
|
-
align-items: flex-start;
|
|
201
|
-
gap: 24px;
|
|
202
207
|
align-self: stretch;
|
|
203
208
|
background-color: var(--background);
|
|
204
209
|
z-index: 0;
|
|
@@ -206,6 +211,14 @@ export default defineComponent({
|
|
|
206
211
|
overflow-y: scroll;
|
|
207
212
|
}
|
|
208
213
|
|
|
214
|
+
.arg_scopes_list {
|
|
215
|
+
display: flex;
|
|
216
|
+
flex-direction: column;
|
|
217
|
+
align-items: flex-start;
|
|
218
|
+
align-self: stretch;
|
|
219
|
+
gap: 24px;
|
|
220
|
+
}
|
|
221
|
+
|
|
209
222
|
.full-width {
|
|
210
223
|
align-self: stretch;
|
|
211
224
|
}
|
|
@@ -8,6 +8,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
8
8
|
default: string;
|
|
9
9
|
validator: (value: string) => boolean;
|
|
10
10
|
};
|
|
11
|
+
reloadingScopes: {
|
|
12
|
+
type: BooleanConstructor;
|
|
13
|
+
default: boolean;
|
|
14
|
+
};
|
|
11
15
|
}, {
|
|
12
16
|
getScopeCriteria: (scope: any) => never[];
|
|
13
17
|
closeManageScope: () => void;
|
|
@@ -23,10 +27,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
23
27
|
default: string;
|
|
24
28
|
validator: (value: string) => boolean;
|
|
25
29
|
};
|
|
30
|
+
reloadingScopes: {
|
|
31
|
+
type: BooleanConstructor;
|
|
32
|
+
default: boolean;
|
|
33
|
+
};
|
|
26
34
|
}>> & {
|
|
27
35
|
onOnClose?: ((...args: any[]) => any) | undefined;
|
|
28
36
|
onOnDelete?: ((...args: any[]) => any) | undefined;
|
|
29
37
|
}, {
|
|
30
38
|
lang: string;
|
|
39
|
+
reloadingScopes: boolean;
|
|
31
40
|
}, {}>;
|
|
32
41
|
export default _default;
|
|
@@ -133,10 +133,9 @@ export default defineComponent({
|
|
|
133
133
|
);
|
|
134
134
|
const getAllCriteria = computed(() => {
|
|
135
135
|
const allCriteria = [];
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
allCriteria.push(scopeCriteria[i].values[j]);
|
|
136
|
+
for (let i = 0; i < props.scopeCriteria.length; i++) {
|
|
137
|
+
for (let j = 0; j < props.scopeCriteria[i].values.length; j++) {
|
|
138
|
+
allCriteria.push(props.scopeCriteria[i].values[j]);
|
|
140
139
|
}
|
|
141
140
|
}
|
|
142
141
|
return allCriteria;
|