@farm-investimentos/front-mfe-components-vue3 0.0.4 → 0.0.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/dist/front-mfe-components.common.js +4186 -5535
- 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 +4186 -5535
- 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 +89 -89
- package/src/components/AlertBox/AlertBox.stories.js +0 -3
- package/src/components/AlertReload/AlertReload.stories.js +0 -7
- package/src/components/Buttons/ConfirmButton/ConfirmButton.stories.js +0 -4
- package/src/components/Buttons/DangerButton/DangerButton.stories.js +0 -3
- package/src/components/Checkbox/Checkbox.stories.js +1 -1
- package/src/components/Collapsible/Collapsible.stories.js +1 -1
- package/src/components/ContextMenu/ContextMenu.stories.js +1 -1
- package/src/components/DatePicker/DatePicker.stories.js +1 -1
- package/src/components/IconBox/IconBox.stories.js +1 -1
- package/src/components/Logger/Logger.vue +3 -2
- package/src/components/ManagersList/ManagersList.stories.js +1 -1
- package/src/components/MultipleSelectShortener/MultipleSelectShortener.stories.js +1 -1
- package/src/components/PromptUserToConfirm/PromptUserToConfirm.stories.js +1 -1
- package/src/components/RadioGroup/RadioGroup.stories.js +1 -1
- package/src/components/RangeDatePicker/RangeDatePicker.stories.js +1 -1
- package/src/components/ResetTableRowSelection/ResetTableRowSelection.stories.js +1 -1
- package/src/components/SelectModalOptions/SelectModalOptions.scss +1 -1
- package/src/components/SelectModalOptions/SelectModalOptions.stories.js +0 -3
- package/src/components/SelectModalOptions/SelectModalOptions.vue +1 -3
- package/src/components/Switcher/Switcher.stories.js +1 -1
- package/src/components/TableContextMenu/TableContextMenu.stories.js +1 -1
- package/src/components/Tooltip/Tooltip.stories.js +1 -3
- package/src/components/Typography/BodyText/BodyText.stories.js +0 -3
- package/src/components/Typography/Caption/Caption.stories.js +1 -1
- package/src/components/Typography/Heading/Heading.stories.js +1 -1
- package/src/components/Typography/Small/Small.stories.js +0 -3
- package/src/components/Typography/Subtitle/Subtitle.stories.js +1 -1
- package/src/components/Typography/Typography.stories.js +1 -1
- package/src/components/ValueCaption/ValueCaption.stories.js +1 -1
- package/src/examples/Dialog.stories.js +1 -32
- package/src/examples/Table.stories.js +2 -2
- package/src/scss/Sticky-table.scss +3 -3
- package/src/scss/utils.scss +1 -1
package/package.json
CHANGED
|
@@ -1,91 +1,91 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
2
|
+
"name": "@farm-investimentos/front-mfe-components-vue3",
|
|
3
|
+
"version": "0.0.5",
|
|
4
|
+
"private": false,
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "git://github.com/Farm-Investimentos/front-mfe-components-vue3.git"
|
|
8
|
+
},
|
|
9
|
+
"author": "farm investimentos",
|
|
10
|
+
"main": "./dist/front-mfe-components.common.js",
|
|
11
|
+
"jsdelivr": "dist/front-mfe-components.umd.min.js",
|
|
12
|
+
"unpkg": "dist/front-mfe-components.umd.min.js",
|
|
13
|
+
"files": [
|
|
14
|
+
"dist/*",
|
|
15
|
+
"src/*"
|
|
16
|
+
],
|
|
17
|
+
"scripts": {
|
|
18
|
+
"build": "npm run build:components",
|
|
19
|
+
"build-storybook": "storybook build",
|
|
20
|
+
"build:components": "vue-cli-service build --target lib --name front-mfe-components src/main.ts",
|
|
21
|
+
"lint": "vue-cli-service lint --fix",
|
|
22
|
+
"serve": "vue-cli-service serve",
|
|
23
|
+
"storybook": "storybook dev -p 6006",
|
|
24
|
+
"test:coverage": "jest --updateSnapshot --coverage",
|
|
25
|
+
"test:unit": "jest --updateSnapshot"
|
|
26
|
+
},
|
|
27
|
+
"browserslist": [
|
|
28
|
+
"> 1%",
|
|
29
|
+
"last 2 versions",
|
|
30
|
+
"not dead"
|
|
31
|
+
],
|
|
32
|
+
"dependencies": {
|
|
33
|
+
"@farm-investimentos/front-mfe-libs-ts": "^2.5.0",
|
|
34
|
+
"@vuepic/vue-datepicker": "^7.2.0",
|
|
35
|
+
"core-js": "^3.6.5",
|
|
36
|
+
"text-mask-addons": "^3.8.0",
|
|
37
|
+
"v-mask": "^2.3.0",
|
|
38
|
+
"vue": "3.3.4",
|
|
39
|
+
"vuetify": "^3.3.22",
|
|
40
|
+
"webpack": "^4.39.3"
|
|
41
|
+
},
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"@babel/core": "7.17.9",
|
|
44
|
+
"@babel/generator": "7.17.9",
|
|
45
|
+
"@storybook/addon-essentials": "^7.5.0",
|
|
46
|
+
"@storybook/addon-interactions": "^7.5.0",
|
|
47
|
+
"@storybook/addon-links": "^7.5.0",
|
|
48
|
+
"@storybook/blocks": "^7.5.0",
|
|
49
|
+
"@storybook/testing-library": "^0.2.2",
|
|
50
|
+
"@storybook/vue3": "^7.5.0",
|
|
51
|
+
"@storybook/vue3-vite": "^7.5.0",
|
|
52
|
+
"@tsconfig/node18": "^18.2.2",
|
|
53
|
+
"@types/jest": "^29.0.0",
|
|
54
|
+
"@types/node": "^18.17.17",
|
|
55
|
+
"@typescript-eslint/eslint-plugin": "^4.18.0",
|
|
56
|
+
"@typescript-eslint/parser": "^4.18.0",
|
|
57
|
+
"@vitejs/plugin-vue": "^4.3.4",
|
|
58
|
+
"@vue/cli-plugin-babel": "~4.5.0",
|
|
59
|
+
"@vue/cli-plugin-eslint": "~4.5.0",
|
|
60
|
+
"@vue/cli-plugin-typescript": "~4.5.0",
|
|
61
|
+
"@vue/cli-plugin-unit-jest": "^4.5.12",
|
|
62
|
+
"@vue/cli-service": "^4.5.13",
|
|
63
|
+
"@vue/compiler-sfc": "^3.0.0",
|
|
64
|
+
"@vue/eslint-config-typescript": "^7.0.0",
|
|
65
|
+
"@vue/test-utils": "^2.3.2",
|
|
66
|
+
"@vue/tsconfig": "^0.4.0",
|
|
67
|
+
"@vue/vue3-jest": "^29.2.3",
|
|
68
|
+
"babel-eslint": "^10.1.0",
|
|
69
|
+
"babel-jest": "^29.5.0",
|
|
70
|
+
"babel-loader": "^8.3.0",
|
|
71
|
+
"babel-plugin-transform-es2015-modules-commonjs": "^6.26.2",
|
|
72
|
+
"eslint": "^6.7.2",
|
|
73
|
+
"eslint-plugin-vue": "^7.1.0",
|
|
74
|
+
"npm-run-all2": "^6.0.6",
|
|
75
|
+
"react": "^18.2.0",
|
|
76
|
+
"react-dom": "^18.2.0",
|
|
77
|
+
"sass": "~1.32.0",
|
|
78
|
+
"sass-loader": "^10.0.0",
|
|
79
|
+
"storybook": "^7.5.0",
|
|
80
|
+
"typescript": "~4.1.5",
|
|
81
|
+
"vite": "^4.4.9",
|
|
82
|
+
"vue-loader": "^16.8.3",
|
|
83
|
+
"vue-tsc": "^1.8.11"
|
|
84
|
+
},
|
|
85
|
+
"engines": {
|
|
86
|
+
"node": ">=18.0.0 <20.0.0"
|
|
87
|
+
},
|
|
88
|
+
"publishConfig": {
|
|
89
|
+
"@farm-investimentos:registry": "https://registry.npmjs.org"
|
|
90
|
+
}
|
|
91
91
|
}
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import AlertBox from './AlertBox.vue';
|
|
2
1
|
import baseThemeColors from '../../configurations/_theme-colors-base.module.scss';
|
|
3
2
|
const colors = Object.keys(baseThemeColors);
|
|
4
3
|
|
|
5
|
-
|
|
6
4
|
export default {
|
|
7
5
|
title: 'Feedback/AlertBox',
|
|
8
|
-
component: AlertBox,
|
|
9
6
|
parameters: {
|
|
10
7
|
docs: {
|
|
11
8
|
description: {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
// import { withDesign } from 'storybook-addon-designs';
|
|
2
|
-
import AlertReload from './AlertReload';
|
|
3
2
|
|
|
4
3
|
export default {
|
|
5
4
|
title: 'Feedback/AlertReload',
|
|
@@ -16,18 +15,12 @@ export default {
|
|
|
16
15
|
};
|
|
17
16
|
|
|
18
17
|
export const Primary = () => ({
|
|
19
|
-
components: {
|
|
20
|
-
'farm-alert-reload': AlertReload,
|
|
21
|
-
},
|
|
22
18
|
template: `<div style="width: 480px;">
|
|
23
19
|
<farm-alert-reload label="Text" />
|
|
24
20
|
</div>`,
|
|
25
21
|
});
|
|
26
22
|
|
|
27
23
|
export const Vertical = () => ({
|
|
28
|
-
components: {
|
|
29
|
-
'farm-alert-reload': AlertReload,
|
|
30
|
-
},
|
|
31
24
|
template: `<div style="width: 480px;">
|
|
32
25
|
<farm-alert-reload label="Text" vertical />
|
|
33
26
|
</div>`,
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import ConfirmButton from './ConfirmButton.vue';
|
|
2
|
-
|
|
3
1
|
export default {
|
|
4
2
|
title: 'Buttons/Confirm',
|
|
5
|
-
component: ConfirmButton,
|
|
6
3
|
parameters: {
|
|
7
4
|
docs: {
|
|
8
5
|
description: {
|
|
@@ -40,7 +37,6 @@ export const Listener = () => ({
|
|
|
40
37
|
});
|
|
41
38
|
|
|
42
39
|
export const Iconed = () => ({
|
|
43
|
-
components: { ConfirmButton },
|
|
44
40
|
template: `<div>
|
|
45
41
|
<ConfirmButton :icon="true">default icon</ConfirmButton>
|
|
46
42
|
<ConfirmButton :icon="true" customIcon="information-outline">information-outline</ConfirmButton>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// import { withDesign } from 'storybook-addon-designs';
|
|
2
|
-
import IconBox from './IconBox';
|
|
2
|
+
import IconBox from './IconBox.vue';
|
|
3
3
|
import baseThemeColors from '../../configurations/_theme-colors-base.module.scss';
|
|
4
4
|
const colors = Object.keys(baseThemeColors);
|
|
5
5
|
import sizes from '../../configurations/sizes';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<section :class="{ 'logger': true, 'logger--horizontal': !vertical, 'logger--left-aligned': align === 'left' }">
|
|
3
|
-
|
|
3
|
+
<!-- eslint-disable-next-line vue/no-v-for-template-key -->
|
|
4
|
+
<template v-for="(item, index) in items" :key="`logger_item_${index}`">
|
|
4
5
|
<farm-logger-item :item="item" :class="{
|
|
5
6
|
'logger__item--horizontal': !vertical,
|
|
6
7
|
'logger__item--left-aligned': align === 'left',
|
|
@@ -9,7 +10,7 @@
|
|
|
9
10
|
logger__divider: true,
|
|
10
11
|
[dividerCssClass(index)]: true,
|
|
11
12
|
}" :key="'divider_' + index"></div>
|
|
12
|
-
</
|
|
13
|
+
</template>
|
|
13
14
|
</section>
|
|
14
15
|
</template>
|
|
15
16
|
<script lang="ts">
|
|
@@ -50,8 +50,6 @@
|
|
|
50
50
|
</fieldset>
|
|
51
51
|
<v-data-table
|
|
52
52
|
id="v-data-table--default"
|
|
53
|
-
hide-default-header
|
|
54
|
-
hide-default-footer
|
|
55
53
|
:headers="headers"
|
|
56
54
|
:items="items"
|
|
57
55
|
:options.sync="pagination"
|
|
@@ -109,7 +107,7 @@
|
|
|
109
107
|
export default {
|
|
110
108
|
name: 'farm-select-modal-options',
|
|
111
109
|
components: {
|
|
112
|
-
|
|
110
|
+
// 'v-data-table': VDataTable,
|
|
113
111
|
},
|
|
114
112
|
props: {
|
|
115
113
|
/**
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
// import { withDesign } from 'storybook-addon-designs';
|
|
2
|
-
import Tooltip from '.';
|
|
3
2
|
import baseThemeColors from '../../configurations/_theme-colors-base.module.scss';
|
|
4
3
|
const colors = Object.keys(baseThemeColors);
|
|
5
4
|
|
|
6
5
|
export default {
|
|
7
6
|
title: 'Interactions/Tooltip',
|
|
8
|
-
component: Tooltip,
|
|
9
7
|
// decorators: [withDesign],
|
|
10
8
|
parameters: {
|
|
11
9
|
docs: {
|
|
@@ -41,7 +39,7 @@ export const Tooltips = () => ({
|
|
|
41
39
|
this is the tooltip for {{ color }}
|
|
42
40
|
</span>
|
|
43
41
|
<template v-slot:activator="{ on, attrs }">
|
|
44
|
-
{{ color }}
|
|
42
|
+
<farm-bodytext :color="color">{{ color }}</farm-bodytext>
|
|
45
43
|
</template>
|
|
46
44
|
</farm-tooltip>
|
|
47
45
|
</div>`,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import Typography from './Typography';
|
|
1
|
+
import Typography from './Typography.vue';
|
|
2
2
|
import sizes from '../../configurations/sizes';
|
|
3
3
|
import baseThemeColors from '../../configurations/_theme-colors-base.module.scss';
|
|
4
4
|
import bwThemeColors from '../../configurations/_theme-colors-bw.module.scss';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// import { withDesign } from 'storybook-addon-designs';
|
|
2
|
-
import ValueCaption from '.';
|
|
2
|
+
import ValueCaption from './ValueCaption.vue';
|
|
3
3
|
import baseThemeColors from '../../configurations/_theme-colors-base.module.scss';
|
|
4
4
|
const colors = Object.keys(baseThemeColors);
|
|
5
5
|
|
|
@@ -126,35 +126,4 @@ export const CustomHtml = () => ({
|
|
|
126
126
|
Open
|
|
127
127
|
</farm-btn>
|
|
128
128
|
</div>`,
|
|
129
|
-
|
|
130
|
-
});
|
|
131
|
-
=======
|
|
132
|
-
});
|
|
133
|
-
|
|
134
|
-
export const DisabledHtml = () => ({
|
|
135
|
-
methods: {
|
|
136
|
-
openDialog() {
|
|
137
|
-
this.$dialog
|
|
138
|
-
.confirm(
|
|
139
|
-
{
|
|
140
|
-
title: 'Dialog title',
|
|
141
|
-
body: `This is a text with <strong>html markup</strong> and<br />break line!<br />
|
|
142
|
-
Also with an <i class="mdi mdi-book"></i>book icon<br />
|
|
143
|
-
and some <span style="color: var(--farm-warning-base)">color</span>`,
|
|
144
|
-
},
|
|
145
|
-
{
|
|
146
|
-
html: false,
|
|
147
|
-
okText: 'Button',
|
|
148
|
-
}
|
|
149
|
-
)
|
|
150
|
-
.then(() => {})
|
|
151
|
-
.catch(() => {});
|
|
152
|
-
},
|
|
153
|
-
},
|
|
154
|
-
template: `<div style="display: flex; flex-direction: column; max-width: 160px; width: 100%;">
|
|
155
|
-
<farm-btn @click="openDialog">
|
|
156
|
-
Open
|
|
157
|
-
</farm-btn>
|
|
158
|
-
</div>`,
|
|
159
|
-
});
|
|
160
|
-
>>>>>>> vuejsdialog
|
|
129
|
+
});
|
|
@@ -4,7 +4,7 @@ import { VDataTable } from 'vuetify/labs/components';
|
|
|
4
4
|
const headers = [
|
|
5
5
|
{
|
|
6
6
|
title: 'ID',
|
|
7
|
-
sortable:
|
|
7
|
+
sortable: false,
|
|
8
8
|
value: 'id',
|
|
9
9
|
width: 80,
|
|
10
10
|
align: 'left',
|
|
@@ -12,7 +12,7 @@ const headers = [
|
|
|
12
12
|
{
|
|
13
13
|
title: 'Name',
|
|
14
14
|
sortable: false,
|
|
15
|
-
value: '
|
|
15
|
+
value: 'name',
|
|
16
16
|
width: 160,
|
|
17
17
|
align: 'left',
|
|
18
18
|
},
|
|
@@ -19,7 +19,7 @@ $defaultLefts: 0, 4rem, 4rem;
|
|
|
19
19
|
border-bottom: none;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
.v-
|
|
22
|
+
.v-table__wrapper {
|
|
23
23
|
border-top: 1px solid var(--farm-gray-lighten);
|
|
24
24
|
border-bottom: 1px solid var(--farm-gray-lighten);
|
|
25
25
|
}
|
|
@@ -35,7 +35,7 @@ $defaultLefts: 0, 4rem, 4rem;
|
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
&.v-
|
|
38
|
+
&.v-table__wrapper>.v-table__wrapper>table {
|
|
39
39
|
|
|
40
40
|
>tbody>tr>td:first-child,
|
|
41
41
|
>thead>tr>th:first-child {
|
|
@@ -68,7 +68,7 @@ $defaultLefts: 0, 4rem, 4rem;
|
|
|
68
68
|
padding-left: 24px;
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
-
th
|
|
71
|
+
th {
|
|
72
72
|
color: var(--farm-secondary-green-darken);
|
|
73
73
|
font-size: 14px;
|
|
74
74
|
font-weight: 700;
|