@tesouro/embedded-components-react 0.7.44 → 0.7.46

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 (108) hide show
  1. package/dist/index.d.ts +30 -39
  2. package/dist/lib/CounterpartsWidget.d.ts +29 -22
  3. package/dist/lib/CounterpartsWidgetPublic.d.ts +29 -22
  4. package/dist/lib/CustomersWidget.d.ts +29 -22
  5. package/dist/lib/LinkedAccountsWidget.d.ts +1 -0
  6. package/dist/lib/ReceivablesWidget.d.ts +1 -0
  7. package/dist/lib/WidgetSuite.d.ts +1 -0
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index24.js +12 -12
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index25.js +15 -15
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index42.js +9 -9
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index5.js +30 -30
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index14.js +3 -2
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index15.js +7 -6
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index33.js +3 -2
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index34.js +9 -8
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index37.js +5 -4
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index48.js +1 -1
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index49.js +1 -1
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index5.js +3 -2
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index16.js +40 -40
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index18.js +3 -2
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index2.js +1 -1
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index20.js +8 -7
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index3.js +1 -1
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index5.js +1 -1
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index6.js +1 -1
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +9 -13
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index12.js +7 -10
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index13.js +76 -11
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index15.js +1 -1
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +27 -9
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js +2 -76
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js +30 -0
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js +1 -1
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +5 -27
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +32 -2
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +2 -30
  38. package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index.js +1 -2
  39. package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/feature/dist/index8.js +36 -36
  40. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/viewModels.js +73 -77
  41. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index2.js +8 -25
  42. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index7.js +197 -208
  43. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivablesWidget.js +9 -9
  44. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/auditHistory/labels.js +2 -2
  45. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableDetails.js +1 -1
  46. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablesWidget.js +2 -2
  47. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index.js +22 -23
  48. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index14.js +10 -24
  49. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index25.js +53 -37
  50. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index26.js +21 -53
  51. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index27.js +8 -21
  52. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index28.js +77 -8
  53. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index29.js +31 -69
  54. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index30.js +17 -38
  55. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index31.js +40 -17
  56. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index32.js +26 -38
  57. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index33.js +18 -27
  58. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index34.js +8 -18
  59. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index35.js +35 -9
  60. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index36.js +14 -36
  61. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index37.js +26 -14
  62. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index38.js +84 -23
  63. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index39.js +487 -80
  64. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index40.js +2 -494
  65. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index41.js +48 -2
  66. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index42.js +62 -38
  67. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index43.js +438 -61
  68. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index44.js +207 -431
  69. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index45.js +20 -222
  70. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index46.js +6 -21
  71. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index48.js +265 -0
  72. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index49.js +2 -265
  73. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index50.js +131 -2
  74. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index51.js +22 -125
  75. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index52.js +235 -23
  76. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index53.js +3 -240
  77. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index54.js +249 -3
  78. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index55.js +54 -242
  79. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index56.js +221 -51
  80. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index57.js +38 -222
  81. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/lib/forms.js +2 -1
  82. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/lib/permissions.js +8 -7
  83. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/lib/useLinkedAccountsWidget.js +200 -191
  84. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/mocks/linkedAccounts.js +87 -79
  85. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index15.js +1 -0
  86. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index5.js +10 -0
  87. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +11 -10
  88. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/organization/useOrganizationQuery.js +24 -0
  89. package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index.js +8 -0
  90. package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index2.js +14 -0
  91. package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index3.js +13 -0
  92. package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index4.js +18 -0
  93. package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index5.js +2 -0
  94. package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index6.js +20 -0
  95. package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index7.js +32 -0
  96. package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index8.js +2 -0
  97. package/dist/libs/tesouro-embedded-components-react/{bill-pay-widget → shared/document-status}/util/dist/lib/derivePayableStatus.js +23 -10
  98. package/dist/libs/tesouro-embedded-components-react/shared/document-status/util/dist/lib/receivableFilledTone.js +22 -0
  99. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  100. package/package.json +1 -1
  101. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index14.js +0 -18
  102. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +0 -2
  103. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +0 -7
  104. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +0 -34
  105. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +0 -2
  106. package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index7.js +0 -25
  107. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index47.js +0 -8
  108. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index58.js +0 -45
@@ -20,15 +20,15 @@ import { ReceivableActionsModal as f } from "../../../../ui/dist/index9.js";
20
20
  import { ReceivableActionDialog as p } from "../../../../ui/dist/index15.js";
21
21
  import { ReceivableBankAccountSection as m } from "../../../../ui/dist/index16.js";
22
22
  import { ReceivableBillingSection as h } from "../../../../ui/dist/index21.js";
