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
@@ -1,4 +1,4 @@
1
- import { defineComponent, openBlock, createElementBlock, createElementVNode, createVNode, unref, normalizeClass, createTextVNode, toDisplayString, renderSlot } from 'vue';
1
+ import { defineComponent, createElementBlock, openBlock, createElementVNode, createVNode, createTextVNode, unref, normalizeClass, toDisplayString, renderSlot } from 'vue';
2
2
  import IconDanger from '../../assets/icons/default/IconDanger.svg.js';
3
3
  import { SemanticType } from '../../utils/SemanticType.js';
4
4
 
@@ -1,4 +1,4 @@
1
- import { defineComponent, useTemplateRef, ref, onMounted, onBeforeUnmount, openBlock, createBlock, mergeProps, createSlots, withCtx, renderSlot, createElementVNode, createElementBlock, normalizeClass, toDisplayString, createCommentVNode, withModifiers, resolveDynamicComponent, withKeys, createVNode, nextTick } from 'vue';
1
+ import { defineComponent, useTemplateRef, ref, onMounted, onBeforeUnmount, createBlock, openBlock, mergeProps, createSlots, withCtx, renderSlot, createElementVNode, createElementBlock, createCommentVNode, normalizeClass, toDisplayString, withModifiers, createVNode, resolveDynamicComponent, withKeys, nextTick } from 'vue';
2
2
  import _sfc_main$1 from '../FieldWrapper/WFieldWrapper.vue.js';
3
3
  import { useTabActiveListener } from '../Tabs/use/useTabActiveListener.js';
4
4
  import { Notify } from '../../utils/Notify.js';
@@ -1,4 +1,4 @@
1
- import { defineComponent, ref, useTemplateRef, computed, watch, toRef, openBlock, createBlock, mergeProps, createSlots, withCtx, renderSlot, createElementBlock, Fragment, normalizeClass, withModifiers, unref, createCommentVNode, createElementVNode, createVNode, Transition, normalizeStyle, nextTick } from 'vue';
1
+ import { defineComponent, ref, useTemplateRef, computed, watch, toRef, createBlock, openBlock, mergeProps, createSlots, withCtx, renderSlot, createElementBlock, createCommentVNode, Fragment, withModifiers, normalizeClass, unref, createElementVNode, createVNode, Transition, normalizeStyle, nextTick } from 'vue';
2
2
  import _sfc_main$1 from './WInput.vue.js';
3
3
  import WSkeleton from '../Skeleton/WSkeleton.vue.js';
4
4
  import WSpinner from '../Spinner/WSpinner.vue.js';
@@ -1,4 +1,4 @@
1
- import { defineComponent, useTemplateRef, ref, watch, openBlock, createBlock, mergeProps, unref, createSlots, withCtx, createElementVNode, withModifiers, createVNode, renderSlot } from 'vue';
1
+ import { defineComponent, useTemplateRef, ref, watch, createBlock, openBlock, mergeProps, unref, createSlots, withCtx, createElementVNode, withModifiers, createVNode, renderSlot } from 'vue';
2
2
  import _sfc_main$2 from '../DatePicker/WDatePickerSingle.vue.js';
3
3
  import _sfc_main$1 from './WInputSuggest.vue.js';
4
4
  import { HorizontalAlign } from '../../utils/HorizontalAlign.js';
@@ -1,4 +1,4 @@
1
- import { defineComponent, ref, useTemplateRef, computed, watch, toRef, nextTick, openBlock, createBlock, mergeProps, withModifiers, createSlots, withCtx, createElementBlock, createElementVNode, toDisplayString, createCommentVNode, Fragment, renderList, renderSlot, resolveDynamicComponent } from 'vue';
1
+ import { defineComponent, ref, useTemplateRef, computed, watch, toRef, nextTick, createBlock, openBlock, mergeProps, withModifiers, createSlots, withCtx, createElementBlock, createCommentVNode, createElementVNode, toDisplayString, Fragment, renderList, renderSlot, resolveDynamicComponent } from 'vue';
2
2
  import _sfc_main$1 from './WInputSuggest.vue.js';
3
3
  import _sfc_main$2 from '../Select/components/SelectOption.vue.js';
4
4
  import { debounce } from '../../utils/utils.js';
@@ -1,4 +1,4 @@
1
- import { defineComponent, ref, useTemplateRef, computed, openBlock, createElementBlock, normalizeClass, createBlock, resolveDynamicComponent, unref, mergeProps, withCtx, createVNode, createSlots, renderSlot, createCommentVNode, createElementVNode, Fragment, renderList, createTextVNode, toDisplayString } from 'vue';
1
+ import { defineComponent, ref, useTemplateRef, computed, createElementBlock, openBlock, normalizeClass, createBlock, createCommentVNode, resolveDynamicComponent, unref, mergeProps, withCtx, createElementVNode, Fragment, renderList, createVNode, createSlots, renderSlot, createTextVNode, toDisplayString } from 'vue';
2
2
  import _sfc_main$1 from '../BottomSheet/WBottomSheet.vue.js';
3
3
  import _sfc_main$2 from '../DropdownMenu/WDropdownMenu.vue.js';
4
4
  import _sfc_main$3 from './WInput.vue.js';
