@tesouro/embedded-components-react 0.5.75 → 0.5.77

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.
Files changed (88) hide show
  1. package/dist/index.css +0 -8
  2. package/dist/index.js +1 -1
  3. package/dist/lib/BillPayWidget.js +1 -1
  4. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +8 -8
  5. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +140 -7
  6. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +46 -140
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +114 -47
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +182 -111
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +75 -164
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +31 -76
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +89 -23
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +405 -65
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +12 -381
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +84 -12
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +54 -79
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +223 -54
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +37 -223
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +245 -37
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +21 -252
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +575 -21
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +4 -572
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +44 -4
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +247 -38
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +3 -234
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js +4 -3
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +44 -2
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js +1 -46
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +8 -1
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index69.js +11 -6
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +127 -11
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index71.js +3 -129
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js +127 -3
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js +8 -124
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index74.js +7 -8
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index75.js +47 -8
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index76.js +18 -44
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index77.js +28 -20
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index78.js +82 -27
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index79.js +47 -83
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index80.js +250 -47
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index81.js +123 -241
  42. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index82.js +211 -126
  43. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index83.js +3 -219
  44. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index84.js +7 -4
  45. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index85.js +98 -5
  46. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index86.js +1 -100
  47. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index87.js +26 -0
  48. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +10 -10
  49. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index30.js +2 -72
  50. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index31.js +12 -269
  51. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index33.js +2 -19
  52. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index34.js +16 -50
  53. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index36.js +97 -15
  54. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index37.js +76 -47
  55. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index38.js +277 -2
  56. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index39.js +2 -35
  57. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index40.js +16 -369
  58. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index41.js +56 -2
  59. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index42.js +2 -23
  60. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index43.js +15 -93
  61. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index44.js +50 -2
  62. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index45.js +1 -31
  63. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +32 -49
  64. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index47.js +374 -2
  65. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index48.js +1 -55
  66. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index49.js +20 -10
  67. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index50.js +87 -188
  68. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index51.js +1 -1
  69. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index52.js +30 -2
  70. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index53.js +48 -37
  71. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index55.js +47 -10
  72. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index56.js +10 -85
  73. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index57.js +197 -2
  74. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index58.js +2 -4
  75. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index59.js +2 -14
  76. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js +41 -2
  77. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index61.js +2 -4
  78. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index62.js +14 -17
  79. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index63.js +88 -2
  80. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index64.js +1 -94
  81. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js +167 -161
  82. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js +5 -5
  83. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  84. package/dist/libs/tesouro-embedded-components-react/shared/util/dist/lib/auditHistory/buildPayableAuditHistory.js +5 -1
  85. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index8.js +1 -1
  86. package/dist/packages/shared-ui-shadcn/dist/index.js +1391 -1369
  87. package/package.json +1 -1
  88. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index88.js +0 -27
