@weni/unnnic-system 2.0.0 → 2.0.2
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/.vscode/extensions.json +3 -0
- package/README.md +36 -2
- package/dist/favicon.ico +0 -0
- package/dist/style.css +1 -0
- package/dist/unnnic.mjs +68338 -0
- package/dist/unnnic.umd.js +661 -44367
- package/package.json +76 -65
- package/src/assets/fonts/Material Symbols Rounded Filled.woff2 +0 -0
- package/src/assets/fonts/Material Symbols Rounded.woff2 +0 -0
- package/src/assets/fonts/fonts/icomoon.svg +163 -163
- package/src/assets/fonts/icons.css +582 -582
- package/src/assets/icons/Add1.vue +16 -0
- package/src/assets/icons/AddCircle1.vue +20 -0
- package/src/assets/icons/AlarmBell2.vue +20 -0
- package/src/assets/icons/AlarmBell3.vue +20 -0
- package/src/assets/icons/AlarmBellRing.vue +40 -0
- package/src/assets/icons/AlertCircle1.vue +25 -0
- package/src/assets/icons/AlertCircle11.vue +15 -0
- package/src/assets/icons/AmericanExpress.vue +18 -0
- package/src/assets/icons/AppWindowEdit1.vue +20 -0
- package/src/assets/icons/AppWindowEdit2.vue +45 -0
- package/src/assets/icons/ArrowButtonDown1.vue +15 -0
- package/src/assets/icons/ArrowButtonRight1.vue +15 -0
- package/src/assets/icons/ArrowButtonUp1.vue +15 -0
- package/src/assets/icons/ArrowDown11.vue +14 -0
- package/src/assets/icons/ArrowLeft11.vue +15 -0
- package/src/assets/icons/ArrowRedo.vue +15 -0
- package/src/assets/icons/ArrowRight11.vue +15 -0
- package/src/assets/icons/ArrowUndo.vue +15 -0
- package/src/assets/icons/Attachment.vue +16 -0
- package/src/assets/icons/Bin11.vue +26 -0
- package/src/assets/icons/BookAddress12.vue +20 -0
- package/src/assets/icons/BookAddress2.vue +15 -0
- package/src/assets/icons/BookLibrary1.vue +45 -0
- package/src/assets/icons/BookLibrary2.vue +17 -0
- package/src/assets/icons/Brazil.svg +21 -21
- package/src/assets/icons/Brazil.vue +74 -0
- package/src/assets/icons/Building21.vue +66 -0
- package/src/assets/icons/ButtonPlay1.vue +20 -0
- package/src/assets/icons/ButtonRefreshArrow1.vue +15 -0
- package/src/assets/icons/ButtonRefreshArrows1.vue +20 -0
- package/src/assets/icons/Charger1.vue +21 -0
- package/src/assets/icons/ChatTranslate1.vue +30 -0
- package/src/assets/icons/Check2.vue +16 -0
- package/src/assets/icons/CheckCircle11.vue +20 -0
- package/src/assets/icons/CheckCircle111.vue +15 -0
- package/src/assets/icons/CheckDouble.vue +15 -0
- package/src/assets/icons/CheckSquare1.vue +20 -0
- package/src/assets/icons/CheckSquare2.vue +20 -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/Close1.vue +16 -0
- package/src/assets/icons/Cog1.vue +21 -0
- package/src/assets/icons/Cog2.vue +16 -0
- package/src/assets/icons/CommonFileEmpty1.vue +15 -0
- package/src/assets/icons/CommonFileHorizontalImage1.vue +25 -0
- package/src/assets/icons/ControlsPause1.vue +20 -0
- package/src/assets/icons/ControlsPlay1.vue +15 -0
- package/src/assets/icons/CopyPaste1.vue +35 -0
- package/src/assets/icons/CurrencyDollarCircle1.vue +20 -0
- package/src/assets/icons/DefaultAvatar.vue +28 -0
- package/src/assets/icons/Delete1.vue +16 -0
- package/src/assets/icons/Delete11.vue +21 -0
- package/src/assets/icons/Delete21.vue +16 -0
- package/src/assets/icons/DeveloperCommunityGithub11.vue +15 -0
- package/src/assets/icons/DinersClub.vue +26 -0
- package/src/assets/icons/Discover.vue +47 -0
- package/src/assets/icons/DownloadBottom1.vue +20 -0
- package/src/assets/icons/DownloadThickBottom1.vue +20 -0
- package/src/assets/icons/Drag1.vue +27 -0
- package/src/assets/icons/EmailActionUnread1.vue +27 -0
- package/src/assets/icons/EmailActionUnread11.vue +18 -0
- package/src/assets/icons/Emoji.vue +31 -0
- package/src/assets/icons/Expand81.vue +31 -0
- package/src/assets/icons/ExpandFull1.vue +35 -0
- package/src/assets/icons/Export1.vue +26 -0
- package/src/assets/icons/Filter.vue +18 -0
- package/src/assets/icons/FitnessBiceps1.vue +15 -0
- package/src/assets/icons/Flash13.vue +16 -0
- package/src/assets/icons/Flash14.vue +16 -0
- package/src/assets/icons/FloppyDisk1.vue +30 -0
- package/src/assets/icons/Folder1.vue +16 -0
- package/src/assets/icons/Folder2.vue +16 -0
- package/src/assets/icons/GaugeDashboard1.vue +20 -0
- package/src/assets/icons/GaugeDashboard2.vue +40 -0
- package/src/assets/icons/GenericCard.vue +18 -0
- package/src/assets/icons/GraphStats1.vue +15 -0
- package/src/assets/icons/GraphStatsAscend2.vue +15 -0
- package/src/assets/icons/GraphStatsCircle1.vue +20 -0
- package/src/assets/icons/GraphStatsCircle11.vue +20 -0
- package/src/assets/icons/GraphStatsDescend2.vue +17 -0
- package/src/assets/icons/HeadphonesCustomerSupport1.vue +15 -0
- package/src/assets/icons/HeadphonesCustomerSupport2.vue +15 -0
- package/src/assets/icons/HeadphonesCustomerSupportHuman11.vue +20 -0
- package/src/assets/icons/Hierarchy32.vue +16 -0
- package/src/assets/icons/Hierarchy33.vue +16 -0
- package/src/assets/icons/House11.vue +21 -0
- package/src/assets/icons/House22.vue +16 -0
- package/src/assets/icons/Indicator.vue +18 -0
- package/src/assets/icons/InformationCircle4.vue +15 -0
- package/src/assets/icons/InteractionTime.vue +31 -0
- package/src/assets/icons/Jcb.vue +75 -0
- package/src/assets/icons/KeyboardArrowDown1.vue +15 -0
- package/src/assets/icons/KeyboardArrowLeft1.vue +15 -0
- package/src/assets/icons/KeyboardArrowRight1.vue +15 -0
- package/src/assets/icons/KeyboardReturn1.vue +18 -0
- package/src/assets/icons/KeyboardReturn11.vue +14 -0
- package/src/assets/icons/LayoutDashboard1.vue +30 -0
- package/src/assets/icons/LayoutDashboard2.vue +30 -0
- package/src/assets/icons/LayoutModule12.vue +26 -0
- package/src/assets/icons/LoadingCircle1.vue +72 -0
- package/src/assets/icons/Lock21.vue +21 -0
- package/src/assets/icons/Lock22.vue +16 -0
- package/src/assets/icons/LockUnlock11.vue +20 -0
- package/src/assets/icons/Logout11.vue +21 -0
- package/src/assets/icons/Mastercard.vue +27 -0
- package/src/assets/icons/Messages.vue +18 -0
- package/src/assets/icons/MessagesBubble1.vue +15 -0
- package/src/assets/icons/MessagesBubble3.vue +15 -0
- package/src/assets/icons/MessagesBubble4.vue +15 -0
- package/src/assets/icons/MessagingWeChat2.vue +20 -0
- package/src/assets/icons/MessagingWeChat3.vue +40 -0
- package/src/assets/icons/MessagingWhatsapp1.vue +20 -0
- package/src/assets/icons/Microphone.vue +21 -0
- package/src/assets/icons/NavigationMenuVertical1.vue +25 -0
- package/src/assets/icons/Notes1.vue +36 -0
- package/src/assets/icons/OfficeFilePdf11.vue +30 -0
- package/src/assets/icons/PaginateFilterText1.vue +35 -0
- package/src/assets/icons/PencilWrite1.vue +20 -0
- package/src/assets/icons/Phone3.vue +16 -0
- package/src/assets/icons/Phone4.vue +16 -0
- package/src/assets/icons/PhoneCharger1.vue +15 -0
- package/src/assets/icons/PhotographyEquipmentBag1.vue +25 -0
- package/src/assets/icons/PieLineGraph1.vue +35 -0
- package/src/assets/icons/Preferences.vue +74 -0
- package/src/assets/icons/QuestionCircle1.vue +25 -0
- package/src/assets/icons/QuestionCircle2.vue +15 -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/RatingStar1.vue +13 -0
- package/src/assets/icons/RatingStar11.vue +15 -0
- package/src/assets/icons/ReadEmailAt1.vue +27 -0
- package/src/assets/icons/ResponseTime.vue +48 -0
- package/src/assets/icons/ScienceFictionRobot1.vue +40 -0
- package/src/assets/icons/ScienceFictionRobot2.vue +25 -0
- package/src/assets/icons/Search1.vue +16 -0
- package/src/assets/icons/SendEmail31.vue +13 -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/SocialMediaGoogle1.vue +26 -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.svg +498 -498
- package/src/assets/icons/Spain.vue +1846 -0
- package/src/assets/icons/StudyLightIdea1.vue +50 -0
- package/src/assets/icons/Subtract1.vue +16 -0
- package/src/assets/icons/SubtractCircle1.vue +20 -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/SynchronizeArrowClock4.vue +20 -0
- package/src/assets/icons/SynchronizeArrowClock5.vue +20 -0
- package/src/assets/icons/TaskChecklist1.vue +20 -0
- package/src/assets/icons/TaskListClock1.vue +45 -0
- package/src/assets/icons/TextBold.vue +15 -0
- package/src/assets/icons/TextCenter.vue +35 -0
- package/src/assets/icons/TextItalic.vue +15 -0
- package/src/assets/icons/TextJustified.vue +35 -0
- package/src/assets/icons/TextLeft.vue +35 -0
- package/src/assets/icons/TextRight.vue +35 -0
- package/src/assets/icons/TextUnderline.vue +20 -0
- package/src/assets/icons/Ticket1.vue +39 -0
- package/src/assets/icons/Ticket2.vue +21 -0
- package/src/assets/icons/TimeClockCircle1.vue +20 -0
- package/src/assets/icons/TransferMessage.vue +24 -0
- package/src/assets/icons/Translate1.vue +41 -0
- package/src/assets/icons/Translate2.vue +41 -0
- package/src/assets/icons/Typing1.vue +21 -0
- package/src/assets/icons/USA.svg +28 -28
- package/src/assets/icons/USA.vue +192 -0
- package/src/assets/icons/Unionpay.vue +31 -0
- package/src/assets/icons/UnorderedList.vue +40 -0
- package/src/assets/icons/UploadBottom1.vue +20 -0
- package/src/assets/icons/VideoFileMp41.vue +30 -0
- package/src/assets/icons/View11.vue +21 -0
- package/src/assets/icons/ViewOff1.vue +35 -0
- package/src/assets/icons/VipCrownQueen2.vue +20 -0
- package/src/assets/icons/Visa.vue +35 -0
- package/src/assets/icons/add-1.svg +3 -3
- package/src/assets/icons/add-circle-1.svg +4 -4
- package/src/assets/icons/alarm-bell-ring.svg +8 -8
- package/src/assets/icons/alert-circle-1-1.svg +3 -3
- package/src/assets/icons/alert-circle-1.svg +5 -5
- package/src/assets/icons/american-express.svg +4 -4
- package/src/assets/icons/app-window-edit-1.svg +4 -4
- package/src/assets/icons/app-window-edit-2.svg +9 -9
- package/src/assets/icons/arrow-button-down-1.svg +3 -3
- package/src/assets/icons/arrow-button-up-1.svg +3 -3
- package/src/assets/icons/arrow-down-1-1.svg +3 -3
- package/src/assets/icons/arrow-left-1-1.svg +3 -3
- package/src/assets/icons/arrow-redo.svg +3 -3
- package/src/assets/icons/arrow-right-1-1.svg +3 -3
- package/src/assets/icons/arrow-undo.svg +3 -3
- package/src/assets/icons/attachment.svg +3 -3
- package/src/assets/icons/bin-1-1.svg +5 -5
- package/src/assets/icons/book-address-1-2.svg +4 -4
- package/src/assets/icons/book-address-2.svg +3 -3
- package/src/assets/icons/book-library-1.svg +9 -9
- package/src/assets/icons/book-library-2.svg +3 -3
- package/src/assets/icons/bookmark-tag-1.svg +3 -3
- package/src/assets/icons/bookmarkTag1.vue +17 -0
- package/src/assets/icons/building-2-1.svg +13 -13
- package/src/assets/icons/button-play-1.svg +4 -4
- package/src/assets/icons/button-refresh-arrow-1.svg +3 -3
- package/src/assets/icons/button-refresh-arrows-1.svg +4 -4
- package/src/assets/icons/charger-1.svg +4 -4
- package/src/assets/icons/chat-translate-1.svg +6 -6
- package/src/assets/icons/check-2.svg +3 -3
- package/src/assets/icons/check-circle-1-1-1.svg +3 -3
- package/src/assets/icons/check-circle-1-1.svg +4 -4
- package/src/assets/icons/check-double.svg +3 -3
- package/src/assets/icons/check-square-1.svg +4 -4
- package/src/assets/icons/check-square-2.svg +4 -4
- package/src/assets/icons/checkbox-default.svg +3 -3
- package/src/assets/icons/checkbox-disable.svg +3 -3
- package/src/assets/icons/checkbox-less.svg +4 -4
- package/src/assets/icons/checkbox-select.svg +4 -4
- package/src/assets/icons/close-1.svg +3 -3
- package/src/assets/icons/cog-1.svg +4 -4
- package/src/assets/icons/cog-2.svg +3 -3
- package/src/assets/icons/common-file-empty-1.svg +3 -3
- package/src/assets/icons/common-file-horizontal-image-1.svg +5 -5
- package/src/assets/icons/controls-pause-1.svg +4 -4
- package/src/assets/icons/controls-play-1.svg +3 -3
- package/src/assets/icons/copy-paste-1.svg +7 -7
- package/src/assets/icons/currency-dollar-circle-1.svg +4 -4
- package/src/assets/icons/default-avatar.svg +5 -5
- package/src/assets/icons/delete-1-1.svg +4 -4
- package/src/assets/icons/delete-1.svg +3 -3
- package/src/assets/icons/delete-2-1.svg +3 -3
- package/src/assets/icons/developer-community-github-1-1.svg +3 -3
- package/src/assets/icons/diners-club.svg +6 -6
- package/src/assets/icons/discover.svg +11 -11
- package/src/assets/icons/download-bottom-1.svg +4 -4
- package/src/assets/icons/download-thick-bottom-1.svg +4 -4
- package/src/assets/icons/drag-1.svg +10 -10
- package/src/assets/icons/email-action-unread-1-1.svg +4 -4
- package/src/assets/icons/email-action-unread-1.svg +10 -10
- package/src/assets/icons/emoji.svg +6 -6
- package/src/assets/icons/expand-8-1.svg +6 -6
- package/src/assets/icons/expand-full-1.svg +7 -7
- package/src/assets/icons/export-1.svg +5 -5
- package/src/assets/icons/filter.svg +3 -3
- package/src/assets/icons/fitness-biceps-1.svg +3 -3
- package/src/assets/icons/flash-1-3.svg +3 -3
- package/src/assets/icons/flash-1-4.svg +3 -3
- package/src/assets/icons/floppy-disk-1.svg +6 -6
- package/src/assets/icons/folder-1.svg +3 -3
- package/src/assets/icons/folder-2.svg +3 -3
- package/src/assets/icons/gauge-dashboard-1.svg +4 -4
- package/src/assets/icons/gauge-dashboard-2.svg +8 -8
- package/src/assets/icons/generic-card.svg +4 -4
- package/src/assets/icons/graph-stats-1.svg +3 -3
- package/src/assets/icons/graph-stats-ascend-2.svg +3 -3
- package/src/assets/icons/graph-stats-circle-1-1.svg +4 -4
- package/src/assets/icons/graph-stats-circle-1.svg +4 -4
- package/src/assets/icons/graph-stats-descend-2.svg +4 -4
- package/src/assets/icons/headphones-customer-support-1.svg +3 -3
- package/src/assets/icons/headphones-customer-support-2.svg +3 -3
- package/src/assets/icons/headphones-customer-support-human-1-1.svg +4 -4
- package/src/assets/icons/hierarchy-3-2.svg +3 -3
- package/src/assets/icons/hierarchy-3-3.svg +3 -3
- package/src/assets/icons/house-1-1.svg +4 -4
- package/src/assets/icons/house-2-2.svg +3 -3
- package/src/assets/icons/icon-script.py +27 -27
- package/src/assets/icons/indicator.svg +3 -3
- package/src/assets/icons/information-circle-4.svg +3 -3
- package/src/assets/icons/interaction-time.svg +5 -5
- package/src/assets/icons/jcb.svg +21 -21
- package/src/assets/icons/keyboard-arrow-down-1.svg +3 -3
- package/src/assets/icons/keyboard-arrow-left-1.svg +3 -3
- package/src/assets/icons/keyboard-arrow-right-1.svg +3 -3
- package/src/assets/icons/keyboard-return-1-1.svg +3 -3
- package/src/assets/icons/keyboard-return-1.svg +4 -4
- package/src/assets/icons/layout-dashboard-1.svg +6 -6
- package/src/assets/icons/layout-dashboard-2.svg +6 -6
- package/src/assets/icons/layout-module-1-2.svg +6 -6
- package/src/assets/icons/loading-circle-1.svg +19 -19
- package/src/assets/icons/lock-2-1.svg +4 -4
- package/src/assets/icons/lock-2-2.svg +3 -3
- package/src/assets/icons/lock-unlock-1-1.svg +4 -4
- package/src/assets/icons/logout-1-1.svg +4 -4
- package/src/assets/icons/mastercard.svg +6 -6
- package/src/assets/icons/messages-bubble-1.svg +3 -3
- package/src/assets/icons/messages-bubble-3.svg +3 -3
- package/src/assets/icons/messages-bubble-4.svg +3 -3
- package/src/assets/icons/messages.svg +3 -3
- package/src/assets/icons/messaging-we-chat-2.svg +4 -4
- package/src/assets/icons/messaging-we-chat-3.svg +8 -8
- package/src/assets/icons/messaging-whatsapp-1.svg +4 -4
- package/src/assets/icons/microphone.svg +4 -4
- package/src/assets/icons/move-expand-vertical-1.svg +3 -3
- package/src/assets/icons/moveExpandVertical1.vue +17 -0
- package/src/assets/icons/navigation-menu-vertical-1.svg +5 -5
- package/src/assets/icons/notes-1.svg +7 -7
- package/src/assets/icons/office-file-pdf-1-1.svg +6 -6
- package/src/assets/icons/paginate-filter-text-1.svg +7 -7
- package/src/assets/icons/pencil-write-1.svg +4 -4
- package/src/assets/icons/phone-3.svg +3 -3
- package/src/assets/icons/phone-4.svg +3 -3
- package/src/assets/icons/phone-charger-1.svg +3 -3
- package/src/assets/icons/photography-equipment-bag-1.svg +5 -5
- package/src/assets/icons/pie-line-graph-1.svg +7 -7
- package/src/assets/icons/preferences.svg +11 -11
- package/src/assets/icons/question-circle-1.svg +5 -5
- package/src/assets/icons/question-circle-2.svg +3 -3
- package/src/assets/icons/radio-default.svg +3 -3
- package/src/assets/icons/radio-disable.svg +3 -3
- package/src/assets/icons/radio-selected.svg +4 -4
- package/src/assets/icons/rating-star-1-1.svg +3 -3
- package/src/assets/icons/rating-star-1.svg +3 -3
- package/src/assets/icons/read-email-at-1.svg +10 -10
- package/src/assets/icons/response-time.svg +12 -12
- package/src/assets/icons/science-fiction-robot-1.svg +8 -8
- package/src/assets/icons/science-fiction-robot-2.svg +5 -5
- package/src/assets/icons/script-to-convert-svg-to-vue.js +20 -0
- package/src/assets/icons/search-1.svg +3 -3
- package/src/assets/icons/send-email-3-1.svg +3 -3
- package/src/assets/icons/single-neutral-2.svg +4 -4
- package/src/assets/icons/single-neutral-actions-1.svg +4 -4
- package/src/assets/icons/social-instagram-1.svg +3 -3
- package/src/assets/icons/social-media-facebook-1.svg +3 -3
- package/src/assets/icons/social-media-google-1.svg +6 -6
- package/src/assets/icons/sort-asc.svg +4 -4
- package/src/assets/icons/sort-default.svg +4 -4
- package/src/assets/icons/sort-desc.svg +4 -4
- package/src/assets/icons/study-light-idea-1.svg +10 -10
- package/src/assets/icons/subtract-1.svg +3 -3
- package/src/assets/icons/subtract-circle-1.svg +4 -4
- package/src/assets/icons/switch-default-disabled.svg +4 -4
- package/src/assets/icons/switch-default.svg +11 -11
- package/src/assets/icons/switch-selected-disabled.svg +4 -4
- package/src/assets/icons/switch-selected.svg +11 -11
- package/src/assets/icons/synchronize-arrow-clock-4.svg +4 -4
- package/src/assets/icons/synchronize-arrow-clock-5.svg +4 -4
- package/src/assets/icons/task-checklist-1.svg +4 -4
- package/src/assets/icons/task-list-clock-1.svg +9 -9
- package/src/assets/icons/text-bold.svg +3 -3
- package/src/assets/icons/text-center.svg +7 -7
- package/src/assets/icons/text-italic.svg +3 -3
- package/src/assets/icons/text-justified.svg +7 -7
- package/src/assets/icons/text-left.svg +7 -7
- package/src/assets/icons/text-right.svg +7 -7
- package/src/assets/icons/text-underline.svg +4 -4
- package/src/assets/icons/ticket-1.svg +9 -9
- package/src/assets/icons/ticket-2.svg +4 -4
- package/src/assets/icons/time-clock-circle-1.svg +4 -4
- package/src/assets/icons/transfer-message.svg +4 -4
- package/src/assets/icons/translate-1.svg +8 -8
- package/src/assets/icons/translate-2.svg +8 -8
- package/src/assets/icons/typing-1.svg +4 -4
- package/src/assets/icons/unionpay.svg +7 -7
- package/src/assets/icons/unordered-list.svg +8 -8
- package/src/assets/icons/upload-bottom-1.svg +4 -4
- package/src/assets/icons/video-file-mp4-1.svg +6 -6
- package/src/assets/icons/view-1-1.svg +4 -4
- package/src/assets/icons/view-off-1.svg +7 -7
- package/src/assets/icons/vip-crown-queen-2.svg +4 -4
- package/src/assets/icons/visa.svg +8 -8
- package/src/assets/img/flag/en.svg +28 -28
- package/src/assets/img/flag/pt-br.svg +21 -21
- package/src/assets/scss/colors.scss +241 -241
- package/src/assets/scss/fonts.scss +123 -123
- package/src/assets/scss/grid.scss +51 -51
- package/src/assets/scss/spacing.scss +103 -103
- package/src/assets/scss/unnnic.scss +10 -10
- package/src/components/Accordion/Accordion.vue +17 -10
- package/src/components/Alert/Alert.vue +73 -53
- package/src/components/Alert/AlertCaller.vue +1 -1
- package/src/components/Alert/Version1dot1.vue +196 -77
- package/src/components/AudioRecorder/AudioHandler.vue +16 -18
- package/src/components/AudioRecorder/AudioPlayer.vue +47 -7
- package/src/components/AudioRecorder/AudioRecorder.vue +47 -31
- package/src/components/AvatarIcon/AvatarIcon.vue +33 -16
- package/src/components/Banner/Banner.vue +1 -2
- package/src/components/Banner/InfoBanner.vue +5 -5
- package/src/components/Breadcrumb/Breadcrumb.vue +13 -15
- package/src/components/Button/Button.vue +174 -99
- package/src/components/Button/ButtonIcon.vue +13 -7
- package/src/components/Card/AccountCard.vue +3 -3
- package/src/components/Card/BlankCard.vue +11 -9
- package/src/components/Card/Card.vue +62 -35
- package/src/components/Card/CardCompany.vue +45 -22
- package/src/components/Card/CardData.vue +11 -5
- package/src/components/Card/CardStatusesContainer.vue +45 -14
- package/src/components/Card/ContentCard.vue +15 -5
- package/src/components/Card/DashCard.vue +8 -5
- package/src/components/Card/DefaultCard.vue +11 -5
- package/src/components/Card/MarketplaceCard.vue +19 -6
- package/src/components/Card/StatusCard.vue +12 -3
- package/src/components/Card/TitleCard.vue +9 -5
- package/src/components/CardImage/CardImage.vue +48 -26
- package/src/components/CardInformation/CardInformation.vue +6 -6
- package/src/components/CardNumber/CardNumber.vue +1 -1
- package/src/components/CardProject/CardProject.vue +31 -21
- package/src/components/Carousel/Carousel.vue +13 -15
- package/src/components/Carousel/TagCarousel.vue +27 -16
- package/src/components/ChartBar/ChartBar.vue +101 -64
- package/src/components/ChartLine/ChartLine.vue +64 -40
- package/src/components/ChartMultiLine/ChartMultiLine.vue +328 -0
- package/src/components/ChartMultiLine/Line/Line.vue +170 -0
- package/src/components/ChartRainbow/ChartRainbow.vue +87 -46
- package/src/components/ChatText/ChatText.vue +41 -15
- package/src/components/ChatsContact/ChatsContact.vue +332 -0
- package/src/components/ChatsDashboardTagLive/ChatsDashboardTagLive.vue +82 -0
- package/src/components/ChatsHeader/ChatsHeader.vue +320 -0
- package/src/components/ChatsMessage/ChatsMessage.vue +318 -0
- package/src/components/ChatsMessage/ChatsMessageStatusBackdrop.vue +78 -0
- package/src/components/ChatsMessage/ChatsMessageText.vue +80 -0
- package/src/components/{NavbarChats/NavbarChats.vue → ChatsNavbar/ChatsNavbar.vue} +30 -25
- package/src/components/ChatsUserAvatar/ChatsUserAvatar.vue +140 -0
- package/src/components/Checkbox/Checkbox.vue +14 -12
- package/src/components/CircleProgressBar/CircleProgressBar.vue +7 -3
- package/src/components/Collapse/Collapse.vue +141 -0
- package/src/components/DataArea/DataArea.vue +6 -3
- package/src/components/DateFilter/DateFilter.vue +9 -5
- package/src/components/DatePicker/DatePicker.vue +133 -76
- package/src/components/Dropdown/Dropdown.vue +66 -54
- package/src/components/Dropdown/DropdownItem.vue +15 -17
- package/src/components/Dropdown/DropdownSkeleton.vue +15 -8
- package/src/components/Dropdown/LanguageSelect.vue +56 -21
- package/src/components/EmojiPicker/EmojiPicker.vue +83 -0
- package/src/components/Flag.vue +2 -2
- package/src/components/FormElement/FormElement.vue +44 -4
- package/src/components/Icon/OldIconsMap.json +97 -0
- package/src/components/Icon.vue +228 -133
- package/src/components/IconLoading/IconLoading.vue +48 -0
- package/src/components/ImportCard/ImportCard.vue +36 -15
- package/src/components/Indicator/Indicator.vue +4 -2
- package/src/components/Input/BaseInput.vue +9 -22
- package/src/components/Input/Input.vue +30 -26
- package/src/components/Input/TextInput.vue +33 -31
- package/src/components/InputDatePicker/InputDatePicker.vue +38 -22
- package/src/components/Label/Label.vue +1 -1
- package/src/components/Modal/CallModal.vue +1 -1
- package/src/components/Modal/Modal.vue +62 -19
- package/src/components/ModalUpload/ModalUpload.vue +19 -16
- package/src/components/MoodRating/MoodRating.vue +36 -21
- package/src/components/MultiSelect/MultiSelect.vue +48 -25
- package/src/components/Pagination/Pagination.vue +22 -15
- package/src/components/ProgressBar/ProgressBar.vue +30 -17
- package/src/components/Radio/Radio.vue +45 -65
- package/src/components/Select/SelectItem.vue +49 -43
- package/src/components/SelectSmart/SelectSmart.vue +133 -70
- package/src/components/SelectSmart/SelectSmartMultipleHeader.vue +18 -4
- package/src/components/SelectSmart/SelectSmartOption.vue +22 -15
- package/src/components/Sidebar/Sidebar.vue +62 -59
- package/src/components/Sidebar/SidebarItem.vue +47 -36
- package/src/components/Sidebar/SidebarMenu.vue +16 -16
- package/src/components/Sidebar/SidebarPrimary.vue +79 -45
- package/src/components/SkeletonLoading/SkeletonLoading.vue +73 -60
- package/src/components/SkeletonLoading/skeletonTheme.vue +30 -19
- package/src/components/Slider/Slider.vue +25 -12
- package/src/components/StarRating/StarRating.vue +9 -5
- package/src/components/Switch/Switch.vue +23 -16
- package/src/components/Tab/Tab.vue +6 -3
- package/src/components/Table/Table.vue +14 -5
- package/src/components/Table/TableRow.vue +5 -4
- package/src/components/TabsExpanded/TabsExpanded.vue +29 -16
- package/src/components/Tag/BrandTag.vue +7 -4
- package/src/components/Tag/DefaultTag.vue +39 -41
- package/src/components/Tag/IndicatorTag.vue +9 -6
- package/src/components/Tag/Tag.vue +16 -20
- package/src/components/TextArea/TextArea.vue +22 -8
- package/src/components/ToolTip/ToolTip.vue +82 -64
- package/src/components/TransitionRipple/TransitionRipple.vue +126 -0
- package/src/components/UploadArea/UploadArea.vue +31 -14
- package/src/components/config.js +0 -1
- package/src/components/grid/Grid.vue +16 -11
- 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/index.js +48 -32
- package/src/index.js +10 -0
- package/src/locales/en.json +15 -19
- package/src/locales/es.json +15 -19
- package/src/locales/pt_br.json +15 -19
- package/src/main.js +5 -10
- package/src/mixins/i18n.js +60 -0
- package/src/stories/Accordion.stories.js +9 -4
- package/src/stories/Alert.stories.js +79 -4
- package/src/stories/AvatarIcon.stories.js +28 -12
- package/src/stories/Banner.stories.js +28 -21
- package/src/stories/Breadcrumb.stories.js +10 -10
- package/src/stories/Button.stories.js +112 -38
- package/src/stories/ButtonIcon.stories.js +4 -13
- package/src/stories/Card.stories.js +126 -91
- package/src/stories/CardCompany.stories.js +50 -32
- package/src/stories/CardData.stories.js +2 -1
- package/src/stories/CardImage.stories.js +15 -12
- package/src/stories/CardNumber.stories.js +4 -25
- package/src/stories/CardProject.stories.js +1 -1
- package/src/stories/Carousel.stories.js +4 -3
- package/src/stories/ChartBar.stories.js +68 -51
- package/src/stories/ChartLine.stories.js +32 -23
- package/src/stories/ChartMultiLine.stories.js +59 -0
- package/src/stories/ChartRainbow.stories.js +8 -25
- package/src/stories/ChatsContact.stories.js +90 -0
- package/src/stories/ChatsDashboardTagLive.stories.js +24 -0
- package/src/stories/ChatsHeader.stories.js +93 -0
- package/src/stories/ChatsMessage.stories.js +246 -0
- package/src/stories/ChatsNavbar.stories.js +65 -0
- package/src/stories/ChatsUserAvatar.stories.js +35 -0
- package/src/stories/Checkbox.stories.js +24 -17
- package/src/stories/CircleProgressBar.stories.js +1 -7
- package/src/stories/Collapse.stories.js +97 -0
- package/src/stories/Comment.stories.js +13 -10
- package/src/stories/DataArea.stories.js +22 -18
- package/src/stories/DatePicker.stories.js +28 -21
- package/src/stories/Dropdown.stories.js +8 -2
- package/src/stories/EmojiPicker.stories.js +59 -0
- package/src/stories/Grid.stories.js +6 -1
- package/src/stories/Icon.stories.js +4 -13
- package/src/stories/IconLoading.stories.js +126 -0
- package/src/stories/ImportCard.stories.js +6 -1
- package/src/stories/Input.stories.js +13 -7
- package/src/stories/Introduction.mdx +196 -0
- package/src/stories/Label.stories.js +4 -9
- package/src/stories/LanguageSelect.stories.js +3 -1
- package/src/stories/Modal.stories.js +22 -5
- package/src/stories/ModalUpload.stories.js +17 -21
- package/src/stories/MoodRating.stories.js +5 -4
- package/src/stories/MultiSelect.stories.js +2 -1
- package/src/stories/Pagination.stories.js +19 -5
- package/src/stories/ProgressBar.stories.js +1 -1
- package/src/stories/Radio.stories.js +6 -4
- package/src/stories/SelectSmart.mdx +138 -0
- package/src/stories/SelectSmart.stories.js +144 -117
- package/src/stories/Sidebar.stories.js +3 -2
- package/src/stories/SidebarPrimary.stories.js +54 -40
- package/src/stories/SkeletonLoading.stories.js +15 -4
- package/src/stories/Slider.stories.js +6 -8
- package/src/stories/StarRating.stories.js +6 -9
- package/src/stories/Switch.stories.js +2 -1
- package/src/stories/Table.stories.js +1 -1
- package/src/stories/TabsExpanded.stories.js +30 -27
- package/src/stories/Tag.stories.js +23 -24
- package/src/stories/TextArea.stories.js +2 -0
- package/src/stories/ToolTip.stories.js +10 -13
- package/src/stories/TransitionRipple.stories.js +34 -0
- package/src/stories/UploadArea.stories.js +22 -31
- 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/videos/weni.mp4 +0 -0
- package/src/utils/call.js +37 -14
- package/src/utils/colorTokens.js +2 -0
- package/src/utils/icons.js +352 -353
- package/src/utils/plugins/i18n.js +2 -7
- package/.eslintrc.js +0 -20
- package/babel.config.js +0 -16
- package/dist/demo.html +0 -10
- package/dist/img/u1F601.0f41115c.png +0 -0
- package/dist/img/u1F610.a415c879.png +0 -0
- package/dist/img/u1F625.01b659bc.png +0 -0
- package/dist/img/u1F641.f740da74.png +0 -0
- package/dist/img/u1F645.1ff7ba1e.png +0 -0
- package/dist/scss/colors.scss +0 -241
- package/dist/scss/fonts.scss +0 -123
- package/dist/scss/grid.scss +0 -52
- package/dist/scss/spacing.scss +0 -103
- package/dist/scss/unnnic.scss +0 -10
- package/dist/unnnic.common.js +0 -44493
- package/dist/unnnic.common.js.map +0 -1
- package/dist/unnnic.css +0 -1
- package/dist/unnnic.umd.js.map +0 -1
- package/dist/unnnic.umd.min.js +0 -292
- package/dist/unnnic.umd.min.js.map +0 -1
- package/jest.config.js +0 -3
- package/package-lock.json +0 -60419
- package/public/index.html +0 -17
- package/src/assets/logo.png +0 -0
- package/src/components/AutocompleteSelect/AutocompleteSelect.vue +0 -338
- package/src/components/CardFlow/CardFlow.vue +0 -175
- package/src/components/Input/Autocomplete.vue +0 -325
- package/src/components/InputNext/InputNext.vue +0 -260
- package/src/components/ModalNext/ModalNext.vue +0 -396
- package/src/components/Select/Select.vue +0 -409
- package/src/components/SelectListItem/SelectListItem.vue +0 -125
- package/src/components/TextEditor/TextEditor.vue +0 -530
- package/src/stories/Autocomplete.stories.js +0 -55
- package/src/stories/AutocompleteSelect.stories.js +0 -45
- package/src/stories/CardFlow.stories.js +0 -44
- package/src/stories/Colors.stories.mdx +0 -91
- package/src/stories/DropdownSkeleton.stories.js +0 -15
- package/src/stories/Font.stories.mdx +0 -80
- package/src/stories/InputNext.stories.js +0 -109
- package/src/stories/Introduction.stories.mdx +0 -207
- package/src/stories/ModalNext.stories.js +0 -171
- package/src/stories/NavbarChats.stories.js +0 -68
- package/src/stories/Select.stories.js +0 -62
- package/src/stories/SelectListItem.stories.js +0 -63
- package/src/stories/TextEditor.stories.js +0 -80
- package/vue.config.js +0 -26
|
@@ -1,16 +1,21 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="unnnic-date-picker">
|
|
3
3
|
<template v-if="type === 'day'">
|
|
4
|
-
<template
|
|
5
|
-
|
|
4
|
+
<template
|
|
5
|
+
v-for="(openMonth, index) in openMonths"
|
|
6
|
+
:key="openMonth"
|
|
7
|
+
>
|
|
8
|
+
<div class="month-container">
|
|
6
9
|
<div :class="['header', `header--${size}`]">
|
|
7
|
-
<
|
|
10
|
+
<UnnnicButton
|
|
8
11
|
size="small"
|
|
9
|
-
:
|
|
10
|
-
:type="size === 'large' ? 'secondary' : '
|
|
12
|
+
:iconCenter="`arrow-${index === 0 ? 'left' : 'right'}-1-1`"
|
|
13
|
+
:type="size === 'large' ? 'secondary' : 'tertiary'"
|
|
11
14
|
class="button-space"
|
|
12
15
|
:style="{ gridArea: `${index === 0 ? 'left' : 'right'}-button` }"
|
|
13
|
-
@click="
|
|
16
|
+
@click.stop="
|
|
17
|
+
referenceDate = addMonth(referenceDate, index === 0 ? -1 : 1)
|
|
18
|
+
"
|
|
14
19
|
/>
|
|
15
20
|
|
|
16
21
|
<div :class="['label', `label--${size}`]">
|
|
@@ -20,7 +25,13 @@
|
|
|
20
25
|
</div>
|
|
21
26
|
|
|
22
27
|
<div :class="['days', `days--${size}`]">
|
|
23
|
-
<div
|
|
28
|
+
<div
|
|
29
|
+
v-for="(day, index) in days"
|
|
30
|
+
:key="index"
|
|
31
|
+
class="name"
|
|
32
|
+
>
|
|
33
|
+
{{ day }}
|
|
34
|
+
</div>
|
|
24
35
|
<div
|
|
25
36
|
v-for="(date, index) in getDatesOfTheMonth(openMonth)"
|
|
26
37
|
:key="`${openMonth}-${index}`"
|
|
@@ -33,25 +44,30 @@
|
|
|
33
44
|
left: date.properties.includes('left-highlighted'),
|
|
34
45
|
right: date.properties.includes('right-highlighted'),
|
|
35
46
|
}"
|
|
36
|
-
@click="
|
|
47
|
+
@click="
|
|
48
|
+
date.properties.includes('inside month') && selectDate(date)
|
|
49
|
+
"
|
|
37
50
|
>
|
|
38
51
|
{{ getDate(date) }}
|
|
39
52
|
</div>
|
|
40
53
|
</div>
|
|
41
54
|
</div>
|
|
42
55
|
|
|
43
|
-
<div
|
|
56
|
+
<div class="divider"></div>
|
|
44
57
|
</template>
|
|
45
58
|
</template>
|
|
46
59
|
|
|
47
60
|
<template v-else-if="type === 'month'">
|
|
48
|
-
<template
|
|
49
|
-
|
|
61
|
+
<template
|
|
62
|
+
v-for="openMonth in [referenceDate]"
|
|
63
|
+
:key="openMonth"
|
|
64
|
+
>
|
|
65
|
+
<div class="month-container">
|
|
50
66
|
<div :class="['header', `header--${size}`]">
|
|
51
|
-
<
|
|
67
|
+
<UnnnicButton
|
|
52
68
|
size="small"
|
|
53
|
-
|
|
54
|
-
:type="size === 'large' ? 'secondary' : '
|
|
69
|
+
iconCenter="arrow-left-1-1"
|
|
70
|
+
:type="size === 'large' ? 'secondary' : 'tertiary'"
|
|
55
71
|
class="button-space"
|
|
56
72
|
:style="{ gridArea: 'left-button' }"
|
|
57
73
|
@click="referenceDate = addMonth(referenceDate, -12)"
|
|
@@ -61,10 +77,10 @@
|
|
|
61
77
|
{{ getFullYear(openMonth) }}
|
|
62
78
|
</div>
|
|
63
79
|
|
|
64
|
-
<
|
|
80
|
+
<UnnnicButton
|
|
65
81
|
size="small"
|
|
66
|
-
|
|
67
|
-
:type="size === 'large' ? 'secondary' : '
|
|
82
|
+
iconCenter="arrow-right-1-1"
|
|
83
|
+
:type="size === 'large' ? 'secondary' : 'tertiary'"
|
|
68
84
|
class="button-space"
|
|
69
85
|
:style="{ gridArea: 'right-button' }"
|
|
70
86
|
@click="referenceDate = addMonth(referenceDate, 12)"
|
|
@@ -84,25 +100,30 @@
|
|
|
84
100
|
left: date.properties.includes('left-highlighted'),
|
|
85
101
|
right: date.properties.includes('right-highlighted'),
|
|
86
102
|
}"
|
|
87
|
-
@click="
|
|
103
|
+
@click="
|
|
104
|
+
date.properties.includes('inside month') && selectDate(date)
|
|
105
|
+
"
|
|
88
106
|
>
|
|
89
107
|
{{ months[getMonth(date)].substr(0, 3) }}
|
|
90
108
|
</div>
|
|
91
109
|
</div>
|
|
92
110
|
</div>
|
|
93
111
|
|
|
94
|
-
<div
|
|
112
|
+
<div class="divider"></div>
|
|
95
113
|
</template>
|
|
96
114
|
</template>
|
|
97
115
|
|
|
98
116
|
<template v-else-if="type === 'year'">
|
|
99
|
-
<template
|
|
100
|
-
|
|
117
|
+
<template
|
|
118
|
+
v-for="openMonth in [referenceDate]"
|
|
119
|
+
:key="openMonth"
|
|
120
|
+
>
|
|
121
|
+
<div class="month-container">
|
|
101
122
|
<div :class="['header', `header--${size}`]">
|
|
102
|
-
<
|
|
123
|
+
<UnnnicButton
|
|
103
124
|
size="small"
|
|
104
|
-
|
|
105
|
-
:type="size === 'large' ? 'secondary' : '
|
|
125
|
+
iconCenter="arrow-left-1-1"
|
|
126
|
+
:type="size === 'large' ? 'secondary' : 'tertiary'"
|
|
106
127
|
class="button-space"
|
|
107
128
|
:style="{ gridArea: 'left-button' }"
|
|
108
129
|
@click="referenceDate = addMonth(referenceDate, -12 * 12)"
|
|
@@ -112,10 +133,10 @@
|
|
|
112
133
|
{{ getFullYear(openMonth) }}
|
|
113
134
|
</div>
|
|
114
135
|
|
|
115
|
-
<
|
|
136
|
+
<UnnnicButton
|
|
116
137
|
size="small"
|
|
117
|
-
|
|
118
|
-
:type="size === 'large' ? 'secondary' : '
|
|
138
|
+
iconCenter="arrow-right-1-1"
|
|
139
|
+
:type="size === 'large' ? 'secondary' : 'tertiary'"
|
|
119
140
|
class="button-space"
|
|
120
141
|
:style="{ gridArea: 'right-button' }"
|
|
121
142
|
@click="referenceDate = addMonth(referenceDate, 12 * 12)"
|
|
@@ -135,18 +156,23 @@
|
|
|
135
156
|
left: date.properties.includes('left-highlighted'),
|
|
136
157
|
right: date.properties.includes('right-highlighted'),
|
|
137
158
|
}"
|
|
138
|
-
@click="
|
|
159
|
+
@click="
|
|
160
|
+
date.properties.includes('inside month') && selectDate(date)
|
|
161
|
+
"
|
|
139
162
|
>
|
|
140
163
|
{{ date.date }}
|
|
141
164
|
</div>
|
|
142
165
|
</div>
|
|
143
166
|
</div>
|
|
144
167
|
|
|
145
|
-
<div
|
|
168
|
+
<div class="divider"></div>
|
|
146
169
|
</template>
|
|
147
170
|
</template>
|
|
148
171
|
|
|
149
|
-
<div
|
|
172
|
+
<div
|
|
173
|
+
v-if="size !== 'small'"
|
|
174
|
+
class="options-container"
|
|
175
|
+
>
|
|
150
176
|
<div class="options">
|
|
151
177
|
<div
|
|
152
178
|
:class="['option', { selected: optionSelected === option.id }]"
|
|
@@ -159,14 +185,14 @@
|
|
|
159
185
|
</div>
|
|
160
186
|
|
|
161
187
|
<div class="actions">
|
|
162
|
-
<
|
|
188
|
+
<UnnnicButton
|
|
163
189
|
size="small"
|
|
164
190
|
:text="clearLabel"
|
|
165
|
-
type="
|
|
191
|
+
type="tertiary"
|
|
166
192
|
@click="clear"
|
|
167
193
|
/>
|
|
168
194
|
|
|
169
|
-
<
|
|
195
|
+
<UnnnicButton
|
|
170
196
|
size="small"
|
|
171
197
|
:text="actionLabel"
|
|
172
198
|
type="secondary"
|
|
@@ -249,25 +275,32 @@ export default {
|
|
|
249
275
|
options: {
|
|
250
276
|
type: Array,
|
|
251
277
|
default() {
|
|
252
|
-
return [
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
278
|
+
return [
|
|
279
|
+
{
|
|
280
|
+
name: 'Últimos 7 dias',
|
|
281
|
+
id: 'last-7-days',
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
name: 'Últimos 14 dias',
|
|
285
|
+
id: 'last-14-days',
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
name: 'Últimos 30 dias',
|
|
289
|
+
id: 'last-30-days',
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
name: 'Últimos 12 meses',
|
|
293
|
+
id: 'last-12-months',
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
name: 'Mês Atual',
|
|
297
|
+
id: 'current-month',
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
name: 'Personalizar',
|
|
301
|
+
id: 'custom',
|
|
302
|
+
},
|
|
303
|
+
];
|
|
271
304
|
},
|
|
272
305
|
},
|
|
273
306
|
},
|
|
@@ -286,10 +319,7 @@ export default {
|
|
|
286
319
|
|
|
287
320
|
computed: {
|
|
288
321
|
openMonths() {
|
|
289
|
-
return [
|
|
290
|
-
this.referenceDate,
|
|
291
|
-
this.addMonth(this.referenceDate, 1),
|
|
292
|
-
];
|
|
322
|
+
return [this.referenceDate, this.addMonth(this.referenceDate, 1)];
|
|
293
323
|
},
|
|
294
324
|
|
|
295
325
|
value() {
|
|
@@ -302,7 +332,7 @@ export default {
|
|
|
302
332
|
|
|
303
333
|
watch: {
|
|
304
334
|
value({ startDate, endDate }) {
|
|
305
|
-
this.optionSelected =
|
|
335
|
+
this.optionSelected = startDate || endDate ? 'custom' : '';
|
|
306
336
|
|
|
307
337
|
this.$emit('change', this.value);
|
|
308
338
|
},
|
|
@@ -348,14 +378,20 @@ export default {
|
|
|
348
378
|
isDateBetween(internalDate) {
|
|
349
379
|
if (this.startDate && this.endDate) {
|
|
350
380
|
if (
|
|
351
|
-
internalDate >= this.stringToTime(this.startDate)
|
|
352
|
-
|
|
381
|
+
internalDate >= this.stringToTime(this.startDate) &&
|
|
382
|
+
internalDate <= this.stringToTime(this.endDate)
|
|
353
383
|
) {
|
|
354
384
|
return true;
|
|
355
385
|
}
|
|
356
|
-
} else if (
|
|
386
|
+
} else if (
|
|
387
|
+
this.startDate &&
|
|
388
|
+
internalDate >= this.stringToTime(this.startDate)
|
|
389
|
+
) {
|
|
357
390
|
return true;
|
|
358
|
-
} else if (
|
|
391
|
+
} else if (
|
|
392
|
+
this.endDate &&
|
|
393
|
+
internalDate <= this.stringToTime(this.endDate)
|
|
394
|
+
) {
|
|
359
395
|
return true;
|
|
360
396
|
}
|
|
361
397
|
|
|
@@ -369,14 +405,17 @@ export default {
|
|
|
369
405
|
|
|
370
406
|
if (this.startDate && this.endDate) {
|
|
371
407
|
if (
|
|
372
|
-
internalDate >= startDateTime
|
|
373
|
-
|
|
408
|
+
internalDate >= startDateTime &&
|
|
409
|
+
internalDate <= this.stringToTime(this.endDate)
|
|
374
410
|
) {
|
|
375
411
|
return true;
|
|
376
412
|
}
|
|
377
413
|
} else if (this.startDate && internalDate >= startDateTime) {
|
|
378
414
|
return true;
|
|
379
|
-
} else if (
|
|
415
|
+
} else if (
|
|
416
|
+
this.endDate &&
|
|
417
|
+
internalDate <= this.stringToTime(this.endDate)
|
|
418
|
+
) {
|
|
380
419
|
return true;
|
|
381
420
|
}
|
|
382
421
|
|
|
@@ -391,14 +430,17 @@ export default {
|
|
|
391
430
|
|
|
392
431
|
if (this.startDate && this.endDate) {
|
|
393
432
|
if (
|
|
394
|
-
internalDate >= startDateTime
|
|
395
|
-
|
|
433
|
+
internalDate >= startDateTime &&
|
|
434
|
+
internalDate <= this.stringToTime(this.endDate)
|
|
396
435
|
) {
|
|
397
436
|
return true;
|
|
398
437
|
}
|
|
399
438
|
} else if (this.startDate && internalDate >= startDateTime) {
|
|
400
439
|
return true;
|
|
401
|
-
} else if (
|
|
440
|
+
} else if (
|
|
441
|
+
this.endDate &&
|
|
442
|
+
internalDate <= this.stringToTime(this.endDate)
|
|
443
|
+
) {
|
|
402
444
|
return true;
|
|
403
445
|
}
|
|
404
446
|
|
|
@@ -436,7 +478,10 @@ export default {
|
|
|
436
478
|
properties.push('right-highlighted');
|
|
437
479
|
}
|
|
438
480
|
|
|
439
|
-
if (
|
|
481
|
+
if (
|
|
482
|
+
properties.includes('left-highlighted') ||
|
|
483
|
+
properties.includes('right-highlighted')
|
|
484
|
+
) {
|
|
440
485
|
properties.push('highlighted');
|
|
441
486
|
}
|
|
442
487
|
}
|
|
@@ -491,12 +536,17 @@ export default {
|
|
|
491
536
|
properties.push('right-highlighted');
|
|
492
537
|
}
|
|
493
538
|
|
|
494
|
-
if (
|
|
539
|
+
if (
|
|
540
|
+
properties.includes('left-highlighted') ||
|
|
541
|
+
properties.includes('right-highlighted')
|
|
542
|
+
) {
|
|
495
543
|
properties.push('highlighted');
|
|
496
544
|
}
|
|
497
545
|
}
|
|
498
546
|
|
|
499
|
-
if (
|
|
547
|
+
if (
|
|
548
|
+
this.dateToStringMonth(date) === this.dateToStringMonth(new Date())
|
|
549
|
+
) {
|
|
500
550
|
properties.push('today');
|
|
501
551
|
}
|
|
502
552
|
|
|
@@ -546,7 +596,10 @@ export default {
|
|
|
546
596
|
properties.push('right-highlighted');
|
|
547
597
|
}
|
|
548
598
|
|
|
549
|
-
if (
|
|
599
|
+
if (
|
|
600
|
+
properties.includes('left-highlighted') ||
|
|
601
|
+
properties.includes('right-highlighted')
|
|
602
|
+
) {
|
|
550
603
|
properties.push('highlighted');
|
|
551
604
|
}
|
|
552
605
|
}
|
|
@@ -626,7 +679,9 @@ export default {
|
|
|
626
679
|
|
|
627
680
|
if (this.endDate) {
|
|
628
681
|
const secondMonth = this.addMonth(this.referenceDate, 1);
|
|
629
|
-
const firstDateOfEndDate = `${
|
|
682
|
+
const firstDateOfEndDate = `${
|
|
683
|
+
this.getMonth(this.endDate) + 1
|
|
684
|
+
} 1 ${this.getFullYear(this.endDate)}`;
|
|
630
685
|
|
|
631
686
|
if (![this.referenceDate, secondMonth].includes(firstDateOfEndDate)) {
|
|
632
687
|
this.referenceDate = firstDateOfEndDate;
|
|
@@ -642,7 +697,7 @@ export default {
|
|
|
642
697
|
</script>
|
|
643
698
|
|
|
644
699
|
<style lang="scss" scoped>
|
|
645
|
-
@import
|
|
700
|
+
@import '../../assets/scss/unnnic.scss';
|
|
646
701
|
|
|
647
702
|
.unnnic-date-picker {
|
|
648
703
|
display: inline-flex;
|
|
@@ -661,7 +716,7 @@ export default {
|
|
|
661
716
|
.header {
|
|
662
717
|
display: grid;
|
|
663
718
|
align-items: center;
|
|
664
|
-
grid-template-areas:
|
|
719
|
+
grid-template-areas: 'left-button label right-button';
|
|
665
720
|
|
|
666
721
|
&--small {
|
|
667
722
|
grid-template-columns: 32px auto 32px;
|
|
@@ -713,7 +768,8 @@ export default {
|
|
|
713
768
|
line-height: 32px;
|
|
714
769
|
}
|
|
715
770
|
|
|
716
|
-
&.months--small,
|
|
771
|
+
&.months--small,
|
|
772
|
+
&.months--large {
|
|
717
773
|
grid-template-columns: repeat(3, 4.75 * $unnnic-font-size);
|
|
718
774
|
grid-template-rows: repeat(4, 3.3125 * $unnnic-font-size);
|
|
719
775
|
font-size: $unnnic-font-size-body-md;
|
|
@@ -784,7 +840,8 @@ export default {
|
|
|
784
840
|
user-select: none;
|
|
785
841
|
cursor: pointer;
|
|
786
842
|
|
|
787
|
-
&:hover,
|
|
843
|
+
&:hover,
|
|
844
|
+
&.selected {
|
|
788
845
|
background-color: $unnnic-color-background-sky;
|
|
789
846
|
}
|
|
790
847
|
|
|
@@ -1,23 +1,27 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
2
|
+
<div
|
|
3
|
+
class="unnnic-dropdown"
|
|
4
|
+
@click.stop="onClickTrigger"
|
|
5
|
+
>
|
|
6
|
+
<div class="unnnic-dropdown__trigger">
|
|
7
|
+
<slot name="trigger" />
|
|
8
|
+
<div
|
|
9
|
+
v-if="active"
|
|
10
|
+
:class="[
|
|
11
|
+
'unnnic-dropdown__content',
|
|
12
|
+
active ? '' : 'unnnic-dropdown__content--hidden',
|
|
13
|
+
`unnnic-dropdown__content__position-${position}`,
|
|
14
|
+
]"
|
|
15
|
+
v-on-click-outside="onClickOutside"
|
|
16
|
+
>
|
|
17
|
+
<slot />
|
|
18
|
+
</div>
|
|
16
19
|
</div>
|
|
20
|
+
</div>
|
|
17
21
|
</template>
|
|
18
22
|
|
|
19
23
|
<script>
|
|
20
|
-
import
|
|
24
|
+
import { vOnClickOutside } from '@vueuse/components';
|
|
21
25
|
|
|
22
26
|
export default {
|
|
23
27
|
name: 'unnnicDropdown',
|
|
@@ -30,7 +34,15 @@ export default {
|
|
|
30
34
|
type: String,
|
|
31
35
|
default: 'bottom-left',
|
|
32
36
|
validator(value) {
|
|
33
|
-
return
|
|
37
|
+
return (
|
|
38
|
+
[
|
|
39
|
+
'top-left',
|
|
40
|
+
'none',
|
|
41
|
+
'bottom-left',
|
|
42
|
+
'bottom-left',
|
|
43
|
+
'bottom-right',
|
|
44
|
+
].indexOf(value) !== -1
|
|
45
|
+
);
|
|
34
46
|
},
|
|
35
47
|
},
|
|
36
48
|
},
|
|
@@ -40,7 +52,7 @@ export default {
|
|
|
40
52
|
};
|
|
41
53
|
},
|
|
42
54
|
directives: {
|
|
43
|
-
|
|
55
|
+
onClickOutside: vOnClickOutside,
|
|
44
56
|
},
|
|
45
57
|
methods: {
|
|
46
58
|
onClickTrigger() {
|
|
@@ -64,46 +76,46 @@ export default {
|
|
|
64
76
|
|
|
65
77
|
<style lang="scss" scoped>
|
|
66
78
|
@import '../../assets/scss/unnnic.scss';
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
79
|
+
.unnnic-dropdown {
|
|
80
|
+
&__trigger {
|
|
81
|
+
position: relative;
|
|
82
|
+
display: inline-block;
|
|
83
|
+
}
|
|
72
84
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
85
|
+
&__content {
|
|
86
|
+
background-color: $unnnic-color-neutral-snow;
|
|
87
|
+
box-shadow: $unnnic-shadow-level-near;
|
|
88
|
+
border-radius: $unnnic-border-radius-sm;
|
|
89
|
+
position: absolute;
|
|
90
|
+
display: flex;
|
|
91
|
+
flex-direction: column;
|
|
92
|
+
padding: $unnnic-squish-xs;
|
|
93
|
+
z-index: 2;
|
|
94
|
+
&--hidden {
|
|
95
|
+
display: none !important;
|
|
96
|
+
}
|
|
97
|
+
&__position {
|
|
98
|
+
&-top-left {
|
|
99
|
+
bottom: 100%;
|
|
100
|
+
right: 1 * $unnnic-font-size;
|
|
101
|
+
margin-bottom: $unnnic-spacing-stack-xs;
|
|
102
|
+
}
|
|
103
|
+
&-top-right {
|
|
104
|
+
bottom: 100%;
|
|
105
|
+
left: 1 * $unnnic-font-size;
|
|
106
|
+
margin-bottom: $unnnic-inline-xs;
|
|
107
|
+
}
|
|
108
|
+
&-bottom-left {
|
|
109
|
+
margin-top: $unnnic-spacing-stack-xs;
|
|
110
|
+
top: 100%;
|
|
111
|
+
right: 0;
|
|
84
112
|
}
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
margin-bottom: $unnnic-spacing-stack-xs;
|
|
90
|
-
}
|
|
91
|
-
&-top-right {
|
|
92
|
-
bottom: 100%;
|
|
93
|
-
left: 1 * $unnnic-font-size;
|
|
94
|
-
margin-bottom: $unnnic-inline-xs;
|
|
95
|
-
}
|
|
96
|
-
&-bottom-left {
|
|
97
|
-
margin-top: $unnnic-spacing-stack-xs;
|
|
98
|
-
top: 100%;
|
|
99
|
-
right: 0;
|
|
100
|
-
}
|
|
101
|
-
&-bottom-right {
|
|
102
|
-
margin-top: $unnnic-inline-xs;
|
|
103
|
-
top: 100%;
|
|
104
|
-
left: 1 * $unnnic-font-size;
|
|
105
|
-
}
|
|
113
|
+
&-bottom-right {
|
|
114
|
+
margin-top: $unnnic-inline-xs;
|
|
115
|
+
top: 100%;
|
|
116
|
+
left: 1 * $unnnic-font-size;
|
|
106
117
|
}
|
|
107
118
|
}
|
|
108
119
|
}
|
|
120
|
+
}
|
|
109
121
|
</style>
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
<slot />
|
|
6
|
-
</a>
|
|
2
|
+
<a class="unnnic-dropdown-item unnnic--clickable">
|
|
3
|
+
<slot />
|
|
4
|
+
</a>
|
|
7
5
|
</template>
|
|
8
6
|
|
|
9
7
|
<script>
|
|
@@ -14,18 +12,18 @@ export default {
|
|
|
14
12
|
|
|
15
13
|
<style lang="scss">
|
|
16
14
|
@import '../../assets/scss/unnnic.scss';
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
15
|
+
.unnnic-dropdown-item {
|
|
16
|
+
color: $unnnic-color-neutral-dark;
|
|
17
|
+
text-decoration: none;
|
|
18
|
+
font-family: $unnnic-font-family-secondary;
|
|
19
|
+
font-size: $unnnic-font-size-body-md;
|
|
22
20
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
21
|
+
+ .unnnic-dropdown-item::before {
|
|
22
|
+
height: 0;
|
|
23
|
+
content: '';
|
|
24
|
+
display: block;
|
|
25
|
+
border: 1px solid $unnnic-color-neutral-lightest;
|
|
26
|
+
margin: $unnnic-spacing-stack-xs 0;
|
|
30
27
|
}
|
|
28
|
+
}
|
|
31
29
|
</style>
|
|
@@ -1,12 +1,19 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<span
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
<span
|
|
3
|
+
:class="['dropdown', { active }]"
|
|
4
|
+
ref="dropdown"
|
|
5
|
+
>
|
|
6
|
+
<slot> </slot>
|
|
7
|
+
<div
|
|
5
8
|
class="dropdown-data"
|
|
6
9
|
:style="{ position: 'fixed', ...positions }"
|
|
7
10
|
ref="dropdown-data"
|
|
8
11
|
>
|
|
9
|
-
<slot
|
|
12
|
+
<slot
|
|
13
|
+
name="inside"
|
|
14
|
+
:width="`${width}px`"
|
|
15
|
+
:height="`${height}px`"
|
|
16
|
+
></slot>
|
|
10
17
|
</div>
|
|
11
18
|
</span>
|
|
12
19
|
</template>
|
|
@@ -19,7 +26,7 @@ export default {
|
|
|
19
26
|
default: 'automatic',
|
|
20
27
|
},
|
|
21
28
|
|
|
22
|
-
|
|
29
|
+
modelValue: Boolean,
|
|
23
30
|
|
|
24
31
|
position: {
|
|
25
32
|
type: String,
|
|
@@ -49,7 +56,7 @@ export default {
|
|
|
49
56
|
computed: {
|
|
50
57
|
active() {
|
|
51
58
|
if (this.type === 'manual') {
|
|
52
|
-
return this.
|
|
59
|
+
return this.modelValue;
|
|
53
60
|
}
|
|
54
61
|
|
|
55
62
|
return false;
|
|
@@ -117,7 +124,7 @@ export default {
|
|
|
117
124
|
window.addEventListener('resize', this.calculatePosition);
|
|
118
125
|
},
|
|
119
126
|
|
|
120
|
-
|
|
127
|
+
beforeUnmount() {
|
|
121
128
|
window.removeEventListener('scroll', this.calculatePosition);
|
|
122
129
|
window.removeEventListener('resize', this.calculatePosition);
|
|
123
130
|
},
|
|
@@ -145,7 +152,7 @@ export default {
|
|
|
145
152
|
</script>
|
|
146
153
|
|
|
147
154
|
<style lang="scss" scoped>
|
|
148
|
-
@import
|
|
155
|
+
@import '../../assets/scss/unnnic.scss';
|
|
149
156
|
|
|
150
157
|
.dropdown {
|
|
151
158
|
position: relative;
|