@@ -1,4 +1,4 @@
1
- import { defineComponent, toRef, openBlock, createElementBlock, createBlock, markRaw, unref, createCommentVNode, createVNode, withCtx, renderSlot } from 'vue';
1
+ import { defineComponent, toRef, createElementBlock, createCommentVNode, openBlock, createBlock, markRaw, unref, createVNode, withCtx, renderSlot } from 'vue';
2
2
  import WSpinner from '../../Spinner/WSpinner.vue.js';
3
3
  import IconClose from '../../../assets/icons/sax/IconClose.svg.js';
4
4
  import IconEye from '../../../assets/icons/sax/IconEye.svg.js';
@@ -1,4 +1,4 @@
1
- import { defineComponent, openBlock, createElementBlock, normalizeClass, withModifiers, renderSlot, createBlock, resolveDynamicComponent, createCommentVNode } from 'vue';
1
+ import { defineComponent, createElementBlock, openBlock, withModifiers, normalizeClass, renderSlot, createBlock, createCommentVNode, resolveDynamicComponent } from 'vue';
2
2
  import _sfc_main$1 from '../../Tooltip/WTooltip.vue.js';
3
3
 
4
4
  const _hoisted_1 = ["disabled"];
@@ -5,7 +5,6 @@ interface Props extends Partial<LinkProps> {
5
5
  target?: '_self' | '_blank' | '_parent' | '_top';
6
6
  text?: string;
7
7
  semanticType?: SemanticType;
8
- small?: boolean;
9
8
  }
10
9
  declare function __VLS_template(): {
11
10
  slots: {
@@ -1 +1 @@
1
- {"version":3,"file":"WLink.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Link/WLink.vue"],"names":[],"mappings":"AAqDA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,eAAe,CAAA;AAO5C,OAAO,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAA;AAIjD,UAAU,KAAM,SAAQ,OAAO,CAAC,SAAS,CAAC;IACxC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,CAAA;IAChD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,YAAY,CAAC,EAAE,YAAY,CAAA;IAC3B,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB;AAyBD,iBAAS,cAAc;;yBAyEO,GAAG;;;WASnB,OAAO,IAA6B;EAEjD;AAaD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;UA9HZ,MAAM;;kBACE,YAAY;YAFlB,OAAO,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM;UADzC,MAAM;6EAuIb,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":"WLink.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Link/WLink.vue"],"names":[],"mappings":"AA4CA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,eAAe,CAAA;AAO5C,OAAO,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAA;AAIjD,UAAU,KAAM,SAAQ,OAAO,CAAC,SAAS,CAAC;IACxC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,CAAA;IAChD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,YAAY,CAAC,EAAE,YAAY,CAAA;CAC5B;AAyBD,iBAAS,cAAc;;yBAoDO,GAAG;;;WASnB,OAAO,IAA6B;EAEjD;AAaD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;UAxGZ,MAAM;;kBACE,YAAY;YAFlB,OAAO,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM;UADzC,MAAM;6EAiHb,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,4 +1,4 @@
1
- import { defineComponent, openBlock, createBlock, resolveDynamicComponent, unref, mergeProps, withCtx, createVNode, normalizeClass, renderSlot, createTextVNode, toDisplayString } from 'vue';
1
+ import { defineComponent, createBlock, openBlock, resolveDynamicComponent, unref, mergeProps, withCtx, createVNode, renderSlot, normalizeClass, createTextVNode, toDisplayString } from 'vue';
2
2
  import { RouterLink } from 'vue-router';
3
3
  import IconLink from '../../assets/icons/sax/IconLink.svg.js';
4
4
  import { semanticTypeTextStylesMap, semanticTypeChipsStylesMap } from '../Button/models/semanticTypeStylesMap.js';
@@ -11,25 +11,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
11
11
  target: { default: void 0 },
12
12
  text: { default: void 0 },
13
13
  semanticType: { default: SemanticType.PRIMARY },
14
- small: { type: Boolean },
15
14
  to: { default: void 0 }
16
15
  },
