@tesouro/embedded-components-react 0.2.253 → 0.2.255
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/core.js +1 -1
- package/dist/index.css +15 -0
- package/dist/index.js +2 -2
- package/dist/lib/BillPayWidget.d.ts +151 -151
- package/dist/lib/BillPayWidget.js +1 -1
- package/dist/lib/InsightsWidget.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/index4.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/balances-widget/feature/dist/index3.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index17.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/index7.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index10.js +40 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index11.js +36 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index3.js +28 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index4.js +22 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index5.js +7 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index6.js +75 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index7.js +166 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index8.js +17 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index9.js +30 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +15 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index10.js +9 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index11.js +99 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index12.js +4 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index13.js +4 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index14.js +43 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index16.js +50 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index17.js +8 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index18.js +7 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index19.js +93 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index2.js +42 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index20.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index21.js +8 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index22.js +9 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index23.js +85 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index24.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +8 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index26.js +112 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index28.js +25 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index3.js +51 -35
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index4.js +235 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index5.js +106 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index6.js +35 -88
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index7.js +122 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index8.js +36 -22
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index9.js +74 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +15 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index10.js +24 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index11.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index12.js +12 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index13.js +83 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index14.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index15.js +18 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +205 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js +89 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +131 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +45 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index27.js +17 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js +149 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index3.js +73 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index33.js +14 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index34.js +24 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index35.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index36.js +24 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index38.js +145 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index39.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index40.js +8 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index41.js +93 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index43.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index44.js +7 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index45.js +30 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index47.js +13 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index48.js +88 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index7.js +62 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index9.js +7 -0
- package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/index4.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/index4.js +13 -13
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/index7.js +58 -58
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/index8.js +19 -19
- package/dist/libs/tesouro-embedded-components-react/gl-code-table-widget/feature/dist/index7.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index10.js +13 -62
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index11.js +66 -0
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index7.js +11 -109
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index8.js +113 -21
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index9.js +21 -15
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index7.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index9.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/index8.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/profile-widget/feature/dist/index4.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/feature/dist/lib/policyViewModel.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/index.js +15 -15
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/helpers.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useAddressForm.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useCounterpartForm.js +32 -29
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useSubEntityForm.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index8.js +232 -220
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +19 -19
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js +171 -138
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/client/index.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/core/bodySerializer.gen.js +9 -2
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +404 -293
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/zod.gen.js +463 -456
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/WidgetTokenRefreshProvider.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 +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/feature/dist/lib/MeasureUnitsManagerContainer.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/feature/dist/lib/useProductForm.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/util/dist/{index3.js → lib/amountOutputToMajorUnits.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/util/dist/{index14.js → lib/apiErrors.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/util/dist/{index2.js → lib/coerceAmountValueToMinorUnits.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/util/dist/lib/formatCalendarDate.js +13 -0
- package/dist/libs/tesouro-embedded-components-react/shared/util/dist/{index4.js → lib/formatMoneyExact.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/util/dist/{index5.js → lib/formatPhoneDisplay.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/util/dist/{index6.js → lib/getInitials.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/util/dist/{index7.js → lib/normalizeAmountOutputCurrencyCode.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/util/dist/{index8.js → lib/parseAmountOutputMajorUnits.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/util/dist/{index9.js → lib/parseDecimalAmountToMinorUnits.js} +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/util/dist/{index10.js → lib/sumAmountOutputsMajorUnits.js} +3 -3
- package/dist/libs/tesouro-embedded-components-react/shared/util/dist/{index11.js → lib/usStates.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/util/dist/{index13.js → lib/widgetDomEvents.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/util/dist/{index12.js → lib/widgetTokenManager.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/tags-widget/feature/dist/index8.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/team-widget/feature/dist/index11.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/team-widget/feature/dist/index4.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/index4.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/index5.js +1 -1
- package/dist/packages/shared-ui-shadcn/dist/index.js +3593 -3582
- package/package.json +1 -1
|
@@ -1,6 +1,89 @@
|
|
|
1
|
-
import "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
-
import "./index3.js";
|
|
1
|
+
import { Button as e, Skeleton as t } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { BillUploadDropzone as n } from "./index3.js";
|
|
3
3
|
import "./index5.js";
|
|
4
|
-
import "./index47.js";
|
|
5
|
-
import "react/jsx-runtime";
|
|
6
|
-
import "lucide-react";
|
|
4
|
+
import { SOURCE_DOCUMENT_PANEL_LABELS_EN as r } from "./index47.js";
|
|
5
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
6
|
+
import { Download as o, Trash2 as s } from "lucide-react";
|
|
7
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index48.js
|
|
8
|
+
function c(c) {
|
|
9
|
+
let { mode: l, testId: u, labels: d } = c, f = {
|
|
10
|
+
...r,
|
|
11
|
+
...d,
|
|
12
|
+
dropzone: {
|
|
13
|
+
...r.dropzone,
|
|
14
|
+
...d?.dropzone
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
if (l === "loading") return /* @__PURE__ */ a("div", {
|
|
18
|
+
className: "ttw:flex ttw:flex-col ttw:gap-3",
|
|
19
|
+
"data-testid": u,
|
|
20
|
+
children: [/* @__PURE__ */ i("div", {
|
|
21
|
+
className: "ttw:flex ttw:items-center ttw:justify-end ttw:gap-1",
|
|
22
|
+
children: /* @__PURE__ */ i("span", {
|
|
23
|
+
"aria-live": "polite",
|
|
24
|
+
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
25
|
+
children: c.fileName ? f.scanningAttachment(c.fileName) : f.scanning
|
|
26
|
+
})
|
|
27
|
+
}), /* @__PURE__ */ a("div", {
|
|
28
|
+
className: "ttw:flex ttw:h-[min(70vh,44rem)] ttw:flex-col ttw:gap-3 ttw:rounded-lg ttw:border ttw:border-border ttw:bg-card ttw:p-4",
|
|
29
|
+
children: [
|
|
30
|
+
/* @__PURE__ */ i(t, { className: "ttw:h-6 ttw:w-2/5" }),
|
|
31
|
+
/* @__PURE__ */ i(t, { className: "ttw:h-4 ttw:w-3/5" }),
|
|
32
|
+
/* @__PURE__ */ i(t, { className: "ttw:mt-4 ttw:h-4 ttw:w-full" }),
|
|
33
|
+
/* @__PURE__ */ i(t, { className: "ttw:h-4 ttw:w-full" }),
|
|
34
|
+
/* @__PURE__ */ i(t, { className: "ttw:h-4 ttw:w-4/5" }),
|
|
35
|
+
/* @__PURE__ */ i(t, { className: "ttw:mt-auto ttw:h-24 ttw:w-full" })
|
|
36
|
+
]
|
|
37
|
+
})]
|
|
38
|
+
});
|
|
39
|
+
if (l === "document") {
|
|
40
|
+
let { fileName: t, preview: n, onDownload: r, onDelete: l } = c;
|
|
41
|
+
return /* @__PURE__ */ a("div", {
|
|
42
|
+
className: "ttw:flex ttw:flex-col ttw:gap-3",
|
|
43
|
+
"data-testid": u,
|
|
44
|
+
children: [/* @__PURE__ */ a("div", {
|
|
45
|
+
className: "ttw:flex ttw:items-center ttw:justify-end ttw:gap-1",
|
|
46
|
+
children: [
|
|
47
|
+
/* @__PURE__ */ i("span", {
|
|
48
|
+
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
49
|
+
children: f.scannedAttachment(t ?? "")
|
|
50
|
+
}),
|
|
51
|
+
r ? /* @__PURE__ */ i(e, {
|
|
52
|
+
type: "button",
|
|
53
|
+
variant: "ghost",
|
|
54
|
+
size: "icon",
|
|
55
|
+
"aria-label": f.download,
|
|
56
|
+
onClick: r,
|
|
57
|
+
children: /* @__PURE__ */ i(o, { className: "ttw:size-4" })
|
|
58
|
+
}) : null,
|
|
59
|
+
l ? /* @__PURE__ */ i(e, {
|
|
60
|
+
type: "button",
|
|
61
|
+
variant: "ghost",
|
|
62
|
+
size: "icon",
|
|
63
|
+
"aria-label": f.delete,
|
|
64
|
+
onClick: l,
|
|
65
|
+
children: /* @__PURE__ */ i(s, { className: "ttw:size-4" })
|
|
66
|
+
}) : null
|
|
67
|
+
]
|
|
68
|
+
}), /* @__PURE__ */ i("div", {
|
|
69
|
+
className: "ttw:flex ttw:h-[min(70vh,44rem)] ttw:items-start ttw:justify-center ttw:overflow-auto ttw:rounded-lg ttw:border ttw:border-border ttw:bg-card ttw:p-4",
|
|
70
|
+
children: n
|
|
71
|
+
})]
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
return /* @__PURE__ */ a("div", {
|
|
75
|
+
className: "ttw:rounded-lg ttw:border ttw:border-border ttw:bg-card ttw:p-4",
|
|
76
|
+
"data-testid": u,
|
|
77
|
+
children: [/* @__PURE__ */ i("p", {
|
|
78
|
+
className: "ttw:mb-3 ttw:text-sm ttw:font-medium ttw:text-foreground",
|
|
79
|
+
children: f.uploadHeading
|
|
80
|
+
}), /* @__PURE__ */ i(n, {
|
|
81
|
+
status: c.uploadStatus,
|
|
82
|
+
errorMessage: c.uploadErrorMessage,
|
|
83
|
+
onFilesSelected: c.onFilesSelected,
|
|
84
|
+
labels: f.dropzone
|
|
85
|
+
})]
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
//#endregion
|
|
89
|
+
export { c as SourceDocumentPanel, c as default };
|
|
@@ -1,6 +1,63 @@
|
|
|
1
|
-
import "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
-
import "./index3.js";
|
|
1
|
+
import { Button as e, Typography as t } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { BillUploadDropzone as n } from "./index3.js";
|
|
3
3
|
import "./index5.js";
|
|
4
|
-
import "./index6.js";
|
|
5
|
-
import "react/jsx-runtime";
|
|
6
|
-
import "lucide-react";
|
|
4
|
+
import { ADD_BILL_PANEL_LABELS_EN as r } from "./index6.js";
|
|
5
|
+
import { Fragment as i, jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
6
|
+
import { Copy as s } from "lucide-react";
|
|
7
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index7.js
|
|
8
|
+
function c({ emailAddress: c, onCopyEmail: l, onFilesSelected: u, accept: d, uploadStatus: f, uploadErrorMessage: p, onEnterManually: m, testId: h, labels: g }) {
|
|
9
|
+
let _ = {
|
|
10
|
+
...r,
|
|
11
|
+
...g,
|
|
12
|
+
dropzone: {
|
|
13
|
+
...r.dropzone,
|
|
14
|
+
...g?.dropzone
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
return /* @__PURE__ */ o("div", {
|
|
18
|
+
className: "ttw:flex ttw:flex-col ttw:items-center ttw:gap-4 ttw:px-6 ttw:py-10 ttw:text-center",
|
|
19
|
+
"data-testid": h,
|
|
20
|
+
children: [
|
|
21
|
+
/* @__PURE__ */ a(t, {
|
|
22
|
+
component: "h2",
|
|
23
|
+
variant: "h2",
|
|
24
|
+
className: "ttw:font-semibold",
|
|
25
|
+
children: _.heading
|
|
26
|
+
}),
|
|
27
|
+
/* @__PURE__ */ a("p", {
|
|
28
|
+
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
29
|
+
children: c ? /* @__PURE__ */ o(i, { children: [
|
|
30
|
+
_.subcopyPrefix,
|
|
31
|
+
" ",
|
|
32
|
+
/* @__PURE__ */ o("button", {
|
|
33
|
+
type: "button",
|
|
34
|
+
onClick: l,
|
|
35
|
+
"aria-label": _.copyEmail,
|
|
36
|
+
className: "ttw:inline-flex ttw:items-center ttw:gap-1 ttw:align-baseline ttw:text-primary ttw:hover:underline",
|
|
37
|
+
children: [/* @__PURE__ */ a(s, { className: "ttw:size-3.5" }), c]
|
|
38
|
+
}),
|
|
39
|
+
" ",
|
|
40
|
+
_.subcopySuffix
|
|
41
|
+
] }) : _.subcopyPlain
|
|
42
|
+
}),
|
|
43
|
+
/* @__PURE__ */ a("div", {
|
|
44
|
+
className: "ttw:w-full ttw:max-w-lg",
|
|
45
|
+
children: /* @__PURE__ */ a(n, {
|
|
46
|
+
status: f,
|
|
47
|
+
errorMessage: p,
|
|
48
|
+
accept: d,
|
|
49
|
+
onFilesSelected: u,
|
|
50
|
+
labels: _.dropzone
|
|
51
|
+
})
|
|
52
|
+
}),
|
|
53
|
+
/* @__PURE__ */ a(e, {
|
|
54
|
+
type: "button",
|
|
55
|
+
variant: "outline",
|
|
56
|
+
onClick: m,
|
|
57
|
+
children: _.enterManually
|
|
58
|
+
})
|
|
59
|
+
]
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
//#endregion
|
|
63
|
+
export { c as AddBillPanel, c as default };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index9.js
|
|
2
|
+
var e = {
|
|
3
|
+
dialogTitle: "Add a bill",
|
|
4
|
+
dialogDescription: "Upload a bill to scan its details automatically, or enter it manually."
|
|
5
|
+
};
|
|
6
|
+
//#endregion
|
|
7
|
+
export { e as ADD_BILL_DIALOG_LABELS_EN };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { minorExponentForCurrency as e } from "../../../shared/util/dist/
|
|
2
|
-
import { normalizeAmountOutputCurrencyCode as t } from "../../../shared/util/dist/
|
|
1
|
+
import { minorExponentForCurrency as e } from "../../../shared/util/dist/lib/amountOutputToMajorUnits.js";
|
|
2
|
+
import { normalizeAmountOutputCurrencyCode as t } from "../../../shared/util/dist/lib/normalizeAmountOutputCurrencyCode.js";
|
|
3
3
|
//#region ../../libs/tesouro-embedded-components-react/cards-widget/feature/dist/index4.js
|
|
4
4
|
function n(e) {
|
|
5
5
|
if (e == null || e === "") return;
|
package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/index4.js
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { useCounterpartAddressesForRowsQuery as s } from "../../../shared/counterpart-management/data-access/dist/index7.js";
|
|
5
|
+
import { buildAnalyticsMap as e, buildCounterpartRows as t } from "../../../shared/counterpart-management/feature/dist/lib/helpers.js";
|
|
6
|
+
import { useCounterpartsQuery as n } from "../../../shared/counterpart-management/data-access/dist/index3.js";
|
|
7
|
+
import { useCounterpartAddressesForRowsQuery as r } from "../../../shared/counterpart-management/data-access/dist/index7.js";
|
|
9
8
|
import "../../../shared/counterpart-management/feature/dist/index.js";
|
|
9
|
+
import { PAYABLES_BILLED_STATUSES as i, PAYABLES_OWED_STATUSES as a, RECEIVABLES_BILLED_STATUSES as o, RECEIVABLES_DUE_STATUSES as s } from "./index3.js";
|
|
10
10
|
import { usePayablesAnalyticsByCounterpartQuery as c, useReceivablesAnalyticsByCounterpartQuery as l } from "../../data-access/dist/index2.js";
|
|
11
11
|
import "../../data-access/dist/index.js";
|
|
12
12
|
import { useCallback as u, useEffect as d, useMemo as f, useState as p } from "react";
|
|
@@ -19,7 +19,7 @@ function m({ isCustomer: m, enabled: h = !0 }) {
|
|
|
19
19
|
}, 400);
|
|
20
20
|
return () => clearTimeout(e);
|
|
21
21
|
}, [S]);
|
|
22
|
-
let O = g[0]?.desc ? "desc" : "asc", k =
|
|
22
|
+
let O = g[0]?.desc ? "desc" : "asc", k = n({
|
|
23
23
|
sort: "counterpart_name",
|
|
24
24
|
order: O,
|
|
25
25
|
limit: v,
|
|
@@ -28,38 +28,38 @@ function m({ isCustomer: m, enabled: h = !0 }) {
|
|
|
28
28
|
type: E === "all" ? void 0 : E,
|
|
29
29
|
...m ? { is_customer: !0 } : { is_vendor: !0 },
|
|
30
30
|
enabled: h
|
|
31
|
-
}), A = f(() => k.data?.data.map((e) => e.id) ?? [], [k.data?.data]), j = A.length > 0, M =
|
|
31
|
+
}), A = f(() => k.data?.data.map((e) => e.id) ?? [], [k.data?.data]), j = A.length > 0, M = r({
|
|
32
32
|
counterpartIds: A,
|
|
33
33
|
enabled: h && j
|
|
34
34
|
}), N = l({
|
|
35
35
|
type: "invoice",
|
|
36
|
-
statusIn: [...
|
|
36
|
+
statusIn: [...o],
|
|
37
37
|
counterpartIdIn: A,
|
|
38
38
|
enabled: h && m && j
|
|
39
39
|
}), P = l({
|
|
40
40
|
metric: "amount_due",
|
|
41
41
|
type: "invoice",
|
|
42
|
-
statusIn: [...
|
|
42
|
+
statusIn: [...s],
|
|
43
43
|
counterpartIdIn: A,
|
|
44
44
|
enabled: h && m && j
|
|
45
45
|
}), F = c({
|
|
46
|
-
statusIn: [...
|
|
46
|
+
statusIn: [...i],
|
|
47
47
|
counterpartIdIn: A,
|
|
48
48
|
enabled: h && !m && j
|
|
49
49
|
}), I = c({
|
|
50
50
|
metric: "amount_due",
|
|
51
|
-
statusIn: [...
|
|
51
|
+
statusIn: [...a],
|
|
52
52
|
counterpartIdIn: A,
|
|
53
53
|
enabled: h && !m && j
|
|
54
|
-
}), L = f(() => m ? N.data ?
|
|
54
|
+
}), L = f(() => m ? N.data ? e(N.data.data) : void 0 : F.data ? e(F.data.data) : void 0, [
|
|
55
55
|
m,
|
|
56
56
|
N.data,
|
|
57
57
|
F.data
|
|
58
|
-
]), R = f(() => m ? P.data ?
|
|
58
|
+
]), R = f(() => m ? P.data ? e(P.data.data) : void 0 : I.data ? e(I.data.data) : void 0, [
|
|
59
59
|
m,
|
|
60
60
|
P.data,
|
|
61
61
|
I.data
|
|
62
|
-
]), z = f(() => new Map(A.map((e, t) => [e, M[t]?.data?.data?.[0]])), [A, M]), B = f(() =>
|
|
62
|
+
]), z = f(() => new Map(A.map((e, t) => [e, M[t]?.data?.data?.[0]])), [A, M]), B = f(() => t({
|
|
63
63
|
counterparts: k.data?.data ?? [],
|
|
64
64
|
addresses: z,
|
|
65
65
|
billedAmounts: L,
|
package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/index7.js
CHANGED
|
@@ -2,93 +2,93 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { getStateOptions as e } from "../../../shared/util/dist/
|
|
5
|
+
import { getStateOptions as e } from "../../../shared/util/dist/lib/usStates.js";
|
|
6
6
|
import { useWidgetConfig as t, useWidgetError as n, useWidgetLoading as r } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
7
7
|
import "../../../shared/feature/dist/index.js";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { useBankAccountForm as g } from "../../../shared/counterpart-management/feature/dist/lib/subEntityForms.js";
|
|
8
|
+
import { COUNTERPART_MESSAGE_LABELS_EN as i } from "../../../shared/counterpart-management/feature/dist/lib/labels.js";
|
|
9
|
+
import { buildAnalyticsMap as a, formatMoney as o, hasSelectedText as s } from "../../../shared/counterpart-management/feature/dist/lib/helpers.js";
|
|
10
|
+
import { useAddressForm as c } from "../../../shared/counterpart-management/feature/dist/lib/useAddressForm.js";
|
|
11
|
+
import { useCounterpartDetails as l } from "../../../shared/counterpart-management/feature/dist/lib/useCounterpartDetails.js";
|
|
12
|
+
import { useCounterpartForm as u } from "../../../shared/counterpart-management/feature/dist/lib/useCounterpartForm.js";
|
|
13
|
+
import { useDeleteController as d } from "../../../shared/counterpart-management/feature/dist/lib/useDeleteController.js";
|
|
14
|
+
import { useBankAccountForm as f } from "../../../shared/counterpart-management/feature/dist/lib/subEntityForms.js";
|
|
16
15
|
import "../../../shared/counterpart-management/feature/dist/index.js";
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
16
|
+
import { PAYABLES_BILLED_STATUSES as p, PAYABLES_OWED_STATUSES as ee, PAYABLES_REJECTED_STATUSES as m, RECEIVABLES_BILLED_STATUSES as te, RECEIVABLES_DUE_STATUSES as ne } from "./index3.js";
|
|
17
|
+
import { usePayablesAnalyticsByCounterpartQuery as h, useReceivablesAnalyticsByCounterpartQuery as g } from "../../data-access/dist/index2.js";
|
|
18
|
+
import { useRecentPayablesByCounterpartQuery as _, useRecentReceivablesByCounterpartQuery as v } from "../../data-access/dist/index3.js";
|
|
19
19
|
import "../../data-access/dist/index.js";
|
|
20
|
-
import { useCounterpartsTable as
|
|
21
|
-
import { getCounterpartPermissions as
|
|
22
|
-
import { buildPaymentMethodView as
|
|
23
|
-
import { COUNTERPART_DETAILS_SHEET_LABELS_EN as
|
|
20
|
+
import { useCounterpartsTable as re } from "./index4.js";
|
|
21
|
+
import { getCounterpartPermissions as ie } from "./index5.js";
|
|
22
|
+
import { buildPaymentMethodView as ae, buildRecentDocumentRows as y, maskTaxId as b } from "./index6.js";
|
|
23
|
+
import { COUNTERPART_DETAILS_SHEET_LABELS_EN as oe } from "../../ui/dist/index2.js";
|
|
24
24
|
import "../../ui/dist/index.js";
|
|
25
|
-
import { useCallback as
|
|
25
|
+
import { useCallback as x, useEffect as S, useMemo as C, useState as w } from "react";
|
|
26
26
|
//#region ../../libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/index7.js
|
|
27
|
-
function
|
|
28
|
-
let { initResponse:
|
|
29
|
-
...
|
|
30
|
-
...O
|
|
31
|
-
}), [O]), N = w(() => ({
|
|
32
|
-
...ae,
|
|
27
|
+
function T({ counterpartType: T, detailsLabels: E, messageLabels: D }) {
|
|
28
|
+
let { initResponse: O, widgetToken: k } = t(), A = r(), j = n(), M = C(() => ({
|
|
29
|
+
...i,
|
|
33
30
|
...D
|
|
34
|
-
}), [D]),
|
|
35
|
-
|
|
31
|
+
}), [D]), N = C(() => ({
|
|
32
|
+
...oe,
|
|
33
|
+
...E
|
|
34
|
+
}), [E]), P = T === "customer", F = C(() => e(), []), I = C(() => ie(O?.scopes), [O?.scopes]), L = !!(k && !O && !j) || A && !O, [R, z] = w(), [B, V] = w("none"), H = I.canRead ? R : void 0;
|
|
35
|
+
S(() => {
|
|
36
36
|
I.canRead || (z(void 0), V("none"));
|
|
37
37
|
}, [I.canRead]);
|
|
38
|
-
let U =
|
|
38
|
+
let U = re({
|
|
39
39
|
isCustomer: P,
|
|
40
40
|
enabled: I.canRead
|
|
41
|
-
}), W =
|
|
41
|
+
}), W = l({
|
|
42
42
|
selectedId: H,
|
|
43
43
|
enabled: I.canRead
|
|
44
|
-
}), G =
|
|
44
|
+
}), G = C(() => H ? [H] : [], [H]), K = G.length > 0, q = g({
|
|
45
45
|
type: "invoice",
|
|
46
|
-
statusIn: [...
|
|
46
|
+
statusIn: [...te],
|
|
47
47
|
counterpartIdIn: G,
|
|
48
48
|
enabled: I.canRead && P && K
|
|
49
|
-
}), J =
|
|
49
|
+
}), J = g({
|
|
50
50
|
metric: "amount_due",
|
|
51
51
|
type: "invoice",
|
|
52
|
-
statusIn: [...
|
|
52
|
+
statusIn: [...ne],
|
|
53
53
|
counterpartIdIn: G,
|
|
54
54
|
enabled: I.canRead && P && K
|
|
55
|
-
}), Y =
|
|
56
|
-
statusIn: [...
|
|
55
|
+
}), Y = h({
|
|
56
|
+
statusIn: [...p],
|
|
57
57
|
counterpartIdIn: G,
|
|
58
58
|
enabled: I.canRead && !P && K
|
|
59
|
-
}), X =
|
|
59
|
+
}), X = h({
|
|
60
60
|
metric: "amount_due",
|
|
61
|
-
statusIn: [...
|
|
61
|
+
statusIn: [...ee],
|
|
62
62
|
counterpartIdIn: G,
|
|
63
63
|
enabled: I.canRead && !P && K
|
|
64
|
-
}), Z =
|
|
65
|
-
statusIn: [...
|
|
64
|
+
}), Z = h({
|
|
65
|
+
statusIn: [...m],
|
|
66
66
|
counterpartIdIn: G,
|
|
67
67
|
enabled: I.canRead && !P && K
|
|
68
|
-
}), Q =
|
|
68
|
+
}), Q = v({
|
|
69
69
|
counterpartId: H,
|
|
70
70
|
enabled: I.canRead && P && K
|
|
71
|
-
}), $ =
|
|
71
|
+
}), $ = _({
|
|
72
72
|
counterpartId: H,
|
|
73
73
|
enabled: I.canRead && !P && K
|
|
74
|
-
}), se =
|
|
74
|
+
}), se = u({
|
|
75
75
|
view: B,
|
|
76
76
|
setView: V,
|
|
77
77
|
selectedId: H,
|
|
78
78
|
setSelectedId: z,
|
|
79
79
|
messages: M,
|
|
80
|
-
counterpartType:
|
|
80
|
+
counterpartType: T,
|
|
81
81
|
counterpart: W.counterpart,
|
|
82
82
|
primaryAddress: W.primaryAddress
|
|
83
|
-
}), ce =
|
|
83
|
+
}), ce = f({
|
|
84
84
|
items: W.bankAccounts,
|
|
85
85
|
selectedId: H,
|
|
86
86
|
messages: M
|
|
87
|
-
}), le =
|
|
87
|
+
}), le = c({
|
|
88
88
|
selectedId: H,
|
|
89
89
|
primaryAddress: W.primaryAddress,
|
|
90
90
|
messages: M
|
|
91
|
-
}), ue =
|
|
91
|
+
}), ue = d({
|
|
92
92
|
selectedId: H,
|
|
93
93
|
setSelectedId: z,
|
|
94
94
|
detailsView: W.detailsView,
|
|
@@ -100,26 +100,26 @@ function E({ counterpartType: E, detailsLabels: D, messageLabels: O }) {
|
|
|
100
100
|
view: B,
|
|
101
101
|
table: U,
|
|
102
102
|
details: W,
|
|
103
|
-
detailsSheetView:
|
|
103
|
+
detailsSheetView: C(() => {
|
|
104
104
|
if (!W.detailsView || !H) return;
|
|
105
|
-
let e =
|
|
105
|
+
let e = a(P ? q.data?.data : Y.data?.data), t = a(P ? J.data?.data : X.data?.data), n = e.get(H) ?? 0, r = t.get(H) ?? 0, i = n - r, s = P ? q.isLoading : Y.isLoading, c = P ? J.isLoading : X.isLoading, l = a(Z.data?.data), u = P ? 0 : l.get(H) ?? 0, d = P ? Q.data?.data : $.data?.data, f = ae(W.bankAccounts?.[0], N.paymentMethodTitle), p = P ? N.customerSubtitleLabel : N.vendorSubtitleLabel;
|
|
106
106
|
return {
|
|
107
107
|
...W.detailsView,
|
|
108
108
|
subtitle: N.subtitleTemplate.replace("{type}", p).replace("{date}", W.detailsView.createdAtLabel),
|
|
109
109
|
entityTypeLabel: W.detailsView.entityType === "individual" ? N.entityTypePersonLabel : N.entityTypeBusinessLabel,
|
|
110
|
-
taxIdMasked:
|
|
110
|
+
taxIdMasked: b(W.detailsView.taxId),
|
|
111
111
|
remindersLabel: W.counterpart?.reminders_enabled ? N.remindersEnabledLabel : N.remindersDisabledLabel,
|
|
112
112
|
summary: {
|
|
113
|
-
primaryAmountLabel:
|
|
114
|
-
billedAmountLabel:
|
|
115
|
-
receivedOrPaidAmountLabel:
|
|
116
|
-
rejectedAmountLabel: P ? void 0 :
|
|
117
|
-
isPrimaryAmountLoading:
|
|
118
|
-
isBilledAmountLoading:
|
|
119
|
-
isReceivedOrPaidAmountLoading:
|
|
113
|
+
primaryAmountLabel: o(r),
|
|
114
|
+
billedAmountLabel: o(n),
|
|
115
|
+
receivedOrPaidAmountLabel: o(i),
|
|
116
|
+
rejectedAmountLabel: P ? void 0 : o(u),
|
|
117
|
+
isPrimaryAmountLoading: c,
|
|
118
|
+
isBilledAmountLoading: s,
|
|
119
|
+
isReceivedOrPaidAmountLoading: s || c,
|
|
120
120
|
isRejectedAmountLoading: P ? void 0 : Z.isLoading
|
|
121
121
|
},
|
|
122
|
-
recentDocuments:
|
|
122
|
+
recentDocuments: y(d),
|
|
123
123
|
paymentMethod: f
|
|
124
124
|
};
|
|
125
125
|
}, [
|
|
@@ -148,11 +148,11 @@ function E({ counterpartType: E, detailsLabels: D, messageLabels: O }) {
|
|
|
148
148
|
bank: ce,
|
|
149
149
|
address: le,
|
|
150
150
|
del: ue,
|
|
151
|
-
handleRowClick:
|
|
152
|
-
!I.canRead ||
|
|
151
|
+
handleRowClick: x((e) => {
|
|
152
|
+
!I.canRead || s() || (z(e.id), V("none"));
|
|
153
153
|
}, [I.canRead]),
|
|
154
|
-
closeDetails:
|
|
154
|
+
closeDetails: x(() => z(void 0), [])
|
|
155
155
|
};
|
|
156
156
|
}
|
|
157
157
|
//#endregion
|
|
158
|
-
export {
|
|
158
|
+
export { T as useCounterpartsWidget };
|
package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/index8.js
CHANGED
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
import { useAnalyticsTrack as e } from "../../../shared/feature/dist/lib/analytics/hooks.js";
|
|
6
6
|
import { WidgetProvider as t } from "../../../shared/feature/dist/lib/WidgetProvider/WidgetProvider.js";
|
|
7
7
|
import "../../../shared/feature/dist/index.js";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { AddressFormSheet as s } from "../../../shared/counterpart-management/ui/dist/index12.js";
|
|
13
|
-
import { ConfirmDeleteDialog as c } from "../../../shared/counterpart-management/ui/dist/index13.js";
|
|
8
|
+
import { CounterpartFormSheet as n } from "../../../shared/counterpart-management/ui/dist/index8.js";
|
|
9
|
+
import { BankAccountFormSheet as r } from "../../../shared/counterpart-management/ui/dist/index10.js";
|
|
10
|
+
import { AddressFormSheet as i } from "../../../shared/counterpart-management/ui/dist/index12.js";
|
|
11
|
+
import { ConfirmDeleteDialog as a } from "../../../shared/counterpart-management/ui/dist/index13.js";
|
|
14
12
|
import "../../../shared/counterpart-management/feature/dist/index.js";
|
|
13
|
+
import { CounterpartsWidgetAnalyticsEvent as o, WIDGET_NAME as s } from "./index2.js";
|
|
14
|
+
import { PAGE_SIZE_OPTIONS as c } from "./index3.js";
|
|
15
15
|
import { CounterpartsScreen as l } from "../../ui/dist/index3.js";
|
|
16
16
|
import { CounterpartDetailsSheet as u } from "../../ui/dist/index4.js";
|
|
17
17
|
import "../../ui/dist/index.js";
|
|
@@ -19,10 +19,10 @@ import { useCounterpartsWidget as d } from "./index7.js";
|
|
|
19
19
|
import { useEffect as f } from "react";
|
|
20
20
|
import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
21
21
|
//#region ../../libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/index8.js
|
|
22
|
-
function g({ counterpartType: t, pageSizeOptions:
|
|
22
|
+
function g({ counterpartType: t, pageSizeOptions: s = c, showTitle: g, onViewAllDocuments: _, screenLabels: v, formLabels: y, detailsLabels: b, bankAccountLabels: x, addressLabels: S, deleteLabels: C, messageLabels: w }) {
|
|
23
23
|
let T = e();
|
|
24
24
|
f(() => {
|
|
25
|
-
T(
|
|
25
|
+
T(o.Mounted);
|
|
26
26
|
}, [T]);
|
|
27
27
|
let { stateOptions: E, selectedId: D, view: O, table: k, details: A, detailsSheetView: j, permissions: M, isPermissionLoading: N, form: P, bank: F, address: I, del: L, handleRowClick: R, closeDetails: z } = d({
|
|
28
28
|
counterpartType: t,
|
|
@@ -40,7 +40,7 @@ function g({ counterpartType: t, pageSizeOptions: r = i, showTitle: g, onViewAll
|
|
|
40
40
|
onSortingChange: k.onSortingChange,
|
|
41
41
|
pageSize: k.pageSize,
|
|
42
42
|
onPageSizeChange: k.onPageSizeChange,
|
|
43
|
-
pageSizeOptions:
|
|
43
|
+
pageSizeOptions: s,
|
|
44
44
|
hasNextPage: k.hasNextPage,
|
|
45
45
|
hasPrevPage: k.hasPrevPage,
|
|
46
46
|
onNextPage: k.onNextPage,
|
|
@@ -59,7 +59,7 @@ function g({ counterpartType: t, pageSizeOptions: r = i, showTitle: g, onViewAll
|
|
|
59
59
|
emptyStateTestId: "counterparts-widget-empty-state",
|
|
60
60
|
accessRestrictedTestId: "counterparts-widget-access-restricted"
|
|
61
61
|
}),
|
|
62
|
-
/* @__PURE__ */ m(
|
|
62
|
+
/* @__PURE__ */ m(n, {
|
|
63
63
|
open: O === "create",
|
|
64
64
|
onOpenChange: (e) => {
|
|
65
65
|
e || P.close();
|
|
@@ -148,7 +148,7 @@ function g({ counterpartType: t, pageSizeOptions: r = i, showTitle: g, onViewAll
|
|
|
148
148
|
} : void 0,
|
|
149
149
|
labels: b
|
|
150
150
|
}),
|
|
151
|
-
/* @__PURE__ */ m(
|
|
151
|
+
/* @__PURE__ */ m(r, {
|
|
152
152
|
open: F.form.sheet.open,
|
|
153
153
|
onOpenChange: (e) => {
|
|
154
154
|
e || F.form.close();
|
|
@@ -166,7 +166,7 @@ function g({ counterpartType: t, pageSizeOptions: r = i, showTitle: g, onViewAll
|
|
|
166
166
|
onCancel: F.form.close,
|
|
167
167
|
labels: x
|
|
168
168
|
}),
|
|
169
|
-
/* @__PURE__ */ m(
|
|
169
|
+
/* @__PURE__ */ m(i, {
|
|
170
170
|
open: I.open,
|
|
171
171
|
onOpenChange: (e) => {
|
|
172
172
|
e || I.close();
|
|
@@ -184,7 +184,7 @@ function g({ counterpartType: t, pageSizeOptions: r = i, showTitle: g, onViewAll
|
|
|
184
184
|
onCancel: I.close,
|
|
185
185
|
labels: S
|
|
186
186
|
}),
|
|
187
|
-
/* @__PURE__ */ m(
|
|
187
|
+
/* @__PURE__ */ m(a, {
|
|
188
188
|
open: L.target !== null,
|
|
189
189
|
onOpenChange: (e) => {
|
|
190
190
|
e || L.close();
|
|
@@ -198,15 +198,15 @@ function g({ counterpartType: t, pageSizeOptions: r = i, showTitle: g, onViewAll
|
|
|
198
198
|
})
|
|
199
199
|
] });
|
|
200
200
|
}
|
|
201
|
-
function _({ baseUrl: e, widgetToken: n, organizationId:
|
|
201
|
+
function _({ baseUrl: e, widgetToken: n, organizationId: r, configClient: i, linkComponent: a, implementation: o, uiFramework: c, errorFallback: l, onError: u, analytics: d, ...f }) {
|
|
202
202
|
return /* @__PURE__ */ m(t, {
|
|
203
|
-
widgetName:
|
|
203
|
+
widgetName: s,
|
|
204
204
|
baseUrl: e,
|
|
205
205
|
widgetToken: n,
|
|
206
|
-
organizationId:
|
|
207
|
-
configClient:
|
|
208
|
-
linkComponent:
|
|
209
|
-
implementation:
|
|
206
|
+
organizationId: r,
|
|
207
|
+
configClient: i,
|
|
208
|
+
linkComponent: a,
|
|
209
|
+
implementation: o,
|
|
210
210
|
uiFramework: c,
|
|
211
211
|
errorFallback: l,
|
|
212
212
|
onError: u,
|
package/dist/libs/tesouro-embedded-components-react/gl-code-table-widget/feature/dist/index7.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"use client";
|
|
5
5
|
import { toast as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
6
6
|
import "../../../shared/ui/dist/index.js";
|
|
7
|
-
import { extractApiErrorMessage as t } from "../../../shared/util/dist/
|
|
7
|
+
import { extractApiErrorMessage as t } from "../../../shared/util/dist/lib/apiErrors.js";
|
|
8
8
|
import { CHART_OF_ACCOUNTS_MESSAGE_LABELS_EN as n } from "./index5.js";
|
|
9
9
|
import { ACCOUNT_DELETE_DIALOG_LABELS_EN as r, ACCOUNT_FORM_SHEET_LABELS_EN as i } from "../../ui/dist/index2.js";
|
|
10
10
|
import "../../ui/dist/index.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { INSIGHTS_FEATURE_LABELS_EN as e } from "./index3.js";
|
|
2
|
-
import "./
|
|
3
|
-
import { InsightsWidget as t } from "./
|
|
2
|
+
import "./index8.js";
|
|
3
|
+
import { InsightsWidget as t } from "./index11.js";
|
|
4
4
|
export { e as INSIGHTS_FEATURE_LABELS_EN, t as InsightsWidget };
|
|
@@ -1,66 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
"use client";
|
|
4
|
-
"use client";
|
|
5
|
-
import { useAnalyticsTrack as e } from "../../../shared/feature/dist/lib/analytics/hooks.js";
|
|
6
|
-
import { WidgetProvider as t } from "../../../shared/feature/dist/lib/WidgetProvider/WidgetProvider.js";
|
|
7
|
-
import "../../../shared/feature/dist/index.js";
|
|
8
|
-
import "./index3.js";
|
|
9
|
-
import { InsightsWidgetContextProvider as n, useInsightsWidgetContext as r } from "./index7.js";
|
|
10
|
-
import { InsightsWidgetAnalyticsEvent as i, WIDGET_NAME as a } from "./index2.js";
|
|
11
|
-
import { InsightsWidget as o } from "../../ui/dist/index3.js";
|
|
1
|
+
import { mapInsightToRowView as e } from "./index9.js";
|
|
2
|
+
import { SingleInsight as t } from "../../ui/dist/index5.js";
|
|
12
3
|
import "../../ui/dist/index.js";
|
|
13
|
-
import {
|
|
14
|
-
import { useEffect as c } from "react";
|
|
15
|
-
import { jsx as l } from "react/jsx-runtime";
|
|
4
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
16
5
|
//#region ../../libs/tesouro-embedded-components-react/insights-widget/feature/dist/index10.js
|
|
17
|
-
|
|
18
|
-
let
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
isLoading: p,
|
|
26
|
-
isError: m,
|
|
27
|
-
onRetry: m ? () => void h() : void 0,
|
|
28
|
-
activeFilter: u,
|
|
29
|
-
setActiveFilter: d,
|
|
30
|
-
labels: t,
|
|
31
|
-
activeTabTestId: "insights-widget-active-tab",
|
|
32
|
-
children: f.map((e) => /* @__PURE__ */ l(s, {
|
|
33
|
-
insight: e,
|
|
34
|
-
createdDate: v,
|
|
35
|
-
featureLabels: _,
|
|
36
|
-
onDismissClick: g,
|
|
37
|
-
labels: n
|
|
38
|
-
}, e.id))
|
|
6
|
+
var r = ({ insight: r, createdDate: i, featureLabels: a, onDismissClick: o, labels: s }) => {
|
|
7
|
+
let c = e(r, a, i);
|
|
8
|
+
return /* @__PURE__ */ n(t, {
|
|
9
|
+
row: c,
|
|
10
|
+
labels: s,
|
|
11
|
+
onDismissClick: c.showDismissButton ? () => {
|
|
12
|
+
o(r.id);
|
|
13
|
+
} : void 0
|
|
39
14
|
});
|
|
40
|
-
}
|
|
41
|
-
var d = ({ labels: e, singleInsightLabels: t, featureLabels: r, routingEnabled: i, onRoutingToggleChange: a, onLinkExternalAccountClick: o }) => /* @__PURE__ */ l(n, {
|
|
42
|
-
routingEnabled: i,
|
|
43
|
-
onRoutingToggleChange: a,
|
|
44
|
-
onLinkExternalAccountClick: o,
|
|
45
|
-
featureLabels: r,
|
|
46
|
-
children: /* @__PURE__ */ l(u, {
|
|
47
|
-
labels: e,
|
|
48
|
-
singleInsightLabels: t
|
|
49
|
-
})
|
|
50
|
-
});
|
|
51
|
-
function f({ labels: e, singleInsightLabels: n, featureLabels: r, routingEnabled: i, onRoutingToggleChange: o, onLinkExternalAccountClick: s, ...c }) {
|
|
52
|
-
return /* @__PURE__ */ l(t, {
|
|
53
|
-
...c,
|
|
54
|
-
widgetName: a,
|
|
55
|
-
children: /* @__PURE__ */ l(d, {
|
|
56
|
-
labels: e,
|
|
57
|
-
singleInsightLabels: n,
|
|
58
|
-
featureLabels: r,
|
|
59
|
-
routingEnabled: i,
|
|
60
|
-
onRoutingToggleChange: o,
|
|
61
|
-
onLinkExternalAccountClick: s
|
|
62
|
-
})
|
|
63
|
-
});
|
|
64
|
-
}
|
|
15
|
+
};
|
|
65
16
|
//#endregion
|
|
66
|
-
export {
|
|
17
|
+
export { r as SingleInsight };
|