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.
Files changed (141) hide show
  1. package/dist/sites/components/default-pages/blog/components/blog-item/index.d.ts +1 -1
  2. package/dist/sites/components/default-pages/blog/components/blog-item/index.js +1 -1
  3. package/dist/sites/components/default-pages/blog/components/categorias/index.js +1 -1
  4. package/dist/sites/components/default-pages/blog/components/featured-blog/featured-blog-item/index.d.ts +0 -4
  5. package/dist/sites/components/default-pages/blog/components/featured-blog/featured-blog-item/index.js +0 -42
  6. package/dist/sites/components/default-pages/blog/components/featured-blog/index.js +1 -1
  7. package/dist/sites/components/default-pages/blog/components/side-box-newsletter/index.js +1 -1
  8. package/dist/sites/components/default-pages/blog/components/side-box-search/index.js +1 -1
  9. package/dist/sites/components/default-pages/blog/components/title-blog/index.js +1 -1
  10. package/dist/system/presentation/components/data/buttons/sidebar-button/index.js +1 -1
  11. package/dist/system/presentation/components/data/chat/card-message/index.d.ts +1 -1
  12. package/dist/system/presentation/components/data/chat/card-message/index.js +1 -1
  13. package/dist/system/presentation/components/data/chat/loader/index.js +1 -1
  14. package/dist/system/presentation/components/data/menu/components/menu-item/index.js +0 -80
  15. package/dist/system/presentation/components/data/menu/modes/collapsed-menu/index.js +0 -44
  16. package/dist/system/presentation/components/data/menu/modes/collapsed-menu/styles.js +0 -15
  17. package/dist/system/presentation/components/data/menu/modes/opened/index.js +0 -51
  18. package/dist/system/presentation/components/data/menu/modes/opened/styles.js +0 -15
  19. package/dist/system/presentation/components/data/notifications/card/index.d.ts +1 -1
  20. package/dist/system/presentation/components/data/notifications/card/index.js +1 -1
  21. package/dist/system/presentation/components/data/profile-infos/profile/index.js +1 -1
  22. package/dist/system/presentation/components/data/tab/component.d.ts +1 -1
  23. package/dist/system/presentation/components/data/tab/component.js +3 -3
  24. package/dist/system/presentation/components/data/tab/component.js.map +1 -1
  25. package/dist/system/presentation/components/data/tab/interfaces.d.ts +1 -0
  26. package/dist/system/presentation/components/data/tab/styles.js +1 -1
  27. package/dist/system/presentation/components/data/tab/styles.js.map +1 -1
  28. package/dist/system/presentation/components/data/tab/tab-item/index.js +1 -1
  29. package/dist/system/presentation/components/layout/header/components/menu-right/component.d.ts +0 -6
  30. package/dist/system/presentation/components/layout/header/components/menu-right/component.js +0 -35
  31. package/dist/system/presentation/components/layout/header/components/menu-right/index.d.ts +0 -3
  32. package/dist/system/presentation/components/layout/header/components/menu-right/index.js +0 -20
  33. package/dist/system/presentation/components/layout/header/components/menu-right/messages/content/card/index.d.ts +1 -1
  34. package/dist/system/presentation/components/layout/header/components/menu-right/messages/content/card/index.js +3 -3
  35. package/dist/system/presentation/components/layout/header/components/menu-right/messages/content/index.js +3 -3
  36. package/dist/system/presentation/components/layout/header/components/menu-right/messages/content/interfaces.d.ts +1 -1
  37. package/dist/system/presentation/components/layout/header/components/menu-right/messages/index.js +4 -4
  38. package/dist/system/presentation/components/layout/header/components/menu-right/profile/content/index.js +3 -3
  39. package/dist/system/presentation/components/layout/header/components/menu-right/profile/index.js +4 -4
  40. package/dist/system/presentation/components/layout/header/components/search-modal/index.js +0 -40
  41. package/dist/system/presentation/components/layout/header/components/search-modal/search-list/index.js +3 -3
  42. package/dist/system/presentation/components/layout/header/components/search-modal/trigger/index.js +2 -2
  43. package/dist/system/presentation/components/layout/header/version-01/index.js +1 -1
  44. package/dist/system/presentation/components/pages/menus/table/columns.d.ts +1 -1
  45. package/dist/system/presentation/components/pages/menus/table/create.d.ts +1 -1
  46. package/dist/system/presentation/components/pages/menus/table/create.js +1 -1
  47. package/dist/system/presentation/components/pages/menus/table/delete.js +1 -1
  48. package/dist/system/presentation/components/pages/menus/table/edit.d.ts +1 -1
  49. package/dist/system/presentation/components/pages/menus/table/edit.js +0 -1
  50. package/dist/system/presentation/components/pages/menus/table/icon/index.js +0 -34
  51. package/dist/system/presentation/components/pages/users/table/columns.d.ts +1 -1
  52. package/dist/system/presentation/components/pages/users/table/create.d.ts +1 -1
  53. package/dist/system/presentation/components/pages/users/table/create.js +1 -1
  54. package/dist/system/presentation/components/pages/users/table/delete.js +1 -1
  55. package/dist/system/presentation/components/pages/users/table/edit.d.ts +1 -1
  56. package/dist/system/presentation/components/pages/users/table/edit.js +0 -1
  57. package/dist/system/presentation/context/auth/components/login/form-login/index.js +0 -12
  58. package/dist/system/presentation/context/auth/components/login/index.js +1 -1
  59. package/dist/system/presentation/context/auth/components/private-page/index.js +1 -1
  60. package/dist/system/presentation/hooks/locales/ibge/use-load-cities-by-uf/index.d.ts +1 -1
  61. package/dist/system/presentation/hooks/locales/ibge/use-load-cities-by-uf/index.js +1 -1
  62. package/dist/system/presentation/hooks/ui/use-table/components/table/actions/delete/index.d.ts +1 -1
  63. package/dist/system/presentation/hooks/ui/use-table/components/table/actions/delete/index.js +2 -2
  64. package/dist/system/presentation/hooks/ui/use-table/components/table/actions/index.d.ts +1 -1
  65. package/dist/system/presentation/hooks/ui/use-table/components/table/actions/index.js +4 -4
  66. package/dist/system/presentation/hooks/ui/use-table/components/table/active-filters/index.d.ts +1 -1
  67. package/dist/system/presentation/hooks/ui/use-table/components/table/active-filters/index.js +2 -2
  68. package/dist/system/presentation/hooks/ui/use-table/components/table/create/index.d.ts +1 -1
  69. package/dist/system/presentation/hooks/ui/use-table/components/table/create/index.js +3 -3
  70. package/dist/system/presentation/hooks/ui/use-table/components/table/export/index.d.ts +1 -1
  71. package/dist/system/presentation/hooks/ui/use-table/components/table/export/index.js +2 -2
  72. package/dist/system/presentation/hooks/ui/use-table/components/table/filters/index.d.ts +1 -1
  73. package/dist/system/presentation/hooks/ui/use-table/components/table/filters/index.js +3 -3
  74. package/dist/system/presentation/hooks/ui/use-table/components/table/index.d.ts +0 -2
  75. package/dist/system/presentation/hooks/ui/use-table/components/table/index.js +0 -105
  76. package/dist/system/presentation/hooks/ui/use-table/components/table/interfaces.d.ts +0 -14
  77. package/dist/system/presentation/hooks/ui/use-table/components/table/pagination/index.d.ts +1 -1
  78. package/dist/system/presentation/hooks/ui/use-table/components/table/pagination/index.js +3 -3
  79. package/dist/system/presentation/hooks/ui/use-table/components/table/skeleton-table/index.js +2 -2
  80. package/dist/system/presentation/hooks/ui/use-table/components/table/thead-item/index.d.ts +1 -1
  81. package/dist/system/presentation/hooks/ui/use-table/components/table/thead-item/index.js +2 -2
  82. package/dist/system/presentation/hooks/ui/use-table/components/table/thead-item/interfaces.d.ts +1 -1
  83. package/dist/system/presentation/hooks/ui/use-table/query/hook.js +1 -1
  84. package/dist/ui/components/carousel/carousel-lib/core/modules/observer/observer.js +2 -2
  85. package/dist/ui/components/carousel/carousel-lib/core/modules/resize/resize.js +1 -1
  86. package/dist/ui/components/form/handler/i18n/index.js +1 -1
  87. package/dist/ui/components/form/handler/i18n/index.js.map +1 -1
  88. package/dist/ui/components/form/input-cep/use-cep/providers/ibge/hook.d.ts +1 -1
  89. package/dist/ui/components/form/input-cep/use-cep/providers/ibge/hook.js +1 -1
  90. package/dist/ui/components/form/input-cep/use-cep/providers/ibge/index.d.ts +3 -3
  91. package/dist/ui/components/form/input-cep/use-cep/providers/ibge/index.js +3 -3
  92. package/dist/ui/components/form/input-date-picker/calendar/calendar-header/index.js +0 -62
  93. package/dist/ui/components/form/input-date-picker/calendar/days/index.d.ts +0 -2
  94. package/dist/ui/components/form/input-date-picker/calendar/days/index.js +0 -87
  95. package/dist/ui/components/form/input-date-picker/calendar/months/index.d.ts +0 -2
  96. package/dist/ui/components/form/input-date-picker/calendar/months/index.js +0 -66
  97. package/dist/ui/components/form/input-file/render-files/file-item/button-upload-image-mobile/index.d.ts +1 -1
  98. package/dist/ui/components/form/input-file/render-files/file-item/button-upload-image-mobile/index.js +1 -1
  99. package/dist/ui/components/form/input-file/render-files/file-item/index.d.ts +0 -3
  100. package/dist/ui/components/form/input-file/render-files/file-item/index.js +0 -49
  101. package/dist/ui/components/form/input-mask/lib/core/errors/SyntheticChangeError.d.ts +1 -1
  102. package/dist/ui/components/form/input-mask/lib/core/hooks/useInput.d.ts +1 -1
  103. package/dist/ui/components/form/input-mask/lib/core/hooks/useInput.js +2 -2
  104. package/dist/ui/components/form/input-mask/lib/core/index.d.ts +0 -5
  105. package/dist/ui/components/form/input-mask/lib/core/index.js +0 -15
  106. package/dist/ui/components/form/input-mask/lib/core/utils/setInputAttributes.d.ts +1 -1
  107. package/dist/ui/components/form/input-mask/lib/mask/InputMask.d.ts +0 -6
  108. package/dist/ui/components/form/input-mask/lib/mask/InputMask.js +0 -44
  109. package/dist/ui/components/form/input-mask/lib/mask/index.d.ts +0 -5
  110. package/dist/ui/components/form/input-mask/lib/mask/index.js +0 -26
  111. package/dist/ui/components/form/input-mask/lib/mask/types.d.ts +0 -61
  112. package/dist/ui/components/form/input-mask/lib/mask/useMask.d.ts +0 -3
  113. package/dist/ui/components/form/input-mask/lib/mask/useMask.js +0 -150
  114. package/dist/ui/components/form/input-mask/lib/mask/utils/filter.d.ts +1 -1
  115. package/dist/ui/components/form/input-mask/lib/mask/utils/format.d.ts +1 -1
  116. package/dist/ui/components/form/input-mask/lib/mask/utils/formatToParts.d.ts +1 -1
  117. package/dist/ui/components/form/input-mask/lib/mask/utils/formatToReplacementObject.d.ts +1 -1
  118. package/dist/ui/components/form/input-mask/lib/mask/utils/resolveDetail.d.ts +1 -1
  119. package/dist/ui/components/form/input-mask/lib/mask/utils/resolveDetail.js +3 -3
  120. package/dist/ui/components/form/input-mask/lib/mask/utils/resolveSelection.d.ts +2 -2
  121. package/dist/ui/components/form/input-mask/lib/mask/utils/unformat.d.ts +1 -1
  122. package/dist/ui/components/form/input-mask/lib/mask/utils/validate.d.ts +1 -1
  123. package/dist/ui/components/form/input-mask/lib/mask/utils.d.ts +0 -63
  124. package/dist/ui/components/form/input-mask/lib/mask/utils.js +0 -114
  125. package/dist/ui/components/form/input-mask/lib/number-format/InputNumberFormat.d.ts +0 -6
  126. package/dist/ui/components/form/input-mask/lib/number-format/InputNumberFormat.js +0 -58
  127. package/dist/ui/components/form/input-mask/lib/number-format/index.d.ts +0 -4
  128. package/dist/ui/components/form/input-mask/lib/number-format/index.js +0 -11
  129. package/dist/ui/components/form/input-mask/lib/number-format/types.d.ts +0 -26
  130. package/dist/ui/components/form/input-mask/lib/number-format/useNumberFormat.d.ts +0 -3
  131. package/dist/ui/components/form/input-mask/lib/number-format/useNumberFormat.js +0 -208
  132. package/dist/ui/components/form/input-mask/lib/number-format/utils/localizeValues.d.ts +1 -1
  133. package/dist/ui/components/form/input-mask/lib/number-format/utils/resolveDetail.d.ts +2 -2
  134. package/dist/ui/components/form/input-mask/lib/number-format/utils/resolveDetail.js +1 -1
  135. package/dist/ui/components/form/input-mask/lib/number-format/utils/resolveMinimumFractionDigits.d.ts +1 -1
  136. package/dist/ui/components/form/input-mask/lib/number-format/utils/resolveOptions.d.ts +1 -1
  137. package/dist/ui/components/form/input-mask/lib/number-format/utils/resolveSelection.d.ts +2 -2
  138. package/dist/ui/components/form/input-seo/input-meta-image/index.d.ts +1 -1
  139. package/dist/ui/components/form/input-seo/input-meta-image/index.js +1 -1
  140. package/dist/ui/components/menu-mobile/components/nav-links/index.js +1 -1
  141. package/package.json +1 -1