@@ -1,100 +1 @@
1
- "use client";
2
- "use client";
3
- "use client";
4
- "use client";
5
- import { hasAnyScope as e } from "../../../shared/data-access/dist/lib/hasAnyScope.js";
6
- import { Scope as t } from "../../../shared/data-access/dist/lib/scopes.js";
7
- import "../../../shared/data-access/dist/index.js";
8
- import { EmbeddedToaster as n } from "../../../shared/ui/dist/lib/EmbeddedToaster.js";
9
- import "../../../shared/ui/dist/index.js";
10
- import { useAnalyticsTrack as r } from "../../../shared/feature/dist/lib/analytics/hooks.js";
11
- import { WidgetProvider as i } from "../../../shared/feature/dist/lib/WidgetProvider/WidgetProvider.js";
12
- import { useWidgetConfig as a } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
13
- import "../../../shared/feature/dist/index.js";
14
- import { BillPayWidgetUi as o } from "../../ui/dist/index53.js";
15
- import { BillUploadStatusTray as s } from "../../ui/dist/index85.js";
16
- import "../../ui/dist/index.js";
17
- import { useBillUploadQueue as c } from "./index71.js";
18
- import "./index72.js";
19
- import { billsTabTestIds as l } from "./index77.js";
20
- import { BillsTab as u } from "./index83.js";
21
- import "./index84.js";
22
- import { BillPayWidgetAnalyticsEvent as d, WIDGET_NAME as f } from "./index66.js";
23
- import { DEFAULT_TABS_LABELS as p } from "./index85.js";
24
- import { CounterpartsWidget as m } from "../../../counterparts-widget/feature/dist/index8.js";
25
- import "../../../counterparts-widget/feature/dist/index.js";
26
- import { useCallback as h, useEffect as g, useState as _ } from "react";
27
- import { Fragment as v, jsx as y, jsxs as b } from "react/jsx-runtime";
28
- //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index86.js
29
- var x = {
30
- Bills: "bills",
31
- Vendors: "vendors"
32
- }, S = [x.Bills, x.Vendors];
33
- function C({ labels: i, initialTab: f = x.Bills, tabsLabels: C, vendorLabels: w, poweredByBankName: T, onSettingsClick: E }) {
34
- let D = r();
35
- g(() => {
36
- D(d.Mounted);
37
- }, [D]);
38
- let O = {
39
- ...p,
40
- ...C
41
- }, { initResponse: k } = a(), A = e(k?.scopes, [t.ApprovalPolicyWriteOrg]) && e(k?.scopes, [t.PayableWriteOrg]) && e(k?.scopes, [t.RoleReadOrg]) && e(k?.scopes, [t.UserReadOrg]), [j, M] = _(f), [N, P] = _(), F = h((e) => {
42
- M(x.Bills), P(e);
43
- }, []), I = c({ onOpenBill: F }), L = [{
44
- id: x.Bills,
45
- label: O.bills,
46
- content: /* @__PURE__ */ y(u, {
47
- onEnqueueFiles: I.enqueue,
48
- openPayableId: N,
49
- onOpenPayableHandled: () => P(void 0),
50
- poweredByBankName: T,
51
- onSettingsClick: E && A ? E : void 0
52
- })
53
- }, {
54
- id: x.Vendors,
55
- label: O.vendors,
56
- content: /* @__PURE__ */ y(m, {
57
- ...w,
58
- counterpartType: "vendor",
59
- onViewAllDocuments: () => M(x.Bills)
60
- })
61
- }], R = L.some((e) => e.id === j) ? j : S.find((e) => L.some((t) => t.id === e)) ?? L[0]?.id ?? "";
62
- return /* @__PURE__ */ b(v, { children: [
63
- /* @__PURE__ */ y(n, {}),
64
- /* @__PURE__ */ y(o, {
65
- labels: i,
66
- tabs: L,
67
- selectedTabId: R,
68
- onTabChange: M
69
- }),
70
- I.isVisible ? /* @__PURE__ */ y(s, {
71
- sections: I.sections,
72
- summaryLabel: I.summaryLabel,
73
- collapsed: I.collapsed,
74
- onToggleCollapsed: I.onToggleCollapsed,
75
- onClose: I.onClose,
76
- testId: l.uploadTray
77
- }) : null
78
- ] });
79
- }
80
- function w({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gatewayRouting: a, linkComponent: o, implementation: s, uiFramework: c, errorFallback: l, onError: u, analytics: d, disclosuresAcceptance: p, providerLabels: m, ...h }) {
81
- return /* @__PURE__ */ y(i, {
82
- widgetName: f,
83
- baseUrl: e,
84
- widgetToken: t,
85
- organizationId: n,
86
- configClient: r,
87
- gatewayRouting: a,
88
- linkComponent: o,
89
- implementation: s,
90
- uiFramework: c,
91
- errorFallback: l,
92
- onError: u,
93
- analytics: d,
94
- disclosuresAcceptance: p,
95
- providerLabels: m,
96
- children: /* @__PURE__ */ y(C, { ...h })
97
- });
98
- }
99
- //#endregion
100
- export { w as BillPayWidgetNative, w as default };
1
+ import "./index85.js";
@@ -1 +1,27 @@
1
+ "use client";
2
+ "use client";
3
+ "use client";
4
+ "use client";
5
+ import { Implementation as e } from "../../../shared/feature/dist/lib/WidgetProvider/types.js";
6
+ import { useWidgetConfig as t } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
7
+ import "../../../shared/feature/dist/index.js";
8
+ import { BillPayWidgetMonite as n } from "./index66.js";
9
+ import "./index67.js";
10
+ import { BillPayWidgetNative as r } from "./index85.js";
1
11
  import "./index86.js";
12
+ import { jsx as i } from "react/jsx-runtime";
13
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index87.js
14
+ function a({ implementation: a, initialTab: o, onSettingsClick: s, ...c }) {
15
+ let l = t().implementation, u = a ?? l ?? e.Monite;
16
+ return u === e.Native ? /* @__PURE__ */ i(r, {
17
+ implementation: u,
18
+ initialTab: o,
19
+ onSettingsClick: s,
20
+ ...c
21
+ }) : /* @__PURE__ */ i(n, {
22
+ implementation: u,
23
+ ...c
24
+ });
25
+ }
26
+ //#endregion
27
+ export { a as BillPayWidget, a as default };
@@ -28,34 +28,34 @@ import "./index32.js";
28
28
  import "./index33.js";
