eco-vue-js 0.5.25 → 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
@@ -1,46 +1,66 @@
|
|
1
|
-
import { defineComponent, ref, computed, openBlock, createBlock, unref, withModifiers, createSlots, withCtx, renderSlot, createCommentVNode, createVNode, resolveDynamicComponent, nextTick } from 'vue';
|
1
|
+
import { defineComponent, ref, computed, openBlock, createBlock, mergeProps, unref, withModifiers, createSlots, withCtx, renderSlot, createCommentVNode, createVNode, resolveDynamicComponent, nextTick } from 'vue';
|
2
2
|
import { getIsMobile } from '../../utils/mobile.js';
|
3
3
|
import _sfc_main$1 from '../Input/WInputSuggest.vue.js';
|
4
4
|
import _sfc_main$2 from './components/SelectAsyncPrefix.vue.js';
|
5
5
|
import _sfc_main$3 from './components/SelectAsyncList.vue.js';
|
6
6
|
|
7
7
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
8
|
+
...{ inheritAttrs: false },
|
8
9
|
__name: "WSelectAsync",
|
9
10
|
props: {
|
10
|
-
modelValue: {},
|
11
|
-
search: {},
|
12
11
|
useQueryFn: {},
|
13
|
-
useQueryFnPrefix: {
|
12
|
+
useQueryFnPrefix: {},
|
14
13
|
isInvalidPage: {},
|
15
14
|
queryParams: {},
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
15
|
+
optionComponent: {},
|
16
|
+
previewData: {},
|
17
|
+
createdData: {},
|
18
|
+
valueGetter: { type: Function, default: (data) => data.id },
|
19
|
+
valueQueryKey: { default: "id__in" },
|
20
|
+
queryOptions: {},
|
21
|
+
modelValue: {},
|
22
|
+
search: {},
|
23
|
+
emptyStub: { default: "No match" },
|
23
24
|
disableClear: { type: Boolean },
|
24
25
|
hidePrefix: { type: Boolean },
|
26
|
+
allowCreate: { type: Boolean },
|
27
|
+
hideOptionIcon: { type: Boolean },
|
28
|
+
mobileTitle: {},
|
29
|
+
persist: { type: Boolean },
|
30
|
+
type: {},
|
31
|
+
textarea: { type: Boolean },
|
32
|
+
resize: { type: Boolean },
|
33
|
+
placeholder: {},
|
34
|
+
icon: {},
|
35
|
+
size: {},
|
36
|
+
maxLength: {},
|
37
|
+
name: {},
|
38
|
+
autocomplete: {},
|
39
|
+
autofocus: { type: Boolean },
|
25
40
|
readonly: { type: Boolean },
|
26
|
-
|
41
|
+
disabledActions: { type: Boolean },
|
42
|
+
loading: { type: Boolean },
|
43
|
+
spellcheck: { type: Boolean },
|
44
|
+
customBackspaceHandle: { type: Boolean },
|
45
|
+
textSecure: { type: Boolean },
|
46
|
+
placeholderSecure: { type: Boolean },
|
47
|
+
allowPaste: { type: Boolean },
|
48
|
+
title: {},
|
49
|
+
description: {},
|
50
|
+
errorMessage: {},
|
51
|
+
tooltipText: {},
|
52
|
+
mono: { type: Boolean },
|
53
|
+
hasChanges: { type: Boolean },
|
27
54
|
skeleton: { type: Boolean },
|
28
|
-
|
29
|
-
allowCreate: { type: Boolean },
|
30
|
-
errorMessage: { default: void 0 },
|
55
|
+
disabled: { type: Boolean },
|
31
56
|
required: { type: Boolean },
|
32
|
-
hasChanges: { type: Boolean },
|
33
|
-
placeholder: { default: void 0 },
|
34
57
|
noMargin: { type: Boolean },
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
valueGetter: { type: Function, default: (data) => data.id },
|
42
|
-
valueQueryKey: { default: "id__in" },
|
43
|
-
queryOptions: { default: void 0 }
|
58
|
+
allowCopy: { type: Boolean },
|
59
|
+
teleport: { type: Boolean },
|
60
|
+
noZIndex: { type: Boolean },
|
61
|
+
maxHeight: {},
|
62
|
+
maxWidth: {},
|
63
|
+
horizontalAlign: {}
|
44
64
|
},
|
45
65
|
emits: ["select", "unselect", "update:search", "update:modelValue", "create:option"],
|
46
66
|
setup(__props, { expose: __expose, emit: __emit }) {
|
@@ -59,8 +79,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
59
79
|
};
|
60
80
|
let deletePressTimeout = null;
|
61
81
|
const captureDoubleDelete = () => {
|
62
|
-
if (!props.modelValue.length || props.search.length)
|
63
|
-
return;
|
82
|
+
if (!props.modelValue.length || props.search.length) return;
|
64
83
|
if (deletePressTimeout) {
|
65
84
|
unselect(props.modelValue[props.modelValue.length - 1]);
|
66
85
|
clearTimeout(deletePressTimeout);
|
@@ -72,23 +91,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
72
91
|
}
|
73
92
|
};
|
74
93
|
const select = (item) => {
|
75
|
-
if (isDisabled.value)
|
76
|
-
return;
|
94
|
+
if (isDisabled.value) return;
|
77
95
|
emit("select", item);
|
78
96
|
};
|
79
97
|
const unselect = (item) => {
|
80
|
-
if (isDisabled.value)
|
81
|
-
return;
|
98
|
+
if (isDisabled.value) return;
|
82
99
|
emit("unselect", item);
|
83
100
|
};
|
84
101
|
const create = () => {
|
85
|
-
if (isDisabled.value)
|
86
|
-
return;
|
102
|
+
if (isDisabled.value) return;
|
87
103
|
emit("create:option", props.search);
|
88
104
|
};
|
89
105
|
const updateSelected = (value) => {
|
90
|
-
if (isDisabled.value)
|
91
|
-
return;
|
106
|
+
if (isDisabled.value) return;
|
92
107
|
emit("update:modelValue", value);
|
93
108
|
};
|
94
109
|
const focus = () => {
|
@@ -106,27 +121,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
106
121
|
blur
|
107
122
|
});
|
108
123
|
return (_ctx, _cache) => {
|
109
|
-
return openBlock(), createBlock(_sfc_main$1, {
|
124
|
+
return openBlock(), createBlock(_sfc_main$1, mergeProps({
|
110
125
|
ref_key: "input",
|
111
|
-
ref: input
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
"model-value": _ctx.search,
|
116
|
-
"max-length": _ctx.maxSearchLength,
|
126
|
+
ref: input
|
127
|
+
}, {
|
128
|
+
...props,
|
129
|
+
modelValue: _ctx.search,
|
117
130
|
loading: _ctx.loading || isFetchingPrefix.value,
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
size: _ctx.searchSize,
|
122
|
-
"error-message": _ctx.errorMessage,
|
123
|
-
required: _ctx.required,
|
124
|
-
disabled: _ctx.disabled,
|
125
|
-
"has-changes": _ctx.hasChanges,
|
126
|
-
placeholder: _ctx.placeholder,
|
127
|
-
"no-margin": _ctx.noMargin,
|
128
|
-
icon: _ctx.icon,
|
129
|
-
autofocus: _ctx.autofocus,
|
131
|
+
hideInput: unref(isMobile) ? !focused.value : !isOpen.value
|
132
|
+
}, {
|
133
|
+
class: _ctx.$attrs.class,
|
130
134
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => !_ctx.loading && !isFetchingPrefix.value && _ctx.$emit("update:search", $event ?? "")),
|
131
135
|
"onKeypress:enter": _cache[2] || (_cache[2] = withModifiers(($event) => list.value?.selectCursor(), ["stop", "prevent"])),
|
132
136
|
"onKeypress:up": _cache[3] || (_cache[3] = withModifiers(($event) => list.value?.cursorUp(), ["prevent"])),
|
@@ -139,7 +143,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
139
143
|
}),
|
140
144
|
onFocus: _cache[7] || (_cache[7] = ($event) => focused.value = true),
|
141
145
|
onBlur: _cache[8] || (_cache[8] = ($event) => focused.value = false)
|
142
|
-
}, createSlots({
|
146
|
+
}), createSlots({
|
143
147
|
prefix: withCtx(({ unclickable }) => [
|
144
148
|
(_ctx.hidePrefix ? unref(isMobile) ? unclickable || !focused.value : !isOpen.value : true) ? (openBlock(), createBlock(_sfc_main$2, {
|
145
149
|
key: 0,
|
@@ -151,7 +155,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
151
155
|
"disable-clear": _ctx.disableClear,
|
152
156
|
"preview-data": _ctx.previewData,
|
153
157
|
"created-data": _ctx.createdData,
|
154
|
-
"value-getter": _ctx.valueGetter
|
158
|
+
"value-getter": _ctx.valueGetter,
|
155
159
|
"value-query-key": _ctx.valueQueryKey,
|
156
160
|
onUnselect: unselect,
|
157
161
|
"onUpdate:fetching": _cache[0] || (_cache[0] = ($event) => {
|
@@ -181,7 +185,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
181
185
|
"is-invalid-page": _ctx.isInvalidPage,
|
182
186
|
loading: _ctx.loading || isFetchingPrefix.value,
|
183
187
|
disabled: isDisabled.value,
|
184
|
-
"empty-stub": _ctx.emptyStub
|
188
|
+
"empty-stub": _ctx.emptyStub,
|
185
189
|
"allow-create": _ctx.allowCreate && _ctx.search !== "",
|
186
190
|
"hide-option-icon": _ctx.hideOptionIcon,
|
187
191
|
"value-getter": _ctx.valueGetter,
|
@@ -212,14 +216,28 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
212
216
|
]),
|
213
217
|
_: 2
|
214
218
|
}, [
|
219
|
+
_ctx.$slots.title ? {
|
220
|
+
name: "title",
|
221
|
+
fn: withCtx(() => [
|
222
|
+
renderSlot(_ctx.$slots, "title")
|
223
|
+
]),
|
224
|
+
key: "0"
|
225
|
+
} : void 0,
|
226
|
+
_ctx.$slots.subtitle ? {
|
227
|
+
name: "subtitle",
|
228
|
+
fn: withCtx(() => [
|
229
|
+
renderSlot(_ctx.$slots, "subtitle")
|
230
|
+
]),
|
231
|
+
key: "1"
|
232
|
+
} : void 0,
|
215
233
|
_ctx.$slots.right?.()?.length ? {
|
216
234
|
name: "right",
|
217
235
|
fn: withCtx(() => [
|
218
236
|
renderSlot(_ctx.$slots, "right")
|
219
237
|
]),
|
220
|
-
key: "
|
238
|
+
key: "2"
|
221
239
|
} : void 0
|
222
|
-
]),
|
240
|
+
]), 1040, ["class"]);
|
223
241
|
};
|
224
242
|
}
|
225
243
|
});
|
@@ -1,134 +1,56 @@
|
|
1
|
-
declare const _default: <Model extends
|
2
|
-
|
3
|
-
onSelect?: ((value: Model) => any) | undefined;
|
4
|
-
"onUpdate:count"?: ((value: number) => any) | undefined;
|
5
|
-
valueGetter?: ((data: Data) => Model) | undefined;
|
6
|
-
modelValue: Model[];
|
7
|
-
skeleton?: boolean | undefined;
|
8
|
-
onUnselect?: ((value: Model) => any) | undefined;
|
9
|
-
queryParams: QueryParams;
|
10
|
-
selectOnly?: boolean | undefined;
|
11
|
-
unselectOnly?: boolean | undefined;
|
12
|
-
useQueryFn: UseQueryPaginated<Data, ApiError, QueryParams>;
|
13
|
-
isInvalidPage: (error: unknown) => boolean;
|
14
|
-
emptyStub?: string | undefined;
|
15
|
-
queryOptions?: Partial<Parameters<UseQueryPaginated<Data, ApiError, QueryParams>>[1]>;
|
16
|
-
excludeParams?: (keyof QueryParams)[] | undefined;
|
17
|
-
"onUpdate:model-value"?: ((value: Model[]) => any) | undefined;
|
18
|
-
hideOptionIcon?: boolean | undefined;
|
19
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
|
20
|
-
attrs: any;
|
21
|
-
slots: Readonly<{
|
22
|
-
default?: ((props: {
|
23
|
-
option: Data | null;
|
24
|
-
selected: boolean;
|
25
|
-
skeleton: boolean;
|
26
|
-
model: boolean;
|
27
|
-
}) => void) | undefined;
|
28
|
-
}> & {
|
29
|
-
default?: ((props: {
|
30
|
-
option: Data | null;
|
31
|
-
selected: boolean;
|
32
|
-
skeleton: boolean;
|
33
|
-
model: boolean;
|
34
|
-
}) => void) | undefined;
|
35
|
-
};
|
36
|
-
emit: {
|
37
|
-
(e: 'select', value: Model): void;
|
38
|
-
(e: 'unselect', value: Model): void;
|
39
|
-
(e: 'update:model-value', value: Model[]): void;
|
40
|
-
(e: 'update:count', value: number): void;
|
41
|
-
};
|
42
|
-
} | undefined, __VLS_expose?: ((exposed: import('vue').ShallowUnwrapRef<{}>) => void) | undefined, __VLS_setup?: Promise<{
|
43
|
-
props: {
|
44
|
-
title?: string | 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<{
|
45
3
|
onSelect?: ((value: Model) => any) | undefined;
|
46
4
|
"onUpdate:count"?: ((value: number) => any) | undefined;
|
47
|
-
valueGetter?: ((data: Data) => Model) | undefined;
|
48
|
-
modelValue: Model[];
|
49
|
-
skeleton?: boolean | undefined;
|
50
5
|
onUnselect?: ((value: Model) => any) | undefined;
|
51
|
-
|
52
|
-
|
53
|
-
|
6
|
+
"onUpdate:model-value"?: ((value: Model[]) => any) | undefined;
|
7
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & Readonly<import('vue').ExtractPropTypes<{}>> & {
|
8
|
+
onSelect?: ((value: Model) => any) | undefined;
|
9
|
+
"onUpdate:count"?: ((value: number) => any) | undefined;
|
10
|
+
onUnselect?: ((value: Model) => any) | undefined;
|
11
|
+
"onUpdate:model-value"?: ((value: Model[]) => any) | undefined;
|
12
|
+
}, never>, "onSelect" | "onUpdate:count" | "onUnselect" | "onUpdate:model-value"> & {
|
13
|
+
title?: string;
|
14
|
+
emptyStub?: string;
|
15
|
+
modelValue: Model[];
|
54
16
|
useQueryFn: UseQueryPaginated<Data, ApiError, QueryParams>;
|
55
17
|
isInvalidPage: (error: unknown) => boolean;
|
56
|
-
|
18
|
+
queryParams: QueryParams;
|
19
|
+
skeleton?: boolean;
|
20
|
+
excludeParams?: (keyof QueryParams)[];
|
21
|
+
selectOnly?: boolean;
|
22
|
+
unselectOnly?: boolean;
|
23
|
+
hideOptionIcon?: boolean;
|
24
|
+
valueGetter?: (data: Data) => Model;
|
57
25
|
queryOptions?: Partial<Parameters<UseQueryPaginated<Data, ApiError, QueryParams>>[1]>;
|
58
|
-
|
59
|
-
"onUpdate:model-value"?: ((value: Model[]) => any) | undefined;
|
60
|
-
hideOptionIcon?: boolean | undefined;
|
61
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
26
|
+
}> & import('vue').PublicProps;
|
62
27
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
63
28
|
attrs: any;
|
64
|
-
slots: Readonly<{
|
65
|
-
default?: (
|
29
|
+
slots: ReturnType<() => Readonly<{
|
30
|
+
default?: (props: {
|
66
31
|
option: Data | null;
|
67
32
|
selected: boolean;
|
68
33
|
skeleton: boolean;
|
69
34
|
model: boolean;
|
70
|
-
}) => void
|
35
|
+
}) => void;
|
71
36
|
}> & {
|
72
|
-
default?: (
|
37
|
+
default?: (props: {
|
73
38
|
option: Data | null;
|
74
39
|
selected: boolean;
|
75
40
|
skeleton: boolean;
|
76
41
|
model: boolean;
|
77
|
-
}) => void
|
78
|
-
}
|
42
|
+
}) => void;
|
43
|
+
}>;
|
79
44
|
emit: {
|
80
|
-
(e:
|
81
|
-
(e:
|
82
|
-
(e:
|
83
|
-
(e:
|
84
|
-
};
|
85
|
-
}>) => import(
|
45
|
+
(e: "select", value: Model): void;
|
46
|
+
(e: "unselect", value: Model): void;
|
47
|
+
(e: "update:model-value", value: Model[]): void;
|
48
|
+
(e: "update:count", value: number): void;
|
49
|
+
} & {};
|
50
|
+
}>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
86
51
|
[key: string]: any;
|
87
52
|
}> & {
|
88
|
-
__ctx?:
|
89
|
-
props: {
|
90
|
-
title?: string | undefined;
|
91
|
-
onSelect?: ((value: Model) => any) | undefined;
|
92
|
-
"onUpdate:count"?: ((value: number) => any) | undefined;
|
93
|
-
valueGetter?: ((data: Data) => Model) | undefined;
|
94
|
-
modelValue: Model[];
|
95
|
-
skeleton?: boolean | undefined;
|
96
|
-
onUnselect?: ((value: Model) => any) | undefined;
|
97
|
-
queryParams: QueryParams;
|
98
|
-
selectOnly?: boolean | undefined;
|
99
|
-
unselectOnly?: boolean | undefined;
|
100
|
-
useQueryFn: UseQueryPaginated<Data, ApiError, QueryParams>;
|
101
|
-
isInvalidPage: (error: unknown) => boolean;
|
102
|
-
emptyStub?: string | undefined;
|
103
|
-
queryOptions?: Partial<Parameters<UseQueryPaginated<Data, ApiError, QueryParams>>[1]>;
|
104
|
-
excludeParams?: (keyof QueryParams)[] | undefined;
|
105
|
-
"onUpdate:model-value"?: ((value: Model[]) => any) | undefined;
|
106
|
-
hideOptionIcon?: boolean | undefined;
|
107
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
108
|
-
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
109
|
-
attrs: any;
|
110
|
-
slots: Readonly<{
|
111
|
-
default?: ((props: {
|
112
|
-
option: Data | null;
|
113
|
-
selected: boolean;
|
114
|
-
skeleton: boolean;
|
115
|
-
model: boolean;
|
116
|
-
}) => void) | undefined;
|
117
|
-
}> & {
|
118
|
-
default?: ((props: {
|
119
|
-
option: Data | null;
|
120
|
-
selected: boolean;
|
121
|
-
skeleton: boolean;
|
122
|
-
model: boolean;
|
123
|
-
}) => void) | undefined;
|
124
|
-
};
|
125
|
-
emit: {
|
126
|
-
(e: 'select', value: Model): void;
|
127
|
-
(e: 'unselect', value: Model): void;
|
128
|
-
(e: 'update:model-value', value: Model[]): void;
|
129
|
-
(e: 'update:count', value: number): void;
|
130
|
-
};
|
131
|
-
} | undefined;
|
53
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
132
54
|
};
|
133
55
|
export default _default;
|
134
56
|
type __VLS_Prettify<T> = {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WSelectAsyncList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Select/WSelectAsyncList.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WSelectAsyncList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Select/WSelectAsyncList.vue"],"names":[],"mappings":"yBA2GiB,KAAK,SAAS,MAAM,GAAG,MAAM,EAAE,IAAI,SAAS,WAAW,EAAE,QAAQ,EAAE,WAAW,eACjF,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,cAAc,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBACvF,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WAgOxD,cAAc,CAAC;;;;;;;;;;;gBA5Nb,MAAM;oBACF,MAAM;oBACN,KAAK,EAAE;oBACP,iBAAiB,CAAC,IAAI,EAAE,QAAQ,EAAE,WAAW,CAAC;uBAC3C,CAAC,KAAK,EAAE,OAAO,KAAK,OAAO;qBAC7B,WAAW;mBACb,OAAO;wBACF,CAAC,MAAM,WAAW,CAAC,EAAE;qBACxB,OAAO;uBACL,OAAO;yBACL,OAAO;sBACV,CAAC,IAAI,EAAE,IAAI,KAAK,KAAK;uBACpB,OAAO,CAAC,UAAU,CAAC,iBAAiB,CAAC,IAAI,EAAE,QAAQ,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;KAgNP,CAAC,4BAA2B;oBAC3F,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;WACH,UAAU;kBA5LR,CAAC,KAAK,EAAE;YAAC,MAAM,EAAE,IAAI,GAAG,IAAI,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAC;YAAC,KAAK,EAAE,OAAO,CAAA;SAAC,KAAK,IAAI;;kBAA5F,CAAC,KAAK,EAAE;YAAC,MAAM,EAAE,IAAI,GAAG,IAAI,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAC;YAAC,KAAK,EAAE,OAAO,CAAA;SAAC,KAAK,IAAI;MA4L7D;UAClC;YAtMH,QAAQ,SAAS,KAAK,GAAG,IAAI;YAC7B,UAAU,SAAS,KAAK,GAAG,IAAI;YAC/B,oBAAoB,SAAS,KAAK,EAAE,GAAG,IAAI;YAC3C,cAAc,SAAS,MAAM,GAAG,IAAI;UAmMO;;;;YAGL,OAAO,CAAC,OAAO,WAAW,CAAC;;AA1OvE,wBA0O4E;AAY5E,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -1,183 +1,41 @@
|
|
1
|
-
import {
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
valueGetter?: ((data: Data) => Model) | undefined;
|
11
|
-
modelValue: Model | null;
|
12
|
-
readonly?: boolean | undefined;
|
13
|
-
skeleton?: boolean | undefined;
|
14
|
-
description?: string | undefined;
|
15
|
-
placeholder?: string | undefined;
|
16
|
-
errorMessage?: string | undefined;
|
17
|
-
hasChanges?: boolean | undefined;
|
18
|
-
allowClear?: boolean | undefined;
|
19
|
-
autofocus?: boolean | undefined;
|
20
|
-
mono?: boolean | undefined;
|
21
|
-
noMargin?: boolean | undefined;
|
22
|
-
mobileTitle?: string | undefined;
|
23
|
-
"onUpdate:search"?: ((value: string) => any) | undefined;
|
24
|
-
queryParams: QueryParams;
|
25
|
-
useQueryFn: UseQueryPaginated<Data, ApiError, QueryParams>;
|
26
|
-
isInvalidPage: (error: unknown) => boolean;
|
27
|
-
emptyStub?: string | undefined;
|
28
|
-
queryOptions?: Partial<Parameters<UseQueryPaginated<Data, ApiError, QueryParams>>[1]>;
|
29
|
-
hideOptionIcon?: boolean | undefined;
|
30
|
-
maxSearchLength?: number | undefined;
|
31
|
-
optionComponent?: Component<{
|
32
|
-
option: Data;
|
33
|
-
selected?: boolean | undefined;
|
34
|
-
model?: boolean | undefined;
|
35
|
-
}> | undefined;
|
36
|
-
searchSize?: number | undefined;
|
37
|
-
"onCreate:option"?: ((value: string) => any) | undefined;
|
38
|
-
allowCreate?: boolean | undefined;
|
39
|
-
previewData?: Data | undefined;
|
40
|
-
createdData?: Data | undefined;
|
41
|
-
valueQueryKey?: string | undefined;
|
42
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
|
43
|
-
attrs: any;
|
44
|
-
slots: {
|
45
|
-
option?(_: {
|
46
|
-
option: Data | null;
|
47
|
-
selected: boolean;
|
48
|
-
model: boolean;
|
49
|
-
}): any;
|
50
|
-
right?(_: {}): any;
|
51
|
-
};
|
52
|
-
emit: {
|
53
|
-
(e: 'update:modelValue', value: Model | null): void;
|
54
|
-
(e: 'update:search', value: string): void;
|
55
|
-
(e: 'create:option', value: string): void;
|
56
|
-
};
|
57
|
-
} | undefined, __VLS_expose?: ((exposed: import("vue").ShallowUnwrapRef<{
|
58
|
-
blur: () => void;
|
59
|
-
}>) => void) | undefined, __VLS_setup?: Promise<{
|
60
|
-
props: {
|
61
|
-
required?: boolean | undefined;
|
62
|
-
search: string;
|
63
|
-
title?: string | undefined;
|
64
|
-
icon?: SVGComponent | undefined;
|
65
|
-
disabled?: boolean | undefined;
|
66
|
-
loading?: boolean | undefined;
|
67
|
-
"onUpdate:modelValue"?: ((value: Model | null) => any) | undefined;
|
68
|
-
valueGetter?: ((data: Data) => Model) | undefined;
|
69
|
-
modelValue: Model | null;
|
70
|
-
readonly?: boolean | undefined;
|
71
|
-
skeleton?: boolean | undefined;
|
72
|
-
description?: string | undefined;
|
73
|
-
placeholder?: string | undefined;
|
74
|
-
errorMessage?: string | undefined;
|
75
|
-
hasChanges?: boolean | undefined;
|
76
|
-
allowClear?: boolean | undefined;
|
77
|
-
autofocus?: boolean | undefined;
|
78
|
-
mono?: boolean | undefined;
|
79
|
-
noMargin?: boolean | undefined;
|
80
|
-
mobileTitle?: string | undefined;
|
1
|
+
import { SelectAsyncSingleProps } from './types';
|
2
|
+
|
3
|
+
declare const _default: <Model extends number | string, Data extends DefaultData, ApiError, QueryParams, AllowClear extends boolean = false>(__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<{
|
4
|
+
props: __VLS_Prettify<Pick<Partial<{}> & Omit<{
|
5
|
+
"onUpdate:modelValue"?: ((value: AllowClear extends true ? Model | null : Model) => any) | undefined;
|
6
|
+
"onUpdate:search"?: ((value: string) => any) | undefined;
|
7
|
+
"onCreate:option"?: ((value: string) => any) | undefined;
|
8
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & Readonly<import('vue').ExtractPropTypes<{}>> & {
|
9
|
+
"onUpdate:modelValue"?: ((value: AllowClear extends true ? Model | null : Model) => any) | undefined;
|
81
10
|
"onUpdate:search"?: ((value: string) => any) | undefined;
|
82
|
-
queryParams: QueryParams;
|
83
|
-
useQueryFn: UseQueryPaginated<Data, ApiError, QueryParams>;
|
84
|
-
isInvalidPage: (error: unknown) => boolean;
|
85
|
-
emptyStub?: string | undefined;
|
86
|
-
queryOptions?: Partial<Parameters<UseQueryPaginated<Data, ApiError, QueryParams>>[1]>;
|
87
|
-
hideOptionIcon?: boolean | undefined;
|
88
|
-
maxSearchLength?: number | undefined;
|
89
|
-
optionComponent?: Component<{
|
90
|
-
option: Data;
|
91
|
-
selected?: boolean | undefined;
|
92
|
-
model?: boolean | undefined;
|
93
|
-
}> | undefined;
|
94
|
-
searchSize?: number | undefined;
|
95
11
|
"onCreate:option"?: ((value: string) => any) | undefined;
|
96
|
-
|
97
|
-
|
98
|
-
createdData?: Data | undefined;
|
99
|
-
valueQueryKey?: string | undefined;
|
100
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
101
|
-
expose(exposed: import("vue").ShallowUnwrapRef<{
|
12
|
+
}, never>, "onUpdate:modelValue" | "onUpdate:search" | "onCreate:option"> & SelectAsyncSingleProps<Model, Data, ApiError, QueryParams, AllowClear>> & import('vue').PublicProps;
|
13
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{
|
102
14
|
blur: () => void;
|
103
15
|
}>): void;
|
104
16
|
attrs: any;
|
105
|
-
slots: {
|
17
|
+
slots: ReturnType<() => {
|
18
|
+
title?(_: {}): any;
|
19
|
+
subtitle?(_: {}): any;
|
106
20
|
option?(_: {
|
107
21
|
option: Data | null;
|
108
22
|
selected: boolean;
|
109
23
|
model: boolean;
|
110
24
|
}): any;
|
111
25
|
right?(_: {}): any;
|
112
|
-
}
|
26
|
+
}>;
|
113
27
|
emit: {
|
114
|
-
(e:
|
115
|
-
(e:
|
116
|
-
(e:
|
117
|
-
};
|
118
|
-
}>) => import(
|
28
|
+
(e: "update:modelValue", value: AllowClear extends true ? Model | null : Model): void;
|
29
|
+
(e: "update:search", value: string): void;
|
30
|
+
(e: "create:option", value: string): void;
|
31
|
+
} & {};
|
32
|
+
}>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
119
33
|
[key: string]: any;
|
120
34
|
}> & {
|
121
|
-
__ctx?:
|
122
|
-
props: {
|
123
|
-
required?: boolean | undefined;
|
124
|
-
search: string;
|
125
|
-
title?: string | undefined;
|
126
|
-
icon?: SVGComponent | undefined;
|
127
|
-
disabled?: boolean | undefined;
|
128
|
-
loading?: boolean | undefined;
|
129
|
-
"onUpdate:modelValue"?: ((value: Model | null) => any) | undefined;
|
130
|
-
valueGetter?: ((data: Data) => Model) | undefined;
|
131
|
-
modelValue: Model | null;
|
132
|
-
readonly?: boolean | undefined;
|
133
|
-
skeleton?: boolean | undefined;
|
134
|
-
description?: string | undefined;
|
135
|
-
placeholder?: string | undefined;
|
136
|
-
errorMessage?: string | undefined;
|
137
|
-
hasChanges?: boolean | undefined;
|
138
|
-
allowClear?: boolean | undefined;
|
139
|
-
autofocus?: boolean | undefined;
|
140
|
-
mono?: boolean | undefined;
|
141
|
-
noMargin?: boolean | undefined;
|
142
|
-
mobileTitle?: string | undefined;
|
143
|
-
"onUpdate:search"?: ((value: string) => any) | undefined;
|
144
|
-
queryParams: QueryParams;
|
145
|
-
useQueryFn: UseQueryPaginated<Data, ApiError, QueryParams>;
|
146
|
-
isInvalidPage: (error: unknown) => boolean;
|
147
|
-
emptyStub?: string | undefined;
|
148
|
-
queryOptions?: Partial<Parameters<UseQueryPaginated<Data, ApiError, QueryParams>>[1]>;
|
149
|
-
hideOptionIcon?: boolean | undefined;
|
150
|
-
maxSearchLength?: number | undefined;
|
151
|
-
optionComponent?: Component<{
|
152
|
-
option: Data;
|
153
|
-
selected?: boolean | undefined;
|
154
|
-
model?: boolean | undefined;
|
155
|
-
}> | undefined;
|
156
|
-
searchSize?: number | undefined;
|
157
|
-
"onCreate:option"?: ((value: string) => any) | undefined;
|
158
|
-
allowCreate?: boolean | undefined;
|
159
|
-
previewData?: Data | undefined;
|
160
|
-
createdData?: Data | undefined;
|
161
|
-
valueQueryKey?: string | undefined;
|
162
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
163
|
-
expose(exposed: import("vue").ShallowUnwrapRef<{
|
164
|
-
blur: () => void;
|
165
|
-
}>): void;
|
166
|
-
attrs: any;
|
167
|
-
slots: {
|
168
|
-
option?(_: {
|
169
|
-
option: Data | null;
|
170
|
-
selected: boolean;
|
171
|
-
model: boolean;
|
172
|
-
}): any;
|
173
|
-
right?(_: {}): any;
|
174
|
-
};
|
175
|
-
emit: {
|
176
|
-
(e: 'update:modelValue', value: Model | null): void;
|
177
|
-
(e: 'update:search', value: string): void;
|
178
|
-
(e: 'create:option', value: string): void;
|
179
|
-
};
|
180
|
-
} | undefined;
|
35
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
181
36
|
};
|
182
37
|
export default _default;
|
38
|
+
type __VLS_Prettify<T> = {
|
39
|
+
[K in keyof T]: T[K];
|
40
|
+
} & {};
|
183
41
|
//# sourceMappingURL=WSelectAsyncSingle.vue.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WSelectAsyncSingle.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Select/WSelectAsyncSingle.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WSelectAsyncSingle.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Select/WSelectAsyncSingle.vue"],"names":[],"mappings":"AA8FA,OAAO,KAAK,EAAC,sBAAsB,EAAC,MAAM,SAAS,CAAA;yBAGlC,KAAK,SAAS,MAAM,GAAG,MAAM,EAAE,IAAI,SAAS,WAAW,EAAE,QAAQ,EAAE,WAAW,EAAE,UAAU,SAAS,OAAO,uBAC7G,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,cAAc,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBACvF,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WA4NxD,cAAc,CAAC;;;;;;;;sJAAyD,CAAC,4BAA2B;oBAC3F,OAAO,KAAK,EAAE,gBAAgB;;MAAsB,GAAG,IAAI;WACpE,GAAG;WACH,UAAU;uBA7BQ,GAAG;0BACA,GAAG;;;;;YACL,GAAG;uBACJ,GAAG;MA0BY;UAClC;YArNH,mBAAmB,0DAAoB,IAAI;YAC3C,eAAe,SAAS,MAAM,GAAG,IAAI;YACrC,eAAe,SAAS,MAAM,GAAG,IAAI;UAmNA;;;;YAGC,OAAO,CAAC,OAAO,WAAW,CAAC;;AAtOvE,wBAsO4E;AAM5E,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|