@@ -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/index.js");
29
- var system_1 = require("../../../../../../../../system/index.js");
30
- var content_1 = require("./content/index.js");
31
- var S = __importStar(require("./styles.js"));
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/index.js");
34
- var ui_1 = require("../../../../../../../../ui/index.js");
35
- var S = __importStar(require("./styles.js"));
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;
@@ -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/index.js");
40
- var S = __importStar(require("./styles.js"));
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
- //# sourceMappingURL=index.js.map
44
+ /
@@ -1,3 +1,3 @@
1
1
  import { Menu } from '../../../../../../system/domain/index.js';
2
2
  import { Column } from '../../../../../../system/presentation/hooks/index.js';
3
- export declare const columns: Column<Menu>[];
3
+ export declare
@@ -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): DynamicFormHandlerProps<Menu>;
3
+ export declare function useCreateTable(queryKey: string):
@@ -69,4 +69,4 @@ function useCreateTable(queryKey) {
69
69
  return createTable;
70
70
  }
71
71
  exports.useCreateTable = useCreateTable;
72
- //# sourceMappingURL=create.js.map
72
+ //
@@ -68,4 +68,4 @@ function useDeleteTable(queryKey) {
68
68
  return { executeDelete: executeDelete };
69
69
  }
70
70
  exports.useDeleteTable = useDeleteTable;
