@tesouro/embedded-components-react 0.5.230 → 0.5.232
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/README.md +1 -0
- package/dist/index.css +14 -0
- package/dist/index.d.ts +125 -22
- package/dist/index.js +3 -3
- package/dist/lib/ExpenseManagementWidget.d.ts +22 -21
- package/dist/lib/ExpenseManagementWidget.js +1 -1
- package/dist/lib/ReceivablesWidget.d.ts +104 -2
- package/dist/lib/ReceivablesWidget.js +1 -1
- package/dist/lib/UploadReceiptWidget.d.ts +2 -2
- package/dist/lib/UploadReceiptWidget.js +2 -2
- package/dist/lib/WidgetSuite.d.ts +17 -15
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/feature/dist/index.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/feature/dist/index2.js +5 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/{feature/dist/index24.js → approval-policies/feature/dist/index3.js} +7 -7
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/{feature/dist/index25.js → approval-policies/feature/dist/index4.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/{feature/dist/index26.js → approval-policies/feature/dist/index5.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/{feature/dist/index27.js → approval-policies/feature/dist/index6.js} +53 -53
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/ui/dist/index.js +8 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/{ui/dist/lib/ExpenseApprovalPoliciesWidget/lib/types.js → approval-policies/ui/dist/index2.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/{ui/dist/lib/ExpenseApprovalPoliciesWidget/lib/labels.js → approval-policies/ui/dist/index3.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/{ui/dist/lib/ExpenseApprovalPoliciesWidget/lib/conditionLabel.js → approval-policies/ui/dist/index4.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/{ui/dist/lib/ExpenseApprovalPoliciesWidget/lib/EmptyApprovalRules.js → approval-policies/ui/dist/index5.js} +3 -3
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/{ui/dist/lib/ExpenseApprovalPoliciesWidget/lib/ApprovalRuleCard.js → approval-policies/ui/dist/index6.js} +5 -5
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/{ui/dist/lib/ExpenseApprovalPoliciesWidget/lib/ApprovalRuleForm.js → approval-policies/ui/dist/index7.js} +4 -4
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/{ui/dist/lib/ExpenseApprovalPoliciesWidget/lib/ExpenseApprovalsPage.js → approval-policies/ui/dist/index8.js} +7 -7
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index.js +18 -19
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/invalidation.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/{index20.js → lib/invalidateTransactionViews.js} +4 -4
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/{index10.js → lib/queryKeys.js} +4 -4
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/{index5.js → lib/useEntityUsersByIdsQuery.js} +6 -6
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/{index8.js → lib/useExpenseHistoryQuery.js} +6 -6
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/{index7.js → lib/useExpenseLedgerAccountsQuery.js} +3 -3
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/{index17.js → lib/useExpenseReceiptsCountQuery.js} +5 -5
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/{index16.js → lib/useExpenseTransactionIdsQuery.js} +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/{index15.js → lib/useExpenseTransactionsCountQuery.js} +5 -5
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/{index19.js → lib/useGetApprovalRequestsQuery.js} +5 -5
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/{index9.js → lib/useGetTransactionQuery.js} +5 -5
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/{index3.js → lib/useGetTransactionsQuery.js} +5 -5
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/lib/useHasDirectReportsQuery.js +34 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/{index4.js → lib/useOrganizationDepartmentsQuery.js} +6 -6
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/lib/useOrganizationLocationsQuery.js +28 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/{index11.js → lib/usePatchReceiptMutation.js} +7 -7
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/{index14.js → lib/useTrackReceiptMatching.js} +7 -7
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/{index21.js → lib/useTransactionReviewMutations.js} +6 -6
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/{index18.js → lib/useTransactionValidationsQuery.js} +5 -5
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/{index13.js → lib/useUploadReceiptMutation.js} +7 -7
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index10.js +77 -160
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index11.js +356 -63
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index12.js +36 -71
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index13.js +130 -344
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index14.js +223 -36
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index15.js +192 -137
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index16.js +11 -227
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index17.js +81 -186
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index18.js +37 -11
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index19.js +309 -82
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index2.js +30 -87
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index20.js +1 -39
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index3.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index5.js +23 -257
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index6.js +18 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index7.js +160 -59
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index8.js +62 -28
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index9.js +28 -18
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/receipt-match/data-access/dist/index.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/{data-access → receipt-match/data-access}/dist/index2.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/receipt-match/data-access/dist/index3.js +40 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/receipt-match/feature/dist/index.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/receipt-match/feature/dist/index2.js +256 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/receipt-match/feature/dist/index3.js +5 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/receipt-match/feature/dist/index4.js +65 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/receipt-match/ui/dist/index.js +8 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/{ui/dist/lib/ReceiptMatchWidget/lib/labels.js → receipt-match/ui/dist/index2.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/{ui/dist/lib/ReceiptMatchWidget/lib/ReceiptInboxItem.js → receipt-match/ui/dist/index3.js} +3 -3
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/{ui/dist/lib/ReceiptMatchWidget/lib/ReceiptInboxStep.js → receipt-match/ui/dist/index4.js} +6 -6
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/{ui/dist/lib/ReceiptMatchWidget/lib/TransactionsMatchStep.js → receipt-match/ui/dist/index5.js} +27 -27
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/{ui/dist/lib/ReceiptMatchWidget/lib/MatchConfirmationStep.js → receipt-match/ui/dist/index6.js} +3 -3
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/{ui/dist/lib/ReceiptMatchWidget/lib/ReceiptMatchSidebar.js → receipt-match/ui/dist/index7.js} +6 -6
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/{ui/dist/lib/ReceiptMatchWidget/lib/ReceiptMatchLauncher.js → receipt-match/ui/dist/index8.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/index.js +9 -28
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpenseStatusBadge/ExpenseStatusBadge.js +7 -12
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpenseStatusBadge/badgeTones.js +1 -7
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpensesScreen/ExpensesScreen.js +61 -55
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpensesScreen/labels.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpensesTransactionsTable/ExpensesTransactionsTable.js +42 -44
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/FileViewer/FileViewer.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/TransactionDetails/TransactionDetails.js +137 -138
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/TransactionDetailsActions/TransactionDetailsActions.js +82 -80
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/{ui → util}/dist/lib/isPdf.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/util/dist/lib/widgetName.js +4 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index.js +11 -10
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index10.js +92 -55
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index11.js +64 -142
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index12.js +186 -17
- package/dist/libs/tesouro-embedded-components-react/{expense-management-widget/data-access/dist/index6.js → invoicing-widget/data-access/dist/index13.js} +8 -9
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index3.js +45 -74
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index4.js +68 -53
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index5.js +66 -32
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index6.js +32 -34
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index7.js +24 -166
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index8.js +175 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index9.js +42 -95
- 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/index13.js +36 -33
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index14.js +38 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index16.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index17.js +206 -147
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index18.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index19.js +39 -58
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index20.js +53 -227
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index21.js +216 -287
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index22.js +453 -43
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index23.js +103 -126
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index24.js +122 -146
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index25.js +145 -41
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index26.js +39 -115
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index27.js +113 -90
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index28.js +81 -98
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index29.js +111 -27
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index30.js +26 -633
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index31.js +639 -39
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index32.js +41 -40
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index33.js +35 -74
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index34.js +73 -130
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index35.js +133 -329
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index36.js +345 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index.js +13 -12
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index10.js +15 -12
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index19.js +35 -24
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index21.js +8 -71
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index22.js +70 -17
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index23.js +31 -12
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index24.js +18 -30
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index25.js +12 -301
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index26.js +33 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index27.js +14 -46
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index28.js +23 -67
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index29.js +76 -485
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index30.js +392 -95
- package/dist/libs/tesouro-embedded-components-react/{expense-management-widget/feature/dist/index22.js → invoicing-widget/ui/dist/index31.js} +1 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index32.js +48 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index33.js +72 -4
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index34.js +496 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index35.js +97 -91
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index37.js +2 -236
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index38.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index39.js +1 -249
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index40.js +89 -82
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index41.js +23 -54
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index42.js +223 -340
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index43.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index44.js +249 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index45.js +93 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index46.js +59 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index47.js +353 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index9.js +17 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index5.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +41 -41
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +75 -43
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/util/dist/lib/formatTimestampDate.js +13 -0
- package/dist/libs/tesouro-embedded-components-react/upload-receipt-widget/feature/dist/index.js +4 -0
- package/dist/libs/tesouro-embedded-components-react/upload-receipt-widget/feature/dist/index2.js +91 -0
- package/dist/libs/tesouro-embedded-components-react/upload-receipt-widget/ui/dist/index.js +4 -0
- package/dist/libs/tesouro-embedded-components-react/{expense-management-widget/ui/dist/lib/UploadReceiptWidget/labels.js → upload-receipt-widget/ui/dist/index2.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/{expense-management-widget/ui/dist/lib/UploadReceiptWidget/UploadReceiptButton.js → upload-receipt-widget/ui/dist/index3.js} +3 -3
- package/dist/libs/tesouro-embedded-components-react/{expense-management-widget/ui/dist/lib/UploadReceiptWidget/UploadReceiptModal.js → upload-receipt-widget/ui/dist/index4.js} +3 -3
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index11.js +1 -1
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index12.js +0 -39
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index21.js +0 -297
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index23.js +0 -4
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpenseStatusBadge/labels.js +0 -13
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index36.js +0 -28
|
@@ -0,0 +1,345 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
"use client";
|
|
4
|
+
"use client";
|
|
5
|
+
import { Calendar as e, Skeleton as t } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
6
|
+
import { EmbeddedToaster as n } from "../../../shared/ui/dist/lib/EmbeddedToaster.js";
|
|
7
|
+
import "../../../shared/ui/dist/index.js";
|
|
8
|
+
import { useAnalyticsTrack as r } from "../../../shared/feature/dist/lib/analytics/hooks.js";
|
|
9
|
+
import { WidgetProvider as i } from "../../../shared/feature/dist/lib/WidgetProvider/WidgetProvider.js";
|
|
10
|
+
import "../../../shared/feature/dist/index.js";
|
|
11
|
+
import { CounterpartFormSheet as a } from "../../../shared/counterpart-management/ui/dist/index9.js";
|
|
12
|
+
import { CounterpartSelector as o } from "../../../shared/counterpart-management/feature/dist/lib/CounterpartSelector.js";
|
|
13
|
+
import "../../../shared/counterpart-management/feature/dist/index.js";
|
|
14
|
+
import { ReceivablesWidgetAnalyticsEvent as s, WIDGET_NAME as c } from "./index2.js";
|
|
15
|
+
import { PAGE_SIZE_OPTIONS as l } from "./index4.js";
|
|
16
|
+
import { ReceivableActionsModal as u } from "../../ui/dist/index5.js";
|
|
17
|
+
import { ReceivableActionDialog as d } from "../../ui/dist/index10.js";
|
|
18
|
+
import { ReceivableBankAccountSection as f } from "../../ui/dist/index11.js";
|
|
19
|
+
import { ReceivableBillingSection as p } from "../../ui/dist/index16.js";
|
|
20
|
+
import { ReceivableDetailsPanel as m } from "../../ui/dist/index30.js";
|
|
21
|
+
import { ReceivableFormSheet as h } from "../../ui/dist/index34.js";
|
|
22
|
+
import { ReceivablePaymentDialog as g } from "../../ui/dist/index35.js";
|
|
23
|
+
import { ReceivableRecurrenceEmailDialog as _ } from "../../ui/dist/index40.js";
|
|
24
|
+
import { ReceivableRecurrenceSection as v } from "../../ui/dist/index42.js";
|
|
25
|
+
import { ReceivableRemindersSection as y } from "../../ui/dist/index44.js";
|
|
26
|
+
import { ReceivableSendDialog as b } from "../../ui/dist/index45.js";
|
|
27
|
+
import { ReceivablesScreen as x } from "../../ui/dist/index47.js";
|
|
28
|
+
import "../../ui/dist/index.js";
|
|
29
|
+
import { ReceivableAttachmentsSection as S } from "./index5.js";
|
|
30
|
+
import { MeasureUnitsManagerContainer as C } from "../../../shared/product-catalog/feature/dist/lib/MeasureUnitsManagerContainer.js";
|
|
31
|
+
import { ProductSelector as w } from "../../../shared/product-catalog/feature/dist/lib/ProductSelector.js";
|
|
32
|
+
import "../../../shared/product-catalog/feature/dist/index.js";
|
|
33
|
+
import { useReceivablesWidget as T } from "./index35.js";
|
|
34
|
+
import { useEffect as ee, useId as E, useState as D } from "react";
|
|
35
|
+
import { Fragment as O, jsx as k, jsxs as A } from "react/jsx-runtime";
|
|
36
|
+
//#region ../../libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index36.js
|
|
37
|
+
function j({ auditHistoryLabels: i, counterpartFormLabels: c, counterpartMessageLabels: j, defaultTab: M, detailsLabels: N, embeddedBankName: P, enabledTabs: F, formLabels: I, measureUnitDeleteLabels: L, measureUnitsLabels: R, messageLabels: z, onReceivableCreated: B, onReceivableOpened: V, onTemplateSettingsClick: te, pageSizeOptions: H = l, paymentLabels: U, productMessageLabels: W, screenLabels: G, sendLabels: K, actionLabels: q, actionsModalLabels: J }) {
|
|
38
|
+
let Y = r();
|
|
39
|
+
ee(() => {
|
|
40
|
+
Y(s.Mounted);
|
|
41
|
+
}, [Y]);
|
|
42
|
+
let X = T({
|
|
43
|
+
auditHistoryLabels: i,
|
|
44
|
+
counterpartMessageLabels: j,
|
|
45
|
+
defaultTab: M,
|
|
46
|
+
embeddedBankName: P,
|
|
47
|
+
enabledTabs: F,
|
|
48
|
+
messageLabels: z,
|
|
49
|
+
onReceivableCreated: B,
|
|
50
|
+
onReceivableOpened: V,
|
|
51
|
+
screenLabels: G
|
|
52
|
+
}), [Z, Q] = D(!1), ne = E(), $ = E(), re = E(), ie = E(), ae = E();
|
|
53
|
+
return /* @__PURE__ */ A(O, { children: [
|
|
54
|
+
/* @__PURE__ */ k(n, {}),
|
|
55
|
+
/* @__PURE__ */ k(x, {
|
|
56
|
+
rows: X.table.rows,
|
|
57
|
+
activeTab: X.activeTab,
|
|
58
|
+
enabledTabs: X.enabledTabs,
|
|
59
|
+
onTabChange: X.setActiveTab,
|
|
60
|
+
isLoading: X.table.isLoading,
|
|
61
|
+
isError: X.table.isError,
|
|
62
|
+
sorting: X.table.sorting,
|
|
63
|
+
onSortingChange: X.table.onSortingChange,
|
|
64
|
+
pageSize: X.table.pageSize,
|
|
65
|
+
onPageSizeChange: X.table.onPageSizeChange,
|
|
66
|
+
pageSizeOptions: H,
|
|
67
|
+
hasNextPage: X.table.hasNextPage,
|
|
68
|
+
hasPrevPage: X.table.hasPrevPage,
|
|
69
|
+
onNextPage: X.table.onNextPage,
|
|
70
|
+
onPrevPage: X.table.onPrevPage,
|
|
71
|
+
searchValue: X.table.searchValue,
|
|
72
|
+
onSearchChange: X.table.onSearchChange,
|
|
73
|
+
statusFilter: X.table.statusFilter,
|
|
74
|
+
statusOptions: X.table.statusOptions,
|
|
75
|
+
onStatusFilterChange: X.table.onStatusFilterChange,
|
|
76
|
+
statusCards: X.table.statusCards,
|
|
77
|
+
onStatusCardSelect: X.table.onStatusFilterChange,
|
|
78
|
+
isFiltering: X.table.isFiltering,
|
|
79
|
+
onCreateClick: X.openCreate,
|
|
80
|
+
onTemplateSettingsClick: te,
|
|
81
|
+
onRowClick: X.handleRowClick,
|
|
82
|
+
onActionClick: X.handleActionClick,
|
|
83
|
+
onRetry: X.table.onRetry,
|
|
84
|
+
labels: G
|
|
85
|
+
}),
|
|
86
|
+
/* @__PURE__ */ k(h, {
|
|
87
|
+
open: X.form.open,
|
|
88
|
+
onOpenChange: (e) => {
|
|
89
|
+
e || X.form.close();
|
|
90
|
+
},
|
|
91
|
+
mode: X.form.mode,
|
|
92
|
+
values: X.form.sheetValues,
|
|
93
|
+
errors: X.form.errors,
|
|
94
|
+
currencyOptions: X.form.currencyOptions,
|
|
95
|
+
unitOptions: X.form.lineItemUnitOptions,
|
|
96
|
+
currencySymbol: X.form.currencySymbol,
|
|
97
|
+
lineItemControls: X.form.lineItemControls,
|
|
98
|
+
autoFocusLineItemId: X.form.autoFocusLineItemId,
|
|
99
|
+
lineItemsLoading: X.form.lineItemsLoading,
|
|
100
|
+
inProgress: X.form.isSubmitting,
|
|
101
|
+
customerSelector: /* @__PURE__ */ k(o, {
|
|
102
|
+
mode: "customer",
|
|
103
|
+
value: X.form.values.customerId || void 0,
|
|
104
|
+
invalid: !!X.form.errors.customerId,
|
|
105
|
+
onValueChange: (e) => X.form.updateValues({ customerId: e }),
|
|
106
|
+
onCreateClick: X.form.openCounterpartCreate
|
|
107
|
+
}),
|
|
108
|
+
renderProductSelector: (e, t) => /* @__PURE__ */ k(w, {
|
|
109
|
+
...t,
|
|
110
|
+
inputValue: e.name,
|
|
111
|
+
selectedProductId: X.form.values.lineItems.find((t) => t.id === e.id)?.productId || void 0,
|
|
112
|
+
currency: X.form.values.currency,
|
|
113
|
+
maxLength: 100,
|
|
114
|
+
onInputValueChange: (t) => X.form.updateLineItem(e.id, { name: t }),
|
|
115
|
+
onProductSelect: (t) => X.form.selectProduct(e.id, t)
|
|
116
|
+
}),
|
|
117
|
+
onChange: X.form.updateValues,
|
|
118
|
+
onLineItemChange: X.form.updateLineItem,
|
|
119
|
+
onLineItemCommit: X.form.commitLineItem,
|
|
120
|
+
onLineItemQuantityStep: X.form.stepLineItem,
|
|
121
|
+
onTaxRateCommit: X.form.commitTaxRate,
|
|
122
|
+
onDiscountFocus: X.form.focusDiscount,
|
|
123
|
+
onDiscountCommit: X.form.commitDiscount,
|
|
124
|
+
totals: X.form.totalsView,
|
|
125
|
+
onManageUnits: () => Q(!0),
|
|
126
|
+
onAddLineItem: X.form.addLineItem,
|
|
127
|
+
onRemoveLineItem: X.form.removeLineItem,
|
|
128
|
+
showDueDateField: X.form.showDueDateField,
|
|
129
|
+
billingSection: X.form.showBillingSection && /* @__PURE__ */ k(p, {
|
|
130
|
+
idPrefix: ne,
|
|
131
|
+
paymentTerms: X.form.paymentTerms.view,
|
|
132
|
+
paymentTermsError: X.form.errors.paymentTermsId,
|
|
133
|
+
disabled: X.form.isSubmitting,
|
|
134
|
+
onPaymentTermsChange: X.form.paymentTerms.select,
|
|
135
|
+
onCustomDatePickerOpenChange: X.form.paymentTerms.changeCustomDatePickerOpen,
|
|
136
|
+
customDateCalendar: /* @__PURE__ */ k(e, {
|
|
137
|
+
mode: "single",
|
|
138
|
+
captionLayout: "dropdown",
|
|
139
|
+
...X.form.paymentTerms.calendar,
|
|
140
|
+
onSelect: X.form.paymentTerms.selectCustomDate
|
|
141
|
+
}),
|
|
142
|
+
recurrenceSection: X.form.showRecurrenceSection && (X.form.recurrenceLoading ? /* @__PURE__ */ k(t, { className: "ttw:h-9 ttw:w-full" }) : /* @__PURE__ */ k(v, {
|
|
143
|
+
idPrefix: $,
|
|
144
|
+
view: X.form.recurrence.view,
|
|
145
|
+
disabled: X.form.isSubmitting,
|
|
146
|
+
onFrequencyChange: X.form.recurrence.changeFrequency,
|
|
147
|
+
onMonthDayChange: X.form.recurrence.changeMonthDay,
|
|
148
|
+
onWeekdayChange: X.form.recurrence.changeWeekday,
|
|
149
|
+
onStartDateChange: X.form.recurrence.changeStartDate,
|
|
150
|
+
onEndModeChange: X.form.recurrence.changeEndMode,
|
|
151
|
+
onEndDateChange: X.form.recurrence.changeEndDate,
|
|
152
|
+
onMaxOccurrencesChange: X.form.recurrence.changeMaxOccurrences,
|
|
153
|
+
onCreationModeChange: X.form.recurrence.changeCreationMode,
|
|
154
|
+
onSetUpEmailClick: X.form.recurrence.setUpEmail,
|
|
155
|
+
emailDialog: /* @__PURE__ */ k(_, {
|
|
156
|
+
idPrefix: $,
|
|
157
|
+
view: X.form.recurrence.emailView,
|
|
158
|
+
onOpenChange: X.form.recurrence.changeEmailOpen,
|
|
159
|
+
onChange: X.form.recurrence.changeEmail,
|
|
160
|
+
onSave: X.form.recurrence.saveEmail,
|
|
161
|
+
labels: I
|
|
162
|
+
}),
|
|
163
|
+
labels: I
|
|
164
|
+
})),
|
|
165
|
+
labels: I
|
|
166
|
+
}),
|
|
167
|
+
remindersSection: X.form.reminders.view && /* @__PURE__ */ k(y, {
|
|
168
|
+
idPrefix: ie,
|
|
169
|
+
view: X.form.reminders.view,
|
|
170
|
+
onToggle: X.form.reminders.toggle,
|
|
171
|
+
onPaymentReminderSelect: X.form.reminders.selectPaymentReminder,
|
|
172
|
+
onOverdueReminderSelect: X.form.reminders.selectOverdueReminder,
|
|
173
|
+
onBeforeDueInputChange: X.form.reminders.changeBeforeDueInput,
|
|
174
|
+
onBeforeDueSave: X.form.reminders.saveBeforeDue,
|
|
175
|
+
onOverdueTermChange: X.form.reminders.changeOverdueTerm,
|
|
176
|
+
onOverdueAddTerm: X.form.reminders.addOverdueTerm,
|
|
177
|
+
onOverdueClear: X.form.reminders.clearOverdueTerms,
|
|
178
|
+
onOverdueSave: X.form.reminders.saveOverdue,
|
|
179
|
+
labels: I
|
|
180
|
+
}),
|
|
181
|
+
bankAccountSection: /* @__PURE__ */ k(f, {
|
|
182
|
+
idPrefix: re,
|
|
183
|
+
view: X.form.bankAccount.view,
|
|
184
|
+
error: X.form.errors.bankAccountId,
|
|
185
|
+
disabled: X.form.isSubmitting,
|
|
186
|
+
onAccountSelect: X.form.bankAccount.selectAccount,
|
|
187
|
+
onAddAccountClick: X.form.bankAccount.openAddAccount,
|
|
188
|
+
onFormChange: X.form.bankAccount.updateAccountForm,
|
|
189
|
+
onFormSave: X.form.bankAccount.saveAccount,
|
|
190
|
+
onFormCancel: X.form.bankAccount.cancelAddAccount,
|
|
191
|
+
labels: I
|
|
192
|
+
}),
|
|
193
|
+
attachmentsSection: X.form.attachmentsView && /* @__PURE__ */ k(S, {
|
|
194
|
+
view: X.form.attachmentsView,
|
|
195
|
+
disabled: X.form.isSubmitting,
|
|
196
|
+
onFilesSelect: X.form.selectAttachmentFiles,
|
|
197
|
+
onIncludeInEmailChange: X.form.setAttachmentIncludeInEmail,
|
|
198
|
+
onRemove: X.form.removeAttachment,
|
|
199
|
+
labels: I
|
|
200
|
+
}),
|
|
201
|
+
cancelDisabled: X.form.isSubmitting || X.form.attachmentsUploading,
|
|
202
|
+
draftButtonLabel: X.form.draftButtonLabel,
|
|
203
|
+
draftDisabled: X.form.draftDisabled,
|
|
204
|
+
primaryButtonLabel: X.form.primaryButtonLabel,
|
|
205
|
+
primaryDisabled: X.form.primaryDisabled,
|
|
206
|
+
scrollContainerRef: X.form.scrollContainerRef,
|
|
207
|
+
onSubmit: X.form.submit,
|
|
208
|
+
onDraftClick: X.form.selectDraftMode,
|
|
209
|
+
onPrimaryClick: X.form.selectPrimaryMode,
|
|
210
|
+
onCancel: X.form.close,
|
|
211
|
+
labels: I
|
|
212
|
+
}),
|
|
213
|
+
/* @__PURE__ */ k(m, {
|
|
214
|
+
open: X.detailsOpen,
|
|
215
|
+
onOpenChange: (e) => {
|
|
216
|
+
e || X.closeDetails();
|
|
217
|
+
},
|
|
218
|
+
details: X.details.detailsView,
|
|
219
|
+
unsupported: X.details.unsupportedView,
|
|
220
|
+
isLoading: X.details.isLoading,
|
|
221
|
+
isError: X.details.isError,
|
|
222
|
+
onActionClick: X.handleDetailsActionClick,
|
|
223
|
+
onClose: X.closeDetails,
|
|
224
|
+
openSections: X.details.openSections,
|
|
225
|
+
onOpenSectionsChange: X.details.setOpenSections,
|
|
226
|
+
disabledActions: X.actions.pendingActions,
|
|
227
|
+
labels: N
|
|
228
|
+
}),
|
|
229
|
+
/* @__PURE__ */ k(b, {
|
|
230
|
+
open: X.actions.sendOpen,
|
|
231
|
+
onOpenChange: (e) => {
|
|
232
|
+
e || X.actions.closeSend();
|
|
233
|
+
},
|
|
234
|
+
values: X.actions.sendValues,
|
|
235
|
+
errors: X.actions.sendErrors,
|
|
236
|
+
inProgress: X.actions.sendInProgress,
|
|
237
|
+
onChange: (e) => X.actions.setSendValues((t) => ({
|
|
238
|
+
...t,
|
|
239
|
+
...e
|
|
240
|
+
})),
|
|
241
|
+
onSubmit: X.actions.submitSend,
|
|
242
|
+
onCancel: X.actions.closeSend,
|
|
243
|
+
labels: K
|
|
244
|
+
}),
|
|
245
|
+
/* @__PURE__ */ k(g, {
|
|
246
|
+
open: X.actions.paymentOpen,
|
|
247
|
+
onOpenChange: (e) => {
|
|
248
|
+
e || X.actions.closePayment();
|
|
249
|
+
},
|
|
250
|
+
values: X.actions.paymentValues,
|
|
251
|
+
errors: X.actions.paymentErrors,
|
|
252
|
+
inProgress: X.actions.paymentInProgress,
|
|
253
|
+
onChange: (e) => X.actions.setPaymentValues((t) => ({
|
|
254
|
+
...t,
|
|
255
|
+
...e
|
|
256
|
+
})),
|
|
257
|
+
onSubmit: X.actions.submitPayment,
|
|
258
|
+
onCancel: X.actions.closePayment,
|
|
259
|
+
labels: U
|
|
260
|
+
}),
|
|
261
|
+
X.actions.actionDialog && /* @__PURE__ */ k(d, {
|
|
262
|
+
open: !!X.actions.actionTarget,
|
|
263
|
+
onOpenChange: (e) => {
|
|
264
|
+
e || X.actions.closeAction();
|
|
265
|
+
},
|
|
266
|
+
title: X.actions.actionDialog.title,
|
|
267
|
+
description: X.actions.actionDialog.description,
|
|
268
|
+
confirmLabel: X.actions.actionDialog.confirmLabel,
|
|
269
|
+
cancelLabel: X.actions.actionDialog.cancelLabel,
|
|
270
|
+
destructive: X.actions.actionDialog.destructive,
|
|
271
|
+
error: X.actions.actionError,
|
|
272
|
+
inProgress: X.actions.actionInProgress,
|
|
273
|
+
onConfirm: X.actions.confirmAction,
|
|
274
|
+
onCancel: X.actions.closeAction,
|
|
275
|
+
labels: q
|
|
276
|
+
}),
|
|
277
|
+
/* @__PURE__ */ k(u, {
|
|
278
|
+
idPrefix: ae,
|
|
279
|
+
open: X.actionsModal.isOpen,
|
|
280
|
+
view: X.actionsModal.view,
|
|
281
|
+
onSkip: X.actionsModal.skip,
|
|
282
|
+
onSubjectChange: X.actionsModal.changeSubject,
|
|
283
|
+
onMessageChange: X.actionsModal.changeMessage,
|
|
284
|
+
onSend: X.actionsModal.send,
|
|
285
|
+
onToggleItem: X.actionsModal.toggleItem,
|
|
286
|
+
onToggleAll: X.actionsModal.toggleAll,
|
|
287
|
+
onAllSelectedChange: X.actionsModal.setAllSelected,
|
|
288
|
+
onSaveItems: X.actionsModal.saveItems,
|
|
289
|
+
labels: J
|
|
290
|
+
}),
|
|
291
|
+
/* @__PURE__ */ k(a, {
|
|
292
|
+
open: X.form.counterpartView === "create",
|
|
293
|
+
onOpenChange: (e) => {
|
|
294
|
+
e || X.form.counterpartForm.close();
|
|
295
|
+
},
|
|
296
|
+
mode: "create",
|
|
297
|
+
values: X.form.counterpartForm.values,
|
|
298
|
+
errors: X.form.counterpartForm.errors,
|
|
299
|
+
stateOptions: X.form.stateOptions,
|
|
300
|
+
inProgress: X.form.counterpartForm.isSubmitting,
|
|
301
|
+
onChange: (e) => X.form.counterpartForm.setValues((t) => ({
|
|
302
|
+
...t,
|
|
303
|
+
...e
|
|
304
|
+
})),
|
|
305
|
+
onAddressChange: (e) => X.form.counterpartForm.setValues((t) => ({
|
|
306
|
+
...t,
|
|
307
|
+
address: {
|
|
308
|
+
...t.address,
|
|
309
|
+
...e
|
|
310
|
+
}
|
|
311
|
+
})),
|
|
312
|
+
onSubmit: X.form.counterpartForm.submit,
|
|
313
|
+
onCancel: X.form.counterpartForm.close,
|
|
314
|
+
labels: c
|
|
315
|
+
}),
|
|
316
|
+
/* @__PURE__ */ k(C, {
|
|
317
|
+
open: Z,
|
|
318
|
+
onClose: () => Q(!1),
|
|
319
|
+
managerLabels: R,
|
|
320
|
+
deleteLabels: L,
|
|
321
|
+
messageLabels: W
|
|
322
|
+
})
|
|
323
|
+
] });
|
|
324
|
+
}
|
|
325
|
+
function M({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gatewayRouting: a, linkComponent: o, implementation: s, uiFramework: l, errorFallback: u, onError: d, analytics: f, disclosuresAcceptance: p, providerLabels: m, ...h }) {
|
|
326
|
+
return /* @__PURE__ */ k(i, {
|
|
327
|
+
widgetName: c,
|
|
328
|
+
baseUrl: e,
|
|
329
|
+
widgetToken: t,
|
|
330
|
+
organizationId: n,
|
|
331
|
+
configClient: r,
|
|
332
|
+
gatewayRouting: a,
|
|
333
|
+
linkComponent: o,
|
|
334
|
+
implementation: s,
|
|
335
|
+
uiFramework: l,
|
|
336
|
+
errorFallback: u,
|
|
337
|
+
onError: d,
|
|
338
|
+
analytics: f,
|
|
339
|
+
disclosuresAcceptance: p,
|
|
340
|
+
providerLabels: m,
|
|
341
|
+
children: /* @__PURE__ */ k(j, { ...h })
|
|
342
|
+
});
|
|
343
|
+
}
|
|
344
|
+
//#endregion
|
|
345
|
+
export { M as ReceivablesWidget, M as default };
|
|
@@ -11,16 +11,17 @@ import { RECEIVABLE_PAYMENT_TERMS_CUSTOM_DATE as a, RECEIVABLE_PAYMENT_TERMS_REC
|
|
|
11
11
|
import { ReceivableBillingSection as s } from "./index16.js";
|
|
12
12
|
import "./index17.js";
|
|
13
13
|
import "./index18.js";
|
|
14
|
-
import {
|
|
15
|
-
import "./
|
|
16
|
-
import
|
|
17
|
-
import {
|
|
18
|
-
import "./
|
|
19
|
-
import "./index34.js";
|
|
20
|
-
import { ReceivableRecurrenceEmailDialog as d } from "./index35.js";
|
|
21
|
-
import { ReceivableRecurrenceSection as f } from "./index37.js";
|
|
14
|
+
import { RECEIVABLE_DETAILS_SECTION as c } from "./index21.js";
|
|
15
|
+
import { ReceivableDetailsPanel as l } from "./index30.js";
|
|
16
|
+
import "./index31.js";
|
|
17
|
+
import { ReceivableFormSheet as u } from "./index34.js";
|
|
18
|
+
import { ReceivablePaymentDialog as d } from "./index35.js";
|
|
22
19
|
import "./index38.js";
|
|
23
|
-
import
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
|
|
20
|
+
import "./index39.js";
|
|
21
|
+
import { ReceivableRecurrenceEmailDialog as f } from "./index40.js";
|
|
22
|
+
import { ReceivableRecurrenceSection as p } from "./index42.js";
|
|
23
|
+
import "./index43.js";
|
|
24
|
+
import { ReceivableRemindersSection as m } from "./index44.js";
|
|
25
|
+
import { ReceivableSendDialog as h } from "./index45.js";
|
|
26
|
+
import { ReceivablesScreen as g } from "./index47.js";
|
|
27
|
+
export { c as RECEIVABLE_DETAILS_SECTION, a as RECEIVABLE_PAYMENT_TERMS_CUSTOM_DATE, o as RECEIVABLE_PAYMENT_TERMS_RECEIPT_DUE, t as RECEIVABLE_STATUS_BADGE_LABELS_EN, n as ReceivableActionDialog, e as ReceivableActionsModal, i as ReceivableAttachmentsSection, r as ReceivableBankAccountSection, s as ReceivableBillingSection, l as ReceivableDetailsPanel, u as ReceivableFormSheet, d as ReceivablePaymentDialog, f as ReceivableRecurrenceEmailDialog, p as ReceivableRecurrenceSection, m as ReceivableRemindersSection, h as ReceivableSendDialog, g as ReceivablesScreen };
|
|
@@ -2,30 +2,33 @@ import { Button as e, Dialog as t, DialogContent as n, DialogDescription as r, D
|
|
|
2
2
|
import { RECEIVABLE_ACTION_DIALOG_LABELS_EN as s } from "./index9.js";
|
|
3
3
|
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
4
4
|
//#region ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index10.js
|
|
5
|
-
function u({ open: u, onOpenChange: d, title: f, description: p, confirmLabel: m,
|
|
6
|
-
let
|
|
5
|
+
function u({ open: u, onOpenChange: d, title: f, description: p, confirmLabel: m, cancelLabel: h, destructive: g, error: _, inProgress: v, onConfirm: y, onCancel: b, labels: x }) {
|
|
6
|
+
let S = {
|
|
7
7
|
...s,
|
|
8
|
-
...
|
|
8
|
+
...x
|
|
9
9
|
};
|
|
10
10
|
return /* @__PURE__ */ c(t, {
|
|
11
11
|
open: u,
|
|
12
12
|
onOpenChange: d,
|
|
13
13
|
children: /* @__PURE__ */ l(n, { children: [
|
|
14
|
-
/* @__PURE__ */ l(a, { children: [/* @__PURE__ */ c(o, { children: f }), /* @__PURE__ */ c(r, {
|
|
15
|
-
|
|
14
|
+
/* @__PURE__ */ l(a, { children: [/* @__PURE__ */ c(o, { children: f }), /* @__PURE__ */ c(r, {
|
|
15
|
+
className: "ttw:whitespace-pre-line",
|
|
16
|
+
children: p
|
|
17
|
+
})] }),
|
|
18
|
+
_ && /* @__PURE__ */ c("p", {
|
|
16
19
|
role: "alert",
|
|
17
20
|
className: "ttw:rounded-md ttw:bg-destructive/10 ttw:px-3 ttw:py-2 ttw:text-sm ttw:text-destructive",
|
|
18
|
-
children:
|
|
21
|
+
children: _
|
|
19
22
|
}),
|
|
20
23
|
/* @__PURE__ */ l(i, { children: [/* @__PURE__ */ c(e, {
|
|
21
24
|
variant: "ghost",
|
|
22
|
-
onClick:
|
|
23
|
-
children:
|
|
25
|
+
onClick: b,
|
|
26
|
+
children: h ?? S.cancelButton
|
|
24
27
|
}), /* @__PURE__ */ c(e, {
|
|
25
|
-
variant:
|
|
26
|
-
loading:
|
|
27
|
-
onClick:
|
|
28
|
-
children: m ??
|
|
28
|
+
variant: g ? "destructive" : "default",
|
|
29
|
+
loading: v,
|
|
30
|
+
onClick: y,
|
|
31
|
+
children: m ?? S.confirmButton
|
|
29
32
|
})] })
|
|
30
33
|
] })
|
|
31
34
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Ban as e,
|
|
1
|
+
import { Ban as e, CalendarX2 as t, Check as n, ChevronsRight as r, CircleCheck as i, CircleSlash as a, CircleX as o, ClipboardCheck as s, Clock as c, CopyPlus as l, Mail as u, Pause as d, PenTool as f, Pencil as p, Play as m, Trash2 as h } from "lucide-react";
|
|
2
2
|
//#region ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index19.js
|
|
3
|
-
var
|
|
3
|
+
var g = {
|
|
4
4
|
edit: "editButton",
|
|
5
5
|
issue: "issueButton",
|
|
6
6
|
recordPayment: "recordPaymentButton",
|
|
@@ -11,32 +11,43 @@ var f = {
|
|
|
11
11
|
markUncollectible: "markUncollectibleButton",
|
|
12
12
|
cancel: "cancelButton",
|
|
13
13
|
clone: "cloneButton",
|
|
14
|
-
delete: "deleteButton"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
14
|
+
delete: "deleteButton",
|
|
15
|
+
pauseRecurrence: "pauseRecurrenceButton",
|
|
16
|
+
resumeRecurrence: "resumeRecurrenceButton",
|
|
17
|
+
cancelRecurrence: "cancelRecurrenceButton"
|
|
18
|
+
}, _ = {
|
|
19
|
+
edit: p,
|
|
20
|
+
issue: u,
|
|
21
|
+
recordPayment: s,
|
|
22
|
+
send: u,
|
|
23
|
+
accept: i,
|
|
24
|
+
decline: o,
|
|
25
|
+
markPaid: i,
|
|
26
|
+
markUncollectible: a,
|
|
24
27
|
cancel: e,
|
|
25
|
-
clone:
|
|
26
|
-
delete:
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
28
|
+
clone: l,
|
|
29
|
+
delete: h,
|
|
30
|
+
pauseRecurrence: d,
|
|
31
|
+
resumeRecurrence: m,
|
|
32
|
+
cancelRecurrence: t
|
|
33
|
+
}, v = {
|
|
34
|
+
draft: f,
|
|
35
|
+
issuing: c,
|
|
36
|
+
issued: c,
|
|
37
|
+
partially_paid: c,
|
|
38
|
+
paid: n,
|
|
39
|
+
overdue: c,
|
|
34
40
|
canceled: e
|
|
35
|
-
},
|
|
41
|
+
}, y = {
|
|
42
|
+
forward: r,
|
|
43
|
+
pause: d,
|
|
44
|
+
ban: e,
|
|
45
|
+
check: n
|
|
46
|
+
}, b = {
|
|
36
47
|
default: "ttw:text-foreground",
|
|
37
48
|
danger: "ttw:text-red-600",
|
|
38
49
|
success: "ttw:text-emerald-600",
|
|
39
50
|
muted: "ttw:text-muted-foreground"
|
|
40
|
-
},
|
|
51
|
+
}, x = "ttw:bg-muted ttw:text-muted-foreground ttw:hover:bg-accent";
|
|
41
52
|
//#endregion
|
|
42
|
-
export {
|
|
53
|
+
export { _ as ACTION_ICON, g as ACTION_LABEL_KEY, y as SERIES_STATUS_ICON, v as STATUS_ICON, b as amountValueToneClass, x as headerIconButtonClass };
|
|
@@ -1,73 +1,10 @@
|
|
|
1
|
-
import { AccordionContent as e, AccordionItem as t, AccordionTrigger as n, Badge as r, Typography as i } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
-
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
3
|
-
import { Check as s } from "lucide-react";
|
|
4
1
|
//#region ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index21.js
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
className: "ttw:group-hover:underline",
|
|
13
|
-
children: u.attachmentsHeading
|
|
14
|
-
}), /* @__PURE__ */ a(r, {
|
|
15
|
-
variant: "secondary",
|
|
16
|
-
className: "ttw:rounded-full",
|
|
17
|
-
children: l.countLabel
|
|
18
|
-
})]
|
|
19
|
-
}) }), /* @__PURE__ */ a(e, { children: l.rows.length === 0 ? /* @__PURE__ */ a(i, {
|
|
20
|
-
variant: "body2",
|
|
21
|
-
color: "muted",
|
|
22
|
-
children: u.attachmentsEmpty
|
|
23
|
-
}) : /* @__PURE__ */ o("table", {
|
|
24
|
-
className: "ttw:w-full ttw:border-collapse",
|
|
25
|
-
children: [/* @__PURE__ */ a("thead", { children: /* @__PURE__ */ o("tr", {
|
|
26
|
-
className: "ttw:border-b ttw:border-border",
|
|
27
|
-
children: [/* @__PURE__ */ a("th", {
|
|
28
|
-
scope: "col",
|
|
29
|
-
className: "ttw:py-2 ttw:text-left",
|
|
30
|
-
children: /* @__PURE__ */ a(i, {
|
|
31
|
-
component: "span",
|
|
32
|
-
variant: "caption",
|
|
33
|
-
color: "muted",
|
|
34
|
-
children: u.attachmentsFileColumn
|
|
35
|
-
})
|
|
36
|
-
}), /* @__PURE__ */ a("th", {
|
|
37
|
-
scope: "col",
|
|
38
|
-
className: "ttw:py-2 ttw:text-right",
|
|
39
|
-
children: /* @__PURE__ */ a(i, {
|
|
40
|
-
component: "span",
|
|
41
|
-
variant: "caption",
|
|
42
|
-
color: "muted",
|
|
43
|
-
children: u.attachmentsEmailedColumn
|
|
44
|
-
})
|
|
45
|
-
})]
|
|
46
|
-
}) }), /* @__PURE__ */ a("tbody", { children: l.rows.map((e) => /* @__PURE__ */ o("tr", {
|
|
47
|
-
className: "ttw:border-b ttw:border-border ttw:last:border-b-0",
|
|
48
|
-
children: [/* @__PURE__ */ a("td", {
|
|
49
|
-
className: "ttw:py-3",
|
|
50
|
-
children: /* @__PURE__ */ a("a", {
|
|
51
|
-
href: e.url,
|
|
52
|
-
target: "_blank",
|
|
53
|
-
rel: "noreferrer",
|
|
54
|
-
className: "ttw:text-primary ttw:hover:underline",
|
|
55
|
-
children: e.name
|
|
56
|
-
})
|
|
57
|
-
}), /* @__PURE__ */ a("td", {
|
|
58
|
-
className: "ttw:py-3 ttw:text-right ttw:align-middle",
|
|
59
|
-
children: e.includeInEmail ? /* @__PURE__ */ a(s, {
|
|
60
|
-
role: "img",
|
|
61
|
-
"aria-label": e.emailedLabel,
|
|
62
|
-
className: "ttw:inline-block ttw:size-4 ttw:text-emerald-600"
|
|
63
|
-
}) : /* @__PURE__ */ a("span", {
|
|
64
|
-
className: "ttw:sr-only",
|
|
65
|
-
children: e.emailedLabel
|
|
66
|
-
})
|
|
67
|
-
})]
|
|
68
|
-
}, e.id)) })]
|
|
69
|
-
}) })]
|
|
70
|
-
});
|
|
71
|
-
}
|
|
2
|
+
var e = {
|
|
3
|
+
billing: "billing",
|
|
4
|
+
lineItems: "line-items",
|
|
5
|
+
notes: "notes",
|
|
6
|
+
attachments: "attachments",
|
|
7
|
+
auditHistory: "audit-history"
|
|
8
|
+
};
|
|
72
9
|
//#endregion
|
|
73
|
-
export {
|
|
10
|
+
export { e as RECEIVABLE_DETAILS_SECTION };
|
|
@@ -1,20 +1,73 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { jsx as
|
|
4
|
-
import {
|
|
1
|
+
import { AccordionContent as e, AccordionItem as t, AccordionTrigger as n, Badge as r, Typography as i } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { RECEIVABLE_DETAILS_SECTION as a } from "./index21.js";
|
|
3
|
+
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
4
|
+
import { Check as c } from "lucide-react";
|
|
5
5
|
//#region ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index22.js
|
|
6
|
-
|
|
7
|
-
return /* @__PURE__ */
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
6
|
+
function l({ attachments: l, labels: u }) {
|
|
7
|
+
return /* @__PURE__ */ s(t, {
|
|
8
|
+
value: a.attachments,
|
|
9
|
+
children: [/* @__PURE__ */ o(n, { children: /* @__PURE__ */ s("span", {
|
|
10
|
+
className: "ttw:flex ttw:items-center ttw:gap-2",
|
|
11
|
+
children: [/* @__PURE__ */ o("span", {
|
|
12
|
+
className: "ttw:group-hover:underline",
|
|
13
|
+
children: u.attachmentsHeading
|
|
14
|
+
}), /* @__PURE__ */ o(r, {
|
|
15
|
+
variant: "secondary",
|
|
16
|
+
className: "ttw:rounded-full",
|
|
17
|
+
children: l.countLabel
|
|
18
|
+
})]
|
|
19
|
+
}) }), /* @__PURE__ */ o(e, { children: l.rows.length === 0 ? /* @__PURE__ */ o(i, {
|
|
20
|
+
variant: "body2",
|
|
21
|
+
color: "muted",
|
|
22
|
+
children: u.attachmentsEmpty
|
|
23
|
+
}) : /* @__PURE__ */ s("table", {
|
|
24
|
+
className: "ttw:w-full ttw:border-collapse",
|
|
25
|
+
children: [/* @__PURE__ */ o("thead", { children: /* @__PURE__ */ s("tr", {
|
|
26
|
+
className: "ttw:border-b ttw:border-border",
|
|
27
|
+
children: [/* @__PURE__ */ o("th", {
|
|
28
|
+
scope: "col",
|
|
29
|
+
className: "ttw:py-2 ttw:text-left",
|
|
30
|
+
children: /* @__PURE__ */ o(i, {
|
|
31
|
+
component: "span",
|
|
32
|
+
variant: "caption",
|
|
33
|
+
color: "muted",
|
|
34
|
+
children: u.attachmentsFileColumn
|
|
35
|
+
})
|
|
36
|
+
}), /* @__PURE__ */ o("th", {
|
|
37
|
+
scope: "col",
|
|
38
|
+
className: "ttw:py-2 ttw:text-right",
|
|
39
|
+
children: /* @__PURE__ */ o(i, {
|
|
40
|
+
component: "span",
|
|
41
|
+
variant: "caption",
|
|
42
|
+
color: "muted",
|
|
43
|
+
children: u.attachmentsEmailedColumn
|
|
44
|
+
})
|
|
45
|
+
})]
|
|
46
|
+
}) }), /* @__PURE__ */ o("tbody", { children: l.rows.map((e) => /* @__PURE__ */ s("tr", {
|
|
47
|
+
className: "ttw:border-b ttw:border-border ttw:last:border-b-0",
|
|
48
|
+
children: [/* @__PURE__ */ o("td", {
|
|
49
|
+
className: "ttw:py-3",
|
|
50
|
+
children: /* @__PURE__ */ o("a", {
|
|
51
|
+
href: e.url,
|
|
52
|
+
target: "_blank",
|
|
53
|
+
rel: "noreferrer",
|
|
54
|
+
className: "ttw:text-primary ttw:hover:underline",
|
|
55
|
+
children: e.name
|
|
56
|
+
})
|
|
57
|
+
}), /* @__PURE__ */ o("td", {
|
|
58
|
+
className: "ttw:py-3 ttw:text-right ttw:align-middle",
|
|
59
|
+
children: e.includeInEmail ? /* @__PURE__ */ o(c, {
|
|
60
|
+
role: "img",
|
|
61
|
+
"aria-label": e.emailedLabel,
|
|
62
|
+
className: "ttw:inline-block ttw:size-4 ttw:text-emerald-600"
|
|
63
|
+
}) : /* @__PURE__ */ o("span", {
|
|
64
|
+
className: "ttw:sr-only",
|
|
65
|
+
children: e.emailedLabel
|
|
66
|
+
})
|
|
67
|
+
})]
|
|
68
|
+
}, e.id)) })]
|
|
69
|
+
}) })]
|
|
17
70
|
});
|
|
18
|
-
}
|
|
71
|
+
}
|
|
19
72
|
//#endregion
|
|
20
|
-
export {
|
|
73
|
+
export { l as AttachmentsItem };
|