@tesouro/embedded-components-react 0.7.22 → 0.7.24
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/dist/index.d.ts +9 -1
- package/dist/lib/CounterpartsWidget.d.ts +9 -1
- package/dist/lib/CounterpartsWidgetPublic.d.ts +9 -1
- package/dist/lib/CustomersWidget.d.ts +9 -1
- package/dist/lib/ReceivablesWidget.d.ts +9 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index32.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/CounterpartDetailsContainer.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/CounterpartsWidget.js +50 -51
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/viewModels.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index2.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index4.js +72 -128
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index5.js +183 -38
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index6.js +503 -193
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivablesWidget.js +57 -55
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/index.js +14 -14
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/helpers.js +114 -102
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index.js +12 -11
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index10.js +534 -7
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index11.js +7 -179
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index12.js +179 -6
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index13.js +3 -1
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index14.js +4 -28
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index15.js +28 -4
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index16.js +4 -0
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index2.js +10 -2
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index7.js +140 -55
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index8.js +53 -47
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index9.js +51 -539
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index7.js +0 -520
package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index11.js
CHANGED
|
@@ -1,179 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
function h({ open: h, onOpenChange: g, mode: _, values: v, errors: y, currencyOptions: b, inProgress: x, onChange: S, onSubmit: C, onCancel: w, labels: T }) {
|
|
9
|
-
let E = {
|
|
10
|
-
...l,
|
|
11
|
-
...T,
|
|
12
|
-
fieldMarkers: {
|
|
13
|
-
...l.fieldMarkers,
|
|
14
|
-
...T?.fieldMarkers
|
|
15
|
-
}
|
|
16
|
-
}, D = f(), O = _ === "edit" ? E.editTitle : E.createTitle;
|
|
17
|
-
return /* @__PURE__ */ m(d, {
|
|
18
|
-
open: h,
|
|
19
|
-
onOpenChange: g,
|
|
20
|
-
title: O,
|
|
21
|
-
formError: y?.form,
|
|
22
|
-
inProgress: x,
|
|
23
|
-
submitLabel: _ === "edit" ? E.saveButton : E.createButton,
|
|
24
|
-
cancelLabel: E.cancelButton,
|
|
25
|
-
onSubmit: C,
|
|
26
|
-
onCancel: w,
|
|
27
|
-
children: [
|
|
28
|
-
/* @__PURE__ */ m("div", {
|
|
29
|
-
className: "ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
30
|
-
children: [
|
|
31
|
-
/* @__PURE__ */ p(r, {
|
|
32
|
-
htmlFor: `${D}-name`,
|
|
33
|
-
requirement: t.Optional,
|
|
34
|
-
labels: E.fieldMarkers,
|
|
35
|
-
children: E.nameLabel
|
|
36
|
-
}),
|
|
37
|
-
/* @__PURE__ */ p(n, {
|
|
38
|
-
id: `${D}-name`,
|
|
39
|
-
autoFocus: !0,
|
|
40
|
-
value: v.name,
|
|
41
|
-
"aria-invalid": !!y?.name,
|
|
42
|
-
onChange: (e) => S({ name: e.target.value })
|
|
43
|
-
}),
|
|
44
|
-
/* @__PURE__ */ p(u, { message: y?.name })
|
|
45
|
-
]
|
|
46
|
-
}),
|
|
47
|
-
/* @__PURE__ */ m("div", {
|
|
48
|
-
className: "ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
49
|
-
children: [/* @__PURE__ */ p(r, {
|
|
50
|
-
htmlFor: `${D}-holder`,
|
|
51
|
-
children: E.accountHolderNameLabel
|
|
52
|
-
}), /* @__PURE__ */ p(n, {
|
|
53
|
-
id: `${D}-holder`,
|
|
54
|
-
value: v.accountHolderName,
|
|
55
|
-
onChange: (e) => S({ accountHolderName: e.target.value })
|
|
56
|
-
})]
|
|
57
|
-
}),
|
|
58
|
-
/* @__PURE__ */ m("div", {
|
|
59
|
-
className: "ttw:grid ttw:grid-cols-2 ttw:gap-4",
|
|
60
|
-
children: [/* @__PURE__ */ m("div", {
|
|
61
|
-
className: "ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
62
|
-
children: [
|
|
63
|
-
/* @__PURE__ */ p(r, {
|
|
64
|
-
htmlFor: `${D}-account-number`,
|
|
65
|
-
children: E.accountNumberLabel
|
|
66
|
-
}),
|
|
67
|
-
/* @__PURE__ */ p(n, {
|
|
68
|
-
id: `${D}-account-number`,
|
|
69
|
-
value: v.accountNumber,
|
|
70
|
-
"aria-invalid": !!y?.accountNumber,
|
|
71
|
-
onChange: (e) => S({ accountNumber: e.target.value })
|
|
72
|
-
}),
|
|
73
|
-
/* @__PURE__ */ p(u, { message: y?.accountNumber })
|
|
74
|
-
]
|
|
75
|
-
}), /* @__PURE__ */ m("div", {
|
|
76
|
-
className: "ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
77
|
-
children: [
|
|
78
|
-
/* @__PURE__ */ p(r, {
|
|
79
|
-
htmlFor: `${D}-routing`,
|
|
80
|
-
children: E.routingNumberLabel
|
|
81
|
-
}),
|
|
82
|
-
/* @__PURE__ */ p(n, {
|
|
83
|
-
id: `${D}-routing`,
|
|
84
|
-
value: v.routingNumber,
|
|
85
|
-
"aria-invalid": !!y?.routingNumber,
|
|
86
|
-
onChange: (e) => S({ routingNumber: e.target.value })
|
|
87
|
-
}),
|
|
88
|
-
/* @__PURE__ */ p(u, { message: y?.routingNumber })
|
|
89
|
-
]
|
|
90
|
-
})]
|
|
91
|
-
}),
|
|
92
|
-
/* @__PURE__ */ m("div", {
|
|
93
|
-
className: "ttw:grid ttw:grid-cols-2 ttw:gap-4",
|
|
94
|
-
children: [/* @__PURE__ */ m("div", {
|
|
95
|
-
className: "ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
96
|
-
children: [/* @__PURE__ */ p(r, {
|
|
97
|
-
htmlFor: `${D}-iban`,
|
|
98
|
-
children: E.ibanLabel
|
|
99
|
-
}), /* @__PURE__ */ p(n, {
|
|
100
|
-
id: `${D}-iban`,
|
|
101
|
-
value: v.iban,
|
|
102
|
-
onChange: (e) => S({ iban: e.target.value })
|
|
103
|
-
})]
|
|
104
|
-
}), /* @__PURE__ */ m("div", {
|
|
105
|
-
className: "ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
106
|
-
children: [/* @__PURE__ */ p(r, {
|
|
107
|
-
htmlFor: `${D}-bic`,
|
|
108
|
-
children: E.bicLabel
|
|
109
|
-
}), /* @__PURE__ */ p(n, {
|
|
110
|
-
id: `${D}-bic`,
|
|
111
|
-
value: v.bic,
|
|
112
|
-
onChange: (e) => S({ bic: e.target.value })
|
|
113
|
-
})]
|
|
114
|
-
})]
|
|
115
|
-
}),
|
|
116
|
-
/* @__PURE__ */ m("div", {
|
|
117
|
-
className: "ttw:grid ttw:grid-cols-2 ttw:gap-4",
|
|
118
|
-
children: [/* @__PURE__ */ m("div", {
|
|
119
|
-
className: "ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
120
|
-
children: [/* @__PURE__ */ p(r, {
|
|
121
|
-
htmlFor: `${D}-sort-code`,
|
|
122
|
-
children: E.sortCodeLabel
|
|
123
|
-
}), /* @__PURE__ */ p(n, {
|
|
124
|
-
id: `${D}-sort-code`,
|
|
125
|
-
value: v.sortCode,
|
|
126
|
-
onChange: (e) => S({ sortCode: e.target.value })
|
|
127
|
-
})]
|
|
128
|
-
}), /* @__PURE__ */ m("div", {
|
|
129
|
-
className: "ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
130
|
-
children: [
|
|
131
|
-
/* @__PURE__ */ p(r, {
|
|
132
|
-
htmlFor: `${D}-currency`,
|
|
133
|
-
children: E.currencyLabel
|
|
134
|
-
}),
|
|
135
|
-
/* @__PURE__ */ m(i, {
|
|
136
|
-
value: v.currency === "" ? void 0 : v.currency,
|
|
137
|
-
onValueChange: (e) => S({ currency: e }),
|
|
138
|
-
children: [/* @__PURE__ */ p(s, {
|
|
139
|
-
id: `${D}-currency`,
|
|
140
|
-
className: "ttw:w-full",
|
|
141
|
-
"aria-invalid": !!y?.currency,
|
|
142
|
-
children: /* @__PURE__ */ p(c, { placeholder: E.currencyPlaceholder })
|
|
143
|
-
}), /* @__PURE__ */ p(a, { children: b.map((e) => /* @__PURE__ */ p(o, {
|
|
144
|
-
value: e.value,
|
|
145
|
-
children: e.label
|
|
146
|
-
}, e.value)) })]
|
|
147
|
-
}),
|
|
148
|
-
/* @__PURE__ */ p(u, { message: y?.currency })
|
|
149
|
-
]
|
|
150
|
-
})]
|
|
151
|
-
}),
|
|
152
|
-
/* @__PURE__ */ m("div", {
|
|
153
|
-
className: "ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
154
|
-
children: [/* @__PURE__ */ p(r, {
|
|
155
|
-
htmlFor: `${D}-country`,
|
|
156
|
-
children: E.countryLabel
|
|
157
|
-
}), /* @__PURE__ */ p(n, {
|
|
158
|
-
id: `${D}-country`,
|
|
159
|
-
value: E.countryValue,
|
|
160
|
-
disabled: !0,
|
|
161
|
-
readOnly: !0
|
|
162
|
-
})]
|
|
163
|
-
}),
|
|
164
|
-
/* @__PURE__ */ m("div", {
|
|
165
|
-
className: "ttw:flex ttw:items-center ttw:gap-2",
|
|
166
|
-
children: [/* @__PURE__ */ p(e, {
|
|
167
|
-
id: `${D}-default`,
|
|
168
|
-
checked: v.isDefault,
|
|
169
|
-
onCheckedChange: (e) => S({ isDefault: e === !0 })
|
|
170
|
-
}), /* @__PURE__ */ p(r, {
|
|
171
|
-
htmlFor: `${D}-default`,
|
|
172
|
-
children: E.isDefaultLabel
|
|
173
|
-
})]
|
|
174
|
-
})
|
|
175
|
-
]
|
|
176
|
-
});
|
|
177
|
-
}
|
|
178
|
-
//#endregion
|
|
179
|
-
export { h as BankAccountFormSheet, h as default };
|
|
1
|
+
import "../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import "./index2.js";
|
|
3
|
+
import "./index4.js";
|
|
4
|
+
import "./index6.js";
|
|
5
|
+
import "./index9.js";
|
|
6
|
+
import "react";
|
|
7
|
+
import "react/jsx-runtime";
|
package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index12.js
CHANGED
|
@@ -1,6 +1,179 @@
|
|
|
1
|
-
import "../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
-
import "./index2.js";
|
|
3
|
-
import "./index4.js";
|
|
4
|
-
import "./
|
|
5
|
-
import "react";
|
|
6
|
-
import "react/jsx-runtime";
|
|
1
|
+
import { Checkbox as e, FieldRequirement as t, Input as n, Label as r, Select as i, SelectContent as a, SelectItem as o, SelectTrigger as s, SelectValue as c } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { BANK_ACCOUNT_FORM_SHEET_LABELS_EN as l } from "./index2.js";
|
|
3
|
+
import { FieldError as u } from "./index4.js";
|
|
4
|
+
import { FormSheet as d } from "./index9.js";
|
|
5
|
+
import { useId as f } from "react";
|
|
6
|
+
import { jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
7
|
+
//#region ../../libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index12.js
|
|
8
|
+
function h({ open: h, onOpenChange: g, mode: _, values: v, errors: y, currencyOptions: b, inProgress: x, onChange: S, onSubmit: C, onCancel: w, labels: T }) {
|
|
9
|
+
let E = {
|
|
10
|
+
...l,
|
|
11
|
+
...T,
|
|
12
|
+
fieldMarkers: {
|
|
13
|
+
...l.fieldMarkers,
|
|
14
|
+
...T?.fieldMarkers
|
|
15
|
+
}
|
|
16
|
+
}, D = f(), O = _ === "edit" ? E.editTitle : E.createTitle;
|
|
17
|
+
return /* @__PURE__ */ m(d, {
|
|
18
|
+
open: h,
|
|
19
|
+
onOpenChange: g,
|
|
20
|
+
title: O,
|
|
21
|
+
formError: y?.form,
|
|
22
|
+
inProgress: x,
|
|
23
|
+
submitLabel: _ === "edit" ? E.saveButton : E.createButton,
|
|
24
|
+
cancelLabel: E.cancelButton,
|
|
25
|
+
onSubmit: C,
|
|
26
|
+
onCancel: w,
|
|
27
|
+
children: [
|
|
28
|
+
/* @__PURE__ */ m("div", {
|
|
29
|
+
className: "ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
30
|
+
children: [
|
|
31
|
+
/* @__PURE__ */ p(r, {
|
|
32
|
+
htmlFor: `${D}-name`,
|
|
33
|
+
requirement: t.Optional,
|
|
34
|
+
labels: E.fieldMarkers,
|
|
35
|
+
children: E.nameLabel
|
|
36
|
+
}),
|
|
37
|
+
/* @__PURE__ */ p(n, {
|
|
38
|
+
id: `${D}-name`,
|
|
39
|
+
autoFocus: !0,
|
|
40
|
+
value: v.name,
|
|
41
|
+
"aria-invalid": !!y?.name,
|
|
42
|
+
onChange: (e) => S({ name: e.target.value })
|
|
43
|
+
}),
|
|
44
|
+
/* @__PURE__ */ p(u, { message: y?.name })
|
|
45
|
+
]
|
|
46
|
+
}),
|
|
47
|
+
/* @__PURE__ */ m("div", {
|
|
48
|
+
className: "ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
49
|
+
children: [/* @__PURE__ */ p(r, {
|
|
50
|
+
htmlFor: `${D}-holder`,
|
|
51
|
+
children: E.accountHolderNameLabel
|
|
52
|
+
}), /* @__PURE__ */ p(n, {
|
|
53
|
+
id: `${D}-holder`,
|
|
54
|
+
value: v.accountHolderName,
|
|
55
|
+
onChange: (e) => S({ accountHolderName: e.target.value })
|
|
56
|
+
})]
|
|
57
|
+
}),
|
|
58
|
+
/* @__PURE__ */ m("div", {
|
|
59
|
+
className: "ttw:grid ttw:grid-cols-2 ttw:gap-4",
|
|
60
|
+
children: [/* @__PURE__ */ m("div", {
|
|
61
|
+
className: "ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
62
|
+
children: [
|
|
63
|
+
/* @__PURE__ */ p(r, {
|
|
64
|
+
htmlFor: `${D}-account-number`,
|
|
65
|
+
children: E.accountNumberLabel
|
|
66
|
+
}),
|
|
67
|
+
/* @__PURE__ */ p(n, {
|
|
68
|
+
id: `${D}-account-number`,
|
|
69
|
+
value: v.accountNumber,
|
|
70
|
+
"aria-invalid": !!y?.accountNumber,
|
|
71
|
+
onChange: (e) => S({ accountNumber: e.target.value })
|
|
72
|
+
}),
|
|
73
|
+
/* @__PURE__ */ p(u, { message: y?.accountNumber })
|
|
74
|
+
]
|
|
75
|
+
}), /* @__PURE__ */ m("div", {
|
|
76
|
+
className: "ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
77
|
+
children: [
|
|
78
|
+
/* @__PURE__ */ p(r, {
|
|
79
|
+
htmlFor: `${D}-routing`,
|
|
80
|
+
children: E.routingNumberLabel
|
|
81
|
+
}),
|
|
82
|
+
/* @__PURE__ */ p(n, {
|
|
83
|
+
id: `${D}-routing`,
|
|
84
|
+
value: v.routingNumber,
|
|
85
|
+
"aria-invalid": !!y?.routingNumber,
|
|
86
|
+
onChange: (e) => S({ routingNumber: e.target.value })
|
|
87
|
+
}),
|
|
88
|
+
/* @__PURE__ */ p(u, { message: y?.routingNumber })
|
|
89
|
+
]
|
|
90
|
+
})]
|
|
91
|
+
}),
|
|
92
|
+
/* @__PURE__ */ m("div", {
|
|
93
|
+
className: "ttw:grid ttw:grid-cols-2 ttw:gap-4",
|
|
94
|
+
children: [/* @__PURE__ */ m("div", {
|
|
95
|
+
className: "ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
96
|
+
children: [/* @__PURE__ */ p(r, {
|
|
97
|
+
htmlFor: `${D}-iban`,
|
|
98
|
+
children: E.ibanLabel
|
|
99
|
+
}), /* @__PURE__ */ p(n, {
|
|
100
|
+
id: `${D}-iban`,
|
|
101
|
+
value: v.iban,
|
|
102
|
+
onChange: (e) => S({ iban: e.target.value })
|
|
103
|
+
})]
|
|
104
|
+
}), /* @__PURE__ */ m("div", {
|
|
105
|
+
className: "ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
106
|
+
children: [/* @__PURE__ */ p(r, {
|
|
107
|
+
htmlFor: `${D}-bic`,
|
|
108
|
+
children: E.bicLabel
|
|
109
|
+
}), /* @__PURE__ */ p(n, {
|
|
110
|
+
id: `${D}-bic`,
|
|
111
|
+
value: v.bic,
|
|
112
|
+
onChange: (e) => S({ bic: e.target.value })
|
|
113
|
+
})]
|
|
114
|
+
})]
|
|
115
|
+
}),
|
|
116
|
+
/* @__PURE__ */ m("div", {
|
|
117
|
+
className: "ttw:grid ttw:grid-cols-2 ttw:gap-4",
|
|
118
|
+
children: [/* @__PURE__ */ m("div", {
|
|
119
|
+
className: "ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
120
|
+
children: [/* @__PURE__ */ p(r, {
|
|
121
|
+
htmlFor: `${D}-sort-code`,
|
|
122
|
+
children: E.sortCodeLabel
|
|
123
|
+
}), /* @__PURE__ */ p(n, {
|
|
124
|
+
id: `${D}-sort-code`,
|
|
125
|
+
value: v.sortCode,
|
|
126
|
+
onChange: (e) => S({ sortCode: e.target.value })
|
|
127
|
+
})]
|
|
128
|
+
}), /* @__PURE__ */ m("div", {
|
|
129
|
+
className: "ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
130
|
+
children: [
|
|
131
|
+
/* @__PURE__ */ p(r, {
|
|
132
|
+
htmlFor: `${D}-currency`,
|
|
133
|
+
children: E.currencyLabel
|
|
134
|
+
}),
|
|
135
|
+
/* @__PURE__ */ m(i, {
|
|
136
|
+
value: v.currency === "" ? void 0 : v.currency,
|
|
137
|
+
onValueChange: (e) => S({ currency: e }),
|
|
138
|
+
children: [/* @__PURE__ */ p(s, {
|
|
139
|
+
id: `${D}-currency`,
|
|
140
|
+
className: "ttw:w-full",
|
|
141
|
+
"aria-invalid": !!y?.currency,
|
|
142
|
+
children: /* @__PURE__ */ p(c, { placeholder: E.currencyPlaceholder })
|
|
143
|
+
}), /* @__PURE__ */ p(a, { children: b.map((e) => /* @__PURE__ */ p(o, {
|
|
144
|
+
value: e.value,
|
|
145
|
+
children: e.label
|
|
146
|
+
}, e.value)) })]
|
|
147
|
+
}),
|
|
148
|
+
/* @__PURE__ */ p(u, { message: y?.currency })
|
|
149
|
+
]
|
|
150
|
+
})]
|
|
151
|
+
}),
|
|
152
|
+
/* @__PURE__ */ m("div", {
|
|
153
|
+
className: "ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
154
|
+
children: [/* @__PURE__ */ p(r, {
|
|
155
|
+
htmlFor: `${D}-country`,
|
|
156
|
+
children: E.countryLabel
|
|
157
|
+
}), /* @__PURE__ */ p(n, {
|
|
158
|
+
id: `${D}-country`,
|
|
159
|
+
value: E.countryValue,
|
|
160
|
+
disabled: !0,
|
|
161
|
+
readOnly: !0
|
|
162
|
+
})]
|
|
163
|
+
}),
|
|
164
|
+
/* @__PURE__ */ m("div", {
|
|
165
|
+
className: "ttw:flex ttw:items-center ttw:gap-2",
|
|
166
|
+
children: [/* @__PURE__ */ p(e, {
|
|
167
|
+
id: `${D}-default`,
|
|
168
|
+
checked: v.isDefault,
|
|
169
|
+
onCheckedChange: (e) => S({ isDefault: e === !0 })
|
|
170
|
+
}), /* @__PURE__ */ p(r, {
|
|
171
|
+
htmlFor: `${D}-default`,
|
|
172
|
+
children: E.isDefaultLabel
|
|
173
|
+
})]
|
|
174
|
+
})
|
|
175
|
+
]
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
//#endregion
|
|
179
|
+
export { h as BankAccountFormSheet, h as default };
|
package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index14.js
CHANGED
|
@@ -1,28 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
function u({ open: u, onOpenChange: d, title: f, message: p, isDeleting: m, onConfirm: h, onCancel: g, labels: _ }) {
|
|
6
|
-
let v = {
|
|
7
|
-
...s,
|
|
8
|
-
..._
|
|
9
|
-
};
|
|
10
|
-
return /* @__PURE__ */ c(e, {
|
|
11
|
-
open: u,
|
|
12
|
-
onOpenChange: d,
|
|
13
|
-
children: /* @__PURE__ */ l(t, { children: [/* @__PURE__ */ l(i, { children: [/* @__PURE__ */ c(a, { children: f }), /* @__PURE__ */ c(n, { children: p })] }), /* @__PURE__ */ l(r, { children: [/* @__PURE__ */ c(o, {
|
|
14
|
-
variant: "ghost",
|
|
15
|
-
onClick: g,
|
|
16
|
-
disabled: m,
|
|
17
|
-
children: v.cancelButton
|
|
18
|
-
}), /* @__PURE__ */ c(o, {
|
|
19
|
-
variant: "destructive",
|
|
20
|
-
onClick: h,
|
|
21
|
-
disabled: m,
|
|
22
|
-
loading: m,
|
|
23
|
-
children: v.confirmButton
|
|
24
|
-
})] })] })
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
//#endregion
|
|
28
|
-
export { u as ConfirmDeleteDialog, u as default };
|
|
1
|
+
import "../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import "./index2.js";
|
|
3
|
+
import "./index6.js";
|
|
4
|
+
import "react/jsx-runtime";
|
package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index15.js
CHANGED
|
@@ -1,4 +1,28 @@
|
|
|
1
|
-
import "../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
-
import "./index2.js";
|
|
3
|
-
import "react/jsx-runtime";
|
|
4
|
-
|
|
1
|
+
import { AlertDialog as e, AlertDialogContent as t, AlertDialogDescription as n, AlertDialogFooter as r, AlertDialogHeader as i, AlertDialogTitle as a, Button as o } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { CONFIRM_DELETE_DIALOG_LABELS_EN as s } from "./index2.js";
|
|
3
|
+
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
4
|
+
//#region ../../libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index15.js
|
|
5
|
+
function u({ open: u, onOpenChange: d, title: f, message: p, isDeleting: m, onConfirm: h, onCancel: g, labels: _ }) {
|
|
6
|
+
let v = {
|
|
7
|
+
...s,
|
|
8
|
+
..._
|
|
9
|
+
};
|
|
10
|
+
return /* @__PURE__ */ c(e, {
|
|
11
|
+
open: u,
|
|
12
|
+
onOpenChange: d,
|
|
13
|
+
children: /* @__PURE__ */ l(t, { children: [/* @__PURE__ */ l(i, { children: [/* @__PURE__ */ c(a, { children: f }), /* @__PURE__ */ c(n, { children: p })] }), /* @__PURE__ */ l(r, { children: [/* @__PURE__ */ c(o, {
|
|
14
|
+
variant: "ghost",
|
|
15
|
+
onClick: g,
|
|
16
|
+
disabled: m,
|
|
17
|
+
children: v.cancelButton
|
|
18
|
+
}), /* @__PURE__ */ c(o, {
|
|
19
|
+
variant: "destructive",
|
|
20
|
+
onClick: h,
|
|
21
|
+
disabled: m,
|
|
22
|
+
loading: m,
|
|
23
|
+
children: v.confirmButton
|
|
24
|
+
})] })] })
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
//#endregion
|
|
28
|
+
export { u as ConfirmDeleteDialog, u as default };
|
package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index2.js
CHANGED
|
@@ -49,6 +49,10 @@ var n = {
|
|
|
49
49
|
emailLabel: "Email",
|
|
50
50
|
phoneLabel: "Phone",
|
|
51
51
|
taxIdLabel: "Tax ID",
|
|
52
|
+
taxIdSsnLabel: "Tax ID / SSN",
|
|
53
|
+
taxIdEinLabel: "Tax ID / EIN",
|
|
54
|
+
taxIdSsnPlaceholder: "e.g., 034-56-7890",
|
|
55
|
+
taxIdEinPlaceholder: "e.g., 12-3456789",
|
|
52
56
|
customerTaxIdHelp: "Required only if you'll issue a 1099 IRS form at year-end.",
|
|
53
57
|
vendorTaxIdHelp: "Required only if you'll file a 1099 IRS form for this vendor at year-end.",
|
|
54
58
|
paymentRemindersLabel: "Payment reminders",
|
|
@@ -60,9 +64,13 @@ var n = {
|
|
|
60
64
|
accountNumberLabel: "Account number",
|
|
61
65
|
addAddress: "Add address",
|
|
62
66
|
cancelButton: "Cancel",
|
|
63
|
-
|
|
67
|
+
createButtonCustomer: "Save customer",
|
|
68
|
+
createButtonVendor: "Save vendor",
|
|
64
69
|
saveButton: "Save",
|
|
65
|
-
address:
|
|
70
|
+
address: {
|
|
71
|
+
...r,
|
|
72
|
+
postalCode: "Postal code"
|
|
73
|
+
},
|
|
66
74
|
ach: i,
|
|
67
75
|
fieldMarkers: e,
|
|
68
76
|
requiredFieldsLegend: t
|