@farm-investimentos/front-mfe-components 11.11.0 → 11.11.1
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 +117 -104
- 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 +117 -104
- 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/Logger/LoggerItem/ILoggerItem.ts +1 -0
- package/src/components/Logger/LoggerItem/LoggerItem.scss +2 -1
- package/src/components/Logger/LoggerItem/LoggerItem.stories.js +14 -0
- package/src/components/Logger/LoggerItem/LoggerItem.vue +8 -2
- package/src/components/Logger/LoggerItem/mappingIconKeys.ts +5 -0
- package/src/components/layout/Basic.stories.js +23 -1
package/package.json
CHANGED
|
@@ -74,6 +74,20 @@ export const Info = () => ({
|
|
|
74
74
|
template: `<farm-logger-item :item="item" />`,
|
|
75
75
|
});
|
|
76
76
|
|
|
77
|
+
export const ExtraMessage = () => ({
|
|
78
|
+
data() {
|
|
79
|
+
return {
|
|
80
|
+
item: {
|
|
81
|
+
message: 'Recusado entre as pré elegíveis',
|
|
82
|
+
extraMessage: 'More text',
|
|
83
|
+
formattedDate: '13/06/2022 20:40',
|
|
84
|
+
status: 'info',
|
|
85
|
+
},
|
|
86
|
+
};
|
|
87
|
+
},
|
|
88
|
+
template: `<farm-logger-item :item="item" />`,
|
|
89
|
+
});
|
|
90
|
+
|
|
77
91
|
export const CustomIcon = () => ({
|
|
78
92
|
data() {
|
|
79
93
|
return {
|
|
@@ -13,10 +13,13 @@
|
|
|
13
13
|
<span class="logger__message">
|
|
14
14
|
{{ item.message }}
|
|
15
15
|
</span>
|
|
16
|
-
<span class="logger__username">
|
|
16
|
+
<span v-if="item.userName" class="logger__username">
|
|
17
17
|
<i class="mdi mdi-account-circle" />
|
|
18
18
|
{{ item.userName }}
|
|
19
19
|
</span>
|
|
20
|
+
<span class="logger__extramessage">
|
|
21
|
+
{{ item.extraMessage }}
|
|
22
|
+
</span>
|
|
20
23
|
</div>
|
|
21
24
|
<farm-btn
|
|
22
25
|
v-if="hasDetails"
|
|
@@ -32,6 +35,7 @@
|
|
|
32
35
|
<script lang="ts">
|
|
33
36
|
import Vue, { PropType } from 'vue';
|
|
34
37
|
import ILoggerItem from './ILoggerItem';
|
|
38
|
+
import mappingIconKeys from './mappingIconKeys';
|
|
35
39
|
|
|
36
40
|
export default Vue.extend({
|
|
37
41
|
name: 'farm-logger-item',
|
|
@@ -40,6 +44,7 @@ export default Vue.extend({
|
|
|
40
44
|
* Logger item
|
|
41
45
|
*/
|
|
42
46
|
item: { required: true, type: Object as PropType<ILoggerItem> },
|
|
47
|
+
customIcon: { type: String, required: false },
|
|
43
48
|
},
|
|
44
49
|
methods: {
|
|
45
50
|
callDetails(): void {
|
|
@@ -54,7 +59,8 @@ export default Vue.extend({
|
|
|
54
59
|
if (!this.item.status) {
|
|
55
60
|
return '';
|
|
56
61
|
}
|
|
57
|
-
|
|
62
|
+
|
|
63
|
+
return this.item.status ? mappingIconKeys[this.item.status] : 'error';
|
|
58
64
|
},
|
|
59
65
|
buttonColor(): string {
|
|
60
66
|
if (this.item.status === 'success') {
|
|
@@ -35,7 +35,7 @@ export const Structure = () => ({
|
|
|
35
35
|
<farm-row>
|
|
36
36
|
<farm-col md="6" lg="3">
|
|
37
37
|
coluna 1
|
|
38
|
-
</farm-col
|
|
38
|
+
</farm-col>
|
|
39
39
|
<farm-col md="6" lg="3">
|
|
40
40
|
coluna 2
|
|
41
41
|
</farm-col>
|
|
@@ -46,6 +46,28 @@ export const Structure = () => ({
|
|
|
46
46
|
coluna 4
|
|
47
47
|
</farm-col>
|
|
48
48
|
</farm-row>
|
|
49
|
+
|
|
50
|
+
<farm-row>
|
|
51
|
+
<farm-col lg="2">
|
|
52
|
+
coluna 1
|
|
53
|
+
</farm-col>
|
|
54
|
+
<farm-col lg="2">
|
|
55
|
+
coluna 2
|
|
56
|
+
</farm-col>
|
|
57
|
+
<farm-col lg="2">
|
|
58
|
+
coluna 3
|
|
59
|
+
</farm-col>
|
|
60
|
+
<farm-col lg="2">
|
|
61
|
+
coluna 4
|
|
62
|
+
</farm-col>
|
|
63
|
+
<farm-col lg="2">
|
|
64
|
+
coluna 5
|
|
65
|
+
</farm-col>
|
|
66
|
+
<farm-col lg="2">
|
|
67
|
+
coluna 6
|
|
68
|
+
</farm-col>
|
|
69
|
+
</farm-row>
|
|
70
|
+
|
|
49
71
|
<farm-row :extra-decrease="true">
|
|
50
72
|
<farm-container-footer>
|
|
51
73
|
Footer content
|