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.
Files changed (69) hide show
  1. package/dist/system/container/decorators/authorize-http-client-decorator.js +10 -6
  2. package/dist/system/container/decorators/authorize-http-client-decorator.js.map +1 -1
  3. package/dist/system/data/use-cases/auth/remote-auth-admin.js +12 -7
  4. package/dist/system/data/use-cases/auth/remote-auth-admin.js.map +1 -1
  5. package/dist/system/data/use-cases/users/remote-load-user-admin.d.ts +1 -1
  6. package/dist/system/data/use-cases/users/remote-load-user-admin.js +9 -5
  7. package/dist/system/data/use-cases/users/remote-load-user-admin.js.map +1 -1
  8. package/dist/system/domain/use-cases/auth/admin/auth-admin.d.ts +1 -0
  9. package/dist/system/domain/use-cases/users/load-user-admin.d.ts +4 -1
  10. package/dist/system/presentation/components/data/notifications/index.d.ts +1 -2
  11. package/dist/system/presentation/components/data/notifications/index.js +4 -4
  12. package/dist/system/presentation/components/data/notifications/index.js.map +1 -1
  13. package/dist/system/presentation/components/layout/header/components/menu-right/profile/content/index.js +3 -16
  14. package/dist/system/presentation/components/layout/header/components/menu-right/profile/content/index.js.map +1 -1
  15. package/dist/system/presentation/components/layout/header/components/menu-right/profile/index.js +2 -1
  16. package/dist/system/presentation/components/layout/header/components/menu-right/profile/index.js.map +1 -1
  17. package/dist/system/presentation/components/layout/sidebar-menu/index.js +7 -15
  18. package/dist/system/presentation/components/layout/sidebar-menu/index.js.map +1 -1
  19. package/dist/system/presentation/components/layout/sidebar-menu/styles.d.ts +1 -6
  20. package/dist/system/presentation/components/layout/sidebar-menu/styles.js +6 -29
  21. package/dist/system/presentation/components/layout/sidebar-menu/styles.js.map +1 -1
  22. package/dist/system/presentation/components/pages/menus/page.js +4 -3
  23. package/dist/system/presentation/components/pages/menus/page.js.map +1 -1
  24. package/dist/system/presentation/components/pages/users/page.js +2 -1
  25. package/dist/system/presentation/components/pages/users/page.js.map +1 -1
  26. package/dist/system/presentation/context/auth/authenticated/index.js +3 -1
  27. package/dist/system/presentation/context/auth/authenticated/index.js.map +1 -1
  28. package/dist/system/presentation/context/auth/context.d.ts +31 -11
  29. package/dist/system/presentation/context/auth/context.js +39 -63
  30. package/dist/system/presentation/context/auth/context.js.map +1 -1
  31. package/dist/system/presentation/context/auth/index.d.ts +1 -0
  32. package/dist/system/presentation/context/auth/index.js +1 -0
  33. package/dist/system/presentation/context/auth/index.js.map +1 -1
  34. package/dist/system/presentation/context/auth/login/form-login/index.js +13 -1
  35. package/dist/system/presentation/context/auth/login/form-login/index.js.map +1 -1
  36. package/dist/system/presentation/context/auth/login/index.js +0 -2
  37. package/dist/system/presentation/context/auth/login/index.js.map +1 -1
  38. package/dist/system/presentation/context/auth/private-page/index.d.ts +1 -1
  39. package/dist/system/presentation/context/auth/private-page/index.js +70 -7
  40. package/dist/system/presentation/context/auth/private-page/index.js.map +1 -1
  41. package/dist/system/presentation/context/auth/private-page/interfaces.d.ts +1 -0
  42. package/dist/system/presentation/context/auth/role-store/index.d.ts +3 -0
  43. package/dist/system/presentation/context/auth/role-store/index.js +8 -0
  44. package/dist/system/presentation/context/auth/role-store/index.js.map +1 -0
  45. package/dist/system/presentation/context/auth/unauthenticated/index.js +3 -1
  46. package/dist/system/presentation/context/auth/unauthenticated/index.js.map +1 -1
  47. package/dist/system/presentation/context/infra-injection/interfaces.d.ts +1 -0
  48. package/dist/system/presentation/context/menu/context.js +8 -10
  49. package/dist/system/presentation/context/menu/context.js.map +1 -1
  50. package/dist/system/presentation/hooks/notifications/use-load-all/index.js +3 -1
  51. package/dist/system/presentation/hooks/notifications/use-load-all/index.js.map +1 -1
  52. package/dist/system/presentation/index.d.ts +1 -0
  53. package/dist/system/presentation/index.js +1 -0
  54. package/dist/system/presentation/index.js.map +1 -1
  55. package/dist/system/presentation/service/index.d.ts +1 -0
  56. package/dist/system/presentation/service/index.js +18 -0
  57. package/dist/system/presentation/service/index.js.map +1 -0
  58. package/dist/system/presentation/service/remote.d.ts +3 -0
  59. package/dist/system/presentation/service/remote.js +9 -0
  60. package/dist/system/presentation/service/remote.js.map +1 -0
  61. package/dist/test/index.d.ts +0 -1
  62. package/dist/test/index.js +2 -113
  63. package/dist/test/index.js.map +1 -1
  64. package/dist/test/sobre.js +6 -2
  65. package/dist/test/sobre.js.map +1 -1
  66. package/package.json +1 -1
  67. package/dist/system/presentation/context/auth/interfaces.d.ts +0 -8
  68. package/dist/system/presentation/context/auth/interfaces.js +0 -3
  69. package/dist/system/presentation/context/auth/interfaces.js.map +0 -1
