infinity-forge 0.4.1 → 0.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/container/admin/index.d.ts +3 -1
- package/dist/system/container/admin/index.js +2 -0
- package/dist/system/container/admin/index.js.map +1 -1
- package/dist/system/container/admin/menu/container.d.ts +3 -0
- package/dist/system/container/admin/menu/container.js +11 -0
- package/dist/system/container/admin/menu/container.js.map +1 -0
- package/dist/system/container/admin/menu/index.d.ts +2 -0
- package/dist/system/container/admin/menu/index.js +19 -0
- package/dist/system/container/admin/menu/index.js.map +1 -0
- package/dist/system/container/admin/menu/types.d.ts +3 -0
- package/dist/system/container/admin/menu/types.js +7 -0
- package/dist/system/container/admin/menu/types.js.map +1 -0
- package/dist/system/container/admin/users/container.d.ts +3 -0
- package/dist/system/container/admin/users/container.js +12 -0
- package/dist/system/container/admin/users/container.js.map +1 -0
- package/dist/system/container/admin/users/index.d.ts +2 -0
- package/dist/system/container/admin/users/index.js +19 -0
- package/dist/system/container/admin/users/index.js.map +1 -0
- package/dist/system/container/admin/users/types.d.ts +4 -0
- package/dist/system/container/admin/users/types.js +8 -0
- package/dist/system/container/admin/users/types.js.map +1 -0
- package/dist/system/container/main.d.ts +2 -2
- package/dist/system/container/main.js +2 -2
- package/dist/system/container/main.js.map +1 -1
- package/dist/system/container/types.d.ts +3 -0
- package/dist/system/container/types.js +1 -1
- package/dist/system/container/types.js.map +1 -1
- package/dist/system/data/use-cases/auth/remote-auth-admin.d.ts +1 -1
- package/dist/system/data/use-cases/index.d.ts +3 -1
- package/dist/system/data/use-cases/index.js +2 -0
- package/dist/system/data/use-cases/index.js.map +1 -1
- package/dist/system/data/use-cases/menu/index.d.ts +1 -0
- package/dist/system/data/use-cases/menu/index.js +18 -0
- package/dist/system/data/use-cases/menu/index.js.map +1 -0
- package/dist/system/data/use-cases/menu/remote-get-menu.d.ts +8 -0
- package/dist/system/data/use-cases/menu/remote-get-menu.js +109 -0
- package/dist/system/data/use-cases/menu/remote-get-menu.js.map +1 -0
- package/dist/system/data/use-cases/users/index.d.ts +2 -0
- package/dist/system/data/use-cases/users/index.js +19 -0
- package/dist/system/data/use-cases/users/index.js.map +1 -0
- package/dist/system/data/use-cases/users/remote-load-user-admin.d.ts +8 -0
- package/dist/system/data/use-cases/users/remote-load-user-admin.js +109 -0
- package/dist/system/data/use-cases/users/remote-load-user-admin.js.map +1 -0
- package/dist/system/data/use-cases/users/remote-users.d.ts +12 -0
- package/dist/system/data/use-cases/users/remote-users.js +177 -0
- package/dist/system/data/use-cases/users/remote-users.js.map +1 -0
- package/dist/system/domain/generics/index.d.ts +1 -0
- package/dist/system/domain/generics/index.js +1 -0
- package/dist/system/domain/generics/index.js.map +1 -1
- package/dist/system/domain/generics/pagination.d.ts +14 -0
- package/dist/system/domain/generics/pagination.js +3 -0
- package/dist/system/domain/generics/pagination.js.map +1 -0
- package/dist/system/domain/generics/return-type.d.ts +8 -0
- package/dist/system/domain/generics/return-type.js +3 -0
- package/dist/system/domain/generics/return-type.js.map +1 -0
- package/dist/system/domain/index.d.ts +3 -3
- package/dist/system/domain/index.js.map +1 -1
- package/dist/system/domain/protocols/cache/get-storage.d.ts +1 -1
- package/dist/system/domain/protocols/cache/set-storage.d.ts +1 -1
- package/dist/system/domain/protocols/http/errors/http-errors/conflict-error.d.ts +8 -0
- package/dist/system/domain/protocols/http/errors/http-errors/conflict-error.js +11 -0
- package/dist/system/domain/protocols/http/errors/http-errors/conflict-error.js.map +1 -0
- package/dist/system/domain/protocols/http/http-client.d.ts +1 -0
- package/dist/system/domain/protocols/http/http-client.js +1 -0
- package/dist/system/domain/protocols/http/http-client.js.map +1 -1
- package/dist/system/domain/use-cases/auth/admin/auth-admin.d.ts +3 -4
- package/dist/system/domain/use-cases/index.d.ts +3 -1
- package/dist/system/domain/use-cases/index.js +2 -0
- package/dist/system/domain/use-cases/index.js.map +1 -1
- package/dist/system/domain/use-cases/menu/index.d.ts +1 -0
- package/dist/system/{pages → domain/use-cases/menu}/index.js +1 -1
- package/dist/system/domain/use-cases/menu/index.js.map +1 -0
- package/dist/system/domain/use-cases/menu/load-menu.d.ts +15 -0
- package/dist/system/domain/use-cases/menu/load-menu.js +3 -0
- package/dist/system/domain/use-cases/menu/load-menu.js.map +1 -0
- package/dist/system/domain/use-cases/users/create-user.d.ts +15 -0
- package/dist/system/domain/use-cases/users/create-user.js +3 -0
- package/dist/system/domain/use-cases/users/create-user.js.map +1 -0
- package/dist/system/domain/use-cases/users/delete-user.d.ts +10 -0
- package/dist/system/domain/use-cases/users/delete-user.js +3 -0
- package/dist/system/domain/use-cases/users/delete-user.js.map +1 -0
- package/dist/system/domain/use-cases/users/edit-user.d.ts +8 -0
- package/dist/system/domain/use-cases/users/edit-user.js +3 -0
- package/dist/system/domain/use-cases/users/edit-user.js.map +1 -0
- package/dist/system/domain/use-cases/users/get-detail-user.d.ts +10 -0
- package/dist/system/domain/use-cases/users/get-detail-user.js +3 -0
- package/dist/system/domain/use-cases/users/get-detail-user.js.map +1 -0
- package/dist/system/domain/use-cases/users/index.d.ts +6 -0
- package/dist/system/domain/use-cases/users/index.js +23 -0
- package/dist/system/domain/use-cases/users/index.js.map +1 -0
- package/dist/system/domain/use-cases/users/load-all-users.d.ts +23 -0
- package/dist/system/domain/use-cases/users/load-all-users.js +3 -0
- package/dist/system/domain/use-cases/users/load-all-users.js.map +1 -0
- package/dist/system/domain/use-cases/users/load-user-admin.d.ts +15 -0
- package/dist/system/domain/use-cases/users/load-user-admin.js +3 -0
- package/dist/system/domain/use-cases/users/load-user-admin.js.map +1 -0
- package/dist/system/index.d.ts +0 -1
- package/dist/system/index.js +0 -1
- package/dist/system/index.js.map +1 -1
- package/dist/system/infra/cache/cookie-storage-adapter.d.ts +4 -4
- package/dist/system/infra/cache/cookie-storage-adapter.js +6 -50
- package/dist/system/infra/cache/cookie-storage-adapter.js.map +1 -1
- package/dist/system/infra/http/axios-http-client.js +6 -1
- package/dist/system/infra/http/axios-http-client.js.map +1 -1
- package/dist/system/presentation/components/index.d.ts +3 -2
- package/dist/system/presentation/components/index.js +1 -0
- package/dist/system/presentation/components/index.js.map +1 -1
- package/dist/system/presentation/components/layout/header/version-01/index.js +1 -1
- package/dist/system/presentation/components/layout/header/version-01/index.js.map +1 -1
- package/dist/system/presentation/components/layout/header/version-01/styles.d.ts +1 -1
- package/dist/system/presentation/components/layout/header/version-01/styles.js +2 -2
- package/dist/system/presentation/components/layout/header/version-01/styles.js.map +1 -1
- package/dist/system/presentation/components/layout/menu/components/menu/index.js +10 -5
- package/dist/system/presentation/components/layout/menu/components/menu/index.js.map +1 -1
- package/dist/system/presentation/components/pages/index.d.ts +1 -0
- package/dist/system/presentation/components/pages/index.js +18 -0
- package/dist/system/presentation/components/pages/index.js.map +1 -0
- package/dist/system/presentation/components/pages/users/index.d.ts +1 -0
- package/dist/system/presentation/components/pages/users/index.js +18 -0
- package/dist/system/presentation/components/pages/users/index.js.map +1 -0
- package/dist/system/presentation/components/pages/users/page.d.ts +1 -0
- package/dist/system/presentation/components/pages/users/page.js +35 -0
- package/dist/system/presentation/components/pages/users/page.js.map +1 -0
- package/dist/system/presentation/components/pages/users/table/columns.d.ts +3 -0
- package/dist/system/presentation/components/pages/users/table/columns.js +9 -0
- package/dist/system/presentation/components/pages/users/table/columns.js.map +1 -0
- package/dist/system/presentation/components/pages/users/table/delete.d.ts +3 -0
- package/dist/system/presentation/components/pages/users/table/delete.js +74 -0
- package/dist/system/presentation/components/pages/users/table/delete.js.map +1 -0
- package/dist/system/presentation/components/pages/users/table/edit.d.ts +3 -0
- package/dist/system/presentation/components/pages/users/table/edit.js +87 -0
- package/dist/system/presentation/components/pages/users/table/edit.js.map +1 -0
- package/dist/system/presentation/components/pages/users/table/index.d.ts +3 -0
- package/dist/system/presentation/components/pages/users/table/index.js +20 -0
- package/dist/system/presentation/components/pages/users/table/index.js.map +1 -0
- package/dist/system/presentation/configs/index.d.ts +0 -1
- package/dist/system/presentation/configs/index.js +0 -1
- package/dist/system/presentation/configs/index.js.map +1 -1
- package/dist/system/presentation/context/auth/context.d.ts +1 -6
- package/dist/system/presentation/context/auth/context.js +36 -8
- package/dist/system/presentation/context/auth/context.js.map +1 -1
- package/dist/system/presentation/context/auth/interfaces.d.ts +6 -0
- package/dist/system/presentation/context/auth/interfaces.js +3 -0
- package/dist/system/presentation/context/auth/interfaces.js.map +1 -0
- package/dist/system/presentation/context/auth/private-page/index.js +1 -1
- package/dist/system/presentation/context/auth/private-page/index.js.map +1 -1
- package/dist/system/presentation/hooks/index.d.ts +2 -1
- package/dist/system/presentation/hooks/index.js +1 -0
- package/dist/system/presentation/hooks/index.js.map +1 -1
- package/dist/system/presentation/hooks/menu/index.d.ts +1 -0
- package/dist/system/presentation/hooks/menu/index.js +18 -0
- package/dist/system/presentation/hooks/menu/index.js.map +1 -0
- package/dist/system/presentation/hooks/menu/use-load-menu.d.ts +1 -0
- package/dist/system/presentation/hooks/menu/use-load-menu.js +70 -0
- package/dist/system/presentation/hooks/menu/use-load-menu.js.map +1 -0
- package/dist/system/presentation/hooks/ui/use-table/component.d.ts +2 -3
- package/dist/system/presentation/hooks/ui/use-table/component.js +15 -4
- package/dist/system/presentation/hooks/ui/use-table/component.js.map +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/index.d.ts +0 -2
- package/dist/system/presentation/hooks/ui/use-table/components/index.js +0 -2
- package/dist/system/presentation/hooks/ui/use-table/components/index.js.map +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/actions/index.d.ts +5 -0
- package/dist/system/presentation/hooks/ui/use-table/components/table/actions/index.js +78 -0
- package/dist/system/presentation/hooks/ui/use-table/components/table/actions/index.js.map +1 -0
- package/dist/system/presentation/hooks/ui/use-table/components/table/index.d.ts +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/index.js +29 -29
- package/dist/system/presentation/hooks/ui/use-table/components/table/index.js.map +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/interfaces.d.ts +5 -7
- package/dist/system/presentation/hooks/ui/use-table/components/table/pagination/index.d.ts +2 -0
- package/dist/system/presentation/hooks/ui/use-table/components/table/pagination/index.js +68 -0
- package/dist/system/presentation/hooks/ui/use-table/components/table/pagination/index.js.map +1 -0
- package/dist/system/presentation/hooks/ui/use-table/components/table/pagination/service.d.ts +25 -0
- package/dist/system/presentation/hooks/ui/use-table/components/table/pagination/service.js +53 -0
- package/dist/system/presentation/hooks/ui/use-table/components/table/pagination/service.js.map +1 -0
- package/dist/system/presentation/hooks/ui/use-table/components/table/pagination/styles.d.ts +2 -0
- package/dist/system/presentation/hooks/ui/use-table/components/table/pagination/styles.js +14 -0
- package/dist/system/presentation/hooks/ui/use-table/components/table/pagination/styles.js.map +1 -0
- package/dist/system/presentation/hooks/ui/use-table/components/table/thead-item/index.js +1 -2
- package/dist/system/presentation/hooks/ui/use-table/components/table/thead-item/index.js.map +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/thead-item/interfaces.d.ts +2 -2
- package/dist/system/presentation/hooks/ui/use-table/index.d.ts +0 -2
- package/dist/system/presentation/hooks/ui/use-table/index.js +0 -2
- package/dist/system/presentation/hooks/ui/use-table/index.js.map +1 -1
- package/dist/system/presentation/hooks/ui/use-table/interfaces.d.ts +40 -39
- package/dist/system/presentation/hooks/ui/use-table/query.d.ts +3 -0
- package/dist/system/presentation/hooks/ui/use-table/query.js +68 -0
- package/dist/system/presentation/hooks/ui/use-table/query.js.map +1 -0
- package/dist/system/presentation/hooks/users/load-all-users.d.ts +1 -0
- package/dist/system/presentation/hooks/users/load-all-users.js +9 -0
- package/dist/system/presentation/hooks/users/load-all-users.js.map +1 -0
- 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/utils/index.d.ts +1 -0
- package/dist/system/presentation/utils/index.js +18 -0
- package/dist/system/presentation/utils/index.js.map +1 -0
- package/dist/system/presentation/utils/use-query/call-api-one-time.d.ts +5 -0
- package/dist/system/presentation/utils/use-query/call-api-one-time.js +9 -0
- package/dist/system/presentation/utils/use-query/call-api-one-time.js.map +1 -0
- package/dist/system/presentation/utils/use-query/index.d.ts +1 -0
- package/dist/system/presentation/utils/use-query/index.js +18 -0
- package/dist/system/presentation/utils/use-query/index.js.map +1 -0
- package/dist/ui/components/breadcrumb/index.js +22 -22
- package/dist/ui/components/breadcrumb/index.js.map +1 -1
- package/dist/ui/components/form/handler/dynamic_form_handler/index.d.ts +2 -0
- package/dist/ui/components/form/handler/dynamic_form_handler/index.js +62 -0
- package/dist/ui/components/form/handler/dynamic_form_handler/index.js.map +1 -0
- package/dist/ui/components/form/handler/dynamic_form_handler/interfaces.d.ts +21 -0
- package/dist/ui/components/form/handler/dynamic_form_handler/interfaces.js +3 -0
- package/dist/ui/components/form/handler/dynamic_form_handler/interfaces.js.map +1 -0
- package/dist/ui/components/form/handler/form-handler/index.js +5 -0
- package/dist/ui/components/form/handler/form-handler/index.js.map +1 -1
- package/dist/ui/components/form/handler/styles.js +1 -1
- package/dist/ui/components/form/handler/styles.js.map +1 -1
- package/dist/ui/components/form/interfaces.d.ts +1 -1
- package/dist/ui/components/index.d.ts +1 -0
- package/dist/ui/components/index.js +1 -0
- package/dist/ui/components/index.js.map +1 -1
- package/dist/ui/components/loading-screen/index.d.ts +3 -0
- package/dist/{system/pages/usuarios → ui/components/loading-screen}/index.js +11 -28
- package/dist/ui/components/loading-screen/index.js.map +1 -0
- package/dist/ui/components/loading-screen/interfaces.d.ts +4 -0
- package/dist/ui/components/loading-screen/interfaces.js +3 -0
- package/dist/ui/components/loading-screen/interfaces.js.map +1 -0
- package/dist/ui/components/loading-screen/styles.d.ts +4 -0
- package/dist/ui/components/loading-screen/styles.js +39 -0
- package/dist/ui/components/loading-screen/styles.js.map +1 -0
- package/dist/ui/icons/index.d.ts +1 -0
- package/dist/ui/icons/index.js +1 -0
- package/dist/ui/icons/index.js.map +1 -1
- package/dist/ui/icons/render/LongArrowRight.js +1 -1
- package/dist/ui/icons/render/LongArrowRight.js.map +1 -1
- package/dist/ui/icons/render/Map.js +1 -1
- package/dist/ui/icons/render/Map.js.map +1 -1
- package/dist/ui/icons/render/loading.d.ts +2 -0
- package/dist/ui/icons/render/loading.js +10 -0
- package/dist/ui/icons/render/loading.js.map +1 -0
- package/dist/ui/icons/render/phone-message.js +1 -1
- package/dist/ui/icons/render/phone-message.js.map +1 -1
- package/dist/ui/icons/render/user.js +1 -1
- package/dist/ui/icons/render/user.js.map +1 -1
- package/dist/ui/utils/libs/next/index.d.ts +1 -0
- package/dist/ui/utils/libs/next/index.js +1 -0
- package/dist/ui/utils/libs/next/index.js.map +1 -1
- package/dist/ui/utils/libs/next/update-route.d.ts +6 -0
- package/dist/ui/utils/libs/next/update-route.js +31 -0
- package/dist/ui/utils/libs/next/update-route.js.map +1 -0
- package/package.json +1 -1
- package/dist/system/pages/index.d.ts +0 -1
- package/dist/system/pages/index.js.map +0 -1
- package/dist/system/pages/usuarios/index.d.ts +0 -1
- package/dist/system/pages/usuarios/index.js.map +0 -1
- package/dist/system/pages/usuarios/styles.d.ts +0 -4
- package/dist/system/pages/usuarios/styles.js +0 -14
- package/dist/system/pages/usuarios/styles.js.map +0 -1
|
@@ -5,42 +5,6 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5
5
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
6
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
7
|
};
|
|
8
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
9
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
10
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
11
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
12
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
13
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
14
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
15
|
-
});
|
|
16
|
-
};
|
|
17
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
18
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
19
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
20
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
21
|
-
function step(op) {
|
|
22
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
23
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
24
|
-
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;
|
|
25
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
26
|
-
switch (op[0]) {
|
|
27
|
-
case 0: case 1: t = op; break;
|
|
28
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
29
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
30
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
31
|
-
default:
|
|
32
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
33
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
34
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
35
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
36
|
-
if (t[2]) _.ops.pop();
|
|
37
|
-
_.trys.pop(); continue;
|
|
38
|
-
}
|
|
39
|
-
op = body.call(thisArg, _);
|
|
40
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
41
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
8
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
45
9
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
46
10
|
};
|
|
@@ -52,22 +16,14 @@ var CookieStorageAdapter = /** @class */ (function () {
|
|
|
52
16
|
function CookieStorageAdapter() {
|
|
53
17
|
}
|
|
54
18
|
CookieStorageAdapter.prototype.set = function (key, value) {
|
|
55
|
-
|
|
56
|
-
return __generator(this, function (_a) {
|
|
57
|
-
js_cookie_1.default.set(key, value);
|
|
58
|
-
return [2 /*return*/];
|
|
59
|
-
});
|
|
60
|
-
});
|
|
19
|
+
js_cookie_1.default.set(key, JSON.stringify(value));
|
|
61
20
|
};
|
|
62
21
|
CookieStorageAdapter.prototype.get = function (key) {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
}
|
|
69
|
-
});
|
|
70
|
-
});
|
|
22
|
+
var cookieValue = js_cookie_1.default.get(key);
|
|
23
|
+
if (typeof cookieValue === 'string') {
|
|
24
|
+
return JSON.parse(cookieValue);
|
|
25
|
+
}
|
|
26
|
+
return null;
|
|
71
27
|
};
|
|
72
28
|
CookieStorageAdapter = __decorate([
|
|
73
29
|
(0, inversify_1.injectable)()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cookie-storage-adapter.js","sourceRoot":"","sources":["../../../../src/system/infra/cache/cookie-storage-adapter.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cookie-storage-adapter.js","sourceRoot":"","sources":["../../../../src/system/infra/cache/cookie-storage-adapter.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uCAAsC;AAEtC,wDAA+B;AAM/B;IAAA;IAaA,CAAC;IAZC,kCAAG,GAAH,UAAiC,GAAM,EAAE,KAAqB;QAC5D,mBAAO,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAA;IACzC,CAAC;IAED,kCAAG,GAAH,UAAiC,GAAsB;QACrD,IAAM,WAAW,GAAG,mBAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;QACpC,IAAI,OAAO,WAAW,KAAK,QAAQ,EAAE,CAAC;YACpC,OAAO,IAAI,CAAC,KAAK,CAAC,WAAW,CAAmB,CAAA;QAClD,CAAC;QAED,OAAO,IAAI,CAAA;IACb,CAAC;IAZU,oBAAoB;QADhC,IAAA,sBAAU,GAAE;OACA,oBAAoB,CAahC;IAAD,2BAAC;CAAA,AAbD,IAaC;AAbY,oDAAoB"}
|
|
@@ -60,6 +60,7 @@ exports.AxiosHttpClient = void 0;
|
|
|
60
60
|
var inversify_1 = require("inversify");
|
|
61
61
|
var axios_1 = __importDefault(require("axios"));
|
|
62
62
|
var domain_1 = require("../../../system/domain/index.js");
|
|
63
|
+
var conflict_error_1 = require("../../../system/domain/protocols/http/errors/http-errors/conflict-error.js");
|
|
63
64
|
var AxiosHttpClient = /** @class */ (function () {
|
|
64
65
|
function AxiosHttpClient() {
|
|
65
66
|
}
|
|
@@ -94,8 +95,12 @@ var AxiosHttpClient = /** @class */ (function () {
|
|
|
94
95
|
switch (status) {
|
|
95
96
|
case domain_1.HttpStatusCode.ok: return [2 /*return*/, data];
|
|
96
97
|
case domain_1.HttpStatusCode.unprocessableEntity: throw new domain_1.ValidationError(data.validationErrors);
|
|
98
|
+
case domain_1.HttpStatusCode.conflict: throw new conflict_error_1.ConflictError({ message: data.message, code: '409' });
|
|
97
99
|
case domain_1.HttpStatusCode.badRequest: throw new domain_1.BadRequestError({ message: data.message, code: '400' });
|
|
98
|
-
default:
|
|
100
|
+
default: {
|
|
101
|
+
axios_1.default.post("https://logdofernando/ApiDeLogDoFernando", data);
|
|
102
|
+
throw new domain_1.BadRequestError({ message: "Internal Server Error", code: '500' });
|
|
103
|
+
}
|
|
99
104
|
}
|
|
100
105
|
return [2 /*return*/];
|
|
101
106
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"axios-http-client.js","sourceRoot":"","sources":["../../../../src/system/infra/http/axios-http-client.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAsC;AAEtC,gDAAyB;AAEzB,0CAQwB;
|
|
1
|
+
{"version":3,"file":"axios-http-client.js","sourceRoot":"","sources":["../../../../src/system/infra/http/axios-http-client.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAsC;AAEtC,gDAAyB;AAEzB,0CAQwB;AACxB,mGAAgG;AAGhG;IAAA;IA4CA,CAAC;IA3CO,iCAAO,GAAb,UAAc,OAAoB;;;;;;wBAC1B,MAAM,GAAG,OAAO,CAAC,MAAM,CAAA;wBAEvB,OAAO,GAAG,OAAO,CAAC,IAAI;4BAC1B,CAAC,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,UAAC,EAAU;oCAAT,CAAC,QAAA,EAAE,KAAK,QAAA;gCAAM,OAAA,KAAK,KAAK,EAAE;4BAAZ,CAAY,CAAC,CAAC;4BACvF,CAAC,CAAC,SAAS,CAAA;wBAEP,cAAc,yBACf,OAAO,KACV,IAAI,EAAE,MAAM,KAAK,KAAK,IAAI,OAAO,EACjC,MAAM,EAAE,MAAM,KAAK,KAAK,IAAI,OAAO,GACpC,CAAA;wBAEwB,qBAAM,eAAK,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC,IAAI,CAAC,UAAA,CAAC,IAAI,OAAA,CAAC,EAAD,CAAC,CAAC,CAAC,KAAK,CAAC,UAAA,KAAK;gCACnF,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC;oCACpB,OAAO;wCACL,MAAM,EAAE,KAAK;wCACb,IAAI,EAAE,EAAE,OAAO,EAAE,8BAA8B,EAAE;qCAClD,CAAC;gCACJ,CAAC;gCAED,OAAO;oCACL,IAAI,EAAE,KAAK,CAAC,QAAQ,CAAC,IAAI;oCACzB,MAAM,EAAE,KAAK,CAAC,QAAQ,CAAC,MAAM;iCAC9B,CAAC;4BACJ,CAAC,CAAC,EAAA;;wBAZI,KAAmB,SAYvB,EAZM,MAAM,YAAA,EAAE,IAAI,UAAA;wBAcpB,QAAQ,MAAM,EAAE,CAAC;4BACf,KAAK,uBAAc,CAAC,EAAE,CAAC,CAAC,sBAAO,IAAI,EAAA;4BAEnC,KAAK,uBAAc,CAAC,mBAAmB,CAAC,CAAC,MAAM,IAAI,wBAAe,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAA;4BAEzF,KAAK,uBAAc,CAAC,QAAQ,CAAC,CAAC,MAAM,IAAI,8BAAa,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAA;4BAE7F,KAAK,uBAAc,CAAC,UAAU,CAAC,CAAC,MAAM,IAAI,wBAAe,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAA;4BAEjG,OAAO,CAAC,CAAC,CAAC;gCACR,eAAK,CAAC,IAAI,CAAC,0CAA0C,EAAE,IAAI,CAAC,CAAA;gCAE5D,MAAM,IAAI,wBAAe,CAAC,EAAE,OAAO,EAAE,uBAAuB,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAA;4BAC9E,CAAC;wBACH,CAAC;;;;;KACF;IA3CU,eAAe;QAD3B,IAAA,sBAAU,GAAE;OACA,eAAe,CA4C3B;IAAD,sBAAC;CAAA,AA5CD,IA4CC;AA5CY,0CAAe"}
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
1
|
+
export * from './data/index.js';
|
|
2
|
+
export * from './pages/index.js';
|
|
3
|
+
export * from './layout/index.js';
|
|
@@ -15,5 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./data/index.js"), exports);
|
|
18
|
+
__exportStar(require("./pages/index.js"), exports);
|
|
18
19
|
__exportStar(require("./layout/index.js"), exports);
|
|
19
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/system/presentation/components/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAsB;AACtB,2CAAwB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/system/presentation/components/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAsB;AACtB,0CAAuB;AACvB,2CAAwB"}
|
|
@@ -30,7 +30,7 @@ var components_1 = require("../components/index.js");
|
|
|
30
30
|
var S = __importStar(require("./styles.js"));
|
|
31
31
|
function HeaderVersion01() {
|
|
32
32
|
var isFixed = (0, ui_1.useScreen)().isFixed;
|
|
33
|
-
return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'HeaderCarbon', children: (0, jsx_runtime_1.jsx)(S.HeaderVersion01, { isSticky: isFixed, children: (0, jsx_runtime_1.jsxs)(ui_1.Container, { children: [(0, jsx_runtime_1.jsx)(components_1.SearchModal, {}), (0, jsx_runtime_1.jsx)(components_1.MenuRight, {})] }) }) }));
|
|
33
|
+
return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'HeaderCarbon', children: (0, jsx_runtime_1.jsx)(S.HeaderVersion01, { "$isSticky": isFixed, children: (0, jsx_runtime_1.jsxs)(ui_1.Container, { children: [(0, jsx_runtime_1.jsx)(components_1.SearchModal, {}), (0, jsx_runtime_1.jsx)(components_1.MenuRight, {})] }) }) }));
|
|
34
34
|
}
|
|
35
35
|
exports.HeaderVersion01 = HeaderVersion01;
|
|
36
36
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/system/presentation/components/layout/header/version-01/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2BAAkD;AAElD,4CAAsD;AAEtD,0CAA6B;AAE7B,SAAgB,eAAe;IACrB,IAAA,OAAO,GAAK,IAAA,cAAS,GAAE,QAAhB,CAAgB;IAE/B,OAAO,CACL,uBAAC,UAAK,IAAC,IAAI,EAAC,cAAc,YACxB,uBAAC,CAAC,CAAC,eAAe,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/system/presentation/components/layout/header/version-01/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2BAAkD;AAElD,4CAAsD;AAEtD,0CAA6B;AAE7B,SAAgB,eAAe;IACrB,IAAA,OAAO,GAAK,IAAA,cAAS,GAAE,QAAhB,CAAgB;IAE/B,OAAO,CACL,uBAAC,UAAK,IAAC,IAAI,EAAC,cAAc,YACxB,uBAAC,CAAC,CAAC,eAAe,iBAAY,OAAO,YACnC,wBAAC,cAAS,eACR,uBAAC,wBAAW,KAAG,EAEf,uBAAC,sBAAS,KAAG,IACH,GACM,GACd,CACT,CAAA;AACH,CAAC;AAdD,0CAcC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
interface IStyledHeaderProps {
|
|
3
|
-
isSticky: boolean;
|
|
3
|
+
$isSticky: boolean;
|
|
4
4
|
}
|
|
5
5
|
export declare const HeaderVersion01: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, IStyledHeaderProps>>;
|
|
6
6
|
export {};
|
|
@@ -30,8 +30,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
30
30
|
exports.HeaderVersion01 = void 0;
|
|
31
31
|
var styled_components_1 = __importStar(require("styled-components"));
|
|
32
32
|
exports.HeaderVersion01 = styled_components_1.default.header(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n width: 100%;\n position: sticky;\n top: 0;\n background: transparent;\n padding: 20px 0;\n backdrop-filter: blur(20px);\n transition: box-shadow 0.2s ease-in-out;\n\n .container {\n display: flex;\n align-items: center;\n justify-content: space-between;\n }\n\n ", "\n"], ["\n width: 100%;\n position: sticky;\n top: 0;\n background: transparent;\n padding: 20px 0;\n backdrop-filter: blur(20px);\n transition: box-shadow 0.2s ease-in-out;\n\n .container {\n display: flex;\n align-items: center;\n justify-content: space-between;\n }\n\n ", "\n"])), function (_a) {
|
|
33
|
-
var isSticky = _a
|
|
34
|
-
return isSticky && (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);\n background: rgba(249, 250, 251, 0.8);\n "], ["\n box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);\n background: rgba(249, 250, 251, 0.8);\n "])));
|
|
33
|
+
var $isSticky = _a.$isSticky;
|
|
34
|
+
return $isSticky && (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);\n background: rgba(249, 250, 251, 0.8);\n "], ["\n box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);\n background: rgba(249, 250, 251, 0.8);\n "])));
|
|
35
35
|
});
|
|
36
36
|
var templateObject_1, templateObject_2;
|
|
37
37
|
//# sourceMappingURL=styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../../../src/system/presentation/components/layout/header/version-01/styles.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qEAA+C;AAMlC,QAAA,eAAe,GAAG,2BAAM,CAAC,MAAM,uWAAoB,8RAe5D,EAKC,IACJ,KANG,UAAC,
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../../../src/system/presentation/components/layout/header/version-01/styles.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qEAA+C;AAMlC,QAAA,eAAe,GAAG,2BAAM,CAAC,MAAM,uWAAoB,8RAe5D,EAKC,IACJ,KANG,UAAC,EAAa;QAAX,SAAS,eAAA;IACZ,OAAA,SAAS,QACT,uBAAG,qNAAA,iJAGF,IAAA;AAJD,CAIC,EACJ"}
|
|
@@ -34,18 +34,23 @@ var ui_1 = require("../../../../../../../ui/index.js");
|
|
|
34
34
|
var system_1 = require("../../../../../../../system/index.js");
|
|
35
35
|
var S = __importStar(require("./styles.js"));
|
|
36
36
|
function MenuItem(_a) {
|
|
37
|
+
var _b;
|
|
37
38
|
var item = _a.item;
|
|
38
|
-
var
|
|
39
|
-
var hasMenuItems = item.
|
|
40
|
-
return ((0, jsx_runtime_1.jsxs)("li", { onMouseEnter: function () { return hasMenuItems && setIsSubMenuVisible(true); }, onMouseLeave: function () { return hasMenuItems && setIsSubMenuVisible(false); }, children: [item.
|
|
39
|
+
var _c = (0, react_1.useState)(false), isSubMenuVisible = _c[0], setIsSubMenuVisible = _c[1];
|
|
40
|
+
var hasMenuItems = (item === null || item === void 0 ? void 0 : item.items) && ((_b = item.items) === null || _b === void 0 ? void 0 : _b.length) > 0;
|
|
41
|
+
return ((0, jsx_runtime_1.jsxs)("li", { onMouseEnter: function () { return hasMenuItems && setIsSubMenuVisible(true); }, onMouseLeave: function () { return hasMenuItems && setIsSubMenuVisible(false); }, children: [item.route ? ((0, jsx_runtime_1.jsx)(link_1.default, { href: item.route, className: "item-title", children: (0, jsx_runtime_1.jsxs)("span", { children: [(0, jsx_runtime_1.jsx)("div", { className: 'icon', children: (0, jsx_runtime_1.jsx)(ui_1.Icon, { name: item.icon }) }), item.title] }) })) : ((0, jsx_runtime_1.jsx)("div", { className: "item-title", children: (0, jsx_runtime_1.jsxs)("span", { children: [(0, jsx_runtime_1.jsx)("div", { className: 'icon', children: (0, jsx_runtime_1.jsx)(ui_1.Icon, { name: item.icon }) }), item.title, hasMenuItems && ((0, jsx_runtime_1.jsx)("div", { className: 'arrow', children: (0, jsx_runtime_1.jsx)(ui_1.Icon, { name: 'IconKeyboardRightArrow' }) }))] }) })), hasMenuItems && isSubMenuVisible && (0, jsx_runtime_1.jsx)(SubMenu, { item: item === null || item === void 0 ? void 0 : item.items }, 'submenu' + item.title)] }));
|
|
41
42
|
}
|
|
42
43
|
function SubMenu(_a) {
|
|
43
44
|
var item = _a.item;
|
|
44
45
|
return ((0, jsx_runtime_1.jsx)(S.SubMenu, { className: 'submenu', children: item.map(function (subitem) { return ((0, jsx_runtime_1.jsx)(MenuItem, { item: subitem })); }) }));
|
|
45
46
|
}
|
|
46
47
|
function Menu() {
|
|
47
|
-
var
|
|
48
|
-
|
|
48
|
+
var data = (0, system_1.useLoadMenu)().data;
|
|
49
|
+
var newData = [{ title: "Menu", icon: "IconBox", items: data === null || data === void 0 ? void 0 : data.items }];
|
|
50
|
+
return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'Menu', children: (0, jsx_runtime_1.jsx)(S.Menu, { className: 'menu', children: newData === null || newData === void 0 ? void 0 : newData.map(function (item) {
|
|
51
|
+
var _a;
|
|
52
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("div", { className: 'title', children: (0, jsx_runtime_1.jsx)("h5", { className: 'font-12-regular uppercase', children: item.title }) }), (0, jsx_runtime_1.jsx)("ul", { children: (_a = item === null || item === void 0 ? void 0 : item.items) === null || _a === void 0 ? void 0 : _a.map(function (menu) { return ((0, jsx_runtime_1.jsx)(MenuItem, { item: menu })); }) })] }));
|
|
53
|
+
}) }) }));
|
|
49
54
|
}
|
|
50
55
|
exports.Menu = Menu;
|
|
51
56
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../src/system/presentation/components/layout/menu/components/menu/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAAgC;AAEhC,mDAA4B;AAE5B,2BAAkC;AAClC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../src/system/presentation/components/layout/menu/components/menu/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAAgC;AAEhC,mDAA4B;AAE5B,2BAAkC;AAClC,mCAA6C;AAE7C,0CAA6B;AAE7B,SAAS,QAAQ,CAAC,EAAyB;;QAAvB,IAAI,UAAA;IAChB,IAAA,KAA0C,IAAA,gBAAQ,EAAC,KAAK,CAAC,EAAxD,gBAAgB,QAAA,EAAE,mBAAmB,QAAmB,CAAA;IAC/D,IAAM,YAAY,GAAG,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,KAAK,KAAI,CAAA,MAAA,IAAI,CAAC,KAAK,0CAAE,MAAM,IAAG,CAAC,CAAA;IAE1D,OAAO,CACL,gCACE,YAAY,EAAE,cAAM,OAAA,YAAY,IAAI,mBAAmB,CAAC,IAAI,CAAC,EAAzC,CAAyC,EAC7D,YAAY,EAAE,cAAM,OAAA,YAAY,IAAI,mBAAmB,CAAC,KAAK,CAAC,EAA1C,CAA0C,aAE7D,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CACZ,uBAAC,cAAI,IAAC,IAAI,EAAE,IAAI,CAAC,KAAK,EAAE,SAAS,EAAE,YAAY,YAC7C,6CACE,gCAAK,SAAS,EAAC,MAAM,YAAE,uBAAC,SAAI,IAAC,IAAI,EAAE,IAAI,CAAC,IAAI,GAAI,GAAO,EAEtD,IAAI,CAAC,KAAK,IACN,GACF,CACR,CAAC,CAAC,CAAC,CACF,gCAAK,SAAS,EAAE,YAAY,YAC1B,6CACE,gCAAK,SAAS,EAAC,MAAM,YAAE,uBAAC,SAAI,IAAC,IAAI,EAAE,IAAI,CAAC,IAAI,GAAI,GAAO,EAEtD,IAAI,CAAC,KAAK,EAEV,YAAY,IAAI,CACf,gCAAK,SAAS,EAAC,OAAO,YACpB,uBAAC,SAAI,IAAC,IAAI,EAAC,wBAAwB,GAAG,GAClC,CACP,IACI,GACH,CACP,EAEA,YAAY,IAAI,gBAAgB,IAAI,uBAAC,OAAO,IAA8B,IAAI,EAAE,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,KAAK,IAAzC,SAAS,GAAG,IAAI,CAAC,KAAK,CAAuB,IAC7F,CACN,CAAA;AACH,CAAC;AAED,SAAS,OAAO,CAAC,EAA2B;QAAzB,IAAI,UAAA;IACrB,OAAO,CACL,uBAAC,CAAC,CAAC,OAAO,IAAC,SAAS,EAAC,SAAS,YAC3B,IAAI,CAAC,GAAG,CAAC,UAAC,OAAO,IAAK,OAAA,CACrB,uBAAC,QAAQ,IAAC,IAAI,EAAE,OAAO,GAAI,CAC5B,EAFsB,CAEtB,CAAC,GACQ,CACb,CAAA;AACH,CAAC;AAED,SAAgB,IAAI;IACV,IAAA,IAAI,GAAK,IAAA,oBAAW,GAAE,KAAlB,CAAkB;IAE9B,IAAM,OAAO,GAAG,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,KAAK,EAAE,CAAC,CAAA;IAExE,OAAO,CACL,uBAAC,UAAK,IAAC,IAAI,EAAC,MAAM,YAChB,uBAAC,CAAC,CAAC,IAAI,IAAC,SAAS,EAAC,MAAM,YACrB,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,GAAG,CAAC,UAAC,IAAI;;gBAAK,OAAA,CACtB,6DACE,gCAAK,SAAS,EAAC,OAAO,YACpB,+BAAI,SAAS,EAAC,2BAA2B,YAAE,IAAI,CAAC,KAAK,GAAM,GACvD,EAEN,yCACG,MAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,KAAK,0CAAE,GAAG,CAAC,UAAC,IAAI,IAAK,OAAA,CAC1B,uBAAC,QAAQ,IAAC,IAAI,EAAE,IAAI,GAAI,CACzB,EAF2B,CAE3B,CAAC,GACC,IACJ,CACJ,CAAA;aAAA,CAAC,GACK,GACH,CACT,CAAA;AACH,CAAC;AAxBD,oBAwBC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./users/index.js";
|
|
@@ -0,0 +1,18 @@
|
|
|
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./users/index.js"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/system/presentation/components/pages/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAuB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./page.js";
|
|
@@ -0,0 +1,18 @@
|
|
|
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./page.js"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/system/presentation/components/pages/users/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAsB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function UserPageComponent(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserPageComponent = void 0;
|
|
4
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
var system_1 = require("../../../../../system/index.js");
|
|
6
|
+
var table_1 = require("./table/index.js");
|
|
7
|
+
function UserPageComponent() {
|
|
8
|
+
var queryKey = 'RemoteUsers';
|
|
9
|
+
var user = (0, system_1.useAuthAdmin)().user;
|
|
10
|
+
var editTable = (0, table_1.useEditTable)(queryKey);
|
|
11
|
+
var executeDelete = (0, table_1.useDeleteTable)(queryKey).executeDelete;
|
|
12
|
+
var Table = (0, system_1.useTable)({
|
|
13
|
+
query: {
|
|
14
|
+
user: user,
|
|
15
|
+
Types: system_1.Types,
|
|
16
|
+
queryKey: queryKey,
|
|
17
|
+
container: system_1.container,
|
|
18
|
+
requireUser: true,
|
|
19
|
+
},
|
|
20
|
+
configs: {
|
|
21
|
+
errorMessage: 'Nenhum usuário encontrado.',
|
|
22
|
+
},
|
|
23
|
+
columnsConfiguration: {
|
|
24
|
+
columns: table_1.columns,
|
|
25
|
+
actions: {
|
|
26
|
+
edit: editTable,
|
|
27
|
+
detail: function (tableItem) { return '/usuarios/' + tableItem.id; },
|
|
28
|
+
delete: executeDelete,
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
}).Table;
|
|
32
|
+
return ((0, jsx_runtime_1.jsx)(system_1.PrivatePageAdmin, { children: (0, jsx_runtime_1.jsx)(system_1.Layout, { children: (0, jsx_runtime_1.jsx)(system_1.PageWrapper, { title: 'Usu\u00E1rios', children: Table }) }) }));
|
|
33
|
+
}
|
|
34
|
+
exports.UserPageComponent = UserPageComponent;
|
|
35
|
+
//# sourceMappingURL=page.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"page.js","sourceRoot":"","sources":["../../../../../../src/system/presentation/components/pages/users/page.tsx"],"names":[],"mappings":";;;;AAEA,mCASiB;AACjB,iCAA+D;AAE/D,SAAgB,iBAAiB;IAC/B,IAAM,QAAQ,GAAG,aAAa,CAAA;IAEtB,IAAA,IAAI,GAAK,IAAA,qBAAY,GAAE,KAAnB,CAAmB;IAC/B,IAAM,SAAS,GAAG,IAAA,oBAAY,EAAC,QAAQ,CAAC,CAAC;IACjC,IAAA,aAAa,GAAK,IAAA,sBAAc,EAAC,QAAQ,CAAC,cAA7B,CAA6B;IAE1C,IAAA,KAAK,GAAK,IAAA,iBAAQ,EAA2B;QACnD,KAAK,EAAE;YACL,IAAI,MAAA;YACJ,KAAK,gBAAA;YACL,QAAQ,UAAA;YACR,SAAS,oBAAA;YACT,WAAW,EAAE,IAAI;SAClB;QACD,OAAO,EAAE;YACP,YAAY,EAAE,4BAA4B;SAC3C;QACD,oBAAoB,EAAE;YACpB,OAAO,iBAAA;YACP,OAAO,EAAE;gBACP,IAAI,EAAE,SAAS;gBACf,MAAM,EAAE,UAAC,SAAS,IAAK,OAAA,YAAY,GAAG,SAAS,CAAC,EAAE,EAA3B,CAA2B;gBAClD,MAAM,EAAE,aAAa;aACtB;SACF;KACF,CAAC,MAnBW,CAmBX;IAEF,OAAO,CACL,uBAAC,yBAAgB,cACf,uBAAC,eAAM,cACL,uBAAC,oBAAW,IAAC,KAAK,EAAC,eAAU,YAAE,KAAK,GAAe,GAC5C,GACQ,CACpB,CAAA;AACH,CAAC;AAnCD,8CAmCC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.columns = void 0;
|
|
4
|
+
exports.columns = [
|
|
5
|
+
{ id: 'fullName', label: 'Nome', width: 150 },
|
|
6
|
+
{ id: 'emailAddress', label: 'Email', width: 230 },
|
|
7
|
+
{ id: 'roleGate', label: 'Roles', width: 230 },
|
|
8
|
+
];
|
|
9
|
+
//# sourceMappingURL=columns.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"columns.js","sourceRoot":"","sources":["../../../../../../../src/system/presentation/components/pages/users/table/columns.tsx"],"names":[],"mappings":";;;AAGa,QAAA,OAAO,GAAmB;IACrC,EAAE,EAAE,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE;IAC7C,EAAE,EAAE,EAAE,cAAc,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,GAAG,EAAE;IAClD,EAAE,EAAE,EAAE,UAAU,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,GAAG,EAAE;CAC/C,CAAA"}
|
|
@@ -0,0 +1,74 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.useDeleteTable = void 0;
|
|
40
|
+
var container_1 = require("../../../../../../system/container/index.js");
|
|
41
|
+
var ui_1 = require("../../../../../../ui/index.js");
|
|
42
|
+
var react_query_1 = require("@tanstack/react-query");
|
|
43
|
+
function useDeleteTable(queryKey) {
|
|
44
|
+
var createToast = (0, ui_1.useToast)().createToast;
|
|
45
|
+
var queryClient = (0, react_query_1.useQueryClient)();
|
|
46
|
+
function executeDelete(tableItem) {
|
|
47
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
48
|
+
var _a;
|
|
49
|
+
return __generator(this, function (_b) {
|
|
50
|
+
switch (_b.label) {
|
|
51
|
+
case 0:
|
|
52
|
+
_b.trys.push([0, 2, , 3]);
|
|
53
|
+
return [4 /*yield*/, container_1.container.get(container_1.Types.RemoteUsers).delete({ id: tableItem.id })];
|
|
54
|
+
case 1:
|
|
55
|
+
_b.sent();
|
|
56
|
+
createToast({ status: 'success', message: 'Usuário deletado com sucesso.' });
|
|
57
|
+
queryClient.invalidateQueries({ queryKey: [queryKey] });
|
|
58
|
+
return [3 /*break*/, 3];
|
|
59
|
+
case 2:
|
|
60
|
+
_a = _b.sent();
|
|
61
|
+
createToast({
|
|
62
|
+
status: 'error',
|
|
63
|
+
message: 'Aconteceu um erro ao tentar deletar, tente novamente mais tarde.',
|
|
64
|
+
});
|
|
65
|
+
return [3 /*break*/, 3];
|
|
66
|
+
case 3: return [2 /*return*/];
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
return { executeDelete: executeDelete };
|
|
72
|
+
}
|
|
73
|
+
exports.useDeleteTable = useDeleteTable;
|
|
74
|
+
//# sourceMappingURL=delete.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete.js","sourceRoot":"","sources":["../../../../../../../src/system/presentation/components/pages/users/table/delete.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAAqD;AAErD,2BAA+B;AAC/B,qDAAsD;AAEtD,SAAgB,cAAc,CAAC,QAAgB;IACrC,IAAA,WAAW,GAAK,IAAA,aAAQ,GAAE,YAAf,CAAe;IAClC,IAAM,WAAW,GAAG,IAAA,4BAAc,GAAE,CAAA;IAEpC,SAAe,aAAa,CAAC,SAAS;;;;;;;wBAElC,qBAAM,qBAAS,CAAC,GAAG,CAAc,iBAAK,CAAC,WAAW,CAAC,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,SAAS,CAAC,EAAE,EAAE,CAAC,EAAA;;wBAAhF,SAAgF,CAAA;wBAEhF,WAAW,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,+BAA+B,EAAE,CAAC,CAAA;wBAE5E,WAAW,CAAC,iBAAiB,CAAC,EAAE,QAAQ,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAA;;;;wBAEvD,WAAW,CAAC;4BACV,MAAM,EAAE,OAAO;4BACf,OAAO,EAAE,kEAAkE;yBAC5E,CAAC,CAAA;;;;;;KAEL;IAED,OAAO,EAAE,aAAa,eAAA,EAAE,CAAA;AAC1B,CAAC;AApBD,wCAoBC"}
|
|
@@ -0,0 +1,87 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.useEditTable = void 0;
|
|
40
|
+
var ui_1 = require("../../../../../../ui/index.js");
|
|
41
|
+
var system_1 = require("../../../../../../system/index.js");
|
|
42
|
+
var react_query_1 = require("@tanstack/react-query");
|
|
43
|
+
function useEditTable(queryKey) {
|
|
44
|
+
var _this = this;
|
|
45
|
+
var createToast = (0, ui_1.useToast)().createToast;
|
|
46
|
+
var queryClient = (0, react_query_1.useQueryClient)();
|
|
47
|
+
var editTable = {
|
|
48
|
+
title: 'Editar usuário',
|
|
49
|
+
button: { text: 'Editar' },
|
|
50
|
+
getDetails: {
|
|
51
|
+
key: function (tableItem) { return ['EditUser', tableItem.id]; },
|
|
52
|
+
fetcher: function (tableItem) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
53
|
+
switch (_a.label) {
|
|
54
|
+
case 0: return [4 /*yield*/, system_1.container.get(system_1.Types.RemoteUsers).getDetail({ id: tableItem.id })];
|
|
55
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
56
|
+
}
|
|
57
|
+
}); }); },
|
|
58
|
+
},
|
|
59
|
+
onSucess: function (data) { return __awaiter(_this, void 0, void 0, function () {
|
|
60
|
+
return __generator(this, function (_a) {
|
|
61
|
+
switch (_a.label) {
|
|
62
|
+
case 0: return [4 /*yield*/, system_1.container.get(system_1.Types.RemoteUsers).edit(data)];
|
|
63
|
+
case 1:
|
|
64
|
+
_a.sent();
|
|
65
|
+
return [4 /*yield*/, queryClient.invalidateQueries({ queryKey: [queryKey] })];
|
|
66
|
+
case 2:
|
|
67
|
+
_a.sent();
|
|
68
|
+
createToast({ message: 'Editado com sucesso!', status: 'success' });
|
|
69
|
+
return [2 /*return*/];
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
}); },
|
|
73
|
+
inputs: [
|
|
74
|
+
[{ name: 'emailAddress', inputComponent: 'Input', type: 'email', label: 'Email' }],
|
|
75
|
+
[
|
|
76
|
+
{ name: 'firstName', inputComponent: 'Input', type: 'text', label: 'Primeiro Nome' },
|
|
77
|
+
{ name: 'lastName', inputComponent: 'Input', type: 'text', label: 'Sobrenome' },
|
|
78
|
+
],
|
|
79
|
+
[
|
|
80
|
+
{ name: 'roleGate', inputComponent: 'Input', type: 'text', label: 'Role' },
|
|
81
|
+
],
|
|
82
|
+
],
|
|
83
|
+
};
|
|
84
|
+
return editTable;
|
|
85
|
+
}
|
|
86
|
+
exports.useEditTable = useEditTable;
|
|
87
|
+
//# sourceMappingURL=edit.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"edit.js","sourceRoot":"","sources":["../../../../../../../src/system/presentation/components/pages/users/table/edit.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2BAA+B;AAC/B,mCAA8D;AAE9D,qDAAsD;AAEtD,SAAgB,YAAY,CAAC,QAAgB;IAA7C,iBAgCC;IA/BS,IAAA,WAAW,GAAK,IAAA,aAAQ,GAAE,YAAf,CAAe;IAElC,IAAM,WAAW,GAAG,IAAA,4BAAc,GAAE,CAAA;IAEpC,IAAM,SAAS,GAAkC;QAC/C,KAAK,EAAE,gBAAgB;QACvB,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QAC1B,UAAU,EAAE;YACV,GAAG,EAAE,UAAC,SAAS,IAAK,OAAA,CAAC,UAAU,EAAE,SAAS,CAAC,EAAE,CAAC,EAA1B,CAA0B;YAC9C,OAAO,EAAE,UAAO,SAAS;;4BAAK,qBAAM,kBAAS,CAAC,GAAG,CAAc,cAAK,CAAC,WAAW,CAAC,CAAC,SAAS,CAAC,EAAE,EAAE,EAAE,SAAS,CAAC,EAAE,EAAE,CAAC,EAAA;4BAAnF,sBAAA,SAAmF,EAAA;;qBAAA;SAClH;QACD,QAAQ,EAAE,UAAO,IAAI;;;4BACnB,qBAAM,kBAAS,CAAC,GAAG,CAAc,cAAK,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAA;;wBAA9D,SAA8D,CAAA;wBAE9D,qBAAM,WAAW,CAAC,iBAAiB,CAAC,EAAE,QAAQ,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,EAAA;;wBAA7D,SAA6D,CAAA;wBAE7D,WAAW,CAAC,EAAE,OAAO,EAAE,sBAAsB,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAA;;;;aACpE;QACD,MAAM,EAAE;YACN,CAAC,EAAE,IAAI,EAAE,cAAc,EAAE,cAAc,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC;YAClF;gBACE,EAAE,IAAI,EAAE,WAAW,EAAE,cAAc,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,eAAe,EAAE;gBACpF,EAAE,IAAI,EAAE,UAAU,EAAE,cAAc,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,WAAW,EAAE;aAChF;YACD;gBACE,EAAE,IAAI,EAAE,UAAU,EAAE,cAAc,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;aAC3E;SACF;KACF,CAAA;IAED,OAAO,SAAS,CAAA;AAClB,CAAC;AAhCD,oCAgCC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./edit.js"), exports);
|
|
18
|
+
__exportStar(require("./delete.js"), exports);
|
|
19
|
+
__exportStar(require("./columns.js"), exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/system/presentation/components/pages/users/table/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAsB;AACtB,2CAAwB;AACxB,4CAAyB"}
|
|
@@ -14,7 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./menu.js"), exports);
|
|
18
17
|
__exportStar(require("./routes.js"), exports);
|
|
19
18
|
__exportStar(require("./page-links.js"), exports);
|
|
20
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/system/presentation/configs/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/system/presentation/configs/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAwB;AACxB,+CAA4B"}
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
3
|
-
interface IAuthContextType {
|
|
4
|
-
signOut(): void;
|
|
5
|
-
user: User | null;
|
|
6
|
-
signIn(params: AuthAdmin.Params): void;
|
|
7
|
-
}
|
|
2
|
+
import { IAuthContextType } from './interfaces.js';
|
|
8
3
|
declare function AuthAdminProvider({ children }: {
|
|
9
4
|
children: React.ReactNode;
|
|
10
5
|
}): import("react/jsx-runtime").JSX.Element;
|