eco-vue-js 0.3.67
Sign up to get free protection for your applications and to get access to all the features.
- package/LICENSE +21 -0
- package/README.md +69 -0
- package/dist/_virtual/_plugin-vue_export-helper.js +9 -0
- package/dist/assets/icons/default/IconAdd.svg.js +30 -0
- package/dist/assets/icons/default/IconArrow.svg.js +23 -0
- package/dist/assets/icons/default/IconAvatar.svg.js +20 -0
- package/dist/assets/icons/default/IconBack.svg.js +44 -0
- package/dist/assets/icons/default/IconCancel.svg.js +24 -0
- package/dist/assets/icons/default/IconCheck.svg.js +23 -0
- package/dist/assets/icons/default/IconDanger.svg.js +35 -0
- package/dist/assets/icons/default/IconDojo.svg.js +32 -0
- package/dist/assets/icons/default/IconEdit.svg.js +33 -0
- package/dist/assets/icons/default/IconFalsePositive.svg.js +31 -0
- package/dist/assets/icons/default/IconFeedback.svg.js +44 -0
- package/dist/assets/icons/default/IconFilter.svg.js +25 -0
- package/dist/assets/icons/default/IconInProgress.svg.js +30 -0
- package/dist/assets/icons/default/IconJira.svg.js +20 -0
- package/dist/assets/icons/default/IconLogout.svg.js +20 -0
- package/dist/assets/icons/default/IconMore.svg.js +39 -0
- package/dist/assets/icons/default/IconNotification.svg.js +25 -0
- package/dist/assets/icons/default/IconProfile.svg.js +37 -0
- package/dist/assets/icons/default/IconSearch.svg.js +23 -0
- package/dist/assets/icons/default/IconSettings.svg.js +34 -0
- package/dist/assets/icons/default/IconSort.svg.js +25 -0
- package/dist/assets/icons/default/IconStar.svg.js +24 -0
- package/dist/assets/icons/default/IconSuccess.svg.js +30 -0
- package/dist/assets/icons/default/IconTask.svg.js +39 -0
- package/dist/assets/icons/default/IconTime.svg.js +42 -0
- package/dist/assets/icons/default/IconWarn.svg.js +48 -0
- package/dist/assets/icons/sax/IconAdd.svg.js +26 -0
- package/dist/assets/icons/sax/IconAddCircle.svg.js +26 -0
- package/dist/assets/icons/sax/IconAddSquare.svg.js +26 -0
- package/dist/assets/icons/sax/IconAlarm.svg.js +26 -0
- package/dist/assets/icons/sax/IconArchiveBook.svg.js +36 -0
- package/dist/assets/icons/sax/IconCandle.svg.js +27 -0
- package/dist/assets/icons/sax/IconCelery.svg.js +46 -0
- package/dist/assets/icons/sax/IconChart.svg.js +26 -0
- package/dist/assets/icons/sax/IconCheckCircle.svg.js +34 -0
- package/dist/assets/icons/sax/IconCloseCircle.svg.js +26 -0
- package/dist/assets/icons/sax/IconCopy.svg.js +34 -0
- package/dist/assets/icons/sax/IconCopySuccess.svg.js +42 -0
- package/dist/assets/icons/sax/IconCopyright.svg.js +34 -0
- package/dist/assets/icons/sax/IconDedupe.svg.js +43 -0
- package/dist/assets/icons/sax/IconDojo.svg.js +32 -0
- package/dist/assets/icons/sax/IconEditCircle.svg.js +43 -0
- package/dist/assets/icons/sax/IconElement.svg.js +26 -0
- package/dist/assets/icons/sax/IconExport.svg.js +26 -0
- package/dist/assets/icons/sax/IconEye.svg.js +34 -0
- package/dist/assets/icons/sax/IconEyeSlash.svg.js +42 -0
- package/dist/assets/icons/sax/IconFilter.svg.js +27 -0
- package/dist/assets/icons/sax/IconFinding.svg.js +26 -0
- package/dist/assets/icons/sax/IconFolder.svg.js +25 -0
- package/dist/assets/icons/sax/IconFolderCross.svg.js +34 -0
- package/dist/assets/icons/sax/IconJira.svg.js +26 -0
- package/dist/assets/icons/sax/IconKey.svg.js +35 -0
- package/dist/assets/icons/sax/IconKeySquare.svg.js +43 -0
- package/dist/assets/icons/sax/IconLayer.svg.js +42 -0
- package/dist/assets/icons/sax/IconLink.svg.js +28 -0
- package/dist/assets/icons/sax/IconLinkBold.svg.js +23 -0
- package/dist/assets/icons/sax/IconLinkOutline.svg.js +28 -0
- package/dist/assets/icons/sax/IconLogout.svg.js +50 -0
- package/dist/assets/icons/sax/IconMenu.svg.js +25 -0
- package/dist/assets/icons/sax/IconMinusCircle.svg.js +26 -0
- package/dist/assets/icons/sax/IconNegate.svg.js +34 -0
- package/dist/assets/icons/sax/IconNegativeInfo.svg.js +34 -0
- package/dist/assets/icons/sax/IconNote.svg.js +34 -0
- package/dist/assets/icons/sax/IconOutlineCheckCircle.svg.js +34 -0
- package/dist/assets/icons/sax/IconOutlineCloseCircle.svg.js +26 -0
- package/dist/assets/icons/sax/IconOutlineEdit.svg.js +44 -0
- package/dist/assets/icons/sax/IconOutlineFolderAdd.svg.js +34 -0
- package/dist/assets/icons/sax/IconOutlineRefresh.svg.js +26 -0
- package/dist/assets/icons/sax/IconOutlineStar.svg.js +26 -0
- package/dist/assets/icons/sax/IconPaste.svg.js +44 -0
- package/dist/assets/icons/sax/IconProfile.svg.js +34 -0
- package/dist/assets/icons/sax/IconRadar.svg.js +26 -0
- package/dist/assets/icons/sax/IconRefresh.svg.js +26 -0
- package/dist/assets/icons/sax/IconSearch.svg.js +26 -0
- package/dist/assets/icons/sax/IconSettings.svg.js +36 -0
- package/dist/assets/icons/sax/IconStar.svg.js +26 -0
- package/dist/assets/icons/sax/IconSummary.svg.js +34 -0
- package/dist/assets/icons/sax/IconTag.svg.js +33 -0
- package/dist/assets/icons/sax/IconTask.svg.js +26 -0
- package/dist/assets/icons/sax/IconTime.svg.js +26 -0
- package/dist/assets/icons/sax/IconTrash.svg.js +26 -0
- package/dist/assets/icons/sax/IconUser.svg.js +26 -0
- package/dist/assets/icons/sax/IconVersionControl.svg.js +26 -0
- package/dist/assets/icons/sax/IconWeight.svg.js +34 -0
- package/dist/components/BottomSheet/WBottomSheet.vue.d.ts +29 -0
- package/dist/components/BottomSheet/WBottomSheet.vue.d.ts.map +1 -0
- package/dist/components/BottomSheet/WBottomSheet.vue.js +127 -0
- package/dist/components/BottomSheet/WBottomSheet.vue2.js +5 -0
- package/dist/components/Button/WButton.vue.d.ts +97 -0
- package/dist/components/Button/WButton.vue.d.ts.map +1 -0
- package/dist/components/Button/WButton.vue.js +76 -0
- package/dist/components/Button/WButton.vue2.js +5 -0
- package/dist/components/Button/WButtonAction.vue.d.ts +78 -0
- package/dist/components/Button/WButtonAction.vue.d.ts.map +1 -0
- package/dist/components/Button/WButtonAction.vue.js +64 -0
- package/dist/components/Button/WButtonAction.vue2.js +5 -0
- package/dist/components/Button/WButtonCopy.vue.d.ts +13 -0
- package/dist/components/Button/WButtonCopy.vue.d.ts.map +1 -0
- package/dist/components/Button/WButtonCopy.vue.js +67 -0
- package/dist/components/Button/WButtonCopy.vue2.js +5 -0
- package/dist/components/Button/WButtonGroup.vue.d.ts +78 -0
- package/dist/components/Button/WButtonGroup.vue.d.ts.map +1 -0
- package/dist/components/Button/WButtonGroup.vue.js +59 -0
- package/dist/components/Button/WButtonGroup.vue2.js +5 -0
- package/dist/components/Button/WButtonMore.vue.d.ts +18 -0
- package/dist/components/Button/WButtonMore.vue.d.ts.map +1 -0
- package/dist/components/Button/WButtonMore.vue.js +70 -0
- package/dist/components/Button/WButtonMore.vue2.js +5 -0
- package/dist/components/Button/WButtonMoreItem.vue.d.ts +51 -0
- package/dist/components/Button/WButtonMoreItem.vue.d.ts.map +1 -0
- package/dist/components/Button/WButtonMoreItem.vue.js +35 -0
- package/dist/components/Button/WButtonMoreItem.vue2.js +5 -0
- package/dist/components/Button/WButtonSelection.vue.d.ts +28 -0
- package/dist/components/Button/WButtonSelection.vue.d.ts.map +1 -0
- package/dist/components/Button/WButtonSelection.vue.js +56 -0
- package/dist/components/Button/WButtonSelection.vue2.js +5 -0
- package/dist/components/Button/WButtonSelectionAction.vue.d.ts +37 -0
- package/dist/components/Button/WButtonSelectionAction.vue.d.ts.map +1 -0
- package/dist/components/Button/WButtonSelectionAction.vue.js +43 -0
- package/dist/components/Button/WButtonSelectionAction.vue2.js +5 -0
- package/dist/components/Button/models/semanticTypeStylesMap.d.ts +5 -0
- package/dist/components/Button/models/semanticTypeStylesMap.d.ts.map +1 -0
- package/dist/components/Button/models/semanticTypeStylesMap.js +24 -0
- package/dist/components/Checkbox/WCheckbox.vue.d.ts +72 -0
- package/dist/components/Checkbox/WCheckbox.vue.d.ts.map +1 -0
- package/dist/components/Checkbox/WCheckbox.vue.js +113 -0
- package/dist/components/Checkbox/WCheckbox.vue2.js +5 -0
- package/dist/components/Chip/WChip.vue.d.ts +31 -0
- package/dist/components/Chip/WChip.vue.d.ts.map +1 -0
- package/dist/components/Chip/WChip.vue.js +37 -0
- package/dist/components/Chip/WChip.vue2.js +5 -0
- package/dist/components/ClickOutside/WClickOutside.vue.d.ts +14 -0
- package/dist/components/ClickOutside/WClickOutside.vue.d.ts.map +1 -0
- package/dist/components/ClickOutside/WClickOutside.vue.js +36 -0
- package/dist/components/ClickOutside/WClickOutside.vue2.js +5 -0
- package/dist/components/Counter/WCounter.vue.d.ts +29 -0
- package/dist/components/Counter/WCounter.vue.d.ts.map +1 -0
- package/dist/components/Counter/WCounter.vue.js +38 -0
- package/dist/components/Counter/WCounter.vue2.js +5 -0
- package/dist/components/DatePicker/WDatePicker.vue.d.ts +18 -0
- package/dist/components/DatePicker/WDatePicker.vue.d.ts.map +1 -0
- package/dist/components/DatePicker/WDatePicker.vue.js +131 -0
- package/dist/components/DatePicker/WDatePicker.vue2.js +5 -0
- package/dist/components/DatePicker/WDatePickerSingle.vue.d.ts +23 -0
- package/dist/components/DatePicker/WDatePickerSingle.vue.d.ts.map +1 -0
- package/dist/components/DatePicker/WDatePickerSingle.vue.js +97 -0
- package/dist/components/DatePicker/WDatePickerSingle.vue2.js +5 -0
- package/dist/components/DatePicker/components/CalendarDay.vue.d.ts +64 -0
- package/dist/components/DatePicker/components/CalendarDay.vue.d.ts.map +1 -0
- package/dist/components/DatePicker/components/CalendarDay.vue.js +96 -0
- package/dist/components/DatePicker/components/CalendarDay.vue2.js +5 -0
- package/dist/components/DatePicker/components/CalendarMonth.vue.d.ts +47 -0
- package/dist/components/DatePicker/components/CalendarMonth.vue.d.ts.map +1 -0
- package/dist/components/DatePicker/components/CalendarMonth.vue.js +101 -0
- package/dist/components/DatePicker/components/CalendarMonth.vue2.js +5 -0
- package/dist/components/DatePicker/components/CalendarToggle.vue.d.ts +19 -0
- package/dist/components/DatePicker/components/CalendarToggle.vue.d.ts.map +1 -0
- package/dist/components/DatePicker/components/CalendarToggle.vue.js +48 -0
- package/dist/components/DatePicker/components/CalendarToggle.vue2.js +5 -0
- package/dist/components/DatePicker/components/CalendarValue.vue.d.ts +37 -0
- package/dist/components/DatePicker/components/CalendarValue.vue.d.ts.map +1 -0
- package/dist/components/DatePicker/components/CalendarValue.vue.js +45 -0
- package/dist/components/DatePicker/components/CalendarValue.vue2.js +5 -0
- package/dist/components/DatePicker/components/CalendarWeek.vue.d.ts +50 -0
- package/dist/components/DatePicker/components/CalendarWeek.vue.d.ts.map +1 -0
- package/dist/components/DatePicker/components/CalendarWeek.vue.js +79 -0
- package/dist/components/DatePicker/components/CalendarWeek.vue2.js +5 -0
- package/dist/components/DatePicker/models/types.d.ts +5 -0
- package/dist/components/DatePicker/models/types.d.ts.map +1 -0
- package/dist/components/Dropdown/WDropdown.vue.d.ts +67 -0
- package/dist/components/Dropdown/WDropdown.vue.d.ts.map +1 -0
- package/dist/components/Dropdown/WDropdown.vue.js +116 -0
- package/dist/components/Dropdown/WDropdown.vue2.js +5 -0
- package/dist/components/Dropdown/utils/DropdownStyle.d.ts +21 -0
- package/dist/components/Dropdown/utils/DropdownStyle.d.ts.map +1 -0
- package/dist/components/Dropdown/utils/DropdownStyle.js +141 -0
- package/dist/components/DropdownMenu/WDropdownMenu.vue.d.ts +72 -0
- package/dist/components/DropdownMenu/WDropdownMenu.vue.d.ts.map +1 -0
- package/dist/components/DropdownMenu/WDropdownMenu.vue.js +71 -0
- package/dist/components/DropdownMenu/WDropdownMenu.vue2.js +5 -0
- package/dist/components/Expansion/WExpansion.vue.d.ts +31 -0
- package/dist/components/Expansion/WExpansion.vue.d.ts.map +1 -0
- package/dist/components/Expansion/WExpansion.vue.js +41 -0
- package/dist/components/Expansion/WExpansion.vue2.js +5 -0
- package/dist/components/Expansion/WExpansionItem.vue.d.ts +46 -0
- package/dist/components/Expansion/WExpansionItem.vue.d.ts.map +1 -0
- package/dist/components/Expansion/WExpansionItem.vue.js +68 -0
- package/dist/components/Expansion/WExpansionItem.vue2.js +5 -0
- package/dist/components/FieldWrapper/WFieldWrapper.vue.d.ts +44 -0
- package/dist/components/FieldWrapper/WFieldWrapper.vue.d.ts.map +1 -0
- package/dist/components/FieldWrapper/WFieldWrapper.vue.js +38 -0
- package/dist/components/FieldWrapper/WFieldWrapper.vue2.js +5 -0
- package/dist/components/FilePicker/WFilePicker.vue.d.ts +74 -0
- package/dist/components/FilePicker/WFilePicker.vue.d.ts.map +1 -0
- package/dist/components/FilePicker/WFilePicker.vue.js +207 -0
- package/dist/components/FilePicker/WFilePicker.vue2.js +5 -0
- package/dist/components/FilePicker/components/FilePickerItem.vue.d.ts +29 -0
- package/dist/components/FilePicker/components/FilePickerItem.vue.d.ts.map +1 -0
- package/dist/components/FilePicker/components/FilePickerItem.vue.js +47 -0
- package/dist/components/FilePicker/components/FilePickerItem.vue2.js +5 -0
- package/dist/components/FilePicker/components/FilePickerSvg.vue.d.ts +33 -0
- package/dist/components/FilePicker/components/FilePickerSvg.vue.d.ts.map +1 -0
- package/dist/components/FilePicker/components/FilePickerSvg.vue.js +84 -0
- package/dist/components/FilePicker/components/FilePickerSvg.vue2.js +5 -0
- package/dist/components/Form/WForm.vue.d.ts +38 -0
- package/dist/components/Form/WForm.vue.d.ts.map +1 -0
- package/dist/components/Form/WForm.vue.js +59 -0
- package/dist/components/Form/WForm.vue2.js +5 -0
- package/dist/components/Form/WFormValidator.vue.d.ts +50 -0
- package/dist/components/Form/WFormValidator.vue.d.ts.map +1 -0
- package/dist/components/Form/WFormValidator.vue.js +199 -0
- package/dist/components/Form/WFormValidator.vue2.js +5 -0
- package/dist/components/Form/models/injection.d.ts +9 -0
- package/dist/components/Form/models/injection.d.ts.map +1 -0
- package/dist/components/Form/models/injection.js +9 -0
- package/dist/components/Form/models/utils.d.ts +3 -0
- package/dist/components/Form/models/utils.d.ts.map +1 -0
- package/dist/components/Form/models/utils.js +19 -0
- package/dist/components/Form/use/useFormErrorMessageMap.d.ts +7 -0
- package/dist/components/Form/use/useFormErrorMessageMap.d.ts.map +1 -0
- package/dist/components/Form/use/useFormErrorMessageMap.js +31 -0
- package/dist/components/Form/use/useFormHasChangesMap.d.ts +6 -0
- package/dist/components/Form/use/useFormHasChangesMap.d.ts.map +1 -0
- package/dist/components/Form/use/useFormHasChangesMap.js +27 -0
- package/dist/components/Form/use/useFormInitModelMap.d.ts +6 -0
- package/dist/components/Form/use/useFormInitModelMap.d.ts.map +1 -0
- package/dist/components/Form/use/useFormInitModelMap.js +31 -0
- package/dist/components/Form/use/useFormInvalidateMap.d.ts +8 -0
- package/dist/components/Form/use/useFormInvalidateMap.d.ts.map +1 -0
- package/dist/components/Form/use/useFormInvalidateMap.js +31 -0
- package/dist/components/Form/use/useFormTitleMap.d.ts +6 -0
- package/dist/components/Form/use/useFormTitleMap.d.ts.map +1 -0
- package/dist/components/Form/use/useFormTitleMap.js +29 -0
- package/dist/components/Form/use/useFormValidateMap.d.ts +6 -0
- package/dist/components/Form/use/useFormValidateMap.d.ts.map +1 -0
- package/dist/components/Form/use/useFormValidateMap.js +32 -0
- package/dist/components/HeaderBar/WHeaderBar.vue.d.ts +51 -0
- package/dist/components/HeaderBar/WHeaderBar.vue.d.ts.map +1 -0
- package/dist/components/HeaderBar/WHeaderBar.vue.js +134 -0
- package/dist/components/HeaderBar/WHeaderBar.vue2.js +5 -0
- package/dist/components/ImageViewer/WImageViewer.vue.d.ts +23 -0
- package/dist/components/ImageViewer/WImageViewer.vue.d.ts.map +1 -0
- package/dist/components/ImageViewer/WImageViewer.vue.js +59 -0
- package/dist/components/ImageViewer/WImageViewer.vue2.js +5 -0
- package/dist/components/ImageViewer/components/ImageModal.vue.d.ts +23 -0
- package/dist/components/ImageViewer/components/ImageModal.vue.d.ts.map +1 -0
- package/dist/components/ImageViewer/components/ImageModal.vue.js +5 -0
- package/dist/components/ImageViewer/components/ImageModal.vue2.js +39 -0
- package/dist/components/InfiniteList/WInfiniteList.vue.d.ts +177 -0
- package/dist/components/InfiniteList/WInfiniteList.vue.d.ts.map +1 -0
- package/dist/components/InfiniteList/WInfiniteList.vue.js +122 -0
- package/dist/components/InfiniteList/WInfiniteList.vue2.js +5 -0
- package/dist/components/InfiniteList/WInfiniteListPages.vue.d.ts +171 -0
- package/dist/components/InfiniteList/WInfiniteListPages.vue.d.ts.map +1 -0
- package/dist/components/InfiniteList/WInfiniteListPages.vue.js +229 -0
- package/dist/components/InfiniteList/WInfiniteListPages.vue2.js +5 -0
- package/dist/components/InfiniteList/components/InfiniteListButton.vue.d.ts +7 -0
- package/dist/components/InfiniteList/components/InfiniteListButton.vue.d.ts.map +1 -0
- package/dist/components/InfiniteList/components/InfiniteListButton.vue.js +26 -0
- package/dist/components/InfiniteList/components/InfiniteListButton.vue2.js +5 -0
- package/dist/components/InfiniteList/components/InfiniteListPage.vue.d.ts +183 -0
- package/dist/components/InfiniteList/components/InfiniteListPage.vue.d.ts.map +1 -0
- package/dist/components/InfiniteList/components/InfiniteListPage.vue.js +236 -0
- package/dist/components/InfiniteList/components/InfiniteListPage.vue2.js +5 -0
- package/dist/components/InfiniteList/components/InfiniteListPageSelection.vue.d.ts +57 -0
- package/dist/components/InfiniteList/components/InfiniteListPageSelection.vue.d.ts.map +1 -0
- package/dist/components/InfiniteList/components/InfiniteListPageSelection.vue.js +66 -0
- package/dist/components/InfiniteList/components/InfiniteListPageSelection.vue2.js +5 -0
- package/dist/components/InfiniteList/components/InfiniteListPageTitle.vue.d.ts +21 -0
- package/dist/components/InfiniteList/components/InfiniteListPageTitle.vue.d.ts.map +1 -0
- package/dist/components/InfiniteList/components/InfiniteListPageTitle.vue.js +35 -0
- package/dist/components/InfiniteList/components/InfiniteListPageTitle.vue2.js +5 -0
- package/dist/components/InfiniteList/components/InfiniteListScroll.vue.d.ts +29 -0
- package/dist/components/InfiniteList/components/InfiniteListScroll.vue.d.ts.map +1 -0
- package/dist/components/InfiniteList/components/InfiniteListScroll.vue.js +56 -0
- package/dist/components/InfiniteList/components/InfiniteListScroll.vue2.js +5 -0
- package/dist/components/InfiniteList/models/utils.d.ts +3 -0
- package/dist/components/InfiniteList/models/utils.d.ts.map +1 -0
- package/dist/components/InfiniteList/models/utils.js +13 -0
- package/dist/components/InfiniteList/use/useInfiniteListHeader.d.ts +8 -0
- package/dist/components/InfiniteList/use/useInfiniteListHeader.d.ts.map +1 -0
- package/dist/components/InfiniteList/use/useInfiniteListHeader.js +61 -0
- package/dist/components/InfiniteList/use/useRefetchNextPages.d.ts +5 -0
- package/dist/components/InfiniteList/use/useRefetchNextPages.d.ts.map +1 -0
- package/dist/components/InfiniteList/use/useRefetchNextPages.js +31 -0
- package/dist/components/InfoCard/WInfoCard.vue.d.ts +24 -0
- package/dist/components/InfoCard/WInfoCard.vue.d.ts.map +1 -0
- package/dist/components/InfoCard/WInfoCard.vue.js +30 -0
- package/dist/components/InfoCard/WInfoCard.vue2.js +5 -0
- package/dist/components/InfoCard/WInfoCardNegative.vue.d.ts +27 -0
- package/dist/components/InfoCard/WInfoCardNegative.vue.d.ts.map +1 -0
- package/dist/components/InfoCard/WInfoCardNegative.vue.js +39 -0
- package/dist/components/InfoCard/WInfoCardNegative.vue2.js +5 -0
- package/dist/components/Input/WInput.vue.d.ts +218 -0
- package/dist/components/Input/WInput.vue.d.ts.map +1 -0
- package/dist/components/Input/WInput.vue.js +397 -0
- package/dist/components/Input/WInput.vue2.js +5 -0
- package/dist/components/Input/WInputAsync.vue.d.ts +126 -0
- package/dist/components/Input/WInputAsync.vue.d.ts.map +1 -0
- package/dist/components/Input/WInputAsync.vue.js +195 -0
- package/dist/components/Input/WInputAsync.vue2.js +5 -0
- package/dist/components/Input/WInputDate.vue.d.ts +21 -0
- package/dist/components/Input/WInputDate.vue.d.ts.map +1 -0
- package/dist/components/Input/WInputDate.vue.js +62 -0
- package/dist/components/Input/WInputDate.vue2.js +5 -0
- package/dist/components/Input/WInputOptions.vue.d.ts +172 -0
- package/dist/components/Input/WInputOptions.vue.d.ts.map +1 -0
- package/dist/components/Input/WInputOptions.vue.js +192 -0
- package/dist/components/Input/WInputOptions.vue2.js +5 -0
- package/dist/components/Input/WInputSuggest.vue.d.ts +206 -0
- package/dist/components/Input/WInputSuggest.vue.d.ts.map +1 -0
- package/dist/components/Input/WInputSuggest.vue.js +191 -0
- package/dist/components/Input/WInputSuggest.vue2.js +5 -0
- package/dist/components/Input/components/InputActions.vue.d.ts +62 -0
- package/dist/components/Input/components/InputActions.vue.d.ts.map +1 -0
- package/dist/components/Input/components/InputActions.vue.js +114 -0
- package/dist/components/Input/components/InputActions.vue2.js +5 -0
- package/dist/components/Link/WLink.vue.d.ts +66 -0
- package/dist/components/Link/WLink.vue.d.ts.map +1 -0
- package/dist/components/Link/WLink.vue.js +51 -0
- package/dist/components/Link/WLink.vue2.js +5 -0
- package/dist/components/Link/WLinkArrow.vue.d.ts +27 -0
- package/dist/components/Link/WLinkArrow.vue.d.ts.map +1 -0
- package/dist/components/Link/WLinkArrow.vue.js +29 -0
- package/dist/components/Link/WLinkArrow.vue2.js +5 -0
- package/dist/components/ListCard/WListCard.vue.d.ts +53 -0
- package/dist/components/ListCard/WListCard.vue.d.ts.map +1 -0
- package/dist/components/ListCard/WListCard.vue.js +70 -0
- package/dist/components/ListCard/WListCard.vue2.js +5 -0
- package/dist/components/ListCard/WListCardField.vue.d.ts +25 -0
- package/dist/components/ListCard/WListCardField.vue.d.ts.map +1 -0
- package/dist/components/ListCard/WListCardField.vue.js +46 -0
- package/dist/components/ListCard/WListCardField.vue2.js +5 -0
- package/dist/components/MenuItem/WMenuItem.vue.d.ts +37 -0
- package/dist/components/MenuItem/WMenuItem.vue.d.ts.map +1 -0
- package/dist/components/MenuItem/WMenuItem.vue.js +30 -0
- package/dist/components/MenuItem/WMenuItem.vue2.js +5 -0
- package/dist/components/Modal/WModal.vue.d.ts +3 -0
- package/dist/components/Modal/WModal.vue.d.ts.map +1 -0
- package/dist/components/Modal/WModal.vue.js +123 -0
- package/dist/components/Modal/WModal.vue2.js +5 -0
- package/dist/components/Modal/WModalStepper.vue.d.ts +41 -0
- package/dist/components/Modal/WModalStepper.vue.d.ts.map +1 -0
- package/dist/components/Modal/WModalStepper.vue.js +121 -0
- package/dist/components/Modal/WModalStepper.vue2.js +5 -0
- package/dist/components/Modal/WModalWrapper.vue.d.ts +21 -0
- package/dist/components/Modal/WModalWrapper.vue.d.ts.map +1 -0
- package/dist/components/Modal/WModalWrapper.vue.js +39 -0
- package/dist/components/Modal/WModalWrapper.vue2.js +5 -0
- package/dist/components/Modal/components/ModalCloseButton.vue.d.ts +7 -0
- package/dist/components/Modal/components/ModalCloseButton.vue.d.ts.map +1 -0
- package/dist/components/Modal/components/ModalCloseButton.vue.js +23 -0
- package/dist/components/Modal/components/ModalCloseButton.vue2.js +5 -0
- package/dist/components/Modal/modals/Confirm/ConfirmModal.vue.d.ts +76 -0
- package/dist/components/Modal/modals/Confirm/ConfirmModal.vue.d.ts.map +1 -0
- package/dist/components/Modal/modals/Confirm/ConfirmModal.vue.js +5 -0
- package/dist/components/Modal/modals/Confirm/ConfirmModal.vue2.js +112 -0
- package/dist/components/Modal/modals/Confirm/types.d.ts +14 -0
- package/dist/components/Modal/modals/Confirm/types.d.ts.map +1 -0
- package/dist/components/Nav/WNavBar.vue.d.ts +14 -0
- package/dist/components/Nav/WNavBar.vue.d.ts.map +1 -0
- package/dist/components/Nav/WNavBar.vue.js +69 -0
- package/dist/components/Nav/WNavBar.vue2.js +5 -0
- package/dist/components/Nav/WNavItem.vue.d.ts +69 -0
- package/dist/components/Nav/WNavItem.vue.d.ts.map +1 -0
- package/dist/components/Nav/WNavItem.vue.js +86 -0
- package/dist/components/Nav/WNavItem.vue2.js +5 -0
- package/dist/components/Nav/WNavItemExpand.vue.d.ts +46 -0
- package/dist/components/Nav/WNavItemExpand.vue.d.ts.map +1 -0
- package/dist/components/Nav/WNavItemExpand.vue.js +66 -0
- package/dist/components/Nav/WNavItemExpand.vue2.js +5 -0
- package/dist/components/Nav/WNavItemTransition.vue.d.ts +10 -0
- package/dist/components/Nav/WNavItemTransition.vue.d.ts.map +1 -0
- package/dist/components/Nav/WNavItemTransition.vue.js +23 -0
- package/dist/components/Notify/WNotify.vue.d.ts +3 -0
- package/dist/components/Notify/WNotify.vue.d.ts.map +1 -0
- package/dist/components/Notify/WNotify.vue.js +70 -0
- package/dist/components/Notify/WNotify.vue2.js +5 -0
- package/dist/components/Notify/components/NotifyCard.vue.d.ts +53 -0
- package/dist/components/Notify/components/NotifyCard.vue.d.ts.map +1 -0
- package/dist/components/Notify/components/NotifyCard.vue.js +111 -0
- package/dist/components/Notify/components/NotifyCard.vue2.js +5 -0
- package/dist/components/Notify/models/NotifyType.d.ts +6 -0
- package/dist/components/Notify/models/NotifyType.d.ts.map +1 -0
- package/dist/components/Notify/models/NotifyType.js +8 -0
- package/dist/components/Notify/models/types.d.ts +11 -0
- package/dist/components/Notify/models/types.d.ts.map +1 -0
- package/dist/components/Select/WSelect.vue.d.ts +187 -0
- package/dist/components/Select/WSelect.vue.d.ts.map +1 -0
- package/dist/components/Select/WSelect.vue.js +318 -0
- package/dist/components/Select/WSelect.vue2.js +5 -0
- package/dist/components/Select/WSelectAsync.vue.d.ts +201 -0
- package/dist/components/Select/WSelectAsync.vue.d.ts.map +1 -0
- package/dist/components/Select/WSelectAsync.vue.js +210 -0
- package/dist/components/Select/WSelectAsync.vue2.js +5 -0
- package/dist/components/Select/WSelectAsyncList.vue.d.ts +105 -0
- package/dist/components/Select/WSelectAsyncList.vue.d.ts.map +1 -0
- package/dist/components/Select/WSelectAsyncList.vue.js +76 -0
- package/dist/components/Select/WSelectAsyncList.vue2.js +5 -0
- package/dist/components/Select/WSelectAsyncSingle.vue.d.ts +185 -0
- package/dist/components/Select/WSelectAsyncSingle.vue.d.ts.map +1 -0
- package/dist/components/Select/WSelectAsyncSingle.vue.js +110 -0
- package/dist/components/Select/WSelectAsyncSingle.vue2.js +5 -0
- package/dist/components/Select/WSelectSingle.vue.d.ts +177 -0
- package/dist/components/Select/WSelectSingle.vue.d.ts.map +1 -0
- package/dist/components/Select/WSelectSingle.vue.js +106 -0
- package/dist/components/Select/WSelectSingle.vue2.js +5 -0
- package/dist/components/Select/components/SelectAsyncList.vue.d.ts +133 -0
- package/dist/components/Select/components/SelectAsyncList.vue.d.ts.map +1 -0
- package/dist/components/Select/components/SelectAsyncList.vue.js +193 -0
- package/dist/components/Select/components/SelectAsyncList.vue2.js +5 -0
- package/dist/components/Select/components/SelectAsyncPrefix.vue.d.ts +97 -0
- package/dist/components/Select/components/SelectAsyncPrefix.vue.d.ts.map +1 -0
- package/dist/components/Select/components/SelectAsyncPrefix.vue.js +72 -0
- package/dist/components/Select/components/SelectAsyncPrefix.vue2.js +5 -0
- package/dist/components/Select/components/SelectAsyncPrefixPage.vue.d.ts +97 -0
- package/dist/components/Select/components/SelectAsyncPrefixPage.vue.d.ts.map +1 -0
- package/dist/components/Select/components/SelectAsyncPrefixPage.vue.js +89 -0
- package/dist/components/Select/components/SelectAsyncPrefixPage.vue2.js +5 -0
- package/dist/components/Select/components/SelectOption.vue.d.ts +104 -0
- package/dist/components/Select/components/SelectOption.vue.d.ts.map +1 -0
- package/dist/components/Select/components/SelectOption.vue.js +112 -0
- package/dist/components/Select/components/SelectOption.vue2.js +5 -0
- package/dist/components/Skeleton/WSkeleton.vue.d.ts +3 -0
- package/dist/components/Skeleton/WSkeleton.vue.d.ts.map +1 -0
- package/dist/components/Skeleton/WSkeleton.vue.js +14 -0
- package/dist/components/Spinner/WSpinner.vue.d.ts +3 -0
- package/dist/components/Spinner/WSpinner.vue.d.ts.map +1 -0
- package/dist/components/Spinner/WSpinner.vue.js +33 -0
- package/dist/components/Tabs/WTabs.vue.d.ts +39 -0
- package/dist/components/Tabs/WTabs.vue.d.ts.map +1 -0
- package/dist/components/Tabs/WTabs.vue.js +210 -0
- package/dist/components/Tabs/WTabs.vue2.js +5 -0
- package/dist/components/Tabs/WTabsColumns.vue.d.ts +13 -0
- package/dist/components/Tabs/WTabsColumns.vue.d.ts.map +1 -0
- package/dist/components/Tabs/WTabsColumns.vue.js +33 -0
- package/dist/components/Tabs/WTabsColumns.vue2.js +5 -0
- package/dist/components/Tabs/components/TabItem.vue.d.ts +26 -0
- package/dist/components/Tabs/components/TabItem.vue.d.ts.map +1 -0
- package/dist/components/Tabs/components/TabItem.vue.js +42 -0
- package/dist/components/Tabs/components/TabItem.vue2.js +5 -0
- package/dist/components/Tabs/models/injection.d.ts +4 -0
- package/dist/components/Tabs/models/injection.d.ts.map +1 -0
- package/dist/components/Tabs/models/injection.js +4 -0
- package/dist/components/Tabs/use/useTabActiveListener.d.ts +2 -0
- package/dist/components/Tabs/use/useTabActiveListener.d.ts.map +1 -0
- package/dist/components/Tabs/use/useTabActiveListener.js +15 -0
- package/dist/components/Tabs/use/useTabItemActiveListener.d.ts +4 -0
- package/dist/components/Tabs/use/useTabItemActiveListener.d.ts.map +1 -0
- package/dist/components/Tabs/use/useTabItemActiveListener.js +28 -0
- package/dist/components/Toggle/WToggle.vue.d.ts +69 -0
- package/dist/components/Toggle/WToggle.vue.d.ts.map +1 -0
- package/dist/components/Toggle/WToggle.vue.js +94 -0
- package/dist/components/Toggle/WToggle.vue2.js +5 -0
- package/dist/components/Tooltip/WTooltip.vue.d.ts +35 -0
- package/dist/components/Tooltip/WTooltip.vue.d.ts.map +1 -0
- package/dist/components/Tooltip/WTooltip.vue.js +67 -0
- package/dist/components/Tooltip/WTooltip.vue2.js +5 -0
- package/dist/components/Tooltip/WTooltipContainer.vue.d.ts +3 -0
- package/dist/components/Tooltip/WTooltipContainer.vue.d.ts.map +1 -0
- package/dist/components/Tooltip/WTooltipContainer.vue.js +152 -0
- package/dist/components/Tooltip/WTooltipContainer.vue2.js +5 -0
- package/dist/components/Tooltip/models/utils.d.ts +2 -0
- package/dist/components/Tooltip/models/utils.d.ts.map +1 -0
- package/dist/components/Tooltip/models/utils.js +6 -0
- package/dist/imports/componentsPlugin.d.ts +66 -0
- package/dist/imports/componentsPlugin.d.ts.map +1 -0
- package/dist/imports/iconsDefault.d.ts +27 -0
- package/dist/imports/iconsDefault.d.ts.map +1 -0
- package/dist/imports/iconsDefault.js +26 -0
- package/dist/imports/iconsSax.d.ts +59 -0
- package/dist/imports/iconsSax.d.ts.map +1 -0
- package/dist/imports/iconsSax.js +58 -0
- package/dist/main.d.ts +12 -0
- package/dist/main.d.ts.map +1 -0
- package/dist/main.js +71 -0
- package/dist/types/global.d.ts +48 -0
- package/dist/utils/DOMListenerContainer.d.ts +8 -0
- package/dist/utils/DOMListenerContainer.d.ts.map +1 -0
- package/dist/utils/DOMListenerContainer.js +39 -0
- package/dist/utils/HorizontalAlign.d.ts +9 -0
- package/dist/utils/HorizontalAlign.d.ts.map +1 -0
- package/dist/utils/HorizontalAlign.js +11 -0
- package/dist/utils/Modal.d.ts +10 -0
- package/dist/utils/Modal.d.ts.map +1 -0
- package/dist/utils/Modal.js +25 -0
- package/dist/utils/Notify.d.ts +8 -0
- package/dist/utils/Notify.d.ts.map +1 -0
- package/dist/utils/Notify.js +19 -0
- package/dist/utils/SemanticType.d.ts +9 -0
- package/dist/utils/SemanticType.d.ts.map +1 -0
- package/dist/utils/SemanticType.js +11 -0
- package/dist/utils/Tooltip.d.ts +15 -0
- package/dist/utils/Tooltip.d.ts.map +1 -0
- package/dist/utils/Tooltip.js +14 -0
- package/dist/utils/dateTime.d.ts +44 -0
- package/dist/utils/dateTime.d.ts.map +1 -0
- package/dist/utils/dateTime.js +187 -0
- package/dist/utils/mobile.d.ts +3 -0
- package/dist/utils/mobile.d.ts.map +1 -0
- package/dist/utils/mobile.js +10 -0
- package/dist/utils/supportsPassive.d.ts +2 -0
- package/dist/utils/supportsPassive.d.ts.map +1 -0
- package/dist/utils/supportsPassive.js +15 -0
- package/dist/utils/utils.d.ts +14 -0
- package/dist/utils/utils.d.ts.map +1 -0
- package/dist/utils/utils.js +61 -0
- package/package.json +281 -0
- package/tailwind-base/index.cjs +103 -0
- package/tailwind-base/plugins/default.cjs +456 -0
- package/tailwind-base/theme/animations.cjs +88 -0
- package/tailwind-base/theme/score.cjs +31 -0
- package/tailwind-base/theme/severity.cjs +32 -0
- package/tailwind-base/theme/sizes.cjs +23 -0
@@ -0,0 +1,397 @@
|
|
1
|
+
import { defineComponent, ref, onMounted, onBeforeUnmount, openBlock, createElementBlock, normalizeClass, Fragment, renderSlot, createTextVNode, toDisplayString, createVNode, Transition, withCtx, createCommentVNode, createBlock, createElementVNode, normalizeStyle, withModifiers, resolveDynamicComponent, withKeys, createSlots, unref, nextTick } from 'vue';
|
2
|
+
import WSkeleton from '../Skeleton/WSkeleton.vue.js';
|
3
|
+
import _sfc_main$1 from './components/InputActions.vue.js';
|
4
|
+
import { Notify } from '../../utils/Notify.js';
|
5
|
+
import { numberFormatter, genId } from '../../utils/utils.js';
|
6
|
+
import { useTabActiveListener } from '../Tabs/use/useTabActiveListener.js';
|
7
|
+
|
8
|
+
const _hoisted_1 = {
|
9
|
+
key: 0,
|
10
|
+
class: "text-negative dark:text-negative-dark"
|
11
|
+
};
|
12
|
+
const _hoisted_2 = { class: "grid grid-cols-[1fr,auto]" };
|
13
|
+
const _hoisted_3 = {
|
14
|
+
key: 0,
|
15
|
+
class: "absolute top-0 left-0 h-full flex items-center justify-center px-3 text-description select-none"
|
16
|
+
};
|
17
|
+
const _hoisted_4 = {
|
18
|
+
key: 0,
|
19
|
+
class: "text-xs font-normal text-negative dark:text-negative-dark absolute right-0 pt-0.5 text-end"
|
20
|
+
};
|
21
|
+
const _hoisted_5 = {
|
22
|
+
key: 1,
|
23
|
+
class: "text-xs font-normal text-description absolute right-0 pt-0.5 whitespace-nowrap"
|
24
|
+
};
|
25
|
+
const _hoisted_6 = {
|
26
|
+
key: 2,
|
27
|
+
ref: "rightContainer",
|
28
|
+
class: "pl-4 flex gap-4 sm-not:flex-col"
|
29
|
+
};
|
30
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
31
|
+
__name: "WInput",
|
32
|
+
props: {
|
33
|
+
modelValue: { default: void 0 },
|
34
|
+
title: { default: void 0 },
|
35
|
+
description: { default: void 0 },
|
36
|
+
placeholder: { default: void 0 },
|
37
|
+
type: { default: void 0 },
|
38
|
+
name: { default: void 0 },
|
39
|
+
autocomplete: { default: "off" },
|
40
|
+
autofocus: { type: Boolean },
|
41
|
+
textarea: { type: Boolean },
|
42
|
+
disabled: { type: Boolean },
|
43
|
+
allowClear: { type: Boolean },
|
44
|
+
errorMessage: { default: void 0 },
|
45
|
+
readonly: { type: Boolean },
|
46
|
+
icon: { default: void 0 },
|
47
|
+
maxLength: { default: void 0 },
|
48
|
+
loading: { type: Boolean },
|
49
|
+
required: { type: Boolean },
|
50
|
+
hideInput: { type: Boolean },
|
51
|
+
skeleton: { type: Boolean },
|
52
|
+
size: { default: 20 },
|
53
|
+
mono: { type: Boolean },
|
54
|
+
textSecure: { type: Boolean },
|
55
|
+
spellcheck: { type: Boolean },
|
56
|
+
placeholderSecure: { type: Boolean },
|
57
|
+
customBackspaceHandle: { type: Boolean },
|
58
|
+
hasChanges: { type: Boolean },
|
59
|
+
disabledActions: { type: Boolean },
|
60
|
+
noMargin: { type: Boolean },
|
61
|
+
resize: { type: Boolean },
|
62
|
+
allowPaste: { type: Boolean }
|
63
|
+
},
|
64
|
+
emits: ["update:modelValue", "keypress:enter", "keypress:up", "keypress:down", "keypress:delete", "keypress:backspace", "click:clear", "focus", "blur", "click", "mousedown", "click:internal", "select:input", "paste"],
|
65
|
+
setup(__props, { expose: __expose, emit }) {
|
66
|
+
const props = __props;
|
67
|
+
const inputId = `w-input-${genId()}`;
|
68
|
+
const input = ref();
|
69
|
+
const isFocused = ref(false);
|
70
|
+
const isSecureVisible = ref(false);
|
71
|
+
const paddingRight = ref(0);
|
72
|
+
const updateModelValue = (value) => {
|
73
|
+
if (props.loading || props.disabled || props.readonly)
|
74
|
+
return;
|
75
|
+
if (props.type === "number") {
|
76
|
+
emit("update:modelValue", typeof value === "string" && value.length ? Number.parseFloat(value) : void 0);
|
77
|
+
} else {
|
78
|
+
emit("update:modelValue", value);
|
79
|
+
}
|
80
|
+
};
|
81
|
+
const handleBackspace = (event) => {
|
82
|
+
if (!props.customBackspaceHandle)
|
83
|
+
return;
|
84
|
+
event.preventDefault();
|
85
|
+
event.stopPropagation();
|
86
|
+
const target = event.target;
|
87
|
+
const value = target?.value;
|
88
|
+
if (!value || target.selectionStart === null || target.selectionEnd === null)
|
89
|
+
return;
|
90
|
+
let substring;
|
91
|
+
let selectionStart;
|
92
|
+
if (target.selectionStart === target.selectionEnd) {
|
93
|
+
if (target.selectionStart === 0)
|
94
|
+
return;
|
95
|
+
selectionStart = target.selectionStart - 1;
|
96
|
+
substring = value.substring(0, selectionStart) + value.substring(target.selectionEnd);
|
97
|
+
} else {
|
98
|
+
selectionStart = target.selectionStart;
|
99
|
+
substring = value.substring(0, selectionStart) + value.substring(target.selectionEnd);
|
100
|
+
}
|
101
|
+
target.value = substring;
|
102
|
+
updateModelValue(substring);
|
103
|
+
nextTick().then(() => target.setSelectionRange(selectionStart, selectionStart));
|
104
|
+
};
|
105
|
+
const handleInputEvent = (event) => {
|
106
|
+
const target = event.target;
|
107
|
+
const value = target?.value;
|
108
|
+
if (props.maxLength && typeof value === "string" && value.length > props.maxLength) {
|
109
|
+
event.preventDefault();
|
110
|
+
const substring = value.substring(0, props.maxLength);
|
111
|
+
if (target)
|
112
|
+
target.value = substring;
|
113
|
+
updateModelValue(substring);
|
114
|
+
return;
|
115
|
+
}
|
116
|
+
updateModelValue(value);
|
117
|
+
};
|
118
|
+
const clearValue = () => {
|
119
|
+
if (props.disabled || props.readonly)
|
120
|
+
return;
|
121
|
+
updateModelValue(void 0);
|
122
|
+
input.value?.focus();
|
123
|
+
emit("click:clear");
|
124
|
+
};
|
125
|
+
const focus = () => {
|
126
|
+
if (props.disabled || props.readonly)
|
127
|
+
return;
|
128
|
+
if (isFocused.value)
|
129
|
+
return;
|
130
|
+
input.value?.focus();
|
131
|
+
};
|
132
|
+
const blur = () => {
|
133
|
+
input.value?.blur();
|
134
|
+
};
|
135
|
+
const setIsFocused = (value) => {
|
136
|
+
isFocused.value = value;
|
137
|
+
};
|
138
|
+
const checkPermission = async () => {
|
139
|
+
const result = await navigator.permissions.query({ name: "clipboard-read" });
|
140
|
+
return result.state === "granted" || result.state === "prompt";
|
141
|
+
};
|
142
|
+
const paste = async () => {
|
143
|
+
if (!await checkPermission()) {
|
144
|
+
Notify.error({
|
145
|
+
title: "Paste failed",
|
146
|
+
caption: "Reading from clipboard is not permitted"
|
147
|
+
});
|
148
|
+
return;
|
149
|
+
}
|
150
|
+
navigator.clipboard.readText().then((value) => {
|
151
|
+
if (!value) {
|
152
|
+
Notify.warn({
|
153
|
+
title: "Nothing to paste"
|
154
|
+
});
|
155
|
+
return;
|
156
|
+
}
|
157
|
+
if (!props.maxLength || props.maxLength <= value.length) {
|
158
|
+
updateModelValue(value);
|
159
|
+
Notify.success({
|
160
|
+
title: "Pasted"
|
161
|
+
});
|
162
|
+
nextTick().then(() => emit("paste"));
|
163
|
+
} else {
|
164
|
+
Notify.error({
|
165
|
+
title: "Unable to paste",
|
166
|
+
caption: "The length of the pasted value exceeds the allowed limit"
|
167
|
+
});
|
168
|
+
}
|
169
|
+
}).catch(() => {
|
170
|
+
Notify.error({
|
171
|
+
title: "Paste failed"
|
172
|
+
});
|
173
|
+
});
|
174
|
+
};
|
175
|
+
let timeout;
|
176
|
+
const autofocusDebounced = () => {
|
177
|
+
if (timeout)
|
178
|
+
clearTimeout(timeout);
|
179
|
+
timeout = setTimeout(() => {
|
180
|
+
if (props.autofocus)
|
181
|
+
focus();
|
182
|
+
timeout = void 0;
|
183
|
+
}, 250);
|
184
|
+
};
|
185
|
+
if (props.autofocus) {
|
186
|
+
useTabActiveListener(autofocusDebounced);
|
187
|
+
}
|
188
|
+
onMounted(() => {
|
189
|
+
if (props.autofocus)
|
190
|
+
autofocusDebounced();
|
191
|
+
});
|
192
|
+
onBeforeUnmount(() => {
|
193
|
+
if (timeout) {
|
194
|
+
clearTimeout(timeout);
|
195
|
+
timeout = void 0;
|
196
|
+
}
|
197
|
+
});
|
198
|
+
__expose({
|
199
|
+
focus,
|
200
|
+
blur
|
201
|
+
});
|
202
|
+
return (_ctx, _cache) => {
|
203
|
+
return openBlock(), createElementBlock("div", {
|
204
|
+
class: normalizeClass(["relative", {
|
205
|
+
"cursor-not-allowed": _ctx.disabled && !_ctx.skeleton,
|
206
|
+
"mt-1 mb-[1.125rem]": !_ctx.noMargin
|
207
|
+
}]),
|
208
|
+
onClick: _cache[14] || (_cache[14] = ($event) => _ctx.$emit("click:internal", $event))
|
209
|
+
}, [
|
210
|
+
_ctx.title || _ctx.$slots.title?.()?.length ? (openBlock(), createElementBlock("div", {
|
211
|
+
key: 0,
|
212
|
+
class: normalizeClass(["text-xs font-semibold text-accent mb-2 duration-500", {
|
213
|
+
"opacity-50": _ctx.disabled && !_ctx.skeleton
|
214
|
+
}])
|
215
|
+
}, [
|
216
|
+
!_ctx.skeleton ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
217
|
+
renderSlot(_ctx.$slots, "title", {}, () => [
|
218
|
+
createTextVNode(toDisplayString(_ctx.title), 1)
|
219
|
+
]),
|
220
|
+
createVNode(Transition, {
|
221
|
+
"enter-active-class": "transition-opacity",
|
222
|
+
"leave-active-class": "transition-opacity",
|
223
|
+
"enter-from-class": "opacity-0",
|
224
|
+
"leave-to-class": "opacity-0"
|
225
|
+
}, {
|
226
|
+
default: withCtx(() => [
|
227
|
+
_ctx.required ? (openBlock(), createElementBlock("span", _hoisted_1, " * ")) : createCommentVNode("", true)
|
228
|
+
]),
|
229
|
+
_: 1
|
230
|
+
})
|
231
|
+
], 64)) : (openBlock(), createBlock(WSkeleton, {
|
232
|
+
key: 1,
|
233
|
+
class: "h-4 w-16"
|
234
|
+
}))
|
235
|
+
], 2)) : createCommentVNode("", true),
|
236
|
+
createElementVNode("div", _hoisted_2, [
|
237
|
+
!_ctx.skeleton ? (openBlock(), createElementBlock("label", {
|
238
|
+
key: 0,
|
239
|
+
class: "relative isolate",
|
240
|
+
for: inputId
|
241
|
+
}, [
|
242
|
+
createElementVNode("div", {
|
243
|
+
class: normalizeClass(["relative flex flex-wrap border border-solid rounded-xl bg-default dark:bg-default-dark transition-colors duration-75 overflow-hidden min-h-11 w-full", {
|
244
|
+
"focus-within:border-primary-default dark:focus-within:border-primary-dark": !_ctx.disabled && !_ctx.readonly,
|
245
|
+
"cursor-text": !_ctx.disabled,
|
246
|
+
"pl-1 py-1 gap-1": _ctx.$slots.suffix?.()?.length,
|
247
|
+
"pl-11": _ctx.icon,
|
248
|
+
"border-negative dark:border-negative-dark": _ctx.errorMessage,
|
249
|
+
"border-gray-300 dark:border-gray-700": !_ctx.disabled,
|
250
|
+
"border-gray-300/50 dark:border-gray-700/50": _ctx.disabled
|
251
|
+
}]),
|
252
|
+
style: normalizeStyle({ paddingRight: paddingRight.value + "px" }),
|
253
|
+
onClick: focus,
|
254
|
+
onMousedown: _cache[13] || (_cache[13] = withModifiers(() => {
|
255
|
+
}, ["prevent"]))
|
256
|
+
}, [
|
257
|
+
_ctx.icon ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
258
|
+
(openBlock(), createBlock(resolveDynamicComponent(_ctx.icon), { class: "w-5 h-5" }))
|
259
|
+
])) : createCommentVNode("", true),
|
260
|
+
renderSlot(_ctx.$slots, "prefix"),
|
261
|
+
(openBlock(), createBlock(resolveDynamicComponent(_ctx.textarea ? "textarea" : "input"), {
|
262
|
+
id: inputId,
|
263
|
+
ref_key: "input",
|
264
|
+
ref: input,
|
265
|
+
class: normalizeClass(["text-base font-normal outline-0 border-none bg-[inherit] flex-1 max-w-full disabled:opacity-80 disabled:cursor-not-allowed placeholder:text-gray-400 dark:placeholder:text-gray-500 appearance-none", {
|
266
|
+
"min-h-[var(--textarea-height,160px)] w-full p-3": _ctx.textarea,
|
267
|
+
"resize-y": _ctx.resize && _ctx.textarea,
|
268
|
+
"resize-none": !_ctx.resize && _ctx.textarea,
|
269
|
+
"h-[var(--input-height,42px)]": !_ctx.textarea && !_ctx.$slots.suffix?.()?.length,
|
270
|
+
"h-[var(--input-height,34px)]": !_ctx.textarea && _ctx.$slots.suffix?.()?.length,
|
271
|
+
"py-0 pr-1": !_ctx.hideInput && !_ctx.textarea,
|
272
|
+
"pl-3": !_ctx.hideInput && !_ctx.textarea && !_ctx.icon,
|
273
|
+
"w-0 max-w-0 p-0 absolute": _ctx.hideInput,
|
274
|
+
"font-mono": _ctx.mono,
|
275
|
+
"text-secure": _ctx.textSecure && !isSecureVisible.value,
|
276
|
+
"text-black-default dark:text-gray-200": !_ctx.disabled,
|
277
|
+
"text-black-default/50 dark:text-gray-200/50": _ctx.disabled
|
278
|
+
}]),
|
279
|
+
value: _ctx.placeholderSecure && _ctx.modelValue === void 0 && !isFocused.value ? "******" : _ctx.modelValue,
|
280
|
+
placeholder: _ctx.placeholder,
|
281
|
+
type: _ctx.type ?? "text",
|
282
|
+
name: _ctx.name,
|
283
|
+
disabled: _ctx.disabled,
|
284
|
+
readonly: _ctx.readonly,
|
285
|
+
autocomplete: _ctx.autocomplete,
|
286
|
+
size: _ctx.size || void 0,
|
287
|
+
spellcheck: _ctx.spellcheck ? "true" : "false",
|
288
|
+
onInput: handleInputEvent,
|
289
|
+
onKeypress: _cache[0] || (_cache[0] = withKeys(withModifiers(($event) => !_ctx.disabled && !_ctx.readonly && _ctx.$emit("keypress:enter", $event), ["exact"]), ["enter"])),
|
290
|
+
onKeydown: [
|
291
|
+
_cache[1] || (_cache[1] = withKeys(withModifiers(($event) => !_ctx.disabled && !_ctx.readonly && _ctx.$emit("keypress:up", $event), ["exact", "stop"]), ["up"])),
|
292
|
+
_cache[2] || (_cache[2] = withKeys(withModifiers(($event) => !_ctx.disabled && !_ctx.readonly && _ctx.$emit("keypress:down", $event), ["exact", "stop"]), ["down"])),
|
293
|
+
_cache[3] || (_cache[3] = withKeys(withModifiers(($event) => {
|
294
|
+
!_ctx.disabled && !_ctx.readonly && _ctx.$emit("keypress:delete", $event);
|
295
|
+
handleBackspace($event);
|
296
|
+
}, ["exact", "stop"]), ["delete"]))
|
297
|
+
],
|
298
|
+
onFocus: _cache[4] || (_cache[4] = ($event) => {
|
299
|
+
_ctx.$emit("focus", $event);
|
300
|
+
setIsFocused(true);
|
301
|
+
}),
|
302
|
+
onBlur: _cache[5] || (_cache[5] = ($event) => {
|
303
|
+
_ctx.$emit("blur", $event);
|
304
|
+
setIsFocused(false);
|
305
|
+
isSecureVisible.value = false;
|
306
|
+
}),
|
307
|
+
onClick: _cache[6] || (_cache[6] = ($event) => _ctx.$emit("click", $event)),
|
308
|
+
onMousedown: _cache[7] || (_cache[7] = withModifiers(($event) => _ctx.$emit("mousedown", $event), ["stop"])),
|
309
|
+
onSelect: _cache[8] || (_cache[8] = ($event) => _ctx.$emit("select:input", $event))
|
310
|
+
}, null, 40, ["class", "value", "placeholder", "type", "name", "disabled", "readonly", "autocomplete", "size", "spellcheck"])),
|
311
|
+
createVNode(_sfc_main$1, {
|
312
|
+
loading: _ctx.loading,
|
313
|
+
"allow-clear": _ctx.allowClear && _ctx.modelValue !== "",
|
314
|
+
disabled: _ctx.disabled || _ctx.readonly || _ctx.disabledActions,
|
315
|
+
"text-secure": _ctx.textSecure,
|
316
|
+
"is-secure-visible": isSecureVisible.value,
|
317
|
+
"allow-paste": _ctx.allowPaste,
|
318
|
+
class: "absolute top-0 right-0 bottom-0",
|
319
|
+
"onClick:clear": clearValue,
|
320
|
+
"onClick:slot": _cache[9] || (_cache[9] = ($event) => {
|
321
|
+
isFocused.value ? blur() : focus();
|
322
|
+
_ctx.$emit("click:internal", $event);
|
323
|
+
}),
|
324
|
+
"onShow:secure": _cache[10] || (_cache[10] = ($event) => {
|
325
|
+
isSecureVisible.value = true;
|
326
|
+
_ctx.$emit("click", $event);
|
327
|
+
}),
|
328
|
+
"onHide:secure": _cache[11] || (_cache[11] = ($event) => isSecureVisible.value = false),
|
329
|
+
"onUpdate:width": _cache[12] || (_cache[12] = ($event) => paddingRight.value = $event),
|
330
|
+
"onClick:paste": paste
|
331
|
+
}, createSlots({ _: 2 }, [
|
332
|
+
_ctx.$slots.suffix?.()?.length ? {
|
333
|
+
name: "default",
|
334
|
+
fn: withCtx(() => [
|
335
|
+
renderSlot(_ctx.$slots, "suffix")
|
336
|
+
]),
|
337
|
+
key: "0"
|
338
|
+
} : void 0
|
339
|
+
]), 1032, ["loading", "allow-clear", "disabled", "text-secure", "is-secure-visible", "allow-paste"])
|
340
|
+
], 38),
|
341
|
+
createVNode(Transition, {
|
342
|
+
"enter-active-class": "transition-opacity",
|
343
|
+
"leave-active-class": "transition-opacity",
|
344
|
+
"enter-from-class": "opacity-0",
|
345
|
+
"leave-to-class": "opacity-0"
|
346
|
+
}, {
|
347
|
+
default: withCtx(() => [
|
348
|
+
_ctx.hasChanges ? (openBlock(), createElementBlock("span", {
|
349
|
+
key: 0,
|
350
|
+
class: normalizeClass(["square-2 rounded-full transition-colors absolute top-0 right-0 z-10", {
|
351
|
+
"bg-info dark:bg-info-dark": isFocused.value || _ctx.errorMessage === void 0,
|
352
|
+
"bg-negative dark:bg-negative-dark": !isFocused.value && _ctx.errorMessage !== void 0
|
353
|
+
}])
|
354
|
+
}, null, 2)) : createCommentVNode("", true)
|
355
|
+
]),
|
356
|
+
_: 1
|
357
|
+
}),
|
358
|
+
createVNode(Transition, {
|
359
|
+
"enter-active-class": "transition-opacity",
|
360
|
+
"leave-active-class": "transition-opacity",
|
361
|
+
"enter-from-class": "opacity-0",
|
362
|
+
"leave-to-class": "opacity-0"
|
363
|
+
}, {
|
364
|
+
default: withCtx(() => [
|
365
|
+
_ctx.errorMessage ? (openBlock(), createElementBlock("div", _hoisted_4, toDisplayString(_ctx.errorMessage), 1)) : _ctx.maxLength !== void 0 && isFocused.value ? (openBlock(), createElementBlock("div", _hoisted_5, toDisplayString(unref(numberFormatter).format(String(_ctx.modelValue || "").length)) + " / " + toDisplayString(unref(numberFormatter).format(_ctx.maxLength)), 1)) : createCommentVNode("", true)
|
366
|
+
]),
|
367
|
+
_: 1
|
368
|
+
})
|
369
|
+
])) : (openBlock(), createBlock(WSkeleton, {
|
370
|
+
key: 1,
|
371
|
+
class: normalizeClass(["w-full w-skeleton-rounded-xl", {
|
372
|
+
"h-[calc(var(--textarea-height,160px)+2px)]": _ctx.textarea,
|
373
|
+
"h-[calc(var(--input-height,42px)+2px)]": !_ctx.textarea && !_ctx.$slots.suffix?.()?.length,
|
374
|
+
"h-[calc(var(--input-height,34px)+10px)]": !_ctx.textarea && _ctx.$slots.suffix?.()?.length
|
375
|
+
}]),
|
376
|
+
style: { "--skeleton-width": "100%" }
|
377
|
+
}, null, 8, ["class"])),
|
378
|
+
_ctx.$slots.right?.()?.length ? (openBlock(), createElementBlock("div", _hoisted_6, [
|
379
|
+
renderSlot(_ctx.$slots, "right")
|
380
|
+
], 512)) : createCommentVNode("", true)
|
381
|
+
]),
|
382
|
+
_ctx.description ? (openBlock(), createElementBlock("div", {
|
383
|
+
key: 1,
|
384
|
+
class: normalizeClass(["text-xs font-normal text-description pt-4 whitespace-pre-wrap break-words text-pretty", {
|
385
|
+
"opacity-50": _ctx.disabled && !_ctx.skeleton
|
386
|
+
}])
|
387
|
+
}, [
|
388
|
+
_ctx.skeleton ? (openBlock(), createBlock(WSkeleton, { key: 0 })) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
389
|
+
createTextVNode(toDisplayString(_ctx.description), 1)
|
390
|
+
], 64))
|
391
|
+
], 2)) : createCommentVNode("", true)
|
392
|
+
], 2);
|
393
|
+
};
|
394
|
+
}
|
395
|
+
});
|
396
|
+
|
397
|
+
export { _sfc_main as default };
|
@@ -0,0 +1,126 @@
|
|
1
|
+
declare const _default: <Type extends InputType = "text">(__VLS_props: {
|
2
|
+
modelValue?: (Type extends "number" ? number : string) | undefined;
|
3
|
+
title?: string | undefined;
|
4
|
+
description?: string | undefined;
|
5
|
+
validate?: ValidateFn | ValidateFn[] | undefined;
|
6
|
+
type?: Type | undefined;
|
7
|
+
placeholder?: string | undefined;
|
8
|
+
loading?: boolean | undefined;
|
9
|
+
disabled?: boolean | undefined;
|
10
|
+
skeleton?: boolean | undefined;
|
11
|
+
textarea?: boolean | undefined;
|
12
|
+
name?: string | undefined;
|
13
|
+
mono?: boolean | undefined;
|
14
|
+
textSecure?: boolean | undefined;
|
15
|
+
placeholderSecure?: boolean | undefined;
|
16
|
+
maxLength?: number | undefined;
|
17
|
+
required?: boolean | undefined;
|
18
|
+
hasChanges?: boolean | undefined;
|
19
|
+
errorMessage?: string | undefined;
|
20
|
+
noMargin?: boolean | undefined;
|
21
|
+
resize?: boolean | undefined;
|
22
|
+
allowPaste?: boolean | undefined;
|
23
|
+
icon?: SVGComponent | undefined;
|
24
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: Pick<{
|
25
|
+
props: {
|
26
|
+
modelValue?: (Type extends "number" ? number : string) | undefined;
|
27
|
+
title?: string | undefined;
|
28
|
+
description?: string | undefined;
|
29
|
+
validate?: ValidateFn | ValidateFn[] | undefined;
|
30
|
+
type?: Type | undefined;
|
31
|
+
placeholder?: string | undefined;
|
32
|
+
loading?: boolean | undefined;
|
33
|
+
disabled?: boolean | undefined;
|
34
|
+
skeleton?: boolean | undefined;
|
35
|
+
textarea?: boolean | undefined;
|
36
|
+
name?: string | undefined;
|
37
|
+
mono?: boolean | undefined;
|
38
|
+
textSecure?: boolean | undefined;
|
39
|
+
placeholderSecure?: boolean | undefined;
|
40
|
+
maxLength?: number | undefined;
|
41
|
+
required?: boolean | undefined;
|
42
|
+
hasChanges?: boolean | undefined;
|
43
|
+
errorMessage?: string | undefined;
|
44
|
+
noMargin?: boolean | undefined;
|
45
|
+
resize?: boolean | undefined;
|
46
|
+
allowPaste?: boolean | undefined;
|
47
|
+
icon?: SVGComponent | undefined;
|
48
|
+
};
|
49
|
+
expose(exposed: {}): void;
|
50
|
+
attrs: any;
|
51
|
+
slots: {
|
52
|
+
title?(_: {}): any;
|
53
|
+
right?(_: {}): any;
|
54
|
+
};
|
55
|
+
emit: (e: 'update:modelValue', value: (Type extends "number" ? number : string) | undefined) => void;
|
56
|
+
}, "attrs" | "slots" | "emit"> | undefined, __VLS_setup?: {
|
57
|
+
props: {
|
58
|
+
modelValue?: (Type extends "number" ? number : string) | undefined;
|
59
|
+
title?: string | undefined;
|
60
|
+
description?: string | undefined;
|
61
|
+
validate?: ValidateFn | ValidateFn[] | undefined;
|
62
|
+
type?: Type | undefined;
|
63
|
+
placeholder?: string | undefined;
|
64
|
+
loading?: boolean | undefined;
|
65
|
+
disabled?: boolean | undefined;
|
66
|
+
skeleton?: boolean | undefined;
|
67
|
+
textarea?: boolean | undefined;
|
68
|
+
name?: string | undefined;
|
69
|
+
mono?: boolean | undefined;
|
70
|
+
textSecure?: boolean | undefined;
|
71
|
+
placeholderSecure?: boolean | undefined;
|
72
|
+
maxLength?: number | undefined;
|
73
|
+
required?: boolean | undefined;
|
74
|
+
hasChanges?: boolean | undefined;
|
75
|
+
errorMessage?: string | undefined;
|
76
|
+
noMargin?: boolean | undefined;
|
77
|
+
resize?: boolean | undefined;
|
78
|
+
allowPaste?: boolean | undefined;
|
79
|
+
icon?: SVGComponent | undefined;
|
80
|
+
};
|
81
|
+
expose(exposed: {}): void;
|
82
|
+
attrs: any;
|
83
|
+
slots: {
|
84
|
+
title?(_: {}): any;
|
85
|
+
right?(_: {}): any;
|
86
|
+
};
|
87
|
+
emit: (e: 'update:modelValue', value: (Type extends "number" ? number : string) | undefined) => void;
|
88
|
+
}) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
89
|
+
[key: string]: any;
|
90
|
+
}> & {
|
91
|
+
__ctx?: {
|
92
|
+
props: {
|
93
|
+
modelValue?: (Type extends "number" ? number : string) | undefined;
|
94
|
+
title?: string | undefined;
|
95
|
+
description?: string | undefined;
|
96
|
+
validate?: ValidateFn | ValidateFn[] | undefined;
|
97
|
+
type?: Type | undefined;
|
98
|
+
placeholder?: string | undefined;
|
99
|
+
loading?: boolean | undefined;
|
100
|
+
disabled?: boolean | undefined;
|
101
|
+
skeleton?: boolean | undefined;
|
102
|
+
textarea?: boolean | undefined;
|
103
|
+
name?: string | undefined;
|
104
|
+
mono?: boolean | undefined;
|
105
|
+
textSecure?: boolean | undefined;
|
106
|
+
placeholderSecure?: boolean | undefined;
|
107
|
+
maxLength?: number | undefined;
|
108
|
+
required?: boolean | undefined;
|
109
|
+
hasChanges?: boolean | undefined;
|
110
|
+
errorMessage?: string | undefined;
|
111
|
+
noMargin?: boolean | undefined;
|
112
|
+
resize?: boolean | undefined;
|
113
|
+
allowPaste?: boolean | undefined;
|
114
|
+
icon?: SVGComponent | undefined;
|
115
|
+
};
|
116
|
+
expose(exposed: {}): void;
|
117
|
+
attrs: any;
|
118
|
+
slots: {
|
119
|
+
title?(_: {}): any;
|
120
|
+
right?(_: {}): any;
|
121
|
+
};
|
122
|
+
emit: (e: 'update:modelValue', value: (Type extends "number" ? number : string) | undefined) => void;
|
123
|
+
} | undefined;
|
124
|
+
};
|
125
|
+
export default _default;
|
126
|
+
//# sourceMappingURL=WInputAsync.vue.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"WInputAsync.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Input/WInputAsync.vue.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBA4YuC,IAAI;WACpC,GAAG;;uBAzDkB,GAAG;uBACH,GAAG;;cAmDzB,mBAAmB,mEAAkC,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;yBAIxB,IAAI;WACpC,GAAG;;uBAzDkB,GAAG;uBACH,GAAG;;cAmDzB,mBAAmB,mEAAkC,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BAIxB,IAAI;eACpC,GAAG;;2BAzDkB,GAAG;2BACH,GAAG;;kBAmDzB,mBAAmB,mEAAkC,IAAI;;;AA7X/D,wBAsYkE"}
|