@tekkare/auriga 0.1.24 → 0.1.26
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 +18 -6
- package/dist/runtime/components/argBtn.vue.d.ts +20 -0
- package/dist/runtime/components/argComplexSelect.vue +96 -17
- package/dist/runtime/components/argComplexSelect.vue.d.ts +79 -9
- package/dist/runtime/components/argDate.vue +4 -1
- package/dist/runtime/components/argDate.vue.d.ts +2 -0
- package/dist/runtime/components/argDropdownSelect.vue +58 -13
- package/dist/runtime/components/argDropdownSelect.vue.d.ts +64 -7
- package/dist/runtime/components/argMultipleSelect.vue +227 -189
- package/dist/runtime/components/argMultipleSelect.vue.d.ts +67 -7
- package/dist/runtime/components/argNoSelectedScope.vue +165 -0
- package/dist/runtime/components/argNoSelectedScope.vue.d.ts +34 -0
- package/dist/runtime/components/argRadioButtons.vue +7 -3
- package/dist/runtime/components/argRadioButtons.vue.d.ts +3 -3
- package/dist/runtime/components/argSimpleLabel.vue +14 -0
- package/dist/runtime/components/argStyle.vue +137 -176
- package/dist/runtime/components/argTags.vue +1 -1
- package/package.json +1 -1
|
@@ -26,7 +26,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
26
26
|
};
|
|
27
27
|
filter_placeholder: {
|
|
28
28
|
type: StringConstructor;
|
|
29
|
-
|
|
29
|
+
default: null;
|
|
30
30
|
};
|
|
31
31
|
show_all: {
|
|
32
32
|
type: BooleanConstructor;
|
|
@@ -70,9 +70,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
70
70
|
type: BooleanConstructor;
|
|
71
71
|
default: boolean;
|
|
72
72
|
};
|
|
73
|
-
|
|
73
|
+
empty_msg: {
|
|
74
74
|
type: StringConstructor;
|
|
75
|
-
default:
|
|
75
|
+
default: null;
|
|
76
76
|
};
|
|
77
77
|
multiple_label: {
|
|
78
78
|
type: StringConstructor;
|
|
@@ -82,6 +82,32 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
82
82
|
type: BooleanConstructor;
|
|
83
83
|
default: boolean;
|
|
84
84
|
};
|
|
85
|
+
lang: {
|
|
86
|
+
type: StringConstructor;
|
|
87
|
+
default: string;
|
|
88
|
+
validator: (value: string) => boolean;
|
|
89
|
+
};
|
|
90
|
+
loader_text: {
|
|
91
|
+
type: {
|
|
92
|
+
(arrayLength: number): string[];
|
|
93
|
+
(...items: string[]): string[];
|
|
94
|
+
new (arrayLength: number): string[];
|
|
95
|
+
new (...items: string[]): string[];
|
|
96
|
+
isArray(arg: any): arg is any[];
|
|
97
|
+
readonly prototype: any[];
|
|
98
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
99
|
+
from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
|
|
100
|
+
from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
|
|
101
|
+
from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
|
|
102
|
+
of<T_4>(...items: T_4[]): T_4[];
|
|
103
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
104
|
+
};
|
|
105
|
+
default: null;
|
|
106
|
+
};
|
|
107
|
+
empty_content_msg: {
|
|
108
|
+
type: StringConstructor;
|
|
109
|
+
default: null;
|
|
110
|
+
};
|
|
85
111
|
}, {
|
|
86
112
|
del_all: () => void;
|
|
87
113
|
del_all_cat: (index: number) => void;
|
|
@@ -110,6 +136,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
110
136
|
selected_all: import("vue").Ref<boolean>;
|
|
111
137
|
selectedCats: import("vue").Ref<number[]>;
|
|
112
138
|
valueFrom: import("vue").Ref<never[]>;
|
|
139
|
+
getEmptyMsg: import("vue").ComputedRef<string>;
|
|
140
|
+
getLoaderText: import("vue").ComputedRef<string[]>;
|
|
141
|
+
getPlaceholder: import("vue").ComputedRef<string>;
|
|
142
|
+
getEmptyContentMsg: import("vue").ComputedRef<string>;
|
|
113
143
|
}, 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<{
|
|
114
144
|
element_table: {
|
|
115
145
|
type: {
|
|
@@ -138,7 +168,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
138
168
|
};
|
|
139
169
|
filter_placeholder: {
|
|
140
170
|
type: StringConstructor;
|
|
141
|
-
|
|
171
|
+
default: null;
|
|
142
172
|
};
|
|
143
173
|
show_all: {
|
|
144
174
|
type: BooleanConstructor;
|
|
@@ -182,9 +212,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
182
212
|
type: BooleanConstructor;
|
|
183
213
|
default: boolean;
|
|
184
214
|
};
|
|
185
|
-
|
|
215
|
+
empty_msg: {
|
|
186
216
|
type: StringConstructor;
|
|
187
|
-
default:
|
|
217
|
+
default: null;
|
|
188
218
|
};
|
|
189
219
|
multiple_label: {
|
|
190
220
|
type: StringConstructor;
|
|
@@ -194,22 +224,52 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
194
224
|
type: BooleanConstructor;
|
|
195
225
|
default: boolean;
|
|
196
226
|
};
|
|
227
|
+
lang: {
|
|
228
|
+
type: StringConstructor;
|
|
229
|
+
default: string;
|
|
230
|
+
validator: (value: string) => boolean;
|
|
231
|
+
};
|
|
232
|
+
loader_text: {
|
|
233
|
+
type: {
|
|
234
|
+
(arrayLength: number): string[];
|
|
235
|
+
(...items: string[]): string[];
|
|
236
|
+
new (arrayLength: number): string[];
|
|
237
|
+
new (...items: string[]): string[];
|
|
238
|
+
isArray(arg: any): arg is any[];
|
|
239
|
+
readonly prototype: any[];
|
|
240
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
241
|
+
from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
|
|
242
|
+
from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
|
|
243
|
+
from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
|
|
244
|
+
of<T_4>(...items: T_4[]): T_4[];
|
|
245
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
246
|
+
};
|
|
247
|
+
default: null;
|
|
248
|
+
};
|
|
249
|
+
empty_content_msg: {
|
|
250
|
+
type: StringConstructor;
|
|
251
|
+
default: null;
|
|
252
|
+
};
|
|
197
253
|
}>> & {
|
|
198
254
|
onOnClose?: ((...args: any[]) => any) | undefined;
|
|
199
255
|
onChangeElement?: ((...args: any[]) => any) | undefined;
|
|
200
256
|
"onUpdate:Selection"?: ((...args: any[]) => any) | undefined;
|
|
201
257
|
onChangeInputValue?: ((...args: any[]) => any) | undefined;
|
|
202
258
|
}, {
|
|
259
|
+
lang: string;
|
|
203
260
|
loading: boolean;
|
|
204
261
|
disabled: boolean;
|
|
205
262
|
show_amount: boolean;
|
|
263
|
+
empty_msg: string;
|
|
264
|
+
loader_text: string[];
|
|
265
|
+
empty_content_msg: string;
|
|
206
266
|
search: boolean;
|
|
267
|
+
filter_placeholder: string;
|
|
207
268
|
default_select: any[];
|
|
208
269
|
nested: boolean;
|
|
209
270
|
show_all: boolean;
|
|
210
271
|
preselection_all: boolean;
|
|
211
272
|
multiple_columns: boolean;
|
|
212
273
|
options_disable: unknown[];
|
|
213
|
-
emptyMsg: string;
|
|
214
274
|
}, {}>;
|
|
215
275
|
export default _default;
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="arg_no_scope_display">
|
|
3
|
+
<div class="arg_no_selected_scope">
|
|
4
|
+
<div class="icon_square">
|
|
5
|
+
<arg-icon name="CrosshairSimple" size="32" />
|
|
6
|
+
</div>
|
|
7
|
+
<div class="arg_no_scope_text">
|
|
8
|
+
{{ getNoScopeMsg }}
|
|
9
|
+
</div>
|
|
10
|
+
<div v-if="scopeArray.length > 0" class="arg_scopes_select">
|
|
11
|
+
<div class="oip-row v-center justify-between">
|
|
12
|
+
<p class="args_select_title">
|
|
13
|
+
{{
|
|
14
|
+
lang === "fr"
|
|
15
|
+
? "Appliquer un scope existant"
|
|
16
|
+
: "Apply an existing scope"
|
|
17
|
+
}}
|
|
18
|
+
</p>
|
|
19
|
+
<!-- Manage Scopes -->
|
|
20
|
+
</div>
|
|
21
|
+
<arg-radio-buttons
|
|
22
|
+
dir="column"
|
|
23
|
+
:elements="scopeArray"
|
|
24
|
+
:return_value="true"
|
|
25
|
+
v-model:Selection="selectedScope"
|
|
26
|
+
/>
|
|
27
|
+
</div>
|
|
28
|
+
<arg-btn
|
|
29
|
+
v-if="scopeArray.length > 0"
|
|
30
|
+
:btn-style="selectedScope !== null ? 'primary-fill' : 'disable'"
|
|
31
|
+
size="m"
|
|
32
|
+
full-width
|
|
33
|
+
@onClick="selectScope"
|
|
34
|
+
>{{ lang === "fr" ? "Appliquer le scope" : "Apply scope" }}</arg-btn
|
|
35
|
+
>
|
|
36
|
+
<div class="oip_row v-center gap-8 full-width">
|
|
37
|
+
<div class="scope_sep" />
|
|
38
|
+
<p class="scope_sep_text">or</p>
|
|
39
|
+
<div class="scope_sep" />
|
|
40
|
+
</div>
|
|
41
|
+
<arg-btn
|
|
42
|
+
v-if="scopeArray.length > 0"
|
|
43
|
+
btn-style="primary-stroke"
|
|
44
|
+
size="m"
|
|
45
|
+
full-width
|
|
46
|
+
@onClick="createNewScope"
|
|
47
|
+
>{{ lang === "fr" ? "+ Nouveau scope" : "+ New scope" }}</arg-btn
|
|
48
|
+
>
|
|
49
|
+
</div>
|
|
50
|
+
</div>
|
|
51
|
+
</template>
|
|
52
|
+
|
|
53
|
+
<script>
|
|
54
|
+
import {
|
|
55
|
+
ref,
|
|
56
|
+
computed,
|
|
57
|
+
defineComponent
|
|
58
|
+
} from "vue";
|
|
59
|
+
import argIcon from "./argIcon.vue";
|
|
60
|
+
import argRadioButtons from "./argRadioButtons.vue";
|
|
61
|
+
export default defineComponent({
|
|
62
|
+
name: "argNoSelectedScope",
|
|
63
|
+
components: { argIcon, argRadioButtons },
|
|
64
|
+
props: {
|
|
65
|
+
lang: {
|
|
66
|
+
type: String,
|
|
67
|
+
default: "en",
|
|
68
|
+
validator: (value) => {
|
|
69
|
+
return ["en", "fr"].includes(value);
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
scopeArray: {
|
|
73
|
+
type: Array,
|
|
74
|
+
default: () => []
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
emits: ["onSelectScope", "update:Scope", "onCreateScope"],
|
|
78
|
+
setup(props, { emit }) {
|
|
79
|
+
const selectedScope = ref(null);
|
|
80
|
+
const getNoScopeMsg = computed(() => {
|
|
81
|
+
if (props.lang === "en") {
|
|
82
|
+
return `You need to select your scope to view any results or data. Please choose one of the options below to proceed.`;
|
|
83
|
+
} else
|
|
84
|
+
return `Vous devez s\xE9lectionner votre scope pour voir les r\xE9sultats ou donn\xE9es. Veuillez choisir une des options ci-dessous pour continuer`;
|
|
85
|
+
});
|
|
86
|
+
function selectScope() {
|
|
87
|
+
emit("onSelectScope", selectedScope.value);
|
|
88
|
+
emit("update:Scope", selectedScope.value);
|
|
89
|
+
}
|
|
90
|
+
function createNewScope() {
|
|
91
|
+
emit("onCreateScope");
|
|
92
|
+
}
|
|
93
|
+
return { getNoScopeMsg, selectedScope, selectScope, createNewScope };
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
</script>
|
|
97
|
+
|
|
98
|
+
<style scoped>
|
|
99
|
+
.arg_no_selected_scope {
|
|
100
|
+
display: flex;
|
|
101
|
+
flex-direction: column;
|
|
102
|
+
align-items: flex-start;
|
|
103
|
+
gap: 24px;
|
|
104
|
+
max-width: 382px;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.icon_square {
|
|
108
|
+
display: flex;
|
|
109
|
+
align-items: center;
|
|
110
|
+
justify-content: center;
|
|
111
|
+
background: var(--dividers);
|
|
112
|
+
padding: 8px;
|
|
113
|
+
border-radius: 8px;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.arg_no_scope_text {
|
|
117
|
+
font-size: 14px;
|
|
118
|
+
font-style: normal;
|
|
119
|
+
font-weight: 400;
|
|
120
|
+
line-height: 160%;
|
|
121
|
+
color: var(--cool-grey);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.arg_no_scope_display {
|
|
125
|
+
height: 100%;
|
|
126
|
+
width: 100%;
|
|
127
|
+
margin-top: 80px;
|
|
128
|
+
display: flex;
|
|
129
|
+
align-items: center;
|
|
130
|
+
justify-content: center;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.arg_scopes_select {
|
|
134
|
+
display: flex;
|
|
135
|
+
flex-direction: column;
|
|
136
|
+
align-items: flex-start;
|
|
137
|
+
gap: 8px;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.args_select_title {
|
|
141
|
+
font-size: 16px;
|
|
142
|
+
font-style: normal;
|
|
143
|
+
font-weight: 700;
|
|
144
|
+
line-height: normal;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.scope_sep {
|
|
148
|
+
height: 1px;
|
|
149
|
+
background-color: var(--wild-blue-yonder);
|
|
150
|
+
flex: 1 1 0;
|
|
151
|
+
min-width: 40%;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.full-width {
|
|
155
|
+
width: 100%;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.scope_sep_text {
|
|
159
|
+
font-size: 14px;
|
|
160
|
+
font-style: normal;
|
|
161
|
+
font-weight: 400;
|
|
162
|
+
line-height: normal;
|
|
163
|
+
color: var(--wild-blue-yonder);
|
|
164
|
+
}
|
|
165
|
+
</style>
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
lang: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: string;
|
|
5
|
+
validator: (value: string) => boolean;
|
|
6
|
+
};
|
|
7
|
+
scopeArray: {
|
|
8
|
+
type: ArrayConstructor;
|
|
9
|
+
default: () => never[];
|
|
10
|
+
};
|
|
11
|
+
}, {
|
|
12
|
+
getNoScopeMsg: import("vue").ComputedRef<"You need to select your scope to view any results or data. Please choose one of the options below to proceed." | "Vous devez sélectionner votre scope pour voir les résultats ou données. Veuillez choisir une des options ci-dessous pour continuer">;
|
|
13
|
+
selectedScope: any;
|
|
14
|
+
selectScope: () => void;
|
|
15
|
+
createNewScope: () => void;
|
|
16
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onSelectScope" | "update:Scope" | "onCreateScope")[], "onSelectScope" | "update:Scope" | "onCreateScope", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
17
|
+
lang: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
default: string;
|
|
20
|
+
validator: (value: string) => boolean;
|
|
21
|
+
};
|
|
22
|
+
scopeArray: {
|
|
23
|
+
type: ArrayConstructor;
|
|
24
|
+
default: () => never[];
|
|
25
|
+
};
|
|
26
|
+
}>> & {
|
|
27
|
+
onOnSelectScope?: ((...args: any[]) => any) | undefined;
|
|
28
|
+
"onUpdate:Scope"?: ((...args: any[]) => any) | undefined;
|
|
29
|
+
onOnCreateScope?: ((...args: any[]) => any) | undefined;
|
|
30
|
+
}, {
|
|
31
|
+
lang: string;
|
|
32
|
+
scopeArray: unknown[];
|
|
33
|
+
}, {}>;
|
|
34
|
+
export default _default;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<div
|
|
4
4
|
v-for="(radio, index) in elements"
|
|
5
5
|
:key="index"
|
|
6
|
-
class="oip_row v-center gap-4"
|
|
6
|
+
class="oip_row v-center gap-4 radio_item"
|
|
7
7
|
:class="selectedRadio === index + 1 ? 'selected-radio' : 'display-radio'"
|
|
8
8
|
@click="selectRadio(index + 1, radio)"
|
|
9
9
|
>
|
|
@@ -37,7 +37,7 @@ export default defineComponent({
|
|
|
37
37
|
},
|
|
38
38
|
defaultSelect: {
|
|
39
39
|
type: Number,
|
|
40
|
-
default:
|
|
40
|
+
default: null
|
|
41
41
|
},
|
|
42
42
|
returnValue: {
|
|
43
43
|
type: Boolean,
|
|
@@ -50,7 +50,7 @@ export default defineComponent({
|
|
|
50
50
|
},
|
|
51
51
|
emits: ["changeElement", "update:Selection"],
|
|
52
52
|
setup(props, { emit }) {
|
|
53
|
-
const selectedRadio = ref(
|
|
53
|
+
const selectedRadio = ref(null);
|
|
54
54
|
onMounted(() => {
|
|
55
55
|
if (typeof props.defaultSelect === "number") {
|
|
56
56
|
selectedRadio.value = props.defaultSelect;
|
|
@@ -134,4 +134,8 @@ export default defineComponent({
|
|
|
134
134
|
align-items: flex-start;
|
|
135
135
|
gap: 8px;
|
|
136
136
|
}
|
|
137
|
+
|
|
138
|
+
.radio_item {
|
|
139
|
+
padding: 6px;
|
|
140
|
+
}
|
|
137
141
|
</style>
|
|
@@ -18,7 +18,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
18
18
|
};
|
|
19
19
|
defaultSelect: {
|
|
20
20
|
type: NumberConstructor;
|
|
21
|
-
default:
|
|
21
|
+
default: null;
|
|
22
22
|
};
|
|
23
23
|
returnValue: {
|
|
24
24
|
type: BooleanConstructor;
|
|
@@ -29,7 +29,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
29
29
|
default: string;
|
|
30
30
|
};
|
|
31
31
|
}, {
|
|
32
|
-
selectedRadio:
|
|
32
|
+
selectedRadio: any;
|
|
33
33
|
selectRadio: (index: number, value: string) => void;
|
|
34
34
|
getIconName: (index: number) => "CheckCircleFill" | "Circle";
|
|
35
35
|
getColor: (index: number) => "var(--primary)" | "var(--lavendar-grey)";
|
|
@@ -53,7 +53,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
53
53
|
};
|
|
54
54
|
defaultSelect: {
|
|
55
55
|
type: NumberConstructor;
|
|
56
|
-
default:
|
|
56
|
+
default: null;
|
|
57
57
|
};
|
|
58
58
|
returnValue: {
|
|
59
59
|
type: BooleanConstructor;
|
|
@@ -212,6 +212,20 @@ export default defineComponent({
|
|
|
212
212
|
min-height: 10px;
|
|
213
213
|
}
|
|
214
214
|
|
|
215
|
+
.oip_select_dropdown_selection_container:only-child {
|
|
216
|
+
margin-top: 0px;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.oip_empty_dropdown {
|
|
220
|
+
padding-top: 16px;
|
|
221
|
+
text-align: center;
|
|
222
|
+
font-weight: 400;
|
|
223
|
+
font-size: 14px;
|
|
224
|
+
line-height: 16px;
|
|
225
|
+
font-style: italic;
|
|
226
|
+
color: var(--cool-grey);
|
|
227
|
+
}
|
|
228
|
+
|
|
215
229
|
.oip_select_complex_selection_loop > svg.add {
|
|
216
230
|
fill: var(--accent) !important;
|
|
217
231
|
color: var(--pure-white) !important;
|