29
29
  import "./index34.js";
30
30
  import "./index35.js";
31
- import "./index36.js";
31
+ import { BILL_DETAILS_SHEET_LABELS_EN as t } from "./index36.js";
32
32
  import "./index37.js";
33
33
  import "./index38.js";
34
34
  import "./index39.js";
35
35
  import "./index40.js";
36
36
  import "./index41.js";
37
37
  import "./index42.js";
38
- import { VendorSearchCombobox as t } from "./index43.js";
38
+ import "./index43.js";
39
39
  import "./index44.js";
40
40
  import "./index45.js";
41
41
  import "./index46.js";
42
42
  import "./index47.js";
43
43
  import "./index48.js";
44
- import { BillCreateScreen as n } from "./index50.js";
44
+ import "./index49.js";
45
+ import { VendorSearchCombobox as n } from "./index50.js";
45
46
  import "./index51.js";
46
47
  import "./index52.js";
47
- import { BillPayWidgetUi as r } from "./index53.js";
48
+ import "./index53.js";
48
49
  import "./index54.js";
49
50
  import "./index55.js";
50
- import { BillDecisionDialog as i } from "./index56.js";
51
- import "./index57.js";
51
+ import { BillCreateScreen as r } from "./index57.js";
52
52
  import "./index58.js";
53
53
  import "./index59.js";
54
- import "./index60.js";
54
+ import { BillPayWidgetUi as i } from "./index60.js";
55
55
  import "./index61.js";
56
56
  import "./index62.js";
57
- import "./index63.js";
58
- import { BILL_DETAILS_SHEET_LABELS_EN as a } from "./index64.js";
57
+ import { BillDecisionDialog as a } from "./index63.js";
58
+ import "./index64.js";
59
59
  import { BillDetailsSheet as o } from "./index65.js";
60
60
  import { DISCARD_CHANGES_DIALOG_LABELS_EN as s } from "./index66.js";
61
61
  import { DiscardChangesDialog as c } from "./index67.js";
@@ -101,4 +101,4 @@ import "./index110.js";
101
101
  import { UNSAVED_BILL_DIALOG_LABELS_EN as D } from "./index111.js";
102
102
  import { UnsavedBillDialog as O } from "./index112.js";
103
103
  import "./index113.js";
