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,187 @@
|
|
1
|
+
import { type Component } from 'vue';
|
2
|
+
declare const _default: <Item extends string | number = string>(__VLS_props: {
|
3
|
+
modelValue: Item[];
|
4
|
+
search: string;
|
5
|
+
options: Item[];
|
6
|
+
title?: string | undefined;
|
7
|
+
mobileTitle?: string | undefined;
|
8
|
+
description?: string | undefined;
|
9
|
+
loading?: boolean | undefined;
|
10
|
+
emptyStub?: string | undefined;
|
11
|
+
maxSearchLength?: number | undefined;
|
12
|
+
optionComponent?: Component<{
|
13
|
+
option: Item;
|
14
|
+
selected?: boolean | undefined;
|
15
|
+
model?: boolean | undefined;
|
16
|
+
}> | undefined;
|
17
|
+
disableClear?: boolean | undefined;
|
18
|
+
hidePrefix?: boolean | undefined;
|
19
|
+
readonly?: boolean | undefined;
|
20
|
+
disabled?: boolean | undefined;
|
21
|
+
skeleton?: boolean | undefined;
|
22
|
+
searchSize?: number | undefined;
|
23
|
+
allowCreate?: boolean | undefined;
|
24
|
+
errorMessage?: string | undefined;
|
25
|
+
required?: boolean | undefined;
|
26
|
+
hasChanges?: boolean | undefined;
|
27
|
+
placeholder?: string | undefined;
|
28
|
+
noMargin?: boolean | undefined;
|
29
|
+
icon?: SVGComponent | undefined;
|
30
|
+
mono?: boolean | undefined;
|
31
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: Pick<{
|
32
|
+
props: {
|
33
|
+
modelValue: Item[];
|
34
|
+
search: string;
|
35
|
+
options: Item[];
|
36
|
+
title?: string | undefined;
|
37
|
+
mobileTitle?: string | undefined;
|
38
|
+
description?: string | undefined;
|
39
|
+
loading?: boolean | undefined;
|
40
|
+
emptyStub?: string | undefined;
|
41
|
+
maxSearchLength?: number | undefined;
|
42
|
+
optionComponent?: Component<{
|
43
|
+
option: Item;
|
44
|
+
selected?: boolean | undefined;
|
45
|
+
model?: boolean | undefined;
|
46
|
+
}> | undefined;
|
47
|
+
disableClear?: boolean | undefined;
|
48
|
+
hidePrefix?: boolean | undefined;
|
49
|
+
readonly?: boolean | undefined;
|
50
|
+
disabled?: boolean | undefined;
|
51
|
+
skeleton?: boolean | undefined;
|
52
|
+
searchSize?: number | undefined;
|
53
|
+
allowCreate?: boolean | undefined;
|
54
|
+
errorMessage?: string | undefined;
|
55
|
+
required?: boolean | undefined;
|
56
|
+
hasChanges?: boolean | undefined;
|
57
|
+
placeholder?: string | undefined;
|
58
|
+
noMargin?: boolean | undefined;
|
59
|
+
icon?: SVGComponent | undefined;
|
60
|
+
mono?: boolean | undefined;
|
61
|
+
};
|
62
|
+
expose(exposed: {
|
63
|
+
focus: () => void;
|
64
|
+
blur: () => void;
|
65
|
+
}): void;
|
66
|
+
attrs: any;
|
67
|
+
slots: {
|
68
|
+
option?(_: {
|
69
|
+
option: string;
|
70
|
+
selected: boolean;
|
71
|
+
model: boolean;
|
72
|
+
}): any;
|
73
|
+
right?(_: {}): any;
|
74
|
+
};
|
75
|
+
emit: {
|
76
|
+
(e: 'select', item: string | number): void;
|
77
|
+
(e: 'unselect', item: string | number): void;
|
78
|
+
(e: 'update:search', value: string): void;
|
79
|
+
(e: 'create:option', value: string): void;
|
80
|
+
};
|
81
|
+
}, "attrs" | "slots" | "emit"> | undefined, __VLS_setup?: {
|
82
|
+
props: {
|
83
|
+
modelValue: Item[];
|
84
|
+
search: string;
|
85
|
+
options: Item[];
|
86
|
+
title?: string | undefined;
|
87
|
+
mobileTitle?: string | undefined;
|
88
|
+
description?: string | undefined;
|
89
|
+
loading?: boolean | undefined;
|
90
|
+
emptyStub?: string | undefined;
|
91
|
+
maxSearchLength?: number | undefined;
|
92
|
+
optionComponent?: Component<{
|
93
|
+
option: Item;
|
94
|
+
selected?: boolean | undefined;
|
95
|
+
model?: boolean | undefined;
|
96
|
+
}> | undefined;
|
97
|
+
disableClear?: boolean | undefined;
|
98
|
+
hidePrefix?: boolean | undefined;
|
99
|
+
readonly?: boolean | undefined;
|
100
|
+
disabled?: boolean | undefined;
|
101
|
+
skeleton?: boolean | undefined;
|
102
|
+
searchSize?: number | undefined;
|
103
|
+
allowCreate?: boolean | undefined;
|
104
|
+
errorMessage?: string | undefined;
|
105
|
+
required?: boolean | undefined;
|
106
|
+
hasChanges?: boolean | undefined;
|
107
|
+
placeholder?: string | undefined;
|
108
|
+
noMargin?: boolean | undefined;
|
109
|
+
icon?: SVGComponent | undefined;
|
110
|
+
mono?: boolean | undefined;
|
111
|
+
};
|
112
|
+
expose(exposed: {
|
113
|
+
focus: () => void;
|
114
|
+
blur: () => void;
|
115
|
+
}): void;
|
116
|
+
attrs: any;
|
117
|
+
slots: {
|
118
|
+
option?(_: {
|
119
|
+
option: string;
|
120
|
+
selected: boolean;
|
121
|
+
model: boolean;
|
122
|
+
}): any;
|
123
|
+
right?(_: {}): any;
|
124
|
+
};
|
125
|
+
emit: {
|
126
|
+
(e: 'select', item: string | number): void;
|
127
|
+
(e: 'unselect', item: string | number): void;
|
128
|
+
(e: 'update:search', value: string): void;
|
129
|
+
(e: 'create:option', value: string): void;
|
130
|
+
};
|
131
|
+
}) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
132
|
+
[key: string]: any;
|
133
|
+
}> & {
|
134
|
+
__ctx?: {
|
135
|
+
props: {
|
136
|
+
modelValue: Item[];
|
137
|
+
search: string;
|
138
|
+
options: Item[];
|
139
|
+
title?: string | undefined;
|
140
|
+
mobileTitle?: string | undefined;
|
141
|
+
description?: string | undefined;
|
142
|
+
loading?: boolean | undefined;
|
143
|
+
emptyStub?: string | undefined;
|
144
|
+
maxSearchLength?: number | undefined;
|
145
|
+
optionComponent?: Component<{
|
146
|
+
option: Item;
|
147
|
+
selected?: boolean | undefined;
|
148
|
+
model?: boolean | undefined;
|
149
|
+
}> | undefined;
|
150
|
+
disableClear?: boolean | undefined;
|
151
|
+
hidePrefix?: boolean | undefined;
|
152
|
+
readonly?: boolean | undefined;
|
153
|
+
disabled?: boolean | undefined;
|
154
|
+
skeleton?: boolean | undefined;
|
155
|
+
searchSize?: number | undefined;
|
156
|
+
allowCreate?: boolean | undefined;
|
157
|
+
errorMessage?: string | undefined;
|
158
|
+
required?: boolean | undefined;
|
159
|
+
hasChanges?: boolean | undefined;
|
160
|
+
placeholder?: string | undefined;
|
161
|
+
noMargin?: boolean | undefined;
|
162
|
+
icon?: SVGComponent | undefined;
|
163
|
+
mono?: boolean | undefined;
|
164
|
+
};
|
165
|
+
expose(exposed: {
|
166
|
+
focus: () => void;
|
167
|
+
blur: () => void;
|
168
|
+
}): void;
|
169
|
+
attrs: any;
|
170
|
+
slots: {
|
171
|
+
option?(_: {
|
172
|
+
option: string;
|
173
|
+
selected: boolean;
|
174
|
+
model: boolean;
|
175
|
+
}): any;
|
176
|
+
right?(_: {}): any;
|
177
|
+
};
|
178
|
+
emit: {
|
179
|
+
(e: 'select', item: string | number): void;
|
180
|
+
(e: 'unselect', item: string | number): void;
|
181
|
+
(e: 'update:search', value: string): void;
|
182
|
+
(e: 'create:option', value: string): void;
|
183
|
+
};
|
184
|
+
} | undefined;
|
185
|
+
};
|
186
|
+
export default _default;
|
187
|
+
//# sourceMappingURL=WSelect.vue.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"WSelect.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Select/WSelect.vue.ts"],"names":[],"mappings":"AAEA,OAAO,EAAwC,KAAK,SAAS,EAAC,MAAM,KAAK,CAAA;;;YAolB/D,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBAAN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAgCuB,IAAI;WACpC,GAAG;;;;;;YAtEmB,GAAG;uBACJ,GAAG;;;YA6DzB,QAAQ,QAAQ,MAAM,GAAG,MAAM,GAAG,IAAI;YACtC,UAAU,QAAQ,MAAM,GAAG,MAAM,GAAG,IAAI;YACxC,eAAe,SAAS,MAAM,GAAG,IAAI;YACrC,eAAe,SAAS,MAAM,GAAG,IAAI;;;;;gBA5BjC,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAgCuB,IAAI;WACpC,GAAG;;;;;;YAtEmB,GAAG;uBACJ,GAAG;;;YA6DzB,QAAQ,QAAQ,MAAM,GAAG,MAAM,GAAG,IAAI;YACtC,UAAU,QAAQ,MAAM,GAAG,MAAM,GAAG,IAAI;YACxC,eAAe,SAAS,MAAM,GAAG,IAAI;YACrC,eAAe,SAAS,MAAM,GAAG,IAAI;;;;;;;;oBA5BjC,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAgCuB,IAAI;eACpC,GAAG;;;;;;gBAtEmB,GAAG;2BACJ,GAAG;;;gBA6DzB,QAAQ,QAAQ,MAAM,GAAG,MAAM,GAAG,IAAI;gBACtC,UAAU,QAAQ,MAAM,GAAG,MAAM,GAAG,IAAI;gBACxC,eAAe,SAAS,MAAM,GAAG,IAAI;gBACrC,eAAe,SAAS,MAAM,GAAG,IAAI;;;;AAzmB3C,wBAknBkE"}
|
@@ -0,0 +1,318 @@
|
|
1
|
+
import { defineComponent, ref, computed, watch, toRef, nextTick, openBlock, createBlock, unref, withModifiers, createSlots, withCtx, createElementBlock, Fragment, renderList, normalizeClass, renderSlot, resolveDynamicComponent, createVNode, createCommentVNode, createElementVNode, toDisplayString } from 'vue';
|
2
|
+
import _sfc_main$2 from './components/SelectOption.vue.js';
|
3
|
+
import IconCancel from '../../assets/icons/default/IconCancel.svg.js';
|
4
|
+
import { getIsMobile } from '../../utils/mobile.js';
|
5
|
+
import { debounce } from '../../utils/utils.js';
|
6
|
+
import _sfc_main$1 from '../Input/WInputSuggest.vue.js';
|
7
|
+
|
8
|
+
const _hoisted_1 = ["onClick"];
|
9
|
+
const _hoisted_2 = ["onClick"];
|
10
|
+
const _hoisted_3 = {
|
11
|
+
key: 0,
|
12
|
+
class: "py-2 px-[1.0625rem] first:pt-4 last:pb-4"
|
13
|
+
};
|
14
|
+
const _hoisted_4 = { class: "select-none cursor-default w-select-field sm-not:px-3" };
|
15
|
+
const _hoisted_5 = /* @__PURE__ */ createElementVNode("span", { class: "w-select-field pr-2 sm-not:px-3" }, " Create: ", -1);
|
16
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
17
|
+
__name: "WSelect",
|
18
|
+
props: {
|
19
|
+
modelValue: {},
|
20
|
+
search: {},
|
21
|
+
options: {},
|
22
|
+
title: {},
|
23
|
+
mobileTitle: {},
|
24
|
+
description: {},
|
25
|
+
loading: { type: Boolean },
|
26
|
+
emptyStub: {},
|
27
|
+
maxSearchLength: {},
|
28
|
+
optionComponent: {},
|
29
|
+
disableClear: { type: Boolean },
|
30
|
+
hidePrefix: { type: Boolean },
|
31
|
+
readonly: { type: Boolean },
|
32
|
+
disabled: { type: Boolean },
|
33
|
+
skeleton: { type: Boolean },
|
34
|
+
searchSize: {},
|
35
|
+
allowCreate: { type: Boolean },
|
36
|
+
errorMessage: {},
|
37
|
+
required: { type: Boolean },
|
38
|
+
hasChanges: { type: Boolean },
|
39
|
+
placeholder: {},
|
40
|
+
noMargin: { type: Boolean },
|
41
|
+
icon: {},
|
42
|
+
mono: { type: Boolean }
|
43
|
+
},
|
44
|
+
emits: ["select", "unselect", "update:search", "create:option"],
|
45
|
+
setup(__props, { expose: __expose, emit }) {
|
46
|
+
const props = __props;
|
47
|
+
const isOpen = ref(false);
|
48
|
+
const input = ref();
|
49
|
+
const cursor = ref(-1);
|
50
|
+
const isCursorLocked = ref(false);
|
51
|
+
const lastIndex = computed(() => props.allowCreate ? props.options.length : props.options.length - 1);
|
52
|
+
const isMobile = getIsMobile();
|
53
|
+
const focused = ref(false);
|
54
|
+
const loadingOptionIndex = ref(null);
|
55
|
+
const isDisabled = computed(() => props.loading || props.readonly || props.disabled);
|
56
|
+
const close = () => {
|
57
|
+
isOpen.value = false;
|
58
|
+
focused.value = false;
|
59
|
+
};
|
60
|
+
const setLoadingOptionIndex = (value) => {
|
61
|
+
if (isDisabled.value)
|
62
|
+
return;
|
63
|
+
loadingOptionIndex.value = value;
|
64
|
+
};
|
65
|
+
const unlockCursor = debounce(() => {
|
66
|
+
isCursorLocked.value = false;
|
67
|
+
}, 50);
|
68
|
+
const lockCursor = () => {
|
69
|
+
isCursorLocked.value = true;
|
70
|
+
unlockCursor();
|
71
|
+
};
|
72
|
+
const setCursor = (value) => {
|
73
|
+
if (isCursorLocked.value)
|
74
|
+
return;
|
75
|
+
cursor.value = value;
|
76
|
+
};
|
77
|
+
const cursorUp = () => {
|
78
|
+
if (isDisabled.value)
|
79
|
+
return;
|
80
|
+
lockCursor();
|
81
|
+
cursor.value = !props.options.length ? 0 : cursor.value < 1 ? lastIndex.value : cursor.value - 1;
|
82
|
+
};
|
83
|
+
const cursorDown = () => {
|
84
|
+
if (isDisabled.value)
|
85
|
+
return;
|
86
|
+
lockCursor();
|
87
|
+
cursor.value = !props.options.length ? 0 : cursor.value >= lastIndex.value ? 0 : cursor.value + 1;
|
88
|
+
};
|
89
|
+
const selectCursor = () => {
|
90
|
+
if (isDisabled.value)
|
91
|
+
return;
|
92
|
+
const value = cursor.value !== -1 ? props.options[cursor.value] : void 0;
|
93
|
+
if (value) {
|
94
|
+
setLoadingOptionIndex(cursor.value);
|
95
|
+
if (props.modelValue.includes(value))
|
96
|
+
unselect(value);
|
97
|
+
else
|
98
|
+
select(value);
|
99
|
+
} else {
|
100
|
+
if (props.search)
|
101
|
+
createOption(props.search);
|
102
|
+
}
|
103
|
+
};
|
104
|
+
let deletePressTimeout = null;
|
105
|
+
const captureDoubleDelete = () => {
|
106
|
+
if (!props.modelValue.length || props.search.length)
|
107
|
+
return;
|
108
|
+
if (deletePressTimeout) {
|
109
|
+
unselect(props.modelValue[props.modelValue.length - 1]);
|
110
|
+
clearTimeout(deletePressTimeout);
|
111
|
+
deletePressTimeout = null;
|
112
|
+
} else {
|
113
|
+
deletePressTimeout = setTimeout(() => {
|
114
|
+
deletePressTimeout = null;
|
115
|
+
}, 500);
|
116
|
+
}
|
117
|
+
};
|
118
|
+
const select = (item) => {
|
119
|
+
if (isDisabled.value)
|
120
|
+
return;
|
121
|
+
emit("select", item);
|
122
|
+
};
|
123
|
+
const unselect = (item) => {
|
124
|
+
if (isDisabled.value)
|
125
|
+
return;
|
126
|
+
emit("unselect", item);
|
127
|
+
};
|
128
|
+
const createOption = (item) => {
|
129
|
+
if (isDisabled.value)
|
130
|
+
return;
|
131
|
+
if (!props.allowCreate)
|
132
|
+
return;
|
133
|
+
setLoadingOptionIndex(props.options.length);
|
134
|
+
emit("create:option", item);
|
135
|
+
};
|
136
|
+
const focus = () => {
|
137
|
+
input.value?.focus();
|
138
|
+
};
|
139
|
+
const blur = () => {
|
140
|
+
input.value?.blur();
|
141
|
+
};
|
142
|
+
watch(toRef(props, "modelValue"), async () => {
|
143
|
+
await nextTick();
|
144
|
+
input.value?.updateDropdown();
|
145
|
+
});
|
146
|
+
__expose({
|
147
|
+
focus,
|
148
|
+
blur
|
149
|
+
});
|
150
|
+
return (_ctx, _cache) => {
|
151
|
+
return openBlock(), createBlock(_sfc_main$1, {
|
152
|
+
ref_key: "input",
|
153
|
+
ref: input,
|
154
|
+
title: _ctx.title,
|
155
|
+
"mobile-title": _ctx.mobileTitle,
|
156
|
+
description: _ctx.description,
|
157
|
+
"model-value": _ctx.search,
|
158
|
+
"max-length": _ctx.maxSearchLength,
|
159
|
+
loading: _ctx.loading,
|
160
|
+
"hide-input": _ctx.modelValue.length === 0 ? false : unref(isMobile) ? !focused.value : !isOpen.value,
|
161
|
+
readonly: _ctx.readonly,
|
162
|
+
skeleton: _ctx.skeleton,
|
163
|
+
size: _ctx.searchSize,
|
164
|
+
"error-message": _ctx.errorMessage,
|
165
|
+
required: _ctx.required,
|
166
|
+
disabled: _ctx.disabled,
|
167
|
+
"has-changes": _ctx.hasChanges,
|
168
|
+
placeholder: _ctx.placeholder,
|
169
|
+
"no-margin": _ctx.noMargin,
|
170
|
+
icon: _ctx.icon,
|
171
|
+
mono: _ctx.mono,
|
172
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => !_ctx.loading && _ctx.$emit("update:search", $event ?? "")),
|
173
|
+
"onKeypress:enter": withModifiers(selectCursor, ["stop", "prevent"]),
|
174
|
+
"onKeypress:up": withModifiers(cursorUp, ["prevent"]),
|
175
|
+
"onKeypress:down": withModifiers(cursorDown, ["prevent"]),
|
176
|
+
"onKeypress:delete": captureDoubleDelete,
|
177
|
+
onOpen: _cache[5] || (_cache[5] = ($event) => isOpen.value = true),
|
178
|
+
onClose: _cache[6] || (_cache[6] = ($event) => {
|
179
|
+
close();
|
180
|
+
_ctx.$emit("update:search", "");
|
181
|
+
}),
|
182
|
+
onFocus: _cache[7] || (_cache[7] = ($event) => focused.value = true),
|
183
|
+
onBlur: _cache[8] || (_cache[8] = ($event) => focused.value = false)
|
184
|
+
}, createSlots({
|
185
|
+
prefix: withCtx(({ unclickable }) => [
|
186
|
+
(_ctx.hidePrefix ? unref(isMobile) ? unclickable || !focused.value : !isOpen.value : true) ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.modelValue, (option) => {
|
187
|
+
return openBlock(), createElementBlock("div", {
|
188
|
+
key: option,
|
189
|
+
class: normalizeClass(["relative flex overflow-hidden items-center text-description group/model", {
|
190
|
+
"cursor-pointer": !_ctx.disabled,
|
191
|
+
"cursor-not-allowed opacity-50": _ctx.disabled
|
192
|
+
}])
|
193
|
+
}, [
|
194
|
+
renderSlot(_ctx.$slots, "option", {
|
195
|
+
option,
|
196
|
+
selected: true,
|
197
|
+
model: true
|
198
|
+
}, () => [
|
199
|
+
_ctx.optionComponent ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.optionComponent), {
|
200
|
+
key: 0,
|
201
|
+
option,
|
202
|
+
selected: true,
|
203
|
+
model: true
|
204
|
+
}, {
|
205
|
+
default: withCtx(() => [
|
206
|
+
!_ctx.disableClear ? (openBlock(), createElementBlock("button", {
|
207
|
+
key: 0,
|
208
|
+
class: normalizeClass(["relative flex square-5 rounded-full -my-1 -mr-2 ml-1 items-center justify-center outline-none", {
|
209
|
+
"cursor-not-allowed": _ctx.disabled,
|
210
|
+
"cursor-progress": _ctx.loading,
|
211
|
+
"cursor-pointer w-ripple w-ripple-hover ": !_ctx.loading && !_ctx.disabled
|
212
|
+
}]),
|
213
|
+
onMousedown: _cache[0] || (_cache[0] = withModifiers(() => {
|
214
|
+
}, ["stop", "prevent"])),
|
215
|
+
onClick: withModifiers(($event) => !_ctx.loading && unselect(option), ["stop", "prevent"])
|
216
|
+
}, [
|
217
|
+
createVNode(unref(IconCancel), { class: "square-3" })
|
218
|
+
], 42, _hoisted_1)) : createCommentVNode("", true)
|
219
|
+
]),
|
220
|
+
_: 2
|
221
|
+
}, 1032, ["option"])) : createCommentVNode("", true)
|
222
|
+
]),
|
223
|
+
!_ctx.optionComponent && !_ctx.disableClear ? (openBlock(), createElementBlock("button", {
|
224
|
+
key: 0,
|
225
|
+
class: normalizeClass(["relative flex square-5 rounded-full items-center justify-center outline-none", {
|
226
|
+
"cursor-not-allowed": _ctx.disabled,
|
227
|
+
"cursor-progress": _ctx.loading,
|
228
|
+
"cursor-pointer w-ripple w-ripple-hover ": !_ctx.loading && !_ctx.disabled
|
229
|
+
}]),
|
230
|
+
onMousedown: _cache[1] || (_cache[1] = withModifiers(() => {
|
231
|
+
}, ["stop", "prevent"])),
|
232
|
+
onClick: withModifiers(($event) => !_ctx.loading && unselect(option), ["stop", "prevent"])
|
233
|
+
}, [
|
234
|
+
createVNode(unref(IconCancel), { class: "square-3" })
|
235
|
+
], 42, _hoisted_2)) : createCommentVNode("", true)
|
236
|
+
], 2);
|
237
|
+
}), 128)) : createCommentVNode("", true)
|
238
|
+
]),
|
239
|
+
content: withCtx(() => [
|
240
|
+
!_ctx.options.length ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
241
|
+
createElementVNode("div", _hoisted_4, toDisplayString(_ctx.emptyStub ?? "No match"), 1)
|
242
|
+
])) : createCommentVNode("", true),
|
243
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.options, (option, index) => {
|
244
|
+
return openBlock(), createBlock(_sfc_main$2, {
|
245
|
+
key: option,
|
246
|
+
"is-selected": _ctx.modelValue.includes(option),
|
247
|
+
"is-cursor": index === cursor.value,
|
248
|
+
loading: loadingOptionIndex.value === index && _ctx.loading,
|
249
|
+
scroll: isCursorLocked.value,
|
250
|
+
class: "first:pt-4 last:pb-4",
|
251
|
+
onSelect: ($event) => {
|
252
|
+
select(option);
|
253
|
+
setLoadingOptionIndex(index);
|
254
|
+
},
|
255
|
+
onUnselect: ($event) => {
|
256
|
+
unselect(option);
|
257
|
+
setLoadingOptionIndex(index);
|
258
|
+
},
|
259
|
+
onMouseenter: ($event) => setCursor(index)
|
260
|
+
}, {
|
261
|
+
default: withCtx(({ selected }) => [
|
262
|
+
renderSlot(_ctx.$slots, "option", {
|
263
|
+
option,
|
264
|
+
selected,
|
265
|
+
model: false
|
266
|
+
}, () => [
|
267
|
+
(openBlock(), createBlock(resolveDynamicComponent(_ctx.optionComponent), {
|
268
|
+
option,
|
269
|
+
selected,
|
270
|
+
model: false
|
271
|
+
}, null, 8, ["option", "selected"]))
|
272
|
+
])
|
273
|
+
]),
|
274
|
+
_: 2
|
275
|
+
}, 1032, ["is-selected", "is-cursor", "loading", "scroll", "onSelect", "onUnselect", "onMouseenter"]);
|
276
|
+
}), 128)),
|
277
|
+
_ctx.allowCreate && _ctx.search !== "" ? (openBlock(), createBlock(_sfc_main$2, {
|
278
|
+
key: 1,
|
279
|
+
"is-selected": false,
|
280
|
+
"is-cursor": cursor.value === _ctx.options.length,
|
281
|
+
loading: loadingOptionIndex.value === _ctx.options.length && _ctx.loading,
|
282
|
+
scroll: isCursorLocked.value,
|
283
|
+
class: "first:pt-4 last:pb-4",
|
284
|
+
onSelect: _cache[2] || (_cache[2] = ($event) => createOption(_ctx.search)),
|
285
|
+
onMouseenter: _cache[3] || (_cache[3] = ($event) => setCursor(_ctx.options.length))
|
286
|
+
}, {
|
287
|
+
default: withCtx(() => [
|
288
|
+
_hoisted_5,
|
289
|
+
renderSlot(_ctx.$slots, "option", {
|
290
|
+
option: _ctx.search,
|
291
|
+
selected: false,
|
292
|
+
model: false
|
293
|
+
}, () => [
|
294
|
+
(openBlock(), createBlock(resolveDynamicComponent(_ctx.optionComponent), {
|
295
|
+
option: _ctx.search,
|
296
|
+
selected: false,
|
297
|
+
model: false
|
298
|
+
}, null, 8, ["option"]))
|
299
|
+
])
|
300
|
+
]),
|
301
|
+
_: 3
|
302
|
+
}, 8, ["is-cursor", "loading", "scroll"])) : createCommentVNode("", true)
|
303
|
+
]),
|
304
|
+
_: 2
|
305
|
+
}, [
|
306
|
+
_ctx.$slots.right?.()?.length ? {
|
307
|
+
name: "right",
|
308
|
+
fn: withCtx(() => [
|
309
|
+
renderSlot(_ctx.$slots, "right")
|
310
|
+
]),
|
311
|
+
key: "0"
|
312
|
+
} : void 0
|
313
|
+
]), 1032, ["title", "mobile-title", "description", "model-value", "max-length", "loading", "hide-input", "readonly", "skeleton", "size", "error-message", "required", "disabled", "has-changes", "placeholder", "no-margin", "icon", "mono", "onKeypress:enter", "onKeypress:up", "onKeypress:down"]);
|
314
|
+
};
|
315
|
+
}
|
316
|
+
});
|
317
|
+
|
318
|
+
export { _sfc_main as default };
|