@tesouro/embedded-components-react 0.11.169 → 0.11.172

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 (49) hide show
  1. package/README.md +10 -6
  2. package/dist/index.d.ts +15 -4
  3. package/dist/lib/BillPayWidget.d.ts +9 -4
  4. package/dist/lib/ReceivablesWidget.d.ts +6 -0
  5. package/dist/lib/WidgetSuite.d.ts +6 -0
  6. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index26.js +75 -66
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index27.js +62 -53
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index31.js +44 -38
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index44.js +331 -326
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index46.js +10 -8
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index47.js +190 -187
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index14.js +12 -19
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index15.js +25 -23
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index33.js +4 -7
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index34.js +23 -24
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index5.js +5 -5
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index16.js +196 -187
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index17.js +8 -5
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index8.js +20 -18
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index18.js +11 -15
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index20.js +313 -324
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/BillPayWidget.js +46 -38
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/BillsTab.js +2 -2
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index5.js +1 -1
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index6.js +1 -1
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +4 -8
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index13.js +1 -1
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index14.js +45 -22
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +5 -27
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +32 -2
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +2 -29
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/index.js +7 -6
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/resolveBillDueDate.js +22 -0
  34. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/details.js +116 -98
  35. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/helpers.js +99 -92
  36. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/labels.js +7 -1
  37. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/recurringSeries.js +15 -24
  38. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index60.js +59 -69
  39. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  40. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/index.js +7 -5
  41. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/DateDisclosure/DateDisclosure.js +28 -0
  42. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/DueDateText/DueDateText.js +19 -0
  43. package/dist/libs/tesouro-embedded-components-react/shared/util/dist/index.js +28 -27
  44. package/dist/libs/tesouro-embedded-components-react/shared/util/dist/lib/dueDateDisplay.js +23 -0
  45. package/package.json +1 -1
  46. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +0 -2
  47. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +0 -6
  48. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +0 -33
  49. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +0 -2
@@ -1,16 +1,17 @@
1
1
  import { AWAITING_APPROVAL_LABEL_EN as e, AWAITING_APPROVAL_UNKNOWN_LABEL_EN as t, BILL_DETAIL_ACTIONS_LABELS_EN as n, PAYMENT_HISTORY_LABELS_EN as r, SCHEDULED_RELATIVE_DAY_LABELS_EN as i, SCHEDULED_STATUS_BADGE_LABEL_EN as a, SCHEDULED_SUMMARY_LABEL_EN as o, mergeBillDetailActionsLabels as s, mergePaymentHistoryMethodLabels as c } from "../../../util/dist/lib/billDetailLabels.js";
2
+ import { BILL_DUE_DATE_LABELS_EN as l } from "../../../util/dist/lib/resolveBillDueDate.js";
2
3
  import "../../../util/dist/index.js";
3
- import { APPROVAL_POLICY_RULE_COPY_EN as l } from "./index9.js";
4
- import { PAYABLE_AUDIT_HISTORY_LABELS_EN as u } from "./index29.js";
5
- import { SOURCE_DOCUMENT_PREVIEW_LABELS_EN as d } from "./index30.js";
6
- import { ACH_FIELD_GROUP_LABELS_EN as f } from "../../../../shared/counterpart-management/ui/dist/index2.js";
4
+ import { APPROVAL_POLICY_RULE_COPY_EN as u } from "./index9.js";
5
+ import { PAYABLE_AUDIT_HISTORY_LABELS_EN as d } from "./index29.js";
6
+ import { SOURCE_DOCUMENT_PREVIEW_LABELS_EN as f } from "./index30.js";
7
+ import { ACH_FIELD_GROUP_LABELS_EN as p } from "../../../../shared/counterpart-management/ui/dist/index2.js";
7
8
  import "../../../../shared/counterpart-management/ui/dist/index.js";