104
- export { e as AddBillDialog, a as BILL_DETAILS_SHEET_LABELS_EN, u as BILL_REJECTED_BANNER_LABELS_EN, p as BillColumn, n as BillCreateScreen, i as BillDecisionDialog, o as BillDetailsSheet, l as BillDuplicateNotice, r as BillPayWidgetUi, d as BillRejectedBanner, h as BillUploadStatusTray, f as BillsFilterField, m as BillsScreen, s as DISCARD_CHANGES_DIALOG_LABELS_EN, c as DiscardChangesDialog, g as DuplicateBillsDialog, _ as ExtractionNotice, b as MARK_AS_PAID_DIALOG_LABELS_EN, S as MarkAsPaidDialog, v as REVIEW_TRANSACTION_DIALOG_LABELS_EN, y as ReviewTransactionDialog, C as SCHEDULE_PAYMENT_DIALOG_LABELS_EN, T as SchedulePaymentDialog, E as SourceDocumentPanel, D as UNSAVED_BILL_DIALOG_LABELS_EN, O as UnsavedBillDialog, t as VendorSearchCombobox, x as mergeMarkAsPaidDialogLabels, w as mergeSchedulePaymentDialogLabels };
104
+ export { e as AddBillDialog, t as BILL_DETAILS_SHEET_LABELS_EN, u as BILL_REJECTED_BANNER_LABELS_EN, p as BillColumn, r as BillCreateScreen, a as BillDecisionDialog, o as BillDetailsSheet, l as BillDuplicateNotice, i as BillPayWidgetUi, d as BillRejectedBanner, h as BillUploadStatusTray, f as BillsFilterField, m as BillsScreen, s as DISCARD_CHANGES_DIALOG_LABELS_EN, c as DiscardChangesDialog, g as DuplicateBillsDialog, _ as ExtractionNotice, b as MARK_AS_PAID_DIALOG_LABELS_EN, S as MarkAsPaidDialog, v as REVIEW_TRANSACTION_DIALOG_LABELS_EN, y as ReviewTransactionDialog, C as SCHEDULE_PAYMENT_DIALOG_LABELS_EN, T as SchedulePaymentDialog, E as SourceDocumentPanel, D as UNSAVED_BILL_DIALOG_LABELS_EN, O as UnsavedBillDialog, n as VendorSearchCombobox, x as mergeMarkAsPaidDialogLabels, w as mergeSchedulePaymentDialogLabels };
@@ -1,74 +1,4 @@
1
- import { REQUIRED_FIELDS_LEGEND_LABELS_EN as e, mergeRequiredFieldsLegendLabels as t } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { APPROVAL_POLICY_CARD_LABELS_EN as n } from "./index12.js";
3
- import "./index14.js";
4
- import { BILL_STATUS_BADGE_LABELS_EN as r } from "./index18.js";
5
- import "./index20.js";
6
- import { DUE_DATE_VALUE_LABELS_EN as i } from "./index21.js";
7
- import "./index23.js";
8
- import { VENDOR_SUMMARY_CARD_LABELS_EN as a } from "./index27.js";
9
- import "./index29.js";
10
1
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index30.js
11
- var o = {
12
- errorTitle: "Couldn't load this bill",
13
- errorDescription: "Something went wrong. Try again.",
14
- amountDueHeading: "Amount due",
15
- amountPaidHeading: "Amount paid",
16
- invoiceDateLabel: "Invoice date",
17
- dueDateLabel: "Due date",
18
- approvalOverrideNotice: "You can approve or reject this bill from the menu in the top right, bypassing any remaining approvers.",
19
- payToHeading: "Pay to",
20
- payToHeadingPaid: "Paid to",
21
- vendorRow: "Vendor",
22
- paymentInstructionsRow: "ACH bank account",
23
- invoiceDetailsHeading: "Invoice details",
24
- addPaymentInstructions: "Add payment instructions",
25
- missingPaymentInstructionsBanner: "Missing payment instructions, which are required to send a payment",
26
- descriptionAndGlCodeColumn: "Description and GL code",
27
- qtyPriceColumn: "Qty/Price",
28
- amountColumn: "Amount",
29
- paymentHistoryHeading: "Payment history",
30
- paymentHistoryErrorDescription: "Couldn't load payment history.",
31
- historyHeading: "Audit history",
32
- statusBadge: r,
33
- approvalPolicy: n,
34
- dueDate: i,
35
- payToCard: {
36
- ...a,
37
- editAction: "Edit vendor"
38
- },
39
- requiredFieldsLegend: e
40
- };
41
- function s(e) {
42
- let n = {
43
- ...o.payToCard.ach.fieldMarkers,
44
- ...e?.payToCard?.ach?.fieldMarkers
45
- };
46
- return {
47
- ...o,
48
- ...e,
49
- statusBadge: {
50
- ...o.statusBadge,
51
- ...e?.statusBadge
52
- },
53
- approvalPolicy: {
54
- ...o.approvalPolicy,
55
- ...e?.approvalPolicy
56
- },
57
- dueDate: {
58
- ...o.dueDate,
59
- ...e?.dueDate
60
- },
61
- payToCard: {
62
- ...o.payToCard,
63
- ...e?.payToCard,
64
- ach: {
65
- ...o.payToCard.ach,
66
- ...e?.payToCard?.ach,
67
- fieldMarkers: n
68
- }
69
- },
70
- requiredFieldsLegend: t(n, e?.requiredFieldsLegend)
71
- };
72
- }
2
+ var e = { missing: "Missing" };
73
3
  //#endregion
