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
@@ -0,0 +1,131 @@
1
+ import { defineComponent, toRef, ref, computed, onBeforeUnmount, openBlock, createBlock, mergeProps, unref, createSlots, withCtx, renderSlot } from 'vue';
2
+ import _sfc_main$1 from '../Input/WInputAsync.vue.js';
3
+ import { Notify } from '../../utils/Notify.js';
4
+ import { validateRequired } from '../../utils/validate.js';
5
+ import { Modal } from '../../utils/Modal.js';
6
+ import { handleApiError } from '../../utils/api.js';
7
+ import { get, set } from '../../utils/utils.js';
8
+
9
+ const _sfc_main = /* @__PURE__ */ defineComponent({
10
+ __name: "WFormAsyncInput",
11
+ props: {
12
+ useQueryFn: {},
13
+ noParams: { type: Boolean },
14
+ queryParams: {},
15
+ queryEnabled: { type: Boolean },
16
+ field: {},
17
+ apiMethod: { type: Function },
18
+ confimGetter: { type: Function },
19
+ validate: {},
20
+ type: {},
21
+ textarea: { type: Boolean },
22
+ resize: { type: Boolean },
23
+ placeholder: {},
24
+ icon: {},
25
+ size: {},
26
+ maxLength: {},
27
+ name: {},
28
+ autocomplete: {},
29
+ autofocus: { type: Boolean },
30
+ readonly: { type: Boolean },
31
+ disabledActions: { type: Boolean },
32
+ loading: { type: Boolean },
33
+ spellcheck: { type: Boolean },
34
+ customBackspaceHandle: { type: Boolean },
35
+ textSecure: { type: Boolean },
36
+ allowClear: { type: Boolean },
37
+ allowPaste: { type: Boolean },
38
+ hideInput: { type: Boolean },
39
+ title: {},
40
+ description: {},
41
+ errorMessage: {},
42
+ tooltipText: {},
43
+ mono: { type: Boolean },
44
+ hasChanges: { type: Boolean },
45
+ skeleton: { type: Boolean },
46
+ disabled: { type: Boolean },
47
+ required: { type: Boolean },
48
+ noMargin: { type: Boolean },
49
+ allowCopy: { type: Boolean }
50
+ },
51
+ emits: ["success"],
52
+ setup(__props, { emit: __emit }) {
53
+ const props = __props;
54
+ const emit = __emit;
55
+ const { data, setData, isLoadingError } = props.noParams === true ? props.useQueryFn({ enabled: toRef(props, "queryEnabled") }) : props.useQueryFn(toRef(props, "queryParams"), { enabled: toRef(props, "queryEnabled") });
56
+ const submitting = ref(false);
57
+ const modelValue = computed(() => get(data.value ?? {}, props.field));
58
+ const validateFn = computed(() => {
59
+ const result = Array.isArray(props.validate) ? props.validate.slice() : props.validate ? [props.validate] : [];
60
+ if (props.required && !props.textSecure) result.push(validateRequired);
61
+ return result;
62
+ });
63
+ const save = (value) => {
64
+ if (submitting.value) return;
65
+ submitting.value = true;
66
+ return props.apiMethod(set({}, props.field, value ?? null)).then((response) => {
67
+ setData(response.data);
68
+ Notify.success({ title: "Saved" });
69
+ emit("success", response.data);
70
+ }).catch((error) => handleApiError(error, void 0, props.field)).finally(() => {
71
+ submitting.value = false;
72
+ });
73
+ };
74
+ let closeModal = null;
75
+ const showModal = (value) => {
76
+ closeModal?.();
77
+ const confirmProps = props.confimGetter?.(value);
78
+ if (!confirmProps) {
79
+ save(value);
80
+ return;
81
+ }
82
+ closeModal = Modal.addConfirm({
83
+ ...confirmProps,
84
+ onAccept: () => {
85
+ return save(value);
86
+ }
87
+ }, () => closeModal = null);
88
+ };
89
+ onBeforeUnmount(() => {
90
+ closeModal?.();
91
+ closeModal = null;
92
+ });
93
+ return (_ctx, _cache) => {
94
+ return openBlock(), createBlock(_sfc_main$1, mergeProps({
95
+ ...props,
96
+ modelValue: _ctx.textSecure ? void 0 : modelValue.value,
97
+ skeleton: _ctx.skeleton || !unref(data),
98
+ disabled: _ctx.disabled || unref(isLoadingError),
99
+ loading: _ctx.loading || submitting.value,
100
+ validate: validateFn.value,
101
+ placeholderSecure: _ctx.textSecure ? !!modelValue.value : void 0
102
+ }, {
103
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => showModal($event))
104
+ }), createSlots({ _: 2 }, [
105
+ _ctx.$slots.title ? {
106
+ name: "title",
107
+ fn: withCtx(() => [
108
+ renderSlot(_ctx.$slots, "title")
109
+ ]),
110
+ key: "0"
111
+ } : void 0,
112
+ _ctx.$slots.subtitle ? {
113
+ name: "subtitle",
114
+ fn: withCtx(() => [
115
+ renderSlot(_ctx.$slots, "subtitle")
116
+ ]),
117
+ key: "1"
118
+ } : void 0,
119
+ _ctx.$slots.right ? {
120
+ name: "right",
121
+ fn: withCtx(() => [
122
+ renderSlot(_ctx.$slots, "right")
123
+ ]),
124
+ key: "2"
125
+ } : void 0
126
+ ]), 1040);
127
+ };
128
+ }
129
+ });
130
+
131
+ export { _sfc_main as default };
@@ -0,0 +1,5 @@
1
+ import _sfc_main from './WFormAsyncInput.vue.js';
2
+
3
+
4
+
5
+ export { _sfc_main as default };
@@ -0,0 +1,26 @@
1
+ import { FormAsyncSelectProps } from './types';
2
+ import { SelectOptionComponent } from '../Select/types';
3
+ declare const _default: <Model, FieldType extends string | number, QueryParams, Data extends DefaultData, OptionComponent extends SelectOptionComponent<Data>, AllowClear extends boolean = false>(__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<{
4
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
5
+ readonly onSuccess?: ((value: Model) => any) | undefined;
6
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & Readonly<{}> & Readonly<{
7
+ onSuccess?: ((value: Model) => any) | undefined;
8
+ }>, never>, "onSuccess"> & FormAsyncSelectProps<Model, FieldType, QueryParams, Data, OptionComponent, AllowClear>> & import('vue').PublicProps;
9
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
10
+ attrs: any;
11
+ slots: {
12
+ title?(_: {}): any;
13
+ subtitle?(_: {}): any;
14
+ right?(_: {}): any;
15
+ };
16
+ emit: (e: "success", value: Model) => void;
17
+ }>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
18
+ [key: string]: any;
19
+ }> & {
20
+ __ctx?: Awaited<typeof __VLS_setup>;
21
+ };
22
+ export default _default;
23
+ type __VLS_PrettifyLocal<T> = {
24
+ [K in keyof T]: T[K];
25
+ } & {};
26
+ //# sourceMappingURL=WFormAsyncSelectSingle.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WFormAsyncSelectSingle.vue.d.ts","sourceRoot":"","sources":["../../../src/components/FormAsync/WFormAsyncSelectSingle.vue"],"names":[],"mappings":"AA0GA,OAAO,KAAK,EAAC,oBAAoB,EAAC,MAAM,SAAS,CAAA;AACjD,OAAO,KAAK,EAAC,qBAAqB,EAAC,MAAM,2BAA2B,CAAA;yBAQnD,KAAK,EAAE,SAAS,SAAS,MAAM,GAAG,MAAM,EAAE,WAAW,EAAE,IAAI,SAAS,WAAW,EAAE,eAAe,SAAS,qBAAqB,CAAC,IAAI,CAAC,EAAE,UAAU,SAAS,OAAO,uBACnK,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;WA8LxD,mBAAmB,CAAC;;;;qHAAyD,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;uBAlCc,GAAG;0BACA,GAAG;uBACN,GAAG;;cAvJxB,SAAS,SAAS,KAAK,KAAG,IAAI;;;;YA4LQ,OAAO,CAAC,OAAO,WAAW,CAAC;;AAxMvE,wBAwM4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -0,0 +1,139 @@
1
+ import { defineComponent, toRef, ref, computed, onBeforeUnmount, openBlock, createBlock, mergeProps, unref, createSlots, withCtx, renderSlot } from 'vue';
2
+ import _sfc_main$1 from '../Select/WSelectSingle.vue.js';
3
+ import { get, set } from '../../utils/utils.js';
4
+ import { Notify } from '../../utils/Notify.js';
5
+ import { handleApiError } from '../../utils/api.js';
6
+ import { Modal } from '../../utils/Modal.js';
7
+
8
+ const _sfc_main = /* @__PURE__ */ defineComponent({
9
+ __name: "WFormAsyncSelectSingle",
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
+ allowClear: { type: Boolean },
19
+ searchModel: { type: Boolean },
20
+ useQueryFnOptions: {},
21
+ valueGetter: { type: Function },
22
+ searchFn: { type: Function },
23
+ emptyStub: {},
24
+ hidePrefix: { type: Boolean },
25
+ allowCreate: { type: Boolean },
26
+ hideOptionIcon: { type: Boolean },
27
+ mobileTitle: {},
28
+ persist: { type: Boolean },
29
+ type: {},
30
+ textarea: { type: Boolean },
31
+ resize: { type: Boolean },
32
+ placeholder: {},
33
+ icon: {},
34
+ size: {},
35
+ maxLength: {},
36
+ name: {},
37
+ autocomplete: {},
38
+ autofocus: { type: Boolean },
39
+ readonly: { type: Boolean },
40
+ disabledActions: { type: Boolean },
41
+ loading: { type: Boolean },
42
+ spellcheck: { type: Boolean },
43
+ customBackspaceHandle: { type: Boolean },
44
+ textSecure: { type: Boolean },
45
+ placeholderSecure: { type: Boolean },
46
+ allowPaste: { type: Boolean },
47
+ title: {},
48
+ description: {},
49
+ errorMessage: {},
50
+ tooltipText: {},
51
+ mono: { type: Boolean },
52
+ hasChanges: { type: Boolean },
53
+ skeleton: { type: Boolean },
54
+ disabled: { type: Boolean },
55
+ required: { type: Boolean },
56
+ noMargin: { type: Boolean },
57
+ allowCopy: { type: Boolean },
58
+ teleport: { type: Boolean },
59
+ noZIndex: { type: Boolean },
60
+ maxHeight: {},
61
+ maxWidth: {},
62
+ horizontalAlign: {},
63
+ optionComponent: {},
64
+ optionComponentProps: {}
65
+ },
66
+ emits: ["success"],
67
+ setup(__props, { emit: __emit }) {
68
+ const props = __props;
69
+ const emit = __emit;
70
+ const { data, setData, isLoadingError } = props.noParams === true ? props.useQueryFn({ enabled: toRef(props, "queryEnabled") }) : props.useQueryFn(toRef(props, "queryParams"), { enabled: toRef(props, "queryEnabled") });
71
+ const submitting = ref(false);
72
+ const modelValue = computed(() => get(data.value ?? {}, props.field) ?? null);
73
+ const save = (value) => {
74
+ if (submitting.value) return;
75
+ submitting.value = true;
76
+ return props.apiMethod(set({}, props.field, value)).then((response) => {
77
+ setData(response.data);
78
+ Notify.success({ title: "Saved" });
79
+ emit("success", response.data);
80
+ }).catch((error) => handleApiError(error, void 0, props.field)).finally(() => {
81
+ submitting.value = false;
82
+ });
83
+ };
84
+ let closeModal = null;
85
+ const showModal = (value) => {
86
+ closeModal?.();
87
+ const confirmProps = props.confimGetter?.(value);
88
+ if (!confirmProps) {
89
+ save(value);
90
+ return;
91
+ }
92
+ closeModal = Modal.addConfirm({
93
+ ...confirmProps,
94
+ onAccept: () => {
95
+ return save(value);
96
+ }
97
+ }, () => closeModal = null);
98
+ };
99
+ onBeforeUnmount(() => {
100
+ closeModal?.();
101
+ closeModal = null;
102
+ });
103
+ return (_ctx, _cache) => {
104
+ return openBlock(), createBlock(_sfc_main$1, mergeProps({
105
+ ...props,
106
+ modelValue: modelValue.value,
107
+ skeleton: _ctx.skeleton || !unref(data),
108
+ disabled: _ctx.disabled || unref(isLoadingError),
109
+ loading: _ctx.loading || submitting.value
110
+ }, {
111
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => showModal($event ?? null))
112
+ }), createSlots({ _: 2 }, [
113
+ _ctx.$slots.title ? {
114
+ name: "title",
115
+ fn: withCtx(() => [
116
+ renderSlot(_ctx.$slots, "title")
117
+ ]),
118
+ key: "0"
119
+ } : void 0,
120
+ _ctx.$slots.subtitle ? {
121
+ name: "subtitle",
122
+ fn: withCtx(() => [
123
+ renderSlot(_ctx.$slots, "subtitle")
124
+ ]),
125
+ key: "1"
126
+ } : void 0,
127
+ _ctx.$slots.right ? {
128
+ name: "right",
129
+ fn: withCtx(() => [
130
+ renderSlot(_ctx.$slots, "right")
131
+ ]),
132
+ key: "2"
133
+ } : void 0
134
+ ]), 1040);
135
+ };
136
+ }
137
+ });
138
+
139
+ export { _sfc_main as default };
@@ -0,0 +1,5 @@
1
+ import _sfc_main from './WFormAsyncSelectSingle.vue.js';
2
+
3
+
4
+
5
+ export { _sfc_main as default };
@@ -0,0 +1,21 @@
1
+ import { FormAsyncToggleProps } from './types';
2
+ declare const _default: <Model, FieldType extends boolean | null, 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"> & FormAsyncToggleProps<Model, FieldType, QueryParams>> & import('vue').PublicProps;
8
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
9
+ attrs: any;
10
+ slots: {};
11
+ emit: (e: "success", value: Model) => void;
12
+ }>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
13
+ [key: string]: any;
14
+ }> & {
15
+ __ctx?: Awaited<typeof __VLS_setup>;
16
+ };
17
+ export default _default;
18
+ type __VLS_PrettifyLocal<T> = {
19
+ [K in keyof T]: T[K];
20
+ } & {};
21
+ //# sourceMappingURL=WFormAsyncToggle.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WFormAsyncToggle.vue.d.ts","sourceRoot":"","sources":["../../../src/components/FormAsync/WFormAsyncToggle.vue"],"names":[],"mappings":"AAsGA,OAAO,KAAK,EAAC,oBAAoB,EAAC,MAAM,SAAS,CAAA;yBAIhC,KAAK,EAAE,SAAS,SAAS,OAAO,GAAG,IAAI,EAAE,WAAW,eACvD,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;WAgLxD,mBAAmB,CAAC;;;;kFAAyD,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;cAzKP,SAAS,SAAS,KAAK,KAAG,IAAI;;;;YA8KQ,OAAO,CAAC,OAAO,WAAW,CAAC;;AA1LvE,wBA0L4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -0,0 +1,89 @@
1
+ import { defineComponent, toRef, ref, computed, onBeforeUnmount, openBlock, createBlock, mergeProps, unref } from 'vue';
2
+ import _sfc_main$1 from '../Toggle/WToggle.vue.js';
3
+ import { Notify } from '../../utils/Notify.js';
4
+ import { Modal } from '../../utils/Modal.js';
5
+ import { handleApiError } from '../../utils/api.js';
6
+ import { get, set } from '../../utils/utils.js';
7
+
8
+ const _sfc_main = /* @__PURE__ */ defineComponent({
9
+ __name: "WFormAsyncToggle",
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
+ validate: {},
19
+ negate: { type: Boolean },
20
+ title: {},
21
+ small: { type: Boolean },
22
+ disabled: { type: Boolean },
23
+ loading: { type: Boolean },
24
+ readonly: { type: Boolean },
25
+ rightLabel: { type: Boolean },
26
+ noMargin: { type: Boolean },
27
+ description: {},
28
+ intermediate: { type: Boolean }
29
+ },
30
+ emits: ["success"],
31
+ setup(__props, { emit: __emit }) {
32
+ const props = __props;
33
+ const emit = __emit;
34
+ const { data, setData, isLoadingError } = props.noParams === true ? props.useQueryFn({ enabled: toRef(props, "queryEnabled") }) : props.useQueryFn(toRef(props, "queryParams"), { enabled: toRef(props, "queryEnabled") });
35
+ const loading = ref(false);
36
+ const modelValue = computed(() => get(data.value ?? {}, props.field) ?? null);
37
+ const save = (value) => {
38
+ if (loading.value) return;
39
+ const errorMessage = Array.isArray(props.validate) ? props.validate.map((item) => item(value)).join(", ") : props.validate?.(value);
40
+ if (errorMessage) {
41
+ Notify.warn({
42
+ title: "Error",
43
+ caption: errorMessage
44
+ });
45
+ return;
46
+ }
47
+ loading.value = true;
48
+ props.apiMethod(set({}, props.field, value)).then((response) => {
49
+ setData(response.data);
50
+ Notify.success({ title: "Saved" });
51
+ emit("success", response.data);
52
+ }).catch((error) => handleApiError(error, void 0, props.field)).finally(() => {
53
+ loading.value = false;
54
+ });
55
+ };
56
+ let closeModal = null;
57
+ const showModal = (value) => {
58
+ closeModal?.();
59
+ const confirmProps = props.confimGetter?.(value);
60
+ if (!confirmProps) {
61
+ save(value);
62
+ return;
63
+ }
64
+ closeModal = Modal.addConfirm({
65
+ ...confirmProps,
66
+ onAccept: () => {
67
+ return save(value);
68
+ }
69
+ }, () => closeModal = null);
70
+ };
71
+ onBeforeUnmount(() => {
72
+ closeModal?.();
73
+ closeModal = null;
74
+ });
75
+ return (_ctx, _cache) => {
76
+ return openBlock(), createBlock(_sfc_main$1, mergeProps({
77
+ ...props,
78
+ modelValue: modelValue.value === null ? null : _ctx.negate ? !modelValue.value : modelValue.value,
79
+ loading: loading.value || !unref(data),
80
+ disabled: !unref(data) || unref(isLoadingError) || _ctx.disabled,
81
+ intermediate: _ctx.intermediate && unref(data) !== void 0
82
+ }, {
83
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => showModal($event === null ? null : props.negate ? !$event : $event))
84
+ }), null, 16);
85
+ };
86
+ }
87
+ });
88
+
89
+ export { _sfc_main as default };
@@ -0,0 +1,5 @@
1
+ import _sfc_main from './WFormAsyncToggle.vue.js';
2
+
3
+
4
+
5
+ export { _sfc_main as default };
@@ -0,0 +1,84 @@
1
+ import { InputAsyncProps } from '../Input/types';
2
+ import { ToggleProps } from '../Toggle/types';
3
+ import { SelectOptionComponent, SelectSingleProps } from '../Select/types';
4
+ import { ButtonGroupProps } from '../Button/types';
5
+ interface FormAsyncInputBaseProps<Model, FieldType extends string | number> extends Omit<InputAsyncProps<FieldType extends number ? 'number' : Exclude<InputType, 'number'>>, 'modelValue' | 'placeholderSecure'> {
6
+ queryEnabled?: boolean;
7
+ field: keyof ObjectPaths<Model, FieldType, true>;
8
+ apiMethod: (payload: PartialNested<Model>) => Promise<RequestResponse<Model>>;
9
+ confimGetter?: (value: FieldType) => ConfirmProps | undefined;
10
+ }
11
+ interface FormAsyncInputPropsWithParams<Model, FieldType extends string | number, QueryParams> extends FormAsyncInputBaseProps<Model, FieldType> {
12
+ useQueryFn: UseQueryWithParams<Model, QueryParams>;
13
+ noParams?: never;
14
+ queryParams: QueryParams;
15
+ }
16
+ interface FormAsyncInputPropsWithoutParams<Model, FieldType extends string | number> extends FormAsyncInputBaseProps<Model, FieldType> {
17
+ useQueryFn: UseQueryEmpty<Model>;
18
+ noParams: true;
19
+ queryParams?: never;
20
+ }
21
+ export type FormAsyncInputProps<Model, FieldType extends string | number, QueryParams> = FormAsyncInputPropsWithParams<Model, FieldType, QueryParams> | FormAsyncInputPropsWithoutParams<Model, FieldType>;
22
+ interface FormAsyncToggleBaseProps<Model, FieldType extends boolean | null> extends Omit<ToggleProps<FieldType>, 'modelValue'> {
23
+ queryEnabled?: boolean;
24
+ field: keyof ObjectPaths<Model, FieldType, true>;
25
+ apiMethod: (payload: PartialNested<Model>) => Promise<RequestResponse<Model>>;
26
+ confimGetter?: (payload: FieldType) => ConfirmProps | undefined;
27
+ validate?: ValidateFn | ValidateFn[];
28
+ negate?: boolean;
29
+ }
30
+ interface FormAsyncTogglePropsWithParams<Model, FieldType extends boolean | null, QueryParams> extends FormAsyncToggleBaseProps<Model, FieldType> {
31
+ useQueryFn: UseQueryWithParams<Model, QueryParams>;
32
+ noParams?: never;
33
+ queryParams: QueryParams;
34
+ }
35
+ interface FormAsyncTogglePropsWithoutParams<Model, FieldType extends boolean | null> extends FormAsyncToggleBaseProps<Model, FieldType> {
36
+ useQueryFn: UseQueryEmpty<Model>;
37
+ noParams: true;
38
+ queryParams?: never;
39
+ }
40
+ export type FormAsyncToggleProps<Model, FieldType extends boolean | null, QueryParams> = FormAsyncTogglePropsWithParams<Model, FieldType, QueryParams> | FormAsyncTogglePropsWithoutParams<Model, FieldType>;
41
+ interface FormAsyncSelectSingleBaseProps<Model, FieldType extends string | number, Data extends DefaultData, OptionComponent extends SelectOptionComponent<Data>, AllowClear extends boolean = false> extends Omit<SelectSingleProps<FieldType, Data, OptionComponent, AllowClear>, 'modelValue'> {
42
+ queryEnabled?: boolean;
43
+ field: keyof ObjectPaths<Model, FieldType, true>;
44
+ apiMethod: (payload: PartialNested<Model>) => Promise<RequestResponse<Model>>;
45
+ confimGetter?: (value: FieldType) => ConfirmProps | undefined;
46
+ }
47
+ interface FormAsyncSelectSinglePropsWithParams<Model, FieldType extends string | number, QueryParams, Data extends DefaultData, OptionComponent extends SelectOptionComponent<Data>, AllowClear extends boolean = false> extends FormAsyncSelectSingleBaseProps<Model, FieldType, Data, OptionComponent, AllowClear> {
48
+ useQueryFn: UseQueryWithParams<Model, QueryParams>;
49
+ noParams?: never;
50
+ queryParams: QueryParams;
51
+ }
52
+ interface FormAsyncSelectSinglePropsWithoutParams<Model, FieldType extends string | number, Data extends DefaultData, OptionComponent extends SelectOptionComponent<Data>, AllowClear extends boolean = false> extends FormAsyncSelectSingleBaseProps<Model, FieldType, Data, OptionComponent, AllowClear> {
53
+ useQueryFn: UseQueryEmpty<Model>;
54
+ noParams: true;
55
+ queryParams?: never;
56
+ }
57
+ export type FormAsyncSelectProps<Model, FieldType extends string | number, QueryParams, Data extends DefaultData, OptionComponent extends SelectOptionComponent<Data>, AllowClear extends boolean = false> = FormAsyncSelectSinglePropsWithParams<Model, FieldType, QueryParams, Data, OptionComponent, AllowClear> | FormAsyncSelectSinglePropsWithoutParams<Model, FieldType, Data, OptionComponent, AllowClear>;
58
+ interface FormAsyncButtonGroupBaseProps<Model, FieldType extends string | number | boolean | null, Entity extends Record<string, unknown>, ValueGetter extends {
59
+ fn(value: Entity): FieldType;
60
+ }['fn'] | undefined = undefined> extends Omit<ButtonGroupProps<FieldType, Entity, ValueGetter>, 'modelValue' | 'loading'> {
61
+ queryEnabled?: boolean;
62
+ field: keyof ObjectPaths<Model, FieldType, true>;
63
+ apiMethod: (payload: PartialNested<Model>) => Promise<RequestResponse<Model>>;
64
+ confimGetter?: (value: FieldType) => ConfirmProps | undefined;
65
+ }
66
+ interface FormAsyncButtonGroupPropsWithParams<Model, FieldType extends string | number | boolean | null, QueryParams, Entity extends Record<string, unknown>, ValueGetter extends {
67
+ fn(value: Entity): FieldType;
68
+ }['fn'] | undefined = undefined> extends FormAsyncButtonGroupBaseProps<Model, FieldType, Entity, ValueGetter> {
69
+ useQueryFn: UseQueryWithParams<Model, QueryParams>;
70
+ noParams?: never;
71
+ queryParams: QueryParams;
72
+ }
73
+ interface FormAsyncButtonGroupPropsWithoutParams<Model, FieldType extends string | number | boolean | null, Entity extends Record<string, unknown>, ValueGetter extends {
74
+ fn(value: Entity): FieldType;
75
+ }['fn'] | undefined = undefined> extends FormAsyncButtonGroupBaseProps<Model, FieldType, Entity, ValueGetter> {
76
+ useQueryFn: UseQueryEmpty<Model>;
77
+ noParams: true;
78
+ queryParams?: never;
79
+ }
80
+ export type FormAsyncButtonGroupProps<Model, FieldType extends string | number | boolean | null, QueryParams, Entity extends Record<string, unknown>, ValueGetter extends {
81
+ fn(value: Entity): FieldType;
82
+ }['fn'] | undefined = undefined> = FormAsyncButtonGroupPropsWithParams<Model, FieldType, QueryParams, Entity, ValueGetter> | FormAsyncButtonGroupPropsWithoutParams<Model, FieldType, Entity, ValueGetter>;
83
+ export {};
84
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/FormAsync/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,0BAA0B,CAAA;AAC7D,OAAO,KAAK,EAA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AAM,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACtC,WAAW,SAAS;IAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,CAAA;CAAC,CAAC,IAAI,CAAC,GAAG,SAAS,GAAG,SAAS,IAC9E,mCAAmC,CAAC,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,EAAE,WAAW,CAAC,GAAG,sCAAsC,CAAC,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,WAAW,CAAC,CAAA"}
@@ -1,57 +1,42 @@
1
1
  declare function __VLS_template(): {
2
- title?(_: {}): any;
3
- search?(_: {}): any;
4
- search?(_: {}): any;
2
+ slots: {
3
+ title?(_: {}): any;
4
+ search?(_: {}): any;
5
+ search?(_: {}): any;
6
+ };
7
+ refs: {
8
+ input: import('vue').ShallowUnwrapRef<{
9
+ focus: () => void;
10
+ blur: () => void;
11
+ }> | null;
12
+ };
13
+ attrs: Partial<{}>;
5
14
  };
