eco-vue-js 0.5.26 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (309) hide show
  1. package/dist/assets/icons/sax/IconClose.svg.js +26 -0
  2. package/dist/assets/icons/sax/IconEdit.svg.js +24 -0
  3. package/dist/assets/icons/sax/IconSlash.svg.js +27 -0
  4. package/dist/components/ActionsBar/WActionsBar.vue.d.ts +129 -2
  5. package/dist/components/ActionsBar/WActionsBar.vue.d.ts.map +1 -1
  6. package/dist/components/ActionsBar/WActionsBar.vue.js +1 -2
  7. package/dist/components/BottomSheet/WBottomSheet.vue.d.ts +20 -15
  8. package/dist/components/BottomSheet/WBottomSheet.vue.d.ts.map +1 -1
  9. package/dist/components/BottomSheet/WBottomSheet.vue.js +2 -4
  10. package/dist/components/Button/WButton.vue.d.ts +20 -17
  11. package/dist/components/Button/WButton.vue.d.ts.map +1 -1
  12. package/dist/components/Button/WButton.vue.js +1 -2
  13. package/dist/components/Button/WButtonAction.vue.d.ts +21 -18
  14. package/dist/components/Button/WButtonAction.vue.d.ts.map +1 -1
  15. package/dist/components/Button/WButtonCopy.vue.d.ts +3 -3
  16. package/dist/components/Button/WButtonCopy.vue.d.ts.map +1 -1
  17. package/dist/components/Button/WButtonCopy.vue.js +9 -43
  18. package/dist/components/Button/WButtonDropdown.vue.d.ts +33 -25
  19. package/dist/components/Button/WButtonDropdown.vue.d.ts.map +1 -1
  20. package/dist/components/Button/WButtonDropdown.vue.js +12 -9
  21. package/dist/components/Button/WButtonGroup.vue.d.ts +17 -110
  22. package/dist/components/Button/WButtonGroup.vue.d.ts.map +1 -1
  23. package/dist/components/Button/WButtonGroup.vue.js +68 -44
  24. package/dist/components/Button/WButtonMore.vue.d.ts +14 -12
  25. package/dist/components/Button/WButtonMore.vue.d.ts.map +1 -1
  26. package/dist/components/Button/WButtonMore.vue.js +1 -2
  27. package/dist/components/Button/WButtonMoreItem.vue.d.ts +19 -16
  28. package/dist/components/Button/WButtonMoreItem.vue.d.ts.map +1 -1
  29. package/dist/components/Button/WButtonSelection.vue.d.ts +16 -16
  30. package/dist/components/Button/WButtonSelection.vue.d.ts.map +1 -1
  31. package/dist/components/Button/WButtonSelectionAction.vue.d.ts +8 -8
  32. package/dist/components/Button/WButtonSelectionAction.vue.d.ts.map +1 -1
  33. package/dist/components/Button/models/semanticTypeStylesMap.d.ts +1 -0
  34. package/dist/components/Button/types.d.ts +33 -0
  35. package/dist/components/Button/types.d.ts.map +1 -0
  36. package/dist/components/Checkbox/WCheckbox.vue.d.ts +34 -32
  37. package/dist/components/Checkbox/WCheckbox.vue.d.ts.map +1 -1
  38. package/dist/components/Checkbox/WCheckbox.vue.js +1 -2
  39. package/dist/components/Chip/WChip.vue.d.ts +19 -16
  40. package/dist/components/Chip/WChip.vue.d.ts.map +1 -1
  41. package/dist/components/ClickOutside/WClickOutside.vue.d.ts +7 -5
  42. package/dist/components/ClickOutside/WClickOutside.vue.d.ts.map +1 -1
  43. package/dist/components/ClickOutside/WClickOutside.vue.js +3 -6
  44. package/dist/components/Counter/WCounter.vue.d.ts +15 -15
  45. package/dist/components/Counter/WCounter.vue.d.ts.map +1 -1
  46. package/dist/components/Counter/WCounter.vue.js +1 -2
  47. package/dist/components/DatePicker/WDatePicker.vue.d.ts +6 -5
  48. package/dist/components/DatePicker/WDatePicker.vue.d.ts.map +1 -1
  49. package/dist/components/DatePicker/WDatePicker.vue.js +1 -2
  50. package/dist/components/DatePicker/WDatePickerSingle.vue.d.ts +6 -6
  51. package/dist/components/DatePicker/WDatePickerSingle.vue.d.ts.map +1 -1
  52. package/dist/components/DatePicker/WDatePickerSingle.vue.js +1 -2
  53. package/dist/components/DatePicker/components/CalendarDay.vue.d.ts +10 -9
  54. package/dist/components/DatePicker/components/CalendarDay.vue.d.ts.map +1 -1
  55. package/dist/components/DatePicker/components/CalendarDay.vue.js +10 -20
  56. package/dist/components/DatePicker/components/CalendarMonth.vue.d.ts +12 -11
  57. package/dist/components/DatePicker/components/CalendarMonth.vue.d.ts.map +1 -1
  58. package/dist/components/DatePicker/components/CalendarMonth.vue.js +7 -14
  59. package/dist/components/DatePicker/components/CalendarToggle.vue.d.ts +4 -4
  60. package/dist/components/DatePicker/components/CalendarToggle.vue.d.ts.map +1 -1
  61. package/dist/components/DatePicker/components/CalendarValue.vue.d.ts +8 -8
  62. package/dist/components/DatePicker/components/CalendarValue.vue.d.ts.map +1 -1
  63. package/dist/components/DatePicker/components/CalendarValue.vue.js +1 -2
  64. package/dist/components/DatePicker/components/CalendarWeek.vue.d.ts +8 -7
  65. package/dist/components/DatePicker/components/CalendarWeek.vue.d.ts.map +1 -1
  66. package/dist/components/DatePicker/components/CalendarWeek.vue.js +7 -14
  67. package/dist/components/Dropdown/WDropdown.vue.d.ts +18 -29
  68. package/dist/components/Dropdown/WDropdown.vue.d.ts.map +1 -1
  69. package/dist/components/Dropdown/WDropdown.vue.js +7 -14
  70. package/dist/components/Dropdown/types.d.ts +11 -0
  71. package/dist/components/Dropdown/types.d.ts.map +1 -0
  72. package/dist/components/Dropdown/utils/DropdownStyle.d.ts +1 -0
  73. package/dist/components/Dropdown/utils/DropdownStyle.js +2 -4
  74. package/dist/components/DropdownMenu/WDropdownMenu.vue.d.ts +18 -33
  75. package/dist/components/DropdownMenu/WDropdownMenu.vue.d.ts.map +1 -1
  76. package/dist/components/DropdownMenu/WDropdownMenu.vue.js +3 -3
  77. package/dist/components/DropdownMenu/types.d.ts +8 -0
  78. package/dist/components/DropdownMenu/types.d.ts.map +1 -0
  79. package/dist/components/Expansion/WExpansion.vue.d.ts +20 -18
  80. package/dist/components/Expansion/WExpansion.vue.d.ts.map +1 -1
  81. package/dist/components/Expansion/WExpansionItem.vue.d.ts +24 -22
  82. package/dist/components/Expansion/WExpansionItem.vue.d.ts.map +1 -1
  83. package/dist/components/FieldWrapper/WFieldWrapper.vue.d.ts +29 -21
  84. package/dist/components/FieldWrapper/WFieldWrapper.vue.d.ts.map +1 -1
  85. package/dist/components/FieldWrapper/WFieldWrapper.vue.js +148 -18
  86. package/dist/components/FieldWrapper/types.d.ts +16 -0
  87. package/dist/components/FieldWrapper/types.d.ts.map +1 -0
  88. package/dist/components/FilePicker/WFilePicker.vue.d.ts +36 -32
  89. package/dist/components/FilePicker/WFilePicker.vue.d.ts.map +1 -1
  90. package/dist/components/FilePicker/WFilePicker.vue.js +3 -6
  91. package/dist/components/FilePicker/components/FilePickerItem.vue.d.ts +19 -17
  92. package/dist/components/FilePicker/components/FilePickerItem.vue.d.ts.map +1 -1
  93. package/dist/components/FilePicker/components/FilePickerSvg.vue.d.ts +7 -7
  94. package/dist/components/FilePicker/components/FilePickerSvg.vue.d.ts.map +1 -1
  95. package/dist/components/FilterWrapper/WFilterWrapper.vue.d.ts +16 -14
  96. package/dist/components/FilterWrapper/WFilterWrapper.vue.d.ts.map +1 -1
  97. package/dist/components/Form/WForm.vue.d.ts +21 -19
  98. package/dist/components/Form/WForm.vue.d.ts.map +1 -1
  99. package/dist/components/Form/WFormValidator.vue.d.ts +28 -26
  100. package/dist/components/Form/WFormValidator.vue.d.ts.map +1 -1
  101. package/dist/components/Form/WFormValidator.vue.js +12 -24
  102. package/dist/components/Form/models/injection.d.ts +2 -1
  103. package/dist/components/Form/models/injection.d.ts.map +1 -1
  104. package/dist/components/Form/models/utils.d.ts.map +1 -1
  105. package/dist/components/Form/models/utils.js +5 -4
  106. package/dist/components/Form/use/useFormErrorMessageMap.d.ts +4 -3
  107. package/dist/components/Form/use/useFormErrorMessageMap.d.ts.map +1 -1
  108. package/dist/components/Form/use/useFormHasChangesMap.d.ts +3 -2
  109. package/dist/components/Form/use/useFormHasChangesMap.d.ts.map +1 -1
  110. package/dist/components/Form/use/useFormInitModelMap.d.ts +2 -1
  111. package/dist/components/Form/use/useFormInitModelMap.d.ts.map +1 -1
  112. package/dist/components/Form/use/useFormInvalidateMap.d.ts +2 -1
  113. package/dist/components/Form/use/useFormInvalidateMap.d.ts.map +1 -1
  114. package/dist/components/Form/use/useFormTitleMap.d.ts +2 -1
  115. package/dist/components/Form/use/useFormTitleMap.d.ts.map +1 -1
  116. package/dist/components/Form/use/useFormValidateMap.d.ts +2 -1
  117. package/dist/components/Form/use/useFormValidateMap.d.ts.map +1 -1
  118. package/dist/components/Form/use/useFormValidateMap.js +1 -2
  119. package/dist/components/HeaderBar/WHeaderBar.vue.d.ts +27 -24
  120. package/dist/components/HeaderBar/WHeaderBar.vue.d.ts.map +1 -1
  121. package/dist/components/HeaderBar/WHeaderBar.vue.js +2 -4
  122. package/dist/components/ImageViewer/WImageViewer.vue.d.ts +9 -9
  123. package/dist/components/ImageViewer/WImageViewer.vue.d.ts.map +1 -1
  124. package/dist/components/ImageViewer/WImageViewer.vue.js +1 -2
  125. package/dist/components/ImageViewer/components/ImageModal.vue.d.ts +6 -6
  126. package/dist/components/ImageViewer/components/ImageModal.vue.d.ts.map +1 -1
  127. package/dist/components/InfiniteList/WInfiniteList.vue.d.ts +67 -237
  128. package/dist/components/InfiniteList/WInfiniteList.vue.d.ts.map +1 -1
  129. package/dist/components/InfiniteList/WInfiniteListPages.vue.d.ts +50 -187
  130. package/dist/components/InfiniteList/WInfiniteListPages.vue.d.ts.map +1 -1
  131. package/dist/components/InfiniteList/WInfiniteListPages.vue.js +20 -40
  132. package/dist/components/InfiniteList/components/EmptyComponent.vue.d.ts +4 -2
  133. package/dist/components/InfiniteList/components/EmptyComponent.vue.d.ts.map +1 -1
  134. package/dist/components/InfiniteList/components/InfiniteListButton.vue.d.ts +2 -2
  135. package/dist/components/InfiniteList/components/InfiniteListButton.vue.d.ts.map +1 -1
  136. package/dist/components/InfiniteList/components/InfiniteListPage.vue.d.ts +57 -209
  137. package/dist/components/InfiniteList/components/InfiniteListPage.vue.d.ts.map +1 -1
  138. package/dist/components/InfiniteList/components/InfiniteListPage.vue.js +21 -42
  139. package/dist/components/InfiniteList/components/InfiniteListPageSelectItem.vue.d.ts +18 -16
  140. package/dist/components/InfiniteList/components/InfiniteListPageSelectItem.vue.d.ts.map +1 -1
  141. package/dist/components/InfiniteList/components/InfiniteListPageSelection.vue.d.ts +19 -43
  142. package/dist/components/InfiniteList/components/InfiniteListPageSelection.vue.d.ts.map +1 -1
  143. package/dist/components/InfiniteList/components/InfiniteListPageSelection.vue.js +2 -4
  144. package/dist/components/InfiniteList/components/InfiniteListPageTitle.vue.d.ts +13 -23
  145. package/dist/components/InfiniteList/components/InfiniteListPageTitle.vue.d.ts.map +1 -1
  146. package/dist/components/InfiniteList/components/InfiniteListScroll.vue.d.ts +14 -12
  147. package/dist/components/InfiniteList/components/InfiniteListScroll.vue.d.ts.map +1 -1
  148. package/dist/components/InfiniteList/components/InfiniteListScroll.vue.js +1 -2
  149. package/dist/components/InfiniteList/models/injection.d.ts +8 -7
  150. package/dist/components/InfiniteList/models/injection.d.ts.map +1 -1
  151. package/dist/components/InfiniteList/models/utils.js +2 -4
  152. package/dist/components/InfiniteList/use/useInfiniteListHeader.d.ts +5 -5
  153. package/dist/components/InfiniteList/use/useInfiniteListHeader.js +4 -2
  154. package/dist/components/InfiniteList/use/useRefetchNextPages.d.ts +1 -1
  155. package/dist/components/InfiniteList/use/useRefetchNextPages.js +1 -2
  156. package/dist/components/InfiniteList/use/useSelected.d.ts +6 -5
  157. package/dist/components/InfiniteList/use/useSelected.d.ts.map +1 -1
  158. package/dist/components/InfiniteList/use/useSelected.js +13 -26
  159. package/dist/components/InfoCard/WInfoCard.vue.d.ts +16 -14
  160. package/dist/components/InfoCard/WInfoCard.vue.d.ts.map +1 -1
  161. package/dist/components/InfoCard/WInfoCardNegative.vue.d.ts +16 -13
  162. package/dist/components/InfoCard/WInfoCardNegative.vue.d.ts.map +1 -1
  163. package/dist/components/Input/WInput.vue.d.ts +41 -199
  164. package/dist/components/Input/WInput.vue.d.ts.map +1 -1
  165. package/dist/components/Input/WInput.vue.js +137 -227
  166. package/dist/components/Input/WInputAsync.vue.d.ts +16 -94
  167. package/dist/components/Input/WInputAsync.vue.d.ts.map +1 -1
  168. package/dist/components/Input/WInputAsync.vue.js +118 -104
  169. package/dist/components/Input/WInputDate.vue.d.ts +41 -8
  170. package/dist/components/Input/WInputDate.vue.d.ts.map +1 -1
  171. package/dist/components/Input/WInputDate.vue.js +66 -14
  172. package/dist/components/Input/WInputOptions.vue.d.ts +18 -125
  173. package/dist/components/Input/WInputOptions.vue.d.ts.map +1 -1
  174. package/dist/components/Input/WInputOptions.vue.js +64 -53
  175. package/dist/components/Input/WInputSuggest.vue.d.ts +49 -207
  176. package/dist/components/Input/WInputSuggest.vue.d.ts.map +1 -1
  177. package/dist/components/Input/WInputSuggest.vue.js +71 -57
  178. package/dist/components/Input/components/InputActions.vue.d.ts +34 -28
  179. package/dist/components/Input/components/InputActions.vue.d.ts.map +1 -1
  180. package/dist/components/Input/components/InputActions.vue.js +49 -84
  181. package/dist/components/Input/components/InputActionsButton.vue.d.ts +35 -0
  182. package/dist/components/Input/components/InputActionsButton.vue.d.ts.map +1 -0
  183. package/dist/components/Input/components/InputActionsButton.vue.js +41 -0
  184. package/dist/components/Input/components/InputActionsButton.vue2.js +5 -0
  185. package/dist/components/Input/types.d.ts +45 -0
  186. package/dist/components/Input/types.d.ts.map +1 -0
  187. package/dist/components/Link/WLink.vue.d.ts +19 -16
  188. package/dist/components/Link/WLink.vue.d.ts.map +1 -1
  189. package/dist/components/Link/WLinkArrow.vue.d.ts +12 -9
  190. package/dist/components/Link/WLinkArrow.vue.d.ts.map +1 -1
  191. package/dist/components/ListCard/WListCard.vue.d.ts +27 -25
  192. package/dist/components/ListCard/WListCard.vue.d.ts.map +1 -1
  193. package/dist/components/ListCard/WListCardField.vue.d.ts +17 -14
  194. package/dist/components/ListCard/WListCardField.vue.d.ts.map +1 -1
  195. package/dist/components/MenuItem/WMenuItem.vue.d.ts +19 -16
  196. package/dist/components/MenuItem/WMenuItem.vue.d.ts.map +1 -1
  197. package/dist/components/Modal/WModal.vue.d.ts +1 -1
  198. package/dist/components/Modal/WModal.vue.d.ts.map +1 -1
  199. package/dist/components/Modal/WModal.vue.js +2 -4
  200. package/dist/components/Modal/WModalStepper.vue.d.ts +18 -16
  201. package/dist/components/Modal/WModalStepper.vue.d.ts.map +1 -1
  202. package/dist/components/Modal/WModalWrapper.vue.d.ts +14 -12
  203. package/dist/components/Modal/WModalWrapper.vue.d.ts.map +1 -1
  204. package/dist/components/Modal/components/ModalCloseButton.vue.d.ts +2 -2
  205. package/dist/components/Modal/components/ModalCloseButton.vue.d.ts.map +1 -1
  206. package/dist/components/Modal/modals/Confirm/ConfirmModal.vue.d.ts +19 -18
  207. package/dist/components/Modal/modals/Confirm/ConfirmModal.vue.d.ts.map +1 -1
  208. package/dist/components/Modal/modals/Confirm/ConfirmModal.vue2.js +2 -4
  209. package/dist/components/Modal/{modals/Confirm/types.d.ts → types.d.ts} +4 -3
  210. package/dist/components/Modal/types.d.ts.map +1 -0
  211. package/dist/components/Nav/WNavBar.vue.d.ts +7 -5
  212. package/dist/components/Nav/WNavBar.vue.d.ts.map +1 -1
  213. package/dist/components/Nav/WNavItem.vue.d.ts +16 -13
  214. package/dist/components/Nav/WNavItem.vue.d.ts.map +1 -1
  215. package/dist/components/Nav/WNavItem.vue.js +1 -2
  216. package/dist/components/Nav/WNavItemExpand.vue.d.ts +15 -12
  217. package/dist/components/Nav/WNavItemExpand.vue.d.ts.map +1 -1
  218. package/dist/components/Nav/WNavItemExpand.vue.js +3 -0
  219. package/dist/components/Nav/WNavItemTransition.vue.d.ts +4 -2
  220. package/dist/components/Nav/WNavItemTransition.vue.d.ts.map +1 -1
  221. package/dist/components/Notify/WNotify.vue.d.ts +1 -1
  222. package/dist/components/Notify/WNotify.vue.d.ts.map +1 -1
  223. package/dist/components/Notify/WNotify.vue.js +1 -2
  224. package/dist/components/Notify/components/NotifyCard.vue.d.ts +15 -14
  225. package/dist/components/Notify/components/NotifyCard.vue.d.ts.map +1 -1
  226. package/dist/components/Notify/components/NotifyCard.vue.js +2 -4
  227. package/dist/components/Notify/models/types.d.ts +3 -2
  228. package/dist/components/Select/WSelect.vue.d.ts +41 -188
  229. package/dist/components/Select/WSelect.vue.d.ts.map +1 -1
  230. package/dist/components/Select/WSelect.vue.js +74 -66
  231. package/dist/components/Select/WSelectAsync.vue.d.ts +32 -207
  232. package/dist/components/Select/WSelectAsync.vue.d.ts.map +1 -1
  233. package/dist/components/Select/WSelectAsync.vue.js +78 -60
  234. package/dist/components/Select/WSelectAsyncList.vue.d.ts +33 -111
  235. package/dist/components/Select/WSelectAsyncList.vue.d.ts.map +1 -1
  236. package/dist/components/Select/WSelectAsyncSingle.vue.d.ts +24 -166
  237. package/dist/components/Select/WSelectAsyncSingle.vue.d.ts.map +1 -1
  238. package/dist/components/Select/WSelectAsyncSingle.vue.js +93 -82
  239. package/dist/components/Select/WSelectSingle.vue.d.ts +25 -149
  240. package/dist/components/Select/WSelectSingle.vue.d.ts.map +1 -1
  241. package/dist/components/Select/WSelectSingle.vue.js +84 -70
  242. package/dist/components/Select/components/SelectAsyncList.vue.d.ts +43 -133
  243. package/dist/components/Select/components/SelectAsyncList.vue.d.ts.map +1 -1
  244. package/dist/components/Select/components/SelectAsyncList.vue.js +7 -14
  245. package/dist/components/Select/components/SelectAsyncPrefix.vue.d.ts +37 -104
  246. package/dist/components/Select/components/SelectAsyncPrefix.vue.d.ts.map +1 -1
  247. package/dist/components/Select/components/SelectAsyncPrefixPage.vue.d.ts +37 -102
  248. package/dist/components/Select/components/SelectAsyncPrefixPage.vue.d.ts.map +1 -1
  249. package/dist/components/Select/components/SelectAsyncPrefixPage.vue.js +1 -2
  250. package/dist/components/Select/components/SelectOption.vue.d.ts +45 -132
  251. package/dist/components/Select/components/SelectOption.vue.d.ts.map +1 -1
  252. package/dist/components/Select/components/SelectOption.vue.js +12 -24
  253. package/dist/components/Select/components/SelectOptionPrefix.vue.d.ts +23 -52
  254. package/dist/components/Select/components/SelectOptionPrefix.vue.d.ts.map +1 -1
  255. package/dist/components/Select/types.d.ts +47 -0
  256. package/dist/components/Select/types.d.ts.map +1 -0
  257. package/dist/components/Skeleton/WSkeleton.vue.d.ts +1 -1
  258. package/dist/components/Skeleton/WSkeleton.vue.d.ts.map +1 -1
  259. package/dist/components/Spinner/WSpinner.vue.d.ts +1 -1
  260. package/dist/components/Spinner/WSpinner.vue.d.ts.map +1 -1
  261. package/dist/components/Tabs/WTabs.vue.d.ts +22 -24
  262. package/dist/components/Tabs/WTabs.vue.d.ts.map +1 -1
  263. package/dist/components/Tabs/WTabs.vue.js +6 -12
  264. package/dist/components/Tabs/WTabsColumns.vue.d.ts +3 -3
  265. package/dist/components/Tabs/WTabsColumns.vue.d.ts.map +1 -1
  266. package/dist/components/Tabs/components/TabItem.vue.d.ts +14 -12
  267. package/dist/components/Tabs/components/TabItem.vue.d.ts.map +1 -1
  268. package/dist/components/Tabs/components/TabItem.vue.js +3 -6
  269. package/dist/components/Tabs/models/injection.d.ts +2 -1
  270. package/dist/components/Tabs/models/injection.d.ts.map +1 -1
  271. package/dist/components/Tabs/use/useTabItemActiveListener.js +1 -2
  272. package/dist/components/Toggle/WToggle.vue.d.ts +19 -50
  273. package/dist/components/Toggle/WToggle.vue.d.ts.map +1 -1
  274. package/dist/components/Toggle/WToggle.vue.js +1 -2
  275. package/dist/components/Tooltip/WTooltip.vue.d.ts +15 -15
  276. package/dist/components/Tooltip/WTooltip.vue.d.ts.map +1 -1
  277. package/dist/components/Tooltip/WTooltip.vue.js +4 -8
  278. package/dist/components/Tooltip/WTooltipContainer.vue.d.ts +1 -1
  279. package/dist/components/Tooltip/WTooltipContainer.vue.d.ts.map +1 -1
  280. package/dist/components/Tooltip/WTooltipContainer.vue.js +1 -2
  281. package/dist/components/Tooltip/components/TooltipContainer.vue.d.ts +22 -19
  282. package/dist/components/Tooltip/components/TooltipContainer.vue.d.ts.map +1 -1
  283. package/dist/components/Tooltip/components/TooltipContainer.vue.js +5 -10
  284. package/dist/imports/componentsPlugin.d.ts +64 -63
  285. package/dist/imports/iconsSax.d.ts +3 -0
  286. package/dist/imports/iconsSax.d.ts.map +1 -1
  287. package/dist/imports/iconsSax.js +3 -0
  288. package/dist/main.d.ts +1 -0
  289. package/dist/main.d.ts.map +1 -1
  290. package/dist/main.js +1 -0
  291. package/dist/utils/DOMListenerContainer.js +2 -4
  292. package/dist/utils/Modal.d.ts +4 -3
  293. package/dist/utils/Modal.d.ts.map +1 -1
  294. package/dist/utils/Notify.d.ts +5 -4
  295. package/dist/utils/Notify.d.ts.map +1 -1
  296. package/dist/utils/Tooltip.d.ts +2 -1
  297. package/dist/utils/dateTime.d.ts.map +1 -1
  298. package/dist/utils/dateTime.js +28 -56
  299. package/dist/utils/useCopy.d.ts +8 -0
  300. package/dist/utils/useCopy.d.ts.map +1 -0
  301. package/dist/utils/useCopy.js +56 -0
  302. package/dist/utils/useDefaultQuery.d.ts +4 -3
  303. package/dist/utils/useDefaultQuery.d.ts.map +1 -1
  304. package/dist/utils/utils.d.ts.map +1 -1
  305. package/dist/utils/utils.js +10 -20
  306. package/package.json +43 -19
  307. package/tailwind-base/plugins/default.cjs +6 -0
  308. package/tailwind-base/theme/sizes.cjs +2 -0
  309. package/dist/components/Modal/modals/Confirm/types.d.ts.map +0 -1
