@farm-investimentos/front-mfe-components 6.2.3 → 6.2.6
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 +222 -218
- 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 +222 -218
- 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/ConfirmButton/ConfirmButton.stories.js +1 -0
- package/src/components/Buttons/DefaultButton/DefaultButton.scss +2 -2
- package/src/components/Buttons/DefaultButton/DefaultButton.stories.js +1 -0
- package/src/components/Buttons/DefaultButton/DefaultButton.vue +17 -1
- package/src/components/Buttons/ExportButton/ExportButton.vue +2 -2
- package/src/components/Buttons/ImportButton/ImportButton.vue +1 -1
- package/src/components/Buttons/MultiImportButton/MultiImportButton.vue +2 -2
- package/src/components/Buttons/RemoveButton/RemoveButton.vue +2 -2
- package/src/components/Buttons/ToggleButton/ToggleButton.vue +1 -1
- package/src/components/FilePicker/FilePicker.vue +1 -1
- package/src/components/MainFilter/MainFilter.vue +1 -1
- package/src/examples/Buttons.stories.js +2 -1
package/package.json
CHANGED
|
@@ -109,7 +109,7 @@ $colors: primary, secondary, error, extra, accent, info, success, gray, yellow;
|
|
|
109
109
|
flex-direction: row;
|
|
110
110
|
align-items: center;
|
|
111
111
|
|
|
112
|
-
i.mdi {
|
|
112
|
+
::v-deep i.mdi {
|
|
113
113
|
font-size: 1rem;
|
|
114
114
|
}
|
|
115
115
|
}
|
|
@@ -120,7 +120,7 @@ $colors: primary, secondary, error, extra, accent, info, success, gray, yellow;
|
|
|
120
120
|
background-color: var(--v-#{$color}-base);
|
|
121
121
|
color: white;
|
|
122
122
|
|
|
123
|
-
.farm-btn__content i.mdi {
|
|
123
|
+
::v-deep .farm-btn__content i.mdi {
|
|
124
124
|
color: white;
|
|
125
125
|
}
|
|
126
126
|
}
|
|
@@ -1,9 +1,21 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<button
|
|
2
|
+
<button
|
|
3
|
+
v-if="!to"
|
|
4
|
+
v-on="$listeners"
|
|
5
|
+
v-bind="$attrs"
|
|
6
|
+
:disabled="disabled"
|
|
7
|
+
:type="type"
|
|
8
|
+
:class="classes"
|
|
9
|
+
>
|
|
3
10
|
<span class="farm-btn__content">
|
|
4
11
|
<slot></slot>
|
|
5
12
|
</span>
|
|
6
13
|
</button>
|
|
14
|
+
<router-link :to="to" v-bind="$attrs" :disabled="disabled" :class="classes" v-else>
|
|
15
|
+
<span class="farm-btn__content">
|
|
16
|
+
<slot></slot>
|
|
17
|
+
</span>
|
|
18
|
+
</router-link>
|
|
7
19
|
</template>
|
|
8
20
|
<script lang="ts">
|
|
9
21
|
import Vue from 'vue';
|
|
@@ -23,6 +35,10 @@ export default Vue.extend({
|
|
|
23
35
|
type: String,
|
|
24
36
|
default: 'button',
|
|
25
37
|
},
|
|
38
|
+
to: {
|
|
39
|
+
type: String,
|
|
40
|
+
default: null,
|
|
41
|
+
},
|
|
26
42
|
},
|
|
27
43
|
|
|
28
44
|
computed: {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
v-if="optionsList.length == 0"
|
|
4
4
|
@click="onClick"
|
|
5
5
|
dense
|
|
6
|
-
class="
|
|
6
|
+
class="farm-btn--responsive"
|
|
7
7
|
outlined
|
|
8
8
|
title="Exportar"
|
|
9
9
|
:disabled="disabled"
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
v-bind="attrs"
|
|
24
24
|
v-on="on"
|
|
25
25
|
dense
|
|
26
|
-
class="
|
|
26
|
+
class="farm-btn--responsive"
|
|
27
27
|
outlined
|
|
28
28
|
title="Exportar"
|
|
29
29
|
@onClick="togglePopover = true"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<farm-btn @click="onClick" dense class="
|
|
2
|
+
<farm-btn @click="onClick" dense class="farm-btn--responsive farm-btn--import" outlined title="Importar">
|
|
3
3
|
<i class="mdi mdi-upload"></i>
|
|
4
4
|
{{ label }}
|
|
5
5
|
</farm-btn>
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
|
|
20
20
|
<p v-if="maxSizeReach" v-html="maxSizeReachMsg"></p>
|
|
21
21
|
|
|
22
|
-
<farm-btn depressed outlined color="secondary" class="
|
|
22
|
+
<farm-btn depressed outlined color="secondary" class="farm-btn--responsive" @click="reset">
|
|
23
23
|
Escolher outro
|
|
24
24
|
</farm-btn>
|
|
25
25
|
</div>
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
<DefaultButton
|
|
18
18
|
v-if="hasExtraFilters"
|
|
19
19
|
color="secondary"
|
|
20
|
-
class="
|
|
20
|
+
class="farm-btn--responsive mt-14 mt-sm-8"
|
|
21
21
|
@click="onFilterClick"
|
|
22
22
|
>
|
|
23
23
|
<v-icon color="white" class="mr-2" small>{{ extraFiltersBtnIcon }}</v-icon>
|
|
@@ -43,7 +43,7 @@ export const OutlinedButtons = () => ({
|
|
|
43
43
|
};
|
|
44
44
|
},
|
|
45
45
|
template: `<div class="buttons-container">
|
|
46
|
-
<farm-btn v-for="color of colors":key="color" :color="color"outlined>
|
|
46
|
+
<farm-btn v-for="color of colors":key="color" :color="color" outlined>
|
|
47
47
|
{{ color }}
|
|
48
48
|
</farm-btn>
|
|
49
49
|
</div>`,
|
|
@@ -56,6 +56,7 @@ export const DisabledButtons = () => ({
|
|
|
56
56
|
data() {
|
|
57
57
|
return {
|
|
58
58
|
colors,
|
|
59
|
+
x: 1
|
|
59
60
|
};
|
|
60
61
|
},
|
|
61
62
|
template: `<div class="buttons-container">
|