@farm-investimentos/front-mfe-components 15.8.7 → 15.10.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.8.7",
3
+ "version": "15.10.0",
4
4
  "author": "farm investimentos",
5
5
  "private": false,
6
6
  "main": "./dist/front-mfe-components.common.js",
@@ -27,4 +27,12 @@ export const CustomTitles = () => ({
27
27
 
28
28
  export const NoBorder = () => ({
29
29
  template: '<farm-emptywrapper :bordered="false" />',
30
+ });
31
+
32
+ export const Icon = () => ({
33
+ template: '<farm-emptywrapper icon="alert" :bordered="false" />',
34
+ });
35
+
36
+ export const CustomHTML = () => ({
37
+ template: `<farm-emptywrapper subtitle="Para finalizar ou alterar a parametrização <b style='color: #4f8406;'>clique aqui</b>" icon="alert-outline" :bordered="false" />`,
30
38
  });
@@ -5,13 +5,11 @@
5
5
  'farm-emptywrapper--bordered': bordered,
6
6
  }"
7
7
  >
8
- <farm-icon size="xl" color="gray">magnify</farm-icon>
8
+ <farm-icon size="xl" color="gray">{{ icon }}</farm-icon>
9
9
  <farm-bodytext type="2" variation="bold" color="black" color-variation="40">
10
10
  {{ title }}
11
11
  </farm-bodytext>
12
- <farm-caption v-if="subtitle" variation="regular" color-variation="30">
13
- {{ subtitle }}
14
- </farm-caption>
12
+ <farm-caption v-html="subtitle" v-if="subtitle" variation="regular" color-variation="30" />
15
13
  </div>
16
14
  </template>
17
15
  <script lang="ts">
@@ -42,6 +40,10 @@ export default defineComponent({
42
40
  type: Boolean,
43
41
  default: true,
44
42
  },
43
+ icon: {
44
+ type: String,
45
+ default: 'magnify',
46
+ }
45
47
  },
46
48
  });
47
49
  </script>
@@ -117,7 +117,7 @@ export default defineComponent({
117
117
  /**
118
118
  * Text message error
119
119
  */
120
- minxText: {
120
+ minText: {
121
121
  type: String,
122
122
  default: 'A data está fora do período permitido',
123
123
  },
@@ -214,7 +214,7 @@ export default defineComponent({
214
214
  if (dateSelected.getTime() >= dateMin.getTime()) {
215
215
  return true;
216
216
  }
217
- return this.minxText;
217
+ return this.minText;
218
218
  }
219
219
  return true;
220
220
  },