@@ -49,18 +49,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
49
49
  const previousPage = ref();
50
50
  const isResettingPage = ref(false);
51
51
  const getSkeletonLength = (pagesBefore) => {
52
- if (props.skeletonLength === void 0)
53
- return props.pageLength;
52
+ if (props.skeletonLength === void 0) return props.pageLength;
54
53
  const length = Math.min(props.skeletonLength - pagesBefore * props.pageLength, props.pageLength);
55
54
  return length < 0 ? props.pageLength : length;
56
55
  };
57
56
  const isPreviousButtonVisible = computed(() => {
58
- if (pages.value.length === 1 && pages.value[0] > 1)
59
- return true;
60
- if (count.value === 0)
61
- return false;
62
- if (previousPage.value)
63
- return true;
57
+ if (pages.value.length === 1 && pages.value[0] > 1) return true;
58
+ if (count.value === 0) return false;
59
+ if (previousPage.value) return true;
64
60
  return false;
65
61
  });
66
62
  const { pageComponent, refetchNextPages } = useRefetchNextPages();
@@ -72,54 +68,40 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
72
68
  };
73
69
  const updateNextPage = (value) => {
74
70
  nextPage.value = value;
75
- if (pages.value.length === 1 && getIsScrollDown(props.scrollingElement))
76
- addNextPage(true);
71
+ if (pages.value.length === 1 && getIsScrollDown(props.scrollingElement)) addNextPage(true);
77
72
  };
