@farm-investimentos/front-mfe-components-vue3 0.0.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/README.md +35 -0
- package/dist/demo.html +10 -0
- package/dist/front-mfe-components.common.js +17771 -0
- package/dist/front-mfe-components.common.js.map +1 -0
- package/dist/front-mfe-components.css +1 -0
- package/dist/front-mfe-components.umd.js +17781 -0
- package/dist/front-mfe-components.umd.js.map +1 -0
- package/dist/front-mfe-components.umd.min.js +2 -0
- package/dist/front-mfe-components.umd.min.js.map +1 -0
- package/package.json +91 -0
- package/src/components/AlertBox/AlertBox.scss +52 -0
- package/src/components/AlertBox/AlertBox.stories.js +79 -0
- package/src/components/AlertBox/AlertBox.vue +127 -0
- package/src/components/AlertBox/__tests__/AlertBox.spec.js +32 -0
- package/src/components/AlertBox/__tests__/valueWatcher.spec.js +15 -0
- package/src/components/AlertBox/index.ts +4 -0
- package/src/components/AlertBox/valueWatcher.ts +10 -0
- package/src/components/AlertReload/AlertReload.scss +33 -0
- package/src/components/AlertReload/AlertReload.stories.js +34 -0
- package/src/components/AlertReload/AlertReload.vue +46 -0
- package/src/components/AlertReload/__tests__/AlertReload.spec.js +18 -0
- package/src/components/AlertReload/index.ts +4 -0
- package/src/components/ButtonToggle/ButtonToggle.scss +14 -0
- package/src/components/ButtonToggle/ButtonToggle.stories.js +50 -0
- package/src/components/ButtonToggle/ButtonToggle.vue +53 -0
- package/src/components/ButtonToggle/IButtonToggle.ts +5 -0
- package/src/components/ButtonToggle/__tests__/ButtonToggle.spec.js +35 -0
- package/src/components/ButtonToggle/index.ts +4 -0
- package/src/components/Buttons/ConfirmButton/ConfirmButton.stories.js +50 -0
- package/src/components/Buttons/ConfirmButton/ConfirmButton.vue +33 -0
- package/src/components/Buttons/ConfirmButton/__tests__/ConfirmButton.spec.js +14 -0
- package/src/components/Buttons/ConfirmButton/index.ts +4 -0
- package/src/components/Buttons/DangerButton/DangerButton.stories.js +49 -0
- package/src/components/Buttons/DangerButton/DangerButton.vue +32 -0
- package/src/components/Buttons/DangerButton/__tests__/DangerButton.spec.js +14 -0
- package/src/components/Buttons/DangerButton/index.ts +4 -0
- package/src/components/Buttons/DefaultButton/Buttons.stories.scss +10 -0
- package/src/components/Buttons/DefaultButton/DefaultButton.scss +328 -0
- package/src/components/Buttons/DefaultButton/DefaultButton.stories.js +317 -0
- package/src/components/Buttons/DefaultButton/DefaultButton.vue +128 -0
- package/src/components/Buttons/DefaultButton/__tests__/DefaultButton.spec.js +32 -0
- package/src/components/Buttons/DefaultButton/index.ts +4 -0
- package/src/components/Buttons/ExportButton/ExportButton.stories.js +40 -0
- package/src/components/Buttons/ExportButton/ExportButton.vue +82 -0
- package/src/components/Buttons/ExportButton/__tests__/ExportButton.spec.js +14 -0
- package/src/components/Buttons/ExportButton/index.ts +4 -0
- package/src/components/Buttons/ImportButton/ImportButton.scss +8 -0
- package/src/components/Buttons/ImportButton/ImportButton.stories.js +23 -0
- package/src/components/Buttons/ImportButton/ImportButton.vue +35 -0
- package/src/components/Buttons/ImportButton/__tests__/ImportButton.spec.js +23 -0
- package/src/components/Buttons/ImportButton/index.ts +4 -0
- package/src/components/Buttons/MultiImportButton/MultiImportButton.stories.js +35 -0
- package/src/components/Buttons/MultiImportButton/MultiImportButton.vue +54 -0
- package/src/components/Buttons/MultiImportButton/__tests__/MultiImportButton.spec.js +14 -0
- package/src/components/Buttons/MultiImportButton/index.ts +4 -0
- package/src/components/Buttons/RemoveButton/RemoveButton.scss +5 -0
- package/src/components/Buttons/RemoveButton/RemoveButton.stories.js +17 -0
- package/src/components/Buttons/RemoveButton/RemoveButton.vue +44 -0
- package/src/components/Buttons/RemoveButton/__tests__/RemoveButton.spec.js +23 -0
- package/src/components/Buttons/RemoveButton/index.ts +4 -0
- package/src/components/Buttons/ToggleButton/ToggleButton.stories.js +22 -0
- package/src/components/Buttons/ToggleButton/ToggleButton.vue +75 -0
- package/src/components/Buttons/ToggleButton/__tests__/ToggleButton.spec.js +21 -0
- package/src/components/Buttons/ToggleButton/index.ts +4 -0
- package/src/components/Card/Card.scss +18 -0
- package/src/components/Card/Card.stories.js +40 -0
- package/src/components/Card/Card.vue +24 -0
- package/src/components/Card/CardComposition.stories.ts +69 -0
- package/src/components/Card/CardContent/CardContent.scss +17 -0
- package/src/components/Card/CardContent/CardContent.stories.js +47 -0
- package/src/components/Card/CardContent/CardContent.vue +39 -0
- package/src/components/Card/CardContent/__tests__/CardContent.spec.js +20 -0
- package/src/components/Card/CardContent/index.ts +4 -0
- package/src/components/Card/__tests__/Card.spec.js +20 -0
- package/src/components/Card/index.ts +5 -0
- package/src/components/Checkbox/Checkbox.scss +108 -0
- package/src/components/Checkbox/Checkbox.stories.js +194 -0
- package/src/components/Checkbox/Checkbox.vue +193 -0
- package/src/components/Checkbox/__tests__/Checkbox.spec.js +34 -0
- package/src/components/Checkbox/__tests__/modelValueWatcher.spec.js +43 -0
- package/src/components/Checkbox/index.ts +4 -0
- package/src/components/Checkbox/modelValueWatcher.ts +12 -0
- package/src/components/Chip/Chip.scss +109 -0
- package/src/components/Chip/Chip.stories.js +96 -0
- package/src/components/Chip/Chip.stories.scss +13 -0
- package/src/components/Chip/Chip.vue +66 -0
- package/src/components/Chip/__tests__/Chip.spec.js +20 -0
- package/src/components/Chip/index.ts +4 -0
- package/src/components/ChipInviteStatus/ChipInviteStatus.stories.js +30 -0
- package/src/components/ChipInviteStatus/ChipInviteStatus.vue +38 -0
- package/src/components/ChipInviteStatus/__tests__/ChipInviteStatus.spec.js +22 -0
- package/src/components/ChipInviteStatus/index.ts +4 -0
- package/src/components/ChipInviteStatus/keys.ts +11 -0
- package/src/components/Collapsible/Collapsible.scss +48 -0
- package/src/components/Collapsible/Collapsible.stories.js +150 -0
- package/src/components/Collapsible/Collapsible.vue +189 -0
- package/src/components/Collapsible/__tests__/Collapsible.spec.js +38 -0
- package/src/components/Collapsible/index.ts +3 -0
- package/src/components/ContextMenu/ContextMenu.scss +33 -0
- package/src/components/ContextMenu/ContextMenu.stories.js +248 -0
- package/src/components/ContextMenu/ContextMenu.vue +250 -0
- package/src/components/ContextMenu/__tests__/ContextMenu.spec.js +29 -0
- package/src/components/ContextMenu/index.ts +5 -0
- package/src/components/CopyToClipboard/CopyToClipboard.stories.js +83 -0
- package/src/components/CopyToClipboard/CopyToClipboard.vue +133 -0
- package/src/components/CopyToClipboard/__tests__/CopyToClipboard.spec.js +24 -0
- package/src/components/CopyToClipboard/index.ts +4 -0
- package/src/components/DataTableEmptyWrapper/DataTableEmptyWrapper.scss +17 -0
- package/src/components/DataTableEmptyWrapper/DataTableEmptyWrapper.stories.js +30 -0
- package/src/components/DataTableEmptyWrapper/DataTableEmptyWrapper.vue +50 -0
- package/src/components/DataTableEmptyWrapper/__tests__/DataTableEmptyWrapper.spec.js +20 -0
- package/src/components/DataTableEmptyWrapper/index.ts +4 -0
- package/src/components/DataTableHeader/DataTableHeader.scss +65 -0
- package/src/components/DataTableHeader/DataTableHeader.stories.js +109 -0
- package/src/components/DataTableHeader/DataTableHeader.vue +197 -0
- package/src/components/DataTableHeader/__tests__/DataTableHeader.spec.js +95 -0
- package/src/components/DataTableHeader/index.ts +3 -0
- package/src/components/DataTablePaginator/DataTablePaginator.scss +90 -0
- package/src/components/DataTablePaginator/DataTablePaginator.stories.js +49 -0
- package/src/components/DataTablePaginator/DataTablePaginator.vue +218 -0
- package/src/components/DataTablePaginator/__tests__/DataTablePaginator.spec.js +32 -0
- package/src/components/DataTablePaginator/index.ts +3 -0
- package/src/components/DatePicker/DatePicker.scss +18 -0
- package/src/components/DatePicker/DatePicker.stories.js +134 -0
- package/src/components/DatePicker/DatePicker.vue +292 -0
- package/src/components/DatePicker/__tests__/DatePicker.spec.js +108 -0
- package/src/components/DatePicker/customDatePicker.scss +79 -0
- package/src/components/DatePicker/index.ts +3 -0
- package/src/components/DatePicker/vDatePicker.scss +214 -0
- package/src/components/DialogFooter/DialogFooter.scss +34 -0
- package/src/components/DialogFooter/DialogFooter.stories.js +49 -0
- package/src/components/DialogFooter/DialogFooter.vue +102 -0
- package/src/components/DialogFooter/IExtraButton.ts +9 -0
- package/src/components/DialogFooter/__tests__/DialogFooter.spec.js +20 -0
- package/src/components/DialogFooter/index.ts +3 -0
- package/src/components/DialogHeader/DialogHeader.scss +32 -0
- package/src/components/DialogHeader/DialogHeader.stories.js +69 -0
- package/src/components/DialogHeader/DialogHeader.vue +61 -0
- package/src/components/DialogHeader/__tests__/DialogHeader.spec.js +24 -0
- package/src/components/DialogHeader/index.ts +3 -0
- package/src/components/Form/Form.stories.js +390 -0
- package/src/components/Form/Form.vue +100 -0
- package/src/components/Form/__tests__/Form.spec.js +14 -0
- package/src/components/Form/index.ts +4 -0
- package/src/components/Icon/Icon.scss +61 -0
- package/src/components/Icon/Icon.stories.js +156 -0
- package/src/components/Icon/Icon.vue +100 -0
- package/src/components/Icon/Icons.stories.scss +31 -0
- package/src/components/Icon/__tests__/Icon.spec.js +34 -0
- package/src/components/Icon/icons_list.ts +2557 -0
- package/src/components/Icon/index.ts +4 -0
- package/src/components/IconBox/IconBox.scss +42 -0
- package/src/components/IconBox/IconBox.stories.js +92 -0
- package/src/components/IconBox/IconBox.vue +78 -0
- package/src/components/IconBox/__tests__/IconBox.spec.js +37 -0
- package/src/components/IconBox/index.ts +3 -0
- package/src/components/IdCaption/IdCaption.scss +51 -0
- package/src/components/IdCaption/IdCaption.stories.js +224 -0
- package/src/components/IdCaption/IdCaption.vue +168 -0
- package/src/components/IdCaption/__tests__/IdCaption.spec.js +14 -0
- package/src/components/IdCaption/index.ts +3 -0
- package/src/components/Label/Label.scss +33 -0
- package/src/components/Label/Label.stories.js +60 -0
- package/src/components/Label/Label.vue +27 -0
- package/src/components/Label/__tests__/Label.spec.js +20 -0
- package/src/components/Label/index.ts +4 -0
- package/src/components/List/List.scss +0 -0
- package/src/components/List/List.stories.js +30 -0
- package/src/components/List/List.vue +75 -0
- package/src/components/List/__tests__/List.spec.js +33 -0
- package/src/components/List/composition/index.ts +3 -0
- package/src/components/List/composition/useFocus.ts +49 -0
- package/src/components/List/index.ts +4 -0
- package/src/components/ListItem/ListItem.scss +37 -0
- package/src/components/ListItem/ListItem.stories.js +81 -0
- package/src/components/ListItem/ListItem.vue +76 -0
- package/src/components/ListItem/ListItem.vue.bkpv2 +84 -0
- package/src/components/ListItem/__tests__/ListItem.spec.js +20 -0
- package/src/components/ListItem/index.ts +4 -0
- package/src/components/Loader/Loader.scss +116 -0
- package/src/components/Loader/Loader.stories.ts +48 -0
- package/src/components/Loader/Loader.vue +83 -0
- package/src/components/Loader/__tests__/Loader.spec.js +35 -0
- package/src/components/Loader/index.ts +3 -0
- package/src/components/Logger/Logger.scss +56 -0
- package/src/components/Logger/Logger.stories.js +228 -0
- package/src/components/Logger/Logger.vue +49 -0
- package/src/components/Logger/LoggerItem/ILoggerItem.ts +11 -0
- package/src/components/Logger/LoggerItem/LoggerItem.scss +99 -0
- package/src/components/Logger/LoggerItem/LoggerItem.stories.js +144 -0
- package/src/components/Logger/LoggerItem/LoggerItem.vue +98 -0
- package/src/components/Logger/LoggerItem/__tests__/LoggerItem.spec.js +93 -0
- package/src/components/Logger/LoggerItem/index.ts +4 -0
- package/src/components/Logger/LoggerItem/mappingIconKeys.ts +5 -0
- package/src/components/Logger/__tests__/Logger.spec.js +75 -0
- package/src/components/Logger/index.ts +4 -0
- package/src/components/MainFilter/MainFilter.scss +16 -0
- package/src/components/MainFilter/MainFilter.stories.js +84 -0
- package/src/components/MainFilter/MainFilter.vue +147 -0
- package/src/components/MainFilter/__tests__/MainFilter.spec.js +45 -0
- package/src/components/MainFilter/index.ts +3 -0
- package/src/components/ManagersList/ManagersList.stories.js +10 -0
- package/src/components/ManagersList/ManagersList.vue +29 -0
- package/src/components/ManagersList/__tests__/ManagersList.spec.js +27 -0
- package/src/components/ManagersList/index.ts +3 -0
- package/src/components/Modal/Modal.scss +110 -0
- package/src/components/Modal/Modal.stories.js +299 -0
- package/src/components/Modal/Modal.vue +135 -0
- package/src/components/Modal/__tests__/Modal.spec.js +19 -0
- package/src/components/Modal/index.ts +4 -0
- package/src/components/ModalPromptUser/ModalPromptUser.scss +3 -0
- package/src/components/ModalPromptUser/ModalPromptUser.stories.js +121 -0
- package/src/components/ModalPromptUser/ModalPromptUser.vue +135 -0
- package/src/components/ModalPromptUser/__tests__/ModalPromptUser.spec.js +27 -0
- package/src/components/ModalPromptUser/index.ts +3 -0
- package/src/components/MultipleFilePicker/MultipleFilePicker.scss +168 -0
- package/src/components/MultipleFilePicker/MultipleFilePicker.stories.js +74 -0
- package/src/components/MultipleFilePicker/MultipleFilePicker.vue +261 -0
- package/src/components/MultipleFilePicker/__tests__/MultipleFilePicker.spec.js +184 -0
- package/src/components/MultipleFilePicker/index.ts +3 -0
- package/src/components/MultipleSelectShortener/MultipleSelectShortener.stories.js +32 -0
- package/src/components/MultipleSelectShortener/MultipleSelectShortener.vue +48 -0
- package/src/components/MultipleSelectShortener/__tests__/MultipleSelectShortener.spec.js +21 -0
- package/src/components/MultipleSelectShortener/index.ts +4 -0
- package/src/components/ProgressBar/ProgressBar.scss +25 -0
- package/src/components/ProgressBar/ProgressBar.stories.js +49 -0
- package/src/components/ProgressBar/ProgressBar.vue +111 -0
- package/src/components/ProgressBar/__tests__/ProgressBar.spec.js +31 -0
- package/src/components/ProgressBar/index.ts +4 -0
- package/src/components/PromptUserToConfirm/PromptUserToConfirm.stories.js +51 -0
- package/src/components/PromptUserToConfirm/PromptUserToConfirm.vue +62 -0
- package/src/components/PromptUserToConfirm/__tests__/PromptUserToConfirm.spec.js +24 -0
- package/src/components/PromptUserToConfirm/index.ts +3 -0
- package/src/components/Radio/Radio.scss +109 -0
- package/src/components/Radio/Radio.stories.js +147 -0
- package/src/components/Radio/Radio.vue +110 -0
- package/src/components/Radio/__tests__/Radio.spec.js +27 -0
- package/src/components/Radio/index.ts +4 -0
- package/src/components/RadioGroup/RadioGroup.stories.js +85 -0
- package/src/components/RadioGroup/RadioGroup.vue +95 -0
- package/src/components/RadioGroup/__tests__/RadioGroup.spec.js +24 -0
- package/src/components/RadioGroup/index.ts +4 -0
- package/src/components/RangeDatePicker/RangeDatePicker.stories.js +76 -0
- package/src/components/RangeDatePicker/RangeDatePicker.vue +201 -0
- package/src/components/RangeDatePicker/__tests__/RangeDatePicker.spec.js +107 -0
- package/src/components/RangeDatePicker/index.ts +3 -0
- package/src/components/ResetTableRowSelection/ResetTableRowSelection.stories.js +15 -0
- package/src/components/ResetTableRowSelection/ResetTableRowSelection.vue +35 -0
- package/src/components/ResetTableRowSelection/__tests__/ResetTableRowSelection.spec.js +33 -0
- package/src/components/ResetTableRowSelection/index.ts +4 -0
- package/src/components/ResourceMetaInfo/ResourceMetaInfo.scss +14 -0
- package/src/components/ResourceMetaInfo/ResourceMetaInfo.stories.js +138 -0
- package/src/components/ResourceMetaInfo/ResourceMetaInfo.vue +140 -0
- package/src/components/ResourceMetaInfo/__tests__/ResourceMetaInfo.spec.js +182 -0
- package/src/components/ResourceMetaInfo/index.ts +4 -0
- package/src/components/Select/Select.scss +49 -0
- package/src/components/Select/Select.stories.js +346 -0
- package/src/components/Select/Select.vue +439 -0
- package/src/components/Select/__tests__/Select.spec.js +174 -0
- package/src/components/Select/__tests__/composition.spec.js +27 -0
- package/src/components/Select/composition/buildData.ts +34 -0
- package/src/components/Select/composition/index.ts +3 -0
- package/src/components/Select/index.ts +4 -0
- package/src/components/SelectAutoComplete/SelectAutoComplete.scss +49 -0
- package/src/components/SelectAutoComplete/SelectAutoComplete.stories.js +328 -0
- package/src/components/SelectAutoComplete/SelectAutoComplete.vue +535 -0
- package/src/components/SelectAutoComplete/__tests__/SelectAutoComplete.spec.js +130 -0
- package/src/components/SelectAutoComplete/__tests__/useSelectAutoComplete.spec.js +28 -0
- package/src/components/SelectAutoComplete/composables/index.ts +3 -0
- package/src/components/SelectAutoComplete/composables/useSelectAutoComplete.ts +37 -0
- package/src/components/SelectAutoComplete/index.ts +4 -0
- package/src/components/SelectModalOptions/SelectModalOptions.scss +15 -0
- package/src/components/SelectModalOptions/SelectModalOptions.stories.js +46 -0
- package/src/components/SelectModalOptions/SelectModalOptions.vue +298 -0
- package/src/components/SelectModalOptions/__tests__/SelectModalOptions.spec.js +132 -0
- package/src/components/SelectModalOptions/index.ts +4 -0
- package/src/components/Stepper/StepperHeader/IStep.ts +6 -0
- package/src/components/Stepper/StepperHeader/StepperHeader.scss +127 -0
- package/src/components/Stepper/StepperHeader/StepperHeader.stories.js +89 -0
- package/src/components/Stepper/StepperHeader/StepperHeader.vue +106 -0
- package/src/components/Stepper/StepperHeader/__tests__/StepperHeader.spec.js +63 -0
- package/src/components/Stepper/StepperHeader/_mixins.scss +46 -0
- package/src/components/Stepper/StepperHeader/index.ts +4 -0
- package/src/components/Stepper/index.ts +5 -0
- package/src/components/Switcher/Switcher.scss +71 -0
- package/src/components/Switcher/Switcher.stories.js +112 -0
- package/src/components/Switcher/Switcher.vue +94 -0
- package/src/components/Switcher/__tests__/Switcher.spec.js +26 -0
- package/src/components/Switcher/index.ts +4 -0
- package/src/components/TableContextMenu/TableContextMenu.scss +9 -0
- package/src/components/TableContextMenu/TableContextMenu.stories.js +92 -0
- package/src/components/TableContextMenu/TableContextMenu.vue +89 -0
- package/src/components/TableContextMenu/__tests__/TableContextMenu.spec.js +45 -0
- package/src/components/TableContextMenu/index.ts +3 -0
- package/src/components/Tabs/Tabs.scss +72 -0
- package/src/components/Tabs/Tabs.stories.js +68 -0
- package/src/components/Tabs/Tabs.vue +130 -0
- package/src/components/Tabs/__tests__/Tabs.spec.js +59 -0
- package/src/components/Tabs/index.ts +4 -0
- package/src/components/TextArea/TextArea.scss +75 -0
- package/src/components/TextArea/TextArea.stories.js +147 -0
- package/src/components/TextArea/TextArea.vue +224 -0
- package/src/components/TextArea/__tests__/TextArea.spec.js +48 -0
- package/src/components/TextArea/index.ts +4 -0
- package/src/components/TextFieldV2/TextFieldV2.scss +99 -0
- package/src/components/TextFieldV2/TextFieldV2.stories.js +260 -0
- package/src/components/TextFieldV2/TextFieldV2.vue +276 -0
- package/src/components/TextFieldV2/__tests__/TextFieldV2.spec.js +52 -0
- package/src/components/TextFieldV2/index.ts +4 -0
- package/src/components/Tooltip/Tooltip.scss +38 -0
- package/src/components/Tooltip/Tooltip.stories.js +100 -0
- package/src/components/Tooltip/Tooltip.vue +125 -0
- package/src/components/Tooltip/__tests__/Tooltip.spec.js +20 -0
- package/src/components/Tooltip/index.ts +5 -0
- package/src/components/Typography/BodyText/BodyText.scss +8 -0
- package/src/components/Typography/BodyText/BodyText.stories.js +58 -0
- package/src/components/Typography/BodyText/BodyText.vue +51 -0
- package/src/components/Typography/BodyText/__tests__/BodyText.spec.js +31 -0
- package/src/components/Typography/BodyText/configurations.ts +10 -0
- package/src/components/Typography/Caption/Caption.scss +8 -0
- package/src/components/Typography/Caption/Caption.stories.js +54 -0
- package/src/components/Typography/Caption/Caption.vue +51 -0
- package/src/components/Typography/Caption/__tests__/Caption.spec.js +31 -0
- package/src/components/Typography/Caption/configurations.ts +7 -0
- package/src/components/Typography/Heading/Heading.scss +20 -0
- package/src/components/Typography/Heading/Heading.stories.js +32 -0
- package/src/components/Typography/Heading/Heading.vue +50 -0
- package/src/components/Typography/Heading/__tests__/Heading.spec.js +38 -0
- package/src/components/Typography/Heading/configurations.ts +10 -0
- package/src/components/Typography/OverlayText/OverlayText.scss +3 -0
- package/src/components/Typography/OverlayText/OverlayText.stories.js +25 -0
- package/src/components/Typography/OverlayText/OverlayText.vue +22 -0
- package/src/components/Typography/OverlayText/__tests__/OverlayText.spec.js +20 -0
- package/src/components/Typography/Small/Small.scss +3 -0
- package/src/components/Typography/Small/Small.stories.js +34 -0
- package/src/components/Typography/Small/Small.vue +47 -0
- package/src/components/Typography/Small/__tests__/Small.spec.js +31 -0
- package/src/components/Typography/Small/configurations.ts +7 -0
- package/src/components/Typography/Subtitle/Subtitle.scss +8 -0
- package/src/components/Typography/Subtitle/Subtitle.stories.js +57 -0
- package/src/components/Typography/Subtitle/Subtitle.vue +52 -0
- package/src/components/Typography/Subtitle/__tests__/Subtitle.spec.js +31 -0
- package/src/components/Typography/Subtitle/configurations.ts +8 -0
- package/src/components/Typography/Typography.scss +87 -0
- package/src/components/Typography/Typography.stories.js +210 -0
- package/src/components/Typography/Typography.vue +132 -0
- package/src/components/Typography/__tests__/Typography.spec.js +60 -0
- package/src/components/Typography/index.ts +11 -0
- package/src/components/ValueCaption/ValueCaption.scss +19 -0
- package/src/components/ValueCaption/ValueCaption.stories.js +58 -0
- package/src/components/ValueCaption/ValueCaption.vue +63 -0
- package/src/components/ValueCaption/__tests__/ValueCaption.spec.js +14 -0
- package/src/components/ValueCaption/index.ts +4 -0
- package/src/components/layout/Basic.stories.js +113 -0
- package/src/components/layout/Box/Box.scss +15 -0
- package/src/components/layout/Box/Box.stories.js +41 -0
- package/src/components/layout/Box/Box.vue +37 -0
- package/src/components/layout/Box/__tests__/Box.spec.js +20 -0
- package/src/components/layout/Box/index.ts +4 -0
- package/src/components/layout/Col/Col.scss +110 -0
- package/src/components/layout/Col/Col.stories.js +174 -0
- package/src/components/layout/Col/Col.vue +141 -0
- package/src/components/layout/Col/__tests__/Col.spec.js +20 -0
- package/src/components/layout/Col/index.ts +4 -0
- package/src/components/layout/Container/Container.scss +35 -0
- package/src/components/layout/Container/Container.stories.js +23 -0
- package/src/components/layout/Container/Container.vue +18 -0
- package/src/components/layout/Container/index.ts +4 -0
- package/src/components/layout/ContainerFooter/Container.stories.js +29 -0
- package/src/components/layout/ContainerFooter/ContainerFooter.scss +13 -0
- package/src/components/layout/ContainerFooter/ContainerFooter.vue +27 -0
- package/src/components/layout/ContainerFooter/index.ts +4 -0
- package/src/components/layout/DisplayBreakpoints.stories.mdx +90 -0
- package/src/components/layout/GridSystem.stories.js +138 -0
- package/src/components/layout/Line/Line.scss +25 -0
- package/src/components/layout/Line/Line.stories.js +53 -0
- package/src/components/layout/Line/Line.vue +58 -0
- package/src/components/layout/Line/__tests__/Line.spec.js +22 -0
- package/src/components/layout/Line/index.ts +4 -0
- package/src/components/layout/PropsValues.stories.mdx +30 -0
- package/src/components/layout/Row/Row.scss +42 -0
- package/src/components/layout/Row/Row.stories.js +112 -0
- package/src/components/layout/Row/Row.vue +77 -0
- package/src/components/layout/Row/__tests__/Row.spec.js +20 -0
- package/src/components/layout/Row/index.ts +4 -0
- package/src/composition/__tests__/deepEqual.spec.js +13 -0
- package/src/composition/__tests__/validateFormFieldBuilder.spec.js +34 -0
- package/src/composition/__tests__/validateFormStateBuilder.spec.js +8 -0
- package/src/composition/deepEqual.ts +24 -0
- package/src/composition/validateFormFieldBuilder.ts +18 -0
- package/src/composition/validateFormMethodBuilder.ts +9 -0
- package/src/composition/validateFormStateBuilder.ts +13 -0
- package/src/configurations/_functions.scss +9 -0
- package/src/configurations/_mixins.scss +103 -0
- package/src/configurations/_theme-colors-background.scss +10 -0
- package/src/configurations/_theme-colors-base.module.scss +8 -0
- package/src/configurations/_theme-colors-bw.module.scss +10 -0
- package/src/configurations/_theme-colors-stroke.scss +10 -0
- package/src/configurations/_theme-colors-text.scss +10 -0
- package/src/configurations/_theme-colors-variations.scss +9 -0
- package/src/configurations/_theme-colors.scss +122 -0
- package/src/configurations/_variables.scss +36 -0
- package/src/configurations/colors.ts +12 -0
- package/src/configurations/flexVariables.ts +5 -0
- package/src/configurations/gutters.ts +1 -0
- package/src/configurations/sizes.ts +1 -0
- package/src/configurations/typographyHtmlTags.ts +16 -0
- package/src/examples/Colors.stories.js +122 -0
- package/src/examples/Colors.stories.scss +21 -0
- package/src/examples/Table.stories.js +200 -0
- package/src/examples/VuetifyDialog.stories.js +129 -0
- package/src/helpers/calculateMainZindex.js +12 -0
- package/src/helpers/date.ts +94 -0
- package/src/helpers/formatDatePickerHeader.ts +19 -0
- package/src/helpers/index.ts +4 -0
- package/src/helpers/isChildOfFixedElement.js +16 -0
- package/src/helpers/randomId.ts +9 -0
- package/src/main.ts +92 -0
- package/src/scss/Sticky-table.scss +112 -0
- package/src/scss/Table.scss +2 -0
- package/src/scss/VMenuOverrides.scss +17 -0
- package/src/scss/VuejsDialog.scss +93 -0
- package/src/scss/cssVariablesGenerator.scss +25 -0
- package/src/scss/utils.scss +51 -0
- package/src/shims-libs.d.ts +4 -0
- package/src/shims-tsx.d.ts +11 -0
- package/src/shims-vue.d.ts +4 -0
- package/src/stories/Introduction.stories.mdx +118 -0
- package/src/stories/assets/code-brackets.svg +1 -0
- package/src/stories/assets/colors.svg +1 -0
- package/src/stories/assets/comments.svg +1 -0
- package/src/stories/assets/direction.svg +1 -0
- package/src/stories/assets/flow.svg +1 -0
- package/src/stories/assets/logo_farmtech.svg +21 -0
- package/src/stories/assets/plugin.svg +1 -0
- package/src/stories/assets/repo.svg +1 -0
- package/src/vue-file-import.d.ts +4 -0
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<farm-contextmenu
|
|
3
|
+
stay-open
|
|
4
|
+
v-model="menuField"
|
|
5
|
+
ref="contextmenu"
|
|
6
|
+
maxHeight="auto"
|
|
7
|
+
popup-width="320"
|
|
8
|
+
:bottom="position === 'bottom'"
|
|
9
|
+
:top="position === 'top'"
|
|
10
|
+
>
|
|
11
|
+
<VueDatePicker
|
|
12
|
+
calendar-class-name="dp-custom-calendar"
|
|
13
|
+
inline
|
|
14
|
+
auto-apply
|
|
15
|
+
model-type="yyyy-MM-dd"
|
|
16
|
+
locale="pt-BR"
|
|
17
|
+
v-model="dateField"
|
|
18
|
+
:min-date="minDate"
|
|
19
|
+
:max-date="maxDate"
|
|
20
|
+
:allowed-dates="allowedDaysList"
|
|
21
|
+
:day-names="['S', 'T', 'Q', 'Q', 'S', 'S', 'D']"
|
|
22
|
+
:start-date="internalPickerDate"
|
|
23
|
+
/>
|
|
24
|
+
|
|
25
|
+
<div class="picker__actions">
|
|
26
|
+
<farm-btn
|
|
27
|
+
plain
|
|
28
|
+
title="Limpar"
|
|
29
|
+
color="primary"
|
|
30
|
+
:disabled="isDisabled"
|
|
31
|
+
@click="clear"
|
|
32
|
+
>
|
|
33
|
+
Limpar
|
|
34
|
+
</farm-btn>
|
|
35
|
+
<farm-btn
|
|
36
|
+
outlined
|
|
37
|
+
class="btn-cancel"
|
|
38
|
+
title="Cancelar"
|
|
39
|
+
@click="closeDatepicker"
|
|
40
|
+
>
|
|
41
|
+
Cancelar
|
|
42
|
+
</farm-btn>
|
|
43
|
+
|
|
44
|
+
<farm-btn
|
|
45
|
+
class="ml-2"
|
|
46
|
+
title="Confirmar"
|
|
47
|
+
:disabled="isDateFieldDisabled"
|
|
48
|
+
@click="save()"
|
|
49
|
+
>
|
|
50
|
+
Confirmar <farm-icon>check</farm-icon>
|
|
51
|
+
</farm-btn>
|
|
52
|
+
</div>
|
|
53
|
+
<template v-slot:activator="{}">
|
|
54
|
+
<farm-textfield-v2
|
|
55
|
+
icon="calendar"
|
|
56
|
+
v-model="fieldRange"
|
|
57
|
+
autocomplete="off"
|
|
58
|
+
ref="inputCalendar"
|
|
59
|
+
:readonly="readonly"
|
|
60
|
+
:mask="`${readonly ? '' : '##/##/####'}`"
|
|
61
|
+
:id="inputId"
|
|
62
|
+
:rules="[checkDateValid, checkMax, checkMin, checkRequire, checkIsInAllowedDates]"
|
|
63
|
+
@keyup="keyUpInput"
|
|
64
|
+
/>
|
|
65
|
+
</template>
|
|
66
|
+
</farm-contextmenu>
|
|
67
|
+
</template>
|
|
68
|
+
<script lang="ts">
|
|
69
|
+
import { PropType } from 'vue';
|
|
70
|
+
import { convertDate, checkDateValid, revertDate } from '../../helpers/date';
|
|
71
|
+
import { formatDatePickerHeader } from '../../helpers';
|
|
72
|
+
/**
|
|
73
|
+
* Componente de input com datepicker para data
|
|
74
|
+
*/
|
|
75
|
+
export default {
|
|
76
|
+
name: 'farm-input-datepicker',
|
|
77
|
+
props: {
|
|
78
|
+
/**
|
|
79
|
+
* Input's id
|
|
80
|
+
*/
|
|
81
|
+
inputId: {
|
|
82
|
+
type: String,
|
|
83
|
+
required: true,
|
|
84
|
+
},
|
|
85
|
+
/**
|
|
86
|
+
* v-model bind
|
|
87
|
+
*/
|
|
88
|
+
modelValue: {
|
|
89
|
+
type: String,
|
|
90
|
+
default: '',
|
|
91
|
+
},
|
|
92
|
+
/**
|
|
93
|
+
* Max date (ISO format)
|
|
94
|
+
*/
|
|
95
|
+
max: {
|
|
96
|
+
type: String,
|
|
97
|
+
default: null,
|
|
98
|
+
},
|
|
99
|
+
/**
|
|
100
|
+
* Min date (ISO format)
|
|
101
|
+
*/
|
|
102
|
+
min: {
|
|
103
|
+
type: String,
|
|
104
|
+
default: null,
|
|
105
|
+
},
|
|
106
|
+
/**
|
|
107
|
+
* Min date (ISO format)
|
|
108
|
+
*/
|
|
109
|
+
position: {
|
|
110
|
+
type: String as PropType<'top' | 'bottom' | 'center'>,
|
|
111
|
+
default: 'bottom',
|
|
112
|
+
},
|
|
113
|
+
/**
|
|
114
|
+
* Allowed days to be selected and validated
|
|
115
|
+
*/
|
|
116
|
+
allowedDays: {
|
|
117
|
+
type: Array,
|
|
118
|
+
default: () => null,
|
|
119
|
+
},
|
|
120
|
+
allowedDatesValidator: {
|
|
121
|
+
type: Function,
|
|
122
|
+
default: () => true,
|
|
123
|
+
},
|
|
124
|
+
/**
|
|
125
|
+
* Current month/year to show when opened
|
|
126
|
+
*/
|
|
127
|
+
pickerDate: {
|
|
128
|
+
type: String,
|
|
129
|
+
default: '',
|
|
130
|
+
},
|
|
131
|
+
/**
|
|
132
|
+
* Required field (inside form)
|
|
133
|
+
*/
|
|
134
|
+
required: {
|
|
135
|
+
type: Boolean,
|
|
136
|
+
default: false,
|
|
137
|
+
},
|
|
138
|
+
readonly: {
|
|
139
|
+
type: Boolean,
|
|
140
|
+
default: false,
|
|
141
|
+
},
|
|
142
|
+
},
|
|
143
|
+
data() {
|
|
144
|
+
return {
|
|
145
|
+
internalPickerDate: this.pickerDate,
|
|
146
|
+
menuField: false,
|
|
147
|
+
dateField: this.modelValue,
|
|
148
|
+
fieldRange: revertDate(this.modelValue),
|
|
149
|
+
checkDateValid: value => {
|
|
150
|
+
if (value.length > 0) {
|
|
151
|
+
const isValid = checkDateValid(value);
|
|
152
|
+
return isValid ? true : 'Data inválida';
|
|
153
|
+
}
|
|
154
|
+
return true;
|
|
155
|
+
},
|
|
156
|
+
checkRequire: value => {
|
|
157
|
+
return this.required ? !!value || value != '' || 'Campo obrigatório' : true;
|
|
158
|
+
},
|
|
159
|
+
checkMax: value => {
|
|
160
|
+
if (!this.required && value.length === 0) {
|
|
161
|
+
return true;
|
|
162
|
+
}
|
|
163
|
+
return this.max && new Date(convertDate(value)) > new Date(this.max)
|
|
164
|
+
? 'A data está fora do período permitido'
|
|
165
|
+
: true;
|
|
166
|
+
},
|
|
167
|
+
checkMin: value => {
|
|
168
|
+
if (!this.required && value.length === 0) {
|
|
169
|
+
return true;
|
|
170
|
+
}
|
|
171
|
+
if (this.min) {
|
|
172
|
+
const dateSelected = new Date(convertDate(value));
|
|
173
|
+
const dateMin = new Date(convertDate(this.min));
|
|
174
|
+
if (dateSelected.getTime() >= dateMin.getTime()) {
|
|
175
|
+
return true;
|
|
176
|
+
}
|
|
177
|
+
return 'A data está fora do período permitido';
|
|
178
|
+
}
|
|
179
|
+
return true;
|
|
180
|
+
},
|
|
181
|
+
checkIsInAllowedDates: value => {
|
|
182
|
+
const dateSelected = convertDate(value);
|
|
183
|
+
|
|
184
|
+
if (!this.required && value.length === 0) {
|
|
185
|
+
return true;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
return this.allowedDatesValidator(dateSelected) || 'Data inválida';
|
|
189
|
+
},
|
|
190
|
+
};
|
|
191
|
+
},
|
|
192
|
+
watch: {
|
|
193
|
+
modelValue(newValue) {
|
|
194
|
+
this.dateField = newValue;
|
|
195
|
+
},
|
|
196
|
+
fieldRange(newValue) {
|
|
197
|
+
if (!newValue) {
|
|
198
|
+
this.dateField = '';
|
|
199
|
+
this.save();
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
menuField(newValue) {
|
|
203
|
+
if (newValue) {
|
|
204
|
+
this.dateField = this.modelValue;
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
},
|
|
208
|
+
methods: {
|
|
209
|
+
save() {
|
|
210
|
+
this.inputVal = this.dateField;
|
|
211
|
+
this.menuField = false;
|
|
212
|
+
this.fieldRange = revertDate(this.dateField);
|
|
213
|
+
this.closeDatepicker();
|
|
214
|
+
},
|
|
215
|
+
clear() {
|
|
216
|
+
this.dateField = '';
|
|
217
|
+
this.save();
|
|
218
|
+
this.$refs.inputCalendar.reset();
|
|
219
|
+
},
|
|
220
|
+
validation(date) {
|
|
221
|
+
const pattern =
|
|
222
|
+
/^(?:(?:31(\/|-|\.)(?:0?[13578]|1[02]))\1|(?:(?:29|30)(\/|-|\.)(?:0?[13-9]|1[0-2])\2))(?:(?:1[6-9]|[2-9]\d)?\d{2})$|^(?:29(\/|-|\.)0?2\3(?:(?:(?:1[6-9]|[2-9]\d)?(?:0[48]|[2468][048]|[13579][26])|(?:(?:16|[2468][048]|[3579][26])00))))$|^(?:0?[1-9]|1\d|2[0-8])(\/|-|\.)(?:(?:0?[1-9])|(?:1[0-2]))\4(?:(?:1[6-9]|[2-9]\d)?\d{2})$/gm;
|
|
223
|
+
return pattern.test(date);
|
|
224
|
+
},
|
|
225
|
+
keyUpInput(event) {
|
|
226
|
+
let newValue = event.target.value;
|
|
227
|
+
if (this.validation(newValue) && newValue.length === 10) {
|
|
228
|
+
const [day, month, year] = newValue.split('/');
|
|
229
|
+
this.dateField = `${year}-${month}-${day}`;
|
|
230
|
+
this.save();
|
|
231
|
+
}
|
|
232
|
+
},
|
|
233
|
+
getUniversalDate(d) {
|
|
234
|
+
const onlyDMY = d.split(' ')[0];
|
|
235
|
+
const arr = onlyDMY.split('/');
|
|
236
|
+
return new Date(arr[2], arr[1] - 1, arr[0]);
|
|
237
|
+
},
|
|
238
|
+
openDatepicker(event: MouseEvent) {
|
|
239
|
+
this.menuField = true;
|
|
240
|
+
event.stopPropagation();
|
|
241
|
+
},
|
|
242
|
+
closeDatepicker() {
|
|
243
|
+
this.menuField = false;
|
|
244
|
+
this.$refs.contextmenu.inputValue = false;
|
|
245
|
+
},
|
|
246
|
+
formatDatePickerHeader,
|
|
247
|
+
},
|
|
248
|
+
computed: {
|
|
249
|
+
inputVal: {
|
|
250
|
+
get() {
|
|
251
|
+
return this.modelValue;
|
|
252
|
+
},
|
|
253
|
+
set(val) {
|
|
254
|
+
this.$emit('update:modelValue', val);
|
|
255
|
+
},
|
|
256
|
+
},
|
|
257
|
+
isDisabled(): boolean {
|
|
258
|
+
if (this.modelValue) {
|
|
259
|
+
return this.modelValue.length === 0;
|
|
260
|
+
}
|
|
261
|
+
return true;
|
|
262
|
+
},
|
|
263
|
+
isDateFieldDisabled() {
|
|
264
|
+
if (this.dateField) {
|
|
265
|
+
return this.dateField.length === 0;
|
|
266
|
+
}
|
|
267
|
+
return true;
|
|
268
|
+
},
|
|
269
|
+
minDate() {
|
|
270
|
+
if (this.min) {
|
|
271
|
+
return new Date(this.min);
|
|
272
|
+
}
|
|
273
|
+
return null;
|
|
274
|
+
},
|
|
275
|
+
maxDate() {
|
|
276
|
+
if (this.max) {
|
|
277
|
+
return new Date(this.max);
|
|
278
|
+
}
|
|
279
|
+
return null;
|
|
280
|
+
},
|
|
281
|
+
allowedDaysList() {
|
|
282
|
+
if (this.allowedDays) {
|
|
283
|
+
return this.allowedDays.map(day => new Date().setDate(day));
|
|
284
|
+
}
|
|
285
|
+
return null;
|
|
286
|
+
},
|
|
287
|
+
},
|
|
288
|
+
};
|
|
289
|
+
</script>
|
|
290
|
+
<style lang="scss" scoped>
|
|
291
|
+
@import './DatePicker.scss';
|
|
292
|
+
</style>
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { shallowMount } from '@vue/test-utils';
|
|
2
|
+
import DatePicker from '../DatePicker';
|
|
3
|
+
|
|
4
|
+
describe('DatePicker component', () => {
|
|
5
|
+
let wrapper;
|
|
6
|
+
let component;
|
|
7
|
+
|
|
8
|
+
beforeEach(() => {
|
|
9
|
+
wrapper = shallowMount(DatePicker, {
|
|
10
|
+
propsData: {
|
|
11
|
+
inputId: 'someid',
|
|
12
|
+
},
|
|
13
|
+
});
|
|
14
|
+
component = wrapper.vm;
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
test('Created hook', () => {
|
|
18
|
+
expect(wrapper).toBeDefined();
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
describe('mount component', () => {
|
|
22
|
+
it('renders correctly', () => {
|
|
23
|
+
expect(wrapper.element).toMatchSnapshot();
|
|
24
|
+
});
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
describe('computed properties', () => {
|
|
28
|
+
it('get inputVal', () => {
|
|
29
|
+
expect(component.inputVal).toBeFalsy();
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
it('get inputVal', () => {
|
|
33
|
+
component.inputVal = 'teste';
|
|
34
|
+
expect(wrapper.emitted()['update:modelValue']).toBeDefined();
|
|
35
|
+
});
|
|
36
|
+
it('isDisabled to be true when value is empty', async () => {
|
|
37
|
+
await wrapper.setProps({
|
|
38
|
+
modelValue: '',
|
|
39
|
+
});
|
|
40
|
+
expect(component.isDisabled).toBe(true);
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
it('isDisabled to be true when value is empty', async () => {
|
|
44
|
+
await wrapper.setProps({
|
|
45
|
+
modelValue: null,
|
|
46
|
+
});
|
|
47
|
+
expect(component.isDisabled).toBe(true);
|
|
48
|
+
});
|
|
49
|
+
it('isDisabled to be false when value is valid', async () => {
|
|
50
|
+
await wrapper.setProps({
|
|
51
|
+
modelValue: '2023-02-02',
|
|
52
|
+
});
|
|
53
|
+
expect(component.isDisabled).toBe(false);
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
it('isDateFieldDisabled to be true when dateField is empty', async () => {
|
|
57
|
+
await wrapper.setProps({
|
|
58
|
+
modelValue: '',
|
|
59
|
+
});
|
|
60
|
+
expect(component.isDateFieldDisabled).toBe(true);
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
it('isDateFieldDisabled to be true when dateField is empty', async () => {
|
|
64
|
+
await wrapper.setProps({
|
|
65
|
+
modelValue: null,
|
|
66
|
+
});
|
|
67
|
+
expect(component.isDateFieldDisabled).toBe(true);
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
it('isDateFieldDisabled to be false when dateField is valid', async () => {
|
|
71
|
+
await wrapper.setProps({
|
|
72
|
+
modelValue: '2023-02-02',
|
|
73
|
+
});
|
|
74
|
+
expect(component.isDateFieldDisabled).toBe(false);
|
|
75
|
+
});
|
|
76
|
+
|
|
77
|
+
it('should allow all dates', async () => {
|
|
78
|
+
await wrapper.setProps({
|
|
79
|
+
allowedDates: () => true
|
|
80
|
+
});
|
|
81
|
+
expect(component.checkIsInAllowedDates('2023-07-03')).toBe(true);
|
|
82
|
+
expect(component.checkIsInAllowedDates('2099-12-20')).toBe(true);
|
|
83
|
+
expect(component.checkIsInAllowedDates('1985-01-23')).toBe(true);
|
|
84
|
+
});
|
|
85
|
+
|
|
86
|
+
/*
|
|
87
|
+
it('should allow only dates in year 2077', async () => {
|
|
88
|
+
await wrapper.setProps({
|
|
89
|
+
allowedDates: (value) => new Date(value).getFullYear() === 2077
|
|
90
|
+
});
|
|
91
|
+
expect(component.checkIsInAllowedDates('2077-05-03')).toBe(true);
|
|
92
|
+
expect(component.checkIsInAllowedDates('2023-05-03')).toBe('Data inválida');
|
|
93
|
+
});
|
|
94
|
+
*/
|
|
95
|
+
});
|
|
96
|
+
|
|
97
|
+
describe('methods', () => {
|
|
98
|
+
it('openDatepicker', () => {
|
|
99
|
+
component.openDatepicker({ stopPropagation: jest.fn() });
|
|
100
|
+
expect(component.menuField).toBeTruthy();
|
|
101
|
+
});
|
|
102
|
+
|
|
103
|
+
it('closeDatepicker', () => {
|
|
104
|
+
component.closeDatepicker();
|
|
105
|
+
expect(component.menuField).toBeFalsy();
|
|
106
|
+
});
|
|
107
|
+
});
|
|
108
|
+
});
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
.dp__main {
|
|
2
|
+
font-family: inherit;
|
|
3
|
+
justify-content: center;
|
|
4
|
+
|
|
5
|
+
:deep(.dp__calendar_row,) {
|
|
6
|
+
width: calc( 35px * 7);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
:deep(.dp__calendar_header) {
|
|
10
|
+
width: calc( 35px * 7);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
:deep(.dp__cell_inner) {
|
|
14
|
+
font-size: 12px;
|
|
15
|
+
font-weight: 500;
|
|
16
|
+
color: var(--farm-neutral-darken);
|
|
17
|
+
padding: 0;
|
|
18
|
+
width: 35px;
|
|
19
|
+
border: 0;
|
|
20
|
+
|
|
21
|
+
&.dp__cell_offset {
|
|
22
|
+
color: var(--farm-gray-lighten);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&.dp__cell_disabled {
|
|
26
|
+
color: var(--farm-gray-lighten);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&.dp__range_start, &.dp__range_end {
|
|
30
|
+
background-color: var(--farm-primary-base);
|
|
31
|
+
color: white;
|
|
32
|
+
}
|
|
33
|
+
&.dp__range_between {
|
|
34
|
+
background-color: var(--farm-primary-lighten);
|
|
35
|
+
color: var(--farm-primary-darken);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
:deep(.dp__menu) {
|
|
40
|
+
border: 0;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
:deep(.dp--tp-wrap) {
|
|
44
|
+
display: none;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
:deep(.dp__active_date) {
|
|
48
|
+
background-color: var(--farm-primary-base);
|
|
49
|
+
color: white;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
:deep(.dp__today) {
|
|
53
|
+
border: 1px solid var(--farm-primary-base);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
:deep(.dp__calendar_header_separator) {
|
|
57
|
+
display: none;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
:deep(.dp__calendar_header) {
|
|
61
|
+
color: var(--farm-neutral-darken);
|
|
62
|
+
font-size: 16px;
|
|
63
|
+
font-weight: 700;
|
|
64
|
+
margin-top: 16px;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
:deep(.dp__calendar_row) {
|
|
68
|
+
margin: 0;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.picker__actions {
|
|
74
|
+
padding: 16px 8px 0;
|
|
75
|
+
border-top: 1px solid var(--farm-stroke-base);
|
|
76
|
+
margin-bottom: 16px;
|
|
77
|
+
margin-left: -4px;
|
|
78
|
+
margin-right: -4px;
|
|
79
|
+
}
|
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
.v-picker__actions {
|
|
2
|
+
padding: 16px 8px 0;
|
|
3
|
+
border-top: 1px solid var(--farm-stroke-base);
|
|
4
|
+
margin-bottom: 16px;
|
|
5
|
+
margin-left: -4px;
|
|
6
|
+
margin-right: -4px;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.v-date-picker-header__value {
|
|
10
|
+
text-align: left;
|
|
11
|
+
|
|
12
|
+
button:first-letter {
|
|
13
|
+
text-transform: capitalize;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
button:hover:after {
|
|
17
|
+
border-top-color: var(--farm-primary-base);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
button:after {
|
|
21
|
+
position: absolute;
|
|
22
|
+
content: '';
|
|
23
|
+
width: 0px;
|
|
24
|
+
height: 0px;
|
|
25
|
+
border-top: 0.25rem solid var(--farm-secondary-green-base);
|
|
26
|
+
border-right: 0.25rem solid transparent;
|
|
27
|
+
border-bottom: 0.25rem solid transparent;
|
|
28
|
+
border-left: 0.25rem solid transparent;
|
|
29
|
+
margin-left: 0.5rem;
|
|
30
|
+
margin-top: 0.5rem;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.v-date-picker-header {
|
|
35
|
+
display: grid;
|
|
36
|
+
grid-template-columns: 1fr 60px 36px;
|
|
37
|
+
grid-template-areas: ' a b c ';
|
|
38
|
+
|
|
39
|
+
.v-btn:nth-child(1) {
|
|
40
|
+
grid-area: b;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
>div {
|
|
44
|
+
grid-area: a;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.v-btn:nth-child(3) {
|
|
48
|
+
grid-area: c;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.v-date-picker-table__current.v-btn--active {
|
|
53
|
+
color: white;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.v-date-picker-header {
|
|
57
|
+
padding: 0;
|
|
58
|
+
margin-top: 16px;
|
|
59
|
+
margin-bottom: 16px;
|
|
60
|
+
margin-left: 16px;
|
|
61
|
+
|
|
62
|
+
.mdi-chevron-left::before,
|
|
63
|
+
.mdi-chevron-right::before {
|
|
64
|
+
color: var(--farm-neutral-darken);
|
|
65
|
+
font-size: 20px;
|
|
66
|
+
font-weight: 900;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.v-picker__body:has(div > .v-date-picker-years) {
|
|
71
|
+
li {
|
|
72
|
+
color: var(--farm-neutral-darken);
|
|
73
|
+
font-size: 12px;
|
|
74
|
+
font-weight: 500;
|
|
75
|
+
width: 70px;
|
|
76
|
+
margin: 0 auto;
|
|
77
|
+
border-radius: 5px;
|
|
78
|
+
|
|
79
|
+
&.active {
|
|
80
|
+
color: #fff;
|
|
81
|
+
background-color: var(--farm-primary-base);
|
|
82
|
+
border: 1px solid var(--farm-primary-base);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
&:hover:not(.active) {
|
|
86
|
+
background-color: var(--farm-primary-lighten);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.v-date-picker-header__value {
|
|
92
|
+
button {
|
|
93
|
+
padding-left: 0;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.v-date-picker-table {
|
|
98
|
+
padding: 0 40px;
|
|
99
|
+
margin-bottom: 24px;
|
|
100
|
+
height: auto;
|
|
101
|
+
|
|
102
|
+
table {
|
|
103
|
+
height: 100%;
|
|
104
|
+
border-spacing:0;
|
|
105
|
+
border-collapse: collapse;
|
|
106
|
+
|
|
107
|
+
td {
|
|
108
|
+
height: 32px;
|
|
109
|
+
width: 32px;
|
|
110
|
+
overflow: hidden;
|
|
111
|
+
padding: 0;
|
|
112
|
+
display: table-cell;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
table thead th {
|
|
117
|
+
color: var(--farm-neutral-darken);
|
|
118
|
+
font-size: 16px;
|
|
119
|
+
font-weight: 700;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
table tbody td .v-btn {
|
|
123
|
+
color: var(--farm-neutral-darken);
|
|
124
|
+
font-size: 12px;
|
|
125
|
+
font-weight: 500;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
table tbody td .v-btn.v-btn--disabled {
|
|
129
|
+
color: var(--farm-gray-lighten);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
table tbody td .v-btn.v-date-picker-table__current,
|
|
133
|
+
.v-btn.v-btn--active {
|
|
134
|
+
border-radius: 5px;
|
|
135
|
+
border-color: var(--farm-primary-base);
|
|
136
|
+
border-width: 2px;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
table tbody td .v-btn.v-date-picker-table__current {
|
|
140
|
+
color: var(--farm-primary-base);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
table tbody td .v-btn.v-btn--active {
|
|
144
|
+
color: white;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
table tbody td .v-btn--rounded {
|
|
148
|
+
border-radius: 5px;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
table tbody td .v-btn {
|
|
152
|
+
&:not(.v-btn--active):hover::before {
|
|
153
|
+
background-color: var(--farm-primary-lighten);
|
|
154
|
+
opacity: 1;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
&::before {
|
|
158
|
+
background-color: transparent;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
&.rangedatepicker .v-date-picker-table {
|
|
165
|
+
table tbody td .v-btn.v-btn--active {
|
|
166
|
+
&:not(.v-date-picker--first-in-range, .v-date-picker--last-in-range) {
|
|
167
|
+
background: var(--farm-primary-lighten);
|
|
168
|
+
color: var(--farm-primary-base);
|
|
169
|
+
border-radius: 0;
|
|
170
|
+
//width: 37px;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
&.v-date-picker--first-in-range,
|
|
174
|
+
&.v-date-picker--last-in-range {
|
|
175
|
+
//width: 37px;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
&.v-date-picker--first-in-range {
|
|
179
|
+
border-top-right-radius: 0;
|
|
180
|
+
border-bottom-right-radius: 0;
|
|
181
|
+
border-top-left-radius: 5px;
|
|
182
|
+
border-bottom-left-radius: 5px;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
&.v-date-picker--last-in-range {
|
|
186
|
+
border-top-right-radius: 5px;
|
|
187
|
+
border-bottom-right-radius: 5px;
|
|
188
|
+
border-top-left-radius: 0;
|
|
189
|
+
border-bottom-left-radius: 0;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
&.v-date-picker--last-in-range.v-date-picker--first-in-range {
|
|
193
|
+
border-radius: 5px;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
&.rangedatepicker.invert-date .v-date-picker-table {
|
|
199
|
+
table tbody td .v-btn.v-btn--active {
|
|
200
|
+
&.v-date-picker--first-in-range {
|
|
201
|
+
border-top-left-radius: 0;
|
|
202
|
+
border-bottom-left-radius: 0;
|
|
203
|
+
border-top-right-radius: 5px;
|
|
204
|
+
border-bottom-right-radius: 5px;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
&.v-date-picker--last-in-range {
|
|
208
|
+
border-top-left-radius: 5px;
|
|
209
|
+
border-bottom-left-radius: 5px;
|
|
210
|
+
border-top-right-radius: 0;
|
|
211
|
+
border-bottom-right-radius: 0;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
}
|