17
16
  setup(__props) {
18
17
  return (_ctx, _cache) => {
19
18
  return openBlock(), createBlock(resolveDynamicComponent(_ctx.to ? unref(RouterLink) : "a"), mergeProps(!_ctx.to ? { target: _ctx.target, href: _ctx.href } : { to: _ctx.to }, {
20
- class: ["cursor-pointer overflow-hidden truncate whitespace-normal font-normal no-underline hover:underline", {
21
- "text-base": !_ctx.small,
22
- "text-xs": _ctx.small,
23
- [unref(semanticTypeTextStylesMap)[_ctx.semanticType]]: true
24
- }]
19
+ class: ["cursor-pointer overflow-hidden truncate whitespace-normal font-normal no-underline hover:underline", unref(semanticTypeTextStylesMap)[_ctx.semanticType]]
25
20
  }), {
26
21
  default: withCtx(() => [
27
22
  createVNode(unref(IconLink), {
28
- class: normalizeClass(["inline rounded-lg p-px", {
29
- "square-5 -mt-1 mr-1": !_ctx.small,
30
- "square-3.5 -mt-0.5 mr-0.5": _ctx.small,
31
- [unref(semanticTypeChipsStylesMap)[_ctx.semanticType]]: true
32
- }])
23
+ class: normalizeClass(["square-[1.25em] mr-[0.25em] mt-[-0.25em] inline rounded-[0.5em] p-px", unref(semanticTypeChipsStylesMap)[_ctx.semanticType]])
33
24
  }, null, 8, ["class"]),
34
25
  renderSlot(_ctx.$slots, "default", {}, () => [
35
26
  createTextVNode(toDisplayString(_ctx.text), 1)
@@ -1,4 +1,4 @@
1
- import { defineComponent, openBlock, createBlock, unref, withCtx, renderSlot, createTextVNode, toDisplayString, createVNode } from 'vue';
1
+ import { defineComponent, createBlock, openBlock, unref, withCtx, renderSlot, createVNode, createTextVNode, toDisplayString } from 'vue';
2
2
  import { RouterLink } from 'vue-router';
3
3
  import IconBack from '../../assets/icons/default/IconBack.svg.js';
4
4
 
@@ -1,13 +1,13 @@
1
- import { BulkComponent, FieldComponent, FieldConfigMap, ListFields, MenuComponent } from './types';
1
+ import { BulkComponent, CardAreas, FieldComponent, FieldConfigMap, GridCol, ListFields, MenuComponent } from './types';
2
+ import { LinkProps } from '../../types/types';
2
3
  import { ApiError } from '../../utils/api';
3
- declare const _default: <Data extends DefaultData, QueryParams, Fields extends ListFields<Data, QueryParams>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
+ declare const _default: <Data extends DefaultData, QueryParams, Fields extends ListFields<Data, QueryParams>, CardColumns extends readonly GridCol[]>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
5
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
5
- readonly "onUpdate:header-padding"?: ((value: number) => any) | undefined;
6
6
  readonly "onUpdate:error"?: ((value: ApiError<{}, {
7
7
  detail?: string | undefined;
8
8
  non_field_errors?: string[] | undefined;
9
9
  }>) => any) | undefined;
10
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:header-padding" | "onUpdate:error"> & {
10
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:error"> & {
11
11
  count?: number;
12
12
  fields: Fields;
13
13
  expansion?: FieldComponent<Data>;
@@ -21,10 +21,8 @@ declare const _default: <Data extends DefaultData, QueryParams, Fields extends L
21
21
  menu: MenuComponent<Data>[];
22
22
  readonlyGetter?: (item: Data) => boolean;
23
23
  cardClass?: string;
24
- cardWrapperClass?: string;
25
24
  selectAllTextGetter: (isUnselect: boolean, count: number) => string;
26
25
  hasBorder?: boolean;
27
- moreBottom?: boolean;
28
26
  configKey: string;
29
27
  defaultConfigMap: FieldConfigMap<Fields>;
30
28
  alignTop?: boolean;
@@ -33,6 +31,10 @@ declare const _default: <Data extends DefaultData, QueryParams, Fields extends L
33
31
  noOrdering?: boolean;
34
32
  formNameGetter?: (data: Data) => string | undefined;
35
33
  groupBy?: (a: Data, b: Data) => boolean;
34
+ hideMore?: boolean;
35
+ cardColumns: CardColumns;
36
+ cardAreas: CardAreas<Fields, CardColumns["length"]>;
37
+ cardTo?: (item: Data) => LinkProps["to"];
36
38
  }> & import('vue').PublicProps;
37
39
  expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
38
40
  attrs: any;
@@ -46,10 +48,7 @@ declare const _default: <Data extends DefaultData, QueryParams, Fields extends L
46
48
  skeleton: boolean;
47
49
  }): any;
48
50
  };
49
- emit: {
50
- (e: "update:header-padding", value: number): void;
51
- (e: "update:error", value: ApiError): void;
52
- };
51
+ emit: (e: "update:error", value: ApiError) => void;
53
52
  }>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
54
53
  [key: string]: any;
55
54
  }> & {
@@ -1 +1 @@
1
- {"version":3,"file":"WList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/List/WList.vue"],"names":[],"mappings":"AA8UA,OAAO,KAAK,EAAC,aAAa,EAAE,cAAc,EAAE,cAAc,EAAE,UAAU,EAAE,aAAa,EAAC,MAAM,SAAS,CAAA;AACrG,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,aAAa,CAAA;yBAqBxB,IAAI,SAAS,WAAW,EAAE,WAAW,EAAE,MAAM,SAAS,UAAU,CAAC,IAAI,EAAE,WAAW,CAAC,eACtF,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;WA8pBxD,mBAAmB,CAAC;;;;;;;gBAxpBpB,MAAM;gBACN,MAAM;oBACF,cAAc,CAAC,IAAI,CAAC;oBACpB,iBAAiB,CAAC,IAAI,EAAE,WAAW,CAAC;qBACnC,WAAW;uBACT,OAAO,CAAC,YAAY,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,CAAC;6BACxC,MAAM;wBACX,MAAM;eACf,aAAa,CAAC,WAAW,CAAC,EAAE;mBACxB,aAAa,CAAC,WAAW,CAAC,EAAE;cACjC,aAAa,CAAC,IAAI,CAAC,EAAE;yBACV,CAAC,IAAI,EAAE,IAAI,KAAK,OAAO;oBAC5B,MAAM;2BACC,MAAM;6BACJ,CAAC,UAAU,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM;oBACvD,OAAO;qBACN,OAAO;mBACT,MAAM;0BACC,cAAc,CAAC,MAAM,CAAC;mBAC7B,OAAO;sBACJ,OAAO;mBACV,OAAO;qBACL,OAAO;yBACH,CAAC,IAAI,EAAE,IAAI,KAAK,MAAM,GAAG,SAAS;kBACzC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,KAAK,OAAO;KAgoB8C,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;;;YAxDgB,GAAG;;;;;YACJ,GAAG;;;YAtkBzB,uBAAuB,SAAS,MAAM,GAAG,IAAI;YAC7C,cAAc,SAAS,QAAQ,GAAG,IAAI;;;;;YAioBA,OAAO,CAAC,OAAO,WAAW,CAAC;;AAxqBvE,wBAwqB4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
1
+ {"version":3,"file":"WList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/List/WList.vue"],"names":[],"mappings":"AAiXA,OAAO,KAAK,EAAC,aAAa,EAAE,SAAS,EAAE,cAAc,EAAE,cAAc,EAAE,OAAO,EAAE,UAAU,EAAE,aAAa,EAAC,MAAM,SAAS,CAAA;AACzH,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,eAAe,CAAA;AAC5C,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,aAAa,CAAA;yBAsBxB,IAAI,SAAS,WAAW,EAAE,WAAW,EAAE,MAAM,SAAS,UAAU,CAAC,IAAI,EAAE,WAAW,CAAC,EAAE,WAAW,SAAS,SAAS,OAAO,EAAE,eAC9H,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;WAisBxD,mBAAmB,CAAC;;;;;;gBA3rBpB,MAAM;gBACN,MAAM;oBACF,cAAc,CAAC,IAAI,CAAC;oBACpB,iBAAiB,CAAC,IAAI,EAAE,WAAW,CAAC;qBACnC,WAAW;uBACT,OAAO,CAAC,YAAY,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,CAAC;6BACxC,MAAM;wBACX,MAAM;eACf,aAAa,CAAC,WAAW,CAAC,EAAE;mBACxB,aAAa,CAAC,WAAW,CAAC,EAAE;cACjC,aAAa,CAAC,IAAI,CAAC,EAAE;yBACV,CAAC,IAAI,EAAE,IAAI,KAAK,OAAO;oBAC5B,MAAM;6BACG,CAAC,UAAU,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM;oBACvD,OAAO;mBACR,MAAM;0BACC,cAAc,CAAC,MAAM,CAAC;mBAC7B,OAAO;sBACJ,OAAO;mBACV,OAAO;qBACL,OAAO;yBACH,CAAC,IAAI,EAAE,IAAI,KAAK,MAAM,GAAG,SAAS;kBACzC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,KAAK,OAAO;mBAC5B,OAAO;qBACL,WAAW;mBACb,SAAS,CAAC,MAAM,EAAE,WAAW,CAAC,QAAQ,CAAC,CAAC;iBAC1C,CAAC,IAAI,EAAE,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC;KAiqB6C,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;;;YA7DgB,GAAG;;;;;YACJ,GAAG;;cAlmBzB,cAAc,SAAS,QAAQ,KAAG,IAAI;;;;YAmqBA,OAAO,CAAC,OAAO,WAAW,CAAC;;AA3sBvE,wBA2sB4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -1,18 +1,32 @@
1
- import { defineComponent, ref, computed, toRef, openBlock, createBlock, unref, withCtx, renderSlot, createSlots, createElementBlock, Fragment, renderList, resolveDynamicComponent, normalizeClass, createCommentVNode, createVNode, isRef, normalizeStyle } from 'vue';
2
- import _sfc_main$2 from '../Button/WButtonSelection.vue.js';
1
+ import { defineComponent, ref, computed, toRef, createBlock, openBlock, unref, normalizeClass, normalizeStyle, withCtx, renderSlot, createCommentVNode, createVNode, createSlots, createElementBlock, Fragment, renderList, resolveDynamicComponent, createElementVNode, isRef } from 'vue';
2
+ import _sfc_main$4 from '../Button/WButtonSelection.vue.js';
3
3
  import _sfc_main$1 from '../InfiniteList/WInfiniteList.vue.js';
4
+ import '../Button/WButtonAction.vue.js';
5
+ import '../Button/WButton.vue.js';
4
6
  import { getIsMobile } from '../../utils/mobile.js';
7
+ import '../Button/WButtonDropdown.vue.js';
8
+ import '../../utils/supportsPassive.js';
9
+ import '../Dropdown/utils/DropdownStyle.js';
10
+ import 'vue-router';
11
+ import '../../utils/Modal.js';
12
+ import '../Input/WInputSuggest.vue.js';
13
+ import '../HeaderBar/use/useHeaderPadding.js';
14
+ import '../Input/WInputDate.vue.js';
15
+ import '../Link/WLink.vue.js';
5
16
  import { parseOrdering } from '../../utils/order.js';
6
17
  import { PAGE_LENGTH } from '../../utils/useDefaultQuery.js';
7
18
  import { useSelected, getPosition } from '../../utils/useSelected.js';
8
- import _sfc_main$7 from './WListCard.vue.js';
9
- import _sfc_main$3 from './WListHeader.vue.js';
10
- import _sfc_main$5 from './WListHeaderItem.vue.js';
11
- import _sfc_main$4 from './components/HeaderFieldNested.vue.js';
19
+ import _sfc_main$2 from './WListCard.vue.js';
20
+ import _sfc_main$7 from './WListHeader.vue.js';
21
+ import _sfc_main$9 from './WListHeaderItem.vue.js';
22
+ import _sfc_main$8 from './components/HeaderFieldNested.vue.js';
12
23
  import _sfc_main$6 from './components/HeaderSettings.vue.js';
13
- import _sfc_main$8 from './components/ListCardFieldNested.vue.js';
14
- import { filterFields, useFieldConfigMap, getFirstFieldLabel } from './use/useFieldConfigMap.js';
24
+ import _sfc_main$5 from './components/HeaderSort.vue.js';
25
+ import _sfc_main$3 from './components/ListCardFieldNested.vue.js';
26
+ import { filterFields, useListConfig, getFirstFieldLabel } from './use/useListConfig.js';
27
+ import '@tanstack/vue-query';
15
28
 
29
+ const _hoisted_1 = { class: "flex" };
16
30
  const _sfc_main = /* @__PURE__ */ defineComponent({
17
31
  __name: "WList",
18
32
  props: {
@@ -29,10 +43,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
29
43
  menu: {},
30
44
  readonlyGetter: { type: Function },
31
45
  cardClass: {},
32
- cardWrapperClass: {},
33
46
  selectAllTextGetter: { type: Function },
34
47
  hasBorder: { type: Boolean },
35
- moreBottom: { type: Boolean },
36
48
  configKey: {},
37
49
  defaultConfigMap: {},
38
50
  alignTop: { type: Boolean },
@@ -40,16 +52,26 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
40
52
  readonly: { type: Boolean },
41
53
  noOrdering: { type: Boolean },
42
54
  formNameGetter: { type: Function },
43
- groupBy: { type: Function }
55
+ groupBy: { type: Function },
56
+ hideMore: { type: Boolean },
57
+ cardColumns: {},
58
+ cardAreas: {},
59
+ cardTo: { type: Function }
44
60
  },
45
- emits: ["update:header-padding", "update:error"],
61
+ emits: ["update:error"],
46
62
  setup(__props) {
47
63
  const isMobile = getIsMobile();
48
64
  const props = __props;
49
65
  const listCount = ref(void 0);
50
66
  const selectionCount = ref(0);
67
+ const cardStyles = computed(() => {
68
+ return {
69
+ "--w-list-grid-cols": props.cardColumns.join(" "),
70
+ "--w-list-grid-areas": props.cardAreas.map((inner) => `"${inner.join(" ")}"`).join("\n")
71
+ };
72
+ });
51
73
  const fieldsVisible = computed(() => filterFields(props.fields, (field) => field.visibleGetter?.(props.queryParams) ?? true));
52
- const { fieldConfigMap, hasSaved, reset } = useFieldConfigMap(toRef(props, "configKey"), fieldsVisible, toRef(props, "defaultConfigMap"));
74
+ const { listConfig, fieldConfigMap, isGrid, hasSaved, reset, save, updateMode } = useListConfig(toRef(props, "configKey"), fieldsVisible, toRef(props, "defaultConfigMap"));
53
75
  const fieldsFiltered = computed(() => {
54
76
  return filterFields(fieldsVisible.value, (field) => fieldConfigMap.value[field.label]?.visible).sort((a, b) => fieldConfigMap.value[getFirstFieldLabel(a)].order - fieldConfigMap.value[getFirstFieldLabel(b)].order);
55
77
  });
@@ -96,7 +118,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
96
118
  return props.queryParams;
97
119
  };
98
120
  const getFieldStyles = (label) => {
99
- if (isMobile || !fieldConfigMap.value[label]?.width) return void 0;
121
+ if (isGrid.value) return {
122
+ gridArea: label
123
+ };
124
+ if (!fieldConfigMap.value[label]?.width) return void 0;
100
125
  const value = fieldConfigMap.value[label].width + "px";
101
126
  return {
102
127
  minWidth: value,
@@ -109,7 +134,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
109
134
  "query-params": _ctx.queryParams,
110
135
  "query-options": _ctx.queryOptions,
111
136
  "skeleton-length": _ctx.count ?? listCount.value ?? unref(PAGE_LENGTH),
112
- "header-margin": unref(isMobile) ? 0 : 24,
113
137
  "hide-page-title": "",
114
138
  "allow-select": allowSelect.value,
115
139
  "allow-select-range": "",
@@ -118,21 +142,25 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
118
142
  "selected-range": unref(selectedRange),
119
143
  "page-length": unref(PAGE_LENGTH),
120
144
  count: _ctx.count ?? listCount.value,
145
+ "page-class": unref(isGrid) ? "grid grid-cols-[repeat(auto-fill,minmax(var(--w-list-card-width,16rem),1fr))] gap-[--w-list-gap,1rem]" : "grid grid-cols-1 gap-[--w-list-gap,1rem]",
146
+ style: normalizeStyle(cardStyles.value),
147
+ class: normalizeClass({
148
+ "w-card": unref(isGrid),
149
+ "w-list": !unref(isGrid)
150
+ }),
121
151
  onSelect: unref(setSelected),
122
152
  onSelectReverse: unref(setSelectedReverse),
123
153
  onSelectRange: unref(setSelectedRange),
124
- "onUpdate:headerPadding": _cache[6] || (_cache[6] = ($event) => _ctx.$emit("update:header-padding", $event)),
125
- "onUpdate:count": _cache[7] || (_cache[7] = ($event) => listCount.value = $event),
126
- "onUpdate:error": _cache[8] || (_cache[8] = ($event) => _ctx.$emit("update:error", $event))
154
+ "onUpdate:count": _cache[5] || (_cache[5] = ($event) => listCount.value = $event),
155
+ "onUpdate:error": _cache[6] || (_cache[6] = ($event) => _ctx.$emit("update:error", $event))
127
156
  }, {
128
157
  header: withCtx(({ selectAllValue }) => [
129
158
  renderSlot(_ctx.$slots, "header", { count: listCount.value }),
130
- allowSelect.value ? (openBlock(), createBlock(_sfc_main$2, {
131
- key: 0,
159
+ createVNode(_sfc_main$4, {
132
160
  title: _ctx.selectionTitle,
133
161
  "disable-message": _ctx.bulkDisableMessage,
134
- class: "z-[1]",
135
- "onUpdate:selectionCount": _cache[2] || (_cache[2] = ($event) => selectionCount.value = $event)
162
+ class: "z-[2]",
163
+ "onUpdate:selectionCount": _cache[3] || (_cache[3] = ($event) => selectionCount.value = $event)
136
164
  }, createSlots({
137
165
  default: withCtx(({ disableMessage, cssClass }) => [
138
166
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.bulk, (item, index) => {
@@ -146,6 +174,27 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
146
174
  }, null, 40, ["selection-count", "disable-message", "class"]);
147
175
  }), 128))
148
176
  ]),
177
+ settings: withCtx(() => [
178
+ createElementVNode("div", _hoisted_1, [
179
+ !_ctx.noOrdering ? (openBlock(), createBlock(_sfc_main$5, {
180
+ key: 0,
181
+ ordering: ordering.value,
182
+ fields: fieldsFiltered.value,
183
+ "query-params": _ctx.queryParams,
184
+ class: "border-r border-solid border-gray-300 dark:border-gray-700"
185
+ }, null, 8, ["ordering", "fields", "query-params"])) : createCommentVNode("", true),
186
+ createVNode(_sfc_main$6, {
187
+ "field-config-map": unref(fieldConfigMap),
188
+ "onUpdate:fieldConfigMap": _cache[2] || (_cache[2] = ($event) => isRef(fieldConfigMap) ? fieldConfigMap.value = $event : null),
189
+ mode: unref(listConfig).mode,
190
+ fields: fieldsVisible.value,
191
+ "query-params": _ctx.queryParams,
192
+ "has-saved": unref(hasSaved),
193
+ "onClick:reset": unref(reset),
194
+ "onUpdate:mode": unref(updateMode)
195
+ }, null, 8, ["field-config-map", "mode", "fields", "query-params", "has-saved", "onClick:reset", "onUpdate:mode"])
196
+ ])
197
+ ]),
149
198
  _: 2
150
199
  }, [
151
200
  _ctx.bulkMore ? {
@@ -164,21 +213,21 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
164
213
  ]),
165
214
  key: "0"
166
215
  } : void 0
167
- ]), 1032, ["title", "disable-message"])) : createCommentVNode("", true),
168
- !unref(isMobile) ? (openBlock(), createBlock(_sfc_main$3, {
169
- key: 1,
170
- class: "sm-not:hidden",
216
+ ]), 1032, ["title", "disable-message"]),
217
+ !unref(isGrid) ? (openBlock(), createBlock(_sfc_main$7, {
218
+ key: 0,
219
+ class: "sm-not:hidden mb-4",
171
220
  "query-params": _ctx.queryParams,
172
221
  "allow-select": allowSelect.value,
173
222
  "tooltip-text": _ctx.selectAllTextGetter(selectAllValue !== true, _ctx.count ?? listCount.value ?? 0),
174
223
  count: _ctx.count ?? listCount.value,
175
224
  selection: selectAllValue,
176
- "onToggle:selection": _cache[5] || (_cache[5] = ($event) => $event ? unref(setSelectedReverse)([]) : unref(setSelected)([]))
225
+ "onToggle:selection": _cache[4] || (_cache[4] = ($event) => $event ? unref(setSelectedReverse)([]) : unref(setSelected)([]))
177
226
  }, {
178
227
  default: withCtx(() => [
179
- createVNode(_sfc_main$4, { fields: fieldsFiltered.value }, {
228
+ createVNode(_sfc_main$8, { fields: fieldsFiltered.value }, {
180
229
  default: withCtx(({ field }) => [
181
- createVNode(_sfc_main$5, {
230
+ createVNode(_sfc_main$9, {
182
231
  title: typeof field.title === "string" ? field.title : field.title(_ctx.queryParams),
183
232
  field: typeof field.field === "string" ? field.field : field.field?.(_ctx.queryParams),
184
233
  class: normalizeClass(field.cssClass),
@@ -188,22 +237,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
188
237
  "item-class": field.cssClassHeader,
189
238
  "width-style": getFieldStyles(field.label),
190
239
  "onUpdate:width": ($event) => unref(fieldConfigMap)[field.label].width = $event,
191
- "onSave:width": _cache[3] || (_cache[3] = ($event) => fieldConfigMap.value = unref(fieldConfigMap))
192
- }, null, 8, ["title", "field", "class", "ordering", "disabled", "allow-resize", "item-class", "width-style", "onUpdate:width"])
240
+ "onSave:width": unref(save)
241
+ }, null, 8, ["title", "field", "class", "ordering", "disabled", "allow-resize", "item-class", "width-style", "onUpdate:width", "onSave:width"])
193
242
  ]),
194
243
  _: 1
195
244
  }, 8, ["fields"])
196
245
  ]),
197
- settings: withCtx(() => [
198
- createVNode(_sfc_main$6, {
199
- "field-config-map": unref(fieldConfigMap),
200
- "onUpdate:fieldConfigMap": _cache[4] || (_cache[4] = ($event) => isRef(fieldConfigMap) ? fieldConfigMap.value = $event : null),
201
- fields: fieldsVisible.value,
202
- "query-params": _ctx.queryParams,
203
- "has-saved": unref(hasSaved),
204
- "onClick:reset": unref(reset)
205
- }, null, 8, ["field-config-map", "fields", "query-params", "has-saved", "onClick:reset"])
206
- ]),
207
246
  _: 2
208
247
  }, 1032, ["query-params", "allow-select", "tooltip-text", "count", "selection"])) : createCommentVNode("", true)
209
248
  ]),
@@ -214,35 +253,37 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
214
253
  previous,
215
254
  skeleton
216
255
  }) : createCommentVNode("", true),
217
- createVNode(_sfc_main$7, {
256
+ createVNode(_sfc_main$2, {
218
257
  disabled: skeleton,
219
258
  "disable-more": _ctx.disableMore,
220
259
  mobile: unref(isMobile),
221
260
  "card-class": _ctx.cardClass,
222
- "card-wrapper-class": _ctx.cardWrapperClass,
223
261
  "has-border": _ctx.hasBorder,
224
- "more-bottom": _ctx.moreBottom,
225
262
  "allow-open": allowOpen.value && !skeleton,
226
263
  "align-top": _ctx.alignTop,
227
- "form-name": !skeleton ? _ctx.formNameGetter?.(item) : void 0
264
+ "hide-more": _ctx.hideMore,
265
+ "form-name": !skeleton ? _ctx.formNameGetter?.(item) : void 0,
266
+ card: unref(isGrid),
267
+ to: _ctx.cardTo?.(item)
228
268
  }, createSlots({
229
269
  default: withCtx(({ validate }) => [
230
- createVNode(_sfc_main$8, {
270
+ createVNode(_sfc_main$3, {
231
271
  fields: fieldsFiltered.value,
232
272
  item,
233
273
  skeleton,
234
- mobile: unref(isMobile)
274
+ card: unref(isGrid)
235
275
  }, {
236
276
  default: withCtx((defaultScope) => [
237
277
  (openBlock(), createBlock(resolveDynamicComponent(defaultScope.field.component), {
238
278
  item: defaultScope.item,
239
279
  readonly: _ctx.readonly || (_ctx.readonlyGetter?.(defaultScope.item) ?? false),
240
280
  skeleton,
241
- mobile: unref(isMobile),
281
+ card: unref(isGrid),
242
282
  class: normalizeClass({
243
283
  [defaultScope.field.cssClass ?? ""]: true,
244
284
  "items-center": !_ctx.alignTop,
245
- "items-start": _ctx.alignTop
285
+ "items-start": _ctx.alignTop,
286
+ "pr-6": !unref(isGrid)
246
287
  }),
247
288
  style: normalizeStyle(getFieldStyles(defaultScope.field.label)),
248
289
  "onUpdate:item": setter,
@@ -251,10 +292,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
251
292
  refetch();
252
293
  },
253
294
  onValidate: ($event) => validate()
254
- }, null, 40, ["item", "readonly", "skeleton", "mobile", "class", "style", "onUpdate:item", "onDelete:item", "onValidate"]))
295
+ }, null, 40, ["item", "readonly", "skeleton", "card", "class", "style", "onUpdate:item", "onDelete:item", "onValidate"]))
255
296
  ]),
256
297
  _: 2
257
- }, 1032, ["fields", "item", "skeleton", "mobile"])
298
+ }, 1032, ["fields", "item", "skeleton", "card"])
258
299
  ]),
259
300
  more: withCtx(() => [
260
301
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.menu, (menuItem, menuIndex) => {
@@ -284,20 +325,20 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
284
325
  item,
285
326
  readonly: _ctx.readonly || (_ctx.readonlyGetter?.(item) ?? false),
286
327
  skeleton,
287
- mobile: unref(isMobile),
328
+ card: unref(isGrid),
288
329
  "onUpdate:item": setter,
289
330
  "onDelete:item": ($event) => {
290
331
  setter();
291
332
  refetch();
292
333
  }
293
- }, null, 40, ["item", "readonly", "skeleton", "mobile", "onUpdate:item", "onDelete:item"]))
334
+ }, null, 40, ["item", "readonly", "skeleton", "card", "onUpdate:item", "onDelete:item"]))
294
335
  ]),
