eco-vue-js 0.8.41 → 0.8.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/ActionsBar/WActionsBar.vue.d.ts.map +1 -1
- package/dist/components/ActionsBar/WActionsBar.vue.js +8 -8
- package/dist/components/BottomSheet/WBottomSheet.vue.d.ts +4 -4
- package/dist/components/BottomSheet/WBottomSheet.vue.d.ts.map +1 -1
- package/dist/components/BottomSheet/WBottomSheet.vue.js +28 -39
- package/dist/components/Button/WButton.vue.d.ts +1 -1
- package/dist/components/Button/WButton.vue.d.ts.map +1 -1
- package/dist/components/Button/WButton.vue.js +7 -7
- package/dist/components/Button/WButtonAction.vue.d.ts +1 -1
- package/dist/components/Button/WButtonAction.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonAction.vue.js +3 -3
- package/dist/components/Button/WButtonCopy.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonCopy.vue.js +1 -1
- package/dist/components/Button/WButtonDropdown.vue.d.ts +1 -1
- package/dist/components/Button/WButtonDropdown.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonDropdown.vue.js +3 -3
- package/dist/components/Button/WButtonGroup.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonGroup.vue.js +2 -2
- package/dist/components/Button/WButtonMore.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonMore.vue.js +4 -4
- package/dist/components/Button/WButtonMoreItem.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonMoreItem.vue.js +1 -1
- package/dist/components/Button/WButtonSelection.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonSelection.vue.js +8 -8
- package/dist/components/Button/WButtonSelectionAction.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonSelectionAction.vue.js +3 -3
- package/dist/components/Button/types.d.ts +1 -1
- package/dist/components/Button/types.d.ts.map +1 -1
- package/dist/components/Checkbox/WCheckbox.vue.d.ts +3 -1
- package/dist/components/Checkbox/WCheckbox.vue.d.ts.map +1 -1
- package/dist/components/Checkbox/WCheckbox.vue.js +11 -12
- package/dist/components/Chip/WChip.vue.d.ts.map +1 -1
- package/dist/components/Chip/WChip.vue.js +2 -2
- package/dist/components/ClickOutside/WClickOutside.vue.d.ts +3 -1
- package/dist/components/ClickOutside/WClickOutside.vue.d.ts.map +1 -1
- package/dist/components/ClickOutside/WClickOutside.vue.js +5 -7
- package/dist/components/Counter/WCounter.vue.d.ts.map +1 -1
- package/dist/components/Counter/WCounter.vue.js +3 -3
- package/dist/components/DatePicker/WDatePicker.vue.d.ts.map +1 -1
- package/dist/components/DatePicker/WDatePicker.vue.js +2 -2
- package/dist/components/DatePicker/WDatePickerSingle.vue.d.ts.map +1 -1
- package/dist/components/DatePicker/WDatePickerSingle.vue.js +1 -1
- package/dist/components/DatePicker/components/CalendarDay.vue.d.ts.map +1 -1
- package/dist/components/DatePicker/components/CalendarDay.vue.js +6 -6
- package/dist/components/DatePicker/components/CalendarMonth.vue.d.ts +1 -1
- package/dist/components/DatePicker/components/CalendarMonth.vue.d.ts.map +1 -1
- package/dist/components/DatePicker/components/CalendarMonth.vue.js +3 -3
- package/dist/components/DatePicker/components/CalendarToggle.vue.d.ts.map +1 -1
- package/dist/components/DatePicker/components/CalendarToggle.vue.js +6 -6
- package/dist/components/DatePicker/components/CalendarValue.vue.d.ts.map +1 -1
- package/dist/components/DatePicker/components/CalendarValue.vue.js +1 -1
- package/dist/components/DatePicker/components/CalendarWeek.vue.d.ts.map +1 -1
- package/dist/components/DatePicker/models/types.d.ts.map +1 -1
- package/dist/components/Dropdown/WDropdown.vue.d.ts +3 -1
- package/dist/components/Dropdown/WDropdown.vue.d.ts.map +1 -1
- package/dist/components/Dropdown/WDropdown.vue.js +6 -7
- package/dist/components/DropdownMenu/WDropdownMenu.vue.d.ts +4 -0
- package/dist/components/DropdownMenu/WDropdownMenu.vue.d.ts.map +1 -1
- package/dist/components/Expansion/WExpansion.vue.d.ts.map +1 -1
- package/dist/components/Expansion/WExpansion.vue.js +1 -1
- package/dist/components/Expansion/WExpansionItem.vue.d.ts.map +1 -1
- package/dist/components/Expansion/WExpansionItem.vue.js +5 -5
- package/dist/components/FieldWrapper/WFieldWrapper.vue.d.ts.map +1 -1
- package/dist/components/FieldWrapper/WFieldWrapper.vue.js +10 -10
- package/dist/components/FieldWrapper/types.d.ts.map +1 -1
- package/dist/components/FilePicker/WFilePicker.vue.d.ts +4 -1
- package/dist/components/FilePicker/WFilePicker.vue.d.ts.map +1 -1
- package/dist/components/FilePicker/WFilePicker.vue.js +24 -26
- package/dist/components/FilePicker/components/FilePickerItem.vue.d.ts.map +1 -1
- package/dist/components/FilePicker/components/FilePickerItem.vue.js +3 -3
- package/dist/components/FilePicker/components/FilePickerSvg.vue.d.ts +3 -1
- package/dist/components/FilePicker/components/FilePickerSvg.vue.d.ts.map +1 -1
- package/dist/components/FilePicker/components/FilePickerSvg.vue.js +4 -5
- package/dist/components/FilterWrapper/WFilterWrapper.vue.d.ts.map +1 -1
- package/dist/components/FilterWrapper/WFilterWrapper.vue.js +4 -4
- package/dist/components/Form/WForm.vue.d.ts.map +1 -1
- package/dist/components/Form/WFormValidator.vue.d.ts +1 -1
- package/dist/components/Form/WFormValidator.vue.d.ts.map +1 -1
- package/dist/components/Form/WFormValidator.vue.js +7 -7
- package/dist/components/Form/use/useFormErrorMessageMap.d.ts.map +1 -1
- package/dist/components/Form/use/useFormHasChangesMap.d.ts.map +1 -1
- package/dist/components/Form/use/useFormInitModelMap.d.ts.map +1 -1
- package/dist/components/Form/use/useFormInvalidateMap.d.ts.map +1 -1
- package/dist/components/Form/use/useFormTitleMap.d.ts.map +1 -1
- package/dist/components/Form/use/useFormValidateMap.d.ts.map +1 -1
- package/dist/components/FormAsync/WFormAsyncButtonGroup.vue.d.ts.map +1 -1
- package/dist/components/FormAsync/WFormAsyncButtonGroup.vue.js +3 -3
- package/dist/components/FormAsync/WFormAsyncInput.vue.d.ts.map +1 -1
- package/dist/components/FormAsync/WFormAsyncInput.vue.js +2 -2
- package/dist/components/FormAsync/WFormAsyncSelect.vue.d.ts.map +1 -1
- package/dist/components/FormAsync/WFormAsyncSelect.vue.js +2 -2
- package/dist/components/FormAsync/WFormAsyncSelectInfiniteSingle.vue.d.ts.map +1 -1
- package/dist/components/FormAsync/WFormAsyncSelectInfiniteSingle.vue.js +2 -2
- package/dist/components/FormAsync/WFormAsyncSelectSingle.vue.d.ts.map +1 -1
- package/dist/components/FormAsync/WFormAsyncSelectSingle.vue.js +2 -2
- package/dist/components/FormAsync/WFormAsyncSelectStringified.vue.d.ts.map +1 -1
- package/dist/components/FormAsync/WFormAsyncSelectStringified.vue.js +2 -2
- package/dist/components/FormAsync/WFormAsyncToggle.vue.d.ts.map +1 -1
- package/dist/components/FormAsync/WFormAsyncToggle.vue.js +1 -1
- package/dist/components/FormAsync/types.d.ts +2 -2
- package/dist/components/FormAsync/types.d.ts.map +1 -1
- package/dist/components/HeaderBar/WHeaderBar.vue.d.ts.map +1 -1
- package/dist/components/HeaderBar/WHeaderBar.vue.js +14 -16
- package/dist/components/ImageViewer/WImageViewer.vue.d.ts.map +1 -1
- package/dist/components/ImageViewer/WImageViewer.vue.js +6 -6
- package/dist/components/ImageViewer/components/ImageModal.vue.d.ts.map +1 -1
- package/dist/components/ImageViewer/components/ImageModal.vue2.js +3 -3
- package/dist/components/InfiniteList/WInfiniteList.vue.d.ts +2 -2
- package/dist/components/InfiniteList/WInfiniteList.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/WInfiniteList.vue.js +9 -10
- package/dist/components/InfiniteList/WInfiniteListWrapper.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/WInfiniteListWrapper.vue.js +2 -1
- package/dist/components/InfiniteList/components/EmptyComponent.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/components/InfiniteListButton.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/components/InfiniteListButton.vue.js +2 -2
- package/dist/components/InfiniteList/components/InfiniteListPage.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/components/InfiniteListPage.vue.js +15 -16
- package/dist/components/InfiniteList/components/InfiniteListPageSelectItem.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/components/InfiniteListPageSelection.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/components/InfiniteListPageTitle.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/components/InfiniteListPageTitle.vue.js +1 -1
- package/dist/components/InfiniteList/components/InfiniteListPages.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/components/InfiniteListPages.vue.js +17 -18
- package/dist/components/InfiniteList/components/InfiniteListScroll.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/models/utils.d.ts.map +1 -1
- package/dist/components/InfiniteList/use/useInfiniteListHeader.d.ts.map +1 -1
- package/dist/components/InfiniteList/use/useRefetchNextPages.d.ts.map +1 -1
- package/dist/components/InfiniteList/use/useSelected.d.ts.map +1 -1
- package/dist/components/InfoCard/WInfoCard.vue.d.ts.map +1 -1
- package/dist/components/InfoCard/WInfoCard.vue.js +3 -3
- package/dist/components/InfoCard/WInfoCardNegative.vue.d.ts.map +1 -1
- package/dist/components/InfoCard/WInfoCardNegative.vue.js +5 -5
- package/dist/components/Input/WInput.vue.d.ts.map +1 -1
- package/dist/components/Input/WInput.vue.js +15 -16
- package/dist/components/Input/WInputAsync.vue.d.ts.map +1 -1
- package/dist/components/Input/WInputAsync.vue.js +12 -15
- package/dist/components/Input/WInputDate.vue.d.ts +9 -2
- package/dist/components/Input/WInputDate.vue.d.ts.map +1 -1
- package/dist/components/Input/WInputDate.vue.js +6 -9
- package/dist/components/Input/WInputOptions.vue.d.ts.map +1 -1
- package/dist/components/Input/WInputOptions.vue.js +9 -12
- package/dist/components/Input/WInputSuggest.vue.d.ts.map +1 -1
- package/dist/components/Input/WInputSuggest.vue.js +16 -23
- package/dist/components/Input/components/InputActions.vue.d.ts.map +1 -1
- package/dist/components/Input/components/InputActions.vue.js +3 -3
- package/dist/components/Input/components/InputActionsButton.vue.d.ts.map +1 -1
- package/dist/components/Input/components/InputActionsButton.vue.js +2 -2
- package/dist/components/Input/types.d.ts +1 -1
- package/dist/components/Input/types.d.ts.map +1 -1
- package/dist/components/Link/WLink.vue.d.ts +1 -1
- package/dist/components/Link/WLink.vue.d.ts.map +1 -1
- package/dist/components/Link/WLink.vue.js +4 -4
- package/dist/components/Link/WLinkArrow.vue.d.ts.map +1 -1
- package/dist/components/Link/WLinkArrow.vue.js +1 -1
- package/dist/components/List/WList.vue.d.ts.map +1 -1
- package/dist/components/List/WList.vue.js +6 -5
- package/dist/components/List/WListCard.vue.d.ts.map +1 -1
- package/dist/components/List/WListCard.vue.js +19 -19
- package/dist/components/List/WListCardField.vue.d.ts.map +1 -1
- package/dist/components/List/WListHeader.vue.d.ts.map +1 -1
- package/dist/components/List/WListHeader.vue.js +8 -8
- package/dist/components/List/WListHeaderItem.vue.d.ts.map +1 -1
- package/dist/components/List/WListHeaderItem.vue.js +4 -4
- package/dist/components/List/components/HeaderFieldNested.vue.d.ts.map +1 -1
- package/dist/components/List/components/HeaderItemResizer.vue.d.ts.map +1 -1
- package/dist/components/List/components/HeaderItemResizer.vue.js +1 -1
- package/dist/components/List/components/HeaderSettings.vue.d.ts.map +1 -1
- package/dist/components/List/components/HeaderSettings.vue.js +4 -4
- package/dist/components/List/components/HeaderSettingsItem.vue.d.ts.map +1 -1
- package/dist/components/List/components/HeaderSettingsItem.vue.js +4 -4
- package/dist/components/List/components/ListCardFieldNested.vue.d.ts.map +1 -1
- package/dist/components/List/components/ListCardFieldNested.vue.js +1 -1
- package/dist/components/List/components/ListCardFieldNestedItem.vue.d.ts.map +1 -1
- package/dist/components/List/use/useFieldConfigMap.d.ts +1 -1
- package/dist/components/List/use/useFieldConfigMap.d.ts.map +1 -1
- package/dist/components/MenuItem/WMenuItem.vue.d.ts.map +1 -1
- package/dist/components/MenuItem/WMenuItem.vue.js +2 -2
- package/dist/components/Modal/WModal.vue.d.ts.map +1 -1
- package/dist/components/Modal/WModal.vue.js +2 -2
- package/dist/components/Modal/WModalStepper.vue.d.ts +201 -1
- package/dist/components/Modal/WModalStepper.vue.d.ts.map +1 -1
- package/dist/components/Modal/WModalStepper.vue.js +9 -10
- package/dist/components/Modal/WModalWrapper.vue.d.ts.map +1 -1
- package/dist/components/Modal/WModalWrapper.vue.js +4 -4
- package/dist/components/Modal/components/ModalCloseButton.vue.d.ts +3 -1
- package/dist/components/Modal/components/ModalCloseButton.vue.d.ts.map +1 -1
- package/dist/components/Modal/components/ModalCloseButton.vue.js +5 -6
- package/dist/components/Modal/modals/Confirm/ConfirmModal.vue.d.ts.map +1 -1
- package/dist/components/Modal/modals/Confirm/ConfirmModal.vue2.js +2 -2
- package/dist/components/Nav/WNavBar.vue.d.ts.map +1 -1
- package/dist/components/Nav/WNavBar.vue.js +4 -4
- package/dist/components/Nav/WNavItem.vue.d.ts.map +1 -1
- package/dist/components/Nav/WNavItem.vue.js +9 -9
- package/dist/components/Nav/WNavItemExpand.vue.d.ts.map +1 -1
- package/dist/components/Nav/WNavItemExpand.vue.js +3 -3
- package/dist/components/Notify/WNotify.vue.d.ts.map +1 -1
- package/dist/components/Notify/WNotify.vue.js +1 -1
- package/dist/components/Notify/components/NotifyCard.vue.d.ts +4 -2
- package/dist/components/Notify/components/NotifyCard.vue.d.ts.map +1 -1
- package/dist/components/Notify/components/NotifyCard.vue.js +17 -18
- package/dist/components/Notify/models/NotifyType.d.ts.map +1 -1
- package/dist/components/Notify/models/types.d.ts +1 -1
- package/dist/components/Notify/models/types.d.ts.map +1 -1
- package/dist/components/Select/WSelect.vue.d.ts +1 -1
- package/dist/components/Select/WSelect.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelect.vue.js +13 -16
- package/dist/components/Select/WSelectAsync.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelectAsync.vue.js +13 -17
- package/dist/components/Select/WSelectAsyncList.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelectAsyncList.vue.js +11 -11
- package/dist/components/Select/WSelectAsyncSingle.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelectSingle.vue.d.ts +1 -1
- package/dist/components/Select/WSelectSingle.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelectSingle.vue.js +5 -8
- package/dist/components/Select/WSelectStringified.vue.d.ts +1 -1
- package/dist/components/Select/WSelectStringified.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelectStringified.vue.js +4 -7
- package/dist/components/Select/components/SelectAsyncList.vue.d.ts.map +1 -1
- package/dist/components/Select/components/SelectAsyncList.vue.js +2 -2
- package/dist/components/Select/components/SelectAsyncPrefix.vue.d.ts.map +1 -1
- package/dist/components/Select/components/SelectAsyncPrefix.vue.js +5 -5
- package/dist/components/Select/components/SelectAsyncPrefixPage.vue.d.ts.map +1 -1
- package/dist/components/Select/components/SelectAsyncPrefixPage.vue.js +5 -5
- package/dist/components/Select/components/SelectOption.vue.d.ts.map +1 -1
- package/dist/components/Select/components/SelectOption.vue.js +8 -9
- package/dist/components/Select/components/SelectOptionPrefix.vue.d.ts +1 -1
- package/dist/components/Select/components/SelectOptionPrefix.vue.d.ts.map +1 -1
- package/dist/components/Select/components/SelectOptionPrefix.vue.js +5 -5
- package/dist/components/Spinner/WSpinner.vue.js +1 -1
- package/dist/components/Tabs/WTabs.vue.d.ts +3 -1
- package/dist/components/Tabs/WTabs.vue.d.ts.map +1 -1
- package/dist/components/Tabs/WTabs.vue.js +22 -25
- package/dist/components/Tabs/WTabsColumns.vue.d.ts.map +1 -1
- package/dist/components/Tabs/WTabsColumns.vue.js +1 -1
- package/dist/components/Tabs/components/TabItem.vue.d.ts +3 -1
- package/dist/components/Tabs/components/TabItem.vue.d.ts.map +1 -1
- package/dist/components/Tabs/components/TabItem.vue.js +6 -8
- package/dist/components/Tabs/use/useIsInsideTab.d.ts.map +1 -1
- package/dist/components/Tabs/use/useTabActiveListener.d.ts.map +1 -1
- package/dist/components/Tabs/use/useTabItemActiveListener.d.ts.map +1 -1
- package/dist/components/Toggle/WToggle.vue.d.ts.map +1 -1
- package/dist/components/Toggle/WToggle.vue.js +8 -8
- package/dist/components/Toggle/types.d.ts.map +1 -1
- package/dist/components/Tooltip/WTooltip.vue.d.ts.map +1 -1
- package/dist/components/Tooltip/WTooltip.vue.js +1 -1
- package/dist/components/Tooltip/WTooltipContainer.vue.d.ts.map +1 -1
- package/dist/components/Tooltip/WTooltipContainer.vue.js +1 -1
- package/dist/components/Tooltip/components/TooltipContainer.vue.d.ts +3 -1
- package/dist/components/Tooltip/components/TooltipContainer.vue.d.ts.map +1 -1
- package/dist/components/Tooltip/components/TooltipContainer.vue.js +14 -15
- package/dist/components/Tooltip/models/utils.d.ts.map +1 -1
- package/dist/imports/componentsPlugin.d.ts +1 -1
- package/dist/imports/componentsPlugin.d.ts.map +1 -1
- package/dist/imports/iconsSax.d.ts +2 -0
- package/dist/imports/iconsSax.d.ts.map +1 -1
- package/dist/imports/iconsSax.js +2 -0
- package/dist/main.d.ts +1 -1
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +2 -1
- package/dist/types/global.d.ts +1 -0
- package/dist/utils/HorizontalAlign.d.ts.map +1 -1
- package/dist/utils/Modal.d.ts +1 -1
- package/dist/utils/Modal.d.ts.map +1 -1
- package/dist/utils/Notify.d.ts.map +1 -1
- package/dist/utils/SemanticType.d.ts.map +1 -1
- package/dist/utils/api.d.ts.map +1 -1
- package/dist/utils/order.d.ts.map +1 -1
- package/dist/utils/useCopy.d.ts.map +1 -1
- package/dist/utils/useCopy.js +1 -1
- package/dist/utils/useDefaultQuery.d.ts +1 -1
- package/dist/utils/useDefaultQuery.d.ts.map +1 -1
- package/dist/utils/useDefaultQuery.js +1 -1
- package/dist/utils/useQueryUpdater.d.ts.map +1 -1
- package/dist/utils/useSelected.d.ts.map +1 -1
- package/eslint/plugin.js +43 -0
- package/eslint/recommended.js +171 -0
- package/eslint/rules/modal-declaration.js +33 -0
- package/eslint/rules/modal-import-async.js +38 -0
- package/eslint/rules/modal-import.js +44 -0
- package/eslint/rules/ui-kit-imports.js +65 -0
- package/package.json +14 -6
@@ -1,15 +1,15 @@
|
|
1
|
-
import { defineComponent, ref, watch, toRef, onMounted, onBeforeUnmount, openBlock, createElementBlock, normalizeClass, normalizeStyle, withDirectives, createElementVNode, renderSlot, createTextVNode, toDisplayString, createVNode, unref, createCommentVNode, vShow, createBlock, markRaw, createSlots, withCtx, Fragment, nextTick } from 'vue';
|
2
|
-
import IconSearch from '../../assets/icons/sax/IconSearch.svg.js';
|
1
|
+
import { defineComponent, useTemplateRef, ref, watch, toRef, onMounted, onBeforeUnmount, openBlock, createElementBlock, normalizeClass, normalizeStyle, withDirectives, createElementVNode, renderSlot, createTextVNode, toDisplayString, createVNode, unref, createCommentVNode, vShow, createBlock, markRaw, createSlots, withCtx, Fragment, nextTick } from 'vue';
|
3
2
|
import _sfc_main$2 from '../Input/WInput.vue.js';
|
4
3
|
import _sfc_main$1 from '../Input/WInputSuggest.vue.js';
|
4
|
+
import IconSearch from '../../assets/icons/sax/IconSearch.svg.js';
|
5
5
|
import { getIsMobile } from '../../utils/mobile.js';
|
6
6
|
|
7
|
-
const _hoisted_1 = { class: "fixed
|
8
|
-
const _hoisted_2 = { class: "flex-1 text-xl sm:text-3xl
|
9
|
-
const _hoisted_3 = { class: "
|
7
|
+
const _hoisted_1 = { class: "fixed inset-x-0 top-0 z-10 flex h-[3.75rem] print:hidden" };
|
8
|
+
const _hoisted_2 = { class: "text-accent flex-1 truncate text-xl font-semibold sm:text-3xl" };
|
9
|
+
const _hoisted_3 = { class: "w-hover-circle relative" };
|
10
10
|
const _hoisted_4 = {
|
11
11
|
key: 0,
|
12
|
-
class: "
|
12
|
+
class: "-pl--inner-margin xl-not:pl-[3.75rem] -pr--inner-margin relative flex w-full flex-1 items-center gap-2"
|
13
13
|
};
|
14
14
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
15
15
|
__name: "WHeaderBar",
|
@@ -23,12 +23,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
23
23
|
setup(__props) {
|
24
24
|
const props = __props;
|
25
25
|
const isMobile = getIsMobile();
|
26
|
-
const
|
26
|
+
const inputRef = useTemplateRef("input");
|
27
27
|
const isTransparent = ref(false);
|
28
28
|
const isSearchVisible = ref(false);
|
29
29
|
const openSearch = () => {
|
30
30
|
isSearchVisible.value = true;
|
31
|
-
nextTick().then(() =>
|
31
|
+
nextTick().then(() => inputRef.value?.focus());
|
32
32
|
};
|
33
33
|
const closeSearch = () => {
|
34
34
|
isSearchVisible.value = false;
|
@@ -53,13 +53,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
53
53
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
54
54
|
(openBlock(), createElementBlock("div", {
|
55
55
|
key: _ctx.headerPadding,
|
56
|
-
class: normalizeClass(["
|
56
|
+
class: normalizeClass(["bg-default dark:bg-default-dark supports-backdrop:backdrop-blur fixed inset-x-0 top-0 h-[calc(3.75rem+var(--header-height-padding))] print:hidden", {
|
57
57
|
"supports-backdrop:bg-opacity-40 supports-backdrop:dark:bg-opacity-60": isTransparent.value
|
58
58
|
}]),
|
59
59
|
style: normalizeStyle({ "--header-height-padding": _ctx.headerPadding + "px" })
|
60
60
|
}, null, 6)),
|
61
61
|
withDirectives(createElementVNode("div", {
|
62
|
-
class: normalizeClass(["
|
62
|
+
class: normalizeClass(["-pl--inner-margin xl-not:pl-[3.75rem] relative flex max-w-full flex-1 items-center", {
|
63
63
|
"-pr--inner-margin": !_ctx.searchEnabled
|
64
64
|
}])
|
65
65
|
}, [
|
@@ -70,7 +70,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
70
70
|
]),
|
71
71
|
_ctx.searchEnabled ? (openBlock(), createElementBlock("button", {
|
72
72
|
key: 0,
|
73
|
-
class: "w-hover-circle-trigger
|
73
|
+
class: "w-hover-circle-trigger -px--inner-margin flex h-full select-none items-center outline-none",
|
74
74
|
onClick: openSearch
|
75
75
|
}, [
|
76
76
|
createElementVNode("div", _hoisted_3, [
|
@@ -83,8 +83,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
83
83
|
_ctx.searchEnabled ? withDirectives((openBlock(), createElementBlock("div", _hoisted_4, [
|
84
84
|
_ctx.$slots.search?.()?.length && unref(isMobile) ? (openBlock(), createBlock(_sfc_main$1, {
|
85
85
|
key: 0,
|
86
|
-
|
87
|
-
ref: input,
|
86
|
+
ref: "input",
|
88
87
|
"model-value": _ctx.search,
|
89
88
|
placeholder: "Search..",
|
90
89
|
"allow-clear": "",
|
@@ -93,7 +92,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
93
92
|
"no-margin": "",
|
94
93
|
class: "w-full",
|
95
94
|
icon: markRaw(unref(IconSearch)),
|
96
|
-
"onClick:clear": _cache[0] || (_cache[0] = ($event) => !unref(isMobile) &&
|
95
|
+
"onClick:clear": _cache[0] || (_cache[0] = ($event) => !unref(isMobile) && unref(inputRef)?.close()),
|
97
96
|
onClose: closeSearch,
|
98
97
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => _ctx.$emit("update:search", $event))
|
99
98
|
}, createSlots({ _: 2 }, [
|
@@ -106,8 +105,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
106
105
|
} : void 0
|
107
106
|
]), 1032, ["model-value", "icon"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
108
107
|
createVNode(_sfc_main$2, {
|
109
|
-
|
110
|
-
ref: input,
|
108
|
+
ref: "input",
|
111
109
|
"model-value": _ctx.search,
|
112
110
|
placeholder: "Search..",
|
113
111
|
autofocus: "",
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WImageViewer.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ImageViewer/WImageViewer.vue"],"names":[],"mappings":";
|
1
|
+
{"version":3,"file":"WImageViewer.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ImageViewer/WImageViewer.vue"],"names":[],"mappings":";iBAyFe,MAAM;YACX,MAAM;eACH,OAAO;;iBAFL,MAAM;YACX,MAAM;eACH,OAAO;;AAoJpB,wBAMG"}
|
@@ -1,13 +1,13 @@
|
|
1
1
|
import { defineComponent, defineAsyncComponent, openBlock, createElementBlock, Fragment, createTextVNode, toDisplayString, createBlock, createCommentVNode, normalizeStyle, createElementVNode, markRaw } from 'vue';
|
2
|
-
import { Modal } from '../../utils/Modal.js';
|
3
2
|
import WSkeleton from '../Skeleton/WSkeleton.vue.js';
|
3
|
+
import { Modal } from '../../utils/Modal.js';
|
4
4
|
|
5
5
|
const _hoisted_1 = {
|
6
6
|
key: 0,
|
7
|
-
class: "text-
|
7
|
+
class: "text-accent mb-2 text-xs font-semibold"
|
8
8
|
};
|
9
|
-
const _hoisted_2 = { class: "opacity-0 group-hover/image-button:opacity-100
|
10
|
-
const _hoisted_3 = { class: "text-
|
9
|
+
const _hoisted_2 = { class: "opacity-0 transition-opacity group-hover/image-button:opacity-100" };
|
10
|
+
const _hoisted_3 = { class: "text-default bg-black-default absolute bottom-0 mt-1 w-full overflow-hidden text-ellipsis bg-opacity-50 px-1 text-start text-xs [-webkit-box-orient:vertical] [-webkit-line-clamp:2] [display:-webkit-box]" };
|
11
11
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
12
12
|
__name: "WImageViewer",
|
13
13
|
props: {
|
@@ -39,12 +39,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
39
39
|
])) : createCommentVNode("", true),
|
40
40
|
!_ctx.skeleton && _ctx.modelValue ? (openBlock(), createElementBlock("button", {
|
41
41
|
key: 1,
|
42
|
-
class: "w-
|
42
|
+
class: "w-ripple w-ripple-hover text-black-default w-ripple-opacity-20 dark:w-ripple-opacity-30 group/image-button relative isolate h-28 w-40 cursor-pointer overflow-hidden rounded-lg border border-solid border-gray-100 bg-cover bg-center outline-none dark:border-gray-800",
|
43
43
|
style: normalizeStyle({ backgroundImage: `url(${_ctx.modelValue})` }),
|
44
44
|
onClick: openModal
|
45
45
|
}, [
|
46
46
|
createElementVNode("div", _hoisted_2, [
|
47
|
-
_cache[0] || (_cache[0] = createElementVNode("div", { class: "text-default font-
|
47
|
+
_cache[0] || (_cache[0] = createElementVNode("div", { class: "text-default font-roboto relative z-10 font-extrabold tracking-widest" }, " VIEW ", -1)),
|
48
48
|
createElementVNode("div", _hoisted_3, toDisplayString(_ctx.modelValue.substring(_ctx.modelValue.lastIndexOf("/") + 1)), 1)
|
49
49
|
])
|
50
50
|
], 4)) : (openBlock(), createBlock(WSkeleton, {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ImageModal.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/ImageViewer/components/ImageModal.vue"],"names":[],"mappings":";
|
1
|
+
{"version":3,"file":"ImageModal.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/ImageViewer/components/ImageModal.vue"],"names":[],"mappings":";gBA8Cc,MAAM;cACR,MAAM,IAAI;;;;gBADR,MAAM;cACR,MAAM,IAAI;;;;AAoGtB,wBASG"}
|
@@ -4,7 +4,7 @@ import IconCancel from '../../../assets/icons/default/IconCancel.svg.js';
|
|
4
4
|
const _hoisted_1 = { class: "relative flex flex-col items-center" };
|
5
5
|
const _hoisted_2 = { class: "relative" };
|
6
6
|
const _hoisted_3 = ["src", "alt"];
|
7
|
-
const _hoisted_4 = { class: "text-center
|
7
|
+
const _hoisted_4 = { class: "mt-3 text-center" };
|
8
8
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
9
9
|
__name: "ImageModal",
|
10
10
|
props: {
|
@@ -19,7 +19,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
19
19
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
20
20
|
createElementVNode("div", _hoisted_2, [
|
21
21
|
createElementVNode("button", {
|
22
|
-
class: "
|
22
|
+
class: "w-ripple w-ripple-hover absolute -top-14 right-3 rounded-full p-3 outline-none sm:-right-14",
|
23
23
|
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("close:modal"))
|
24
24
|
}, [
|
25
25
|
createVNode(unref(IconCancel), { class: "text-description" })
|
@@ -27,7 +27,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
27
27
|
createElementVNode("img", {
|
28
28
|
src: _ctx.modelValue,
|
29
29
|
alt: name.value,
|
30
|
-
class: "shadow-md dark:shadow-sm dark:shadow-gray-600
|
30
|
+
class: "max-h-[90vh] max-w-[100vw] shadow-md dark:shadow-sm dark:shadow-gray-600"
|
31
31
|
}, null, 8, _hoisted_3)
|
32
32
|
]),
|
33
33
|
createElementVNode("div", _hoisted_4, toDisplayString(name.value), 1)
|
@@ -2,11 +2,11 @@ declare const _default: <Model extends number | string, Data extends DefaultData
|
|
2
2
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
3
3
|
readonly onSelect?: ((values: Model[]) => any) | undefined;
|
4
4
|
readonly "onUpdate:count"?: ((value: number) => any) | undefined;
|
5
|
-
readonly "onUpdate:page"?: ((value: number | undefined) => any) | undefined;
|
6
5
|
readonly "onUpdate:header-padding"?: ((value: number) => any) | undefined;
|
6
|
+
readonly "onUpdate:page"?: ((value: number | undefined) => any) | undefined;
|
7
7
|
readonly "onSelect-reverse"?: ((values: Model[]) => any) | undefined;
|
8
8
|
readonly "onSelect-range"?: ((value: SelectedRange<Model>) => any) | undefined;
|
9
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onSelect" | "onUpdate:count" | "onUpdate:
|
9
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onSelect" | "onUpdate:count" | "onUpdate:header-padding" | "onUpdate:page" | "onSelect-reverse" | "onSelect-range"> & {
|
10
10
|
useQueryFn: UseQueryPaginated<Data, QueryParams>;
|
11
11
|
queryParams: QueryParams;
|
12
12
|
skeletonLength?: number;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WInfiniteList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/InfiniteList/WInfiniteList.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WInfiniteList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/InfiniteList/WInfiniteList.vue"],"names":[],"mappings":"yBAgPiB,KAAK,SAAS,MAAM,GAAG,MAAM,EAAE,IAAI,SAAS,WAAW,EAAE,WAAW,eACvE,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WA4YxD,mBAAmB,CAAC;;;;;;;;oBAxYd,iBAAiB,CAAC,IAAI,EAAE,WAAW,CAAC;qBACnC,WAAW;yBACP,MAAM;wBACP,OAAO;uBACR,MAAM;eACd,OAAO;gBACN,OAAO;qBACF,OAAO;2BACD,OAAO,GAAG,IAAI;0BACf,OAAO;oBACb,OAAO;oBACP,OAAO;wBACH,CAAC,MAAM,WAAW,CAAC,EAAE;oBACzB,MAAM;oBACN,MAAM;mBACP,MAAM;0BACC,MAAM,GAAG,KAAK;uBACjB,OAAO,CAAC,YAAY,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,CAAC;qBAEhD,MAAM;gBACX,MAAM;sBAEA,OAAO;2BACF,OAAO;sBAEZ,CAAC,IAAI,EAAE,IAAI,KAAK,KAAK;mBACxB,KAAK,EAAE;wBACF,aAAa,CAAC,KAAK,CAAC;kBAC1B,OAAO;qBAEJ,OAAO;uBACL,OAAO;2BACH,OAAO;6BACL,OAAO;KAuWuD,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gBAAgB;;MAAsB,GAAG,IAAI;WACpE,GAAG;;kBAhRD,CAAC,KAAK,EAAE;YAChB,IAAI,EAAE,IAAI,CAAA;YACV,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,IAAI,GAAG,SAAS,KAAK,IAAI,CAAA;YAC5C,QAAQ,EAAE,OAAO,CAAA;YACjB,OAAO,EAAE,MAAM,IAAI,CAAA;YACnB,QAAQ,CAAC,EAAE,IAAI,CAAA;YACf,IAAI,CAAC,EAAE,IAAI,CAAA;YACX,KAAK,EAAE,OAAO,CAAA;YACd,IAAI,EAAE,OAAO,CAAA;YACb,SAAS,EAAE,OAAO,CAAA;YAClB,IAAI,EAAE,MAAM,CAAA;YACZ,KAAK,EAAE,MAAM,CAAA;SACd,KAAK,IAAI;iBACD,CAAC,KAAK,EAAE;YACf,IAAI,SAhEY,MAAM,cAAc,MAAM,UAgEzB;YACjB,cAAc,iBAA6B;SAC5C,KAAK,IAAI;;kBAhBA,CAAC,KAAK,EAAE;YAChB,IAAI,EAAE,IAAI,CAAA;YACV,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,IAAI,GAAG,SAAS,KAAK,IAAI,CAAA;YAC5C,QAAQ,EAAE,OAAO,CAAA;YACjB,OAAO,EAAE,MAAM,IAAI,CAAA;YACnB,QAAQ,CAAC,EAAE,IAAI,CAAA;YACf,IAAI,CAAC,EAAE,IAAI,CAAA;YACX,KAAK,EAAE,OAAO,CAAA;YACd,IAAI,EAAE,OAAO,CAAA;YACb,SAAS,EAAE,OAAO,CAAA;YAClB,IAAI,EAAE,MAAM,CAAA;YACZ,KAAK,EAAE,MAAM,CAAA;SACd,KAAK,IAAI;iBACD,CAAC,KAAK,EAAE;YACf,IAAI,SAhEY,MAAM,cAAc,MAAM,UAgEzB;YACjB,cAAc,iBAA6B;SAC5C,KAAK,IAAI;;;YAjFN,aAAa,SAAS,MAAM,GAAG,SAAS,GAAG,IAAI;YAC/C,uBAAuB,SAAS,MAAM,GAAG,IAAI;YAC7C,cAAc,SAAS,MAAM,GAAG,IAAI;YAEpC,QAAQ,UAAU,KAAK,EAAE,GAAG,IAAI;YAChC,gBAAgB,UAAU,KAAK,EAAE,GAAG,IAAI;YACxC,cAAc,SAAS,aAAa,CAAC,KAAK,CAAC,GAAG,IAAI;;;;;YAgVZ,OAAO,CAAC,OAAO,WAAW,CAAC;;AAtZvE,wBAsZ4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -1,10 +1,10 @@
|
|
1
|
-
import { defineComponent,
|
2
|
-
import _sfc_main$
|
1
|
+
import { defineComponent, useTemplateRef, toRef, provide, onBeforeUnmount, openBlock, createBlock, resolveDynamicComponent, withCtx, renderSlot, normalizeProps, guardReactiveProps, unref, createVNode } from 'vue';
|
2
|
+
import _sfc_main$2 from './WInfiniteListWrapper.vue.js';
|
3
|
+
import _sfc_main$1 from './components/EmptyComponent.vue.js';
|
3
4
|
import _sfc_main$4 from './components/InfiniteListPageSelectItem.vue.js';
|
4
|
-
import
|
5
|
+
import _sfc_main$3 from './components/InfiniteListPages.vue.js';
|
5
6
|
import { wInfiniteListSelection } from './models/injection.js';
|
6
|
-
import
|
7
|
-
import _sfc_main$2 from './WInfiniteListWrapper.vue.js';
|
7
|
+
import { useSelected } from './use/useSelected.js';
|
8
8
|
|
9
9
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
10
10
|
__name: "WInfiniteList",
|
@@ -44,12 +44,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
44
44
|
setup(__props, { expose: __expose, emit: __emit }) {
|
45
45
|
const props = __props;
|
46
46
|
const emit = __emit;
|
47
|
-
const
|
47
|
+
const infiniteListPagesRef = useTemplateRef("infiniteListPages");
|
48
48
|
const updateHeaderPadding = (value) => {
|
49
49
|
emit("update:header-padding", value);
|
50
50
|
};
|
51
51
|
const goto = (page, itemIndex) => {
|
52
|
-
|
52
|
+
infiniteListPagesRef.value?.goto(page, itemIndex);
|
53
53
|
};
|
54
54
|
const {
|
55
55
|
setSelectedRange,
|
@@ -83,7 +83,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
83
83
|
});
|
84
84
|
__expose({
|
85
85
|
resetPage() {
|
86
|
-
|
86
|
+
infiniteListPagesRef.value?.resetPage();
|
87
87
|
}
|
88
88
|
});
|
89
89
|
return (_ctx, _cache) => {
|
@@ -98,8 +98,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
98
98
|
]),
|
99
99
|
default: withCtx((defaultScope) => [
|
100
100
|
createVNode(_sfc_main$3, {
|
101
|
-
|
102
|
-
ref: infiniteListPages,
|
101
|
+
ref: "infiniteListPages",
|
103
102
|
"query-params": _ctx.queryParams,
|
104
103
|
"use-query-fn": _ctx.useQueryFn,
|
105
104
|
"scrolling-element": _ctx.scrollingElement,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WInfiniteListWrapper.vue.d.ts","sourceRoot":"","sources":["../../../src/components/InfiniteList/WInfiniteListWrapper.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WInfiniteListWrapper.vue.d.ts","sourceRoot":"","sources":["../../../src/components/InfiniteList/WInfiniteListWrapper.vue"],"names":[],"mappings":"AA8GA,iBAAS,cAAc;;wBAwCK,GAAG;;;;YACF,GAAG;;;;;;WAWlB,OAAO,IAA6B;EAEjD;AAiBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;mBArHF,MAAM;uBACF,OAAO,GAAG,IAAI;yBACZ,OAAO;;;;mBAFb,MAAM;uBACF,OAAO,GAAG,IAAI;yBACZ,OAAO;;;;sBADT,OAAO,GAAG,IAAI;kBADlB,MAAM;6EA+HvB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
@@ -36,7 +36,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
36
36
|
ref_key: "header",
|
37
37
|
ref: header,
|
38
38
|
class: normalizeClass(["sticky top-[var(--header-height)]", {
|
39
|
-
"z-20": !unref(isIntersecting)
|
39
|
+
"z-20": !unref(isIntersecting),
|
40
|
+
"z-[1]": unref(isIntersecting)
|
40
41
|
}])
|
41
42
|
}, [
|
42
43
|
renderSlot(_ctx.$slots, "header")
|
@@ -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":"AAgBA,iBAAS,cAAc;;yBAyBM,GAAG;;;WASlB,OAAO,IAA6B;EAEjD;AAOD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,+QAKnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAKpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
@@ -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":";;;;;;;AAmIA,wBASG"}
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { defineComponent, onMounted, openBlock, createElementBlock, createVNode, unref, withCtx, createTextVNode } from 'vue';
|
2
|
-
import { SemanticType } from '../../../utils/SemanticType.js';
|
3
2
|
import _sfc_main$1 from '../../Button/WButton.vue.js';
|
3
|
+
import { SemanticType } from '../../../utils/SemanticType.js';
|
4
4
|
|
5
|
-
const _hoisted_1 = { class: "flex w-full
|
5
|
+
const _hoisted_1 = { class: "flex w-full items-center justify-center p-12" };
|
6
6
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
7
7
|
__name: "InfiniteListButton",
|
8
8
|
emits: ["click", "check"],
|
@@ -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":"yBA8WiB,KAAK,SAAS,MAAM,GAAG,MAAM,EAAE,IAAI,SAAS,WAAW,EAAE,WAAW,eACvE,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WA4cxD,mBAAmB,CAAC;qBAxcb,WAAW;oBACZ,iBAAiB,CAAC,IAAI,EAAE,WAAW,CAAC;wBAChC,MAAM;mBACX,OAAO;kBACR,OAAO;wBACD,OAAO;eAChB,OAAO;gBACN,OAAO;qBACF,OAAO;oBACR,OAAO;oBACP,MAAM;oBACN,OAAO;oBACP,OAAO;oBACP,MAAM;0BACA,MAAM,GAAG,KAAK;2BACb,OAAO,GAAG,IAAI;uBAClB,OAAO,CAAC,YAAY,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,CAAC;mBAElD,KAAK,EAAE;qBACL,CAAC,IAAI,EAAE,IAAI,KAAK,KAAK;qBACrB,OAAO;uBACL,OAAO;2BACH,OAAO;6BACL,OAAO;KAibuD,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gBAAgB;;;;2BAjWvB,MAAM;MAiWuC,GAAG,IAAI;WACpE,GAAG;;kBAhPD,CAAC,KAAK,EAAE;YAChB,IAAI,EAAE,IAAI,CAAA;YACV,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,IAAI,GAAG,SAAS,KAAK,IAAI,CAAA;YAC5C,QAAQ,EAAE,OAAO,CAAA;YACjB,OAAO,EAAE,MAAM,IAAI,CAAA;YACnB,QAAQ,CAAC,EAAE,IAAI,CAAA;YACf,IAAI,CAAC,EAAE,IAAI,CAAA;YACX,KAAK,EAAE,OAAO,CAAA;YACd,IAAI,EAAE,OAAO,CAAA;YACb,IAAI,EAAE,MAAM,CAAA;YACZ,KAAK,EAAE,MAAM,CAAA;SACd,KAAK,IAAI;;kBAXA,CAAC,KAAK,EAAE;YAChB,IAAI,EAAE,IAAI,CAAA;YACV,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,IAAI,GAAG,SAAS,KAAK,IAAI,CAAA;YAC5C,QAAQ,EAAE,OAAO,CAAA;YACjB,OAAO,EAAE,MAAM,IAAI,CAAA;YACnB,QAAQ,CAAC,EAAE,IAAI,CAAA;YACf,IAAI,CAAC,EAAE,IAAI,CAAA;YACX,KAAK,EAAE,OAAO,CAAA;YACd,IAAI,EAAE,OAAO,CAAA;YACb,IAAI,EAAE,MAAM,CAAA;YACZ,KAAK,EAAE,MAAM,CAAA;SACd,KAAK,IAAI;;;YA7LN,cAAc,SAAS,MAAM,GAAG,IAAI;YACpC,oBAAoB,SAAS,MAAM,GAAG,IAAI;YAC1C,kBAAkB,SAAS,MAAM,GAAG,IAAI,GAAG,IAAI;YAC/C,sBAAsB,SAAS,MAAM,GAAG,IAAI,GAAG,IAAI;YACnD,eAAe,SAAS,MAAM,GAAG,IAAI;YACrC,aAAa,SAAS,MAAM,GAAG,IAAI;YACnC,SAAS,GAAG,IAAI;YAChB,2BAA2B,GAAG,IAAI;YAClC,iBAAiB,UAAU,KAAK,EAAE,GAAG,IAAI;YACzC,SAAS,GAAG,IAAI;;;;;YA8ZsB,OAAO,CAAC,OAAO,WAAW,CAAC;;AAtdvE,wBAsd4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -1,7 +1,4 @@
|
|
1
|
-
import { defineComponent, ref, toRef, computed, watch, onMounted, nextTick, onBeforeUnmount, openBlock, createElementBlock, normalizeClass, unref, Fragment, createElementVNode, createBlock, createCommentVNode, resolveDynamicComponent, TransitionGroup, normalizeProps, mergeProps, withCtx, renderList, renderSlot, toDisplayString } from 'vue';
|
2
|
-
import _sfc_main$2 from './InfiniteListPageTitle.vue.js';
|
3
|
-
import _sfc_main$1 from './InfiniteListPageSelection.vue.js';
|
4
|
-
import _sfc_main$3 from './EmptyComponent.vue.js';
|
1
|
+
import { defineComponent, useTemplateRef, ref, toRef, computed, watch, onMounted, nextTick, onBeforeUnmount, openBlock, createElementBlock, normalizeClass, unref, Fragment, createElementVNode, createBlock, createCommentVNode, resolveDynamicComponent, TransitionGroup, normalizeProps, mergeProps, withCtx, renderList, renderSlot, toDisplayString } from 'vue';
|
5
2
|
import '../../Button/WButtonAction.vue.js';
|
6
3
|
import '../../Button/WButton.vue.js';
|
7
4
|
import '../../Button/WButtonDropdown.vue.js';
|
@@ -11,11 +8,14 @@ import 'vue-router';
|
|
11
8
|
import '../../../utils/Modal.js';
|
12
9
|
import { ApiError } from '../../../utils/api.js';
|
13
10
|
import '../../Input/WInputSuggest.vue.js';
|
11
|
+
import _sfc_main$3 from './EmptyComponent.vue.js';
|
12
|
+
import _sfc_main$1 from './InfiniteListPageSelection.vue.js';
|
13
|
+
import _sfc_main$2 from './InfiniteListPageTitle.vue.js';
|
14
14
|
import '../../Input/WInputDate.vue.js';
|
15
15
|
import '../../Link/WLink.vue.js';
|
16
16
|
import '@tanstack/vue-query';
|
17
17
|
|
18
|
-
const _hoisted_1 = { class: "
|
18
|
+
const _hoisted_1 = { class: "py-1.25 sm-not:px-3 cursor-default select-none" };
|
19
19
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
20
20
|
__name: "InfiniteListPage",
|
21
21
|
props: {
|
@@ -47,7 +47,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
47
47
|
setup(__props, { expose: __expose, emit: __emit }) {
|
48
48
|
const props = __props;
|
49
49
|
const emit = __emit;
|
50
|
-
const
|
50
|
+
const elementRef = useTemplateRef("element");
|
51
51
|
const resultElement = ref([]);
|
52
52
|
const isIntersecting = ref(false);
|
53
53
|
const hasData = ref(false);
|
@@ -94,7 +94,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
94
94
|
return;
|
95
95
|
}
|
96
96
|
}
|
97
|
-
|
97
|
+
elementRef.value?.scrollIntoView({ block: "center", behavior: "smooth" });
|
98
98
|
};
|
99
99
|
let timeout = null;
|
100
100
|
watch(data, (value) => {
|
@@ -123,13 +123,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
123
123
|
let intersectionObserver;
|
124
124
|
const observerCb = (entries) => {
|
125
125
|
isIntersecting.value = entries.some((entry) => {
|
126
|
-
if (entry.target ===
|
126
|
+
if (entry.target === elementRef.value) {
|
127
127
|
return entry.isIntersecting;
|
128
128
|
}
|
129
129
|
});
|
130
130
|
};
|
131
131
|
onMounted(() => {
|
132
|
-
if (props.refetchInterval &&
|
132
|
+
if (props.refetchInterval && elementRef.value) {
|
133
133
|
intersectionObserver = new IntersectionObserver(
|
134
134
|
observerCb,
|
135
135
|
{
|
@@ -138,9 +138,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
138
138
|
threshold: 0
|
139
139
|
}
|
140
140
|
);
|
141
|
-
intersectionObserver.observe(
|
141
|
+
intersectionObserver.observe(elementRef.value);
|
142
142
|
}
|
143
|
-
height =
|
143
|
+
height = elementRef.value?.getBoundingClientRect()?.height ?? 0;
|
144
144
|
if (height === 0) return;
|
145
145
|
if (!props.firstPage) return;
|
146
146
|
if (props.lastPage) {
|
@@ -157,7 +157,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
157
157
|
watch(data, async (_, oldValue) => {
|
158
158
|
if (oldValue) return;
|
159
159
|
await nextTick();
|
160
|
-
const newHeight = (
|
160
|
+
const newHeight = (elementRef.value?.getBoundingClientRect().height ?? 0) - height;
|
161
161
|
if (newHeight === 0) return;
|
162
162
|
if (!props.firstPage) return;
|
163
163
|
if (props.lastPage) return;
|
@@ -171,8 +171,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
171
171
|
});
|
172
172
|
return (_ctx, _cache) => {
|
173
173
|
return openBlock(), createElementBlock("div", {
|
174
|
-
|
175
|
-
ref: element,
|
174
|
+
ref: "element",
|
176
175
|
class: normalizeClass(["relative", {
|
177
176
|
"last:min-h-[calc(100vh-var(--header-height)-var(--infinite-list-header-height))] last:pb-16": !_ctx.minHeight,
|
178
177
|
"last:min-h-full": _ctx.minHeight && !unref(data)
|
@@ -264,8 +263,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
264
263
|
], 64)) : (openBlock(), createElementBlock("div", {
|
265
264
|
key: 1,
|
266
265
|
class: normalizeClass(["text-accent text-base font-normal", {
|
267
|
-
"
|
268
|
-
"
|
266
|
+
"sm:left-inner sm:max-w-inner flex justify-center px-8 py-16 text-center sm:sticky": !_ctx.minHeight,
|
267
|
+
"px-[1.0625rem] pt-4": _ctx.minHeight,
|
269
268
|
"pb-4": _ctx.minHeight && _ctx.lastChild,
|
270
269
|
"pb-2": _ctx.minHeight && !_ctx.lastChild
|
271
270
|
}])
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"InfiniteListPageSelectItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/InfiniteList/components/InfiniteListPageSelectItem.vue"],"names":[],"mappings":"AA0EA,iBAAS,cAAc;;yBAyBM,GAAG;;;WASlB,OAAO,IAA6B;EAEjD;AAaD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;
|
1
|
+
{"version":3,"file":"InfiniteListPageSelectItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/InfiniteList/components/InfiniteListPageSelectItem.vue"],"names":[],"mappings":"AA0EA,iBAAS,cAAc;;yBAyBM,GAAG;;;WASlB,OAAO,IAA6B;EAEjD;AAaD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;eAnFR,OAAO;sBACA,OAAO;;;;;;eADd,OAAO;sBACA,OAAO;;;;;kFA6FzB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"InfiniteListPageSelection.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/InfiniteList/components/InfiniteListPageSelection.vue"],"names":[],"mappings":"yBA4EiB,KAAK,SAAS,MAAM,GAAG,MAAM,EAAE,IAAI,SAAS,WAAW,eAC1D,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;
|
1
|
+
{"version":3,"file":"InfiniteListPageSelection.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/InfiniteList/components/InfiniteListPageSelection.vue"],"names":[],"mappings":"yBA4EiB,KAAK,SAAS,MAAM,GAAG,MAAM,EAAE,IAAI,SAAS,WAAW,eAC1D,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WAiKxD,mBAAmB,CAAC;;;kBA7JlB,KAAK,EAAE;eACV,IAAI,EAAE;mBACF,OAAO;+BACK,OAAO;qBACjB,OAAO;uBACL,OAAO;kBACZ,OAAO;qBACJ,CAAC,IAAI,EAAE,IAAI,KAAK,KAAK;KAsJmD,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;cAnJP,iBAAiB,UAAU,KAAK,EAAE,KAAG,IAAI;;;;YAwJH,OAAO,CAAC,OAAO,WAAW,CAAC;;AA3KvE,wBA2K4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"InfiniteListPageTitle.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/InfiniteList/components/InfiniteListPageTitle.vue"],"names":[],"mappings":"yBAwCiB,WAAW,eACd,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;
|
1
|
+
{"version":3,"file":"InfiniteListPageTitle.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/InfiniteList/components/InfiniteListPageTitle.vue"],"names":[],"mappings":"yBAwCiB,WAAW,eACd,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WAyGxD,mBAAmB,CAAC;;;qBArGf,WAAW;KAqG6D,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;cAlGP,iBAAiB,SAAS,OAAO,KAAG,IAAI;;;;YAuGF,OAAO,CAAC,OAAO,WAAW,CAAC;;AAnHvE,wBAmH4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -18,7 +18,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
18
18
|
return (_ctx, _cache) => {
|
19
19
|
const _component_RouterLink = resolveComponent("RouterLink");
|
20
20
|
return openBlock(), createBlock(_component_RouterLink, {
|
21
|
-
class: "
|
21
|
+
class: "text-description sm-not:first:-mx--inner-margin block text-base font-normal no-underline hover:underline",
|
22
22
|
to: { query: _ctx.queryParams, hash: _ctx.$route.hash },
|
23
23
|
replace: "",
|
24
24
|
onClick: copyRoute
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"InfiniteListPages.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/InfiniteList/components/InfiniteListPages.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"InfiniteListPages.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/InfiniteList/components/InfiniteListPages.vue"],"names":[],"mappings":"yBA8TiB,KAAK,SAAS,MAAM,GAAG,MAAM,EAAE,IAAI,SAAS,WAAW,EAAE,WAAW,eACvE,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WA+kBxD,mBAAmB,CAAC;;;;;oBA3kBd,iBAAiB,CAAC,IAAI,EAAE,WAAW,CAAC;qBACnC,WAAW;yBACP,MAAM;wBACP,OAAO;eAChB,OAAO;gBACN,OAAO;qBACF,OAAO;qBACP,MAAM;2BACA,OAAO,GAAG,IAAI;oBACrB,MAAM;uBACH,MAAM;oBACT,OAAO;oBACP,OAAO;wBACH,CAAC,MAAM,WAAW,CAAC,EAAE;oBACzB,MAAM;oBACN,MAAM;mBACP,MAAM;0BACC,MAAM,GAAG,KAAK;uBACjB,OAAO,CAAC,YAAY,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,CAAC;mBAElD,KAAK,EAAE;qBACL,CAAC,IAAI,EAAE,IAAI,KAAK,KAAK;qBACrB,OAAO;uBACL,OAAO;2BACH,OAAO;6BACL,OAAO;KAkjBuD,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gBAAgB;;0CApbP,MAAM;MAobuB,GAAG,IAAI;WACpE,GAAG;;kBAnYD,CAAC,KAAK,EAAE;YAChB,IAAI,EAAE,IAAI,CAAA;YACV,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,IAAI,GAAG,SAAS,KAAK,IAAI,CAAA;YAC5C,QAAQ,EAAE,OAAO,CAAA;YACjB,OAAO,EAAE,MAAM,IAAI,CAAA;YACnB,QAAQ,CAAC,EAAE,IAAI,CAAA;YACf,IAAI,CAAC,EAAE,IAAI,CAAA;YACX,KAAK,EAAE,OAAO,CAAA;YACd,IAAI,EAAE,OAAO,CAAA;YACb,SAAS,EAAE,OAAO,CAAA;YAClB,IAAI,EAAE,MAAM,CAAA;YACZ,KAAK,EAAE,MAAM,CAAA;SACd,KAAK,IAAI;;kBAZA,CAAC,KAAK,EAAE;YAChB,IAAI,EAAE,IAAI,CAAA;YACV,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,IAAI,GAAG,SAAS,KAAK,IAAI,CAAA;YAC5C,QAAQ,EAAE,OAAO,CAAA;YACjB,OAAO,EAAE,MAAM,IAAI,CAAA;YACnB,QAAQ,CAAC,EAAE,IAAI,CAAA;YACf,IAAI,CAAC,EAAE,IAAI,CAAA;YACX,KAAK,EAAE,OAAO,CAAA;YACd,IAAI,EAAE,OAAO,CAAA;YACb,SAAS,EAAE,OAAO,CAAA;YAClB,IAAI,EAAE,MAAM,CAAA;YACZ,KAAK,EAAE,MAAM,CAAA;SACd,KAAK,IAAI;;;YAxKN,aAAa,SAAS,MAAM,GAAG,SAAS,GAAG,IAAI;YAC/C,cAAc,SAAS,MAAM,GAAG,IAAI;YACpC,iBAAiB,UAAU,KAAK,EAAE,GAAG,IAAI;;;;;YAkiBH,OAAO,CAAC,OAAO,WAAW,CAAC;;AAzlBvE,wBAylB4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -1,10 +1,10 @@
|
|
1
|
-
import { defineComponent, ref, computed, watch, toRef, openBlock, createBlock, normalizeStyle, withCtx, createCommentVNode, createElementBlock, Fragment, renderList, nextTick,
|
2
|
-
import _sfc_main$1 from './InfiniteListScroll.vue.js';
|
3
|
-
import _sfc_main$3 from './InfiniteListPage.vue.js';
|
4
|
-
import { useRefetchNextPages } from '../use/useRefetchNextPages.js';
|
5
|
-
import _sfc_main$2 from './InfiniteListButton.vue.js';
|
1
|
+
import { defineComponent, useTemplateRef, ref, computed, watch, toRef, openBlock, createBlock, normalizeStyle, withCtx, unref, createCommentVNode, createElementBlock, Fragment, renderList, nextTick, renderSlot } from 'vue';
|
6
2
|
import { isEqualObj } from '../../../utils/utils.js';
|
3
|
+
import _sfc_main$2 from './InfiniteListButton.vue.js';
|
4
|
+
import _sfc_main$3 from './InfiniteListPage.vue.js';
|
5
|
+
import _sfc_main$1 from './InfiniteListScroll.vue.js';
|
7
6
|
import { getIsScrollDown } from '../models/utils.js';
|
7
|
+
import { useRefetchNextPages } from '../use/useRefetchNextPages.js';
|
8
8
|
|
9
9
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
10
10
|
__name: "InfiniteListPages",
|
@@ -39,7 +39,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
39
39
|
setup(__props, { expose: __expose, emit: __emit }) {
|
40
40
|
const props = __props;
|
41
41
|
const emit = __emit;
|
42
|
-
const
|
42
|
+
const infiniteScrollRef = useTemplateRef("infiniteScroll");
|
43
43
|
const pages = ref([props.queryParams.page ?? 1]);
|
44
44
|
const pagesCount = ref(1);
|
45
45
|
const count = ref(0);
|
@@ -138,8 +138,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
138
138
|
});
|
139
139
|
return (_ctx, _cache) => {
|
140
140
|
return openBlock(), createBlock(_sfc_main$1, {
|
141
|
-
|
142
|
-
ref: infiniteScroll,
|
141
|
+
ref: "infiniteScroll",
|
143
142
|
"scrolling-element": _ctx.scrollingElement,
|
144
143
|
style: normalizeStyle({ "--infinite-list-header-height": _ctx.headerHeight + "px" }),
|
145
144
|
"onScroll:down": addNextPage,
|
@@ -149,8 +148,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
149
148
|
isPreviousButtonVisible.value ? (openBlock(), createBlock(_sfc_main$2, {
|
150
149
|
key: 0,
|
151
150
|
onClick: _cache[0] || (_cache[0] = ($event) => addPreviousPage()),
|
152
|
-
onCheck:
|
153
|
-
}
|
151
|
+
onCheck: _cache[1] || (_cache[1] = ($event) => unref(infiniteScrollRef)?.checkIsScrollUp())
|
152
|
+
})) : createCommentVNode("", true),
|
154
153
|
(openBlock(true), createElementBlock(Fragment, null, renderList(pages.value, (page, index) => {
|
155
154
|
return openBlock(), createBlock(_sfc_main$3, {
|
156
155
|
ref_for: true,
|
@@ -180,19 +179,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
180
179
|
"unselect-only": _ctx.unselectOnly,
|
181
180
|
"reverse-selection": _ctx.reverseSelection,
|
182
181
|
"allow-page-selection": _ctx.allowPageSelection,
|
183
|
-
"onUpdate:selected": _cache[
|
184
|
-
"onUpdate:count": _cache[
|
182
|
+
"onUpdate:selected": _cache[2] || (_cache[2] = ($event) => _ctx.$emit("update:selected", $event)),
|
183
|
+
"onUpdate:count": _cache[3] || (_cache[3] = ($event) => {
|
185
184
|
updateCount($event);
|
186
185
|
_ctx.$emit("update:count", $event);
|
187
186
|
}),
|
188
187
|
"onUpdate:pagesCount": updatePagesCount,
|
189
|
-
"onUpdate:nextPage": _cache[
|
190
|
-
"onUpdate:previousPage": _cache[
|
188
|
+
"onUpdate:nextPage": _cache[4] || (_cache[4] = ($event) => updateNextPage($event)),
|
189
|
+
"onUpdate:previousPage": _cache[5] || (_cache[5] = ($event) => updatePreviousPage($event)),
|
191
190
|
"onUpdate:scroll": updateScroll,
|
192
|
-
"onUpdateFromHeader:scroll": _cache[
|
191
|
+
"onUpdateFromHeader:scroll": _cache[6] || (_cache[6] = ($event) => _ctx.headerTop > 0 && nextTick(() => updateScroll(_ctx.headerTop))),
|
193
192
|
"onRemove:page": removePage,
|
194
193
|
onRefetch: ($event) => unref(refetchNextPages)(index),
|
195
|
-
onFetched: _cache[
|
194
|
+
onFetched: _cache[7] || (_cache[7] = ($event) => isResettingPage.value = false)
|
196
195
|
}, {
|
197
196
|
default: withCtx(({ item, setter, skeleton, refetch, previous, next, first, last, page: itemPage, index: itemIndex }) => [
|
198
197
|
renderSlot(_ctx.$slots, "default", {
|
@@ -215,8 +214,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
215
214
|
count.value !== 0 && nextPage.value ? (openBlock(), createBlock(_sfc_main$2, {
|
216
215
|
key: 1,
|
217
216
|
onClick: addNextPage,
|
218
|
-
onCheck:
|
219
|
-
}
|
217
|
+
onCheck: _cache[8] || (_cache[8] = ($event) => unref(infiniteScrollRef)?.checkIsScrollDown())
|
218
|
+
})) : createCommentVNode("", true)
|
220
219
|
]),
|
221
220
|
_: 3
|
222
221
|
}, 8, ["scrolling-element", "style"]);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"InfiniteListScroll.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/InfiniteList/components/InfiniteListScroll.vue"],"names":[],"mappings":"AA4IA,iBAAS,cAAc;;yBA0BM,GAAG;;;WASlB,OAAO,IAA6B;EAEjD;AAYD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;
|
1
|
+
{"version":3,"file":"InfiniteListScroll.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/InfiniteList/components/InfiniteListScroll.vue"],"names":[],"mappings":"AA4IA,iBAAS,cAAc;;yBA0BM,GAAG;;;WASlB,OAAO,IAA6B;EAEjD;AAYD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;sBApHD,OAAO,GAAG,IAAI;;;;;;;;sBAAd,OAAO,GAAG,IAAI;;;;kFA+HhC,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/components/InfiniteList/models/utils.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/components/InfiniteList/models/utils.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,YAAa,OAAO,GAAG,IAAI,KAAG,OAIvD,CAAA;AAED,eAAO,MAAM,eAAe,YAAa,OAAO,GAAG,IAAI,KAAG,OAIzD,CAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"useInfiniteListHeader.d.ts","sourceRoot":"","sources":["../../../../src/components/InfiniteList/use/useInfiniteListHeader.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"useInfiniteListHeader.d.ts","sourceRoot":"","sources":["../../../../src/components/InfiniteList/use/useInfiniteListHeader.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,qBAAqB,sBAAsB,OAAO,GAAG,IAAI;;;;;;CAgDrE,CAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"useRefetchNextPages.d.ts","sourceRoot":"","sources":["../../../../src/components/InfiniteList/use/useRefetchNextPages.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"useRefetchNextPages.d.ts","sourceRoot":"","sources":["../../../../src/components/InfiniteList/use/useRefetchNextPages.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,mBAAmB;;8BAoBG,MAAM,KAAG,IAAI;CAY/C,CAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"useSelected.d.ts","sourceRoot":"","sources":["../../../../src/components/InfiniteList/use/useSelected.ts"],"names":[],"mappings":"AAAA,OAAO,
|
1
|
+
{"version":3,"file":"useSelected.d.ts","sourceRoot":"","sources":["../../../../src/components/InfiniteList/use/useSelected.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,GAAG,EAAwC,MAAM,KAAK,CAAA;AA6BnE,eAAO,MAAM,WAAW,GAAI,KAAK,SACxB,GAAG,CAAC,MAAM,GAAG,SAAS,CAAC,cAClB,GAAG,CAAC,MAAM,CAAC,YACb,GAAG,CAAC,KAAK,EAAE,CAAC,WACb,GAAG,CAAC,OAAO,CAAC,iBACN,GAAG,CAAC,aAAa,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC,UAE5C,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,IAAI,iBACjB,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,IAAI,eAC1B,CAAC,KAAK,EAAE,aAAa,CAAC,KAAK,CAAC,KAAK,IAAI;8BAqBjB,YAAY,CAAC,KAAK,CAAC;wBA4CzB,KAAK;+BAYE,KAAK,QAAQ,MAAM,SAAS,MAAM;2BAhBtC,YAAY,CAAC,KAAK,CAAC;;;+BAsCf,YAAY,CAAC,KAAK,CAAC,GAAG,IAAI;yBAIhC,KAAK,SAAS,OAAO,KAAG,IAAI;;;CA4EzD,CAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WInfoCard.vue.d.ts","sourceRoot":"","sources":["../../../src/components/InfoCard/WInfoCard.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WInfoCard.vue.d.ts","sourceRoot":"","sources":["../../../src/components/InfoCard/WInfoCard.vue"],"names":[],"mappings":"AAyCA,iBAAS,cAAc;;yBAqDM,GAAG;;;WASlB,OAAO,IAA6B;EAEjD;AASD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;WAnFZ,OAAO;aACL,OAAO;;WADT,OAAO;aACL,OAAO;iGAwFhB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { defineComponent, openBlock, createElementBlock, normalizeClass, createBlock, unref, createCommentVNode, createElementVNode, renderSlot } from 'vue';
|
2
2
|
import IconNegativeInfo from '../../assets/icons/sax/IconNegativeInfo.svg.js';
|
3
3
|
|
4
|
-
const _hoisted_1 = { class: "py-1
|
4
|
+
const _hoisted_1 = { class: "text-pretty py-1" };
|
5
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
6
6
|
__name: "WInfoCard",
|
7
7
|
props: {
|
@@ -11,13 +11,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
11
11
|
setup(__props) {
|
12
12
|
return (_ctx, _cache) => {
|
13
13
|
return openBlock(), createElementBlock("div", {
|
14
|
-
class: normalizeClass(["
|
14
|
+
class: normalizeClass(["sm-not:-px--inner-margin flex gap-3.5 p-4 leading-7 sm:rounded-3xl", {
|
15
15
|
"bg-gray-100 dark:bg-gray-800": !_ctx.noBg
|
16
16
|
}])
|
17
17
|
}, [
|
18
18
|
!_ctx.noIcon ? (openBlock(), createBlock(unref(IconNegativeInfo), {
|
19
19
|
key: 0,
|
20
|
-
class: "square-8 sm-not:square-7 sm-not:-ml-1 inline-block
|
20
|
+
class: "square-8 sm-not:square-7 sm-not:-ml-1 text-description inline-block rotate-180"
|
21
21
|
})) : createCommentVNode("", true),
|
22
22
|
createElementVNode("div", _hoisted_1, [
|
23
23
|
renderSlot(_ctx.$slots, "default")
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WInfoCardNegative.vue.d.ts","sourceRoot":"","sources":["../../../src/components/InfoCard/WInfoCardNegative.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WInfoCardNegative.vue.d.ts","sourceRoot":"","sources":["../../../src/components/InfoCard/WInfoCardNegative.vue"],"names":[],"mappings":"AAqCA,OAAO,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAA;AAuBjD,iBAAS,cAAc;;yBAkDM,GAAG;;;WASlB,OAAO,IAA6B;EAEjD;AAWD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;WAlFZ,MAAM;mBACE,YAAY;;WADpB,MAAM;mBACE,YAAY;iGAuF3B,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|