eco-vue-js 0.5.26 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/assets/icons/sax/IconClose.svg.js +26 -0
- package/dist/assets/icons/sax/IconEdit.svg.js +24 -0
- package/dist/assets/icons/sax/IconSlash.svg.js +27 -0
- package/dist/components/ActionsBar/WActionsBar.vue.d.ts +129 -2
- package/dist/components/ActionsBar/WActionsBar.vue.d.ts.map +1 -1
- package/dist/components/ActionsBar/WActionsBar.vue.js +1 -2
- package/dist/components/BottomSheet/WBottomSheet.vue.d.ts +20 -15
- package/dist/components/BottomSheet/WBottomSheet.vue.d.ts.map +1 -1
- package/dist/components/BottomSheet/WBottomSheet.vue.js +2 -4
- package/dist/components/Button/WButton.vue.d.ts +20 -17
- package/dist/components/Button/WButton.vue.d.ts.map +1 -1
- package/dist/components/Button/WButton.vue.js +1 -2
- package/dist/components/Button/WButtonAction.vue.d.ts +21 -18
- package/dist/components/Button/WButtonAction.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonCopy.vue.d.ts +3 -3
- package/dist/components/Button/WButtonCopy.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonCopy.vue.js +9 -43
- package/dist/components/Button/WButtonDropdown.vue.d.ts +33 -25
- package/dist/components/Button/WButtonDropdown.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonDropdown.vue.js +12 -9
- package/dist/components/Button/WButtonGroup.vue.d.ts +17 -110
- package/dist/components/Button/WButtonGroup.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonGroup.vue.js +68 -44
- package/dist/components/Button/WButtonMore.vue.d.ts +14 -12
- package/dist/components/Button/WButtonMore.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonMore.vue.js +1 -2
- package/dist/components/Button/WButtonMoreItem.vue.d.ts +19 -16
- package/dist/components/Button/WButtonMoreItem.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonSelection.vue.d.ts +16 -16
- package/dist/components/Button/WButtonSelection.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonSelectionAction.vue.d.ts +8 -8
- package/dist/components/Button/WButtonSelectionAction.vue.d.ts.map +1 -1
- package/dist/components/Button/models/semanticTypeStylesMap.d.ts +1 -0
- package/dist/components/Button/types.d.ts +36 -0
- package/dist/components/Button/types.d.ts.map +1 -0
- package/dist/components/Checkbox/WCheckbox.vue.d.ts +34 -32
- package/dist/components/Checkbox/WCheckbox.vue.d.ts.map +1 -1
- package/dist/components/Checkbox/WCheckbox.vue.js +1 -2
- package/dist/components/Chip/WChip.vue.d.ts +19 -16
- package/dist/components/Chip/WChip.vue.d.ts.map +1 -1
- package/dist/components/ClickOutside/WClickOutside.vue.d.ts +7 -5
- package/dist/components/ClickOutside/WClickOutside.vue.d.ts.map +1 -1
- package/dist/components/ClickOutside/WClickOutside.vue.js +3 -6
- package/dist/components/Counter/WCounter.vue.d.ts +15 -15
- package/dist/components/Counter/WCounter.vue.d.ts.map +1 -1
- package/dist/components/Counter/WCounter.vue.js +1 -2
- package/dist/components/DatePicker/WDatePicker.vue.d.ts +6 -5
- package/dist/components/DatePicker/WDatePicker.vue.d.ts.map +1 -1
- package/dist/components/DatePicker/WDatePicker.vue.js +1 -2
- package/dist/components/DatePicker/WDatePickerSingle.vue.d.ts +6 -6
- package/dist/components/DatePicker/WDatePickerSingle.vue.d.ts.map +1 -1
- package/dist/components/DatePicker/WDatePickerSingle.vue.js +1 -2
- package/dist/components/DatePicker/components/CalendarDay.vue.d.ts +10 -9
- package/dist/components/DatePicker/components/CalendarDay.vue.d.ts.map +1 -1
- package/dist/components/DatePicker/components/CalendarDay.vue.js +10 -20
- package/dist/components/DatePicker/components/CalendarMonth.vue.d.ts +12 -11
- package/dist/components/DatePicker/components/CalendarMonth.vue.d.ts.map +1 -1
- package/dist/components/DatePicker/components/CalendarMonth.vue.js +7 -14
- package/dist/components/DatePicker/components/CalendarToggle.vue.d.ts +4 -4
- package/dist/components/DatePicker/components/CalendarToggle.vue.d.ts.map +1 -1
- package/dist/components/DatePicker/components/CalendarValue.vue.d.ts +8 -8
- package/dist/components/DatePicker/components/CalendarValue.vue.d.ts.map +1 -1
- package/dist/components/DatePicker/components/CalendarValue.vue.js +1 -2
- package/dist/components/DatePicker/components/CalendarWeek.vue.d.ts +8 -7
- package/dist/components/DatePicker/components/CalendarWeek.vue.d.ts.map +1 -1
- package/dist/components/DatePicker/components/CalendarWeek.vue.js +7 -14
- package/dist/components/Dropdown/WDropdown.vue.d.ts +18 -29
- package/dist/components/Dropdown/WDropdown.vue.d.ts.map +1 -1
- package/dist/components/Dropdown/WDropdown.vue.js +7 -14
- package/dist/components/Dropdown/types.d.ts +11 -0
- package/dist/components/Dropdown/types.d.ts.map +1 -0
- package/dist/components/Dropdown/utils/DropdownStyle.d.ts +1 -0
- package/dist/components/Dropdown/utils/DropdownStyle.js +2 -4
- package/dist/components/DropdownMenu/WDropdownMenu.vue.d.ts +18 -33
- package/dist/components/DropdownMenu/WDropdownMenu.vue.d.ts.map +1 -1
- package/dist/components/DropdownMenu/WDropdownMenu.vue.js +3 -3
- package/dist/components/DropdownMenu/types.d.ts +8 -0
- package/dist/components/DropdownMenu/types.d.ts.map +1 -0
- package/dist/components/Expansion/WExpansion.vue.d.ts +20 -18
- package/dist/components/Expansion/WExpansion.vue.d.ts.map +1 -1
- package/dist/components/Expansion/WExpansionItem.vue.d.ts +24 -22
- package/dist/components/Expansion/WExpansionItem.vue.d.ts.map +1 -1
- package/dist/components/FieldWrapper/WFieldWrapper.vue.d.ts +29 -21
- package/dist/components/FieldWrapper/WFieldWrapper.vue.d.ts.map +1 -1
- package/dist/components/FieldWrapper/WFieldWrapper.vue.js +148 -18
- package/dist/components/FieldWrapper/types.d.ts +16 -0
- package/dist/components/FieldWrapper/types.d.ts.map +1 -0
- package/dist/components/FilePicker/WFilePicker.vue.d.ts +36 -32
- package/dist/components/FilePicker/WFilePicker.vue.d.ts.map +1 -1
- package/dist/components/FilePicker/WFilePicker.vue.js +3 -6
- package/dist/components/FilePicker/components/FilePickerItem.vue.d.ts +19 -17
- package/dist/components/FilePicker/components/FilePickerItem.vue.d.ts.map +1 -1
- package/dist/components/FilePicker/components/FilePickerSvg.vue.d.ts +7 -7
- package/dist/components/FilePicker/components/FilePickerSvg.vue.d.ts.map +1 -1
- package/dist/components/FilterWrapper/WFilterWrapper.vue.d.ts +16 -14
- package/dist/components/FilterWrapper/WFilterWrapper.vue.d.ts.map +1 -1
- package/dist/components/Form/WForm.vue.d.ts +21 -19
- package/dist/components/Form/WForm.vue.d.ts.map +1 -1
- package/dist/components/Form/WFormValidator.vue.d.ts +28 -26
- package/dist/components/Form/WFormValidator.vue.d.ts.map +1 -1
- package/dist/components/Form/WFormValidator.vue.js +12 -24
- package/dist/components/Form/models/injection.d.ts +2 -1
- package/dist/components/Form/models/injection.d.ts.map +1 -1
- package/dist/components/Form/models/utils.d.ts.map +1 -1
- package/dist/components/Form/models/utils.js +5 -4
- package/dist/components/Form/use/useFormErrorMessageMap.d.ts +4 -3
- package/dist/components/Form/use/useFormErrorMessageMap.d.ts.map +1 -1
- package/dist/components/Form/use/useFormHasChangesMap.d.ts +3 -2
- package/dist/components/Form/use/useFormHasChangesMap.d.ts.map +1 -1
- package/dist/components/Form/use/useFormInitModelMap.d.ts +2 -1
- package/dist/components/Form/use/useFormInitModelMap.d.ts.map +1 -1
- package/dist/components/Form/use/useFormInvalidateMap.d.ts +2 -1
- package/dist/components/Form/use/useFormInvalidateMap.d.ts.map +1 -1
- package/dist/components/Form/use/useFormTitleMap.d.ts +2 -1
- package/dist/components/Form/use/useFormTitleMap.d.ts.map +1 -1
- package/dist/components/Form/use/useFormValidateMap.d.ts +2 -1
- package/dist/components/Form/use/useFormValidateMap.d.ts.map +1 -1
- package/dist/components/Form/use/useFormValidateMap.js +1 -2
- package/dist/components/HeaderBar/WHeaderBar.vue.d.ts +27 -24
- package/dist/components/HeaderBar/WHeaderBar.vue.d.ts.map +1 -1
- package/dist/components/HeaderBar/WHeaderBar.vue.js +2 -4
- package/dist/components/ImageViewer/WImageViewer.vue.d.ts +9 -9
- package/dist/components/ImageViewer/WImageViewer.vue.d.ts.map +1 -1
- package/dist/components/ImageViewer/WImageViewer.vue.js +1 -2
- package/dist/components/ImageViewer/components/ImageModal.vue.d.ts +6 -6
- package/dist/components/ImageViewer/components/ImageModal.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/WInfiniteList.vue.d.ts +67 -237
- package/dist/components/InfiniteList/WInfiniteList.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/WInfiniteListPages.vue.d.ts +50 -187
- package/dist/components/InfiniteList/WInfiniteListPages.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/WInfiniteListPages.vue.js +20 -40
- package/dist/components/InfiniteList/components/EmptyComponent.vue.d.ts +4 -2
- package/dist/components/InfiniteList/components/EmptyComponent.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/components/InfiniteListButton.vue.d.ts +2 -2
- package/dist/components/InfiniteList/components/InfiniteListButton.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/components/InfiniteListPage.vue.d.ts +57 -209
- package/dist/components/InfiniteList/components/InfiniteListPage.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/components/InfiniteListPage.vue.js +21 -42
- package/dist/components/InfiniteList/components/InfiniteListPageSelectItem.vue.d.ts +18 -16
- package/dist/components/InfiniteList/components/InfiniteListPageSelectItem.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/components/InfiniteListPageSelection.vue.d.ts +19 -43
- package/dist/components/InfiniteList/components/InfiniteListPageSelection.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/components/InfiniteListPageSelection.vue.js +2 -4
- package/dist/components/InfiniteList/components/InfiniteListPageTitle.vue.d.ts +13 -23
- package/dist/components/InfiniteList/components/InfiniteListPageTitle.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/components/InfiniteListScroll.vue.d.ts +14 -12
- package/dist/components/InfiniteList/components/InfiniteListScroll.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/components/InfiniteListScroll.vue.js +1 -2
- package/dist/components/InfiniteList/models/injection.d.ts +8 -7
- package/dist/components/InfiniteList/models/injection.d.ts.map +1 -1
- package/dist/components/InfiniteList/models/utils.js +2 -4
- package/dist/components/InfiniteList/use/useInfiniteListHeader.d.ts +5 -5
- package/dist/components/InfiniteList/use/useInfiniteListHeader.js +4 -2
- package/dist/components/InfiniteList/use/useRefetchNextPages.d.ts +1 -1
- package/dist/components/InfiniteList/use/useRefetchNextPages.js +1 -2
- package/dist/components/InfiniteList/use/useSelected.d.ts +6 -5
- package/dist/components/InfiniteList/use/useSelected.d.ts.map +1 -1
- package/dist/components/InfiniteList/use/useSelected.js +13 -26
- package/dist/components/InfoCard/WInfoCard.vue.d.ts +16 -14
- package/dist/components/InfoCard/WInfoCard.vue.d.ts.map +1 -1
- package/dist/components/InfoCard/WInfoCardNegative.vue.d.ts +16 -13
- package/dist/components/InfoCard/WInfoCardNegative.vue.d.ts.map +1 -1
- package/dist/components/Input/WInput.vue.d.ts +41 -199
- package/dist/components/Input/WInput.vue.d.ts.map +1 -1
- package/dist/components/Input/WInput.vue.js +137 -227
- package/dist/components/Input/WInputAsync.vue.d.ts +16 -94
- package/dist/components/Input/WInputAsync.vue.d.ts.map +1 -1
- package/dist/components/Input/WInputAsync.vue.js +118 -104
- package/dist/components/Input/WInputDate.vue.d.ts +41 -8
- package/dist/components/Input/WInputDate.vue.d.ts.map +1 -1
- package/dist/components/Input/WInputDate.vue.js +66 -14
- package/dist/components/Input/WInputOptions.vue.d.ts +18 -125
- package/dist/components/Input/WInputOptions.vue.d.ts.map +1 -1
- package/dist/components/Input/WInputOptions.vue.js +64 -53
- package/dist/components/Input/WInputSuggest.vue.d.ts +49 -207
- package/dist/components/Input/WInputSuggest.vue.d.ts.map +1 -1
- package/dist/components/Input/WInputSuggest.vue.js +71 -57
- package/dist/components/Input/components/InputActions.vue.d.ts +34 -28
- package/dist/components/Input/components/InputActions.vue.d.ts.map +1 -1
- package/dist/components/Input/components/InputActions.vue.js +49 -84
- package/dist/components/Input/components/InputActionsButton.vue.d.ts +35 -0
- package/dist/components/Input/components/InputActionsButton.vue.d.ts.map +1 -0
- package/dist/components/Input/components/InputActionsButton.vue.js +41 -0
- package/dist/components/Input/components/InputActionsButton.vue2.js +5 -0
- package/dist/components/Input/types.d.ts +45 -0
- package/dist/components/Input/types.d.ts.map +1 -0
- package/dist/components/Link/WLink.vue.d.ts +19 -16
- package/dist/components/Link/WLink.vue.d.ts.map +1 -1
- package/dist/components/Link/WLinkArrow.vue.d.ts +12 -9
- package/dist/components/Link/WLinkArrow.vue.d.ts.map +1 -1
- package/dist/components/ListCard/WListCard.vue.d.ts +27 -25
- package/dist/components/ListCard/WListCard.vue.d.ts.map +1 -1
- package/dist/components/ListCard/WListCardField.vue.d.ts +17 -14
- package/dist/components/ListCard/WListCardField.vue.d.ts.map +1 -1
- package/dist/components/MenuItem/WMenuItem.vue.d.ts +19 -16
- package/dist/components/MenuItem/WMenuItem.vue.d.ts.map +1 -1
- package/dist/components/Modal/WModal.vue.d.ts +1 -1
- package/dist/components/Modal/WModal.vue.d.ts.map +1 -1
- package/dist/components/Modal/WModal.vue.js +2 -4
- package/dist/components/Modal/WModalStepper.vue.d.ts +18 -16
- package/dist/components/Modal/WModalStepper.vue.d.ts.map +1 -1
- package/dist/components/Modal/WModalWrapper.vue.d.ts +14 -12
- package/dist/components/Modal/WModalWrapper.vue.d.ts.map +1 -1
- package/dist/components/Modal/components/ModalCloseButton.vue.d.ts +2 -2
- package/dist/components/Modal/components/ModalCloseButton.vue.d.ts.map +1 -1
- package/dist/components/Modal/modals/Confirm/ConfirmModal.vue.d.ts +19 -18
- package/dist/components/Modal/modals/Confirm/ConfirmModal.vue.d.ts.map +1 -1
- package/dist/components/Modal/modals/Confirm/ConfirmModal.vue2.js +2 -4
- package/dist/components/Modal/modals/Confirm/types.d.ts +2 -1
- package/dist/components/Nav/WNavBar.vue.d.ts +7 -5
- package/dist/components/Nav/WNavBar.vue.d.ts.map +1 -1
- package/dist/components/Nav/WNavItem.vue.d.ts +16 -13
- package/dist/components/Nav/WNavItem.vue.d.ts.map +1 -1
- package/dist/components/Nav/WNavItem.vue.js +1 -2
- package/dist/components/Nav/WNavItemExpand.vue.d.ts +15 -12
- package/dist/components/Nav/WNavItemExpand.vue.d.ts.map +1 -1
- package/dist/components/Nav/WNavItemExpand.vue.js +3 -0
- package/dist/components/Nav/WNavItemTransition.vue.d.ts +4 -2
- package/dist/components/Nav/WNavItemTransition.vue.d.ts.map +1 -1
- package/dist/components/Notify/WNotify.vue.d.ts +1 -1
- package/dist/components/Notify/WNotify.vue.d.ts.map +1 -1
- package/dist/components/Notify/WNotify.vue.js +1 -2
- package/dist/components/Notify/components/NotifyCard.vue.d.ts +15 -14
- package/dist/components/Notify/components/NotifyCard.vue.d.ts.map +1 -1
- package/dist/components/Notify/components/NotifyCard.vue.js +2 -4
- package/dist/components/Notify/models/types.d.ts +3 -2
- package/dist/components/Select/WSelect.vue.d.ts +41 -188
- package/dist/components/Select/WSelect.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelect.vue.js +74 -66
- package/dist/components/Select/WSelectAsync.vue.d.ts +32 -207
- package/dist/components/Select/WSelectAsync.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelectAsync.vue.js +78 -60
- package/dist/components/Select/WSelectAsyncList.vue.d.ts +33 -111
- package/dist/components/Select/WSelectAsyncList.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelectAsyncSingle.vue.d.ts +24 -166
- package/dist/components/Select/WSelectAsyncSingle.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelectAsyncSingle.vue.js +93 -82
- package/dist/components/Select/WSelectSingle.vue.d.ts +25 -149
- package/dist/components/Select/WSelectSingle.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelectSingle.vue.js +84 -70
- package/dist/components/Select/components/SelectAsyncList.vue.d.ts +43 -133
- package/dist/components/Select/components/SelectAsyncList.vue.d.ts.map +1 -1
- package/dist/components/Select/components/SelectAsyncList.vue.js +7 -14
- package/dist/components/Select/components/SelectAsyncPrefix.vue.d.ts +37 -104
- package/dist/components/Select/components/SelectAsyncPrefix.vue.d.ts.map +1 -1
- package/dist/components/Select/components/SelectAsyncPrefixPage.vue.d.ts +37 -102
- package/dist/components/Select/components/SelectAsyncPrefixPage.vue.d.ts.map +1 -1
- package/dist/components/Select/components/SelectAsyncPrefixPage.vue.js +1 -2
- package/dist/components/Select/components/SelectOption.vue.d.ts +45 -132
- package/dist/components/Select/components/SelectOption.vue.d.ts.map +1 -1
- package/dist/components/Select/components/SelectOption.vue.js +12 -24
- package/dist/components/Select/components/SelectOptionPrefix.vue.d.ts +23 -52
- package/dist/components/Select/components/SelectOptionPrefix.vue.d.ts.map +1 -1
- package/dist/components/Select/types.d.ts +47 -0
- package/dist/components/Select/types.d.ts.map +1 -0
- package/dist/components/Skeleton/WSkeleton.vue.d.ts +1 -1
- package/dist/components/Skeleton/WSkeleton.vue.d.ts.map +1 -1
- package/dist/components/Spinner/WSpinner.vue.d.ts +1 -1
- package/dist/components/Spinner/WSpinner.vue.d.ts.map +1 -1
- package/dist/components/Tabs/WTabs.vue.d.ts +22 -24
- package/dist/components/Tabs/WTabs.vue.d.ts.map +1 -1
- package/dist/components/Tabs/WTabs.vue.js +6 -12
- package/dist/components/Tabs/WTabsColumns.vue.d.ts +3 -3
- package/dist/components/Tabs/WTabsColumns.vue.d.ts.map +1 -1
- package/dist/components/Tabs/components/TabItem.vue.d.ts +14 -12
- package/dist/components/Tabs/components/TabItem.vue.d.ts.map +1 -1
- package/dist/components/Tabs/components/TabItem.vue.js +3 -6
- package/dist/components/Tabs/models/injection.d.ts +2 -1
- package/dist/components/Tabs/models/injection.d.ts.map +1 -1
- package/dist/components/Tabs/use/useTabItemActiveListener.js +1 -2
- package/dist/components/Toggle/WToggle.vue.d.ts +19 -50
- package/dist/components/Toggle/WToggle.vue.d.ts.map +1 -1
- package/dist/components/Toggle/WToggle.vue.js +1 -2
- package/dist/components/Tooltip/WTooltip.vue.d.ts +15 -15
- package/dist/components/Tooltip/WTooltip.vue.d.ts.map +1 -1
- package/dist/components/Tooltip/WTooltip.vue.js +4 -8
- package/dist/components/Tooltip/WTooltipContainer.vue.d.ts +1 -1
- package/dist/components/Tooltip/WTooltipContainer.vue.d.ts.map +1 -1
- package/dist/components/Tooltip/WTooltipContainer.vue.js +1 -2
- package/dist/components/Tooltip/components/TooltipContainer.vue.d.ts +22 -19
- package/dist/components/Tooltip/components/TooltipContainer.vue.d.ts.map +1 -1
- package/dist/components/Tooltip/components/TooltipContainer.vue.js +5 -10
- package/dist/imports/componentsPlugin.d.ts +64 -63
- package/dist/imports/iconsSax.d.ts +3 -0
- package/dist/imports/iconsSax.d.ts.map +1 -1
- package/dist/imports/iconsSax.js +3 -0
- package/dist/main.d.ts +1 -0
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +1 -0
- package/dist/utils/DOMListenerContainer.js +2 -4
- package/dist/utils/Modal.d.ts +4 -3
- package/dist/utils/Modal.d.ts.map +1 -1
- package/dist/utils/Notify.d.ts +5 -4
- package/dist/utils/Notify.d.ts.map +1 -1
- package/dist/utils/Tooltip.d.ts +2 -1
- package/dist/utils/dateTime.d.ts.map +1 -1
- package/dist/utils/dateTime.js +28 -56
- package/dist/utils/useCopy.d.ts +8 -0
- package/dist/utils/useCopy.d.ts.map +1 -0
- package/dist/utils/useCopy.js +56 -0
- package/dist/utils/useDefaultQuery.d.ts +4 -3
- package/dist/utils/useDefaultQuery.d.ts.map +1 -1
- package/dist/utils/utils.d.ts.map +1 -1
- package/dist/utils/utils.js +10 -20
- package/package.json +40 -19
- package/tailwind-base/plugins/default.cjs +6 -0
- package/tailwind-base/theme/sizes.cjs +2 -0
@@ -49,18 +49,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
49
49
|
const previousPage = ref();
|
50
50
|
const isResettingPage = ref(false);
|
51
51
|
const getSkeletonLength = (pagesBefore) => {
|
52
|
-
if (props.skeletonLength === void 0)
|
53
|
-
return props.pageLength;
|
52
|
+
if (props.skeletonLength === void 0) return props.pageLength;
|
54
53
|
const length = Math.min(props.skeletonLength - pagesBefore * props.pageLength, props.pageLength);
|
55
54
|
return length < 0 ? props.pageLength : length;
|
56
55
|
};
|
57
56
|
const isPreviousButtonVisible = computed(() => {
|
58
|
-
if (pages.value.length === 1 && pages.value[0] > 1)
|
59
|
-
|
60
|
-
if (
|
61
|
-
return false;
|
62
|
-
if (previousPage.value)
|
63
|
-
return true;
|
57
|
+
if (pages.value.length === 1 && pages.value[0] > 1) return true;
|
58
|
+
if (count.value === 0) return false;
|
59
|
+
if (previousPage.value) return true;
|
64
60
|
return false;
|
65
61
|
});
|
66
62
|
const { pageComponent, refetchNextPages } = useRefetchNextPages();
|
@@ -72,54 +68,40 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
72
68
|
};
|
73
69
|
const updateNextPage = (value) => {
|
74
70
|
nextPage.value = value;
|
75
|
-
if (pages.value.length === 1 && getIsScrollDown(props.scrollingElement))
|
76
|
-
addNextPage(true);
|
71
|
+
if (pages.value.length === 1 && getIsScrollDown(props.scrollingElement)) addNextPage(true);
|
77
72
|
};
|
78
73
|
const updatePreviousPage = (value) => {
|
79
74
|
previousPage.value = value;
|
80
|
-
if (pages.value.length === 1)
|
81
|
-
addPreviousPage(true);
|
75
|
+
if (pages.value.length === 1) addPreviousPage(true);
|
82
76
|
};
|
83
77
|
const addNextPage = (silent) => {
|
84
|
-
if (!nextPage.value)
|
85
|
-
|
86
|
-
if (pages.value.includes(nextPage.value))
|
87
|
-
return;
|
78
|
+
if (!nextPage.value) return;
|
79
|
+
if (pages.value.includes(nextPage.value)) return;
|
88
80
|
pages.value.push(nextPage.value);
|
89
|
-
if (!silent)
|
90
|
-
|
91
|
-
if (pages.value.length < props.maxPages)
|
92
|
-
return;
|
81
|
+
if (!silent) emit("update:page", nextPage.value);
|
82
|
+
if (pages.value.length < props.maxPages) return;
|
93
83
|
const firstPage = pages.value.shift();
|
94
|
-
if (firstPage === void 0)
|
95
|
-
return;
|
84
|
+
if (firstPage === void 0) return;
|
96
85
|
previousPage.value = firstPage;
|
97
86
|
};
|
98
87
|
const addPreviousPage = (silent) => {
|
99
|
-
if (!previousPage.value)
|
100
|
-
|
101
|
-
if (pages.value.includes(previousPage.value))
|
102
|
-
return;
|
88
|
+
if (!previousPage.value) return;
|
89
|
+
if (pages.value.includes(previousPage.value)) return;
|
103
90
|
pages.value.unshift(previousPage.value);
|
104
|
-
if (!silent)
|
105
|
-
|
106
|
-
if (pages.value.length < props.maxPages)
|
107
|
-
return;
|
91
|
+
if (!silent) emit("update:page", previousPage.value);
|
92
|
+
if (pages.value.length < props.maxPages) return;
|
108
93
|
const lastPage = pages.value.pop();
|
109
|
-
if (lastPage === void 0)
|
110
|
-
return;
|
94
|
+
if (lastPage === void 0) return;
|
111
95
|
nextPage.value = lastPage;
|
112
96
|
};
|
113
97
|
const updateScroll = (height) => {
|
114
98
|
const element = props.scrollingElement ?? document.scrollingElement;
|
115
|
-
if (!element || element.scrollTop === 0)
|
116
|
-
return;
|
99
|
+
if (!element || element.scrollTop === 0) return;
|
117
100
|
element.scrollTop = element.scrollTop + height;
|
118
101
|
};
|
119
102
|
const removePage = (page) => {
|
120
103
|
const index = pages.value.indexOf(page);
|
121
|
-
if (index === -1)
|
122
|
-
return;
|
104
|
+
if (index === -1) return;
|
123
105
|
const newPages = pages.value.slice(0, pages.value.length - index);
|
124
106
|
pages.value = newPages.length === 0 ? [1] : newPages;
|
125
107
|
emit("update:page", pages.value[pages.value.length - 1]);
|
@@ -140,12 +122,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
140
122
|
pages.value = [page];
|
141
123
|
nextPage.value = null;
|
142
124
|
previousPage.value = null;
|
143
|
-
if (!props.skipScrollTarget)
|
144
|
-
(props.scrollingElement ?? document.scrollingElement)?.scrollTo(0, props.headerTop);
|
125
|
+
if (!props.skipScrollTarget) (props.scrollingElement ?? document.scrollingElement)?.scrollTo(0, props.headerTop);
|
145
126
|
};
|
146
127
|
watch(toRef(props, "queryParams"), (newValue, oldValue) => {
|
147
|
-
if (isEqualObj(newValue, oldValue, ["page", ...props.excludeParams ?? []]))
|
148
|
-
return;
|
128
|
+
if (isEqualObj(newValue, oldValue, ["page", ...props.excludeParams ?? []])) return;
|
149
129
|
resetPage();
|
150
130
|
});
|
151
131
|
watch(count, (value) => emit("update:count", value), { immediate: true });
|
@@ -1,6 +1,8 @@
|
|
1
|
-
declare
|
1
|
+
declare function __VLS_template(): {
|
2
2
|
default?(_: {}): any;
|
3
|
-
}
|
3
|
+
};
|
4
|
+
declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}>;
|
5
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
4
6
|
export default _default;
|
5
7
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
6
8
|
new (): {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"EmptyComponent.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/InfiniteList/components/EmptyComponent.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"EmptyComponent.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/InfiniteList/components/EmptyComponent.vue"],"names":[],"mappings":"AAWA,iBAAS,cAAc;qBAgBM,GAAG;EAa/B;AACD,QAAA,MAAM,eAAe,0NAKnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
@@ -1,7 +1,7 @@
|
|
1
|
-
declare const _default: import(
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
2
2
|
click: () => void;
|
3
3
|
check: () => void;
|
4
|
-
}, string, import(
|
4
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{}>> & {
|
5
5
|
onClick?: (() => any) | undefined;
|
6
6
|
onCheck?: (() => any) | undefined;
|
7
7
|
}, {}, {}>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"InfiniteListButton.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/InfiniteList/components/InfiniteListButton.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"InfiniteListButton.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/InfiniteList/components/InfiniteListButton.vue"],"names":[],"mappings":";;;;;;;AAgHA,wBAMG"}
|
@@ -1,96 +1,18 @@
|
|
1
|
-
declare const _default: <Model extends
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
"onUpdate:previous-page"?: ((value: number | null) => any) | undefined;
|
15
|
-
"onUpdate:scroll"?: ((value: number) => any) | undefined;
|
16
|
-
"onRemove:page"?: ((value: number) => any) | undefined;
|
17
|
-
onRefetch?: (() => any) | undefined;
|
18
|
-
"onUpdate-from-header:scroll"?: (() => any) | undefined;
|
19
|
-
onFetched?: (() => any) | undefined;
|
20
|
-
useQueryFn: UseQueryPaginated<Data, ApiError, QueryParams>;
|
21
|
-
isInvalidPage: (error: unknown) => boolean;
|
22
|
-
skeletonLength: number;
|
23
|
-
firstPage: boolean;
|
24
|
-
lastPage: boolean;
|
25
|
-
hidePageTitle?: boolean | undefined;
|
26
|
-
noGap?: boolean | undefined;
|
27
|
-
resetting?: boolean | undefined;
|
28
|
-
emptyStub?: string | undefined;
|
29
|
-
minHeight?: boolean | undefined;
|
30
|
-
lastChild?: boolean | undefined;
|
31
|
-
pageClass?: string | undefined;
|
32
|
-
refetchInterval?: number | false | undefined;
|
33
|
-
queryOptions?: Partial<Parameters<UseQueryPaginated<Data, ApiError, QueryParams>>[1]>;
|
34
|
-
reverseSelection?: boolean | undefined;
|
35
|
-
allowPageSelection?: boolean | undefined;
|
36
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
|
37
|
-
attrs: any;
|
38
|
-
slots: Readonly<{
|
39
|
-
default?: ((props: {
|
40
|
-
item: Data;
|
41
|
-
setter: (newItem?: Data | undefined) => void;
|
42
|
-
skeleton: boolean;
|
43
|
-
refetch: () => void;
|
44
|
-
previous?: Data | undefined;
|
45
|
-
next?: Data | undefined;
|
46
|
-
first: boolean;
|
47
|
-
last: boolean;
|
48
|
-
page: number;
|
49
|
-
index: number;
|
50
|
-
}) => void) | undefined;
|
51
|
-
}> & {
|
52
|
-
default?: ((props: {
|
53
|
-
item: Data;
|
54
|
-
setter: (newItem?: Data | undefined) => void;
|
55
|
-
skeleton: boolean;
|
56
|
-
refetch: () => void;
|
57
|
-
previous?: Data | undefined;
|
58
|
-
next?: Data | undefined;
|
59
|
-
first: boolean;
|
60
|
-
last: boolean;
|
61
|
-
page: number;
|
62
|
-
index: number;
|
63
|
-
}) => void) | undefined;
|
64
|
-
};
|
65
|
-
emit: {
|
66
|
-
(e: 'update:count', value: number): void;
|
67
|
-
(e: 'update:pages-count', value: number): void;
|
68
|
-
(e: 'update:next-page', value: number | null): void;
|
69
|
-
(e: 'update:previous-page', value: number | null): void;
|
70
|
-
(e: 'update:scroll', value: number): void;
|
71
|
-
(e: 'remove:page', value: number): void;
|
72
|
-
(e: 'refetch'): void;
|
73
|
-
(e: 'update-from-header:scroll'): void;
|
74
|
-
(e: 'update:selected', values: Model[]): void;
|
75
|
-
(e: 'fetched'): void;
|
76
|
-
};
|
77
|
-
} | undefined, __VLS_expose?: ((exposed: import("vue").ShallowUnwrapRef<{
|
78
|
-
getFirst: () => Data | undefined;
|
79
|
-
getLast: () => Data | undefined;
|
80
|
-
refetch: () => Promise<void>;
|
81
|
-
scrollTo: (index?: number) => void;
|
82
|
-
}>) => void) | undefined, __VLS_setup?: Promise<{
|
83
|
-
props: {
|
84
|
-
transition?: boolean | undefined;
|
1
|
+
declare const _default: <Model extends number | string, Data extends DefaultData, ApiError, QueryParams>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_Prettify<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
2
|
+
props: __VLS_Prettify<Pick<Partial<{}> & Omit<{
|
3
|
+
"onUpdate:count"?: ((value: number) => any) | undefined;
|
4
|
+
"onUpdate:selected"?: ((values: Model[]) => any) | undefined;
|
5
|
+
"onUpdate:pages-count"?: ((value: number) => any) | undefined;
|
6
|
+
"onUpdate:next-page"?: ((value: number | null) => any) | undefined;
|
7
|
+
"onUpdate:previous-page"?: ((value: number | null) => any) | undefined;
|
8
|
+
"onUpdate:scroll"?: ((value: number) => any) | undefined;
|
9
|
+
"onRemove:page"?: ((value: number) => any) | undefined;
|
10
|
+
onRefetch?: (() => any) | undefined;
|
11
|
+
"onUpdate-from-header:scroll"?: (() => any) | undefined;
|
12
|
+
onFetched?: (() => any) | undefined;
|
13
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & Readonly<import('vue').ExtractPropTypes<{}>> & {
|
85
14
|
"onUpdate:count"?: ((value: number) => any) | undefined;
|
86
|
-
valueGetter: (data: Data) => Model;
|
87
|
-
wrap?: boolean | undefined;
|
88
|
-
scrollingElement?: Element | null | undefined;
|
89
15
|
"onUpdate:selected"?: ((values: Model[]) => any) | undefined;
|
90
|
-
queryParams: QueryParams;
|
91
|
-
selected?: Model[] | undefined;
|
92
|
-
selectOnly?: boolean | undefined;
|
93
|
-
unselectOnly?: boolean | undefined;
|
94
16
|
"onUpdate:pages-count"?: ((value: number) => any) | undefined;
|
95
17
|
"onUpdate:next-page"?: ((value: number | null) => any) | undefined;
|
96
18
|
"onUpdate:previous-page"?: ((value: number | null) => any) | undefined;
|
@@ -99,156 +21,82 @@ declare const _default: <Model extends string | number, Data extends DefaultData
|
|
99
21
|
onRefetch?: (() => any) | undefined;
|
100
22
|
"onUpdate-from-header:scroll"?: (() => any) | undefined;
|
101
23
|
onFetched?: (() => any) | undefined;
|
24
|
+
}, never>, "onUpdate:count" | "onUpdate:selected" | "onUpdate:pages-count" | "onUpdate:next-page" | "onUpdate:previous-page" | "onUpdate:scroll" | "onRemove:page" | "onRefetch" | "onUpdate-from-header:scroll" | "onFetched"> & {
|
25
|
+
queryParams: QueryParams;
|
102
26
|
useQueryFn: UseQueryPaginated<Data, ApiError, QueryParams>;
|
103
27
|
isInvalidPage: (error: unknown) => boolean;
|
104
28
|
skeletonLength: number;
|
105
29
|
firstPage: boolean;
|
106
30
|
lastPage: boolean;
|
107
|
-
hidePageTitle?: boolean
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
31
|
+
hidePageTitle?: boolean;
|
32
|
+
wrap?: boolean;
|
33
|
+
noGap?: boolean;
|
34
|
+
transition?: boolean;
|
35
|
+
resetting?: boolean;
|
36
|
+
emptyStub?: string;
|
37
|
+
minHeight?: boolean;
|
38
|
+
lastChild?: boolean;
|
39
|
+
pageClass?: string;
|
40
|
+
refetchInterval?: number | false;
|
41
|
+
scrollingElement?: Element | null;
|
115
42
|
queryOptions?: Partial<Parameters<UseQueryPaginated<Data, ApiError, QueryParams>>[1]>;
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
43
|
+
selected?: Model[];
|
44
|
+
valueGetter: (data: Data) => Model;
|
45
|
+
selectOnly?: boolean;
|
46
|
+
unselectOnly?: boolean;
|
47
|
+
reverseSelection?: boolean;
|
48
|
+
allowPageSelection?: boolean;
|
49
|
+
}> & import('vue').PublicProps;
|
50
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{
|
120
51
|
getFirst: () => Data | undefined;
|
121
52
|
getLast: () => Data | undefined;
|
122
53
|
refetch: () => Promise<void>;
|
123
54
|
scrollTo: (index?: number) => void;
|
124
55
|
}>): void;
|
125
56
|
attrs: any;
|
126
|
-
slots: Readonly<{
|
127
|
-
default?: (
|
57
|
+
slots: ReturnType<() => Readonly<{
|
58
|
+
default?: (props: {
|
128
59
|
item: Data;
|
129
60
|
setter: (newItem?: Data | undefined) => void;
|
130
61
|
skeleton: boolean;
|
131
62
|
refetch: () => void;
|
132
|
-
previous?: Data
|
133
|
-
next?: Data
|
63
|
+
previous?: Data;
|
64
|
+
next?: Data;
|
134
65
|
first: boolean;
|
135
66
|
last: boolean;
|
136
67
|
page: number;
|
137
68
|
index: number;
|
138
|
-
}) => void
|
69
|
+
}) => void;
|
139
70
|
}> & {
|
140
|
-
default?: (
|
71
|
+
default?: (props: {
|
141
72
|
item: Data;
|
142
73
|
setter: (newItem?: Data | undefined) => void;
|
143
74
|
skeleton: boolean;
|
144
75
|
refetch: () => void;
|
145
|
-
previous?: Data
|
146
|
-
next?: Data
|
76
|
+
previous?: Data;
|
77
|
+
next?: Data;
|
147
78
|
first: boolean;
|
148
79
|
last: boolean;
|
149
80
|
page: number;
|
150
81
|
index: number;
|
151
|
-
}) => void
|
152
|
-
}
|
82
|
+
}) => void;
|
83
|
+
}>;
|
153
84
|
emit: {
|
154
|
-
(e:
|
155
|
-
(e:
|
156
|
-
(e:
|
157
|
-
(e:
|
158
|
-
(e:
|
159
|
-
(e:
|
160
|
-
(e:
|
161
|
-
(e:
|
162
|
-
(e:
|
163
|
-
(e:
|
164
|
-
};
|
165
|
-
}>) => import(
|
85
|
+
(e: "update:count", value: number): void;
|
86
|
+
(e: "update:pages-count", value: number): void;
|
87
|
+
(e: "update:next-page", value: number | null): void;
|
88
|
+
(e: "update:previous-page", value: number | null): void;
|
89
|
+
(e: "update:scroll", value: number): void;
|
90
|
+
(e: "remove:page", value: number): void;
|
91
|
+
(e: "refetch"): void;
|
92
|
+
(e: "update-from-header:scroll"): void;
|
93
|
+
(e: "update:selected", values: Model[]): void;
|
94
|
+
(e: "fetched"): void;
|
95
|
+
} & {};
|
96
|
+
}>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
166
97
|
[key: string]: any;
|
167
98
|
}> & {
|
168
|
-
__ctx?:
|
169
|
-
props: {
|
170
|
-
transition?: boolean | undefined;
|
171
|
-
"onUpdate:count"?: ((value: number) => any) | undefined;
|
172
|
-
valueGetter: (data: Data) => Model;
|
173
|
-
wrap?: boolean | undefined;
|
174
|
-
scrollingElement?: Element | null | undefined;
|
175
|
-
"onUpdate:selected"?: ((values: Model[]) => any) | undefined;
|
176
|
-
queryParams: QueryParams;
|
177
|
-
selected?: Model[] | undefined;
|
178
|
-
selectOnly?: boolean | undefined;
|
179
|
-
unselectOnly?: boolean | undefined;
|
180
|
-
"onUpdate:pages-count"?: ((value: number) => any) | undefined;
|
181
|
-
"onUpdate:next-page"?: ((value: number | null) => any) | undefined;
|
182
|
-
"onUpdate:previous-page"?: ((value: number | null) => any) | undefined;
|
183
|
-
"onUpdate:scroll"?: ((value: number) => any) | undefined;
|
184
|
-
"onRemove:page"?: ((value: number) => any) | undefined;
|
185
|
-
onRefetch?: (() => any) | undefined;
|
186
|
-
"onUpdate-from-header:scroll"?: (() => any) | undefined;
|
187
|
-
onFetched?: (() => any) | undefined;
|
188
|
-
useQueryFn: UseQueryPaginated<Data, ApiError, QueryParams>;
|
189
|
-
isInvalidPage: (error: unknown) => boolean;
|
190
|
-
skeletonLength: number;
|
191
|
-
firstPage: boolean;
|
192
|
-
lastPage: boolean;
|
193
|
-
hidePageTitle?: boolean | undefined;
|
194
|
-
noGap?: boolean | undefined;
|
195
|
-
resetting?: boolean | undefined;
|
196
|
-
emptyStub?: string | undefined;
|
197
|
-
minHeight?: boolean | undefined;
|
198
|
-
lastChild?: boolean | undefined;
|
199
|
-
pageClass?: string | undefined;
|
200
|
-
refetchInterval?: number | false | undefined;
|
201
|
-
queryOptions?: Partial<Parameters<UseQueryPaginated<Data, ApiError, QueryParams>>[1]>;
|
202
|
-
reverseSelection?: boolean | undefined;
|
203
|
-
allowPageSelection?: boolean | undefined;
|
204
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
205
|
-
expose(exposed: import("vue").ShallowUnwrapRef<{
|
206
|
-
getFirst: () => Data | undefined;
|
207
|
-
getLast: () => Data | undefined;
|
208
|
-
refetch: () => Promise<void>;
|
209
|
-
scrollTo: (index?: number) => void;
|
210
|
-
}>): void;
|
211
|
-
attrs: any;
|
212
|
-
slots: Readonly<{
|
213
|
-
default?: ((props: {
|
214
|
-
item: Data;
|
215
|
-
setter: (newItem?: Data | undefined) => void;
|
216
|
-
skeleton: boolean;
|
217
|
-
refetch: () => void;
|
218
|
-
previous?: Data | undefined;
|
219
|
-
next?: Data | undefined;
|
220
|
-
first: boolean;
|
221
|
-
last: boolean;
|
222
|
-
page: number;
|
223
|
-
index: number;
|
224
|
-
}) => void) | undefined;
|
225
|
-
}> & {
|
226
|
-
default?: ((props: {
|
227
|
-
item: Data;
|
228
|
-
setter: (newItem?: Data | undefined) => void;
|
229
|
-
skeleton: boolean;
|
230
|
-
refetch: () => void;
|
231
|
-
previous?: Data | undefined;
|
232
|
-
next?: Data | undefined;
|
233
|
-
first: boolean;
|
234
|
-
last: boolean;
|
235
|
-
page: number;
|
236
|
-
index: number;
|
237
|
-
}) => void) | undefined;
|
238
|
-
};
|
239
|
-
emit: {
|
240
|
-
(e: 'update:count', value: number): void;
|
241
|
-
(e: 'update:pages-count', value: number): void;
|
242
|
-
(e: 'update:next-page', value: number | null): void;
|
243
|
-
(e: 'update:previous-page', value: number | null): void;
|
244
|
-
(e: 'update:scroll', value: number): void;
|
245
|
-
(e: 'remove:page', value: number): void;
|
246
|
-
(e: 'refetch'): void;
|
247
|
-
(e: 'update-from-header:scroll'): void;
|
248
|
-
(e: 'update:selected', values: Model[]): void;
|
249
|
-
(e: 'fetched'): void;
|
250
|
-
};
|
251
|
-
} | undefined;
|
99
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
252
100
|
};
|
253
101
|
export default _default;
|
254
102
|
type __VLS_Prettify<T> = {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"InfiniteListPage.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/InfiniteList/components/InfiniteListPage.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"InfiniteListPage.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/InfiniteList/components/InfiniteListPage.vue"],"names":[],"mappings":"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"}
|
@@ -50,16 +50,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
50
50
|
const previousPage = computed(() => data.value?.previous);
|
51
51
|
const page = computed(() => props.queryParams instanceof Object && "page" in props.queryParams && Number.isInteger(props.queryParams.page) ? props.queryParams.page : null);
|
52
52
|
const setItem = (index, newItem) => {
|
53
|
-
if (!data.value)
|
54
|
-
return;
|
53
|
+
if (!data.value) return;
|
55
54
|
const newData = {
|
56
55
|
...data.value,
|
57
56
|
results: [...data.value.results]
|
58
57
|
};
|
59
|
-
if (newItem)
|
60
|
-
|
61
|
-
else
|
62
|
-
newData.results.splice(index, 1);
|
58
|
+
if (newItem) newData.results.splice(index, 1, newItem);
|
59
|
+
else newData.results.splice(index, 1);
|
63
60
|
setData(newData);
|
64
61
|
};
|
65
62
|
const emitRefetch = () => {
|
@@ -67,19 +64,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
67
64
|
};
|
68
65
|
const refetchPage = async () => {
|
69
66
|
await refetch();
|
70
|
-
if (props.lastPage && nextPage.value !== void 0)
|
71
|
-
|
72
|
-
if (props.firstPage && previousPage.value !== void 0)
|
73
|
-
emit("update:previous-page", previousPage.value);
|
67
|
+
if (props.lastPage && nextPage.value !== void 0) emit("update:next-page", nextPage.value);
|
68
|
+
if (props.firstPage && previousPage.value !== void 0) emit("update:previous-page", previousPage.value);
|
74
69
|
};
|
75
70
|
const getFirst = () => {
|
76
|
-
if (!data.value)
|
77
|
-
return void 0;
|
71
|
+
if (!data.value) return void 0;
|
78
72
|
return data.value.results[0];
|
79
73
|
};
|
80
74
|
const getLast = () => {
|
81
|
-
if (!data.value)
|
82
|
-
return void 0;
|
75
|
+
if (!data.value) return void 0;
|
83
76
|
return data.value.results[data.value.results.length - 1];
|
84
77
|
};
|
85
78
|
const scrollTo = (index) => {
|
@@ -92,22 +85,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
92
85
|
element.value?.scrollIntoView({ block: "center", behavior: "smooth" });
|
93
86
|
};
|
94
87
|
watch(data, (value) => {
|
95
|
-
if (props.firstPage && value?.previous !== void 0)
|
96
|
-
|
97
|
-
if (
|
98
|
-
|
99
|
-
if (value?.pages_count !== void 0)
|
100
|
-
emit("update:pages-count", value.pages_count);
|
101
|
-
if (value?.count !== void 0)
|
102
|
-
emit("update:count", value.count);
|
88
|
+
if (props.firstPage && value?.previous !== void 0) emit("update:previous-page", value.previous);
|
89
|
+
if (props.lastPage && value?.next !== void 0) emit("update:next-page", value.next);
|
90
|
+
if (value?.pages_count !== void 0) emit("update:pages-count", value.pages_count);
|
91
|
+
if (value?.count !== void 0) emit("update:count", value.count);
|
103
92
|
}, { immediate: true });
|
104
93
|
watch(error, (error2) => {
|
105
|
-
if (props.isInvalidPage(error2) && page.value !== null)
|
106
|
-
emit("remove:page", page.value);
|
94
|
+
if (props.isInvalidPage(error2) && page.value !== null) emit("remove:page", page.value);
|
107
95
|
}, { immediate: true });
|
108
96
|
watch(isFetching, (value) => {
|
109
|
-
if (value)
|
110
|
-
return;
|
97
|
+
if (value) return;
|
111
98
|
emit("fetched");
|
112
99
|
});
|
113
100
|
let height = 0;
|
@@ -132,13 +119,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
132
119
|
intersectionObserver.observe(element.value);
|
133
120
|
}
|
134
121
|
height = element.value?.getBoundingClientRect()?.height ?? 0;
|
135
|
-
if (height === 0)
|
136
|
-
|
137
|
-
if (!props.firstPage)
|
138
|
-
return;
|
122
|
+
if (height === 0) return;
|
123
|
+
if (!props.firstPage) return;
|
139
124
|
if (props.lastPage) {
|
140
|
-
if (page.value !== 1)
|
141
|
-
nextTick().then(() => emit("update-from-header:scroll"));
|
125
|
+
if (page.value !== 1) nextTick().then(() => emit("update-from-header:scroll"));
|
142
126
|
return;
|
143
127
|
}
|
144
128
|
emit("update:scroll", height);
|
@@ -146,20 +130,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
146
130
|
onBeforeUnmount(() => {
|
147
131
|
intersectionObserver?.disconnect();
|
148
132
|
intersectionObserver = void 0;
|
149
|
-
if (page.value !== null)
|
150
|
-
emit("remove:page", page.value);
|
133
|
+
if (page.value !== null) emit("remove:page", page.value);
|
151
134
|
});
|
152
135
|
watch(data, async (_, oldValue) => {
|
153
|
-
if (oldValue)
|
154
|
-
return;
|
136
|
+
if (oldValue) return;
|
155
137
|
await nextTick();
|
156
138
|
const newHeight = (element.value?.getBoundingClientRect().height ?? 0) - height;
|
157
|
-
if (newHeight === 0)
|
158
|
-
|
159
|
-
if (
|
160
|
-
return;
|
161
|
-
if (props.lastPage)
|
162
|
-
return;
|
139
|
+
if (newHeight === 0) return;
|
140
|
+
if (!props.firstPage) return;
|
141
|
+
if (props.lastPage) return;
|
163
142
|
emit("update:scroll", newHeight);
|
164
143
|
});
|
165
144
|
__expose({
|
@@ -1,23 +1,30 @@
|
|
1
|
-
declare
|
2
|
-
|
3
|
-
|
4
|
-
|
1
|
+
declare function __VLS_template(): {
|
2
|
+
default?(_: {}): any;
|
3
|
+
};
|
4
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_TypePropsToOption<{
|
5
|
+
selected?: boolean;
|
6
|
+
selectedBetween?: boolean;
|
7
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
5
8
|
"update:selected": (value: boolean) => void;
|
6
9
|
"update:selected-range": () => void;
|
7
10
|
"update:selected-range-hover": () => void;
|
8
|
-
}, string, import(
|
9
|
-
selected?: boolean
|
10
|
-
selectedBetween?: boolean
|
11
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<{
|
12
|
+
selected?: boolean;
|
13
|
+
selectedBetween?: boolean;
|
11
14
|
}>>> & {
|
12
15
|
"onUpdate:selected"?: ((value: boolean) => any) | undefined;
|
13
16
|
"onUpdate:selected-range"?: (() => any) | undefined;
|
14
17
|
"onUpdate:selected-range-hover"?: (() => any) | undefined;
|
15
|
-
}, {}, {}
|
16
|
-
|
17
|
-
}>;
|
18
|
+
}, {}, {}>;
|
19
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
18
20
|
export default _default;
|
21
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
22
|
+
new (): {
|
23
|
+
$slots: S;
|
24
|
+
};
|
25
|
+
};
|
19
26
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
20
|
-
type
|
27
|
+
type __VLS_TypePropsToOption<T> = {
|
21
28
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
22
29
|
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
23
30
|
} : {
|
@@ -25,9 +32,4 @@ type __VLS_TypePropsToRuntimeProps<T> = {
|
|
25
32
|
required: true;
|
26
33
|
};
|
27
34
|
};
|
28
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
29
|
-
new (): {
|
30
|
-
$slots: S;
|
31
|
-
};
|
32
|
-
};
|
33
35
|
//# sourceMappingURL=InfiniteListPageSelectItem.vue.d.ts.map
|