eco-vue-js 0.5.26 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/assets/icons/sax/IconClose.svg.js +26 -0
- package/dist/assets/icons/sax/IconEdit.svg.js +24 -0
- package/dist/assets/icons/sax/IconSlash.svg.js +27 -0
- package/dist/components/ActionsBar/WActionsBar.vue.d.ts +129 -2
- package/dist/components/ActionsBar/WActionsBar.vue.d.ts.map +1 -1
- package/dist/components/ActionsBar/WActionsBar.vue.js +1 -2
- package/dist/components/BottomSheet/WBottomSheet.vue.d.ts +20 -15
- package/dist/components/BottomSheet/WBottomSheet.vue.d.ts.map +1 -1
- package/dist/components/BottomSheet/WBottomSheet.vue.js +2 -4
- package/dist/components/Button/WButton.vue.d.ts +20 -17
- package/dist/components/Button/WButton.vue.d.ts.map +1 -1
- package/dist/components/Button/WButton.vue.js +1 -2
- package/dist/components/Button/WButtonAction.vue.d.ts +21 -18
- package/dist/components/Button/WButtonAction.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonCopy.vue.d.ts +3 -3
- package/dist/components/Button/WButtonCopy.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonCopy.vue.js +9 -43
- package/dist/components/Button/WButtonDropdown.vue.d.ts +33 -25
- package/dist/components/Button/WButtonDropdown.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonDropdown.vue.js +12 -9
- package/dist/components/Button/WButtonGroup.vue.d.ts +17 -110
- package/dist/components/Button/WButtonGroup.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonGroup.vue.js +68 -44
- package/dist/components/Button/WButtonMore.vue.d.ts +14 -12
- package/dist/components/Button/WButtonMore.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonMore.vue.js +1 -2
- package/dist/components/Button/WButtonMoreItem.vue.d.ts +19 -16
- package/dist/components/Button/WButtonMoreItem.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonSelection.vue.d.ts +16 -16
- package/dist/components/Button/WButtonSelection.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonSelectionAction.vue.d.ts +8 -8
- package/dist/components/Button/WButtonSelectionAction.vue.d.ts.map +1 -1
- package/dist/components/Button/models/semanticTypeStylesMap.d.ts +1 -0
- package/dist/components/Button/types.d.ts +36 -0
- package/dist/components/Button/types.d.ts.map +1 -0
- package/dist/components/Checkbox/WCheckbox.vue.d.ts +34 -32
- package/dist/components/Checkbox/WCheckbox.vue.d.ts.map +1 -1
- package/dist/components/Checkbox/WCheckbox.vue.js +1 -2
- package/dist/components/Chip/WChip.vue.d.ts +19 -16
- package/dist/components/Chip/WChip.vue.d.ts.map +1 -1
- package/dist/components/ClickOutside/WClickOutside.vue.d.ts +7 -5
- package/dist/components/ClickOutside/WClickOutside.vue.d.ts.map +1 -1
- package/dist/components/ClickOutside/WClickOutside.vue.js +3 -6
- package/dist/components/Counter/WCounter.vue.d.ts +15 -15
- package/dist/components/Counter/WCounter.vue.d.ts.map +1 -1
- package/dist/components/Counter/WCounter.vue.js +1 -2
- package/dist/components/DatePicker/WDatePicker.vue.d.ts +6 -5
- package/dist/components/DatePicker/WDatePicker.vue.d.ts.map +1 -1
- package/dist/components/DatePicker/WDatePicker.vue.js +1 -2
- package/dist/components/DatePicker/WDatePickerSingle.vue.d.ts +6 -6
- package/dist/components/DatePicker/WDatePickerSingle.vue.d.ts.map +1 -1
- package/dist/components/DatePicker/WDatePickerSingle.vue.js +1 -2
- package/dist/components/DatePicker/components/CalendarDay.vue.d.ts +10 -9
- package/dist/components/DatePicker/components/CalendarDay.vue.d.ts.map +1 -1
- package/dist/components/DatePicker/components/CalendarDay.vue.js +10 -20
- package/dist/components/DatePicker/components/CalendarMonth.vue.d.ts +12 -11
- package/dist/components/DatePicker/components/CalendarMonth.vue.d.ts.map +1 -1
- package/dist/components/DatePicker/components/CalendarMonth.vue.js +7 -14
- package/dist/components/DatePicker/components/CalendarToggle.vue.d.ts +4 -4
- package/dist/components/DatePicker/components/CalendarToggle.vue.d.ts.map +1 -1
- package/dist/components/DatePicker/components/CalendarValue.vue.d.ts +8 -8
- package/dist/components/DatePicker/components/CalendarValue.vue.d.ts.map +1 -1
- package/dist/components/DatePicker/components/CalendarValue.vue.js +1 -2
- package/dist/components/DatePicker/components/CalendarWeek.vue.d.ts +8 -7
- package/dist/components/DatePicker/components/CalendarWeek.vue.d.ts.map +1 -1
- package/dist/components/DatePicker/components/CalendarWeek.vue.js +7 -14
- package/dist/components/Dropdown/WDropdown.vue.d.ts +18 -29
- package/dist/components/Dropdown/WDropdown.vue.d.ts.map +1 -1
- package/dist/components/Dropdown/WDropdown.vue.js +7 -14
- package/dist/components/Dropdown/types.d.ts +11 -0
- package/dist/components/Dropdown/types.d.ts.map +1 -0
- package/dist/components/Dropdown/utils/DropdownStyle.d.ts +1 -0
- package/dist/components/Dropdown/utils/DropdownStyle.js +2 -4
- package/dist/components/DropdownMenu/WDropdownMenu.vue.d.ts +18 -33
- package/dist/components/DropdownMenu/WDropdownMenu.vue.d.ts.map +1 -1
- package/dist/components/DropdownMenu/WDropdownMenu.vue.js +3 -3
- package/dist/components/DropdownMenu/types.d.ts +8 -0
- package/dist/components/DropdownMenu/types.d.ts.map +1 -0
- package/dist/components/Expansion/WExpansion.vue.d.ts +20 -18
- package/dist/components/Expansion/WExpansion.vue.d.ts.map +1 -1
- package/dist/components/Expansion/WExpansionItem.vue.d.ts +24 -22
- package/dist/components/Expansion/WExpansionItem.vue.d.ts.map +1 -1
- package/dist/components/FieldWrapper/WFieldWrapper.vue.d.ts +29 -21
- package/dist/components/FieldWrapper/WFieldWrapper.vue.d.ts.map +1 -1
- package/dist/components/FieldWrapper/WFieldWrapper.vue.js +148 -18
- package/dist/components/FieldWrapper/types.d.ts +16 -0
- package/dist/components/FieldWrapper/types.d.ts.map +1 -0
- package/dist/components/FilePicker/WFilePicker.vue.d.ts +36 -32
- package/dist/components/FilePicker/WFilePicker.vue.d.ts.map +1 -1
- package/dist/components/FilePicker/WFilePicker.vue.js +3 -6
- package/dist/components/FilePicker/components/FilePickerItem.vue.d.ts +19 -17
- package/dist/components/FilePicker/components/FilePickerItem.vue.d.ts.map +1 -1
- package/dist/components/FilePicker/components/FilePickerSvg.vue.d.ts +7 -7
- package/dist/components/FilePicker/components/FilePickerSvg.vue.d.ts.map +1 -1
- package/dist/components/FilterWrapper/WFilterWrapper.vue.d.ts +16 -14
- package/dist/components/FilterWrapper/WFilterWrapper.vue.d.ts.map +1 -1
- package/dist/components/Form/WForm.vue.d.ts +21 -19
- package/dist/components/Form/WForm.vue.d.ts.map +1 -1
- package/dist/components/Form/WFormValidator.vue.d.ts +28 -26
- package/dist/components/Form/WFormValidator.vue.d.ts.map +1 -1
- package/dist/components/Form/WFormValidator.vue.js +12 -24
- package/dist/components/Form/models/injection.d.ts +2 -1
- package/dist/components/Form/models/injection.d.ts.map +1 -1
- package/dist/components/Form/models/utils.d.ts.map +1 -1
- package/dist/components/Form/models/utils.js +5 -4
- package/dist/components/Form/use/useFormErrorMessageMap.d.ts +4 -3
- package/dist/components/Form/use/useFormErrorMessageMap.d.ts.map +1 -1
- package/dist/components/Form/use/useFormHasChangesMap.d.ts +3 -2
- package/dist/components/Form/use/useFormHasChangesMap.d.ts.map +1 -1
- package/dist/components/Form/use/useFormInitModelMap.d.ts +2 -1
- package/dist/components/Form/use/useFormInitModelMap.d.ts.map +1 -1
- package/dist/components/Form/use/useFormInvalidateMap.d.ts +2 -1
- package/dist/components/Form/use/useFormInvalidateMap.d.ts.map +1 -1
- package/dist/components/Form/use/useFormTitleMap.d.ts +2 -1
- package/dist/components/Form/use/useFormTitleMap.d.ts.map +1 -1
- package/dist/components/Form/use/useFormValidateMap.d.ts +2 -1
- package/dist/components/Form/use/useFormValidateMap.d.ts.map +1 -1
- package/dist/components/Form/use/useFormValidateMap.js +1 -2
- package/dist/components/HeaderBar/WHeaderBar.vue.d.ts +27 -24
- package/dist/components/HeaderBar/WHeaderBar.vue.d.ts.map +1 -1
- package/dist/components/HeaderBar/WHeaderBar.vue.js +2 -4
- package/dist/components/ImageViewer/WImageViewer.vue.d.ts +9 -9
- package/dist/components/ImageViewer/WImageViewer.vue.d.ts.map +1 -1
- package/dist/components/ImageViewer/WImageViewer.vue.js +1 -2
- package/dist/components/ImageViewer/components/ImageModal.vue.d.ts +6 -6
- package/dist/components/ImageViewer/components/ImageModal.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/WInfiniteList.vue.d.ts +67 -237
- package/dist/components/InfiniteList/WInfiniteList.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/WInfiniteListPages.vue.d.ts +50 -187
- package/dist/components/InfiniteList/WInfiniteListPages.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/WInfiniteListPages.vue.js +20 -40
- package/dist/components/InfiniteList/components/EmptyComponent.vue.d.ts +4 -2
- package/dist/components/InfiniteList/components/EmptyComponent.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/components/InfiniteListButton.vue.d.ts +2 -2
- package/dist/components/InfiniteList/components/InfiniteListButton.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/components/InfiniteListPage.vue.d.ts +57 -209
- package/dist/components/InfiniteList/components/InfiniteListPage.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/components/InfiniteListPage.vue.js +21 -42
- package/dist/components/InfiniteList/components/InfiniteListPageSelectItem.vue.d.ts +18 -16
- package/dist/components/InfiniteList/components/InfiniteListPageSelectItem.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/components/InfiniteListPageSelection.vue.d.ts +19 -43
- package/dist/components/InfiniteList/components/InfiniteListPageSelection.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/components/InfiniteListPageSelection.vue.js +2 -4
- package/dist/components/InfiniteList/components/InfiniteListPageTitle.vue.d.ts +13 -23
- package/dist/components/InfiniteList/components/InfiniteListPageTitle.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/components/InfiniteListScroll.vue.d.ts +14 -12
- package/dist/components/InfiniteList/components/InfiniteListScroll.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/components/InfiniteListScroll.vue.js +1 -2
- package/dist/components/InfiniteList/models/injection.d.ts +8 -7
- package/dist/components/InfiniteList/models/injection.d.ts.map +1 -1
- package/dist/components/InfiniteList/models/utils.js +2 -4
- package/dist/components/InfiniteList/use/useInfiniteListHeader.d.ts +5 -5
- package/dist/components/InfiniteList/use/useInfiniteListHeader.js +4 -2
- package/dist/components/InfiniteList/use/useRefetchNextPages.d.ts +1 -1
- package/dist/components/InfiniteList/use/useRefetchNextPages.js +1 -2
- package/dist/components/InfiniteList/use/useSelected.d.ts +6 -5
- package/dist/components/InfiniteList/use/useSelected.d.ts.map +1 -1
- package/dist/components/InfiniteList/use/useSelected.js +13 -26
- package/dist/components/InfoCard/WInfoCard.vue.d.ts +16 -14
- package/dist/components/InfoCard/WInfoCard.vue.d.ts.map +1 -1
- package/dist/components/InfoCard/WInfoCardNegative.vue.d.ts +16 -13
- package/dist/components/InfoCard/WInfoCardNegative.vue.d.ts.map +1 -1
- package/dist/components/Input/WInput.vue.d.ts +41 -199
- package/dist/components/Input/WInput.vue.d.ts.map +1 -1
- package/dist/components/Input/WInput.vue.js +137 -227
- package/dist/components/Input/WInputAsync.vue.d.ts +16 -94
- package/dist/components/Input/WInputAsync.vue.d.ts.map +1 -1
- package/dist/components/Input/WInputAsync.vue.js +118 -104
- package/dist/components/Input/WInputDate.vue.d.ts +41 -8
- package/dist/components/Input/WInputDate.vue.d.ts.map +1 -1
- package/dist/components/Input/WInputDate.vue.js +66 -14
- package/dist/components/Input/WInputOptions.vue.d.ts +18 -125
- package/dist/components/Input/WInputOptions.vue.d.ts.map +1 -1
- package/dist/components/Input/WInputOptions.vue.js +64 -53
- package/dist/components/Input/WInputSuggest.vue.d.ts +49 -207
- package/dist/components/Input/WInputSuggest.vue.d.ts.map +1 -1
- package/dist/components/Input/WInputSuggest.vue.js +71 -57
- package/dist/components/Input/components/InputActions.vue.d.ts +34 -28
- package/dist/components/Input/components/InputActions.vue.d.ts.map +1 -1
- package/dist/components/Input/components/InputActions.vue.js +49 -84
- package/dist/components/Input/components/InputActionsButton.vue.d.ts +35 -0
- package/dist/components/Input/components/InputActionsButton.vue.d.ts.map +1 -0
- package/dist/components/Input/components/InputActionsButton.vue.js +41 -0
- package/dist/components/Input/components/InputActionsButton.vue2.js +5 -0
- package/dist/components/Input/types.d.ts +45 -0
- package/dist/components/Input/types.d.ts.map +1 -0
- package/dist/components/Link/WLink.vue.d.ts +19 -16
- package/dist/components/Link/WLink.vue.d.ts.map +1 -1
- package/dist/components/Link/WLinkArrow.vue.d.ts +12 -9
- package/dist/components/Link/WLinkArrow.vue.d.ts.map +1 -1
- package/dist/components/ListCard/WListCard.vue.d.ts +27 -25
- package/dist/components/ListCard/WListCard.vue.d.ts.map +1 -1
- package/dist/components/ListCard/WListCardField.vue.d.ts +17 -14
- package/dist/components/ListCard/WListCardField.vue.d.ts.map +1 -1
- package/dist/components/MenuItem/WMenuItem.vue.d.ts +19 -16
- package/dist/components/MenuItem/WMenuItem.vue.d.ts.map +1 -1
- package/dist/components/Modal/WModal.vue.d.ts +1 -1
- package/dist/components/Modal/WModal.vue.d.ts.map +1 -1
- package/dist/components/Modal/WModal.vue.js +2 -4
- package/dist/components/Modal/WModalStepper.vue.d.ts +18 -16
- package/dist/components/Modal/WModalStepper.vue.d.ts.map +1 -1
- package/dist/components/Modal/WModalWrapper.vue.d.ts +14 -12
- package/dist/components/Modal/WModalWrapper.vue.d.ts.map +1 -1
- package/dist/components/Modal/components/ModalCloseButton.vue.d.ts +2 -2
- package/dist/components/Modal/components/ModalCloseButton.vue.d.ts.map +1 -1
- package/dist/components/Modal/modals/Confirm/ConfirmModal.vue.d.ts +19 -18
- package/dist/components/Modal/modals/Confirm/ConfirmModal.vue.d.ts.map +1 -1
- package/dist/components/Modal/modals/Confirm/ConfirmModal.vue2.js +2 -4
- package/dist/components/Modal/modals/Confirm/types.d.ts +2 -1
- package/dist/components/Nav/WNavBar.vue.d.ts +7 -5
- package/dist/components/Nav/WNavBar.vue.d.ts.map +1 -1
- package/dist/components/Nav/WNavItem.vue.d.ts +16 -13
- package/dist/components/Nav/WNavItem.vue.d.ts.map +1 -1
- package/dist/components/Nav/WNavItem.vue.js +1 -2
- package/dist/components/Nav/WNavItemExpand.vue.d.ts +15 -12
- package/dist/components/Nav/WNavItemExpand.vue.d.ts.map +1 -1
- package/dist/components/Nav/WNavItemExpand.vue.js +3 -0
- package/dist/components/Nav/WNavItemTransition.vue.d.ts +4 -2
- package/dist/components/Nav/WNavItemTransition.vue.d.ts.map +1 -1
- package/dist/components/Notify/WNotify.vue.d.ts +1 -1
- package/dist/components/Notify/WNotify.vue.d.ts.map +1 -1
- package/dist/components/Notify/WNotify.vue.js +1 -2
- package/dist/components/Notify/components/NotifyCard.vue.d.ts +15 -14
- package/dist/components/Notify/components/NotifyCard.vue.d.ts.map +1 -1
- package/dist/components/Notify/components/NotifyCard.vue.js +2 -4
- package/dist/components/Notify/models/types.d.ts +3 -2
- package/dist/components/Select/WSelect.vue.d.ts +41 -188
- package/dist/components/Select/WSelect.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelect.vue.js +74 -66
- package/dist/components/Select/WSelectAsync.vue.d.ts +32 -207
- package/dist/components/Select/WSelectAsync.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelectAsync.vue.js +78 -60
- package/dist/components/Select/WSelectAsyncList.vue.d.ts +33 -111
- package/dist/components/Select/WSelectAsyncList.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelectAsyncSingle.vue.d.ts +24 -166
- package/dist/components/Select/WSelectAsyncSingle.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelectAsyncSingle.vue.js +93 -82
- package/dist/components/Select/WSelectSingle.vue.d.ts +25 -149
- package/dist/components/Select/WSelectSingle.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelectSingle.vue.js +84 -70
- package/dist/components/Select/components/SelectAsyncList.vue.d.ts +43 -133
- package/dist/components/Select/components/SelectAsyncList.vue.d.ts.map +1 -1
- package/dist/components/Select/components/SelectAsyncList.vue.js +7 -14
- package/dist/components/Select/components/SelectAsyncPrefix.vue.d.ts +37 -104
- package/dist/components/Select/components/SelectAsyncPrefix.vue.d.ts.map +1 -1
- package/dist/components/Select/components/SelectAsyncPrefixPage.vue.d.ts +37 -102
- package/dist/components/Select/components/SelectAsyncPrefixPage.vue.d.ts.map +1 -1
- package/dist/components/Select/components/SelectAsyncPrefixPage.vue.js +1 -2
- package/dist/components/Select/components/SelectOption.vue.d.ts +45 -132
- package/dist/components/Select/components/SelectOption.vue.d.ts.map +1 -1
- package/dist/components/Select/components/SelectOption.vue.js +12 -24
- package/dist/components/Select/components/SelectOptionPrefix.vue.d.ts +23 -52
- package/dist/components/Select/components/SelectOptionPrefix.vue.d.ts.map +1 -1
- package/dist/components/Select/types.d.ts +47 -0
- package/dist/components/Select/types.d.ts.map +1 -0
- package/dist/components/Skeleton/WSkeleton.vue.d.ts +1 -1
- package/dist/components/Skeleton/WSkeleton.vue.d.ts.map +1 -1
- package/dist/components/Spinner/WSpinner.vue.d.ts +1 -1
- package/dist/components/Spinner/WSpinner.vue.d.ts.map +1 -1
- package/dist/components/Tabs/WTabs.vue.d.ts +22 -24
- package/dist/components/Tabs/WTabs.vue.d.ts.map +1 -1
- package/dist/components/Tabs/WTabs.vue.js +6 -12
- package/dist/components/Tabs/WTabsColumns.vue.d.ts +3 -3
- package/dist/components/Tabs/WTabsColumns.vue.d.ts.map +1 -1
- package/dist/components/Tabs/components/TabItem.vue.d.ts +14 -12
- package/dist/components/Tabs/components/TabItem.vue.d.ts.map +1 -1
- package/dist/components/Tabs/components/TabItem.vue.js +3 -6
- package/dist/components/Tabs/models/injection.d.ts +2 -1
- package/dist/components/Tabs/models/injection.d.ts.map +1 -1
- package/dist/components/Tabs/use/useTabItemActiveListener.js +1 -2
- package/dist/components/Toggle/WToggle.vue.d.ts +19 -50
- package/dist/components/Toggle/WToggle.vue.d.ts.map +1 -1
- package/dist/components/Toggle/WToggle.vue.js +1 -2
- package/dist/components/Tooltip/WTooltip.vue.d.ts +15 -15
- package/dist/components/Tooltip/WTooltip.vue.d.ts.map +1 -1
- package/dist/components/Tooltip/WTooltip.vue.js +4 -8
- package/dist/components/Tooltip/WTooltipContainer.vue.d.ts +1 -1
- package/dist/components/Tooltip/WTooltipContainer.vue.d.ts.map +1 -1
- package/dist/components/Tooltip/WTooltipContainer.vue.js +1 -2
- package/dist/components/Tooltip/components/TooltipContainer.vue.d.ts +22 -19
- package/dist/components/Tooltip/components/TooltipContainer.vue.d.ts.map +1 -1
- package/dist/components/Tooltip/components/TooltipContainer.vue.js +5 -10
- package/dist/imports/componentsPlugin.d.ts +64 -63
- package/dist/imports/iconsSax.d.ts +3 -0
- package/dist/imports/iconsSax.d.ts.map +1 -1
- package/dist/imports/iconsSax.js +3 -0
- package/dist/main.d.ts +1 -0
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +1 -0
- package/dist/utils/DOMListenerContainer.js +2 -4
- package/dist/utils/Modal.d.ts +4 -3
- package/dist/utils/Modal.d.ts.map +1 -1
- package/dist/utils/Notify.d.ts +5 -4
- package/dist/utils/Notify.d.ts.map +1 -1
- package/dist/utils/Tooltip.d.ts +2 -1
- package/dist/utils/dateTime.d.ts.map +1 -1
- package/dist/utils/dateTime.js +28 -56
- package/dist/utils/useCopy.d.ts +8 -0
- package/dist/utils/useCopy.d.ts.map +1 -0
- package/dist/utils/useCopy.js +56 -0
- package/dist/utils/useDefaultQuery.d.ts +4 -3
- package/dist/utils/useDefaultQuery.d.ts.map +1 -1
- package/dist/utils/utils.d.ts.map +1 -1
- package/dist/utils/utils.js +10 -20
- package/package.json +40 -19
- package/tailwind-base/plugins/default.cjs +6 -0
- package/tailwind-base/theme/sizes.cjs +2 -0
@@ -1,82 +1,59 @@
|
|
1
|
-
import { defineComponent, ref, onMounted, onBeforeUnmount, openBlock,
|
2
|
-
import
|
3
|
-
import _sfc_main$1 from './components/InputActions.vue.js';
|
1
|
+
import { defineComponent, ref, onMounted, onBeforeUnmount, openBlock, createBlock, mergeProps, createSlots, withCtx, createElementVNode, normalizeClass, withModifiers, createElementBlock, resolveDynamicComponent, createCommentVNode, renderSlot, withKeys, createVNode, nextTick } from 'vue';
|
2
|
+
import _sfc_main$2 from './components/InputActions.vue.js';
|
4
3
|
import { Notify } from '../../utils/Notify.js';
|
5
|
-
import { numberFormatter, genId } from '../../utils/utils.js';
|
6
4
|
import { useTabActiveListener } from '../Tabs/use/useTabActiveListener.js';
|
5
|
+
import _sfc_main$1 from '../FieldWrapper/WFieldWrapper.vue.js';
|
7
6
|
|
8
7
|
const _hoisted_1 = {
|
9
8
|
key: 0,
|
10
|
-
class: "
|
11
|
-
};
|
12
|
-
const _hoisted_2 = { class: "grid grid-cols-[1fr,auto]" };
|
13
|
-
const _hoisted_3 = {
|
14
|
-
key: 0,
|
15
|
-
class: "relative isolate grid grid-cols-1"
|
16
|
-
};
|
17
|
-
const _hoisted_4 = {
|
18
|
-
key: 0,
|
19
|
-
class: "absolute top-0 left-0 h-full flex items-center justify-center px-3 text-description select-none"
|
20
|
-
};
|
21
|
-
const _hoisted_5 = {
|
22
|
-
key: 0,
|
23
|
-
class: "text-xs font-normal text-negative dark:text-negative-dark absolute right-0 top-full pt-0.5 text-end"
|
24
|
-
};
|
25
|
-
const _hoisted_6 = {
|
26
|
-
key: 1,
|
27
|
-
class: "text-xs font-normal text-description absolute right-0 top-full pt-0.5 whitespace-nowrap"
|
28
|
-
};
|
29
|
-
const _hoisted_7 = {
|
30
|
-
key: 2,
|
31
|
-
ref: "rightContainer",
|
32
|
-
class: "pl-4 flex gap-4 sm-not:flex-col"
|
9
|
+
class: "flex items-center w-11 h-full justify-center text-description select-none"
|
33
10
|
};
|
11
|
+
const _hoisted_2 = { class: "col-start-2 grid grid-cols-1 group/input" };
|
34
12
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
13
|
+
...{ inheritAttrs: false },
|
35
14
|
__name: "WInput",
|
36
15
|
props: {
|
37
|
-
modelValue: {
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
16
|
+
modelValue: {},
|
17
|
+
type: {},
|
18
|
+
textarea: { type: Boolean },
|
19
|
+
resize: { type: Boolean },
|
20
|
+
placeholder: {},
|
21
|
+
icon: {},
|
22
|
+
size: { default: 10 },
|
23
|
+
maxLength: {},
|
24
|
+
name: {},
|
43
25
|
autocomplete: { default: "off" },
|
44
26
|
autofocus: { type: Boolean },
|
45
|
-
textarea: { type: Boolean },
|
46
|
-
disabled: { type: Boolean },
|
47
|
-
allowClear: { type: Boolean },
|
48
|
-
errorMessage: { default: void 0 },
|
49
27
|
readonly: { type: Boolean },
|
50
|
-
|
51
|
-
maxLength: { default: void 0 },
|
28
|
+
disabledActions: { type: Boolean },
|
52
29
|
loading: { type: Boolean },
|
53
|
-
required: { type: Boolean },
|
54
|
-
hideInput: { type: Boolean },
|
55
|
-
skeleton: { type: Boolean },
|
56
|
-
size: { default: 10 },
|
57
|
-
mono: { type: Boolean },
|
58
|
-
textSecure: { type: Boolean },
|
59
30
|
spellcheck: { type: Boolean },
|
60
|
-
placeholderSecure: { type: Boolean },
|
61
31
|
customBackspaceHandle: { type: Boolean },
|
32
|
+
textSecure: { type: Boolean },
|
33
|
+
placeholderSecure: { type: Boolean },
|
34
|
+
allowClear: { type: Boolean },
|
35
|
+
allowPaste: { type: Boolean },
|
36
|
+
hideInput: { type: Boolean },
|
37
|
+
title: {},
|
38
|
+
description: {},
|
39
|
+
errorMessage: {},
|
40
|
+
tooltipText: {},
|
41
|
+
mono: { type: Boolean },
|
62
42
|
hasChanges: { type: Boolean },
|
63
|
-
|
43
|
+
skeleton: { type: Boolean },
|
44
|
+
disabled: { type: Boolean },
|
45
|
+
required: { type: Boolean },
|
64
46
|
noMargin: { type: Boolean },
|
65
|
-
|
66
|
-
allowPaste: { type: Boolean }
|
47
|
+
allowCopy: { type: Boolean }
|
67
48
|
},
|
68
49
|
emits: ["update:modelValue", "keypress:enter", "keypress:up", "keypress:down", "keypress:delete", "keypress:backspace", "click:clear", "focus", "blur", "click", "mousedown", "click:suffix", "select:input", "paste"],
|
69
50
|
setup(__props, { expose: __expose, emit: __emit }) {
|
70
51
|
const props = __props;
|
71
52
|
const emit = __emit;
|
72
|
-
const inputId = `w-input-${genId()}`;
|
73
53
|
const input = ref();
|
74
|
-
const isFocused = ref(false);
|
75
54
|
const isSecureVisible = ref(false);
|
76
|
-
const paddingRight = ref(0);
|
77
55
|
const updateModelValue = (value) => {
|
78
|
-
if (props.loading || props.disabled || props.readonly)
|
79
|
-
return;
|
56
|
+
if (props.loading || props.disabled || props.readonly) return;
|
80
57
|
if (props.type === "number") {
|
81
58
|
emit("update:modelValue", typeof value === "string" && value.length ? Number.parseFloat(value) : void 0);
|
82
59
|
} else {
|
@@ -84,19 +61,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
84
61
|
}
|
85
62
|
};
|
86
63
|
const handleBackspace = (event) => {
|
87
|
-
if (!props.customBackspaceHandle)
|
88
|
-
return;
|
64
|
+
if (!props.customBackspaceHandle) return;
|
89
65
|
event.preventDefault();
|
90
66
|
event.stopPropagation();
|
91
67
|
const target = event.target;
|
92
68
|
const value = target?.value;
|
93
|
-
if (!value || target.selectionStart === null || target.selectionEnd === null)
|
94
|
-
return;
|
69
|
+
if (!value || target.selectionStart === null || target.selectionEnd === null) return;
|
95
70
|
let substring;
|
96
71
|
let selectionStart;
|
97
72
|
if (target.selectionStart === target.selectionEnd) {
|
98
|
-
if (target.selectionStart === 0)
|
99
|
-
return;
|
73
|
+
if (target.selectionStart === 0) return;
|
100
74
|
selectionStart = target.selectionStart - 1;
|
101
75
|
substring = value.substring(0, selectionStart) + value.substring(target.selectionEnd);
|
102
76
|
} else {
|
@@ -113,33 +87,26 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
113
87
|
if (props.maxLength && typeof value === "string" && value.length > props.maxLength) {
|
114
88
|
event.preventDefault();
|
115
89
|
const substring = value.substring(0, props.maxLength);
|
116
|
-
if (target)
|
117
|
-
target.value = substring;
|
90
|
+
if (target) target.value = substring;
|
118
91
|
updateModelValue(substring);
|
119
92
|
return;
|
120
93
|
}
|
121
94
|
updateModelValue(value);
|
122
95
|
};
|
123
96
|
const clearValue = () => {
|
124
|
-
if (props.disabled || props.readonly)
|
125
|
-
|
126
|
-
updateModelValue(void 0);
|
97
|
+
if (props.disabled || props.readonly) return;
|
98
|
+
if (typeof props.modelValue === "string") updateModelValue("");
|
99
|
+
else updateModelValue(void 0);
|
127
100
|
input.value?.focus();
|
128
101
|
emit("click:clear");
|
129
102
|
};
|
130
103
|
const focus = () => {
|
131
|
-
if (props.disabled || props.readonly)
|
132
|
-
return;
|
133
|
-
if (isFocused.value)
|
134
|
-
return;
|
104
|
+
if (props.disabled || props.readonly) return;
|
135
105
|
input.value?.focus();
|
136
106
|
};
|
137
107
|
const blur = () => {
|
138
108
|
input.value?.blur();
|
139
109
|
};
|
140
|
-
const setIsFocused = (value) => {
|
141
|
-
isFocused.value = value;
|
142
|
-
};
|
143
110
|
const checkPermission = async () => {
|
144
111
|
const result = await navigator.permissions.query({ name: "clipboard-read" });
|
145
112
|
return result.state === "granted" || result.state === "prompt";
|
@@ -179,11 +146,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
179
146
|
};
|
180
147
|
let timeout;
|
181
148
|
const autofocusDebounced = () => {
|
182
|
-
if (timeout)
|
183
|
-
clearTimeout(timeout);
|
149
|
+
if (timeout) clearTimeout(timeout);
|
184
150
|
timeout = setTimeout(() => {
|
185
|
-
if (props.autofocus)
|
186
|
-
focus();
|
151
|
+
if (props.autofocus) focus();
|
187
152
|
timeout = void 0;
|
188
153
|
}, 250);
|
189
154
|
};
|
@@ -191,8 +156,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
191
156
|
useTabActiveListener(autofocusDebounced);
|
192
157
|
}
|
193
158
|
onMounted(() => {
|
194
|
-
if (props.autofocus)
|
195
|
-
autofocusDebounced();
|
159
|
+
if (props.autofocus) autofocusDebounced();
|
196
160
|
});
|
197
161
|
onBeforeUnmount(() => {
|
198
162
|
if (timeout) {
|
@@ -205,80 +169,51 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
205
169
|
blur
|
206
170
|
});
|
207
171
|
return (_ctx, _cache) => {
|
208
|
-
return openBlock(),
|
209
|
-
class:
|
210
|
-
|
211
|
-
|
212
|
-
}
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
"
|
220
|
-
}])
|
172
|
+
return openBlock(), createBlock(_sfc_main$1, mergeProps(props, {
|
173
|
+
class: _ctx.$attrs.class,
|
174
|
+
onClick: _cache[10] || (_cache[10] = ($event) => _ctx.$emit("click:suffix", $event))
|
175
|
+
}), createSlots({
|
176
|
+
field: withCtx(({ id, setFocused, focused }) => [
|
177
|
+
createElementVNode("div", {
|
178
|
+
class: normalizeClass(["relative border border-solid rounded-xl bg-default dark:bg-default-dark transition-colors duration-75 overflow-hidden min-h-11 grid grid-cols-[auto,1fr,auto]", {
|
179
|
+
"focus-within:border-primary-default dark:focus-within:border-primary-dark": !_ctx.disabled && !_ctx.readonly,
|
180
|
+
"cursor-text": !_ctx.disabled,
|
181
|
+
"border-negative dark:border-negative-dark": _ctx.errorMessage,
|
182
|
+
"border-gray-300 dark:border-gray-700": !_ctx.disabled,
|
183
|
+
"border-gray-300/50 dark:border-gray-700/50": _ctx.disabled
|
184
|
+
}]),
|
185
|
+
onClick: focus,
|
186
|
+
onMousedown: _cache[9] || (_cache[9] = withModifiers(() => {
|
187
|
+
}, ["prevent"]))
|
221
188
|
}, [
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
createVNode(Transition, {
|
227
|
-
"enter-active-class": "transition-opacity",
|
228
|
-
"leave-active-class": "transition-opacity",
|
229
|
-
"enter-from-class": "opacity-0",
|
230
|
-
"leave-to-class": "opacity-0"
|
231
|
-
}, {
|
232
|
-
default: withCtx(() => [
|
233
|
-
_ctx.required ? (openBlock(), createElementBlock("span", _hoisted_1, " * ")) : createCommentVNode("", true)
|
234
|
-
]),
|
235
|
-
_: 1
|
236
|
-
})
|
237
|
-
], 64)) : (openBlock(), createBlock(WSkeleton, {
|
238
|
-
key: 1,
|
239
|
-
class: "h-4 w-16"
|
240
|
-
}))
|
241
|
-
], 2)) : createCommentVNode("", true),
|
242
|
-
createElementVNode("div", _hoisted_2, [
|
243
|
-
!_ctx.skeleton ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
189
|
+
_ctx.icon ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
190
|
+
(openBlock(), createBlock(resolveDynamicComponent(_ctx.icon), { class: "square-5" }))
|
191
|
+
])) : createCommentVNode("", true),
|
192
|
+
createElementVNode("div", _hoisted_2, [
|
244
193
|
createElementVNode("div", {
|
245
|
-
class: normalizeClass(["
|
246
|
-
"
|
247
|
-
|
248
|
-
"pl-1 py-1 gap-1": _ctx.$slots.suffix?.()?.length,
|
249
|
-
"pl-11": _ctx.icon,
|
250
|
-
"border-negative dark:border-negative-dark": _ctx.errorMessage,
|
251
|
-
"border-gray-300 dark:border-gray-700": !_ctx.disabled,
|
252
|
-
"border-gray-300/50 dark:border-gray-700/50": _ctx.disabled
|
253
|
-
}]),
|
254
|
-
style: normalizeStyle({ paddingRight: paddingRight.value + "px" }),
|
255
|
-
onClick: focus,
|
256
|
-
onMousedown: _cache[13] || (_cache[13] = withModifiers(() => {
|
257
|
-
}, ["prevent"]))
|
194
|
+
class: normalizeClass(["flex flex-wrap", {
|
195
|
+
"py-1 gap-1 first:pl-1 last:pr-1": _ctx.$slots.prefix
|
196
|
+
}])
|
258
197
|
}, [
|
259
|
-
_ctx.icon ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
260
|
-
(openBlock(), createBlock(resolveDynamicComponent(_ctx.icon), { class: "w-5 h-5" }))
|
261
|
-
])) : createCommentVNode("", true),
|
262
198
|
renderSlot(_ctx.$slots, "prefix"),
|
263
199
|
(openBlock(), createBlock(resolveDynamicComponent(_ctx.textarea ? "textarea" : "input"), {
|
264
|
-
id
|
200
|
+
id,
|
265
201
|
ref_key: "input",
|
266
202
|
ref: input,
|
267
203
|
class: normalizeClass(["text-base font-normal outline-0 border-none bg-[inherit] flex-1 max-w-full w-input disabled:opacity-80 disabled:cursor-not-allowed placeholder:text-gray-400 dark:placeholder:text-gray-500 appearance-none", {
|
268
|
-
"min-h-[var(--textarea-height,
|
204
|
+
"min-h-[var(--textarea-height,10rem)] w-full py-3": _ctx.textarea,
|
269
205
|
"resize-y": _ctx.resize && _ctx.textarea,
|
270
206
|
"resize-none": !_ctx.resize && _ctx.textarea,
|
271
|
-
"h-[var(--input-height,
|
272
|
-
"h-[var(--input-height,
|
273
|
-
"
|
274
|
-
"pl-3": !_ctx.hideInput && !_ctx.textarea && !_ctx.icon,
|
207
|
+
"h-[var(--input-height,2.625rem)]": !_ctx.textarea && !_ctx.$slots.suffix,
|
208
|
+
"h-[var(--input-height,2.125rem)]": !_ctx.textarea && _ctx.$slots.suffix,
|
209
|
+
"group-first/input:pl-3 first:pl-0 [&:not(:first-child)]:pl-3 group-last/input:pr-3": !_ctx.hideInput,
|
275
210
|
"w-0 max-w-0 p-0 absolute": _ctx.hideInput,
|
276
211
|
"font-mono": _ctx.mono,
|
277
212
|
"text-secure": _ctx.textSecure && !isSecureVisible.value,
|
278
213
|
"text-black-default dark:text-gray-200": !_ctx.disabled,
|
279
214
|
"text-black-default/50 dark:text-gray-200/50": _ctx.disabled
|
280
215
|
}]),
|
281
|
-
value: _ctx.placeholderSecure && _ctx.modelValue === void 0 && !
|
216
|
+
value: _ctx.placeholderSecure && _ctx.modelValue === void 0 && !focused ? "******" : _ctx.modelValue,
|
282
217
|
placeholder: _ctx.placeholder,
|
283
218
|
type: _ctx.type ?? "text",
|
284
219
|
name: _ctx.name,
|
@@ -297,103 +232,78 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
297
232
|
handleBackspace($event);
|
298
233
|
}, ["exact", "stop"]), ["delete"]))
|
299
234
|
],
|
300
|
-
onFocus:
|
235
|
+
onFocus: ($event) => {
|
301
236
|
_ctx.$emit("focus", $event);
|
302
|
-
|
303
|
-
}
|
304
|
-
onBlur:
|
237
|
+
setFocused(true);
|
238
|
+
},
|
239
|
+
onBlur: ($event) => {
|
305
240
|
_ctx.$emit("blur", $event);
|
306
|
-
|
241
|
+
setFocused(false);
|
307
242
|
isSecureVisible.value = false;
|
308
|
-
}
|
309
|
-
onClick: _cache[
|
310
|
-
onMousedown: _cache[
|
311
|
-
onSelect: _cache[
|
312
|
-
}, null, 40, ["class", "value", "placeholder", "type", "name", "disabled", "readonly", "autocomplete", "size", "spellcheck"]))
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
}, createSlots({ _: 2 }, [
|
335
|
-
_ctx.$slots.suffix?.()?.length ? {
|
336
|
-
name: "default",
|
337
|
-
fn: withCtx(() => [
|
338
|
-
renderSlot(_ctx.$slots, "suffix")
|
339
|
-
]),
|
340
|
-
key: "0"
|
341
|
-
} : void 0
|
342
|
-
]), 1032, ["loading", "allow-clear", "disabled", "readonly", "text-secure", "is-secure-visible", "allow-paste"])
|
343
|
-
], 38),
|
344
|
-
createVNode(Transition, {
|
345
|
-
"enter-active-class": "transition-opacity",
|
346
|
-
"leave-active-class": "transition-opacity",
|
347
|
-
"enter-from-class": "opacity-0",
|
348
|
-
"leave-to-class": "opacity-0"
|
349
|
-
}, {
|
350
|
-
default: withCtx(() => [
|
351
|
-
_ctx.hasChanges ? (openBlock(), createElementBlock("span", {
|
352
|
-
key: 0,
|
353
|
-
class: normalizeClass(["square-2 rounded-full transition-colors absolute top-0 right-0 z-10", {
|
354
|
-
"bg-info dark:bg-info-dark": isFocused.value || !_ctx.errorMessage,
|
355
|
-
"bg-negative dark:bg-negative-dark": !isFocused.value && _ctx.errorMessage
|
356
|
-
}])
|
357
|
-
}, null, 2)) : createCommentVNode("", true)
|
358
|
-
]),
|
359
|
-
_: 1
|
243
|
+
},
|
244
|
+
onClick: _cache[4] || (_cache[4] = ($event) => _ctx.$emit("click", $event)),
|
245
|
+
onMousedown: _cache[5] || (_cache[5] = withModifiers(($event) => _ctx.$emit("mousedown", $event), ["stop"])),
|
246
|
+
onSelect: _cache[6] || (_cache[6] = withModifiers(($event) => _ctx.$emit("select:input", $event), ["stop"]))
|
247
|
+
}, null, 40, ["id", "class", "value", "placeholder", "type", "name", "disabled", "readonly", "autocomplete", "size", "spellcheck", "onFocus", "onBlur"]))
|
248
|
+
], 2)
|
249
|
+
]),
|
250
|
+
createVNode(_sfc_main$2, {
|
251
|
+
"model-value": _ctx.modelValue,
|
252
|
+
loading: _ctx.loading,
|
253
|
+
"allow-clear": _ctx.allowClear && _ctx.modelValue !== "",
|
254
|
+
disabled: _ctx.disabled || _ctx.disabledActions,
|
255
|
+
readonly: _ctx.readonly,
|
256
|
+
"text-secure": _ctx.textSecure,
|
257
|
+
"is-secure-visible": isSecureVisible.value,
|
258
|
+
"allow-paste": _ctx.allowPaste,
|
259
|
+
"allow-copy": _ctx.allowCopy,
|
260
|
+
focused,
|
261
|
+
"onClick:clear": clearValue,
|
262
|
+
"onClick:slot": ($event) => {
|
263
|
+
focused ? blur() : focus();
|
264
|
+
_ctx.$emit("click:suffix", $event);
|
265
|
+
},
|
266
|
+
"onShow:secure": _cache[7] || (_cache[7] = ($event) => {
|
267
|
+
isSecureVisible.value = true;
|
268
|
+
_ctx.$emit("click", $event);
|
360
269
|
}),
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
_ctx.errorMessage ? (openBlock(), createElementBlock("div", _hoisted_5, toDisplayString(_ctx.errorMessage), 1)) : _ctx.maxLength !== void 0 && isFocused.value ? (openBlock(), createElementBlock("div", _hoisted_6, toDisplayString(unref(numberFormatter).format(String(_ctx.modelValue || "").length)) + " / " + toDisplayString(unref(numberFormatter).format(_ctx.maxLength)), 1)) : createCommentVNode("", true)
|
270
|
+
"onHide:secure": _cache[8] || (_cache[8] = ($event) => isSecureVisible.value = false),
|
271
|
+
"onClick:paste": paste
|
272
|
+
}, createSlots({ _: 2 }, [
|
273
|
+
_ctx.$slots.suffix ? {
|
274
|
+
name: "default",
|
275
|
+
fn: withCtx(() => [
|
276
|
+
renderSlot(_ctx.$slots, "suffix")
|
369
277
|
]),
|
370
|
-
|
371
|
-
}
|
372
|
-
])
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
_ctx.$slots.right?.()?.length ? (openBlock(), createElementBlock("div", _hoisted_7, [
|
382
|
-
renderSlot(_ctx.$slots, "right")
|
383
|
-
], 512)) : createCommentVNode("", true)
|
278
|
+
key: "0"
|
279
|
+
} : void 0
|
280
|
+
]), 1032, ["model-value", "loading", "allow-clear", "disabled", "readonly", "text-secure", "is-secure-visible", "allow-paste", "allow-copy", "focused", "onClick:slot"])
|
281
|
+
], 34)
|
282
|
+
]),
|
283
|
+
_: 2
|
284
|
+
}, [
|
285
|
+
_ctx.$slots.title ? {
|
286
|
+
name: "title",
|
287
|
+
fn: withCtx(() => [
|
288
|
+
renderSlot(_ctx.$slots, "title")
|
384
289
|
]),
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
290
|
+
key: "0"
|
291
|
+
} : void 0,
|
292
|
+
_ctx.$slots.subtitle ? {
|
293
|
+
name: "subtitle",
|
294
|
+
fn: withCtx(() => [
|
295
|
+
renderSlot(_ctx.$slots, "subtitle")
|
296
|
+
]),
|
297
|
+
key: "1"
|
298
|
+
} : void 0,
|
299
|
+
_ctx.$slots.right ? {
|
300
|
+
name: "right",
|
301
|
+
fn: withCtx(() => [
|
302
|
+
renderSlot(_ctx.$slots, "right")
|
303
|
+
]),
|
304
|
+
key: "2"
|
305
|
+
} : void 0
|
306
|
+
]), 1040, ["class"]);
|
397
307
|
};
|
398
308
|
}
|
399
309
|
});
|
@@ -1,104 +1,26 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
disabled?: boolean | undefined;
|
8
|
-
loading?: boolean | undefined;
|
9
|
-
"onUpdate:modelValue"?: ((value: (Type extends "number" ? number : string) | undefined) => any) | undefined;
|
10
|
-
modelValue?: (Type extends "number" ? number : string) | undefined;
|
11
|
-
resize?: boolean | undefined;
|
12
|
-
skeleton?: boolean | undefined;
|
13
|
-
description?: string | undefined;
|
14
|
-
name?: string | undefined;
|
15
|
-
placeholder?: string | undefined;
|
16
|
-
errorMessage?: string | undefined;
|
17
|
-
hasChanges?: boolean | undefined;
|
18
|
-
validate?: ValidateFn | ValidateFn[] | undefined;
|
19
|
-
allowPaste?: boolean | undefined;
|
20
|
-
textSecure?: boolean | undefined;
|
21
|
-
maxLength?: number | undefined;
|
22
|
-
mono?: boolean | undefined;
|
23
|
-
placeholderSecure?: boolean | undefined;
|
24
|
-
noMargin?: boolean | undefined;
|
25
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
|
26
|
-
attrs: any;
|
27
|
-
slots: {
|
28
|
-
title?(_: {}): any;
|
29
|
-
right?(_: {}): any;
|
30
|
-
};
|
31
|
-
emit: (e: 'update:modelValue', value: (Type extends "number" ? number : string) | undefined) => void;
|
32
|
-
} | undefined, __VLS_expose?: ((exposed: import('vue').ShallowUnwrapRef<{}>) => void) | undefined, __VLS_setup?: Promise<{
|
33
|
-
props: {
|
34
|
-
type?: Type | undefined;
|
35
|
-
required?: boolean | undefined;
|
36
|
-
textarea?: boolean | undefined;
|
37
|
-
title?: string | undefined;
|
38
|
-
icon?: SVGComponent | undefined;
|
39
|
-
disabled?: boolean | undefined;
|
40
|
-
loading?: boolean | undefined;
|
1
|
+
import { InputAsyncProps } from './types';
|
2
|
+
|
3
|
+
declare const _default: <Type extends InputType = "text">(__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: (Type extends "number" ? number : string) | undefined) => any) | undefined;
|
6
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & Readonly<import('vue').ExtractPropTypes<{}>> & {
|
41
7
|
"onUpdate:modelValue"?: ((value: (Type extends "number" ? number : string) | undefined) => any) | undefined;
|
42
|
-
|
43
|
-
resize?: boolean | undefined;
|
44
|
-
skeleton?: boolean | undefined;
|
45
|
-
description?: string | undefined;
|
46
|
-
name?: string | undefined;
|
47
|
-
placeholder?: string | undefined;
|
48
|
-
errorMessage?: string | undefined;
|
49
|
-
hasChanges?: boolean | undefined;
|
50
|
-
validate?: ValidateFn | ValidateFn[] | undefined;
|
51
|
-
allowPaste?: boolean | undefined;
|
52
|
-
textSecure?: boolean | undefined;
|
53
|
-
maxLength?: number | undefined;
|
54
|
-
mono?: boolean | undefined;
|
55
|
-
placeholderSecure?: boolean | undefined;
|
56
|
-
noMargin?: boolean | undefined;
|
57
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
8
|
+
}, never>, "onUpdate:modelValue"> & InputAsyncProps<Type>> & import('vue').PublicProps;
|
58
9
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
59
10
|
attrs: any;
|
60
|
-
slots: {
|
11
|
+
slots: ReturnType<() => {
|
61
12
|
title?(_: {}): any;
|
13
|
+
subtitle?(_: {}): any;
|
62
14
|
right?(_: {}): any;
|
63
|
-
}
|
64
|
-
emit: (e:
|
65
|
-
}>) => import(
|
15
|
+
}>;
|
16
|
+
emit: ((e: "update:modelValue", value: (Type extends "number" ? number : string) | undefined) => void) & {};
|
17
|
+
}>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
66
18
|
[key: string]: any;
|
67
19
|
}> & {
|
68
|
-
__ctx?:
|
69
|
-
props: {
|
70
|
-
type?: Type | undefined;
|
71
|
-
required?: boolean | undefined;
|
72
|
-
textarea?: boolean | undefined;
|
73
|
-
title?: string | undefined;
|
74
|
-
icon?: SVGComponent | undefined;
|
75
|
-
disabled?: boolean | undefined;
|
76
|
-
loading?: boolean | undefined;
|
77
|
-
"onUpdate:modelValue"?: ((value: (Type extends "number" ? number : string) | undefined) => any) | undefined;
|
78
|
-
modelValue?: (Type extends "number" ? number : string) | undefined;
|
79
|
-
resize?: boolean | undefined;
|
80
|
-
skeleton?: boolean | undefined;
|
81
|
-
description?: string | undefined;
|
82
|
-
name?: string | undefined;
|
83
|
-
placeholder?: string | undefined;
|
84
|
-
errorMessage?: string | undefined;
|
85
|
-
hasChanges?: boolean | undefined;
|
86
|
-
validate?: ValidateFn | ValidateFn[] | undefined;
|
87
|
-
allowPaste?: boolean | undefined;
|
88
|
-
textSecure?: boolean | undefined;
|
89
|
-
maxLength?: number | undefined;
|
90
|
-
mono?: boolean | undefined;
|
91
|
-
placeholderSecure?: boolean | undefined;
|
92
|
-
noMargin?: boolean | undefined;
|
93
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
94
|
-
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
95
|
-
attrs: any;
|
96
|
-
slots: {
|
97
|
-
title?(_: {}): any;
|
98
|
-
right?(_: {}): any;
|
99
|
-
};
|
100
|
-
emit: (e: 'update:modelValue', value: (Type extends "number" ? number : string) | undefined) => void;
|
101
|
-
} | undefined;
|
20
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
102
21
|
};
|
103
22
|
export default _default;
|
23
|
+
type __VLS_Prettify<T> = {
|
24
|
+
[K in keyof T]: T[K];
|
25
|
+
} & {};
|
104
26
|
//# sourceMappingURL=WInputAsync.vue.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WInputAsync.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Input/WInputAsync.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WInputAsync.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Input/WInputAsync.vue"],"names":[],"mappings":"AA+NA,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,SAAS,CAAA;yBAI3B,IAAI,SAAS,SAAS,wBACzB,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;WA4bxD,cAAc,CAAC;;;;6DAAyD,CAAC,4BAA2B;oBAC3F,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;WACH,UAAU;uBAxCQ,GAAG;0BACA,GAAG;uBACN,GAAG;MAsCY;UAClC,KArbH,mBAAmB,SAAS,4CAAa,SAAS,KAAG,IAAI,MAqbpB;;;;YAGC,OAAO,CAAC,OAAO,WAAW,CAAC;;AAtcvE,wBAsc4E;AAM5E,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|