@wisemen/wise-invoicing-web 0.1.1 → 0.3.0

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 (253) hide show
  1. package/dist/ApprovalReminderSettingsViewDataProvider-DwtfyQpx.js +151 -0
  2. package/dist/{BillingDocumentDetailViewDataProvider-f5goWm_i.js → BillingDocumentDetailViewDataProvider-TJUwMhtn.js} +1499 -1407
  3. package/dist/BillingDocumentDetailViewDataProvider.css +1 -1
  4. package/dist/{BillingDocumentPdf-5vi2pgRM.js → BillingDocumentPdf-PU9Ldfhs.js} +20 -13
  5. package/dist/{CreditNoteDetailViewDataProvider-Byd1QvfY.js → CreditNoteDetailViewDataProvider-DOPmal5D.js} +166 -166
  6. package/dist/{CreditNotePdfViewDataProvider-DI4eQkpM.js → CreditNotePdfViewDataProvider-BH7MaReQ.js} +3 -3
  7. package/dist/{CustomFieldValueText-BGbQwhON.js → CustomFieldValueText-BjRVovZL.js} +72 -72
  8. package/dist/DataProvider-C3uEds9v.js +75 -0
  9. package/dist/DunningCaseDetailViewDataProvider-CW8ijY3H.js +439 -0
  10. package/dist/DunningCaseOverviewView-Cfo-4VIw.js +799 -0
  11. package/dist/{DunningCaseReminderPdfViewDataProvider-I0I_WQQB.js → DunningCaseReminderPdfViewDataProvider-Dr-CS_VQ.js} +25 -25
  12. package/dist/DunningCaseSendDialog-BYFXJYMM.js +360 -0
  13. package/dist/InvoiceApprovalOutOfSyncIndicator-CP2GLaeh.js +45 -0
  14. package/dist/InvoiceApprovalOverviewView-Cjdu9iZC.js +814 -0
  15. package/dist/InvoiceApprovalStatusBadge-CcX8agTF.js +127 -0
  16. package/dist/InvoiceApproveDialogDataProvider-4wNAetBn.js +377 -0
  17. package/dist/InvoiceDetailViewDataProvider-C9O3hXGo.js +2214 -0
  18. package/dist/InvoiceOverviewViewDataProvider-DBdw7FvZ.js +1892 -0
  19. package/dist/{InvoicePdfView-C-7m2g3b.js → InvoicePdfView-CvU9bRVd.js} +10 -4
  20. package/dist/{InvoicePdfViewDataProvider-BPiK110e.js → InvoicePdfViewDataProvider-CFjHQ58K.js} +4 -4
  21. package/dist/InvoicePublicPdfViewDataProvider-DDv-LdBU.js +45 -0
  22. package/dist/InvoicePublicProFormaPdfViewDataProvider-BTjJnELb.js +47 -0
  23. package/dist/InvoicingFileUploadProvider-Kcq7kSSt.js +94 -0
  24. package/dist/{IssuerSettingsViewDataProvider-COqHGUE6.js → IssuerSettingsViewDataProvider-BuSIVnIl.js} +4 -4
  25. package/dist/{ReminderSettingsViewDataProvider-Dys4bUU7.js → ReminderSettingsViewDataProvider-CH7gSXnj.js} +68 -70
  26. package/dist/{api.util-BCSgCfpS.js → api.util-CkIRZS3h.js} +1537 -872
  27. package/dist/{billingDocumentDetail.transformer-BBn9R_cx.js → billingDocumentDetail.transformer-Bfd8geNo.js} +60 -63
  28. package/dist/client/index.d.ts +2 -2
  29. package/dist/client/sdk.gen.d.ts +19 -1
  30. package/dist/client/types.gen.d.ts +1155 -119
  31. package/dist/client/zod.gen.d.ts +25353 -8465
  32. package/dist/composables/sending-refetch/sendingRefetch.composable.d.ts +7 -0
  33. package/dist/composables/sending-refetch/sendingRefetch.composable.spec.d.ts +1 -0
  34. package/dist/{creditNoteDetail.query-BcPsB96h.js → creditNoteDetail.query-tLnfqsEB.js} +32 -32
  35. package/dist/customerUuid.model-ClN4Vi9n.js +18 -0
  36. package/dist/{dist-D9lp7NDv.js → dist-BD7Allff.js} +270 -110
  37. package/dist/{dist-BBjpqvUl.js → dist-D5agTXFI.js} +605 -605
  38. package/dist/{documentTitle.composable-4ApFl9TZ.js → documentTitle.composable-CRJjS6p-.js} +25 -15
  39. package/dist/{customFieldValue.util-BwsX8exl.js → download.util-B5Q7KUC9.js} +6 -6
  40. package/dist/{i18n.lib-C6eb-F-e.js → i18n.lib--mzprLMR.js} +336 -38
  41. package/dist/index.d.ts +349 -49
  42. package/dist/index.js +347 -335
  43. package/dist/invoice.service-B1w16_Md.js +757 -0
  44. package/dist/invoiceApproval.service-BHAJmFkU.js +72 -0
  45. package/dist/invoiceApprovalStatus.util-DohOKR4q.js +83 -0
  46. package/dist/invoiceCustomer.service-DpVfpQUD.js +39 -0
  47. package/dist/{invoiceDetail.query-Cek8nyaw.js → invoiceDetail.query-CfyNSXLS.js} +1 -1
  48. package/dist/invoiceIndexCache.util-jHsrFwcA.js +288 -0
  49. package/dist/{invoicingConfig.composable-DTmad1fe.js → invoicingConfig.composable-COn1rKRf.js} +2 -2
  50. package/dist/{issuerSettings.query-Bvz-Oj5D.js → issuerSettings.query-CDFk2GiP.js} +6 -5
  51. package/dist/libs/i18n.lib.d.ts +322 -24
  52. package/dist/locales/en-US.json.d.ts +168 -19
  53. package/dist/locales/nl-BE.json.d.ts +168 -19
  54. package/dist/models/billing-document/activity-log/billingDocumentActivityLog.model.d.ts +8 -1
  55. package/dist/models/billing-document/activity-log/billingDocumentActivityLog.util.d.ts +12 -0
  56. package/dist/models/billing-document/activity-log/billingDocumentActivityLog.util.spec.d.ts +1 -0
  57. package/dist/models/billing-document/billingDocumentDetail.model.d.ts +2 -6
  58. package/dist/modules/dunning-case/api/mutations/dunningCaseReminderRetry.mutation.d.ts +4 -0
  59. package/dist/modules/dunning-case/api/services/dunningCase.service.d.ts +2 -1
  60. package/dist/modules/dunning-case/models/dunningCase.model.d.ts +5 -0
  61. package/dist/modules/dunning-case/models/dunningCase.transformer.d.ts +0 -1
  62. package/dist/modules/dunning-case/models/dunningCaseReminderPdf.model.d.ts +0 -4
  63. package/dist/modules/dunning-case/models/dunningCaseReminderPdf.transformer.d.ts +0 -1
  64. package/dist/modules/dunning-case/test/builders/dunningCaseReminderPdfDto.builder.d.ts +1 -0
  65. package/dist/modules/dunning-case/use-cases/overview/components/DunningCaseOverviewActionsCell.vue.d.ts +2 -0
  66. package/dist/modules/dunning-case/use-cases/overview/composables/dunningCaseOverview.composable.d.ts +2 -2
  67. package/dist/modules/dunning-case/use-cases/overview/composables/dunningCaseOverview.composable.spec.d.ts +1 -0
  68. package/dist/modules/dunning-case/use-cases/overview/composables/dunningCaseOverviewTableColumns.composable.d.ts +1 -0
  69. package/dist/modules/dunning-case/use-cases/pdf/components/DunningCaseReminderPdfTable.vue.d.ts +0 -4
  70. package/dist/modules/dunning-case/use-cases/send/dialogs/DunningCaseBulkSendDialog.vue.d.ts +2 -1
  71. package/dist/modules/dunning-case/use-cases/settings/components/ReminderLadderRow.vue.d.ts +4 -4
  72. package/dist/modules/dunning-case/use-cases/settings/composables/reminderLadder.composable.d.ts +2 -2
  73. package/dist/modules/dunning-case/use-cases/settings/composables/reminderLadder.composable.spec.d.ts +1 -0
  74. package/dist/modules/invoice/api/mutations/invoiceApproveApproval.mutation.d.ts +16 -0
  75. package/dist/modules/invoice/api/mutations/invoiceArchiveApproval.mutation.d.ts +6 -0
  76. package/dist/modules/invoice/api/mutations/invoiceBulkSendApproval.mutation.d.ts +5 -0
  77. package/dist/modules/invoice/api/mutations/invoiceMarkAsPriorApprovalRequired.mutation.d.ts +4 -0
  78. package/dist/modules/invoice/api/mutations/invoiceRejectApproval.mutation.d.ts +17 -0
  79. package/dist/modules/invoice/api/mutations/invoiceRestoreFromProForma.mutation.d.ts +4 -0
  80. package/dist/modules/invoice/api/mutations/invoiceSendApproval.mutation.d.ts +5 -0
  81. package/dist/modules/invoice/api/mutations/invoiceUnmarkAsPriorApprovalRequired.mutation.d.ts +4 -0
  82. package/dist/modules/invoice/api/queries/invoicePublicProFormaDetail.query.d.ts +2 -0
  83. package/dist/modules/invoice/api/query-keys/invoice.queryKeys.d.ts +6 -0
  84. package/dist/modules/invoice/api/services/invoice.service.d.ts +15 -1
  85. package/dist/modules/invoice/components/InvoiceApprovalOutOfSyncIndicator.vue.d.ts +3 -0
  86. package/dist/{ui/DisplayState.vue.d.ts → modules/invoice/components/InvoiceApprovalStatusBadge.vue.d.ts} +7 -10
  87. package/dist/modules/invoice/components/InvoiceApprovalStatusChip.vue.d.ts +16 -0
  88. package/dist/modules/invoice/models/invoice/approval/invoiceApprovalTransformers.spec.d.ts +1 -0
  89. package/dist/modules/invoice/models/invoice/approval/invoiceApprovalUuid.model.d.ts +3 -0
  90. package/dist/modules/invoice/models/invoice/approval/invoiceApprove.transformer.d.ts +5 -0
  91. package/dist/modules/invoice/models/invoice/approval/invoiceApproveForm.model.d.ts +15 -0
  92. package/dist/modules/invoice/models/invoice/approval/invoiceApproveForm.model.spec.d.ts +1 -0
  93. package/dist/modules/invoice/models/invoice/approval/invoiceReject.transformer.d.ts +5 -0
  94. package/dist/modules/invoice/models/invoice/approval/invoiceRejectForm.model.d.ts +15 -0
  95. package/dist/modules/invoice/models/invoice/approval/invoiceRejectForm.model.spec.d.ts +1 -0
  96. package/dist/modules/invoice/models/invoice/detail/invoiceDetail.model.d.ts +14 -1
  97. package/dist/modules/invoice/models/invoice/detail/invoiceDetail.transformer.d.ts +1 -0
  98. package/dist/modules/invoice/models/invoice/index/invoiceIndex.model.d.ts +4 -0
  99. package/dist/modules/invoice/models/invoice/index/invoiceIndexQueryParams.model.d.ts +3 -1
  100. package/dist/modules/invoice/models/invoice/invoiceApproval.transformer.d.ts +7 -0
  101. package/dist/modules/invoice/models/invoice/invoiceApprovalStatus.model.d.ts +27 -0
  102. package/dist/modules/invoice/models/invoice/invoiceApprovalStatus.util.d.ts +12 -0
  103. package/dist/modules/invoice/models/invoice/invoiceApprovalStatus.util.spec.d.ts +1 -0
  104. package/dist/modules/invoice/models/invoice/payment/invoicePaymentCreate.transformer.spec.d.ts +1 -0
  105. package/dist/modules/invoice/models/invoice/pdf/invoicePdfDetail.transformer.d.ts +2 -1
  106. package/dist/modules/invoice/routes/invoice.routes.d.ts +4 -0
  107. package/dist/modules/invoice/use-cases/detail/components/InvoiceApprovalBanner.vue.d.ts +19 -0
  108. package/dist/modules/invoice/use-cases/detail/components/InvoiceDetailHeaderSection.vue.d.ts +4 -0
  109. package/dist/modules/invoice/use-cases/detail/composables/invoiceDetailHeaderActions.composable.d.ts +5 -0
  110. package/dist/modules/invoice/use-cases/detail/composables/invoiceDetailPaymentsTableColumns.composable.d.ts +1 -1
  111. package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceApprovalArchiveDialog.vue.d.ts +13 -0
  112. package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceApprovalRevertDialog.vue.d.ts +15 -0
  113. package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceApproveDialog.vue.d.ts +14 -0
  114. package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceApproveDialogDataProvider.vue.d.ts +13 -0
  115. package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceFinalizeOutOfSyncDialog.vue.d.ts +21 -0
  116. package/dist/modules/invoice/use-cases/detail/dialogs/InvoicePaymentDeleteDialog.vue.d.ts +13 -0
  117. package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceRejectDialog.vue.d.ts +13 -0
  118. package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewBulkActionBar.vue.d.ts +3 -0
  119. package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewTableApprovalCell.vue.d.ts +9 -0
  120. package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewDataTableFilters.composable.d.ts +3 -1
  121. package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewSelection.composable.d.ts +11 -9
  122. package/dist/modules/invoice/use-cases/overview/dialogs/InvoiceOverviewBulkActionDialog.vue.d.ts +3 -2
  123. package/dist/modules/invoice/use-cases/overview/dialogs/InvoiceOverviewBulkSendApprovalDialog.vue.d.ts +14 -0
  124. package/dist/modules/invoice/use-cases/overview/utils/invoiceOverviewBulkActionFeedback.util.d.ts +9 -4
  125. package/dist/modules/invoice/use-cases/overview/utils/invoiceOverviewBulkActionFeedback.util.spec.d.ts +1 -0
  126. package/dist/modules/invoice/use-cases/overview/views/InvoiceOverviewView.vue.d.ts +0 -5
  127. package/dist/modules/invoice/use-cases/pdf/components/BillingDocumentPdf.vue.d.ts +1 -0
  128. package/dist/modules/invoice/use-cases/pdf/components/InvoicePdfWatermark.vue.d.ts +4 -1
  129. package/dist/modules/invoice/use-cases/pdf/views/InvoicePdfView.vue.d.ts +1 -0
  130. package/dist/modules/invoice/use-cases/pdf/views/InvoicePublicProFormaPdfViewDataProvider.vue.d.ts +3 -0
  131. package/dist/modules/invoice-approval/actions/invoiceApproval.actions.d.ts +5 -0
  132. package/dist/modules/invoice-approval/actions/invoiceApprovalArchive.action.d.ts +1 -0
  133. package/dist/modules/invoice-approval/actions/invoiceApprovalMarkAsApproved.action.d.ts +1 -0
  134. package/dist/modules/invoice-approval/actions/invoiceApprovalReject.action.d.ts +1 -0
  135. package/dist/modules/invoice-approval/actions/invoiceApprovalSendRequest.action.d.ts +3 -0
  136. package/dist/modules/invoice-approval/actions/invoiceApprovalSendRequest.spec.d.ts +1 -0
  137. package/dist/modules/invoice-approval/api/mutations/approvalReminderConfigUpdate.mutation.d.ts +8 -0
  138. package/dist/modules/invoice-approval/api/queries/approvalReminderConfig.query.d.ts +1 -0
  139. package/dist/modules/invoice-approval/api/queries/invoiceApprovalIndex.query.d.ts +3 -0
  140. package/dist/modules/invoice-approval/api/query-keys/invoiceApproval.queryKeys.d.ts +15 -0
  141. package/dist/modules/invoice-approval/api/services/invoiceApproval.service.d.ts +10 -0
  142. package/dist/modules/invoice-approval/components/InvoiceApprovalReminderLevelIndicator.vue.d.ts +7 -0
  143. package/dist/modules/invoice-approval/models/approvalReminderConfig.transformer.d.ts +6 -0
  144. package/dist/modules/invoice-approval/models/approvalReminderConfigForm.model.d.ts +11 -0
  145. package/dist/modules/invoice-approval/models/approvalReminderConfigForm.spec.d.ts +1 -0
  146. package/dist/modules/invoice-approval/models/invoiceApprovalIndex.model.d.ts +21 -0
  147. package/dist/modules/invoice-approval/models/invoiceApprovalIndex.transformer.d.ts +5 -0
  148. package/dist/modules/invoice-approval/models/invoiceApprovalIndex.transformer.spec.d.ts +1 -0
  149. package/dist/modules/invoice-approval/models/invoiceApprovalIndexQueryParams.model.d.ts +9 -0
  150. package/dist/modules/invoice-approval/models/invoiceApprovalIndexQueryParams.transformer.d.ts +6 -0
  151. package/dist/modules/invoice-approval/models/invoiceApprovalIndexQueryParams.transformer.spec.d.ts +1 -0
  152. package/dist/modules/invoice-approval/routes/invoiceApproval.routes.d.ts +24 -0
  153. package/dist/modules/invoice-approval/use-cases/overview/components/InvoiceApprovalOverviewActionsCell.vue.d.ts +7 -0
  154. package/dist/modules/invoice-approval/use-cases/overview/components/InvoiceApprovalOverviewAmountCell.vue.d.ts +7 -0
  155. package/dist/modules/invoice-approval/use-cases/overview/components/InvoiceApprovalOverviewInvoiceCell.vue.d.ts +7 -0
  156. package/dist/modules/invoice-approval/use-cases/overview/components/InvoiceApprovalOverviewMetrics.vue.d.ts +18 -0
  157. package/dist/modules/invoice-approval/use-cases/overview/components/InvoiceApprovalOverviewNextReminderCell.vue.d.ts +7 -0
  158. package/dist/modules/invoice-approval/use-cases/overview/components/InvoiceApprovalOverviewStatusCell.vue.d.ts +7 -0
  159. package/dist/modules/invoice-approval/use-cases/overview/composables/invoiceApprovalOverview.composable.d.ts +41 -0
  160. package/dist/modules/invoice-approval/use-cases/overview/composables/invoiceApprovalOverviewFilters.composable.d.ts +5 -0
  161. package/dist/modules/invoice-approval/use-cases/overview/composables/invoiceApprovalOverviewTableColumns.composable.d.ts +3 -0
  162. package/dist/modules/invoice-approval/use-cases/overview/views/InvoiceApprovalOverviewView.vue.d.ts +3 -0
  163. package/dist/modules/invoice-approval/use-cases/settings/views/ApprovalReminderSettingsView.vue.d.ts +7 -0
  164. package/dist/modules/invoice-approval/use-cases/settings/views/ApprovalReminderSettingsViewDataProvider.vue.d.ts +3 -0
  165. package/dist/modules/settings/models/issuer-settings/issuerSettings.model.d.ts +1 -0
  166. package/dist/modules/settings/routes/settings.routes.d.ts +7 -0
  167. package/dist/{plainDate.transformer-BxvJpJOv.js → plainDate.transformer-Bhiz9jW7.js} +17 -4
  168. package/dist/reminderConfig.query-DSO0ekC_.js +316 -0
  169. package/dist/routes/invoicingPublicRoutes.composable.d.ts +4 -0
  170. package/dist/routes/invoicingRoutes.composable.d.ts +14 -6
  171. package/dist/search.composable-CU9OpyUB.js +52 -0
  172. package/dist/{src-BFgnUugN.js → src-DUSgQTKr.js} +45 -45
  173. package/dist/style.css +1 -1
  174. package/dist/types/queryKey.type.d.ts +3 -2
  175. package/dist/ui/billing-document/sidebar/BillingDocumentDetailSidebarActivityApprovalDetails.vue.d.ts +7 -0
  176. package/dist/utils/html.util.d.ts +4 -0
  177. package/package.json +3 -2
  178. package/dist/AddOpenBoundaryIcon-9SqBHfoz.js +0 -25
  179. package/dist/AirlineIcon-Z6sH_StM.js +0 -26
  180. package/dist/AirplaneIcon-C-nSkD1w.js +0 -19
  181. package/dist/AirportIcon-m4itDKCV.js +0 -16
  182. package/dist/AlertTriangleIcon-DtYLCC-Y.js +0 -23
  183. package/dist/AllocationsIcon-hcg93Sll.js +0 -16
  184. package/dist/ArrowNarrowRightIcon-2-Sml68f.js +0 -23
  185. package/dist/AssetIcon-qOYs6Wna.js +0 -16
  186. package/dist/BarChartIcon-DDyzpV_3.js +0 -22
  187. package/dist/BellIcon-DF1OBFta.js +0 -21
  188. package/dist/BuildingIcon-CC5PMNeP.js +0 -22
  189. package/dist/ChargerIcon-aM_endLr.js +0 -16
  190. package/dist/ChevronDownIcon-4QiK-Z6-.js +0 -23
  191. package/dist/ChevronUpIcon-qBsjZ5Dz.js +0 -23
  192. package/dist/ClockIcon-BNiPCaiB.js +0 -23
  193. package/dist/ClockSnoozeIcon-BxGfwJB6.js +0 -23
  194. package/dist/CopyIcon-DH5ly0dZ.js +0 -19
  195. package/dist/DataProvider-Dj34ljUX.js +0 -75
  196. package/dist/DownloadCloudIcon-Cf8ftklG.js +0 -22
  197. package/dist/DunningCaseDetailViewDataProvider-DKuuysqS.js +0 -409
  198. package/dist/DunningCaseOverviewView-aWttPLrC.js +0 -747
  199. package/dist/DunningCaseSendDialog-DyvA5R1p.js +0 -349
  200. package/dist/EditIcon-Dr7OHBBR.js +0 -21
  201. package/dist/EraserIcon-B1VJSvdI.js +0 -23
  202. package/dist/FileIcon-ssmQI5Yl.js +0 -23
  203. package/dist/FilterLinesIcon-C7YdyPBk.js +0 -23
  204. package/dist/GlobeIcon-BfRM6Ike.js +0 -22
  205. package/dist/HelpIcon-BrJ49P5y.js +0 -22
  206. package/dist/HourGlassIcon-D9rfU1Is.js +0 -22
  207. package/dist/InfoCircleIcon-Ee0SyiMc.js +0 -23
  208. package/dist/InvoiceDetailViewDataProvider-BU6jZfD7.js +0 -1670
  209. package/dist/InvoiceOverviewViewDataProvider-i8tXATJE.js +0 -1677
  210. package/dist/InvoicePublicPdfViewDataProvider-BJe-8hC5.js +0 -45
  211. package/dist/KeyboardIcon-T3o_g-1c.js +0 -22
  212. package/dist/LinkExternalIcon-BkHS4fCx.js +0 -22
  213. package/dist/LinkIcon-DuPwae98.js +0 -22
  214. package/dist/MarkerIcon-B1Jqenjb.js +0 -28
  215. package/dist/MobileBatteryIcon-GZ1SMRDV.js +0 -16
  216. package/dist/MonitorIcon-pbK22reU.js +0 -22
  217. package/dist/NotificationIcon-Ctv8vyWt.js +0 -19
  218. package/dist/ParkingIcon-DnUPW3pB.js +0 -24
  219. package/dist/PlanningIcon-CXvrskgj.js +0 -16
  220. package/dist/PreferenceIcon-BHS8uDyi.js +0 -22
  221. package/dist/ReceiptCheckIcon-QTestqCJ.js +0 -23
  222. package/dist/RefreshIcon-DShY-aoS.js +0 -22
  223. package/dist/RemoveOpenBoundaryIcon-CN8YWs6o.js +0 -28
  224. package/dist/RewindIcon-GWg2AQax.js +0 -22
  225. package/dist/SettingsIcon-CBLJ6B5u.js +0 -25
  226. package/dist/ShieldIcon-CVnrOcxl.js +0 -19
  227. package/dist/ShieldOffIcon-B9l0dDVb.js +0 -23
  228. package/dist/SignOutIcon-CmDkjJ5F.js +0 -21
  229. package/dist/SlashCircleIcon-jY5FBko5.js +0 -22
  230. package/dist/StandIcon-CoYnBLMn.js +0 -23
  231. package/dist/StarsIcon-D7ZlqOW7.js +0 -22
  232. package/dist/StopwatchIcon-BK0vh1lg.js +0 -22
  233. package/dist/TargetIcon-HMWj77-Q.js +0 -22
  234. package/dist/ThreeDotsIcon-BtFruOKz.js +0 -32
  235. package/dist/ToolIcon-DRfDb7fE.js +0 -22
  236. package/dist/TrashIcon-BwxBjHv5.js +0 -19
  237. package/dist/TurnaroundIcon-b1X61TwZ.js +0 -27
  238. package/dist/UploadCloudIcon-BF0equKg.js +0 -22
  239. package/dist/UserIcon-B0rCC6KE.js +0 -22
  240. package/dist/UsersIcon-cK5l_zKG.js +0 -22
  241. package/dist/VerifiedIcon-CELYlqcv.js +0 -22
  242. package/dist/WifiIcon--JPvMNEF.js +0 -23
  243. package/dist/WifiOffIcon-BS2KftcP.js +0 -23
  244. package/dist/ZapIcon-BHwcIQc0.js +0 -23
  245. package/dist/ZoomInIcon-Cu6r915V.js +0 -23
  246. package/dist/ZoomOutIcon-DwB4FRj-.js +0 -23
  247. package/dist/_plugin-vue_export-helper-B3ysoDQm.js +0 -8
  248. package/dist/customerUuid.model-GUFYq3O2.js +0 -5
  249. package/dist/instant.transformer-KmBsH3E9.js +0 -18
  250. package/dist/invoice.service-Bb8VqQvc.js +0 -635
  251. package/dist/invoiceDeliveryStatus.util-BPkGCQM6.js +0 -331
  252. package/dist/reminderConfig.query-DsJNqqi7.js +0 -331
  253. package/dist/search.composable-BCtYqudV.js +0 -52
