@tekkare/auriga 0.1.64 → 0.1.66
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 -1
- package/dist/runtime/components/argChart.vue +8 -1
- package/dist/runtime/components/argComplexSelect.vue +21 -6
- package/dist/runtime/components/argComplexSelect.vue.d.ts +13 -16
- package/dist/runtime/components/argDropdownSelect.vue +18 -3
- package/dist/runtime/components/argFilterCard.vue +3 -1
- package/dist/runtime/components/argHomeSelectedBlock.vue +16 -3
- package/dist/runtime/components/argHomeSelectedBlock.vue.d.ts +11 -0
- package/dist/runtime/components/argMultipleSelect.vue +36 -7
- package/dist/runtime/components/argSimpleLabel.vue +1 -1
- package/package.json +1 -2
package/dist/module.json
CHANGED
|
@@ -261,8 +261,15 @@ export default defineComponent({
|
|
|
261
261
|
formatter(value, { series, seriesIndex, dataPointIndex, w }) {
|
|
262
262
|
return value;
|
|
263
263
|
}
|
|
264
|
-
}
|
|
264
|
+
},
|
|
265
|
+
shared: false
|
|
265
266
|
};
|
|
267
|
+
props.options["tooltip"].style = { fontFamily: "Figtree" };
|
|
268
|
+
if (props.options.tooltip.shared !== void 0 && props.options.tooltip.shared === false) {
|
|
269
|
+
Object.assign(props.options["xaxis"], {
|
|
270
|
+
tooltip: { enabled: false }
|
|
271
|
+
});
|
|
272
|
+
}
|
|
266
273
|
} else if (props.type === "bar-column" || props.type === "bar") {
|
|
267
274
|
let predefinedColors = false;
|
|
268
275
|
if (props.colors) {
|
|
@@ -273,10 +273,10 @@ export default defineComponent({
|
|
|
273
273
|
},
|
|
274
274
|
emits: ["changeElement", "changeAddInputValue", "update:Selection"],
|
|
275
275
|
setup(props, { emit }) {
|
|
276
|
-
const add_table = ref([
|
|
277
|
-
const del_table = ref([
|
|
276
|
+
const add_table = ref([]);
|
|
277
|
+
const del_table = ref([]);
|
|
278
278
|
const isDisplay = ref(false);
|
|
279
|
-
const save_table = ref(
|
|
279
|
+
const save_table = ref([]);
|
|
280
280
|
const smart_selection_selected = ref();
|
|
281
281
|
const searchNameAdd = ref("");
|
|
282
282
|
const searchNameDel = ref("");
|
|
@@ -392,11 +392,26 @@ export default defineComponent({
|
|
|
392
392
|
}
|
|
393
393
|
return filterFill;
|
|
394
394
|
});
|
|
395
|
+
function checkIfContainsValue(element, searchArray) {
|
|
396
|
+
let hasValue = false;
|
|
397
|
+
if (searchArray.every((l) => element.includes(l))) {
|
|
398
|
+
hasValue = true;
|
|
399
|
+
}
|
|
400
|
+
return hasValue;
|
|
401
|
+
}
|
|
395
402
|
const filterNameAdd = computed(() => {
|
|
396
403
|
if (searchNameAdd.value !== null) {
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
404
|
+
if (searchNameAdd.value.includes(" ")) {
|
|
405
|
+
return add_table.value.filter(
|
|
406
|
+
(element) => checkIfContainsValue(
|
|
407
|
+
element.toLowerCase(),
|
|
408
|
+
searchNameAdd.value.toLowerCase().split(" ")
|
|
409
|
+
)
|
|
410
|
+
).slice(0, props.max_result);
|
|
411
|
+
} else
|
|
412
|
+
return add_table.value.filter(
|
|
413
|
+
(element) => element.toLowerCase().includes(searchNameAdd.value.toLowerCase())
|
|
414
|
+
).slice(0, props.max_result);
|
|
400
415
|
} else
|
|
401
416
|
return add_table.value.slice(0, props.max_result);
|
|
402
417
|
});
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{
|
|
2
2
|
element_table: {
|
|
3
3
|
type: {
|
|
4
|
-
(arrayLength: number):
|
|
5
|
-
(...items:
|
|
6
|
-
new (arrayLength: number):
|
|
7
|
-
new (...items:
|
|
4
|
+
(arrayLength: number): string[];
|
|
5
|
+
(...items: string[]): string[];
|
|
6
|
+
new (arrayLength: number): string[];
|
|
7
|
+
new (...items: string[]): string[];
|
|
8
8
|
isArray(arg: any): arg is any[];
|
|
9
9
|
readonly prototype: any[];
|
|
10
10
|
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
@@ -121,21 +121,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
121
121
|
default: null;
|
|
122
122
|
};
|
|
123
123
|
}, {
|
|
124
|
-
add_table:
|
|
125
|
-
del_table:
|
|
124
|
+
add_table: any;
|
|
125
|
+
del_table: any;
|
|
126
126
|
isDisplay: import("vue").Ref<boolean>;
|
|
127
|
-
save_table:
|
|
128
|
-
add: string[];
|
|
129
|
-
del: string[];
|
|
130
|
-
}>;
|
|
127
|
+
save_table: any;
|
|
131
128
|
smart_selection_selected: import("vue").Ref<any>;
|
|
132
129
|
searchNameAdd: import("vue").Ref<string>;
|
|
133
130
|
searchNameDel: import("vue").Ref<string>;
|
|
134
131
|
uid: import("vue").Ref<number>;
|
|
135
132
|
hoverAdd: import("vue").Ref<null>;
|
|
136
133
|
hoverRemove: import("vue").Ref<null>;
|
|
137
|
-
filterNameAdd: import("vue").ComputedRef<
|
|
138
|
-
filterNameDel: import("vue").ComputedRef<
|
|
134
|
+
filterNameAdd: import("vue").ComputedRef<any>;
|
|
135
|
+
filterNameDel: import("vue").ComputedRef<any>;
|
|
139
136
|
changeInput: () => void;
|
|
140
137
|
isInViewport: (el: HTMLElement) => boolean;
|
|
141
138
|
changeDisplay: () => void;
|
|
@@ -159,10 +156,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
159
156
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("changeElement" | "changeAddInputValue" | "update:Selection")[], "changeElement" | "changeAddInputValue" | "update:Selection", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
160
157
|
element_table: {
|
|
161
158
|
type: {
|
|
162
|
-
(arrayLength: number):
|
|
163
|
-
(...items:
|
|
164
|
-
new (arrayLength: number):
|
|
165
|
-
new (...items:
|
|
159
|
+
(arrayLength: number): string[];
|
|
160
|
+
(...items: string[]): string[];
|
|
161
|
+
new (arrayLength: number): string[];
|
|
162
|
+
new (...items: string[]): string[];
|
|
166
163
|
isArray(arg: any): arg is any[];
|
|
167
164
|
readonly prototype: any[];
|
|
168
165
|
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
@@ -266,11 +266,26 @@ export default defineComponent({
|
|
|
266
266
|
isDisplay.value = false;
|
|
267
267
|
document?.removeEventListener("click", closeDropdown);
|
|
268
268
|
}
|
|
269
|
+
function checkIfContainsValue(element, searchArray) {
|
|
270
|
+
let hasValue = false;
|
|
271
|
+
if (searchArray.every((l) => element.includes(l))) {
|
|
272
|
+
hasValue = true;
|
|
273
|
+
}
|
|
274
|
+
return hasValue;
|
|
275
|
+
}
|
|
269
276
|
const filterName = computed(() => {
|
|
270
277
|
if (searchName.value !== null) {
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
278
|
+
if (searchName.value.includes(" ")) {
|
|
279
|
+
return table_values.value.filter(
|
|
280
|
+
(element) => checkIfContainsValue(
|
|
281
|
+
element.toLowerCase(),
|
|
282
|
+
searchName.value.toLowerCase().split(" ")
|
|
283
|
+
)
|
|
284
|
+
);
|
|
285
|
+
} else
|
|
286
|
+
return table_values.value.filter(
|
|
287
|
+
(element) => element.toLowerCase().includes(searchName.value.toLowerCase())
|
|
288
|
+
);
|
|
274
289
|
}
|
|
275
290
|
return table_values.value;
|
|
276
291
|
});
|
|
@@ -5,9 +5,15 @@
|
|
|
5
5
|
<arg-icon name="HandPointing" color="var(--cool-grey)" size="32" />
|
|
6
6
|
</div>
|
|
7
7
|
<div class="theme_select_message">
|
|
8
|
-
<p class="theme_title">
|
|
8
|
+
<p class="theme_title">
|
|
9
|
+
{{ lang === "en" ? "Select a theme" : "Choissiez un thème" }}
|
|
10
|
+
</p>
|
|
9
11
|
<p class="theme_descr">
|
|
10
|
-
|
|
12
|
+
{{
|
|
13
|
+
lang === "en"
|
|
14
|
+
? "Select a theme to display the analyses available within it."
|
|
15
|
+
: "Choissiez un thème pour afficher les analyses disponibles"
|
|
16
|
+
}}
|
|
11
17
|
</p>
|
|
12
18
|
</div>
|
|
13
19
|
</div>
|
|
@@ -44,7 +50,7 @@
|
|
|
44
50
|
sidebar-open
|
|
45
51
|
:label="item.linkName"
|
|
46
52
|
:to="item.linkUrl"
|
|
47
|
-
:icon="item.
|
|
53
|
+
:icon="item.linkIcon"
|
|
48
54
|
/>
|
|
49
55
|
</div>
|
|
50
56
|
</div>
|
|
@@ -67,6 +73,13 @@ export default defineComponent({
|
|
|
67
73
|
selected: {
|
|
68
74
|
type: Object,
|
|
69
75
|
default: null
|
|
76
|
+
},
|
|
77
|
+
lang: {
|
|
78
|
+
type: String,
|
|
79
|
+
default: "en",
|
|
80
|
+
validator: (value) => {
|
|
81
|
+
return ["en", "fr"].includes(value);
|
|
82
|
+
}
|
|
70
83
|
}
|
|
71
84
|
}
|
|
72
85
|
});
|
|
@@ -3,12 +3,23 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3
3
|
type: ObjectConstructor;
|
|
4
4
|
default: null;
|
|
5
5
|
};
|
|
6
|
+
lang: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
default: string;
|
|
9
|
+
validator: (value: string) => boolean;
|
|
10
|
+
};
|
|
6
11
|
}, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
7
12
|
selected: {
|
|
8
13
|
type: ObjectConstructor;
|
|
9
14
|
default: null;
|
|
10
15
|
};
|
|
16
|
+
lang: {
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
default: string;
|
|
19
|
+
validator: (value: string) => boolean;
|
|
20
|
+
};
|
|
11
21
|
}>>, {
|
|
22
|
+
lang: string;
|
|
12
23
|
selected: Record<string, any>;
|
|
13
24
|
}, {}>;
|
|
14
25
|
export default _default;
|
|
@@ -49,7 +49,10 @@
|
|
|
49
49
|
:text="getLoaderText[0]"
|
|
50
50
|
:sub-text="getLoaderText[1]"
|
|
51
51
|
/>
|
|
52
|
-
<div
|
|
52
|
+
<div
|
|
53
|
+
class="oip_empty_dropdown"
|
|
54
|
+
v-else-if="nested ? filterNested.length == 0 : filterName.length === 0"
|
|
55
|
+
>
|
|
53
56
|
<p>{{ getEmptyContentMsg }}</p>
|
|
54
57
|
</div>
|
|
55
58
|
<!-- List -->
|
|
@@ -437,12 +440,27 @@ export default defineComponent({
|
|
|
437
440
|
return element_table_copy.value;
|
|
438
441
|
}
|
|
439
442
|
});
|
|
443
|
+
function checkIfContainsValue(element, searchArray) {
|
|
444
|
+
let hasValue = false;
|
|
445
|
+
if (searchArray.every((l) => element.includes(l))) {
|
|
446
|
+
hasValue = true;
|
|
447
|
+
}
|
|
448
|
+
return hasValue;
|
|
449
|
+
}
|
|
440
450
|
const filterName = computed(() => {
|
|
441
451
|
if (!props.multiple_columns) {
|
|
442
452
|
if (searchName.value !== null) {
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
453
|
+
if (searchName.value.includes(" ")) {
|
|
454
|
+
return element_table_copy.value.filter(
|
|
455
|
+
(element) => checkIfContainsValue(
|
|
456
|
+
element.toLowerCase(),
|
|
457
|
+
searchName.value.toLowerCase().split(" ")
|
|
458
|
+
)
|
|
459
|
+
);
|
|
460
|
+
} else
|
|
461
|
+
return element_table_copy.value.filter(
|
|
462
|
+
(element) => element.toLowerCase().includes(searchName.value.toLowerCase())
|
|
463
|
+
);
|
|
446
464
|
} else
|
|
447
465
|
return props.element_table;
|
|
448
466
|
} else {
|
|
@@ -472,12 +490,23 @@ export default defineComponent({
|
|
|
472
490
|
}
|
|
473
491
|
}
|
|
474
492
|
});
|
|
493
|
+
function checkNestedContainsValues(element, search) {
|
|
494
|
+
let hasValue = false;
|
|
495
|
+
for (let i = 0; i < element.values.length; i++) {
|
|
496
|
+
if (search.includes(" ")) {
|
|
497
|
+
if (search.toLowerCase().split(" ").every((l) => element.values[i].toLowerCase().includes(l))) {
|
|
498
|
+
hasValue = true;
|
|
499
|
+
}
|
|
500
|
+
} else if (element.values[i].toLowerCase().includes(search.toLowerCase())) {
|
|
501
|
+
hasValue = true;
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
return hasValue;
|
|
505
|
+
}
|
|
475
506
|
const filterNested = computed(() => {
|
|
476
507
|
if (searchName.value !== null || searchName.value && searchName.value !== "") {
|
|
477
508
|
return element_table_copy.value.filter(
|
|
478
|
-
(element) => element.
|
|
479
|
-
searchName.value || searchName.value.toLowerCase()
|
|
480
|
-
)
|
|
509
|
+
(element) => checkNestedContainsValues(element, searchName.value)
|
|
481
510
|
);
|
|
482
511
|
} else
|
|
483
512
|
return props.element_table;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tekkare/auriga",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.66",
|
|
4
4
|
"description": "Aurgia is a UI kit developped by Tekkare",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -45,7 +45,6 @@
|
|
|
45
45
|
"changelogen": "^0.5.5",
|
|
46
46
|
"eslint": "^8.49.0",
|
|
47
47
|
"nuxt": "^3.7.3",
|
|
48
|
-
"storybook-addon-nuxt": "^1.3.3",
|
|
49
48
|
"vitest": "^0.33.0"
|
|
50
49
|
},
|
|
51
50
|
"author": "Tekkare"
|