6
- declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
15
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
16
+ declare const __VLS_component: import('vue').DefineComponent<{
7
17
  title?: string;
8
18
  search?: string;
9
19
  searchEnabled?: boolean;
10
20
  headerPadding?: number;
11
- }>, {
12
- title: undefined;
13
- search: undefined;
14
- headerPadding: number;
15
- }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
16
- "update:search": (value: string | undefined) => void;
17
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
21
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
22
+ "update:search": (value: string | undefined) => any;
23
+ }, string, import('vue').PublicProps, Readonly<{
18
24
  title?: string;
19
25
  search?: string;
20
26
  searchEnabled?: boolean;
21
27
  headerPadding?: number;
22
- }>, {
23
- title: undefined;
24
- search: undefined;
25
- headerPadding: number;
26
- }>>> & {
28
+ }> & Readonly<{
27
29
  "onUpdate:search"?: ((value: string | undefined) => any) | undefined;
28
- }, {
30
+ }>, {
29
31
  search: string;
30
32
  title: string;
31
33
  headerPadding: number;
32
- }, {}>;
33
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
34
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
35
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
34
36
  export default _default;
35
- type __VLS_WithDefaults<P, D> = {
36
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
37
- default: D[K];
38
- }> : P[K];
39
- };
40
- type __VLS_Prettify<T> = {
41
- [K in keyof T]: T[K];
42
- } & {};
43
37
  type __VLS_WithTemplateSlots<T, S> = T & {
44
38
  new (): {
45
39
  $slots: S;
46
40
  };
47
41
  };
