@farm-investimentos/front-mfe-components 11.6.2 → 11.7.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/dist/front-mfe-components.common.js +4582 -4418
- 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 +4582 -4418
- 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/MainFilter/MainFilter.scss +1 -1
- package/src/components/MainFilter/MainFilter.vue +14 -8
- package/src/components/MainFilter/__tests__/MainFilter.spec.js +4 -0
- package/src/components/ResourceMetaInfo/ResourceMetaInfo.scss +14 -0
- package/src/components/ResourceMetaInfo/ResourceMetaInfo.stories.js +119 -0
- package/src/components/ResourceMetaInfo/ResourceMetaInfo.vue +100 -0
- package/src/components/ResourceMetaInfo/__tests__/ResourceMetaInfo.spec.js +128 -0
- package/src/components/ResourceMetaInfo/index.ts +4 -0
- package/src/components/Tabs/Tabs.stories.js +11 -0
- package/src/components/TextFieldV2/TextFieldV2.vue +4 -2
- package/src/components/Typography/BodyText/BodyText.stories.js +2 -2
- package/src/components/Typography/Caption/Caption.stories.js +2 -1
- package/src/components/Typography/Heading/Heading.stories.js +2 -1
- package/src/components/Typography/OverlayText/OverlayText.stories.js +2 -1
- package/src/components/Typography/Subtitle/Subtitle.stories.js +2 -3
- package/src/main.ts +2 -1
package/package.json
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
</template>
|
|
13
13
|
</farm-tooltip>
|
|
14
14
|
</farm-label>
|
|
15
|
-
<farm-textfield v-model="inputValue" :id="elementId" @keyup="onKeyUp" />
|
|
15
|
+
<farm-textfield-v2 v-model="inputValue" :id="elementId" @keyup="onKeyUp" />
|
|
16
16
|
</fieldset>
|
|
17
17
|
<farm-btn
|
|
18
18
|
v-if="hasExtraFilters"
|
|
@@ -64,6 +64,9 @@ export default Vue.extend({
|
|
|
64
64
|
type: String,
|
|
65
65
|
default: '',
|
|
66
66
|
},
|
|
67
|
+
/**
|
|
68
|
+
* Toggle filters
|
|
69
|
+
*/
|
|
67
70
|
showFilters: {
|
|
68
71
|
type: Boolean,
|
|
69
72
|
default: false,
|
|
@@ -100,18 +103,20 @@ export default Vue.extend({
|
|
|
100
103
|
onFilterClick() {
|
|
101
104
|
this.$emit('onClick');
|
|
102
105
|
},
|
|
106
|
+
isInvalidKey(keyCode: Number) {
|
|
107
|
+
return (
|
|
108
|
+
(keyCode < 48 && keyCode !== 8 && keyCode !== 46) ||
|
|
109
|
+
(keyCode > 90 && keyCode < 96 && keyCode !== 91) ||
|
|
110
|
+
(keyCode > 105 && keyCode < 186)
|
|
111
|
+
);
|
|
112
|
+
},
|
|
103
113
|
onKeyUp(event: KeyboardEvent) {
|
|
104
114
|
const keyCode = event.keyCode;
|
|
105
115
|
if (keyCode === 13) {
|
|
106
116
|
this.$emit('onEnter', (event.target as HTMLInputElement).value);
|
|
107
117
|
return false;
|
|
108
118
|
}
|
|
109
|
-
|
|
110
|
-
if (
|
|
111
|
-
(keyCode < 48 && keyCode !== 8 && keyCode !== 46) ||
|
|
112
|
-
(keyCode > 90 && keyCode < 96 && keyCode !== 91) ||
|
|
113
|
-
(keyCode > 105 && keyCode < 186)
|
|
114
|
-
) {
|
|
119
|
+
if (this.isInvalidKey(keyCode)) {
|
|
115
120
|
return false;
|
|
116
121
|
}
|
|
117
122
|
if (this.timer) {
|
|
@@ -119,7 +124,8 @@ export default Vue.extend({
|
|
|
119
124
|
this.timer = null;
|
|
120
125
|
}
|
|
121
126
|
this.timer = setTimeout(() => {
|
|
122
|
-
this
|
|
127
|
+
console.log(this.inputValue);
|
|
128
|
+
this.$emit('onInputChange', this.inputValue);
|
|
123
129
|
}, 750);
|
|
124
130
|
},
|
|
125
131
|
},
|
|
@@ -19,6 +19,10 @@ describe('MainFilter component', () => {
|
|
|
19
19
|
component.onFilterClick();
|
|
20
20
|
expect(wrapper.emitted().onClick).toBeTruthy();
|
|
21
21
|
});
|
|
22
|
+
|
|
23
|
+
it('Should check if keyCode is valid', () => {
|
|
24
|
+
expect(component.isInvalidKey(120)).toBeTruthy();
|
|
25
|
+
});
|
|
22
26
|
});
|
|
23
27
|
|
|
24
28
|
describe('computed properties', () => {
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import ResourceMetaInfo from './ResourceMetaInfo.vue';
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
title: 'Display/ResourceMetaInfo',
|
|
5
|
+
component: ResourceMetaInfo,
|
|
6
|
+
parameters: {
|
|
7
|
+
docs: {
|
|
8
|
+
description: {
|
|
9
|
+
component: `ResourceMetaInfo<br />
|
|
10
|
+
selector: <em>farm-resource-metainfo</em><br />
|
|
11
|
+
<span style="color: var(--farm-primary-base);">ready for use</span>
|
|
12
|
+
`,
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
viewMode: 'docs',
|
|
16
|
+
},
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export const Primary = () => ({
|
|
20
|
+
data() {
|
|
21
|
+
return {
|
|
22
|
+
value: false,
|
|
23
|
+
info: {
|
|
24
|
+
createdAt: '21/10/2022',
|
|
25
|
+
updatedAt: '21/10/2022',
|
|
26
|
+
username: 'Test User',
|
|
27
|
+
updatedHours: '10:10:10',
|
|
28
|
+
},
|
|
29
|
+
};
|
|
30
|
+
},
|
|
31
|
+
template: `<div>
|
|
32
|
+
<farm-resource-metainfo :infos="info" />
|
|
33
|
+
</div>`,
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
export const WithoutUpdate = () => ({
|
|
37
|
+
data() {
|
|
38
|
+
return {
|
|
39
|
+
value: false,
|
|
40
|
+
info: {
|
|
41
|
+
createdAt: '21/10/2022',
|
|
42
|
+
updatedAt: null,
|
|
43
|
+
username: 'Test User',
|
|
44
|
+
updatedHours: '10:10:10',
|
|
45
|
+
},
|
|
46
|
+
};
|
|
47
|
+
},
|
|
48
|
+
template: `<div>
|
|
49
|
+
<farm-resource-metainfo :infos="info" />
|
|
50
|
+
</div>`,
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
export const WithoutCreate = () => ({
|
|
54
|
+
data() {
|
|
55
|
+
return {
|
|
56
|
+
value: false,
|
|
57
|
+
info: {
|
|
58
|
+
createdAt: null,
|
|
59
|
+
updatedAt: '21/10/2022',
|
|
60
|
+
username: 'Test User',
|
|
61
|
+
updatedHours: '10:10:10',
|
|
62
|
+
},
|
|
63
|
+
};
|
|
64
|
+
},
|
|
65
|
+
template: `<div>
|
|
66
|
+
<farm-resource-metainfo :infos="info" />
|
|
67
|
+
</div>`,
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
export const ShowUpdateWithNA = () => ({
|
|
71
|
+
data() {
|
|
72
|
+
return {
|
|
73
|
+
value: false,
|
|
74
|
+
info: {
|
|
75
|
+
createdAt: null,
|
|
76
|
+
updatedAt: null,
|
|
77
|
+
username: null,
|
|
78
|
+
updatedHours: null,
|
|
79
|
+
},
|
|
80
|
+
};
|
|
81
|
+
},
|
|
82
|
+
template: `<div>
|
|
83
|
+
<farm-resource-metainfo :infos="info" show-empty-update />
|
|
84
|
+
</div>`,
|
|
85
|
+
});
|
|
86
|
+
|
|
87
|
+
export const ShowCreateWithNA = () => ({
|
|
88
|
+
data() {
|
|
89
|
+
return {
|
|
90
|
+
value: false,
|
|
91
|
+
info: {
|
|
92
|
+
createdAt: null,
|
|
93
|
+
updatedAt: null,
|
|
94
|
+
username: null,
|
|
95
|
+
updatedHours: null,
|
|
96
|
+
},
|
|
97
|
+
};
|
|
98
|
+
},
|
|
99
|
+
template: `<div>
|
|
100
|
+
<farm-resource-metainfo :infos="info" show-empty-create />
|
|
101
|
+
</div>`,
|
|
102
|
+
});
|
|
103
|
+
|
|
104
|
+
export const ShowBothWithNA = () => ({
|
|
105
|
+
data() {
|
|
106
|
+
return {
|
|
107
|
+
value: false,
|
|
108
|
+
info: {
|
|
109
|
+
createdAt: null,
|
|
110
|
+
updatedAt: null,
|
|
111
|
+
username: null,
|
|
112
|
+
updatedHours: null,
|
|
113
|
+
},
|
|
114
|
+
};
|
|
115
|
+
},
|
|
116
|
+
template: `<div>
|
|
117
|
+
<farm-resource-metainfo :infos="info" show-empty-create show-empty-update />
|
|
118
|
+
</div>`,
|
|
119
|
+
});
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="farm-resource-metainfo">
|
|
3
|
+
<div v-if="showCreate">
|
|
4
|
+
<farm-icon color="gray" size="14">calendar-blank</farm-icon>
|
|
5
|
+
<farm-caption color="gray" tag="p" variation="regular"
|
|
6
|
+
>Data de cadastro:
|
|
7
|
+
<farm-caption color="gray" variation="medium" tag="span">{{
|
|
8
|
+
formattedCreatedAt
|
|
9
|
+
}}</farm-caption>
|
|
10
|
+
</farm-caption>
|
|
11
|
+
</div>
|
|
12
|
+
<div v-if="showUpdate">
|
|
13
|
+
<farm-icon color="gray" size="14">history</farm-icon>
|
|
14
|
+
|
|
15
|
+
<farm-caption color="gray" tag="p" variation="regular"
|
|
16
|
+
>Última atualização feita por
|
|
17
|
+
<farm-caption color="gray" variation="medium" tag="span">{{
|
|
18
|
+
formattedUsername
|
|
19
|
+
}}</farm-caption
|
|
20
|
+
>, dia
|
|
21
|
+
<farm-caption color="gray" variation="medium" tag="span">{{
|
|
22
|
+
formattedUpdatedAt
|
|
23
|
+
}}</farm-caption>
|
|
24
|
+
às
|
|
25
|
+
<farm-caption color="gray" variation="medium" tag="span">{{
|
|
26
|
+
formattedUpdatedHours
|
|
27
|
+
}}</farm-caption>
|
|
28
|
+
</farm-caption>
|
|
29
|
+
</div>
|
|
30
|
+
</div>
|
|
31
|
+
</template>
|
|
32
|
+
<script lang="ts">
|
|
33
|
+
import Vue, { computed, PropType, toRefs } from 'vue';
|
|
34
|
+
import Icon from '../Icon';
|
|
35
|
+
import { Caption } from '../Typography';
|
|
36
|
+
|
|
37
|
+
interface ResourceMetaInfoProps {
|
|
38
|
+
createdAt: string;
|
|
39
|
+
updatedAt: string;
|
|
40
|
+
username: string;
|
|
41
|
+
updatedHours: string;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export default Vue.extend({
|
|
45
|
+
name: 'farm-resource-metainfo',
|
|
46
|
+
components: {
|
|
47
|
+
'farm-icon': Icon,
|
|
48
|
+
'farm-caption': Caption,
|
|
49
|
+
},
|
|
50
|
+
props: {
|
|
51
|
+
infos: {
|
|
52
|
+
required: true,
|
|
53
|
+
type: Object as PropType<ResourceMetaInfoProps>,
|
|
54
|
+
},
|
|
55
|
+
showEmptyCreate: {
|
|
56
|
+
type: Boolean,
|
|
57
|
+
default: false,
|
|
58
|
+
},
|
|
59
|
+
showEmptyUpdate: {
|
|
60
|
+
type: Boolean,
|
|
61
|
+
default: false,
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
setup(props) {
|
|
65
|
+
const { infos, showEmptyCreate, showEmptyUpdate } = toRefs(props);
|
|
66
|
+
|
|
67
|
+
const showUpdate = computed(
|
|
68
|
+
() =>
|
|
69
|
+
(infos.value.updatedAt !== null && infos.value.updatedAt !== undefined) ||
|
|
70
|
+
showEmptyUpdate.value
|
|
71
|
+
);
|
|
72
|
+
|
|
73
|
+
const showCreate = computed(
|
|
74
|
+
() =>
|
|
75
|
+
(infos.value.createdAt !== null && infos.value.createdAt !== undefined) ||
|
|
76
|
+
showEmptyCreate.value
|
|
77
|
+
);
|
|
78
|
+
|
|
79
|
+
const formattedCreatedAt = computed(() => infos.value.createdAt || 'N/A');
|
|
80
|
+
|
|
81
|
+
const formattedUpdatedAt = computed(() => infos.value.updatedAt || 'N/A');
|
|
82
|
+
|
|
83
|
+
const formattedUsername = computed(() => infos.value.username || 'N/A');
|
|
84
|
+
|
|
85
|
+
const formattedUpdatedHours = computed(() => infos.value.updatedHours || 'N/A');
|
|
86
|
+
|
|
87
|
+
return {
|
|
88
|
+
showUpdate,
|
|
89
|
+
showCreate,
|
|
90
|
+
formattedCreatedAt,
|
|
91
|
+
formattedUpdatedAt,
|
|
92
|
+
formattedUsername,
|
|
93
|
+
formattedUpdatedHours,
|
|
94
|
+
};
|
|
95
|
+
},
|
|
96
|
+
});
|
|
97
|
+
</script>
|
|
98
|
+
<style lang="scss" scoped>
|
|
99
|
+
@import 'ResourceMetaInfo.scss';
|
|
100
|
+
</style>
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import { shallowMount } from '@vue/test-utils';
|
|
2
|
+
import ResourceMetaInfo from '../ResourceMetaInfo.vue';
|
|
3
|
+
|
|
4
|
+
describe('ResourceMetaInfo component', () => {
|
|
5
|
+
let wrapper;
|
|
6
|
+
let component;
|
|
7
|
+
|
|
8
|
+
beforeEach(() => {
|
|
9
|
+
wrapper = shallowMount(ResourceMetaInfo, {
|
|
10
|
+
propsData: {
|
|
11
|
+
infos: {
|
|
12
|
+
createdAt: '21/10/2022',
|
|
13
|
+
updatedAt: '21/10/2022',
|
|
14
|
+
username: 'Test User',
|
|
15
|
+
updatedHours: '10:10:10',
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
component = wrapper.vm;
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
test('Created hook', () => {
|
|
24
|
+
expect(wrapper).toBeDefined();
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
describe('mount component', () => {
|
|
28
|
+
it('renders correctly', () => {
|
|
29
|
+
expect(wrapper.element).toMatchSnapshot();
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
describe('Computed', () => {
|
|
34
|
+
describe('showUpdate', () => {
|
|
35
|
+
it('should return true when it has an update date', () => {
|
|
36
|
+
expect(component.showUpdate).toBeTruthy();
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
it('should return false when it has not an update date', async () => {
|
|
40
|
+
await wrapper.setProps({
|
|
41
|
+
infos: { updatedAt: null },
|
|
42
|
+
});
|
|
43
|
+
expect(component.showUpdate).toBeFalsy();
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
it('should return true when it has not an update date but showEmptyUpdate is true', async () => {
|
|
47
|
+
await wrapper.setProps({
|
|
48
|
+
infos: { updatedAt: null },
|
|
49
|
+
showEmptyUpdate: true,
|
|
50
|
+
});
|
|
51
|
+
expect(component.showUpdate).toBeTruthy();
|
|
52
|
+
});
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
describe('showCreate', () => {
|
|
56
|
+
it('should return true when it has an create date', () => {
|
|
57
|
+
expect(component.showCreate).toBeTruthy();
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
it('should return false when it has not an create date', async () => {
|
|
61
|
+
await wrapper.setProps({
|
|
62
|
+
infos: { createAt: null },
|
|
63
|
+
});
|
|
64
|
+
expect(component.showCreate).toBeFalsy();
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
it('should return true when it has not an update date but showEmptyCreate is true', async () => {
|
|
68
|
+
await wrapper.setProps({
|
|
69
|
+
infos: { createAt: null },
|
|
70
|
+
showEmptyCreate: true,
|
|
71
|
+
});
|
|
72
|
+
expect(component.showCreate).toBeTruthy();
|
|
73
|
+
});
|
|
74
|
+
});
|
|
75
|
+
|
|
76
|
+
describe('formattedCreatedAt', () => {
|
|
77
|
+
it('should return infos createdAt', () => {
|
|
78
|
+
expect(component.formattedCreatedAt).toBe('21/10/2022');
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
it('should return N/A when infos createdAt is empty', async () => {
|
|
82
|
+
await wrapper.setProps({
|
|
83
|
+
infos: { createAt: null },
|
|
84
|
+
});
|
|
85
|
+
expect(component.formattedCreatedAt).toBe('N/A');
|
|
86
|
+
});
|
|
87
|
+
});
|
|
88
|
+
|
|
89
|
+
describe('formattedUpdatedAt', () => {
|
|
90
|
+
it('should return infos updatedAt', () => {
|
|
91
|
+
expect(component.formattedUpdatedAt).toBe('21/10/2022');
|
|
92
|
+
});
|
|
93
|
+
|
|
94
|
+
it('should return N/A when infos updatedAt is empty', async () => {
|
|
95
|
+
await wrapper.setProps({
|
|
96
|
+
infos: { updatedAt: null },
|
|
97
|
+
});
|
|
98
|
+
expect(component.formattedUpdatedAt).toBe('N/A');
|
|
99
|
+
});
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
describe('formattedUsername', () => {
|
|
103
|
+
it('should return infos updatedAt', () => {
|
|
104
|
+
expect(component.formattedUsername).toBe('Test User');
|
|
105
|
+
});
|
|
106
|
+
|
|
107
|
+
it('should return N/A when infos username is empty', async () => {
|
|
108
|
+
await wrapper.setProps({
|
|
109
|
+
infos: { username: null },
|
|
110
|
+
});
|
|
111
|
+
expect(component.formattedUsername).toBe('N/A');
|
|
112
|
+
});
|
|
113
|
+
});
|
|
114
|
+
|
|
115
|
+
describe('formattedUpdatedHours', () => {
|
|
116
|
+
it('should return infos updatedHours', () => {
|
|
117
|
+
expect(component.formattedUpdatedHours).toBe('10:10:10');
|
|
118
|
+
});
|
|
119
|
+
|
|
120
|
+
it('should return N/A when infos updatedHours is empty', async () => {
|
|
121
|
+
await wrapper.setProps({
|
|
122
|
+
infos: { updatedHours: null },
|
|
123
|
+
});
|
|
124
|
+
expect(component.formattedUpdatedHours).toBe('N/A');
|
|
125
|
+
});
|
|
126
|
+
});
|
|
127
|
+
});
|
|
128
|
+
});
|
|
@@ -3,6 +3,17 @@ import Tabs from './Tabs.vue';
|
|
|
3
3
|
export default {
|
|
4
4
|
title: 'Display/Tabs',
|
|
5
5
|
component: Tabs,
|
|
6
|
+
parameters: {
|
|
7
|
+
docs: {
|
|
8
|
+
description: {
|
|
9
|
+
component: `Tabs<br />
|
|
10
|
+
selector: <em>farm-tabs</em><br />
|
|
11
|
+
<span style="color: var(--farm-primary-base);">ready for use</span>
|
|
12
|
+
`,
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
viewMode: 'docs',
|
|
16
|
+
},
|
|
6
17
|
};
|
|
7
18
|
|
|
8
19
|
export const Primary = () => ({
|
|
@@ -156,12 +156,14 @@ export default Vue.extend({
|
|
|
156
156
|
|
|
157
157
|
let validate = validateFormMethodBuilder(errorBucket, valid, fieldValidator);
|
|
158
158
|
|
|
159
|
-
const onKeyUp = () => {
|
|
159
|
+
const onKeyUp = (event: Event) => {
|
|
160
160
|
isTouched.value = true;
|
|
161
|
+
emit('keyup', event);
|
|
161
162
|
};
|
|
162
163
|
|
|
163
|
-
const onBlur = () => {
|
|
164
|
+
const onBlur = (event: Event) => {
|
|
164
165
|
isBlured.value = true;
|
|
166
|
+
emit('blur', event);
|
|
165
167
|
};
|
|
166
168
|
|
|
167
169
|
const reset = () => {
|
|
@@ -7,7 +7,8 @@ export default {
|
|
|
7
7
|
docs: {
|
|
8
8
|
description: {
|
|
9
9
|
component: `BodyText<br />
|
|
10
|
-
selector: <em>farm-bodytext</em
|
|
10
|
+
selector: <em>farm-bodytext</em><br />
|
|
11
|
+
<span style="color: var(--farm-primary-base);">ready for use</span>
|
|
11
12
|
`,
|
|
12
13
|
},
|
|
13
14
|
},
|
|
@@ -37,7 +38,6 @@ export const Primary = () => ({
|
|
|
37
38
|
});
|
|
38
39
|
|
|
39
40
|
export const CustomTag = () => ({
|
|
40
|
-
components: { 'farm-bodytext': BodyText },
|
|
41
41
|
data() {
|
|
42
42
|
return {
|
|
43
43
|
tags: ['p', 'span', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'legend', 'label', 'li'],
|
|
@@ -7,7 +7,8 @@ export default {
|
|
|
7
7
|
docs: {
|
|
8
8
|
description: {
|
|
9
9
|
component: `Subtitle<br />
|
|
10
|
-
selector: <em>farm-subtitle</em
|
|
10
|
+
selector: <em>farm-subtitle</em><br />
|
|
11
|
+
<span style="color: var(--farm-primary-base);">ready for use</span>
|
|
11
12
|
`,
|
|
12
13
|
},
|
|
13
14
|
},
|
|
@@ -16,7 +17,6 @@ export default {
|
|
|
16
17
|
};
|
|
17
18
|
|
|
18
19
|
export const Primary = () => ({
|
|
19
|
-
components: { 'farm-subtitle': Subtitle },
|
|
20
20
|
data() {
|
|
21
21
|
return {
|
|
22
22
|
types: [1, 2],
|
|
@@ -37,7 +37,6 @@ export const Primary = () => ({
|
|
|
37
37
|
});
|
|
38
38
|
|
|
39
39
|
export const CustomTag = () => ({
|
|
40
|
-
components: { 'farm-subtitle': Subtitle },
|
|
41
40
|
data() {
|
|
42
41
|
return {
|
|
43
42
|
tags: ['p', 'span', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'legend', 'label', 'li'],
|
package/src/main.ts
CHANGED
|
@@ -23,6 +23,7 @@ import CardContext from './components/CardContext';
|
|
|
23
23
|
import DefaultButton from './components/Buttons/DefaultButton';
|
|
24
24
|
import Collapsible from './components/Collapsible';
|
|
25
25
|
import IdCaption from './components/IdCaption';
|
|
26
|
+
import ResourceMetaInfo from './components/ResourceMetaInfo';
|
|
26
27
|
|
|
27
28
|
export {
|
|
28
29
|
DataTableEmptyWrapper,
|
|
@@ -47,6 +48,7 @@ export {
|
|
|
47
48
|
CardContext,
|
|
48
49
|
Collapsible,
|
|
49
50
|
IdCaption,
|
|
51
|
+
ResourceMetaInfo,
|
|
50
52
|
};
|
|
51
53
|
|
|
52
54
|
export * from './components/AlertBox';
|
|
@@ -94,4 +96,3 @@ export * from './components/layout/Container';
|
|
|
94
96
|
export * from './components/layout/ContainerFooter';
|
|
95
97
|
export * from './components/layout/Row';
|
|
96
98
|
export * from './components/layout/Line';
|
|
97
|
-
|