@@ -0,0 +1,316 @@
1
+ import { $ as e, F as t, K as n, O as r, P as i, et as a, lt as o, o as s, t as c } from "./api.util-CkIRZS3h.js";
2
+ import { c as l, h as u, m as d, w as f } from "./documentTitle.composable-CRJjS6p-.js";
3
+ import { n as p, t as m } from "./useCurrencyFormat.composable-MtZaqKnO.js";
4
+ import { n as h, r as g, t as _ } from "./plainDate.transformer-Bhiz9jW7.js";
5
+ import { n as v, t as y } from "./percentage.util-Bl78kSSk.js";
6
+ import { Fragment as b, computed as x, createElementBlock as S, createElementVNode as C, defineComponent as w, normalizeClass as T, openBlock as E, renderList as D } from "vue";
7
+ import { useQuery as O } from "@wisemen/vue-core-api-utils";
8
+ //#region src/utils/html.util.ts
9
+ var k = /* @__PURE__ */ new Set(/* @__PURE__ */ "address.article.aside.blockquote.div.dl.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.header.hr.li.main.nav.ol.p.pre.section.table.tbody.td.tfoot.th.thead.tr.ul".split("."));
10
+ function A(e) {
11
+ return e.nodeType === 3;
12
+ }
13
+ function j(e) {
14
+ return e.nodeType === 1;
15
+ }
16
+ function M(e) {
17
+ let t = e;
18
+ for (; t.startsWith("\n\n");) t = t.slice(2);
19
+ for (; t.endsWith("\n\n");) t = t.slice(0, -2);
20
+ return t;
21
+ }
22
+ function N(e) {
23
+ let t = "";
24
+ function n(e) {
25
+ t += e.replaceAll("\xA0", " ");
26
+ }
27
+ function r(e) {
28
+ if (A(e)) {
29
+ n(e.data);
30
+ return;
31
+ }
32
+ if (!j(e)) return;
33
+ let i = e.tagName.toLowerCase();
34
+ if (i === "script" || i === "style") return;
35
+ if (i === "br") {
36
+ n("\n");
37
+ return;
38
+ }
39
+ let a = k.has(i);
40
+ a && t.length > 0 && !t.endsWith("\n") && n("\n\n");
41
+ for (let t of e.childNodes) r(t);
42
+ a && t.length > 0 && !t.endsWith("\n") && n("\n\n");
43
+ }
44
+ for (let t of e) r(t);
45
+ return t;
46
+ }
47
+ function P(e) {
48
+ return e.replaceAll("&", "&amp;").replaceAll("<", "&lt;").replaceAll(">", "&gt;").replaceAll("\"", "&quot;").replaceAll("'", "&#39;");
49
+ }
50
+ var F = class {
51
+ static fromPlainText(e) {
52
+ return `<p>${e.split("\n").map((e) => P(e)).join("<br>")}</p>`;
53
+ }
54
+ static toPlainText(e) {
55
+ return M(N(new DOMParser().parseFromString(e, "text/html").body.childNodes));
56
+ }
57
+ }, I = [
58
+ "en-US",
59
+ "nl-BE",
60
+ "fr-BE"
61
+ ], L = [
62
+ 1,
63
+ 2,
64
+ 3
65
+ ];
66
+ function R(e) {
67
+ return e === null || e === "infinity" || e === "-infinity";
68
+ }
69
+ function z(e) {
70
+ return R(e) ? null : g.fromDto(e);
71
+ }
72
+ function B(e) {
73
+ return R(e) ? null : _.fromDto(e);
74
+ }
75
+ function V(e, t) {
76
+ return e.items.find((e) => e.locale === t)?.value ?? "";
77
+ }
78
+ function H() {
79
+ return {
80
+ "en-US": {
81
+ body: "",
82
+ subject: ""
83
+ },
84
+ "fr-BE": {
85
+ body: "",
86
+ subject: ""
87
+ },
88
+ "nl-BE": {
89
+ body: "",
90
+ subject: ""
91
+ }
92
+ };
93
+ }
94
+ function U(e, t, n) {
95
+ let r = t?.fee.amount ?? null;
96
+ return {
97
+ feeAmount: r === null ? 0 : m(r.amount, r.precision),
98
+ feeCurrency: r?.currency ?? n.currency,
99
+ feePercentage: t?.fee.percentage?.value ?? 0,
100
+ feePrecision: r?.precision ?? n.precision,
101
+ feeType: t?.fee.type ?? d.AMOUNT,
102
+ offsetDays: t?.offsetDays ?? e,
103
+ schedule: t?.schedule ?? f.AFTER_DUE_DATE,
104
+ sequence: e,
105
+ template: t?.template ?? H()
106
+ };
107
+ }
108
+ function W(e, t) {
109
+ return {
110
+ body: F.toPlainText(V(e.body, t)),
111
+ subject: V(e.subject, t)
112
+ };
113
+ }
114
+ function G(e, t) {
115
+ return { items: I.map((n) => ({
116
+ locale: n,
117
+ value: t === "body" ? F.fromPlainText(e[n][t]) : e[n][t]
118
+ })) };
119
+ }
120
+ var K = class e {
121
+ static fromDetailDto(t) {
122
+ return {
123
+ uuid: t.uuid,
124
+ closedAt: g.fromNullableDto(t.closedAt),
125
+ createdAt: g.fromDto(t.createdAt),
126
+ lastReminderSentAt: z(t.lastReminderSentAt),
127
+ nextReminderOn: _.fromNullableDto(t.nextReminderOn),
128
+ updatedAt: g.fromDto(t.updatedAt),
129
+ blockedReason: t.blockedReason,
130
+ canRetryReminder: t.canRetryReminder,
131
+ canSendReminder: t.canSendReminder,
132
+ customer: t.customer,
133
+ invoices: t.invoices.map(e.fromInvoiceDto),
134
+ latestCreatedReminder: e.fromReminderDto(t.latestCreatedReminder),
135
+ level: t.level ?? 0,
136
+ outstandingBalance: h.fromDto(t.outstandingBalance),
137
+ totalCredited: h.fromDto(t.totalCredited),
138
+ totalFee: h.fromDto(t.totalFee),
139
+ totalInvoiced: h.fromDto(t.totalInvoiced),
140
+ totalPaid: h.fromDto(t.totalPaid)
141
+ };
142
+ }
143
+ static fromIndexDto(t) {
144
+ return {
145
+ uuid: t.uuid,
146
+ lastReminderSentAt: z(t.lastReminderSentAt),
147
+ nextReminderOn: B(t.nextReminderOn),
148
+ blockedReason: t.blockedReason,
149
+ canRetryReminder: t.canRetryReminder,
150
+ canSendReminder: t.canSendReminder,
151
+ customer: t.customer,
152
+ daysOverdue: t.daysOverdue,
153
+ latestCreatedReminder: e.fromReminderDto(t.latestCreatedReminder),
154
+ level: t.level,
155
+ outstandingBalance: h.fromDto(t.outstandingBalance)
156
+ };
157
+ }
158
+ static fromInvoiceDto(e) {
159
+ return {
160
+ uuid: e.uuid,
161
+ dueOn: _.fromDto(e.dueOn),
162
+ isDisputed: e.isDisputed,
163
+ balanceDueAmount: h.fromDto(e.balanceDueAmount),
164
+ creditNotes: e.creditNotes.map((e) => ({
165
+ uuid: e.uuid,
166
+ finalizedOn: _.fromDto(e.finalizedOn),
167
+ grossAmount: h.fromDto(e.grossAmount),
168
+ sequence: e.sequence
169
+ })),
170
+ grossAmount: h.fromDto(e.grossAmount),
171
+ level: e.level ?? 0,
172
+ paidAmount: h.fromDto(e.paidAmount),
173
+ payments: e.payments.map((e) => ({
174
+ uuid: e.uuid,
175
+ amount: h.fromDto(e.amount),
176
+ date: _.fromDto(e.date)
177
+ })),
178
+ sequence: e.sequence,
179
+ settlementStatus: e.settlementStatus,
180
+ subject: e.subject,
181
+ totalCreditedAmount: h.fromDto(e.totalCreditedAmount)
182
+ };
183
+ }
184
+ static fromReminderConfigDto(e) {
185
+ return {
186
+ uuid: e.uuid,
187
+ fee: {
188
+ amount: e.fee.amount === null ? null : h.fromDto(e.fee.amount),
189
+ percentage: v.fromNullableDto(e.fee.percentage),
190
+ type: e.fee.type
191
+ },
192
+ offsetDays: e.offsetDays,
193
+ schedule: e.schedule,
194
+ sequence: e.sequence,
195
+ template: {
196
+ "en-US": W(e.template, "en-US"),
197
+ "fr-BE": W(e.template, "fr-BE"),
198
+ "nl-BE": W(e.template, "nl-BE")
199
+ }
200
+ };
201
+ }
202
+ static fromReminderDto(e) {
203
+ return e === null ? null : {
204
+ uuid: e.uuid,
205
+ sentAt: z(e.sentAt),
206
+ hasErrors: e.hasErrors
207
+ };
208
+ }
209
+ static reminderConfigsToDto(e) {
210
+ return e.reminders.map((e) => ({
211
+ fee: e.feeType === d.PERCENTAGE ? {
212
+ amount: null,
213
+ percentage: v.toDto(new y(e.feePercentage)),
214
+ type: d.PERCENTAGE
215
+ } : {
216
+ amount: {
217
+ amount: p(e.feeAmount, e.feePrecision),
218
+ currency: e.feeCurrency,
219
+ precision: e.feePrecision
220
+ },
221
+ percentage: null,
222
+ type: d.AMOUNT
223
+ },
224
+ offsetDays: e.offsetDays,
225
+ schedule: e.schedule,
226
+ sequence: e.sequence,
227
+ template: {
228
+ body: G(e.template, "body"),
229
+ subject: G(e.template, "subject")
230
+ }
231
+ }));
232
+ }
233
+ static reminderConfigsToForm(e) {
234
+ let t = e.find((e) => e.fee.amount !== null)?.fee.amount ?? null, n = {
235
+ currency: t?.currency ?? l.EUR,
236
+ precision: t?.precision ?? 2
237
+ };
238
+ return { reminders: L.map((t) => U(t, e.find((e) => e.sequence === t), n)) };
239
+ }
240
+ };
241
+ //#endregion
242
+ //#region src/modules/dunning-case/api/services/dunningCase.service.ts
243
+ function q(e) {
244
+ return {
245
+ customerUuid: e.customerUuid,
246
+ isOpen: e.isOpen,
247
+ dunningCaseUuids: e.dunningCaseUuids === void 0 ? void 0 : {
248
+ scope: u.INCLUDE,
249
+ values: e.dunningCaseUuids
250
+ },
251
+ level: e.level
252
+ };
253
+ }
254
+ var J = class {
255
+ static async getAll(e) {
256
+ return (await c.fromPromise(a({ query: {
257
+ filter: q(e),
258
+ pagination: e.pagination
259
+ } }))).map((e) => ({
260
+ data: e.data.items.map(K.fromIndexDto),
261
+ meta: e.data.meta
262
+ }));
263
+ }
264
+ static async getByUuid(t) {
265
+ return (await c.fromPromise(e({ path: { uuid: t } }))).map((e) => K.fromDetailDto(e.data));
266
+ }
267
+ static async getReminderConfigs() {
268
+ return (await c.fromPromise(o())).map((e) => e.data.items.map(K.fromReminderConfigDto));
269
+ }
270
+ static async previewBulk(e) {
271
+ return (await c.fromPromise(r({ query: { filter: q(e) } }))).map((e) => e.data);
272
+ }
273
+ static async retry(e) {
274
+ let t = await c.fromPromise(i({ path: { uuid: e } }));
275
+ return c.void(t);
276
+ }
277
+ static async send(e) {
278
+ let n = await c.fromPromise(t({ path: { uuid: e } }));
279
+ return c.void(n);
280
+ }
281
+ static async sendBulk(e) {
282
+ return (await c.fromPromise(s({ query: { filter: q(e) } }))).map((e) => e.data);
283
+ }
284
+ static async updateReminderConfigs(e) {
285
+ let t = await c.fromPromise(n({ body: { reminders: K.reminderConfigsToDto(e) } }));
286
+ return c.void(t);
287
+ }
288
+ }, Y = {
289
+ class: "flex shrink-0 gap-xxs",
290
+ "aria-hidden": "true"
291
+ }, X = /* @__PURE__ */ w({
292
+ __name: "DunningCaseReminderLevelIndicator",
293
+ props: {
294
+ level: {},
295
+ size: { default: "md" }
296
+ },
297
+ setup(e) {
298
+ let t = e, n = x(() => Math.min(3, Math.max(0, t.level ?? 0))), r = x(() => t.level === 3 ? "error" : t.level === 2 ? "warning" : "brand"), i = x(() => t.size === "sm" ? "h-(--spacing-sm) w-(--spacing-md)" : "h-(--spacing-sm) w-(--spacing-lg)");
299
+ return (e, t) => (E(), S("span", Y, [(E(), S(b, null, D(3, (e) => C("span", {
300
+ key: e,
301
+ class: T([[i.value, e <= n.value ? {
302
+ "border-brand-500 bg-brand-500": r.value === "brand",
303
+ "border-warning-500 bg-warning-solid": r.value === "warning",
304
+ "border-error bg-error-solid": r.value === "error"
305
+ } : "border-secondary bg-primary"], "rounded-full border"])
306
+ }, null, 2)), 64))]));
307
+ }
308
+ }), Z = 3e5;
309
+ function Q() {
310
+ return O("reminderConfig", {
311
+ staleTime: Z,
312
+ queryFn: () => J.getReminderConfigs()
313
+ });
314
+ }
315
+ //#endregion
316
+ export { K as i, X as n, J as r, Q as t };
@@ -2,6 +2,10 @@ export declare function useInvoicingPublicRoutes(): [{
2
2
  readonly name: "invoicing-invoice-public-pdf-preview";
3
3
  readonly path: "/pdf";
4
4
  readonly component: () => import('vue').Component;
5
+ }, {
6
+ readonly name: "invoicing-invoice-public-pro-forma-pdf-preview";
7
+ readonly path: "/pro-forma-pdf";
8
+ readonly component: () => import('vue').Component;
5
9
  }, {
6
10
  readonly name: "dunning-case-reminder-pdf";
7
11
  readonly path: "/dunning-case-reminder-pdf";
@@ -1,11 +1,5 @@
1
1
  import { Component } from 'vue';
2
2
  export interface InvoicingRoutesOptions {
3
- /**
4
- * Replaces the component of the 'invoicing-invoice-overview' route. The
5
- * route name, path and meta (permission) are preserved, so package-internal
6
- * navigation keeps working. Hosts wrap the exported overview view to add
7
- * custom actions or override the create flow.
8
- */
9
3
  invoiceOverviewComponent?: Component;
10
4
  }
11
5
  export declare function useInvoicingRoutes(options?: InvoicingRoutesOptions): [{
@@ -69,5 +63,19 @@ export declare function useInvoicingRoutes(options?: InvoicingRoutesOptions): [{
69
63
  readonly permission: "dunning-case.read";
70
64
  };
71
65
  }];
66
+ }, {
67
+ readonly name: "invoice-approval-module";
68
+ readonly path: "/invoicing/approvals";
69
+ readonly redirect: {
70
+ readonly name: "invoice-approval-overview";
71
+ };
72
+ readonly children: [{
73
+ readonly name: "invoice-approval-overview";
74
+ readonly path: "";
75
+ readonly component: () => Component;
76
+ readonly meta: {
77
+ readonly permission: "invoice-approval.read";
78
+ };
79
+ }];
72
80
  }];
73
81
  }];
