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,4 +1,4 @@
|
|
1
|
-
import { defineComponent, ref, computed, openBlock, createElementBlock, createBlock, resolveDynamicComponent, unref, mergeProps, withCtx, createVNode,
|
1
|
+
import { defineComponent, ref, computed, openBlock, createElementBlock, normalizeClass, createBlock, resolveDynamicComponent, unref, mergeProps, withCtx, createVNode, createSlots, renderSlot, createCommentVNode, createElementVNode, Fragment, renderList, createTextVNode, toDisplayString } from 'vue';
|
2
2
|
import _sfc_main$2 from '../DropdownMenu/WDropdownMenu.vue.js';
|
3
3
|
import _sfc_main$1 from '../BottomSheet/WBottomSheet.vue.js';
|
4
4
|
import _sfc_main$3 from './WInput.vue.js';
|
@@ -8,35 +8,48 @@ import { HorizontalAlign } from '../../utils/HorizontalAlign.js';
|
|
8
8
|
import WSkeleton from '../Skeleton/WSkeleton.vue.js';
|
9
9
|
|
10
10
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
11
|
+
...{ inheritAttrs: false },
|
11
12
|
__name: "WInputSuggest",
|
12
13
|
props: {
|
13
|
-
modelValue: {},
|
14
|
-
title: {},
|
15
14
|
mobileTitle: {},
|
16
|
-
|
17
|
-
|
15
|
+
persist: { type: Boolean },
|
16
|
+
modelValue: {},
|
17
|
+
type: {},
|
18
|
+
textarea: { type: Boolean },
|
19
|
+
resize: { type: Boolean },
|
20
|
+
placeholder: {},
|
21
|
+
icon: {},
|
22
|
+
size: {},
|
18
23
|
maxLength: {},
|
24
|
+
name: {},
|
25
|
+
autocomplete: {},
|
26
|
+
autofocus: { type: Boolean },
|
27
|
+
readonly: { type: Boolean },
|
28
|
+
disabledActions: { type: Boolean },
|
29
|
+
loading: { type: Boolean },
|
30
|
+
spellcheck: { type: Boolean },
|
31
|
+
customBackspaceHandle: { type: Boolean },
|
32
|
+
textSecure: { type: Boolean },
|
33
|
+
placeholderSecure: { type: Boolean },
|
19
34
|
allowClear: { type: Boolean },
|
35
|
+
allowPaste: { type: Boolean },
|
20
36
|
hideInput: { type: Boolean },
|
21
|
-
|
22
|
-
|
23
|
-
skeleton: { type: Boolean },
|
24
|
-
persist: { type: Boolean },
|
25
|
-
size: {},
|
37
|
+
title: {},
|
38
|
+
description: {},
|
26
39
|
errorMessage: {},
|
27
|
-
|
40
|
+
tooltipText: {},
|
41
|
+
mono: { type: Boolean },
|
28
42
|
hasChanges: { type: Boolean },
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
type: {},
|
33
|
-
horizontalAlign: {},
|
34
|
-
contentMaxHeight: {},
|
35
|
-
contentMaxWidth: {},
|
43
|
+
skeleton: { type: Boolean },
|
44
|
+
disabled: { type: Boolean },
|
45
|
+
required: { type: Boolean },
|
36
46
|
noMargin: { type: Boolean },
|
37
|
-
|
38
|
-
|
39
|
-
|
47
|
+
allowCopy: { type: Boolean },
|
48
|
+
teleport: { type: Boolean },
|
49
|
+
noZIndex: { type: Boolean },
|
50
|
+
maxHeight: { default: 320 },
|
51
|
+
maxWidth: { default: 600 },
|
52
|
+
horizontalAlign: { default: HorizontalAlign.FILL }
|
40
53
|
},
|
41
54
|
emits: ["update:modelValue", "keypress:enter", "keypress:up", "keypress:down", "keypress:delete", "open", "close", "click:clear", "focus", "blur"],
|
42
55
|
setup(__props, { expose: __expose, emit: __emit }) {
|
@@ -49,8 +62,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
49
62
|
const content = ref();
|
50
63
|
const isDisabled = computed(() => props.readonly || props.disabled);
|
51
64
|
const open = () => {
|
52
|
-
if (isDisabled.value)
|
53
|
-
return;
|
65
|
+
if (isDisabled.value) return;
|
54
66
|
isOpen.value = true;
|
55
67
|
emit("open");
|
56
68
|
};
|
@@ -59,8 +71,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
59
71
|
emit("close");
|
60
72
|
};
|
61
73
|
const focus = () => {
|
62
|
-
if (isMobile)
|
63
|
-
open();
|
74
|
+
if (isMobile) open();
|
64
75
|
input.value?.focus();
|
65
76
|
};
|
66
77
|
const blur = () => {
|
@@ -76,7 +87,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
76
87
|
updateDropdown
|
77
88
|
});
|
78
89
|
return (_ctx, _cache) => {
|
79
|
-
return openBlock(), createElementBlock("div",
|
90
|
+
return openBlock(), createElementBlock("div", {
|
91
|
+
class: normalizeClass(_ctx.$attrs.class)
|
92
|
+
}, [
|
80
93
|
(openBlock(), createBlock(resolveDynamicComponent(unref(isMobile) ? _sfc_main$1 : _sfc_main$2), mergeProps({
|
81
94
|
ref_key: "dropdownMenu",
|
82
95
|
ref: dropdownMenu
|
@@ -85,40 +98,27 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
85
98
|
onClose: close
|
86
99
|
} : {
|
87
100
|
isOpen: isOpen.value,
|
88
|
-
maxHeight: _ctx.
|
89
|
-
maxWidth: _ctx.
|
90
|
-
horizontalAlign: _ctx.horizontalAlign
|
101
|
+
maxHeight: _ctx.maxHeight,
|
102
|
+
maxWidth: _ctx.maxWidth,
|
103
|
+
horizontalAlign: _ctx.horizontalAlign,
|
91
104
|
updateAlign: true,
|
92
105
|
teleport: _ctx.teleport
|
93
106
|
}), {
|
94
107
|
toggle: withCtx(({ unclickable }) => [
|
95
|
-
createVNode(_sfc_main$3, {
|
108
|
+
createVNode(_sfc_main$3, mergeProps({
|
96
109
|
ref_key: "input",
|
97
|
-
ref: input
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
"max-length": _ctx.maxLength,
|
102
|
-
loading: _ctx.loading,
|
103
|
-
"hide-input": _ctx.hideInput,
|
110
|
+
ref: input
|
111
|
+
}, {
|
112
|
+
...props,
|
113
|
+
title: unclickable ? _ctx.mobileTitle ?? _ctx.title : _ctx.title,
|
104
114
|
readonly: _ctx.readonly || unclickable,
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
required: _ctx.required,
|
109
|
-
disabled: _ctx.disabled,
|
110
|
-
"has-changes": _ctx.hasChanges,
|
111
|
-
"allow-clear": _ctx.allowClear,
|
112
|
-
icon: _ctx.icon,
|
113
|
-
placeholder: _ctx.placeholder,
|
114
|
-
"no-margin": _ctx.noMargin,
|
115
|
-
"allow-paste": _ctx.allowPaste,
|
116
|
-
mono: _ctx.mono,
|
117
|
-
autofocus: _ctx.autofocus,
|
118
|
-
class: normalizeClass({
|
115
|
+
description: void 0
|
116
|
+
}, {
|
117
|
+
class: {
|
119
118
|
"cursor-pointer": !_ctx.disabled,
|
120
|
-
"cursor-not-allowed": _ctx.disabled
|
121
|
-
|
119
|
+
"cursor-not-allowed": _ctx.disabled,
|
120
|
+
"mb-3": unref(isMobile) && !unclickable
|
121
|
+
},
|
122
122
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => !_ctx.loading && _ctx.$emit("update:modelValue", $event)),
|
123
123
|
"onKeypress:enter": _cache[1] || (_cache[1] = ($event) => _ctx.$emit("keypress:enter", $event)),
|
124
124
|
"onKeypress:up": _cache[2] || (_cache[2] = ($event) => _ctx.$emit("keypress:up", $event)),
|
@@ -135,7 +135,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
135
135
|
onClick: ($event) => unref(isMobile) && unclickable && open(),
|
136
136
|
"onClick:suffix": ($event) => unref(isMobile) && unclickable && open(),
|
137
137
|
"onClick:clear": _cache[5] || (_cache[5] = ($event) => _ctx.$emit("click:clear"))
|
138
|
-
}, createSlots({
|
138
|
+
}), createSlots({
|
139
139
|
prefix: withCtx(() => [
|
140
140
|
renderSlot(_ctx.$slots, "prefix", { unclickable })
|
141
141
|
]),
|
@@ -147,14 +147,28 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
147
147
|
]),
|
148
148
|
_: 2
|
149
149
|
}, [
|
150
|
+
_ctx.$slots.title ? {
|
151
|
+
name: "title",
|
152
|
+
fn: withCtx(() => [
|
153
|
+
renderSlot(_ctx.$slots, "title")
|
154
|
+
]),
|
155
|
+
key: "0"
|
156
|
+
} : void 0,
|
157
|
+
_ctx.$slots.subtitle ? {
|
158
|
+
name: "subtitle",
|
159
|
+
fn: withCtx(() => [
|
160
|
+
renderSlot(_ctx.$slots, "subtitle")
|
161
|
+
]),
|
162
|
+
key: "1"
|
163
|
+
} : void 0,
|
150
164
|
_ctx.$slots.right?.()?.length ? {
|
151
165
|
name: "right",
|
152
166
|
fn: withCtx(() => [
|
153
167
|
renderSlot(_ctx.$slots, "right")
|
154
168
|
]),
|
155
|
-
key: "
|
169
|
+
key: "2"
|
156
170
|
} : void 0
|
157
|
-
]),
|
171
|
+
]), 1040, ["class", "onFocus", "onBlur", "onClick", "onClick:suffix"])
|
158
172
|
]),
|
159
173
|
content: withCtx((contentScope) => [
|
160
174
|
createElementVNode("div", {
|
@@ -187,7 +201,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
187
201
|
createTextVNode(toDisplayString(_ctx.description), 1)
|
188
202
|
], 64))
|
189
203
|
], 2)) : createCommentVNode("", true)
|
190
|
-
]);
|
204
|
+
], 2);
|
191
205
|
};
|
192
206
|
}
|
193
207
|
});
|
@@ -1,39 +1,50 @@
|
|
1
|
-
declare
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
1
|
+
declare function __VLS_template(): {
|
2
|
+
default?(_: {}): any;
|
3
|
+
};
|
4
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_TypePropsToOption<{
|
5
|
+
modelValue?: number | string;
|
6
|
+
loading?: boolean;
|
7
|
+
allowClear?: boolean;
|
8
|
+
allowPaste?: boolean;
|
9
|
+
allowCopy?: boolean;
|
10
|
+
disabled?: boolean;
|
11
|
+
readonly?: boolean;
|
12
|
+
textSecure?: boolean;
|
13
|
+
isSecureVisible?: boolean;
|
14
|
+
focused?: boolean;
|
15
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
10
16
|
"click:paste": () => void;
|
11
17
|
"show:secure": (value: MouseEvent) => void;
|
12
18
|
"hide:secure": (value: MouseEvent) => void;
|
13
19
|
"click:clear": () => void;
|
14
20
|
"click:slot": (value: MouseEvent) => void;
|
15
|
-
|
16
|
-
|
17
|
-
loading?: boolean
|
18
|
-
allowClear?: boolean
|
19
|
-
allowPaste?: boolean
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
21
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<{
|
22
|
+
modelValue?: number | string;
|
23
|
+
loading?: boolean;
|
24
|
+
allowClear?: boolean;
|
25
|
+
allowPaste?: boolean;
|
26
|
+
allowCopy?: boolean;
|
27
|
+
disabled?: boolean;
|
28
|
+
readonly?: boolean;
|
29
|
+
textSecure?: boolean;
|
30
|
+
isSecureVisible?: boolean;
|
31
|
+
focused?: boolean;
|
24
32
|
}>>> & {
|
25
33
|
"onClick:paste"?: (() => any) | undefined;
|
26
34
|
"onShow:secure"?: ((value: MouseEvent) => any) | undefined;
|
27
35
|
"onHide:secure"?: ((value: MouseEvent) => any) | undefined;
|
28
36
|
"onClick:clear"?: (() => any) | undefined;
|
29
37
|
"onClick:slot"?: ((value: MouseEvent) => any) | undefined;
|
30
|
-
|
31
|
-
|
32
|
-
default?(_: {}): any;
|
33
|
-
}>;
|
38
|
+
}, {}, {}>;
|
39
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
34
40
|
export default _default;
|
41
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
42
|
+
new (): {
|
43
|
+
$slots: S;
|
44
|
+
};
|
45
|
+
};
|
35
46
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
36
|
-
type
|
47
|
+
type __VLS_TypePropsToOption<T> = {
|
37
48
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
38
49
|
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
39
50
|
} : {
|
@@ -41,9 +52,4 @@ type __VLS_TypePropsToRuntimeProps<T> = {
|
|
41
52
|
required: true;
|
42
53
|
};
|
43
54
|
};
|
44
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
45
|
-
new (): {
|
46
|
-
$slots: S;
|
47
|
-
};
|
48
|
-
};
|
49
55
|
//# sourceMappingURL=InputActions.vue.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"InputActions.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Input/components/InputActions.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"InputActions.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Input/components/InputActions.vue"],"names":[],"mappings":"AAiIA,iBAAS,cAAc;qBA2LO,GAAG;EAwBhC;AACD,QAAA,MAAM,eAAe;iBAlPN,MAAM,GAAG,MAAM;cAClB,OAAO;iBACJ,OAAO;iBACP,OAAO;gBACR,OAAO;eACR,OAAO;eACP,OAAO;iBACL,OAAO;sBACF,OAAO;cACf,OAAO;;;;;;;;iBATJ,MAAM,GAAG,MAAM;cAClB,OAAO;iBACJ,OAAO;iBACP,OAAO;gBACR,OAAO;eACR,OAAO;eACP,OAAO;iBACL,OAAO;sBACF,OAAO;cACf,OAAO;;;;;;;UAgPjB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
|
@@ -1,114 +1,79 @@
|
|
1
|
-
import { defineComponent,
|
2
|
-
import
|
1
|
+
import { defineComponent, toRef, openBlock, createElementBlock, createBlock, markRaw, unref, createCommentVNode, createVNode, withCtx, renderSlot } from 'vue';
|
2
|
+
import IconClose from '../../../assets/icons/sax/IconClose.svg.js';
|
3
3
|
import IconEye from '../../../assets/icons/sax/IconEye.svg.js';
|
4
4
|
import IconEyeSlash from '../../../assets/icons/sax/IconEyeSlash.svg.js';
|
5
5
|
import IconPaste from '../../../assets/icons/sax/IconPaste.svg.js';
|
6
6
|
import WSpinner from '../../Spinner/WSpinner.vue.js';
|
7
|
-
import
|
8
|
-
import
|
9
|
-
import { useTabActiveListener } from '../../Tabs/use/useTabActiveListener.js';
|
7
|
+
import { useCopy } from '../../../utils/useCopy.js';
|
8
|
+
import _sfc_main$1 from './InputActionsButton.vue.js';
|
10
9
|
|
11
|
-
const _hoisted_1 =
|
10
|
+
const _hoisted_1 = {
|
11
|
+
key: 0,
|
12
|
+
class: "flex rounded-xl overflow-hidden bg-default dark:bg-default-dark"
|
13
|
+
};
|
12
14
|
const _hoisted_2 = {
|
13
|
-
key:
|
15
|
+
key: 4,
|
14
16
|
class: "h-full w-11 flex items-center justify-center text-description cursor-progress"
|
15
17
|
};
|
16
|
-
const _hoisted_3 = ["disabled"];
|
17
18
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
18
19
|
__name: "InputActions",
|
19
20
|
props: {
|
21
|
+
modelValue: {},
|
20
22
|
loading: { type: Boolean },
|
21
23
|
allowClear: { type: Boolean },
|
22
24
|
allowPaste: { type: Boolean },
|
25
|
+
allowCopy: { type: Boolean },
|
23
26
|
disabled: { type: Boolean },
|
24
27
|
readonly: { type: Boolean },
|
25
28
|
textSecure: { type: Boolean },
|
26
|
-
isSecureVisible: { type: Boolean }
|
29
|
+
isSecureVisible: { type: Boolean },
|
30
|
+
focused: { type: Boolean }
|
27
31
|
},
|
28
|
-
emits: ["click:paste", "show:secure", "hide:secure", "click:clear", "click:slot"
|
29
|
-
setup(__props
|
32
|
+
emits: ["click:paste", "show:secure", "hide:secure", "click:clear", "click:slot"],
|
33
|
+
setup(__props) {
|
30
34
|
const props = __props;
|
31
|
-
const
|
32
|
-
const element = ref();
|
33
|
-
const emitWidth = debounce(() => {
|
34
|
-
emit("update:width", element.value?.offsetWidth ?? 0);
|
35
|
-
}, 10);
|
36
|
-
watch(toRef(props, "loading"), emitWidth);
|
37
|
-
watch(toRef(props, "allowClear"), emitWidth);
|
38
|
-
watch(toRef(props, "disabled"), emitWidth);
|
39
|
-
watch(toRef(props, "textSecure"), emitWidth);
|
40
|
-
watch(toRef(props, "allowPaste"), emitWidth);
|
41
|
-
useTabActiveListener(emitWidth);
|
42
|
-
onMounted(() => {
|
43
|
-
emitWidth();
|
44
|
-
});
|
35
|
+
const { doCopy, iconCopy } = useCopy(toRef(props, "modelValue"));
|
45
36
|
return (_ctx, _cache) => {
|
46
|
-
return openBlock(), createElementBlock("div",
|
47
|
-
|
48
|
-
ref: element,
|
49
|
-
class: "flex rounded-xl overflow-hidden bg-default dark:bg-default-dark"
|
50
|
-
}, [
|
51
|
-
_ctx.allowClear && !_ctx.disabled && !_ctx.readonly ? (openBlock(), createElementBlock("button", {
|
37
|
+
return _ctx.loading || _ctx.$slots.default || _ctx.textSecure || _ctx.allowCopy || (_ctx.allowPaste || _ctx.allowClear) && !_ctx.disabled && !_ctx.readonly ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
38
|
+
_ctx.allowClear && !_ctx.disabled && !_ctx.readonly ? (openBlock(), createBlock(_sfc_main$1, {
|
52
39
|
key: 0,
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
createVNode(unref(IconCancel), { class: "w-5 h-5" }),
|
59
|
-
createVNode(_sfc_main$1, {
|
60
|
-
text: "Clear",
|
61
|
-
"no-touch": ""
|
62
|
-
})
|
63
|
-
], 32)) : createCommentVNode("", true),
|
64
|
-
_ctx.allowPaste && !_ctx.disabled && !_ctx.readonly ? (openBlock(), createElementBlock("button", {
|
40
|
+
icon: markRaw(unref(IconClose)),
|
41
|
+
"tooltip-text": "Clear",
|
42
|
+
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("click:clear"))
|
43
|
+
}, null, 8, ["icon"])) : createCommentVNode("", true),
|
44
|
+
_ctx.allowCopy && !_ctx.textSecure ? (openBlock(), createBlock(_sfc_main$1, {
|
65
45
|
key: 1,
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
createVNode(unref(IconPaste), { class: "w-5 h-5" }),
|
72
|
-
createVNode(_sfc_main$1, {
|
73
|
-
text: "Paste",
|
74
|
-
"no-touch": ""
|
75
|
-
})
|
76
|
-
], 32)) : createCommentVNode("", true),
|
77
|
-
_ctx.textSecure ? (openBlock(), createElementBlock("button", {
|
46
|
+
icon: markRaw(unref(iconCopy)),
|
47
|
+
"tooltip-text": "Copy",
|
48
|
+
onClick: unref(doCopy)
|
49
|
+
}, null, 8, ["icon", "onClick"])) : createCommentVNode("", true),
|
50
|
+
_ctx.allowPaste && !_ctx.disabled && !_ctx.readonly ? (openBlock(), createBlock(_sfc_main$1, {
|
78
51
|
key: 2,
|
52
|
+
icon: markRaw(unref(IconPaste)),
|
53
|
+
"tooltip-text": "Paste",
|
54
|
+
onClick: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("click:paste"))
|
55
|
+
}, null, 8, ["icon"])) : createCommentVNode("", true),
|
56
|
+
_ctx.textSecure ? (openBlock(), createBlock(_sfc_main$1, {
|
57
|
+
key: 3,
|
58
|
+
icon: _ctx.isSecureVisible ? markRaw(unref(IconEye)) : markRaw(unref(IconEyeSlash)),
|
59
|
+
"tooltip-text": _ctx.isSecureVisible ? "Hide" : "Show",
|
79
60
|
disabled: _ctx.disabled || _ctx.readonly,
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
}]),
|
84
|
-
onClick: _cache[4] || (_cache[4] = ($event) => _ctx.isSecureVisible ? _ctx.$emit("hide:secure", $event) : _ctx.$emit("show:secure", $event))
|
85
|
-
}, [
|
86
|
-
!_ctx.isSecureVisible ? (openBlock(), createBlock(unref(IconEyeSlash), {
|
87
|
-
key: 0,
|
88
|
-
class: "w-5 h-5 text-description"
|
89
|
-
})) : (openBlock(), createBlock(unref(IconEye), {
|
90
|
-
key: 1,
|
91
|
-
class: "w-5 h-5 text-primary-default dark:text-primary-dark"
|
92
|
-
})),
|
93
|
-
createVNode(_sfc_main$1, {
|
94
|
-
text: _ctx.isSecureVisible ? "Hide" : "Show",
|
95
|
-
"no-touch": ""
|
96
|
-
}, null, 8, ["text"])
|
97
|
-
], 10, _hoisted_1)) : createCommentVNode("", true),
|
61
|
+
top: !_ctx.focused,
|
62
|
+
onClick: _cache[2] || (_cache[2] = ($event) => _ctx.isSecureVisible ? _ctx.$emit("hide:secure", $event) : _ctx.$emit("show:secure", $event))
|
63
|
+
}, null, 8, ["icon", "tooltip-text", "disabled", "top"])) : createCommentVNode("", true),
|
98
64
|
_ctx.loading ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
99
65
|
createVNode(WSpinner, { class: "[--spinner-size:1.5rem]" })
|
100
|
-
])) : _ctx.$slots.default
|
101
|
-
key:
|
66
|
+
])) : _ctx.$slots.default ? (openBlock(), createBlock(_sfc_main$1, {
|
67
|
+
key: 5,
|
102
68
|
disabled: _ctx.disabled,
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
], 512);
|
69
|
+
onClick: _cache[3] || (_cache[3] = ($event) => _ctx.$emit("click:slot", $event))
|
70
|
+
}, {
|
71
|
+
default: withCtx(() => [
|
72
|
+
renderSlot(_ctx.$slots, "default")
|
73
|
+
]),
|
74
|
+
_: 3
|
75
|
+
}, 8, ["disabled"])) : createCommentVNode("", true)
|
76
|
+
])) : createCommentVNode("", true);
|
112
77
|
};
|
113
78
|
}
|
114
79
|
});
|
@@ -0,0 +1,35 @@
|
|
1
|
+
declare function __VLS_template(): {
|
2
|
+
default?(_: {}): any;
|
3
|
+
};
|
4
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_TypePropsToOption<{
|
5
|
+
tooltipText?: string;
|
6
|
+
disabled?: boolean;
|
7
|
+
icon?: SVGComponent;
|
8
|
+
top?: boolean;
|
9
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
10
|
+
click: (value: MouseEvent) => void;
|
11
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<{
|
12
|
+
tooltipText?: string;
|
13
|
+
disabled?: boolean;
|
14
|
+
icon?: SVGComponent;
|
15
|
+
top?: boolean;
|
16
|
+
}>>> & {
|
17
|
+
onClick?: ((value: MouseEvent) => any) | undefined;
|
18
|
+
}, {}, {}>;
|
19
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
20
|
+
export default _default;
|
21
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
22
|
+
new (): {
|
23
|
+
$slots: S;
|
24
|
+
};
|
25
|
+
};
|
26
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
27
|
+
type __VLS_TypePropsToOption<T> = {
|
28
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
29
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
30
|
+
} : {
|
31
|
+
type: import('vue').PropType<T[K]>;
|
32
|
+
required: true;
|
33
|
+
};
|
34
|
+
};
|
35
|
+
//# sourceMappingURL=InputActionsButton.vue.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"InputActionsButton.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Input/components/InputActionsButton.vue"],"names":[],"mappings":"AAmEA,iBAAS,cAAc;qBA8DM,GAAG;EAgB/B;AACD,QAAA,MAAM,eAAe;kBAjGL,MAAM;eACT,OAAO;WACX,YAAY;UACb,OAAO;;;;kBAHC,MAAM;eACT,OAAO;WACX,YAAY;UACb,OAAO;;;UAqGb,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
|
@@ -0,0 +1,41 @@
|
|
1
|
+
import { defineComponent, openBlock, createElementBlock, normalizeClass, withModifiers, renderSlot, createBlock, resolveDynamicComponent, createCommentVNode } from 'vue';
|
2
|
+
import _sfc_main$1 from '../../Tooltip/WTooltip.vue.js';
|
3
|
+
|
4
|
+
const _hoisted_1 = ["disabled"];
|
5
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
6
|
+
__name: "InputActionsButton",
|
7
|
+
props: {
|
8
|
+
tooltipText: {},
|
9
|
+
disabled: { type: Boolean },
|
10
|
+
icon: {},
|
11
|
+
top: { type: Boolean }
|
12
|
+
},
|
13
|
+
emits: ["click"],
|
14
|
+
setup(__props) {
|
15
|
+
return (_ctx, _cache) => {
|
16
|
+
return openBlock(), createElementBlock("button", {
|
17
|
+
disabled: _ctx.disabled,
|
18
|
+
class: normalizeClass([{
|
19
|
+
"cursor-pointer w-ripple w-ripple-hover": !_ctx.disabled,
|
20
|
+
"cursor-not-allowed": _ctx.disabled,
|
21
|
+
"items-center": !_ctx.top,
|
22
|
+
"items-start": _ctx.top
|
23
|
+
}, "h-full w-11 py-[0.6875rem] flex justify-center relative text-description select-none"]),
|
24
|
+
onMousedown: _cache[0] || (_cache[0] = withModifiers(() => {
|
25
|
+
}, ["prevent", "stop"])),
|
26
|
+
onClick: _cache[1] || (_cache[1] = withModifiers(($event) => _ctx.$emit("click", $event), ["stop"]))
|
27
|
+
}, [
|
28
|
+
renderSlot(_ctx.$slots, "default", {}, () => [
|
29
|
+
(openBlock(), createBlock(resolveDynamicComponent(_ctx.icon), { class: "square-5" })),
|
30
|
+
_ctx.tooltipText && !_ctx.disabled ? (openBlock(), createBlock(_sfc_main$1, {
|
31
|
+
key: 0,
|
32
|
+
text: _ctx.tooltipText,
|
33
|
+
"no-touch": ""
|
34
|
+
}, null, 8, ["text"])) : createCommentVNode("", true)
|
35
|
+
])
|
36
|
+
], 42, _hoisted_1);
|
37
|
+
};
|
38
|
+
}
|
39
|
+
});
|
40
|
+
|
41
|
+
export { _sfc_main as default };
|
@@ -0,0 +1,45 @@
|
|
1
|
+
import { FieldWrapperProps } from '../FieldWrapper/types';
|
2
|
+
import { Component } from 'vue';
|
3
|
+
import { DropdownMenuProps } from '../DropdownMenu/types';
|
4
|
+
|
5
|
+
export interface InputProps<Type extends InputType> extends Omit<FieldWrapperProps, 'modelValue'> {
|
6
|
+
modelValue?: (Type extends 'number' ? number : string) | undefined;
|
7
|
+
type?: Type;
|
8
|
+
textarea?: boolean;
|
9
|
+
resize?: boolean;
|
10
|
+
placeholder?: string;
|
11
|
+
icon?: SVGComponent;
|
12
|
+
size?: number;
|
13
|
+
maxLength?: number;
|
14
|
+
name?: string;
|
15
|
+
autocomplete?: 'off' | string;
|
16
|
+
autofocus?: boolean;
|
17
|
+
readonly?: boolean;
|
18
|
+
disabledActions?: boolean;
|
19
|
+
loading?: boolean;
|
20
|
+
spellcheck?: boolean;
|
21
|
+
customBackspaceHandle?: boolean;
|
22
|
+
textSecure?: boolean;
|
23
|
+
placeholderSecure?: boolean;
|
24
|
+
allowClear?: boolean;
|
25
|
+
allowPaste?: boolean;
|
26
|
+
hideInput?: boolean;
|
27
|
+
}
|
28
|
+
export interface InputAsyncProps<Type extends InputType> extends InputProps<Type> {
|
29
|
+
validate?: ValidateFn | ValidateFn[];
|
30
|
+
}
|
31
|
+
export interface InputSuggestProps<Type extends InputType> extends InputProps<Type>, Partial<Omit<DropdownMenuProps, 'isOpen' | 'updateAlign' | 'emitUpdate'>> {
|
32
|
+
mobileTitle?: string;
|
33
|
+
persist?: boolean;
|
34
|
+
}
|
35
|
+
export interface InputOptionsProps<Type extends InputType, Option> extends InputSuggestProps<Type> {
|
36
|
+
options: Option[];
|
37
|
+
valueGetter: (option: Option) => Required<InputSuggestProps<Type>>['modelValue'];
|
38
|
+
emptyStub?: string;
|
39
|
+
optionComponent?: Component<{
|
40
|
+
option: Option;
|
41
|
+
selected?: boolean;
|
42
|
+
model?: boolean;
|
43
|
+
}>;
|
44
|
+
}
|
45
|
+
//# sourceMappingURL=types.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Input/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,iCAAiC,CAAA;AACtE,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,KAAK,CAAA;AAClC,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,uBAAuB,CAAA;AAE5D,MAAM,WAAW,UAAU,CAAC,IAAI,SAAS,SAAS,CAAE,SAAQ,IAAI,CAAC,iBAAiB,EAAE,YAAY,CAAC;IAC/F,UAAU,CAAC,EAAE,CAAC,IAAI,SAAS,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC,GAAG,SAAS,CAAA;IAClE,IAAI,CAAC,EAAE,IAAI,CAAA;IAEX,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,CAAC,EAAE,OAAO,CAAA;IAEhB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,IAAI,CAAC,EAAE,YAAY,CAAA;IACnB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,YAAY,CAAC,EAAE,KAAK,GAAG,MAAM,CAAA;IAC7B,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,OAAO,CAAC,EAAE,OAAO,CAAA;IAEjB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAC/B,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB;AAED,MAAM,WAAW,eAAe,CAAC,IAAI,SAAS,SAAS,CAAE,SAAQ,UAAU,CAAC,IAAI,CAAC;IAC/E,QAAQ,CAAC,EAAE,UAAU,GAAG,UAAU,EAAE,CAAA;CACrC;AAED,MAAM,WAAW,iBAAiB,CAAC,IAAI,SAAS,SAAS,CAAE,SAAQ,UAAU,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,iBAAiB,EAAE,QAAQ,GAAG,aAAa,GAAG,YAAY,CAAC,CAAC;IAC5J,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,MAAM,WAAW,iBAAiB,CAAC,IAAI,SAAS,SAAS,EAAE,MAAM,CAAE,SAAQ,iBAAiB,CAAC,IAAI,CAAC;IAChG,OAAO,EAAE,MAAM,EAAE,CAAA;IACjB,WAAW,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,QAAQ,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAA;IAChF,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,eAAe,CAAC,EAAE,SAAS,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;QAAC,KAAK,CAAC,EAAE,OAAO,CAAA;KAAC,CAAC,CAAA;CACnF"}
|