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,43 @@
|
|
1
|
+
import { defineComponent, openBlock, createElementBlock, createElementVNode, normalizeClass, createBlock, resolveDynamicComponent, toDisplayString, withCtx, createCommentVNode } from 'vue';
|
2
|
+
import _sfc_main$1 from '../Tooltip/WTooltip.vue.js';
|
3
|
+
|
4
|
+
const _hoisted_1 = { class: "border-r border-solid border-gray-300 dark:border-gray-700 last:border-r-0" };
|
5
|
+
const _hoisted_2 = ["disabled"];
|
6
|
+
const _hoisted_3 = { class: "whitespace-nowrap font-normal text-base sm-not:hidden" };
|
7
|
+
const _hoisted_4 = { class: "whitespace-nowrap" };
|
8
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
9
|
+
__name: "WButtonSelectionAction",
|
10
|
+
props: {
|
11
|
+
title: {},
|
12
|
+
icon: {},
|
13
|
+
disableMessage: {},
|
14
|
+
active: { type: Boolean }
|
15
|
+
},
|
16
|
+
emits: ["click"],
|
17
|
+
setup(__props) {
|
18
|
+
return (_ctx, _cache) => {
|
19
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
20
|
+
createElementVNode("button", {
|
21
|
+
disabled: _ctx.disableMessage !== void 0,
|
22
|
+
class: normalizeClass(["relative h-9 flex gap-2 px-5 sm:px-[1.125rem] items-center select-none cursor-pointer no-underline outline-none border-none bg-none disabled:text-description disabled:cursor-not-allowed", {
|
23
|
+
"w-ripple w-ripple-hover before:text-primary-default dark:before:text-primary-dark hover:text-primary-default dark:hover:text-primary-dark": !_ctx.disableMessage,
|
24
|
+
"text-primary-default dark:text-primary-dark": _ctx.active,
|
25
|
+
"text-accent": !_ctx.active
|
26
|
+
}]),
|
27
|
+
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("click"))
|
28
|
+
}, [
|
29
|
+
(openBlock(), createBlock(resolveDynamicComponent(_ctx.icon))),
|
30
|
+
createElementVNode("div", _hoisted_3, toDisplayString(_ctx.title), 1)
|
31
|
+
], 10, _hoisted_2),
|
32
|
+
_ctx.disableMessage ? (openBlock(), createBlock(_sfc_main$1, { key: 0 }, {
|
33
|
+
default: withCtx(() => [
|
34
|
+
createElementVNode("div", _hoisted_4, toDisplayString(_ctx.disableMessage), 1)
|
35
|
+
]),
|
36
|
+
_: 1
|
37
|
+
})) : createCommentVNode("", true)
|
38
|
+
]);
|
39
|
+
};
|
40
|
+
}
|
41
|
+
});
|
42
|
+
|
43
|
+
export { _sfc_main as default };
|
@@ -0,0 +1,5 @@
|
|
1
|
+
import { SemanticType } from '../../../utils/SemanticType';
|
2
|
+
export declare const semanticTypeButtonStylesMap: Record<SemanticType, string>;
|
3
|
+
export declare const semanticTypeIconStylesMap: Record<SemanticType, string>;
|
4
|
+
export declare const semanticTypeTextStylesMap: Record<SemanticType, string>;
|
5
|
+
//# sourceMappingURL=semanticTypeStylesMap.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"semanticTypeStylesMap.d.ts","sourceRoot":"","sources":["../../../../../src/components/Button/models/semanticTypeStylesMap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAA;AAEjD,eAAO,MAAM,2BAA2B,EAAE,MAAM,CAAC,YAAY,EAAE,MAAM,CAOpE,CAAA;AAED,eAAO,MAAM,yBAAyB,EAAE,MAAM,CAAC,YAAY,EAAE,MAAM,CAGlE,CAAA;AAED,eAAO,MAAM,yBAAyB,EAAE,MAAM,CAAC,YAAY,EAAE,MAAM,CAOlE,CAAA"}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import { SemanticType } from '../../../utils/SemanticType.js';
|
2
|
+
|
3
|
+
const semanticTypeButtonStylesMap = {
|
4
|
+
[SemanticType.PRIMARY]: "bg-primary-default dark:bg-primary-dark text-secondary-default w-ripple-opacity-20 dark:w-ripple-opacity-30",
|
5
|
+
[SemanticType.SECONDARY]: "bg-secondary-default dark:bg-default-dark text-accent border border-solid border-gray-300 dark:border-gray-700 dark:w-ripple-opacity-30",
|
6
|
+
[SemanticType.NEGARIVE]: "bg-negative dark:bg-negative-dark text-secondary-default dark:text-default-dark w-ripple-opacity-20 dark:w-ripple-opacity-30",
|
7
|
+
[SemanticType.POSITIVE]: "bg-positive dark:bg-positive-dark text-secondary-default dark:text-default-dark w-ripple-opacity-20 dark:w-ripple-opacity-30",
|
8
|
+
[SemanticType.WARNING]: "bg-warning dark:bg-warning-dark text-black-default dark:text-default-dark dark:w-ripple-opacity-30",
|
9
|
+
[SemanticType.INFO]: "bg-info dark:bg-info-dark text-secondary-default dark:text-default-dark w-ripple-opacity-20 dark:w-ripple-opacity-30"
|
10
|
+
};
|
11
|
+
const semanticTypeIconStylesMap = {
|
12
|
+
...semanticTypeButtonStylesMap,
|
13
|
+
[SemanticType.SECONDARY]: "bg-gray-400 dark:bg-gray-500 text-secondary-default"
|
14
|
+
};
|
15
|
+
const semanticTypeTextStylesMap = {
|
16
|
+
[SemanticType.PRIMARY]: "text-primary-default dark:text-primary-dark",
|
17
|
+
[SemanticType.SECONDARY]: "text-description",
|
18
|
+
[SemanticType.NEGARIVE]: "text-negative dark:text-negative-dark",
|
19
|
+
[SemanticType.POSITIVE]: "text-positive dark:text-positive-dark",
|
20
|
+
[SemanticType.WARNING]: "text-warning dark:text-warning-dark",
|
21
|
+
[SemanticType.INFO]: "text-info dark:text-info-dark"
|
22
|
+
};
|
23
|
+
|
24
|
+
export { semanticTypeButtonStylesMap, semanticTypeIconStylesMap, semanticTypeTextStylesMap };
|
@@ -0,0 +1,72 @@
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
2
|
+
modelValue: {
|
3
|
+
type: import("vue").PropType<boolean | null>;
|
4
|
+
required: true;
|
5
|
+
};
|
6
|
+
title: {
|
7
|
+
type: import("vue").PropType<string>;
|
8
|
+
};
|
9
|
+
disabled: {
|
10
|
+
type: import("vue").PropType<boolean>;
|
11
|
+
};
|
12
|
+
readonly: {
|
13
|
+
type: import("vue").PropType<boolean>;
|
14
|
+
};
|
15
|
+
icon: {
|
16
|
+
type: import("vue").PropType<SVGComponent>;
|
17
|
+
};
|
18
|
+
radio: {
|
19
|
+
type: import("vue").PropType<boolean>;
|
20
|
+
};
|
21
|
+
loading: {
|
22
|
+
type: import("vue").PropType<boolean>;
|
23
|
+
};
|
24
|
+
intermediate: {
|
25
|
+
type: import("vue").PropType<boolean>;
|
26
|
+
};
|
27
|
+
tooltipText: {
|
28
|
+
type: import("vue").PropType<string>;
|
29
|
+
};
|
30
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
31
|
+
"update:modelValue": (value: boolean) => void;
|
32
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
33
|
+
modelValue: {
|
34
|
+
type: import("vue").PropType<boolean | null>;
|
35
|
+
required: true;
|
36
|
+
};
|
37
|
+
title: {
|
38
|
+
type: import("vue").PropType<string>;
|
39
|
+
};
|
40
|
+
disabled: {
|
41
|
+
type: import("vue").PropType<boolean>;
|
42
|
+
};
|
43
|
+
readonly: {
|
44
|
+
type: import("vue").PropType<boolean>;
|
45
|
+
};
|
46
|
+
icon: {
|
47
|
+
type: import("vue").PropType<SVGComponent>;
|
48
|
+
};
|
49
|
+
radio: {
|
50
|
+
type: import("vue").PropType<boolean>;
|
51
|
+
};
|
52
|
+
loading: {
|
53
|
+
type: import("vue").PropType<boolean>;
|
54
|
+
};
|
55
|
+
intermediate: {
|
56
|
+
type: import("vue").PropType<boolean>;
|
57
|
+
};
|
58
|
+
tooltipText: {
|
59
|
+
type: import("vue").PropType<string>;
|
60
|
+
};
|
61
|
+
}>> & {
|
62
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
63
|
+
}, {}, {}>, {
|
64
|
+
default?(_: {}): any;
|
65
|
+
}>;
|
66
|
+
export default _default;
|
67
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
68
|
+
new (): {
|
69
|
+
$slots: S;
|
70
|
+
};
|
71
|
+
};
|
72
|
+
//# sourceMappingURL=WCheckbox.vue.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"WCheckbox.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Checkbox/WCheckbox.vue.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkPA,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,113 @@
|
|
1
|
+
import { defineComponent, ref, computed, openBlock, createElementBlock, normalizeClass, createElementVNode, withKeys, withModifiers, createVNode, Transition, withCtx, withDirectives, vShow, createBlock, resolveDynamicComponent, unref, createCommentVNode, renderSlot, createTextVNode, toDisplayString } from 'vue';
|
2
|
+
import IconCheck from '../../assets/icons/default/IconCheck.svg.js';
|
3
|
+
import _sfc_main$1 from '../Tooltip/WTooltip.vue.js';
|
4
|
+
import WSpinner from '../Spinner/WSpinner.vue.js';
|
5
|
+
|
6
|
+
const _hoisted_1 = ["onKeypress"];
|
7
|
+
const _hoisted_2 = {
|
8
|
+
key: 0,
|
9
|
+
class: "font-normal text-base text-accent flex items-center gap-1"
|
10
|
+
};
|
11
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
12
|
+
__name: "WCheckbox",
|
13
|
+
props: {
|
14
|
+
modelValue: { type: [Boolean, null] },
|
15
|
+
title: {},
|
16
|
+
disabled: { type: Boolean },
|
17
|
+
readonly: { type: Boolean },
|
18
|
+
icon: {},
|
19
|
+
radio: { type: Boolean },
|
20
|
+
loading: { type: Boolean },
|
21
|
+
intermediate: { type: Boolean },
|
22
|
+
tooltipText: {}
|
23
|
+
},
|
24
|
+
emits: ["update:modelValue"],
|
25
|
+
setup(__props, { emit }) {
|
26
|
+
const props = __props;
|
27
|
+
const element = ref();
|
28
|
+
const value = computed({
|
29
|
+
get: () => props.modelValue,
|
30
|
+
set: (value2) => emit("update:modelValue", value2 === true)
|
31
|
+
});
|
32
|
+
const toggle = () => {
|
33
|
+
if (props.disabled || props.readonly || props.loading)
|
34
|
+
return;
|
35
|
+
value.value = !value.value;
|
36
|
+
};
|
37
|
+
return (_ctx, _cache) => {
|
38
|
+
return openBlock(), createElementBlock("button", {
|
39
|
+
ref_key: "element",
|
40
|
+
ref: element,
|
41
|
+
class: normalizeClass(["flex gap-2 cursor-pointer select-none outline-none w-ripple-trigger w-hover-circle-trigger items-center w-hover-circle-opacity-[0.08]", {
|
42
|
+
"cursor-progress": _ctx.loading,
|
43
|
+
"cursor-not-allowed opacity-70": _ctx.disabled,
|
44
|
+
"pt-1 pb-4": _ctx.title
|
45
|
+
}]),
|
46
|
+
onClick: toggle
|
47
|
+
}, [
|
48
|
+
createElementVNode("div", {
|
49
|
+
class: normalizeClass(["relative flex justify-center items-center square-6 border border-solid isolate bg-default dark:bg-default-dark", {
|
50
|
+
"text-default dark:text-default-dark": value.value && !_ctx.disabled,
|
51
|
+
"text-primary-default dark:text-primary-dark": !value.value && !_ctx.disabled,
|
52
|
+
"text-gray-300 dark:text-gray-700": !value.value && _ctx.disabled,
|
53
|
+
"w-ripple w-hover-circle before:text-accent after:text-accent": !_ctx.disabled && !_ctx.readonly,
|
54
|
+
"rounded-full": _ctx.radio,
|
55
|
+
"rounded-md": !_ctx.radio,
|
56
|
+
"border-gray-300 dark:border-gray-700": _ctx.disabled,
|
57
|
+
"border-primary-default dark:border-primary-dark": !_ctx.disabled
|
58
|
+
}]),
|
59
|
+
onKeypress: withKeys(withModifiers(toggle, ["stop", "prevent"]), ["enter"])
|
60
|
+
}, [
|
61
|
+
createVNode(Transition, {
|
62
|
+
"enter-active-class": "transition-[opacity,transform]",
|
63
|
+
"leave-active-class": "transition-[opacity,transform]",
|
64
|
+
"enter-from-class": _ctx.radio ? "opacity-0 scale-[0.25!important]" : "opacity-0 scale-[0.50!important]",
|
65
|
+
"leave-to-class": _ctx.radio ? "opacity-0 scale-[0.25!important]" : "opacity-0 scale-[0.50!important]"
|
66
|
+
}, {
|
67
|
+
default: withCtx(() => [
|
68
|
+
withDirectives(createElementVNode("div", {
|
69
|
+
class: normalizeClass(["absolute square-full -z-10 transition-[opacity,transform]", {
|
70
|
+
"scale-[0.33] rounded-full": _ctx.radio && _ctx.intermediate && value.value === null,
|
71
|
+
"scale-[0.66] rounded": !_ctx.radio && _ctx.intermediate && value.value === null,
|
72
|
+
"scale-[0.66] rounded-full": _ctx.radio && !(_ctx.intermediate && value.value === null),
|
73
|
+
"rounded": !_ctx.radio && !(_ctx.intermediate && value.value === null),
|
74
|
+
"bg-primary-default dark:bg-primary-dark": !_ctx.disabled,
|
75
|
+
"bg-gray-300 dark:bg-gray-700": _ctx.disabled
|
76
|
+
}])
|
77
|
+
}, null, 2), [
|
78
|
+
[vShow, value.value !== false]
|
79
|
+
])
|
80
|
+
]),
|
81
|
+
_: 1
|
82
|
+
}, 8, ["enter-from-class", "leave-to-class"]),
|
83
|
+
_ctx.loading ? (openBlock(), createBlock(WSpinner, {
|
84
|
+
key: 0,
|
85
|
+
class: "w-spinner-size-4"
|
86
|
+
})) : _ctx.icon ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.icon), {
|
87
|
+
key: 1,
|
88
|
+
class: "square-4"
|
89
|
+
})) : !_ctx.radio ? withDirectives((openBlock(), createBlock(unref(IconCheck), {
|
90
|
+
key: 2,
|
91
|
+
class: "square-4"
|
92
|
+
}, null, 512)), [
|
93
|
+
[vShow, value.value]
|
94
|
+
]) : createCommentVNode("", true),
|
95
|
+
_ctx.tooltipText ? (openBlock(), createBlock(_sfc_main$1, {
|
96
|
+
key: 3,
|
97
|
+
text: _ctx.tooltipText,
|
98
|
+
trigger: element.value,
|
99
|
+
"no-touch": "",
|
100
|
+
class: "pointer-events-none"
|
101
|
+
}, null, 8, ["text", "trigger"])) : createCommentVNode("", true)
|
102
|
+
], 42, _hoisted_1),
|
103
|
+
_ctx.$slots.default?.().length || _ctx.title ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
104
|
+
renderSlot(_ctx.$slots, "default", {}, () => [
|
105
|
+
createTextVNode(toDisplayString(_ctx.title), 1)
|
106
|
+
])
|
107
|
+
])) : createCommentVNode("", true)
|
108
|
+
], 2);
|
109
|
+
};
|
110
|
+
}
|
111
|
+
});
|
112
|
+
|
113
|
+
export { _sfc_main as default };
|
@@ -0,0 +1,31 @@
|
|
1
|
+
import { SemanticType } from '../../utils/SemanticType';
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
3
|
+
text: {
|
4
|
+
type: import("vue").PropType<string>;
|
5
|
+
};
|
6
|
+
semanticType: {
|
7
|
+
type: import("vue").PropType<SemanticType>;
|
8
|
+
};
|
9
|
+
skeleton: {
|
10
|
+
type: import("vue").PropType<boolean>;
|
11
|
+
};
|
12
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
13
|
+
text: {
|
14
|
+
type: import("vue").PropType<string>;
|
15
|
+
};
|
16
|
+
semanticType: {
|
17
|
+
type: import("vue").PropType<SemanticType>;
|
18
|
+
};
|
19
|
+
skeleton: {
|
20
|
+
type: import("vue").PropType<boolean>;
|
21
|
+
};
|
22
|
+
}>>, {}, {}>, {
|
23
|
+
default?(_: {}): any;
|
24
|
+
}>;
|
25
|
+
export default _default;
|
26
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
27
|
+
new (): {
|
28
|
+
$slots: S;
|
29
|
+
};
|
30
|
+
};
|
31
|
+
//# sourceMappingURL=WChip.vue.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"WChip.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Chip/WChip.vue.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;AAwGjD,wBAA8G;AAI9G,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
|
@@ -0,0 +1,37 @@
|
|
1
|
+
import { defineComponent, openBlock, createBlock, createElementBlock, normalizeClass, unref, renderSlot, createTextVNode, toDisplayString } from 'vue';
|
2
|
+
import { SemanticType } from '../../utils/SemanticType.js';
|
3
|
+
import WSkeleton from '../Skeleton/WSkeleton.vue.js';
|
4
|
+
|
5
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
6
|
+
__name: "WChip",
|
7
|
+
props: {
|
8
|
+
text: {},
|
9
|
+
semanticType: {},
|
10
|
+
skeleton: { type: Boolean }
|
11
|
+
},
|
12
|
+
setup(__props) {
|
13
|
+
const classMap = {
|
14
|
+
[SemanticType.PRIMARY]: "text-primary-default dark:text-primary-dark",
|
15
|
+
[SemanticType.SECONDARY]: "text-description",
|
16
|
+
[SemanticType.POSITIVE]: "text-positive dark:text-positive-dark",
|
17
|
+
[SemanticType.NEGARIVE]: "text-negative dark:text-negative-dark",
|
18
|
+
[SemanticType.WARNING]: "text-warning dark:text-warning-dark",
|
19
|
+
[SemanticType.INFO]: "text-info dark:text-info-dark"
|
20
|
+
};
|
21
|
+
return (_ctx, _cache) => {
|
22
|
+
return _ctx.skeleton ? (openBlock(), createBlock(WSkeleton, {
|
23
|
+
key: 0,
|
24
|
+
class: "h-5 max-w-28"
|
25
|
+
})) : (openBlock(), createElementBlock("div", {
|
26
|
+
key: 1,
|
27
|
+
class: normalizeClass(["text-xs font-semibold bg-gray-100 dark:bg-gray-800 rounded-md w-min px-2 py-0.5", classMap[_ctx.semanticType ?? unref(SemanticType).SECONDARY]])
|
28
|
+
}, [
|
29
|
+
renderSlot(_ctx.$slots, "default", {}, () => [
|
30
|
+
createTextVNode(toDisplayString(_ctx.text), 1)
|
31
|
+
])
|
32
|
+
], 2));
|
33
|
+
};
|
34
|
+
}
|
35
|
+
});
|
36
|
+
|
37
|
+
export { _sfc_main as default };
|
@@ -0,0 +1,14 @@
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
2
|
+
click: () => void;
|
3
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
|
4
|
+
onClick?: (() => any) | undefined;
|
5
|
+
}, {}, {}>, {
|
6
|
+
default?(_: {}): any;
|
7
|
+
}>;
|
8
|
+
export default _default;
|
9
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
10
|
+
new (): {
|
11
|
+
$slots: S;
|
12
|
+
};
|
13
|
+
};
|
14
|
+
//# sourceMappingURL=WClickOutside.vue.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"WClickOutside.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/ClickOutside/WClickOutside.vue.ts"],"names":[],"mappings":";;;;;;;AA4FA,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,36 @@
|
|
1
|
+
import { defineComponent, ref, onMounted, onBeforeUnmount, openBlock, createElementBlock, renderSlot } from 'vue';
|
2
|
+
import { isClientSide, hasParent } from '../../utils/utils.js';
|
3
|
+
|
4
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
5
|
+
__name: "WClickOutside",
|
6
|
+
emits: ["click"],
|
7
|
+
setup(__props, { emit }) {
|
8
|
+
const element = ref();
|
9
|
+
const clickListener = (event) => {
|
10
|
+
if (element.value && event.target instanceof Element && !hasParent(element.value, event.target))
|
11
|
+
emit("click");
|
12
|
+
};
|
13
|
+
onMounted(() => {
|
14
|
+
if (!isClientSide)
|
15
|
+
return;
|
16
|
+
setTimeout(() => {
|
17
|
+
document.addEventListener("click", clickListener);
|
18
|
+
});
|
19
|
+
});
|
20
|
+
onBeforeUnmount(() => {
|
21
|
+
if (!isClientSide)
|
22
|
+
return;
|
23
|
+
document.removeEventListener("click", clickListener);
|
24
|
+
});
|
25
|
+
return (_ctx, _cache) => {
|
26
|
+
return openBlock(), createElementBlock("div", {
|
27
|
+
ref_key: "element",
|
28
|
+
ref: element
|
29
|
+
}, [
|
30
|
+
renderSlot(_ctx.$slots, "default")
|
31
|
+
], 512);
|
32
|
+
};
|
33
|
+
}
|
34
|
+
});
|
35
|
+
|
36
|
+
export { _sfc_main as default };
|
@@ -0,0 +1,29 @@
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
2
|
+
small: {
|
3
|
+
type: import("vue").PropType<boolean>;
|
4
|
+
};
|
5
|
+
count: {
|
6
|
+
type: import("vue").PropType<number>;
|
7
|
+
required: true;
|
8
|
+
};
|
9
|
+
trigger: {
|
10
|
+
type: import("vue").PropType<number>;
|
11
|
+
default: number;
|
12
|
+
};
|
13
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
14
|
+
small: {
|
15
|
+
type: import("vue").PropType<boolean>;
|
16
|
+
};
|
17
|
+
count: {
|
18
|
+
type: import("vue").PropType<number>;
|
19
|
+
required: true;
|
20
|
+
};
|
21
|
+
trigger: {
|
22
|
+
type: import("vue").PropType<number>;
|
23
|
+
default: number;
|
24
|
+
};
|
25
|
+
}>>, {
|
26
|
+
trigger: number;
|
27
|
+
}, {}>;
|
28
|
+
export default _default;
|
29
|
+
//# sourceMappingURL=WCounter.vue.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"WCounter.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Counter/WCounter.vue.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAqGA,wBAAkD"}
|
@@ -0,0 +1,38 @@
|
|
1
|
+
import { defineComponent, ref, watch, toRef, openBlock, createElementBlock, normalizeClass, toDisplayString, unref } from 'vue';
|
2
|
+
import { numberCompactFormatter } from '../../utils/utils.js';
|
3
|
+
|
4
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
5
|
+
__name: "WCounter",
|
6
|
+
props: {
|
7
|
+
count: {},
|
8
|
+
trigger: { default: 2 },
|
9
|
+
small: { type: Boolean }
|
10
|
+
},
|
11
|
+
setup(__props) {
|
12
|
+
const props = __props;
|
13
|
+
const isShake = ref(false);
|
14
|
+
let timeout = null;
|
15
|
+
watch(toRef(props, "count"), (value) => {
|
16
|
+
if (value >= props.trigger) {
|
17
|
+
isShake.value = true;
|
18
|
+
if (timeout)
|
19
|
+
clearTimeout(timeout);
|
20
|
+
timeout = setTimeout(() => {
|
21
|
+
isShake.value = false;
|
22
|
+
timeout = null;
|
23
|
+
}, 600);
|
24
|
+
}
|
25
|
+
});
|
26
|
+
return (_ctx, _cache) => {
|
27
|
+
return openBlock(), createElementBlock("div", {
|
28
|
+
class: normalizeClass(["px-1 bg-negative dark:bg-negative-dark text-default text-xs font-medium flex items-center justify-center", {
|
29
|
+
"animate-shake": isShake.value,
|
30
|
+
"h-4 min-w-[1rem] rounded-lg": _ctx.small,
|
31
|
+
"h-5 min-w-[1.25rem] rounded-[0.625rem]": !_ctx.small
|
32
|
+
}])
|
33
|
+
}, toDisplayString(unref(numberCompactFormatter).format(_ctx.count)), 3);
|
34
|
+
};
|
35
|
+
}
|
36
|
+
});
|
37
|
+
|
38
|
+
export { _sfc_main as default };
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import type { DateRange } from './models/types';
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
3
|
+
modelValue: {
|
4
|
+
type: import("vue").PropType<DateRange | undefined>;
|
5
|
+
required: true;
|
6
|
+
};
|
7
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
8
|
+
"update:modelValue": (value: DateRange | undefined) => void;
|
9
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
10
|
+
modelValue: {
|
11
|
+
type: import("vue").PropType<DateRange | undefined>;
|
12
|
+
required: true;
|
13
|
+
};
|
14
|
+
}>> & {
|
15
|
+
"onUpdate:modelValue"?: ((value: DateRange | undefined) => any) | undefined;
|
16
|
+
}, {}, {}>;
|
17
|
+
export default _default;
|
18
|
+
//# sourceMappingURL=WDatePicker.vue.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"WDatePicker.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/DatePicker/WDatePicker.vue.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAA;;;;;;;;;;;;;;;;AAgR7C,wBAAkD"}
|
@@ -0,0 +1,131 @@
|
|
1
|
+
import { defineComponent, ref, computed, watch, toRef, openBlock, createElementBlock, createElementVNode, createVNode, normalizeStyle, unref, Transition, withCtx, createBlock } from 'vue';
|
2
|
+
import { getStartOfMonth, getStartOfWeek, addDay, monthShortFormatter, addMonth, addYear } from '../../utils/dateTime.js';
|
3
|
+
import _sfc_main$3 from './components/CalendarMonth.vue.js';
|
4
|
+
import _sfc_main$2 from './components/CalendarToggle.vue.js';
|
5
|
+
import _sfc_main$1 from './components/CalendarValue.vue.js';
|
6
|
+
|
7
|
+
const _hoisted_1 = { class: "grid grid-cols-2 gap-8 mb-4" };
|
8
|
+
const _hoisted_2 = { class: "grid grid-cols-2 gap-8 px-3 pb-4" };
|
9
|
+
const _hoisted_3 = { class: "relative" };
|
10
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
11
|
+
__name: "WDatePicker",
|
12
|
+
props: {
|
13
|
+
modelValue: {}
|
14
|
+
},
|
15
|
+
emits: ["update:modelValue"],
|
16
|
+
setup(__props, { emit }) {
|
17
|
+
const props = __props;
|
18
|
+
const currentDate = ref(getStartOfMonth());
|
19
|
+
const dateRange = ref(props.modelValue);
|
20
|
+
const preselectedValue = ref(null);
|
21
|
+
const isDirect = ref(false);
|
22
|
+
const year = computed(() => currentDate.value.getFullYear());
|
23
|
+
const setCurrentDate = (value) => {
|
24
|
+
isDirect.value = value > currentDate.value;
|
25
|
+
currentDate.value = value;
|
26
|
+
};
|
27
|
+
const onClickDay = (value) => {
|
28
|
+
if (!preselectedValue.value) {
|
29
|
+
preselectedValue.value = value;
|
30
|
+
setRange(value);
|
31
|
+
} else {
|
32
|
+
setRange(value);
|
33
|
+
preselectedValue.value = null;
|
34
|
+
emit("update:modelValue", dateRange.value);
|
35
|
+
dateRange.value = void 0;
|
36
|
+
}
|
37
|
+
};
|
38
|
+
const setRange = (value) => {
|
39
|
+
if (!preselectedValue.value) {
|
40
|
+
dateRange.value = {
|
41
|
+
from: new Date(value),
|
42
|
+
to: new Date(value)
|
43
|
+
};
|
44
|
+
return;
|
45
|
+
}
|
46
|
+
if (value > preselectedValue.value) {
|
47
|
+
dateRange.value = {
|
48
|
+
from: new Date(preselectedValue.value),
|
49
|
+
to: new Date(value)
|
50
|
+
};
|
51
|
+
} else {
|
52
|
+
dateRange.value = {
|
53
|
+
from: new Date(value),
|
54
|
+
to: new Date(preselectedValue.value)
|
55
|
+
};
|
56
|
+
}
|
57
|
+
};
|
58
|
+
const firstDay = computed(() => getStartOfWeek(currentDate.value));
|
59
|
+
const lastDay = computed(() => addDay(firstDay.value, 41));
|
60
|
+
const isSameCalendarPage = (value) => {
|
61
|
+
return value >= firstDay.value && value <= lastDay.value;
|
62
|
+
};
|
63
|
+
watch(toRef(props, "modelValue"), (modelValue) => {
|
64
|
+
dateRange.value = modelValue;
|
65
|
+
if (!modelValue)
|
66
|
+
return;
|
67
|
+
if (!isSameCalendarPage(modelValue.from) && !isSameCalendarPage(modelValue.to)) {
|
68
|
+
setCurrentDate(getStartOfMonth(modelValue.from));
|
69
|
+
}
|
70
|
+
});
|
71
|
+
return (_ctx, _cache) => {
|
72
|
+
return openBlock(), createElementBlock("div", null, [
|
73
|
+
createElementVNode("div", _hoisted_1, [
|
74
|
+
createVNode(_sfc_main$1, {
|
75
|
+
title: "From:",
|
76
|
+
value: dateRange.value?.from,
|
77
|
+
"current-date": currentDate.value,
|
78
|
+
"auto-focus": "",
|
79
|
+
"onUpdate:currentDate": setCurrentDate
|
80
|
+
}, null, 8, ["value", "current-date"]),
|
81
|
+
createVNode(_sfc_main$1, {
|
82
|
+
title: "To:",
|
83
|
+
value: dateRange.value?.to,
|
84
|
+
"current-date": currentDate.value,
|
85
|
+
"onUpdate:currentDate": setCurrentDate
|
86
|
+
}, null, 8, ["value", "current-date"])
|
87
|
+
]),
|
88
|
+
createElementVNode("div", {
|
89
|
+
class: "bg-default dark:bg-default-dark border border-solid border-gray-300 dark:border-gray-700 rounded-xl py-3 overflow-hidden",
|
90
|
+
style: normalizeStyle({ "--direction-factor": isDirect.value ? "1" : "-1" })
|
91
|
+
}, [
|
92
|
+
createElementVNode("div", _hoisted_2, [
|
93
|
+
createVNode(_sfc_main$2, {
|
94
|
+
text: unref(monthShortFormatter).format(currentDate.value).toLocaleUpperCase(),
|
95
|
+
"onClick:previous": _cache[0] || (_cache[0] = ($event) => setCurrentDate(unref(addMonth)(currentDate.value, -1))),
|
96
|
+
"onClick:next": _cache[1] || (_cache[1] = ($event) => setCurrentDate(unref(addMonth)(currentDate.value, 1)))
|
97
|
+
}, null, 8, ["text"]),
|
98
|
+
createVNode(_sfc_main$2, {
|
99
|
+
text: year.value.toString(),
|
100
|
+
"onClick:previous": _cache[2] || (_cache[2] = ($event) => setCurrentDate(unref(addYear)(currentDate.value, -1))),
|
101
|
+
"onClick:next": _cache[3] || (_cache[3] = ($event) => setCurrentDate(unref(addYear)(currentDate.value, 1)))
|
102
|
+
}, null, 8, ["text"])
|
103
|
+
]),
|
104
|
+
createElementVNode("div", _hoisted_3, [
|
105
|
+
createVNode(Transition, {
|
106
|
+
"enter-active-class": "transition-transform duration-[250ms] w-full",
|
107
|
+
"leave-active-class": "transition-transform duration-[250ms] w-full absolute top-0",
|
108
|
+
"enter-from-class": "translate-x-[calc(100%*var(--direction-factor))]",
|
109
|
+
"leave-to-class": "translate-x-[calc(100%*var(--direction-factor)*-1)]"
|
110
|
+
}, {
|
111
|
+
default: withCtx(() => [
|
112
|
+
(openBlock(), createBlock(_sfc_main$3, {
|
113
|
+
key: currentDate.value.toISOString(),
|
114
|
+
"start-of-month": currentDate.value,
|
115
|
+
"date-range": dateRange.value,
|
116
|
+
"is-hover-enabled": preselectedValue.value !== null,
|
117
|
+
class: "px-3",
|
118
|
+
"onClick:day": onClickDay,
|
119
|
+
"onHover:day": setRange
|
120
|
+
}, null, 8, ["start-of-month", "date-range", "is-hover-enabled"]))
|
121
|
+
]),
|
122
|
+
_: 1
|
123
|
+
})
|
124
|
+
])
|
125
|
+
], 4)
|
126
|
+
]);
|
127
|
+
};
|
128
|
+
}
|
129
|
+
});
|
130
|
+
|
131
|
+
export { _sfc_main as default };
|