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
@@ -1,26 +1,17 @@
1
- declare const _default: import('vue').DefineComponent<__VLS_TypePropsToOption<{
1
+ declare const _default: import('vue').DefineComponent<{
2
2
  text?: string;
3
3
  noTouch?: boolean;
4
4
  overflowOnly?: boolean;
5
5
  light?: boolean;
6
6
  trigger?: Element;
7
7
  maxHeight?: number;
8
- }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<{
8
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
9
9
  text?: string;
10
10
  noTouch?: boolean;
11
11
  overflowOnly?: boolean;
12
12
  light?: boolean;
13
13
  trigger?: Element;
14
14
  maxHeight?: number;
15
- }>>>, {}, {}>;
15
+ }> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
16
16
  export default _default;
17
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
18
- type __VLS_TypePropsToOption<T> = {
19
- [K in keyof T]-?: {} extends Pick<T, K> ? {
20
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
21
- } : {
22
- type: import('vue').PropType<T[K]>;
23
- required: true;
24
- };
25
- };
26
17
  //# sourceMappingURL=WTooltip.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"WTooltip.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Tooltip/WTooltip.vue"],"names":[],"mappings":";WA2FS,MAAM;cACH,OAAO;mBACF,OAAO;YACd,OAAO;cACL,OAAO;gBACL,MAAM;;WALX,MAAM;cACH,OAAO;mBACF,OAAO;YACd,OAAO;cACL,OAAO;gBACL,MAAM;;AAyGpB,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":"WTooltip.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Tooltip/WTooltip.vue"],"names":[],"mappings":";WA2FS,MAAM;cACH,OAAO;mBACF,OAAO;YACd,OAAO;cACL,OAAO;gBACL,MAAM;;WALX,MAAM;cACH,OAAO;mBACF,OAAO;YACd,OAAO;cACL,OAAO;gBACL,MAAM;;AAqHpB,wBAMG"}
@@ -1,3 +1,3 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}>;
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
2
  export default _default;
3
3
  //# sourceMappingURL=WTooltipContainer.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"WTooltipContainer.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Tooltip/WTooltipContainer.vue"],"names":[],"mappings":";AAgTA,wBAKG"}
1
+ {"version":3,"file":"WTooltipContainer.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Tooltip/WTooltipContainer.vue"],"names":[],"mappings":";AA6SA,wBAKG"}
@@ -1,39 +1,36 @@
1
1
  import { TooltipMeta } from '../../../utils/Tooltip';
2
-
3
2
  declare function __VLS_template(): {
4
- default?(_: {}): any;
3
+ slots: {
4
+ default?(_: {}): any;
5
+ };
6
+ refs: {
7
+ container: HTMLDivElement;
8
+ };
9
+ attrs: Partial<{}>;
5
10
  };
