infinity-forge 1.9.3 → 1.9.5
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.js +1 -2
- package/dist/system/presentation/components/layout/header/components/menu-right/messages/content/index.js +1 -1
- package/dist/system/presentation/components/layout/header/components/menu-right/profile/content/index.js +1 -2
- package/dist/system/presentation/hooks/ui/use-table/components/table/actions/index.js +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/active-filters/index.js +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/create/index.js +1 -1
- 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 +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/filters/index.js +1 -2
- 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 +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/skeleton-table/index.js +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/thead-item/index.js +1 -1
- package/dist/ui/contexts/dynamic-sections/use-dynamic-section/index.d.ts +1 -1
- package/dist/ui/contexts/dynamic-sections/use-dynamic-section/index.js +9 -5
- package/dist/ui/contexts/dynamic-sections/use-dynamic-section/index.js.map +1 -1
- package/dist/ui/contexts/dynamic-sections/use-dynamic-section/interfaces.d.ts +3 -1
- package/package.json +1 -1
|
@@ -43,5 +43,4 @@ 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
|
|
@@ -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
|
|
@@ -32,5 +32,4 @@ 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
|
|
@@ -104,4 +104,4 @@ function Actions(_a) {
|
|
|
104
104
|
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)); })] }) }));
|
|
105
105
|
}
|
|
106
106
|
exports.Actions = Actions;
|
|
107
|
-
//#
|
|
107
|
+
//# sourceM
|
|
@@ -103,4 +103,4 @@ function CreateAction(_a) {
|
|
|
103
103
|
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: { width: '100vw', maxWidth: '512px', borderRadius: 10 }, open: open, onClose: function () { return setOpen(false); }, children: (0, jsx_runtime_1.jsx)(ui_1.DynamicFormHandler, __assign({}, actions.create, { onSucess: onSuccessCreate })) }), (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] })] })) }));
|
|
104
104
|
}
|
|
105
105
|
exports.CreateAction = CreateAction;
|
|
106
|
-
//#
|
|
106
|
+
//# sourceM
|
|
@@ -32,4 +32,4 @@ function Export(_a) {
|
|
|
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
|
|
@@ -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
1
|
import { PaginationModel } from '../../../../../../../../system/index.js';
|
|
2
|
-
export declare function PaginationTable({ page, endPage, pages, pageSize, totalItems, hasNextPage, hasPreviousPage }: PaginationModel): import("react/jsx-
|
|
2
|
+
export declare function PaginationTable({ page, endPage, pages, pageSize, totalItems, hasNextPage, hasPreviousPage }: PaginationModel): import("react/jsx-r
|
|
@@ -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
|
@@ -31,4 +31,4 @@ 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
|
|
@@ -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
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DynamicSection } from '../../../../system/index.js';
|
|
2
2
|
import { DynamicSectionResult } from './interfaces.js';
|
|
3
|
-
export declare function useDynamicSection({ refSection, isGlobal }: {
|
|
3
|
+
export declare function useDynamicSection({ refSection, isGlobal, }: {
|
|
4
4
|
refSection: DynamicSection['ref'];
|
|
5
5
|
isGlobal?: boolean;
|
|
6
6
|
}): DynamicSectionResult;
|
|
@@ -24,15 +24,19 @@ function useDynamicSection(_a) {
|
|
|
24
24
|
var refSectionID = (0, ui_1.generateRef)(refSection, router, isGlobal);
|
|
25
25
|
var sections = (0, context_1.useDynamicSectionContext)().sections;
|
|
26
26
|
var findSection = (sections === null || sections === void 0 ? void 0 : sections.find(function (section) { return section.ref === refSectionID; })) || {};
|
|
27
|
-
function
|
|
28
|
-
|
|
27
|
+
function Section(_a) {
|
|
28
|
+
var children = _a.children;
|
|
29
|
+
if (!findSection.enabled) {
|
|
30
|
+
return (0, jsx_runtime_1.jsx)(edit_section_1.EditSectionComponent, { refSection: refSectionID, section: findSection });
|
|
31
|
+
}
|
|
32
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(edit_section_1.EditSectionComponent, { refSection: refSectionID, section: findSection }), children] }));
|
|
29
33
|
}
|
|
30
34
|
if (findSection) {
|
|
31
|
-
var desestrureI18n = (locale && findSection[
|
|
32
|
-
return __assign(__assign(__assign({}, findSection), desestrureI18n), {
|
|
35
|
+
var desestrureI18n = (locale && findSection['i18n'] && findSection['i18n'][locale]) || {};
|
|
36
|
+
return __assign(__assign(__assign({}, findSection), desestrureI18n), { Section: Section });
|
|
33
37
|
}
|
|
34
38
|
console.error("Dynamic section with ref ".concat(refSection, " not found"));
|
|
35
|
-
return {
|
|
39
|
+
return { Section: Section };
|
|
36
40
|
}
|
|
37
41
|
exports.useDynamicSection = useDynamicSection;
|
|
38
42
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/ui/contexts/dynamic-sections/use-dynamic-section/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,sCAAuC;AAEvC,2BAAkC;AAGlC,sCAAqD;AACrD,+CAAqD;AAIrD,SAAgB,iBAAiB,CAAC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/ui/contexts/dynamic-sections/use-dynamic-section/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,sCAAuC;AAEvC,2BAAkC;AAGlC,sCAAqD;AACrD,+CAAqD;AAIrD,SAAgB,iBAAiB,CAAC,EAMjC;QALC,UAAU,gBAAA,EACV,QAAQ,cAAA;IAKR,IAAM,MAAM,GAAG,IAAA,kBAAS,GAAE,CAAA;IAE1B,IAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAA;IAE5B,IAAM,YAAY,GAAG,IAAA,gBAAW,EAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAA;IAEtD,IAAA,QAAQ,GAAK,IAAA,kCAAwB,GAAE,SAA/B,CAA+B;IAE/C,IAAM,WAAW,GAAG,CAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,IAAI,CAAC,UAAC,OAAO,IAAK,OAAA,OAAO,CAAC,GAAG,KAAK,YAAY,EAA5B,CAA4B,CAAC,KAAI,EAAoB,CAAA;IAErG,SAAS,OAAO,CAAC,EAA2C;YAAzC,QAAQ,cAAA;QACzB,IAAG,CAAC,WAAW,CAAC,OAAO,EAAE,CAAC;YACxB,OAAO,uBAAC,mCAAoB,IAAC,UAAU,EAAE,YAAY,EAAE,OAAO,EAAE,WAAW,GAAI,CAAA;QACjF,CAAC;QAED,OAAO,CACL,6DACE,uBAAC,mCAAoB,IAAC,UAAU,EAAE,YAAY,EAAE,OAAO,EAAE,WAAW,GAAI,EAEvE,QAAQ,IACR,CACJ,CAAA;IACH,CAAC;IAED,IAAI,WAAW,EAAE,CAAC;QAChB,IAAM,cAAc,GAAG,CAAC,MAAM,IAAI,WAAW,CAAC,MAAM,CAAC,IAAI,WAAW,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,CAAA;QAE3F,sCACK,WAAW,GACX,cAAc,KACjB,OAAO,SAAA,IACR;IACH,CAAC;IAED,OAAO,CAAC,KAAK,CAAC,mCAA4B,UAAU,eAAY,CAAC,CAAA;IAEjE,OAAO,EAAE,OAAO,SAAA,EAAE,CAAA;AACpB,CAAC;AA5CD,8CA4CC"}
|