@tesouro/embedded-components-react 0.5.213 → 0.5.215

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 (278) hide show
  1. package/dist/index.d.ts +88 -1
  2. package/dist/index.js +2 -2
  3. package/dist/lib/BillPayWidget.js +1 -1
  4. package/dist/lib/ReceivablesWidget.d.ts +88 -1
  5. package/dist/lib/ReceivablesWidget.js +1 -1
  6. package/dist/libs/shared/util-validation/dist/index5.js +7 -0
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/data-access/dist/index.js +3 -0
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{data-access/dist/index38.js → bill-upload/data-access/dist/index2.js} +7 -6
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/data-access/dist/index3.js +33 -0
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{data-access/dist/index35.js → bill-upload/data-access/dist/index4.js} +6 -7
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/feature/dist/index.js +7 -0
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/feature/dist/index2.js +8 -0
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/feature/dist/index3.js +13 -0
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/feature/dist/index4.js +133 -0
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/feature/dist/index5.js +3 -0
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/feature/dist/index6.js +5 -0
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/feature/dist/index7.js +4 -0
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/feature/dist/index8.js +56 -0
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/feature/dist/index9.js +1 -0
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/ui/dist/index.js +4 -0
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/ui/dist/index2.js +10 -0
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/ui/dist/index3.js +9 -0
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/ui/dist/index4.js +93 -0
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/ui/dist/index6.js +2 -0
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index.js +29 -33
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/invalidation.js +11 -0
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index6.js → lib/invalidatePayableQueries/approvalDecisionQueries.js} +8 -8
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index7.js → lib/invalidatePayableQueries/approvalRequestWatch.js} +5 -5
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index3.js → lib/invalidatePayableQueries/cleanUpDeletedPayableQueries.js} +4 -4
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index9.js → lib/invalidatePayableQueries/hasLiveScheduledRecord.js} +5 -5
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/lib/invalidatePayableQueries/index.js +6 -0
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index8.js → lib/invalidatePayableQueries/invalidateDeletedPayableQueries.js} +5 -5
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index4.js → lib/invalidatePayableQueries/invalidatePayableQueries.js} +5 -5
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index5.js → lib/invalidatePayableQueries/payableProjectionPolling.js} +1 -1
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index10.js → lib/invalidatePayableQueries/reconcileCancelledPaymentQueries.js} +7 -7
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index12.js → lib/invalidatePayableQueries/reconcileSubmittedForApprovalQueries.js} +3 -3
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index13.js → lib/payableOcrQueryOptions.js} +4 -4
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index40.js → lib/payablePolicyAssignmentQueryOptions.js} +4 -4
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index2.js → lib/queryKeys.js} +4 -4
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index21.js → lib/useApplyDuplicateVerdictsMutation.js} +23 -25
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index16.js → lib/usePayableApprovalRequests.js} +11 -11
  42. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index17.js → lib/usePayableHistoryQuery.js} +6 -6
  43. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index18.js → lib/usePayableLineItems.js} +10 -10
  44. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/lib/usePayableMutations/index.js +12 -0
  45. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index22.js → lib/usePayableMutations/useAttachPayableFileMutation.js} +7 -7
  46. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index23.js → lib/usePayableMutations/useCancelPayableMutation.js} +7 -7
  47. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/lib/usePayableMutations/useCancelScheduledPaymentMutation.js +40 -0
  48. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/lib/usePayableMutations/useCreatePayableMutation.js +34 -0
  49. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/lib/usePayableMutations/useDeletePayableFileMutation.js +34 -0
  50. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/lib/usePayableMutations/useDeletePayableMutation.js +34 -0
  51. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index28.js → lib/usePayableMutations/useForceApprovePayableMutation.js} +7 -7
  52. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index29.js → lib/usePayableMutations/useForceRejectPayableMutation.js} +7 -7
  53. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index32.js → lib/usePayableMutations/useReopenPayableMutation.js} +7 -7
  54. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index33.js → lib/usePayableMutations/useSubmitPayableForApprovalMutation.js} +9 -9
  55. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index34.js → lib/usePayableMutations/useUpdatePayableMutation.js} +7 -7
  56. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index36.js → lib/usePayableMutations/useValidatePayableMutation.js} +5 -5
  57. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index19.js → lib/usePayablePaymentRecordsQuery.js} +8 -8
  58. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index47.js → lib/usePayableSuggestionsQuery.js} +7 -7
  59. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/lib/usePayablesQueries/index.js +6 -0
  60. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index39.js → lib/usePayablesQueries/useFirstPayablesPagesQuery.js} +8 -8
  61. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index41.js → lib/usePayablesQueries/usePayableQuery.js} +8 -8
  62. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index42.js → lib/usePayablesQueries/usePayablesByIdsQueries.js} +6 -6
  63. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index43.js → lib/usePayablesQueries/usePayablesCountQueries.js} +7 -7
  64. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index44.js → lib/usePayablesQueries/usePayablesQuery.js} +7 -7
  65. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/lib/usePayablesQueries/usePayablesTotalCountQuery.js +29 -0
  66. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +11 -23
  67. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index10.js +11 -5
  68. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index11.js +12 -13
  69. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index12.js +66 -23
  70. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index13.js +9 -62
  71. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index14.js +29 -2
  72. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js +160 -82
  73. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index16.js +26 -5
  74. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index17.js +22 -31
  75. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index18.js +38 -35
  76. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index19.js +92 -164
  77. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index20.js +82 -45
  78. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index21.js +6 -1
  79. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index22.js +44 -47
  80. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index23.js +112 -12
  81. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index24.js +184 -8
  82. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +72 -9
  83. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index26.js +31 -65
  84. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +89 -10
  85. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index28.js +401 -15
  86. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index29.js +12 -161
  87. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index30.js +83 -24
  88. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index31.js +79 -22
  89. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index32.js +222 -30
  90. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index33.js +38 -93
  91. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index34.js +247 -79
  92. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index35.js +23 -4
  93. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index36.js +612 -45
  94. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index37.js +4 -116
  95. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index38.js +27 -179
  96. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index39.js +232 -70
  97. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index4.js +15 -38
  98. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js +3 -35
  99. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js +3 -90
  100. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +36 -405
  101. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +1 -16
  102. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +23 -83
  103. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +3 -80
  104. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +124 -228
  105. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +8 -43
  106. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +6 -251
  107. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +81 -22
  108. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index5.js +38 -6
  109. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +20 -625
  110. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +22 -4
  111. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +28 -42
  112. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +82 -256
  113. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +50 -3
  114. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +260 -3
  115. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +27 -38
  116. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +396 -1
  117. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +332 -6
  118. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +4 -13
  119. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index6.js +217 -16
  120. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +5 -130
  121. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +107 -2
  122. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +1 -6
  123. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +24 -129
  124. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index7.js +84 -14
  125. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index8.js +46 -37
  126. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index9.js +12 -223
  127. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/data-access/dist/index.js +4 -0
  128. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{data-access/dist/index30.js → pay-bill/data-access/dist/index2.js} +7 -7
  129. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/data-access/dist/index3.js +7 -0
  130. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{data-access/dist/index11.js → pay-bill/data-access/dist/index4.js} +5 -4
  131. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{data-access/dist/index20.js → pay-bill/data-access/dist/index5.js} +8 -8
  132. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index.js +3 -0
  133. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index10.js +179 -0
  134. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index11.js +51 -0
  135. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index12.js +1 -0
  136. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index13.js +5 -0
  137. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index14.js +73 -0
  138. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index15.js +1 -0
  139. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index2.js +18 -0
  140. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index3.js +26 -0
  141. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index4.js +72 -0
  142. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index5.js +2 -0
  143. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index6.js +9 -0
  144. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index7.js +7 -0
  145. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index8.js +35 -0
  146. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index9.js +41 -0
  147. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index.js +10 -0
  148. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index108.js → pay-bill/ui/dist/index10.js} +4 -4
  149. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index11.js +2 -0
  150. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index103.js → pay-bill/ui/dist/index2.js} +2 -2
  151. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index104.js → pay-bill/ui/dist/index3.js} +3 -3
  152. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index4.js +2 -0
  153. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index5.js +13 -0
  154. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index101.js → pay-bill/ui/dist/index6.js} +5 -5
  155. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index7.js +2 -0
  156. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index106.js → pay-bill/ui/dist/index8.js} +2 -2
  157. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index107.js → pay-bill/ui/dist/index9.js} +1 -1
  158. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +10 -22
  159. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index100.js +2 -12
  160. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index89.js +3 -6
  161. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index90.js +28 -7
  162. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index91.js +2 -93
  163. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index92.js +7 -0
  164. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index93.js +34 -2
  165. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index94.js +2 -7
  166. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index95.js +12 -28
  167. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index96.js +108 -2
  168. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index97.js +2 -7
  169. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index98.js +8 -32
  170. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index99.js +52 -2
  171. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/duplicateVerdict.js +7 -0
  172. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/groupDuplicates.js +40 -0
  173. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/payableRemoval.js +8 -0
  174. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index.js +7 -7
  175. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index10.js +63 -67
  176. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index11.js +160 -1
  177. package/dist/libs/tesouro-embedded-components-react/{bill-pay-widget/data-access/dist/index31.js → invoicing-widget/data-access/dist/index12.js} +0 -2
  178. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index2.js +32 -25
  179. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index6.js +25 -200
  180. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index7.js +175 -1
  181. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index8.js +1 -101
  182. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index9.js +92 -71
  183. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index.js +1 -1
  184. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index10.js +44 -100
  185. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index11.js +93 -421
  186. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index12.js +442 -112
  187. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index13.js +166 -157
  188. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index14.js +150 -204
  189. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index15.js +202 -31
  190. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index16.js +32 -145
  191. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index17.js +145 -37
  192. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index18.js +44 -58
  193. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index19.js +113 -87
  194. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index20.js +58 -116
  195. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index21.js +83 -357
  196. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index22.js +111 -65
  197. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index23.js +449 -99
  198. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index24.js +68 -281
  199. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index25.js +115 -0
  200. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index26.js +314 -0
  201. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index5.js +1 -1
  202. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index6.js +34 -23
  203. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index8.js +444 -92
  204. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index9.js +113 -52
  205. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index.js +18 -14
  206. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index10.js +2 -92
  207. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index11.js +95 -3
  208. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index12.js +3 -24
  209. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index13.js +24 -1
  210. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index14.js +1 -3
  211. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index15.js +1 -1
  212. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index16.js +3 -18
  213. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index17.js +18 -1
  214. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index18.js +0 -3
  215. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index19.js +0 -8
  216. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index20.js +11 -0
  217. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index21.js +1 -264
  218. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index22.js +258 -42
  219. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index23.js +38 -62
  220. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index24.js +61 -463
  221. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index25.js +457 -89
  222. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index26.js +91 -234
  223. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index27.js +89 -82
  224. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index28.js +22 -338
  225. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index29.js +236 -0
  226. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index3.js +26 -204
  227. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index30.js +3 -0
  228. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index31.js +249 -0
  229. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index32.js +93 -0
  230. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index33.js +344 -0
  231. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index4.js +208 -32
  232. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index5.js +29 -202
  233. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index6.js +183 -137
  234. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index7.js +157 -12
  235. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index8.js +10 -19
  236. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index9.js +23 -2
  237. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +40 -40
  238. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js +167 -156
  239. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +66 -34
  240. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  241. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index8.js +1 -1
  242. package/dist/packages/shared-ui-shadcn/dist/index.js +13 -13
  243. package/package.json +1 -1
  244. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index14.js +0 -32
  245. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index15.js +0 -8
  246. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index24.js +0 -40
  247. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index25.js +0 -34
  248. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index26.js +0 -34
  249. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index27.js +0 -34
  250. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index37.js +0 -15
  251. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index45.js +0 -29
  252. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index46.js +0 -6
  253. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +0 -11
  254. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js +0 -10
  255. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +0 -84
  256. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js +0 -24
  257. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +0 -22
  258. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index69.js +0 -31
  259. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +0 -86
  260. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index71.js +0 -50
  261. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js +0 -262
  262. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js +0 -35
  263. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index74.js +0 -395
  264. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index75.js +0 -310
  265. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index76.js +0 -4
  266. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index77.js +0 -7
  267. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index78.js +0 -114
  268. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index79.js +0 -1
  269. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index80.js +0 -27
  270. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index102.js +0 -2
  271. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index105.js +0 -2
  272. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index109.js +0 -2
  273. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index110.js +0 -14
  274. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index111.js +0 -108
  275. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index112.js +0 -2
  276. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index113.js +0 -10
  277. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index114.js +0 -52
  278. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index115.js +0 -2
