eco-vue-js 0.5.26 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (309) hide show
  1. package/dist/assets/icons/sax/IconClose.svg.js +26 -0
  2. package/dist/assets/icons/sax/IconEdit.svg.js +24 -0
  3. package/dist/assets/icons/sax/IconSlash.svg.js +27 -0
  4. package/dist/components/ActionsBar/WActionsBar.vue.d.ts +129 -2
  5. package/dist/components/ActionsBar/WActionsBar.vue.d.ts.map +1 -1
  6. package/dist/components/ActionsBar/WActionsBar.vue.js +1 -2
  7. package/dist/components/BottomSheet/WBottomSheet.vue.d.ts +20 -15
  8. package/dist/components/BottomSheet/WBottomSheet.vue.d.ts.map +1 -1
  9. package/dist/components/BottomSheet/WBottomSheet.vue.js +2 -4
  10. package/dist/components/Button/WButton.vue.d.ts +20 -17
  11. package/dist/components/Button/WButton.vue.d.ts.map +1 -1
  12. package/dist/components/Button/WButton.vue.js +1 -2
  13. package/dist/components/Button/WButtonAction.vue.d.ts +21 -18
  14. package/dist/components/Button/WButtonAction.vue.d.ts.map +1 -1
  15. package/dist/components/Button/WButtonCopy.vue.d.ts +3 -3
  16. package/dist/components/Button/WButtonCopy.vue.d.ts.map +1 -1
  17. package/dist/components/Button/WButtonCopy.vue.js +9 -43
  18. package/dist/components/Button/WButtonDropdown.vue.d.ts +33 -25
  19. package/dist/components/Button/WButtonDropdown.vue.d.ts.map +1 -1
  20. package/dist/components/Button/WButtonDropdown.vue.js +12 -9
  21. package/dist/components/Button/WButtonGroup.vue.d.ts +17 -110
  22. package/dist/components/Button/WButtonGroup.vue.d.ts.map +1 -1
  23. package/dist/components/Button/WButtonGroup.vue.js +68 -44
  24. package/dist/components/Button/WButtonMore.vue.d.ts +14 -12
  25. package/dist/components/Button/WButtonMore.vue.d.ts.map +1 -1
  26. package/dist/components/Button/WButtonMore.vue.js +1 -2
  27. package/dist/components/Button/WButtonMoreItem.vue.d.ts +19 -16
  28. package/dist/components/Button/WButtonMoreItem.vue.d.ts.map +1 -1
  29. package/dist/components/Button/WButtonSelection.vue.d.ts +16 -16
  30. package/dist/components/Button/WButtonSelection.vue.d.ts.map +1 -1
  31. package/dist/components/Button/WButtonSelectionAction.vue.d.ts +8 -8
  32. package/dist/components/Button/WButtonSelectionAction.vue.d.ts.map +1 -1
  33. package/dist/components/Button/models/semanticTypeStylesMap.d.ts +1 -0
  34. package/dist/components/Button/types.d.ts +33 -0
  35. package/dist/components/Button/types.d.ts.map +1 -0
  36. package/dist/components/Checkbox/WCheckbox.vue.d.ts +34 -32
  37. package/dist/components/Checkbox/WCheckbox.vue.d.ts.map +1 -1
  38. package/dist/components/Checkbox/WCheckbox.vue.js +1 -2
  39. package/dist/components/Chip/WChip.vue.d.ts +19 -16
  40. package/dist/components/Chip/WChip.vue.d.ts.map +1 -1
  41. package/dist/components/ClickOutside/WClickOutside.vue.d.ts +7 -5
  42. package/dist/components/ClickOutside/WClickOutside.vue.d.ts.map +1 -1
  43. package/dist/components/ClickOutside/WClickOutside.vue.js +3 -6
  44. package/dist/components/Counter/WCounter.vue.d.ts +15 -15
  45. package/dist/components/Counter/WCounter.vue.d.ts.map +1 -1
  46. package/dist/components/Counter/WCounter.vue.js +1 -2
  47. package/dist/components/DatePicker/WDatePicker.vue.d.ts +6 -5
  48. package/dist/components/DatePicker/WDatePicker.vue.d.ts.map +1 -1
  49. package/dist/components/DatePicker/WDatePicker.vue.js +1 -2
  50. package/dist/components/DatePicker/WDatePickerSingle.vue.d.ts +6 -6
  51. package/dist/components/DatePicker/WDatePickerSingle.vue.d.ts.map +1 -1
  52. package/dist/components/DatePicker/WDatePickerSingle.vue.js +1 -2
  53. package/dist/components/DatePicker/components/CalendarDay.vue.d.ts +10 -9
  54. package/dist/components/DatePicker/components/CalendarDay.vue.d.ts.map +1 -1
  55. package/dist/components/DatePicker/components/CalendarDay.vue.js +10 -20
  56. package/dist/components/DatePicker/components/CalendarMonth.vue.d.ts +12 -11
  57. package/dist/components/DatePicker/components/CalendarMonth.vue.d.ts.map +1 -1
  58. package/dist/components/DatePicker/components/CalendarMonth.vue.js +7 -14
  59. package/dist/components/DatePicker/components/CalendarToggle.vue.d.ts +4 -4
  60. package/dist/components/DatePicker/components/CalendarToggle.vue.d.ts.map +1 -1
  61. package/dist/components/DatePicker/components/CalendarValue.vue.d.ts +8 -8
  62. package/dist/components/DatePicker/components/CalendarValue.vue.d.ts.map +1 -1
  63. package/dist/components/DatePicker/components/CalendarValue.vue.js +1 -2
  64. package/dist/components/DatePicker/components/CalendarWeek.vue.d.ts +8 -7
  65. package/dist/components/DatePicker/components/CalendarWeek.vue.d.ts.map +1 -1
  66. package/dist/components/DatePicker/components/CalendarWeek.vue.js +7 -14
  67. package/dist/components/Dropdown/WDropdown.vue.d.ts +18 -29
  68. package/dist/components/Dropdown/WDropdown.vue.d.ts.map +1 -1
  69. package/dist/components/Dropdown/WDropdown.vue.js +7 -14
  70. package/dist/components/Dropdown/types.d.ts +11 -0
  71. package/dist/components/Dropdown/types.d.ts.map +1 -0
  72. package/dist/components/Dropdown/utils/DropdownStyle.d.ts +1 -0
  73. package/dist/components/Dropdown/utils/DropdownStyle.js +2 -4
  74. package/dist/components/DropdownMenu/WDropdownMenu.vue.d.ts +18 -33
  75. package/dist/components/DropdownMenu/WDropdownMenu.vue.d.ts.map +1 -1
  76. package/dist/components/DropdownMenu/WDropdownMenu.vue.js +3 -3
  77. package/dist/components/DropdownMenu/types.d.ts +8 -0
  78. package/dist/components/DropdownMenu/types.d.ts.map +1 -0
  79. package/dist/components/Expansion/WExpansion.vue.d.ts +20 -18
  80. package/dist/components/Expansion/WExpansion.vue.d.ts.map +1 -1
  81. package/dist/components/Expansion/WExpansionItem.vue.d.ts +24 -22
  82. package/dist/components/Expansion/WExpansionItem.vue.d.ts.map +1 -1
  83. package/dist/components/FieldWrapper/WFieldWrapper.vue.d.ts +29 -21
  84. package/dist/components/FieldWrapper/WFieldWrapper.vue.d.ts.map +1 -1
  85. package/dist/components/FieldWrapper/WFieldWrapper.vue.js +148 -18
  86. package/dist/components/FieldWrapper/types.d.ts +16 -0
  87. package/dist/components/FieldWrapper/types.d.ts.map +1 -0
  88. package/dist/components/FilePicker/WFilePicker.vue.d.ts +36 -32
  89. package/dist/components/FilePicker/WFilePicker.vue.d.ts.map +1 -1
  90. package/dist/components/FilePicker/WFilePicker.vue.js +3 -6
  91. package/dist/components/FilePicker/components/FilePickerItem.vue.d.ts +19 -17
  92. package/dist/components/FilePicker/components/FilePickerItem.vue.d.ts.map +1 -1
  93. package/dist/components/FilePicker/components/FilePickerSvg.vue.d.ts +7 -7
  94. package/dist/components/FilePicker/components/FilePickerSvg.vue.d.ts.map +1 -1
  95. package/dist/components/FilterWrapper/WFilterWrapper.vue.d.ts +16 -14
  96. package/dist/components/FilterWrapper/WFilterWrapper.vue.d.ts.map +1 -1
  97. package/dist/components/Form/WForm.vue.d.ts +21 -19
  98. package/dist/components/Form/WForm.vue.d.ts.map +1 -1
  99. package/dist/components/Form/WFormValidator.vue.d.ts +28 -26
  100. package/dist/components/Form/WFormValidator.vue.d.ts.map +1 -1
  101. package/dist/components/Form/WFormValidator.vue.js +12 -24
  102. package/dist/components/Form/models/injection.d.ts +2 -1
  103. package/dist/components/Form/models/injection.d.ts.map +1 -1
  104. package/dist/components/Form/models/utils.d.ts.map +1 -1
  105. package/dist/components/Form/models/utils.js +5 -4
  106. package/dist/components/Form/use/useFormErrorMessageMap.d.ts +4 -3
  107. package/dist/components/Form/use/useFormErrorMessageMap.d.ts.map +1 -1
  108. package/dist/components/Form/use/useFormHasChangesMap.d.ts +3 -2
  109. package/dist/components/Form/use/useFormHasChangesMap.d.ts.map +1 -1
  110. package/dist/components/Form/use/useFormInitModelMap.d.ts +2 -1
  111. package/dist/components/Form/use/useFormInitModelMap.d.ts.map +1 -1
  112. package/dist/components/Form/use/useFormInvalidateMap.d.ts +2 -1
  113. package/dist/components/Form/use/useFormInvalidateMap.d.ts.map +1 -1
  114. package/dist/components/Form/use/useFormTitleMap.d.ts +2 -1
  115. package/dist/components/Form/use/useFormTitleMap.d.ts.map +1 -1
  116. package/dist/components/Form/use/useFormValidateMap.d.ts +2 -1
  117. package/dist/components/Form/use/useFormValidateMap.d.ts.map +1 -1
  118. package/dist/components/Form/use/useFormValidateMap.js +1 -2
  119. package/dist/components/HeaderBar/WHeaderBar.vue.d.ts +27 -24
  120. package/dist/components/HeaderBar/WHeaderBar.vue.d.ts.map +1 -1
  121. package/dist/components/HeaderBar/WHeaderBar.vue.js +2 -4
  122. package/dist/components/ImageViewer/WImageViewer.vue.d.ts +9 -9
  123. package/dist/components/ImageViewer/WImageViewer.vue.d.ts.map +1 -1
  124. package/dist/components/ImageViewer/WImageViewer.vue.js +1 -2
  125. package/dist/components/ImageViewer/components/ImageModal.vue.d.ts +6 -6
  126. package/dist/components/ImageViewer/components/ImageModal.vue.d.ts.map +1 -1
  127. package/dist/components/InfiniteList/WInfiniteList.vue.d.ts +67 -237
  128. package/dist/components/InfiniteList/WInfiniteList.vue.d.ts.map +1 -1
  129. package/dist/components/InfiniteList/WInfiniteListPages.vue.d.ts +50 -187
  130. package/dist/components/InfiniteList/WInfiniteListPages.vue.d.ts.map +1 -1
  131. package/dist/components/InfiniteList/WInfiniteListPages.vue.js +20 -40
  132. package/dist/components/InfiniteList/components/EmptyComponent.vue.d.ts +4 -2
  133. package/dist/components/InfiniteList/components/EmptyComponent.vue.d.ts.map +1 -1
  134. package/dist/components/InfiniteList/components/InfiniteListButton.vue.d.ts +2 -2
  135. package/dist/components/InfiniteList/components/InfiniteListButton.vue.d.ts.map +1 -1
  136. package/dist/components/InfiniteList/components/InfiniteListPage.vue.d.ts +57 -209
  137. package/dist/components/InfiniteList/components/InfiniteListPage.vue.d.ts.map +1 -1
  138. package/dist/components/InfiniteList/components/InfiniteListPage.vue.js +21 -42
  139. package/dist/components/InfiniteList/components/InfiniteListPageSelectItem.vue.d.ts +18 -16
  140. package/dist/components/InfiniteList/components/InfiniteListPageSelectItem.vue.d.ts.map +1 -1
  141. package/dist/components/InfiniteList/components/InfiniteListPageSelection.vue.d.ts +19 -43
  142. package/dist/components/InfiniteList/components/InfiniteListPageSelection.vue.d.ts.map +1 -1
  143. package/dist/components/InfiniteList/components/InfiniteListPageSelection.vue.js +2 -4
  144. package/dist/components/InfiniteList/components/InfiniteListPageTitle.vue.d.ts +13 -23
  145. package/dist/components/InfiniteList/components/InfiniteListPageTitle.vue.d.ts.map +1 -1
  146. package/dist/components/InfiniteList/components/InfiniteListScroll.vue.d.ts +14 -12
  147. package/dist/components/InfiniteList/components/InfiniteListScroll.vue.d.ts.map +1 -1
  148. package/dist/components/InfiniteList/components/InfiniteListScroll.vue.js +1 -2
  149. package/dist/components/InfiniteList/models/injection.d.ts +8 -7
  150. package/dist/components/InfiniteList/models/injection.d.ts.map +1 -1
  151. package/dist/components/InfiniteList/models/utils.js +2 -4
  152. package/dist/components/InfiniteList/use/useInfiniteListHeader.d.ts +5 -5
  153. package/dist/components/InfiniteList/use/useInfiniteListHeader.js +4 -2
  154. package/dist/components/InfiniteList/use/useRefetchNextPages.d.ts +1 -1
  155. package/dist/components/InfiniteList/use/useRefetchNextPages.js +1 -2
  156. package/dist/components/InfiniteList/use/useSelected.d.ts +6 -5
  157. package/dist/components/InfiniteList/use/useSelected.d.ts.map +1 -1
  158. package/dist/components/InfiniteList/use/useSelected.js +13 -26
  159. package/dist/components/InfoCard/WInfoCard.vue.d.ts +16 -14
  160. package/dist/components/InfoCard/WInfoCard.vue.d.ts.map +1 -1
  161. package/dist/components/InfoCard/WInfoCardNegative.vue.d.ts +16 -13
  162. package/dist/components/InfoCard/WInfoCardNegative.vue.d.ts.map +1 -1
  163. package/dist/components/Input/WInput.vue.d.ts +41 -199
  164. package/dist/components/Input/WInput.vue.d.ts.map +1 -1
  165. package/dist/components/Input/WInput.vue.js +137 -227
  166. package/dist/components/Input/WInputAsync.vue.d.ts +16 -94
  167. package/dist/components/Input/WInputAsync.vue.d.ts.map +1 -1
  168. package/dist/components/Input/WInputAsync.vue.js +118 -104
  169. package/dist/components/Input/WInputDate.vue.d.ts +41 -8
  170. package/dist/components/Input/WInputDate.vue.d.ts.map +1 -1
  171. package/dist/components/Input/WInputDate.vue.js +66 -14
  172. package/dist/components/Input/WInputOptions.vue.d.ts +18 -125
  173. package/dist/components/Input/WInputOptions.vue.d.ts.map +1 -1
  174. package/dist/components/Input/WInputOptions.vue.js +64 -53
  175. package/dist/components/Input/WInputSuggest.vue.d.ts +49 -207
  176. package/dist/components/Input/WInputSuggest.vue.d.ts.map +1 -1
  177. package/dist/components/Input/WInputSuggest.vue.js +71 -57
  178. package/dist/components/Input/components/InputActions.vue.d.ts +34 -28
  179. package/dist/components/Input/components/InputActions.vue.d.ts.map +1 -1
  180. package/dist/components/Input/components/InputActions.vue.js +49 -84
  181. package/dist/components/Input/components/InputActionsButton.vue.d.ts +35 -0
  182. package/dist/components/Input/components/InputActionsButton.vue.d.ts.map +1 -0
  183. package/dist/components/Input/components/InputActionsButton.vue.js +41 -0
  184. package/dist/components/Input/components/InputActionsButton.vue2.js +5 -0
  185. package/dist/components/Input/types.d.ts +45 -0
  186. package/dist/components/Input/types.d.ts.map +1 -0
  187. package/dist/components/Link/WLink.vue.d.ts +19 -16
  188. package/dist/components/Link/WLink.vue.d.ts.map +1 -1
  189. package/dist/components/Link/WLinkArrow.vue.d.ts +12 -9
  190. package/dist/components/Link/WLinkArrow.vue.d.ts.map +1 -1
  191. package/dist/components/ListCard/WListCard.vue.d.ts +27 -25
  192. package/dist/components/ListCard/WListCard.vue.d.ts.map +1 -1
  193. package/dist/components/ListCard/WListCardField.vue.d.ts +17 -14
  194. package/dist/components/ListCard/WListCardField.vue.d.ts.map +1 -1
  195. package/dist/components/MenuItem/WMenuItem.vue.d.ts +19 -16
  196. package/dist/components/MenuItem/WMenuItem.vue.d.ts.map +1 -1
  197. package/dist/components/Modal/WModal.vue.d.ts +1 -1
  198. package/dist/components/Modal/WModal.vue.d.ts.map +1 -1
  199. package/dist/components/Modal/WModal.vue.js +2 -4
  200. package/dist/components/Modal/WModalStepper.vue.d.ts +18 -16
  201. package/dist/components/Modal/WModalStepper.vue.d.ts.map +1 -1
  202. package/dist/components/Modal/WModalWrapper.vue.d.ts +14 -12
  203. package/dist/components/Modal/WModalWrapper.vue.d.ts.map +1 -1
  204. package/dist/components/Modal/components/ModalCloseButton.vue.d.ts +2 -2
  205. package/dist/components/Modal/components/ModalCloseButton.vue.d.ts.map +1 -1
  206. package/dist/components/Modal/modals/Confirm/ConfirmModal.vue.d.ts +19 -18
  207. package/dist/components/Modal/modals/Confirm/ConfirmModal.vue.d.ts.map +1 -1
  208. package/dist/components/Modal/modals/Confirm/ConfirmModal.vue2.js +2 -4
  209. package/dist/components/Modal/{modals/Confirm/types.d.ts → types.d.ts} +4 -3
  210. package/dist/components/Modal/types.d.ts.map +1 -0
  211. package/dist/components/Nav/WNavBar.vue.d.ts +7 -5
  212. package/dist/components/Nav/WNavBar.vue.d.ts.map +1 -1
  213. package/dist/components/Nav/WNavItem.vue.d.ts +16 -13
  214. package/dist/components/Nav/WNavItem.vue.d.ts.map +1 -1
  215. package/dist/components/Nav/WNavItem.vue.js +1 -2
  216. package/dist/components/Nav/WNavItemExpand.vue.d.ts +15 -12
  217. package/dist/components/Nav/WNavItemExpand.vue.d.ts.map +1 -1
  218. package/dist/components/Nav/WNavItemExpand.vue.js +3 -0
  219. package/dist/components/Nav/WNavItemTransition.vue.d.ts +4 -2
  220. package/dist/components/Nav/WNavItemTransition.vue.d.ts.map +1 -1
  221. package/dist/components/Notify/WNotify.vue.d.ts +1 -1
  222. package/dist/components/Notify/WNotify.vue.d.ts.map +1 -1
  223. package/dist/components/Notify/WNotify.vue.js +1 -2
  224. package/dist/components/Notify/components/NotifyCard.vue.d.ts +15 -14
  225. package/dist/components/Notify/components/NotifyCard.vue.d.ts.map +1 -1
  226. package/dist/components/Notify/components/NotifyCard.vue.js +2 -4
  227. package/dist/components/Notify/models/types.d.ts +3 -2
  228. package/dist/components/Select/WSelect.vue.d.ts +41 -188
  229. package/dist/components/Select/WSelect.vue.d.ts.map +1 -1
  230. package/dist/components/Select/WSelect.vue.js +74 -66
  231. package/dist/components/Select/WSelectAsync.vue.d.ts +32 -207
  232. package/dist/components/Select/WSelectAsync.vue.d.ts.map +1 -1
  233. package/dist/components/Select/WSelectAsync.vue.js +78 -60
  234. package/dist/components/Select/WSelectAsyncList.vue.d.ts +33 -111
  235. package/dist/components/Select/WSelectAsyncList.vue.d.ts.map +1 -1
  236. package/dist/components/Select/WSelectAsyncSingle.vue.d.ts +24 -166
  237. package/dist/components/Select/WSelectAsyncSingle.vue.d.ts.map +1 -1
  238. package/dist/components/Select/WSelectAsyncSingle.vue.js +93 -82
  239. package/dist/components/Select/WSelectSingle.vue.d.ts +25 -149
  240. package/dist/components/Select/WSelectSingle.vue.d.ts.map +1 -1
  241. package/dist/components/Select/WSelectSingle.vue.js +84 -70
  242. package/dist/components/Select/components/SelectAsyncList.vue.d.ts +43 -133
  243. package/dist/components/Select/components/SelectAsyncList.vue.d.ts.map +1 -1
  244. package/dist/components/Select/components/SelectAsyncList.vue.js +7 -14
  245. package/dist/components/Select/components/SelectAsyncPrefix.vue.d.ts +37 -104
  246. package/dist/components/Select/components/SelectAsyncPrefix.vue.d.ts.map +1 -1
  247. package/dist/components/Select/components/SelectAsyncPrefixPage.vue.d.ts +37 -102
  248. package/dist/components/Select/components/SelectAsyncPrefixPage.vue.d.ts.map +1 -1
  249. package/dist/components/Select/components/SelectAsyncPrefixPage.vue.js +1 -2
  250. package/dist/components/Select/components/SelectOption.vue.d.ts +45 -132
  251. package/dist/components/Select/components/SelectOption.vue.d.ts.map +1 -1
  252. package/dist/components/Select/components/SelectOption.vue.js +12 -24
  253. package/dist/components/Select/components/SelectOptionPrefix.vue.d.ts +23 -52
  254. package/dist/components/Select/components/SelectOptionPrefix.vue.d.ts.map +1 -1
  255. package/dist/components/Select/types.d.ts +47 -0
  256. package/dist/components/Select/types.d.ts.map +1 -0
  257. package/dist/components/Skeleton/WSkeleton.vue.d.ts +1 -1
  258. package/dist/components/Skeleton/WSkeleton.vue.d.ts.map +1 -1
  259. package/dist/components/Spinner/WSpinner.vue.d.ts +1 -1
  260. package/dist/components/Spinner/WSpinner.vue.d.ts.map +1 -1
  261. package/dist/components/Tabs/WTabs.vue.d.ts +22 -24
  262. package/dist/components/Tabs/WTabs.vue.d.ts.map +1 -1
  263. package/dist/components/Tabs/WTabs.vue.js +6 -12
  264. package/dist/components/Tabs/WTabsColumns.vue.d.ts +3 -3
  265. package/dist/components/Tabs/WTabsColumns.vue.d.ts.map +1 -1
  266. package/dist/components/Tabs/components/TabItem.vue.d.ts +14 -12
  267. package/dist/components/Tabs/components/TabItem.vue.d.ts.map +1 -1
  268. package/dist/components/Tabs/components/TabItem.vue.js +3 -6
  269. package/dist/components/Tabs/models/injection.d.ts +2 -1
  270. package/dist/components/Tabs/models/injection.d.ts.map +1 -1
  271. package/dist/components/Tabs/use/useTabItemActiveListener.js +1 -2
  272. package/dist/components/Toggle/WToggle.vue.d.ts +19 -50
  273. package/dist/components/Toggle/WToggle.vue.d.ts.map +1 -1
  274. package/dist/components/Toggle/WToggle.vue.js +1 -2
  275. package/dist/components/Tooltip/WTooltip.vue.d.ts +15 -15
  276. package/dist/components/Tooltip/WTooltip.vue.d.ts.map +1 -1
  277. package/dist/components/Tooltip/WTooltip.vue.js +4 -8
  278. package/dist/components/Tooltip/WTooltipContainer.vue.d.ts +1 -1
  279. package/dist/components/Tooltip/WTooltipContainer.vue.d.ts.map +1 -1
  280. package/dist/components/Tooltip/WTooltipContainer.vue.js +1 -2
  281. package/dist/components/Tooltip/components/TooltipContainer.vue.d.ts +22 -19
  282. package/dist/components/Tooltip/components/TooltipContainer.vue.d.ts.map +1 -1
  283. package/dist/components/Tooltip/components/TooltipContainer.vue.js +5 -10
  284. package/dist/imports/componentsPlugin.d.ts +64 -63
  285. package/dist/imports/iconsSax.d.ts +3 -0
  286. package/dist/imports/iconsSax.d.ts.map +1 -1
  287. package/dist/imports/iconsSax.js +3 -0
  288. package/dist/main.d.ts +1 -0
  289. package/dist/main.d.ts.map +1 -1
  290. package/dist/main.js +1 -0
  291. package/dist/utils/DOMListenerContainer.js +2 -4
  292. package/dist/utils/Modal.d.ts +4 -3
  293. package/dist/utils/Modal.d.ts.map +1 -1
  294. package/dist/utils/Notify.d.ts +5 -4
  295. package/dist/utils/Notify.d.ts.map +1 -1
  296. package/dist/utils/Tooltip.d.ts +2 -1
  297. package/dist/utils/dateTime.d.ts.map +1 -1
  298. package/dist/utils/dateTime.js +28 -56
  299. package/dist/utils/useCopy.d.ts +8 -0
  300. package/dist/utils/useCopy.d.ts.map +1 -0
  301. package/dist/utils/useCopy.js +56 -0
  302. package/dist/utils/useDefaultQuery.d.ts +4 -3
  303. package/dist/utils/useDefaultQuery.d.ts.map +1 -1
  304. package/dist/utils/utils.d.ts.map +1 -1
  305. package/dist/utils/utils.js +10 -20
  306. package/package.json +43 -19
  307. package/tailwind-base/plugins/default.cjs +6 -0
  308. package/tailwind-base/theme/sizes.cjs +2 -0
  309. package/dist/components/Modal/modals/Confirm/types.d.ts.map +0 -1