71
- //# sourceMappingURL=delete.js.map
71
+ //
@@ -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): DynamicFormHandlerProps<Menu>;
3
+ export declare function useEditTable(queryKey: string):
@@ -75,4 +75,3 @@ function useEditTable(queryKey) {
75
75
  return editTable;
76
76
  }
77
77
  exports.useEditTable = useEditTable;
78
- //# sourceMappingURL=edit.js.map
@@ -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 { User } from '../../../../../../system/domain/index.js';
2
2
  import { Column } from '../../../../../../system/presentation/hooks/index.js';
3
- export declare const columns: Column<User>[];
3
+ export declare
@@ -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): DynamicFormHandlerProps<User>;
3
+ export declare function useCreateTable(queryKey: string):
@@ -72,4 +72,4 @@ function useCreateTable(queryKey) {
72
72
  return createTable;
73
73
  }
74
74
  exports.useCreateTable = useCreateTable;
75
- //# sourceMappingURL=create.js.map
75
+ //
@@ -71,4 +71,4 @@ function useDeleteTable(queryKey) {
71
71
  return { executeDelete: executeDelete };
72
72
  }
73
73
  exports.useDeleteTable = useDeleteTable;
74
- //# sourceMappingURL=delete.js.map
74
+ //
@@ -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): DynamicFormHandlerProps<User>;
3
+ export declare function useEditTable(queryKey: string):
@@ -80,4 +80,3 @@ function useEditTable(queryKey) {
80
80
  return editTable;
81
81
  }
