eco-vue-js 0.7.3 → 0.8.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (368) hide show
  1. package/dist/assets/icons/default/IconAdd.svg.js +12 -15
  2. package/dist/assets/icons/default/IconArrow.svg.js +10 -12
  3. package/dist/assets/icons/default/IconAvatar.svg.js +3 -5
  4. package/dist/assets/icons/default/IconBack.svg.js +25 -29
  5. package/dist/assets/icons/default/IconCancel.svg.js +7 -9
  6. package/dist/assets/icons/default/IconCheck.svg.js +6 -8
  7. package/dist/assets/icons/default/IconDanger.svg.js +16 -20
  8. package/dist/assets/icons/default/IconDojo.svg.js +14 -17
  9. package/dist/assets/icons/default/IconEdit.svg.js +15 -18
  10. package/dist/assets/icons/default/IconFalsePositive.svg.js +13 -16
  11. package/dist/assets/icons/default/IconFeedback.svg.js +24 -29
  12. package/dist/assets/icons/default/IconFilter.svg.js +8 -10
  13. package/dist/assets/icons/default/IconInProgress.svg.js +13 -15
  14. package/dist/assets/icons/default/IconJira.svg.js +3 -5
  15. package/dist/assets/icons/default/IconLogout.svg.js +3 -5
  16. package/dist/assets/icons/default/IconMore.svg.js +20 -24
  17. package/dist/assets/icons/default/IconNotification.svg.js +8 -10
  18. package/dist/assets/icons/default/IconProfile.svg.js +18 -22
  19. package/dist/assets/icons/default/IconSearch.svg.js +6 -8
  20. package/dist/assets/icons/default/IconSettings.svg.js +16 -19
  21. package/dist/assets/icons/default/IconSort.svg.js +8 -10
  22. package/dist/assets/icons/default/IconStar.svg.js +7 -9
  23. package/dist/assets/icons/default/IconSuccess.svg.js +12 -15
  24. package/dist/assets/icons/default/IconTask.svg.js +20 -24
  25. package/dist/assets/icons/default/IconTime.svg.js +23 -27
  26. package/dist/assets/icons/default/IconWarn.svg.js +28 -33
  27. package/dist/assets/icons/sax/IconAdd.svg.js +9 -11
  28. package/dist/assets/icons/sax/IconAddCircle.svg.js +9 -11
  29. package/dist/assets/icons/sax/IconAddSquare.svg.js +9 -11
  30. package/dist/assets/icons/sax/IconAlarm.svg.js +9 -11
  31. package/dist/assets/icons/sax/IconArchiveBook.svg.js +18 -21
  32. package/dist/assets/icons/sax/IconCandle.svg.js +10 -12
  33. package/dist/assets/icons/sax/IconCelery.svg.js +26 -31
  34. package/dist/assets/icons/sax/IconChart.svg.js +9 -11
  35. package/dist/assets/icons/sax/IconCheckCircle.svg.js +16 -19
  36. package/dist/assets/icons/sax/IconClose.svg.js +9 -11
  37. package/dist/assets/icons/sax/IconCloseCircle.svg.js +9 -11
  38. package/dist/assets/icons/sax/IconCopy.svg.js +16 -19
  39. package/dist/assets/icons/sax/IconCopySuccess.svg.js +23 -27
  40. package/dist/assets/icons/sax/IconCopyright.svg.js +16 -19
  41. package/dist/assets/icons/sax/IconDedupe.svg.js +24 -28
  42. package/dist/assets/icons/sax/IconDojo.svg.js +14 -17
  43. package/dist/assets/icons/sax/IconEdit.svg.js +7 -9
  44. package/dist/assets/icons/sax/IconEditCircle.svg.js +24 -28
  45. package/dist/assets/icons/sax/IconElement.svg.js +9 -11
  46. package/dist/assets/icons/sax/IconExport.svg.js +9 -11
  47. package/dist/assets/icons/sax/IconEye.svg.js +16 -19
  48. package/dist/assets/icons/sax/IconEyeSlash.svg.js +23 -27
  49. package/dist/assets/icons/sax/IconFilter.svg.js +10 -12
  50. package/dist/assets/icons/sax/IconFilterRemove.svg.js +26 -30
  51. package/dist/assets/icons/sax/IconFinding.svg.js +9 -11
  52. package/dist/assets/icons/sax/IconFolder.svg.js +8 -10
  53. package/dist/assets/icons/sax/IconFolderCross.svg.js +16 -19
  54. package/dist/assets/icons/sax/IconJira.svg.js +9 -11
  55. package/dist/assets/icons/sax/IconKey.svg.js +17 -20
  56. package/dist/assets/icons/sax/IconKeySquare.svg.js +24 -28
  57. package/dist/assets/icons/sax/IconLayer.svg.js +23 -27
  58. package/dist/assets/icons/sax/IconLink.svg.js +10 -13
  59. package/dist/assets/icons/sax/IconLinkBold.svg.js +6 -8
  60. package/dist/assets/icons/sax/IconLinkOutline.svg.js +10 -13
  61. package/dist/assets/icons/sax/IconLogout.svg.js +30 -35
  62. package/dist/assets/icons/sax/IconMenu.svg.js +8 -10
  63. package/dist/assets/icons/sax/IconMinusCircle.svg.js +9 -11
  64. package/dist/assets/icons/sax/IconNegate.svg.js +16 -19
  65. package/dist/assets/icons/sax/IconNegativeInfo.svg.js +16 -19
  66. package/dist/assets/icons/sax/IconNote.svg.js +16 -19
  67. package/dist/assets/icons/sax/IconOutlineCheckCircle.svg.js +16 -19
  68. package/dist/assets/icons/sax/IconOutlineCloseCircle.svg.js +9 -11
  69. package/dist/assets/icons/sax/IconOutlineEdit.svg.js +25 -29
  70. package/dist/assets/icons/sax/IconOutlineFolderAdd.svg.js +16 -19
  71. package/dist/assets/icons/sax/IconOutlineRefresh.svg.js +9 -11
  72. package/dist/assets/icons/sax/IconOutlineStar.svg.js +9 -11
  73. package/dist/assets/icons/sax/IconPaste.svg.js +25 -29
  74. package/dist/assets/icons/sax/IconProfile.svg.js +16 -19
  75. package/dist/assets/icons/sax/IconRadar.svg.js +9 -11
  76. package/dist/assets/icons/sax/IconRefresh.svg.js +9 -11
  77. package/dist/assets/icons/sax/IconSearch.svg.js +9 -11
  78. package/dist/assets/icons/sax/IconSettings.svg.js +18 -21
  79. package/dist/assets/icons/sax/IconSlash.svg.js +10 -12
  80. package/dist/assets/icons/sax/IconStar.svg.js +9 -11
  81. package/dist/assets/icons/sax/IconSummary.svg.js +16 -19
  82. package/dist/assets/icons/sax/IconTag.svg.js +15 -18
  83. package/dist/assets/icons/sax/IconTask.svg.js +9 -11
  84. package/dist/assets/icons/sax/IconTime.svg.js +9 -11
  85. package/dist/assets/icons/sax/IconTrash.svg.js +9 -11
  86. package/dist/assets/icons/sax/IconUser.svg.js +9 -11
  87. package/dist/assets/icons/sax/IconVersionControl.svg.js +9 -11
  88. package/dist/assets/icons/sax/IconWeight.svg.js +16 -19
  89. package/dist/components/ActionsBar/WActionsBar.vue.d.ts +9 -129
  90. package/dist/components/ActionsBar/WActionsBar.vue.d.ts.map +1 -1
  91. package/dist/components/ActionsBar/WActionsBar.vue.js +7 -8
  92. package/dist/components/BottomSheet/WBottomSheet.vue.d.ts +25 -23
  93. package/dist/components/BottomSheet/WBottomSheet.vue.d.ts.map +1 -1
  94. package/dist/components/BottomSheet/WBottomSheet.vue.js +1 -2
  95. package/dist/components/Button/WButton.vue.d.ts +14 -41
  96. package/dist/components/Button/WButton.vue.d.ts.map +1 -1
  97. package/dist/components/Button/WButtonAction.vue.d.ts +14 -39
  98. package/dist/components/Button/WButtonAction.vue.d.ts.map +1 -1
  99. package/dist/components/Button/WButtonCopy.vue.d.ts +3 -12
  100. package/dist/components/Button/WButtonCopy.vue.d.ts.map +1 -1
  101. package/dist/components/Button/WButtonDropdown.vue.d.ts +11 -32
  102. package/dist/components/Button/WButtonDropdown.vue.d.ts.map +1 -1
  103. package/dist/components/Button/WButtonGroup.vue.d.ts +13 -13
  104. package/dist/components/Button/WButtonGroup.vue.d.ts.map +1 -1
  105. package/dist/components/Button/WButtonGroup.vue.js +12 -4
  106. package/dist/components/Button/WButtonMore.vue.d.ts +10 -14
  107. package/dist/components/Button/WButtonMore.vue.d.ts.map +1 -1
  108. package/dist/components/Button/WButtonMoreItem.vue.d.ts +11 -34
  109. package/dist/components/Button/WButtonMoreItem.vue.d.ts.map +1 -1
  110. package/dist/components/Button/WButtonSelection.vue.d.ts +22 -40
  111. package/dist/components/Button/WButtonSelection.vue.d.ts.map +1 -1
  112. package/dist/components/Button/WButtonSelection.vue.js +5 -6
  113. package/dist/components/Button/WButtonSelectionAction.vue.d.ts +6 -15
  114. package/dist/components/Button/WButtonSelectionAction.vue.d.ts.map +1 -1
  115. package/dist/components/Button/models/semanticTypeStylesMap.d.ts +0 -1
  116. package/dist/components/Button/types.d.ts +17 -7
  117. package/dist/components/Button/types.d.ts.map +1 -1
  118. package/dist/components/Checkbox/WCheckbox.vue.d.ts +16 -18
  119. package/dist/components/Checkbox/WCheckbox.vue.d.ts.map +1 -1
  120. package/dist/components/Chip/WChip.vue.d.ts +10 -15
  121. package/dist/components/Chip/WChip.vue.d.ts.map +1 -1
  122. package/dist/components/ClickOutside/WClickOutside.vue.d.ts +13 -6
  123. package/dist/components/ClickOutside/WClickOutside.vue.d.ts.map +1 -1
  124. package/dist/components/Counter/WCounter.vue.d.ts +4 -25
  125. package/dist/components/Counter/WCounter.vue.d.ts.map +1 -1
  126. package/dist/components/DatePicker/WDatePicker.vue.d.ts +6 -16
  127. package/dist/components/DatePicker/WDatePicker.vue.d.ts.map +1 -1
  128. package/dist/components/DatePicker/WDatePickerSingle.vue.d.ts +6 -15
  129. package/dist/components/DatePicker/WDatePickerSingle.vue.d.ts.map +1 -1
  130. package/dist/components/DatePicker/components/CalendarDay.vue.d.ts +7 -17
  131. package/dist/components/DatePicker/components/CalendarDay.vue.d.ts.map +1 -1
  132. package/dist/components/DatePicker/components/CalendarMonth.vue.d.ts +7 -17
  133. package/dist/components/DatePicker/components/CalendarMonth.vue.d.ts.map +1 -1
  134. package/dist/components/DatePicker/components/CalendarToggle.vue.d.ts +7 -16
  135. package/dist/components/DatePicker/components/CalendarToggle.vue.d.ts.map +1 -1
  136. package/dist/components/DatePicker/components/CalendarValue.vue.d.ts +6 -15
  137. package/dist/components/DatePicker/components/CalendarValue.vue.d.ts.map +1 -1
  138. package/dist/components/DatePicker/components/CalendarWeek.vue.d.ts +7 -17
  139. package/dist/components/DatePicker/components/CalendarWeek.vue.d.ts.map +1 -1
  140. package/dist/components/Dropdown/WDropdown.vue.d.ts +18 -21
  141. package/dist/components/Dropdown/WDropdown.vue.d.ts.map +1 -1
  142. package/dist/components/Dropdown/types.d.ts +0 -1
  143. package/dist/components/Dropdown/utils/DropdownStyle.d.ts +0 -1
  144. package/dist/components/DropdownMenu/WDropdownMenu.vue.d.ts +88 -24
  145. package/dist/components/DropdownMenu/WDropdownMenu.vue.d.ts.map +1 -1
  146. package/dist/components/DropdownMenu/types.d.ts +0 -1
  147. package/dist/components/Expansion/WExpansion.vue.d.ts +11 -29
  148. package/dist/components/Expansion/WExpansion.vue.d.ts.map +1 -1
  149. package/dist/components/Expansion/WExpansionItem.vue.d.ts +13 -17
  150. package/dist/components/Expansion/WExpansionItem.vue.d.ts.map +1 -1
  151. package/dist/components/FieldWrapper/WFieldWrapper.vue.d.ts +25 -28
  152. package/dist/components/FieldWrapper/WFieldWrapper.vue.d.ts.map +1 -1
  153. package/dist/components/FieldWrapper/WFieldWrapper.vue.js +19 -18
  154. package/dist/components/FilePicker/WFilePicker.vue.d.ts +25 -26
  155. package/dist/components/FilePicker/WFilePicker.vue.d.ts.map +1 -1
  156. package/dist/components/FilePicker/WFilePicker.vue.js +10 -12
  157. package/dist/components/FilePicker/components/FilePickerItem.vue.d.ts +14 -18
  158. package/dist/components/FilePicker/components/FilePickerItem.vue.d.ts.map +1 -1
  159. package/dist/components/FilePicker/components/FilePickerSvg.vue.d.ts +3 -12
  160. package/dist/components/FilePicker/components/FilePickerSvg.vue.d.ts.map +1 -1
  161. package/dist/components/FilterWrapper/WFilterWrapper.vue.d.ts +13 -17
  162. package/dist/components/FilterWrapper/WFilterWrapper.vue.d.ts.map +1 -1
  163. package/dist/components/FilterWrapper/WFilterWrapper.vue.js +5 -7
  164. package/dist/components/Form/WForm.vue.d.ts +15 -19
  165. package/dist/components/Form/WForm.vue.d.ts.map +1 -1
  166. package/dist/components/Form/WFormValidator.vue.d.ts +20 -22
  167. package/dist/components/Form/WFormValidator.vue.d.ts.map +1 -1
  168. package/dist/components/Form/WFormValidator.vue.js +3 -4
  169. package/dist/components/Form/models/injection.d.ts +0 -1
  170. package/dist/components/Form/use/useFormErrorMessageMap.d.ts +1 -2
  171. package/dist/components/Form/use/useFormHasChangesMap.d.ts +0 -1
  172. package/dist/components/Form/use/useFormInitModelMap.d.ts +0 -1
  173. package/dist/components/Form/use/useFormInvalidateMap.d.ts +0 -1
  174. package/dist/components/Form/use/useFormTitleMap.d.ts +0 -1
  175. package/dist/components/Form/use/useFormValidateMap.d.ts +0 -1
  176. package/dist/components/FormAsync/WFormAsyncButtonGroup.vue.d.ts +24 -0
  177. package/dist/components/FormAsync/WFormAsyncButtonGroup.vue.d.ts.map +1 -0
  178. package/dist/components/FormAsync/WFormAsyncButtonGroup.vue.js +101 -0
  179. package/dist/components/FormAsync/WFormAsyncButtonGroup.vue2.js +5 -0
  180. package/dist/components/FormAsync/WFormAsyncInput.vue.d.ts +25 -0
  181. package/dist/components/FormAsync/WFormAsyncInput.vue.d.ts.map +1 -0
  182. package/dist/components/FormAsync/WFormAsyncInput.vue.js +131 -0
  183. package/dist/components/FormAsync/WFormAsyncInput.vue2.js +5 -0
  184. package/dist/components/FormAsync/WFormAsyncSelectSingle.vue.d.ts +26 -0
  185. package/dist/components/FormAsync/WFormAsyncSelectSingle.vue.d.ts.map +1 -0
  186. package/dist/components/FormAsync/WFormAsyncSelectSingle.vue.js +139 -0
  187. package/dist/components/FormAsync/WFormAsyncSelectSingle.vue2.js +5 -0
  188. package/dist/components/FormAsync/WFormAsyncToggle.vue.d.ts +21 -0
  189. package/dist/components/FormAsync/WFormAsyncToggle.vue.d.ts.map +1 -0
  190. package/dist/components/FormAsync/WFormAsyncToggle.vue.js +89 -0
  191. package/dist/components/FormAsync/WFormAsyncToggle.vue2.js +5 -0
  192. package/dist/components/FormAsync/types.d.ts +84 -0
  193. package/dist/components/FormAsync/types.d.ts.map +1 -0
  194. package/dist/components/HeaderBar/WHeaderBar.vue.d.ts +21 -36
  195. package/dist/components/HeaderBar/WHeaderBar.vue.d.ts.map +1 -1
  196. package/dist/components/ImageViewer/WImageViewer.vue.d.ts +3 -12
  197. package/dist/components/ImageViewer/WImageViewer.vue.d.ts.map +1 -1
  198. package/dist/components/ImageViewer/WImageViewer.vue.js +3 -4
  199. package/dist/components/ImageViewer/components/ImageModal.vue.d.ts +6 -15
  200. package/dist/components/ImageViewer/components/ImageModal.vue.d.ts.map +1 -1
  201. package/dist/components/InfiniteList/WInfiniteList.vue.d.ts +16 -16
  202. package/dist/components/InfiniteList/WInfiniteList.vue.d.ts.map +1 -1
  203. package/dist/components/InfiniteList/WInfiniteListPages.vue.d.ts +13 -13
  204. package/dist/components/InfiniteList/WInfiniteListPages.vue.d.ts.map +1 -1
  205. package/dist/components/InfiniteList/components/EmptyComponent.vue.d.ts +8 -3
  206. package/dist/components/InfiniteList/components/EmptyComponent.vue.d.ts.map +1 -1
  207. package/dist/components/InfiniteList/components/InfiniteListButton.vue.d.ts +5 -5
  208. package/dist/components/InfiniteList/components/InfiniteListButton.vue.d.ts.map +1 -1
  209. package/dist/components/InfiniteList/components/InfiniteListButton.vue.js +2 -2
  210. package/dist/components/InfiniteList/components/InfiniteListPage.vue.d.ts +8 -30
  211. package/dist/components/InfiniteList/components/InfiniteListPage.vue.d.ts.map +1 -1
  212. package/dist/components/InfiniteList/components/InfiniteListPage.vue.js +6 -5
  213. package/dist/components/InfiniteList/components/InfiniteListPageSelectItem.vue.d.ts +15 -19
  214. package/dist/components/InfiniteList/components/InfiniteListPageSelectItem.vue.d.ts.map +1 -1
  215. package/dist/components/InfiniteList/components/InfiniteListPageSelection.vue.d.ts +8 -8
  216. package/dist/components/InfiniteList/components/InfiniteListPageSelection.vue.d.ts.map +1 -1
  217. package/dist/components/InfiniteList/components/InfiniteListPageTitle.vue.d.ts +8 -8
  218. package/dist/components/InfiniteList/components/InfiniteListPageTitle.vue.d.ts.map +1 -1
  219. package/dist/components/InfiniteList/components/InfiniteListScroll.vue.d.ts +15 -19
  220. package/dist/components/InfiniteList/components/InfiniteListScroll.vue.d.ts.map +1 -1
  221. package/dist/components/InfiniteList/models/injection.d.ts +0 -1
  222. package/dist/components/InfiniteList/use/useInfiniteListHeader.d.ts +5 -5
  223. package/dist/components/InfiniteList/use/useRefetchNextPages.d.ts +1 -1
  224. package/dist/components/InfiniteList/use/useSelected.d.ts +0 -1
  225. package/dist/components/InfoCard/WInfoCard.vue.d.ts +10 -14
  226. package/dist/components/InfoCard/WInfoCard.vue.d.ts.map +1 -1
  227. package/dist/components/InfoCard/WInfoCardNegative.vue.d.ts +10 -15
  228. package/dist/components/InfoCard/WInfoCardNegative.vue.d.ts.map +1 -1
  229. package/dist/components/Input/WInput.vue.d.ts +6 -37
  230. package/dist/components/Input/WInput.vue.d.ts.map +1 -1
  231. package/dist/components/Input/WInputAsync.vue.d.ts +9 -10
  232. package/dist/components/Input/WInputAsync.vue.d.ts.map +1 -1
  233. package/dist/components/Input/WInputDate.vue.d.ts +21 -41
  234. package/dist/components/Input/WInputDate.vue.d.ts.map +1 -1
  235. package/dist/components/Input/WInputOptions.vue.d.ts +9 -10
  236. package/dist/components/Input/WInputOptions.vue.d.ts.map +1 -1
  237. package/dist/components/Input/WInputSuggest.vue.d.ts +6 -29
  238. package/dist/components/Input/WInputSuggest.vue.d.ts.map +1 -1
  239. package/dist/components/Input/components/InputActions.vue.d.ts +17 -21
  240. package/dist/components/Input/components/InputActions.vue.d.ts.map +1 -1
  241. package/dist/components/Input/components/InputActionsButton.vue.d.ts +13 -17
  242. package/dist/components/Input/components/InputActionsButton.vue.d.ts.map +1 -1
  243. package/dist/components/Input/types.d.ts +0 -1
  244. package/dist/components/Link/WLink.vue.d.ts +11 -36
  245. package/dist/components/Link/WLink.vue.d.ts.map +1 -1
  246. package/dist/components/Link/WLinkArrow.vue.d.ts +8 -13
  247. package/dist/components/Link/WLinkArrow.vue.d.ts.map +1 -1
  248. package/dist/components/List/WList.vue.d.ts +9 -10
  249. package/dist/components/List/WList.vue.d.ts.map +1 -1
  250. package/dist/components/List/WListCard.vue.d.ts +18 -22
  251. package/dist/components/List/WListCard.vue.d.ts.map +1 -1
  252. package/dist/components/List/WListCardField.vue.d.ts +12 -16
  253. package/dist/components/List/WListCardField.vue.d.ts.map +1 -1
  254. package/dist/components/List/WListCardField.vue.js +1 -1
  255. package/dist/components/List/WListHeader.vue.d.ts +13 -17
  256. package/dist/components/List/WListHeader.vue.d.ts.map +1 -1
  257. package/dist/components/List/WListHeaderItem.vue.d.ts +5 -6
  258. package/dist/components/List/WListHeaderItem.vue.d.ts.map +1 -1
  259. package/dist/components/List/types.d.ts +0 -1
  260. package/dist/components/MenuItem/WMenuItem.vue.d.ts +10 -31
  261. package/dist/components/MenuItem/WMenuItem.vue.d.ts.map +1 -1
  262. package/dist/components/Modal/WModal.vue.d.ts +1 -1
  263. package/dist/components/Modal/WModal.vue.d.ts.map +1 -1
  264. package/dist/components/Modal/WModal.vue.js +3 -4
  265. package/dist/components/Modal/WModalStepper.vue.d.ts +80 -24
  266. package/dist/components/Modal/WModalStepper.vue.d.ts.map +1 -1
  267. package/dist/components/Modal/WModalStepper.vue.js +8 -8
  268. package/dist/components/Modal/WModalWrapper.vue.d.ts +13 -17
  269. package/dist/components/Modal/WModalWrapper.vue.d.ts.map +1 -1
  270. package/dist/components/Modal/components/ModalCloseButton.vue.d.ts +4 -4
  271. package/dist/components/Modal/components/ModalCloseButton.vue.d.ts.map +1 -1
  272. package/dist/components/Modal/modals/Confirm/ConfirmModal.vue.d.ts +6 -16
  273. package/dist/components/Modal/modals/Confirm/ConfirmModal.vue.d.ts.map +1 -1
  274. package/dist/components/Modal/types.d.ts +0 -1
  275. package/dist/components/Nav/WNavBar.vue.d.ts +11 -6
  276. package/dist/components/Nav/WNavBar.vue.d.ts.map +1 -1
  277. package/dist/components/Nav/WNavBar.vue.js +6 -8
  278. package/dist/components/Nav/WNavItem.vue.d.ts +12 -17
  279. package/dist/components/Nav/WNavItem.vue.d.ts.map +1 -1
  280. package/dist/components/Nav/WNavItem.vue.js +16 -18
  281. package/dist/components/Nav/WNavItemExpand.vue.d.ts +11 -16
  282. package/dist/components/Nav/WNavItemExpand.vue.d.ts.map +1 -1
  283. package/dist/components/Nav/WNavItemTransition.vue.d.ts +8 -3
  284. package/dist/components/Nav/WNavItemTransition.vue.d.ts.map +1 -1
  285. package/dist/components/Notify/WNotify.vue.d.ts +1 -1
  286. package/dist/components/Notify/WNotify.vue.d.ts.map +1 -1
  287. package/dist/components/Notify/components/NotifyCard.vue.d.ts +6 -32
  288. package/dist/components/Notify/components/NotifyCard.vue.d.ts.map +1 -1
  289. package/dist/components/Notify/models/types.d.ts +0 -1
  290. package/dist/components/Select/WSelect.vue.d.ts +21 -23
  291. package/dist/components/Select/WSelect.vue.d.ts.map +1 -1
  292. package/dist/components/Select/WSelect.vue.js +48 -38
  293. package/dist/components/Select/WSelectAsync.vue.d.ts +14 -16
  294. package/dist/components/Select/WSelectAsync.vue.d.ts.map +1 -1
  295. package/dist/components/Select/WSelectAsync.vue.js +20 -15
  296. package/dist/components/Select/WSelectAsyncList.vue.d.ts +14 -14
  297. package/dist/components/Select/WSelectAsyncList.vue.d.ts.map +1 -1
  298. package/dist/components/Select/WSelectAsyncSingle.vue.d.ts +10 -14
  299. package/dist/components/Select/WSelectAsyncSingle.vue.d.ts.map +1 -1
  300. package/dist/components/Select/WSelectAsyncSingle.vue.js +4 -7
  301. package/dist/components/Select/WSelectSingle.vue.d.ts +14 -15
  302. package/dist/components/Select/WSelectSingle.vue.d.ts.map +1 -1
  303. package/dist/components/Select/WSelectSingle.vue.js +3 -2
  304. package/dist/components/Select/components/SelectAsyncList.vue.d.ts +15 -15
  305. package/dist/components/Select/components/SelectAsyncList.vue.d.ts.map +1 -1
  306. package/dist/components/Select/components/SelectAsyncList.vue.js +5 -6
  307. package/dist/components/Select/components/SelectAsyncPrefix.vue.d.ts +13 -12
  308. package/dist/components/Select/components/SelectAsyncPrefix.vue.d.ts.map +1 -1
  309. package/dist/components/Select/components/SelectAsyncPrefix.vue.js +2 -1
  310. package/dist/components/Select/components/SelectAsyncPrefixPage.vue.d.ts +13 -12
  311. package/dist/components/Select/components/SelectAsyncPrefixPage.vue.d.ts.map +1 -1
  312. package/dist/components/Select/components/SelectAsyncPrefixPage.vue.js +8 -3
  313. package/dist/components/Select/components/SelectOption.vue.d.ts +6 -32
  314. package/dist/components/Select/components/SelectOption.vue.d.ts.map +1 -1
  315. package/dist/components/Select/components/SelectOptionPrefix.vue.d.ts +9 -10
  316. package/dist/components/Select/components/SelectOptionPrefix.vue.d.ts.map +1 -1
  317. package/dist/components/Select/components/SelectOptionPrefix.vue.js +3 -1
  318. package/dist/components/Select/types.d.ts +22 -21
  319. package/dist/components/Select/types.d.ts.map +1 -1
  320. package/dist/components/Skeleton/WSkeleton.vue.d.ts +1 -1
  321. package/dist/components/Skeleton/WSkeleton.vue.d.ts.map +1 -1
  322. package/dist/components/Spinner/WSpinner.vue.d.ts +1 -1
  323. package/dist/components/Spinner/WSpinner.vue.d.ts.map +1 -1
  324. package/dist/components/Spinner/WSpinner.vue.js +14 -16
  325. package/dist/components/Tabs/WTabs.vue.d.ts +10 -20
  326. package/dist/components/Tabs/WTabs.vue.d.ts.map +1 -1
  327. package/dist/components/Tabs/WTabs.vue.js +3 -3
  328. package/dist/components/Tabs/WTabsColumns.vue.d.ts +3 -12
  329. package/dist/components/Tabs/WTabsColumns.vue.d.ts.map +1 -1
  330. package/dist/components/Tabs/components/TabItem.vue.d.ts +16 -18
  331. package/dist/components/Tabs/components/TabItem.vue.d.ts.map +1 -1
  332. package/dist/components/Tabs/models/injection.d.ts +0 -1
  333. package/dist/components/Toggle/WToggle.vue.d.ts +9 -19
  334. package/dist/components/Toggle/WToggle.vue.d.ts.map +1 -1
  335. package/dist/components/Toggle/WToggle.vue.js +3 -1
  336. package/dist/components/Toggle/types.d.ts +13 -0
  337. package/dist/components/Toggle/types.d.ts.map +1 -0
  338. package/dist/components/Tooltip/WTooltip.vue.d.ts +3 -12
  339. package/dist/components/Tooltip/WTooltip.vue.d.ts.map +1 -1
  340. package/dist/components/Tooltip/WTooltipContainer.vue.d.ts +1 -1
  341. package/dist/components/Tooltip/WTooltipContainer.vue.d.ts.map +1 -1
  342. package/dist/components/Tooltip/components/TooltipContainer.vue.d.ts +17 -20
  343. package/dist/components/Tooltip/components/TooltipContainer.vue.d.ts.map +1 -1
  344. package/dist/imports/componentsPlugin.d.ts +5 -2
  345. package/dist/imports/componentsPlugin.d.ts.map +1 -1
  346. package/dist/main.d.ts +3 -0
  347. package/dist/main.d.ts.map +1 -1
  348. package/dist/main.js +8 -1
  349. package/dist/types/global.d.ts +98 -11
  350. package/dist/utils/Modal.d.ts +0 -1
  351. package/dist/utils/Notify.d.ts +0 -1
  352. package/dist/utils/Tooltip.d.ts +0 -1
  353. package/dist/utils/api.d.ts +15 -0
  354. package/dist/utils/api.d.ts.map +1 -0
  355. package/dist/utils/api.js +28 -0
  356. package/dist/utils/useCopy.d.ts +1 -2
  357. package/dist/utils/useDefaultQuery.d.ts +2 -2
  358. package/dist/utils/useDefaultQuery.d.ts.map +1 -1
  359. package/dist/utils/useQueryUpdater.d.ts +11 -0
  360. package/dist/utils/useQueryUpdater.d.ts.map +1 -0
  361. package/dist/utils/useQueryUpdater.js +56 -0
  362. package/dist/utils/utils.d.ts +2 -0
  363. package/dist/utils/utils.d.ts.map +1 -1
  364. package/dist/utils/utils.js +13 -1
  365. package/dist/utils/validate.d.ts +2 -0
  366. package/dist/utils/validate.d.ts.map +1 -0
  367. package/dist/utils/validate.js +3 -0
  368. package/package.json +43 -16
