@farm-investimentos/front-mfe-components-vue3 0.0.5 → 0.0.7
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/README.md +9 -3
- package/dist/front-mfe-components.common.js +4968 -4948
- 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 +4968 -4948
- 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 +19 -16
- package/src/components/AlertBox/AlertBox.vue +3 -2
- package/src/components/AlertBox/__tests__/AlertBox.spec.js +2 -1
- package/src/components/AlertBox/__tests__/valueWatcher.spec.js +1 -0
- package/src/components/AlertReload/__tests__/AlertReload.spec.js +1 -0
- package/src/components/ButtonToggle/ButtonToggle.vue +4 -3
- package/src/components/ButtonToggle/__tests__/ButtonToggle.spec.js +2 -1
- package/src/components/Buttons/ConfirmButton/__tests__/ConfirmButton.spec.js +1 -0
- package/src/components/Buttons/DangerButton/__tests__/DangerButton.spec.js +1 -0
- package/src/components/Buttons/DefaultButton/DefaultButton.scss +10 -9
- package/src/components/Buttons/DefaultButton/DefaultButton.stories.js +3 -1
- package/src/components/Buttons/DefaultButton/DefaultButton.vue +32 -22
- package/src/components/Buttons/DefaultButton/__tests__/DefaultButton.spec.js +6 -1
- package/src/components/Buttons/ExportButton/__tests__/ExportButton.spec.js +1 -0
- package/src/components/Buttons/ImportButton/__tests__/ImportButton.spec.js +1 -0
- package/src/components/Buttons/MultiImportButton/__tests__/MultiImportButton.spec.js +1 -0
- package/src/components/Buttons/RemoveButton/__tests__/RemoveButton.spec.js +1 -0
- package/src/components/Buttons/ToggleButton/__tests__/ToggleButton.spec.js +1 -0
- package/src/components/Card/CardContent/__tests__/CardContent.spec.js +2 -1
- package/src/components/Card/__tests__/Card.spec.js +2 -1
- package/src/components/Card/index.ts +1 -0
- package/src/components/Checkbox/Checkbox.stories.js +2 -0
- package/src/components/Checkbox/Checkbox.vue +6 -3
- package/src/components/Checkbox/__tests__/Checkbox.spec.js +2 -1
- package/src/components/Checkbox/__tests__/modelValueWatcher.spec.js +1 -0
- package/src/components/Chip/Chip.stories.js +2 -0
- package/src/components/Chip/__tests__/Chip.spec.js +2 -1
- package/src/components/ChipInviteStatus/__tests__/ChipInviteStatus.spec.js +2 -1
- package/src/components/Collapsible/Collapsible.stories.js +2 -0
- package/src/components/Collapsible/Collapsible.vue +34 -8
- package/src/components/ContextMenu/ContextMenu.vue +1 -0
- package/src/components/ContextMenu/__tests__/ContextMenu.spec.js +2 -1
- package/src/components/CopyToClipboard/CopyToClipboard.vue +1 -0
- package/src/components/CopyToClipboard/__tests__/CopyToClipboard.spec.js +2 -1
- package/src/components/DataTableEmptyWrapper/__tests__/DataTableEmptyWrapper.spec.js +2 -1
- package/src/components/DataTableHeader/__tests__/DataTableHeader.spec.js +2 -1
- package/src/components/DataTablePaginator/__tests__/DataTablePaginator.spec.js +2 -1
- package/src/components/DatePicker/DatePicker.vue +2 -1
- package/src/components/DatePicker/__tests__/DatePicker.spec.js +2 -1
- package/src/components/DialogFooter/DialogFooter.vue +1 -0
- package/src/components/DialogFooter/__tests__/DialogFooter.spec.js +2 -1
- package/src/components/DialogHeader/DialogHeader.scss +1 -1
- package/src/components/DialogHeader/__tests__/DialogHeader.spec.js +2 -1
- package/src/components/DialogPrompt/index.ts +3 -1
- package/src/components/DialogPrompt/utils/index.ts +1 -1
- package/src/components/Form/Form.stories.js +118 -159
- package/src/components/Form/Form.vue +11 -20
- package/src/components/Form/__tests__/Form.spec.js +1 -0
- package/src/components/Icon/Icon.stories.js +4 -2
- package/src/components/Icon/__tests__/Icon.spec.js +1 -0
- package/src/components/IconBox/IconBox.stories.js +1 -0
- package/src/components/IconBox/__tests__/IconBox.spec.js +2 -1
- package/src/components/IdCaption/__tests__/IdCaption.spec.js +1 -0
- package/src/components/Label/__tests__/Label.spec.js +2 -1
- package/src/components/List/List.vue +1 -0
- package/src/components/List/__tests__/List.spec.js +2 -1
- package/src/components/ListItem/ListItem.stories.js +2 -0
- package/src/components/ListItem/__tests__/ListItem.spec.js +2 -1
- package/src/components/Loader/Loader.vue +1 -0
- package/src/components/Loader/__tests__/Loader.spec.js +2 -1
- package/src/components/Logger/Logger.vue +1 -0
- package/src/components/Logger/LoggerItem/LoggerItem.vue +1 -0
- package/src/components/Logger/LoggerItem/__tests__/LoggerItem.spec.js +1 -0
- package/src/components/Logger/__tests__/Logger.spec.js +1 -0
- package/src/components/MainFilter/__tests__/MainFilter.spec.js +1 -0
- package/src/components/ManagersList/__tests__/ManagersList.spec.js +1 -0
- package/src/components/Modal/Modal.vue +2 -1
- package/src/components/ModalPromptUser/__tests__/ModalPromptUser.spec.js +3 -2
- package/src/components/MultipleFilePicker/MultipleFilePicker.vue +1 -0
- package/src/components/MultipleSelectShortener/__tests__/MultipleSelectShortener.spec.js +1 -0
- package/src/components/ProgressBar/__tests__/ProgressBar.spec.js +2 -1
- package/src/components/PromptUserToConfirm/PromptUserToConfirm.vue +12 -7
- package/src/components/PromptUserToConfirm/__tests__/PromptUserToConfirm.spec.js +3 -2
- package/src/components/Radio/Radio.stories.js +3 -1
- package/src/components/RadioGroup/RadioGroup.vue +3 -2
- package/src/components/RadioGroup/__tests__/RadioGroup.spec.js +2 -1
- package/src/components/RangeDatePicker/RangeDatePicker.vue +1 -1
- package/src/components/RangeDatePicker/__tests__/RangeDatePicker.spec.js +2 -1
- package/src/components/ResetTableRowSelection/__tests__/ResetTableRowSelection.spec.js +2 -1
- package/src/components/ResourceMetaInfo/__tests__/ResourceMetaInfo.spec.js +2 -1
- package/src/components/Select/Select.vue +6 -3
- package/src/components/Select/__tests__/Select.spec.js +2 -1
- package/src/components/SelectAutoComplete/SelectAutoComplete.vue +6 -3
- package/src/components/SelectAutoComplete/__tests__/SelectAutoComplete.spec.js +2 -1
- package/src/components/SelectModalOptions/SelectModalOptions.vue +3 -3
- package/src/components/SelectModalOptions/__tests__/SelectModalOptions.spec.js +7 -5
- package/src/components/Stepper/StepperHeader/StepperHeader.vue +1 -0
- package/src/components/Stepper/StepperHeader/__tests__/StepperHeader.spec.js +1 -0
- package/src/components/Switcher/Switcher.stories.js +2 -0
- package/src/components/Switcher/__tests__/Switcher.spec.js +1 -0
- package/src/components/TableContextMenu/__tests__/TableContextMenu.spec.js +2 -1
- package/src/components/Tabs/__tests__/Tabs.spec.js +1 -0
- package/src/components/TextArea/TextArea.vue +3 -2
- package/src/components/TextArea/__tests__/TextArea.spec.js +2 -1
- package/src/components/TextFieldV2/TextFieldV2.stories.js +2 -1
- package/src/components/TextFieldV2/TextFieldV2.vue +6 -5
- package/src/components/TextFieldV2/__tests__/TextFieldV2.spec.js +2 -1
- package/src/components/Tooltip/Tooltip.vue +4 -3
- package/src/components/Tooltip/__tests__/Tooltip.spec.js +2 -1
- package/src/components/Typography/BodyText/BodyText.stories.js +0 -1
- package/src/components/Typography/BodyText/BodyText.vue +1 -0
- package/src/components/Typography/BodyText/__tests__/BodyText.spec.js +2 -1
- package/src/components/Typography/Caption/__tests__/Caption.spec.js +2 -1
- package/src/components/Typography/Heading/__tests__/Heading.spec.js +2 -1
- package/src/components/Typography/OverlayText/__tests__/OverlayText.spec.js +2 -1
- package/src/components/Typography/Small/__tests__/Small.spec.js +2 -1
- package/src/components/Typography/Subtitle/__tests__/Subtitle.spec.js +2 -1
- package/src/components/Typography/Typography.stories.js +3 -1
- package/src/components/Typography/Typography.vue +1 -0
- package/src/components/Typography/__tests__/Typography.spec.js +2 -1
- package/src/components/Typography/index.ts +3 -2
- package/src/components/ValueCaption/ValueCaption.stories.js +2 -0
- package/src/components/ValueCaption/__tests__/ValueCaption.spec.js +1 -0
- package/src/components/layout/Box/Box.stories.js +2 -0
- package/src/components/layout/Box/__tests__/Box.spec.js +2 -1
- package/src/components/layout/Col/Col.stories.js +2 -0
- package/src/components/layout/Col/__tests__/Col.spec.js +2 -1
- package/src/components/layout/Line/Line.stories.js +2 -0
- package/src/components/layout/Line/__tests__/Line.spec.js +2 -1
- package/src/components/layout/Row/Row.stories.js +2 -0
- package/src/components/layout/Row/__tests__/Row.spec.js +2 -1
- package/src/examples/Colors.stories.js +3 -3
- package/src/helpers/walk.ts +19 -0
- package/src/main.ts +13 -15
- package/src/plugins/DialogPrompt/utils/__tests__/modalFooter.spec.js +18 -0
- package/src/plugins/DialogPrompt/utils/__tests__/modalHeader.spec.js +15 -0
- package/src/plugins/DialogPrompt/utils/index.ts +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { shallowMount } from '@vue/test-utils';
|
|
2
|
+
|
|
2
3
|
import Tooltip from '../Tooltip';
|
|
3
4
|
|
|
4
5
|
describe('Tooltip component', () => {
|
|
@@ -14,7 +15,7 @@ describe('Tooltip component', () => {
|
|
|
14
15
|
|
|
15
16
|
describe('mount component', () => {
|
|
16
17
|
it('renders correctly', () => {
|
|
17
|
-
expect(wrapper.element).
|
|
18
|
+
expect(wrapper.element).toBeDefined();
|
|
18
19
|
});
|
|
19
20
|
});
|
|
20
21
|
});
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { shallowMount } from '@vue/test-utils';
|
|
2
|
+
|
|
2
3
|
import BodyText from '../BodyText.vue';
|
|
3
4
|
|
|
4
5
|
describe('BodyText component', () => {
|
|
@@ -16,7 +17,7 @@ describe('BodyText component', () => {
|
|
|
16
17
|
|
|
17
18
|
describe('mount component', () => {
|
|
18
19
|
it('renders correctly', () => {
|
|
19
|
-
expect(wrapper.element).
|
|
20
|
+
expect(wrapper.element).toBeDefined();
|
|
20
21
|
});
|
|
21
22
|
});
|
|
22
23
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { shallowMount } from '@vue/test-utils';
|
|
2
|
+
|
|
2
3
|
import Caption from '../Caption.vue';
|
|
3
4
|
|
|
4
5
|
describe('Caption component', () => {
|
|
@@ -16,7 +17,7 @@ describe('Caption component', () => {
|
|
|
16
17
|
|
|
17
18
|
describe('mount component', () => {
|
|
18
19
|
it('renders correctly', () => {
|
|
19
|
-
expect(wrapper.element).
|
|
20
|
+
expect(wrapper.element).toBeDefined();
|
|
20
21
|
});
|
|
21
22
|
});
|
|
22
23
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { shallowMount } from '@vue/test-utils';
|
|
2
|
+
|
|
2
3
|
import Heading from '../Heading.vue';
|
|
3
4
|
|
|
4
5
|
describe('Heading component', () => {
|
|
@@ -16,7 +17,7 @@ describe('Heading component', () => {
|
|
|
16
17
|
|
|
17
18
|
describe('mount component', () => {
|
|
18
19
|
it('renders correctly', () => {
|
|
19
|
-
expect(wrapper.element).
|
|
20
|
+
expect(wrapper.element).toBeDefined();
|
|
20
21
|
expect(component.tag).toEqual('h1');
|
|
21
22
|
});
|
|
22
23
|
});
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { shallowMount } from '@vue/test-utils';
|
|
2
|
+
|
|
2
3
|
import OverlayText from '../OverlayText.vue';
|
|
3
4
|
|
|
4
5
|
describe('OverlayText component', () => {
|
|
@@ -14,7 +15,7 @@ describe('OverlayText component', () => {
|
|
|
14
15
|
|
|
15
16
|
describe('mount component', () => {
|
|
16
17
|
it('renders correctly', () => {
|
|
17
|
-
expect(wrapper.element).
|
|
18
|
+
expect(wrapper.element).toBeDefined();
|
|
18
19
|
});
|
|
19
20
|
});
|
|
20
21
|
});
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { shallowMount } from '@vue/test-utils';
|
|
2
|
+
|
|
2
3
|
import Small from '../Small.vue';
|
|
3
4
|
|
|
4
5
|
describe('Small component', () => {
|
|
@@ -16,7 +17,7 @@ describe('Small component', () => {
|
|
|
16
17
|
|
|
17
18
|
describe('mount component', () => {
|
|
18
19
|
it('renders correctly', () => {
|
|
19
|
-
expect(wrapper.element).
|
|
20
|
+
expect(wrapper.element).toBeDefined();
|
|
20
21
|
});
|
|
21
22
|
});
|
|
22
23
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { shallowMount } from '@vue/test-utils';
|
|
2
|
+
|
|
2
3
|
import Subtitle from '../Subtitle.vue';
|
|
3
4
|
|
|
4
5
|
describe('Subtitle component', () => {
|
|
@@ -16,7 +17,7 @@ describe('Subtitle component', () => {
|
|
|
16
17
|
|
|
17
18
|
describe('mount component', () => {
|
|
18
19
|
it('renders correctly', () => {
|
|
19
|
-
expect(wrapper.element).
|
|
20
|
+
expect(wrapper.element).toBeDefined();
|
|
20
21
|
});
|
|
21
22
|
});
|
|
22
23
|
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import Typography from './Typography.vue';
|
|
2
|
-
|
|
2
|
+
|
|
3
3
|
import baseThemeColors from '../../configurations/_theme-colors-base.module.scss';
|
|
4
4
|
import bwThemeColors from '../../configurations/_theme-colors-bw.module.scss';
|
|
5
|
+
import sizes from '../../configurations/sizes';
|
|
6
|
+
|
|
5
7
|
|
|
6
8
|
const colors = Object.keys(baseThemeColors);
|
|
7
9
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { shallowMount } from '@vue/test-utils';
|
|
2
|
+
|
|
2
3
|
import Typography from '../Typography';
|
|
3
4
|
|
|
4
5
|
describe('Typography component', () => {
|
|
@@ -20,7 +21,7 @@ describe('Typography component', () => {
|
|
|
20
21
|
|
|
21
22
|
describe('mount component', () => {
|
|
22
23
|
it('renders correctly', () => {
|
|
23
|
-
expect(wrapper.element).
|
|
24
|
+
expect(wrapper.element).toBeDefined();
|
|
24
25
|
});
|
|
25
26
|
});
|
|
26
27
|
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
+
|
|
1
2
|
import Typography from './Typography.vue';
|
|
2
3
|
|
|
3
|
-
import Heading from './Heading/Heading.vue';
|
|
4
|
-
import Subtitle from './Subtitle/Subtitle.vue';
|
|
5
4
|
import BodyText from './BodyText/BodyText.vue';
|
|
6
5
|
import Caption from './Caption/Caption.vue';
|
|
6
|
+
import Heading from './Heading/Heading.vue';
|
|
7
7
|
import OverlayText from './OverlayText/OverlayText.vue';
|
|
8
8
|
import Small from './Small/Small.vue';
|
|
9
|
+
import Subtitle from './Subtitle/Subtitle.vue';
|
|
9
10
|
|
|
10
11
|
export { Typography, Heading, Subtitle, BodyText, Caption, OverlayText, Small };
|
|
11
12
|
export default Typography;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { shallowMount } from '@vue/test-utils';
|
|
2
|
+
|
|
2
3
|
import Box from '../Box';
|
|
3
4
|
|
|
4
5
|
describe('Box component', () => {
|
|
@@ -14,7 +15,7 @@ describe('Box component', () => {
|
|
|
14
15
|
|
|
15
16
|
describe('mount component', () => {
|
|
16
17
|
it('renders correctly', () => {
|
|
17
|
-
expect(wrapper.element).
|
|
18
|
+
expect(wrapper.element).toBeDefined();
|
|
18
19
|
});
|
|
19
20
|
});
|
|
20
21
|
});
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { shallowMount } from '@vue/test-utils';
|
|
2
|
+
|
|
2
3
|
import Col from '../Col';
|
|
3
4
|
|
|
4
5
|
describe('Col component', () => {
|
|
@@ -14,7 +15,7 @@ describe('Col component', () => {
|
|
|
14
15
|
|
|
15
16
|
describe('mount component', () => {
|
|
16
17
|
it('renders correctly', () => {
|
|
17
|
-
expect(wrapper.element).
|
|
18
|
+
expect(wrapper.element).toBeDefined();
|
|
18
19
|
});
|
|
19
20
|
});
|
|
20
21
|
});
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { shallowMount } from '@vue/test-utils';
|
|
2
|
+
|
|
2
3
|
import Line from '../Line';
|
|
3
4
|
|
|
4
5
|
describe('Line component', () => {
|
|
@@ -16,7 +17,7 @@ describe('Line component', () => {
|
|
|
16
17
|
|
|
17
18
|
describe('mount component', () => {
|
|
18
19
|
it('renders correctly', () => {
|
|
19
|
-
expect(wrapper.element).
|
|
20
|
+
expect(wrapper.element).toBeDefined();
|
|
20
21
|
});
|
|
21
22
|
});
|
|
22
23
|
});
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { shallowMount } from '@vue/test-utils';
|
|
2
|
+
|
|
2
3
|
import Row from '../Row';
|
|
3
4
|
|
|
4
5
|
describe('Row component', () => {
|
|
@@ -14,7 +15,7 @@ describe('Row component', () => {
|
|
|
14
15
|
|
|
15
16
|
describe('mount component', () => {
|
|
16
17
|
it('renders correctly', () => {
|
|
17
|
-
expect(wrapper.element).
|
|
18
|
+
expect(wrapper.element).toBeDefined();
|
|
18
19
|
});
|
|
19
20
|
});
|
|
20
21
|
});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import backgroundThemeColors from '../configurations/_theme-colors-background.module.scss';
|
|
1
2
|
import baseThemeColors from '../configurations/_theme-colors-base.module.scss';
|
|
2
|
-
import textThemeColors from '../configurations/_theme-colors-text.module.scss';
|
|
3
|
-
import strokeThemeColors from '../configurations/_theme-colors-stroke.module.scss';
|
|
4
3
|
import bwThemeColors from '../configurations/_theme-colors-bw.module.scss';
|
|
5
|
-
import
|
|
4
|
+
import strokeThemeColors from '../configurations/_theme-colors-stroke.module.scss';
|
|
5
|
+
import textThemeColors from '../configurations/_theme-colors-text.module.scss';
|
|
6
6
|
import variationThemeColors from '../configurations/_theme-colors-variations.module.scss';
|
|
7
7
|
import('./Colors.stories.scss');
|
|
8
8
|
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { VNode } from 'vue';
|
|
2
|
+
|
|
3
|
+
export default function walk(vnode: VNode, cb: Function) {
|
|
4
|
+
if (!vnode) return;
|
|
5
|
+
|
|
6
|
+
if (vnode.component) {
|
|
7
|
+
const proxy = vnode.component.proxy;
|
|
8
|
+
if (proxy) cb(vnode.component.proxy);
|
|
9
|
+
walk(vnode.component.subTree, cb);
|
|
10
|
+
} else if (vnode.shapeFlag & 16) {
|
|
11
|
+
const vnodes = vnode.children;
|
|
12
|
+
if (vnodes.length) {
|
|
13
|
+
const length = vnodes.length as number;
|
|
14
|
+
for (let i = 0; i < length; i++) {
|
|
15
|
+
walk(vnodes[i], cb);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
package/src/main.ts
CHANGED
|
@@ -1,25 +1,23 @@
|
|
|
1
1
|
export * from './components/DataTableEmptyWrapper';
|
|
2
2
|
|
|
3
|
-
import
|
|
3
|
+
import DefaultButton from './components/Buttons/DefaultButton';
|
|
4
|
+
import Collapsible from './components/Collapsible';
|
|
4
5
|
import DataTableHeader from './components/DataTableHeader';
|
|
5
|
-
import
|
|
6
|
-
import Loader from './components/Loader';
|
|
7
|
-
import MultipleFilePicker from './components/MultipleFilePicker';
|
|
8
|
-
import DialogHeader from './components/DialogHeader';
|
|
9
|
-
import DialogFooter from './components/DialogFooter';
|
|
10
|
-
import RangeDatePicker from './components/RangeDatePicker';
|
|
6
|
+
import DataTablePaginator from './components/DataTablePaginator';
|
|
11
7
|
import DatePicker from './components/DatePicker';
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import ModalPromptUser from './components/ModalPromptUser';
|
|
15
|
-
|
|
16
|
-
import TableContextMenu from './components/TableContextMenu';
|
|
8
|
+
import DialogFooter from './components/DialogFooter';
|
|
9
|
+
import DialogHeader from './components/DialogHeader';
|
|
17
10
|
import IconBox from './components/IconBox';
|
|
18
|
-
|
|
19
|
-
import DefaultButton from './components/Buttons/DefaultButton';
|
|
20
|
-
import Collapsible from './components/Collapsible';
|
|
21
11
|
import IdCaption from './components/IdCaption';
|
|
12
|
+
import Loader from './components/Loader';
|
|
13
|
+
import MainFilter from './components/MainFilter';
|
|
14
|
+
import ManagersList from './components/ManagersList';
|
|
15
|
+
import ModalPromptUser from './components/ModalPromptUser';
|
|
16
|
+
import MultipleFilePicker from './components/MultipleFilePicker';
|
|
17
|
+
import PromptUserToConfirm from './components/PromptUserToConfirm';
|
|
18
|
+
import RangeDatePicker from './components/RangeDatePicker';
|
|
22
19
|
import ResourceMetaInfo from './components/ResourceMetaInfo';
|
|
20
|
+
import TableContextMenu from './components/TableContextMenu';
|
|
23
21
|
|
|
24
22
|
export {
|
|
25
23
|
DataTablePaginator,
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import modalFooter from '../modalFooter';
|
|
2
|
+
|
|
3
|
+
describe('modalFooter', () => {
|
|
4
|
+
it('Should return the footer', () => {
|
|
5
|
+
const fn = jest.fn();
|
|
6
|
+
modalFooter(
|
|
7
|
+
{
|
|
8
|
+
appendChild: fn,
|
|
9
|
+
},
|
|
10
|
+
{},
|
|
11
|
+
{},
|
|
12
|
+
jest.fn(),
|
|
13
|
+
jest.fn()
|
|
14
|
+
);
|
|
15
|
+
|
|
16
|
+
expect(fn).toHaveBeenCalled();
|
|
17
|
+
});
|
|
18
|
+
});
|