infinity-forge 0.56.4 → 0.56.6
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 +10 -6
- package/dist/system/container/decorators/authorize-http-client-decorator.js.map +1 -1
- package/dist/system/data/use-cases/auth/remote-auth-admin.js +12 -7
- package/dist/system/data/use-cases/auth/remote-auth-admin.js.map +1 -1
- package/dist/system/data/use-cases/users/remote-load-user-admin.d.ts +1 -1
- package/dist/system/data/use-cases/users/remote-load-user-admin.js +9 -5
- package/dist/system/data/use-cases/users/remote-load-user-admin.js.map +1 -1
- package/dist/system/domain/use-cases/auth/admin/auth-admin.d.ts +1 -0
- package/dist/system/domain/use-cases/users/load-user-admin.d.ts +4 -1
- package/dist/system/presentation/components/data/notifications/index.d.ts +1 -2
- package/dist/system/presentation/components/data/notifications/index.js +4 -4
- package/dist/system/presentation/components/data/notifications/index.js.map +1 -1
- package/dist/system/presentation/components/layout/header/components/menu-right/profile/content/index.js +3 -16
- package/dist/system/presentation/components/layout/header/components/menu-right/profile/content/index.js.map +1 -1
- package/dist/system/presentation/components/layout/header/components/menu-right/profile/index.js +2 -1
- package/dist/system/presentation/components/layout/header/components/menu-right/profile/index.js.map +1 -1
- package/dist/system/presentation/components/layout/sidebar-menu/index.js +7 -15
- package/dist/system/presentation/components/layout/sidebar-menu/index.js.map +1 -1
- package/dist/system/presentation/components/layout/sidebar-menu/styles.d.ts +1 -6
- package/dist/system/presentation/components/layout/sidebar-menu/styles.js +6 -29
- package/dist/system/presentation/components/layout/sidebar-menu/styles.js.map +1 -1
- package/dist/system/presentation/components/pages/menus/page.js +4 -3
- package/dist/system/presentation/components/pages/menus/page.js.map +1 -1
- package/dist/system/presentation/components/pages/users/page.js +2 -1
- package/dist/system/presentation/components/pages/users/page.js.map +1 -1
- package/dist/system/presentation/context/auth/authenticated/index.js +3 -1
- package/dist/system/presentation/context/auth/authenticated/index.js.map +1 -1
- package/dist/system/presentation/context/auth/context.d.ts +31 -11
- package/dist/system/presentation/context/auth/context.js +39 -63
- package/dist/system/presentation/context/auth/context.js.map +1 -1
- package/dist/system/presentation/context/auth/index.d.ts +1 -0
- package/dist/system/presentation/context/auth/index.js +1 -0
- package/dist/system/presentation/context/auth/index.js.map +1 -1
- package/dist/system/presentation/context/auth/login/form-login/index.js +13 -1
- package/dist/system/presentation/context/auth/login/form-login/index.js.map +1 -1
- package/dist/system/presentation/context/auth/login/index.js +0 -2
- package/dist/system/presentation/context/auth/login/index.js.map +1 -1
- package/dist/system/presentation/context/auth/private-page/index.d.ts +1 -1
- package/dist/system/presentation/context/auth/private-page/index.js +70 -7
- package/dist/system/presentation/context/auth/private-page/index.js.map +1 -1
- package/dist/system/presentation/context/auth/private-page/interfaces.d.ts +1 -0
- package/dist/system/presentation/context/auth/role-store/index.d.ts +3 -0
- package/dist/system/presentation/context/auth/role-store/index.js +8 -0
- package/dist/system/presentation/context/auth/role-store/index.js.map +1 -0
- package/dist/system/presentation/context/auth/unauthenticated/index.js +3 -1
- package/dist/system/presentation/context/auth/unauthenticated/index.js.map +1 -1
- package/dist/system/presentation/context/infra-injection/interfaces.d.ts +1 -0
- package/dist/system/presentation/context/menu/context.js +8 -10
- package/dist/system/presentation/context/menu/context.js.map +1 -1
- package/dist/system/presentation/hooks/notifications/use-load-all/index.js +3 -1
- package/dist/system/presentation/hooks/notifications/use-load-all/index.js.map +1 -1
- package/dist/system/presentation/index.d.ts +1 -0
- package/dist/system/presentation/index.js +1 -0
- package/dist/system/presentation/index.js.map +1 -1
- package/dist/system/presentation/service/index.d.ts +1 -0
- package/dist/system/presentation/service/index.js +18 -0
- package/dist/system/presentation/service/index.js.map +1 -0
- package/dist/system/presentation/service/remote.d.ts +3 -0
- package/dist/system/presentation/service/remote.js +9 -0
- package/dist/system/presentation/service/remote.js.map +1 -0
- package/dist/test/index.d.ts +0 -1
- package/dist/test/index.js +2 -113
- package/dist/test/index.js.map +1 -1
- package/dist/test/sobre.js +6 -2
- package/dist/test/sobre.js.map +1 -1
- package/package.json +1 -1
- package/dist/system/presentation/context/auth/interfaces.d.ts +0 -8
- package/dist/system/presentation/context/auth/interfaces.js +0 -3
- package/dist/system/presentation/context/auth/interfaces.js.map +0 -1
package/dist/test/index.js
CHANGED
|
@@ -1,121 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
-
function step(op) {
|
|
16
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
-
switch (op[0]) {
|
|
21
|
-
case 0: case 1: t = op; break;
|
|
22
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
-
default:
|
|
26
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
-
if (t[2]) _.ops.pop();
|
|
31
|
-
_.trys.pop(); continue;
|
|
32
|
-
}
|
|
33
|
-
op = body.call(thisArg, _);
|
|
34
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
39
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
40
|
-
};
|
|
41
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
|
-
exports.
|
|
3
|
+
exports.HomePage = void 0;
|
|
43
4
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
44
|
-
var link_1 = __importDefault(require("next/link"));
|
|
45
5
|
var index_1 = require("../index.js");
|
|
46
6
|
function HomePage() {
|
|
47
|
-
|
|
48
|
-
var createTable = {
|
|
49
|
-
title: 'Cadastro',
|
|
50
|
-
text: 'Criar ',
|
|
51
|
-
subtitle: 'Novo ',
|
|
52
|
-
button: { text: 'Criar' },
|
|
53
|
-
onSucess: function (data) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
54
|
-
return [2 /*return*/];
|
|
55
|
-
}); }); },
|
|
56
|
-
inputs: [[{ name: 'name', InputComponent: 'Input', type: 'text', label: 'Título' }]],
|
|
57
|
-
};
|
|
58
|
-
var query = (0, index_1.useGetQueryArgumentsTable)({
|
|
59
|
-
queryKey: {
|
|
60
|
-
customKey: 'Ditto',
|
|
61
|
-
},
|
|
62
|
-
dynamicFiltersFromApi: true,
|
|
63
|
-
options: {
|
|
64
|
-
enableCache: true,
|
|
65
|
-
},
|
|
66
|
-
customRemote: function (params) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
67
|
-
switch (_a.label) {
|
|
68
|
-
case 0: return [4 /*yield*/, (0, index_1.api)({ method: 'get', url: 'ditto', body: params }).then(function (r) { return ({ items: [r] }); })];
|
|
69
|
-
case 1: return [2 /*return*/, _a.sent()];
|
|
70
|
-
}
|
|
71
|
-
}); }); },
|
|
72
|
-
});
|
|
73
|
-
var Table = (0, index_1.useTable)({
|
|
74
|
-
configs: {
|
|
75
|
-
errorMessage: 'AA',
|
|
76
|
-
customFilters: [
|
|
77
|
-
{ label: "Opções", placeholder: 'KK', data: 'current', search: null, options: [{ text: 'Option1', value: '1' }] },
|
|
78
|
-
{
|
|
79
|
-
placeholder: 'Test',
|
|
80
|
-
data: 'idade',
|
|
81
|
-
search: null,
|
|
82
|
-
label: "Idade",
|
|
83
|
-
options: [
|
|
84
|
-
{ text: '21 anos', value: '21' },
|
|
85
|
-
{ text: '22 anos', value: '22' },
|
|
86
|
-
],
|
|
87
|
-
},
|
|
88
|
-
],
|
|
89
|
-
},
|
|
90
|
-
query: query,
|
|
91
|
-
columnsConfiguration: {
|
|
92
|
-
columns: [{ id: 'name', label: 'Name', width: 200 }],
|
|
93
|
-
actions: {
|
|
94
|
-
create: createTable,
|
|
95
|
-
},
|
|
96
|
-
},
|
|
97
|
-
}).Table;
|
|
98
|
-
return ((0, jsx_runtime_1.jsxs)(index_1.Layout, { children: [Table, (0, jsx_runtime_1.jsx)(ClearGroupCache, {})] }));
|
|
7
|
+
return ((0, jsx_runtime_1.jsx)(index_1.Layout, { children: "a" }));
|
|
99
8
|
}
|
|
100
9
|
exports.HomePage = HomePage;
|
|
101
|
-
function ClearGroupCache() {
|
|
102
|
-
var _this = this;
|
|
103
|
-
var cache = (0, index_1.useQueryClient)(function (state) { return state.cache; });
|
|
104
|
-
var clear = (0, index_1.useQueryClient)(function (state) { return state.mutate; });
|
|
105
|
-
var refetch = (0, index_1.useQueryClient)(function (state) { return state.refetch; });
|
|
106
|
-
console.log(refetch);
|
|
107
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(link_1.default, { href: '/sobre', children: "Ir" }), (0, jsx_runtime_1.jsx)(link_1.default, { href: '/', children: "Voltar" }), (0, jsx_runtime_1.jsx)("button", { type: 'button', onClick: function () { return __awaiter(_this, void 0, void 0, function () {
|
|
108
|
-
var r;
|
|
109
|
-
return __generator(this, function (_a) {
|
|
110
|
-
switch (_a.label) {
|
|
111
|
-
case 0: return [4 /*yield*/, refetch("Ditto{}").then(function (r) { return console.log(r); })];
|
|
112
|
-
case 1:
|
|
113
|
-
r = _a.sent();
|
|
114
|
-
console.log(r);
|
|
115
|
-
return [2 /*return*/];
|
|
116
|
-
}
|
|
117
|
-
});
|
|
118
|
-
}); }, children: "Test" })] }));
|
|
119
|
-
}
|
|
120
|
-
exports.ClearGroupCache = ClearGroupCache;
|
|
121
10
|
//# sourceMappingURL=index.js.map
|
package/dist/test/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/test/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/test/index.tsx"],"names":[],"mappings":";;;;AACA,kCAAqD;AAErD,SAAgB,QAAQ;IACtB,OAAO,CACL,uBAAC,cAAM,oBAEE,CACV,CAAA;AACH,CAAC;AAND,4BAMC"}
|
package/dist/test/sobre.js
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
6
|
exports.Sobre = void 0;
|
|
4
7
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
var
|
|
8
|
+
var link_1 = __importDefault(require("next/link"));
|
|
9
|
+
var __1 = require("../index.js");
|
|
6
10
|
function Sobre() {
|
|
7
|
-
return (0, jsx_runtime_1.jsx)(
|
|
11
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(link_1.default, { href: '/', children: "Test" }), ' ', (0, jsx_runtime_1.jsx)("button", { type: 'button', onClick: function () { return (0, __1.remote)(__1.RemoteMenu).loadAll(); }, children: "AAaaa" })] }));
|
|
8
12
|
}
|
|
9
13
|
exports.Sobre = Sobre;
|
|
10
14
|
//# sourceMappingURL=sobre.js.map
|
package/dist/test/sobre.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sobre.js","sourceRoot":"","sources":["../../src/test/sobre.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sobre.js","sourceRoot":"","sources":["../../src/test/sobre.tsx"],"names":[],"mappings":";;;;;;;AAAA,mDAA4B;AAC5B,wBAAuC;AAEvC,SAAgB,KAAK;IACnB,OAAO,CACL,6DACE,uBAAC,cAAI,IAAC,IAAI,EAAE,GAAG,qBAAa,EAAC,GAAG,EAChC,mCAAQ,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAE,cAAM,OAAA,IAAA,UAAM,EAAC,cAAU,CAAC,CAAC,OAAO,EAAE,EAA5B,CAA4B,sBAExD,IACR,CACJ,CAAA;AACH,CAAC;AATD,sBASC"}
|
package/package.json
CHANGED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { AuthAdmin, UserAdmin } from '../../../../system/index.js';
|
|
2
|
-
export interface IAuthContextType {
|
|
3
|
-
signOut(): void;
|
|
4
|
-
user: UserAdmin | undefined | null;
|
|
5
|
-
signIn(params: AuthAdmin.Params): void;
|
|
6
|
-
GetUser<T>(): T & UserAdmin;
|
|
7
|
-
loadUser(): Promise<void>;
|
|
8
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../../src/system/presentation/context/auth/interfaces.ts"],"names":[],"mappings":""}
|