@@ -25,14 +25,12 @@ const _hoisted_6 = {
25
25
  key: 2,
26
26
  class: "w-full h-full flex flex-col items-center text-base text-accent"
27
27
  };
28
- const _hoisted_7 = /* @__PURE__ */ createElementVNode("div", { class: "font-semibold mt-16" }, " Drag and drop files here ", -1);
29
- const _hoisted_8 = /* @__PURE__ */ createElementVNode("div", { class: "font-normal mt-4" }, " or ", -1);
30
- const _hoisted_9 = {
28
+ const _hoisted_7 = {
31
29
  key: 3,
32
30
  class: "h-full flex items-center justify-center"
33
31
  };
34
- const _hoisted_10 = { class: "overflow-x-overlay flex gap-6 items-center" };
35
- const _hoisted_11 = {
32
+ const _hoisted_8 = { class: "overflow-x-overlay flex gap-6 items-center" };
33
+ const _hoisted_9 = {
36
34
  key: 0,
37
35
  class: "absolute right-0 text-xs text-negative dark:text-negative-dark font-normal"
38
36
  };
@@ -152,20 +150,20 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
152
150
  _: 3
153
151
  }, 8, ["name", "has-error"])
154
152
  ])) : _ctx.modelValue.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_6, [
155
- _hoisted_7,
156
- _hoisted_8,
153
+ _cache[7] || (_cache[7] = createElementVNode("div", { class: "font-semibold mt-16" }, " Drag and drop files here ", -1)),
154
+ _cache[8] || (_cache[8] = createElementVNode("div", { class: "font-normal mt-4" }, " or ", -1)),
157
155
  createVNode(_sfc_main$3, {
158
156
  "semantic-type": unref(SemanticType).PRIMARY,
159
157
  class: "mt-4",
160
158
  onClick: _cache[1] || (_cache[1] = withModifiers(($event) => input.value?.click(), ["stop", "prevent"]))
161
159
  }, {
162
- default: withCtx(() => [
160
+ default: withCtx(() => _cache[6] || (_cache[6] = [
163
161
  createTextVNode(" Browse file ")
164
- ]),
162
+ ])),
165
163
  _: 1
166
164
  }, 8, ["semantic-type"])
167
- ])) : (openBlock(), createElementBlock("div", _hoisted_9, [
168
- createElementVNode("div", _hoisted_10, [
165
+ ])) : (openBlock(), createElementBlock("div", _hoisted_7, [
166
+ createElementVNode("div", _hoisted_8, [
169
167
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.modelValue, (file, index) => {
170
168
  return openBlock(), createBlock(_sfc_main$2, {
171
169
  key: index,
@@ -192,7 +190,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
192
190
  "leave-to-class": "opacity-0"
193
191
  }, {
194
192
  default: withCtx(() => [
195
- _ctx.errorMessage ? (openBlock(), createElementBlock("div", _hoisted_11, toDisplayString(_ctx.errorMessage), 1)) : createCommentVNode("", true)
193
+ _ctx.errorMessage ? (openBlock(), createElementBlock("div", _hoisted_9, toDisplayString(_ctx.errorMessage), 1)) : createCommentVNode("", true)
196
194
  ]),
197
195
  _: 1
198
196
  })
@@ -1,32 +1,28 @@
1
1
  declare function __VLS_template(): {
2
- positive?(_: {}): any;
3
- negative?(_: {}): any;
2
+ slots: {
3
+ positive?(_: {}): any;
4
+ negative?(_: {}): any;
5
+ };
6
+ refs: {};
7
+ attrs: Partial<{}>;
4
8
  };
5
- declare const __VLS_component: import('vue').DefineComponent<__VLS_TypePropsToOption<{
9
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
+ declare const __VLS_component: import('vue').DefineComponent<{
6
11
  name?: string;
7
12
  hasError?: boolean;
8
- }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
9
- "click:cancel": () => void;
10
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<{
13
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
14
+ "click:cancel": () => any;
15
+ }, string, import('vue').PublicProps, Readonly<{
11
16
  name?: string;
12
17
  hasError?: boolean;
13
- }>>> & {
18
+ }> & Readonly<{
14
19
  "onClick:cancel"?: (() => any) | undefined;
15
- }, {}, {}>;
16
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
20
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
21
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
17
22
  export default _default;
18
23
  type __VLS_WithTemplateSlots<T, S> = T & {
19
24
  new (): {
20
25
  $slots: S;
21
26
  };
22
27
  };
23
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
24
- type __VLS_TypePropsToOption<T> = {
25
- [K in keyof T]-?: {} extends Pick<T, K> ? {
26
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
27
- } : {
28
- type: import('vue').PropType<T[K]>;
29
- required: true;
30
- };
31
- };
32
28
  //# sourceMappingURL=FilePickerItem.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FilePickerItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/FilePicker/components/FilePickerItem.vue"],"names":[],"mappings":"AAyEA,iBAAS,cAAc;sBA+GO,GAAG;sBACH,GAAG;EAkBhC;AACD,QAAA,MAAM,eAAe;WAnJZ,MAAM;eACF,OAAO;;;;WADX,MAAM;eACF,OAAO;;;UAyJlB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
1
+ {"version":3,"file":"FilePickerItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/FilePicker/components/FilePickerItem.vue"],"names":[],"mappings":"AA0EA,iBAAS,cAAc;;0BAgGO,GAAG;0BACH,GAAG;;;WASnB,OAAO,IAA6B;EAEjD;AAcD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;WA5IZ,MAAM;eACF,OAAO;;;;WADX,MAAM;eACF,OAAO;;;kFAoJlB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,22 +1,13 @@
1
- declare const _default: import('vue').DefineComponent<__VLS_TypePropsToOption<{
1
+ declare const _default: import('vue').DefineComponent<{
2
2
  svgWidth: number;
3
3
  svgHeight: number;
4
4
  isActive?: boolean;
5
5
  hasError?: boolean;
6
- }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<{
6
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
7
7
  svgWidth: number;
8
8
  svgHeight: number;
9
9
  isActive?: boolean;
10
10
  hasError?: boolean;
11
- }>>>, {}, {}>;
11
+ }> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
12
12
  export default _default;
13
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
14
- type __VLS_TypePropsToOption<T> = {
15
- [K in keyof T]-?: {} extends Pick<T, K> ? {
16
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
17
- } : {
18
- type: import('vue').PropType<T[K]>;
19
- required: true;
20
- };
21
- };
22
13
  //# sourceMappingURL=FilePickerSvg.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FilePickerSvg.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/FilePicker/components/FilePickerSvg.vue"],"names":[],"mappings":";cA4FY,MAAM;eACL,MAAM;eACN,OAAO;eACP,OAAO;;cAHR,MAAM;eACL,MAAM;eACN,OAAO;eACP,OAAO;;AA8GpB,wBAMG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
1
+ {"version":3,"file":"FilePickerSvg.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/FilePicker/components/FilePickerSvg.vue"],"names":[],"mappings":";cA4FY,MAAM;eACL,MAAM;eACN,OAAO;eACP,OAAO;;cAHR,MAAM;eACL,MAAM;eACN,OAAO;eACP,OAAO;;AAwHpB,wBAMG"}
@@ -1,29 +1,25 @@
1
1
  declare function __VLS_template(): {
2
- bottom?(_: {}): any;
2
+ slots: {
3
+ bottom?(_: {}): any;
4
+ };
5
+ refs: {};
6
+ attrs: Partial<{}>;
3
7
  };
4
- declare const __VLS_component: import('vue').DefineComponent<__VLS_TypePropsToOption<{
8
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
9
+ declare const __VLS_component: import('vue').DefineComponent<{
5
10
  defaultQueryFields?: string[];
6
- }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
7
- "update:count": (value: number) => void;
8
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<{
11
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
12
+ "update:count": (value: number) => any;
13
+ }, string, import('vue').PublicProps, Readonly<{
9
14
  defaultQueryFields?: string[];
10
- }>>> & {
15
+ }> & Readonly<{
11
16
  "onUpdate:count"?: ((value: number) => any) | undefined;
12
- }, {}, {}>;
13
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
17
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
18
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
14
19
  export default _default;
15
20
  type __VLS_WithTemplateSlots<T, S> = T & {
16
21
  new (): {
17
22
  $slots: S;
18
23
  };
19
24
  };
20
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
21
- type __VLS_TypePropsToOption<T> = {
22
- [K in keyof T]-?: {} extends Pick<T, K> ? {
23
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
24
- } : {
25
- type: import('vue').PropType<T[K]>;
26
- required: true;
27
- };
28
- };
29
25
  //# sourceMappingURL=WFilterWrapper.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"WFilterWrapper.vue.d.ts","sourceRoot":"","sources":["../../../src/components/FilterWrapper/WFilterWrapper.vue"],"names":[],"mappings":"AAwLA,iBAAS,cAAc;oBA2HK,GAAG;EAuB9B;AACD,QAAA,MAAM,eAAe;yBApNE,MAAM,EAAE;;;;yBAAR,MAAM,EAAE;;;UA2N7B,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
1
+ {"version":3,"file":"WFilterWrapper.vue.d.ts","sourceRoot":"","sources":["../../../src/components/FilterWrapper/WFilterWrapper.vue"],"names":[],"mappings":"AAyLA,iBAAS,cAAc;;wBAuHK,GAAG;;;WASjB,OAAO,IAA6B;EAEjD;AAmBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;yBAxNE,MAAM,EAAE;;;;yBAAR,MAAM,EAAE;;;kFAiO7B,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -7,9 +7,7 @@ import { Modal } from '../../utils/Modal.js';
7
7
  import { throttle } from '../../utils/utils.js';
8
8
 
9
9
  const _hoisted_1 = { class: "flex flex-col pb-16" };
10
- const _hoisted_2 = /* @__PURE__ */ createElementVNode("div", { class: "text-accent text-2xl font-semibold -h--header-height -mx--inner-margin flex items-center" }, " Filters ", -1);
11
- const _hoisted_3 = /* @__PURE__ */ createElementVNode("div", { class: "h-0.5 bg-gray-400 rounded my-8 -mx--inner-margin" }, null, -1);
12
- const _hoisted_4 = { class: "grid grid-cols-2 gap-4 -px--inner-margin" };
10
+ const _hoisted_2 = { class: "grid grid-cols-2 gap-4 -px--inner-margin" };
13
11
  const _sfc_main = /* @__PURE__ */ defineComponent({
14
12
  __name: "WFilterWrapper",
15
13
  props: {
@@ -57,7 +55,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
57
55
  });
58
56
  return (_ctx, _cache) => {
59
57
  return openBlock(), createElementBlock("div", _hoisted_1, [
60
- _hoisted_2,
58
+ _cache[1] || (_cache[1] = createElementVNode("div", { class: "text-accent text-2xl font-semibold -h--header-height -mx--inner-margin flex items-center" }, " Filters ", -1)),
61
59
  createElementVNode("div", null, [
62
60
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.$slots.default?.(), (slot, index) => {
63
61
  return openBlock(), createBlock(resolveDynamicComponent(slot), {
@@ -68,8 +66,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
68
66
  }, null, 40, ["is-open", "onToggle", "onUpdate:hasChanges"]);
69
67
  }), 128))
70
68
  ]),
71
- _hoisted_3,
72
- createElementVNode("div", _hoisted_4, [
69
+ _cache[2] || (_cache[2] = createElementVNode("div", { class: "h-0.5 bg-gray-400 rounded my-8 -mx--inner-margin" }, null, -1)),
70
+ createElementVNode("div", _hoisted_2, [
73
71
  renderSlot(_ctx.$slots, "bottom"),
74
72
  createVNode(_sfc_main$1, {
75
73
  "semantic-type": unref(SemanticType).SECONDARY,
@@ -79,7 +77,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
79
77
  }, {
80
78
  default: withCtx(() => [
81
79
  createVNode(unref(IconFilterRemove)),
82
- createTextVNode(" Reset Filters ")
80
+ _cache[0] || (_cache[0] = createTextVNode(" Reset Filters "))
83
81
  ]),
84
82
  _: 1
85
83
  }, 8, ["semantic-type", "disabled"])
@@ -1,10 +1,15 @@
1
1
  declare function __VLS_template(): {
2
- default?(_: {}): any;
2
+ slots: {
3
+ default?(_: {}): any;
4
+ };
5
+ refs: {};
6
+ attrs: Partial<{}>;
3
7
  };
4
- declare const __VLS_component: import('vue').DefineComponent<__VLS_TypePropsToOption<{
8
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
9
+ declare const __VLS_component: import('vue').DefineComponent<{
5
10
  name?: string;
6
11
  title?: string;
7
- }>, {
12
+ }, {
8
13
  isValid: import('vue').ComputedRef<boolean>;
9
14
  validate: (silent?: boolean, path?: import('./use/useFormValidateMap').ValidatePath) => string | undefined;
10
15
  invalidate: (payload: {
@@ -12,30 +17,21 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_TypePropsToOp
12
17
  }) => void;
13
18
  initModel: () => void;
14
19
  errorMessage: import('vue').ComputedRef<string>;
15
- }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
16
- "update:is-valid": (value: boolean | undefined) => void;
17
- "update:has-changes": (value: boolean) => void;
18
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<{
20
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
21
+ "update:has-changes": (value: boolean) => any;
22
+ "update:is-valid": (value: boolean | undefined) => any;
23
+ }, string, import('vue').PublicProps, Readonly<{
19
24
  name?: string;
20
25
  title?: string;
21
- }>>> & {
26
+ }> & Readonly<{
22
27
  "onUpdate:has-changes"?: ((value: boolean) => any) | undefined;
23
28
  "onUpdate:is-valid"?: ((value: boolean | undefined) => any) | undefined;
24
- }, {}, {}>;
25
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
29
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
30
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
26
31
  export default _default;
27
32
  type __VLS_WithTemplateSlots<T, S> = T & {
28
33
  new (): {
29
34
  $slots: S;
30
35
  };
31
36
  };
32
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
33
- type __VLS_TypePropsToOption<T> = {
34
- [K in keyof T]-?: {} extends Pick<T, K> ? {
35
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
36
- } : {
37
- type: import('vue').PropType<T[K]>;
38
- required: true;
39
- };
40
- };
41
37
  //# sourceMappingURL=WForm.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"WForm.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Form/WForm.vue"],"names":[],"mappings":"AAqJA,iBAAS,cAAc;qBAiBM,GAAG;EAe/B;AACD,QAAA,MAAM,eAAe;WAnGZ,MAAM;YACL,MAAM;;;;;;;;;;;;;WADP,MAAM;YACL,MAAM;;;;UA0Gd,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
1
+ {"version":3,"file":"WForm.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Form/WForm.vue"],"names":[],"mappings":"AAuJA,iBAAS,cAAc;;yBA0BM,GAAG;;;WASlB,OAAO,IAA6B;EAEjD;AAYD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;WAtHZ,MAAM;YACL,MAAM;;;;;;;;;;;;;WADP,MAAM;YACL,MAAM;;;;kFAgId,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,47 +1,45 @@
1
- declare function __VLS_template(): Readonly<{
2
- default: () => void;
3
- }> & {
4
- default: () => void;
1
+ declare function __VLS_template(): {
2
+ slots: Readonly<{
3
+ default: () => void;
4
+ }> & {
5
+ default: () => void;
6
+ };
7
+ refs: {
8
+ componentRef: unknown;
9
+ };
10
+ attrs: Partial<{}>;
5
11
  };
6
- declare const __VLS_component: import('vue').DefineComponent<__VLS_TypePropsToOption<{
12
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
13
+ declare const __VLS_component: import('vue').DefineComponent<{
7
14
  name?: string;
8
15
  title?: string;
9
16
  validate?: ValidateFn | ValidateFn[];
10
17
  forbiddenRegexp?: RegExp;
11
18
  requiredSymbols?: string;
12
19
  noChanges?: boolean;
13
- }>, {
20
+ }, {
14
21
  validateOnUpdate(): string | undefined;
15
22
  invalidate(message: string): void;
16
23
  initModel: () => void;
17
- }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
18
- "update:has-changes": (value: boolean) => void;
19
- "update:is-valid": (value: boolean) => void;
20
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<{
24
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
25
+ "update:has-changes": (value: boolean) => any;
26
+ "update:is-valid": (value: boolean) => any;
27
+ }, string, import('vue').PublicProps, Readonly<{
21
28
  name?: string;
22
29
  title?: string;
23
30
  validate?: ValidateFn | ValidateFn[];
24
31
  forbiddenRegexp?: RegExp;
25
32
  requiredSymbols?: string;
26
33
  noChanges?: boolean;
27
- }>>> & {
34
+ }> & Readonly<{
28
35
  "onUpdate:has-changes"?: ((value: boolean) => any) | undefined;
29
36
  "onUpdate:is-valid"?: ((value: boolean) => any) | undefined;
30
- }, {}, {}>;
31
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
37
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
38
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
32
39
  export default _default;
33
40
  type __VLS_WithTemplateSlots<T, S> = T & {
34
41
  new (): {
35
42
  $slots: S;
36
43
  };
37
44
  };
38
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
39
- type __VLS_TypePropsToOption<T> = {
40
- [K in keyof T]-?: {} extends Pick<T, K> ? {
41
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
42
- } : {
43
- type: import('vue').PropType<T[K]>;
44
- required: true;
45
- };
46
- };
47
45
  //# sourceMappingURL=WFormValidator.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"WFormValidator.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Form/WFormValidator.vue"],"names":[],"mappings":"AA8iBA,iBAAS,cAAc;aAVZ,MAAM,IAAI;;aAAV,MAAM,IAAI;EA+GpB;AACD,QAAA,MAAM,eAAe;WApXZ,MAAM;YACL,MAAM;eACH,UAAU,GAAG,UAAU,EAAE;sBAClB,MAAM;sBACN,MAAM;gBACZ,OAAO;;;wBA+OC,MAAM;qBA/DN,IAAI;;;;;WArLjB,MAAM;YACL,MAAM;eACH,UAAU,GAAG,UAAU,EAAE;sBAClB,MAAM;sBACN,MAAM;gBACZ,OAAO;;;;UAuXnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
1
+ {"version":3,"file":"WFormValidator.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Form/WFormValidator.vue"],"names":[],"mappings":"AA4iBA,iBAAS,cAAc;;iBAZZ,MAAM,IAAI;;iBAAV,MAAM,IAAI;;;;;WA2GP,OAAO,IAA6B;EAEjD;AAoBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;WAnYZ,MAAM;YACL,MAAM;eACH,UAAU,GAAG,UAAU,EAAE;sBAClB,MAAM;sBACN,MAAM;gBACZ,OAAO;;;wBA4OC,MAAM;qBA/DN,IAAI;;;;;WAlLjB,MAAM;YACL,MAAM;eACH,UAAU,GAAG,UAAU,EAAE;sBAClB,MAAM;sBACN,MAAM;gBACZ,OAAO;;;;kFAyYnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -3,6 +3,7 @@ import { wFormTitleUpdater, wFormErrorMessageUpdater, wFormHasChangesUpdater, wF
3
3
  import { useTabActiveListener } from '../Tabs/use/useTabActiveListener.js';
4
4
  import { scrollToValidator } from './models/utils.js';
5
5
  import { useIsInsideTab } from '../Tabs/use/useIsInsideTab.js';
6
+ import { validateRequired } from '../../utils/validate.js';
6
7
 
7
8
  const _sfc_main = /* @__PURE__ */ defineComponent({
8
9
  __name: "WFormValidator",
@@ -61,10 +62,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
61
62
  }
62
63
  };
63
64
  const _validate = (value) => {
64
- if (required.value && !value) {
65
- const message2 = "A value is required";
66
- return message2;
67
- }
65
+ const requiredMessage = required.value ? validateRequired(value) : void 0;
66
+ if (requiredMessage) return requiredMessage;
68
67
  if (props.forbiddenRegexp && typeof value === "string") {
69
68
  const match = value.match(props.forbiddenRegexp);
70
69
  if (match?.length) {
@@ -1,5 +1,4 @@
1
1
  import { InjectionKey } from 'vue';
2
-
3
2
  export declare const wFormTitleUpdater: InjectionKey<(key: string, value: string | undefined) => void>;
4
3
  export declare const wFormErrorMessageUpdater: InjectionKey<(key: string, value: string | undefined) => void>;
5
4
  export declare const wFormHasChangesUpdater: InjectionKey<(key: string, value: boolean) => void>;
@@ -1,9 +1,8 @@
1
1
  import { Ref } from 'vue';
2
-
3
2
  export declare const useFormErrorMessageMap: (name: Ref<string | undefined>, titleGetter: (key: string) => string) => {
4
3
  errorMessageMapUnlistener: (key: string) => void;
5
4
  isValid: import('vue').ComputedRef<boolean>;
6
5
  errorMessage: import('vue').ComputedRef<string>;
7
- errorMessageMap: Ref<Record<string, string>>;
6
+ errorMessageMap: Ref<Record<string, string>, Record<string, string>>;
8
7
  };
9
8
  //# sourceMappingURL=useFormErrorMessageMap.d.ts.map
@@ -1,5 +1,4 @@
1
1
  import { Ref } from 'vue';
2
-
3
2
  export declare const useFormHasChangesMap: (name: Ref<string | undefined>) => {
4
3
  hasChangesMapUnlistener: (key: string) => void;
5
4
  hasChanges: import('vue').ComputedRef<boolean>;
@@ -1,5 +1,4 @@
1
1
  import { Ref } from 'vue';
2
-
3
2
  export declare const useFormInitModelMap: (name: Ref<string | undefined>) => {
4
3
  initModelMapUnlistener: (key: string) => void;
5
4
  initModel: () => void;
@@ -1,5 +1,4 @@
1
1
  import { Ref } from 'vue';
2
-
3
2
  type InvalidatePayload = Record<string, string | string[]>;
4
3
  export declare const useFormInvalidateMap: (name: Ref<string | undefined>) => {
5
4
  invalidateMapUnlistener: (key: string) => void;
@@ -1,5 +1,4 @@
1
1
  import { Ref } from 'vue';
2
-
3
2
  export declare const useFormTitleMap: (name: Ref<string | undefined>, title: Ref<string | undefined>) => {
4
3
  titleGetter: (key: string) => string;
5
4
  titleMapUnlistener: (key: string) => void;
@@ -1,5 +1,4 @@
1
1
  import { Ref } from 'vue';
2
-
3
2
  export type ValidatePath = {
4
3
  [Key in string]: boolean | ValidatePath;
5
4
  };
@@ -0,0 +1,24 @@
1
+ import { FormAsyncButtonGroupProps } from './types';
2
+ declare const _default: <Model, FieldType extends string | number | boolean | null, QueryParams, Entity extends Record<string, unknown>, ValueGetter extends {
3
+ fn(value: Entity): FieldType;
4
+ }["fn"] | undefined = undefined>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
5
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & Readonly<{}> & Readonly<{}>, never>, never> & FormAsyncButtonGroupProps<Model, FieldType, QueryParams, Entity, ValueGetter>> & import('vue').PublicProps;
6
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
7
+ attrs: any;
8
+ slots: {
9
+ default?(_: {
10
+ option: FieldType | Entity | (ValueGetter extends undefined ? FieldType : Entity);
11
+ selected: boolean;
12
+ }): any;
13
+ };
14
+ emit: {};
15
+ }>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
16
+ [key: string]: any;
17
+ }> & {
18
+ __ctx?: Awaited<typeof __VLS_setup>;
19
+ };
20
+ export default _default;
21
+ type __VLS_PrettifyLocal<T> = {
22
+ [K in keyof T]: T[K];
23
+ } & {};
24
+ //# sourceMappingURL=WFormAsyncButtonGroup.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WFormAsyncButtonGroup.vue.d.ts","sourceRoot":"","sources":["../../../src/components/FormAsync/WFormAsyncButtonGroup.vue"],"names":[],"mappings":"AA6FA,OAAO,KAAK,EAAC,yBAAyB,EAAC,MAAM,SAAS,CAAA;yBAOrC,KAAK,EAAE,SAAS,SAAS,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,EAAE,WAAW,EAAE,MAAM,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,WAAW,SAAS;IAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,CAAA;CAAC,CAAC,IAAI,CAAC,GAAG,SAAS,2BACvL,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WAqKxD,mBAAmB,CAAC,8PAAyD,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;;;;YA7BgB,GAAG;;UA+BvB,EAAE;;;;YAGiC,OAAO,CAAC,OAAO,WAAW,CAAC;;AA/KvE,wBA+K4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -0,0 +1,101 @@
1
+ import { defineComponent, toRef, ref, computed, onBeforeUnmount, openBlock, createBlock, mergeProps, unref, createSlots, withCtx, renderSlot } from 'vue';
2
+ import { Notify } from '../../utils/Notify.js';
3
+ import _sfc_main$1 from '../Button/WButtonGroup.vue.js';
4
+ import { get, set } from '../../utils/utils.js';
5
+ import { handleApiError } from '../../utils/api.js';
6
+ import { Modal } from '../../utils/Modal.js';
7
+
8
+ const _sfc_main = /* @__PURE__ */ defineComponent({
9
+ __name: "WFormAsyncButtonGroup",
10
+ props: {
11
+ useQueryFn: {},
12
+ noParams: { type: Boolean },
13
+ queryParams: {},
14
+ queryEnabled: { type: Boolean },
15
+ field: {},
16
+ apiMethod: { type: Function },
17
+ confimGetter: { type: Function },
18
+ list: {},
19
+ valueGetter: { type: Function },
20
+ optionComponent: {},
21
+ minimize: { type: Boolean },
22
+ wrap: { type: Boolean },
23
+ col: { type: Boolean },
24
+ semanticType: {},
25
+ stretch: { type: Boolean },
26
+ alwaysEmit: { type: Boolean },
27
+ title: {},
28
+ description: {},
29
+ errorMessage: {},
30
+ tooltipText: {},
31
+ maxLength: {},
32
+ mono: { type: Boolean },
33
+ hasChanges: { type: Boolean },
34
+ skeleton: { type: Boolean },
35
+ disabled: { type: Boolean },
36
+ required: { type: Boolean },
37
+ noMargin: { type: Boolean },
38
+ allowCopy: { type: Boolean }
39
+ },
40
+ setup(__props) {
41
+ const props = __props;
42
+ const { data, setData, isLoadingError } = props.noParams === true ? props.useQueryFn({ enabled: toRef(props, "queryEnabled") }) : props.useQueryFn(toRef(props, "queryParams"), { enabled: toRef(props, "queryEnabled") });
43
+ const submittingItem = ref();
44
+ const modelValue = computed(() => get(data.value ?? {}, props.field) ?? null);
45
+ const save = (value) => {
46
+ if (submittingItem.value !== void 0) return;
47
+ submittingItem.value = value;
48
+ return props.apiMethod(set({}, props.field, value)).then((response) => {
49
+ setData(response.data);
50
+ Notify.success({ title: "Saved" });
51
+ }).catch((error) => handleApiError(error, void 0, props.field)).finally(() => {
52
+ submittingItem.value = void 0;
53
+ });
54
+ };
55
+ let closeModal = null;
56
+ const showModal = (value) => {
57
+ closeModal?.();
58
+ const confirmProps = props.confimGetter?.(value);
59
+ if (!confirmProps) {
60
+ save(value);
61
+ return;
62
+ }
63
+ closeModal = Modal.addConfirm({
64
+ ...confirmProps,
65
+ onAccept: () => {
66
+ return save(value);
67
+ }
68
+ }, () => closeModal = null);
69
+ };
70
+ onBeforeUnmount(() => {
71
+ closeModal?.();
72
+ closeModal = null;
73
+ });
74
+ return (_ctx, _cache) => {
75
+ return openBlock(), createBlock(_sfc_main$1, mergeProps({
76
+ ...props,
77
+ modelValue: modelValue.value,
78
+ list: _ctx.list,
79
+ optionComponent: _ctx.optionComponent,
80
+ loading: submittingItem.value,
81
+ disabled: _ctx.disabled || unref(isLoadingError),
82
+ skeleton: _ctx.skeleton || !unref(data)
83
+ }, {
84
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => showModal($event))
85
+ }), createSlots({ _: 2 }, [
86
+ _ctx.$slots.option ? {
87
+ name: "option",
88
+ fn: withCtx(({ option, selected }) => [
89
+ renderSlot(_ctx.$slots, "default", {
90
+ option,
91
+ selected
92
+ })
93
+ ]),
94
+ key: "0"
95
+ } : void 0
96
+ ]), 1040);
97
+ };
98
+ }
99
+ });
100
+
101
+ export { _sfc_main as default };
@@ -0,0 +1,5 @@
1
+ import _sfc_main from './WFormAsyncButtonGroup.vue.js';
2
+
3
+
4
+
5
+ export { _sfc_main as default };
@@ -0,0 +1,25 @@
1
+ import { FormAsyncInputProps } from './types';
2
+ declare const _default: <Model, FieldType extends string | number, QueryParams>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
4
+ readonly onSuccess?: ((value: Model) => any) | undefined;
5
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & Readonly<{}> & Readonly<{
6
+ onSuccess?: ((value: Model) => any) | undefined;
7
+ }>, never>, "onSuccess"> & FormAsyncInputProps<Model, FieldType, QueryParams>> & import('vue').PublicProps;
8
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
9
+ attrs: any;
10
+ slots: {
11
+ title?(_: {}): any;
12
+ subtitle?(_: {}): any;
13
+ right?(_: {}): any;
14
+ };
15
+ emit: (e: "success", value: Model) => void;
16
+ }>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
17
+ [key: string]: any;
18
+ }> & {
19
+ __ctx?: Awaited<typeof __VLS_setup>;
20
+ };
21
+ export default _default;
22
+ type __VLS_PrettifyLocal<T> = {
23
+ [K in keyof T]: T[K];
24
+ } & {};
25
+ //# sourceMappingURL=WFormAsyncInput.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WFormAsyncInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/FormAsync/WFormAsyncInput.vue"],"names":[],"mappings":"AA8HA,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,SAAS,CAAA;yBAI/B,KAAK,EAAE,SAAS,SAAS,MAAM,GAAG,MAAM,EAAE,WAAW,eACxD,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WA+MxD,mBAAmB,CAAC;;;;iFAAyD,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;uBAnCc,GAAG;0BACA,GAAG;uBACN,GAAG;;cAvKxB,SAAS,SAAS,KAAK,KAAG,IAAI;;;;YA6MQ,OAAO,CAAC,OAAO,WAAW,CAAC;;AAzNvE,wBAyN4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}