@tekkare/auriga 0.2.124 → 0.2.126
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/argAdvancedSearchBar.vue +35 -5
- package/dist/runtime/components/argAdvancedSearchBar.vue.d.ts +27 -0
- package/dist/runtime/components/argExportXLSX.vue.d.ts +2 -2
- package/dist/runtime/components/argNoSavedScope.vue +21 -4
- package/dist/runtime/components/argNoSavedScope.vue.d.ts +9 -0
- package/dist/runtime/components/argNoSelectedScope.vue +22 -5
- package/dist/runtime/components/argNoSelectedScope.vue.d.ts +9 -0
- package/dist/runtime/components/argScopeChange.vue +19 -3
- package/dist/runtime/components/argScopeChange.vue.d.ts +9 -0
- package/dist/runtime/components/argScopeCriteria.vue +12 -5
- package/dist/runtime/components/argScopeCriteria.vue.d.ts +9 -0
- package/dist/runtime/components/argScopeCriteriaIndicator.vue +3 -2
- package/dist/runtime/components/argScopeCriteriaIndicator.vue.d.ts +9 -0
- package/dist/runtime/components/argScopeHeader.vue +11 -1
- package/dist/runtime/components/argScopeHeader.vue.d.ts +9 -0
- package/dist/runtime/components/argScopeManage.vue +3 -2
- package/dist/runtime/components/argScopeManage.vue.d.ts +9 -0
- package/dist/runtime/components/argScopeModal.vue +6 -3
- package/dist/runtime/components/argScopeModal.vue.d.ts +9 -0
- package/package.json +7 -7
package/dist/module.json
CHANGED
|
@@ -229,14 +229,16 @@
|
|
|
229
229
|
<script>
|
|
230
230
|
import {
|
|
231
231
|
onMounted,
|
|
232
|
-
onUnmounted,
|
|
233
232
|
ref,
|
|
234
233
|
computed,
|
|
235
234
|
watch,
|
|
236
|
-
defineComponent
|
|
235
|
+
defineComponent,
|
|
236
|
+
onBeforeUnmount
|
|
237
237
|
} from "vue";
|
|
238
238
|
import argIcon from "./argIcon.vue";
|
|
239
239
|
import { useFuse } from "@vueuse/integrations/useFuse";
|
|
240
|
+
import posthog from "posthog-js";
|
|
241
|
+
import { useRoute } from "#app";
|
|
240
242
|
export default defineComponent({
|
|
241
243
|
name: "argAdvancedSearchBar",
|
|
242
244
|
components: { argIcon },
|
|
@@ -275,6 +277,18 @@ export default defineComponent({
|
|
|
275
277
|
highlightInput: {
|
|
276
278
|
type: Boolean,
|
|
277
279
|
default: false
|
|
280
|
+
},
|
|
281
|
+
posthogKey: {
|
|
282
|
+
type: String,
|
|
283
|
+
default: null
|
|
284
|
+
},
|
|
285
|
+
posthogHost: {
|
|
286
|
+
type: String,
|
|
287
|
+
default: null
|
|
288
|
+
},
|
|
289
|
+
appName: {
|
|
290
|
+
type: String,
|
|
291
|
+
default: null
|
|
278
292
|
}
|
|
279
293
|
},
|
|
280
294
|
emits: ["update:Value", "onClose", "onTyping"],
|
|
@@ -402,7 +416,7 @@ export default defineComponent({
|
|
|
402
416
|
});
|
|
403
417
|
onMounted(() => {
|
|
404
418
|
searchBar.value = document.getElementById("search_input_advanced");
|
|
405
|
-
searchBar.value
|
|
419
|
+
searchBar.value?.addEventListener("input", debounce(handleInput, 300));
|
|
406
420
|
tagsSection.value = document.getElementById("tags");
|
|
407
421
|
if (props.customShortcuts.length > 0) {
|
|
408
422
|
for (let i = 0; i < props.customShortcuts.length; i++) {
|
|
@@ -420,8 +434,8 @@ export default defineComponent({
|
|
|
420
434
|
searchedWords.value = props.defaultInputs;
|
|
421
435
|
}
|
|
422
436
|
});
|
|
423
|
-
|
|
424
|
-
searchBar.value
|
|
437
|
+
onBeforeUnmount(() => {
|
|
438
|
+
searchBar.value?.removeEventListener("input", debounce(handleInput, 300));
|
|
425
439
|
});
|
|
426
440
|
function shortcutColor(shortcut) {
|
|
427
441
|
if (shortcut === selectedShortcut.value || shortcut === hoverShortcut.value) {
|
|
@@ -475,6 +489,22 @@ export default defineComponent({
|
|
|
475
489
|
if (!isDefault) {
|
|
476
490
|
emit("update:Value", searchedWords.value);
|
|
477
491
|
}
|
|
492
|
+
if (props.posthogHost !== null && props.posthogKey !== null && props.appName !== null) {
|
|
493
|
+
const eventName = "Search Input";
|
|
494
|
+
const eventProps = {
|
|
495
|
+
title: `${props.appName}_search`,
|
|
496
|
+
page: useRoute().path,
|
|
497
|
+
value: searchedWords.value
|
|
498
|
+
};
|
|
499
|
+
try {
|
|
500
|
+
posthog.capture(eventName, eventProps);
|
|
501
|
+
} catch (error) {
|
|
502
|
+
console.warn(
|
|
503
|
+
"PostHog not initialized or event capture failed.",
|
|
504
|
+
error
|
|
505
|
+
);
|
|
506
|
+
}
|
|
507
|
+
}
|
|
478
508
|
searchBar.value.focus();
|
|
479
509
|
resetSearch();
|
|
480
510
|
}
|
|
@@ -100,6 +100,18 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
100
100
|
type: BooleanConstructor;
|
|
101
101
|
default: boolean;
|
|
102
102
|
};
|
|
103
|
+
posthogKey: {
|
|
104
|
+
type: StringConstructor;
|
|
105
|
+
default: null;
|
|
106
|
+
};
|
|
107
|
+
posthogHost: {
|
|
108
|
+
type: StringConstructor;
|
|
109
|
+
default: null;
|
|
110
|
+
};
|
|
111
|
+
appName: {
|
|
112
|
+
type: StringConstructor;
|
|
113
|
+
default: null;
|
|
114
|
+
};
|
|
103
115
|
}>, {
|
|
104
116
|
close: () => void;
|
|
105
117
|
changeDisplay: () => void;
|
|
@@ -266,6 +278,18 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
266
278
|
type: BooleanConstructor;
|
|
267
279
|
default: boolean;
|
|
268
280
|
};
|
|
281
|
+
posthogKey: {
|
|
282
|
+
type: StringConstructor;
|
|
283
|
+
default: null;
|
|
284
|
+
};
|
|
285
|
+
posthogHost: {
|
|
286
|
+
type: StringConstructor;
|
|
287
|
+
default: null;
|
|
288
|
+
};
|
|
289
|
+
appName: {
|
|
290
|
+
type: StringConstructor;
|
|
291
|
+
default: null;
|
|
292
|
+
};
|
|
269
293
|
}>> & Readonly<{
|
|
270
294
|
"onUpdate:Value"?: ((...args: any[]) => any) | undefined;
|
|
271
295
|
onOnClose?: ((...args: any[]) => any) | undefined;
|
|
@@ -283,6 +307,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
283
307
|
fuzzyThreshold: number;
|
|
284
308
|
loadingSuggs: boolean;
|
|
285
309
|
highlightInput: boolean;
|
|
310
|
+
posthogKey: string;
|
|
311
|
+
posthogHost: string;
|
|
312
|
+
appName: string;
|
|
286
313
|
}, {}, {
|
|
287
314
|
argIcon: any;
|
|
288
315
|
}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -153,6 +153,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
153
153
|
};
|
|
154
154
|
}>> & Readonly<{}>, {
|
|
155
155
|
lang: string;
|
|
156
|
+
posthogKey: string;
|
|
157
|
+
posthogHost: string;
|
|
156
158
|
cut: boolean;
|
|
157
159
|
style: string;
|
|
158
160
|
subtitle: string;
|
|
@@ -162,8 +164,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
162
164
|
exportName: string;
|
|
163
165
|
limit: number;
|
|
164
166
|
actualAmount: number;
|
|
165
|
-
posthogKey: string;
|
|
166
|
-
posthogHost: string;
|
|
167
167
|
}, {}, {
|
|
168
168
|
argBtn: any;
|
|
169
169
|
}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -1,13 +1,29 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
3
|
<div class="no_scope_text">
|
|
4
|
-
<p>
|
|
4
|
+
<p>
|
|
5
|
+
{{
|
|
6
|
+
isScenario
|
|
7
|
+
? noScopeText?.replaceAll(RegExp("scope", "gi"), "scenario")
|
|
8
|
+
: noScopeText
|
|
9
|
+
}}
|
|
10
|
+
</p>
|
|
5
11
|
<ul>
|
|
6
12
|
<li v-for="(step, index) in saveScopeSteps" :key="index">
|
|
7
|
-
{{
|
|
13
|
+
{{
|
|
14
|
+
isScenario
|
|
15
|
+
? step?.replaceAll(RegExp("scope", "gi"), "scenario")
|
|
16
|
+
: step
|
|
17
|
+
}}
|
|
8
18
|
</li>
|
|
9
19
|
</ul>
|
|
10
|
-
<p>
|
|
20
|
+
<p>
|
|
21
|
+
{{
|
|
22
|
+
isScenario
|
|
23
|
+
? noScopeEnd?.replaceAll(RegExp("scope", "gi"), "scenario")
|
|
24
|
+
: noScopeEnd
|
|
25
|
+
}}
|
|
26
|
+
</p>
|
|
11
27
|
</div>
|
|
12
28
|
</div>
|
|
13
29
|
</template>
|
|
@@ -29,7 +45,8 @@ export default defineComponent({
|
|
|
29
45
|
validator: (value) => {
|
|
30
46
|
return ["en", "fr", "es", "jp", "kr"].includes(value);
|
|
31
47
|
}
|
|
32
|
-
}
|
|
48
|
+
},
|
|
49
|
+
isScenario: { type: Boolean, default: false }
|
|
33
50
|
},
|
|
34
51
|
setup(props) {
|
|
35
52
|
const langData = ref(null);
|
|
@@ -4,6 +4,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
4
4
|
default: string;
|
|
5
5
|
validator: (value: string) => boolean;
|
|
6
6
|
};
|
|
7
|
+
isScenario: {
|
|
8
|
+
type: BooleanConstructor;
|
|
9
|
+
default: boolean;
|
|
10
|
+
};
|
|
7
11
|
}>, {
|
|
8
12
|
noScopeText: import("vue").ComputedRef<any>;
|
|
9
13
|
saveScopeSteps: import("vue").ComputedRef<any[]>;
|
|
@@ -15,7 +19,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
15
19
|
default: string;
|
|
16
20
|
validator: (value: string) => boolean;
|
|
17
21
|
};
|
|
22
|
+
isScenario: {
|
|
23
|
+
type: BooleanConstructor;
|
|
24
|
+
default: boolean;
|
|
25
|
+
};
|
|
18
26
|
}>> & Readonly<{}>, {
|
|
19
27
|
lang: string;
|
|
28
|
+
isScenario: boolean;
|
|
20
29
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
21
30
|
export default _default;
|
|
@@ -5,12 +5,20 @@
|
|
|
5
5
|
<arg-icon name="CrosshairSimple" size="32" />
|
|
6
6
|
</div>
|
|
7
7
|
<div class="arg_no_scope_text">
|
|
8
|
-
{{
|
|
8
|
+
{{
|
|
9
|
+
isScenario
|
|
10
|
+
? getNoScopeMsg?.replaceAll(RegExp("scope", "gi"), "scenario")
|
|
11
|
+
: getNoScopeMsg
|
|
12
|
+
}}
|
|
9
13
|
</div>
|
|
10
14
|
<div v-if="scopeArray.length > 0" class="arg_scopes_select">
|
|
11
15
|
<div class="oip_row v-center justify-between full_row">
|
|
12
16
|
<p class="args_select_title">
|
|
13
|
-
{{
|
|
17
|
+
{{
|
|
18
|
+
isScenario
|
|
19
|
+
? langData?.exist?.replaceAll(RegExp("scope", "gi"), "scenario")
|
|
20
|
+
: langData?.exist
|
|
21
|
+
}}
|
|
14
22
|
</p>
|
|
15
23
|
<slot name="manage" />
|
|
16
24
|
</div>
|
|
@@ -27,7 +35,11 @@
|
|
|
27
35
|
size="m"
|
|
28
36
|
full-width
|
|
29
37
|
@onClick="selectScope"
|
|
30
|
-
>{{
|
|
38
|
+
>{{
|
|
39
|
+
isScenario
|
|
40
|
+
? langData?.apply?.replaceAll(RegExp("scope", "gi"), "scenario")
|
|
41
|
+
: langData?.apply
|
|
42
|
+
}}</arg-btn
|
|
31
43
|
>
|
|
32
44
|
<div
|
|
33
45
|
v-if="scopeArray.length > 0"
|
|
@@ -42,7 +54,11 @@
|
|
|
42
54
|
size="m"
|
|
43
55
|
full-width
|
|
44
56
|
@onClick="createNewScope"
|
|
45
|
-
>{{
|
|
57
|
+
>{{
|
|
58
|
+
isScenario
|
|
59
|
+
? langData?.new?.replaceAll(RegExp("scope", "gi"), "scenario")
|
|
60
|
+
: langData?.new
|
|
61
|
+
}}</arg-btn
|
|
46
62
|
>
|
|
47
63
|
</div>
|
|
48
64
|
</div>
|
|
@@ -73,7 +89,8 @@ export default defineComponent({
|
|
|
73
89
|
scopeArray: {
|
|
74
90
|
type: Array,
|
|
75
91
|
default: () => []
|
|
76
|
-
}
|
|
92
|
+
},
|
|
93
|
+
isScenario: { type: Boolean, default: false }
|
|
77
94
|
},
|
|
78
95
|
emits: ["onSelectScope", "update:Scope", "onCreateScope"],
|
|
79
96
|
setup(props, { emit }) {
|
|
@@ -8,6 +8,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
8
8
|
type: ArrayConstructor;
|
|
9
9
|
default: () => never[];
|
|
10
10
|
};
|
|
11
|
+
isScenario: {
|
|
12
|
+
type: BooleanConstructor;
|
|
13
|
+
default: boolean;
|
|
14
|
+
};
|
|
11
15
|
}>, {
|
|
12
16
|
getNoScopeMsg: import("vue").ComputedRef<any>;
|
|
13
17
|
selectedScope: import("vue").Ref<any, any>;
|
|
@@ -24,12 +28,17 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
24
28
|
type: ArrayConstructor;
|
|
25
29
|
default: () => never[];
|
|
26
30
|
};
|
|
31
|
+
isScenario: {
|
|
32
|
+
type: BooleanConstructor;
|
|
33
|
+
default: boolean;
|
|
34
|
+
};
|
|
27
35
|
}>> & Readonly<{
|
|
28
36
|
onOnSelectScope?: ((...args: any[]) => any) | undefined;
|
|
29
37
|
"onUpdate:Scope"?: ((...args: any[]) => any) | undefined;
|
|
30
38
|
onOnCreateScope?: ((...args: any[]) => any) | undefined;
|
|
31
39
|
}>, {
|
|
32
40
|
lang: string;
|
|
41
|
+
isScenario: boolean;
|
|
33
42
|
scopeArray: unknown[];
|
|
34
43
|
}, {}, {
|
|
35
44
|
argIcon: any;
|
|
@@ -22,7 +22,13 @@
|
|
|
22
22
|
full-width
|
|
23
23
|
@onClick="saveScope()"
|
|
24
24
|
prefix-icon="BoxArrowDown"
|
|
25
|
-
>{{
|
|
25
|
+
>{{
|
|
26
|
+
saveMsg !== null
|
|
27
|
+
? saveMsg
|
|
28
|
+
: isScenario
|
|
29
|
+
? langData?.save?.replaceAll(RegExp("scope", "gi"), "scenario")
|
|
30
|
+
: langData?.save
|
|
31
|
+
}}</arg-btn
|
|
26
32
|
>
|
|
27
33
|
<arg-btn
|
|
28
34
|
v-if="createNew"
|
|
@@ -31,7 +37,11 @@
|
|
|
31
37
|
full-width
|
|
32
38
|
@onClick="newScope()"
|
|
33
39
|
prefix-icon="PlusCircle"
|
|
34
|
-
>{{
|
|
40
|
+
>{{
|
|
41
|
+
isScenario
|
|
42
|
+
? langData?.new?.replaceAll(RegExp("scope", "gi"), "scenario")
|
|
43
|
+
: langData?.new
|
|
44
|
+
}}</arg-btn
|
|
35
45
|
>
|
|
36
46
|
</div>
|
|
37
47
|
<div class="oip_scope_list">
|
|
@@ -117,6 +127,10 @@ export default defineComponent({
|
|
|
117
127
|
customActions: {
|
|
118
128
|
type: Boolean,
|
|
119
129
|
default: false
|
|
130
|
+
},
|
|
131
|
+
isScenario: {
|
|
132
|
+
type: Boolean,
|
|
133
|
+
default: false
|
|
120
134
|
}
|
|
121
135
|
},
|
|
122
136
|
emits: ["changeScope", "update:Scope", "onNewScope", "onSave"],
|
|
@@ -157,7 +171,9 @@ export default defineComponent({
|
|
|
157
171
|
}
|
|
158
172
|
);
|
|
159
173
|
const getTitle = computed(() => {
|
|
160
|
-
if (props.
|
|
174
|
+
if (props.isScenario) {
|
|
175
|
+
return props.scopes.length === 0 ? "+ New scenario" : "Change scenario";
|
|
176
|
+
} else if (props.scopes.length > 0 || props.scopes.length === 0 && props.showActions) {
|
|
161
177
|
return langData.value?.change;
|
|
162
178
|
} else
|
|
163
179
|
return langData.value?.apply;
|
|
@@ -54,6 +54,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
54
54
|
type: BooleanConstructor;
|
|
55
55
|
default: boolean;
|
|
56
56
|
};
|
|
57
|
+
isScenario: {
|
|
58
|
+
type: BooleanConstructor;
|
|
59
|
+
default: boolean;
|
|
60
|
+
};
|
|
57
61
|
}>, {
|
|
58
62
|
isDisplay: import("vue").Ref<boolean, boolean>;
|
|
59
63
|
closeDropdown: () => void;
|
|
@@ -120,6 +124,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
120
124
|
type: BooleanConstructor;
|
|
121
125
|
default: boolean;
|
|
122
126
|
};
|
|
127
|
+
isScenario: {
|
|
128
|
+
type: BooleanConstructor;
|
|
129
|
+
default: boolean;
|
|
130
|
+
};
|
|
123
131
|
}>> & Readonly<{
|
|
124
132
|
"onUpdate:Scope"?: ((...args: any[]) => any) | undefined;
|
|
125
133
|
onChangeScope?: ((...args: any[]) => any) | undefined;
|
|
@@ -128,6 +136,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
128
136
|
}>, {
|
|
129
137
|
lang: string;
|
|
130
138
|
save: boolean;
|
|
139
|
+
isScenario: boolean;
|
|
131
140
|
active_scope: Record<string, any>;
|
|
132
141
|
custom_active: boolean;
|
|
133
142
|
createNew: boolean;
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<div v-show="activeTab === 'new'" class="arg_scope_new">
|
|
10
10
|
<div class="oip_row v-center gap-8">
|
|
11
11
|
<h1>
|
|
12
|
-
{{ langData?.title }}
|
|
12
|
+
{{ isScenario ? "Scenario criteria" : langData?.title }}
|
|
13
13
|
</h1>
|
|
14
14
|
<slot name="filtersAmount" />
|
|
15
15
|
</div>
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
<div v-show="!onlyNew && activeTab === 'saved'" class="arg_scope_save">
|
|
21
21
|
<div class="oip_row v-center gap-8">
|
|
22
22
|
<h1>
|
|
23
|
-
{{ langData?.saved }}
|
|
23
|
+
{{ isScenario ? "Your saved scenarios" : langData?.saved }}
|
|
24
24
|
</h1>
|
|
25
25
|
<slot name="scopeAmount" />
|
|
26
26
|
</div>
|
|
@@ -49,7 +49,8 @@ export default defineComponent({
|
|
|
49
49
|
return ["en", "fr", "es", "jp", "kr"].includes(value);
|
|
50
50
|
}
|
|
51
51
|
},
|
|
52
|
-
onlyNew: { type: Boolean, default: false }
|
|
52
|
+
onlyNew: { type: Boolean, default: false },
|
|
53
|
+
isScenario: { type: Boolean, default: false }
|
|
53
54
|
},
|
|
54
55
|
emits: ["update:Criteria", "onChangeCriteria"],
|
|
55
56
|
setup(props, { emit }) {
|
|
@@ -82,8 +83,14 @@ export default defineComponent({
|
|
|
82
83
|
);
|
|
83
84
|
const scopeTabs = computed(() => {
|
|
84
85
|
return [
|
|
85
|
-
{
|
|
86
|
-
|
|
86
|
+
{
|
|
87
|
+
name: props.isScenario ? "New scenario criteria" : langData.value?.tabs.new,
|
|
88
|
+
value: "new"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
name: props.isScenario ? "Apply an existing scenario" : langData.value?.tabs.saved,
|
|
92
|
+
value: "saved"
|
|
93
|
+
}
|
|
87
94
|
];
|
|
88
95
|
});
|
|
89
96
|
return { activeTab, scopeTabs, langData };
|
|
@@ -8,6 +8,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
8
8
|
type: BooleanConstructor;
|
|
9
9
|
default: boolean;
|
|
10
10
|
};
|
|
11
|
+
isScenario: {
|
|
12
|
+
type: BooleanConstructor;
|
|
13
|
+
default: boolean;
|
|
14
|
+
};
|
|
11
15
|
}>, {
|
|
12
16
|
activeTab: import("vue").Ref<string, string>;
|
|
13
17
|
scopeTabs: import("vue").ComputedRef<{
|
|
@@ -25,11 +29,16 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
25
29
|
type: BooleanConstructor;
|
|
26
30
|
default: boolean;
|
|
27
31
|
};
|
|
32
|
+
isScenario: {
|
|
33
|
+
type: BooleanConstructor;
|
|
34
|
+
default: boolean;
|
|
35
|
+
};
|
|
28
36
|
}>> & Readonly<{
|
|
29
37
|
"onUpdate:Criteria"?: ((...args: any[]) => any) | undefined;
|
|
30
38
|
onOnChangeCriteria?: ((...args: any[]) => any) | undefined;
|
|
31
39
|
}>, {
|
|
32
40
|
lang: string;
|
|
41
|
+
isScenario: boolean;
|
|
33
42
|
onlyNew: boolean;
|
|
34
43
|
}, {}, {
|
|
35
44
|
argFilterTabs: any;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="criteria_section">
|
|
3
3
|
<p class="arg_scope_label">
|
|
4
|
-
{{ langData?.apply }}
|
|
4
|
+
{{ isScenario ? "Applied scenario" : langData?.apply }}
|
|
5
5
|
</p>
|
|
6
6
|
<p class="arg_scope">
|
|
7
7
|
{{ selected !== null ? selected : langData?.custom }}
|
|
@@ -29,7 +29,8 @@ export default defineComponent({
|
|
|
29
29
|
validator: (value) => {
|
|
30
30
|
return ["en", "fr", "es", "jp", "kr"].includes(value);
|
|
31
31
|
}
|
|
32
|
-
}
|
|
32
|
+
},
|
|
33
|
+
isScenario: { type: Boolean, default: false }
|
|
33
34
|
},
|
|
34
35
|
setup(props) {
|
|
35
36
|
const langData = ref(null);
|
|
@@ -8,6 +8,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
8
8
|
default: string;
|
|
9
9
|
validator: (value: string) => boolean;
|
|
10
10
|
};
|
|
11
|
+
isScenario: {
|
|
12
|
+
type: BooleanConstructor;
|
|
13
|
+
default: boolean;
|
|
14
|
+
};
|
|
11
15
|
}>, {
|
|
12
16
|
langData: import("vue").Ref<any, any>;
|
|
13
17
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -20,8 +24,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
20
24
|
default: string;
|
|
21
25
|
validator: (value: string) => boolean;
|
|
22
26
|
};
|
|
27
|
+
isScenario: {
|
|
28
|
+
type: BooleanConstructor;
|
|
29
|
+
default: boolean;
|
|
30
|
+
};
|
|
23
31
|
}>> & Readonly<{}>, {
|
|
24
32
|
lang: string;
|
|
25
33
|
selected: string;
|
|
34
|
+
isScenario: boolean;
|
|
26
35
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
27
36
|
export default _default;
|
|
@@ -3,7 +3,13 @@
|
|
|
3
3
|
<div class="oip_row v-center gap-16">
|
|
4
4
|
<arg-actions :lang="lang" action-type="cancel" @onAction="goBack()" />
|
|
5
5
|
<h1 class="scope_title">
|
|
6
|
-
{{
|
|
6
|
+
{{
|
|
7
|
+
scopeTitle !== null
|
|
8
|
+
? scopeTitle
|
|
9
|
+
: isScenario
|
|
10
|
+
? "My scenarios"
|
|
11
|
+
: langData
|
|
12
|
+
}}
|
|
7
13
|
</h1>
|
|
8
14
|
</div>
|
|
9
15
|
<div class="oip_row v-center gap-16">
|
|
@@ -29,6 +35,10 @@ export default defineComponent({
|
|
|
29
35
|
type: String,
|
|
30
36
|
default: null
|
|
31
37
|
},
|
|
38
|
+
isScenario: {
|
|
39
|
+
type: Boolean,
|
|
40
|
+
default: false
|
|
41
|
+
},
|
|
32
42
|
lang: {
|
|
33
43
|
type: String,
|
|
34
44
|
default: "en",
|
|
@@ -3,6 +3,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
3
3
|
type: StringConstructor;
|
|
4
4
|
default: null;
|
|
5
5
|
};
|
|
6
|
+
isScenario: {
|
|
7
|
+
type: BooleanConstructor;
|
|
8
|
+
default: boolean;
|
|
9
|
+
};
|
|
6
10
|
lang: {
|
|
7
11
|
type: StringConstructor;
|
|
8
12
|
default: string;
|
|
@@ -22,6 +26,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
22
26
|
type: StringConstructor;
|
|
23
27
|
default: null;
|
|
24
28
|
};
|
|
29
|
+
isScenario: {
|
|
30
|
+
type: BooleanConstructor;
|
|
31
|
+
default: boolean;
|
|
32
|
+
};
|
|
25
33
|
lang: {
|
|
26
34
|
type: StringConstructor;
|
|
27
35
|
default: string;
|
|
@@ -34,6 +42,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
34
42
|
};
|
|
35
43
|
}>> & Readonly<{}>, {
|
|
36
44
|
lang: string;
|
|
45
|
+
isScenario: boolean;
|
|
37
46
|
scopeTitle: string;
|
|
38
47
|
cancelLink: string;
|
|
39
48
|
}, {}, {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<div class="arg_scope_manage_modal">
|
|
5
5
|
<div class="arg_scope_manage_header">
|
|
6
6
|
<h1>
|
|
7
|
-
{{ langData?.title }}
|
|
7
|
+
{{ isScenario ? "Manage my scenarios" : langData?.title }}
|
|
8
8
|
</h1>
|
|
9
9
|
<div class="cursor-pointer" @click="closeManageScope()">
|
|
10
10
|
<arg-icon name="X" size="16" color="var(--dark)" />
|
|
@@ -120,7 +120,8 @@ export default defineComponent({
|
|
|
120
120
|
reloadingScopes: {
|
|
121
121
|
type: Boolean,
|
|
122
122
|
default: false
|
|
123
|
-
}
|
|
123
|
+
},
|
|
124
|
+
isScenario: { type: Boolean, default: false }
|
|
124
125
|
},
|
|
125
126
|
emits: ["onDelete", "onClose"],
|
|
126
127
|
setup(props, { emit }) {
|
|
@@ -12,6 +12,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
12
12
|
type: BooleanConstructor;
|
|
13
13
|
default: boolean;
|
|
14
14
|
};
|
|
15
|
+
isScenario: {
|
|
16
|
+
type: BooleanConstructor;
|
|
17
|
+
default: boolean;
|
|
18
|
+
};
|
|
15
19
|
}>, {
|
|
16
20
|
getScopeCriteria: (scope: any) => any;
|
|
17
21
|
closeManageScope: () => void;
|
|
@@ -32,11 +36,16 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
32
36
|
type: BooleanConstructor;
|
|
33
37
|
default: boolean;
|
|
34
38
|
};
|
|
39
|
+
isScenario: {
|
|
40
|
+
type: BooleanConstructor;
|
|
41
|
+
default: boolean;
|
|
42
|
+
};
|
|
35
43
|
}>> & Readonly<{
|
|
36
44
|
onOnClose?: ((...args: any[]) => any) | undefined;
|
|
37
45
|
onOnDelete?: ((...args: any[]) => any) | undefined;
|
|
38
46
|
}>, {
|
|
39
47
|
lang: string;
|
|
48
|
+
isScenario: boolean;
|
|
40
49
|
reloadingScopes: boolean;
|
|
41
50
|
}, {}, {
|
|
42
51
|
argBtn: any;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<div class="arg_save_modal">
|
|
5
5
|
<div class="arg_save_header">
|
|
6
6
|
<h1>
|
|
7
|
-
{{ langData?.title }}
|
|
7
|
+
{{ isScenario ? "Save my scenario" : langData?.title }}
|
|
8
8
|
</h1>
|
|
9
9
|
<div class="cursor-pointer" @click="closeSaveScope()">
|
|
10
10
|
<arg-icon name="X" size="16" color="var(--dark)" />
|
|
@@ -76,7 +76,9 @@
|
|
|
76
76
|
btn-style="primary-fill"
|
|
77
77
|
full-width
|
|
78
78
|
@onClick="saveScope"
|
|
79
|
-
>{{
|
|
79
|
+
>{{
|
|
80
|
+
isScenario ? "Save scenario and continue" : langData?.save
|
|
81
|
+
}}</arg-btn
|
|
80
82
|
>
|
|
81
83
|
</div>
|
|
82
84
|
</div>
|
|
@@ -112,7 +114,8 @@ export default defineComponent({
|
|
|
112
114
|
validator: (value) => {
|
|
113
115
|
return ["en", "fr", "es", "jp", "kr"].includes(value);
|
|
114
116
|
}
|
|
115
|
-
}
|
|
117
|
+
},
|
|
118
|
+
isScenario: { type: Boolean, default: false }
|
|
116
119
|
},
|
|
117
120
|
emits: ["onClose", "onSave"],
|
|
118
121
|
setup(props, { emit }) {
|
|
@@ -21,6 +21,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
21
21
|
default: string;
|
|
22
22
|
validator: (value: string) => boolean;
|
|
23
23
|
};
|
|
24
|
+
isScenario: {
|
|
25
|
+
type: BooleanConstructor;
|
|
26
|
+
default: boolean;
|
|
27
|
+
};
|
|
24
28
|
}>, {
|
|
25
29
|
closeSaveScope: () => void;
|
|
26
30
|
saveScope: () => void;
|
|
@@ -53,11 +57,16 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
53
57
|
default: string;
|
|
54
58
|
validator: (value: string) => boolean;
|
|
55
59
|
};
|
|
60
|
+
isScenario: {
|
|
61
|
+
type: BooleanConstructor;
|
|
62
|
+
default: boolean;
|
|
63
|
+
};
|
|
56
64
|
}>> & Readonly<{
|
|
57
65
|
onOnClose?: ((...args: any[]) => any) | undefined;
|
|
58
66
|
onOnSave?: ((...args: any[]) => any) | undefined;
|
|
59
67
|
}>, {
|
|
60
68
|
lang: string;
|
|
69
|
+
isScenario: boolean;
|
|
61
70
|
}, {}, {
|
|
62
71
|
argTags: any;
|
|
63
72
|
argIcon: any;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tekkare/auriga",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.126",
|
|
4
4
|
"description": "Aurgia is a UI kit developped by Tekkare",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"patch": "nuxt-module-build && npm version patch && npm publish"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@nuxt/kit": "^3.
|
|
33
|
+
"@nuxt/kit": "^3.15.3",
|
|
34
34
|
"@svg-maps/france.departments": "^1.0.1",
|
|
35
35
|
"@svg-maps/france.regions": "^1.1.1",
|
|
36
36
|
"@svg-maps/usa": "^1.1.1",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@vueuse/integrations": "^10.11.1",
|
|
40
40
|
"apexcharts": "^3.54.1",
|
|
41
41
|
"fuse.js": "^6.6.2",
|
|
42
|
-
"posthog-js": "^1.
|
|
42
|
+
"posthog-js": "^1.210.2",
|
|
43
43
|
"save": "^2.9.0",
|
|
44
44
|
"vue-apexcharts": "^1.7.0",
|
|
45
45
|
"vue-svg-map": "^1.2.0",
|
|
@@ -50,12 +50,12 @@
|
|
|
50
50
|
"@nuxt/devtools": "latest",
|
|
51
51
|
"@nuxt/eslint-config": "^0.2.0",
|
|
52
52
|
"@nuxt/module-builder": "^0.5.5",
|
|
53
|
-
"@nuxt/schema": "^3.
|
|
54
|
-
"@nuxt/test-utils": "^3.15.
|
|
55
|
-
"@types/node": "^18.19.
|
|
53
|
+
"@nuxt/schema": "^3.15.3",
|
|
54
|
+
"@nuxt/test-utils": "^3.15.4",
|
|
55
|
+
"@types/node": "^18.19.74",
|
|
56
56
|
"changelogen": "^0.5.7",
|
|
57
57
|
"eslint": "^8.57.1",
|
|
58
|
-
"nuxt": "^3.
|
|
58
|
+
"nuxt": "^3.15.3",
|
|
59
59
|
"vitest": "^0.34.6"
|
|
60
60
|
},
|
|
61
61
|
"author": "Tekkare"
|