eco-vue-js 0.3.67
Sign up to get free protection for your applications and to get access to all the features.
- package/LICENSE +21 -0
- package/README.md +69 -0
- package/dist/_virtual/_plugin-vue_export-helper.js +9 -0
- package/dist/assets/icons/default/IconAdd.svg.js +30 -0
- package/dist/assets/icons/default/IconArrow.svg.js +23 -0
- package/dist/assets/icons/default/IconAvatar.svg.js +20 -0
- package/dist/assets/icons/default/IconBack.svg.js +44 -0
- package/dist/assets/icons/default/IconCancel.svg.js +24 -0
- package/dist/assets/icons/default/IconCheck.svg.js +23 -0
- package/dist/assets/icons/default/IconDanger.svg.js +35 -0
- package/dist/assets/icons/default/IconDojo.svg.js +32 -0
- package/dist/assets/icons/default/IconEdit.svg.js +33 -0
- package/dist/assets/icons/default/IconFalsePositive.svg.js +31 -0
- package/dist/assets/icons/default/IconFeedback.svg.js +44 -0
- package/dist/assets/icons/default/IconFilter.svg.js +25 -0
- package/dist/assets/icons/default/IconInProgress.svg.js +30 -0
- package/dist/assets/icons/default/IconJira.svg.js +20 -0
- package/dist/assets/icons/default/IconLogout.svg.js +20 -0
- package/dist/assets/icons/default/IconMore.svg.js +39 -0
- package/dist/assets/icons/default/IconNotification.svg.js +25 -0
- package/dist/assets/icons/default/IconProfile.svg.js +37 -0
- package/dist/assets/icons/default/IconSearch.svg.js +23 -0
- package/dist/assets/icons/default/IconSettings.svg.js +34 -0
- package/dist/assets/icons/default/IconSort.svg.js +25 -0
- package/dist/assets/icons/default/IconStar.svg.js +24 -0
- package/dist/assets/icons/default/IconSuccess.svg.js +30 -0
- package/dist/assets/icons/default/IconTask.svg.js +39 -0
- package/dist/assets/icons/default/IconTime.svg.js +42 -0
- package/dist/assets/icons/default/IconWarn.svg.js +48 -0
- package/dist/assets/icons/sax/IconAdd.svg.js +26 -0
- package/dist/assets/icons/sax/IconAddCircle.svg.js +26 -0
- package/dist/assets/icons/sax/IconAddSquare.svg.js +26 -0
- package/dist/assets/icons/sax/IconAlarm.svg.js +26 -0
- package/dist/assets/icons/sax/IconArchiveBook.svg.js +36 -0
- package/dist/assets/icons/sax/IconCandle.svg.js +27 -0
- package/dist/assets/icons/sax/IconCelery.svg.js +46 -0
- package/dist/assets/icons/sax/IconChart.svg.js +26 -0
- package/dist/assets/icons/sax/IconCheckCircle.svg.js +34 -0
- package/dist/assets/icons/sax/IconCloseCircle.svg.js +26 -0
- package/dist/assets/icons/sax/IconCopy.svg.js +34 -0
- package/dist/assets/icons/sax/IconCopySuccess.svg.js +42 -0
- package/dist/assets/icons/sax/IconCopyright.svg.js +34 -0
- package/dist/assets/icons/sax/IconDedupe.svg.js +43 -0
- package/dist/assets/icons/sax/IconDojo.svg.js +32 -0
- package/dist/assets/icons/sax/IconEditCircle.svg.js +43 -0
- package/dist/assets/icons/sax/IconElement.svg.js +26 -0
- package/dist/assets/icons/sax/IconExport.svg.js +26 -0
- package/dist/assets/icons/sax/IconEye.svg.js +34 -0
- package/dist/assets/icons/sax/IconEyeSlash.svg.js +42 -0
- package/dist/assets/icons/sax/IconFilter.svg.js +27 -0
- package/dist/assets/icons/sax/IconFinding.svg.js +26 -0
- package/dist/assets/icons/sax/IconFolder.svg.js +25 -0
- package/dist/assets/icons/sax/IconFolderCross.svg.js +34 -0
- package/dist/assets/icons/sax/IconJira.svg.js +26 -0
- package/dist/assets/icons/sax/IconKey.svg.js +35 -0
- package/dist/assets/icons/sax/IconKeySquare.svg.js +43 -0
- package/dist/assets/icons/sax/IconLayer.svg.js +42 -0
- package/dist/assets/icons/sax/IconLink.svg.js +28 -0
- package/dist/assets/icons/sax/IconLinkBold.svg.js +23 -0
- package/dist/assets/icons/sax/IconLinkOutline.svg.js +28 -0
- package/dist/assets/icons/sax/IconLogout.svg.js +50 -0
- package/dist/assets/icons/sax/IconMenu.svg.js +25 -0
- package/dist/assets/icons/sax/IconMinusCircle.svg.js +26 -0
- package/dist/assets/icons/sax/IconNegate.svg.js +34 -0
- package/dist/assets/icons/sax/IconNegativeInfo.svg.js +34 -0
- package/dist/assets/icons/sax/IconNote.svg.js +34 -0
- package/dist/assets/icons/sax/IconOutlineCheckCircle.svg.js +34 -0
- package/dist/assets/icons/sax/IconOutlineCloseCircle.svg.js +26 -0
- package/dist/assets/icons/sax/IconOutlineEdit.svg.js +44 -0
- package/dist/assets/icons/sax/IconOutlineFolderAdd.svg.js +34 -0
- package/dist/assets/icons/sax/IconOutlineRefresh.svg.js +26 -0
- package/dist/assets/icons/sax/IconOutlineStar.svg.js +26 -0
- package/dist/assets/icons/sax/IconPaste.svg.js +44 -0
- package/dist/assets/icons/sax/IconProfile.svg.js +34 -0
- package/dist/assets/icons/sax/IconRadar.svg.js +26 -0
- package/dist/assets/icons/sax/IconRefresh.svg.js +26 -0
- package/dist/assets/icons/sax/IconSearch.svg.js +26 -0
- package/dist/assets/icons/sax/IconSettings.svg.js +36 -0
- package/dist/assets/icons/sax/IconStar.svg.js +26 -0
- package/dist/assets/icons/sax/IconSummary.svg.js +34 -0
- package/dist/assets/icons/sax/IconTag.svg.js +33 -0
- package/dist/assets/icons/sax/IconTask.svg.js +26 -0
- package/dist/assets/icons/sax/IconTime.svg.js +26 -0
- package/dist/assets/icons/sax/IconTrash.svg.js +26 -0
- package/dist/assets/icons/sax/IconUser.svg.js +26 -0
- package/dist/assets/icons/sax/IconVersionControl.svg.js +26 -0
- package/dist/assets/icons/sax/IconWeight.svg.js +34 -0
- package/dist/components/BottomSheet/WBottomSheet.vue.d.ts +29 -0
- package/dist/components/BottomSheet/WBottomSheet.vue.d.ts.map +1 -0
- package/dist/components/BottomSheet/WBottomSheet.vue.js +127 -0
- package/dist/components/BottomSheet/WBottomSheet.vue2.js +5 -0
- package/dist/components/Button/WButton.vue.d.ts +97 -0
- package/dist/components/Button/WButton.vue.d.ts.map +1 -0
- package/dist/components/Button/WButton.vue.js +76 -0
- package/dist/components/Button/WButton.vue2.js +5 -0
- package/dist/components/Button/WButtonAction.vue.d.ts +78 -0
- package/dist/components/Button/WButtonAction.vue.d.ts.map +1 -0
- package/dist/components/Button/WButtonAction.vue.js +64 -0
- package/dist/components/Button/WButtonAction.vue2.js +5 -0
- package/dist/components/Button/WButtonCopy.vue.d.ts +13 -0
- package/dist/components/Button/WButtonCopy.vue.d.ts.map +1 -0
- package/dist/components/Button/WButtonCopy.vue.js +67 -0
- package/dist/components/Button/WButtonCopy.vue2.js +5 -0
- package/dist/components/Button/WButtonGroup.vue.d.ts +78 -0
- package/dist/components/Button/WButtonGroup.vue.d.ts.map +1 -0
- package/dist/components/Button/WButtonGroup.vue.js +59 -0
- package/dist/components/Button/WButtonGroup.vue2.js +5 -0
- package/dist/components/Button/WButtonMore.vue.d.ts +18 -0
- package/dist/components/Button/WButtonMore.vue.d.ts.map +1 -0
- package/dist/components/Button/WButtonMore.vue.js +70 -0
- package/dist/components/Button/WButtonMore.vue2.js +5 -0
- package/dist/components/Button/WButtonMoreItem.vue.d.ts +51 -0
- package/dist/components/Button/WButtonMoreItem.vue.d.ts.map +1 -0
- package/dist/components/Button/WButtonMoreItem.vue.js +35 -0
- package/dist/components/Button/WButtonMoreItem.vue2.js +5 -0
- package/dist/components/Button/WButtonSelection.vue.d.ts +28 -0
- package/dist/components/Button/WButtonSelection.vue.d.ts.map +1 -0
- package/dist/components/Button/WButtonSelection.vue.js +56 -0
- package/dist/components/Button/WButtonSelection.vue2.js +5 -0
- package/dist/components/Button/WButtonSelectionAction.vue.d.ts +37 -0
- package/dist/components/Button/WButtonSelectionAction.vue.d.ts.map +1 -0
- package/dist/components/Button/WButtonSelectionAction.vue.js +43 -0
- package/dist/components/Button/WButtonSelectionAction.vue2.js +5 -0
- package/dist/components/Button/models/semanticTypeStylesMap.d.ts +5 -0
- package/dist/components/Button/models/semanticTypeStylesMap.d.ts.map +1 -0
- package/dist/components/Button/models/semanticTypeStylesMap.js +24 -0
- package/dist/components/Checkbox/WCheckbox.vue.d.ts +72 -0
- package/dist/components/Checkbox/WCheckbox.vue.d.ts.map +1 -0
- package/dist/components/Checkbox/WCheckbox.vue.js +113 -0
- package/dist/components/Checkbox/WCheckbox.vue2.js +5 -0
- package/dist/components/Chip/WChip.vue.d.ts +31 -0
- package/dist/components/Chip/WChip.vue.d.ts.map +1 -0
- package/dist/components/Chip/WChip.vue.js +37 -0
- package/dist/components/Chip/WChip.vue2.js +5 -0
- package/dist/components/ClickOutside/WClickOutside.vue.d.ts +14 -0
- package/dist/components/ClickOutside/WClickOutside.vue.d.ts.map +1 -0
- package/dist/components/ClickOutside/WClickOutside.vue.js +36 -0
- package/dist/components/ClickOutside/WClickOutside.vue2.js +5 -0
- package/dist/components/Counter/WCounter.vue.d.ts +29 -0
- package/dist/components/Counter/WCounter.vue.d.ts.map +1 -0
- package/dist/components/Counter/WCounter.vue.js +38 -0
- package/dist/components/Counter/WCounter.vue2.js +5 -0
- package/dist/components/DatePicker/WDatePicker.vue.d.ts +18 -0
- package/dist/components/DatePicker/WDatePicker.vue.d.ts.map +1 -0
- package/dist/components/DatePicker/WDatePicker.vue.js +131 -0
- package/dist/components/DatePicker/WDatePicker.vue2.js +5 -0
- package/dist/components/DatePicker/WDatePickerSingle.vue.d.ts +23 -0
- package/dist/components/DatePicker/WDatePickerSingle.vue.d.ts.map +1 -0
- package/dist/components/DatePicker/WDatePickerSingle.vue.js +97 -0
- package/dist/components/DatePicker/WDatePickerSingle.vue2.js +5 -0
- package/dist/components/DatePicker/components/CalendarDay.vue.d.ts +64 -0
- package/dist/components/DatePicker/components/CalendarDay.vue.d.ts.map +1 -0
- package/dist/components/DatePicker/components/CalendarDay.vue.js +96 -0
- package/dist/components/DatePicker/components/CalendarDay.vue2.js +5 -0
- package/dist/components/DatePicker/components/CalendarMonth.vue.d.ts +47 -0
- package/dist/components/DatePicker/components/CalendarMonth.vue.d.ts.map +1 -0
- package/dist/components/DatePicker/components/CalendarMonth.vue.js +101 -0
- package/dist/components/DatePicker/components/CalendarMonth.vue2.js +5 -0
- package/dist/components/DatePicker/components/CalendarToggle.vue.d.ts +19 -0
- package/dist/components/DatePicker/components/CalendarToggle.vue.d.ts.map +1 -0
- package/dist/components/DatePicker/components/CalendarToggle.vue.js +48 -0
- package/dist/components/DatePicker/components/CalendarToggle.vue2.js +5 -0
- package/dist/components/DatePicker/components/CalendarValue.vue.d.ts +37 -0
- package/dist/components/DatePicker/components/CalendarValue.vue.d.ts.map +1 -0
- package/dist/components/DatePicker/components/CalendarValue.vue.js +45 -0
- package/dist/components/DatePicker/components/CalendarValue.vue2.js +5 -0
- package/dist/components/DatePicker/components/CalendarWeek.vue.d.ts +50 -0
- package/dist/components/DatePicker/components/CalendarWeek.vue.d.ts.map +1 -0
- package/dist/components/DatePicker/components/CalendarWeek.vue.js +79 -0
- package/dist/components/DatePicker/components/CalendarWeek.vue2.js +5 -0
- package/dist/components/DatePicker/models/types.d.ts +5 -0
- package/dist/components/DatePicker/models/types.d.ts.map +1 -0
- package/dist/components/Dropdown/WDropdown.vue.d.ts +67 -0
- package/dist/components/Dropdown/WDropdown.vue.d.ts.map +1 -0
- package/dist/components/Dropdown/WDropdown.vue.js +116 -0
- package/dist/components/Dropdown/WDropdown.vue2.js +5 -0
- package/dist/components/Dropdown/utils/DropdownStyle.d.ts +21 -0
- package/dist/components/Dropdown/utils/DropdownStyle.d.ts.map +1 -0
- package/dist/components/Dropdown/utils/DropdownStyle.js +141 -0
- package/dist/components/DropdownMenu/WDropdownMenu.vue.d.ts +72 -0
- package/dist/components/DropdownMenu/WDropdownMenu.vue.d.ts.map +1 -0
- package/dist/components/DropdownMenu/WDropdownMenu.vue.js +71 -0
- package/dist/components/DropdownMenu/WDropdownMenu.vue2.js +5 -0
- package/dist/components/Expansion/WExpansion.vue.d.ts +31 -0
- package/dist/components/Expansion/WExpansion.vue.d.ts.map +1 -0
- package/dist/components/Expansion/WExpansion.vue.js +41 -0
- package/dist/components/Expansion/WExpansion.vue2.js +5 -0
- package/dist/components/Expansion/WExpansionItem.vue.d.ts +46 -0
- package/dist/components/Expansion/WExpansionItem.vue.d.ts.map +1 -0
- package/dist/components/Expansion/WExpansionItem.vue.js +68 -0
- package/dist/components/Expansion/WExpansionItem.vue2.js +5 -0
- package/dist/components/FieldWrapper/WFieldWrapper.vue.d.ts +44 -0
- package/dist/components/FieldWrapper/WFieldWrapper.vue.d.ts.map +1 -0
- package/dist/components/FieldWrapper/WFieldWrapper.vue.js +38 -0
- package/dist/components/FieldWrapper/WFieldWrapper.vue2.js +5 -0
- package/dist/components/FilePicker/WFilePicker.vue.d.ts +74 -0
- package/dist/components/FilePicker/WFilePicker.vue.d.ts.map +1 -0
- package/dist/components/FilePicker/WFilePicker.vue.js +207 -0
- package/dist/components/FilePicker/WFilePicker.vue2.js +5 -0
- package/dist/components/FilePicker/components/FilePickerItem.vue.d.ts +29 -0
- package/dist/components/FilePicker/components/FilePickerItem.vue.d.ts.map +1 -0
- package/dist/components/FilePicker/components/FilePickerItem.vue.js +47 -0
- package/dist/components/FilePicker/components/FilePickerItem.vue2.js +5 -0
- package/dist/components/FilePicker/components/FilePickerSvg.vue.d.ts +33 -0
- package/dist/components/FilePicker/components/FilePickerSvg.vue.d.ts.map +1 -0
- package/dist/components/FilePicker/components/FilePickerSvg.vue.js +84 -0
- package/dist/components/FilePicker/components/FilePickerSvg.vue2.js +5 -0
- package/dist/components/Form/WForm.vue.d.ts +38 -0
- package/dist/components/Form/WForm.vue.d.ts.map +1 -0
- package/dist/components/Form/WForm.vue.js +59 -0
- package/dist/components/Form/WForm.vue2.js +5 -0
- package/dist/components/Form/WFormValidator.vue.d.ts +50 -0
- package/dist/components/Form/WFormValidator.vue.d.ts.map +1 -0
- package/dist/components/Form/WFormValidator.vue.js +199 -0
- package/dist/components/Form/WFormValidator.vue2.js +5 -0
- package/dist/components/Form/models/injection.d.ts +9 -0
- package/dist/components/Form/models/injection.d.ts.map +1 -0
- package/dist/components/Form/models/injection.js +9 -0
- package/dist/components/Form/models/utils.d.ts +3 -0
- package/dist/components/Form/models/utils.d.ts.map +1 -0
- package/dist/components/Form/models/utils.js +19 -0
- package/dist/components/Form/use/useFormErrorMessageMap.d.ts +7 -0
- package/dist/components/Form/use/useFormErrorMessageMap.d.ts.map +1 -0
- package/dist/components/Form/use/useFormErrorMessageMap.js +31 -0
- package/dist/components/Form/use/useFormHasChangesMap.d.ts +6 -0
- package/dist/components/Form/use/useFormHasChangesMap.d.ts.map +1 -0
- package/dist/components/Form/use/useFormHasChangesMap.js +27 -0
- package/dist/components/Form/use/useFormInitModelMap.d.ts +6 -0
- package/dist/components/Form/use/useFormInitModelMap.d.ts.map +1 -0
- package/dist/components/Form/use/useFormInitModelMap.js +31 -0
- package/dist/components/Form/use/useFormInvalidateMap.d.ts +8 -0
- package/dist/components/Form/use/useFormInvalidateMap.d.ts.map +1 -0
- package/dist/components/Form/use/useFormInvalidateMap.js +31 -0
- package/dist/components/Form/use/useFormTitleMap.d.ts +6 -0
- package/dist/components/Form/use/useFormTitleMap.d.ts.map +1 -0
- package/dist/components/Form/use/useFormTitleMap.js +29 -0
- package/dist/components/Form/use/useFormValidateMap.d.ts +6 -0
- package/dist/components/Form/use/useFormValidateMap.d.ts.map +1 -0
- package/dist/components/Form/use/useFormValidateMap.js +32 -0
- package/dist/components/HeaderBar/WHeaderBar.vue.d.ts +51 -0
- package/dist/components/HeaderBar/WHeaderBar.vue.d.ts.map +1 -0
- package/dist/components/HeaderBar/WHeaderBar.vue.js +134 -0
- package/dist/components/HeaderBar/WHeaderBar.vue2.js +5 -0
- package/dist/components/ImageViewer/WImageViewer.vue.d.ts +23 -0
- package/dist/components/ImageViewer/WImageViewer.vue.d.ts.map +1 -0
- package/dist/components/ImageViewer/WImageViewer.vue.js +59 -0
- package/dist/components/ImageViewer/WImageViewer.vue2.js +5 -0
- package/dist/components/ImageViewer/components/ImageModal.vue.d.ts +23 -0
- package/dist/components/ImageViewer/components/ImageModal.vue.d.ts.map +1 -0
- package/dist/components/ImageViewer/components/ImageModal.vue.js +5 -0
- package/dist/components/ImageViewer/components/ImageModal.vue2.js +39 -0
- package/dist/components/InfiniteList/WInfiniteList.vue.d.ts +177 -0
- package/dist/components/InfiniteList/WInfiniteList.vue.d.ts.map +1 -0
- package/dist/components/InfiniteList/WInfiniteList.vue.js +122 -0
- package/dist/components/InfiniteList/WInfiniteList.vue2.js +5 -0
- package/dist/components/InfiniteList/WInfiniteListPages.vue.d.ts +171 -0
- package/dist/components/InfiniteList/WInfiniteListPages.vue.d.ts.map +1 -0
- package/dist/components/InfiniteList/WInfiniteListPages.vue.js +229 -0
- package/dist/components/InfiniteList/WInfiniteListPages.vue2.js +5 -0
- package/dist/components/InfiniteList/components/InfiniteListButton.vue.d.ts +7 -0
- package/dist/components/InfiniteList/components/InfiniteListButton.vue.d.ts.map +1 -0
- package/dist/components/InfiniteList/components/InfiniteListButton.vue.js +26 -0
- package/dist/components/InfiniteList/components/InfiniteListButton.vue2.js +5 -0
- package/dist/components/InfiniteList/components/InfiniteListPage.vue.d.ts +183 -0
- package/dist/components/InfiniteList/components/InfiniteListPage.vue.d.ts.map +1 -0
- package/dist/components/InfiniteList/components/InfiniteListPage.vue.js +236 -0
- package/dist/components/InfiniteList/components/InfiniteListPage.vue2.js +5 -0
- package/dist/components/InfiniteList/components/InfiniteListPageSelection.vue.d.ts +57 -0
- package/dist/components/InfiniteList/components/InfiniteListPageSelection.vue.d.ts.map +1 -0
- package/dist/components/InfiniteList/components/InfiniteListPageSelection.vue.js +66 -0
- package/dist/components/InfiniteList/components/InfiniteListPageSelection.vue2.js +5 -0
- package/dist/components/InfiniteList/components/InfiniteListPageTitle.vue.d.ts +21 -0
- package/dist/components/InfiniteList/components/InfiniteListPageTitle.vue.d.ts.map +1 -0
- package/dist/components/InfiniteList/components/InfiniteListPageTitle.vue.js +35 -0
- package/dist/components/InfiniteList/components/InfiniteListPageTitle.vue2.js +5 -0
- package/dist/components/InfiniteList/components/InfiniteListScroll.vue.d.ts +29 -0
- package/dist/components/InfiniteList/components/InfiniteListScroll.vue.d.ts.map +1 -0
- package/dist/components/InfiniteList/components/InfiniteListScroll.vue.js +56 -0
- package/dist/components/InfiniteList/components/InfiniteListScroll.vue2.js +5 -0
- package/dist/components/InfiniteList/models/utils.d.ts +3 -0
- package/dist/components/InfiniteList/models/utils.d.ts.map +1 -0
- package/dist/components/InfiniteList/models/utils.js +13 -0
- package/dist/components/InfiniteList/use/useInfiniteListHeader.d.ts +8 -0
- package/dist/components/InfiniteList/use/useInfiniteListHeader.d.ts.map +1 -0
- package/dist/components/InfiniteList/use/useInfiniteListHeader.js +61 -0
- package/dist/components/InfiniteList/use/useRefetchNextPages.d.ts +5 -0
- package/dist/components/InfiniteList/use/useRefetchNextPages.d.ts.map +1 -0
- package/dist/components/InfiniteList/use/useRefetchNextPages.js +31 -0
- package/dist/components/InfoCard/WInfoCard.vue.d.ts +24 -0
- package/dist/components/InfoCard/WInfoCard.vue.d.ts.map +1 -0
- package/dist/components/InfoCard/WInfoCard.vue.js +30 -0
- package/dist/components/InfoCard/WInfoCard.vue2.js +5 -0
- package/dist/components/InfoCard/WInfoCardNegative.vue.d.ts +27 -0
- package/dist/components/InfoCard/WInfoCardNegative.vue.d.ts.map +1 -0
- package/dist/components/InfoCard/WInfoCardNegative.vue.js +39 -0
- package/dist/components/InfoCard/WInfoCardNegative.vue2.js +5 -0
- package/dist/components/Input/WInput.vue.d.ts +218 -0
- package/dist/components/Input/WInput.vue.d.ts.map +1 -0
- package/dist/components/Input/WInput.vue.js +397 -0
- package/dist/components/Input/WInput.vue2.js +5 -0
- package/dist/components/Input/WInputAsync.vue.d.ts +126 -0
- package/dist/components/Input/WInputAsync.vue.d.ts.map +1 -0
- package/dist/components/Input/WInputAsync.vue.js +195 -0
- package/dist/components/Input/WInputAsync.vue2.js +5 -0
- package/dist/components/Input/WInputDate.vue.d.ts +21 -0
- package/dist/components/Input/WInputDate.vue.d.ts.map +1 -0
- package/dist/components/Input/WInputDate.vue.js +62 -0
- package/dist/components/Input/WInputDate.vue2.js +5 -0
- package/dist/components/Input/WInputOptions.vue.d.ts +172 -0
- package/dist/components/Input/WInputOptions.vue.d.ts.map +1 -0
- package/dist/components/Input/WInputOptions.vue.js +192 -0
- package/dist/components/Input/WInputOptions.vue2.js +5 -0
- package/dist/components/Input/WInputSuggest.vue.d.ts +206 -0
- package/dist/components/Input/WInputSuggest.vue.d.ts.map +1 -0
- package/dist/components/Input/WInputSuggest.vue.js +191 -0
- package/dist/components/Input/WInputSuggest.vue2.js +5 -0
- package/dist/components/Input/components/InputActions.vue.d.ts +62 -0
- package/dist/components/Input/components/InputActions.vue.d.ts.map +1 -0
- package/dist/components/Input/components/InputActions.vue.js +114 -0
- package/dist/components/Input/components/InputActions.vue2.js +5 -0
- package/dist/components/Link/WLink.vue.d.ts +66 -0
- package/dist/components/Link/WLink.vue.d.ts.map +1 -0
- package/dist/components/Link/WLink.vue.js +51 -0
- package/dist/components/Link/WLink.vue2.js +5 -0
- package/dist/components/Link/WLinkArrow.vue.d.ts +27 -0
- package/dist/components/Link/WLinkArrow.vue.d.ts.map +1 -0
- package/dist/components/Link/WLinkArrow.vue.js +29 -0
- package/dist/components/Link/WLinkArrow.vue2.js +5 -0
- package/dist/components/ListCard/WListCard.vue.d.ts +53 -0
- package/dist/components/ListCard/WListCard.vue.d.ts.map +1 -0
- package/dist/components/ListCard/WListCard.vue.js +70 -0
- package/dist/components/ListCard/WListCard.vue2.js +5 -0
- package/dist/components/ListCard/WListCardField.vue.d.ts +25 -0
- package/dist/components/ListCard/WListCardField.vue.d.ts.map +1 -0
- package/dist/components/ListCard/WListCardField.vue.js +46 -0
- package/dist/components/ListCard/WListCardField.vue2.js +5 -0
- package/dist/components/MenuItem/WMenuItem.vue.d.ts +37 -0
- package/dist/components/MenuItem/WMenuItem.vue.d.ts.map +1 -0
- package/dist/components/MenuItem/WMenuItem.vue.js +30 -0
- package/dist/components/MenuItem/WMenuItem.vue2.js +5 -0
- package/dist/components/Modal/WModal.vue.d.ts +3 -0
- package/dist/components/Modal/WModal.vue.d.ts.map +1 -0
- package/dist/components/Modal/WModal.vue.js +123 -0
- package/dist/components/Modal/WModal.vue2.js +5 -0
- package/dist/components/Modal/WModalStepper.vue.d.ts +41 -0
- package/dist/components/Modal/WModalStepper.vue.d.ts.map +1 -0
- package/dist/components/Modal/WModalStepper.vue.js +121 -0
- package/dist/components/Modal/WModalStepper.vue2.js +5 -0
- package/dist/components/Modal/WModalWrapper.vue.d.ts +21 -0
- package/dist/components/Modal/WModalWrapper.vue.d.ts.map +1 -0
- package/dist/components/Modal/WModalWrapper.vue.js +39 -0
- package/dist/components/Modal/WModalWrapper.vue2.js +5 -0
- package/dist/components/Modal/components/ModalCloseButton.vue.d.ts +7 -0
- package/dist/components/Modal/components/ModalCloseButton.vue.d.ts.map +1 -0
- package/dist/components/Modal/components/ModalCloseButton.vue.js +23 -0
- package/dist/components/Modal/components/ModalCloseButton.vue2.js +5 -0
- package/dist/components/Modal/modals/Confirm/ConfirmModal.vue.d.ts +76 -0
- package/dist/components/Modal/modals/Confirm/ConfirmModal.vue.d.ts.map +1 -0
- package/dist/components/Modal/modals/Confirm/ConfirmModal.vue.js +5 -0
- package/dist/components/Modal/modals/Confirm/ConfirmModal.vue2.js +112 -0
- package/dist/components/Modal/modals/Confirm/types.d.ts +14 -0
- package/dist/components/Modal/modals/Confirm/types.d.ts.map +1 -0
- package/dist/components/Nav/WNavBar.vue.d.ts +14 -0
- package/dist/components/Nav/WNavBar.vue.d.ts.map +1 -0
- package/dist/components/Nav/WNavBar.vue.js +69 -0
- package/dist/components/Nav/WNavBar.vue2.js +5 -0
- package/dist/components/Nav/WNavItem.vue.d.ts +69 -0
- package/dist/components/Nav/WNavItem.vue.d.ts.map +1 -0
- package/dist/components/Nav/WNavItem.vue.js +86 -0
- package/dist/components/Nav/WNavItem.vue2.js +5 -0
- package/dist/components/Nav/WNavItemExpand.vue.d.ts +46 -0
- package/dist/components/Nav/WNavItemExpand.vue.d.ts.map +1 -0
- package/dist/components/Nav/WNavItemExpand.vue.js +66 -0
- package/dist/components/Nav/WNavItemExpand.vue2.js +5 -0
- package/dist/components/Nav/WNavItemTransition.vue.d.ts +10 -0
- package/dist/components/Nav/WNavItemTransition.vue.d.ts.map +1 -0
- package/dist/components/Nav/WNavItemTransition.vue.js +23 -0
- package/dist/components/Notify/WNotify.vue.d.ts +3 -0
- package/dist/components/Notify/WNotify.vue.d.ts.map +1 -0
- package/dist/components/Notify/WNotify.vue.js +70 -0
- package/dist/components/Notify/WNotify.vue2.js +5 -0
- package/dist/components/Notify/components/NotifyCard.vue.d.ts +53 -0
- package/dist/components/Notify/components/NotifyCard.vue.d.ts.map +1 -0
- package/dist/components/Notify/components/NotifyCard.vue.js +111 -0
- package/dist/components/Notify/components/NotifyCard.vue2.js +5 -0
- package/dist/components/Notify/models/NotifyType.d.ts +6 -0
- package/dist/components/Notify/models/NotifyType.d.ts.map +1 -0
- package/dist/components/Notify/models/NotifyType.js +8 -0
- package/dist/components/Notify/models/types.d.ts +11 -0
- package/dist/components/Notify/models/types.d.ts.map +1 -0
- package/dist/components/Select/WSelect.vue.d.ts +187 -0
- package/dist/components/Select/WSelect.vue.d.ts.map +1 -0
- package/dist/components/Select/WSelect.vue.js +318 -0
- package/dist/components/Select/WSelect.vue2.js +5 -0
- package/dist/components/Select/WSelectAsync.vue.d.ts +201 -0
- package/dist/components/Select/WSelectAsync.vue.d.ts.map +1 -0
- package/dist/components/Select/WSelectAsync.vue.js +210 -0
- package/dist/components/Select/WSelectAsync.vue2.js +5 -0
- package/dist/components/Select/WSelectAsyncList.vue.d.ts +105 -0
- package/dist/components/Select/WSelectAsyncList.vue.d.ts.map +1 -0
- package/dist/components/Select/WSelectAsyncList.vue.js +76 -0
- package/dist/components/Select/WSelectAsyncList.vue2.js +5 -0
- package/dist/components/Select/WSelectAsyncSingle.vue.d.ts +185 -0
- package/dist/components/Select/WSelectAsyncSingle.vue.d.ts.map +1 -0
- package/dist/components/Select/WSelectAsyncSingle.vue.js +110 -0
- package/dist/components/Select/WSelectAsyncSingle.vue2.js +5 -0
- package/dist/components/Select/WSelectSingle.vue.d.ts +177 -0
- package/dist/components/Select/WSelectSingle.vue.d.ts.map +1 -0
- package/dist/components/Select/WSelectSingle.vue.js +106 -0
- package/dist/components/Select/WSelectSingle.vue2.js +5 -0
- package/dist/components/Select/components/SelectAsyncList.vue.d.ts +133 -0
- package/dist/components/Select/components/SelectAsyncList.vue.d.ts.map +1 -0
- package/dist/components/Select/components/SelectAsyncList.vue.js +193 -0
- package/dist/components/Select/components/SelectAsyncList.vue2.js +5 -0
- package/dist/components/Select/components/SelectAsyncPrefix.vue.d.ts +97 -0
- package/dist/components/Select/components/SelectAsyncPrefix.vue.d.ts.map +1 -0
- package/dist/components/Select/components/SelectAsyncPrefix.vue.js +72 -0
- package/dist/components/Select/components/SelectAsyncPrefix.vue2.js +5 -0
- package/dist/components/Select/components/SelectAsyncPrefixPage.vue.d.ts +97 -0
- package/dist/components/Select/components/SelectAsyncPrefixPage.vue.d.ts.map +1 -0
- package/dist/components/Select/components/SelectAsyncPrefixPage.vue.js +89 -0
- package/dist/components/Select/components/SelectAsyncPrefixPage.vue2.js +5 -0
- package/dist/components/Select/components/SelectOption.vue.d.ts +104 -0
- package/dist/components/Select/components/SelectOption.vue.d.ts.map +1 -0
- package/dist/components/Select/components/SelectOption.vue.js +112 -0
- package/dist/components/Select/components/SelectOption.vue2.js +5 -0
- package/dist/components/Skeleton/WSkeleton.vue.d.ts +3 -0
- package/dist/components/Skeleton/WSkeleton.vue.d.ts.map +1 -0
- package/dist/components/Skeleton/WSkeleton.vue.js +14 -0
- package/dist/components/Spinner/WSpinner.vue.d.ts +3 -0
- package/dist/components/Spinner/WSpinner.vue.d.ts.map +1 -0
- package/dist/components/Spinner/WSpinner.vue.js +33 -0
- package/dist/components/Tabs/WTabs.vue.d.ts +39 -0
- package/dist/components/Tabs/WTabs.vue.d.ts.map +1 -0
- package/dist/components/Tabs/WTabs.vue.js +210 -0
- package/dist/components/Tabs/WTabs.vue2.js +5 -0
- package/dist/components/Tabs/WTabsColumns.vue.d.ts +13 -0
- package/dist/components/Tabs/WTabsColumns.vue.d.ts.map +1 -0
- package/dist/components/Tabs/WTabsColumns.vue.js +33 -0
- package/dist/components/Tabs/WTabsColumns.vue2.js +5 -0
- package/dist/components/Tabs/components/TabItem.vue.d.ts +26 -0
- package/dist/components/Tabs/components/TabItem.vue.d.ts.map +1 -0
- package/dist/components/Tabs/components/TabItem.vue.js +42 -0
- package/dist/components/Tabs/components/TabItem.vue2.js +5 -0
- package/dist/components/Tabs/models/injection.d.ts +4 -0
- package/dist/components/Tabs/models/injection.d.ts.map +1 -0
- package/dist/components/Tabs/models/injection.js +4 -0
- package/dist/components/Tabs/use/useTabActiveListener.d.ts +2 -0
- package/dist/components/Tabs/use/useTabActiveListener.d.ts.map +1 -0
- package/dist/components/Tabs/use/useTabActiveListener.js +15 -0
- package/dist/components/Tabs/use/useTabItemActiveListener.d.ts +4 -0
- package/dist/components/Tabs/use/useTabItemActiveListener.d.ts.map +1 -0
- package/dist/components/Tabs/use/useTabItemActiveListener.js +28 -0
- package/dist/components/Toggle/WToggle.vue.d.ts +69 -0
- package/dist/components/Toggle/WToggle.vue.d.ts.map +1 -0
- package/dist/components/Toggle/WToggle.vue.js +94 -0
- package/dist/components/Toggle/WToggle.vue2.js +5 -0
- package/dist/components/Tooltip/WTooltip.vue.d.ts +35 -0
- package/dist/components/Tooltip/WTooltip.vue.d.ts.map +1 -0
- package/dist/components/Tooltip/WTooltip.vue.js +67 -0
- package/dist/components/Tooltip/WTooltip.vue2.js +5 -0
- package/dist/components/Tooltip/WTooltipContainer.vue.d.ts +3 -0
- package/dist/components/Tooltip/WTooltipContainer.vue.d.ts.map +1 -0
- package/dist/components/Tooltip/WTooltipContainer.vue.js +152 -0
- package/dist/components/Tooltip/WTooltipContainer.vue2.js +5 -0
- package/dist/components/Tooltip/models/utils.d.ts +2 -0
- package/dist/components/Tooltip/models/utils.d.ts.map +1 -0
- package/dist/components/Tooltip/models/utils.js +6 -0
- package/dist/imports/componentsPlugin.d.ts +66 -0
- package/dist/imports/componentsPlugin.d.ts.map +1 -0
- package/dist/imports/iconsDefault.d.ts +27 -0
- package/dist/imports/iconsDefault.d.ts.map +1 -0
- package/dist/imports/iconsDefault.js +26 -0
- package/dist/imports/iconsSax.d.ts +59 -0
- package/dist/imports/iconsSax.d.ts.map +1 -0
- package/dist/imports/iconsSax.js +58 -0
- package/dist/main.d.ts +12 -0
- package/dist/main.d.ts.map +1 -0
- package/dist/main.js +71 -0
- package/dist/types/global.d.ts +48 -0
- package/dist/utils/DOMListenerContainer.d.ts +8 -0
- package/dist/utils/DOMListenerContainer.d.ts.map +1 -0
- package/dist/utils/DOMListenerContainer.js +39 -0
- package/dist/utils/HorizontalAlign.d.ts +9 -0
- package/dist/utils/HorizontalAlign.d.ts.map +1 -0
- package/dist/utils/HorizontalAlign.js +11 -0
- package/dist/utils/Modal.d.ts +10 -0
- package/dist/utils/Modal.d.ts.map +1 -0
- package/dist/utils/Modal.js +25 -0
- package/dist/utils/Notify.d.ts +8 -0
- package/dist/utils/Notify.d.ts.map +1 -0
- package/dist/utils/Notify.js +19 -0
- package/dist/utils/SemanticType.d.ts +9 -0
- package/dist/utils/SemanticType.d.ts.map +1 -0
- package/dist/utils/SemanticType.js +11 -0
- package/dist/utils/Tooltip.d.ts +15 -0
- package/dist/utils/Tooltip.d.ts.map +1 -0
- package/dist/utils/Tooltip.js +14 -0
- package/dist/utils/dateTime.d.ts +44 -0
- package/dist/utils/dateTime.d.ts.map +1 -0
- package/dist/utils/dateTime.js +187 -0
- package/dist/utils/mobile.d.ts +3 -0
- package/dist/utils/mobile.d.ts.map +1 -0
- package/dist/utils/mobile.js +10 -0
- package/dist/utils/supportsPassive.d.ts +2 -0
- package/dist/utils/supportsPassive.d.ts.map +1 -0
- package/dist/utils/supportsPassive.js +15 -0
- package/dist/utils/utils.d.ts +14 -0
- package/dist/utils/utils.d.ts.map +1 -0
- package/dist/utils/utils.js +61 -0
- package/package.json +281 -0
- package/tailwind-base/index.cjs +103 -0
- package/tailwind-base/plugins/default.cjs +456 -0
- package/tailwind-base/theme/animations.cjs +88 -0
- package/tailwind-base/theme/score.cjs +31 -0
- package/tailwind-base/theme/severity.cjs +32 -0
- package/tailwind-base/theme/sizes.cjs +23 -0
@@ -0,0 +1,86 @@
|
|
1
|
+
import { defineComponent, computed, watch, openBlock, createBlock, unref, normalizeClass, withCtx, createElementVNode, resolveDynamicComponent, renderSlot, toDisplayString, createElementBlock, createTextVNode, createCommentVNode } from 'vue';
|
2
|
+
import { useRoute, useRouter, RouterLink } from 'vue-router';
|
3
|
+
import { isEqualObj, numberCompactFormatter } from '../../utils/utils.js';
|
4
|
+
import WSkeleton from '../Skeleton/WSkeleton.vue.js';
|
5
|
+
import _sfc_main$1 from '../Counter/WCounter.vue.js';
|
6
|
+
|
7
|
+
const _hoisted_1 = { class: "[overflow:inherit]" };
|
8
|
+
const _hoisted_2 = { class: "flex items-center py-4 px-5" };
|
9
|
+
const _hoisted_3 = { class: "h-full w-10 flex items-center" };
|
10
|
+
const _hoisted_4 = { class: "h-6 text-base font-normal tracking-wide mr-auto whitespace-nowrap" };
|
11
|
+
const _hoisted_5 = {
|
12
|
+
key: 0,
|
13
|
+
class: "h-6 text-base font-normal tracking-wide w-12 text-center flex justify-center"
|
14
|
+
};
|
15
|
+
const _hoisted_6 = {
|
16
|
+
key: 0,
|
17
|
+
class: "relative"
|
18
|
+
};
|
19
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
20
|
+
__name: "WNavItem",
|
21
|
+
props: {
|
22
|
+
icon: {},
|
23
|
+
to: {},
|
24
|
+
title: {},
|
25
|
+
count: {},
|
26
|
+
counter: {},
|
27
|
+
noQuery: { type: Boolean },
|
28
|
+
skeleton: { type: Boolean },
|
29
|
+
hasActive: { type: Boolean }
|
30
|
+
},
|
31
|
+
emits: ["update:isActive"],
|
32
|
+
setup(__props, { emit }) {
|
33
|
+
const props = __props;
|
34
|
+
const route = useRoute();
|
35
|
+
const router = useRouter();
|
36
|
+
const routeTo = computed(() => router.resolve(props.to));
|
37
|
+
const isActive = computed(() => {
|
38
|
+
if (routeTo.value?.name !== route.name)
|
39
|
+
return false;
|
40
|
+
return isEqualObj(route.query, routeTo.value.query, ["ordering", "page"]);
|
41
|
+
});
|
42
|
+
const isBigCount = computed(() => props.counter !== void 0 && props.counter >= 1e3);
|
43
|
+
watch(isActive, (value) => emit("update:isActive", { [props.title]: value }), { immediate: true });
|
44
|
+
return (_ctx, _cache) => {
|
45
|
+
return openBlock(), createBlock(unref(RouterLink), {
|
46
|
+
to: _ctx.to,
|
47
|
+
class: normalizeClass(["relative no-underline block w-ripple w-ripple-hover", {
|
48
|
+
"text-primary-default dark:text-primary-dark": isActive.value || _ctx.hasActive,
|
49
|
+
"text-accent": !isActive.value && !_ctx.hasActive
|
50
|
+
}])
|
51
|
+
}, {
|
52
|
+
default: withCtx(() => [
|
53
|
+
createElementVNode("div", _hoisted_1, [
|
54
|
+
createElementVNode("div", _hoisted_2, [
|
55
|
+
createElementVNode("div", _hoisted_3, [
|
56
|
+
_ctx.icon ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.icon), {
|
57
|
+
key: 0,
|
58
|
+
class: "square-6"
|
59
|
+
})) : renderSlot(_ctx.$slots, "icon", { key: 1 })
|
60
|
+
]),
|
61
|
+
createElementVNode("div", _hoisted_4, toDisplayString(_ctx.title), 1),
|
62
|
+
_ctx.count !== void 0 ? (openBlock(), createElementBlock("div", _hoisted_5, [
|
63
|
+
!_ctx.skeleton ? (openBlock(), createElementBlock("span", _hoisted_6, [
|
64
|
+
createTextVNode(toDisplayString(typeof _ctx.count === "number" ? unref(numberCompactFormatter).format(_ctx.count) : "") + " ", 1),
|
65
|
+
_ctx.counter !== void 0 && _ctx.counter !== 0 ? (openBlock(), createBlock(_sfc_main$1, {
|
66
|
+
key: 0,
|
67
|
+
count: _ctx.counter,
|
68
|
+
trigger: 1,
|
69
|
+
small: "",
|
70
|
+
class: normalizeClass(["absolute -top-3", {
|
71
|
+
"left-[calc(100%-0.25rem)]": !isBigCount.value,
|
72
|
+
"left-[calc(100%-1rem)]": isBigCount.value
|
73
|
+
}])
|
74
|
+
}, null, 8, ["count", "class"])) : createCommentVNode("", true)
|
75
|
+
])) : (openBlock(), createBlock(WSkeleton, { key: 1 }))
|
76
|
+
])) : createCommentVNode("", true)
|
77
|
+
])
|
78
|
+
])
|
79
|
+
]),
|
80
|
+
_: 3
|
81
|
+
}, 8, ["to", "class"]);
|
82
|
+
};
|
83
|
+
}
|
84
|
+
});
|
85
|
+
|
86
|
+
export { _sfc_main as default };
|
@@ -0,0 +1,46 @@
|
|
1
|
+
import type { RouteLocationRaw } from 'vue-router';
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
3
|
+
icon: {
|
4
|
+
type: import("vue").PropType<SVGComponent>;
|
5
|
+
};
|
6
|
+
to: {
|
7
|
+
type: import("vue").PropType<RouteLocationRaw>;
|
8
|
+
required: true;
|
9
|
+
};
|
10
|
+
title: {
|
11
|
+
type: import("vue").PropType<string>;
|
12
|
+
required: true;
|
13
|
+
};
|
14
|
+
count: {
|
15
|
+
type: import("vue").PropType<number>;
|
16
|
+
};
|
17
|
+
skeleton: {
|
18
|
+
type: import("vue").PropType<boolean>;
|
19
|
+
};
|
20
|
+
newLabel: {
|
21
|
+
type: import("vue").PropType<boolean>;
|
22
|
+
};
|
23
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
24
|
+
icon: {
|
25
|
+
type: import("vue").PropType<SVGComponent>;
|
26
|
+
};
|
27
|
+
to: {
|
28
|
+
type: import("vue").PropType<RouteLocationRaw>;
|
29
|
+
required: true;
|
30
|
+
};
|
31
|
+
title: {
|
32
|
+
type: import("vue").PropType<string>;
|
33
|
+
required: true;
|
34
|
+
};
|
35
|
+
count: {
|
36
|
+
type: import("vue").PropType<number>;
|
37
|
+
};
|
38
|
+
skeleton: {
|
39
|
+
type: import("vue").PropType<boolean>;
|
40
|
+
};
|
41
|
+
newLabel: {
|
42
|
+
type: import("vue").PropType<boolean>;
|
43
|
+
};
|
44
|
+
}>>, {}, {}>;
|
45
|
+
export default _default;
|
46
|
+
//# sourceMappingURL=WNavItemExpand.vue.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"WNavItemExpand.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Nav/WNavItemExpand.vue.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,YAAY,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqKhD,wBAAkD"}
|
@@ -0,0 +1,66 @@
|
|
1
|
+
import { defineComponent, ref, computed, openBlock, createElementBlock, createVNode, withCtx, unref, normalizeClass, Fragment, renderList, createBlock, resolveDynamicComponent } from 'vue';
|
2
|
+
import IconArrow from '../../assets/icons/default/IconArrow.svg.js';
|
3
|
+
import _sfc_main$1 from './WNavItem.vue.js';
|
4
|
+
import _sfc_main$2 from '../Expansion/WExpansion.vue.js';
|
5
|
+
import WNavItemTransition from './WNavItemTransition.vue.js';
|
6
|
+
|
7
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
8
|
+
__name: "WNavItemExpand",
|
9
|
+
props: {
|
10
|
+
icon: {},
|
11
|
+
to: {},
|
12
|
+
title: {},
|
13
|
+
count: {},
|
14
|
+
skeleton: { type: Boolean },
|
15
|
+
newLabel: { type: Boolean }
|
16
|
+
},
|
17
|
+
setup(__props) {
|
18
|
+
const isOpen = ref(false);
|
19
|
+
const isActiveChildrenMap = ref({});
|
20
|
+
const hasActive = computed(() => Object.values(isActiveChildrenMap.value).includes(true));
|
21
|
+
const updateIsActive = (value) => {
|
22
|
+
isActiveChildrenMap.value = { ...isActiveChildrenMap.value, ...value };
|
23
|
+
};
|
24
|
+
return (_ctx, _cache) => {
|
25
|
+
return openBlock(), createElementBlock("div", null, [
|
26
|
+
createVNode(_sfc_main$1, {
|
27
|
+
to: _ctx.to,
|
28
|
+
title: _ctx.title,
|
29
|
+
icon: _ctx.icon,
|
30
|
+
"new-label": _ctx.newLabel,
|
31
|
+
skeleton: _ctx.skeleton,
|
32
|
+
count: _ctx.count,
|
33
|
+
"has-active": hasActive.value || isOpen.value,
|
34
|
+
"onUpdate:isActive": _cache[0] || (_cache[0] = ($event) => isOpen.value = $event[_ctx.title])
|
35
|
+
}, {
|
36
|
+
icon: withCtx(() => [
|
37
|
+
createVNode(unref(IconArrow), {
|
38
|
+
class: normalizeClass(["square-4 mx-1 transition-transform", { "rotate-180": hasActive.value || isOpen.value }])
|
39
|
+
}, null, 8, ["class"])
|
40
|
+
]),
|
41
|
+
_: 1
|
42
|
+
}, 8, ["to", "title", "icon", "new-label", "skeleton", "count", "has-active"]),
|
43
|
+
createVNode(_sfc_main$2, {
|
44
|
+
"is-shown": isOpen.value || hasActive.value
|
45
|
+
}, {
|
46
|
+
default: withCtx(() => [
|
47
|
+
createVNode(WNavItemTransition, null, {
|
48
|
+
default: withCtx(() => [
|
49
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.$slots.default?.(), (slot, index) => {
|
50
|
+
return openBlock(), createBlock(resolveDynamicComponent(slot), {
|
51
|
+
key: index,
|
52
|
+
"onUpdate:isActive": updateIsActive
|
53
|
+
}, null, 32);
|
54
|
+
}), 128))
|
55
|
+
]),
|
56
|
+
_: 1
|
57
|
+
})
|
58
|
+
]),
|
59
|
+
_: 1
|
60
|
+
}, 8, ["is-shown"])
|
61
|
+
]);
|
62
|
+
};
|
63
|
+
}
|
64
|
+
});
|
65
|
+
|
66
|
+
export { _sfc_main as default };
|
@@ -0,0 +1,10 @@
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>, {
|
2
|
+
default?(_: {}): any;
|
3
|
+
}>;
|
4
|
+
export default _default;
|
5
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
6
|
+
new (): {
|
7
|
+
$slots: S;
|
8
|
+
};
|
9
|
+
};
|
10
|
+
//# sourceMappingURL=WNavItemTransition.vue.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"WNavItemTransition.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Nav/WNavItemTransition.vue.ts"],"names":[],"mappings":";;;AA2DA,wBAA8G;AAE9G,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import { openBlock, createBlock, TransitionGroup, withCtx, renderSlot } from 'vue';
|
2
|
+
import _export_sfc from '../../_virtual/_plugin-vue_export-helper.js';
|
3
|
+
|
4
|
+
const _sfc_main = {};
|
5
|
+
|
6
|
+
function _sfc_render(_ctx, _cache) {
|
7
|
+
return (openBlock(), createBlock(TransitionGroup, {
|
8
|
+
"enter-active-class": "transition-[grid-template-rows] overflow-hidden grid",
|
9
|
+
"enter-from-class": "grid-rows-[0fr]",
|
10
|
+
"enter-to-class": "grid-rows-[1fr]",
|
11
|
+
"leave-active-class": "transition-[grid-template-rows] overflow-hidden grid",
|
12
|
+
"leave-from-class": "grid-rows-[1fr]",
|
13
|
+
"leave-to-class": "grid-rows-[0fr]"
|
14
|
+
}, {
|
15
|
+
default: withCtx(() => [
|
16
|
+
renderSlot(_ctx.$slots, "default")
|
17
|
+
]),
|
18
|
+
_: 3
|
19
|
+
}))
|
20
|
+
}
|
21
|
+
const WNavItemTransition = /*#__PURE__*/_export_sfc(_sfc_main, [['render',_sfc_render]]);
|
22
|
+
|
23
|
+
export { WNavItemTransition as default };
|
@@ -0,0 +1,3 @@
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
2
|
+
export default _default;
|
3
|
+
//# sourceMappingURL=WNotify.vue.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"WNotify.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Notify/WNotify.vue.ts"],"names":[],"mappings":";AAgIA,wBAAkD"}
|
@@ -0,0 +1,70 @@
|
|
1
|
+
import { defineComponent, ref, onBeforeMount, onBeforeUnmount, openBlock, createBlock, TransitionGroup, withCtx, createElementBlock, Fragment, renderList } from 'vue';
|
2
|
+
import { initNotify } from '../../utils/Notify.js';
|
3
|
+
import _sfc_main$1 from './components/NotifyCard.vue.js';
|
4
|
+
|
5
|
+
const NOTIFY_DELAY = 5e3;
|
6
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
7
|
+
__name: "WNotify",
|
8
|
+
setup(__props) {
|
9
|
+
const list = ref([]);
|
10
|
+
const addNotify = (config) => {
|
11
|
+
const index = list.value.findIndex((item) => item.type === config.type && item.title === config.title && item.caption === config.caption);
|
12
|
+
const configMeta = {
|
13
|
+
...config,
|
14
|
+
count: 1,
|
15
|
+
timeout: setTimeout(
|
16
|
+
() => {
|
17
|
+
removeNotify(configMeta);
|
18
|
+
},
|
19
|
+
NOTIFY_DELAY
|
20
|
+
)
|
21
|
+
};
|
22
|
+
if (index !== -1) {
|
23
|
+
configMeta.count += list.value[index]?.count ?? 0;
|
24
|
+
list.value.splice(index, 1, configMeta).forEach((item) => clearTimeout(item.timeout));
|
25
|
+
} else {
|
26
|
+
list.value.push(configMeta);
|
27
|
+
}
|
28
|
+
};
|
29
|
+
const removeNotify = (config) => {
|
30
|
+
const index = list.value.indexOf(config);
|
31
|
+
if (index === -1)
|
32
|
+
return;
|
33
|
+
list.value.splice(index, 1);
|
34
|
+
};
|
35
|
+
onBeforeMount(() => {
|
36
|
+
initNotify(addNotify);
|
37
|
+
});
|
38
|
+
onBeforeUnmount(() => {
|
39
|
+
initNotify(void 0);
|
40
|
+
});
|
41
|
+
return (_ctx, _cache) => {
|
42
|
+
return openBlock(), createBlock(TransitionGroup, {
|
43
|
+
"enter-active-class": "transition-[margin,opacity,transform] duration-500",
|
44
|
+
"leave-active-class": "transition-[margin,opacity,transform] duration-500",
|
45
|
+
"enter-from-class": "opacity-0 translate-y-5",
|
46
|
+
"leave-to-class": "opacity-0 -mb-[var(--list-item-height,5.5rem)]",
|
47
|
+
tag: "div",
|
48
|
+
class: "fixed top-2 right-0 z-[10000]"
|
49
|
+
}, {
|
50
|
+
default: withCtx(() => [
|
51
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(list.value, (config) => {
|
52
|
+
return openBlock(), createBlock(_sfc_main$1, {
|
53
|
+
key: config.title + config.caption + config.type,
|
54
|
+
title: config.title,
|
55
|
+
caption: config.caption,
|
56
|
+
type: config.type,
|
57
|
+
count: config.count,
|
58
|
+
to: config.to,
|
59
|
+
"user-input": config.userInput,
|
60
|
+
"onClick:close": ($event) => removeNotify(config)
|
61
|
+
}, null, 8, ["title", "caption", "type", "count", "to", "user-input", "onClick:close"]);
|
62
|
+
}), 128))
|
63
|
+
]),
|
64
|
+
_: 1
|
65
|
+
});
|
66
|
+
};
|
67
|
+
}
|
68
|
+
});
|
69
|
+
|
70
|
+
export { _sfc_main as default };
|
@@ -0,0 +1,53 @@
|
|
1
|
+
import { type RouteLocationNamedRaw } from 'vue-router';
|
2
|
+
import { NotifyType } from '../models/NotifyType';
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
4
|
+
title: {
|
5
|
+
type: import("vue").PropType<string>;
|
6
|
+
required: true;
|
7
|
+
};
|
8
|
+
caption: {
|
9
|
+
type: import("vue").PropType<string>;
|
10
|
+
};
|
11
|
+
userInput: {
|
12
|
+
type: import("vue").PropType<string>;
|
13
|
+
};
|
14
|
+
type: {
|
15
|
+
type: import("vue").PropType<NotifyType>;
|
16
|
+
required: true;
|
17
|
+
};
|
18
|
+
count: {
|
19
|
+
type: import("vue").PropType<number>;
|
20
|
+
required: true;
|
21
|
+
};
|
22
|
+
to: {
|
23
|
+
type: import("vue").PropType<RouteLocationNamedRaw>;
|
24
|
+
};
|
25
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
26
|
+
"click:close": () => void;
|
27
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
28
|
+
title: {
|
29
|
+
type: import("vue").PropType<string>;
|
30
|
+
required: true;
|
31
|
+
};
|
32
|
+
caption: {
|
33
|
+
type: import("vue").PropType<string>;
|
34
|
+
};
|
35
|
+
userInput: {
|
36
|
+
type: import("vue").PropType<string>;
|
37
|
+
};
|
38
|
+
type: {
|
39
|
+
type: import("vue").PropType<NotifyType>;
|
40
|
+
required: true;
|
41
|
+
};
|
42
|
+
count: {
|
43
|
+
type: import("vue").PropType<number>;
|
44
|
+
required: true;
|
45
|
+
};
|
46
|
+
to: {
|
47
|
+
type: import("vue").PropType<RouteLocationNamedRaw>;
|
48
|
+
};
|
49
|
+
}>> & {
|
50
|
+
"onClick:close"?: (() => any) | undefined;
|
51
|
+
}, {}, {}>;
|
52
|
+
export default _default;
|
53
|
+
//# sourceMappingURL=NotifyCard.vue.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"NotifyCard.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/Notify/components/NotifyCard.vue.ts"],"names":[],"mappings":"AAGA,OAAO,EAAY,KAAK,qBAAqB,EAAC,MAAM,YAAY,CAAA;AAChE,OAAO,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqS/C,wBAAkD"}
|
@@ -0,0 +1,111 @@
|
|
1
|
+
import { defineComponent, ref, computed, watch, openBlock, createElementBlock, normalizeStyle, createElementVNode, withDirectives, createVNode, vShow, unref, createBlock, createCommentVNode, toDisplayString, createTextVNode, withCtx } from 'vue';
|
2
|
+
import { useRouter } from 'vue-router';
|
3
|
+
import { NotifyType } from '../models/NotifyType.js';
|
4
|
+
import IconDanger from '../../../assets/icons/default/IconDanger.svg.js';
|
5
|
+
import IconWarn from '../../../assets/icons/default/IconWarn.svg.js';
|
6
|
+
import IconSuccess from '../../../assets/icons/default/IconSuccess.svg.js';
|
7
|
+
import IconCancel from '../../../assets/icons/default/IconCancel.svg.js';
|
8
|
+
import _sfc_main$1 from '../../Counter/WCounter.vue.js';
|
9
|
+
import _sfc_main$2 from '../../Button/WButton.vue.js';
|
10
|
+
import { SemanticType } from '../../../utils/SemanticType.js';
|
11
|
+
import IconBack from '../../../assets/icons/default/IconBack.svg.js';
|
12
|
+
|
13
|
+
const _hoisted_1 = { class: "relative rounded-xl bg-black-default dark:bg-gray-800 min-h-[4.5rem] max-w-[calc(100vw-2rem)] sm:max-w-lg flex select-none my-2 mr-4 ml-auto shadow-md" };
|
14
|
+
const _hoisted_2 = { class: "m-7" };
|
15
|
+
const _hoisted_3 = { class: "flex-1 py-4 grid items-center" };
|
16
|
+
const _hoisted_4 = { class: "text-base text-default font-semibold" };
|
17
|
+
const _hoisted_5 = {
|
18
|
+
key: 0,
|
19
|
+
class: "text-base text-default font-normal break-words whitespace-pre-wrap"
|
20
|
+
};
|
21
|
+
const _hoisted_6 = { class: "break-all" };
|
22
|
+
const _hoisted_7 = { class: "relative flex justify-center items-center square-8 rounded-full w-ripple" };
|
23
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
24
|
+
__name: "NotifyCard",
|
25
|
+
props: {
|
26
|
+
title: {},
|
27
|
+
caption: {},
|
28
|
+
userInput: {},
|
29
|
+
type: {},
|
30
|
+
count: {},
|
31
|
+
to: {}
|
32
|
+
},
|
33
|
+
emits: ["click:close"],
|
34
|
+
setup(__props) {
|
35
|
+
const props = __props;
|
36
|
+
const element = ref();
|
37
|
+
const height = ref();
|
38
|
+
const router = useRouter();
|
39
|
+
const linkText = computed(() => props.to ? router.resolve(props.to).meta.title : void 0);
|
40
|
+
const elementStyles = computed(() => {
|
41
|
+
if (!height.value)
|
42
|
+
return void 0;
|
43
|
+
return {
|
44
|
+
"--list-item-height": height.value + "px"
|
45
|
+
};
|
46
|
+
});
|
47
|
+
watch(element, (value) => {
|
48
|
+
if (!value)
|
49
|
+
return;
|
50
|
+
height.value = value.getBoundingClientRect().height || void 0;
|
51
|
+
});
|
52
|
+
return (_ctx, _cache) => {
|
53
|
+
return openBlock(), createElementBlock("div", {
|
54
|
+
ref_key: "element",
|
55
|
+
ref: element,
|
56
|
+
class: "flex z-[1] isolate",
|
57
|
+
style: normalizeStyle(elementStyles.value)
|
58
|
+
}, [
|
59
|
+
createElementVNode("div", _hoisted_1, [
|
60
|
+
withDirectives(createVNode(_sfc_main$1, {
|
61
|
+
class: "absolute -top-2.5 -left-2.5 shadow-md",
|
62
|
+
count: _ctx.count
|
63
|
+
}, null, 8, ["count"]), [
|
64
|
+
[vShow, _ctx.count > 1]
|
65
|
+
]),
|
66
|
+
createElementVNode("div", _hoisted_2, [
|
67
|
+
_ctx.type === unref(NotifyType).DANGER ? (openBlock(), createBlock(unref(IconDanger), {
|
68
|
+
key: 0,
|
69
|
+
class: "square-6 text-negative dark:text-negative-dark"
|
70
|
+
})) : _ctx.type === unref(NotifyType).WARN ? (openBlock(), createBlock(unref(IconWarn), {
|
71
|
+
key: 1,
|
72
|
+
class: "square-6 text-warning dark:text-warning-dark"
|
73
|
+
})) : _ctx.type === unref(NotifyType).SUCCESS ? (openBlock(), createBlock(unref(IconSuccess), {
|
74
|
+
key: 2,
|
75
|
+
class: "square-6 text-positive dark:text-positive-dark"
|
76
|
+
})) : createCommentVNode("", true)
|
77
|
+
]),
|
78
|
+
createElementVNode("div", _hoisted_3, [
|
79
|
+
createElementVNode("div", _hoisted_4, toDisplayString(_ctx.title), 1),
|
80
|
+
_ctx.caption || _ctx.userInput ? (openBlock(), createElementBlock("div", _hoisted_5, [
|
81
|
+
createTextVNode(toDisplayString(_ctx.caption ? _ctx.caption + " " : ""), 1),
|
82
|
+
createElementVNode("span", _hoisted_6, toDisplayString(_ctx.userInput), 1)
|
83
|
+
])) : createCommentVNode("", true),
|
84
|
+
_ctx.to ? (openBlock(), createBlock(_sfc_main$2, {
|
85
|
+
key: 1,
|
86
|
+
to: _ctx.to,
|
87
|
+
"semantic-type": unref(SemanticType).SECONDARY,
|
88
|
+
class: "mt-4 justify-self-start"
|
89
|
+
}, {
|
90
|
+
default: withCtx(() => [
|
91
|
+
createTextVNode(toDisplayString(linkText.value) + " ", 1),
|
92
|
+
createVNode(unref(IconBack), { class: "rotate-180" })
|
93
|
+
]),
|
94
|
+
_: 1
|
95
|
+
}, 8, ["to", "semantic-type"])) : createCommentVNode("", true)
|
96
|
+
]),
|
97
|
+
createElementVNode("div", {
|
98
|
+
class: "w-ripple-trigger w-ripple-hover text-description cursor-pointer p-6",
|
99
|
+
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("click:close"))
|
100
|
+
}, [
|
101
|
+
createElementVNode("div", _hoisted_7, [
|
102
|
+
createVNode(unref(IconCancel), { class: "square-4" })
|
103
|
+
])
|
104
|
+
])
|
105
|
+
])
|
106
|
+
], 4);
|
107
|
+
};
|
108
|
+
}
|
109
|
+
});
|
110
|
+
|
111
|
+
export { _sfc_main as default };
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"NotifyType.d.ts","sourceRoot":"","sources":["../../../../../src/components/Notify/models/NotifyType.ts"],"names":[],"mappings":"AACA,oBAAY,UAAU;IACpB,OAAO,YAAY;IACnB,IAAI,SAAS;IACb,MAAM,WAAW;CAClB"}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import type { RouteLocationNamedRaw } from 'vue-router';
|
2
|
+
import type { NotifyType } from './NotifyType';
|
3
|
+
export type NotifyConfig = {
|
4
|
+
title: string;
|
5
|
+
caption?: string;
|
6
|
+
userInput?: string;
|
7
|
+
type: NotifyType;
|
8
|
+
to?: RouteLocationNamedRaw;
|
9
|
+
};
|
10
|
+
export type AddNotify = (config: NotifyConfig) => void;
|
11
|
+
//# sourceMappingURL=types.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/Notify/models/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,qBAAqB,EAAC,MAAM,YAAY,CAAA;AACrD,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,cAAc,CAAA;AAE5C,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,IAAI,EAAE,UAAU,CAAA;IAChB,EAAE,CAAC,EAAE,qBAAqB,CAAA;CAC3B,CAAA;AAED,MAAM,MAAM,SAAS,GAAG,CAAC,MAAM,EAAE,YAAY,KAAK,IAAI,CAAA"}
|