@@ -0,0 +1,52 @@
1
+ import { computed as e, ref as t, watch as n } from "vue";
2
+ import { refDebounced as r } from "@vueuse/core";
3
+ import { useRoute as i, useRouter as a } from "vue-router";
4
+ //#region src/composables/routeQueryState.composable.ts
5
+ function o(e) {
6
+ let r = i(), o = a();
7
+ function s(t) {
8
+ if (t === null) return e.initialState;
9
+ try {
10
+ return e.serializer.parse(t);
11
+ } catch {
12
+ return e.initialState;
13
+ }
14
+ }
15
+ let c = t(s(r.query[e.key] ?? null));
16
+ return n(() => r.query[e.key], (e) => {
17
+ c.value = s(e ?? null);
18
+ }, { immediate: !0 }), n(c, (t) => {
19
+ o.replace({ query: {
20
+ ...r.query,
21
+ [e.key]: e.serializer.serialize(t) || void 0
22
+ } });
23
+ }, { deep: !0 }), c;
24
+ }
25
+ //#endregion
26
+ //#region src/composables/search/search.composable.ts
27
+ var s = 50, c = "search";
28
+ function l(n) {
29
+ let i = n?.debounceMs ?? s, a = n?.persistInUrl ?? !1, l = a === !0 || typeof a == "string" ? o({
30
+ initialState: "",
31
+ key: typeof a == "string" ? a : c,
32
+ serializer: {
33
+ parse: (e) => e,
34
+ serialize: (e) => e
35
+ }
36
+ }) : t(""), u = r(l, i), d = e(() => l.value !== u.value);
37
+ function f() {
38
+ l.value = "";
39
+ }
40
+ function p(e) {
41
+ l.value = e;
42
+ }
43
+ return {
44
+ isDebouncing: d,
45
+ clear: f,
46
+ debouncedSearch: e(() => u.value),
47
+ search: l,
48
+ updateSearch: p
49
+ };
50
+ }
51
+ //#endregion
52
+ export { l as t };
@@ -1,8 +1,8 @@
1
- import { useRoute as e, useRouter as t } from "vue-router";
2
1
  import "vue-i18n";