23
- import { ReceivableDetailsPanel as g } from "../../../../ui/dist/index40.js";
24
- import { ReceivableFormDialog as _ } from "../../../../ui/dist/index44.js";
25
- import { ReceivablePaymentDialog as v } from "../../../../ui/dist/index45.js";
26
- import { ReceivablePreview as y } from "../../../../ui/dist/index49.js";
27
- import { ReceivableRecurrenceEmailDialog as b } from "../../../../ui/dist/index51.js";
28
- import { ReceivableRecurrenceSection as x } from "../../../../ui/dist/index53.js";
29
- import { ReceivableRemindersSection as ee } from "../../../../ui/dist/index55.js";
30
- import { ReceivablesScreen as te } from "../../../../ui/dist/index57.js";
31
- import { UnsavedInvoiceDialog as ne } from "../../../../ui/dist/index58.js";
23
+ import { ReceivableDetailsPanel as g } from "../../../../ui/dist/index39.js";
24
+ import { ReceivableFormDialog as _ } from "../../../../ui/dist/index43.js";
25
+ import { ReceivablePaymentDialog as v } from "../../../../ui/dist/index44.js";
26
+ import { ReceivablePreview as y } from "../../../../ui/dist/index48.js";
27
+ import { ReceivableRecurrenceEmailDialog as b } from "../../../../ui/dist/index50.js";
28
+ import { ReceivableRecurrenceSection as x } from "../../../../ui/dist/index52.js";
29
+ import { ReceivableRemindersSection as ee } from "../../../../ui/dist/index54.js";
30
+ import { ReceivablesScreen as te } from "../../../../ui/dist/index56.js";
31
+ import { UnsavedInvoiceDialog as ne } from "../../../../ui/dist/index57.js";
32
32
  import "../../../../ui/dist/index.js";
33
33
  import { ReceivableAttachmentsSection as re } from "./ReceivableAttachmentsSection.js";
34
34
  import { ReceivableCustomerSection as ie } from "./ReceivableCustomerSection.js";
@@ -1,5 +1,5 @@
1
- import { RECEIVABLE_STATUS_BADGE_LABELS_EN as e } from "../../../../../ui/dist/index14.js";
2
- import "../../../../../ui/dist/index.js";
1
+ import { RECEIVABLE_STATUS_BADGE_LABELS_EN as e } from "../../../../../../shared/document-status/ui/dist/index6.js";
2
+ import "../../../../../../shared/document-status/ui/dist/index.js";
3
3
  import { formatDate as t, formatMoney as n, getDocumentTypeLabel as r } from "../helpers.js";
4
4
  import { RECEIVABLE_MESSAGE_LABELS_EN as i } from "../labels.js";
5
5
  //#region ../../libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/auditHistory/labels.js
@@ -9,7 +9,7 @@ import "../../../../../shared/data-access/dist/index.js";
9
9
  import { useWidgetConfig as r } from "../../../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
10
10
  import { useOrganizationUserNames as i } from "../../../../../shared/feature/dist/lib/user/useOrganizationUserNames.js";
11
11
  import "../../../../../shared/feature/dist/index.js";
12
- import { RECEIVABLE_DETAILS_SECTION as a } from "../../../../ui/dist/index28.js";
12
+ import { RECEIVABLE_DETAILS_SECTION as a } from "../../../../ui/dist/index27.js";
13
13
  import "../../../../ui/dist/index.js";
14
14
  import { useAllReceivableHistoryQuery as ee } from "../../../../data-access/dist/index4.js";
15
15
  import { usePaymentAccountsQuery as o } from "../../../../data-access/dist/index6.js";
@@ -7,8 +7,8 @@ import { Scope as t } from "../../../../../shared/data-access/dist/lib/scopes.js
7
7
  import "../../../../../shared/data-access/dist/index.js";
8
8
  import { useRefetchWidget as n, useWidgetConfig as r, useWidgetError as i, useWidgetInitStaleForToken as ee, useWidgetLoading as te } from "../../../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
9
9
  import "../../../../../shared/feature/dist/index.js";
10
- import { RECEIVABLE_STATUS_BADGE_LABELS_EN as ne } from "../../../../ui/dist/index14.js";
11
- import "../../../../ui/dist/index.js";
10
+ import { RECEIVABLE_STATUS_BADGE_LABELS_EN as ne } from "../../../../../shared/document-status/ui/dist/index6.js";
11
+ import "../../../../../shared/document-status/ui/dist/index.js";
12
12
  import { hasSelectedText as re } from "../../../../../shared/product-catalog/feature/dist/lib/helpers.js";
13
13
  import "../../../../../shared/product-catalog/feature/dist/index.js";
14
14
  import { getCreateFollowUp as ie } from "./actionsModal.js";
@@ -8,28 +8,27 @@ import "./index10.js";
8
8
  import "./index11.js";
9
9
  import "./index12.js";
10
10
  import "./index13.js";
