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,50 @@
|
|
1
|
+
import type { DateRange } from '../models/types';
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
3
|
+
startOfMonth: {
|
4
|
+
type: import("vue").PropType<Date>;
|
5
|
+
required: true;
|
6
|
+
};
|
7
|
+
startOfWeek: {
|
8
|
+
type: import("vue").PropType<Date>;
|
9
|
+
required: true;
|
10
|
+
};
|
11
|
+
dateRange: {
|
12
|
+
type: import("vue").PropType<DateRange>;
|
13
|
+
};
|
14
|
+
isBetween: {
|
15
|
+
type: import("vue").PropType<boolean>;
|
16
|
+
required: true;
|
17
|
+
};
|
18
|
+
isHoverEnabled: {
|
19
|
+
type: import("vue").PropType<boolean>;
|
20
|
+
required: true;
|
21
|
+
};
|
22
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
23
|
+
"click:day": (value: Date) => void;
|
24
|
+
"hover:day": (value: Date) => void;
|
25
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
26
|
+
startOfMonth: {
|
27
|
+
type: import("vue").PropType<Date>;
|
28
|
+
required: true;
|
29
|
+
};
|
30
|
+
startOfWeek: {
|
31
|
+
type: import("vue").PropType<Date>;
|
32
|
+
required: true;
|
33
|
+
};
|
34
|
+
dateRange: {
|
35
|
+
type: import("vue").PropType<DateRange>;
|
36
|
+
};
|
37
|
+
isBetween: {
|
38
|
+
type: import("vue").PropType<boolean>;
|
39
|
+
required: true;
|
40
|
+
};
|
41
|
+
isHoverEnabled: {
|
42
|
+
type: import("vue").PropType<boolean>;
|
43
|
+
required: true;
|
44
|
+
};
|
45
|
+
}>> & {
|
46
|
+
"onClick:day"?: ((value: Date) => any) | undefined;
|
47
|
+
"onHover:day"?: ((value: Date) => any) | undefined;
|
48
|
+
}, {}, {}>;
|
49
|
+
export default _default;
|
50
|
+
//# sourceMappingURL=CalendarWeek.vue.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"CalendarWeek.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/DatePicker/components/CalendarWeek.vue.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,iBAAiB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+J9C,wBAAkD"}
|
@@ -0,0 +1,79 @@
|
|
1
|
+
import { defineComponent, computed, openBlock, createElementBlock, Fragment, renderList, createBlock } from 'vue';
|
2
|
+
import _sfc_main$1 from './CalendarDay.vue.js';
|
3
|
+
|
4
|
+
const _hoisted_1 = { class: "flex" };
|
5
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
6
|
+
__name: "CalendarWeek",
|
7
|
+
props: {
|
8
|
+
startOfMonth: {},
|
9
|
+
startOfWeek: {},
|
10
|
+
dateRange: {},
|
11
|
+
isBetween: { type: Boolean },
|
12
|
+
isHoverEnabled: { type: Boolean }
|
13
|
+
},
|
14
|
+
emits: ["click:day", "hover:day"],
|
15
|
+
setup(__props) {
|
16
|
+
const props = __props;
|
17
|
+
const days = computed(() => Array(7).fill(void 0).map((_, index) => {
|
18
|
+
const date = new Date(props.startOfWeek);
|
19
|
+
date.setDate(date.getDate() + index);
|
20
|
+
return date;
|
21
|
+
}));
|
22
|
+
const endOfWeek = computed(() => days.value[days.value.length - 1]);
|
23
|
+
const isWeekOutOfMonth = computed(() => {
|
24
|
+
const month = props.startOfMonth.getMonth();
|
25
|
+
return props.startOfWeek.getMonth() !== month || endOfWeek.value.getMonth() !== month;
|
26
|
+
});
|
27
|
+
const isBeforeTo = computed(() => {
|
28
|
+
if (!props.dateRange)
|
29
|
+
return false;
|
30
|
+
return props.dateRange.to > endOfWeek.value;
|
31
|
+
});
|
32
|
+
const isAfterFrom = computed(() => {
|
33
|
+
if (!props.dateRange)
|
34
|
+
return false;
|
35
|
+
return props.dateRange.from < props.startOfWeek;
|
36
|
+
});
|
37
|
+
const isBetweenRange = computed(() => {
|
38
|
+
if (props.isBetween)
|
39
|
+
return true;
|
40
|
+
return isBeforeTo.value && isAfterFrom.value;
|
41
|
+
});
|
42
|
+
const isBeforeFrom = computed(() => {
|
43
|
+
if (!props.dateRange)
|
44
|
+
return false;
|
45
|
+
return props.dateRange.from > endOfWeek.value;
|
46
|
+
});
|
47
|
+
const isAfterTo = computed(() => {
|
48
|
+
if (!props.dateRange)
|
49
|
+
return false;
|
50
|
+
return props.dateRange.to < props.startOfWeek;
|
51
|
+
});
|
52
|
+
const isEmpty = computed(() => {
|
53
|
+
if (props.isBetween)
|
54
|
+
return false;
|
55
|
+
if (!props.dateRange)
|
56
|
+
return true;
|
57
|
+
return isBeforeFrom.value && isBeforeTo.value || isAfterFrom.value && isAfterTo.value;
|
58
|
+
});
|
59
|
+
return (_ctx, _cache) => {
|
60
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
61
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(days.value, (day, index) => {
|
62
|
+
return openBlock(), createBlock(_sfc_main$1, {
|
63
|
+
key: index,
|
64
|
+
"start-of-month": _ctx.startOfMonth,
|
65
|
+
"start-of-day": day,
|
66
|
+
"date-range": isEmpty.value || isBetweenRange.value ? void 0 : _ctx.dateRange,
|
67
|
+
"is-between": isBetweenRange.value,
|
68
|
+
"is-week-out-of-month": isWeekOutOfMonth.value,
|
69
|
+
"is-hover-enabled": _ctx.isHoverEnabled,
|
70
|
+
"onClick:day": _cache[0] || (_cache[0] = ($event) => _ctx.$emit("click:day", $event)),
|
71
|
+
"onHover:day": _cache[1] || (_cache[1] = ($event) => _ctx.$emit("hover:day", $event))
|
72
|
+
}, null, 8, ["start-of-month", "start-of-day", "date-range", "is-between", "is-week-out-of-month", "is-hover-enabled"]);
|
73
|
+
}), 128))
|
74
|
+
]);
|
75
|
+
};
|
76
|
+
}
|
77
|
+
});
|
78
|
+
|
79
|
+
export { _sfc_main as default };
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/DatePicker/models/types.ts"],"names":[],"mappings":"AACA,MAAM,MAAM,SAAS,GAAG;IACtB,IAAI,EAAE,IAAI,CAAA;IACV,EAAE,EAAE,IAAI,CAAA;CACT,CAAA"}
|
@@ -0,0 +1,67 @@
|
|
1
|
+
import { HorizontalAlign } from '../../utils/HorizontalAlign';
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
3
|
+
maxHeight: {
|
4
|
+
type: import("vue").PropType<number>;
|
5
|
+
required: true;
|
6
|
+
};
|
7
|
+
maxWidth: {
|
8
|
+
type: import("vue").PropType<number>;
|
9
|
+
required: true;
|
10
|
+
};
|
11
|
+
horizontalAlign: {
|
12
|
+
type: import("vue").PropType<HorizontalAlign>;
|
13
|
+
required: true;
|
14
|
+
};
|
15
|
+
parentElement: {
|
16
|
+
type: import("vue").PropType<Element>;
|
17
|
+
required: true;
|
18
|
+
};
|
19
|
+
updateAlign: {
|
20
|
+
type: import("vue").PropType<boolean>;
|
21
|
+
};
|
22
|
+
emitUpdate: {
|
23
|
+
type: import("vue").PropType<boolean>;
|
24
|
+
};
|
25
|
+
}, {
|
26
|
+
update: () => void;
|
27
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
28
|
+
"update:rect": () => void;
|
29
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
30
|
+
maxHeight: {
|
31
|
+
type: import("vue").PropType<number>;
|
32
|
+
required: true;
|
33
|
+
};
|
34
|
+
maxWidth: {
|
35
|
+
type: import("vue").PropType<number>;
|
36
|
+
required: true;
|
37
|
+
};
|
38
|
+
horizontalAlign: {
|
39
|
+
type: import("vue").PropType<HorizontalAlign>;
|
40
|
+
required: true;
|
41
|
+
};
|
42
|
+
parentElement: {
|
43
|
+
type: import("vue").PropType<Element>;
|
44
|
+
required: true;
|
45
|
+
};
|
46
|
+
updateAlign: {
|
47
|
+
type: import("vue").PropType<boolean>;
|
48
|
+
};
|
49
|
+
emitUpdate: {
|
50
|
+
type: import("vue").PropType<boolean>;
|
51
|
+
};
|
52
|
+
}>> & {
|
53
|
+
"onUpdate:rect"?: (() => any) | undefined;
|
54
|
+
}, {}, {}>, {
|
55
|
+
default?(_: {
|
56
|
+
left: string;
|
57
|
+
right: string;
|
58
|
+
istop: boolean;
|
59
|
+
}): any;
|
60
|
+
}>;
|
61
|
+
export default _default;
|
62
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
63
|
+
new (): {
|
64
|
+
$slots: S;
|
65
|
+
};
|
66
|
+
};
|
67
|
+
//# sourceMappingURL=WDropdown.vue.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"WDropdown.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Dropdown/WDropdown.vue.ts"],"names":[],"mappings":"AAMA,OAAO,EAAC,eAAe,EAAC,MAAM,yBAAyB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqMvD,wBAA8G;AAiB9G,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
|
@@ -0,0 +1,116 @@
|
|
1
|
+
import { defineComponent, ref, computed, onBeforeMount, onMounted, onBeforeUnmount, watch, toRef, openBlock, createElementBlock, normalizeStyle, normalizeClass, unref, renderSlot } from 'vue';
|
2
|
+
import DOMListenerContainer from '../../utils/DOMListenerContainer.js';
|
3
|
+
import { isClientSide, getAllScrollParents } from '../../utils/utils.js';
|
4
|
+
import { horizontalGetterOrderMap, searchStyleGetter } from './utils/DropdownStyle.js';
|
5
|
+
import { HorizontalAlign } from '../../utils/HorizontalAlign.js';
|
6
|
+
|
7
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
8
|
+
__name: "WDropdown",
|
9
|
+
props: {
|
10
|
+
maxHeight: {},
|
11
|
+
maxWidth: {},
|
12
|
+
horizontalAlign: {},
|
13
|
+
parentElement: {},
|
14
|
+
updateAlign: { type: Boolean },
|
15
|
+
emitUpdate: { type: Boolean }
|
16
|
+
},
|
17
|
+
emits: ["update:rect"],
|
18
|
+
setup(__props, { expose: __expose, emit }) {
|
19
|
+
const props = __props;
|
20
|
+
const dropdown = ref();
|
21
|
+
let parentRect = null;
|
22
|
+
let horizontalGetter = null;
|
23
|
+
let verticalGetter = null;
|
24
|
+
const isTop = ref(false);
|
25
|
+
const widthStyle = ref({});
|
26
|
+
const heightStyle = ref({});
|
27
|
+
const horizontalStyle = ref({});
|
28
|
+
const verticalStyle = ref({});
|
29
|
+
const order = computed(() => horizontalGetterOrderMap[props.horizontalAlign]);
|
30
|
+
const styles = computed(() => {
|
31
|
+
return {
|
32
|
+
...widthStyle.value,
|
33
|
+
...heightStyle.value,
|
34
|
+
...horizontalStyle.value,
|
35
|
+
...verticalStyle.value
|
36
|
+
};
|
37
|
+
});
|
38
|
+
const setParentRect = (updateSize = false) => {
|
39
|
+
const newRect = props.parentElement.getBoundingClientRect();
|
40
|
+
const isLeftChanged = newRect.left !== parentRect?.left;
|
41
|
+
const isTopChanged = newRect.top !== parentRect?.top || newRect.bottom !== parentRect?.bottom;
|
42
|
+
if (!horizontalGetter || isLeftChanged && props.updateAlign) {
|
43
|
+
horizontalGetter = searchStyleGetter(order.value, newRect, props.maxWidth);
|
44
|
+
if (updateSize)
|
45
|
+
widthStyle.value = horizontalGetter.widthStyleGetter(newRect, props.maxWidth);
|
46
|
+
}
|
47
|
+
if (!verticalGetter || isTopChanged && props.updateAlign) {
|
48
|
+
const order2 = horizontalGetter.verticalGetterOrder;
|
49
|
+
verticalGetter = searchStyleGetter(order2, newRect, props.maxHeight);
|
50
|
+
isTop.value = verticalGetter.isTop;
|
51
|
+
if (updateSize)
|
52
|
+
heightStyle.value = verticalGetter.heightStyleGetter(newRect, props.maxHeight);
|
53
|
+
}
|
54
|
+
if (isLeftChanged)
|
55
|
+
horizontalStyle.value = horizontalGetter.styleGetter(newRect);
|
56
|
+
if (isTopChanged)
|
57
|
+
verticalStyle.value = verticalGetter.styleGetter(newRect);
|
58
|
+
if (isLeftChanged || isTopChanged)
|
59
|
+
parentRect = newRect;
|
60
|
+
};
|
61
|
+
onBeforeMount(() => {
|
62
|
+
setParentRect(true);
|
63
|
+
});
|
64
|
+
let domListenerContainer;
|
65
|
+
let requestAnimationFrameId = null;
|
66
|
+
onMounted(() => {
|
67
|
+
if (!isClientSide)
|
68
|
+
return;
|
69
|
+
domListenerContainer = new DOMListenerContainer(
|
70
|
+
[document, window, ...getAllScrollParents(dropdown.value)],
|
71
|
+
["scroll", "touchmove", "resize"],
|
72
|
+
() => {
|
73
|
+
if (requestAnimationFrameId)
|
74
|
+
window.cancelAnimationFrame(requestAnimationFrameId);
|
75
|
+
if (props.emitUpdate) {
|
76
|
+
emit("update:rect");
|
77
|
+
return;
|
78
|
+
}
|
79
|
+
requestAnimationFrameId = requestAnimationFrame(() => {
|
80
|
+
setParentRect();
|
81
|
+
});
|
82
|
+
}
|
83
|
+
);
|
84
|
+
});
|
85
|
+
onBeforeUnmount(() => {
|
86
|
+
domListenerContainer.destroy();
|
87
|
+
});
|
88
|
+
watch(toRef(props, "parentElement"), () => {
|
89
|
+
setParentRect();
|
90
|
+
});
|
91
|
+
__expose({
|
92
|
+
update: () => {
|
93
|
+
setParentRect();
|
94
|
+
}
|
95
|
+
});
|
96
|
+
return (_ctx, _cache) => {
|
97
|
+
return openBlock(), createElementBlock("div", {
|
98
|
+
ref_key: "dropdown",
|
99
|
+
ref: dropdown,
|
100
|
+
style: normalizeStyle(styles.value),
|
101
|
+
class: normalizeClass(["fixed h-auto group/dropdown", {
|
102
|
+
"dropdown-top": isTop.value,
|
103
|
+
"w-0 flex justify-center": _ctx.horizontalAlign === unref(HorizontalAlign).CENTER
|
104
|
+
}])
|
105
|
+
}, [
|
106
|
+
renderSlot(_ctx.$slots, "default", {
|
107
|
+
left: styles.value.left,
|
108
|
+
right: styles.value.right,
|
109
|
+
istop: isTop.value
|
110
|
+
})
|
111
|
+
], 6);
|
112
|
+
};
|
113
|
+
}
|
114
|
+
});
|
115
|
+
|
116
|
+
export { _sfc_main as default };
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import { HorizontalAlign } from '../../../utils/HorizontalAlign';
|
2
|
+
interface StyleGetter {
|
3
|
+
styleGetter(parentRect: DOMRect): Record<string, string>;
|
4
|
+
marginGetter(parentRect: DOMRect, maxHeightOrWidth: number): number;
|
5
|
+
}
|
6
|
+
export declare abstract class VerticalGetter implements StyleGetter {
|
7
|
+
abstract isTop: boolean;
|
8
|
+
abstract styleGetter(parentRect: DOMRect): Record<string, string>;
|
9
|
+
abstract marginGetter(parentRect: DOMRect, maxHeight: number): number;
|
10
|
+
heightStyleGetter(parentRect: DOMRect, maxHeight: number): Record<string, string>;
|
11
|
+
}
|
12
|
+
export declare abstract class HorizontalGetter implements StyleGetter {
|
13
|
+
abstract verticalGetterOrder: Array<VerticalGetter>;
|
14
|
+
abstract styleGetter(parentRect: DOMRect): Record<string, string>;
|
15
|
+
abstract marginGetter(parentRect: DOMRect, maxWidth: number): number;
|
16
|
+
widthStyleGetter(parentRect: DOMRect, maxWidth: number): Record<string, string>;
|
17
|
+
}
|
18
|
+
export declare const horizontalGetterOrderMap: Record<HorizontalAlign, HorizontalGetter[]>;
|
19
|
+
export declare function searchStyleGetter<T extends StyleGetter>(order: Array<T>, parentRect: DOMRect, maxHeightOrWidth: number): T;
|
20
|
+
export {};
|
21
|
+
//# sourceMappingURL=DropdownStyle.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"DropdownStyle.d.ts","sourceRoot":"","sources":["../../../../../src/components/Dropdown/utils/DropdownStyle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,yBAAyB,CAAA;AAIvD,UAAU,WAAW;IACnB,WAAW,CAAC,UAAU,EAAE,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACxD,YAAY,CAAC,UAAU,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,GAAG,MAAM,CAAA;CACpE;AAED,8BAAsB,cAAe,YAAW,WAAW;IACzD,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAA;IAEvB,QAAQ,CAAC,WAAW,CAAC,UAAU,EAAE,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IAEjE,QAAQ,CAAC,YAAY,CAAC,UAAU,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM;IAErE,iBAAiB,CAAC,UAAU,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;CAGlF;AAkDD,8BAAsB,gBAAiB,YAAW,WAAW;IAC3D,QAAQ,CAAC,mBAAmB,EAAE,KAAK,CAAC,cAAc,CAAC,CAAA;IAEnD,QAAQ,CAAC,WAAW,CAAC,UAAU,EAAE,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IAEjE,QAAQ,CAAC,YAAY,CAAC,UAAU,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM;IAEpE,gBAAgB,CAAC,UAAU,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;CAGhF;AAyFD,eAAO,MAAM,wBAAwB,EAAE,MAAM,CAAC,eAAe,EAAE,gBAAgB,EAAE,CAOhF,CAAA;AAED,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,WAAW,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,GAAG,CAAC,CAY1H"}
|
@@ -0,0 +1,141 @@
|
|
1
|
+
import { HorizontalAlign } from '../../../utils/HorizontalAlign.js';
|
2
|
+
|
3
|
+
const EDGE = 20;
|
4
|
+
class VerticalGetter {
|
5
|
+
heightStyleGetter(parentRect, maxHeight) {
|
6
|
+
return { maxHeight: _maxHeightOrWidthGetter(this, parentRect, maxHeight) + "px" };
|
7
|
+
}
|
8
|
+
}
|
9
|
+
class BottomInner extends VerticalGetter {
|
10
|
+
isTop = false;
|
11
|
+
styleGetter(parentRect) {
|
12
|
+
return { top: parentRect.top + "px" };
|
13
|
+
}
|
14
|
+
marginGetter(parentRect, maxHeight) {
|
15
|
+
return window.innerHeight - parentRect.top - maxHeight - EDGE;
|
16
|
+
}
|
17
|
+
}
|
18
|
+
class BottomOuter extends VerticalGetter {
|
19
|
+
isTop = false;
|
20
|
+
styleGetter(parentRect) {
|
21
|
+
return { top: parentRect.bottom + "px" };
|
22
|
+
}
|
23
|
+
marginGetter(parentRect, maxHeight) {
|
24
|
+
return window.innerHeight - parentRect.bottom - maxHeight - EDGE;
|
25
|
+
}
|
26
|
+
}
|
27
|
+
class TopOuter extends VerticalGetter {
|
28
|
+
isTop = true;
|
29
|
+
styleGetter(parentRect) {
|
30
|
+
return { bottom: window.innerHeight - parentRect.top + "px" };
|
31
|
+
}
|
32
|
+
marginGetter(parentRect, maxHeight) {
|
33
|
+
return parentRect.top - maxHeight - EDGE;
|
34
|
+
}
|
35
|
+
}
|
36
|
+
class TopInner extends VerticalGetter {
|
37
|
+
isTop = true;
|
38
|
+
styleGetter(parentRect) {
|
39
|
+
return { bottom: window.innerHeight - parentRect.bottom + "px" };
|
40
|
+
}
|
41
|
+
marginGetter(parentRect, maxHeight) {
|
42
|
+
return parentRect.bottom - maxHeight - EDGE;
|
43
|
+
}
|
44
|
+
}
|
45
|
+
class HorizontalGetter {
|
46
|
+
widthStyleGetter(parentRect, maxWidth) {
|
47
|
+
return { maxWidth: _maxHeightOrWidthGetter(this, parentRect, maxWidth) + "px" };
|
48
|
+
}
|
49
|
+
}
|
50
|
+
class RightOuter extends HorizontalGetter {
|
51
|
+
verticalGetterOrder = [new BottomInner(), new TopInner()];
|
52
|
+
styleGetter(parentRect) {
|
53
|
+
return { left: parentRect.right + "px" };
|
54
|
+
}
|
55
|
+
marginGetter(parentRect, maxWidth) {
|
56
|
+
return document.documentElement.clientWidth - parentRect.right - maxWidth - EDGE;
|
57
|
+
}
|
58
|
+
}
|
59
|
+
class RightInner extends HorizontalGetter {
|
60
|
+
verticalGetterOrder = [new BottomOuter(), new TopOuter()];
|
61
|
+
styleGetter(parentRect) {
|
62
|
+
return { left: parentRect.left + "px" };
|
63
|
+
}
|
64
|
+
marginGetter(parentRect, maxWidth) {
|
65
|
+
return document.documentElement.clientWidth - parentRect.left - maxWidth - EDGE;
|
66
|
+
}
|
67
|
+
}
|
68
|
+
class Fill extends HorizontalGetter {
|
69
|
+
verticalGetterOrder = [new BottomOuter(), new TopOuter()];
|
70
|
+
styleGetter(parentRect) {
|
71
|
+
return {
|
72
|
+
left: parentRect.left + "px",
|
73
|
+
right: document.documentElement.clientWidth - parentRect.right + "px"
|
74
|
+
};
|
75
|
+
}
|
76
|
+
marginGetter() {
|
77
|
+
return 0;
|
78
|
+
}
|
79
|
+
widthStyleGetter(parentRect) {
|
80
|
+
return {};
|
81
|
+
}
|
82
|
+
}
|
83
|
+
class Center extends HorizontalGetter {
|
84
|
+
verticalGetterOrder = [new BottomOuter(), new TopOuter()];
|
85
|
+
styleGetter(parentRect) {
|
86
|
+
return {
|
87
|
+
left: parentRect.left + parentRect.width / 2 + "px"
|
88
|
+
};
|
89
|
+
}
|
90
|
+
marginGetter() {
|
91
|
+
return 0;
|
92
|
+
}
|
93
|
+
widthStyleGetter(parentRect) {
|
94
|
+
return {
|
95
|
+
width: "0px"
|
96
|
+
};
|
97
|
+
}
|
98
|
+
}
|
99
|
+
class LeftInner extends HorizontalGetter {
|
100
|
+
verticalGetterOrder = [new BottomOuter(), new TopOuter()];
|
101
|
+
styleGetter(parentRect) {
|
102
|
+
return { right: document.documentElement.clientWidth - parentRect.right + "px" };
|
103
|
+
}
|
104
|
+
marginGetter(parentRect, maxWidth) {
|
105
|
+
return parentRect.right - maxWidth - EDGE;
|
106
|
+
}
|
107
|
+
}
|
108
|
+
class LeftOuter extends HorizontalGetter {
|
109
|
+
verticalGetterOrder = [new BottomInner(), new TopInner()];
|
110
|
+
styleGetter(parentRect) {
|
111
|
+
return { right: document.documentElement.clientWidth - parentRect.left + "px" };
|
112
|
+
}
|
113
|
+
marginGetter(parentRect, maxWidth) {
|
114
|
+
return parentRect.left - maxWidth - EDGE;
|
115
|
+
}
|
116
|
+
}
|
117
|
+
const horizontalGetterOrderMap = {
|
118
|
+
[HorizontalAlign.RIGHT_OUTER]: [new RightOuter(), new LeftOuter(), new RightInner(), new LeftInner()],
|
119
|
+
[HorizontalAlign.RIGHT_INNER]: [new RightInner(), new LeftInner()],
|
120
|
+
[HorizontalAlign.FILL]: [new Fill()],
|
121
|
+
[HorizontalAlign.CENTER]: [new Center()],
|
122
|
+
[HorizontalAlign.LEFT_INNER]: [new LeftInner(), new RightInner()],
|
123
|
+
[HorizontalAlign.LEFT_OUTER]: [new LeftOuter(), new RightOuter(), new LeftInner(), new RightInner()]
|
124
|
+
};
|
125
|
+
function searchStyleGetter(order, parentRect, maxHeightOrWidth) {
|
126
|
+
const margins = [];
|
127
|
+
return order.find((item) => {
|
128
|
+
const margin = item.marginGetter(parentRect, maxHeightOrWidth);
|
129
|
+
margins.push(margin);
|
130
|
+
return margin >= 0;
|
131
|
+
}) || order[margins.indexOf(Math.max(...margins))];
|
132
|
+
}
|
133
|
+
function _maxHeightOrWidthGetter(getter, parentRect, maxHeightOrWidth) {
|
134
|
+
const margin = getter.marginGetter(parentRect, maxHeightOrWidth);
|
135
|
+
if (margin > 0)
|
136
|
+
return maxHeightOrWidth;
|
137
|
+
else
|
138
|
+
return maxHeightOrWidth + margin;
|
139
|
+
}
|
140
|
+
|
141
|
+
export { HorizontalGetter, VerticalGetter, horizontalGetterOrderMap, searchStyleGetter };
|
@@ -0,0 +1,72 @@
|
|
1
|
+
import type { HorizontalAlign } from '../../utils/HorizontalAlign';
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
3
|
+
isOpen: {
|
4
|
+
type: import("vue").PropType<boolean>;
|
5
|
+
required: true;
|
6
|
+
};
|
7
|
+
maxHeight: {
|
8
|
+
type: import("vue").PropType<number>;
|
9
|
+
required: true;
|
10
|
+
};
|
11
|
+
maxWidth: {
|
12
|
+
type: import("vue").PropType<number>;
|
13
|
+
required: true;
|
14
|
+
};
|
15
|
+
horizontalAlign: {
|
16
|
+
type: import("vue").PropType<HorizontalAlign>;
|
17
|
+
required: true;
|
18
|
+
};
|
19
|
+
updateAlign: {
|
20
|
+
type: import("vue").PropType<boolean>;
|
21
|
+
};
|
22
|
+
emitUpdate: {
|
23
|
+
type: import("vue").PropType<boolean>;
|
24
|
+
};
|
25
|
+
teleport: {
|
26
|
+
type: import("vue").PropType<boolean>;
|
27
|
+
};
|
28
|
+
}, {
|
29
|
+
updateDropdown: () => void;
|
30
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
31
|
+
"update:rect": () => void;
|
32
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
33
|
+
isOpen: {
|
34
|
+
type: import("vue").PropType<boolean>;
|
35
|
+
required: true;
|
36
|
+
};
|
37
|
+
maxHeight: {
|
38
|
+
type: import("vue").PropType<number>;
|
39
|
+
required: true;
|
40
|
+
};
|
41
|
+
maxWidth: {
|
42
|
+
type: import("vue").PropType<number>;
|
43
|
+
required: true;
|
44
|
+
};
|
45
|
+
horizontalAlign: {
|
46
|
+
type: import("vue").PropType<HorizontalAlign>;
|
47
|
+
required: true;
|
48
|
+
};
|
49
|
+
updateAlign: {
|
50
|
+
type: import("vue").PropType<boolean>;
|
51
|
+
};
|
52
|
+
emitUpdate: {
|
53
|
+
type: import("vue").PropType<boolean>;
|
54
|
+
};
|
55
|
+
teleport: {
|
56
|
+
type: import("vue").PropType<boolean>;
|
57
|
+
};
|
58
|
+
}>> & {
|
59
|
+
"onUpdate:rect"?: (() => any) | undefined;
|
60
|
+
}, {}, {}>, {
|
61
|
+
toggle?(_: {
|
62
|
+
unclickable: boolean;
|
63
|
+
}): any;
|
64
|
+
content?(_: {}): any;
|
65
|
+
}>;
|
66
|
+
export default _default;
|
67
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
68
|
+
new (): {
|
69
|
+
$slots: S;
|
70
|
+
};
|
71
|
+
};
|
72
|
+
//# sourceMappingURL=WDropdownMenu.vue.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"WDropdownMenu.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/DropdownMenu/WDropdownMenu.vue.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,yBAAyB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsK5D,wBAA8G;AAiB9G,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
|
@@ -0,0 +1,71 @@
|
|
1
|
+
import { defineComponent, ref, openBlock, createElementBlock, renderSlot, createBlock, Teleport, createVNode, Transition, withCtx, normalizeClass, createCommentVNode } from 'vue';
|
2
|
+
import _sfc_main$1 from '../Dropdown/WDropdown.vue.js';
|
3
|
+
|
4
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
5
|
+
__name: "WDropdownMenu",
|
6
|
+
props: {
|
7
|
+
isOpen: { type: Boolean },
|
8
|
+
maxHeight: {},
|
9
|
+
maxWidth: {},
|
10
|
+
horizontalAlign: {},
|
11
|
+
updateAlign: { type: Boolean },
|
12
|
+
emitUpdate: { type: Boolean },
|
13
|
+
teleport: { type: Boolean }
|
14
|
+
},
|
15
|
+
emits: ["update:rect"],
|
16
|
+
setup(__props, { expose: __expose }) {
|
17
|
+
const container = ref();
|
18
|
+
const dropdown = ref();
|
19
|
+
__expose({
|
20
|
+
updateDropdown: () => {
|
21
|
+
dropdown.value?.update();
|
22
|
+
}
|
23
|
+
});
|
24
|
+
return (_ctx, _cache) => {
|
25
|
+
return openBlock(), createElementBlock("div", {
|
26
|
+
ref_key: "container",
|
27
|
+
ref: container
|
28
|
+
}, [
|
29
|
+
renderSlot(_ctx.$slots, "toggle", { unclickable: false }),
|
30
|
+
(openBlock(), createBlock(Teleport, {
|
31
|
+
to: "body",
|
32
|
+
disabled: !_ctx.teleport || !_ctx.isOpen
|
33
|
+
}, [
|
34
|
+
createVNode(Transition, {
|
35
|
+
"enter-active-class": "transition-opacity",
|
36
|
+
"leave-active-class": "transition-opacity",
|
37
|
+
"enter-from-class": "opacity-0",
|
38
|
+
"leave-to-class": "opacity-0"
|
39
|
+
}, {
|
40
|
+
default: withCtx(() => [
|
41
|
+
container.value && _ctx.isOpen ? (openBlock(), createBlock(_sfc_main$1, {
|
42
|
+
key: 0,
|
43
|
+
ref_key: "dropdown",
|
44
|
+
ref: dropdown,
|
45
|
+
"parent-element": container.value,
|
46
|
+
"horizontal-align": _ctx.horizontalAlign,
|
47
|
+
"update-align": _ctx.updateAlign,
|
48
|
+
"max-height": _ctx.maxHeight,
|
49
|
+
"max-width": _ctx.maxWidth,
|
50
|
+
"emit-update": _ctx.emitUpdate,
|
51
|
+
class: normalizeClass({
|
52
|
+
"z-[2]": !_ctx.teleport,
|
53
|
+
"z-30": _ctx.teleport
|
54
|
+
}),
|
55
|
+
"onUpdate:rect": _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:rect"))
|
56
|
+
}, {
|
57
|
+
default: withCtx(() => [
|
58
|
+
renderSlot(_ctx.$slots, "content")
|
59
|
+
]),
|
60
|
+
_: 3
|
61
|
+
}, 8, ["parent-element", "horizontal-align", "update-align", "max-height", "max-width", "emit-update", "class"])) : createCommentVNode("", true)
|
62
|
+
]),
|
63
|
+
_: 3
|
64
|
+
})
|
65
|
+
], 8, ["disabled"]))
|
66
|
+
], 512);
|
67
|
+
};
|
68
|
+
}
|
69
|
+
});
|
70
|
+
|
71
|
+
export { _sfc_main as default };
|