eco-vue-js 0.10.3 → 0.10.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (266) hide show
  1. package/dist/assets/icons/default/IconAdd.svg.js +1 -1
  2. package/dist/assets/icons/default/IconArrow.svg.js +1 -1
  3. package/dist/assets/icons/default/IconAvatar.svg.js +1 -1
  4. package/dist/assets/icons/default/IconBack.svg.js +1 -1
  5. package/dist/assets/icons/default/IconCancel.svg.js +1 -1
  6. package/dist/assets/icons/default/IconCheck.svg.js +1 -1
  7. package/dist/assets/icons/default/IconDanger.svg.js +1 -1
  8. package/dist/assets/icons/default/IconDojo.svg.js +1 -1
  9. package/dist/assets/icons/default/IconEdit.svg.js +1 -1
  10. package/dist/assets/icons/default/IconFalsePositive.svg.js +1 -1
  11. package/dist/assets/icons/default/IconFeedback.svg.js +1 -1
  12. package/dist/assets/icons/default/IconFilter.svg.js +1 -1
  13. package/dist/assets/icons/default/IconInProgress.svg.js +1 -1
  14. package/dist/assets/icons/default/IconJira.svg.js +1 -1
  15. package/dist/assets/icons/default/IconLogout.svg.js +1 -1
  16. package/dist/assets/icons/default/IconMore.svg.js +1 -1
  17. package/dist/assets/icons/default/IconNotification.svg.js +1 -1
  18. package/dist/assets/icons/default/IconProfile.svg.js +1 -1
  19. package/dist/assets/icons/default/IconSearch.svg.js +1 -1
  20. package/dist/assets/icons/default/IconSettings.svg.js +1 -1
  21. package/dist/assets/icons/default/IconSort.svg.js +1 -1
  22. package/dist/assets/icons/default/IconStar.svg.js +1 -1
  23. package/dist/assets/icons/default/IconSuccess.svg.js +1 -1
  24. package/dist/assets/icons/default/IconTask.svg.js +1 -1
  25. package/dist/assets/icons/default/IconTime.svg.js +1 -1
  26. package/dist/assets/icons/default/IconWarn.svg.js +1 -1
  27. package/dist/assets/icons/sax/IconAdd.svg.js +1 -1
  28. package/dist/assets/icons/sax/IconAddCircle.svg.js +1 -1
  29. package/dist/assets/icons/sax/IconAddSquare.svg.js +1 -1
  30. package/dist/assets/icons/sax/IconAlarm.svg.js +1 -1
  31. package/dist/assets/icons/sax/IconArchiveBook.svg.js +1 -1
  32. package/dist/assets/icons/sax/IconCandle.svg.js +1 -1
  33. package/dist/assets/icons/sax/IconCelery.svg.js +1 -1
  34. package/dist/assets/icons/sax/IconChart.svg.js +1 -1
  35. package/dist/assets/icons/sax/IconCheckCircle.svg.js +1 -1
  36. package/dist/assets/icons/sax/IconClose.svg.js +1 -1
  37. package/dist/assets/icons/sax/IconCloseCircle.svg.js +1 -1
  38. package/dist/assets/icons/sax/IconCopy.svg.js +1 -1
  39. package/dist/assets/icons/sax/IconCopySuccess.svg.js +1 -1
  40. package/dist/assets/icons/sax/IconCopyright.svg.js +1 -1
  41. package/dist/assets/icons/sax/IconDedupe.svg.js +1 -1
  42. package/dist/assets/icons/sax/IconDojo.svg.js +1 -1
  43. package/dist/assets/icons/sax/IconDrag.svg.js +1 -1
  44. package/dist/assets/icons/sax/IconEdit.svg.js +1 -1
  45. package/dist/assets/icons/sax/IconEditCircle.svg.js +1 -1
  46. package/dist/assets/icons/sax/IconElement.svg.js +1 -1
  47. package/dist/assets/icons/sax/IconExport.svg.js +1 -1
  48. package/dist/assets/icons/sax/IconEye.svg.js +1 -1
  49. package/dist/assets/icons/sax/IconEyeSlash.svg.js +1 -1
  50. package/dist/assets/icons/sax/IconFilter.svg.js +1 -1
  51. package/dist/assets/icons/sax/IconFilterRemove.svg.js +1 -1
  52. package/dist/assets/icons/sax/IconFinding.svg.js +1 -1
  53. package/dist/assets/icons/sax/IconFolder.svg.js +1 -1
  54. package/dist/assets/icons/sax/IconFolderCross.svg.js +1 -1
  55. package/dist/assets/icons/sax/IconGrid.svg.js +24 -0
  56. package/dist/assets/icons/sax/IconJira.svg.js +1 -1
  57. package/dist/assets/icons/sax/IconKey.svg.js +1 -1
  58. package/dist/assets/icons/sax/IconKeySquare.svg.js +1 -1
  59. package/dist/assets/icons/sax/IconLayer.svg.js +1 -1
  60. package/dist/assets/icons/sax/IconLink.svg.js +1 -1
  61. package/dist/assets/icons/sax/IconLinkBold.svg.js +1 -1
  62. package/dist/assets/icons/sax/IconLinkOutline.svg.js +1 -1
  63. package/dist/assets/icons/sax/IconLogout.svg.js +1 -1
  64. package/dist/assets/icons/sax/IconMenu.svg.js +1 -1
  65. package/dist/assets/icons/sax/IconMinusCircle.svg.js +1 -1
  66. package/dist/assets/icons/sax/IconNegate.svg.js +1 -1
  67. package/dist/assets/icons/sax/IconNegativeInfo.svg.js +1 -1
  68. package/dist/assets/icons/sax/IconNote.svg.js +1 -1
  69. package/dist/assets/icons/sax/IconOutlineCheckCircle.svg.js +1 -1
  70. package/dist/assets/icons/sax/IconOutlineCloseCircle.svg.js +1 -1
  71. package/dist/assets/icons/sax/IconOutlineEdit.svg.js +1 -1
  72. package/dist/assets/icons/sax/IconOutlineFolderAdd.svg.js +1 -1
  73. package/dist/assets/icons/sax/IconOutlineRefresh.svg.js +1 -1
  74. package/dist/assets/icons/sax/IconOutlineStar.svg.js +1 -1
  75. package/dist/assets/icons/sax/IconPaste.svg.js +1 -1
  76. package/dist/assets/icons/sax/IconProfile.svg.js +1 -1
  77. package/dist/assets/icons/sax/IconRadar.svg.js +1 -1
  78. package/dist/assets/icons/sax/IconRefresh.svg.js +1 -1
  79. package/dist/assets/icons/sax/IconSearch.svg.js +1 -1
  80. package/dist/assets/icons/sax/IconSettings.svg.js +1 -1
  81. package/dist/assets/icons/sax/IconSlash.svg.js +1 -1
  82. package/dist/assets/icons/sax/IconStar.svg.js +1 -1
  83. package/dist/assets/icons/sax/IconSummary.svg.js +1 -1
  84. package/dist/assets/icons/sax/IconTable.svg.js +24 -0
  85. package/dist/assets/icons/sax/IconTableSettings.svg.js +1 -1
  86. package/dist/assets/icons/sax/IconTag.svg.js +1 -1
  87. package/dist/assets/icons/sax/IconTask.svg.js +1 -1
  88. package/dist/assets/icons/sax/IconTime.svg.js +1 -1
  89. package/dist/assets/icons/sax/IconTrash.svg.js +1 -1
  90. package/dist/assets/icons/sax/IconUser.svg.js +1 -1
  91. package/dist/assets/icons/sax/IconVersionControl.svg.js +1 -1
  92. package/dist/assets/icons/sax/IconWeight.svg.js +1 -1
  93. package/dist/components/ActionsBar/WActionsBar.vue.js +1 -1
  94. package/dist/components/BottomSheet/WBottomSheet.vue.js +1 -1
  95. package/dist/components/Button/WButton.vue.js +2 -2
  96. package/dist/components/Button/WButtonAction.vue.js +1 -1
  97. package/dist/components/Button/WButtonCopy.vue.js +1 -1
  98. package/dist/components/Button/WButtonDropdown.vue.js +8 -6
  99. package/dist/components/Button/WButtonGroup.vue.js +1 -1
  100. package/dist/components/Button/WButtonMore.vue.js +1 -1
  101. package/dist/components/Button/WButtonMoreItem.vue.js +1 -1
  102. package/dist/components/Button/WButtonSelection.vue.d.ts +1 -0
  103. package/dist/components/Button/WButtonSelection.vue.d.ts.map +1 -1
  104. package/dist/components/Button/WButtonSelection.vue.js +18 -28
  105. package/dist/components/Button/WButtonSelectionAction.vue.d.ts +4 -2
  106. package/dist/components/Button/WButtonSelectionAction.vue.d.ts.map +1 -1
  107. package/dist/components/Button/WButtonSelectionAction.vue.js +8 -4
  108. package/dist/components/Checkbox/WCheckbox.vue.js +1 -1
  109. package/dist/components/Chip/WChip.vue.js +1 -1
  110. package/dist/components/ClickOutside/WClickOutside.vue.js +1 -1
  111. package/dist/components/Counter/WCounter.vue.js +1 -1
  112. package/dist/components/DatePicker/WDatePicker.vue.js +2 -2
  113. package/dist/components/DatePicker/WDatePickerSingle.vue.js +2 -2
  114. package/dist/components/DatePicker/components/CalendarDay.vue.js +1 -1
  115. package/dist/components/DatePicker/components/CalendarMonth.vue.js +1 -1
  116. package/dist/components/DatePicker/components/CalendarToggle.vue.js +1 -1
  117. package/dist/components/DatePicker/components/CalendarValue.vue.js +1 -1
  118. package/dist/components/DatePicker/components/CalendarWeek.vue.js +1 -1
  119. package/dist/components/Dropdown/WDropdown.vue.js +1 -1
  120. package/dist/components/DropdownMenu/WDropdownMenu.vue.js +1 -1
  121. package/dist/components/Expansion/WExpansion.vue.js +1 -1
  122. package/dist/components/Expansion/WExpansionItem.vue.js +1 -1
  123. package/dist/components/FieldWrapper/WFieldWrapper.vue.js +3 -1
  124. package/dist/components/FieldWrapper/components/FilterButton.vue.js +1 -1
  125. package/dist/components/FilePicker/WFilePicker.vue.js +1 -1
  126. package/dist/components/FilePicker/components/FilePickerItem.vue.js +1 -1
  127. package/dist/components/FilePicker/components/FilePickerSvg.vue.js +1 -1
  128. package/dist/components/FilterWrapper/WFilterWrapper.vue.js +1 -1
  129. package/dist/components/Form/WForm.vue.js +2 -2
  130. package/dist/components/Form/WFormValidator.vue.js +3 -1
  131. package/dist/components/Form/models/utils.js +2 -0
  132. package/dist/components/FormAsync/WFormAsyncButtonGroup.vue.js +1 -1
  133. package/dist/components/FormAsync/WFormAsyncInput.vue.js +1 -1
  134. package/dist/components/FormAsync/WFormAsyncSelect.vue.js +1 -1
  135. package/dist/components/FormAsync/WFormAsyncSelectInfiniteSingle.vue.js +1 -1
  136. package/dist/components/FormAsync/WFormAsyncSelectSingle.vue.js +1 -1
  137. package/dist/components/FormAsync/WFormAsyncSelectStringified.vue.js +1 -1
  138. package/dist/components/FormAsync/WFormAsyncToggle.vue.js +1 -1
  139. package/dist/components/FormAsync/use/useFormAsync.js +2 -0
  140. package/dist/components/HeaderBar/WHeaderBar.vue.d.ts +0 -3
  141. package/dist/components/HeaderBar/WHeaderBar.vue.d.ts.map +1 -1
  142. package/dist/components/HeaderBar/WHeaderBar.vue.js +6 -5
  143. package/dist/components/HeaderBar/use/useHeaderPadding.d.ts +5 -0
  144. package/dist/components/HeaderBar/use/useHeaderPadding.d.ts.map +1 -0
  145. package/dist/components/HeaderBar/use/useHeaderPadding.js +14 -0
  146. package/dist/components/ImageViewer/WImageViewer.vue.js +1 -1
  147. package/dist/components/ImageViewer/components/ImageModal.vue2.js +1 -1
  148. package/dist/components/InfiniteList/WInfiniteList.vue.d.ts +1 -5
  149. package/dist/components/InfiniteList/WInfiniteList.vue.d.ts.map +1 -1
  150. package/dist/components/InfiniteList/WInfiniteList.vue.js +7 -16
  151. package/dist/components/InfiniteList/WInfiniteListWrapper.vue.d.ts +2 -11
  152. package/dist/components/InfiniteList/WInfiniteListWrapper.vue.d.ts.map +1 -1
  153. package/dist/components/InfiniteList/WInfiniteListWrapper.vue.js +8 -11
  154. package/dist/components/InfiniteList/components/InfiniteListButton.vue.js +1 -1
  155. package/dist/components/InfiniteList/components/InfiniteListPage.vue.d.ts +0 -1
  156. package/dist/components/InfiniteList/components/InfiniteListPage.vue.d.ts.map +1 -1
  157. package/dist/components/InfiniteList/components/InfiniteListPage.vue.js +6 -10
  158. package/dist/components/InfiniteList/components/InfiniteListPageSelection.vue.js +1 -1
  159. package/dist/components/InfiniteList/components/InfiniteListPageTitle.vue.js +1 -1
  160. package/dist/components/InfiniteList/components/InfiniteListPages.vue.d.ts +0 -1
  161. package/dist/components/InfiniteList/components/InfiniteListPages.vue.d.ts.map +1 -1
  162. package/dist/components/InfiniteList/components/InfiniteListPages.vue.js +2 -4
  163. package/dist/components/InfiniteList/components/InfiniteListScroll.vue.js +1 -1
  164. package/dist/components/InfiniteList/use/useInfiniteListHeader.d.ts +1 -0
  165. package/dist/components/InfiniteList/use/useInfiniteListHeader.d.ts.map +1 -1
  166. package/dist/components/InfiniteList/use/useInfiniteListHeader.js +11 -6
  167. package/dist/components/InfoCard/WInfoCard.vue.js +1 -1
  168. package/dist/components/InfoCard/WInfoCardNegative.vue.js +1 -1
  169. package/dist/components/Input/WInput.vue.js +1 -1
  170. package/dist/components/Input/WInputAsync.vue.js +1 -1
  171. package/dist/components/Input/WInputDate.vue.js +1 -1
  172. package/dist/components/Input/WInputOptions.vue.js +1 -1
  173. package/dist/components/Input/WInputSuggest.vue.js +1 -1
  174. package/dist/components/Input/components/InputActions.vue.js +1 -1
  175. package/dist/components/Input/components/InputActionsButton.vue.js +1 -1
  176. package/dist/components/Link/WLink.vue.d.ts +0 -1
  177. package/dist/components/Link/WLink.vue.d.ts.map +1 -1
  178. package/dist/components/Link/WLink.vue.js +3 -12
  179. package/dist/components/Link/WLinkArrow.vue.js +1 -1
  180. package/dist/components/List/WList.vue.d.ts +9 -10
  181. package/dist/components/List/WList.vue.d.ts.map +1 -1
  182. package/dist/components/List/WList.vue.js +96 -55
  183. package/dist/components/List/WListCard.vue.d.ts +24 -22
  184. package/dist/components/List/WListCard.vue.d.ts.map +1 -1
  185. package/dist/components/List/WListCard.vue.js +76 -48
  186. package/dist/components/List/WListCardField.vue.d.ts.map +1 -1
  187. package/dist/components/List/WListCardField.vue.js +3 -4
  188. package/dist/components/List/WListHeader.vue.js +1 -1
  189. package/dist/components/List/WListHeaderItem.vue.d.ts.map +1 -1
  190. package/dist/components/List/WListHeaderItem.vue.js +21 -37
  191. package/dist/components/List/components/HeaderFieldNested.vue.js +2 -2
  192. package/dist/components/List/components/HeaderItemResizer.vue.js +1 -1
  193. package/dist/components/List/components/HeaderSettings.vue.d.ts +5 -1
  194. package/dist/components/List/components/HeaderSettings.vue.d.ts.map +1 -1
  195. package/dist/components/List/components/HeaderSettings.vue.js +94 -40
  196. package/dist/components/List/components/HeaderSettingsItem.vue.js +1 -1
  197. package/dist/components/List/components/HeaderSettingsModeButton.vue.d.ts +9 -0
  198. package/dist/components/List/components/HeaderSettingsModeButton.vue.d.ts.map +1 -0
  199. package/dist/components/List/components/HeaderSettingsModeButton.vue.js +23 -0
  200. package/dist/components/List/components/HeaderSettingsModeButton.vue2.js +5 -0
  201. package/dist/components/List/components/HeaderSort.vue.d.ts +32 -0
  202. package/dist/components/List/components/HeaderSort.vue.d.ts.map +1 -0
  203. package/dist/components/List/components/HeaderSort.vue.js +84 -0
  204. package/dist/components/List/components/HeaderSort.vue2.js +5 -0
  205. package/dist/components/List/components/HeaderSortItem.vue.d.ts +22 -0
  206. package/dist/components/List/components/HeaderSortItem.vue.d.ts.map +1 -0
  207. package/dist/components/List/components/HeaderSortItem.vue.js +67 -0
  208. package/dist/components/List/components/HeaderSortItem.vue2.js +5 -0
  209. package/dist/components/List/components/ListCardFieldNested.vue.d.ts +1 -1
  210. package/dist/components/List/components/ListCardFieldNested.vue.d.ts.map +1 -1
  211. package/dist/components/List/components/ListCardFieldNested.vue.js +9 -9
  212. package/dist/components/List/components/ListCardFieldNestedItem.vue.js +1 -1
  213. package/dist/components/List/types.d.ts +10 -3
  214. package/dist/components/List/types.d.ts.map +1 -1
  215. package/dist/components/List/types.js +4 -0
  216. package/dist/components/List/use/useListConfig.d.ts +24 -0
  217. package/dist/components/List/use/useListConfig.d.ts.map +1 -0
  218. package/dist/components/List/use/{useFieldConfigMap.js → useListConfig.js} +54 -13
  219. package/dist/components/List/use/useOrdering.d.ts +7 -0
  220. package/dist/components/List/use/useOrdering.d.ts.map +1 -0
  221. package/dist/components/List/use/useOrdering.js +36 -0
  222. package/dist/components/MenuItem/WMenuItem.vue.js +1 -1
  223. package/dist/components/Modal/WModal.vue.js +1 -1
  224. package/dist/components/Modal/WModalStepper.vue.js +5 -5
  225. package/dist/components/Modal/WModalWrapper.vue.js +1 -1
  226. package/dist/components/Modal/components/ModalCloseButton.vue.js +1 -1
  227. package/dist/components/Modal/modals/Confirm/ConfirmModal.vue2.js +1 -1
  228. package/dist/components/Nav/WNavBar.vue.js +1 -1
  229. package/dist/components/Nav/WNavItem.vue.js +1 -1
  230. package/dist/components/Nav/WNavItemExpand.vue.js +3 -1
  231. package/dist/components/Nav/WNavItemTransition.vue.js +1 -1
  232. package/dist/components/Notify/WNotify.vue.js +1 -1
  233. package/dist/components/Notify/components/NotifyCard.vue.js +1 -1
  234. package/dist/components/NumberFormatter/WNumberFormatter.vue.js +1 -1
  235. package/dist/components/Page/WPage.vue.js +1 -1
  236. package/dist/components/Page/WPageNumerator.vue.js +1 -1
  237. package/dist/components/Page/WPageTitle.vue.js +1 -1
  238. package/dist/components/Progress/WProgress.vue.js +1 -1
  239. package/dist/components/Select/WSelect.vue.js +6 -6
  240. package/dist/components/Select/WSelectAsync.vue.js +5 -5
  241. package/dist/components/Select/WSelectAsyncList.vue.js +1 -1
  242. package/dist/components/Select/WSelectAsyncSingle.vue.js +1 -1
  243. package/dist/components/Select/WSelectSingle.vue.js +1 -1
  244. package/dist/components/Select/WSelectStringified.vue.js +1 -1
  245. package/dist/components/Select/components/SelectAsyncList.vue.js +1 -1
  246. package/dist/components/Select/components/SelectAsyncPrefix.vue.js +1 -1
  247. package/dist/components/Select/components/SelectAsyncPrefixPage.vue.js +1 -1
  248. package/dist/components/Select/components/SelectOption.vue.js +1 -1
  249. package/dist/components/Select/components/SelectOptionPrefix.vue.js +1 -1
  250. package/dist/components/Skeleton/WSkeleton.vue.js +1 -1
  251. package/dist/components/Spinner/WSpinner.vue.js +1 -1
  252. package/dist/components/Tabs/WTabs.vue.js +4 -2
  253. package/dist/components/Tabs/WTabsColumns.vue.js +1 -1
  254. package/dist/components/Tabs/components/TabItem.vue.js +1 -1
  255. package/dist/components/Tabs/components/TabTitleButton.vue.js +1 -1
  256. package/dist/components/Toggle/WToggle.vue.js +1 -1
  257. package/dist/components/Tooltip/WTooltip.vue.js +1 -1
  258. package/dist/components/Tooltip/WTooltipContainer.vue.js +1 -1
  259. package/dist/components/Tooltip/components/TooltipContainer.vue.js +1 -1
  260. package/dist/types/global.d.ts +8 -0
  261. package/package.json +2 -2
  262. package/tailwind-base/index.ts +2 -0
  263. package/tailwind-base/plugins/container-queries.ts +92 -0
  264. package/tailwind-base/plugins/default.ts +23 -5
  265. package/dist/components/List/use/useFieldConfigMap.d.ts +0 -10
  266. package/dist/components/List/use/useFieldConfigMap.d.ts.map +0 -1