6
- declare const __VLS_component: import('vue').DefineComponent<__VLS_TypePropsToOption<{
11
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
12
+ declare const __VLS_component: import('vue').DefineComponent<{
7
13
  tooltipMeta: TooltipMeta;
8
14
  isTop?: boolean;
9
15
  left?: string;
10
16
  right?: string;
11
- }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
12
- over: () => void;
13
- leave: () => void;
14
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<{
17
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
18
+ over: () => any;
19
+ leave: () => any;
20
+ }, string, import('vue').PublicProps, Readonly<{
15
21
  tooltipMeta: TooltipMeta;
16
22
  isTop?: boolean;
17
23
  left?: string;
18
24
  right?: string;
19
- }>>> & {
20
- onLeave?: (() => any) | undefined;
25
+ }> & Readonly<{
21
26
  onOver?: (() => any) | undefined;
22
- }, {}, {}>;
23
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
27
+ onLeave?: (() => any) | undefined;
28
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
29
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
24
30
  export default _default;
25
31
  type __VLS_WithTemplateSlots<T, S> = T & {
26
32
  new (): {
27
33
  $slots: S;
28
34
  };
29
35
  };
30
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
31
- type __VLS_TypePropsToOption<T> = {
32
- [K in keyof T]-?: {} extends Pick<T, K> ? {
33
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
34
- } : {
35
- type: import('vue').PropType<T[K]>;
36
- required: true;
37
- };
38
- };
39
36
  //# sourceMappingURL=TooltipContainer.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TooltipContainer.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Tooltip/components/TooltipContainer.vue"],"names":[],"mappings":"AAyGA,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,iBAAiB,CAAA;AA8EhD,iBAAS,cAAc;qBAmFM,GAAG;EAiB/B;AACD,QAAA,MAAM,eAAe;iBA3KN,WAAW;YAChB,OAAO;WACR,MAAM;YACL,MAAM;;;;;iBAHD,WAAW;YAChB,OAAO;WACR,MAAM;YACL,MAAM;;;;UA+Kd,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO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IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -25,6 +25,10 @@ import { default as WFilePicker } from '../components/FilePicker/WFilePicker.vue
25
25
  import { default as WFilterWrapper } from '../components/FilterWrapper/WFilterWrapper.vue';
26
26
  import { default as WForm } from '../components/Form/WForm.vue';
27
27
  import { default as WFormValidator } from '../components/Form/WFormValidator.vue';
28
+ import { default as WFormAsyncButtonGroup } from '../components/FormAsync/WFormAsyncButtonGroup.vue';
29
+ import { default as WFormAsyncInput } from '../components/FormAsync/WFormAsyncInput.vue';
30
+ import { default as WFormAsyncSelectSingle } from '../components/FormAsync/WFormAsyncSelectSingle.vue';
31
+ import { default as WFormAsyncToggle } from '../components/FormAsync/WFormAsyncToggle.vue';
28
32
  import { default as WHeaderBar } from '../components/HeaderBar/WHeaderBar.vue';
29
33
  import { default as WImageViewer } from '../components/ImageViewer/WImageViewer.vue';
30
34
  import { default as WInfiniteList } from '../components/InfiniteList/WInfiniteList.vue';
@@ -64,10 +68,9 @@ import { default as WTabsColumns } from '../components/Tabs/WTabsColumns.vue';
64
68
  import { default as WToggle } from '../components/Toggle/WToggle.vue';
65
69
  import { default as WTooltip } from '../components/Tooltip/WTooltip.vue';
66
70
  import { default as WTooltipContainer } from '../components/Tooltip/WTooltipContainer.vue';
67
-
68
71
  declare const _default: {
69
72
  install: (app: App | any) => void;
70
73
  };
71
74
  export default _default;
72
- export { WActionsBar, WBottomSheet, WButton, WButtonAction, WButtonCopy, WButtonDropdown, WButtonGroup, WButtonMore, WButtonMoreItem, WButtonSelection, WButtonSelectionAction, WCheckbox, WChip, WClickOutside, WCounter, WDatePicker, WDatePickerSingle, WDropdown, WDropdownMenu, WExpansion, WExpansionItem, WFieldWrapper, WFilePicker, WFilterWrapper, WForm, WFormValidator, WHeaderBar, WImageViewer, WInfiniteList, WInfiniteListPages, WInfoCard, WInfoCardNegative, WInput, WInputAsync, WInputDate, WInputOptions, WInputSuggest, WLink, WLinkArrow, WList, WListCard, WListCardField, WListHeader, WListHeaderItem, WMenuItem, WModal, WModalStepper, WModalWrapper, WNavBar, WNavItem, WNavItemExpand, WNavItemTransition, WNotify, WSelect, WSelectAsync, WSelectAsyncList, WSelectAsyncSingle, WSelectSingle, WSkeleton, WSpinner, WTabs, WTabsColumns, WToggle, WTooltip, WTooltipContainer, };
75
+ export { WActionsBar, WBottomSheet, WButton, WButtonAction, WButtonCopy, WButtonDropdown, WButtonGroup, WButtonMore, WButtonMoreItem, WButtonSelection, WButtonSelectionAction, WCheckbox, WChip, WClickOutside, WCounter, WDatePicker, WDatePickerSingle, WDropdown, WDropdownMenu, WExpansion, WExpansionItem, WFieldWrapper, WFilePicker, WFilterWrapper, WForm, WFormValidator, WFormAsyncButtonGroup, WFormAsyncInput, WFormAsyncSelectSingle, WFormAsyncToggle, WHeaderBar, WImageViewer, WInfiniteList, WInfiniteListPages, WInfoCard, WInfoCardNegative, WInput, WInputAsync, WInputDate, WInputOptions, WInputSuggest, WLink, WLinkArrow, WList, WListCard, WListCardField, WListHeader, WListHeaderItem, WMenuItem, WModal, WModalStepper, WModalWrapper, WNavBar, WNavItem, WNavItemExpand, WNavItemTransition, WNotify, WSelect, WSelectAsync, WSelectAsyncList, WSelectAsyncSingle, WSelectSingle, WSkeleton, WSpinner, WTabs, WTabsColumns, WToggle, WTooltip, WTooltipContainer, };
73
76
  //# sourceMappingURL=componentsPlugin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"componentsPlugin.d.ts","sourceRoot":"","sources":["../../src/imports/componentsPlugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,GAAG,EAAC,MAAM,KAAK,CAAA;AAE5B,OAAO,WAAW,MAAM,yCAAyC,CAAA;AACjE,OAAO,YAAY,MAAM,2CAA2C,CAAA;AACpE,OAAO,OAAO,MAAM,iCAAiC,CAAA;AACrD,OAAO,aAAa,MAAM,uCAAuC,CAAA;AACjE,OAAO,WAAW,MAAM,qCAAqC,CAAA;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,EACb,WAAW,EACX,eAAe,EACf,YAAY,EACZ,WAAW,EACX,eAAe,EACf,gBAAgB,EAChB,sBAAsB,EACtB,SAAS,EACT,KAAK,EACL,aAAa,EACb,QAAQ,EACR,WAAW,EACX,iBAAiB,EACjB,SAAS,EACT,aAAa,EACb,UAAU,EACV,cAAc,EACd,aAAa,EACb,WAAW,EACX,cAAc,EACd,KAAK,EACL,cAAc,EACd,UAAU,EACV,YAAY,EACZ,aAAa,EACb,kBAAkB,EAClB,SAAS,EACT,iBAAiB,EACjB,MAAM,EACN,WAAW,EACX,UAAU,EACV,aAAa,EACb,aAAa,EACb,KAAK,EACL,UAAU,EACV,KAAK,EACL,SAAS,EACT,cAAc,EACd,WAAW,EACX,eAAe,EACf,SAAS,EACT,MAAM,EACN,aAAa,EACb,aAAa,EACb,OAAO,EACP,QAAQ,EACR,cAAc,EACd,kBAAkB,EAClB,OAAO,EACP,OAAO,EACP,YAAY,EACZ,gBAAgB,EAChB,kBAAkB,EAClB,aAAa,EACb,SAAS,EACT,QAAQ,EACR,KAAK,EACL,YAAY,EACZ,OAAO,EACP,QAAQ,EACR,iBAAiB,GAClB,CAAA"}
1
+ {"version":3,"file":"componentsPlugin.d.ts","sourceRoot":"","sources":["../../src/imports/componentsPlugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,GAAG,EAAC,MAAM,KAAK,CAAA;AAE5B,OAAO,WAAW,MAAM,yCAAyC,CAAA;AACjE,OAAO,YAAY,MAAM,2CAA2C,CAAA;AACpE,OAAO,OAAO,MAAM,iCAAiC,CAAA;AACrD,OAAO,aAAa,MAAM,uCAAuC,CAAA;AACjE,OAAO,WAAW,MAAM,qCAAqC,CAAA;AAC7D,OAAO,eAAe,MAAM,yCAAyC,CAAA;AACrE,OAAO,YAAY,MAAM,sCAAsC,CAAA;AAC/D,OAAO,WAAW,MAAM,qCAAqC,CAAA;AAC7D,OAAO,eAAe,MAAM,yCAAyC,CAAA;AACrE,OAAO,gBAAgB,MAAM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e,EACf,YAAY,EACZ,WAAW,EACX,eAAe,EACf,gBAAgB,EAChB,sBAAsB,EACtB,SAAS,EACT,KAAK,EACL,aAAa,EACb,QAAQ,EACR,WAAW,EACX,iBAAiB,EACjB,SAAS,EACT,aAAa,EACb,UAAU,EACV,cAAc,EACd,aAAa,EACb,WAAW,EACX,cAAc,EACd,KAAK,EACL,cAAc,EACd,qBAAqB,EACrB,eAAe,EACf,sBAAsB,EACtB,gBAAgB,EAChB,UAAU,EACV,YAAY,EACZ,aAAa,EACb,kBAAkB,EAClB,SAAS,EACT,iBAAiB,EACjB,MAAM,EACN,WAAW,EACX,UAAU,EACV,aAAa,EACb,aAAa,EACb,KAAK,EACL,UAAU,EACV,KAAK,EACL,SAAS,EACT,cAAc,EACd,WAAW,EACX,eAAe,EACf,SAAS,EACT,MAAM,EACN,aAAa,EACb,aAAa,EACb,OAAO,EACP,QAAQ,EACR,cAAc,EACd,kBAAkB,EAClB,OAAO,EACP,OAAO,EACP,YAAY,EACZ,gBAAgB,EAChB,kBAAkB,EAClB,aAAa,EACb,SAAS,EACT,QAAQ,EACR,KAAK,EACL,YAAY,EACZ,OAAO,EACP,QAAQ,EACR,iBAAiB,GAClB,CAAA"}
package/dist/main.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  export * as iconsDefault from './imports/iconsDefault';
2
2
  export * as iconsSax from './imports/iconsSax';
3
3
  export * from './imports/componentsPlugin';
4
+ export * from './utils/api';
4
5
  export * from './utils/Notify';
5
6
  export * from './utils/Modal';
6
7
  export * from './utils/DOMListenerContainer';
@@ -9,6 +10,8 @@ export * from './utils/HorizontalAlign';
9
10
  export * from './utils/dateTime';
10
11
  export * from './utils/mobile';
11
12
  export * from './utils/useDefaultQuery';
13
+ export * from './utils/useQueryUpdater';
12
14
  export * from './utils/useCopy';
13
15
  export * from './utils/utils';
16
+ export * from './utils/validate';
14
17
  //# sourceMappingURL=main.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,YAAY,MAAM,wBAAwB,CAAA;AACtD,OAAO,KAAK,QAAQ,MAAM,oBAAoB,CAAA;AAC9C,cAAc,4BAA4B,CAAA;AAE1C,cAAc,gBAAgB,CAAA;AAC9B,cAAc,eAAe,CAAA;AAC7B,cAAc,8BAA8B,CAAA;AAC5C,cAAc,sBAAsB,CAAA;AACpC,cAAc,yBAAyB,CAAA;AACvC,cAAc,kBAAkB,CAAA;AAChC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,yBAAyB,CAAA;AACvC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA"}
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,YAAY,MAAM,wBAAwB,CAAA;AACtD,OAAO,KAAK,QAAQ,MAAM,oBAAoB,CAAA;AAC9C,cAAc,4BAA4B,CAAA;AAE1C,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,eAAe,CAAA;AAC7B,cAAc,8BAA8B,CAAA;AAC5C,cAAc,sBAAsB,CAAA;AACpC,cAAc,yBAAyB,CAAA;AACvC,cAAc,kBAAkB,CAAA;AAChC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,yBAAyB,CAAA;AACvC,cAAc,yBAAyB,CAAA;AACvC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA;AAC7B,cAAc,kBAAkB,CAAA"}
package/dist/main.js CHANGED
@@ -28,6 +28,10 @@ export { default as WFilePicker } from './components/FilePicker/WFilePicker.vue.
28
28
  export { default as WFilterWrapper } from './components/FilterWrapper/WFilterWrapper.vue.js';
29
29
  export { default as WForm } from './components/Form/WForm.vue.js';
30
30
  export { default as WFormValidator } from './components/Form/WFormValidator.vue.js';
31
+ export { default as WFormAsyncButtonGroup } from './components/FormAsync/WFormAsyncButtonGroup.vue.js';
32
+ export { default as WFormAsyncInput } from './components/FormAsync/WFormAsyncInput.vue.js';
33
+ export { default as WFormAsyncSelectSingle } from './components/FormAsync/WFormAsyncSelectSingle.vue.js';
34
+ export { default as WFormAsyncToggle } from './components/FormAsync/WFormAsyncToggle.vue.js';
31
35
  export { default as WHeaderBar } from './components/HeaderBar/WHeaderBar.vue.js';
32
36
  export { default as WImageViewer } from './components/ImageViewer/WImageViewer.vue.js';
33
37
  export { default as WInfiniteList } from './components/InfiniteList/WInfiniteList.vue.js';
@@ -67,6 +71,7 @@ export { default as WTabsColumns } from './components/Tabs/WTabsColumns.vue.js';
67
71
  export { default as WToggle } from './components/Toggle/WToggle.vue.js';
68
72
  export { default as WTooltip } from './components/Tooltip/WTooltip.vue.js';
69
73
  export { default as WTooltipContainer } from './components/Tooltip/WTooltipContainer.vue.js';
74
+ export { ApiError, ApiErrorCancel, handleApiError } from './utils/api.js';
70
75
  export { Notify, initNotify } from './utils/Notify.js';
71
76
  export { Modal, initModal } from './utils/Modal.js';
72
77
  import './utils/supportsPassive.js';
@@ -75,5 +80,7 @@ export { HorizontalAlign } from './utils/HorizontalAlign.js';
75
80
  export { Month, WeekDay, addDay, addMonth, addYear, dateFormat, dateFormatter, dateRegexp, dateToQueryString, datetimeFormat, durationHumanize, getDurationRound, getStartOfDay, getStartOfMonth, getStartOfNextDay, getStartOfWeek, isSameDate, isSameMonth, isSameYear, monthShortFormatter, parseDate, timeFormat, weekdayShortFormatter } from './utils/dateTime.js';
76
81
  export { getIsMobile, getIsTouchDevice } from './utils/mobile.js';
77
82
  export { useDefaultQuery } from './utils/useDefaultQuery.js';
83
+ export { paginatedResponseUpdater, useQueryUpdater } from './utils/useQueryUpdater.js';
78
84
  export { useCopy } from './utils/useCopy.js';
79
- export { debounce, genId, getAllScrollParents, getScrollParent, hasParent, isClientSide, isEqualArr, isEqualObj, isId, isIndex, isPage, numberCompactFormatter, numberFormatter, parseId, parseIndex, percentCompactFormatter, throttle } from './utils/utils.js';
85
+ export { debounce, genId, get, getAllScrollParents, getScrollParent, hasParent, isClientSide, isEqualArr, isEqualObj, isId, isIndex, isPage, numberCompactFormatter, numberFormatter, parseId, parseIndex, percentCompactFormatter, set, throttle } from './utils/utils.js';
86
+ export { validateRequired } from './utils/validate.js';
@@ -1,4 +1,3 @@
1
-
2
1
  declare type SVGComponent = import('vue').Raw<import('vue').FunctionalComponent<import('vue').SVGAttributes, Record<string, never>>>
3
2
 
4
3
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -26,7 +25,7 @@ declare type PaginatedResponse<ValueType extends Record<string, unknown> | unkno
26
25
  results: ValueType[]
27
26
  }
28
27
 
29
- declare type ValidateFn = (value: string | number | undefined | string[]) => string | undefined
28
+ declare type ValidateFn = (value: string | number | undefined | string[] | boolean | null) => string | undefined
30
29
 
31
30
  declare type InputType = 'number' | 'text' | 'tel' | 'search' | 'password' | 'email' | 'search' | 'url'
32
31
 
@@ -36,22 +35,21 @@ declare module 'eco-vue-js/dist/assets/icons/*' {
36
35
  export default src
37
36
  }
38
37
 
39
- declare type DefaultData = {id: number, [key: string]: unknown}
38
+ declare type DefaultData = {id: number | string, [key: string]: unknown}
40
39
 
41
40
  type Params = Parameters<import('@tanstack/vue-query').QueryClient['setQueriesData']>
42
41
 
43
- declare type UseQueryDefault<TQueryFnData = unknown, TError = DefaultQueryConfig['ApiError'], TData = TQueryFnData, TQueryKey extends import('@tanstack/vue-query').QueryKey = import('@tanstack/vue-query').QueryKey> =
44
- typeof import('../utils/useDefaultQuery').useDefaultQuery<TQueryFnData, TError, TData, TQueryKey>
45
-
46
- declare type QueryOptions<Data, Error = DefaultQueryConfig['ApiError']> = Partial<Parameters<typeof import('../utils/useDefaultQuery').useDefaultQuery<Data, Error>>[0]>
42
+ declare type UseQueryDefault<TQueryFnData = unknown, TData = TQueryFnData, TQueryKey extends import('@tanstack/vue-query').QueryKey = import('@tanstack/vue-query').QueryKey> =
43
+ typeof import('../utils/useDefaultQuery').useDefaultQuery<TQueryFnData, TData, TQueryKey>
47
44
 
48
- declare type UseQueryEmpty<Model, ApiError> = (options?: QueryOptions<Model, ApiError>) => ReturnType<typeof import('../utils/useDefaultQuery').useDefaultQuery<Model, ApiError>>
45
+ declare type QueryOptions<Data> = Partial<Parameters<typeof import('../utils/useDefaultQuery').useDefaultQuery<Data>>[0]>
49
46
 
50
- declare type UseQueryWithParams<Model, ApiError, QueryParams> =
51
- (queryParams: import('vue').MaybeRef<QueryParams>, options?: QueryOptions<Model, ApiError>) => ReturnType<typeof import('../utils/useDefaultQuery').useDefaultQuery<Model, ApiError>>
47
+ declare type UseQueryEmpty<Model> = (options?: QueryOptions<Model>) => ReturnType<typeof import('../utils/useDefaultQuery').useDefaultQuery<Model>>
52
48
 
53
- declare type UseQueryPaginated<Model, ApiError, QueryParams> = UseQueryWithParams<PaginatedResponse<Model>, ApiError, QueryParams>
49
+ declare type UseQueryWithParams<Model, QueryParams> =
50
+ (queryParams: import('vue').MaybeRef<QueryParams>, options?: QueryOptions<Model>) => ReturnType<typeof import('../utils/useDefaultQuery').useDefaultQuery<Model>>
54
51
 
52
+ declare type UseQueryPaginated<Model, QueryParams> = UseQueryWithParams<PaginatedResponse<Model>, QueryParams>
55
53
 
56
54
  declare interface SelectedPage<Value> {
57
55
  page: number
@@ -64,6 +62,45 @@ declare type SelectedRange<Value> = [
64
62
  SelectedPage<Value>,
65
63
  ]
66
64
 
65
+ declare type ConfirmProps = Omit<import('../components/Modal/types').ConfirmModalProps, 'onAccept' | 'onCancel' | 'onIntermediate'>
66
+
67
+ declare type RequestData = Record<string, unknown> | Record<string, unknown>[] | FormData
68
+
69
+ declare type RequestConfig<Data extends RequestData = RequestData> = {
70
+ data?: Data
71
+ params?: Record<string, string | number | Record<string, unknown> | number[] | Record<string, unknown>[] | undefined>
72
+ signal?: AbortSignal
73
+ noAuth?: boolean
74
+ updateToken?: boolean
75
+ }
76
+
77
+ declare type RequestResponse<Response, Data extends RequestData = RequestData> = {
78
+ data: Response
79
+ status?: number
80
+ config?: RequestConfig<Data>
81
+ request: Request
82
+ }
83
+
84
+ /**
85
+ * UTILITY TYPES
86
+ */
87
+
88
+ declare type OmitReqursive<Model extends object, Field extends keyof Model | string | number | symbol> = {
89
+ [Key in Exclude<keyof Model, Field>]: Model[Key] extends object[]
90
+ ? OmitReqursive<Model[Key][number], Field>[]
91
+ : Model[Key] extends object
92
+ ? OmitReqursive<Model[Key], Field>
93
+ : Model[Key]
94
+ } & {[K in Field]: never}
95
+
96
+ declare type PickByType<Model, FieldType, IncludeNull = false> = {
97
+ [
98
+ Key in keyof Model as IncludeNull extends true
99
+ ? Exclude<Model[Key], null> extends FieldType ? Key : never
100
+ : Model[Key] extends FieldType ? Key : never
101
+ ]: Model[Key]
102
+ }
103
+
67
104
  declare type UnionToIntersection<T> =
68
105
  (T extends T ? (arg: T) => 0 : never) extends
69
106
  (arg: infer I) => 0
@@ -89,3 +126,53 @@ declare type UnionToTuple<
89
126
  ]
90
127
 
91
128
  declare type ObjectKeys<O> = UnionToTuple<keyof O>
129
+
130
+ declare type PartialNested<T> = {
131
+ [P in keyof T]?: (T[P] extends object ? PartialNested<T[P]> : T[P]) | undefined
132
+ }
133
+
134
+ declare type Flatten<T> =
135
+ T extends []
136
+ ? []
137
+ : T extends [infer Head, ...infer Tail]
138
+ ? [...Flatten<Head>, ...Flatten<Tail>]
139
+ : [T]
140
+
141
+ declare type FilterOut<T, Pred> =
142
+ T extends [infer Head, ...infer Tail]
143
+ ? [Head] extends [Pred]
144
+ ? FilterOut<Tail, Pred>
145
+ : [Head, ...FilterOut<Tail, Pred>]
146
+ : []
147
+
148
+ declare type Split<Value extends string, Divider extends string> = Value extends `${ infer Start }${ Divider }${ infer End }`
149
+ ? [...Split<Start, Divider>, ...Split<End, Divider>]
150
+ : Value extends '' ? [] : [Value]
151
+
152
+ declare type Indexes<T> = Readonly<T> extends readonly [unknown, ...infer Tail]
153
+ ? [...Indexes<Tail>, Tail['length']]
154
+ : []
155
+
156
+ type PathsEntries<Model, FieldType, IncludeNull = false, ParentKey extends string = never, FilteredModel = PickByType<Model, FieldType, IncludeNull>> = ObjectKeys<Model> extends [infer Head, ...unknown[]]
157
+ ? Head extends string
158
+ ? Head extends keyof FilteredModel
159
+ ? [
160
+ [[ParentKey] extends [never] ? Head : `${ ParentKey }.${ Head }`, FilteredModel[Head]],
161
+ ...PathsEntries<Omit<Model, Head>, FieldType, IncludeNull, ParentKey, FilteredModel>
162
+ ]
163
+ : Head extends keyof Model
164
+ ? Model[Head] extends object
165
+ ? [
166
+ ...PathsEntries<Model[Head], FieldType, IncludeNull, Head>,
167
+ ...PathsEntries<Omit<Model, Head>, FieldType, IncludeNull, ParentKey, FilteredModel>
168
+ ]
169
+ : PathsEntries<Omit<Model, Head>, FieldType, IncludeNull, ParentKey, FilteredModel>
170
+ : []
171
+ : []
172
+ : []
173
+
174
+ declare type ObjectFromEntries<List> = {
175
+ [KeyValue in List as KeyValue[0]]: KeyValue[1]
176
+ }
177
+
178
+ declare type ObjectPaths<Model, FieldType, IncludeNull = false> = ObjectFromEntries<PathsEntries<Model, FieldType, IncludeNull>[number]>
@@ -1,6 +1,5 @@
1
1
  import { Component, ComponentOptions, MethodOptions } from 'vue';
2
2
  import { ConfirmModalProps } from '../components/Modal/types';
3
-
4
3
  export type ModalComponent<Props> = Component<Props, any, any, ComponentOptions, MethodOptions, {
5
4
  'close:modal': () => void;
6
5
  }>;
@@ -1,5 +1,4 @@
1
1
  import { AddNotify, NotifyConfig } from '../components/Notify/models/types';
2
-
3
2
  export declare const initNotify: (value: AddNotify | undefined) => void;
4
3
  export declare const Notify: {
5
4
  success(config: Omit<NotifyConfig, "type">): void;
@@ -1,5 +1,4 @@
1
1
  import { VNode } from 'vue';
2
-
3
2
  export type TooltipMeta = {
4
3
  parent: HTMLElement;
5
4
  slot?: VNode;
@@ -0,0 +1,15 @@
1
+ import { default as WForm } from '../components/Form/WForm.vue';
2
+ import { default as WFormValidator } from '../components/Form/WFormValidator.vue';
3
+ export declare class ApiError<Response, Data extends RequestData = RequestData> extends Error {
4
+ readonly response: RequestResponse<Response, Data>;
5
+ constructor(response: RequestResponse<Response, Data>);
6
+ }
7
+ export declare class ApiErrorCancel<Response, Data extends RequestData = RequestData> extends ApiError<Response, Data> {
8
+ constructor(response: RequestResponse<Response, Data>);
9
+ }
10
+ export declare const handleApiError: <Error>(error: Error, form?: {
11
+ invalidate: ComponentInstance<typeof WForm>["invalidate"];
12
+ }, field?: string, formValidator?: {
13
+ invalidate: ComponentInstance<typeof WFormValidator>["invalidate"];
14
+ }) => Promise<Error>;
15
+ //# sourceMappingURL=api.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/utils/api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,6BAA6B,CAAA;AACpD,OAAO,KAAK,cAAc,MAAM,sCAAsC,CAAA;AAItE,qBAAa,QAAQ,CAAC,QAAQ,EAAE,IAAI,SAAS,WAAW,GAAG,WAAW,CAAE,SAAQ,KAAK;aACvD,QAAQ,EAAE,eAAe,CAAC,QAAQ,EAAE,IAAI,CAAC;gBAAzC,QAAQ,EAAE,eAAe,CAAC,QAAQ,EAAE,IAAI,CAAC;CAGtE;AAED,qBAAa,cAAc,CAAC,QAAQ,EAAE,IAAI,SAAS,WAAW,GAAG,WAAW,CAAE,SAAQ,QAAQ,CAAC,QAAQ,EAAE,IAAI,CAAC;gBAChG,QAAQ,EAAE,eAAe,CAAC,QAAQ,EAAE,IAAI,CAAC;CAGtD;AAED,eAAO,MAAM,cAAc,GAAI,KAAK,SAC3B,KAAK,SACL;IAAC,UAAU,EAAE,iBAAiB,CAAC,OAAO,KAAK,CAAC,CAAC,YAAY,CAAC,CAAA;CAAC,UAC1D,MAAM,kBACE;IAAC,UAAU,EAAE,iBAAiB,CAAC,OAAO,cAAc,CAAC,CAAC,YAAY,CAAC,CAAA;CAAC,KACnF,OAAO,CAAC,KAAK,CAgBf,CAAA"}
@@ -0,0 +1,28 @@
1
+ import { Notify } from './Notify.js';
2
+ import { get } from './utils.js';
3
+
4
+ class ApiError extends Error {
5
+ constructor(response) {
6
+ super();
7
+ this.response = response;
8
+ }
9
+ }
10
+ class ApiErrorCancel extends ApiError {
11
+ constructor(response) {
12
+ super(response);
13
+ }
14
+ }
15
+ const handleApiError = (error, form, field, formValidator) => {
16
+ if (error instanceof ApiError && !(error instanceof ApiErrorCancel)) {
17
+ const caption = error.response?.data?.detail ?? error.response?.data?.non_field_errors?.join(", ") ?? (field ? get(error.response?.data, field)?.join(", ") : void 0);
18
+ Notify.error({
19
+ title: "Error",
20
+ caption: typeof caption === "string" && caption.length < 200 ? caption : void 0
21
+ });
22
+ if (formValidator && caption.length < 200) formValidator.invalidate(caption);
23
+ if (error.response?.data instanceof Object) form?.invalidate(error.response.data);
24
+ }
25
+ return Promise.reject(error);
26
+ };
27
+
28
+ export { ApiError, ApiErrorCancel, handleApiError };
@@ -1,7 +1,6 @@
1
1
  import { MaybeRef } from 'vue';
2
-
3
2
  export declare const useCopy: (value: MaybeRef<string | number | undefined>) => {
4
- copied: import('vue').Ref<boolean>;
3
+ copied: import('vue').Ref<boolean, boolean>;
5
4
  iconCopy: import('vue').ComputedRef<import('vue').Raw<import('vue').FunctionalComponent<import('vue').SVGAttributes, {}, any, {}>>>;
6
5
  doCopy: () => void;
7
6
  };
@@ -1,7 +1,7 @@
1
1
  import { QueryClient, UseQueryReturnType, QueryKey } from '@tanstack/vue-query';
2
-
2
+ import { ApiError } from './api';
3
3
  type Params = Parameters<QueryClient['setQueriesData']>;
4
- export declare const useDefaultQuery: <TQueryFnData = unknown, TError = import('../types/types').DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(options: import('@tanstack/vue-query').UseQueryOptions<TQueryFnData, TError, TData, TQueryFnData, TQueryKey>, queryClient?: QueryClient | undefined) => UseQueryReturnType<TData, TError> & {
4
+ export declare const useDefaultQuery: <TQueryFnData = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(options: import('@tanstack/vue-query').UseQueryOptions<TQueryFnData, ApiError<TQueryFnData, RequestData>, TData, TQueryFnData, TQueryKey>, queryClient?: QueryClient | undefined) => UseQueryReturnType<TData, ApiError<TQueryFnData>> & {
5
5
  setData: (updater: TQueryFnData, options?: Params[2]) => ReturnType<QueryClient["setQueriesData"]>;
6
6
  };
7
7
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"useDefaultQuery.d.ts","sourceRoot":"","sources":["../../src/utils/useDefaultQuery.ts"],"names":[],"mappings":"AACA,OAAO,EAA2B,KAAK,WAAW,EAAE,KAAK,kBAAkB,EAAE,KAAK,QAAQ,EAAC,MAAM,qBAAqB,CAAA;AAEtH,KAAK,MAAM,GAAG,UAAU,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAAC,CAAA;AAEvD,eAAO,MAAM,eAAe,GAC1B,YAAY,YACZ,MAAM,yCACN,KAAK,iBACL,SAAS,SAAS,QAAQ,qKAEsD,kBAAkB,CAAC,KAAK,EAAE,MAAM,CAAC,GAAG;IAClH,OAAO,EAAE,CAAC,OAAO,EAAE,YAAY,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,KAAK,UAAU,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAAC,CAAA;CAUrG,CAAA"}
1
+ {"version":3,"file":"useDefaultQuery.d.ts","sourceRoot":"","sources":["../../src/utils/useDefaultQuery.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2B,KAAK,WAAW,EAAE,KAAK,kBAAkB,EAAE,KAAK,QAAQ,EAAC,MAAM,qBAAqB,CAAA;AACtH,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,OAAO,CAAA;AAEnC,KAAK,MAAM,GAAG,UAAU,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAAC,CAAA;AAEvD,eAAO,MAAM,eAAe,GAC1B,YAAY,YACZ,KAAK,iBACL,SAAS,SAAS,QAAQ,kMAEsE,kBAAkB,CAAC,KAAK,EAAE,QAAQ,CAAC,YAAY,CAAC,CAAC,GAAG;IAClJ,OAAO,EAAE,CAAC,OAAO,EAAE,YAAY,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,KAAK,UAAU,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAAC,CAAA;CAUrG,CAAA"}
@@ -0,0 +1,11 @@
1
+ import { QueryFilters } from '@tanstack/vue-query';
2
+ export declare const paginatedResponseUpdater: <Data extends DefaultData>(oldData: PaginatedResponse<Data> | undefined, newValues: Data[], selected: number[], reverseSelection?: boolean) => PaginatedResponse<Data> | undefined;
3
+ export declare const useQueryUpdater: () => {
4
+ update: <Model extends DefaultData>(data: Model, options: {
5
+ listQueryFilter?: QueryFilters;
6
+ paginatedQueryFilter?: QueryFilters;
7
+ }) => void;
8
+ updateBulk: <Model extends DefaultData>(data: Model[], filter: QueryFilters) => void;
9
+ delete: <Model extends DefaultData>(filter: QueryFilters, selected: number[], reverse?: boolean) => void;
10
+ };
11
+ //# sourceMappingURL=useQueryUpdater.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useQueryUpdater.d.ts","sourceRoot":"","sources":["../../src/utils/useQueryUpdater.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,YAAY,EAAC,MAAM,qBAAqB,CAAA;AAErE,eAAO,MAAM,wBAAwB,GAAI,IAAI,SAAS,WAAW,WAAW,iBAAiB,CAAC,IAAI,CAAC,GAAG,SAAS,aAAa,IAAI,EAAE,YAAY,MAAM,EAAE,iCAA6B,iBAAiB,CAAC,IAAI,CAAC,GAAG,SAuB5M,CAAA;AAED,eAAO,MAAM,eAAe;aAGV,KAAK,SAAS,WAAW,QAAQ,KAAK,WAAW;QAAC,eAAe,CAAC,EAAE,YAAY,CAAC;QAAC,oBAAoB,CAAC,EAAE,YAAY,CAAA;KAAC;iBAwBlH,KAAK,SAAS,WAAW,QAAQ,KAAK,EAAE,UAAU,YAAY;aAM7D,KAAK,SAAS,WAAW,UAAU,YAAY,YAAY,MAAM,EAAE;CAYzF,CAAA"}
@@ -0,0 +1,56 @@
1
+ import { useQueryClient } from '@tanstack/vue-query';
2
+
3
+ const paginatedResponseUpdater = (oldData, newValues, selected, reverseSelection = false) => {
4
+ if (!oldData) return void 0;
5
+ const included = reverseSelection ? oldData.results.filter((item) => !selected.includes(item.id)) : oldData.results.filter((item) => selected.includes(item.id));
6
+ if (!included.length) return oldData;
7
+ const newData = { ...oldData, results: oldData.results.slice() };
8
+ included.forEach((oldItem) => {
9
+ const index = newData.results.indexOf(oldItem);
10
+ if (index === -1) return;
11
+ const finding = newValues.find((item) => item.id === oldItem.id);
12
+ if (finding) newData.results.splice(index, 1, finding);
13
+ else newData.results.splice(index, 1);
14
+ });
15
+ return newData;
16
+ };
17
+ const useQueryUpdater = () => {
18
+ const queryClient = useQueryClient();
19
+ const update = (data, options) => {
20
+ if (options.listQueryFilter) {
21
+ queryClient.setQueriesData(options.listQueryFilter, (value) => {
22
+ if (!value) return;
23
+ const index = value.findIndex((item) => item.id === data.id);
24
+ if (index === -1) return;
25
+ const newList = value.slice();
26
+ newList.splice(index, 1, data);
27
+ return newList;
28
+ });
29
+ }
30
+ if (options.paginatedQueryFilter) {
31
+ queryClient.setQueriesData(
32
+ options.paginatedQueryFilter,
33
+ (oldData) => paginatedResponseUpdater(oldData, [data], [data.id])
34
+ );
35
+ }
36
+ };
37
+ const updateBulk = (data, filter) => {
38
+ queryClient.setQueriesData(
39
+ filter,
40
+ (oldData) => paginatedResponseUpdater(oldData, data, data.map((item) => item.id))
41
+ );
42
+ };
43
+ const deleteItems = (filter, selected, reverse = false) => {
44
+ queryClient.setQueriesData(
45
+ filter,
46
+ (oldData) => paginatedResponseUpdater(oldData, [], selected, reverse)
47
+ );
48
+ };
49
+ return {
50
+ update,
51
+ updateBulk,
52
+ delete: deleteItems
53
+ };
54
+ };
55
+
56
+ export { paginatedResponseUpdater, useQueryUpdater };
@@ -16,5 +16,7 @@ export declare const parseId: (value: unknown) => number;
16
16
  export declare const isPage: (value: unknown) => value is number;
17
17
  export declare const isIndex: (value: unknown) => value is number;
18
18
  export declare const parseIndex: (value: unknown) => number;
19
+ export declare const get: <FieldType, Data extends Record<string, FieldType | Data>>(data: Data, path: keyof ObjectPaths<Data, FieldType>) => FieldType | undefined;
20
+ export declare const set: <FieldType, Data extends Record<string, FieldType | Data>>(data: Data, path: keyof ObjectPaths<Data, FieldType>, value: FieldType) => Data;
19
21
  export {};
20
22
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils/utils.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,eAAe,SAAU,OAAO,KAAG,OAAO,GAAG,IAKhD,CAAA;AAEV,eAAO,MAAM,mBAAmB,UAAW,OAAO,mBAAa,KAAK,CAAC,OAAO,CAa3E,CAAA;AAED,eAAO,MAAM,SAAS,WAAY,OAAO,WAAW,OAAO,KAAG,OAI7D,CAAA;AAGD,KAAK,UAAU,GAAG,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,CAAA;AAE1C,wBAAgB,QAAQ,CAAC,CAAC,SAAS,UAAU,EAAE,EAAE,EAAE,CAAC,EAAE,KAAK,SAAM,GAAG,CAAC,CAWpE;AAED,wBAAgB,QAAQ,CAAC,CAAC,SAAS,UAAU,EAAE,EAAE,EAAE,CAAC,EAAE,KAAK,SAAM,GAAG,CAAC,CAYpE;AAED,eAAO,MAAM,UAAU,SAAU,OAAO,EAAE,QAAQ,OAAO,EAAE,KAAG,OAE7D,CAAA;AAED,eAAO,MAAM,UAAU,SAAU,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,YAAY,MAAM,EAAE,YAAY,MAAM,EAAE,KAAG,OAWjI,CAAA;AAED,eAAO,MAAM,uBAAuB,mBAAmE,CAAA;AACvG,eAAO,MAAM,sBAAsB,mBAAiD,CAA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E,KAAG,OAWjI,CAAA;AAED,eAAO,MAAM,uBAAuB,mBAAmE,CAAA;AACvG,eAAO,MAAM,sBAAsB,mBAAiD,CAAA;AACpF,eAAO,MAAM,eAAe,mBAA0B,CAAA;AAEtD,eAAO,MAAM,YAAY,EAAE,OAAuC,CAAA;AAIlE,eAAO,MAAM,KAAK,cAEjB,CAAA;AAED,eAAO,MAAM,IAAI,UAAW,OAAO,KAAG,KAAK,IAAI,MAE9C,CAAA;AAED,eAAO,MAAM,OAAO,UAAW,OAAO,KAAG,MAUxC,CAAA;AAED,eAAO,MAAM,MAAM,UAAW,OAAO,KAAG,KAAK,IAAI,MAAqB,CAAA;AAEtE,eAAO,MAAM,OAAO,UAAW,OAAO,KAAG,KAAK,IAAI,MAEjD,CAAA;AAED,eAAO,MAAM,UAAU,UAAW,OAAO,KAAG,MAU3C,CAAA;AAED,eAAO,MAAM,GAAG,GAAI,SAAS,EAAE,IAAI,SAAS,MAAM,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CAAC,QAAQ,IAAI,QAAQ,MAAM,WAAW,CAAC,IAAI,EAAE,SAAS,CAAC,KAAG,SAAS,GAAG,SAA8H,CAAA;AAE/Q,eAAO,MAAM,GAAG,GAAI,SAAS,EAAE,IAAI,SAAS,MAAM,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CAAC,QAAQ,IAAI,QAAQ,MAAM,WAAW,CAAC,IAAI,EAAE,SAAS,CAAC,SAAS,SAAS,KAAG,IAYtJ,CAAA"}
@@ -79,5 +79,17 @@ const parseIndex = (value) => {
79
79
  if (isIndex(parsed)) return parsed;
80
80
  return NaN;
81
81
  };
82
+ const get = (data, path) => path.split(".").reduce((result, current) => result?.[current], data);
83
+ const set = (data, path, value) => {
84
+ path.split(".").reduce((acc, current, index, array) => {
85
+ if (index !== array.length - 1) {
86
+ if (!acc[current]) acc[current] = {};
87
+ } else {
88
+ acc[current] = value;
89
+ }
90
+ return acc;
91
+ }, data);
92
+ return data;
93
+ };
82
94
 
83
- export { debounce, genId, getAllScrollParents, getScrollParent, hasParent, isClientSide, isEqualArr, isEqualObj, isId, isIndex, isPage, numberCompactFormatter, numberFormatter, parseId, parseIndex, percentCompactFormatter, throttle };
95
+ export { debounce, genId, get, getAllScrollParents, getScrollParent, hasParent, isClientSide, isEqualArr, isEqualObj, isId, isIndex, isPage, numberCompactFormatter, numberFormatter, parseId, parseIndex, percentCompactFormatter, set, throttle };
@@ -0,0 +1,2 @@
1
+ export declare const validateRequired: (value: unknown) => "A value is required" | undefined;
2
+ //# sourceMappingURL=validate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["../../src/utils/validate.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,UAAW,OAAO,sCAGsC,CAAA"}
@@ -0,0 +1,3 @@
1
+ const validateRequired = (value) => value === void 0 || value === null || value === "" || Array.isArray(value) && value.length === 0 ? "A value is required" : void 0;
2
+
3
+ export { validateRequired };