@farm-investimentos/front-mfe-components 15.0.7 → 15.1.0
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/front-mfe-components.common.js +113 -115
- package/dist/front-mfe-components.common.js.map +1 -1
- package/dist/front-mfe-components.css +1 -1
- package/dist/front-mfe-components.umd.js +113 -115
- package/dist/front-mfe-components.umd.js.map +1 -1
- package/dist/front-mfe-components.umd.min.js +1 -1
- package/dist/front-mfe-components.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Buttons/ExportButton/ExportButton.stories.js +4 -0
- package/src/components/Buttons/ExportButton/ExportButton.vue +6 -5
- package/src/components/Checkbox/Checkbox.scss +1 -1
- package/src/components/Checkbox/Checkbox.vue +1 -1
- package/src/components/Form/Form.stories.js +1 -1
- package/src/scss/Sticky-table.scss +0 -2
- package/src/scss/utils.scss +5 -47
- package/src/scss/main.scss +0 -4
package/package.json
CHANGED
|
@@ -28,6 +28,10 @@ export const List = () => ({
|
|
|
28
28
|
template: `<farm-btn-export :optionsList="[{ key: 1, label: 'XLS teste'}, { key: 2, label: 'CSV teste novo'}]" />`,
|
|
29
29
|
});
|
|
30
30
|
|
|
31
|
+
export const DisabledList = () => ({
|
|
32
|
+
template: `<farm-btn-export :disabled="true" :optionsList="[{ key: 1, label: 'XLS teste'}, { key: 2, label: 'CSV teste novo'}]" />`,
|
|
33
|
+
});
|
|
34
|
+
|
|
31
35
|
export const CustomColor = () => ({
|
|
32
36
|
template: `<div>
|
|
33
37
|
<farm-btn-export color="info" />
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<farm-btn
|
|
3
|
-
v-if="optionsList.length == 0"
|
|
4
|
-
@click="onClick"
|
|
3
|
+
v-if="optionsList.length == 0 || disabled"
|
|
5
4
|
class="farm-btn--responsive"
|
|
6
5
|
outlined
|
|
7
6
|
title="Exportar"
|
|
8
7
|
:color="$attrs.color"
|
|
9
8
|
:disabled="disabled"
|
|
9
|
+
@click="onClick"
|
|
10
10
|
>
|
|
11
|
-
<
|
|
11
|
+
<farm-icon v-if="optionsList.length == 0" class="mr-2"> file-export-outline </farm-icon>
|
|
12
12
|
Exportar
|
|
13
|
+
<farm-icon v-if="optionsList.length != 0" class="ml-2"> chevron-down </farm-icon>
|
|
13
14
|
</farm-btn>
|
|
14
|
-
|
|
15
|
+
|
|
15
16
|
<farm-contextmenu v-else v-model="value" :bottom="true">
|
|
16
17
|
<template v-slot:activator="{}">
|
|
17
18
|
<farm-btn outlined title="Exportar" :color="$attrs.color" @click="toggleValue">
|
|
@@ -23,8 +24,8 @@
|
|
|
23
24
|
<farm-listitem
|
|
24
25
|
v-for="item in optionsList"
|
|
25
26
|
clickable
|
|
26
|
-
:hoverColor="$attrs.color || 'primary'"
|
|
27
27
|
hoverColorVariation="lighten"
|
|
28
|
+
:hoverColor="$attrs.color || 'primary'"
|
|
28
29
|
:key="'exportbutton_key_' + item.label"
|
|
29
30
|
:title="item.label"
|
|
30
31
|
@click="onClick(item.key)"
|
|
@@ -62,7 +62,7 @@ export const Primary = () => ({
|
|
|
62
62
|
|
|
63
63
|
<farm-label :required="true">True/false</farm-label>
|
|
64
64
|
<farm-checkbox v-model="form.checkbox" value="1" :rules="[rules.checked]" />
|
|
65
|
-
|
|
65
|
+
|
|
66
66
|
<farm-label :required="true">Select</farm-label>
|
|
67
67
|
<farm-select :rules="[rules.required]" :items="items" v-model="form.selectId"/>
|
|
68
68
|
|
package/src/scss/utils.scss
CHANGED
|
@@ -1,35 +1,6 @@
|
|
|
1
1
|
.container-main.container-main-sm {
|
|
2
2
|
max-width: 960px;
|
|
3
3
|
}
|
|
4
|
-
.container-main > .col {
|
|
5
|
-
background-color: white;
|
|
6
|
-
border-radius: 0.5rem;
|
|
7
|
-
max-width: calc(100% - 2rem);
|
|
8
|
-
margin: 1rem auto;
|
|
9
|
-
&.col__no-bg {
|
|
10
|
-
background-color: transparent;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.container-main__footer-buttons-right {
|
|
14
|
-
margin: 0;
|
|
15
|
-
margin-top: 1rem;
|
|
16
|
-
padding: 0;
|
|
17
|
-
justify-content: flex-end;
|
|
18
|
-
.v-btn {
|
|
19
|
-
margin-left: 1rem;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
min-height: 8rem;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.v-list__clickable {
|
|
26
|
-
.v-list-item__title {
|
|
27
|
-
cursor: pointer;
|
|
28
|
-
&:hover {
|
|
29
|
-
opacity: 0.6;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
4
|
|
|
34
5
|
tr.v-data-table__empty-wrapper {
|
|
35
6
|
td {
|
|
@@ -42,13 +13,14 @@ tr.v-data-table__empty-wrapper {
|
|
|
42
13
|
|
|
43
14
|
|
|
44
15
|
.mf-Containers.mf-Containers-authenticated {
|
|
45
|
-
|
|
16
|
+
>.mf-Container>div.v-application {
|
|
46
17
|
padding-bottom: 2.625rem;
|
|
47
18
|
}
|
|
48
19
|
}
|
|
49
20
|
|
|
50
21
|
#blip-chat-container {
|
|
51
22
|
bottom: 1rem;
|
|
23
|
+
|
|
52
24
|
#blip-chat-open-iframe {
|
|
53
25
|
bottom: 0.5rem;
|
|
54
26
|
}
|
|
@@ -64,7 +36,8 @@ body.body--has-footer {
|
|
|
64
36
|
.v-data-table__checkbox.v-simple-checkbox {
|
|
65
37
|
.v-icon.v-icon {
|
|
66
38
|
font-size: 22px;
|
|
67
|
-
color: var(--farm-neutral-
|
|
39
|
+
color: var(--farm-neutral-farken);
|
|
40
|
+
;
|
|
68
41
|
|
|
69
42
|
&.mdi-checkbox-marked,
|
|
70
43
|
&.mdi-minus-box {
|
|
@@ -75,19 +48,4 @@ body.body--has-footer {
|
|
|
75
48
|
.v-input--selection-controls__ripple {
|
|
76
49
|
display: none;
|
|
77
50
|
}
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
@media (max-width: 600px) {
|
|
81
|
-
.container-main > .col {
|
|
82
|
-
max-width: calc(100% - 0.5rem);
|
|
83
|
-
|
|
84
|
-
.container-main__footer-buttons-right {
|
|
85
|
-
justify-content: unset;
|
|
86
|
-
.v-btn {
|
|
87
|
-
margin-left: 0;
|
|
88
|
-
margin-top: 1rem;
|
|
89
|
-
width: 100%;
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
}
|
|
51
|
+
}
|
package/src/scss/main.scss
DELETED