@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,236 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<section
|
|
3
|
+
ref="popover"
|
|
4
|
+
:class="['unnnic-tour__popover', step.popoverPosition]"
|
|
5
|
+
:style="style"
|
|
6
|
+
>
|
|
7
|
+
<header class="popover__header">
|
|
8
|
+
<h1 class="header__title">{{ step.title }}</h1>
|
|
9
|
+
<p
|
|
10
|
+
class="header__close-tour"
|
|
11
|
+
@click.stop="$emit('close')"
|
|
12
|
+
>
|
|
13
|
+
{{ i18n('close_tour') }}
|
|
14
|
+
</p>
|
|
15
|
+
</header>
|
|
16
|
+
<!-- eslint-disable vue/no-v-html -->
|
|
17
|
+
<p
|
|
18
|
+
class="popover__description"
|
|
19
|
+
v-html="step.description"
|
|
20
|
+
/>
|
|
21
|
+
<UnnnicButton
|
|
22
|
+
v-if="!step.hiddenNextStepButton"
|
|
23
|
+
type="primary"
|
|
24
|
+
@click="$emit('nextStep')"
|
|
25
|
+
>
|
|
26
|
+
{{ i18n('understood') }} {{ currentStep }}/{{ stepsLength }}
|
|
27
|
+
</UnnnicButton>
|
|
28
|
+
</section>
|
|
29
|
+
</template>
|
|
30
|
+
|
|
31
|
+
<script>
|
|
32
|
+
import UnnnicI18n from '@/mixins/i18n';
|
|
33
|
+
|
|
34
|
+
import UnnnicButton from '@/components/Button/Button.vue';
|
|
35
|
+
|
|
36
|
+
export default {
|
|
37
|
+
name: 'UnnnicTourPopover',
|
|
38
|
+
|
|
39
|
+
components: {
|
|
40
|
+
UnnnicButton,
|
|
41
|
+
},
|
|
42
|
+
|
|
43
|
+
mixins: [UnnnicI18n],
|
|
44
|
+
|
|
45
|
+
props: {
|
|
46
|
+
step: {
|
|
47
|
+
type: Object,
|
|
48
|
+
required: true,
|
|
49
|
+
},
|
|
50
|
+
currentStep: {
|
|
51
|
+
type: Number,
|
|
52
|
+
required: true,
|
|
53
|
+
},
|
|
54
|
+
stepsLength: {
|
|
55
|
+
type: Number,
|
|
56
|
+
required: true,
|
|
57
|
+
},
|
|
58
|
+
attachedElement: {
|
|
59
|
+
type: Element,
|
|
60
|
+
required: true,
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
|
|
64
|
+
emits: ['end', 'nextStep', 'close'],
|
|
65
|
+
|
|
66
|
+
data() {
|
|
67
|
+
return {
|
|
68
|
+
style: {},
|
|
69
|
+
defaultTranslations: {
|
|
70
|
+
close_tour: {
|
|
71
|
+
'pt-br': 'Fechar tour',
|
|
72
|
+
en: 'Close tour',
|
|
73
|
+
es: 'Cerrar recorrido',
|
|
74
|
+
},
|
|
75
|
+
understood: {
|
|
76
|
+
'pt-br': 'Entendi',
|
|
77
|
+
en: 'I understood',
|
|
78
|
+
es: 'Entendí',
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
};
|
|
82
|
+
},
|
|
83
|
+
|
|
84
|
+
watch: {
|
|
85
|
+
attachedElement: {
|
|
86
|
+
immediate: true,
|
|
87
|
+
deep: true,
|
|
88
|
+
handler() {
|
|
89
|
+
this.$nextTick(() => {
|
|
90
|
+
this.updatePopoverStyle();
|
|
91
|
+
});
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
|
|
96
|
+
methods: {
|
|
97
|
+
updatePopoverStyle() {
|
|
98
|
+
const { attachedElement, step } = this;
|
|
99
|
+
|
|
100
|
+
const popoverElement = this.$refs.popover;
|
|
101
|
+
|
|
102
|
+
if (!attachedElement || !popoverElement) {
|
|
103
|
+
return;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
const {
|
|
107
|
+
top: attachedTop,
|
|
108
|
+
left: attachedLeft,
|
|
109
|
+
width: attachedWidth,
|
|
110
|
+
height: attachedHeight,
|
|
111
|
+
} = attachedElement.getBoundingClientRect();
|
|
112
|
+
const popoverArrowSize = 12;
|
|
113
|
+
const popoverArrowMargin = 2;
|
|
114
|
+
const popoverArrowSpacing = popoverArrowSize + popoverArrowMargin;
|
|
115
|
+
const popoverWidth = popoverElement?.offsetWidth;
|
|
116
|
+
const popoverHeight = popoverElement?.offsetHeight;
|
|
117
|
+
|
|
118
|
+
const translateXMap = {
|
|
119
|
+
top: attachedLeft - (popoverWidth - attachedWidth) / 2,
|
|
120
|
+
bottom: attachedLeft - (popoverWidth - attachedWidth) / 2,
|
|
121
|
+
right: attachedLeft + attachedWidth + popoverArrowSpacing,
|
|
122
|
+
left: attachedLeft - popoverWidth - popoverArrowSpacing,
|
|
123
|
+
};
|
|
124
|
+
const translateYMap = {
|
|
125
|
+
top: attachedTop - popoverHeight - popoverArrowSpacing,
|
|
126
|
+
bottom: attachedTop + attachedHeight + popoverArrowSpacing,
|
|
127
|
+
right: attachedTop - popoverHeight / 2 + attachedHeight / 2,
|
|
128
|
+
left: attachedTop - popoverHeight / 2 + attachedHeight / 2,
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
const style = {
|
|
132
|
+
transform: `translate(${translateXMap[step.popoverPosition]}px, ${translateYMap[step.popoverPosition]}px)`,
|
|
133
|
+
transition: 'transform .3s ease',
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
this.style = style;
|
|
137
|
+
},
|
|
138
|
+
},
|
|
139
|
+
};
|
|
140
|
+
</script>
|
|
141
|
+
<style lang="scss" scoped>
|
|
142
|
+
@use '@/assets/scss/unnnic' as *;
|
|
143
|
+
|
|
144
|
+
* {
|
|
145
|
+
margin: 0;
|
|
146
|
+
padding: 0;
|
|
147
|
+
box-sizing: border-box;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.unnnic-tour__popover {
|
|
151
|
+
display: flex;
|
|
152
|
+
flex-direction: column;
|
|
153
|
+
gap: $unnnic-spacing-ant;
|
|
154
|
+
position: fixed;
|
|
155
|
+
top: 0;
|
|
156
|
+
left: 0;
|
|
157
|
+
|
|
158
|
+
z-index: 1001;
|
|
159
|
+
|
|
160
|
+
border-radius: $unnnic-border-radius-sm;
|
|
161
|
+
box-shadow: $unnnic-shadow-1;
|
|
162
|
+
background: $unnnic-color-bg-base;
|
|
163
|
+
padding: $unnnic-spacing-ant;
|
|
164
|
+
|
|
165
|
+
width: max-content;
|
|
166
|
+
max-width: 30vw;
|
|
167
|
+
|
|
168
|
+
color: $unnnic-color-fg-emphasized;
|
|
169
|
+
font-family: $unnnic-font-family-secondary;
|
|
170
|
+
font-size: $unnnic-font-size-body-gt;
|
|
171
|
+
font-weight: $unnnic-font-weight-regular;
|
|
172
|
+
|
|
173
|
+
pointer-events: auto;
|
|
174
|
+
|
|
175
|
+
$arrowSize: $unnnic-icon-size-xs;
|
|
176
|
+
$arrowHalfSize: calc($arrowSize / 2);
|
|
177
|
+
|
|
178
|
+
&::before {
|
|
179
|
+
content: '';
|
|
180
|
+
position: absolute;
|
|
181
|
+
|
|
182
|
+
width: $unnnic-icon-size-xs;
|
|
183
|
+
height: $unnnic-icon-size-xs;
|
|
184
|
+
|
|
185
|
+
border-radius: calc($unnnic-border-radius-sm / 2);
|
|
186
|
+
|
|
187
|
+
background: linear-gradient(
|
|
188
|
+
-45deg,
|
|
189
|
+
$unnnic-color-bg-base 50%,
|
|
190
|
+
transparent 50%
|
|
191
|
+
);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
&.top::before {
|
|
195
|
+
left: 50%;
|
|
196
|
+
bottom: -$arrowHalfSize;
|
|
197
|
+
transform: translateX(-50%) rotate(45deg);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
&.bottom::before {
|
|
201
|
+
top: -$arrowHalfSize;
|
|
202
|
+
left: 50%;
|
|
203
|
+
transform: translateX(-50%) rotate(225deg);
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
&.left::before {
|
|
207
|
+
right: -$arrowHalfSize;
|
|
208
|
+
top: 50%;
|
|
209
|
+
transform: translateY(-50%) rotate(315deg);
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
&.right::before {
|
|
213
|
+
left: -$arrowHalfSize;
|
|
214
|
+
top: 50%;
|
|
215
|
+
transform: translateY(-50%) rotate(135deg);
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.popover__header {
|
|
219
|
+
display: flex;
|
|
220
|
+
justify-content: space-between;
|
|
221
|
+
align-items: center;
|
|
222
|
+
gap: $unnnic-spacing-nano;
|
|
223
|
+
|
|
224
|
+
.header__title {
|
|
225
|
+
font-weight: $unnnic-font-weight-bold;
|
|
226
|
+
font-size: $unnnic-font-size-body-gt;
|
|
227
|
+
}
|
|
228
|
+
.header__close-tour {
|
|
229
|
+
cursor: pointer;
|
|
230
|
+
|
|
231
|
+
font-size: $unnnic-font-size-body-md;
|
|
232
|
+
text-decoration-line: underline;
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
</style>
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
const validateStep = (step) => {
|
|
2
|
+
const { title, description, attachedElement, popoverPosition } = step;
|
|
3
|
+
const hasObrigatoryProps =
|
|
4
|
+
'title' in step &&
|
|
5
|
+
'description' in step &&
|
|
6
|
+
'attachedElement' in step &&
|
|
7
|
+
'popoverPosition' in step;
|
|
8
|
+
|
|
9
|
+
if (!hasObrigatoryProps) {
|
|
10
|
+
throw new Error(
|
|
11
|
+
'Each item in "steps" must have "title", "description", "attachedElement" and "popoverPosition".',
|
|
12
|
+
);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
const isTitleInvalid = typeof title !== 'string' || !title.trim();
|
|
16
|
+
if (isTitleInvalid) {
|
|
17
|
+
throw new Error('"title" must be a padded string');
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
const isDescriptionInvalid =
|
|
21
|
+
typeof description !== 'string' || !description.trim();
|
|
22
|
+
if (isDescriptionInvalid) {
|
|
23
|
+
throw new Error('"description" must be a padded string');
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
const isAttachedElementInvalid = !(attachedElement instanceof HTMLElement);
|
|
27
|
+
if (isAttachedElementInvalid) {
|
|
28
|
+
throw new Error('"attachedElement" must be an HTML element.');
|
|
29
|
+
}
|
|
30
|
+
const validPopoverPositions = ['top', 'bottom', 'left', 'right'];
|
|
31
|
+
const isPopoverPositionInvalid =
|
|
32
|
+
!validPopoverPositions.includes(popoverPosition);
|
|
33
|
+
if (isPopoverPositionInvalid) {
|
|
34
|
+
throw new Error(
|
|
35
|
+
'"popoverPosition" must be one of "top", "bottom", "left", or "right".',
|
|
36
|
+
);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
if ('padding' in step) {
|
|
40
|
+
const isPaddingInvalidType =
|
|
41
|
+
typeof step.padding !== 'object' || step.padding === null;
|
|
42
|
+
if (isPaddingInvalidType) {
|
|
43
|
+
throw new Error(
|
|
44
|
+
'Each item in "steps" that contains "padding" must assign it as an object.',
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
const isPaddingEmpty = !(step.padding.vertical || step.padding.horizontal);
|
|
49
|
+
if (isPaddingEmpty) {
|
|
50
|
+
throw new Error(
|
|
51
|
+
'Each item in "steps" that contains "padding" must assign it as an object with "vertical" and/or "horizontal" keys.',
|
|
52
|
+
);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
const isPaddingVerticalInvalid =
|
|
56
|
+
'vertical' in step.padding && typeof step.padding.vertical !== 'number';
|
|
57
|
+
if (isPaddingVerticalInvalid) {
|
|
58
|
+
throw new Error('"vertical" in "padding" must be a number.');
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
const isPaddingHorizontalInvalid =
|
|
62
|
+
'horizontal' in step.padding &&
|
|
63
|
+
typeof step.padding.horizontal !== 'number';
|
|
64
|
+
if (isPaddingHorizontalInvalid) {
|
|
65
|
+
throw new Error('"horizontal" in "padding" must be a number.');
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
export const validateSteps = (steps) => {
|
|
71
|
+
if (!Array.isArray(steps)) {
|
|
72
|
+
throw new Error('Property steps needs to be a padded array.');
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
if (!steps?.[0]) {
|
|
76
|
+
throw new Error('Steps property cannot be an empty array.');
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
steps.forEach(validateStep);
|
|
80
|
+
|
|
81
|
+
return true;
|
|
82
|
+
};
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<UnnnicDropArea
|
|
4
|
+
v-model:currentFiles="currentFiles"
|
|
5
|
+
:acceptMultiple="acceptMultiple"
|
|
6
|
+
:supportedFormats="supportedFormats"
|
|
7
|
+
:maxFileSize="maxFileSize"
|
|
8
|
+
:shouldReplace="shouldReplace"
|
|
9
|
+
:maximumUploads="maximumUploads"
|
|
10
|
+
:subtitle="subtitle"
|
|
11
|
+
@file-change="$emit('fileChange', $event)"
|
|
12
|
+
/>
|
|
13
|
+
|
|
14
|
+
<div
|
|
15
|
+
v-if="currentFiles.length > 0"
|
|
16
|
+
class="unnnic-upload-area__cards"
|
|
17
|
+
>
|
|
18
|
+
<UnnnicImportCard
|
|
19
|
+
v-for="(file, index) in currentFiles"
|
|
20
|
+
:key="index"
|
|
21
|
+
:title="file.name"
|
|
22
|
+
:subtitle="file.name"
|
|
23
|
+
:isImporting="isUploading"
|
|
24
|
+
:importProgress="filesProgress[index] || 100"
|
|
25
|
+
:canImport="canImport"
|
|
26
|
+
:canDelete="canDelete"
|
|
27
|
+
:acceptedFormats="supportedFormats"
|
|
28
|
+
uploadIcon="button-refresh-arrows-1"
|
|
29
|
+
@delete="removeFile(index)"
|
|
30
|
+
@modified-file="modifyFile(index, $event)"
|
|
31
|
+
/>
|
|
32
|
+
</div>
|
|
33
|
+
</div>
|
|
34
|
+
</template>
|
|
35
|
+
|
|
36
|
+
<script>
|
|
37
|
+
import UnnnicDropArea from '../DropArea/DropArea.vue';
|
|
38
|
+
import UnnnicImportCard from '../ImportCard/ImportCard.vue';
|
|
39
|
+
|
|
40
|
+
export default {
|
|
41
|
+
name: 'UnnnicUploadArea',
|
|
42
|
+
components: {
|
|
43
|
+
UnnnicDropArea,
|
|
44
|
+
UnnnicImportCard,
|
|
45
|
+
},
|
|
46
|
+
model: {
|
|
47
|
+
prop: 'files',
|
|
48
|
+
event: 'fileChange',
|
|
49
|
+
},
|
|
50
|
+
props: {
|
|
51
|
+
files: {
|
|
52
|
+
type: Array,
|
|
53
|
+
default: () => [],
|
|
54
|
+
},
|
|
55
|
+
acceptMultiple: {
|
|
56
|
+
type: Boolean,
|
|
57
|
+
default: true,
|
|
58
|
+
},
|
|
59
|
+
supportedFormats: {
|
|
60
|
+
type: String,
|
|
61
|
+
default: '*',
|
|
62
|
+
},
|
|
63
|
+
maximumUploads: {
|
|
64
|
+
type: Number,
|
|
65
|
+
default: 1,
|
|
66
|
+
},
|
|
67
|
+
filesProgress: {
|
|
68
|
+
type: Array,
|
|
69
|
+
default: () => [],
|
|
70
|
+
},
|
|
71
|
+
isUploading: {
|
|
72
|
+
type: Boolean,
|
|
73
|
+
default: false,
|
|
74
|
+
},
|
|
75
|
+
canImport: {
|
|
76
|
+
type: Boolean,
|
|
77
|
+
default: false,
|
|
78
|
+
},
|
|
79
|
+
canDelete: {
|
|
80
|
+
type: Boolean,
|
|
81
|
+
default: true,
|
|
82
|
+
},
|
|
83
|
+
maxFileSize: {
|
|
84
|
+
type: Number,
|
|
85
|
+
default: undefined,
|
|
86
|
+
},
|
|
87
|
+
shouldReplace: {
|
|
88
|
+
type: Boolean,
|
|
89
|
+
default: false,
|
|
90
|
+
},
|
|
91
|
+
subtitle: {
|
|
92
|
+
required: false,
|
|
93
|
+
type: String,
|
|
94
|
+
default: '',
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
|
|
98
|
+
emits: ['fileChange'],
|
|
99
|
+
|
|
100
|
+
data() {
|
|
101
|
+
return {
|
|
102
|
+
currentFiles: this.files,
|
|
103
|
+
};
|
|
104
|
+
},
|
|
105
|
+
|
|
106
|
+
watch: {
|
|
107
|
+
files(newValue) {
|
|
108
|
+
this.currentFiles = newValue;
|
|
109
|
+
},
|
|
110
|
+
},
|
|
111
|
+
|
|
112
|
+
methods: {
|
|
113
|
+
emitFileChange() {
|
|
114
|
+
this.$emit('fileChange', this.currentFiles);
|
|
115
|
+
},
|
|
116
|
+
|
|
117
|
+
modifyFile(index, file) {
|
|
118
|
+
this.currentFiles.splice(index, 1, file);
|
|
119
|
+
this.emitFileChange();
|
|
120
|
+
},
|
|
121
|
+
|
|
122
|
+
removeFile(index) {
|
|
123
|
+
this.currentFiles.splice(index, 1);
|
|
124
|
+
this.emitFileChange();
|
|
125
|
+
},
|
|
126
|
+
},
|
|
127
|
+
};
|
|
128
|
+
</script>
|
|
129
|
+
|
|
130
|
+
<style lang="scss" scoped>
|
|
131
|
+
@use '@/assets/scss/unnnic' as *;
|
|
132
|
+
|
|
133
|
+
.unnnic-upload-area {
|
|
134
|
+
&__cards {
|
|
135
|
+
margin-top: $unnnic-spacing-stack-md;
|
|
136
|
+
display: flex;
|
|
137
|
+
flex-direction: column;
|
|
138
|
+
gap: $unnnic-spacing-stack-xs;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
</style>
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { beforeEach, describe, expect, it, vi } from 'vitest';
|
|
2
|
+
import { mount } from '@vue/test-utils';
|
|
3
|
+
|
|
4
|
+
import Icon from '../Icon.vue';
|
|
5
|
+
|
|
6
|
+
const createWrapper = (props) => {
|
|
7
|
+
return mount(Icon, { props });
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
const handlerIconClickTest = async (wrapper) => {
|
|
11
|
+
await wrapper.trigger('click');
|
|
12
|
+
expect(wrapper.emitted('click')).toBeFalsy();
|
|
13
|
+
await wrapper.setProps({ clickable: true });
|
|
14
|
+
await wrapper.trigger('click');
|
|
15
|
+
expect(wrapper.emitted('click')).toBeTruthy();
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
const handlerIconMouseDownUpTest = async (wrapper) => {
|
|
19
|
+
await wrapper.trigger('mousedown');
|
|
20
|
+
await wrapper.trigger('mouseup');
|
|
21
|
+
expect(wrapper.emitted('mousedown')).toBeTruthy();
|
|
22
|
+
expect(wrapper.emitted('mouseup')).toBeTruthy();
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
const commonTests = async (wrapper) => {
|
|
26
|
+
it('should emit click event when the icon is clicked if clickable prop its true', async () => {
|
|
27
|
+
await handlerIconClickTest(wrapper);
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
it('should emit mousedown/mouseup when doing the action with the mouse', async () => {
|
|
31
|
+
await handlerIconMouseDownUpTest(wrapper);
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
describe('Icon', () => {
|
|
36
|
+
describe('Custom Icons', () => {
|
|
37
|
+
let wrapper;
|
|
38
|
+
|
|
39
|
+
beforeEach(() => {
|
|
40
|
+
wrapper = createWrapper({ icon: 'checkbox-default' });
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
it('should render the icon from Custom Icons', () => {
|
|
44
|
+
const hasCustomIcon = wrapper.find('[data-testid="custom-icon"]');
|
|
45
|
+
expect(hasCustomIcon.exists()).toBe(true);
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
it('should emit click event when the icon is clicked if clickable prop its true', async () => {
|
|
49
|
+
await handlerIconClickTest(wrapper);
|
|
50
|
+
});
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
describe('OldMapIcon', () => {
|
|
54
|
+
let wrapper;
|
|
55
|
+
|
|
56
|
+
beforeEach(() => {
|
|
57
|
+
wrapper = createWrapper({ icon: 'search-1' });
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
it('should render the icon from OldIconsMap', () => {
|
|
61
|
+
const hasOldIcon = wrapper.find('[data-testid="material-icon"]');
|
|
62
|
+
expect(hasOldIcon.exists()).toBe(true);
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
it('should emit click event when the icon is clicked if clickable prop its true', async () => {
|
|
66
|
+
await handlerIconClickTest(wrapper);
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
it('should emit mousedown/mouseup when doing the action with the mouse', async () => {
|
|
70
|
+
await handlerIconMouseDownUpTest(wrapper);
|
|
71
|
+
});
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
describe('Material Icons', () => {
|
|
75
|
+
let wrapper;
|
|
76
|
+
|
|
77
|
+
beforeEach(() => {
|
|
78
|
+
wrapper = createWrapper({ icon: 'done_all' });
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
it('should render the icon from Material Icons', () => {
|
|
82
|
+
const hasOldIcon = wrapper.find('[data-testid="material-icon"]');
|
|
83
|
+
expect(hasOldIcon.exists()).toBe(true);
|
|
84
|
+
});
|
|
85
|
+
|
|
86
|
+
it('should emit click event when the icon is clicked if clickable prop its true', async () => {
|
|
87
|
+
await handlerIconClickTest(wrapper);
|
|
88
|
+
});
|
|
89
|
+
|
|
90
|
+
it('should emit mousedown/mouseup when doing the action with the mouse', async () => {
|
|
91
|
+
await handlerIconMouseDownUpTest(wrapper);
|
|
92
|
+
});
|
|
93
|
+
});
|
|
94
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const unnnicFontSize = 16; // px
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div :class="[gridClass, 'grid-example-container']">
|
|
3
|
+
<div
|
|
4
|
+
v-for="i in gridNumber"
|
|
5
|
+
:key="i"
|
|
6
|
+
:class="[gridItemClass, 'grid-example']"
|
|
7
|
+
/>
|
|
8
|
+
</div>
|
|
9
|
+
</template>
|
|
10
|
+
|
|
11
|
+
<script>
|
|
12
|
+
/* eslint-disable vue/multi-word-component-names */
|
|
13
|
+
export default {
|
|
14
|
+
name: 'Grid',
|
|
15
|
+
props: {
|
|
16
|
+
size: {
|
|
17
|
+
type: String,
|
|
18
|
+
default: 'sm',
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
computed: {
|
|
22
|
+
gridClass() {
|
|
23
|
+
return `unnnic-grid-${this.size}`;
|
|
24
|
+
},
|
|
25
|
+
gridItemClass() {
|
|
26
|
+
return 'unnnic-grid-span-1';
|
|
27
|
+
},
|
|
28
|
+
gridNumber() {
|
|
29
|
+
if (this.size === 'xs' || this.size === 'sm') return 4;
|
|
30
|
+
if (this.size === 'md') return 6;
|
|
31
|
+
if (this.size === 'lg' || this.size === 'xl') return 12;
|
|
32
|
+
return 12;
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
};
|
|
36
|
+
</script>
|
|
37
|
+
|
|
38
|
+
<style lang="scss" scoped>
|
|
39
|
+
@use '@/assets/scss/unnnic' as *;
|
|
40
|
+
|
|
41
|
+
.grid-example {
|
|
42
|
+
background-color: $unnnic-color-teal-8;
|
|
43
|
+
|
|
44
|
+
&-container {
|
|
45
|
+
background-color: $unnnic-color-fg-base;
|
|
46
|
+
width: 100%;
|
|
47
|
+
height: 100vh;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
</style>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<svg
|
|
3
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
4
|
+
width="20"
|
|
5
|
+
height="20"
|
|
6
|
+
fill="currentColor"
|
|
7
|
+
>
|
|
8
|
+
<path
|
|
9
|
+
d="M15 4a1 1 0 1 0 0 2V4zm0 11v-1a1 1 0 0 0-1 1h1zm0 4l-.707.707A1 1 0 0 0 16 19h-1zm-4-4l.707-.707A1 1 0 0 0 11 14v1zm-4.707-1.293a1 1 0 0 0-1.414 1.414l1.414-1.414zm-.707.707l-.707-.707.707.707zM9 11v-1a1 1 0 0 0-.707.293L9 11zm-4 0h1a1 1 0 0 0-1-1v1zm0 4H4a1 1 0 0 0 1.707.707L5 15zm10-9h2V4h-2v2zm2 0a1 1 0 0 1 1 1h2a3 3 0 0 0-3-3v2zm1 1v6h2V7h-2zm0 6a1 1 0 0 1-1 1v2a3 3 0 0 0 3-3h-2zm-1 1h-2v2h2v-2zm-3 1v4h2v-4h-2zm1.707 3.293l-4-4-1.414 1.414 4 4 1.414-1.414zM11 14H7v2h4v-2zm-4 0c-.276 0-.525-.111-.707-.293l-1.414 1.414C5.42 15.663 6.172 16 7 16v-2zm-.707 1.121l3.414-3.414-1.414-1.414-3.414 3.414 1.414 1.414zM9 12h4v-2H9v2zm4 0a3 3 0 0 0 3-3h-2a1 1 0 0 1-1 1v2zm3-3V3h-2v6h2zm0-6a3 3 0 0 0-3-3v2a1 1 0 0 1 1 1h2zm-3-3H3v2h10V0zM3 0a3 3 0 0 0-3 3h2a1 1 0 0 1 1-1V0zM0 3v6h2V3H0zm0 6a3 3 0 0 0 3 3v-2a1 1 0 0 1-1-1H0zm3 3h2v-2H3v2zm1-1v4h2v-4H4zm1.707 4.707l.586-.586-1.414-1.414-.586.586 1.414 1.414z"
|
|
10
|
+
/>
|
|
11
|
+
</svg>
|
|
12
|
+
</template>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<svg
|
|
3
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
4
|
+
width="20"
|
|
5
|
+
height="17"
|
|
6
|
+
fill="currentColor"
|
|
7
|
+
>
|
|
8
|
+
<path
|
|
9
|
+
d="M11 2.253a1 1 0 1 0-2 0h2zm-2 13a1 1 0 1 0 2 0H9zm.447-12.167a1 1 0 1 0 1.107-1.666L9.447 3.086zM1 2.253L.447 1.42A1 1 0 0 0 0 2.253h1zm0 13H0a1 1 0 0 0 1.553.833L1 15.253zm8.447.833a1 1 0 1 0 1.107-1.666l-1.107 1.666zm0-14.666a1 1 0 1 0 1.107 1.666L9.447 1.42zM19 2.253h1a1 1 0 0 0-.447-.833L19 2.253zm0 13l-.553.833A1 1 0 0 0 20 15.253h-1zm-9.553-.833a1 1 0 1 0 1.107 1.666L9.447 14.42zM9 2.253v13h2v-13H9zm1.553-.833C9.203.523 7.42 0 5.5 0v2c1.572 0 2.961.431 3.947 1.086l1.107-1.666zM5.5 0C3.58 0 1.797.523.447 1.42l1.107 1.666C2.539 2.431 3.928 2 5.5 2V0zM0 2.253v13h2v-13H0zm1.553 13.833C2.539 15.431 3.928 15 5.5 15v-2c-1.92 0-3.703.523-5.053 1.42l1.107 1.666zM5.5 15c1.572 0 2.961.431 3.947 1.086l1.107-1.666C9.203 13.523 7.42 13 5.5 13v2zm5.053-11.914C11.539 2.431 12.928 2 14.5 2V0c-1.92 0-3.703.523-5.053 1.42l1.107 1.666zM14.5 2c1.573 0 2.961.431 3.947 1.086l1.107-1.666C18.203.523 16.421 0 14.5 0v2zm3.5.253v13h2v-13h-2zm1.553 12.167C18.203 13.523 16.421 13 14.5 13v2c1.573 0 2.961.431 3.947 1.086l1.107-1.666zM14.5 13c-1.92 0-3.703.523-5.053 1.42l1.107 1.666C11.539 15.431 12.928 15 14.5 15v-2z"
|
|
10
|
+
/>
|
|
11
|
+
</svg>
|
|
12
|
+
</template>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<svg
|
|
3
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
4
|
+
width="18"
|
|
5
|
+
height="20"
|
|
6
|
+
fill="currentColor"
|
|
7
|
+
>
|
|
8
|
+
<path
|
|
9
|
+
d="M11.447 8.894a1 1 0 1 0-.894-1.789l.894 1.789zm-2.894-.789a1 1 0 1 0 .894 1.789l-.894-1.789zm0 1.789a1 1 0 1 0 .894-1.789l-.894 1.789zM7.447 7.106a1 1 0 1 0-.894 1.789l.894-1.789zM10 9a1 1 0 1 0-2 0h2zm-2 2.5a1 1 0 1 0 2 0H8zm9.447-5.606a1 1 0 1 0-.894-1.789l.894 1.789zm-2.894-.789a1 1 0 1 0 .894 1.789l-.894-1.789zm2 .789a1 1 0 1 0 .894-1.789l-.894 1.789zm-1.106-2.789a1 1 0 1 0-.894 1.789l.894-1.789zM18 5a1 1 0 1 0-2 0h2zm-2 2.5a1 1 0 1 0 2 0h-2zm-5.447-4.606a1 1 0 1 0 .894-1.789l-.894 1.789zM9 1l.447-.894a1 1 0 0 0-.894 0L9 1zm-2.447.106a1 1 0 1 0 .894 1.789l-.894-1.789zm-6 3a1 1 0 1 0 .894 1.789L.553 4.106zm2.894.789a1 1 0 1 0-.894-1.789l.894 1.789zm-2-.789a1 1 0 1 0-.894 1.789l.894-1.789zm1.106 2.789a1 1 0 1 0 .894-1.789l-.894 1.789zM2 5a1 1 0 1 0-2 0h2zM0 7.5a1 1 0 1 0 2 0H0zm8.553 12.394a1 1 0 1 0 .894-1.789l-.894 1.789zm-1.106-2.789a1 1 0 1 0-.894 1.789l.894-1.789zm1.106 1a1 1 0 1 0 .894 1.789l-.894-1.789zm2.894.789a1 1 0 1 0-.894-1.789l.894 1.789zM8 19a1 1 0 1 0 2 0H8zm2-2.5a1 1 0 1 0-2 0h2zm-7.447.394a1 1 0 1 0 .894-1.789l-.894 1.789zM1 15H0a1 1 0 0 0 .553.894L1 15zm1-2.5a1 1 0 1 0-2 0h2zm12.553 2.606a1 1 0 1 0 .894 1.789l-.894-1.789zM17 15l.447.894A1 1 0 0 0 18 15h-1zm1-2.5a1 1 0 1 0-2 0h2zm-7.447-5.394l-2 1 .894 1.789 2-1-.894-1.789zm-1.106 1l-2-1-.894 1.789 2 1 .894-1.789zM8 9v2.5h2V9H8zm8.553-4.894l-2 1 .894 1.789 2-1-.894-1.789zm.894 0l-2-1-.894 1.789 2 1 .894-1.789zM16 5v2.5h2V5h-2zm-4.553-3.894l-2-1-.894 1.789 2 1 .894-1.789zm-2.894-1l-2 1 .894 1.789 2-1L8.553.106zM1.447 5.894l2-1-.894-1.789-2 1 .894 1.789zm-.894 0l2 1 .894-1.789-2-1-.894 1.789zM0 5v2.5h2V5H0zm9.447 13.106l-2-1-.894 1.789 2 1 .894-1.789zm0 1.789l2-1-.894-1.789-2 1 .894 1.789zM10 19v-2.5H8V19h2zm-6.553-3.894l-2-1-.894 1.789 2 1 .894-1.789zM2 15v-2.5H0V15h2zm13.447 1.894l2-1-.894-1.789-2 1 .894 1.789zM18 15v-2.5h-2V15h2z"
|
|
10
|
+
/>
|
|
11
|
+
</svg>
|
|
12
|
+
</template>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<svg
|
|
3
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
4
|
+
width="20"
|
|
5
|
+
height="20"
|
|
6
|
+
fill="currentColor"
|
|
7
|
+
>
|
|
8
|
+
<path
|
|
9
|
+
d="M10 3.22l-.61-.6a5.5 5.5 0 0 0-7.666.105 5.5 5.5 0 0 0-.114 7.665L10 18.78l8.39-8.4a5.5 5.5 0 0 0-.114-7.665 5.5 5.5 0 0 0-7.666-.105l-.61.61z"
|
|
10
|
+
/>
|
|
11
|
+
</svg>
|
|
12
|
+
</template>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<!-- This icon is from <https://github.com/Templarian/MaterialDesign>, distributed under Apache 2.0 (https://www.apache.org/licenses/LICENSE-2.0) license-->
|
|
2
|
+
<template>
|
|
3
|
+
<svg
|
|
4
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
5
|
+
xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
6
|
+
aria-hidden="true"
|
|
7
|
+
role="img"
|
|
8
|
+
class="iconify iconify--mdi"
|
|
9
|
+
width="24"
|
|
10
|
+
height="24"
|
|
11
|
+
preserveAspectRatio="xMidYMid meet"
|
|
12
|
+
viewBox="0 0 24 24"
|
|
13
|
+
>
|
|
14
|
+
<path
|
|
15
|
+
d="M20 18v-4h-3v1h-2v-1H9v1H7v-1H4v4h16M6.33 8l-1.74 4H7v-1h2v1h6v-1h2v1h2.41l-1.74-4H6.33M9 5v1h6V5H9m12.84 7.61c.1.22.16.48.16.8V18c0 .53-.21 1-.6 1.41c-.4.4-.85.59-1.4.59H4c-.55 0-1-.19-1.4-.59C2.21 19 2 18.53 2 18v-4.59c0-.32.06-.58.16-.8L4.5 7.22C4.84 6.41 5.45 6 6.33 6H7V5c0-.55.18-1 .57-1.41C7.96 3.2 8.44 3 9 3h6c.56 0 1.04.2 1.43.59c.39.41.57.86.57 1.41v1h.67c.88 0 1.49.41 1.83 1.22l2.34 5.39z"
|
|
16
|
+
fill="currentColor"
|
|
17
|
+
></path>
|
|
18
|
+
</svg>
|
|
19
|
+
</template>
|