@@ -8,9 +8,11 @@ import '../../Dropdown/utils/DropdownStyle.js';
8
8
  import 'vue-router';
9
9
  import '../../../utils/Modal.js';
10
10
  import '../../Input/WInputSuggest.vue.js';
11
+ import '../../HeaderBar/use/useHeaderPadding.js';
11
12
  import '../../Input/WInputDate.vue.js';
12
13
  import '../../Link/WLink.vue.js';
13
14
  import '@tanstack/vue-query';
15
+ import '../../List/use/useListConfig.js';
14
16
 
15
17
  const fieldMessageStart = " - ";
16
18
  const subformMessageStart = " ";
@@ -1,4 +1,4 @@
1
- import { defineComponent, openBlock, createBlock, mergeProps, unref, createSlots, withCtx, renderSlot } from 'vue';
1
+ import { defineComponent, createBlock, openBlock, mergeProps, unref, createSlots, withCtx, renderSlot } from 'vue';
2
2
  import _sfc_main$1 from '../Button/WButtonGroup.vue.js';
3
3
  import { useFormAsync } from './use/useFormAsync.js';
4
4
 
@@ -1,4 +1,4 @@
1
- import { defineComponent, computed, openBlock, createBlock, mergeProps, unref, createSlots, withCtx, renderSlot } from 'vue';
1
+ import { defineComponent, computed, createBlock, openBlock, mergeProps, unref, createSlots, withCtx, renderSlot } from 'vue';
2
2
  import _sfc_main$1 from '../Input/WInputAsync.vue.js';
