@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@farm-investimentos/front-mfe-components",
3
- "version": "15.0.7",
3
+ "version": "15.1.0",
4
4
  "author": "farm investimentos",
5
5
  "private": false,
6
6
  "main": "./dist/front-mfe-components.common.js",
@@ -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
- <i :class="{ 'mr-2': true, 'mdi-file-export-outline': true, mdi: true }"></i>
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)"
@@ -47,7 +47,7 @@
47
47
  .farm-checkbox {
48
48
  display: flex;
49
49
  justify-content: center;
50
- border: 3px solid themeColor('neutral', 'darken');
50
+ border: 2px solid themeColor('neutral', 'darken');
51
51
  border-radius: 4px;
52
52
  cursor: pointer;
53
53
  line-height: 0;
@@ -86,7 +86,7 @@ export default Vue.extend({
86
86
  */
87
87
  size: {
88
88
  type: String as PropType<'xs' | 'sm' | 'md' | 'lg' | 'xl'>,
89
- default: 'md',
89
+ default: 'sm',
90
90
  },
91
91
  /**
92
92
  * Sets an indeterminate state for the simple checkbox
@@ -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
 
@@ -108,7 +108,5 @@ $defaultLefts: 0, 4rem, 4rem;
108
108
  height: 20px;
109
109
  margin-right: 0 !important;
110
110
  }
111
-
112
-
113
111
  }
114
112
  }
@@ -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
- > .mf-Container > div.v-application {
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-darken);
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
+ }
@@ -1,4 +0,0 @@
1
- #root {
2
- background: red !important;
3
-
4
- }