@tesouro/embedded-components-react 0.3.1 → 0.3.5

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 (50) hide show
  1. package/README.md +7 -10
  2. package/dist/experimental/WidgetSuite.d.ts +2 -2
  3. package/dist/experimental/index.d.ts +2 -2
  4. package/dist/index.d.ts +1 -23
  5. package/dist/lib/BankAccountsWidget.d.ts +0 -1
  6. package/dist/lib/ChartOfAccountsWidget.d.ts +1 -5
  7. package/dist/lib/CounterpartsWidget.d.ts +0 -9
  8. package/dist/lib/ExpenseManagementWidget.d.ts +0 -1
  9. package/dist/lib/ProductsWidget.d.ts +0 -1
  10. package/dist/lib/ReceivablesWidget.d.ts +0 -1
  11. package/dist/lib/SettingsWidget.d.ts +0 -1
  12. package/dist/lib/TagsWidget.d.ts +0 -1
  13. package/dist/lib/TeamWidget.d.ts +0 -3
  14. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index8.js +0 -1
  15. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/index7.js +64 -65
  16. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/ui/dist/lib/BankAccountsWidgetUi.js +35 -36
  17. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/ui/dist/lib/BankingHeader.js +35 -42
  18. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/ui/dist/lib/labels.js +0 -1
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index10.js +3 -3
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +1 -1
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +0 -1
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index43.js +1 -4
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index44.js +4 -7
  24. package/dist/libs/tesouro-embedded-components-react/cards-widget/ui/dist/lib/CardsList/CardsList.js +0 -1
  25. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/index8.js +106 -107
  26. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index2.js +0 -2
  27. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index3.js +85 -93
  28. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index10.js +1 -1
  29. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpenseManagementWidgetUi/ExpenseManagementWidgetUi.js +4 -7
  30. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpenseManagementWidgetUi/labels.js +0 -1
  31. package/dist/libs/tesouro-embedded-components-react/gl-code-table-widget/ui/dist/index2.js +0 -1
  32. package/dist/libs/tesouro-embedded-components-react/gl-code-table-widget/ui/dist/index3.js +113 -115
  33. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index16.js +150 -155
  34. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index2.js +0 -1
  35. package/dist/libs/tesouro-embedded-components-react/products-widget/ui/dist/index2.js +0 -1
  36. package/dist/libs/tesouro-embedded-components-react/products-widget/ui/dist/index4.js +86 -91
  37. package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index5.js +20 -22
  38. package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index6.js +2 -6
  39. package/dist/libs/tesouro-embedded-components-react/settings-widget/ui/dist/lib/SettingsWidgetUi/SettingsWidgetUi.js +25 -26
  40. package/dist/libs/tesouro-embedded-components-react/settings-widget/ui/dist/lib/SettingsWidgetUi/labels.js +1 -1
  41. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index11.js +1 -1
  42. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/zod.gen.js +2781 -2775
  43. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  44. package/dist/libs/tesouro-embedded-components-react/tags-widget/feature/dist/index9.js +2 -2
  45. package/dist/libs/tesouro-embedded-components-react/tags-widget/ui/dist/index2.js +0 -1
  46. package/dist/libs/tesouro-embedded-components-react/tags-widget/ui/dist/index3.js +67 -68
  47. package/dist/libs/tesouro-embedded-components-react/team-widget/feature/dist/index17.js +239 -241
  48. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index7.js +1 -6
  49. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index8.js +53 -53
  50. 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, title: l, bankDisplayName: u, bankLogoSrc: d, bankLogoAlt: f, availableBalanceLabel: p, shouldDisplayAvailableBalance: m, isBankingTaglineVisible: h }) {
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
- /* @__PURE__ */ o(a, {
14
- variant: "h1",
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
- h && u ? /* @__PURE__ */ s("div", {
18
- className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:gap-1",
19
- children: [/* @__PURE__ */ o(a, {
20
- component: "span",
21
- variant: "body1",
22
- color: "muted",
23
- children: e.bankingTaglinePrefix
24
- }), d ? /* @__PURE__ */ o("img", {
25
- src: d,
26
- alt: f ?? u,
27
- className: "ttw:block ttw:h-auto ttw:max-w-[120px]"
28
- }) : /* @__PURE__ */ o(a, {
29
- component: "span",
30
- variant: "body1",
31
- color: "muted",
32
- children: u
33
- })]
34
- }) : null,
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() {
@@ -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.",
@@ -18,9 +18,9 @@ function u({ ref: u, payable: d, poweredByBankName: f, labels: p }) {
18
18
  amountDueMinorUnits: e(d) ?? 0,
19
19
  currencyCode: d.currency ?? void 0,
20
20
  dueDate: d.due_date,
21
- vendorName: m?.name,
22
- vendorEmail: m?.email,
23
- vendorBankAccount: m?.bank_account,
21
+ vendorName: m?.name ?? void 0,
22
+ vendorEmail: m?.email ?? void 0,
23
+ vendorBankAccount: m?.bank_account ?? void 0,
24
24
  poweredByBankName: f,
25
25
  labels: p
26
26
  });
@@ -70,7 +70,7 @@ function y({ enabled: y = !0, onOpenBill: b, duplicateBillIds: x, duplicateBadge
70
70
  E((t) => typeof e == "function" ? e(t) : e), F();
71
71
  }, [F]), K = p((e) => {
72
72
  O(e), F();
73
- }, [F]), q = p(() => A(R.data?.next_pagination_token), [R.data?.next_pagination_token]), J = p(() => A(R.data?.prev_pagination_token), [R.data?.prev_pagination_token]), Y = p(() => {
73
+ }, [F]), q = p(() => A(R.data?.next_pagination_token ?? void 0), [R.data?.next_pagination_token]), J = p(() => A(R.data?.prev_pagination_token ?? void 0), [R.data?.prev_pagination_token]), Y = p(() => {
74
74
  R.refetch();
75
75
  }, [R.refetch]);
76
76
  return {
@@ -62,7 +62,6 @@ function w({ labels: i, tabsLabels: p, approvalPolicyLabels: w, approvalPolicyCo
62
62
  content: /* @__PURE__ */ b(h, {
63
63
  ...E,
64
64
  counterpartType: "vendor",
65
- showTitle: !1,
66
65
  onViewAllDocuments: () => P(S.Bills)
67
66
  })
68
67
  }];
@@ -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__ */ o("div", {
16
+ children: [/* @__PURE__ */ a("div", {
17
17
  className: "ttw:min-w-0",
18
- children: [/* @__PURE__ */ a("h2", {
19
- className: "ttw:text-xl ttw:font-semibold ttw:text-foreground",
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,
@@ -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",
@@ -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, showTitle: g, onViewAllDocuments: _, screenLabels: v, formLabels: y, detailsLabels: b, bankAccountLabels: x, addressLabels: S, deleteLabels: C, messageLabels: w }) {
23
- let T = e();
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
- T(o.Mounted);
26
- }, [T]);
27
- let { stateOptions: E, selectedId: D, view: O, table: k, details: A, detailsSheetView: j, permissions: M, isPermissionLoading: N, form: P, bank: F, address: I, del: L, handleRowClick: R, closeDetails: z } = d({
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: b,
30
- messageLabels: w
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
- showTitle: g,
36
- counterparts: k.rows,
37
- isLoading: N || k.isLoading,
38
- isError: k.isError,
39
- sorting: k.sorting,
40
- onSortingChange: k.onSortingChange,
41
- pageSize: k.pageSize,
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: k.hasNextPage,
45
- hasPrevPage: k.hasPrevPage,
46
- onNextPage: k.onNextPage,
47
- onPrevPage: k.onPrevPage,
48
- searchValue: k.searchValue,
49
- onSearchChange: k.onSearchChange,
50
- entityFilter: k.entityFilter,
51
- onEntityFilterChange: k.onEntityFilterChange,
52
- isFiltering: k.isFiltering,
53
- canCreate: M.canCreate,
54
- isAccessRestricted: !N && !M.canRead,
55
- onCreateClick: M.canCreate ? P.openCreate : () => void 0,
56
- onRowClick: R,
57
- onRetry: k.onRetry,
58
- labels: v,
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: O === "create",
62
+ open: D === "create",
64
63
  onOpenChange: (e) => {
65
- e || P.close();
64
+ e || N.close();
66
65
  },
67
66
  mode: "create",
68
67
  counterpartMode: t,
69
- values: P.values,
70
- errors: P.errors,
71
- stateOptions: E,
72
- inProgress: P.isSubmitting,
73
- submitDisabled: P.isSubmitting,
74
- onChange: (e) => P.setValues((t) => ({
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) => P.setValues((t) => ({
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) => P.setValues((t) => ({
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: P.submit,
93
- onCancel: P.close,
91
+ onSubmit: N.submit,
92
+ onCancel: N.close,
94
93
  sections: { address: "collapsible" },
95
- sectionsToExpand: P.sectionsToExpand,
96
- onAddressExpand: P.expandAddress,
97
- labels: y
94
+ sectionsToExpand: N.sectionsToExpand,
95
+ onAddressExpand: N.expandAddress,
96
+ labels: v
98
97
  }),
99
98
  /* @__PURE__ */ m(u, {
100
- open: D !== void 0 && (O === "none" || O === "edit"),
99
+ open: E !== void 0 && (D === "none" || D === "edit"),
101
100
  onOpenChange: (e) => {
102
- e || z();
101
+ e || R();
103
102
  },
104
- privacyResetKey: D,
103
+ privacyResetKey: E,
105
104
  mode: t,
106
- counterpart: j,
107
- isLoading: A.isLoading,
108
- isError: A.isError,
109
- canEdit: M.canUpdate && !(t === "vendor" && (A.isBankAccountsLoading || A.isBankAccountsError)),
110
- canDelete: M.canDelete,
111
- onEdit: P.openEdit,
112
- onDelete: L.requestDeleteCounterpart,
113
- onClose: z,
114
- onAddAddress: I.openCreate,
115
- onEditAddress: I.openEdit,
116
- onAddBankAccount: F.form.openCreate,
117
- onEditBankAccount: F.form.openEdit,
118
- onViewAllDocuments: _,
119
- onDeleteBankAccount: (e) => L.requestDelete({
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: A.bankItems.find((t) => t.id === e)?.primary ?? ""
121
+ name: k.bankItems.find((t) => t.id === e)?.primary ?? ""
123
122
  }),
124
- editForm: O === "edit" ? {
125
- values: P.values,
126
- errors: P.errors,
127
- stateOptions: E,
128
- inProgress: P.isSubmitting,
129
- submitDisabled: P.isSubmitting,
130
- onChange: (e) => P.setValues((t) => ({
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) => P.setValues((t) => ({
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) => P.setValues((t) => ({
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: P.submit,
149
- onCancel: P.close,
147
+ onSubmit: N.submit,
148
+ onCancel: N.close,
150
149
  sections: { address: "collapsible" },
151
- sectionsToExpand: P.sectionsToExpand,
152
- labels: y
150
+ sectionsToExpand: N.sectionsToExpand,
151
+ labels: v
153
152
  } : void 0,
154
- labels: b
153
+ labels: y
155
154
  }),
156
155
  /* @__PURE__ */ m(r, {
157
- open: F.form.sheet.open,
156
+ open: P.form.sheet.open,
158
157
  onOpenChange: (e) => {
159
- e || F.form.close();
158
+ e || P.form.close();
160
159
  },
161
- mode: F.form.sheet.mode,
162
- values: F.form.values,
163
- errors: F.form.errors,
164
- currencyOptions: F.currencyOptions,
165
- inProgress: F.inProgress,
166
- onChange: (e) => F.form.setValues((t) => ({
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: F.form.submit,
171
- onCancel: F.form.close,
172
- labels: x
169
+ onSubmit: P.form.submit,
170
+ onCancel: P.form.close,
171
+ labels: b
173
172
  }),
174
173
  /* @__PURE__ */ m(i, {
175
- open: I.open,
174
+ open: F.open,
176
175
  onOpenChange: (e) => {
177
- e || I.close();
176
+ e || F.close();
178
177
  },
179
- values: I.values,
180
- errors: I.errors,
181
- stateOptions: E,
182
- inProgress: I.isPending,
183
- formError: I.formError,
184
- onChange: (e) => I.setValues((t) => ({
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: I.submit,
189
- onCancel: I.close,
190
- labels: S
187
+ onSubmit: F.submit,
188
+ onCancel: F.close,
189
+ labels: x
191
190
  }),
192
191
  /* @__PURE__ */ m(a, {
193
- open: L.target !== null,
192
+ open: I.target !== null,
194
193
  onOpenChange: (e) => {
195
- e || L.close();
194
+ e || I.close();
196
195
  },
197
- title: L.dialogTitle,
198
- message: L.dialogMessage,
199
- isDeleting: L.isDeleting,
200
- onConfirm: L.confirm,
201
- onCancel: L.close,
202
- labels: C
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
  }
@@ -1,7 +1,5 @@
1
1
  //#region ../../libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index2.js
2
2
  var e = {
3
- customersTitle: "Customers",
4
- vendorsTitle: "Vendors",
5
3
  createButton: "Create new",
6
4
  vendorsCreateButton: "Add vendor",
7
5
  columnName: "Name",