infinity-forge 3.4.6 → 3.4.7
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/sites/components/default-pages/blog/components/blog-item/index.d.ts +1 -1
- package/dist/sites/components/default-pages/blog/components/blog-item/index.js +1 -1
- package/dist/sites/components/default-pages/blog/components/categorias/index.js +1 -1
- package/dist/sites/components/default-pages/blog/components/featured-blog/featured-blog-item/index.d.ts +0 -4
- package/dist/sites/components/default-pages/blog/components/featured-blog/featured-blog-item/index.js +0 -42
- package/dist/sites/components/default-pages/blog/components/featured-blog/index.js +1 -1
- package/dist/sites/components/default-pages/blog/components/side-box-newsletter/index.js +1 -1
- package/dist/sites/components/default-pages/blog/components/side-box-search/index.js +1 -1
- package/dist/sites/components/default-pages/blog/components/title-blog/index.js +1 -1
- package/dist/system/presentation/components/data/buttons/sidebar-button/index.js +1 -1
- package/dist/system/presentation/components/data/chat/card-message/index.d.ts +1 -1
- package/dist/system/presentation/components/data/chat/card-message/index.js +1 -1
- package/dist/system/presentation/components/data/chat/loader/index.js +1 -1
- package/dist/system/presentation/components/data/menu/components/menu-item/index.js +0 -80
- package/dist/system/presentation/components/data/menu/modes/collapsed-menu/index.js +0 -44
- package/dist/system/presentation/components/data/menu/modes/collapsed-menu/styles.js +0 -15
- package/dist/system/presentation/components/data/menu/modes/opened/index.js +0 -51
- package/dist/system/presentation/components/data/menu/modes/opened/styles.js +0 -15
- package/dist/system/presentation/components/data/notifications/card/index.d.ts +1 -1
- package/dist/system/presentation/components/data/notifications/card/index.js +1 -1
- package/dist/system/presentation/components/data/profile-infos/profile/index.js +1 -1
- package/dist/system/presentation/components/data/tab/component.d.ts +1 -1
- package/dist/system/presentation/components/data/tab/component.js +3 -3
- package/dist/system/presentation/components/data/tab/component.js.map +1 -1
- package/dist/system/presentation/components/data/tab/interfaces.d.ts +1 -0
- package/dist/system/presentation/components/data/tab/styles.js +1 -1
- package/dist/system/presentation/components/data/tab/styles.js.map +1 -1
- package/dist/system/presentation/components/data/tab/tab-item/index.js +1 -1
- package/dist/system/presentation/components/layout/header/components/menu-right/component.d.ts +0 -6
- package/dist/system/presentation/components/layout/header/components/menu-right/component.js +0 -35
- package/dist/system/presentation/components/layout/header/components/menu-right/index.d.ts +0 -3
- package/dist/system/presentation/components/layout/header/components/menu-right/index.js +0 -20
- package/dist/system/presentation/components/layout/header/components/menu-right/messages/content/card/index.d.ts +1 -1
- package/dist/system/presentation/components/layout/header/components/menu-right/messages/content/card/index.js +3 -3
- package/dist/system/presentation/components/layout/header/components/menu-right/messages/content/index.js +3 -3
- package/dist/system/presentation/components/layout/header/components/menu-right/messages/content/interfaces.d.ts +1 -1
- package/dist/system/presentation/components/layout/header/components/menu-right/messages/index.js +4 -4
- package/dist/system/presentation/components/layout/header/components/menu-right/profile/content/index.js +3 -3
- package/dist/system/presentation/components/layout/header/components/menu-right/profile/index.js +4 -4
- package/dist/system/presentation/components/layout/header/components/search-modal/index.js +0 -40
- package/dist/system/presentation/components/layout/header/components/search-modal/search-list/index.js +3 -3
- package/dist/system/presentation/components/layout/header/components/search-modal/trigger/index.js +2 -2
- package/dist/system/presentation/components/layout/header/version-01/index.js +1 -1
- package/dist/system/presentation/components/pages/menus/table/columns.d.ts +1 -1
- package/dist/system/presentation/components/pages/menus/table/create.d.ts +1 -1
- package/dist/system/presentation/components/pages/menus/table/create.js +1 -1
- package/dist/system/presentation/components/pages/menus/table/delete.js +1 -1
- package/dist/system/presentation/components/pages/menus/table/edit.d.ts +1 -1
- package/dist/system/presentation/components/pages/menus/table/edit.js +0 -1
- package/dist/system/presentation/components/pages/menus/table/icon/index.js +0 -34
- package/dist/system/presentation/components/pages/users/table/columns.d.ts +1 -1
- package/dist/system/presentation/components/pages/users/table/create.d.ts +1 -1
- package/dist/system/presentation/components/pages/users/table/create.js +1 -1
- package/dist/system/presentation/components/pages/users/table/delete.js +1 -1
- package/dist/system/presentation/components/pages/users/table/edit.d.ts +1 -1
- package/dist/system/presentation/components/pages/users/table/edit.js +0 -1
- package/dist/system/presentation/context/auth/components/login/form-login/index.js +0 -12
- package/dist/system/presentation/context/auth/components/login/index.js +1 -1
- package/dist/system/presentation/context/auth/components/private-page/index.js +1 -1
- package/dist/system/presentation/hooks/locales/ibge/use-load-cities-by-uf/index.d.ts +1 -1
- package/dist/system/presentation/hooks/locales/ibge/use-load-cities-by-uf/index.js +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/actions/delete/index.d.ts +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/actions/delete/index.js +2 -2
- package/dist/system/presentation/hooks/ui/use-table/components/table/actions/index.d.ts +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/actions/index.js +4 -4
- package/dist/system/presentation/hooks/ui/use-table/components/table/active-filters/index.d.ts +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/active-filters/index.js +2 -2
- package/dist/system/presentation/hooks/ui/use-table/components/table/create/index.d.ts +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/create/index.js +3 -3
- package/dist/system/presentation/hooks/ui/use-table/components/table/export/index.d.ts +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/export/index.js +2 -2
- package/dist/system/presentation/hooks/ui/use-table/components/table/filters/index.d.ts +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/filters/index.js +3 -3
- package/dist/system/presentation/hooks/ui/use-table/components/table/index.d.ts +0 -2
- package/dist/system/presentation/hooks/ui/use-table/components/table/index.js +0 -105
- package/dist/system/presentation/hooks/ui/use-table/components/table/interfaces.d.ts +0 -14
- package/dist/system/presentation/hooks/ui/use-table/components/table/pagination/index.d.ts +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/pagination/index.js +3 -3
- package/dist/system/presentation/hooks/ui/use-table/components/table/skeleton-table/index.js +2 -2
- package/dist/system/presentation/hooks/ui/use-table/components/table/thead-item/index.d.ts +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/thead-item/index.js +2 -2
- package/dist/system/presentation/hooks/ui/use-table/components/table/thead-item/interfaces.d.ts +1 -1
- package/dist/system/presentation/hooks/ui/use-table/query/hook.js +1 -1
- package/dist/ui/components/carousel/carousel-lib/core/modules/observer/observer.js +2 -2
- package/dist/ui/components/carousel/carousel-lib/core/modules/resize/resize.js +1 -1
- package/dist/ui/components/form/handler/i18n/index.js +1 -1
- package/dist/ui/components/form/handler/i18n/index.js.map +1 -1
- package/dist/ui/components/form/input-cep/use-cep/providers/ibge/hook.d.ts +1 -1
- package/dist/ui/components/form/input-cep/use-cep/providers/ibge/hook.js +1 -1
- package/dist/ui/components/form/input-cep/use-cep/providers/ibge/index.d.ts +3 -3
- package/dist/ui/components/form/input-cep/use-cep/providers/ibge/index.js +3 -3
- package/dist/ui/components/form/input-date-picker/calendar/calendar-header/index.js +0 -62
- package/dist/ui/components/form/input-date-picker/calendar/days/index.d.ts +0 -2
- package/dist/ui/components/form/input-date-picker/calendar/days/index.js +0 -87
- package/dist/ui/components/form/input-date-picker/calendar/months/index.d.ts +0 -2
- package/dist/ui/components/form/input-date-picker/calendar/months/index.js +0 -66
- package/dist/ui/components/form/input-file/render-files/file-item/button-upload-image-mobile/index.d.ts +1 -1
- package/dist/ui/components/form/input-file/render-files/file-item/button-upload-image-mobile/index.js +1 -1
- package/dist/ui/components/form/input-file/render-files/file-item/index.d.ts +0 -3
- package/dist/ui/components/form/input-file/render-files/file-item/index.js +0 -49
- package/dist/ui/components/form/input-mask/lib/core/errors/SyntheticChangeError.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/core/hooks/useInput.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/core/hooks/useInput.js +2 -2
- package/dist/ui/components/form/input-mask/lib/core/index.d.ts +0 -5
- package/dist/ui/components/form/input-mask/lib/core/index.js +0 -15
- package/dist/ui/components/form/input-mask/lib/core/utils/setInputAttributes.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/mask/InputMask.d.ts +0 -6
- package/dist/ui/components/form/input-mask/lib/mask/InputMask.js +0 -44
- package/dist/ui/components/form/input-mask/lib/mask/index.d.ts +0 -5
- package/dist/ui/components/form/input-mask/lib/mask/index.js +0 -26
- package/dist/ui/components/form/input-mask/lib/mask/types.d.ts +0 -61
- package/dist/ui/components/form/input-mask/lib/mask/useMask.d.ts +0 -3
- package/dist/ui/components/form/input-mask/lib/mask/useMask.js +0 -150
- package/dist/ui/components/form/input-mask/lib/mask/utils/filter.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/mask/utils/format.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/mask/utils/formatToParts.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/mask/utils/formatToReplacementObject.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/mask/utils/resolveDetail.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/mask/utils/resolveDetail.js +3 -3
- package/dist/ui/components/form/input-mask/lib/mask/utils/resolveSelection.d.ts +2 -2
- package/dist/ui/components/form/input-mask/lib/mask/utils/unformat.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/mask/utils/validate.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/mask/utils.d.ts +0 -63
- package/dist/ui/components/form/input-mask/lib/mask/utils.js +0 -114
- package/dist/ui/components/form/input-mask/lib/number-format/InputNumberFormat.d.ts +0 -6
- package/dist/ui/components/form/input-mask/lib/number-format/InputNumberFormat.js +0 -58
- package/dist/ui/components/form/input-mask/lib/number-format/index.d.ts +0 -4
- package/dist/ui/components/form/input-mask/lib/number-format/index.js +0 -11
- package/dist/ui/components/form/input-mask/lib/number-format/types.d.ts +0 -26
- package/dist/ui/components/form/input-mask/lib/number-format/useNumberFormat.d.ts +0 -3
- package/dist/ui/components/form/input-mask/lib/number-format/useNumberFormat.js +0 -208
- package/dist/ui/components/form/input-mask/lib/number-format/utils/localizeValues.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/number-format/utils/resolveDetail.d.ts +2 -2
- package/dist/ui/components/form/input-mask/lib/number-format/utils/resolveDetail.js +1 -1
- package/dist/ui/components/form/input-mask/lib/number-format/utils/resolveMinimumFractionDigits.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/number-format/utils/resolveOptions.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/number-format/utils/resolveSelection.d.ts +2 -2
- package/dist/ui/components/form/input-seo/input-meta-image/index.d.ts +1 -1
- package/dist/ui/components/form/input-seo/input-meta-image/index.js +1 -1
- package/dist/ui/components/menu-mobile/components/nav-links/index.js +1 -1
- package/package.json +1 -1
package/dist/system/presentation/components/layout/header/components/menu-right/profile/index.js
CHANGED
|
@@ -25,10 +25,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.Profile = void 0;
|
|
27
27
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
28
|
-
var ui_1 = require("../../../../../../../../ui
|
|
29
|
-
var system_1 = require("../../../../../../../../system
|
|
30
|
-
var content_1 = require("./content
|
|
31
|
-
var S = __importStar(require("./styles
|
|
28
|
+
var ui_1 = require("../../../../../../../../ui");
|
|
29
|
+
var system_1 = require("../../../../../../../../system");
|
|
30
|
+
var content_1 = require("./content");
|
|
31
|
+
var S = __importStar(require("./styles"));
|
|
32
32
|
function Profile() {
|
|
33
33
|
var user = (0, system_1.useAuthAdmin)().user;
|
|
34
34
|
var avatarImage = (user === null || user === void 0 ? void 0 : user.avatar) || '/images/default-profile.png';
|
|
@@ -1,40 +0,0 @@
|
|
|
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.SearchModal = void 0;
|
|
27
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
28
|
-
var react_1 = require("react");
|
|
29
|
-
var ui_1 = require("../../../../../../../ui/index.js");
|
|
30
|
-
var trigger_1 = require("./trigger/index.js");
|
|
31
|
-
var search_list_1 = require("./search-list/index.js");
|
|
32
|
-
var S = __importStar(require("./styles.js"));
|
|
33
|
-
function SearchModal() {
|
|
34
|
-
var _a = (0, react_1.useState)(false), open = _a[0], setOpen = _a[1];
|
|
35
|
-
return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'SearchModal', children: (0, jsx_runtime_1.jsxs)(S.SearchModal, { children: [(0, jsx_runtime_1.jsx)(ui_1.Modal, { open: open, onClose: function () { return setOpen(false); }, stylesContent: {
|
|
36
|
-
padding: 0,
|
|
37
|
-
}, hideCloseButton: true, styles: { width: '100vw', maxWidth: '512px', borderRadius: 10, padding: 0, overflow: 'hidden' }, children: (0, jsx_runtime_1.jsx)(search_list_1.SearchList, { setOpen: setOpen }) }), (0, jsx_runtime_1.jsx)(trigger_1.SearchTrigger, { onClick: function () { return setOpen(true); } })] }) }));
|
|
38
|
-
}
|
|
39
|
-
exports.SearchModal = SearchModal;
|
|
40
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -30,9 +30,9 @@ exports.SearchList = void 0;
|
|
|
30
30
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
31
31
|
var react_1 = require("react");
|
|
32
32
|
var link_1 = __importDefault(require("next/link"));
|
|
33
|
-
var system_1 = require("../../../../../../../../system
|
|
34
|
-
var ui_1 = require("../../../../../../../../ui
|
|
35
|
-
var S = __importStar(require("./styles
|
|
33
|
+
var system_1 = require("../../../../../../../../system");
|
|
34
|
+
var ui_1 = require("../../../../../../../../ui");
|
|
35
|
+
var S = __importStar(require("./styles"));
|
|
36
36
|
function SearchList(_a) {
|
|
37
37
|
var _b;
|
|
38
38
|
var setOpen = _a.setOpen;
|
package/dist/system/presentation/components/layout/header/components/search-modal/trigger/index.js
CHANGED
|
@@ -36,8 +36,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
37
|
exports.SearchTrigger = void 0;
|
|
38
38
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
39
|
-
var ui_1 = require("../../../../../../../../ui
|
|
40
|
-
var S = __importStar(require("./styles
|
|
39
|
+
var ui_1 = require("../../../../../../../../ui");
|
|
40
|
+
var S = __importStar(require("./styles"));
|
|
41
41
|
function SearchTrigger(props) {
|
|
42
42
|
return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'SearchTrigger', children: (0, jsx_runtime_1.jsxs)(S.SearchTrigger, __assign({ "aria-label": 'Search' }, props, { children: [(0, jsx_runtime_1.jsx)("div", { className: 'icon', children: (0, jsx_runtime_1.jsx)(ui_1.Icon, { name: 'LupaIcon' }) }), (0, jsx_runtime_1.jsx)("span", { className: 'placeholder font-14-regular', children: "Pesquisar..." })] })) }));
|
|
43
43
|
}
|
|
@@ -41,4 +41,4 @@ function HeaderVersion01(_a) {
|
|
|
41
41
|
return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'HeaderCarbon', children: (0, jsx_runtime_1.jsx)(S.HeaderVersion01, { id: 'header', children: (0, jsx_runtime_1.jsxs)(ui_1.Container, { children: [(0, jsx_runtime_1.jsx)("div", { className: 'left', children: (0, jsx_runtime_1.jsx)("div", { className: 'logo-wrapper', children: (0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'logo', children: (0, jsx_runtime_1.jsx)(link_1.default, { className: 'logo', href: (logo === null || logo === void 0 ? void 0 : logo.href) || '/', children: (0, jsx_runtime_1.jsx)("img", { src: (logo === null || logo === void 0 ? void 0 : logo.src) || '/images/logo.png', alt: 'header-logo' }) }) }) }) }), (0, jsx_runtime_1.jsxs)("div", { className: 'right', children: [showHamburger && ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'open_menu_button', children: (0, jsx_runtime_1.jsx)("button", { className: 'open_menu', onClick: function () { return setOpenMenu(true); }, type: 'button', children: (0, jsx_runtime_1.jsx)("svg", { xmlns: 'http://www.w3.org/2000/svg', fill: 'none', viewBox: '0 0 24 24', "stroke-width": '2', stroke: 'currentColor', children: (0, jsx_runtime_1.jsx)("path", { strokeLinecap: 'round', strokeLinejoin: 'round', d: 'M3.75 6.75h16.5M3.75 12H12m-8.25 5.25h16.5' }) }) }) })), (0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'search_modal', children: (0, jsx_runtime_1.jsx)(system_1.SearchModal, {}) }), (0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'menu-right', children: (0, jsx_runtime_1.jsx)(system_1.MenuRight, { workspaces: workspaces }) })] })] }) }) }));
|
|
42
42
|
}
|
|
43
43
|
exports.HeaderVersion01 = HeaderVersion01;
|
|
44
|
-
|
|
44
|
+
/
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { DynamicFormHandlerProps } from '../../../../../../ui/index.js';
|
|
2
2
|
import { Menu } from '../../../../../../system/index.js';
|
|
3
|
-
export declare function useCreateTable(queryKey: string):
|
|
3
|
+
export declare function useCreateTable(queryKey: string):
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { DynamicFormHandlerProps } from '../../../../../../ui/index.js';
|
|
2
2
|
import { Menu } from '../../../../../../system/index.js';
|
|
3
|
-
export declare function useEditTable(queryKey: string):
|
|
3
|
+
export declare function useEditTable(queryKey: string):
|
|
@@ -1,34 +0,0 @@
|
|
|
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.IconMenu = void 0;
|
|
27
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
28
|
-
var S = __importStar(require("./style.js"));
|
|
29
|
-
function IconMenu(_a) {
|
|
30
|
-
var icon = _a.icon;
|
|
31
|
-
return (0, jsx_runtime_1.jsx)(S.IconMenu, { dangerouslySetInnerHTML: { __html: icon || "" } });
|
|
32
|
-
}
|
|
33
|
-
exports.IconMenu = IconMenu;
|
|
34
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { DynamicFormHandlerProps } from '../../../../../../ui/index.js';
|
|
2
2
|
import { User } from '../../../../../../system/index.js';
|
|
3
|
-
export declare function useCreateTable(queryKey: string):
|
|
3
|
+
export declare function useCreateTable(queryKey: string):
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { DynamicFormHandlerProps } from '../../../../../../ui/index.js';
|
|
2
2
|
import { User } from '../../../../../../system/index.js';
|
|
3
|
-
export declare function useEditTable(queryKey: string):
|
|
3
|
+
export declare function useEditTable(queryKey: string):
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FormLogin = void 0;
|
|
4
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
var ui_1 = require("../../../../../../../ui/index.js");
|
|
6
|
-
var context_1 = require("../../../context.js");
|
|
7
|
-
function FormLogin() {
|
|
8
|
-
var signIn = (0, context_1.useAuthAdmin)().signIn;
|
|
9
|
-
return ((0, jsx_runtime_1.jsxs)(ui_1.FormHandler, { button: { text: 'Entrar' }, initialData: { emailAddress: '', password: '' }, onSucess: signIn, debugMode: true, children: [(0, jsx_runtime_1.jsx)(ui_1.Input, { type: 'email', label: 'Email', name: 'emailAddress', placeholder: 'Digite seu usu\u00E1rio' }), (0, jsx_runtime_1.jsx)(ui_1.InputPassword, { name: 'password', label: 'Senha', placeholder: 'Digite sua senha' })] }));
|
|
10
|
-
}
|
|
11
|
-
exports.FormLogin = FormLogin;
|
|
12
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -35,4 +35,4 @@ function Login() {
|
|
|
35
35
|
return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'login', children: (0, jsx_runtime_1.jsxs)(S.Login, { children: [(0, jsx_runtime_1.jsxs)("div", { className: 'content', children: [(0, jsx_runtime_1.jsx)("div", { className: 'empty' }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("div", { className: 'logo', children: (0, jsx_runtime_1.jsx)(ui_1.NextImage, { src: '/images/login-logo.png', alt: ' ' }) }), (0, jsx_runtime_1.jsx)("div", { className: 'text', children: (0, jsx_runtime_1.jsx)("h5", { className: 'font-20-bold', children: "Seja bem vindo!" }) }), (0, jsx_runtime_1.jsx)(form_login_1.FormLogin, {})] }), (0, jsx_runtime_1.jsx)("div", { className: 'contact-footer', children: (0, jsx_runtime_1.jsxs)("span", { children: ["Powered by", ' ', (0, jsx_runtime_1.jsxs)("a", { target: '_blank', href: (_a = Configurations === null || Configurations === void 0 ? void 0 : Configurations.poweredBy) === null || _a === void 0 ? void 0 : _a.link, children: [(_b = Configurations === null || Configurations === void 0 ? void 0 : Configurations.poweredBy) === null || _b === void 0 ? void 0 : _b.name, "."] }), ' ', "Todos os direitos reservados."] }) })] }), (0, jsx_runtime_1.jsx)("div", { className: 'image', children: (0, jsx_runtime_1.jsx)(ui_1.NextImage, { src: '/images/login-left.png', alt: 'Imagem de login' }) })] }) }));
|
|
36
36
|
}
|
|
37
37
|
exports.Login = Login;
|
|
38
|
-
//#
|
|
38
|
+
//# sourceMapping
|
|
@@ -138,4 +138,4 @@ function LoginControl(_a) {
|
|
|
138
138
|
var noHaveUser = !user && router.isReady && interceptorIsReady && !loading;
|
|
139
139
|
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [Loading && (0, jsx_runtime_1.jsx)(ui_1.LoadingScreen, { size: 30, color: '#000' }), noHaveUser && (0, jsx_runtime_1.jsx)(LoginComponent, {})] }));
|
|
140
140
|
}
|
|
141
|
-
//#
|
|
141
|
+
//# sourceMapping
|
package/dist/system/presentation/hooks/ui/use-table/components/table/actions/delete/index.js
CHANGED
|
@@ -39,8 +39,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
39
39
|
exports.ActionDelete = void 0;
|
|
40
40
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
41
41
|
var react_1 = require("react");
|
|
42
|
-
var ui_1 = require("../../../../../../../../../ui
|
|
43
|
-
var system_1 = require("../../../../../../../../../system
|
|
42
|
+
var ui_1 = require("../../../../../../../../../ui");
|
|
43
|
+
var system_1 = require("../../../../../../../../../system");
|
|
44
44
|
function ActionDelete(_a) {
|
|
45
45
|
var _b, _c;
|
|
46
46
|
var action = _a.action, table = _a.table;
|
|
@@ -77,10 +77,10 @@ exports.Actions = void 0;
|
|
|
77
77
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
78
78
|
var react_1 = require("react");
|
|
79
79
|
var link_1 = __importDefault(require("next/link"));
|
|
80
|
-
var ui_1 = require("../../../../../../../../ui
|
|
81
|
-
var delete_1 = require("./delete
|
|
82
|
-
var S = __importStar(require("./styles
|
|
83
|
-
var context_1 = require("../../../../../../../../system/presentation/context
|
|
80
|
+
var ui_1 = require("../../../../../../../../ui");
|
|
81
|
+
var delete_1 = require("./delete");
|
|
82
|
+
var S = __importStar(require("./styles"));
|
|
83
|
+
var context_1 = require("../../../../../../../../system/presentation/context");
|
|
84
84
|
function Actions(_a) {
|
|
85
85
|
var _this = this;
|
|
86
86
|
var _b, _c, _d;
|
package/dist/system/presentation/hooks/ui/use-table/components/table/active-filters/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ITableProps } from '../interfaces
|
|
1
|
+
import { ITableProps } from '../interfaces';
|
|
2
2
|
export declare function ActiveFilters({ configs, tableInformations }: ITableProps): import("react/jsx-runtime").JSX.Element;
|
package/dist/system/presentation/hooks/ui/use-table/components/table/active-filters/index.js
CHANGED
|
@@ -35,8 +35,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
35
35
|
exports.ActiveFilters = void 0;
|
|
36
36
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
37
37
|
var router_1 = require("next/router");
|
|
38
|
-
var ui_1 = require("../../../../../../../../ui
|
|
39
|
-
var S = __importStar(require("./styles
|
|
38
|
+
var ui_1 = require("../../../../../../../../ui");
|
|
39
|
+
var S = __importStar(require("./styles"));
|
|
40
40
|
function ActiveFilters(_a) {
|
|
41
41
|
var _b, _c, _d;
|
|
42
42
|
var configs = _a.configs, tableInformations = _a.tableInformations;
|
|
@@ -41,9 +41,9 @@ exports.CreateAction = void 0;
|
|
|
41
41
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
42
42
|
var react_1 = require("react");
|
|
43
43
|
var link_1 = __importDefault(require("next/link"));
|
|
44
|
-
var ui_1 = require("../../../../../../../../ui
|
|
45
|
-
var system_1 = require("../../../../../../../../system
|
|
46
|
-
var S = __importStar(require("./styles
|
|
44
|
+
var ui_1 = require("../../../../../../../../ui");
|
|
45
|
+
var system_1 = require("../../../../../../../../system");
|
|
46
|
+
var S = __importStar(require("./styles"));
|
|
47
47
|
function CreateAction(_a) {
|
|
48
48
|
var _b, _c, _d, _e;
|
|
49
49
|
var actions = _a.actions;
|
|
@@ -25,8 +25,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.Export = void 0;
|
|
27
27
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
28
|
-
var ui_1 = require("../../../../../../../../ui
|
|
29
|
-
var S = __importStar(require("./styles
|
|
28
|
+
var ui_1 = require("../../../../../../../../ui");
|
|
29
|
+
var S = __importStar(require("./styles"));
|
|
30
30
|
function Export(_a) {
|
|
31
31
|
var exports = _a.exports;
|
|
32
32
|
return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'Export', children: (0, jsx_runtime_1.jsxs)(S.Export, { className: 'font-14-regular', children: [(0, jsx_runtime_1.jsx)("div", { className: 'icon', children: (0, jsx_runtime_1.jsx)(ui_1.Icon, { name: 'IconUpload' }) }), "Exportar"] }) }));
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ITableProps } from '../interfaces
|
|
1
|
+
import { ITableProps } from '../interfaces';
|
|
2
2
|
export declare function Filters({ configs, tableInformations }: ITableProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -82,9 +82,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
82
82
|
exports.Filters = void 0;
|
|
83
83
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
84
84
|
var router_1 = require("next/router");
|
|
85
|
-
var system_1 = require("../../../../../../../../system
|
|
86
|
-
var ui_1 = require("../../../../../../../../ui
|
|
87
|
-
var S = __importStar(require("./styles
|
|
85
|
+
var system_1 = require("../../../../../../../../system");
|
|
86
|
+
var ui_1 = require("../../../../../../../../ui");
|
|
87
|
+
var S = __importStar(require("./styles"));
|
|
88
88
|
function Filters(_a) {
|
|
89
89
|
var _b;
|
|
90
90
|
var configs = _a.configs, tableInformations = _a.tableInformations;
|
|
@@ -1,105 +0,0 @@
|
|
|
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 __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
|
-
if (k2 === undefined) k2 = k;
|
|
15
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
16
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
17
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
18
|
-
}
|
|
19
|
-
Object.defineProperty(o, k2, desc);
|
|
20
|
-
}) : (function(o, m, k, k2) {
|
|
21
|
-
if (k2 === undefined) k2 = k;
|
|
22
|
-
o[k2] = m[k];
|
|
23
|
-
}));
|
|
24
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
25
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
26
|
-
}) : function(o, v) {
|
|
27
|
-
o["default"] = v;
|
|
28
|
-
});
|
|
29
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
30
|
-
if (mod && mod.__esModule) return mod;
|
|
31
|
-
var result = {};
|
|
32
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
33
|
-
__setModuleDefault(result, mod);
|
|
34
|
-
return result;
|
|
35
|
-
};
|
|
36
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
-
exports.Table = void 0;
|
|
38
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
39
|
-
var react_1 = require("react");
|
|
40
|
-
var router_1 = require("next/router");
|
|
41
|
-
var ui_1 = require("../../../../../../../ui/index.js");
|
|
42
|
-
var export_1 = require("./export/index.js");
|
|
43
|
-
var actions_1 = require("./actions/index.js");
|
|
44
|
-
var filters_1 = require("./filters/index.js");
|
|
45
|
-
var create_1 = require("./create/index.js");
|
|
46
|
-
var thead_item_1 = require("./thead-item/index.js");
|
|
47
|
-
var pagination_1 = require("./pagination/index.js");
|
|
48
|
-
var skeleton_table_1 = require("./skeleton-table/index.js");
|
|
49
|
-
var active_filters_1 = require("./active-filters/index.js");
|
|
50
|
-
var S = __importStar(require("./styles.js"));
|
|
51
|
-
function Table(props) {
|
|
52
|
-
var _a, _b, _c, _d;
|
|
53
|
-
var configs = props.configs, isFetching = props.isFetching, columnsConfiguration = props.columnsConfiguration, tableInformations = props.tableInformations;
|
|
54
|
-
var router = (0, router_1.useRouter)();
|
|
55
|
-
var loadingTable = configs.isLoading || isFetching;
|
|
56
|
-
var pagination = (configs === null || configs === void 0 ? void 0 : configs.pagination) || (tableInformations === null || tableInformations === void 0 ? void 0 : tableInformations.pagination);
|
|
57
|
-
var paramToSearch = ((_b = (((_a = router.query) === null || _a === void 0 ? void 0 : _a.search) || '')) === null || _b === void 0 ? void 0 : _b.toLowerCase()) || '';
|
|
58
|
-
var tableItems = configs.tableData || (tableInformations === null || tableInformations === void 0 ? void 0 : tableInformations.items);
|
|
59
|
-
var tableFilered = (configs === null || configs === void 0 ? void 0 : configs.enableSearchInSelf)
|
|
60
|
-
? tableItems && tableItems.length > 0
|
|
61
|
-
? tableItems === null || tableItems === void 0 ? void 0 : tableItems.filter(function (item) {
|
|
62
|
-
var _a;
|
|
63
|
-
var stringfyItem = item ? JSON.stringify(item) : '';
|
|
64
|
-
return (_a = stringfyItem === null || stringfyItem === void 0 ? void 0 : stringfyItem.toLowerCase()) === null || _a === void 0 ? void 0 : _a.includes(paramToSearch);
|
|
65
|
-
})
|
|
66
|
-
: null
|
|
67
|
-
: null;
|
|
68
|
-
var tableData = tableFilered || tableItems || [];
|
|
69
|
-
var tableRef = (0, react_1.useRef)(null);
|
|
70
|
-
return ((0, jsx_runtime_1.jsxs)(ui_1.Error, { name: 'table-component', children: [(0, jsx_runtime_1.jsxs)(S.TopActions, { className: 'top-actions', children: [(0, jsx_runtime_1.jsx)(filters_1.Filters, __assign({}, props)), (0, jsx_runtime_1.jsxs)("div", { className: 'right', children: [(tableInformations === null || tableInformations === void 0 ? void 0 : tableInformations.exports) && ((_c = tableInformations === null || tableInformations === void 0 ? void 0 : tableInformations.exports) === null || _c === void 0 ? void 0 : _c.length) > 0 && ((0, jsx_runtime_1.jsx)(export_1.Export, { exports: tableInformations.exports })), (columnsConfiguration === null || columnsConfiguration === void 0 ? void 0 : columnsConfiguration.actions) && (0, jsx_runtime_1.jsx)(create_1.CreateAction, { actions: columnsConfiguration === null || columnsConfiguration === void 0 ? void 0 : columnsConfiguration.actions })] })] }), (0, jsx_runtime_1.jsx)(active_filters_1.ActiveFilters, __assign({}, props)), (0, jsx_runtime_1.jsx)(S.Table, { children: (0, jsx_runtime_1.jsxs)("div", { ref: tableRef, children: [(0, jsx_runtime_1.jsxs)("table", { children: [(0, jsx_runtime_1.jsx)("thead", { children: (0, jsx_runtime_1.jsxs)("tr", { children: [columnsConfiguration.actions && (0, jsx_runtime_1.jsx)("th", { style: { width: '100px' } }), (_d = columnsConfiguration.columns) === null || _d === void 0 ? void 0 : _d.map(function (colunm, index) {
|
|
71
|
-
if (colunm.enabled === false) {
|
|
72
|
-
return (0, jsx_runtime_1.jsx)(react_1.Fragment, {}, colunm.id + index);
|
|
73
|
-
}
|
|
74
|
-
return ((0, jsx_runtime_1.jsx)(thead_item_1.THeadItem, { index: index, colunm: colunm, disableOrdenationTable: configs === null || configs === void 0 ? void 0 : configs.disableOrdenationTable }, colunm.id + index));
|
|
75
|
-
})] }) }), (0, jsx_runtime_1.jsxs)("tbody", { children: [!loadingTable &&
|
|
76
|
-
tableItems &&
|
|
77
|
-
Array.isArray(tableItems) &&
|
|
78
|
-
(tableItems === null || tableItems === void 0 ? void 0 : tableItems.length) !== 0 &&
|
|
79
|
-
(tableData === null || tableData === void 0 ? void 0 : tableData.map(function (table, index) {
|
|
80
|
-
var _a;
|
|
81
|
-
return ((0, jsx_runtime_1.jsxs)("tr", { children: [columnsConfiguration.actions && (0, jsx_runtime_1.jsx)(actions_1.Actions, { actions: columnsConfiguration.actions, table: table }), (_a = columnsConfiguration.columns) === null || _a === void 0 ? void 0 : _a.map(function (e, i) {
|
|
82
|
-
var _a, _b, _c, _d;
|
|
83
|
-
if (e.enabled === false) {
|
|
84
|
-
return (0, jsx_runtime_1.jsx)(react_1.Fragment, {}, e.id + index);
|
|
85
|
-
}
|
|
86
|
-
function getProps() {
|
|
87
|
-
var _a;
|
|
88
|
-
var props = Object.keys(((_a = e.Component) === null || _a === void 0 ? void 0 : _a.props) || {}).reduce(function (reducer, property) {
|
|
89
|
-
var _a;
|
|
90
|
-
var newReducer = reducer;
|
|
91
|
-
newReducer[property] = table[(_a = e.Component) === null || _a === void 0 ? void 0 : _a.props[property]];
|
|
92
|
-
return __assign({}, newReducer);
|
|
93
|
-
}, {});
|
|
94
|
-
return props;
|
|
95
|
-
}
|
|
96
|
-
var props = ((_a = e.Component) === null || _a === void 0 ? void 0 : _a.allProps) ? table : ((_b = e.Component) === null || _b === void 0 ? void 0 : _b.props) ? getProps() : {};
|
|
97
|
-
var defaultProps = ((_c = e.Component) === null || _c === void 0 ? void 0 : _c.defaultProps) ? (_d = e.Component) === null || _d === void 0 ? void 0 : _d.defaultProps : {};
|
|
98
|
-
var widthTable = tableRef.current;
|
|
99
|
-
var widthPercentage = (e.width * 100) / ((widthTable === null || widthTable === void 0 ? void 0 : widthTable.offsetWidth) || 0);
|
|
100
|
-
return ((0, jsx_runtime_1.jsx)("td", { className: 'font-14-regular', style: { width: widthPercentage.toFixed(2) + '%' }, children: e.Component ? ((0, jsx_runtime_1.jsx)(e.Component.Element, __assign({}, props, defaultProps, { index: index }))) : (table[e.id]) }, String(index) + String(i)));
|
|
101
|
-
})] }, table.id + String(index)));
|
|
102
|
-
})), loadingTable && ((0, jsx_runtime_1.jsxs)("tr", { style: { height: 0 }, children: [columnsConfiguration.columns.map(function (c, index) { return ((0, jsx_runtime_1.jsx)("td", { children: (0, jsx_runtime_1.jsx)("div", { style: { width: c.width + 'px' } }) }, index)); }), columnsConfiguration.actions && ((0, jsx_runtime_1.jsx)("td", { style: { width: '100%' }, children: (0, jsx_runtime_1.jsx)("div", { style: { width: '100%' } }) }))] }))] })] }), !loadingTable && (tableData === null || tableData === void 0 ? void 0 : tableData.length) === 0 && ((0, jsx_runtime_1.jsxs)("div", { className: 'error_table', children: [(0, jsx_runtime_1.jsxs)("svg", { xmlns: 'http://www.w3.org/2000/svg', width: '60', height: '60', viewBox: '0 0 60 60', fill: 'none', children: [(0, jsx_runtime_1.jsx)("path", { d: 'M49.8 18.3301H24.02C23.05 18.3301 22.26 19.1201 22.26 20.0901C22.26 21.0601 23.05 21.8501 24.02 21.8501H49.8C50.77 21.8501 51.56 21.0601 51.56 20.0901C51.56 19.1201 50.77 18.3301 49.8 18.3301Z', fill: '#828282' }), (0, jsx_runtime_1.jsx)("path", { d: 'M19.85 47.7001C20.19 48.0401 20.64 48.2101 21.09 48.2101C21.54 48.2101 21.99 48.0401 22.33 47.7001C23.02 47.0101 23.02 45.9001 22.33 45.2101L18.3 41.1801L22.33 37.1501C23.02 36.4601 23.02 35.3501 22.33 34.6601C21.64 33.9701 20.53 33.9701 19.84 34.6601L15.81 38.6901L11.78 34.6601C11.09 33.9701 9.97996 33.9701 9.28996 34.6601C8.59996 35.3501 8.59996 36.4601 9.28996 37.1501L13.32 41.1801L9.28996 45.2101C8.59996 45.9001 8.59996 47.0101 9.28996 47.7001C9.62996 48.0401 10.08 48.2101 10.53 48.2101C10.98 48.2101 11.43 48.0401 11.77 47.7001L15.8 43.6701L19.83 47.7001H19.85Z', fill: '#828282' }), (0, jsx_runtime_1.jsx)("path", { d: 'M59.75 9.29004C59.75 6.38004 57.39 4.01004 54.48 4.01004H19.34C16.43 4.00004 14.07 6.36004 14.07 9.27004V25.45C6.17001 26.33 0.0100098 33.04 0.0100098 41.17C0.0100098 49.89 7.11001 56.99 15.83 56.99H54.5C57.41 56.99 59.77 54.62 59.77 51.72V9.29004H59.75ZM15.82 53.48C9.04001 53.48 3.52001 47.96 3.52001 41.18C3.52001 34.4 9.04001 28.88 15.82 28.88C22.6 28.88 28.12 34.4 28.12 41.18C28.12 47.96 22.6 53.48 15.82 53.48ZM54.49 53.48H25.75C28.91 50.92 31.07 47.18 31.54 42.93H49.8C50.77 42.93 51.56 42.14 51.56 41.17C51.56 40.2 50.77 39.41 49.8 39.41H31.54C31.25 36.83 30.34 34.43 28.97 32.38H49.81C50.78 32.38 51.57 31.59 51.57 30.62C51.57 29.65 50.78 28.86 49.81 28.86H25.76C23.47 27.01 20.66 25.78 17.59 25.44V9.27004C17.59 8.30004 18.38 7.51004 19.35 7.51004H54.49C55.46 7.52004 56.25 8.31004 56.25 9.28004V51.72C56.26 52.69 55.48 53.48 54.51 53.48H54.49Z', fill: '#828282' })] }), (0, jsx_runtime_1.jsx)("h3", { children: configs === null || configs === void 0 ? void 0 : configs.errorMessage })] })), loadingTable && (0, jsx_runtime_1.jsx)(skeleton_table_1.SkeletonTable, {})] }) }), !(configs === null || configs === void 0 ? void 0 : configs.disablePagination) && pagination && ((0, jsx_runtime_1.jsxs)(S.TableBottom, { className: 'table-bottom', children: [pagination && ((0, jsx_runtime_1.jsxs)("span", { children: ["Mostrando", ' ', (0, jsx_runtime_1.jsx)("strong", { children: pagination.pageSize > pagination.totalItems ? pagination.totalItems : pagination === null || pagination === void 0 ? void 0 : pagination.pageSize }), ' ', "de ", (0, jsx_runtime_1.jsx)("strong", { children: pagination === null || pagination === void 0 ? void 0 : pagination.totalItems }), " resultados"] })), pagination && (0, jsx_runtime_1.jsx)(pagination_1.PaginationTable, __assign({}, pagination))] }))] }));
|
|
103
|
-
}
|
|
104
|
-
exports.Table = Table;
|
|
105
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { List, Pagination, TableConfiguration } from '../../../../../../../system/index.js';
|
|
2
|
-
import { IUseTableProps } from '../../interfaces.js';
|
|
3
|
-
type colunm = keyof any;
|
|
4
|
-
interface IShowHiden {
|
|
5
|
-
text: string;
|
|
6
|
-
filterBased: colunm;
|
|
7
|
-
disable: string[];
|
|
8
|
-
enable: string[];
|
|
9
|
-
}
|
|
10
|
-
type ITableProps = {
|
|
11
|
-
isFetching: boolean;
|
|
12
|
-
tableInformations?: TableConfiguration & List<any> & Pagination;
|
|
13
|
-
} & IUseTableProps;
|
|
14
|
-
export type { ITableProps, IShowHiden };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { PaginationModel } from '../../../../../../../../system
|
|
1
|
+
import { PaginationModel } from '../../../../../../../../system';
|
|
2
2
|
export declare function PaginationTable({ page, endPage, pages, pageSize, totalItems, hasNextPage, hasPreviousPage }: PaginationModel): import("react/jsx-runtime").JSX.Element;
|
|
@@ -26,9 +26,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
26
26
|
exports.PaginationTable = void 0;
|
|
27
27
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
28
28
|
var router_1 = require("next/router");
|
|
29
|
-
var ui_1 = require("../../../../../../../../ui
|
|
30
|
-
var service_1 = require("./service
|
|
31
|
-
var S = __importStar(require("./styles
|
|
29
|
+
var ui_1 = require("../../../../../../../../ui");
|
|
30
|
+
var service_1 = require("./service");
|
|
31
|
+
var S = __importStar(require("./styles"));
|
|
32
32
|
function PaginationTable(_a) {
|
|
33
33
|
var page = _a.page, endPage = _a.endPage, pages = _a.pages, pageSize = _a.pageSize, totalItems = _a.totalItems, hasNextPage = _a.hasNextPage, hasPreviousPage = _a.hasPreviousPage;
|
|
34
34
|
var router = (0, router_1.useRouter)();
|
package/dist/system/presentation/hooks/ui/use-table/components/table/skeleton-table/index.js
CHANGED
|
@@ -25,8 +25,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.SkeletonTable = void 0;
|
|
27
27
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
28
|
-
var ui_1 = require("../../../../../../../../ui
|
|
29
|
-
var S = __importStar(require("./styles
|
|
28
|
+
var ui_1 = require("../../../../../../../../ui");
|
|
29
|
+
var S = __importStar(require("./styles"));
|
|
30
30
|
function SkeletonTable() {
|
|
31
31
|
return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'skeleton', children: (0, jsx_runtime_1.jsxs)(S.SkeletonCustom, { "data-testid": 'skeleton', children: [(0, jsx_runtime_1.jsx)(ui_1.Skeleton, { type: 'line', size: { height: '60px', width: '100%', margin: "0" } }), (0, jsx_runtime_1.jsx)(ui_1.Skeleton, { type: 'line', size: { height: '60px', width: '100%', margin: "0" } }), (0, jsx_runtime_1.jsx)(ui_1.Skeleton, { type: 'line', size: { height: '60px', width: '100%', margin: "0" } }), (0, jsx_runtime_1.jsx)(ui_1.Skeleton, { type: 'line', size: { height: '60px', width: '100%', margin: "0" } }), (0, jsx_runtime_1.jsx)(ui_1.Skeleton, { type: 'line', size: { height: '60px', width: '100%', margin: "0" } }), (0, jsx_runtime_1.jsx)(ui_1.Skeleton, { type: 'line', size: { height: '60px', width: '100%', margin: "0" } }), (0, jsx_runtime_1.jsx)(ui_1.Skeleton, { type: 'line', size: { height: '60px', width: '100%', margin: "0" } }), (0, jsx_runtime_1.jsx)(ui_1.Skeleton, { type: 'line', size: { height: '60px', width: '100%', margin: "0" } }), (0, jsx_runtime_1.jsx)(ui_1.Skeleton, { type: 'line', size: { height: '60px', width: '100%', margin: "0" } })] }) }));
|
|
32
32
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ITHeadItemProps } from './interfaces
|
|
1
|
+
import { ITHeadItemProps } from './interfaces';
|
|
2
2
|
export declare function THeadItem({ colunm, disableOrdenationTable }: ITHeadItemProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -26,8 +26,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
26
26
|
exports.THeadItem = void 0;
|
|
27
27
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
28
28
|
var router_1 = require("next/router");
|
|
29
|
-
var ui_1 = require("../../../../../../../../ui
|
|
30
|
-
var S = __importStar(require("./styles
|
|
29
|
+
var ui_1 = require("../../../../../../../../ui");
|
|
30
|
+
var S = __importStar(require("./styles"));
|
|
31
31
|
function THeadItem(_a) {
|
|
32
32
|
var colunm = _a.colunm, disableOrdenationTable = _a.disableOrdenationTable;
|
|
33
33
|
var router = (0, router_1.useRouter)();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//@ts-nocheck
|
|
4
|
-
var utils_1 = require("../../../shared/utils
|
|
5
|
-
var window_1 = require("../../../ssr-window/window
|
|
4
|
+
var utils_1 = require("../../../shared/utils");
|
|
5
|
+
var window_1 = require("../../../ssr-window/window");
|
|
6
6
|
function Observer(_a) {
|
|
7
7
|
var swiper = _a.swiper, extendParams = _a.extendParams, on = _a.on, emit = _a.emit;
|
|
8
8
|
var observers = [];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
//@ts-nocheck
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
var window_1 = require("../../../ssr-window/window
|
|
4
|
+
var window_1 = require("../../../ssr-window/window");
|
|
5
5
|
function Resize(_a) {
|
|
6
6
|
var swiper = _a.swiper, on = _a.on, emit = _a.emit;
|
|
7
7
|
var window = (0, window_1.getWindow)();
|