3
3
  import { validateRequired } from '../../utils/validate.js';
4
4
  import { useFormAsync } from './use/useFormAsync.js';
@@ -1,4 +1,4 @@
1
- import { defineComponent, openBlock, createBlock, mergeProps, unref, createSlots, withCtx, renderSlot } from 'vue';
1
+ import { defineComponent, createBlock, openBlock, mergeProps, unref, createSlots, withCtx, renderSlot } from 'vue';
2
2
  import _sfc_main$1 from '../Select/WSelect.vue.js';
3
3
  import { useFormAsync } from './use/useFormAsync.js';
4
4
 
@@ -1,4 +1,4 @@
1
- import { defineComponent, openBlock, createBlock, mergeProps, unref, createSlots, withCtx, renderSlot } from 'vue';
1
+ import { defineComponent, createBlock, openBlock, mergeProps, unref, createSlots, withCtx, renderSlot } from 'vue';
2
2
  import _sfc_main$1 from '../Select/WSelectAsyncSingle.vue.js';
3
3
  import { useFormAsync } from './use/useFormAsync.js';
4
4
 
@@ -1,4 +1,4 @@
1
- import { defineComponent, openBlock, createBlock, mergeProps, unref, createSlots, withCtx, renderSlot } from 'vue';
1
+ import { defineComponent, createBlock, openBlock, mergeProps, unref, createSlots, withCtx, renderSlot } from 'vue';
2
2
  import _sfc_main$1 from '../Select/WSelectSingle.vue.js';
3
3
  import { useFormAsync } from './use/useFormAsync.js';
4
4
 
