@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.
- package/dist/index.d.ts +88 -1
- package/dist/index.js +2 -2
- package/dist/lib/BillPayWidget.js +1 -1
- package/dist/lib/ReceivablesWidget.d.ts +88 -1
- package/dist/lib/ReceivablesWidget.js +1 -1
- package/dist/libs/shared/util-validation/dist/index5.js +7 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/data-access/dist/index.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{data-access/dist/index38.js → bill-upload/data-access/dist/index2.js} +7 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/data-access/dist/index3.js +33 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{data-access/dist/index35.js → bill-upload/data-access/dist/index4.js} +6 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/feature/dist/index.js +7 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/feature/dist/index2.js +8 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/feature/dist/index3.js +13 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/feature/dist/index4.js +133 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/feature/dist/index5.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/feature/dist/index6.js +5 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/feature/dist/index7.js +4 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/feature/dist/index8.js +56 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/feature/dist/index9.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/ui/dist/index.js +4 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/ui/dist/index2.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/ui/dist/index3.js +9 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/ui/dist/index4.js +93 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/ui/dist/index6.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index.js +29 -33
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/invalidation.js +11 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index6.js → lib/invalidatePayableQueries/approvalDecisionQueries.js} +8 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index7.js → lib/invalidatePayableQueries/approvalRequestWatch.js} +5 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index3.js → lib/invalidatePayableQueries/cleanUpDeletedPayableQueries.js} +4 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index9.js → lib/invalidatePayableQueries/hasLiveScheduledRecord.js} +5 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/lib/invalidatePayableQueries/index.js +6 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index8.js → lib/invalidatePayableQueries/invalidateDeletedPayableQueries.js} +5 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index4.js → lib/invalidatePayableQueries/invalidatePayableQueries.js} +5 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index5.js → lib/invalidatePayableQueries/payableProjectionPolling.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index10.js → lib/invalidatePayableQueries/reconcileCancelledPaymentQueries.js} +7 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index12.js → lib/invalidatePayableQueries/reconcileSubmittedForApprovalQueries.js} +3 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index13.js → lib/payableOcrQueryOptions.js} +4 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index40.js → lib/payablePolicyAssignmentQueryOptions.js} +4 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index2.js → lib/queryKeys.js} +4 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index21.js → lib/useApplyDuplicateVerdictsMutation.js} +23 -25
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index16.js → lib/usePayableApprovalRequests.js} +11 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index17.js → lib/usePayableHistoryQuery.js} +6 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index18.js → lib/usePayableLineItems.js} +10 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/lib/usePayableMutations/index.js +12 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index22.js → lib/usePayableMutations/useAttachPayableFileMutation.js} +7 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index23.js → lib/usePayableMutations/useCancelPayableMutation.js} +7 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/lib/usePayableMutations/useCancelScheduledPaymentMutation.js +40 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/lib/usePayableMutations/useCreatePayableMutation.js +34 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/lib/usePayableMutations/useDeletePayableFileMutation.js +34 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/lib/usePayableMutations/useDeletePayableMutation.js +34 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index28.js → lib/usePayableMutations/useForceApprovePayableMutation.js} +7 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index29.js → lib/usePayableMutations/useForceRejectPayableMutation.js} +7 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index32.js → lib/usePayableMutations/useReopenPayableMutation.js} +7 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index33.js → lib/usePayableMutations/useSubmitPayableForApprovalMutation.js} +9 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index34.js → lib/usePayableMutations/useUpdatePayableMutation.js} +7 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index36.js → lib/usePayableMutations/useValidatePayableMutation.js} +5 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index19.js → lib/usePayablePaymentRecordsQuery.js} +8 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index47.js → lib/usePayableSuggestionsQuery.js} +7 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/lib/usePayablesQueries/index.js +6 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index39.js → lib/usePayablesQueries/useFirstPayablesPagesQuery.js} +8 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index41.js → lib/usePayablesQueries/usePayableQuery.js} +8 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index42.js → lib/usePayablesQueries/usePayablesByIdsQueries.js} +6 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index43.js → lib/usePayablesQueries/usePayablesCountQueries.js} +7 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index44.js → lib/usePayablesQueries/usePayablesQuery.js} +7 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/lib/usePayablesQueries/usePayablesTotalCountQuery.js +29 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +11 -23
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index10.js +11 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index11.js +12 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index12.js +66 -23
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index13.js +9 -62
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index14.js +29 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js +160 -82
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index16.js +26 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index17.js +22 -31
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index18.js +38 -35
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index19.js +92 -164
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index20.js +82 -45
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index21.js +6 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index22.js +44 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index23.js +112 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index24.js +184 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +72 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index26.js +31 -65
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +89 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index28.js +401 -15
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index29.js +12 -161
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index30.js +83 -24
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index31.js +79 -22
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index32.js +222 -30
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index33.js +38 -93
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index34.js +247 -79
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index35.js +23 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index36.js +612 -45
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index37.js +4 -116
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index38.js +27 -179
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index39.js +232 -70
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index4.js +15 -38
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js +3 -35
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js +3 -90
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +36 -405
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +1 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +23 -83
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +3 -80
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +124 -228
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +8 -43
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +6 -251
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +81 -22
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index5.js +38 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +20 -625
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +22 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +28 -42
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +82 -256
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +50 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +260 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +27 -38
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +396 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +332 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +4 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index6.js +217 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +5 -130
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +107 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +1 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +24 -129
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index7.js +84 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index8.js +46 -37
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index9.js +12 -223
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/data-access/dist/index.js +4 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{data-access/dist/index30.js → pay-bill/data-access/dist/index2.js} +7 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/data-access/dist/index3.js +7 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{data-access/dist/index11.js → pay-bill/data-access/dist/index4.js} +5 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{data-access/dist/index20.js → pay-bill/data-access/dist/index5.js} +8 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index10.js +179 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index11.js +51 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index12.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index13.js +5 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index14.js +73 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index15.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index2.js +18 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index3.js +26 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index4.js +72 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index5.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index6.js +9 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index7.js +7 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index8.js +35 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index9.js +41 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index108.js → pay-bill/ui/dist/index10.js} +4 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index11.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index103.js → pay-bill/ui/dist/index2.js} +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index104.js → pay-bill/ui/dist/index3.js} +3 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index4.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index5.js +13 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index101.js → pay-bill/ui/dist/index6.js} +5 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index7.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index106.js → pay-bill/ui/dist/index8.js} +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index107.js → pay-bill/ui/dist/index9.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +10 -22
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index100.js +2 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index89.js +3 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index90.js +28 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index91.js +2 -93
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index92.js +7 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index93.js +34 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index94.js +2 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index95.js +12 -28
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index96.js +108 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index97.js +2 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index98.js +8 -32
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index99.js +52 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/duplicateVerdict.js +7 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/groupDuplicates.js +40 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/payableRemoval.js +8 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index10.js +63 -67
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index11.js +160 -1
- package/dist/libs/tesouro-embedded-components-react/{bill-pay-widget/data-access/dist/index31.js → invoicing-widget/data-access/dist/index12.js} +0 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index2.js +32 -25
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index6.js +25 -200
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index7.js +175 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index8.js +1 -101
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index9.js +92 -71
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index10.js +44 -100
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index11.js +93 -421
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index12.js +442 -112
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index13.js +166 -157
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index14.js +150 -204
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index15.js +202 -31
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index16.js +32 -145
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index17.js +145 -37
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index18.js +44 -58
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index19.js +113 -87
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index20.js +58 -116
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index21.js +83 -357
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index22.js +111 -65
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index23.js +449 -99
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index24.js +68 -281
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index25.js +115 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index26.js +314 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index5.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index6.js +34 -23
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index8.js +444 -92
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index9.js +113 -52
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index.js +18 -14
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index10.js +2 -92
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index11.js +95 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index12.js +3 -24
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index13.js +24 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index14.js +1 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index15.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index16.js +3 -18
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index17.js +18 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index18.js +0 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index19.js +0 -8
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index20.js +11 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index21.js +1 -264
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index22.js +258 -42
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index23.js +38 -62
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index24.js +61 -463
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index25.js +457 -89
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index26.js +91 -234
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index27.js +89 -82
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index28.js +22 -338
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index29.js +236 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index3.js +26 -204
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index30.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index31.js +249 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index32.js +93 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index33.js +344 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index4.js +208 -32
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index5.js +29 -202
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index6.js +183 -137
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index7.js +157 -12
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index8.js +10 -19
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index9.js +23 -2
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +40 -40
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js +167 -156
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +66 -34
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index8.js +1 -1
- package/dist/packages/shared-ui-shadcn/dist/index.js +13 -13
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index14.js +0 -32
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index15.js +0 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index24.js +0 -40
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index25.js +0 -34
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index26.js +0 -34
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index27.js +0 -34
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index37.js +0 -15
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index45.js +0 -29
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index46.js +0 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +0 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js +0 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +0 -84
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js +0 -24
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +0 -22
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index69.js +0 -31
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +0 -86
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index71.js +0 -50
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js +0 -262
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js +0 -35
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index74.js +0 -395
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index75.js +0 -310
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index76.js +0 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index77.js +0 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index78.js +0 -114
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index79.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index80.js +0 -27
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index102.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index105.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index109.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index110.js +0 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index111.js +0 -108
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index112.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index113.js +0 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index114.js +0 -52
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index115.js +0 -2
|
@@ -1,173 +1,101 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { formatMoneyExact as n } from "../../../shared/util/dist/lib/formatMoneyExact.js";
|
|
8
|
-
import { extractApiErrorMessage as r } from "../../../shared/util/dist/lib/apiErrors.js";
|
|
9
|
-
import { useAllBankAccountsQuery as i } from "../../../shared/data-access/dist/lib/bank-account/useAllBankAccountsQuery.js";
|
|
10
|
-
import "../../../shared/data-access/dist/index.js";
|
|
11
|
-
import "../../../shared/ui/dist/index.js";
|
|
12
|
-
import { useAnalyticsCaptureException as a } from "../../../shared/feature/dist/lib/analytics/hooks.js";
|
|
13
|
-
import "../../../shared/feature/dist/index.js";
|
|
14
|
-
import { maskAccountNumber as o } from "../../util/dist/lib/maskAccountNumber.js";
|
|
15
|
-
import { useSchedulePaymentMutation as s } from "../../data-access/dist/index20.js";
|
|
16
|
-
import "../../data-access/dist/index.js";
|
|
17
|
-
import { dateToCalendarKey as c, getDefaultPaymentDate as l, isPastEasternDate as u, isTodayInEastern as d } from "./index12.js";
|
|
18
|
-
import { deriveSourceAccountFunds as f, mapSourceAccountOptions as p } from "./index17.js";
|
|
19
|
-
import { mergePayBillFlowLabels as m } from "./index18.js";
|
|
20
|
-
import { useMemo as h, useState as g } from "react";
|
|
1
|
+
import { formatCalendarDate as e } from "../../../shared/util/dist/lib/formatCalendarDate.js";
|
|
2
|
+
import { derivePayableStatus as t } from "../../util/dist/lib/derivePayableStatus.js";
|
|
3
|
+
import { formatBillMoney as n } from "../../util/dist/lib/formatBillMoney.js";
|
|
4
|
+
import { resolveLineItemAmountMinorUnits as r } from "../../util/dist/lib/resolveLineItemAmount.js";
|
|
5
|
+
import { resolveLineItemQuantity as i } from "../../util/dist/lib/resolveLineItemQuantity.js";
|
|
6
|
+
import { resolveVendor as a, resolveVendorName as o } from "../../util/dist/lib/resolveVendor.js";
|
|
21
7
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index19.js
|
|
22
|
-
function
|
|
23
|
-
return
|
|
8
|
+
function s(e) {
|
|
9
|
+
return e.total_amount ?? e.amount_due ?? void 0;
|
|
24
10
|
}
|
|
25
|
-
function
|
|
26
|
-
|
|
27
|
-
ok: !1,
|
|
28
|
-
error: r.selectDateError
|
|
29
|
-
};
|
|
30
|
-
if (u(e)) return {
|
|
31
|
-
ok: !1,
|
|
32
|
-
error: r.staleDateError
|
|
33
|
-
};
|
|
34
|
-
if (!t) return {
|
|
35
|
-
ok: !1,
|
|
36
|
-
error: r.selectAccountError
|
|
37
|
-
};
|
|
38
|
-
let i = f({
|
|
39
|
-
selectedAccount: t,
|
|
40
|
-
amountDueMinorUnits: n,
|
|
41
|
-
isToday: d(e),
|
|
42
|
-
labels: r
|
|
43
|
-
});
|
|
44
|
-
return i.state === "error" ? {
|
|
45
|
-
ok: !1,
|
|
46
|
-
error: i.message ?? r.todayInsufficientFunds
|
|
47
|
-
} : {
|
|
48
|
-
ok: !0,
|
|
49
|
-
date: e,
|
|
50
|
-
account: t
|
|
51
|
-
};
|
|
11
|
+
function c(e) {
|
|
12
|
+
return typeof e == "string" ? e : "";
|
|
52
13
|
}
|
|
53
|
-
function
|
|
54
|
-
let
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
14
|
+
function l({ payable: l, lineItems: d, ledgerAccounts: f, labels: p, hasScheduledPayment: m, now: h, rejection: g, achInstructions: _, achInstructionsReadable: v = !1 }) {
|
|
15
|
+
let y = l.currency, b = (e) => n(e, y), x = t({
|
|
16
|
+
apiStatus: l.status,
|
|
17
|
+
dueDate: l.due_date,
|
|
18
|
+
scheduledPaymentDate: l.scheduled_payment_date,
|
|
19
|
+
hasScheduledPayment: m,
|
|
20
|
+
now: h
|
|
21
|
+
}), S = a(l), C = o(l), w = e(l.issued_at) || p.notProvided, T = e(l.due_date) || p.notProvided, E = [{
|
|
22
|
+
label: p.vendorRow,
|
|
23
|
+
value: C || p.notProvided,
|
|
24
|
+
secondaryValue: S?.email ?? void 0
|
|
25
|
+
}], D = v ? _?.account_number : void 0;
|
|
26
|
+
D && E.push({
|
|
27
|
+
label: p.bankAccountRow,
|
|
28
|
+
value: p.bankAccountValue(D.slice(-4))
|
|
29
|
+
});
|
|
30
|
+
let O = [
|
|
31
|
+
{
|
|
32
|
+
label: p.invoiceNumberRow,
|
|
33
|
+
value: l.document_id || p.notProvided
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
label: p.issueDateRow,
|
|
37
|
+
value: w
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
label: p.dueDateRow,
|
|
41
|
+
value: T
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
label: p.poNumberRow,
|
|
45
|
+
value: c(l.purchase_order_number) || p.notProvided
|
|
76
46
|
}
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
paymentAmount: J,
|
|
91
|
-
selectedDate: I,
|
|
92
|
-
selectedDateLabel: Y,
|
|
93
|
-
calendarDisabled: K,
|
|
94
|
-
isToday: G,
|
|
95
|
-
selectedAccountId: R,
|
|
96
|
-
accounts: U,
|
|
97
|
-
poweredByBankName: O,
|
|
98
|
-
funds: q,
|
|
99
|
-
isAccountsLoading: B.isLoading,
|
|
100
|
-
isAccountsError: B.isError,
|
|
101
|
-
isSubmitting: V.isPending,
|
|
102
|
-
onDateChange: L,
|
|
103
|
-
onAccountChange: z,
|
|
104
|
-
onReview: () => {
|
|
105
|
-
let t = Z();
|
|
106
|
-
if (!t.ok) {
|
|
107
|
-
e.error(t.error);
|
|
108
|
-
return;
|
|
109
|
-
}
|
|
110
|
-
N(!1), F(!0);
|
|
111
|
-
},
|
|
112
|
-
onCancel: $,
|
|
113
|
-
labels: A.scheduleDialog
|
|
47
|
+
], k = new Map(f.map((e) => [e.id, [e.nominal_code, e.name].filter(Boolean).join(" — ")])), A = d.map((e) => {
|
|
48
|
+
let t = b(e.unit_price), n = String(i(e));
|
|
49
|
+
return {
|
|
50
|
+
id: e.id,
|
|
51
|
+
description: e.name ?? e.description ?? "",
|
|
52
|
+
glCodeLabel: (e.ledger_account_id ? k.get(e.ledger_account_id) : void 0) || p.glCodeMissing,
|
|
53
|
+
quantityLabel: t ? p.quantityValue(n, t) : p.quantityOnlyValue(n),
|
|
54
|
+
amountLabel: b(r(e)) ?? ""
|
|
55
|
+
};
|
|
56
|
+
}), j = [
|
|
57
|
+
{
|
|
58
|
+
label: p.subtotalRow,
|
|
59
|
+
value: l.subtotal
|
|
114
60
|
},
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
value: W?.primaryLabel ?? ""
|
|
123
|
-
}, {
|
|
124
|
-
label: A.paymentDate,
|
|
125
|
-
value: Y ?? ""
|
|
126
|
-
}],
|
|
127
|
-
payTo: {
|
|
128
|
-
name: j,
|
|
129
|
-
email: C,
|
|
130
|
-
methodLabel: A.achMethod,
|
|
131
|
-
fields: _(w) ? [
|
|
132
|
-
{
|
|
133
|
-
label: A.routingNumber,
|
|
134
|
-
value: w.routing_number
|
|
135
|
-
},
|
|
136
|
-
{
|
|
137
|
-
label: A.accountNumber,
|
|
138
|
-
value: w.account_number,
|
|
139
|
-
maskedValue: o(w.account_number)
|
|
140
|
-
},
|
|
141
|
-
{
|
|
142
|
-
label: A.accountHolder,
|
|
143
|
-
value: w.account_holder_name
|
|
144
|
-
}
|
|
145
|
-
] : []
|
|
146
|
-
},
|
|
147
|
-
isSubmitting: V.isPending,
|
|
148
|
-
onBack: () => {
|
|
149
|
-
F(!1), N(!0);
|
|
150
|
-
},
|
|
151
|
-
onCancel: $,
|
|
152
|
-
onSubmit: async () => {
|
|
153
|
-
let t = Z();
|
|
154
|
-
if (!t.ok) {
|
|
155
|
-
F(!1), e.error(t.error), N(!0);
|
|
156
|
-
return;
|
|
157
|
-
}
|
|
158
|
-
try {
|
|
159
|
-
await V.mutateAsync({
|
|
160
|
-
payableId: u,
|
|
161
|
-
paymentDate: c(t.date),
|
|
162
|
-
sourceBankAccountId: t.account.id
|
|
163
|
-
}), $(), e.success(A.scheduledToast);
|
|
164
|
-
} catch (t) {
|
|
165
|
-
H(t, { payable_id: u }), e.error(r(t) ?? A.submitError);
|
|
166
|
-
}
|
|
167
|
-
},
|
|
168
|
-
labels: A.reviewDialog
|
|
61
|
+
{
|
|
62
|
+
label: p.discountsRow,
|
|
63
|
+
value: l.discount
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
label: p.taxRow,
|
|
67
|
+
value: l.tax_amount
|
|
169
68
|
}
|
|
69
|
+
].map(({ label: e, value: t }) => ({
|
|
70
|
+
label: e,
|
|
71
|
+
value: b(t)
|
|
72
|
+
})).filter((e) => !!e.value), M = b(s(l));
|
|
73
|
+
M && j.push({
|
|
74
|
+
label: p.totalRow,
|
|
75
|
+
value: M,
|
|
76
|
+
emphasis: !0
|
|
77
|
+
});
|
|
78
|
+
let N = u(l);
|
|
79
|
+
return {
|
|
80
|
+
title: C,
|
|
81
|
+
subtitle: p.subtitle,
|
|
82
|
+
status: x.status,
|
|
83
|
+
statusTone: x.tone,
|
|
84
|
+
amountDueLabel: b(l.amount_due) ?? b(l.total_amount) ?? "",
|
|
85
|
+
amountPaidLabel: N ? b(l.amount_paid) : void 0,
|
|
86
|
+
paidOnLabel: N ? p.paidOnLabel(N) : void 0,
|
|
87
|
+
invoiceDateLabel: w,
|
|
88
|
+
dueDateLabel: T,
|
|
89
|
+
dueDateTone: x.isOverdue ? "danger" : "default",
|
|
90
|
+
payToItems: E,
|
|
91
|
+
invoiceItems: O,
|
|
92
|
+
lineItems: A,
|
|
93
|
+
totals: j,
|
|
94
|
+
rejection: g
|
|
170
95
|
};
|
|
171
96
|
}
|
|
97
|
+
function u(t) {
|
|
98
|
+
return t.status === "paid" && t.paid_at ? e(t.paid_at.slice(0, 10)) : void 0;
|
|
99
|
+
}
|
|
172
100
|
//#endregion
|
|
173
|
-
export {
|
|
101
|
+
export { u as getPaidAtLabel, l as mapPayableToBillDetails, s as resolveInvoiceTotalMinorUnits };
|
|
@@ -1,49 +1,86 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import {
|
|
6
|
-
import "
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { canReadCounterpartBankAccounts as r } from "./index15.js";
|
|
10
|
-
import { payBillFlowTestIds as i } from "./index16.js";
|
|
11
|
-
import { ReviewTransactionDialog as a } from "../../ui/dist/index101.js";
|
|
12
|
-
import { SchedulePaymentDialog as o } from "../../ui/dist/index108.js";
|
|
13
|
-
import "../../ui/dist/index.js";
|
|
14
|
-
import { usePayBillFlow as s } from "./index19.js";
|
|
15
|
-
import { usePayableAchInstructions as c } from "../../../shared/counterpart-management/feature/dist/lib/usePayableAchInstructions.js";
|
|
16
|
-
import "../../../shared/counterpart-management/feature/dist/index.js";
|
|
17
|
-
import { useImperativeHandle as l } from "react";
|
|
18
|
-
import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
1
|
+
import { formatCalendarDate as e } from "../../../shared/util/dist/lib/formatCalendarDate.js";
|
|
2
|
+
import { derivePayableStatus as t } from "../../util/dist/lib/derivePayableStatus.js";
|
|
3
|
+
import { formatBillMoney as n } from "../../util/dist/lib/formatBillMoney.js";
|
|
4
|
+
import { resolveAmountDueMinorUnits as r } from "../../util/dist/lib/resolveAmountDue.js";
|
|
5
|
+
import { resolveLineItemAmountMinorUnits as i } from "../../util/dist/lib/resolveLineItemAmount.js";
|
|
6
|
+
import { resolveLineItemQuantity as a } from "../../util/dist/lib/resolveLineItemQuantity.js";
|
|
7
|
+
import { resolveVendor as o } from "../../util/dist/lib/resolveVendor.js";
|
|
8
|
+
import { getPaidAtLabel as s, resolveInvoiceTotalMinorUnits as c } from "./index19.js";
|
|
19
9
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index20.js
|
|
20
|
-
function
|
|
21
|
-
let
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}), w =
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
10
|
+
function l({ payable: l, lineItems: u, glCodeOptions: d, glCodeRosterAvailable: f = !0, history: p, paymentHistory: m, approvalPolicy: h, labels: g, hasScheduledPayment: _, rejection: v, payableAchInstructions: y, payableAchInstructionsReadable: b = !1 }) {
|
|
11
|
+
let x = l.currency, S = t({
|
|
12
|
+
apiStatus: l.status,
|
|
13
|
+
dueDate: l.due_date,
|
|
14
|
+
scheduledPaymentDate: l.scheduled_payment_date,
|
|
15
|
+
hasScheduledPayment: _
|
|
16
|
+
}), C = o(l), w = b ? y : void 0, T = w?.account_number, E = !!(w?.account_holder_name && w.routing_number && w.account_number), D = e(l.issued_at) || g.notProvided, O = e(l.due_date) || g.notProvided, k = new Map(d.map((e) => [e.value, e.label])), A = [
|
|
17
|
+
{
|
|
18
|
+
label: g.subtotalRow,
|
|
19
|
+
minorUnits: l.subtotal
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
label: g.discountRow,
|
|
23
|
+
minorUnits: l.discount
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
label: g.taxRow,
|
|
27
|
+
minorUnits: l.tax_amount
|
|
28
|
+
}
|
|
29
|
+
].map((e) => ({
|
|
30
|
+
label: e.label,
|
|
31
|
+
value: n(e.minorUnits, x)
|
|
32
|
+
})).filter((e) => !!e.value), j = n(c(l), x);
|
|
33
|
+
j && A.push({
|
|
34
|
+
label: g.totalRow,
|
|
35
|
+
value: j,
|
|
36
|
+
emphasis: !0
|
|
39
37
|
});
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
38
|
+
let M = s(l);
|
|
39
|
+
return {
|
|
40
|
+
amountDue: n(r(l), x) ?? "",
|
|
41
|
+
amountPaid: M ? n(l.amount_paid, x) : void 0,
|
|
42
|
+
paidOnLabel: M ? g.paidOnLabel(M) : void 0,
|
|
43
|
+
invoiceDateLabel: D,
|
|
44
|
+
dueDateLabel: O,
|
|
45
|
+
dueDateTone: S.isOverdue ? "danger" : "default",
|
|
46
|
+
status: S.status,
|
|
47
|
+
statusTone: S.tone,
|
|
48
|
+
payTo: {
|
|
49
|
+
name: C?.name || g.notProvided,
|
|
50
|
+
email: C?.email ?? "",
|
|
51
|
+
methodLabel: E ? g.paymentInstructionsValue(T?.slice(-4) ?? "") : g.paymentInstructionsNotSet,
|
|
52
|
+
hasPaymentInstructions: E
|
|
53
|
+
},
|
|
54
|
+
invoiceFields: [
|
|
55
|
+
{
|
|
56
|
+
label: g.invoiceDateRow,
|
|
57
|
+
value: D
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
label: g.dueDateRow,
|
|
61
|
+
value: O
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
label: g.invoiceNumberRow,
|
|
65
|
+
value: l.document_id || g.notProvided
|
|
66
|
+
}
|
|
67
|
+
],
|
|
68
|
+
lineItems: u.map((e) => {
|
|
69
|
+
let t = n(e.unit_price, x), r = String(a(e));
|
|
70
|
+
return {
|
|
71
|
+
id: e.id,
|
|
72
|
+
description: e.name ?? e.description ?? "",
|
|
73
|
+
glCodeLabel: e.ledger_account_id ? k.get(e.ledger_account_id) ?? (f ? g.glCodeMissing : g.glCodeUnavailable) : g.glCodeMissing,
|
|
74
|
+
qtyPriceLabel: t ? g.qtyPriceValue(r, t) : g.qtyOnlyValue(r),
|
|
75
|
+
amount: n(i(e), x) ?? ""
|
|
76
|
+
};
|
|
77
|
+
}),
|
|
78
|
+
amountRows: A,
|
|
79
|
+
approvalPolicy: h,
|
|
80
|
+
paymentHistory: m,
|
|
81
|
+
history: p,
|
|
82
|
+
rejection: v
|
|
83
|
+
};
|
|
47
84
|
}
|
|
48
85
|
//#endregion
|
|
49
|
-
export {
|
|
86
|
+
export { l as buildBillDetailView };
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index21.js
|
|
2
|
+
function e({ isUnsavedPromptOpen: e, isLocked: t, isDirty: n }) {
|
|
3
|
+
return e ? "dismiss-prompt" : !t && n ? "prompt" : "close";
|
|
4
|
+
}
|
|
5
|
+
//#endregion
|
|
6
|
+
export { e as resolveEditorDismissal };
|
|
@@ -1,50 +1,47 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { parseApprovalPolicyScript as t } from "../../../shared/approval-policy/util/dist/lib/policyScript.js";
|
|
3
|
-
import { parseApprovalPolicyTrigger as n } from "../../../shared/approval-policy/util/dist/lib/policyTrigger.js";
|
|
4
|
-
import { buildPolicySentence as r, buildPolicyTitle as i } from "../../../shared/approval-policy/feature/dist/lib/policyViewModel.js";
|
|
5
|
-
import "../../../shared/approval-policy/feature/dist/index.js";
|
|
1
|
+
import { formatBillMoney as e } from "../../util/dist/lib/formatBillMoney.js";
|
|
6
2
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index22.js
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
3
|
+
var t = {
|
|
4
|
+
dateLabel: (e) => new Date(e).toLocaleDateString("en-US", {
|
|
5
|
+
month: "short",
|
|
6
|
+
day: "numeric",
|
|
7
|
+
year: "numeric"
|
|
8
|
+
}),
|
|
9
|
+
timeLabel: (e) => new Date(e).toLocaleTimeString(void 0, {
|
|
10
|
+
hour: "numeric",
|
|
11
|
+
minute: "2-digit",
|
|
12
|
+
timeZoneName: "short"
|
|
13
|
+
}),
|
|
14
|
+
byActor: (e, t) => `${e} by ${t}`,
|
|
15
|
+
formatAmount: (t) => e(t) ?? "",
|
|
16
|
+
billCreated: "Bill created",
|
|
17
|
+
createdManually: "Data entered manually",
|
|
18
|
+
createdFromUpload: "File uploaded and scanned automatically",
|
|
19
|
+
createdFromEmail: "File emailed and scanned automatically",
|
|
20
|
+
billDetailsUpdated: "Bill details updated",
|
|
21
|
+
submittedForReview: "Finalized and submitted for review",
|
|
22
|
+
approvalRequested: "Approval requested",
|
|
23
|
+
approved: "Approved",
|
|
24
|
+
approvedAutomatically: "Auto-approved",
|
|
25
|
+
rejected: "Rejected",
|
|
26
|
+
policyOverrideApproved: "Policy override: Approved",
|
|
27
|
+
policyOverrideRejected: "Policy override: Rejected",
|
|
28
|
+
quotedReason: (e) => `"${e}"`,
|
|
29
|
+
cancelled: "Cancelled",
|
|
30
|
+
reopened: "Re-opened",
|
|
31
|
+
paymentReleased: "Payment released",
|
|
32
|
+
paid: (e) => `Paid ${e}`,
|
|
33
|
+
paymentReverted: "Payment reverted",
|
|
34
|
+
billMarkedAsFullyPaid: "Bill marked as fully paid",
|
|
35
|
+
billMarkedAsPartiallyPaid: "Bill marked as partially paid",
|
|
36
|
+
draftDeleted: "Draft deleted",
|
|
37
|
+
fileAttached: "File attached",
|
|
38
|
+
fileRemoved: "File removed",
|
|
39
|
+
creditNoteLinked: "Credit note linked",
|
|
40
|
+
creditNoteUnlinked: "Credit note unlinked",
|
|
41
|
+
lineItemsUpdated: "Line items updated",
|
|
42
|
+
lineItemAdded: "Line item added",
|
|
43
|
+
lineItemUpdated: "Line item updated",
|
|
44
|
+
lineItemRemoved: "Line item removed"
|
|
16
45
|
};
|
|
17
|
-
function o({ policy: a, lookup: o, approvedUserIds: s, approvedRoleIds: c, copy: l }) {
|
|
18
|
-
let u = t(a.script);
|
|
19
|
-
if (!u.groups.length || !u.isSupported) return;
|
|
20
|
-
let d = [];
|
|
21
|
-
for (let [e, t] of u.groups.entries()) {
|
|
22
|
-
let n = [];
|
|
23
|
-
for (let e of [...t.roleIds, ...t.userIds]) {
|
|
24
|
-
let t = o.get(e);
|
|
25
|
-
t && n.push({
|
|
26
|
-
id: e,
|
|
27
|
-
label: t.label,
|
|
28
|
-
approved: t.kind === "user" ? s.has(e) : !!c?.has(e)
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
n.length && d.push({
|
|
32
|
-
id: `group-${e + 1}`,
|
|
33
|
-
chips: n
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
if (!d.length) return;
|
|
37
|
-
let { condition: f, hasKnownAmountBounds: p } = n(a.trigger);
|
|
38
|
-
if (!p) return;
|
|
39
|
-
let m = {
|
|
40
|
-
...e,
|
|
41
|
-
...l
|
|
42
|
-
};
|
|
43
|
-
return {
|
|
44
|
-
title: i(f, m),
|
|
45
|
-
sentence: r(f, m),
|
|
46
|
-
steps: d
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
46
|
//#endregion
|
|
50
|
-
export {
|
|
47
|
+
export { t as PAYABLE_AUDIT_HISTORY_LABELS_EN };
|