11
- import { RECEIVABLE_STATUS_BADGE_LABELS_EN as r } from "./index14.js";
12
- import { ReceivableActionDialog as i } from "./index15.js";
13
- import { ReceivableBankAccountSection as a } from "./index16.js";
14
- import { ReceivableAttachmentsSection as o } from "./index17.js";
15
- import { RECEIVABLE_PAYMENT_TERMS_CUSTOM_DATE as s, RECEIVABLE_PAYMENT_TERMS_RECEIPT_DUE as c } from "./index20.js";
16
- import { ReceivableBillingSection as l } from "./index21.js";
11
+ import "./index14.js";
12
+ import { ReceivableActionDialog as r } from "./index15.js";
13
+ import { ReceivableBankAccountSection as i } from "./index16.js";
14
+ import { ReceivableAttachmentsSection as a } from "./index17.js";
15
+ import { RECEIVABLE_PAYMENT_TERMS_CUSTOM_DATE as o, RECEIVABLE_PAYMENT_TERMS_RECEIPT_DUE as s } from "./index20.js";
16
+ import { ReceivableBillingSection as c } from "./index21.js";
17
17
  import "./index22.js";
18
- import { ReceivableCustomerSection as u } from "./index23.js";
18
+ import { ReceivableCustomerSection as l } from "./index23.js";
19
19
  import "./index24.js";
20
- import "./index25.js";
21
- import { RECEIVABLE_DETAILS_SECTION as d } from "./index28.js";
22
- import { ReceivableDetailsPanel as f } from "./index40.js";
23
- import "./index41.js";
24
- import { ReceivableFormDialog as p } from "./index44.js";
25
- import { ReceivablePaymentDialog as m } from "./index45.js";
26
- import "./index46.js";
27
- import { ReceivablePreview as h } from "./index49.js";
28
- import "./index50.js";
29
- import { ReceivableRecurrenceEmailDialog as g } from "./index51.js";
30
- import { ReceivableRecurrenceSection as _ } from "./index53.js";
31
- import "./index54.js";
32
- import { ReceivableRemindersSection as v } from "./index55.js";
33
- import { ReceivablesScreen as y } from "./index57.js";
34
- import { UnsavedInvoiceDialog as b } from "./index58.js";
35
- export { t as InvoicesFilterBar, e as InvoicesFilterField, d as RECEIVABLE_DETAILS_SECTION, s as RECEIVABLE_PAYMENT_TERMS_CUSTOM_DATE, c as RECEIVABLE_PAYMENT_TERMS_RECEIPT_DUE, r as RECEIVABLE_STATUS_BADGE_LABELS_EN, i as ReceivableActionDialog, n as ReceivableActionsModal, o as ReceivableAttachmentsSection, a as ReceivableBankAccountSection, l as ReceivableBillingSection, u as ReceivableCustomerSection, f as ReceivableDetailsPanel, p as ReceivableFormDialog, m as ReceivablePaymentDialog, h as ReceivablePreview, g as ReceivableRecurrenceEmailDialog, _ as ReceivableRecurrenceSection, v as ReceivableRemindersSection, y as ReceivablesScreen, b as UnsavedInvoiceDialog };
20
+ import { RECEIVABLE_DETAILS_SECTION as u } from "./index27.js";
21
+ import { ReceivableDetailsPanel as d } from "./index39.js";
22
+ import "./index40.js";
23
+ import { ReceivableFormDialog as f } from "./index43.js";
24
+ import { ReceivablePaymentDialog as p } from "./index44.js";
25
+ import "./index45.js";
26
+ import { ReceivablePreview as m } from "./index48.js";
27
+ import "./index49.js";
28
+ import { ReceivableRecurrenceEmailDialog as h } from "./index50.js";
29
+ import { ReceivableRecurrenceSection as g } from "./index52.js";
30
+ import "./index53.js";
31
+ import { ReceivableRemindersSection as _ } from "./index54.js";
32
+ import { ReceivablesScreen as v } from "./index56.js";
33
+ import { UnsavedInvoiceDialog as y } from "./index57.js";
34
+ export { t as InvoicesFilterBar, e as InvoicesFilterField, u as RECEIVABLE_DETAILS_SECTION, o as RECEIVABLE_PAYMENT_TERMS_CUSTOM_DATE, s as RECEIVABLE_PAYMENT_TERMS_RECEIPT_DUE, r as ReceivableActionDialog, n as ReceivableActionsModal, a as ReceivableAttachmentsSection, i as ReceivableBankAccountSection, c as ReceivableBillingSection, l as ReceivableCustomerSection, d as ReceivableDetailsPanel, f as ReceivableFormDialog, p as ReceivablePaymentDialog, m as ReceivablePreview, h as ReceivableRecurrenceEmailDialog, g as ReceivableRecurrenceSection, _ as ReceivableRemindersSection, v as ReceivablesScreen, y as UnsavedInvoiceDialog };
@@ -1,24 +1,10 @@
1
- import { RECEIVABLE_BILLING_SECTION_LABELS_EN as e } from "./index11.js";
2
- import { RECEIVABLE_CUSTOMER_SECTION_LABELS_EN as t } from "./index12.js";
3
- import { RECEIVABLE_RECURRENCE_EMAIL_DIALOG_LABELS_EN as n, RECEIVABLE_RECURRENCE_SECTION_LABELS_EN as r } from "./index13.js";
1
+ import { RECEIVABLE_STATUS_BADGE_LABELS_EN as e } from "../../../shared/document-status/ui/dist/index6.js";
2
+ import "../../../shared/document-status/ui/dist/index.js";
3
+ import { RECEIVABLE_BILLING_SECTION_LABELS_EN as t } from "./index11.js";
4
+ import { RECEIVABLE_CUSTOMER_SECTION_LABELS_EN as n } from "./index12.js";
5
+ import { RECEIVABLE_RECURRENCE_EMAIL_DIALOG_LABELS_EN as r, RECEIVABLE_RECURRENCE_SECTION_LABELS_EN as i } from "./index13.js";
4
6
  //#region ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index14.js