@@ -1,4 +1,4 @@
1
- import { defineComponent, openBlock, createBlock, mergeProps, unref, createSlots, withCtx, renderSlot } from 'vue';
1
+ import { defineComponent, createBlock, openBlock, mergeProps, unref, createSlots, withCtx, renderSlot } from 'vue';
2
2
  import _sfc_main$1 from '../Select/WSelectStringified.vue.js';
3
3
  import { useFormAsync } from './use/useFormAsync.js';
4
4
 
@@ -1,4 +1,4 @@
1
- import { defineComponent, openBlock, createBlock, mergeProps, unref } from 'vue';
1
+ import { defineComponent, createBlock, openBlock, mergeProps, unref } from 'vue';
2
2
  import _sfc_main$1 from '../Toggle/WToggle.vue.js';
3
3
  import { useFormAsync } from './use/useFormAsync.js';
4
4
 
@@ -10,9 +10,11 @@ import 'vue-router';
10
10
  import { Modal } from '../../../utils/Modal.js';
11
11
  import '../../Input/WInputSuggest.vue.js';
12
12
  import { handleApiError } from '../../../utils/api.js';
13
+ import '../../HeaderBar/use/useHeaderPadding.js';
13
14
  import '../../Input/WInputDate.vue.js';
14
15
  import '../../Link/WLink.vue.js';
15
16
  import '@tanstack/vue-query';
17
+ import '../../List/use/useListConfig.js';
16
18
 
