@farm-investimentos/front-mfe-components 11.1.0 → 11.2.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 +790 -695
- package/dist/front-mfe-components.common.js.map +1 -1
- package/dist/front-mfe-components.css +2 -2
- package/dist/front-mfe-components.umd.js +790 -695
- 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/Buttons/ExportButton/ExportButton.stories.js +11 -4
- package/src/components/Buttons/ExportButton/ExportButton.vue +29 -70
- package/src/components/Card/Card.scss +2 -2
- package/src/components/Card/Card.stories.js +0 -1
- package/src/components/Card/Card.vue +4 -1
- package/src/components/Card/CardComposition.stories.ts +1 -2
- package/src/components/Card/CardContent/CardContent.stories.js +13 -2
- package/src/components/Card/CardContent/CardContent.vue +6 -3
- package/src/components/Checkbox/Checkbox.scss +10 -0
- package/src/components/Checkbox/Checkbox.stories.js +15 -1
- package/src/components/Checkbox/Checkbox.vue +9 -1
- package/src/components/ContextMenu/ContextMenu.vue +18 -8
- package/src/components/DataTableHeader/DataTableHeader.scss +9 -1
- package/src/components/DataTableHeader/DataTableHeader.stories.js +48 -24
- package/src/components/DataTableHeader/DataTableHeader.vue +7 -11
- package/src/components/DataTablePaginator/DataTablePaginator.scss +24 -7
- package/src/components/DataTablePaginator/DataTablePaginator.vue +45 -11
- package/src/components/DatePicker/DatePicker.vue +6 -0
- package/src/components/DialogHeader/DialogHeader.stories.js +11 -0
- package/src/components/DialogHeader/DialogHeader.vue +8 -9
- package/src/components/Form/Form.stories.js +52 -0
- package/src/components/Form/Form.vue +2 -0
- package/src/components/IconBox/IconBox.scss +8 -0
- package/src/components/IconBox/IconBox.vue +1 -1
- package/src/components/IdCaption/IdCaption.stories.js +18 -0
- package/src/components/IdCaption/IdCaption.vue +21 -2
- package/src/components/Loader/Loader.stories.ts +1 -1
- package/src/components/Loader/Loader.vue +50 -58
- package/src/components/Modal/Modal.scss +0 -1
- package/src/components/Modal/Modal.vue +13 -4
- package/src/components/RangeDatePicker/RangeDatePicker.vue +6 -0
- package/src/components/Switcher/Switcher.scss +6 -0
- package/src/components/Switcher/Switcher.stories.js +28 -0
- package/src/components/Switcher/Switcher.vue +27 -2
- package/src/components/TableContextMenu/TableContextMenu.stories.js +15 -0
- package/src/components/Typography/Typography.scss +2 -1
- package/src/helpers/calculateMainZindex.js +10 -0
- package/src/helpers/date.js +3 -0
- package/src/helpers/index.js +1 -0
- package/src/components/Switcher/Switcher.api.stories.js +0 -20
|
@@ -64,3 +64,18 @@ export const ClickHandler = () => ({
|
|
|
64
64
|
<farm-context-menu :items="[{ label: 'Click me', icon: { type: 'open-in-new' }, handler: 'edit' }]" @edit="editItem()" />
|
|
65
65
|
</div>`,
|
|
66
66
|
});
|
|
67
|
+
|
|
68
|
+
export const OnRightSide = () => ({
|
|
69
|
+
data() {
|
|
70
|
+
return {
|
|
71
|
+
items: [
|
|
72
|
+
{ label: 'Novo', icon: { type: 'open-in-new' } },
|
|
73
|
+
{ label: 'Nome bem longo sem quebrar linha', icon: { color: 'secondary', type: 'open-in-new' } },
|
|
74
|
+
{ label: 'Remover', icon: { color: 'error', type: 'delete' } },
|
|
75
|
+
],
|
|
76
|
+
};
|
|
77
|
+
},
|
|
78
|
+
template: `<div style="padding-left: 80px; display: flex; justify-content: end;">
|
|
79
|
+
<farm-context-menu ref="multi" :items="items" />
|
|
80
|
+
</div>`,
|
|
81
|
+
});
|
package/src/helpers/date.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as calculateMainZindex } from './calculateMainZindex';
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import Switch from './Switcher';
|
|
2
|
-
|
|
3
|
-
export default {
|
|
4
|
-
title: 'Form/Switcher',
|
|
5
|
-
component: Switch,
|
|
6
|
-
};
|
|
7
|
-
|
|
8
|
-
export const Primary = () => ({
|
|
9
|
-
components: { 'farm-switch': Switch },
|
|
10
|
-
data() {
|
|
11
|
-
return {
|
|
12
|
-
selectedValue: false,
|
|
13
|
-
};
|
|
14
|
-
},
|
|
15
|
-
template: `<div>
|
|
16
|
-
<farm-switch v-model="selectedValue" block />
|
|
17
|
-
</div>`,
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
Primary.storyName = 'Basic';
|