@tekkare/auriga 0.2.70 → 0.2.71
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
|
@@ -44,20 +44,27 @@
|
|
|
44
44
|
<div class="arg_scope_manage_criteria">
|
|
45
45
|
<p class="scope_criteria_title">{{ langData?.criteria }}:</p>
|
|
46
46
|
<div class="oip_row v-center gap-8 wrap">
|
|
47
|
-
<
|
|
47
|
+
<div
|
|
48
48
|
v-for="(criteria, critIndex) in showAllProps === index
|
|
49
49
|
? getScopeCriteria(scope)
|
|
50
50
|
: getScopeCriteria(scope).slice(0, 6)"
|
|
51
|
-
set-style="gray"
|
|
52
51
|
:key="critIndex"
|
|
53
|
-
|
|
52
|
+
class="oip_list v-start gap-4"
|
|
54
53
|
>
|
|
54
|
+
<p class="oip_filter_label"></p>
|
|
55
|
+
<arg-tags set-style="gray">
|
|
56
|
+
<span v-if="typeof criteria === 'object'"
|
|
57
|
+
><b>{{ criteria.type }}: </b>{{ criteria.value }}</span
|
|
58
|
+
>
|
|
59
|
+
<span v-else>{{ criteria }} </span></arg-tags
|
|
60
|
+
>
|
|
61
|
+
</div>
|
|
55
62
|
<arg-text-btn
|
|
56
63
|
v-if="
|
|
57
64
|
getScopeCriteria(scope).length > 6 &&
|
|
58
65
|
showAllProps !== index
|
|
59
66
|
"
|
|
60
|
-
@
|
|
67
|
+
@on-click="
|
|
61
68
|
showAllProps === index
|
|
62
69
|
? (showAllProps = null)
|
|
63
70
|
: (showAllProps = index)
|
|
@@ -138,11 +145,14 @@ export default defineComponent({
|
|
|
138
145
|
function getScopeCriteria(scope) {
|
|
139
146
|
const allCriteria = [];
|
|
140
147
|
const scopeCriteria = JSON.parse(scope.criteria);
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
148
|
+
scopeCriteria.forEach((element) => {
|
|
149
|
+
if (Array.isArray(element.values)) {
|
|
150
|
+
for (let i = 0; i < element.values.length; i++) {
|
|
151
|
+
allCriteria.push(element.values[i]);
|
|
152
|
+
}
|
|
153
|
+
} else
|
|
154
|
+
allCriteria.push(element.values);
|
|
155
|
+
});
|
|
146
156
|
return allCriteria;
|
|
147
157
|
}
|
|
148
158
|
function closeManageScope() {
|
|
@@ -13,7 +13,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
13
13
|
default: boolean;
|
|
14
14
|
};
|
|
15
15
|
}, {
|
|
16
|
-
getScopeCriteria: (scope: any) =>
|
|
16
|
+
getScopeCriteria: (scope: any) => any;
|
|
17
17
|
closeManageScope: () => void;
|
|
18
18
|
deleteScope: (scope: any) => void;
|
|
19
19
|
showAllProps: import("vue").Ref<any>;
|