17
19
  const useFormAsync = (props, onSuccess) => {
18
20
  const enabled = toRef(props, "queryEnabled");
@@ -17,20 +17,17 @@ declare const __VLS_component: import('vue').DefineComponent<{
17
17
  title?: string;
18
18
  search?: string;
19
19
  searchEnabled?: boolean;
20
- headerPadding?: number;
21
20
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
22
21
  "update:search": (value: string | undefined) => any;
23
22
  }, string, import('vue').PublicProps, Readonly<{
24
23
  title?: string;
25
24
  search?: string;
26
25
  searchEnabled?: boolean;
27
- headerPadding?: number;
28
26
  }> & Readonly<{
29
27
  "onUpdate:search"?: ((value: string | undefined) => any) | undefined;
30
28
  }>, {
31
29
  title: string;
32
30
  search: string;
33
- headerPadding: number;
34
31
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
35
32
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
36
33
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"WHeaderBar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/HeaderBar/WHeaderBar.vue"],"names":[],"mappings":"AA0OA,iBAAS,cAAc;;uBA2OI,GAAG;wBACD,GAAG;wBACH,GAAG;;;;;;;;WAUlB,OAAO,IAA6B;EAEjD;AAsBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;YArVT,MAAM;aACL,MAAM;oBACC,OAAO;oBACP,MAAM;;;;YAHd,MAAM;aACL,MAAM;oBACC,OAAO;oBACP,MAAM;;;;WAHd,MAAM;YACL,MAAM;mBAEC,MAAM;6EA4VxB,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
+ {"version":3,"file":"WHeaderBar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/HeaderBar/WHeaderBar.vue"],"names":[],"mappings":"AA2OA,iBAAS,cAAc;;uBA2OI,GAAG;wBACD,GAAG;wBACH,GAAG;;;;;;;;WAUlB,OAAO,IAA6B;EAEjD;AAuBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;YApVT,MAAM;aACL,MAAM;oBACC,OAAO;;;;YAFf,MAAM;aACL,MAAM;oBACC,OAAO;;;;WAFf,MAAM;YACL,MAAM;6EA6VjB,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,8 +1,9 @@
1
- import { defineComponent, useTemplateRef, ref, watch, toRef, onMounted, onBeforeUnmount, openBlock, createElementBlock, normalizeClass, normalizeStyle, withDirectives, createElementVNode, renderSlot, createTextVNode, toDisplayString, createVNode, unref, createCommentVNode, vShow, createBlock, markRaw, createSlots, withCtx, Fragment, nextTick } from 'vue';
1
+ import { defineComponent, useTemplateRef, ref, watch, toRef, onMounted, onBeforeUnmount, createElementBlock, openBlock, withDirectives, createCommentVNode, normalizeStyle, normalizeClass, unref, createElementVNode, renderSlot, createTextVNode, toDisplayString, createVNode, vShow, createBlock, markRaw, createSlots, withCtx, Fragment, nextTick } from 'vue';
2
2
  import _sfc_main$2 from '../Input/WInput.vue.js';
3
3
  import _sfc_main$1 from '../Input/WInputSuggest.vue.js';
4
4
  import IconSearch from '../../assets/icons/sax/IconSearch.svg.js';
5
5
  import { getIsMobile } from '../../utils/mobile.js';
6
+ import { useHeaderPadding } from './use/useHeaderPadding.js';
6
7
 
7
8
  const _hoisted_1 = { class: "fixed inset-x-0 top-0 z-10 flex h-[3.75rem] print:hidden" };
8
9
  const _hoisted_2 = { class: "text-accent flex-1 truncate text-xl font-semibold sm:text-3xl" };
@@ -16,13 +17,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
16
17
  props: {
17
18
  title: { default: void 0 },
18
19
  search: { default: void 0 },
19
- searchEnabled: { type: Boolean },
20
- headerPadding: { default: 0 }
20
+ searchEnabled: { type: Boolean }
21
21
  },
22
22
  emits: ["update:search"],
23
23
  setup(__props) {
24
24
  const props = __props;
25
25
  const isMobile = getIsMobile();
26
+ const { headerPadding } = useHeaderPadding();
26
27
  const inputRef = useTemplateRef("input");
27
28
  const isTransparent = ref(false);
28
29
  const isSearchVisible = ref(false);
@@ -52,11 +53,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
52
53
  return (_ctx, _cache) => {
53
54
  return openBlock(), createElementBlock("div", _hoisted_1, [
54
55
  (openBlock(), createElementBlock("div", {
55
- key: _ctx.headerPadding,
56
+ key: unref(headerPadding),
56
57
  class: normalizeClass(["bg-default dark:bg-default-dark supports-backdrop:backdrop-blur fixed inset-x-0 top-0 h-[calc(3.75rem+var(--header-height-padding))] print:hidden", {
57
58
  "supports-backdrop:bg-opacity-40 supports-backdrop:dark:bg-opacity-60": isTransparent.value
58
59
  }]),
59
- style: normalizeStyle({ "--header-height-padding": _ctx.headerPadding + "px" })
60
+ style: normalizeStyle({ "--header-height-padding": unref(headerPadding) + "px" })
60
61
  }, null, 6)),
61
62
  withDirectives(createElementVNode("div", {
62
63
  class: normalizeClass(["-pl--inner-margin xl-not:pl-[3.75rem] relative flex max-w-full flex-1 items-center", {
@@ -0,0 +1,5 @@
1
+ export declare const useHeaderPadding: () => {
2
+ headerPadding: import('vue').Ref<number, number>;
3
+ updateHeaderPadding: (value: number) => void;
4
+ };
5
+ //# sourceMappingURL=useHeaderPadding.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useHeaderPadding.d.ts","sourceRoot":"","sources":["../../../../src/components/HeaderBar/use/useHeaderPadding.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,gBAAgB;;iCACS,MAAM;CAQ3C,CAAA"}
@@ -0,0 +1,14 @@
1
+ import { ref } from 'vue';
2
+
3
+ const headerPadding = ref(0);
4
+ const useHeaderPadding = () => {
5
+ const updateHeaderPadding = (value) => {
6
+ headerPadding.value = value;
7
+ };
8
+ return {
9
+ headerPadding,
10
+ updateHeaderPadding
11
+ };
12
+ };
13
+
14
+ export { useHeaderPadding };
@@ -1,4 +1,4 @@
1
- import { defineComponent, defineAsyncComponent, openBlock, createElementBlock, Fragment, createTextVNode, toDisplayString, createBlock, createCommentVNode, normalizeStyle, createElementVNode, markRaw } from 'vue';
1
+ import { defineComponent, defineAsyncComponent, createElementBlock, openBlock, createCommentVNode, createBlock, Fragment, createTextVNode, toDisplayString, normalizeStyle, createElementVNode, markRaw } from 'vue';
2
2
  import WSkeleton from '../Skeleton/WSkeleton.vue.js';
3
3
  import { Modal } from '../../utils/Modal.js';
4
4
 
@@ -1,4 +1,4 @@
1
- import { defineComponent, computed, openBlock, createElementBlock, createElementVNode, createVNode, unref, toDisplayString } from 'vue';
1
+ import { defineComponent, computed, createElementBlock, openBlock, createElementVNode, createVNode, unref, toDisplayString } from 'vue';
2
2
  import IconCancel from '../../../assets/icons/default/IconCancel.svg.js';
3
3
 
4
4
  const _hoisted_1 = { class: "relative flex flex-col items-center" };
@@ -3,7 +3,6 @@ declare const _default: <Model extends number | string, Data extends DefaultData
3
3
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
4
4
  readonly onSelect?: ((values: Model[]) => any) | undefined;
5
5
  readonly "onUpdate:count"?: ((value: number) => any) | undefined;
6
- readonly "onUpdate:header-padding"?: ((value: number) => any) | undefined;
7
6
  readonly "onUpdate:error"?: ((value: ApiError<{}, {
8
7
  detail?: string | undefined;
9
8
  non_field_errors?: string[] | undefined;
@@ -11,14 +10,12 @@ declare const _default: <Model extends number | string, Data extends DefaultData
11
10
  readonly "onUpdate:page"?: ((value: number | undefined) => any) | undefined;
12
11
  readonly "onSelect-reverse"?: ((values: Model[]) => any) | undefined;
13
12
  readonly "onSelect-range"?: ((value: SelectedRange<Model>) => any) | undefined;
14
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onSelect" | "onUpdate:count" | "onUpdate:header-padding" | "onUpdate:error" | "onUpdate:page" | "onSelect-reverse" | "onSelect-range"> & {
13
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onSelect" | "onUpdate:count" | "onUpdate:error" | "onUpdate:page" | "onSelect-reverse" | "onSelect-range"> & {
15
14
  useQueryFn: UseQueryPaginated<Data, QueryParams>;
16
15
  queryParams: QueryParams;
17
16
  skeletonLength?: number;
18
17
  hidePageTitle?: boolean;
19
- headerMargin?: number;
20
18
  wrap?: boolean;
21
- noGap?: boolean;
22
19
  transition?: boolean;
23
20
  scrollingElement?: Element | null;
24
21
  headerTopIgnore?: boolean;
@@ -88,7 +85,6 @@ declare const _default: <Model extends number | string, Data extends DefaultData
88
85
  };
89
86
  emit: {
90
87
  (e: "update:page", value: number | undefined): void;
91
- (e: "update:header-padding", value: number): void;
92
88
  (e: "update:count", value: number): void;
93
89
  (e: "select", values: Model[]): void;
94
90
  (e: "select-reverse", values: Model[]): void;
@@ -1 +1 @@
1
- {"version":3,"file":"WInfiniteList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/InfiniteList/WInfiniteList.vue"],"names":[],"mappings":"AA6OA,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,aAAa,CAAA;yBAaxB,KAAK,SAAS,MAAM,GAAG,MAAM,EAAE,IAAI,SAAS,WAAW,EAAE,WAAW,eACvE,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;WA6ZxD,mBAAmB,CAAC;;;;;;;;;;;;oBAzZd,iBAAiB,CAAC,IAAI,EAAE,WAAW,CAAC;qBACnC,WAAW;yBACP,MAAM;wBACP,OAAO;uBACR,MAAM;eACd,OAAO;gBACN,OAAO;qBACF,OAAO;2BACD,OAAO,GAAG,IAAI;0BACf,OAAO;oBACb,OAAO;oBACP,OAAO;wBACH,CAAC,MAAM,WAAW,CAAC,EAAE;oBACzB,MAAM;oBACN,MAAM;mBACP,MAAM;0BACC,MA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;YACf,IAAI,SA7DY,MAAM,cAAc,MAAM,UA6DzB;YACjB,cAAc,iBAA6B;SAC5C,KAAK,IAAI;;kBAjBA,CAAC,KAAK,EAAE;YAChB,IAAI,EAAE,IAAI,CAAA;YACV,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,IAAI,GAAG,SAAS,KAAK,IAAI,CAAA;YAC5C,QAAQ,EAAE,OAAO,CAAA;YACjB,OAAO,EAAE,MAAM,IAAI,CAAA;YACnB,QAAQ,CAAC,EAAE,IAAI,CAAA;YACf,IAAI,CAAC,EAAE,IAAI,CAAA;YACX,KAAK,EAAE,OAAO,CAAA;YACd,IAAI,EAAE,OAAO,CAAA;YACb,SAAS,EAAE,OAAO,CAAA;YAClB,IAAI,EAAE,MAAM,CAAA;YACZ,KAAK,EAAE,MAAM,CAAA;YACb,KAAK,EAAE,KAAK,CAAA;SACb,KAAK,IAAI;iBACD,CAAC,KAAK,EAAE;YACf,IAAI,SA7DY,MAAM,cAAc,MAAM,UA6DzB;YACjB,cAAc,iBAA6B;SAC5C,KAAK,IAAI;;;YA1EN,aAAa,SAAS,MAAM,GAAG,SAAS,GAAG,IAAI;YAC/C,cAAc,SAAS,MAAM,GAAG,IAAI;YAEpC,QAAQ,UAAU,KAAK,EAAE,GAAG,IAAI;YAChC,gBAAgB,UAAU,KAAK,EAAE,GAAG,IAAI;YACxC,cAAc,SAAS,aAAa,CAAC,KAAK,CAAC,GAAG,IAAI;YAClD,cAAc,SAAS,QAAQ,GAAG,IAAI;;;;;YAgUA,OAAO,CAAC,OAAO,WAAW,CAAC;;AAnYvE,wBAmY4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -1,4 +1,4 @@
1
- import { defineComponent, useTemplateRef, toRef, provide, onBeforeUnmount, openBlock, createBlock, resolveDynamicComponent, withCtx, renderSlot, normalizeProps, guardReactiveProps, unref, createVNode } from 'vue';
1
+ import { defineComponent, useTemplateRef, toRef, provide, createBlock, openBlock, resolveDynamicComponent, withCtx, createVNode, normalizeStyle, normalizeClass, unref, renderSlot, normalizeProps, guardReactiveProps } from 'vue';
2
2
  import _sfc_main$1 from '../EmptyComponent/WEmptyComponent.vue.js';
3
3
  import _sfc_main$2 from './WInfiniteListWrapper.vue.js';
4
4
  import _sfc_main$4 from './components/InfiniteListPageSelectItem.vue.js';
@@ -13,9 +13,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
13
13
  queryParams: {},
14
14
  skeletonLength: { default: void 0 },
15
15
  hidePageTitle: { type: Boolean },
16
- headerMargin: { default: 0 },
17
16
  wrap: { type: Boolean },
18
- noGap: { type: Boolean },
19
17
  transition: { type: Boolean },
20
18
  scrollingElement: { default: void 0 },
21
19
  headerTopIgnore: { type: Boolean },
@@ -40,14 +38,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
40
38
  reverseSelection: { type: Boolean },
41
39
  allowPageSelection: { type: Boolean }
42
40
  },
43
- emits: ["update:page", "update:header-padding", "update:count", "select", "select-reverse", "select-range", "update:error"],
41
+ emits: ["update:page", "update:count", "select", "select-reverse", "select-range", "update:error"],
44
42
  setup(__props, { expose: __expose, emit: __emit }) {
45
43
  const props = __props;
46
44
  const emit = __emit;
47
45
  const infiniteListPagesRef = useTemplateRef("infiniteListPages");
48
- const updateHeaderPadding = (value) => {
49
- emit("update:header-padding", value);
50
- };
51
46
  const goto = (page, itemIndex) => {
52
47
  infiniteListPagesRef.value?.goto(page, itemIndex);
53
48
  };
@@ -78,9 +73,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
78
73
  selectedCount,
79
74
  clearSelected: () => emit("select", [])
80
75
  });
81
- onBeforeUnmount(() => {
82
- updateHeaderPadding(0);
83
- });
84
76
  __expose({
85
77
  resetPage() {
86
78
  infiniteListPagesRef.value?.resetPage();
@@ -89,9 +81,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
89
81
  return (_ctx, _cache) => {
90
82
  return openBlock(), createBlock(resolveDynamicComponent(_ctx.minHeight ? _sfc_main$1 : _sfc_main$2), {
91
83
  "scrolling-element": _ctx.scrollingElement,
92
- "header-margin": _ctx.headerMargin,
93
- "init-is-intersecting": props.queryParams instanceof Object && "page" in props.queryParams && Number.isInteger(props.queryParams.page) && props.queryParams.page > 1 ? false : void 0,
94
- "onUpdate:headerPadding": _cache[4] || (_cache[4] = ($event) => _ctx.$emit("update:header-padding", $event))
84
+ "init-is-intersecting": props.queryParams instanceof Object && "page" in props.queryParams && Number.isInteger(props.queryParams.page) && props.queryParams.page > 1 ? false : void 0
95
85
  }, {
96
86
  header: withCtx(() => [
97
87
  renderSlot(_ctx.$slots, "header", normalizeProps(guardReactiveProps({ selectAllValue: unref(selectAllValue), goto })))
@@ -105,7 +95,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
105
95
  "skeleton-length": _ctx.skeletonLength,
106
96
  "hide-page-title": _ctx.hidePageTitle,
107
97
  wrap: _ctx.wrap,
108
- "no-gap": _ctx.noGap,
109
98
  transition: _ctx.transition,
110
99
  "page-length": _ctx.pageLength,
111
100
  "header-top": _ctx.headerTopIgnore ? 0 : "headerTop" in defaultScope ? defaultScope.headerTop : 0,
@@ -118,6 +107,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
118
107
  "max-pages": _ctx.maxPages,
119
108
  "refetch-interval": _ctx.refetchInterval,
120
109
  "query-options": _ctx.queryOptions,
110
+ class: normalizeClass(_ctx.$attrs.class),
111
+ style: normalizeStyle(_ctx.$attrs.style),
121
112
  selected: _ctx.selected,
122
113
  "value-getter": _ctx.valueGetter,
123
114
  "select-only": _ctx.selectOnly,
@@ -160,10 +151,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
160
151
  }, 1064, ["selected", "selected-between", "onUpdate:selected", "onUpdate:selectedRange", "onUpdate:selectedRangeHover"]))
161
152
  ]),
162
153
  _: 2
163
- }, 1032, ["query-params", "use-query-fn", "scrolling-element", "skeleton-length", "hide-page-title", "wrap", "no-gap", "transition", "page-length", "header-top", "header-height", "min-height", "last-child", "exclude-params", "empty-stub", "page-class", "max-pages", "refetch-interval", "query-options", "selected", "value-getter", "select-only", "unselect-only", "reverse-selection", "allow-page-selection"])
154
+ }, 1032, ["query-params", "use-query-fn", "scrolling-element", "skeleton-length", "hide-page-title", "wrap", "transition", "page-length", "header-top", "header-height", "min-height", "last-child", "exclude-params", "empty-stub", "page-class", "max-pages", "refetch-interval", "query-options", "class", "style", "selected", "value-getter", "select-only", "unselect-only", "reverse-selection", "allow-page-selection"])
164
155
  ]),
165
156
  _: 3
166
- }, 40, ["scrolling-element", "header-margin", "init-is-intersecting"]);
157
+ }, 8, ["scrolling-element", "init-is-intersecting"]);
167
158
  };
168
159
  }
169
160
  });
@@ -14,21 +14,12 @@ declare function __VLS_template(): {
14
14
  };
15
15
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
16
16
  declare const __VLS_component: import('vue').DefineComponent<{
17
- headerMargin?: number;
18
17
  scrollingElement?: Element | null;
19
18
  initIsIntersecting?: boolean;
20
- }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
21
- "update:header-padding": (value: number) => any;
22
- }, string, import('vue').PublicProps, Readonly<{
23
- headerMargin?: number;
19
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
24
20
  scrollingElement?: Element | null;
25
21
  initIsIntersecting?: boolean;
26
- }> & Readonly<{
27
- "onUpdate:header-padding"?: ((value: number) => any) | undefined;
28
- }>, {
29
- scrollingElement: Element | null;
30
- headerMargin: number;
31
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
22
+ }> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
32
23
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
33
24
  export default _default;
