infinity-forge 2.3.8 → 2.4.0
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/sites/components/default-pages/blog/components/blog-item/share/index.js +2 -2
- package/dist/sites/components/default-pages/blog/components/featured-blog/featured-blog-item/index.d.ts +1 -1
- package/dist/sites/components/default-pages/blog/components/featured-blog/featured-blog-item/index.js +2 -2
- package/dist/system/presentation/components/data/menu/components/menu-item/index.js +3 -3
- package/dist/system/presentation/components/data/menu/modes/collapsed-menu/index.js +5 -5
- package/dist/system/presentation/components/data/menu/modes/collapsed-menu/styles.js +1 -1
- package/dist/system/presentation/components/data/menu/modes/opened/index.js +3 -3
- package/dist/system/presentation/components/data/menu/modes/opened/styles.js +1 -1
- package/dist/system/presentation/components/data/tab/tab-item/index.d.ts +0 -5
- package/dist/system/presentation/components/data/tab/tab-item/index.js +0 -46
- package/dist/system/presentation/components/data/tab/tab-item/styles.d.ts +0 -8
- package/dist/system/presentation/components/layout/header/components/index.d.ts +0 -2
- package/dist/system/presentation/components/layout/header/components/index.js +0 -19
- package/dist/system/presentation/components/layout/header/components/menu-right/index.d.ts +1 -1
- package/dist/system/presentation/components/layout/header/components/menu-right/index.js +4 -4
- package/dist/system/presentation/components/layout/header/components/menu-right/messages/content/card/index.d.ts +1 -1
- package/dist/system/presentation/components/layout/header/components/menu-right/messages/content/card/index.js +5 -4
- package/dist/system/presentation/components/layout/header/components/menu-right/messages/content/index.js +4 -4
- package/dist/system/presentation/components/layout/header/components/menu-right/messages/content/interfaces.d.ts +1 -1
- package/dist/system/presentation/components/layout/header/components/menu-right/messages/index.js +5 -5
- package/dist/system/presentation/components/layout/header/components/menu-right/profile/content/index.js +5 -4
- package/dist/system/presentation/components/layout/header/components/menu-right/profile/index.js +6 -5
- package/dist/system/presentation/components/layout/header/components/menu-right/settings/index.js +4 -4
- package/dist/system/presentation/components/layout/header/components/search-modal/index.js +4 -4
- package/dist/system/presentation/components/layout/header/components/search-modal/search-list/index.js +5 -4
- package/dist/system/presentation/components/layout/header/components/search-modal/trigger/index.js +3 -3
- package/dist/system/presentation/components/layout/header/version-01/index.d.ts +0 -2
- package/dist/system/presentation/components/layout/header/version-01/index.js +0 -45
- package/dist/system/presentation/components/pages/menus/table/columns.d.ts +0 -3
- package/dist/system/presentation/components/pages/menus/table/columns.js +0 -21
- package/dist/system/presentation/components/pages/menus/table/create.d.ts +0 -3
- package/dist/system/presentation/components/pages/menus/table/create.js +0 -72
- package/dist/system/presentation/components/pages/menus/table/delete.js +0 -71
- package/dist/system/presentation/components/pages/menus/table/edit.d.ts +0 -3
- package/dist/system/presentation/components/pages/menus/table/edit.js +0 -78
- package/dist/system/presentation/components/pages/menus/table/icon/index.js +1 -1
- package/dist/system/presentation/components/pages/menus/table/index.d.ts +0 -4
- package/dist/system/presentation/components/pages/menus/table/index.js +0 -21
- package/dist/system/presentation/components/pages/users/table/columns.d.ts +0 -3
- package/dist/system/presentation/components/pages/users/table/create.d.ts +0 -3
- package/dist/system/presentation/components/pages/users/table/create.js +0 -75
- package/dist/system/presentation/components/pages/users/table/delete.js +0 -74
- package/dist/system/presentation/components/pages/users/table/edit.d.ts +0 -3
- package/dist/system/presentation/components/pages/users/table/edit.js +0 -83
- package/dist/system/presentation/components/pages/users/table/index.d.ts +0 -4
- package/dist/system/presentation/components/pages/users/table/index.js +0 -21
- package/dist/system/presentation/context/auth/components/login/form-login/index.js +2 -2
- package/dist/system/presentation/context/auth/components/login/index.js +0 -38
- package/dist/system/presentation/context/auth/components/private-page/index.d.ts +0 -2
- package/dist/system/presentation/context/auth/components/private-page/index.js +0 -141
- package/dist/system/presentation/hooks/ui/use-table/components/index.d.ts +0 -1
- package/dist/system/presentation/hooks/ui/use-table/components/index.js +0 -18
- package/dist/system/presentation/hooks/ui/use-table/components/table/actions/index.d.ts +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/actions/index.js +3 -3
- package/dist/system/presentation/hooks/ui/use-table/components/table/active-filters/index.d.ts +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/active-filters/index.js +3 -3
- package/dist/system/presentation/hooks/ui/use-table/components/table/create/index.d.ts +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/create/index.js +3 -3
- package/dist/system/presentation/hooks/ui/use-table/components/table/export/index.d.ts +2 -2
- package/dist/system/presentation/hooks/ui/use-table/components/table/export/index.js +3 -3
- package/dist/system/presentation/hooks/ui/use-table/components/table/filters/index.d.ts +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/filters/index.js +5 -4
- 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 +10 -10
- package/dist/system/presentation/hooks/ui/use-table/components/table/interfaces.d.ts +2 -2
- package/dist/system/presentation/hooks/ui/use-table/components/table/pagination/index.d.ts +2 -2
- package/dist/system/presentation/hooks/ui/use-table/components/table/pagination/index.js +4 -4
- package/dist/system/presentation/hooks/ui/use-table/components/table/skeleton-table/index.js +3 -3
- package/dist/system/presentation/hooks/ui/use-table/components/table/thead-item/index.d.ts +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/thead-item/index.js +3 -3
- package/dist/system/presentation/hooks/ui/use-table/components/table/thead-item/interfaces.d.ts +1 -1
- package/dist/system/presentation/hooks/ui/use-table/query/get-query-arguments-table.d.ts +0 -2
- package/dist/system/presentation/hooks/ui/use-table/query/hook.d.ts +0 -5
- package/dist/system/presentation/hooks/ui/use-table/query/hook.js +0 -52
- package/dist/system/presentation/hooks/ui/use-table/query/index.d.ts +0 -2
- package/dist/system/presentation/hooks/ui/use-table/query/index.js +0 -19
- package/dist/ui/components/carousel/carousel-lib/core/breakpoints/getBreakpoint.js +0 -35
- package/dist/ui/components/carousel/carousel-lib/core/breakpoints/index.d.ts +0 -7
- package/dist/ui/components/carousel/carousel-lib/core/breakpoints/index.js +0 -9
- package/dist/ui/components/carousel/carousel-lib/core/breakpoints/setBreakpoint.js +0 -94
- package/dist/ui/components/carousel/carousel-lib/core/classes/index.d.ts +0 -7
- package/dist/ui/components/carousel/carousel-lib/core/classes/index.js +0 -9
- package/dist/ui/components/carousel/carousel-lib/core/events/index.js +0 -77
- package/dist/ui/components/carousel/carousel-lib/core/events/onLoad.js +0 -14
- package/dist/ui/components/carousel/carousel-lib/core/events/onTouchEnd.js +0 -194
- package/dist/ui/components/carousel/carousel-lib/core/events/onTouchMove.js +0 -314
- package/dist/ui/components/carousel/carousel-lib/core/events/onTouchStart.js +0 -154
- package/dist/ui/components/carousel/carousel-lib/core/grab-cursor/index.d.ts +0 -7
- package/dist/ui/components/carousel/carousel-lib/core/grab-cursor/index.js +0 -12
- package/dist/ui/components/carousel/carousel-lib/core/loop/index.d.ts +0 -9
- package/dist/ui/components/carousel/carousel-lib/core/loop/index.js +0 -14
- package/dist/ui/components/carousel/carousel-lib/core/loop/loopCreate.js +0 -57
- package/dist/ui/components/carousel/carousel-lib/core/loop/loopFix.js +0 -230
- package/dist/ui/components/carousel/carousel-lib/core/modules/observer/observer.js +2 -2
- package/dist/ui/components/carousel/carousel-lib/core/modules/resize/resize.js +1 -1
- package/dist/ui/components/carousel/carousel-lib/core/slide/index.d.ts +0 -17
- package/dist/ui/components/carousel/carousel-lib/core/slide/index.js +0 -22
- package/dist/ui/components/carousel/carousel-lib/core/slide/slideTo.js +0 -160
- package/dist/ui/components/carousel/carousel-lib/core/slide/slideToClickedSlide.js +0 -46
- package/dist/ui/components/carousel/carousel-lib/core/transition/index.d.ts +0 -9
- package/dist/ui/components/carousel/carousel-lib/core/transition/index.js +0 -14
- package/dist/ui/components/carousel/carousel-lib/core/transition/transitionEnd.js +0 -18
- package/dist/ui/components/carousel/carousel-lib/core/transition/transitionStart.js +0 -19
- package/dist/ui/components/carousel/carousel-lib/core/translate/getTranslate.js +0 -21
- package/dist/ui/components/carousel/carousel-lib/core/translate/index.d.ts +0 -13
- package/dist/ui/components/carousel/carousel-lib/core/translate/index.js +0 -18
- package/dist/ui/components/carousel/carousel-lib/core/translate/translateTo.js +0 -81
- package/dist/ui/components/carousel/carousel-lib/core/update/index.d.ts +0 -21
- package/dist/ui/components/carousel/carousel-lib/core/update/index.js +0 -26
- package/dist/ui/components/carousel/carousel-lib/core/update/updateActiveIndex.js +0 -125
- package/dist/ui/components/carousel/carousel-lib/core/update/updateSize.js +0 -45
- package/dist/ui/components/carousel/carousel-lib/core/update/updateSlides.js +0 -306
- package/dist/ui/components/carousel/carousel-lib/core/update/updateSlidesClasses.js +0 -69
- package/dist/ui/components/form/handler/i18n/capture-i18n-errors/index.d.ts +1 -1
- package/dist/ui/components/form/input-cep/use-cep/providers/ibge/hook.d.ts +1 -1
- package/dist/ui/components/form/input-cep/use-cep/providers/ibge/hook.js +1 -1
- package/dist/ui/components/form/input-cep/use-cep/providers/ibge/index.d.ts +3 -3
- package/dist/ui/components/form/input-cep/use-cep/providers/ibge/index.js +3 -3
- package/dist/ui/components/form/input-cep/use-cep/providers/index.d.ts +1 -1
- package/dist/ui/components/form/input-cep/use-cep/providers/index.js +1 -1
- package/dist/ui/components/form/input-currency/components/utils/cleanValue.d.ts +1 -1
- package/dist/ui/components/form/input-currency/components/utils/cleanValue.js +4 -4
- package/dist/ui/components/form/input-currency/components/utils/formatValue.d.ts +1 -1
- package/dist/ui/components/form/input-currency/components/utils/formatValue.js +2 -2
- package/dist/ui/components/form/input-currency/components/utils/getLocaleConfig.d.ts +1 -1
- package/dist/ui/components/form/input-currency/components/utils/getSuffix.js +1 -1
- package/dist/ui/components/form/input-currency/components/utils/index.d.ts +8 -8
- package/dist/ui/components/form/input-currency/components/utils/index.js +8 -8
- package/dist/ui/components/form/input-currency/components/utils/parseAbbrValue.js +1 -1
- package/dist/ui/components/form/input-currency/components/utils/removeInvalidChars.js +1 -1
- package/dist/ui/components/form/input-currency/components/utils/removeSeparators.js +1 -1
- package/dist/ui/components/form/input-date-picker/calendar/calendar-header/index.d.ts +1 -1
- package/dist/ui/components/form/input-date-picker/calendar/calendar-header/index.js +3 -3
- package/dist/ui/components/form/input-date-picker/calendar/days/index.d.ts +1 -1
- package/dist/ui/components/form/input-date-picker/calendar/days/index.js +2 -2
- package/dist/ui/components/form/input-date-picker/calendar/months/index.d.ts +1 -1
- package/dist/ui/components/form/input-date-picker/calendar/months/index.js +2 -2
- package/dist/ui/components/form/input-file/render-files/file-item/button-upload-image-mobile/index.d.ts +1 -1
- package/dist/ui/components/form/input-file/render-files/file-item/button-upload-image-mobile/index.js +1 -1
- package/dist/ui/components/form/input-file/render-files/file-item/index.d.ts +2 -2
- package/dist/ui/components/form/input-file/render-files/file-item/index.js +3 -3
- package/dist/ui/components/form/input-mask/lib/core/errors/SyntheticChangeError.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/core/hooks/useInput.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/core/hooks/useInput.js +2 -2
- package/dist/ui/components/form/input-mask/lib/core/index.d.ts +5 -5
- package/dist/ui/components/form/input-mask/lib/core/index.js +4 -4
- package/dist/ui/components/form/input-mask/lib/core/utils/setInputAttributes.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/mask/InputMask.d.ts +2 -2
- package/dist/ui/components/form/input-mask/lib/mask/InputMask.js +2 -2
- package/dist/ui/components/form/input-mask/lib/mask/index.d.ts +5 -5
- package/dist/ui/components/form/input-mask/lib/mask/index.js +3 -3
- package/dist/ui/components/form/input-mask/lib/mask/types.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/mask/useMask.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/mask/useMask.js +7 -7
- package/dist/ui/components/form/input-mask/lib/mask/utils/filter.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/mask/utils/format.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/mask/utils/formatToParts.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/mask/utils/formatToReplacementObject.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/mask/utils/resolveDetail.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/mask/utils/resolveDetail.js +3 -3
- package/dist/ui/components/form/input-mask/lib/mask/utils/resolveSelection.d.ts +2 -2
- package/dist/ui/components/form/input-mask/lib/mask/utils/unformat.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/mask/utils/validate.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/mask/utils.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/mask/utils.js +5 -5
- package/dist/ui/components/form/input-mask/lib/number-format/InputNumberFormat.d.ts +2 -2
- package/dist/ui/components/form/input-mask/lib/number-format/InputNumberFormat.js +2 -2
- package/dist/ui/components/form/input-mask/lib/number-format/index.d.ts +4 -4
- package/dist/ui/components/form/input-mask/lib/number-format/index.js +2 -2
- package/dist/ui/components/form/input-mask/lib/number-format/types.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/number-format/useNumberFormat.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/number-format/useNumberFormat.js +6 -6
- package/dist/ui/components/form/input-mask/lib/number-format/utils/localizeValues.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/number-format/utils/resolveDetail.d.ts +2 -2
- package/dist/ui/components/form/input-mask/lib/number-format/utils/resolveDetail.js +1 -1
- package/dist/ui/components/form/input-mask/lib/number-format/utils/resolveMinimumFractionDigits.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/number-format/utils/resolveOptions.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/number-format/utils/resolveSelection.d.ts +2 -2
- package/package.json +75 -75
|
@@ -1,71 +0,0 @@
|
|
|
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
|
-
function useDeleteTable(queryKey) {
|
|
43
|
-
var createToast = (0, ui_1.useToast)().createToast;
|
|
44
|
-
function executeDelete(tableItem) {
|
|
45
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
46
|
-
var _a;
|
|
47
|
-
return __generator(this, function (_b) {
|
|
48
|
-
switch (_b.label) {
|
|
49
|
-
case 0:
|
|
50
|
-
_b.trys.push([0, 2, , 3]);
|
|
51
|
-
return [4 /*yield*/, container_1.container.get(container_1.Types.RemoteMenu).delete({ id: tableItem.id })];
|
|
52
|
-
case 1:
|
|
53
|
-
_b.sent();
|
|
54
|
-
createToast({ status: 'success', message: 'Menu deletado com sucesso.' });
|
|
55
|
-
return [3 /*break*/, 3];
|
|
56
|
-
case 2:
|
|
57
|
-
_a = _b.sent();
|
|
58
|
-
createToast({
|
|
59
|
-
status: 'error',
|
|
60
|
-
message: 'Aconteceu um erro ao tentar deletar, tente novamente mais tarde.',
|
|
61
|
-
});
|
|
62
|
-
return [3 /*break*/, 3];
|
|
63
|
-
case 3: return [2 /*return*/];
|
|
64
|
-
}
|
|
65
|
-
});
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
return { executeDelete: executeDelete };
|
|
69
|
-
}
|
|
70
|
-
exports.useDeleteTable = useDeleteTable;
|
|
71
|
-
//# sourceMappingURL=delete.js.map
|
|
@@ -1,78 +0,0 @@
|
|
|
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
|
-
function useEditTable(queryKey) {
|
|
43
|
-
var _this = this;
|
|
44
|
-
var createToast = (0, ui_1.useToast)().createToast;
|
|
45
|
-
var editTable = {
|
|
46
|
-
title: 'Editar Menu',
|
|
47
|
-
button: { text: 'Editar' },
|
|
48
|
-
getDetails: {
|
|
49
|
-
key: function (tableItem) { return 'EditMenu' + tableItem.id; },
|
|
50
|
-
fetcher: function (tableItem) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
51
|
-
switch (_a.label) {
|
|
52
|
-
case 0: return [4 /*yield*/, system_1.container.get(system_1.Types.RemoteMenu).getDetail({ id: tableItem.id })];
|
|
53
|
-
case 1: return [2 /*return*/, _a.sent()];
|
|
54
|
-
}
|
|
55
|
-
}); }); },
|
|
56
|
-
},
|
|
57
|
-
onSucess: function (data) { return __awaiter(_this, void 0, void 0, function () {
|
|
58
|
-
return __generator(this, function (_a) {
|
|
59
|
-
switch (_a.label) {
|
|
60
|
-
case 0: return [4 /*yield*/, system_1.container.get(system_1.Types.RemoteMenu).edit(data)];
|
|
61
|
-
case 1:
|
|
62
|
-
_a.sent();
|
|
63
|
-
createToast({ message: 'Editado com sucesso!', status: 'success' });
|
|
64
|
-
return [2 /*return*/];
|
|
65
|
-
}
|
|
66
|
-
});
|
|
67
|
-
}); },
|
|
68
|
-
inputs: [
|
|
69
|
-
[{ InputComponent: 'Input', type: 'text', label: 'Icone', name: 'icon' }],
|
|
70
|
-
[{ name: 'items', InputComponent: 'Select', isMultiple: true, label: 'Primeiro Nome', options: [] }],
|
|
71
|
-
[{ name: 'route', InputComponent: 'Input', type: 'text', label: 'Url' }],
|
|
72
|
-
[{ name: 'title', InputComponent: 'Input', type: 'text', label: 'Titulo' }],
|
|
73
|
-
],
|
|
74
|
-
};
|
|
75
|
-
return editTable;
|
|
76
|
-
}
|
|
77
|
-
exports.useEditTable = useEditTable;
|
|
78
|
-
//# sourceMappingURL=edit.js.map
|
|
@@ -25,7 +25,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.IconMenu = void 0;
|
|
27
27
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
28
|
-
var S = __importStar(require("./style
|
|
28
|
+
var S = __importStar(require("./style"));
|
|
29
29
|
function IconMenu(_a) {
|
|
30
30
|
var icon = _a.icon;
|
|
31
31
|
return (0, jsx_runtime_1.jsx)(S.IconMenu, { dangerouslySetInnerHTML: { __html: icon || "" } });
|
|
@@ -1,21 +0,0 @@
|
|
|
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("./create.js"), exports);
|
|
19
|
-
__exportStar(require("./delete.js"), exports);
|
|
20
|
-
__exportStar(require("./columns.js"), exports);
|
|
21
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,75 +0,0 @@
|
|
|
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.useCreateTable = void 0;
|
|
40
|
-
var ui_1 = require("../../../../../../ui/index.js");
|
|
41
|
-
var system_1 = require("../../../../../../system/index.js");
|
|
42
|
-
function useCreateTable(queryKey) {
|
|
43
|
-
var _this = this;
|
|
44
|
-
var createToast = (0, ui_1.useToast)().createToast;
|
|
45
|
-
var cache = (0, ui_1.useQueryClient)(function (state) { return state.cache; });
|
|
46
|
-
var createTable = {
|
|
47
|
-
title: 'Criar usuário',
|
|
48
|
-
button: { text: 'Criar' },
|
|
49
|
-
initialData: { isExternal: false },
|
|
50
|
-
onSucess: function (data) { return __awaiter(_this, void 0, void 0, function () {
|
|
51
|
-
var _a;
|
|
52
|
-
return __generator(this, function (_b) {
|
|
53
|
-
switch (_b.label) {
|
|
54
|
-
case 0: return [4 /*yield*/, system_1.container.get(system_1.Types.RemoteUsers).create(data)];
|
|
55
|
-
case 1:
|
|
56
|
-
_b.sent();
|
|
57
|
-
(_a = cache[queryKey]) === null || _a === void 0 ? void 0 : _a.mutate();
|
|
58
|
-
createToast({ message: 'Criado com sucesso!', status: 'success' });
|
|
59
|
-
return [2 /*return*/];
|
|
60
|
-
}
|
|
61
|
-
});
|
|
62
|
-
}); },
|
|
63
|
-
inputs: [
|
|
64
|
-
[{ name: 'emailAddress', InputComponent: 'Input', type: 'email', label: 'Email' }],
|
|
65
|
-
[
|
|
66
|
-
{ name: 'firstName', InputComponent: 'Input', type: 'text', label: 'Primeiro Nome' },
|
|
67
|
-
{ name: 'lastName', InputComponent: 'Input', type: 'text', label: 'Sobrenome' },
|
|
68
|
-
],
|
|
69
|
-
[{ name: 'password', InputComponent: 'InputPassword', type: 'password', label: 'Senha' }],
|
|
70
|
-
],
|
|
71
|
-
};
|
|
72
|
-
return createTable;
|
|
73
|
-
}
|
|
74
|
-
exports.useCreateTable = useCreateTable;
|
|
75
|
-
//# sourceMappingURL=create.js.map
|
|
@@ -1,74 +0,0 @@
|
|
|
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 ui_1 = require("../../../../../../ui/index.js");
|
|
41
|
-
var system_1 = require("../../../../../../system/index.js");
|
|
42
|
-
function useDeleteTable(queryKey) {
|
|
43
|
-
var createToast = (0, ui_1.useToast)().createToast;
|
|
44
|
-
var cache = (0, ui_1.useQueryClient)(function (state) { return state.cache; });
|
|
45
|
-
function executeDelete(tableItem) {
|
|
46
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
47
|
-
var _a;
|
|
48
|
-
var _b;
|
|
49
|
-
return __generator(this, function (_c) {
|
|
50
|
-
switch (_c.label) {
|
|
51
|
-
case 0:
|
|
52
|
-
_c.trys.push([0, 2, , 3]);
|
|
53
|
-
return [4 /*yield*/, system_1.container.get(system_1.Types.RemoteUsers).delete({ id: tableItem.id })];
|
|
54
|
-
case 1:
|
|
55
|
-
_c.sent();
|
|
56
|
-
createToast({ status: 'success', message: 'Usuário deletado com sucesso.' });
|
|
57
|
-
(_b = cache[queryKey]) === null || _b === void 0 ? void 0 : _b.mutate();
|
|
58
|
-
return [3 /*break*/, 3];
|
|
59
|
-
case 2:
|
|
60
|
-
_a = _c.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
|
|
@@ -1,83 +0,0 @@
|
|
|
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
|
-
function useEditTable(queryKey) {
|
|
43
|
-
var _this = this;
|
|
44
|
-
var createToast = (0, ui_1.useToast)().createToast;
|
|
45
|
-
var cache = (0, ui_1.useQueryClient)(function (state) { return state.cache; });
|
|
46
|
-
var editTable = {
|
|
47
|
-
title: 'Editar usuário',
|
|
48
|
-
button: { text: 'Editar' },
|
|
49
|
-
getDetails: {
|
|
50
|
-
key: function (tableItem) { return 'EditUser' + tableItem.id; },
|
|
51
|
-
fetcher: function (tableItem) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
52
|
-
switch (_a.label) {
|
|
53
|
-
case 0: return [4 /*yield*/, system_1.container.get(system_1.Types.RemoteUsers).getDetail({ id: tableItem.id })];
|
|
54
|
-
case 1: return [2 /*return*/, _a.sent()];
|
|
55
|
-
}
|
|
56
|
-
}); }); },
|
|
57
|
-
},
|
|
58
|
-
onSucess: function (data, _) { return __awaiter(_this, void 0, void 0, function () {
|
|
59
|
-
var _a;
|
|
60
|
-
return __generator(this, function (_b) {
|
|
61
|
-
switch (_b.label) {
|
|
62
|
-
case 0: return [4 /*yield*/, system_1.container.get(system_1.Types.RemoteUsers).edit(data)];
|
|
63
|
-
case 1:
|
|
64
|
-
_b.sent();
|
|
65
|
-
(_a = cache[queryKey]) === null || _a === void 0 ? void 0 : _a.mutate();
|
|
66
|
-
createToast({ message: 'Editado com sucesso!', status: 'success' });
|
|
67
|
-
return [2 /*return*/];
|
|
68
|
-
}
|
|
69
|
-
});
|
|
70
|
-
}); },
|
|
71
|
-
inputs: [
|
|
72
|
-
[{ name: 'emailAddress', InputComponent: 'Input', type: 'email', label: 'Email' }],
|
|
73
|
-
[
|
|
74
|
-
{ name: 'firstName', InputComponent: 'Input', type: 'text', label: 'Primeiro Nome' },
|
|
75
|
-
{ name: 'lastName', InputComponent: 'Input', type: 'text', label: 'Sobrenome' },
|
|
76
|
-
],
|
|
77
|
-
[{ name: 'roleGate', InputComponent: 'Input', type: 'text', label: 'Role' }],
|
|
78
|
-
],
|
|
79
|
-
};
|
|
80
|
-
return editTable;
|
|
81
|
-
}
|
|
82
|
-
exports.useEditTable = useEditTable;
|
|
83
|
-
//# sourceMappingURL=edit.js.map
|
|
@@ -1,21 +0,0 @@
|
|
|
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("./create.js"), exports);
|
|
19
|
-
__exportStar(require("./delete.js"), exports);
|
|
20
|
-
__exportStar(require("./columns.js"), exports);
|
|
21
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.FormLogin = void 0;
|
|
4
4
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
var ui_1 = require("../../../../../../../ui
|
|
6
|
-
var context_1 = require("../../../context
|
|
5
|
+
var ui_1 = require("../../../../../../../ui");
|
|
6
|
+
var context_1 = require("../../../context");
|
|
7
7
|
function FormLogin() {
|
|
8
8
|
var signIn = (0, context_1.useAuthAdmin)().signIn;
|
|
9
9
|
return ((0, jsx_runtime_1.jsxs)(ui_1.FormHandler, { button: { text: 'Entrar' }, initialData: { emailAddress: '', password: '' }, onSucess: signIn, children: [(0, jsx_runtime_1.jsx)(ui_1.Input, { type: 'email', label: 'Email', name: 'emailAddress', placeholder: 'Digite seu usu\u00E1rio' }), (0, jsx_runtime_1.jsx)(ui_1.InputPassword, { name: 'password', label: 'Senha', placeholder: 'Digite sua senha' })] }));
|
|
@@ -1,38 +0,0 @@
|
|
|
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.Login = void 0;
|
|
27
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
28
|
-
var ui_1 = require("../../../../../../ui/index.js");
|
|
29
|
-
var form_login_1 = require("./form-login/index.js");
|
|
30
|
-
var infra_injection_1 = require("../../../infra-injection/index.js");
|
|
31
|
-
var S = __importStar(require("./styles.js"));
|
|
32
|
-
function Login() {
|
|
33
|
-
var _a, _b;
|
|
34
|
-
var Configurations = (0, infra_injection_1.useInfraInjection)().Configurations;
|
|
35
|
-
return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'login', children: (0, jsx_runtime_1.jsxs)(S.Login, { children: [(0, jsx_runtime_1.jsxs)("div", { className: 'content', children: [(0, jsx_runtime_1.jsx)("div", { className: 'empty' }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("div", { className: 'logo', children: (0, jsx_runtime_1.jsx)(ui_1.NextImage, { src: '/images/login-logo.png', alt: ' ' }) }), (0, jsx_runtime_1.jsx)("div", { className: 'text', children: (0, jsx_runtime_1.jsx)("h5", { className: 'font-20-bold', children: "Seja bem vindo!" }) }), (0, jsx_runtime_1.jsx)(form_login_1.FormLogin, {})] }), (0, jsx_runtime_1.jsx)("div", { className: 'contact-footer', children: (0, jsx_runtime_1.jsxs)("span", { children: ["Powered by", ' ', (0, jsx_runtime_1.jsxs)("a", { target: '_blank', href: (_a = Configurations === null || Configurations === void 0 ? void 0 : Configurations.poweredBy) === null || _a === void 0 ? void 0 : _a.link, children: [(_b = Configurations === null || Configurations === void 0 ? void 0 : Configurations.poweredBy) === null || _b === void 0 ? void 0 : _b.name, "."] }), ' ', "Todos os direitos reservados."] }) })] }), (0, jsx_runtime_1.jsx)("div", { className: 'image', children: (0, jsx_runtime_1.jsx)(ui_1.NextImage, { src: '/images/login-left.png', alt: 'Imagem de login' }) })] }) }));
|
|
36
|
-
}
|
|
37
|
-
exports.Login = Login;
|
|
38
|
-
//# sourceMappingURL=index.js.map
|