erp-pos-ecommerce-shared 0.2.14 → 0.2.16
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/components.js +2 -1
- package/dist/components.js.map +1 -1
- package/dist/hooks.js +10 -0
- package/dist/hooks.js.map +1 -1
- package/dist/index.js +12 -1
- package/dist/index.js.map +1 -1
- package/dist/queries.d.ts +31 -0
- package/dist/queries.js +10 -0
- package/dist/queries.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2248,6 +2248,16 @@ var batches = {
|
|
|
2248
2248
|
queryKey: batchQueryKeys.list(params),
|
|
2249
2249
|
staleTime: 3e4
|
|
2250
2250
|
}),
|
|
2251
|
+
getBatchesForTable: (params) => queryOptions({
|
|
2252
|
+
queryFn: () => getBatches({
|
|
2253
|
+
skip: params.skip ?? 0,
|
|
2254
|
+
limit: params.limit ?? 10,
|
|
2255
|
+
query: (params.query ?? "").trim() || void 0,
|
|
2256
|
+
productId: params.productId
|
|
2257
|
+
}),
|
|
2258
|
+
queryKey: batchQueryKeys.list(params),
|
|
2259
|
+
staleTime: 3e4
|
|
2260
|
+
}),
|
|
2251
2261
|
getBatchesForSelect: () => queryOptions({
|
|
2252
2262
|
queryFn: getBatchesForSelect,
|
|
2253
2263
|
queryKey: batchQueryKeys.forSelect(),
|
|
@@ -6130,7 +6140,7 @@ var TableHeader = ({
|
|
|
6130
6140
|
const sortState = header.column.getIsSorted();
|
|
6131
6141
|
const Icon = canSort ? getSortIcon(sortState) : null;
|
|
6132
6142
|
const isHovered = hoveredHeaderId === header.id;
|
|
6133
|
-
return /* @__PURE__ */ jsx(Table.Th, { bg: bgColor, children: /* @__PURE__ */ jsxs(
|
|
6143
|
+
return /* @__PURE__ */ jsx(Table.Th, { bg: bgColor, w: header.getSize(), children: /* @__PURE__ */ jsxs(
|
|
6134
6144
|
UnstyledButton,
|
|
6135
6145
|
{
|
|
6136
6146
|
style: {
|
|
@@ -6207,6 +6217,7 @@ var TableBody = ({
|
|
|
6207
6217
|
row.getVisibleCells().map((cell) => /* @__PURE__ */ jsx(
|
|
6208
6218
|
Table.Td,
|
|
6209
6219
|
{
|
|
6220
|
+
w: cell.column.getSize(),
|
|
6210
6221
|
onClick: () => onRowClick?.(row.original),
|
|
6211
6222
|
children: /* @__PURE__ */ jsx(
|
|
6212
6223
|
Text,
|