34
25
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1 +1 @@
1
- {"version":3,"file":"WInfiniteListWrapper.vue.d.ts","sourceRoot":"","sources":["../../../src/components/InfiniteList/WInfiniteListWrapper.vue"],"names":[],"mappings":"AA8GA,iBAAS,cAAc;;wBAwCK,GAAG;;;;YACF,GAAG;;;;;;WAWlB,OAAO,IAA6B;EAEjD;AAiBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;mBArHF,MAAM;uBACF,OAAO,GAAG,IAAI;yBACZ,OAAO;;;;mBAFb,MAAM;uBACF,OAAO,GAAG,IAAI;yBACZ,OAAO;;;;sBADT,OAAO,GAAG,IAAI;kBADlB,MAAM;6EA+HvB,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
+ {"version":3,"file":"WInfiniteListWrapper.vue.d.ts","sourceRoot":"","sources":["../../../src/components/InfiniteList/WInfiniteListWrapper.vue"],"names":[],"mappings":"AAqFA,iBAAS,cAAc;;wBAwCK,GAAG;;;;YACF,GAAG;;;;;;WAWlB,OAAO,IAA6B;EAEjD;AAaD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;uBA/FA,OAAO,GAAG,IAAI;yBACZ,OAAO;;uBADT,OAAO,GAAG,IAAI;yBACZ,OAAO;iGAoG5B,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,24 +1,21 @@
1
- import { defineComponent, watch, onBeforeUnmount, openBlock, createElementBlock, Fragment, createElementVNode, normalizeClass, unref, renderSlot, normalizeProps, guardReactiveProps } from 'vue';
1
+ import { defineComponent, watch, onBeforeUnmount, createElementBlock, openBlock, Fragment, createElementVNode, renderSlot, normalizeClass, unref, normalizeProps, guardReactiveProps } from 'vue';
2
+ import { useHeaderPadding } from '../HeaderBar/use/useHeaderPadding.js';
2
3
  import { useInfiniteListHeader } from './use/useInfiniteListHeader.js';
3
4
 
4
5
  const _sfc_main = /* @__PURE__ */ defineComponent({
5
6
  __name: "WInfiniteListWrapper",
6
7
  props: {
7
- headerMargin: { default: 0 },
8
- scrollingElement: { default: void 0 },
8
+ scrollingElement: {},
9
9
  initIsIntersecting: { type: Boolean }
10
10
  },
11
- emits: ["update:header-padding"],
12
- setup(__props, { emit: __emit }) {
11
+ setup(__props) {
13
12
  const props = __props;
14
- const emit = __emit;
15
- const updateHeaderPadding = (value) => {
16
- emit("update:header-padding", value);
17
- };
18
- const { indicator, header, headerTop, headerHeight, isIntersecting } = useInfiniteListHeader(props.scrollingElement, props.initIsIntersecting);
13
+ const { updateHeaderPadding } = useHeaderPadding();
14
+ const { indicator, header, headerTop, headerHeight, isIntersecting, updateHeader } = useInfiniteListHeader(props.scrollingElement, props.initIsIntersecting);
19
15
  watch(isIntersecting, (value) => {
20
16
  if (!value && headerHeight.value) {
21
- updateHeaderPadding(headerHeight.value - props.headerMargin);
17
+ updateHeader();
18
+ updateHeaderPadding(headerHeight.value);
22
19
  } else {
23
20
  updateHeaderPadding(0);
24
21
  }
@@ -1,4 +1,4 @@
1
- import { defineComponent, onMounted, openBlock, createElementBlock, createVNode, unref, withCtx, createTextVNode } from 'vue';
1
+ import { defineComponent, onMounted, createElementBlock, openBlock, createVNode, unref, withCtx, createTextVNode } from 'vue';
2
2
  import _sfc_main$1 from '../../Button/WButton.vue.js';
3
3
  import { SemanticType } from '../../../utils/SemanticType.js';
4
4
 
@@ -8,7 +8,6 @@ declare const _default: <Model extends number | string, Data extends DefaultData
8
8
  lastPage: boolean;
9
9
  hidePageTitle?: boolean;
10
10
  wrap?: boolean;
11
- noGap?: boolean;
12
11
  transition?: boolean;
13
12
  resetting?: boolean;
14
13
  emptyStub?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"InfiniteListPage.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/InfiniteList/components/InfiniteListPage.vue"],"names":[],"mappings":"AA6WA,OAAO,EAAC,QAAQ,EAAC,MAAM,aAAa,CAAA;yBAMnB,KAAK,SAAS,MAAM,GAAG,MAAM,EAAE,IAAI,SAAS,WAAW,EAAE,WAAW,eACvE,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WA+cxD,mBAAmB,CAAC;qBA3cb,WAAW;oBACZ,iBAAiB,CAAC,IAAI,EAAE,WAAW,CAAC;wBAChC,MAAM;mBACX,OAAO;kBACR,OAAO;wBACD,OAAO;eAChB,OAAO;gBACN,OAAO;qBACF,OAAO;oBACR,OAAO;oBACP,MAAM;oBACN,OAAO;oBACP,OAAO;oBACP,MAAM;0BACA,MAAM,GAAG,KAAK;2BACb,OAAO,GAAG,IAAI;uBAClB,OAAO,CAAC,YAAY,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,CAAC;mBAElD,KAAK,EAAE;qBACL,CAAC,IAAI,EAAE,IAAI,KAAK,KAAK;qBACrB,OAAO;uBACL,OAAO;2BACH,OAAO;6BACL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I;YAClC,iBAAiB,UAAU,KAAK,EAAE,GAAG,IAAI;YACzC,SAAS,GAAG,IAAI;YAChB,cAAc,SAAS,QAAQ,GAAG,IAAI;;;;;YAgaA,OAAO,CAAC,OAAO,WAAW,CAAC;;AAzdvE,wBAyd4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
1
+ {"version":3,"file":"InfiniteListPage.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/InfiniteList/components/InfiniteListPage.vue"],"names":[],"mappings":"AAuWA,OAAO,EAAC,QAAQ,EAAC,MAAM,aAAa,CAAA;yBAMnB,KAAK,SAAS,MAAM,GAAG,MAAM,EAAE,IAAI,SAAS,WAAW,EAAE,WAAW,eACvE,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;WA4cxD,mBAAmB,CAAC;qBAxcb,WAAW;oBACZ,iBAAiB,CAAC,IAAI,EAAE,WAAW,CAAC;wBAChC,MAAM;mBACX,OAAO;kBACR,OAAO;wBACD,OAAO;eAChB,OAAO;qBACD,OAAO;oBACR,OAAO;oBACP,MAAM;oBACN,OAAO;oBACP,OAAO;oBACP,MAAM;0BACA,MAAM,GAAG,KAAK;2BACb,OAAO,GAAG,IAAI;uBAClB,OAAO,CAAC,YAAY,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,CAAC;mBAElD,KAAK,EAAE;qBACL,CAAC,IAAI,EAAE,IAAI,KAAK,KAAK;qBACrB,OAAO;uBACL,OAAO;2BACH,OAAO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AG,IAAI;YAClC,iBAAiB,UAAU,KAAK,EAAE,GAAG,IAAI;YACzC,SAAS,GAAG,IAAI;YAChB,cAAc,SAAS,QAAQ,GAAG,IAAI;;;;;YA8ZA,OAAO,CAAC,OAAO,WAAW,CAAC;;AAtdvE,wBAsd4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -1,4 +1,4 @@
1
- import { defineComponent, useTemplateRef, ref, toRef, computed, watch, onMounted, nextTick, onBeforeUnmount, openBlock, createElementBlock, unref, Fragment, createElementVNode, normalizeClass, createBlock, createCommentVNode, resolveDynamicComponent, TransitionGroup, normalizeProps, mergeProps, withCtx, renderList, renderSlot, toDisplayString } from 'vue';
1
+ import { defineComponent, useTemplateRef, ref, toRef, computed, watch, onMounted, nextTick, onBeforeUnmount, createElementBlock, openBlock, unref, Fragment, createElementVNode, createBlock, createCommentVNode, normalizeClass, resolveDynamicComponent, TransitionGroup, normalizeProps, mergeProps, withCtx, renderList, renderSlot, toDisplayString } from 'vue';
2
2
  import _sfc_main$3 from '../../EmptyComponent/WEmptyComponent.vue.js';
3
3
  import { ApiError } from '../../../utils/api.js';
4
4
  import _sfc_main$1 from './InfiniteListPageSelection.vue.js';
@@ -8,7 +8,8 @@ const _hoisted_1 = {
8
8
  ref: "element",
9
9
  class: "relative"
10
10
  };
11
- const _hoisted_2 = { class: "py-1.25 sm-not:px-3 cursor-default select-none" };
11
+ const _hoisted_2 = { class: "mt-[--w-list-gap,1rem] flex" };
12
+ const _hoisted_3 = { class: "py-1.25 sm-not:px-3 cursor-default select-none" };
12
13
  const _sfc_main = /* @__PURE__ */ defineComponent({
13
14
  __name: "InfiniteListPage",
14
15
  props: {
@@ -19,7 +20,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
19
20
  lastPage: { type: Boolean },
20
21
  hidePageTitle: { type: Boolean },
21
22
  wrap: { type: Boolean },
22
- noGap: { type: Boolean },
23
23
  transition: { type: Boolean },
24
24
  resetting: { type: Boolean },
25
25
  emptyStub: { default: "Nothing to show" },
@@ -168,11 +168,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
168
168
  return (_ctx, _cache) => {
169
169
  return openBlock(), createElementBlock("div", _hoisted_1, [
170
170
  page.value && unref(data)?.results.length !== 0 ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
171
- createElementVNode("div", {
172
- class: normalizeClass(["flex", {
173
- "sm:pt-4": (_ctx.selected === void 0 || !_ctx.allowPageSelection) && _ctx.hidePageTitle && !_ctx.noGap
174
- }])
175
- }, [
171
+ createElementVNode("div", _hoisted_2, [
176
172
  _ctx.selected !== void 0 && _ctx.allowPageSelection ? (openBlock(), createBlock(_sfc_main$1, {
177
173
  key: 0,
178
174
  selected: _ctx.selected,
@@ -191,7 +187,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
191
187
  "query-params": _ctx.queryParams,
192
188
  class: "pb-4 pt-6"
193
189
  }, null, 8, ["query-params"])) : createCommentVNode("", true)
194
- ], 2),
190
+ ]),
195
191
  createElementVNode("div", {
196
192
  class: normalizeClass(_ctx.pageClass)
197
193
  }, [
@@ -259,7 +255,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
259
255
  "pb-2": _ctx.minHeight && !_ctx.lastChild
260
256
  }])
261
257
  }, [
262
- createElementVNode("div", _hoisted_2, toDisplayString(_ctx.emptyStub), 1)
258
+ createElementVNode("div", _hoisted_3, toDisplayString(_ctx.emptyStub), 1)
263
259
  ], 2))
264
260
  ], 512);
265
261
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent, computed, openBlock, createBlock, withCtx, createTextVNode, toDisplayString } from 'vue';
1
+ import { defineComponent, computed, createBlock, openBlock, withCtx, createTextVNode, toDisplayString } from 'vue';
2
2
  import _sfc_main$1 from '../../Checkbox/WCheckbox.vue.js';
3
3
 
4
4
  const _sfc_main = /* @__PURE__ */ defineComponent({
@@ -1,4 +1,4 @@
1
- import { defineComponent, resolveComponent, openBlock, createBlock, withCtx, createTextVNode, toDisplayString } from 'vue';
1
+ import { defineComponent, resolveComponent, createBlock, openBlock, withCtx, createTextVNode, toDisplayString } from 'vue';
2
2
  import { useRoute, useRouter } from 'vue-router';
3
3
  import { Notify } from '../../../utils/Notify.js';
4
4
 
@@ -14,7 +14,6 @@ declare const _default: <Model extends number | string, Data extends DefaultData
14
14
  skeletonLength?: number;
15
15
  hidePageTitle?: boolean;
16
16
  wrap?: boolean;
17
- noGap?: boolean;
18
17
  transition?: boolean;
19
18
  pageLength?: number;
20
19
  scrollingElement?: Element | null;
@@ -1 +1 @@
1
- {"version":3,"file":"InfiniteListPages.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/InfiniteList/components/InfiniteListPages.vue"],"names":[],"mappings":"AAmUA,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,aAAa,CAAA;yBAcxB,KAAK,SAAS,MAAM,GAAG,MAAM,EAAE,IAAI,SAAS,WAAW,EAAE,WAAW,eACvE,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;WAgnBxD,mBAAmB,CAAC;;;;;;;;;oBA5mBd,iBAAiB,CAAC,IAAI,EAAE,WAAW,CAAC;qBACnC,WAAW;yBACP,MAAM;wBACP,OAAO;eAChB,OAAO;gBACN,OAAO;qBACF,OAAO;qBACP,MAAM;2BACA,OAAO,GAAG,IAAI;oBACrB,MAAM;uBACH,MAAM;oBACT,OAAO;oBACP,OAAO;wBACH,CAAC,MAAM,WAAW,CAAC,EAAE;oBACzB,MAAM;oBACN,MAA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AAK,CAAA;SACb,KAAK,IAAI;;;YAjLN,aAAa,SAAS,MAAM,GAAG,SAAS,GAAG,IAAI;YAC/C,cAAc,SAAS,MAAM,GAAG,IAAI;YACpC,iBAAiB,UAAU,KAAK,EAAE,GAAG,IAAI;YACzC,cAAc,SAAS,QAAQ,GAAG,IAAI;;;;;YAkkBA,OAAO,CAAC,OAAO,WAAW,CAAC;;AA1nBvE,wBA0nB4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
1
+ {"version":3,"file":"InfiniteListPages.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/InfiniteList/components/InfiniteListPages.vue"],"names":[],"mappings":"AAiUA,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,aAAa,CAAA;yBAcxB,KAAK,SAAS,MAAM,GAAG,MAAM,EAAE,IAAI,SAAS,WAAW,EAAE,WAAW,eACvE,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WA+mBxD,mBAAmB,CAAC;;;;;;;;;oBA3mBd,iBAAiB,CAAC,IAAI,EAAE,WAAW,CAAC;qBACnC,WAAW;yBACP,MAAM;wBACP,OAAO;eAChB,OAAO;qBACD,OAAO;qBACP,MAAM;2BACA,OAAO,GAAG,IAAI;oBACrB,MAAM;uBACH,MAAM;oBACT,OAAO;oBACP,OAAO;wBACH,CAAC,MAAM,WAAW,CAAC,EAAE;oBACzB,MAAM;oBACN,MAAM;mBACP,MAAM;0BACC,MAAM,GAAG,KAAK;uBACjB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AAS,MAAM,GAAG,SAAS,GAAG,IAAI;YAC/C,cAAc,SAAS,MAAM,GAAG,IAAI;YACpC,iBAAiB,UAAU,KAAK,EAAE,GAAG,IAAI;YACzC,cAAc,SAAS,QAAQ,GAAG,IAAI;;;;;YAkkBA,OAAO,CAAC,OAAO,WAAW,CAAC;;AAznBvE,wBAynB4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -1,4 +1,4 @@
1
- import { defineComponent, useTemplateRef, ref, computed, watch, toRef, openBlock, createBlock, normalizeStyle, normalizeClass, withCtx, unref, createCommentVNode, createElementBlock, Fragment, renderList, nextTick, renderSlot } from 'vue';
1
+ import { defineComponent, useTemplateRef, ref, computed, watch, toRef, createBlock, openBlock, normalizeClass, normalizeStyle, withCtx, createCommentVNode, createElementBlock, unref, Fragment, renderList, nextTick, renderSlot } from 'vue';
2
2
  import { isEqualObj } from '../../../utils/utils.js';
3
3
  import _sfc_main$2 from './InfiniteListButton.vue.js';
4
4
  import _sfc_main$3 from './InfiniteListPage.vue.js';
@@ -14,7 +14,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
14
14
  skeletonLength: { default: void 0 },
15
15
  hidePageTitle: { type: Boolean },
16
16
  wrap: { type: Boolean },
17
- noGap: { type: Boolean },
18
17
  transition: { type: Boolean },
19
18
  pageLength: { default: 24 },
20
19
  scrollingElement: { default: null },
@@ -171,7 +170,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
171
170
  "last-page": index === pages.value.length - 1,
172
171
  "hide-page-title": _ctx.hidePageTitle,
173
172
  wrap: _ctx.wrap,
174
- "no-gap": _ctx.noGap,
175
173
  transition: _ctx.transition,
176
174
  resetting: isResettingPage.value,
177
175
  "empty-stub": _ctx.emptyStub,
@@ -219,7 +217,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
219
217
  })
220
218
  ]),
221
219
  _: 2
222
- }, 1032, ["query-params", "use-query-fn", "skeleton-length", "first-page", "last-page", "hide-page-title", "wrap", "no-gap", "transition", "resetting", "empty-stub", "min-height", "last-child", "page-class", "refetch-interval", "scrolling-element", "query-options", "selected", "value-getter", "select-only", "unselect-only", "reverse-selection", "allow-page-selection", "onRefetch"]);
220
+ }, 1032, ["query-params", "use-query-fn", "skeleton-length", "first-page", "last-page", "hide-page-title", "wrap", "transition", "resetting", "empty-stub", "min-height", "last-child", "page-class", "refetch-interval", "scrolling-element", "query-options", "selected", "value-getter", "select-only", "unselect-only", "reverse-selection", "allow-page-selection", "onRefetch"]);
223
221
  }), 128)),