78
73
  const updatePreviousPage = (value) => {
79
74
  previousPage.value = value;
80
- if (pages.value.length === 1)
81
- addPreviousPage(true);
75
+ if (pages.value.length === 1) addPreviousPage(true);
82
76
  };
83
77
  const addNextPage = (silent) => {
84
- if (!nextPage.value)
85
- return;
86
- if (pages.value.includes(nextPage.value))
87
- return;
78
+ if (!nextPage.value) return;
79
+ if (pages.value.includes(nextPage.value)) return;
88
80
  pages.value.push(nextPage.value);
89
- if (!silent)
90
- emit("update:page", nextPage.value);
91
- if (pages.value.length < props.maxPages)
92
- return;
81
+ if (!silent) emit("update:page", nextPage.value);
82
+ if (pages.value.length < props.maxPages) return;
93
83
  const firstPage = pages.value.shift();
94
- if (firstPage === void 0)
95
- return;
84
+ if (firstPage === void 0) return;
96
85
  previousPage.value = firstPage;
97
86
  };
98
87
  const addPreviousPage = (silent) => {
99
- if (!previousPage.value)
100
- return;
101
- if (pages.value.includes(previousPage.value))
102
- return;
88
+ if (!previousPage.value) return;
89
+ if (pages.value.includes(previousPage.value)) return;
103
90
  pages.value.unshift(previousPage.value);
104
- if (!silent)
105
- emit("update:page", previousPage.value);
106
- if (pages.value.length < props.maxPages)
107
- return;
91
+ if (!silent) emit("update:page", previousPage.value);
92
+ if (pages.value.length < props.maxPages) return;
108
93
  const lastPage = pages.value.pop();
109
- if (lastPage === void 0)
110
- return;
94
+ if (lastPage === void 0) return;
111
95
  nextPage.value = lastPage;
112
96
  };
