@tesouro/embedded-components-react 0.11.234 → 0.11.236
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +53 -2
- package/dist/index.css +30 -0
- package/dist/index.d.ts +24 -0
- package/dist/lib/ReceivablesWidget.d.ts +24 -0
- package/dist/lib/WidgetSuite.d.ts +24 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index31.js +198 -118
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index32.js +76 -194
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index33.js +67 -75
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index34.js +111 -69
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index35.js +459 -108
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index36.js +101 -449
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index37.js +9 -117
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index38.js +85 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index39.js +67 -73
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index40.js +246 -71
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index41.js +40 -251
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index42.js +237 -38
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index43.js +21 -244
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index44.js +529 -21
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index45.js +4 -530
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index46.js +44 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index47.js +242 -41
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index48.js +3 -245
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index49.js +5 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index50.js +63 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index51.js +1 -64
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/BillsTab.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivablesWidget.js +386 -354
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/labels.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableActions.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableDetails.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableForm.js +260 -258
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablesWidget.js +219 -179
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index.js +26 -25
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index19.js +15 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index32.js +31 -40
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index33.js +18 -17
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index34.js +40 -8
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index35.js +30 -63
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index36.js +463 -27
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index37.js +15 -29
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index38.js +8 -18
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index39.js +18 -18
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index40.js +19 -30
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index41.js +15 -66
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index42.js +66 -391
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index43.js +148 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index44.js +173 -43
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index45.js +3 -71
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index46.js +37 -432
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index47.js +66 -188
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index48.js +455 -22
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index49.js +191 -5
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index50.js +23 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index51.js +5 -265
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index53.js +261 -125
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index54.js +2 -27
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index55.js +122 -230
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index56.js +27 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index57.js +216 -224
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index58.js +3 -30
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index59.js +228 -168
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index60.js +29 -21
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index61.js +152 -109
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index62.js +22 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index63.js +140 -43
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index64.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index65.js +47 -0
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/document-preview.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/document/documentPreview.js +122 -0
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/WidgetFrame/WidgetFrame.js +1 -1
- package/dist/packages/shared-ui-shadcn/dist/index.js +4584 -4551
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index52.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index52.js +0 -2
package/README.md
CHANGED
|
@@ -258,6 +258,57 @@ applicant's ad blocker, and shows a message asking them to allow it.
|
|
|
258
258
|
starts Alloy's SDK with the bank's configuration; finding one already on the
|
|
259
259
|
page, it shows that blocked message instead of reinitializing yours.
|
|
260
260
|
|
|
261
|
+
### Layout and overlays
|
|
262
|
+
|
|
263
|
+
The embedding contract binds new and migrated surfaces: use the container's
|
|
264
|
+
width and content-driven inline height unless the host supplies a height. To
|
|
265
|
+
constrain an inline widget, provide that height and its scroll container in
|
|
266
|
+
your layout. Shared modal dialogs and sheets use the viewport, trap focus and
|
|
267
|
+
lock page scroll while open. The shared primitives restore focus to their
|
|
268
|
+
opening control; a workflow that removes that control supplies its widget-root
|
|
269
|
+
fallback as part of its migration.
|
|
270
|
+
|
|
271
|
+
The following verified legacy gaps remain. This list is not an exhaustive
|
|
272
|
+
audit of every legacy widget against every embedding rule:
|
|
273
|
+
|
|
274
|
+
| Legacy flow | Current behavior | Migration owner |
|
|
275
|
+
| ----------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------- |
|
|
276
|
+
| Invoicing create/edit form and invoice details (2 surfaces) | Remain non-modal, so their focus, background scrolling and assistive-technology behavior does not yet meet the modal contract. | [FOPS-1800](https://tesouro.atlassian.net/browse/FOPS-1800) |
|
|
277
|
+
| Bill Pay upload status tray (1 surface) | Fixed UI still renders inline and can be captured by a host transform or clipping container. | [FOPS-1798](https://tesouro.atlassian.net/browse/FOPS-1798) |
|
|
278
|
+
| Invoicing customer picker (1 scroll path) | Its scrollIntoView call can move host ancestors. | [FOPS-1800](https://tesouro.atlassian.net/browse/FOPS-1800) |
|
|
279
|
+
| Bill Pay invalid-field navigation (1 scroll path) | Its scrollIntoView call can move host ancestors. | [FOPS-1798](https://tesouro.atlassian.net/browse/FOPS-1798) |
|
|
280
|
+
| Approval-policy draft-card navigation (1 scroll path) | Its scrollIntoView call in shared/approval-policy/feature/src/lib/useApprovalPolicyRules.ts can move host ancestors. | [FOPS-1812](https://tesouro.atlassian.net/browse/FOPS-1812) |
|
|
281
|
+
|
|
282
|
+
Shared dialog, sheet, menu and tooltip primitives portal into an isolation root
|
|
283
|
+
attached to `document.body`, so a host container's `overflow` or transform does
|
|
284
|
+
not clip those overlays. `WidgetFrame` isolates inline stacking. The overlay
|
|
285
|
+
root defaults to z-index `2147483000`. If your page has its own overlays, set
|
|
286
|
+
`--tesouro-embedded-overlay-z-index` on `:root` to place the entire widget
|
|
287
|
+
overlay stack in your page's order:
|
|
288
|
+
|
|
289
|
+
```css
|
|
290
|
+
:root {
|
|
291
|
+
--tesouro-embedded-overlay-z-index: 10000;
|
|
292
|
+
}
|
|
293
|
+
```
|
|
294
|
+
|
|
295
|
+
Within that root, the order is popovers, dialogs/sheets, confirmations, then
|
|
296
|
+
toasts. A modal's own menus and selects remain above it. Toasts use a separate
|
|
297
|
+
body root one layer above the dialog roots, including dialogs in sibling
|
|
298
|
+
widgets. Do not override individual overlay z-index values.
|
|
299
|
+
|
|
300
|
+
Place multiple widgets under one `RootWidgetProvider` (or
|
|
301
|
+
`RefreshingRootWidgetProvider`) to share configuration. Each widget still owns
|
|
302
|
+
its own body-level overlay root at the same z-index, so the popover, dialog and
|
|
303
|
+
confirmation order above holds within one widget; between sibling widgets, the
|
|
304
|
+
most recently attached root paints on top. Open one overlay at a time across
|
|
305
|
+
widgets. Widgets coordinate their built-in toast renderers so there is only one active
|
|
306
|
+
toaster per page. Do not add a separate Sonner toaster for widget notifications.
|
|
307
|
+
|
|
308
|
+
Shadow DOM is not supported. Widgets and their styles belong in the document's
|
|
309
|
+
light DOM, and portals always target a body-level root. There is no public API
|
|
310
|
+
to supply a different portal container.
|
|
311
|
+
|
|
261
312
|
### Theming
|
|
262
313
|
|
|
263
314
|
Widgets read their look from `--ttw-*` CSS variables. Set them on `:root`, or
|
|
@@ -761,7 +812,7 @@ Lists, creates, edits and acts on an organization's invoices, including sending
|
|
|
761
812
|
| `initialCounterpartId` | `string` | `undefined` | With `initialView: 'create'`, preselects this customer in that first create form only. Otherwise, opens the invoice list filtered to this customer, with a chip naming them. Clear all removes it. |
|
|
762
813
|
| `pageSizeOptions` | `number[]` | `[10, 25, 50, 100]` | Rows-per-page choices. The first page loads at the first choice, or `10` when the list is empty. |
|
|
763
814
|
| `onReceivableCreated` | `(id: string, type: ReceivableDocumentType) => void` | `undefined` | Called after a create succeeds. Not called for a duplicate. |
|
|
764
|
-
| `onReceivableOpened` | `(id: string, type: ReceivableDocumentType) => void` | `undefined` | Called when the user opens a row
|
|
815
|
+
| `onReceivableOpened` | `(id: string, type: ReceivableDocumentType) => void` | `undefined` | Called when the user opens a row, in its details or, for a draft, in the edit form. |
|
|
765
816
|
| `onTemplateSettingsClick` | `() => void` | `undefined` | Shows the invoice settings button at the top right, on the `headerStart` line, for users holding `organization_settings:write:org`, and calls this when it is clicked. |
|
|
766
817
|
| `headerStart` | `ReactNode` | `undefined` | Rendered above the tab row. It stays when an error or the disclosures gate replaces the tabs. The widget renders no heading of its own, so pass your page title here. |
|
|
767
818
|
| `selectedTab` | `InvoicingTabId` | `undefined` | The active tab: `'invoices'`, `'recurring'`, `'customers'` or `'products'`. Omit to let the widget track it, starting on Invoices. |
|
|
@@ -776,7 +827,7 @@ Lists, creates, edits and acts on an organization's invoices, including sending
|
|
|
776
827
|
| `filterLabels` | `InvoicesFilterLabelOverrides` | English labels | Invoice filter copy built from state: date presets, status descriptions and chip wording. |
|
|
777
828
|
| `formLabels` | `Partial<ReceivableFormDialogLabels>` | English labels | Create/edit form copy, including the unsaved-changes prompt; the save and issue buttons are in `messageLabels`. |
|
|
778
829
|
| `previewLabels` | `Partial<ReceivablePreviewLabels>` | English labels | Copy of the live invoice preview beside the create/edit form. |
|
|
779
|
-
| `detailsLabels` | `ReceivableDetailsPanelLabelOverrides` | English labels |
|
|
830
|
+
| `detailsLabels` | `ReceivableDetailsPanelLabelOverrides` | English labels | Copy of the invoice details, full screen and side panel. Status badge copy comes from `screenLabels.statusBadge`. |
|
|
780
831
|
| `auditHistoryLabels` | `Partial<ReceivableAuditHistoryLabels>` | English labels | Audit history row copy. Document and status names follow `messageLabels` and `screenLabels.statusBadge` unless overridden here. |
|
|
781
832
|
| `paymentLabels` | `Partial<ReceivablePaymentDialogLabels>` | English labels | Manual payment dialog copy. |
|
|
782
833
|
| `actionLabels` | `Partial<ReceivableActionDialogLabels>` | English labels | Confirmation dialog buttons; per-action titles come from `messageLabels`. |
|
package/dist/index.css
CHANGED
|
@@ -365,6 +365,9 @@
|
|
|
365
365
|
.ttw\:bottom-4 {
|
|
366
366
|
bottom: calc(var(--ttw-spacing) * 4);
|
|
367
367
|
}
|
|
368
|
+
.ttw\:bottom-6 {
|
|
369
|
+
bottom: calc(var(--ttw-spacing) * 6);
|
|
370
|
+
}
|
|
368
371
|
.ttw\:left-0 {
|
|
369
372
|
left: 0px;
|
|
370
373
|
}
|
|
@@ -410,6 +413,18 @@
|
|
|
410
413
|
.ttw\:z-\[1\] {
|
|
411
414
|
z-index: 1;
|
|
412
415
|
}
|
|
416
|
+
.ttw\:z-\[100\] {
|
|
417
|
+
z-index: 100;
|
|
418
|
+
}
|
|
419
|
+
.ttw\:z-\[101\] {
|
|
420
|
+
z-index: 101;
|
|
421
|
+
}
|
|
422
|
+
.ttw\:z-\[200\] {
|
|
423
|
+
z-index: 200;
|
|
424
|
+
}
|
|
425
|
+
.ttw\:z-\[201\] {
|
|
426
|
+
z-index: 201;
|
|
427
|
+
}
|
|
413
428
|
.ttw\:z-\[1300\] {
|
|
414
429
|
z-index: 1300;
|
|
415
430
|
}
|
|
@@ -446,6 +461,9 @@
|
|
|
446
461
|
.ttw\:mx-3\.5 {
|
|
447
462
|
margin-inline: calc(var(--ttw-spacing) * 3.5);
|
|
448
463
|
}
|
|
464
|
+
.ttw\:mx-8 {
|
|
465
|
+
margin-inline: calc(var(--ttw-spacing) * 8);
|
|
466
|
+
}
|
|
449
467
|
.ttw\:mx-auto {
|
|
450
468
|
margin-inline: auto;
|
|
451
469
|
}
|
|
@@ -512,6 +530,9 @@
|
|
|
512
530
|
.ttw\:mr-auto {
|
|
513
531
|
margin-right: auto;
|
|
514
532
|
}
|
|
533
|
+
.ttw\:-mb-4 {
|
|
534
|
+
margin-bottom: calc(var(--ttw-spacing) * -4);
|
|
535
|
+
}
|
|
515
536
|
.ttw\:-mb-px {
|
|
516
537
|
margin-bottom: -1px;
|
|
517
538
|
}
|
|
@@ -811,6 +832,9 @@
|
|
|
811
832
|
.ttw\:h-\[50px\] {
|
|
812
833
|
height: 50px;
|
|
813
834
|
}
|
|
835
|
+
.ttw\:h-\[70vh\] {
|
|
836
|
+
height: 70vh;
|
|
837
|
+
}
|
|
814
838
|
.ttw\:h-\[190px\] {
|
|
815
839
|
height: 190px;
|
|
816
840
|
}
|
|
@@ -6464,9 +6488,15 @@
|
|
|
6464
6488
|
.ttw\:lg\:grid {
|
|
6465
6489
|
display: grid;
|
|
6466
6490
|
}
|
|
6491
|
+
.ttw\:lg\:h-auto {
|
|
6492
|
+
height: auto;
|
|
6493
|
+
}
|
|
6467
6494
|
.ttw\:lg\:min-h-0 {
|
|
6468
6495
|
min-height: 0px;
|
|
6469
6496
|
}
|
|
6497
|
+
.ttw\:lg\:flex-1 {
|
|
6498
|
+
flex: 1;
|
|
6499
|
+
}
|
|
6470
6500
|
.ttw\:lg\:grid-cols-2 {
|
|
6471
6501
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
6472
6502
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -4537,6 +4537,10 @@ interface ReceivableFormDialogLabels extends ReceivableBillingSectionLabels, Rec
|
|
|
4537
4537
|
editTitle: string;
|
|
4538
4538
|
editDescription: string;
|
|
4539
4539
|
closeButton: string;
|
|
4540
|
+
/** The draft editor's header menu and its items. */
|
|
4541
|
+
moreActionsButton: string;
|
|
4542
|
+
duplicateButton: string;
|
|
4543
|
+
deleteButton: string;
|
|
4540
4544
|
dueDateLabel: string;
|
|
4541
4545
|
lineItemsHeading: string;
|
|
4542
4546
|
lineItemsDescription: string;
|
|
@@ -4621,6 +4625,24 @@ interface ReceivableDetailsPanelLabels {
|
|
|
4621
4625
|
moreActionsLabel: string;
|
|
4622
4626
|
viewPdfButton: string;
|
|
4623
4627
|
closeButton: string;
|
|
4628
|
+
/** The side panel's control that opens the full-screen view. */
|
|
4629
|
+
expandButton: string;
|
|
4630
|
+
/** The full-screen view's control that hands back to the side panel. */
|
|
4631
|
+
collapseButton: string;
|
|
4632
|
+
/** Names the full-screen view's scrollable PDF pane. */
|
|
4633
|
+
documentPaneRegion: string;
|
|
4634
|
+
downloadPdfButton: string;
|
|
4635
|
+
/** Shown in the PDF pane while the invoice has no PDF to show. */
|
|
4636
|
+
pdfUnavailable: string;
|
|
4637
|
+
/** Names the scrollable PDF pages inside the pane. */
|
|
4638
|
+
pdfPagesRegion: string;
|
|
4639
|
+
/** Shown, with a link out, when the PDF cannot render in the pane. */
|
|
4640
|
+
pdfPreviewFailed: string;
|
|
4641
|
+
openPdfButton: string;
|
|
4642
|
+
lineItemsDescriptionColumn: string;
|
|
4643
|
+
lineItemsQuantityColumn: string;
|
|
4644
|
+
lineItemsPriceColumn: string;
|
|
4645
|
+
lineItemsAmountColumn: string;
|
|
4624
4646
|
invoiceDateCaption: string;
|
|
4625
4647
|
paymentHistoryHeading: string;
|
|
4626
4648
|
paymentHistoryEmpty: string;
|
|
@@ -4964,6 +4986,8 @@ interface ReceivableMessageLabels {
|
|
|
4964
4986
|
cancelConfirm: string;
|
|
4965
4987
|
cancelSucceeded: string;
|
|
4966
4988
|
cloneSuccess: string;
|
|
4989
|
+
/** Duplicating from the draft editor copies the saved draft, so unsaved edits block it. */
|
|
4990
|
+
cloneUnsavedChanges: string;
|
|
4967
4991
|
cloneError: string;
|
|
4968
4992
|
deleteTitle: string;
|
|
4969
4993
|
/** `{number}` is replaced with the invoice number. */
|
|
@@ -1161,6 +1161,10 @@ interface ReceivableFormDialogLabels extends ReceivableBillingSectionLabels, Rec
|
|
|
1161
1161
|
editTitle: string;
|
|
1162
1162
|
editDescription: string;
|
|
1163
1163
|
closeButton: string;
|
|
1164
|
+
/** The draft editor's header menu and its items. */
|
|
1165
|
+
moreActionsButton: string;
|
|
1166
|
+
duplicateButton: string;
|
|
1167
|
+
deleteButton: string;
|
|
1164
1168
|
dueDateLabel: string;
|
|
1165
1169
|
lineItemsHeading: string;
|
|
1166
1170
|
lineItemsDescription: string;
|
|
@@ -1245,6 +1249,24 @@ interface ReceivableDetailsPanelLabels {
|
|
|
1245
1249
|
moreActionsLabel: string;
|
|
1246
1250
|
viewPdfButton: string;
|
|
1247
1251
|
closeButton: string;
|
|
1252
|
+
/** The side panel's control that opens the full-screen view. */
|
|
1253
|
+
expandButton: string;
|
|
1254
|
+
/** The full-screen view's control that hands back to the side panel. */
|
|
1255
|
+
collapseButton: string;
|
|
1256
|
+
/** Names the full-screen view's scrollable PDF pane. */
|
|
1257
|
+
documentPaneRegion: string;
|
|
1258
|
+
downloadPdfButton: string;
|
|
1259
|
+
/** Shown in the PDF pane while the invoice has no PDF to show. */
|
|
1260
|
+
pdfUnavailable: string;
|
|
1261
|
+
/** Names the scrollable PDF pages inside the pane. */
|
|
1262
|
+
pdfPagesRegion: string;
|
|
1263
|
+
/** Shown, with a link out, when the PDF cannot render in the pane. */
|
|
1264
|
+
pdfPreviewFailed: string;
|
|
1265
|
+
openPdfButton: string;
|
|
1266
|
+
lineItemsDescriptionColumn: string;
|
|
1267
|
+
lineItemsQuantityColumn: string;
|
|
1268
|
+
lineItemsPriceColumn: string;
|
|
1269
|
+
lineItemsAmountColumn: string;
|
|
1248
1270
|
invoiceDateCaption: string;
|
|
1249
1271
|
paymentHistoryHeading: string;
|
|
1250
1272
|
paymentHistoryEmpty: string;
|
|
@@ -1588,6 +1610,8 @@ interface ReceivableMessageLabels {
|
|
|
1588
1610
|
cancelConfirm: string;
|
|
1589
1611
|
cancelSucceeded: string;
|
|
1590
1612
|
cloneSuccess: string;
|
|
1613
|
+
/** Duplicating from the draft editor copies the saved draft, so unsaved edits block it. */
|
|
1614
|
+
cloneUnsavedChanges: string;
|
|
1591
1615
|
cloneError: string;
|
|
1592
1616
|
deleteTitle: string;
|
|
1593
1617
|
/** `{number}` is replaced with the invoice number. */
|
|
@@ -3420,6 +3420,10 @@ interface ReceivableFormDialogLabels extends ReceivableBillingSectionLabels, Rec
|
|
|
3420
3420
|
editTitle: string;
|
|
3421
3421
|
editDescription: string;
|
|
3422
3422
|
closeButton: string;
|
|
3423
|
+
/** The draft editor's header menu and its items. */
|
|
3424
|
+
moreActionsButton: string;
|
|
3425
|
+
duplicateButton: string;
|
|
3426
|
+
deleteButton: string;
|
|
3423
3427
|
dueDateLabel: string;
|
|
3424
3428
|
lineItemsHeading: string;
|
|
3425
3429
|
lineItemsDescription: string;
|
|
@@ -3502,6 +3506,24 @@ interface ReceivableDetailsPanelLabels {
|
|
|
3502
3506
|
moreActionsLabel: string;
|
|
3503
3507
|
viewPdfButton: string;
|
|
3504
3508
|
closeButton: string;
|
|
3509
|
+
/** The side panel's control that opens the full-screen view. */
|
|
3510
|
+
expandButton: string;
|
|
3511
|
+
/** The full-screen view's control that hands back to the side panel. */
|
|
3512
|
+
collapseButton: string;
|
|
3513
|
+
/** Names the full-screen view's scrollable PDF pane. */
|
|
3514
|
+
documentPaneRegion: string;
|
|
3515
|
+
downloadPdfButton: string;
|
|
3516
|
+
/** Shown in the PDF pane while the invoice has no PDF to show. */
|
|
3517
|
+
pdfUnavailable: string;
|
|
3518
|
+
/** Names the scrollable PDF pages inside the pane. */
|
|
3519
|
+
pdfPagesRegion: string;
|
|
3520
|
+
/** Shown, with a link out, when the PDF cannot render in the pane. */
|
|
3521
|
+
pdfPreviewFailed: string;
|
|
3522
|
+
openPdfButton: string;
|
|
3523
|
+
lineItemsDescriptionColumn: string;
|
|
3524
|
+
lineItemsQuantityColumn: string;
|
|
3525
|
+
lineItemsPriceColumn: string;
|
|
3526
|
+
lineItemsAmountColumn: string;
|
|
3505
3527
|
invoiceDateCaption: string;
|
|
3506
3528
|
paymentHistoryHeading: string;
|
|
3507
3529
|
paymentHistoryEmpty: string;
|
|
@@ -3845,6 +3867,8 @@ interface ReceivableMessageLabels {
|
|
|
3845
3867
|
cancelConfirm: string;
|
|
3846
3868
|
cancelSucceeded: string;
|
|
3847
3869
|
cloneSuccess: string;
|
|
3870
|
+
/** Duplicating from the draft editor copies the saved draft, so unsaved edits block it. */
|
|
3871
|
+
cloneUnsavedChanges: string;
|
|
3848
3872
|
cloneError: string;
|
|
3849
3873
|
deleteTitle: string;
|
|
3850
3874
|
/** `{number}` is replaced with the invoice number. */
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "./index27.js";
|
|
2
|
-
import "./
|
|
3
|
-
import "./
|
|
4
|
-
import "./
|
|
2
|
+
import "./index31.js";
|
|
3
|
+
import "./index40.js";
|
|
4
|
+
import "./index42.js";
|
|
5
|
+
import "./index44.js";
|
|
5
6
|
import "./index45.js";
|
|
6
7
|
import "./index46.js";
|
|
7
8
|
import "./index47.js";
|
|
8
9
|
import "./index48.js";
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
import "./index52.js";
|
|
10
|
+
export { BillDetailsWidget, BillDialogWidget } from "./index50.js";
|
|
11
|
+
import "./index51.js";
|
|
@@ -1,122 +1,202 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import "
|
|
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";
|
|
3
|
+
import "../../../util/dist/index.js";
|
|
4
|
+
import { ACH_FIELD_GROUP_LABELS_EN as u } from "../../../../shared/counterpart-management/ui/dist/index2.js";
|
|
5
|
+
import "../../../../shared/counterpart-management/ui/dist/index.js";
|
|
6
|
+
import { APPROVAL_POLICY_RULE_COPY_EN as d } from "./index10.js";
|
|
7
|
+
import { PAYABLE_AUDIT_HISTORY_LABELS_EN as f } from "./index30.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";
|
|
11
|
+
import "../../ui/dist/index.js";
|
|
12
|
+
import { DOCUMENT_PREVIEW_LABELS_EN as g } from "../../../../shared/feature/dist/lib/document/documentPreview.js";
|
|
13
|
+
import "../../../../shared/feature/dist/document-preview.js";
|
|
6
14
|
// ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index31.js
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
15
|
+
var _ = {
|
|
16
|
+
unmappedValidationError: (e, t) => `${e}: ${t}`,
|
|
17
|
+
unknownValidationField: "(unknown field)",
|
|
18
|
+
requiredField: "This field is required.",
|
|
19
|
+
saveFailed: "We could not save this bill. Try again.",
|
|
20
|
+
saveRejected: (e) => `We could not save this bill. ${e}`,
|
|
21
|
+
discountTaxBlockedByLineItems: "Discount and Tax can't be saved on a bill with line items. Remove them, then save again.",
|
|
22
|
+
vendorResolutionFailed: "We couldn't create this vendor automatically. Select or add a vendor before submitting.",
|
|
23
|
+
finalizeFailed: "We could not submit this bill. Try again.",
|
|
24
|
+
draftSaved: "Bill saved as a draft.",
|
|
25
|
+
submittedSaved: "Bill updated.",
|
|
26
|
+
submittedDemoted: "Bill updated. It moved back to Drafts because some required details are missing.",
|
|
27
|
+
billFinalized: "Bill submitted for approval.",
|
|
28
|
+
numbersOnly: "Enter numbers only.",
|
|
29
|
+
unreadableMoney: "Enter a valid amount.",
|
|
30
|
+
unusableQuantity: "Enter a quantity greater than 0.",
|
|
31
|
+
lineItemsNeedAttention: "Check the highlighted line items before saving.",
|
|
32
|
+
unreadableDiscount: "Enter a valid discount amount.",
|
|
33
|
+
unreadableTax: "Enter a valid tax amount.",
|
|
34
|
+
unreadableTotal: "Enter a valid total amount.",
|
|
35
|
+
totalNotGreaterThanZero: "Total amount must be greater than $0.",
|
|
36
|
+
poNumberTooLong: "PO number must be 255 characters or fewer.",
|
|
37
|
+
implausibleInvoiceDate: "Enter an invoice date within the last 10 years, no more than 30 days from today.",
|
|
38
|
+
implausibleDueDate: "Enter a due date within the last 10 years and next 5 years.",
|
|
39
|
+
dueBeforeInvoiceDate: "Due date must be on or after the invoice date."
|
|
40
|
+
}, v = {
|
|
41
|
+
paymentInstructionsValue: (e) => `Account ending in ${e}`,
|
|
42
|
+
noMethod: "No payment method on file",
|
|
43
|
+
paymentMethodLoading: "Loading payment method...",
|
|
44
|
+
paymentMethodUnavailable: "We could not load payment methods. Try again.",
|
|
45
|
+
searchFailed: "We could not load vendors. Try again.",
|
|
46
|
+
vendorDetailsFailed: "We could not load this vendor. Try again.",
|
|
47
|
+
pendingVendorDescription: "Will be created when submitted",
|
|
48
|
+
pendingVendorIncompleteDescription: "Add the missing vendor details before submitting",
|
|
49
|
+
bankAccountSaveFailed: "We could not save these payment instructions. Try again."
|
|
50
|
+
}, y = {
|
|
51
|
+
attachFailed: "We could not attach that file. Try again.",
|
|
52
|
+
deleteFailed: "We could not remove that document. Try again.",
|
|
53
|
+
noDocument: "No document attached to this bill.",
|
|
54
|
+
pendingDeletionNotice: "This document will be removed when you save this bill.",
|
|
55
|
+
preview: g
|
|
56
|
+
}, b = {
|
|
57
|
+
...r,
|
|
58
|
+
notProvided: "Not provided",
|
|
59
|
+
paymentInstructionsValue: (e) => `Account ending in ${e}`,
|
|
60
|
+
paymentInstructionsNotSet: "Not set",
|
|
61
|
+
invoiceDateRow: "Invoice date",
|
|
62
|
+
dueDateRow: "Due date",
|
|
63
|
+
invoiceNumberRow: "Invoice number",
|
|
64
|
+
glCodeMissing: "GL code not specified",
|
|
65
|
+
glCodeUnavailable: "GL code unavailable",
|
|
66
|
+
qtyPriceValue: (e, t) => `${e} x ${t}`,
|
|
67
|
+
qtyOnlyValue: (e) => e,
|
|
68
|
+
subtotalRow: "Subtotal",
|
|
69
|
+
taxRow: "Tax",
|
|
70
|
+
discountRow: "Discounts",
|
|
71
|
+
totalRow: "Total",
|
|
72
|
+
paidOnLabel: (e) => `Paid on ${e}`,
|
|
73
|
+
paymentInstructionsSaveError: "Couldn't save payment instructions. Try again.",
|
|
74
|
+
paymentInstructionsLinkError: "Payment instructions were saved to the vendor, but couldn't be added to this bill. Try again.",
|
|
75
|
+
rejectedByOn: (e, t) => `Rejected by ${e} on ${t}`,
|
|
76
|
+
rejectedOn: (e) => `Rejected on ${e}`,
|
|
77
|
+
rejectionMessage: (e) => `"${e}"`
|
|
78
|
+
}, x = {
|
|
79
|
+
newTitle: "New bill",
|
|
80
|
+
extractedTitle: (e) => `Bill from ${e}`,
|
|
81
|
+
viewTitle: (e) => `Bill from ${e}`,
|
|
82
|
+
readOnlyTitle: "Bill details",
|
|
83
|
+
addedOn: (e) => `Added on ${e}`,
|
|
84
|
+
unsavedChanges: h,
|
|
85
|
+
discardChanges: m,
|
|
86
|
+
scheduledRelativeDay: i,
|
|
87
|
+
dueDate: l,
|
|
88
|
+
scheduledSummary: o,
|
|
89
|
+
scheduledStatusBadge: a,
|
|
90
|
+
awaitingApprovalNotice: e,
|
|
91
|
+
awaitingApprovalUnknownNotice: t,
|
|
92
|
+
actions: n,
|
|
93
|
+
detail: b,
|
|
94
|
+
history: f,
|
|
95
|
+
approvalPolicyCopy: d,
|
|
96
|
+
deleteDraft: {
|
|
97
|
+
menuItem: "Delete draft",
|
|
98
|
+
dialog: {
|
|
99
|
+
title: "Delete this draft?",
|
|
100
|
+
description: "The draft and anything entered on it are removed. This can't be undone.",
|
|
101
|
+
confirmButton: "Delete draft"
|
|
102
|
+
},
|
|
103
|
+
error: "Couldn't delete this draft. Try again."
|
|
104
|
+
},
|
|
105
|
+
lineItemsGlCodeUnavailable: {
|
|
106
|
+
loadError: "Couldn't load GL codes",
|
|
107
|
+
noAccess: "You don't have access to GL codes",
|
|
108
|
+
empty: "No GL codes set up yet"
|
|
109
|
+
},
|
|
110
|
+
rejectedBanner: p
|
|
111
|
+
};
|
|
112
|
+
function S(e) {
|
|
113
|
+
return {
|
|
114
|
+
...x,
|
|
115
|
+
...e,
|
|
116
|
+
actions: s(e?.actions),
|
|
117
|
+
detail: {
|
|
118
|
+
...x.detail,
|
|
119
|
+
...e?.detail,
|
|
120
|
+
paymentHistoryMethodLabels: c(e?.detail?.paymentHistoryMethodLabels)
|
|
121
|
+
},
|
|
122
|
+
history: {
|
|
123
|
+
...x.history,
|
|
124
|
+
...e?.history
|
|
125
|
+
},
|
|
126
|
+
lineItemsGlCodeUnavailable: {
|
|
127
|
+
...x.lineItemsGlCodeUnavailable,
|
|
128
|
+
...e?.lineItemsGlCodeUnavailable
|
|
129
|
+
},
|
|
130
|
+
unsavedChanges: {
|
|
131
|
+
...x.unsavedChanges,
|
|
132
|
+
...e?.unsavedChanges
|
|
133
|
+
},
|
|
134
|
+
discardChanges: {
|
|
135
|
+
...x.discardChanges,
|
|
136
|
+
...e?.discardChanges
|
|
137
|
+
},
|
|
138
|
+
rejectedBanner: {
|
|
139
|
+
...x.rejectedBanner,
|
|
140
|
+
...e?.rejectedBanner
|
|
141
|
+
},
|
|
142
|
+
approvalPolicyCopy: {
|
|
143
|
+
...x.approvalPolicyCopy,
|
|
144
|
+
...e?.approvalPolicyCopy
|
|
145
|
+
},
|
|
146
|
+
scheduledRelativeDay: {
|
|
147
|
+
...x.scheduledRelativeDay,
|
|
148
|
+
...e?.scheduledRelativeDay
|
|
149
|
+
},
|
|
150
|
+
dueDate: {
|
|
151
|
+
...x.dueDate,
|
|
152
|
+
...e?.dueDate
|
|
153
|
+
},
|
|
154
|
+
deleteDraft: {
|
|
155
|
+
...x.deleteDraft,
|
|
156
|
+
...e?.deleteDraft,
|
|
157
|
+
dialog: (() => {
|
|
158
|
+
let t = {
|
|
159
|
+
...x.deleteDraft.dialog,
|
|
160
|
+
...e?.deleteDraft?.dialog
|
|
161
|
+
};
|
|
162
|
+
return delete t.reason, t;
|
|
163
|
+
})()
|
|
164
|
+
}
|
|
165
|
+
};
|
|
104
166
|
}
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
167
|
+
var C = {
|
|
168
|
+
createTitle: "New vendor details",
|
|
169
|
+
editTitle: "Edit vendor",
|
|
170
|
+
switchVendorFieldLabel: "Switch to a different vendor",
|
|
171
|
+
vendorFieldLabel: "Vendor",
|
|
172
|
+
newVendorBadge: "New vendor",
|
|
173
|
+
unmatchedVendorHelper: "We couldn't match this vendor to your list. Search to choose an existing vendor, or finish adding a new one below.",
|
|
174
|
+
resultsHeading: "Your vendors",
|
|
175
|
+
addAsNewVendor: (e) => `Add "${e}" as a new vendor`,
|
|
176
|
+
addAsNewVendorDescription: "Uses the details extracted from this bill",
|
|
177
|
+
fieldsNeedAttention: (e) => `${e} ${e === 1 ? "field needs" : "fields need"} attention`,
|
|
178
|
+
nameLabel: "Business name",
|
|
179
|
+
cancel: "Cancel",
|
|
180
|
+
save: "Save",
|
|
181
|
+
cancelAriaLabel: "Cancel vendor",
|
|
182
|
+
saveAriaLabel: "Save vendor",
|
|
183
|
+
paymentInstructionsHeading: "Payment instructions",
|
|
184
|
+
paymentInstructionsDescription: "How and where will the money be sent. This information is required to send a payment.",
|
|
185
|
+
paymentInstructionsExtracted: "We read these from the bill. Check them before saving.",
|
|
186
|
+
ach: u
|
|
187
|
+
};
|
|
188
|
+
function w(e) {
|
|
189
|
+
return {
|
|
190
|
+
...C,
|
|
191
|
+
...e,
|
|
192
|
+
ach: {
|
|
193
|
+
...C.ach,
|
|
194
|
+
...e?.ach,
|
|
195
|
+
fieldMarkers: {
|
|
196
|
+
...C.ach.fieldMarkers,
|
|
197
|
+
...e?.ach?.fieldMarkers
|
|
198
|
+
}
|
|
199
|
+
}
|
|
109
200
|
};
|
|
110
|
-
return e.mimetype === "application/pdf" ? /* @__PURE__ */ i(f, {
|
|
111
|
-
url: e.url,
|
|
112
|
-
labels: n
|
|
113
|
-
}) : e.mimetype.startsWith("image/") ? /* @__PURE__ */ i("img", {
|
|
114
|
-
src: e.url,
|
|
115
|
-
alt: e.name,
|
|
116
|
-
className: "ttw:max-h-full ttw:max-w-full ttw:object-contain"
|
|
117
|
-
}) : /* @__PURE__ */ i(d, {
|
|
118
|
-
url: e.url,
|
|
119
|
-
labels: n
|
|
120
|
-
});
|
|
121
201
|
}
|
|
122
|
-
export {
|
|
202
|
+
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 };
|