@@ -1,46 +1,66 @@
1
- import { defineComponent, ref, computed, openBlock, createBlock, unref, withModifiers, createSlots, withCtx, renderSlot, createCommentVNode, createVNode, resolveDynamicComponent, nextTick } from 'vue';
1
+ import { defineComponent, ref, computed, openBlock, createBlock, mergeProps, unref, withModifiers, createSlots, withCtx, renderSlot, createCommentVNode, createVNode, resolveDynamicComponent, nextTick } from 'vue';
2
2
  import { getIsMobile } from '../../utils/mobile.js';
3
3
  import _sfc_main$1 from '../Input/WInputSuggest.vue.js';
4
4
  import _sfc_main$2 from './components/SelectAsyncPrefix.vue.js';
5
5
  import _sfc_main$3 from './components/SelectAsyncList.vue.js';
6
6
 
7
7
  const _sfc_main = /* @__PURE__ */ defineComponent({
8
+ ...{ inheritAttrs: false },
8
9
  __name: "WSelectAsync",
9
10
  props: {
10
- modelValue: {},
11
- search: {},
12
11
  useQueryFn: {},
13
- useQueryFnPrefix: { default: void 0 },
12
+ useQueryFnPrefix: {},
14
13
  isInvalidPage: {},
15
14
  queryParams: {},
16
- title: { default: void 0 },
17
- mobileTitle: { default: void 0 },
18
- description: { default: void 0 },
19
- loading: { type: Boolean },
20
- emptyStub: { default: void 0 },
21
- maxSearchLength: { default: void 0 },
22
- optionComponent: { default: void 0 },
15
+ optionComponent: {},
16
+ previewData: {},
17
+ createdData: {},
18
+ valueGetter: { type: Function, default: (data) => data.id },
19
+ valueQueryKey: { default: "id__in" },
20
+ queryOptions: {},
21
+ modelValue: {},
22
+ search: {},
23
+ emptyStub: { default: "No match" },
23
24
  disableClear: { type: Boolean },
24
25
  hidePrefix: { type: Boolean },
26
+ allowCreate: { type: Boolean },
27
+ hideOptionIcon: { type: Boolean },
28
+ mobileTitle: {},
29
+ persist: { type: Boolean },
30
+ type: {},
31
+ textarea: { type: Boolean },
32
+ resize: { type: Boolean },
33
+ placeholder: {},
34
+ icon: {},
35
+ size: {},
36
+ maxLength: {},
37
+ name: {},
38
+ autocomplete: {},
39
+ autofocus: { type: Boolean },
25
40
  readonly: { type: Boolean },
26
- disabled: { type: Boolean },
41
+ disabledActions: { type: Boolean },
42
+ loading: { type: Boolean },
43
+ spellcheck: { type: Boolean },
44
+ customBackspaceHandle: { type: Boolean },
45
+ textSecure: { type: Boolean },
46
+ placeholderSecure: { type: Boolean },
47
+ allowPaste: { type: Boolean },
48
+ title: {},
49
+ description: {},
50
+ errorMessage: {},
51
+ tooltipText: {},
52
+ mono: { type: Boolean },
53
+ hasChanges: { type: Boolean },
27
54
  skeleton: { type: Boolean },
28
- searchSize: { default: void 0 },
29
- allowCreate: { type: Boolean },
30
- errorMessage: { default: void 0 },
55
+ disabled: { type: Boolean },
31
56
  required: { type: Boolean },
32
- hasChanges: { type: Boolean },
33
- placeholder: { default: void 0 },
34
57
  noMargin: { type: Boolean },
35
- icon: { default: void 0 },
36
- mono: { type: Boolean },
37
- autofocus: { type: Boolean },
38
- previewData: { default: void 0 },
39
- createdData: { default: void 0 },
40
- hideOptionIcon: { type: Boolean },
41
- valueGetter: { type: Function, default: (data) => data.id },
42
- valueQueryKey: { default: "id__in" },
43
- queryOptions: { default: void 0 }
58
+ allowCopy: { type: Boolean },
59
+ teleport: { type: Boolean },
60
+ noZIndex: { type: Boolean },
61
+ maxHeight: {},
62
+ maxWidth: {},
63
+ horizontalAlign: {}
44
64
  },
45
65
  emits: ["select", "unselect", "update:search", "update:modelValue", "create:option"],
46
66
  setup(__props, { expose: __expose, emit: __emit }) {
@@ -59,8 +79,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
59
79
  };
60
80
  let deletePressTimeout = null;
61
81
  const captureDoubleDelete = () => {
62
- if (!props.modelValue.length || props.search.length)
63
- return;
82
+ if (!props.modelValue.length || props.search.length) return;
64
83
  if (deletePressTimeout) {
65
84
  unselect(props.modelValue[props.modelValue.length - 1]);
66
85
  clearTimeout(deletePressTimeout);
@@ -72,23 +91,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
72
91
  }
73
92
  };
74
93
  const select = (item) => {
75
- if (isDisabled.value)
76
- return;
94
+ if (isDisabled.value) return;
77
95
  emit("select", item);
78
96
  };
79
97
  const unselect = (item) => {
80
- if (isDisabled.value)
81
- return;
98
+ if (isDisabled.value) return;
82
99
  emit("unselect", item);
83
100
  };
84
101
  const create = () => {
85
- if (isDisabled.value)
86
- return;
102
+ if (isDisabled.value) return;
87
103
  emit("create:option", props.search);
88
104
  };
89
105
  const updateSelected = (value) => {
90
- if (isDisabled.value)
91
- return;
106
+ if (isDisabled.value) return;
92
107
  emit("update:modelValue", value);
93
108
  };
94
109
  const focus = () => {
@@ -106,27 +121,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
106
121
  blur
107
122
  });
108
123
  return (_ctx, _cache) => {
109
- return openBlock(), createBlock(_sfc_main$1, {
124
+ return openBlock(), createBlock(_sfc_main$1, mergeProps({
110
125
  ref_key: "input",
111
- ref: input,
112
- title: _ctx.title,
113
- "mobile-title": _ctx.mobileTitle,
114
- description: _ctx.description,
115
- "model-value": _ctx.search,
116
- "max-length": _ctx.maxSearchLength,
126
+ ref: input
127
+ }, {
128
+ ...props,
129
+ modelValue: _ctx.search,
117
130
  loading: _ctx.loading || isFetchingPrefix.value,
118
- "hide-input": unref(isMobile) ? !focused.value : !isOpen.value,
119
- readonly: _ctx.readonly,
120
- skeleton: _ctx.skeleton,
121
- size: _ctx.searchSize,
122
- "error-message": _ctx.errorMessage,
123
- required: _ctx.required,
124
- disabled: _ctx.disabled,
125
- "has-changes": _ctx.hasChanges,
126
- placeholder: _ctx.placeholder,
127
- "no-margin": _ctx.noMargin,
128
- icon: _ctx.icon,
129
- autofocus: _ctx.autofocus,
131
+ hideInput: unref(isMobile) ? !focused.value : !isOpen.value
132
+ }, {
133
+ class: _ctx.$attrs.class,
130
134
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => !_ctx.loading && !isFetchingPrefix.value && _ctx.$emit("update:search", $event ?? "")),
131
135
  "onKeypress:enter": _cache[2] || (_cache[2] = withModifiers(($event) => list.value?.selectCursor(), ["stop", "prevent"])),
132
136
  "onKeypress:up": _cache[3] || (_cache[3] = withModifiers(($event) => list.value?.cursorUp(), ["prevent"])),
@@ -139,7 +143,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
139
143
  }),
140
144
  onFocus: _cache[7] || (_cache[7] = ($event) => focused.value = true),
141
145
  onBlur: _cache[8] || (_cache[8] = ($event) => focused.value = false)
142
- }, createSlots({
146
+ }), createSlots({
143
147
  prefix: withCtx(({ unclickable }) => [
144
148
  (_ctx.hidePrefix ? unref(isMobile) ? unclickable || !focused.value : !isOpen.value : true) ? (openBlock(), createBlock(_sfc_main$2, {
145
149
  key: 0,
@@ -151,7 +155,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
151
155
  "disable-clear": _ctx.disableClear,
152
156
  "preview-data": _ctx.previewData,
153
157
  "created-data": _ctx.createdData,
154
- "value-getter": _ctx.valueGetter ?? ((item) => item.id),
158
+ "value-getter": _ctx.valueGetter,
155
159
  "value-query-key": _ctx.valueQueryKey,
156
160
  onUnselect: unselect,
157
161
  "onUpdate:fetching": _cache[0] || (_cache[0] = ($event) => {
@@ -181,7 +185,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
181
185
  "is-invalid-page": _ctx.isInvalidPage,
182
186
  loading: _ctx.loading || isFetchingPrefix.value,
183
187
  disabled: isDisabled.value,
184
- "empty-stub": _ctx.emptyStub ?? "No match",
188
+ "empty-stub": _ctx.emptyStub,
185
189
  "allow-create": _ctx.allowCreate && _ctx.search !== "",
186
190
  "hide-option-icon": _ctx.hideOptionIcon,
187
191
  "value-getter": _ctx.valueGetter,
@@ -212,14 +216,28 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
212
216
  ]),
213
217
  _: 2
214
218
  }, [
219
+ _ctx.$slots.title ? {
220
+ name: "title",
221
+ fn: withCtx(() => [
222
+ renderSlot(_ctx.$slots, "title")
223
+ ]),
224
+ key: "0"
225
+ } : void 0,
226
+ _ctx.$slots.subtitle ? {
227
+ name: "subtitle",
228
+ fn: withCtx(() => [
229
+ renderSlot(_ctx.$slots, "subtitle")
230
+ ]),
231
+ key: "1"
232
+ } : void 0,
215
233
  _ctx.$slots.right?.()?.length ? {
216
234
  name: "right",
217
235
  fn: withCtx(() => [
218
236
  renderSlot(_ctx.$slots, "right")
219
237
  ]),
220
- key: "0"
238
+ key: "2"
221
239
  } : void 0
222
- ]), 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", "autofocus"]);
240
+ ]), 1040, ["class"]);
223
241
  };
224
242
  }
225
243
  });
@@ -1,134 +1,56 @@
1
- declare const _default: <Model extends string | number, Data extends DefaultData, ApiError, QueryParams>(__VLS_props: {
2
- title?: string | undefined;
3
- onSelect?: ((value: Model) => any) | undefined;
4
- "onUpdate:count"?: ((value: number) => any) | undefined;
5
- valueGetter?: ((data: Data) => Model) | undefined;
6
- modelValue: Model[];
7
- skeleton?: boolean | undefined;
8
- onUnselect?: ((value: Model) => any) | undefined;
9
- queryParams: QueryParams;
10
- selectOnly?: boolean | undefined;
11
- unselectOnly?: boolean | undefined;
12
- useQueryFn: UseQueryPaginated<Data, ApiError, QueryParams>;
13
- isInvalidPage: (error: unknown) => boolean;
14
- emptyStub?: string | undefined;
15
- queryOptions?: Partial<Parameters<UseQueryPaginated<Data, ApiError, QueryParams>>[1]>;
16
- excludeParams?: (keyof QueryParams)[] | undefined;
17
- "onUpdate:model-value"?: ((value: Model[]) => any) | undefined;
18
- hideOptionIcon?: boolean | undefined;
19
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
20
- attrs: any;
21
- slots: Readonly<{
22
- default?: ((props: {
23
- option: Data | null;
24
- selected: boolean;
25
- skeleton: boolean;
26
- model: boolean;
27
- }) => void) | undefined;
28
- }> & {
29
- default?: ((props: {
30
- option: Data | null;
31
- selected: boolean;
32
- skeleton: boolean;
33
- model: boolean;
34
- }) => void) | undefined;
35
- };
36
- emit: {
37
- (e: 'select', value: Model): void;
38
- (e: 'unselect', value: Model): void;
39
- (e: 'update:model-value', value: Model[]): void;
40
- (e: 'update:count', value: number): void;
41
- };
42
- } | undefined, __VLS_expose?: ((exposed: import('vue').ShallowUnwrapRef<{}>) => void) | undefined, __VLS_setup?: Promise<{
43
- props: {
44
- title?: string | undefined;
1
+ declare const _default: <Model extends number | string, Data extends DefaultData, ApiError, QueryParams>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_Prettify<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
2
+ props: __VLS_Prettify<Pick<Partial<{}> & Omit<{
45
3
  onSelect?: ((value: Model) => any) | undefined;
46
4
  "onUpdate:count"?: ((value: number) => any) | undefined;
47
- valueGetter?: ((data: Data) => Model) | undefined;
48
- modelValue: Model[];
49
- skeleton?: boolean | undefined;
50
5
  onUnselect?: ((value: Model) => any) | undefined;
51
- queryParams: QueryParams;
52
- selectOnly?: boolean | undefined;
53
- unselectOnly?: boolean | undefined;
6
+ "onUpdate:model-value"?: ((value: Model[]) => any) | undefined;
7
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & Readonly<import('vue').ExtractPropTypes<{}>> & {
8
+ onSelect?: ((value: Model) => any) | undefined;
9
+ "onUpdate:count"?: ((value: number) => any) | undefined;
10
+ onUnselect?: ((value: Model) => any) | undefined;
11
+ "onUpdate:model-value"?: ((value: Model[]) => any) | undefined;
12
+ }, never>, "onSelect" | "onUpdate:count" | "onUnselect" | "onUpdate:model-value"> & {
13
+ title?: string;
14
+ emptyStub?: string;
15
+ modelValue: Model[];
54
16
  useQueryFn: UseQueryPaginated<Data, ApiError, QueryParams>;
55
17
  isInvalidPage: (error: unknown) => boolean;
56
- emptyStub?: string | undefined;
18
+ queryParams: QueryParams;
19
+ skeleton?: boolean;
20
+ excludeParams?: (keyof QueryParams)[];
21
+ selectOnly?: boolean;
22
+ unselectOnly?: boolean;
23
+ hideOptionIcon?: boolean;
24
+ valueGetter?: (data: Data) => Model;
57
25
  queryOptions?: Partial<Parameters<UseQueryPaginated<Data, ApiError, QueryParams>>[1]>;
58
- excludeParams?: (keyof QueryParams)[] | undefined;
59
- "onUpdate:model-value"?: ((value: Model[]) => any) | undefined;
60
- hideOptionIcon?: boolean | undefined;
61
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
26
+ }> & import('vue').PublicProps;
62
27
  expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
63
28
  attrs: any;
64
- slots: Readonly<{
65
- default?: ((props: {
29
+ slots: ReturnType<() => Readonly<{
30
+ default?: (props: {
66
31
  option: Data | null;
67
32
  selected: boolean;
68
33
  skeleton: boolean;
69
34
  model: boolean;
70
- }) => void) | undefined;
35
+ }) => void;
71
36
  }> & {
72
- default?: ((props: {
37
+ default?: (props: {
73
38
  option: Data | null;
74
39
  selected: boolean;
75
40
  skeleton: boolean;
76
41
  model: boolean;
77
- }) => void) | undefined;
78
- };
42
+ }) => void;
43
+ }>;
79
44
  emit: {
80
- (e: 'select', value: Model): void;
81
- (e: 'unselect', value: Model): void;
82
- (e: 'update:model-value', value: Model[]): void;
83
- (e: 'update:count', value: number): void;
84
- };
85
- }>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
45
+ (e: "select", value: Model): void;
46
+ (e: "unselect", value: Model): void;
47
+ (e: "update:model-value", value: Model[]): void;
48
+ (e: "update:count", value: number): void;
49
+ } & {};
50
+ }>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
86
51
  [key: string]: any;
87
52
  }> & {
88
- __ctx?: {
89
- props: {
90
- title?: string | undefined;
91
- onSelect?: ((value: Model) => any) | undefined;
92
- "onUpdate:count"?: ((value: number) => any) | undefined;
93
- valueGetter?: ((data: Data) => Model) | undefined;
94
- modelValue: Model[];
95
- skeleton?: boolean | undefined;
96
- onUnselect?: ((value: Model) => any) | undefined;
97
- queryParams: QueryParams;
98
- selectOnly?: boolean | undefined;
99
- unselectOnly?: boolean | undefined;
100
- useQueryFn: UseQueryPaginated<Data, ApiError, QueryParams>;
101
- isInvalidPage: (error: unknown) => boolean;
102
- emptyStub?: string | undefined;
103
- queryOptions?: Partial<Parameters<UseQueryPaginated<Data, ApiError, QueryParams>>[1]>;
104
- excludeParams?: (keyof QueryParams)[] | undefined;
105
- "onUpdate:model-value"?: ((value: Model[]) => any) | undefined;
106
- hideOptionIcon?: boolean | undefined;
107
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
108
- expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
109
- attrs: any;
110
- slots: Readonly<{
111
- default?: ((props: {
112
- option: Data | null;
113
- selected: boolean;
114
- skeleton: boolean;
115
- model: boolean;
116
- }) => void) | undefined;
117
- }> & {
118
- default?: ((props: {
119
- option: Data | null;
120
- selected: boolean;
121
- skeleton: boolean;
122
- model: boolean;
123
- }) => void) | undefined;
124
- };
125
- emit: {
126
- (e: 'select', value: Model): void;
127
- (e: 'unselect', value: Model): void;
128
- (e: 'update:model-value', value: Model[]): void;
129
- (e: 'update:count', value: number): void;
130
- };
131
- } | undefined;
53
+ __ctx?: Awaited<typeof __VLS_setup>;
132
54
  };
133
55
  export default _default;
134
56
  type __VLS_Prettify<T> = {
@@ -1 +1 @@
1
- {"version":3,"file":"WSelectAsyncList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Select/WSelectAsyncList.vue"],"names":[],"mappings":"AAwDA;;;;;0BAqPyB,IAAI,KAAK,KAAK;gBATvB,KAAK,EAAE;;;iBAGN,WAAW;;;gBAFZ,kBAAkB,IAAI,EAAE,QAAQ,EAAE,WAAW,CAAC;2BACnC,OAAO,KAAK,OAAO;;mBAQ3B,QAAQ,WAAW,kBAAkB,IAAI,EAAE,QAAQ,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;;;;;WAQlF,GAAG;;2BA7MU;YAAC,MAAM,EAAE,IAAI,GAAG,IAAI,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAC;YAAC,KAAK,EAAE,OAAO,CAAA;SAAC,KAAK,IAAI;;2BAApF;YAAC,MAAM,EAAE,IAAI,GAAG,IAAI,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAC;YAAC,KAAK,EAAE,OAAO,CAAA;SAAC,KAAK,IAAI;;;YATlG,QAAQ,SAAS,KAAK,GAAG,IAAI;YAC7B,UAAU,SAAS,KAAK,GAAG,IAAI;YAC/B,oBAAoB,SAAS,KAAK,EAAE,GAAG,IAAI;YAC3C,cAAc,SAAS,MAAM,GAAG,IAAI;;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AC,KAAK,EAAE,OAAO,KAAK,OAAO;qBAC7B,WAAW;mBACb,OAAO;wBACF,CAAC,MAAM,WAAW,CAAC,EAAE;qBACxB,OAAO;uBACL,OAAO;yBACL,OAAO;sBACV,CAAC,IAAI,EAAE,IAAI,KAAK,KAAK;uBACpB,OAAO,CAAC,UAAU,CAAC,iBAAiB,CAAC,IAAI,EAAE,QAAQ,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;KAgNP,CAAC,4BAA2B;oBAC3F,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;WACH,UAAU;kBA5LR,CAAC,KAAK,EAAE;YAAC,MAAM,EAAE,IAAI,GAAG,IAAI,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAC;YAAC,KAAK,EAAE,OAAO,CAAA;SAAC,KAAK,IAAI;;kBAA5F,CAAC,KAAK,EAAE;YAAC,MAAM,EAAE,IAAI,GAAG,IAAI,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAC;YAAC,KAAK,EAAE,OAAO,CAAA;SAAC,KAAK,IAAI;MA4L7D;UAClC;YAtMH,QAAQ,SAAS,KAAK,GAAG,IAAI;YAC7B,UAAU,SAAS,KAAK,GAAG,IAAI;YAC/B,oBAAoB,SAAS,KAAK,EAAE,GAAG,IAAI;YAC3C,cAAc,SAAS,MAAM,GAAG,IAAI;UAmMO;;;;YAGL,OAAO,CAAC,OAAO,WAAW,CAAC;;AA1OvE,wBA0O4E;AAY5E,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -1,183 +1,41 @@
1
- import { type Component } from 'vue';
2
- declare const _default: <Model extends string | number, Data extends DefaultData, ApiError, QueryParams>(__VLS_props: {
3
- required?: boolean | undefined;
4
- search: string;
5
- title?: string | undefined;
6
- icon?: SVGComponent | undefined;
7
- disabled?: boolean | undefined;
8
- loading?: boolean | undefined;
9
- "onUpdate:modelValue"?: ((value: Model | null) => any) | undefined;
10
- valueGetter?: ((data: Data) => Model) | undefined;
11
- modelValue: Model | null;
12
- readonly?: boolean | undefined;
13
- skeleton?: boolean | undefined;
14
- description?: string | undefined;
15
- placeholder?: string | undefined;
16
- errorMessage?: string | undefined;
17
- hasChanges?: boolean | undefined;
18
- allowClear?: boolean | undefined;
19
- autofocus?: boolean | undefined;
20
- mono?: boolean | undefined;
21
- noMargin?: boolean | undefined;
22
- mobileTitle?: string | undefined;
23
- "onUpdate:search"?: ((value: string) => any) | undefined;
24
- queryParams: QueryParams;
25
- useQueryFn: UseQueryPaginated<Data, ApiError, QueryParams>;
26
- isInvalidPage: (error: unknown) => boolean;
27
- emptyStub?: string | undefined;
28
- queryOptions?: Partial<Parameters<UseQueryPaginated<Data, ApiError, QueryParams>>[1]>;
29
- hideOptionIcon?: boolean | undefined;
30
- maxSearchLength?: number | undefined;
31
- optionComponent?: Component<{
32
- option: Data;
33
- selected?: boolean | undefined;
34
- model?: boolean | undefined;
35
- }> | undefined;
36
- searchSize?: number | undefined;
37
- "onCreate:option"?: ((value: string) => any) | undefined;
38
- allowCreate?: boolean | undefined;
39
- previewData?: Data | undefined;
40
- createdData?: Data | undefined;
41
- valueQueryKey?: string | undefined;
42
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
43
- attrs: any;
44
- slots: {
45
- option?(_: {
46
- option: Data | null;
47
- selected: boolean;
48
- model: boolean;
49
- }): any;
50
- right?(_: {}): any;
51
- };
52
- emit: {
53
- (e: 'update:modelValue', value: Model | null): void;
54
- (e: 'update:search', value: string): void;
55
- (e: 'create:option', value: string): void;
56
- };
57
- } | undefined, __VLS_expose?: ((exposed: import("vue").ShallowUnwrapRef<{
58
- blur: () => void;
59
- }>) => void) | undefined, __VLS_setup?: Promise<{
60
- props: {
61
- required?: boolean | undefined;
62
- search: string;
63
- title?: string | undefined;
64
- icon?: SVGComponent | undefined;
65
- disabled?: boolean | undefined;
66
- loading?: boolean | undefined;
67
- "onUpdate:modelValue"?: ((value: Model | null) => any) | undefined;
68
- valueGetter?: ((data: Data) => Model) | undefined;
69
- modelValue: Model | null;
70
- readonly?: boolean | undefined;
71
- skeleton?: boolean | undefined;
72
- description?: string | undefined;
73
- placeholder?: string | undefined;
74
- errorMessage?: string | undefined;
75
- hasChanges?: boolean | undefined;
76
- allowClear?: boolean | undefined;
77
- autofocus?: boolean | undefined;
78
- mono?: boolean | undefined;
79
- noMargin?: boolean | undefined;
80
- mobileTitle?: string | undefined;
1
+ import { SelectAsyncSingleProps } from './types';
2
+
3
+ declare const _default: <Model extends number | string, Data extends DefaultData, ApiError, QueryParams, AllowClear extends boolean = false>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_Prettify<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
+ props: __VLS_Prettify<Pick<Partial<{}> & Omit<{
5
+ "onUpdate:modelValue"?: ((value: AllowClear extends true ? Model | null : Model) => any) | undefined;
6
+ "onUpdate:search"?: ((value: string) => any) | undefined;
7
+ "onCreate:option"?: ((value: string) => any) | undefined;
8
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & Readonly<import('vue').ExtractPropTypes<{}>> & {
9
+ "onUpdate:modelValue"?: ((value: AllowClear extends true ? Model | null : Model) => any) | undefined;
81
10
  "onUpdate:search"?: ((value: string) => any) | undefined;
82
- queryParams: QueryParams;
83
- useQueryFn: UseQueryPaginated<Data, ApiError, QueryParams>;
84
- isInvalidPage: (error: unknown) => boolean;
85
- emptyStub?: string | undefined;
86
- queryOptions?: Partial<Parameters<UseQueryPaginated<Data, ApiError, QueryParams>>[1]>;
87
- hideOptionIcon?: boolean | undefined;
88
- maxSearchLength?: number | undefined;
89
- optionComponent?: Component<{
90
- option: Data;
91
- selected?: boolean | undefined;
92
- model?: boolean | undefined;
93
- }> | undefined;
94
- searchSize?: number | undefined;
95
11
  "onCreate:option"?: ((value: string) => any) | undefined;
96
- allowCreate?: boolean | undefined;
97
- previewData?: Data | undefined;
98
- createdData?: Data | undefined;
99
- valueQueryKey?: string | undefined;
100
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
101
- expose(exposed: import("vue").ShallowUnwrapRef<{
12
+ }, never>, "onUpdate:modelValue" | "onUpdate:search" | "onCreate:option"> & SelectAsyncSingleProps<Model, Data, ApiError, QueryParams, AllowClear>> & import('vue').PublicProps;
13
+ expose(exposed: import('vue').ShallowUnwrapRef<{
102
14
  blur: () => void;
103
15
  }>): void;
104
16
  attrs: any;
105
- slots: {
17
+ slots: ReturnType<() => {
18
+ title?(_: {}): any;
19
+ subtitle?(_: {}): any;
106
20
  option?(_: {
107
21
  option: Data | null;
108
22
  selected: boolean;
109
23
  model: boolean;
110
24
  }): any;
111
25
  right?(_: {}): any;
112
- };
26
+ }>;
113
27
  emit: {
114
- (e: 'update:modelValue', value: Model | null): void;
115
- (e: 'update:search', value: string): void;
116
- (e: 'create:option', value: string): void;
117
- };
118
- }>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
28
+ (e: "update:modelValue", value: AllowClear extends true ? Model | null : Model): void;
29
+ (e: "update:search", value: string): void;
30
+ (e: "create:option", value: string): void;
31
+ } & {};
32
+ }>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
119
33
  [key: string]: any;
120
34
  }> & {
121
- __ctx?: {
122
- props: {
123
- required?: boolean | undefined;
124
- search: string;
125
- title?: string | undefined;
126
- icon?: SVGComponent | undefined;
127
- disabled?: boolean | undefined;
128
- loading?: boolean | undefined;
129
- "onUpdate:modelValue"?: ((value: Model | null) => any) | undefined;
130
- valueGetter?: ((data: Data) => Model) | undefined;
131
- modelValue: Model | null;
132
- readonly?: boolean | undefined;
133
- skeleton?: boolean | undefined;
134
- description?: string | undefined;
135
- placeholder?: string | undefined;
136
- errorMessage?: string | undefined;
137
- hasChanges?: boolean | undefined;
138
- allowClear?: boolean | undefined;
139
- autofocus?: boolean | undefined;
140
- mono?: boolean | undefined;
141
- noMargin?: boolean | undefined;
142
- mobileTitle?: string | undefined;
143
- "onUpdate:search"?: ((value: string) => any) | undefined;
144
- queryParams: QueryParams;
145
- useQueryFn: UseQueryPaginated<Data, ApiError, QueryParams>;
146
- isInvalidPage: (error: unknown) => boolean;
147
- emptyStub?: string | undefined;
148
- queryOptions?: Partial<Parameters<UseQueryPaginated<Data, ApiError, QueryParams>>[1]>;
149
- hideOptionIcon?: boolean | undefined;
150
- maxSearchLength?: number | undefined;
151
- optionComponent?: Component<{
152
- option: Data;
153
- selected?: boolean | undefined;
154
- model?: boolean | undefined;
155
- }> | undefined;
156
- searchSize?: number | undefined;
157
- "onCreate:option"?: ((value: string) => any) | undefined;
158
- allowCreate?: boolean | undefined;
159
- previewData?: Data | undefined;
160
- createdData?: Data | undefined;
161
- valueQueryKey?: string | undefined;
162
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
163
- expose(exposed: import("vue").ShallowUnwrapRef<{
164
- blur: () => void;
165
- }>): void;
166
- attrs: any;
167
- slots: {
168
- option?(_: {
169
- option: Data | null;
170
- selected: boolean;
171
- model: boolean;
172
- }): any;
173
- right?(_: {}): any;
174
- };
175
- emit: {
176
- (e: 'update:modelValue', value: Model | null): void;
177
- (e: 'update:search', value: string): void;
178
- (e: 'create:option', value: string): void;
179
- };
180
- } | undefined;
35
+ __ctx?: Awaited<typeof __VLS_setup>;
181
36
  };
182
37
  export default _default;
38
+ type __VLS_Prettify<T> = {
39
+ [K in keyof T]: T[K];
40
+ } & {};
183
41
  //# sourceMappingURL=WSelectAsyncSingle.v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