74
- export { o as BILL_DETAIL_BODY_LABELS_EN, s as mergeBillDetailBodyLabels };
4
+ export { e as MISSING_VALUE_LABELS_EN };
@@ -1,273 +1,16 @@
1
- import { Badge as e, Button as t, RequiredFieldsLegend as n, Skeleton as r, Typography as i, cn as a } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { ErrorState as o } from "../../../shared/ui/dist/lib/ErrorState/ErrorState.js";
3
- import "../../../shared/ui/dist/index.js";
4
- import { ApprovalPolicyCard as s } from "./index13.js";
5
- import "./index14.js";
6
- import { BillRejectionNotice as c } from "./index17.js";
7
- import { BADGE_TONE_CLASS_NAME as l } from "./index15.js";
8
- import { BillStatusBadge as u } from "./index19.js";
9
- import "./index20.js";
10
- import { DueDateValue as d } from "./index22.js";
11
- import "./index23.js";
12
- import { PaymentHistoryList as f } from "./index24.js";
13
- import "./index25.js";
14
- import { VendorSummaryCard as p } from "./index28.js";
15
- import "./index29.js";
16
- import { mergeBillDetailBodyLabels as m } from "./index30.js";
17
- import { BillActionButtons as h, NO_BILL_ACTIONS as g } from "./index16.js";
18
- import { useMemo as _ } from "react";
19
- import { jsx as v, jsxs as y } from "react/jsx-runtime";
20
- import { AlertTriangle as b } from "lucide-react";
1
+ import { cn as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { MISSING_VALUE_LABELS_EN as t } from "./index30.js";
3
+ import { jsx as n } from "react/jsx-runtime";
21
4
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index31.js
22
- var x = "ttw:text-base ttw:font-semibold", S = "ttw:px-3 ttw:py-2", C = "ttw:py-2 ttw:pr-3", w = "ttw:flex ttw:items-start ttw:gap-4 ttw:py-2.5", T = "ttw:w-[140px] ttw:shrink-0 ttw:text-sm ttw:font-medium ttw:text-muted-foreground";
23
- function E({ view: E, actions: D = g, scheduledSummary: O, scheduledStatusLabel: k, showApprovalOverrideNotice: A, awaitingApprovalNotice: j, payTo: M, hideMissingPaymentInstructions: N, paymentHistoryError: P, paymentHistoryLoading: F, isLoading: I, isError: L, labels: R }) {
24
- let z = _(() => m(R), [R]), B = _(() => ({
25
- ...z.payToCard,
26
- payToHeading: E?.paidOnLabel ? z.payToHeadingPaid : z.payToHeading,
27
- vendorLabel: z.vendorRow,
28
- achBankAccountLabel: z.paymentInstructionsRow
29
- }), [z, E?.paidOnLabel]), V = _(() => ({
30
- ...z.statusBadge,
31
- ...k ? { scheduled: k } : void 0
32
- }), [z.statusBadge, k]);
33
- if (L) return /* @__PURE__ */ v(o, {
34
- title: z.errorTitle,
35
- description: z.errorDescription
36
- });
37
- if (I || !E) return /* @__PURE__ */ y("div", {
38
- "aria-hidden": !0,
39
- className: "ttw:flex ttw:flex-col ttw:gap-6",
40
- children: [
41
- /* @__PURE__ */ v(r, { className: "ttw:h-40 ttw:w-full" }),
42
- /* @__PURE__ */ v(r, { className: "ttw:h-32 ttw:w-full" }),
43
- /* @__PURE__ */ v(r, { className: "ttw:h-24 ttw:w-full" })
44
- ]
45
- });
46
- let H = N ? void 0 : M?.paymentInstructions, U = E.payTo.hasPaymentInstructions ? void 0 : H;
47
- return /* @__PURE__ */ y("div", {
48
- className: "ttw:flex ttw:flex-col ttw:gap-6",
49
- children: [
50
- U ? /* @__PURE__ */ y("div", {
51
- className: "ttw:flex ttw:items-center ttw:gap-3 ttw:rounded-md ttw:border ttw:border-amber-200 ttw:bg-amber-50 ttw:px-3 ttw:py-2.5",
52
- children: [
53
- /* @__PURE__ */ v(b, { className: "ttw:size-4 ttw:shrink-0 ttw:text-amber-800" }),
54
- /* @__PURE__ */ v("p", {
55
- className: "ttw:flex-1 ttw:text-sm ttw:text-foreground",
56
- children: z.missingPaymentInstructionsBanner
57
- }),
58
- /* @__PURE__ */ v(t, {
59
- type: "button",
60
- variant: "outline",
61
- size: "sm",
62
- onClick: U.onOpen,
63
- children: z.addPaymentInstructions
64
- })
65
- ]
66
- }) : null,
67
- /* @__PURE__ */ y("section", {
68
- className: "ttw:flex ttw:flex-col ttw:gap-3 ttw:rounded-lg ttw:bg-muted ttw:p-4",
69
- children: [
70
- E.paidOnLabel ? /* @__PURE__ */ y("div", {
71
- className: "ttw:grid ttw:grid-cols-2 ttw:gap-x-6",
72
- children: [/* @__PURE__ */ y("div", {
73
- className: "ttw:flex ttw:flex-col ttw:gap-1",
74
- children: [/* @__PURE__ */ v("span", {
75
- className: "ttw:text-sm ttw:text-muted-foreground",
76
- children: z.amountDueHeading
77
- }), /* @__PURE__ */ v("span", {
78
- className: "ttw:text-3xl ttw:font-semibold",
79
- children: E.amountDue
80
- })]
81
- }), /* @__PURE__ */ y("div", {
82
- className: "ttw:flex ttw:flex-col ttw:gap-1",
83
- children: [/* @__PURE__ */ v("span", {
84
- className: "ttw:text-sm ttw:text-muted-foreground",
85
- children: z.amountPaidHeading
86
- }), /* @__PURE__ */ v("span", {
87
- className: "ttw:text-3xl ttw:font-semibold ttw:text-emerald-600",
88
- children: E.amountPaid
89
- })]
90
- })]
91
- }) : /* @__PURE__ */ y("div", {
92
- className: "ttw:flex ttw:flex-col ttw:gap-1",
93
- children: [/* @__PURE__ */ v("span", {
94
- className: "ttw:text-sm ttw:text-muted-foreground",
95
- children: z.amountDueHeading
96
- }), /* @__PURE__ */ v("span", {
97
- className: "ttw:text-3xl ttw:font-semibold",
98
- children: E.amountDue
99
- })]
100
- }),
101
- /* @__PURE__ */ v("div", { children: E.paidOnLabel ? /* @__PURE__ */ v(e, {
102
- variant: "outline",
103
- className: "ttw:border-emerald-200 ttw:bg-emerald-50 ttw:text-emerald-700",
104
- children: E.paidOnLabel
105
- }) : O ? /* @__PURE__ */ v(e, {
106
- variant: "outline",
107
- className: l.committed,
108
- children: O
109
- }) : /* @__PURE__ */ v(u, {
110
- status: E.status,
111
- tone: E.statusTone,
112
- labels: V
113
- }) }),
114
- /* @__PURE__ */ y("div", {
115
- className: "ttw:grid ttw:grid-cols-2 ttw:gap-x-6",
116
- children: [/* @__PURE__ */ y("div", {
117
- className: "ttw:flex ttw:flex-col",
118
- children: [/* @__PURE__ */ v("span", {
119
- className: "ttw:text-xs ttw:text-muted-foreground",
120
- children: z.invoiceDateLabel
121
- }), /* @__PURE__ */ v("span", {
122
- className: "ttw:text-sm ttw:font-medium",
123
- children: E.invoiceDateLabel
124
- })]
125
- }), /* @__PURE__ */ y("div", {
126
- className: "ttw:flex ttw:flex-col",
127
- children: [/* @__PURE__ */ v("span", {
128
- className: "ttw:text-xs ttw:text-muted-foreground",
129
- children: z.dueDateLabel
130
- }), /* @__PURE__ */ v(d, {
131
- className: "ttw:text-sm ttw:font-medium",
132
- value: E.dueDateLabel,
133
- tone: E.dueDateTone,
134
- labels: z.dueDate
135
- })]
136
- })]
137
- }),
138
- E.rejection ? /* @__PURE__ */ v(c, { ...E.rejection }) : null,
139
- A ? /* @__PURE__ */ v(i, {
140
- variant: "caption",
141
- color: "muted",
142
- children: z.approvalOverrideNotice
143
- }) : j ? /* @__PURE__ */ v(i, {
144
- variant: "caption",
145
- color: "muted",
146
- children: j
147
- }) : null,
148
- !O && D.row.length ? /* @__PURE__ */ v("div", {
149
- className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:gap-2",
150
- children: /* @__PURE__ */ v(h, { actions: D.row })
151
- }) : null
152
- ]
153
- }),
154
- H?.isOpen && !N ? /* @__PURE__ */ v(n, { labels: z.requiredFieldsLegend }) : null,
155
- M?.editForm ? /* @__PURE__ */ y("div", {
156
- className: "ttw:flex ttw:flex-col ttw:gap-3",
157
- children: [M.editForm, /* @__PURE__ */ v(p, {
158
- summary: E.payTo,
159
- paymentInstructions: H,
160
- labels: B
161
- })]
162
- }) : /* @__PURE__ */ v(p, {
163
- summary: E.payTo,
164
- onEdit: M?.onEdit,
165
- paymentInstructions: H,
166
- labels: B
167
- }),
168
- E.paymentHistory.length || P || F ? /* @__PURE__ */ y("section", {
169
- className: "ttw:flex ttw:flex-col ttw:gap-3",
170
- children: [/* @__PURE__ */ v("h3", {
171
- className: x,
172
- children: z.paymentHistoryHeading
173
- }), P ? /* @__PURE__ */ v("p", {
174
- className: "ttw:text-sm ttw:text-muted-foreground",
175
- children: z.paymentHistoryErrorDescription
176
- }) : F ? /* @__PURE__ */ v(r, { className: "ttw:h-9 ttw:w-full" }) : /* @__PURE__ */ v(f, { records: E.paymentHistory })]
177
- }) : null,
178
- /* @__PURE__ */ y("section", {
179
- className: "ttw:flex ttw:flex-col ttw:gap-3",
180
- children: [/* @__PURE__ */ v("h3", {
181
- className: x,
182
- children: z.invoiceDetailsHeading
183
- }), /* @__PURE__ */ v("dl", {
184
- className: "ttw:flex ttw:flex-col ttw:divide-y ttw:divide-border",
185
- children: E.invoiceFields.map((e) => /* @__PURE__ */ y("div", {
186
- className: w,
187
- children: [/* @__PURE__ */ v("dt", {
188
- className: T,
189
- children: e.label
190
- }), /* @__PURE__ */ v("dd", {
191
- className: "ttw:text-sm ttw:font-medium ttw:text-foreground",
192
- children: e.value
193
- })]
194
- }, e.label))
195
- })]
196
- }),
197
- /* @__PURE__ */ v("section", { children: /* @__PURE__ */ y("table", {
198
- className: "ttw:w-full ttw:text-sm",
199
- children: [/* @__PURE__ */ v("thead", { children: /* @__PURE__ */ y("tr", {
200
- className: "ttw:bg-muted/50 ttw:text-xs ttw:text-muted-foreground",
201
- children: [
202
- /* @__PURE__ */ v("th", {
203
- className: a(C, "ttw:text-left ttw:font-normal"),
204
- children: z.descriptionAndGlCodeColumn
205
- }),
206
- /* @__PURE__ */ v("th", {
207
- className: a(S, "ttw:text-right ttw:font-normal"),
208
- children: z.qtyPriceColumn
209
- }),
210
- /* @__PURE__ */ v("th", {
211
- className: a(S, "ttw:text-right ttw:font-normal"),
212
- children: z.amountColumn
213
- })
214
- ]
215
- }) }), /* @__PURE__ */ y("tbody", { children: [E.lineItems.map((e) => /* @__PURE__ */ y("tr", {
216
- className: "ttw:border-b ttw:border-border",
217
- children: [
218
- /* @__PURE__ */ v("td", {
219
- className: C,
220
- children: /* @__PURE__ */ y("div", {
221
- className: "ttw:flex ttw:flex-col",
222
- children: [/* @__PURE__ */ v("span", { children: e.description }), /* @__PURE__ */ v("span", {
223
- className: "ttw:text-xs ttw:text-muted-foreground",
224
- children: e.glCodeLabel
225
- })]
226
- })
227
- }),
228
- /* @__PURE__ */ v("td", {
229
- className: a(S, "ttw:text-right ttw:whitespace-nowrap ttw:text-muted-foreground"),
230
- children: e.qtyPriceLabel
231
- }),
232
- /* @__PURE__ */ v("td", {
233
- className: a(S, "ttw:text-right ttw:whitespace-nowrap"),
234
- children: e.amount
235
- })
236
- ]
237
- }, e.id)), E.amountRows.map((e) => /* @__PURE__ */ y("tr", {
238
- className: a(e.emphasis ? "ttw:font-semibold" : "ttw:text-muted-foreground"),
239
- children: [/* @__PURE__ */ v("td", {
240
- colSpan: 2,
241
- className: C,
242
- children: e.label
243
- }), /* @__PURE__ */ v("td", {
244
- className: a(S, "ttw:text-right ttw:whitespace-nowrap", e.emphasis && "ttw:text-foreground"),
245
- children: e.value
246
- })]
247
- }, e.label))] })]
248
- }) }),
249
- E.approvalPolicy ? /* @__PURE__ */ v(s, {
250
- view: E.approvalPolicy,
251
- labels: z.approvalPolicy
252
- }) : null,
253
- E.history.length ? /* @__PURE__ */ y("section", {
254
- className: "ttw:flex ttw:flex-col ttw:gap-3",
255
- children: [/* @__PURE__ */ v("h3", {
256
- className: x,
257
- children: z.historyHeading
258
- }), /* @__PURE__ */ v("ul", {
259
- className: "ttw:flex ttw:flex-col",
260
- children: E.history.map((e) => /* @__PURE__ */ y("li", {
261
- className: "ttw:flex ttw:gap-6 ttw:border-b ttw:border-border ttw:py-3 ttw:text-sm ttw:last:border-b-0",
262
- children: [/* @__PURE__ */ v("span", {
263
- className: "ttw:w-28 ttw:shrink-0 ttw:text-muted-foreground",
264
- children: e.dateLabel
265
- }), /* @__PURE__ */ v("span", { children: e.description })]
266
- }, e.id))
267
- })]
268
- }) : null
269
- ]
5
+ function r({ labels: r, className: i }) {
6
+ let a = {
7
+ ...t,
8
+ ...r
9
+ };
10
+ return /* @__PURE__ */ n("span", {
11
+ className: e("ttw:text-amber-700", i),
12
+ children: a.missing
270
13
  });
271
14
  }
272
15
  //#endregion
273
- export { E as BillDetailBody, E as default };
16
+ export { r as MissingValue, r as default };
@@ -1,21 +1,4 @@
1
- import { LABEL_LABELS_EN as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
1
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index33.js
3
- var t = {
4
- invoiceNumber: "Invoice number",
5
- invoiceDate: "Invoice date",
6
- dueDate: "Due date",
7
- poNumber: "PO number",
8
- fieldMarkers: e
9
- };
10
- function n(e) {
11
- return {
12
- ...t,
13
- ...e,
14
- fieldMarkers: {
15
- ...t.fieldMarkers,
16
- ...e?.fieldMarkers
17
- }
18
- };
19
- }
2
+ var e = { none: "None" };
20
3
  //#endregion
21
- export { t as BILL_FORM_FIELDS_LABELS_EN, n as mergeBillFormFieldsLabels };
4
+ export { e as NO_VALUE_LABELS_EN };
@@ -1,56 +1,22 @@
1
- import { FieldRequirement as e, Input as t, Label as n } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { mergeBillFormFieldsLabels as r } from "./index33.js";
3
- import { useId as i } from "react";
4
- import { jsx as a, jsxs as o } from "react/jsx-runtime";
1
+ import { cn as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { NO_VALUE_LABELS_EN as t } from "./index33.js";
3
+ import { jsx as n, jsxs as r } from "react/jsx-runtime";
5
4
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index34.js
6
- var s = 255, c = {
7
- invoiceDate: e.Required,
8
- dueDate: e.Required,
9
- invoiceNumber: e.Required,
10
- poNumber: e.Optional
11
- };
12
- function l({ values: l, errors: u, onChange: d, disabled: f, testId: p, labels: m }) {
13
- let h = r(m), g = i(), _ = (r, i, p) => {
14
- let m = `${g}-${r}`, _ = `${m}-error`, v = u?.[r], y = c[r];
15
- return /* @__PURE__ */ o("div", {
16
- className: "ttw:flex ttw:flex-col ttw:gap-1.5",
17
- children: [
18
- /* @__PURE__ */ a(n, {
19
- htmlFor: m,
20
- requirement: y,
21
- labels: h.fieldMarkers,
22
- children: i
23
- }),
24
- /* @__PURE__ */ a(t, {
25
- id: m,
26
- type: p,
27
- value: l[r],
28
- disabled: f,
29
- "aria-required": y === e.Required || void 0,
30
- maxLength: r === "poNumber" ? s : void 0,
31
- "aria-invalid": v ? !0 : void 0,
32
- "aria-describedby": v ? _ : void 0,
33
- onChange: (e) => d({ [r]: e.target.value })
34
- }),
35
- v ? /* @__PURE__ */ a("p", {
36
- id: _,
37
- className: "ttw:text-sm ttw:text-destructive",
38
- children: v
39
- }) : null
40
- ]
41
- });
5
+ function i({ labels: i, className: a }) {
6
+ let o = {
7
+ ...t,
8
+ ...i
42
9
  };
43
- return /* @__PURE__ */ o("div", {
44
- className: "ttw:flex ttw:flex-col ttw:gap-4",
45
- "data-testid": p,
46
- children: [/* @__PURE__ */ o("div", {
47
- className: "ttw:grid ttw:grid-cols-2 ttw:gap-4",
48
- children: [_("invoiceDate", h.invoiceDate, "date"), _("dueDate", h.dueDate, "date")]
49
- }), /* @__PURE__ */ o("div", {
50
- className: "ttw:grid ttw:grid-cols-2 ttw:gap-4",
51
- children: [_("invoiceNumber", h.invoiceNumber), _("poNumber", h.poNumber)]
10
+ return /* @__PURE__ */ r("span", {
11
+ className: e("ttw:text-muted-foreground", a),
12
+ children: [/* @__PURE__ */ n("span", {
13
+ "aria-hidden": !0,
14
+ children: "—"
15
+ }), /* @__PURE__ */ n("span", {
16
+ className: "ttw:sr-only",
17
+ children: o.none
52
18
  })]
53
19
  });
54
20
  }
55
21
  //#endregion
56
- export { l as BillFormFields, l as default };
22
+ export { i as NoValue, i as default };