295
336
  key: "0"
296
337
  } : void 0
297
- ]), 1032, ["disabled", "disable-more", "mobile", "card-class", "card-wrapper-class", "has-border", "more-bottom", "allow-open", "align-top", "form-name"])
338
+ ]), 1032, ["disabled", "disable-more", "mobile", "card-class", "has-border", "allow-open", "align-top", "hide-more", "form-name", "card", "to"])
298
339
  ]),
299
340
  _: 3
300
- }, 8, ["use-query-fn", "query-params", "query-options", "skeleton-length", "header-margin", "allow-select", "selected", "reverse", "selected-range", "page-length", "count", "onSelect", "onSelectReverse", "onSelectRange"]);
341
+ }, 8, ["use-query-fn", "query-params", "query-options", "skeleton-length", "allow-select", "selected", "reverse", "selected-range", "page-length", "count", "page-class", "style", "class", "onSelect", "onSelectReverse", "onSelectRange"]);
301
342
  };
302
343
  }
303
344
  });
@@ -1,3 +1,4 @@
1
+ import { LinkProps } from '../../types/types';
1
2
  declare function __VLS_template(): {
2
3
  slots: {
3
4
  default?(_: {
@@ -6,6 +7,7 @@ declare function __VLS_template(): {
6
7
  validate: (silent?: boolean, path?: import('../Form/models/utils').ValidatePath) => string | undefined;
7
8
  }): any;
8
9
  more?(_: {}): any;
10
+ more?(_: {}): any;
9
11
  expansion?(_: {}): any;
10
12
  };
11
13
  refs: {
@@ -15,34 +17,34 @@ declare function __VLS_template(): {
15
17
  };
16
18
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
17
19
  declare const __VLS_component: import('vue').DefineComponent<{
18
- disabled?: boolean;
19
- hideMore?: boolean;
20
- mobile?: boolean;
21
- moreBottom?: boolean;
22
- alignTop?: boolean;
23
- hasBorder?: boolean;
24
- cardClass?: string;
25
- cardWrapperClass?: string;
26
- allowOpen?: boolean;
27
- disableMore?: boolean;
28
- formName?: string;
20
+ disabled: boolean | undefined;
21
+ hideMore: boolean | undefined;
22
+ mobile: boolean | undefined;
23
+ alignTop: boolean | undefined;
24
+ hasBorder: boolean | undefined;
25
+ cardClass: string | undefined;
26
+ allowOpen: boolean | undefined;
27
+ disableMore: boolean | undefined;
28
+ formName: string | undefined;
29
+ card: boolean | undefined;
30
+ to: LinkProps["to"] | undefined;
29
31
  }, {
30
32
  updateSelected: ((value: boolean) => void) | undefined;
31
33
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
32
34
  "update:selected": (value: boolean) => any;
33
35
  "update:selected-hover": (value: boolean) => any;
34
36
  }, string, import('vue').PublicProps, Readonly<{
35
- disabled?: boolean;
36
- hideMore?: boolean;
37
- mobile?: boolean;
38
- moreBottom?: boolean;
39
- alignTop?: boolean;
40
- hasBorder?: boolean;
41
- cardClass?: string;
42
- cardWrapperClass?: string;
43
- allowOpen?: boolean;
44
- disableMore?: boolean;
45
- formName?: string;
37
+ disabled: boolean | undefined;
38
+ hideMore: boolean | undefined;
39
+ mobile: boolean | undefined;
40
+ alignTop: boolean | undefined;
41
+ hasBorder: boolean | undefined;
42
+ cardClass: string | undefined;
43
+ allowOpen: boolean | undefined;
44
+ disableMore: boolean | undefined;
45
+ formName: string | undefined;
46
+ card: boolean | undefined;
47
+ to: LinkProps["to"] | undefined;
46
48
  }> & Readonly<{
47
49
  "onUpdate:selected"?: ((value: boolean) => any) | undefined;
48
50
  "onUpdate:selected-hover"?: ((value: boolean) => any) | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"WListCard.vue.d.ts","sourceRoot":"","sources":["../../../src/components/List/WListCard.vue"],"names":[],"mappings":"AA4SA,iBAAS,cAAc;;;;;;YAkVO,GAAG;sBACN,GAAG;2BACE,GAAG;;;;;WAUrB,OAAO,IAA6B;EAEjD;AA8BD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;eAtcR,OAAO;eACP,OAAO;aACT,OAAO;iBACH,OAAO;eACT,OAAO;gBACN,OAAO;gBACP,MAAM;uBACC,MAAM;gBACb,OAAO;kBACL,OAAO;eACV,MAAM;;;;;;;eAVN,OAAO;eACP,OAAO;aACT,OAAO;iBACH,OAAO;eACT,OAAO;gBACN,OAAO;gBACP,MAAM;uBACC,MAAM;gBACb,OAAO;kBACL,OAAO;eACV,MAAM;;;;kFAucjB,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
+ {"version":3,"file":"WListCard.vue.d.ts","sourceRoot":"","sources":["../../../src/components/List/WListCard.vue"],"names":[],"mappings":"AA0PA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,eAAe,CAAA;AA2F5C,iBAAS,cAAc;;;;;;YAscO,GAAG;sBACN,GAAG;sBACH,GAAG;2BACE,GAAG;;;;;WAUrB,OAAO,IAA6B;EAEjD;AAiCD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;cA9jBT,OAAO,GAAG,SAAS;cACnB,OAAO,GAAG,SAAS;YACrB,OAAO,GAAG,SAAS;cACjB,OAAO,GAAG,SAAS;eAClB,OAAO,GAAG,SAAS;eACnB,MAAM,GAAG,SAAS;eAClB,OAAO,GAAG,SAAS;iBACjB,OAAO,GAAG,SAAS;cACtB,MAAM,GAAG,SAAS;UACtB,OAAO,GAAG,SAAS;QACrB,SAAS,CAAC,IAAI,CAAC,GAAG,SAAS;;;;;;;cAVrB,OAAO,GAAG,SAAS;cACnB,OAAO,GAAG,SAAS;YACrB,OAAO,GAAG,SAAS;cACjB,OAAO,GAAG,SAAS;eAClB,OAAO,GAAG,SAAS;eACnB,MAAM,GAAG,SAAS;eAClB,OAAO,GAAG,SAAS;iBACjB,OAAO,GAAG,SAAS;cACtB,MAAM,GAAG,SAAS;UACtB,OAAO,GAAG,SAAS;QACrB,SAAS,CAAC,IAAI,CAAC,GAAG,SAAS;;;;kFA+jB/B,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"}