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,229 @@
|
|
1
|
+
import { defineComponent, ref, computed, watch, toRef, openBlock, createBlock, normalizeStyle, withCtx, createCommentVNode, createElementBlock, Fragment, renderList, normalizeClass, nextTick, unref, renderSlot } from 'vue';
|
2
|
+
import _sfc_main$1 from './components/InfiniteListScroll.vue.js';
|
3
|
+
import _sfc_main$3 from './components/InfiniteListPage.vue.js';
|
4
|
+
import { useRefetchNextPages } from './use/useRefetchNextPages.js';
|
5
|
+
import _sfc_main$2 from './components/InfiniteListButton.vue.js';
|
6
|
+
import { isEqualObj } from '../../utils/utils.js';
|
7
|
+
import { getIsScrollDown } from './models/utils.js';
|
8
|
+
|
9
|
+
const MAX_PAGES = 5;
|
10
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
11
|
+
__name: "WInfiniteListPages",
|
12
|
+
props: {
|
13
|
+
useQueryFn: {},
|
14
|
+
isInvalidPage: {},
|
15
|
+
queryParams: {},
|
16
|
+
skeletonLength: { default: void 0 },
|
17
|
+
hidePageTitle: { type: Boolean },
|
18
|
+
skipScrollTarget: { type: Boolean },
|
19
|
+
selected: { default: void 0 },
|
20
|
+
wrap: { type: Boolean },
|
21
|
+
noGap: { type: Boolean },
|
22
|
+
transition: { type: Boolean },
|
23
|
+
pageLength: { default: 24 },
|
24
|
+
scrollingElement: { default: null },
|
25
|
+
headerTop: { default: 0 },
|
26
|
+
headerHeight: { default: 0 },
|
27
|
+
minHeight: { type: Boolean },
|
28
|
+
excludeParams: { default: void 0 },
|
29
|
+
emptyStub: { default: void 0 },
|
30
|
+
selectOnly: { type: Boolean },
|
31
|
+
unselectOnly: { type: Boolean },
|
32
|
+
reverseSelection: { type: Boolean },
|
33
|
+
allowPageSelection: { type: Boolean },
|
34
|
+
pageClass: { default: void 0 }
|
35
|
+
},
|
36
|
+
emits: ["update:page", "update:count", "update:selected"],
|
37
|
+
setup(__props, { expose: __expose, emit }) {
|
38
|
+
const props = __props;
|
39
|
+
const infiniteScroll = ref();
|
40
|
+
const pages = ref([props.queryParams.page ?? 1]);
|
41
|
+
const pagesCount = ref(1);
|
42
|
+
const count = ref(0);
|
43
|
+
const nextPage = ref();
|
44
|
+
const previousPage = ref();
|
45
|
+
const isResettingPage = ref(false);
|
46
|
+
const getSkeletonLength = (pagesBefore) => {
|
47
|
+
if (props.skeletonLength === void 0)
|
48
|
+
return props.pageLength;
|
49
|
+
const length = Math.min(props.skeletonLength - pagesBefore * props.pageLength, props.pageLength);
|
50
|
+
return length < 0 ? props.pageLength : length;
|
51
|
+
};
|
52
|
+
const isPreviousButtonVisible = computed(() => {
|
53
|
+
if (pages.value.length === 1 && pages.value[0] > 1)
|
54
|
+
return true;
|
55
|
+
if (count.value === 0)
|
56
|
+
return false;
|
57
|
+
if (previousPage.value)
|
58
|
+
return true;
|
59
|
+
return false;
|
60
|
+
});
|
61
|
+
const { pageComponent, refetchNextPages } = useRefetchNextPages();
|
62
|
+
const updateCount = (value) => {
|
63
|
+
count.value = value;
|
64
|
+
};
|
65
|
+
const updatePagesCount = (value) => {
|
66
|
+
pagesCount.value = value;
|
67
|
+
};
|
68
|
+
const updateNextPage = (value) => {
|
69
|
+
nextPage.value = value;
|
70
|
+
if (pages.value.length === 1 && getIsScrollDown(props.scrollingElement))
|
71
|
+
addNextPage(true);
|
72
|
+
};
|
73
|
+
const updatePreviousPage = (value) => {
|
74
|
+
previousPage.value = value;
|
75
|
+
if (pages.value.length === 1)
|
76
|
+
addPreviousPage(true);
|
77
|
+
};
|
78
|
+
const addNextPage = (silent) => {
|
79
|
+
if (!nextPage.value)
|
80
|
+
return;
|
81
|
+
if (pages.value.includes(nextPage.value))
|
82
|
+
return;
|
83
|
+
pages.value.push(nextPage.value);
|
84
|
+
if (!silent)
|
85
|
+
emit("update:page", nextPage.value);
|
86
|
+
if (pages.value.length < MAX_PAGES)
|
87
|
+
return;
|
88
|
+
const firstPage = pages.value.shift();
|
89
|
+
if (firstPage === void 0)
|
90
|
+
return;
|
91
|
+
previousPage.value = firstPage;
|
92
|
+
};
|
93
|
+
const addPreviousPage = (silent) => {
|
94
|
+
if (!previousPage.value)
|
95
|
+
return;
|
96
|
+
if (pages.value.includes(previousPage.value))
|
97
|
+
return;
|
98
|
+
pages.value.unshift(previousPage.value);
|
99
|
+
if (!silent)
|
100
|
+
emit("update:page", previousPage.value);
|
101
|
+
if (pages.value.length < MAX_PAGES)
|
102
|
+
return;
|
103
|
+
const lastPage = pages.value.pop();
|
104
|
+
if (lastPage === void 0)
|
105
|
+
return;
|
106
|
+
nextPage.value = lastPage;
|
107
|
+
};
|
108
|
+
const updateScroll = (height) => {
|
109
|
+
const element = props.scrollingElement ?? document.scrollingElement;
|
110
|
+
if (!element)
|
111
|
+
return;
|
112
|
+
element.scrollTop = element.scrollTop + height;
|
113
|
+
};
|
114
|
+
const removePage = (page) => {
|
115
|
+
const index = pages.value.indexOf(page);
|
116
|
+
if (index === -1)
|
117
|
+
return;
|
118
|
+
pages.value.splice(index, pages.value.length - index);
|
119
|
+
if (!pages.value.length)
|
120
|
+
pages.value = [1];
|
121
|
+
emit("update:page", pages.value[pages.value.length - 1]);
|
122
|
+
};
|
123
|
+
const resetPage = () => {
|
124
|
+
isResettingPage.value = true;
|
125
|
+
emit("update:page", void 0);
|
126
|
+
pages.value = [1];
|
127
|
+
nextPage.value = null;
|
128
|
+
previousPage.value = null;
|
129
|
+
if (!props.skipScrollTarget)
|
130
|
+
(props.scrollingElement ?? document.scrollingElement)?.scrollTo(0, props.headerTop);
|
131
|
+
};
|
132
|
+
watch(toRef(props, "queryParams"), (newValue, oldValue) => {
|
133
|
+
if (isEqualObj(newValue, oldValue, ["page", ...props.excludeParams ?? []]))
|
134
|
+
return;
|
135
|
+
resetPage();
|
136
|
+
});
|
137
|
+
__expose({
|
138
|
+
resetPage
|
139
|
+
});
|
140
|
+
return (_ctx, _cache) => {
|
141
|
+
return openBlock(), createBlock(_sfc_main$1, {
|
142
|
+
ref_key: "infiniteScroll",
|
143
|
+
ref: infiniteScroll,
|
144
|
+
"scrolling-element": _ctx.scrollingElement,
|
145
|
+
style: normalizeStyle({ "--infinite-list-header-height": _ctx.headerHeight + "px" }),
|
146
|
+
"onScroll:down": addNextPage,
|
147
|
+
"onScroll:up": addPreviousPage
|
148
|
+
}, {
|
149
|
+
default: withCtx(() => [
|
150
|
+
isPreviousButtonVisible.value ? (openBlock(), createBlock(_sfc_main$2, {
|
151
|
+
key: 0,
|
152
|
+
onClick: _cache[0] || (_cache[0] = ($event) => addPreviousPage())
|
153
|
+
})) : createCommentVNode("", true),
|
154
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(pages.value, (page, index) => {
|
155
|
+
return openBlock(), createBlock(_sfc_main$3, {
|
156
|
+
ref_for: true,
|
157
|
+
ref_key: "pageComponent",
|
158
|
+
ref: pageComponent,
|
159
|
+
key: page,
|
160
|
+
"query-params": { ..._ctx.queryParams, page },
|
161
|
+
"use-query-fn": _ctx.useQueryFn,
|
162
|
+
"is-invalid-page": _ctx.isInvalidPage,
|
163
|
+
"skeleton-length": getSkeletonLength(page - 1),
|
164
|
+
"first-page": index === 0,
|
165
|
+
"last-page": index === pages.value.length - 1,
|
166
|
+
"hide-page-title": _ctx.hidePageTitle,
|
167
|
+
selected: _ctx.selected,
|
168
|
+
wrap: _ctx.wrap,
|
169
|
+
"no-gap": _ctx.noGap,
|
170
|
+
transition: _ctx.transition,
|
171
|
+
resetting: isResettingPage.value,
|
172
|
+
"empty-stub": _ctx.emptyStub,
|
173
|
+
"select-only": _ctx.selectOnly,
|
174
|
+
"unselect-only": _ctx.unselectOnly,
|
175
|
+
"reverse-selection": _ctx.reverseSelection,
|
176
|
+
"allow-page-selection": _ctx.allowPageSelection,
|
177
|
+
"min-height": _ctx.minHeight,
|
178
|
+
"page-class": _ctx.pageClass,
|
179
|
+
class: normalizeClass({
|
180
|
+
"last:min-h-[calc(100vh-var(--header-height)-var(--infinite-list-header-height))] last:pb-16": !_ctx.minHeight
|
181
|
+
}),
|
182
|
+
"onUpdate:count": _cache[1] || (_cache[1] = ($event) => {
|
183
|
+
updateCount($event);
|
184
|
+
_ctx.$emit("update:count", $event);
|
185
|
+
}),
|
186
|
+
"onUpdate:pagesCount": updatePagesCount,
|
187
|
+
"onUpdate:nextPage": _cache[2] || (_cache[2] = ($event) => {
|
188
|
+
updateNextPage($event);
|
189
|
+
infiniteScroll.value?.checkIsScrollDown();
|
190
|
+
}),
|
191
|
+
"onUpdate:previousPage": _cache[3] || (_cache[3] = ($event) => {
|
192
|
+
updatePreviousPage($event);
|
193
|
+
infiniteScroll.value?.checkIsScrollUp();
|
194
|
+
}),
|
195
|
+
"onUpdate:scroll": updateScroll,
|
196
|
+
"onUpdateFromHeader:scroll": _cache[4] || (_cache[4] = ($event) => _ctx.headerTop > 0 && nextTick(() => updateScroll(_ctx.headerTop))),
|
197
|
+
"onError:invalidPage": removePage,
|
198
|
+
onRefetch: ($event) => unref(refetchNextPages)(index),
|
199
|
+
"onUpdate:selected": _cache[5] || (_cache[5] = ($event) => _ctx.$emit("update:selected", $event)),
|
200
|
+
onFetched: _cache[6] || (_cache[6] = ($event) => isResettingPage.value = false)
|
201
|
+
}, {
|
202
|
+
default: withCtx(({ item, setter, skeleton, refetch, previous, next, first, last }) => [
|
203
|
+
renderSlot(_ctx.$slots, "default", {
|
204
|
+
item,
|
205
|
+
setter,
|
206
|
+
skeleton,
|
207
|
+
refetch,
|
208
|
+
previous: previous ?? unref(pageComponent)[index - 1]?.getLast() ?? unref(pageComponent)[unref(pageComponent).length - 1]?.getLast(),
|
209
|
+
next: next ?? unref(pageComponent)[index + 1]?.getFirst() ?? unref(pageComponent)[0]?.getFirst(),
|
210
|
+
first,
|
211
|
+
last,
|
212
|
+
resetting: isResettingPage.value
|
213
|
+
})
|
214
|
+
]),
|
215
|
+
_: 2
|
216
|
+
}, 1032, ["query-params", "use-query-fn", "is-invalid-page", "skeleton-length", "first-page", "last-page", "hide-page-title", "selected", "wrap", "no-gap", "transition", "resetting", "empty-stub", "select-only", "unselect-only", "reverse-selection", "allow-page-selection", "min-height", "page-class", "class", "onRefetch"]);
|
217
|
+
}), 128)),
|
218
|
+
count.value !== 0 && nextPage.value ? (openBlock(), createBlock(_sfc_main$2, {
|
219
|
+
key: 1,
|
220
|
+
onClick: addNextPage
|
221
|
+
})) : createCommentVNode("", true)
|
222
|
+
]),
|
223
|
+
_: 3
|
224
|
+
}, 8, ["scrolling-element", "style"]);
|
225
|
+
};
|
226
|
+
}
|
227
|
+
});
|
228
|
+
|
229
|
+
export { _sfc_main as default };
|
@@ -0,0 +1,7 @@
|
|
1
|
+
declare const _default: 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
|
+
export default _default;
|
7
|
+
//# sourceMappingURL=InfiniteListButton.vue.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"InfiniteListButton.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/InfiniteList/components/InfiniteListButton.vue.ts"],"names":[],"mappings":";;;;;AAgFA,wBAAkD"}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import { defineComponent, openBlock, createElementBlock, createVNode, unref, withCtx, createTextVNode } from 'vue';
|
2
|
+
import { SemanticType } from '../../../utils/SemanticType.js';
|
3
|
+
import _sfc_main$1 from '../../Button/WButton.vue.js';
|
4
|
+
|
5
|
+
const _hoisted_1 = { class: "flex w-full p-12 justify-center items-center" };
|
6
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
7
|
+
__name: "InfiniteListButton",
|
8
|
+
emits: ["click"],
|
9
|
+
setup(__props) {
|
10
|
+
return (_ctx, _cache) => {
|
11
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
12
|
+
createVNode(_sfc_main$1, {
|
13
|
+
"semantic-type": unref(SemanticType).SECONDARY,
|
14
|
+
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("click"))
|
15
|
+
}, {
|
16
|
+
default: withCtx(() => [
|
17
|
+
createTextVNode(" More ")
|
18
|
+
]),
|
19
|
+
_: 1
|
20
|
+
}, 8, ["semantic-type"])
|
21
|
+
]);
|
22
|
+
};
|
23
|
+
}
|
24
|
+
});
|
25
|
+
|
26
|
+
export { _sfc_main as default };
|
@@ -0,0 +1,183 @@
|
|
1
|
+
declare const _default: <Data extends DefaultData>(__VLS_props: {
|
2
|
+
queryParams: QueryParams;
|
3
|
+
useQueryFn: UsePaginatedQuery<Data>;
|
4
|
+
isInvalidPage: (error: unknown) => boolean;
|
5
|
+
skeletonLength: number;
|
6
|
+
firstPage: boolean;
|
7
|
+
lastPage: boolean;
|
8
|
+
hidePageTitle?: boolean | undefined;
|
9
|
+
selected?: number[] | undefined;
|
10
|
+
wrap?: boolean | undefined;
|
11
|
+
noGap?: boolean | undefined;
|
12
|
+
transition?: boolean | undefined;
|
13
|
+
resetting?: boolean | undefined;
|
14
|
+
emptyStub?: string | undefined;
|
15
|
+
selectOnly?: boolean | undefined;
|
16
|
+
unselectOnly?: boolean | undefined;
|
17
|
+
reverseSelection?: boolean | undefined;
|
18
|
+
allowPageSelection?: boolean | undefined;
|
19
|
+
minHeight?: boolean | undefined;
|
20
|
+
pageClass?: string | undefined;
|
21
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: Pick<{
|
22
|
+
props: {
|
23
|
+
queryParams: QueryParams;
|
24
|
+
useQueryFn: UsePaginatedQuery<Data>;
|
25
|
+
isInvalidPage: (error: unknown) => boolean;
|
26
|
+
skeletonLength: number;
|
27
|
+
firstPage: boolean;
|
28
|
+
lastPage: boolean;
|
29
|
+
hidePageTitle?: boolean | undefined;
|
30
|
+
selected?: number[] | undefined;
|
31
|
+
wrap?: boolean | undefined;
|
32
|
+
noGap?: boolean | undefined;
|
33
|
+
transition?: boolean | undefined;
|
34
|
+
resetting?: boolean | undefined;
|
35
|
+
emptyStub?: string | undefined;
|
36
|
+
selectOnly?: boolean | undefined;
|
37
|
+
unselectOnly?: boolean | undefined;
|
38
|
+
reverseSelection?: boolean | undefined;
|
39
|
+
allowPageSelection?: boolean | undefined;
|
40
|
+
minHeight?: boolean | undefined;
|
41
|
+
pageClass?: string | undefined;
|
42
|
+
};
|
43
|
+
expose(exposed: {
|
44
|
+
getFirst: () => Data | undefined;
|
45
|
+
getLast: () => Data | undefined;
|
46
|
+
refetch: () => Promise<void>;
|
47
|
+
}): void;
|
48
|
+
attrs: any;
|
49
|
+
slots: {
|
50
|
+
default?: ((props: {
|
51
|
+
item: Data;
|
52
|
+
setter: (newItem?: Data | undefined) => void;
|
53
|
+
skeleton: boolean;
|
54
|
+
refetch: () => void;
|
55
|
+
previous?: Data | undefined;
|
56
|
+
next?: Data | undefined;
|
57
|
+
first: boolean;
|
58
|
+
last: boolean;
|
59
|
+
}) => void) | undefined;
|
60
|
+
};
|
61
|
+
emit: {
|
62
|
+
(e: 'update:count', value: number): void;
|
63
|
+
(e: 'update:pagesCount', value: number): void;
|
64
|
+
(e: 'update:nextPage', value: number | null): void;
|
65
|
+
(e: 'update:previousPage', value: number | null): void;
|
66
|
+
(e: 'update:scroll', value: number): void;
|
67
|
+
(e: 'error:invalidPage', value: number): void;
|
68
|
+
(e: 'refetch'): void;
|
69
|
+
(e: 'update-from-header:scroll'): void;
|
70
|
+
(e: 'update:selected', values: number[]): void;
|
71
|
+
(e: 'fetched'): void;
|
72
|
+
};
|
73
|
+
}, "attrs" | "slots" | "emit"> | undefined, __VLS_setup?: {
|
74
|
+
props: {
|
75
|
+
queryParams: QueryParams;
|
76
|
+
useQueryFn: UsePaginatedQuery<Data>;
|
77
|
+
isInvalidPage: (error: unknown) => boolean;
|
78
|
+
skeletonLength: number;
|
79
|
+
firstPage: boolean;
|
80
|
+
lastPage: boolean;
|
81
|
+
hidePageTitle?: boolean | undefined;
|
82
|
+
selected?: number[] | undefined;
|
83
|
+
wrap?: boolean | undefined;
|
84
|
+
noGap?: boolean | undefined;
|
85
|
+
transition?: boolean | undefined;
|
86
|
+
resetting?: boolean | undefined;
|
87
|
+
emptyStub?: string | undefined;
|
88
|
+
selectOnly?: boolean | undefined;
|
89
|
+
unselectOnly?: boolean | undefined;
|
90
|
+
reverseSelection?: boolean | undefined;
|
91
|
+
allowPageSelection?: boolean | undefined;
|
92
|
+
minHeight?: boolean | undefined;
|
93
|
+
pageClass?: string | undefined;
|
94
|
+
};
|
95
|
+
expose(exposed: {
|
96
|
+
getFirst: () => Data | undefined;
|
97
|
+
getLast: () => Data | undefined;
|
98
|
+
refetch: () => Promise<void>;
|
99
|
+
}): void;
|
100
|
+
attrs: any;
|
101
|
+
slots: {
|
102
|
+
default?: ((props: {
|
103
|
+
item: Data;
|
104
|
+
setter: (newItem?: Data | undefined) => void;
|
105
|
+
skeleton: boolean;
|
106
|
+
refetch: () => void;
|
107
|
+
previous?: Data | undefined;
|
108
|
+
next?: Data | undefined;
|
109
|
+
first: boolean;
|
110
|
+
last: boolean;
|
111
|
+
}) => void) | undefined;
|
112
|
+
};
|
113
|
+
emit: {
|
114
|
+
(e: 'update:count', value: number): void;
|
115
|
+
(e: 'update:pagesCount', value: number): void;
|
116
|
+
(e: 'update:nextPage', value: number | null): void;
|
117
|
+
(e: 'update:previousPage', value: number | null): void;
|
118
|
+
(e: 'update:scroll', value: number): void;
|
119
|
+
(e: 'error:invalidPage', value: number): void;
|
120
|
+
(e: 'refetch'): void;
|
121
|
+
(e: 'update-from-header:scroll'): void;
|
122
|
+
(e: 'update:selected', values: number[]): void;
|
123
|
+
(e: 'fetched'): void;
|
124
|
+
};
|
125
|
+
}) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
126
|
+
[key: string]: any;
|
127
|
+
}> & {
|
128
|
+
__ctx?: {
|
129
|
+
props: {
|
130
|
+
queryParams: QueryParams;
|
131
|
+
useQueryFn: UsePaginatedQuery<Data>;
|
132
|
+
isInvalidPage: (error: unknown) => boolean;
|
133
|
+
skeletonLength: number;
|
134
|
+
firstPage: boolean;
|
135
|
+
lastPage: boolean;
|
136
|
+
hidePageTitle?: boolean | undefined;
|
137
|
+
selected?: number[] | undefined;
|
138
|
+
wrap?: boolean | undefined;
|
139
|
+
noGap?: boolean | undefined;
|
140
|
+
transition?: boolean | undefined;
|
141
|
+
resetting?: boolean | undefined;
|
142
|
+
emptyStub?: string | undefined;
|
143
|
+
selectOnly?: boolean | undefined;
|
144
|
+
unselectOnly?: boolean | undefined;
|
145
|
+
reverseSelection?: boolean | undefined;
|
146
|
+
allowPageSelection?: boolean | undefined;
|
147
|
+
minHeight?: boolean | undefined;
|
148
|
+
pageClass?: string | undefined;
|
149
|
+
};
|
150
|
+
expose(exposed: {
|
151
|
+
getFirst: () => Data | undefined;
|
152
|
+
getLast: () => Data | undefined;
|
153
|
+
refetch: () => Promise<void>;
|
154
|
+
}): void;
|
155
|
+
attrs: any;
|
156
|
+
slots: {
|
157
|
+
default?: ((props: {
|
158
|
+
item: Data;
|
159
|
+
setter: (newItem?: Data | undefined) => void;
|
160
|
+
skeleton: boolean;
|
161
|
+
refetch: () => void;
|
162
|
+
previous?: Data | undefined;
|
163
|
+
next?: Data | undefined;
|
164
|
+
first: boolean;
|
165
|
+
last: boolean;
|
166
|
+
}) => void) | undefined;
|
167
|
+
};
|
168
|
+
emit: {
|
169
|
+
(e: 'update:count', value: number): void;
|
170
|
+
(e: 'update:pagesCount', value: number): void;
|
171
|
+
(e: 'update:nextPage', value: number | null): void;
|
172
|
+
(e: 'update:previousPage', value: number | null): void;
|
173
|
+
(e: 'update:scroll', value: number): void;
|
174
|
+
(e: 'error:invalidPage', value: number): void;
|
175
|
+
(e: 'refetch'): void;
|
176
|
+
(e: 'update-from-header:scroll'): void;
|
177
|
+
(e: 'update:selected', values: number[]): void;
|
178
|
+
(e: 'fetched'): void;
|
179
|
+
};
|
180
|
+
} | undefined;
|
181
|
+
};
|
182
|
+
export default _default;
|
183
|
+
//# sourceMappingURL=InfiniteListPage.vue.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"InfiniteListPage.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/InfiniteList/components/InfiniteListPage.vue.ts"],"names":[],"mappings":";iBA+biB,WAAW;;2BAED,OAAO,KAAK,OAAO;oBAC1B,MAAM;eACX,OAAO;cACR,OAAO;;;;;;;;;;;;;;;;qBALJ,WAAW;;+BAED,OAAO,KAAK,OAAO;wBAC1B,MAAM;mBACX,OAAO;kBACR,OAAO;;;;;;;;;;;;;;;;;;;QA6BkB,IAAI;WACpC,GAAG;;;;oDA5QkC,IAAI;sBAClC,OAAO;qBACR,MAAM,IAAI;;;mBAGZ,OAAO;kBACR,OAAO;cACT,IAAI;;;YAuPN,cAAc,SAAS,MAAM,GAAG,IAAI;YACpC,mBAAmB,SAAS,MAAM,GAAG,IAAI;YACzC,iBAAiB,SAAS,MAAM,GAAG,IAAI,GAAG,IAAI;YAC9C,qBAAqB,SAAS,MAAM,GAAG,IAAI,GAAG,IAAI;YAClD,eAAe,SAAS,MAAM,GAAG,IAAI;YACrC,mBAAmB,SAAS,MAAM,GAAG,IAAI;YACzC,SAAS,GAAG,IAAI;YAChB,2BAA2B,GAAG,IAAI;YAClC,iBAAiB,UAAU,MAAM,EAAE,GAAG,IAAI;YAC1C,SAAS,GAAG,IAAI;;;;qBA9BL,WAAW;;+BAED,OAAO,KAAK,OAAO;wBAC1B,MAAM;mBACX,OAAO;kBACR,OAAO;;;;;;;;;;;;;;;;;;;QA6BkB,IAAI;WACpC,GAAG;;;;oDA5QkC,IAAI;sBAClC,OAAO;qBACR,MAAM,IAAI;;;mBAGZ,OAAO;kBACR,OAAO;cACT,IAAI;;;YAuPN,cAAc,SAAS,MAAM,GAAG,IAAI;YACpC,mBAAmB,SAAS,MAAM,GAAG,IAAI;YACzC,iBAAiB,SAAS,MAAM,GAAG,IAAI,GAAG,IAAI;YAC9C,qBAAqB,SAAS,MAAM,GAAG,IAAI,GAAG,IAAI;YAClD,eAAe,SAAS,MAAM,GAAG,IAAI;YACrC,mBAAmB,SAAS,MAAM,GAAG,IAAI;YACzC,SAAS,GAAG,IAAI;YAChB,2BAA2B,GAAG,IAAI;YAClC,iBAAiB,UAAU,MAAM,EAAE,GAAG,IAAI;YAC1C,SAAS,GAAG,IAAI;;;;;;;yBA9BL,WAAW;;mCAED,OAAO,KAAK,OAAO;4BAC1B,MAAM;uBACX,OAAO;sBACR,OAAO;;;;;;;;;;;;;;;;;;;YA6BkB,IAAI;eACpC,GAAG;;;;wDA5QkC,IAAI;0BAClC,OAAO;yBACR,MAAM,IAAI;;;uBAGZ,OAAO;sBACR,OAAO;kBACT,IAAI;;;gBAuPN,cAAc,SAAS,MAAM,GAAG,IAAI;gBACpC,mBAAmB,SAAS,MAAM,GAAG,IAAI;gBACzC,iBAAiB,SAAS,MAAM,GAAG,IAAI,GAAG,IAAI;gBAC9C,qBAAqB,SAAS,MAAM,GAAG,IAAI,GAAG,IAAI;gBAClD,eAAe,SAAS,MAAM,GAAG,IAAI;gBACrC,mBAAmB,SAAS,MAAM,GAAG,IAAI;gBACzC,SAAS,GAAG,IAAI;gBAChB,2BAA2B,GAAG,IAAI;gBAClC,iBAAiB,UAAU,MAAM,EAAE,GAAG,IAAI;gBAC1C,SAAS,GAAG,IAAI;;;;AAvdtB,wBAgekE"}
|