infinity-forge 2.4.1 → 2.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/system/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 +4 -5
- package/dist/system/presentation/components/layout/header/components/menu-right/messages/content/index.js +4 -4
- 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 +36 -0
- package/dist/system/presentation/components/layout/header/components/menu-right/profile/content/index.js +4 -5
- package/dist/system/presentation/components/layout/header/components/menu-right/profile/index.js +37 -0
- package/dist/system/presentation/components/layout/header/components/menu-right/settings/index.js +42 -0
- package/dist/system/presentation/components/layout/header/components/search-modal/search-list/index.js +4 -5
- package/dist/system/presentation/components/layout/header/components/search-modal/trigger/index.js +3 -3
- 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 +3 -3
- 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 +3 -3
- 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 +2 -2
- package/dist/system/presentation/hooks/ui/use-table/components/table/export/index.js +3 -3
- 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 +4 -5
- package/dist/system/presentation/hooks/ui/use-table/components/table/pagination/index.d.ts +2 -2
- package/dist/system/presentation/hooks/ui/use-table/components/table/pagination/index.js +4 -4
- package/dist/system/presentation/hooks/ui/use-table/components/table/skeleton-table/index.js +3 -3
- 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 +3 -3
- package/dist/system/presentation/hooks/ui/use-table/components/table/thead-item/interfaces.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/mask/utils/resolveSelection.d.ts +18 -0
- package/dist/ui/components/form/input-mask/lib/mask/utils/validate.d.ts +13 -0
- package/dist/ui/components/form/input-mask/lib/number-format/utils/resolveSelection.d.ts +24 -0
- package/package.json +75 -75
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { IMessage } from './interfaces';
|
|
1
|
+
import { IMessage } from './interfaces.js';
|
|
2
2
|
export declare function MessageCard({ title, status, date, name, description, url }: IMessage): import("react/jsx-runtime").JSX.Element;
|
|
@@ -36,12 +36,11 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
37
|
exports.MessageCard = void 0;
|
|
38
38
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
39
|
-
var ui_1 = require("../../../../../../../../../../ui");
|
|
40
|
-
var system_1 = require("../../../../../../../../../../system");
|
|
41
|
-
var S = __importStar(require("./styles"));
|
|
39
|
+
var ui_1 = require("../../../../../../../../../../ui/index.js");
|
|
40
|
+
var system_1 = require("../../../../../../../../../../system/index.js");
|
|
41
|
+
var S = __importStar(require("./styles.js"));
|
|
42
42
|
function MessageCard(_a) {
|
|
43
43
|
var title = _a.title, status = _a.status, date = _a.date, name = _a.name, description = _a.description, url = _a.url;
|
|
44
44
|
return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'MessageCard', children: (0, jsx_runtime_1.jsxs)(S.MessageCard, { href: url, children: [(0, jsx_runtime_1.jsxs)("div", { className: 'top', children: [(0, jsx_runtime_1.jsx)("h5", { className: 'title font-16-bold', children: title }), (0, jsx_runtime_1.jsx)(system_1.HighlightText, __assign({}, status)), (0, jsx_runtime_1.jsx)("span", { className: 'days font-12-regular', children: date })] }), (0, jsx_runtime_1.jsxs)("p", { className: 'description font-16-regular', children: [(0, jsx_runtime_1.jsxs)("strong", { className: '-bold', children: [name, ": "] }), " ", description] })] }) }));
|
|
45
45
|
}
|
|
46
|
-
exports.
|
|
47
|
-
//# sourceMappingURL=index.js.map
|
|
46
|
+
exports.Mess
|
|
@@ -36,9 +36,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
37
|
exports.Content = void 0;
|
|
38
38
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
39
|
-
var ui_1 = require("../../../../../../../../../ui");
|
|
40
|
-
var card_1 = require("./card");
|
|
41
|
-
var S = __importStar(require("./styles"));
|
|
39
|
+
var ui_1 = require("../../../../../../../../../ui/index.js");
|
|
40
|
+
var card_1 = require("./card/index.js");
|
|
41
|
+
var S = __importStar(require("./styles.js"));
|
|
42
42
|
function Content() {
|
|
43
43
|
var messages = [
|
|
44
44
|
{
|
|
@@ -89,4 +89,4 @@ function Content() {
|
|
|
89
89
|
return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'Content', children: (0, jsx_runtime_1.jsx)(S.Content, { children: (0, jsx_runtime_1.jsx)("div", { className: 'cards-box', children: messages.map(function (item) { return ((0, jsx_runtime_1.jsx)(card_1.MessageCard, __assign({}, item), 'message-card' + item.title)); }) }) }) }));
|
|
90
90
|
}
|
|
91
91
|
exports.Content = Content;
|
|
92
|
-
//#
|
|
92
|
+
//# sour
|
package/dist/system/presentation/components/layout/header/components/menu-right/messages/index.js
CHANGED
|
@@ -0,0 +1,36 @@
|
|
|
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.Messages = void 0;
|
|
27
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
28
|
+
var ui_1 = require("../../../../../../../../ui/index.js");
|
|
29
|
+
var S = __importStar(require("./styles.js"));
|
|
30
|
+
var styles_1 = require("../styles.js");
|
|
31
|
+
var content_1 = require("./content/index.js");
|
|
32
|
+
function Messages() {
|
|
33
|
+
return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'Messages', children: (0, jsx_runtime_1.jsx)(S.Messages, { id: 'messages-btn', children: (0, jsx_runtime_1.jsx)(ui_1.Tooltip, { idTooltip: 'Messages', enableArrow: true, bgColor: '#fff', enableHover: true, content: (0, jsx_runtime_1.jsx)(content_1.Content, {}), trigger: (0, jsx_runtime_1.jsx)(styles_1.ActionBox, { children: (0, jsx_runtime_1.jsx)(ui_1.Icon, { name: 'IconFullFieldChat' }) }) }) }) }));
|
|
34
|
+
}
|
|
35
|
+
exports.Messages = Messages;
|
|
36
|
+
//# sourceM
|
|
@@ -25,12 +25,11 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.Content = 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 S = __importStar(require("./styles"));
|
|
28
|
+
var ui_1 = require("../../../../../../../../../ui/index.js");
|
|
29
|
+
var system_1 = require("../../../../../../../../../system/index.js");
|
|
30
|
+
var S = __importStar(require("./styles.js"));
|
|
31
31
|
function Content() {
|
|
32
32
|
var _a = (0, system_1.useAuthAdmin)(), user = _a.user, signOut = _a.signOut;
|
|
33
33
|
return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'Content', children: (0, jsx_runtime_1.jsxs)(S.Content, { children: [(0, jsx_runtime_1.jsx)("div", { className: 'user-profile', children: (0, jsx_runtime_1.jsxs)("div", { className: 'user-info', children: [(0, jsx_runtime_1.jsx)("h6", { className: 'font-16-semibold', children: user === null || user === void 0 ? void 0 : user.firstName }), (0, jsx_runtime_1.jsx)("p", { className: 'font-14-regular email', children: user === null || user === void 0 ? void 0 : user.emailAddress })] }) }), (0, jsx_runtime_1.jsx)("div", { className: 'divider', children: (0, jsx_runtime_1.jsx)("button", { className: 'sign-out-button font-14-regular', type: 'button', onClick: function () { return signOut(); }, children: "Sair" }) })] }) }));
|
|
34
34
|
}
|
|
35
|
-
exports.
|
|
36
|
-
//# sourceMappingURL=index.js.map
|
|
35
|
+
exports.Co
|
package/dist/system/presentation/components/layout/header/components/menu-right/profile/index.js
CHANGED
|
@@ -0,0 +1,37 @@
|
|
|
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.Profile = void 0;
|
|
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"));
|
|
32
|
+
function Profile() {
|
|
33
|
+
var user = (0, system_1.useAuthAdmin)().user;
|
|
34
|
+
var avatarImage = (user === null || user === void 0 ? void 0 : user.avatar) || '/images/default-profile.png';
|
|
35
|
+
return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'Profile', children: (0, jsx_runtime_1.jsx)(S.Profile, { id: 'profile-btn', children: (0, jsx_runtime_1.jsx)(ui_1.Tooltip, { idTooltip: 'Profile', bgColor: '#fff', trigger: (0, jsx_runtime_1.jsx)(system_1.Avatar, { image: avatarImage }), enableArrow: true, content: (0, jsx_runtime_1.jsx)(content_1.Content, {}) }) }) }));
|
|
36
|
+
}
|
|
37
|
+
exports.Profile
|
package/dist/system/presentation/components/layout/header/components/menu-right/settings/index.js
CHANGED
|
@@ -0,0 +1,42 @@
|
|
|
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.Settings = 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 S = __importStar(require("./styles.js"));
|
|
31
|
+
var styles_1 = require("../styles.js");
|
|
32
|
+
function Settings() {
|
|
33
|
+
var _a = (0, react_1.useState)(false), visible = _a[0], setVisible = _a[1];
|
|
34
|
+
var fullHeightStyle = { minHeight: '100vh', position: 'absolute', top: 0, right: 0, zIndex: '999999999' };
|
|
35
|
+
function handleClose() {
|
|
36
|
+
setVisible(false);
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'Settings', children: (0, jsx_runtime_1.jsx)(S.Settings, { id: 'settings-btn', children: (0, jsx_runtime_1.jsx)(styles_1.ActionBox, { onClick: function () { return setVisible(true); }, children: (0, jsx_runtime_1.jsx)(ui_1.IconGear, {}) }) }) }));
|
|
40
|
+
}
|
|
41
|
+
exports.Settings = Settings;
|
|
42
|
+
//# sourceM
|
|
@@ -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/index.js");
|
|
34
|
+
var ui_1 = require("../../../../../../../../ui/index.js");
|
|
35
|
+
var S = __importStar(require("./styles.js"));
|
|
36
36
|
function SearchList(_a) {
|
|
37
37
|
var _b;
|
|
38
38
|
var setOpen = _a.setOpen;
|
|
@@ -48,5 +48,4 @@ function SearchList(_a) {
|
|
|
48
48
|
})] }, item.title + '-' + index));
|
|
49
49
|
})) })] }) }));
|
|
50
50
|
}
|
|
51
|
-
exports.SearchList =
|
|
52
|
-
//# sourceMappingURL=index.js.map
|
|
51
|
+
exports.SearchList = S
|
package/dist/system/presentation/components/layout/header/components/search-modal/trigger/index.js
CHANGED
|
@@ -36,10 +36,10 @@ 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/index.js");
|
|
40
|
+
var S = __importStar(require("./styles.js"));
|
|
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
|
}
|
|
44
44
|
exports.SearchTrigger = SearchTrigger;
|
|
45
|
-
//#
|
|
45
|
+
//# sourceM
|
|
@@ -77,8 +77,8 @@ 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 S = __importStar(require("./styles"));
|
|
80
|
+
var ui_1 = require("../../../../../../../../ui/index.js");
|
|
81
|
+
var S = __importStar(require("./styles.js"));
|
|
82
82
|
function Actions(_a) {
|
|
83
83
|
var _this = this;
|
|
84
84
|
var _b;
|
|
@@ -103,4 +103,4 @@ function Actions(_a) {
|
|
|
103
103
|
actions.custom.map(function (Component, index) { return ((0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(Component, __assign({}, table)) }, 'custom' + index + Component.name)); })] }) }));
|
|
104
104
|
}
|
|
105
105
|
exports.Actions = Actions;
|
|
106
|
-
//#
|
|
106
|
+
//# sourceM
|
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.js';
|
|
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/index.js");
|
|
39
|
+
var S = __importStar(require("./styles.js"));
|
|
40
40
|
function ActiveFilters(_a) {
|
|
41
41
|
var _b, _c, _d;
|
|
42
42
|
var configs = _a.configs, tableInformations = _a.tableInformations;
|
|
@@ -75,4 +75,4 @@ function ActiveFilters(_a) {
|
|
|
75
75
|
}, children: (0, jsx_runtime_1.jsx)(ui_1.Icon, { name: 'CloseIcon' }) })] }))] }));
|
|
76
76
|
}
|
|
77
77
|
exports.ActiveFilters = ActiveFilters;
|
|
78
|
-
//#
|
|
78
|
+
//# sourceM
|
|
@@ -41,8 +41,8 @@ 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 S = __importStar(require("./styles"));
|
|
44
|
+
var ui_1 = require("../../../../../../../../ui/index.js");
|
|
45
|
+
var S = __importStar(require("./styles.js"));
|
|
46
46
|
function CreateAction(_a) {
|
|
47
47
|
var _b, _c;
|
|
48
48
|
var actions = _a.actions;
|
|
@@ -53,4 +53,4 @@ function CreateAction(_a) {
|
|
|
53
53
|
return ((0, jsx_runtime_1.jsx)(S.Create, { children: ((_b = actions.create) === null || _b === void 0 ? void 0 : _b.link) ? ((0, jsx_runtime_1.jsxs)(link_1.default, { className: 'create-button font-14-regular', href: actions.create.link.href, children: [(0, jsx_runtime_1.jsx)("div", { className: 'icon', children: (0, jsx_runtime_1.jsx)(ui_1.Icon, { name: ((_c = actions === null || actions === void 0 ? void 0 : actions.create) === null || _c === void 0 ? void 0 : _c.icon) || 'IconPlusSharp' }) }), actions.create.text] })) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(ui_1.Modal, { styles: __assign({ width: '100vw', maxWidth: '512px', borderRadius: 10 }, ((actions === null || actions === void 0 ? void 0 : actions.modalStyles) || {})), open: open, onClose: function () { return setOpen(false); }, children: (0, jsx_runtime_1.jsx)(ui_1.DynamicFormHandler, __assign({}, actions.create, { onSucess: actions.create.onSucess, onFinish: function () { return setOpen(false); } })) }), (0, jsx_runtime_1.jsxs)("button", { className: 'create-button font-14-regular', type: 'button', onClick: function () { return setOpen(true); }, children: [(0, jsx_runtime_1.jsx)("div", { className: 'icon', children: (0, jsx_runtime_1.jsx)(ui_1.Icon, { name: (actions === null || actions === void 0 ? void 0 : actions.create.icon) || 'IconPlusSharp' }) }), actions.create.text] })] })) }));
|
|
54
54
|
}
|
|
55
55
|
exports.CreateAction = CreateAction;
|
|
56
|
-
//#
|
|
56
|
+
//# sourceM
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ExportTable } from '../../../../../../../../system/domain';
|
|
1
|
+
import { ExportTable } from '../../../../../../../../system/domain/index.js';
|
|
2
2
|
export declare function Export({ exports }: {
|
|
3
3
|
exports: ExportTable[];
|
|
4
|
-
}): import("react/jsx-
|
|
4
|
+
}): import("react/jsx-r
|
|
@@ -25,11 +25,11 @@ 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/index.js");
|
|
29
|
+
var S = __importStar(require("./styles.js"));
|
|
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"] }) }));
|
|
33
33
|
}
|
|
34
34
|
exports.Export = Export;
|
|
35
|
-
//#
|
|
35
|
+
//# sourceM
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ITableProps } from '../interfaces';
|
|
1
|
+
import { ITableProps } from '../interfaces.js';
|
|
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/index.js");
|
|
86
|
+
var ui_1 = require("../../../../../../../../ui/index.js");
|
|
87
|
+
var S = __importStar(require("./styles.js"));
|
|
88
88
|
function Filters(_a) {
|
|
89
89
|
var _this = this;
|
|
90
90
|
var _b;
|
|
@@ -135,5 +135,4 @@ function Filters(_a) {
|
|
|
135
135
|
});
|
|
136
136
|
}); }, options: filter.options.map(function (op) { return ({ label: op.text, value: op.value }); }) }, filter.data)); }), (0, jsx_runtime_1.jsx)(system_1.InputSearch, { onChange: function (value) { return (0, ui_1.updateRoute)({ params: { search: value, page: 1 }, router: router }); } })] }) }) }) }));
|
|
137
137
|
}
|
|
138
|
-
exports.Filters
|
|
139
|
-
//# sourceMappingURL=index.js.map
|
|
138
|
+
exports.Filters
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { PaginationModel } from '../../../../../../../../system';
|
|
2
|
-
export declare function PaginationTable({ page, endPage, pages, pageSize, totalItems, hasNextPage, hasPreviousPage }: PaginationModel): import("react/jsx-
|
|
1
|
+
import { PaginationModel } from '../../../../../../../../system/index.js';
|
|
2
|
+
export declare function PaginationTable({ page, endPage, pages, pageSize, totalItems, hasNextPage, hasPreviousPage }: PaginationModel): import("react/jsx-r
|
|
@@ -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/index.js");
|
|
30
|
+
var service_1 = require("./service.js");
|
|
31
|
+
var S = __importStar(require("./styles.js"));
|
|
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)();
|
|
@@ -53,4 +53,4 @@ function PaginationTable(_a) {
|
|
|
53
53
|
}, onClick: function () { return onSelect(pagination.page + 1); }, children: (0, jsx_runtime_1.jsx)(ui_1.Icon, { name: 'IconKeyboardRightArrow' }) }))] }));
|
|
54
54
|
}
|
|
55
55
|
exports.PaginationTable = PaginationTable;
|
|
56
|
-
//#
|
|
56
|
+
//# sourceM
|
package/dist/system/presentation/hooks/ui/use-table/components/table/skeleton-table/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.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/index.js");
|
|
29
|
+
var S = __importStar(require("./styles.js"));
|
|
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
|
}
|
|
33
33
|
exports.SkeletonTable = SkeletonTable;
|
|
34
|
-
//#
|
|
34
|
+
//# sourceM
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ITHeadItemProps } from './interfaces';
|
|
1
|
+
import { ITHeadItemProps } from './interfaces.js';
|
|
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/index.js");
|
|
30
|
+
var S = __importStar(require("./styles.js"));
|
|
31
31
|
function THeadItem(_a) {
|
|
32
32
|
var colunm = _a.colunm, disableOrdenationTable = _a.disableOrdenationTable;
|
|
33
33
|
var router = (0, router_1.useRouter)();
|
|
@@ -47,4 +47,4 @@ function THeadItem(_a) {
|
|
|
47
47
|
return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'thead-item', children: (0, jsx_runtime_1.jsx)("th", { style: { width: colunm.width + 'px' }, children: (0, jsx_runtime_1.jsxs)(S.THeadItem, { style: { width: colunm.width + 'px' }, onClick: handleOrd, children: [(0, jsx_runtime_1.jsx)("span", { className: 'font-12-bold uppercase', children: colunm.label }), !disableOrdenationTable && colunm.hasAsc && ((0, jsx_runtime_1.jsx)("div", { className: 'ord-actions', children: (0, jsx_runtime_1.jsx)("button", { type: 'button', children: (0, jsx_runtime_1.jsx)("svg", { style: { transform: rotateArrow ? 'rotate(180deg)' : 'rotate(0deg)' }, xmlns: 'http://www.w3.org/2000/svg', width: '11', height: '6', viewBox: '0 0 11 6', fill: 'none', children: (0, jsx_runtime_1.jsx)("path", { d: 'M5.75 5.5L0.75 0.5H10.75L5.75 5.5Z', fill: ascIsActive ? '#1ABB64' : '#828282' }) }) }) }))] }) }) }));
|
|
48
48
|
}
|
|
49
49
|
exports.THeadItem = THeadItem;
|
|
50
|
-
//#
|
|
50
|
+
//# sourceM
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { MaskPart, Replacement } from '../types.js';
|
|
2
|
+
import type { InputType } from '../../core/index.js';
|
|
3
|
+
interface ResolveSelectionParam {
|
|
4
|
+
inputType: InputType;
|
|
5
|
+
value: string;
|
|
6
|
+
addedValue: string;
|
|
7
|
+
beforeChangeValue: string;
|
|
8
|
+
parts: MaskPart[];
|
|
9
|
+
replacement: Replacement;
|
|
10
|
+
separate: boolean;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Определяет позицию курсора для последующей установки
|
|
14
|
+
* @param param
|
|
15
|
+
* @returns
|
|
16
|
+
*/
|
|
17
|
+
export default function resolveSelection({ inputType, value, addedValue, beforeChangeValue, parts, replacement, separate, }: ResolveSelectionParam): number;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Replacement } from '../types.js';
|
|
2
|
+
interface ValidateParam {
|
|
3
|
+
initialValue: string;
|
|
4
|
+
mask: string;
|
|
5
|
+
replacement: Replacement;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Выводит в консоль сообщения об ошибках.
|
|
9
|
+
* Сообщения выводятся на этапе инициализации элеменета.
|
|
10
|
+
* @param param
|
|
11
|
+
*/
|
|
12
|
+
export default function validate({ initialValue, mask, replacement }: ValidateParam): void;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { LocalizedNumberFormatValues, ResolvedNumberFormatOptions } from '../types.js';
|
|
2
|
+
import type { InputType } from '../../core/index.js';
|
|
3
|
+
interface ResolveSelectionParam {
|
|
4
|
+
localizedValues: LocalizedNumberFormatValues;
|
|
5
|
+
previousLocalizedValues: LocalizedNumberFormatValues;
|
|
6
|
+
resolvedOptions: ResolvedNumberFormatOptions;
|
|
7
|
+
inputType: InputType;
|
|
8
|
+
addedValue: string;
|
|
9
|
+
previousValue: string;
|
|
10
|
+
nextValue: string;
|
|
11
|
+
changeStart: number;
|
|
12
|
+
changeEnd: number;
|
|
13
|
+
}
|
|
14
|
+
interface ResolveSelectionReturn {
|
|
15
|
+
start: number;
|
|
16
|
+
end: number;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Определяет позицию каретки для последующей установки
|
|
20
|
+
* @param param
|
|
21
|
+
* @returns
|
|
22
|
+
*/
|
|
23
|
+
export default function resolveSelection({ localizedValues, previousLocalizedValues, resolvedOptions, inputType, previousValue, addedValue, nextValue, changeStart, changeEnd, }: ResolveSelectionParam): ResolveSelectionReturn;
|
|
24
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,75 +1,75 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "infinity-forge",
|
|
3
|
-
"version": "2.4.
|
|
4
|
-
"description": "codie Library",
|
|
5
|
-
"main": "./dist/index",
|
|
6
|
-
"module": "./dist/index",
|
|
7
|
-
"types": "./dist/index.d.ts",
|
|
8
|
-
"repository": {
|
|
9
|
-
"type": "git",
|
|
10
|
-
"url": "https://github.com/CodieDigital/codiedigital-library"
|
|
11
|
-
},
|
|
12
|
-
"scripts": {
|
|
13
|
-
"dev": "next -p 3051",
|
|
14
|
-
"deploy": "npm version patch && npm publish",
|
|
15
|
-
"next": "next build",
|
|
16
|
-
"start": "next start -p 3015",
|
|
17
|
-
"build": "concurrently --kill-others-on-fail \"tsc -w\" \"tsc-alias -w --resolve-full-paths\" \"npm run build:CSS\" \"npm run fonts\"",
|
|
18
|
-
"build:CSS": "npm run minify-css && node combine-css.ts && cpx \"src/**/*.css\" dist --watch",
|
|
19
|
-
"minify-css": "postcss src/**/*.css --use cssnano -d dist --no-map",
|
|
20
|
-
"fonts": "tsc-alias -p tsconfig.json && mkdir dist\\fonts && for /r src %i in (*.otf, *.ttf) do copy \"%i\" dist\\fonts\\"
|
|
21
|
-
},
|
|
22
|
-
"peerDependencies": {
|
|
23
|
-
"react": ">=16"
|
|
24
|
-
},
|
|
25
|
-
"files": [
|
|
26
|
-
"dist",
|
|
27
|
-
"LICENSE",
|
|
28
|
-
"README.md"
|
|
29
|
-
],
|
|
30
|
-
"keywords": [
|
|
31
|
-
"react",
|
|
32
|
-
"typescript",
|
|
33
|
-
"awesome-project"
|
|
34
|
-
],
|
|
35
|
-
"author": "Codie Digital",
|
|
36
|
-
"license": "MIT",
|
|
37
|
-
"devDependencies": {
|
|
38
|
-
"@types/node": "^20.12.12",
|
|
39
|
-
"@types/react": "^18.3.3",
|
|
40
|
-
"@types/react-dom": "^18.3.0",
|
|
41
|
-
"@types/styled-components": "^5.1.34",
|
|
42
|
-
"concurrently": "^8.2.2",
|
|
43
|
-
"copyfiles": "^2.4.1",
|
|
44
|
-
"cpx": "^1.5.0",
|
|
45
|
-
"cssnano": "^7.0.1",
|
|
46
|
-
"fs-extra": "^11.2.0",
|
|
47
|
-
"postcss": "^8.4.38",
|
|
48
|
-
"postcss-cli": "^11.0.0",
|
|
49
|
-
"tsc-alias": "^1.8.10",
|
|
50
|
-
"tslib": "^2.6.2",
|
|
51
|
-
"typescript": "^5.4.5"
|
|
52
|
-
},
|
|
53
|
-
"dependencies": {
|
|
54
|
-
"@types/lodash": "^4.17.7",
|
|
55
|
-
"axios": "^1.7.2",
|
|
56
|
-
"chroma-js": "^2.4.2",
|
|
57
|
-
"formik": "^2.4.6",
|
|
58
|
-
"inversify": "^6.0.2",
|
|
59
|
-
"lodash": "^4.17.21",
|
|
60
|
-
"moment": "^2.30.1",
|
|
61
|
-
"next": "^14.2.3",
|
|
62
|
-
"react": "18.3.1",
|
|
63
|
-
"react-dom": "18.3.1",
|
|
64
|
-
"react-ga": "^3.3.1",
|
|
65
|
-
"react-rte": "^0.16.5",
|
|
66
|
-
"react-select": "^5.8.0",
|
|
67
|
-
"react-share": "^5.1.0",
|
|
68
|
-
"react-webcam": "^7.2.0",
|
|
69
|
-
"reflect-metadata": "^0.2.2",
|
|
70
|
-
"sharp": "^0.33.4",
|
|
71
|
-
"styled-components": "^6.1.11",
|
|
72
|
-
"yup": "^1.4.0",
|
|
73
|
-
"zustand": "^4.5.2"
|
|
74
|
-
}
|
|
75
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "infinity-forge",
|
|
3
|
+
"version": "2.4.3",
|
|
4
|
+
"description": "codie Library",
|
|
5
|
+
"main": "./dist/index",
|
|
6
|
+
"module": "./dist/index",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "https://github.com/CodieDigital/codiedigital-library"
|
|
11
|
+
},
|
|
12
|
+
"scripts": {
|
|
13
|
+
"dev": "next -p 3051",
|
|
14
|
+
"deploy": "npm version patch && npm publish",
|
|
15
|
+
"next": "next build",
|
|
16
|
+
"start": "next start -p 3015",
|
|
17
|
+
"build": "concurrently --kill-others-on-fail \"tsc -w\" \"tsc-alias -w --resolve-full-paths\" \"npm run build:CSS\" \"npm run fonts\"",
|
|
18
|
+
"build:CSS": "npm run minify-css && node combine-css.ts && cpx \"src/**/*.css\" dist --watch",
|
|
19
|
+
"minify-css": "postcss src/**/*.css --use cssnano -d dist --no-map",
|
|
20
|
+
"fonts": "tsc-alias -p tsconfig.json && mkdir dist\\fonts && for /r src %i in (*.otf, *.ttf) do copy \"%i\" dist\\fonts\\"
|
|
21
|
+
},
|
|
22
|
+
"peerDependencies": {
|
|
23
|
+
"react": ">=16"
|
|
24
|
+
},
|
|
25
|
+
"files": [
|
|
26
|
+
"dist",
|
|
27
|
+
"LICENSE",
|
|
28
|
+
"README.md"
|
|
29
|
+
],
|
|
30
|
+
"keywords": [
|
|
31
|
+
"react",
|
|
32
|
+
"typescript",
|
|
33
|
+
"awesome-project"
|
|
34
|
+
],
|
|
35
|
+
"author": "Codie Digital",
|
|
36
|
+
"license": "MIT",
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"@types/node": "^20.12.12",
|
|
39
|
+
"@types/react": "^18.3.3",
|
|
40
|
+
"@types/react-dom": "^18.3.0",
|
|
41
|
+
"@types/styled-components": "^5.1.34",
|
|
42
|
+
"concurrently": "^8.2.2",
|
|
43
|
+
"copyfiles": "^2.4.1",
|
|
44
|
+
"cpx": "^1.5.0",
|
|
45
|
+
"cssnano": "^7.0.1",
|
|
46
|
+
"fs-extra": "^11.2.0",
|
|
47
|
+
"postcss": "^8.4.38",
|
|
48
|
+
"postcss-cli": "^11.0.0",
|
|
49
|
+
"tsc-alias": "^1.8.10",
|
|
50
|
+
"tslib": "^2.6.2",
|
|
51
|
+
"typescript": "^5.4.5"
|
|
52
|
+
},
|
|
53
|
+
"dependencies": {
|
|
54
|
+
"@types/lodash": "^4.17.7",
|
|
55
|
+
"axios": "^1.7.2",
|
|
56
|
+
"chroma-js": "^2.4.2",
|
|
57
|
+
"formik": "^2.4.6",
|
|
58
|
+
"inversify": "^6.0.2",
|
|
59
|
+
"lodash": "^4.17.21",
|
|
60
|
+
"moment": "^2.30.1",
|
|
61
|
+
"next": "^14.2.3",
|
|
62
|
+
"react": "18.3.1",
|
|
63
|
+
"react-dom": "18.3.1",
|
|
64
|
+
"react-ga": "^3.3.1",
|
|
65
|
+
"react-rte": "^0.16.5",
|
|
66
|
+
"react-select": "^5.8.0",
|
|
67
|
+
"react-share": "^5.1.0",
|
|
68
|
+
"react-webcam": "^7.2.0",
|
|
69
|
+
"reflect-metadata": "^0.2.2",
|
|
70
|
+
"sharp": "^0.33.4",
|
|
71
|
+
"styled-components": "^6.1.11",
|
|
72
|
+
"yup": "^1.4.0",
|
|
73
|
+
"zustand": "^4.5.2"
|
|
74
|
+
}
|
|
75
|
+
}
|