48
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
49
- type __VLS_TypePropsToOption<T> = {
50
- [K in keyof T]-?: {} extends Pick<T, K> ? {
51
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
52
- } : {
53
- type: import('vue').PropType<T[K]>;
54
- required: true;
55
- };
56
- };
57
42
  //# sourceMappingURL=WHeaderBar.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"WHeaderBar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/HeaderBar/WHeaderBar.vue"],"names":[],"mappings":"AAqOA,iBAAS,cAAc;mBA6PI,GAAG;oBACD,GAAG;oBACH,GAAG;EAyB/B;AACD,QAAA,MAAM,eAAe;YA9VT,MAAM;aACL,MAAM;oBACC,OAAO;oBACP,MAAM;;;;;;;;YAHd,MAAM;aACL,MAAM;oBACC,OAAO;oBACP,MAAM;;;;;;;;YAFb,MAAM;WADP,MAAM;mBAGE,MAAM;MAkWxB,CAAC;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,cAAc;;uBA6OI,GAAG;wBACD,GAAG;wBACH,GAAG;;;;;;;;WAUlB,OAAO,IAA6B;EAEjD;AAsBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;YAxVT,MAAM;aACL,MAAM;oBACC,OAAO;oBACP,MAAM;;;;YAHd,MAAM;aACL,MAAM;oBACC,OAAO;oBACP,MAAM;;;;YAFb,MAAM;WADP,MAAM;mBAGE,MAAM;6EA+VxB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,20 +1,11 @@