@@ -2,287 +2,74 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { Calendar as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
6
- import { EmbeddedToaster as t } from "../../../shared/ui/dist/lib/EmbeddedToaster.js";
7
- import "../../../shared/ui/dist/index.js";
8
- import { useAnalyticsTrack as n } from "../../../shared/feature/dist/lib/analytics/hooks.js";
9
- import { WidgetProvider as r } from "../../../shared/feature/dist/lib/WidgetProvider/WidgetProvider.js";
10
- import "../../../shared/feature/dist/index.js";
11
- import { CounterpartFormSheet as i } from "../../../shared/counterpart-management/ui/dist/index9.js";
12
- import { CounterpartSelector as a } from "../../../shared/counterpart-management/feature/dist/lib/CounterpartSelector.js";
13
- import "../../../shared/counterpart-management/feature/dist/index.js";
14
- import { ReceivablesWidgetAnalyticsEvent as o, WIDGET_NAME as s } from "./index2.js";
15
- import { PAGE_SIZE_OPTIONS as c } from "./index4.js";
16
- import { ReceivableActionDialog as l } from "../../ui/dist/index4.js";
17
- import { ReceivableBankAccountSection as u } from "../../ui/dist/index5.js";
18
- import { ReceivableBillingSection as d } from "../../ui/dist/index10.js";
19
- import { ReceivableDetailsSheet as f } from "../../ui/dist/index21.js";
20
- import { ReceivableFormSheet as p } from "../../ui/dist/index24.js";
21
- import { ReceivablePaymentDialog as m } from "../../ui/dist/index25.js";
22
- import { ReceivableRemindersSection as h } from "../../ui/dist/index26.js";
23
- import { ReceivableSendDialog as g } from "../../ui/dist/index27.js";
24
- import { ReceivablesScreen as _ } from "../../ui/dist/index28.js";
25
- import "../../ui/dist/index.js";
26
- import { ReceivableAttachmentsSection as v } from "./index5.js";
27
- import { MeasureUnitsManagerContainer as y } from "../../../shared/product-catalog/feature/dist/lib/MeasureUnitsManagerContainer.js";
28
- import { ProductSelector as b } from "../../../shared/product-catalog/feature/dist/lib/ProductSelector.js";
29
- import "../../../shared/product-catalog/feature/dist/index.js";
30
- import { useReceivablesWidget as x } from "./index23.js";
31
- import { useEffect as S, useId as C, useState as w } from "react";
32
- import { Fragment as T, jsx as E, jsxs as D } from "react/jsx-runtime";
5
+ import { buildReceivableRows as e, statusFilterOptions as t, typeForTab as n } from "./index12.js";
6
+ import { useReceivablesQuery as r } from "../../data-access/dist/index10.js";
7
+ import "../../data-access/dist/index.js";
8
+ import { useCallback as i, useEffect as a, useMemo as o, useState as s } from "react";
33
9
  //#region ../../libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index24.js
34
- function O({ counterpartFormLabels: r, counterpartMessageLabels: s, defaultTab: O, detailsLabels: k, embeddedBankName: A, enabledTabs: j, formLabels: M, measureUnitDeleteLabels: N, measureUnitsLabels: P, messageLabels: F, onReceivableCreated: I, onReceivableOpened: L, onTemplateSettingsClick: R, pageSizeOptions: z = c, paymentLabels: B, productMessageLabels: V, screenLabels: H, sendLabels: U, actionLabels: W }) {
35
- let G = n();
36
- S(() => {
37
- G(o.Mounted);
38
- }, [G]);
39
- let K = x({
40
- counterpartMessageLabels: s,
41
- defaultTab: O,
42
- embeddedBankName: A,
43
- enabledTabs: j,
44
- messageLabels: F,
45
- onReceivableCreated: I,
46
- onReceivableOpened: L
47
- }), [q, J] = w(!1), Y = C(), X = C(), Z = C();
48
- return /* @__PURE__ */ D(T, { children: [
49
- /* @__PURE__ */ E(t, {}),
50
- /* @__PURE__ */ E(_, {
51
- rows: K.table.rows,
52
- activeTab: K.activeTab,
53
- enabledTabs: K.enabledTabs,
54
- onTabChange: K.setActiveTab,
55
- isLoading: K.table.isLoading,
56
- isError: K.table.isError,
57
- sorting: K.table.sorting,
58
- onSortingChange: K.table.onSortingChange,
59
- pageSize: K.table.pageSize,
60
- onPageSizeChange: K.table.onPageSizeChange,
61
- pageSizeOptions: z,
62
- hasNextPage: K.table.hasNextPage,
63
- hasPrevPage: K.table.hasPrevPage,
64
- onNextPage: K.table.onNextPage,
65
- onPrevPage: K.table.onPrevPage,
66
- searchValue: K.table.searchValue,
67
- onSearchChange: K.table.onSearchChange,
68
- statusFilter: K.table.statusFilter,
69
- statusOptions: K.table.statusOptions,
70
- onStatusFilterChange: K.table.onStatusFilterChange,
71
- isFiltering: K.table.isFiltering,
72
- onCreateClick: K.openCreate,
73
- onTemplateSettingsClick: R,
74
- onRowClick: K.handleRowClick,
75
- onActionClick: K.handleActionClick,
76
- onRetry: K.table.onRetry,
77
- labels: H
78
- }),
79
- /* @__PURE__ */ E(p, {
80
- open: K.form.open,
81
- onOpenChange: (e) => {
82
- e || K.form.close();
83
- },
84
- mode: K.form.mode,
85
- values: K.form.sheetValues,
86
- errors: K.form.errors,
87
- currencyOptions: K.form.currencyOptions,
88
- unitOptions: K.form.lineItemUnitOptions,
89
- currencySymbol: K.form.currencySymbol,
90
- lineItemControls: K.form.lineItemControls,
91
- autoFocusLineItemId: K.form.autoFocusLineItemId,
92
- lineItemsLoading: K.form.lineItemsLoading,
93
- inProgress: K.form.isSubmitting,
94
- customerSelector: /* @__PURE__ */ E(a, {
95
- mode: "customer",
96
- value: K.form.values.customerId || void 0,
97
- onValueChange: (e) => K.form.updateValues({ customerId: e }),
98
- onCreateClick: K.form.openCounterpartCreate
99
- }),
100
- renderProductSelector: (e, t) => /* @__PURE__ */ E(b, {
101
- ...t,
102
- inputValue: e.name,
103
- selectedProductId: K.form.values.lineItems.find((t) => t.id === e.id)?.productId || void 0,
104
- currency: K.form.values.currency,
105
- maxLength: 100,
106
- onInputValueChange: (t) => K.form.updateLineItem(e.id, { name: t }),
107
- onProductSelect: (t) => K.form.selectProduct(e.id, t)
108
- }),
109
- onChange: K.form.updateValues,
110
- onLineItemChange: K.form.updateLineItem,
111
- onLineItemCommit: K.form.commitLineItem,
112
- onLineItemQuantityStep: K.form.stepLineItem,
113
- onTaxRateCommit: K.form.commitTaxRate,
114
- onDiscountFocus: K.form.focusDiscount,
115
- onDiscountCommit: K.form.commitDiscount,
116
- totals: K.form.totalsView,
117
- onManageUnits: () => J(!0),
118
- onAddLineItem: K.form.addLineItem,
119
- onRemoveLineItem: K.form.removeLineItem,
120
- showDueDateField: K.form.showDueDateField,
121
- billingSection: K.form.showBillingSection && /* @__PURE__ */ E(d, {
122
- idPrefix: Y,
123
- paymentTerms: K.form.paymentTerms.view,
124
- paymentTermsError: K.form.errors.paymentTermsId,
125
- disabled: K.form.isSubmitting,
126
- onPaymentTermsChange: K.form.paymentTerms.select,
127
- onCustomDatePickerOpenChange: K.form.paymentTerms.changeCustomDatePickerOpen,
128
- customDateCalendar: /* @__PURE__ */ E(e, {
129
- mode: "single",
130
- captionLayout: "dropdown",
131
- ...K.form.paymentTerms.calendar,
132
- onSelect: K.form.paymentTerms.selectCustomDate
133
- }),
134
- labels: M
135
- }),
136
- remindersSection: K.form.reminders.view && /* @__PURE__ */ E(h, {
137
- idPrefix: Z,
138
- view: K.form.reminders.view,
139
- onToggle: K.form.reminders.toggle,
140
- onPaymentReminderSelect: K.form.reminders.selectPaymentReminder,
141
- onOverdueReminderSelect: K.form.reminders.selectOverdueReminder,
142
- onBeforeDueInputChange: K.form.reminders.changeBeforeDueInput,
143
- onBeforeDueSave: K.form.reminders.saveBeforeDue,
144
- onOverdueTermChange: K.form.reminders.changeOverdueTerm,
145
- onOverdueAddTerm: K.form.reminders.addOverdueTerm,
146
- onOverdueClear: K.form.reminders.clearOverdueTerms,
147
- onOverdueSave: K.form.reminders.saveOverdue,
148
- labels: M
149
- }),
150
- bankAccountSection: /* @__PURE__ */ E(u, {
151
- idPrefix: X,
152
- view: K.form.bankAccount.view,
153
- disabled: K.form.isSubmitting,
154
- onAccountSelect: K.form.bankAccount.selectAccount,
155
- onAddAccountClick: K.form.bankAccount.openAddAccount,
156
- onFormChange: K.form.bankAccount.updateAccountForm,
157
- onFormSave: K.form.bankAccount.saveAccount,
158
- onFormCancel: K.form.bankAccount.cancelAddAccount,
159
- labels: M
160
- }),
161
- attachmentsSection: K.form.attachmentsView && /* @__PURE__ */ E(v, {
162
- view: K.form.attachmentsView,
163
- disabled: K.form.isSubmitting,
164
- onFilesSelect: K.form.selectAttachmentFiles,
165
- onIncludeInEmailChange: K.form.setAttachmentIncludeInEmail,
166
- onRemove: K.form.removeAttachment,
167
- labels: M
168
- }),
169
- cancelDisabled: K.form.attachmentsUploading,
170
- saveDisabled: K.form.saveDisabled,
171
- onSubmit: K.form.submit,
172
- onCancel: K.form.close,
173
- labels: M
174
- }),
175
- /* @__PURE__ */ E(f, {
176
- open: K.detailsOpen,
177
- onOpenChange: (e) => {
178
- e || K.closeDetails();
179
- },
180
- details: K.details.detailsView,
181
- isLoading: K.details.isLoading,
182
- isError: K.details.isError,
183
- onActionClick: K.handleDetailsActionClick,
184
- onClose: K.closeDetails,
185
- labels: k
186
- }),
187
- /* @__PURE__ */ E(g, {
188
- open: K.actions.sendOpen,
189
- onOpenChange: (e) => {
190
- e || K.actions.closeSend();
191
- },
192
- values: K.actions.sendValues,
193
- errors: K.actions.sendErrors,
194
- inProgress: K.actions.sendInProgress,
195
- onChange: (e) => K.actions.setSendValues((t) => ({
196
- ...t,
197
- ...e
198
- })),
199
- onSubmit: K.actions.submitSend,
200
- onCancel: K.actions.closeSend,
201
- labels: U
202
- }),
203
- /* @__PURE__ */ E(m, {
204
- open: K.actions.paymentOpen,
205
- onOpenChange: (e) => {
206
- e || K.actions.closePayment();
207
- },
208
- values: K.actions.paymentValues,
209
- errors: K.actions.paymentErrors,
210
- inProgress: K.actions.paymentInProgress,
211
- onChange: (e) => K.actions.setPaymentValues((t) => ({
212
- ...t,
213
- ...e
214
- })),
215
- onSubmit: K.actions.submitPayment,
216
- onCancel: K.actions.closePayment,
217
- labels: B
218
- }),
219
- K.actions.actionDialog && /* @__PURE__ */ E(l, {
220
- open: !!K.actions.actionTarget,
221
- onOpenChange: (e) => {
222
- e || K.actions.closeAction();
223
- },
224
- title: K.actions.actionDialog.title,
225
- description: K.actions.actionDialog.description,
226
- confirmLabel: K.actions.actionDialog.confirmLabel,
227
- destructive: K.actions.actionDialog.destructive,
228
- error: K.actions.actionError,
229
- inProgress: K.actions.actionInProgress,
230
- onConfirm: K.actions.confirmAction,
231
- onCancel: K.actions.closeAction,
232
- labels: W
233
- }),
234
- /* @__PURE__ */ E(i, {
235
- open: K.form.counterpartView === "create",
236
- onOpenChange: (e) => {
237
- e || K.form.counterpartForm.close();
238
- },
239
- mode: "create",
240
- values: K.form.counterpartForm.values,
241
- errors: K.form.counterpartForm.errors,
242
- stateOptions: K.form.stateOptions,
243
- inProgress: K.form.counterpartForm.isSubmitting,
244
- onChange: (e) => K.form.counterpartForm.setValues((t) => ({
245
- ...t,
246
- ...e
247
- })),
248
- onAddressChange: (e) => K.form.counterpartForm.setValues((t) => ({
249
- ...t,
250
- address: {
251
- ...t.address,
252
- ...e
253
- }
254
- })),
255
- onSubmit: K.form.counterpartForm.submit,
256
- onCancel: K.form.counterpartForm.close,
257
- labels: r
258
- }),
259
- /* @__PURE__ */ E(y, {
260
- open: q,
261
- onClose: () => J(!1),
262
- managerLabels: P,
263
- deleteLabels: N,
264
- messageLabels: V
265
- })
266
- ] });
267
- }
268
- function k({ baseUrl: e, widgetToken: t, organizationId: n, configClient: i, gatewayRouting: a, linkComponent: o, implementation: c, uiFramework: l, errorFallback: u, onError: d, analytics: f, disclosuresAcceptance: p, providerLabels: m, ...h }) {
269
- return /* @__PURE__ */ E(r, {
270
- widgetName: s,
271
- baseUrl: e,
272
- widgetToken: t,
273
- organizationId: n,
274
- configClient: i,
275
- gatewayRouting: a,
276
- linkComponent: o,
277
- implementation: c,
278
- uiFramework: l,
279
- errorFallback: u,
280
- onError: d,
281
- analytics: f,
282
- disclosuresAcceptance: p,
283
- providerLabels: m,
284
- children: /* @__PURE__ */ E(O, { ...h })
285
- });
10
+ var c = [];
11
+ function l({ activeTab: l, messages: d }) {
12
+ let [f, p] = s([]), [m, h] = s(10), [g, _] = s(), [v, y] = s(""), [b, x] = s(""), [S, C] = s("all");
13
+ a(() => {
14
+ _(void 0), C("all");
15
+ }, [l]), a(() => {
16
+ let e = setTimeout(() => {
17
+ x(v), _(void 0);
18
+ }, 300);
19
+ return () => clearTimeout(e);
20
+ }, [v]);
21
+ let w = f[0]?.id, T = w ? u[w] : void 0, E = f[0] ? f[0].desc ? "desc" : "asc" : void 0, D = r({
22
+ type: n(l),
23
+ limit: m,
24
+ pagination_token: g,
25
+ search_text: b || void 0,
26
+ status: S === "all" ? void 0 : S,
27
+ ...T ? {
28
+ sort: T,
29
+ order: E
30
+ } : {}
31
+ }), O = D.data?.data ?? c, k = o(() => new Map(O.map((e) => [e.id, e])), [O]), A = i((e) => k.get(e), [k]), j = o(() => e({
32
+ receivables: O,
33
+ messages: d
34
+ }), [d, O]), M = !!b || S !== "all", N = i((e) => {
35
+ let t = typeof e == "function" ? e(f) : e;
36
+ p(t), _(void 0);
37
+ }, [f]), P = i((e) => {
38
+ h(e), _(void 0);
39
+ }, []), F = i((e) => {
40
+ C(e), _(void 0);
41
+ }, []), I = i(() => _(D.data?.next_pagination_token ?? void 0), [D.data?.next_pagination_token]), L = i(() => _(D.data?.prev_pagination_token ?? void 0), [D.data?.prev_pagination_token]), R = i(() => {
42
+ D.refetch();
43
+ }, [D]);
44
+ return {
45
+ rows: j,
46
+ isLoading: D.isLoading,
47
+ isError: D.isError,
48
+ sorting: f,
49
+ onSortingChange: N,
50
+ pageSize: m,
51
+ onPageSizeChange: P,
52
+ hasNextPage: !!D.data?.next_pagination_token,
53
+ hasPrevPage: !!D.data?.prev_pagination_token,
54
+ onNextPage: I,
55
+ onPrevPage: L,
56
+ searchValue: v,
57
+ onSearchChange: y,
58
+ statusFilter: S,
59
+ statusOptions: t(),
60
+ onStatusFilterChange: F,
61
+ isFiltering: M,
62
+ onRetry: R,
63
+ getReceivableById: A
64
+ };
286
65
  }
66
+ var u = {
67
+ documentLabel: "document_id",
68
+ customerLabel: "counterpart_name",
69
+ status: "status",
70
+ issueDateLabel: "issue_date",
71
+ dueDateLabel: "due_date",
72
+ totalLabel: "total_amount"
73
+ };
287
74
  //#endregion
288
- export { k as ReceivablesWidget, k as default };
75
+ export { l as useReceivablesTable };
@@ -0,0 +1,115 @@
1
+ "use client";
2
+ "use client";
3
+ "use client";
4
+ "use client";
5
+ import { useAnalyticsTrack as e } from "../../../shared/feature/dist/lib/analytics/hooks.js";
6
+ import "../../../shared/feature/dist/index.js";
7
+ import { ReceivablesWidgetAnalyticsEvent as t } from "./index2.js";
8
+ import { coerceEnabledTabs as n, resolveInitialTab as r, tabForType as i, typeForTab as a } from "./index12.js";
9
+ import { RECEIVABLE_MESSAGE_LABELS_EN as o } from "./index13.js";
10
+ import { useReceivableActions as s } from "./index15.js";
11
+ import { useReceivableDetails as c } from "./index16.js";
12
+ import { hasSelectedText as l } from "../../../shared/product-catalog/feature/dist/lib/helpers.js";
13
+ import "../../../shared/product-catalog/feature/dist/index.js";
14
+ import { useReceivableForm as u } from "./index23.js";
15
+ import { useReceivablesTable as d } from "./index24.js";
16
+ import { useCallback as f, useEffect as p, useMemo as m, useState as h } from "react";
17
+ //#region ../../libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index25.js
18
+ function g({ counterpartMessageLabels: g, defaultTab: _, embeddedBankName: v, enabledTabs: y, messageLabels: b, onReceivableCreated: x, onReceivableOpened: S }) {
19
+ let C = e();
20
+ p(() => {
21
+ C(t.Mounted);
22
+ }, [C]);
23
+ let w = m(() => ({
24
+ ...o,
25
+ ...b
26
+ }), [b]), T = m(() => n(y), [y]), [E, D] = h(() => r({
27
+ defaultTab: _,
28
+ enabledTabs: T
29
+ })), [O, k] = h(), [A, j] = h(!1);
30
+ p(() => {
31
+ T.includes(E) || D(r({
32
+ defaultTab: _,
33
+ enabledTabs: T
34
+ }));
35
+ }, [
36
+ E,
37
+ _,
38
+ T
39
+ ]);
40
+ let M = f((e, t) => {
41
+ D(i(t)), k(e), j(!0), x?.(e, t);
42
+ }, [x]), N = d({
43
+ activeTab: E,
44
+ messages: w
45
+ }), P = c({
46
+ selectedReceivableId: O,
47
+ enabled: A,
48
+ messages: w
49
+ }), F = u({
50
+ messages: w,
51
+ counterpartMessageLabels: g,
52
+ embeddedBankName: v,
53
+ onCreated: M
54
+ }), I = f(() => {
55
+ let e = a(E);
56
+ F.openCreate(e === "quote" ? "quote" : "invoice");
57
+ }, [E, F.openCreate]), L = s({
58
+ selectedReceivable: P.receivable,
59
+ messages: w,
60
+ onCreated: M,
61
+ onDeleted: (e) => {
62
+ e === O && (k(void 0), j(!1));
63
+ }
64
+ }), R = f((e) => {
65
+ l() || (k(e.id), j(!0), S?.(e.id, e.type));
66
+ }, [S]);
67
+ return {
68
+ activeTab: E,
69
+ enabledTabs: T,
70
+ setActiveTab: D,
71
+ table: N,
72
+ details: P,
73
+ detailsOpen: A,
74
+ closeDetails: f(() => {
75
+ j(!1), k(void 0);
76
+ }, []),
77
+ form: F,
78
+ openCreate: I,
79
+ actions: L,
80
+ handleRowClick: R,
81
+ handleActionClick: f((e, t) => {
82
+ let n = N.getReceivableById(t.id);
83
+ if (e === "edit") {
84
+ if (n) {
85
+ F.openEdit(n);
86
+ return;
87
+ }
88
+ k(t.id), j(!0);
89
+ return;
90
+ }
91
+ k(t.id), L.openAction(e, t, n ?? null);
92
+ }, [
93
+ L,
94
+ F.openEdit,
95
+ N.getReceivableById
96
+ ]),
97
+ handleDetailsActionClick: f((e, t) => {
98
+ if (e === "edit") {
99
+ P.receivable && (F.openEdit(P.receivable), j(!1));
100
+ return;
101
+ }
102
+ L.openAction(e, {
103
+ id: t.id,
104
+ title: t.title,
105
+ type: t.type
106
+ }, P.receivable ?? null);
107
+ }, [
108
+ L,
109
+ P.receivable,
110
+ F.openEdit
111
+ ])
112
+ };
113
+ }
114
+ //#endregion
115
+ export { g as useReceivablesWidget };