erp-pos-ecommerce-shared 0.1.7 → 0.2.1
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.d.ts +2 -2
- package/dist/components.js +10 -7
- package/dist/components.js.map +1 -1
- package/dist/{filters.interface-Cx-AXMPz.d.ts → filters.interface-glhGBJfx.d.ts} +59 -47
- package/dist/{form.interface-CqnTdmc8.d.ts → form.interface-CO6P9ez0.d.ts} +1 -1
- package/dist/hooks.d.ts +17 -10
- package/dist/hooks.js +70 -12
- package/dist/hooks.js.map +1 -1
- package/dist/index.d.ts +7 -7
- package/dist/index.js +82 -21
- package/dist/index.js.map +1 -1
- package/dist/interfaces.d.ts +3 -3
- package/dist/queries.d.ts +30 -5
- package/dist/queries.js +26 -0
- package/dist/queries.js.map +1 -1
- package/dist/services.d.ts +9 -4
- package/dist/services.js +17 -1
- package/dist/services.js.map +1 -1
- package/dist/{shift.queries-DF8gfQOQ.d.ts → shift.queries-ul2JnMAU.d.ts} +3 -3
- package/dist/{warehouse.interface-BRPPyPIC.d.ts → warehouse.interface-fnr42ygU.d.ts} +1 -1
- package/dist/{warehouse.service-geeduO1g.d.ts → warehouse.service-CDDl5yeV.d.ts} +2 -2
- package/package.json +4 -1
package/dist/components.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React$1, { ReactNode } from 'react';
|
|
2
|
-
import { e as IField, b as IButton } from './form.interface-
|
|
2
|
+
import { e as IField, b as IButton } from './form.interface-CO6P9ez0.js';
|
|
3
3
|
import { ReactFormExtendedApi, FormValidateOrFn, FormAsyncValidateOrFn } from '@tanstack/react-form';
|
|
4
4
|
import { UseMutationResult, UseQueryOptions } from '@tanstack/react-query';
|
|
5
|
-
import {
|
|
5
|
+
import { u as TblProductsImage, q as ITableFilterConfig, i as IFilterSelectOption } from './filters.interface-glhGBJfx.js';
|
|
6
6
|
import * as z from 'zod';
|
|
7
7
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
8
8
|
import { ColumnDef, useReactTable, Row } from '@tanstack/react-table';
|
package/dist/components.js
CHANGED
|
@@ -9,6 +9,7 @@ import { modals } from '@mantine/modals';
|
|
|
9
9
|
import { notifications } from '@mantine/notifications';
|
|
10
10
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
11
11
|
import * as z from 'zod';
|
|
12
|
+
import { useMediaQuery } from '@mantine/hooks';
|
|
12
13
|
import { flexRender, useReactTable, getSortedRowModel, getPaginationRowModel, getCoreRowModel } from '@tanstack/react-table';
|
|
13
14
|
import { ArrowDown, ArrowUp, ArrowUpDown, FileX, X, Search, ChevronUp, ChevronDown, ListFilter, Check, CalendarDays, MoreVertical } from 'lucide-react';
|
|
14
15
|
|
|
@@ -1114,6 +1115,8 @@ var BottomPagination = ({
|
|
|
1114
1115
|
onPageSizeChange,
|
|
1115
1116
|
onPageIndexChange
|
|
1116
1117
|
}) => {
|
|
1118
|
+
const isMobile = useMediaQuery("(max-width: 767px)");
|
|
1119
|
+
const isDesktop = useMediaQuery("(min-width: 992px)");
|
|
1117
1120
|
const totalPages = Math.ceil(total / pageSize);
|
|
1118
1121
|
const currentPage = pageIndex + 1;
|
|
1119
1122
|
const handlePageChange = (page) => {
|
|
@@ -1145,18 +1148,18 @@ var BottomPagination = ({
|
|
|
1145
1148
|
Pagination,
|
|
1146
1149
|
{
|
|
1147
1150
|
radius: "md",
|
|
1148
|
-
withEdges:
|
|
1151
|
+
withEdges: isDesktop,
|
|
1149
1152
|
total: totalPages,
|
|
1150
1153
|
value: currentPage,
|
|
1151
1154
|
onChange: handlePageChange,
|
|
1152
1155
|
size: "sm",
|
|
1153
|
-
siblings: 1,
|
|
1154
|
-
boundaries: 1,
|
|
1155
|
-
style: {
|
|
1156
|
+
siblings: !isMobile ? 1 : 0,
|
|
1157
|
+
boundaries: !isMobile ? 1 : 0,
|
|
1158
|
+
style: isDesktop ? {
|
|
1156
1159
|
position: "absolute",
|
|
1157
1160
|
left: "50%",
|
|
1158
1161
|
transform: "translateX(-50%)"
|
|
1159
|
-
}
|
|
1162
|
+
} : void 0
|
|
1160
1163
|
}
|
|
1161
1164
|
),
|
|
1162
1165
|
/* @__PURE__ */ jsxs(Group, { style: { marginLeft: "auto", alignItems: "center" }, children: [
|
|
@@ -1179,8 +1182,8 @@ var BottomPagination = ({
|
|
|
1179
1182
|
comboboxProps: { withinPortal: false }
|
|
1180
1183
|
}
|
|
1181
1184
|
),
|
|
1182
|
-
/* @__PURE__ */ jsx(Text, { size: "xs", c: "dimmed", children: "registros" }),
|
|
1183
|
-
total !== void 0 && /* @__PURE__ */ jsxs(Text, { size: "xs", c: "dimmed", ml: "xs", children: [
|
|
1185
|
+
/* @__PURE__ */ jsx(Text, { size: "xs", c: "dimmed", visibleFrom: "sm", children: "registros" }),
|
|
1186
|
+
total !== void 0 && !isMobile && /* @__PURE__ */ jsxs(Text, { size: "xs", c: "dimmed", ml: "xs", children: [
|
|
1184
1187
|
"(",
|
|
1185
1188
|
total,
|
|
1186
1189
|
" en total)"
|