infinity-forge 0.4.1 → 0.4.3
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/system/container/admin/index.d.ts +3 -1
- package/dist/system/container/admin/index.js +2 -0
- package/dist/system/container/admin/index.js.map +1 -1
- package/dist/system/container/admin/menu/container.d.ts +3 -0
- package/dist/system/container/admin/menu/container.js +11 -0
- package/dist/system/container/admin/menu/container.js.map +1 -0
- package/dist/system/container/admin/menu/index.d.ts +2 -0
- package/dist/system/container/admin/menu/index.js +19 -0
- package/dist/system/container/admin/menu/index.js.map +1 -0
- package/dist/system/container/admin/menu/types.d.ts +3 -0
- package/dist/system/container/admin/menu/types.js +7 -0
- package/dist/system/container/admin/menu/types.js.map +1 -0
- package/dist/system/container/admin/users/container.d.ts +3 -0
- package/dist/system/container/admin/users/container.js +12 -0
- package/dist/system/container/admin/users/container.js.map +1 -0
- package/dist/system/container/admin/users/index.d.ts +2 -0
- package/dist/system/container/admin/users/index.js +19 -0
- package/dist/system/container/admin/users/index.js.map +1 -0
- package/dist/system/container/admin/users/types.d.ts +4 -0
- package/dist/system/container/admin/users/types.js +8 -0
- package/dist/system/container/admin/users/types.js.map +1 -0
- package/dist/system/container/main.d.ts +2 -2
- package/dist/system/container/main.js +2 -2
- package/dist/system/container/main.js.map +1 -1
- package/dist/system/container/types.d.ts +3 -0
- package/dist/system/container/types.js +1 -1
- package/dist/system/container/types.js.map +1 -1
- package/dist/system/data/use-cases/auth/remote-auth-admin.d.ts +1 -1
- package/dist/system/data/use-cases/index.d.ts +3 -1
- package/dist/system/data/use-cases/index.js +2 -0
- package/dist/system/data/use-cases/index.js.map +1 -1
- package/dist/system/data/use-cases/menu/index.d.ts +1 -0
- package/dist/system/data/use-cases/menu/index.js +18 -0
- package/dist/system/data/use-cases/menu/index.js.map +1 -0
- package/dist/system/data/use-cases/menu/remote-get-menu.d.ts +8 -0
- package/dist/system/data/use-cases/menu/remote-get-menu.js +109 -0
- package/dist/system/data/use-cases/menu/remote-get-menu.js.map +1 -0
- package/dist/system/data/use-cases/users/index.d.ts +2 -0
- package/dist/system/data/use-cases/users/index.js +19 -0
- package/dist/system/data/use-cases/users/index.js.map +1 -0
- package/dist/system/data/use-cases/users/remote-load-user-admin.d.ts +8 -0
- package/dist/system/data/use-cases/users/remote-load-user-admin.js +109 -0
- package/dist/system/data/use-cases/users/remote-load-user-admin.js.map +1 -0
- package/dist/system/data/use-cases/users/remote-users.d.ts +12 -0
- package/dist/system/data/use-cases/users/remote-users.js +177 -0
- package/dist/system/data/use-cases/users/remote-users.js.map +1 -0
- package/dist/system/domain/generics/index.d.ts +1 -0
- package/dist/system/domain/generics/index.js +1 -0
- package/dist/system/domain/generics/index.js.map +1 -1
- package/dist/system/domain/generics/pagination.d.ts +14 -0
- package/dist/system/domain/generics/pagination.js +3 -0
- package/dist/system/domain/generics/pagination.js.map +1 -0
- package/dist/system/domain/generics/return-type.d.ts +8 -0
- package/dist/system/domain/generics/return-type.js +3 -0
- package/dist/system/domain/generics/return-type.js.map +1 -0
- package/dist/system/domain/index.d.ts +3 -3
- package/dist/system/domain/index.js.map +1 -1
- package/dist/system/domain/protocols/cache/get-storage.d.ts +1 -1
- package/dist/system/domain/protocols/cache/set-storage.d.ts +1 -1
- package/dist/system/domain/protocols/http/errors/http-errors/conflict-error.d.ts +8 -0
- package/dist/system/domain/protocols/http/errors/http-errors/conflict-error.js +11 -0
- package/dist/system/domain/protocols/http/errors/http-errors/conflict-error.js.map +1 -0
- package/dist/system/domain/protocols/http/http-client.d.ts +1 -0
- package/dist/system/domain/protocols/http/http-client.js +1 -0
- package/dist/system/domain/protocols/http/http-client.js.map +1 -1
- package/dist/system/domain/use-cases/auth/admin/auth-admin.d.ts +3 -4
- package/dist/system/domain/use-cases/index.d.ts +3 -1
- package/dist/system/domain/use-cases/index.js +2 -0
- package/dist/system/domain/use-cases/index.js.map +1 -1
- package/dist/system/domain/use-cases/menu/index.d.ts +1 -0
- package/dist/system/{pages → domain/use-cases/menu}/index.js +1 -1
- package/dist/system/domain/use-cases/menu/index.js.map +1 -0
- package/dist/system/domain/use-cases/menu/load-menu.d.ts +15 -0
- package/dist/system/domain/use-cases/menu/load-menu.js +3 -0
- package/dist/system/domain/use-cases/menu/load-menu.js.map +1 -0
- package/dist/system/domain/use-cases/users/create-user.d.ts +15 -0
- package/dist/system/domain/use-cases/users/create-user.js +3 -0
- package/dist/system/domain/use-cases/users/create-user.js.map +1 -0
- package/dist/system/domain/use-cases/users/delete-user.d.ts +10 -0
- package/dist/system/domain/use-cases/users/delete-user.js +3 -0
- package/dist/system/domain/use-cases/users/delete-user.js.map +1 -0
- package/dist/system/domain/use-cases/users/edit-user.d.ts +8 -0
- package/dist/system/domain/use-cases/users/edit-user.js +3 -0
- package/dist/system/domain/use-cases/users/edit-user.js.map +1 -0
- package/dist/system/domain/use-cases/users/get-detail-user.d.ts +10 -0
- package/dist/system/domain/use-cases/users/get-detail-user.js +3 -0
- package/dist/system/domain/use-cases/users/get-detail-user.js.map +1 -0
- package/dist/system/domain/use-cases/users/index.d.ts +6 -0
- package/dist/system/domain/use-cases/users/index.js +23 -0
- package/dist/system/domain/use-cases/users/index.js.map +1 -0
- package/dist/system/domain/use-cases/users/load-all-users.d.ts +23 -0
- package/dist/system/domain/use-cases/users/load-all-users.js +3 -0
- package/dist/system/domain/use-cases/users/load-all-users.js.map +1 -0
- package/dist/system/domain/use-cases/users/load-user-admin.d.ts +15 -0
- package/dist/system/domain/use-cases/users/load-user-admin.js +3 -0
- package/dist/system/domain/use-cases/users/load-user-admin.js.map +1 -0
- package/dist/system/index.d.ts +0 -1
- package/dist/system/index.js +0 -1
- package/dist/system/index.js.map +1 -1
- package/dist/system/infra/cache/cookie-storage-adapter.d.ts +4 -4
- package/dist/system/infra/cache/cookie-storage-adapter.js +6 -50
- package/dist/system/infra/cache/cookie-storage-adapter.js.map +1 -1
- package/dist/system/infra/http/axios-http-client.js +6 -1
- package/dist/system/infra/http/axios-http-client.js.map +1 -1
- package/dist/system/presentation/components/index.d.ts +3 -2
- package/dist/system/presentation/components/index.js +1 -0
- package/dist/system/presentation/components/index.js.map +1 -1
- package/dist/system/presentation/components/layout/header/version-01/index.js +1 -1
- package/dist/system/presentation/components/layout/header/version-01/index.js.map +1 -1
- package/dist/system/presentation/components/layout/header/version-01/styles.d.ts +1 -1
- package/dist/system/presentation/components/layout/header/version-01/styles.js +2 -2
- package/dist/system/presentation/components/layout/header/version-01/styles.js.map +1 -1
- package/dist/system/presentation/components/layout/menu/components/menu/index.js +10 -5
- package/dist/system/presentation/components/layout/menu/components/menu/index.js.map +1 -1
- package/dist/system/presentation/components/pages/index.d.ts +1 -0
- package/dist/system/presentation/components/pages/index.js +18 -0
- package/dist/system/presentation/components/pages/index.js.map +1 -0
- package/dist/system/presentation/components/pages/users/index.d.ts +1 -0
- package/dist/system/presentation/components/pages/users/index.js +18 -0
- package/dist/system/presentation/components/pages/users/index.js.map +1 -0
- package/dist/system/presentation/components/pages/users/page.d.ts +1 -0
- package/dist/system/presentation/components/pages/users/page.js +35 -0
- package/dist/system/presentation/components/pages/users/page.js.map +1 -0
- package/dist/system/presentation/components/pages/users/table/columns.d.ts +3 -0
- package/dist/system/presentation/components/pages/users/table/columns.js +9 -0
- package/dist/system/presentation/components/pages/users/table/columns.js.map +1 -0
- package/dist/system/presentation/components/pages/users/table/delete.d.ts +3 -0
- package/dist/system/presentation/components/pages/users/table/delete.js +74 -0
- package/dist/system/presentation/components/pages/users/table/delete.js.map +1 -0
- package/dist/system/presentation/components/pages/users/table/edit.d.ts +3 -0
- package/dist/system/presentation/components/pages/users/table/edit.js +87 -0
- package/dist/system/presentation/components/pages/users/table/edit.js.map +1 -0
- package/dist/system/presentation/components/pages/users/table/index.d.ts +3 -0
- package/dist/system/presentation/components/pages/users/table/index.js +20 -0
- package/dist/system/presentation/components/pages/users/table/index.js.map +1 -0
- package/dist/system/presentation/configs/index.d.ts +0 -1
- package/dist/system/presentation/configs/index.js +0 -1
- package/dist/system/presentation/configs/index.js.map +1 -1
- package/dist/system/presentation/context/auth/context.d.ts +1 -6
- package/dist/system/presentation/context/auth/context.js +36 -8
- package/dist/system/presentation/context/auth/context.js.map +1 -1
- package/dist/system/presentation/context/auth/interfaces.d.ts +6 -0
- package/dist/system/presentation/context/auth/interfaces.js +3 -0
- package/dist/system/presentation/context/auth/interfaces.js.map +1 -0
- package/dist/system/presentation/context/auth/private-page/index.js +1 -1
- package/dist/system/presentation/context/auth/private-page/index.js.map +1 -1
- package/dist/system/presentation/hooks/index.d.ts +2 -1
- package/dist/system/presentation/hooks/index.js +1 -0
- package/dist/system/presentation/hooks/index.js.map +1 -1
- package/dist/system/presentation/hooks/menu/index.d.ts +1 -0
- package/dist/system/presentation/hooks/menu/index.js +18 -0
- package/dist/system/presentation/hooks/menu/index.js.map +1 -0
- package/dist/system/presentation/hooks/menu/use-load-menu.d.ts +1 -0
- package/dist/system/presentation/hooks/menu/use-load-menu.js +70 -0
- package/dist/system/presentation/hooks/menu/use-load-menu.js.map +1 -0
- package/dist/system/presentation/hooks/ui/use-table/component.d.ts +2 -3
- package/dist/system/presentation/hooks/ui/use-table/component.js +15 -4
- package/dist/system/presentation/hooks/ui/use-table/component.js.map +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/index.d.ts +0 -2
- package/dist/system/presentation/hooks/ui/use-table/components/index.js +0 -2
- package/dist/system/presentation/hooks/ui/use-table/components/index.js.map +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/actions/index.d.ts +5 -0
- package/dist/system/presentation/hooks/ui/use-table/components/table/actions/index.js +78 -0
- package/dist/system/presentation/hooks/ui/use-table/components/table/actions/index.js.map +1 -0
- package/dist/system/presentation/hooks/ui/use-table/components/table/index.d.ts +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/index.js +29 -29
- package/dist/system/presentation/hooks/ui/use-table/components/table/index.js.map +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/interfaces.d.ts +5 -7
- package/dist/system/presentation/hooks/ui/use-table/components/table/pagination/index.d.ts +2 -0
- package/dist/system/presentation/hooks/ui/use-table/components/table/pagination/index.js +68 -0
- package/dist/system/presentation/hooks/ui/use-table/components/table/pagination/index.js.map +1 -0
- package/dist/system/presentation/hooks/ui/use-table/components/table/pagination/service.d.ts +25 -0
- package/dist/system/presentation/hooks/ui/use-table/components/table/pagination/service.js +53 -0
- package/dist/system/presentation/hooks/ui/use-table/components/table/pagination/service.js.map +1 -0
- package/dist/system/presentation/hooks/ui/use-table/components/table/pagination/styles.d.ts +2 -0
- package/dist/system/presentation/hooks/ui/use-table/components/table/pagination/styles.js +14 -0
- package/dist/system/presentation/hooks/ui/use-table/components/table/pagination/styles.js.map +1 -0
- package/dist/system/presentation/hooks/ui/use-table/components/table/thead-item/index.js +1 -2
- package/dist/system/presentation/hooks/ui/use-table/components/table/thead-item/index.js.map +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/thead-item/interfaces.d.ts +2 -2
- package/dist/system/presentation/hooks/ui/use-table/index.d.ts +0 -2
- package/dist/system/presentation/hooks/ui/use-table/index.js +0 -2
- package/dist/system/presentation/hooks/ui/use-table/index.js.map +1 -1
- package/dist/system/presentation/hooks/ui/use-table/interfaces.d.ts +40 -39
- package/dist/system/presentation/hooks/ui/use-table/query.d.ts +3 -0
- package/dist/system/presentation/hooks/ui/use-table/query.js +68 -0
- package/dist/system/presentation/hooks/ui/use-table/query.js.map +1 -0
- package/dist/system/presentation/hooks/users/load-all-users.d.ts +1 -0
- package/dist/system/presentation/hooks/users/load-all-users.js +9 -0
- package/dist/system/presentation/hooks/users/load-all-users.js.map +1 -0
- package/dist/system/presentation/index.d.ts +1 -0
- package/dist/system/presentation/index.js +1 -0
- package/dist/system/presentation/index.js.map +1 -1
- package/dist/system/presentation/utils/index.d.ts +1 -0
- package/dist/system/presentation/utils/index.js +18 -0
- package/dist/system/presentation/utils/index.js.map +1 -0
- package/dist/system/presentation/utils/use-query/call-api-one-time.d.ts +5 -0
- package/dist/system/presentation/utils/use-query/call-api-one-time.js +9 -0
- package/dist/system/presentation/utils/use-query/call-api-one-time.js.map +1 -0
- package/dist/system/presentation/utils/use-query/index.d.ts +1 -0
- package/dist/system/presentation/utils/use-query/index.js +18 -0
- package/dist/system/presentation/utils/use-query/index.js.map +1 -0
- package/dist/ui/components/breadcrumb/index.js +22 -22
- package/dist/ui/components/breadcrumb/index.js.map +1 -1
- package/dist/ui/components/form/handler/dynamic_form_handler/index.d.ts +2 -0
- package/dist/ui/components/form/handler/dynamic_form_handler/index.js +62 -0
- package/dist/ui/components/form/handler/dynamic_form_handler/index.js.map +1 -0
- package/dist/ui/components/form/handler/dynamic_form_handler/interfaces.d.ts +21 -0
- package/dist/ui/components/form/handler/dynamic_form_handler/interfaces.js +3 -0
- package/dist/ui/components/form/handler/dynamic_form_handler/interfaces.js.map +1 -0
- package/dist/ui/components/form/handler/form-handler/index.js +5 -0
- package/dist/ui/components/form/handler/form-handler/index.js.map +1 -1
- package/dist/ui/components/form/handler/styles.js +1 -1
- package/dist/ui/components/form/handler/styles.js.map +1 -1
- package/dist/ui/components/form/interfaces.d.ts +1 -1
- package/dist/ui/components/index.d.ts +1 -0
- package/dist/ui/components/index.js +1 -0
- package/dist/ui/components/index.js.map +1 -1
- package/dist/ui/components/loading-screen/index.d.ts +3 -0
- package/dist/{system/pages/usuarios → ui/components/loading-screen}/index.js +11 -28
- package/dist/ui/components/loading-screen/index.js.map +1 -0
- package/dist/ui/components/loading-screen/interfaces.d.ts +4 -0
- package/dist/ui/components/loading-screen/interfaces.js +3 -0
- package/dist/ui/components/loading-screen/interfaces.js.map +1 -0
- package/dist/ui/components/loading-screen/styles.d.ts +4 -0
- package/dist/ui/components/loading-screen/styles.js +39 -0
- package/dist/ui/components/loading-screen/styles.js.map +1 -0
- package/dist/ui/icons/index.d.ts +1 -0
- package/dist/ui/icons/index.js +1 -0
- package/dist/ui/icons/index.js.map +1 -1
- package/dist/ui/icons/render/LongArrowRight.js +1 -1
- package/dist/ui/icons/render/LongArrowRight.js.map +1 -1
- package/dist/ui/icons/render/Map.js +1 -1
- package/dist/ui/icons/render/Map.js.map +1 -1
- package/dist/ui/icons/render/loading.d.ts +2 -0
- package/dist/ui/icons/render/loading.js +10 -0
- package/dist/ui/icons/render/loading.js.map +1 -0
- package/dist/ui/icons/render/phone-message.js +1 -1
- package/dist/ui/icons/render/phone-message.js.map +1 -1
- package/dist/ui/icons/render/user.js +1 -1
- package/dist/ui/icons/render/user.js.map +1 -1
- package/dist/ui/utils/libs/next/index.d.ts +1 -0
- package/dist/ui/utils/libs/next/index.js +1 -0
- package/dist/ui/utils/libs/next/index.js.map +1 -1
- package/dist/ui/utils/libs/next/update-route.d.ts +6 -0
- package/dist/ui/utils/libs/next/update-route.js +31 -0
- package/dist/ui/utils/libs/next/update-route.js.map +1 -0
- package/package.json +1 -1
- package/dist/system/pages/index.d.ts +0 -1
- package/dist/system/pages/index.js.map +0 -1
- package/dist/system/pages/usuarios/index.d.ts +0 -1
- package/dist/system/pages/usuarios/index.js.map +0 -1
- package/dist/system/pages/usuarios/styles.d.ts +0 -4
- package/dist/system/pages/usuarios/styles.js +0 -14
- package/dist/system/pages/usuarios/styles.js.map +0 -1
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.Pagination = void 0;
|
|
27
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
28
|
+
var react_1 = require("react");
|
|
29
|
+
var router_1 = require("next/router");
|
|
30
|
+
var ui_1 = require("../../../../../../../../ui/index.js");
|
|
31
|
+
var service_1 = require("./service.js");
|
|
32
|
+
var S = __importStar(require("./styles.js"));
|
|
33
|
+
function Pagination(_a) {
|
|
34
|
+
var page = _a.page, endPage = _a.endPage, pageSize = _a.pageSize, totalItems = _a.totalItems, hasNextPage = _a.hasNextPage, hasPreviousPage = _a.hasPreviousPage;
|
|
35
|
+
var _b = (0, react_1.useState)(null), pagination = _b[0], setPagination = _b[1];
|
|
36
|
+
var router = (0, router_1.useRouter)();
|
|
37
|
+
(0, react_1.useEffect)(function () {
|
|
38
|
+
if (router.isReady) {
|
|
39
|
+
setPagination((0, service_1.paginate)({
|
|
40
|
+
totalPages: endPage,
|
|
41
|
+
pageSize: pageSize,
|
|
42
|
+
totalItems: totalItems,
|
|
43
|
+
hasNextPage: hasNextPage,
|
|
44
|
+
hasPreviousPage: hasPreviousPage,
|
|
45
|
+
currentPage: Number(router.query.pageIndex) <= 0 || !router.query.pageIndex
|
|
46
|
+
? 1
|
|
47
|
+
: Number(router.query.pageIndex),
|
|
48
|
+
}));
|
|
49
|
+
}
|
|
50
|
+
}, [router.isReady]);
|
|
51
|
+
function onSelect(page) {
|
|
52
|
+
(0, ui_1.updateRoute)({ router: router, params: { page: page.toString() } });
|
|
53
|
+
}
|
|
54
|
+
if (!pagination || pagination.pages.length === 1) {
|
|
55
|
+
return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {});
|
|
56
|
+
}
|
|
57
|
+
return ((0, jsx_runtime_1.jsxs)(S.PaginationStyle, { children: [hasPreviousPage && ((0, jsx_runtime_1.jsx)("span", { style: { display: page == 1 ? "none" : "block" }, onClick: function () { return onSelect(page - 1); }, children: "<" })), pagination.pages.map(function (pageItem) {
|
|
58
|
+
return ((0, jsx_runtime_1.jsx)("button", { type: "button", className: "".concat(pagination.page === pageItem
|
|
59
|
+
? "active"
|
|
60
|
+
: ""), onClick: function () { return onSelect(pageItem); }, children: pageItem }, "".concat(pageItem, "-pagination}")));
|
|
61
|
+
}), hasNextPage && ((0, jsx_runtime_1.jsx)("span", { style: {
|
|
62
|
+
display: pagination.pages[pagination.pages.length - 1] == pagination.page
|
|
63
|
+
? "none"
|
|
64
|
+
: "block",
|
|
65
|
+
}, onClick: function () { return onSelect(pagination.page + 1); }, children: ">" }))] }));
|
|
66
|
+
}
|
|
67
|
+
exports.Pagination = Pagination;
|
|
68
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../../src/system/presentation/hooks/ui/use-table/components/table/pagination/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAA4C;AAE5C,sCAAwC;AAExC,2BAAmC;AAGnC,qCAAkD;AAElD,0CAA8B;AAE9B,SAAgB,UAAU,CAAC,EAOT;QANhB,IAAI,UAAA,EACJ,OAAO,aAAA,EACP,QAAQ,cAAA,EACR,UAAU,gBAAA,EACV,WAAW,iBAAA,EACX,eAAe,qBAAA;IAET,IAAA,KAA8B,IAAA,gBAAQ,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AC,UAAC,QAAQ;gBAC7B,OAAO,CACL,mCAEE,IAAI,EAAC,QAAQ,EACb,SAAS,EAAE,UACT,UAAU,CAAC,IAAI,KAAK,QAAQ;wBAC1B,CAAC,CAAC,QAAQ;wBACV,CAAC,CAAC,EAAE,CACN,EACF,OAAO,EAAE,cAAM,OAAA,QAAQ,CAAC,QAAQ,CAAC,EAAlB,CAAkB,YAEhC,QAAQ,IATJ,UAAG,QAAQ,iBAAc,CAUvB,CACV,CAAC;YACJ,CAAC,CAAC,EAED,WAAW,IAAI,CACd,iCACE,KAAK,EAAE;oBACL,OAAO,EACL,UAAU,CAAC,KAAK,CAAC,UAAU,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,IAAI,UAAU,CAAC,IAAI;wBAC9D,CAAC,CAAC,MAAM;wBACR,CAAC,CAAC,OAAO;iBACd,EACD,OAAO,EAAE,cAAM,OAAA,QAAQ,CAAC,UAAU,CAAC,IAAI,GAAG,CAAC,CAAC,EAA7B,CAA6B,YAE3C,GAAG,GACC,CACR,IACiB,CACrB,CAAC;AACJ,CAAC;AAjFD,gCAiFC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
interface IPagination {
|
|
2
|
+
totalItems: number;
|
|
3
|
+
page: number;
|
|
4
|
+
pageSize: number;
|
|
5
|
+
totalPages: number;
|
|
6
|
+
startPage: number;
|
|
7
|
+
endPage: number;
|
|
8
|
+
startIndex: number;
|
|
9
|
+
endIndex: number;
|
|
10
|
+
pages: number[];
|
|
11
|
+
hasPreviousPage: boolean;
|
|
12
|
+
hasNextPage: boolean;
|
|
13
|
+
}
|
|
14
|
+
interface IPaginationProps {
|
|
15
|
+
totalItems: number;
|
|
16
|
+
currentPage?: number;
|
|
17
|
+
pageSize?: number;
|
|
18
|
+
maxPages?: number;
|
|
19
|
+
hasPreviousPage: boolean;
|
|
20
|
+
hasNextPage: boolean;
|
|
21
|
+
totalPages: number;
|
|
22
|
+
}
|
|
23
|
+
declare function paginate({ totalItems, currentPage, pageSize, maxPages, hasNextPage, hasPreviousPage, totalPages }: IPaginationProps): IPagination;
|
|
24
|
+
export { paginate };
|
|
25
|
+
export type { IPagination, IPaginationProps };
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginate = void 0;
|
|
4
|
+
function paginate(_a) {
|
|
5
|
+
var totalItems = _a.totalItems, _b = _a.currentPage, currentPage = _b === void 0 ? 1 : _b, _c = _a.pageSize, pageSize = _c === void 0 ? 40 : _c, _d = _a.maxPages, maxPages = _d === void 0 ? 3 : _d, hasNextPage = _a.hasNextPage, hasPreviousPage = _a.hasPreviousPage, totalPages = _a.totalPages;
|
|
6
|
+
var page = currentPage;
|
|
7
|
+
if (page < 1) {
|
|
8
|
+
page = 1;
|
|
9
|
+
}
|
|
10
|
+
else if (page > totalPages) {
|
|
11
|
+
page = totalPages;
|
|
12
|
+
}
|
|
13
|
+
var startPage;
|
|
14
|
+
var endPage;
|
|
15
|
+
if (totalPages <= maxPages) {
|
|
16
|
+
startPage = 1;
|
|
17
|
+
endPage = totalPages;
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
var maxPagesBeforeCurrentPage = Math.floor(maxPages / 2);
|
|
21
|
+
var maxPagesAfterCurrentPage = Math.ceil(maxPages / 2) - 1;
|
|
22
|
+
if (page <= maxPagesBeforeCurrentPage) {
|
|
23
|
+
startPage = 1;
|
|
24
|
+
endPage = maxPages;
|
|
25
|
+
}
|
|
26
|
+
else if (page + maxPagesAfterCurrentPage >= totalPages) {
|
|
27
|
+
startPage = totalPages - maxPages + 1;
|
|
28
|
+
endPage = totalPages;
|
|
29
|
+
}
|
|
30
|
+
else {
|
|
31
|
+
startPage = page - maxPagesBeforeCurrentPage;
|
|
32
|
+
endPage = page + maxPagesAfterCurrentPage;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
var startIndex = (page - 1) * pageSize;
|
|
36
|
+
var endIndex = Math.min(startIndex + pageSize - 1, totalItems - 1);
|
|
37
|
+
var pages = Array.from(Array(endPage + 1 - startPage).keys()).map(function (i) { return startPage + i; });
|
|
38
|
+
return {
|
|
39
|
+
page: page,
|
|
40
|
+
pages: pages,
|
|
41
|
+
endPage: endPage,
|
|
42
|
+
pageSize: pageSize,
|
|
43
|
+
startPage: startPage,
|
|
44
|
+
startIndex: startIndex,
|
|
45
|
+
endIndex: endIndex,
|
|
46
|
+
totalPages: totalPages,
|
|
47
|
+
totalItems: totalItems,
|
|
48
|
+
hasNextPage: hasNextPage,
|
|
49
|
+
hasPreviousPage: hasPreviousPage
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
exports.paginate = paginate;
|
|
53
|
+
//# sourceMappingURL=service.js.map
|
package/dist/system/presentation/hooks/ui/use-table/components/table/pagination/service.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service.js","sourceRoot":"","sources":["../../../../../../../../../src/system/presentation/hooks/ui/use-table/components/table/pagination/service.ts"],"names":[],"mappings":";;;AAwBA,SAAS,QAAQ,CAAE,EAQK;QAPpB,UAAU,gBAAA,EACV,mBAAe,EAAf,WAAW,mBAAG,CAAC,KAAA,EACf,gBAAa,EAAb,QAAQ,mBAAG,EAAE,KAAA,EACb,gBAAY,EAAZ,QAAQ,mBAAG,CAAC,KAAA,EACZ,WAAW,iBAAA,EACX,eAAe,qBAAA,EACf,UAAU,gBAAA;IAKV,IAAI,IAAI,GAAG,WAAW,CAAC;IAEvB,IAAI,IAAI,GAAG,CAAC,EAAE,CAAC;QACX,IAAI,GAAG,CAAC,CAAC;IACb,CAAC;SAAM,IAAI,IAAI,GAAG,UAAU,EAAE,CAAC;QAC3B,IAAI,GAAG,UAAU,CAAC;IACtB,CAAC;IAED,IAAI,SAAiB,CAAC;IACtB,IAAI,OAAe,CAAC;IACpB,IAAI,UAAU,IAAI,QAAQ,EAAE,CAAC;QACzB,SAAS,GAAG,CAA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A;KAClB,CAAC;AACN,CAAC;AAEQ,4BAAQ"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const PaginationStyle: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
+
return cooked;
|
|
5
|
+
};
|
|
6
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
7
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8
|
+
};
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.PaginationStyle = void 0;
|
|
11
|
+
var styled_components_1 = __importDefault(require("styled-components"));
|
|
12
|
+
exports.PaginationStyle = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n margin-top: 5.21vw;\n gap: 28px;\n margin-bottom: 4vw;\n background-color: #000;\n\n button,\n span {\n width: 42px;\n height: 42px;\n border-radius: 10px;\n background-color: ", ";\n color: #fff;\n border: 1px solid var(--theme-color-extra-light);\n display: flex !important;\n align-items: center;\n justify-content: center;\n }\n\n button.active {\n background-color: ", ";\n color: #fff;\n }\n\n @media only screen and (max-width: 1600px) {\n gap: 25px;\n\n button,\n span {\n width: 40px;\n height: 40px;\n }\n }\n\n @media only screen and (max-width: 1400px) {\n gap: 22px;\n\n button,\n span {\n width: 38px;\n height: 38px;\n }\n }\n\n @media only screen and (max-width: 1200px) {\n gap: 20px;\n\n button,\n span {\n width: 37px;\n height: 37px;\n }\n }\n\n @media only screen and (max-width: 1024px) {\n gap: 17px;\n\n button,\n span {\n width: 36px;\n height: 36px;\n }\n }\n\n @media only screen and (max-width: 768px) {\n margin-top: 40px;\n\n button,\n span {\n width: 35px;\n height: 35px;\n }\n }\n\n @media only screen and (max-width: 500px) {\n gap: 15px;\n margin-top: 35px;\n\n button,\n span {\n width: 34px;\n height: 34px;\n }\n }\n\n @media only screen and (max-width: 400px) {\n button,\n span {\n width: 32px;\n height: 32px;\n }\n }\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n margin-top: 5.21vw;\n gap: 28px;\n margin-bottom: 4vw;\n background-color: #000;\n\n button,\n span {\n width: 42px;\n height: 42px;\n border-radius: 10px;\n background-color: ", ";\n color: #fff;\n border: 1px solid var(--theme-color-extra-light);\n display: flex !important;\n align-items: center;\n justify-content: center;\n }\n\n button.active {\n background-color: ", ";\n color: #fff;\n }\n\n @media only screen and (max-width: 1600px) {\n gap: 25px;\n\n button,\n span {\n width: 40px;\n height: 40px;\n }\n }\n\n @media only screen and (max-width: 1400px) {\n gap: 22px;\n\n button,\n span {\n width: 38px;\n height: 38px;\n }\n }\n\n @media only screen and (max-width: 1200px) {\n gap: 20px;\n\n button,\n span {\n width: 37px;\n height: 37px;\n }\n }\n\n @media only screen and (max-width: 1024px) {\n gap: 17px;\n\n button,\n span {\n width: 36px;\n height: 36px;\n }\n }\n\n @media only screen and (max-width: 768px) {\n margin-top: 40px;\n\n button,\n span {\n width: 35px;\n height: 35px;\n }\n }\n\n @media only screen and (max-width: 500px) {\n gap: 15px;\n margin-top: 35px;\n\n button,\n span {\n width: 34px;\n height: 34px;\n }\n }\n\n @media only screen and (max-width: 400px) {\n button,\n span {\n width: 32px;\n height: 32px;\n }\n }\n"])), function (props) { var _a; return ((_a = props === null || props === void 0 ? void 0 : props.theme) === null || _a === void 0 ? void 0 : _a.secondaryColor) || "unset"; }, function (props) { var _a; return ((_a = props === null || props === void 0 ? void 0 : props.theme) === null || _a === void 0 ? void 0 : _a.primaryColor) || "unset"; });
|
|
13
|
+
var templateObject_1;
|
|
14
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../../../../../src/system/presentation/hooks/ui/use-table/components/table/pagination/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wEAAuC;AAE1B,QAAA,eAAe,GAAG,2BAAM,CAAC,GAAG,4kDAAA,6QAcjB,EAAkD,qNASlD,EAAgD,miCAwEvE,KAjFuB,UAAC,KAAK,YAAK,OAAA,CAAA,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,KAAK,0CAAE,cAAc,KAAI,OAAO,CAAA,EAAA,EASlD,UAAC,KAAK,YAAK,OAAA,CAAA,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,KAAK,0CAAE,YAAY,KAAI,OAAO,CAAA,EAAA,EAwEtE"}
|
|
@@ -28,7 +28,6 @@ var jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
28
28
|
var react_1 = require("react");
|
|
29
29
|
var router_1 = require("next/router");
|
|
30
30
|
var ui_1 = require("../../../../../../../../ui/index.js");
|
|
31
|
-
var utils_1 = require("../../../utils/index.js");
|
|
32
31
|
var S = __importStar(require("./styles.js"));
|
|
33
32
|
function THeadItem(_a) {
|
|
34
33
|
var _b, _c;
|
|
@@ -41,7 +40,7 @@ function THeadItem(_a) {
|
|
|
41
40
|
if (disableOrdenationTable) {
|
|
42
41
|
return;
|
|
43
42
|
}
|
|
44
|
-
|
|
43
|
+
// updateRoute({ params: { ordIndex: index, asc: ascValue }, router })
|
|
45
44
|
setAsc(ascValue);
|
|
46
45
|
}
|
|
47
46
|
return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'thead-item', children: (0, jsx_runtime_1.jsx)("th", { style: { width: colunm.width + 'px' }, children: (0, jsx_runtime_1.jsxs)(S.THeadItem, { children: [(0, jsx_runtime_1.jsx)("span", { onClick: function () { return handleOrd(!asc); }, className: 'font-12-bold uppercase', children: colunm.label }), !disableOrdenationTable && ((0, jsx_runtime_1.jsx)("div", { className: 'ord-actions', children: (0, jsx_runtime_1.jsx)("button", { type: 'button', onClick: function () { return handleOrd(!asc); } }) }))] }) }, colunm.id + index) }));
|
package/dist/system/presentation/hooks/ui/use-table/components/table/thead-item/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../../src/system/presentation/hooks/ui/use-table/components/table/thead-item/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAAgC;AAChC,sCAAuC;AAEvC,2BAA4B;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../../src/system/presentation/hooks/ui/use-table/components/table/thead-item/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAAgC;AAChC,sCAAuC;AAEvC,2BAA4B;AAG5B,0CAA6B;AAE7B,SAAgB,SAAS,CAAC,EAA0D;;QAAxD,MAAM,YAAA,EAAE,KAAK,WAAA,EAAE,sBAAsB,4BAAA;IAC/D,IAAM,MAAM,GAAG,IAAA,kBAAS,GAAE,CAAA;IAE1B,IAAM,UAAU,GAAG,CAAC,CAAC,CAAC,CAAA,MAAA,MAAM,CAAC,KAAK,0CAAE,QAAQ,MAAK,MAAM,CAAC,KAAK,CAAC,CAAC,CAAA;IAC/D,IAAM,WAAW,GAAG,CAAC,CAAC,CAAC,CAAA,MAAA,MAAM,CAAC,KAAK,0CAAE,GAAG,MAAK,MAAM,CAAC,CAAA;IAE9C,IAAA,KAAgB,IAAA,gBAAQ,EAAC,CAAC,CAAC,CAAC,UAAU,IAAI,WAAW,CAAC,CAAC,EAAtD,GAAG,QAAA,EAAE,MAAM,QAA2C,CAAA;IAE7D,SAAS,SAAS,CAAC,QAAiB;QAClC,IAAI,sBAAsB,EAAE,CAAC;YAC3B,OAAM;QACR,CAAC;QAED,sEAAsE;QAEtE,MAAM,CAAC,QAAQ,CAAC,CAAA;IAClB,CAAC;IAED,OAAO,CACL,uBAAC,UAAK,IAAC,IAAI,EAAC,YAAY,YACtB,+BAAwC,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,GAAG,IAAI,EAAE,YAC3E,wBAAC,CAAC,CAAC,SAAS,eACV,iCAAM,OAAO,EAAE,cAAM,OAAA,SAAS,CAAC,CAAC,GAAG,CAAC,EAAf,CAAe,EAAE,SAAS,EAAC,wBAAwB,YACrE,MAAM,CAAC,KAAK,GACR,EAEN,CAAC,sBAAsB,IAAI,CAC1B,gCAAK,SAAS,EAAC,aAAa,YAC1B,mCAAQ,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAE,cAAM,OAAA,SAAS,CAAC,CAAC,GAAG,CAAC,EAAf,CAAe,GAE3C,GACL,CACP,IACW,IAbN,MAAM,CAAC,EAAa,GAAG,KAAK,CAcjC,GACC,CACT,CAAA;AACH,CAAC;AArCD,8BAqCC"}
|
|
@@ -14,8 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./utils/index.js"), exports);
|
|
18
|
-
__exportStar(require("./query/index.js"), exports);
|
|
19
17
|
__exportStar(require("./component.js"), exports);
|
|
20
18
|
__exportStar(require("./components/index.js"), exports);
|
|
21
19
|
__exportStar(require("./interfaces.js"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/system/presentation/hooks/ui/use-table/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/system/presentation/hooks/ui/use-table/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,+CAA6B;AAC7B,+CAA6B"}
|
|
@@ -1,58 +1,59 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { PaginationModel } from '../../../../../system/index.js';
|
|
3
|
+
import { DynamicFormHandlerProps } from '../../../../../ui/components/form/handler/dynamic_form_handler/interfaces.js';
|
|
4
|
+
interface Column<T = any> {
|
|
5
|
+
id: keyof T;
|
|
4
6
|
label: string;
|
|
5
7
|
width?: number;
|
|
6
|
-
type?: "a-z" | "number" | "date";
|
|
7
8
|
Component?: {
|
|
8
|
-
Element:
|
|
9
|
+
Element: (props: {
|
|
10
|
+
[key in keyof T]?: any;
|
|
11
|
+
}) => JSX.Element;
|
|
12
|
+
allProps?: boolean;
|
|
9
13
|
props: {
|
|
10
|
-
[key
|
|
14
|
+
[key in keyof T]?: any;
|
|
11
15
|
};
|
|
12
|
-
|
|
13
|
-
defaultProps: {
|
|
16
|
+
defaultProps?: {
|
|
14
17
|
[key: string]: any;
|
|
15
18
|
};
|
|
16
19
|
};
|
|
17
20
|
}
|
|
18
21
|
interface IParamsTable {
|
|
19
|
-
search?: {
|
|
20
|
-
param: string;
|
|
21
|
-
query: string;
|
|
22
|
-
};
|
|
23
|
-
dateRange: {
|
|
24
|
-
start: Date;
|
|
25
|
-
end: Date;
|
|
26
|
-
};
|
|
27
|
-
ord?: {
|
|
28
|
-
asc: boolean;
|
|
29
|
-
indice: number;
|
|
30
|
-
};
|
|
31
22
|
page?: number;
|
|
32
23
|
}
|
|
33
24
|
interface IConfigurationsTable {
|
|
34
|
-
disableFetch?: boolean;
|
|
35
25
|
tableData?: any;
|
|
36
|
-
|
|
37
|
-
disablePagination?: boolean;
|
|
38
|
-
disableOrdenationTable?: boolean;
|
|
39
|
-
disableGetFilter?: boolean;
|
|
26
|
+
isLoading?: boolean;
|
|
40
27
|
errorMessage: string;
|
|
28
|
+
disableGetFilter?: boolean;
|
|
29
|
+
disablePagination?: boolean;
|
|
41
30
|
enableSearchInSelf?: boolean;
|
|
42
|
-
|
|
31
|
+
pagination?: PaginationModel;
|
|
32
|
+
disableOrdenationTable?: boolean;
|
|
43
33
|
}
|
|
44
|
-
|
|
34
|
+
type QueryTable<M = any> = {
|
|
35
|
+
user?: any;
|
|
36
|
+
container?: any;
|
|
37
|
+
Types?: any;
|
|
38
|
+
queryKey: M;
|
|
39
|
+
requireUser?: boolean;
|
|
40
|
+
};
|
|
41
|
+
type ActionsTable<T = any> = {
|
|
42
|
+
delete?: (table: {
|
|
43
|
+
[key in keyof T]: T[key];
|
|
44
|
+
}) => void;
|
|
45
|
+
edit?: DynamicFormHandlerProps<T>;
|
|
46
|
+
detail?: (table: {
|
|
47
|
+
[key in keyof T]: string;
|
|
48
|
+
}) => string;
|
|
49
|
+
};
|
|
50
|
+
type ColumnsConfiguration<T = any> = {
|
|
51
|
+
columns: Column<T>[];
|
|
52
|
+
actions?: ActionsTable<T>;
|
|
53
|
+
};
|
|
54
|
+
interface IUseTableProps<T = any, M = any> {
|
|
55
|
+
query?: QueryTable<M>;
|
|
45
56
|
configs: IConfigurationsTable;
|
|
46
|
-
|
|
47
|
-
tableKey: string | null;
|
|
48
|
-
columnsTable: IColumnTable[];
|
|
49
|
-
}
|
|
50
|
-
interface IFiltersOnSubmit {
|
|
51
|
-
json: string;
|
|
52
|
-
value: {
|
|
53
|
-
[key: string]: {
|
|
54
|
-
[key: string]: any;
|
|
55
|
-
};
|
|
56
|
-
};
|
|
57
|
+
columnsConfiguration: ColumnsConfiguration<T>;
|
|
57
58
|
}
|
|
58
|
-
export type {
|
|
59
|
+
export type { Column, QueryTable, ActionsTable, IParamsTable, IUseTableProps, IConfigurationsTable, ColumnsConfiguration, };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { List, Pagination } from '../../../../../system/index.js';
|
|
2
|
+
import { QueryTable } from './interfaces.js';
|
|
3
|
+
export declare function useQueryTable({ queryKey, user, requireUser, Types, container }: QueryTable): import("@tanstack/react-query/build/legacy/types").UseQueryResult<List<any> & Pagination, Error>;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
14
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
15
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
16
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
17
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
18
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
19
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
23
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
24
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
25
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
26
|
+
function step(op) {
|
|
27
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
28
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
29
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
30
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
31
|
+
switch (op[0]) {
|
|
32
|
+
case 0: case 1: t = op; break;
|
|
33
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
34
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
35
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
36
|
+
default:
|
|
37
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
38
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
39
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
40
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
41
|
+
if (t[2]) _.ops.pop();
|
|
42
|
+
_.trys.pop(); continue;
|
|
43
|
+
}
|
|
44
|
+
op = body.call(thisArg, _);
|
|
45
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
46
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
50
|
+
exports.useQueryTable = void 0;
|
|
51
|
+
var router_1 = require("next/router");
|
|
52
|
+
var react_query_1 = require("@tanstack/react-query");
|
|
53
|
+
var system_1 = require("../../../../../system/index.js");
|
|
54
|
+
function useQueryTable(_a) {
|
|
55
|
+
var _this = this;
|
|
56
|
+
var queryKey = _a.queryKey, user = _a.user, requireUser = _a.requireUser, Types = _a.Types, container = _a.container;
|
|
57
|
+
var router = (0, router_1.useRouter)();
|
|
58
|
+
return (0, react_query_1.useQuery)(__assign(__assign({ queryKey: [queryKey], queryFn: function () { return __awaiter(_this, void 0, void 0, function () {
|
|
59
|
+
return __generator(this, function (_a) {
|
|
60
|
+
switch (_a.label) {
|
|
61
|
+
case 0: return [4 /*yield*/, container.get(Types[queryKey]).loadAll(router.query)];
|
|
62
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
}); } }, system_1.callApiOneTime), { enabled: router.isReady && requireUser ? !!(user) : true }));
|
|
66
|
+
}
|
|
67
|
+
exports.useQueryTable = useQueryTable;
|
|
68
|
+
//# sourceMappingURL=query.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query.js","sourceRoot":"","sources":["../../../../../../src/system/presentation/hooks/ui/use-table/query.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sCAAuC;AACvC,qDAAgD;AAEhD,mCAA2D;AAI3D,SAAgB,aAAa,CAAC,EAA6D;IAA3F,iBAWC;QAX+B,QAAQ,cAAA,EAAE,IAAI,UAAA,EAAE,WAAW,iBAAA,EAAE,KAAK,WAAA,EAAE,SAAS,eAAA;IAC3E,IAAM,MAAM,GAAG,IAAA,kBAAS,GAAE,CAAA;IAE1B,OAAO,IAAA,sBAAQ,sBACb,QAAQ,EAAE,CAAC,QAAQ,CAAC,EACpB,OAAO,EAAE;;;4BACA,qBAAM,SAAS,CAAC,GAAG,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAS,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,EAAA;4BAAzE,sBAAO,SAA4F,EAAA;;;aACpG,IACE,uBAAc,KACjB,OAAO,EAAE,MAAM,CAAC,OAAO,IAAI,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,IACxD,CAAA;AACJ,CAAC;AAXD,sCAWC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useLoadAllUsers(): import("@tanstack/react-query/build/legacy/types").UseQueryResult<unknown, Error>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useLoadAllUsers = void 0;
|
|
4
|
+
var react_query_1 = require("@tanstack/react-query");
|
|
5
|
+
function useLoadAllUsers() {
|
|
6
|
+
return (0, react_query_1.useQuery)({ queryKey: ["RemoteLoadAllUsers"] });
|
|
7
|
+
}
|
|
8
|
+
exports.useLoadAllUsers = useLoadAllUsers;
|
|
9
|
+
//# sourceMappingURL=load-all-users.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"load-all-users.js","sourceRoot":"","sources":["../../../../../src/system/presentation/hooks/users/load-all-users.ts"],"names":[],"mappings":";;;AAAA,qDAAiD;AAEjD,SAAgB,eAAe;IAG3B,OAAO,IAAA,sBAAQ,EAAC,EAAE,QAAQ,EAAE,CAAC,oBAAoB,CAAC,EAAE,CAAC,CAAA;AACzD,CAAC;AAJD,0CAIC"}
|
|
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./utils/index.js"), exports);
|
|
17
18
|
__exportStar(require("./hooks/index.js"), exports);
|
|
18
19
|
__exportStar(require("./configs/index.js"), exports);
|
|
19
20
|
__exportStar(require("./context/index.js"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/system/presentation/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAuB;AACvB,4CAAyB;AACzB,4CAAyB;AACzB,+CAA4B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/system/presentation/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAuB;AACvB,0CAAuB;AACvB,4CAAyB;AACzB,4CAAyB;AACzB,+CAA4B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './use-query/index.js';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./use-query/index.js"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/system/presentation/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA2B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"call-api-one-time.js","sourceRoot":"","sources":["../../../../../src/system/presentation/utils/use-query/call-api-one-time.ts"],"names":[],"mappings":";;;AAAa,QAAA,cAAc,GAAG;IAC5B,KAAK,EAAE,CAAC;IACR,eAAe,EAAE,CAAC;IAClB,oBAAoB,EAAE,KAAK;CAC5B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './call-api-one-time.js';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./call-api-one-time.js"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/system/presentation/utils/use-query/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAmC"}
|
|
@@ -41,28 +41,28 @@ function Breadcrumb(_a) {
|
|
|
41
41
|
var isLastElement = index === array.length - 1;
|
|
42
42
|
return ((0, jsx_runtime_1.jsxs)(react_1.Fragment, { children: [linkElement, !isLastElement && (0, jsx_runtime_1.jsx)("span", { className: 'separator', children: "." })] }, "fragment-".concat(index)));
|
|
43
43
|
};
|
|
44
|
-
return ((0, jsx_runtime_1.jsx)(
|
|
45
|
-
? links.map(function (link, index) {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
: routeNames.map(function (route, index) {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
44
|
+
return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: links
|
|
45
|
+
? links.length > 1 && ((0, jsx_runtime_1.jsx)(S.Breadcrumb, { children: links.map(function (link, index) {
|
|
46
|
+
var linkElement = !link.href ? ((0, jsx_runtime_1.jsxs)("div", { className: 'link font-14-regular', children: [link.icon, " ", link.text] }, link.text + 'breadcrumb')) : ((0, jsx_runtime_1.jsxs)(link_1.default, { className: 'font-14-regular', href: link.href, children: [link.icon, " ", link.text] }, link.text + 'breadcrumb'));
|
|
47
|
+
return renderLinkWithSeparator(linkElement, index, links);
|
|
48
|
+
}) }))
|
|
49
|
+
: routeNames.length > 1 && ((0, jsx_runtime_1.jsx)(S.Breadcrumb, { children: routeNames.map(function (route, index) {
|
|
50
|
+
if (!route) {
|
|
51
|
+
return null;
|
|
52
|
+
}
|
|
53
|
+
var nomeBreadcrumb;
|
|
54
|
+
var urlBreadcrumb;
|
|
55
|
+
if (index === 0) {
|
|
56
|
+
nomeBreadcrumb = route;
|
|
57
|
+
urlBreadcrumb = '/' + route;
|
|
58
|
+
}
|
|
59
|
+
else {
|
|
60
|
+
nomeBreadcrumb = route.charAt(0).toUpperCase() + route.slice(1);
|
|
61
|
+
urlBreadcrumb = '/' + routeNames.slice(0, index + 1).join('/');
|
|
62
|
+
}
|
|
63
|
+
var linkElement = ((0, jsx_runtime_1.jsx)(link_1.default, { href: urlBreadcrumb, children: nomeBreadcrumb }, route));
|
|
64
|
+
return renderLinkWithSeparator(linkElement, index, routeNames);
|
|
65
|
+
}) })) }));
|
|
66
66
|
}
|
|
67
67
|
exports.Breadcrumb = Breadcrumb;
|
|
68
68
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/ui/components/breadcrumb/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mDAA4B;AAC5B,sCAAuC;AAIvC,0CAA6B;AAC7B,+BAAgC;AAEhC,SAAgB,UAAU,CAAC,EAA2B;;QAAzB,KAAK,WAAA;IAChC,IAAM,MAAM,GAAG,IAAA,kBAAS,GAAE,CAAA;IAE1B,IAAM,UAAU,GAAG,MAAA,MAAA,MAAM,CAAC,MAAM,0CAC5B,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC,0CACb,KAAK,CAAC,GAAG,EACV,MAAM,CAAC,UAAC,KAAK,IAAK,OAAA,KAAK,EAAL,CAAK,CAAC,CAAA;IAE3B,IAAM,uBAAuB,GAAG,UAAC,WAAW,EAAE,KAAK,EAAE,KAAK;QACxD,IAAM,aAAa,GAAG,KAAK,KAAK,KAAK,CAAC,MAAM,GAAG,CAAC,CAAA;QAChD,OAAO,CACL,wBAAC,gBAAQ,eACN,WAAW,EACX,CAAC,aAAa,IAAI,iCAAM,SAAS,EAAC,WAAW,kBAAS,KAF1C,mBAAY,KAAK,CAAE,CAGvB,CACZ,CAAA;IACH,CAAC,CAAA;IAED,OAAO,CACL,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/ui/components/breadcrumb/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mDAA4B;AAC5B,sCAAuC;AAIvC,0CAA6B;AAC7B,+BAAgC;AAEhC,SAAgB,UAAU,CAAC,EAA2B;;QAAzB,KAAK,WAAA;IAChC,IAAM,MAAM,GAAG,IAAA,kBAAS,GAAE,CAAA;IAE1B,IAAM,UAAU,GAAG,MAAA,MAAA,MAAM,CAAC,MAAM,0CAC5B,KAAK,CAAC,GAAG,EAAE,CAA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