@@ -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.ClearGroupCache = exports.HomePage = void 0;
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
- var _this = this;
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
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/test/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mDAA4B;AAC5B,kCAAqH;AAErH,SAAgB,QAAQ;IAAxB,iBAoDC;IAnDC,IAAM,WAAW,GAAwC;QACvD,KAAK,EAAE,UAAU;QACjB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,OAAO;QACjB,MAAM,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;QACzB,QAAQ,EAAE,UAAO,IAAI;;iBAAO;QAC5B,MAAM,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,cAAc,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,CAAC;KACrF,CAAA;IAED,IAAM,KAAK,GAAG,IAAA,iCAAyB,EAAC;QACtC,QAAQ,EAAE;YACR,SAAS,EAAE,OAAO;SACnB;QACD,qBAAqB,EAAE,IAAI;QAC3B,OAAO,EAAE;YACP,WAAW,EAAE,IAAI;SAClB;QACD,YAAY,EAAE,UAAO,MAAM;;wBAAK,qBAAM,IAAA,WAAG,EAAC,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,UAAA,CAAC,IAAI,OAAA,CAAC,EAAC,KAAK,EAAE,CAAC,CAAC,CAAC,EAAC,CAAC,EAAd,CAAc,CAAC,EAAA;wBAAlF,sBAAA,SAAkF,EAAA;;iBAAA;KACnH,CAAC,CAAA;IAEM,IAAA,KAAK,GAAK,IAAA,gBAAQ,EAAuC;QAC/D,OAAO,EAAE;YACP,YAAY,EAAE,IAAI;YAClB,aAAa,EAAE;gBACb,EAAE,KAAK,EAAE,QAAQ,EAAE,WAAW,EA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/B,uBAAC,cAAI,IAAC,IAAI,EAAE,GAAG,uBAAe,EAC9B,mCACE,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE;;;;oCACG,qBAAM,OAAO,CAAiB,SAAS,CAAC,CAAC,IAAI,CAAC,UAAA,CAAC,IAAI,OAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAd,CAAc,CAAC,EAAA;;gCAAtE,CAAC,GAAG,SAAkE;gCAE5E,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAA;;;;qBACf,qBAGM,IACR,CACJ,CAAA;AACH,CAAC;AAvBD,0CAuBC"}
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"}
@@ -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 _1 = require("./index.js");
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)(_1.ClearGroupCache, {});
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
@@ -1 +1 @@
1
- {"version":3,"file":"sobre.js","sourceRoot":"","sources":["../../src/test/sobre.tsx"],"names":[],"mappings":";;;;AAAA,sBAAoC;AAGpC,SAAgB,KAAK;IAEjB,OAAO,uBAAC,kBAAe,KAAG,CAAA;AAC9B,CAAC;AAHD,sBAGC"}
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,6 +1,6 @@
1
1
  {
2
2
  "name": "infinity-forge",
3
- "version": "0.56.4",
3
+ "version": "0.56.6",
4
4
  "description": "codie Library",
5
5
  "main": "./dist/index",
6
6
  "module": "./dist/index",
@@ -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,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=interfaces.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../../src/system/presentation/context/auth/interfaces.ts"],"names":[],"mappings":""}