5
- var i = {
6
- draft: "Draft",
7
- issuing: "Issuing",
8
- issued: "Issued",
9
- failed: "Failed",
10
- accepted: "Accepted",
11
- expired: "Expired",
12
- declined: "Declined",
13
- recurring: "Recurring",
14
- partially_paid: "Partially paid",
15
- paid: "Paid",
16
- overdue: "Overdue",
17
- uncollectible: "Uncollectible",
18
- canceled: "Canceled",
19
- deleted: "Deleted",
20
- unknown: "Unknown"
21
- }, a = { all: "All invoices" }, o = {
7
+ var a = { all: "All invoices" }, o = {
22
8
  createInvoiceButton: "Create Invoice",
23
9
  settingsButton: "Invoice settings",
24
10
  bankAttributionPrefix: "Business Banking provided by",
@@ -43,7 +29,7 @@ var i = {
43
29
  errorRetry: "Reload",
44
30
  accessRestrictedTitle: "Access Restricted",
45
31
  accessRestrictedDescription: "You don’t have permissions to view this page. Contact your system administrator for details.",
46
- statusBadge: i
32
+ statusBadge: e
47
33
  }, s = {
48
34
  unsavedTitle: "Save this invoice as a draft?",
49
35
  unsavedDescription: "This invoice has changes that have not been saved. Save it as a draft to finish later, or discard the changes.",
@@ -51,10 +37,10 @@ var i = {
51
37
  unsavedSaveDraftButton: "Save as draft",
52
38
  unsavedCloseButton: "Close"
53
39
  }, c = {
54
- ...e,
55
40
  ...t,
56
- ...r,
57
41
  ...n,
42
+ ...i,
43
+ ...r,
58
44
  ...s,
59
45
  createTitle: "Create invoice",
60
46
  createDescription: "Create and issue an invoice to your customers",
@@ -216,4 +202,4 @@ var i = {
216
202
  commentPlaceholder: "Add a comment"
217
203
  };
218
204
  //#endregion
219
- export { o as RECEIVABLES_SCREEN_LABELS_EN, d as RECEIVABLE_ACTION_DIALOG_LABELS_EN, l as RECEIVABLE_DETAILS_PANEL_LABELS_EN, c as RECEIVABLE_FORM_DIALOG_LABELS_EN, u as RECEIVABLE_PAYMENT_DIALOG_LABELS_EN, i as RECEIVABLE_STATUS_BADGE_LABELS_EN, a as RECEIVABLE_STATUS_CARDS_LABELS_EN, s as UNSAVED_INVOICE_DIALOG_LABELS_EN };
205
+ export { o as RECEIVABLES_SCREEN_LABELS_EN, d as RECEIVABLE_ACTION_DIALOG_LABELS_EN, l as RECEIVABLE_DETAILS_PANEL_LABELS_EN, c as RECEIVABLE_FORM_DIALOG_LABELS_EN, u as RECEIVABLE_PAYMENT_DIALOG_LABELS_EN, a as RECEIVABLE_STATUS_CARDS_LABELS_EN, s as UNSAVED_INVOICE_DIALOG_LABELS_EN };
@@ -1,39 +1,55 @@
1
- import { Badge as e, cn as t } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { RECEIVABLE_STATUS_BADGE_LABELS_EN as n } from "./index14.js";
3
- import { jsxs as r } from "react/jsx-runtime";
1
+ import { Ban as e, CalendarX2 as t, Check as n, ChevronsRight as r, CircleCheck as i, CircleOff as a, CircleX as o, ClipboardCheck as s, Clock as c, CopyPlus as l, FileCheck as u, Mail as d, Pause as f, PenTool as p, Pencil as m, Play as h, Send as g, Trash2 as _ } from "lucide-react";
4
2
  //#region ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index25.js
5
- var i = {
6
- danger: "ttw:border-red-200 ttw:bg-red-50 ttw:text-red-700 ttw:hover:bg-red-50",
7
- info: "ttw:border-blue-200 ttw:bg-blue-50 ttw:text-blue-700 ttw:hover:bg-blue-50",
8
- neutral: "ttw:border-border ttw:bg-muted ttw:text-foreground ttw:hover:bg-muted",
9
- success: "ttw:border-emerald-200 ttw:bg-emerald-50 ttw:text-emerald-700 ttw:hover:bg-emerald-50",
10
- warning: "ttw:border-amber-200 ttw:bg-amber-50 ttw:text-amber-800 ttw:hover:bg-amber-50"
11
- }, a = "ttw:bg-muted ttw:text-muted-foreground", o = "ttw:bg-destructive/10 ttw:text-destructive", s = {
12
- draft: a,
13
- recurring: a,
14
- issuing: "ttw:bg-cyan-100 ttw:text-cyan-700",
15
- issued: "ttw:bg-cyan-100 ttw:text-cyan-700",
16
- accepted: "ttw:bg-green-100 ttw:text-green-700",
17
- paid: "ttw:bg-green-100 ttw:text-green-700",
18
- partially_paid: "ttw:bg-purple-100 ttw:text-purple-700",
19
- overdue: "ttw:bg-orange-100 ttw:text-orange-700",
20
- failed: o,
21
- expired: o,
22
- uncollectible: o,
23
- canceled: o,
24
- declined: o,
25
- deleted: o
26
- };
27
- function c({ status: o, label: c, tone: l = "neutral", variant: u = "outline", labels: d, icon: f }) {
28
- let p = {
29
- ...n,
30
- ...d
31
- }, m = c ?? p[o] ?? p.unknown;
32
- return /* @__PURE__ */ r(e, {
33
- variant: "outline",
34
- className: t(f && "ttw:gap-1", u === "filled" ? ["ttw:border-transparent", s[o ?? ""] ?? a] : i[l]),
35
- children: [f, m]
36
- });
37
- }
3
+ var v = {
4
+ edit: "editButton",
5
+ issue: "issueButton",
6
+ issueAndSend: "issueAndSendButton",
7
+ recordPayment: "recordPaymentButton",
8
+ send: "sendButton",
9
+ accept: "acceptButton",
10
+ decline: "declineButton",
11
+ markPaid: "markPaidButton",
12
+ markUncollectible: "markUncollectibleButton",
13
+ cancel: "cancelButton",
14
+ clone: "cloneButton",
15
+ delete: "deleteButton",
16
+ pauseRecurrence: "pauseRecurrenceButton",
17
+ resumeRecurrence: "resumeRecurrenceButton",
18
+ cancelRecurrence: "cancelRecurrenceButton"
19
+ }, y = {
20
+ edit: m,
21
+ issue: u,
22
+ issueAndSend: g,
23
+ recordPayment: s,
24
+ send: d,
25
+ accept: i,
26
+ decline: o,
27
+ markPaid: i,
28
+ markUncollectible: a,
29
+ cancel: e,
30
+ clone: l,
31
+ delete: _,
32
+ pauseRecurrence: f,
33
+ resumeRecurrence: h,
34
+ cancelRecurrence: t
35
+ }, b = {
36
+ draft: p,
37
+ issuing: c,
38
+ issued: c,
39
+ partially_paid: c,
40
+ paid: n,
41
+ overdue: c,
42
+ canceled: e
43
+ }, x = {
44
+ forward: r,
45
+ pause: f,
46
+ ban: e,
47
+ check: n
48
+ }, S = {
49
+ default: "ttw:text-foreground",
50
+ danger: "ttw:text-red-600",
51
+ success: "ttw:text-emerald-600",
52
+ muted: "ttw:text-muted-foreground"
53
+ }, C = "ttw:group ttw:cursor-pointer ttw:hover:no-underline", w = "ttw:translate-y-0.5", T = "ttw:border-border", E = "ttw:rounded-full ttw:bg-muted ttw:text-muted-foreground", D = "ttw:bg-primary ttw:text-primary-foreground", O = "ttw:bg-primary ttw:fill-primary", k = "ttw:bg-muted ttw:text-muted-foreground ttw:hover:bg-accent", A = (e) => e.preventDefault();
38
54
  //#endregion
39
- export { c as ReceivableStatusBadge, c as default };
55
+ export { y as ACTION_ICON, v as ACTION_LABEL_KEY, x as SERIES_STATUS_ICON, b as STATUS_ICON, S as amountValueToneClass, k as headerIconButtonClass, O as headerTooltipArrowClass, D as headerTooltipClass, A as preventTooltipFocusOpen, w as sectionChevronClass, E as sectionCountBadgeClass, T as sectionItemClass, C as sectionTriggerClass };
@@ -1,55 +1,23 @@
1
- import { Ban as e, CalendarX2 as t, Check as n, ChevronsRight as r, CircleCheck as i, CircleOff as a, CircleX as o, ClipboardCheck as s, Clock as c, CopyPlus as l, FileCheck as u, Mail as d, Pause as f, PenTool as p, Pencil as m, Play as h, Send as g, Trash2 as _ } from "lucide-react";
1
+ import { Typography as e, cn as t } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { amountValueToneClass as n } from "./index25.js";
3
+ import { jsx as r, jsxs as i } from "react/jsx-runtime";
2
4
  //#region ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index26.js
3
- var v = {
4
- edit: "editButton",
5
- issue: "issueButton",
6
- issueAndSend: "issueAndSendButton",
7
- recordPayment: "recordPaymentButton",
8
- send: "sendButton",
9
- accept: "acceptButton",
10
- decline: "declineButton",
11
- markPaid: "markPaidButton",
12
- markUncollectible: "markUncollectibleButton",
13
- cancel: "cancelButton",
14
- clone: "cloneButton",
15
- delete: "deleteButton",
16
- pauseRecurrence: "pauseRecurrenceButton",
17
- resumeRecurrence: "resumeRecurrenceButton",
18
- cancelRecurrence: "cancelRecurrenceButton"
19
- }, y = {
20
- edit: m,
21
- issue: u,
22
- issueAndSend: g,
23
- recordPayment: s,
24
- send: d,
25
- accept: i,
26
- decline: o,
27
- markPaid: i,
28
- markUncollectible: a,
29
- cancel: e,
30
- clone: l,
31
- delete: _,
32
- pauseRecurrence: f,
33
- resumeRecurrence: h,
34
- cancelRecurrence: t
35
- }, b = {
36
- draft: p,
37
- issuing: c,
38
- issued: c,
39
- partially_paid: c,
40
- paid: n,
41
- overdue: c,
42
- canceled: e
43
- }, x = {
44
- forward: r,
45
- pause: f,
46
- ban: e,
47
- check: n
48
- }, S = {
49
- default: "ttw:text-foreground",
50
- danger: "ttw:text-red-600",
51
- success: "ttw:text-emerald-600",
52
- muted: "ttw:text-muted-foreground"
53
- }, C = "ttw:group ttw:cursor-pointer ttw:hover:no-underline", w = "ttw:translate-y-0.5", T = "ttw:border-border", E = "ttw:rounded-full ttw:bg-muted ttw:text-muted-foreground", D = "ttw:bg-primary ttw:text-primary-foreground", O = "ttw:bg-primary ttw:fill-primary", k = "ttw:bg-muted ttw:text-muted-foreground ttw:hover:bg-accent", A = (e) => e.preventDefault();
5
+ function a({ row: a, defaultTone: o }) {
6
+ let s = a.tone ?? (a.emphasis ? o : "default");
7
+ return /* @__PURE__ */ i("div", {
8
+ className: "ttw:flex ttw:flex-col ttw:gap-0.5",
9
+ children: [/* @__PURE__ */ r(e, {
10
+ variant: "caption",
11
+ color: "muted",
12
+ className: "ttw:font-medium",
13
+ children: a.label
14
+ }), /* @__PURE__ */ r(e, {
15
+ component: "span",
16
+ variant: a.emphasis ? "h3" : "body1",
17
+ className: t(!a.emphasis && "ttw:font-medium", n[s]),
18
+ children: a.value
19
+ })]
20
+ });
21
+ }
54
22
  //#endregion
55
- export { y as ACTION_ICON, v as ACTION_LABEL_KEY, x as SERIES_STATUS_ICON, b as STATUS_ICON, S as amountValueToneClass, k as headerIconButtonClass, O as headerTooltipArrowClass, D as headerTooltipClass, A as preventTooltipFocusOpen, w as sectionChevronClass, E as sectionCountBadgeClass, T as sectionItemClass, C as sectionTriggerClass };
23
+ export { a as AmountCell };
@@ -1,23 +1,10 @@
1
- import { Typography as e, cn as t } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { amountValueToneClass as n } from "./index26.js";
3
- import { jsx as r, jsxs as i } from "react/jsx-runtime";
4
1
  //#region ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index27.js
5
- function a({ row: a, defaultTone: o }) {
6
- let s = a.tone ?? (a.emphasis ? o : "default");
7
- return /* @__PURE__ */ i("div", {
8
- className: "ttw:flex ttw:flex-col ttw:gap-0.5",
9
- children: [/* @__PURE__ */ r(e, {
10
- variant: "caption",
11
- color: "muted",
12
- className: "ttw:font-medium",
13
- children: a.label
14
- }), /* @__PURE__ */ r(e, {
15
- component: "span",
16
- variant: a.emphasis ? "h3" : "body1",
17
- className: t(!a.emphasis && "ttw:font-medium", n[s]),
18
- children: a.value
19
- })]
20
- });
21
- }
2
+ var e = {
3
+ billing: "billing",
4
+ lineItems: "line-items",
5
+ notes: "notes",
6
+ attachments: "attachments",
7
+ auditHistory: "audit-history"
8
+ };
22
9
  //#endregion
23
- export { a as AmountCell };
10
+ export { e as RECEIVABLE_DETAILS_SECTION };
@@ -1,10 +1,79 @@
1
+ import { AccordionContent as e, AccordionItem as t, AccordionTrigger as n, Badge as r, Typography as i } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { RECEIVABLE_DETAILS_SECTION as a } from "./index27.js";
3
+ import { sectionChevronClass as o, sectionCountBadgeClass as s, sectionItemClass as c, sectionTriggerClass as l } from "./index25.js";
4
+ import { jsx as u, jsxs as d } from "react/jsx-runtime";
5
+ import { Check as f } from "lucide-react";
1
6
  //#region ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index28.js
2
- var e = {
3
- billing: "billing",
4
- lineItems: "line-items",
5
- notes: "notes",
6
- attachments: "attachments",
7
- auditHistory: "audit-history"
8
- };
7
+ function p({ attachments: p, labels: m }) {
8
+ return /* @__PURE__ */ d(t, {
9
+ value: a.attachments,
10
+ className: c,
11
+ children: [/* @__PURE__ */ u(n, {
12
+ className: l,
13
+ iconClassName: o,
14
+ children: /* @__PURE__ */ d("span", {
15
+ className: "ttw:flex ttw:items-center ttw:gap-2",
16
+ children: [/* @__PURE__ */ u("span", {
17
+ className: "ttw:group-hover:underline",
18
+ children: m.attachmentsHeading
19
+ }), /* @__PURE__ */ u(r, {
20
+ variant: "secondary",
21
+ className: s,
22
+ children: p.countLabel
23
+ })]
24
+ })
25
+ }), /* @__PURE__ */ u(e, { children: p.rows.length === 0 ? /* @__PURE__ */ u(i, {
26
+ variant: "body2",
27
+ color: "muted",
28
+ children: m.attachmentsEmpty
29
+ }) : /* @__PURE__ */ d("table", {
30
+ className: "ttw:w-full ttw:border-collapse",
31
+ children: [/* @__PURE__ */ u("thead", { children: /* @__PURE__ */ d("tr", {
32
+ className: "ttw:border-b ttw:border-border",
33
+ children: [/* @__PURE__ */ u("th", {
34
+ scope: "col",
35
+ className: "ttw:py-2 ttw:text-left",
36
+ children: /* @__PURE__ */ u(i, {
37
+ component: "span",
38
+ variant: "caption",
39
+ color: "muted",
40
+ children: m.attachmentsFileColumn
41
+ })
42
+ }), /* @__PURE__ */ u("th", {
43
+ scope: "col",
44
+ className: "ttw:py-2 ttw:text-right",
45
+ children: /* @__PURE__ */ u(i, {
46
+ component: "span",
47
+ variant: "caption",
48
+ color: "muted",
49
+ children: m.attachmentsEmailedColumn
50
+ })
51
+ })]
52
+ }) }), /* @__PURE__ */ u("tbody", { children: p.rows.map((e) => /* @__PURE__ */ d("tr", {
53
+ className: "ttw:border-b ttw:border-border ttw:last:border-b-0",
54
+ children: [/* @__PURE__ */ u("td", {
55
+ className: "ttw:py-3",
56
+ children: /* @__PURE__ */ u("a", {
57
+ href: e.url,
58
+ target: "_blank",
59
+ rel: "noreferrer",
60
+ className: "ttw:text-primary ttw:hover:underline",
61
+ children: e.name
62
+ })
63
+ }), /* @__PURE__ */ u("td", {
64
+ className: "ttw:py-3 ttw:text-right ttw:align-middle",
65
+ children: e.includeInEmail ? /* @__PURE__ */ u(f, {
66
+ role: "img",
67
+ "aria-label": e.emailedLabel,
68
+ className: "ttw:inline-block ttw:size-4 ttw:text-emerald-600"
69
+ }) : /* @__PURE__ */ u("span", {
70
+ className: "ttw:sr-only",
71
+ children: e.emailedLabel
72
+ })
73
+ })]
74
+ }, e.id)) })]
75
+ }) })]
76
+ });
77
+ }
9
78
  //#endregion
10
- export { e as RECEIVABLE_DETAILS_SECTION };
79
+ export { p as AttachmentsItem };
@@ -1,79 +1,41 @@
1
- import { AccordionContent as e, AccordionItem as t, AccordionTrigger as n, Badge as r, Typography as i } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { RECEIVABLE_DETAILS_SECTION as a } from "./index28.js";
3
- import { sectionChevronClass as o, sectionCountBadgeClass as s, sectionItemClass as c, sectionTriggerClass as l } from "./index26.js";
4
- import { jsx as u, jsxs as d } from "react/jsx-runtime";
5
- import { Check as f } from "lucide-react";
1
+ import { AccordionContent as e, AccordionItem as t, AccordionTrigger as n, AuditHistoryList as r, Badge as i, Typography as a } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { RECEIVABLE_DETAILS_SECTION as o } from "./index27.js";
3
+ import { sectionChevronClass as s, sectionCountBadgeClass as c, sectionItemClass as l, sectionTriggerClass as u } from "./index25.js";
4
+ import { jsx as d, jsxs as f } from "react/jsx-runtime";
6
5
  //#region ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index29.js
7
- function p({ attachments: p, labels: m }) {
8
- return /* @__PURE__ */ d(t, {
9
- value: a.attachments,
10
- className: c,
11
- children: [/* @__PURE__ */ u(n, {
12
- className: l,
13
- iconClassName: o,
14
- children: /* @__PURE__ */ d("span", {
6
+ function p({ auditHistory: p, labels: m }) {
7
+ return /* @__PURE__ */ f(t, {
8
+ value: o.auditHistory,
9
+ className: l,
10
+ children: [/* @__PURE__ */ d(n, {
11
+ className: u,
12
+ iconClassName: s,
13
+ children: /* @__PURE__ */ f("span", {
15
14
  className: "ttw:flex ttw:items-center ttw:gap-2",
16
- children: [/* @__PURE__ */ u("span", {
15
+ children: [/* @__PURE__ */ d("span", {
17
16
  className: "ttw:group-hover:underline",
18
- children: m.attachmentsHeading
19
- }), /* @__PURE__ */ u(r, {
17
+ children: m.auditHistoryHeading
18
+ }), p.countLabel ? /* @__PURE__ */ d(i, {
20
19
  variant: "secondary",
21
- className: s,
20
+ className: c,
22
21
  children: p.countLabel
23
- })]
22
+ }) : null]
24
23
  })
25
- }), /* @__PURE__ */ u(e, { children: p.rows.length === 0 ? /* @__PURE__ */ u(i, {
26
- variant: "body2",
24
+ }), /* @__PURE__ */ f(e, { children: [p.showNamesError ? /* @__PURE__ */ d(a, {
25
+ variant: "caption",
27
26
  color: "muted",
28
- children: m.attachmentsEmpty
29
- }) : /* @__PURE__ */ d("table", {
30
- className: "ttw:w-full ttw:border-collapse",
31
- children: [/* @__PURE__ */ u("thead", { children: /* @__PURE__ */ d("tr", {
32
- className: "ttw:border-b ttw:border-border",
33
- children: [/* @__PURE__ */ u("th", {
34
- scope: "col",
35
- className: "ttw:py-2 ttw:text-left",
36
- children: /* @__PURE__ */ u(i, {
37
- component: "span",
38
- variant: "caption",
39
- color: "muted",
40
- children: m.attachmentsFileColumn
41
- })
42
- }), /* @__PURE__ */ u("th", {
43
- scope: "col",
44
- className: "ttw:py-2 ttw:text-right",
45
- children: /* @__PURE__ */ u(i, {
46
- component: "span",
47
- variant: "caption",
48
- color: "muted",
49
- children: m.attachmentsEmailedColumn
50
- })
51
- })]
52
- }) }), /* @__PURE__ */ u("tbody", { children: p.rows.map((e) => /* @__PURE__ */ d("tr", {
53
- className: "ttw:border-b ttw:border-border ttw:last:border-b-0",
54
- children: [/* @__PURE__ */ u("td", {
55
- className: "ttw:py-3",
56
- children: /* @__PURE__ */ u("a", {
57
- href: e.url,
58
- target: "_blank",
59
- rel: "noreferrer",
60
- className: "ttw:text-primary ttw:hover:underline",
61
- children: e.name
62
- })
63
- }), /* @__PURE__ */ u("td", {
64
- className: "ttw:py-3 ttw:text-right ttw:align-middle",
65
- children: e.includeInEmail ? /* @__PURE__ */ u(f, {
66
- role: "img",
67
- "aria-label": e.emailedLabel,
68
- className: "ttw:inline-block ttw:size-4 ttw:text-emerald-600"
69
- }) : /* @__PURE__ */ u("span", {
70
- className: "ttw:sr-only",
71
- children: e.emailedLabel
72
- })
73
- })]
74
- }, e.id)) })]
75
- }) })]
27
+ children: m.auditHistoryNamesError
28
+ }) : null, /* @__PURE__ */ d(r, {
29
+ rows: p.rows,
30
+ isLoading: p.isLoading,
31
+ isError: p.isError,
32
+ labels: {
33
+ empty: m.auditHistoryEmpty,
34
+ loading: m.auditHistoryLoading,
35
+ error: m.auditHistoryError
36
+ }
37
+ })] })]
76
38
  });
77
39
  }
78
40
  //#endregion
79
- export { p as AttachmentsItem };
41
+ export { p as AuditHistoryItem };