@farm-investimentos/front-mfe-components 15.0.8 → 15.2.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.8",
3
+ "version": "15.2.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)"
@@ -74,4 +74,11 @@ export const Application = () => ({
74
74
  </farm-col>
75
75
  </farm-row>
76
76
  </div>`,
77
- });
77
+ });
78
+
79
+ export const FullWidth = () => ({
80
+ template: `
81
+ <div style="max-width: 480px; padding-top: 32px; margin-left: 32px;">
82
+ <farm-form-mainfilter label="Label" fullWidth :hasExtraFilters="false"/>
83
+ </div>`,
84
+ });
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <farm-row :class="{ 'justify-end': justifyEnd === true }">
3
- <farm-col v-if="hasInitialInput" md="6">
3
+ <farm-col v-if="hasInitialInput" :md="fullWidth ? 12 : 6">
4
4
  <farm-label :for="elementId">
5
5
  {{ !hasSlotData ? label : '' }}
6
6
  <slot v-if="hasSlotData"></slot>
@@ -80,6 +80,13 @@ export default Vue.extend({
80
80
  type: String,
81
81
  default: null,
82
82
  },
83
+ /**
84
+ * Input full width
85
+ */
86
+ fullWidth: {
87
+ type: Boolean,
88
+ default: false,
89
+ },
83
90
  },
84
91
 
85
92
  watch: {