infinity-forge 1.9.2 → 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/container/decorators/authorize-http-client-decorator.js +8 -7
- package/dist/system/container/decorators/authorize-http-client-decorator.js.map +1 -1
- package/dist/system/data/use-cases/dynamic-section/remote-dynamic-section.js +8 -6
- package/dist/system/data/use-cases/dynamic-section/remote-dynamic-section.js.map +1 -1
- 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
|
@@ -84,29 +84,30 @@ var AuthorizeHttpClientDecorator = /** @class */ (function () {
|
|
|
84
84
|
AuthorizeHttpClientDecorator.prototype.request = function (data) {
|
|
85
85
|
return __awaiter(this, void 0, void 0, function () {
|
|
86
86
|
var storageToken, _a, token, httpResponse;
|
|
87
|
-
var _b, _c;
|
|
88
|
-
return __generator(this, function (
|
|
89
|
-
switch (
|
|
87
|
+
var _b, _c, _d, _e, _f, _g, _h, _j;
|
|
88
|
+
return __generator(this, function (_k) {
|
|
89
|
+
switch (_k.label) {
|
|
90
90
|
case 0:
|
|
91
91
|
_a = process.browser;
|
|
92
92
|
if (!_a) return [3 /*break*/, 2];
|
|
93
93
|
return [4 /*yield*/, this.storage.get("token")];
|
|
94
94
|
case 1:
|
|
95
|
-
_a = (
|
|
96
|
-
|
|
95
|
+
_a = (_k.sent());
|
|
96
|
+
_k.label = 2;
|
|
97
97
|
case 2:
|
|
98
98
|
storageToken = _a;
|
|
99
99
|
token = process.browser && (storageToken === null || storageToken === void 0 ? void 0 : storageToken.value);
|
|
100
|
+
console.log(((_b = data === null || data === void 0 ? void 0 : data.headers) === null || _b === void 0 ? void 0 : _b.painel) ? (_c = data === null || data === void 0 ? void 0 : data.headers) === null || _c === void 0 ? void 0 : _c.painel : ((_d = data === null || data === void 0 ? void 0 : data.headers) === null || _d === void 0 ? void 0 : _d.painel) ? (_e = process === null || process === void 0 ? void 0 : process.env) === null || _e === void 0 ? void 0 : _e.painel : undefined, "IsPainel");
|
|
100
101
|
Object.assign(data, {
|
|
101
102
|
headers: Object.assign(data.headers || {}, {
|
|
102
103
|
Authorization: "Bearer ".concat(token || ''),
|
|
103
104
|
flag: 'token',
|
|
104
|
-
painel: ((
|
|
105
|
+
painel: ((_f = data === null || data === void 0 ? void 0 : data.headers) === null || _f === void 0 ? void 0 : _f.painel) ? (_g = data === null || data === void 0 ? void 0 : data.headers) === null || _g === void 0 ? void 0 : _g.painel : ((_h = data === null || data === void 0 ? void 0 : data.headers) === null || _h === void 0 ? void 0 : _h.painel) ? (_j = process === null || process === void 0 ? void 0 : process.env) === null || _j === void 0 ? void 0 : _j.painel : undefined
|
|
105
106
|
}),
|
|
106
107
|
});
|
|
107
108
|
return [4 /*yield*/, this.httpClient.request(data)];
|
|
108
109
|
case 3:
|
|
109
|
-
httpResponse =
|
|
110
|
+
httpResponse = _k.sent();
|
|
110
111
|
return [2 /*return*/, httpResponse];
|
|
111
112
|
}
|
|
112
113
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authorize-http-client-decorator.js","sourceRoot":"","sources":["../../../../src/system/container/decorators/authorize-http-client-decorator.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAA8C;AAE9C,oDAAuC;AACvC,sDAAyC;AAEzC,kCAAqC;AAGrC;IACE,sCAC+C,OAAsB,EACzB,UAA6B;QAD1B,YAAO,GAAP,OAAO,CAAe;QACzB,eAAU,GAAV,UAAU,CAAmB;IACtE,CAAC;IAEE,8CAAO,GAAb,UAAc,IAAwB;;;;;;;wBAEf,KAAA,OAAO,CAAC,OAAO,CAAA;iCAAf,wBAAe;wBAAI,qBAAM,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,EAAA;;8BAA/B,SAA+B;;;wBAAjE,YAAY,KAAqD;wBAEjE,KAAK,GAAG,OAAO,CAAC,OAAO,KAAI,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,KAAK,CAAA,CAAC;wBAErD,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE;4BAClB,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,IAAI,EAAE,EAAE;gCACzC,aAAa,EAAE,iBAAU,KAAK,IAAI,EAAE,CAAE;gCACtC,IAAI,EAAE,OAAO;gCACb,MAAM,EAAE,CAAA,MAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,OAAO,0CAAE,MAAM,EAAC,CAAC,CAAC,MAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,OAAO,0CAAE,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"authorize-http-client-decorator.js","sourceRoot":"","sources":["../../../../src/system/container/decorators/authorize-http-client-decorator.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAA8C;AAE9C,oDAAuC;AACvC,sDAAyC;AAEzC,kCAAqC;AAGrC;IACE,sCAC+C,OAAsB,EACzB,UAA6B;QAD1B,YAAO,GAAP,OAAO,CAAe;QACzB,eAAU,GAAV,UAAU,CAAmB;IACtE,CAAC;IAEE,8CAAO,GAAb,UAAc,IAAwB;;;;;;;wBAEf,KAAA,OAAO,CAAC,OAAO,CAAA;iCAAf,wBAAe;wBAAI,qBAAM,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,EAAA;;8BAA/B,SAA+B;;;wBAAjE,YAAY,KAAqD;wBAEjE,KAAK,GAAG,OAAO,CAAC,OAAO,KAAI,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,KAAK,CAAA,CAAC;wBAErD,OAAO,CAAC,GAAG,CAAC,CAAA,MAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,OAAO,0CAAE,MAAM,EAAC,CAAC,CAAC,MAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,OAAO,0CAAE,MAAM,CAAC,CAAC,CAAC,CAAA,MAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,OAAO,0CAAE,MAAM,EAAC,CAAC,CAAC,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,GAAG,0CAAE,MAAM,CAAC,CAAC,CAAC,SAAS,EAAE,UAAU,CAAC,CAAA;wBAEjI,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE;4BAClB,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,IAAI,EAAE,EAAE;gCACzC,aAAa,EAAE,iBAAU,KAAK,IAAI,EAAE,CAAE;gCACtC,IAAI,EAAE,OAAO;gCACb,MAAM,EAAE,CAAA,MAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,OAAO,0CAAE,MAAM,EAAC,CAAC,CAAC,MAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,OAAO,0CAAE,MAAM,CAAC,CAAC,CAAC,CAAA,MAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,OAAO,0CAAE,MAAM,EAAC,CAAC,CAAC,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,GAAG,0CAAE,MAAM,CAAC,CAAC,CAAC,SAAS;6BACjH,CAAC;yBACH,CAAC,CAAC;wBAEkB,qBAAM,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,EAAA;;wBAAlD,YAAY,GAAG,SAAmC;wBAExD,sBAAO,YAAY,EAAC;;;;KACrB;IAzBU,4BAA4B;QADxC,IAAA,sBAAU,GAAE;QAGR,WAAA,IAAA,kBAAM,EAAC,kBAAU,CAAC,OAAO,CAAC,CAAA;QAC1B,WAAA,IAAA,kBAAM,EAAC,kBAAU,CAAC,IAAI,CAAC,CAAA;;OAHf,4BAA4B,CA0BxC;IAAD,mCAAC;CAAA,AA3BD,IA2BC;AA1BY,oEAA4B"}
|
|
@@ -103,12 +103,14 @@ var RemoteDynamicSection = /** @class */ (function () {
|
|
|
103
103
|
var response;
|
|
104
104
|
return __generator(this, function (_a) {
|
|
105
105
|
switch (_a.label) {
|
|
106
|
-
case 0:
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
106
|
+
case 0:
|
|
107
|
+
console.log(params.isEditMode === true ? { painel: "true" } : undefined, "Ue");
|
|
108
|
+
return [4 /*yield*/, this.httpClient.request({
|
|
109
|
+
url: this.makeApiURL.make("section"),
|
|
110
|
+
method: "get",
|
|
111
|
+
body: params,
|
|
112
|
+
headers: params.isEditMode === true ? { painel: "true" } : undefined
|
|
113
|
+
})];
|
|
112
114
|
case 1:
|
|
113
115
|
response = _a.sent();
|
|
114
116
|
return [2 /*return*/, response];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remote-dynamic-section.js","sourceRoot":"","sources":["../../../../../src/system/data/use-cases/dynamic-section/remote-dynamic-section.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAA+C;AAE/C,wDAA2D;AAC3D,sEAAkE;AAElE,sDAAyC;AAGzC;IACE,8BAEmB,UAAsB,EAEtB,UAAkC;QAFlC,eAAU,GAAV,UAAU,CAAY;QAEtB,eAAU,GAAV,UAAU,CAAwB;IAClD,CAAC;6BANO,oBAAoB;IAQ/B,mCAAI,GAAJ;QACE,OAAO;YACL,OAAO,EAAE,sBAAoB,CAAC,IAAI,GAAG,UAAU;SAChD,CAAC;IACJ,CAAC;IAEK,sCAAO,GAAb,UAAc,MAAsE
|
|
1
|
+
{"version":3,"file":"remote-dynamic-section.js","sourceRoot":"","sources":["../../../../../src/system/data/use-cases/dynamic-section/remote-dynamic-section.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAA+C;AAE/C,wDAA2D;AAC3D,sEAAkE;AAElE,sDAAyC;AAGzC;IACE,8BAEmB,UAAsB,EAEtB,UAAkC;QAFlC,eAAU,GAAV,UAAU,CAAY;QAEtB,eAAU,GAAV,UAAU,CAAwB;IAClD,CAAC;6BANO,oBAAoB;IAQ/B,mCAAI,GAAJ;QACE,OAAO;YACL,OAAO,EAAE,sBAAoB,CAAC,IAAI,GAAG,UAAU;SAChD,CAAC;IACJ,CAA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IAAA,sBAAU,GAAE;QAGR,WAAA,IAAA,kBAAM,EAAC,kBAAU,CAAC,UAAU,CAAC,CAAA;QAE7B,WAAA,IAAA,kBAAM,EAAC,kBAAU,CAAC,kBAAkB,CAAC,CAAA;yCADT,yBAAU;OAH9B,oBAAoB,CA8ChC;IAAD,2BAAC;CAAA,AA/CD,IA+CC;AA9CY,oDAAoB"}
|
|
@@ -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,IAA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