@tesouro/embedded-components-react 0.3.1 → 0.3.2
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 +7 -10
- package/dist/experimental/WidgetSuite.d.ts +2 -2
- package/dist/experimental/index.d.ts +2 -2
- package/dist/index.d.ts +1 -23
- package/dist/lib/BankAccountsWidget.d.ts +0 -1
- package/dist/lib/ChartOfAccountsWidget.d.ts +1 -5
- package/dist/lib/CounterpartsWidget.d.ts +0 -9
- package/dist/lib/ExpenseManagementWidget.d.ts +0 -1
- package/dist/lib/ProductsWidget.d.ts +0 -1
- package/dist/lib/ReceivablesWidget.d.ts +0 -1
- package/dist/lib/SettingsWidget.d.ts +0 -1
- package/dist/lib/TagsWidget.d.ts +0 -1
- package/dist/lib/TeamWidget.d.ts +0 -3
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index8.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/index7.js +64 -65
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/ui/dist/lib/BankAccountsWidgetUi.js +35 -36
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/ui/dist/lib/BankingHeader.js +35 -42
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/ui/dist/lib/labels.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index43.js +1 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index44.js +4 -7
- package/dist/libs/tesouro-embedded-components-react/cards-widget/ui/dist/lib/CardsList/CardsList.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/index8.js +106 -107
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index2.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index3.js +85 -93
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpenseManagementWidgetUi/ExpenseManagementWidgetUi.js +4 -7
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpenseManagementWidgetUi/labels.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/gl-code-table-widget/ui/dist/index2.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/gl-code-table-widget/ui/dist/index3.js +113 -115
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index16.js +150 -155
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index2.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/products-widget/ui/dist/index2.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/products-widget/ui/dist/index4.js +86 -91
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index5.js +20 -22
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index6.js +2 -6
- package/dist/libs/tesouro-embedded-components-react/settings-widget/ui/dist/lib/SettingsWidgetUi/SettingsWidgetUi.js +25 -26
- package/dist/libs/tesouro-embedded-components-react/settings-widget/ui/dist/lib/SettingsWidgetUi/labels.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index11.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/tags-widget/ui/dist/index2.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/tags-widget/ui/dist/index3.js +67 -68
- package/dist/libs/tesouro-embedded-components-react/team-widget/feature/dist/index17.js +239 -241
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index7.js +1 -6
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index8.js +53 -53
- package/package.json +1 -1
|
@@ -6,51 +6,44 @@ import { Skeleton as e, Tooltip as t, TooltipContent as n, TooltipProvider as r,
|
|
|
6
6
|
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
7
7
|
import { HelpCircleIcon as c } from "lucide-react";
|
|
8
8
|
//#region ../../libs/tesouro-embedded-components-react/bank-accounts-widget/ui/dist/lib/BankingHeader.js
|
|
9
|
-
function l({ labels: e,
|
|
9
|
+
function l({ labels: e, bankDisplayName: l, bankLogoSrc: u, bankLogoAlt: d, availableBalanceLabel: f, shouldDisplayAvailableBalance: p, isBankingTaglineVisible: m }) {
|
|
10
10
|
return /* @__PURE__ */ s("header", {
|
|
11
11
|
className: "ttw:mb-6 ttw:space-y-2",
|
|
12
|
-
children: [
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
children: [m && l ? /* @__PURE__ */ s("div", {
|
|
13
|
+
className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:gap-1",
|
|
14
|
+
children: [/* @__PURE__ */ o(a, {
|
|
15
|
+
component: "span",
|
|
16
|
+
variant: "body1",
|
|
17
|
+
color: "muted",
|
|
18
|
+
children: e.bankingTaglinePrefix
|
|
19
|
+
}), u ? /* @__PURE__ */ o("img", {
|
|
20
|
+
src: u,
|
|
21
|
+
alt: d ?? l,
|
|
22
|
+
className: "ttw:block ttw:h-auto ttw:max-w-[120px]"
|
|
23
|
+
}) : /* @__PURE__ */ o(a, {
|
|
24
|
+
component: "span",
|
|
25
|
+
variant: "body1",
|
|
26
|
+
color: "muted",
|
|
15
27
|
children: l
|
|
16
|
-
})
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
className: "ttw:
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
m && p ? /* @__PURE__ */ s("div", {
|
|
36
|
-
className: "ttw:mt-4",
|
|
37
|
-
children: [/* @__PURE__ */ s("div", {
|
|
38
|
-
className: "ttw:flex ttw:items-center ttw:gap-1 ttw:text-sm ttw:text-muted-foreground",
|
|
39
|
-
children: [/* @__PURE__ */ o("span", { children: e.availableBalanceLabel }), /* @__PURE__ */ o(r, { children: /* @__PURE__ */ s(t, { children: [/* @__PURE__ */ o(i, {
|
|
40
|
-
type: "button",
|
|
41
|
-
className: "ttw:inline-flex ttw:cursor-help",
|
|
42
|
-
"aria-label": e.availableBalanceTooltip,
|
|
43
|
-
children: /* @__PURE__ */ o(c, { className: "ttw:size-4" })
|
|
44
|
-
}), /* @__PURE__ */ o(n, {
|
|
45
|
-
className: "ttw:max-w-xs",
|
|
46
|
-
children: e.availableBalanceTooltip
|
|
47
|
-
})] }) })]
|
|
48
|
-
}), /* @__PURE__ */ o("p", {
|
|
49
|
-
className: "ttw:text-3xl ttw:font-bold ttw:text-primary",
|
|
50
|
-
children: p
|
|
51
|
-
})]
|
|
52
|
-
}) : null
|
|
53
|
-
]
|
|
28
|
+
})]
|
|
29
|
+
}) : null, p && f ? /* @__PURE__ */ s("div", {
|
|
30
|
+
className: "ttw:mt-4",
|
|
31
|
+
children: [/* @__PURE__ */ s("div", {
|
|
32
|
+
className: "ttw:flex ttw:items-center ttw:gap-1 ttw:text-sm ttw:text-muted-foreground",
|
|
33
|
+
children: [/* @__PURE__ */ o("span", { children: e.availableBalanceLabel }), /* @__PURE__ */ o(r, { children: /* @__PURE__ */ s(t, { children: [/* @__PURE__ */ o(i, {
|
|
34
|
+
type: "button",
|
|
35
|
+
className: "ttw:inline-flex ttw:cursor-help",
|
|
36
|
+
"aria-label": e.availableBalanceTooltip,
|
|
37
|
+
children: /* @__PURE__ */ o(c, { className: "ttw:size-4" })
|
|
38
|
+
}), /* @__PURE__ */ o(n, {
|
|
39
|
+
className: "ttw:max-w-xs",
|
|
40
|
+
children: e.availableBalanceTooltip
|
|
41
|
+
})] }) })]
|
|
42
|
+
}), /* @__PURE__ */ o("p", {
|
|
43
|
+
className: "ttw:text-3xl ttw:font-bold ttw:text-primary",
|
|
44
|
+
children: f
|
|
45
|
+
})]
|
|
46
|
+
}) : null]
|
|
54
47
|
});
|
|
55
48
|
}
|
|
56
49
|
function u() {
|
package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/ui/dist/lib/labels.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
//#region ../../libs/tesouro-embedded-components-react/bank-accounts-widget/ui/dist/lib/labels.js
|
|
2
2
|
var e = {
|
|
3
|
-
title: "Accounts",
|
|
4
3
|
bankingTaglinePrefix: "Business Banking provided by",
|
|
5
4
|
availableBalanceLabel: "Available balance",
|
|
6
5
|
availableBalanceTooltip: "Available balance is the amount of money you can currently spend, withdraw, or transfer. It reflects your most up-to-date balance, and is used to determine if you have sufficient funds for new transactions.",
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index43.js
|
|
2
|
-
var e = {
|
|
3
|
-
title: "Bill pay",
|
|
4
|
-
description: "Review, approve, and pay your bills."
|
|
5
|
-
};
|
|
2
|
+
var e = { description: "Review, approve, and pay your bills." };
|
|
6
3
|
//#endregion
|
|
7
4
|
export { e as DEFAULT_LABELS };
|
|
@@ -13,15 +13,12 @@ function s({ labels: s, tabs: c, selectedTabId: l, onTabChange: u }) {
|
|
|
13
13
|
};
|
|
14
14
|
return /* @__PURE__ */ o("section", {
|
|
15
15
|
className: "ttw:w-full ttw:space-y-5",
|
|
16
|
-
children: [/* @__PURE__ */
|
|
16
|
+
children: [/* @__PURE__ */ a("div", {
|
|
17
17
|
className: "ttw:min-w-0",
|
|
18
|
-
children:
|
|
19
|
-
className: "ttw:text-
|
|
20
|
-
children: d.title
|
|
21
|
-
}), /* @__PURE__ */ a("p", {
|
|
22
|
-
className: "ttw:mt-1 ttw:text-sm ttw:text-muted-foreground",
|
|
18
|
+
children: /* @__PURE__ */ a("p", {
|
|
19
|
+
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
23
20
|
children: d.description
|
|
24
|
-
})
|
|
21
|
+
})
|
|
25
22
|
}), /* @__PURE__ */ o(e, {
|
|
26
23
|
value: l,
|
|
27
24
|
onValueChange: u,
|
package/dist/libs/tesouro-embedded-components-react/cards-widget/ui/dist/lib/CardsList/CardsList.js
CHANGED
|
@@ -39,7 +39,6 @@ function T({ rows: t, columns: _, isLoading: C = !1, isError: T = !1, canToggleS
|
|
|
39
39
|
className: "ttw:mb-5 ttw:flex ttw:flex-wrap ttw:items-start ttw:justify-between ttw:gap-4",
|
|
40
40
|
children: [/* @__PURE__ */ v(l, {
|
|
41
41
|
variant: "h2",
|
|
42
|
-
component: "h1",
|
|
43
42
|
children: U.title
|
|
44
43
|
}), W && /* @__PURE__ */ y(e, {
|
|
45
44
|
size: "sm",
|
package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/index8.js
CHANGED
|
@@ -19,187 +19,186 @@ import { useCounterpartsWidget as d } from "./index7.js";
|
|
|
19
19
|
import { useEffect as f } from "react";
|
|
20
20
|
import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
21
21
|
//#region ../../libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/index8.js
|
|
22
|
-
function g({ counterpartType: t, pageSizeOptions: s = c,
|
|
23
|
-
let
|
|
22
|
+
function g({ counterpartType: t, pageSizeOptions: s = c, onViewAllDocuments: g, screenLabels: _, formLabels: v, detailsLabels: y, bankAccountLabels: b, addressLabels: x, deleteLabels: S, messageLabels: C }) {
|
|
23
|
+
let w = e();
|
|
24
24
|
f(() => {
|
|
25
|
-
|
|
26
|
-
}, [
|
|
27
|
-
let { stateOptions:
|
|
25
|
+
w(o.Mounted);
|
|
26
|
+
}, [w]);
|
|
27
|
+
let { stateOptions: T, selectedId: E, view: D, table: O, details: k, detailsSheetView: A, permissions: j, isPermissionLoading: M, form: N, bank: P, address: F, del: I, handleRowClick: L, closeDetails: R } = d({
|
|
28
28
|
counterpartType: t,
|
|
29
|
-
detailsLabels:
|
|
30
|
-
messageLabels:
|
|
29
|
+
detailsLabels: y,
|
|
30
|
+
messageLabels: C
|
|
31
31
|
});
|
|
32
32
|
return /* @__PURE__ */ h(p, { children: [
|
|
33
33
|
/* @__PURE__ */ m(l, {
|
|
34
34
|
mode: t,
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
onPageSizeChange: k.onPageSizeChange,
|
|
35
|
+
counterparts: O.rows,
|
|
36
|
+
isLoading: M || O.isLoading,
|
|
37
|
+
isError: O.isError,
|
|
38
|
+
sorting: O.sorting,
|
|
39
|
+
onSortingChange: O.onSortingChange,
|
|
40
|
+
pageSize: O.pageSize,
|
|
41
|
+
onPageSizeChange: O.onPageSizeChange,
|
|
43
42
|
pageSizeOptions: s,
|
|
44
|
-
hasNextPage:
|
|
45
|
-
hasPrevPage:
|
|
46
|
-
onNextPage:
|
|
47
|
-
onPrevPage:
|
|
48
|
-
searchValue:
|
|
49
|
-
onSearchChange:
|
|
50
|
-
entityFilter:
|
|
51
|
-
onEntityFilterChange:
|
|
52
|
-
isFiltering:
|
|
53
|
-
canCreate:
|
|
54
|
-
isAccessRestricted: !
|
|
55
|
-
onCreateClick:
|
|
56
|
-
onRowClick:
|
|
57
|
-
onRetry:
|
|
58
|
-
labels:
|
|
43
|
+
hasNextPage: O.hasNextPage,
|
|
44
|
+
hasPrevPage: O.hasPrevPage,
|
|
45
|
+
onNextPage: O.onNextPage,
|
|
46
|
+
onPrevPage: O.onPrevPage,
|
|
47
|
+
searchValue: O.searchValue,
|
|
48
|
+
onSearchChange: O.onSearchChange,
|
|
49
|
+
entityFilter: O.entityFilter,
|
|
50
|
+
onEntityFilterChange: O.onEntityFilterChange,
|
|
51
|
+
isFiltering: O.isFiltering,
|
|
52
|
+
canCreate: j.canCreate,
|
|
53
|
+
isAccessRestricted: !M && !j.canRead,
|
|
54
|
+
onCreateClick: j.canCreate ? N.openCreate : () => void 0,
|
|
55
|
+
onRowClick: L,
|
|
56
|
+
onRetry: O.onRetry,
|
|
57
|
+
labels: _,
|
|
59
58
|
emptyStateTestId: "counterparts-widget-empty-state",
|
|
60
59
|
accessRestrictedTestId: "counterparts-widget-access-restricted"
|
|
61
60
|
}),
|
|
62
61
|
/* @__PURE__ */ m(n, {
|
|
63
|
-
open:
|
|
62
|
+
open: D === "create",
|
|
64
63
|
onOpenChange: (e) => {
|
|
65
|
-
e ||
|
|
64
|
+
e || N.close();
|
|
66
65
|
},
|
|
67
66
|
mode: "create",
|
|
68
67
|
counterpartMode: t,
|
|
69
|
-
values:
|
|
70
|
-
errors:
|
|
71
|
-
stateOptions:
|
|
72
|
-
inProgress:
|
|
73
|
-
submitDisabled:
|
|
74
|
-
onChange: (e) =>
|
|
68
|
+
values: N.values,
|
|
69
|
+
errors: N.errors,
|
|
70
|
+
stateOptions: T,
|
|
71
|
+
inProgress: N.isSubmitting,
|
|
72
|
+
submitDisabled: N.isSubmitting,
|
|
73
|
+
onChange: (e) => N.setValues((t) => ({
|
|
75
74
|
...t,
|
|
76
75
|
...e
|
|
77
76
|
})),
|
|
78
|
-
onAddressChange: (e) =>
|
|
77
|
+
onAddressChange: (e) => N.setValues((t) => ({
|
|
79
78
|
...t,
|
|
80
79
|
address: {
|
|
81
80
|
...t.address,
|
|
82
81
|
...e
|
|
83
82
|
}
|
|
84
83
|
})),
|
|
85
|
-
onBankAccountChange: (e) =>
|
|
84
|
+
onBankAccountChange: (e) => N.setValues((t) => ({
|
|
86
85
|
...t,
|
|
87
86
|
bankAccount: {
|
|
88
87
|
...t.bankAccount,
|
|
89
88
|
...e
|
|
90
89
|
}
|
|
91
90
|
})),
|
|
92
|
-
onSubmit:
|
|
93
|
-
onCancel:
|
|
91
|
+
onSubmit: N.submit,
|
|
92
|
+
onCancel: N.close,
|
|
94
93
|
sections: { address: "collapsible" },
|
|
95
|
-
sectionsToExpand:
|
|
96
|
-
onAddressExpand:
|
|
97
|
-
labels:
|
|
94
|
+
sectionsToExpand: N.sectionsToExpand,
|
|
95
|
+
onAddressExpand: N.expandAddress,
|
|
96
|
+
labels: v
|
|
98
97
|
}),
|
|
99
98
|
/* @__PURE__ */ m(u, {
|
|
100
|
-
open:
|
|
99
|
+
open: E !== void 0 && (D === "none" || D === "edit"),
|
|
101
100
|
onOpenChange: (e) => {
|
|
102
|
-
e ||
|
|
101
|
+
e || R();
|
|
103
102
|
},
|
|
104
|
-
privacyResetKey:
|
|
103
|
+
privacyResetKey: E,
|
|
105
104
|
mode: t,
|
|
106
|
-
counterpart:
|
|
107
|
-
isLoading:
|
|
108
|
-
isError:
|
|
109
|
-
canEdit:
|
|
110
|
-
canDelete:
|
|
111
|
-
onEdit:
|
|
112
|
-
onDelete:
|
|
113
|
-
onClose:
|
|
114
|
-
onAddAddress:
|
|
115
|
-
onEditAddress:
|
|
116
|
-
onAddBankAccount:
|
|
117
|
-
onEditBankAccount:
|
|
118
|
-
onViewAllDocuments:
|
|
119
|
-
onDeleteBankAccount: (e) =>
|
|
105
|
+
counterpart: A,
|
|
106
|
+
isLoading: k.isLoading,
|
|
107
|
+
isError: k.isError,
|
|
108
|
+
canEdit: j.canUpdate && !(t === "vendor" && (k.isBankAccountsLoading || k.isBankAccountsError)),
|
|
109
|
+
canDelete: j.canDelete,
|
|
110
|
+
onEdit: N.openEdit,
|
|
111
|
+
onDelete: I.requestDeleteCounterpart,
|
|
112
|
+
onClose: R,
|
|
113
|
+
onAddAddress: F.openCreate,
|
|
114
|
+
onEditAddress: F.openEdit,
|
|
115
|
+
onAddBankAccount: P.form.openCreate,
|
|
116
|
+
onEditBankAccount: P.form.openEdit,
|
|
117
|
+
onViewAllDocuments: g,
|
|
118
|
+
onDeleteBankAccount: (e) => I.requestDelete({
|
|
120
119
|
kind: "bankAccount",
|
|
121
120
|
id: e,
|
|
122
|
-
name:
|
|
121
|
+
name: k.bankItems.find((t) => t.id === e)?.primary ?? ""
|
|
123
122
|
}),
|
|
124
|
-
editForm:
|
|
125
|
-
values:
|
|
126
|
-
errors:
|
|
127
|
-
stateOptions:
|
|
128
|
-
inProgress:
|
|
129
|
-
submitDisabled:
|
|
130
|
-
onChange: (e) =>
|
|
123
|
+
editForm: D === "edit" ? {
|
|
124
|
+
values: N.values,
|
|
125
|
+
errors: N.errors,
|
|
126
|
+
stateOptions: T,
|
|
127
|
+
inProgress: N.isSubmitting,
|
|
128
|
+
submitDisabled: N.isSubmitting,
|
|
129
|
+
onChange: (e) => N.setValues((t) => ({
|
|
131
130
|
...t,
|
|
132
131
|
...e
|
|
133
132
|
})),
|
|
134
|
-
onAddressChange: (e) =>
|
|
133
|
+
onAddressChange: (e) => N.setValues((t) => ({
|
|
135
134
|
...t,
|
|
136
135
|
address: {
|
|
137
136
|
...t.address,
|
|
138
137
|
...e
|
|
139
138
|
}
|
|
140
139
|
})),
|
|
141
|
-
onBankAccountChange: (e) =>
|
|
140
|
+
onBankAccountChange: (e) => N.setValues((t) => ({
|
|
142
141
|
...t,
|
|
143
142
|
bankAccount: {
|
|
144
143
|
...t.bankAccount,
|
|
145
144
|
...e
|
|
146
145
|
}
|
|
147
146
|
})),
|
|
148
|
-
onSubmit:
|
|
149
|
-
onCancel:
|
|
147
|
+
onSubmit: N.submit,
|
|
148
|
+
onCancel: N.close,
|
|
150
149
|
sections: { address: "collapsible" },
|
|
151
|
-
sectionsToExpand:
|
|
152
|
-
labels:
|
|
150
|
+
sectionsToExpand: N.sectionsToExpand,
|
|
151
|
+
labels: v
|
|
153
152
|
} : void 0,
|
|
154
|
-
labels:
|
|
153
|
+
labels: y
|
|
155
154
|
}),
|
|
156
155
|
/* @__PURE__ */ m(r, {
|
|
157
|
-
open:
|
|
156
|
+
open: P.form.sheet.open,
|
|
158
157
|
onOpenChange: (e) => {
|
|
159
|
-
e ||
|
|
158
|
+
e || P.form.close();
|
|
160
159
|
},
|
|
161
|
-
mode:
|
|
162
|
-
values:
|
|
163
|
-
errors:
|
|
164
|
-
currencyOptions:
|
|
165
|
-
inProgress:
|
|
166
|
-
onChange: (e) =>
|
|
160
|
+
mode: P.form.sheet.mode,
|
|
161
|
+
values: P.form.values,
|
|
162
|
+
errors: P.form.errors,
|
|
163
|
+
currencyOptions: P.currencyOptions,
|
|
164
|
+
inProgress: P.inProgress,
|
|
165
|
+
onChange: (e) => P.form.setValues((t) => ({
|
|
167
166
|
...t,
|
|
168
167
|
...e
|
|
169
168
|
})),
|
|
170
|
-
onSubmit:
|
|
171
|
-
onCancel:
|
|
172
|
-
labels:
|
|
169
|
+
onSubmit: P.form.submit,
|
|
170
|
+
onCancel: P.form.close,
|
|
171
|
+
labels: b
|
|
173
172
|
}),
|
|
174
173
|
/* @__PURE__ */ m(i, {
|
|
175
|
-
open:
|
|
174
|
+
open: F.open,
|
|
176
175
|
onOpenChange: (e) => {
|
|
177
|
-
e ||
|
|
176
|
+
e || F.close();
|
|
178
177
|
},
|
|
179
|
-
values:
|
|
180
|
-
errors:
|
|
181
|
-
stateOptions:
|
|
182
|
-
inProgress:
|
|
183
|
-
formError:
|
|
184
|
-
onChange: (e) =>
|
|
178
|
+
values: F.values,
|
|
179
|
+
errors: F.errors,
|
|
180
|
+
stateOptions: T,
|
|
181
|
+
inProgress: F.isPending,
|
|
182
|
+
formError: F.formError,
|
|
183
|
+
onChange: (e) => F.setValues((t) => ({
|
|
185
184
|
...t,
|
|
186
185
|
...e
|
|
187
186
|
})),
|
|
188
|
-
onSubmit:
|
|
189
|
-
onCancel:
|
|
190
|
-
labels:
|
|
187
|
+
onSubmit: F.submit,
|
|
188
|
+
onCancel: F.close,
|
|
189
|
+
labels: x
|
|
191
190
|
}),
|
|
192
191
|
/* @__PURE__ */ m(a, {
|
|
193
|
-
open:
|
|
192
|
+
open: I.target !== null,
|
|
194
193
|
onOpenChange: (e) => {
|
|
195
|
-
e ||
|
|
194
|
+
e || I.close();
|
|
196
195
|
},
|
|
197
|
-
title:
|
|
198
|
-
message:
|
|
199
|
-
isDeleting:
|
|
200
|
-
onConfirm:
|
|
201
|
-
onCancel:
|
|
202
|
-
labels:
|
|
196
|
+
title: I.dialogTitle,
|
|
197
|
+
message: I.dialogMessage,
|
|
198
|
+
isDeleting: I.isDeleting,
|
|
199
|
+
onConfirm: I.confirm,
|
|
200
|
+
onCancel: I.close,
|
|
201
|
+
labels: S
|
|
203
202
|
})
|
|
204
203
|
] });
|
|
205
204
|
}
|