113
97
  const updateScroll = (height) => {
114
98
  const element = props.scrollingElement ?? document.scrollingElement;
115
- if (!element || element.scrollTop === 0)
116
- return;
99
+ if (!element || element.scrollTop === 0) return;
117
100
  element.scrollTop = element.scrollTop + height;
118
101
  };
119
102
  const removePage = (page) => {
120
103
  const index = pages.value.indexOf(page);
121
- if (index === -1)
122
- return;
104
+ if (index === -1) return;
123
105
  const newPages = pages.value.slice(0, pages.value.length - index);
124
106
  pages.value = newPages.length === 0 ? [1] : newPages;
125
107
  emit("update:page", pages.value[pages.value.length - 1]);
@@ -140,12 +122,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
140
122
  pages.value = [page];
141
123
  nextPage.value = null;
142
124
  previousPage.value = null;
143
- if (!props.skipScrollTarget)
144
- (props.scrollingElement ?? document.scrollingElement)?.scrollTo(0, props.headerTop);
125
+ if (!props.skipScrollTarget) (props.scrollingElement ?? document.scrollingElement)?.scrollTo(0, props.headerTop);
145
126
  };
146
127
  watch(toRef(props, "queryParams"), (newValue, oldValue) => {
147
- if (isEqualObj(newValue, oldValue, ["page", ...props.excludeParams ?? []]))
148
- return;
128
+ if (isEqualObj(newValue, oldValue, ["page", ...props.excludeParams ?? []])) return;
149
129
  resetPage();
150
130
  });
