@tekkare/auriga 0.2.38 → 0.2.40
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 +15 -10
- package/dist/runtime/components/argAdvancedSearchBar.vue.d.ts +1 -0
- package/dist/runtime/components/argComplexSelect.vue +28 -4
- package/dist/runtime/components/argComplexSelect.vue.d.ts +12 -1
- package/dist/runtime/components/argMultipleSelect.vue +30 -4
- package/dist/runtime/components/argMultipleSelect.vue.d.ts +12 -1
- package/dist/runtime/components/argSearchInput.vue +6 -7
- package/package.json +1 -1
package/dist/module.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="relative">
|
|
3
|
-
<div class="relative">
|
|
2
|
+
<div @click.stop class="relative">
|
|
3
|
+
<div @click.stop class="relative">
|
|
4
4
|
<div
|
|
5
5
|
class="filters_input_search"
|
|
6
6
|
:class="[
|
|
7
7
|
{ filters_shortcuts_open: typing },
|
|
8
8
|
suggOpen && suggestions !== null ? 'no_bottom' : '',
|
|
9
9
|
]"
|
|
10
|
+
@click.stop="openSugg"
|
|
10
11
|
>
|
|
11
12
|
<arg-icon
|
|
12
13
|
name="MagnifyingGlass"
|
|
@@ -36,7 +37,7 @@
|
|
|
36
37
|
@keydown.up="typing ? shortcutSelect('asc') : selectOption(false)"
|
|
37
38
|
@keydown.down="typing ? shortcutSelect('desc') : selectOption(true)"
|
|
38
39
|
autocomplete="off"
|
|
39
|
-
click.stop
|
|
40
|
+
@click.stop="openSugg"
|
|
40
41
|
/>
|
|
41
42
|
|
|
42
43
|
<div
|
|
@@ -342,13 +343,11 @@ export default defineComponent({
|
|
|
342
343
|
typing.value = false;
|
|
343
344
|
if (new_value === "") {
|
|
344
345
|
hoverShortcut.value = "";
|
|
345
|
-
|
|
346
|
+
closeSugg();
|
|
346
347
|
optionIndex.value = 1;
|
|
347
|
-
document.removeEventListener("click", closeSugg);
|
|
348
348
|
} else {
|
|
349
|
-
suggOpen.value = true;
|
|
350
349
|
setTimeout(() => {
|
|
351
|
-
|
|
350
|
+
openSugg();
|
|
352
351
|
}, 100);
|
|
353
352
|
for (let i = 0; i < shortcuts.value.length; i++) {
|
|
354
353
|
if (new_value.startsWith(shortcuts.value[i].symbol)) {
|
|
@@ -358,6 +357,12 @@ export default defineComponent({
|
|
|
358
357
|
}
|
|
359
358
|
optionIndex.value = 1;
|
|
360
359
|
});
|
|
360
|
+
function openSugg() {
|
|
361
|
+
if (value.value.length > 0) {
|
|
362
|
+
suggOpen.value = true;
|
|
363
|
+
document.addEventListener("click", closeSugg);
|
|
364
|
+
}
|
|
365
|
+
}
|
|
361
366
|
function debounce(func, delay) {
|
|
362
367
|
let debounceTimer;
|
|
363
368
|
return function(...args) {
|
|
@@ -713,8 +718,7 @@ export default defineComponent({
|
|
|
713
718
|
}
|
|
714
719
|
function closeSugg() {
|
|
715
720
|
suggOpen.value = false;
|
|
716
|
-
|
|
717
|
-
document.removeEventListener("click", close);
|
|
721
|
+
document.removeEventListener("click", closeSugg);
|
|
718
722
|
}
|
|
719
723
|
return {
|
|
720
724
|
close,
|
|
@@ -759,7 +763,8 @@ export default defineComponent({
|
|
|
759
763
|
changeSearchType,
|
|
760
764
|
notFound,
|
|
761
765
|
loaderText,
|
|
762
|
-
handleChangeType
|
|
766
|
+
handleChangeType,
|
|
767
|
+
openSugg
|
|
763
768
|
};
|
|
764
769
|
}
|
|
765
770
|
});
|
|
@@ -160,6 +160,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
160
160
|
es: string;
|
|
161
161
|
};
|
|
162
162
|
handleChangeType: (searchIndex: number) => void;
|
|
163
|
+
openSugg: () => void;
|
|
163
164
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:Value" | "onClose" | "onTyping")[], "update:Value" | "onClose" | "onTyping", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
164
165
|
placeHolderValue: {
|
|
165
166
|
type: StringConstructor;
|
|
@@ -2,7 +2,15 @@
|
|
|
2
2
|
<div>
|
|
3
3
|
<!-- Simple select -->
|
|
4
4
|
<div class="oip_select_display">
|
|
5
|
-
<p
|
|
5
|
+
<p
|
|
6
|
+
class="oip_filter_label"
|
|
7
|
+
:class="labelInfo ? 'oip_row v-center gap-4' : ''"
|
|
8
|
+
>
|
|
9
|
+
{{ complex_label }}
|
|
10
|
+
<span v-if="labelInfo" @click="openInfo" class="open-info">
|
|
11
|
+
<arg-icon name="Info" size="14" color="var(--medium)"
|
|
12
|
+
/></span>
|
|
13
|
+
</p>
|
|
6
14
|
<arg-simple-label
|
|
7
15
|
:disabled="disabled"
|
|
8
16
|
:show_amount="show_amount"
|
|
@@ -275,9 +283,15 @@ export default defineComponent({
|
|
|
275
283
|
empty_content_msg: { type: String, default: null },
|
|
276
284
|
fuzzySearch: { type: Boolean, default: false },
|
|
277
285
|
fuzzyThreshold: { type: Number, default: 0.5 },
|
|
278
|
-
filterSearch: { type: Boolean, default: true }
|
|
286
|
+
filterSearch: { type: Boolean, default: true },
|
|
287
|
+
labelInfo: { type: Boolean, default: false }
|
|
279
288
|
},
|
|
280
|
-
emits: [
|
|
289
|
+
emits: [
|
|
290
|
+
"changeElement",
|
|
291
|
+
"changeAddInputValue",
|
|
292
|
+
"update:Selection",
|
|
293
|
+
"openInfo"
|
|
294
|
+
],
|
|
281
295
|
setup(props, { emit }) {
|
|
282
296
|
const add_table = ref([]);
|
|
283
297
|
const del_table = ref([]);
|
|
@@ -311,6 +325,9 @@ export default defineComponent({
|
|
|
311
325
|
fr: "Aucune s\xE9lection",
|
|
312
326
|
es: "Ninguna selecci\xF3n"
|
|
313
327
|
};
|
|
328
|
+
function openInfo() {
|
|
329
|
+
emit("openInfo");
|
|
330
|
+
}
|
|
314
331
|
onMounted(() => {
|
|
315
332
|
del_table.value = Object.assign([], [...new Set(props.already_selected)]);
|
|
316
333
|
add_table.value = Object.assign(
|
|
@@ -642,7 +659,8 @@ export default defineComponent({
|
|
|
642
659
|
getCustomText,
|
|
643
660
|
getAddAllText,
|
|
644
661
|
noSelectionMsg,
|
|
645
|
-
getAddText
|
|
662
|
+
getAddText,
|
|
663
|
+
openInfo
|
|
646
664
|
};
|
|
647
665
|
}
|
|
648
666
|
});
|
|
@@ -767,4 +785,10 @@ export default defineComponent({
|
|
|
767
785
|
.full_stretch {
|
|
768
786
|
align-self: stretch;
|
|
769
787
|
}
|
|
788
|
+
.open-info {
|
|
789
|
+
cursor: pointer;
|
|
790
|
+
}
|
|
791
|
+
.open-info:hover svg {
|
|
792
|
+
color: var(--primary) !important;
|
|
793
|
+
}
|
|
770
794
|
</style>
|
|
@@ -132,6 +132,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
132
132
|
type: BooleanConstructor;
|
|
133
133
|
default: boolean;
|
|
134
134
|
};
|
|
135
|
+
labelInfo: {
|
|
136
|
+
type: BooleanConstructor;
|
|
137
|
+
default: boolean;
|
|
138
|
+
};
|
|
135
139
|
}, {
|
|
136
140
|
add_table: import("vue").Ref<any>;
|
|
137
141
|
del_table: import("vue").Ref<any>;
|
|
@@ -186,7 +190,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
186
190
|
fr: string;
|
|
187
191
|
es: string;
|
|
188
192
|
};
|
|
189
|
-
|
|
193
|
+
openInfo: () => void;
|
|
194
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("changeElement" | "changeAddInputValue" | "update:Selection" | "openInfo")[], "changeElement" | "changeAddInputValue" | "update:Selection" | "openInfo", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
190
195
|
element_table: {
|
|
191
196
|
type: {
|
|
192
197
|
(arrayLength: number): string[];
|
|
@@ -320,10 +325,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
320
325
|
type: BooleanConstructor;
|
|
321
326
|
default: boolean;
|
|
322
327
|
};
|
|
328
|
+
labelInfo: {
|
|
329
|
+
type: BooleanConstructor;
|
|
330
|
+
default: boolean;
|
|
331
|
+
};
|
|
323
332
|
}>> & {
|
|
324
333
|
onChangeElement?: ((...args: any[]) => any) | undefined;
|
|
325
334
|
onChangeAddInputValue?: ((...args: any[]) => any) | undefined;
|
|
326
335
|
"onUpdate:Selection"?: ((...args: any[]) => any) | undefined;
|
|
336
|
+
onOpenInfo?: ((...args: any[]) => any) | undefined;
|
|
327
337
|
}, {
|
|
328
338
|
lang: string;
|
|
329
339
|
fuzzyThreshold: number;
|
|
@@ -345,5 +355,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
345
355
|
empty_content_msg: string;
|
|
346
356
|
fuzzySearch: boolean;
|
|
347
357
|
filterSearch: boolean;
|
|
358
|
+
labelInfo: boolean;
|
|
348
359
|
}, {}>;
|
|
349
360
|
export default _default;
|
|
@@ -2,7 +2,15 @@
|
|
|
2
2
|
<div>
|
|
3
3
|
<!-- Simple select -->
|
|
4
4
|
<div class="oip_select_display">
|
|
5
|
-
<p
|
|
5
|
+
<p
|
|
6
|
+
class="oip_filter_label"
|
|
7
|
+
:class="labelInfo ? 'oip_row v-center gap-4' : ''"
|
|
8
|
+
>
|
|
9
|
+
{{ multiple_label }}
|
|
10
|
+
<span v-if="labelInfo" @click="openInfo" class="open-info">
|
|
11
|
+
<arg-icon name="Info" size="14" color="var(--medium)"
|
|
12
|
+
/></span>
|
|
13
|
+
</p>
|
|
6
14
|
<arg-simple-label
|
|
7
15
|
:disabled="disabled"
|
|
8
16
|
:show_amount="show_amount"
|
|
@@ -353,9 +361,16 @@ export default defineComponent({
|
|
|
353
361
|
empty_content_msg: { type: String, default: null },
|
|
354
362
|
fuzzySearch: { type: Boolean, default: false },
|
|
355
363
|
fuzzyThreshold: { type: Number, default: 0.5 },
|
|
356
|
-
filterSearch: { type: Boolean, default: true }
|
|
364
|
+
filterSearch: { type: Boolean, default: true },
|
|
365
|
+
labelInfo: { type: Boolean, default: false }
|
|
357
366
|
},
|
|
358
|
-
emits: [
|
|
367
|
+
emits: [
|
|
368
|
+
"changeElement",
|
|
369
|
+
"update:Selection",
|
|
370
|
+
"changeInputValue",
|
|
371
|
+
"onClose",
|
|
372
|
+
"openInfo"
|
|
373
|
+
],
|
|
359
374
|
setup(props, { emit }) {
|
|
360
375
|
const selected_items = ref([]);
|
|
361
376
|
const selected_nested = ref([]);
|
|
@@ -365,6 +380,9 @@ export default defineComponent({
|
|
|
365
380
|
const selectedCats = ref([]);
|
|
366
381
|
const valueFrom = ref([]);
|
|
367
382
|
const element_table_copy = ref([]);
|
|
383
|
+
function openInfo() {
|
|
384
|
+
emit("openInfo");
|
|
385
|
+
}
|
|
368
386
|
watch(
|
|
369
387
|
() => props.element_table,
|
|
370
388
|
(new_element_table) => {
|
|
@@ -843,7 +861,8 @@ export default defineComponent({
|
|
|
843
861
|
getLoaderText,
|
|
844
862
|
getPlaceholder,
|
|
845
863
|
getEmptyContentMsg,
|
|
846
|
-
element_table_copy
|
|
864
|
+
element_table_copy,
|
|
865
|
+
openInfo
|
|
847
866
|
};
|
|
848
867
|
}
|
|
849
868
|
});
|
|
@@ -929,4 +948,11 @@ export default defineComponent({
|
|
|
929
948
|
.oip_crop.small {
|
|
930
949
|
width: 98% !important;
|
|
931
950
|
}
|
|
951
|
+
|
|
952
|
+
.open-info {
|
|
953
|
+
cursor: pointer;
|
|
954
|
+
}
|
|
955
|
+
.open-info:hover svg {
|
|
956
|
+
color: var(--primary) !important;
|
|
957
|
+
}
|
|
932
958
|
</style>
|
|
@@ -120,6 +120,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
120
120
|
type: BooleanConstructor;
|
|
121
121
|
default: boolean;
|
|
122
122
|
};
|
|
123
|
+
labelInfo: {
|
|
124
|
+
type: BooleanConstructor;
|
|
125
|
+
default: boolean;
|
|
126
|
+
};
|
|
123
127
|
}, {
|
|
124
128
|
getNestedLength: import("vue").ComputedRef<number>;
|
|
125
129
|
del_all: () => void;
|
|
@@ -154,7 +158,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
154
158
|
getPlaceholder: import("vue").ComputedRef<string>;
|
|
155
159
|
getEmptyContentMsg: import("vue").ComputedRef<string>;
|
|
156
160
|
element_table_copy: import("vue").Ref<any[]>;
|
|
157
|
-
|
|
161
|
+
openInfo: () => void;
|
|
162
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onClose" | "changeElement" | "update:Selection" | "openInfo" | "changeInputValue")[], "onClose" | "changeElement" | "update:Selection" | "openInfo" | "changeInputValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
158
163
|
element_table: {
|
|
159
164
|
type: {
|
|
160
165
|
(arrayLength: number): (Object | String)[];
|
|
@@ -276,10 +281,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
276
281
|
type: BooleanConstructor;
|
|
277
282
|
default: boolean;
|
|
278
283
|
};
|
|
284
|
+
labelInfo: {
|
|
285
|
+
type: BooleanConstructor;
|
|
286
|
+
default: boolean;
|
|
287
|
+
};
|
|
279
288
|
}>> & {
|
|
280
289
|
onOnClose?: ((...args: any[]) => any) | undefined;
|
|
281
290
|
onChangeElement?: ((...args: any[]) => any) | undefined;
|
|
282
291
|
"onUpdate:Selection"?: ((...args: any[]) => any) | undefined;
|
|
292
|
+
onOpenInfo?: ((...args: any[]) => any) | undefined;
|
|
283
293
|
onChangeInputValue?: ((...args: any[]) => any) | undefined;
|
|
284
294
|
}, {
|
|
285
295
|
lang: string;
|
|
@@ -293,6 +303,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
293
303
|
empty_content_msg: string;
|
|
294
304
|
fuzzySearch: boolean;
|
|
295
305
|
filterSearch: boolean;
|
|
306
|
+
labelInfo: boolean;
|
|
296
307
|
filter_placeholder: string;
|
|
297
308
|
default_select: String[];
|
|
298
309
|
nested: boolean;
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
@keydown.down="selectOption(true)"
|
|
22
22
|
@keydown.up="selectOption(false)"
|
|
23
23
|
autocomplete="off"
|
|
24
|
+
@click.stop="openSugg"
|
|
24
25
|
/>
|
|
25
26
|
</div>
|
|
26
27
|
<div
|
|
@@ -154,18 +155,14 @@ export default defineComponent({
|
|
|
154
155
|
() => {
|
|
155
156
|
if (searchValue.value.length > 0 && props.suggestions !== null) {
|
|
156
157
|
if (!closeOnEnter.value) {
|
|
157
|
-
suggOpen.value = true;
|
|
158
158
|
setTimeout(() => {
|
|
159
|
-
|
|
159
|
+
openSugg();
|
|
160
160
|
});
|
|
161
161
|
} else {
|
|
162
|
-
|
|
163
|
-
document.removeEventListener("click", closeSugg);
|
|
164
|
-
closeOnEnter.value = false;
|
|
162
|
+
closeSugg();
|
|
165
163
|
}
|
|
166
164
|
} else {
|
|
167
|
-
|
|
168
|
-
document.removeEventListener("click", closeSugg);
|
|
165
|
+
closeSugg();
|
|
169
166
|
}
|
|
170
167
|
optionIndex.value = 1;
|
|
171
168
|
}
|
|
@@ -211,10 +208,12 @@ export default defineComponent({
|
|
|
211
208
|
};
|
|
212
209
|
function closeSugg() {
|
|
213
210
|
suggOpen.value = false;
|
|
211
|
+
document.removeEventListener("click", closeSugg);
|
|
214
212
|
}
|
|
215
213
|
function openSugg() {
|
|
216
214
|
if (searchValue.value.length > 0) {
|
|
217
215
|
suggOpen.value = true;
|
|
216
|
+
document.addEventListener("click", closeSugg);
|
|
218
217
|
}
|
|
219
218
|
}
|
|
220
219
|
function debounce(func, delay) {
|