@tekkare/auriga 0.1.7 → 0.1.9
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/argActions.vue +120 -0
- package/dist/runtime/components/argActions.vue.d.ts +29 -0
- 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 +14 -6
- package/dist/runtime/components/argCheckbox.vue.d.ts +11 -2
- package/dist/runtime/components/argComplexSelect.vue +2 -2
- package/dist/runtime/components/argDataLoader.vue +13 -3
- package/dist/runtime/components/argDataLoader.vue.d.ts +22 -1
- package/dist/runtime/components/argFileBtn.vue.d.ts +2 -2
- package/dist/runtime/components/argFilterCard.vue +37 -8
- 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 +8 -2
- package/dist/runtime/components/argHeader.vue.d.ts +9 -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 +43 -20
- package/dist/runtime/components/argMenuLink.vue.d.ts +9 -0
- package/dist/runtime/components/argMultipleChoice.vue +25 -3
- package/dist/runtime/components/argMultipleSelect.vue +785 -0
- package/dist/runtime/components/argMultipleSelect.vue.d.ts +143 -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 +134 -0
- package/dist/runtime/components/argRadioButtons.vue.d.ts +48 -0
- package/dist/runtime/components/argSidebar.vue +89 -9
- package/dist/runtime/components/argSidebar.vue.d.ts +8 -2
- package/dist/runtime/components/argStyle.vue +18 -2
- package/dist/runtime/components/argSubMenu.vue +79 -37
- package/dist/runtime/components/argSubMenu.vue.d.ts +9 -0
- package/dist/runtime/components/argTable.vue +15 -1
- package/package.json +1 -1
package/dist/module.json
CHANGED
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
:class="
|
|
4
|
+
actionType === 'download' || actionType === 'see-analysis'
|
|
5
|
+
? 'download_action'
|
|
6
|
+
: actionType === 'cancel'
|
|
7
|
+
? 'cancel_action'
|
|
8
|
+
: actionType === 'scope' || actionType === 'save-analysis'
|
|
9
|
+
? 'scope_action'
|
|
10
|
+
: ''
|
|
11
|
+
"
|
|
12
|
+
@click="sendAction()"
|
|
13
|
+
>
|
|
14
|
+
{{ getActionText }}
|
|
15
|
+
</div>
|
|
16
|
+
</template>
|
|
17
|
+
|
|
18
|
+
<script>
|
|
19
|
+
import {
|
|
20
|
+
computed,
|
|
21
|
+
defineComponent
|
|
22
|
+
} from "vue";
|
|
23
|
+
export default defineComponent({
|
|
24
|
+
name: "argMultipleSelect",
|
|
25
|
+
props: {
|
|
26
|
+
actionType: {
|
|
27
|
+
type: String,
|
|
28
|
+
required: true
|
|
29
|
+
},
|
|
30
|
+
actionText: {
|
|
31
|
+
type: String,
|
|
32
|
+
default: null
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
emits: ["onDownload", "onScope", "onCancel"],
|
|
36
|
+
setup(props, { emit }) {
|
|
37
|
+
const getActionText = computed(() => {
|
|
38
|
+
if (!props.actionText) {
|
|
39
|
+
let finalText = "";
|
|
40
|
+
switch (props.actionType) {
|
|
41
|
+
case "cancel":
|
|
42
|
+
finalText = "Cancel";
|
|
43
|
+
break;
|
|
44
|
+
case "scope":
|
|
45
|
+
finalText = "My scope";
|
|
46
|
+
break;
|
|
47
|
+
case "see-analysis":
|
|
48
|
+
finalText = "Go to analysis";
|
|
49
|
+
break;
|
|
50
|
+
case "save-analysis":
|
|
51
|
+
finalText = "Save and continue";
|
|
52
|
+
break;
|
|
53
|
+
case "download":
|
|
54
|
+
finalText = "Download all";
|
|
55
|
+
}
|
|
56
|
+
return finalText;
|
|
57
|
+
} else
|
|
58
|
+
return props.actionText;
|
|
59
|
+
});
|
|
60
|
+
function sendAction() {
|
|
61
|
+
switch (props.actionType) {
|
|
62
|
+
case "cancel":
|
|
63
|
+
emit("onCancel");
|
|
64
|
+
break;
|
|
65
|
+
case "scope":
|
|
66
|
+
emit("onScope");
|
|
67
|
+
break;
|
|
68
|
+
case "download":
|
|
69
|
+
emit("onDownload");
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
getActionText,
|
|
74
|
+
sendAction
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
</script>
|
|
79
|
+
|
|
80
|
+
<style scoped>
|
|
81
|
+
.download_action {
|
|
82
|
+
color: var(--primary-primary, #2176ff);
|
|
83
|
+
text-align: center;
|
|
84
|
+
font-size: 14px;
|
|
85
|
+
font-style: normal;
|
|
86
|
+
font-weight: 500;
|
|
87
|
+
line-height: normal;
|
|
88
|
+
text-decoration-line: underline;
|
|
89
|
+
cursor: pointer;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.cancel_action {
|
|
93
|
+
display: flex;
|
|
94
|
+
padding: 6px;
|
|
95
|
+
align-items: center;
|
|
96
|
+
gap: 6px;
|
|
97
|
+
border-radius: 4px;
|
|
98
|
+
font-size: 14px;
|
|
99
|
+
font-style: normal;
|
|
100
|
+
font-weight: 400;
|
|
101
|
+
line-height: 160%;
|
|
102
|
+
cursor: pointer;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.scope_action {
|
|
106
|
+
cursor: pointer;
|
|
107
|
+
display: flex;
|
|
108
|
+
padding: var(--s, 8px) var(--m, 16px);
|
|
109
|
+
justify-content: center;
|
|
110
|
+
align-items: center;
|
|
111
|
+
gap: var(--s, 8px);
|
|
112
|
+
border-radius: 16px;
|
|
113
|
+
background: var(--primary-primary, #2176ff);
|
|
114
|
+
font-size: 14px;
|
|
115
|
+
font-style: normal;
|
|
116
|
+
font-weight: 700;
|
|
117
|
+
line-height: normal;
|
|
118
|
+
color: var(--pure-white);
|
|
119
|
+
}
|
|
120
|
+
</style>
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
actionType: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
required: true;
|
|
5
|
+
};
|
|
6
|
+
actionText: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
default: null;
|
|
9
|
+
};
|
|
10
|
+
}, {
|
|
11
|
+
getActionText: import("vue").ComputedRef<string>;
|
|
12
|
+
sendAction: () => void;
|
|
13
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onDownload" | "onScope" | "onCancel")[], "onDownload" | "onScope" | "onCancel", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
14
|
+
actionType: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
required: true;
|
|
17
|
+
};
|
|
18
|
+
actionText: {
|
|
19
|
+
type: StringConstructor;
|
|
20
|
+
default: null;
|
|
21
|
+
};
|
|
22
|
+
}>> & {
|
|
23
|
+
onOnDownload?: ((...args: any[]) => any) | undefined;
|
|
24
|
+
onOnScope?: ((...args: any[]) => any) | undefined;
|
|
25
|
+
onOnCancel?: ((...args: any[]) => any) | undefined;
|
|
26
|
+
}, {
|
|
27
|
+
actionText: string;
|
|
28
|
+
}, {}>;
|
|
29
|
+
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="prmt_chart">
|
|
2
|
+
<div class="prmt_chart" :class="`${type}_arg_chart`">
|
|
3
3
|
<h1 class="prmt_chart_title"><slot name="title" /></h1>
|
|
4
4
|
<div class="prmt_chart_source"><slot name="source" /></div>
|
|
5
5
|
<client-only>
|
|
@@ -386,7 +386,7 @@ export default defineComponent({
|
|
|
386
386
|
props.options["plotOptions"] = {
|
|
387
387
|
bar: {
|
|
388
388
|
horizontal: true,
|
|
389
|
-
borderRadius:
|
|
389
|
+
borderRadius: 6,
|
|
390
390
|
barHeight: "50%",
|
|
391
391
|
colors: { backgroundBarOpacity: 1 },
|
|
392
392
|
dataLabels: { position: "top", hideOverflowingLabels: true },
|
|
@@ -443,7 +443,7 @@ export default defineComponent({
|
|
|
443
443
|
props.options["plotOptions"] = {
|
|
444
444
|
bar: {
|
|
445
445
|
horizontal: true,
|
|
446
|
-
borderRadius:
|
|
446
|
+
borderRadius: 6,
|
|
447
447
|
barHeight: "50%",
|
|
448
448
|
colors: { backgroundBarOpacity: 1 },
|
|
449
449
|
dataLabels: { position: "top", hideOverflowingLabels: true },
|
|
@@ -685,7 +685,41 @@ export default defineComponent({
|
|
|
685
685
|
position: initial;
|
|
686
686
|
}
|
|
687
687
|
|
|
688
|
-
.
|
|
688
|
+
.prmt_chart.bar_arg_chart
|
|
689
|
+
> .vue-apexcharts
|
|
690
|
+
> .apexcharts-canvas
|
|
691
|
+
> svg
|
|
692
|
+
> .apexcharts-inner
|
|
693
|
+
> .apexcharts-bar-series.apexcharts-plot-series
|
|
694
|
+
.apexcharts-series
|
|
695
|
+
path,
|
|
696
|
+
.prmt_chart.bar-column_arg_chart
|
|
697
|
+
> .vue-apexcharts
|
|
698
|
+
> .apexcharts-canvas
|
|
699
|
+
> svg
|
|
700
|
+
> .apexcharts-inner
|
|
701
|
+
> .apexcharts-bar-series.apexcharts-plot-series
|
|
702
|
+
.apexcharts-series
|
|
703
|
+
path {
|
|
689
704
|
clip-path: inset(0% 0% -11% 0% round 6px) !important;
|
|
690
705
|
}
|
|
706
|
+
|
|
707
|
+
.prmt_chart.bar-horizontal-group_arg_chart
|
|
708
|
+
> .vue-apexcharts
|
|
709
|
+
> .apexcharts-canvas
|
|
710
|
+
> svg
|
|
711
|
+
> .apexcharts-inner
|
|
712
|
+
> .apexcharts-bar-series.apexcharts-plot-series
|
|
713
|
+
.apexcharts-series
|
|
714
|
+
path,
|
|
715
|
+
.prmt_chart.bar-horizontal_arg_chart
|
|
716
|
+
> .vue-apexcharts
|
|
717
|
+
> .apexcharts-canvas
|
|
718
|
+
> svg
|
|
719
|
+
> .apexcharts-inner
|
|
720
|
+
> .apexcharts-bar-series.apexcharts-plot-series
|
|
721
|
+
.apexcharts-series
|
|
722
|
+
path {
|
|
723
|
+
clip-path: inset(0% 0% 0% -11% round 6px) !important;
|
|
724
|
+
}
|
|
691
725
|
</style>
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="oip_table_card">
|
|
3
|
+
<div class="table_card_header">
|
|
4
|
+
<slot name="Chart" />
|
|
5
|
+
</div>
|
|
6
|
+
<slot name="Table" />
|
|
7
|
+
</div>
|
|
8
|
+
</template>
|
|
9
|
+
|
|
10
|
+
<script>
|
|
11
|
+
import {
|
|
12
|
+
onMounted,
|
|
13
|
+
ref,
|
|
14
|
+
computed,
|
|
15
|
+
defineProps,
|
|
16
|
+
defineEmits,
|
|
17
|
+
defineComponent,
|
|
18
|
+
} from "vue";
|
|
19
|
+
|
|
20
|
+
export default defineComponent({
|
|
21
|
+
name: "argChartTableCard",
|
|
22
|
+
});
|
|
23
|
+
</script>
|
|
24
|
+
|
|
25
|
+
<style scoped>
|
|
26
|
+
.table_card_header {
|
|
27
|
+
padding: 0px 24px;
|
|
28
|
+
margin-bottom: 24px;
|
|
29
|
+
}
|
|
30
|
+
</style>
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
2
|
+
export default _default;
|
|
@@ -5,8 +5,9 @@
|
|
|
5
5
|
@focusout="selectOption = false"
|
|
6
6
|
tabindex="0"
|
|
7
7
|
:class="selectOption ? 'open' : ''"
|
|
8
|
+
@click="selectFilter()"
|
|
8
9
|
>
|
|
9
|
-
<div
|
|
10
|
+
<div>
|
|
10
11
|
<arg-icon
|
|
11
12
|
:name="iconFilter"
|
|
12
13
|
:class="[
|
|
@@ -22,6 +23,7 @@
|
|
|
22
23
|
<arg-tooltip
|
|
23
24
|
v-if="infoIcon"
|
|
24
25
|
:tooltip-text="tooltipText"
|
|
26
|
+
:dir="tooltipDir"
|
|
25
27
|
class="filter_tooltip flex"
|
|
26
28
|
>
|
|
27
29
|
<arg-icon name="Info" color="var(--cool-grey)" size="16" />
|
|
@@ -31,6 +33,7 @@
|
|
|
31
33
|
|
|
32
34
|
<script>
|
|
33
35
|
import argIcon from "./argIcon.vue";
|
|
36
|
+
import argTooltip from "./argTooltip.vue";
|
|
34
37
|
import {
|
|
35
38
|
ref,
|
|
36
39
|
computed,
|
|
@@ -39,7 +42,7 @@ import {
|
|
|
39
42
|
} from "vue";
|
|
40
43
|
export default defineComponent({
|
|
41
44
|
name: "argCheckbox",
|
|
42
|
-
components: { argIcon },
|
|
45
|
+
components: { argIcon, argTooltip },
|
|
43
46
|
props: {
|
|
44
47
|
filterTitle: {
|
|
45
48
|
type: String,
|
|
@@ -60,9 +63,13 @@ export default defineComponent({
|
|
|
60
63
|
disable: {
|
|
61
64
|
type: Boolean,
|
|
62
65
|
default: false
|
|
66
|
+
},
|
|
67
|
+
tooltipDir: {
|
|
68
|
+
type: String,
|
|
69
|
+
default: "top"
|
|
63
70
|
}
|
|
64
71
|
},
|
|
65
|
-
emits: ["handleClick", "update:
|
|
72
|
+
emits: ["handleClick", "update:Check"],
|
|
66
73
|
setup(props, { emit }) {
|
|
67
74
|
const returnValue = ref(false);
|
|
68
75
|
const selectOption = ref(false);
|
|
@@ -97,7 +104,7 @@ export default defineComponent({
|
|
|
97
104
|
if (!props.disable) {
|
|
98
105
|
returnValue.value = !returnValue.value;
|
|
99
106
|
emit("handleClick", returnValue);
|
|
100
|
-
emit("update:
|
|
107
|
+
emit("update:Check", returnValue);
|
|
101
108
|
}
|
|
102
109
|
}
|
|
103
110
|
return {
|
|
@@ -125,6 +132,7 @@ export default defineComponent({
|
|
|
125
132
|
line-height: 16px;
|
|
126
133
|
height: 40px;
|
|
127
134
|
width: 228px;
|
|
135
|
+
cursor: pointer;
|
|
128
136
|
}
|
|
129
137
|
.filter_tooltip {
|
|
130
138
|
margin-left: auto !important;
|
|
@@ -133,10 +141,10 @@ export default defineComponent({
|
|
|
133
141
|
.filter_icon_check {
|
|
134
142
|
cursor: pointer;
|
|
135
143
|
}
|
|
136
|
-
.
|
|
144
|
+
.filter_box:hover .filter_icon_select {
|
|
137
145
|
color: var(--primary) !important;
|
|
138
146
|
}
|
|
139
|
-
.
|
|
147
|
+
.filter_box:hover .filter_icon_check {
|
|
140
148
|
color: var(--primary-hover2) !important;
|
|
141
149
|
}
|
|
142
150
|
.disable {
|
|
@@ -19,13 +19,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
19
19
|
type: BooleanConstructor;
|
|
20
20
|
default: boolean;
|
|
21
21
|
};
|
|
22
|
+
tooltipDir: {
|
|
23
|
+
type: StringConstructor;
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
22
26
|
}, {
|
|
23
27
|
iconFilter: import("vue").ComputedRef<"MinusSquareDisable" | "CheckSquareFill" | "Square">;
|
|
24
28
|
iconColor: import("vue").ComputedRef<"var(--wild-blue-yonder)" | "var(--independence)" | "var(--accent)">;
|
|
25
29
|
selectFilter: () => void;
|
|
26
30
|
selectOption: import("vue").Ref<boolean>;
|
|
27
31
|
returnValue: import("vue").Ref<boolean>;
|
|
28
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("handleClick" | "update:
|
|
32
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("handleClick" | "update:Check")[], "handleClick" | "update:Check", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
29
33
|
filterTitle: {
|
|
30
34
|
type: StringConstructor;
|
|
31
35
|
required: true;
|
|
@@ -46,13 +50,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
46
50
|
type: BooleanConstructor;
|
|
47
51
|
default: boolean;
|
|
48
52
|
};
|
|
53
|
+
tooltipDir: {
|
|
54
|
+
type: StringConstructor;
|
|
55
|
+
default: string;
|
|
56
|
+
};
|
|
49
57
|
}>> & {
|
|
50
58
|
onHandleClick?: ((...args: any[]) => any) | undefined;
|
|
51
|
-
"onUpdate:
|
|
59
|
+
"onUpdate:Check"?: ((...args: any[]) => any) | undefined;
|
|
52
60
|
}, {
|
|
53
61
|
disable: boolean;
|
|
54
62
|
tooltipText: string;
|
|
55
63
|
infoIcon: boolean;
|
|
56
64
|
defaultSelect: boolean;
|
|
65
|
+
tooltipDir: string;
|
|
57
66
|
}, {}>;
|
|
58
67
|
export default _default;
|
|
@@ -193,7 +193,7 @@ import argBtn from "./argBtn.vue";
|
|
|
193
193
|
import argIcon from "./argIcon.vue";
|
|
194
194
|
import argDataLoader from "./argDataLoader.vue";
|
|
195
195
|
import {
|
|
196
|
-
|
|
196
|
+
onMounted,
|
|
197
197
|
ref,
|
|
198
198
|
computed,
|
|
199
199
|
watch,
|
|
@@ -239,7 +239,7 @@ export default defineComponent({
|
|
|
239
239
|
const hoverAdd = ref(null);
|
|
240
240
|
const hoverRemove = ref(null);
|
|
241
241
|
const reachMax = ref(false);
|
|
242
|
-
|
|
242
|
+
onMounted(() => {
|
|
243
243
|
del_table.value = Object.assign([], [...new Set(props.already_selected)]);
|
|
244
244
|
add_table.value = Object.assign(
|
|
245
245
|
[],
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
<div class="oip_data_loader_container">
|
|
3
3
|
<div class="oip_data_loader">
|
|
4
4
|
<div class="oip_data_loader_text_group">
|
|
5
|
-
<h1 class="oip_data_loader_title">
|
|
6
|
-
<h2 class="oip_data_loader_subtitle">
|
|
5
|
+
<h1 class="oip_data_loader_title">{{ text }}</h1>
|
|
6
|
+
<h2 class="oip_data_loader_subtitle">{{ subText }}</h2>
|
|
7
7
|
</div>
|
|
8
8
|
<div class="oip_data_loader_background_container">
|
|
9
9
|
<arg-icon
|
|
@@ -51,7 +51,17 @@ import {
|
|
|
51
51
|
import argIcon from "./argIcon.vue";
|
|
52
52
|
export default defineComponent({
|
|
53
53
|
name: "argDataLoader",
|
|
54
|
-
components: { argIcon }
|
|
54
|
+
components: { argIcon },
|
|
55
|
+
props: {
|
|
56
|
+
text: {
|
|
57
|
+
type: String,
|
|
58
|
+
default: "Doing data science"
|
|
59
|
+
},
|
|
60
|
+
subText: {
|
|
61
|
+
type: String,
|
|
62
|
+
default: "Thanks for waiting"
|
|
63
|
+
}
|
|
64
|
+
}
|
|
55
65
|
});
|
|
56
66
|
</script>
|
|
57
67
|
|
|
@@ -1,2 +1,23 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
text: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
subText: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
}, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
11
|
+
text: {
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
subText: {
|
|
16
|
+
type: StringConstructor;
|
|
17
|
+
default: string;
|
|
18
|
+
};
|
|
19
|
+
}>>, {
|
|
20
|
+
text: string;
|
|
21
|
+
subText: string;
|
|
22
|
+
}, {}>;
|
|
2
23
|
export default _default;
|
|
@@ -28,7 +28,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
28
28
|
}>;
|
|
29
29
|
onPreview: () => void;
|
|
30
30
|
onDownload: () => void;
|
|
31
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
31
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onDownload" | "onPreview")[], "onDownload" | "onPreview", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
32
32
|
fileType: {
|
|
33
33
|
type: StringConstructor;
|
|
34
34
|
required: false;
|
|
@@ -52,8 +52,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
52
52
|
required: false;
|
|
53
53
|
};
|
|
54
54
|
}>> & {
|
|
55
|
-
onOnPreview?: ((...args: any[]) => any) | undefined;
|
|
56
55
|
onOnDownload?: ((...args: any[]) => any) | undefined;
|
|
56
|
+
onOnPreview?: ((...args: any[]) => any) | undefined;
|
|
57
57
|
}, {
|
|
58
58
|
download: boolean;
|
|
59
59
|
preview: boolean;
|
|
@@ -8,7 +8,14 @@
|
|
|
8
8
|
<div class="oip_row v-center gap-8">
|
|
9
9
|
<p class="filters_title">Filters</p>
|
|
10
10
|
<div class="filters_amount">{{ filters_amount }}</div>
|
|
11
|
-
<p
|
|
11
|
+
<p
|
|
12
|
+
v-if="saveScope && filtersOpen"
|
|
13
|
+
class="filters_save"
|
|
14
|
+
@click.stop="save()"
|
|
15
|
+
>
|
|
16
|
+
{{ saveScopeMsg }}
|
|
17
|
+
</p>
|
|
18
|
+
<p class="filters_clear" @click.stop="clear()">{{ clearMsg }}</p>
|
|
12
19
|
</div>
|
|
13
20
|
<div class="oip_row v-center gap-8">
|
|
14
21
|
<arg-icon
|
|
@@ -22,8 +29,9 @@
|
|
|
22
29
|
</div>
|
|
23
30
|
</div>
|
|
24
31
|
<div class="filters_section" @click.stop>
|
|
25
|
-
<
|
|
26
|
-
|
|
32
|
+
<slot name="Search" />
|
|
33
|
+
<div class="filters_row oip_row v-center gap-16 full-width wrap">
|
|
34
|
+
<slot name="Filters" />
|
|
27
35
|
</div>
|
|
28
36
|
</div>
|
|
29
37
|
</div>
|
|
@@ -37,17 +45,24 @@ import {
|
|
|
37
45
|
export default defineComponent({
|
|
38
46
|
name: "argFilterCard",
|
|
39
47
|
props: {
|
|
40
|
-
filters_amount: { type: Number, default: 0 }
|
|
48
|
+
filters_amount: { type: Number, default: 0 },
|
|
49
|
+
saveScope: { type: Boolean, default: true },
|
|
50
|
+
clearMsg: { type: String, default: "Clear all" },
|
|
51
|
+
saveScopeMsg: { type: String, default: "Save scope" }
|
|
41
52
|
},
|
|
42
|
-
emits: ["clearFilters"],
|
|
53
|
+
emits: ["clearFilters", "saveScope"],
|
|
43
54
|
setup(props, { emit }) {
|
|
44
55
|
const filtersOpen = ref(false);
|
|
45
56
|
function clear() {
|
|
46
57
|
emit("clearFilters");
|
|
47
58
|
}
|
|
59
|
+
function save() {
|
|
60
|
+
emit("saveScope");
|
|
61
|
+
}
|
|
48
62
|
return {
|
|
49
63
|
filtersOpen,
|
|
50
|
-
clear
|
|
64
|
+
clear,
|
|
65
|
+
save
|
|
51
66
|
};
|
|
52
67
|
}
|
|
53
68
|
});
|
|
@@ -66,6 +81,7 @@ export default defineComponent({
|
|
|
66
81
|
backdrop-filter: blur(12px);
|
|
67
82
|
transition: all ease 0.7s;
|
|
68
83
|
cursor: pointer;
|
|
84
|
+
z-index: 98;
|
|
69
85
|
}
|
|
70
86
|
|
|
71
87
|
.filter_card {
|
|
@@ -111,20 +127,33 @@ export default defineComponent({
|
|
|
111
127
|
border: 1px solid var(--base-dividers, #ececf2);
|
|
112
128
|
}
|
|
113
129
|
|
|
114
|
-
.filters_clear
|
|
130
|
+
.filters_clear,
|
|
131
|
+
.filters_save {
|
|
115
132
|
font-size: 14px;
|
|
116
133
|
font-style: normal;
|
|
117
134
|
font-weight: 500;
|
|
118
135
|
line-height: normal;
|
|
119
136
|
text-decoration-line: underline;
|
|
120
|
-
color: var(--system-alert, #ef4444);
|
|
121
137
|
cursor: pointer;
|
|
122
138
|
}
|
|
123
139
|
|
|
140
|
+
.filters_clear {
|
|
141
|
+
color: var(--system-alert, #ef4444);
|
|
142
|
+
}
|
|
143
|
+
.filters_save {
|
|
144
|
+
color: var(--primary-primary, #2176ff);
|
|
145
|
+
}
|
|
146
|
+
|
|
124
147
|
.filters_collapse {
|
|
125
148
|
font-size: 14px;
|
|
126
149
|
font-style: normal;
|
|
127
150
|
font-weight: 400;
|
|
128
151
|
line-height: 160%;
|
|
129
152
|
}
|
|
153
|
+
.filters_section {
|
|
154
|
+
display: flex;
|
|
155
|
+
flex-direction: column;
|
|
156
|
+
align-items: flex-start;
|
|
157
|
+
gap: 16px;
|
|
158
|
+
}
|
|
130
159
|
</style>
|
|
@@ -3,17 +3,46 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3
3
|
type: NumberConstructor;
|
|
4
4
|
default: number;
|
|
5
5
|
};
|
|
6
|
+
saveScope: {
|
|
7
|
+
type: BooleanConstructor;
|
|
8
|
+
default: boolean;
|
|
9
|
+
};
|
|
10
|
+
clearMsg: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
saveScopeMsg: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
6
18
|
}, {
|
|
7
19
|
filtersOpen: import("vue").Ref<boolean>;
|
|
8
20
|
clear: () => void;
|
|
9
|
-
|
|
21
|
+
save: () => void;
|
|
22
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clearFilters" | "saveScope")[], "clearFilters" | "saveScope", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
10
23
|
filters_amount: {
|
|
11
24
|
type: NumberConstructor;
|
|
12
25
|
default: number;
|
|
13
26
|
};
|
|
27
|
+
saveScope: {
|
|
28
|
+
type: BooleanConstructor;
|
|
29
|
+
default: boolean;
|
|
30
|
+
};
|
|
31
|
+
clearMsg: {
|
|
32
|
+
type: StringConstructor;
|
|
33
|
+
default: string;
|
|
34
|
+
};
|
|
35
|
+
saveScopeMsg: {
|
|
36
|
+
type: StringConstructor;
|
|
37
|
+
default: string;
|
|
38
|
+
};
|
|
14
39
|
}>> & {
|
|
15
40
|
onClearFilters?: ((...args: any[]) => any) | undefined;
|
|
41
|
+
onSaveScope?: ((...args: any[]) => any) | undefined;
|
|
16
42
|
}, {
|
|
43
|
+
saveScope: boolean;
|
|
17
44
|
filters_amount: number;
|
|
45
|
+
clearMsg: string;
|
|
46
|
+
saveScopeMsg: string;
|
|
18
47
|
}, {}>;
|
|
19
48
|
export default _default;
|