151
131
  watch(count, (value) => emit("update:count", value), { immediate: true });
@@ -1,6 +1,8 @@
1
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>, {
1
+ declare function __VLS_template(): {
2
2
  default?(_: {}): any;
3
- }>;
3
+ };
4
+ declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}>;
5
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
4
6
  export default _default;
5
7
  type __VLS_WithTemplateSlots<T, S> = T & {
6
8
  new (): {
@@ -1 +1 @@
1
- {"version":3,"file":"EmptyComponent.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/InfiniteList/components/EmptyComponent.vue"],"names":[],"mappings":";;;AAiDA,wBAAwG;AACxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
1
+ {"version":3,"file":"EmptyComponent.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/InfiniteList/components/EmptyComponent.vue"],"names":[],"mappings":"AAWA,iBAAS,cAAc;qBAgBM,GAAG;EAa/B;AACD,QAAA,MAAM,eAAe,0NAKnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,7 +1,7 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
2
2
  click: () => void;
3
3
  check: () => void;
4
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
4
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{}>> & {
5
5
  onClick?: (() => any) | undefined;
6
6
  onCheck?: (() => any) | undefined;
7
7
  }, {}, {}>;
@@ -1 +1 @@
1
- {"version":3,"file":"InfiniteListButton.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/InfiniteList/components/InfiniteListButton.vue"],"names":[],"mappings":"AAUA;;;;;;;;AAmFA,wBAMG"}
1
+ {"version":3,"file":"InfiniteListButton.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/InfiniteList/components/InfiniteListButton.vue"],"names":[],"mappings":";;;;;;;AAgHA,wBAMG"}
@@ -1,96 +1,18 @@
1
- declare const _default: <Model extends string | number, Data extends DefaultData, ApiError, QueryParams>(__VLS_props: {
2
- transition?: boolean | undefined;
3
- "onUpdate:count"?: ((value: number) => any) | undefined;
4
- valueGetter: (data: Data) => Model;
5
- wrap?: boolean | undefined;
6
- scrollingElement?: Element | null | undefined;
7
- "onUpdate:selected"?: ((values: Model[]) => any) | undefined;
8
- queryParams: QueryParams;
9
- selected?: Model[] | undefined;
10
- selectOnly?: boolean | undefined;
11
- unselectOnly?: boolean | undefined;
12
- "onUpdate:pages-count"?: ((value: number) => any) | undefined;
13
- "onUpdate:next-page"?: ((value: number | null) => any) | undefined;
14
- "onUpdate:previous-page"?: ((value: number | null) => any) | undefined;
15
- "onUpdate:scroll"?: ((value: number) => any) | undefined;
16
- "onRemove:page"?: ((value: number) => any) | undefined;
17
- onRefetch?: (() => any) | undefined;
18
- "onUpdate-from-header:scroll"?: (() => any) | undefined;
19
- onFetched?: (() => any) | undefined;
20
- useQueryFn: UseQueryPaginated<Data, ApiError, QueryParams>;
21
- isInvalidPage: (error: unknown) => boolean;
22
- skeletonLength: number;
23
- firstPage: boolean;
24
- lastPage: boolean;
25
- hidePageTitle?: boolean | undefined;
26
- noGap?: boolean | undefined;
27
- resetting?: boolean | undefined;
28
- emptyStub?: string | undefined;
29
- minHeight?: boolean | undefined;
30
- lastChild?: boolean | undefined;
31
- pageClass?: string | undefined;
32
- refetchInterval?: number | false | undefined;
33
- queryOptions?: Partial<Parameters<UseQueryPaginated<Data, ApiError, QueryParams>>[1]>;
34
- reverseSelection?: boolean | undefined;
35
- allowPageSelection?: boolean | undefined;
36
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
37
- attrs: any;
38
- slots: Readonly<{
39
- default?: ((props: {
40
- item: Data;
41
- setter: (newItem?: Data | undefined) => void;
42
- skeleton: boolean;
43
- refetch: () => void;
44
- previous?: Data | undefined;
45
- next?: Data | undefined;
46
- first: boolean;
47
- last: boolean;
48
- page: number;
49
- index: number;
50
- }) => void) | undefined;
51
- }> & {
52
- default?: ((props: {
53
- item: Data;
54
- setter: (newItem?: Data | undefined) => void;
55
- skeleton: boolean;
56
- refetch: () => void;
57
- previous?: Data | undefined;
58
- next?: Data | undefined;
59
- first: boolean;
60
- last: boolean;
61
- page: number;
62
- index: number;
63
- }) => void) | undefined;
64
- };
65
- emit: {
66
- (e: 'update:count', value: number): void;
67
- (e: 'update:pages-count', value: number): void;
68
- (e: 'update:next-page', value: number | null): void;
69
- (e: 'update:previous-page', value: number | null): void;
70
- (e: 'update:scroll', value: number): void;
71
- (e: 'remove:page', value: number): void;
72
- (e: 'refetch'): void;
73
- (e: 'update-from-header:scroll'): void;
74
- (e: 'update:selected', values: Model[]): void;
75
- (e: 'fetched'): void;
76
- };
77
- } | undefined, __VLS_expose?: ((exposed: import("vue").ShallowUnwrapRef<{
78
- getFirst: () => Data | undefined;
79
- getLast: () => Data | undefined;
80
- refetch: () => Promise<void>;
81
- scrollTo: (index?: number) => void;
82
- }>) => void) | undefined, __VLS_setup?: Promise<{
83
- props: {
84
- transition?: boolean | undefined;
1
+ declare const _default: <Model extends number | string, Data extends DefaultData, ApiError, QueryParams>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_Prettify<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
2
+ props: __VLS_Prettify<Pick<Partial<{}> & Omit<{
3
+ "onUpdate:count"?: ((value: number) => any) | undefined;
4
+ "onUpdate:selected"?: ((values: Model[]) => any) | undefined;
5
+ "onUpdate:pages-count"?: ((value: number) => any) | undefined;
6
+ "onUpdate:next-page"?: ((value: number | null) => any) | undefined;
7
+ "onUpdate:previous-page"?: ((value: number | null) => any) | undefined;
8
+ "onUpdate:scroll"?: ((value: number) => any) | undefined;
9
+ "onRemove:page"?: ((value: number) => any) | undefined;
10
+ onRefetch?: (() => any) | undefined;
11
+ "onUpdate-from-header:scroll"?: (() => any) | undefined;
12
+ onFetched?: (() => any) | undefined;
13
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & Readonly<import('vue').ExtractPropTypes<{}>> & {
85
14
  "onUpdate:count"?: ((value: number) => any) | undefined;
86
- valueGetter: (data: Data) => Model;
87
- wrap?: boolean | undefined;
88
- scrollingElement?: Element | null | undefined;
89
15
  "onUpdate:selected"?: ((values: Model[]) => any) | undefined;
90
- queryParams: QueryParams;
91
- selected?: Model[] | undefined;
92
- selectOnly?: boolean | undefined;
93
- unselectOnly?: boolean | undefined;
94
16
  "onUpdate:pages-count"?: ((value: number) => any) | undefined;
95
17
  "onUpdate:next-page"?: ((value: number | null) => any) | undefined;
96
18
  "onUpdate:previous-page"?: ((value: number | null) => any) | undefined;
@@ -99,156 +21,82 @@ declare const _default: <Model extends string | number, Data extends DefaultData
99
21
  onRefetch?: (() => any) | undefined;
100
22
  "onUpdate-from-header:scroll"?: (() => any) | undefined;
101
23
  onFetched?: (() => any) | undefined;
24
+ }, never>, "onUpdate:count" | "onUpdate:selected" | "onUpdate:pages-count" | "onUpdate:next-page" | "onUpdate:previous-page" | "onUpdate:scroll" | "onRemove:page" | "onRefetch" | "onUpdate-from-header:scroll" | "onFetched"> & {
25
+ queryParams: QueryParams;
102
26
  useQueryFn: UseQueryPaginated<Data, ApiError, QueryParams>;
103
27
  isInvalidPage: (error: unknown) => boolean;
104
28
  skeletonLength: number;
105
29
  firstPage: boolean;
106
30
  lastPage: boolean;
107
- hidePageTitle?: boolean | undefined;
108
- noGap?: boolean | undefined;
109
- resetting?: boolean | undefined;
110
- emptyStub?: string | undefined;
111
- minHeight?: boolean | undefined;
112
- lastChild?: boolean | undefined;
113
- pageClass?: string | undefined;
114
- refetchInterval?: number | false | undefined;
31
+ hidePageTitle?: boolean;
32
+ wrap?: boolean;
33
+ noGap?: boolean;
34
+ transition?: boolean;
35
+ resetting?: boolean;
36
+ emptyStub?: string;
37
+ minHeight?: boolean;
38
+ lastChild?: boolean;
39
+ pageClass?: string;
40
+ refetchInterval?: number | false;
41
+ scrollingElement?: Element | null;
115
42
  queryOptions?: Partial<Parameters<UseQueryPaginated<Data, ApiError, QueryParams>>[1]>;
116
- reverseSelection?: boolean | undefined;
117
- allowPageSelection?: boolean | undefined;
118
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
119
- expose(exposed: import("vue").ShallowUnwrapRef<{
43
+ selected?: Model[];
44
+ valueGetter: (data: Data) => Model;
45
+ selectOnly?: boolean;
46
+ unselectOnly?: boolean;
47
+ reverseSelection?: boolean;
48
+ allowPageSelection?: boolean;
49
+ }> & import('vue').PublicProps;
50
+ expose(exposed: import('vue').ShallowUnwrapRef<{
120
51
  getFirst: () => Data | undefined;
121
52
  getLast: () => Data | undefined;
122
53
  refetch: () => Promise<void>;
123
54
  scrollTo: (index?: number) => void;
124
55
  }>): void;
125
56
  attrs: any;
126
- slots: Readonly<{
127
- default?: ((props: {
57
+ slots: ReturnType<() => Readonly<{
58
+ default?: (props: {
128
59
  item: Data;
129
60
  setter: (newItem?: Data | undefined) => void;
130
61
  skeleton: boolean;
131
62
  refetch: () => void;
132
- previous?: Data | undefined;
133
- next?: Data | undefined;
63
+ previous?: Data;
64
+ next?: Data;
134
65
  first: boolean;
135
66
  last: boolean;
136
67
  page: number;
137
68
  index: number;
138
- }) => void) | undefined;
69
+ }) => void;
139
70
  }> & {
140
- default?: ((props: {
71
+ default?: (props: {
141
72
  item: Data;
142
73
  setter: (newItem?: Data | undefined) => void;
143
74
  skeleton: boolean;
144
75
  refetch: () => void;
145
- previous?: Data | undefined;
146
- next?: Data | undefined;
76
+ previous?: Data;
77
+ next?: Data;
147
78
  first: boolean;
148
79
  last: boolean;
149
80
  page: number;
150
81
  index: number;
151
- }) => void) | undefined;
152
- };
82
+ }) => void;
83
+ }>;
153
84
  emit: {
154
- (e: 'update:count', value: number): void;
155
- (e: 'update:pages-count', value: number): void;
156
- (e: 'update:next-page', value: number | null): void;
157
- (e: 'update:previous-page', value: number | null): void;
158
- (e: 'update:scroll', value: number): void;
159
- (e: 'remove:page', value: number): void;
160
- (e: 'refetch'): void;
161
- (e: 'update-from-header:scroll'): void;
162
- (e: 'update:selected', values: Model[]): void;
163
- (e: 'fetched'): void;
164
- };
165
- }>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
85
+ (e: "update:count", value: number): void;
86
+ (e: "update:pages-count", value: number): void;
87
+ (e: "update:next-page", value: number | null): void;
88
+ (e: "update:previous-page", value: number | null): void;
89
+ (e: "update:scroll", value: number): void;
90
+ (e: "remove:page", value: number): void;
91
+ (e: "refetch"): void;
92
+ (e: "update-from-header:scroll"): void;
93
+ (e: "update:selected", values: Model[]): void;
94
+ (e: "fetched"): void;
95
+ } & {};
96
+ }>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
166
97
  [key: string]: any;
167
98
  }> & {
168
- __ctx?: {
169
- props: {
170
- transition?: boolean | undefined;
171
- "onUpdate:count"?: ((value: number) => any) | undefined;
172
- valueGetter: (data: Data) => Model;
173
- wrap?: boolean | undefined;
174
- scrollingElement?: Element | null | undefined;
175
- "onUpdate:selected"?: ((values: Model[]) => any) | undefined;
176
- queryParams: QueryParams;
177
- selected?: Model[] | undefined;
178
- selectOnly?: boolean | undefined;
179
- unselectOnly?: boolean | undefined;
180
- "onUpdate:pages-count"?: ((value: number) => any) | undefined;
181
- "onUpdate:next-page"?: ((value: number | null) => any) | undefined;
182
- "onUpdate:previous-page"?: ((value: number | null) => any) | undefined;
183
- "onUpdate:scroll"?: ((value: number) => any) | undefined;
184
- "onRemove:page"?: ((value: number) => any) | undefined;
185
- onRefetch?: (() => any) | undefined;
186
- "onUpdate-from-header:scroll"?: (() => any) | undefined;
187
- onFetched?: (() => any) | undefined;
188
- useQueryFn: UseQueryPaginated<Data, ApiError, QueryParams>;
189
- isInvalidPage: (error: unknown) => boolean;
190
- skeletonLength: number;
191
- firstPage: boolean;
192
- lastPage: boolean;
193
- hidePageTitle?: boolean | undefined;
194
- noGap?: boolean | undefined;
195
- resetting?: boolean | undefined;
196
- emptyStub?: string | undefined;
197
- minHeight?: boolean | undefined;
198
- lastChild?: boolean | undefined;
199
- pageClass?: string | undefined;
200
- refetchInterval?: number | false | undefined;
201
- queryOptions?: Partial<Parameters<UseQueryPaginated<Data, ApiError, QueryParams>>[1]>;
202
- reverseSelection?: boolean | undefined;
203
- allowPageSelection?: boolean | undefined;
204
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
205
- expose(exposed: import("vue").ShallowUnwrapRef<{
206
- getFirst: () => Data | undefined;
207
- getLast: () => Data | undefined;
208
- refetch: () => Promise<void>;
209
- scrollTo: (index?: number) => void;
210
- }>): void;
211
- attrs: any;
212
- slots: Readonly<{
213
- default?: ((props: {
214
- item: Data;
215
- setter: (newItem?: Data | undefined) => void;
216
- skeleton: boolean;
217
- refetch: () => void;
218
- previous?: Data | undefined;
219
- next?: Data | undefined;
220
- first: boolean;
221
- last: boolean;
222
- page: number;
223
- index: number;
224
- }) => void) | undefined;
225
- }> & {
226
- default?: ((props: {
227
- item: Data;
228
- setter: (newItem?: Data | undefined) => void;
229
- skeleton: boolean;
230
- refetch: () => void;
231
- previous?: Data | undefined;
232
- next?: Data | undefined;
233
- first: boolean;
234
- last: boolean;
235
- page: number;
236
- index: number;
237
- }) => void) | undefined;
238
- };
239
- emit: {
240
- (e: 'update:count', value: number): void;
241
- (e: 'update:pages-count', value: number): void;
242
- (e: 'update:next-page', value: number | null): void;
243
- (e: 'update:previous-page', value: number | null): void;
244
- (e: 'update:scroll', value: number): void;
245
- (e: 'remove:page', value: number): void;
246
- (e: 'refetch'): void;
247
- (e: 'update-from-header:scroll'): void;
248
- (e: 'update:selected', values: Model[]): void;
249
- (e: 'fetched'): void;
250
- };
251
- } | undefined;
99
+ __ctx?: Awaited<typeof __VLS_setup>;
252
100
  };
253
101
  export default _default;
254
102
  type __VLS_Prettify<T> = {
@@ -1 +1 @@
1
- {"version":3,"file":"InfiniteListPage.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/InfiniteList/components/InfiniteListPage.vue"],"names":[],"mappings":"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"}
1
+ {"version":3,"file":"InfiniteListPage.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/InfiniteList/components/InfiniteListPage.vue"],"names":[],"mappings":"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"}
@@ -50,16 +50,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
50
50
  const previousPage = computed(() => data.value?.previous);
51
51
  const page = computed(() => props.queryParams instanceof Object && "page" in props.queryParams && Number.isInteger(props.queryParams.page) ? props.queryParams.page : null);
52
52
  const setItem = (index, newItem) => {
53
- if (!data.value)
54
- return;
53
+ if (!data.value) return;
55
54
  const newData = {
56
55
  ...data.value,
57
56
  results: [...data.value.results]
58
57
  };
59
- if (newItem)
60
- newData.results.splice(index, 1, newItem);
61
- else
62
- newData.results.splice(index, 1);
58
+ if (newItem) newData.results.splice(index, 1, newItem);
59
+ else newData.results.splice(index, 1);
63
60
  setData(newData);
64
61
  };
65
62
  const emitRefetch = () => {
@@ -67,19 +64,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
67
64
  };
68
65
  const refetchPage = async () => {
69
66
  await refetch();
70
- if (props.lastPage && nextPage.value !== void 0)
71
- emit("update:next-page", nextPage.value);
72
- if (props.firstPage && previousPage.value !== void 0)
73
- emit("update:previous-page", previousPage.value);
67
+ if (props.lastPage && nextPage.value !== void 0) emit("update:next-page", nextPage.value);
68
+ if (props.firstPage && previousPage.value !== void 0) emit("update:previous-page", previousPage.value);
74
69
  };
75
70
  const getFirst = () => {
76
- if (!data.value)
77
- return void 0;
71
+ if (!data.value) return void 0;
78
72
  return data.value.results[0];
79
73
  };
80
74
  const getLast = () => {
81
- if (!data.value)
82
- return void 0;
75
+ if (!data.value) return void 0;
83
76
  return data.value.results[data.value.results.length - 1];
84
77
  };
85
78
  const scrollTo = (index) => {
@@ -92,22 +85,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
92
85
  element.value?.scrollIntoView({ block: "center", behavior: "smooth" });
93
86
  };
94
87
  watch(data, (value) => {
95
- if (props.firstPage && value?.previous !== void 0)
96
- emit("update:previous-page", value.previous);
97
- if (props.lastPage && value?.next !== void 0)
98
- emit("update:next-page", value.next);
99
- if (value?.pages_count !== void 0)
100
- emit("update:pages-count", value.pages_count);
101
- if (value?.count !== void 0)
102
- emit("update:count", value.count);
88
+ if (props.firstPage && value?.previous !== void 0) emit("update:previous-page", value.previous);
89
+ if (props.lastPage && value?.next !== void 0) emit("update:next-page", value.next);
90
+ if (value?.pages_count !== void 0) emit("update:pages-count", value.pages_count);
91
+ if (value?.count !== void 0) emit("update:count", value.count);
103
92
  }, { immediate: true });
104
93
  watch(error, (error2) => {
105
- if (props.isInvalidPage(error2) && page.value !== null)
106
- emit("remove:page", page.value);
94
+ if (props.isInvalidPage(error2) && page.value !== null) emit("remove:page", page.value);
107
95
  }, { immediate: true });
108
96
  watch(isFetching, (value) => {
109
- if (value)
110
- return;
97
+ if (value) return;
111
98
  emit("fetched");
112
99
  });
113
100
  let height = 0;
@@ -132,13 +119,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
132
119
  intersectionObserver.observe(element.value);
133
120
  }
134
121
  height = element.value?.getBoundingClientRect()?.height ?? 0;
135
- if (height === 0)
136
- return;
137
- if (!props.firstPage)
138
- return;
122
+ if (height === 0) return;
123
+ if (!props.firstPage) return;
139
124
  if (props.lastPage) {
140
- if (page.value !== 1)
141
- nextTick().then(() => emit("update-from-header:scroll"));
125
+ if (page.value !== 1) nextTick().then(() => emit("update-from-header:scroll"));
142
126
  return;
143
127
  }
144
128
  emit("update:scroll", height);
@@ -146,20 +130,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
146
130
  onBeforeUnmount(() => {
147
131
  intersectionObserver?.disconnect();
148
132
  intersectionObserver = void 0;
149
- if (page.value !== null)
150
- emit("remove:page", page.value);
133
+ if (page.value !== null) emit("remove:page", page.value);
151
134
  });
152
135
  watch(data, async (_, oldValue) => {
153
- if (oldValue)
154
- return;
136
+ if (oldValue) return;
155
137
  await nextTick();
156
138
  const newHeight = (element.value?.getBoundingClientRect().height ?? 0) - height;
157
- if (newHeight === 0)
158
- return;
159
- if (!props.firstPage)
160
- return;
161
- if (props.lastPage)
162
- return;
139
+ if (newHeight === 0) return;
140
+ if (!props.firstPage) return;
141
+ if (props.lastPage) return;
163
142
  emit("update:scroll", newHeight);
164
143
  });
165
144
  __expose({
@@ -1,23 +1,30 @@
1
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
2
- selected?: boolean | undefined;
3
- selectedBetween?: boolean | undefined;
4
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
1
+ declare function __VLS_template(): {
2
+ default?(_: {}): any;
3
+ };
4
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_TypePropsToOption<{
5
+ selected?: boolean;
6
+ selectedBetween?: boolean;
7
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
5
8
  "update:selected": (value: boolean) => void;
6
9
  "update:selected-range": () => void;
7
10
  "update:selected-range-hover": () => void;
8
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
9
- selected?: boolean | undefined;
10
- selectedBetween?: boolean | undefined;
11
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<{
12
+ selected?: boolean;
13
+ selectedBetween?: boolean;
11
14
  }>>> & {
12
15
  "onUpdate:selected"?: ((value: boolean) => any) | undefined;
13
16
  "onUpdate:selected-range"?: (() => any) | undefined;
14
17
  "onUpdate:selected-range-hover"?: (() => any) | undefined;
15
- }, {}, {}>, {
16
- default?(_: {}): any;
17
- }>;
18
+ }, {}, {}>;
19
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
18
20
  export default _default;
21
+ type __VLS_WithTemplateSlots<T, S> = T & {
22
+ new (): {
23
+ $slots: S;
24
+ };
25
+ };
19
26
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
20
- type __VLS_TypePropsToRuntimeProps<T> = {
27
+ type __VLS_TypePropsToOption<T> = {
21
28
  [K in keyof T]-?: {} extends Pick<T, K> ? {
22
29
  type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
23
30
  } : {
@@ -25,9 +32,4 @@ type __VLS_TypePropsToRuntimeProps<T> = {
25
32
  required: true;
26
33
  };
27
34
  };
28
- type __VLS_WithTemplateSlots<T, S> = T & {
29
- new (): {
30
- $slots: S;
31
- };
32
- };
33
35
  //# sourceMappingURL=InfiniteListPageSelectItem.vue.d.ts.map