@tesouro/embedded-components-react 0.5.228 → 0.5.231
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 +22 -21
- package/dist/index.css +10 -0
- package/dist/index.d.ts +55 -21
- 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 +34 -1
- 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/{index6.js → lib/useOrganizationLocationsQuery.js} +6 -6
- 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 +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index11.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index5.js +32 -33
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index6.js +34 -32
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index7.js +1 -1
- 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 +120 -52
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index11.js +44 -100
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index12.js +93 -337
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index13.js +356 -211
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index14.js +225 -157
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index15.js +152 -21
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index16.js +18 -221
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index17.js +224 -56
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index18.js +126 -231
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index19.js +53 -298
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index20.js +232 -43
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index21.js +295 -118
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index22.js +38 -145
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index23.js +126 -46
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index24.js +145 -117
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index25.js +38 -91
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index26.js +113 -107
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index27.js +94 -27
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index28.js +104 -619
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index29.js +34 -41
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index30.js +635 -34
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index31.js +39 -77
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index32.js +34 -117
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index33.js +75 -318
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index34.js +139 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index35.js +340 -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/index8.js +55 -468
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index9.js +443 -97
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index.js +24 -21
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index10.js +32 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index11.js +205 -84
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index12.js +161 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index13.js +12 -20
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index14.js +23 -40
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index15.js +2 -17
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index16.js +90 -68
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index17.js +3 -20
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index18.js +20 -12
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index19.js +40 -30
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index2.js +14 -7
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index20.js +15 -301
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index21.js +73 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index22.js +17 -45
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index23.js +12 -68
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index24.js +26 -490
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index25.js +294 -95
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index26.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index27.js +48 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index28.js +72 -4
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index29.js +496 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index3.js +121 -27
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index30.js +97 -91
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index32.js +2 -236
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index33.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index34.js +1 -249
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index35.js +89 -82
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index36.js +23 -54
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index37.js +223 -340
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index38.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index39.js +249 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index4.js +100 -216
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index40.js +93 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index41.js +59 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index42.js +353 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index5.js +35 -29
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index6.js +2 -216
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index7.js +9 -159
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index8.js +27 -14
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index9.js +216 -23
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index5.js +1 -1
- 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/product-catalog/feature/dist/index.js +12 -12
- 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/index22.js +0 -1
- 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/index31.js +0 -28
|
@@ -1,106 +1,305 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
1
|
+
import { Accordion as e, AccordionContent as t, AccordionItem as n, AccordionTrigger as r, Badge as i, Button as a, Sheet as o, SheetContent as s, SheetDescription as c, SheetHeader as l, SheetTitle as u, Tooltip as d, TooltipContent as f, TooltipProvider as p, TooltipTrigger as m, cn as h } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { ErrorState as g } from "../../../shared/ui/dist/lib/ErrorState/ErrorState.js";
|
|
3
|
+
import "../../../shared/ui/dist/index.js";
|
|
4
|
+
import { RECEIVABLE_DETAILS_PANEL_LABELS_EN as _ } from "./index9.js";
|
|
5
|
+
import { ReceivableStatusBadge as v } from "./index18.js";
|
|
6
|
+
import { ACTION_ICON as y, ACTION_LABEL_KEY as b, STATUS_ICON as x, headerIconButtonClass as S } from "./index19.js";
|
|
7
|
+
import { AmountCell as C } from "./index20.js";
|
|
8
|
+
import { ATTACHMENTS_ITEM_VALUE as w, AttachmentsItem as T } from "./index21.js";
|
|
9
|
+
import { CloseButton as E } from "./index22.js";
|
|
10
|
+
import { InfoRow as D } from "./index23.js";
|
|
11
|
+
import { OverflowMenu as O } from "./index24.js";
|
|
12
|
+
import { Fragment as k, jsx as A, jsxs as j } from "react/jsx-runtime";
|
|
13
|
+
import { CircleAlert as M, EyeIcon as N, Repeat as P } from "lucide-react";
|
|
4
14
|
//#region ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index25.js
|
|
5
|
-
function
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
className: "ttw:
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}),
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
15
|
+
function F({ open: F, onOpenChange: I, details: L, unsupported: R, isLoading: z, isError: B, onActionClick: V, onClose: H, labels: U }) {
|
|
16
|
+
let W = {
|
|
17
|
+
..._,
|
|
18
|
+
...U
|
|
19
|
+
}, G = L?.panel, K = B ? {
|
|
20
|
+
title: W.errorTitle,
|
|
21
|
+
description: W.errorDescription
|
|
22
|
+
} : R, q = G?.amountTone === "danger", J = (e) => W[b[e]], Y = L ? x[L.status] : void 0;
|
|
23
|
+
return /* @__PURE__ */ A(o, {
|
|
24
|
+
open: F,
|
|
25
|
+
onOpenChange: I,
|
|
26
|
+
children: /* @__PURE__ */ j(s, {
|
|
27
|
+
showCloseButton: !1,
|
|
28
|
+
className: "ttw:w-180 ttw:overflow-y-auto ttw:p-0 ttw:sm:max-w-180",
|
|
29
|
+
children: [K || z || !L ? /* @__PURE__ */ A(E, {
|
|
30
|
+
label: W.closeButton,
|
|
31
|
+
onClose: H,
|
|
32
|
+
className: h(S, "ttw:absolute ttw:right-4 ttw:top-4 ttw:z-10")
|
|
33
|
+
}) : null, K ? /* @__PURE__ */ j("div", {
|
|
34
|
+
className: "ttw:p-6",
|
|
35
|
+
children: [/* @__PURE__ */ j(l, {
|
|
36
|
+
className: "ttw:sr-only",
|
|
37
|
+
children: [/* @__PURE__ */ A(u, { children: K.title }), /* @__PURE__ */ A(c, { children: W.hiddenDescription })]
|
|
38
|
+
}), /* @__PURE__ */ A(g, {
|
|
39
|
+
title: K.title,
|
|
40
|
+
description: K.description
|
|
41
|
+
})]
|
|
42
|
+
}) : z || !L || !G ? /* @__PURE__ */ j(l, {
|
|
43
|
+
className: "ttw:p-6",
|
|
44
|
+
children: [/* @__PURE__ */ A(u, { children: W.loadingTitle }), /* @__PURE__ */ A(c, {
|
|
45
|
+
className: "ttw:sr-only",
|
|
46
|
+
children: W.hiddenDescription
|
|
47
|
+
})]
|
|
48
|
+
}) : /* @__PURE__ */ j(k, { children: [/* @__PURE__ */ j(l, {
|
|
49
|
+
className: "ttw:flex ttw:flex-row ttw:items-start ttw:justify-between ttw:gap-2 ttw:space-y-0 ttw:px-6 ttw:py-4",
|
|
50
|
+
children: [/* @__PURE__ */ j("div", {
|
|
51
|
+
className: "ttw:flex ttw:flex-col ttw:gap-0.5",
|
|
52
|
+
children: [
|
|
53
|
+
/* @__PURE__ */ A(u, {
|
|
54
|
+
className: "ttw:text-xl ttw:font-semibold ttw:text-foreground",
|
|
55
|
+
children: L.title
|
|
56
|
+
}),
|
|
57
|
+
G.subtitle ? /* @__PURE__ */ A("p", {
|
|
58
|
+
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
59
|
+
children: G.subtitle
|
|
60
|
+
}) : null,
|
|
61
|
+
/* @__PURE__ */ A(c, {
|
|
62
|
+
className: "ttw:sr-only",
|
|
63
|
+
children: W.hiddenDescription
|
|
64
|
+
})
|
|
65
|
+
]
|
|
66
|
+
}), /* @__PURE__ */ A(p, {
|
|
67
|
+
delayDuration: 500,
|
|
68
|
+
children: /* @__PURE__ */ j("div", {
|
|
69
|
+
className: "ttw:flex ttw:items-center ttw:gap-1.5",
|
|
57
70
|
children: [
|
|
58
|
-
/* @__PURE__ */
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
71
|
+
L.pdfUrl ? /* @__PURE__ */ j(d, { children: [/* @__PURE__ */ A(m, {
|
|
72
|
+
asChild: !0,
|
|
73
|
+
children: /* @__PURE__ */ A(a, {
|
|
74
|
+
asChild: !0,
|
|
75
|
+
variant: "ghost",
|
|
76
|
+
size: "icon",
|
|
77
|
+
className: S,
|
|
78
|
+
children: /* @__PURE__ */ A("a", {
|
|
79
|
+
href: L.pdfUrl,
|
|
80
|
+
target: "_blank",
|
|
81
|
+
rel: "noreferrer",
|
|
82
|
+
"aria-label": W.viewPdfButton,
|
|
83
|
+
children: /* @__PURE__ */ A(N, { className: "ttw:size-4" })
|
|
84
|
+
})
|
|
85
|
+
})
|
|
86
|
+
}), /* @__PURE__ */ A(f, { children: W.viewPdfButton })] }) : null,
|
|
87
|
+
G.overflowActions.length > 0 ? /* @__PURE__ */ A(O, {
|
|
88
|
+
actions: G.overflowActions,
|
|
89
|
+
triggerLabel: W.moreActionsLabel,
|
|
90
|
+
getActionLabel: J,
|
|
91
|
+
onSelect: (e) => V(e, L),
|
|
92
|
+
className: S
|
|
93
|
+
}) : null,
|
|
94
|
+
/* @__PURE__ */ j(d, { children: [/* @__PURE__ */ A(m, {
|
|
95
|
+
asChild: !0,
|
|
96
|
+
children: /* @__PURE__ */ A(E, {
|
|
97
|
+
label: W.closeButton,
|
|
98
|
+
onClose: H,
|
|
99
|
+
className: S
|
|
100
|
+
})
|
|
101
|
+
}), /* @__PURE__ */ A(f, { children: W.closeButton })] })
|
|
65
102
|
]
|
|
66
|
-
})
|
|
67
|
-
|
|
68
|
-
|
|
103
|
+
})
|
|
104
|
+
})]
|
|
105
|
+
}), /* @__PURE__ */ j("div", {
|
|
106
|
+
className: "ttw:flex ttw:flex-col",
|
|
107
|
+
children: [/* @__PURE__ */ A("div", {
|
|
108
|
+
className: "ttw:px-6",
|
|
109
|
+
children: /* @__PURE__ */ j("div", {
|
|
110
|
+
className: h("ttw:flex ttw:flex-col ttw:gap-3 ttw:rounded-lg ttw:bg-muted ttw:p-4", q && "ttw:border ttw:border-red-200"),
|
|
69
111
|
children: [
|
|
70
|
-
/* @__PURE__ */
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
112
|
+
/* @__PURE__ */ A("div", {
|
|
113
|
+
className: "ttw:flex ttw:flex-row ttw:flex-wrap ttw:gap-x-12 ttw:gap-y-2",
|
|
114
|
+
children: G.amountRows.map((e) => /* @__PURE__ */ A(C, {
|
|
115
|
+
row: e,
|
|
116
|
+
defaultTone: G.amountTone
|
|
117
|
+
}, e.label))
|
|
75
118
|
}),
|
|
76
|
-
/* @__PURE__ */
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
119
|
+
/* @__PURE__ */ j("div", {
|
|
120
|
+
className: "ttw:flex ttw:items-center ttw:gap-2",
|
|
121
|
+
children: [G.overdueLabel ? /* @__PURE__ */ j("span", {
|
|
122
|
+
className: "ttw:inline-flex ttw:items-center ttw:gap-1 ttw:rounded-full ttw:bg-red-100 ttw:px-2.5 ttw:py-0.5 ttw:text-xs ttw:font-medium ttw:text-red-700",
|
|
123
|
+
children: [/* @__PURE__ */ A(M, { className: "ttw:size-3" }), G.overdueLabel]
|
|
124
|
+
}) : /* @__PURE__ */ A(v, {
|
|
125
|
+
label: G.statusLabel,
|
|
126
|
+
tone: L.statusTone,
|
|
127
|
+
icon: Y ? /* @__PURE__ */ A(Y, { className: "ttw:size-3" }) : void 0
|
|
128
|
+
}), G.recurring ? /* @__PURE__ */ j(i, {
|
|
129
|
+
variant: "outline",
|
|
130
|
+
className: "ttw:gap-1 ttw:border-violet-200 ttw:bg-violet-50 ttw:text-violet-700",
|
|
131
|
+
children: [/* @__PURE__ */ A(P, { className: "ttw:size-3" }), W.recurringBadge]
|
|
132
|
+
}) : null]
|
|
133
|
+
}),
|
|
134
|
+
/* @__PURE__ */ j("div", {
|
|
135
|
+
className: "ttw:flex ttw:gap-12 ttw:text-sm",
|
|
136
|
+
children: [/* @__PURE__ */ j("div", {
|
|
137
|
+
className: "ttw:flex ttw:flex-col ttw:gap-0.5",
|
|
138
|
+
children: [/* @__PURE__ */ A("span", {
|
|
139
|
+
className: "ttw:text-xs ttw:text-muted-foreground",
|
|
140
|
+
children: W.invoiceDateCaption
|
|
141
|
+
}), /* @__PURE__ */ A("span", {
|
|
142
|
+
className: "ttw:text-foreground",
|
|
143
|
+
children: G.issueDateLabel
|
|
144
|
+
})]
|
|
145
|
+
}), /* @__PURE__ */ j("div", {
|
|
146
|
+
className: "ttw:flex ttw:flex-col ttw:gap-0.5",
|
|
147
|
+
children: [/* @__PURE__ */ A("span", {
|
|
148
|
+
className: "ttw:text-xs ttw:text-muted-foreground",
|
|
149
|
+
children: G.dueDateCaption
|
|
150
|
+
}), /* @__PURE__ */ A("span", {
|
|
151
|
+
className: "ttw:text-foreground",
|
|
152
|
+
children: G.dueDateLabel
|
|
153
|
+
})]
|
|
154
|
+
})]
|
|
87
155
|
}),
|
|
88
|
-
/* @__PURE__ */
|
|
156
|
+
G.primaryActions.length > 0 ? /* @__PURE__ */ A("div", {
|
|
157
|
+
className: "ttw:flex ttw:items-center ttw:gap-2 ttw:border-t ttw:border-border ttw:pt-3",
|
|
158
|
+
children: G.primaryActions.map((e, t) => {
|
|
159
|
+
let n = y[e], r = t === G.primaryActions.length - 1;
|
|
160
|
+
return /* @__PURE__ */ j(a, {
|
|
161
|
+
size: "sm",
|
|
162
|
+
variant: r ? "default" : "outline",
|
|
163
|
+
onClick: () => V(e, L),
|
|
164
|
+
children: [/* @__PURE__ */ A(n, { className: "ttw:size-4" }), J(e)]
|
|
165
|
+
}, e);
|
|
166
|
+
})
|
|
167
|
+
}) : null
|
|
89
168
|
]
|
|
90
169
|
})
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
170
|
+
}), /* @__PURE__ */ j("div", {
|
|
171
|
+
className: "ttw:px-6",
|
|
172
|
+
children: [
|
|
173
|
+
G.paymentHistory ? /* @__PURE__ */ j("section", {
|
|
174
|
+
"aria-label": W.paymentHistoryHeading,
|
|
175
|
+
className: "ttw:border-b ttw:py-4",
|
|
176
|
+
children: [/* @__PURE__ */ A("h3", {
|
|
177
|
+
className: "ttw:mb-3 ttw:text-sm ttw:font-medium",
|
|
178
|
+
children: W.paymentHistoryHeading
|
|
179
|
+
}), G.paymentHistory.rows.length === 0 ? /* @__PURE__ */ A("p", {
|
|
180
|
+
className: h("ttw:text-sm", G.paymentHistory.emptyTone === "danger" ? "ttw:text-red-600" : "ttw:text-muted-foreground"),
|
|
181
|
+
children: W.paymentHistoryEmpty
|
|
182
|
+
}) : /* @__PURE__ */ j("div", {
|
|
183
|
+
className: "ttw:flex ttw:flex-col",
|
|
184
|
+
children: [G.paymentHistory.rows.map((e) => /* @__PURE__ */ j("div", {
|
|
185
|
+
className: "ttw:flex ttw:justify-between ttw:border-b ttw:border-border ttw:py-2 ttw:text-sm",
|
|
186
|
+
children: [/* @__PURE__ */ A("span", { children: e.dateLabel }), /* @__PURE__ */ A("span", { children: e.amountLabel })]
|
|
187
|
+
}, e.id)), /* @__PURE__ */ j("div", {
|
|
188
|
+
className: "ttw:flex ttw:justify-between ttw:py-2 ttw:text-sm ttw:font-medium",
|
|
189
|
+
children: [/* @__PURE__ */ A("span", { children: W.paymentHistoryTotalLabel }), /* @__PURE__ */ A("span", { children: G.paymentHistory.totalLabel })]
|
|
190
|
+
})]
|
|
191
|
+
})]
|
|
192
|
+
}) : null,
|
|
193
|
+
G.customerContact.length > 0 ? /* @__PURE__ */ j("section", {
|
|
194
|
+
"aria-label": W.customerDetailsHeading,
|
|
195
|
+
className: "ttw:border-b ttw:py-4",
|
|
196
|
+
children: [/* @__PURE__ */ A("h3", {
|
|
197
|
+
className: "ttw:mb-3 ttw:text-sm ttw:font-medium",
|
|
198
|
+
children: W.customerDetailsHeading
|
|
199
|
+
}), /* @__PURE__ */ A("div", {
|
|
200
|
+
className: "ttw:flex ttw:flex-col",
|
|
201
|
+
children: G.customerContact.map((e) => /* @__PURE__ */ A(D, { ...e }, e.label))
|
|
202
|
+
})]
|
|
203
|
+
}) : null,
|
|
204
|
+
/* @__PURE__ */ j(e, {
|
|
205
|
+
type: "multiple",
|
|
206
|
+
defaultValue: [w],
|
|
207
|
+
className: "ttw:w-full",
|
|
208
|
+
children: [
|
|
209
|
+
G.recurrenceItems ? /* @__PURE__ */ j(n, {
|
|
210
|
+
value: "recurrence",
|
|
211
|
+
children: [/* @__PURE__ */ A(r, { children: W.recurrenceHeading }), /* @__PURE__ */ A(t, { children: /* @__PURE__ */ A("div", {
|
|
212
|
+
className: "ttw:flex ttw:flex-col",
|
|
213
|
+
children: G.recurrenceItems.map((e) => /* @__PURE__ */ A(D, { ...e }, e.label))
|
|
214
|
+
}) })]
|
|
215
|
+
}) : null,
|
|
216
|
+
/* @__PURE__ */ j(n, {
|
|
217
|
+
value: "billing",
|
|
218
|
+
children: [/* @__PURE__ */ A(r, { children: W.billingHeading }), /* @__PURE__ */ A(t, { children: /* @__PURE__ */ A("div", {
|
|
219
|
+
className: "ttw:flex ttw:flex-col",
|
|
220
|
+
children: G.billingItems.map((e) => /* @__PURE__ */ A(D, { ...e }, e.label))
|
|
221
|
+
}) })]
|
|
222
|
+
}),
|
|
223
|
+
/* @__PURE__ */ j(n, {
|
|
224
|
+
value: "line-items",
|
|
225
|
+
children: [/* @__PURE__ */ A(r, { children: /* @__PURE__ */ j("span", {
|
|
226
|
+
className: "ttw:flex ttw:items-center ttw:gap-2",
|
|
227
|
+
children: [W.lineItemsHeading, /* @__PURE__ */ A(i, {
|
|
228
|
+
variant: "secondary",
|
|
229
|
+
className: "ttw:rounded-full",
|
|
230
|
+
children: G.lineItemsCountLabel
|
|
231
|
+
})]
|
|
232
|
+
}) }), /* @__PURE__ */ A(t, { children: /* @__PURE__ */ j("div", {
|
|
233
|
+
className: "ttw:flex ttw:flex-col ttw:text-sm",
|
|
234
|
+
children: [L.lineItems.length === 0 ? /* @__PURE__ */ A("p", {
|
|
235
|
+
className: "ttw:py-3 ttw:text-muted-foreground",
|
|
236
|
+
children: W.noLineItems
|
|
237
|
+
}) : L.lineItems.map((e) => /* @__PURE__ */ j("div", {
|
|
238
|
+
className: "ttw:flex ttw:items-start ttw:justify-between ttw:border-b ttw:border-border ttw:py-3",
|
|
239
|
+
children: [/* @__PURE__ */ j("div", {
|
|
240
|
+
className: "ttw:flex ttw:flex-col",
|
|
241
|
+
children: [/* @__PURE__ */ A("span", {
|
|
242
|
+
className: "ttw:font-medium",
|
|
243
|
+
children: e.name
|
|
244
|
+
}), /* @__PURE__ */ j("span", {
|
|
245
|
+
className: "ttw:text-muted-foreground",
|
|
246
|
+
children: [
|
|
247
|
+
e.quantityLabel,
|
|
248
|
+
" ",
|
|
249
|
+
W.lineItemMultiplier,
|
|
250
|
+
" ",
|
|
251
|
+
e.unitPriceLabel,
|
|
252
|
+
" ",
|
|
253
|
+
W.lineItemEaLabel
|
|
254
|
+
]
|
|
255
|
+
})]
|
|
256
|
+
}), /* @__PURE__ */ A("span", { children: e.totalLabel })]
|
|
257
|
+
}, e.id)), G.lineItemTotals.length > 0 ? /* @__PURE__ */ A("div", {
|
|
258
|
+
className: "ttw:flex ttw:flex-col ttw:gap-1 ttw:py-3",
|
|
259
|
+
children: G.lineItemTotals.map((e) => /* @__PURE__ */ j("div", {
|
|
260
|
+
className: h("ttw:flex ttw:justify-between", e.emphasis && "ttw:font-medium"),
|
|
261
|
+
children: [/* @__PURE__ */ A("span", { children: e.label }), /* @__PURE__ */ A("span", { children: e.value })]
|
|
262
|
+
}, e.label))
|
|
263
|
+
}) : null]
|
|
264
|
+
}) })]
|
|
265
|
+
}),
|
|
266
|
+
G.notes ? /* @__PURE__ */ j(n, {
|
|
267
|
+
value: "notes",
|
|
268
|
+
children: [/* @__PURE__ */ A(r, { children: /* @__PURE__ */ j("span", {
|
|
269
|
+
className: "ttw:flex ttw:items-center ttw:gap-2",
|
|
270
|
+
children: [W.notesHeading, /* @__PURE__ */ A(i, {
|
|
271
|
+
variant: "secondary",
|
|
272
|
+
className: "ttw:rounded-full",
|
|
273
|
+
children: G.notes.countLabel
|
|
274
|
+
})]
|
|
275
|
+
}) }), /* @__PURE__ */ A(t, { children: /* @__PURE__ */ j("div", {
|
|
276
|
+
className: "ttw:flex ttw:flex-col ttw:gap-3 ttw:text-sm",
|
|
277
|
+
children: [G.notes.opening ? /* @__PURE__ */ j("div", { children: [/* @__PURE__ */ A("p", {
|
|
278
|
+
className: "ttw:mb-1 ttw:font-medium",
|
|
279
|
+
children: W.notesOpeningLabel
|
|
280
|
+
}), /* @__PURE__ */ A("p", {
|
|
281
|
+
className: "ttw:text-muted-foreground",
|
|
282
|
+
children: G.notes.opening
|
|
283
|
+
})] }) : null, G.notes.closing ? /* @__PURE__ */ j("div", { children: [/* @__PURE__ */ A("p", {
|
|
284
|
+
className: "ttw:mb-1 ttw:font-medium",
|
|
285
|
+
children: W.notesClosingLabel
|
|
286
|
+
}), /* @__PURE__ */ A("p", {
|
|
287
|
+
className: "ttw:text-muted-foreground",
|
|
288
|
+
children: G.notes.closing
|
|
289
|
+
})] }) : null]
|
|
290
|
+
}) })]
|
|
291
|
+
}) : null,
|
|
292
|
+
/* @__PURE__ */ A(T, {
|
|
293
|
+
attachments: G.attachments,
|
|
294
|
+
labels: W
|
|
295
|
+
})
|
|
296
|
+
]
|
|
297
|
+
})
|
|
298
|
+
]
|
|
299
|
+
})]
|
|
300
|
+
})] })]
|
|
301
|
+
})
|
|
103
302
|
});
|
|
104
303
|
}
|
|
105
304
|
//#endregion
|
|
106
|
-
export {
|
|
305
|
+
export { F as ReceivableDetailsPanel, F as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./index25.js";
|
|
@@ -1,2 +1,48 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import "react/jsx-runtime";
|
|
1
|
+
import { cn as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
3
|
+
//#region ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index27.js
|
|
4
|
+
function r({ label: r, value: i, className: a }) {
|
|
5
|
+
return /* @__PURE__ */ n("li", {
|
|
6
|
+
className: e("ttw:flex ttw:items-center ttw:justify-between", a),
|
|
7
|
+
children: [/* @__PURE__ */ t("span", { children: r }), /* @__PURE__ */ t("span", { children: i })]
|
|
8
|
+
});
|
|
9
|
+
}
|
|
10
|
+
function i({ totals: e, labels: i }) {
|
|
11
|
+
return /* @__PURE__ */ n("ul", {
|
|
12
|
+
className: "ttw:flex ttw:w-full ttw:list-none ttw:flex-col ttw:gap-1.5",
|
|
13
|
+
children: [
|
|
14
|
+
/* @__PURE__ */ t(r, {
|
|
15
|
+
label: i.subtotalLabel,
|
|
16
|
+
value: e.subtotal,
|
|
17
|
+
className: "ttw:text-sm ttw:font-normal"
|
|
18
|
+
}),
|
|
19
|
+
/* @__PURE__ */ t(r, {
|
|
20
|
+
label: i.discountTotalLabel,
|
|
21
|
+
value: e.discount,
|
|
22
|
+
className: "ttw:text-sm ttw:font-normal"
|
|
23
|
+
}),
|
|
24
|
+
/* @__PURE__ */ t(r, {
|
|
25
|
+
label: i.nonTaxableSubtotalLabel,
|
|
26
|
+
value: e.nonTaxableSubtotal,
|
|
27
|
+
className: "ttw:text-sm ttw:font-normal ttw:text-muted-foreground"
|
|
28
|
+
}),
|
|
29
|
+
/* @__PURE__ */ t(r, {
|
|
30
|
+
label: i.taxableSubtotalLabel,
|
|
31
|
+
value: e.taxableSubtotal,
|
|
32
|
+
className: "ttw:text-sm ttw:font-normal ttw:text-muted-foreground"
|
|
33
|
+
}),
|
|
34
|
+
/* @__PURE__ */ t(r, {
|
|
35
|
+
label: i.taxTotalLabel,
|
|
36
|
+
value: e.tax,
|
|
37
|
+
className: "ttw:text-sm ttw:font-normal"
|
|
38
|
+
}),
|
|
39
|
+
/* @__PURE__ */ t(r, {
|
|
40
|
+
label: i.totalLabel,
|
|
41
|
+
value: e.total,
|
|
42
|
+
className: "ttw:text-lg ttw:font-medium"
|
|
43
|
+
})
|
|
44
|
+
]
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
//#endregion
|
|
48
|
+
export { i as ReceivableFormTotals };
|
|
@@ -1,4 +1,72 @@
|
|
|
1
|
-
import "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
-
import "
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { Field as e, FieldContent as t, FieldDescription as n, FieldError as r, FieldLabel as i, Textarea as a, Typography as o } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
3
|
+
//#region ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index28.js
|
|
4
|
+
function l({ id: l, value: u, error: d, disabled: f, label: p, optionalSuffix: m, placeholder: h, description: g, onChange: _ }) {
|
|
5
|
+
return /* @__PURE__ */ s(e, { children: /* @__PURE__ */ c(t, { children: [
|
|
6
|
+
/* @__PURE__ */ c(i, {
|
|
7
|
+
htmlFor: l,
|
|
8
|
+
className: "ttw:text-nowrap",
|
|
9
|
+
children: [p, /* @__PURE__ */ s(o, {
|
|
10
|
+
variant: "body2",
|
|
11
|
+
component: "span",
|
|
12
|
+
color: "muted",
|
|
13
|
+
className: "ttw:leading-snug",
|
|
14
|
+
children: m
|
|
15
|
+
})]
|
|
16
|
+
}),
|
|
17
|
+
/* @__PURE__ */ s(a, {
|
|
18
|
+
id: l,
|
|
19
|
+
value: u,
|
|
20
|
+
disabled: f,
|
|
21
|
+
placeholder: h,
|
|
22
|
+
className: "ttw:h-26 ttw:resize-none",
|
|
23
|
+
"aria-invalid": !!d,
|
|
24
|
+
onChange: (e) => _(e.target.value)
|
|
25
|
+
}),
|
|
26
|
+
/* @__PURE__ */ s(n, { children: g }),
|
|
27
|
+
/* @__PURE__ */ s(r, { errors: d ? [{ message: d }] : [] })
|
|
28
|
+
] }) });
|
|
29
|
+
}
|
|
30
|
+
function u({ idPrefix: e, openingNote: t, closingNote: n, openingNoteError: r, closingNoteError: i, disabled: a, onOpeningNoteChange: u, onClosingNoteChange: d, labels: f }) {
|
|
31
|
+
return /* @__PURE__ */ c("div", {
|
|
32
|
+
className: "ttw:flex ttw:flex-col ttw:gap-2.5 ttw:rounded-xl ttw:border ttw:border-border ttw:p-6",
|
|
33
|
+
children: [
|
|
34
|
+
/* @__PURE__ */ c("div", {
|
|
35
|
+
className: "ttw:flex ttw:flex-col ttw:gap-2.5 ttw:pb-4",
|
|
36
|
+
children: [/* @__PURE__ */ s(o, {
|
|
37
|
+
variant: "h4",
|
|
38
|
+
children: f.notesHeading
|
|
39
|
+
}), /* @__PURE__ */ s(o, {
|
|
40
|
+
variant: "body2",
|
|
41
|
+
color: "muted",
|
|
42
|
+
className: "ttw:font-medium",
|
|
43
|
+
children: f.notesDescription
|
|
44
|
+
})]
|
|
45
|
+
}),
|
|
46
|
+
/* @__PURE__ */ s(l, {
|
|
47
|
+
id: `${e}-opening-note`,
|
|
48
|
+
value: t,
|
|
49
|
+
error: r,
|
|
50
|
+
disabled: a,
|
|
51
|
+
label: f.openingNoteLabel,
|
|
52
|
+
optionalSuffix: f.optionalSuffix,
|
|
53
|
+
placeholder: f.openingNotePlaceholder,
|
|
54
|
+
description: f.openingNoteDescription,
|
|
55
|
+
onChange: u
|
|
56
|
+
}),
|
|
57
|
+
/* @__PURE__ */ s(l, {
|
|
58
|
+
id: `${e}-closing-note`,
|
|
59
|
+
value: n,
|
|
60
|
+
error: i,
|
|
61
|
+
disabled: a,
|
|
62
|
+
label: f.closingNoteLabel,
|
|
63
|
+
optionalSuffix: f.optionalSuffix,
|
|
64
|
+
placeholder: f.closingNotePlaceholder,
|
|
65
|
+
description: f.closingNoteDescription,
|
|
66
|
+
onChange: d
|
|
67
|
+
})
|
|
68
|
+
]
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
//#endregion
|
|
72
|
+
export { u as ReceivableNotesSection };
|