224
222
  count.value !== 0 && nextPage.value ? (openBlock(), createBlock(_sfc_main$2, {
225
223
  key: 1,
@@ -1,4 +1,4 @@
1
- import { defineComponent, useTemplateRef, computed, watch, onMounted, onUnmounted, openBlock, createElementBlock, renderSlot } from 'vue';
1
+ import { defineComponent, useTemplateRef, computed, watch, onMounted, onUnmounted, createElementBlock, openBlock, renderSlot } from 'vue';
2
2
  import { getIsScrollUp, getIsScrollDown } from '../models/utils.js';
3
3
 
4
4
  const _hoisted_1 = { ref: "container" };
@@ -4,5 +4,6 @@ export declare const useInfiniteListHeader: (scrollingElement?: Element | null,
4
4
  headerHeight: import('vue').Ref<number, number>;
5
5
  headerTop: import('vue').Ref<number, number>;
6
6
  isIntersecting: import('vue').Ref<boolean, boolean>;
7
+ updateHeader: () => void;
7
8
  };
8
9
  //# sourceMappingURL=useInfiniteListHeader.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useInfiniteListHeader.d.ts","sourceRoot":"","sources":["../../../../src/components/InfiniteList/use/useInfiniteListHeader.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,qBAAqB,sBAAsB,OAAO,GAAG,IAAI;;;;;;CAgDrE,CAAA"}
1
+ {"version":3,"file":"useInfiniteListHeader.d.ts","sourceRoot":"","sources":["../../../../src/components/InfiniteList/use/useInfiniteListHeader.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,qBAAqB,sBAAsB,OAAO,GAAG,IAAI;;;;;;;CAsDrE,CAAA"}
@@ -8,9 +8,11 @@ import '../../Dropdown/utils/DropdownStyle.js';
8
8
  import 'vue-router';
9
9
  import '../../../utils/Modal.js';
10
10
  import '../../Input/WInputSuggest.vue.js';
11
+ import '../../HeaderBar/use/useHeaderPadding.js';
11
12
  import '../../Input/WInputDate.vue.js';
12
13
  import '../../Link/WLink.vue.js';
13
14
  import '@tanstack/vue-query';
15
+ import '../../List/use/useListConfig.js';
14
16
 
15
17
  const headerElementHeight = 60;
16
18
  const observerOptions = {
@@ -37,13 +39,15 @@ const useInfiniteListHeader = (scrollingElement = document.scrollingElement, ini
37
39
  }
38
40
  });
39
41
  };
42
+ const updateHeader = () => {
43
+ if (!header.value) return;
44
+ const rect = header.value.getBoundingClientRect();
45
+ headerHeight.value = rect.height;
46
+ headerTop.value = rect.top + (scrollingElement?.scrollTop ?? 0) - headerElementHeight;
47
+ };
40
48
  onMounted(() => {
41
49
  if (!isClientSide) return;
42
- if (header.value) {
43
- const rect = header.value.getBoundingClientRect();
44
- headerHeight.value = rect.height;
45
- headerTop.value = rect.top + (scrollingElement?.scrollTop ?? 0) - headerElementHeight;
46
- }
50
+ updateHeader();
47
51
  if (indicator.value) {
48
52
  observer = new IntersectionObserver(observerCb, observerOptions);
49
53
  observer.observe(indicator.value);
@@ -57,7 +61,8 @@ const useInfiniteListHeader = (scrollingElement = document.scrollingElement, ini
57
61
  header,
58
62
  headerHeight,
59
63
  headerTop,
60
- isIntersecting
64
+ isIntersecting,
65
+ updateHeader
61
66
  };
62
67
  };
63
68
 
@@ -1,4 +1,4 @@
1
- import { defineComponent, openBlock, createElementBlock, normalizeClass, createBlock, unref, createCommentVNode, createElementVNode, renderSlot } from 'vue';
1
+ import { defineComponent, createElementBlock, openBlock, normalizeClass, createBlock, createCommentVNode, createElementVNode, unref, renderSlot } from 'vue';
2
2
  import IconNegativeInfo from '../../assets/icons/sax/IconNegativeInfo.svg.js';
3
3
 
4
4
  const _hoisted_1 = { class: "text-pretty py-1" };