@farm-investimentos/front-mfe-components 15.4.4 → 15.4.5

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.4.4",
3
+ "version": "15.4.5",
4
4
  "author": "farm investimentos",
5
5
  "private": false,
6
6
  "main": "./dist/front-mfe-components.common.js",
@@ -61,6 +61,17 @@ export const Export = () => ({
61
61
  </div>`,
62
62
  });
63
63
 
64
+ export const ExportDisabled = () => ({
65
+ data() {
66
+ return {
67
+ clicked: false,
68
+ };
69
+ },
70
+ template: `<div>
71
+ clicked: {{clicked}} <farm-collapsible :disabledButton="true" icon="clipboard" title="With Button" :hasButton="true" @onClick="value => clicked = !clicked" >collapsible content</farm-collapsible>
72
+ </div>`,
73
+ });
74
+
64
75
  export const Opened = () => ({
65
76
  data() {
66
77
  return {
@@ -11,7 +11,13 @@
11
11
  <farm-heading type="6" color="black">
12
12
  {{ title }}
13
13
  </farm-heading>
14
- <farm-btn outlined class="ml-6" v-if="hasButton" @click.stop="onClick()">
14
+ <farm-btn
15
+ outlined
16
+ class="ml-6"
17
+ v-if="hasButton"
18
+ :disabled="disabledButton"
19
+ @click.stop="onClick()"
20
+ >
15
21
  {{ labelButton }}
16
22
  </farm-btn>
17
23
  </div>
@@ -93,7 +99,14 @@ export default defineComponent({
93
99
  default: false,
94
100
  },
95
101
  /**
96
- * export button
102
+ * export button disabled toggle
103
+ */
104
+ disabledButton: {
105
+ type: Boolean,
106
+ default: false,
107
+ },
108
+ /**
109
+ * export button emit
97
110
  */
98
111
  onExport: {
99
112
  type: Boolean,