@tesouro/embedded-components-react 0.5.279 → 0.5.281
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +8 -0
- package/dist/index.d.ts +23 -8
- package/dist/lib/BankAccountOnboardingWidget.d.ts +2 -2
- package/dist/lib/ReceivablesWidget.d.ts +21 -6
- package/dist/lib/WidgetSuite.d.ts +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/labels.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index30.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index18.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index13.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index14.js +7 -28
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index15.js +8 -160
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index16.js +20 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index17.js +148 -27
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index18.js +21 -96
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index19.js +37 -79
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index20.js +98 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index21.js +83 -54
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index22.js +3 -113
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index23.js +54 -184
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index24.js +108 -75
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index25.js +181 -29
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index26.js +74 -83
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index27.js +27 -412
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index28.js +88 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index29.js +413 -77
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index30.js +13 -80
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index31.js +77 -226
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index32.js +78 -41
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index33.js +216 -234
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index34.js +44 -23
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index35.js +233 -611
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index36.js +25 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index37.js +647 -39
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index38.js +4 -243
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index39.js +42 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index40.js +250 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index41.js +2 -66
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index42.js +5 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index43.js +67 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index44.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index12.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index15.js +47 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/lib/invalidatePayableQueries/invalidatePayableQueries.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/lib/invalidatePayableQueries/reconcileCancelledPaymentQueries.js +19 -19
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidgetNative/BillsTab.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/data-access/dist/index4.js +15 -15
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index.js +14 -13
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index10.js +24 -168
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index11.js +173 -44
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index12.js +42 -94
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index13.js +91 -76
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index14.js +67 -173
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index15.js +186 -17
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index16.js +27 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index3.js +11 -13
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index4.js +42 -27
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index5.js +28 -132
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index6.js +137 -16
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index7.js +16 -62
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index8.js +66 -28
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index9.js +28 -34
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivableAttachmentsSection.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivableCustomerSection.js +38 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivablesWidget.js +304 -287
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/auditHistory/labels.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/customer.js +58 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/helpers.js +15 -15
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/labels.js +14 -6
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/paymentTerms.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/permissions.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/preview.js +62 -62
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/recurrence.js +41 -35
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/reminders.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/totals.js +21 -13
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableActions.js +124 -124
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableActionsModal.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableAttachmentUploads.js +13 -13
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableBankAccount.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableCustomerPicker.js +109 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableDetails.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableForm.js +520 -476
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableIssuePreflight.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablePaymentRecord.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablePaymentTerms.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablePreview.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableRecurrence.js +92 -77
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableReminders.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableStatusCards.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablesTable.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablesWidget.js +79 -75
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useSendReceivableWithPaymentLink.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index.js +26 -23
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index12.js +9 -25
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index13.js +26 -228
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index14.js +227 -52
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index15.js +50 -212
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index16.js +193 -138
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index17.js +157 -12
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index18.js +10 -19
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index19.js +23 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index20.js +2 -116
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index21.js +118 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index22.js +3 -39
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index23.js +209 -53
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index24.js +2 -23
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index25.js +36 -7
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index26.js +53 -77
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index27.js +17 -35
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index28.js +8 -18
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index29.js +73 -37
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index30.js +36 -26
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index31.js +17 -19
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index32.js +39 -8
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index33.js +26 -33
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index34.js +20 -14
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index35.js +8 -24
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index36.js +34 -84
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index37.js +14 -492
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index38.js +28 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index39.js +79 -39
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index40.js +490 -68
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index41.js +2 -487
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index42.js +41 -217
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index43.js +70 -21
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index44.js +440 -5
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index45.js +224 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index46.js +21 -263
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index47.js +8 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index49.js +261 -24
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index50.js +2 -237
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index51.js +100 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index52.js +21 -242
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index53.js +226 -82
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index54.js +3 -60
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index55.js +233 -178
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index56.js +85 -37
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index57.js +60 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index58.js +194 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index59.js +45 -0
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/index.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/CounterpartSelector.js +2 -23
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useCounterpartSelector.js +2 -51
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index15.js +4 -80
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index2.js +10 -22
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/zod.gen.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/user/useAllOrganizationUsersQuery.js +1 -0
- 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/ui/dist/lib/OnboardingShell/OnboardingShell.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/labels.js +2 -2
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index48.js +0 -100
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
import { Button as e, DataTable as t, Skeleton as n, Tooltip as r, TooltipContent as i, TooltipProvider as a, TooltipTrigger as o } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { EmptyState as s } from "../../../shared/ui/dist/lib/EmptyState/EmptyState.js";
|
|
3
|
+
import { ErrorState as c } from "../../../shared/ui/dist/lib/ErrorState/ErrorState.js";
|
|
4
|
+
import "../../../shared/ui/dist/index.js";
|
|
5
|
+
import { RECEIVABLES_SCREEN_LABELS_EN as l } from "./index14.js";
|
|
6
|
+
import { ReceivableStatusBadge as u } from "./index25.js";
|
|
7
|
+
import { ReceivableStatusCards as d } from "./index57.js";
|
|
8
|
+
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
9
|
+
import { ArrowDownIcon as m, ArrowUpDownIcon as h, ArrowUpIcon as g, CogIcon as _, LockKeyholeIcon as v } from "lucide-react";
|
|
10
|
+
//#region ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index58.js
|
|
11
|
+
var y = [
|
|
12
|
+
10,
|
|
13
|
+
25,
|
|
14
|
+
50,
|
|
15
|
+
100
|
|
16
|
+
];
|
|
17
|
+
function b({ label: t, ariaLabel: n, column: r }) {
|
|
18
|
+
let i = r.getIsSorted();
|
|
19
|
+
return /* @__PURE__ */ p("div", {
|
|
20
|
+
className: "ttw:flex ttw:items-center ttw:gap-2 ttw:text-inherit",
|
|
21
|
+
children: [t, /* @__PURE__ */ f(e, {
|
|
22
|
+
variant: "ghost",
|
|
23
|
+
size: "icon-sm",
|
|
24
|
+
"aria-label": n,
|
|
25
|
+
onClick: () => r.toggleSorting(i === "asc"),
|
|
26
|
+
children: f(i === "asc" ? g : i === "desc" ? m : h, { className: "ttw:size-4" })
|
|
27
|
+
})]
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
function x({ row: e }) {
|
|
31
|
+
return e.customerState === "resolving" ? /* @__PURE__ */ f(n, { className: "ttw:h-4 ttw:w-full" }) : e.customerState === "missing" ? /* @__PURE__ */ f("span", {
|
|
32
|
+
className: "ttw:opacity-40",
|
|
33
|
+
children: e.customerLabel
|
|
34
|
+
}) : /* @__PURE__ */ f("span", { children: e.customerLabel });
|
|
35
|
+
}
|
|
36
|
+
function S({ rows: n, isLoading: m, isError: h, isAccessRestricted: g, sorting: S, onSortingChange: C, pageSize: w, onPageSizeChange: T, pageSizeOptions: E = y, pageInfo: D, hasNextPage: O, hasPrevPage: k, onNextPage: A, onPrevPage: j, statusCards: M, onStatusCardSelect: N, filterBar: P, isFiltering: F, headerStart: I, bankAttribution: L, onCreateClick: R, onSettingsClick: z, onRowClick: B, onRetry: V, labels: H }) {
|
|
37
|
+
let U = {
|
|
38
|
+
...l,
|
|
39
|
+
...H,
|
|
40
|
+
statusBadge: {
|
|
41
|
+
...l.statusBadge,
|
|
42
|
+
...H?.statusBadge
|
|
43
|
+
}
|
|
44
|
+
}, W = [
|
|
45
|
+
{
|
|
46
|
+
accessorKey: "dueDateLabel",
|
|
47
|
+
enableSorting: !0,
|
|
48
|
+
header: ({ column: e }) => /* @__PURE__ */ f(b, {
|
|
49
|
+
column: e,
|
|
50
|
+
label: U.columnDueDate,
|
|
51
|
+
ariaLabel: U.sortByDueDate
|
|
52
|
+
})
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
accessorKey: "status",
|
|
56
|
+
enableSorting: !0,
|
|
57
|
+
header: ({ column: e }) => /* @__PURE__ */ f(b, {
|
|
58
|
+
column: e,
|
|
59
|
+
label: U.columnStatus,
|
|
60
|
+
ariaLabel: U.sortByStatus
|
|
61
|
+
}),
|
|
62
|
+
cell: ({ row: e }) => /* @__PURE__ */ f(u, {
|
|
63
|
+
status: e.original.status,
|
|
64
|
+
variant: "filled",
|
|
65
|
+
labels: U.statusBadge
|
|
66
|
+
})
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
accessorKey: "documentLabel",
|
|
70
|
+
enableSorting: !0,
|
|
71
|
+
header: ({ column: e }) => /* @__PURE__ */ f(b, {
|
|
72
|
+
column: e,
|
|
73
|
+
label: U.columnNumber,
|
|
74
|
+
ariaLabel: U.sortByNumber
|
|
75
|
+
})
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
accessorKey: "customerLabel",
|
|
79
|
+
header: U.columnCustomer,
|
|
80
|
+
cell: ({ row: e }) => /* @__PURE__ */ f(x, { row: e.original }),
|
|
81
|
+
minSize: 180
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
accessorKey: "issueDateLabel",
|
|
85
|
+
enableSorting: !0,
|
|
86
|
+
header: ({ column: e }) => /* @__PURE__ */ f(b, {
|
|
87
|
+
column: e,
|
|
88
|
+
label: U.columnIssueDate,
|
|
89
|
+
ariaLabel: U.sortByIssueDate
|
|
90
|
+
})
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
accessorKey: "totalLabel",
|
|
94
|
+
enableSorting: !0,
|
|
95
|
+
header: ({ column: e }) => /* @__PURE__ */ f("div", {
|
|
96
|
+
className: "ttw:flex ttw:justify-end",
|
|
97
|
+
children: /* @__PURE__ */ f(b, {
|
|
98
|
+
column: e,
|
|
99
|
+
label: U.columnAmount,
|
|
100
|
+
ariaLabel: U.sortByAmount
|
|
101
|
+
})
|
|
102
|
+
}),
|
|
103
|
+
cell: ({ row: e }) => /* @__PURE__ */ f("div", {
|
|
104
|
+
className: "ttw:text-right",
|
|
105
|
+
children: e.original.totalLabel
|
|
106
|
+
})
|
|
107
|
+
}
|
|
108
|
+
];
|
|
109
|
+
return /* @__PURE__ */ p("div", {
|
|
110
|
+
className: "ttw:flex ttw:flex-col ttw:gap-4",
|
|
111
|
+
children: [
|
|
112
|
+
/* @__PURE__ */ p("div", {
|
|
113
|
+
className: "ttw:flex ttw:justify-between ttw:gap-4",
|
|
114
|
+
children: [/* @__PURE__ */ p("div", {
|
|
115
|
+
className: "ttw:flex ttw:flex-col ttw:gap-2",
|
|
116
|
+
children: [I, L && /* @__PURE__ */ p("div", {
|
|
117
|
+
className: "ttw:flex ttw:items-center ttw:gap-2",
|
|
118
|
+
children: [/* @__PURE__ */ f("span", {
|
|
119
|
+
className: "ttw:text-muted-foreground",
|
|
120
|
+
children: U.bankAttributionPrefix
|
|
121
|
+
}), /* @__PURE__ */ f("img", {
|
|
122
|
+
width: 120,
|
|
123
|
+
src: L.logoSrc,
|
|
124
|
+
alt: L.logoAlt
|
|
125
|
+
})]
|
|
126
|
+
})]
|
|
127
|
+
}), /* @__PURE__ */ p("div", {
|
|
128
|
+
className: "ttw:flex ttw:items-center ttw:gap-2",
|
|
129
|
+
children: [z && /* @__PURE__ */ f(a, { children: /* @__PURE__ */ p(r, { children: [/* @__PURE__ */ f(o, {
|
|
130
|
+
asChild: !0,
|
|
131
|
+
children: /* @__PURE__ */ f(e, {
|
|
132
|
+
type: "button",
|
|
133
|
+
variant: "outline",
|
|
134
|
+
size: "lg",
|
|
135
|
+
"aria-label": U.settingsButton,
|
|
136
|
+
onClick: z,
|
|
137
|
+
children: /* @__PURE__ */ f(_, {
|
|
138
|
+
className: "ttw:size-4.5",
|
|
139
|
+
"aria-hidden": !0
|
|
140
|
+
})
|
|
141
|
+
})
|
|
142
|
+
}), /* @__PURE__ */ f(i, {
|
|
143
|
+
sideOffset: 4,
|
|
144
|
+
children: U.settingsButton
|
|
145
|
+
})] }) }), R && /* @__PURE__ */ f(e, {
|
|
146
|
+
size: "lg",
|
|
147
|
+
onClick: R,
|
|
148
|
+
children: U.createInvoiceButton
|
|
149
|
+
})]
|
|
150
|
+
})]
|
|
151
|
+
}),
|
|
152
|
+
!g && M && N && /* @__PURE__ */ f(d, {
|
|
153
|
+
view: M,
|
|
154
|
+
onSelect: N,
|
|
155
|
+
labels: { all: U.statusCardsAll }
|
|
156
|
+
}),
|
|
157
|
+
g ? /* @__PURE__ */ f(c, {
|
|
158
|
+
icon: /* @__PURE__ */ f(v, { className: "ttw:size-8 ttw:text-primary" }),
|
|
159
|
+
title: U.accessRestrictedTitle,
|
|
160
|
+
description: U.accessRestrictedDescription
|
|
161
|
+
}) : h ? /* @__PURE__ */ f(c, {
|
|
162
|
+
title: U.errorTitle,
|
|
163
|
+
description: U.errorDescription,
|
|
164
|
+
retryLabel: V ? U.errorRetry : void 0,
|
|
165
|
+
onRetry: V
|
|
166
|
+
}) : /* @__PURE__ */ f(t, {
|
|
167
|
+
columns: W,
|
|
168
|
+
data: n,
|
|
169
|
+
isLoading: m,
|
|
170
|
+
sorting: S,
|
|
171
|
+
onSortingChange: C,
|
|
172
|
+
pageSize: w,
|
|
173
|
+
onPageSizeChange: T,
|
|
174
|
+
pageSizeOptions: E,
|
|
175
|
+
pageInfo: D,
|
|
176
|
+
hasNextPage: O,
|
|
177
|
+
hasPrevPage: k,
|
|
178
|
+
onNextPage: A,
|
|
179
|
+
onPrevPage: j,
|
|
180
|
+
onRowClick: B,
|
|
181
|
+
rowAriaLabel: (e) => U.openRow(e.documentLabel),
|
|
182
|
+
filterComponent: P,
|
|
183
|
+
children: /* @__PURE__ */ f(s, {
|
|
184
|
+
title: F ? U.filterEmptyTitle : U.emptyTitle,
|
|
185
|
+
description: F ? void 0 : U.emptyDescription,
|
|
186
|
+
actionLabel: F ? void 0 : U.createInvoiceButton,
|
|
187
|
+
onAction: F ? void 0 : R
|
|
188
|
+
})
|
|
189
|
+
})
|
|
190
|
+
]
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
//#endregion
|
|
194
|
+
export { S as ReceivablesScreen, S as default };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { AlertDialog as e, AlertDialogContent as t, AlertDialogDescription as n, AlertDialogFooter as r, AlertDialogHeader as i, AlertDialogTitle as a, Button as o } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { UNSAVED_INVOICE_DIALOG_LABELS_EN as s } from "./index14.js";
|
|
3
|
+
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
4
|
+
import { XIcon as u } from "lucide-react";
|
|
5
|
+
//#region ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index59.js
|
|
6
|
+
function d({ open: d, onSaveDraft: f, onDiscard: p, onCancel: m, isSaving: h, isSaveDraftDisabled: g, labels: _ }) {
|
|
7
|
+
let v = {
|
|
8
|
+
...s,
|
|
9
|
+
..._
|
|
10
|
+
};
|
|
11
|
+
return /* @__PURE__ */ c(e, {
|
|
12
|
+
open: d,
|
|
13
|
+
onOpenChange: (e) => {
|
|
14
|
+
!e && !h && m();
|
|
15
|
+
},
|
|
16
|
+
children: /* @__PURE__ */ l(t, { children: [
|
|
17
|
+
/* @__PURE__ */ l("button", {
|
|
18
|
+
type: "button",
|
|
19
|
+
onClick: m,
|
|
20
|
+
disabled: h,
|
|
21
|
+
className: "ttw:absolute ttw:right-4 ttw:top-4 ttw:cursor-pointer ttw:rounded-sm ttw:opacity-70 ttw:ring-offset-background ttw:transition-opacity ttw:hover:opacity-100 ttw:focus:outline-hidden ttw:focus:ring-2 ttw:focus:ring-ring ttw:focus:ring-offset-2 ttw:disabled:pointer-events-none",
|
|
22
|
+
children: [/* @__PURE__ */ c(u, { className: "ttw:size-4" }), /* @__PURE__ */ c("span", {
|
|
23
|
+
className: "ttw:sr-only",
|
|
24
|
+
children: v.unsavedCloseButton
|
|
25
|
+
})]
|
|
26
|
+
}),
|
|
27
|
+
/* @__PURE__ */ l(i, { children: [/* @__PURE__ */ c(a, { children: v.unsavedTitle }), /* @__PURE__ */ c(n, { children: v.unsavedDescription })] }),
|
|
28
|
+
/* @__PURE__ */ l(r, { children: [/* @__PURE__ */ c(o, {
|
|
29
|
+
type: "button",
|
|
30
|
+
variant: "outline",
|
|
31
|
+
onClick: p,
|
|
32
|
+
disabled: h,
|
|
33
|
+
children: v.unsavedDiscardButton
|
|
34
|
+
}), /* @__PURE__ */ c(o, {
|
|
35
|
+
type: "button",
|
|
36
|
+
loading: h,
|
|
37
|
+
disabled: h || g,
|
|
38
|
+
onClick: f,
|
|
39
|
+
children: v.unsavedSaveDraftButton
|
|
40
|
+
})] })
|
|
41
|
+
] })
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
//#endregion
|
|
45
|
+
export { d as UnsavedInvoiceDialog, d as default };
|
|
@@ -6,17 +6,17 @@ import { ConfirmDeleteDialog as i } from "../../ui/dist/index14.js";
|
|
|
6
6
|
import "../../ui/dist/index.js";
|
|
7
7
|
import { COUNTERPART_MESSAGE_LABELS_EN as a } from "./lib/labels.js";
|
|
8
8
|
import { buildAnalyticsMap as o, buildCounterpartRows as s, counterpartFormBankAccountToCreatePayload as c, counterpartFormBankAccountToUpdatePayload as l, formatCounterpartDate as u, formatMoney as d, getAchInstructions as f, getCounterpartEmail as p, getCounterpartName as m, getPayableAchInstructions as h, hasSelectedText as g, isAchCompatibleBankAccount as _, resolveCounterpartBankAccountWrite as v, validateAchFormValues as y } from "./lib/helpers.js";
|
|
9
|
-
import { useCounterpartQuery as b, useCounterpartsByIdsQuery as x, useCounterpartsQuery as S } from "../../data-access/dist/index3.js";
|
|
10
|
-
import { useCreateCounterpartBankAccountMutation as
|
|
11
|
-
import { useCounterpartAddressesForRowsQuery as
|
|
9
|
+
import { useCounterpartQuery as b, useCounterpartsByIdsQuery as x, useCounterpartsQuery as S, useCreateCounterpartMutation as C } from "../../data-access/dist/index3.js";
|
|
10
|
+
import { useCreateCounterpartBankAccountMutation as w, useUpdateCounterpartBankAccountMutation as T } from "../../data-access/dist/index5.js";
|
|
11
|
+
import { useCounterpartAddressesForRowsQuery as E, useCounterpartAddressesQuery as D } from "../../data-access/dist/index7.js";
|
|
12
12
|
import "../../data-access/dist/index.js";
|
|
13
|
-
import { useAddressForm as
|
|
14
|
-
import { useCounterpartDetails as
|
|
15
|
-
import { usePayableAchInstructions as
|
|
16
|
-
import { useCounterpartForm as
|
|
13
|
+
import { useAddressForm as O } from "./lib/useAddressForm.js";
|
|
14
|
+
import { useCounterpartDetails as k } from "./lib/useCounterpartDetails.js";
|
|
15
|
+
import { usePayableAchInstructions as A } from "./lib/usePayableAchInstructions.js";
|
|
16
|
+
import { useCounterpartForm as j } from "./lib/useCounterpartForm.js";
|
|
17
17
|
import "./lib/useCounterpartSelector.js";
|
|
18
|
-
import
|
|
18
|
+
import "./lib/CounterpartSelector.js";
|
|
19
19
|
import { useDeleteController as M } from "./lib/useDeleteController.js";
|
|
20
20
|
import "./lib/useSubEntityForm.js";
|
|
21
21
|
import { useBankAccountForm as N } from "./lib/subEntityForms.js";
|
|
22
|
-
export { r as BankAccountFormSheet, a as COUNTERPART_MESSAGE_LABELS_EN, i as ConfirmDeleteDialog, e as CounterpartFormFields, t as CounterpartFormSheet,
|
|
22
|
+
export { r as BankAccountFormSheet, a as COUNTERPART_MESSAGE_LABELS_EN, i as ConfirmDeleteDialog, e as CounterpartFormFields, t as CounterpartFormSheet, o as buildAnalyticsMap, s as buildCounterpartRows, c as counterpartFormBankAccountToCreatePayload, l as counterpartFormBankAccountToUpdatePayload, u as formatCounterpartDate, d as formatMoney, f as getAchInstructions, p as getCounterpartEmail, m as getCounterpartName, h as getPayableAchInstructions, g as hasSelectedText, _ as isAchCompatibleBankAccount, v as resolveCounterpartBankAccountWrite, O as useAddressForm, N as useBankAccountForm, E as useCounterpartAddressesForRowsQuery, D as useCounterpartAddressesQuery, k as useCounterpartDetails, j as useCounterpartForm, b as useCounterpartQuery, x as useCounterpartsByIdsQuery, S as useCounterpartsQuery, w as useCreateCounterpartBankAccountMutation, C as useCreateCounterpartMutation, M as useDeleteController, n as useFocusFirstInvalidField, A as usePayableAchInstructions, T as useUpdateCounterpartBankAccountMutation, y as validateAchFormValues };
|
|
@@ -2,27 +2,6 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { CounterpartSelector as e } from "../../../ui/dist/index15.js";
|
|
6
5
|
import "../../../ui/dist/index.js";
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
//#region ../../libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/CounterpartSelector.js
|
|
10
|
-
function r({ value: r, onValueChange: i, mode: a, limit: o, debounceMs: s, disabled: c, invalid: l, onCreateClick: u, labels: d, typeLabels: f }) {
|
|
11
|
-
let p = t({
|
|
12
|
-
value: r,
|
|
13
|
-
onValueChange: i,
|
|
14
|
-
mode: a,
|
|
15
|
-
limit: o,
|
|
16
|
-
debounceMs: s,
|
|
17
|
-
typeLabels: f
|
|
18
|
-
});
|
|
19
|
-
return /* @__PURE__ */ n(e, {
|
|
20
|
-
...p,
|
|
21
|
-
disabled: c,
|
|
22
|
-
invalid: l,
|
|
23
|
-
onCreateClick: u,
|
|
24
|
-
labels: d
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
//#endregion
|
|
28
|
-
export { r as CounterpartSelector, r as default };
|
|
6
|
+
import "./useCounterpartSelector.js";
|
|
7
|
+
import "react/jsx-runtime";
|
|
@@ -2,56 +2,7 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { COUNTERPART_TYPE_BADGE_LABELS_EN as e } from "../../../ui/dist/index2.js";
|
|
6
5
|
import "../../../ui/dist/index.js";
|
|
7
|
-
import
|
|
8
|
-
import { useCounterpartsQuery as n } from "../../../data-access/dist/index3.js";
|
|
6
|
+
import "./helpers.js";
|
|
9
7
|
import "../../../data-access/dist/index.js";
|
|
10
|
-
import
|
|
11
|
-
//#region ../../libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useCounterpartSelector.js
|
|
12
|
-
var s = 25, c = 300;
|
|
13
|
-
function l(n, r) {
|
|
14
|
-
let i = {
|
|
15
|
-
...e,
|
|
16
|
-
...r
|
|
17
|
-
};
|
|
18
|
-
return (n ?? []).map((e) => ({
|
|
19
|
-
value: e.id,
|
|
20
|
-
label: t(e),
|
|
21
|
-
supportingLabel: e.type === "organization" ? i.organization : i.individual
|
|
22
|
-
}));
|
|
23
|
-
}
|
|
24
|
-
function u({ value: e, onValueChange: t, mode: u = "customer", limit: d = s, debounceMs: f = c, typeLabels: p } = {}) {
|
|
25
|
-
let [m, h] = o(e ?? ""), [g, _] = o(""), [v, y] = o("");
|
|
26
|
-
i(() => {
|
|
27
|
-
h(e ?? "");
|
|
28
|
-
}, [e]), i(() => {
|
|
29
|
-
let e = setTimeout(() => {
|
|
30
|
-
y(g.trim());
|
|
31
|
-
}, f);
|
|
32
|
-
return () => clearTimeout(e);
|
|
33
|
-
}, [f, g]);
|
|
34
|
-
let b = n({
|
|
35
|
-
sort: "counterpart_name",
|
|
36
|
-
order: "asc",
|
|
37
|
-
limit: d,
|
|
38
|
-
counterpart_name__icontains: v || void 0,
|
|
39
|
-
...u === "customer" ? { is_customer: !0 } : { is_vendor: !0 }
|
|
40
|
-
}), x = a(() => l(b.data?.data, p), [b.data, p]), S = r((e) => {
|
|
41
|
-
h(e), t?.(e);
|
|
42
|
-
}, [t]), C = r(() => {
|
|
43
|
-
b.refetch();
|
|
44
|
-
}, [b]);
|
|
45
|
-
return {
|
|
46
|
-
value: m,
|
|
47
|
-
options: x,
|
|
48
|
-
searchValue: g,
|
|
49
|
-
isLoading: b.isLoading,
|
|
50
|
-
isError: b.isError,
|
|
51
|
-
onSearchChange: _,
|
|
52
|
-
onValueChange: S,
|
|
53
|
-
onRetry: C
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
//#endregion
|
|
57
|
-
export { l as buildCounterpartSelectorOptions, u as useCounterpartSelector };
|
|
8
|
+
import "react";
|
package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { ACH_FIELD_GROUP_LABELS_EN as e, ADDRESS_FORM_SHEET_LABELS_EN as t, COUNTERPART_FORM_SHEET_LABELS_EN as n
|
|
1
|
+
import { ACH_FIELD_GROUP_LABELS_EN as e, ADDRESS_FORM_SHEET_LABELS_EN as t, COUNTERPART_FORM_SHEET_LABELS_EN as n } from "./index2.js";
|
|
2
2
|
import "./index3.js";
|
|
3
|
-
import { AchFieldGroup as
|
|
4
|
-
import { AddressFieldGroup as
|
|
3
|
+
import { AchFieldGroup as r } from "./index5.js";
|
|
4
|
+
import { AddressFieldGroup as i, EMPTY_ADDRESS_FORM_VALUES as a } from "./index6.js";
|
|
5
5
|
import "./index7.js";
|
|
6
|
-
import { CounterpartFormFields as
|
|
6
|
+
import { CounterpartFormFields as o, CounterpartFormSheet as s, useFocusFirstInvalidField as c } from "./index9.js";
|
|
7
7
|
import "./index10.js";
|
|
8
|
-
import { BankAccountFormSheet as
|
|
8
|
+
import { BankAccountFormSheet as l } from "./index11.js";
|
|
9
9
|
import "./index12.js";
|
|
10
10
|
import "./index13.js";
|
|
11
|
-
import { ConfirmDeleteDialog as
|
|
12
|
-
import
|
|
13
|
-
export { e as ACH_FIELD_GROUP_LABELS_EN, t as ADDRESS_FORM_SHEET_LABELS_EN,
|
|
11
|
+
import { ConfirmDeleteDialog as u } from "./index14.js";
|
|
12
|
+
import "./index15.js";
|
|
13
|
+
export { e as ACH_FIELD_GROUP_LABELS_EN, t as ADDRESS_FORM_SHEET_LABELS_EN, r as AchFieldGroup, i as AddressFieldGroup, l as BankAccountFormSheet, n as COUNTERPART_FORM_SHEET_LABELS_EN, u as ConfirmDeleteDialog, o as CounterpartFormFields, s as CounterpartFormSheet, a as EMPTY_ADDRESS_FORM_VALUES, c as useFocusFirstInvalidField };
|
package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index15.js
CHANGED
|
@@ -1,80 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
//#region ../../libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index15.js
|
|
6
|
-
function m({ value: m, options: h, searchValue: g, isLoading: _, isError: v, disabled: y, invalid: b, onSearchChange: x, onValueChange: S, onRetry: C, onCreateClick: w, labels: T }) {
|
|
7
|
-
let E = {
|
|
8
|
-
...c,
|
|
9
|
-
...T
|
|
10
|
-
}, D = h.length > 0;
|
|
11
|
-
return /* @__PURE__ */ u("div", {
|
|
12
|
-
className: "ttw:flex ttw:flex-col ttw:gap-2",
|
|
13
|
-
children: [
|
|
14
|
-
/* @__PURE__ */ u("div", {
|
|
15
|
-
className: "ttw:flex ttw:items-center ttw:justify-between ttw:gap-2",
|
|
16
|
-
children: [/* @__PURE__ */ l(n, { children: E.fieldLabel }), w ? /* @__PURE__ */ u(e, {
|
|
17
|
-
type: "button",
|
|
18
|
-
variant: "ghost",
|
|
19
|
-
size: "sm",
|
|
20
|
-
onClick: w,
|
|
21
|
-
disabled: y,
|
|
22
|
-
children: [/* @__PURE__ */ l(d, { className: "ttw:size-4" }), E.createButton]
|
|
23
|
-
}) : null]
|
|
24
|
-
}),
|
|
25
|
-
/* @__PURE__ */ u("div", {
|
|
26
|
-
className: "ttw:relative",
|
|
27
|
-
children: [/* @__PURE__ */ l(p, { className: "ttw:pointer-events-none ttw:absolute ttw:left-3 ttw:top-1/2 ttw:size-4 ttw:-translate-y-1/2 ttw:text-muted-foreground" }), /* @__PURE__ */ l(t, {
|
|
28
|
-
className: "ttw:pl-9",
|
|
29
|
-
value: g,
|
|
30
|
-
placeholder: E.searchPlaceholder,
|
|
31
|
-
disabled: y,
|
|
32
|
-
onChange: (e) => x(e.target.value),
|
|
33
|
-
onKeyDown: (e) => {
|
|
34
|
-
e.key === "Enter" && e.preventDefault();
|
|
35
|
-
}
|
|
36
|
-
})]
|
|
37
|
-
}),
|
|
38
|
-
/* @__PURE__ */ u(r, {
|
|
39
|
-
value: m || void 0,
|
|
40
|
-
onValueChange: S,
|
|
41
|
-
disabled: y || _ || v || !D,
|
|
42
|
-
children: [/* @__PURE__ */ l(o, {
|
|
43
|
-
className: "ttw:w-full",
|
|
44
|
-
"aria-invalid": b || void 0,
|
|
45
|
-
children: /* @__PURE__ */ l(s, { placeholder: E.selectPlaceholder })
|
|
46
|
-
}), /* @__PURE__ */ l(i, { children: h.map((e) => /* @__PURE__ */ l(a, {
|
|
47
|
-
value: e.value,
|
|
48
|
-
children: /* @__PURE__ */ u("span", {
|
|
49
|
-
className: "ttw:flex ttw:flex-col ttw:gap-0.5",
|
|
50
|
-
children: [/* @__PURE__ */ l("span", { children: e.label }), e.supportingLabel ? /* @__PURE__ */ l("span", {
|
|
51
|
-
className: "ttw:text-xs ttw:text-muted-foreground",
|
|
52
|
-
children: e.supportingLabel
|
|
53
|
-
}) : null]
|
|
54
|
-
})
|
|
55
|
-
}, e.value)) })]
|
|
56
|
-
}),
|
|
57
|
-
_ ? /* @__PURE__ */ l("p", {
|
|
58
|
-
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
59
|
-
children: E.loadingText
|
|
60
|
-
}) : v ? /* @__PURE__ */ u("div", {
|
|
61
|
-
className: "ttw:flex ttw:items-center ttw:gap-2",
|
|
62
|
-
children: [/* @__PURE__ */ l("p", {
|
|
63
|
-
className: "ttw:text-sm ttw:text-destructive",
|
|
64
|
-
children: E.errorText
|
|
65
|
-
}), C ? /* @__PURE__ */ u(e, {
|
|
66
|
-
type: "button",
|
|
67
|
-
variant: "outline",
|
|
68
|
-
size: "sm",
|
|
69
|
-
onClick: C,
|
|
70
|
-
children: [/* @__PURE__ */ l(f, { className: "ttw:size-4" }), E.retryButton]
|
|
71
|
-
}) : null]
|
|
72
|
-
}) : D ? null : /* @__PURE__ */ l("p", {
|
|
73
|
-
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
74
|
-
children: E.emptyText
|
|
75
|
-
})
|
|
76
|
-
]
|
|
77
|
-
});
|
|
78
|
-
}
|
|
79
|
-
//#endregion
|
|
80
|
-
export { m as CounterpartSelector, m as default };
|
|
1
|
+
import "../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import "./index2.js";
|
|
3
|
+
import "react/jsx-runtime";
|
|
4
|
+
import "lucide-react";
|
package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index2.js
CHANGED
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
import { LABEL_LABELS_EN as e, REQUIRED_FIELDS_LEGEND_LABELS_EN as t } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
2
|
//#region ../../libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index2.js
|
|
3
3
|
var n = {
|
|
4
|
-
organization: "Organization",
|
|
5
|
-
individual: "Individual"
|
|
6
|
-
}, r = {
|
|
7
4
|
heading: "What kind of counterpart is this?",
|
|
8
5
|
organization: "Organization",
|
|
9
6
|
organizationHint: "A company or other legal entity.",
|
|
10
7
|
individual: "Individual",
|
|
11
8
|
individualHint: "A natural person."
|
|
12
|
-
},
|
|
9
|
+
}, r = {
|
|
13
10
|
line1: "Address line 1",
|
|
14
11
|
line2: "Address line 2",
|
|
15
12
|
city: "City",
|
|
@@ -19,12 +16,12 @@ var n = {
|
|
|
19
16
|
country: "Country",
|
|
20
17
|
countryValue: "United States",
|
|
21
18
|
fieldMarkers: e
|
|
22
|
-
},
|
|
19
|
+
}, i = {
|
|
23
20
|
accountHolderName: "Account holder name",
|
|
24
21
|
routingNumber: "Routing number",
|
|
25
22
|
accountNumber: "Account number",
|
|
26
23
|
fieldMarkers: e
|
|
27
|
-
},
|
|
24
|
+
}, a = {
|
|
28
25
|
createTitleOrganization: "Create organization",
|
|
29
26
|
createTitleIndividual: "Create individual",
|
|
30
27
|
editTitleOrganization: "Edit organization",
|
|
@@ -65,11 +62,11 @@ var n = {
|
|
|
65
62
|
cancelButton: "Cancel",
|
|
66
63
|
createButton: "Create",
|
|
67
64
|
saveButton: "Save",
|
|
68
|
-
address:
|
|
69
|
-
ach:
|
|
65
|
+
address: r,
|
|
66
|
+
ach: i,
|
|
70
67
|
fieldMarkers: e,
|
|
71
68
|
requiredFieldsLegend: t
|
|
72
|
-
},
|
|
69
|
+
}, o = {
|
|
73
70
|
createTitle: "Add bank account",
|
|
74
71
|
editTitle: "Edit bank account",
|
|
75
72
|
nameLabel: "Account name",
|
|
@@ -88,25 +85,16 @@ var n = {
|
|
|
88
85
|
createButton: "Add",
|
|
89
86
|
saveButton: "Save",
|
|
90
87
|
fieldMarkers: e
|
|
91
|
-
},
|
|
88
|
+
}, s = {
|
|
92
89
|
title: "Edit address",
|
|
93
90
|
cancelButton: "Cancel",
|
|
94
91
|
saveButton: "Save",
|
|
95
|
-
address:
|
|
92
|
+
address: r,
|
|
96
93
|
fieldMarkers: e,
|
|
97
94
|
requiredFieldsLegend: t
|
|
98
|
-
},
|
|
95
|
+
}, c = {
|
|
99
96
|
confirmButton: "Delete",
|
|
100
97
|
cancelButton: "Cancel"
|
|
101
|
-
}, u = {
|
|
102
|
-
fieldLabel: "Counterpart",
|
|
103
|
-
searchPlaceholder: "Search counterparts",
|
|
104
|
-
selectPlaceholder: "Select a counterpart",
|
|
105
|
-
loadingText: "Loading counterparts...",
|
|
106
|
-
emptyText: "No counterparts found.",
|
|
107
|
-
errorText: "Could not load counterparts.",
|
|
108
|
-
retryButton: "Retry",
|
|
109
|
-
createButton: "Create counterpart"
|
|
110
98
|
};
|
|
111
99
|
//#endregion
|
|
112
|
-
export {
|
|
100
|
+
export { i as ACH_FIELD_GROUP_LABELS_EN, r as ADDRESS_FIELD_GROUP_LABELS_EN, s as ADDRESS_FORM_SHEET_LABELS_EN, o as BANK_ACCOUNT_FORM_SHEET_LABELS_EN, c as CONFIRM_DELETE_DIALOG_LABELS_EN, a as COUNTERPART_FORM_SHEET_LABELS_EN, n as COUNTERPART_TYPE_CHOOSER_LABELS_EN };
|
package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/zod.gen.js
CHANGED
|
@@ -7114,6 +7114,8 @@ var Rp = e.enum([
|
|
|
7114
7114
|
"IDENTITY_VERIFICATION_STATUS_CHANGED",
|
|
7115
7115
|
"BANK_ACCOUNT_APPLICATION_STATUS_CHANGED",
|
|
7116
7116
|
"BANK_ACCOUNT_APPLICATION_KYC_STATUS_CHANGED",
|
|
7117
|
+
"BANK_ACCOUNT_TRANSFER_STATUS_CHANGED",
|
|
7118
|
+
"EXTERNAL_BANK_ACCOUNT_CHANGED",
|
|
7117
7119
|
"LEDGER_TRANSACTION",
|
|
7118
7120
|
"LEDGER_POSTING_EXCEPTION",
|
|
7119
7121
|
"LEDGER_ACCOUNT_EXCEPTION",
|
package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region ../../libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
|
|
2
|
-
var e = "@tesouro/embedded-components-react", t = "0.5.
|
|
2
|
+
var e = "@tesouro/embedded-components-react", t = "0.5.281", n = "89e9fc42239a64407381e406fe4a16c5ef81c92e", r = Object.freeze({
|
|
3
3
|
library_name: e,
|
|
4
4
|
library_version: t,
|
|
5
5
|
library_sha: n
|
|
@@ -110,7 +110,7 @@ function S({ open: i, defaultOpen: a = !0, onOpenChange: S, isFullScreenInline:
|
|
|
110
110
|
variant: "ghost",
|
|
111
111
|
disabled: X,
|
|
112
112
|
onClick: M,
|
|
113
|
-
className: "ttw:h-auto ttw:max-w-full ttw:whitespace-normal ttw:rounded-2xl ttw:px-3 ttw:py-3 ttw:text-base ttw:font-medium ttw:text-
|
|
113
|
+
className: "ttw:h-auto ttw:max-w-full ttw:whitespace-normal ttw:rounded-2xl ttw:px-3 ttw:py-3 ttw:text-base ttw:font-medium ttw:text-foreground ttw:hover:bg-destructive/10 ttw:hover:text-[color-mix(in_srgb,var(--ttw-destructive),black_10%)]",
|
|
114
114
|
"data-testid": H?.delete,
|
|
115
115
|
children: [/* @__PURE__ */ m(v, {
|
|
116
116
|
className: "ttw:size-4",
|
package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/labels.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
var e = {
|
|
3
3
|
backButton: "Back",
|
|
4
4
|
cancelButton: "Cancel",
|
|
5
|
-
saveAndCloseButton: "Save and
|
|
6
|
-
deleteButton: "
|
|
5
|
+
saveAndCloseButton: "Save and continue later",
|
|
6
|
+
deleteButton: "Delete",
|
|
7
7
|
dismissAriaLabel: "Close onboarding",
|
|
8
8
|
stepperAriaLabel: "Onboarding progress",
|
|
9
9
|
scrollForMore: "Scroll for more"
|