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,15 @@
|
|
1
|
+
import type { VNode } from 'vue';
|
2
|
+
export type TooltipMeta = {
|
3
|
+
parent: HTMLElement;
|
4
|
+
slot?: VNode;
|
5
|
+
text?: string;
|
6
|
+
light?: boolean;
|
7
|
+
key: number;
|
8
|
+
};
|
9
|
+
export type SetTooltipMeta = (meta: TooltipMeta | null) => void;
|
10
|
+
export declare const initTooltip: (value: SetTooltipMeta | undefined) => void;
|
11
|
+
export declare const Tooltip: {
|
12
|
+
add(meta: TooltipMeta): void;
|
13
|
+
close(): void;
|
14
|
+
};
|
15
|
+
//# sourceMappingURL=Tooltip.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../src/utils/Tooltip.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,KAAK,EAAC,MAAM,KAAK,CAAA;AAE9B,MAAM,MAAM,WAAW,GAAG;IAAC,MAAM,EAAE,WAAW,CAAC;IAAC,IAAI,CAAC,EAAE,KAAK,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,OAAO,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAC,CAAA;AAE1G,MAAM,MAAM,cAAc,GAAG,CAAC,IAAI,EAAE,WAAW,GAAG,IAAI,KAAK,IAAI,CAAA;AAI/D,eAAO,MAAM,WAAW,UAAW,cAAc,GAAG,SAAS,SAE5D,CAAA;AAED,eAAO,MAAM,OAAO;cACR,WAAW,GAAG,IAAI;aAGnB,IAAI;CAGd,CAAA"}
|
@@ -0,0 +1,44 @@
|
|
1
|
+
export declare const weekdayShortFormatter: Intl.DateTimeFormat;
|
2
|
+
export declare const monthShortFormatter: Intl.DateTimeFormat;
|
3
|
+
export declare const dateFormatter: Intl.DateTimeFormat;
|
4
|
+
export declare const dateRegexp: RegExp;
|
5
|
+
export declare const parseDate: (value: string) => Date | undefined;
|
6
|
+
export declare enum WeekDay {
|
7
|
+
SUNDAY = 0,
|
8
|
+
MONDAY = 1,
|
9
|
+
TUESDAY = 2,
|
10
|
+
WEDNESDAY = 3,
|
11
|
+
THURSDAY = 4,
|
12
|
+
FRIDAY = 5,
|
13
|
+
SATURDAY = 6
|
14
|
+
}
|
15
|
+
export declare enum Month {
|
16
|
+
JANUARY = 0,
|
17
|
+
FEBRUARY = 1,
|
18
|
+
MARCH = 2,
|
19
|
+
APRIL = 3,
|
20
|
+
MAY = 4,
|
21
|
+
JUNE = 5,
|
22
|
+
JULY = 6,
|
23
|
+
AUGUST = 7,
|
24
|
+
SEPTEMBER = 8,
|
25
|
+
OCTOBER = 9,
|
26
|
+
NOVEMBER = 10,
|
27
|
+
DECEMBER = 11
|
28
|
+
}
|
29
|
+
export declare function dateToQueryString(date: Date): string;
|
30
|
+
export declare function dateFormat(date: Date): string;
|
31
|
+
export declare function timeFormat(date: Date): string;
|
32
|
+
export declare function datetimeFormat(date: Date): string;
|
33
|
+
export declare function durationHumanize(durationSeconds: number, full?: boolean): string;
|
34
|
+
export declare function getDurationRound(seconds: number): number;
|
35
|
+
export declare function getStartOfMonth(date?: Date): Date;
|
36
|
+
export declare function addDay(date: Date | undefined, count: number): Date;
|
37
|
+
export declare function addMonth(date: Date | undefined, count: number): Date;
|
38
|
+
export declare function addYear(date: Date | undefined, count: number): Date;
|
39
|
+
export declare function getStartOfWeek(date?: Date, startFrom?: WeekDay): Date;
|
40
|
+
export declare function getStartOfDay(date?: Date): Date;
|
41
|
+
export declare function isSameDate(a: Date, b: Date): boolean;
|
42
|
+
export declare function isSameMonth(a: Date, b: Date): boolean;
|
43
|
+
export declare function isSameYear(a: Date, b: Date): boolean;
|
44
|
+
//# sourceMappingURL=dateTime.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"dateTime.d.ts","sourceRoot":"","sources":["../../../src/utils/dateTime.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB,qBAAgD,CAAA;AAClF,eAAO,MAAM,mBAAmB,qBAA8C,CAAA;AAC9E,eAAO,MAAM,aAAa,qBAAiF,CAAA;AAE3G,eAAO,MAAM,UAAU,QAA0B,CAAA;AAEjD,eAAO,MAAM,SAAS,UAAW,MAAM,KAAG,IAAI,GAAG,SAQhD,CAAA;AAED,oBAAY,OAAO;IACjB,MAAM,IAAI;IACV,MAAM,IAAI;IACV,OAAO,IAAI;IACX,SAAS,IAAI;IACb,QAAQ,IAAI;IACZ,MAAM,IAAI;IACV,QAAQ,IAAI;CACb;AAED,oBAAY,KAAK;IACf,OAAO,IAAI;IACX,QAAQ,IAAI;IACZ,KAAK,IAAI;IACT,KAAK,IAAI;IACT,GAAG,IAAI;IACP,IAAI,IAAI;IACR,IAAI,IAAI;IACR,MAAM,IAAI;IACV,SAAS,IAAI;IACb,OAAO,IAAI;IACX,QAAQ,KAAK;IACb,QAAQ,KAAK;CACd;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAMpD;AAED,wBAAgB,UAAU,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAI7C;AAED,wBAAgB,UAAU,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAE7C;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAEjD;AAED,wBAAgB,gBAAgB,CAAC,eAAe,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,OAAO,GAAG,MAAM,CAiChF;AAkCD,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAUxD;AAED,wBAAgB,eAAe,CAAC,IAAI,GAAE,IAAiB,GAAG,IAAI,CAQ7D;AAED,wBAAgB,MAAM,CAAC,IAAI,kBAAmB,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAMnE;AAED,wBAAgB,QAAQ,CAAC,IAAI,kBAAmB,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAMrE;AAED,wBAAgB,OAAO,CAAC,IAAI,kBAAmB,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAMpE;AAED,wBAAgB,cAAc,CAAC,IAAI,GAAE,IAAiB,EAAE,SAAS,GAAE,OAAwB,GAAG,IAAI,CAYjG;AAED,wBAAgB,aAAa,CAAC,IAAI,GAAE,IAAiB,GAAG,IAAI,CAM3D;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,GAAG,OAAO,CAEpD;AAED,wBAAgB,WAAW,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,GAAG,OAAO,CAErD;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,GAAG,OAAO,CAEpD"}
|
@@ -0,0 +1,187 @@
|
|
1
|
+
const weekdayShortFormatter = Intl.DateTimeFormat("en", { weekday: "short" });
|
2
|
+
const monthShortFormatter = Intl.DateTimeFormat("en", { month: "short" });
|
3
|
+
const dateFormatter = Intl.DateTimeFormat("en", { year: "numeric", month: "numeric", day: "numeric" });
|
4
|
+
const dateRegexp = /\d\d\.\d\d\.\d\d\d\d/i;
|
5
|
+
const parseDate = (value) => {
|
6
|
+
if (!dateRegexp.test(value))
|
7
|
+
return;
|
8
|
+
const timestamp = Date.parse(value.split(".").reverse().join("."));
|
9
|
+
if (isNaN(timestamp))
|
10
|
+
return;
|
11
|
+
return new Date(timestamp);
|
12
|
+
};
|
13
|
+
var WeekDay = /* @__PURE__ */ ((WeekDay2) => {
|
14
|
+
WeekDay2[WeekDay2["SUNDAY"] = 0] = "SUNDAY";
|
15
|
+
WeekDay2[WeekDay2["MONDAY"] = 1] = "MONDAY";
|
16
|
+
WeekDay2[WeekDay2["TUESDAY"] = 2] = "TUESDAY";
|
17
|
+
WeekDay2[WeekDay2["WEDNESDAY"] = 3] = "WEDNESDAY";
|
18
|
+
WeekDay2[WeekDay2["THURSDAY"] = 4] = "THURSDAY";
|
19
|
+
WeekDay2[WeekDay2["FRIDAY"] = 5] = "FRIDAY";
|
20
|
+
WeekDay2[WeekDay2["SATURDAY"] = 6] = "SATURDAY";
|
21
|
+
return WeekDay2;
|
22
|
+
})(WeekDay || {});
|
23
|
+
var Month = /* @__PURE__ */ ((Month2) => {
|
24
|
+
Month2[Month2["JANUARY"] = 0] = "JANUARY";
|
25
|
+
Month2[Month2["FEBRUARY"] = 1] = "FEBRUARY";
|
26
|
+
Month2[Month2["MARCH"] = 2] = "MARCH";
|
27
|
+
Month2[Month2["APRIL"] = 3] = "APRIL";
|
28
|
+
Month2[Month2["MAY"] = 4] = "MAY";
|
29
|
+
Month2[Month2["JUNE"] = 5] = "JUNE";
|
30
|
+
Month2[Month2["JULY"] = 6] = "JULY";
|
31
|
+
Month2[Month2["AUGUST"] = 7] = "AUGUST";
|
32
|
+
Month2[Month2["SEPTEMBER"] = 8] = "SEPTEMBER";
|
33
|
+
Month2[Month2["OCTOBER"] = 9] = "OCTOBER";
|
34
|
+
Month2[Month2["NOVEMBER"] = 10] = "NOVEMBER";
|
35
|
+
Month2[Month2["DECEMBER"] = 11] = "DECEMBER";
|
36
|
+
return Month2;
|
37
|
+
})(Month || {});
|
38
|
+
function dateToQueryString(date) {
|
39
|
+
date = new Date(date);
|
40
|
+
date.setMinutes(date.getMinutes() - date.getTimezoneOffset());
|
41
|
+
return date.toISOString().split("T")[0];
|
42
|
+
}
|
43
|
+
function dateFormat(date) {
|
44
|
+
const month2 = date.getMonth() + 1;
|
45
|
+
const day2 = date.getDate();
|
46
|
+
return `${day2.toString().padStart(2, "0")}.${month2.toString().padStart(2, "0")}.${date.getFullYear()}`;
|
47
|
+
}
|
48
|
+
function timeFormat(date) {
|
49
|
+
return date.toLocaleTimeString("en-GB");
|
50
|
+
}
|
51
|
+
function datetimeFormat(date) {
|
52
|
+
return `${dateFormat(date)} ${timeFormat(date)}`;
|
53
|
+
}
|
54
|
+
function durationHumanize(durationSeconds, full) {
|
55
|
+
const cb = full ? getDurationStringFull : getDurationString;
|
56
|
+
const seconds = durationSeconds % 60;
|
57
|
+
if (durationSeconds === seconds)
|
58
|
+
return cb(seconds);
|
59
|
+
const durationMinutes = (durationSeconds - seconds) / 60;
|
60
|
+
const minutes = durationMinutes % 60;
|
61
|
+
if (durationMinutes === minutes)
|
62
|
+
return cb(seconds, minutes);
|
63
|
+
const durationHours = (durationMinutes - minutes) / 60;
|
64
|
+
const hours = durationHours % 24;
|
65
|
+
if (durationHours === hours)
|
66
|
+
return cb(seconds, minutes, hours);
|
67
|
+
const durationDays = (durationHours - hours) / 24;
|
68
|
+
const days = durationDays % 365;
|
69
|
+
if (durationDays === days) {
|
70
|
+
if (days < 30)
|
71
|
+
return cb(seconds, minutes, hours, days);
|
72
|
+
const newDays = days % 30;
|
73
|
+
const months = (days - newDays) / 30;
|
74
|
+
return cb(seconds, minutes, hours, newDays, months);
|
75
|
+
} else {
|
76
|
+
const durationYears = (durationDays - days) / 365;
|
77
|
+
if (days < 30)
|
78
|
+
return cb(seconds, minutes, hours, days, 0, durationYears);
|
79
|
+
const newDays = days % 30;
|
80
|
+
const months = (days - newDays) / 30;
|
81
|
+
return cb(seconds, minutes, hours, newDays, months, durationYears);
|
82
|
+
}
|
83
|
+
}
|
84
|
+
function getDurationString(seconds, minutes, hours, days, months, years) {
|
85
|
+
const parts = [];
|
86
|
+
if (years)
|
87
|
+
parts.push(`${years} Y`);
|
88
|
+
if (months)
|
89
|
+
parts.push(`${months} M`);
|
90
|
+
if (days)
|
91
|
+
parts.push(`${days} d`);
|
92
|
+
if (hours)
|
93
|
+
parts.push(`${hours} h`);
|
94
|
+
if (minutes && !days)
|
95
|
+
parts.push(`${minutes} m`);
|
96
|
+
if (seconds && !days && !hours)
|
97
|
+
parts.push(`${seconds} s`);
|
98
|
+
return parts.join(" ");
|
99
|
+
}
|
100
|
+
function getDurationStringFull(seconds, minutes, hours, days, months, years) {
|
101
|
+
const parts = [];
|
102
|
+
if (years)
|
103
|
+
parts.push(`${years} year${years === 1 ? "" : "s"}`);
|
104
|
+
if (months)
|
105
|
+
parts.push(`${months} month${months === 1 ? "" : "s"}`);
|
106
|
+
if (days)
|
107
|
+
parts.push(`${days} day${days === 1 ? "" : "s"}`);
|
108
|
+
if (hours)
|
109
|
+
parts.push(`${hours} hour${hours === 1 ? "" : "s"}`);
|
110
|
+
if (minutes && !days)
|
111
|
+
parts.push(`${minutes} minute${minutes === 1 ? "" : "s"}`);
|
112
|
+
if (seconds && !days && !hours)
|
113
|
+
parts.push(`${seconds} second${seconds === 1 ? "" : "s"}`);
|
114
|
+
return parts.join(" ");
|
115
|
+
}
|
116
|
+
const minute = 60;
|
117
|
+
const hour = 60 * minute;
|
118
|
+
const day = 24 * hour;
|
119
|
+
const month = 30 * day;
|
120
|
+
const year = 365 * day;
|
121
|
+
function getDurationRound(seconds) {
|
122
|
+
if (seconds < 0)
|
123
|
+
return 0;
|
124
|
+
if (seconds <= 60)
|
125
|
+
return Math.ceil(seconds / 10) * 10;
|
126
|
+
if (seconds <= 10 * minute)
|
127
|
+
return Math.ceil(seconds / minute) * minute;
|
128
|
+
if (seconds <= 30 * minute)
|
129
|
+
return Math.ceil(seconds / (minute * 10)) * minute * 10;
|
130
|
+
if (seconds <= 12 * hour)
|
131
|
+
return Math.ceil(seconds / hour) * hour;
|
132
|
+
if (seconds <= 10 * day)
|
133
|
+
return Math.ceil(seconds / day) * day;
|
134
|
+
if (seconds <= 30 * day)
|
135
|
+
return Math.ceil(seconds / (day * 10)) * day * 10;
|
136
|
+
if (seconds <= 5.5 * month)
|
137
|
+
return Math.ceil(seconds / month) * month;
|
138
|
+
return Math.ceil(seconds / year) * year;
|
139
|
+
}
|
140
|
+
function getStartOfMonth(date = /* @__PURE__ */ new Date()) {
|
141
|
+
const year2 = date.getFullYear();
|
142
|
+
const month2 = date.getMonth();
|
143
|
+
const startOfMonth = /* @__PURE__ */ new Date();
|
144
|
+
startOfMonth.setFullYear(year2, month2, 1);
|
145
|
+
return getStartOfDay(startOfMonth);
|
146
|
+
}
|
147
|
+
function addDay(date = /* @__PURE__ */ new Date(), count) {
|
148
|
+
const newDate = new Date(date);
|
149
|
+
newDate.setDate(newDate.getDate() + count);
|
150
|
+
return newDate;
|
151
|
+
}
|
152
|
+
function addMonth(date = /* @__PURE__ */ new Date(), count) {
|
153
|
+
const newDate = new Date(date);
|
154
|
+
newDate.setMonth(newDate.getMonth() + count);
|
155
|
+
return newDate;
|
156
|
+
}
|
157
|
+
function addYear(date = /* @__PURE__ */ new Date(), count) {
|
158
|
+
const newDate = new Date(date);
|
159
|
+
newDate.setFullYear(newDate.getFullYear() + count);
|
160
|
+
return newDate;
|
161
|
+
}
|
162
|
+
function getStartOfWeek(date = /* @__PURE__ */ new Date(), startFrom = 1 /* MONDAY */) {
|
163
|
+
const startFromPrepared = startFrom || 7;
|
164
|
+
const dayOfWeek = date.getDay() || 7;
|
165
|
+
let diff = startFromPrepared - dayOfWeek;
|
166
|
+
if (diff > 0)
|
167
|
+
diff -= 7;
|
168
|
+
const startOfWeek = new Date(date);
|
169
|
+
startOfWeek.setDate(date.getDate() + diff);
|
170
|
+
return getStartOfDay(startOfWeek);
|
171
|
+
}
|
172
|
+
function getStartOfDay(date = /* @__PURE__ */ new Date()) {
|
173
|
+
const startOfDay = new Date(date);
|
174
|
+
startOfDay.setHours(0, 0, 0, 0);
|
175
|
+
return startOfDay;
|
176
|
+
}
|
177
|
+
function isSameDate(a, b) {
|
178
|
+
return a.getDate() === b.getDate() && isSameMonth(a, b);
|
179
|
+
}
|
180
|
+
function isSameMonth(a, b) {
|
181
|
+
return a.getMonth() === b.getMonth() && isSameYear(a, b);
|
182
|
+
}
|
183
|
+
function isSameYear(a, b) {
|
184
|
+
return a.getFullYear() === b.getFullYear();
|
185
|
+
}
|
186
|
+
|
187
|
+
export { Month, WeekDay, addDay, addMonth, addYear, dateFormat, dateFormatter, dateRegexp, dateToQueryString, datetimeFormat, durationHumanize, getDurationRound, getStartOfDay, getStartOfMonth, getStartOfWeek, isSameDate, isSameMonth, isSameYear, monthShortFormatter, parseDate, timeFormat, weekdayShortFormatter };
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"mobile.d.ts","sourceRoot":"","sources":["../../../src/utils/mobile.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,QAAO,OAE9B,CAAA;AAED,eAAO,MAAM,gBAAgB,QAAO,OAEnC,CAAA"}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { isClientSide } from './utils.js';
|
2
|
+
|
3
|
+
const getIsMobile = () => {
|
4
|
+
return isClientSide && window.innerWidth < 640;
|
5
|
+
};
|
6
|
+
const getIsTouchDevice = () => {
|
7
|
+
return isClientSide && "ontouchstart" in window || navigator.maxTouchPoints > 0;
|
8
|
+
};
|
9
|
+
|
10
|
+
export { getIsMobile, getIsTouchDevice };
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"supportsPassive.d.ts","sourceRoot":"","sources":["../../../src/utils/supportsPassive.ts"],"names":[],"mappings":"AAEA,eAAO,IAAI,eAAe,SAAQ,CAAA"}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { isClientSide } from './utils.js';
|
2
|
+
|
3
|
+
let supportsPassive = false;
|
4
|
+
try {
|
5
|
+
if (isClientSide) {
|
6
|
+
window.addEventListener("test", null, Object.defineProperty({}, "passive", {
|
7
|
+
get: function() {
|
8
|
+
supportsPassive = true;
|
9
|
+
}
|
10
|
+
}));
|
11
|
+
}
|
12
|
+
} catch (e) {
|
13
|
+
}
|
14
|
+
|
15
|
+
export { supportsPassive };
|
@@ -0,0 +1,14 @@
|
|
1
|
+
export declare const getScrollParent: (node: Element) => Element | null;
|
2
|
+
export declare const getAllScrollParents: (node?: Element, max?: number) => Array<Element>;
|
3
|
+
export declare const hasParent: (parent: Element, current: Element) => boolean;
|
4
|
+
type DebounceCb = (...args: any[]) => void;
|
5
|
+
export declare function debounce<T extends DebounceCb>(cb: T, delay?: number): T;
|
6
|
+
export declare function throttle<T extends DebounceCb>(cb: T, delay?: number): T;
|
7
|
+
export declare const isEqualObj: (obj1: Record<string, unknown>, obj2: Record<string, unknown>, exclude?: string[]) => boolean;
|
8
|
+
export declare const percentCompactFormatter: Intl.NumberFormat;
|
9
|
+
export declare const numberCompactFormatter: Intl.NumberFormat;
|
10
|
+
export declare const numberFormatter: Intl.NumberFormat;
|
11
|
+
export declare const isClientSide: boolean;
|
12
|
+
export declare const genId: () => number;
|
13
|
+
export {};
|
14
|
+
//# sourceMappingURL=utils.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/utils/utils.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,eAAe,SAAU,OAAO,KAAG,OAAO,GAAG,IAKhD,CAAA;AAEV,eAAO,MAAM,mBAAmB,UAAW,OAAO,mBAAa,MAAM,OAAO,CAa3E,CAAA;AAED,eAAO,MAAM,SAAS,WAAY,OAAO,WAAW,OAAO,KAAG,OAI7D,CAAA;AAGD,KAAK,UAAU,GAAG,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,CAAA;AAE1C,wBAAgB,QAAQ,CAAC,CAAC,SAAS,UAAU,EAAE,EAAE,EAAE,CAAC,EAAE,KAAK,SAAM,GAAG,CAAC,CAWpE;AAED,wBAAgB,QAAQ,CAAC,CAAC,SAAS,UAAU,EAAE,EAAE,EAAE,CAAC,EAAE,KAAK,SAAM,GAAG,CAAC,CAYpE;AAED,eAAO,MAAM,UAAU,SAAU,OAAO,MAAM,EAAE,OAAO,CAAC,QAAQ,OAAO,MAAM,EAAE,OAAO,CAAC,YAAY,MAAM,EAAE,KAAG,OAE7G,CAAA;AAED,eAAO,MAAM,uBAAuB,mBAAmE,CAAA;AACvG,eAAO,MAAM,sBAAsB,mBAAiD,CAAA;AACpF,eAAO,MAAM,eAAe,mBAA0B,CAAA;AAEtD,eAAO,MAAM,YAAY,EAAE,OAAuC,CAAA;AAIlE,eAAO,MAAM,KAAK,cAEjB,CAAA"}
|
@@ -0,0 +1,61 @@
|
|
1
|
+
const overflowScrollRegexp = /auto|scroll|overlay/;
|
2
|
+
const getStyleValue = (node, prop) => getComputedStyle(node, null).getPropertyValue(prop);
|
3
|
+
const isScroll = (node) => overflowScrollRegexp.test(
|
4
|
+
getStyleValue(node, "overflow") + getStyleValue(node, "overflow-y") + getStyleValue(node, "overflow-x")
|
5
|
+
);
|
6
|
+
const getScrollParent = (node) => node.parentElement ? isScroll(node.parentElement) ? node.parentElement : getScrollParent(node.parentElement) : null;
|
7
|
+
const getAllScrollParents = (node, max = 10) => {
|
8
|
+
const arr = [];
|
9
|
+
let parent = node && getScrollParent(node);
|
10
|
+
if (parent)
|
11
|
+
arr.push(parent);
|
12
|
+
while (parent && arr.length < max) {
|
13
|
+
parent = getScrollParent(parent);
|
14
|
+
if (parent)
|
15
|
+
arr.push(parent);
|
16
|
+
}
|
17
|
+
return arr;
|
18
|
+
};
|
19
|
+
const hasParent = (parent, current) => {
|
20
|
+
if (current === parent)
|
21
|
+
return true;
|
22
|
+
else if (!current.parentElement)
|
23
|
+
return false;
|
24
|
+
else
|
25
|
+
return hasParent(parent, current.parentElement);
|
26
|
+
};
|
27
|
+
function debounce(cb, delay = 200) {
|
28
|
+
let timeout;
|
29
|
+
return function(...args) {
|
30
|
+
if (timeout)
|
31
|
+
clearTimeout(timeout);
|
32
|
+
timeout = setTimeout(() => {
|
33
|
+
timeout = void 0;
|
34
|
+
cb.apply(this, args);
|
35
|
+
}, delay);
|
36
|
+
};
|
37
|
+
}
|
38
|
+
function throttle(cb, delay = 200) {
|
39
|
+
let timeout;
|
40
|
+
return function(...args) {
|
41
|
+
if (timeout)
|
42
|
+
return;
|
43
|
+
cb.apply(this, args);
|
44
|
+
timeout = setTimeout(() => {
|
45
|
+
timeout = void 0;
|
46
|
+
}, delay);
|
47
|
+
};
|
48
|
+
}
|
49
|
+
const isEqualObj = (obj1, obj2, exclude) => {
|
50
|
+
return [...Object.keys(obj1), ...Object.keys(obj2)].every((key) => exclude?.includes(key) || obj1[key] === obj2[key]);
|
51
|
+
};
|
52
|
+
const percentCompactFormatter = Intl.NumberFormat("en", { notation: "compact", style: "percent" });
|
53
|
+
const numberCompactFormatter = Intl.NumberFormat("en", { notation: "compact" });
|
54
|
+
const numberFormatter = Intl.NumberFormat("fr");
|
55
|
+
const isClientSide = typeof window !== "undefined";
|
56
|
+
let iterator = 1;
|
57
|
+
const genId = () => {
|
58
|
+
return iterator++;
|
59
|
+
};
|
60
|
+
|
61
|
+
export { debounce, genId, getAllScrollParents, getScrollParent, hasParent, isClientSide, isEqualObj, numberCompactFormatter, numberFormatter, percentCompactFormatter, throttle };
|