@tesouro/embedded-components-react 0.11.125 → 0.11.129
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/libs/tesouro-embedded-components-react/insights-widget/ui/dist/lib/InsightsWidget/SingleInsight/SingleInsight.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivablesWidget.js +290 -286
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablesWidget.js +9 -5
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index60.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/products-widget/ui/dist/index4.js +10 -10
- 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/sections/InvoicingSection.js +3 -3
- package/dist/packages/shared-ui-shadcn/dist/index.js +4431 -4196
- package/package.json +10 -10
|
@@ -145,9 +145,9 @@ function u({ auditHistoryLabels: u, counterpartMessageLabels: pe, embeddedBankNa
|
|
|
145
145
|
re() || (A(e.id), M(!0), h?.(e.id, e.type));
|
|
146
146
|
}, [h]), Q = a(() => {
|
|
147
147
|
M(!1), A(void 0), I(void 0);
|
|
148
|
-
}, []), { showCustomer:
|
|
149
|
-
Q(),
|
|
150
|
-
}, [Q,
|
|
148
|
+
}, []), { showCustomer: We } = W, Ge = a((e) => {
|
|
149
|
+
Q(), We(e.id);
|
|
150
|
+
}, [Q, We]), $ = a((e) => {
|
|
151
151
|
C && (Q(), J("invoice", { customerId: e.id }));
|
|
152
152
|
}, [
|
|
153
153
|
C,
|
|
@@ -188,9 +188,13 @@ function u({ auditHistoryLabels: u, counterpartMessageLabels: pe, embeddedBankNa
|
|
|
188
188
|
closeCustomerDetails: ke,
|
|
189
189
|
openCustomerDetails: R ? Oe : void 0,
|
|
190
190
|
customerDetailsActions: Ee ? {
|
|
191
|
-
onViewAllDocuments: b ?
|
|
192
|
-
onCreateDocument: x ?
|
|
191
|
+
onViewAllDocuments: b ? Ge : void 0,
|
|
192
|
+
onCreateDocument: x ? $ : void 0
|
|
193
193
|
} : {},
|
|
194
|
+
customersTabActions: {
|
|
195
|
+
onViewAllDocuments: b ? Ge : void 0,
|
|
196
|
+
onCreateDocument: x ? $ : void 0
|
|
197
|
+
},
|
|
194
198
|
canCreateCustomer: y.canCreateCustomer,
|
|
195
199
|
messages: E,
|
|
196
200
|
form: {
|
|
@@ -141,7 +141,7 @@ function C({ rows: e, isLoading: n, isError: a, isAccessRestricted: c, sorting:
|
|
|
141
141
|
children: e.original.totalLabel
|
|
142
142
|
})
|
|
143
143
|
}
|
|
144
|
-
], B = !c && !
|
|
144
|
+
], B = !c && !a && !M && e.length === 0;
|
|
145
145
|
return /* @__PURE__ */ d("div", {
|
|
146
146
|
className: "ttw:flex ttw:flex-col ttw:gap-4",
|
|
147
147
|
children: [
|
|
@@ -109,11 +109,16 @@ function E({ products: r, isLoading: i, isError: a, sorting: o, onSortingChange:
|
|
|
109
109
|
...g.typeBadge,
|
|
110
110
|
...I?.typeBadge
|
|
111
111
|
}
|
|
112
|
-
}, z = !D && N, B = !i && r.length === 0 && z
|
|
112
|
+
}, z = !D && N, B = !i && r.length === 0 && z, V = /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b(e, {
|
|
113
|
+
variant: "outline",
|
|
114
|
+
onClick: k,
|
|
115
|
+
disabled: !P,
|
|
116
|
+
children: R.manageUnitsButton
|
|
117
|
+
}), !B && /* @__PURE__ */ b(e, {
|
|
113
118
|
onClick: O,
|
|
114
119
|
disabled: !N,
|
|
115
120
|
children: R.createButton
|
|
116
|
-
}),
|
|
121
|
+
})] }), H = [
|
|
117
122
|
{
|
|
118
123
|
accessorKey: "name",
|
|
119
124
|
enableSorting: !0,
|
|
@@ -174,7 +179,7 @@ function E({ products: r, isLoading: i, isError: a, sorting: o, onSortingChange:
|
|
|
174
179
|
retryLabel: j ? R.errorRetry : void 0,
|
|
175
180
|
onRetry: j
|
|
176
181
|
}) : /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b(t, {
|
|
177
|
-
columns:
|
|
182
|
+
columns: H,
|
|
178
183
|
data: r,
|
|
179
184
|
isLoading: i,
|
|
180
185
|
sorting: o,
|
|
@@ -191,12 +196,7 @@ function E({ products: r, isLoading: i, isError: a, sorting: o, onSortingChange:
|
|
|
191
196
|
filterComponent: /* @__PURE__ */ b(T, {
|
|
192
197
|
labels: R,
|
|
193
198
|
filters: E,
|
|
194
|
-
action:
|
|
195
|
-
variant: "outline",
|
|
196
|
-
onClick: k,
|
|
197
|
-
disabled: !P,
|
|
198
|
-
children: R.manageUnitsButton
|
|
199
|
-
}), M === void 0 && B] })
|
|
199
|
+
action: M === void 0 ? V : void 0
|
|
200
200
|
}),
|
|
201
201
|
children: /* @__PURE__ */ b(p, {
|
|
202
202
|
testId: L?.empty,
|
|
@@ -205,6 +205,6 @@ function E({ products: r, isLoading: i, isError: a, sorting: o, onSortingChange:
|
|
|
205
205
|
actionLabel: z ? R.emptyAction : void 0,
|
|
206
206
|
onAction: z ? O : void 0
|
|
207
207
|
})
|
|
208
|
-
}), M &&
|
|
208
|
+
}), M && v(V, M)] });
|
|
209
209
|
}
|
|
210
210
|
export { E as ProductsScreen, E as default };
|
package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// ../../libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
|
|
2
|
-
var e = "@tesouro/embedded-components-react", t = "0.11.
|
|
2
|
+
var e = "@tesouro/embedded-components-react", t = "0.11.129", n = "3e964a8303ece740568cebd181cd2050f1d7514a", r = Object.freeze({
|
|
3
3
|
library_name: e,
|
|
4
4
|
library_version: t,
|
|
5
5
|
library_sha: n
|
|
@@ -11,11 +11,11 @@ import "../../../../../../invoicing-widget/feature/dist/index.js";
|
|
|
11
11
|
import { jsx as i } from "react/jsx-runtime";
|
|
12
12
|
// ../../libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/sections/InvoicingSection.js
|
|
13
13
|
function a({ renderTitle: n } = {}) {
|
|
14
|
-
let {
|
|
14
|
+
let { labels: a, arrivingFlow: o } = t();
|
|
15
15
|
return /* @__PURE__ */ i(r, {
|
|
16
|
-
...
|
|
16
|
+
...a.sections.invoicing,
|
|
17
17
|
headerStart: n?.(),
|
|
18
|
-
...
|
|
18
|
+
...o === e.Invoicing && { initialView: "create" }
|
|
19
19
|
});
|
|
20
20
|
}
|
|
21
21
|
var o = {
|