3
- import { computed as n, readonly as r, ref as i, shallowRef as a, toValue as o, watch as s } from "vue";
2
+ import { computed as e, readonly as t, ref as n, shallowRef as r, toValue as i, watch as a } from "vue";
4
3
  import "@tanstack/vue-query";
5
4
  import "@vueuse/core";
5
+ import { useRoute as o, useRouter as s } from "vue-router";
6
6
  import "@tanstack/vue-virtual";
7
7
  //#region ../toolkit/src/composables/currency-format/useCurrencyFormat.composable.ts
8
8
  function c(e, t) {
@@ -10,45 +10,45 @@ function c(e, t) {
10
10
  }
11
11
  //#endregion
12
12
  //#region ../toolkit/src/composables/document-title/documentTitle.composable.ts
13
- var l = i("{title}");
13
+ var l = n("{title}");
14
14
  function u(e) {
15
15
  if (!e.includes("{title}")) throw Error("Template must include {title}");
16
16
  l.value = e;
17
17
  }
18
18
  function d() {
19
- let e = i(document.title);
20
- function t(t) {
21
- s(() => o(t), (t) => {
19
+ let e = n(document.title);
20
+ function r(t) {
21
+ a(() => i(t), (t) => {
22
22
  e.value = t;
23
23
  }, { immediate: !0 });
24
24
  }
25
- return s(e, (e) => {
25
+ return a(e, (e) => {
26
26
  document.title = l.value.replace("{title}", e);
27
27
  }, { immediate: !0 }), {
28
- title: r(e),
29
- set: t,
28
+ title: t(e),
29
+ set: r,
30
30
  setTemplate: u
31
31
  };
32
32
  }
33
33
  //#endregion
34
34
  //#region ../toolkit/src/composables/routeQueryState.composable.ts
35
- function f(n) {
36
- let r = e(), a = t();
37
- function o(e) {
38
- if (e === null) return n.initialState;
35
+ function f(e) {
36
+ let t = o(), r = s();
37
+ function i(t) {
38
+ if (t === null) return e.initialState;
39
39
  try {
40
- return n.serializer.parse(e);
40
+ return e.serializer.parse(t);
41
41
  } catch {
42
- return n.initialState;
42
+ return e.initialState;
43
43
  }
44
44
  }
45
- let c = i(o(r.query[n.key]));
46
- return s(() => r.query[n.key], (e) => {
47
- c.value = o(e ?? null);
48
- }, { immediate: !0 }), s(c, (e) => {
49
- a.replace({ query: {
50
- ...r.query,
51
- [n.key]: n.serializer.serialize(e) || void 0
45
+ let c = n(i(t.query[e.key]));
46
+ return a(() => t.query[e.key], (e) => {
47
+ c.value = i(e ?? null);
48
+ }, { immediate: !0 }), a(c, (n) => {
49
+ r.replace({ query: {
50
+ ...t.query,
51
+ [e.key]: e.serializer.serialize(n) || void 0
52
52
  } });
53
53
  }, { deep: !0 }), c;
54
54
  }
@@ -67,56 +67,56 @@ function h(e) {
67
67
  };
68
68
  }).filter(Boolean) : [];
69
69
  }
70
- function g(e) {
71
- let t = e.persistInUrl === !1 ? !1 : e.persistInUrl ?? p, r = t === !0 || typeof t == "string" ? f({
72
- initialState: e.initialValues ?? [],
73
- key: typeof t == "string" ? t : p,
70
+ function g(t) {
71
+ let n = t.persistInUrl === !1 ? !1 : t.persistInUrl ?? p, i = n === !0 || typeof n == "string" ? f({
72
+ initialState: t.initialValues ?? [],
73
+ key: typeof n == "string" ? n : p,
74
74
  serializer: {
75
75
  parse: h,
76
76
  serialize: m
77
77
  }
78
- }) : a(e.initialValues ?? []);
79
- function i(t) {
80
- let n = r.value.findIndex((e) => e.key === t);
78
+ }) : r(t.initialValues ?? []);
79
+ function a(e) {
80
+ let n = i.value.findIndex((t) => t.key === e);
81
81
  if (n !== -1) {
82
- let i = r.value[n] ?? null;
83
- if (i === null) return;
84
- if (i.direction === "asc") {
85
- r.value = e.enableMultiSort ? r.value.map((e, t) => t === n ? {
82
+ let r = i.value[n] ?? null;
83
+ if (r === null) return;
84
+ if (r.direction === "asc") {
85
+ i.value = t.enableMultiSort ? i.value.map((e, t) => t === n ? {
86
86
  ...e,
87
87
  direction: "desc"
88
88
  } : e) : [{
89
89
  direction: "desc",
90
- key: t
90
+ key: e
91
91
  }];
92
92
  return;
93
93
  }
94
- r.value = r.value.filter((e, t) => t !== n);
94
+ i.value = i.value.filter((e, t) => t !== n);
95
95
  return;
96
96
  }
97
- r.value = e.enableMultiSort ? [{
97
+ i.value = t.enableMultiSort ? [{
98
98
  direction: "asc",
99
- key: t
100
- }, ...r.value] : [{
99
+ key: e
100
+ }, ...i.value] : [{
101
101
  direction: "asc",
102
- key: t
102
+ key: e
103
103
  }];
104
104
  }
105
- function o(t) {
106
- return e.keys.includes(t);
105
+ function o(e) {
106
+ return t.keys.includes(e);
107
107
  }
108
108
  function s(e) {
109
- return r.value.find((t) => t.key === e) ?? null;
109
+ return i.value.find((t) => t.key === e) ?? null;
110
110
  }
111
111
  function c() {
112
- r.value = [];
112
+ i.value = [];
113
113
  }
114
114
  return {
115
115
  existsSort: o,
116
116
  getSort: s,
117
117
  resetSort: c,
118
- setSort: i,
119
- values: n(() => r.value)
118
+ setSort: a,
119
+ values: e(() => i.value)
120
120
  };
121
121
  }
122
122
  //#endregion