@tekkare/auriga 0.1.35 → 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 +1 -1
- package/dist/runtime/components/argBtn.vue +1 -0
- package/dist/runtime/components/argScopeManage.vue +65 -52
- package/dist/runtime/components/argScopeManage.vue.d.ts +9 -0
- package/dist/runtime/components/argScopeModal.vue +13 -3
- package/dist/runtime/components/argScopeModal.vue.d.ts +1 -0
- package/dist/runtime/components/argScopeRadio.vue +1 -1
- package/package.json +1 -1
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;
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
</p>
|
|
61
61
|
<div class="scope_criteria">
|
|
62
62
|
<arg-tags
|
|
63
|
-
v-for="(criteria, index) in
|
|
63
|
+
v-for="(criteria, index) in getAllCriteria"
|
|
64
64
|
:key="index"
|
|
65
65
|
set-style="gray"
|
|
66
66
|
>{{ criteria }}</arg-tags
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
</template>
|
|
101
101
|
|
|
102
102
|
<script>
|
|
103
|
-
import { ref, defineComponent, watch } from "vue";
|
|
103
|
+
import { ref, defineComponent, watch, computed } from "vue";
|
|
104
104
|
export default defineComponent({
|
|
105
105
|
name: "argScopeModal",
|
|
106
106
|
props: {
|
|
@@ -131,6 +131,15 @@ export default defineComponent({
|
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
133
|
);
|
|
134
|
+
const getAllCriteria = computed(() => {
|
|
135
|
+
const allCriteria = [];
|
|
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]);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
return allCriteria;
|
|
142
|
+
});
|
|
134
143
|
function closeSaveScope() {
|
|
135
144
|
emit("onClose");
|
|
136
145
|
}
|
|
@@ -149,7 +158,8 @@ export default defineComponent({
|
|
|
149
158
|
scopeName,
|
|
150
159
|
scopeDescr,
|
|
151
160
|
nameFilled,
|
|
152
|
-
saveFail
|
|
161
|
+
saveFail,
|
|
162
|
+
getAllCriteria
|
|
153
163
|
};
|
|
154
164
|
}
|
|
155
165
|
});
|
|
@@ -15,6 +15,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
15
15
|
scopeDescr: import("vue").Ref<string>;
|
|
16
16
|
nameFilled: import("vue").Ref<boolean>;
|
|
17
17
|
saveFail: import("vue").Ref<boolean>;
|
|
18
|
+
getAllCriteria: import("vue").ComputedRef<never[]>;
|
|
18
19
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onClose" | "onSave")[], "onClose" | "onSave", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
19
20
|
scopeCriteria: {
|
|
20
21
|
type: ArrayConstructor;
|