82
82
  exports.useEditTable = useEditTable;
83
- //# sourceMappingURL=edit.js.map
@@ -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
- //# sourceMappingURL=index.js.map
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
- //# sourceMappingURL=index.js.map
141
+ //# sourceMapping
@@ -1,3 +1,3 @@
1
1
  export declare function useLoadCities({ uf }: {
2
2
  uf: string;
3
- }): Required<import("../../../../../../ui/index.js").QueryState<any>>;
3
+ }): Required<import("../../../../../../ui/index.js").Qu
@@ -57,4 +57,4 @@ function useLoadCities(_a) {
57
57
  });
58
58
  }
59
59
  exports.useLoadCities = useLoadCities;
60
- //# sourceMappingURL=index.js.map
60
+ /
@@ -1,4 +1,4 @@
1
- import { TableActionDelete } from '../../../../../../../../../system/index.js';
1
+ import { TableActionDelete } from '../../../../../../../../../system';
2
2
  export declare function ActionDelete<T>({ action, table }: {
3
3
  action: TableActionDelete<T>;
4
4
  table: any;
@@ -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/index.js");
43
- var system_1 = require("../../../../../../../../../system/index.js");
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;
@@ -1,4 +1,4 @@
1
- import { ActionsTable } from '../../../interfaces.js';
1
+ import { ActionsTable } from '../../../interfaces';
2
2
  export declare function Actions({ actions, table }: {
3
3
  actions: ActionsTable;
4
4
  table: any;
@@ -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/index.js");
81
- var delete_1 = require("./delete/index.js");
82
- var S = __importStar(require("./styles.js"));
83
- var context_1 = require("../../../../../../../../system/presentation/context/index.js");
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;
@@ -1,2 +1,2 @@
1
- import { ITableProps } from '../interfaces.js';
1
+ import { ITableProps } from '../interfaces';
2
2
  export declare function ActiveFilters({ configs, tableInformations }: ITableProps): import("react/jsx-runtime").JSX.Element;
@@ -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/index.js");
39
- var S = __importStar(require("./styles.js"));
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;
@@ -1,4 +1,4 @@
1
- import { ActionsTable } from '../../../interfaces.js';
1
+ import { ActionsTable } from '../../../interfaces';
2
2
  export declare function CreateAction({ actions }: {
3
3
  actions: ActionsTable;
4
4
  }): import("react/jsx-runtime").JSX.Element;
@@ -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/index.js");
45
- var system_1 = require("../../../../../../../../system/index.js");
46
- var S = __importStar(require("./styles.js"));
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;
@@ -1,4 +1,4 @@
1
- import { ExportTable } from '../../../../../../../../system/domain/index.js';
1
+ import { ExportTable } from '../../../../../../../../system/domain';
2
2
  export declare function Export({ exports }: {
3
3
  exports: ExportTable[];
4
4
  }): import("react/jsx-runtime").JSX.Element;
@@ -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/index.js");
29
- var S = __importStar(require("./styles.js"));
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.js';
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/index.js");
86
- var ui_1 = require("../../../../../../../../ui/index.js");
87
- var S = __importStar(require("./styles.js"));
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,2 +0,0 @@
1
- import { ITableProps } from './interfaces.js';
2
- export declare function Table(props: ITableProps): import("react/jsx-runtime").JSX.Element;
@@ -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/index.js';
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/index.js");
30
- var service_1 = require("./service.js");
31
- var S = __importStar(require("./styles.js"));
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)();
@@ -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/index.js");
29
- var S = __importStar(require("./styles.js"));
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.js';
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/index.js");
30
- var S = __importStar(require("./styles.js"));
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,4 +1,4 @@
1
- import { Column } from "../../../interfaces.js";
1
+ import { Column } from "../../../interfaces";
2
2
  export interface ITHeadItemProps {
3
3
  index: number;
4
4
  colunm: Column;
@@ -49,4 +49,4 @@ function useQueryTable(props) {
49
49
  };
50
50
  }
51
51
  exports.useQueryTable = useQueryTable;
52
- //# sourceMappingURL=hook.js.map
52
+ //# sourceMappin
@@ -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.js");
5
- var window_1 = require("../../../ssr-window/window.js");
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.js");
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)();