@tesouro/embedded-components-react 0.11.122 → 0.11.124
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 +6 -3
- package/dist/index.css +0 -10
- package/dist/index.d.ts +33 -6
- package/dist/index.js +15 -14
- package/dist/lib/ReceivablesWidget.d.ts +29 -6
- package/dist/lib/ReceivablesWidget.js +3 -1
- package/dist/lib/WidgetSuite.d.ts +31 -4
- package/dist/libs/tesouro-embedded-components-react/balance-history-widget/feature/dist/lib/BalanceHistoryWidget/BalanceHistoryWidgetFeature.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/balance-history-widget/feature/dist/lib/BalanceHistoryWidget/labels.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/balance-history-widget/ui/dist/index.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/balance-history-widget/ui/dist/{index4.js → lib/BalanceHistoryCard/BalanceHistoryCard.js} +9 -9
- package/dist/libs/tesouro-embedded-components-react/balance-history-widget/ui/dist/{index2.js → lib/BalanceHistoryCard/BalanceHistoryChart.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/balance-history-widget/ui/dist/{index3.js → lib/BalanceHistoryCard/labels.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index.js +3 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivableAttachmentsSection.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivableCustomerSection.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivablesWidget.js +342 -295
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/paymentTerms.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/preview.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/recurrence.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/reminders.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/tabs.js +26 -0
- 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 +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/mocks/labels.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index.js +30 -26
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index10.js +18 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index11.js +121 -11
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index12.js +100 -11
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index13.js +39 -27
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index14.js +2 -205
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index15.js +11 -52
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index16.js +11 -210
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index17.js +27 -159
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index18.js +203 -14
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index19.js +51 -22
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index20.js +210 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index21.js +154 -111
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index22.js +15 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index23.js +21 -195
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index24.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index25.js +116 -53
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index26.js +3 -22
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index27.js +197 -8
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index28.js +2 -78
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index29.js +53 -39
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index30.js +20 -17
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index31.js +8 -41
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index32.js +73 -25
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index33.js +36 -17
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index34.js +17 -9
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index35.js +39 -34
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index36.js +29 -14
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index37.js +18 -24
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index38.js +8 -85
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index39.js +33 -490
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index40.js +15 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index41.js +22 -42
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index42.js +82 -65
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index43.js +475 -426
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index44.js +2 -226
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index45.js +46 -21
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index46.js +69 -5
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index47.js +445 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index48.js +208 -246
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index49.js +22 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index50.js +5 -129
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index52.js +247 -222
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index53.js +1 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index54.js +125 -242
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index55.js +23 -56
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index56.js +229 -209
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index57.js +3 -47
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index58.js +248 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index59.js +60 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index6.js +2 -17
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index60.js +194 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index61.js +47 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index7.js +53 -117
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index8.js +9 -99
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index9.js +3 -40
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/WidgetSuiteProvider.js +30 -39
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/sections/AccountsSection.js +2 -5
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/sections/DashboardSection.js +18 -31
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/mocks/widgetSuite.js +31 -34
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index51.js +0 -27
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RECEIVABLE_PAYMENT_TERMS_CUSTOM_DATE as e, RECEIVABLE_PAYMENT_TERMS_RECEIPT_DUE as t } from "../../../../ui/dist/
|
|
1
|
+
import { RECEIVABLE_PAYMENT_TERMS_CUSTOM_DATE as e, RECEIVABLE_PAYMENT_TERMS_RECEIPT_DUE as t } from "../../../../ui/dist/index24.js";
|
|
2
2
|
import "../../../../ui/dist/index.js";
|
|
3
3
|
import { addDays as n, addYears as r, format as i, isValid as a, max as o, min as s, parseISO as c, subYears as l } from "date-fns";
|
|
4
4
|
// ../../libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/paymentTerms.js
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createCurrencyFormatter as e } from "../../../../../shared/util/dist/lib/createCurrencyFormatter.js";
|
|
2
2
|
import { minorExponentForCurrency as t } from "../../../../../shared/util/dist/lib/amountOutputToMajorUnits.js";
|
|
3
3
|
import "../../../../../shared/util/dist/index.js";
|
|
4
|
-
import "../../../../ui/dist/
|
|
4
|
+
import "../../../../ui/dist/index24.js";
|
|
5
5
|
import "../../../../ui/dist/index.js";
|
|
6
6
|
import { isBlankLineItem as n, keepsSavedTaxRates as r, lineItemTaxRateMinorUnits as i, parseQuantity as a, priceInputToMinorUnits as o, taxRateToMinorUnits as s } from "./lineItems.js";
|
|
7
7
|
import { formatPreviewDate as c, resolveIssueDate as l, termDueDate as u } from "./paymentTerms.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isEmail as e } from "../../../../../../shared/util-validation/dist/index5.js";
|
|
2
|
-
import { RECEIVABLE_PAYMENT_TERMS_RECEIPT_DUE as t } from "../../../../ui/dist/
|
|
2
|
+
import { RECEIVABLE_PAYMENT_TERMS_RECEIPT_DUE as t } from "../../../../ui/dist/index24.js";
|
|
3
3
|
import "../../../../ui/dist/index.js";
|
|
4
4
|
import { addDays as n, format as r, parseISO as i, startOfDay as a } from "date-fns";
|
|
5
5
|
// ../../libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/recurrence.js
|
|
@@ -3,7 +3,7 @@ import { Scope as t } from "../../../../../shared/data-access/dist/lib/scopes.js
|
|
|
3
3
|
import "../../../../../shared/data-access/dist/index.js";
|
|
4
4
|
import { getCounterpartEmail as n } from "../../../../../shared/counterpart-management/feature/dist/lib/helpers.js";
|
|
5
5
|
import "../../../../../shared/counterpart-management/feature/dist/index.js";
|
|
6
|
-
import { RECEIVABLE_PAYMENT_TERMS_RECEIPT_DUE as r } from "../../../../ui/dist/
|
|
6
|
+
import { RECEIVABLE_PAYMENT_TERMS_RECEIPT_DUE as r } from "../../../../ui/dist/index24.js";
|
|
7
7
|
import "../../../../ui/dist/index.js";
|
|
8
8
|
// ../../libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/reminders.js
|
|
9
9
|
var i = 1e4, a = 864e5;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { INVOICING_TABS_LABELS_EN as e } from "../../../../ui/dist/index6.js";
|
|
2
|
+
import "../../../../ui/dist/index.js";
|
|
3
|
+
// ../../libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/tabs.js
|
|
4
|
+
var t = {
|
|
5
|
+
Invoices: "invoices",
|
|
6
|
+
Recurring: "recurring",
|
|
7
|
+
Customers: "customers",
|
|
8
|
+
Products: "products"
|
|
9
|
+
}, n = [
|
|
10
|
+
t.Invoices,
|
|
11
|
+
t.Recurring,
|
|
12
|
+
t.Customers,
|
|
13
|
+
t.Products
|
|
14
|
+
];
|
|
15
|
+
function r(e) {
|
|
16
|
+
return n.includes(e);
|
|
17
|
+
}
|
|
18
|
+
var i = {
|
|
19
|
+
...e,
|
|
20
|
+
invoicesTab: "Invoices",
|
|
21
|
+
recurringTab: "Recurring",
|
|
22
|
+
customersTab: "Customers",
|
|
23
|
+
productsTab: "Products and services",
|
|
24
|
+
createRecurringInvoiceButton: "Create recurring invoice"
|
|
25
|
+
};
|
|
26
|
+
export { i as INVOICING_TAB_LABELS_EN, n as INVOICING_TAB_ORDER, t as InvoicingTab, r as isInvoicingTabId };
|
|
@@ -10,7 +10,7 @@ import "../../../../../shared/data-access/dist/index.js";
|
|
|
10
10
|
import { useWidgetConfig as r } from "../../../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
11
11
|
import { useOrganizationUserNames as i } from "../../../../../shared/feature/dist/lib/user/useOrganizationUserNames.js";
|
|
12
12
|
import "../../../../../shared/feature/dist/index.js";
|
|
13
|
-
import { RECEIVABLE_DETAILS_SECTION as a } from "../../../../ui/dist/
|
|
13
|
+
import { RECEIVABLE_DETAILS_SECTION as a } from "../../../../ui/dist/index31.js";
|
|
14
14
|
import "../../../../ui/dist/index.js";
|
|
15
15
|
import { useAllReceivableHistoryQuery as ee } from "../../../../data-access/dist/index4.js";
|
|
16
16
|
import { usePaymentAccountsQuery as o } from "../../../../data-access/dist/index6.js";
|
|
@@ -14,7 +14,7 @@ import { useCounterpartQuery as a, useCreateCounterpartMutation as o } from "../
|
|
|
14
14
|
import { useCounterpartAddressesQuery as s } from "../../../../../shared/counterpart-management/data-access/dist/index5.js";
|
|
15
15
|
import { useCounterpartForm as te } from "../../../../../shared/counterpart-management/feature/dist/lib/useCounterpartForm.js";
|
|
16
16
|
import "../../../../../shared/counterpart-management/feature/dist/index.js";
|
|
17
|
-
import "../../../../ui/dist/
|
|
17
|
+
import "../../../../ui/dist/index24.js";
|
|
18
18
|
import "../../../../ui/dist/index.js";
|
|
19
19
|
import { INLINE_CUSTOMER_TYPE as ne, buildInlineCustomerPayload as re, seedCustomerFormValues as ie } from "./customer.js";
|
|
20
20
|
import { useCreateReceivableMutation as c, useIssueReceivableMutation as l, useUpdateReceivableMutation as ae } from "../../../../data-access/dist/index11.js";
|
package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/mocks/labels.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
var e = { scenarios: {
|
|
3
3
|
populated: {
|
|
4
4
|
label: "Populated",
|
|
5
|
-
blurb: "Seven invoices in five statuses, with a status card per status above the table and its count and total. Click a status card to filter the table to that status and All invoices to clear it, search by number or customer, or open any invoice for its details panel. Create
|
|
5
|
+
blurb: "Seven invoices in five statuses, with a status card per status above the table and its count and total. Click a status card to filter the table to that status and All invoices to clear it, search by number or customer, or open any invoice for its details panel. Create invoice is disabled because init returns no invoice:write:org."
|
|
6
6
|
},
|
|
7
7
|
empty: {
|
|
8
8
|
label: "Empty",
|
|
@@ -2,33 +2,37 @@ import "./index2.js";
|
|
|
2
2
|
import { InvoicesFilterField as e } from "./index3.js";
|
|
3
3
|
import { InvoicesFilterBar as t } from "./index4.js";
|
|
4
4
|
import "./index5.js";
|
|
5
|
-
import "./index6.js";
|
|
6
|
-
import {
|
|
5
|
+
import { INVOICING_TABS_LABELS_EN as n } from "./index6.js";
|
|
6
|
+
import { InvoicingTabs as r } from "./index7.js";
|
|
7
|
+
import { TabRowAction as i } from "./index8.js";
|
|
8
|
+
import "./index9.js";
|
|
7
9
|
import "./index10.js";
|
|
8
|
-
import "./
|
|
9
|
-
import "./index12.js";
|
|
10
|
-
import "./index13.js";
|
|
10
|
+
import { ReceivableActionsModal as a } from "./index13.js";
|
|
11
11
|
import "./index14.js";
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import {
|
|
17
|
-
import "./
|
|
18
|
-
import {
|
|
19
|
-
import "./index24.js";
|
|
20
|
-
import {
|
|
21
|
-
import
|
|
22
|
-
import "./
|
|
23
|
-
import
|
|
24
|
-
import {
|
|
25
|
-
import "./
|
|
26
|
-
import
|
|
12
|
+
import "./index15.js";
|
|
13
|
+
import "./index16.js";
|
|
14
|
+
import "./index17.js";
|
|
15
|
+
import "./index18.js";
|
|
16
|
+
import { ReceivableActionDialog as o } from "./index19.js";
|
|
17
|
+
import { ReceivableBankAccountSection as s } from "./index20.js";
|
|
18
|
+
import { ReceivableAttachmentsSection as c } from "./index21.js";
|
|
19
|
+
import { RECEIVABLE_PAYMENT_TERMS_CUSTOM_DATE as l, RECEIVABLE_PAYMENT_TERMS_RECEIPT_DUE as u } from "./index24.js";
|
|
20
|
+
import { ReceivableBillingSection as d } from "./index25.js";
|
|
21
|
+
import "./index26.js";
|
|
22
|
+
import { ReceivableCustomerSection as f } from "./index27.js";
|
|
23
|
+
import "./index28.js";
|
|
24
|
+
import { RECEIVABLE_DETAILS_SECTION as p } from "./index31.js";
|
|
25
|
+
import { ReceivableDetailsPanel as m } from "./index43.js";
|
|
26
|
+
import "./index44.js";
|
|
27
|
+
import { ReceivableFormDialog as h } from "./index47.js";
|
|
28
|
+
import { ReceivablePaymentDialog as g } from "./index48.js";
|
|
27
29
|
import "./index49.js";
|
|
28
|
-
import {
|
|
29
|
-
import { ReceivableRecurrenceSection as g } from "./index52.js";
|
|
30
|
+
import { ReceivablePreview as _ } from "./index52.js";
|
|
30
31
|
import "./index53.js";
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import
|
|
34
|
-
|
|
32
|
+
import { ReceivableRecurrenceEmailDialog as v } from "./index54.js";
|
|
33
|
+
import { ReceivableRecurrenceSection as y } from "./index56.js";
|
|
34
|
+
import "./index57.js";
|
|
35
|
+
import { ReceivableRemindersSection as b } from "./index58.js";
|
|
36
|
+
import { ReceivablesScreen as x } from "./index60.js";
|
|
37
|
+
import { UnsavedInvoiceDialog as S } from "./index61.js";
|
|
38
|
+
export { n as INVOICING_TABS_LABELS_EN, t as InvoicesFilterBar, e as InvoicesFilterField, r as InvoicingTabs, p as RECEIVABLE_DETAILS_SECTION, l as RECEIVABLE_PAYMENT_TERMS_CUSTOM_DATE, u as RECEIVABLE_PAYMENT_TERMS_RECEIPT_DUE, o as ReceivableActionDialog, a as ReceivableActionsModal, c as ReceivableAttachmentsSection, s as ReceivableBankAccountSection, d as ReceivableBillingSection, f as ReceivableCustomerSection, m as ReceivableDetailsPanel, h as ReceivableFormDialog, g as ReceivablePaymentDialog, _ as ReceivablePreview, v as ReceivableRecurrenceEmailDialog, y as ReceivableRecurrenceSection, b as ReceivableRemindersSection, x as ReceivablesScreen, i as TabRowAction, S as UnsavedInvoiceDialog };
|
|
@@ -1,2 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
// ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index10.js
|
|
2
|
+
var e = {
|
|
3
|
+
issueDescription: "The customer will be emailed a copy of the invoice with payment instructions.",
|
|
4
|
+
toLabel: "To",
|
|
5
|
+
subjectLabel: "Subject",
|
|
6
|
+
messageLabel: "Message",
|
|
7
|
+
messagePlaceholder: "e.g., Thank you for your business",
|
|
8
|
+
attachmentsLabel: "Attachments",
|
|
9
|
+
attachmentsCaption: "To change what files are attached to the email, you will need to update the invoice.",
|
|
10
|
+
skipButton: "Skip",
|
|
11
|
+
sendButton: "Send invoice",
|
|
12
|
+
productsQuestion: "Do you want to also save these items?",
|
|
13
|
+
productsCaption: "Saved items can be quickly added to future invoices.",
|
|
14
|
+
productsAllLabel: "Products and services",
|
|
15
|
+
saveItemsButton: "Save selected items",
|
|
16
|
+
close: "Close"
|
|
17
|
+
};
|
|
18
|
+
export { e as RECEIVABLE_ACTIONS_MODAL_LABELS_EN };
|
|
@@ -1,12 +1,122 @@
|
|
|
1
|
+
import { Button as e, DialogDescription as t, DialogFooter as n, DialogHeader as r, DialogTitle as i, Input as a, Label as o, Textarea as s, Typography as c } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
3
|
+
import { Check as f, Send as p } from "lucide-react";
|
|
1
4
|
// ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index11.js
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
|
|
5
|
+
function m({ idPrefix: m, view: h, onSubjectChange: g, onMessageChange: _, onSkip: v, onSend: y, labels: b }) {
|
|
6
|
+
let x = `${m}-subject`, S = `${m}-message`;
|
|
7
|
+
return /* @__PURE__ */ d(l, { children: [
|
|
8
|
+
/* @__PURE__ */ u(r, {
|
|
9
|
+
className: "ttw:border-b ttw:border-border ttw:p-6",
|
|
10
|
+
children: /* @__PURE__ */ d("div", {
|
|
11
|
+
className: "ttw:flex ttw:items-center ttw:gap-4",
|
|
12
|
+
children: [/* @__PURE__ */ u("span", {
|
|
13
|
+
className: "ttw:flex ttw:size-10 ttw:shrink-0 ttw:items-center ttw:justify-center ttw:rounded-full ttw:border ttw:border-emerald-200 ttw:bg-emerald-50",
|
|
14
|
+
children: h.icon === "send" ? /* @__PURE__ */ u(p, { className: "ttw:size-6 ttw:text-green-700" }) : /* @__PURE__ */ u(f, { className: "ttw:size-6 ttw:text-green-700" })
|
|
15
|
+
}), /* @__PURE__ */ d("div", {
|
|
16
|
+
className: "ttw:flex ttw:flex-col ttw:gap-1",
|
|
17
|
+
children: [/* @__PURE__ */ u(i, { children: h.title }), /* @__PURE__ */ u(t, {
|
|
18
|
+
className: "ttw:text-xs",
|
|
19
|
+
children: b.issueDescription
|
|
20
|
+
})]
|
|
21
|
+
})]
|
|
22
|
+
})
|
|
23
|
+
}),
|
|
24
|
+
/* @__PURE__ */ d("div", {
|
|
25
|
+
className: "ttw:flex ttw:flex-col ttw:gap-2 ttw:p-6",
|
|
26
|
+
children: [
|
|
27
|
+
/* @__PURE__ */ d("div", {
|
|
28
|
+
className: "ttw:flex ttw:items-center ttw:gap-4",
|
|
29
|
+
children: [/* @__PURE__ */ u(c, {
|
|
30
|
+
variant: "body2",
|
|
31
|
+
color: "muted",
|
|
32
|
+
className: "ttw:w-16 ttw:shrink-0",
|
|
33
|
+
children: b.toLabel
|
|
34
|
+
}), /* @__PURE__ */ u(c, {
|
|
35
|
+
variant: "body2",
|
|
36
|
+
children: h.recipient
|
|
37
|
+
})]
|
|
38
|
+
}),
|
|
39
|
+
/* @__PURE__ */ d("div", {
|
|
40
|
+
className: "ttw:flex ttw:items-center ttw:gap-4",
|
|
41
|
+
children: [/* @__PURE__ */ u(o, {
|
|
42
|
+
htmlFor: x,
|
|
43
|
+
className: "ttw:w-16 ttw:shrink-0 ttw:font-normal ttw:text-muted-foreground",
|
|
44
|
+
children: b.subjectLabel
|
|
45
|
+
}), /* @__PURE__ */ u(a, {
|
|
46
|
+
id: x,
|
|
47
|
+
className: "ttw:flex-1",
|
|
48
|
+
value: h.subject,
|
|
49
|
+
onChange: (e) => g(e.target.value),
|
|
50
|
+
disabled: h.inProgress
|
|
51
|
+
})]
|
|
52
|
+
}),
|
|
53
|
+
/* @__PURE__ */ d("div", {
|
|
54
|
+
className: "ttw:flex ttw:items-start ttw:gap-4",
|
|
55
|
+
children: [/* @__PURE__ */ u(o, {
|
|
56
|
+
htmlFor: S,
|
|
57
|
+
className: "ttw:w-16 ttw:shrink-0 ttw:pt-2 ttw:font-normal ttw:text-muted-foreground",
|
|
58
|
+
children: b.messageLabel
|
|
59
|
+
}), /* @__PURE__ */ u(s, {
|
|
60
|
+
id: S,
|
|
61
|
+
className: "ttw:flex-1",
|
|
62
|
+
value: h.message,
|
|
63
|
+
onChange: (e) => _(e.target.value),
|
|
64
|
+
placeholder: b.messagePlaceholder,
|
|
65
|
+
disabled: h.inProgress
|
|
66
|
+
})]
|
|
67
|
+
}),
|
|
68
|
+
h.attachments.length > 0 && /* @__PURE__ */ d("div", {
|
|
69
|
+
className: "ttw:flex ttw:flex-col ttw:gap-2.5 ttw:pl-20",
|
|
70
|
+
children: [/* @__PURE__ */ d("div", {
|
|
71
|
+
className: "ttw:flex ttw:flex-col",
|
|
72
|
+
children: [/* @__PURE__ */ u(c, {
|
|
73
|
+
variant: "body2",
|
|
74
|
+
color: "muted",
|
|
75
|
+
children: b.attachmentsLabel
|
|
76
|
+
}), /* @__PURE__ */ u(c, {
|
|
77
|
+
variant: "caption",
|
|
78
|
+
color: "muted",
|
|
79
|
+
children: b.attachmentsCaption
|
|
80
|
+
})]
|
|
81
|
+
}), /* @__PURE__ */ u("ul", {
|
|
82
|
+
className: "ttw:flex ttw:flex-col ttw:gap-2.5",
|
|
83
|
+
children: h.attachments.map((e) => /* @__PURE__ */ d("li", {
|
|
84
|
+
className: "ttw:rounded-lg ttw:bg-muted ttw:px-2 ttw:py-1 ttw:text-sm ttw:font-medium",
|
|
85
|
+
children: [
|
|
86
|
+
e.name,
|
|
87
|
+
" ",
|
|
88
|
+
/* @__PURE__ */ d("span", {
|
|
89
|
+
className: "ttw:text-muted-foreground",
|
|
90
|
+
children: [
|
|
91
|
+
"(",
|
|
92
|
+
e.sizeLabel,
|
|
93
|
+
")"
|
|
94
|
+
]
|
|
95
|
+
})
|
|
96
|
+
]
|
|
97
|
+
}, e.id))
|
|
98
|
+
})]
|
|
99
|
+
})
|
|
100
|
+
]
|
|
101
|
+
}),
|
|
102
|
+
/* @__PURE__ */ d(n, {
|
|
103
|
+
className: "ttw:flex ttw:flex-row ttw:gap-4 ttw:border-t ttw:border-border ttw:p-6",
|
|
104
|
+
children: [/* @__PURE__ */ u(e, {
|
|
105
|
+
type: "button",
|
|
106
|
+
variant: "outline",
|
|
107
|
+
className: "ttw:flex-1 ttw:border-border",
|
|
108
|
+
disabled: h.inProgress,
|
|
109
|
+
onClick: v,
|
|
110
|
+
children: h.dismissLabel
|
|
111
|
+
}), /* @__PURE__ */ u(e, {
|
|
112
|
+
type: "button",
|
|
113
|
+
className: "ttw:flex-1",
|
|
114
|
+
disabled: h.sendDisabled,
|
|
115
|
+
loading: h.inProgress,
|
|
116
|
+
onClick: y,
|
|
117
|
+
children: b.sendButton
|
|
118
|
+
})]
|
|
119
|
+
})
|
|
120
|
+
] });
|
|
121
|
+
}
|
|
122
|
+
export { m as ReceivableActionsModalIssueStep };
|
|
@@ -1,12 +1,101 @@
|
|
|
1
|
+
import { Button as e, Checkbox as t, DialogFooter as n, DialogHeader as r, DialogTitle as i, Separator as a, Typography as o } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
3
|
+
import { Check as u } from "lucide-react";
|
|
1
4
|
// ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index12.js
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
|
|
5
|
+
function d({ view: d, onToggleItem: f, onToggleAll: p, onAllSelectedChange: m, onSkip: h, onSave: g, labels: _ }) {
|
|
6
|
+
return /* @__PURE__ */ l(s, { children: [
|
|
7
|
+
/* @__PURE__ */ c(r, {
|
|
8
|
+
className: "ttw:border-b ttw:border-border ttw:p-6",
|
|
9
|
+
children: /* @__PURE__ */ l(i, {
|
|
10
|
+
className: "ttw:flex ttw:flex-row ttw:items-center ttw:gap-4",
|
|
11
|
+
children: [/* @__PURE__ */ c("span", {
|
|
12
|
+
className: "ttw:flex ttw:size-10 ttw:items-center ttw:justify-center ttw:rounded-full ttw:border ttw:border-emerald-200 ttw:bg-emerald-50",
|
|
13
|
+
children: /* @__PURE__ */ c(u, { className: "ttw:size-6 ttw:text-green-700" })
|
|
14
|
+
}), d.title]
|
|
15
|
+
})
|
|
16
|
+
}),
|
|
17
|
+
/* @__PURE__ */ l("div", {
|
|
18
|
+
className: "ttw:flex ttw:flex-col ttw:gap-4 ttw:p-6",
|
|
19
|
+
children: [/* @__PURE__ */ l("div", {
|
|
20
|
+
className: "ttw:flex ttw:items-start ttw:justify-between ttw:gap-1.5",
|
|
21
|
+
children: [/* @__PURE__ */ l("div", {
|
|
22
|
+
className: "ttw:flex ttw:min-w-0 ttw:flex-col ttw:gap-1",
|
|
23
|
+
children: [/* @__PURE__ */ c(o, {
|
|
24
|
+
variant: "h4",
|
|
25
|
+
children: _.productsQuestion
|
|
26
|
+
}), /* @__PURE__ */ c(o, {
|
|
27
|
+
variant: "caption",
|
|
28
|
+
color: "muted",
|
|
29
|
+
children: _.productsCaption
|
|
30
|
+
})]
|
|
31
|
+
}), /* @__PURE__ */ c(e, {
|
|
32
|
+
type: "button",
|
|
33
|
+
variant: "ghost",
|
|
34
|
+
className: "ttw:shrink-0 ttw:text-primary ttw:hover:text-primary",
|
|
35
|
+
disabled: d.inProgress,
|
|
36
|
+
onClick: p,
|
|
37
|
+
children: d.toggleAllLabel
|
|
38
|
+
})]
|
|
39
|
+
}), /* @__PURE__ */ l("ul", {
|
|
40
|
+
className: "ttw:flex ttw:flex-col ttw:gap-3",
|
|
41
|
+
children: [
|
|
42
|
+
/* @__PURE__ */ l("li", {
|
|
43
|
+
className: "ttw:flex ttw:items-center ttw:gap-2",
|
|
44
|
+
children: [/* @__PURE__ */ c(t, {
|
|
45
|
+
checked: d.allSelected,
|
|
46
|
+
onCheckedChange: (e) => m(e === !0),
|
|
47
|
+
disabled: d.inProgress || d.items.length === 0,
|
|
48
|
+
"aria-label": _.productsAllLabel
|
|
49
|
+
}), /* @__PURE__ */ c(o, {
|
|
50
|
+
variant: "body2",
|
|
51
|
+
className: "ttw:font-semibold",
|
|
52
|
+
children: _.productsAllLabel
|
|
53
|
+
})]
|
|
54
|
+
}),
|
|
55
|
+
/* @__PURE__ */ c("li", { children: /* @__PURE__ */ c(a, {}) }),
|
|
56
|
+
d.items.map((e) => /* @__PURE__ */ l("li", {
|
|
57
|
+
className: "ttw:flex ttw:items-start ttw:gap-2",
|
|
58
|
+
children: [/* @__PURE__ */ c(t, {
|
|
59
|
+
checked: e.selected,
|
|
60
|
+
onCheckedChange: () => f(e.key),
|
|
61
|
+
disabled: d.inProgress,
|
|
62
|
+
"aria-label": e.name
|
|
63
|
+
}), /* @__PURE__ */ l("div", {
|
|
64
|
+
className: "ttw:flex ttw:min-w-0 ttw:flex-1 ttw:flex-col ttw:gap-1",
|
|
65
|
+
children: [/* @__PURE__ */ c(o, {
|
|
66
|
+
variant: "caption",
|
|
67
|
+
className: "ttw:truncate",
|
|
68
|
+
title: e.name,
|
|
69
|
+
children: e.name
|
|
70
|
+
}), /* @__PURE__ */ c(o, {
|
|
71
|
+
variant: "caption",
|
|
72
|
+
color: "muted",
|
|
73
|
+
className: "ttw:truncate",
|
|
74
|
+
children: e.priceLabel
|
|
75
|
+
})]
|
|
76
|
+
})]
|
|
77
|
+
}, e.key))
|
|
78
|
+
]
|
|
79
|
+
})]
|
|
80
|
+
}),
|
|
81
|
+
/* @__PURE__ */ l(n, {
|
|
82
|
+
className: "ttw:flex ttw:flex-row ttw:gap-4 ttw:border-t ttw:border-border ttw:p-6",
|
|
83
|
+
children: [/* @__PURE__ */ c(e, {
|
|
84
|
+
type: "button",
|
|
85
|
+
variant: "outline",
|
|
86
|
+
className: "ttw:flex-1 ttw:border-border",
|
|
87
|
+
disabled: d.inProgress,
|
|
88
|
+
onClick: h,
|
|
89
|
+
children: _.skipButton
|
|
90
|
+
}), /* @__PURE__ */ c(e, {
|
|
91
|
+
type: "button",
|
|
92
|
+
className: "ttw:flex-1",
|
|
93
|
+
disabled: d.saveDisabled,
|
|
94
|
+
loading: d.inProgress,
|
|
95
|
+
onClick: g,
|
|
96
|
+
children: _.saveItemsButton
|
|
97
|
+
})]
|
|
98
|
+
})
|
|
99
|
+
] });
|
|
100
|
+
}
|
|
101
|
+
export { d as ReceivableActionsModalProductsStep };
|
|
@@ -1,28 +1,40 @@
|
|
|
1
|
+
import { Dialog as e, DialogContent as t } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { RECEIVABLE_ACTIONS_MODAL_LABELS_EN as n } from "./index10.js";
|
|
3
|
+
import { ReceivableActionsModalIssueStep as r } from "./index11.js";
|
|
4
|
+
import { ReceivableActionsModalProductsStep as i } from "./index12.js";
|
|
5
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
1
6
|
// ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index13.js
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
7
|
+
function s({ idPrefix: s, open: c, view: l, onSkip: u, onSubjectChange: d, onMessageChange: f, onSend: p, onToggleItem: m, onToggleAll: h, onAllSelectedChange: g, onSaveItems: _, labels: v }) {
|
|
8
|
+
let y = {
|
|
9
|
+
...n,
|
|
10
|
+
...v
|
|
11
|
+
};
|
|
12
|
+
return /* @__PURE__ */ a(e, {
|
|
13
|
+
open: c && !!l,
|
|
14
|
+
onOpenChange: (e) => {
|
|
15
|
+
e || u();
|
|
16
|
+
},
|
|
17
|
+
children: /* @__PURE__ */ o(t, {
|
|
18
|
+
className: "ttw:gap-0 ttw:p-0 ttw:max-w-178 ttw:sm:max-w-178",
|
|
19
|
+
labels: { close: y.close },
|
|
20
|
+
children: [l?.step === "issue" && /* @__PURE__ */ a(r, {
|
|
21
|
+
idPrefix: s,
|
|
22
|
+
view: l,
|
|
23
|
+
onSubjectChange: d,
|
|
24
|
+
onMessageChange: f,
|
|
25
|
+
onSkip: u,
|
|
26
|
+
onSend: p,
|
|
27
|
+
labels: y
|
|
28
|
+
}), l?.step === "products" && /* @__PURE__ */ a(i, {
|
|
29
|
+
view: l,
|
|
30
|
+
onToggleItem: m,
|
|
31
|
+
onToggleAll: h,
|
|
32
|
+
onAllSelectedChange: g,
|
|
33
|
+
onSkip: u,
|
|
34
|
+
onSave: _,
|
|
35
|
+
labels: y
|
|
36
|
+
})]
|
|
37
|
+
})
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
export { s as ReceivableActionsModal };
|