1
- declare const _default: import('vue').DefineComponent<__VLS_TypePropsToOption<{
1
+ declare const _default: import('vue').DefineComponent<{
2
2
  modelValue?: string;
3
3
  title?: string;
4
4
  skeleton?: boolean;
5
- }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<{
5
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
6
6
  modelValue?: string;
7
7
  title?: string;
8
8
  skeleton?: boolean;
9
- }>>>, {}, {}>;
9
+ }> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
10
10
  export default _default;
11
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
12
- type __VLS_TypePropsToOption<T> = {
13
- [K in keyof T]-?: {} extends Pick<T, K> ? {
14
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
15
- } : {
16
- type: import('vue').PropType<T[K]>;
17
- required: true;
18
- };
19
- };
20
11
  //# sourceMappingURL=WImageViewer.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"WImageViewer.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ImageViewer/WImageViewer.vue"],"names":[],"mappings":";iBAsFe,MAAM;YACX,MAAM;eACH,OAAO;;iBAFL,MAAM;YACX,MAAM;eACH,OAAO;;AAiJpB,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":"WImageViewer.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ImageViewer/WImageViewer.vue"],"names":[],"mappings":";iBAsFe,MAAM;YACX,MAAM;eACH,OAAO;;iBAFL,MAAM;YACX,MAAM;eACH,OAAO;;AAqJpB,wBAMG"}