@weni/unnnic-system 3.31.1-alpha.2 → 3.32.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/style.css +1 -1
- package/dist/unnnic.mjs +1 -1
- package/dist/unnnic.umd.js +1 -1
- package/package.json +8 -9
- package/public/doris.png +0 -0
- package/public/favicon.ico +0 -0
- package/src/App.vue +0 -0
- package/src/assets/emoji/u1F600.png +0 -0
- package/src/assets/emoji/u1F601.png +0 -0
- package/src/assets/emoji/u1F602.png +0 -0
- package/src/assets/emoji/u1F603.png +0 -0
- package/src/assets/emoji/u1F604.png +0 -0
- package/src/assets/emoji/u1F605.png +0 -0
- package/src/assets/emoji/u1F606.png +0 -0
- package/src/assets/emoji/u1F607.png +0 -0
- package/src/assets/emoji/u1F608.png +0 -0
- package/src/assets/emoji/u1F609.png +0 -0
- package/src/assets/emoji/u1F610.png +0 -0
- package/src/assets/emoji/u1F611.png +0 -0
- package/src/assets/emoji/u1F612.png +0 -0
- package/src/assets/emoji/u1F613.png +0 -0
- package/src/assets/emoji/u1F614.png +0 -0
- package/src/assets/emoji/u1F615.png +0 -0
- package/src/assets/emoji/u1F616.png +0 -0
- package/src/assets/emoji/u1F617.png +0 -0
- package/src/assets/emoji/u1F618.png +0 -0
- package/src/assets/emoji/u1F619.png +0 -0
- package/src/assets/emoji/u1F620.png +0 -0
- package/src/assets/emoji/u1F621.png +0 -0
- package/src/assets/emoji/u1F622.png +0 -0
- package/src/assets/emoji/u1F623.png +0 -0
- package/src/assets/emoji/u1F624.png +0 -0
- package/src/assets/emoji/u1F625.png +0 -0
- package/src/assets/emoji/u1F626.png +0 -0
- package/src/assets/emoji/u1F627.png +0 -0
- package/src/assets/emoji/u1F628.png +0 -0
- package/src/assets/emoji/u1F629.png +0 -0
- package/src/assets/emoji/u1F630.png +0 -0
- package/src/assets/emoji/u1F631.png +0 -0
- package/src/assets/emoji/u1F632.png +0 -0
- package/src/assets/emoji/u1F633.png +0 -0
- package/src/assets/emoji/u1F634.png +0 -0
- package/src/assets/emoji/u1F635.png +0 -0
- package/src/assets/emoji/u1F636.png +0 -0
- package/src/assets/emoji/u1F637.png +0 -0
- package/src/assets/emoji/u1F638.png +0 -0
- package/src/assets/emoji/u1F639.png +0 -0
- package/src/assets/emoji/u1F640.png +0 -0
- package/src/assets/emoji/u1F641.png +0 -0
- package/src/assets/emoji/u1F642.png +0 -0
- package/src/assets/emoji/u1F643.png +0 -0
- package/src/assets/emoji/u1F644.png +0 -0
- package/src/assets/emoji/u1F645.png +0 -0
- package/src/assets/fonts/material-symbols-rounded.woff2 +0 -0
- package/src/assets/icons/Brazil.vue +74 -0
- package/src/assets/icons/CheckboxDefault.vue +19 -0
- package/src/assets/icons/CheckboxDisable.vue +19 -0
- package/src/assets/icons/CheckboxLess.vue +23 -0
- package/src/assets/icons/CheckboxSelect.vue +25 -0
- package/src/assets/icons/FitnessBiceps1.vue +15 -0
- package/src/assets/icons/Indicator.vue +18 -0
- package/src/assets/icons/Messages.vue +18 -0
- package/src/assets/icons/NavigationMenuVertical1.vue +25 -0
- package/src/assets/icons/Pin.vue +33 -0
- package/src/assets/icons/RadioDefault.vue +17 -0
- package/src/assets/icons/RadioDisable.vue +17 -0
- package/src/assets/icons/RadioSelected.vue +23 -0
- package/src/assets/icons/SingleNeutral2.vue +20 -0
- package/src/assets/icons/SingleNeutralActions1.vue +20 -0
- package/src/assets/icons/SocialInstagram1.vue +15 -0
- package/src/assets/icons/SocialMediaFacebook1.vue +15 -0
- package/src/assets/icons/SortAsc.vue +19 -0
- package/src/assets/icons/SortDefault.vue +20 -0
- package/src/assets/icons/SortDesc.vue +19 -0
- package/src/assets/icons/Spain.vue +1846 -0
- package/src/assets/icons/SwitchDefault.vue +31 -0
- package/src/assets/icons/SwitchDefaultDisabled.vue +25 -0
- package/src/assets/icons/SwitchSelected.vue +31 -0
- package/src/assets/icons/SwitchSelectedDisabled.vue +23 -0
- package/src/assets/icons/TransferMessage.vue +24 -0
- package/src/assets/icons/USA.vue +192 -0
- package/src/assets/icons/Unpin.vue +33 -0
- package/src/assets/icons/checkbox-checked-disabled.svg +3 -0
- package/src/assets/icons/checkbox-checked.svg +3 -0
- package/src/assets/icons/checkbox-less-disabled.svg +3 -0
- package/src/assets/icons/checkbox-less.svg +3 -0
- package/src/assets/icons/radio-checked.svg +3 -0
- package/src/assets/icons/switch-checked-disabled.svg +3 -0
- package/src/assets/icons/switch-checked.svg +3 -0
- package/src/assets/icons/weni-loading.svg +2 -0
- package/src/assets/img/flag/en.svg +28 -0
- package/src/assets/img/flag/pt-br.svg +21 -0
- package/src/assets/img/previews/doc-preview.png +0 -0
- package/src/assets/img/previews/image-preview.png +0 -0
- package/src/assets/img/previews/video-preview.png +0 -0
- package/src/assets/tokens/colors-primitives.json +155 -0
- package/src/assets/tokens/colors-semantic-dark.json +55 -0
- package/src/assets/tokens/colors-semantic.json +55 -0
- package/src/assets/tokens/fonts.json +70 -0
- package/src/assets/tokens/icon-sizes.json +22 -0
- package/src/assets/tokens/radii.json +28 -0
- package/src/assets/tokens/shadows.json +10 -0
- package/src/assets/tokens/spaces.json +46 -0
- package/src/components/Accordion/Accordion.vue +149 -0
- package/src/components/Alert/Alert.vue +62 -0
- package/src/components/Alert/Version1dot1.vue +231 -0
- package/src/components/Alert/__tests__/Alert.spec.js +41 -0
- package/src/components/Alert/__tests__/Version1dot1.spec.js +101 -0
- package/src/components/Alert/__tests__/__snapshots__/Alert.spec.js.snap +15 -0
- package/src/components/Alert/__tests__/__snapshots__/AlertBanner.spec.js.snap +10 -0
- package/src/components/Alert/__tests__/__snapshots__/AlertCaller.spec.js.snap +3 -0
- package/src/components/Alert/__tests__/__snapshots__/Version1dot1.spec.js.snap +13 -0
- package/src/components/AudioRecorder/AudioHandler.vue +121 -0
- package/src/components/AudioRecorder/AudioPlayer.vue +403 -0
- package/src/components/AudioRecorder/AudioRecorder.vue +475 -0
- package/src/components/AudioRecorder/AudioTranscriptionButton.vue +73 -0
- package/src/components/AvatarIcon/AvatarIcon.vue +107 -0
- package/src/components/AvatarIcon/__tests__/AvatarIcon.spec.js +84 -0
- package/src/components/AvatarIcon/__tests__/__snapshots__/AvatarIcon.spec.js.snap +7 -0
- package/src/components/Banner/Banner.vue +79 -0
- package/src/components/Banner/InfoBanner.vue +158 -0
- package/src/components/Breadcrumb/Breadcrumb.vue +82 -0
- package/src/components/Breadcrumb/__tests__/Breadcrumb.spec.js +68 -0
- package/src/components/Button/Button.vue +371 -0
- package/src/components/Button/__tests__/Button.spec.js +188 -0
- package/src/components/Button/types.ts +22 -0
- package/src/components/Card/AccountCard.vue +94 -0
- package/src/components/Card/BlankCard.vue +85 -0
- package/src/components/Card/Card.vue +218 -0
- package/src/components/Card/CardCompany.vue +189 -0
- package/src/components/Card/CardData.vue +123 -0
- package/src/components/Card/CardStatusesContainer.vue +255 -0
- package/src/components/Card/ContentCard.vue +145 -0
- package/src/components/Card/DashCard.vue +144 -0
- package/src/components/Card/DefaultCard.vue +87 -0
- package/src/components/Card/MarketplaceCard.vue +187 -0
- package/src/components/Card/SimpleCard.vue +166 -0
- package/src/components/Card/StatusCard.vue +113 -0
- package/src/components/Card/TitleCard.vue +100 -0
- package/src/components/CardImage/CardImage.vue +172 -0
- package/src/components/CardInformation/CardInformation.vue +65 -0
- package/src/components/CardNumber/CardNumber.vue +61 -0
- package/src/components/CardProject/CardProject.vue +320 -0
- package/src/components/CardProject/__tests__/CardProject.spec.js +161 -0
- package/src/components/ChartBar/ChartBar.vue +428 -0
- package/src/components/ChartFunnel/ChartFunnel.vue +70 -0
- package/src/components/ChartFunnel/DefaultFunnel/ChartDefaultFunnelBase.vue +200 -0
- package/src/components/ChartFunnel/DefaultFunnel/__tests__/ChartDefaultFunnelBase.unit.spec.js +123 -0
- package/src/components/ChartFunnel/DefaultFunnel/__tests__/__snapshots__/ChartDefaultFunnelBase.unit.spec.js.snap +66 -0
- package/src/components/ChartFunnel/SvgFunnel/ChartFunnelBaseRow.vue +79 -0
- package/src/components/ChartFunnel/SvgFunnel/ChartFunnelFiveRows.vue +101 -0
- package/src/components/ChartFunnel/SvgFunnel/ChartFunnelFourRows.vue +89 -0
- package/src/components/ChartFunnel/SvgFunnel/ChartFunnelThreeRows.vue +77 -0
- package/src/components/ChartFunnel/SvgFunnel/ChartFunnelTwoRows.vue +64 -0
- package/src/components/ChartFunnel/SvgFunnel/__tests__/ChartFunnelBaseRow.unit.spec.js +192 -0
- package/src/components/ChartFunnel/SvgFunnel/__tests__/ChartFunnelFiveRows.unit.spec.js +126 -0
- package/src/components/ChartFunnel/SvgFunnel/__tests__/ChartFunnelFourRows.unit.spec.js +122 -0
- package/src/components/ChartFunnel/SvgFunnel/__tests__/ChartFunnelThreeRow.unit.spec.js +120 -0
- package/src/components/ChartFunnel/SvgFunnel/__tests__/__snapshots__/ChartFunnelBaseRow.unit.spec.js.snap +15 -0
- package/src/components/ChartFunnel/SvgFunnel/__tests__/__snapshots__/ChartFunnelFiveRows.unit.spec.js.snap +3 -0
- package/src/components/ChartFunnel/SvgFunnel/__tests__/__snapshots__/ChartFunnelFourRows.unit.spec.js.snap +3 -0
- package/src/components/ChartFunnel/SvgFunnel/__tests__/__snapshots__/ChartFunnelThreeRow.unit.spec.js.snap +3 -0
- package/src/components/ChartFunnel/__tests__/ChartFunnel.unit.spec.js +161 -0
- package/src/components/ChartFunnel/__tests__/__snapshots__/ChartFunnel.unit.spec.js.snap +3 -0
- package/src/components/ChartLine/ChartLine.vue +322 -0
- package/src/components/ChartLine/__tests__/ChartLine.spec.js +170 -0
- package/src/components/ChartMultiLine/ChartMultiLine.vue +326 -0
- package/src/components/ChartMultiLine/Line/Line.vue +170 -0
- package/src/components/ChartRainbow/ChartRainbow.vue +201 -0
- package/src/components/ChatsUserAvatar/ChatsUserAvatar.vue +158 -0
- package/src/components/Checkbox/Checkbox.vue +192 -0
- package/src/components/Checkbox/__tests__/Checkbox.spec.js +65 -0
- package/src/components/CheckboxGroup/CheckboxGroup.vue +88 -0
- package/src/components/CheckboxGroup/__tests__/CheckboxGroup.spec.js +62 -0
- package/src/components/Chip/Chip.vue +125 -0
- package/src/components/Chip/__tests__/Chip.spec.js +164 -0
- package/src/components/Chip/types.ts +8 -0
- package/src/components/Collapse/Collapse.vue +142 -0
- package/src/components/Collapse/__tests__/Collapse.spec.js +117 -0
- package/src/components/Collapse/__tests__/__snapshots__/Collapse.spec.js.snap +8 -0
- package/src/components/Comment/Comment.vue +99 -0
- package/src/components/DataArea/DataArea.vue +99 -0
- package/src/components/DataTable/index.vue +555 -0
- package/src/components/DateFilter/DateFilter.vue +82 -0
- package/src/components/DatePicker/DatePicker.vue +1148 -0
- package/src/components/DatePicker/__tests__/DatePicker.spec.js +591 -0
- package/src/components/DatePicker/translations.js +148 -0
- package/src/components/Disclaimer/Disclaimer.vue +179 -0
- package/src/components/Disclaimer/__tests__/Disclaimer.spec.js +165 -0
- package/src/components/Disclaimer/types.ts +16 -0
- package/src/components/Drawer/Drawer.vue +248 -0
- package/src/components/Drawer/__tests__/Drawer.spec.js +280 -0
- package/src/components/Drawer/__tests__/__snapshots__/Drawer.spec.js.snap +22 -0
- package/src/components/DropArea/DropArea.vue +373 -0
- package/src/components/DropArea/__tests__/DropArea.spec.js +333 -0
- package/src/components/Dropdown/Dropdown.vue +142 -0
- package/src/components/Dropdown/DropdownItem.vue +32 -0
- package/src/components/Dropdown/DropdownSkeleton.vue +180 -0
- package/src/components/Dropdown/LanguageSelect.vue +296 -0
- package/src/components/Dropdown/__tests__/Dropdown.spec.js +155 -0
- package/src/components/Dropdown/__tests__/DropdownItem.spec.js +25 -0
- package/src/components/Dropdown/__tests__/DropdownSkeleton.spec.js +147 -0
- package/src/components/EmojiPicker/EmojiPicker.vue +244 -0
- package/src/components/EmojiPicker/__tests__/EmojiPicker.spec.js +236 -0
- package/src/components/Flag.vue +40 -0
- package/src/components/FormElement/FormElement.vue +139 -0
- package/src/components/Icon/OldIconsMap.json +111 -0
- package/src/components/Icon/types.ts +26 -0
- package/src/components/Icon.vue +198 -0
- package/src/components/IconLoading/IconLoading.vue +107 -0
- package/src/components/ImportCard/ImportCard.vue +245 -0
- package/src/components/Input/BaseInput.vue +156 -0
- package/src/components/Input/Input.scss +43 -0
- package/src/components/Input/Input.vue +191 -0
- package/src/components/Input/TextInput.vue +233 -0
- package/src/components/Input/__test__/BaseInput.spec.js +107 -0
- package/src/components/Input/__test__/Input.spec.js +103 -0
- package/src/components/Input/__test__/TextInput.spec.js +209 -0
- package/src/components/Input/__test__/__snapshots__/BaseInput.spec.js.snap +3 -0
- package/src/components/Input/__test__/__snapshots__/Input.spec.js.snap +22 -0
- package/src/components/Input/__test__/__snapshots__/TextInput.spec.js.snap +9 -0
- package/src/components/InputDatePicker/InputDatePicker.vue +253 -0
- package/src/components/InputDatePicker/__test__/InputDatePicker.spec.js +208 -0
- package/src/components/Label/Label.vue +62 -0
- package/src/components/Label/__tests__/Label.spec.js +30 -0
- package/src/components/Label/__tests__/__snapshots__/Label.spec.js.snap +3 -0
- package/src/components/Modal/CallModal.vue +23 -0
- package/src/components/Modal/Modal.vue +377 -0
- package/src/components/ModalDialog/ModalDialog.vue +245 -0
- package/src/components/ModalDialog/__tests__/ModalDialog.spec.js +159 -0
- package/src/components/ModalDialog/__tests__/__snapshots__/ModalDialog.spec.js.snap +3 -0
- package/src/components/ModalNext/ModalNext.vue +437 -0
- package/src/components/MultiSelect/MultiSelectOption.vue +49 -0
- package/src/components/MultiSelect/__tests__/MultiSelect.spec.js +655 -0
- package/src/components/MultiSelect/__tests__/MultiSelectOption.spec.js +229 -0
- package/src/components/MultiSelect/__tests__/__snapshots__/MultiSelect.spec.js.snap +91 -0
- package/src/components/MultiSelect/__tests__/__snapshots__/MultiSelectOption.spec.js.snap +51 -0
- package/src/components/MultiSelect/index.vue +240 -0
- package/src/components/Navigator/__tests__/Navigator.spec.js +55 -0
- package/src/components/Navigator/index.vue +100 -0
- package/src/components/PageHeader/PageHeader.vue +151 -0
- package/src/components/PageHeader/__tests__/PageHeader.spec.js +97 -0
- package/src/components/PageHeader/index.ts +2 -0
- package/src/components/PageHeader/types.ts +11 -0
- package/src/components/Pagination/Pagination.vue +190 -0
- package/src/components/Pagination/__tests__/Pagination.spec.js +307 -0
- package/src/components/ProgressBar/ProgressBar.vue +245 -0
- package/src/components/Radio/Radio.vue +168 -0
- package/src/components/Radio/__test__/Radio.spec.js +145 -0
- package/src/components/Radio/__test__/__snapshots__/Radio.spec.js.snap +8 -0
- package/src/components/RadioGroup/RadioGroup.vue +128 -0
- package/src/components/RadioGroup/__tests__/RadioGroup.spec.js +100 -0
- package/src/components/Select/SelectItem.vue +85 -0
- package/src/components/Select/__tests__/Select.spec.js +626 -0
- package/src/components/Select/__tests__/SelectItem.spec.js +330 -0
- package/src/components/Select/__tests__/__snapshots__/Popover.spec.js.snap +8 -0
- package/src/components/Select/__tests__/__snapshots__/Select.spec.js.snap +91 -0
- package/src/components/Select/__tests__/__snapshots__/SelectItem.spec.js.snap +15 -0
- package/src/components/Select/__tests__/__snapshots__/SelectOption.spec.js.snap +25 -0
- package/src/components/Select/__tests__/__snapshots__/SelectPopover.spec.js.snap +8 -0
- package/src/components/Select/_select-shared.scss +25 -0
- package/src/components/Select/index.vue +459 -0
- package/src/components/Select/types.ts +37 -0
- package/src/components/SelectSmart/SelectSmart.vue +873 -0
- package/src/components/SelectSmart/SelectSmartMultipleHeader.vue +144 -0
- package/src/components/SelectSmart/SelectSmartOption.vue +178 -0
- package/src/components/SelectSmart/__tests__/SelectSmart.spec.js +527 -0
- package/src/components/SelectSmart/__tests__/SelectSmartMultipleHeader.spec.js +86 -0
- package/src/components/SelectSmart/__tests__/SelectSmartOption.spec.js +139 -0
- package/src/components/SelectSmart/__tests__/__snapshots__/SelectSmartMultipleHeader.spec.js.snap +8 -0
- package/src/components/SelectSmart/__tests__/__snapshots__/SelectSmartOption.spec.js.snap +10 -0
- package/src/components/SelectTime/index.vue +220 -0
- package/src/components/Sidebar/SidebarItem.vue +224 -0
- package/src/components/Sidebar/__tests__/SidebarItem.spec.js +105 -0
- package/src/components/Sidebar/__tests__/Siderbar.spec.js +92 -0
- package/src/components/Sidebar/index.vue +126 -0
- package/src/components/Sidebar/propsValidator.js +24 -0
- package/src/components/SkeletonLoading/SkeletonLoading.vue +156 -0
- package/src/components/SkeletonLoading/__tests__/SkeletonLoading.spec.js +128 -0
- package/src/components/SkeletonLoading/skeletonTheme.vue +66 -0
- package/src/components/Switch/Switch.vue +185 -0
- package/src/components/Switch/__tests__/Switch.spec.js +55 -0
- package/src/components/Switch/__tests__/__snapshots__/Switch.spec.js.snap +10 -0
- package/src/components/Tab/Tab.vue +203 -0
- package/src/components/Tab/__test__/Tab.spec.js +152 -0
- package/src/components/Tab/__test__/__snapshots__/Tab.spec.js.snap +23 -0
- package/src/components/Table/Table.vue +143 -0
- package/src/components/Table/TableRow.vue +101 -0
- package/src/components/TableNext/TableBodyCell.vue +47 -0
- package/src/components/TableNext/TableNext.vue +428 -0
- package/src/components/TableNext/TablePagination.vue +98 -0
- package/src/components/TableNext/__test__/TableBodyCell.spec.js +65 -0
- package/src/components/TableNext/__test__/TableNext.spec.js +197 -0
- package/src/components/TableNext/__test__/TablePagination.spec.js +65 -0
- package/src/components/TableNext/__test__/__snapshots__/TableNext.spec.js.snap +59 -0
- package/src/components/TableNext/__test__/__snapshots__/TablePagination.spec.js.snap +41 -0
- package/src/components/TableNext/__test__/validation.unit.test.js +90 -0
- package/src/components/TableNext/validation.js +66 -0
- package/src/components/TabsExpanded/TabsExpanded.vue +156 -0
- package/src/components/TabsExpanded/__tests__/TabsExpanded.spec.js +78 -0
- package/src/components/Tag/DefaultTag.vue +87 -0
- package/src/components/Tag/Tag.vue +43 -0
- package/src/components/Tag/__tests__/DefaultTag.spec.js +51 -0
- package/src/components/Tag/__tests__/Tag.spec.js +82 -0
- package/src/components/Tag/types.ts +19 -0
- package/src/components/TemplatePreview/TemplatePreview.vue +252 -0
- package/src/components/TemplatePreview/TemplatePreviewModal.vue +51 -0
- package/src/components/TemplatePreview/types.d.ts +16 -0
- package/src/components/TextArea/TextArea.vue +138 -0
- package/src/components/TextArea/__test__/TextArea.spec.js +218 -0
- package/src/components/TextArea/__test__/__snapshots__/TextArea.spec.js.snap +17 -0
- package/src/components/Toast/Toast.vue +252 -0
- package/src/components/Toast/ToastManager.ts +113 -0
- package/src/components/Toast/__tests__/Toast.spec.js +291 -0
- package/src/components/Toast/__tests__/ToastManager.spec.js +298 -0
- package/src/components/Toast/types.ts +57 -0
- package/src/components/ToolTip/ToolTip.vue +99 -0
- package/src/components/ToolTip/__tests__/ToolTip.spec.js +451 -0
- package/src/components/Tour/Tour.vue +138 -0
- package/src/components/Tour/TourMask.vue +135 -0
- package/src/components/Tour/TourPopover.vue +236 -0
- package/src/components/Tour/propsValidation.js +82 -0
- package/src/components/UploadArea/UploadArea.vue +141 -0
- package/src/components/__tests__/Icon.spec.js +94 -0
- package/src/components/config.js +1 -0
- package/src/components/grid/Grid.vue +50 -0
- package/src/components/icons/IconCommunity.vue +12 -0
- package/src/components/icons/IconDocumentation.vue +12 -0
- package/src/components/icons/IconEcosystem.vue +12 -0
- package/src/components/icons/IconSupport.vue +12 -0
- package/src/components/icons/IconTooling.vue +19 -0
- package/src/components/icons/iconArrowsDefault.vue +16 -0
- package/src/components/index.ts +468 -0
- package/src/components/ui/dialog/Dialog.vue +51 -0
- package/src/components/ui/dialog/DialogClose.vue +29 -0
- package/src/components/ui/dialog/DialogContent.vue +141 -0
- package/src/components/ui/dialog/DialogFooter.vue +46 -0
- package/src/components/ui/dialog/DialogHeader.vue +83 -0
- package/src/components/ui/dialog/DialogTitle.vue +38 -0
- package/src/components/ui/dialog/DialogTrigger.vue +16 -0
- package/src/components/ui/dialog/index.ts +7 -0
- package/src/components/ui/drawer/Drawer.vue +80 -0
- package/src/components/ui/drawer/DrawerClose.vue +31 -0
- package/src/components/ui/drawer/DrawerContent.vue +114 -0
- package/src/components/ui/drawer/DrawerDescription.vue +40 -0
- package/src/components/ui/drawer/DrawerFooter.vue +34 -0
- package/src/components/ui/drawer/DrawerHeader.vue +57 -0
- package/src/components/ui/drawer/DrawerOverlay.vue +33 -0
- package/src/components/ui/drawer/DrawerTitle.vue +37 -0
- package/src/components/ui/drawer/DrawerTrigger.vue +31 -0
- package/src/components/ui/drawer/index.ts +10 -0
- package/src/components/ui/popover/Popover.vue +19 -0
- package/src/components/ui/popover/PopoverContent.vue +113 -0
- package/src/components/ui/popover/PopoverFooter.vue +47 -0
- package/src/components/ui/popover/PopoverOption.vue +130 -0
- package/src/components/ui/popover/PopoverTrigger.vue +27 -0
- package/src/components/ui/popover/__tests__/PopoverFooter.spec.js +116 -0
- package/src/components/ui/popover/context.ts +4 -0
- package/src/components/ui/popover/index.ts +6 -0
- package/src/components/ui/segmented-control/SegmentedControlList.vue +51 -0
- package/src/components/ui/segmented-control/SegmentedControlTrigger.vue +81 -0
- package/src/components/ui/segmented-control/index.ts +4 -0
- package/src/components/ui/table/Table.vue +29 -0
- package/src/components/ui/table/TableBody.vue +14 -0
- package/src/components/ui/table/TableCell.vue +28 -0
- package/src/components/ui/table/TableHead.vue +27 -0
- package/src/components/ui/table/TableHeader.vue +24 -0
- package/src/components/ui/table/TableRow.vue +51 -0
- package/src/components/ui/table/index.ts +6 -0
- package/src/components/ui/tabs/Tabs.vue +19 -0
- package/src/components/ui/tabs/TabsContent.vue +22 -0
- package/src/components/ui/tabs/TabsList.vue +40 -0
- package/src/components/ui/tabs/TabsTrigger.vue +63 -0
- package/src/components/ui/tabs/index.ts +4 -0
- package/src/components/ui/tooltip/Tooltip.vue +21 -0
- package/src/components/ui/tooltip/TooltipContent.vue +84 -0
- package/src/components/ui/tooltip/TooltipTrigger.vue +24 -0
- package/src/components/ui/tooltip/index.ts +3 -0
- package/src/composables/useDelayedUnmount.ts +48 -0
- package/src/composables/useSelectBase.ts +119 -0
- package/src/composables/useSelectKeyboard.ts +91 -0
- package/src/composables/useTheme.ts +67 -0
- package/src/index.ts +29 -0
- package/src/lib/__tests__/teleport-target.spec.ts +73 -0
- package/src/lib/layer-manager.ts +64 -0
- package/src/lib/teleport-target.ts +46 -0
- package/src/lib/utils.ts +7 -0
- package/src/locales/en.json +50 -0
- package/src/locales/es.json +50 -0
- package/src/locales/pt_br.json +50 -0
- package/src/main.ts +9 -0
- package/src/mixins/i18n.js +74 -0
- package/src/stories/Accordion.stories.js +54 -0
- package/src/stories/Alert.stories.js +157 -0
- package/src/stories/AudioRecorder.stories.js +52 -0
- package/src/stories/AvatarIcon.stories.js +57 -0
- package/src/stories/Banner.stories.js +54 -0
- package/src/stories/Breadcrumb.stories.js +30 -0
- package/src/stories/Button.stories.js +183 -0
- package/src/stories/Card.stories.js +154 -0
- package/src/stories/CardCompany.stories.js +64 -0
- package/src/stories/CardData.stories.js +25 -0
- package/src/stories/CardImage.stories.js +58 -0
- package/src/stories/CardInformation.stories.js +44 -0
- package/src/stories/CardNumber.stories.js +15 -0
- package/src/stories/CardProject.stories.js +70 -0
- package/src/stories/CardSimple.stories.js +73 -0
- package/src/stories/ChartBar.stories.js +123 -0
- package/src/stories/ChartFunnel.stories.js +127 -0
- package/src/stories/ChartLine.stories.js +55 -0
- package/src/stories/ChartMultiLine.stories.js +50 -0
- package/src/stories/ChartRainbow.stories.js +18 -0
- package/src/stories/ChatsUserAvatar.stories.js +36 -0
- package/src/stories/Checkbox.stories.js +79 -0
- package/src/stories/CheckboxGroup.stories.js +105 -0
- package/src/stories/Chip.stories.js +194 -0
- package/src/stories/Collapse.stories.js +81 -0
- package/src/stories/Colors.mdx +13 -0
- package/src/stories/Colors.stories.js +132 -0
- package/src/stories/Comment.stories.js +66 -0
- package/src/stories/DataArea.stories.js +78 -0
- package/src/stories/DataTable.stories.js +588 -0
- package/src/stories/DateFilter.stories.js +18 -0
- package/src/stories/DatePicker.stories.js +114 -0
- package/src/stories/Dialog.stories.js +851 -0
- package/src/stories/Disclaimer.stories.js +93 -0
- package/src/stories/Drawer.stories.js +242 -0
- package/src/stories/DrawerNext.stories.js +631 -0
- package/src/stories/DropArea.mdx +66 -0
- package/src/stories/DropArea.stories.js +74 -0
- package/src/stories/Dropdown.stories.js +35 -0
- package/src/stories/EmojiPicker.stories.js +93 -0
- package/src/stories/FormElement.stories.js +35 -0
- package/src/stories/Grid.stories.js +19 -0
- package/src/stories/Icon.stories.js +144 -0
- package/src/stories/IconLoading.stories.js +63 -0
- package/src/stories/Iconography.mdx +7 -0
- package/src/stories/ImportCard.stories.js +33 -0
- package/src/stories/Input.mdx +79 -0
- package/src/stories/Input.stories.js +157 -0
- package/src/stories/InputDatePicker.stories.js +155 -0
- package/src/stories/Label.stories.js +30 -0
- package/src/stories/LanguageSelect.stories.js +26 -0
- package/src/stories/LayerManager.docs.mdx +40 -0
- package/src/stories/LayerManager.stories.js +407 -0
- package/src/stories/Modal.stories.js +101 -0
- package/src/stories/ModalDialog.mdx +89 -0
- package/src/stories/ModalDialog.stories.js +448 -0
- package/src/stories/ModalNext.stories.js +191 -0
- package/src/stories/MultiSelect.stories.js +169 -0
- package/src/stories/Navigator.stories.js +26 -0
- package/src/stories/PageHeader.stories.js +364 -0
- package/src/stories/Pagination.stories.js +37 -0
- package/src/stories/Popover.stories.js +457 -0
- package/src/stories/PopoverOption.stories.js +128 -0
- package/src/stories/ProgressBar.stories.js +38 -0
- package/src/stories/Radio.stories.js +104 -0
- package/src/stories/RadioGroup.stories.js +145 -0
- package/src/stories/SegmentedControl.stories.js +253 -0
- package/src/stories/Select.stories.js +375 -0
- package/src/stories/SelectSmart.mdx +152 -0
- package/src/stories/SelectSmart.stories.js +594 -0
- package/src/stories/SelectTime.stories.js +25 -0
- package/src/stories/Sidebar.stories.js +157 -0
- package/src/stories/SkeletonLoading.stories.js +28 -0
- package/src/stories/Switch.stories.js +46 -0
- package/src/stories/Tab.stories.js +56 -0
- package/src/stories/Table.stories.js +218 -0
- package/src/stories/TableNext.stories.js +176 -0
- package/src/stories/Tabs.stories.js +169 -0
- package/src/stories/TabsExpanded.stories.js +69 -0
- package/src/stories/Tag.stories.js +59 -0
- package/src/stories/TemplatePreview.stories.js +94 -0
- package/src/stories/TemplatePreviewModal.stories.js +110 -0
- package/src/stories/TextArea.mdx +68 -0
- package/src/stories/TextArea.stories.js +117 -0
- package/src/stories/Toast.mdx +123 -0
- package/src/stories/Toast.stories.js +126 -0
- package/src/stories/ToolTip.stories.js +71 -0
- package/src/stories/Tour.stories.js +216 -0
- package/src/stories/Typography.mdx +83 -0
- package/src/stories/Typography.stories.js +66 -0
- package/src/stories/UploadArea.stories.js +42 -0
- package/src/stories/assets/audios/audio-recorder-sample.mp3 +0 -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/images/un.png +0 -0
- package/src/stories/assets/images/unnnic.png +0 -0
- package/src/stories/assets/images/unnnicPortrait.png +0 -0
- package/src/stories/assets/plugin.svg +1 -0
- package/src/stories/assets/repo.svg +1 -0
- package/src/stories/assets/stackalt.svg +1 -0
- package/src/stories/assets/videos/weni.mp4 +0 -0
- package/src/types/index.d.ts +53 -0
- package/src/types/scheme-colors.d.ts +209 -0
- package/src/types/unnnic-utils.d.ts +88 -0
- package/src/types/vue-shims.d.ts +5 -0
- package/src/types/vueuse-overrides.d.ts +7 -0
- package/src/utils/call.js +81 -0
- package/src/utils/colorTokens.js +2 -0
- package/src/utils/colorsList.js +89 -0
- package/src/utils/emojiList.js +47 -0
- package/src/utils/hours.js +100 -0
- package/src/utils/iconList.js +108 -0
- package/src/utils/icons.js +59 -0
- package/src/utils/plugins/i18n.js +20 -0
- package/src/utils/sanitize.js +75 -0
- /package/{dist → src/assets}/scss/colors-hsl.scss +0 -0
- /package/{dist → src/assets}/scss/colors.scss +0 -0
- /package/{dist → src/assets}/scss/deprecated/colors.scss +0 -0
- /package/{dist → src/assets}/scss/deprecated/fonts.scss +0 -0
- /package/{dist → src/assets}/scss/deprecated/grid.scss +0 -0
- /package/{dist → src/assets}/scss/deprecated/spacing.scss +0 -0
- /package/{dist → src/assets}/scss/fonts.scss +0 -0
- /package/{dist → src/assets}/scss/icon-sizes.scss +0 -0
- /package/{dist → src/assets}/scss/radii.scss +0 -0
- /package/{dist → src/assets}/scss/scheme-colors.scss +0 -0
- /package/{dist → src/assets}/scss/semantic-colors.scss +0 -0
- /package/{dist → src/assets}/scss/semantic-text-utilities.scss +0 -0
- /package/{dist → src/assets}/scss/shadows.scss +0 -0
- /package/{dist → src/assets}/scss/spaces.scss +0 -0
- /package/{dist → src/assets}/scss/tailwind.scss +0 -0
- /package/{dist → src/assets}/scss/theme.scss +0 -0
- /package/{dist → src/assets}/scss/unnnic.scss +0 -0
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<section class="table-pagination">
|
|
3
|
+
<p
|
|
4
|
+
class="table-pagination__count"
|
|
5
|
+
data-testid="count"
|
|
6
|
+
>
|
|
7
|
+
{{ tablePagination }}
|
|
8
|
+
</p>
|
|
9
|
+
|
|
10
|
+
<Pagination
|
|
11
|
+
:modelValue="modelValue"
|
|
12
|
+
:max="pages"
|
|
13
|
+
:show="5"
|
|
14
|
+
@update:model-value="$emit('update:model-value', $event)"
|
|
15
|
+
/>
|
|
16
|
+
</section>
|
|
17
|
+
</template>
|
|
18
|
+
|
|
19
|
+
<script>
|
|
20
|
+
import Pagination from '../Pagination/Pagination.vue';
|
|
21
|
+
import UnnnicI18n from '../../mixins/i18n';
|
|
22
|
+
|
|
23
|
+
export default {
|
|
24
|
+
name: 'TablePagination',
|
|
25
|
+
|
|
26
|
+
components: {
|
|
27
|
+
Pagination,
|
|
28
|
+
},
|
|
29
|
+
|
|
30
|
+
mixins: [UnnnicI18n],
|
|
31
|
+
|
|
32
|
+
props: {
|
|
33
|
+
modelValue: {
|
|
34
|
+
type: Number,
|
|
35
|
+
required: true,
|
|
36
|
+
},
|
|
37
|
+
total: {
|
|
38
|
+
type: Number,
|
|
39
|
+
required: false,
|
|
40
|
+
default: 0,
|
|
41
|
+
},
|
|
42
|
+
interval: {
|
|
43
|
+
type: Number,
|
|
44
|
+
required: true,
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
|
|
48
|
+
emits: ['update:model-value'],
|
|
49
|
+
|
|
50
|
+
data() {
|
|
51
|
+
return {
|
|
52
|
+
defaultTranslations: {
|
|
53
|
+
pagination: {
|
|
54
|
+
'pt-br': '{from} - {to} de {total}',
|
|
55
|
+
en: '{from} - {to} of {total}',
|
|
56
|
+
es: '{from} - {to} de {total}',
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
};
|
|
60
|
+
},
|
|
61
|
+
|
|
62
|
+
computed: {
|
|
63
|
+
tablePagination() {
|
|
64
|
+
const { modelValue, interval, total } = this;
|
|
65
|
+
|
|
66
|
+
return this.i18n('pagination', {
|
|
67
|
+
from: total === 0 ? 0 : (modelValue - 1) * interval + 1,
|
|
68
|
+
to: Math.min(modelValue * interval, total),
|
|
69
|
+
total,
|
|
70
|
+
});
|
|
71
|
+
},
|
|
72
|
+
|
|
73
|
+
pages() {
|
|
74
|
+
return Math.ceil(this.total / this.interval);
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
};
|
|
78
|
+
</script>
|
|
79
|
+
|
|
80
|
+
<style lang="scss" scoped>
|
|
81
|
+
@use '@/assets/scss/unnnic' as *;
|
|
82
|
+
|
|
83
|
+
.table-pagination {
|
|
84
|
+
display: flex;
|
|
85
|
+
align-items: center;
|
|
86
|
+
justify-content: space-between;
|
|
87
|
+
|
|
88
|
+
padding: $unnnic-spacing-sm $unnnic-spacing-nano;
|
|
89
|
+
|
|
90
|
+
height: min-content;
|
|
91
|
+
|
|
92
|
+
&__count {
|
|
93
|
+
color: $unnnic-color-fg-base;
|
|
94
|
+
font-size: $unnnic-font-size-body-gt;
|
|
95
|
+
font-family: $unnnic-font-family-secondary;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
</style>
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { markRaw } from 'vue';
|
|
2
|
+
import { mount } from '@vue/test-utils';
|
|
3
|
+
import { describe, it, expect } from 'vitest';
|
|
4
|
+
|
|
5
|
+
import TableBodyCell from '../TableBodyCell.vue';
|
|
6
|
+
|
|
7
|
+
describe('TableBodyCell.vue', () => {
|
|
8
|
+
const mountWrapper = (cellContent) => {
|
|
9
|
+
return mount(TableBodyCell, {
|
|
10
|
+
props: {
|
|
11
|
+
cell: cellContent,
|
|
12
|
+
},
|
|
13
|
+
});
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
it('renders text when cell is a string', () => {
|
|
17
|
+
const cellContent = 'Test Cell';
|
|
18
|
+
const wrapper = mountWrapper(cellContent);
|
|
19
|
+
|
|
20
|
+
const textElement = wrapper.find('[data-testid="body-cell-text"]');
|
|
21
|
+
expect(textElement.exists()).toBe(true);
|
|
22
|
+
expect(textElement.text()).toBe(cellContent);
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
it('renders component when cell is an object', () => {
|
|
26
|
+
const mockComponent = {
|
|
27
|
+
template: '<div>Mock Component</div>',
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
const cellContent = {
|
|
31
|
+
component: markRaw(mockComponent),
|
|
32
|
+
events: { click: () => {} },
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
const wrapper = mountWrapper(cellContent);
|
|
36
|
+
const componentElement = wrapper.findComponent(mockComponent);
|
|
37
|
+
expect(componentElement.exists()).toBe(true);
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
it('passes props and events to the child component', async () => {
|
|
41
|
+
const mockComponent = {
|
|
42
|
+
props: ['propA'],
|
|
43
|
+
template: '<div @click="onClick">{{ propA }}</div>',
|
|
44
|
+
methods: {
|
|
45
|
+
onClick() {
|
|
46
|
+
this.$emit('click');
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
const cellContent = {
|
|
52
|
+
component: markRaw(mockComponent),
|
|
53
|
+
props: { propA: 'valueA' },
|
|
54
|
+
events: { click: () => {} },
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
const wrapper = mountWrapper(cellContent);
|
|
58
|
+
const componentElement = wrapper.findComponent(mockComponent);
|
|
59
|
+
|
|
60
|
+
expect(componentElement.props().propA).toBe('valueA');
|
|
61
|
+
|
|
62
|
+
await componentElement.trigger('click');
|
|
63
|
+
expect(wrapper.emitted().click).toBeTruthy();
|
|
64
|
+
});
|
|
65
|
+
});
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
import { mount } from '@vue/test-utils';
|
|
2
|
+
import { describe, it, expect, beforeEach, vi } from 'vitest';
|
|
3
|
+
import TableNext from '../TableNext.vue';
|
|
4
|
+
import TablePagination from '../TablePagination.vue';
|
|
5
|
+
|
|
6
|
+
describe('TableNext.vue', () => {
|
|
7
|
+
let wrapper;
|
|
8
|
+
|
|
9
|
+
beforeEach(() => {
|
|
10
|
+
wrapper = mount(TableNext, {
|
|
11
|
+
props: { headers, rows },
|
|
12
|
+
});
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
const headers = [{ content: 'Header 1' }, { content: 'Header 2', size: 2 }];
|
|
16
|
+
const rows = [
|
|
17
|
+
{ content: ['Row 1 Col 1', 'Row 1 Col 2'] },
|
|
18
|
+
{
|
|
19
|
+
content: ['Row 2 Col 1', 'Row 2 Col 2'],
|
|
20
|
+
link: { url: '#' },
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
content: ['Row 3 Col 1', 'Row 3 Col 2'],
|
|
24
|
+
link: { url: '#', target: '_self' },
|
|
25
|
+
},
|
|
26
|
+
];
|
|
27
|
+
|
|
28
|
+
it('matches the snapshot', () => {
|
|
29
|
+
expect(wrapper.html()).toMatchSnapshot();
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
describe('Header rendering', () => {
|
|
33
|
+
it('renders headers correctly', () => {
|
|
34
|
+
const headerCells = wrapper.findAll('[data-testid="header-cell"]');
|
|
35
|
+
expect(headerCells).toHaveLength(headers.length);
|
|
36
|
+
headers.forEach((header, index) => {
|
|
37
|
+
expect(headerCells[index].text()).toBe(header.content);
|
|
38
|
+
});
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
it('renders headers with correct size', () => {
|
|
42
|
+
const headerRow = wrapper.find('[data-testid="header-row"]');
|
|
43
|
+
const gridTemplateColumns = headerRow.attributes('style');
|
|
44
|
+
expect(gridTemplateColumns).toContain('1fr 2fr');
|
|
45
|
+
// The first column uses the default size of 1fr,
|
|
46
|
+
// and the second column is set to 2fr as specified in the header configuration.
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
it('renders rows with default 1fr when no headers are provided', async () => {
|
|
50
|
+
wrapper = mount(TableNext, {
|
|
51
|
+
props: { rows },
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
const rowElement = wrapper.find('[data-testid="body-row"]');
|
|
55
|
+
const gridTemplateColumns = rowElement.attributes('style');
|
|
56
|
+
expect(gridTemplateColumns).toContain('1fr 1fr');
|
|
57
|
+
// Since headers are absent, each row column should default to 1fr as per the logic in `gridTemplateColumns`.
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
it('do not render the header if it has the hideHeaders prop', async () => {
|
|
61
|
+
await wrapper.setProps({ headers, hideHeaders: true });
|
|
62
|
+
|
|
63
|
+
const header = wrapper.find('[data-testid="header"]');
|
|
64
|
+
expect(header.exists()).toBe(false);
|
|
65
|
+
|
|
66
|
+
const body = wrapper.find('[data-testid="body"]');
|
|
67
|
+
expect(body.classes()).toContain('unnnic-table-next__body--hide-headers');
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
it('renders headers with mixed sizes (number and string)', () => {
|
|
71
|
+
wrapper = mount(TableNext, {
|
|
72
|
+
props: {
|
|
73
|
+
headers: [
|
|
74
|
+
{ content: 'ID', size: 1 },
|
|
75
|
+
{ content: 'Name', size: 'auto' },
|
|
76
|
+
{ content: 'Age', size: 2 },
|
|
77
|
+
],
|
|
78
|
+
rows,
|
|
79
|
+
},
|
|
80
|
+
});
|
|
81
|
+
|
|
82
|
+
const headerRow = wrapper.find('[data-testid="header-row"]');
|
|
83
|
+
const gridTemplateColumns = headerRow.attributes('style');
|
|
84
|
+
|
|
85
|
+
expect(gridTemplateColumns).toContain(
|
|
86
|
+
'grid-template-columns: 1fr auto 2fr',
|
|
87
|
+
);
|
|
88
|
+
});
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
describe('Header sorting', () => {
|
|
92
|
+
it('render sort icon', async () => {
|
|
93
|
+
wrapper = mount(TableNext, {
|
|
94
|
+
props: {
|
|
95
|
+
headers: [
|
|
96
|
+
{ content: 'ID', size: 1, isSortable: true },
|
|
97
|
+
{ content: 'Name', size: 'auto' },
|
|
98
|
+
{ content: 'Age', size: 2 },
|
|
99
|
+
],
|
|
100
|
+
rows,
|
|
101
|
+
},
|
|
102
|
+
});
|
|
103
|
+
expect(wrapper.find('[data-testid="arrow-default-icon"]').exists()).toBe(
|
|
104
|
+
true,
|
|
105
|
+
);
|
|
106
|
+
});
|
|
107
|
+
it('change sorting and emit sort event', async () => {
|
|
108
|
+
wrapper = mount(TableNext, {
|
|
109
|
+
props: {
|
|
110
|
+
headers: [
|
|
111
|
+
{ content: 'ID', size: 1, isSortable: true },
|
|
112
|
+
{ content: 'Name', size: 'auto' },
|
|
113
|
+
{ content: 'Age', size: 2 },
|
|
114
|
+
],
|
|
115
|
+
rows,
|
|
116
|
+
},
|
|
117
|
+
});
|
|
118
|
+
const handlerSortSpy = vi.spyOn(wrapper.vm, 'handleSort');
|
|
119
|
+
|
|
120
|
+
const [headerCell, unsortableHeaderCell] = wrapper.findAll(
|
|
121
|
+
'[data-testid="header-cell"]',
|
|
122
|
+
);
|
|
123
|
+
|
|
124
|
+
await unsortableHeaderCell.trigger('click');
|
|
125
|
+
expect(handlerSortSpy).not.toHaveBeenCalled();
|
|
126
|
+
|
|
127
|
+
await headerCell.trigger('click');
|
|
128
|
+
expect(handlerSortSpy).toHaveBeenCalledWith('ID', 'asc');
|
|
129
|
+
await headerCell.trigger('click');
|
|
130
|
+
expect(handlerSortSpy).toHaveBeenCalledWith('ID', 'desc');
|
|
131
|
+
});
|
|
132
|
+
});
|
|
133
|
+
|
|
134
|
+
describe('Row rendering and behaviors', () => {
|
|
135
|
+
it('renders rows correctly', () => {
|
|
136
|
+
const bodyRows = wrapper.findAll('[data-testid="body-row"]');
|
|
137
|
+
expect(bodyRows).toHaveLength(rows.length);
|
|
138
|
+
|
|
139
|
+
rows.forEach((row, rowIndex) => {
|
|
140
|
+
const bodyCells = bodyRows[rowIndex].findAll(
|
|
141
|
+
'[data-testid="body-cell"]',
|
|
142
|
+
);
|
|
143
|
+
expect(bodyCells).toHaveLength(row.content.length);
|
|
144
|
+
|
|
145
|
+
row.content.forEach((cell, cellIndex) => {
|
|
146
|
+
expect(bodyCells[cellIndex].text()).toBe(cell);
|
|
147
|
+
});
|
|
148
|
+
});
|
|
149
|
+
});
|
|
150
|
+
|
|
151
|
+
it('renders rows with links correctly', () => {
|
|
152
|
+
const linkedRows = wrapper.findAll('[data-testid="body-row-redirect"]');
|
|
153
|
+
expect(linkedRows).toHaveLength(2);
|
|
154
|
+
|
|
155
|
+
const firstLink = linkedRows[0];
|
|
156
|
+
expect(firstLink.attributes('href')).toBe('#');
|
|
157
|
+
expect(firstLink.attributes('target')).toBe('_blank');
|
|
158
|
+
|
|
159
|
+
const secondLink = linkedRows[1];
|
|
160
|
+
expect(secondLink.attributes('href')).toBe('#');
|
|
161
|
+
expect(secondLink.attributes('target')).toBe('_self');
|
|
162
|
+
});
|
|
163
|
+
|
|
164
|
+
it('renders "no matching results" message when there are no rows', () => {
|
|
165
|
+
wrapper = mount(TableNext, {
|
|
166
|
+
props: { headers },
|
|
167
|
+
});
|
|
168
|
+
|
|
169
|
+
const noResultsMessage = wrapper.find('[data-testid="body-cell-text"]');
|
|
170
|
+
expect(noResultsMessage.text()).toBe('No matching results');
|
|
171
|
+
});
|
|
172
|
+
|
|
173
|
+
it('should emit row-click when clicking on a row', async () => {
|
|
174
|
+
const row = wrapper.find('[data-testid="body-row"]');
|
|
175
|
+
await row.trigger('click');
|
|
176
|
+
|
|
177
|
+
expect(wrapper.emitted()['row-click'][0][0]).toEqual(rows[0]);
|
|
178
|
+
});
|
|
179
|
+
});
|
|
180
|
+
|
|
181
|
+
describe('Loading state', () => {
|
|
182
|
+
it('renders loading state', async () => {
|
|
183
|
+
await wrapper.setProps({ headers, isLoading: true });
|
|
184
|
+
const loadingImage = wrapper.find('[data-testid="body-row-loading"]');
|
|
185
|
+
expect(loadingImage.exists()).toBe(true);
|
|
186
|
+
});
|
|
187
|
+
});
|
|
188
|
+
|
|
189
|
+
describe('Pagination', () => {
|
|
190
|
+
it('emits update:pagination event on pagination change', async () => {
|
|
191
|
+
const paginationComponent = wrapper.findComponent(TablePagination);
|
|
192
|
+
await paginationComponent.vm.$emit('update:model-value', 2);
|
|
193
|
+
|
|
194
|
+
expect(wrapper.emitted()['update:pagination'][0]).toEqual([2]);
|
|
195
|
+
});
|
|
196
|
+
});
|
|
197
|
+
});
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { mount } from '@vue/test-utils';
|
|
2
|
+
import { describe, it, expect, beforeEach } from 'vitest';
|
|
3
|
+
import TablePagination from '../TablePagination.vue';
|
|
4
|
+
import Pagination from '@/components/Pagination/Pagination.vue';
|
|
5
|
+
|
|
6
|
+
describe('TablePagination.vue', () => {
|
|
7
|
+
let wrapper;
|
|
8
|
+
|
|
9
|
+
beforeEach(() => {
|
|
10
|
+
wrapper = mount(TablePagination, {
|
|
11
|
+
props: {
|
|
12
|
+
modelValue: 1,
|
|
13
|
+
interval: 10,
|
|
14
|
+
total: 100,
|
|
15
|
+
},
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
const findCountElement = () => wrapper.find('[data-testid="count"]');
|
|
20
|
+
|
|
21
|
+
it.each([
|
|
22
|
+
{ modelValue: 2, total: 100, expectedText: '11 - 20 of 100' },
|
|
23
|
+
{ modelValue: 10, total: 95, expectedText: '91 - 95 of 95' },
|
|
24
|
+
{ modelValue: 1, total: 95, expectedText: '1 - 10 of 95' },
|
|
25
|
+
{ modelValue: 1, total: 0, expectedText: '0 - 0 of 0' },
|
|
26
|
+
])(
|
|
27
|
+
'renders correct pagination text for modelValue: $modelValue and total: $total',
|
|
28
|
+
async ({ modelValue, total, expectedText }) => {
|
|
29
|
+
await wrapper.setProps({ modelValue, total });
|
|
30
|
+
expect(findCountElement().text()).toContain(expectedText);
|
|
31
|
+
},
|
|
32
|
+
);
|
|
33
|
+
|
|
34
|
+
it('calculates pages correctly', async () => {
|
|
35
|
+
await wrapper.setProps({ total: 55, interval: 10 });
|
|
36
|
+
const pagination = wrapper.vm.pages;
|
|
37
|
+
expect(pagination).toBe(6); // 55 items / 10 per page = 6 pages
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
it('renders correct pagination text for the last page', async () => {
|
|
41
|
+
await wrapper.setProps({ modelValue: 10, total: 95, interval: 10 });
|
|
42
|
+
expect(findCountElement().text()).toContain('91 - 95 of 95');
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
it('renders correct pagination text for the first page', async () => {
|
|
46
|
+
await wrapper.setProps({ modelValue: 1, total: 95, interval: 10 });
|
|
47
|
+
expect(findCountElement().text()).toContain('1 - 10 of 95');
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
it('renders correct 5 pagination buttons', async () => {
|
|
51
|
+
const pageButtons = wrapper.findAll('[data-test="page-button"]');
|
|
52
|
+
expect(pageButtons.length).toBe(5);
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
it('emits update:model-value event when pagination changes', async () => {
|
|
56
|
+
await wrapper.findComponent(Pagination).vm.$emit('update:model-value', 2);
|
|
57
|
+
|
|
58
|
+
expect(wrapper.emitted()['update:model-value']).toBeTruthy();
|
|
59
|
+
expect(wrapper.emitted()['update:model-value'][0]).toEqual([2]);
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
it('matches the snapshot', () => {
|
|
63
|
+
expect(wrapper.html()).toMatchSnapshot();
|
|
64
|
+
});
|
|
65
|
+
});
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
|
2
|
+
|
|
3
|
+
exports[`TableNext.vue > matches the snapshot 1`] = `
|
|
4
|
+
"<table data-v-2143c794="" class="unnnic-table-next">
|
|
5
|
+
<thead data-v-2143c794="" class="unnnic-table-next__header" data-testid="header">
|
|
6
|
+
<tr data-v-2143c794="" class="unnnic-table-next__header-row" data-testid="header-row" style="grid-template-columns: 1fr 2fr;">
|
|
7
|
+
<th data-v-2143c794="" class="unnnic-table-next__header-cell" data-testid="header-cell">Header 1
|
|
8
|
+
<!--v-if-->
|
|
9
|
+
</th>
|
|
10
|
+
<th data-v-2143c794="" class="unnnic-table-next__header-cell" data-testid="header-cell">Header 2
|
|
11
|
+
<!--v-if-->
|
|
12
|
+
</th>
|
|
13
|
+
</tr>
|
|
14
|
+
</thead>
|
|
15
|
+
<tbody data-v-2143c794="" class="unnnic-table-next__body" data-testid="body">
|
|
16
|
+
<tr data-v-2143c794="" class="unnnic-table-next__body-row" data-testid="body-row" style="grid-template-columns: 1fr 2fr;">
|
|
17
|
+
<td data-v-fd58013b="" data-v-2143c794="" class="unnnic-table-next__body-cell unnnic-table-next__body-cell unnnic-table-next__body-cell--sm" data-testid="body-cell">
|
|
18
|
+
<p data-v-fd58013b="" class="unnnic-table-next__body-cell-text" data-testid="body-cell-text">Row 1 Col 1</p>
|
|
19
|
+
</td>
|
|
20
|
+
<td data-v-fd58013b="" data-v-2143c794="" class="unnnic-table-next__body-cell unnnic-table-next__body-cell unnnic-table-next__body-cell--sm" data-testid="body-cell">
|
|
21
|
+
<p data-v-fd58013b="" class="unnnic-table-next__body-cell-text" data-testid="body-cell-text">Row 1 Col 2</p>
|
|
22
|
+
</td>
|
|
23
|
+
</tr>
|
|
24
|
+
<tr data-v-2143c794="" class="unnnic-table-next__body-row" data-testid="body-row" style="grid-template-columns: auto;"><a data-v-2143c794="" class="unnnic-table-next__body-row--redirect" data-testid="body-row-redirect" style="grid-template-columns: 1fr 2fr;" href="#" target="_blank">
|
|
25
|
+
<td data-v-fd58013b="" data-v-2143c794="" class="unnnic-table-next__body-cell unnnic-table-next__body-cell unnnic-table-next__body-cell--sm" data-testid="body-cell">
|
|
26
|
+
<p data-v-fd58013b="" class="unnnic-table-next__body-cell-text" data-testid="body-cell-text">Row 2 Col 1</p>
|
|
27
|
+
</td>
|
|
28
|
+
<td data-v-fd58013b="" data-v-2143c794="" class="unnnic-table-next__body-cell unnnic-table-next__body-cell unnnic-table-next__body-cell--sm" data-testid="body-cell">
|
|
29
|
+
<p data-v-fd58013b="" class="unnnic-table-next__body-cell-text" data-testid="body-cell-text">Row 2 Col 2</p>
|
|
30
|
+
</td>
|
|
31
|
+
</a></tr>
|
|
32
|
+
<tr data-v-2143c794="" class="unnnic-table-next__body-row" data-testid="body-row" style="grid-template-columns: auto;"><a data-v-2143c794="" class="unnnic-table-next__body-row--redirect" data-testid="body-row-redirect" style="grid-template-columns: 1fr 2fr;" href="#" target="_self">
|
|
33
|
+
<td data-v-fd58013b="" data-v-2143c794="" class="unnnic-table-next__body-cell unnnic-table-next__body-cell unnnic-table-next__body-cell--sm" data-testid="body-cell">
|
|
34
|
+
<p data-v-fd58013b="" class="unnnic-table-next__body-cell-text" data-testid="body-cell-text">Row 3 Col 1</p>
|
|
35
|
+
</td>
|
|
36
|
+
<td data-v-fd58013b="" data-v-2143c794="" class="unnnic-table-next__body-cell unnnic-table-next__body-cell unnnic-table-next__body-cell--sm" data-testid="body-cell">
|
|
37
|
+
<p data-v-fd58013b="" class="unnnic-table-next__body-cell-text" data-testid="body-cell-text">Row 3 Col 2</p>
|
|
38
|
+
</td>
|
|
39
|
+
</a></tr>
|
|
40
|
+
</tbody>
|
|
41
|
+
<section data-v-e29458bb="" data-v-2143c794="" class="table-pagination">
|
|
42
|
+
<p data-v-e29458bb="" class="table-pagination__count" data-testid="count">1 - 1 of 1</p>
|
|
43
|
+
<div data-v-0eeff8cb="" data-v-e29458bb="" class="pagination"><button data-v-ceff2a60="" data-v-0eeff8cb="" data-test="previous-button" disabled="" class="unnnic-button unnnic-button--size-small unnnic-button--tertiary unnnic-button--icon-on-center">
|
|
44
|
+
<!--v-if-->
|
|
45
|
+
<!--v-if--><span data-v-26446d8e="" data-v-ceff2a60="" class="unnnic-icon material-symbols-rounded unnnic-icon-scheme--fg-muted unnnic-icon-size--ant unnnic-icon__size--ant unnnic--clickable" data-testid="icon-center" translate="no" style="visibility: visible;">chevron_left</span><span data-v-ceff2a60="" class="unnnic-button__label" style="visibility: visible;" data-testid="button-label"> </span>
|
|
46
|
+
<!--v-if-->
|
|
47
|
+
</button><button data-v-ceff2a60="" data-v-0eeff8cb="" data-test="page-button" class="unnnic-button unnnic-button--size-small unnnic-button--secondary">
|
|
48
|
+
<!--v-if-->
|
|
49
|
+
<!--v-if-->
|
|
50
|
+
<!--v-if--><span data-v-ceff2a60="" class="unnnic-button__label" style="visibility: visible;" data-testid="button-label"> 1</span>
|
|
51
|
+
<!--v-if-->
|
|
52
|
+
</button><button data-v-ceff2a60="" data-v-0eeff8cb="" data-test="next-button" disabled="" class="unnnic-button unnnic-button--size-small unnnic-button--tertiary unnnic-button--icon-on-center">
|
|
53
|
+
<!--v-if-->
|
|
54
|
+
<!--v-if--><span data-v-26446d8e="" data-v-ceff2a60="" class="unnnic-icon material-symbols-rounded unnnic-icon-scheme--fg-muted unnnic-icon-size--ant unnnic-icon__size--ant unnnic--clickable" data-testid="icon-center" translate="no" style="visibility: visible;">chevron_right</span><span data-v-ceff2a60="" class="unnnic-button__label" style="visibility: visible;" data-testid="button-label"> </span>
|
|
55
|
+
<!--v-if-->
|
|
56
|
+
</button></div>
|
|
57
|
+
</section>
|
|
58
|
+
</table>"
|
|
59
|
+
`;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
|
2
|
+
|
|
3
|
+
exports[`TablePagination.vue > matches the snapshot 1`] = `
|
|
4
|
+
"<section data-v-e29458bb="" class="table-pagination">
|
|
5
|
+
<p data-v-e29458bb="" class="table-pagination__count" data-testid="count">1 - 10 of 100</p>
|
|
6
|
+
<div data-v-0eeff8cb="" data-v-e29458bb="" class="pagination"><button data-v-ceff2a60="" data-v-0eeff8cb="" data-test="previous-button" disabled="" class="unnnic-button unnnic-button--size-small unnnic-button--tertiary unnnic-button--icon-on-center">
|
|
7
|
+
<!--v-if-->
|
|
8
|
+
<!--v-if--><span data-v-26446d8e="" data-v-ceff2a60="" class="unnnic-icon material-symbols-rounded unnnic-icon-scheme--fg-muted unnnic-icon-size--ant unnnic-icon__size--ant unnnic--clickable" data-testid="icon-center" translate="no" style="visibility: visible;">chevron_left</span><span data-v-ceff2a60="" class="unnnic-button__label" style="visibility: visible;" data-testid="button-label"> </span>
|
|
9
|
+
<!--v-if-->
|
|
10
|
+
</button><button data-v-ceff2a60="" data-v-0eeff8cb="" data-test="page-button" class="unnnic-button unnnic-button--size-small unnnic-button--secondary">
|
|
11
|
+
<!--v-if-->
|
|
12
|
+
<!--v-if-->
|
|
13
|
+
<!--v-if--><span data-v-ceff2a60="" class="unnnic-button__label" style="visibility: visible;" data-testid="button-label"> 1</span>
|
|
14
|
+
<!--v-if-->
|
|
15
|
+
</button><button data-v-ceff2a60="" data-v-0eeff8cb="" data-test="page-button" class="unnnic-button unnnic-button--size-small unnnic-button--tertiary">
|
|
16
|
+
<!--v-if-->
|
|
17
|
+
<!--v-if-->
|
|
18
|
+
<!--v-if--><span data-v-ceff2a60="" class="unnnic-button__label" style="visibility: visible;" data-testid="button-label"> 2</span>
|
|
19
|
+
<!--v-if-->
|
|
20
|
+
</button><button data-v-ceff2a60="" data-v-0eeff8cb="" data-test="page-button" class="unnnic-button unnnic-button--size-small unnnic-button--tertiary">
|
|
21
|
+
<!--v-if-->
|
|
22
|
+
<!--v-if-->
|
|
23
|
+
<!--v-if--><span data-v-ceff2a60="" class="unnnic-button__label" style="visibility: visible;" data-testid="button-label"> 3</span>
|
|
24
|
+
<!--v-if-->
|
|
25
|
+
</button><button data-v-ceff2a60="" data-v-0eeff8cb="" data-test="page-button" class="unnnic-button unnnic-button--size-small unnnic-button--tertiary">
|
|
26
|
+
<!--v-if-->
|
|
27
|
+
<!--v-if-->
|
|
28
|
+
<!--v-if--><span data-v-ceff2a60="" class="unnnic-button__label" style="visibility: visible;" data-testid="button-label"> ...</span>
|
|
29
|
+
<!--v-if-->
|
|
30
|
+
</button><button data-v-ceff2a60="" data-v-0eeff8cb="" data-test="page-button" class="unnnic-button unnnic-button--size-small unnnic-button--tertiary">
|
|
31
|
+
<!--v-if-->
|
|
32
|
+
<!--v-if-->
|
|
33
|
+
<!--v-if--><span data-v-ceff2a60="" class="unnnic-button__label" style="visibility: visible;" data-testid="button-label"> 10</span>
|
|
34
|
+
<!--v-if-->
|
|
35
|
+
</button><button data-v-ceff2a60="" data-v-0eeff8cb="" data-test="next-button" class="unnnic-button unnnic-button--size-small unnnic-button--tertiary unnnic-button--icon-on-center">
|
|
36
|
+
<!--v-if-->
|
|
37
|
+
<!--v-if--><span data-v-26446d8e="" data-v-ceff2a60="" class="unnnic-icon material-symbols-rounded unnnic-icon-scheme--fg-emphasized unnnic-icon-size--ant unnnic-icon__size--ant unnnic--clickable" data-testid="icon-center" translate="no" style="visibility: visible;">chevron_right</span><span data-v-ceff2a60="" class="unnnic-button__label" style="visibility: visible;" data-testid="button-label"> </span>
|
|
38
|
+
<!--v-if-->
|
|
39
|
+
</button></div>
|
|
40
|
+
</section>"
|
|
41
|
+
`;
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { describe, expect, it } from 'vitest';
|
|
2
|
+
import { validateHeaders, validateRows } from '../validation';
|
|
3
|
+
|
|
4
|
+
describe('TableNext props validations', () => {
|
|
5
|
+
describe('validateHeaders', () => {
|
|
6
|
+
it('should throw an error if headers is not an array', () => {
|
|
7
|
+
expect(() => validateHeaders('not-an-array')).toThrow(
|
|
8
|
+
'Property headers needs to be an array.',
|
|
9
|
+
);
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
it('should throw an error if a header does not have "content" as a string', () => {
|
|
13
|
+
const invalidHeaders = [{ content: 123 }];
|
|
14
|
+
expect(() => validateHeaders(invalidHeaders)).toThrow(
|
|
15
|
+
'Each item in "headers" must have "content" as a string.',
|
|
16
|
+
);
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
it('should throw an error if a header has "size" that is not a positive number', () => {
|
|
20
|
+
const invalidHeaders = [{ content: 'Header 1', size: -1 }];
|
|
21
|
+
expect(() => validateHeaders(invalidHeaders)).toThrow(
|
|
22
|
+
'Each item in "headers" that contains "size" must assign it as positive number or equals to "auto"',
|
|
23
|
+
);
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
it('should throw an error if a header has "size" that is a string not equal to "auto"', () => {
|
|
27
|
+
const invalidHeaders = [{ content: 'Header 1', size: 'invalid' }];
|
|
28
|
+
expect(() => validateHeaders(invalidHeaders)).toThrow(
|
|
29
|
+
'Each item in "headers" that contains "size" must assign it as positive number or equals to "auto"',
|
|
30
|
+
);
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
it('should throw an error if a header has "isSortable" that is not a boolean', () => {
|
|
34
|
+
const invalidHeaders = [{ content: 'Header 1', isSortable: 123 }];
|
|
35
|
+
expect(() => validateHeaders(invalidHeaders)).toThrow(
|
|
36
|
+
'Each item in "headers" that contains “isSortable” must assign it as boolean',
|
|
37
|
+
);
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
it('should pass validation for valid headers', () => {
|
|
41
|
+
const validHeaders = [
|
|
42
|
+
{ content: 'Header 1', size: 1, isSortable: true },
|
|
43
|
+
{ content: 'Header 2', size: 2 },
|
|
44
|
+
];
|
|
45
|
+
expect(validateHeaders(validHeaders)).toBe(true);
|
|
46
|
+
});
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
describe('validateRows', () => {
|
|
50
|
+
it('should throw an error if rows is not an array', () => {
|
|
51
|
+
expect(() => validateRows('not-an-array')).toThrow(
|
|
52
|
+
'Property rows needs to be an array.',
|
|
53
|
+
);
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
it('should throw an error if a row does not have "content" as an array', () => {
|
|
57
|
+
const invalidRows = [{ content: 'not-an-array' }];
|
|
58
|
+
expect(() => validateRows(invalidRows)).toThrow(
|
|
59
|
+
'Each item in "rows" must have "content" as an array.',
|
|
60
|
+
);
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
it('should throw an error if a row has "link" but it is not an object or undefined', () => {
|
|
64
|
+
const invalidRows = [{ content: ['Row 1'], link: 'not-an-object' }];
|
|
65
|
+
expect(() => validateRows(invalidRows)).toThrow(
|
|
66
|
+
'Each item in "rows" that contains “link” must assign it as object',
|
|
67
|
+
);
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
it('should throw an error if a row has "link" but does not contain "url"', () => {
|
|
71
|
+
const invalidRows = [{ content: ['Row 1'], link: { target: '_blank' } }];
|
|
72
|
+
expect(() => validateRows(invalidRows)).toThrow(
|
|
73
|
+
'Each item in "rows" with "link" must contain "url".',
|
|
74
|
+
);
|
|
75
|
+
});
|
|
76
|
+
|
|
77
|
+
it('should throw an error if a row has "link" is undefined', () => {
|
|
78
|
+
const invalidRows = [{ content: ['Row 1 Col 1', 'Row 1 Col 2'] }];
|
|
79
|
+
expect(() => validateRows(invalidRows)).not.toThrow();
|
|
80
|
+
});
|
|
81
|
+
|
|
82
|
+
it('should pass validation for valid rows', () => {
|
|
83
|
+
const validRows = [
|
|
84
|
+
{ content: ['Row 1 Col 1', 'Row 1 Col 2'] },
|
|
85
|
+
{ content: ['Row 2 Col 1', 'Row 2 Col 2'], link: { url: '#' } },
|
|
86
|
+
];
|
|
87
|
+
expect(validateRows(validRows)).toBe(true);
|
|
88
|
+
});
|
|
89
|
+
});
|
|
90
|
+
});
|