8
- import { BILL_REJECTED_BANNER_LABELS_EN as p } from "../../ui/dist/index39.js";
9
- import { DISCARD_CHANGES_DIALOG_LABELS_EN as m } from "../../ui/dist/index42.js";
10
- import { UNSAVED_BILL_DIALOG_LABELS_EN as h } from "../../ui/dist/index51.js";
9
+ import { BILL_REJECTED_BANNER_LABELS_EN as m } from "../../ui/dist/index39.js";
10
+ import { DISCARD_CHANGES_DIALOG_LABELS_EN as h } from "../../ui/dist/index42.js";
11
+ import { UNSAVED_BILL_DIALOG_LABELS_EN as g } from "../../ui/dist/index51.js";
11
12
  import "../../ui/dist/index.js";
12
13
  // ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index31.js
13
- var g = {
14
+ var _ = {
14
15
  unmappedValidationError: (e, t) => `${e}: ${t}`,
15
16
  unknownValidationField: "(unknown field)",
16
17
  requiredField: "This field is required.",
@@ -35,7 +36,7 @@ var g = {
35
36
  implausibleInvoiceDate: "Enter an invoice date within the last 10 years, no more than 30 days from today.",
36
37
  implausibleDueDate: "Enter a due date within the last 10 years and next 5 years.",
37
38
  dueBeforeInvoiceDate: "Due date must be on or after the invoice date."
38
- }, _ = {
39
+ }, v = {
39
40
  paymentInstructionsValue: (e) => `Account ending in ${e}`,
40
41
  noMethod: "No payment method on file",
41
42
  paymentMethodLoading: "Loading payment method...",
@@ -45,13 +46,13 @@ var g = {
45
46
  pendingVendorDescription: "Will be created when submitted",
46
47
  pendingVendorIncompleteDescription: "Add the missing vendor details before submitting",
47
48
  bankAccountSaveFailed: "We could not save these payment instructions. Try again."
48
- }, v = {
49
+ }, y = {
49
50
  attachFailed: "We could not attach that file. Try again.",
50
51
  deleteFailed: "We could not remove that document. Try again.",
51
52
  noDocument: "No document attached to this bill.",
52
53
  pendingDeletionNotice: "This document will be removed when you save this bill.",
53
- preview: d
54
- }, y = {
54
+ preview: f
55
+ }, b = {
55
56
  ...r,
56
57
  notProvided: "Not provided",
57
58
  paymentInstructionsValue: (e) => `Account ending in ${e}`,
@@ -73,23 +74,24 @@ var g = {
73
74
  rejectedByOn: (e, t) => `Rejected by ${e} on ${t}`,
74
75
  rejectedOn: (e) => `Rejected on ${e}`,
75
76
  rejectionMessage: (e) => `"${e}"`
76
- }, b = {
77
+ }, x = {
77
78
  newTitle: "New bill",
78
79
  extractedTitle: (e) => `Bill from ${e}`,
79
80
  viewTitle: (e) => `Bill from ${e}`,
80
81
  readOnlyTitle: "Bill details",
81
82
  addedOn: (e) => `Added on ${e}`,
82
- unsavedChanges: h,
83
- discardChanges: m,
83
+ unsavedChanges: g,
84
+ discardChanges: h,
84
85
  scheduledRelativeDay: i,
86
+ dueDate: l,
85
87
  scheduledSummary: o,
86
88
  scheduledStatusBadge: a,
87
89
  awaitingApprovalNotice: e,
88
90
  awaitingApprovalUnknownNotice: t,
89
91
  actions: n,
90
- detail: y,
91
- history: u,
92
- approvalPolicyCopy: l,
92
+ detail: b,
93
+ history: d,
94
+ approvalPolicyCopy: u,
93
95
  deleteDraft: {
94
96
  menuItem: "Delete draft",
95
97
  dialog: {
@@ -104,52 +106,56 @@ var g = {
104
106
  noAccess: "You don't have access to GL codes",
105
107
  empty: "No GL codes set up yet"
106
108
  },
107
- rejectedBanner: p
109
+ rejectedBanner: m
108
110
  };
109
- function x(e) {
111
+ function S(e) {
110
112
  return {
111
- ...b,
113
+ ...x,
112
114
  ...e,
113
115
  actions: s(e?.actions),
114
116
  detail: {
115
- ...b.detail,
117
+ ...x.detail,
116
118
  ...e?.detail,
117
119
  paymentHistoryMethodLabels: c(e?.detail?.paymentHistoryMethodLabels)
118
120
  },
119
121
  history: {
120
- ...b.history,
122
+ ...x.history,
121
123
  ...e?.history
122
124
  },
123
125
  lineItemsGlCodeUnavailable: {
124
- ...b.lineItemsGlCodeUnavailable,
126
+ ...x.lineItemsGlCodeUnavailable,
125
127
  ...e?.lineItemsGlCodeUnavailable
126
128
  },
127
129
  unsavedChanges: {
128
- ...b.unsavedChanges,
130
+ ...x.unsavedChanges,
129
131
  ...e?.unsavedChanges
130
132
  },
131
133
  discardChanges: {
132
- ...b.discardChanges,
134
+ ...x.discardChanges,
133
135
  ...e?.discardChanges
134
136
  },
135
137
  rejectedBanner: {
136
- ...b.rejectedBanner,
138
+ ...x.rejectedBanner,
137
139
  ...e?.rejectedBanner
138
140
  },
139
141
  approvalPolicyCopy: {
140
- ...b.approvalPolicyCopy,
142
+ ...x.approvalPolicyCopy,
141
143
  ...e?.approvalPolicyCopy
142
144
  },
143
145
  scheduledRelativeDay: {
144
- ...b.scheduledRelativeDay,
146
+ ...x.scheduledRelativeDay,
145
147
  ...e?.scheduledRelativeDay
146
148
  },
149
+ dueDate: {
150
+ ...x.dueDate,
151
+ ...e?.dueDate
152
+ },
147
153
  deleteDraft: {
148
- ...b.deleteDraft,
154
+ ...x.deleteDraft,
149
155
  ...e?.deleteDraft,
150
156
  dialog: (() => {
151
157
  let t = {
152
- ...b.deleteDraft.dialog,
158
+ ...x.deleteDraft.dialog,
153
159
  ...e?.deleteDraft?.dialog
154
160
  };
155
161
  return delete t.reason, t;
@@ -157,7 +163,7 @@ function x(e) {
157
163
  }
158
164
  };
159
165
  }
160
- var S = {
166
+ var C = {
161
167
  createTitle: "New vendor details",
162
168
  editTitle: "Edit vendor",
163
169
  switchVendorFieldLabel: "Switch to a different vendor",
@@ -176,20 +182,20 @@ var S = {
176
182
  paymentInstructionsHeading: "Payment instructions",
177
183
  paymentInstructionsDescription: "How and where will the money be sent. This information is required to send a payment.",
178
184
  paymentInstructionsExtracted: "We read these from the bill. Check them before saving.",
179
- ach: f
185
+ ach: p
180
186
  };
181
- function C(e) {
187
+ function w(e) {
182
188
  return {
183
- ...S,
189
+ ...C,
184
190
  ...e,
185
191
  ach: {
186
- ...S.ach,
192
+ ...C.ach,
187
193
  ...e?.ach,
188
194
  fieldMarkers: {
189
- ...S.ach.fieldMarkers,
195
+ ...C.ach.fieldMarkers,
190
196
  ...e?.ach?.fieldMarkers
191
197
  }
192
198
  }
193
199
  };
194
200
  }
195
- export { g as BILL_CREATE_MESSAGE_LABELS_EN, y as BILL_DETAIL_VIEW_LABELS_EN, b as BILL_DIALOG_COPY_EN, v as SOURCE_DOCUMENT_CONTAINER_LABELS_EN, S as VENDOR_INLINE_FORM_LABELS_EN, _ as VENDOR_SECTION_PROPS_LABELS_EN, x as mergeBillDialogCopy, C as mergeVendorInlineFormLabels };
201
+ export { _ as BILL_CREATE_MESSAGE_LABELS_EN, b as BILL_DETAIL_VIEW_LABELS_EN, x as BILL_DIALOG_COPY_EN, y as SOURCE_DOCUMENT_CONTAINER_LABELS_EN, C as VENDOR_INLINE_FORM_LABELS_EN, v as VENDOR_SECTION_PROPS_LABELS_EN, S as mergeBillDialogCopy, w as mergeVendorInlineFormLabels };