@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,207 +1,34 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { PlusIcon as S, TriangleAlertIcon as C } from "lucide-react";
|
|
1
|
+
import { Button as e, Dialog as t, DialogContent as n, DialogDescription as r, DialogFooter as i, DialogHeader as a, DialogTitle as o } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { RECEIVABLE_ACTION_DIALOG_LABELS_EN as s } from "./index4.js";
|
|
3
|
+
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
5
4
|
//#region ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index5.js
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
/* @__PURE__ */ b(l, {
|
|
21
|
-
id: e,
|
|
22
|
-
placeholder: r,
|
|
23
|
-
value: i,
|
|
24
|
-
disabled: d,
|
|
25
|
-
"aria-invalid": !!u,
|
|
26
|
-
onChange: (e) => f(e.target.value),
|
|
27
|
-
onKeyDown: (e) => {
|
|
28
|
-
e.key === "Enter" && e.preventDefault();
|
|
29
|
-
}
|
|
30
|
-
}),
|
|
31
|
-
/* @__PURE__ */ b(s, { errors: u ? [{ message: u }] : [] })
|
|
32
|
-
] }) });
|
|
33
|
-
}
|
|
34
|
-
function E({ idPrefix: e, values: t, errors: n, canCancel: r, isSaving: a, labels: o, onChange: s, onSave: c, onCancel: l }) {
|
|
35
|
-
return /* @__PURE__ */ x("div", {
|
|
36
|
-
className: "ttw:flex ttw:flex-col ttw:gap-4 ttw:rounded-xl ttw:border ttw:border-border ttw:p-3",
|
|
37
|
-
children: [
|
|
38
|
-
/* @__PURE__ */ b(_, {
|
|
39
|
-
variant: "body2",
|
|
40
|
-
children: o.bankAccountFormHeading
|
|
41
|
-
}),
|
|
42
|
-
/* @__PURE__ */ x("div", {
|
|
43
|
-
className: "ttw:flex ttw:gap-4",
|
|
44
|
-
children: [/* @__PURE__ */ b(T, {
|
|
45
|
-
id: `${e}-routing-number`,
|
|
46
|
-
label: o.bankAccountRoutingNumberLabel,
|
|
47
|
-
placeholder: o.bankAccountRoutingNumberPlaceholder,
|
|
48
|
-
value: t.routingNumber,
|
|
49
|
-
error: n.routingNumber,
|
|
50
|
-
disabled: a,
|
|
51
|
-
onChange: (e) => s({ routingNumber: e })
|
|
52
|
-
}), /* @__PURE__ */ b(T, {
|
|
53
|
-
id: `${e}-account-number`,
|
|
54
|
-
label: o.bankAccountAccountNumberLabel,
|
|
55
|
-
placeholder: o.bankAccountAccountNumberPlaceholder,
|
|
56
|
-
value: t.accountNumber,
|
|
57
|
-
error: n.accountNumber,
|
|
58
|
-
disabled: a,
|
|
59
|
-
onChange: (e) => s({ accountNumber: e })
|
|
60
|
-
})]
|
|
61
|
-
}),
|
|
62
|
-
/* @__PURE__ */ x("div", {
|
|
63
|
-
className: "ttw:flex ttw:gap-4",
|
|
64
|
-
children: [/* @__PURE__ */ b(T, {
|
|
65
|
-
id: `${e}-account-holder-name`,
|
|
66
|
-
label: o.bankAccountHolderNameLabel,
|
|
67
|
-
placeholder: o.bankAccountHolderNamePlaceholder,
|
|
68
|
-
value: t.accountHolderName,
|
|
69
|
-
error: n.accountHolderName,
|
|
70
|
-
disabled: a,
|
|
71
|
-
onChange: (e) => s({ accountHolderName: e })
|
|
72
|
-
}), /* @__PURE__ */ b(T, {
|
|
73
|
-
id: `${e}-account-nickname`,
|
|
74
|
-
label: o.bankAccountNicknameLabel,
|
|
75
|
-
optionalSuffix: o.optionalSuffix,
|
|
76
|
-
placeholder: o.bankAccountNicknamePlaceholder,
|
|
77
|
-
value: t.displayName,
|
|
78
|
-
error: n.displayName,
|
|
79
|
-
disabled: a,
|
|
80
|
-
onChange: (e) => s({ displayName: e })
|
|
81
|
-
})]
|
|
82
|
-
}),
|
|
83
|
-
/* @__PURE__ */ x("div", {
|
|
84
|
-
className: "ttw:flex ttw:gap-4",
|
|
85
|
-
children: [r && /* @__PURE__ */ b(i, {
|
|
86
|
-
type: "button",
|
|
87
|
-
variant: "outline",
|
|
88
|
-
className: "ttw:border-border",
|
|
89
|
-
disabled: a,
|
|
90
|
-
onClick: l,
|
|
91
|
-
children: o.bankAccountCancelButton
|
|
92
|
-
}), /* @__PURE__ */ b(i, {
|
|
93
|
-
type: "button",
|
|
94
|
-
disabled: a,
|
|
95
|
-
onClick: c,
|
|
96
|
-
children: o.bankAccountSaveButton
|
|
97
|
-
})]
|
|
98
|
-
})
|
|
99
|
-
]
|
|
100
|
-
});
|
|
101
|
-
}
|
|
102
|
-
function D({ idPrefix: i, view: a, disabled: o, onAccountSelect: s, onAddAccountClick: c, onFormChange: l, onFormSave: T, onFormCancel: D, labels: O }) {
|
|
103
|
-
let k = {
|
|
104
|
-
...v,
|
|
105
|
-
...O
|
|
106
|
-
}, A = `${i}-bank-account`;
|
|
107
|
-
return /* @__PURE__ */ x("div", {
|
|
108
|
-
className: "ttw:flex ttw:flex-col ttw:gap-2.5 ttw:rounded-xl ttw:border ttw:border-border ttw:p-6",
|
|
109
|
-
children: [
|
|
110
|
-
/* @__PURE__ */ x("div", {
|
|
111
|
-
className: "ttw:flex ttw:flex-col ttw:gap-2.5 ttw:pb-4",
|
|
112
|
-
children: [/* @__PURE__ */ b(_, {
|
|
113
|
-
variant: "h4",
|
|
114
|
-
children: k.bankAccountHeading
|
|
115
|
-
}), /* @__PURE__ */ b(_, {
|
|
116
|
-
variant: "body2",
|
|
117
|
-
color: "muted",
|
|
118
|
-
className: "ttw:font-medium",
|
|
119
|
-
children: k.bankAccountDescription
|
|
120
|
-
})]
|
|
121
|
-
}),
|
|
122
|
-
(a.kind === "loading" || a.kind === "picker") && /* @__PURE__ */ x("div", {
|
|
123
|
-
className: "ttw:flex ttw:flex-col ttw:gap-4 ttw:rounded-xl ttw:border ttw:border-border ttw:p-3",
|
|
124
|
-
children: [/* @__PURE__ */ x("div", {
|
|
125
|
-
className: "ttw:flex ttw:flex-col ttw:gap-1",
|
|
126
|
-
children: [/* @__PURE__ */ b(_, {
|
|
127
|
-
variant: "body2",
|
|
128
|
-
children: k.bankAccountLabel
|
|
129
|
-
}), /* @__PURE__ */ b(_, {
|
|
130
|
-
variant: "caption",
|
|
131
|
-
color: "muted",
|
|
132
|
-
children: k.bankAccountHint
|
|
133
|
-
})]
|
|
134
|
-
}), a.kind === "loading" ? /* @__PURE__ */ b(g, { className: "ttw:h-9 ttw:w-full ttw:rounded-md" }) : /* @__PURE__ */ x(u, {
|
|
135
|
-
disabled: o,
|
|
136
|
-
value: a.selected?.value ?? "",
|
|
137
|
-
onValueChange: (e) => {
|
|
138
|
-
if (e === w) {
|
|
139
|
-
c();
|
|
140
|
-
return;
|
|
141
|
-
}
|
|
142
|
-
s(e);
|
|
143
|
-
},
|
|
144
|
-
children: [/* @__PURE__ */ b(m, {
|
|
145
|
-
id: A,
|
|
146
|
-
className: "ttw:w-full",
|
|
147
|
-
"aria-label": k.bankAccountSelectorLabel,
|
|
148
|
-
children: /* @__PURE__ */ b(h, {
|
|
149
|
-
placeholder: k.bankAccountPlaceholder,
|
|
150
|
-
children: a.selected && /* @__PURE__ */ x("span", {
|
|
151
|
-
className: "ttw:flex ttw:min-w-0 ttw:flex-1 ttw:items-center ttw:justify-between ttw:gap-2",
|
|
152
|
-
children: [/* @__PURE__ */ b("span", {
|
|
153
|
-
className: "ttw:truncate",
|
|
154
|
-
children: a.selected.label
|
|
155
|
-
}), a.selected.sourceLabel && /* @__PURE__ */ b(r, {
|
|
156
|
-
variant: "secondary",
|
|
157
|
-
className: "ttw:shrink-0",
|
|
158
|
-
children: a.selected.sourceLabel
|
|
159
|
-
})]
|
|
160
|
-
})
|
|
161
|
-
})
|
|
162
|
-
}), /* @__PURE__ */ x(d, { children: [a.options.map((e) => /* @__PURE__ */ b(f, {
|
|
163
|
-
value: e.value,
|
|
164
|
-
children: /* @__PURE__ */ x("span", {
|
|
165
|
-
className: "ttw:flex ttw:min-w-0 ttw:flex-1 ttw:items-center ttw:justify-between ttw:gap-2",
|
|
166
|
-
children: [/* @__PURE__ */ b("span", {
|
|
167
|
-
className: "ttw:truncate",
|
|
168
|
-
children: e.label
|
|
169
|
-
}), e.sourceLabel && /* @__PURE__ */ b("span", {
|
|
170
|
-
className: "ttw:shrink-0 ttw:text-muted-foreground",
|
|
171
|
-
children: e.sourceLabel
|
|
172
|
-
})]
|
|
173
|
-
})
|
|
174
|
-
}, e.value)), a.canAddAccount && /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b(p, {}), /* @__PURE__ */ x(f, {
|
|
175
|
-
value: w,
|
|
176
|
-
className: "ttw:font-semibold ttw:text-primary ttw:hover:text-primary ttw:focus:text-primary",
|
|
177
|
-
children: [/* @__PURE__ */ b(S, { className: "ttw:text-primary" }), k.bankAccountAddOption]
|
|
178
|
-
})] })] })]
|
|
179
|
-
})]
|
|
180
|
-
}),
|
|
181
|
-
a.kind === "form" && /* @__PURE__ */ b(E, {
|
|
182
|
-
idPrefix: i,
|
|
183
|
-
values: a.values,
|
|
184
|
-
errors: a.errors,
|
|
185
|
-
canCancel: a.canCancel,
|
|
186
|
-
isSaving: a.isSaving,
|
|
187
|
-
labels: k,
|
|
188
|
-
onChange: l,
|
|
189
|
-
onSave: T,
|
|
190
|
-
onCancel: D
|
|
5
|
+
function u({ open: u, onOpenChange: d, title: f, description: p, confirmLabel: m, destructive: h, error: g, inProgress: _, onConfirm: v, onCancel: y, labels: b }) {
|
|
6
|
+
let x = {
|
|
7
|
+
...s,
|
|
8
|
+
...b
|
|
9
|
+
};
|
|
10
|
+
return /* @__PURE__ */ c(t, {
|
|
11
|
+
open: u,
|
|
12
|
+
onOpenChange: d,
|
|
13
|
+
children: /* @__PURE__ */ l(n, { children: [
|
|
14
|
+
/* @__PURE__ */ l(a, { children: [/* @__PURE__ */ c(o, { children: f }), /* @__PURE__ */ c(r, { children: p })] }),
|
|
15
|
+
g && /* @__PURE__ */ c("p", {
|
|
16
|
+
role: "alert",
|
|
17
|
+
className: "ttw:rounded-md ttw:bg-destructive/10 ttw:px-3 ttw:py-2 ttw:text-sm ttw:text-destructive",
|
|
18
|
+
children: g
|
|
191
19
|
}),
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
]
|
|
20
|
+
/* @__PURE__ */ l(i, { children: [/* @__PURE__ */ c(e, {
|
|
21
|
+
variant: "ghost",
|
|
22
|
+
onClick: y,
|
|
23
|
+
children: x.cancelButton
|
|
24
|
+
}), /* @__PURE__ */ c(e, {
|
|
25
|
+
variant: h ? "destructive" : "default",
|
|
26
|
+
loading: _,
|
|
27
|
+
onClick: v,
|
|
28
|
+
children: m ?? x.confirmButton
|
|
29
|
+
})] })
|
|
30
|
+
] })
|
|
204
31
|
});
|
|
205
32
|
}
|
|
206
33
|
//#endregion
|
|
207
|
-
export {
|
|
34
|
+
export { u as ReceivableActionDialog, u as default };
|
|
@@ -1,161 +1,207 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { RECEIVABLE_FORM_SHEET_LABELS_EN as
|
|
3
|
-
import { Fragment as
|
|
4
|
-
import {
|
|
1
|
+
import { Alert as e, AlertDescription as t, AlertTitle as n, Badge as r, Button as i, Field as a, FieldContent as o, FieldError as s, FieldLabel as c, Input as l, Select as u, SelectContent as d, SelectItem as f, SelectSeparator as p, SelectTrigger as m, SelectValue as h, Skeleton as g, Typography as _ } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { RECEIVABLE_FORM_SHEET_LABELS_EN as v } from "./index4.js";
|
|
3
|
+
import { Fragment as y, jsx as b, jsxs as x } from "react/jsx-runtime";
|
|
4
|
+
import { PlusIcon as S, TriangleAlertIcon as C } from "lucide-react";
|
|
5
5
|
//#region ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index6.js
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
var w = "__add_new__";
|
|
7
|
+
function T({ id: e, label: t, optionalSuffix: n, placeholder: r, value: i, error: u, disabled: d, onChange: f }) {
|
|
8
|
+
return /* @__PURE__ */ b(a, { children: /* @__PURE__ */ x(o, { children: [
|
|
9
|
+
/* @__PURE__ */ x(c, {
|
|
10
|
+
htmlFor: e,
|
|
11
|
+
className: "ttw:gap-1",
|
|
12
|
+
children: [t, n && /* @__PURE__ */ b(_, {
|
|
13
|
+
variant: "body2",
|
|
14
|
+
component: "span",
|
|
15
|
+
color: "muted",
|
|
16
|
+
className: "ttw:leading-snug",
|
|
17
|
+
children: n
|
|
18
|
+
})]
|
|
19
|
+
}),
|
|
20
|
+
/* @__PURE__ */ b(l, {
|
|
21
|
+
id: e,
|
|
22
|
+
placeholder: r,
|
|
23
|
+
value: i,
|
|
24
|
+
disabled: d,
|
|
25
|
+
"aria-invalid": !!u,
|
|
26
|
+
onChange: (e) => f(e.target.value),
|
|
27
|
+
onKeyDown: (e) => {
|
|
28
|
+
e.key === "Enter" && e.preventDefault();
|
|
29
|
+
}
|
|
30
|
+
}),
|
|
31
|
+
/* @__PURE__ */ b(s, { errors: u ? [{ message: u }] : [] })
|
|
32
|
+
] }) });
|
|
33
|
+
}
|
|
34
|
+
function E({ idPrefix: e, values: t, errors: n, canCancel: r, isSaving: a, labels: o, onChange: s, onSave: c, onCancel: l }) {
|
|
35
|
+
return /* @__PURE__ */ x("div", {
|
|
36
|
+
className: "ttw:flex ttw:flex-col ttw:gap-4 ttw:rounded-xl ttw:border ttw:border-border ttw:p-3",
|
|
37
|
+
children: [
|
|
38
|
+
/* @__PURE__ */ b(_, {
|
|
39
|
+
variant: "body2",
|
|
40
|
+
children: o.bankAccountFormHeading
|
|
41
|
+
}),
|
|
42
|
+
/* @__PURE__ */ x("div", {
|
|
43
|
+
className: "ttw:flex ttw:gap-4",
|
|
44
|
+
children: [/* @__PURE__ */ b(T, {
|
|
45
|
+
id: `${e}-routing-number`,
|
|
46
|
+
label: o.bankAccountRoutingNumberLabel,
|
|
47
|
+
placeholder: o.bankAccountRoutingNumberPlaceholder,
|
|
48
|
+
value: t.routingNumber,
|
|
49
|
+
error: n.routingNumber,
|
|
50
|
+
disabled: a,
|
|
51
|
+
onChange: (e) => s({ routingNumber: e })
|
|
52
|
+
}), /* @__PURE__ */ b(T, {
|
|
53
|
+
id: `${e}-account-number`,
|
|
54
|
+
label: o.bankAccountAccountNumberLabel,
|
|
55
|
+
placeholder: o.bankAccountAccountNumberPlaceholder,
|
|
56
|
+
value: t.accountNumber,
|
|
57
|
+
error: n.accountNumber,
|
|
58
|
+
disabled: a,
|
|
59
|
+
onChange: (e) => s({ accountNumber: e })
|
|
60
|
+
})]
|
|
61
|
+
}),
|
|
62
|
+
/* @__PURE__ */ x("div", {
|
|
63
|
+
className: "ttw:flex ttw:gap-4",
|
|
64
|
+
children: [/* @__PURE__ */ b(T, {
|
|
65
|
+
id: `${e}-account-holder-name`,
|
|
66
|
+
label: o.bankAccountHolderNameLabel,
|
|
67
|
+
placeholder: o.bankAccountHolderNamePlaceholder,
|
|
68
|
+
value: t.accountHolderName,
|
|
69
|
+
error: n.accountHolderName,
|
|
70
|
+
disabled: a,
|
|
71
|
+
onChange: (e) => s({ accountHolderName: e })
|
|
72
|
+
}), /* @__PURE__ */ b(T, {
|
|
73
|
+
id: `${e}-account-nickname`,
|
|
74
|
+
label: o.bankAccountNicknameLabel,
|
|
75
|
+
optionalSuffix: o.optionalSuffix,
|
|
76
|
+
placeholder: o.bankAccountNicknamePlaceholder,
|
|
77
|
+
value: t.displayName,
|
|
78
|
+
error: n.displayName,
|
|
79
|
+
disabled: a,
|
|
80
|
+
onChange: (e) => s({ displayName: e })
|
|
81
|
+
})]
|
|
82
|
+
}),
|
|
83
|
+
/* @__PURE__ */ x("div", {
|
|
84
|
+
className: "ttw:flex ttw:gap-4",
|
|
85
|
+
children: [r && /* @__PURE__ */ b(i, {
|
|
86
|
+
type: "button",
|
|
87
|
+
variant: "outline",
|
|
88
|
+
className: "ttw:border-border",
|
|
89
|
+
disabled: a,
|
|
90
|
+
onClick: l,
|
|
91
|
+
children: o.bankAccountCancelButton
|
|
92
|
+
}), /* @__PURE__ */ b(i, {
|
|
93
|
+
type: "button",
|
|
94
|
+
disabled: a,
|
|
95
|
+
onClick: c,
|
|
96
|
+
children: o.bankAccountSaveButton
|
|
97
|
+
})]
|
|
98
|
+
})
|
|
99
|
+
]
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
function D({ idPrefix: i, view: a, disabled: o, onAccountSelect: s, onAddAccountClick: c, onFormChange: l, onFormSave: T, onFormCancel: D, labels: O }) {
|
|
103
|
+
let k = {
|
|
104
|
+
...v,
|
|
105
|
+
...O
|
|
106
|
+
}, A = `${i}-bank-account`;
|
|
107
|
+
return /* @__PURE__ */ x("div", {
|
|
12
108
|
className: "ttw:flex ttw:flex-col ttw:gap-2.5 ttw:rounded-xl ttw:border ttw:border-border ttw:p-6",
|
|
13
109
|
children: [
|
|
14
|
-
/* @__PURE__ */
|
|
110
|
+
/* @__PURE__ */ x("div", {
|
|
15
111
|
className: "ttw:flex ttw:flex-col ttw:gap-2.5 ttw:pb-4",
|
|
16
|
-
children: [/* @__PURE__ */
|
|
112
|
+
children: [/* @__PURE__ */ b(_, {
|
|
17
113
|
variant: "h4",
|
|
18
|
-
children:
|
|
19
|
-
}), /* @__PURE__ */
|
|
114
|
+
children: k.bankAccountHeading
|
|
115
|
+
}), /* @__PURE__ */ b(_, {
|
|
20
116
|
variant: "body2",
|
|
21
117
|
color: "muted",
|
|
22
118
|
className: "ttw:font-medium",
|
|
23
|
-
children:
|
|
119
|
+
children: k.bankAccountDescription
|
|
24
120
|
})]
|
|
25
121
|
}),
|
|
26
|
-
|
|
27
|
-
className: "ttw:flex ttw:flex-col ttw:gap-
|
|
28
|
-
children: [
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
children:
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
122
|
+
(a.kind === "loading" || a.kind === "picker") && /* @__PURE__ */ x("div", {
|
|
123
|
+
className: "ttw:flex ttw:flex-col ttw:gap-4 ttw:rounded-xl ttw:border ttw:border-border ttw:p-3",
|
|
124
|
+
children: [/* @__PURE__ */ x("div", {
|
|
125
|
+
className: "ttw:flex ttw:flex-col ttw:gap-1",
|
|
126
|
+
children: [/* @__PURE__ */ b(_, {
|
|
127
|
+
variant: "body2",
|
|
128
|
+
children: k.bankAccountLabel
|
|
129
|
+
}), /* @__PURE__ */ b(_, {
|
|
130
|
+
variant: "caption",
|
|
131
|
+
color: "muted",
|
|
132
|
+
children: k.bankAccountHint
|
|
133
|
+
})]
|
|
134
|
+
}), a.kind === "loading" ? /* @__PURE__ */ b(g, { className: "ttw:h-9 ttw:w-full ttw:rounded-md" }) : /* @__PURE__ */ x(u, {
|
|
135
|
+
disabled: o,
|
|
136
|
+
value: a.selected?.value ?? "",
|
|
137
|
+
onValueChange: (e) => {
|
|
138
|
+
if (e === w) {
|
|
139
|
+
c();
|
|
140
|
+
return;
|
|
141
|
+
}
|
|
142
|
+
s(e);
|
|
143
|
+
},
|
|
144
|
+
children: [/* @__PURE__ */ b(m, {
|
|
145
|
+
id: A,
|
|
146
|
+
className: "ttw:w-full",
|
|
147
|
+
"aria-label": k.bankAccountSelectorLabel,
|
|
148
|
+
children: /* @__PURE__ */ b(h, {
|
|
149
|
+
placeholder: k.bankAccountPlaceholder,
|
|
150
|
+
children: a.selected && /* @__PURE__ */ x("span", {
|
|
151
|
+
className: "ttw:flex ttw:min-w-0 ttw:flex-1 ttw:items-center ttw:justify-between ttw:gap-2",
|
|
152
|
+
children: [/* @__PURE__ */ b("span", {
|
|
47
153
|
className: "ttw:truncate",
|
|
48
|
-
children:
|
|
49
|
-
}), /* @__PURE__ */
|
|
50
|
-
variant: "
|
|
51
|
-
color: "muted",
|
|
154
|
+
children: a.selected.label
|
|
155
|
+
}), a.selected.sourceLabel && /* @__PURE__ */ b(r, {
|
|
156
|
+
variant: "secondary",
|
|
52
157
|
className: "ttw:shrink-0",
|
|
53
|
-
children:
|
|
54
|
-
"(",
|
|
55
|
-
n.sizeLabel,
|
|
56
|
-
")"
|
|
57
|
-
]
|
|
58
|
-
})]
|
|
59
|
-
}), /* @__PURE__ */ s(e, {
|
|
60
|
-
type: "button",
|
|
61
|
-
variant: "ghost",
|
|
62
|
-
size: "icon",
|
|
63
|
-
className: "ttw:size-4",
|
|
64
|
-
disabled: g,
|
|
65
|
-
"aria-label": n.removeLabel,
|
|
66
|
-
onClick: () => w(n.id),
|
|
67
|
-
children: /* @__PURE__ */ s(f, { className: "ttw:size-4" })
|
|
68
|
-
})]
|
|
69
|
-
})]
|
|
70
|
-
}, n.id)), m.pendingRows.map((t) => /* @__PURE__ */ c("li", {
|
|
71
|
-
className: "ttw:flex ttw:w-full ttw:items-center ttw:gap-3 ttw:rounded-lg ttw:bg-muted ttw:px-2 ttw:py-1",
|
|
72
|
-
children: [
|
|
73
|
-
t.state === "uploading" ? /* @__PURE__ */ s(d, { className: "ttw:size-5 ttw:shrink-0 ttw:animate-spin ttw:text-muted-foreground" }) : /* @__PURE__ */ s(l, { className: "ttw:size-5 ttw:shrink-0 ttw:text-destructive" }),
|
|
74
|
-
/* @__PURE__ */ c("div", {
|
|
75
|
-
className: "ttw:flex ttw:min-w-0 ttw:flex-1 ttw:flex-col",
|
|
76
|
-
children: [/* @__PURE__ */ s(r, {
|
|
77
|
-
variant: "body2",
|
|
78
|
-
className: "ttw:truncate",
|
|
79
|
-
children: t.name
|
|
80
|
-
}), t.state === "uploading" ? /* @__PURE__ */ s(r, {
|
|
81
|
-
variant: "caption",
|
|
82
|
-
color: "muted",
|
|
83
|
-
children: t.message
|
|
84
|
-
}) : /* @__PURE__ */ s(r, {
|
|
85
|
-
variant: "caption",
|
|
86
|
-
role: "alert",
|
|
87
|
-
className: "ttw:text-destructive",
|
|
88
|
-
children: t.message
|
|
158
|
+
children: a.selected.sourceLabel
|
|
89
159
|
})]
|
|
90
|
-
}),
|
|
91
|
-
/* @__PURE__ */ s(e, {
|
|
92
|
-
type: "button",
|
|
93
|
-
variant: "ghost",
|
|
94
|
-
size: "icon",
|
|
95
|
-
disabled: g,
|
|
96
|
-
"aria-label": t.removeLabel,
|
|
97
|
-
onClick: () => w(t.id),
|
|
98
|
-
children: /* @__PURE__ */ s(p, { className: "ttw:size-4" })
|
|
99
160
|
})
|
|
100
|
-
|
|
101
|
-
},
|
|
161
|
+
})
|
|
162
|
+
}), /* @__PURE__ */ x(d, { children: [a.options.map((e) => /* @__PURE__ */ b(f, {
|
|
163
|
+
value: e.value,
|
|
164
|
+
children: /* @__PURE__ */ x("span", {
|
|
165
|
+
className: "ttw:flex ttw:min-w-0 ttw:flex-1 ttw:items-center ttw:justify-between ttw:gap-2",
|
|
166
|
+
children: [/* @__PURE__ */ b("span", {
|
|
167
|
+
className: "ttw:truncate",
|
|
168
|
+
children: e.label
|
|
169
|
+
}), e.sourceLabel && /* @__PURE__ */ b("span", {
|
|
170
|
+
className: "ttw:shrink-0 ttw:text-muted-foreground",
|
|
171
|
+
children: e.sourceLabel
|
|
172
|
+
})]
|
|
173
|
+
})
|
|
174
|
+
}, e.value)), a.canAddAccount && /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b(p, {}), /* @__PURE__ */ x(f, {
|
|
175
|
+
value: w,
|
|
176
|
+
className: "ttw:font-semibold ttw:text-primary ttw:hover:text-primary ttw:focus:text-primary",
|
|
177
|
+
children: [/* @__PURE__ */ b(S, { className: "ttw:text-primary" }), k.bankAccountAddOption]
|
|
178
|
+
})] })] })]
|
|
102
179
|
})]
|
|
103
180
|
}),
|
|
104
|
-
/* @__PURE__ */
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
className: i("ttw:flex ttw:w-full ttw:flex-col ttw:items-center ttw:gap-2 ttw:rounded-xl ttw:border ttw:border-dashed ttw:p-6 ttw:text-center ttw:disabled:cursor-not-allowed ttw:disabled:opacity-50", h ? "ttw:border-primary ttw:bg-primary/5" : "ttw:border-border ttw:bg-muted"),
|
|
181
|
+
a.kind === "form" && /* @__PURE__ */ b(E, {
|
|
182
|
+
idPrefix: i,
|
|
183
|
+
values: a.values,
|
|
184
|
+
errors: a.errors,
|
|
185
|
+
canCancel: a.canCancel,
|
|
186
|
+
isSaving: a.isSaving,
|
|
187
|
+
labels: k,
|
|
188
|
+
onChange: l,
|
|
189
|
+
onSave: T,
|
|
190
|
+
onCancel: D
|
|
191
|
+
}),
|
|
192
|
+
a.kind === "restricted" && /* @__PURE__ */ x(e, {
|
|
193
|
+
className: "ttw:border-transparent ttw:bg-yellow-50 ttw:text-yellow-900 ttw:dark:bg-yellow-950 ttw:dark:text-yellow-100",
|
|
118
194
|
children: [
|
|
119
|
-
/* @__PURE__ */
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
variant: "body2",
|
|
125
|
-
children: [
|
|
126
|
-
E.attachmentsDropPrompt,
|
|
127
|
-
" ",
|
|
128
|
-
/* @__PURE__ */ s("span", {
|
|
129
|
-
className: "ttw:text-primary ttw:underline",
|
|
130
|
-
children: E.attachmentsBrowseLink
|
|
131
|
-
})
|
|
132
|
-
]
|
|
133
|
-
}),
|
|
134
|
-
/* @__PURE__ */ s(r, {
|
|
135
|
-
variant: "caption",
|
|
136
|
-
color: "muted",
|
|
137
|
-
children: E.attachmentsFormatsHint
|
|
195
|
+
/* @__PURE__ */ b(C, {}),
|
|
196
|
+
/* @__PURE__ */ b(n, { children: k.bankAccountRestrictedTitle }),
|
|
197
|
+
/* @__PURE__ */ b(t, {
|
|
198
|
+
className: "ttw:text-current",
|
|
199
|
+
children: k.bankAccountRestrictedDescription
|
|
138
200
|
})
|
|
139
201
|
]
|
|
140
|
-
}),
|
|
141
|
-
m.countLimitMessage && /* @__PURE__ */ s(r, {
|
|
142
|
-
variant: "body2",
|
|
143
|
-
role: "alert",
|
|
144
|
-
className: "ttw:text-destructive",
|
|
145
|
-
children: m.countLimitMessage
|
|
146
|
-
}),
|
|
147
|
-
/* @__PURE__ */ s("input", {
|
|
148
|
-
ref: _,
|
|
149
|
-
type: "file",
|
|
150
|
-
multiple: !0,
|
|
151
|
-
tabIndex: -1,
|
|
152
|
-
"aria-hidden": !0,
|
|
153
|
-
className: "ttw:sr-only",
|
|
154
|
-
accept: m.accept,
|
|
155
|
-
onChange: (e) => S(e.target.files)
|
|
156
202
|
})
|
|
157
203
|
]
|
|
158
204
|
});
|
|
159
205
|
}
|
|
160
206
|
//#endregion
|
|
161
|
-
export {
|
|
207
|
+
export { D as ReceivableBankAccountSection };
|