@tekkare/auriga 0.1.8 → 0.1.10
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/allIcons.vue +1112 -0
- package/dist/runtime/components/allIcons.vue.d.ts +6 -0
- package/dist/runtime/components/argActions.vue +150 -0
- package/dist/runtime/components/argActions.vue.d.ts +43 -0
- package/dist/runtime/components/argAdvancedSearchBar.vue.d.ts +2 -2
- package/dist/runtime/components/argChart.vue +38 -4
- package/dist/runtime/components/argChartTableCard.vue +30 -0
- package/dist/runtime/components/argChartTableCard.vue.d.ts +2 -0
- package/dist/runtime/components/argCheckbox.vue +46 -31
- package/dist/runtime/components/argCheckbox.vue.d.ts +20 -3
- package/dist/runtime/components/argCircleAmount.vue +37 -0
- package/dist/runtime/components/argCircleAmount.vue.d.ts +12 -0
- package/dist/runtime/components/argDataLoader.vue +13 -3
- package/dist/runtime/components/argDataLoader.vue.d.ts +22 -1
- package/dist/runtime/components/argDropdownSelect.vue +5 -19
- package/dist/runtime/components/argEmoji.vue +34 -0
- package/dist/runtime/components/argEmoji.vue.d.ts +29 -0
- package/dist/runtime/components/argFileBtn.vue +10 -2
- package/dist/runtime/components/argFileBtn.vue.d.ts +11 -2
- package/dist/runtime/components/argFilterCard.vue +37 -9
- package/dist/runtime/components/argFilterCard.vue.d.ts +30 -1
- package/dist/runtime/components/argFilterTabs.vue +109 -0
- package/dist/runtime/components/argFilterTabs.vue.d.ts +64 -0
- package/dist/runtime/components/argFooter.vue +21 -20
- package/dist/runtime/components/argHeader.vue +22 -8
- package/dist/runtime/components/argHeader.vue.d.ts +18 -0
- package/dist/runtime/components/argInfoBar.vue +175 -0
- package/dist/runtime/components/argInfoBar.vue.d.ts +35 -0
- package/dist/runtime/components/argInfoSection.vue +265 -0
- package/dist/runtime/components/argInfoSection.vue.d.ts +55 -0
- package/dist/runtime/components/argMainLayout.vue +46 -21
- package/dist/runtime/components/argMainLayout.vue.d.ts +13 -1
- package/dist/runtime/components/argMenuItem.vue +44 -27
- package/dist/runtime/components/argMenuItem.vue.d.ts +11 -1
- package/dist/runtime/components/argMenuLink.vue +44 -20
- package/dist/runtime/components/argMenuLink.vue.d.ts +9 -0
- package/dist/runtime/components/argMultipleChoice.vue +26 -4
- package/dist/runtime/components/argMultipleSelect.vue +797 -0
- package/dist/runtime/components/argMultipleSelect.vue.d.ts +151 -0
- package/dist/runtime/components/argNavBar.vue +26 -12
- package/dist/runtime/components/argNavBar.vue.d.ts +11 -2
- package/dist/runtime/components/argRadioButtons.vue +135 -0
- package/dist/runtime/components/argRadioButtons.vue.d.ts +48 -0
- package/dist/runtime/components/argScopeCriteria.vue +91 -0
- package/dist/runtime/components/argScopeCriteria.vue.d.ts +35 -0
- package/dist/runtime/components/argScopeHeader.vue +90 -0
- package/dist/runtime/components/argScopeHeader.vue.d.ts +33 -0
- package/dist/runtime/components/argScopeLayout.vue +61 -0
- package/dist/runtime/components/argScopeLayout.vue.d.ts +14 -0
- package/dist/runtime/components/argSidebar.vue +97 -14
- package/dist/runtime/components/argSidebar.vue.d.ts +17 -2
- package/dist/runtime/components/argSimpleLabel.vue +1 -1
- package/dist/runtime/components/argStyle.vue +100 -67
- package/dist/runtime/components/argSubMenu.vue +79 -37
- package/dist/runtime/components/argSubMenu.vue.d.ts +9 -0
- package/dist/runtime/components/argTable.vue +14 -0
- package/dist/runtime/components/argTags.vue +1 -1
- package/dist/runtime/components/argTipsBox.vue +153 -0
- package/dist/runtime/components/argTipsBox.vue.d.ts +37 -0
- package/package.json +2 -1
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
<NuxtLink :to="to" class="auriga_menu_item" activeClass="is-active">
|
|
3
|
+
<arg-tooltip
|
|
4
|
+
:tooltip-text="label"
|
|
5
|
+
:disable="sidebarOpen"
|
|
6
|
+
dir="right"
|
|
7
|
+
:class="['tooltip_display', sidebarOpen ? '' : 'menu_tooltip_icon']"
|
|
8
|
+
>
|
|
9
|
+
<arg-icon :name="icon" v-if="icon" size="20" />
|
|
10
|
+
</arg-tooltip>
|
|
11
|
+
<arg-flag :iso="countryIso" v-if="countryIso" emoji height="14" />
|
|
12
|
+
<span v-show="sidebarOpen">{{ label }}</span>
|
|
13
|
+
</NuxtLink>
|
|
7
14
|
</template>
|
|
8
15
|
<script>
|
|
9
16
|
import argIcon from "./argIcon.vue";
|
|
@@ -28,6 +35,10 @@ export default defineComponent({
|
|
|
28
35
|
return true;
|
|
29
36
|
}
|
|
30
37
|
},
|
|
38
|
+
sidebarOpen: {
|
|
39
|
+
type: Boolean,
|
|
40
|
+
default: true
|
|
41
|
+
},
|
|
31
42
|
countryIso: {
|
|
32
43
|
type: String,
|
|
33
44
|
validator: function(value) {
|
|
@@ -43,31 +54,37 @@ export default defineComponent({
|
|
|
43
54
|
});
|
|
44
55
|
</script>
|
|
45
56
|
<style scoped>
|
|
46
|
-
.auriga_menu_item{
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
.auriga_menu_item {
|
|
58
|
+
display: flex;
|
|
59
|
+
padding: 8px;
|
|
60
|
+
align-items: center;
|
|
61
|
+
gap: 8px;
|
|
62
|
+
align-self: stretch;
|
|
63
|
+
border-radius: 4px;
|
|
64
|
+
font-size: 14px;
|
|
65
|
+
font-style: normal;
|
|
66
|
+
font-weight: 400;
|
|
67
|
+
line-height: 160%;
|
|
68
|
+
color: var(--independence);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.auriga_menu_item svg {
|
|
72
|
+
color: var(--cool-grey) !important;
|
|
73
|
+
}
|
|
74
|
+
.auriga_menu_item.is-active svg,
|
|
75
|
+
.auriga_menu_item:hover:not(.is-active) svg {
|
|
76
|
+
color: var(--primary, #2176ff) !important;
|
|
59
77
|
}
|
|
60
|
-
.auriga_menu_item
|
|
61
|
-
|
|
78
|
+
.auriga_menu_item.is-active {
|
|
79
|
+
background: rgba(33, 118, 255, 0.1) !important;
|
|
62
80
|
}
|
|
63
|
-
.auriga_menu_item.is-active{
|
|
64
|
-
|
|
65
|
-
color: #FFF;
|
|
81
|
+
.auriga_menu_item:hover:not(.is-active) {
|
|
82
|
+
background: var(--base-dividers, #ececf2);
|
|
66
83
|
}
|
|
67
|
-
.
|
|
68
|
-
|
|
84
|
+
.menu_tooltip_icon {
|
|
85
|
+
flex: 1 1 100%;
|
|
69
86
|
}
|
|
70
|
-
.
|
|
71
|
-
|
|
87
|
+
.tooltip_display {
|
|
88
|
+
display: flex !important;
|
|
72
89
|
}
|
|
73
90
|
</style>
|
|
@@ -7,6 +7,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
7
7
|
type: StringConstructor;
|
|
8
8
|
validator: (this: any, value: string | undefined) => boolean;
|
|
9
9
|
};
|
|
10
|
+
sidebarOpen: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
default: boolean;
|
|
13
|
+
};
|
|
10
14
|
countryIso: {
|
|
11
15
|
type: StringConstructor;
|
|
12
16
|
validator: (this: any, value: string | undefined) => boolean;
|
|
@@ -24,6 +28,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
24
28
|
type: StringConstructor;
|
|
25
29
|
validator: (this: any, value: string | undefined) => boolean;
|
|
26
30
|
};
|
|
31
|
+
sidebarOpen: {
|
|
32
|
+
type: BooleanConstructor;
|
|
33
|
+
default: boolean;
|
|
34
|
+
};
|
|
27
35
|
countryIso: {
|
|
28
36
|
type: StringConstructor;
|
|
29
37
|
validator: (this: any, value: string | undefined) => boolean;
|
|
@@ -32,5 +40,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
32
40
|
type: StringConstructor;
|
|
33
41
|
required: true;
|
|
34
42
|
};
|
|
35
|
-
}>>, {
|
|
43
|
+
}>>, {
|
|
44
|
+
sidebarOpen: boolean;
|
|
45
|
+
}, {}>;
|
|
36
46
|
export default _default;
|
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
<nuxt-link :to="to" class="arg_menu_link">
|
|
3
|
+
<arg-tooltip
|
|
4
|
+
:tooltip-text="label"
|
|
5
|
+
:disable="sidebarOpen"
|
|
6
|
+
dir="right"
|
|
7
|
+
:class="['tooltip_display', sidebarOpen ? '' : 'link_menu_tooltip_icon']"
|
|
8
|
+
>
|
|
9
|
+
<arg-icon :name="icon" color="var(--cool-grey)" size="20" />
|
|
10
|
+
</arg-tooltip>
|
|
11
|
+
<span v-show="sidebarOpen">{{ label }}</span>
|
|
12
|
+
</nuxt-link>
|
|
6
13
|
</template>
|
|
7
14
|
<script>
|
|
8
15
|
import {
|
|
@@ -16,24 +23,41 @@ export default defineComponent({
|
|
|
16
23
|
props: {
|
|
17
24
|
icon: { type: String, required: true },
|
|
18
25
|
label: { type: String, required: true },
|
|
19
|
-
to: { type: String, required: true, default: "/" }
|
|
26
|
+
to: { type: String, required: true, default: "/" },
|
|
27
|
+
sidebarOpen: { type: Boolean, default: true }
|
|
20
28
|
}
|
|
21
29
|
});
|
|
22
30
|
</script>
|
|
23
31
|
<style>
|
|
24
|
-
.arg_menu_link{
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
32
|
+
.arg_menu_link {
|
|
33
|
+
display: flex;
|
|
34
|
+
padding: 6px;
|
|
35
|
+
align-items: center;
|
|
36
|
+
gap: 6px;
|
|
37
|
+
align-self: stretch;
|
|
38
|
+
color: var(--independence);
|
|
39
|
+
font-size: 14px;
|
|
40
|
+
font-style: normal;
|
|
41
|
+
font-weight: 400;
|
|
42
|
+
line-height: 160%;
|
|
43
|
+
text-transform: capitalize;
|
|
44
|
+
cursor: pointer;
|
|
45
|
+
border-radius: 4px;
|
|
46
|
+
margin: 8px 0px;
|
|
38
47
|
}
|
|
39
|
-
|
|
48
|
+
|
|
49
|
+
.arg_menu_link:hover svg {
|
|
50
|
+
color: var(--primary) !important;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.arg_menu_link:hover {
|
|
54
|
+
background: var(--base-dividers, #ececf2);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.link_menu_tooltip_icon {
|
|
58
|
+
flex: 1 1 100%;
|
|
59
|
+
}
|
|
60
|
+
.tooltip_display {
|
|
61
|
+
display: flex !important;
|
|
62
|
+
}
|
|
63
|
+
</style>
|
|
@@ -12,6 +12,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
12
12
|
required: true;
|
|
13
13
|
default: string;
|
|
14
14
|
};
|
|
15
|
+
sidebarOpen: {
|
|
16
|
+
type: BooleanConstructor;
|
|
17
|
+
default: boolean;
|
|
18
|
+
};
|
|
15
19
|
}, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
16
20
|
icon: {
|
|
17
21
|
type: StringConstructor;
|
|
@@ -26,7 +30,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
26
30
|
required: true;
|
|
27
31
|
default: string;
|
|
28
32
|
};
|
|
33
|
+
sidebarOpen: {
|
|
34
|
+
type: BooleanConstructor;
|
|
35
|
+
default: boolean;
|
|
36
|
+
};
|
|
29
37
|
}>>, {
|
|
38
|
+
sidebarOpen: boolean;
|
|
30
39
|
to: string;
|
|
31
40
|
}, {}>;
|
|
32
41
|
export default _default;
|
|
@@ -21,7 +21,8 @@
|
|
|
21
21
|
import argIcon from "./argIcon.vue";
|
|
22
22
|
import {
|
|
23
23
|
ref,
|
|
24
|
-
defineComponent
|
|
24
|
+
defineComponent,
|
|
25
|
+
onBeforeMount
|
|
25
26
|
} from "vue";
|
|
26
27
|
export default defineComponent({
|
|
27
28
|
name: "argMultipleChoice",
|
|
@@ -41,15 +42,36 @@ export default defineComponent({
|
|
|
41
42
|
},
|
|
42
43
|
return_value: {
|
|
43
44
|
type: Boolean,
|
|
44
|
-
default:
|
|
45
|
+
default: true
|
|
45
46
|
}
|
|
46
47
|
},
|
|
47
48
|
emits: ["changeElement", "update:Selection"],
|
|
48
49
|
setup(props, { emit }) {
|
|
49
50
|
const intArray = [];
|
|
50
51
|
const stringArray = [];
|
|
51
|
-
|
|
52
|
-
|
|
52
|
+
const selectedInts = ref(intArray);
|
|
53
|
+
const selectedString = ref(stringArray);
|
|
54
|
+
onBeforeMount(() => {
|
|
55
|
+
if (props.default_select.length > 0) {
|
|
56
|
+
for (let i = 0; i < props.default_select.length; i++) {
|
|
57
|
+
if (props.return_value) {
|
|
58
|
+
selectedString.value.push(
|
|
59
|
+
props.element_table[props.default_select[i]]
|
|
60
|
+
);
|
|
61
|
+
} else {
|
|
62
|
+
selectedInts.value.push(props.default_select[i]);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
emit(
|
|
66
|
+
"changeElement",
|
|
67
|
+
props.return_value ? selectedString.value : selectedInts.value
|
|
68
|
+
);
|
|
69
|
+
emit(
|
|
70
|
+
"update:Selection",
|
|
71
|
+
props.return_value ? selectedString.value : selectedInts.value
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
|
+
});
|
|
53
75
|
function isSelected(index, option) {
|
|
54
76
|
if (selectedInts.value?.includes(index) || selectedString.value?.includes(option)) {
|
|
55
77
|
return true;
|